@qwickapps/server 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +507 -0
- package/README.md +9 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/bans/bans-plugin.d.ts.map +1 -1
- package/dist/plugins/bans/bans-plugin.js +12 -3
- package/dist/plugins/bans/bans-plugin.js.map +1 -1
- package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts +11 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.d.ts.map +1 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.js +410 -0
- package/dist/plugins/devices/__tests__/devices-plugin.test.js.map +1 -0
- package/dist/plugins/devices/__tests__/token-utils.test.d.ts +7 -0
- package/dist/plugins/devices/__tests__/token-utils.test.d.ts.map +1 -0
- package/dist/plugins/devices/__tests__/token-utils.test.js +197 -0
- package/dist/plugins/devices/__tests__/token-utils.test.js.map +1 -0
- package/dist/plugins/devices/adapters/compute-adapter.d.ts +36 -0
- package/dist/plugins/devices/adapters/compute-adapter.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/compute-adapter.js +100 -0
- package/dist/plugins/devices/adapters/compute-adapter.js.map +1 -0
- package/dist/plugins/devices/adapters/index.d.ts +12 -0
- package/dist/plugins/devices/adapters/index.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/index.js +10 -0
- package/dist/plugins/devices/adapters/index.js.map +1 -0
- package/dist/plugins/devices/adapters/mobile-adapter.d.ts +41 -0
- package/dist/plugins/devices/adapters/mobile-adapter.d.ts.map +1 -0
- package/dist/plugins/devices/adapters/mobile-adapter.js +131 -0
- package/dist/plugins/devices/adapters/mobile-adapter.js.map +1 -0
- package/dist/plugins/devices/devices-plugin.d.ts +70 -0
- package/dist/plugins/devices/devices-plugin.d.ts.map +1 -0
- package/dist/plugins/devices/devices-plugin.js +453 -0
- package/dist/plugins/devices/devices-plugin.js.map +1 -0
- package/dist/plugins/devices/index.d.ts +18 -0
- package/dist/plugins/devices/index.d.ts.map +1 -0
- package/dist/plugins/devices/index.js +18 -0
- package/dist/plugins/devices/index.js.map +1 -0
- package/dist/plugins/devices/stores/index.d.ts +9 -0
- package/dist/plugins/devices/stores/index.d.ts.map +1 -0
- package/dist/plugins/devices/stores/index.js +9 -0
- package/dist/plugins/devices/stores/index.js.map +1 -0
- package/dist/plugins/devices/stores/postgres-store.d.ts +26 -0
- package/dist/plugins/devices/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/devices/stores/postgres-store.js +199 -0
- package/dist/plugins/devices/stores/postgres-store.js.map +1 -0
- package/dist/plugins/devices/token-utils.d.ts +100 -0
- package/dist/plugins/devices/token-utils.d.ts.map +1 -0
- package/dist/plugins/devices/token-utils.js +162 -0
- package/dist/plugins/devices/token-utils.js.map +1 -0
- package/dist/plugins/devices/types.d.ts +307 -0
- package/dist/plugins/devices/types.d.ts.map +1 -0
- package/dist/plugins/devices/types.js +10 -0
- package/dist/plugins/devices/types.js.map +1 -0
- package/dist/plugins/index.d.ts +14 -2
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +13 -1
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts +5 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.d.ts.map +1 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.js +470 -0
- package/dist/plugins/notifications/__tests__/notifications-manager.test.js.map +1 -0
- package/dist/plugins/notifications/index.d.ts +71 -0
- package/dist/plugins/notifications/index.d.ts.map +1 -0
- package/dist/plugins/notifications/index.js +72 -0
- package/dist/plugins/notifications/index.js.map +1 -0
- package/dist/plugins/notifications/notifications-manager.d.ts +182 -0
- package/dist/plugins/notifications/notifications-manager.d.ts.map +1 -0
- package/dist/plugins/notifications/notifications-manager.js +610 -0
- package/dist/plugins/notifications/notifications-manager.js.map +1 -0
- package/dist/plugins/notifications/notifications-plugin.d.ts +83 -0
- package/dist/plugins/notifications/notifications-plugin.d.ts.map +1 -0
- package/dist/plugins/notifications/notifications-plugin.js +337 -0
- package/dist/plugins/notifications/notifications-plugin.js.map +1 -0
- package/dist/plugins/notifications/types.d.ts +164 -0
- package/dist/plugins/notifications/types.d.ts.map +1 -0
- package/dist/plugins/notifications/types.js +9 -0
- package/dist/plugins/notifications/types.js.map +1 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts +12 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.d.ts.map +1 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.js +349 -0
- package/dist/plugins/parental/__tests__/parental-plugin.test.js.map +1 -0
- package/dist/plugins/parental/adapters/index.d.ts +8 -0
- package/dist/plugins/parental/adapters/index.d.ts.map +1 -0
- package/dist/plugins/parental/adapters/index.js +7 -0
- package/dist/plugins/parental/adapters/index.js.map +1 -0
- package/dist/plugins/parental/adapters/kids-adapter.d.ts +24 -0
- package/dist/plugins/parental/adapters/kids-adapter.d.ts.map +1 -0
- package/dist/plugins/parental/adapters/kids-adapter.js +174 -0
- package/dist/plugins/parental/adapters/kids-adapter.js.map +1 -0
- package/dist/plugins/parental/index.d.ts +14 -0
- package/dist/plugins/parental/index.d.ts.map +1 -0
- package/dist/plugins/parental/index.js +15 -0
- package/dist/plugins/parental/index.js.map +1 -0
- package/dist/plugins/parental/parental-plugin.d.ts +88 -0
- package/dist/plugins/parental/parental-plugin.d.ts.map +1 -0
- package/dist/plugins/parental/parental-plugin.js +666 -0
- package/dist/plugins/parental/parental-plugin.js.map +1 -0
- package/dist/plugins/parental/stores/index.d.ts +7 -0
- package/dist/plugins/parental/stores/index.d.ts.map +1 -0
- package/dist/plugins/parental/stores/index.js +7 -0
- package/dist/plugins/parental/stores/index.js.map +1 -0
- package/dist/plugins/parental/stores/postgres-store.d.ts +10 -0
- package/dist/plugins/parental/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/parental/stores/postgres-store.js +209 -0
- package/dist/plugins/parental/stores/postgres-store.js.map +1 -0
- package/dist/plugins/parental/types.d.ts +154 -0
- package/dist/plugins/parental/types.d.ts.map +1 -0
- package/dist/plugins/parental/types.js +10 -0
- package/dist/plugins/parental/types.js.map +1 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts +11 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.d.ts.map +1 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.js +243 -0
- package/dist/plugins/profiles/__tests__/profiles-plugin.test.js.map +1 -0
- package/dist/plugins/profiles/index.d.ts +12 -0
- package/dist/plugins/profiles/index.d.ts.map +1 -0
- package/dist/plugins/profiles/index.js +13 -0
- package/dist/plugins/profiles/index.js.map +1 -0
- package/dist/plugins/profiles/profiles-plugin.d.ts +71 -0
- package/dist/plugins/profiles/profiles-plugin.d.ts.map +1 -0
- package/dist/plugins/profiles/profiles-plugin.js +481 -0
- package/dist/plugins/profiles/profiles-plugin.js.map +1 -0
- package/dist/plugins/profiles/stores/index.d.ts +9 -0
- package/dist/plugins/profiles/stores/index.d.ts.map +1 -0
- package/dist/plugins/profiles/stores/index.js +9 -0
- package/dist/plugins/profiles/stores/index.js.map +1 -0
- package/dist/plugins/profiles/stores/postgres-store.d.ts +18 -0
- package/dist/plugins/profiles/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/profiles/stores/postgres-store.js +310 -0
- package/dist/plugins/profiles/stores/postgres-store.js.map +1 -0
- package/dist/plugins/profiles/types.d.ts +289 -0
- package/dist/plugins/profiles/types.d.ts.map +1 -0
- package/dist/plugins/profiles/types.js +10 -0
- package/dist/plugins/profiles/types.js.map +1 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts +11 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.d.ts.map +1 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js +305 -0
- package/dist/plugins/subscriptions/__tests__/subscriptions-plugin.test.js.map +1 -0
- package/dist/plugins/subscriptions/index.d.ts +12 -0
- package/dist/plugins/subscriptions/index.d.ts.map +1 -0
- package/dist/plugins/subscriptions/index.js +13 -0
- package/dist/plugins/subscriptions/index.js.map +1 -0
- package/dist/plugins/subscriptions/stores/index.d.ts +9 -0
- package/dist/plugins/subscriptions/stores/index.d.ts.map +1 -0
- package/dist/plugins/subscriptions/stores/index.js +9 -0
- package/dist/plugins/subscriptions/stores/index.js.map +1 -0
- package/dist/plugins/subscriptions/stores/postgres-store.d.ts +14 -0
- package/dist/plugins/subscriptions/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/subscriptions/stores/postgres-store.js +359 -0
- package/dist/plugins/subscriptions/stores/postgres-store.js.map +1 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.d.ts +82 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.d.ts.map +1 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.js +449 -0
- package/dist/plugins/subscriptions/subscriptions-plugin.js.map +1 -0
- package/dist/plugins/subscriptions/types.d.ts +308 -0
- package/dist/plugins/subscriptions/types.d.ts.map +1 -0
- package/dist/plugins/subscriptions/types.js +10 -0
- package/dist/plugins/subscriptions/types.js.map +1 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts +11 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.d.ts.map +1 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.js +218 -0
- package/dist/plugins/usage/__tests__/usage-plugin.test.js.map +1 -0
- package/dist/plugins/usage/index.d.ts +12 -0
- package/dist/plugins/usage/index.d.ts.map +1 -0
- package/dist/plugins/usage/index.js +13 -0
- package/dist/plugins/usage/index.js.map +1 -0
- package/dist/plugins/usage/stores/index.d.ts +9 -0
- package/dist/plugins/usage/stores/index.d.ts.map +1 -0
- package/dist/plugins/usage/stores/index.js +9 -0
- package/dist/plugins/usage/stores/index.js.map +1 -0
- package/dist/plugins/usage/stores/postgres-store.d.ts +14 -0
- package/dist/plugins/usage/stores/postgres-store.d.ts.map +1 -0
- package/dist/plugins/usage/stores/postgres-store.js +146 -0
- package/dist/plugins/usage/stores/postgres-store.js.map +1 -0
- package/dist/plugins/usage/types.d.ts +195 -0
- package/dist/plugins/usage/types.d.ts.map +1 -0
- package/dist/plugins/usage/types.js +10 -0
- package/dist/plugins/usage/types.js.map +1 -0
- package/dist/plugins/usage/usage-plugin.d.ts +51 -0
- package/dist/plugins/usage/usage-plugin.d.ts.map +1 -0
- package/dist/plugins/usage/usage-plugin.js +412 -0
- package/dist/plugins/usage/usage-plugin.js.map +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.d.ts +10 -0
- package/dist/plugins/users/__tests__/postgres-store.test.d.ts.map +1 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js +229 -0
- package/dist/plugins/users/__tests__/postgres-store.test.js.map +1 -0
- package/dist/plugins/users/__tests__/users-plugin.test.js +3 -0
- package/dist/plugins/users/__tests__/users-plugin.test.js.map +1 -1
- package/dist/plugins/users/index.d.ts +2 -2
- package/dist/plugins/users/index.d.ts.map +1 -1
- package/dist/plugins/users/index.js +1 -1
- package/dist/plugins/users/index.js.map +1 -1
- package/dist/plugins/users/stores/postgres-store.d.ts.map +1 -1
- package/dist/plugins/users/stores/postgres-store.js +76 -0
- package/dist/plugins/users/stores/postgres-store.js.map +1 -1
- package/dist/plugins/users/types.d.ts +74 -6
- package/dist/plugins/users/types.d.ts.map +1 -1
- package/dist/plugins/users/users-plugin.d.ts +15 -1
- package/dist/plugins/users/users-plugin.d.ts.map +1 -1
- package/dist/plugins/users/users-plugin.js +29 -0
- package/dist/plugins/users/users-plugin.js.map +1 -1
- package/dist-ui/assets/index-CynOqPkb.js +469 -0
- package/dist-ui/assets/index-CynOqPkb.js.map +1 -0
- package/dist-ui/index.html +1 -1
- package/dist-ui-lib/api/controlPanelApi.d.ts +46 -0
- package/dist-ui-lib/components/StatCard.d.ts +16 -0
- package/dist-ui-lib/dashboard/widgets/NotificationsStatsWidget.d.ts +12 -0
- package/dist-ui-lib/dashboard/widgets/index.d.ts +1 -0
- package/dist-ui-lib/index.js +1822 -1611
- package/dist-ui-lib/index.js.map +1 -1
- package/dist-ui-lib/pages/NotificationsPage.d.ts +9 -0
- package/dist-ui-lib/utils/formatters.d.ts +19 -0
- package/package.json +3 -2
- package/src/index.ts +178 -0
- package/src/plugins/bans/bans-plugin.ts +15 -3
- package/src/plugins/devices/__tests__/devices-plugin.test.ts +551 -0
- package/src/plugins/devices/__tests__/token-utils.test.ts +264 -0
- package/src/plugins/devices/adapters/compute-adapter.ts +139 -0
- package/src/plugins/devices/adapters/index.ts +13 -0
- package/src/plugins/devices/adapters/mobile-adapter.ts +179 -0
- package/src/plugins/devices/devices-plugin.ts +538 -0
- package/src/plugins/devices/index.ts +69 -0
- package/src/plugins/devices/stores/index.ts +9 -0
- package/src/plugins/devices/stores/postgres-store.ts +304 -0
- package/src/plugins/devices/token-utils.ts +213 -0
- package/src/plugins/devices/types.ts +351 -0
- package/src/plugins/index.ts +218 -0
- package/src/plugins/notifications/__tests__/notifications-manager.test.ts +637 -0
- package/src/plugins/notifications/index.ts +91 -0
- package/src/plugins/notifications/notifications-manager.ts +773 -0
- package/src/plugins/notifications/notifications-plugin.ts +398 -0
- package/src/plugins/notifications/types.ts +207 -0
- package/src/plugins/parental/__tests__/parental-plugin.test.ts +465 -0
- package/src/plugins/parental/adapters/index.ts +8 -0
- package/src/plugins/parental/adapters/kids-adapter.ts +206 -0
- package/src/plugins/parental/index.ts +55 -0
- package/src/plugins/parental/parental-plugin.ts +759 -0
- package/src/plugins/parental/stores/index.ts +7 -0
- package/src/plugins/parental/stores/postgres-store.ts +304 -0
- package/src/plugins/parental/types.ts +180 -0
- package/src/plugins/profiles/__tests__/profiles-plugin.test.ts +321 -0
- package/src/plugins/profiles/index.ts +49 -0
- package/src/plugins/profiles/profiles-plugin.ts +546 -0
- package/src/plugins/profiles/stores/index.ts +9 -0
- package/src/plugins/profiles/stores/postgres-store.ts +439 -0
- package/src/plugins/profiles/types.ts +338 -0
- package/src/plugins/subscriptions/__tests__/subscriptions-plugin.test.ts +404 -0
- package/src/plugins/subscriptions/index.ts +51 -0
- package/src/plugins/subscriptions/stores/index.ts +9 -0
- package/src/plugins/subscriptions/stores/postgres-store.ts +482 -0
- package/src/plugins/subscriptions/subscriptions-plugin.ts +530 -0
- package/src/plugins/subscriptions/types.ts +355 -0
- package/src/plugins/usage/__tests__/usage-plugin.test.ts +288 -0
- package/src/plugins/usage/index.ts +39 -0
- package/src/plugins/usage/stores/index.ts +9 -0
- package/src/plugins/usage/stores/postgres-store.ts +213 -0
- package/src/plugins/usage/types.ts +222 -0
- package/src/plugins/usage/usage-plugin.ts +484 -0
- package/src/plugins/users/__tests__/postgres-store.test.ts +326 -0
- package/src/plugins/users/__tests__/users-plugin.test.ts +3 -0
- package/src/plugins/users/index.ts +6 -0
- package/src/plugins/users/stores/postgres-store.ts +104 -0
- package/src/plugins/users/types.ts +82 -6
- package/src/plugins/users/users-plugin.ts +37 -0
- package/ui/src/App.tsx +5 -1
- package/ui/src/api/controlPanelApi.ts +103 -6
- package/ui/src/components/StatCard.tsx +58 -0
- package/ui/src/dashboard/builtInWidgets.tsx +3 -1
- package/ui/src/dashboard/widgets/NotificationsStatsWidget.tsx +167 -0
- package/ui/src/dashboard/widgets/index.ts +1 -0
- package/ui/src/pages/NotificationsPage.tsx +417 -0
- package/ui/src/utils/formatters.ts +33 -0
- package/dist-ui/assets/index-D7DoZ9rL.js +0 -478
- package/dist-ui/assets/index-D7DoZ9rL.js.map +0 -1
|
@@ -1,478 +0,0 @@
|
|
|
1
|
-
var bM=Object.defineProperty;var xM=(t,e,r)=>e in t?bM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Gs=(t,e,r)=>xM(t,typeof e!="symbol"?e+"":e,r);function SM(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&n(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var gw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var By={exports:{}},Fu={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var yw;function wM(){if(yw)return Fu;yw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,o,s){var u=null;if(s!==void 0&&(u=""+s),o.key!==void 0&&(u=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:t,type:n,key:u,ref:o!==void 0?o:null,props:s}}return Fu.Fragment=e,Fu.jsx=r,Fu.jsxs=r,Fu}var vw;function CM(){return vw||(vw=1,By.exports=wM()),By.exports}var c=CM(),zy={exports:{}},Lt={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var bw;function TM(){if(bw)return Lt;bw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.iterator;function y(L){return L===null||typeof L!="object"?null:(L=b&&L[b]||L["@@iterator"],typeof L=="function"?L:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function T(L,oe,ue){this.props=L,this.context=oe,this.refs=C,this.updater=ue||v}T.prototype.isReactComponent={},T.prototype.setState=function(L,oe){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,oe,"setState")},T.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function M(){}M.prototype=T.prototype;function E(L,oe,ue){this.props=L,this.context=oe,this.refs=C,this.updater=ue||v}var R=E.prototype=new M;R.constructor=E,w(R,T.prototype),R.isPureReactComponent=!0;var j=Array.isArray,k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function z(L,oe,ue,ce,K,re){return ue=re.ref,{$$typeof:t,type:L,key:oe,ref:ue!==void 0?ue:null,props:re}}function _(L,oe){return z(L.type,oe,void 0,void 0,void 0,L.props)}function B(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function G(L){var oe={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(ue){return oe[ue]})}var D=/\/+/g;function A(L,oe){return typeof L=="object"&&L!==null&&L.key!=null?G(""+L.key):oe.toString(36)}function Y(){}function F(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(Y,Y):(L.status="pending",L.then(function(oe){L.status==="pending"&&(L.status="fulfilled",L.value=oe)},function(oe){L.status==="pending"&&(L.status="rejected",L.reason=oe)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function $(L,oe,ue,ce,K){var re=typeof L;(re==="undefined"||re==="boolean")&&(L=null);var Z=!1;if(L===null)Z=!0;else switch(re){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(L.$$typeof){case t:case e:Z=!0;break;case m:return Z=L._init,$(Z(L._payload),oe,ue,ce,K)}}if(Z)return K=K(L),Z=ce===""?"."+A(L,0):ce,j(K)?(ue="",Z!=null&&(ue=Z.replace(D,"$&/")+"/"),$(K,oe,ue,"",function(be){return be})):K!=null&&(B(K)&&(K=_(K,ue+(K.key==null||L&&L.key===K.key?"":(""+K.key).replace(D,"$&/")+"/")+Z)),oe.push(K)),1;Z=0;var ye=ce===""?".":ce+":";if(j(L))for(var Ce=0;Ce<L.length;Ce++)ce=L[Ce],re=ye+A(ce,Ce),Z+=$(ce,oe,ue,re,K);else if(Ce=y(L),typeof Ce=="function")for(L=Ce.call(L),Ce=0;!(ce=L.next()).done;)ce=ce.value,re=ye+A(ce,Ce++),Z+=$(ce,oe,ue,re,K);else if(re==="object"){if(typeof L.then=="function")return $(F(L),oe,ue,ce,K);throw oe=String(L),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return Z}function I(L,oe,ue){if(L==null)return L;var ce=[],K=0;return $(L,ce,"","",function(re){return oe.call(ue,re,K++)}),ce}function Q(L){if(L._status===-1){var oe=L._result;oe=oe(),oe.then(function(ue){(L._status===0||L._status===-1)&&(L._status=1,L._result=ue)},function(ue){(L._status===0||L._status===-1)&&(L._status=2,L._result=ue)}),L._status===-1&&(L._status=0,L._result=oe)}if(L._status===1)return L._result.default;throw L._result}var ee=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)};function J(){}return Lt.Children={map:I,forEach:function(L,oe,ue){I(L,function(){oe.apply(this,arguments)},ue)},count:function(L){var oe=0;return I(L,function(){oe++}),oe},toArray:function(L){return I(L,function(oe){return oe})||[]},only:function(L){if(!B(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Lt.Component=T,Lt.Fragment=r,Lt.Profiler=o,Lt.PureComponent=E,Lt.StrictMode=n,Lt.Suspense=p,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Lt.act=function(){throw Error("act(...) is not supported in production builds of React.")},Lt.cache=function(L){return function(){return L.apply(null,arguments)}},Lt.cloneElement=function(L,oe,ue){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var ce=w({},L.props),K=L.key,re=void 0;if(oe!=null)for(Z in oe.ref!==void 0&&(re=void 0),oe.key!==void 0&&(K=""+oe.key),oe)!P.call(oe,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&oe.ref===void 0||(ce[Z]=oe[Z]);var Z=arguments.length-2;if(Z===1)ce.children=ue;else if(1<Z){for(var ye=Array(Z),Ce=0;Ce<Z;Ce++)ye[Ce]=arguments[Ce+2];ce.children=ye}return z(L.type,K,void 0,void 0,re,ce)},Lt.createContext=function(L){return L={$$typeof:u,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Lt.createElement=function(L,oe,ue){var ce,K={},re=null;if(oe!=null)for(ce in oe.key!==void 0&&(re=""+oe.key),oe)P.call(oe,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(K[ce]=oe[ce]);var Z=arguments.length-2;if(Z===1)K.children=ue;else if(1<Z){for(var ye=Array(Z),Ce=0;Ce<Z;Ce++)ye[Ce]=arguments[Ce+2];K.children=ye}if(L&&L.defaultProps)for(ce in Z=L.defaultProps,Z)K[ce]===void 0&&(K[ce]=Z[ce]);return z(L,re,void 0,void 0,null,K)},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function(L){return{$$typeof:d,render:L}},Lt.isValidElement=B,Lt.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:Q}},Lt.memo=function(L,oe){return{$$typeof:h,type:L,compare:oe===void 0?null:oe}},Lt.startTransition=function(L){var oe=k.T,ue={};k.T=ue;try{var ce=L(),K=k.S;K!==null&&K(ue,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(J,ee)}catch(re){ee(re)}finally{k.T=oe}},Lt.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Lt.use=function(L){return k.H.use(L)},Lt.useActionState=function(L,oe,ue){return k.H.useActionState(L,oe,ue)},Lt.useCallback=function(L,oe){return k.H.useCallback(L,oe)},Lt.useContext=function(L){return k.H.useContext(L)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function(L,oe){return k.H.useDeferredValue(L,oe)},Lt.useEffect=function(L,oe){return k.H.useEffect(L,oe)},Lt.useId=function(){return k.H.useId()},Lt.useImperativeHandle=function(L,oe,ue){return k.H.useImperativeHandle(L,oe,ue)},Lt.useInsertionEffect=function(L,oe){return k.H.useInsertionEffect(L,oe)},Lt.useLayoutEffect=function(L,oe){return k.H.useLayoutEffect(L,oe)},Lt.useMemo=function(L,oe){return k.H.useMemo(L,oe)},Lt.useOptimistic=function(L,oe){return k.H.useOptimistic(L,oe)},Lt.useReducer=function(L,oe,ue){return k.H.useReducer(L,oe,ue)},Lt.useRef=function(L){return k.H.useRef(L)},Lt.useState=function(L){return k.H.useState(L)},Lt.useSyncExternalStore=function(L,oe,ue){return k.H.useSyncExternalStore(L,oe,ue)},Lt.useTransition=function(){return k.H.useTransition()},Lt.version="19.0.0",Lt}var xw;function Mv(){return xw||(xw=1,zy.exports=TM()),zy.exports}var S=Mv();const Mt=$h(S),Ed=SM({__proto__:null,default:Mt},[S]);var $y={exports:{}},Wu={},Dy={exports:{}},Hy={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Sw;function EM(){return Sw||(Sw=1,(function(t){function e(I,Q){var ee=I.length;I.push(Q);e:for(;0<ee;){var J=ee-1>>>1,L=I[J];if(0<o(L,Q))I[J]=Q,I[ee]=L,ee=J;else break e}}function r(I){return I.length===0?null:I[0]}function n(I){if(I.length===0)return null;var Q=I[0],ee=I.pop();if(ee!==Q){I[0]=ee;e:for(var J=0,L=I.length,oe=L>>>1;J<oe;){var ue=2*(J+1)-1,ce=I[ue],K=ue+1,re=I[K];if(0>o(ce,ee))K<L&&0>o(re,ce)?(I[J]=re,I[K]=ee,J=K):(I[J]=ce,I[ue]=ee,J=ue);else if(K<L&&0>o(re,ee))I[J]=re,I[K]=ee,J=K;else break e}}return Q}function o(I,Q){var ee=I.sortIndex-Q.sortIndex;return ee!==0?ee:I.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var p=[],h=[],m=1,b=null,y=3,v=!1,w=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function R(I){for(var Q=r(h);Q!==null;){if(Q.callback===null)n(h);else if(Q.startTime<=I)n(h),Q.sortIndex=Q.expirationTime,e(p,Q);else break;Q=r(h)}}function j(I){if(C=!1,R(I),!w)if(r(p)!==null)w=!0,F();else{var Q=r(h);Q!==null&&$(j,Q.startTime-I)}}var k=!1,P=-1,z=5,_=-1;function B(){return!(t.unstable_now()-_<z)}function G(){if(k){var I=t.unstable_now();_=I;var Q=!0;try{e:{w=!1,C&&(C=!1,M(P),P=-1),v=!0;var ee=y;try{t:{for(R(I),b=r(p);b!==null&&!(b.expirationTime>I&&B());){var J=b.callback;if(typeof J=="function"){b.callback=null,y=b.priorityLevel;var L=J(b.expirationTime<=I);if(I=t.unstable_now(),typeof L=="function"){b.callback=L,R(I),Q=!0;break t}b===r(p)&&n(p),R(I)}else n(p);b=r(p)}if(b!==null)Q=!0;else{var oe=r(h);oe!==null&&$(j,oe.startTime-I),Q=!1}}break e}finally{b=null,y=ee,v=!1}Q=void 0}}finally{Q?D():k=!1}}}var D;if(typeof E=="function")D=function(){E(G)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,Y=A.port2;A.port1.onmessage=G,D=function(){Y.postMessage(null)}}else D=function(){T(G,0)};function F(){k||(k=!0,D())}function $(I,Q){P=T(function(){I(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(I){I.callback=null},t.unstable_continueExecution=function(){w||v||(w=!0,F())},t.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<I?Math.floor(1e3/I):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_getFirstCallbackNode=function(){return r(p)},t.unstable_next=function(I){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var ee=y;y=Q;try{return I()}finally{y=ee}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(I,Q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ee=y;y=I;try{return Q()}finally{y=ee}},t.unstable_scheduleCallback=function(I,Q,ee){var J=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?J+ee:J):ee=J,I){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=ee+L,I={id:m++,callback:Q,priorityLevel:I,startTime:ee,expirationTime:L,sortIndex:-1},ee>J?(I.sortIndex=ee,e(h,I),r(p)===null&&I===r(h)&&(C?(M(P),P=-1):C=!0,$(j,ee-J))):(I.sortIndex=L,e(p,I),w||v||(w=!0,F())),I},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(I){var Q=y;return function(){var ee=y;y=Q;try{return I.apply(this,arguments)}finally{y=ee}}}})(Hy)),Hy}var ww;function jM(){return ww||(ww=1,Dy.exports=EM()),Dy.exports}var Uy={exports:{}},jn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Cw;function AM(){if(Cw)return jn;Cw=1;var t=Mv();function e(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(p,h,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:p,containerInfo:h,implementation:m}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return jn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,jn.createPortal=function(p,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(p,h,null,m)},jn.flushSync=function(p){var h=u.T,m=n.p;try{if(u.T=null,n.p=2,p)return p()}finally{u.T=h,n.p=m,n.d.f()}},jn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,n.d.C(p,h))},jn.prefetchDNS=function(p){typeof p=="string"&&n.d.D(p)},jn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var m=h.as,b=d(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?n.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:y,fetchPriority:v}):m==="script"&&n.d.X(p,{crossOrigin:b,integrity:y,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},jn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);n.d.M(p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&n.d.M(p)},jn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,b=d(m,h.crossOrigin);n.d.L(p,m,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},jn.preloadModule=function(p,h){if(typeof p=="string")if(h){var m=d(h.as,h.crossOrigin);n.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else n.d.m(p)},jn.requestFormReset=function(p){n.d.r(p)},jn.unstable_batchedUpdates=function(p,h){return p(h)},jn.useFormState=function(p,h,m){return u.H.useFormState(p,h,m)},jn.useFormStatus=function(){return u.H.useHostTransitionStatus()},jn.version="19.0.0",jn}var Tw;function pE(){if(Tw)return Uy.exports;Tw=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Uy.exports=AM(),Uy.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Ew;function MM(){if(Ew)return Wu;Ew=1;var t=jM(),e=Mv(),r=pE();function n(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}var s=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),y=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),j=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function P(i){return i===null||typeof i!="object"?null:(i=k&&i[k]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function _(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case v:return(i.displayName||"Context")+".Provider";case y:return(i._context.displayName||"Context")+".Consumer";case w:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return a=i.displayName||null,a!==null?a:_(i.type)||"Memo";case E:a=i._payload,i=i._init;try{return _(i(a))}catch{}}return null}var B=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.assign,D,A;function Y(i){if(D===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);D=a&&a[1]||"",A=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+D+i+A}var F=!1;function $(i,a){if(!i||F)return"";F=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(Me){var Se=Me}Reflect.construct(i,[],Ne)}else{try{Ne.call()}catch(Me){Se=Me}i.call(Ne.prototype)}}else{try{throw Error()}catch(Me){Se=Me}(Ne=i())&&typeof Ne.catch=="function"&&Ne.catch(function(){})}}catch(Me){if(Me&&Se&&typeof Me.stack=="string")return[Me.stack,Se.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),O=x[0],X=x[1];if(O&&X){var te=O.split(`
|
|
44
|
-
`),pe=X.split(`
|
|
45
|
-
`);for(g=f=0;f<te.length&&!te[f].includes("DetermineComponentFrameRoot");)f++;for(;g<pe.length&&!pe[g].includes("DetermineComponentFrameRoot");)g++;if(f===te.length||g===pe.length)for(f=te.length-1,g=pe.length-1;1<=f&&0<=g&&te[f]!==pe[g];)g--;for(;1<=f&&0<=g;f--,g--)if(te[f]!==pe[g]){if(f!==1||g!==1)do if(f--,g--,0>g||te[f]!==pe[g]){var Re=`
|
|
46
|
-
`+te[f].replace(" at new "," at ");return i.displayName&&Re.includes("<anonymous>")&&(Re=Re.replace("<anonymous>",i.displayName)),Re}while(1<=f&&0<=g);break}}}finally{F=!1,Error.prepareStackTrace=l}return(l=i?i.displayName||i.name:"")?Y(l):""}function I(i){switch(i.tag){case 26:case 27:case 5:return Y(i.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 15:return i=$(i.type,!1),i;case 11:return i=$(i.type.render,!1),i;case 1:return i=$(i.type,!0),i;default:return""}}function Q(i){try{var a="";do a+=I(i),i=i.return;while(i);return a}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}function ee(i){var a=i,l=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(l=a.return),i=a.return;while(i)}return a.tag===3?l:null}function J(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function L(i){if(ee(i)!==i)throw Error(n(188))}function oe(i){var a=i.alternate;if(!a){if(a=ee(i),a===null)throw Error(n(188));return a!==i?null:i}for(var l=i,f=a;;){var g=l.return;if(g===null)break;var x=g.alternate;if(x===null){if(f=g.return,f!==null){l=f;continue}break}if(g.child===x.child){for(x=g.child;x;){if(x===l)return L(g),i;if(x===f)return L(g),a;x=x.sibling}throw Error(n(188))}if(l.return!==f.return)l=g,f=x;else{for(var O=!1,X=g.child;X;){if(X===l){O=!0,l=g,f=x;break}if(X===f){O=!0,f=g,l=x;break}X=X.sibling}if(!O){for(X=x.child;X;){if(X===l){O=!0,l=x,f=g;break}if(X===f){O=!0,f=x,l=g;break}X=X.sibling}if(!O)throw Error(n(189))}}if(l.alternate!==f)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:a}function ue(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=ue(i),a!==null)return a;i=i.sibling}return null}var ce=Array.isArray,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Z=[],ye=-1;function Ce(i){return{current:i}}function be(i){0>ye||(i.current=Z[ye],Z[ye]=null,ye--)}function se(i,a){ye++,Z[ye]=i.current,i.current=a}var De=Ce(null),ze=Ce(null),Be=Ce(null),Ve=Ce(null);function Ie(i,a){switch(se(Be,a),se(ze,i),se(De,null),i=a.nodeType,i){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?FS(a):0;break;default:if(i=i===8?a.parentNode:a,a=i.tagName,i=i.namespaceURI)i=FS(i),a=WS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}be(De),se(De,a)}function We(){be(De),be(ze),be(Be)}function ct(i){i.memoizedState!==null&&se(Ve,i);var a=De.current,l=WS(a,i.type);a!==l&&(se(ze,i),se(De,l))}function le(i){ze.current===i&&(be(De),be(ze)),Ve.current===i&&(be(Ve),Du._currentValue=re)}var Ze=Object.prototype.hasOwnProperty,Fe=t.unstable_scheduleCallback,ft=t.unstable_cancelCallback,Ue=t.unstable_shouldYield,kt=t.unstable_requestPaint,at=t.unstable_now,fe=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,_e=t.unstable_NormalPriority,Ge=t.unstable_LowPriority,Je=t.unstable_IdlePriority,ie=t.log,Pe=t.unstable_setDisableYieldValue,He=null,$e=null;function yt(i){if($e&&typeof $e.onCommitFiberRoot=="function")try{$e.onCommitFiberRoot(He,i,void 0,(i.current.flags&128)===128)}catch{}}function Gt(i){if(typeof ie=="function"&&Pe(i),$e&&typeof $e.setStrictMode=="function")try{$e.setStrictMode(He,i)}catch{}}var Xt=Math.clz32?Math.clz32:Vt,yn=Math.log,ut=Math.LN2;function Vt(i){return i>>>=0,i===0?32:31-(yn(i)/ut|0)|0}var Yt=128,yr=4194304;function Nr(i){var a=i&42;if(a!==0)return a;switch(i&-i){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: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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function sn(i,a){var l=i.pendingLanes;if(l===0)return 0;var f=0,g=i.suspendedLanes,x=i.pingedLanes,O=i.warmLanes;i=i.finishedLanes!==0;var X=l&134217727;return X!==0?(l=X&~g,l!==0?f=Nr(l):(x&=X,x!==0?f=Nr(x):i||(O=X&~O,O!==0&&(f=Nr(O))))):(X=l&~g,X!==0?f=Nr(X):x!==0?f=Nr(x):i||(O=l&~O,O!==0&&(f=Nr(O)))),f===0?0:a!==0&&a!==f&&(a&g)===0&&(g=f&-f,O=a&-a,g>=O||g===32&&(O&4194176)!==0)?a:f}function en(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function Vn(i,a){switch(i){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+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 Tt(){var i=Yt;return Yt<<=1,(Yt&4194176)===0&&(Yt=128),i}function Rr(){var i=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),i}function Ye(i){for(var a=[],l=0;31>l;l++)a.push(i);return a}function ot(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Pt(i,a,l,f,g,x){var O=i.pendingLanes;i.pendingLanes=l,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=l,i.entangledLanes&=l,i.errorRecoveryDisabledLanes&=l,i.shellSuspendCounter=0;var X=i.entanglements,te=i.expirationTimes,pe=i.hiddenUpdates;for(l=O&~l;0<l;){var Re=31-Xt(l),Ne=1<<Re;X[Re]=0,te[Re]=-1;var Se=pe[Re];if(Se!==null)for(pe[Re]=null,Re=0;Re<Se.length;Re++){var Me=Se[Re];Me!==null&&(Me.lane&=-536870913)}l&=~Ne}f!==0&&_t(i,f,0),x!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=x&~(O&~a))}function _t(i,a,l){i.pendingLanes|=a,i.suspendedLanes&=~a;var f=31-Xt(a);i.entangledLanes|=a,i.entanglements[f]=i.entanglements[f]|1073741824|l&4194218}function nr(i,a){var l=i.entangledLanes|=a;for(i=i.entanglements;l;){var f=31-Xt(l),g=1<<f;g&a|i[f]&a&&(i[f]|=a),l&=~g}}function vn(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function qn(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:uw(i.type))}function Ki(i,a){var l=K.p;try{return K.p=i,a()}finally{K.p=l}}var Pn=Math.random().toString(36).slice(2),Sr="__reactFiber$"+Pn,Kt="__reactProps$"+Pn,Er="__reactContainer$"+Pn,Ti="__reactEvents$"+Pn,Jc="__reactListeners$"+Pn,Ts="__reactHandles$"+Pn,Es="__reactResources$"+Pn,Te="__reactMarker$"+Pn;function Ee(i){delete i[Sr],delete i[Kt],delete i[Ti],delete i[Jc],delete i[Ts]}function Qe(i){var a=i[Sr];if(a)return a;for(var l=i.parentNode;l;){if(a=l[Er]||l[Sr]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(i=YS(i);i!==null;){if(l=i[Sr])return l;i=YS(i)}return a}i=l,l=i.parentNode}return null}function mt(i){if(i=i[Sr]||i[Er]){var a=i.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return i}return null}function wt(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(n(33))}function jr(i){var a=i[Es];return a||(a=i[Es]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function $t(i){i[Te]=!0}var Fn=new Set,js={};function xo(i,a){Zi(i,a),Zi(i+"Capture",a)}function Zi(i,a){for(js[i]=a,i=0;i<a.length;i++)Fn.add(a[i])}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ji={},eo={};function As(i){return Ze.call(eo,i)?!0:Ze.call(Ji,i)?!1:Zt.test(i)?eo[i]=!0:(Ji[i]=!0,!1)}function gp(i,a,l){if(As(a))if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+l)}}function yp(i,a,l){if(l===null)i.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+l)}}function Zo(i,a,l,f){if(f===null)i.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(l);return}i.setAttributeNS(a,l,""+f)}}function Ei(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Xb(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function hj(i){var a=Xb(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,a),f=""+i[a];if(!i.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var g=l.get,x=l.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return g.call(this)},set:function(O){f=""+O,x.call(this,O)}}),Object.defineProperty(i,a,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(O){f=""+O},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function vp(i){i._valueTracker||(i._valueTracker=hj(i))}function Yb(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var l=a.getValue(),f="";return i&&(f=Xb(i)?i.checked?"true":"false":i.value),i=f,i!==l?(a.setValue(i),!0):!1}function bp(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var mj=/[\n"\\]/g;function ji(i){return i.replace(mj,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Nm(i,a,l,f,g,x,O,X){i.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?i.type=O:i.removeAttribute("type"),a!=null?O==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Ei(a)):i.value!==""+Ei(a)&&(i.value=""+Ei(a)):O!=="submit"&&O!=="reset"||i.removeAttribute("value"),a!=null?Im(i,O,Ei(a)):l!=null?Im(i,O,Ei(l)):f!=null&&i.removeAttribute("value"),g==null&&x!=null&&(i.defaultChecked=!!x),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?i.name=""+Ei(X):i.removeAttribute("name")}function Qb(i,a,l,f,g,x,O,X){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),a!=null||l!=null){if(!(x!=="submit"&&x!=="reset"||a!=null))return;l=l!=null?""+Ei(l):"",a=a!=null?""+Ei(a):l,X||a===i.value||(i.value=a),i.defaultValue=a}f=f??g,f=typeof f!="function"&&typeof f!="symbol"&&!!f,i.checked=X?i.checked:!!f,i.defaultChecked=!!f,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(i.name=O)}function Im(i,a,l){a==="number"&&bp(i.ownerDocument)===i||i.defaultValue===""+l||(i.defaultValue=""+l)}function jl(i,a,l,f){if(i=i.options,a){a={};for(var g=0;g<l.length;g++)a["$"+l[g]]=!0;for(l=0;l<i.length;l++)g=a.hasOwnProperty("$"+i[l].value),i[l].selected!==g&&(i[l].selected=g),g&&f&&(i[l].defaultSelected=!0)}else{for(l=""+Ei(l),a=null,g=0;g<i.length;g++){if(i[g].value===l){i[g].selected=!0,f&&(i[g].defaultSelected=!0);return}a!==null||i[g].disabled||(a=i[g])}a!==null&&(a.selected=!0)}}function Kb(i,a,l){if(a!=null&&(a=""+Ei(a),a!==i.value&&(i.value=a),l==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=l!=null?""+Ei(l):""}function Zb(i,a,l,f){if(a==null){if(f!=null){if(l!=null)throw Error(n(92));if(ce(f)){if(1<f.length)throw Error(n(93));f=f[0]}l=f}l==null&&(l=""),a=l}l=Ei(a),i.defaultValue=l,f=i.textContent,f===l&&f!==""&&f!==null&&(i.value=f)}function Al(i,a){if(a){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=a;return}}i.textContent=a}var gj=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jb(i,a,l){var f=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?f?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":f?i.setProperty(a,l):typeof l!="number"||l===0||gj.has(a)?a==="float"?i.cssFloat=l:i[a]=(""+l).trim():i[a]=l+"px"}function ex(i,a,l){if(a!=null&&typeof a!="object")throw Error(n(62));if(i=i.style,l!=null){for(var f in l)!l.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?i.setProperty(f,""):f==="float"?i.cssFloat="":i[f]="");for(var g in a)f=a[g],a.hasOwnProperty(g)&&l[g]!==f&&Jb(i,g,f)}else for(var x in a)a.hasOwnProperty(x)&&Jb(i,x,a[x])}function Bm(i){if(i.indexOf("-")===-1)return!1;switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yj=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vj=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xp(i){return vj.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var zm=null;function $m(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ml=null,Rl=null;function tx(i){var a=mt(i);if(a&&(i=a.stateNode)){var l=i[Kt]||null;e:switch(i=a.stateNode,a.type){case"input":if(Nm(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ji(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var f=l[a];if(f!==i&&f.form===i.form){var g=f[Kt]||null;if(!g)throw Error(n(90));Nm(f,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<l.length;a++)f=l[a],f.form===i.form&&Yb(f)}break e;case"textarea":Kb(i,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&jl(i,!!l.multiple,a,!1)}}}var Dm=!1;function rx(i,a,l){if(Dm)return i(a,l);Dm=!0;try{var f=i(a);return f}finally{if(Dm=!1,(Ml!==null||Rl!==null)&&(nf(),Ml&&(a=Ml,i=Rl,Rl=Ml=null,tx(a),i)))for(a=0;a<i.length;a++)tx(i[a])}}function eu(i,a){var l=i.stateNode;if(l===null)return null;var f=l[Kt]||null;if(f===null)return null;l=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(i=i.type,f=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!f;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,a,typeof l));return l}var Hm=!1;if(Wn)try{var tu={};Object.defineProperty(tu,"passive",{get:function(){Hm=!0}}),window.addEventListener("test",tu,tu),window.removeEventListener("test",tu,tu)}catch{Hm=!1}var Oa=null,Um=null,Sp=null;function nx(){if(Sp)return Sp;var i,a=Um,l=a.length,f,g="value"in Oa?Oa.value:Oa.textContent,x=g.length;for(i=0;i<l&&a[i]===g[i];i++);var O=l-i;for(f=1;f<=O&&a[l-f]===g[x-f];f++);return Sp=g.slice(i,1<f?1-f:void 0)}function wp(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function Cp(){return!0}function ix(){return!1}function Gn(i){function a(l,f,g,x,O){this._reactName=l,this._targetInst=g,this.type=f,this.nativeEvent=x,this.target=O,this.currentTarget=null;for(var X in i)i.hasOwnProperty(X)&&(l=i[X],this[X]=l?l(x):x[X]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Cp:ix,this.isPropagationStopped=ix,this}return G(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Cp)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Cp)},persist:function(){},isPersistent:Cp}),a}var Ms={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tp=Gn(Ms),ru=G({},Ms,{view:0,detail:0}),bj=Gn(ru),Vm,qm,nu,Ep=G({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==nu&&(nu&&i.type==="mousemove"?(Vm=i.screenX-nu.screenX,qm=i.screenY-nu.screenY):qm=Vm=0,nu=i),Vm)},movementY:function(i){return"movementY"in i?i.movementY:qm}}),ox=Gn(Ep),xj=G({},Ep,{dataTransfer:0}),Sj=Gn(xj),wj=G({},ru,{relatedTarget:0}),Fm=Gn(wj),Cj=G({},Ms,{animationName:0,elapsedTime:0,pseudoElement:0}),Tj=Gn(Cj),Ej=G({},Ms,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),jj=Gn(Ej),Aj=G({},Ms,{data:0}),ax=Gn(Aj),Mj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rj={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Oj(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=kj[i])?!!a[i]:!1}function Wm(){return Oj}var Pj=G({},ru,{key:function(i){if(i.key){var a=Mj[i.key]||i.key;if(a!=="Unidentified")return a}return i.type==="keypress"?(i=wp(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Rj[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wm,charCode:function(i){return i.type==="keypress"?wp(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?wp(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),_j=Gn(Pj),Lj=G({},Ep,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sx=Gn(Lj),Nj=G({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wm}),Ij=Gn(Nj),Bj=G({},Ms,{propertyName:0,elapsedTime:0,pseudoElement:0}),zj=Gn(Bj),$j=G({},Ep,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Dj=Gn($j),Hj=G({},Ms,{newState:0,oldState:0}),Uj=Gn(Hj),Vj=[9,13,27,32],Gm=Wn&&"CompositionEvent"in window,iu=null;Wn&&"documentMode"in document&&(iu=document.documentMode);var qj=Wn&&"TextEvent"in window&&!iu,lx=Wn&&(!Gm||iu&&8<iu&&11>=iu),cx=" ",ux=!1;function dx(i,a){switch(i){case"keyup":return Vj.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function px(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var kl=!1;function Fj(i,a){switch(i){case"compositionend":return px(a);case"keypress":return a.which!==32?null:(ux=!0,cx);case"textInput":return i=a.data,i===cx&&ux?null:i;default:return null}}function Wj(i,a){if(kl)return i==="compositionend"||!Gm&&dx(i,a)?(i=nx(),Sp=Um=Oa=null,kl=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return lx&&a.locale!=="ko"?null:a.data;default:return null}}var Gj={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fx(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!Gj[i.type]:a==="textarea"}function hx(i,a,l,f){Ml?Rl?Rl.push(f):Rl=[f]:Ml=f,a=cf(a,"onChange"),0<a.length&&(l=new Tp("onChange","change",null,l,f),i.push({event:l,listeners:a}))}var ou=null,au=null;function Xj(i){DS(i,0)}function jp(i){var a=wt(i);if(Yb(a))return i}function mx(i,a){if(i==="change")return a}var gx=!1;if(Wn){var Xm;if(Wn){var Ym="oninput"in document;if(!Ym){var yx=document.createElement("div");yx.setAttribute("oninput","return;"),Ym=typeof yx.oninput=="function"}Xm=Ym}else Xm=!1;gx=Xm&&(!document.documentMode||9<document.documentMode)}function vx(){ou&&(ou.detachEvent("onpropertychange",bx),au=ou=null)}function bx(i){if(i.propertyName==="value"&&jp(au)){var a=[];hx(a,au,i,$m(i)),rx(Xj,a)}}function Yj(i,a,l){i==="focusin"?(vx(),ou=a,au=l,ou.attachEvent("onpropertychange",bx)):i==="focusout"&&vx()}function Qj(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return jp(au)}function Kj(i,a){if(i==="click")return jp(a)}function Zj(i,a){if(i==="input"||i==="change")return jp(a)}function Jj(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var ui=typeof Object.is=="function"?Object.is:Jj;function su(i,a){if(ui(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var l=Object.keys(i),f=Object.keys(a);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var g=l[f];if(!Ze.call(a,g)||!ui(i[g],a[g]))return!1}return!0}function xx(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Sx(i,a){var l=xx(i);i=0;for(var f;l;){if(l.nodeType===3){if(f=i+l.textContent.length,i<=a&&f>=a)return{node:l,offset:a-i};i=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=xx(l)}}function wx(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?wx(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function Cx(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=bp(i.document);a instanceof i.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)i=a.contentWindow;else break;a=bp(i.document)}return a}function Qm(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function eA(i,a){var l=Cx(a);a=i.focusedElem;var f=i.selectionRange;if(l!==a&&a&&a.ownerDocument&&wx(a.ownerDocument.documentElement,a)){if(f!==null&&Qm(a)){if(i=f.start,l=f.end,l===void 0&&(l=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(l,a.value.length);else if(l=(i=a.ownerDocument||document)&&i.defaultView||window,l.getSelection){l=l.getSelection();var g=a.textContent.length,x=Math.min(f.start,g);f=f.end===void 0?x:Math.min(f.end,g),!l.extend&&x>f&&(g=f,f=x,x=g),g=Sx(a,x);var O=Sx(a,f);g&&O&&(l.rangeCount!==1||l.anchorNode!==g.node||l.anchorOffset!==g.offset||l.focusNode!==O.node||l.focusOffset!==O.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),l.removeAllRanges(),x>f?(l.addRange(i),l.extend(O.node,O.offset)):(i.setEnd(O.node,O.offset),l.addRange(i)))}}for(i=[],l=a;l=l.parentNode;)l.nodeType===1&&i.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)l=i[a],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var tA=Wn&&"documentMode"in document&&11>=document.documentMode,Ol=null,Km=null,lu=null,Zm=!1;function Tx(i,a,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zm||Ol==null||Ol!==bp(f)||(f=Ol,"selectionStart"in f&&Qm(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),lu&&su(lu,f)||(lu=f,f=cf(Km,"onSelect"),0<f.length&&(a=new Tp("onSelect","select",null,a,l),i.push({event:a,listeners:f}),a.target=Ol)))}function Rs(i,a){var l={};return l[i.toLowerCase()]=a.toLowerCase(),l["Webkit"+i]="webkit"+a,l["Moz"+i]="moz"+a,l}var Pl={animationend:Rs("Animation","AnimationEnd"),animationiteration:Rs("Animation","AnimationIteration"),animationstart:Rs("Animation","AnimationStart"),transitionrun:Rs("Transition","TransitionRun"),transitionstart:Rs("Transition","TransitionStart"),transitioncancel:Rs("Transition","TransitionCancel"),transitionend:Rs("Transition","TransitionEnd")},Jm={},Ex={};Wn&&(Ex=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function ks(i){if(Jm[i])return Jm[i];if(!Pl[i])return i;var a=Pl[i],l;for(l in a)if(a.hasOwnProperty(l)&&l in Ex)return Jm[i]=a[l];return i}var jx=ks("animationend"),Ax=ks("animationiteration"),Mx=ks("animationstart"),rA=ks("transitionrun"),nA=ks("transitionstart"),iA=ks("transitioncancel"),Rx=ks("transitionend"),kx=new Map,Ox="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function to(i,a){kx.set(i,a),xo(a,[i])}var Ai=[],_l=0,eg=0;function Ap(){for(var i=_l,a=eg=_l=0;a<i;){var l=Ai[a];Ai[a++]=null;var f=Ai[a];Ai[a++]=null;var g=Ai[a];Ai[a++]=null;var x=Ai[a];if(Ai[a++]=null,f!==null&&g!==null){var O=f.pending;O===null?g.next=g:(g.next=O.next,O.next=g),f.pending=g}x!==0&&Px(l,g,x)}}function Mp(i,a,l,f){Ai[_l++]=i,Ai[_l++]=a,Ai[_l++]=l,Ai[_l++]=f,eg|=f,i.lanes|=f,i=i.alternate,i!==null&&(i.lanes|=f)}function tg(i,a,l,f){return Mp(i,a,l,f),Rp(i)}function Pa(i,a){return Mp(i,null,null,a),Rp(i)}function Px(i,a,l){i.lanes|=l;var f=i.alternate;f!==null&&(f.lanes|=l);for(var g=!1,x=i.return;x!==null;)x.childLanes|=l,f=x.alternate,f!==null&&(f.childLanes|=l),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(g=!0)),i=x,x=x.return;g&&a!==null&&i.tag===3&&(x=i.stateNode,g=31-Xt(l),x=x.hiddenUpdates,i=x[g],i===null?x[g]=[a]:i.push(a),a.lane=l|536870912)}function Rp(i){if(50<_u)throw _u=0,sy=null,Error(n(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Ll={},_x=new WeakMap;function Mi(i,a){if(typeof i=="object"&&i!==null){var l=_x.get(i);return l!==void 0?l:(a={value:i,source:a,stack:Q(a)},_x.set(i,a),a)}return{value:i,source:a,stack:Q(a)}}var Nl=[],Il=0,kp=null,Op=0,Ri=[],ki=0,Os=null,Jo=1,ea="";function Ps(i,a){Nl[Il++]=Op,Nl[Il++]=kp,kp=i,Op=a}function Lx(i,a,l){Ri[ki++]=Jo,Ri[ki++]=ea,Ri[ki++]=Os,Os=i;var f=Jo;i=ea;var g=32-Xt(f)-1;f&=~(1<<g),l+=1;var x=32-Xt(a)+g;if(30<x){var O=g-g%5;x=(f&(1<<O)-1).toString(32),f>>=O,g-=O,Jo=1<<32-Xt(a)+g|l<<g|f,ea=x+i}else Jo=1<<x|l<<g|f,ea=i}function rg(i){i.return!==null&&(Ps(i,1),Lx(i,1,0))}function ng(i){for(;i===kp;)kp=Nl[--Il],Nl[Il]=null,Op=Nl[--Il],Nl[Il]=null;for(;i===Os;)Os=Ri[--ki],Ri[ki]=null,ea=Ri[--ki],Ri[ki]=null,Jo=Ri[--ki],Ri[ki]=null}var _n=null,bn=null,er=!1,ro=null,So=!1,ig=Error(n(519));function _s(i){var a=Error(n(418,""));throw du(Mi(a,i)),ig}function Nx(i){var a=i.stateNode,l=i.type,f=i.memoizedProps;switch(a[Sr]=i,a[Kt]=f,l){case"dialog":Qt("cancel",a),Qt("close",a);break;case"iframe":case"object":case"embed":Qt("load",a);break;case"video":case"audio":for(l=0;l<Nu.length;l++)Qt(Nu[l],a);break;case"source":Qt("error",a);break;case"img":case"image":case"link":Qt("error",a),Qt("load",a);break;case"details":Qt("toggle",a);break;case"input":Qt("invalid",a),Qb(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),vp(a);break;case"select":Qt("invalid",a);break;case"textarea":Qt("invalid",a),Zb(a,f.value,f.defaultValue,f.children),vp(a)}l=f.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||f.suppressHydrationWarning===!0||qS(a.textContent,l)?(f.popover!=null&&(Qt("beforetoggle",a),Qt("toggle",a)),f.onScroll!=null&&Qt("scroll",a),f.onScrollEnd!=null&&Qt("scrollend",a),f.onClick!=null&&(a.onclick=uf),a=!0):a=!1,a||_s(i)}function Ix(i){for(_n=i.return;_n;)switch(_n.tag){case 3:case 27:So=!0;return;case 5:case 13:So=!1;return;default:_n=_n.return}}function cu(i){if(i!==_n)return!1;if(!er)return Ix(i),er=!0,!1;var a=!1,l;if((l=i.tag!==3&&i.tag!==27)&&((l=i.tag===5)&&(l=i.type,l=!(l!=="form"&&l!=="button")||Ty(i.type,i.memoizedProps)),l=!l),l&&(a=!0),a&&bn&&_s(i),Ix(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,a=0;i;){if(i.nodeType===8)if(l=i.data,l==="/$"){if(a===0){bn=io(i.nextSibling);break e}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++;i=i.nextSibling}bn=null}}else bn=_n?io(i.stateNode.nextSibling):null;return!0}function uu(){bn=_n=null,er=!1}function du(i){ro===null?ro=[i]:ro.push(i)}var pu=Error(n(460)),Bx=Error(n(474)),og={then:function(){}};function zx(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Pp(){}function $x(i,a,l){switch(l=i[l],l===void 0?i.push(a):l!==a&&(a.then(Pp,Pp),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,i===pu?Error(n(483)):i;default:if(typeof a.status=="string")a.then(Pp,Pp);else{if(i=wr,i!==null&&100<i.shellSuspendCounter)throw Error(n(482));i=a,i.status="pending",i.then(function(f){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=f}},function(f){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,i===pu?Error(n(483)):i}throw fu=a,pu}}var fu=null;function Dx(){if(fu===null)throw Error(n(459));var i=fu;return fu=null,i}var Bl=null,hu=0;function _p(i){var a=hu;return hu+=1,Bl===null&&(Bl=[]),$x(Bl,i,a)}function mu(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function Lp(i,a){throw a.$$typeof===s?Error(n(525)):(i=Object.prototype.toString.call(a),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function Hx(i){var a=i._init;return a(i._payload)}function Ux(i){function a(he,de){if(i){var ge=he.deletions;ge===null?(he.deletions=[de],he.flags|=16):ge.push(de)}}function l(he,de){if(!i)return null;for(;de!==null;)a(he,de),de=de.sibling;return null}function f(he){for(var de=new Map;he!==null;)he.key!==null?de.set(he.key,he):de.set(he.index,he),he=he.sibling;return de}function g(he,de){return he=qa(he,de),he.index=0,he.sibling=null,he}function x(he,de,ge){return he.index=ge,i?(ge=he.alternate,ge!==null?(ge=ge.index,ge<de?(he.flags|=33554434,de):ge):(he.flags|=33554434,de)):(he.flags|=1048576,de)}function O(he){return i&&he.alternate===null&&(he.flags|=33554434),he}function X(he,de,ge,Oe){return de===null||de.tag!==6?(de=Jg(ge,he.mode,Oe),de.return=he,de):(de=g(de,ge),de.return=he,de)}function te(he,de,ge,Oe){var lt=ge.type;return lt===p?Re(he,de,ge.props.children,Oe,ge.key):de!==null&&(de.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===E&&Hx(lt)===de.type)?(de=g(de,ge.props),mu(de,ge),de.return=he,de):(de=Zp(ge.type,ge.key,ge.props,null,he.mode,Oe),mu(de,ge),de.return=he,de)}function pe(he,de,ge,Oe){return de===null||de.tag!==4||de.stateNode.containerInfo!==ge.containerInfo||de.stateNode.implementation!==ge.implementation?(de=ey(ge,he.mode,Oe),de.return=he,de):(de=g(de,ge.children||[]),de.return=he,de)}function Re(he,de,ge,Oe,lt){return de===null||de.tag!==7?(de=Vs(ge,he.mode,Oe,lt),de.return=he,de):(de=g(de,ge),de.return=he,de)}function Ne(he,de,ge){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return de=Jg(""+de,he.mode,ge),de.return=he,de;if(typeof de=="object"&&de!==null){switch(de.$$typeof){case u:return ge=Zp(de.type,de.key,de.props,null,he.mode,ge),mu(ge,de),ge.return=he,ge;case d:return de=ey(de,he.mode,ge),de.return=he,de;case E:var Oe=de._init;return de=Oe(de._payload),Ne(he,de,ge)}if(ce(de)||P(de))return de=Vs(de,he.mode,ge,null),de.return=he,de;if(typeof de.then=="function")return Ne(he,_p(de),ge);if(de.$$typeof===v)return Ne(he,Yp(he,de),ge);Lp(he,de)}return null}function Se(he,de,ge,Oe){var lt=de!==null?de.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return lt!==null?null:X(he,de,""+ge,Oe);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case u:return ge.key===lt?te(he,de,ge,Oe):null;case d:return ge.key===lt?pe(he,de,ge,Oe):null;case E:return lt=ge._init,ge=lt(ge._payload),Se(he,de,ge,Oe)}if(ce(ge)||P(ge))return lt!==null?null:Re(he,de,ge,Oe,null);if(typeof ge.then=="function")return Se(he,de,_p(ge),Oe);if(ge.$$typeof===v)return Se(he,de,Yp(he,ge),Oe);Lp(he,ge)}return null}function Me(he,de,ge,Oe,lt){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return he=he.get(ge)||null,X(de,he,""+Oe,lt);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case u:return he=he.get(Oe.key===null?ge:Oe.key)||null,te(de,he,Oe,lt);case d:return he=he.get(Oe.key===null?ge:Oe.key)||null,pe(de,he,Oe,lt);case E:var Ut=Oe._init;return Oe=Ut(Oe._payload),Me(he,de,ge,Oe,lt)}if(ce(Oe)||P(Oe))return he=he.get(ge)||null,Re(de,he,Oe,lt,null);if(typeof Oe.then=="function")return Me(he,de,ge,_p(Oe),lt);if(Oe.$$typeof===v)return Me(he,de,ge,Yp(de,Oe),lt);Lp(de,Oe)}return null}function pt(he,de,ge,Oe){for(var lt=null,Ut=null,ht=de,Ct=de=0,un=null;ht!==null&&Ct<ge.length;Ct++){ht.index>Ct?(un=ht,ht=null):un=ht.sibling;var tr=Se(he,ht,ge[Ct],Oe);if(tr===null){ht===null&&(ht=un);break}i&&ht&&tr.alternate===null&&a(he,ht),de=x(tr,de,Ct),Ut===null?lt=tr:Ut.sibling=tr,Ut=tr,ht=un}if(Ct===ge.length)return l(he,ht),er&&Ps(he,Ct),lt;if(ht===null){for(;Ct<ge.length;Ct++)ht=Ne(he,ge[Ct],Oe),ht!==null&&(de=x(ht,de,Ct),Ut===null?lt=ht:Ut.sibling=ht,Ut=ht);return er&&Ps(he,Ct),lt}for(ht=f(ht);Ct<ge.length;Ct++)un=Me(ht,he,Ct,ge[Ct],Oe),un!==null&&(i&&un.alternate!==null&&ht.delete(un.key===null?Ct:un.key),de=x(un,de,Ct),Ut===null?lt=un:Ut.sibling=un,Ut=un);return i&&ht.forEach(function(Ka){return a(he,Ka)}),er&&Ps(he,Ct),lt}function Rt(he,de,ge,Oe){if(ge==null)throw Error(n(151));for(var lt=null,Ut=null,ht=de,Ct=de=0,un=null,tr=ge.next();ht!==null&&!tr.done;Ct++,tr=ge.next()){ht.index>Ct?(un=ht,ht=null):un=ht.sibling;var Ka=Se(he,ht,tr.value,Oe);if(Ka===null){ht===null&&(ht=un);break}i&&ht&&Ka.alternate===null&&a(he,ht),de=x(Ka,de,Ct),Ut===null?lt=Ka:Ut.sibling=Ka,Ut=Ka,ht=un}if(tr.done)return l(he,ht),er&&Ps(he,Ct),lt;if(ht===null){for(;!tr.done;Ct++,tr=ge.next())tr=Ne(he,tr.value,Oe),tr!==null&&(de=x(tr,de,Ct),Ut===null?lt=tr:Ut.sibling=tr,Ut=tr);return er&&Ps(he,Ct),lt}for(ht=f(ht);!tr.done;Ct++,tr=ge.next())tr=Me(ht,he,Ct,tr.value,Oe),tr!==null&&(i&&tr.alternate!==null&&ht.delete(tr.key===null?Ct:tr.key),de=x(tr,de,Ct),Ut===null?lt=tr:Ut.sibling=tr,Ut=tr);return i&&ht.forEach(function(vM){return a(he,vM)}),er&&Ps(he,Ct),lt}function zr(he,de,ge,Oe){if(typeof ge=="object"&&ge!==null&&ge.type===p&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case u:e:{for(var lt=ge.key;de!==null;){if(de.key===lt){if(lt=ge.type,lt===p){if(de.tag===7){l(he,de.sibling),Oe=g(de,ge.props.children),Oe.return=he,he=Oe;break e}}else if(de.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===E&&Hx(lt)===de.type){l(he,de.sibling),Oe=g(de,ge.props),mu(Oe,ge),Oe.return=he,he=Oe;break e}l(he,de);break}else a(he,de);de=de.sibling}ge.type===p?(Oe=Vs(ge.props.children,he.mode,Oe,ge.key),Oe.return=he,he=Oe):(Oe=Zp(ge.type,ge.key,ge.props,null,he.mode,Oe),mu(Oe,ge),Oe.return=he,he=Oe)}return O(he);case d:e:{for(lt=ge.key;de!==null;){if(de.key===lt)if(de.tag===4&&de.stateNode.containerInfo===ge.containerInfo&&de.stateNode.implementation===ge.implementation){l(he,de.sibling),Oe=g(de,ge.children||[]),Oe.return=he,he=Oe;break e}else{l(he,de);break}else a(he,de);de=de.sibling}Oe=ey(ge,he.mode,Oe),Oe.return=he,he=Oe}return O(he);case E:return lt=ge._init,ge=lt(ge._payload),zr(he,de,ge,Oe)}if(ce(ge))return pt(he,de,ge,Oe);if(P(ge)){if(lt=P(ge),typeof lt!="function")throw Error(n(150));return ge=lt.call(ge),Rt(he,de,ge,Oe)}if(typeof ge.then=="function")return zr(he,de,_p(ge),Oe);if(ge.$$typeof===v)return zr(he,de,Yp(he,ge),Oe);Lp(he,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint"?(ge=""+ge,de!==null&&de.tag===6?(l(he,de.sibling),Oe=g(de,ge),Oe.return=he,he=Oe):(l(he,de),Oe=Jg(ge,he.mode,Oe),Oe.return=he,he=Oe),O(he)):l(he,de)}return function(he,de,ge,Oe){try{hu=0;var lt=zr(he,de,ge,Oe);return Bl=null,lt}catch(ht){if(ht===pu)throw ht;var Ut=Li(29,ht,null,he.mode);return Ut.lanes=Oe,Ut.return=he,Ut}finally{}}}var Ls=Ux(!0),Vx=Ux(!1),zl=Ce(null),Np=Ce(0);function qx(i,a){i=da,se(Np,i),se(zl,a),da=i|a.baseLanes}function ag(){se(Np,da),se(zl,zl.current)}function sg(){da=Np.current,be(zl),be(Np)}var Oi=Ce(null),wo=null;function _a(i){var a=i.alternate;se(tn,tn.current&1),se(Oi,i),wo===null&&(a===null||zl.current!==null||a.memoizedState!==null)&&(wo=i)}function Fx(i){if(i.tag===22){if(se(tn,tn.current),se(Oi,i),wo===null){var a=i.alternate;a!==null&&a.memoizedState!==null&&(wo=i)}}else La()}function La(){se(tn,tn.current),se(Oi,Oi.current)}function ta(i){be(Oi),wo===i&&(wo=null),be(tn)}var tn=Ce(0);function Ip(i){for(var a=i;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var oA=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(l,f){i.push(f)}};this.abort=function(){a.aborted=!0,i.forEach(function(l){return l()})}},aA=t.unstable_scheduleCallback,sA=t.unstable_NormalPriority,rn={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lg(){return{controller:new oA,data:new Map,refCount:0}}function gu(i){i.refCount--,i.refCount===0&&aA(sA,function(){i.controller.abort()})}var yu=null,cg=0,$l=0,Dl=null;function lA(i,a){if(yu===null){var l=yu=[];cg=0,$l=my(),Dl={status:"pending",value:void 0,then:function(f){l.push(f)}}}return cg++,a.then(Wx,Wx),a}function Wx(){if(--cg===0&&yu!==null){Dl!==null&&(Dl.status="fulfilled");var i=yu;yu=null,$l=0,Dl=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function cA(i,a){var l=[],f={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return i.then(function(){f.status="fulfilled",f.value=a;for(var g=0;g<l.length;g++)(0,l[g])(a)},function(g){for(f.status="rejected",f.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),f}var Gx=B.S;B.S=function(i,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&lA(i,a),Gx!==null&&Gx(i,a)};var Ns=Ce(null);function ug(){var i=Ns.current;return i!==null?i:wr.pooledCache}function Bp(i,a){a===null?se(Ns,Ns.current):se(Ns,a.pool)}function Xx(){var i=ug();return i===null?null:{parent:rn._currentValue,pool:i}}var Na=0,Ht=null,fr=null,Gr=null,zp=!1,Hl=!1,Is=!1,$p=0,vu=0,Ul=null,uA=0;function Ur(){throw Error(n(321))}function dg(i,a){if(a===null)return!1;for(var l=0;l<a.length&&l<i.length;l++)if(!ui(i[l],a[l]))return!1;return!0}function pg(i,a,l,f,g,x){return Na=x,Ht=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,B.H=i===null||i.memoizedState===null?Bs:Ia,Is=!1,x=l(f,g),Is=!1,Hl&&(x=Qx(a,l,f,g)),Yx(i),x}function Yx(i){B.H=Co;var a=fr!==null&&fr.next!==null;if(Na=0,Gr=fr=Ht=null,zp=!1,vu=0,Ul=null,a)throw Error(n(300));i===null||ln||(i=i.dependencies,i!==null&&Xp(i)&&(ln=!0))}function Qx(i,a,l,f){Ht=i;var g=0;do{if(Hl&&(Ul=null),vu=0,Hl=!1,25<=g)throw Error(n(301));if(g+=1,Gr=fr=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}B.H=zs,x=a(l,f)}while(Hl);return x}function dA(){var i=B.H,a=i.useState()[0];return a=typeof a.then=="function"?bu(a):a,i=i.useState()[0],(fr!==null?fr.memoizedState:null)!==i&&(Ht.flags|=1024),a}function fg(){var i=$p!==0;return $p=0,i}function hg(i,a,l){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~l}function mg(i){if(zp){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}zp=!1}Na=0,Gr=fr=Ht=null,Hl=!1,vu=$p=0,Ul=null}function Xn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gr===null?Ht.memoizedState=Gr=i:Gr=Gr.next=i,Gr}function Xr(){if(fr===null){var i=Ht.alternate;i=i!==null?i.memoizedState:null}else i=fr.next;var a=Gr===null?Ht.memoizedState:Gr.next;if(a!==null)Gr=a,fr=i;else{if(i===null)throw Ht.alternate===null?Error(n(467)):Error(n(310));fr=i,i={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},Gr===null?Ht.memoizedState=Gr=i:Gr=Gr.next=i}return Gr}var Dp;Dp=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function bu(i){var a=vu;return vu+=1,Ul===null&&(Ul=[]),i=$x(Ul,i,a),a=Ht,(Gr===null?a.memoizedState:Gr.next)===null&&(a=a.alternate,B.H=a===null||a.memoizedState===null?Bs:Ia),i}function Hp(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return bu(i);if(i.$$typeof===v)return En(i)}throw Error(n(438,String(i)))}function gg(i){var a=null,l=Ht.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var f=Ht.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Dp(),Ht.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(i),f=0;f<i;f++)l[f]=j;return a.index++,l}function ra(i,a){return typeof a=="function"?a(i):a}function Up(i){var a=Xr();return yg(a,fr,i)}function yg(i,a,l){var f=i.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=l;var g=i.baseQueue,x=f.pending;if(x!==null){if(g!==null){var O=g.next;g.next=x.next,x.next=O}a.baseQueue=g=x,f.pending=null}if(x=i.baseState,g===null)i.memoizedState=x;else{a=g.next;var X=O=null,te=null,pe=a,Re=!1;do{var Ne=pe.lane&-536870913;if(Ne!==pe.lane?(Jt&Ne)===Ne:(Na&Ne)===Ne){var Se=pe.revertLane;if(Se===0)te!==null&&(te=te.next={lane:0,revertLane:0,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null}),Ne===$l&&(Re=!0);else if((Na&Se)===Se){pe=pe.next,Se===$l&&(Re=!0);continue}else Ne={lane:0,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},te===null?(X=te=Ne,O=x):te=te.next=Ne,Ht.lanes|=Se,Fa|=Se;Ne=pe.action,Is&&l(x,Ne),x=pe.hasEagerState?pe.eagerState:l(x,Ne)}else Se={lane:Ne,revertLane:pe.revertLane,action:pe.action,hasEagerState:pe.hasEagerState,eagerState:pe.eagerState,next:null},te===null?(X=te=Se,O=x):te=te.next=Se,Ht.lanes|=Ne,Fa|=Ne;pe=pe.next}while(pe!==null&&pe!==a);if(te===null?O=x:te.next=X,!ui(x,i.memoizedState)&&(ln=!0,Re&&(l=Dl,l!==null)))throw l;i.memoizedState=x,i.baseState=O,i.baseQueue=te,f.lastRenderedState=x}return g===null&&(f.lanes=0),[i.memoizedState,f.dispatch]}function vg(i){var a=Xr(),l=a.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var f=l.dispatch,g=l.pending,x=a.memoizedState;if(g!==null){l.pending=null;var O=g=g.next;do x=i(x,O.action),O=O.next;while(O!==g);ui(x,a.memoizedState)||(ln=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),l.lastRenderedState=x}return[x,f]}function Kx(i,a,l){var f=Ht,g=Xr(),x=er;if(x){if(l===void 0)throw Error(n(407));l=l()}else l=a();var O=!ui((fr||g).memoizedState,l);if(O&&(g.memoizedState=l,ln=!0),g=g.queue,Sg(e1.bind(null,f,g,i),[i]),g.getSnapshot!==a||O||Gr!==null&&Gr.memoizedState.tag&1){if(f.flags|=2048,Vl(9,Jx.bind(null,f,g,l,a),{destroy:void 0},null),wr===null)throw Error(n(349));x||(Na&60)!==0||Zx(f,a,l)}return l}function Zx(i,a,l){i.flags|=16384,i={getSnapshot:a,value:l},a=Ht.updateQueue,a===null?(a=Dp(),Ht.updateQueue=a,a.stores=[i]):(l=a.stores,l===null?a.stores=[i]:l.push(i))}function Jx(i,a,l,f){a.value=l,a.getSnapshot=f,t1(a)&&r1(i)}function e1(i,a,l){return l(function(){t1(a)&&r1(i)})}function t1(i){var a=i.getSnapshot;i=i.value;try{var l=a();return!ui(i,l)}catch{return!0}}function r1(i){var a=Pa(i,2);a!==null&&Ln(a,i,2)}function bg(i){var a=Xn();if(typeof i=="function"){var l=i;if(i=l(),Is){Gt(!0);try{l()}finally{Gt(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:i},a}function n1(i,a,l,f){return i.baseState=l,yg(i,fr,typeof f=="function"?f:ra)}function pA(i,a,l,f,g){if(Fp(i))throw Error(n(485));if(i=a.action,i!==null){var x={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){x.listeners.push(O)}};B.T!==null?l(!0):x.isTransition=!1,f(x),l=a.pending,l===null?(x.next=a.pending=x,i1(a,x)):(x.next=l.next,a.pending=l.next=x)}}function i1(i,a){var l=a.action,f=a.payload,g=i.state;if(a.isTransition){var x=B.T,O={};B.T=O;try{var X=l(g,f),te=B.S;te!==null&&te(O,X),o1(i,a,X)}catch(pe){xg(i,a,pe)}finally{B.T=x}}else try{x=l(g,f),o1(i,a,x)}catch(pe){xg(i,a,pe)}}function o1(i,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(f){a1(i,a,f)},function(f){return xg(i,a,f)}):a1(i,a,l)}function a1(i,a,l){a.status="fulfilled",a.value=l,s1(a),i.state=l,a=i.pending,a!==null&&(l=a.next,l===a?i.pending=null:(l=l.next,a.next=l,i1(i,l)))}function xg(i,a,l){var f=i.pending;if(i.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=l,s1(a),a=a.next;while(a!==f)}i.action=null}function s1(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function l1(i,a){return a}function c1(i,a){if(er){var l=wr.formState;if(l!==null){e:{var f=Ht;if(er){if(bn){t:{for(var g=bn,x=So;g.nodeType!==8;){if(!x){g=null;break t}if(g=io(g.nextSibling),g===null){g=null;break t}}x=g.data,g=x==="F!"||x==="F"?g:null}if(g){bn=io(g.nextSibling),f=g.data==="F!";break e}}_s(f)}f=!1}f&&(a=l[0])}}return l=Xn(),l.memoizedState=l.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l1,lastRenderedState:a},l.queue=f,l=A1.bind(null,Ht,f),f.dispatch=l,f=bg(!1),x=jg.bind(null,Ht,!1,f.queue),f=Xn(),g={state:a,dispatch:null,action:i,pending:null},f.queue=g,l=pA.bind(null,Ht,g,x,l),g.dispatch=l,f.memoizedState=i,[a,l,!1]}function u1(i){var a=Xr();return d1(a,fr,i)}function d1(i,a,l){a=yg(i,a,l1)[0],i=Up(ra)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?bu(a):a;var f=Xr(),g=f.queue,x=g.dispatch;return l!==f.memoizedState&&(Ht.flags|=2048,Vl(9,fA.bind(null,g,l),{destroy:void 0},null)),[a,x,i]}function fA(i,a){i.action=a}function p1(i){var a=Xr(),l=fr;if(l!==null)return d1(a,l,i);Xr(),a=a.memoizedState,l=Xr();var f=l.queue.dispatch;return l.memoizedState=i,[a,f,!1]}function Vl(i,a,l,f){return i={tag:i,create:a,inst:l,deps:f,next:null},a=Ht.updateQueue,a===null&&(a=Dp(),Ht.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=i.next=i:(f=l.next,l.next=i,i.next=f,a.lastEffect=i),i}function f1(){return Xr().memoizedState}function Vp(i,a,l,f){var g=Xn();Ht.flags|=i,g.memoizedState=Vl(1|a,l,{destroy:void 0},f===void 0?null:f)}function qp(i,a,l,f){var g=Xr();f=f===void 0?null:f;var x=g.memoizedState.inst;fr!==null&&f!==null&&dg(f,fr.memoizedState.deps)?g.memoizedState=Vl(a,l,x,f):(Ht.flags|=i,g.memoizedState=Vl(1|a,l,x,f))}function h1(i,a){Vp(8390656,8,i,a)}function Sg(i,a){qp(2048,8,i,a)}function m1(i,a){return qp(4,2,i,a)}function g1(i,a){return qp(4,4,i,a)}function y1(i,a){if(typeof a=="function"){i=i();var l=a(i);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function v1(i,a,l){l=l!=null?l.concat([i]):null,qp(4,4,y1.bind(null,a,i),l)}function wg(){}function b1(i,a){var l=Xr();a=a===void 0?null:a;var f=l.memoizedState;return a!==null&&dg(a,f[1])?f[0]:(l.memoizedState=[i,a],i)}function x1(i,a){var l=Xr();a=a===void 0?null:a;var f=l.memoizedState;if(a!==null&&dg(a,f[1]))return f[0];if(f=i(),Is){Gt(!0);try{i()}finally{Gt(!1)}}return l.memoizedState=[f,a],f}function Cg(i,a,l){return l===void 0||(Na&1073741824)!==0?i.memoizedState=a:(i.memoizedState=l,i=wS(),Ht.lanes|=i,Fa|=i,l)}function S1(i,a,l,f){return ui(l,a)?l:zl.current!==null?(i=Cg(i,l,f),ui(i,a)||(ln=!0),i):(Na&42)===0?(ln=!0,i.memoizedState=l):(i=wS(),Ht.lanes|=i,Fa|=i,a)}function w1(i,a,l,f,g){var x=K.p;K.p=x!==0&&8>x?x:8;var O=B.T,X={};B.T=X,jg(i,!1,a,l);try{var te=g(),pe=B.S;if(pe!==null&&pe(X,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Re=cA(te,f);xu(i,a,Re,hi(i))}else xu(i,a,f,hi(i))}catch(Ne){xu(i,a,{then:function(){},status:"rejected",reason:Ne},hi())}finally{K.p=x,B.T=O}}function hA(){}function Tg(i,a,l,f){if(i.tag!==5)throw Error(n(476));var g=C1(i).queue;w1(i,g,a,re,l===null?hA:function(){return T1(i),l(f)})}function C1(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:re},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:l},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function T1(i){var a=C1(i).next.queue;xu(i,a,{},hi())}function Eg(){return En(Du)}function E1(){return Xr().memoizedState}function j1(){return Xr().memoizedState}function mA(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var l=hi();i=$a(l);var f=Da(a,i,l);f!==null&&(Ln(f,a,l),Cu(f,a,l)),a={cache:lg()},i.payload=a;return}a=a.return}}function gA(i,a,l){var f=hi();l={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Fp(i)?M1(a,l):(l=tg(i,a,l,f),l!==null&&(Ln(l,i,f),R1(l,a,f)))}function A1(i,a,l){var f=hi();xu(i,a,l,f)}function xu(i,a,l,f){var g={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Fp(i))M1(a,g);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var O=a.lastRenderedState,X=x(O,l);if(g.hasEagerState=!0,g.eagerState=X,ui(X,O))return Mp(i,a,g,0),wr===null&&Ap(),!1}catch{}finally{}if(l=tg(i,a,g,f),l!==null)return Ln(l,i,f),R1(l,a,f),!0}return!1}function jg(i,a,l,f){if(f={lane:2,revertLane:my(),action:f,hasEagerState:!1,eagerState:null,next:null},Fp(i)){if(a)throw Error(n(479))}else a=tg(i,l,f,2),a!==null&&Ln(a,i,2)}function Fp(i){var a=i.alternate;return i===Ht||a!==null&&a===Ht}function M1(i,a){Hl=zp=!0;var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}function R1(i,a,l){if((l&4194176)!==0){var f=a.lanes;f&=i.pendingLanes,l|=f,a.lanes=l,nr(i,l)}}var Co={readContext:En,use:Hp,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useLayoutEffect:Ur,useInsertionEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useSyncExternalStore:Ur,useId:Ur};Co.useCacheRefresh=Ur,Co.useMemoCache=Ur,Co.useHostTransitionStatus=Ur,Co.useFormState=Ur,Co.useActionState=Ur,Co.useOptimistic=Ur;var Bs={readContext:En,use:Hp,useCallback:function(i,a){return Xn().memoizedState=[i,a===void 0?null:a],i},useContext:En,useEffect:h1,useImperativeHandle:function(i,a,l){l=l!=null?l.concat([i]):null,Vp(4194308,4,y1.bind(null,a,i),l)},useLayoutEffect:function(i,a){return Vp(4194308,4,i,a)},useInsertionEffect:function(i,a){Vp(4,2,i,a)},useMemo:function(i,a){var l=Xn();a=a===void 0?null:a;var f=i();if(Is){Gt(!0);try{i()}finally{Gt(!1)}}return l.memoizedState=[f,a],f},useReducer:function(i,a,l){var f=Xn();if(l!==void 0){var g=l(a);if(Is){Gt(!0);try{l(a)}finally{Gt(!1)}}}else g=a;return f.memoizedState=f.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},f.queue=i,i=i.dispatch=gA.bind(null,Ht,i),[f.memoizedState,i]},useRef:function(i){var a=Xn();return i={current:i},a.memoizedState=i},useState:function(i){i=bg(i);var a=i.queue,l=A1.bind(null,Ht,a);return a.dispatch=l,[i.memoizedState,l]},useDebugValue:wg,useDeferredValue:function(i,a){var l=Xn();return Cg(l,i,a)},useTransition:function(){var i=bg(!1);return i=w1.bind(null,Ht,i.queue,!0,!1),Xn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,l){var f=Ht,g=Xn();if(er){if(l===void 0)throw Error(n(407));l=l()}else{if(l=a(),wr===null)throw Error(n(349));(Jt&60)!==0||Zx(f,a,l)}g.memoizedState=l;var x={value:l,getSnapshot:a};return g.queue=x,h1(e1.bind(null,f,x,i),[i]),f.flags|=2048,Vl(9,Jx.bind(null,f,x,l,a),{destroy:void 0},null),l},useId:function(){var i=Xn(),a=wr.identifierPrefix;if(er){var l=ea,f=Jo;l=(f&~(1<<32-Xt(f)-1)).toString(32)+l,a=":"+a+"R"+l,l=$p++,0<l&&(a+="H"+l.toString(32)),a+=":"}else l=uA++,a=":"+a+"r"+l.toString(32)+":";return i.memoizedState=a},useCacheRefresh:function(){return Xn().memoizedState=mA.bind(null,Ht)}};Bs.useMemoCache=gg,Bs.useHostTransitionStatus=Eg,Bs.useFormState=c1,Bs.useActionState=c1,Bs.useOptimistic=function(i){var a=Xn();a.memoizedState=a.baseState=i;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=jg.bind(null,Ht,!0,l),l.dispatch=a,[i,a]};var Ia={readContext:En,use:Hp,useCallback:b1,useContext:En,useEffect:Sg,useImperativeHandle:v1,useInsertionEffect:m1,useLayoutEffect:g1,useMemo:x1,useReducer:Up,useRef:f1,useState:function(){return Up(ra)},useDebugValue:wg,useDeferredValue:function(i,a){var l=Xr();return S1(l,fr.memoizedState,i,a)},useTransition:function(){var i=Up(ra)[0],a=Xr().memoizedState;return[typeof i=="boolean"?i:bu(i),a]},useSyncExternalStore:Kx,useId:E1};Ia.useCacheRefresh=j1,Ia.useMemoCache=gg,Ia.useHostTransitionStatus=Eg,Ia.useFormState=u1,Ia.useActionState=u1,Ia.useOptimistic=function(i,a){var l=Xr();return n1(l,fr,i,a)};var zs={readContext:En,use:Hp,useCallback:b1,useContext:En,useEffect:Sg,useImperativeHandle:v1,useInsertionEffect:m1,useLayoutEffect:g1,useMemo:x1,useReducer:vg,useRef:f1,useState:function(){return vg(ra)},useDebugValue:wg,useDeferredValue:function(i,a){var l=Xr();return fr===null?Cg(l,i,a):S1(l,fr.memoizedState,i,a)},useTransition:function(){var i=vg(ra)[0],a=Xr().memoizedState;return[typeof i=="boolean"?i:bu(i),a]},useSyncExternalStore:Kx,useId:E1};zs.useCacheRefresh=j1,zs.useMemoCache=gg,zs.useHostTransitionStatus=Eg,zs.useFormState=p1,zs.useActionState=p1,zs.useOptimistic=function(i,a){var l=Xr();return fr!==null?n1(l,fr,i,a):(l.baseState=i,[i,l.queue.dispatch])};function Ag(i,a,l,f){a=i.memoizedState,l=l(f,a),l=l==null?a:G({},a,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var Mg={isMounted:function(i){return(i=i._reactInternals)?ee(i)===i:!1},enqueueSetState:function(i,a,l){i=i._reactInternals;var f=hi(),g=$a(f);g.payload=a,l!=null&&(g.callback=l),a=Da(i,g,f),a!==null&&(Ln(a,i,f),Cu(a,i,f))},enqueueReplaceState:function(i,a,l){i=i._reactInternals;var f=hi(),g=$a(f);g.tag=1,g.payload=a,l!=null&&(g.callback=l),a=Da(i,g,f),a!==null&&(Ln(a,i,f),Cu(a,i,f))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var l=hi(),f=$a(l);f.tag=2,a!=null&&(f.callback=a),a=Da(i,f,l),a!==null&&(Ln(a,i,l),Cu(a,i,l))}};function k1(i,a,l,f,g,x,O){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(f,x,O):a.prototype&&a.prototype.isPureReactComponent?!su(l,f)||!su(g,x):!0}function O1(i,a,l,f){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,f),a.state!==i&&Mg.enqueueReplaceState(a,a.state,null)}function $s(i,a){var l=a;if("ref"in a){l={};for(var f in a)f!=="ref"&&(l[f]=a[f])}if(i=i.defaultProps){l===a&&(l=G({},l));for(var g in i)l[g]===void 0&&(l[g]=i[g])}return l}var Wp=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function P1(i){Wp(i)}function _1(i){console.error(i)}function L1(i){Wp(i)}function Gp(i,a){try{var l=i.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function N1(i,a,l){try{var f=i.onCaughtError;f(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Rg(i,a,l){return l=$a(l),l.tag=3,l.payload={element:null},l.callback=function(){Gp(i,a)},l}function I1(i){return i=$a(i),i.tag=3,i}function B1(i,a,l,f){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var x=f.value;i.payload=function(){return g(x)},i.callback=function(){N1(a,l,f)}}var O=l.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(i.callback=function(){N1(a,l,f),typeof g!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var X=f.stack;this.componentDidCatch(f.value,{componentStack:X!==null?X:""})})}function yA(i,a,l,f,g){if(l.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=l.alternate,a!==null&&wu(a,l,g,!0),l=Oi.current,l!==null){switch(l.tag){case 13:return wo===null?uy():l.alternate===null&&Br===0&&(Br=3),l.flags&=-257,l.flags|=65536,l.lanes=g,f===og?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([f]):a.add(f),py(i,f,g)),!1;case 22:return l.flags|=65536,f===og?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([f]):l.add(f)),py(i,f,g)),!1}throw Error(n(435,l.tag))}return py(i,f,g),uy(),!1}if(er)return a=Oi.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,f!==ig&&(i=Error(n(422),{cause:f}),du(Mi(i,l)))):(f!==ig&&(a=Error(n(423),{cause:f}),du(Mi(a,l))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,f=Mi(f,l),g=Rg(i.stateNode,f,g),qg(i,g),Br!==4&&(Br=2)),!1;var x=Error(n(520),{cause:f});if(x=Mi(x,l),Ou===null?Ou=[x]:Ou.push(x),Br!==4&&(Br=2),a===null)return!0;f=Mi(f,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,i=g&-g,l.lanes|=i,i=Rg(l.stateNode,f,i),qg(l,i),!1;case 1:if(a=l.type,x=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Wa===null||!Wa.has(x))))return l.flags|=65536,g&=-g,l.lanes|=g,g=I1(g),B1(g,i,l,f),qg(l,g),!1}l=l.return}while(l!==null);return!1}var z1=Error(n(461)),ln=!1;function xn(i,a,l,f){a.child=i===null?Vx(a,null,l,f):Ls(a,i.child,l,f)}function $1(i,a,l,f,g){l=l.render;var x=a.ref;if("ref"in f){var O={};for(var X in f)X!=="ref"&&(O[X]=f[X])}else O=f;return Hs(a),f=pg(i,a,l,O,x,g),X=fg(),i!==null&&!ln?(hg(i,a,g),na(i,a,g)):(er&&X&&rg(a),a.flags|=1,xn(i,a,f,g),a.child)}function D1(i,a,l,f,g){if(i===null){var x=l.type;return typeof x=="function"&&!Zg(x)&&x.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=x,H1(i,a,x,f,g)):(i=Zp(l.type,null,f,a,a.mode,g),i.ref=a.ref,i.return=a,a.child=i)}if(x=i.child,!zg(i,g)){var O=x.memoizedProps;if(l=l.compare,l=l!==null?l:su,l(O,f)&&i.ref===a.ref)return na(i,a,g)}return a.flags|=1,i=qa(x,f),i.ref=a.ref,i.return=a,a.child=i}function H1(i,a,l,f,g){if(i!==null){var x=i.memoizedProps;if(su(x,f)&&i.ref===a.ref)if(ln=!1,a.pendingProps=f=x,zg(i,g))(i.flags&131072)!==0&&(ln=!0);else return a.lanes=i.lanes,na(i,a,g)}return kg(i,a,l,f,g)}function U1(i,a,l){var f=a.pendingProps,g=f.children,x=(a.stateNode._pendingVisibility&2)!==0,O=i!==null?i.memoizedState:null;if(Su(i,a),f.mode==="hidden"||x){if((a.flags&128)!==0){if(f=O!==null?O.baseLanes|l:l,i!==null){for(g=a.child=i.child,x=0;g!==null;)x=x|g.lanes|g.childLanes,g=g.sibling;a.childLanes=x&~f}else a.childLanes=0,a.child=null;return V1(i,a,f,l)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&Bp(a,O!==null?O.cachePool:null),O!==null?qx(a,O):ag(),Fx(a);else return a.lanes=a.childLanes=536870912,V1(i,a,O!==null?O.baseLanes|l:l,l)}else O!==null?(Bp(a,O.cachePool),qx(a,O),La(),a.memoizedState=null):(i!==null&&Bp(a,null),ag(),La());return xn(i,a,g,l),a.child}function V1(i,a,l,f){var g=ug();return g=g===null?null:{parent:rn._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},i!==null&&Bp(a,null),ag(),Fx(a),i!==null&&wu(i,a,f,!0),null}function Su(i,a){var l=a.ref;if(l===null)i!==null&&i.ref!==null&&(a.flags|=2097664);else{if(typeof l!="function"&&typeof l!="object")throw Error(n(284));(i===null||i.ref!==l)&&(a.flags|=2097664)}}function kg(i,a,l,f,g){return Hs(a),l=pg(i,a,l,f,void 0,g),f=fg(),i!==null&&!ln?(hg(i,a,g),na(i,a,g)):(er&&f&&rg(a),a.flags|=1,xn(i,a,l,g),a.child)}function q1(i,a,l,f,g,x){return Hs(a),a.updateQueue=null,l=Qx(a,f,l,g),Yx(i),f=fg(),i!==null&&!ln?(hg(i,a,x),na(i,a,x)):(er&&f&&rg(a),a.flags|=1,xn(i,a,l,x),a.child)}function F1(i,a,l,f,g){if(Hs(a),a.stateNode===null){var x=Ll,O=l.contextType;typeof O=="object"&&O!==null&&(x=En(O)),x=new l(f,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Mg,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=f,x.state=a.memoizedState,x.refs={},Ug(a),O=l.contextType,x.context=typeof O=="object"&&O!==null?En(O):Ll,x.state=a.memoizedState,O=l.getDerivedStateFromProps,typeof O=="function"&&(Ag(a,l,O,f),x.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(O=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),O!==x.state&&Mg.enqueueReplaceState(x,x.state,null),Eu(a,f,x,g),Tu(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(i===null){x=a.stateNode;var X=a.memoizedProps,te=$s(l,X);x.props=te;var pe=x.context,Re=l.contextType;O=Ll,typeof Re=="object"&&Re!==null&&(O=En(Re));var Ne=l.getDerivedStateFromProps;Re=typeof Ne=="function"||typeof x.getSnapshotBeforeUpdate=="function",X=a.pendingProps!==X,Re||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(X||pe!==O)&&O1(a,x,f,O),za=!1;var Se=a.memoizedState;x.state=Se,Eu(a,f,x,g),Tu(),pe=a.memoizedState,X||Se!==pe||za?(typeof Ne=="function"&&(Ag(a,l,Ne,f),pe=a.memoizedState),(te=za||k1(a,l,te,f,Se,pe,O))?(Re||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=pe),x.props=f,x.state=pe,x.context=O,f=te):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{x=a.stateNode,Vg(i,a),O=a.memoizedProps,Re=$s(l,O),x.props=Re,Ne=a.pendingProps,Se=x.context,pe=l.contextType,te=Ll,typeof pe=="object"&&pe!==null&&(te=En(pe)),X=l.getDerivedStateFromProps,(pe=typeof X=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(O!==Ne||Se!==te)&&O1(a,x,f,te),za=!1,Se=a.memoizedState,x.state=Se,Eu(a,f,x,g),Tu();var Me=a.memoizedState;O!==Ne||Se!==Me||za||i!==null&&i.dependencies!==null&&Xp(i.dependencies)?(typeof X=="function"&&(Ag(a,l,X,f),Me=a.memoizedState),(Re=za||k1(a,l,Re,f,Se,Me,te)||i!==null&&i.dependencies!==null&&Xp(i.dependencies))?(pe||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,Me,te),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,Me,te)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||O===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=Me),x.props=f,x.state=Me,x.context=te,f=Re):(typeof x.componentDidUpdate!="function"||O===i.memoizedProps&&Se===i.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===i.memoizedProps&&Se===i.memoizedState||(a.flags|=1024),f=!1)}return x=f,Su(i,a),f=(a.flags&128)!==0,x||f?(x=a.stateNode,l=f&&typeof l.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,i!==null&&f?(a.child=Ls(a,i.child,null,g),a.child=Ls(a,null,l,g)):xn(i,a,l,g),a.memoizedState=x.state,i=a.child):i=na(i,a,g),i}function W1(i,a,l,f){return uu(),a.flags|=256,xn(i,a,l,f),a.child}var Og={dehydrated:null,treeContext:null,retryLane:0};function Pg(i){return{baseLanes:i,cachePool:Xx()}}function _g(i,a,l){return i=i!==null?i.childLanes&~l:0,a&&(i|=Ni),i}function G1(i,a,l){var f=a.pendingProps,g=!1,x=(a.flags&128)!==0,O;if((O=x)||(O=i!==null&&i.memoizedState===null?!1:(tn.current&2)!==0),O&&(g=!0,a.flags&=-129),O=(a.flags&32)!==0,a.flags&=-33,i===null){if(er){if(g?_a(a):La(),er){var X=bn,te;if(te=X){e:{for(te=X,X=So;te.nodeType!==8;){if(!X){X=null;break e}if(te=io(te.nextSibling),te===null){X=null;break e}}X=te}X!==null?(a.memoizedState={dehydrated:X,treeContext:Os!==null?{id:Jo,overflow:ea}:null,retryLane:536870912},te=Li(18,null,null,0),te.stateNode=X,te.return=a,a.child=te,_n=a,bn=null,te=!0):te=!1}te||_s(a)}if(X=a.memoizedState,X!==null&&(X=X.dehydrated,X!==null))return X.data==="$!"?a.lanes=16:a.lanes=536870912,null;ta(a)}return X=f.children,f=f.fallback,g?(La(),g=a.mode,X=Ng({mode:"hidden",children:X},g),f=Vs(f,g,l,null),X.return=a,f.return=a,X.sibling=f,a.child=X,g=a.child,g.memoizedState=Pg(l),g.childLanes=_g(i,O,l),a.memoizedState=Og,f):(_a(a),Lg(a,X))}if(te=i.memoizedState,te!==null&&(X=te.dehydrated,X!==null)){if(x)a.flags&256?(_a(a),a.flags&=-257,a=Ig(i,a,l)):a.memoizedState!==null?(La(),a.child=i.child,a.flags|=128,a=null):(La(),g=f.fallback,X=a.mode,f=Ng({mode:"visible",children:f.children},X),g=Vs(g,X,l,null),g.flags|=2,f.return=a,g.return=a,f.sibling=g,a.child=f,Ls(a,i.child,null,l),f=a.child,f.memoizedState=Pg(l),f.childLanes=_g(i,O,l),a.memoizedState=Og,a=g);else if(_a(a),X.data==="$!"){if(O=X.nextSibling&&X.nextSibling.dataset,O)var pe=O.dgst;O=pe,f=Error(n(419)),f.stack="",f.digest=O,du({value:f,source:null,stack:null}),a=Ig(i,a,l)}else if(ln||wu(i,a,l,!1),O=(l&i.childLanes)!==0,ln||O){if(O=wr,O!==null){if(f=l&-l,(f&42)!==0)f=1;else switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=64;break;case 268435456:f=134217728;break;default:f=0}if(f=(f&(O.suspendedLanes|l))!==0?0:f,f!==0&&f!==te.retryLane)throw te.retryLane=f,Pa(i,f),Ln(O,i,f),z1}X.data==="$?"||uy(),a=Ig(i,a,l)}else X.data==="$?"?(a.flags|=128,a.child=i.child,a=PA.bind(null,i),X._reactRetry=a,a=null):(i=te.treeContext,bn=io(X.nextSibling),_n=a,er=!0,ro=null,So=!1,i!==null&&(Ri[ki++]=Jo,Ri[ki++]=ea,Ri[ki++]=Os,Jo=i.id,ea=i.overflow,Os=a),a=Lg(a,f.children),a.flags|=4096);return a}return g?(La(),g=f.fallback,X=a.mode,te=i.child,pe=te.sibling,f=qa(te,{mode:"hidden",children:f.children}),f.subtreeFlags=te.subtreeFlags&31457280,pe!==null?g=qa(pe,g):(g=Vs(g,X,l,null),g.flags|=2),g.return=a,f.return=a,f.sibling=g,a.child=f,f=g,g=a.child,X=i.child.memoizedState,X===null?X=Pg(l):(te=X.cachePool,te!==null?(pe=rn._currentValue,te=te.parent!==pe?{parent:pe,pool:pe}:te):te=Xx(),X={baseLanes:X.baseLanes|l,cachePool:te}),g.memoizedState=X,g.childLanes=_g(i,O,l),a.memoizedState=Og,f):(_a(a),l=i.child,i=l.sibling,l=qa(l,{mode:"visible",children:f.children}),l.return=a,l.sibling=null,i!==null&&(O=a.deletions,O===null?(a.deletions=[i],a.flags|=16):O.push(i)),a.child=l,a.memoizedState=null,l)}function Lg(i,a){return a=Ng({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function Ng(i,a){return bS(i,a,0,null)}function Ig(i,a,l){return Ls(a,i.child,null,l),i=Lg(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function X1(i,a,l){i.lanes|=a;var f=i.alternate;f!==null&&(f.lanes|=a),Dg(i.return,a,l)}function Bg(i,a,l,f,g){var x=i.memoizedState;x===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=l,x.tailMode=g)}function Y1(i,a,l){var f=a.pendingProps,g=f.revealOrder,x=f.tail;if(xn(i,a,f.children,l),f=tn.current,(f&2)!==0)f=f&1|2,a.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&X1(i,l,a);else if(i.tag===19)X1(i,l,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}f&=1}switch(se(tn,f),g){case"forwards":for(l=a.child,g=null;l!==null;)i=l.alternate,i!==null&&Ip(i)===null&&(g=l),l=l.sibling;l=g,l===null?(g=a.child,a.child=null):(g=l.sibling,l.sibling=null),Bg(a,!1,g,l,x);break;case"backwards":for(l=null,g=a.child,a.child=null;g!==null;){if(i=g.alternate,i!==null&&Ip(i)===null){a.child=g;break}i=g.sibling,g.sibling=l,l=g,g=i}Bg(a,!0,l,null,x);break;case"together":Bg(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function na(i,a,l){if(i!==null&&(a.dependencies=i.dependencies),Fa|=a.lanes,(l&a.childLanes)===0)if(i!==null){if(wu(i,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(n(153));if(a.child!==null){for(i=a.child,l=qa(i,i.pendingProps),a.child=l,l.return=a;i.sibling!==null;)i=i.sibling,l=l.sibling=qa(i,i.pendingProps),l.return=a;l.sibling=null}return a.child}function zg(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&Xp(i)))}function vA(i,a,l){switch(a.tag){case 3:Ie(a,a.stateNode.containerInfo),Ba(a,rn,i.memoizedState.cache),uu();break;case 27:case 5:ct(a);break;case 4:Ie(a,a.stateNode.containerInfo);break;case 10:Ba(a,a.type,a.memoizedProps.value);break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(_a(a),a.flags|=128,null):(l&a.child.childLanes)!==0?G1(i,a,l):(_a(a),i=na(i,a,l),i!==null?i.sibling:null);_a(a);break;case 19:var g=(i.flags&128)!==0;if(f=(l&a.childLanes)!==0,f||(wu(i,a,l,!1),f=(l&a.childLanes)!==0),g){if(f)return Y1(i,a,l);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),se(tn,tn.current),f)break;return null;case 22:case 23:return a.lanes=0,U1(i,a,l);case 24:Ba(a,rn,i.memoizedState.cache)}return na(i,a,l)}function Q1(i,a,l){if(i!==null)if(i.memoizedProps!==a.pendingProps)ln=!0;else{if(!zg(i,l)&&(a.flags&128)===0)return ln=!1,vA(i,a,l);ln=(i.flags&131072)!==0}else ln=!1,er&&(a.flags&1048576)!==0&&Lx(a,Op,a.index);switch(a.lanes=0,a.tag){case 16:e:{i=a.pendingProps;var f=a.elementType,g=f._init;if(f=g(f._payload),a.type=f,typeof f=="function")Zg(f)?(i=$s(f,i),a.tag=1,a=F1(null,a,f,i,l)):(a.tag=0,a=kg(null,a,f,i,l));else{if(f!=null){if(g=f.$$typeof,g===w){a.tag=11,a=$1(null,a,f,i,l);break e}else if(g===M){a.tag=14,a=D1(null,a,f,i,l);break e}}throw a=_(f)||f,Error(n(306,a,""))}}return a;case 0:return kg(i,a,a.type,a.pendingProps,l);case 1:return f=a.type,g=$s(f,a.pendingProps),F1(i,a,f,g,l);case 3:e:{if(Ie(a,a.stateNode.containerInfo),i===null)throw Error(n(387));var x=a.pendingProps;g=a.memoizedState,f=g.element,Vg(i,a),Eu(a,x,null,l);var O=a.memoizedState;if(x=O.cache,Ba(a,rn,x),x!==g.cache&&Hg(a,[rn],l,!0),Tu(),x=O.element,g.isDehydrated)if(g={element:x,isDehydrated:!1,cache:O.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=W1(i,a,x,l);break e}else if(x!==f){f=Mi(Error(n(424)),a),du(f),a=W1(i,a,x,l);break e}else for(bn=io(a.stateNode.containerInfo.firstChild),_n=a,er=!0,ro=null,So=!0,l=Vx(a,null,x,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(uu(),x===f){a=na(i,a,l);break e}xn(i,a,x,l)}a=a.child}return a;case 26:return Su(i,a),i===null?(l=JS(a.type,null,a.pendingProps,null))?a.memoizedState=l:er||(l=a.type,i=a.pendingProps,f=df(Be.current).createElement(l),f[Sr]=a,f[Kt]=i,Sn(f,l,i),$t(f),a.stateNode=f):a.memoizedState=JS(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return ct(a),i===null&&er&&(f=a.stateNode=QS(a.type,a.pendingProps,Be.current),_n=a,So=!0,bn=io(f.firstChild)),f=a.pendingProps.children,i!==null||er?xn(i,a,f,l):a.child=Ls(a,null,f,l),Su(i,a),a.child;case 5:return i===null&&er&&((g=f=bn)&&(f=XA(f,a.type,a.pendingProps,So),f!==null?(a.stateNode=f,_n=a,bn=io(f.firstChild),So=!1,g=!0):g=!1),g||_s(a)),ct(a),g=a.type,x=a.pendingProps,O=i!==null?i.memoizedProps:null,f=x.children,Ty(g,x)?f=null:O!==null&&Ty(g,O)&&(a.flags|=32),a.memoizedState!==null&&(g=pg(i,a,dA,null,null,l),Du._currentValue=g),Su(i,a),xn(i,a,f,l),a.child;case 6:return i===null&&er&&((i=l=bn)&&(l=YA(l,a.pendingProps,So),l!==null?(a.stateNode=l,_n=a,bn=null,i=!0):i=!1),i||_s(a)),null;case 13:return G1(i,a,l);case 4:return Ie(a,a.stateNode.containerInfo),f=a.pendingProps,i===null?a.child=Ls(a,null,f,l):xn(i,a,f,l),a.child;case 11:return $1(i,a,a.type,a.pendingProps,l);case 7:return xn(i,a,a.pendingProps,l),a.child;case 8:return xn(i,a,a.pendingProps.children,l),a.child;case 12:return xn(i,a,a.pendingProps.children,l),a.child;case 10:return f=a.pendingProps,Ba(a,a.type,f.value),xn(i,a,f.children,l),a.child;case 9:return g=a.type._context,f=a.pendingProps.children,Hs(a),g=En(g),f=f(g),a.flags|=1,xn(i,a,f,l),a.child;case 14:return D1(i,a,a.type,a.pendingProps,l);case 15:return H1(i,a,a.type,a.pendingProps,l);case 19:return Y1(i,a,l);case 22:return U1(i,a,l);case 24:return Hs(a),f=En(rn),i===null?(g=ug(),g===null&&(g=wr,x=lg(),g.pooledCache=x,x.refCount++,x!==null&&(g.pooledCacheLanes|=l),g=x),a.memoizedState={parent:f,cache:g},Ug(a),Ba(a,rn,g)):((i.lanes&l)!==0&&(Vg(i,a),Eu(a,null,null,l),Tu()),g=i.memoizedState,x=a.memoizedState,g.parent!==f?(g={parent:f,cache:f},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Ba(a,rn,f)):(f=x.cache,Ba(a,rn,f),f!==g.cache&&Hg(a,[rn],l,!0))),xn(i,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}var $g=Ce(null),Ds=null,ia=null;function Ba(i,a,l){se($g,a._currentValue),a._currentValue=l}function oa(i){i._currentValue=$g.current,be($g)}function Dg(i,a,l){for(;i!==null;){var f=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),i===l)break;i=i.return}}function Hg(i,a,l,f){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var x=g.dependencies;if(x!==null){var O=g.child;x=x.firstContext;e:for(;x!==null;){var X=x;x=g;for(var te=0;te<a.length;te++)if(X.context===a[te]){x.lanes|=l,X=x.alternate,X!==null&&(X.lanes|=l),Dg(x.return,l,i),f||(O=null);break e}x=X.next}}else if(g.tag===18){if(O=g.return,O===null)throw Error(n(341));O.lanes|=l,x=O.alternate,x!==null&&(x.lanes|=l),Dg(O,l,i),O=null}else O=g.child;if(O!==null)O.return=g;else for(O=g;O!==null;){if(O===i){O=null;break}if(g=O.sibling,g!==null){g.return=O.return,O=g;break}O=O.return}g=O}}function wu(i,a,l,f){i=null;for(var g=a,x=!1;g!==null;){if(!x){if((g.flags&524288)!==0)x=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var O=g.alternate;if(O===null)throw Error(n(387));if(O=O.memoizedProps,O!==null){var X=g.type;ui(g.pendingProps.value,O.value)||(i!==null?i.push(X):i=[X])}}else if(g===Ve.current){if(O=g.alternate,O===null)throw Error(n(387));O.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(Du):i=[Du])}g=g.return}i!==null&&Hg(a,i,l,f),a.flags|=262144}function Xp(i){for(i=i.firstContext;i!==null;){if(!ui(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Hs(i){Ds=i,ia=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function En(i){return K1(Ds,i)}function Yp(i,a){return Ds===null&&Hs(i),K1(i,a)}function K1(i,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},ia===null){if(i===null)throw Error(n(308));ia=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else ia=ia.next=a;return l}var za=!1;function Ug(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vg(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function $a(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Da(i,a,l){var f=i.updateQueue;if(f===null)return null;if(f=f.shared,(Pr&2)!==0){var g=f.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a,a=Rp(i),Px(i,null,l),a}return Mp(i,f,a,l),Rp(i)}function Cu(i,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194176)!==0)){var f=a.lanes;f&=i.pendingLanes,l|=f,a.lanes=l,nr(i,l)}}function qg(i,a){var l=i.updateQueue,f=i.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var g=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var O={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};x===null?g=x=O:x=x.next=O,l=l.next}while(l!==null);x===null?g=x=a:x=x.next=a}else g=x=a;l={baseState:f.baseState,firstBaseUpdate:g,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=a:i.next=a,l.lastBaseUpdate=a}var Fg=!1;function Tu(){if(Fg){var i=Dl;if(i!==null)throw i}}function Eu(i,a,l,f){Fg=!1;var g=i.updateQueue;za=!1;var x=g.firstBaseUpdate,O=g.lastBaseUpdate,X=g.shared.pending;if(X!==null){g.shared.pending=null;var te=X,pe=te.next;te.next=null,O===null?x=pe:O.next=pe,O=te;var Re=i.alternate;Re!==null&&(Re=Re.updateQueue,X=Re.lastBaseUpdate,X!==O&&(X===null?Re.firstBaseUpdate=pe:X.next=pe,Re.lastBaseUpdate=te))}if(x!==null){var Ne=g.baseState;O=0,Re=pe=te=null,X=x;do{var Se=X.lane&-536870913,Me=Se!==X.lane;if(Me?(Jt&Se)===Se:(f&Se)===Se){Se!==0&&Se===$l&&(Fg=!0),Re!==null&&(Re=Re.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});e:{var pt=i,Rt=X;Se=a;var zr=l;switch(Rt.tag){case 1:if(pt=Rt.payload,typeof pt=="function"){Ne=pt.call(zr,Ne,Se);break e}Ne=pt;break e;case 3:pt.flags=pt.flags&-65537|128;case 0:if(pt=Rt.payload,Se=typeof pt=="function"?pt.call(zr,Ne,Se):pt,Se==null)break e;Ne=G({},Ne,Se);break e;case 2:za=!0}}Se=X.callback,Se!==null&&(i.flags|=64,Me&&(i.flags|=8192),Me=g.callbacks,Me===null?g.callbacks=[Se]:Me.push(Se))}else Me={lane:Se,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Re===null?(pe=Re=Me,te=Ne):Re=Re.next=Me,O|=Se;if(X=X.next,X===null){if(X=g.shared.pending,X===null)break;Me=X,X=Me.next,Me.next=null,g.lastBaseUpdate=Me,g.shared.pending=null}}while(!0);Re===null&&(te=Ne),g.baseState=te,g.firstBaseUpdate=pe,g.lastBaseUpdate=Re,x===null&&(g.shared.lanes=0),Fa|=O,i.lanes=O,i.memoizedState=Ne}}function Z1(i,a){if(typeof i!="function")throw Error(n(191,i));i.call(a)}function J1(i,a){var l=i.callbacks;if(l!==null)for(i.callbacks=null,i=0;i<l.length;i++)Z1(l[i],a)}function ju(i,a){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var g=f.next;l=g;do{if((l.tag&i)===i){f=void 0;var x=l.create,O=l.inst;f=x(),O.destroy=f}l=l.next}while(l!==g)}}catch(X){vr(a,a.return,X)}}function Ha(i,a,l){try{var f=a.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var x=g.next;f=x;do{if((f.tag&i)===i){var O=f.inst,X=O.destroy;if(X!==void 0){O.destroy=void 0,g=a;var te=l;try{X()}catch(pe){vr(g,te,pe)}}}f=f.next}while(f!==x)}}catch(pe){vr(a,a.return,pe)}}function eS(i){var a=i.updateQueue;if(a!==null){var l=i.stateNode;try{J1(a,l)}catch(f){vr(i,i.return,f)}}}function tS(i,a,l){l.props=$s(i.type,i.memoizedProps),l.state=i.memoizedState;try{l.componentWillUnmount()}catch(f){vr(i,a,f)}}function Us(i,a){try{var l=i.ref;if(l!==null){var f=i.stateNode;switch(i.tag){case 26:case 27:case 5:var g=f;break;default:g=f}typeof l=="function"?i.refCleanup=l(g):l.current=g}}catch(x){vr(i,a,x)}}function di(i,a){var l=i.ref,f=i.refCleanup;if(l!==null)if(typeof f=="function")try{f()}catch(g){vr(i,a,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){vr(i,a,g)}else l.current=null}function rS(i){var a=i.type,l=i.memoizedProps,f=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&f.focus();break e;case"img":l.src?f.src=l.src:l.srcSet&&(f.srcset=l.srcSet)}}catch(g){vr(i,i.return,g)}}function nS(i,a,l){try{var f=i.stateNode;VA(f,i.type,l,a),f[Kt]=a}catch(g){vr(i,i.return,g)}}function iS(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function Wg(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||iS(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Gg(i,a,l){var f=i.tag;if(f===5||f===6)i=i.stateNode,a?l.nodeType===8?l.parentNode.insertBefore(i,a):l.insertBefore(i,a):(l.nodeType===8?(a=l.parentNode,a.insertBefore(i,l)):(a=l,a.appendChild(i)),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=uf));else if(f!==4&&f!==27&&(i=i.child,i!==null))for(Gg(i,a,l),i=i.sibling;i!==null;)Gg(i,a,l),i=i.sibling}function Qp(i,a,l){var f=i.tag;if(f===5||f===6)i=i.stateNode,a?l.insertBefore(i,a):l.appendChild(i);else if(f!==4&&f!==27&&(i=i.child,i!==null))for(Qp(i,a,l),i=i.sibling;i!==null;)Qp(i,a,l),i=i.sibling}var aa=!1,Ir=!1,Xg=!1,oS=typeof WeakSet=="function"?WeakSet:Set,cn=null,aS=!1;function bA(i,a){if(i=i.containerInfo,wy=yf,i=Cx(i),Qm(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var g=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var O=0,X=-1,te=-1,pe=0,Re=0,Ne=i,Se=null;t:for(;;){for(var Me;Ne!==l||g!==0&&Ne.nodeType!==3||(X=O+g),Ne!==x||f!==0&&Ne.nodeType!==3||(te=O+f),Ne.nodeType===3&&(O+=Ne.nodeValue.length),(Me=Ne.firstChild)!==null;)Se=Ne,Ne=Me;for(;;){if(Ne===i)break t;if(Se===l&&++pe===g&&(X=O),Se===x&&++Re===f&&(te=O),(Me=Ne.nextSibling)!==null)break;Ne=Se,Se=Ne.parentNode}Ne=Me}l=X===-1||te===-1?null:{start:X,end:te}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cy={focusedElem:i,selectionRange:l},yf=!1,cn=a;cn!==null;)if(a=cn,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,cn=i;else for(;cn!==null;){switch(a=cn,x=a.alternate,i=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,l=a,g=x.memoizedProps,x=x.memoizedState,f=l.stateNode;try{var pt=$s(l.type,g,l.elementType===l.type);i=f.getSnapshotBeforeUpdate(pt,x),f.__reactInternalSnapshotBeforeUpdate=i}catch(Rt){vr(l,l.return,Rt)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,l=i.nodeType,l===9)Ay(i);else if(l===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Ay(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(n(163))}if(i=a.sibling,i!==null){i.return=a.return,cn=i;break}cn=a.return}return pt=aS,aS=!1,pt}function sS(i,a,l){var f=l.flags;switch(l.tag){case 0:case 11:case 15:la(i,l),f&4&&ju(5,l);break;case 1:if(la(i,l),f&4)if(i=l.stateNode,a===null)try{i.componentDidMount()}catch(X){vr(l,l.return,X)}else{var g=$s(l.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(g,a,i.__reactInternalSnapshotBeforeUpdate)}catch(X){vr(l,l.return,X)}}f&64&&eS(l),f&512&&Us(l,l.return);break;case 3:if(la(i,l),f&64&&(f=l.updateQueue,f!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{J1(f,i)}catch(X){vr(l,l.return,X)}}break;case 26:la(i,l),f&512&&Us(l,l.return);break;case 27:case 5:la(i,l),a===null&&f&4&&rS(l),f&512&&Us(l,l.return);break;case 12:la(i,l);break;case 13:la(i,l),f&4&&uS(i,l);break;case 22:if(g=l.memoizedState!==null||aa,!g){a=a!==null&&a.memoizedState!==null||Ir;var x=aa,O=Ir;aa=g,(Ir=a)&&!O?Ua(i,l,(l.subtreeFlags&8772)!==0):la(i,l),aa=x,Ir=O}f&512&&(l.memoizedProps.mode==="manual"?Us(l,l.return):di(l,l.return));break;default:la(i,l)}}function lS(i){var a=i.alternate;a!==null&&(i.alternate=null,lS(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&Ee(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Yr=null,pi=!1;function sa(i,a,l){for(l=l.child;l!==null;)cS(i,a,l),l=l.sibling}function cS(i,a,l){if($e&&typeof $e.onCommitFiberUnmount=="function")try{$e.onCommitFiberUnmount(He,l)}catch{}switch(l.tag){case 26:Ir||di(l,a),sa(i,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ir||di(l,a);var f=Yr,g=pi;for(Yr=l.stateNode,sa(i,a,l),l=l.stateNode,a=l.attributes;a.length;)l.removeAttributeNode(a[0]);Ee(l),Yr=f,pi=g;break;case 5:Ir||di(l,a);case 6:g=Yr;var x=pi;if(Yr=null,sa(i,a,l),Yr=g,pi=x,Yr!==null)if(pi)try{i=Yr,f=l.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)}catch(O){vr(l,a,O)}else try{Yr.removeChild(l.stateNode)}catch(O){vr(l,a,O)}break;case 18:Yr!==null&&(pi?(a=Yr,l=l.stateNode,a.nodeType===8?jy(a.parentNode,l):a.nodeType===1&&jy(a,l),qu(a)):jy(Yr,l.stateNode));break;case 4:f=Yr,g=pi,Yr=l.stateNode.containerInfo,pi=!0,sa(i,a,l),Yr=f,pi=g;break;case 0:case 11:case 14:case 15:Ir||Ha(2,l,a),Ir||Ha(4,l,a),sa(i,a,l);break;case 1:Ir||(di(l,a),f=l.stateNode,typeof f.componentWillUnmount=="function"&&tS(l,a,f)),sa(i,a,l);break;case 21:sa(i,a,l);break;case 22:Ir||di(l,a),Ir=(f=Ir)||l.memoizedState!==null,sa(i,a,l),Ir=f;break;default:sa(i,a,l)}}function uS(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{qu(i)}catch(l){vr(a,a.return,l)}}function xA(i){switch(i.tag){case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new oS),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new oS),a;default:throw Error(n(435,i.tag))}}function Yg(i,a){var l=xA(i);a.forEach(function(f){var g=_A.bind(null,i,f);l.has(f)||(l.add(f),f.then(g,g))})}function Pi(i,a){var l=a.deletions;if(l!==null)for(var f=0;f<l.length;f++){var g=l[f],x=i,O=a,X=O;e:for(;X!==null;){switch(X.tag){case 27:case 5:Yr=X.stateNode,pi=!1;break e;case 3:Yr=X.stateNode.containerInfo,pi=!0;break e;case 4:Yr=X.stateNode.containerInfo,pi=!0;break e}X=X.return}if(Yr===null)throw Error(n(160));cS(x,O,g),Yr=null,pi=!1,x=g.alternate,x!==null&&(x.return=null),g.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)dS(a,i),a=a.sibling}var no=null;function dS(i,a){var l=i.alternate,f=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Pi(a,i),_i(i),f&4&&(Ha(3,i,i.return),ju(3,i),Ha(5,i,i.return));break;case 1:Pi(a,i),_i(i),f&512&&(Ir||l===null||di(l,l.return)),f&64&&aa&&(i=i.updateQueue,i!==null&&(f=i.callbacks,f!==null&&(l=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=l===null?f:l.concat(f))));break;case 26:var g=no;if(Pi(a,i),_i(i),f&512&&(Ir||l===null||di(l,l.return)),f&4){var x=l!==null?l.memoizedState:null;if(f=i.memoizedState,l===null)if(f===null)if(i.stateNode===null){e:{f=i.type,l=i.memoizedProps,g=g.ownerDocument||g;t:switch(f){case"title":x=g.getElementsByTagName("title")[0],(!x||x[Te]||x[Sr]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=g.createElement(f),g.head.insertBefore(x,g.querySelector("head > title"))),Sn(x,f,l),x[Sr]=i,$t(x),f=x;break e;case"link":var O=rw("link","href",g).get(f+(l.href||""));if(O){for(var X=0;X<O.length;X++)if(x=O[X],x.getAttribute("href")===(l.href==null?null:l.href)&&x.getAttribute("rel")===(l.rel==null?null:l.rel)&&x.getAttribute("title")===(l.title==null?null:l.title)&&x.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){O.splice(X,1);break t}}x=g.createElement(f),Sn(x,f,l),g.head.appendChild(x);break;case"meta":if(O=rw("meta","content",g).get(f+(l.content||""))){for(X=0;X<O.length;X++)if(x=O[X],x.getAttribute("content")===(l.content==null?null:""+l.content)&&x.getAttribute("name")===(l.name==null?null:l.name)&&x.getAttribute("property")===(l.property==null?null:l.property)&&x.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&x.getAttribute("charset")===(l.charSet==null?null:l.charSet)){O.splice(X,1);break t}}x=g.createElement(f),Sn(x,f,l),g.head.appendChild(x);break;default:throw Error(n(468,f))}x[Sr]=i,$t(x),f=x}i.stateNode=f}else nw(g,i.type,i.stateNode);else i.stateNode=tw(g,f,i.memoizedProps);else x!==f?(x===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):x.count--,f===null?nw(g,i.type,i.stateNode):tw(g,f,i.memoizedProps)):f===null&&i.stateNode!==null&&nS(i,i.memoizedProps,l.memoizedProps)}break;case 27:if(f&4&&i.alternate===null){g=i.stateNode,x=i.memoizedProps;try{for(var te=g.firstChild;te;){var pe=te.nextSibling,Re=te.nodeName;te[Te]||Re==="HEAD"||Re==="BODY"||Re==="SCRIPT"||Re==="STYLE"||Re==="LINK"&&te.rel.toLowerCase()==="stylesheet"||g.removeChild(te),te=pe}for(var Ne=i.type,Se=g.attributes;Se.length;)g.removeAttributeNode(Se[0]);Sn(g,Ne,x),g[Sr]=i,g[Kt]=x}catch(pt){vr(i,i.return,pt)}}case 5:if(Pi(a,i),_i(i),f&512&&(Ir||l===null||di(l,l.return)),i.flags&32){g=i.stateNode;try{Al(g,"")}catch(pt){vr(i,i.return,pt)}}f&4&&i.stateNode!=null&&(g=i.memoizedProps,nS(i,g,l!==null?l.memoizedProps:g)),f&1024&&(Xg=!0);break;case 6:if(Pi(a,i),_i(i),f&4){if(i.stateNode===null)throw Error(n(162));f=i.memoizedProps,l=i.stateNode;try{l.nodeValue=f}catch(pt){vr(i,i.return,pt)}}break;case 3:if(hf=null,g=no,no=pf(a.containerInfo),Pi(a,i),no=g,_i(i),f&4&&l!==null&&l.memoizedState.isDehydrated)try{qu(a.containerInfo)}catch(pt){vr(i,i.return,pt)}Xg&&(Xg=!1,pS(i));break;case 4:f=no,no=pf(i.stateNode.containerInfo),Pi(a,i),_i(i),no=f;break;case 12:Pi(a,i),_i(i);break;case 13:Pi(a,i),_i(i),i.child.flags&8192&&i.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(iy=at()),f&4&&(f=i.updateQueue,f!==null&&(i.updateQueue=null,Yg(i,f)));break;case 22:if(f&512&&(Ir||l===null||di(l,l.return)),te=i.memoizedState!==null,pe=l!==null&&l.memoizedState!==null,Re=aa,Ne=Ir,aa=Re||te,Ir=Ne||pe,Pi(a,i),Ir=Ne,aa=Re,_i(i),a=i.stateNode,a._current=i,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,f&8192&&(a._visibility=te?a._visibility&-2:a._visibility|1,te&&(a=aa||Ir,l===null||pe||a||ql(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(l=null,a=i;;){if(a.tag===5||a.tag===26||a.tag===27){if(l===null){pe=l=a;try{if(g=pe.stateNode,te)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{O=pe.stateNode,X=pe.memoizedProps.style;var Me=X!=null&&X.hasOwnProperty("display")?X.display:null;O.style.display=Me==null||typeof Me=="boolean"?"":(""+Me).trim()}}catch(pt){vr(pe,pe.return,pt)}}}else if(a.tag===6){if(l===null){pe=a;try{pe.stateNode.nodeValue=te?"":pe.memoizedProps}catch(pt){vr(pe,pe.return,pt)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=i.updateQueue,f!==null&&(l=f.retryQueue,l!==null&&(f.retryQueue=null,Yg(i,l))));break;case 19:Pi(a,i),_i(i),f&4&&(f=i.updateQueue,f!==null&&(i.updateQueue=null,Yg(i,f)));break;case 21:break;default:Pi(a,i),_i(i)}}function _i(i){var a=i.flags;if(a&2){try{if(i.tag!==27){e:{for(var l=i.return;l!==null;){if(iS(l)){var f=l;break e}l=l.return}throw Error(n(160))}switch(f.tag){case 27:var g=f.stateNode,x=Wg(i);Qp(i,x,g);break;case 5:var O=f.stateNode;f.flags&32&&(Al(O,""),f.flags&=-33);var X=Wg(i);Qp(i,X,O);break;case 3:case 4:var te=f.stateNode.containerInfo,pe=Wg(i);Gg(i,pe,te);break;default:throw Error(n(161))}}}catch(Re){vr(i,i.return,Re)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function pS(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;pS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function la(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)sS(i,a.alternate,a),a=a.sibling}function ql(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),ql(a);break;case 1:di(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&tS(a,a.return,l),ql(a);break;case 26:case 27:case 5:di(a,a.return),ql(a);break;case 22:di(a,a.return),a.memoizedState===null&&ql(a);break;default:ql(a)}i=i.sibling}}function Ua(i,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,g=i,x=a,O=x.flags;switch(x.tag){case 0:case 11:case 15:Ua(g,x,l),ju(4,x);break;case 1:if(Ua(g,x,l),f=x,g=f.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(pe){vr(f,f.return,pe)}if(f=x,g=f.updateQueue,g!==null){var X=f.stateNode;try{var te=g.shared.hiddenCallbacks;if(te!==null)for(g.shared.hiddenCallbacks=null,g=0;g<te.length;g++)Z1(te[g],X)}catch(pe){vr(f,f.return,pe)}}l&&O&64&&eS(x),Us(x,x.return);break;case 26:case 27:case 5:Ua(g,x,l),l&&f===null&&O&4&&rS(x),Us(x,x.return);break;case 12:Ua(g,x,l);break;case 13:Ua(g,x,l),l&&O&4&&uS(g,x);break;case 22:x.memoizedState===null&&Ua(g,x,l),Us(x,x.return);break;default:Ua(g,x,l)}a=a.sibling}}function Qg(i,a){var l=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(i!=null&&i.refCount++,l!=null&&gu(l))}function Kg(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&gu(i))}function Va(i,a,l,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)fS(i,a,l,f),a=a.sibling}function fS(i,a,l,f){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Va(i,a,l,f),g&2048&&ju(9,a);break;case 3:Va(i,a,l,f),g&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&gu(i)));break;case 12:if(g&2048){Va(i,a,l,f),i=a.stateNode;try{var x=a.memoizedProps,O=x.id,X=x.onPostCommit;typeof X=="function"&&X(O,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(te){vr(a,a.return,te)}}else Va(i,a,l,f);break;case 23:break;case 22:x=a.stateNode,a.memoizedState!==null?x._visibility&4?Va(i,a,l,f):Au(i,a):x._visibility&4?Va(i,a,l,f):(x._visibility|=4,Fl(i,a,l,f,(a.subtreeFlags&10256)!==0)),g&2048&&Qg(a.alternate,a);break;case 24:Va(i,a,l,f),g&2048&&Kg(a.alternate,a);break;default:Va(i,a,l,f)}}function Fl(i,a,l,f,g){for(g=g&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var x=i,O=a,X=l,te=f,pe=O.flags;switch(O.tag){case 0:case 11:case 15:Fl(x,O,X,te,g),ju(8,O);break;case 23:break;case 22:var Re=O.stateNode;O.memoizedState!==null?Re._visibility&4?Fl(x,O,X,te,g):Au(x,O):(Re._visibility|=4,Fl(x,O,X,te,g)),g&&pe&2048&&Qg(O.alternate,O);break;case 24:Fl(x,O,X,te,g),g&&pe&2048&&Kg(O.alternate,O);break;default:Fl(x,O,X,te,g)}a=a.sibling}}function Au(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=i,f=a,g=f.flags;switch(f.tag){case 22:Au(l,f),g&2048&&Qg(f.alternate,f);break;case 24:Au(l,f),g&2048&&Kg(f.alternate,f);break;default:Au(l,f)}a=a.sibling}}var Mu=8192;function Wl(i){if(i.subtreeFlags&Mu)for(i=i.child;i!==null;)hS(i),i=i.sibling}function hS(i){switch(i.tag){case 26:Wl(i),i.flags&Mu&&i.memoizedState!==null&&lM(no,i.memoizedState,i.memoizedProps);break;case 5:Wl(i);break;case 3:case 4:var a=no;no=pf(i.stateNode.containerInfo),Wl(i),no=a;break;case 22:i.memoizedState===null&&(a=i.alternate,a!==null&&a.memoizedState!==null?(a=Mu,Mu=16777216,Wl(i),Mu=a):Wl(i));break;default:Wl(i)}}function mS(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function Ru(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];cn=f,yS(f,i)}mS(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)gS(i),i=i.sibling}function gS(i){switch(i.tag){case 0:case 11:case 15:Ru(i),i.flags&2048&&Ha(9,i,i.return);break;case 3:Ru(i);break;case 12:Ru(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&4&&(i.return===null||i.return.tag!==13)?(a._visibility&=-5,Kp(i)):Ru(i);break;default:Ru(i)}}function Kp(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];cn=f,yS(f,i)}mS(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),Kp(a);break;case 22:l=a.stateNode,l._visibility&4&&(l._visibility&=-5,Kp(a));break;default:Kp(a)}i=i.sibling}}function yS(i,a){for(;cn!==null;){var l=cn;switch(l.tag){case 0:case 11:case 15:Ha(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var f=l.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:gu(l.memoizedState.cache)}if(f=l.child,f!==null)f.return=l,cn=f;else e:for(l=i;cn!==null;){f=cn;var g=f.sibling,x=f.return;if(lS(f),f===l){cn=null;break e}if(g!==null){g.return=x,cn=g;break e}cn=x}}}function SA(i,a,l,f){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Li(i,a,l,f){return new SA(i,a,l,f)}function Zg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function qa(i,a){var l=i.alternate;return l===null?(l=Li(i.tag,a,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=a,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&31457280,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,a=i.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l.refCleanup=i.refCleanup,l}function vS(i,a){i.flags&=31457282;var l=i.alternate;return l===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,a=l.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function Zp(i,a,l,f,g,x){var O=0;if(f=i,typeof i=="function")Zg(i)&&(O=1);else if(typeof i=="string")O=aM(i,l,De.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case p:return Vs(l.children,g,x,a);case h:O=8,g|=24;break;case m:return i=Li(12,l,a,g|2),i.elementType=m,i.lanes=x,i;case C:return i=Li(13,l,a,g),i.elementType=C,i.lanes=x,i;case T:return i=Li(19,l,a,g),i.elementType=T,i.lanes=x,i;case R:return bS(l,g,x,a);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case b:case v:O=10;break e;case y:O=9;break e;case w:O=11;break e;case M:O=14;break e;case E:O=16,f=null;break e}O=29,l=Error(n(130,i===null?"null":typeof i,"")),f=null}return a=Li(O,l,a,g),a.elementType=i,a.type=f,a.lanes=x,a}function Vs(i,a,l,f){return i=Li(7,i,f,a),i.lanes=l,i}function bS(i,a,l,f){i=Li(22,i,f,a),i.elementType=R,i.lanes=l;var g={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var x=g._current;if(x===null)throw Error(n(456));if((g._pendingVisibility&2)===0){var O=Pa(x,2);O!==null&&(g._pendingVisibility|=2,Ln(O,x,2))}},attach:function(){var x=g._current;if(x===null)throw Error(n(456));if((g._pendingVisibility&2)!==0){var O=Pa(x,2);O!==null&&(g._pendingVisibility&=-3,Ln(O,x,2))}}};return i.stateNode=g,i}function Jg(i,a,l){return i=Li(6,i,null,a),i.lanes=l,i}function ey(i,a,l){return a=Li(4,i.children!==null?i.children:[],i.key,a),a.lanes=l,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}function ca(i){i.flags|=4}function xS(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!iw(a)){if(a=Oi.current,a!==null&&((Jt&4194176)===Jt?wo!==null:(Jt&62914560)!==Jt&&(Jt&536870912)===0||a!==wo))throw fu=og,Bx;i.flags|=8192}}function Jp(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?Rr():536870912,i.lanes|=a,Xl|=a)}function ku(i,a){if(!er)switch(i.tailMode){case"hidden":a=i.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:f.sibling=null}}function Or(i){var a=i.alternate!==null&&i.alternate.child===i.child,l=0,f=0;if(a)for(var g=i.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags&31457280,f|=g.flags&31457280,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)l|=g.lanes|g.childLanes,f|=g.subtreeFlags,f|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=f,i.childLanes=l,a}function wA(i,a,l){var f=a.pendingProps;switch(ng(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Or(a),null;case 1:return Or(a),null;case 3:return l=a.stateNode,f=null,i!==null&&(f=i.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),oa(rn),We(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(i===null||i.child===null)&&(cu(a)?ca(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ro!==null&&(ly(ro),ro=null))),Or(a),null;case 26:return l=a.memoizedState,i===null?(ca(a),l!==null?(Or(a),xS(a,l)):(Or(a),a.flags&=-16777217)):l?l!==i.memoizedState?(ca(a),Or(a),xS(a,l)):(Or(a),a.flags&=-16777217):(i.memoizedProps!==f&&ca(a),Or(a),a.flags&=-16777217),null;case 27:le(a),l=Be.current;var g=a.type;if(i!==null&&a.stateNode!=null)i.memoizedProps!==f&&ca(a);else{if(!f){if(a.stateNode===null)throw Error(n(166));return Or(a),null}i=De.current,cu(a)?Nx(a):(i=QS(g,f,l),a.stateNode=i,ca(a))}return Or(a),null;case 5:if(le(a),l=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==f&&ca(a);else{if(!f){if(a.stateNode===null)throw Error(n(166));return Or(a),null}if(i=De.current,cu(a))Nx(a);else{switch(g=df(Be.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof f.is=="string"?g.createElement("select",{is:f.is}):g.createElement("select"),f.multiple?i.multiple=!0:f.size&&(i.size=f.size);break;default:i=typeof f.is=="string"?g.createElement(l,{is:f.is}):g.createElement(l)}}i[Sr]=a,i[Kt]=f;e:for(g=a.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===a)break e;for(;g.sibling===null;){if(g.return===null||g.return===a)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}a.stateNode=i;e:switch(Sn(i,l,f),l){case"button":case"input":case"select":case"textarea":i=!!f.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ca(a)}}return Or(a),a.flags&=-16777217,null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==f&&ca(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(n(166));if(i=Be.current,cu(a)){if(i=a.stateNode,l=a.memoizedProps,f=null,g=_n,g!==null)switch(g.tag){case 27:case 5:f=g.memoizedProps}i[Sr]=a,i=!!(i.nodeValue===l||f!==null&&f.suppressHydrationWarning===!0||qS(i.nodeValue,l)),i||_s(a)}else i=df(i).createTextNode(f),i[Sr]=a,a.stateNode=i}return Or(a),null;case 13:if(f=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=cu(a),f!==null&&f.dehydrated!==null){if(i===null){if(!g)throw Error(n(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(n(317));g[Sr]=a}else uu(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Or(a),g=!1}else ro!==null&&(ly(ro),ro=null),g=!0;if(!g)return a.flags&256?(ta(a),a):(ta(a),null)}if(ta(a),(a.flags&128)!==0)return a.lanes=l,a;if(l=f!==null,i=i!==null&&i.memoizedState!==null,l){f=a.child,g=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(g=f.alternate.memoizedState.cachePool.pool);var x=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==g&&(f.flags|=2048)}return l!==i&&l&&(a.child.flags|=8192),Jp(a,a.updateQueue),Or(a),null;case 4:return We(),i===null&&by(a.stateNode.containerInfo),Or(a),null;case 10:return oa(a.type),Or(a),null;case 19:if(be(tn),g=a.memoizedState,g===null)return Or(a),null;if(f=(a.flags&128)!==0,x=g.rendering,x===null)if(f)ku(g,!1);else{if(Br!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(x=Ip(i),x!==null){for(a.flags|=128,ku(g,!1),i=x.updateQueue,a.updateQueue=i,Jp(a,i),a.subtreeFlags=0,i=l,l=a.child;l!==null;)vS(l,i),l=l.sibling;return se(tn,tn.current&1|2),a.child}i=i.sibling}g.tail!==null&&at()>ef&&(a.flags|=128,f=!0,ku(g,!1),a.lanes=4194304)}else{if(!f)if(i=Ip(x),i!==null){if(a.flags|=128,f=!0,i=i.updateQueue,a.updateQueue=i,Jp(a,i),ku(g,!0),g.tail===null&&g.tailMode==="hidden"&&!x.alternate&&!er)return Or(a),null}else 2*at()-g.renderingStartTime>ef&&l!==536870912&&(a.flags|=128,f=!0,ku(g,!1),a.lanes=4194304);g.isBackwards?(x.sibling=a.child,a.child=x):(i=g.last,i!==null?i.sibling=x:a.child=x,g.last=x)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=at(),a.sibling=null,i=tn.current,se(tn,f?i&1|2:i&1),a):(Or(a),null);case 22:case 23:return ta(a),sg(),f=a.memoizedState!==null,i!==null?i.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(l&536870912)!==0&&(a.flags&128)===0&&(Or(a),a.subtreeFlags&6&&(a.flags|=8192)):Or(a),l=a.updateQueue,l!==null&&Jp(a,l.retryQueue),l=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==l&&(a.flags|=2048),i!==null&&be(Ns),null;case 24:return l=null,i!==null&&(l=i.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),oa(rn),Or(a),null;case 25:return null}throw Error(n(156,a.tag))}function CA(i,a){switch(ng(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return oa(rn),We(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return le(a),null;case 13:if(ta(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(n(340));uu()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return be(tn),null;case 4:return We(),null;case 10:return oa(a.type),null;case 22:case 23:return ta(a),sg(),i!==null&&be(Ns),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return oa(rn),null;case 25:return null;default:return null}}function SS(i,a){switch(ng(a),a.tag){case 3:oa(rn),We();break;case 26:case 27:case 5:le(a);break;case 4:We();break;case 13:ta(a);break;case 19:be(tn);break;case 10:oa(a.type);break;case 22:case 23:ta(a),sg(),i!==null&&be(Ns);break;case 24:oa(rn)}}var TA={getCacheForType:function(i){var a=En(rn),l=a.data.get(i);return l===void 0&&(l=i(),a.data.set(i,l)),l}},EA=typeof WeakMap=="function"?WeakMap:Map,Pr=0,wr=null,qt=null,Jt=0,Cr=0,fi=null,ua=!1,Gl=!1,ty=!1,da=0,Br=0,Fa=0,qs=0,ry=0,Ni=0,Xl=0,Ou=null,To=null,ny=!1,iy=0,ef=1/0,tf=null,Wa=null,rf=!1,Fs=null,Pu=0,oy=0,ay=null,_u=0,sy=null;function hi(){if((Pr&2)!==0&&Jt!==0)return Jt&-Jt;if(B.T!==null){var i=$l;return i!==0?i:my()}return qn()}function wS(){Ni===0&&(Ni=(Jt&536870912)===0||er?Tt():536870912);var i=Oi.current;return i!==null&&(i.flags|=32),Ni}function Ln(i,a,l){(i===wr&&Cr===2||i.cancelPendingCommit!==null)&&(Yl(i,0),pa(i,Jt,Ni,!1)),ot(i,l),((Pr&2)===0||i!==wr)&&(i===wr&&((Pr&2)===0&&(qs|=l),Br===4&&pa(i,Jt,Ni,!1)),Eo(i))}function CS(i,a,l){if((Pr&6)!==0)throw Error(n(327));var f=!l&&(a&60)===0&&(a&i.expiredLanes)===0||en(i,a),g=f?MA(i,a):dy(i,a,!0),x=f;do{if(g===0){Gl&&!f&&pa(i,a,0,!1);break}else if(g===6)pa(i,a,0,!ua);else{if(l=i.current.alternate,x&&!jA(l)){g=dy(i,a,!1),x=!1;continue}if(g===2){if(x=a,i.errorRecoveryDisabledLanes&x)var O=0;else O=i.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){a=O;e:{var X=i;g=Ou;var te=X.current.memoizedState.isDehydrated;if(te&&(Yl(X,O).flags|=256),O=dy(X,O,!1),O!==2){if(ty&&!te){X.errorRecoveryDisabledLanes|=x,qs|=x,g=4;break e}x=To,To=g,x!==null&&ly(x)}g=O}if(x=!1,g!==2)continue}}if(g===1){Yl(i,0),pa(i,a,0,!0);break}e:{switch(f=i,g){case 0:case 1:throw Error(n(345));case 4:if((a&4194176)===a){pa(f,a,Ni,!ua);break e}break;case 2:To=null;break;case 3:case 5:break;default:throw Error(n(329))}if(f.finishedWork=l,f.finishedLanes=a,(a&62914560)===a&&(x=iy+300-at(),10<x)){if(pa(f,a,Ni,!ua),sn(f,0)!==0)break e;f.timeoutHandle=GS(TS.bind(null,f,l,To,tf,ny,a,Ni,qs,Xl,ua,2,-0,0),x);break e}TS(f,l,To,tf,ny,a,Ni,qs,Xl,ua,0,-0,0)}}break}while(!0);Eo(i)}function ly(i){To===null?To=i:To.push.apply(To,i)}function TS(i,a,l,f,g,x,O,X,te,pe,Re,Ne,Se){var Me=a.subtreeFlags;if((Me&8192||(Me&16785408)===16785408)&&($u={stylesheets:null,count:0,unsuspend:sM},hS(a),a=cM(),a!==null)){i.cancelPendingCommit=a(OS.bind(null,i,l,f,g,O,X,te,1,Ne,Se)),pa(i,x,O,!pe);return}OS(i,l,f,g,O,X,te,Re,Ne,Se)}function jA(i){for(var a=i;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var f=0;f<l.length;f++){var g=l[f],x=g.getSnapshot;g=g.value;try{if(!ui(x(),g))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function pa(i,a,l,f){a&=~ry,a&=~qs,i.suspendedLanes|=a,i.pingedLanes&=~a,f&&(i.warmLanes|=a),f=i.expirationTimes;for(var g=a;0<g;){var x=31-Xt(g),O=1<<x;f[x]=-1,g&=~O}l!==0&&_t(i,l,a)}function nf(){return(Pr&6)===0?(Lu(0),!1):!0}function cy(){if(qt!==null){if(Cr===0)var i=qt.return;else i=qt,ia=Ds=null,mg(i),Bl=null,hu=0,i=qt;for(;i!==null;)SS(i.alternate,i),i=i.return;qt=null}}function Yl(i,a){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;l!==-1&&(i.timeoutHandle=-1,FA(l)),l=i.cancelPendingCommit,l!==null&&(i.cancelPendingCommit=null,l()),cy(),wr=i,qt=l=qa(i.current,null),Jt=a,Cr=0,fi=null,ua=!1,Gl=en(i,a),ty=!1,Xl=Ni=ry=qs=Fa=Br=0,To=Ou=null,ny=!1,(a&8)!==0&&(a|=a&32);var f=i.entangledLanes;if(f!==0)for(i=i.entanglements,f&=a;0<f;){var g=31-Xt(f),x=1<<g;a|=i[g],f&=~x}return da=a,Ap(),l}function ES(i,a){Ht=null,B.H=Co,a===pu?(a=Dx(),Cr=3):a===Bx?(a=Dx(),Cr=4):Cr=a===z1?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,fi=a,qt===null&&(Br=1,Gp(i,Mi(a,i.current)))}function jS(){var i=B.H;return B.H=Co,i===null?Co:i}function AS(){var i=B.A;return B.A=TA,i}function uy(){Br=4,ua||(Jt&4194176)!==Jt&&Oi.current!==null||(Gl=!0),(Fa&134217727)===0&&(qs&134217727)===0||wr===null||pa(wr,Jt,Ni,!1)}function dy(i,a,l){var f=Pr;Pr|=2;var g=jS(),x=AS();(wr!==i||Jt!==a)&&(tf=null,Yl(i,a)),a=!1;var O=Br;e:do try{if(Cr!==0&&qt!==null){var X=qt,te=fi;switch(Cr){case 8:cy(),O=6;break e;case 3:case 2:case 6:Oi.current===null&&(a=!0);var pe=Cr;if(Cr=0,fi=null,Ql(i,X,te,pe),l&&Gl){O=0;break e}break;default:pe=Cr,Cr=0,fi=null,Ql(i,X,te,pe)}}AA(),O=Br;break}catch(Re){ES(i,Re)}while(!0);return a&&i.shellSuspendCounter++,ia=Ds=null,Pr=f,B.H=g,B.A=x,qt===null&&(wr=null,Jt=0,Ap()),O}function AA(){for(;qt!==null;)MS(qt)}function MA(i,a){var l=Pr;Pr|=2;var f=jS(),g=AS();wr!==i||Jt!==a?(tf=null,ef=at()+500,Yl(i,a)):Gl=en(i,a);e:do try{if(Cr!==0&&qt!==null){a=qt;var x=fi;t:switch(Cr){case 1:Cr=0,fi=null,Ql(i,a,x,1);break;case 2:if(zx(x)){Cr=0,fi=null,RS(a);break}a=function(){Cr===2&&wr===i&&(Cr=7),Eo(i)},x.then(a,a);break e;case 3:Cr=7;break e;case 4:Cr=5;break e;case 7:zx(x)?(Cr=0,fi=null,RS(a)):(Cr=0,fi=null,Ql(i,a,x,7));break;case 5:var O=null;switch(qt.tag){case 26:O=qt.memoizedState;case 5:case 27:var X=qt;if(!O||iw(O)){Cr=0,fi=null;var te=X.sibling;if(te!==null)qt=te;else{var pe=X.return;pe!==null?(qt=pe,of(pe)):qt=null}break t}}Cr=0,fi=null,Ql(i,a,x,5);break;case 6:Cr=0,fi=null,Ql(i,a,x,6);break;case 8:cy(),Br=6;break e;default:throw Error(n(462))}}RA();break}catch(Re){ES(i,Re)}while(!0);return ia=Ds=null,B.H=f,B.A=g,Pr=l,qt!==null?0:(wr=null,Jt=0,Ap(),Br)}function RA(){for(;qt!==null&&!Ue();)MS(qt)}function MS(i){var a=Q1(i.alternate,i,da);i.memoizedProps=i.pendingProps,a===null?of(i):qt=a}function RS(i){var a=i,l=a.alternate;switch(a.tag){case 15:case 0:a=q1(l,a,a.pendingProps,a.type,void 0,Jt);break;case 11:a=q1(l,a,a.pendingProps,a.type.render,a.ref,Jt);break;case 5:mg(a);default:SS(l,a),a=qt=vS(a,da),a=Q1(l,a,da)}i.memoizedProps=i.pendingProps,a===null?of(i):qt=a}function Ql(i,a,l,f){ia=Ds=null,mg(a),Bl=null,hu=0;var g=a.return;try{if(yA(i,g,a,l,Jt)){Br=1,Gp(i,Mi(l,i.current)),qt=null;return}}catch(x){if(g!==null)throw qt=g,x;Br=1,Gp(i,Mi(l,i.current)),qt=null;return}a.flags&32768?(er||f===1?i=!0:Gl||(Jt&536870912)!==0?i=!1:(ua=i=!0,(f===2||f===3||f===6)&&(f=Oi.current,f!==null&&f.tag===13&&(f.flags|=16384))),kS(a,i)):of(a)}function of(i){var a=i;do{if((a.flags&32768)!==0){kS(a,ua);return}i=a.return;var l=wA(a.alternate,a,da);if(l!==null){qt=l;return}if(a=a.sibling,a!==null){qt=a;return}qt=a=i}while(a!==null);Br===0&&(Br=5)}function kS(i,a){do{var l=CA(i.alternate,i);if(l!==null){l.flags&=32767,qt=l;return}if(l=i.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(i=i.sibling,i!==null)){qt=i;return}qt=i=l}while(i!==null);Br=6,qt=null}function OS(i,a,l,f,g,x,O,X,te,pe){var Re=B.T,Ne=K.p;try{K.p=2,B.T=null,kA(i,a,l,f,Ne,g,x,O,X,te,pe)}finally{B.T=Re,K.p=Ne}}function kA(i,a,l,f,g,x,O,X){do Kl();while(Fs!==null);if((Pr&6)!==0)throw Error(n(327));var te=i.finishedWork;if(f=i.finishedLanes,te===null)return null;if(i.finishedWork=null,i.finishedLanes=0,te===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var pe=te.lanes|te.childLanes;if(pe|=eg,Pt(i,f,pe,x,O,X),i===wr&&(qt=wr=null,Jt=0),(te.subtreeFlags&10256)===0&&(te.flags&10256)===0||rf||(rf=!0,oy=pe,ay=l,LA(_e,function(){return Kl(),null})),l=(te.flags&15990)!==0,(te.subtreeFlags&15990)!==0||l?(l=B.T,B.T=null,x=K.p,K.p=2,O=Pr,Pr|=4,bA(i,te),dS(te,i),eA(Cy,i.containerInfo),yf=!!wy,Cy=wy=null,i.current=te,sS(i,te.alternate,te),kt(),Pr=O,K.p=x,B.T=l):i.current=te,rf?(rf=!1,Fs=i,Pu=f):PS(i,pe),pe=i.pendingLanes,pe===0&&(Wa=null),yt(te.stateNode),Eo(i),a!==null)for(g=i.onRecoverableError,te=0;te<a.length;te++)pe=a[te],g(pe.value,{componentStack:pe.stack});return(Pu&3)!==0&&Kl(),pe=i.pendingLanes,(f&4194218)!==0&&(pe&42)!==0?i===sy?_u++:(_u=0,sy=i):_u=0,Lu(0),null}function PS(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,gu(a)))}function Kl(){if(Fs!==null){var i=Fs,a=oy;oy=0;var l=vn(Pu),f=B.T,g=K.p;try{if(K.p=32>l?32:l,B.T=null,Fs===null)var x=!1;else{l=ay,ay=null;var O=Fs,X=Pu;if(Fs=null,Pu=0,(Pr&6)!==0)throw Error(n(331));var te=Pr;if(Pr|=4,gS(O.current),fS(O,O.current,X,l),Pr=te,Lu(0,!1),$e&&typeof $e.onPostCommitFiberRoot=="function")try{$e.onPostCommitFiberRoot(He,O)}catch{}x=!0}return x}finally{K.p=g,B.T=f,PS(i,a)}}return!1}function _S(i,a,l){a=Mi(l,a),a=Rg(i.stateNode,a,2),i=Da(i,a,2),i!==null&&(ot(i,2),Eo(i))}function vr(i,a,l){if(i.tag===3)_S(i,i,l);else for(;a!==null;){if(a.tag===3){_S(a,i,l);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Wa===null||!Wa.has(f))){i=Mi(l,i),l=I1(2),f=Da(a,l,2),f!==null&&(B1(l,f,a,i),ot(f,2),Eo(f));break}}a=a.return}}function py(i,a,l){var f=i.pingCache;if(f===null){f=i.pingCache=new EA;var g=new Set;f.set(a,g)}else g=f.get(a),g===void 0&&(g=new Set,f.set(a,g));g.has(l)||(ty=!0,g.add(l),i=OA.bind(null,i,a,l),a.then(i,i))}function OA(i,a,l){var f=i.pingCache;f!==null&&f.delete(a),i.pingedLanes|=i.suspendedLanes&l,i.warmLanes&=~l,wr===i&&(Jt&l)===l&&(Br===4||Br===3&&(Jt&62914560)===Jt&&300>at()-iy?(Pr&2)===0&&Yl(i,0):ry|=l,Xl===Jt&&(Xl=0)),Eo(i)}function LS(i,a){a===0&&(a=Rr()),i=Pa(i,a),i!==null&&(ot(i,a),Eo(i))}function PA(i){var a=i.memoizedState,l=0;a!==null&&(l=a.retryLane),LS(i,l)}function _A(i,a){var l=0;switch(i.tag){case 13:var f=i.stateNode,g=i.memoizedState;g!==null&&(l=g.retryLane);break;case 19:f=i.stateNode;break;case 22:f=i.stateNode._retryCache;break;default:throw Error(n(314))}f!==null&&f.delete(a),LS(i,l)}function LA(i,a){return Fe(i,a)}var af=null,Zl=null,fy=!1,sf=!1,hy=!1,Ws=0;function Eo(i){i!==Zl&&i.next===null&&(Zl===null?af=Zl=i:Zl=Zl.next=i),sf=!0,fy||(fy=!0,IA(NA))}function Lu(i,a){if(!hy&&sf){hy=!0;do for(var l=!1,f=af;f!==null;){if(i!==0){var g=f.pendingLanes;if(g===0)var x=0;else{var O=f.suspendedLanes,X=f.pingedLanes;x=(1<<31-Xt(42|i)+1)-1,x&=g&~(O&~X),x=x&201326677?x&201326677|1:x?x|2:0}x!==0&&(l=!0,BS(f,x))}else x=Jt,x=sn(f,f===wr?x:0),(x&3)===0||en(f,x)||(l=!0,BS(f,x));f=f.next}while(l);hy=!1}}function NA(){sf=fy=!1;var i=0;Ws!==0&&(qA()&&(i=Ws),Ws=0);for(var a=at(),l=null,f=af;f!==null;){var g=f.next,x=NS(f,a);x===0?(f.next=null,l===null?af=g:l.next=g,g===null&&(Zl=l)):(l=f,(i!==0||(x&3)!==0)&&(sf=!0)),f=g}Lu(i)}function NS(i,a){for(var l=i.suspendedLanes,f=i.pingedLanes,g=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var O=31-Xt(x),X=1<<O,te=g[O];te===-1?((X&l)===0||(X&f)!==0)&&(g[O]=Vn(X,a)):te<=a&&(i.expiredLanes|=X),x&=~X}if(a=wr,l=Jt,l=sn(i,i===a?l:0),f=i.callbackNode,l===0||i===a&&Cr===2||i.cancelPendingCommit!==null)return f!==null&&f!==null&&ft(f),i.callbackNode=null,i.callbackPriority=0;if((l&3)===0||en(i,l)){if(a=l&-l,a===i.callbackPriority)return a;switch(f!==null&&ft(f),vn(l)){case 2:case 8:l=ke;break;case 32:l=_e;break;case 268435456:l=Je;break;default:l=_e}return f=IS.bind(null,i),l=Fe(l,f),i.callbackPriority=a,i.callbackNode=l,a}return f!==null&&f!==null&&ft(f),i.callbackPriority=2,i.callbackNode=null,2}function IS(i,a){var l=i.callbackNode;if(Kl()&&i.callbackNode!==l)return null;var f=Jt;return f=sn(i,i===wr?f:0),f===0?null:(CS(i,f,a),NS(i,at()),i.callbackNode!=null&&i.callbackNode===l?IS.bind(null,i):null)}function BS(i,a){if(Kl())return null;CS(i,a,!0)}function IA(i){WA(function(){(Pr&6)!==0?Fe(we,i):i()})}function my(){return Ws===0&&(Ws=Tt()),Ws}function zS(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:xp(""+i)}function $S(i,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,i.id&&l.setAttribute("form",i.id),a.parentNode.insertBefore(l,a),i=new FormData(i),l.parentNode.removeChild(l),i}function BA(i,a,l,f,g){if(a==="submit"&&l&&l.stateNode===g){var x=zS((g[Kt]||null).action),O=f.submitter;O&&(a=(a=O[Kt]||null)?zS(a.formAction):O.getAttribute("formAction"),a!==null&&(x=a,O=null));var X=new Tp("action","action",null,f,g);i.push({event:X,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Ws!==0){var te=O?$S(g,O):new FormData(g);Tg(l,{pending:!0,data:te,method:g.method,action:x},null,te)}}else typeof x=="function"&&(X.preventDefault(),te=O?$S(g,O):new FormData(g),Tg(l,{pending:!0,data:te,method:g.method,action:x},x,te))},currentTarget:g}]})}}for(var gy=0;gy<Ox.length;gy++){var yy=Ox[gy],zA=yy.toLowerCase(),$A=yy[0].toUpperCase()+yy.slice(1);to(zA,"on"+$A)}to(jx,"onAnimationEnd"),to(Ax,"onAnimationIteration"),to(Mx,"onAnimationStart"),to("dblclick","onDoubleClick"),to("focusin","onFocus"),to("focusout","onBlur"),to(rA,"onTransitionRun"),to(nA,"onTransitionStart"),to(iA,"onTransitionCancel"),to(Rx,"onTransitionEnd"),Zi("onMouseEnter",["mouseout","mouseover"]),Zi("onMouseLeave",["mouseout","mouseover"]),Zi("onPointerEnter",["pointerout","pointerover"]),Zi("onPointerLeave",["pointerout","pointerover"]),xo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xo("onBeforeInput",["compositionend","keypress","textInput","paste"]),xo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),DA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function DS(i,a){a=(a&4)!==0;for(var l=0;l<i.length;l++){var f=i[l],g=f.event;f=f.listeners;e:{var x=void 0;if(a)for(var O=f.length-1;0<=O;O--){var X=f[O],te=X.instance,pe=X.currentTarget;if(X=X.listener,te!==x&&g.isPropagationStopped())break e;x=X,g.currentTarget=pe;try{x(g)}catch(Re){Wp(Re)}g.currentTarget=null,x=te}else for(O=0;O<f.length;O++){if(X=f[O],te=X.instance,pe=X.currentTarget,X=X.listener,te!==x&&g.isPropagationStopped())break e;x=X,g.currentTarget=pe;try{x(g)}catch(Re){Wp(Re)}g.currentTarget=null,x=te}}}}function Qt(i,a){var l=a[Ti];l===void 0&&(l=a[Ti]=new Set);var f=i+"__bubble";l.has(f)||(HS(a,i,2,!1),l.add(f))}function vy(i,a,l){var f=0;a&&(f|=4),HS(l,i,f,a)}var lf="_reactListening"+Math.random().toString(36).slice(2);function by(i){if(!i[lf]){i[lf]=!0,Fn.forEach(function(l){l!=="selectionchange"&&(DA.has(l)||vy(l,!1,i),vy(l,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[lf]||(a[lf]=!0,vy("selectionchange",!1,a))}}function HS(i,a,l,f){switch(uw(a)){case 2:var g=pM;break;case 8:g=fM;break;default:g=Py}l=g.bind(null,a,l,i),g=void 0,!Hm||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),f?g!==void 0?i.addEventListener(a,l,{capture:!0,passive:g}):i.addEventListener(a,l,!0):g!==void 0?i.addEventListener(a,l,{passive:g}):i.addEventListener(a,l,!1)}function xy(i,a,l,f,g){var x=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var O=f.tag;if(O===3||O===4){var X=f.stateNode.containerInfo;if(X===g||X.nodeType===8&&X.parentNode===g)break;if(O===4)for(O=f.return;O!==null;){var te=O.tag;if((te===3||te===4)&&(te=O.stateNode.containerInfo,te===g||te.nodeType===8&&te.parentNode===g))return;O=O.return}for(;X!==null;){if(O=Qe(X),O===null)return;if(te=O.tag,te===5||te===6||te===26||te===27){f=x=O;continue e}X=X.parentNode}}f=f.return}rx(function(){var pe=x,Re=$m(l),Ne=[];e:{var Se=kx.get(i);if(Se!==void 0){var Me=Tp,pt=i;switch(i){case"keypress":if(wp(l)===0)break e;case"keydown":case"keyup":Me=_j;break;case"focusin":pt="focus",Me=Fm;break;case"focusout":pt="blur",Me=Fm;break;case"beforeblur":case"afterblur":Me=Fm;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Me=ox;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Me=Sj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Me=Ij;break;case jx:case Ax:case Mx:Me=Tj;break;case Rx:Me=zj;break;case"scroll":case"scrollend":Me=bj;break;case"wheel":Me=Dj;break;case"copy":case"cut":case"paste":Me=jj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Me=sx;break;case"toggle":case"beforetoggle":Me=Uj}var Rt=(a&4)!==0,zr=!Rt&&(i==="scroll"||i==="scrollend"),he=Rt?Se!==null?Se+"Capture":null:Se;Rt=[];for(var de=pe,ge;de!==null;){var Oe=de;if(ge=Oe.stateNode,Oe=Oe.tag,Oe!==5&&Oe!==26&&Oe!==27||ge===null||he===null||(Oe=eu(de,he),Oe!=null&&Rt.push(Iu(de,Oe,ge))),zr)break;de=de.return}0<Rt.length&&(Se=new Me(Se,pt,null,l,Re),Ne.push({event:Se,listeners:Rt}))}}if((a&7)===0){e:{if(Se=i==="mouseover"||i==="pointerover",Me=i==="mouseout"||i==="pointerout",Se&&l!==zm&&(pt=l.relatedTarget||l.fromElement)&&(Qe(pt)||pt[Er]))break e;if((Me||Se)&&(Se=Re.window===Re?Re:(Se=Re.ownerDocument)?Se.defaultView||Se.parentWindow:window,Me?(pt=l.relatedTarget||l.toElement,Me=pe,pt=pt?Qe(pt):null,pt!==null&&(zr=ee(pt),Rt=pt.tag,pt!==zr||Rt!==5&&Rt!==27&&Rt!==6)&&(pt=null)):(Me=null,pt=pe),Me!==pt)){if(Rt=ox,Oe="onMouseLeave",he="onMouseEnter",de="mouse",(i==="pointerout"||i==="pointerover")&&(Rt=sx,Oe="onPointerLeave",he="onPointerEnter",de="pointer"),zr=Me==null?Se:wt(Me),ge=pt==null?Se:wt(pt),Se=new Rt(Oe,de+"leave",Me,l,Re),Se.target=zr,Se.relatedTarget=ge,Oe=null,Qe(Re)===pe&&(Rt=new Rt(he,de+"enter",pt,l,Re),Rt.target=ge,Rt.relatedTarget=zr,Oe=Rt),zr=Oe,Me&&pt)t:{for(Rt=Me,he=pt,de=0,ge=Rt;ge;ge=Jl(ge))de++;for(ge=0,Oe=he;Oe;Oe=Jl(Oe))ge++;for(;0<de-ge;)Rt=Jl(Rt),de--;for(;0<ge-de;)he=Jl(he),ge--;for(;de--;){if(Rt===he||he!==null&&Rt===he.alternate)break t;Rt=Jl(Rt),he=Jl(he)}Rt=null}else Rt=null;Me!==null&&US(Ne,Se,Me,Rt,!1),pt!==null&&zr!==null&&US(Ne,zr,pt,Rt,!0)}}e:{if(Se=pe?wt(pe):window,Me=Se.nodeName&&Se.nodeName.toLowerCase(),Me==="select"||Me==="input"&&Se.type==="file")var lt=mx;else if(fx(Se))if(gx)lt=Zj;else{lt=Qj;var Ut=Yj}else Me=Se.nodeName,!Me||Me.toLowerCase()!=="input"||Se.type!=="checkbox"&&Se.type!=="radio"?pe&&Bm(pe.elementType)&&(lt=mx):lt=Kj;if(lt&&(lt=lt(i,pe))){hx(Ne,lt,l,Re);break e}Ut&&Ut(i,Se,pe),i==="focusout"&&pe&&Se.type==="number"&&pe.memoizedProps.value!=null&&Im(Se,"number",Se.value)}switch(Ut=pe?wt(pe):window,i){case"focusin":(fx(Ut)||Ut.contentEditable==="true")&&(Ol=Ut,Km=pe,lu=null);break;case"focusout":lu=Km=Ol=null;break;case"mousedown":Zm=!0;break;case"contextmenu":case"mouseup":case"dragend":Zm=!1,Tx(Ne,l,Re);break;case"selectionchange":if(tA)break;case"keydown":case"keyup":Tx(Ne,l,Re)}var ht;if(Gm)e:{switch(i){case"compositionstart":var Ct="onCompositionStart";break e;case"compositionend":Ct="onCompositionEnd";break e;case"compositionupdate":Ct="onCompositionUpdate";break e}Ct=void 0}else kl?dx(i,l)&&(Ct="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(Ct="onCompositionStart");Ct&&(lx&&l.locale!=="ko"&&(kl||Ct!=="onCompositionStart"?Ct==="onCompositionEnd"&&kl&&(ht=nx()):(Oa=Re,Um="value"in Oa?Oa.value:Oa.textContent,kl=!0)),Ut=cf(pe,Ct),0<Ut.length&&(Ct=new ax(Ct,i,null,l,Re),Ne.push({event:Ct,listeners:Ut}),ht?Ct.data=ht:(ht=px(l),ht!==null&&(Ct.data=ht)))),(ht=qj?Fj(i,l):Wj(i,l))&&(Ct=cf(pe,"onBeforeInput"),0<Ct.length&&(Ut=new ax("onBeforeInput","beforeinput",null,l,Re),Ne.push({event:Ut,listeners:Ct}),Ut.data=ht)),BA(Ne,i,pe,l,Re)}DS(Ne,a)})}function Iu(i,a,l){return{instance:i,listener:a,currentTarget:l}}function cf(i,a){for(var l=a+"Capture",f=[];i!==null;){var g=i,x=g.stateNode;g=g.tag,g!==5&&g!==26&&g!==27||x===null||(g=eu(i,l),g!=null&&f.unshift(Iu(i,g,x)),g=eu(i,a),g!=null&&f.push(Iu(i,g,x))),i=i.return}return f}function Jl(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function US(i,a,l,f,g){for(var x=a._reactName,O=[];l!==null&&l!==f;){var X=l,te=X.alternate,pe=X.stateNode;if(X=X.tag,te!==null&&te===f)break;X!==5&&X!==26&&X!==27||pe===null||(te=pe,g?(pe=eu(l,x),pe!=null&&O.unshift(Iu(l,pe,te))):g||(pe=eu(l,x),pe!=null&&O.push(Iu(l,pe,te)))),l=l.return}O.length!==0&&i.push({event:a,listeners:O})}var HA=/\r\n?/g,UA=/\u0000|\uFFFD/g;function VS(i){return(typeof i=="string"?i:""+i).replace(HA,`
|
|
49
|
-
`).replace(UA,"")}function qS(i,a){return a=VS(a),VS(i)===a}function uf(){}function hr(i,a,l,f,g,x){switch(l){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||Al(i,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&Al(i,""+f);break;case"className":yp(i,"class",f);break;case"tabIndex":yp(i,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":yp(i,l,f);break;case"style":ex(i,f,x);break;case"data":if(a!=="object"){yp(i,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||l!=="href")){i.removeAttribute(l);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){i.removeAttribute(l);break}f=xp(""+f),i.setAttribute(l,f);break;case"action":case"formAction":if(typeof f=="function"){i.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(l==="formAction"?(a!=="input"&&hr(i,a,"name",g.name,g,null),hr(i,a,"formEncType",g.formEncType,g,null),hr(i,a,"formMethod",g.formMethod,g,null),hr(i,a,"formTarget",g.formTarget,g,null)):(hr(i,a,"encType",g.encType,g,null),hr(i,a,"method",g.method,g,null),hr(i,a,"target",g.target,g,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){i.removeAttribute(l);break}f=xp(""+f),i.setAttribute(l,f);break;case"onClick":f!=null&&(i.onclick=uf);break;case"onScroll":f!=null&&Qt("scroll",i);break;case"onScrollEnd":f!=null&&Qt("scrollend",i);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(l=f.__html,l!=null){if(g.children!=null)throw Error(n(60));i.innerHTML=l}}break;case"multiple":i.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":i.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){i.removeAttribute("xlink:href");break}l=xp(""+f),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?i.setAttribute(l,""+f):i.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?i.setAttribute(l,""):i.removeAttribute(l);break;case"capture":case"download":f===!0?i.setAttribute(l,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?i.setAttribute(l,f):i.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?i.setAttribute(l,f):i.removeAttribute(l);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?i.removeAttribute(l):i.setAttribute(l,f);break;case"popover":Qt("beforetoggle",i),Qt("toggle",i),gp(i,"popover",f);break;case"xlinkActuate":Zo(i,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Zo(i,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Zo(i,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Zo(i,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Zo(i,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Zo(i,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Zo(i,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Zo(i,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Zo(i,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":gp(i,"is",f);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=yj.get(l)||l,gp(i,l,f))}}function Sy(i,a,l,f,g,x){switch(l){case"style":ex(i,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(l=f.__html,l!=null){if(g.children!=null)throw Error(n(60));i.innerHTML=l}}break;case"children":typeof f=="string"?Al(i,f):(typeof f=="number"||typeof f=="bigint")&&Al(i,""+f);break;case"onScroll":f!=null&&Qt("scroll",i);break;case"onScrollEnd":f!=null&&Qt("scrollend",i);break;case"onClick":f!=null&&(i.onclick=uf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!js.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),a=l.slice(2,g?l.length-7:void 0),x=i[Kt]||null,x=x!=null?x[l]:null,typeof x=="function"&&i.removeEventListener(a,x,g),typeof f=="function")){typeof x!="function"&&x!==null&&(l in i?i[l]=null:i.hasAttribute(l)&&i.removeAttribute(l)),i.addEventListener(a,f,g);break e}l in i?i[l]=f:f===!0?i.setAttribute(l,""):gp(i,l,f)}}}function Sn(i,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qt("error",i),Qt("load",i);var f=!1,g=!1,x;for(x in l)if(l.hasOwnProperty(x)){var O=l[x];if(O!=null)switch(x){case"src":f=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:hr(i,a,x,O,l,null)}}g&&hr(i,a,"srcSet",l.srcSet,l,null),f&&hr(i,a,"src",l.src,l,null);return;case"input":Qt("invalid",i);var X=x=O=g=null,te=null,pe=null;for(f in l)if(l.hasOwnProperty(f)){var Re=l[f];if(Re!=null)switch(f){case"name":g=Re;break;case"type":O=Re;break;case"checked":te=Re;break;case"defaultChecked":pe=Re;break;case"value":x=Re;break;case"defaultValue":X=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(n(137,a));break;default:hr(i,a,f,Re,l,null)}}Qb(i,x,X,te,pe,O,g,!1),vp(i);return;case"select":Qt("invalid",i),f=O=x=null;for(g in l)if(l.hasOwnProperty(g)&&(X=l[g],X!=null))switch(g){case"value":x=X;break;case"defaultValue":O=X;break;case"multiple":f=X;default:hr(i,a,g,X,l,null)}a=x,l=O,i.multiple=!!f,a!=null?jl(i,!!f,a,!1):l!=null&&jl(i,!!f,l,!0);return;case"textarea":Qt("invalid",i),x=g=f=null;for(O in l)if(l.hasOwnProperty(O)&&(X=l[O],X!=null))switch(O){case"value":f=X;break;case"defaultValue":g=X;break;case"children":x=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(n(91));break;default:hr(i,a,O,X,l,null)}Zb(i,f,g,x),vp(i);return;case"option":for(te in l)if(l.hasOwnProperty(te)&&(f=l[te],f!=null))switch(te){case"selected":i.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:hr(i,a,te,f,l,null)}return;case"dialog":Qt("cancel",i),Qt("close",i);break;case"iframe":case"object":Qt("load",i);break;case"video":case"audio":for(f=0;f<Nu.length;f++)Qt(Nu[f],i);break;case"image":Qt("error",i),Qt("load",i);break;case"details":Qt("toggle",i);break;case"embed":case"source":case"link":Qt("error",i),Qt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(pe in l)if(l.hasOwnProperty(pe)&&(f=l[pe],f!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:hr(i,a,pe,f,l,null)}return;default:if(Bm(a)){for(Re in l)l.hasOwnProperty(Re)&&(f=l[Re],f!==void 0&&Sy(i,a,Re,f,l,void 0));return}}for(X in l)l.hasOwnProperty(X)&&(f=l[X],f!=null&&hr(i,a,X,f,l,null))}function VA(i,a,l,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,x=null,O=null,X=null,te=null,pe=null,Re=null;for(Me in l){var Ne=l[Me];if(l.hasOwnProperty(Me)&&Ne!=null)switch(Me){case"checked":break;case"value":break;case"defaultValue":te=Ne;default:f.hasOwnProperty(Me)||hr(i,a,Me,null,f,Ne)}}for(var Se in f){var Me=f[Se];if(Ne=l[Se],f.hasOwnProperty(Se)&&(Me!=null||Ne!=null))switch(Se){case"type":x=Me;break;case"name":g=Me;break;case"checked":pe=Me;break;case"defaultChecked":Re=Me;break;case"value":O=Me;break;case"defaultValue":X=Me;break;case"children":case"dangerouslySetInnerHTML":if(Me!=null)throw Error(n(137,a));break;default:Me!==Ne&&hr(i,a,Se,Me,f,Ne)}}Nm(i,O,X,te,pe,Re,x,g);return;case"select":Me=O=X=Se=null;for(x in l)if(te=l[x],l.hasOwnProperty(x)&&te!=null)switch(x){case"value":break;case"multiple":Me=te;default:f.hasOwnProperty(x)||hr(i,a,x,null,f,te)}for(g in f)if(x=f[g],te=l[g],f.hasOwnProperty(g)&&(x!=null||te!=null))switch(g){case"value":Se=x;break;case"defaultValue":X=x;break;case"multiple":O=x;default:x!==te&&hr(i,a,g,x,f,te)}a=X,l=O,f=Me,Se!=null?jl(i,!!l,Se,!1):!!f!=!!l&&(a!=null?jl(i,!!l,a,!0):jl(i,!!l,l?[]:"",!1));return;case"textarea":Me=Se=null;for(X in l)if(g=l[X],l.hasOwnProperty(X)&&g!=null&&!f.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:hr(i,a,X,null,f,g)}for(O in f)if(g=f[O],x=l[O],f.hasOwnProperty(O)&&(g!=null||x!=null))switch(O){case"value":Se=g;break;case"defaultValue":Me=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(n(91));break;default:g!==x&&hr(i,a,O,g,f,x)}Kb(i,Se,Me);return;case"option":for(var pt in l)if(Se=l[pt],l.hasOwnProperty(pt)&&Se!=null&&!f.hasOwnProperty(pt))switch(pt){case"selected":i.selected=!1;break;default:hr(i,a,pt,null,f,Se)}for(te in f)if(Se=f[te],Me=l[te],f.hasOwnProperty(te)&&Se!==Me&&(Se!=null||Me!=null))switch(te){case"selected":i.selected=Se&&typeof Se!="function"&&typeof Se!="symbol";break;default:hr(i,a,te,Se,f,Me)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Rt in l)Se=l[Rt],l.hasOwnProperty(Rt)&&Se!=null&&!f.hasOwnProperty(Rt)&&hr(i,a,Rt,null,f,Se);for(pe in f)if(Se=f[pe],Me=l[pe],f.hasOwnProperty(pe)&&Se!==Me&&(Se!=null||Me!=null))switch(pe){case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(n(137,a));break;default:hr(i,a,pe,Se,f,Me)}return;default:if(Bm(a)){for(var zr in l)Se=l[zr],l.hasOwnProperty(zr)&&Se!==void 0&&!f.hasOwnProperty(zr)&&Sy(i,a,zr,void 0,f,Se);for(Re in f)Se=f[Re],Me=l[Re],!f.hasOwnProperty(Re)||Se===Me||Se===void 0&&Me===void 0||Sy(i,a,Re,Se,f,Me);return}}for(var he in l)Se=l[he],l.hasOwnProperty(he)&&Se!=null&&!f.hasOwnProperty(he)&&hr(i,a,he,null,f,Se);for(Ne in f)Se=f[Ne],Me=l[Ne],!f.hasOwnProperty(Ne)||Se===Me||Se==null&&Me==null||hr(i,a,Ne,Se,f,Me)}var wy=null,Cy=null;function df(i){return i.nodeType===9?i:i.ownerDocument}function FS(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function WS(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function Ty(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ey=null;function qA(){var i=window.event;return i&&i.type==="popstate"?i===Ey?!1:(Ey=i,!0):(Ey=null,!1)}var GS=typeof setTimeout=="function"?setTimeout:void 0,FA=typeof clearTimeout=="function"?clearTimeout:void 0,XS=typeof Promise=="function"?Promise:void 0,WA=typeof queueMicrotask=="function"?queueMicrotask:typeof XS<"u"?function(i){return XS.resolve(null).then(i).catch(GA)}:GS;function GA(i){setTimeout(function(){throw i})}function jy(i,a){var l=a,f=0;do{var g=l.nextSibling;if(i.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(f===0){i.removeChild(g),qu(a);return}f--}else l!=="$"&&l!=="$?"&&l!=="$!"||f++;l=g}while(l);qu(a)}function Ay(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ay(l),Ee(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}i.removeChild(l)}}function XA(i,a,l,f){for(;i.nodeType===1;){var g=l;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(f){if(!i[Te])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==g.rel||i.getAttribute("href")!==(g.href==null?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var x=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=io(i.nextSibling),i===null)break}return null}function YA(i,a,l){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!l||(i=io(i.nextSibling),i===null))return null;return i}function io(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return i}function YS(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return i;a--}else l==="/$"&&a++}i=i.previousSibling}return null}function QS(i,a,l){switch(a=df(l),i){case"html":if(i=a.documentElement,!i)throw Error(n(452));return i;case"head":if(i=a.head,!i)throw Error(n(453));return i;case"body":if(i=a.body,!i)throw Error(n(454));return i;default:throw Error(n(451))}}var Ii=new Map,KS=new Set;function pf(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var fa=K.d;K.d={f:QA,r:KA,D:ZA,C:JA,L:eM,m:tM,X:nM,S:rM,M:iM};function QA(){var i=fa.f(),a=nf();return i||a}function KA(i){var a=mt(i);a!==null&&a.tag===5&&a.type==="form"?T1(a):fa.r(i)}var ec=typeof document>"u"?null:document;function ZS(i,a,l){var f=ec;if(f&&typeof a=="string"&&a){var g=ji(a);g='link[rel="'+i+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),KS.has(g)||(KS.add(g),i={rel:i,crossOrigin:l,href:a},f.querySelector(g)===null&&(a=f.createElement("link"),Sn(a,"link",i),$t(a),f.head.appendChild(a)))}}function ZA(i){fa.D(i),ZS("dns-prefetch",i,null)}function JA(i,a){fa.C(i,a),ZS("preconnect",i,a)}function eM(i,a,l){fa.L(i,a,l);var f=ec;if(f&&i&&a){var g='link[rel="preload"][as="'+ji(a)+'"]';a==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+ji(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+ji(l.imageSizes)+'"]')):g+='[href="'+ji(i)+'"]';var x=g;switch(a){case"style":x=tc(i);break;case"script":x=rc(i)}Ii.has(x)||(i=G({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:i,as:a},l),Ii.set(x,i),f.querySelector(g)!==null||a==="style"&&f.querySelector(Bu(x))||a==="script"&&f.querySelector(zu(x))||(a=f.createElement("link"),Sn(a,"link",i),$t(a),f.head.appendChild(a)))}}function tM(i,a){fa.m(i,a);var l=ec;if(l&&i){var f=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+ji(f)+'"][href="'+ji(i)+'"]',x=g;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=rc(i)}if(!Ii.has(x)&&(i=G({rel:"modulepreload",href:i},a),Ii.set(x,i),l.querySelector(g)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zu(x)))return}f=l.createElement("link"),Sn(f,"link",i),$t(f),l.head.appendChild(f)}}}function rM(i,a,l){fa.S(i,a,l);var f=ec;if(f&&i){var g=jr(f).hoistableStyles,x=tc(i);a=a||"default";var O=g.get(x);if(!O){var X={loading:0,preload:null};if(O=f.querySelector(Bu(x)))X.loading=5;else{i=G({rel:"stylesheet",href:i,"data-precedence":a},l),(l=Ii.get(x))&&My(i,l);var te=O=f.createElement("link");$t(te),Sn(te,"link",i),te._p=new Promise(function(pe,Re){te.onload=pe,te.onerror=Re}),te.addEventListener("load",function(){X.loading|=1}),te.addEventListener("error",function(){X.loading|=2}),X.loading|=4,ff(O,a,f)}O={type:"stylesheet",instance:O,count:1,state:X},g.set(x,O)}}}function nM(i,a){fa.X(i,a);var l=ec;if(l&&i){var f=jr(l).hoistableScripts,g=rc(i),x=f.get(g);x||(x=l.querySelector(zu(g)),x||(i=G({src:i,async:!0},a),(a=Ii.get(g))&&Ry(i,a),x=l.createElement("script"),$t(x),Sn(x,"link",i),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(g,x))}}function iM(i,a){fa.M(i,a);var l=ec;if(l&&i){var f=jr(l).hoistableScripts,g=rc(i),x=f.get(g);x||(x=l.querySelector(zu(g)),x||(i=G({src:i,async:!0,type:"module"},a),(a=Ii.get(g))&&Ry(i,a),x=l.createElement("script"),$t(x),Sn(x,"link",i),l.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(g,x))}}function JS(i,a,l,f){var g=(g=Be.current)?pf(g):null;if(!g)throw Error(n(446));switch(i){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=tc(l.href),l=jr(g).hoistableStyles,f=l.get(a),f||(f={type:"style",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){i=tc(l.href);var x=jr(g).hoistableStyles,O=x.get(i);if(O||(g=g.ownerDocument||g,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,O),(x=g.querySelector(Bu(i)))&&!x._p&&(O.instance=x,O.state.loading=5),Ii.has(i)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ii.set(i,l),x||oM(g,i,l,O.state))),a&&f===null)throw Error(n(528,""));return O}if(a&&f!==null)throw Error(n(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=rc(l),l=jr(g).hoistableScripts,f=l.get(a),f||(f={type:"script",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,i))}}function tc(i){return'href="'+ji(i)+'"'}function Bu(i){return'link[rel="stylesheet"]['+i+"]"}function ew(i){return G({},i,{"data-precedence":i.precedence,precedence:null})}function oM(i,a,l,f){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=i.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),Sn(a,"link",l),$t(a),i.head.appendChild(a))}function rc(i){return'[src="'+ji(i)+'"]'}function zu(i){return"script[async]"+i}function tw(i,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var f=i.querySelector('style[data-href~="'+ji(l.href)+'"]');if(f)return a.instance=f,$t(f),f;var g=G({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return f=(i.ownerDocument||i).createElement("style"),$t(f),Sn(f,"style",g),ff(f,l.precedence,i),a.instance=f;case"stylesheet":g=tc(l.href);var x=i.querySelector(Bu(g));if(x)return a.state.loading|=4,a.instance=x,$t(x),x;f=ew(l),(g=Ii.get(g))&&My(f,g),x=(i.ownerDocument||i).createElement("link"),$t(x);var O=x;return O._p=new Promise(function(X,te){O.onload=X,O.onerror=te}),Sn(x,"link",f),a.state.loading|=4,ff(x,l.precedence,i),a.instance=x;case"script":return x=rc(l.src),(g=i.querySelector(zu(x)))?(a.instance=g,$t(g),g):(f=l,(g=Ii.get(x))&&(f=G({},l),Ry(f,g)),i=i.ownerDocument||i,g=i.createElement("script"),$t(g),Sn(g,"link",f),i.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(n(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,ff(f,l.precedence,i));return a.instance}function ff(i,a,l){for(var f=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=f.length?f[f.length-1]:null,x=g,O=0;O<f.length;O++){var X=f[O];if(X.dataset.precedence===a)x=X;else if(x!==g)break}x?x.parentNode.insertBefore(i,x.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(i,a.firstChild))}function My(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function Ry(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var hf=null;function rw(i,a,l){if(hf===null){var f=new Map,g=hf=new Map;g.set(l,f)}else g=hf,f=g.get(l),f||(f=new Map,g.set(l,f));if(f.has(i))return f;for(f.set(i,null),l=l.getElementsByTagName(i),g=0;g<l.length;g++){var x=l[g];if(!(x[Te]||x[Sr]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var O=x.getAttribute(a)||"";O=i+O;var X=f.get(O);X?X.push(x):f.set(O,[x])}}return f}function nw(i,a,l){i=i.ownerDocument||i,i.head.insertBefore(l,a==="title"?i.querySelector("head > title"):null)}function aM(i,a,l){if(l===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return i=a.disabled,typeof a.precedence=="string"&&i==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function iw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var $u=null;function sM(){}function lM(i,a,l){if($u===null)throw Error(n(475));var f=$u;if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var g=tc(l.href),x=i.querySelector(Bu(g));if(x){i=x._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(f.count++,f=mf.bind(f),i.then(f,f)),a.state.loading|=4,a.instance=x,$t(x);return}x=i.ownerDocument||i,l=ew(l),(g=Ii.get(g))&&My(l,g),x=x.createElement("link"),$t(x);var O=x;O._p=new Promise(function(X,te){O.onload=X,O.onerror=te}),Sn(x,"link",l),a.instance=x}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(a,i),(i=a.state.preload)&&(a.state.loading&3)===0&&(f.count++,a=mf.bind(f),i.addEventListener("load",a),i.addEventListener("error",a))}}function cM(){if($u===null)throw Error(n(475));var i=$u;return i.stylesheets&&i.count===0&&ky(i,i.stylesheets),0<i.count?function(a){var l=setTimeout(function(){if(i.stylesheets&&ky(i,i.stylesheets),i.unsuspend){var f=i.unsuspend;i.unsuspend=null,f()}},6e4);return i.unsuspend=a,function(){i.unsuspend=null,clearTimeout(l)}}:null}function mf(){if(this.count--,this.count===0){if(this.stylesheets)ky(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gf=null;function ky(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gf=new Map,a.forEach(uM,i),gf=null,mf.call(i))}function uM(i,a){if(!(a.state.loading&4)){var l=gf.get(i);if(l)var f=l.get(null);else{l=new Map,gf.set(i,l);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<g.length;x++){var O=g[x];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(l.set(O.dataset.precedence,O),f=O)}f&&l.set(null,f)}g=a.instance,O=g.getAttribute("data-precedence"),x=l.get(O)||f,x===f&&l.set(null,g),l.set(O,g),this.count++,f=mf.bind(this),g.addEventListener("load",f),g.addEventListener("error",f),x?x.parentNode.insertBefore(g,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),a.state.loading|=4}}var Du={$$typeof:v,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function dM(i,a,l,f,g,x,O,X){this.tag=1,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=f,this.onUncaughtError=g,this.onCaughtError=x,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function ow(i,a,l,f,g,x,O,X,te,pe,Re,Ne){return i=new dM(i,a,l,O,X,te,pe,Ne),a=1,x===!0&&(a|=24),x=Li(3,null,null,a),i.current=x,x.stateNode=i,a=lg(),a.refCount++,i.pooledCache=a,a.refCount++,x.memoizedState={element:f,isDehydrated:l,cache:a},Ug(x),i}function aw(i){return i?(i=Ll,i):Ll}function sw(i,a,l,f,g,x){g=aw(g),f.context===null?f.context=g:f.pendingContext=g,f=$a(a),f.payload={element:l},x=x===void 0?null:x,x!==null&&(f.callback=x),l=Da(i,f,a),l!==null&&(Ln(l,i,a),Cu(l,i,a))}function lw(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<a?l:a}}function Oy(i,a){lw(i,a),(i=i.alternate)&&lw(i,a)}function cw(i){if(i.tag===13){var a=Pa(i,67108864);a!==null&&Ln(a,i,67108864),Oy(i,67108864)}}var yf=!0;function pM(i,a,l,f){var g=B.T;B.T=null;var x=K.p;try{K.p=2,Py(i,a,l,f)}finally{K.p=x,B.T=g}}function fM(i,a,l,f){var g=B.T;B.T=null;var x=K.p;try{K.p=8,Py(i,a,l,f)}finally{K.p=x,B.T=g}}function Py(i,a,l,f){if(yf){var g=_y(f);if(g===null)xy(i,a,f,vf,l),dw(i,f);else if(mM(g,i,a,l,f))f.stopPropagation();else if(dw(i,f),a&4&&-1<hM.indexOf(i)){for(;g!==null;){var x=mt(g);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var O=Nr(x.pendingLanes);if(O!==0){var X=x;for(X.pendingLanes|=2,X.entangledLanes|=2;O;){var te=1<<31-Xt(O);X.entanglements[1]|=te,O&=~te}Eo(x),(Pr&6)===0&&(ef=at()+500,Lu(0))}}break;case 13:X=Pa(x,2),X!==null&&Ln(X,x,2),nf(),Oy(x,2)}if(x=_y(f),x===null&&xy(i,a,f,vf,l),x===g)break;g=x}g!==null&&f.stopPropagation()}else xy(i,a,f,null,l)}}function _y(i){return i=$m(i),Ly(i)}var vf=null;function Ly(i){if(vf=null,i=Qe(i),i!==null){var a=ee(i);if(a===null)i=null;else{var l=a.tag;if(l===13){if(i=J(a),i!==null)return i;i=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return vf=i,null}function uw(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(fe()){case we:return 2;case ke:return 8;case _e:case Ge:return 32;case Je:return 268435456;default:return 32}default:return 32}}var Ny=!1,Ga=null,Xa=null,Ya=null,Hu=new Map,Uu=new Map,Qa=[],hM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function dw(i,a){switch(i){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Xa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Hu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uu.delete(a.pointerId)}}function Vu(i,a,l,f,g,x){return i===null||i.nativeEvent!==x?(i={blockedOn:a,domEventName:l,eventSystemFlags:f,nativeEvent:x,targetContainers:[g]},a!==null&&(a=mt(a),a!==null&&cw(a)),i):(i.eventSystemFlags|=f,a=i.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),i)}function mM(i,a,l,f,g){switch(a){case"focusin":return Ga=Vu(Ga,i,a,l,f,g),!0;case"dragenter":return Xa=Vu(Xa,i,a,l,f,g),!0;case"mouseover":return Ya=Vu(Ya,i,a,l,f,g),!0;case"pointerover":var x=g.pointerId;return Hu.set(x,Vu(Hu.get(x)||null,i,a,l,f,g)),!0;case"gotpointercapture":return x=g.pointerId,Uu.set(x,Vu(Uu.get(x)||null,i,a,l,f,g)),!0}return!1}function pw(i){var a=Qe(i.target);if(a!==null){var l=ee(a);if(l!==null){if(a=l.tag,a===13){if(a=J(l),a!==null){i.blockedOn=a,Ki(i.priority,function(){if(l.tag===13){var f=hi(),g=Pa(l,f);g!==null&&Ln(g,l,f),Oy(l,f)}});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function bf(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var l=_y(i.nativeEvent);if(l===null){l=i.nativeEvent;var f=new l.constructor(l.type,l);zm=f,l.target.dispatchEvent(f),zm=null}else return a=mt(l),a!==null&&cw(a),i.blockedOn=l,!1;a.shift()}return!0}function fw(i,a,l){bf(i)&&l.delete(a)}function gM(){Ny=!1,Ga!==null&&bf(Ga)&&(Ga=null),Xa!==null&&bf(Xa)&&(Xa=null),Ya!==null&&bf(Ya)&&(Ya=null),Hu.forEach(fw),Uu.forEach(fw)}function xf(i,a){i.blockedOn===a&&(i.blockedOn=null,Ny||(Ny=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,gM)))}var Sf=null;function hw(i){Sf!==i&&(Sf=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Sf===i&&(Sf=null);for(var a=0;a<i.length;a+=3){var l=i[a],f=i[a+1],g=i[a+2];if(typeof f!="function"){if(Ly(f||l)===null)continue;break}var x=mt(l);x!==null&&(i.splice(a,3),a-=3,Tg(x,{pending:!0,data:g,method:l.method,action:f},f,g))}}))}function qu(i){function a(te){return xf(te,i)}Ga!==null&&xf(Ga,i),Xa!==null&&xf(Xa,i),Ya!==null&&xf(Ya,i),Hu.forEach(a),Uu.forEach(a);for(var l=0;l<Qa.length;l++){var f=Qa[l];f.blockedOn===i&&(f.blockedOn=null)}for(;0<Qa.length&&(l=Qa[0],l.blockedOn===null);)pw(l),l.blockedOn===null&&Qa.shift();if(l=(i.ownerDocument||i).$$reactFormReplay,l!=null)for(f=0;f<l.length;f+=3){var g=l[f],x=l[f+1],O=g[Kt]||null;if(typeof x=="function")O||hw(l);else if(O){var X=null;if(x&&x.hasAttribute("formAction")){if(g=x,O=x[Kt]||null)X=O.formAction;else if(Ly(g)!==null)continue}else X=O.action;typeof X=="function"?l[f+1]=X:(l.splice(f,3),f-=3),hw(l)}}}function Iy(i){this._internalRoot=i}wf.prototype.render=Iy.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(n(409));var l=a.current,f=hi();sw(l,f,i,a,null,null)},wf.prototype.unmount=Iy.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;i.tag===0&&Kl(),sw(i.current,2,null,i,null,null),nf(),a[Er]=null}};function wf(i){this._internalRoot=i}wf.prototype.unstable_scheduleHydration=function(i){if(i){var a=qn();i={blockedOn:null,target:i,priority:a};for(var l=0;l<Qa.length&&a!==0&&a<Qa[l].priority;l++);Qa.splice(l,0,i),l===0&&pw(i)}};var mw=e.version;if(mw!=="19.0.0")throw Error(n(527,mw,"19.0.0"));K.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=oe(a),i=i!==null?ue(i):null,i=i===null?null:i.stateNode,i};var yM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:B,findFiberByHostInstance:Qe,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cf.isDisabled&&Cf.supportsFiber)try{He=Cf.inject(yM),$e=Cf}catch{}}return Wu.createRoot=function(i,a){if(!o(i))throw Error(n(299));var l=!1,f="",g=P1,x=_1,O=L1,X=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(O=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(X=a.unstable_transitionCallbacks)),a=ow(i,1,!1,null,null,l,f,g,x,O,X,null),i[Er]=a.current,by(i.nodeType===8?i.parentNode:i),new Iy(a)},Wu.hydrateRoot=function(i,a,l){if(!o(i))throw Error(n(299));var f=!1,g="",x=P1,O=_1,X=L1,te=null,pe=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(O=l.onCaughtError),l.onRecoverableError!==void 0&&(X=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(te=l.unstable_transitionCallbacks),l.formState!==void 0&&(pe=l.formState)),a=ow(i,1,!0,a,l??null,f,g,x,O,X,te,pe),a.context=aw(null),l=a.current,f=hi(),g=$a(f),g.callback=null,Da(l,g,f),a.current.lanes=f,ot(a,f),Eo(a),i[Er]=a.current,by(i),new wf(a)},Wu.version="19.0.0",Wu}var jw;function RM(){if(jw)return $y.exports;jw=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),$y.exports=MM(),$y.exports}var kM=RM();const OM=$h(kM);var fE=pE();const Tf=$h(fE);/**
|
|
50
|
-
* @remix-run/router v1.23.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/function jd(){return jd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jd.apply(this,arguments)}var ts;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ts||(ts={}));const Aw="popstate";function PM(t){t===void 0&&(t={});function e(n,o){let{pathname:s,search:u,hash:d}=n.location;return S0("",{pathname:s,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:hE(o)}return LM(e,r,null,t)}function on(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Rv(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _M(){return Math.random().toString(36).substr(2,8)}function Mw(t,e){return{usr:t.state,key:t.key,idx:e}}function S0(t,e,r,n){return r===void 0&&(r=null),jd({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Uc(e):e,{state:r,key:e&&e.key||n||_M()})}function hE(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Uc(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function LM(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,u=o.history,d=ts.Pop,p=null,h=m();h==null&&(h=0,u.replaceState(jd({},u.state,{idx:h}),""));function m(){return(u.state||{idx:null}).idx}function b(){d=ts.Pop;let T=m(),M=T==null?null:T-h;h=T,p&&p({action:d,location:C.location,delta:M})}function y(T,M){d=ts.Push;let E=S0(C.location,T,M);h=m()+1;let R=Mw(E,h),j=C.createHref(E);try{u.pushState(R,"",j)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(j)}s&&p&&p({action:d,location:C.location,delta:1})}function v(T,M){d=ts.Replace;let E=S0(C.location,T,M);h=m();let R=Mw(E,h),j=C.createHref(E);u.replaceState(R,"",j),s&&p&&p({action:d,location:C.location,delta:0})}function w(T){let M=o.location.origin!=="null"?o.location.origin:o.location.href,E=typeof T=="string"?T:hE(T);return E=E.replace(/ $/,"%20"),on(M,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,M)}let C={get action(){return d},get location(){return t(o,u)},listen(T){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Aw,b),p=T,()=>{o.removeEventListener(Aw,b),p=null}},createHref(T){return e(o,T)},createURL:w,encodeLocation(T){let M=w(T);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:y,replace:v,go(T){return u.go(T)}};return C}var Rw;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Rw||(Rw={}));function NM(t,e,r){return r===void 0&&(r="/"),IM(t,e,r)}function IM(t,e,r,n){let o=typeof e=="string"?Uc(e):e,s=yE(o.pathname||"/",r);if(s==null)return null;let u=mE(t);BM(u);let d=null;for(let p=0;d==null&&p<u.length;++p){let h=YM(s);d=WM(u[p],h)}return d}function mE(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(s,u,d)=>{let p={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};p.relativePath.startsWith("/")&&(on(p.relativePath.startsWith(n),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(n.length));let h=ol([n,p.relativePath]),m=r.concat(p);s.children&&s.children.length>0&&(on(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),mE(s.children,e,m,h)),!(s.path==null&&!s.index)&&e.push({path:h,score:qM(h,s.index),routesMeta:m})};return t.forEach((s,u)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))o(s,u);else for(let p of gE(s.path))o(s,u,p)}),e}function gE(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let u=gE(n.join("/")),d=[];return d.push(...u.map(p=>p===""?s:[s,p].join("/"))),o&&d.push(...u),d.map(p=>t.startsWith("/")&&p===""?"/":p)}function BM(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:FM(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const zM=/^:[\w-]+$/,$M=3,DM=2,HM=1,UM=10,VM=-2,kw=t=>t==="*";function qM(t,e){let r=t.split("/"),n=r.length;return r.some(kw)&&(n+=VM),e&&(n+=DM),r.filter(o=>!kw(o)).reduce((o,s)=>o+(zM.test(s)?$M:s===""?HM:UM),n)}function FM(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function WM(t,e,r){let{routesMeta:n}=t,o={},s="/",u=[];for(let d=0;d<n.length;++d){let p=n[d],h=d===n.length-1,m=s==="/"?e:e.slice(s.length)||"/",b=GM({path:p.relativePath,caseSensitive:p.caseSensitive,end:h},m),y=p.route;if(!b)return null;Object.assign(o,b.params),u.push({params:o,pathname:ol([s,b.pathname]),pathnameBase:rR(ol([s,b.pathnameBase])),route:y}),b.pathnameBase!=="/"&&(s=ol([s,b.pathnameBase]))}return u}function GM(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=XM(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let s=o[0],u=s.replace(/(.)\/+$/,"$1"),d=o.slice(1);return{params:n.reduce((h,m,b)=>{let{paramName:y,isOptional:v}=m;if(y==="*"){let C=d[b]||"";u=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const w=d[b];return v&&!w?h[y]=void 0:h[y]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:u,pattern:t}}function XM(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Rv(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,p)=>(n.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function YM(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Rv(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function yE(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}const QM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,KM=t=>QM.test(t);function ZM(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?Uc(t):t,s;if(r)if(KM(r))s=r;else{if(r.includes("//")){let u=r;r=r.replace(/\/\/+/g,"/"),Rv(!1,"Pathnames cannot have embedded double slashes - normalizing "+(u+" -> "+r))}r.startsWith("/")?s=Ow(r.substring(1),"/"):s=Ow(r,e)}else s=e;return{pathname:s,search:nR(n),hash:iR(o)}}function Ow(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Vy(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function JM(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function eR(t,e){let r=JM(t);return e?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function tR(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=Uc(t):(o=jd({},t),on(!o.pathname||!o.pathname.includes("?"),Vy("?","pathname","search",o)),on(!o.pathname||!o.pathname.includes("#"),Vy("#","pathname","hash",o)),on(!o.search||!o.search.includes("#"),Vy("#","search","hash",o)));let s=t===""||o.pathname==="",u=s?"/":o.pathname,d;if(u==null)d=r;else{let b=e.length-1;if(!n&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),b-=1;o.pathname=y.join("/")}d=b>=0?e[b]:"/"}let p=ZM(o,d),h=u&&u!=="/"&&u.endsWith("/"),m=(s||u===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(h||m)&&(p.pathname+="/"),p}const ol=t=>t.join("/").replace(/\/\/+/g,"/"),rR=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),nR=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,iR=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function oR(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const vE=["post","put","patch","delete"];new Set(vE);const aR=["get",...vE];new Set(aR);/**
|
|
59
|
-
* React Router v6.30.2
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/function Ad(){return Ad=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ad.apply(this,arguments)}const kv=S.createContext(null),sR=S.createContext(null),Dh=S.createContext(null),Hh=S.createContext(null),Vc=S.createContext({outlet:null,matches:[],isDataRoute:!1}),bE=S.createContext(null);function Zd(){return S.useContext(Hh)!=null}function Ov(){return Zd()||on(!1),S.useContext(Hh).location}function xE(t){S.useContext(Dh).static||S.useLayoutEffect(t)}function Pv(){let{isDataRoute:t}=S.useContext(Vc);return t?xR():lR()}function lR(){Zd()||on(!1);let t=S.useContext(kv),{basename:e,future:r,navigator:n}=S.useContext(Dh),{matches:o}=S.useContext(Vc),{pathname:s}=Ov(),u=JSON.stringify(eR(o,r.v7_relativeSplatPath)),d=S.useRef(!1);return xE(()=>{d.current=!0}),S.useCallback(function(h,m){if(m===void 0&&(m={}),!d.current)return;if(typeof h=="number"){n.go(h);return}let b=tR(h,JSON.parse(u),s,m.relative==="path");t==null&&e!=="/"&&(b.pathname=b.pathname==="/"?e:ol([e,b.pathname])),(m.replace?n.replace:n.push)(b,m.state,m)},[e,n,u,s,t])}function cR(t,e){return uR(t,e)}function uR(t,e,r,n){Zd()||on(!1);let{navigator:o}=S.useContext(Dh),{matches:s}=S.useContext(Vc),u=s[s.length-1],d=u?u.params:{};u&&u.pathname;let p=u?u.pathnameBase:"/";u&&u.route;let h=Ov(),m;if(e){var b;let T=typeof e=="string"?Uc(e):e;p==="/"||(b=T.pathname)!=null&&b.startsWith(p)||on(!1),m=T}else m=h;let y=m.pathname||"/",v=y;if(p!=="/"){let T=p.replace(/^\//,"").split("/");v="/"+y.replace(/^\//,"").split("/").slice(T.length).join("/")}let w=NM(t,{pathname:v}),C=mR(w&&w.map(T=>Object.assign({},T,{params:Object.assign({},d,T.params),pathname:ol([p,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:ol([p,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,r,n);return e&&C?S.createElement(Hh.Provider,{value:{location:Ad({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ts.Pop}},C):C}function dR(){let t=bR(),e=oR(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},e),r?S.createElement("pre",{style:o},r):null,null)}const pR=S.createElement(dR,null);class fR extends S.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,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?S.createElement(Vc.Provider,{value:this.props.routeContext},S.createElement(bE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hR(t){let{routeContext:e,match:r,children:n}=t,o=S.useContext(kv);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(Vc.Provider,{value:e},n)}function mR(t,e,r,n){var o;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if(!r)return null;if(r.errors)t=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let u=t,d=(o=r)==null?void 0:o.errors;if(d!=null){let m=u.findIndex(b=>b.route.id&&(d==null?void 0:d[b.route.id])!==void 0);m>=0||on(!1),u=u.slice(0,Math.min(u.length,m+1))}let p=!1,h=-1;if(r&&n&&n.v7_partialHydration)for(let m=0;m<u.length;m++){let b=u[m];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(h=m),b.route.id){let{loaderData:y,errors:v}=r,w=b.route.loader&&y[b.route.id]===void 0&&(!v||v[b.route.id]===void 0);if(b.route.lazy||w){p=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((m,b,y)=>{let v,w=!1,C=null,T=null;r&&(v=d&&b.route.id?d[b.route.id]:void 0,C=b.route.errorElement||pR,p&&(h<0&&y===0?(SR("route-fallback"),w=!0,T=null):h===y&&(w=!0,T=b.route.hydrateFallbackElement||null)));let M=e.concat(u.slice(0,y+1)),E=()=>{let R;return v?R=C:w?R=T:b.route.Component?R=S.createElement(b.route.Component,null):b.route.element?R=b.route.element:R=m,S.createElement(hR,{match:b,routeContext:{outlet:m,matches:M,isDataRoute:r!=null},children:R})};return r&&(b.route.ErrorBoundary||b.route.errorElement||y===0)?S.createElement(fR,{location:r.location,revalidation:r.revalidation,component:C,error:v,children:E(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):E()},null)}var SE=(function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t})(SE||{}),wE=(function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t})(wE||{});function gR(t){let e=S.useContext(kv);return e||on(!1),e}function yR(t){let e=S.useContext(sR);return e||on(!1),e}function vR(t){let e=S.useContext(Vc);return e||on(!1),e}function CE(t){let e=vR(),r=e.matches[e.matches.length-1];return r.route.id||on(!1),r.route.id}function bR(){var t;let e=S.useContext(bE),r=yR(),n=CE();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function xR(){let{router:t}=gR(SE.UseNavigateStable),e=CE(wE.UseNavigateStable),r=S.useRef(!1);return xE(()=>{r.current=!0}),S.useCallback(function(o,s){s===void 0&&(s={}),r.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,Ad({fromRouteId:e},s)))},[t,e])}const Pw={};function SR(t,e,r){Pw[t]||(Pw[t]=!0)}function wR(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function zi(t){on(!1)}function CR(t){let{basename:e="/",children:r=null,location:n,navigationType:o=ts.Pop,navigator:s,static:u=!1,future:d}=t;Zd()&&on(!1);let p=e.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:p,navigator:s,static:u,future:Ad({v7_relativeSplatPath:!1},d)}),[p,d,s,u]);typeof n=="string"&&(n=Uc(n));let{pathname:m="/",search:b="",hash:y="",state:v=null,key:w="default"}=n,C=S.useMemo(()=>{let T=yE(m,p);return T==null?null:{location:{pathname:T,search:b,hash:y,state:v,key:w},navigationType:o}},[p,m,b,y,v,w,o]);return C==null?null:S.createElement(Dh.Provider,{value:h},S.createElement(Hh.Provider,{children:r,value:C}))}function TR(t){let{children:e,location:r}=t;return cR(w0(e),r)}new Promise(()=>{});function w0(t,e){e===void 0&&(e=[]);let r=[];return S.Children.forEach(t,(n,o)=>{if(!S.isValidElement(n))return;let s=[...e,o];if(n.type===S.Fragment){r.push.apply(r,w0(n.props.children,s));return}n.type!==zi&&on(!1),!n.props.index||!n.props.children||on(!1);let u={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(u.children=w0(n.props.children,s)),r.push(u)}),r}/**
|
|
68
|
-
* React Router DOM v6.30.2
|
|
69
|
-
*
|
|
70
|
-
* Copyright (c) Remix Software Inc.
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the MIT license found in the
|
|
73
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
74
|
-
*
|
|
75
|
-
* @license MIT
|
|
76
|
-
*/const ER="6";try{window.__reactRouterVersion=ER}catch{}const jR="startTransition",_w=Ed[jR];function AR(t){let{basename:e,children:r,future:n,window:o}=t,s=S.useRef();s.current==null&&(s.current=PM({window:o,v5Compat:!0}));let u=s.current,[d,p]=S.useState({action:u.action,location:u.location}),{v7_startTransition:h}=n||{},m=S.useCallback(b=>{h&&_w?_w(()=>p(b)):p(b)},[p,h]);return S.useLayoutEffect(()=>u.listen(m),[u,m]),S.useEffect(()=>wR(n),[n]),S.createElement(CR,{basename:e,children:r,location:d.location,navigationType:d.action,navigator:u,future:n})}var Lw;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(Lw||(Lw={}));var Nw;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Nw||(Nw={}));const Md={black:"#000",white:"#fff"},nc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ic={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},oc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ac={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},sc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Gu={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},MR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function xa(t,...e){const r=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${t}; visit ${r} for the full message.`}const lo="$$material";function hh(){return hh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hh.apply(null,arguments)}function RR(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function kR(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var OR=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kR(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=RR(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})(),An="-ms-",mh="-moz-",ir="-webkit-",TE="comm",_v="rule",Lv="decl",PR="@import",EE="@keyframes",_R="@layer",LR=Math.abs,Uh=String.fromCharCode,NR=Object.assign;function IR(t,e){return wn(t,0)^45?(((e<<2^wn(t,0))<<2^wn(t,1))<<2^wn(t,2))<<2^wn(t,3):0}function jE(t){return t.trim()}function BR(t,e){return(t=e.exec(t))?t[0]:t}function or(t,e,r){return t.replace(e,r)}function C0(t,e){return t.indexOf(e)}function wn(t,e){return t.charCodeAt(e)|0}function Rd(t,e,r){return t.slice(e,r)}function Po(t){return t.length}function Nv(t){return t.length}function Ef(t,e){return e.push(t),t}function zR(t,e){return t.map(e).join("")}var Vh=1,Cc=1,AE=0,Jn=0,Qr=0,qc="";function qh(t,e,r,n,o,s,u){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Vh,column:Cc,length:u,return:""}}function Xu(t,e){return NR(qh("",null,null,"",null,null,0),t,{length:-t.length},e)}function $R(){return Qr}function DR(){return Qr=Jn>0?wn(qc,--Jn):0,Cc--,Qr===10&&(Cc=1,Vh--),Qr}function xi(){return Qr=Jn<AE?wn(qc,Jn++):0,Cc++,Qr===10&&(Cc=1,Vh++),Qr}function Io(){return wn(qc,Jn)}function eh(){return Jn}function Jd(t,e){return Rd(qc,t,e)}function kd(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ME(t){return Vh=Cc=1,AE=Po(qc=t),Jn=0,[]}function RE(t){return qc="",t}function th(t){return jE(Jd(Jn-1,T0(t===91?t+2:t===40?t+1:t)))}function HR(t){for(;(Qr=Io())&&Qr<33;)xi();return kd(t)>2||kd(Qr)>3?"":" "}function UR(t,e){for(;--e&&xi()&&!(Qr<48||Qr>102||Qr>57&&Qr<65||Qr>70&&Qr<97););return Jd(t,eh()+(e<6&&Io()==32&&xi()==32))}function T0(t){for(;xi();)switch(Qr){case t:return Jn;case 34:case 39:t!==34&&t!==39&&T0(Qr);break;case 40:t===41&&T0(t);break;case 92:xi();break}return Jn}function VR(t,e){for(;xi()&&t+Qr!==57;)if(t+Qr===84&&Io()===47)break;return"/*"+Jd(e,Jn-1)+"*"+Uh(t===47?t:xi())}function qR(t){for(;!kd(Io());)xi();return Jd(t,Jn)}function FR(t){return RE(rh("",null,null,null,[""],t=ME(t),0,[0],t))}function rh(t,e,r,n,o,s,u,d,p){for(var h=0,m=0,b=u,y=0,v=0,w=0,C=1,T=1,M=1,E=0,R="",j=o,k=s,P=n,z=R;T;)switch(w=E,E=xi()){case 40:if(w!=108&&wn(z,b-1)==58){C0(z+=or(th(E),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:z+=th(E);break;case 9:case 10:case 13:case 32:z+=HR(w);break;case 92:z+=UR(eh()-1,7);continue;case 47:switch(Io()){case 42:case 47:Ef(WR(VR(xi(),eh()),e,r),p);break;default:z+="/"}break;case 123*C:d[h++]=Po(z)*M;case 125*C:case 59:case 0:switch(E){case 0:case 125:T=0;case 59+m:M==-1&&(z=or(z,/\f/g,"")),v>0&&Po(z)-b&&Ef(v>32?Bw(z+";",n,r,b-1):Bw(or(z," ","")+";",n,r,b-2),p);break;case 59:z+=";";default:if(Ef(P=Iw(z,e,r,h,m,o,d,R,j=[],k=[],b),s),E===123)if(m===0)rh(z,e,P,P,j,s,b,d,k);else switch(y===99&&wn(z,3)===110?100:y){case 100:case 108:case 109:case 115:rh(t,P,P,n&&Ef(Iw(t,P,P,0,0,o,d,R,o,j=[],b),k),o,k,b,d,n?j:k);break;default:rh(z,P,P,P,[""],k,0,d,k)}}h=m=v=0,C=M=1,R=z="",b=u;break;case 58:b=1+Po(z),v=w;default:if(C<1){if(E==123)--C;else if(E==125&&C++==0&&DR()==125)continue}switch(z+=Uh(E),E*C){case 38:M=m>0?1:(z+="\f",-1);break;case 44:d[h++]=(Po(z)-1)*M,M=1;break;case 64:Io()===45&&(z+=th(xi())),y=Io(),m=b=Po(R=z+=qR(eh())),E++;break;case 45:w===45&&Po(z)==2&&(C=0)}}return s}function Iw(t,e,r,n,o,s,u,d,p,h,m){for(var b=o-1,y=o===0?s:[""],v=Nv(y),w=0,C=0,T=0;w<n;++w)for(var M=0,E=Rd(t,b+1,b=LR(C=u[w])),R=t;M<v;++M)(R=jE(C>0?y[M]+" "+E:or(E,/&\f/g,y[M])))&&(p[T++]=R);return qh(t,e,r,o===0?_v:d,p,h,m)}function WR(t,e,r){return qh(t,e,r,TE,Uh($R()),Rd(t,2,-2),0)}function Bw(t,e,r,n){return qh(t,e,r,Lv,Rd(t,0,n),Rd(t,n+1,-1),n)}function yc(t,e){for(var r="",n=Nv(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function GR(t,e,r,n){switch(t.type){case _R:if(t.children.length)break;case PR:case Lv:return t.return=t.return||t.value;case TE:return"";case EE:return t.return=t.value+"{"+yc(t.children,n)+"}";case _v:t.value=t.props.join(",")}return Po(r=yc(t.children,n))?t.return=t.value+"{"+r+"}":""}function XR(t){var e=Nv(t);return function(r,n,o,s){for(var u="",d=0;d<e;d++)u+=t[d](r,n,o,s)||"";return u}}function YR(t){return function(e){e.root||(e=e.return)&&t(e)}}function kE(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var QR=function(e,r,n){for(var o=0,s=0;o=s,s=Io(),o===38&&s===12&&(r[n]=1),!kd(s);)xi();return Jd(e,Jn)},KR=function(e,r){var n=-1,o=44;do switch(kd(o)){case 0:o===38&&Io()===12&&(r[n]=1),e[n]+=QR(Jn-1,r,n);break;case 2:e[n]+=th(o);break;case 4:if(o===44){e[++n]=Io()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Uh(o)}while(o=xi());return e},ZR=function(e,r){return RE(KR(ME(e),r))},zw=new WeakMap,JR=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!zw.get(n))&&!o){zw.set(e,!0);for(var s=[],u=ZR(r,s),d=n.props,p=0,h=0;p<u.length;p++)for(var m=0;m<d.length;m++,h++)e.props[h]=s[p]?u[p].replace(/&\f/g,d[m]):d[m]+" "+u[p]}}},ek=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function OE(t,e){switch(IR(t,e)){case 5103:return ir+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ir+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return ir+t+mh+t+An+t+t;case 6828:case 4268:return ir+t+An+t+t;case 6165:return ir+t+An+"flex-"+t+t;case 5187:return ir+t+or(t,/(\w+).+(:[^]+)/,ir+"box-$1$2"+An+"flex-$1$2")+t;case 5443:return ir+t+An+"flex-item-"+or(t,/flex-|-self/,"")+t;case 4675:return ir+t+An+"flex-line-pack"+or(t,/align-content|flex-|-self/,"")+t;case 5548:return ir+t+An+or(t,"shrink","negative")+t;case 5292:return ir+t+An+or(t,"basis","preferred-size")+t;case 6060:return ir+"box-"+or(t,"-grow","")+ir+t+An+or(t,"grow","positive")+t;case 4554:return ir+or(t,/([^-])(transform)/g,"$1"+ir+"$2")+t;case 6187:return or(or(or(t,/(zoom-|grab)/,ir+"$1"),/(image-set)/,ir+"$1"),t,"")+t;case 5495:case 3959:return or(t,/(image-set\([^]*)/,ir+"$1$`$1");case 4968:return or(or(t,/(.+:)(flex-)?(.*)/,ir+"box-pack:$3"+An+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ir+t+t;case 4095:case 3583:case 4068:case 2532:return or(t,/(.+)-inline(.+)/,ir+"$1$2")+t;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(Po(t)-1-e>6)switch(wn(t,e+1)){case 109:if(wn(t,e+4)!==45)break;case 102:return or(t,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+mh+(wn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~C0(t,"stretch")?OE(or(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(wn(t,e+1)!==115)break;case 6444:switch(wn(t,Po(t)-3-(~C0(t,"!important")&&10))){case 107:return or(t,":",":"+ir)+t;case 101:return or(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(wn(t,14)===45?"inline-":"")+"box$3$1"+ir+"$2$3$1"+An+"$2box$3")+t}break;case 5936:switch(wn(t,e+11)){case 114:return ir+t+An+or(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ir+t+An+or(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ir+t+An+or(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ir+t+An+t+t}return t}var tk=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Lv:e.return=OE(e.value,e.length);break;case EE:return yc([Xu(e,{value:or(e.value,"@","@"+ir)})],o);case _v:if(e.length)return zR(e.props,function(s){switch(BR(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yc([Xu(e,{props:[or(s,/:(read-\w+)/,":"+mh+"$1")]})],o);case"::placeholder":return yc([Xu(e,{props:[or(s,/:(plac\w+)/,":"+ir+"input-$1")]}),Xu(e,{props:[or(s,/:(plac\w+)/,":"+mh+"$1")]}),Xu(e,{props:[or(s,/:(plac\w+)/,An+"input-$1")]})],o)}return""})}},rk=[tk],nk=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(C){var T=C.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var o=e.stylisPlugins||rk,s={},u,d=[];u=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var T=C.getAttribute("data-emotion").split(" "),M=1;M<T.length;M++)s[T[M]]=!0;d.push(C)});var p,h=[JR,ek];{var m,b=[GR,YR(function(C){m.insert(C)})],y=XR(h.concat(o,b)),v=function(T){return yc(FR(T),y)};p=function(T,M,E,R){m=E,v(T?T+"{"+M.styles+"}":M.styles),R&&(w.inserted[M.name]=!0)}}var w={key:r,sheet:new OR({key:r,container:u,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:p};return w.sheet.hydrate(d),w},qy={exports:{}},lr={};/** @license React v16.13.1
|
|
77
|
-
* react-is.production.min.js
|
|
78
|
-
*
|
|
79
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the MIT license found in the
|
|
82
|
-
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var $w;function ik(){if($w)return lr;$w=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,d=t?Symbol.for("react.context"):60110,p=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,C=t?Symbol.for("react.block"):60121,T=t?Symbol.for("react.fundamental"):60117,M=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function R(k){if(typeof k=="object"&&k!==null){var P=k.$$typeof;switch(P){case e:switch(k=k.type,k){case p:case h:case n:case s:case o:case b:return k;default:switch(k=k&&k.$$typeof,k){case d:case m:case w:case v:case u:return k;default:return P}}case r:return P}}}function j(k){return R(k)===h}return lr.AsyncMode=p,lr.ConcurrentMode=h,lr.ContextConsumer=d,lr.ContextProvider=u,lr.Element=e,lr.ForwardRef=m,lr.Fragment=n,lr.Lazy=w,lr.Memo=v,lr.Portal=r,lr.Profiler=s,lr.StrictMode=o,lr.Suspense=b,lr.isAsyncMode=function(k){return j(k)||R(k)===p},lr.isConcurrentMode=j,lr.isContextConsumer=function(k){return R(k)===d},lr.isContextProvider=function(k){return R(k)===u},lr.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},lr.isForwardRef=function(k){return R(k)===m},lr.isFragment=function(k){return R(k)===n},lr.isLazy=function(k){return R(k)===w},lr.isMemo=function(k){return R(k)===v},lr.isPortal=function(k){return R(k)===r},lr.isProfiler=function(k){return R(k)===s},lr.isStrictMode=function(k){return R(k)===o},lr.isSuspense=function(k){return R(k)===b},lr.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===h||k===s||k===o||k===b||k===y||typeof k=="object"&&k!==null&&(k.$$typeof===w||k.$$typeof===v||k.$$typeof===u||k.$$typeof===d||k.$$typeof===m||k.$$typeof===T||k.$$typeof===M||k.$$typeof===E||k.$$typeof===C)},lr.typeOf=R,lr}var Dw;function ok(){return Dw||(Dw=1,qy.exports=ik()),qy.exports}var Fy,Hw;function ak(){if(Hw)return Fy;Hw=1;var t=ok(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=n,s[t.Memo]=o;function u(w){return t.isMemo(w)?o:s[w.$$typeof]||e}var d=Object.defineProperty,p=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,y=Object.prototype;function v(w,C,T){if(typeof C!="string"){if(y){var M=b(C);M&&M!==y&&v(w,M,T)}var E=p(C);h&&(E=E.concat(h(C)));for(var R=u(w),j=u(C),k=0;k<E.length;++k){var P=E[k];if(!r[P]&&!(T&&T[P])&&!(j&&j[P])&&!(R&&R[P])){var z=m(C,P);try{d(w,P,z)}catch{}}}}return w}return Fy=v,Fy}ak();var sk=!0;function PE(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var Iv=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||sk===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Bv=function(e,r,n){Iv(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function lk(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var ck={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uk=/[A-Z]|^ms/g,dk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_E=function(e){return e.charCodeAt(1)===45},Uw=function(e){return e!=null&&typeof e!="boolean"},Wy=kE(function(t){return _E(t)?t:t.replace(uk,"-$&").toLowerCase()}),Vw=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(dk,function(n,o,s){return _o={name:o,styles:s,next:_o},o})}return ck[e]!==1&&!_E(e)&&typeof r=="number"&&r!==0?r+"px":r};function Od(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return _o={name:o.name,styles:o.styles,next:_o},o.name;var s=r;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)_o={name:u.name,styles:u.styles,next:_o},u=u.next;var d=s.styles+";";return d}return pk(t,e,r)}case"function":{if(t!==void 0){var p=_o,h=r(t);return _o=p,Od(t,e,h)}break}}var m=r;if(e==null)return m;var b=e[m];return b!==void 0?b:m}function pk(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Od(t,e,r[o])+";";else for(var s in r){var u=r[s];if(typeof u!="object"){var d=u;e!=null&&e[d]!==void 0?n+=s+"{"+e[d]+"}":Uw(d)&&(n+=Wy(s)+":"+Vw(s,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(e==null||e[u[0]]===void 0))for(var p=0;p<u.length;p++)Uw(u[p])&&(n+=Wy(s)+":"+Vw(s,u[p])+";");else{var h=Od(t,e,u);switch(s){case"animation":case"animationName":{n+=Wy(s)+":"+h+";";break}default:n+=s+"{"+h+"}"}}}return n}var qw=/label:\s*([^\s;{]+)\s*(;|$)/g,_o;function ep(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";_o=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Od(r,e,s);else{var u=s;o+=u[0]}for(var d=1;d<t.length;d++)if(o+=Od(r,e,t[d]),n){var p=s;o+=p[d]}qw.lastIndex=0;for(var h="",m;(m=qw.exec(o))!==null;)h+="-"+m[1];var b=lk(o)+h;return{name:b,styles:o,next:_o}}var fk=function(e){return e()},LE=Ed.useInsertionEffect?Ed.useInsertionEffect:!1,NE=LE||fk,Fw=LE||S.useLayoutEffect,IE=S.createContext(typeof HTMLElement<"u"?nk({key:"css"}):null);IE.Provider;var zv=function(e){return S.forwardRef(function(r,n){var o=S.useContext(IE);return e(r,o,n)})},tp=S.createContext({}),$v={}.hasOwnProperty,E0="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hk=function(e,r){var n={};for(var o in r)$v.call(r,o)&&(n[o]=r[o]);return n[E0]=e,n},mk=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Iv(r,n,o),NE(function(){return Bv(r,n,o)}),null},gk=zv(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[E0],s=[n],u="";typeof t.className=="string"?u=PE(e.registered,s,t.className):t.className!=null&&(u=t.className+" ");var d=ep(s,void 0,S.useContext(tp));u+=e.key+"-"+d.name;var p={};for(var h in t)$v.call(t,h)&&h!=="css"&&h!==E0&&(p[h]=t[h]);return p.className=u,r&&(p.ref=r),S.createElement(S.Fragment,null,S.createElement(mk,{cache:e,serialized:d,isStringTag:typeof o=="string"}),S.createElement(o,p))}),yk=gk,Ww=function(e,r){var n=arguments;if(r==null||!$v.call(r,"css"))return S.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=yk,s[1]=hk(e,r);for(var u=2;u<o;u++)s[u]=n[u];return S.createElement.apply(null,s)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Ww||(Ww={}));var vk=zv(function(t,e){var r=t.styles,n=ep([r],void 0,S.useContext(tp)),o=S.useRef();return Fw(function(){var s=e.key+"-global",u=new e.sheet.constructor({key:s,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),d=!1,p=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return e.sheet.tags.length&&(u.before=e.sheet.tags[0]),p!==null&&(d=!0,p.setAttribute("data-emotion",s),u.hydrate([p])),o.current=[u,d],function(){u.flush()}},[e]),Fw(function(){var s=o.current,u=s[0],d=s[1];if(d){s[1]=!1;return}if(n.next!==void 0&&Bv(e,n.next,!0),u.tags.length){var p=u.tags[u.tags.length-1].nextElementSibling;u.before=p,u.flush()}e.insert("",n,u,!1)},[e,n.name]),null});function ys(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return ep(e)}function Go(){var t=ys.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var bk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xk=kE(function(t){return bk.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Sk=xk,wk=function(e){return e!=="theme"},Gw=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Sk:wk},Xw=function(e,r,n){var o;if(r){var s=r.shouldForwardProp;o=e.__emotion_forwardProp&&s?function(u){return e.__emotion_forwardProp(u)&&s(u)}:s}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},Ck=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return Iv(r,n,o),NE(function(){return Bv(r,n,o)}),null},Tk=function t(e,r){var n=e.__emotion_real===e,o=n&&e.__emotion_base||e,s,u;r!==void 0&&(s=r.label,u=r.target);var d=Xw(e,r,n),p=d||Gw(o),h=!p("as");return function(){var m=arguments,b=n&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)b.push.apply(b,m);else{var y=m[0];b.push(y[0]);for(var v=m.length,w=1;w<v;w++)b.push(m[w],y[w])}var C=zv(function(T,M,E){var R=h&&T.as||o,j="",k=[],P=T;if(T.theme==null){P={};for(var z in T)P[z]=T[z];P.theme=S.useContext(tp)}typeof T.className=="string"?j=PE(M.registered,k,T.className):T.className!=null&&(j=T.className+" ");var _=ep(b.concat(k),M.registered,P);j+=M.key+"-"+_.name,u!==void 0&&(j+=" "+u);var B=h&&d===void 0?Gw(R):p,G={};for(var D in T)h&&D==="as"||B(D)&&(G[D]=T[D]);return G.className=j,E&&(G.ref=E),S.createElement(S.Fragment,null,S.createElement(Ck,{cache:M,serialized:_,isStringTag:typeof R=="string"}),S.createElement(R,G))});return C.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",C.defaultProps=e.defaultProps,C.__emotion_real=C,C.__emotion_base=o,C.__emotion_styles=b,C.__emotion_forwardProp=d,Object.defineProperty(C,"toString",{value:function(){return"."+u}}),C.withComponent=function(T,M){var E=t(T,hh({},r,M,{shouldForwardProp:Xw(C,M,!0)}));return E.apply(void 0,b)},C}},Ek=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],j0=Tk.bind(null);Ek.forEach(function(t){j0[t]=j0(t)});function jk(t){return t==null||Object.keys(t).length===0}function BE(t){const{styles:e,defaultTheme:r={}}=t,n=typeof e=="function"?o=>e(jk(o)?r:o):e;return c.jsx(vk,{styles:n})}function zE(t,e){return j0(t,e)}function Ak(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const Yw=[];function is(t){return Yw[0]=t,ep(Yw)}var Gy={exports:{}},mr={};/**
|
|
84
|
-
* @license React
|
|
85
|
-
* react-is.production.js
|
|
86
|
-
*
|
|
87
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the MIT license found in the
|
|
90
|
-
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var Qw;function Mk(){if(Qw)return mr;Qw=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function w(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case r:case o:case n:case p:case h:case y:return C;default:switch(C=C&&C.$$typeof,C){case u:case d:case b:case m:return C;case s:return C;default:return T}}case e:return T}}}return mr.ContextConsumer=s,mr.ContextProvider=u,mr.Element=t,mr.ForwardRef=d,mr.Fragment=r,mr.Lazy=b,mr.Memo=m,mr.Portal=e,mr.Profiler=o,mr.StrictMode=n,mr.Suspense=p,mr.SuspenseList=h,mr.isContextConsumer=function(C){return w(C)===s},mr.isContextProvider=function(C){return w(C)===u},mr.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},mr.isForwardRef=function(C){return w(C)===d},mr.isFragment=function(C){return w(C)===r},mr.isLazy=function(C){return w(C)===b},mr.isMemo=function(C){return w(C)===m},mr.isPortal=function(C){return w(C)===e},mr.isProfiler=function(C){return w(C)===o},mr.isStrictMode=function(C){return w(C)===n},mr.isSuspense=function(C){return w(C)===p},mr.isSuspenseList=function(C){return w(C)===h},mr.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===o||C===n||C===p||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===m||C.$$typeof===u||C.$$typeof===s||C.$$typeof===d||C.$$typeof===v||C.getModuleId!==void 0)},mr.typeOf=w,mr}var Kw;function Rk(){return Kw||(Kw=1,Gy.exports=Mk()),Gy.exports}var $E=Rk();function No(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function DE(t){if(S.isValidElement(t)||$E.isValidElementType(t)||!No(t))return t;const e={};return Object.keys(t).forEach(r=>{e[r]=DE(t[r])}),e}function fn(t,e,r={clone:!0}){const n=r.clone?{...t}:t;return No(t)&&No(e)&&Object.keys(e).forEach(o=>{S.isValidElement(e[o])||$E.isValidElementType(e[o])?n[o]=e[o]:No(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&No(t[o])?n[o]=fn(t[o],e[o],r):r.clone?n[o]=No(e[o])?DE(e[o]):e[o]:n[o]=e[o]}),n}const kk=t=>{const e=Object.keys(t).map(r=>({key:r,val:t[r]}))||[];return e.sort((r,n)=>r.val-n.val),e.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Ok(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=t,s=kk(e),u=Object.keys(s);function d(y){return`@media (min-width:${typeof e[y]=="number"?e[y]:y}${r})`}function p(y){return`@media (max-width:${(typeof e[y]=="number"?e[y]:y)-n/100}${r})`}function h(y,v){const w=u.indexOf(v);return`@media (min-width:${typeof e[y]=="number"?e[y]:y}${r}) and (max-width:${(w!==-1&&typeof e[u[w]]=="number"?e[u[w]]:v)-n/100}${r})`}function m(y){return u.indexOf(y)+1<u.length?h(y,u[u.indexOf(y)+1]):d(y)}function b(y){const v=u.indexOf(y);return v===0?d(u[1]):v===u.length-1?p(u[v]):h(y,u[u.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:u,values:s,up:d,down:p,between:h,only:m,not:b,unit:r,...o}}function Zw(t,e){if(!t.containerQueries)return e;const r=Object.keys(e).filter(n=>n.startsWith("@container")).sort((n,o)=>{var u,d;const s=/min-width:\s*([0-9.]+)/;return+(((u=n.match(s))==null?void 0:u[1])||0)-+(((d=o.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((n,o)=>{const s=e[o];return delete n[o],n[o]=s,n},{...e}):e}function Pk(t,e){return e==="@"||e.startsWith("@")&&(t.some(r=>e.startsWith(`@${r}`))||!!e.match(/^@\d/))}function _k(t,e){const r=e.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,s=Number.isNaN(+n)?n||0:+n;return t.containerQueries(o).up(s)}function Lk(t){const e=(s,u)=>s.replace("@media",u?`@container ${u}`:"@container");function r(s,u){s.up=(...d)=>e(t.breakpoints.up(...d),u),s.down=(...d)=>e(t.breakpoints.down(...d),u),s.between=(...d)=>e(t.breakpoints.between(...d),u),s.only=(...d)=>e(t.breakpoints.only(...d),u),s.not=(...d)=>{const p=e(t.breakpoints.not(...d),u);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const n={},o=s=>(r(n,s),n);return r(o),{...t,containerQueries:o}}const Nk={borderRadius:4};function hd(t,e){return e?fn(t,e,{clone:!1}):t}const Fh={xs:0,sm:600,md:900,lg:1200,xl:1536},Jw={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Fh[t]}px)`},Ik={containerQueries:t=>({up:e=>{let r=typeof e=="number"?e:Fh[e]||e;return typeof r=="number"&&(r=`${r}px`),t?`@container ${t} (min-width:${r})`:`@container (min-width:${r})`}})};function co(t,e,r){const n=t.theme||{};if(Array.isArray(e)){const s=n.breakpoints||Jw;return e.reduce((u,d,p)=>(u[s.up(s.keys[p])]=r(e[p]),u),{})}if(typeof e=="object"){const s=n.breakpoints||Jw;return Object.keys(e).reduce((u,d)=>{if(Pk(s.keys,d)){const p=_k(n.containerQueries?n:Ik,d);p&&(u[p]=r(e[d],d))}else if(Object.keys(s.values||Fh).includes(d)){const p=s.up(d);u[p]=r(e[d],d)}else{const p=d;u[p]=e[p]}return u},{})}return r(e)}function HE(t={}){var r;return((r=t.keys)==null?void 0:r.reduce((n,o)=>{const s=t.up(o);return n[s]={},n},{}))||{}}function A0(t,e){return t.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},e)}function Bk(t,...e){const r=HE(t),n=[r,...e].reduce((o,s)=>fn(o,s),{});return A0(Object.keys(r),n)}function zk(t,e){if(typeof t!="object")return{};const r={},n=Object.keys(e);return Array.isArray(t)?n.forEach((o,s)=>{s<t.length&&(r[o]=!0)}):n.forEach(o=>{t[o]!=null&&(r[o]=!0)}),r}function Xy({values:t,breakpoints:e,base:r}){const n=r||zk(t,e),o=Object.keys(n);if(o.length===0)return t;let s;return o.reduce((u,d,p)=>(Array.isArray(t)?(u[d]=t[p]!=null?t[p]:t[s],s=p):typeof t=="object"?(u[d]=t[d]!=null?t[d]:t[s],s=d):u[d]=t,u),{})}function ve(t){if(typeof t!="string")throw new Error(xa(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Lo(t,e,r=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&r){const n=`vars.${e}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,t);if(n!=null)return n}return e.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,t)}function gh(t,e,r,n=r){let o;return typeof t=="function"?o=t(r):Array.isArray(t)?o=t[r]||n:o=Lo(t,r)||n,e&&(o=e(o,n,t)),o}function Wr(t){const{prop:e,cssProperty:r=t.prop,themeKey:n,transform:o}=t,s=u=>{if(u[e]==null)return null;const d=u[e],p=u.theme,h=Lo(p,n)||{};return co(u,d,b=>{let y=gh(h,o,b);return b===y&&typeof b=="string"&&(y=gh(h,o,`${e}${b==="default"?"":ve(b)}`,b)),r===!1?y:{[r]:y}})};return s.propTypes={},s.filterProps=[e],s}function $k(t){const e={};return r=>(e[r]===void 0&&(e[r]=t(r)),e[r])}const Dk={m:"margin",p:"padding"},Hk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},e2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uk=$k(t=>{if(t.length>2)if(e2[t])t=e2[t];else return[t];const[e,r]=t.split(""),n=Dk[e],o=Hk[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),Dv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Dv,...Hv];function rp(t,e,r,n){const o=Lo(t,e,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const u=Math.abs(s),d=o[u];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof o=="function"?o:()=>{}}function Wh(t){return rp(t,"spacing",8)}function sl(t,e){return typeof e=="string"||e==null?e:t(e)}function Vk(t,e){return r=>t.reduce((n,o)=>(n[o]=sl(e,r),n),{})}function qk(t,e,r,n){if(!e.includes(r))return null;const o=Uk(r),s=Vk(o,n),u=t[r];return co(t,u,s)}function UE(t,e){const r=Wh(t.theme);return Object.keys(t).map(n=>qk(t,e,n,r)).reduce(hd,{})}function $r(t){return UE(t,Dv)}$r.propTypes={};$r.filterProps=Dv;function Dr(t){return UE(t,Hv)}Dr.propTypes={};Dr.filterProps=Hv;function VE(t=8,e=Wh({spacing:t})){if(t.mui)return t;const r=(...n)=>(n.length===0?[1]:n).map(s=>{const u=e(s);return typeof u=="number"?`${u}px`:u}).join(" ");return r.mui=!0,r}function Gh(...t){const e=t.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>e[s]?hd(o,e[s](n)):o,{});return r.propTypes={},r.filterProps=t.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Hi(t){return typeof t!="number"?t:`${t}px solid`}function Qi(t,e){return Wr({prop:t,themeKey:"borders",transform:e})}const Fk=Qi("border",Hi),Wk=Qi("borderTop",Hi),Gk=Qi("borderRight",Hi),Xk=Qi("borderBottom",Hi),Yk=Qi("borderLeft",Hi),Qk=Qi("borderColor"),Kk=Qi("borderTopColor"),Zk=Qi("borderRightColor"),Jk=Qi("borderBottomColor"),e6=Qi("borderLeftColor"),t6=Qi("outline",Hi),r6=Qi("outlineColor"),Xh=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=rp(t.theme,"shape.borderRadius",4),r=n=>({borderRadius:sl(e,n)});return co(t,t.borderRadius,r)}return null};Xh.propTypes={};Xh.filterProps=["borderRadius"];Gh(Fk,Wk,Gk,Xk,Yk,Qk,Kk,Zk,Jk,e6,Xh,t6,r6);const Yh=t=>{if(t.gap!==void 0&&t.gap!==null){const e=rp(t.theme,"spacing",8),r=n=>({gap:sl(e,n)});return co(t,t.gap,r)}return null};Yh.propTypes={};Yh.filterProps=["gap"];const Qh=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=rp(t.theme,"spacing",8),r=n=>({columnGap:sl(e,n)});return co(t,t.columnGap,r)}return null};Qh.propTypes={};Qh.filterProps=["columnGap"];const Kh=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=rp(t.theme,"spacing",8),r=n=>({rowGap:sl(e,n)});return co(t,t.rowGap,r)}return null};Kh.propTypes={};Kh.filterProps=["rowGap"];const n6=Wr({prop:"gridColumn"}),i6=Wr({prop:"gridRow"}),o6=Wr({prop:"gridAutoFlow"}),a6=Wr({prop:"gridAutoColumns"}),s6=Wr({prop:"gridAutoRows"}),l6=Wr({prop:"gridTemplateColumns"}),c6=Wr({prop:"gridTemplateRows"}),u6=Wr({prop:"gridTemplateAreas"}),d6=Wr({prop:"gridArea"});Gh(Yh,Qh,Kh,n6,i6,o6,a6,s6,l6,c6,u6,d6);function vc(t,e){return e==="grey"?e:t}const p6=Wr({prop:"color",themeKey:"palette",transform:vc}),f6=Wr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vc}),h6=Wr({prop:"backgroundColor",themeKey:"palette",transform:vc});Gh(p6,f6,h6);function vi(t){return t<=1&&t!==0?`${t*100}%`:t}const m6=Wr({prop:"width",transform:vi}),Uv=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=r=>{var o,s,u,d,p;const n=((u=(s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:u[r])||Fh[r];return n?((p=(d=t.theme)==null?void 0:d.breakpoints)==null?void 0:p.unit)!=="px"?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vi(r)}};return co(t,t.maxWidth,e)}return null};Uv.filterProps=["maxWidth"];const g6=Wr({prop:"minWidth",transform:vi}),y6=Wr({prop:"height",transform:vi}),v6=Wr({prop:"maxHeight",transform:vi}),b6=Wr({prop:"minHeight",transform:vi});Wr({prop:"size",cssProperty:"width",transform:vi});Wr({prop:"size",cssProperty:"height",transform:vi});const x6=Wr({prop:"boxSizing"});Gh(m6,Uv,g6,y6,v6,b6,x6);const np={border:{themeKey:"borders",transform:Hi},borderTop:{themeKey:"borders",transform:Hi},borderRight:{themeKey:"borders",transform:Hi},borderBottom:{themeKey:"borders",transform:Hi},borderLeft:{themeKey:"borders",transform:Hi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xh},color:{themeKey:"palette",transform:vc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vc},backgroundColor:{themeKey:"palette",transform:vc},p:{style:Dr},pt:{style:Dr},pr:{style:Dr},pb:{style:Dr},pl:{style:Dr},px:{style:Dr},py:{style:Dr},padding:{style:Dr},paddingTop:{style:Dr},paddingRight:{style:Dr},paddingBottom:{style:Dr},paddingLeft:{style:Dr},paddingX:{style:Dr},paddingY:{style:Dr},paddingInline:{style:Dr},paddingInlineStart:{style:Dr},paddingInlineEnd:{style:Dr},paddingBlock:{style:Dr},paddingBlockStart:{style:Dr},paddingBlockEnd:{style:Dr},m:{style:$r},mt:{style:$r},mr:{style:$r},mb:{style:$r},ml:{style:$r},mx:{style:$r},my:{style:$r},margin:{style:$r},marginTop:{style:$r},marginRight:{style:$r},marginBottom:{style:$r},marginLeft:{style:$r},marginX:{style:$r},marginY:{style:$r},marginInline:{style:$r},marginInlineStart:{style:$r},marginInlineEnd:{style:$r},marginBlock:{style:$r},marginBlockStart:{style:$r},marginBlockEnd:{style:$r},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yh},rowGap:{style:Kh},columnGap:{style:Qh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vi},maxWidth:{style:Uv},minWidth:{transform:vi},height:{transform:vi},maxHeight:{transform:vi},minHeight:{transform:vi},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S6(...t){const e=t.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(e);return t.every(n=>r.size===Object.keys(n).length)}function w6(t,e){return typeof t=="function"?t(e):t}function C6(){function t(r,n,o,s){const u={[r]:n,theme:o},d=s[r];if(!d)return{[r]:n};const{cssProperty:p=r,themeKey:h,transform:m,style:b}=d;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const y=Lo(o,h)||{};return b?b(u):co(u,n,w=>{let C=gh(y,m,w);return w===C&&typeof w=="string"&&(C=gh(y,m,`${r}${w==="default"?"":ve(w)}`,w)),p===!1?C:{[p]:C}})}function e(r){const{sx:n,theme:o={},nested:s}=r||{};if(!n)return null;const u=o.unstable_sxConfig??np;function d(p){let h=p;if(typeof p=="function")h=p(o);else if(typeof p!="object")return p;if(!h)return null;const m=HE(o.breakpoints),b=Object.keys(m);let y=m;return Object.keys(h).forEach(v=>{const w=w6(h[v],o);if(w!=null)if(typeof w=="object")if(u[v])y=hd(y,t(v,w,o,u));else{const C=co({theme:o},w,T=>({[v]:T}));S6(C,w)?y[v]=e({sx:w,theme:o,nested:!0}):y=hd(y,C)}else y=hd(y,t(v,w,o,u))}),!s&&o.modularCssLayers?{"@layer sx":Zw(o,A0(b,y))}:Zw(o,A0(b,y))}return Array.isArray(n)?n.map(d):d(n)}return e}const as=C6();as.filterProps=["sx"];function T6(t,e){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[t])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(t);return o==="&"?e:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:e})}return r.palette.mode===t?e:{}}function Fc(t={},...e){const{breakpoints:r={},palette:n={},spacing:o,shape:s={},...u}=t,d=Ok(r),p=VE(o);let h=fn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:p,shape:{...Nk,...s}},u);return h=Lk(h),h.applyStyles=T6,h=e.reduce((m,b)=>fn(m,b),h),h.unstable_sxConfig={...np,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(b){return as({sx:b,theme:this})},h}function E6(t){return Object.keys(t).length===0}function Zh(t=null){const e=S.useContext(tp);return!e||E6(e)?t:e}const j6=Fc();function ip(t=j6){return Zh(t)}function Yy(t){const e=is(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function qE({styles:t,themeId:e,defaultTheme:r={}}){const n=ip(r),o=e&&n[e]||n;let s=typeof t=="function"?t(o):t;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(u=>Yy(typeof u=="function"?u(o):u)):s=Yy(s)),c.jsx(BE,{styles:s})}const A6=t=>{var n;const e={systemProps:{},otherProps:{}},r=((n=t==null?void 0:t.theme)==null?void 0:n.unstable_sxConfig)??np;return Object.keys(t).forEach(o=>{r[o]?e.systemProps[o]=t[o]:e.otherProps[o]=t[o]}),e};function Jh(t){const{sx:e,...r}=t,{systemProps:n,otherProps:o}=A6(r);let s;return Array.isArray(e)?s=[n,...e]:typeof e=="function"?s=(...u)=>{const d=e(...u);return No(d)?{...n,...d}:n}:s={...n,...e},{...o,sx:s}}const t2=t=>t,M6=()=>{let t=t2;return{configure(e){t=e},generate(e){return t(e)},reset(){t=t2}}},FE=M6();function WE(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=WE(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Le(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=WE(t))&&(n&&(n+=" "),n+=e);return n}function R6(t={}){const{themeId:e,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=t,s=zE("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(as);return S.forwardRef(function(p,h){const m=ip(r),{className:b,component:y="div",...v}=Jh(p);return c.jsx(s,{as:y,ref:h,className:Le(b,o?o(n):n),theme:e&&m[e]||m,...v})})}const k6={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function tt(t,e,r="Mui"){const n=k6[e];return n?`${r}-${n}`:`${FE.generate(t)}-${e}`}function nt(t,e,r="Mui"){const n={};return e.forEach(o=>{n[o]=tt(t,o,r)}),n}function GE(t){const{variants:e,...r}=t,n={variants:e,style:is(r),isProcessed:!0};return n.style===r||e&&e.forEach(o=>{typeof o.style!="function"&&(o.style=is(o.style))}),n}const O6=Fc();function Qy(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function rl(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function P6(t){return t?(e,r)=>r[t]:null}function _6(t,e,r){t.theme=N6(t.theme)?r:t.theme[e]||t.theme}function nh(t,e,r){const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>nh(t,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?rl(n.style,r):n.style;else{const{variants:s,...u}=n;o=r?rl(is(u),r):u}return XE(t,n.variants,[o],r)}return n!=null&&n.isProcessed?r?rl(is(n.style),r):n.style:r?rl(is(n),r):n}function XE(t,e,r=[],n=void 0){var s;let o;e:for(let u=0;u<e.length;u+=1){const d=e[u];if(typeof d.props=="function"){if(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),!d.props(o))continue}else for(const p in d.props)if(t[p]!==d.props[p]&&((s=t.ownerState)==null?void 0:s[p])!==d.props[p])continue e;typeof d.style=="function"?(o??(o={...t,...t.ownerState,ownerState:t.ownerState}),r.push(n?rl(is(d.style(o)),n):d.style(o))):r.push(n?rl(is(d.style),n):d.style)}return r}function YE(t={}){const{themeId:e,defaultTheme:r=O6,rootShouldForwardProp:n=Qy,slotShouldForwardProp:o=Qy}=t;function s(d){_6(d,e,r)}return(d,p={})=>{Ak(d,P=>P.filter(z=>z!==as));const{name:h,slot:m,skipVariantsResolver:b,skipSx:y,overridesResolver:v=P6(B6(m)),...w}=p,C=h&&h.startsWith("Mui")||m?"components":"custom",T=b!==void 0?b:m&&m!=="Root"&&m!=="root"||!1,M=y||!1;let E=Qy;m==="Root"||m==="root"?E=n:m?E=o:I6(d)&&(E=void 0);const R=zE(d,{shouldForwardProp:E,label:L6(),...w}),j=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(_){return nh(_,P,_.theme.modularCssLayers?C:void 0)};if(No(P)){const z=GE(P);return function(B){return z.variants?nh(B,z,B.theme.modularCssLayers?C:void 0):B.theme.modularCssLayers?rl(z.style,C):z.style}}return P},k=(...P)=>{const z=[],_=P.map(j),B=[];if(z.push(s),h&&v&&B.push(function(Y){var Q,ee;const $=(ee=(Q=Y.theme.components)==null?void 0:Q[h])==null?void 0:ee.styleOverrides;if(!$)return null;const I={};for(const J in $)I[J]=nh(Y,$[J],Y.theme.modularCssLayers?"theme":void 0);return v(Y,I)}),h&&!T&&B.push(function(Y){var I,Q;const F=Y.theme,$=(Q=(I=F==null?void 0:F.components)==null?void 0:I[h])==null?void 0:Q.variants;return $?XE(Y,$,[],Y.theme.modularCssLayers?"theme":void 0):null}),M||B.push(as),Array.isArray(_[0])){const A=_.shift(),Y=new Array(z.length).fill(""),F=new Array(B.length).fill("");let $;$=[...Y,...A,...F],$.raw=[...Y,...A.raw,...F],z.unshift($)}const G=[...z,..._,...B],D=R(...G);return d.muiName&&(D.muiName=d.muiName),D};return R.withConfig&&(k.withConfig=R.withConfig),k}}function L6(t,e){return void 0}function N6(t){for(const e in t)return!1;return!0}function I6(t){return typeof t=="string"&&t.charCodeAt(0)>96}function B6(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const Vv=YE();function Tc(t,e,r=!1){const n={...e};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const s=o;if(s==="components"||s==="slots")n[s]={...t[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const u=t[s],d=e[s];if(!d)n[s]=u||{};else if(!u)n[s]=d;else{n[s]={...d};for(const p in u)if(Object.prototype.hasOwnProperty.call(u,p)){const h=p;n[s][h]=Tc(u[h],d[h],r)}}}else s==="className"&&r&&e.className?n.className=Le(t==null?void 0:t.className,e==null?void 0:e.className):s==="style"&&r&&e.style?n.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:n[s]===void 0&&(n[s]=t[s])}return n}function QE(t){const{theme:e,name:r,props:n}=t;return!e||!e.components||!e.components[r]||!e.components[r].defaultProps?n:Tc(e.components[r].defaultProps,n)}function qv({props:t,name:e,defaultTheme:r,themeId:n}){let o=ip(r);return n&&(o=o[n]||o),QE({theme:o,name:e,props:t})}const ei=typeof window<"u"?S.useLayoutEffect:S.useEffect;function z6(t,e,r,n,o){const[s,u]=S.useState(()=>o&&r?r(t).matches:n?n(t).matches:e);return ei(()=>{if(!r)return;const d=r(t),p=()=>{u(d.matches)};return p(),d.addEventListener("change",p),()=>{d.removeEventListener("change",p)}},[t,r]),s}const $6={...Ed},KE=$6.useSyncExternalStore;function D6(t,e,r,n,o){const s=S.useCallback(()=>e,[e]),u=S.useMemo(()=>{if(o&&r)return()=>r(t).matches;if(n!==null){const{matches:m}=n(t);return()=>m}return s},[s,t,n,o,r]),[d,p]=S.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const m=r(t);return[()=>m.matches,b=>(m.addEventListener("change",b),()=>{m.removeEventListener("change",b)})]},[s,r,t]);return KE(p,d,u)}function ZE(t={}){const{themeId:e}=t;return function(n,o={}){let s=Zh();s&&e&&(s=s[e]||s);const u=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:d=!1,matchMedia:p=u?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:m=!1}=QE({name:"MuiUseMediaQuery",props:o,theme:s});let b=typeof n=="function"?n(s):n;return b=b.replace(/^@media( ?)/m,""),b.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
92
|
-
`)),(KE!==void 0?D6:z6)(b,d,p,h,m)}}ZE();function H6(t,e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,r))}function Fv(t,e=0,r=1){return H6(t,e,r)}function U6(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let r=t.match(e);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ss(t){if(t.type)return t;if(t.charAt(0)==="#")return ss(U6(t));const e=t.indexOf("("),r=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(xa(9,t));let n=t.substring(e+1,t.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(xa(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const V6=t=>{const e=ss(t);return e.values.slice(0,3).map((r,n)=>e.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},sd=(t,e)=>{try{return V6(t)}catch{return t}};function em(t){const{type:e,colorSpace:r}=t;let{values:n}=t;return e.includes("rgb")?n=n.map((o,s)=>s<3?parseInt(o,10):o):e.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),e.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${e}(${n})`}function JE(t){t=ss(t);const{values:e}=t,r=e[0],n=e[1]/100,o=e[2]/100,s=n*Math.min(o,1-o),u=(h,m=(h+r/30)%12)=>o-s*Math.max(Math.min(m-3,9-m,1),-1);let d="rgb";const p=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return t.type==="hsla"&&(d+="a",p.push(e[3])),em({type:d,values:p})}function M0(t){t=ss(t);let e=t.type==="hsl"||t.type==="hsla"?ss(JE(t)).values:t.values;return e=e.map(r=>(t.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function q6(t,e){const r=M0(t),n=M0(e);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Pd(t,e){return t=ss(t),e=Fv(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,em(t)}function Xs(t,e,r){try{return Pd(t,e)}catch{return t}}function tm(t,e){if(t=ss(t),e=Fv(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]*=1-e;return em(t)}function ur(t,e,r){try{return tm(t,e)}catch{return t}}function rm(t,e){if(t=ss(t),e=Fv(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*e;else if(t.type.includes("color"))for(let r=0;r<3;r+=1)t.values[r]+=(1-t.values[r])*e;return em(t)}function dr(t,e,r){try{return rm(t,e)}catch{return t}}function R0(t,e=.15){return M0(t)>.5?tm(t,e):rm(t,e)}function jf(t,e,r){try{return R0(t,e)}catch{return t}}const e4=S.createContext(null);function Wv(){return S.useContext(e4)}const F6=typeof Symbol=="function"&&Symbol.for,W6=F6?Symbol.for("mui.nested"):"__THEME_NESTED__";function G6(t,e){return typeof e=="function"?e(t):{...t,...e}}function X6(t){const{children:e,theme:r}=t,n=Wv(),o=S.useMemo(()=>{const s=n===null?{...r}:G6(n,r);return s!=null&&(s[W6]=n!==null),s},[r,n]);return c.jsx(e4.Provider,{value:o,children:e})}const t4=S.createContext();function Y6({value:t,...e}){return c.jsx(t4.Provider,{value:t??!0,...e})}const vs=()=>S.useContext(t4)??!1,r4=S.createContext(void 0);function Q6({value:t,children:e}){return c.jsx(r4.Provider,{value:t,children:e})}function K6(t){const{theme:e,name:r,props:n}=t;if(!e||!e.components||!e.components[r])return n;const o=e.components[r];return o.defaultProps?Tc(o.defaultProps,n,e.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Tc(o,n,e.components.mergeClassNameAndStyle):n}function Z6({props:t,name:e}){const r=S.useContext(r4);return K6({props:t,name:e,theme:{components:r}})}let r2=0;function J6(t){const[e,r]=S.useState(t),n=t||e;return S.useEffect(()=>{e==null&&(r2+=1,r(`mui-${r2}`))},[e]),n}const eO={...Ed},n2=eO.useId;function $o(t){if(n2!==void 0){const e=n2();return t??e}return J6(t)}function tO(t){const e=Zh(),r=$o()||"",{modularCssLayers:n}=t;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||e!==null?o="":typeof n=="string"?o=n.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,ei(()=>{var d,p;const s=document.querySelector("head");if(!s)return;const u=s.firstChild;if(o){if(u&&((d=u.hasAttribute)!=null&&d.call(u,"data-mui-layer-order"))&&u.getAttribute("data-mui-layer-order")===r)return;const h=document.createElement("style");h.setAttribute("data-mui-layer-order",r),h.textContent=o,s.prepend(h)}else(p=s.querySelector(`style[data-mui-layer-order="${r}"]`))==null||p.remove()},[o,r]),o?c.jsx(qE,{styles:o}):null}const i2={};function o2(t,e,r,n=!1){return S.useMemo(()=>{const o=t&&e[t]||e;if(typeof r=="function"){const s=r(o),u=t?{...e,[t]:s}:s;return n?()=>u:u}return t?{...e,[t]:r}:{...e,...r}},[t,e,r,n])}function n4(t){const{children:e,theme:r,themeId:n}=t,o=Zh(i2),s=Wv()||i2,u=o2(n,o,r),d=o2(n,s,r,!0),p=(n?u[n]:u).direction==="rtl",h=tO(u);return c.jsx(X6,{theme:d,children:c.jsx(tp.Provider,{value:u,children:c.jsx(Y6,{value:p,children:c.jsxs(Q6,{value:n?u[n].components:u.components,children:[h,e]})})})})}const a2={theme:void 0};function rO(t){let e,r;return function(o){let s=e;return(s===void 0||o.theme!==r)&&(a2.theme=o.theme,s=GE(t(a2)),e=s,r=o.theme),s}}const Gv="mode",Xv="color-scheme",nO="data-color-scheme";function iO(t){const{defaultMode:e="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=Gv,colorSchemeStorageKey:s=Xv,attribute:u=nO,colorSchemeNode:d="document.documentElement",nonce:p}=t||{};let h="",m=u;if(u==="class"&&(m=".%s"),u==="data"&&(m="[data-%s]"),m.startsWith(".")){const y=m.substring(1);h+=`${d}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
|
|
93
|
-
${d}.classList.add('${y}'.replace('%s', colorScheme));`}const b=m.match(/\[([^[\]]+)\]/);if(b){const[y,v]=b[1].split("=");v||(h+=`${d}.removeAttribute('${y}'.replace('%s', light));
|
|
94
|
-
${d}.removeAttribute('${y}'.replace('%s', dark));`),h+=`
|
|
95
|
-
${d}.setAttribute('${y}'.replace('%s', colorScheme), ${v?`${v}.replace('%s', colorScheme)`:'""'});`}else h+=`${d}.setAttribute('${m}', colorScheme);`;return c.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
96
|
-
try {
|
|
97
|
-
let colorScheme = '';
|
|
98
|
-
const mode = localStorage.getItem('${o}') || '${e}';
|
|
99
|
-
const dark = localStorage.getItem('${s}-dark') || '${n}';
|
|
100
|
-
const light = localStorage.getItem('${s}-light') || '${r}';
|
|
101
|
-
if (mode === 'system') {
|
|
102
|
-
// handle system mode
|
|
103
|
-
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
104
|
-
if (mql.matches) {
|
|
105
|
-
colorScheme = dark
|
|
106
|
-
} else {
|
|
107
|
-
colorScheme = light
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (mode === 'light') {
|
|
111
|
-
colorScheme = light;
|
|
112
|
-
}
|
|
113
|
-
if (mode === 'dark') {
|
|
114
|
-
colorScheme = dark;
|
|
115
|
-
}
|
|
116
|
-
if (colorScheme) {
|
|
117
|
-
${h}
|
|
118
|
-
}
|
|
119
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function oO(){}const aO=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(r){if(typeof window>"u")return;if(!e)return r;let n;try{n=e.localStorage.getItem(t)}catch{}return n||r},set:r=>{if(e)try{e.localStorage.setItem(t,r)}catch{}},subscribe:r=>{if(!e)return oO;const n=o=>{const s=o.newValue;o.key===t&&r(s)};return e.addEventListener("storage",n),()=>{e.removeEventListener("storage",n)}}});function Ky(){}function s2(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function i4(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function sO(t){return i4(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function lO(t){const{defaultMode:e="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:s=Gv,colorSchemeStorageKey:u=Xv,storageWindow:d=typeof window>"u"?void 0:window,storageManager:p=aO,noSsr:h=!1}=t,m=o.join(","),b=o.length>1,y=S.useMemo(()=>p==null?void 0:p({key:s,storageWindow:d}),[p,s,d]),v=S.useMemo(()=>p==null?void 0:p({key:`${u}-light`,storageWindow:d}),[p,u,d]),w=S.useMemo(()=>p==null?void 0:p({key:`${u}-dark`,storageWindow:d}),[p,u,d]),[C,T]=S.useState(()=>{const _=(y==null?void 0:y.get(e))||e,B=(v==null?void 0:v.get(r))||r,G=(w==null?void 0:w.get(n))||n;return{mode:_,systemMode:s2(_),lightColorScheme:B,darkColorScheme:G}}),[M,E]=S.useState(h||!b);S.useEffect(()=>{E(!0)},[]);const R=sO(C),j=S.useCallback(_=>{T(B=>{if(_===B.mode)return B;const G=_??e;return y==null||y.set(G),{...B,mode:G,systemMode:s2(G)}})},[y,e]),k=S.useCallback(_=>{_?typeof _=="string"?_&&!m.includes(_)?console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`):T(B=>{const G={...B};return i4(B,D=>{D==="light"&&(v==null||v.set(_),G.lightColorScheme=_),D==="dark"&&(w==null||w.set(_),G.darkColorScheme=_)}),G}):T(B=>{const G={...B},D=_.light===null?r:_.light,A=_.dark===null?n:_.dark;return D&&(m.includes(D)?(G.lightColorScheme=D,v==null||v.set(D)):console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`)),A&&(m.includes(A)?(G.darkColorScheme=A,w==null||w.set(A)):console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`)),G}):T(B=>(v==null||v.set(r),w==null||w.set(n),{...B,lightColorScheme:r,darkColorScheme:n}))},[m,v,w,r,n]),P=S.useCallback(_=>{C.mode==="system"&&T(B=>{const G=_!=null&&_.matches?"dark":"light";return B.systemMode===G?B:{...B,systemMode:G}})},[C.mode]),z=S.useRef(P);return z.current=P,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!b)return;const _=(...G)=>z.current(...G),B=window.matchMedia("(prefers-color-scheme: dark)");return B.addListener(_),_(B),()=>{B.removeListener(_)}},[b]),S.useEffect(()=>{if(b){const _=(y==null?void 0:y.subscribe(D=>{(!D||["light","dark","system"].includes(D))&&j(D||e)}))||Ky,B=(v==null?void 0:v.subscribe(D=>{(!D||m.match(D))&&k({light:D})}))||Ky,G=(w==null?void 0:w.subscribe(D=>{(!D||m.match(D))&&k({dark:D})}))||Ky;return()=>{_(),B(),G()}}},[k,j,m,e,d,b,y,v,w]),{...C,mode:M?C.mode:void 0,systemMode:M?C.systemMode:void 0,colorScheme:M?R:void 0,setMode:j,setColorScheme:k}}const cO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function uO(t){const{themeId:e,theme:r={},modeStorageKey:n=Gv,colorSchemeStorageKey:o=Xv,disableTransitionOnChange:s=!1,defaultColorScheme:u,resolveTheme:d}=t,p={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=S.createContext(void 0),m=()=>S.useContext(h)||p,b={},y={};function v(M){var we,ke,_e,Ge;const{children:E,theme:R,modeStorageKey:j=n,colorSchemeStorageKey:k=o,disableTransitionOnChange:P=s,storageManager:z,storageWindow:_=typeof window>"u"?void 0:window,documentNode:B=typeof document>"u"?void 0:document,colorSchemeNode:G=typeof document>"u"?void 0:document.documentElement,disableNestedContext:D=!1,disableStyleSheetGeneration:A=!1,defaultMode:Y="system",forceThemeRerender:F=!1,noSsr:$}=M,I=S.useRef(!1),Q=Wv(),ee=S.useContext(h),J=!!ee&&!D,L=S.useMemo(()=>R||(typeof r=="function"?r():r),[R]),oe=L[e],ue=oe||L,{colorSchemes:ce=b,components:K=y,cssVarPrefix:re}=ue,Z=Object.keys(ce).filter(Je=>!!ce[Je]).join(","),ye=S.useMemo(()=>Z.split(","),[Z]),Ce=typeof u=="string"?u:u.light,be=typeof u=="string"?u:u.dark,se=ce[Ce]&&ce[be]?Y:((ke=(we=ce[ue.defaultColorScheme])==null?void 0:we.palette)==null?void 0:ke.mode)||((_e=ue.palette)==null?void 0:_e.mode),{mode:De,setMode:ze,systemMode:Be,lightColorScheme:Ve,darkColorScheme:Ie,colorScheme:We,setColorScheme:ct}=lO({supportedColorSchemes:ye,defaultLightColorScheme:Ce,defaultDarkColorScheme:be,modeStorageKey:j,colorSchemeStorageKey:k,defaultMode:se,storageManager:z,storageWindow:_,noSsr:$});let le=De,Ze=We;J&&(le=ee.mode,Ze=ee.colorScheme);let Fe=Ze||ue.defaultColorScheme;ue.vars&&!F&&(Fe=ue.defaultColorScheme);const ft=S.useMemo(()=>{var Pe;const Je=((Pe=ue.generateThemeVars)==null?void 0:Pe.call(ue))||ue.vars,ie={...ue,components:K,colorSchemes:ce,cssVarPrefix:re,vars:Je};if(typeof ie.generateSpacing=="function"&&(ie.spacing=ie.generateSpacing()),Fe){const He=ce[Fe];He&&typeof He=="object"&&Object.keys(He).forEach($e=>{He[$e]&&typeof He[$e]=="object"?ie[$e]={...ie[$e],...He[$e]}:ie[$e]=He[$e]})}return d?d(ie):ie},[ue,Fe,K,ce,re]),Ue=ue.colorSchemeSelector;ei(()=>{if(Ze&&G&&Ue&&Ue!=="media"){const Je=Ue;let ie=Ue;if(Je==="class"&&(ie=".%s"),Je==="data"&&(ie="[data-%s]"),Je!=null&&Je.startsWith("data-")&&!Je.includes("%s")&&(ie=`[${Je}="%s"]`),ie.startsWith("."))G.classList.remove(...ye.map(Pe=>ie.substring(1).replace("%s",Pe))),G.classList.add(ie.substring(1).replace("%s",Ze));else{const Pe=ie.replace("%s",Ze).match(/\[([^\]]+)\]/);if(Pe){const[He,$e]=Pe[1].split("=");$e||ye.forEach(yt=>{G.removeAttribute(He.replace(Ze,yt))}),G.setAttribute(He,$e?$e.replace(/"|'/g,""):"")}else G.setAttribute(ie,Ze)}}},[Ze,Ue,G,ye]),S.useEffect(()=>{let Je;if(P&&I.current&&B){const ie=B.createElement("style");ie.appendChild(B.createTextNode(cO)),B.head.appendChild(ie),window.getComputedStyle(B.body),Je=setTimeout(()=>{B.head.removeChild(ie)},1)}return()=>{clearTimeout(Je)}},[Ze,P,B]),S.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);const kt=S.useMemo(()=>({allColorSchemes:ye,colorScheme:Ze,darkColorScheme:Ie,lightColorScheme:Ve,mode:le,setColorScheme:ct,setMode:ze,systemMode:Be}),[ye,Ze,Ie,Ve,le,ct,ze,Be,ft.colorSchemeSelector]);let at=!0;(A||ue.cssVariables===!1||J&&(Q==null?void 0:Q.cssVarPrefix)===re)&&(at=!1);const fe=c.jsxs(S.Fragment,{children:[c.jsx(n4,{themeId:oe?e:void 0,theme:ft,children:E}),at&&c.jsx(BE,{styles:((Ge=ft.generateStyleSheets)==null?void 0:Ge.call(ft))||[]})]});return J?fe:c.jsx(h.Provider,{value:kt,children:fe})}const w=typeof u=="string"?u:u.light,C=typeof u=="string"?u:u.dark;return{CssVarsProvider:v,useColorScheme:m,getInitColorSchemeScript:M=>iO({colorSchemeStorageKey:o,defaultLightColorScheme:w,defaultDarkColorScheme:C,modeStorageKey:n,...M})}}function dO(t=""){function e(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${e(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${t?`${t}-`:""}${n}${e(...o)})`}const l2=(t,e,r,n=[])=>{let o=t;e.forEach((s,u)=>{u===e.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=n.includes(s)?[]:{}),o=o[s])})},pO=(t,e,r)=>{function n(o,s=[],u=[]){Object.entries(o).forEach(([d,p])=>{(!r||r&&!r([...s,d]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?n(p,[...s,d],Array.isArray(p)?[...u,d]:u):e([...s,d],p,u))})}n(t)},fO=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>t.includes(n))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function Zy(t,e){const{prefix:r,shouldSkipGeneratingVar:n}=e||{},o={},s={},u={};return pO(t,(d,p,h)=>{if((typeof p=="string"||typeof p=="number")&&(!n||!n(d,p))){const m=`--${r?`${r}-`:""}${d.join("-")}`,b=fO(d,p);Object.assign(o,{[m]:b}),l2(s,d,`var(${m})`,h),l2(u,d,`var(${m}, ${b})`,h)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:u}}function hO(t,e={}){const{getSelector:r=M,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:s}=e,{colorSchemes:u={},components:d,defaultColorScheme:p="light",...h}=t,{vars:m,css:b,varsWithDefaults:y}=Zy(h,e);let v=y;const w={},{[p]:C,...T}=u;if(Object.entries(T||{}).forEach(([j,k])=>{const{vars:P,css:z,varsWithDefaults:_}=Zy(k,e);v=fn(v,_),w[j]={css:z,vars:P}}),C){const{css:j,vars:k,varsWithDefaults:P}=Zy(C,e);v=fn(v,P),w[p]={css:j,vars:k}}function M(j,k){var z,_;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),j){if(P==="media")return t.defaultColorScheme===j?":root":{[`@media (prefers-color-scheme: ${((_=(z=u[j])==null?void 0:z.palette)==null?void 0:_.mode)||j})`]:{":root":k}};if(P)return t.defaultColorScheme===j?`:root, ${P.replace("%s",String(j))}`:P.replace("%s",String(j))}return":root"}return{vars:v,generateThemeVars:()=>{let j={...m};return Object.entries(w).forEach(([,{vars:k}])=>{j=fn(j,k)}),j},generateStyleSheets:()=>{var B,G;const j=[],k=t.defaultColorScheme||"light";function P(D,A){Object.keys(A).length&&j.push(typeof D=="string"?{[D]:{...A}}:D)}P(r(void 0,{...b}),b);const{[k]:z,..._}=w;if(z){const{css:D}=z,A=(G=(B=u[k])==null?void 0:B.palette)==null?void 0:G.mode,Y=!n&&A?{colorScheme:A,...D}:{...D};P(r(k,{...Y}),Y)}return Object.entries(_).forEach(([D,{css:A}])=>{var $,I;const Y=(I=($=u[D])==null?void 0:$.palette)==null?void 0:I.mode,F=!n&&Y?{colorScheme:Y,...A}:{...A};P(r(D,{...F}),F)}),s&&j.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),j}}}function mO(t){return function(r){return t==="media"?`@media (prefers-color-scheme: ${r})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${r}"] &`:t==="class"?`.${r} &`:t==="data"?`[data-${r}] &`:`${t.replace("%s",r)} &`:"&"}}function rt(t,e,r=void 0){const n={};for(const o in t){const s=t[o];let u="",d=!0;for(let p=0;p<s.length;p+=1){const h=s[p];h&&(u+=(d===!0?"":" ")+e(h),d=!1,r&&r[h]&&(u+=" "+r[h]))}n[o]=u}return n}const gO=Fc(),yO=Vv("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ve(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),vO=t=>qv({props:t,name:"MuiContainer",defaultTheme:gO}),bO=(t,e)=>{const r=p=>tt(e,p),{classes:n,fixed:o,disableGutters:s,maxWidth:u}=t,d={root:["root",u&&`maxWidth${ve(String(u))}`,o&&"fixed",s&&"disableGutters"]};return rt(d,r,n)};function xO(t={}){const{createStyledComponent:e=yO,useThemeProps:r=vO,componentName:n="MuiContainer"}=t,o=e(({theme:u,ownerState:d})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!d.disableGutters&&{paddingLeft:u.spacing(2),paddingRight:u.spacing(2),[u.breakpoints.up("sm")]:{paddingLeft:u.spacing(3),paddingRight:u.spacing(3)}}}),({theme:u,ownerState:d})=>d.fixed&&Object.keys(u.breakpoints.values).reduce((p,h)=>{const m=h,b=u.breakpoints.values[m];return b!==0&&(p[u.breakpoints.up(m)]={maxWidth:`${b}${u.breakpoints.unit}`}),p},{}),({theme:u,ownerState:d})=>({...d.maxWidth==="xs"&&{[u.breakpoints.up("xs")]:{maxWidth:Math.max(u.breakpoints.values.xs,444)}},...d.maxWidth&&d.maxWidth!=="xs"&&{[u.breakpoints.up(d.maxWidth)]:{maxWidth:`${u.breakpoints.values[d.maxWidth]}${u.breakpoints.unit}`}}}));return S.forwardRef(function(d,p){const h=r(d),{className:m,component:b="div",disableGutters:y=!1,fixed:v=!1,maxWidth:w="lg",classes:C,...T}=h,M={...h,component:b,disableGutters:y,fixed:v,maxWidth:w},E=bO(M,n);return c.jsx(o,{as:b,ownerState:M,className:Le(E.root,m),ref:p,...T})})}function ih(t,e){var r,n,o;return S.isValidElement(t)&&e.indexOf(t.type.muiName??((o=(n=(r=t.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:o.muiName))!==-1}const SO=(t,e)=>t.filter(r=>e.includes(r)),Wc=(t,e,r)=>{const n=t.keys[0];Array.isArray(e)?e.forEach((o,s)=>{r((u,d)=>{s<=t.keys.length-1&&(s===0?Object.assign(u,d):u[t.up(t.keys[s])]=d)},o)}):e&&typeof e=="object"?(Object.keys(e).length>t.keys.length?t.keys:SO(t.keys,Object.keys(e))).forEach(s=>{if(t.keys.includes(s)){const u=e[s];u!==void 0&&r((d,p)=>{n===s?Object.assign(d,p):d[t.up(s)]=p},u)}}):(typeof e=="number"||typeof e=="string")&&r((o,s)=>{Object.assign(o,s)},e)};function yh(t){return`--Grid-${t}Spacing`}function nm(t){return`--Grid-parent-${t}Spacing`}const c2="--Grid-columns",bc="--Grid-parent-columns",wO=({theme:t,ownerState:e})=>{const r={};return Wc(t.breakpoints,e.size,(n,o)=>{let s={};o==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),o==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof o=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / var(${bc}) - (var(${bc}) - ${o}) * (var(${nm("column")}) / var(${bc})))`}),n(r,s)}),r},CO=({theme:t,ownerState:e})=>{const r={};return Wc(t.breakpoints,e.offset,(n,o)=>{let s={};o==="auto"&&(s={marginLeft:"auto"}),typeof o=="number"&&(s={marginLeft:o===0?"0px":`calc(100% * ${o} / var(${bc}) + var(${nm("column")}) * ${o} / var(${bc}))`}),n(r,s)}),r},TO=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={[c2]:12};return Wc(t.breakpoints,e.columns,(n,o)=>{const s=o??12;n(r,{[c2]:s,"> *":{[bc]:s}})}),r},EO=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Wc(t.breakpoints,e.rowSpacing,(n,o)=>{var u;const s=typeof o=="string"?o:(u=t.spacing)==null?void 0:u.call(t,o);n(r,{[yh("row")]:s,"> *":{[nm("row")]:s}})}),r},jO=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Wc(t.breakpoints,e.columnSpacing,(n,o)=>{var u;const s=typeof o=="string"?o:(u=t.spacing)==null?void 0:u.call(t,o);n(r,{[yh("column")]:s,"> *":{[nm("column")]:s}})}),r},AO=({theme:t,ownerState:e})=>{if(!e.container)return{};const r={};return Wc(t.breakpoints,e.direction,(n,o)=>{n(r,{flexDirection:o})}),r},MO=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${yh("row")}) var(${yh("column")})`}}),RO=t=>{const e=[];return Object.entries(t).forEach(([r,n])=>{n!==!1&&n!==void 0&&e.push(`grid-${r}-${String(n)}`)}),e},kO=(t,e="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const n=[];return Object.entries(t).forEach(([o,s])=>{r(s)&&n.push(`spacing-${o}-${String(s)}`)}),n}return[]},OO=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,r])=>`direction-${e}-${r}`):[`direction-xs-${String(t)}`];function PO(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(r=>{t[r]!==void 0&&delete t[r]})}const _O=Fc(),LO=Vv("div",{name:"MuiGrid",slot:"Root"});function NO(t){return qv({props:t,name:"MuiGrid",defaultTheme:_O})}function IO(t={}){const{createStyledComponent:e=LO,useThemeProps:r=NO,useTheme:n=ip,componentName:o="MuiGrid"}=t,s=(h,m)=>{const{container:b,direction:y,spacing:v,wrap:w,size:C}=h,T={root:["root",b&&"container",w!=="wrap"&&`wrap-xs-${String(w)}`,...OO(y),...RO(C),...b?kO(v,m.breakpoints.keys[0]):[]]};return rt(T,M=>tt(o,M),{})};function u(h,m,b=()=>!0){const y={};return h===null||(Array.isArray(h)?h.forEach((v,w)=>{v!==null&&b(v)&&m.keys[w]&&(y[m.keys[w]]=v)}):typeof h=="object"?Object.keys(h).forEach(v=>{const w=h[v];w!=null&&b(w)&&(y[v]=w)}):y[m.keys[0]]=h),y}const d=e(TO,jO,EO,wO,AO,MO,CO),p=S.forwardRef(function(m,b){const y=n(),v=r(m),w=Jh(v);PO(w,y.breakpoints);const{className:C,children:T,columns:M=12,container:E=!1,component:R="div",direction:j="row",wrap:k="wrap",size:P={},offset:z={},spacing:_=0,rowSpacing:B=_,columnSpacing:G=_,unstable_level:D=0,...A}=w,Y=u(P,y.breakpoints,oe=>oe!==!1),F=u(z,y.breakpoints),$=m.columns??(D?void 0:M),I=m.spacing??(D?void 0:_),Q=m.rowSpacing??m.spacing??(D?void 0:B),ee=m.columnSpacing??m.spacing??(D?void 0:G),J={...w,level:D,columns:$,container:E,direction:j,wrap:k,spacing:I,rowSpacing:Q,columnSpacing:ee,size:Y,offset:F},L=s(J,y);return c.jsx(d,{ref:b,as:R,ownerState:J,className:Le(L.root,C),...A,children:S.Children.map(T,oe=>{var ue;return S.isValidElement(oe)&&ih(oe,["Grid"])&&E&&oe.props.container?S.cloneElement(oe,{unstable_level:((ue=oe.props)==null?void 0:ue.unstable_level)??D+1}):oe})})});return p.muiName="Grid",p}const BO=Fc(),zO=Vv("div",{name:"MuiStack",slot:"Root"});function $O(t){return qv({props:t,name:"MuiStack",defaultTheme:BO})}function DO(t,e){const r=S.Children.toArray(t).filter(Boolean);return r.reduce((n,o,s)=>(n.push(o),s<r.length-1&&n.push(S.cloneElement(e,{key:`separator-${s}`})),n),[])}const HO=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],UO=({ownerState:t,theme:e})=>{let r={display:"flex",flexDirection:"column",...co({theme:e},Xy({values:t.direction,breakpoints:e.breakpoints.values}),n=>({flexDirection:n}))};if(t.spacing){const n=Wh(e),o=Object.keys(e.breakpoints.values).reduce((p,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(p[h]=!0),p),{}),s=Xy({values:t.direction,base:o}),u=Xy({values:t.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((p,h,m)=>{if(!s[p]){const y=h>0?s[m[h-1]]:"column";s[p]=y}}),r=fn(r,co({theme:e},u,(p,h)=>t.useFlexGap?{gap:sl(n,p)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${HO(h?s[h]:t.direction)}`]:sl(n,p)}}))}return r=Bk(e.breakpoints,r),r};function VO(t={}){const{createStyledComponent:e=zO,useThemeProps:r=$O,componentName:n="MuiStack"}=t,o=()=>rt({root:["root"]},p=>tt(n,p),{}),s=e(UO);return S.forwardRef(function(p,h){const m=r(p),b=Jh(m),{component:y="div",direction:v="column",spacing:w=0,divider:C,children:T,className:M,useFlexGap:E=!1,...R}=b,j={direction:v,spacing:w,useFlexGap:E},k=o();return c.jsx(s,{as:y,ownerState:j,ref:h,className:Le(k.root,M),...R,children:C?DO(T,C):T})})}function o4(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Md.white,default:Md.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const a4=o4();function s4(){return{text:{primary:Md.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Md.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const k0=s4();function u2(t,e,r,n){const o=n.light||n,s=n.dark||n*1.5;t[e]||(t.hasOwnProperty(r)?t[e]=t[r]:e==="light"?t.light=rm(t.main,o):e==="dark"&&(t.dark=tm(t.main,s)))}function d2(t,e,r,n,o){const s=o.light||o,u=o.dark||o*1.5;e[r]||(e.hasOwnProperty(n)?e[r]=e[n]:r==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(u*100).toFixed(0)}%)`))}function qO(t="light"){return t==="dark"?{main:oc[200],light:oc[50],dark:oc[400]}:{main:oc[700],light:oc[400],dark:oc[800]}}function FO(t="light"){return t==="dark"?{main:ic[200],light:ic[50],dark:ic[400]}:{main:ic[500],light:ic[300],dark:ic[700]}}function WO(t="light"){return t==="dark"?{main:nc[500],light:nc[300],dark:nc[700]}:{main:nc[700],light:nc[400],dark:nc[800]}}function GO(t="light"){return t==="dark"?{main:ac[400],light:ac[300],dark:ac[700]}:{main:ac[700],light:ac[500],dark:ac[900]}}function XO(t="light"){return t==="dark"?{main:sc[400],light:sc[300],dark:sc[700]}:{main:sc[800],light:sc[500],dark:sc[900]}}function YO(t="light"){return t==="dark"?{main:Gu[400],light:Gu[300],dark:Gu[700]}:{main:"#ed6c02",light:Gu[500],dark:Gu[900]}}function QO(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function Yv(t){const{mode:e="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...s}=t,u=t.primary||qO(e),d=t.secondary||FO(e),p=t.error||WO(e),h=t.info||GO(e),m=t.success||XO(e),b=t.warning||YO(e);function y(T){return o?QO(T):q6(T,k0.text.primary)>=r?k0.text.primary:a4.text.primary}const v=({color:T,name:M,mainShade:E=500,lightShade:R=300,darkShade:j=700})=>{if(T={...T},!T.main&&T[E]&&(T.main=T[E]),!T.hasOwnProperty("main"))throw new Error(xa(11,M?` (${M})`:"",E));if(typeof T.main!="string")throw new Error(xa(12,M?` (${M})`:"",JSON.stringify(T.main)));return o?(d2(o,T,"light",R,n),d2(o,T,"dark",j,n)):(u2(T,"light",R,n),u2(T,"dark",j,n)),T.contrastText||(T.contrastText=y(T.main)),T};let w;return e==="light"?w=o4():e==="dark"&&(w=s4()),fn({common:{...Md},mode:e,primary:v({color:u,name:"primary"}),secondary:v({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:p,name:"error"}),warning:v({color:b,name:"warning"}),info:v({color:h,name:"info"}),success:v({color:m,name:"success"}),grey:MR,contrastThreshold:r,getContrastText:y,augmentColor:v,tonalOffset:n,...w},s)}function KO(t){const e={};return Object.entries(t).forEach(n=>{const[o,s]=n;typeof s=="object"&&(e[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),e}function ZO(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function JO(t){return Math.round(t*1e5)/1e5}const p2={textTransform:"uppercase"},f2='"Roboto", "Helvetica", "Arial", sans-serif';function l4(t,e){const{fontFamily:r=f2,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:p=16,allVariants:h,pxToRem:m,...b}=typeof e=="function"?e(t):e,y=n/14,v=m||(T=>`${T/p*y}rem`),w=(T,M,E,R,j)=>({fontFamily:r,fontWeight:T,fontSize:v(M),lineHeight:E,...r===f2?{letterSpacing:`${JO(R/M)}em`}:{},...j,...h}),C={h1:w(o,96,1.167,-1.5),h2:w(o,60,1.2,-.5),h3:w(s,48,1.167,0),h4:w(s,34,1.235,.25),h5:w(s,24,1.334,0),h6:w(u,20,1.6,.15),subtitle1:w(s,16,1.75,.15),subtitle2:w(u,14,1.57,.1),body1:w(s,16,1.5,.15),body2:w(s,14,1.43,.15),button:w(u,14,1.75,.4,p2),caption:w(s,12,1.66,.4),overline:w(s,12,2.66,1,p2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fn({htmlFontSize:p,pxToRem:v,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:d,...C},b,{clone:!1})}const eP=.2,tP=.14,rP=.12;function kr(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${eP})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${tP})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${rP})`].join(",")}const nP=["none",kr(0,2,1,-1,0,1,1,0,0,1,3,0),kr(0,3,1,-2,0,2,2,0,0,1,5,0),kr(0,3,3,-2,0,3,4,0,0,1,8,0),kr(0,2,4,-1,0,4,5,0,0,1,10,0),kr(0,3,5,-1,0,5,8,0,0,1,14,0),kr(0,3,5,-1,0,6,10,0,0,1,18,0),kr(0,4,5,-2,0,7,10,1,0,2,16,1),kr(0,5,5,-3,0,8,10,1,0,3,14,2),kr(0,5,6,-3,0,9,12,1,0,3,16,2),kr(0,6,6,-3,0,10,14,1,0,4,18,3),kr(0,6,7,-4,0,11,15,1,0,4,20,3),kr(0,7,8,-4,0,12,17,2,0,5,22,4),kr(0,7,8,-4,0,13,19,2,0,5,24,4),kr(0,7,9,-4,0,14,21,2,0,5,26,4),kr(0,8,9,-5,0,15,22,2,0,6,28,5),kr(0,8,10,-5,0,16,24,2,0,6,30,5),kr(0,8,11,-5,0,17,26,2,0,6,32,5),kr(0,9,11,-5,0,18,28,2,0,7,34,6),kr(0,9,12,-6,0,19,29,2,0,7,36,6),kr(0,10,13,-6,0,20,31,3,0,8,38,7),kr(0,10,13,-6,0,21,33,3,0,8,40,7),kr(0,10,14,-6,0,22,35,3,0,8,42,7),kr(0,11,14,-7,0,23,36,3,0,9,44,8),kr(0,11,15,-7,0,24,38,3,0,9,46,8)],iP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},c4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function h2(t){return`${Math.round(t)}ms`}function oP(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function aP(t){const e={...iP,...t.easing},r={...c4,...t.duration};return{getAutoHeightDuration:oP,create:(o=["all"],s={})=>{const{duration:u=r.standard,easing:d=e.easeInOut,delay:p=0,...h}=s;return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof u=="string"?u:h2(u)} ${d} ${typeof p=="string"?p:h2(p)}`).join(",")},...t,easing:e,duration:r}}const sP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lP(t){return No(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function u4(t={}){const e={...t};function r(n){const o=Object.entries(n);for(let s=0;s<o.length;s++){const[u,d]=o[s];!lP(d)||u.startsWith("unstable_")?delete n[u]:No(d)&&(n[u]={...d},r(n[u]))}}return r(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
120
|
-
|
|
121
|
-
const theme = ${JSON.stringify(e,null,2)};
|
|
122
|
-
|
|
123
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
124
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
125
|
-
|
|
126
|
-
export default theme;`}function m2(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const cP=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let r=0;for(let n=0;n<e.length;n+=1)r+=+e[n];return r};function uP(t){Object.assign(t,{alpha(e,r){const n=this||t;return n.colorSpace?`oklch(from ${e} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Pd(e,cP(r))},lighten(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #fff ${m2(r)})`:rm(e,r)},darken(e,r){const n=this||t;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${e}, #000 ${m2(r)})`:tm(e,r)}})}function O0(t={},...e){const{breakpoints:r,mixins:n={},spacing:o,palette:s={},transitions:u={},typography:d={},shape:p,colorSpace:h,...m}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(xa(20));const b=Yv({...s,colorSpace:h}),y=Fc(t);let v=fn(y,{mixins:ZO(y.breakpoints,n),palette:b,shadows:nP.slice(),typography:l4(b,d),transitions:aP(u),zIndex:{...sP}});return v=fn(v,m),v=e.reduce((w,C)=>fn(w,C),v),v.unstable_sxConfig={...np,...m==null?void 0:m.unstable_sxConfig},v.unstable_sx=function(C){return as({sx:C,theme:this})},v.toRuntimeSource=u4,uP(v),v}function P0(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const dP=[...Array(25)].map((t,e)=>{if(e===0)return"none";const r=P0(e);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function d4(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function p4(t){return t==="dark"?dP:[]}function pP(t){const{palette:e={mode:"light"},opacity:r,overlays:n,colorSpace:o,...s}=t,u=Yv({...e,colorSpace:o});return{palette:u,opacity:{...d4(u.mode),...r},overlays:n||p4(u.mode),...s}}function fP(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const hP=t=>[...[...Array(25)].map((e,r)=>`--${t?`${t}-`:""}overlays-${r}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],mP=t=>(e,r)=>{const n=t.rootSelector||":root",o=t.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),t.defaultColorScheme===e){if(e==="dark"){const u={};return hP(t.cssVarPrefix).forEach(d=>{u[d]=r[d],delete r[d]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:u}}:s?{[s.replace("%s",e)]:u,[`${n}, ${s.replace("%s",e)}`]:r}:{[n]:{...r,...u}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(e))}`}else if(e){if(s==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[n]:r}};if(s)return s.replace("%s",String(e))}return n};function gP(t,e){e.forEach(r=>{t[r]||(t[r]={})})}function je(t,e,r){!t[e]&&r&&(t[e]=r)}function ld(t){return typeof t!="string"||!t.startsWith("hsl")?t:JE(t)}function ha(t,e){`${e}Channel`in t||(t[`${e}Channel`]=sd(ld(t[e])))}function yP(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const jo=t=>{try{return t()}catch{}},vP=(t="mui")=>dO(t);function Jy(t,e,r,n,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!n){e[o]=pP({...r,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return}const{palette:u,...d}=O0({...n,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:t});return e[o]={...r,palette:u,opacity:{...d4(s),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||p4(s)},d}function bP(t={},...e){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:u=!1,shouldSkipGeneratingVar:d=fP,colorSchemeSelector:p=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...m}=t,b=Object.keys(r)[0],y=n||(r.light&&b!=="light"?"light":b),v=vP(s),{[y]:w,light:C,dark:T,...M}=r,E={...M};let R=w;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(R=!0),!R)throw new Error(xa(21,y));let j;u&&(j="oklch");const k=Jy(j,E,R,m,y);C&&!E.light&&Jy(j,E,C,void 0,"light"),T&&!E.dark&&Jy(j,E,T,void 0,"dark");let P={defaultColorScheme:y,...k,cssVarPrefix:s,colorSchemeSelector:p,rootSelector:h,getCssVar:v,colorSchemes:E,font:{...KO(k.typography),...k.font},spacing:yP(m.spacing)};Object.keys(P.colorSchemes).forEach(D=>{const A=P.colorSchemes[D].palette,Y=$=>{const I=$.split("-"),Q=I[1],ee=I[2];return v($,A[Q][ee])};A.mode==="light"&&(je(A.common,"background","#fff"),je(A.common,"onBackground","#000")),A.mode==="dark"&&(je(A.common,"background","#000"),je(A.common,"onBackground","#fff"));function F($,I,Q){if(j){let ee;return $===Xs&&(ee=`transparent ${((1-Q)*100).toFixed(0)}%`),$===ur&&(ee=`#000 ${(Q*100).toFixed(0)}%`),$===dr&&(ee=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${j}, ${I}, ${ee})`}return $(I,Q)}if(gP(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){je(A.Alert,"errorColor",F(ur,A.error.light,.6)),je(A.Alert,"infoColor",F(ur,A.info.light,.6)),je(A.Alert,"successColor",F(ur,A.success.light,.6)),je(A.Alert,"warningColor",F(ur,A.warning.light,.6)),je(A.Alert,"errorFilledBg",Y("palette-error-main")),je(A.Alert,"infoFilledBg",Y("palette-info-main")),je(A.Alert,"successFilledBg",Y("palette-success-main")),je(A.Alert,"warningFilledBg",Y("palette-warning-main")),je(A.Alert,"errorFilledColor",jo(()=>A.getContrastText(A.error.main))),je(A.Alert,"infoFilledColor",jo(()=>A.getContrastText(A.info.main))),je(A.Alert,"successFilledColor",jo(()=>A.getContrastText(A.success.main))),je(A.Alert,"warningFilledColor",jo(()=>A.getContrastText(A.warning.main))),je(A.Alert,"errorStandardBg",F(dr,A.error.light,.9)),je(A.Alert,"infoStandardBg",F(dr,A.info.light,.9)),je(A.Alert,"successStandardBg",F(dr,A.success.light,.9)),je(A.Alert,"warningStandardBg",F(dr,A.warning.light,.9)),je(A.Alert,"errorIconColor",Y("palette-error-main")),je(A.Alert,"infoIconColor",Y("palette-info-main")),je(A.Alert,"successIconColor",Y("palette-success-main")),je(A.Alert,"warningIconColor",Y("palette-warning-main")),je(A.AppBar,"defaultBg",Y("palette-grey-100")),je(A.Avatar,"defaultBg",Y("palette-grey-400")),je(A.Button,"inheritContainedBg",Y("palette-grey-300")),je(A.Button,"inheritContainedHoverBg",Y("palette-grey-A100")),je(A.Chip,"defaultBorder",Y("palette-grey-400")),je(A.Chip,"defaultAvatarColor",Y("palette-grey-700")),je(A.Chip,"defaultIconColor",Y("palette-grey-700")),je(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),je(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),je(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),je(A.LinearProgress,"primaryBg",F(dr,A.primary.main,.62)),je(A.LinearProgress,"secondaryBg",F(dr,A.secondary.main,.62)),je(A.LinearProgress,"errorBg",F(dr,A.error.main,.62)),je(A.LinearProgress,"infoBg",F(dr,A.info.main,.62)),je(A.LinearProgress,"successBg",F(dr,A.success.main,.62)),je(A.LinearProgress,"warningBg",F(dr,A.warning.main,.62)),je(A.Skeleton,"bg",j?F(Xs,A.text.primary,.11):`rgba(${Y("palette-text-primaryChannel")} / 0.11)`),je(A.Slider,"primaryTrack",F(dr,A.primary.main,.62)),je(A.Slider,"secondaryTrack",F(dr,A.secondary.main,.62)),je(A.Slider,"errorTrack",F(dr,A.error.main,.62)),je(A.Slider,"infoTrack",F(dr,A.info.main,.62)),je(A.Slider,"successTrack",F(dr,A.success.main,.62)),je(A.Slider,"warningTrack",F(dr,A.warning.main,.62));const $=j?F(ur,A.background.default,.6825):jf(A.background.default,.8);je(A.SnackbarContent,"bg",$),je(A.SnackbarContent,"color",jo(()=>j?k0.text.primary:A.getContrastText($))),je(A.SpeedDialAction,"fabHoverBg",jf(A.background.paper,.15)),je(A.StepConnector,"border",Y("palette-grey-400")),je(A.StepContent,"border",Y("palette-grey-400")),je(A.Switch,"defaultColor",Y("palette-common-white")),je(A.Switch,"defaultDisabledColor",Y("palette-grey-100")),je(A.Switch,"primaryDisabledColor",F(dr,A.primary.main,.62)),je(A.Switch,"secondaryDisabledColor",F(dr,A.secondary.main,.62)),je(A.Switch,"errorDisabledColor",F(dr,A.error.main,.62)),je(A.Switch,"infoDisabledColor",F(dr,A.info.main,.62)),je(A.Switch,"successDisabledColor",F(dr,A.success.main,.62)),je(A.Switch,"warningDisabledColor",F(dr,A.warning.main,.62)),je(A.TableCell,"border",F(dr,F(Xs,A.divider,1),.88)),je(A.Tooltip,"bg",F(Xs,A.grey[700],.92))}if(A.mode==="dark"){je(A.Alert,"errorColor",F(dr,A.error.light,.6)),je(A.Alert,"infoColor",F(dr,A.info.light,.6)),je(A.Alert,"successColor",F(dr,A.success.light,.6)),je(A.Alert,"warningColor",F(dr,A.warning.light,.6)),je(A.Alert,"errorFilledBg",Y("palette-error-dark")),je(A.Alert,"infoFilledBg",Y("palette-info-dark")),je(A.Alert,"successFilledBg",Y("palette-success-dark")),je(A.Alert,"warningFilledBg",Y("palette-warning-dark")),je(A.Alert,"errorFilledColor",jo(()=>A.getContrastText(A.error.dark))),je(A.Alert,"infoFilledColor",jo(()=>A.getContrastText(A.info.dark))),je(A.Alert,"successFilledColor",jo(()=>A.getContrastText(A.success.dark))),je(A.Alert,"warningFilledColor",jo(()=>A.getContrastText(A.warning.dark))),je(A.Alert,"errorStandardBg",F(ur,A.error.light,.9)),je(A.Alert,"infoStandardBg",F(ur,A.info.light,.9)),je(A.Alert,"successStandardBg",F(ur,A.success.light,.9)),je(A.Alert,"warningStandardBg",F(ur,A.warning.light,.9)),je(A.Alert,"errorIconColor",Y("palette-error-main")),je(A.Alert,"infoIconColor",Y("palette-info-main")),je(A.Alert,"successIconColor",Y("palette-success-main")),je(A.Alert,"warningIconColor",Y("palette-warning-main")),je(A.AppBar,"defaultBg",Y("palette-grey-900")),je(A.AppBar,"darkBg",Y("palette-background-paper")),je(A.AppBar,"darkColor",Y("palette-text-primary")),je(A.Avatar,"defaultBg",Y("palette-grey-600")),je(A.Button,"inheritContainedBg",Y("palette-grey-800")),je(A.Button,"inheritContainedHoverBg",Y("palette-grey-700")),je(A.Chip,"defaultBorder",Y("palette-grey-700")),je(A.Chip,"defaultAvatarColor",Y("palette-grey-300")),je(A.Chip,"defaultIconColor",Y("palette-grey-300")),je(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),je(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),je(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),je(A.LinearProgress,"primaryBg",F(ur,A.primary.main,.5)),je(A.LinearProgress,"secondaryBg",F(ur,A.secondary.main,.5)),je(A.LinearProgress,"errorBg",F(ur,A.error.main,.5)),je(A.LinearProgress,"infoBg",F(ur,A.info.main,.5)),je(A.LinearProgress,"successBg",F(ur,A.success.main,.5)),je(A.LinearProgress,"warningBg",F(ur,A.warning.main,.5)),je(A.Skeleton,"bg",j?F(Xs,A.text.primary,.13):`rgba(${Y("palette-text-primaryChannel")} / 0.13)`),je(A.Slider,"primaryTrack",F(ur,A.primary.main,.5)),je(A.Slider,"secondaryTrack",F(ur,A.secondary.main,.5)),je(A.Slider,"errorTrack",F(ur,A.error.main,.5)),je(A.Slider,"infoTrack",F(ur,A.info.main,.5)),je(A.Slider,"successTrack",F(ur,A.success.main,.5)),je(A.Slider,"warningTrack",F(ur,A.warning.main,.5));const $=j?F(dr,A.background.default,.985):jf(A.background.default,.98);je(A.SnackbarContent,"bg",$),je(A.SnackbarContent,"color",jo(()=>j?a4.text.primary:A.getContrastText($))),je(A.SpeedDialAction,"fabHoverBg",jf(A.background.paper,.15)),je(A.StepConnector,"border",Y("palette-grey-600")),je(A.StepContent,"border",Y("palette-grey-600")),je(A.Switch,"defaultColor",Y("palette-grey-300")),je(A.Switch,"defaultDisabledColor",Y("palette-grey-600")),je(A.Switch,"primaryDisabledColor",F(ur,A.primary.main,.55)),je(A.Switch,"secondaryDisabledColor",F(ur,A.secondary.main,.55)),je(A.Switch,"errorDisabledColor",F(ur,A.error.main,.55)),je(A.Switch,"infoDisabledColor",F(ur,A.info.main,.55)),je(A.Switch,"successDisabledColor",F(ur,A.success.main,.55)),je(A.Switch,"warningDisabledColor",F(ur,A.warning.main,.55)),je(A.TableCell,"border",F(ur,F(Xs,A.divider,1),.68)),je(A.Tooltip,"bg",F(Xs,A.grey[700],.92))}ha(A.background,"default"),ha(A.background,"paper"),ha(A.common,"background"),ha(A.common,"onBackground"),ha(A,"divider"),Object.keys(A).forEach($=>{const I=A[$];$!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&je(A[$],"mainChannel",sd(ld(I.main))),I.light&&je(A[$],"lightChannel",sd(ld(I.light))),I.dark&&je(A[$],"darkChannel",sd(ld(I.dark))),I.contrastText&&je(A[$],"contrastTextChannel",sd(ld(I.contrastText))),$==="text"&&(ha(A[$],"primary"),ha(A[$],"secondary")),$==="action"&&(I.active&&ha(A[$],"active"),I.selected&&ha(A[$],"selected")))})}),P=e.reduce((D,A)=>fn(D,A),P);const z={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:d,getSelector:mP(P),enableContrastVars:u},{vars:_,generateThemeVars:B,generateStyleSheets:G}=hO(P,z);return P.vars=_,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([D,A])=>{P[D]=A}),P.generateThemeVars=B,P.generateStyleSheets=G,P.generateSpacing=function(){return VE(m.spacing,Wh(this))},P.getColorSchemeSelector=mO(p),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=d,P.unstable_sxConfig={...np,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(A){return as({sx:A,theme:this})},P.toRuntimeSource=u4,P}function g2(t,e,r){t.colorSchemes&&r&&(t.colorSchemes[e]={...r!==!0&&r,palette:Yv({...r===!0?{}:r.palette,mode:e})})}function im(t={},...e){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...u}=t,d=s||"light",p=o==null?void 0:o[d],h={...o,...r?{[d]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in t))return O0(t,...e);let m=r;"palette"in t||h[d]&&(h[d]!==!0?m=h[d].palette:d==="dark"&&(m={mode:"dark"}));const b=O0({...t,palette:m},...e);return b.defaultColorScheme=d,b.colorSchemes=h,b.palette.mode==="light"&&(b.colorSchemes.light={...h.light!==!0&&h.light,palette:b.palette},g2(b,"dark",h.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:b.palette},g2(b,"light",h.light)),b}return!r&&!("light"in h)&&d==="light"&&(h.light=!0),bP({...u,colorSchemes:h,defaultColorScheme:d,...typeof n!="boolean"&&n},...e)}function xP(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function SP(t){return parseFloat(t)}const Qv=im();function ii(){const t=ip(Qv);return t[lo]||t}function f4(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const oi=t=>f4(t)&&t!=="classes",xe=YE({themeId:lo,defaultTheme:Qv,rootShouldForwardProp:oi});function wP({theme:t,...e}){const r=lo in t?t[lo]:void 0;return c.jsx(n4,{...e,themeId:r?lo:void 0,theme:r||t})}const Af={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:CP}=uO({themeId:lo,theme:()=>im({cssVariables:!0}),colorSchemeStorageKey:Af.colorSchemeStorageKey,modeStorageKey:Af.modeStorageKey,defaultColorScheme:{light:Af.defaultLightColorScheme,dark:Af.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:l4(t.palette,t.typography)};return e.unstable_sx=function(n){return as({sx:n,theme:this})},e}}),TP=CP;function EP({theme:t,...e}){const r=S.useMemo(()=>{if(typeof t=="function")return t;const n=lo in t?t[lo]:t;return"colorSchemes"in n?null:"vars"in n?t:{...t,vars:null}},[t]);return r?c.jsx(wP,{theme:r,...e}):c.jsx(TP,{theme:t,...e})}function y2(...t){return t.reduce((e,r)=>r==null?e:function(...o){e.apply(this,o),r.apply(this,o)},()=>{})}function jP(t){return c.jsx(qE,{...t,defaultTheme:Qv,themeId:lo})}function AP(t){return function(r){return c.jsx(jP,{styles:typeof t=="function"?n=>t({theme:n,...r}):t})}}function MP(){return Jh}const Xe=rO;function it(t){return Z6(t)}function RP(t){return tt("MuiSvgIcon",t)}nt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kP=t=>{const{color:e,fontSize:r,classes:n}=t,o={root:["root",e!=="inherit"&&`color${ve(e)}`,`fontSize${ve(r)}`]};return rt(o,RP,n)},OP=xe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="inherit"&&e[`color${ve(r.color)}`],e[`fontSize${ve(r.fontSize)}`]]}})(Xe(({theme:t})=>{var e,r,n,o,s,u,d,p,h,m,b,y,v,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(e=t.transitions)==null?void 0:e.create)==null?void 0:o.call(e,"fill",{duration:(n=(r=(t.vars??t).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:C=>!C.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(s=t.typography)==null?void 0:s.pxToRem)==null?void 0:u.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(d=t.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:m.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,C])=>C&&C.main).map(([C])=>{var T,M;return{props:{color:C},style:{color:(M=(T=(t.vars??t).palette)==null?void 0:T[C])==null?void 0:M.main}}}),{props:{color:"action"},style:{color:(y=(b=(t.vars??t).palette)==null?void 0:b.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(w=(v=(t.vars??t).palette)==null?void 0:v.action)==null?void 0:w.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),_0=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiSvgIcon"}),{children:o,className:s,color:u="inherit",component:d="svg",fontSize:p="medium",htmlColor:h,inheritViewBox:m=!1,titleAccess:b,viewBox:y="0 0 24 24",...v}=n,w=S.isValidElement(o)&&o.type==="svg",C={...n,color:u,component:d,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:m,viewBox:y,hasSvgAsChild:w},T={};m||(T.viewBox=y);const M=kP(C);return c.jsxs(OP,{as:d,className:Le(M.root,s),focusable:"false",color:h,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:r,...T,...v,...w&&o.props,ownerState:C,children:[w?o.props.children:o,b?c.jsx("title",{children:b}):null]})});_0.muiName="SvgIcon";function Ae(t,e){function r(n,o){return c.jsx(_0,{"data-testid":void 0,ref:o,...n,children:t})}return r.muiName=_0.muiName,S.memo(S.forwardRef(r))}function om(t,e=166){let r;function n(...o){const s=()=>{t.apply(this,o)};clearTimeout(r),r=setTimeout(s,e)}return n.clear=()=>{clearTimeout(r)},n}function Cn(t){return t&&t.ownerDocument||document}function uo(t){return Cn(t).defaultView||window}function L0(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function os(t){const{controlled:e,default:r,name:n,state:o="value"}=t,{current:s}=S.useRef(e!==void 0),[u,d]=S.useState(r),p=s?e:u,h=S.useCallback(m=>{s||d(m)},[]);return[p,h]}function nn(t){const e=S.useRef(t);return ei(()=>{e.current=t}),S.useRef((...r)=>(0,e.current)(...r)).current}function qr(...t){const e=S.useRef(void 0),r=S.useCallback(n=>{const o=t.map(s=>{if(s==null)return null;if(typeof s=="function"){const u=s,d=u(n);return typeof d=="function"?d:()=>{u(null)}}return s.current=n,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},t);return S.useMemo(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}function PP(t,e){const r=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&r>=65&&r<=90&&typeof e=="function"}function h4(t,e){if(!t)return e;function r(u,d){const p={};return Object.keys(d).forEach(h=>{PP(h,d[h])&&typeof u[h]=="function"&&(p[h]=(...m)=>{u[h](...m),d[h](...m)})}),p}if(typeof t=="function"||typeof e=="function")return u=>{const d=typeof e=="function"?e(u):e,p=typeof t=="function"?t({...u,...d}):t,h=Le(u==null?void 0:u.className,d==null?void 0:d.className,p==null?void 0:p.className),m=r(p,d);return{...d,...p,...m,...!!h&&{className:h},...(d==null?void 0:d.style)&&(p==null?void 0:p.style)&&{style:{...d.style,...p.style}},...(d==null?void 0:d.sx)&&(p==null?void 0:p.sx)&&{sx:[...Array.isArray(d.sx)?d.sx:[d.sx],...Array.isArray(p.sx)?p.sx:[p.sx]]}}};const n=e,o=r(t,n),s=Le(n==null?void 0:n.className,t==null?void 0:t.className);return{...e,...t,...o,...!!s&&{className:s},...(n==null?void 0:n.style)&&(t==null?void 0:t.style)&&{style:{...n.style,...t.style}},...(n==null?void 0:n.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function m4(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function N0(t,e){return N0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},N0(t,e)}function g4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,N0(t,e)}const v2={disabled:!1},vh=Mt.createContext(null);var _P=function(e){return e.scrollTop},cd="unmounted",Ks="exited",Zs="entering",fc="entered",I0="exiting",mo=(function(t){g4(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var u=o,d=u&&!u.isMounting?n.enter:n.appear,p;return s.appearStatus=null,n.in?d?(p=Ks,s.appearStatus=Zs):p=fc:n.unmountOnExit||n.mountOnEnter?p=cd:p=Ks,s.state={status:p},s.nextCallback=null,s}e.getDerivedStateFromProps=function(o,s){var u=o.in;return u&&s.status===cd?{status:Ks}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var u=this.state.status;this.props.in?u!==Zs&&u!==fc&&(s=Zs):(u===Zs||u===fc)&&(s=I0)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,u,d;return s=u=d=o,o!=null&&typeof o!="number"&&(s=o.exit,u=o.enter,d=o.appear!==void 0?o.appear:u),{exit:s,enter:u,appear:d}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Zs){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Tf.findDOMNode(this);u&&_P(u)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ks&&this.setState({status:cd})},r.performEnter=function(o){var s=this,u=this.props.enter,d=this.context?this.context.isMounting:o,p=this.props.nodeRef?[d]:[Tf.findDOMNode(this),d],h=p[0],m=p[1],b=this.getTimeouts(),y=d?b.appear:b.enter;if(!o&&!u||v2.disabled){this.safeSetState({status:fc},function(){s.props.onEntered(h)});return}this.props.onEnter(h,m),this.safeSetState({status:Zs},function(){s.props.onEntering(h,m),s.onTransitionEnd(y,function(){s.safeSetState({status:fc},function(){s.props.onEntered(h,m)})})})},r.performExit=function(){var o=this,s=this.props.exit,u=this.getTimeouts(),d=this.props.nodeRef?void 0:Tf.findDOMNode(this);if(!s||v2.disabled){this.safeSetState({status:Ks},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:I0},function(){o.props.onExiting(d),o.onTransitionEnd(u.exit,function(){o.safeSetState({status:Ks},function(){o.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,u=!0;return this.nextCallback=function(d){u&&(u=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var u=this.props.nodeRef?this.props.nodeRef.current:Tf.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!u||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var p=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],h=p[0],m=p[1];this.props.addEndListener(h,m)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===cd)return null;var s=this.props,u=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=m4(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Mt.createElement(vh.Provider,{value:null},typeof u=="function"?u(o,d):Mt.cloneElement(Mt.Children.only(u),d))},e})(Mt.Component);mo.contextType=vh;mo.propTypes={};function lc(){}mo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lc,onEntering:lc,onEntered:lc,onExit:lc,onExiting:lc,onExited:lc};mo.UNMOUNTED=cd;mo.EXITED=Ks;mo.ENTERING=Zs;mo.ENTERED=fc;mo.EXITING=I0;function LP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kv(t,e){var r=function(s){return e&&S.isValidElement(s)?e(s):s},n=Object.create(null);return t&&S.Children.map(t,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function NP(t,e){t=t||{},e=e||{};function r(m){return m in e?e[m]:t[m]}var n=Object.create(null),o=[];for(var s in t)s in e?o.length&&(n[s]=o,o=[]):o.push(s);var u,d={};for(var p in e){if(n[p])for(u=0;u<n[p].length;u++){var h=n[p][u];d[n[p][u]]=r(h)}d[p]=r(p)}for(u=0;u<o.length;u++)d[o[u]]=r(o[u]);return d}function nl(t,e,r){return r[e]!=null?r[e]:t.props[e]}function IP(t,e){return Kv(t.children,function(r){return S.cloneElement(r,{onExited:e.bind(null,r),in:!0,appear:nl(r,"appear",t),enter:nl(r,"enter",t),exit:nl(r,"exit",t)})})}function BP(t,e,r){var n=Kv(t.children),o=NP(e,n);return Object.keys(o).forEach(function(s){var u=o[s];if(S.isValidElement(u)){var d=s in e,p=s in n,h=e[s],m=S.isValidElement(h)&&!h.props.in;p&&(!d||m)?o[s]=S.cloneElement(u,{onExited:r.bind(null,u),in:!0,exit:nl(u,"exit",t),enter:nl(u,"enter",t)}):!p&&d&&!m?o[s]=S.cloneElement(u,{in:!1}):p&&d&&S.isValidElement(h)&&(o[s]=S.cloneElement(u,{onExited:r.bind(null,u),in:h.props.in,exit:nl(u,"exit",t),enter:nl(u,"enter",t)}))}}),o}var zP=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},$P={component:"div",childFactory:function(e){return e}},Zv=(function(t){g4(e,t);function e(n,o){var s;s=t.call(this,n,o)||this;var u=s.handleExited.bind(LP(s));return s.state={contextValue:{isMounting:!0},handleExited:u,firstRender:!0},s}var r=e.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,s){var u=s.children,d=s.handleExited,p=s.firstRender;return{children:p?IP(o,d):BP(o,u,d),firstRender:!1}},r.handleExited=function(o,s){var u=Kv(this.props.children);o.key in u||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var p=hh({},d.children);return delete p[o.key],{children:p}}))},r.render=function(){var o=this.props,s=o.component,u=o.childFactory,d=m4(o,["component","childFactory"]),p=this.state.contextValue,h=zP(this.state.children).map(u);return delete d.appear,delete d.enter,delete d.exit,s===null?Mt.createElement(vh.Provider,{value:p},h):Mt.createElement(vh.Provider,{value:p},Mt.createElement(s,d,h))},e})(Mt.Component);Zv.propTypes={};Zv.defaultProps=$P;const b2={};function y4(t,e){const r=S.useRef(b2);return r.current===b2&&(r.current=t(e)),r}const DP=[];function HP(t){S.useEffect(t,DP)}class am{constructor(){Gs(this,"currentId",null);Gs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Gs(this,"disposeEffect",()=>this.clear)}static create(){return new am}start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}}function rs(){const t=y4(am.create).current;return HP(t.disposeEffect),t}const v4=t=>t.scrollTop;function Ec(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function bh(t){return typeof t=="string"}function b4(t,e,r){return t===void 0||bh(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function x4(t,e,r){return typeof t=="function"?t(e,r):t}function xh(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function x2(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function S4(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=t;if(!e){const v=Le(r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),w={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},C={...r,...o,...n};return v.length>0&&(C.className=v),Object.keys(w).length>0&&(C.style=w),{props:C,internalRef:void 0}}const u=xh({...o,...n}),d=x2(n),p=x2(o),h=e(u),m=Le(h==null?void 0:h.className,r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),b={...h==null?void 0:h.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},y={...h,...r,...p,...d};return m.length>0&&(y.className=m),Object.keys(b).length>0&&(y.style=b),{props:y,internalRef:h.ref}}function Ke(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:s,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...p}=e,{component:h,slots:m={[t]:void 0},slotProps:b={[t]:void 0},...y}=s,v=m[t]||n,w=x4(b[t],o),{props:{component:C,...T},internalRef:M}=S4({className:r,...p,externalForwardedProps:t==="root"?y:void 0,externalSlotProps:w}),E=qr(M,w==null?void 0:w.ref,e.ref),R=t==="root"?C||h:C,j=b4(v,{...t==="root"&&!h&&!m[t]&&u,...t!=="root"&&!m[t]&&u,...T,...R&&!d&&{as:R},...R&&d&&{component:R},ref:E},o);return[v,j]}function UP(t){return tt("MuiCollapse",t)}nt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const VP=t=>{const{orientation:e,classes:r}=t,n={root:["root",`${e}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${e}`],wrapperInner:["wrapperInner",`${e}`]};return rt(n,UP,r)},qP=xe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.orientation],r.state==="entered"&&e.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&e.hidden]}})(Xe(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),FP=xe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),WP=xe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),_d=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCollapse"}),{addEndListener:o,children:s,className:u,collapsedSize:d="0px",component:p,easing:h,in:m,onEnter:b,onEntered:y,onEntering:v,onExit:w,onExited:C,onExiting:T,orientation:M="vertical",slots:E={},slotProps:R={},style:j,timeout:k=c4.standard,TransitionComponent:P=mo,...z}=n,_={...n,orientation:M,collapsedSize:d},B=VP(_),G=ii(),D=rs(),A=S.useRef(null),Y=S.useRef(),F=typeof d=="number"?`${d}px`:d,$=M==="horizontal",I=$?"width":"height",Q=S.useRef(null),ee=qr(r,Q),J=Ie=>We=>{if(Ie){const ct=Q.current;We===void 0?Ie(ct):Ie(ct,We)}},L=()=>A.current?A.current[$?"clientWidth":"clientHeight"]:0,oe=J((Ie,We)=>{A.current&&$&&(A.current.style.position="absolute"),Ie.style[I]=F,b&&b(Ie,We)}),ue=J((Ie,We)=>{const ct=L();A.current&&$&&(A.current.style.position="");const{duration:le,easing:Ze}=Ec({style:j,timeout:k,easing:h},{mode:"enter"});if(k==="auto"){const Fe=G.transitions.getAutoHeightDuration(ct);Ie.style.transitionDuration=`${Fe}ms`,Y.current=Fe}else Ie.style.transitionDuration=typeof le=="string"?le:`${le}ms`;Ie.style[I]=`${ct}px`,Ie.style.transitionTimingFunction=Ze,v&&v(Ie,We)}),ce=J((Ie,We)=>{Ie.style[I]="auto",y&&y(Ie,We)}),K=J(Ie=>{Ie.style[I]=`${L()}px`,w&&w(Ie)}),re=J(C),Z=J(Ie=>{const We=L(),{duration:ct,easing:le}=Ec({style:j,timeout:k,easing:h},{mode:"exit"});if(k==="auto"){const Ze=G.transitions.getAutoHeightDuration(We);Ie.style.transitionDuration=`${Ze}ms`,Y.current=Ze}else Ie.style.transitionDuration=typeof ct=="string"?ct:`${ct}ms`;Ie.style[I]=F,Ie.style.transitionTimingFunction=le,T&&T(Ie)}),ye=Ie=>{k==="auto"&&D.start(Y.current||0,Ie),o&&o(Q.current,Ie)},Ce={slots:E,slotProps:R,component:p},[be,se]=Ke("root",{ref:ee,className:Le(B.root,u),elementType:qP,externalForwardedProps:Ce,ownerState:_,additionalProps:{style:{[$?"minWidth":"minHeight"]:F,...j}}}),[De,ze]=Ke("wrapper",{ref:A,className:B.wrapper,elementType:FP,externalForwardedProps:Ce,ownerState:_}),[Be,Ve]=Ke("wrapperInner",{className:B.wrapperInner,elementType:WP,externalForwardedProps:Ce,ownerState:_});return c.jsx(P,{in:m,onEnter:oe,onEntered:ce,onEntering:ue,onExit:K,onExited:re,onExiting:Z,addEndListener:ye,nodeRef:Q,timeout:k==="auto"?null:k,...z,children:(Ie,{ownerState:We,...ct})=>{const le={..._,state:Ie};return c.jsx(be,{...se,className:Le(se.className,{entered:B.entered,exited:!m&&F==="0px"&&B.hidden}[Ie]),ownerState:le,...ct,children:c.jsx(De,{...ze,ownerState:le,children:c.jsx(Be,{...Ve,ownerState:le,children:s})})})}})});_d&&(_d.muiSupportAuto=!0);function GP(t){return tt("MuiPaper",t)}nt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const XP=t=>{const{square:e,elevation:r,variant:n,classes:o}=t,s={root:["root",n,!e&&"rounded",n==="elevation"&&`elevation${r}`]};return rt(s,GP,o)},YP=xe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],!r.square&&e.rounded,r.variant==="elevation"&&e[`elevation${r.elevation}`]]}})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Fr=S.forwardRef(function(e,r){var v;const n=it({props:e,name:"MuiPaper"}),o=ii(),{className:s,component:u="div",elevation:d=1,square:p=!1,variant:h="elevation",...m}=n,b={...n,component:u,elevation:d,square:p,variant:h},y=XP(b);return c.jsx(YP,{as:u,ownerState:b,className:Le(y.root,s),ref:r,...m,style:{...h==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":(v=o.vars.overlays)==null?void 0:v[d]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Pd("#fff",P0(d))}, ${Pd("#fff",P0(d))})`}},...m.style}})});function jc(t){try{return t.matches(":focus-visible")}catch{}return!1}class Sh{constructor(){Gs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Sh}static use(){const e=y4(Sh.create).current,[r,n]=S.useState(!1);return e.shouldMount=r,e.setShouldMount=n,S.useEffect(e.mountEffect,[r]),e}mount(){return this.mounted||(this.mounted=KP(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...e)})}stop(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...e)})}pulsate(...e){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...e)})}}function QP(){return Sh.use()}function KP(){let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r}function ZP(t){const{className:e,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:u,in:d,onExited:p,timeout:h}=t,[m,b]=S.useState(!1),y=Le(e,r.ripple,r.rippleVisible,n&&r.ripplePulsate),v={width:u,height:u,top:-(u/2)+s,left:-(u/2)+o},w=Le(r.child,m&&r.childLeaving,n&&r.childPulsate);return!d&&!m&&b(!0),S.useEffect(()=>{if(!d&&p!=null){const C=setTimeout(p,h);return()=>{clearTimeout(C)}}},[p,d,h]),c.jsx("span",{className:y,style:v,children:c.jsx("span",{className:w})})}const Di=nt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),B0=550,JP=80,e_=Go`
|
|
127
|
-
0% {
|
|
128
|
-
transform: scale(0);
|
|
129
|
-
opacity: 0.1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
100% {
|
|
133
|
-
transform: scale(1);
|
|
134
|
-
opacity: 0.3;
|
|
135
|
-
}
|
|
136
|
-
`,t_=Go`
|
|
137
|
-
0% {
|
|
138
|
-
opacity: 1;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
100% {
|
|
142
|
-
opacity: 0;
|
|
143
|
-
}
|
|
144
|
-
`,r_=Go`
|
|
145
|
-
0% {
|
|
146
|
-
transform: scale(1);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
50% {
|
|
150
|
-
transform: scale(0.92);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
100% {
|
|
154
|
-
transform: scale(1);
|
|
155
|
-
}
|
|
156
|
-
`,n_=xe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),i_=xe(ZP,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
157
|
-
opacity: 0;
|
|
158
|
-
position: absolute;
|
|
159
|
-
|
|
160
|
-
&.${Di.rippleVisible} {
|
|
161
|
-
opacity: 0.3;
|
|
162
|
-
transform: scale(1);
|
|
163
|
-
animation-name: ${e_};
|
|
164
|
-
animation-duration: ${B0}ms;
|
|
165
|
-
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&.${Di.ripplePulsate} {
|
|
169
|
-
animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
& .${Di.child} {
|
|
173
|
-
opacity: 1;
|
|
174
|
-
display: block;
|
|
175
|
-
width: 100%;
|
|
176
|
-
height: 100%;
|
|
177
|
-
border-radius: 50%;
|
|
178
|
-
background-color: currentColor;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
& .${Di.childLeaving} {
|
|
182
|
-
opacity: 0;
|
|
183
|
-
animation-name: ${t_};
|
|
184
|
-
animation-duration: ${B0}ms;
|
|
185
|
-
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
& .${Di.childPulsate} {
|
|
189
|
-
position: absolute;
|
|
190
|
-
/* @noflip */
|
|
191
|
-
left: 0px;
|
|
192
|
-
top: 0;
|
|
193
|
-
animation-name: ${r_};
|
|
194
|
-
animation-duration: 2500ms;
|
|
195
|
-
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
196
|
-
animation-iteration-count: infinite;
|
|
197
|
-
animation-delay: 200ms;
|
|
198
|
-
}
|
|
199
|
-
`,o_=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:u,...d}=n,[p,h]=S.useState([]),m=S.useRef(0),b=S.useRef(null);S.useEffect(()=>{b.current&&(b.current(),b.current=null)},[p]);const y=S.useRef(!1),v=rs(),w=S.useRef(null),C=S.useRef(null),T=S.useCallback(j=>{const{pulsate:k,rippleX:P,rippleY:z,rippleSize:_,cb:B}=j;h(G=>[...G,c.jsx(i_,{classes:{ripple:Le(s.ripple,Di.ripple),rippleVisible:Le(s.rippleVisible,Di.rippleVisible),ripplePulsate:Le(s.ripplePulsate,Di.ripplePulsate),child:Le(s.child,Di.child),childLeaving:Le(s.childLeaving,Di.childLeaving),childPulsate:Le(s.childPulsate,Di.childPulsate)},timeout:B0,pulsate:k,rippleX:P,rippleY:z,rippleSize:_},m.current)]),m.current+=1,b.current=B},[s]),M=S.useCallback((j={},k={},P=()=>{})=>{const{pulsate:z=!1,center:_=o||k.pulsate,fakeElement:B=!1}=k;if((j==null?void 0:j.type)==="mousedown"&&y.current){y.current=!1;return}(j==null?void 0:j.type)==="touchstart"&&(y.current=!0);const G=B?null:C.current,D=G?G.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,Y,F;if(_||j===void 0||j.clientX===0&&j.clientY===0||!j.clientX&&!j.touches)A=Math.round(D.width/2),Y=Math.round(D.height/2);else{const{clientX:$,clientY:I}=j.touches&&j.touches.length>0?j.touches[0]:j;A=Math.round($-D.left),Y=Math.round(I-D.top)}if(_)F=Math.sqrt((2*D.width**2+D.height**2)/3),F%2===0&&(F+=1);else{const $=Math.max(Math.abs((G?G.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((G?G.clientHeight:0)-Y),Y)*2+2;F=Math.sqrt($**2+I**2)}j!=null&&j.touches?w.current===null&&(w.current=()=>{T({pulsate:z,rippleX:A,rippleY:Y,rippleSize:F,cb:P})},v.start(JP,()=>{w.current&&(w.current(),w.current=null)})):T({pulsate:z,rippleX:A,rippleY:Y,rippleSize:F,cb:P})},[o,T,v]),E=S.useCallback(()=>{M({},{pulsate:!0})},[M]),R=S.useCallback((j,k)=>{if(v.clear(),(j==null?void 0:j.type)==="touchend"&&w.current){w.current(),w.current=null,v.start(0,()=>{R(j,k)});return}w.current=null,h(P=>P.length>0?P.slice(1):P),b.current=k},[v]);return S.useImperativeHandle(r,()=>({pulsate:E,start:M,stop:R}),[E,M,R]),c.jsx(n_,{className:Le(Di.root,s.root,u),ref:C,...d,children:c.jsx(Zv,{component:null,exit:!0,children:p})})});function a_(t){return tt("MuiButtonBase",t)}const s_=nt("MuiButtonBase",["root","disabled","focusVisible"]),l_=t=>{const{disabled:e,focusVisible:r,focusVisibleClassName:n,classes:o}=t,u=rt({root:["root",e&&"disabled",r&&"focusVisible"]},a_,o);return r&&n&&(u.root+=` ${n}`),u},c_=xe("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${s_.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),po=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:u,className:d,component:p="button",disabled:h=!1,disableRipple:m=!1,disableTouchRipple:b=!1,focusRipple:y=!1,focusVisibleClassName:v,LinkComponent:w="a",onBlur:C,onClick:T,onContextMenu:M,onDragLeave:E,onFocus:R,onFocusVisible:j,onKeyDown:k,onKeyUp:P,onMouseDown:z,onMouseLeave:_,onMouseUp:B,onTouchEnd:G,onTouchMove:D,onTouchStart:A,tabIndex:Y=0,TouchRippleProps:F,touchRippleRef:$,type:I,...Q}=n,ee=S.useRef(null),J=QP(),L=qr(J.ref,$),[oe,ue]=S.useState(!1);h&&oe&&ue(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{ue(!0),ee.current.focus()}}),[]);const ce=J.shouldMount&&!m&&!h;S.useEffect(()=>{oe&&y&&!m&&J.pulsate()},[m,y,oe,J]);const K=ma(J,"start",z,b),re=ma(J,"stop",M,b),Z=ma(J,"stop",E,b),ye=ma(J,"stop",B,b),Ce=ma(J,"stop",Ue=>{oe&&Ue.preventDefault(),_&&_(Ue)},b),be=ma(J,"start",A,b),se=ma(J,"stop",G,b),De=ma(J,"stop",D,b),ze=ma(J,"stop",Ue=>{jc(Ue.target)||ue(!1),C&&C(Ue)},!1),Be=nn(Ue=>{ee.current||(ee.current=Ue.currentTarget),jc(Ue.target)&&(ue(!0),j&&j(Ue)),R&&R(Ue)}),Ve=()=>{const Ue=ee.current;return p&&p!=="button"&&!(Ue.tagName==="A"&&Ue.href)},Ie=nn(Ue=>{y&&!Ue.repeat&&oe&&Ue.key===" "&&J.stop(Ue,()=>{J.start(Ue)}),Ue.target===Ue.currentTarget&&Ve()&&Ue.key===" "&&Ue.preventDefault(),k&&k(Ue),Ue.target===Ue.currentTarget&&Ve()&&Ue.key==="Enter"&&!h&&(Ue.preventDefault(),T&&T(Ue))}),We=nn(Ue=>{y&&Ue.key===" "&&oe&&!Ue.defaultPrevented&&J.stop(Ue,()=>{J.pulsate(Ue)}),P&&P(Ue),T&&Ue.target===Ue.currentTarget&&Ve()&&Ue.key===" "&&!Ue.defaultPrevented&&T(Ue)});let ct=p;ct==="button"&&(Q.href||Q.to)&&(ct=w);const le={};ct==="button"?(le.type=I===void 0?"button":I,le.disabled=h):(!Q.href&&!Q.to&&(le.role="button"),h&&(le["aria-disabled"]=h));const Ze=qr(r,ee),Fe={...n,centerRipple:s,component:p,disabled:h,disableRipple:m,disableTouchRipple:b,focusRipple:y,tabIndex:Y,focusVisible:oe},ft=l_(Fe);return c.jsxs(c_,{as:ct,className:Le(ft.root,d),ownerState:Fe,onBlur:ze,onClick:T,onContextMenu:re,onFocus:Be,onKeyDown:Ie,onKeyUp:We,onMouseDown:K,onMouseLeave:Ce,onMouseUp:ye,onDragLeave:Z,onTouchEnd:se,onTouchMove:De,onTouchStart:be,ref:Ze,tabIndex:h?-1:Y,type:I,...le,...Q,children:[u,ce?c.jsx(o_,{ref:L,center:s,...F}):null]})});function ma(t,e,r,n=!1){return nn(o=>(r&&r(o),n||t[e](o),!0))}function u_(t){return typeof t.main=="string"}function d_(t,e=[]){if(!u_(t))return!1;for(const r of e)if(!t.hasOwnProperty(r)||typeof t[r]!="string")return!1;return!0}function cr(t=[]){return([,e])=>e&&d_(e,t)}function p_(t){return tt("MuiAlert",t)}const S2=nt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function f_(t){return tt("MuiCircularProgress",t)}nt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oo=44,z0=Go`
|
|
200
|
-
0% {
|
|
201
|
-
transform: rotate(0deg);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
100% {
|
|
205
|
-
transform: rotate(360deg);
|
|
206
|
-
}
|
|
207
|
-
`,$0=Go`
|
|
208
|
-
0% {
|
|
209
|
-
stroke-dasharray: 1px, 200px;
|
|
210
|
-
stroke-dashoffset: 0;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
50% {
|
|
214
|
-
stroke-dasharray: 100px, 200px;
|
|
215
|
-
stroke-dashoffset: -15px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
100% {
|
|
219
|
-
stroke-dasharray: 1px, 200px;
|
|
220
|
-
stroke-dashoffset: -126px;
|
|
221
|
-
}
|
|
222
|
-
`,h_=typeof z0!="string"?ys`
|
|
223
|
-
animation: ${z0} 1.4s linear infinite;
|
|
224
|
-
`:null,m_=typeof $0!="string"?ys`
|
|
225
|
-
animation: ${$0} 1.4s ease-in-out infinite;
|
|
226
|
-
`:null,g_=t=>{const{classes:e,variant:r,color:n,disableShrink:o}=t,s={root:["root",r,`color${ve(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ve(r)}`,o&&"circleDisableShrink"]};return rt(s,f_,e)},y_=xe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`color${ve(r.color)}`]]}})(Xe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:h_||{animation:`${z0} 1.4s linear infinite`}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),v_=xe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),b_=xe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.circle,e[`circle${ve(r.variant)}`],r.disableShrink&&e.circleDisableShrink]}})(Xe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:m_||{animation:`${$0} 1.4s ease-in-out infinite`}}]}))),x_=xe("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),Tr=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:u=!1,enableTrackSlot:d=!1,size:p=40,style:h,thickness:m=3.6,value:b=0,variant:y="indeterminate",...v}=n,w={...n,color:s,disableShrink:u,size:p,thickness:m,value:b,variant:y,enableTrackSlot:d},C=g_(w),T={},M={},E={};if(y==="determinate"){const R=2*Math.PI*((oo-m)/2);T.strokeDasharray=R.toFixed(3),E["aria-valuenow"]=Math.round(b),T.strokeDashoffset=`${((100-b)/100*R).toFixed(3)}px`,M.transform="rotate(-90deg)"}return c.jsx(y_,{className:Le(C.root,o),style:{width:p,height:p,...M,...h},ownerState:w,ref:r,role:"progressbar",...E,...v,children:c.jsxs(v_,{className:C.svg,ownerState:w,viewBox:`${oo/2} ${oo/2} ${oo} ${oo}`,children:[d?c.jsx(x_,{className:C.track,ownerState:w,cx:oo,cy:oo,r:(oo-m)/2,fill:"none",strokeWidth:m,"aria-hidden":"true"}):null,c.jsx(b_,{className:C.circle,style:T,ownerState:w,cx:oo,cy:oo,r:(oo-m)/2,fill:"none",strokeWidth:m})]})})});function S_(t){return tt("MuiIconButton",t)}const w2=nt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),w_=t=>{const{classes:e,disabled:r,color:n,edge:o,size:s,loading:u}=t,d={root:["root",u&&"loading",r&&"disabled",n!=="default"&&`color${ve(n)}`,o&&`edge${ve(o)}`,`size${ve(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return rt(d,S_,e)},C_=xe(po,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.loading&&e.loading,r.color!=="default"&&e[`color${ve(r.color)}`],r.edge&&e[`edge${ve(r.edge)}`],e[`size${ve(r.size)}`]]}})(Xe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Xe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${w2.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${w2.loading}`]:{color:"transparent"}}))),T_=xe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),sr=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiIconButton"}),{edge:o=!1,children:s,className:u,color:d="default",disabled:p=!1,disableFocusRipple:h=!1,size:m="medium",id:b,loading:y=null,loadingIndicator:v,...w}=n,C=$o(b),T=v??c.jsx(Tr,{"aria-labelledby":C,color:"inherit",size:16}),M={...n,edge:o,color:d,disabled:p,disableFocusRipple:h,loading:y,loadingIndicator:T,size:m},E=w_(M);return c.jsxs(C_,{id:y?C:b,className:Le(E.root,u),centerRipple:!0,focusRipple:!h,disabled:p||y,ref:r,...w,ownerState:M,children:[typeof y=="boolean"&&c.jsx("span",{className:E.loadingWrapper,style:{display:"contents"},children:c.jsx(T_,{className:E.loadingIndicator,ownerState:M,children:y&&T})}),s]})}),E_=Ae(c.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),j_=Ae(c.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),A_=Ae(c.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),M_=Ae(c.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),w4=Ae(c.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),R_=t=>{const{variant:e,color:r,severity:n,classes:o}=t,s={root:["root",`color${ve(r||n)}`,`${e}${ve(r||n)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return rt(s,p_,o)},k_=xe(Fr,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ve(r.color||r.severity)}`]]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.darken:t.lighten,r=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:r(t.palette[n].light,.9),[`& .${S2.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(cr(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${n}Color`]:e(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${S2.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}}})),...Object.entries(t.palette).filter(cr(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}}}))]}})),O_=xe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),P_=xe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),__=xe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),C2={success:c.jsx(E_,{fontSize:"inherit"}),warning:c.jsx(j_,{fontSize:"inherit"}),error:c.jsx(A_,{fontSize:"inherit"}),info:c.jsx(M_,{fontSize:"inherit"})},ar=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiAlert"}),{action:o,children:s,className:u,closeText:d="Close",color:p,components:h={},componentsProps:m={},icon:b,iconMapping:y=C2,onClose:v,role:w="alert",severity:C="success",slotProps:T={},slots:M={},variant:E="standard",...R}=n,j={...n,color:p,severity:C,variant:E,colorSeverity:p||C},k=R_(j),P={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...M},slotProps:{...m,...T}},[z,_]=Ke("root",{ref:r,shouldForwardComponentProp:!0,className:Le(k.root,u),elementType:k_,externalForwardedProps:{...P,...R},ownerState:j,additionalProps:{role:w,elevation:0}}),[B,G]=Ke("icon",{className:k.icon,elementType:O_,externalForwardedProps:P,ownerState:j}),[D,A]=Ke("message",{className:k.message,elementType:P_,externalForwardedProps:P,ownerState:j}),[Y,F]=Ke("action",{className:k.action,elementType:__,externalForwardedProps:P,ownerState:j}),[$,I]=Ke("closeButton",{elementType:sr,externalForwardedProps:P,ownerState:j}),[Q,ee]=Ke("closeIcon",{elementType:w4,externalForwardedProps:P,ownerState:j});return c.jsxs(z,{..._,children:[b!==!1?c.jsx(B,{...G,children:b||y[C]||C2[C]}):null,c.jsx(D,{...A,children:s}),o!=null?c.jsx(Y,{...F,children:o}):null,o==null&&v?c.jsx(Y,{...F,children:c.jsx($,{size:"small","aria-label":d,title:d,color:"inherit",onClick:v,...I,children:c.jsx(Q,{fontSize:"small",...ee})})}):null]})});function L_(t){return tt("MuiTypography",t)}const T2=nt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),N_={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},I_=MP(),B_=t=>{const{align:e,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:u}=t,d={root:["root",s,t.align!=="inherit"&&`align${ve(e)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return rt(d,L_,u)},z_=xe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.variant&&e[r.variant],r.align!=="inherit"&&e[`align${ve(r.align)}`],r.noWrap&&e.noWrap,r.gutterBottom&&e.gutterBottom,r.paragraph&&e.paragraph]}})(Xe(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ve(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),E2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},me=S.forwardRef(function(e,r){const{color:n,...o}=it({props:e,name:"MuiTypography"}),s=!N_[n],u=I_({...o,...s&&{color:n}}),{align:d="inherit",className:p,component:h,gutterBottom:m=!1,noWrap:b=!1,paragraph:y=!1,variant:v="body1",variantMapping:w=E2,...C}=u,T={...u,align:d,color:n,className:p,component:h,gutterBottom:m,noWrap:b,paragraph:y,variant:v,variantMapping:w},M=h||(y?"p":w[v]||E2[v])||"span",E=B_(T);return c.jsx(z_,{as:M,ref:r,className:Le(E.root,p),...C,ownerState:T,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...C.style}})});function $_(t){const e=S.useRef({});return S.useEffect(()=>{e.current=t}),e.current}function j2({array1:t,array2:e,parser:r=n=>n}){return t&&e&&t.length===e.length&&t.every((n,o)=>r(n)===r(e[o]))}function A2(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function D_(t={}){const{ignoreAccents:e=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:s,trim:u=!1}=t;return(d,{inputValue:p,getOptionLabel:h})=>{let m=u?p.trim():p;r&&(m=m.toLowerCase()),e&&(m=A2(m));const b=m?d.filter(y=>{let v=(s||h)(y);return r&&(v=v.toLowerCase()),e&&(v=A2(v)),o==="start"?v.startsWith(m):v.includes(m)}):d;return typeof n=="number"?b.slice(0,n):b}}const H_=D_(),M2=5,U_=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))},V_=[];function R2(t,e,r,n){if(e||t==null||n)return"";const o=r(t);return typeof o=="string"?o:""}function q_(t){const{unstable_isActiveElementInListbox:e=U_,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:u=!1,clearOnBlur:d=!t.freeSolo,clearOnEscape:p=!1,componentName:h="useAutocomplete",defaultValue:m=t.multiple?V_:null,disableClearable:b=!1,disableCloseOnSelect:y=!1,disabled:v,disabledItemsFocusable:w=!1,disableListWrap:C=!1,filterOptions:T=H_,filterSelectedOptions:M=!1,freeSolo:E=!1,getOptionDisabled:R,getOptionKey:j,getOptionLabel:k=Te=>Te.label??Te,groupBy:P,handleHomeEndKeys:z=!t.freeSolo,id:_,includeInputInList:B=!1,inputValue:G,isOptionEqualToValue:D=(Te,Ee)=>Te===Ee,multiple:A=!1,onChange:Y,onClose:F,onHighlightChange:$,onInputChange:I,onOpen:Q,open:ee,openOnFocus:J=!1,options:L,readOnly:oe=!1,renderValue:ue,selectOnFocus:ce=!t.freeSolo,value:K}=t,re=$o(_);let Z=k;Z=Te=>{const Ee=k(Te);return typeof Ee!="string"?String(Ee):Ee};const ye=S.useRef(!1),Ce=S.useRef(!0),be=S.useRef(null),se=S.useRef(null),[De,ze]=S.useState(null),[Be,Ve]=S.useState(-1),Ie=o?0:-1,We=S.useRef(Ie),ct=S.useRef(R2(m??K,A,Z)).current,[le,Ze]=os({controlled:K,default:m,name:h}),[Fe,ft]=os({controlled:G,default:ct,name:h,state:"inputValue"}),[Ue,kt]=S.useState(!1),at=S.useCallback((Te,Ee,Qe)=>{if(!(A?le.length<Ee.length:Ee!==null)&&!d)return;const wt=R2(Ee,A,Z,ue);Fe!==wt&&(ft(wt),I&&I(Te,wt,Qe))},[Z,Fe,A,I,ft,d,le,ue]),[fe,we]=os({controlled:ee,default:!1,name:h,state:"open"}),[ke,_e]=S.useState(!0),Ge=!A&&le!=null&&Fe===Z(le),Je=fe&&!oe,ie=Je?T(L.filter(Te=>!(M&&(A?le:[le]).some(Ee=>Ee!==null&&D(Te,Ee)))),{inputValue:Ge&&ke?"":Fe,getOptionLabel:Z}):[],Pe=$_({filteredOptions:ie,value:le,inputValue:Fe});S.useEffect(()=>{const Te=le!==Pe.value;Ue&&!Te||E&&!Te||at(null,le,"reset")},[le,at,Ue,Pe.value,E]);const He=fe&&ie.length>0&&!oe,$e=nn(Te=>{if(Te===-1)be.current.focus();else{const Ee=ue?"data-item-index":"data-tag-index";De.querySelector(`[${Ee}="${Te}"]`).focus()}});S.useEffect(()=>{A&&Be>le.length-1&&(Ve(-1),$e(-1))},[le,A,Be,$e]);function yt(Te,Ee){if(!se.current||Te<0||Te>=ie.length)return-1;let Qe=Te;for(;;){const mt=se.current.querySelector(`[data-option-index="${Qe}"]`),wt=w?!1:!mt||mt.disabled||mt.getAttribute("aria-disabled")==="true";if(mt&&mt.hasAttribute("tabindex")&&!wt)return Qe;if(Ee==="next"?Qe=(Qe+1)%ie.length:Qe=(Qe-1+ie.length)%ie.length,Qe===Te)return-1}}const Gt=nn(({event:Te,index:Ee,reason:Qe})=>{if(We.current=Ee,Ee===-1?be.current.removeAttribute("aria-activedescendant"):be.current.setAttribute("aria-activedescendant",`${re}-option-${Ee}`),$&&["mouse","keyboard","touch"].includes(Qe)&&$(Te,Ee===-1?null:ie[Ee],Qe),!se.current)return;const mt=se.current.querySelector(`[role="option"].${r}-focused`);mt&&(mt.classList.remove(`${r}-focused`),mt.classList.remove(`${r}-focusVisible`));let wt=se.current;if(se.current.getAttribute("role")!=="listbox"&&(wt=se.current.parentElement.querySelector('[role="listbox"]')),!wt)return;if(Ee===-1){wt.scrollTop=0;return}const jr=se.current.querySelector(`[data-option-index="${Ee}"]`);if(jr&&(jr.classList.add(`${r}-focused`),Qe==="keyboard"&&jr.classList.add(`${r}-focusVisible`),wt.scrollHeight>wt.clientHeight&&Qe!=="mouse"&&Qe!=="touch")){const $t=jr,Fn=wt.clientHeight+wt.scrollTop,js=$t.offsetTop+$t.offsetHeight;js>Fn?wt.scrollTop=js-wt.clientHeight:$t.offsetTop-$t.offsetHeight*(P?1.3:0)<wt.scrollTop&&(wt.scrollTop=$t.offsetTop-$t.offsetHeight*(P?1.3:0))}}),Xt=nn(({event:Te,diff:Ee,direction:Qe="next",reason:mt})=>{if(!Je)return;const jr=yt((()=>{const $t=ie.length-1;if(Ee==="reset")return Ie;if(Ee==="start")return 0;if(Ee==="end")return $t;const Fn=We.current+Ee;return Fn<0?Fn===-1&&B?-1:C&&We.current!==-1||Math.abs(Ee)>1?0:$t:Fn>$t?Fn===$t+1&&B?-1:C||Math.abs(Ee)>1?$t:0:Fn})(),Qe);if(Gt({index:jr,reason:mt,event:Te}),n&&Ee!=="reset")if(jr===-1)be.current.value=Fe;else{const $t=Z(ie[jr]);be.current.value=$t,$t.toLowerCase().indexOf(Fe.toLowerCase())===0&&Fe.length>0&&be.current.setSelectionRange(Fe.length,$t.length)}}),yn=!j2({array1:Pe.filteredOptions,array2:ie,parser:Z}),ut=()=>{const Te=(Ee,Qe)=>{const mt=Ee?Z(Ee):"",wt=Qe?Z(Qe):"";return mt===wt};if(We.current!==-1&&!j2({array1:Pe.filteredOptions,array2:ie,parser:Z})&&Pe.inputValue===Fe&&(A?le.length===Pe.value.length&&Pe.value.every((Ee,Qe)=>Z(le[Qe])===Z(Ee)):Te(Pe.value,le))){const Ee=Pe.filteredOptions[We.current];if(Ee)return ie.findIndex(Qe=>Z(Qe)===Z(Ee))}return-1},Vt=S.useCallback(()=>{if(!Je)return;const Te=ut();if(Te!==-1){We.current=Te;return}const Ee=A?le[0]:le;if(ie.length===0||Ee==null){Xt({diff:"reset"});return}if(se.current){if(Ee!=null){const Qe=ie[We.current];if(A&&Qe&&le.findIndex(wt=>D(Qe,wt))!==-1)return;const mt=ie.findIndex(wt=>D(wt,Ee));mt===-1?Xt({diff:"reset"}):Gt({index:mt});return}if(We.current>=ie.length-1){Gt({index:ie.length-1});return}Gt({index:We.current})}},[ie.length,A?!1:le,M,Xt,Gt,Je,Fe,A]),Yt=nn(Te=>{L0(se,Te),Te&&Vt()});S.useEffect(()=>{(yn||Je)&&Vt()},[Vt,yn,Je]);const yr=Te=>{fe||(we(!0),_e(!0),Q&&Q(Te))},Nr=(Te,Ee)=>{fe&&(we(!1),F&&F(Te,Ee))},sn=(Te,Ee,Qe,mt)=>{if(A){if(le.length===Ee.length&&le.every((wt,jr)=>wt===Ee[jr]))return}else if(le===Ee)return;Y&&Y(Te,Ee,Qe,mt),Ze(Ee)},en=S.useRef(!1),Vn=(Te,Ee,Qe="selectOption",mt="options")=>{let wt=Qe,jr=Ee;if(A){jr=Array.isArray(le)?le.slice():[];const $t=jr.findIndex(Fn=>D(Ee,Fn));$t===-1?jr.push(Ee):mt!=="freeSolo"&&(jr.splice($t,1),wt="removeOption")}at(Te,jr,wt),sn(Te,jr,wt,{option:Ee}),!y&&(!Te||!Te.ctrlKey&&!Te.metaKey)&&Nr(Te,wt),(u===!0||u==="touch"&&en.current||u==="mouse"&&!en.current)&&be.current.blur()};function Tt(Te,Ee){if(Te===-1)return-1;let Qe=Te;for(;;){if(Ee==="next"&&Qe===le.length||Ee==="previous"&&Qe===-1)return-1;const mt=ue?"data-item-index":"data-tag-index",wt=De.querySelector(`[${mt}="${Qe}"]`);if(!wt||!wt.hasAttribute("tabindex")||wt.disabled||wt.getAttribute("aria-disabled")==="true")Qe+=Ee==="next"?1:-1;else return Qe}}const Rr=(Te,Ee)=>{if(!A)return;Fe===""&&Nr(Te,"toggleInput");let Qe=Be;Be===-1?Fe===""&&Ee==="previous"&&(Qe=le.length-1):(Qe+=Ee==="next"?1:-1,Qe<0&&(Qe=0),Qe===le.length&&(Qe=-1)),Qe=Tt(Qe,Ee),Ve(Qe),$e(Qe)},Ye=Te=>{ye.current=!0,ft(""),I&&I(Te,"","clear"),sn(Te,A?[]:null,"clear")},ot=Te=>Ee=>{if(Te.onKeyDown&&Te.onKeyDown(Ee),!Ee.defaultMuiPrevented&&(Be!==-1&&!["ArrowLeft","ArrowRight"].includes(Ee.key)&&(Ve(-1),$e(-1)),Ee.which!==229))switch(Ee.key){case"Home":Je&&z&&(Ee.preventDefault(),Xt({diff:"start",direction:"next",reason:"keyboard",event:Ee}));break;case"End":Je&&z&&(Ee.preventDefault(),Xt({diff:"end",direction:"previous",reason:"keyboard",event:Ee}));break;case"PageUp":Ee.preventDefault(),Xt({diff:-M2,direction:"previous",reason:"keyboard",event:Ee}),yr(Ee);break;case"PageDown":Ee.preventDefault(),Xt({diff:M2,direction:"next",reason:"keyboard",event:Ee}),yr(Ee);break;case"ArrowDown":Ee.preventDefault(),Xt({diff:1,direction:"next",reason:"keyboard",event:Ee}),yr(Ee);break;case"ArrowUp":Ee.preventDefault(),Xt({diff:-1,direction:"previous",reason:"keyboard",event:Ee}),yr(Ee);break;case"ArrowLeft":!A&&ue?$e(0):Rr(Ee,"previous");break;case"ArrowRight":!A&&ue?$e(-1):Rr(Ee,"next");break;case"Enter":if(We.current!==-1&&Je){const Qe=ie[We.current],mt=R?R(Qe):!1;if(Ee.preventDefault(),mt)return;Vn(Ee,Qe,"selectOption"),n&&be.current.setSelectionRange(be.current.value.length,be.current.value.length)}else E&&Fe!==""&&Ge===!1&&(A&&Ee.preventDefault(),Vn(Ee,Fe,"createOption","freeSolo"));break;case"Escape":Je?(Ee.preventDefault(),Ee.stopPropagation(),Nr(Ee,"escape")):p&&(Fe!==""||A&&le.length>0||ue)&&(Ee.preventDefault(),Ee.stopPropagation(),Ye(Ee));break;case"Backspace":if(A&&!oe&&Fe===""&&le.length>0){const Qe=Be===-1?le.length-1:Be,mt=le.slice();mt.splice(Qe,1),sn(Ee,mt,"removeOption",{option:le[Qe]})}!A&&ue&&!oe&&(Ze(null),$e(-1));break;case"Delete":if(A&&!oe&&Fe===""&&le.length>0&&Be!==-1){const Qe=Be,mt=le.slice();mt.splice(Qe,1),sn(Ee,mt,"removeOption",{option:le[Qe]})}!A&&ue&&!oe&&(Ze(null),$e(-1));break}},Pt=Te=>{kt(!0),J&&!ye.current&&yr(Te)},_t=Te=>{if(e(se)){be.current.focus();return}kt(!1),Ce.current=!0,ye.current=!1,s&&We.current!==-1&&Je?Vn(Te,ie[We.current],"blur"):s&&E&&Fe!==""?Vn(Te,Fe,"blur","freeSolo"):d&&at(Te,le,"blur"),Nr(Te,"blur")},nr=Te=>{const Ee=Te.target.value;Fe!==Ee&&(ft(Ee),_e(!1),I&&I(Te,Ee,"input")),Ee===""?!b&&!A&&sn(Te,null,"clear"):yr(Te)},vn=Te=>{const Ee=Number(Te.currentTarget.getAttribute("data-option-index"));We.current!==Ee&&Gt({event:Te,index:Ee,reason:"mouse"})},qn=Te=>{Gt({event:Te,index:Number(Te.currentTarget.getAttribute("data-option-index")),reason:"touch"}),en.current=!0},Ki=Te=>{const Ee=Number(Te.currentTarget.getAttribute("data-option-index"));Vn(Te,ie[Ee],"selectOption"),en.current=!1},Pn=Te=>Ee=>{const Qe=le.slice();Qe.splice(Te,1),sn(Ee,Qe,"removeOption",{option:le[Te]})},Sr=Te=>{sn(Te,null,"removeOption",{option:le})},Kt=Te=>{fe?Nr(Te,"toggleInput"):yr(Te)},Er=Te=>{Te.currentTarget.contains(Te.target)&&Te.target.getAttribute("id")!==re&&Te.preventDefault()},Ti=Te=>{Te.currentTarget.contains(Te.target)&&(be.current.focus(),ce&&Ce.current&&be.current.selectionEnd-be.current.selectionStart===0&&be.current.select(),Ce.current=!1)},Jc=Te=>{!v&&(Fe===""||!fe)&&Kt(Te)};let Ts=E&&Fe.length>0;Ts=Ts||(A?le.length>0:le!==null);let Es=ie;return P&&(Es=ie.reduce((Te,Ee,Qe)=>{const mt=P(Ee);return Te.length>0&&Te[Te.length-1].group===mt?Te[Te.length-1].options.push(Ee):Te.push({key:Qe,index:Qe,group:mt,options:[Ee]}),Te},[])),v&&Ue&&_t(),{getRootProps:(Te={})=>({...Te,onKeyDown:ot(Te),onMouseDown:Er,onClick:Ti}),getInputLabelProps:()=>({id:`${re}-label`,htmlFor:re}),getInputProps:()=>({id:re,value:Fe,onBlur:_t,onFocus:Pt,onChange:nr,onMouseDown:Jc,"aria-activedescendant":Je?"":null,"aria-autocomplete":n?"both":"list","aria-controls":He?`${re}-listbox`:void 0,"aria-expanded":He,autoComplete:"off",ref:be,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ye}),getItemProps:({index:Te=0}={})=>({...A&&{key:Te},...ue?{"data-item-index":Te}:{"data-tag-index":Te},tabIndex:-1,...!oe&&{onDelete:A?Pn(Te):Sr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Kt}),getTagProps:({index:Te})=>({key:Te,"data-tag-index":Te,tabIndex:-1,...!oe&&{onDelete:Pn(Te)}}),getListboxProps:()=>({role:"listbox",id:`${re}-listbox`,"aria-labelledby":`${re}-label`,ref:Yt,onMouseDown:Te=>{Te.preventDefault()}}),getOptionProps:({index:Te,option:Ee})=>{const Qe=(A?le:[le]).some(wt=>wt!=null&&D(Ee,wt)),mt=R?R(Ee):!1;return{key:(j==null?void 0:j(Ee))??Z(Ee),tabIndex:-1,role:"option",id:`${re}-option-${Te}`,onMouseMove:vn,onClick:Ki,onTouchStart:qn,"data-option-index":Te,"aria-disabled":mt,"aria-selected":Qe}},id:re,inputValue:Fe,value:le,dirty:Ts,expanded:Je&&De,popupOpen:Je,focused:Ue||Be!==-1,anchorEl:De,setAnchorEl:ze,focusedItem:Be,focusedTag:Be,groupedOptions:Es}}var Qn="top",Fi="bottom",Wi="right",Kn="left",Jv="auto",op=[Qn,Fi,Wi,Kn],Ac="start",Ld="end",F_="clippingParents",C4="viewport",Yu="popper",W_="reference",k2=op.reduce(function(t,e){return t.concat([e+"-"+Ac,e+"-"+Ld])},[]),T4=[].concat(op,[Jv]).reduce(function(t,e){return t.concat([e,e+"-"+Ac,e+"-"+Ld])},[]),G_="beforeRead",X_="read",Y_="afterRead",Q_="beforeMain",K_="main",Z_="afterMain",J_="beforeWrite",e8="write",t8="afterWrite",r8=[G_,X_,Y_,Q_,K_,Z_,J_,e8,t8];function Do(t){return t?(t.nodeName||"").toLowerCase():null}function Si(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ll(t){var e=Si(t).Element;return t instanceof e||t instanceof Element}function qi(t){var e=Si(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function eb(t){if(typeof ShadowRoot>"u")return!1;var e=Si(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function n8(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},s=e.elements[r];!qi(s)||!Do(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(u){var d=o[u];d===!1?s.removeAttribute(u):s.setAttribute(u,d===!0?"":d)}))})}function i8(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],s=e.attributes[n]||{},u=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),d=u.reduce(function(p,h){return p[h]="",p},{});!qi(o)||!Do(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(p){o.removeAttribute(p)}))})}}const o8={name:"applyStyles",enabled:!0,phase:"write",fn:n8,effect:i8,requires:["computeStyles"]};function Bo(t){return t.split("-")[0]}var al=Math.max,wh=Math.min,Mc=Math.round;function D0(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function E4(){return!/^((?!chrome|android).)*safari/i.test(D0())}function Rc(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,s=1;e&&qi(t)&&(o=t.offsetWidth>0&&Mc(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Mc(n.height)/t.offsetHeight||1);var u=ll(t)?Si(t):window,d=u.visualViewport,p=!E4()&&r,h=(n.left+(p&&d?d.offsetLeft:0))/o,m=(n.top+(p&&d?d.offsetTop:0))/s,b=n.width/o,y=n.height/s;return{width:b,height:y,top:m,right:h+b,bottom:m+y,left:h,x:h,y:m}}function tb(t){var e=Rc(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function j4(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&eb(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sa(t){return Si(t).getComputedStyle(t)}function a8(t){return["table","td","th"].indexOf(Do(t))>=0}function bs(t){return((ll(t)?t.ownerDocument:t.document)||window.document).documentElement}function sm(t){return Do(t)==="html"?t:t.assignedSlot||t.parentNode||(eb(t)?t.host:null)||bs(t)}function O2(t){return!qi(t)||Sa(t).position==="fixed"?null:t.offsetParent}function s8(t){var e=/firefox/i.test(D0()),r=/Trident/i.test(D0());if(r&&qi(t)){var n=Sa(t);if(n.position==="fixed")return null}var o=sm(t);for(eb(o)&&(o=o.host);qi(o)&&["html","body"].indexOf(Do(o))<0;){var s=Sa(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ap(t){for(var e=Si(t),r=O2(t);r&&a8(r)&&Sa(r).position==="static";)r=O2(r);return r&&(Do(r)==="html"||Do(r)==="body"&&Sa(r).position==="static")?e:r||s8(t)||e}function rb(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function md(t,e,r){return al(t,wh(e,r))}function l8(t,e,r){var n=md(t,e,r);return n>r?r:n}function A4(){return{top:0,right:0,bottom:0,left:0}}function M4(t){return Object.assign({},A4(),t)}function R4(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var c8=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,M4(typeof e!="number"?e:R4(e,op))};function u8(t){var e,r=t.state,n=t.name,o=t.options,s=r.elements.arrow,u=r.modifiersData.popperOffsets,d=Bo(r.placement),p=rb(d),h=[Kn,Wi].indexOf(d)>=0,m=h?"height":"width";if(!(!s||!u)){var b=c8(o.padding,r),y=tb(s),v=p==="y"?Qn:Kn,w=p==="y"?Fi:Wi,C=r.rects.reference[m]+r.rects.reference[p]-u[p]-r.rects.popper[m],T=u[p]-r.rects.reference[p],M=ap(s),E=M?p==="y"?M.clientHeight||0:M.clientWidth||0:0,R=C/2-T/2,j=b[v],k=E-y[m]-b[w],P=E/2-y[m]/2+R,z=md(j,P,k),_=p;r.modifiersData[n]=(e={},e[_]=z,e.centerOffset=z-P,e)}}function d8(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||j4(e.elements.popper,o)&&(e.elements.arrow=o))}const p8={name:"arrow",enabled:!0,phase:"main",fn:u8,effect:d8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kc(t){return t.split("-")[1]}var f8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h8(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Mc(r*o)/o||0,y:Mc(n*o)/o||0}}function P2(t){var e,r=t.popper,n=t.popperRect,o=t.placement,s=t.variation,u=t.offsets,d=t.position,p=t.gpuAcceleration,h=t.adaptive,m=t.roundOffsets,b=t.isFixed,y=u.x,v=y===void 0?0:y,w=u.y,C=w===void 0?0:w,T=typeof m=="function"?m({x:v,y:C}):{x:v,y:C};v=T.x,C=T.y;var M=u.hasOwnProperty("x"),E=u.hasOwnProperty("y"),R=Kn,j=Qn,k=window;if(h){var P=ap(r),z="clientHeight",_="clientWidth";if(P===Si(r)&&(P=bs(r),Sa(P).position!=="static"&&d==="absolute"&&(z="scrollHeight",_="scrollWidth")),P=P,o===Qn||(o===Kn||o===Wi)&&s===Ld){j=Fi;var B=b&&P===k&&k.visualViewport?k.visualViewport.height:P[z];C-=B-n.height,C*=p?1:-1}if(o===Kn||(o===Qn||o===Fi)&&s===Ld){R=Wi;var G=b&&P===k&&k.visualViewport?k.visualViewport.width:P[_];v-=G-n.width,v*=p?1:-1}}var D=Object.assign({position:d},h&&f8),A=m===!0?h8({x:v,y:C},Si(r)):{x:v,y:C};if(v=A.x,C=A.y,p){var Y;return Object.assign({},D,(Y={},Y[j]=E?"0":"",Y[R]=M?"0":"",Y.transform=(k.devicePixelRatio||1)<=1?"translate("+v+"px, "+C+"px)":"translate3d("+v+"px, "+C+"px, 0)",Y))}return Object.assign({},D,(e={},e[j]=E?C+"px":"",e[R]=M?v+"px":"",e.transform="",e))}function m8(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,u=s===void 0?!0:s,d=r.roundOffsets,p=d===void 0?!0:d,h={placement:Bo(e.placement),variation:kc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,P2(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:u,roundOffsets:p})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,P2(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const g8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m8,data:{}};var Mf={passive:!0};function y8(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,s=o===void 0?!0:o,u=n.resize,d=u===void 0?!0:u,p=Si(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&h.forEach(function(m){m.addEventListener("scroll",r.update,Mf)}),d&&p.addEventListener("resize",r.update,Mf),function(){s&&h.forEach(function(m){m.removeEventListener("scroll",r.update,Mf)}),d&&p.removeEventListener("resize",r.update,Mf)}}const v8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y8,data:{}};var b8={left:"right",right:"left",bottom:"top",top:"bottom"};function oh(t){return t.replace(/left|right|bottom|top/g,function(e){return b8[e]})}var x8={start:"end",end:"start"};function _2(t){return t.replace(/start|end/g,function(e){return x8[e]})}function nb(t){var e=Si(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ib(t){return Rc(bs(t)).left+nb(t).scrollLeft}function S8(t,e){var r=Si(t),n=bs(t),o=r.visualViewport,s=n.clientWidth,u=n.clientHeight,d=0,p=0;if(o){s=o.width,u=o.height;var h=E4();(h||!h&&e==="fixed")&&(d=o.offsetLeft,p=o.offsetTop)}return{width:s,height:u,x:d+ib(t),y:p}}function w8(t){var e,r=bs(t),n=nb(t),o=(e=t.ownerDocument)==null?void 0:e.body,s=al(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=al(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-n.scrollLeft+ib(t),p=-n.scrollTop;return Sa(o||r).direction==="rtl"&&(d+=al(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:u,x:d,y:p}}function ob(t){var e=Sa(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function k4(t){return["html","body","#document"].indexOf(Do(t))>=0?t.ownerDocument.body:qi(t)&&ob(t)?t:k4(sm(t))}function gd(t,e){var r;e===void 0&&(e=[]);var n=k4(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Si(n),u=o?[s].concat(s.visualViewport||[],ob(n)?n:[]):n,d=e.concat(u);return o?d:d.concat(gd(sm(u)))}function H0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function C8(t,e){var r=Rc(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function L2(t,e,r){return e===C4?H0(S8(t,r)):ll(e)?C8(e,r):H0(w8(bs(t)))}function T8(t){var e=gd(sm(t)),r=["absolute","fixed"].indexOf(Sa(t).position)>=0,n=r&&qi(t)?ap(t):t;return ll(n)?e.filter(function(o){return ll(o)&&j4(o,n)&&Do(o)!=="body"}):[]}function E8(t,e,r,n){var o=e==="clippingParents"?T8(t):[].concat(e),s=[].concat(o,[r]),u=s[0],d=s.reduce(function(p,h){var m=L2(t,h,n);return p.top=al(m.top,p.top),p.right=wh(m.right,p.right),p.bottom=wh(m.bottom,p.bottom),p.left=al(m.left,p.left),p},L2(t,u,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function O4(t){var e=t.reference,r=t.element,n=t.placement,o=n?Bo(n):null,s=n?kc(n):null,u=e.x+e.width/2-r.width/2,d=e.y+e.height/2-r.height/2,p;switch(o){case Qn:p={x:u,y:e.y-r.height};break;case Fi:p={x:u,y:e.y+e.height};break;case Wi:p={x:e.x+e.width,y:d};break;case Kn:p={x:e.x-r.width,y:d};break;default:p={x:e.x,y:e.y}}var h=o?rb(o):null;if(h!=null){var m=h==="y"?"height":"width";switch(s){case Ac:p[h]=p[h]-(e[m]/2-r[m]/2);break;case Ld:p[h]=p[h]+(e[m]/2-r[m]/2);break}}return p}function Nd(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,s=r.strategy,u=s===void 0?t.strategy:s,d=r.boundary,p=d===void 0?F_:d,h=r.rootBoundary,m=h===void 0?C4:h,b=r.elementContext,y=b===void 0?Yu:b,v=r.altBoundary,w=v===void 0?!1:v,C=r.padding,T=C===void 0?0:C,M=M4(typeof T!="number"?T:R4(T,op)),E=y===Yu?W_:Yu,R=t.rects.popper,j=t.elements[w?E:y],k=E8(ll(j)?j:j.contextElement||bs(t.elements.popper),p,m,u),P=Rc(t.elements.reference),z=O4({reference:P,element:R,placement:o}),_=H0(Object.assign({},R,z)),B=y===Yu?_:P,G={top:k.top-B.top+M.top,bottom:B.bottom-k.bottom+M.bottom,left:k.left-B.left+M.left,right:B.right-k.right+M.right},D=t.modifiersData.offset;if(y===Yu&&D){var A=D[o];Object.keys(G).forEach(function(Y){var F=[Wi,Fi].indexOf(Y)>=0?1:-1,$=[Qn,Fi].indexOf(Y)>=0?"y":"x";G[Y]+=A[$]*F})}return G}function j8(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,s=r.rootBoundary,u=r.padding,d=r.flipVariations,p=r.allowedAutoPlacements,h=p===void 0?T4:p,m=kc(n),b=m?d?k2:k2.filter(function(w){return kc(w)===m}):op,y=b.filter(function(w){return h.indexOf(w)>=0});y.length===0&&(y=b);var v=y.reduce(function(w,C){return w[C]=Nd(t,{placement:C,boundary:o,rootBoundary:s,padding:u})[Bo(C)],w},{});return Object.keys(v).sort(function(w,C){return v[w]-v[C]})}function A8(t){if(Bo(t)===Jv)return[];var e=oh(t);return[_2(t),e,_2(e)]}function M8(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,u=r.altAxis,d=u===void 0?!0:u,p=r.fallbackPlacements,h=r.padding,m=r.boundary,b=r.rootBoundary,y=r.altBoundary,v=r.flipVariations,w=v===void 0?!0:v,C=r.allowedAutoPlacements,T=e.options.placement,M=Bo(T),E=M===T,R=p||(E||!w?[oh(T)]:A8(T)),j=[T].concat(R).reduce(function(K,re){return K.concat(Bo(re)===Jv?j8(e,{placement:re,boundary:m,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:C}):re)},[]),k=e.rects.reference,P=e.rects.popper,z=new Map,_=!0,B=j[0],G=0;G<j.length;G++){var D=j[G],A=Bo(D),Y=kc(D)===Ac,F=[Qn,Fi].indexOf(A)>=0,$=F?"width":"height",I=Nd(e,{placement:D,boundary:m,rootBoundary:b,altBoundary:y,padding:h}),Q=F?Y?Wi:Kn:Y?Fi:Qn;k[$]>P[$]&&(Q=oh(Q));var ee=oh(Q),J=[];if(s&&J.push(I[A]<=0),d&&J.push(I[Q]<=0,I[ee]<=0),J.every(function(K){return K})){B=D,_=!1;break}z.set(D,J)}if(_)for(var L=w?3:1,oe=function(re){var Z=j.find(function(ye){var Ce=z.get(ye);if(Ce)return Ce.slice(0,re).every(function(be){return be})});if(Z)return B=Z,"break"},ue=L;ue>0;ue--){var ce=oe(ue);if(ce==="break")break}e.placement!==B&&(e.modifiersData[n]._skip=!0,e.placement=B,e.reset=!0)}}const R8={name:"flip",enabled:!0,phase:"main",fn:M8,requiresIfExists:["offset"],data:{_skip:!1}};function N2(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function I2(t){return[Qn,Wi,Fi,Kn].some(function(e){return t[e]>=0})}function k8(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,u=Nd(e,{elementContext:"reference"}),d=Nd(e,{altBoundary:!0}),p=N2(u,n),h=N2(d,o,s),m=I2(p),b=I2(h);e.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:h,isReferenceHidden:m,hasPopperEscaped:b},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":b})}const O8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:k8};function P8(t,e,r){var n=Bo(t),o=[Kn,Qn].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,u=s[0],d=s[1];return u=u||0,d=(d||0)*o,[Kn,Wi].indexOf(n)>=0?{x:d,y:u}:{x:u,y:d}}function _8(t){var e=t.state,r=t.options,n=t.name,o=r.offset,s=o===void 0?[0,0]:o,u=T4.reduce(function(m,b){return m[b]=P8(b,e.rects,s),m},{}),d=u[e.placement],p=d.x,h=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=p,e.modifiersData.popperOffsets.y+=h),e.modifiersData[n]=u}const L8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_8};function N8(t){var e=t.state,r=t.name;e.modifiersData[r]=O4({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const I8={name:"popperOffsets",enabled:!0,phase:"read",fn:N8,data:{}};function B8(t){return t==="x"?"y":"x"}function z8(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,s=o===void 0?!0:o,u=r.altAxis,d=u===void 0?!1:u,p=r.boundary,h=r.rootBoundary,m=r.altBoundary,b=r.padding,y=r.tether,v=y===void 0?!0:y,w=r.tetherOffset,C=w===void 0?0:w,T=Nd(e,{boundary:p,rootBoundary:h,padding:b,altBoundary:m}),M=Bo(e.placement),E=kc(e.placement),R=!E,j=rb(M),k=B8(j),P=e.modifiersData.popperOffsets,z=e.rects.reference,_=e.rects.popper,B=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,G=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(P){if(s){var Y,F=j==="y"?Qn:Kn,$=j==="y"?Fi:Wi,I=j==="y"?"height":"width",Q=P[j],ee=Q+T[F],J=Q-T[$],L=v?-_[I]/2:0,oe=E===Ac?z[I]:_[I],ue=E===Ac?-_[I]:-z[I],ce=e.elements.arrow,K=v&&ce?tb(ce):{width:0,height:0},re=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:A4(),Z=re[F],ye=re[$],Ce=md(0,z[I],K[I]),be=R?z[I]/2-L-Ce-Z-G.mainAxis:oe-Ce-Z-G.mainAxis,se=R?-z[I]/2+L+Ce+ye+G.mainAxis:ue+Ce+ye+G.mainAxis,De=e.elements.arrow&&ap(e.elements.arrow),ze=De?j==="y"?De.clientTop||0:De.clientLeft||0:0,Be=(Y=D==null?void 0:D[j])!=null?Y:0,Ve=Q+be-Be-ze,Ie=Q+se-Be,We=md(v?wh(ee,Ve):ee,Q,v?al(J,Ie):J);P[j]=We,A[j]=We-Q}if(d){var ct,le=j==="x"?Qn:Kn,Ze=j==="x"?Fi:Wi,Fe=P[k],ft=k==="y"?"height":"width",Ue=Fe+T[le],kt=Fe-T[Ze],at=[Qn,Kn].indexOf(M)!==-1,fe=(ct=D==null?void 0:D[k])!=null?ct:0,we=at?Ue:Fe-z[ft]-_[ft]-fe+G.altAxis,ke=at?Fe+z[ft]+_[ft]-fe-G.altAxis:kt,_e=v&&at?l8(we,Fe,ke):md(v?we:Ue,Fe,v?ke:kt);P[k]=_e,A[k]=_e-Fe}e.modifiersData[n]=A}}const $8={name:"preventOverflow",enabled:!0,phase:"main",fn:z8,requiresIfExists:["offset"]};function D8(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function H8(t){return t===Si(t)||!qi(t)?nb(t):D8(t)}function U8(t){var e=t.getBoundingClientRect(),r=Mc(e.width)/t.offsetWidth||1,n=Mc(e.height)/t.offsetHeight||1;return r!==1||n!==1}function V8(t,e,r){r===void 0&&(r=!1);var n=qi(e),o=qi(e)&&U8(e),s=bs(e),u=Rc(t,o,r),d={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(n||!n&&!r)&&((Do(e)!=="body"||ob(s))&&(d=H8(e)),qi(e)?(p=Rc(e,!0),p.x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=ib(s))),{x:u.left+d.scrollLeft-p.x,y:u.top+d.scrollTop-p.y,width:u.width,height:u.height}}function q8(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function o(s){r.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(d){if(!r.has(d)){var p=e.get(d);p&&o(p)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||o(s)}),n}function F8(t){var e=q8(t);return r8.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function W8(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function G8(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var B2={placement:"bottom",modifiers:[],strategy:"absolute"};function z2(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function X8(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,s=o===void 0?B2:o;return function(d,p,h){h===void 0&&(h=s);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},B2,s),modifiersData:{},elements:{reference:d,popper:p},attributes:{},styles:{}},b=[],y=!1,v={state:m,setOptions:function(M){var E=typeof M=="function"?M(m.options):M;C(),m.options=Object.assign({},s,m.options,E),m.scrollParents={reference:ll(d)?gd(d):d.contextElement?gd(d.contextElement):[],popper:gd(p)};var R=F8(G8([].concat(n,m.options.modifiers)));return m.orderedModifiers=R.filter(function(j){return j.enabled}),w(),v.update()},forceUpdate:function(){if(!y){var M=m.elements,E=M.reference,R=M.popper;if(z2(E,R)){m.rects={reference:V8(E,ap(R),m.options.strategy==="fixed"),popper:tb(R)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(G){return m.modifiersData[G.name]=Object.assign({},G.data)});for(var j=0;j<m.orderedModifiers.length;j++){if(m.reset===!0){m.reset=!1,j=-1;continue}var k=m.orderedModifiers[j],P=k.fn,z=k.options,_=z===void 0?{}:z,B=k.name;typeof P=="function"&&(m=P({state:m,options:_,name:B,instance:v})||m)}}}},update:W8(function(){return new Promise(function(T){v.forceUpdate(),T(m)})}),destroy:function(){C(),y=!0}};if(!z2(d,p))return v;v.setOptions(h).then(function(T){!y&&h.onFirstUpdate&&h.onFirstUpdate(T)});function w(){m.orderedModifiers.forEach(function(T){var M=T.name,E=T.options,R=E===void 0?{}:E,j=T.effect;if(typeof j=="function"){var k=j({state:m,name:M,instance:v,options:R}),P=function(){};b.push(k||P)}})}function C(){b.forEach(function(T){return T()}),b=[]}return v}}var Y8=[v8,I8,g8,o8,L8,R8,$8,p8,O8],Q8=X8({defaultModifiers:Y8});function Oc(t){var b;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...s}=t,u=o?{}:x4(r,n),{props:d,internalRef:p}=S4({...s,externalSlotProps:u}),h=qr(p,u==null?void 0:u.ref,(b=t.additionalProps)==null?void 0:b.ref);return b4(e,{...d,ref:h},n)}function bl(t){var e;return parseInt(S.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function K8(t){return typeof t=="function"?t():t}const P4=S.forwardRef(function(e,r){const{children:n,container:o,disablePortal:s=!1}=e,[u,d]=S.useState(null),p=qr(S.isValidElement(n)?bl(n):null,r);if(ei(()=>{s||d(K8(o)||document.body)},[o,s]),ei(()=>{if(u&&!s)return L0(r,u),()=>{L0(r,null)}},[r,u,s]),s){if(S.isValidElement(n)){const h={ref:p};return S.cloneElement(n,h)}return n}return u&&fE.createPortal(n,u)});function Z8(t){return tt("MuiPopper",t)}nt("MuiPopper",["root"]);function J8(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function U0(t){return typeof t=="function"?t():t}function e9(t){return t.nodeType!==void 0}const t9=t=>{const{classes:e}=t;return rt({root:["root"]},Z8,e)},r9={},n9=S.forwardRef(function(e,r){const{anchorEl:n,children:o,direction:s,disablePortal:u,modifiers:d,open:p,placement:h,popperOptions:m,popperRef:b,slotProps:y={},slots:v={},TransitionProps:w,ownerState:C,...T}=e,M=S.useRef(null),E=qr(M,r),R=S.useRef(null),j=qr(R,b),k=S.useRef(j);ei(()=>{k.current=j},[j]),S.useImperativeHandle(b,()=>R.current,[]);const P=J8(h,s),[z,_]=S.useState(P),[B,G]=S.useState(U0(n));S.useEffect(()=>{R.current&&R.current.forceUpdate()}),S.useEffect(()=>{n&&G(U0(n))},[n]),ei(()=>{if(!B||!p)return;const $=ee=>{_(ee.placement)};let I=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ee})=>{$(ee)}}];d!=null&&(I=I.concat(d)),m&&m.modifiers!=null&&(I=I.concat(m.modifiers));const Q=Q8(B,M.current,{placement:P,...m,modifiers:I});return k.current(Q),()=>{Q.destroy(),k.current(null)}},[B,u,d,p,m,P]);const D={placement:z};w!==null&&(D.TransitionProps=w);const A=t9(e),Y=v.root??"div",F=Oc({elementType:Y,externalSlotProps:y.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:E},ownerState:e,className:A.root});return c.jsx(Y,{...F,children:typeof o=="function"?o(D):o})}),i9=S.forwardRef(function(e,r){const{anchorEl:n,children:o,container:s,direction:u="ltr",disablePortal:d=!1,keepMounted:p=!1,modifiers:h,open:m,placement:b="bottom",popperOptions:y=r9,popperRef:v,style:w,transition:C=!1,slotProps:T={},slots:M={},...E}=e,[R,j]=S.useState(!0),k=()=>{j(!1)},P=()=>{j(!0)};if(!p&&!m&&(!C||R))return null;let z;if(s)z=s;else if(n){const G=U0(n);z=G&&e9(G)?Cn(G).body:Cn(null).body}const _=!m&&p&&(!C||R)?"none":void 0,B=C?{in:m,onEnter:k,onExited:P}:void 0;return c.jsx(P4,{disablePortal:d,container:z,children:c.jsx(n9,{anchorEl:n,direction:u,disablePortal:d,modifiers:h,ref:r,open:C?!R:m,placement:b,popperOptions:y,popperRef:v,slotProps:T,slots:M,...E,style:{position:"fixed",top:0,left:0,display:_,...w},TransitionProps:B,children:o})})}),o9=xe(i9,{name:"MuiPopper",slot:"Root"})({}),lm=S.forwardRef(function(e,r){const n=vs(),o=it({props:e,name:"MuiPopper"}),{anchorEl:s,component:u,components:d,componentsProps:p,container:h,disablePortal:m,keepMounted:b,modifiers:y,open:v,placement:w,popperOptions:C,popperRef:T,transition:M,slots:E,slotProps:R,...j}=o,k=(E==null?void 0:E.root)??(d==null?void 0:d.Root),P={anchorEl:s,container:h,disablePortal:m,keepMounted:b,modifiers:y,open:v,placement:w,popperOptions:C,popperRef:T,transition:M,...j};return c.jsx(o9,{as:u,direction:n?"rtl":"ltr",slots:{root:k},slotProps:R??p,...P,ref:r})});function a9(t){return tt("MuiListSubheader",t)}nt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const s9=t=>{const{classes:e,color:r,disableGutters:n,inset:o,disableSticky:s}=t,u={root:["root",r!=="default"&&`color${ve(r)}`,!n&&"gutters",o&&"inset",!s&&"sticky"]};return rt(u,a9,e)},l9=xe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color!=="default"&&e[`color${ve(r.color)}`],!r.disableGutters&&e.gutters,r.inset&&e.inset,!r.disableSticky&&e.sticky]}})(Xe(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),V0=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiListSubheader"}),{className:o,color:s="default",component:u="li",disableGutters:d=!1,disableSticky:p=!1,inset:h=!1,...m}=n,b={...n,color:s,component:u,disableGutters:d,disableSticky:p,inset:h},y=s9(b);return c.jsx(l9,{as:u,className:Le(y.root,o),ref:r,ownerState:b,...m})});V0&&(V0.muiSkipListHighlight=!0);const c9=Ae(c.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function u9(t){return tt("MuiChip",t)}const Ft=nt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),d9=t=>{const{classes:e,disabled:r,size:n,color:o,iconColor:s,onDelete:u,clickable:d,variant:p}=t,h={root:["root",p,r&&"disabled",`size${ve(n)}`,`color${ve(o)}`,d&&"clickable",d&&`clickableColor${ve(o)}`,u&&"deletable",u&&`deletableColor${ve(o)}`,`${p}${ve(o)}`],label:["label",`label${ve(n)}`],avatar:["avatar",`avatar${ve(n)}`,`avatarColor${ve(o)}`],icon:["icon",`icon${ve(n)}`,`iconColor${ve(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ve(n)}`,`deleteIconColor${ve(o)}`,`deleteIcon${ve(p)}Color${ve(o)}`]};return rt(h,u9,e)},p9=xe("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{color:n,iconColor:o,clickable:s,onDelete:u,size:d,variant:p}=r;return[{[`& .${Ft.avatar}`]:e.avatar},{[`& .${Ft.avatar}`]:e[`avatar${ve(d)}`]},{[`& .${Ft.avatar}`]:e[`avatarColor${ve(n)}`]},{[`& .${Ft.icon}`]:e.icon},{[`& .${Ft.icon}`]:e[`icon${ve(d)}`]},{[`& .${Ft.icon}`]:e[`iconColor${ve(o)}`]},{[`& .${Ft.deleteIcon}`]:e.deleteIcon},{[`& .${Ft.deleteIcon}`]:e[`deleteIcon${ve(d)}`]},{[`& .${Ft.deleteIcon}`]:e[`deleteIconColor${ve(n)}`]},{[`& .${Ft.deleteIcon}`]:e[`deleteIcon${ve(p)}Color${ve(n)}`]},e.root,e[`size${ve(d)}`],e[`color${ve(n)}`],s&&e.clickable,s&&n!=="default"&&e[`clickableColor${ve(n)})`],u&&e.deletable,u&&n!=="default"&&e[`deletableColor${ve(n)}`],e[p],e[`${p}${ve(n)}`]]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ft.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ft.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${Ft.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Ft.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Ft.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Ft.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ft.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ft.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ft.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(cr(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText,[`& .${Ft.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ft.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ft.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ft.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ft.focusVisible}`]:{background:(t.vars||t).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${Ft.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ft.focusVisible}`]:{backgroundColor:(t.vars||t).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Ft.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Ft.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Ft.avatar}`]:{marginLeft:4},[`& .${Ft.avatarSmall}`]:{marginLeft:2},[`& .${Ft.icon}`]:{marginLeft:4},[`& .${Ft.iconSmall}`]:{marginLeft:2},[`& .${Ft.deleteIcon}`]:{marginRight:5},[`& .${Ft.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(t.vars||t).palette[r].main,border:`1px solid ${t.alpha((t.vars||t).palette[r].main,.7)}`,[`&.${Ft.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${Ft.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.focusOpacity)},[`& .${Ft.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[r].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].main}}}}))]}})),f9=xe("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:r}=t,{size:n}=r;return[e.label,e[`label${ve(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function $2(t){return t.key==="Backspace"||t.key==="Delete"}const rr=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiChip"}),{avatar:o,className:s,clickable:u,color:d="default",component:p,deleteIcon:h,disabled:m=!1,icon:b,label:y,onClick:v,onDelete:w,onKeyDown:C,onKeyUp:T,size:M="medium",variant:E="filled",tabIndex:R,skipFocusWhenDisabled:j=!1,slots:k={},slotProps:P={},...z}=n,_=S.useRef(null),B=qr(_,r),G=Z=>{Z.stopPropagation(),w&&w(Z)},D=Z=>{Z.currentTarget===Z.target&&$2(Z)&&Z.preventDefault(),C&&C(Z)},A=Z=>{Z.currentTarget===Z.target&&w&&$2(Z)&&w(Z),T&&T(Z)},Y=u!==!1&&v?!0:u,F=Y||w?po:p||"div",$={...n,component:F,disabled:m,size:M,color:d,iconColor:S.isValidElement(b)&&b.props.color||d,onDelete:!!w,clickable:Y,variant:E},I=d9($),Q=F===po?{component:p||"div",focusVisibleClassName:I.focusVisible,...w&&{disableRipple:!0}}:{};let ee=null;w&&(ee=h&&S.isValidElement(h)?S.cloneElement(h,{className:Le(h.props.className,I.deleteIcon),onClick:G}):c.jsx(c9,{className:I.deleteIcon,onClick:G}));let J=null;o&&S.isValidElement(o)&&(J=S.cloneElement(o,{className:Le(I.avatar,o.props.className)}));let L=null;b&&S.isValidElement(b)&&(L=S.cloneElement(b,{className:Le(I.icon,b.props.className)}));const oe={slots:k,slotProps:P},[ue,ce]=Ke("root",{elementType:p9,externalForwardedProps:{...oe,...z},ownerState:$,shouldForwardComponentProp:!0,ref:B,className:Le(I.root,s),additionalProps:{disabled:Y&&m?!0:void 0,tabIndex:j&&m?-1:R,...Q},getSlotProps:Z=>({...Z,onClick:ye=>{var Ce;(Ce=Z.onClick)==null||Ce.call(Z,ye),v==null||v(ye)},onKeyDown:ye=>{var Ce;(Ce=Z.onKeyDown)==null||Ce.call(Z,ye),D(ye)},onKeyUp:ye=>{var Ce;(Ce=Z.onKeyUp)==null||Ce.call(Z,ye),A(ye)}})}),[K,re]=Ke("label",{elementType:f9,externalForwardedProps:oe,ownerState:$,className:I.label});return c.jsxs(ue,{as:F,...ce,children:[J||L,c.jsx(K,{...re,children:y}),ee]})});function Rf(t){return parseInt(t,10)||0}const h9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function m9(t){for(const e in t)return!1;return!0}function D2(t){return m9(t)||t.outerHeightStyle===0&&!t.overflowing}const g9=S.forwardRef(function(e,r){const{onChange:n,maxRows:o,minRows:s=1,style:u,value:d,...p}=e,{current:h}=S.useRef(d!=null),m=S.useRef(null),b=qr(r,m),y=S.useRef(null),v=S.useRef(null),w=S.useCallback(()=>{const R=m.current,j=v.current;if(!R||!j)return;const P=uo(R).getComputedStyle(R);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};j.style.width=P.width,j.value=R.value||e.placeholder||"x",j.value.slice(-1)===`
|
|
227
|
-
`&&(j.value+=" ");const z=P.boxSizing,_=Rf(P.paddingBottom)+Rf(P.paddingTop),B=Rf(P.borderBottomWidth)+Rf(P.borderTopWidth),G=j.scrollHeight;j.value="x";const D=j.scrollHeight;let A=G;s&&(A=Math.max(Number(s)*D,A)),o&&(A=Math.min(Number(o)*D,A)),A=Math.max(A,D);const Y=A+(z==="border-box"?_+B:0),F=Math.abs(A-G)<=1;return{outerHeightStyle:Y,overflowing:F}},[o,s,e.placeholder]),C=nn(()=>{const R=m.current,j=w();if(!R||!j||D2(j))return!1;const k=j.outerHeightStyle;return y.current!=null&&y.current!==k}),T=S.useCallback(()=>{const R=m.current,j=w();if(!R||!j||D2(j))return;const k=j.outerHeightStyle;y.current!==k&&(y.current=k,R.style.height=`${k}px`),R.style.overflow=j.overflowing?"hidden":""},[w]),M=S.useRef(-1);ei(()=>{const R=om(T),j=m==null?void 0:m.current;if(!j)return;const k=uo(j);k.addEventListener("resize",R);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{C()&&(P.unobserve(j),cancelAnimationFrame(M.current),T(),M.current=requestAnimationFrame(()=>{P.observe(j)}))}),P.observe(j)),()=>{R.clear(),cancelAnimationFrame(M.current),k.removeEventListener("resize",R),P&&P.disconnect()}},[w,T,C]),ei(()=>{T()});const E=R=>{h||T();const j=R.target,k=j.value.length,P=j.value.endsWith(`
|
|
228
|
-
`),z=j.selectionStart===k;P&&z&&j.setSelectionRange(k,k),n&&n(R)};return c.jsxs(S.Fragment,{children:[c.jsx("textarea",{value:d,onChange:E,ref:b,rows:s,style:u,...p}),c.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:{...h9.shadow,...u,paddingTop:0,paddingBottom:0}})]})});function xl({props:t,states:e,muiFormControl:r}){return e.reduce((n,o)=>(n[o]=t[o],r&&typeof t[o]>"u"&&(n[o]=r[o]),n),{})}const cm=S.createContext(void 0);function Ma(){return S.useContext(cm)}function H2(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Ch(t,e=!1){return t&&(H2(t.value)&&t.value!==""||e&&H2(t.defaultValue)&&t.defaultValue!=="")}function y9(t){return t.startAdornment}function v9(t){return tt("MuiInputBase",t)}const gi=nt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var U2;const um=(t,e)=>{const{ownerState:r}=t;return[e.root,r.formControl&&e.formControl,r.startAdornment&&e.adornedStart,r.endAdornment&&e.adornedEnd,r.error&&e.error,r.size==="small"&&e.sizeSmall,r.multiline&&e.multiline,r.color&&e[`color${ve(r.color)}`],r.fullWidth&&e.fullWidth,r.hiddenLabel&&e.hiddenLabel]},dm=(t,e)=>{const{ownerState:r}=t;return[e.input,r.size==="small"&&e.inputSizeSmall,r.multiline&&e.inputMultiline,r.type==="search"&&e.inputTypeSearch,r.startAdornment&&e.inputAdornedStart,r.endAdornment&&e.inputAdornedEnd,r.hiddenLabel&&e.inputHiddenLabel]},b9=t=>{const{classes:e,color:r,disabled:n,error:o,endAdornment:s,focused:u,formControl:d,fullWidth:p,hiddenLabel:h,multiline:m,readOnly:b,size:y,startAdornment:v,type:w}=t,C={root:["root",`color${ve(r)}`,n&&"disabled",o&&"error",p&&"fullWidth",u&&"focused",d&&"formControl",y&&y!=="medium"&&`size${ve(y)}`,m&&"multiline",v&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",b&&"readOnly"],input:["input",n&&"disabled",w==="search"&&"inputTypeSearch",m&&"inputMultiline",y==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",v&&"inputAdornedStart",s&&"inputAdornedEnd",b&&"readOnly"]};return rt(C,v9,e)},pm=xe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:um})(Xe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${gi.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:r})=>e.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),fm=xe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dm})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},n={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gi.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${gi.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),V2=AP({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),hm=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:u,className:d,color:p,components:h={},componentsProps:m={},defaultValue:b,disabled:y,disableInjectingGlobalStyles:v,endAdornment:w,error:C,fullWidth:T=!1,id:M,inputComponent:E="input",inputProps:R={},inputRef:j,margin:k,maxRows:P,minRows:z,multiline:_=!1,name:B,onBlur:G,onChange:D,onClick:A,onFocus:Y,onKeyDown:F,onKeyUp:$,placeholder:I,readOnly:Q,renderSuffix:ee,rows:J,size:L,slotProps:oe={},slots:ue={},startAdornment:ce,type:K="text",value:re,...Z}=n,ye=R.value!=null?R.value:re,{current:Ce}=S.useRef(ye!=null),be=S.useRef(),se=S.useCallback(ie=>{},[]),De=qr(be,j,R.ref,se),[ze,Be]=S.useState(!1),Ve=Ma(),Ie=xl({props:n,muiFormControl:Ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=Ve?Ve.focused:ze,S.useEffect(()=>{!Ve&&y&&ze&&(Be(!1),G&&G())},[Ve,y,ze,G]);const We=Ve&&Ve.onFilled,ct=Ve&&Ve.onEmpty,le=S.useCallback(ie=>{Ch(ie)?We&&We():ct&&ct()},[We,ct]);ei(()=>{Ce&&le({value:ye})},[ye,le,Ce]);const Ze=ie=>{Y&&Y(ie),R.onFocus&&R.onFocus(ie),Ve&&Ve.onFocus?Ve.onFocus(ie):Be(!0)},Fe=ie=>{G&&G(ie),R.onBlur&&R.onBlur(ie),Ve&&Ve.onBlur?Ve.onBlur(ie):Be(!1)},ft=(ie,...Pe)=>{if(!Ce){const He=ie.target||be.current;if(He==null)throw new Error(xa(1));le({value:He.value})}R.onChange&&R.onChange(ie,...Pe),D&&D(ie,...Pe)};S.useEffect(()=>{le(be.current)},[]);const Ue=ie=>{be.current&&ie.currentTarget===ie.target&&be.current.focus(),A&&A(ie)};let kt=E,at=R;_&&kt==="input"&&(J?at={type:void 0,minRows:J,maxRows:J,...at}:at={type:void 0,maxRows:P,minRows:z,...at},kt=g9);const fe=ie=>{le(ie.animationName==="mui-auto-fill-cancel"?be.current:{value:"x"})};S.useEffect(()=>{Ve&&Ve.setAdornedStart(!!ce)},[Ve,ce]);const we={...n,color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:w,error:Ie.error,focused:Ie.focused,formControl:Ve,fullWidth:T,hiddenLabel:Ie.hiddenLabel,multiline:_,size:Ie.size,startAdornment:ce,type:K},ke=b9(we),_e=ue.root||h.Root||pm,Ge=oe.root||m.root||{},Je=ue.input||h.Input||fm;return at={...at,...oe.input??m.input},c.jsxs(S.Fragment,{children:[!v&&typeof V2=="function"&&(U2||(U2=c.jsx(V2,{}))),c.jsxs(_e,{...Ge,ref:r,onClick:Ue,...Z,...!bh(_e)&&{ownerState:{...we,...Ge.ownerState}},className:Le(ke.root,Ge.className,d,Q&&"MuiInputBase-readOnly"),children:[ce,c.jsx(cm.Provider,{value:null,children:c.jsx(Je,{"aria-invalid":Ie.error,"aria-describedby":o,autoComplete:s,autoFocus:u,defaultValue:b,disabled:Ie.disabled,id:M,onAnimationStart:fe,name:B,placeholder:I,readOnly:Q,required:Ie.required,rows:J,value:ye,onKeyDown:F,onKeyUp:$,type:K,...at,...!bh(Je)&&{as:kt,ownerState:{...we,...at.ownerState}},ref:De,className:Le(ke.input,at.className,Q&&"MuiInputBase-readOnly"),onBlur:Fe,onChange:ft,onFocus:Ze})}),w,ee?ee({...Ie,startAdornment:ce}):null]})]})});function x9(t){return tt("MuiInput",t)}const Ja={...gi,...nt("MuiInput",["root","underline","input"])};function S9(t){return tt("MuiOutlinedInput",t)}const $i={...gi,...nt("MuiOutlinedInput",["root","notchedOutline","input"])};function w9(t){return tt("MuiFilledInput",t)}const yi={...gi,...nt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},_4=Ae(c.jsx("path",{d:"M7 10l5 5 5-5z"}));function C9(t){return tt("MuiAutocomplete",t)}const Dt=nt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var q2,F2;const T9=t=>{const{classes:e,disablePortal:r,expanded:n,focused:o,fullWidth:s,hasClearIcon:u,hasPopupIcon:d,inputFocused:p,popupOpen:h,size:m}=t,b={root:["root",n&&"expanded",o&&"focused",s&&"fullWidth",u&&"hasClearIcon",d&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",p&&"inputFocused"],tag:["tag",`tagSize${ve(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",h&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return rt(b,C9,e)},E9=xe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t,{fullWidth:n,hasClearIcon:o,hasPopupIcon:s,inputFocused:u,size:d}=r;return[{[`& .${Dt.tag}`]:e.tag},{[`& .${Dt.tag}`]:e[`tagSize${ve(d)}`]},{[`& .${Dt.inputRoot}`]:e.inputRoot},{[`& .${Dt.input}`]:e.input},{[`& .${Dt.input}`]:u&&e.inputFocused},e.root,n&&e.fullWidth,s&&e.hasPopupIcon,o&&e.hasClearIcon]}})({[`&.${Dt.focused} .${Dt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Dt.clearIndicator}`]:{visibility:"visible"}},[`& .${Dt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Dt.inputRoot}`]:{[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:30},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:56},[`& .${Dt.input}`]:{width:0,minWidth:30}},[`& .${Ja.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ja.root}.${gi.sizeSmall}`]:{[`& .${Ja.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$i.root}`]:{padding:9,[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:39},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:65},[`& .${Dt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Dt.endAdornment}`]:{right:9}},[`& .${$i.root}.${gi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Dt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${yi.root}`]:{paddingTop:19,paddingLeft:8,[`.${Dt.hasPopupIcon}&, .${Dt.hasClearIcon}&`]:{paddingRight:39},[`.${Dt.hasPopupIcon}.${Dt.hasClearIcon}&`]:{paddingRight:65},[`& .${yi.input}`]:{padding:"7px 4px"},[`& .${Dt.endAdornment}`]:{right:9}},[`& .${yi.root}.${gi.sizeSmall}`]:{paddingBottom:1,[`& .${yi.input}`]:{padding:"2.5px 4px"}},[`& .${gi.hiddenLabel}`]:{paddingTop:8},[`& .${yi.root}.${gi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Dt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${yi.root}.${gi.hiddenLabel}.${gi.sizeSmall}`]:{[`& .${Dt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Dt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Dt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Dt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Dt.inputRoot}`]:{flexWrap:"wrap"}}}]}),j9=xe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),A9=xe(sr,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),M9=xe(sr,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popupIndicator,r.popupOpen&&e.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),R9=xe(lm,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Dt.option}`]:e.option},e.popper,r.disablePortal&&e.popperDisablePortal]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),k9=xe(Fr,{name:"MuiAutocomplete",slot:"Paper"})(Xe(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),O9=xe("div",{name:"MuiAutocomplete",slot:"Loading"})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),P9=xe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),_9=xe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Xe(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Dt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Dt.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Dt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Dt.focused}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Dt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))),L9=xe(V0,{name:"MuiAutocomplete",slot:"GroupLabel"})(Xe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),N9=xe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Dt.option}`]:{paddingLeft:24}}),I9=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:s=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:m=q2||(q2=c.jsx(w4,{fontSize:"small"})),clearOnBlur:b=!n.freeSolo,clearOnEscape:y=!1,clearText:v="Clear",closeText:w="Close",componentsProps:C,defaultValue:T=n.multiple?[]:null,disableClearable:M=!1,disableCloseOnSelect:E=!1,disabled:R=!1,disabledItemsFocusable:j=!1,disableListWrap:k=!1,disablePortal:P=!1,filterOptions:z,filterSelectedOptions:_=!1,forcePopupIcon:B="auto",freeSolo:G=!1,fullWidth:D=!1,getLimitTagsText:A=Zt=>`+${Zt}`,getOptionDisabled:Y,getOptionKey:F,getOptionLabel:$,isOptionEqualToValue:I,groupBy:Q,handleHomeEndKeys:ee=!n.freeSolo,id:J,includeInputInList:L=!1,inputValue:oe,limitTags:ue=-1,ListboxComponent:ce,ListboxProps:K,loading:re=!1,loadingText:Z="Loading…",multiple:ye=!1,noOptionsText:Ce="No options",onChange:be,onClose:se,onHighlightChange:De,onInputChange:ze,onOpen:Be,open:Ve,openOnFocus:Ie=!1,openText:We="Open",options:ct,PaperComponent:le,PopperComponent:Ze,popupIcon:Fe=F2||(F2=c.jsx(_4,{})),readOnly:ft=!1,renderGroup:Ue,renderInput:kt,renderOption:at,renderTags:fe,renderValue:we,selectOnFocus:ke=!n.freeSolo,size:_e="medium",slots:Ge={},slotProps:Je={},value:ie,...Pe}=n,{getRootProps:He,getInputProps:$e,getInputLabelProps:yt,getPopupIndicatorProps:Gt,getClearProps:Xt,getItemProps:yn,getListboxProps:ut,getOptionProps:Vt,value:Yt,dirty:yr,expanded:Nr,id:sn,popupOpen:en,focused:Vn,focusedItem:Tt,anchorEl:Rr,setAnchorEl:Ye,inputValue:ot,groupedOptions:Pt}=q_({...n,componentName:"Autocomplete"}),_t=!M&&!R&&yr&&!ft,nr=(!G||B===!0)&&B!==!1,{onMouseDown:vn}=$e(),{ref:qn,...Ki}=ut(),Sr=$||(Zt=>Zt.label??Zt),Kt={...n,disablePortal:P,expanded:Nr,focused:Vn,fullWidth:D,getOptionLabel:Sr,hasClearIcon:_t,hasPopupIcon:nr,inputFocused:Tt===-1,popupOpen:en,size:_e},Er=T9(Kt),Ti={slots:{paper:le,popper:Ze,...Ge},slotProps:{chip:p,listbox:K,...C,...Je}},[Jc,Ts]=Ke("listbox",{elementType:_9,externalForwardedProps:Ti,ownerState:Kt,className:Er.listbox,additionalProps:Ki,ref:qn}),[Es,Te]=Ke("paper",{elementType:Fr,externalForwardedProps:Ti,ownerState:Kt,className:Er.paper}),[Ee,Qe]=Ke("popper",{elementType:lm,externalForwardedProps:Ti,ownerState:Kt,className:Er.popper,additionalProps:{disablePortal:P,style:{width:Rr?Rr.clientWidth:null},role:"presentation",anchorEl:Rr,open:en}});let mt;const wt=Zt=>({className:Er.tag,disabled:R,...yn(Zt)});if(ye?Yt.length>0&&(fe?mt=fe(Yt,wt,Kt):we?mt=we(Yt,wt,Kt):mt=Yt.map((Zt,Ji)=>{const{key:eo,...As}=wt({index:Ji});return c.jsx(rr,{label:Sr(Zt),size:_e,...As,...Ti.slotProps.chip},eo)})):we&&Yt!=null&&(mt=we(Yt,wt,Kt)),ue>-1&&Array.isArray(mt)){const Zt=mt.length-ue;!Vn&&Zt>0&&(mt=mt.splice(0,ue),mt.push(c.jsx("span",{className:Er.tag,children:A(Zt)},mt.length)))}const $t=Ue||(Zt=>c.jsxs("li",{children:[c.jsx(L9,{className:Er.groupLabel,ownerState:Kt,component:"div",children:Zt.group}),c.jsx(N9,{className:Er.groupUl,ownerState:Kt,children:Zt.children})]},Zt.key)),js=at||((Zt,Ji)=>{const{key:eo,...As}=Zt;return c.jsx("li",{...As,children:Sr(Ji)},eo)}),xo=(Zt,Ji)=>{const eo=Vt({option:Zt,index:Ji});return js({...eo,className:Er.option},Zt,{selected:eo["aria-selected"],index:Ji,inputValue:ot},Kt)},Zi=Ti.slotProps.clearIndicator,Wn=Ti.slotProps.popupIndicator;return c.jsxs(S.Fragment,{children:[c.jsx(E9,{ref:r,className:Le(Er.root,h),ownerState:Kt,...He(Pe),children:kt({id:sn,disabled:R,fullWidth:!0,size:_e==="small"?"small":void 0,InputLabelProps:yt(),InputProps:{ref:Ye,className:Er.inputRoot,startAdornment:mt,onMouseDown:Zt=>{Zt.target===Zt.currentTarget&&vn(Zt)},...(_t||nr)&&{endAdornment:c.jsxs(j9,{className:Er.endAdornment,ownerState:Kt,children:[_t?c.jsx(A9,{...Xt(),"aria-label":v,title:v,ownerState:Kt,...Zi,className:Le(Er.clearIndicator,Zi==null?void 0:Zi.className),children:m}):null,nr?c.jsx(M9,{...Gt(),disabled:R,"aria-label":en?w:We,title:en?w:We,ownerState:Kt,...Wn,className:Le(Er.popupIndicator,Wn==null?void 0:Wn.className),children:Fe}):null]})}},inputProps:{className:Er.input,disabled:R,readOnly:ft,...$e()}})}),Rr?c.jsx(R9,{as:Ee,...Qe,children:c.jsxs(k9,{as:Es,...Te,children:[re&&Pt.length===0?c.jsx(O9,{className:Er.loading,ownerState:Kt,children:Z}):null,Pt.length===0&&!G&&!re?c.jsx(P9,{className:Er.noOptions,ownerState:Kt,role:"presentation",onMouseDown:Zt=>{Zt.preventDefault()},children:Ce}):null,Pt.length>0?c.jsx(Jc,{as:ce,...Ts,children:Pt.map((Zt,Ji)=>Q?$t({key:Zt.key,group:Zt.group,children:Zt.options.map((eo,As)=>xo(eo,Zt.index+As))}):xo(Zt,Ji))}):null]})}):null]})}),B9=Ae(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function z9(t){return tt("MuiAvatar",t)}nt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const $9=t=>{const{classes:e,variant:r,colorDefault:n}=t;return rt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},z9,e)},D9=xe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.colorDefault&&e.colorDefault]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),H9=xe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),U9=xe(B9,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function V9({crossOrigin:t,referrerPolicy:e,src:r,srcSet:n}){const[o,s]=S.useState(!1);return S.useEffect(()=>{if(!r&&!n)return;s(!1);let u=!0;const d=new Image;return d.onload=()=>{u&&s("loaded")},d.onerror=()=>{u&&s("error")},d.crossOrigin=t,d.referrerPolicy=e,d.src=r,n&&(d.srcset=n),()=>{u=!1}},[t,e,r,n]),o}const W2=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiAvatar"}),{alt:o,children:s,className:u,component:d="div",slots:p={},slotProps:h={},imgProps:m,sizes:b,src:y,srcSet:v,variant:w="circular",...C}=n;let T=null;const M={...n,component:d,variant:w},E=V9({...m,...typeof h.img=="function"?h.img(M):h.img,src:y,srcSet:v}),R=y||v,j=R&&E!=="error";M.colorDefault=!j,delete M.ownerState;const k=$9(M),[P,z]=Ke("root",{ref:r,className:Le(k.root,u),elementType:D9,externalForwardedProps:{slots:p,slotProps:h,component:d,...C},ownerState:M}),[_,B]=Ke("img",{className:k.img,elementType:H9,externalForwardedProps:{slots:p,slotProps:{img:{...m,...h.img}}},additionalProps:{alt:o,src:y,srcSet:v,sizes:b},ownerState:M}),[G,D]=Ke("fallback",{className:k.fallback,elementType:U9,externalForwardedProps:{slots:p,slotProps:h},shouldForwardComponentProp:!0,ownerState:M});return j?T=c.jsx(_,{...B}):s||s===0?T=s:R&&o?T=o[0]:T=c.jsx(G,{...D}),c.jsx(P,{...z,children:T})}),q9={entering:{opacity:1},entered:{opacity:1}},q0=S.forwardRef(function(e,r){const n=ii(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:u=!0,children:d,easing:p,in:h,onEnter:m,onEntered:b,onEntering:y,onExit:v,onExited:w,onExiting:C,style:T,timeout:M=o,TransitionComponent:E=mo,...R}=e,j=S.useRef(null),k=qr(j,bl(d),r),P=F=>$=>{if(F){const I=j.current;$===void 0?F(I):F(I,$)}},z=P(y),_=P((F,$)=>{v4(F);const I=Ec({style:T,timeout:M,easing:p},{mode:"enter"});F.style.webkitTransition=n.transitions.create("opacity",I),F.style.transition=n.transitions.create("opacity",I),m&&m(F,$)}),B=P(b),G=P(C),D=P(F=>{const $=Ec({style:T,timeout:M,easing:p},{mode:"exit"});F.style.webkitTransition=n.transitions.create("opacity",$),F.style.transition=n.transitions.create("opacity",$),v&&v(F)}),A=P(w),Y=F=>{s&&s(j.current,F)};return c.jsx(E,{appear:u,in:h,nodeRef:j,onEnter:_,onEntered:B,onEntering:z,onExit:D,onExited:A,onExiting:G,addEndListener:Y,timeout:M,...R,children:(F,{ownerState:$,...I})=>S.cloneElement(d,{style:{opacity:0,visibility:F==="exited"&&!h?"hidden":void 0,...q9[F],...T,...d.props.style},ref:k,...I})})});function F9(t){return tt("MuiBackdrop",t)}nt("MuiBackdrop",["root","invisible"]);const W9=t=>{const{classes:e,invisible:r}=t;return rt({root:["root",r&&"invisible"]},F9,e)},G9=xe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),L4=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiBackdrop"}),{children:o,className:s,component:u="div",invisible:d=!1,open:p,components:h={},componentsProps:m={},slotProps:b={},slots:y={},TransitionComponent:v,transitionDuration:w,...C}=n,T={...n,component:u,invisible:d},M=W9(T),E={transition:v,root:h.Root,...y},R={...m,...b},j={component:u,slots:E,slotProps:R},[k,P]=Ke("root",{elementType:G9,externalForwardedProps:j,className:Le(M.root,s),ownerState:T}),[z,_]=Ke("transition",{elementType:q0,externalForwardedProps:j,ownerState:T});return c.jsx(z,{in:p,timeout:w,...C,..._,children:c.jsx(k,{"aria-hidden":!0,...P,classes:M,ref:r,children:o})})}),X9=nt("MuiBox",["root"]),Y9=im(),ne=R6({themeId:lo,defaultTheme:Y9,defaultClassName:X9.root,generateClassName:FE.generate});function Q9(t){return tt("MuiButton",t)}const Ys=nt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),N4=S.createContext({}),I4=S.createContext(void 0),K9=t=>{const{color:e,disableElevation:r,fullWidth:n,size:o,variant:s,loading:u,loadingPosition:d,classes:p}=t,h={root:["root",u&&"loading",s,`${s}${ve(e)}`,`size${ve(o)}`,`${s}Size${ve(o)}`,`color${ve(e)}`,r&&"disableElevation",n&&"fullWidth",u&&`loadingPosition${ve(d)}`],startIcon:["icon","startIcon",`iconSize${ve(o)}`],endIcon:["icon","endIcon",`iconSize${ve(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},m=rt(h,Q9,p);return{...p,...m}},B4=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Z9=xe(po,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`${r.variant}${ve(r.color)}`],e[`size${ve(r.size)}`],e[`${r.variant}Size${ve(r.size)}`],r.color==="inherit"&&e.colorInherit,r.disableElevation&&e.disableElevation,r.fullWidth&&e.fullWidth,r.loading&&e.loading]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],r=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Ys.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Ys.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Ys.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Ys.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(cr()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(t.vars||t).palette[n].main,"--variant-outlinedColor":(t.vars||t).palette[n].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[n].main,.5),"--variant-containedColor":(t.vars||t).palette[n].contrastText,"--variant-containedBg":(t.vars||t).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[n].dark,"--variant-textBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[n].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Ys.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ys.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Ys.loading}`]:{color:"transparent"}}}]}})),J9=xe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.startIcon,r.loading&&e.startIconLoadingStart,e[`iconSize${ve(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...B4]})),eL=xe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.endIcon,r.loading&&e.endIconLoadingEnd,e[`iconSize${ve(r.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...B4]})),tL=xe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),G2=xe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),$n=S.forwardRef(function(e,r){const n=S.useContext(N4),o=S.useContext(I4),s=Tc(n,e),u=it({props:s,name:"MuiButton"}),{children:d,color:p="primary",component:h="button",className:m,disabled:b=!1,disableElevation:y=!1,disableFocusRipple:v=!1,endIcon:w,focusVisibleClassName:C,fullWidth:T=!1,id:M,loading:E=null,loadingIndicator:R,loadingPosition:j="center",size:k="medium",startIcon:P,type:z,variant:_="text",...B}=u,G=$o(M),D=R??c.jsx(Tr,{"aria-labelledby":G,color:"inherit",size:16}),A={...u,color:p,component:h,disabled:b,disableElevation:y,disableFocusRipple:v,fullWidth:T,loading:E,loadingIndicator:D,loadingPosition:j,size:k,type:z,variant:_},Y=K9(A),F=(P||E&&j==="start")&&c.jsx(J9,{className:Y.startIcon,ownerState:A,children:P||c.jsx(G2,{className:Y.loadingIconPlaceholder,ownerState:A})}),$=(w||E&&j==="end")&&c.jsx(eL,{className:Y.endIcon,ownerState:A,children:w||c.jsx(G2,{className:Y.loadingIconPlaceholder,ownerState:A})}),I=o||"",Q=typeof E=="boolean"?c.jsx("span",{className:Y.loadingWrapper,style:{display:"contents"},children:E&&c.jsx(tL,{className:Y.loadingIndicator,ownerState:A,children:D})}):null;return c.jsxs(Z9,{ownerState:A,className:Le(n.className,Y.root,m,I),component:h,disabled:b||E,focusRipple:!v,focusVisibleClassName:Le(Y.focusVisible,C),ref:r,type:z,id:E?G:M,...B,classes:Y,children:[F,j!=="end"&&Q,d,j==="end"&&Q,$]})});function z4(t){return S.Children.toArray(t).filter(e=>S.isValidElement(e))}function rL(t){return tt("MuiButtonGroup",t)}const It=nt("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),nL=(t,e)=>{const{ownerState:r}=t;return[{[`& .${It.grouped}`]:e.grouped},{[`& .${It.grouped}`]:e[`grouped${ve(r.orientation)}`]},{[`& .${It.grouped}`]:e[`grouped${ve(r.variant)}`]},{[`& .${It.grouped}`]:e[`grouped${ve(r.variant)}${ve(r.orientation)}`]},{[`& .${It.grouped}`]:e[`grouped${ve(r.variant)}${ve(r.color)}`]},{[`& .${It.firstButton}`]:e.firstButton},{[`& .${It.lastButton}`]:e.lastButton},{[`& .${It.middleButton}`]:e.middleButton},e.root,e[r.variant],r.disableElevation===!0&&e.disableElevation,r.fullWidth&&e.fullWidth,r.orientation==="vertical"&&e.vertical]},iL=t=>{const{classes:e,color:r,disabled:n,disableElevation:o,fullWidth:s,orientation:u,variant:d}=t,p={root:["root",d,u,s&&"fullWidth",o&&"disableElevation",`color${ve(r)}`],grouped:["grouped",`grouped${ve(u)}`,`grouped${ve(d)}`,`grouped${ve(d)}${ve(u)}`,`grouped${ve(d)}${ve(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return rt(p,rL,e)},oL=xe("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:nL})(Xe(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${It.lastButton},& .${It.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${It.firstButton},& .${It.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${It.lastButton},& .${It.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderRight:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${It.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderBottom:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${It.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(cr()).flatMap(([e])=>[{props:{variant:"text",color:e},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderColor:t.alpha((t.vars||t).palette[e].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${It.lastButton},& .${It.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${It.lastButton},& .${It.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${It.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${It.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(cr(["dark"])).map(([e])=>({props:{variant:"contained",color:e},style:{[`& .${It.firstButton},& .${It.middleButton}`]:{borderColor:(t.vars||t).palette[e].dark}}}))],[`& .${It.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),aL=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiButtonGroup"}),{children:o,className:s,color:u="primary",component:d="div",disabled:p=!1,disableElevation:h=!1,disableFocusRipple:m=!1,disableRipple:b=!1,fullWidth:y=!1,orientation:v="horizontal",size:w="medium",variant:C="outlined",...T}=n,M={...n,color:u,component:d,disabled:p,disableElevation:h,disableFocusRipple:m,disableRipple:b,fullWidth:y,orientation:v,size:w,variant:C},E=iL(M),R=S.useMemo(()=>({className:E.grouped,color:u,disabled:p,disableElevation:h,disableFocusRipple:m,disableRipple:b,fullWidth:y,size:w,variant:C}),[u,p,h,m,b,y,w,C,E.grouped]),j=z4(o),k=j.length,P=z=>{const _=z===0,B=z===k-1;return _&&B?"":_?E.firstButton:B?E.lastButton:E.middleButton};return c.jsx(oL,{as:d,role:"group",className:Le(E.root,s),ref:r,ownerState:M,...T,children:c.jsx(N4.Provider,{value:R,children:j.map((z,_)=>c.jsx(I4.Provider,{value:P(_),children:z},_))})})});function sL(t){return tt("MuiCard",t)}nt("MuiCard",["root"]);const lL=t=>{const{classes:e}=t;return rt({root:["root"]},sL,e)},cL=xe(Fr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),xt=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCard"}),{className:o,raised:s=!1,...u}=n,d={...n,raised:s},p=lL(d);return c.jsx(cL,{className:Le(p.root,o),elevation:s?8:void 0,ref:r,ownerState:d,...u})});function uL(t){return tt("MuiCardActionArea",t)}const e0=nt("MuiCardActionArea",["root","focusVisible","focusHighlight"]),dL=t=>{const{classes:e}=t;return rt({root:["root"],focusHighlight:["focusHighlight"]},uL,e)},pL=xe(po,{name:"MuiCardActionArea",slot:"Root"})(Xe(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${e0.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${e0.focusVisible} .${e0.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),fL=xe("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Xe(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),hL=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCardActionArea"}),{children:o,className:s,focusVisibleClassName:u,slots:d={},slotProps:p={},...h}=n,m=n,b=dL(m),y={slots:d,slotProps:p},[v,w]=Ke("root",{elementType:pL,externalForwardedProps:{...y,...h},shouldForwardComponentProp:!0,ownerState:m,ref:r,className:Le(b.root,s),additionalProps:{focusVisibleClassName:Le(u,b.focusVisible)}}),[C,T]=Ke("focusHighlight",{elementType:fL,externalForwardedProps:y,ownerState:m,ref:r,className:b.focusHighlight});return c.jsxs(v,{...w,children:[o,c.jsx(C,{...T})]})});function mL(t){return tt("MuiCardContent",t)}nt("MuiCardContent",["root"]);const gL=t=>{const{classes:e}=t;return rt({root:["root"]},mL,e)},yL=xe("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),bt=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCardContent"}),{className:o,component:s="div",...u}=n,d={...n,component:s},p=gL(d);return c.jsx(yL,{as:s,className:Le(p.root,o),ownerState:d,ref:r,...u})});function vL(t){return tt("PrivateSwitchBase",t)}nt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bL=t=>{const{classes:e,checked:r,disabled:n,edge:o}=t,s={root:["root",r&&"checked",n&&"disabled",o&&`edge${ve(o)}`],input:["input"]};return rt(s,vL,e)},xL=xe(po,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),SL=xe("input",{name:"MuiSwitchBase",shouldForwardProp:oi})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$4=S.forwardRef(function(e,r){const{autoFocus:n,checked:o,checkedIcon:s,defaultChecked:u,disabled:d,disableFocusRipple:p=!1,edge:h=!1,icon:m,id:b,inputProps:y,inputRef:v,name:w,onBlur:C,onChange:T,onFocus:M,readOnly:E,required:R=!1,tabIndex:j,type:k,value:P,slots:z={},slotProps:_={},...B}=e,[G,D]=os({controlled:o,default:!!u,name:"SwitchBase",state:"checked"}),A=Ma(),Y=re=>{M&&M(re),A&&A.onFocus&&A.onFocus(re)},F=re=>{C&&C(re),A&&A.onBlur&&A.onBlur(re)},$=re=>{if(re.nativeEvent.defaultPrevented)return;const Z=re.target.checked;D(Z),T&&T(re,Z)};let I=d;A&&typeof I>"u"&&(I=A.disabled);const Q=k==="checkbox"||k==="radio",ee={...e,checked:G,disabled:I,disableFocusRipple:p,edge:h},J=bL(ee),L={slots:z,slotProps:{input:y,..._}},[oe,ue]=Ke("root",{ref:r,elementType:xL,className:J.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...B},getSlotProps:re=>({...re,onFocus:Z=>{var ye;(ye=re.onFocus)==null||ye.call(re,Z),Y(Z)},onBlur:Z=>{var ye;(ye=re.onBlur)==null||ye.call(re,Z),F(Z)}}),ownerState:ee,additionalProps:{centerRipple:!0,focusRipple:!p,disabled:I,role:void 0,tabIndex:null}}),[ce,K]=Ke("input",{ref:v,elementType:SL,className:J.input,externalForwardedProps:L,getSlotProps:re=>({...re,onChange:Z=>{var ye;(ye=re.onChange)==null||ye.call(re,Z),$(Z)}}),ownerState:ee,additionalProps:{autoFocus:n,checked:o,defaultChecked:u,disabled:I,id:Q?b:void 0,name:w,readOnly:E,required:R,tabIndex:j,type:k,...k==="checkbox"&&P===void 0?{}:{value:P}}});return c.jsxs(oe,{...ue,children:[c.jsx(ce,{...K}),G?s:m]})}),wL=Ae(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),CL=Ae(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),TL=Ae(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function EL(t){return tt("MuiCheckbox",t)}const t0=nt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jL=t=>{const{classes:e,indeterminate:r,color:n,size:o}=t,s={root:["root",r&&"indeterminate",`color${ve(n)}`,`size${ve(o)}`]},u=rt(s,EL,e);return{...e,...u}},AL=xe($4,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.indeterminate&&e.indeterminate,e[`size${ve(r.size)}`],r.color!=="default"&&e[`color${ve(r.color)}`]]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${t0.checked}, &.${t0.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${t0.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),ML=c.jsx(CL,{}),RL=c.jsx(wL,{}),kL=c.jsx(TL,{}),OL=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiCheckbox"}),{checkedIcon:o=ML,color:s="primary",icon:u=RL,indeterminate:d=!1,indeterminateIcon:p=kL,inputProps:h,size:m="medium",disableRipple:b=!1,className:y,slots:v={},slotProps:w={},...C}=n,T=d?p:u,M=d?p:o,E={...n,disableRipple:b,color:s,indeterminate:d,size:m},R=jL(E),j=w.input??h,[k,P]=Ke("root",{ref:r,elementType:AL,className:Le(R.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:w,...C},ownerState:E,additionalProps:{type:"checkbox",icon:S.cloneElement(T,{fontSize:T.props.fontSize??m}),checkedIcon:S.cloneElement(M,{fontSize:M.props.fontSize??m}),disableRipple:b,slots:v,slotProps:{input:h4(typeof j=="function"?j(E):j,{"data-indeterminate":d})}}});return c.jsx(k,{...P,classes:R})});function X2(t){return t.substring(2).toLowerCase()}function PL(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function _L(t){const{children:e,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=t,u=S.useRef(!1),d=S.useRef(null),p=S.useRef(!1),h=S.useRef(!1);S.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const m=qr(bl(e),d),b=nn(w=>{const C=h.current;h.current=!1;const T=Cn(d.current);if(!p.current||!d.current||"clientX"in w&&PL(w,T))return;if(u.current){u.current=!1;return}let M;w.composedPath?M=w.composedPath().includes(d.current):M=!T.documentElement.contains(w.target)||d.current.contains(w.target),!M&&(r||!C)&&o(w)}),y=w=>C=>{h.current=!0;const T=e.props[w];T&&T(C)},v={ref:m};return s!==!1&&(v[s]=y(s)),S.useEffect(()=>{if(s!==!1){const w=X2(s),C=Cn(d.current),T=()=>{u.current=!0};return C.addEventListener(w,b),C.addEventListener("touchmove",T),()=>{C.removeEventListener(w,b),C.removeEventListener("touchmove",T)}}},[b,s]),n!==!1&&(v[n]=y(n)),S.useEffect(()=>{if(n!==!1){const w=X2(n),C=Cn(d.current);return C.addEventListener(w,b),()=>{C.removeEventListener(w,b)}}},[b,n]),S.cloneElement(e,v)}const Th=xO({createStyledComponent:xe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`maxWidth${ve(String(r.maxWidth))}`],r.fixed&&e.fixed,r.disableGutters&&e.disableGutters]}}),useThemeProps:t=>it({props:t,name:"MuiContainer"})});function D4(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function LL(t){const e=Cn(t);return e.body===t?uo(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function yd(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Y2(t){return parseInt(uo(t).getComputedStyle(t).paddingRight,10)||0}function NL(t){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),n=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return r||n}function Q2(t,e,r,n,o){const s=[e,r,...n];[].forEach.call(t.children,u=>{const d=!s.includes(u),p=!NL(u);d&&p&&yd(u,o)})}function r0(t,e){let r=-1;return t.some((n,o)=>e(n)?(r=o,!0):!1),r}function IL(t,e){const r=[],n=t.container;if(!e.disableScrollLock){if(LL(n)){const u=D4(uo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Y2(n)+u}px`;const d=Cn(n).querySelectorAll(".mui-fixed");[].forEach.call(d,p=>{r.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Y2(p)+u}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=Cn(n).body;else{const u=n.parentElement,d=uo(n);s=(u==null?void 0:u.nodeName)==="HTML"&&d.getComputedStyle(u).overflowY==="scroll"?u:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:u,property:d})=>{s?u.style.setProperty(d,s):u.style.removeProperty(d)})}}function BL(t){const e=[];return[].forEach.call(t.children,r=>{r.getAttribute("aria-hidden")==="true"&&e.push(r)}),e}class zL{constructor(){this.modals=[],this.containers=[]}add(e,r){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yd(e.modalRef,!1);const o=BL(r);Q2(r,e.mount,e.modalRef,o,!0);const s=r0(this.containers,u=>u.container===r);return s!==-1?(this.containers[s].modals.push(e),n):(this.containers.push({modals:[e],container:r,restore:null,hiddenSiblings:o}),n)}mount(e,r){const n=r0(this.containers,s=>s.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=IL(o,r))}remove(e,r=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=r0(this.containers,u=>u.modals.includes(e)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(e),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),e.modalRef&&yd(e.modalRef,r),Q2(s.container,e.mount,e.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const u=s.modals[s.modals.length-1];u.modalRef&&yd(u.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const $L=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DL(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function HL(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=n=>t.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=e(`[name="${t.name}"]:checked`);return r||(r=e(`[name="${t.name}"]`)),r!==t}function UL(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||HL(t))}function VL(t){const e=[],r=[];return Array.from(t.querySelectorAll($L)).forEach((n,o)=>{const s=DL(n);s===-1||!UL(n)||(s===0?e.push(n):r.push({documentOrder:o,tabIndex:s,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(e)}function qL(){return!0}function FL(t){const{children:e,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=VL,isEnabled:u=qL,open:d}=t,p=S.useRef(!1),h=S.useRef(null),m=S.useRef(null),b=S.useRef(null),y=S.useRef(null),v=S.useRef(!1),w=S.useRef(null),C=qr(bl(e),w),T=S.useRef(null);S.useEffect(()=>{!d||!w.current||(v.current=!r)},[r,d]),S.useEffect(()=>{if(!d||!w.current)return;const R=Cn(w.current);return w.current.contains(R.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),v.current&&w.current.focus()),()=>{o||(b.current&&b.current.focus&&(p.current=!0,b.current.focus()),b.current=null)}},[d]),S.useEffect(()=>{if(!d||!w.current)return;const R=Cn(w.current),j=z=>{T.current=z,!(n||!u()||z.key!=="Tab")&&R.activeElement===w.current&&z.shiftKey&&(p.current=!0,m.current&&m.current.focus())},k=()=>{var B,G;const z=w.current;if(z===null)return;if(!R.hasFocus()||!u()||p.current){p.current=!1;return}if(z.contains(R.activeElement)||n&&R.activeElement!==h.current&&R.activeElement!==m.current)return;if(R.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!v.current)return;let _=[];if((R.activeElement===h.current||R.activeElement===m.current)&&(_=s(w.current)),_.length>0){const D=!!((B=T.current)!=null&&B.shiftKey&&((G=T.current)==null?void 0:G.key)==="Tab"),A=_[0],Y=_[_.length-1];typeof A!="string"&&typeof Y!="string"&&(D?Y.focus():A.focus())}else z.focus()};R.addEventListener("focusin",k),R.addEventListener("keydown",j,!0);const P=setInterval(()=>{R.activeElement&&R.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(P),R.removeEventListener("focusin",k),R.removeEventListener("keydown",j,!0)}},[r,n,o,u,d,s]);const M=R=>{b.current===null&&(b.current=R.relatedTarget),v.current=!0,y.current=R.target;const j=e.props.onFocus;j&&j(R)},E=R=>{b.current===null&&(b.current=R.relatedTarget),v.current=!0};return c.jsxs(S.Fragment,{children:[c.jsx("div",{tabIndex:d?0:-1,onFocus:E,ref:h,"data-testid":"sentinelStart"}),S.cloneElement(e,{ref:C,onFocus:M}),c.jsx("div",{tabIndex:d?0:-1,onFocus:E,ref:m,"data-testid":"sentinelEnd"})]})}function WL(t){return typeof t=="function"?t():t}function GL(t){return t?t.props.hasOwnProperty("in"):!1}const K2=()=>{},kf=new zL;function XL(t){const{container:e,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:u,children:d,onClose:p,open:h,rootRef:m}=t,b=S.useRef({}),y=S.useRef(null),v=S.useRef(null),w=qr(v,m),[C,T]=S.useState(!h),M=GL(d);let E=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(E=!1);const R=()=>Cn(y.current),j=()=>(b.current.modalRef=v.current,b.current.mount=y.current,b.current),k=()=>{kf.mount(j(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},P=nn(()=>{const $=WL(e)||R().body;kf.add(j(),$),v.current&&k()}),z=()=>kf.isTopModal(j()),_=nn($=>{y.current=$,$&&(h&&z()?k():v.current&&yd(v.current,E))}),B=S.useCallback(()=>{kf.remove(j(),E)},[E]);S.useEffect(()=>()=>{B()},[B]),S.useEffect(()=>{h?P():(!M||!o)&&B()},[h,B,M,o,P]);const G=$=>I=>{var Q;(Q=$.onKeyDown)==null||Q.call($,I),!(I.key!=="Escape"||I.which===229||!z())&&(r||(I.stopPropagation(),p&&p(I,"escapeKeyDown")))},D=$=>I=>{var Q;(Q=$.onClick)==null||Q.call($,I),I.target===I.currentTarget&&p&&p(I,"backdropClick")};return{getRootProps:($={})=>{const I=xh(t);delete I.onTransitionEnter,delete I.onTransitionExited;const Q={...I,...$};return{role:"presentation",...Q,onKeyDown:G(Q),ref:w}},getBackdropProps:($={})=>{const I=$;return{"aria-hidden":!0,...I,onClick:D(I),open:h}},getTransitionProps:()=>{const $=()=>{T(!1),s&&s()},I=()=>{T(!0),u&&u(),o&&B()};return{onEnter:y2($,(d==null?void 0:d.props.onEnter)??K2),onExited:y2(I,(d==null?void 0:d.props.onExited)??K2)}},rootRef:w,portalRef:_,isTopModal:z,exited:C,hasTransition:M}}function YL(t){return tt("MuiModal",t)}nt("MuiModal",["root","hidden","backdrop"]);const QL=t=>{const{open:e,exited:r,classes:n}=t;return rt({root:["root",!e&&r&&"hidden"],backdrop:["backdrop"]},YL,n)},KL=xe("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.open&&r.exited&&e.hidden]}})(Xe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),ZL=xe(L4,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),H4=S.forwardRef(function(e,r){const n=it({name:"MuiModal",props:e}),{BackdropComponent:o=ZL,BackdropProps:s,classes:u,className:d,closeAfterTransition:p=!1,children:h,container:m,component:b,components:y={},componentsProps:v={},disableAutoFocus:w=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:T=!1,disablePortal:M=!1,disableRestoreFocus:E=!1,disableScrollLock:R=!1,hideBackdrop:j=!1,keepMounted:k=!1,onClose:P,onTransitionEnter:z,onTransitionExited:_,open:B,slotProps:G={},slots:D={},theme:A,...Y}=n,F={...n,closeAfterTransition:p,disableAutoFocus:w,disableEnforceFocus:C,disableEscapeKeyDown:T,disablePortal:M,disableRestoreFocus:E,disableScrollLock:R,hideBackdrop:j,keepMounted:k},{getRootProps:$,getBackdropProps:I,getTransitionProps:Q,portalRef:ee,isTopModal:J,exited:L,hasTransition:oe}=XL({...F,rootRef:r}),ue={...F,exited:L},ce=QL(ue),K={};if(h.props.tabIndex===void 0&&(K.tabIndex="-1"),oe){const{onEnter:se,onExited:De}=Q();K.onEnter=se,K.onExited=De}const re={slots:{root:y.Root,backdrop:y.Backdrop,...D},slotProps:{...v,...G}},[Z,ye]=Ke("root",{ref:r,elementType:KL,externalForwardedProps:{...re,...Y,component:b},getSlotProps:$,ownerState:ue,className:Le(d,ce==null?void 0:ce.root,!ue.open&&ue.exited&&(ce==null?void 0:ce.hidden))}),[Ce,be]=Ke("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:se=>I({...se,onClick:De=>{se!=null&&se.onClick&&se.onClick(De)}}),className:Le(s==null?void 0:s.className,ce==null?void 0:ce.backdrop),ownerState:ue});return!k&&!B&&(!oe||L)?null:c.jsx(P4,{ref:ee,container:m,disablePortal:M,children:c.jsxs(Z,{...ye,children:[!j&&o?c.jsx(Ce,{...be}):null,c.jsx(FL,{disableEnforceFocus:C,disableAutoFocus:w,disableRestoreFocus:E,isEnabled:J,open:B,children:S.cloneElement(h,K)})]})})});function JL(t){return tt("MuiDialog",t)}const n0=nt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),U4=S.createContext({}),eN=xe(L4,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),tN=t=>{const{classes:e,scroll:r,maxWidth:n,fullWidth:o,fullScreen:s}=t,u={root:["root"],container:["container",`scroll${ve(r)}`],paper:["paper",`paperScroll${ve(r)}`,`paperWidth${ve(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return rt(u,JL,e)},rN=xe(H4,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),nN=xe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.container,e[`scroll${ve(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),iN=xe(Fr,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.paper,e[`scrollPaper${ve(r.scroll)}`],e[`paperWidth${ve(String(r.maxWidth))}`],r.fullWidth&&e.paperFullWidth,r.fullScreen&&e.paperFullScreen]}})(Xe(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${n0.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${n0.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${n0.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),V4=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiDialog"}),o=ii(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":u,"aria-labelledby":d,"aria-modal":p=!0,BackdropComponent:h,BackdropProps:m,children:b,className:y,disableEscapeKeyDown:v=!1,fullScreen:w=!1,fullWidth:C=!1,maxWidth:T="sm",onClick:M,onClose:E,open:R,PaperComponent:j=Fr,PaperProps:k={},scroll:P="paper",slots:z={},slotProps:_={},TransitionComponent:B=q0,transitionDuration:G=s,TransitionProps:D,...A}=n,Y={...n,disableEscapeKeyDown:v,fullScreen:w,fullWidth:C,maxWidth:T,scroll:P},F=tN(Y),$=S.useRef(),I=Be=>{$.current=Be.target===Be.currentTarget},Q=Be=>{M&&M(Be),$.current&&($.current=null,E&&E(Be,"backdropClick"))},ee=$o(d),J=S.useMemo(()=>({titleId:ee}),[ee]),L={transition:B,...z},oe={transition:D,paper:k,backdrop:m,..._},ue={slots:L,slotProps:oe},[ce,K]=Ke("root",{elementType:rN,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:Y,className:Le(F.root,y),ref:r}),[re,Z]=Ke("backdrop",{elementType:eN,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:Y}),[ye,Ce]=Ke("paper",{elementType:iN,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:Y,className:Le(F.paper,k.className)}),[be,se]=Ke("container",{elementType:nN,externalForwardedProps:ue,ownerState:Y,className:F.container}),[De,ze]=Ke("transition",{elementType:q0,externalForwardedProps:ue,ownerState:Y,additionalProps:{appear:!0,in:R,timeout:G,role:"presentation"}});return c.jsx(ce,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:G,as:h,...Z}},disableEscapeKeyDown:v,onClose:E,open:R,onClick:Q,...K,...A,children:c.jsx(De,{...ze,children:c.jsx(be,{onMouseDown:I,...se,children:c.jsx(ye,{as:j,elevation:24,role:"dialog","aria-describedby":u,"aria-labelledby":ee,"aria-modal":p,...Ce,children:c.jsx(U4.Provider,{value:J,children:b})})})})})});function oN(t){return tt("MuiDialogActions",t)}nt("MuiDialogActions",["root","spacing"]);const aN=t=>{const{classes:e,disableSpacing:r}=t;return rt({root:["root",!r&&"spacing"]},oN,e)},sN=xe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),q4=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...u}=n,d={...n,disableSpacing:s},p=aN(d);return c.jsx(sN,{className:Le(p.root,o),ownerState:d,ref:r,...u})});function lN(t){return tt("MuiDialogContent",t)}nt("MuiDialogContent",["root","dividers"]);function cN(t){return tt("MuiDialogTitle",t)}const uN=nt("MuiDialogTitle",["root"]),dN=t=>{const{classes:e,dividers:r}=t;return rt({root:["root",r&&"dividers"]},lN,e)},pN=xe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.dividers&&e.dividers]}})(Xe(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${uN.root} + &`]:{paddingTop:0}}}]}))),F4=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...u}=n,d={...n,dividers:s},p=dN(d);return c.jsx(pN,{className:Le(p.root,o),ownerState:d,ref:r,...u})}),fN=t=>{const{classes:e}=t;return rt({root:["root"]},cN,e)},hN=xe(me,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),W4=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...u}=n,d=n,p=fN(d),{titleId:h=s}=S.useContext(U4);return c.jsx(hN,{component:"h2",className:Le(p.root,o),ownerState:d,ref:r,variant:"h6",id:s??h,...u})});function mN(t){return tt("MuiDivider",t)}const Z2=nt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gN=t=>{const{absolute:e,children:r,classes:n,flexItem:o,light:s,orientation:u,textAlign:d,variant:p}=t;return rt({root:["root",e&&"absolute",p,s&&"light",u==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&u==="vertical"&&"withChildrenVertical",d==="right"&&u!=="vertical"&&"textAlignRight",d==="left"&&u!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",u==="vertical"&&"wrapperVertical"]},mN,n)},yN=xe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(Xe(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),vN=xe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(Xe(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),F0=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiDivider"}),{absolute:o=!1,children:s,className:u,orientation:d="horizontal",component:p=s||d==="vertical"?"div":"hr",flexItem:h=!1,light:m=!1,role:b=p!=="hr"?"separator":void 0,textAlign:y="center",variant:v="fullWidth",...w}=n,C={...n,absolute:o,component:p,flexItem:h,light:m,orientation:d,role:b,textAlign:y,variant:v},T=gN(C);return c.jsx(yN,{as:p,className:Le(T.root,u),role:b,ref:r,ownerState:C,"aria-orientation":b==="separator"&&(p!=="hr"||d==="vertical")?d:void 0,...w,children:s?c.jsx(vN,{className:T.wrapper,ownerState:C,children:s}):null})});F0&&(F0.muiSkipListHighlight=!0);const bN=t=>{const{classes:e,disableUnderline:r,startAdornment:n,endAdornment:o,size:s,hiddenLabel:u,multiline:d}=t,p={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${ve(s)}`,u&&"hiddenLabel",d&&"multiline"],input:["input"]},h=rt(p,w9,e);return{...e,...h}},xN=xe(pm,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...um(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{const e=t.palette.mode==="light",r=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},[`&.${yi.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},[`&.${yi.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:u})=>!u.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yi.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yi.disabled}, .${yi.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${yi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(cr()).map(([u])=>{var d;return{props:{disableUnderline:!1,color:u},style:{"&::after":{borderBottom:`2px solid ${(d=(t.vars||t).palette[u])==null?void 0:d.main}`}}}}),{props:({ownerState:u})=>u.startAdornment,style:{paddingLeft:12}},{props:({ownerState:u})=>u.endAdornment,style:{paddingRight:12}},{props:({ownerState:u})=>u.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:u,size:d})=>u.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:u})=>u.multiline&&u.hiddenLabel&&u.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),SN=xe(fm,{name:"MuiFilledInput",slot:"Input",overridesResolver:dm})(Xe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ab=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:u,fullWidth:d=!1,hiddenLabel:p,inputComponent:h="input",multiline:m=!1,slotProps:b,slots:y={},type:v="text",...w}=n,C={...n,disableUnderline:o,fullWidth:d,inputComponent:h,multiline:m,type:v},T=bN(n),M={root:{ownerState:C},input:{ownerState:C}},E=b??u?fn(M,b??u):M,R=y.root??s.Root??xN,j=y.input??s.Input??SN;return c.jsx(hm,{slots:{root:R,input:j},slotProps:E,fullWidth:d,inputComponent:h,multiline:m,ref:r,type:v,...w,classes:T})});ab.muiName="Input";function wN(t){return tt("MuiFormControl",t)}nt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const CN=t=>{const{classes:e,margin:r,fullWidth:n}=t,o={root:["root",r!=="none"&&`margin${ve(r)}`,n&&"fullWidth"]};return rt(o,wN,e)},TN=xe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`margin${ve(r.margin)}`],r.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ho=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiFormControl"}),{children:o,className:s,color:u="primary",component:d="div",disabled:p=!1,error:h=!1,focused:m,fullWidth:b=!1,hiddenLabel:y=!1,margin:v="none",required:w=!1,size:C="medium",variant:T="outlined",...M}=n,E={...n,color:u,component:d,disabled:p,error:h,fullWidth:b,hiddenLabel:y,margin:v,required:w,size:C,variant:T},R=CN(E),[j,k]=S.useState(()=>{let $=!1;return o&&S.Children.forEach(o,I=>{if(!ih(I,["Input","Select"]))return;const Q=ih(I,["Select"])?I.props.input:I;Q&&y9(Q.props)&&($=!0)}),$}),[P,z]=S.useState(()=>{let $=!1;return o&&S.Children.forEach(o,I=>{ih(I,["Input","Select"])&&(Ch(I.props,!0)||Ch(I.props.inputProps,!0))&&($=!0)}),$}),[_,B]=S.useState(!1);p&&_&&B(!1);const G=m!==void 0&&!p?m:_;let D;S.useRef(!1);const A=S.useCallback(()=>{z(!0)},[]),Y=S.useCallback(()=>{z(!1)},[]),F=S.useMemo(()=>({adornedStart:j,setAdornedStart:k,color:u,disabled:p,error:h,filled:P,focused:G,fullWidth:b,hiddenLabel:y,size:C,onBlur:()=>{B(!1)},onFocus:()=>{B(!0)},onEmpty:Y,onFilled:A,registerEffect:D,required:w,variant:T}),[j,u,p,h,P,G,b,y,D,Y,A,w,C,T]);return c.jsx(cm.Provider,{value:F,children:c.jsx(TN,{as:d,ownerState:E,className:Le(R.root,s),ref:r,...M,children:o})})});function EN(t){return tt("MuiFormControlLabel",t)}const ud=nt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),jN=t=>{const{classes:e,disabled:r,labelPlacement:n,error:o,required:s}=t,u={root:["root",r&&"disabled",`labelPlacement${ve(n)}`,o&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return rt(u,EN,e)},AN=xe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ud.label}`]:e.label},e.root,e[`labelPlacement${ve(r.labelPlacement)}`]]}})(Xe(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ud.disabled}`]:{cursor:"default"},[`& .${ud.label}`]:{[`&.${ud.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),MN=xe("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Xe(({theme:t})=>({[`&.${ud.error}`]:{color:(t.vars||t).palette.error.main}}))),es=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:u={},control:d,disabled:p,disableTypography:h,inputRef:m,label:b,labelPlacement:y="end",name:v,onChange:w,required:C,slots:T={},slotProps:M={},value:E,...R}=n,j=Ma(),k=p??d.props.disabled??(j==null?void 0:j.disabled),P=C??d.props.required,z={disabled:k,required:P};["checked","name","onChange","value","inputRef"].forEach($=>{typeof d.props[$]>"u"&&typeof n[$]<"u"&&(z[$]=n[$])});const _=xl({props:n,muiFormControl:j,states:["error"]}),B={...n,disabled:k,labelPlacement:y,required:P,error:_.error},G=jN(B),D={slots:T,slotProps:{...u,...M}},[A,Y]=Ke("typography",{elementType:me,externalForwardedProps:D,ownerState:B});let F=b;return F!=null&&F.type!==me&&!h&&(F=c.jsx(A,{component:"span",...Y,className:Le(G.label,Y==null?void 0:Y.className),children:F})),c.jsxs(AN,{className:Le(G.root,s),ownerState:B,ref:r,...R,children:[S.cloneElement(d,z),P?c.jsxs("div",{children:[F,c.jsxs(MN,{ownerState:B,"aria-hidden":!0,className:G.asterisk,children:[" ","*"]})]}):F]})});function RN(t){return tt("MuiFormHelperText",t)}const J2=nt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var eC;const kN=t=>{const{classes:e,contained:r,size:n,disabled:o,error:s,filled:u,focused:d,required:p}=t,h={root:["root",o&&"disabled",s&&"error",n&&`size${ve(n)}`,r&&"contained",d&&"focused",u&&"filled",p&&"required"]};return rt(h,RN,e)},ON=xe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.size&&e[`size${ve(r.size)}`],r.contained&&e.contained,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${J2.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${J2.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Gc=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiFormHelperText"}),{children:o,className:s,component:u="p",disabled:d,error:p,filled:h,focused:m,margin:b,required:y,variant:v,...w}=n,C=Ma(),T=xl({props:n,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),M={...n,component:u,contained:T.variant==="filled"||T.variant==="outlined",variant:T.variant,size:T.size,disabled:T.disabled,error:T.error,filled:T.filled,focused:T.focused,required:T.required};delete M.ownerState;const E=kN(M);return c.jsx(ON,{as:u,className:Le(E.root,s),ref:r,...w,ownerState:M,children:o===" "?eC||(eC=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});function PN(t){return tt("MuiFormLabel",t)}const vd=nt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_N=t=>{const{classes:e,color:r,focused:n,disabled:o,error:s,filled:u,required:d}=t,p={root:["root",`color${ve(r)}`,o&&"disabled",s&&"error",u&&"filled",n&&"focused",d&&"required"],asterisk:["asterisk",s&&"error"]};return rt(p,PN,e)},LN=xe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.color==="secondary"&&e.colorSecondary,r.filled&&e.filled]}})(Xe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${vd.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${vd.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${vd.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),NN=xe("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:t})=>({[`&.${vd.error}`]:{color:(t.vars||t).palette.error.main}}))),IN=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiFormLabel"}),{children:o,className:s,color:u,component:d="label",disabled:p,error:h,filled:m,focused:b,required:y,...v}=n,w=Ma(),C=xl({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),T={...n,color:C.color||"primary",component:d,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},M=_N(T);return c.jsxs(LN,{as:d,ownerState:T,className:Le(M.root,s),ref:r,...v,children:[o,C.required&&c.jsxs(NN,{ownerState:T,"aria-hidden":!0,className:M.asterisk,children:[" ","*"]})]})}),Dn=IO({createStyledComponent:xe("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.container&&e.container]}}),componentName:"MuiGrid",useThemeProps:t=>it({props:t,name:"MuiGrid"}),useTheme:ii});function W0(t){return`scale(${t}, ${t**2})`}const BN={entering:{opacity:1,transform:W0(1)},entered:{opacity:1,transform:"none"}},i0=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Id=S.forwardRef(function(e,r){const{addEndListener:n,appear:o=!0,children:s,easing:u,in:d,onEnter:p,onEntered:h,onEntering:m,onExit:b,onExited:y,onExiting:v,style:w,timeout:C="auto",TransitionComponent:T=mo,...M}=e,E=rs(),R=S.useRef(),j=ii(),k=S.useRef(null),P=qr(k,bl(s),r),z=$=>I=>{if($){const Q=k.current;I===void 0?$(Q):$(Q,I)}},_=z(m),B=z(($,I)=>{v4($);const{duration:Q,delay:ee,easing:J}=Ec({style:w,timeout:C,easing:u},{mode:"enter"});let L;C==="auto"?(L=j.transitions.getAutoHeightDuration($.clientHeight),R.current=L):L=Q,$.style.transition=[j.transitions.create("opacity",{duration:L,delay:ee}),j.transitions.create("transform",{duration:i0?L:L*.666,delay:ee,easing:J})].join(","),p&&p($,I)}),G=z(h),D=z(v),A=z($=>{const{duration:I,delay:Q,easing:ee}=Ec({style:w,timeout:C,easing:u},{mode:"exit"});let J;C==="auto"?(J=j.transitions.getAutoHeightDuration($.clientHeight),R.current=J):J=I,$.style.transition=[j.transitions.create("opacity",{duration:J,delay:Q}),j.transitions.create("transform",{duration:i0?J:J*.666,delay:i0?Q:Q||J*.333,easing:ee})].join(","),$.style.opacity=0,$.style.transform=W0(.75),b&&b($)}),Y=z(y),F=$=>{C==="auto"&&E.start(R.current||0,$),n&&n(k.current,$)};return c.jsx(T,{appear:o,in:d,nodeRef:k,onEnter:B,onEntered:G,onEntering:_,onExit:A,onExited:Y,onExiting:D,addEndListener:F,timeout:C==="auto"?null:C,...M,children:($,{ownerState:I,...Q})=>S.cloneElement(s,{style:{opacity:0,transform:W0(.75),visibility:$==="exited"&&!d?"hidden":void 0,...BN[$],...w,...s.props.style},ref:P,...Q})})});Id&&(Id.muiSupportAuto=!0);const zN=t=>{const{classes:e,disableUnderline:r}=t,o=rt({root:["root",!r&&"underline"],input:["input"]},x9,e);return{...e,...o}},$N=xe(pm,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[...um(t,e),!r.disableUnderline&&e.underline]}})(Xe(({theme:t})=>{let r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ja.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ja.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ja.disabled}, .${Ja.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ja.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(cr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}))]}})),DN=xe(fm,{name:"MuiInput",slot:"Input",overridesResolver:dm})({}),mm=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:h=!1,slotProps:m,slots:b={},type:y="text",...v}=n,w=zN(n),T={root:{ownerState:{disableUnderline:o}}},M=m??u?fn(m??u,T):T,E=b.root??s.Root??$N,R=b.input??s.Input??DN;return c.jsx(hm,{slots:{root:E,input:R},slotProps:M,fullWidth:d,inputComponent:p,multiline:h,ref:r,type:y,...v,classes:w})});mm.muiName="Input";function HN(t){return tt("MuiInputAdornment",t)}const tC=nt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var rC;const UN=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${ve(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},VN=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:n,position:o,size:s,variant:u}=t,d={root:["root",r&&"disablePointerEvents",o&&`position${ve(o)}`,u,n&&"hiddenLabel",s&&`size${ve(s)}`]};return rt(d,HN,e)},qN=xe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:UN})(Xe(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${tC.positionStart}&:not(.${tC.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Eh=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiInputAdornment"}),{children:o,className:s,component:u="div",disablePointerEvents:d=!1,disableTypography:p=!1,position:h,variant:m,...b}=n,y=Ma()||{};let v=m;m&&y.variant,y&&!v&&(v=y.variant);const w={...n,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:d,position:h,variant:v},C=VN(w);return c.jsx(cm.Provider,{value:null,children:c.jsx(qN,{as:u,ownerState:w,className:Le(C.root,s),ref:r,...b,children:typeof o=="string"&&!p?c.jsx(me,{color:"textSecondary",children:o}):c.jsxs(S.Fragment,{children:[h==="start"?rC||(rC=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,o]})})})});function FN(t){return tt("MuiInputLabel",t)}nt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const WN=t=>{const{classes:e,formControl:r,size:n,shrink:o,disableAnimation:s,variant:u,required:d}=t,p={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&n!=="medium"&&`size${ve(n)}`,u],asterisk:[d&&"asterisk"]},h=rt(p,FN,e);return{...e,...h}},GN=xe(IN,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${vd.asterisk}`]:e.asterisk},e.root,r.formControl&&e.formControl,r.size==="small"&&e.sizeSmall,r.shrink&&e.shrink,!r.disableAnimation&&e.animated,r.focused&&e.focused,e[r.variant]]}})(Xe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:r,size:n})=>e==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:r})=>e==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ls=S.forwardRef(function(e,r){const n=it({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:s,shrink:u,variant:d,className:p,...h}=n,m=Ma();let b=u;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const y=xl({props:n,muiFormControl:m,states:["size","variant","required","focused"]}),v={...n,disableAnimation:o,formControl:m,shrink:b,size:y.size,variant:y.variant,required:y.required,focused:y.focused},w=WN(v);return c.jsx(GN,{"data-shrink":b,ref:r,className:Le(w.root,p),...h,ownerState:v,classes:w})});function XN(t){return tt("MuiLinearProgress",t)}nt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const G0=4,X0=Go`
|
|
229
|
-
0% {
|
|
230
|
-
left: -35%;
|
|
231
|
-
right: 100%;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
60% {
|
|
235
|
-
left: 100%;
|
|
236
|
-
right: -90%;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
100% {
|
|
240
|
-
left: 100%;
|
|
241
|
-
right: -90%;
|
|
242
|
-
}
|
|
243
|
-
`,YN=typeof X0!="string"?ys`
|
|
244
|
-
animation: ${X0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
245
|
-
`:null,Y0=Go`
|
|
246
|
-
0% {
|
|
247
|
-
left: -200%;
|
|
248
|
-
right: 100%;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
60% {
|
|
252
|
-
left: 107%;
|
|
253
|
-
right: -8%;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
100% {
|
|
257
|
-
left: 107%;
|
|
258
|
-
right: -8%;
|
|
259
|
-
}
|
|
260
|
-
`,QN=typeof Y0!="string"?ys`
|
|
261
|
-
animation: ${Y0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
262
|
-
`:null,Q0=Go`
|
|
263
|
-
0% {
|
|
264
|
-
opacity: 1;
|
|
265
|
-
background-position: 0 -23px;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
60% {
|
|
269
|
-
opacity: 0;
|
|
270
|
-
background-position: 0 -23px;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
100% {
|
|
274
|
-
opacity: 1;
|
|
275
|
-
background-position: -200px -23px;
|
|
276
|
-
}
|
|
277
|
-
`,KN=typeof Q0!="string"?ys`
|
|
278
|
-
animation: ${Q0} 3s infinite linear;
|
|
279
|
-
`:null,ZN=t=>{const{classes:e,variant:r,color:n}=t,o={root:["root",`color${ve(n)}`,r],dashed:["dashed",`dashedColor${ve(n)}`],bar1:["bar","bar1",`barColor${ve(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${ve(n)}`,r==="buffer"&&`color${ve(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return rt(o,XN,e)},sb=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.5),JN=xe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`color${ve(r.color)}`],e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{backgroundColor:sb(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),e7=xe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.dashed,e[`dashedColor${ve(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(cr()).map(([e])=>{const r=sb(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),KN||{animation:`${Q0} 3s infinite linear`}),t7=xe("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar1,e[`barColor${ve(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar1Indeterminate,r.variant==="determinate"&&e.bar1Determinate,r.variant==="buffer"&&e.bar1Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${G0}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${G0}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:YN||{animation:`${X0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),r7=xe("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.bar,e.bar2,e[`barColor${ve(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&e.bar2Indeterminate,r.variant==="buffer"&&e.bar2Buffer]}})(Xe(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:sb(t,e),transition:`transform .${G0}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:QN||{animation:`${Y0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),gm=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:u,valueBuffer:d,variant:p="indeterminate",...h}=n,m={...n,color:s,variant:p},b=ZN(m),y=vs(),v={},w={bar1:{},bar2:{}};if((p==="determinate"||p==="buffer")&&u!==void 0){v["aria-valuenow"]=Math.round(u),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let C=u-100;y&&(C=-C),w.bar1.transform=`translateX(${C}%)`}if(p==="buffer"&&d!==void 0){let C=(d||0)-100;y&&(C=-C),w.bar2.transform=`translateX(${C}%)`}return c.jsxs(JN,{className:Le(b.root,o),ownerState:m,role:"progressbar",...v,ref:r,...h,children:[p==="buffer"?c.jsx(e7,{className:b.dashed,ownerState:m}):null,c.jsx(t7,{className:b.bar1,ownerState:m,style:w.bar1}),p==="determinate"?null:c.jsx(r7,{className:b.bar2,ownerState:m,style:w.bar2})]})});function n7(t){return tt("MuiLink",t)}const i7=nt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),o7=({theme:t,ownerState:e})=>{const r=e.color;if("colorSpace"in t&&t.colorSpace){const s=Lo(t,`palette.${r}.main`)||Lo(t,`palette.${r}`)||e.color;return t.alpha(s,.4)}const n=Lo(t,`palette.${r}.main`,!1)||Lo(t,`palette.${r}`,!1)||e.color,o=Lo(t,`palette.${r}.mainChannel`)||Lo(t,`palette.${r}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Pd(n,.4)},nC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},a7=t=>{const{classes:e,component:r,focusVisible:n,underline:o}=t,s={root:["root",`underline${ve(o)}`,r==="button"&&"button",n&&"focusVisible"]};return rt(s,n7,e)},s7=xe(me,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`underline${ve(r.underline)}`],r.component==="button"&&e.button]}})(Xe(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:r})=>e==="always"&&r.color==="inherit",style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${i7.focusVisible}`]:{outline:"auto"}}}]}))),l7=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiLink"}),o=ii(),{className:s,color:u="primary",component:d="a",onBlur:p,onFocus:h,TypographyClasses:m,underline:b="always",variant:y="inherit",sx:v,...w}=n,[C,T]=S.useState(!1),M=k=>{jc(k.target)||T(!1),p&&p(k)},E=k=>{jc(k.target)&&T(!0),h&&h(k)},R={...n,color:u,component:d,focusVisible:C,underline:b,variant:y},j=a7(R);return c.jsx(s7,{color:u,className:Le(j.root,s),classes:m,component:d,onBlur:M,onFocus:E,ref:r,ownerState:R,variant:y,...w,sx:[...nC[u]===void 0?[{color:u}]:[],...Array.isArray(v)?v:[v]],style:{...w.style,...b==="always"&&u!=="inherit"&&!nC[u]&&{"--Link-underlineColor":o7({theme:o,ownerState:R})}}})}),Bd=S.createContext({});function c7(t){return tt("MuiList",t)}nt("MuiList",["root","padding","dense","subheader"]);const u7=t=>{const{classes:e,disablePadding:r,dense:n,subheader:o}=t;return rt({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},c7,e)},d7=xe("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disablePadding&&e.padding,r.dense&&e.dense,r.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),p7=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiList"}),{children:o,className:s,component:u="ul",dense:d=!1,disablePadding:p=!1,subheader:h,...m}=n,b=S.useMemo(()=>({dense:d}),[d]),y={...n,component:u,dense:d,disablePadding:p},v=u7(y);return c.jsx(Bd.Provider,{value:b,children:c.jsxs(d7,{as:u,className:Le(v.root,s),ref:r,ownerState:y,...m,children:[h,o]})})});function f7(t){return tt("MuiListItemIcon",t)}const iC=nt("MuiListItemIcon",["root","alignItemsFlexStart"]),h7=t=>{const{alignItems:e,classes:r}=t;return rt({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},f7,r)},m7=xe("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Xe(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ah=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiListItemIcon"}),{className:o,...s}=n,u=S.useContext(Bd),d={...n,alignItems:u.alignItems},p=h7(d);return c.jsx(m7,{className:Le(p.root,o),ownerState:d,ref:r,...s})});function g7(t){return tt("MuiListItemText",t)}const mc=nt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),y7=t=>{const{classes:e,inset:r,primary:n,secondary:o,dense:s}=t;return rt({root:["root",r&&"inset",s&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},g7,e)},v7=xe("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${mc.primary}`]:e.primary},{[`& .${mc.secondary}`]:e.secondary},e.root,r.inset&&e.inset,r.primary&&r.secondary&&e.multiline,r.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${T2.root}:where(& .${mc.primary})`]:{display:"block"},[`.${T2.root}:where(& .${mc.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),sh=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiListItemText"}),{children:o,className:s,disableTypography:u=!1,inset:d=!1,primary:p,primaryTypographyProps:h,secondary:m,secondaryTypographyProps:b,slots:y={},slotProps:v={},...w}=n,{dense:C}=S.useContext(Bd);let T=p??o,M=m;const E={...n,disableTypography:u,inset:d,primary:!!T,secondary:!!M,dense:C},R=y7(E),j={slots:y,slotProps:{primary:h,secondary:b,...v}},[k,P]=Ke("root",{className:Le(R.root,s),elementType:v7,externalForwardedProps:{...j,...w},ownerState:E,ref:r}),[z,_]=Ke("primary",{className:R.primary,elementType:me,externalForwardedProps:j,ownerState:E}),[B,G]=Ke("secondary",{className:R.secondary,elementType:me,externalForwardedProps:j,ownerState:E});return T!=null&&T.type!==me&&!u&&(T=c.jsx(z,{variant:C?"body2":"body1",component:_!=null&&_.variant?void 0:"span",..._,children:T})),M!=null&&M.type!==me&&!u&&(M=c.jsx(B,{variant:"body2",color:"textSecondary",...G,children:M})),c.jsxs(k,{...P,children:[T,M]})});function o0(t,e,r){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:r?null:t.firstChild}function oC(t,e,r){return t===e?r?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:r?null:t.lastChild}function G4(t,e){if(e===void 0)return!0;let r=t.innerText;return r===void 0&&(r=t.textContent),r=r.trim().toLowerCase(),r.length===0?!1:e.repeating?r[0]===e.keys[0]:r.startsWith(e.keys.join(""))}function Qu(t,e,r,n,o,s){let u=!1,d=o(t,e,e?r:!1);for(;d;){if(d===t.firstChild){if(u)return!1;u=!0}const p=n?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!G4(d,s)||p)d=o(t,d,r);else return d.focus(),!0}return!1}const b7=S.forwardRef(function(e,r){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:u,className:d,disabledItemsFocusable:p=!1,disableListWrap:h=!1,onKeyDown:m,variant:b="selectedMenu",...y}=e,v=S.useRef(null),w=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ei(()=>{o&&v.current.focus()},[o]),S.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(R,{direction:j})=>{const k=!v.current.style.width;if(R.clientHeight<v.current.clientHeight&&k){const P=`${D4(uo(R))}px`;v.current.style[j==="rtl"?"paddingLeft":"paddingRight"]=P,v.current.style.width=`calc(100% + ${P})`}return v.current}}),[]);const C=R=>{const j=v.current,k=R.key;if(R.ctrlKey||R.metaKey||R.altKey){m&&m(R);return}const z=Cn(j).activeElement;if(k==="ArrowDown")R.preventDefault(),Qu(j,z,h,p,o0);else if(k==="ArrowUp")R.preventDefault(),Qu(j,z,h,p,oC);else if(k==="Home")R.preventDefault(),Qu(j,null,h,p,o0);else if(k==="End")R.preventDefault(),Qu(j,null,h,p,oC);else if(k.length===1){const _=w.current,B=k.toLowerCase(),G=performance.now();_.keys.length>0&&(G-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&B!==_.keys[0]&&(_.repeating=!1)),_.lastTime=G,_.keys.push(B);const D=z&&!_.repeating&&G4(z,_);_.previousKeyMatched&&(D||Qu(j,z,!1,p,o0,_))?R.preventDefault():_.previousKeyMatched=!1}m&&m(R)},T=qr(v,r);let M=-1;S.Children.forEach(u,(R,j)=>{if(!S.isValidElement(R)){M===j&&(M+=1,M>=u.length&&(M=-1));return}R.props.disabled||(b==="selectedMenu"&&R.props.selected||M===-1)&&(M=j),M===j&&(R.props.disabled||R.props.muiSkipListHighlight||R.type.muiSkipListHighlight)&&(M+=1,M>=u.length&&(M=-1))});const E=S.Children.map(u,(R,j)=>{if(j===M){const k={};return s&&(k.autoFocus=!0),R.props.tabIndex===void 0&&b==="selectedMenu"&&(k.tabIndex=0),S.cloneElement(R,k)}return R});return c.jsx(p7,{role:"menu",ref:T,className:d,onKeyDown:C,tabIndex:o?0:-1,...y,children:E})});function x7(t){return tt("MuiPopover",t)}nt("MuiPopover",["root","paper"]);function aC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.height/2:e==="bottom"&&(r=t.height),r}function sC(t,e){let r=0;return typeof e=="number"?r=e:e==="center"?r=t.width/2:e==="right"&&(r=t.width),r}function lC(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Of(t){return typeof t=="function"?t():t}const S7=t=>{const{classes:e}=t;return rt({root:["root"],paper:["paper"]},x7,e)},w7=xe(H4,{name:"MuiPopover",slot:"Root"})({}),X4=xe(Fr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),C7=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:p="anchorEl",children:h,className:m,container:b,elevation:y=8,marginThreshold:v=16,open:w,PaperProps:C={},slots:T={},slotProps:M={},transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:R,transitionDuration:j="auto",TransitionProps:k={},disableScrollLock:P=!1,...z}=n,_=S.useRef(),B={...n,anchorOrigin:u,anchorReference:p,elevation:y,marginThreshold:v,transformOrigin:E,TransitionComponent:R,transitionDuration:j,TransitionProps:k},G=S7(B),D=S.useCallback(()=>{if(p==="anchorPosition")return d;const se=Of(s),ze=(se&&se.nodeType===1?se:Cn(_.current).body).getBoundingClientRect();return{top:ze.top+aC(ze,u.vertical),left:ze.left+sC(ze,u.horizontal)}},[s,u.horizontal,u.vertical,d,p]),A=S.useCallback(se=>({vertical:aC(se,E.vertical),horizontal:sC(se,E.horizontal)}),[E.horizontal,E.vertical]),Y=S.useCallback(se=>{const De={width:se.offsetWidth,height:se.offsetHeight},ze=A(De);if(p==="none")return{top:null,left:null,transformOrigin:lC(ze)};const Be=D();let Ve=Be.top-ze.vertical,Ie=Be.left-ze.horizontal;const We=Ve+De.height,ct=Ie+De.width,le=uo(Of(s)),Ze=le.innerHeight-v,Fe=le.innerWidth-v;if(v!==null&&Ve<v){const ft=Ve-v;Ve-=ft,ze.vertical+=ft}else if(v!==null&&We>Ze){const ft=We-Ze;Ve-=ft,ze.vertical+=ft}if(v!==null&&Ie<v){const ft=Ie-v;Ie-=ft,ze.horizontal+=ft}else if(ct>Fe){const ft=ct-Fe;Ie-=ft,ze.horizontal+=ft}return{top:`${Math.round(Ve)}px`,left:`${Math.round(Ie)}px`,transformOrigin:lC(ze)}},[s,p,D,A,v]),[F,$]=S.useState(w),I=S.useCallback(()=>{const se=_.current;if(!se)return;const De=Y(se);De.top!==null&&se.style.setProperty("top",De.top),De.left!==null&&(se.style.left=De.left),se.style.transformOrigin=De.transformOrigin,$(!0)},[Y]);S.useEffect(()=>(P&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[s,P,I]);const Q=()=>{I()},ee=()=>{$(!1)};S.useEffect(()=>{w&&I()}),S.useImperativeHandle(o,()=>w?{updatePosition:()=>{I()}}:null,[w,I]),S.useEffect(()=>{if(!w)return;const se=om(()=>{I()}),De=uo(Of(s));return De.addEventListener("resize",se),()=>{se.clear(),De.removeEventListener("resize",se)}},[s,w,I]);let J=j;const L={slots:{transition:R,...T},slotProps:{transition:k,paper:C,...M}},[oe,ue]=Ke("transition",{elementType:Id,externalForwardedProps:L,ownerState:B,getSlotProps:se=>({...se,onEntering:(De,ze)=>{var Be;(Be=se.onEntering)==null||Be.call(se,De,ze),Q()},onExited:De=>{var ze;(ze=se.onExited)==null||ze.call(se,De),ee()}}),additionalProps:{appear:!0,in:w}});j==="auto"&&!oe.muiSupportAuto&&(J=void 0);const ce=b||(s?Cn(Of(s)).body:void 0),[K,{slots:re,slotProps:Z,...ye}]=Ke("root",{ref:r,elementType:w7,externalForwardedProps:{...L,...z},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:T.backdrop},slotProps:{backdrop:h4(typeof M.backdrop=="function"?M.backdrop(B):M.backdrop,{invisible:!0})},container:ce,open:w},ownerState:B,className:Le(G.root,m)}),[Ce,be]=Ke("paper",{ref:_,className:G.paper,elementType:X4,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:F?void 0:{opacity:0}},ownerState:B});return c.jsx(K,{...ye,...!bh(K)&&{slots:re,slotProps:Z,disableScrollLock:P},children:c.jsx(oe,{...ue,timeout:J,children:c.jsx(Ce,{...be,children:h})})})});function T7(t){return tt("MuiMenu",t)}nt("MuiMenu",["root","paper","list"]);const E7={vertical:"top",horizontal:"right"},j7={vertical:"top",horizontal:"left"},A7=t=>{const{classes:e}=t;return rt({root:["root"],paper:["paper"],list:["list"]},T7,e)},M7=xe(C7,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),R7=xe(X4,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),k7=xe(b7,{name:"MuiMenu",slot:"List"})({outline:0}),ym=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:u,disableAutoFocusItem:d=!1,MenuListProps:p={},onClose:h,open:m,PaperProps:b={},PopoverClasses:y,transitionDuration:v="auto",TransitionProps:{onEntering:w,...C}={},variant:T="selectedMenu",slots:M={},slotProps:E={},...R}=n,j=vs(),k={...n,autoFocus:o,disableAutoFocusItem:d,MenuListProps:p,onEntering:w,PaperProps:b,transitionDuration:v,TransitionProps:C,variant:T},P=A7(k),z=o&&!d&&m,_=S.useRef(null),B=(J,L)=>{_.current&&_.current.adjustStyleForScrollbar(J,{direction:j?"rtl":"ltr"}),w&&w(J,L)},G=J=>{J.key==="Tab"&&(J.preventDefault(),h&&h(J,"tabKeyDown"))};let D=-1;S.Children.map(s,(J,L)=>{S.isValidElement(J)&&(J.props.disabled||(T==="selectedMenu"&&J.props.selected||D===-1)&&(D=L))});const A={slots:M,slotProps:{list:p,transition:C,paper:b,...E}},Y=Oc({elementType:M.root,externalSlotProps:E.root,ownerState:k,className:[P.root,u]}),[F,$]=Ke("paper",{className:P.paper,elementType:R7,externalForwardedProps:A,shouldForwardComponentProp:!0,ownerState:k}),[I,Q]=Ke("list",{className:Le(P.list,p.className),elementType:k7,shouldForwardComponentProp:!0,externalForwardedProps:A,getSlotProps:J=>({...J,onKeyDown:L=>{var oe;G(L),(oe=J.onKeyDown)==null||oe.call(J,L)}}),ownerState:k}),ee=typeof A.slotProps.transition=="function"?A.slotProps.transition(k):A.slotProps.transition;return c.jsx(M7,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:j?"right":"left"},transformOrigin:j?E7:j7,slots:{root:M.root,paper:F,backdrop:M.backdrop,...M.transition&&{transition:M.transition}},slotProps:{root:Y,paper:$,backdrop:typeof E.backdrop=="function"?E.backdrop(k):E.backdrop,transition:{...ee,onEntering:(...J)=>{var L;B(...J),(L=ee==null?void 0:ee.onEntering)==null||L.call(ee,...J)}}},open:m,ref:r,transitionDuration:v,ownerState:k,...R,classes:y,children:c.jsx(I,{actions:_,autoFocus:o&&(D===-1||d),autoFocusItem:z,variant:T,...Q,children:s})})});function O7(t){return tt("MuiMenuItem",t)}const Ku=nt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),P7=(t,e)=>{const{ownerState:r}=t;return[e.root,r.dense&&e.dense,r.divider&&e.divider,!r.disableGutters&&e.gutters]},_7=t=>{const{disabled:e,dense:r,divider:n,disableGutters:o,selected:s,classes:u}=t,p=rt({root:["root",r&&"dense",e&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},O7,u);return{...u,...p}},L7=xe(po,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:P7})(Xe(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ku.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Ku.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${Ku.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${Ku.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Ku.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${Z2.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${Z2.inset}`]:{marginLeft:52},[`& .${mc.root}`]:{marginTop:0,marginBottom:0},[`& .${mc.inset}`]:{paddingLeft:36},[`& .${iC.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${iC.root} svg`]:{fontSize:"1.25rem"}}}]}))),Mr=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:u=!1,divider:d=!1,disableGutters:p=!1,focusVisibleClassName:h,role:m="menuitem",tabIndex:b,className:y,...v}=n,w=S.useContext(Bd),C=S.useMemo(()=>({dense:u||w.dense||!1,disableGutters:p}),[w.dense,u,p]),T=S.useRef(null);ei(()=>{o&&T.current&&T.current.focus()},[o]);const M={...n,dense:C.dense,divider:d,disableGutters:p},E=_7(n),R=qr(T,r);let j;return n.disabled||(j=b!==void 0?b:-1),c.jsx(Bd.Provider,{value:C,children:c.jsx(L7,{ref:R,role:m,tabIndex:j,component:s,focusVisibleClassName:Le(E.focusVisible,h),className:Le(E.root,y),...v,ownerState:M,classes:E})})});function N7(t){return tt("MuiNativeSelect",t)}const lb=nt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),I7=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:u}=t,d={select:["select",r,n&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${ve(r)}`,s&&"iconOpen",n&&"disabled"]};return rt(d,N7,e)},Y4=xe("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${lb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),B7=xe(Y4,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:oi,overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.select,e[r.variant],r.error&&e.error,{[`&.${lb.multiple}`]:e.multiple}]}})({}),Q4=xe("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lb.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),z7=xe(Q4,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ve(r.variant)}`],r.open&&e.iconOpen]}})({}),$7=S.forwardRef(function(e,r){const{className:n,disabled:o,error:s,IconComponent:u,inputRef:d,variant:p="standard",...h}=e,m={...e,disabled:o,variant:p,error:s},b=I7(m);return c.jsxs(S.Fragment,{children:[c.jsx(B7,{ownerState:m,className:Le(b.select,n),disabled:o,ref:d||r,...h}),e.multiple?null:c.jsx(z7,{as:u,ownerState:m,className:b.icon})]})});var cC;const D7=xe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:oi})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),H7=xe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:oi})(Xe(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function U7(t){const{children:e,classes:r,className:n,label:o,notched:s,...u}=t,d=o!=null&&o!=="",p={...t,notched:s,withLabel:d};return c.jsx(D7,{"aria-hidden":!0,className:n,ownerState:p,...u,children:c.jsx(H7,{ownerState:p,children:d?c.jsx("span",{children:o}):cC||(cC=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const V7=t=>{const{classes:e}=t,n=rt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},S9,e);return{...e,...n}},q7=xe(pm,{shouldForwardProp:t=>oi(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:um})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${$i.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${$i.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}},[`&.${$i.focused} .${$i.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(cr()).map(([r])=>({props:{color:r},style:{[`&.${$i.focused} .${$i.notchedOutline}`]:{borderColor:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${$i.error} .${$i.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${$i.disabled} .${$i.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),F7=xe(U7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}})),W7=xe(fm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dm})(Xe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),cb=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:h,slots:m={},slotProps:b={},type:y="text",...v}=n,w=V7(n),C=Ma(),T=xl({props:n,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),M={...n,color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:C,fullWidth:s,hiddenLabel:T.hiddenLabel,multiline:p,size:T.size,type:y},E=m.root??o.Root??q7,R=m.input??o.Input??W7,[j,k]=Ke("notchedOutline",{elementType:F7,className:w.notchedOutline,shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{slots:m,slotProps:b},additionalProps:{label:d!=null&&d!==""&&T.required?c.jsxs(S.Fragment,{children:[d," ","*"]}):d}});return c.jsx(hm,{slots:{root:E,input:R},slotProps:b,renderSuffix:P=>c.jsx(j,{...k,notched:typeof h<"u"?h:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:u,multiline:p,ref:r,type:y,...v,classes:{...w,notchedOutline:null}})});cb.muiName="Input";function G7(t){return tt("MuiPagination",t)}nt("MuiPagination",["root","ul","outlined","text"]);function X7(t={}){const{boundaryCount:e=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:s=!1,hideNextButton:u=!1,hidePrevButton:d=!1,onChange:p,page:h,showFirstButton:m=!1,showLastButton:b=!1,siblingCount:y=1,...v}=t,[w,C]=os({controlled:h,default:o,name:r,state:"page"}),T=(B,G)=>{h||C(G),p&&p(B,G)},M=(B,G)=>{const D=G-B+1;return Array.from({length:D},(A,Y)=>B+Y)},E=M(1,Math.min(e,n)),R=M(Math.max(n-e+1,e+1),n),j=Math.max(Math.min(w-y,n-e-y*2-1),e+2),k=Math.min(Math.max(w+y,e+y*2+2),n-e-1),P=[...m?["first"]:[],...d?[]:["previous"],...E,...j>e+2?["start-ellipsis"]:e+1<n-e?[e+1]:[],...M(j,k),...k<n-e-1?["end-ellipsis"]:n-e>e?[n-e]:[],...R,...u?[]:["next"],...b?["last"]:[]],z=B=>{switch(B){case"first":return 1;case"previous":return w-1;case"next":return w+1;case"last":return n;default:return null}};return{items:P.map(B=>typeof B=="number"?{onClick:G=>{T(G,B)},type:"page",page:B,selected:B===w,disabled:s,"aria-current":B===w?"page":void 0}:{onClick:G=>{T(G,z(B))},type:B,page:z(B),selected:!1,disabled:s||!B.includes("ellipsis")&&(B==="next"||B==="last"?w>=n:w<=1)}),...v}}function Y7(t){return tt("MuiPaginationItem",t)}const Nn=nt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),K4=Ae(c.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Z4=Ae(c.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Q7=Ae(c.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),K7=Ae(c.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),J4=(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ve(r.size)}`],r.variant==="text"&&e[`text${ve(r.color)}`],r.variant==="outlined"&&e[`outlined${ve(r.color)}`],r.shape==="rounded"&&e.rounded,r.type==="page"&&e.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&e.ellipsis,(r.type==="previous"||r.type==="next")&&e.previousNext,(r.type==="first"||r.type==="last")&&e.firstLast]},Z7=t=>{const{classes:e,color:r,disabled:n,selected:o,size:s,shape:u,type:d,variant:p}=t,h={root:["root",`size${ve(s)}`,p,u,r!=="standard"&&`color${ve(r)}`,r!=="standard"&&`${p}${ve(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[d]],icon:["icon"]};return rt(h,Y7,e)},J7=xe("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:J4})(Xe(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${Nn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}}]}))),eI=xe(po,{name:"MuiPaginationItem",slot:"Root",overridesResolver:J4})(Xe(({theme:t})=>({...t.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${Nn.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Nn.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${Nn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},[`&.${Nn.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"outlined"},style:{border:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Nn.selected}`]:{[`&.${Nn.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Nn.selected}`]:{[`&.${Nn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}},...Object.entries(t.palette).filter(cr(["dark","contrastText"])).map(([e])=>({props:{variant:"text",color:e},style:{[`&.${Nn.selected}`]:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}},[`&.${Nn.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark},[`&.${Nn.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),...Object.entries(t.palette).filter(cr(["light"])).map(([e])=>({props:{variant:"outlined",color:e},style:{[`&.${Nn.selected}`]:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.5)}`,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.activatedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.activatedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))]}))),tI=xe("div",{name:"MuiPaginationItem",slot:"Icon"})(Xe(({theme:t})=>({fontSize:t.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(22)}}]}))),rI=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiPaginationItem"}),{className:o,color:s="standard",component:u,components:d={},disabled:p=!1,page:h,selected:m=!1,shape:b="circular",size:y="medium",slots:v={},slotProps:w={},type:C="page",variant:T="text",...M}=n,E={...n,color:s,disabled:p,selected:m,shape:b,size:y,type:C,variant:T},R=vs(),j=Z7(E),k={slots:{previous:v.previous??d.previous,next:v.next??d.next,first:v.first??d.first,last:v.last??d.last},slotProps:w},[P,z]=Ke("previous",{elementType:Q7,externalForwardedProps:k,ownerState:E}),[_,B]=Ke("next",{elementType:K7,externalForwardedProps:k,ownerState:E}),[G,D]=Ke("first",{elementType:K4,externalForwardedProps:k,ownerState:E}),[A,Y]=Ke("last",{elementType:Z4,externalForwardedProps:k,ownerState:E}),F=R?{previous:"next",next:"previous",first:"last",last:"first"}[C]:C,$={previous:P,next:_,first:G,last:A}[F],I={previous:z,next:B,first:D,last:Y}[F];return C==="start-ellipsis"||C==="end-ellipsis"?c.jsx(J7,{ref:r,ownerState:E,className:Le(j.root,o),children:"…"}):c.jsxs(eI,{ref:r,ownerState:E,component:u,disabled:p,className:Le(j.root,o),...M,children:[C==="page"&&h,$?c.jsx(tI,{...I,className:j.icon,as:$}):null]})}),nI=t=>{const{classes:e,variant:r}=t;return rt({root:["root",r],ul:["ul"]},G7,e)},iI=xe("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant]]}})({}),oI=xe("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function aI(t,e,r){return t==="page"?`${r?"":"Go to "}page ${e}`:`Go to ${t} page`}const sI=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiPagination"}),{boundaryCount:o=1,className:s,color:u="standard",count:d=1,defaultPage:p=1,disabled:h=!1,getItemAriaLabel:m=aI,hideNextButton:b=!1,hidePrevButton:y=!1,onChange:v,page:w,renderItem:C=G=>c.jsx(rI,{...G}),shape:T="circular",showFirstButton:M=!1,showLastButton:E=!1,siblingCount:R=1,size:j="medium",variant:k="text",...P}=n,{items:z}=X7({...n,componentName:"Pagination"}),_={...n,boundaryCount:o,color:u,count:d,defaultPage:p,disabled:h,getItemAriaLabel:m,hideNextButton:b,hidePrevButton:y,renderItem:C,shape:T,showFirstButton:M,showLastButton:E,siblingCount:R,size:j,variant:k},B=nI(_);return c.jsx(iI,{"aria-label":"pagination navigation",className:Le(B.root,s),ownerState:_,ref:r,...P,children:c.jsx(oI,{className:B.ul,ownerState:_,children:z.map((G,D)=>c.jsx("li",{children:C({...G,color:u,"aria-label":m(G.type,G.page,G.selected),shape:T,size:j,variant:k})},D))})})});function e5(t){return tt("MuiSelect",t)}const Zu=nt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var uC;const lI=xe(Y4,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`&.${Zu.select}`]:e.select},{[`&.${Zu.select}`]:e[r.variant]},{[`&.${Zu.error}`]:e.error},{[`&.${Zu.multiple}`]:e.multiple}]}})({[`&.${Zu.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cI=xe(Q4,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.icon,r.variant&&e[`icon${ve(r.variant)}`],r.open&&e.iconOpen]}})({}),uI=xe("input",{shouldForwardProp:t=>f4(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dC(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function dI(t){return t==null||typeof t=="string"&&!t.trim()}const pI=t=>{const{classes:e,variant:r,disabled:n,multiple:o,open:s,error:u}=t,d={select:["select",r,n&&"disabled",o&&"multiple",u&&"error"],icon:["icon",`icon${ve(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return rt(d,e5,e)},fI=S.forwardRef(function(e,r){var yt,Gt,Xt,yn;const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:u,children:d,className:p,defaultOpen:h,defaultValue:m,disabled:b,displayEmpty:y,error:v=!1,IconComponent:w,inputRef:C,labelId:T,MenuProps:M={},multiple:E,name:R,onBlur:j,onChange:k,onClose:P,onFocus:z,onOpen:_,open:B,readOnly:G,renderValue:D,required:A,SelectDisplayProps:Y={},tabIndex:F,type:$,value:I,variant:Q="standard",...ee}=e,[J,L]=os({controlled:I,default:m,name:"Select"}),[oe,ue]=os({controlled:B,default:h,name:"Select"}),ce=S.useRef(null),K=S.useRef(null),[re,Z]=S.useState(null),{current:ye}=S.useRef(B!=null),[Ce,be]=S.useState(),se=qr(r,C),De=S.useCallback(ut=>{K.current=ut,ut&&Z(ut)},[]),ze=re==null?void 0:re.parentNode;S.useImperativeHandle(se,()=>({focus:()=>{K.current.focus()},node:ce.current,value:J}),[J]),S.useEffect(()=>{h&&oe&&re&&!ye&&(be(u?null:ze.clientWidth),K.current.focus())},[re,u]),S.useEffect(()=>{s&&K.current.focus()},[s]),S.useEffect(()=>{if(!T)return;const ut=Cn(K.current).getElementById(T);if(ut){const Vt=()=>{getSelection().isCollapsed&&K.current.focus()};return ut.addEventListener("click",Vt),()=>{ut.removeEventListener("click",Vt)}}},[T]);const Be=(ut,Vt)=>{ut?_&&_(Vt):P&&P(Vt),ye||(be(u?null:ze.clientWidth),ue(ut))},Ve=ut=>{ut.button===0&&(ut.preventDefault(),K.current.focus(),Be(!0,ut))},Ie=ut=>{Be(!1,ut)},We=S.Children.toArray(d),ct=ut=>{const Vt=We.find(Yt=>Yt.props.value===ut.target.value);Vt!==void 0&&(L(Vt.props.value),k&&k(ut,Vt))},le=ut=>Vt=>{let Yt;if(Vt.currentTarget.hasAttribute("tabindex")){if(E){Yt=Array.isArray(J)?J.slice():[];const yr=J.indexOf(ut.props.value);yr===-1?Yt.push(ut.props.value):Yt.splice(yr,1)}else Yt=ut.props.value;if(ut.props.onClick&&ut.props.onClick(Vt),J!==Yt&&(L(Yt),k)){const yr=Vt.nativeEvent||Vt,Nr=new yr.constructor(yr.type,yr);Object.defineProperty(Nr,"target",{writable:!0,value:{value:Yt,name:R}}),k(Nr,ut)}E||Be(!1,Vt)}},Ze=ut=>{G||[" ","ArrowUp","ArrowDown","Enter"].includes(ut.key)&&(ut.preventDefault(),Be(!0,ut))},Fe=re!==null&&oe,ft=ut=>{!Fe&&j&&(Object.defineProperty(ut,"target",{writable:!0,value:{value:J,name:R}}),j(ut))};delete ee["aria-invalid"];let Ue,kt;const at=[];let fe=!1;(Ch({value:J})||y)&&(D?Ue=D(J):fe=!0);const we=We.map(ut=>{if(!S.isValidElement(ut))return null;let Vt;if(E){if(!Array.isArray(J))throw new Error(xa(2));Vt=J.some(Yt=>dC(Yt,ut.props.value)),Vt&&fe&&at.push(ut.props.children)}else Vt=dC(J,ut.props.value),Vt&&fe&&(kt=ut.props.children);return S.cloneElement(ut,{"aria-selected":Vt?"true":"false",onClick:le(ut),onKeyUp:Yt=>{Yt.key===" "&&Yt.preventDefault(),ut.props.onKeyUp&&ut.props.onKeyUp(Yt)},role:"option",selected:Vt,value:void 0,"data-value":ut.props.value})});fe&&(E?at.length===0?Ue=null:Ue=at.reduce((ut,Vt,Yt)=>(ut.push(Vt),Yt<at.length-1&&ut.push(", "),ut),[]):Ue=kt);let ke=Ce;!u&&ye&&re&&(ke=ze.clientWidth);let _e;typeof F<"u"?_e=F:_e=b?null:0;const Ge=Y.id||(R?`mui-component-select-${R}`:void 0),Je={...e,variant:Q,value:J,open:Fe,error:v},ie=pI(Je),Pe={...M.PaperProps,...typeof((yt=M.slotProps)==null?void 0:yt.paper)=="function"?M.slotProps.paper(Je):(Gt=M.slotProps)==null?void 0:Gt.paper},He={...M.MenuListProps,...typeof((Xt=M.slotProps)==null?void 0:Xt.list)=="function"?M.slotProps.list(Je):(yn=M.slotProps)==null?void 0:yn.list},$e=$o();return c.jsxs(S.Fragment,{children:[c.jsx(lI,{as:"div",ref:De,tabIndex:_e,role:"combobox","aria-controls":Fe?$e:void 0,"aria-disabled":b?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[T,Ge].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":A?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:Ze,onMouseDown:b||G?null:Ve,onBlur:ft,onFocus:z,...Y,ownerState:Je,className:Le(Y.className,ie.select,p),id:Ge,children:dI(Ue)?uC||(uC=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Ue}),c.jsx(uI,{"aria-invalid":v,value:Array.isArray(J)?J.join(","):J,name:R,ref:ce,"aria-hidden":!0,onChange:ct,tabIndex:-1,disabled:b,className:ie.nativeInput,autoFocus:s,required:A,...ee,ownerState:Je}),c.jsx(cI,{as:w,className:ie.icon,ownerState:Je}),c.jsx(ym,{id:`menu-${R||""}`,anchorEl:ze,open:Fe,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...M,slotProps:{...M.slotProps,list:{"aria-labelledby":T,role:"listbox","aria-multiselectable":E?"true":void 0,disableListWrap:!0,id:$e,...He},paper:{...Pe,style:{minWidth:ke,...Pe!=null?Pe.style:null}}},children:we})]})}),hI=t=>{const{classes:e}=t,n=rt({root:["root"]},e5,e);return{...e,...n}},ub={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>oi(t)&&t!=="variant"},mI=xe(mm,ub)(""),gI=xe(cb,ub)(""),yI=xe(ab,ub)(""),wa=S.forwardRef(function(e,r){const n=it({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:s,classes:u={},className:d,defaultOpen:p=!1,displayEmpty:h=!1,IconComponent:m=_4,id:b,input:y,inputProps:v,label:w,labelId:C,MenuProps:T,multiple:M=!1,native:E=!1,onClose:R,onOpen:j,open:k,renderValue:P,SelectDisplayProps:z,variant:_="outlined",...B}=n,G=E?$7:fI,D=Ma(),A=xl({props:n,muiFormControl:D,states:["variant","error"]}),Y=A.variant||_,F={...n,variant:Y,classes:u},$=hI(F),{root:I,...Q}=$,ee=y||{standard:c.jsx(mI,{ownerState:F}),outlined:c.jsx(gI,{label:w,ownerState:F}),filled:c.jsx(yI,{ownerState:F})}[Y],J=qr(r,bl(ee));return c.jsx(S.Fragment,{children:S.cloneElement(ee,{inputComponent:G,inputProps:{children:s,error:A.error,IconComponent:m,variant:Y,type:void 0,multiple:M,...E?{id:b}:{autoWidth:o,defaultOpen:p,displayEmpty:h,labelId:C,MenuProps:T,onClose:R,onOpen:j,open:k,renderValue:P,SelectDisplayProps:{id:b,...z}},...v,classes:v?fn(Q,v.classes):Q,...y?y.props.inputProps:{}},...(M&&E||h)&&Y==="outlined"?{notched:!0}:{},ref:J,className:Le(ee.props.className,d,$.root),...!y&&{variant:Y},...B})})});wa.muiName="Select";function vI(t){return tt("MuiSkeleton",t)}nt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const bI=t=>{const{classes:e,variant:r,animation:n,hasChildren:o,width:s,height:u}=t;return rt({root:["root",r,n,o&&"withChildren",o&&!s&&"fitContent",o&&!u&&"heightAuto"]},vI,e)},K0=Go`
|
|
280
|
-
0% {
|
|
281
|
-
opacity: 1;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
50% {
|
|
285
|
-
opacity: 0.4;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
100% {
|
|
289
|
-
opacity: 1;
|
|
290
|
-
}
|
|
291
|
-
`,Z0=Go`
|
|
292
|
-
0% {
|
|
293
|
-
transform: translateX(-100%);
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
50% {
|
|
297
|
-
/* +0.5s of delay between each loop */
|
|
298
|
-
transform: translateX(100%);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
100% {
|
|
302
|
-
transform: translateX(100%);
|
|
303
|
-
}
|
|
304
|
-
`,xI=typeof K0!="string"?ys`
|
|
305
|
-
animation: ${K0} 2s ease-in-out 0.5s infinite;
|
|
306
|
-
`:null,SI=typeof Z0!="string"?ys`
|
|
307
|
-
&::after {
|
|
308
|
-
animation: ${Z0} 2s linear 0.5s infinite;
|
|
309
|
-
}
|
|
310
|
-
`:null,wI=xe("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],r.animation!==!1&&e[r.animation],r.hasChildren&&e.withChildren,r.hasChildren&&!r.width&&e.fitContent,r.hasChildren&&!r.height&&e.heightAuto]}})(Xe(({theme:t})=>{const e=xP(t.shape.borderRadius)||"px",r=SP(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${e}/${Math.round(r/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:xI||{animation:`${K0} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
311
|
-
90deg,
|
|
312
|
-
transparent,
|
|
313
|
-
${(t.vars||t).palette.action.hover},
|
|
314
|
-
transparent
|
|
315
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:SI||{"&::after":{animation:`${Z0} 2s linear 0.5s infinite`}}}]}})),CI=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:u="span",height:d,style:p,variant:h="text",width:m,...b}=n,y={...n,animation:o,component:u,variant:h,hasChildren:!!b.children},v=bI(y);return c.jsx(wI,{as:u,ref:r,className:Le(v.root,s),ownerState:y,...b,style:{width:m,height:d,...p}})});function TI(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=t,u=rs();S.useEffect(()=>{if(!o)return;function M(E){E.defaultPrevented||E.key==="Escape"&&(n==null||n(E,"escapeKeyDown"))}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[o,n]);const d=nn((M,E)=>{n==null||n(M,E)}),p=nn(M=>{!n||M==null||u.start(M,()=>{d(null,"timeout")})});S.useEffect(()=>(o&&p(e),u.clear),[o,e,p,u]);const h=M=>{n==null||n(M,"clickaway")},m=u.clear,b=S.useCallback(()=>{e!=null&&p(s??e*.5)},[e,s,p]),y=M=>E=>{const R=M.onBlur;R==null||R(E),b()},v=M=>E=>{const R=M.onFocus;R==null||R(E),m()},w=M=>E=>{const R=M.onMouseEnter;R==null||R(E),m()},C=M=>E=>{const R=M.onMouseLeave;R==null||R(E),b()};return S.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",b),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",m)}},[r,o,b,m]),{getRootProps:(M={})=>{const E={...xh(t),...xh(M)};return{role:"presentation",...M,...E,onBlur:y(E),onFocus:v(E),onMouseEnter:w(E),onMouseLeave:C(E)}},onClickAway:h}}function EI(t){return tt("MuiSnackbarContent",t)}nt("MuiSnackbarContent",["root","message","action"]);const jI=t=>{const{classes:e}=t;return rt({root:["root"],action:["action"],message:["message"]},EI,e)},AI=xe(Fr,{name:"MuiSnackbarContent",slot:"Root"})(Xe(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98;return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(R0(t.palette.background.default,e)),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:R0(t.palette.background.default,e),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),MI=xe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),RI=xe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),kI=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiSnackbarContent"}),{action:o,className:s,message:u,role:d="alert",...p}=n,h=n,m=jI(h);return c.jsxs(AI,{role:d,elevation:6,className:Le(m.root,s),ownerState:h,ref:r,...p,children:[c.jsx(MI,{className:m.message,ownerState:h,children:u}),o?c.jsx(RI,{className:m.action,ownerState:h,children:o}):null]})});function OI(t){return tt("MuiSnackbar",t)}nt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const PI=t=>{const{classes:e,anchorOrigin:r}=t,n={root:["root",`anchorOrigin${ve(r.vertical)}${ve(r.horizontal)}`]};return rt(n,OI,e)},_I=xe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`anchorOrigin${ve(r.anchorOrigin.vertical)}${ve(r.anchorOrigin.horizontal)}`]]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),t5=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiSnackbar"}),o=ii(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:d,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:m,className:b,ClickAwayListenerProps:y,ContentProps:v,disableWindowBlurListener:w=!1,message:C,onBlur:T,onClose:M,onFocus:E,onMouseEnter:R,onMouseLeave:j,open:k,resumeHideDuration:P,slots:z={},slotProps:_={},TransitionComponent:B,transitionDuration:G=s,TransitionProps:{onEnter:D,onExited:A,...Y}={},...F}=n,$={...n,anchorOrigin:{vertical:d,horizontal:p},autoHideDuration:h,disableWindowBlurListener:w,TransitionComponent:B,transitionDuration:G},I=PI($),{getRootProps:Q,onClickAway:ee}=TI({...$}),[J,L]=S.useState(!0),oe=Be=>{L(!0),A&&A(Be)},ue=(Be,Ve)=>{L(!1),D&&D(Be,Ve)},ce={slots:{transition:B,...z},slotProps:{content:v,clickAwayListener:y,transition:Y,..._}},[K,re]=Ke("root",{ref:r,className:[I.root,b],elementType:_I,getSlotProps:Q,externalForwardedProps:{...ce,...F},ownerState:$}),[Z,{ownerState:ye,...Ce}]=Ke("clickAwayListener",{elementType:_L,externalForwardedProps:ce,getSlotProps:Be=>({onClickAway:(...Ve)=>{var We;const Ie=Ve[0];(We=Be.onClickAway)==null||We.call(Be,...Ve),!(Ie!=null&&Ie.defaultMuiPrevented)&&ee(...Ve)}}),ownerState:$}),[be,se]=Ke("content",{elementType:kI,shouldForwardComponentProp:!0,externalForwardedProps:ce,additionalProps:{message:C,action:u},ownerState:$}),[De,ze]=Ke("transition",{elementType:Id,externalForwardedProps:ce,getSlotProps:Be=>({onEnter:(...Ve)=>{var Ie;(Ie=Be.onEnter)==null||Ie.call(Be,...Ve),ue(...Ve)},onExited:(...Ve)=>{var Ie;(Ie=Be.onExited)==null||Ie.call(Be,...Ve),oe(...Ve)}}),additionalProps:{appear:!0,in:k,timeout:G,direction:d==="top"?"down":"up"},ownerState:$});return!k&&J?null:c.jsx(Z,{...Ce,...z.clickAwayListener&&{ownerState:ye},children:c.jsx(K,{...re,children:c.jsx(De,{...ze,children:m||c.jsx(be,{...se})})})})});function LI(t){return tt("MuiTooltip",t)}const Hr=nt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function NI(t){return Math.round(t*1e5)/1e5}const II=t=>{const{classes:e,disableInteractive:r,arrow:n,touch:o,placement:s}=t,u={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${ve(s.split("-")[0])}`],arrow:["arrow"]};return rt(u,LI,e)},BI=xe(lm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.popper,!r.disableInteractive&&e.popperInteractive,r.arrow&&e.popperArrow,!r.open&&e.popperClose]}})(Xe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Hr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Hr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Hr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Hr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Hr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Hr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Hr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Hr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),zI=xe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.tooltip,r.touch&&e.touch,r.arrow&&e.tooltipArrow,e[`tooltipPlacement${ve(r.placement.split("-")[0])}`]]}})(Xe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${Hr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Hr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Hr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Hr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${NI(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Hr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Hr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Hr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Hr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Hr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Hr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Hr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Hr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Hr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${Hr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),$I=xe("span",{name:"MuiTooltip",slot:"Arrow"})(Xe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Pf=!1;const pC=new am;let Ju={x:0,y:0};function _f(t,e){return(r,...n)=>{e&&e(r,...n),t(r,...n)}}const _r=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:u,components:d={},componentsProps:p={},describeChild:h=!1,disableFocusListener:m=!1,disableHoverListener:b=!1,disableInteractive:y=!1,disableTouchListener:v=!1,enterDelay:w=100,enterNextDelay:C=0,enterTouchDelay:T=700,followCursor:M=!1,id:E,leaveDelay:R=0,leaveTouchDelay:j=1500,onClose:k,onOpen:P,open:z,placement:_="bottom",PopperComponent:B,PopperProps:G={},slotProps:D={},slots:A={},title:Y,TransitionComponent:F,TransitionProps:$,...I}=n,Q=S.isValidElement(s)?s:c.jsx("span",{children:s}),ee=ii(),J=vs(),[L,oe]=S.useState(),[ue,ce]=S.useState(null),K=S.useRef(!1),re=y||M,Z=rs(),ye=rs(),Ce=rs(),be=rs(),[se,De]=os({controlled:z,default:!1,name:"Tooltip",state:"open"});let ze=se;const Be=$o(E),Ve=S.useRef(),Ie=nn(()=>{Ve.current!==void 0&&(document.body.style.WebkitUserSelect=Ve.current,Ve.current=void 0),be.clear()});S.useEffect(()=>Ie,[Ie]);const We=Tt=>{pC.clear(),Pf=!0,De(!0),P&&!ze&&P(Tt)},ct=nn(Tt=>{pC.start(800+R,()=>{Pf=!1}),De(!1),k&&ze&&k(Tt),Z.start(ee.transitions.duration.shortest,()=>{K.current=!1})}),le=Tt=>{K.current&&Tt.type!=="touchstart"||(L&&L.removeAttribute("title"),ye.clear(),Ce.clear(),w||Pf&&C?ye.start(Pf?C:w,()=>{We(Tt)}):We(Tt))},Ze=Tt=>{ye.clear(),Ce.start(R,()=>{ct(Tt)})},[,Fe]=S.useState(!1),ft=Tt=>{jc(Tt.target)||(Fe(!1),Ze(Tt))},Ue=Tt=>{L||oe(Tt.currentTarget),jc(Tt.target)&&(Fe(!0),le(Tt))},kt=Tt=>{K.current=!0;const Rr=Q.props;Rr.onTouchStart&&Rr.onTouchStart(Tt)},at=Tt=>{kt(Tt),Ce.clear(),Z.clear(),Ie(),Ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",be.start(T,()=>{document.body.style.WebkitUserSelect=Ve.current,le(Tt)})},fe=Tt=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(Tt),Ie(),Ce.start(j,()=>{ct(Tt)})};S.useEffect(()=>{if(!ze)return;function Tt(Rr){Rr.key==="Escape"&&ct(Rr)}return document.addEventListener("keydown",Tt),()=>{document.removeEventListener("keydown",Tt)}},[ct,ze]);const we=qr(bl(Q),oe,r);!Y&&Y!==0&&(ze=!1);const ke=S.useRef(),_e=Tt=>{const Rr=Q.props;Rr.onMouseMove&&Rr.onMouseMove(Tt),Ju={x:Tt.clientX,y:Tt.clientY},ke.current&&ke.current.update()},Ge={},Je=typeof Y=="string";h?(Ge.title=!ze&&Je&&!b?Y:null,Ge["aria-describedby"]=ze?Be:null):(Ge["aria-label"]=Je?Y:null,Ge["aria-labelledby"]=ze&&!Je?Be:null);const ie={...Ge,...I,...Q.props,className:Le(I.className,Q.props.className),onTouchStart:kt,ref:we,...M?{onMouseMove:_e}:{}},Pe={};v||(ie.onTouchStart=at,ie.onTouchEnd=fe),b||(ie.onMouseOver=_f(le,ie.onMouseOver),ie.onMouseLeave=_f(Ze,ie.onMouseLeave),re||(Pe.onMouseOver=le,Pe.onMouseLeave=Ze)),m||(ie.onFocus=_f(Ue,ie.onFocus),ie.onBlur=_f(ft,ie.onBlur),re||(Pe.onFocus=Ue,Pe.onBlur=ft));const He={...n,isRtl:J,arrow:o,disableInteractive:re,placement:_,PopperComponentProp:B,touch:K.current},$e=typeof D.popper=="function"?D.popper(He):D.popper,yt=S.useMemo(()=>{var Rr,Ye;let Tt=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Rr=G.popperOptions)!=null&&Rr.modifiers&&(Tt=Tt.concat(G.popperOptions.modifiers)),(Ye=$e==null?void 0:$e.popperOptions)!=null&&Ye.modifiers&&(Tt=Tt.concat($e.popperOptions.modifiers)),{...G.popperOptions,...$e==null?void 0:$e.popperOptions,modifiers:Tt}},[ue,G.popperOptions,$e==null?void 0:$e.popperOptions]),Gt=II(He),Xt=typeof D.transition=="function"?D.transition(He):D.transition,yn={slots:{popper:d.Popper,transition:d.Transition??F,tooltip:d.Tooltip,arrow:d.Arrow,...A},slotProps:{arrow:D.arrow??p.arrow,popper:{...G,...$e??p.popper},tooltip:D.tooltip??p.tooltip,transition:{...$,...Xt??p.transition}}},[ut,Vt]=Ke("popper",{elementType:BI,externalForwardedProps:yn,ownerState:He,className:Le(Gt.popper,G==null?void 0:G.className)}),[Yt,yr]=Ke("transition",{elementType:Id,externalForwardedProps:yn,ownerState:He}),[Nr,sn]=Ke("tooltip",{elementType:zI,className:Gt.tooltip,externalForwardedProps:yn,ownerState:He}),[en,Vn]=Ke("arrow",{elementType:$I,className:Gt.arrow,externalForwardedProps:yn,ownerState:He,ref:ce});return c.jsxs(S.Fragment,{children:[S.cloneElement(Q,ie),c.jsx(ut,{as:B??lm,placement:_,anchorEl:M?{getBoundingClientRect:()=>({top:Ju.y,left:Ju.x,right:Ju.x,bottom:Ju.y,width:0,height:0})}:L,popperRef:ke,open:L?ze:!1,id:Be,transition:!0,...Pe,...Vt,popperOptions:yt,children:({TransitionProps:Tt})=>c.jsx(Yt,{timeout:ee.transitions.duration.shorter,...Tt,...yr,children:c.jsxs(Nr,{...sn,children:[Y,o?c.jsx(en,{...Vn}):null]})})})]})}),fC=VO({createStyledComponent:xe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>it({props:t,name:"MuiStack"})});function DI(t){return tt("MuiSwitch",t)}const zn=nt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),HI=t=>{const{classes:e,edge:r,size:n,color:o,checked:s,disabled:u}=t,d={root:["root",r&&`edge${ve(r)}`,`size${ve(n)}`],switchBase:["switchBase",`color${ve(o)}`,s&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=rt(d,DI,e);return{...e,...p}},UI=xe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.edge&&e[`edge${ve(r.edge)}`],e[`size${ve(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${zn.thumb}`]:{width:16,height:16},[`& .${zn.switchBase}`]:{padding:4,[`&.${zn.checked}`]:{transform:"translateX(16px)"}}}}]}),VI=xe($4,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.switchBase,{[`& .${zn.input}`]:e.input},r.color!=="default"&&e[`color${ve(r.color)}`]]}})(Xe(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${zn.checked}`]:{transform:"translateX(20px)"},[`&.${zn.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${zn.checked} + .${zn.track}`]:{opacity:.5},[`&.${zn.disabled} + .${zn.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${zn.input}`]:{left:"-100%",width:"300%"}})),Xe(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(cr(["light"])).map(([e])=>({props:{color:e},style:{[`&.${zn.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zn.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.55)}`}},[`&.${zn.checked} + .${zn.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),qI=xe("span",{name:"MuiSwitch",slot:"Track"})(Xe(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),FI=xe("span",{name:"MuiSwitch",slot:"Thumb"})(Xe(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),el=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiSwitch"}),{className:o,color:s="primary",edge:u=!1,size:d="medium",sx:p,slots:h={},slotProps:m={},...b}=n,y={...n,color:s,edge:u,size:d},v=HI(y),w={slots:h,slotProps:m},[C,T]=Ke("root",{className:Le(v.root,o),elementType:UI,externalForwardedProps:w,ownerState:y,additionalProps:{sx:p}}),[M,E]=Ke("thumb",{className:v.thumb,elementType:FI,externalForwardedProps:w,ownerState:y}),R=c.jsx(M,{...E}),[j,k]=Ke("track",{className:v.track,elementType:qI,externalForwardedProps:w,ownerState:y});return c.jsxs(C,{...T,children:[c.jsx(VI,{type:"checkbox",icon:R,checkedIcon:R,ref:r,ownerState:y,...b,classes:{...v,root:v.switchBase},slots:{...h.switchBase&&{root:h.switchBase},...h.input&&{input:h.input}},slotProps:{...m.switchBase&&{root:typeof m.switchBase=="function"?m.switchBase(y):m.switchBase},input:{role:"switch"},...m.input&&{input:typeof m.input=="function"?m.input(y):m.input}}}),c.jsx(j,{...k})]})});function WI(t){return tt("MuiTab",t)}const Bi=nt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),GI=t=>{const{classes:e,textColor:r,fullWidth:n,wrapped:o,icon:s,label:u,selected:d,disabled:p}=t,h={root:["root",s&&u&&"labelIcon",`textColor${ve(r)}`,n&&"fullWidth",o&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return rt(h,WI,e)},XI=xe(po,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ve(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${Bi.iconWrapper}`]:e.iconWrapper},{[`& .${Bi.icon}`]:e.icon}]}})(Xe(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="top",style:{[`& > .${Bi.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="bottom",style:{[`& > .${Bi.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="start",style:{[`& > .${Bi.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:r})=>e.icon&&e.label&&r==="end",style:{[`& > .${Bi.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Bi.selected}`]:{opacity:1},[`&.${Bi.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Bi.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Bi.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Bi.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Bi.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),YI=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:u=!1,fullWidth:d,icon:p,iconPosition:h="top",indicator:m,label:b,onChange:y,onClick:v,onFocus:w,selected:C,selectionFollowsFocus:T,textColor:M="inherit",value:E,wrapped:R=!1,...j}=n,k={...n,disabled:s,disableFocusRipple:u,selected:C,icon:!!p,iconPosition:h,label:!!b,fullWidth:d,textColor:M,wrapped:R},P=GI(k),z=p&&b&&S.isValidElement(p)?S.cloneElement(p,{className:Le(P.icon,p.props.className)}):p,_=G=>{!C&&y&&y(G,E),v&&v(G)},B=G=>{T&&!C&&y&&y(G,E),w&&w(G)};return c.jsxs(XI,{focusRipple:!u,className:Le(P.root,o),ref:r,role:"tab","aria-selected":C,disabled:s,onClick:_,onFocus:B,ownerState:k,tabIndex:C?0:-1,...j,children:[h==="top"||h==="start"?c.jsxs(S.Fragment,{children:[z,b]}):c.jsxs(S.Fragment,{children:[b,z]}),m]})}),r5=S.createContext();function QI(t){return tt("MuiTable",t)}nt("MuiTable",["root","stickyHeader"]);const KI=t=>{const{classes:e,stickyHeader:r}=t;return rt({root:["root",r&&"stickyHeader"]},QI,e)},ZI=xe("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.stickyHeader&&e.stickyHeader]}})(Xe(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),hC="table",cl=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTable"}),{className:o,component:s=hC,padding:u="normal",size:d="medium",stickyHeader:p=!1,...h}=n,m={...n,component:s,padding:u,size:d,stickyHeader:p},b=KI(m),y=S.useMemo(()=>({padding:u,size:d,stickyHeader:p}),[u,d,p]);return c.jsx(r5.Provider,{value:y,children:c.jsx(ZI,{as:s,role:s===hC?null:"table",ref:r,className:Le(b.root,o),ownerState:m,...h})})}),vm=S.createContext();function JI(t){return tt("MuiTableBody",t)}nt("MuiTableBody",["root"]);const eB=t=>{const{classes:e}=t;return rt({root:["root"]},JI,e)},tB=xe("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),rB={variant:"body"},mC="tbody",ul=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTableBody"}),{className:o,component:s=mC,...u}=n,d={...n,component:s},p=eB(d);return c.jsx(vm.Provider,{value:rB,children:c.jsx(tB,{className:Le(p.root,o),as:s,ref:r,role:s===mC?null:"rowgroup",ownerState:d,...u})})});function nB(t){return tt("MuiTableCell",t)}const iB=nt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),oB=t=>{const{classes:e,variant:r,align:n,padding:o,size:s,stickyHeader:u}=t,d={root:["root",r,u&&"stickyHeader",n!=="inherit"&&`align${ve(n)}`,o!=="normal"&&`padding${ve(o)}`,`size${ve(s)}`]};return rt(d,nB,e)},aB=xe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[r.variant],e[`size${ve(r.size)}`],r.padding!=="normal"&&e[`padding${ve(r.padding)}`],r.align!=="inherit"&&e[`align${ve(r.align)}`],r.stickyHeader&&e.stickyHeader]}})(Xe(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid
|
|
316
|
-
${t.palette.mode==="light"?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${iB.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),et=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTableCell"}),{align:o="inherit",className:s,component:u,padding:d,scope:p,size:h,sortDirection:m,variant:b,...y}=n,v=S.useContext(r5),w=S.useContext(vm),C=w&&w.variant==="head";let T;u?T=u:T=C?"th":"td";let M=p;T==="td"?M=void 0:!M&&C&&(M="col");const E=b||w&&w.variant,R={...n,align:o,component:T,padding:d||(v&&v.padding?v.padding:"normal"),size:h||(v&&v.size?v.size:"medium"),sortDirection:m,stickyHeader:E==="head"&&v&&v.stickyHeader,variant:E},j=oB(R);let k=null;return m&&(k=m==="asc"?"ascending":"descending"),c.jsx(aB,{as:T,ref:r,className:Le(j.root,s),"aria-sort":k,scope:M,ownerState:R,...y})});function sB(t){return tt("MuiTableContainer",t)}nt("MuiTableContainer",["root"]);const lB=t=>{const{classes:e}=t;return rt({root:["root"]},sB,e)},cB=xe("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),dl=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTableContainer"}),{className:o,component:s="div",...u}=n,d={...n,component:s},p=lB(d);return c.jsx(cB,{ref:r,as:s,className:Le(p.root,o),ownerState:d,...u})});function uB(t){return tt("MuiTableHead",t)}nt("MuiTableHead",["root"]);const dB=t=>{const{classes:e}=t;return rt({root:["root"]},uB,e)},pB=xe("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),fB={variant:"head"},gC="thead",pl=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTableHead"}),{className:o,component:s=gC,...u}=n,d={...n,component:s},p=dB(d);return c.jsx(vm.Provider,{value:fB,children:c.jsx(pB,{as:s,className:Le(p.root,o),ref:r,role:s===gC?null:"rowgroup",ownerState:d,...u})})});function hB(t){return tt("MuiToolbar",t)}nt("MuiToolbar",["root","gutters","regular","dense"]);const mB=t=>{const{classes:e,disableGutters:r,variant:n}=t;return rt({root:["root",!r&&"gutters",n]},hB,e)},gB=xe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,!r.disableGutters&&e.gutters,e[r.variant]]}})(Xe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),yB=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:u=!1,variant:d="regular",...p}=n,h={...n,component:s,disableGutters:u,variant:d},m=mB(h);return c.jsx(gB,{as:s,className:Le(m.root,o),ref:r,ownerState:h,...p})}),n5=Ae(c.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),i5=Ae(c.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function vB(t){return tt("MuiTablePaginationActions",t)}nt("MuiTablePaginationActions",["root"]);const bB=t=>{const{classes:e}=t;return rt({root:["root"]},vB,e)},xB=xe("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),SB=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:s,count:u,disabled:d=!1,getItemAriaLabel:p,nextIconButtonProps:h,onPageChange:m,page:b,rowsPerPage:y,showFirstButton:v,showLastButton:w,slots:C={},slotProps:T={},...M}=n,E=vs(),j=bB(n),k=re=>{m(re,0)},P=re=>{m(re,b-1)},z=re=>{m(re,b+1)},_=re=>{m(re,Math.max(0,Math.ceil(u/y)-1))},B=C.firstButton??sr,G=C.lastButton??sr,D=C.nextButton??sr,A=C.previousButton??sr,Y=C.firstButtonIcon??K4,F=C.lastButtonIcon??Z4,$=C.nextButtonIcon??i5,I=C.previousButtonIcon??n5,Q=E?G:B,ee=E?D:A,J=E?A:D,L=E?B:G,oe=E?T.lastButton:T.firstButton,ue=E?T.nextButton:T.previousButton,ce=E?T.previousButton:T.nextButton,K=E?T.firstButton:T.lastButton;return c.jsxs(xB,{ref:r,className:Le(j.root,s),...M,children:[v&&c.jsx(Q,{onClick:k,disabled:d||b===0,"aria-label":p("first",b),title:p("first",b),...oe,children:E?c.jsx(F,{...T.lastButtonIcon}):c.jsx(Y,{...T.firstButtonIcon})}),c.jsx(ee,{onClick:P,disabled:d||b===0,color:"inherit","aria-label":p("previous",b),title:p("previous",b),...ue??o,children:E?c.jsx($,{...T.nextButtonIcon}):c.jsx(I,{...T.previousButtonIcon})}),c.jsx(J,{onClick:z,disabled:d||(u!==-1?b>=Math.ceil(u/y)-1:!1),color:"inherit","aria-label":p("next",b),title:p("next",b),...ce??h,children:E?c.jsx(I,{...T.previousButtonIcon}):c.jsx($,{...T.nextButtonIcon})}),w&&c.jsx(L,{onClick:_,disabled:d||b>=Math.ceil(u/y)-1,"aria-label":p("last",b),title:p("last",b),...K,children:E?c.jsx(Y,{...T.firstButtonIcon}):c.jsx(F,{...T.lastButtonIcon})})]})});function wB(t){return tt("MuiTablePagination",t)}const bd=nt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var yC;const CB=xe(et,{name:"MuiTablePagination",slot:"Root"})(Xe(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),TB=xe(yB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${bd.actions}`]:e.actions,...e.toolbar})})(Xe(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${bd.actions}`]:{flexShrink:0,marginLeft:20}}))),EB=xe("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),jB=xe("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Xe(({theme:t})=>({...t.typography.body2,flexShrink:0}))),AB=xe(wa,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${bd.selectIcon}`]:e.selectIcon,[`& .${bd.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${bd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),MB=xe(Mr,{name:"MuiTablePagination",slot:"MenuItem"})({}),RB=xe("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Xe(({theme:t})=>({...t.typography.body2,flexShrink:0})));function kB({from:t,to:e,count:r}){return`${t}–${e} of ${r!==-1?r:`more than ${e}`}`}function OB(t){return`Go to ${t} page`}const PB=t=>{const{classes:e}=t;return rt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},wB,e)},_B=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=SB,backIconButtonProps:s,colSpan:u,component:d=et,count:p,disabled:h=!1,getItemAriaLabel:m=OB,labelDisplayedRows:b=kB,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:v,onPageChange:w,onRowsPerPageChange:C,page:T,rowsPerPage:M,rowsPerPageOptions:E=[10,25,50,100],SelectProps:R={},showFirstButton:j=!1,showLastButton:k=!1,slotProps:P={},slots:z={},..._}=n,B=n,G=PB(B),D=(P==null?void 0:P.select)??R,A=D.native?"option":MB;let Y;(d===et||d==="td")&&(Y=u||1e3);const F=$o(D.id),$=$o(D.labelId),I=()=>p===-1?(T+1)*M:M===-1?p:Math.min(p,(T+1)*M),Q={slots:z,slotProps:P},[ee,J]=Ke("root",{ref:r,className:G.root,elementType:CB,externalForwardedProps:{...Q,component:d,..._},ownerState:B,additionalProps:{colSpan:Y}}),[L,oe]=Ke("toolbar",{className:G.toolbar,elementType:TB,externalForwardedProps:Q,ownerState:B}),[ue,ce]=Ke("spacer",{className:G.spacer,elementType:EB,externalForwardedProps:Q,ownerState:B}),[K,re]=Ke("selectLabel",{className:G.selectLabel,elementType:jB,externalForwardedProps:Q,ownerState:B,additionalProps:{id:$}}),[Z,ye]=Ke("select",{className:G.select,elementType:AB,externalForwardedProps:Q,ownerState:B}),[Ce,be]=Ke("menuItem",{className:G.menuItem,elementType:A,externalForwardedProps:Q,ownerState:B}),[se,De]=Ke("displayedRows",{className:G.displayedRows,elementType:RB,externalForwardedProps:Q,ownerState:B});return c.jsx(ee,{...J,children:c.jsxs(L,{...oe,children:[c.jsx(ue,{...ce}),E.length>1&&c.jsx(K,{...re,children:y}),E.length>1&&c.jsx(Z,{variant:"standard",...!D.variant&&{input:yC||(yC=c.jsx(hm,{}))},value:M,onChange:C,id:F,labelId:$,...D,classes:{...D.classes,root:Le(G.input,G.selectRoot,(D.classes||{}).root),select:Le(G.select,(D.classes||{}).select),icon:Le(G.selectIcon,(D.classes||{}).icon)},disabled:h,...ye,children:E.map(ze=>S.createElement(Ce,{...be,key:ze.label?ze.label:ze,value:ze.value?ze.value:ze},ze.label?ze.label:ze))}),c.jsx(se,{...De,children:b({from:p===0?0:T*M+1,to:I(),count:p===-1?-1:p,page:T})}),c.jsx(o,{className:G.actions,backIconButtonProps:s,count:p,nextIconButtonProps:v,onPageChange:w,page:T,rowsPerPage:M,showFirstButton:j,showLastButton:k,slotProps:P.actions,slots:z.actions,getItemAriaLabel:m,disabled:h})]})})});function LB(t){return tt("MuiTableRow",t)}const vC=nt("MuiTableRow",["root","selected","hover","head","footer"]),NB=t=>{const{classes:e,selected:r,hover:n,head:o,footer:s}=t;return rt({root:["root",r&&"selected",n&&"hover",o&&"head",s&&"footer"]},LB,e)},IB=xe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.head&&e.head,r.footer&&e.footer]}})(Xe(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${vC.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${vC.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)}}}))),bC="tr",pn=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTableRow"}),{className:o,component:s=bC,hover:u=!1,selected:d=!1,...p}=n,h=S.useContext(vm),m={...n,component:s,hover:u,selected:d,head:h&&h.variant==="head",footer:h&&h.variant==="footer"},b=NB(m);return c.jsx(IB,{as:s,ref:r,className:Le(b.root,o),role:s===bC?null:"row",ownerState:m,...p})});function BB(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function zB(t,e,r,n={},o=()=>{}){const{ease:s=BB,duration:u=300}=n;let d=null;const p=e[t];let h=!1;const m=()=>{h=!0},b=y=>{if(h){o(new Error("Animation cancelled"));return}d===null&&(d=y);const v=Math.min(1,(y-d)/u);if(e[t]=s(v)*(r-p)+p,v>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(b)};return p===r?(o(new Error("Element already at target position")),m):(requestAnimationFrame(b),m)}const $B={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function DB(t){const{onChange:e,...r}=t,n=S.useRef(),o=S.useRef(null),s=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return ei(()=>{const u=om(()=>{const p=n.current;s(),p!==n.current&&e(n.current)}),d=uo(o.current);return d.addEventListener("resize",u),()=>{u.clear(),d.removeEventListener("resize",u)}},[e]),S.useEffect(()=>{s(),e(n.current)},[e]),c.jsx("div",{style:$B,...r,ref:o})}function HB(t){return tt("MuiTabScrollButton",t)}const UB=nt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),VB=t=>{const{classes:e,orientation:r,disabled:n}=t;return rt({root:["root",r,n&&"disabled"]},HB,e)},qB=xe(po,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${UB.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),FB=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:u={},direction:d,orientation:p,disabled:h,...m}=n,b=vs(),y={isRtl:b,...n},v=VB(y),w=s.StartScrollButtonIcon??n5,C=s.EndScrollButtonIcon??i5,T=Oc({elementType:w,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),M=Oc({elementType:C,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return c.jsx(qB,{component:"div",className:Le(v.root,o),ref:r,role:null,ownerState:y,tabIndex:null,...m,style:{...m.style,...p==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${b?-90:90}deg)`}},children:d==="left"?c.jsx(w,{...T}):c.jsx(C,{...M})})});function WB(t){return tt("MuiTabs",t)}const a0=nt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xC=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,SC=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Lf=(t,e,r)=>{let n=!1,o=r(t,e);for(;o;){if(o===t.firstChild){if(n)return;n=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=r(t,o);else{o.focus();return}}},GB=t=>{const{vertical:e,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:s,centered:u,scrollButtonsHideMobile:d,classes:p}=t;return rt({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",u&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},WB,p)},XB=xe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${a0.scrollButtons}`]:e.scrollButtons},{[`& .${a0.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(Xe(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${a0.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),YB=xe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),QB=xe("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.list,e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),KB=xe("span",{name:"MuiTabs",slot:"Indicator"})(Xe(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),ZB=xe(DB)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),wC={},JB=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTabs"}),o=ii(),s=vs(),{"aria-label":u,"aria-labelledby":d,action:p,centered:h=!1,children:m,className:b,component:y="div",allowScrollButtonsMobile:v=!1,indicatorColor:w="primary",onChange:C,orientation:T="horizontal",ScrollButtonComponent:M,scrollButtons:E="auto",selectionFollowsFocus:R,slots:j={},slotProps:k={},TabIndicatorProps:P={},TabScrollButtonProps:z={},textColor:_="primary",value:B,variant:G="standard",visibleScrollbar:D=!1,...A}=n,Y=G==="scrollable",F=T==="vertical",$=F?"scrollTop":"scrollLeft",I=F?"top":"left",Q=F?"bottom":"right",ee=F?"clientHeight":"clientWidth",J=F?"height":"width",L={...n,component:y,allowScrollButtonsMobile:v,indicatorColor:w,orientation:T,vertical:F,scrollButtons:E,textColor:_,variant:G,visibleScrollbar:D,fixed:!Y,hideScrollbar:Y&&!D,scrollableX:Y&&!F,scrollableY:Y&&F,centered:h&&!Y,scrollButtonsHideMobile:!v},oe=GB(L),ue=Oc({elementType:j.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:L}),ce=Oc({elementType:j.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:L}),[K,re]=S.useState(!1),[Z,ye]=S.useState(wC),[Ce,be]=S.useState(!1),[se,De]=S.useState(!1),[ze,Be]=S.useState(!1),[Ve,Ie]=S.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,ct=S.useRef(null),le=S.useRef(null),Ze={slots:j,slotProps:{indicator:P,scrollButton:z,...k}},Fe=()=>{const Ye=ct.current;let ot;if(Ye){const _t=Ye.getBoundingClientRect();ot={clientWidth:Ye.clientWidth,scrollLeft:Ye.scrollLeft,scrollTop:Ye.scrollTop,scrollWidth:Ye.scrollWidth,top:_t.top,bottom:_t.bottom,left:_t.left,right:_t.right}}let Pt;if(Ye&&B!==!1){const _t=le.current.children;if(_t.length>0){const nr=_t[We.get(B)];Pt=nr?nr.getBoundingClientRect():null}}return{tabsMeta:ot,tabMeta:Pt}},ft=nn(()=>{const{tabsMeta:Ye,tabMeta:ot}=Fe();let Pt=0,_t;F?(_t="top",ot&&Ye&&(Pt=ot.top-Ye.top+Ye.scrollTop)):(_t=s?"right":"left",ot&&Ye&&(Pt=(s?-1:1)*(ot[_t]-Ye[_t]+Ye.scrollLeft)));const nr={[_t]:Pt,[J]:ot?ot[J]:0};if(typeof Z[_t]!="number"||typeof Z[J]!="number")ye(nr);else{const vn=Math.abs(Z[_t]-nr[_t]),qn=Math.abs(Z[J]-nr[J]);(vn>=1||qn>=1)&&ye(nr)}}),Ue=(Ye,{animation:ot=!0}={})=>{ot?zB($,ct.current,Ye,{duration:o.transitions.duration.standard}):ct.current[$]=Ye},kt=Ye=>{let ot=ct.current[$];F?ot+=Ye:ot+=Ye*(s?-1:1),Ue(ot)},at=()=>{const Ye=ct.current[ee];let ot=0;const Pt=Array.from(le.current.children);for(let _t=0;_t<Pt.length;_t+=1){const nr=Pt[_t];if(ot+nr[ee]>Ye){_t===0&&(ot=Ye);break}ot+=nr[ee]}return ot},fe=()=>{kt(-1*at())},we=()=>{kt(at())},[ke,{onChange:_e,...Ge}]=Ke("scrollbar",{className:Le(oe.scrollableX,oe.hideScrollbar),elementType:ZB,shouldForwardComponentProp:!0,externalForwardedProps:Ze,ownerState:L}),Je=S.useCallback(Ye=>{_e==null||_e(Ye),Ie({overflow:null,scrollbarWidth:Ye})},[_e]),[ie,Pe]=Ke("scrollButtons",{className:Le(oe.scrollButtons,z.className),elementType:FB,externalForwardedProps:Ze,ownerState:L,additionalProps:{orientation:T,slots:{StartScrollButtonIcon:j.startScrollButtonIcon||j.StartScrollButtonIcon,EndScrollButtonIcon:j.endScrollButtonIcon||j.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ue,endScrollButtonIcon:ce}}}),He=()=>{const Ye={};Ye.scrollbarSizeListener=Y?c.jsx(ke,{...Ge,onChange:Je}):null;const Pt=Y&&(E==="auto"&&(Ce||se)||E===!0);return Ye.scrollButtonStart=Pt?c.jsx(ie,{direction:s?"right":"left",onClick:fe,disabled:!Ce,...Pe}):null,Ye.scrollButtonEnd=Pt?c.jsx(ie,{direction:s?"left":"right",onClick:we,disabled:!se,...Pe}):null,Ye},$e=nn(Ye=>{const{tabsMeta:ot,tabMeta:Pt}=Fe();if(!(!Pt||!ot)){if(Pt[I]<ot[I]){const _t=ot[$]+(Pt[I]-ot[I]);Ue(_t,{animation:Ye})}else if(Pt[Q]>ot[Q]){const _t=ot[$]+(Pt[Q]-ot[Q]);Ue(_t,{animation:Ye})}}}),yt=nn(()=>{Y&&E!==!1&&Be(!ze)});S.useEffect(()=>{const Ye=om(()=>{ct.current&&ft()});let ot;const Pt=vn=>{vn.forEach(qn=>{qn.removedNodes.forEach(Ki=>{ot==null||ot.unobserve(Ki)}),qn.addedNodes.forEach(Ki=>{ot==null||ot.observe(Ki)})}),Ye(),yt()},_t=uo(ct.current);_t.addEventListener("resize",Ye);let nr;return typeof ResizeObserver<"u"&&(ot=new ResizeObserver(Ye),Array.from(le.current.children).forEach(vn=>{ot.observe(vn)})),typeof MutationObserver<"u"&&(nr=new MutationObserver(Pt),nr.observe(le.current,{childList:!0})),()=>{Ye.clear(),_t.removeEventListener("resize",Ye),nr==null||nr.disconnect(),ot==null||ot.disconnect()}},[ft,yt]),S.useEffect(()=>{const Ye=Array.from(le.current.children),ot=Ye.length;if(typeof IntersectionObserver<"u"&&ot>0&&Y&&E!==!1){const Pt=Ye[0],_t=Ye[ot-1],nr={root:ct.current,threshold:.99},vn=Sr=>{be(!Sr[0].isIntersecting)},qn=new IntersectionObserver(vn,nr);qn.observe(Pt);const Ki=Sr=>{De(!Sr[0].isIntersecting)},Pn=new IntersectionObserver(Ki,nr);return Pn.observe(_t),()=>{qn.disconnect(),Pn.disconnect()}}},[Y,E,ze,m==null?void 0:m.length]),S.useEffect(()=>{re(!0)},[]),S.useEffect(()=>{ft()}),S.useEffect(()=>{$e(wC!==Z)},[$e,Z]),S.useImperativeHandle(p,()=>({updateIndicator:ft,updateScrollButtons:yt}),[ft,yt]);const[Gt,Xt]=Ke("indicator",{className:Le(oe.indicator,P.className),elementType:KB,externalForwardedProps:Ze,ownerState:L,additionalProps:{style:Z}}),yn=c.jsx(Gt,{...Xt});let ut=0;const Vt=S.Children.map(m,Ye=>{if(!S.isValidElement(Ye))return null;const ot=Ye.props.value===void 0?ut:Ye.props.value;We.set(ot,ut);const Pt=ot===B;return ut+=1,S.cloneElement(Ye,{fullWidth:G==="fullWidth",indicator:Pt&&!K&&yn,selected:Pt,selectionFollowsFocus:R,onChange:C,textColor:_,value:ot,...ut===1&&B===!1&&!Ye.props.tabIndex?{tabIndex:0}:{}})}),Yt=Ye=>{if(Ye.altKey||Ye.shiftKey||Ye.ctrlKey||Ye.metaKey)return;const ot=le.current,Pt=Cn(ot).activeElement;if(Pt.getAttribute("role")!=="tab")return;let nr=T==="horizontal"?"ArrowLeft":"ArrowUp",vn=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&s&&(nr="ArrowRight",vn="ArrowLeft"),Ye.key){case nr:Ye.preventDefault(),Lf(ot,Pt,SC);break;case vn:Ye.preventDefault(),Lf(ot,Pt,xC);break;case"Home":Ye.preventDefault(),Lf(ot,null,xC);break;case"End":Ye.preventDefault(),Lf(ot,null,SC);break}},yr=He(),[Nr,sn]=Ke("root",{ref:r,className:Le(oe.root,b),elementType:XB,externalForwardedProps:{...Ze,...A,component:y},ownerState:L}),[en,Vn]=Ke("scroller",{ref:ct,className:oe.scroller,elementType:YB,externalForwardedProps:Ze,ownerState:L,additionalProps:{style:{overflow:Ve.overflow,[F?`margin${s?"Left":"Right"}`:"marginBottom"]:D?void 0:-Ve.scrollbarWidth}}}),[Tt,Rr]=Ke("list",{ref:le,className:Le(oe.list,oe.flexContainer),elementType:QB,externalForwardedProps:Ze,ownerState:L,getSlotProps:Ye=>({...Ye,onKeyDown:ot=>{var Pt;Yt(ot),(Pt=Ye.onKeyDown)==null||Pt.call(Ye,ot)}})});return c.jsxs(Nr,{...sn,children:[yr.scrollButtonStart,yr.scrollbarSizeListener,c.jsxs(en,{...Vn,children:[c.jsx(Tt,{"aria-label":u,"aria-labelledby":d,"aria-orientation":T==="vertical"?"vertical":null,role:"tablist",...Rr,children:Vt}),K&&yn]}),yr.scrollButtonEnd]})});function ez(t){return tt("MuiTextField",t)}nt("MuiTextField",["root"]);const tz={standard:mm,filled:ab,outlined:cb},rz=t=>{const{classes:e}=t;return rt({root:["root"]},ez,e)},nz=xe(Ho,{name:"MuiTextField",slot:"Root"})({}),At=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:u,className:d,color:p="primary",defaultValue:h,disabled:m=!1,error:b=!1,FormHelperTextProps:y,fullWidth:v=!1,helperText:w,id:C,InputLabelProps:T,inputProps:M,InputProps:E,inputRef:R,label:j,maxRows:k,minRows:P,multiline:z=!1,name:_,onBlur:B,onChange:G,onFocus:D,placeholder:A,required:Y=!1,rows:F,select:$=!1,SelectProps:I,slots:Q={},slotProps:ee={},type:J,value:L,variant:oe="outlined",...ue}=n,ce={...n,autoFocus:s,color:p,disabled:m,error:b,fullWidth:v,multiline:z,required:Y,select:$,variant:oe},K=rz(ce),re=$o(C),Z=w&&re?`${re}-helper-text`:void 0,ye=j&&re?`${re}-label`:void 0,Ce=tz[oe],be={slots:Q,slotProps:{input:E,inputLabel:T,htmlInput:M,formHelperText:y,select:I,...ee}},se={},De=be.slotProps.inputLabel;oe==="outlined"&&(De&&typeof De.shrink<"u"&&(se.notched=De.shrink),se.label=j),$&&((!I||!I.native)&&(se.id=void 0),se["aria-describedby"]=void 0);const[ze,Be]=Ke("root",{elementType:nz,shouldForwardComponentProp:!0,externalForwardedProps:{...be,...ue},ownerState:ce,className:Le(K.root,d),ref:r,additionalProps:{disabled:m,error:b,fullWidth:v,required:Y,color:p,variant:oe}}),[Ve,Ie]=Ke("input",{elementType:Ce,externalForwardedProps:be,additionalProps:se,ownerState:ce}),[We,ct]=Ke("inputLabel",{elementType:ls,externalForwardedProps:be,ownerState:ce}),[le,Ze]=Ke("htmlInput",{elementType:"input",externalForwardedProps:be,ownerState:ce}),[Fe,ft]=Ke("formHelperText",{elementType:Gc,externalForwardedProps:be,ownerState:ce}),[Ue,kt]=Ke("select",{elementType:wa,externalForwardedProps:be,ownerState:ce}),at=c.jsx(Ve,{"aria-describedby":Z,autoComplete:o,autoFocus:s,defaultValue:h,fullWidth:v,multiline:z,name:_,rows:F,maxRows:k,minRows:P,type:J,value:L,id:re,inputRef:R,onBlur:B,onChange:G,onFocus:D,placeholder:A,inputProps:Ze,slots:{input:Q.htmlInput?le:void 0},...Ie});return c.jsxs(ze,{...Be,children:[j!=null&&j!==""&&c.jsx(We,{htmlFor:re,id:ye,...ct,children:j}),$?c.jsx(Ue,{"aria-describedby":Z,id:re,labelId:ye,value:L,input:at,...kt,children:u}):at,w&&c.jsx(Fe,{id:Z,...ft,children:w})]})});function iz(t){return tt("MuiToggleButton",t)}const il=nt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),o5=S.createContext({}),a5=S.createContext(void 0);function oz(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const az=t=>{const{classes:e,fullWidth:r,selected:n,disabled:o,size:s,color:u}=t,d={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth",`size${ve(s)}`,u]};return rt(d,iz,e)},sz=xe(po,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${ve(r.size)}`]]}})(Xe(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${il.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${il.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(cr()).map(([e])=>({props:{color:e},style:{[`&.${il.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),CC=S.forwardRef(function(e,r){const{value:n,...o}=S.useContext(o5),s=S.useContext(a5),u=Tc({...o,selected:oz(e.value,n)},e),d=it({props:u,name:"MuiToggleButton"}),{children:p,className:h,color:m="standard",disabled:b=!1,disableFocusRipple:y=!1,fullWidth:v=!1,onChange:w,onClick:C,selected:T,size:M="medium",value:E,...R}=d,j={...d,color:m,disabled:b,disableFocusRipple:y,fullWidth:v,size:M},k=az(j),P=_=>{C&&(C(_,E),_.defaultPrevented)||w&&w(_,E)},z=s||"";return c.jsx(sz,{className:Le(o.className,k.root,h,z),disabled:b,focusRipple:!y,ref:r,onClick:P,onChange:w,value:E,ownerState:j,"aria-pressed":T,...R,children:p})});function lz(t){return tt("MuiToggleButtonGroup",t)}const Ar=nt("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),cz=t=>{const{classes:e,orientation:r,fullWidth:n,disabled:o}=t,s={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${ve(r)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return rt(s,lz,e)},uz=xe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${Ar.grouped}`]:e.grouped},{[`& .${Ar.grouped}`]:e[`grouped${ve(r.orientation)}`]},{[`& .${Ar.firstButton}`]:e.firstButton},{[`& .${Ar.lastButton}`]:e.lastButton},{[`& .${Ar.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(Xe(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ar.grouped}`]:{[`&.${Ar.selected} + .${Ar.grouped}.${Ar.selected}`]:{borderTop:0,marginTop:0}},[`& .${Ar.firstButton},& .${Ar.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Ar.lastButton},& .${Ar.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Ar.lastButton}.${il.disabled},& .${Ar.middleButton}.${il.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${Ar.grouped}`]:{[`&.${Ar.selected} + .${Ar.grouped}.${Ar.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Ar.firstButton},& .${Ar.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ar.lastButton},& .${Ar.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Ar.lastButton}.${il.disabled},& .${Ar.middleButton}.${il.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),dz=S.forwardRef(function(e,r){const n=it({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:s,color:u="standard",disabled:d=!1,exclusive:p=!1,fullWidth:h=!1,onChange:m,orientation:b="horizontal",size:y="medium",value:v,...w}=n,C={...n,disabled:d,fullWidth:h,orientation:b,size:y},T=cz(C),M=S.useCallback((z,_)=>{if(!m)return;const B=v&&v.indexOf(_);let G;v&&B>=0?(G=v.slice(),G.splice(B,1)):G=v?v.concat(_):[_],m(z,G)},[m,v]),E=S.useCallback((z,_)=>{m&&m(z,v===_?null:_)},[m,v]),R=S.useMemo(()=>({className:T.grouped,onChange:p?E:M,value:v,size:y,fullWidth:h,color:u,disabled:d}),[T.grouped,p,E,M,v,y,h,u,d]),j=z4(o),k=j.length,P=z=>{const _=z===0,B=z===k-1;return _&&B?"":_?T.firstButton:B?T.lastButton:T.middleButton};return c.jsx(uz,{role:"group",className:Le(T.root,s),ref:r,ownerState:C,...w,children:c.jsx(o5.Provider,{value:R,children:j.map((z,_)=>c.jsx(a5.Provider,{value:P(_),children:z},_))})})}),pz=ZE({themeId:lo});/*!
|
|
317
|
-
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
318
|
-
* http://github.com/janl/mustache.js
|
|
319
|
-
*/var fz=Object.prototype.toString,Xc=Array.isArray||function(e){return fz.call(e)==="[object Array]"};function db(t){return typeof t=="function"}function hz(t){return Xc(t)?"array":typeof t}function s0(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TC(t,e){return t!=null&&typeof t=="object"&&e in t}function mz(t,e){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(e)}var gz=RegExp.prototype.test;function yz(t,e){return gz.call(t,e)}var vz=/\S/;function bz(t){return!yz(vz,t)}var xz={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Sz(t){return String(t).replace(/[&<>"'`=\/]/g,function(r){return xz[r]})}var wz=/\s*/,Cz=/\s+/,EC=/\s*=/,Tz=/\s*\}/,Ez=/#|\^|\/|>|\{|&|=|!/;function jz(t,e){if(!t)return[];var r=!1,n=[],o=[],s=[],u=!1,d=!1,p="",h=0;function m(){if(u&&!d)for(;s.length;)delete o[s.pop()];else s=[];u=!1,d=!1}var b,y,v;function w(_){if(typeof _=="string"&&(_=_.split(Cz,2)),!Xc(_)||_.length!==2)throw new Error("Invalid tags: "+_);b=new RegExp(s0(_[0])+"\\s*"),y=new RegExp("\\s*"+s0(_[1])),v=new RegExp("\\s*"+s0("}"+_[1]))}w(e||wi.tags);for(var C=new sp(t),T,M,E,R,j,k;!C.eos();){if(T=C.pos,E=C.scanUntil(b),E)for(var P=0,z=E.length;P<z;++P)R=E.charAt(P),bz(R)?(s.push(o.length),p+=R):(d=!0,r=!0,p+=" "),o.push(["text",R,T,T+1]),T+=1,R===`
|
|
320
|
-
`&&(m(),p="",h=0,r=!1);if(!C.scan(b))break;if(u=!0,M=C.scan(Ez)||"name",C.scan(wz),M==="="?(E=C.scanUntil(EC),C.scan(EC),C.scanUntil(y)):M==="{"?(E=C.scanUntil(v),C.scan(Tz),C.scanUntil(y),M="&"):E=C.scanUntil(y),!C.scan(y))throw new Error("Unclosed tag at "+C.pos);if(M==">"?j=[M,E,T,C.pos,p,h,r]:j=[M,E,T,C.pos],h++,o.push(j),M==="#"||M==="^")n.push(j);else if(M==="/"){if(k=n.pop(),!k)throw new Error('Unopened section "'+E+'" at '+T);if(k[1]!==E)throw new Error('Unclosed section "'+k[1]+'" at '+T)}else M==="name"||M==="{"||M==="&"?d=!0:M==="="&&w(E)}if(m(),k=n.pop(),k)throw new Error('Unclosed section "'+k[1]+'" at '+C.pos);return Mz(Az(o))}function Az(t){for(var e=[],r,n,o=0,s=t.length;o<s;++o)r=t[o],r&&(r[0]==="text"&&n&&n[0]==="text"?(n[1]+=r[1],n[3]=r[3]):(e.push(r),n=r));return e}function Mz(t){for(var e=[],r=e,n=[],o,s,u=0,d=t.length;u<d;++u)switch(o=t[u],o[0]){case"#":case"^":r.push(o),n.push(o),r=o[4]=[];break;case"/":s=n.pop(),s[5]=o[2],r=n.length>0?n[n.length-1][4]:e;break;default:r.push(o)}return e}function sp(t){this.string=t,this.tail=t,this.pos=0}sp.prototype.eos=function(){return this.tail===""};sp.prototype.scan=function(e){var r=this.tail.match(e);if(!r||r.index!==0)return"";var n=r[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};sp.prototype.scanUntil=function(e){var r=this.tail.search(e),n;switch(r){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=n.length,n};function Pc(t,e){this.view=t,this.cache={".":this.view},this.parent=e}Pc.prototype.push=function(e){return new Pc(e,this)};Pc.prototype.lookup=function(e){var r=this.cache,n;if(r.hasOwnProperty(e))n=r[e];else{for(var o=this,s,u,d,p=!1;o;){if(e.indexOf(".")>0)for(s=o.view,u=e.split("."),d=0;s!=null&&d<u.length;)d===u.length-1&&(p=TC(s,u[d])||mz(s,u[d])),s=s[u[d++]];else s=o.view[e],p=TC(o.view,e);if(p){n=s;break}o=o.parent}r[e]=n}return db(n)&&(n=n.call(this.view)),n};function Un(){this.templateCache={_cache:{},set:function(e,r){this._cache[e]=r},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Un.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Un.prototype.parse=function(e,r){var n=this.templateCache,o=e+":"+(r||wi.tags).join(":"),s=typeof n<"u",u=s?n.get(o):void 0;return u==null&&(u=jz(e,r),s&&n.set(o,u)),u};Un.prototype.render=function(e,r,n,o){var s=this.getConfigTags(o),u=this.parse(e,s),d=r instanceof Pc?r:new Pc(r,void 0);return this.renderTokens(u,d,n,e,o)};Un.prototype.renderTokens=function(e,r,n,o,s){for(var u="",d,p,h,m=0,b=e.length;m<b;++m)h=void 0,d=e[m],p=d[0],p==="#"?h=this.renderSection(d,r,n,o,s):p==="^"?h=this.renderInverted(d,r,n,o,s):p===">"?h=this.renderPartial(d,r,n,s):p==="&"?h=this.unescapedValue(d,r):p==="name"?h=this.escapedValue(d,r,s):p==="text"&&(h=this.rawValue(d)),h!==void 0&&(u+=h);return u};Un.prototype.renderSection=function(e,r,n,o,s){var u=this,d="",p=r.lookup(e[1]);function h(y){return u.render(y,r,n,s)}if(p){if(Xc(p))for(var m=0,b=p.length;m<b;++m)d+=this.renderTokens(e[4],r.push(p[m]),n,o,s);else if(typeof p=="object"||typeof p=="string"||typeof p=="number")d+=this.renderTokens(e[4],r.push(p),n,o,s);else if(db(p)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");p=p.call(r.view,o.slice(e[3],e[5]),h),p!=null&&(d+=p)}else d+=this.renderTokens(e[4],r,n,o,s);return d}};Un.prototype.renderInverted=function(e,r,n,o,s){var u=r.lookup(e[1]);if(!u||Xc(u)&&u.length===0)return this.renderTokens(e[4],r,n,o,s)};Un.prototype.indentPartial=function(e,r,n){for(var o=r.replace(/[^ \t]/g,""),s=e.split(`
|
|
321
|
-
`),u=0;u<s.length;u++)s[u].length&&(u>0||!n)&&(s[u]=o+s[u]);return s.join(`
|
|
322
|
-
`)};Un.prototype.renderPartial=function(e,r,n,o){if(n){var s=this.getConfigTags(o),u=db(n)?n(e[1]):n[e[1]];if(u!=null){var d=e[6],p=e[5],h=e[4],m=u;p==0&&h&&(m=this.indentPartial(u,h,d));var b=this.parse(m,s);return this.renderTokens(b,r,n,m,o)}}};Un.prototype.unescapedValue=function(e,r){var n=r.lookup(e[1]);if(n!=null)return n};Un.prototype.escapedValue=function(e,r,n){var o=this.getConfigEscape(n)||wi.escape,s=r.lookup(e[1]);if(s!=null)return typeof s=="number"&&o===wi.escape?String(s):o(s)};Un.prototype.rawValue=function(e){return e[1]};Un.prototype.getConfigTags=function(e){return Xc(e)?e:e&&typeof e=="object"?e.tags:void 0};Un.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!Xc(e))return e.escape};var wi={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){zd.templateCache=t},get templateCache(){return zd.templateCache}},zd=new Un;wi.clearCache=function(){return zd.clearCache()};wi.parse=function(e,r){return zd.parse(e,r)};wi.render=function(e,r,n,o){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+hz(e)+'" was given as the first argument for mustache#render(template, view, partials)');return zd.render(e,r,n,o)};wi.escape=Sz;wi.Scanner=sp;wi.Context=Pc;wi.Writer=Un;var jC={};/*! *****************************************************************************
|
|
323
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
324
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
325
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
326
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
327
|
-
|
|
328
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
329
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
330
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
331
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
332
|
-
|
|
333
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
334
|
-
and limitations under the License.
|
|
335
|
-
***************************************************************************** */var AC;function Rz(){if(AC)return jC;AC=1;var t;return(function(e){(function(r){var n=typeof gw=="object"?gw:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),o=s(e);typeof n.Reflect>"u"?n.Reflect=e:o=s(n.Reflect,o),r(o);function s(u,d){return function(p,h){typeof u[p]!="function"&&Object.defineProperty(u,p,{configurable:!0,writable:!0,value:h}),d&&d(p,h)}}})(function(r){var n=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",u=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",p={__proto__:[]}instanceof Array,h=!d&&!p,m={create:d?function(){return at(Object.create(null))}:p?function(){return at({__proto__:null})}:function(){return at({})},has:h?function(fe,we){return n.call(fe,we)}:function(fe,we){return we in fe},get:h?function(fe,we){return n.call(fe,we)?fe[we]:void 0}:function(fe,we){return fe[we]}},b=Object.getPrototypeOf(Function),y=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",v=!y&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ft(),w=!y&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ue(),C=!y&&typeof WeakMap=="function"?WeakMap:kt(),T=new C;function M(fe,we,ke,_e){if(ue(ke)){if(!De(fe))throw new TypeError;if(!Be(we))throw new TypeError;return D(fe,we)}else{if(!De(fe))throw new TypeError;if(!re(we))throw new TypeError;if(!re(_e)&&!ue(_e)&&!ce(_e))throw new TypeError;return ce(_e)&&(_e=void 0),ke=se(ke),A(fe,we,ke,_e)}}r("decorate",M);function E(fe,we){function ke(_e,Ge){if(!re(_e))throw new TypeError;if(!ue(Ge)&&!Ve(Ge))throw new TypeError;ee(fe,we,_e,Ge)}return ke}r("metadata",E);function R(fe,we,ke,_e){if(!re(ke))throw new TypeError;return ue(_e)||(_e=se(_e)),ee(fe,we,ke,_e)}r("defineMetadata",R);function j(fe,we,ke){if(!re(we))throw new TypeError;return ue(ke)||(ke=se(ke)),F(fe,we,ke)}r("hasMetadata",j);function k(fe,we,ke){if(!re(we))throw new TypeError;return ue(ke)||(ke=se(ke)),$(fe,we,ke)}r("hasOwnMetadata",k);function P(fe,we,ke){if(!re(we))throw new TypeError;return ue(ke)||(ke=se(ke)),I(fe,we,ke)}r("getMetadata",P);function z(fe,we,ke){if(!re(we))throw new TypeError;return ue(ke)||(ke=se(ke)),Q(fe,we,ke)}r("getOwnMetadata",z);function _(fe,we){if(!re(fe))throw new TypeError;return ue(we)||(we=se(we)),J(fe,we)}r("getMetadataKeys",_);function B(fe,we){if(!re(fe))throw new TypeError;return ue(we)||(we=se(we)),L(fe,we)}r("getOwnMetadataKeys",B);function G(fe,we,ke){if(!re(we))throw new TypeError;ue(ke)||(ke=se(ke));var _e=Y(we,ke,!1);if(ue(_e)||!_e.delete(fe))return!1;if(_e.size>0)return!0;var Ge=T.get(we);return Ge.delete(ke),Ge.size>0||T.delete(we),!0}r("deleteMetadata",G);function D(fe,we){for(var ke=fe.length-1;ke>=0;--ke){var _e=fe[ke],Ge=_e(we);if(!ue(Ge)&&!ce(Ge)){if(!Be(Ge))throw new TypeError;we=Ge}}return we}function A(fe,we,ke,_e){for(var Ge=fe.length-1;Ge>=0;--Ge){var Je=fe[Ge],ie=Je(we,ke,_e);if(!ue(ie)&&!ce(ie)){if(!re(ie))throw new TypeError;_e=ie}}return _e}function Y(fe,we,ke){var _e=T.get(fe);if(ue(_e)){if(!ke)return;_e=new v,T.set(fe,_e)}var Ge=_e.get(we);if(ue(Ge)){if(!ke)return;Ge=new v,_e.set(we,Ge)}return Ge}function F(fe,we,ke){var _e=$(fe,we,ke);if(_e)return!0;var Ge=Fe(we);return ce(Ge)?!1:F(fe,Ge,ke)}function $(fe,we,ke){var _e=Y(we,ke,!1);return ue(_e)?!1:Ce(_e.has(fe))}function I(fe,we,ke){var _e=$(fe,we,ke);if(_e)return Q(fe,we,ke);var Ge=Fe(we);if(!ce(Ge))return I(fe,Ge,ke)}function Q(fe,we,ke){var _e=Y(we,ke,!1);if(!ue(_e))return _e.get(fe)}function ee(fe,we,ke,_e){var Ge=Y(ke,_e,!0);Ge.set(fe,we)}function J(fe,we){var ke=L(fe,we),_e=Fe(fe);if(_e===null)return ke;var Ge=J(_e,we);if(Ge.length<=0)return ke;if(ke.length<=0)return Ge;for(var Je=new w,ie=[],Pe=0,He=ke;Pe<He.length;Pe++){var $e=He[Pe],yt=Je.has($e);yt||(Je.add($e),ie.push($e))}for(var Gt=0,Xt=Ge;Gt<Xt.length;Gt++){var $e=Xt[Gt],yt=Je.has($e);yt||(Je.add($e),ie.push($e))}return ie}function L(fe,we){var ke=[],_e=Y(fe,we,!1);if(ue(_e))return ke;for(var Ge=_e.keys(),Je=We(Ge),ie=0;;){var Pe=le(Je);if(!Pe)return ke.length=ie,ke;var He=ct(Pe);try{ke[ie]=He}catch($e){try{Ze(Je)}finally{throw $e}}ie++}}function oe(fe){if(fe===null)return 1;switch(typeof fe){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return fe===null?1:6;default:return 6}}function ue(fe){return fe===void 0}function ce(fe){return fe===null}function K(fe){return typeof fe=="symbol"}function re(fe){return typeof fe=="object"?fe!==null:typeof fe=="function"}function Z(fe,we){switch(oe(fe)){case 0:return fe;case 1:return fe;case 2:return fe;case 3:return fe;case 4:return fe;case 5:return fe}var ke="string",_e=Ie(fe,s);if(_e!==void 0){var Ge=_e.call(fe,ke);if(re(Ge))throw new TypeError;return Ge}return ye(fe)}function ye(fe,we){var ke,_e,Ge;{var Je=fe.toString;if(ze(Je)){var _e=Je.call(fe);if(!re(_e))return _e}var ke=fe.valueOf;if(ze(ke)){var _e=ke.call(fe);if(!re(_e))return _e}}throw new TypeError}function Ce(fe){return!!fe}function be(fe){return""+fe}function se(fe){var we=Z(fe);return K(we)?we:be(we)}function De(fe){return Array.isArray?Array.isArray(fe):fe instanceof Object?fe instanceof Array:Object.prototype.toString.call(fe)==="[object Array]"}function ze(fe){return typeof fe=="function"}function Be(fe){return typeof fe=="function"}function Ve(fe){switch(oe(fe)){case 3:return!0;case 4:return!0;default:return!1}}function Ie(fe,we){var ke=fe[we];if(ke!=null){if(!ze(ke))throw new TypeError;return ke}}function We(fe){var we=Ie(fe,u);if(!ze(we))throw new TypeError;var ke=we.call(fe);if(!re(ke))throw new TypeError;return ke}function ct(fe){return fe.value}function le(fe){var we=fe.next();return we.done?!1:we}function Ze(fe){var we=fe.return;we&&we.call(fe)}function Fe(fe){var we=Object.getPrototypeOf(fe);if(typeof fe!="function"||fe===b||we!==b)return we;var ke=fe.prototype,_e=ke&&Object.getPrototypeOf(ke);if(_e==null||_e===Object.prototype)return we;var Ge=_e.constructor;return typeof Ge!="function"||Ge===fe?we:Ge}function ft(){var fe={},we=[],ke=(function(){function ie(Pe,He,$e){this._index=0,this._keys=Pe,this._values=He,this._selector=$e}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[u]=function(){return this},ie.prototype.next=function(){var Pe=this._index;if(Pe>=0&&Pe<this._keys.length){var He=this._selector(this._keys[Pe],this._values[Pe]);return Pe+1>=this._keys.length?(this._index=-1,this._keys=we,this._values=we):this._index++,{value:He,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function(Pe){throw this._index>=0&&(this._index=-1,this._keys=we,this._values=we),Pe},ie.prototype.return=function(Pe){return this._index>=0&&(this._index=-1,this._keys=we,this._values=we),{value:Pe,done:!0}},ie})();return(function(){function ie(){this._keys=[],this._values=[],this._cacheKey=fe,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function(Pe){return this._find(Pe,!1)>=0},ie.prototype.get=function(Pe){var He=this._find(Pe,!1);return He>=0?this._values[He]:void 0},ie.prototype.set=function(Pe,He){var $e=this._find(Pe,!0);return this._values[$e]=He,this},ie.prototype.delete=function(Pe){var He=this._find(Pe,!1);if(He>=0){for(var $e=this._keys.length,yt=He+1;yt<$e;yt++)this._keys[yt-1]=this._keys[yt],this._values[yt-1]=this._values[yt];return this._keys.length--,this._values.length--,Pe===this._cacheKey&&(this._cacheKey=fe,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=fe,this._cacheIndex=-2},ie.prototype.keys=function(){return new ke(this._keys,this._values,_e)},ie.prototype.values=function(){return new ke(this._keys,this._values,Ge)},ie.prototype.entries=function(){return new ke(this._keys,this._values,Je)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[u]=function(){return this.entries()},ie.prototype._find=function(Pe,He){return this._cacheKey!==Pe&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Pe)),this._cacheIndex<0&&He&&(this._cacheIndex=this._keys.length,this._keys.push(Pe),this._values.push(void 0)),this._cacheIndex},ie})();function _e(ie,Pe){return ie}function Ge(ie,Pe){return Pe}function Je(ie,Pe){return[ie,Pe]}}function Ue(){return(function(){function fe(){this._map=new v}return Object.defineProperty(fe.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),fe.prototype.has=function(we){return this._map.has(we)},fe.prototype.add=function(we){return this._map.set(we,we),this},fe.prototype.delete=function(we){return this._map.delete(we)},fe.prototype.clear=function(){this._map.clear()},fe.prototype.keys=function(){return this._map.keys()},fe.prototype.values=function(){return this._map.values()},fe.prototype.entries=function(){return this._map.entries()},fe.prototype["@@iterator"]=function(){return this.keys()},fe.prototype[u]=function(){return this.keys()},fe})()}function kt(){var fe=16,we=m.create(),ke=_e();return(function(){function He(){this._key=_e()}return He.prototype.has=function($e){var yt=Ge($e,!1);return yt!==void 0?m.has(yt,this._key):!1},He.prototype.get=function($e){var yt=Ge($e,!1);return yt!==void 0?m.get(yt,this._key):void 0},He.prototype.set=function($e,yt){var Gt=Ge($e,!0);return Gt[this._key]=yt,this},He.prototype.delete=function($e){var yt=Ge($e,!1);return yt!==void 0?delete yt[this._key]:!1},He.prototype.clear=function(){this._key=_e()},He})();function _e(){var He;do He="@@WeakMap@@"+Pe();while(m.has(we,He));return we[He]=!0,He}function Ge(He,$e){if(!n.call(He,ke)){if(!$e)return;Object.defineProperty(He,ke,{value:m.create()})}return He[ke]}function Je(He,$e){for(var yt=0;yt<$e;++yt)He[yt]=Math.random()*255|0;return He}function ie(He){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(He)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(He)):Je(new Uint8Array(He),He):Je(new Array(He),He)}function Pe(){var He=ie(fe);He[6]=He[6]&79|64,He[8]=He[8]&191|128;for(var $e="",yt=0;yt<fe;++yt){var Gt=He[yt];(yt===4||yt===6||yt===8)&&($e+="-"),Gt<16&&($e+="0"),$e+=Gt.toString(16).toLowerCase()}return $e}}function at(fe){return fe.__=void 0,delete fe.__,fe}})})(t||(t={})),jC}Rz();var lp=(function(){function t(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=e==null?void 0:e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)}return t})(),kz=(function(){function t(){}return t.prototype.transform=function(e){var r=[];return Object.keys(e.properties).forEach(function(n){e.properties[n].forEach(function(o){var s={message:o.message,groups:o.groups,always:o.always,each:o.each},u={type:o.type,name:o.name,target:e.name,propertyName:n,constraints:o.constraints,validationTypeOptions:o.options,validationOptions:s};r.push(new lp(u))})}),r},t})();function Oz(t){return t instanceof Map?Array.from(t.values()):Array.isArray(t)?t:Array.from(t)}function Pz(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}function l0(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var _z=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},MC=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],u;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return s},Lz=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))},s5=(function(){function t(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(t.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),t.prototype.addValidationSchema=function(e){var r=this,n=new kz().transform(e);n.forEach(function(o){return r.addValidationMetadata(o)})},t.prototype.addValidationMetadata=function(e){var r=this.validationMetadatas.get(e.target);r?r.push(e):this.validationMetadatas.set(e.target,[e])},t.prototype.addConstraintMetadata=function(e){var r=this.constraintMetadatas.get(e.target);r?r.push(e):this.constraintMetadatas.set(e.target,[e])},t.prototype.groupByPropertyName=function(e){var r={};return e.forEach(function(n){r[n.propertyName]||(r[n.propertyName]=[]),r[n.propertyName].push(n)}),r},t.prototype.getTargetValidationMetadatas=function(e,r,n,o,s){var u,d,p=function(j){return typeof j.always<"u"?j.always:j.groups&&j.groups.length?!1:n},h=function(j){return!!(o&&(!s||!s.length)&&j.groups&&j.groups.length)},m=this.validationMetadatas.get(e)||[],b=m.filter(function(j){return j.target!==e&&j.target!==r?!1:p(j)?!0:h(j)?!1:s&&s.length>0?j.groups&&!!j.groups.find(function(k){return s.indexOf(k)!==-1}):!0}),y=[];try{for(var v=_z(this.validationMetadatas.entries()),w=v.next();!w.done;w=v.next()){var C=MC(w.value,2),T=C[0],M=C[1];e.prototype instanceof T&&y.push.apply(y,Lz([],MC(M),!1))}}catch(j){u={error:j}}finally{try{w&&!w.done&&(d=v.return)&&d.call(v)}finally{if(u)throw u.error}}var E=y.filter(function(j){return typeof j.target=="string"||j.target===e||j.target instanceof Function&&!(e.prototype instanceof j.target)?!1:p(j)?!0:h(j)?!1:s&&s.length>0?j.groups&&!!j.groups.find(function(k){return s.indexOf(k)!==-1}):!0}),R=E.filter(function(j){return!b.find(function(k){return k.propertyName===j.propertyName&&k.type===j.type})});return b.concat(R)},t.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},t})();function fl(){var t=Pz();return t.classValidatorMetadataStorage||(t.classValidatorMetadataStorage=new s5),t.classValidatorMetadataStorage}var RC=(function(){function t(){}return t.prototype.toString=function(e,r,n,o){var s=this;e===void 0&&(e=!1),r===void 0&&(r=!1),n===void 0&&(n=""),o===void 0&&(o=!1);var u=e?"\x1B[1m":"",d=e?"\x1B[22m":"",p=function(){var b;return(o?Object.values:Object.keys)((b=s.constraints)!==null&&b!==void 0?b:{}).join(", ")},h=function(b){return" - property ".concat(u).concat(n).concat(b).concat(d," has failed the following constraints: ").concat(u).concat(p()).concat(d,`
|
|
336
|
-
`)};if(r){var m=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?h(m):this.children?this.children.map(function(b){return b.toString(e,!0,"".concat(n).concat(m),o)}).join(""):""}else return"An instance of ".concat(u).concat(this.target?this.target.constructor.name:"an object").concat(d,` has failed the validation:
|
|
337
|
-
`)+(this.constraints?h(this.property):"")+(this.children?this.children.map(function(b){return b.toString(e,!0,s.property,o)}).join(""):"")},t})(),Mn=(function(){function t(){}return t.isValid=function(e){var r=this;return e!=="isValid"&&e!=="getMessage"&&Object.keys(this).map(function(n){return r[n]}).indexOf(e)!==-1},t.CUSTOM_VALIDATION="customValidation",t.NESTED_VALIDATION="nestedValidation",t.PROMISE_VALIDATION="promiseValidation",t.CONDITIONAL_VALIDATION="conditionalValidation",t.WHITELIST="whitelistValidation",t.IS_DEFINED="isDefined",t})();function Nz(t){return Array.isArray(t)?t.join(", "):(typeof t=="symbol"&&(t=t.description),"".concat(t))}var Iz=(function(){function t(){}return t.replaceMessageSpecialTokens=function(e,r){var n;return e instanceof Function?n=e(r):typeof e=="string"&&(n=e),n&&Array.isArray(r.constraints)&&r.constraints.forEach(function(o,s){n=n.replace(new RegExp("\\$constraint".concat(s+1),"g"),Nz(o))}),n&&r.value!==void 0&&r.value!==null&&["string","boolean","number"].includes(typeof r.value)&&(n=n.replace(/\$value/g,r.value)),n&&(n=n.replace(/\$property/g,r.property)),n&&(n=n.replace(/\$target/g,r.targetName)),n},t})(),ed=function(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],u;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return s},kC=(function(){function t(e,r){this.validator=e,this.validatorOptions=r,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=fl()}return t.prototype.execute=function(e,r,n){var o=this,s,u;!this.metadataStorage.hasValidationMetaData&&((s=this.validatorOptions)===null||s===void 0?void 0:s.enableDebugMessages)===!0&&console.warn(`No validation metadata found. No validation will be performed. There are multiple possible reasons:
|
|
338
|
-
- There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
|
|
339
|
-
- This validation runs before any file with validation decorator was parsed by NodeJS.`);var d=this.validatorOptions?this.validatorOptions.groups:void 0,p=this.validatorOptions&&this.validatorOptions.strictGroups||!1,h=this.validatorOptions&&this.validatorOptions.always||!1,m=((u=this.validatorOptions)===null||u===void 0?void 0:u.forbidUnknownValues)===void 0||this.validatorOptions.forbidUnknownValues!==!1,b=this.metadataStorage.getTargetValidationMetadatas(e.constructor,r,h,p,d),y=this.metadataStorage.groupByPropertyName(b);if(m&&!b.length){var v=new RC;(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(v.target=e),v.value=void 0,v.property=void 0,v.children=[],v.constraints={unknownValue:"an unknown value was passed to the validate function"},n.push(v);return}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,y,n),Object.keys(y).forEach(function(w){var C=e[w],T=y[w].filter(function(E){return E.type===Mn.IS_DEFINED}),M=y[w].filter(function(E){return E.type!==Mn.IS_DEFINED&&E.type!==Mn.WHITELIST});C instanceof Promise&&M.find(function(E){return E.type===Mn.PROMISE_VALIDATION})?o.awaitingPromises.push(C.then(function(E){o.performValidations(e,E,w,T,M,n)})):o.performValidations(e,C,w,T,M,n)})},t.prototype.whitelist=function(e,r,n){var o=this,s=[];Object.keys(e).forEach(function(u){(!r[u]||r[u].length===0)&&s.push(u)}),s.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?s.forEach(function(u){var d,p=o.generateValidationError(e,e[u],u);p.constraints=(d={},d[Mn.WHITELIST]="property ".concat(u," should not exist"),d),p.children=void 0,n.push(p)}):s.forEach(function(u){return delete e[u]}))},t.prototype.stripEmptyErrors=function(e){var r=this;return e.filter(function(n){if(n.children&&(n.children=r.stripEmptyErrors(n.children)),Object.keys(n.constraints).length===0){if(n.children.length===0)return!1;delete n.constraints}return!0})},t.prototype.performValidations=function(e,r,n,o,s,u){var d=s.filter(function(y){return y.type===Mn.CUSTOM_VALIDATION}),p=s.filter(function(y){return y.type===Mn.NESTED_VALIDATION}),h=s.filter(function(y){return y.type===Mn.CONDITIONAL_VALIDATION}),m=this.generateValidationError(e,r,n);u.push(m);var b=this.conditionalValidations(e,r,h);b&&(this.customValidations(e,r,o,m),this.mapContexts(e,r,o,m),!(r===void 0&&this.validatorOptions&&this.validatorOptions.skipUndefinedProperties===!0)&&(r===null&&this.validatorOptions&&this.validatorOptions.skipNullProperties===!0||r==null&&this.validatorOptions&&this.validatorOptions.skipMissingProperties===!0||(this.customValidations(e,r,d,m),this.nestedValidations(r,p,m),this.mapContexts(e,r,s,m),this.mapContexts(e,r,d,m))))},t.prototype.generateValidationError=function(e,r,n){var o=new RC;return(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.target===void 0||this.validatorOptions.validationError.target===!0)&&(o.target=e),(!this.validatorOptions||!this.validatorOptions.validationError||this.validatorOptions.validationError.value===void 0||this.validatorOptions.validationError.value===!0)&&(o.value=r),o.property=n,o.children=[],o.constraints={},o},t.prototype.conditionalValidations=function(e,r,n){return n.map(function(o){return o.constraints[0](e,r)}).reduce(function(o,s){return o&&s},!0)},t.prototype.customValidations=function(e,r,n,o){var s=this;n.forEach(function(u){s.metadataStorage.getTargetValidatorConstraints(u.constraintCls).forEach(function(d){if(!(d.async&&s.ignoreAsyncValidations)&&!(s.validatorOptions&&s.validatorOptions.stopAtFirstError&&Object.keys(o.constraints||{}).length>0)){var p={targetName:e.constructor?e.constructor.name:void 0,property:u.propertyName,object:e,value:r,constraints:u.constraints};if(!u.each||!(Array.isArray(r)||r instanceof Set||r instanceof Map)){var h=d.instance.validate(r,p);if(l0(h)){var m=h.then(function(k){if(!k){var P=ed(s.createValidationError(e,r,u,d),2),z=P[0],_=P[1];o.constraints[z]=_,u.context&&(o.contexts||(o.contexts={}),o.contexts[z]=Object.assign(o.contexts[z]||{},u.context))}});s.awaitingPromises.push(m)}else if(!h){var b=ed(s.createValidationError(e,r,u,d),2),y=b[0],v=b[1];o.constraints[y]=v}return}var w=Oz(r),C=w.map(function(k){return d.instance.validate(k,p)}),T=C.some(function(k){return l0(k)});if(T){var M=C.map(function(k){return l0(k)?k:Promise.resolve(k)}),E=Promise.all(M).then(function(k){var P=k.every(function(G){return G});if(!P){var z=ed(s.createValidationError(e,r,u,d),2),_=z[0],B=z[1];o.constraints[_]=B,u.context&&(o.contexts||(o.contexts={}),o.contexts[_]=Object.assign(o.contexts[_]||{},u.context))}});s.awaitingPromises.push(E);return}var R=C.every(function(k){return k});if(!R){var j=ed(s.createValidationError(e,r,u,d),2),y=j[0],v=j[1];o.constraints[y]=v}}})})},t.prototype.nestedValidations=function(e,r,n){var o=this;e!==void 0&&r.forEach(function(s){if(!(s.type!==Mn.NESTED_VALIDATION&&s.type!==Mn.PROMISE_VALIDATION)&&!(o.validatorOptions&&o.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map){var u=e instanceof Set?Array.from(e):e;u.forEach(function(b,y){o.performValidations(e,b,y.toString(),[],r,n.children)})}else if(e instanceof Object){var d=typeof s.target=="string"?s.target:s.target.name;o.execute(e,d,n.children)}else{var p=ed(o.createValidationError(s.target,e,s),2),h=p[0],m=p[1];n.constraints[h]=m}})},t.prototype.mapContexts=function(e,r,n,o){var s=this;return n.forEach(function(u){if(u.context){var d=void 0;if(u.type===Mn.CUSTOM_VALIDATION){var p=s.metadataStorage.getTargetValidatorConstraints(u.constraintCls);d=p[0]}var h=s.getConstraintType(u,d);o.constraints[h]&&(o.contexts||(o.contexts={}),o.contexts[h]=Object.assign(o.contexts[h]||{},u.context))}})},t.prototype.createValidationError=function(e,r,n,o){var s=e.constructor?e.constructor.name:void 0,u=this.getConstraintType(n,o),d={targetName:s,property:n.propertyName,object:e,value:r,constraints:n.constraints},p=n.message||"";!n.message&&(!this.validatorOptions||this.validatorOptions&&!this.validatorOptions.dismissDefaultMessages)&&o&&o.instance.defaultMessage instanceof Function&&(p=o.instance.defaultMessage(d));var h=Iz.replaceMessageSpecialTokens(p,d);return[u,h]},t.prototype.getConstraintType=function(e,r){var n=r&&r.name?r.name:e.type;return n},t})(),Bz=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(u){u(s)})}return new(r||(r=Promise))(function(s,u){function d(m){try{h(n.next(m))}catch(b){u(b)}}function p(m){try{h(n.throw(m))}catch(b){u(b)}}function h(m){m.done?s(m.value):o(m.value).then(d,p)}h((n=n.apply(t,e||[])).next())})},zz=function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(h){return function(m){return p([h,m])}}function p(h){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,h[0]&&(r=0)),r;)try{if(n=1,o&&(s=h[0]&2?o.return:h[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,h[1])).done)return s;switch(o=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,o=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){r.label=h[1];break}if(h[0]===6&&r.label<s[1]){r.label=s[1],s=h;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(h);break}s[2]&&r.ops.pop(),r.trys.pop();continue}h=e.call(t,r)}catch(m){h=[6,m],o=0}finally{n=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},OC=(function(){function t(){}return t.prototype.validate=function(e,r,n){return this.coreValidate(e,r,n)},t.prototype.validateOrReject=function(e,r,n){return Bz(this,void 0,void 0,function(){var o;return zz(this,function(s){switch(s.label){case 0:return[4,this.coreValidate(e,r,n)];case 1:return o=s.sent(),o.length?[2,Promise.reject(o)]:[2]}})})},t.prototype.validateSync=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,u=typeof e=="string"?e:void 0,d=new kC(this,s);d.ignoreAsyncValidations=!0;var p=[];return d.execute(o,u,p),d.stripEmptyErrors(p)},t.prototype.coreValidate=function(e,r,n){var o=typeof e=="string"?r:e,s=typeof e=="string"?n:r,u=typeof e=="string"?e:void 0,d=new kC(this,s),p=[];return d.execute(o,u,p),Promise.all(d.awaitingPromises).then(function(){return d.stripEmptyErrors(p)})},t})(),$z=new((function(){function t(){this.instances=[]}return t.prototype.get=function(e){var r=this.instances.find(function(n){return n.type===e});return r||(r={type:e,object:new e},this.instances.push(r)),r.object},t})());function jh(t){return $z.get(t)}var Dz=(function(){function t(e,r,n){n===void 0&&(n=!1),this.target=e,this.name=r,this.async=n}return Object.defineProperty(t.prototype,"instance",{get:function(){return jh(this.target)},enumerable:!1,configurable:!0}),t})();function Hz(t){var e;if(t.validator instanceof Function){e=t.validator;var r=jh(s5).getTargetValidatorConstraints(t.validator);if(r.length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(t.target.name,":").concat(t.propertyName)}else{var n=t.validator;e=(function(){function s(){}return s.prototype.validate=function(u,d){return n.validate(u,d)},s.prototype.defaultMessage=function(u){return n.defaultMessage?n.defaultMessage(u):""},s})(),fl().addConstraintMetadata(new Dz(e,t.name,t.async))}var o={type:t.name&&Mn.isValid(t.name)?t.name:Mn.CUSTOM_VALIDATION,name:t.name,target:t.target,propertyName:t.propertyName,validationOptions:t.options,constraintCls:e,constraints:t.constraints};fl().addValidationMetadata(new lp(o))}function go(t,e){return function(r){var n=e&&e.each?"each value in ":"";return t(n,r)}}function yo(t,e){return function(r,n){Hz({name:t.name,target:r.constructor,propertyName:n,options:e,constraints:t.constraints,validator:t.validator})}}var Uz="isOptional";function W(t){return function(e,r){var n={type:Mn.CONDITIONAL_VALIDATION,name:Uz,target:e.constructor,propertyName:r,constraints:[function(o,s){return o[r]!==null&&o[r]!==void 0}],validationOptions:t};fl().addValidationMetadata(new lp(n))}}function Gi(t,e){return function(r,n){var o={type:Mn.CONDITIONAL_VALIDATION,target:r.constructor,propertyName:n,constraints:[t],validationOptions:e};fl().addValidationMetadata(new lp(o))}}var J0=function(){return J0=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},J0.apply(this,arguments)};function ai(t){var e=J0({},t),r=e.each?"each value in ":"";return e.message=e.message||r+"nested property $property must be either object or array",function(n,o){var s={type:Mn.NESTED_VALIDATION,target:n.constructor,propertyName:o,validationOptions:e};fl().addValidationMetadata(new lp(s))}}var Nf={exports:{}},PC;function pb(){return PC||(PC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(n){if(n==null)throw new TypeError("Expected a string but received a ".concat(n));if(n.constructor.name!=="String")throw new TypeError("Expected a string but received a ".concat(n.constructor.name))}t.exports=e.default,t.exports.default=e.default})(Nf,Nf.exports)),Nf.exports}var If={exports:{}},_C;function l5(){return _C||(_C=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;for(var s in o)typeof n[s]>"u"&&(n[s]=o[s]);return n}t.exports=e.default,t.exports.default=e.default})(If,If.exports)),If.exports}var Bf={exports:{}},LC;function Vz(){return LC||(LC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(o,s){return o.indexOf(s)!==-1};e.default=r,t.exports=e.default,t.exports.default=e.default})(Bf,Bf.exports)),Bf.exports}var qz="isNotEmpty";function Fz(t){return t!==""&&t!==null&&t!==void 0}function xs(t){return yo({name:qz,validator:{validate:function(e,r){return Fz(e)},defaultMessage:go(function(e){return e+"$property should not be empty"},t)}},t)}var Wz="isIn";function Gz(t,e){return Array.isArray(e)&&e.some(function(r){return r===t})}function qe(t,e){return yo({name:Wz,constraints:[t],validator:{validate:function(r,n){return Gz(r,n==null?void 0:n.constraints[0])},defaultMessage:go(function(r){return r+"$property must be one of the following values: $constraint1"},e)}},e)}var Xz="max";function Yz(t,e){return typeof t=="number"&&typeof e=="number"&&t<=e}function Sl(t,e){return yo({name:Xz,constraints:[t],validator:{validate:function(r,n){return Yz(r,n==null?void 0:n.constraints[0])},defaultMessage:go(function(r){return r+"$property must not be greater than $constraint1"},e)}},e)}var Qz="min";function Kz(t,e){return typeof t=="number"&&typeof e=="number"&&t>=e}function si(t,e){return yo({name:Qz,constraints:[t],validator:{validate:function(r,n){return Kz(r,n==null?void 0:n.constraints[0])},defaultMessage:go(function(r){return r+"$property must not be less than $constraint1"},e)}},e)}var zf={exports:{}},NC;function Zz(){return NC||(NC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function r(o){return Object.prototype.toString.call(o)==="[object RegExp]"}function n(o,s){for(var u=0;u<s.length;u++){var d=s[u];if(o===d||r(d)&&d.test(o))return!0}return!1}t.exports=e.default,t.exports.default=e.default})(zf,zf.exports)),zf.exports}var $f={exports:{}},IC;function Jz(){return IC||(IC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var r=o(pb()),n=o(l5());function o(d){return d&&d.__esModule?d:{default:d}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function u(d,p){(0,r.default)(d),p=(0,n.default)(p,s),p.allow_trailing_dot&&d[d.length-1]==="."&&(d=d.substring(0,d.length-1)),p.allow_wildcard===!0&&d.indexOf("*.")===0&&(d=d.substring(2));var h=d.split("."),m=h[h.length-1];return p.require_tld&&(h.length<2||!p.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(m)||/\s/.test(m))||!p.allow_numeric_tld&&/^\d+$/.test(m)?!1:h.every(function(b){return!(b.length>63&&!p.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(b)||/[\uff01-\uff5e]/.test(b)||/^-|-$/.test(b)||!p.allow_underscores&&/_/.test(b))})}t.exports=e.default,t.exports.default=e.default})($f,$f.exports)),$f.exports}var Df={exports:{}},BC;function e$(){return BC||(BC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var r=n(pb());function n(b){return b&&b.__esModule?b:{default:b}}function o(b){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},o(b)}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",u="(".concat(s,"[.]){3}").concat(s),d=new RegExp("^".concat(u,"$")),p="(?:[0-9a-fA-F]{1,4})",h=new RegExp("^("+"(?:".concat(p,":){7}(?:").concat(p,"|:)|")+"(?:".concat(p,":){6}(?:").concat(u,"|:").concat(p,"|:)|")+"(?:".concat(p,":){5}(?::").concat(u,"|(:").concat(p,"){1,2}|:)|")+"(?:".concat(p,":){4}(?:(:").concat(p,"){0,1}:").concat(u,"|(:").concat(p,"){1,3}|:)|")+"(?:".concat(p,":){3}(?:(:").concat(p,"){0,2}:").concat(u,"|(:").concat(p,"){1,4}|:)|")+"(?:".concat(p,":){2}(?:(:").concat(p,"){0,3}:").concat(u,"|(:").concat(p,"){1,5}|:)|")+"(?:".concat(p,":){1}(?:(:").concat(p,"){0,4}:").concat(u,"|(:").concat(p,"){1,6}|:)|")+"(?::((?::".concat(p,"){0,5}:").concat(u,"|(?::").concat(p,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");function m(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,r.default)(b);var v=(o(y)==="object"?y.version:arguments[1])||"";return v?v.toString()==="4"?d.test(b):v.toString()==="6"?h.test(b):!1:m(b,{version:4})||m(b,{version:6})}t.exports=e.default,t.exports.default=e.default})(Df,Df.exports)),Df.exports}var Hf={exports:{}},zC;function t$(){return zC||(zC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=M;var r=p(pb()),n=p(Zz()),o=p(Vz()),s=p(Jz()),u=p(e$()),d=p(l5());function p(E){return E&&E.__esModule?E:{default:E}}function h(E,R){return w(E)||v(E,R)||b(E,R)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
340
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(E,R){if(E){if(typeof E=="string")return y(E,R);var j={}.toString.call(E).slice(8,-1);return j==="Object"&&E.constructor&&(j=E.constructor.name),j==="Map"||j==="Set"?Array.from(E):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?y(E,R):void 0}}function y(E,R){(R==null||R>E.length)&&(R=E.length);for(var j=0,k=Array(R);j<R;j++)k[j]=E[j];return k}function v(E,R){var j=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(j!=null){var k,P,z,_,B=[],G=!0,D=!1;try{if(z=(j=j.call(E)).next,R!==0)for(;!(G=(k=z.call(j)).done)&&(B.push(k.value),B.length!==R);G=!0);}catch(A){D=!0,P=A}finally{try{if(!G&&j.return!=null&&(_=j.return(),Object(_)!==_))return}finally{if(D)throw P}}return B}}function w(E){if(Array.isArray(E))return E}var C={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0,max_allowed_length:2084},T=/^\[([^\]]+)\](?::([0-9]+))?$/;function M(E,R){if((0,r.default)(E),!E||/[\s<>]/.test(E)||E.indexOf("mailto:")===0||(R=(0,d.default)(R,C),R.validate_length&&E.length>R.max_allowed_length)||!R.allow_fragments&&(0,o.default)(E,"#")||!R.allow_query_components&&((0,o.default)(E,"?")||(0,o.default)(E,"&")))return!1;var j,k,P,z,_,B,G,D;G=E.split("#"),E=G.shift(),G=E.split("?"),E=G.shift();var A=E.match(/^([a-z][a-z0-9+\-.]*):/i),Y=!1,F=function(De){return Y=!0,j=De.toLowerCase(),R.require_valid_protocol&&R.protocols.indexOf(j)===-1?!1:E.substring(A[0].length)};if(A){var $=A[1],I=E.substring(A[0].length),Q=I.slice(0,2)==="//";if(Q){if(E=F($),E===!1)return!1}else{var ee=I.indexOf("/"),J=ee===-1?I:I.substring(0,ee),L=J.indexOf("@");if(L!==-1){var oe=J.substring(0,L),ue=/^[a-zA-Z0-9\-_.%:]*$/,ce=ue.test(oe);if(ce){if(R.require_protocol)return!1}else if(E=F($),E===!1)return!1}else{var K=/^[0-9]/.test(I);if(K){if(R.require_protocol)return!1}else if(E=F($),E===!1)return!1}}}else if(R.require_protocol)return!1;if(E.slice(0,2)==="//"){if(!Y&&!R.allow_protocol_relative_urls)return!1;E=E.slice(2)}if(E==="")return!1;if(G=E.split("/"),E=G.shift(),E===""&&!R.require_host)return!0;if(G=E.split("@"),G.length>1){if(R.disallow_auth||G[0]===""||(k=G.shift(),k.indexOf(":")>=0&&k.split(":").length>2))return!1;var re=k.split(":"),Z=h(re,2),ye=Z[0],Ce=Z[1];if(ye===""&&Ce==="")return!1}z=G.join("@"),B=null,D=null;var be=z.match(T);if(be?(P="",D=be[1],B=be[2]||null):(G=z.split(":"),P=G.shift(),G.length&&(B=G.join(":"))),B!==null&&B.length>0){if(_=parseInt(B,10),!/^[0-9]+$/.test(B)||_<=0||_>65535)return!1}else if(R.require_port)return!1;return R.host_whitelist?(0,n.default)(P,R.host_whitelist):P===""&&!R.require_host?!0:!(!(0,u.default)(P)&&!(0,s.default)(P,R)&&(!D||!(0,u.default)(D,6))||(P=P||D,R.host_blacklist&&(0,n.default)(P,R.host_blacklist)))}t.exports=e.default,t.exports.default=e.default})(Hf,Hf.exports)),Hf.exports}var r$=t$();const n$=$h(r$);var i$="isUrl";function o$(t,e){return typeof t=="string"&&n$(t,e)}function bm(t,e){return yo({name:i$,constraints:[t],validator:{validate:function(r,n){return o$(r,n==null?void 0:n.constraints[0])},defaultMessage:go(function(r){return r+"$property must be a URL address"},e)}},e)}var a$="isBoolean";function s$(t){return t instanceof Boolean||typeof t=="boolean"}function Ot(t){return yo({name:a$,validator:{validate:function(e,r){return s$(e)},defaultMessage:go(function(e){return e+"$property must be a boolean value"},t)}},t)}var l$="isNumber";function c$(t,e){if(e===void 0&&(e={}),typeof t!="number")return!1;if(t===1/0||t===-1/0)return!!e.allowInfinity;if(Number.isNaN(t))return!!e.allowNaN;if(e.maxDecimalPlaces!==void 0){var r=0;if(t%1!==0&&(r=t.toString().split(".")[1].length),r>e.maxDecimalPlaces)return!1}return Number.isFinite(t)}function Lr(t,e){return t===void 0&&(t={}),yo({name:l$,constraints:[t],validator:{validate:function(r,n){return c$(r,n==null?void 0:n.constraints[0])},defaultMessage:go(function(r){return r+"$property must be a number conforming to the specified constraints"},e)}},e)}var u$="isInt";function d$(t){return typeof t=="number"&&Number.isInteger(t)}function Yc(t){return yo({name:u$,validator:{validate:function(e,r){return d$(e)},defaultMessage:go(function(e){return e+"$property must be an integer number"},t)}},t)}var p$="isString";function f$(t){return t instanceof String||typeof t=="string"}function ae(t){return yo({name:p$,validator:{validate:function(e,r){return f$(e)},defaultMessage:go(function(e){return e+"$property must be a string"},t)}},t)}var h$="isArray";function m$(t){return Array.isArray(t)}function gn(t){return yo({name:h$,validator:{validate:function(e,r){return m$(e)},defaultMessage:go(function(e){return e+"$property must be an array"},t)}},t)}var g$="isObject";function y$(t){return t!=null&&(typeof t=="object"||typeof t=="function")&&!Array.isArray(t)}function v$(t){return yo({name:g$,validator:{validate:function(e,r){return y$(e)},defaultMessage:go(function(e){return e+"$property must be an object"},t)}},t)}function b$(t,e,r){return typeof t=="string"?jh(OC).validate(t,e,r):jh(OC).validate(t,e)}var cp=Object.defineProperty,x$=Object.getOwnPropertyDescriptor,c5=Object.getOwnPropertyNames,S$=Object.prototype.hasOwnProperty,w$=(t,e,r)=>e in t?cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vo=(t,e)=>cp(t,"name",{value:e,configurable:!0}),C$=(t,e)=>function(){return t&&(e=(0,t[c5(t)[0]])(t=0)),e},T$=(t,e)=>{for(var r in e)cp(t,r,{get:e[r],enumerable:!0})},E$=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c5(e))!S$.call(t,o)&&o!==r&&cp(t,o,{get:()=>e[o],enumerable:!(n=x$(e,o))||n.enumerable});return t},j$=t=>E$(cp({},"__esModule",{value:!0}),t),ba=(t,e,r)=>(w$(t,typeof e!="symbol"?e+"":e,r),r),u5={};T$(u5,{MustacheTemplateProvider:()=>fb});var c0,fb,d5=C$({"src/providers/MustacheTemplateProvider.ts"(){c0=class{constructor(e=1){ba(this,"max_passes"),this.max_passes=e,wi.escape=r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}resolve(e,r){if(!e)return"";if(!e.includes("{{"))return e;try{let n=e;for(let o=0;o<this.max_passes;o++){const s=wi.render(n,r);if(s===n)break;n=s}return n}catch(n){throw new Error(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`)}}},vo(c0,"MustacheTemplateProvider"),fb=c0}}),dt=(function(t){return t.STRING="string",t.INTEGER="integer",t.NUMBER="number",t.BOOLEAN="boolean",t.OBJECT="object",t.ARRAY="array",t})({}),H=(function(t){return t.TEXT="text",t.TEXTAREA="textarea",t.NUMBER="number",t.INTEGER="integer",t.BOOLEAN="boolean",t.EMAIL="email",t.URL="url",t.IMAGE="image",t.FILE="file",t.DATE="date",t.DATE_TIME="datetime",t.SELECT="select",t.RADIO="radio",t.CHECKBOX="checkbox",t.COLOR="color",t.FORM="form",t.REPEATER="repeater",t.MODEL_REPEATER="model_repeater",t})({});function U(t={}){return function(e,r){var n;e.constructor._fields||(e.constructor._fields=[]);const o=Reflect.getMetadata("design:type",e,r);let s=t.dataType;!s&&o&&(o===String?s=dt.STRING:o===Number?s=dt.NUMBER:o===Boolean?s=dt.BOOLEAN:o===Array?s=dt.ARRAY:o===Object&&(s=dt.OBJECT)),e.constructor._fields.push({name:r,dataType:s,required:(n=t.required)!=null?n:!1,defaultValue:t.defaultValue,type:t.type,...t})}}vo(U,"Field");function V(t){return function(e,r){e.constructor._editors||(e.constructor._editors=[]),e.constructor._editors.push({name:r,...t})}}vo(V,"Editor");function zt(t,e){return function(r){return typeof t=="string"?r.prototype.constructor._schema={name:t,version:e||"1.0.0"}:r.prototype.constructor._schema={version:"1.0.0",...t},r}}vo(zt,"Schema");var p5=class{static async validate(e){const r=new this;Object.assign(r,e);const n=this._fields||[],o=[];for(const u of n)u.required&&e[u.name]===void 0&&o.push(`Field '${u.name}' is required`);let s=[];try{s=await b$(r)}catch(u){o.push("Validation failed: "+u.message)}for(const u of s)u.constraints&&o.push(...Object.values(u.constraints));return{isValid:o.length===0,errors:o,validationErrors:s}}static validateSync(e){const r=this._fields||[],n=[];for(const o of r)o.required&&e[o.name]===void 0&&n.push(`Field '${o.name}' is required`);return{isValid:n.length===0,errors:n}}static getSchema(){const e=this._fields||[],r=this._editors||[],n=this._schema||{name:this.name,version:"1.0.0"},o=fl(),s=e.map(u=>{const d=r.find(m=>m.name===u.name),h=o.getTargetValidationMetadatas(this,this.prototype,!1,!1).filter(m=>m.propertyName===u.name).map(m=>({type:m.type,constraints:m.constraints}));return{name:u.name,data_type:u.dataType,required:u.required||!1,defaultValue:u.defaultValue,type:u.type,editor:d?{field_type:d.field_type,label:d.label,description:d.description,placeholder:d.placeholder,help_text:d.help_text,validation:d.validation}:void 0,...h.length>0&&{validation:h}}});return{name:n.name,version:n.version||"1.0.0",description:n.description,fields:s}}static createWithDefaults(e={}){const r=new this,n=this._fields||[];for(const o of n)o.defaultValue!==void 0&&e[o.name]===void 0&&(r[o.name]=o.defaultValue);return Object.assign(r,e),r}};vo(p5,"Model");var xr=p5,f5=class{constructor(e,r){ba(this,"field",{}),this.field.name=e,this.field.data_type=r,this.field.required=!1}required(e=!0){return this.field.required=e,this}defaultValue(e){return this.field.defaultValue=e,this}type(e){return this.field.type=e,this}editor(e){return this.field.editor={field_type:H.TEXT,label:this.field.name||"",description:"",...e},this}textEditor(e,r,n){return this.editor({field_type:H.TEXT,label:e,description:r,placeholder:n})}textareaEditor(e,r,n){return this.editor({field_type:H.TEXTAREA,label:e,description:r,placeholder:n})}selectEditor(e,r,n){return this.editor({field_type:H.SELECT,label:e,description:r,validation:{options:n}})}validation(e){return this.field.editor||(this.field.editor={field_type:H.TEXT,label:this.field.name||"",description:""}),this.field.editor.validation=e,this}build(){var e;if(!this.field.name||!this.field.data_type)throw new Error("Field name and data_type are required");return{name:this.field.name,data_type:this.field.data_type,required:(e=this.field.required)!=null?e:!1,defaultValue:this.field.defaultValue,type:this.field.type,editor:this.field.editor}}};vo(f5,"FieldBuilder");var A$=f5,h5=class{constructor(e,r="1.0.0"){ba(this,"schema",{fields:[]}),this.schema.name=e,this.schema.version=r}description(e){return this.schema.description=e,this}field(e,r){const n=new A$(e,r),o=n.build.bind(n);return n.build=()=>{const s=o();return this.schema.fields.push(s),s},n}addField(e){return this.schema.fields.push(e),this}addFields(e){return this.schema.fields.push(...e),this}uses(...e){return this.schema.uses||(this.schema.uses=[]),this.schema.uses.push(...e),this}build(){if(!this.schema.name||!this.schema.version)throw new Error("Schema name and version are required");if(!this.schema.fields||this.schema.fields.length===0)throw new Error("Schema must have at least one field");return{name:this.schema.name,version:this.schema.version,description:this.schema.description,uses:this.schema.uses,models:this.schema.models,fields:this.schema.fields}}};vo(h5,"SchemaBuilder");var M$=h5;function R$(t,e="1.0.0"){return new M$(t,e)}vo(R$,"createSchema");var m5=class{constructor(e={}){ba(this,"cache",new Map),ba(this,"config"),this.config={maxSize:100,defaultTtl:300*1e3,enableLogging:!1,...e},this.log("MemoryCacheProvider initialized",{config:this.config})}get(e){const r=this.cache.get(e);if(!r)return this.log(`Cache miss: ${e}`),null;const n=Date.now(),o=r.ttl||this.config.defaultTtl;return n-r.timestamp>o?(this.cache.delete(e),this.log(`Cache expired: ${e}`),null):(this.cache.delete(e),this.cache.set(e,r),this.log(`Cache hit: ${e}`),r.data)}set(e,r,n){if(this.cache.has(e)&&this.cache.delete(e),this.cache.size>=this.config.maxSize){const s=this.cache.keys().next().value;s&&(this.cache.delete(s),this.log(`LRU evicted: ${s}`))}const o={data:r,timestamp:Date.now(),ttl:n};this.cache.set(e,o),this.log(`Cache set: ${e}`,{ttl:n||this.config.defaultTtl})}clear(e){e?this.cache.delete(e)&&this.log(`Cache cleared: ${e}`):(this.cache.clear(),this.log("Cache cleared completely"))}getStats(){return{size:this.cache.size,maxSize:this.config.maxSize,keys:Array.from(this.cache.keys())}}cleanup(){const e=Date.now();let r=0;for(const[n,o]of this.cache.entries()){const s=o.ttl||this.config.defaultTtl;e-o.timestamp>s&&(this.cache.delete(n),r++)}return r>0&&this.log(`Cleanup removed ${r} expired entries`),r}log(e,r){this.config.enableLogging&&console.log(`[MemoryCacheProvider] ${e}`,r||"")}};vo(m5,"MemoryCacheProvider");var Ah=m5,g5=class{constructor(e,r=!0){ba(this,"cacheProvider"),ba(this,"provider"),ba(this,"config");var n,o,s;if(this.provider=e,r===!1)this.cacheProvider=null,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if(r===!0)this.cacheProvider=new Ah,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else if("get"in r&&"set"in r)this.cacheProvider=r,this.config={defaultTTL:300*1e3,maxSize:100,enableLogging:!1};else{const u=r;this.cacheProvider=new Ah({maxSize:u.maxSize,defaultTtl:u.defaultTTL,enableLogging:u.enableLogging}),this.config={defaultTTL:(n=u.defaultTTL)!=null?n:300*1e3,maxSize:(o=u.maxSize)!=null?o:100,enableLogging:(s=u.enableLogging)!=null?s:!1}}}async get(e){if(!this.cacheProvider)return await this.provider.get(e);const r=`get:${e}`,n=this.cacheProvider.get(r);if(n)return this.log(`Cache hit for get(${e})`),{...await this.provider.get(e),data:n,cached:!0};this.log(`Cache miss for get(${e}), fetching from provider`);const o=await this.provider.get(e);return o.data&&this.cacheProvider.set(r,o.data,this.config.defaultTTL),{...o,cached:!1}}async select(e,r={}){if(!this.cacheProvider)return await this.provider.select(e,r);const n=`select:${e}:${JSON.stringify(r)}`,o=this.cacheProvider.get(n);if(o)return this.log(`Cache hit for select(${e})`),{...await this.provider.select(e,r),data:o,cached:!0};this.log(`Cache miss for select(${e}), fetching from provider`);const s=await this.provider.select(e,r);return s.data&&this.cacheProvider.set(n,s.data,this.config.defaultTTL),{...s,cached:!1}}clearCache(e){var r,n;if(!this.cacheProvider){this.log("No cache provider, nothing to clear");return}if(e)if(e.includes("*")){const o=(n=(r=this.cacheProvider).getStats)==null?void 0:n.call(r);if(o){const s=e.replace(/\*/g,".*"),u=new RegExp(s);for(const d of o.keys)u.test(d)&&(this.cacheProvider.clear(d),this.log(`Cleared cache key: ${d}`))}else this.log("Cache provider does not support pattern clearing")}else this.cacheProvider.clear(e),this.log(`Cleared cache key: ${e}`);else this.cacheProvider.clear(),this.log("Cleared all cache")}getCacheStats(){var e,r,n,o,s,u;if(!this.cacheProvider)return{totalEntries:0,validEntries:0,expiredEntries:0,maxSize:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!1};const d=(r=(e=this.cacheProvider).getStats)==null?void 0:r.call(e);return{totalEntries:(n=d==null?void 0:d.size)!=null?n:0,validEntries:(o=d==null?void 0:d.size)!=null?o:0,expiredEntries:0,maxSize:(s=d==null?void 0:d.maxSize)!=null?s:this.config.maxSize,defaultTTL:this.config.defaultTTL,cachingEnabled:!0,keys:(u=d==null?void 0:d.keys)!=null?u:[]}}setCacheEntryManually(e,r,n){if(!this.cacheProvider){this.log("No cache provider, cannot set cache entry manually");return}this.cacheProvider.set(e,r,n||this.config.defaultTTL),this.log(`Manually set cache entry: ${e} (TTL: ${n||this.config.defaultTTL}ms)`)}log(e){this.config.enableLogging&&console.log(`[CachedDataProvider] ${e}`)}};vo(g5,"CachedDataProvider");var $C=g5,k$=class{constructor(e={},r=!0,n=1){if(ba(this,"data"),e=this.convertDottedNotation(e.data||e),r){const{MustacheTemplateProvider:o}=(d5(),j$(u5)),s=new o(n);for(const u of Object.keys(e)){const d=e[u];if(typeof d=="string")e[u]=s.resolve(d,e);else if(typeof d=="object"){const p=JSON.stringify(d),h=s.resolve(p,e);e[u]=JSON.parse(h)}}}this.data=e}async get(e){const r=this.getValueByPath(e);return r===void 0?{data:void 0}:{data:Array.isArray(r)?r[0]:r,cached:!1,meta:{schema:this.inferModelName(e),version:"1.0.0",slug:e}}}async select(e,r={}){`${e}${JSON.stringify(r)}`;let o=this.findItemsBySchema(e);r.filters&&(o=this.applyFilters(o,r.filters)),r.sort&&r.sort!=="none"&&r.orderBy&&(o=this.applySorting(o,r.orderBy,r.sort));const s=o.length,u=r.offset||0,d=r.limit||s,h=o.slice(u,u+d).map(m=>m);return{data:h,cached:!1,meta:{schema:e,version:"1.0.0",total:s,offset:u,limit:Math.min(d,h.length)}}}updateData(e){this.data=this.convertDottedNotation(e)}convertDottedNotation(e){const r={};for(const[n,o]of Object.entries(e))if(n.includes(".")){const s=n.split(".");let u=r;for(let p=0;p<s.length-1;p++){const h=s[p];u[h]||(u[h]={}),u=u[h]}const d=s[s.length-1];u[d]=o}else o&&typeof o=="object"&&!Array.isArray(o)?r[n]=this.convertDottedNotation(o):r[n]=o;return r}getValueByPath(e){const r=e.replace(/^\//,"").split(/[/.]/);let n=this.data;for(const o of r){if(n==null)return;if(Array.isArray(n)&&!isNaN(Number(o)))n=n[Number(o)];else if(typeof n=="object"&&n!==null)n=n[o];else return}return n}findItemsBySchema(e){const r=[];return this.data[e]&&Array.isArray(this.data[e])&&r.push(...this.data[e]),this.searchObjectForSchema(this.data,e,r),r}searchObjectForSchema(e,r,n){typeof e!="object"||e===null||(Array.isArray(e)?e.forEach(o=>this.searchObjectForSchema(o,r,n)):((e.modelName===r||e.schema===r)&&n.push(e),Object.values(e).forEach(o=>{this.searchObjectForSchema(o,r,n)})))}applyFilters(e,r){return e.filter(n=>Object.entries(r).every(([o,s])=>this.getValueByPath.call({data:n},o)===s))}applySorting(e,r,n){return[...e].sort((o,s)=>{const u=this.getValueByPath.call({data:o},r),d=this.getValueByPath.call({data:s},r);return u<d?n==="asc"?-1:1:u>d?n==="asc"?1:-1:0})}inferModelName(e){return e.replace(/^\//,"").split("/")[0]||"unknown"}generateSlug(e,r){return`/${e.toLowerCase()}/${r}`}};vo(k$,"JsonDataProvider");d5();const O$=Ae([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),P$=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),y5=Ae(c.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),_$=Ae(c.jsx("path",{d:"M6.36 18.78 6.61 21l1.62-1.54 2.77-7.6c-.68-.17-1.28-.51-1.77-.98zm8.41-7.9c-.49.47-1.1.81-1.77.98l2.77 7.6L17.39 21l.26-2.22zM15 8c0-1.3-.84-2.4-2-2.82V3h-2v2.18C9.84 5.6 9 6.7 9 8c0 1.66 1.34 3 3 3s3-1.34 3-3m-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1"})),DC=Ae(c.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),L$=Ae(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),HC=Ae(c.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),N$=Ae(c.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),UC=Ae(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),VC=Ae(c.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),I$=Ae(c.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),xm=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),qC=Ae(c.jsx("path",{d:"M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 4h5v8l-2.5-1.5L6 12z"})),FC=Ae(c.jsx("path",{d:"M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"})),B$=Ae(c.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),WC=Ae(c.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),z$=Ae(c.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),$$=Ae(c.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),v5=Ae(c.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Xo=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),D$=Ae(c.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),H$=Ae(c.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),U$=Ae(c.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"})),GC=Ae(c.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M17 13l-5 5-5-5h3V9h4v4z"})),XC=Ae(c.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),b5=Ae(c.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),x5=Ae(c.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),V$=Ae(c.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),hb=Ae(c.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),YC=Ae(c.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),q$=Ae(c.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),Sm=Ae(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),F$=Ae(c.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),Mh=Ae(c.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),u0=Ae(c.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),Yo=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),W$=Ae(c.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),G$=Ae(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),X$=Ae(c.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),Y$=Ae(c.jsx("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"})),ev=Ae(c.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),Q$=Ae(c.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),K$=Ae(c.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),Z$=Ae(c.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),J$=Ae(c.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),S5=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),eD=Ae(c.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),w5=Ae(c.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),tD=Ae(c.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),tv=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),d0=Ae(c.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),rD=Ae(c.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-8 11.17-1.41 1.42L6 12l3.59-3.59L11 9.83 8.83 12zm1-9.92c-.41 0-.75-.34-.75-.75s.34-.75.75-.75.75.34.75.75-.34.75-.75.75m2.41 11.34L13 14.17 15.17 12 13 9.83l1.41-1.42L18 12z"})),nD=Ae(c.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4l16-.02z"})),iD=Ae(c.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-5 12H9v-2h6zm5-7H4V4h16z"})),oD=Ae(c.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),aD=Ae(c.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),sD=Ae(c.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})),lD=Ae(c.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"})),cD=Ae(c.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"})),lh=Ae(c.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),xc=Ae(c.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),rv=Ae(c.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),QC=Ae(c.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"})),uD=Ae(c.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),dD=Ae(c.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),pD=Ae([c.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),c.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),C5=Ae(c.jsx("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"})),fD=Ae(c.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),hD=Ae(c.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),mD=Ae(c.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"})),gD=Ae(c.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),yD=Ae(c.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),vD=Ae(c.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),KC=Ae(c.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),nv=Ae(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),bD=Ae([c.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),c.jsx("path",{d:"M10.35 14.01C7.62 13.91 2 15.27 2 18v2h9.54c-2.47-2.76-1.23-5.89-1.19-5.99m9.08 4.01c.36-.59.57-1.28.57-2.02 0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4c.74 0 1.43-.22 2.02-.57L20.59 22 22 20.59zM16 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),xD=Ae(c.jsx("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z"})),SD=Ae(c.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),_c=Ae(c.jsx("path",{d:"M8 5v14l11-7z"})),wD=Ae([c.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),c.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),ZC=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),Qc=Ae(c.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),CD=Ae(c.jsx("path",{d:"M12 2.5s4.5 2.04 4.5 10.5c0 2.49-1.04 5.57-1.6 7H9.1c-.56-1.43-1.6-4.51-1.6-7C7.5 4.54 12 2.5 12 2.5m2 8.5c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-6.31 9.52c-.48-1.23-1.52-4.17-1.67-6.87l-1.13.75c-.56.38-.89 1-.89 1.67V22zM20 22v-5.93c0-.67-.33-1.29-.89-1.66l-1.13-.75c-.15 2.69-1.2 5.64-1.67 6.87z"})),TD=Ae(c.jsx("path",{d:"M15.55 5.55 11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47zM13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m3.89-2.42 1.42 1.41c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.48"})),ED=Ae(c.jsx("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18c-1.16.41-2 1.51-2 2.82 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.3-.84-2.4-2-2.82"})),mb=Ae(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"})),wm=Ae(c.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),jD=Ae(c.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),AD=Ae(c.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),JC=Ae(c.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),MD=Ae(c.jsx("path",{d:"M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.66 1.34 3 3 3M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),RD=Ae(c.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),kD=Ae(c.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"})),Uf=Ae(c.jsx("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"})),T5=Ae(c.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),OD=Ae(c.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),PD=Ae(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"})),gb=Ae(c.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),_D=Ae([c.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),c.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),c.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),c.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),LD=Ae(c.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),ND=Ae(c.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),ID=Ae(c.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),BD=Ae(c.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),E5=Ae(c.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),iv=Ae(c.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),zD=Ae(c.jsx("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),$d=Ae(c.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),$D=Ae(c.jsx("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-6 0h-4V4h4z"})),DD=Ae(c.jsx("path",{d:"M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"}));var ao;(function(t){t[t.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",t[t.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",t[t.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(ao||(ao={}));var HD=(function(){function t(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}return t.prototype.addTypeMetadata=function(e){this._typeMetadatas.has(e.target)||this._typeMetadatas.set(e.target,new Map),this._typeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addTransformMetadata=function(e){this._transformMetadatas.has(e.target)||this._transformMetadatas.set(e.target,new Map),this._transformMetadatas.get(e.target).has(e.propertyName)||this._transformMetadatas.get(e.target).set(e.propertyName,[]),this._transformMetadatas.get(e.target).get(e.propertyName).push(e)},t.prototype.addExposeMetadata=function(e){this._exposeMetadatas.has(e.target)||this._exposeMetadatas.set(e.target,new Map),this._exposeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.addExcludeMetadata=function(e){this._excludeMetadatas.has(e.target)||this._excludeMetadatas.set(e.target,new Map),this._excludeMetadatas.get(e.target).set(e.propertyName,e)},t.prototype.findTransformMetadatas=function(e,r,n){return this.findMetadatas(this._transformMetadatas,e,r).filter(function(o){return!o.options||o.options.toClassOnly===!0&&o.options.toPlainOnly===!0?!0:o.options.toClassOnly===!0?n===ao.CLASS_TO_CLASS||n===ao.PLAIN_TO_CLASS:o.options.toPlainOnly===!0?n===ao.CLASS_TO_PLAIN:!0})},t.prototype.findExcludeMetadata=function(e,r){return this.findMetadata(this._excludeMetadatas,e,r)},t.prototype.findExposeMetadata=function(e,r){return this.findMetadata(this._exposeMetadatas,e,r)},t.prototype.findExposeMetadataByCustomName=function(e,r){return this.getExposedMetadatas(e).find(function(n){return n.options&&n.options.name===r})},t.prototype.findTypeMetadata=function(e,r){return this.findMetadata(this._typeMetadatas,e,r)},t.prototype.getStrategy=function(e){var r=this._excludeMetadatas.get(e),n=r&&r.get(void 0),o=this._exposeMetadatas.get(e),s=o&&o.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"},t.prototype.getExposedMetadatas=function(e){return this.getMetadata(this._exposeMetadatas,e)},t.prototype.getExcludedMetadatas=function(e){return this.getMetadata(this._excludeMetadatas,e)},t.prototype.getExposedProperties=function(e,r){return this.getExposedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===ao.CLASS_TO_CLASS||r===ao.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===ao.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.getExcludedProperties=function(e,r){return this.getExcludedMetadatas(e).filter(function(n){return!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===ao.CLASS_TO_CLASS||r===ao.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===ao.CLASS_TO_PLAIN:!0}).map(function(n){return n.propertyName})},t.prototype.clear=function(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()},t.prototype.getMetadata=function(e,r){var n=e.get(r),o;n&&(o=Array.from(n.values()).filter(function(b){return b.propertyName!==void 0}));for(var s=[],u=0,d=this.getAncestors(r);u<d.length;u++){var p=d[u],h=e.get(p);if(h){var m=Array.from(h.values()).filter(function(b){return b.propertyName!==void 0});s.push.apply(s,m)}}return s.concat(o||[])},t.prototype.findMetadata=function(e,r,n){var o=e.get(r);if(o){var s=o.get(n);if(s)return s}for(var u=0,d=this.getAncestors(r);u<d.length;u++){var p=d[u],h=e.get(p);if(h){var m=h.get(n);if(m)return m}}},t.prototype.findMetadatas=function(e,r,n){var o=e.get(r),s;o&&(s=o.get(n));for(var u=[],d=0,p=this.getAncestors(r);d<p.length;d++){var h=p[d],m=e.get(h);m&&m.has(n)&&u.push.apply(u,m.get(n))}return u.slice().reverse().concat((s||[]).slice().reverse())},t.prototype.getAncestors=function(e){if(!e)return[];if(!this._ancestorsMap.has(e)){for(var r=[],n=Object.getPrototypeOf(e.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(e,r)}return this._ancestorsMap.get(e)},t})(),UD=new HD;function li(t,e){return e===void 0&&(e={}),function(r,n){var o=Reflect.getMetadata("design:type",r,n);UD.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:o,typeFunction:t,options:e})}}var eT={};const ov={xs:0,sm:600,md:900,lg:1200,xl:1536},tT={"extra-small":"xs",small:"sm",medium:"md",large:"lg","extra-large":"xl"};function rT(t){return t===!1||t===void 0?!1:t in ov?t:t in tT?tT[t]:"lg"}const VD={width:{tiny:120,small:200,medium:300,large:400,"x-large":500,huge:600},height:{tiny:200,small:300,medium:400,large:500,"x-large":600,huge:800},maxWidth:{tiny:300,small:600,medium:900,large:1200,"x-large":1536,huge:1920},maxHeight:{tiny:200,small:400,medium:600,large:800,"x-large":1e3,huge:1200},minWidth:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500},minHeight:{tiny:50,small:100,medium:200,large:300,"x-large":400,huge:500}},qD=/^(\d+(\.\d+)?(px|%|em|rem|vh|vw|fr|ch|ex)|auto|inherit|initial|unset|min-content|max-content|fit-content)$/;function Ui(t,e="width"){if(t==null)return;if(typeof t=="number")return t;if(t==="auto")return"auto";if(t==="grow")return"1";const r=VD[e];if(r&&t in r)return r[t];if((e==="maxWidth"||e==="width")&&t in ov)return ov[t];if(typeof t=="string")return qD.test(t)||console.warn(`[QwickApps] Invalid CSS dimension value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t}function FD(t){return{width:Ui(t.width,"width"),height:Ui(t.height,"height"),minWidth:Ui(t.minWidth,"minWidth"),minHeight:Ui(t.minHeight,"minHeight"),maxWidth:Ui(t.maxWidth,"maxWidth"),maxHeight:Ui(t.maxHeight,"maxHeight")}}const td={none:0,tiny:.5,small:1,medium:2,large:3,huge:4},nT=/^(\d+(\.\d+)?(px|em|rem|%)|0|auto|inherit|initial|unset)$/;function In(t){if(t!=null){if(typeof t=="number")return t;if(t in td)return td[t];if(typeof t=="string"){const e=t.split(" ");return e.length>1&&e.every(n=>nT.test(n)||n in td)?e.map(n=>n in td?`${td[n]*8}px`:n).join(" "):(nT.test(t)||console.warn(`[QwickApps] Invalid CSS spacing value: "${t}". Using as-is but consider using a valid CSS value or t-shirt size.`),t)}}}function WD(t){const e={};return t.padding!==void 0&&(e.p=In(t.padding)),t.paddingTop!==void 0&&(e.pt=In(t.paddingTop)),t.paddingRight!==void 0&&(e.pr=In(t.paddingRight)),t.paddingBottom!==void 0&&(e.pb=In(t.paddingBottom)),t.paddingLeft!==void 0&&(e.pl=In(t.paddingLeft)),t.paddingX!==void 0&&(e.px=In(t.paddingX)),t.paddingY!==void 0&&(e.py=In(t.paddingY)),t.margin!==void 0&&(e.m=In(t.margin)),t.marginTop!==void 0&&(e.mt=In(t.marginTop)),t.marginRight!==void 0&&(e.mr=In(t.marginRight)),t.marginBottom!==void 0&&(e.mb=In(t.marginBottom)),t.marginLeft!==void 0&&(e.ml=In(t.marginLeft)),t.marginX!==void 0&&(e.mx=In(t.marginX)),t.marginY!==void 0&&(e.my=In(t.marginY)),e}const Hn=Symbol("QwickAppComponent");function On(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:u,className:d,sx:p,style:h,width:m,height:b,minWidth:y,minHeight:v,maxWidth:w,maxHeight:C,padding:T,paddingTop:M,paddingRight:E,paddingBottom:R,paddingLeft:j,paddingX:k,paddingY:P,margin:z,marginTop:_,marginRight:B,marginBottom:G,marginLeft:D,marginX:A,marginY:Y,background:F,backgroundImage:$,backgroundGradient:I,textAlign:Q,id:ee,role:J,"aria-label":L,"aria-labelledby":oe,"aria-describedby":ue,"data-testid":ce,onClick:K,onMouseEnter:re,onMouseLeave:Z,onFocus:ye,onBlur:Ce,...be}=t,se=S.useMemo(()=>e||r||n||o||s||u?{span:e,xs:e||r,sm:e||n,md:e||o,lg:e||s,xl:e||u}:null,[e,r,n,o,s,u]),De=S.useMemo(()=>FD({width:m,height:b,minWidth:y,minHeight:v,maxWidth:w,maxHeight:C}),[m,b,y,v,w,C]),ze=S.useMemo(()=>WD({padding:T,paddingTop:M,paddingRight:E,paddingBottom:R,paddingLeft:j,paddingX:k,paddingY:P,margin:z,marginTop:_,marginRight:B,marginBottom:G,marginLeft:D,marginX:A,marginY:Y}),[T,M,E,R,j,k,P,z,_,B,G,D,A,Y]),Be=S.useMemo(()=>{const We={};return I?We.background=I:$?(We.backgroundImage=`url(${$})`,We.backgroundSize="cover",We.backgroundPosition="center",We.backgroundRepeat="no-repeat"):F&&(We.background=F),Q&&(We.textAlign=Q),We},[F,$,I,Q]),Ve=S.useMemo(()=>({...De,...ze,...Be,...p}),[De,ze,Be,p]);return{gridProps:se,styleProps:{className:d,sx:Ve,style:h},htmlProps:{id:ee,role:J,"aria-label":L,"aria-labelledby":oe,"aria-describedby":ue,"data-testid":ce,onClick:K,onMouseEnter:re,onMouseLeave:Z,onFocus:ye,onBlur:Ce},restProps:be}}class GD{constructor(e){this.name=e}debug(e,...r){console.debug(`[${this.name}] ${e}`,...r)}info(e,...r){console.info(`[${this.name}] ${e}`,...r)}warn(e,...r){console.warn(`[${this.name}] ${e}`,...r)}error(e,...r){console.error(`[${this.name}] ${e}`,...r)}}function Ro(t){try{return require("@qwickapps/logging").getLogger(t)}catch{return new GD(t)}}const XD={scaffold:Ro("Scaffold"),navigation:Ro("Navigation"),auth:Ro("Auth"),theme:Ro("Theme"),palette:Ro("Palette"),form:Ro("Form"),layout:Ro("Layout"),menu:Ro("Menu"),router:Ro("Router")};class YD{constructor(e){this.log=Ro("ContentResolver"),this.enableLogging=e.enableLogging||!1,this.templateResolver=e.templateResolver||new fb,e.cacheProvider===!0?(new Ah({enableLogging:e.enableLogging||!1}),this.dataProvider=new $C(e.dataProvider)):e.cacheProvider===!1?this.dataProvider=e.dataProvider:(new Ah({enableLogging:e.enableLogging||!1}),this.dataProvider=new $C(e.dataProvider)),this.log.debug("ContentResolver initialized",{dataProvider:e.dataProvider?e.dataProvider.constructor.name:"none",templateResolver:this.templateResolver.constructor.name,cacheProvider:e.cacheProvider?e.cacheProvider===!0?"MemoryCacheProvider(default)":e.cacheProvider.constructor.name:"disabled"})}async get(e){return this.dataProvider.get(e)}async select(e,r){return this.dataProvider.select(e,r)}async resolveTemplate(e){if(this.log.debug(`Resolving template: ${e}`),!e||!e.includes("{{"))return e;const r=await this.createLazyContext(e);try{const n=this.templateResolver.resolve(e,r);return this.log.debug(`Template resolved: ${e} -> ${n}`),n}catch(n){throw this.log.debug(`Template resolution failed: ${n instanceof Error?n.message:String(n)}`),n}}async createLazyContext(e){const r=/\{\{([^}]+)\}\}/g,n=Array.from(e.matchAll(r)),o=new Set;for(const u of n){const d=u[1].trim(),[p]=d.split(".");o.add(p)}const s={};for(const u of o)try{const d=await this.select(u);if(d.data&&d.data.length>0)s[u]=d.data[0];else{const p=await this.get(u);p.data&&(s[u]=p.data)}}catch(d){this.log.error(`Failed to load data for ${u}: ${d instanceof Error?d.message:String(d)}`)}return s}}const yb=S.createContext(null);function QD({dataSource:t,children:e}){const r=new YD(t),n={provider:r,get:async o=>{const s=await r.get(o);return s&&s.data?s.data:void 0},select:async(o,s)=>{const u=await r.select(o,s);return u&&Array.isArray(u.data)?u.data:[]},resolveTemplate:o=>r.resolveTemplate(o)};return c.jsx(yb.Provider,{value:n,children:e})}function KD(){const t=S.useContext(yb);if(!t)throw new Error("useDataContext must be used within a DataProvider. Did you wrap your component with <DataProvider>?");return t}function ZD(t){const e=S.useContext(yb),[r,n]=S.useState(void 0),[o,s]=S.useState(!0),[u,d]=S.useState(null);return S.useEffect(()=>{if(!e){s(!1);return}(async()=>{if(!t){s(!1);return}try{s(!0),d(null);const h=await e.get(t);n(h),s(!1)}catch(h){d(h instanceof Error?h:new Error(String(h))),s(!1)}})()},[e,t]),e?{data:r,loading:o,error:u}:{data:void 0,loading:!1,error:null}}function JD(t){const{resolveTemplate:e}=KD(),[r,n]=S.useState(t),[o,s]=S.useState(!1),[u,d]=S.useState(null);return S.useEffect(()=>{let p=!0;async function h(){if(!t){n(t);return}try{s(!0),d(null);const m=await e(t);p&&(n(m),s(!1))}catch(m){p&&(d(m instanceof Error?m:new Error(String(m))),n(t),s(!1))}}return h(),()=>{p=!1}},[t,e]),{resolved:r,loading:o,error:u}}function j5(t){const{resolved:e,loading:r,error:n}=JD(t);return r?null:n?`[Template Error: ${n.message}]`:e}function dd(t,...e){const r=String.raw(t,...e),n=()=>j5(r);return c.jsx(n,{})}dd.wrap=t=>(e,...r)=>{const n=String.raw(e,...r),o=()=>{const s=j5(n);return s?c.jsx(t,{children:s}):null};return c.jsx(o,{})};function Qo(t,e){const r=t&&t.trim().length>0,n=ZD(r?t:""),o=S.useMemo(()=>!r||n.data===void 0?e||{}:{...e||{},...n.data},[r,n.data,e]);return{...o,$loading:n.loading,$error:n.error,$dataSource:t,$cached:!1,...Object.prototype.hasOwnProperty.call(o,"loading")?{}:{loading:n.loading},...Object.prototype.hasOwnProperty.call(o,"error")?{}:{error:n.error},cached:!1}}const A5=Mt.createContext({appName:"QwickApps",logo:void 0,appId:!0,enableScaffolding:!1,navigationItems:[],appBar:void 0,showAppBar:!0,appBarHeight:64,showThemeSwitcher:!1,showPaletteSwitcher:!1,updateConfig:()=>{}}),vb=()=>{const t=Mt.useContext(A5);if(!t)throw new Error("useQwickApp must be used within a QwickApp provider");return t},eH=t=>{if(typeof document>"u"||typeof window>"u")return;document.documentElement.setAttribute("data-theme",t),window.dispatchEvent(new CustomEvent("themeChange",{detail:{theme:t}}))},tH={id:"default",name:"Default",description:"Classic blue and neutral colors",primaryColor:"#007bff"},rH={id:"autumn",name:"Autumn",description:"Warm oranges and golden yellows",primaryColor:"#ea580c"},nH={id:"ocean",name:"Ocean",description:"Deep blues and aqua teals",primaryColor:"#0891b2"},iH={id:"spring",name:"Spring",description:"Fresh greens and soft pinks",primaryColor:"#16a34a"},oH={id:"winter",name:"Winter",description:"Cool blues and icy whites",primaryColor:"#0077be"},aH={id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",primaryColor:"#8b5cf6"},sH=[tH,nH,aH,oH,rH,iH],iT=t=>{if(!t||typeof window>"u")return null;try{const e=localStorage.getItem(t);if(e&&["light","dark","system"].includes(e))return e}catch(e){console.warn("[persistenceUtils] Theme localStorage read failed:",e)}return null},lH=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Theme localStorage write failed:",r)}},cH=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Theme localStorage clear failed:",e)}},oT=(t,e)=>{if(!t||typeof window>"u")return null;try{const r=localStorage.getItem(t);if(r&&e.includes(r))return r}catch(r){console.warn("[persistenceUtils] Palette localStorage read failed:",r)}return null},uH=(t,e)=>{if(!(!t||typeof window>"u"))try{localStorage.setItem(t,e)}catch(r){console.warn("[persistenceUtils] Palette localStorage write failed:",r)}},dH=t=>{if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(e){console.warn("[persistenceUtils] Palette localStorage clear failed:",e)}},pH={enableRemote:!0,remoteUrl:"https://qwickapps.com/palettes/manifest.json",localPath:"/palettes/manifest.json"};let cc=null,aT=!1;async function sT(t){try{const e=await fetch(t,{method:"GET",headers:{Accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!e.ok)return console.warn(`[PaletteManifest] Failed to fetch from ${t}: ${e.status} ${e.statusText}`),null;const r=await e.json();return!r.version||!Array.isArray(r.palettes)?(console.warn(`[PaletteManifest] Invalid manifest structure from ${t}`),null):r}catch{return null}}function fH(...t){const e=new Map;let r="0.0.0";for(const n of t)if(n){n.version>r&&(r=n.version);for(const o of n.palettes)e.set(o.id,o)}return{version:r,palettes:Array.from(e.values())}}async function hH(t={}){if(cc)return cc;if(aT)return lT();aT=!0;const e={...pH,...t},r=[];if(e.enableRemote){const o=await sT(e.remoteUrl);r.push(o)}if(typeof window<"u"){const o=await sT(e.localPath);r.push(o)}const n=fH(...r);return n.palettes.length===0?(cc=lT(),cc):(cc=n,cc)}function lT(){return{version:"1.4.9",palettes:[{id:"default",name:"Default",description:"Classic blue and neutral color scheme",version:"1.4.9",file:"PaletteDefault.css",primaryColor:"#007bff",inlined:!0},{id:"autumn",name:"Autumn",description:"Warm oranges, golden yellows, and earthy browns",version:"1.4.9",file:"PaletteAutumn.css",primaryColor:"#ea580c",inlined:!1},{id:"cosmic",name:"Cosmic",description:"Modern purple gradient for creative and tech brands",version:"1.4.9",file:"PaletteCosmic.css",primaryColor:"#8b5cf6",inlined:!1},{id:"ocean",name:"Ocean",description:"Deep blues, aqua teals, and seafoam greens",version:"1.4.9",file:"PaletteOcean.css",primaryColor:"#0891b2",inlined:!1},{id:"spring",name:"Spring",description:"Fresh greens, soft pinks, and bright yellows",version:"1.4.9",file:"PaletteSpring.css",primaryColor:"#16a34a",inlined:!1},{id:"winter",name:"Winter",description:"Cool blues, icy whites, and frosty grays",version:"1.4.9",file:"PaletteWinter.css",primaryColor:"#0077be",inlined:!1}]}}async function mH(t,e){return(await hH(e)).palettes.find(n=>n.id===t)||null}const Za=new Set,Oo=new Map,cT=["https://qwickapps.com/palettes/","/palettes/"];let gH={enableRemote:!0};async function yH(t,e){if(Za.has(t))return Promise.resolve();if(Oo.has(t))return Oo.get(t);const r=vH(t,e);return Oo.set(t,r),r}async function vH(t,e){const r={...gH,...e};if(t==="default"){Za.add(t),Oo.delete(t);return}if(typeof document>"u"){Za.add(t),Oo.delete(t);return}if(document.querySelector(`link[data-palette-id="${t}"]`)){Za.add(t),Oo.delete(t);return}try{const o=await mH(t,r);if(!o){Za.add(t),Oo.delete(t);return}if(o.inlined){Za.add(t),Oo.delete(t);return}const d=!!1&&o.fileMinified?o.fileMinified:o.file,p=[];r.enableRemote&&p.push(`${cT[0]}${d}`),p.push(`${cT[1]}${d}`);let h=!1;for(const m of p)if(await bH(m,t)){h=!0;break}Za.add(t),Oo.delete(t)}catch{Za.add(t),Oo.delete(t)}}function bH(t,e){return new Promise(r=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.setAttribute("data-palette-id",e),n.onload=()=>{r(!0)},n.onerror=()=>{document.head.removeChild(n),r(!1)},document.head.appendChild(n)})}const M5=S.createContext(null),R5=()=>{const t=S.useContext(M5);if(!t)throw new Error("usePalette must be used within a PaletteProvider");return t},Js=sH,uT=(t,e=!0)=>t&&Js.some(r=>r.id===t)?t:(e&&console.warn(`[PaletteProvider] Invalid defaultPalette '${t}'. Using 'default'.`),"default"),xH=({children:t,appId:e,defaultPalette:r="default"})=>{const n=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.palette`;const C="qwickapps-react-framework-palette";return console.warn(`[PaletteProvider] Using default storage key '${C}'. Consider providing an appId for production apps to avoid conflicts. Example: <PaletteProvider appId="com.mycompany.myapp">`),C},[e]),o=Js.map(C=>C.id),[s,u]=S.useState(()=>oT(n,o)),[d,p]=S.useState(()=>oT(n,o)||uT(r));S.useEffect(()=>{typeof document<"u"&&yH(d).then(()=>{document.documentElement.setAttribute("data-palette",d),setTimeout(()=>{const C=new CustomEvent("palette-changed",{detail:{palette:d}});window.dispatchEvent(C)},50)}).catch(C=>{console.error(`[PaletteContext] Failed to load palette "${d}":`,C),document.documentElement.setAttribute("data-palette",d);const T=new CustomEvent("palette-changed",{detail:{palette:d}});window.dispatchEvent(T)})},[d]);const w={currentPalette:d,preferredPalette:s,availablePalettes:Js,isPersistent:n!==null,setPreferredPalette:C=>{Js.find(M=>M.id===C)?(u(C),p(C),uH(n,C)):console.warn(`Palette "${C}" not found. Available palettes:`,Js.map(M=>M.id))},clearPreferredPalette:()=>{u(null),dH(n);const C=uT(r,!1);p(C)},getPreferredPalette:()=>s,getCurrentPalette:()=>d,setCurrentPalette:C=>{Js.find(M=>M.id===C)?p(C):console.warn(`Palette "${C}" not found. Available palettes:`,Js.map(M=>M.id))}};return c.jsx(M5.Provider,{value:w,children:t})},k5=S.createContext(null),O5=()=>{const t=S.useContext(k5);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},dT=(t,e=!0)=>t&&["light","dark","system"].includes(t)?t:(e&&console.warn(`[ThemeProvider] Invalid defaultTheme '${t}'. Using 'system'.`),"system"),SH=({children:t,appId:e,includePalette:r=!0,defaultTheme:n="light",defaultPalette:o})=>{const u=Mt.useMemo(()=>{if(e===!1)return null;if(typeof e=="string")return`${e}.theme`;const _="qwickapps-react-framework-theme";return console.warn(`[ThemeProvider] Using default storage key '${_}'. Consider providing an appId for production apps to avoid conflicts. Example: <ThemeProvider appId="com.mycompany.myapp">`),_},[e]),[d,p]=S.useState(()=>iT(u)),[h,m]=S.useState(()=>iT(u)||dT(n)),[b,y]=S.useState(0),v=pz("(prefers-color-scheme: dark)"),w=h==="system"?v?"dark":"light":h;S.useEffect(()=>{if(typeof window<"u"){const _=()=>{y(G=>G+1)},B=()=>{y(G=>G+1)};return window.addEventListener("palette-changed",_),window.addEventListener("theme-changed",B),()=>{window.removeEventListener("palette-changed",_),window.removeEventListener("theme-changed",B)}}},[]),S.useEffect(()=>{if(typeof window<"u"){const _=new CustomEvent("theme-changed",{detail:{theme:w}});window.dispatchEvent(_)}},[w]),S.useEffect(()=>{typeof window<"u"&&eH(w)},[w]);const C=_=>typeof window<"u"&&typeof document<"u"?getComputedStyle(document.documentElement).getPropertyValue(_).trim():"",T=Mt.useMemo(()=>{const _=w==="dark",B=C("--theme-primary-light")||(_?"#87ceeb":"#4a90e2"),G=C("--theme-primary")||(_?"#90caf9":"#1976d2"),D=C("--theme-primary-dark")||(_?"#1a365d":"#0056b3"),A=C("--theme-on-primary")||(_?"#000000":"#ffffff"),Y=C("--theme-secondary-light")||(_?"#adb5bd":"#868e96"),F=C("--theme-secondary")||(_?"#f48fb1":"#dc004e"),$=C("--theme-secondary-dark")||(_?"#6c757d":"#495057"),I=C("--theme-on-secondary")||(_?"#b0b0b0":"#666666"),Q=C("--theme-error-light")||(_?"#f9c2c2":"#f5c6cb"),ee=C("--theme-error")||(_?"#f87171":"#dc3545"),J=C("--theme-error-dark")||(_?"#b91c1c":"#a71d2a"),L=C("--theme-warning-light")||(_?"#fbbf24":"#ffc107"),oe=C("--theme-warning")||(_?"#fbbf24":"#ffc107"),ue=C("--theme-warning-dark")||(_?"#b57c00":"#856404"),ce=C("--theme-info-light")||(_?"#60a5fa":"#007acc"),K=C("--theme-info")||(_?"#60a5fa":"#007acc"),re=C("--theme-info-dark")||(_?"#1e3a8a":"#0d6efd"),Z=C("--theme-success-light")||(_?"#4ade80":"#28a745"),ye=C("--theme-success")||(_?"#4ade80":"#28a745"),Ce=C("--theme-success-dark")||(_?"#1f9e3d":"#1c7430"),be=C("--theme-background")||(_?"#121212":"#ffffff"),se=C("--theme-surface")||(_?"#1e1e1e":"#ffffff"),De=C("--theme-text-primary")||(_?"#ffffff":"#000000"),ze=C("--theme-text-secondary")||(_?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.6)"),Be=C("--theme-on-disabled")||(_?"rgba(255, 255, 255, 0.38)":"rgba(0, 0, 0, 0.38)");return im({palette:{mode:w,primary:{main:G,light:B,dark:D,contrastText:A},secondary:{main:F,light:Y,dark:$,contrastText:I},error:{light:Q,main:ee,dark:J},warning:{light:L,main:oe,dark:ue},info:{light:ce,main:K,dark:re},background:{default:be,paper:se},text:{primary:De,secondary:ze,disabled:Be},success:{light:Z,main:ye,dark:Ce}},typography:{fontFamily:'"Segoe UI", "Roboto", "Arial", sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none"}}}}})},[w,b]),P={currentTheme:h,preferredTheme:d,actualThemeMode:w,theme:T,isDark:w==="dark",isPersistent:u!==null,setPreferredTheme:_=>{p(_),m(_),lH(u,_)},clearPreferredTheme:()=>{p(null),cH(u);const _=dT(n,!1);m(_)},getPreferredTheme:()=>d,getCurrentTheme:()=>h,setCurrentTheme:_=>{m(_)}},z=c.jsx(k5.Provider,{value:P,children:c.jsx(EP,{theme:T,children:t})});return r?c.jsx(xH,{appId:e,defaultPalette:o,children:z}):z},av={theme:"light",palette:void 0,hideScaffolding:!0,hideInteractiveElements:!1,optimizeForMonochrome:!1,showPrintDate:!0,pageMargins:"12mm"};function wH(t,e){switch(e.type){case"TRIGGER_PRINT":return t.printModeState==="normal"?{...t,printModeState:"applying_print_config",printConfig:e.config?{...av,...e.config}:av}:t;case"APPLY_CONFIG":return t.printModeState==="applying_print_config"?{...t,printModeState:"entering_print_mode"}:t;case"VIEW_LOADING":return t.printModeState==="entering_print_mode"?{...t,printModeState:"view_loading"}:t;case"VIEW_READY":return t.printModeState==="view_loading"?{...t,printModeState:"config_applied"}:t.printModeState==="exiting_print_mode"?{...t,printModeState:"restoring_config"}:t;case"CONFIG_APPLIED":return t.printModeState==="config_applied"?{...t,printModeState:"print_mode"}:t;case"EXIT_PRINT_MODE":return t.printModeState!=="normal"&&t.printModeState!=="exiting_print_mode"&&t.printModeState!=="restoring_config"?{...t,printModeState:"exiting_print_mode"}:t;case"RESTORE_CONFIG":return t.printModeState==="restoring_config"?{...t,printModeState:"normal"}:t;case"SET_ORIGINAL_THEME":return{...t,originalTheme:e.theme};case"SET_ORIGINAL_PALETTE":return{...t,originalPalette:e.palette};default:return t}}const P5=S.createContext(null),CH=()=>{const t=S.useContext(P5);if(!t)throw new Error("usePrintMode must be used within a PrintModeProvider");return t},TH=({children:t})=>{const[e,r]=S.useReducer(wH,{printModeState:"normal",printConfig:av,originalTheme:null,originalPalette:null}),{updateConfig:n}=vb(),{setCurrentTheme:o,getCurrentTheme:s}=O5(),{setCurrentPalette:u,getCurrentPalette:d}=R5(),p=e.printModeState==="entering_print_mode"||e.printModeState==="view_loading"||e.printModeState==="config_applied"||e.printModeState==="print_mode",h=S.useCallback(w=>{r({type:"TRIGGER_PRINT",config:w})},[]),m=S.useCallback(()=>{r({type:"EXIT_PRINT_MODE"})},[]),b=S.useCallback(()=>{r({type:"VIEW_LOADING"})},[]),y=S.useCallback(()=>{r({type:"VIEW_READY"})},[]);S.useEffect(()=>{if(e.printModeState==="applying_print_config"){if(e.printConfig.hideScaffolding&&n({enableScaffolding:!1}),e.printConfig.theme&&(r({type:"SET_ORIGINAL_THEME",theme:s()}),o(e.printConfig.theme)),e.printConfig.palette&&(r({type:"SET_ORIGINAL_PALETTE",palette:d()}),u(e.printConfig.palette)),typeof document<"u"&&(document.body.classList.add("print-mode"),e.printConfig.optimizeForMonochrome&&document.body.classList.add("print-monochrome"),e.printConfig.hideInteractiveElements&&document.body.classList.add("print-hide-interactive"),e.printConfig.pageMargins&&e.printConfig.pageMargins!=="12mm")){let w=document.querySelector("#qwick-print-margins");w||(w=document.createElement("style"),w.id="qwick-print-margins",document.head.appendChild(w)),w.textContent=`
|
|
341
|
-
@media print {
|
|
342
|
-
@page {
|
|
343
|
-
margin: ${e.printConfig.pageMargins};
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
`}r({type:"APPLY_CONFIG"})}},[e.printModeState,e.printConfig,n,s,d,o,u]),S.useEffect(()=>{if(e.printModeState==="config_applied"){const w=requestAnimationFrame(()=>{r({type:"CONFIG_APPLIED"})});return()=>cancelAnimationFrame(w)}},[e.printModeState]),S.useEffect(()=>{e.printModeState==="exiting_print_mode"&&r({type:"VIEW_READY"})},[e.printModeState]),S.useEffect(()=>{if(e.printModeState==="restoring_config"){if(n({enableScaffolding:!0}),e.originalTheme&&o(e.originalTheme),e.originalPalette&&u(e.originalPalette),typeof document<"u"){document.body.classList.remove("print-mode","print-monochrome","print-hide-interactive");const w=document.querySelector("#qwick-print-margins");w&&w.remove()}r({type:"RESTORE_CONFIG"})}},[e.printModeState,e.originalTheme,e.originalPalette,n,o,u]),S.useEffect(()=>{e.printModeState==="print_mode"&&typeof window<"u"&&window.print()},[e.printModeState]),S.useEffect(()=>{const w=()=>{h()},C=()=>{m()};if(typeof window<"u")return window.addEventListener("beforeprint",w),window.addEventListener("afterprint",C),()=>{window.removeEventListener("beforeprint",w),window.removeEventListener("afterprint",C)}},[m,h]);const v={printModeState:e.printModeState,isPrintMode:p,printConfig:e.printConfig,triggerPrint:h,exitPrintMode:m,onViewLoading:b,onViewReady:y};return c.jsx(P5.Provider,{value:v,children:t})};function EH(){const t=CH();return{isPrintMode:t.isPrintMode,printConfig:t.printConfig,printModeState:t.printModeState,enterPrintMode:t.triggerPrint,exitPrintMode:t.exitPrintMode,togglePrintMode:e=>{t.isPrintMode?t.exitPrintMode():t.triggerPrint(e)},triggerPrint:t.triggerPrint,onViewLoading:t.onViewLoading,onViewReady:t.onViewReady}}function jH(t){const e={};for(const[r,n]of Object.entries(t))if(typeof n=="string"&&n.trim())try{const o=new Function("event",n);e[r]=o}catch(o){console.warn(`Invalid event handler string for ${r}:`,n,o)}else typeof n=="function"&&(e[r]=n);return e}function AH(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid sx JSON string:",t,e);return}return t}}function MH(t){if(t){if(typeof t=="string")try{return JSON.parse(t)}catch(e){console.warn("Invalid style JSON string:",t,e);return}return t}}function uc(t){if(t!=null){if(typeof t=="number")return t;if(typeof t=="string"){if(t==="auto"||t==="grow")return t;const e=parseInt(t,10);if(!isNaN(e)&&e>0)return e}}}function RH(t){const{sx:e,style:r,onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:u,onBlur:d,span:p,xs:h,sm:m,md:b,lg:y,xl:v,backgroundColor:w,...C}=t,T=AH(e),M=MH(r),E=jH({onClick:n,onMouseEnter:o,onMouseLeave:s,onFocus:u,onBlur:d}),R={span:uc(p),xs:uc(h),sm:uc(m),md:uc(b),lg:uc(y),xl:uc(v)},j=C.background??w,k={...C,...R,sx:T,style:M,...E,background:j};return delete k.backgroundColor,k}function sv(t){if(!(t==null||typeof t=="boolean")){if(typeof t=="string"||typeof t=="number")return String(t);if(Array.isArray(t))return t.map(sv).filter(Boolean).join("")}}function ci(t){const{tagName:e,version:r,role:n,View:o,childrenStrategy:s={mode:"react-children"},finalize:u}=t;function d(h){const{dataSource:m,bindingOptions:b,children:y,...v}=h;let w=v;if(s.mode==="content-prop"){const B=s.propName||"content";if(w[B]==null){const G=sv(y);typeof G=="string"&&(w={...w,[B]:G})}}const C=RH(w),{loading:T,error:M,...E}=Qo(m||void 0,C,void 0,m?{...b}:{});let R=C;m&&!M&&(R={...C,...E});const{gridProps:j,styleProps:k,htmlProps:P,restProps:z}=On(R);if(m&&T)return c.jsx("div",{children:"Loading..."});if(m&&M)return console.error("Data binding error:",M),c.jsxs("div",{style:{color:"red",padding:"1rem",border:"1px solid red"},children:["Error loading data: ",M.message]});let _={...z,...k,...P,...n==="container"&&j?{gridProps:j}:{}};return u&&(_=u(_)),s.mode==="content-prop"?c.jsx(o,{..._}):c.jsx(o,{..._,children:y})}const p=d;return p.tagName=e,p.version=r,p[Hn]=Hn,p.fromJson=function(m){const b=m,{tagName:y,version:v,data:w}=b;if(y!==e)throw new Error(`Tag name mismatch: expected ${e}, got ${y}`);if(v!==r&&console.warn(`Version mismatch for ${e}: expected ${r}, got ${v}`),s.mode==="content-prop"){const C=s.propName||"content",{children:T,...M}=w||{},E={...M,[C]:(w==null?void 0:w[C])||""};return Mt.createElement(p,E)}else{const C={...w};return w.children!==void 0&&(C.children=ComponentTransformer.deserialize(w.children)),Mt.createElement(p,C)}},p.toJson=function(m){if(s.mode==="content-prop"){const b=s.propName||"content",{children:y,...v}=m||{},w=(m==null?void 0:m[b])??sv(m==null?void 0:m.children),C={};for(const[T,M]of Object.entries(v))typeof M=="function"&&T.startsWith("on")?C[T]=M.toString():typeof M!="function"&&M!==void 0&&M!==null&&(C[T]=M);return{tagName:e,version:r,data:{...C,[b]:w||""}}}else{const b={};for(const[y,v]of Object.entries(m))if(typeof v=="function"&&y.startsWith("on"))b[y]=v.toString();else{if(typeof v=="function")continue;(y==="children"||v!=null)&&(b[y]=v)}return{tagName:e,version:r,data:b}}},p.displayName=`SerializableView(${e})`,p}function kH({children:t,gridProps:e,...r}){return c.jsx(ne,{...r,...e?{"data-grid":JSON.stringify(e)}:{},component:"div",children:t})}const OH=ci({tagName:"Container",version:"1.0.0",role:"container",View:kH});function PH({content:t,language:e="text",showCopy:r=!0,showLineNumbers:n=!1,title:o,wrapLines:s=!1,codeBackground:u,...d}){var k;const p=ii(),[h,m]=S.useState(!1),[b,y]=S.useState(!1),v=((k=d.sx)==null?void 0:k.maxHeight)||400,w=t||"";if(!(w!=null&&w.trim()))return c.jsx(Fr,{...d,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...d.sx},children:c.jsx(me,{variant:"body2",color:"text.secondary",children:"No code content provided"})});const C=async()=>{try{await navigator.clipboard.writeText(w),m(!0),y(!0),setTimeout(()=>m(!1),2e3)}catch(P){console.error("Failed to copy code:",P)}},T=w.split(`
|
|
347
|
-
`),M=()=>u||p.palette.grey[p.palette.mode==="dark"?900:50],E=()=>p.palette.grey[p.palette.mode==="dark"?800:200],R=()=>p.palette.text.primary,j=()=>p.palette.divider;return c.jsxs(Fr,{...d,variant:"outlined",sx:{backgroundColor:M(),border:`1px solid ${j()}`,borderRadius:1,overflow:"hidden",position:"relative",...d.sx},children:[(o||r)&&c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1,backgroundColor:E(),borderBottom:`1px solid ${j()}`},children:[o&&c.jsx(me,{variant:"body2",sx:{fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',color:R(),opacity:.8},children:o}),c.jsx(ne,{sx:{ml:"auto"},children:r&&c.jsx(_r,{title:h?"Copied!":"Copy code",children:c.jsx(sr,{size:"small",onClick:C,sx:{color:R(),opacity:.7,"&:hover":{opacity:1,backgroundColor:p.palette.action.hover}},children:h?c.jsx(v5,{fontSize:"small"}):c.jsx(hb,{fontSize:"small"})})})})]}),c.jsx(ne,{sx:{maxHeight:v,overflow:"auto",position:"relative"},children:c.jsx(ne,{component:"pre",sx:{margin:0,padding:2,fontFamily:'Monaco, Consolas, "Ubuntu Mono", monospace',fontSize:"0.875rem",lineHeight:1.5,color:R(),backgroundColor:"transparent",overflow:s?"visible":"auto",whiteSpace:s?"pre-wrap":"pre",wordBreak:s?"break-word":"normal"},children:n?c.jsxs(ne,{sx:{display:"flex"},children:[c.jsx(ne,{sx:{pr:2,mr:2,borderRight:`1px solid ${j()}`,color:R(),opacity:.5,userSelect:"none",minWidth:`${String(T.length).length+1}ch`},children:T.map((P,z)=>c.jsx(ne,{sx:{textAlign:"right"},children:z+1},z))}),c.jsx(ne,{sx:{flex:1,minWidth:0},children:c.jsx("code",{children:w})})]}):c.jsx("code",{children:w})})}),c.jsx(t5,{open:b,autoHideDuration:2e3,onClose:()=>y(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:c.jsx(ar,{onClose:()=>y(!1),severity:"success",variant:"filled",children:"Code copied to clipboard!"})})]})}const Sc=ci({tagName:"Code",version:"1.0.0",role:"view",View:PH,childrenStrategy:{mode:"content-prop",propName:"content"}});Sc.registerPatternHandlers=t=>{t.hasPattern&&(t.hasPattern("pre code")||t.registerPattern("pre code",Sc.transformPreCode),t.hasPattern("code.highlight")||t.registerPattern("code.highlight",Sc.transformCodeHighlight))};Sc.transformPreCode=t=>{var n;const e=t.querySelector("code");return e?{tagName:"Code",props:{language:((n=Array.from(e.classList).find(o=>o.startsWith("language-")))==null?void 0:n.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:e.textContent||""}}:null};Sc.transformCodeHighlight=t=>{var r;return{tagName:"Code",props:{language:((r=Array.from(t.classList).find(n=>n.startsWith("language-")))==null?void 0:r.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,content:t.textContent||""}}};const _H={add:{emoji:"➕",component:y5},check:{emoji:"✓",component:v5},check_circle:{emoji:"✅",component:Xo},close:{emoji:"✕",component:H$},delete:{emoji:"🗑️",component:Sm},edit:{emoji:"✏️",component:Mh},refresh:{emoji:"🔄",component:Qc},rotate_right:{emoji:"🔄",component:TD},save:{emoji:"💾",component:mb},search:{emoji:"🔍",component:wm},send:{emoji:"📤",component:AD},share:{emoji:"🔗",component:RD},sync:{emoji:"🔄",component:LD},block:{emoji:"🚫",component:xm},key:{emoji:"🔑",component:oD},lock:{emoji:"🔒",component:rv},lock_open:{emoji:"🔓",component:QC},lockopen:{emoji:"🔓",component:QC},login:{emoji:"🔑",component:uD},logout:{emoji:"🚪",component:dD},security:{emoji:"🔐",component:jD},shield:{emoji:"🛡️",component:kD},verified_user:{emoji:"✅",component:BD},visibility:{emoji:"👁️",component:E5},visibility_off:{emoji:"🙈",component:iv},visibilityoff:{emoji:"🙈",component:iv},vpn_key:{emoji:"🔐",component:zD},attach_money:{emoji:"💰",component:VC},attachmoney:{emoji:"💰",component:VC},business:{emoji:"🏢",component:WC},cart:{emoji:"🛒",component:Uf},shopping_cart:{emoji:"🛒",component:Uf},shoppingcart:{emoji:"🛒",component:Uf},work:{emoji:"💼",component:$D},workspace_premium:{emoji:"⭐",component:DD},contact:{emoji:"📧",component:u0},email:{emoji:"📧",component:u0},mail:{emoji:"📧",component:u0},notifications:{emoji:"🔔",component:mD},phone:{emoji:"📱",component:xD},support_agent:{emoji:"🛎️",component:_D},article:{emoji:"📰",component:UC},blog:{emoji:"📝",component:qC},book:{emoji:"📖",component:qC},gallery:{emoji:"🖼️",component:d0},image:{emoji:"🖼️",component:d0},insert_photo:{emoji:"🖼️",component:d0},library_books:{emoji:"📚",component:cD},news:{emoji:"📰",component:UC},photo_library:{emoji:"📸",component:SD},play:{emoji:"▶️",component:_c},play_arrow:{emoji:"▶️",component:_c},portfolio:{emoji:"💼",component:WC},architecture:{emoji:"🏛️",component:_$},autorenew:{emoji:"🔄",component:I$},cloud:{emoji:"☁️",component:U$},cloud_download:{emoji:"☁️⬇️",component:GC},cloud_upload:{emoji:"☁️⬆️",component:XC},clouddownload:{emoji:"☁️⬇️",component:GC},cloudupload:{emoji:"☁️⬆️",component:XC},code:{emoji:"💻",component:b5},computer:{emoji:"💻",component:x5},construction:{emoji:"🚧",component:V$},integration_instructions:{emoji:"🔌",component:rD},memory:{emoji:"🧠",component:C5},psychology:{emoji:"🧠",component:wD},rocket:{emoji:"🚀",component:CD},storage:{emoji:"💾",component:gb},arrow_back:{emoji:"←",component:DC},arrow_forward:{emoji:"→",component:HC},arrowback:{emoji:"←",component:DC},arrowforward:{emoji:"→",component:HC},dashboard:{emoji:"📊",component:q$},download:{emoji:"⬇️",component:F$},explore:{emoji:"🧭",component:X$},home:{emoji:"🏠",component:w5},layers:{emoji:"📚",component:lD},menu:{emoji:"☰",component:fD},route:{emoji:"🗺️",component:ED},settings:{emoji:"⚙️",component:JC},trending_up:{emoji:"📈",component:ND},tune:{emoji:"🎛️",component:ID},inventory:{emoji:"📦",component:nD},inventory_2:{emoji:"📦",component:iD},local_offer:{emoji:"🏷️",component:xc},products:{emoji:"🛍️",component:Uf},services:{emoji:"⚙️",component:JC},speed:{emoji:"⚡",component:T5},about:{emoji:"ℹ️",component:tv},favorite:{emoji:"❤️",component:ev},heart:{emoji:"❤️",component:ev},help:{emoji:"❓",component:S5},info:{emoji:"ℹ️",component:tv},star:{emoji:"⭐",component:OD},account_circle:{emoji:"👤",component:P$},group:{emoji:"👥",component:J$},manage_accounts:{emoji:"👤",component:pD},people:{emoji:"👥",component:KC},person:{emoji:"👤",component:nv},person_search:{emoji:"🔍",component:bD},user:{emoji:"👤",component:nv},users:{emoji:"👥",component:KC}};function lv(t){if(!t)return null;const e=t.toLowerCase(),r=_H[e];if(r!=null&&r.component){const n=r.component;return c.jsx(n,{})}return console.warn(`[IconMap] Icon "${t}" not found. Add it to iconMap or use registerIcon().`),c.jsx(eD,{})}const _5=Mt.forwardRef((t,e)=>{const{label:r,variant:n="primary",color:o,buttonSize:s="medium",icon:u,endIcon:d,href:p,target:h="_self",onClick:m,action:b,disabled:y=!1,loading:v=!1,fullWidth:w=!1,children:C,...T}=t,M=()=>{switch(n){case"primary":return"contained";case"secondary":return"contained";case"outlined":return"outlined";case"text":return"text";case"contained":return"contained";default:return"contained"}},E=()=>{if(o)return o;switch(n){case"primary":return"primary";case"secondary":return"secondary";case"outlined":return"primary";case"text":return"primary";case"contained":return"primary";default:return"primary"}},R=()=>{const _=M(),B=E();return _==="contained"?{backgroundColor:`var(--theme-${B})`,color:`var(--theme-on-${B})`,"&:hover":{backgroundColor:`var(--theme-${B}-dark)`},"&.Mui-disabled":{backgroundColor:"var(--theme-text-disabled)",color:"var(--theme-on-surface)"}}:_==="outlined"?{borderColor:`var(--theme-${B})`,color:`var(--theme-${B})`,"&:hover":{borderColor:`var(--theme-${B}-dark)`,backgroundColor:`var(--theme-${B}-light)`},"&.Mui-disabled":{borderColor:"var(--theme-border-main)",color:"var(--theme-text-disabled)"}}:{color:`var(--theme-${B})`,"&:hover":{backgroundColor:`var(--theme-${B}-light)`},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}}},j=Mt.useCallback(_=>{if(b)switch(_.preventDefault(),b.type){case"navigate":b.url&&(b.target==="_blank"?window.open(b.url,"_blank","noopener,noreferrer"):window.location.href=b.url);break;case"submit":if(b.form){const B=document.getElementById(b.form);B instanceof HTMLFormElement&&B.requestSubmit()}break;case"external":b.url&&window.open(b.url,b.target||"_blank","noopener,noreferrer");break;case"custom":if(b.customHandler&&typeof window<"u"){const B=window[b.customHandler];typeof B=="function"&&B(_)}break}m&&m(_)},[b,m]),k=!!(p&&!y&&!v),P={variant:M(),size:s,disabled:y||v,fullWidth:w,...T,sx:{...R(),textTransform:"none",...v&&{"& .MuiButton-startIcon":{marginRight:1}},...T.sx||{}},startIcon:v?c.jsx(Tr,{size:16,color:"inherit","aria-label":"Loading"}):u,endIcon:v?void 0:d};if(k){const _={...P,component:"a",href:p,target:h,rel:h==="_blank"?"noopener noreferrer":void 0,onClick:void 0};return c.jsx($n,{ref:e,..._,children:r||C})}const z={...P,onClick:y||v?void 0:b?j:m};return c.jsx($n,{ref:e,...z,children:r||C})});_5.displayName="ButtonView";const Vr=ci({tagName:"Button",version:"1.0.0",role:"view",View:_5,finalize:t=>{const e={...t};if(typeof t.icon=="string"){const r=lv(t.icon);e.icon=r||void 0}if(typeof t.endIcon=="string"){const r=lv(t.endIcon);e.endIcon=r||void 0}return e}});Vr.registerPatternHandlers=t=>{t.hasPattern("button")||t.registerPattern("button",LH),t.hasPattern('input[type="button"]')||t.registerPattern('input[type="button"]',NH),t.hasPattern('input[type="submit"]')||t.registerPattern('input[type="submit"]',IH)};function LH(t){const e=t.getAttribute("data-variant")||(t.className.includes("btn-primary")?"primary":t.className.includes("btn-outlined")?"outlined":"secondary"),r=t.hasAttribute("disabled"),n=t.getAttribute("data-href"),o=t.getAttribute("data-target");return{tagName:"Button",props:{label:t.textContent||"Button",variant:e,disabled:r,href:n||void 0,target:o||void 0}}}function NH(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Button",variant:"secondary",disabled:e}}}function IH(t){const e=t.hasAttribute("disabled");return{tagName:"Button",props:{label:t.getAttribute("value")||"Submit",variant:"primary",disabled:e,type:"submit"}}}function BH({content:t,variant:e="body1",color:r="inherit",align:n="inherit",component:o="p",fontWeight:s="inherit",textDecoration:u="none",textTransform:d="none",noWrap:p=!1,paragraph:h=!1,gutterBottom:m=!1,fontSize:b,lineHeight:y,letterSpacing:v,fontFamily:w,customColor:C,maxWidth:T,className:M,style:E,...R}){const j=t||"";if(!j)return null;const k={...E};return b&&(k.fontSize=b),y&&(k.lineHeight=y),v&&(k.letterSpacing=v),w&&(k.fontFamily=w),C&&(k.color=C),T&&(k.maxWidth=T),s!=="inherit"&&(k.fontWeight=s),u!=="none"&&(k.textDecoration=u),d!=="none"&&(k.textTransform=d),R.onClick&&(k.cursor="pointer"),c.jsx(me,{...R,variant:e,color:r,align:n,component:o,noWrap:p,paragraph:h,gutterBottom:m,className:`text ${M||""}`.trim(),style:k,children:j})}const Et=ci({tagName:"Text",version:"1.0.0",role:"view",View:BH,childrenStrategy:{mode:"content-prop",propName:"content"}});Et.registerPatternHandlers=t=>{const e=Et;t.hasPattern("p")||t.registerPattern("p",e.transformParagraph),["h1","h2","h3","h4","h5","h6"].forEach(n=>{t.hasPattern(n)||t.registerPattern(n,o=>e.transformHeading(o,n))}),t.hasPattern("span")||t.registerPattern("span",e.transformSpan)};Et.transformParagraph=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body1",component:"p",content:t.textContent||""}});Et.transformHeading=(t,e)=>({tagName:"Text",version:"1.0.0",data:{variant:{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"}[e]||"h4",component:e,content:t.textContent||""}});Et.transformSpan=t=>({tagName:"Text",version:"1.0.0",data:{variant:"body2",component:"span",content:t.textContent||""}});function zH({title:t="",subtitle:e,backgroundImage:r,backgroundGradient:n,backgroundColor:o="primary",actions:s=[],children:u,textAlign:d="center",blockHeight:p="medium",overlayOpacity:h=.5,gridProps:m,...b}){const y=ii(),v=()=>{switch(p){case"small":return 300;case"medium":return 400;case"large":return 600;case"viewport":return"100vh";default:return 400}},w=()=>{if(r||n)return"transparent";switch(o){case"primary":return y.palette.primary.main;case"secondary":return y.palette.secondary.main;case"surface":return y.palette.background.paper;default:return y.palette.background.default}},C=()=>{switch(o){case"primary":return y.palette.primary.contrastText;case"secondary":return y.palette.secondary.contrastText;case"surface":return y.palette.getContrastText(y.palette.background.paper);default:return y.palette.text.primary}};return c.jsxs(ne,{component:"section",...b,...m?{"data-grid":JSON.stringify(m)}:{},sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",minHeight:v(),backgroundColor:w(),color:C(),backgroundImage:r?`url(${r})`:n||"none",backgroundSize:r?"cover":"auto",backgroundPosition:r?"center":"initial",backgroundRepeat:"no-repeat",overflow:"hidden",...b.sx},children:[r&&c.jsx(ne,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.4)",opacity:h,zIndex:1}}),c.jsx(Th,{maxWidth:"md",sx:{position:"relative",zIndex:2,textAlign:d,py:4},children:c.jsxs(fC,{spacing:3,alignItems:d==="center"?"center":d==="right"?"flex-end":"flex-start",children:[c.jsx(Et,{variant:"h2",component:"h1",customColor:"var(--theme-on-primary)",sx:{fontWeight:700,fontSize:{xs:"2rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},lineHeight:1.2,maxWidth:"800px"},children:t}),e&&c.jsx(Et,{variant:"h5",component:"p",customColor:"var(--theme-on-primary)",fontWeight:"400",sx:{opacity:.9,maxWidth:"600px"},children:e}),s.length>0&&c.jsx(fC,{direction:"row",spacing:2,sx:{mt:2,flexWrap:"wrap",gap:1,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start"},children:s.map((T,M)=>c.jsx(Vr,{buttonSize:"large",...T},`hero-action-${M}`))}),u&&c.jsx(ne,{sx:{maxWidth:"800px"},children:u})]})})]})}const $H=ci({tagName:"HeroBlock",version:"1.0.0",role:"container",View:zH});function DH({src:t,alt:e="",width:r,height:n,objectFit:o="cover",objectPosition:s="center",loading:u="lazy",title:d,draggable:p=!1,borderRadius:h,showLoading:m=!1,showError:b=!1,fallbackSrc:y,sizes:v,srcSet:w,loadingPlaceholder:C,errorPlaceholder:T,onClick:M,style:E,className:R,...j}){const k=ii(),[P,z]=S.useState("loading"),[_,B]=S.useState(t),G=S.useCallback(()=>{z("loaded")},[]),D=S.useCallback(()=>{if(y&&_!==y){B(y);return}z("error")},[y,_]);if(!t)return b?c.jsx(ne,{...j,className:`image-error ${R||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:k.palette.grey[100],color:k.palette.text.secondary,width:r||200,height:n||150,borderRadius:h,...E},children:T||c.jsxs(ne,{sx:{textAlign:"center"},children:[c.jsx(FC,{sx:{fontSize:48,mb:1,opacity:.5}}),c.jsx(me,{variant:"body2",color:"text.secondary",children:"No image source"})]})}):null;if(P==="loading"&&m)return c.jsx(ne,{...j,className:`image-loading ${R||""}`.trim(),style:{width:r||"100%",height:n||200,borderRadius:h,...E},children:C||c.jsx(CI,{variant:"rectangular",width:"100%",height:"100%",sx:{borderRadius:h}})});if(P==="error"&&b)return c.jsx(ne,{...j,className:`image-error ${R||""}`.trim(),style:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:k.palette.grey[100],color:k.palette.text.secondary,width:r||"100%",height:n||200,borderRadius:h,...E},children:T||c.jsxs(ne,{sx:{textAlign:"center",p:2},children:[c.jsx(FC,{sx:{fontSize:48,mb:1,opacity:.5}}),c.jsx(me,{variant:"body2",color:"text.secondary",children:"Failed to load image"}),y&&c.jsx(me,{variant:"caption",color:"text.secondary",children:"Fallback image also failed"})]})});const A={display:"block",maxWidth:"100%",height:"auto",objectFit:o,objectPosition:s,borderRadius:h,cursor:M?"pointer":"default",...E};return r&&(A.width=r),n&&(A.height=n),c.jsx("img",{...j,src:_,alt:e,width:r,height:n,loading:u,title:d,draggable:p,sizes:v,srcSet:w,className:`image ${R||""}`.trim(),style:A,onClick:M,onLoad:G,onError:D})}const L5=ci({tagName:"Image",version:"1.0.0",role:"view",View:DH});L5.registerPatternHandlers=t=>{t.hasPattern("img")||t.registerPattern("img",HH),t.hasPattern("figure img")||t.registerPattern("figure img",UH)};function HH(t){const e=t.getAttribute("src")||"",r=t.getAttribute("alt")||"",n=t.getAttribute("width"),o=t.getAttribute("height"),s=t.getAttribute("loading");return{tagName:"Image",props:{src:e,alt:r,width:n?parseInt(n):void 0,height:o?parseInt(o):void 0,loading:s||"lazy"}}}function UH(t){const e=t.closest("figure"),r=e==null?void 0:e.querySelector("figcaption"),n=(r==null?void 0:r.textContent)||"",o=t.getAttribute("src")||"",s=t.getAttribute("alt")||n,u=t.getAttribute("width"),d=t.getAttribute("height");return{tagName:"Image",props:{src:o,alt:s,caption:n||void 0,width:u?parseInt(u):void 0,height:d?parseInt(d):void 0,loading:"lazy"}}}function VH({children:t,background:e="var(--theme-surface)",color:r="var(--theme-on-surface)",padding:n="medium",contentMaxWidth:o="lg",component:s="section",gridProps:u,...d}){if(!t)return c.jsx(ne,{component:s,...d,...u?{"data-grid":JSON.stringify(u)}:{},sx:{backgroundColor:e,color:r,position:"static",py:2,px:0,...d.sx},children:c.jsx(Th,{maxWidth:rT(o),sx:{position:"relative",textAlign:"center",opacity:.6,...o===!1&&{maxWidth:"none !important",px:3}},children:"No content provided for this section"})});const p=()=>{switch(n){case"none":return 0;case"tiny":return{py:1,px:0};case"small":return{py:2,px:0};case"medium":return{py:4,px:0};case"large":return{py:8,px:0};case"extra-large":return{py:12,px:0};default:return{py:4,px:0}}};return c.jsx(ne,{component:s,...d,...u?{"data-grid":JSON.stringify(u)}:{},sx:{backgroundColor:e,color:r,position:"static",...p(),...d.sx},children:c.jsx(Th,{maxWidth:rT(o),sx:{position:"relative",...o===!1&&{maxWidth:"none !important",px:3}},children:t})})}const wc=ci({tagName:"Section",version:"1.0.0",role:"container",View:VH,finalize:t=>t.contentMaxWidth==="false"?{...t,contentMaxWidth:!1}:t});wc.registerPatternHandlers=t=>{t.hasPattern("section")||t.registerPattern("section",wc.transformSection),t.hasPattern("section.blog-section")||t.registerPattern("section.blog-section",wc.transformBlogSection)};wc.transformSection=t=>{const e=t.getAttribute("data-padding")||"medium",r=t.getAttribute("data-background"),n=t.getAttribute("data-max-width")||"lg";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:n,children:t.innerHTML}}};wc.transformBlogSection=t=>{const e=t.getAttribute("data-padding")||"large",r=t.getAttribute("data-background")||"var(--theme-surface)";return{tagName:"Section",version:"1.0.0",data:{padding:e,background:r,contentMaxWidth:"md",children:t.innerHTML}}};function N(t,e,r,n){var o=arguments.length,s=o<3?e:n,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var d=t.length-1;d>=0;d--)(u=t[d])&&(s=(o<3?u(s):o>3?u(e,r,s):u(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}function q(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}let gt=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Grid Span",description:"Column span for grid layouts (number, auto, or grow)"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto","grow"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"span",void 0);N([U(),V({field_type:H.TEXT,label:"Extra Small Breakpoint (xs)",description:"Column span for extra small screens"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"xs",void 0);N([U(),V({field_type:H.SELECT,label:"Small Breakpoint (sm)",description:"Column span for small screens"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"sm",void 0);N([U(),V({field_type:H.SELECT,label:"Medium Breakpoint (md)",description:"Column span for medium screens"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"md",void 0);N([U(),V({field_type:H.SELECT,label:"Large Breakpoint (lg)",description:"Column span for large screens"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"lg",void 0);N([U(),V({field_type:H.SELECT,label:"Extra Large Breakpoint (xl)",description:"Column span for extra large screens"}),W(),Gi((t,e)=>typeof e=="string"),qe(["auto"]),Gi((t,e)=>typeof e=="number"),Yc(),si(1),q("design:type",Object)],gt.prototype,"xl",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class Name",description:"Additional CSS class name for custom styling",placeholder:"custom-class-name"}),W(),ae(),q("design:type",String)],gt.prototype,"className",void 0);N([U(),V({field_type:H.TEXTAREA,label:"MUI SX Props",description:"MUI sx prop as JSON string for advanced styling",placeholder:'{"color": "primary.main", "fontWeight": "bold"}'}),W(),ae(),q("design:type",Object)],gt.prototype,"sx",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Inline Styles",description:"Inline CSS styles as JSON string",placeholder:'{"color": "red", "margin": "10px"}'}),W(),ae(),q("design:type",Object)],gt.prototype,"style",void 0);N([U(),V({field_type:H.TEXT,label:"Width",description:"Component width (t-shirt sizes, breakpoints, CSS values, or numbers)",placeholder:"medium, 300px, 50%, auto, grow"}),W(),ae(),q("design:type",Object)],gt.prototype,"width",void 0);N([U(),V({field_type:H.TEXT,label:"Height",description:"Component height (t-shirt sizes, CSS values, or numbers)",placeholder:"medium, 200px, 50vh, auto"}),W(),ae(),q("design:type",Object)],gt.prototype,"height",void 0);N([U(),V({field_type:H.TEXT,label:"Minimum Width",description:"Minimum width constraint",placeholder:"small, 100px, auto"}),W(),ae(),q("design:type",Object)],gt.prototype,"minWidth",void 0);N([U(),V({field_type:H.TEXT,label:"Minimum Height",description:"Minimum height constraint",placeholder:"small, 100px, auto"}),W(),ae(),q("design:type",Object)],gt.prototype,"minHeight",void 0);N([U(),V({field_type:H.TEXT,label:"Maximum Width",description:"Maximum width constraint",placeholder:"large, lg, 1200px"}),W(),ae(),q("design:type",Object)],gt.prototype,"maxWidth",void 0);N([U(),V({field_type:H.TEXT,label:"Maximum Height",description:"Maximum height constraint",placeholder:"large, 500px, 80vh"}),W(),ae(),q("design:type",Object)],gt.prototype,"maxHeight",void 0);N([U(),V({field_type:H.SELECT,label:"Padding",description:"Internal spacing for all sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"padding",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Top",description:"Internal spacing for top side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingTop",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Right",description:"Internal spacing for right side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingRight",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Bottom",description:"Internal spacing for bottom side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingBottom",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Left",description:"Internal spacing for left side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingLeft",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Horizontal (X)",description:"Internal spacing for left and right sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingX",void 0);N([U(),V({field_type:H.SELECT,label:"Padding Vertical (Y)",description:"Internal spacing for top and bottom sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"paddingY",void 0);N([U(),V({field_type:H.SELECT,label:"Margin",description:"External spacing for all sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"margin",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Top",description:"External spacing for top side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginTop",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Right",description:"External spacing for right side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginRight",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Bottom",description:"External spacing for bottom side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginBottom",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Left",description:"External spacing for left side"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginLeft",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Horizontal (X)",description:"External spacing for left and right sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginX",void 0);N([U(),V({field_type:H.SELECT,label:"Margin Vertical (Y)",description:"External spacing for top and bottom sides"}),W(),ae(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",Object)],gt.prototype,"marginY",void 0);N([U(),V({field_type:H.TEXT,label:"Background",description:"Background fill (color, gradient, image CSS). Canonical name.",placeholder:"#ffffff, primary.main, linear-gradient(...)"}),W(),ae(),q("design:type",String)],gt.prototype,"background",void 0);N([U(),V({field_type:H.TEXT,label:"Background Color (Deprecated)",description:"Use background instead. Kept for backward compatibility.",placeholder:"#ffffff, primary.main"}),W(),ae(),q("design:type",String)],gt.prototype,"backgroundColor",void 0);N([U(),V({field_type:H.TEXT,label:"Background Image",description:"Background image URL",placeholder:"https://example.com/image.jpg"}),W(),ae(),q("design:type",String)],gt.prototype,"backgroundImage",void 0);N([U(),V({field_type:H.TEXT,label:"Background Gradient",description:"CSS gradient for background",placeholder:"linear-gradient(45deg, #ff6b6b, #4ecdc4)"}),W(),ae(),q("design:type",String)],gt.prototype,"backgroundGradient",void 0);N([U(),V({field_type:H.SELECT,label:"Text Alignment",description:"Text alignment within the component"}),W(),ae(),qe(["left","center","right","justify"]),q("design:type",String)],gt.prototype,"textAlign",void 0);N([U(),V({field_type:H.TEXT,label:"Element ID",description:"Unique HTML element ID",placeholder:"unique-element-id"}),W(),ae(),q("design:type",String)],gt.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Role",description:"ARIA role for accessibility",placeholder:"button, navigation, main, etc."}),W(),ae(),q("design:type",String)],gt.prototype,"role",void 0);N([U(),V({field_type:H.TEXT,label:"ARIA Label",description:"Accessibility label for screen readers",placeholder:"Describe this element..."}),W(),ae(),q("design:type",String)],gt.prototype,"aria-label",void 0);N([U(),V({field_type:H.TEXT,label:"ARIA Labelled By",description:"IDs of elements that label this component",placeholder:"label-element-id"}),W(),ae(),q("design:type",String)],gt.prototype,"aria-labelledby",void 0);N([U(),V({field_type:H.TEXT,label:"ARIA Described By",description:"IDs of elements that describe this component",placeholder:"element-id-1 element-id-2"}),W(),ae(),q("design:type",String)],gt.prototype,"aria-describedby",void 0);N([U(),V({field_type:H.TEXT,label:"Data Test ID",description:"Test automation identifier",placeholder:"test-element-name"}),W(),ae(),q("design:type",String)],gt.prototype,"data-testid",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Click Handler",description:"JavaScript function for click events",placeholder:'function(event) { console.debug("clicked"); }'}),W(),ae(),q("design:type",Function)],gt.prototype,"onClick",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Mouse Enter Handler",description:"JavaScript function for mouse enter events",placeholder:"function(event) { /* hover start */ }"}),W(),ae(),q("design:type",Function)],gt.prototype,"onMouseEnter",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Mouse Leave Handler",description:"JavaScript function for mouse leave events",placeholder:"function(event) { /* hover end */ }"}),W(),ae(),q("design:type",Function)],gt.prototype,"onMouseLeave",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Focus Handler",description:"JavaScript function for focus events",placeholder:"function(event) { /* element focused */ }"}),W(),ae(),q("design:type",Function)],gt.prototype,"onFocus",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Blur Handler",description:"JavaScript function for blur events",placeholder:"function(event) { /* element blurred */ }"}),W(),ae(),q("design:type",Function)],gt.prototype,"onBlur",void 0);gt=N([zt("ViewSchema","1.0.0")],gt);var N5=gt;let Ca=class extends N5{};N([U(),V({field_type:H.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ae(),q("design:type",Object)],Ca.prototype,"children",void 0);Ca=N([zt("ContainerSchema","1.0.0")],Ca);let fo=class extends Ca{};N([U(),V({field_type:H.TEXT,label:"Title",description:"Title for the default header (ignored if custom header is provided)",placeholder:"Enter form title..."}),W(),ae(),q("design:type",String)],fo.prototype,"title",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Description",description:"Description/subtitle for the default header (ignored if custom header is provided)",placeholder:"Enter form description..."}),W(),ae(),q("design:type",String)],fo.prototype,"description",void 0);N([U(),V({field_type:H.TEXT,label:"Cover Image URL",description:"Cover image URL for the default header (ignored if custom header is provided)",placeholder:"https://example.com/image.jpg"}),W(),ae(),q("design:type",Object)],fo.prototype,"coverImage",void 0);N([U(),V({field_type:H.TEXT,label:"Status Type",description:"Status type for message display (info, success, warning, error)",placeholder:"info"}),W(),qe(["info","success","warning","error"]),q("design:type",String)],fo.prototype,"status",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Status Message",description:"Status message to display",placeholder:"Enter status message..."}),W(),ae(),q("design:type",String)],fo.prototype,"message",void 0);N([U({defaultValue:"sm"}),V({field_type:H.TEXT,label:"Maximum Width",description:"Maximum width of the form container (xs, sm, md)",placeholder:"sm"}),W(),qe(["xs","sm","md"]),q("design:type",String)],fo.prototype,"maxWidth",void 0);N([U({defaultValue:"default"}),V({field_type:H.TEXT,label:"Background Style",description:"Background style variant (default, gradient, image)",placeholder:"default"}),W(),qe(["default","gradient","image"]),q("design:type",String)],fo.prototype,"background",void 0);N([U(),V({field_type:H.TEXT,label:"Background Image URL",description:'Background image URL (when background="image")',placeholder:"https://example.com/background.jpg"}),W(),ae(),q("design:type",String)],fo.prototype,"backgroundImage",void 0);fo=N([zt("FormBlock","1.0.0")],fo);var qH=fo;function cv(t){if(t==null)return"";if(typeof t=="string"||typeof t=="number")return String(t);if(typeof t=="boolean")return t?"true":"false";if(Array.isArray(t))return t.map(e=>cv(e)).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t;if(e.props&&e.props.children)return cv(e.props.children)}return String(t)}function FH(t){const{span:e,xs:r,sm:n,md:o,lg:s,xl:u,sx:d,style:p,...h}=t;return{span:e==="auto"?"auto":e==="grow"?"grow":e&&typeof e=="string"?parseInt(e,10):e,xs:r==="auto"?"auto":r&&typeof r=="string"?parseInt(r,10):r,sm:n==="auto"?"auto":n&&typeof n=="string"?parseInt(n,10):n,md:o==="auto"?"auto":o&&typeof o=="string"?parseInt(o,10):o,lg:s==="auto"?"auto":s&&typeof s=="string"?parseInt(s,10):s,xl:u==="auto"?"auto":u&&typeof u=="string"?parseInt(u,10):u,sx:typeof d=="string"?(()=>{try{return JSON.parse(d)}catch{return d}})():d,style:typeof p=="string"?(()=>{try{return JSON.parse(p)}catch{return p}})():p,onClick:typeof t.onClick=="string"?rd(t.onClick):t.onClick,onMouseEnter:typeof t.onMouseEnter=="string"?rd(t.onMouseEnter):t.onMouseEnter,onMouseLeave:typeof t.onMouseLeave=="string"?rd(t.onMouseLeave):t.onMouseLeave,onFocus:typeof t.onFocus=="string"?rd(t.onFocus):t.onFocus,onBlur:typeof t.onBlur=="string"?rd(t.onBlur):t.onBlur,...h}}function rd(t){if(!(!t||typeof t!="string"))try{let e;return t.trim().startsWith("function")?e=new Function(`return (${t})`)():e=new Function("event",t),r=>e(r)}catch(e){console.error("Error parsing event handler:",e);return}}class wl extends Mt.Component{static fromJson(e){const r=e,{tagName:n,version:o,data:s}=r;if(n!==this.tagName)throw new Error(`Cannot deserialize: Expected tagName '${this.tagName}' but got '${n}'`);return o!==this.version&&console.warn(`Version mismatch: Expected ${this.version} but got ${o}`),Mt.createElement(this,s||{})}toJson(){const e=this.getBaseSerializableProps(),r=this.getComponentSpecificProps();return{tagName:this.constructor.tagName,version:this.constructor.version,data:{...e,...r}}}getProcessedProps(){const{dataSource:e,bindingOptions:r,...n}=this.props,o=FH(n);return{gridProps:{span:o.span,xs:o.xs,sm:o.sm,md:o.md,lg:o.lg,xl:o.xl},styleProps:{className:o.className,sx:o.sx,style:o.style},htmlProps:{id:o.id,role:o.role,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"],"aria-describedby":o["aria-describedby"],"data-testid":o["data-testid"],onClick:o.onClick,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,onFocus:o.onFocus,onBlur:o.onBlur},restProps:{width:o.width,height:o.height,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,padding:o.padding,paddingTop:o.paddingTop,paddingRight:o.paddingRight,paddingBottom:o.paddingBottom,paddingLeft:o.paddingLeft,paddingX:o.paddingX,paddingY:o.paddingY,margin:o.margin,marginTop:o.marginTop,marginRight:o.marginRight,marginBottom:o.marginBottom,marginLeft:o.marginLeft,marginX:o.marginX,marginY:o.marginY,background:o.background,backgroundImage:o.backgroundImage,backgroundGradient:o.backgroundGradient,textAlign:o.textAlign}}}getBaseSerializableProps(){const e=this.props;return{children:e.children?this.serializeChildren(e.children):void 0,dataSource:e.dataSource,bindingOptions:e.bindingOptions,...e}}serializeChildren(e){if(typeof e=="string")return e;if(this.hasNestedComponents(e))throw new Error("Components with nested components must override serializeChildren method");return cv(e)}hasNestedComponents(e){return!1}render(){return this.props.dataSource?this.renderWithDataBinding():this.renderView()}static registerPatternHandlers(e){}}wl.tagName="";wl.version="";let Uo=class extends xr{};N([U(),V({field_type:H.TEXT,label:"ID",description:"Unique identifier for the action",placeholder:"action-id"}),ae(),xs(),q("design:type",String)],Uo.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Label",description:"Display label for the action button",placeholder:"Action label"}),ae(),q("design:type",String)],Uo.prototype,"label",void 0);N([U(),V({field_type:H.TEXT,label:"Icon",description:"Icon component or JSX element",placeholder:"icon-name"}),W(),ae(),q("design:type",String)],Uo.prototype,"icon",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Whether this action is disabled"}),W(),Ot(),q("design:type",Boolean)],Uo.prototype,"disabled",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Destructive",description:"Whether this action is destructive (shows with warning styling)"}),W(),Ot(),q("design:type",Boolean)],Uo.prototype,"destructive",void 0);N([U(),V({field_type:H.NUMBER,label:"Priority",description:"Priority for ordering (lower numbers = higher priority)",validation:{min:1,max:100}}),W(),Lr(),si(1),Sl(100),q("design:type",Number)],Uo.prototype,"priority",void 0);Uo=N([zt("HeaderAction","1.0.0")],Uo);let hn=class extends xr{};N([U(),V({field_type:H.IMAGE,label:"Image",description:"Image URL or component",placeholder:"Upload image"}),W(),ae(),q("design:type",String)],hn.prototype,"image",void 0);N([U(),V({field_type:H.TEXT,label:"Image Alt Text",description:"Alternative text for image",placeholder:"Descriptive alt text..."}),W(),ae(),q("design:type",String)],hn.prototype,"imageAlt",void 0);N([U(),V({field_type:H.SELECT,label:"Image Size",description:"Size of the image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),qe(["small","medium","large"]),q("design:type",String)],hn.prototype,"imageSize",void 0);N([U(),V({field_type:H.SELECT,label:"Image Shape",description:"Shape of the image",validation:{options:[{label:"Square",value:"square"},{label:"Circle",value:"circle"},{label:"Rounded",value:"rounded"}]}}),W(),qe(["square","circle","rounded"]),q("design:type",String)],hn.prototype,"imageShape",void 0);N([U({defaultValue:"transparent"}),V({field_type:H.COLOR,label:"Image Background",description:"Image background color",placeholder:"Pick a color for the image background"}),W(),ae(),q("design:type",String)],hn.prototype,"imageBackgroundColor",void 0);N([U(),V({field_type:H.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ae(),q("design:type",String)],hn.prototype,"overline",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ae(),q("design:type",String)],hn.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ae(),q("design:type",String)],hn.prototype,"subtitle",void 0);N([U(),V({field_type:H.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),gn(),ae({each:!0}),q("design:type",Array)],hn.prototype,"tags",void 0);N([U(),V({field_type:H.REPEATER,label:"Actions",description:"Array of header action buttons"}),W(),gn(),ai({each:!0}),li(()=>Uo),q("design:type",Array)],hn.prototype,"actions",void 0);N([U(),V({field_type:H.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Lr(),si(1),Sl(10),q("design:type",Number)],hn.prototype,"maxVisibleActions",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),q("design:type",String)],hn.prototype,"className",void 0);N([U(),V({field_type:H.SELECT,label:"Header Variant",description:"Style variant for the header",validation:{options:[{label:"Default",value:"default"},{label:"Compact",value:"compact"},{label:"Prominent",value:"prominent"}]}}),W(),qe(["default","compact","prominent"]),q("design:type",String)],hn.prototype,"variant",void 0);N([U({defaultValue:"--var(--theme-primary)"}),V({field_type:H.TEXT,label:"Background",description:"Background color or image URL",placeholder:"Pick a color for the background or enter a image URL"}),W(),ae(),q("design:type",String)],hn.prototype,"background",void 0);N([U({defaultValue:"--var(--theme-on-primary)"}),V({field_type:H.COLOR,label:"Color",description:"Foreground color",placeholder:"#000000"}),W(),ae(),q("design:type",String)],hn.prototype,"color",void 0);hn=N([zt("CoverImageHeader","1.0.0")],hn);var WH=hn;function pT({image:t,imageAlt:e="",imageSize:r="medium",imageShape:n="rounded",imageBackgroundColor:o="transparent",overline:s,title:u,subtitle:d,tags:p=[],actions:h=[],maxVisibleActions:m=3,variant:b="default",background:y,color:v,...w}){const{gridProps:C,styleProps:T,htmlProps:M}=On(w),[E,R]=S.useState(null),j=!!E,k=[...h].sort((J,L)=>(J.priority||999)-(L.priority||999)),P=k.slice(0,m),z=k.slice(m),_=J=>{R(J.currentTarget)},B=()=>{R(null)},G=()=>{switch(r){case"small":return 48;case"large":return 80;default:return 64}},D=()=>{switch(n){case"circle":return"circular";case"square":return"square";default:return"rounded"}},A=()=>{if(!t)return null;const J=G();return typeof t=="string"?c.jsx(W2,{src:t,alt:e,variant:D(),sx:{width:J,height:J}}):c.jsx(W2,{variant:D(),sx:{width:J,height:J,backgroundColor:o||"transparent"},children:t})},Y=()=>p.length===0?null:c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:.5,mt:.5},children:p.map((J,L)=>c.jsx(rr,{label:J,size:"small",color:"primary",sx:{fontSize:"0.75rem",height:"24px"}},L))}),F=()=>h.length===0?null:c.jsxs(ne,{sx:{display:"flex",alignItems:"flex-start",gap:.5},children:[P.map(J=>c.jsx($n,{variant:"outlined",size:"small",startIcon:J.icon,onClick:J.onClick,disabled:J.disabled,color:J.destructive?"error":"primary",sx:{minHeight:36,whiteSpace:"nowrap","& .MuiButton-startIcon":{mr:.5}},children:J.label},J.id)),z.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(sr,{size:"small",onClick:_,"aria-label":"More actions",color:"info",sx:{minHeight:36,minWidth:36},children:c.jsx(hD,{})}),c.jsx(ym,{anchorEl:E,open:j,onClose:B,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:z.map(J=>c.jsxs(Mr,{onClick:()=>{J.onClick(),B()},disabled:J.disabled,sx:{color:J.destructive?"error.main":"inherit",gap:1.5,minWidth:200},children:[J.icon&&c.jsx(ne,{component:"span",sx:{display:"flex"},children:J.icon}),J.label]},J.id))})]})]}),$=()=>{switch(b){case"compact":return 2;case"prominent":return 3;default:return 2.5}},I=()=>{switch(b){case"compact":return 1.5;case"prominent":return 2;default:return 2}},Q=()=>{switch(b){case"default":return 0;case"compact":return 1;case"prominent":return 1;default:return 0}},ee=y?{background:y.startsWith("http")||y.startsWith("data:")?`linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(${y})`:y,backgroundSize:"cover",backgroundPosition:"center"}:{background:"-var(--theme-primary)"};return c.jsx(Fr,{component:"header",...M,...C&&{"data-grid-span":C.span,"data-grid-xs":C.xs,"data-grid-sm":C.sm,"data-grid-md":C.md,"data-grid-lg":C.lg,"data-grid-xl":C.xl},sx:{p:$(),borderRadius:Q()>0?2:0,...ee,color:y?"white":"inherit",...T.sx},elevation:Q(),children:c.jsxs(ne,{sx:{display:"flex",alignItems:b==="prominent"?"center":"flex-start",gap:I(),flexWrap:{xs:"wrap",sm:"nowrap"},minHeight:b==="prominent"?120:"auto"},children:[A(),c.jsxs(ne,{sx:{flex:1,minWidth:0},children:[s&&c.jsx(me,{variant:"overline",color:v||"--var(--theme-on-primary)",sx:{display:"block",fontSize:"0.75rem",fontWeight:600,lineHeight:1.2,mb:.25},children:s}),c.jsx(me,{variant:"h5",component:"h1",sx:{fontWeight:600,lineHeight:1.3,wordBreak:"break-word",mb:d?.25:0},children:u}),d&&c.jsx(me,{variant:"body2",color:v||"--var(--theme-on-primary)",sx:{lineHeight:1.4,mb:(p.length>0,0)},children:d}),Y()]}),c.jsx(ne,{sx:{flexShrink:0,width:{xs:"100%",sm:"auto"},display:"flex",justifyContent:{xs:"flex-end",sm:"flex-start"},mt:{xs:1,sm:0}},children:F()})]})})}function GH(){return c.jsxs(Fr,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[c.jsx(me,{variant:"body2",children:"Loading Cover Image Header..."}),c.jsx(me,{variant:"caption",color:"text.secondary",children:"Loading header content from data source..."})]})}function XH(){return c.jsx(Fr,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:c.jsx(me,{variant:"body2",color:"error",children:"Error loading cover image header"})})}function YH(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Qo(e||"",n,WH.getSchema(),{...r});if(!e)return c.jsx(pT,{...n});const{loading:s,error:u,...d}=o;if(s)return c.jsx(GH,{});if(u)return console.error("Error loading cover image header:",u),c.jsx(XH,{});const{actions:p,...h}=d,m=p?p.filter(b=>typeof b.id=="string"&&!!b.id).map(b=>({...b,id:b.id,onClick:()=>console.debug(`Action clicked: ${b.id}`)})):[];return c.jsx(pT,{...h,actions:m})}let kn=class extends xr{};N([U({defaultValue:"Qwick Apps",dataType:dt.STRING}),V({field_type:H.TEXT,label:"Logo Name/Text",description:"Logo name/text to display. Supports up to TWO parts with \\n for line breaks and \\s for explicit spaces.",placeholder:'Enter logo text (e.g., "Qwick Apps", "Qwick\\nApps")'}),W(),ae(),q("design:type",String)],kn.prototype,"name",void 0);N([U({defaultValue:"default",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Visual Variant",description:"Visual style variant of the logo",validation:{options:[{label:"Default",value:"default"},{label:"High Contrast",value:"high-contrast"},{label:"Monochrome",value:"monochrome"},{label:"On Primary Background",value:"on-primary"}]}}),W(),ae(),qe(["default","high-contrast","monochrome","on-primary"]),q("design:type",String)],kn.prototype,"variant",void 0);N([U({defaultValue:"medium",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Size",description:"Size variant of the logo (controls both text size and visual height)",validation:{options:[{label:"Tiny (16px)",value:"tiny"},{label:"Small (20px)",value:"small"},{label:"Medium (28px)",value:"medium"},{label:"Large (36px)",value:"large"},{label:"Extra Large (48px)",value:"extra-large"}]}}),W(),ae(),qe(["tiny","small","medium","large","extra-large"]),q("design:type",String)],kn.prototype,"size",void 0);N([U({defaultValue:"top-right",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Badge Position",description:'Badge position and visibility. "none" hides the badge, others show it at the specified position.',validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left Center)",value:"start"},{label:"Center",value:"center"},{label:"End (Right Center)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),qe(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),q("design:type",String)],kn.prototype,"badge",void 0);N([U({defaultValue:"circle",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Badge Shape",description:"Shape of the badge when visible",validation:{options:[{label:"Circle",value:"circle"},{label:"Star",value:"star"},{label:"Square",value:"square"},{label:"Heart",value:"heart"}]}}),W(),ae(),qe(["circle","star","square","heart"]),q("design:type",String)],kn.prototype,"badgeShape",void 0);N([U({dataType:dt.NUMBER}),V({field_type:H.NUMBER,label:"Badge Offset X",description:"Horizontal offset from calculated badge position (positive = right, negative = left)",placeholder:"0"}),W(),Lr(),q("design:type",Number)],kn.prototype,"badgeOffsetX",void 0);N([U({dataType:dt.NUMBER}),V({field_type:H.NUMBER,label:"Badge Offset Y",description:"Vertical offset from calculated badge position (positive = down, negative = up)",placeholder:"0"}),W(),Lr(),q("design:type",Number)],kn.prototype,"badgeOffsetY",void 0);N([U({defaultValue:"Segoe UI, sans-serif",dataType:dt.STRING}),V({field_type:H.TEXT,label:"Font Family",description:"Font family for the logo text",placeholder:"Segoe UI, sans-serif"}),W(),ae(),q("design:type",String)],kn.prototype,"fontFamily",void 0);N([U({defaultValue:"bold",dataType:dt.STRING}),V({field_type:H.TEXT,label:"Font Weight",description:"Font weight for the logo text",placeholder:"bold"}),W(),ae(),q("design:type",String)],kn.prototype,"fontWeight",void 0);N([U({defaultValue:"logo-first-part",dataType:dt.STRING}),V({field_type:H.TEXT,label:"First Part CSS Class",description:"CSS class name for the first part of the logo text",placeholder:"logo-first-part"}),W(),ae(),q("design:type",String)],kn.prototype,"firstPartClass",void 0);N([U({defaultValue:"logo-second-part",dataType:dt.STRING}),V({field_type:H.TEXT,label:"Second Part CSS Class",description:"CSS class name for the second part of the logo text",placeholder:"logo-second-part"}),W(),ae(),q("design:type",String)],kn.prototype,"secondPartClass",void 0);N([U({dataType:dt.STRING}),V({field_type:H.IMAGE,label:"Logo Image",description:"Optional image to display alongside the logo text (ReactNode or image path)",placeholder:"Image path or React component"}),W(),q("design:type",Object)],kn.prototype,"image",void 0);N([U({defaultValue:"start",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Image Position",description:"Position of the image relative to the logo text",validation:{options:[{label:"None (Hidden)",value:"none"},{label:"Top Left",value:"top-left"},{label:"Top Center",value:"top-center"},{label:"Top Right",value:"top-right"},{label:"Start (Left)",value:"start"},{label:"Center",value:"center"},{label:"End (Right)",value:"end"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),qe(["none","top-left","top-center","top-right","start","center","end","bottom-left","bottom-center","bottom-right"]),q("design:type",String)],kn.prototype,"imagePosition",void 0);kn=N([zt("Logo","1.0.0")],kn);var QH=kn;function fT({name:t="Qwick Apps",variant:e="default",size:r="medium",badge:n="top-right",badgeShape:o="circle",badgeOffsetX:s,badgeOffsetY:u,fontFamily:d="Segoe UI, sans-serif",fontWeight:p="bold",firstPartClass:h="logo-first-part",secondPartClass:m="logo-second-part",image:b,imagePosition:y="start",onClick:v,style:w,className:C,...T}){const{styleProps:M,htmlProps:E}=On(T),R=S.useMemo(()=>s!==void 0||u!==void 0?{x:s,y:u}:void 0,[s,u]),j=S.useRef(null),[k,P]=S.useState({x:155,y:20}),[z,_]=S.useState(180),B=S.useCallback(K=>{if(K.includes("\\n")){const[Z,...ye]=K.split("\\n");return{firstPart:Z.replace(/\\s/g," "),secondPart:ye.join("\\n").replace(/\\s/g," "),isNewLine:!0}}if(K.includes("\\s")){const Z=K.split("\\s");return Z.length>=2?{firstPart:Z[0],secondPart:Z.slice(1).join(" "),isNewLine:!1}:{firstPart:Z[0],secondPart:"",isNewLine:!1}}const re=K.trim().split(/\s+/);return re.length===1?{firstPart:re[0],secondPart:"",isNewLine:!1}:re.length===2?{firstPart:re[0],secondPart:re[1],isNewLine:!1}:{firstPart:re.slice(0,-1).join(" "),secondPart:re[re.length-1],isNewLine:!1}},[]),{firstPart:G,secondPart:D,isNewLine:A}=B(t),Y=t.includes("\\s"),F=`logo-${r}`,$=(K,re)=>{const Z={tiny:{fontSize:16,height:32},small:{fontSize:20,height:40},medium:{fontSize:28,height:50},large:{fontSize:36,height:64},"extra-large":{fontSize:48,height:84}},ye=Z[K]||Z.medium;return re&&(ye.height+=Math.round(ye.fontSize*1.4)),ye},{fontSize:I,height:Q}=$(r,A),ee=S.useCallback(K=>{const re=I/28,Z=8*re,ye=((R==null?void 0:R.x)??0)*re,Ce=((R==null?void 0:R.y)??0)*re;let be,se;switch(n){case"top-left":be=K.x-Z,se=K.y+Z;break;case"top-center":be=K.x+K.width/2,se=K.y+Z;break;case"top-right":be=K.x+K.width+Z,se=K.y+Z;break;case"start":be=K.x-Z,se=K.y+K.height/2;break;case"center":be=K.x+K.width/2,se=K.y+K.height/2;break;case"end":be=K.x+K.width+Z,se=K.y+K.height/2;break;case"bottom-left":be=K.x-Z,se=K.y+K.height-Z;break;case"bottom-center":be=K.x+K.width/2,se=K.y+K.height-Z;break;case"bottom-right":be=K.x+K.width+Z,se=K.y+K.height-Z;break;default:be=K.x+K.width+Z,se=K.y+Z;break}return{x:be+ye,y:se+Ce}},[n,R,I]);S.useEffect(()=>{if(j.current){const K=j.current.getBBox(),re=ee(K),Z=Math.max(180,K.x+K.width+20);P(re),_(Z)}},[t,n,R,ee,I,Q,B,z]);let J="";e==="high-contrast"||e==="monochrome"||e==="on-primary"?J=`logo-${e}`:e!=="default"?J=`logo-${e}`:J="logo-default";const L=`${t} Logo`,oe=()=>{if(n==="none")return null;const K={className:`logo-badge logo-badge-${o}`},{x:re,y:Z}=k,ye=I/28,Ce=5*ye,be=10*ye;switch(o){case"circle":return c.jsx("circle",{cx:re,cy:Z,r:Ce,...K,children:c.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})});case"star":{const se=ye;return c.jsx("polygon",{points:`${re},${Z-5*se} ${re+2*se},${Z} ${re+7*se},${Z} ${re+3*se},${Z+3*se} ${re+5*se},${Z+8*se} ${re},${Z+5*se} ${re-5*se},${Z+8*se} ${re-3*se},${Z+3*se} ${re-7*se},${Z} ${re-2*se},${Z}`,...K,children:c.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})})}case"square":return c.jsx("rect",{x:re-Ce,y:Z-Ce,width:be,height:be,...K,children:c.jsx("animate",{attributeName:"opacity",values:"0.8;1;0.8",dur:"1.5s",repeatCount:"indefinite"})});case"heart":{const se=ye;return c.jsx("path",{d:`M${re},${Z+6*se} C${re},${Z+6*se} ${re-7*se},${Z} ${re-7*se},${Z-4*se} C${re-7*se},${Z-6*se} ${re-5*se},${Z-8*se} ${re-3*se},${Z-8*se} C${re-2*se},${Z-8*se} ${re},${Z-7*se} ${re},${Z-5*se} C${re},${Z-7*se} ${re+2*se},${Z-8*se} ${re+3*se},${Z-8*se} C${re+5*se},${Z-8*se} ${re+7*se},${Z-6*se} ${re+7*se},${Z-4*se} C${re+7*se},${Z} ${re},${Z+6*se} ${re},${Z+6*se} Z`,...K,children:c.jsx("animate",{attributeName:"fill-opacity",values:"0.7;1;0.7",dur:"1.5s",repeatCount:"indefinite"})})}default:return c.jsx("circle",{cx:re,cy:Z,r:Ce,...K,children:c.jsx("animate",{attributeName:"r",values:`${Ce};${Ce+1};${Ce}`,dur:"1.5s",repeatCount:"indefinite"})})}},ue=()=>{if(!b||y==="none")return null;if(typeof b=="string"){const K=I;return c.jsx("img",{src:b,alt:"",style:{width:K,height:K,objectFit:"contain"},className:"logo-image"})}return c.jsx("div",{className:"logo-image-container",style:{display:"flex",alignItems:"center",justifyContent:"center"},children:b})};return(()=>{const K=c.jsxs("svg",{width:z,height:Q,viewBox:`0 0 ${z} ${Q}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`logo-svg dynamic-logo ${F} ${J}`.trim(),style:{height:`${Q}px`,...w},role:"img","aria-label":L,children:[c.jsxs("text",{ref:j,fontFamily:d,fontSize:I,fontWeight:p,children:[c.jsx("tspan",{x:"15",y:A?Q*.4:Q*.7,className:h,children:G}),D&&c.jsx("tspan",{x:A?"15":void 0,dy:A?I*1.2:void 0,className:m,children:A?D:Y?` ${D}`:D})]}),oe()]}),re=ue();if(!re)return K;const Z={display:"flex",alignItems:"center",gap:"8px"};let ye="logo-container";switch(y){case"start":Z.flexDirection="row",ye+=" logo-image-start";break;case"end":Z.flexDirection="row-reverse",ye+=" logo-image-end";break;case"top-center":Z.flexDirection="column",ye+=" logo-image-top";break;case"bottom-center":Z.flexDirection="column-reverse",ye+=" logo-image-bottom";break;default:Z.flexDirection="row",ye+=" logo-image-start";break}return c.jsxs("div",{...E,...M,className:`${ye} ${C||""}`.trim(),style:{...Z,cursor:v?"pointer":"default",...w},onClick:v,children:[re,K]})})()}function Cm(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Qo(e||"",{initialData:n,schema:QH.getSchema(),cache:!0,cacheTTL:3e5,strict:!1,...r});if(!e)return c.jsx(fT,{...n});const{loading:s,error:u,...d}=o;return s?c.jsx("div",{style:{opacity:.5,textAlign:"center",padding:"16px"},children:"Loading logo..."}):u?c.jsxs("div",{style:{color:"red",textAlign:"center",padding:"16px"},children:["Error loading logo: ",u.message]}):c.jsx(fT,{...d})}Object.defineProperty(Cm,Hn,{value:!0,enumerable:!1,configurable:!0});const KH=({title:t,subtitle:e,coverImage:r})=>{const{appName:n}=vb(),o=r||c.jsx(Cm,{name:n||"Qwick Apps",size:"medium",variant:"default"});return c.jsx(YH,{image:o,imageSize:"medium",imageShape:"square",title:t||"Welcome",subtitle:e,variant:"default"})};function I5({header:t,title:e,description:r,coverImage:n,children:o,footer:s,status:u,message:d,maxWidth:p="sm",background:h="--theme-surface",backgroundImage:m,...b}){const{styleProps:y,htmlProps:v}=On(b),w=ii();if(!o)return c.jsx(Fr,{...v,...y,variant:"outlined",sx:{p:3,textAlign:"center",opacity:.6,...y.sx},children:c.jsx(me,{variant:"body2",color:"text.secondary",children:"No form content provided"})});const C=()=>{switch(h){case"gradient":return{background:`linear-gradient(135deg, ${w.palette.primary.main} 0%, ${w.palette.secondary.main} 100%)`};case"image":return m?{backgroundImage:`linear-gradient(${w.palette.action.hover}, ${w.palette.action.hover}), url(${m})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}:{};default:return{backgroundColor:w.palette.background.default}}};return c.jsx(ne,{...v,...y,className:`${y.className||""}`,sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",py:3,...C(),...y.sx},children:c.jsx(Th,{maxWidth:p,children:c.jsxs(xt,{elevation:h==="default"?1:8,sx:{borderRadius:3,overflow:"hidden",backgroundColor:h==="default"?w.palette.background.paper:w.palette.mode==="dark"?"rgba(18, 18, 18, 0.95)":"rgba(255, 255, 255, 0.95)",backdropFilter:h!=="default"?"blur(10px)":"none"},children:[t||e||r?t||c.jsx(KH,{title:e,subtitle:r,coverImage:n}):null,c.jsxs(bt,{sx:{p:{xs:3,sm:4,md:5}},children:[u&&d&&c.jsx(ar,{severity:u,sx:{mb:3},variant:"outlined",children:d}),c.jsx(ne,{sx:{mb:s?3:0},children:o}),s&&c.jsx(ne,{sx:{textAlign:"center"},children:s})]})]})})})}class Kc extends wl{static fromJson(e){return c.jsx(Kc,{...e})}hasNestedComponents(e){return!0}serializeChildren(e){var r;if(Mt.isValidElement(e)&&((r=e.type.prototype)!=null&&r.toJson)){const n=e.type;return n.fromJson?{component:n.tagName,props:e.props}:e}return super.serializeChildren(e)}getComponentSpecificProps(){return{title:this.props.title,description:this.props.description,status:this.props.status,message:this.props.message,maxWidth:this.props.maxWidth,background:this.props.background,backgroundImage:this.props.backgroundImage}}renderView(){const{dataSource:e,bindingOptions:r,...n}=this.props;return c.jsx(I5,{...n})}renderWithDataBinding(){return c.jsx(ZH,{...this.props})}}Kc.tagName="FormBlock";Kc.version="1.0.0";function ZH(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...u}=Qo(e,n,qH.getSchema(),{...r});return o?c.jsxs(Fr,{variant:"outlined",sx:{p:3,textAlign:"center"},children:[c.jsx(me,{variant:"body2",children:"Loading Form..."}),c.jsx(me,{variant:"caption",color:"text.secondary",children:"Loading form content from data source..."})]}):s?(console.error("Error loading form block:",s),c.jsx(Fr,{variant:"outlined",sx:{p:3,textAlign:"center",borderColor:"error.main"},children:c.jsxs(me,{variant:"body2",color:"error",children:["Error loading form: ",s.message]})})):c.jsx(I5,{...u})}Kc[Hn]=!0;var jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function eU(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var B5={},Dd={},bb={},Hd={},xb={};Object.defineProperty(xb,"__esModule",{value:!0});xb.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Sb={};Object.defineProperty(Sb,"__esModule",{value:!0});Sb.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var uv={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var u="";return s>65535&&(s-=65536,u+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),u+=String.fromCharCode(s),u};function n(s){var u;return s>=55296&&s<=57343||s>1114111?65533:(u=r.get(s))!==null&&u!==void 0?u:s}t.replaceCodePoint=n;function o(s){return(0,t.fromCodePoint)(n(s))}t.default=o})(uv);(function(t){var e=jt&&jt.__createBinding||(Object.create?(function(D,A,Y,F){F===void 0&&(F=Y);var $=Object.getOwnPropertyDescriptor(A,Y);(!$||("get"in $?!A.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return A[Y]}}),Object.defineProperty(D,F,$)}):(function(D,A,Y,F){F===void 0&&(F=Y),D[F]=A[Y]})),r=jt&&jt.__setModuleDefault||(Object.create?(function(D,A){Object.defineProperty(D,"default",{enumerable:!0,value:A})}):function(D,A){D.default=A}),n=jt&&jt.__importStar||function(D){if(D&&D.__esModule)return D;var A={};if(D!=null)for(var Y in D)Y!=="default"&&Object.prototype.hasOwnProperty.call(D,Y)&&e(A,D,Y);return r(A,D),A},o=jt&&jt.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=o(xb);t.htmlDecodeTree=s.default;var u=o(Sb);t.xmlDecodeTree=u.default;var d=n(uv);t.decodeCodePoint=d.default;var p=uv;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return p.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return p.fromCodePoint}});var h;(function(D){D[D.NUM=35]="NUM",D[D.SEMI=59]="SEMI",D[D.EQUALS=61]="EQUALS",D[D.ZERO=48]="ZERO",D[D.NINE=57]="NINE",D[D.LOWER_A=97]="LOWER_A",D[D.LOWER_F=102]="LOWER_F",D[D.LOWER_X=120]="LOWER_X",D[D.LOWER_Z=122]="LOWER_Z",D[D.UPPER_A=65]="UPPER_A",D[D.UPPER_F=70]="UPPER_F",D[D.UPPER_Z=90]="UPPER_Z"})(h||(h={}));var m=32,b;(function(D){D[D.VALUE_LENGTH=49152]="VALUE_LENGTH",D[D.BRANCH_LENGTH=16256]="BRANCH_LENGTH",D[D.JUMP_TABLE=127]="JUMP_TABLE"})(b=t.BinTrieFlags||(t.BinTrieFlags={}));function y(D){return D>=h.ZERO&&D<=h.NINE}function v(D){return D>=h.UPPER_A&&D<=h.UPPER_F||D>=h.LOWER_A&&D<=h.LOWER_F}function w(D){return D>=h.UPPER_A&&D<=h.UPPER_Z||D>=h.LOWER_A&&D<=h.LOWER_Z||y(D)}function C(D){return D===h.EQUALS||w(D)}var T;(function(D){D[D.EntityStart=0]="EntityStart",D[D.NumericStart=1]="NumericStart",D[D.NumericDecimal=2]="NumericDecimal",D[D.NumericHex=3]="NumericHex",D[D.NamedEntity=4]="NamedEntity"})(T||(T={}));var M;(function(D){D[D.Legacy=0]="Legacy",D[D.Strict=1]="Strict",D[D.Attribute=2]="Attribute"})(M=t.DecodingMode||(t.DecodingMode={}));var E=(function(){function D(A,Y,F){this.decodeTree=A,this.emitCodePoint=Y,this.errors=F,this.state=T.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=M.Strict}return D.prototype.startEntity=function(A){this.decodeMode=A,this.state=T.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},D.prototype.write=function(A,Y){switch(this.state){case T.EntityStart:return A.charCodeAt(Y)===h.NUM?(this.state=T.NumericStart,this.consumed+=1,this.stateNumericStart(A,Y+1)):(this.state=T.NamedEntity,this.stateNamedEntity(A,Y));case T.NumericStart:return this.stateNumericStart(A,Y);case T.NumericDecimal:return this.stateNumericDecimal(A,Y);case T.NumericHex:return this.stateNumericHex(A,Y);case T.NamedEntity:return this.stateNamedEntity(A,Y)}},D.prototype.stateNumericStart=function(A,Y){return Y>=A.length?-1:(A.charCodeAt(Y)|m)===h.LOWER_X?(this.state=T.NumericHex,this.consumed+=1,this.stateNumericHex(A,Y+1)):(this.state=T.NumericDecimal,this.stateNumericDecimal(A,Y))},D.prototype.addToNumericResult=function(A,Y,F,$){if(Y!==F){var I=F-Y;this.result=this.result*Math.pow($,I)+parseInt(A.substr(Y,I),$),this.consumed+=I}},D.prototype.stateNumericHex=function(A,Y){for(var F=Y;Y<A.length;){var $=A.charCodeAt(Y);if(y($)||v($))Y+=1;else return this.addToNumericResult(A,F,Y,16),this.emitNumericEntity($,3)}return this.addToNumericResult(A,F,Y,16),-1},D.prototype.stateNumericDecimal=function(A,Y){for(var F=Y;Y<A.length;){var $=A.charCodeAt(Y);if(y($))Y+=1;else return this.addToNumericResult(A,F,Y,10),this.emitNumericEntity($,2)}return this.addToNumericResult(A,F,Y,10),-1},D.prototype.emitNumericEntity=function(A,Y){var F;if(this.consumed<=Y)return(F=this.errors)===null||F===void 0||F.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(A===h.SEMI)this.consumed+=1;else if(this.decodeMode===M.Strict)return 0;return this.emitCodePoint((0,d.replaceCodePoint)(this.result),this.consumed),this.errors&&(A!==h.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},D.prototype.stateNamedEntity=function(A,Y){for(var F=this.decodeTree,$=F[this.treeIndex],I=($&b.VALUE_LENGTH)>>14;Y<A.length;Y++,this.excess++){var Q=A.charCodeAt(Y);if(this.treeIndex=j(F,$,this.treeIndex+Math.max(1,I),Q),this.treeIndex<0)return this.result===0||this.decodeMode===M.Attribute&&(I===0||C(Q))?0:this.emitNotTerminatedNamedEntity();if($=F[this.treeIndex],I=($&b.VALUE_LENGTH)>>14,I!==0){if(Q===h.SEMI)return this.emitNamedEntityData(this.treeIndex,I,this.consumed+this.excess);this.decodeMode!==M.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},D.prototype.emitNotTerminatedNamedEntity=function(){var A,Y=this,F=Y.result,$=Y.decodeTree,I=($[F]&b.VALUE_LENGTH)>>14;return this.emitNamedEntityData(F,I,this.consumed),(A=this.errors)===null||A===void 0||A.missingSemicolonAfterCharacterReference(),this.consumed},D.prototype.emitNamedEntityData=function(A,Y,F){var $=this.decodeTree;return this.emitCodePoint(Y===1?$[A]&~b.VALUE_LENGTH:$[A+1],F),Y===3&&this.emitCodePoint($[A+2],F),F},D.prototype.end=function(){var A;switch(this.state){case T.NamedEntity:return this.result!==0&&(this.decodeMode!==M.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case T.NumericDecimal:return this.emitNumericEntity(0,2);case T.NumericHex:return this.emitNumericEntity(0,3);case T.NumericStart:return(A=this.errors)===null||A===void 0||A.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case T.EntityStart:return 0}},D})();t.EntityDecoder=E;function R(D){var A="",Y=new E(D,function(F){return A+=(0,d.fromCodePoint)(F)});return function($,I){for(var Q=0,ee=0;(ee=$.indexOf("&",ee))>=0;){A+=$.slice(Q,ee),Y.startEntity(I);var J=Y.write($,ee+1);if(J<0){Q=ee+Y.end();break}Q=ee+J,ee=J===0?Q+1:Q}var L=A+$.slice(Q);return A="",L}}function j(D,A,Y,F){var $=(A&b.BRANCH_LENGTH)>>7,I=A&b.JUMP_TABLE;if($===0)return I!==0&&F===I?Y:-1;if(I){var Q=F-I;return Q<0||Q>=$?-1:D[Y+Q]-1}for(var ee=Y,J=ee+$-1;ee<=J;){var L=ee+J>>>1,oe=D[L];if(oe<F)ee=L+1;else if(oe>F)J=L-1;else return D[L+$]}return-1}t.determineBranch=j;var k=R(s.default),P=R(u.default);function z(D,A){return A===void 0&&(A=M.Legacy),k(D,A)}t.decodeHTML=z;function _(D){return k(D,M.Attribute)}t.decodeHTMLAttribute=_;function B(D){return k(D,M.Strict)}t.decodeHTMLStrict=B;function G(D){return P(D,M.Strict)}t.decodeXML=G})(Hd);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Hd,r;(function(y){y[y.Tab=9]="Tab",y[y.NewLine=10]="NewLine",y[y.FormFeed=12]="FormFeed",y[y.CarriageReturn=13]="CarriageReturn",y[y.Space=32]="Space",y[y.ExclamationMark=33]="ExclamationMark",y[y.Number=35]="Number",y[y.Amp=38]="Amp",y[y.SingleQuote=39]="SingleQuote",y[y.DoubleQuote=34]="DoubleQuote",y[y.Dash=45]="Dash",y[y.Slash=47]="Slash",y[y.Zero=48]="Zero",y[y.Nine=57]="Nine",y[y.Semi=59]="Semi",y[y.Lt=60]="Lt",y[y.Eq=61]="Eq",y[y.Gt=62]="Gt",y[y.Questionmark=63]="Questionmark",y[y.UpperA=65]="UpperA",y[y.LowerA=97]="LowerA",y[y.UpperF=70]="UpperF",y[y.LowerF=102]="LowerF",y[y.UpperZ=90]="UpperZ",y[y.LowerZ=122]="LowerZ",y[y.LowerX=120]="LowerX",y[y.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(y){y[y.Text=1]="Text",y[y.BeforeTagName=2]="BeforeTagName",y[y.InTagName=3]="InTagName",y[y.InSelfClosingTag=4]="InSelfClosingTag",y[y.BeforeClosingTagName=5]="BeforeClosingTagName",y[y.InClosingTagName=6]="InClosingTagName",y[y.AfterClosingTagName=7]="AfterClosingTagName",y[y.BeforeAttributeName=8]="BeforeAttributeName",y[y.InAttributeName=9]="InAttributeName",y[y.AfterAttributeName=10]="AfterAttributeName",y[y.BeforeAttributeValue=11]="BeforeAttributeValue",y[y.InAttributeValueDq=12]="InAttributeValueDq",y[y.InAttributeValueSq=13]="InAttributeValueSq",y[y.InAttributeValueNq=14]="InAttributeValueNq",y[y.BeforeDeclaration=15]="BeforeDeclaration",y[y.InDeclaration=16]="InDeclaration",y[y.InProcessingInstruction=17]="InProcessingInstruction",y[y.BeforeComment=18]="BeforeComment",y[y.CDATASequence=19]="CDATASequence",y[y.InSpecialComment=20]="InSpecialComment",y[y.InCommentLike=21]="InCommentLike",y[y.BeforeSpecialS=22]="BeforeSpecialS",y[y.SpecialStartSequence=23]="SpecialStartSequence",y[y.InSpecialTag=24]="InSpecialTag",y[y.BeforeEntity=25]="BeforeEntity",y[y.BeforeNumericEntity=26]="BeforeNumericEntity",y[y.InNamedEntity=27]="InNamedEntity",y[y.InNumericEntity=28]="InNumericEntity",y[y.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(y){return y===r.Space||y===r.NewLine||y===r.Tab||y===r.FormFeed||y===r.CarriageReturn}function s(y){return y===r.Slash||y===r.Gt||o(y)}function u(y){return y>=r.Zero&&y<=r.Nine}function d(y){return y>=r.LowerA&&y<=r.LowerZ||y>=r.UpperA&&y<=r.UpperZ}function p(y){return y>=r.UpperA&&y<=r.UpperF||y>=r.LowerA&&y<=r.LowerF}var h;(function(y){y[y.NoValue=0]="NoValue",y[y.Unquoted=1]="Unquoted",y[y.Single=2]="Single",y[y.Double=3]="Double"})(h=t.QuoteType||(t.QuoteType={}));var m={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},b=(function(){function y(v,w){var C=v.xmlMode,T=C===void 0?!1:C,M=v.decodeEntities,E=M===void 0?!0:M;this.cbs=w,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=T,this.decodeEntities=E,this.entityTrie=T?e.xmlDecodeTree:e.htmlDecodeTree}return y.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},y.prototype.write=function(v){this.offset+=this.buffer.length,this.buffer=v,this.parse()},y.prototype.end=function(){this.running&&this.finish()},y.prototype.pause=function(){this.running=!1},y.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},y.prototype.getIndex=function(){return this.index},y.prototype.getSectionStart=function(){return this.sectionStart},y.prototype.stateText=function(v){v===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&v===r.Amp&&(this.state=n.BeforeEntity)},y.prototype.stateSpecialStartSequence=function(v){var w=this.sequenceIndex===this.currentSequence.length,C=w?s(v):(v|32)===this.currentSequence[this.sequenceIndex];if(!C)this.isSpecial=!1;else if(!w){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(v)},y.prototype.stateInSpecialTag=function(v){if(this.sequenceIndex===this.currentSequence.length){if(v===r.Gt||o(v)){var w=this.index-this.currentSequence.length;if(this.sectionStart<w){var C=this.index;this.index=w,this.cbs.ontext(this.sectionStart,w),this.index=C}this.isSpecial=!1,this.sectionStart=w+2,this.stateInClosingTagName(v);return}this.sequenceIndex=0}(v|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===m.TitleEnd?this.decodeEntities&&v===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(v===r.Lt)},y.prototype.stateCDATASequence=function(v){v===m.Cdata[this.sequenceIndex]?++this.sequenceIndex===m.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=m.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(v))},y.prototype.fastForwardTo=function(v){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===v)return!0;return this.index=this.buffer.length+this.offset-1,!1},y.prototype.stateInCommentLike=function(v){v===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===m.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):v!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},y.prototype.isTagStartChar=function(v){return this.xmlMode?!s(v):d(v)},y.prototype.startSpecial=function(v,w){this.isSpecial=!0,this.currentSequence=v,this.sequenceIndex=w,this.state=n.SpecialStartSequence},y.prototype.stateBeforeTagName=function(v){if(v===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(v===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(v)){var w=v|32;this.sectionStart=this.index,!this.xmlMode&&w===m.TitleEnd[2]?this.startSpecial(m.TitleEnd,3):this.state=!this.xmlMode&&w===m.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else v===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(v))},y.prototype.stateInTagName=function(v){s(v)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(v))},y.prototype.stateBeforeClosingTagName=function(v){o(v)||(v===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(v)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},y.prototype.stateInClosingTagName=function(v){(v===r.Gt||o(v))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(v))},y.prototype.stateAfterClosingTagName=function(v){(v===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},y.prototype.stateBeforeAttributeName=function(v){v===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):v===r.Slash?this.state=n.InSelfClosingTag:o(v)||(this.state=n.InAttributeName,this.sectionStart=this.index)},y.prototype.stateInSelfClosingTag=function(v){v===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(v)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(v))},y.prototype.stateInAttributeName=function(v){(v===r.Eq||s(v))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(v))},y.prototype.stateAfterAttributeName=function(v){v===r.Eq?this.state=n.BeforeAttributeValue:v===r.Slash||v===r.Gt?(this.cbs.onattribend(h.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(v)):o(v)||(this.cbs.onattribend(h.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},y.prototype.stateBeforeAttributeValue=function(v){v===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):v===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(v)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(v))},y.prototype.handleInAttributeValue=function(v,w){v===w||!this.decodeEntities&&this.fastForwardTo(w)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(w===r.DoubleQuote?h.Double:h.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&v===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},y.prototype.stateInAttributeValueDoubleQuotes=function(v){this.handleInAttributeValue(v,r.DoubleQuote)},y.prototype.stateInAttributeValueSingleQuotes=function(v){this.handleInAttributeValue(v,r.SingleQuote)},y.prototype.stateInAttributeValueNoQuotes=function(v){o(v)||v===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(h.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(v)):this.decodeEntities&&v===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},y.prototype.stateBeforeDeclaration=function(v){v===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=v===r.Dash?n.BeforeComment:n.InDeclaration},y.prototype.stateInDeclaration=function(v){(v===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},y.prototype.stateInProcessingInstruction=function(v){(v===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},y.prototype.stateBeforeComment=function(v){v===r.Dash?(this.state=n.InCommentLike,this.currentSequence=m.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},y.prototype.stateInSpecialComment=function(v){(v===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},y.prototype.stateBeforeSpecialS=function(v){var w=v|32;w===m.ScriptEnd[3]?this.startSpecial(m.ScriptEnd,4):w===m.StyleEnd[3]?this.startSpecial(m.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(v))},y.prototype.stateBeforeEntity=function(v){this.entityExcess=1,this.entityResult=0,v===r.Number?this.state=n.BeforeNumericEntity:v===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(v))},y.prototype.stateInNamedEntity=function(v){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,v),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var w=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(w){var C=(w>>14)-1;if(!this.allowLegacyEntity()&&v!==r.Semi)this.trieIndex+=C;else{var T=this.index-this.entityExcess+1;T>this.sectionStart&&this.emitPartial(this.sectionStart,T),this.entityResult=this.trieIndex,this.trieIndex+=C,this.entityExcess=0,this.sectionStart=this.index+1,C===0&&this.emitNamedEntity()}}},y.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var v=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(v){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},y.prototype.stateBeforeNumericEntity=function(v){(v|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(v))},y.prototype.emitNumericEntity=function(v){var w=this.index-this.entityExcess-1,C=w+2+ +(this.state===n.InHexEntity);C!==this.index&&(w>this.sectionStart&&this.emitPartial(this.sectionStart,w),this.sectionStart=this.index+Number(v),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},y.prototype.stateInNumericEntity=function(v){v===r.Semi?this.emitNumericEntity(!0):u(v)?(this.entityResult=this.entityResult*10+(v-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},y.prototype.stateInHexEntity=function(v){v===r.Semi?this.emitNumericEntity(!0):u(v)?(this.entityResult=this.entityResult*16+(v-r.Zero),this.entityExcess++):p(v)?(this.entityResult=this.entityResult*16+((v|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},y.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},y.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},y.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},y.prototype.parse=function(){for(;this.shouldContinue();){var v=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(v);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(v);break}case n.InSpecialTag:{this.stateInSpecialTag(v);break}case n.CDATASequence:{this.stateCDATASequence(v);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(v);break}case n.InAttributeName:{this.stateInAttributeName(v);break}case n.InCommentLike:{this.stateInCommentLike(v);break}case n.InSpecialComment:{this.stateInSpecialComment(v);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(v);break}case n.InTagName:{this.stateInTagName(v);break}case n.InClosingTagName:{this.stateInClosingTagName(v);break}case n.BeforeTagName:{this.stateBeforeTagName(v);break}case n.AfterAttributeName:{this.stateAfterAttributeName(v);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(v);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(v);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(v);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(v);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(v);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(v);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(v);break}case n.InDeclaration:{this.stateInDeclaration(v);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(v);break}case n.BeforeComment:{this.stateBeforeComment(v);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(v);break}case n.InNamedEntity:{this.stateInNamedEntity(v);break}case n.BeforeEntity:{this.stateBeforeEntity(v);break}case n.InHexEntity:{this.stateInHexEntity(v);break}case n.InNumericEntity:{this.stateInNumericEntity(v);break}default:this.stateBeforeNumericEntity(v)}this.index++}this.cleanup()},y.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},y.prototype.handleTrailingData=function(){var v=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===m.CdataEnd?this.cbs.oncdata(this.sectionStart,v,0):this.cbs.oncomment(this.sectionStart,v,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,v)},y.prototype.emitPartial=function(v,w){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(v,w):this.cbs.ontext(v,w)},y.prototype.emitCodePoint=function(v){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(v):this.cbs.ontextentity(v)},y})();t.default=b})(bb);var tU=jt&&jt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rU=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nU=jt&&jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tU(e,t,r);return rU(e,t),e};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.Parser=void 0;var Vf=nU(bb),hT=Hd,dc=new Set(["input","option","optgroup","select","button","datalist","textarea"]),gr=new Set(["p"]),mT=new Set(["thead","tbody"]),gT=new Set(["dd","dt"]),yT=new Set(["rt","rp"]),iU=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",gr],["h1",gr],["h2",gr],["h3",gr],["h4",gr],["h5",gr],["h6",gr],["select",dc],["input",dc],["output",dc],["button",dc],["datalist",dc],["textarea",dc],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",gT],["dt",gT],["address",gr],["article",gr],["aside",gr],["blockquote",gr],["details",gr],["div",gr],["dl",gr],["fieldset",gr],["figcaption",gr],["figure",gr],["footer",gr],["form",gr],["header",gr],["hr",gr],["main",gr],["nav",gr],["ol",gr],["pre",gr],["section",gr],["table",gr],["ul",gr],["rt",yT],["rp",yT],["tbody",mT],["tfoot",mT]]),oU=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),vT=new Set(["math","svg"]),bT=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),aU=/\s|\//,sU=(function(){function t(e,r){r===void 0&&(r={});var n,o,s,u,d;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((s=r.Tokenizer)!==null&&s!==void 0?s:Vf.default)(this.options,this),(d=(u=this.cbs).onparserinit)===null||d===void 0||d.call(u,this)}return t.prototype.ontext=function(e,r){var n,o,s=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,s),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,hT.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&oU.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,s;this.openTagStart=this.startIndex,this.tagname=e;var u=!this.options.xmlMode&&iU.get(e);if(u)for(;this.stack.length>0&&u.has(this.stack[this.stack.length-1]);){var d=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,d,!0)}this.isVoidElement(e)||(this.stack.push(e),vT.has(e)?this.foreignContext.push(!0):bT.has(e)&&this.foreignContext.push(!1)),(s=(o=this.cbs).onopentagname)===null||s===void 0||s.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,s,u,d,p;this.endIndex=r;var h=this.getSlice(e,r);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(vT.has(h)||bT.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(u=(s=this.cbs).onopentag)===null||u===void 0||u.call(s,"br",{},!0),(p=(d=this.cbs).onclosetag)===null||p===void 0||p.call(d,"br",!1));else{var m=this.stack.lastIndexOf(h);if(m!==-1)if(this.cbs.onclosetag)for(var b=this.stack.length-m;b--;)this.cbs.onclosetag(this.stack.pop(),b!==0);else this.stack.length=m;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,hT.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===Vf.QuoteType.Double?'"':e===Vf.QuoteType.Single?"'":e===Vf.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(aU),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,s,u,d;this.endIndex=r,(s=(o=this.cbs).oncomment)===null||s===void 0||s.call(o,this.getSlice(e,r-n)),(d=(u=this.cbs).oncommentend)===null||d===void 0||d.call(u),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,s,u,d,p,h,m,b,y,v;this.endIndex=r;var w=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(o=this.cbs).oncdatastart)===null||s===void 0||s.call(o),(d=(u=this.cbs).ontext)===null||d===void 0||d.call(u,w),(h=(p=this.cbs).oncdataend)===null||h===void 0||h.call(p)):((b=(m=this.cbs).oncomment)===null||b===void 0||b.call(m,"[CDATA[".concat(w,"]]")),(v=(y=this.cbs).oncommentend)===null||v===void 0||v.call(y)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t})();Dd.Parser=sU;var Ta={},Zc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Zc);var Wt={},Ss=jt&&jt.__extends||(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),xd=jt&&jt.__assign||function(){return xd=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},xd.apply(this,arguments)};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.cloneNode=Wt.hasChildren=Wt.isDocument=Wt.isDirective=Wt.isComment=Wt.isText=Wt.isCDATA=Wt.isTag=Wt.Element=Wt.Document=Wt.CDATA=Wt.NodeWithChildren=Wt.ProcessingInstruction=Wt.Comment=Wt.Text=Wt.DataNode=Wt.Node=void 0;var Zn=Zc,wb=(function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Cb(this,e)},t})();Wt.Node=wb;var Tm=(function(t){Ss(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e})(wb);Wt.DataNode=Tm;var z5=(function(t){Ss(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e})(Tm);Wt.Text=z5;var $5=(function(t){Ss(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e})(Tm);Wt.Comment=$5;var D5=(function(t){Ss(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Zn.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e})(Tm);Wt.ProcessingInstruction=D5;var Em=(function(t){Ss(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e})(wb);Wt.NodeWithChildren=Em;var H5=(function(t){Ss(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e})(Em);Wt.CDATA=H5;var U5=(function(t){Ss(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Zn.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e})(Em);Wt.Document=U5;var V5=(function(t){Ss(e,t);function e(r,n,o,s){o===void 0&&(o=[]),s===void 0&&(s=r==="script"?Zn.ElementType.Script:r==="style"?Zn.ElementType.Style:Zn.ElementType.Tag);var u=t.call(this,o)||this;return u.name=r,u.attribs=n,u.type=s,u}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,s;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e})(Em);Wt.Element=V5;function q5(t){return(0,Zn.isTag)(t)}Wt.isTag=q5;function F5(t){return t.type===Zn.ElementType.CDATA}Wt.isCDATA=F5;function W5(t){return t.type===Zn.ElementType.Text}Wt.isText=W5;function G5(t){return t.type===Zn.ElementType.Comment}Wt.isComment=G5;function X5(t){return t.type===Zn.ElementType.Directive}Wt.isDirective=X5;function Y5(t){return t.type===Zn.ElementType.Root}Wt.isDocument=Y5;function lU(t){return Object.prototype.hasOwnProperty.call(t,"children")}Wt.hasChildren=lU;function Cb(t,e){e===void 0&&(e=!1);var r;if(W5(t))r=new z5(t.data);else if(G5(t))r=new $5(t.data);else if(q5(t)){var n=e?p0(t.children):[],o=new V5(t.name,xd({},t.attribs),n);n.forEach(function(p){return p.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=xd({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=xd({},t["x-attribsPrefix"])),r=o}else if(F5(t)){var n=e?p0(t.children):[],s=new H5(n);n.forEach(function(h){return h.parent=s}),r=s}else if(Y5(t)){var n=e?p0(t.children):[],u=new U5(n);n.forEach(function(h){return h.parent=u}),t["x-mode"]&&(u["x-mode"]=t["x-mode"]),r=u}else if(X5(t)){var d=new D5(t.name,t.data);t["x-name"]!=null&&(d["x-name"]=t["x-name"],d["x-publicId"]=t["x-publicId"],d["x-systemId"]=t["x-systemId"]),r=d}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Wt.cloneNode=Cb;function p0(t){for(var e=t.map(function(n){return Cb(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=jt&&jt.__createBinding||(Object.create?(function(d,p,h,m){m===void 0&&(m=h);var b=Object.getOwnPropertyDescriptor(p,h);(!b||("get"in b?!p.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return p[h]}}),Object.defineProperty(d,m,b)}):(function(d,p,h,m){m===void 0&&(m=h),d[m]=p[h]})),r=jt&&jt.__exportStar||function(d,p){for(var h in d)h!=="default"&&!Object.prototype.hasOwnProperty.call(p,h)&&e(p,d,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Zc,o=Wt;r(Wt,t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=(function(){function d(p,h,m){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof h=="function"&&(m=h,h=s),typeof p=="object"&&(h=p,p=void 0),this.callback=p??null,this.options=h??s,this.elementCB=m??null}return d.prototype.onparserinit=function(p){this.parser=p},d.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},d.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},d.prototype.onerror=function(p){this.handleCallback(p)},d.prototype.onclosetag=function(){this.lastNode=null;var p=this.tagStack.pop();this.options.withEndIndices&&(p.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(p)},d.prototype.onopentag=function(p,h){var m=this.options.xmlMode?n.ElementType.Tag:void 0,b=new o.Element(p,h,void 0,m);this.addNode(b),this.tagStack.push(b)},d.prototype.ontext=function(p){var h=this.lastNode;if(h&&h.type===n.ElementType.Text)h.data+=p,this.options.withEndIndices&&(h.endIndex=this.parser.endIndex);else{var m=new o.Text(p);this.addNode(m),this.lastNode=m}},d.prototype.oncomment=function(p){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=p;return}var h=new o.Comment(p);this.addNode(h),this.lastNode=h},d.prototype.oncommentend=function(){this.lastNode=null},d.prototype.oncdatastart=function(){var p=new o.Text(""),h=new o.CDATA([p]);this.addNode(h),p.parent=h,this.lastNode=p},d.prototype.oncdataend=function(){this.lastNode=null},d.prototype.onprocessinginstruction=function(p,h){var m=new o.ProcessingInstruction(p,h);this.addNode(m)},d.prototype.handleCallback=function(p){if(typeof this.callback=="function")this.callback(p,this.dom);else if(p)throw p},d.prototype.addNode=function(p){var h=this.tagStack[this.tagStack.length-1],m=h.children[h.children.length-1];this.options.withStartIndices&&(p.startIndex=this.parser.startIndex),this.options.withEndIndices&&(p.endIndex=this.parser.endIndex),h.children.push(p),m&&(p.prev=m,m.next=p),p.parent=h,this.lastNode=null},d})();t.DomHandler=u,t.default=u})(Ta);var ch={},ws={},up={},Q5={},hl={},Tb={};Object.defineProperty(Tb,"__esModule",{value:!0});function qf(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Tb.default=new Map(qf([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(qf([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(qf([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(qf([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Rh={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,s){return o.codePointAt(s)}:(function(o,s){return(o.charCodeAt(s)&64512)===55296?(o.charCodeAt(s)-55296)*1024+o.charCodeAt(s+1)-56320+65536:o.charCodeAt(s)});function r(o){for(var s="",u=0,d;(d=t.xmlReplacer.exec(o))!==null;){var p=d.index,h=o.charCodeAt(p),m=e.get(h);m!==void 0?(s+=o.substring(u,p)+m,u=p+1):(s+="".concat(o.substring(u,p),"&#x").concat((0,t.getCodePoint)(o,p).toString(16),";"),u=t.xmlReplacer.lastIndex+=+((h&64512)===55296))}return s+o.substr(u)}t.encodeXML=r,t.escape=r;function n(o,s){return function(d){for(var p,h=0,m="";p=o.exec(d);)h!==p.index&&(m+=d.substring(h,p.index)),m+=s.get(p[0].charCodeAt(0)),h=p.index+1;return m+d.substring(h)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Rh);var cU=jt&&jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hl,"__esModule",{value:!0});hl.encodeNonAsciiHTML=hl.encodeHTML=void 0;var uU=cU(Tb),K5=Rh,dU=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function pU(t){return Z5(dU,t)}hl.encodeHTML=pU;function fU(t){return Z5(K5.xmlReplacer,t)}hl.encodeNonAsciiHTML=fU;function Z5(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var s=o.index;r+=e.substring(n,s);var u=e.charCodeAt(s),d=uU.default.get(u);if(typeof d=="object"){if(s+1<e.length){var p=e.charCodeAt(s+1),h=typeof d.n=="number"?d.n===p?d.o:void 0:d.n.get(p);if(h!==void 0){r+=h,n=t.lastIndex+=1;continue}}d=d.v}if(d!==void 0)r+=d,n=s+1;else{var m=(0,K5.getCodePoint)(e,s);r+="&#x".concat(m.toString(16),";"),n=t.lastIndex+=+(m!==u)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Hd,r=hl,n=Rh,o;(function(y){y[y.XML=0]="XML",y[y.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var s;(function(y){y[y.UTF8=0]="UTF8",y[y.ASCII=1]="ASCII",y[y.Extensive=2]="Extensive",y[y.Attribute=3]="Attribute",y[y.Text=4]="Text"})(s=t.EncodingMode||(t.EncodingMode={}));function u(y,v){v===void 0&&(v=o.XML);var w=typeof v=="number"?v:v.level;if(w===o.HTML){var C=typeof v=="object"?v.mode:void 0;return(0,e.decodeHTML)(y,C)}return(0,e.decodeXML)(y)}t.decode=u;function d(y,v){var w;v===void 0&&(v=o.XML);var C=typeof v=="number"?{level:v}:v;return(w=C.mode)!==null&&w!==void 0||(C.mode=e.DecodingMode.Strict),u(y,C)}t.decodeStrict=d;function p(y,v){v===void 0&&(v=o.XML);var w=typeof v=="number"?{level:v}:v;return w.mode===s.UTF8?(0,n.escapeUTF8)(y):w.mode===s.Attribute?(0,n.escapeAttribute)(y):w.mode===s.Text?(0,n.escapeText)(y):w.level===o.HTML?w.mode===s.ASCII?(0,r.encodeNonAsciiHTML)(y):(0,r.encodeHTML)(y):(0,n.encodeXML)(y)}t.encode=p;var h=Rh;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return h.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return h.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return h.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return h.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return h.escapeText}});var m=hl;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return m.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return m.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return m.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return m.encodeHTML}});var b=Hd;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return b.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return b.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return b.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return b.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return b.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return b.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return b.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return b.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return b.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return b.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return b.decodeXML}})})(Q5);var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});Lc.attributeNames=Lc.elementNames=void 0;Lc.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Lc.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var gc=jt&&jt.__assign||function(){return gc=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gc.apply(this,arguments)},hU=jt&&jt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),mU=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gU=jt&&jt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&hU(e,t,r);return mU(e,t),e};Object.defineProperty(up,"__esModule",{value:!0});up.render=void 0;var ga=gU(Zc),kh=Q5,J5=Lc,yU=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function vU(t){return t.replace(/"/g,""")}function bU(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?vU:e.xmlMode||e.encodeEntities!=="utf8"?kh.encodeXML:kh.escapeAttribute;return Object.keys(t).map(function(o){var s,u,d=(s=t[o])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(o=(u=J5.attributeNames.get(o))!==null&&u!==void 0?u:o),!e.emptyAttrs&&!e.xmlMode&&d===""?o:"".concat(o,'="').concat(n(d),'"')}).join(" ")}}var xT=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function jm(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=xU(r[o],e);return n}up.render=jm;up.default=jm;function xU(t,e){switch(t.type){case ga.Root:return jm(t.children,e);case ga.Doctype:case ga.Directive:return TU(t);case ga.Comment:return AU(t);case ga.CDATA:return jU(t);case ga.Script:case ga.Style:case ga.Tag:return CU(t,e);case ga.Text:return EU(t,e)}}var SU=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),wU=new Set(["svg","math"]);function CU(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=J5.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&SU.has(t.parent.name)&&(e=gc(gc({},e),{xmlMode:!1}))),!e.xmlMode&&wU.has(t.name)&&(e=gc(gc({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=bU(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&xT.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=jm(t.children,e)),(e.xmlMode||!xT.has(t.name))&&(n+="</".concat(t.name,">"))),n}function TU(t){return"<".concat(t.data,">")}function EU(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&yU.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,kh.encodeXML)(n):(0,kh.escapeText)(n)),n}function jU(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function AU(t){return"<!--".concat(t.data,"-->")}var MU=jt&&jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ws,"__esModule",{value:!0});ws.getOuterHTML=e3;ws.getInnerHTML=OU;ws.getText=uh;ws.textContent=dv;ws.innerText=pv;var zo=Ta,RU=MU(up),kU=Zc;function e3(t,e){return(0,RU.default)(t,e)}function OU(t,e){return(0,zo.hasChildren)(t)?t.children.map(function(r){return e3(r,e)}).join(""):""}function uh(t){return Array.isArray(t)?t.map(uh).join(""):(0,zo.isTag)(t)?t.name==="br"?`
|
|
348
|
-
`:uh(t.children):(0,zo.isCDATA)(t)?uh(t.children):(0,zo.isText)(t)?t.data:""}function dv(t){return Array.isArray(t)?t.map(dv).join(""):(0,zo.hasChildren)(t)&&!(0,zo.isComment)(t)?dv(t.children):(0,zo.isText)(t)?t.data:""}function pv(t){return Array.isArray(t)?t.map(pv).join(""):(0,zo.hasChildren)(t)&&(t.type===kU.ElementType.Tag||(0,zo.isCDATA)(t))?pv(t.children):(0,zo.isText)(t)?t.data:""}var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.getChildren=t3;Ko.getParent=r3;Ko.getSiblings=PU;Ko.getAttributeValue=_U;Ko.hasAttrib=LU;Ko.getName=NU;Ko.nextElementSibling=IU;Ko.prevElementSibling=BU;var Eb=Ta;function t3(t){return(0,Eb.hasChildren)(t)?t.children:[]}function r3(t){return t.parent||null}function PU(t){var e,r,n=r3(t);if(n!=null)return t3(n);for(var o=[t],s=t.prev,u=t.next;s!=null;)o.unshift(s),e=s,s=e.prev;for(;u!=null;)o.push(u),r=u,u=r.next;return o}function _U(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function LU(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function NU(t){return t.name}function IU(t){for(var e,r=t.next;r!==null&&!(0,Eb.isTag)(r);)e=r,r=e.next;return r}function BU(t){for(var e,r=t.prev;r!==null&&!(0,Eb.isTag)(r);)e=r,r=e.prev;return r}var Cs={};Object.defineProperty(Cs,"__esModule",{value:!0});Cs.removeElement=dp;Cs.replaceElement=zU;Cs.appendChild=$U;Cs.append=DU;Cs.prependChild=HU;Cs.prepend=UU;function dp(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function zU(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var s=o.children;s[s.lastIndexOf(t)]=e,t.parent=null}}function $U(t,e){if(dp(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function DU(t,e){dp(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function HU(t,e){if(dp(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function UU(t,e){dp(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.filter=VU;Ra.find=n3;Ra.findOneChild=qU;Ra.findOne=i3;Ra.existsOne=o3;Ra.findAll=FU;var ml=Ta;function VU(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),n3(t,Array.isArray(e)?e:[e],r,n)}function n3(t,e,r,n){for(var o=[],s=[Array.isArray(e)?e:[e]],u=[0];;){if(u[0]>=s[0].length){if(u.length===1)return o;s.shift(),u.shift();continue}var d=s[0][u[0]++];if(t(d)&&(o.push(d),--n<=0))return o;r&&(0,ml.hasChildren)(d)&&d.children.length>0&&(u.unshift(0),s.unshift(d.children))}}function qU(t,e){return e.find(t)}function i3(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var s=n[o];if((0,ml.isTag)(s)&&t(s))return s;if(r&&(0,ml.hasChildren)(s)&&s.children.length>0){var u=i3(t,s.children,!0);if(u)return u}}return null}function o3(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,ml.isTag)(r)&&t(r)||(0,ml.hasChildren)(r)&&o3(t,r.children)})}function FU(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var s=n[0][o[0]++];(0,ml.isTag)(s)&&t(s)&&r.push(s),(0,ml.hasChildren)(s)&&s.children.length>0&&(o.unshift(0),n.unshift(s.children))}}var ka={};Object.defineProperty(ka,"__esModule",{value:!0});ka.testElement=GU;ka.getElements=XU;ka.getElementById=YU;ka.getElementsByTagName=QU;ka.getElementsByClassName=KU;ka.getElementsByTagType=ZU;var tl=Ta,pp=Ra,Oh={tag_name:function(t){return typeof t=="function"?function(e){return(0,tl.isTag)(e)&&t(e.name)}:t==="*"?tl.isTag:function(e){return(0,tl.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,tl.isText)(e)&&t(e.data)}:function(e){return(0,tl.isText)(e)&&e.data===t}}};function jb(t,e){return typeof e=="function"?function(r){return(0,tl.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,tl.isTag)(r)&&r.attribs[t]===e}}function WU(t,e){return function(r){return t(r)||e(r)}}function a3(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Oh,r)?Oh[r](n):jb(r,n)});return e.length===0?null:e.reduce(WU)}function GU(t,e){var r=a3(t);return r?r(e):!0}function XU(t,e,r,n){n===void 0&&(n=1/0);var o=a3(t);return o?(0,pp.filter)(o,e,r,n):[]}function YU(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,pp.findOne)(jb("id",t),e,r)}function QU(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,pp.filter)(Oh.tag_name(t),e,r,n)}function KU(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,pp.filter)(jb("class",t),e,r,n)}function ZU(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,pp.filter)(Oh.tag_type(t),e,r,n)}var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.DocumentPosition=void 0;Cl.removeSubsets=JU;Cl.compareDocumentPosition=s3;Cl.uniqueSort=eV;var ST=Ta;function JU(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var so;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(so||(Cl.DocumentPosition=so={}));function s3(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,ST.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,ST.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var s=Math.min(r.length,n.length),u=0;u<s&&r[u]===n[u];)u++;if(u===0)return so.DISCONNECTED;var d=r[u-1],p=d.children,h=r[u],m=n[u];return p.indexOf(h)>p.indexOf(m)?d===e?so.FOLLOWING|so.CONTAINED_BY:so.FOLLOWING:d===t?so.PRECEDING|so.CONTAINS:so.PRECEDING}function eV(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=s3(e,r);return n&so.PRECEDING?-1:n&so.FOLLOWING?1:0}),t}var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.getFeed=rV;var tV=ws,fp=ka;function rV(t){var e=Ph(sV,t);return e?e.name==="feed"?nV(e):iV(e):null}function nV(t){var e,r=t.children,n={type:"atom",items:(0,fp.getElementsByTagName)("entry",r).map(function(u){var d,p=u.children,h={media:l3(p)};Yn(h,"id","id",p),Yn(h,"title","title",p);var m=(d=Ph("link",p))===null||d===void 0?void 0:d.attribs.href;m&&(h.link=m);var b=ns("summary",p)||ns("content",p);b&&(h.description=b);var y=ns("updated",p);return y&&(h.pubDate=new Date(y)),h})};Yn(n,"id","id",r),Yn(n,"title","title",r);var o=(e=Ph("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Yn(n,"description","subtitle",r);var s=ns("updated",r);return s&&(n.updated=new Date(s)),Yn(n,"author","email",r,!0),n}function iV(t){var e,r,n=(r=(e=Ph("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,fp.getElementsByTagName)("item",t.children).map(function(u){var d=u.children,p={media:l3(d)};Yn(p,"id","guid",d),Yn(p,"title","title",d),Yn(p,"link","link",d),Yn(p,"description","description",d);var h=ns("pubDate",d)||ns("dc:date",d);return h&&(p.pubDate=new Date(h)),p})};Yn(o,"title","title",n),Yn(o,"link","link",n),Yn(o,"description","description",n);var s=ns("lastBuildDate",n);return s&&(o.updated=new Date(s)),Yn(o,"author","managingEditor",n,!0),o}var oV=["url","type","lang"],aV=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function l3(t){return(0,fp.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,s=oV;o<s.length;o++){var u=s[o];r[u]&&(n[u]=r[u])}for(var d=0,p=aV;d<p.length;d++){var u=p[d];r[u]&&(n[u]=parseInt(r[u],10))}return r.expression&&(n.expression=r.expression),n})}function Ph(t,e){return(0,fp.getElementsByTagName)(t,e,!0,1)[0]}function ns(t,e,r){return r===void 0&&(r=!1),(0,tV.textContent)((0,fp.getElementsByTagName)(t,e,r,1)).trim()}function Yn(t,e,r,n,o){o===void 0&&(o=!1);var s=ns(r,n,o);s&&(t[e]=s)}function sV(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=jt&&jt.__createBinding||(Object.create?(function(o,s,u,d){d===void 0&&(d=u);var p=Object.getOwnPropertyDescriptor(s,u);(!p||("get"in p?!s.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return s[u]}}),Object.defineProperty(o,d,p)}):(function(o,s,u,d){d===void 0&&(d=u),o[d]=s[u]})),r=jt&&jt.__exportStar||function(o,s){for(var u in o)u!=="default"&&!Object.prototype.hasOwnProperty.call(s,u)&&e(s,o,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(ws,t),r(Ko,t),r(Cs,t),r(Ra,t),r(ka,t),r(Cl,t),r(Ab,t);var n=Ta;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(ch);(function(t){var e=jt&&jt.__createBinding||(Object.create?(function(M,E,R,j){j===void 0&&(j=R);var k=Object.getOwnPropertyDescriptor(E,R);(!k||("get"in k?!E.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return E[R]}}),Object.defineProperty(M,j,k)}):(function(M,E,R,j){j===void 0&&(j=R),M[j]=E[R]})),r=jt&&jt.__setModuleDefault||(Object.create?(function(M,E){Object.defineProperty(M,"default",{enumerable:!0,value:E})}):function(M,E){M.default=E}),n=jt&&jt.__importStar||function(M){if(M&&M.__esModule)return M;var E={};if(M!=null)for(var R in M)R!=="default"&&Object.prototype.hasOwnProperty.call(M,R)&&e(E,M,R);return r(E,M),E},o=jt&&jt.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var s=Dd,u=Dd;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return u.Parser}});var d=Ta,p=Ta;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return p.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return p.DomHandler}});function h(M,E){var R=new d.DomHandler(void 0,E);return new s.Parser(R,E).end(M),R.root}t.parseDocument=h;function m(M,E){return h(M,E).children}t.parseDOM=m;function b(M,E,R){var j=new d.DomHandler(M,E,R);return new s.Parser(j,E)}t.createDomStream=b;var y=bb;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(y).default}}),t.ElementType=n(Zc);var v=ch,w=ch;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return w.getFeed}});var C={xmlMode:!0};function T(M,E){return E===void 0&&(E=C),(0,v.getFeed)(m(M,E))}t.parseFeed=T,t.DomUtils=n(ch)})(B5);var lV=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});/*!
|
|
349
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
350
|
-
*
|
|
351
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
352
|
-
* Released under the MIT License.
|
|
353
|
-
*/function wT(t){return Object.prototype.toString.call(t)==="[object Object]"}function cV(t){var e,r;return wT(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(wT(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Mb.isPlainObject=cV;var uV=function(e){return dV(e)&&!pV(e)};function dV(t){return!!t&&typeof t=="object"}function pV(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||mV(t)}var fV=typeof Symbol=="function"&&Symbol.for,hV=fV?Symbol.for("react.element"):60103;function mV(t){return t.$$typeof===hV}function gV(t){return Array.isArray(t)?[]:{}}function Ud(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Nc(gV(t),t,e):t}function yV(t,e,r){return t.concat(e).map(function(n){return Ud(n,r)})}function vV(t,e){if(!e.customMerge)return Nc;var r=e.customMerge(t);return typeof r=="function"?r:Nc}function bV(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function CT(t){return Object.keys(t).concat(bV(t))}function c3(t,e){try{return e in t}catch{return!1}}function xV(t,e){return c3(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function SV(t,e,r){var n={};return r.isMergeableObject(t)&&CT(t).forEach(function(o){n[o]=Ud(t[o],r)}),CT(e).forEach(function(o){xV(t,o)||(c3(t,o)&&r.isMergeableObject(e[o])?n[o]=vV(o,r)(t[o],e[o],r):n[o]=Ud(e[o],r))}),n}function Nc(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||yV,r.isMergeableObject=r.isMergeableObject||uV,r.cloneUnlessOtherwiseSpecified=Ud;var n=Array.isArray(e),o=Array.isArray(t),s=n===o;return s?n?r.arrayMerge(t,e,r):SV(t,e,r):Ud(e,r)}Nc.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Nc(n,o,r)},{})};var wV=Nc,CV=wV,u3={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(jt,function(){return function(e){function r(j){return j===" "||j===" "||j===`
|
|
354
|
-
`||j==="\f"||j==="\r"}function n(j){var k,P=j.exec(e.substring(T));if(P)return k=P[0],T+=k.length,k}for(var o=e.length,s=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,h=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,b,y,v,w,C,T=0,M=[];;){if(n(u),T>=o)return M;b=n(d),y=[],b.slice(-1)===","?(b=b.replace(p,""),R()):E()}function E(){for(n(s),v="",w="in descriptor";;){if(C=e.charAt(T),w==="in descriptor")if(r(C))v&&(y.push(v),v="",w="after descriptor");else if(C===","){T+=1,v&&y.push(v),R();return}else if(C==="(")v=v+C,w="in parens";else if(C===""){v&&y.push(v),R();return}else v=v+C;else if(w==="in parens")if(C===")")v=v+C,w="in descriptor";else if(C===""){y.push(v),R();return}else v=v+C;else if(w==="after descriptor"&&!r(C))if(C===""){R();return}else w="in descriptor",T-=1;T+=1}}function R(){var j=!1,k,P,z,_,B={},G,D,A,Y,F;for(_=0;_<y.length;_++)G=y[_],D=G[G.length-1],A=G.substring(0,G.length-1),Y=parseInt(A,10),F=parseFloat(A),h.test(A)&&D==="w"?((k||P)&&(j=!0),Y===0?j=!0:k=Y):m.test(A)&&D==="x"?((k||P||z)&&(j=!0),F<0?j=!0:P=F):h.test(A)&&D==="h"?((z||P)&&(j=!0),Y===0?j=!0:z=Y):j=!0;j?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+G+"'."):(B.url=b,k&&(B.w=k),P&&(B.d=P),z&&(B.h=z),M.push(B))}}})})(u3);var TV=u3.exports,Rb={exports:{}},Nt=String,d3=function(){return{isColorSupported:!1,reset:Nt,bold:Nt,dim:Nt,italic:Nt,underline:Nt,inverse:Nt,hidden:Nt,strikethrough:Nt,black:Nt,red:Nt,green:Nt,yellow:Nt,blue:Nt,magenta:Nt,cyan:Nt,white:Nt,gray:Nt,bgBlack:Nt,bgRed:Nt,bgGreen:Nt,bgYellow:Nt,bgBlue:Nt,bgMagenta:Nt,bgCyan:Nt,bgWhite:Nt,blackBright:Nt,redBright:Nt,greenBright:Nt,yellowBright:Nt,blueBright:Nt,magentaBright:Nt,cyanBright:Nt,whiteBright:Nt,bgBlackBright:Nt,bgRedBright:Nt,bgGreenBright:Nt,bgYellowBright:Nt,bgBlueBright:Nt,bgMagentaBright:Nt,bgCyanBright:Nt,bgWhiteBright:Nt}};Rb.exports=d3();Rb.exports.createColors=d3;var EV=Rb.exports,jV={},AV=Object.freeze({__proto__:null,default:jV}),bo=eU(AV);let TT=EV,ET=bo,fv=class p3 extends Error{constructor(e,r,n,o,s,u){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),o&&(this.source=o),u&&(this.plugin=u),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p3)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=TT.isColorSupported);let n=m=>m,o=m=>m,s=m=>m;if(e){let{bold:m,gray:b,red:y}=TT.createColors(!0);o=v=>m(y(v)),n=v=>b(v),ET&&(s=v=>ET(v))}let u=r.split(/\r?\n/),d=Math.max(this.line-3,0),p=Math.min(this.line+2,u.length),h=String(p).length;return u.slice(d,p).map((m,b)=>{let y=d+1+b,v=" "+(" "+y).slice(-h)+" | ";if(y===this.line){if(m.length>160){let C=20,T=Math.max(0,this.column-C),M=Math.max(this.column+C,this.endColumn+C),E=m.slice(T,M),R=n(v.replace(/\d/g," "))+m.slice(0,Math.min(this.column-1,C-1)).replace(/[^\t]/g," ");return o(">")+n(v)+s(E)+`
|
|
355
|
-
`+R+o("^")}let w=n(v.replace(/\d/g," "))+m.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(v)+s(m)+`
|
|
356
|
-
`+w+o("^")}return" "+n(v)+s(m)}).join(`
|
|
357
|
-
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
358
|
-
|
|
359
|
-
`+e+`
|
|
360
|
-
`),this.name+": "+this.message+e}};var kb=fv;fv.default=fv;const jT={after:`
|
|
361
|
-
`,beforeClose:`
|
|
362
|
-
`,beforeComment:`
|
|
363
|
-
`,beforeDecl:`
|
|
364
|
-
`,beforeOpen:" ",beforeRule:`
|
|
365
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function MV(t){return t[0].toUpperCase()+t.slice(1)}let hv=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let s=(e.raws.between||"")+(r?";":"");this.builder(n+o+s,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,s=0;for(;o&&o.type!=="root";)s+=1,o=o.parent;if(n.includes(`
|
|
366
|
-
`)){let u=this.raw(e,null,"indent");if(u.length)for(let d=0;d<s;d++)n+=u}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let s=e.nodes[o],u=this.raw(s,"before");u&&this.builder(u),this.stringify(s,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return jT[n];let u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]<"u")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let d="raw"+MV(n);this[d]?o=this[d](u,e):u.walk(p=>{if(o=p.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=jT[n]),u.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
367
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
368
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
369
|
-
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
370
|
-
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
|
|
371
|
-
`);return r=s[s.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var f3=hv;hv.default=hv;let RV=f3;function mv(t,e){new RV(e).stringify(t)}var Am=mv;mv.default=mv;var hp={};hp.isClean=Symbol("isClean");hp.my=Symbol("my");let kV=kb,OV=f3,PV=Am,{isClean:nd,my:_V}=hp;function gv(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],s=typeof o;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(u=>gv(u,r)):(s==="object"&&o!==null&&(o=gv(o)),r[n]=o)}return r}function ya(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let s=0;s<t.length;s++){if(n===e.line&&r===e.column){o=s;break}t[s]===`
|
|
372
|
-
`?(r=1,n+=1):r+=1}return o}let yv=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[nd]=!1,this[_V]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=gv(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new kV(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[nd]=!0}markDirty(){if(this[nd]){this[nd]=!1;let e=this;for(;e=e.parent;)e[nd]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(ya(n,this.source.start),ya(n,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,s=ya(o,this.source.start),u=s+e;for(let d=s;d<u;d++)o[d]===`
|
|
373
|
-
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:u}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:ya(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ya(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let u=r.slice(ya(r,this.source.start),ya(r,this.source.end)).indexOf(e.word);u!==-1&&(n=this.positionInside(u),o=this.positionInside(u+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:ya(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:ya(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new OV().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let s=0;for(let u in this){if(!Object.prototype.hasOwnProperty.call(this,u)||u==="parent"||u==="proxyCache")continue;let d=this[u];if(Array.isArray(d))n[u]=d.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,r):p);else if(typeof d=="object"&&d.toJSON)n[u]=d.toJSON(null,r);else if(u==="source"){if(d==null)continue;let p=r.get(d.input);p==null&&(p=s,r.set(d.input,s),s++),n[u]={end:d.end,inputId:p,start:d.start}}else n[u]=d}return o&&(n.inputs=[...r.keys()].map(u=>u.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=PV){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let s in n)o[s]=n[s];return e.warn(r,o)}};var Mm=yv;yv.default=yv;let LV=Mm,vv=class extends LV{constructor(e){super(e),this.type="comment"}};var Rm=vv;vv.default=vv;let NV=Mm,bv=class extends NV{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var km=bv;bv.default=bv;let h3=Rm,m3=km,IV=Mm,{isClean:g3,my:y3}=hp,Ob,v3,b3,Pb;function x3(t){return t.map(e=>(e.nodes&&(e.nodes=x3(e.nodes)),delete e.source,e))}function S3(t){if(t[g3]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)S3(e)}let Ea=class w3 extends IV{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(s,u)=>o(s.toProxy(),u):o)):r==="every"||r==="some"?n=>e[r]((o,...s)=>n(o.toProxy(),...s)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let u of o)this.proxyOf.nodes.splice(n+1,0,u);let s;for(let u in this.indexes)s=this.indexes[u],n<s&&(this.indexes[u]=s+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,s=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let d of s)this.proxyOf.nodes.splice(n,0,d);let u;for(let d in this.indexes)u=this.indexes[d],n<=u&&(this.indexes[d]=u+s.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=x3(v3(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new m3(e)]}else if(e.selector||e.selectors)e=[new Pb(e)];else if(e.name)e=[new Ob(e)];else if(e.text)e=[new h3(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[y3]||w3.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[g3]&&S3(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(s){throw r.addToError(s)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};Ea.registerParse=t=>{v3=t};Ea.registerRule=t=>{Pb=t};Ea.registerAtRule=t=>{Ob=t};Ea.registerRoot=t=>{b3=t};var Tl=Ea;Ea.default=Ea;Ea.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ob.prototype):t.type==="rule"?Object.setPrototypeOf(t,Pb.prototype):t.type==="decl"?Object.setPrototypeOf(t,m3.prototype):t.type==="comment"?Object.setPrototypeOf(t,h3.prototype):t.type==="root"&&Object.setPrototypeOf(t,b3.prototype),t[y3]=!0,t.nodes&&t.nodes.forEach(e=>{Ea.rebuild(e)})};let C3=Tl,_h=class extends C3{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var _b=_h;_h.default=_h;C3.registerAtRule(_h);let BV=Tl,T3,E3,Vd=class extends BV{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new T3(new E3,this,e).stringify()}};Vd.registerLazyResult=t=>{T3=t};Vd.registerProcessor=t=>{E3=t};var Lb=Vd;Vd.default=Vd;let zV="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$V=(t=21)=>{let e="",r=t|0;for(;r--;)e+=zV[Math.random()*64|0];return e};var DV={nanoid:$V};let{existsSync:HV,readFileSync:UV}=bo,{dirname:f0,join:VV}=bo,{SourceMapConsumer:AT,SourceMapGenerator:MT}=bo;function qV(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let xv=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=f0(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new AT(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,u=e.match(o)||e.match(s);if(u)return decodeURIComponent(e.substr(u[0].length));let d=e.match(r)||e.match(n);if(d)return qV(e.substr(d[0].length));let p=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=f0(e),HV(e))return this.mapFile=e,UV(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof AT)return MT.fromSourceMap(r).toString();if(r instanceof MT)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=VV(f0(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var j3=xv;xv.default=xv;let{nanoid:FV}=DV,{isAbsolute:Sv,resolve:wv}=bo,{SourceMapConsumer:WV,SourceMapGenerator:GV}=bo,{fileURLToPath:RT,pathToFileURL:Ff}=bo,kT=kb,XV=j3,h0=bo,m0=Symbol("lineToIndexCache"),YV=!!(WV&&GV),OT=!!(wv&&Sv);function PT(t){if(t[m0])return t[m0];let e=t.css.split(`
|
|
374
|
-
`),r=new Array(e.length),n=0;for(let o=0,s=e.length;o<s;o++)r[o]=n,n+=e[o].length+1;return t[m0]=r,r}let Lh=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!OT||/^\w+:\/\//.test(r.from)||Sv(r.from)?this.file=r.from:this.file=wv(r.from)),OT&&YV){let n=new XV(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+FV(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let s,u,d,p,h;if(r&&typeof r=="object"){let b=r,y=n;if(typeof b.offset=="number"){p=b.offset;let v=this.fromOffset(p);r=v.line,n=v.col}else r=b.line,n=b.column,p=this.fromLineAndColumn(r,n);if(typeof y.offset=="number"){d=y.offset;let v=this.fromOffset(d);u=v.line,s=v.col}else u=y.line,s=y.column,d=this.fromLineAndColumn(y.line,y.column)}else if(n)p=this.fromLineAndColumn(r,n);else{p=r;let b=this.fromOffset(p);r=b.line,n=b.col}let m=this.origin(r,n,u,s);return m?h=new kT(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,o.plugin):h=new kT(e,u===void 0?r:{column:n,line:r},u===void 0?n:{column:s,line:u},this.css,this.file,o.plugin),h.input={column:n,endColumn:s,endLine:u,endOffset:d,line:r,offset:p,source:this.css},this.file&&(Ff&&(h.input.url=Ff(this.file).toString()),h.input.file=this.file),h}fromLineAndColumn(e,r){return PT(this)[e-1]+r-1}fromOffset(e){let r=PT(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let s=r.length-2,u;for(;o<s;)if(u=o+(s-o>>1),e<r[u])s=u-1;else if(e>=r[u+1])o=u+1;else{o=u;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:wv(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let s=this.map.consumer(),u=s.originalPositionFor({column:r,line:e});if(!u.source)return!1;let d;typeof n=="number"&&(d=s.originalPositionFor({column:o,line:n}));let p;Sv(u.source)?p=Ff(u.source):p=new URL(u.source,this.map.consumer().sourceRoot||Ff(this.map.mapFile));let h={column:u.column,endColumn:d&&d.column,endLine:d&&d.line,line:u.line,url:p.toString()};if(p.protocol==="file:")if(RT)h.file=RT(p);else throw new Error("file: protocol is not available in this PostCSS build");let m=s.sourceContentFor(u.source);return m&&(h.source=m),h}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Om=Lh;Lh.default=Lh;h0&&h0.registerInput&&h0.registerInput(Lh);let A3=Tl,M3,R3,Ic=class extends A3{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let s of o)s.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new M3(new R3,this,e).stringify()}};Ic.registerLazyResult=t=>{M3=t};Ic.registerProcessor=t=>{R3=t};var mp=Ic;Ic.default=Ic;A3.registerRoot(Ic);let qd={comma(t){return qd.split(t,[","],!0)},space(t){let e=[" ",`
|
|
375
|
-
`," "];return qd.split(t,e)},split(t,e,r){let n=[],o="",s=!1,u=0,d=!1,p="",h=!1;for(let m of t)h?h=!1:m==="\\"?h=!0:d?m===p&&(d=!1):m==='"'||m==="'"?(d=!0,p=m):m==="("?u+=1:m===")"?u>0&&(u-=1):u===0&&e.includes(m)&&(s=!0),s?(o!==""&&n.push(o.trim()),o="",s=!1):o+=m;return(r||o!=="")&&n.push(o.trim()),n}};var k3=qd;qd.default=qd;let O3=Tl,QV=k3,Nh=class extends O3{get selectors(){return QV.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Nb=Nh;Nh.default=Nh;O3.registerRule(Nh);let KV=_b,ZV=Rm,JV=km,eq=Om,tq=j3,rq=mp,nq=Nb;function Fd(t,e){if(Array.isArray(t))return t.map(o=>Fd(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let s={...o,__proto__:eq.prototype};s.map&&(s.map={...s.map,__proto__:tq.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>Fd(o,e))),n.source){let{inputId:o,...s}=n.source;n.source=s,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new rq(n);if(n.type==="decl")return new JV(n);if(n.type==="rule")return new nq(n);if(n.type==="comment")return new ZV(n);if(n.type==="atrule")return new KV(n);throw new Error("Unknown node type: "+t.type)}var iq=Fd;Fd.default=Fd;let{dirname:dh,relative:P3,resolve:_3,sep:L3}=bo,{SourceMapConsumer:N3,SourceMapGenerator:ph}=bo,{pathToFileURL:_T}=bo,oq=Om,aq=!!(N3&&ph),sq=!!(dh&&_3&&P3&&L3),lq=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
376
|
-
`;this.css.includes(`\r
|
|
377
|
-
`)&&(r=`\r
|
|
378
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||dh(e.file),o;this.mapOpts.sourcesContent===!1?(o=new N3(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),sq&&aq&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ph.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ph({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ph({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,u;this.stringify(this.root,(d,p,h)=>{if(this.css+=d,p&&h!=="end"&&(o.generated.line=e,o.generated.column=r-1,p.source&&p.source.start?(o.source=this.sourcePath(p),o.original.line=p.source.start.line,o.original.column=p.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),u=d.match(/\n/g),u?(e+=u.length,s=d.lastIndexOf(`
|
|
379
|
-
`),r=d.length-s):r+=d.length,p&&h!=="start"){let m=p.parent||{raws:{}};(!(p.type==="decl"||p.type==="atrule"&&!p.nodes)||p!==m.last||m.raws.semicolon)&&(p.source&&p.source.end?(o.source=this.sourcePath(p),o.original.line=p.source.end.line,o.original.column=p.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?dh(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=dh(_3(n,this.mapOpts.annotation)));let o=P3(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new oq(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(_T){let n=_T(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;L3==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var I3=lq;const g0=39,LT=34,Wf=92,NT=47,Gf=10,id=32,Xf=12,Yf=9,Qf=13,cq=91,uq=93,dq=40,pq=41,fq=123,hq=125,mq=59,gq=42,yq=58,vq=64,Kf=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zf=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,bq=/.[\r\n"'(/\\]/,IT=/[\da-f]/i;var xq=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,s,u,d,p,h,m,b,y,v,w,C=n.length,T=0,M=[],E=[];function R(){return T}function j(_){throw e.error("Unclosed "+_,T)}function k(){return E.length===0&&T>=C}function P(_){if(E.length)return E.pop();if(T>=C)return;let B=_?_.ignoreUnclosed:!1;switch(s=n.charCodeAt(T),s){case Gf:case id:case Yf:case Qf:case Xf:{p=T;do p+=1,s=n.charCodeAt(p);while(s===id||s===Gf||s===Yf||s===Qf||s===Xf);m=["space",n.slice(T,p)],T=p-1;break}case cq:case uq:case fq:case hq:case yq:case mq:case pq:{let G=String.fromCharCode(s);m=[G,G,T];break}case dq:{if(w=M.length?M.pop()[1]:"",v=n.charCodeAt(T+1),w==="url"&&v!==g0&&v!==LT&&v!==id&&v!==Gf&&v!==Yf&&v!==Xf&&v!==Qf){p=T;do{if(b=!1,p=n.indexOf(")",p+1),p===-1)if(o||B){p=T;break}else j("bracket");for(y=p;n.charCodeAt(y-1)===Wf;)y-=1,b=!b}while(b);m=["brackets",n.slice(T,p+1),T,p],T=p}else p=n.indexOf(")",T+1),u=n.slice(T,p+1),p===-1||bq.test(u)?m=["(","(",T]:(m=["brackets",u,T,p],T=p);break}case g0:case LT:{h=s===g0?"'":'"',p=T;do{if(b=!1,p=n.indexOf(h,p+1),p===-1)if(o||B){p=T+1;break}else j("string");for(y=p;n.charCodeAt(y-1)===Wf;)y-=1,b=!b}while(b);m=["string",n.slice(T,p+1),T,p],T=p;break}case vq:{Kf.lastIndex=T+1,Kf.test(n),Kf.lastIndex===0?p=n.length-1:p=Kf.lastIndex-2,m=["at-word",n.slice(T,p+1),T,p],T=p;break}case Wf:{for(p=T,d=!0;n.charCodeAt(p+1)===Wf;)p+=1,d=!d;if(s=n.charCodeAt(p+1),d&&s!==NT&&s!==id&&s!==Gf&&s!==Yf&&s!==Qf&&s!==Xf&&(p+=1,IT.test(n.charAt(p)))){for(;IT.test(n.charAt(p+1));)p+=1;n.charCodeAt(p+1)===id&&(p+=1)}m=["word",n.slice(T,p+1),T,p],T=p;break}default:{s===NT&&n.charCodeAt(T+1)===gq?(p=n.indexOf("*/",T+2)+1,p===0&&(o||B?p=n.length:j("comment")),m=["comment",n.slice(T,p+1),T,p],T=p):(Zf.lastIndex=T+1,Zf.test(n),Zf.lastIndex===0?p=n.length-1:p=Zf.lastIndex-2,m=["word",n.slice(T,p+1),T,p],M.push(m),T=p);break}}return T++,m}function z(_){E.push(_)}return{back:z,endOfFile:k,nextToken:P,position:R}};let Sq=_b,wq=Rm,Cq=km,Tq=mp,BT=Nb,Eq=xq;const zT={empty:!0,space:!0};function jq(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let Aq=class{constructor(e){this.input=e,this.root=new Tq,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Sq;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,s,u=!1,d=!1,p=[],h=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?h.push(n==="("?")":"]"):n==="{"&&h.length>0?h.push("}"):n===h[h.length-1]&&h.pop(),h.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){d=!0;break}else if(n==="}"){if(p.length>0){for(s=p.length-1,o=p[s];o&&o[0]==="space";)o=p[--s];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else p.push(e);else p.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(p),p.length?(r.raws.afterName=this.spacesAndCommentsFromStart(p),this.raw(r,"params",p),u&&(e=p[p.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),d&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let s=r-1;s>=0&&(o=e[s],!(o[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,s;for(let[u,d]of e.entries()){if(o=d,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return u}n=o}return!1}comment(e){let r=new wq;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=Eq(this.input)}decl(e,r){let n=new Cq;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||jq(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let h=e[0][0];if(h===":"||h==="space"||h==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let u=[],d;for(;e.length&&(d=e[0][0],!(d!=="space"&&d!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let h=e.length-1;h>=0;h--){if(s=e[h],s[1].toLowerCase()==="!important"){n.important=!0;let m=this.stringFrom(e,h);m=this.spacesFromEnd(e)+m,m!==" !important"&&(n.raws.important=m);break}else if(s[1].toLowerCase()==="important"){let m=e.slice(0),b="";for(let y=h;y>0;y--){let v=m[y][0];if(b.trim().startsWith("!")&&v!=="space")break;b=m.pop()[1]+b}b.trim().startsWith("!")&&(n.important=!0,n.raws.important=b,e=m)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(h=>h[0]!=="space"&&h[0]!=="comment")&&(n.raws.between+=u.map(h=>h[1]).join(""),u=[]),this.raw(n,"value",u.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new BT;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,s=null,u=[],d=e[1].startsWith("--"),p=[],h=e;for(;h;){if(n=h[0],p.push(h),n==="("||n==="[")s||(s=h),u.push(n==="("?")":"]");else if(d&&o&&n==="{")s||(s=h),u.push("}");else if(u.length===0)if(n===";")if(o){this.decl(p,d);return}else break;else if(n==="{"){this.rule(p);return}else if(n==="}"){this.tokenizer.back(p.pop()),r=!0;break}else n===":"&&(o=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(s=null));h=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(s),r&&o){if(!d)for(;p.length&&(h=p[p.length-1][0],!(h!=="space"&&h!=="comment"));)this.tokenizer.back(p.pop());this.decl(p,d)}else this.unknownWord(p)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let s,u,d=n.length,p="",h=!0,m,b;for(let y=0;y<d;y+=1)s=n[y],u=s[0],u==="space"&&y===d-1&&!o?h=!1:u==="comment"?(b=n[y-1]?n[y-1][0]:"empty",m=n[y+1]?n[y+1][0]:"empty",!zT[b]&&!zT[m]?p.slice(-1)===","?h=!1:p+=s[1]:h=!1):p+=s[1];if(!h){let y=n.reduce((v,w)=>v+w[1],"");e.raws[r]={raw:y,value:p}}e[r]=p}rule(e){e.pop();let r=new BT;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let o=r;o<e.length;o++)n+=e[o][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var Mq=Aq;let Rq=Tl,kq=Om,Oq=Mq;function Ih(t,e){let r=new kq(t,e),n=new Oq(r);try{n.parse()}catch(o){throw o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
|
|
380
|
-
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
|
|
381
|
-
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
|
|
382
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Ib=Ih;Ih.default=Ih;Rq.registerParse(Ih);let Cv=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var B3=Cv;Cv.default=Cv;let Pq=B3,Tv=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new Pq(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Bb=Tv;Tv.default=Tv;let $T={};var z3=function(e){$T[e]||($T[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let _q=Tl,Lq=Lb,Nq=I3,Iq=Ib,DT=Bb,Bq=mp,zq=Am,{isClean:ko,my:$q}=hp,Dq=z3;const Hq={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uq={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Vq={Once:!0,postcssPlugin:!0,prepare:!0},Bc=0;function od(t){return typeof t=="object"&&typeof t.then=="function"}function $3(t){let e=!1,r=Hq[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Bc,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Bc,r+"Exit"]:[r,r+"Exit"]}function HT(t){let e;return t.type==="document"?e=["Document",Bc,"DocumentExit"]:t.type==="root"?e=["Root",Bc,"RootExit"]:e=$3(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ev(t){return t[ko]=!1,t.nodes&&t.nodes.forEach(e=>Ev(e)),t}let jv={},zc=class D3{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Ev(r);else if(r instanceof D3||r instanceof DT)o=Ev(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let s=Iq;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{o=s(r,n)}catch(u){this.processed=!0,this.error=u}o&&!o[$q]&&_q.rebuild(o)}this.result=new DT(e,o,n),this.helpers={...jv,postcss:jv,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion){let o=n.postcssPlugin,s=n.postcssVersion,u=this.result.processor.version,d=s.split("."),p=u.split(".");(d[0]!==p[0]||parseInt(d[1])>parseInt(p[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+o+" uses "+s+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!Uq[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Vq[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(od(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ko];){e[ko]=!0;let r=[HT(e)];for(;r.length>0;){let n=this.visitTick(r);if(od(n))try{await n}catch(o){let s=r[r.length-1].node;throw this.handleError(o,s)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(s=>n(s,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return od(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=zq;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new Nq(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(od(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ko];)e[ko]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return"from"in this.opts||Dq("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let s;try{s=o(r,this.helpers)}catch(u){throw this.handleError(u,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(od(s))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[u,d]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return d(n.toProxy(),this.helpers)}catch(p){throw this.handleError(p,n)}}if(r.iterator!==0){let u=r.iterator,d;for(;d=n.nodes[n.indexes[u]];)if(n.indexes[u]+=1,!d[ko]){d[ko]=!0,e.push(HT(d));return}r.iterator=0,delete n.indexes[u]}let s=r.events;for(;r.eventIndex<s.length;){let u=s[r.eventIndex];if(r.eventIndex+=1,u===Bc){n.nodes&&n.nodes.length&&(n[ko]=!0,r.iterator=n.getIterator());return}else if(this.listeners[u]){r.visitors=this.listeners[u];return}}e.pop()}walkSync(e){e[ko]=!0;let r=$3(e);for(let n of r)if(n===Bc)e.nodes&&e.each(o=>{o[ko]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};zc.registerPostcss=t=>{jv=t};var H3=zc;zc.default=zc;Bq.registerLazyResult(zc);Lq.registerLazyResult(zc);let qq=I3,Fq=Ib;const Wq=Bb;let Gq=Am,Xq=z3,Av=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=Fq;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,s=Gq;this.result=new Wq(this._processor,o,this._opts),this.result.css=r;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let d=new qq(s,o,this._opts,r);if(d.isMap()){let[p,h]=d.generate();p&&(this.result.css=p),h&&(this.result.map=h)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return"from"in this._opts||Xq("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var Yq=Av;Av.default=Av;let Qq=Lb,Kq=H3,Zq=Yq,Jq=mp,Wd=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else throw typeof n=="object"&&(n.parse||n.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Zq(this,e,r):new Kq(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var eF=Wd;Wd.default=Wd;Jq.registerProcessor(Wd);Qq.registerProcessor(Wd);let U3=_b,V3=Rm,tF=Tl,rF=kb,q3=km,F3=Lb,nF=iq,iF=Om,oF=H3,aF=k3,sF=Mm,lF=Ib,zb=eF,cF=Bb,W3=mp,G3=Nb,uF=Am,dF=B3;function pr(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new zb(t)}pr.plugin=function(e,r){let n=!1;function o(...u){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
383
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),eT.LANG&&eT.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
384
|
-
https://www.w3ctech.com/topic/2226`));let d=r(...u);return d.postcssPlugin=e,d.postcssVersion=new zb().version,d}let s;return Object.defineProperty(o,"postcss",{get(){return s||(s=o()),s}}),o.process=function(u,d,p){return pr([o(p)]).process(u,d)},o};pr.stringify=uF;pr.parse=lF;pr.fromJSON=nF;pr.list=aF;pr.comment=t=>new V3(t);pr.atRule=t=>new U3(t);pr.decl=t=>new q3(t);pr.rule=t=>new G3(t);pr.root=t=>new W3(t);pr.document=t=>new F3(t);pr.CssSyntaxError=rF;pr.Declaration=q3;pr.Container=tF;pr.Processor=zb;pr.Document=F3;pr.Comment=V3;pr.Warning=dF;pr.AtRule=U3;pr.Result=cF;pr.Input=iF;pr.Rule=G3;pr.Root=W3;pr.Node=sF;oF.registerPostcss(pr);var pF=pr;pr.default=pr;const fF=B5,UT=lV,{isPlainObject:hF}=Mb,VT=CV,mF=TV,{parse:gF}=pF,yF=["img","audio","video","picture","svg","object","map","iframe","embed"],vF=["script","style"];function hc(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function va(t,e){return{}.hasOwnProperty.call(t,e)}function qT(t,e){const r=[];return hc(t,function(n){e(n)&&r.push(n)}),r}function bF(t){for(const e in t)if(va(t,e))return!1;return!0}function xF(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var SF=Gd;const wF=/^[^\0\t\n\f\r /<=>]+$/;function Gd(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function s($,I){const Q=this;this.tag=$,this.attribs=I||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(T.length){const ee=T[T.length-1];ee.text+=Q.text}},this.updateParentNodeMediaChildren=function(){T.length&&yF.includes(this.tag)&&T[T.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Gd.defaults,e),e.parser=Object.assign({},CF,e.parser);const u=function($){return e.allowedTags===!1||(e.allowedTags||[]).indexOf($)>-1};vF.forEach(function($){u($)&&!e.allowVulnerableTags&&console.warn(`
|
|
385
|
-
|
|
386
|
-
⚠️ Your \`allowedTags\` option includes, \`${$}\`, which is inherently
|
|
387
|
-
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
388
|
-
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
389
|
-
and ensure you are accounting for this risk.
|
|
390
|
-
|
|
391
|
-
`)});const d=e.nonTextTags||["script","style","textarea","option"];let p,h;e.allowedAttributes&&(p={},h={},hc(e.allowedAttributes,function($,I){p[I]=[];const Q=[];$.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?Q.push(UT(ee).replace(/\\\*/g,".*")):p[I].push(ee)}),Q.length&&(h[I]=new RegExp("^("+Q.join("|")+")$"))}));const m={},b={},y={};hc(e.allowedClasses,function($,I){if(p&&(va(p,I)||(p[I]=[]),p[I].push("class")),m[I]=$,Array.isArray($)){const Q=[];m[I]=[],y[I]=[],$.forEach(function(ee){typeof ee=="string"&&ee.indexOf("*")>=0?Q.push(UT(ee).replace(/\\\*/g,".*")):ee instanceof RegExp?y[I].push(ee):m[I].push(ee)}),Q.length&&(b[I]=new RegExp("^("+Q.join("|")+")$"))}});const v={};let w;hc(e.transformTags,function($,I){let Q;typeof $=="function"?Q=$:typeof $=="string"&&(Q=Gd.simpleTransform($)),I==="*"?w=Q:v[I]=Q});let C,T,M,E,R,j,k=!1;z();const P=new fF.Parser({onopentag:function($,I){if(e.onOpenTag&&e.onOpenTag($,I),e.enforceHtmlBoundary&&$==="html"&&z(),R){j++;return}const Q=new s($,I);T.push(Q);let ee=!1;const J=!!Q.text;let L;if(va(v,$)&&(L=v[$]($,I),Q.attribs=I=L.attribs,L.text!==void 0&&(Q.innerText=L.text),$!==L.tagName&&(Q.name=$=L.tagName,E[C]=L.tagName)),w&&(L=w($,I),Q.attribs=I=L.attribs,$!==L.tagName&&(Q.name=$=L.tagName,E[C]=L.tagName)),(!u($)||e.disallowedTagsMode==="recursiveEscape"&&!bF(M)||e.nestingLimit!=null&&C>=e.nestingLimit)&&(ee=!0,M[C]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&d.indexOf($)!==-1&&(R=!0,j=1)),C++,ee){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(Q.innerText&&!J){const ce=_(Q.innerText);e.textFilter?n+=e.textFilter(ce,$):n+=ce,k=!0}return}o=n,n=""}n+="<"+$,$==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(Q.innerText=""),ee&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?hc(I,function(ce,K){n+=" "+K+'="'+_(ce||"",!0)+'"'}):(!p||va(p,$)||p["*"])&&hc(I,function(ce,K){if(!wF.test(K)){delete Q.attribs[K];return}if(ce===""&&!e.allowedEmptyAttributes.includes(K)&&(e.nonBooleanAttributes.includes(K)||e.nonBooleanAttributes.includes("*"))){delete Q.attribs[K];return}let re=!1;if(!p||va(p,$)&&p[$].indexOf(K)!==-1||p["*"]&&p["*"].indexOf(K)!==-1||va(h,$)&&h[$].test(K)||h["*"]&&h["*"].test(K))re=!0;else if(p&&p[$]){for(const Z of p[$])if(hF(Z)&&Z.name&&Z.name===K){re=!0;let ye="";if(Z.multiple===!0){const Ce=ce.split(" ");for(const be of Ce)Z.values.indexOf(be)!==-1&&(ye===""?ye=be:ye+=" "+be)}else Z.values.indexOf(ce)>=0&&(ye=ce);ce=ye}}if(re){if(e.allowedSchemesAppliedToAttributes.indexOf(K)!==-1&&B($,ce)){delete Q.attribs[K];return}if($==="script"&&K==="src"){let Z=!0;try{const ye=G(ce);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ce=(e.allowedScriptHostnames||[]).find(function(se){return se===ye.url.hostname}),be=(e.allowedScriptDomains||[]).find(function(se){return ye.url.hostname===se||ye.url.hostname.endsWith(`.${se}`)});Z=Ce||be}}catch{Z=!1}if(!Z){delete Q.attribs[K];return}}if($==="iframe"&&K==="src"){let Z=!0;try{const ye=G(ce);if(ye.isRelativeUrl)Z=va(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ce=(e.allowedIframeHostnames||[]).find(function(se){return se===ye.url.hostname}),be=(e.allowedIframeDomains||[]).find(function(se){return ye.url.hostname===se||ye.url.hostname.endsWith(`.${se}`)});Z=Ce||be}}catch{Z=!1}if(!Z){delete Q.attribs[K];return}}if(K==="srcset")try{let Z=mF(ce);if(Z.forEach(function(ye){B("srcset",ye.url)&&(ye.evil=!0)}),Z=qT(Z,function(ye){return!ye.evil}),Z.length)ce=xF(qT(Z,function(ye){return!ye.evil})),Q.attribs[K]=ce;else{delete Q.attribs[K];return}}catch{delete Q.attribs[K];return}if(K==="class"){const Z=m[$],ye=m["*"],Ce=b[$],be=y[$],se=y["*"],De=b["*"],ze=[Ce,De].concat(be,se).filter(function(Be){return Be});if(Z&&ye?ce=F(ce,VT(Z,ye),ze):ce=F(ce,Z||ye,ze),!ce.length){delete Q.attribs[K];return}}if(K==="style"){if(e.parseStyleAttributes)try{const Z=gF($+" {"+ce+"}",{map:!1}),ye=D(Z,e.allowedStyles);if(ce=A(ye),ce.length===0){delete Q.attribs[K];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+$+" {"+ce+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete Q.attribs[K];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+K,ce&&ce.length?n+='="'+_(ce,!0)+'"':e.allowedEmptyAttributes.includes(K)&&(n+='=""')}else delete Q.attribs[K]}),e.selfClosing.indexOf($)!==-1?n+=" />":(n+=">",Q.innerText&&!J&&!e.textFilter&&(n+=_(Q.innerText),k=!0)),ee&&(n=o+_(n),o=""),Q.openingTagLength=n.length-Q.tagPosition},ontext:function($){if(R)return;const I=T[T.length-1];let Q;if(I&&(Q=I.tag,$=I.innerText!==void 0?I.innerText:$),e.disallowedTagsMode==="completelyDiscard"&&!u(Q))$="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(Q==="script"||Q==="style"))n+=$;else if(!k){const ee=_($,!1);e.textFilter?n+=e.textFilter(ee,Q):n+=ee}if(T.length){const ee=T[T.length-1];ee.text+=$}},onclosetag:function($,I){if(e.onCloseTag&&e.onCloseTag($,I),R)if(j--,!j)R=!1;else return;const Q=T.pop();if(!Q)return;if(Q.tag!==$){T.push(Q);return}R=e.enforceHtmlBoundary?$==="html":!1,C--;const ee=M[C];if(ee){if(delete M[C],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){Q.updateParentNodeText();return}o=n,n=""}if(E[C]&&($=E[C],delete E[C]),e.exclusiveFilter){const J=e.exclusiveFilter(Q);if(J==="excludeTag"){ee&&(n=o,o=""),n=n.substring(0,Q.tagPosition)+n.substring(Q.tagPosition+Q.openingTagLength);return}else if(J){n=n.substring(0,Q.tagPosition);return}}if(Q.updateParentNodeMediaChildren(),Q.updateParentNodeText(),e.selfClosing.indexOf($)!==-1||I&&!u($)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){ee&&(n=o,o="");return}n+="</"+$+">",ee&&(n=o+_(n),o=""),k=!1}},e.parser);return P.write(t),P.end(),n;function z(){n="",C=0,T=[],M={},E={},R=!1,j=0}function _($,I){return typeof $!="string"&&($=$+""),e.parser.decodeEntities&&($=$.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),I&&($=$.replace(/"/g,"""))),$=$.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),I&&($=$.replace(/"/g,""")),$}function B($,I){for(I=I.replace(/[\x00-\x20]+/g,"");;){const J=I.indexOf("<!--");if(J===-1)break;const L=I.indexOf("-->",J+4);if(L===-1)break;I=I.substring(0,J)+I.substring(L+3)}const Q=I.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!Q)return I.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const ee=Q[1].toLowerCase();return va(e.allowedSchemesByTag,$)?e.allowedSchemesByTag[$].indexOf(ee)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(ee)===-1}function G($){if($=$.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),$.startsWith("relative:"))throw new Error("relative: exploit attempt");let I="relative://relative-site";for(let J=0;J<100;J++)I+=`/${J}`;const Q=new URL($,I);return{isRelativeUrl:Q&&Q.hostname==="relative-site"&&Q.protocol==="relative:",url:Q}}function D($,I){if(!I)return $;const Q=$.nodes[0];let ee;return I[Q.selector]&&I["*"]?ee=VT(I[Q.selector],I["*"]):ee=I[Q.selector]||I["*"],ee&&($.nodes[0].nodes=Q.nodes.reduce(Y(ee),[])),$}function A($){return $.nodes[0].nodes.reduce(function(I,Q){return I.push(`${Q.prop}:${Q.value}${Q.important?" !important":""}`),I},[]).join(";")}function Y($){return function(I,Q){return va($,Q.prop)&&$[Q.prop].some(function(J){return J.test(Q.value)})&&I.push(Q),I}}function F($,I,Q){return I?($=$.split(/\s+/),$.filter(function(ee){return I.indexOf(ee)!==-1||Q.some(function(J){return J.test(ee)})}).join(" ")):$}}const CF={decodeEntities:!0};Gd.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Gd.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let s;if(r)for(s in e)o[s]=e[s];else o=e;return{tagName:t,attribs:o}}};var X3=JH(SF);let Xd=class extends xr{};N([U(),V({field_type:H.TEXTAREA,label:"HTML Content",description:"HTML content to be safely rendered after sanitization",placeholder:"<p>Enter HTML content...</p>"}),W(),ae(),q("design:type",String)],Xd.prototype,"html",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder Text",description:"Text to display when no HTML content is available",placeholder:"Loading..."}),W(),ae(),q("design:type",String)],Xd.prototype,"placeholder",void 0);Xd=N([zt("SafeSpan","1.0.0")],Xd);var TF=Xd;function $b(t){const{html:e,placeholder:r,...n}=t,{styleProps:o,htmlProps:s}=On(n);$b[Hn]=!0;const d=e?X3(e,{allowedTags:["p","br","strong","em","u","span","div","h1","h2","h3","h4","h5","h6","ul","ol","li","blockquote","pre","code","a","img"],allowedAttributes:{a:["href","title","target"],img:["src","alt","title","width","height"],span:["style","class"],div:["style","class"],p:["style","class"]},allowedSchemes:["http","https","mailto"],disallowedTagsMode:"discard",allowedSchemesByTag:{a:["http","https","mailto"],img:["http","https"]},transformTags:{a:function(p,h){return h.href&&(h.href.startsWith("http://")||h.href.startsWith("https://"))?{tagName:"a",attribs:{...h,rel:"noopener noreferrer",target:"_blank"}}:{tagName:p,attribs:h}}}}):"";return!d&&!r?null:!d&&r?c.jsx("span",{...s,...o,children:r}):c.jsx("span",{...s,...o,dangerouslySetInnerHTML:{__html:d}})}class bi extends wl{getComponentSpecificProps(){return{html:this.props.html,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return c.jsx($b,{...e})}renderWithDataBinding(){return c.jsx(EF,{...this.props})}static registerPatternHandlers(e){e.hasPattern("span.safe-content")||e.registerPattern("span.safe-content",bi.transformSafeSpan),e.hasPattern("span[data-safe]")||e.registerPattern("span[data-safe]",bi.transformSafeSpan)}static transformSafeSpan(e){const r=e.getAttribute("data-placeholder");return{tagName:"SafeSpan",props:{html:e.innerHTML,placeholder:r||void 0}}}}bi.tagName="SafeSpan";bi.version="1.0.0";function EF(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...u}=Qo(e,n,TF.getSchema(),{...r});return o?c.jsx("span",{children:"Loading..."}):s?(console.error("Error loading safe span:",s),c.jsxs("span",{children:["Error Loading Content: ",s.message]})):c.jsx($b,{...u})}function jF({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:u,helperText:d,placeholder:p,rows:h=4,maxLength:m,showPreview:b=!0,showHelp:y=!1,...v}){const[w,C]=S.useState(!1),[T,M]=S.useState(!1),E=k=>{r==null||r(k.target.value)},R=(k,P=!0)=>{if(s)return;const z=document.activeElement;if(!z||z.tagName!=="TEXTAREA")return;const _=z.selectionStart,B=z.selectionEnd,G=e.substring(_,B);let D="";P?D=`<${k}>${G}</${k}>`:D=`<${k}>`;const A=e.substring(0,_)+D+e.substring(B);r==null||r(A),setTimeout(()=>{if(P&&!G){const Y=_+k.length+2;z.setSelectionRange(Y,Y)}},0)},j=X3(e||"",{allowedTags:["b","i","u","strong","em","p","br","code","pre","span","div"],allowedAttributes:{"*":["style","class"]}});return c.jsxs(ne,{...v,children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",mb:1,flexWrap:"wrap",gap:1},children:[c.jsxs(me,{variant:"body2",color:"text.secondary",children:[t,o&&c.jsx("span",{style:{color:"error.main"},children:" *"})]}),c.jsx(ne,{sx:{flexGrow:1}}),c.jsxs(aL,{size:"small",disabled:s||w,children:[c.jsx(_r,{title:"Bold",children:c.jsx(sr,{onClick:()=>R("b"),children:c.jsx(Q$,{})})}),c.jsx(_r,{title:"Italic",children:c.jsx(sr,{onClick:()=>R("i"),children:c.jsx(K$,{})})}),c.jsx(_r,{title:"Underline",children:c.jsx(sr,{onClick:()=>R("u"),children:c.jsx(Z$,{})})}),c.jsx(_r,{title:"Code",children:c.jsx(sr,{onClick:()=>R("code"),children:c.jsx(b5,{})})})]}),b&&c.jsx(_r,{title:w?"Edit Mode":"Preview Mode",children:c.jsx(sr,{onClick:()=>C(!w),disabled:s,children:w?c.jsx(iv,{}):c.jsx(E5,{})})}),y&&c.jsx(_r,{title:"HTML Help",children:c.jsx(sr,{onClick:()=>M(!T),children:c.jsx(S5,{})})})]}),c.jsx(_d,{in:T,children:c.jsx(ar,{severity:"info",sx:{mb:2},children:c.jsx(me,{variant:"body2",children:"Supported HTML tags: <b>, <i>, <u>, <strong>, <em>, <p>, <br>, <code>, <pre>"})})}),w?c.jsx(ne,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2,minHeight:h*24,backgroundColor:"background.paper"},children:c.jsx(bi,{html:j,placeholder:"No content to preview"})}):c.jsx(At,{fullWidth:!0,multiline:!0,rows:h,value:e,onChange:E,onFocus:n,placeholder:p,disabled:s,error:!!u,helperText:u||d||(m?`${e.length}/${m}`:void 0),inputProps:{maxLength:m},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:"0.875rem"}}})]})}const Y3=ci({tagName:"HtmlInputField",version:"1.0.0",role:"view",View:jF});function AF({label:t="Options",options:e=[],onOptionChange:r,onAddOption:n,onChoiceFieldFocus:o,disabled:s=!1,placeholder:u="Enter option text. HTML formatting supported.",optionLabelPrefix:d="Option",rows:p=2,maxOptions:h=10,...m}){const b=w=>C=>{r==null||r(w,C)},y=w=>()=>{o==null||o(w)},v=()=>{e.length<h&&(n==null||n())};return c.jsxs(ne,{...m,children:[c.jsx(me,{variant:"h6",gutterBottom:!0,children:t}),e.length===0&&c.jsx(ar,{severity:"info",sx:{mb:2},children:'No options added yet. Click "Add Option" to get started.'}),e.map((w,C)=>c.jsx(ne,{sx:{mb:2},children:c.jsx(Y3,{label:`${d} ${C+1}`,value:w,onChange:b(C),onFocus:y(C),placeholder:u,rows:p,disabled:s,showPreview:!0,showHelp:!1})},C)),e.length<h&&c.jsx($n,{variant:"outlined",startIcon:c.jsx(y5,{}),onClick:v,disabled:s,sx:{mt:1},children:"Add Option"}),e.length>=h&&c.jsxs(me,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:1},children:["Maximum number of options (",h,") reached."]})]})}const MF=ci({tagName:"ChoiceInputField",version:"1.0.0",role:"view",View:AF});class Pm{}N([U(),V({field_type:H.TEXT,label:"Option Value",description:"The value for this option"}),ae(),q("design:type",Object)],Pm.prototype,"value",void 0);N([U(),V({field_type:H.TEXT,label:"Option Label",description:"The display text for this option"}),W(),ae(),q("design:type",String)],Pm.prototype,"label",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Whether this option is disabled"}),W(),Ot(),q("design:type",Boolean)],Pm.prototype,"disabled",void 0);let Vo=class extends gt{};N([U(),V({field_type:H.TEXT,label:"Field Label",description:"The label text displayed for this select field",placeholder:"Enter field label..."}),W(),ae(),q("design:type",String)],Vo.prototype,"label",void 0);N([U(),V({field_type:H.TEXT,label:"Selected Value",description:"The currently selected value"}),W(),ae(),q("design:type",Object)],Vo.prototype,"value",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Select Options",description:"Array of options available in the dropdown (JSON format)"}),W(),gn(),ai({each:!0}),li(()=>Pm),q("design:type",Array)],Vo.prototype,"options",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Required",description:"Whether this field is required"}),W(),Ot(),q("design:type",Boolean)],Vo.prototype,"required",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Whether this field is disabled"}),W(),Ot(),q("design:type",Boolean)],Vo.prototype,"disabled",void 0);N([U(),V({field_type:H.TEXT,label:"Error Message",description:"Error message to display when field validation fails",placeholder:"Error message..."}),W(),ae(),q("design:type",String)],Vo.prototype,"error",void 0);N([U(),V({field_type:H.TEXT,label:"Helper Text",description:"Additional helpful text displayed below the field",placeholder:"Helper text..."}),W(),ae(),q("design:type",String)],Vo.prototype,"helperText",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder Text",description:"Placeholder text shown when no value is selected",placeholder:"Select an option..."}),W(),ae(),q("design:type",String)],Vo.prototype,"placeholder",void 0);Vo=N([zt("SelectInputField","1.0.0")],Vo);function RF({label:t,value:e="",onChange:r,onFocus:n,options:o=[],required:s=!1,disabled:u=!1,error:d,helperText:p,placeholder:h,...m}){const b=re=>{r&&r(re.target.value)},{margin:y,padding:v,paddingX:w,paddingY:C,paddingTop:T,paddingRight:M,paddingBottom:E,paddingLeft:R,width:j,height:k,minWidth:P,maxWidth:z,minHeight:_,maxHeight:B,sx:G,style:D,span:A,xs:Y,sm:F,md:$,lg:I,xl:Q,background:ee,backgroundImage:J,backgroundGradient:L,textAlign:oe,className:ue,...ce}=m,K=t?`select-label-${t.toLowerCase().replace(/\s+/g,"-")}`:void 0;return c.jsxs(Ho,{fullWidth:!0,required:s,disabled:u,error:!!d,sx:G,style:D,className:ue,...ce,children:[t&&c.jsx(ls,{id:K,children:t}),c.jsxs(wa,{labelId:K,label:t,value:e,onChange:b,onFocus:n,displayEmpty:!!h,children:[h&&c.jsx(Mr,{value:"",disabled:!0,children:c.jsx("em",{children:h})}),o.map((re,Z)=>c.jsx(Mr,{value:re.value,disabled:re.disabled,children:re.label},`${re.value}-${Z}`))]}),(d||p)&&c.jsx(Gc,{children:d||p})]})}const kF=ci({tagName:"SelectInputField",version:"1.0.0",role:"view",View:RF});function OF({label:t,checked:e=!1,onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:u,helperText:d,...p}){const h=ue=>{r==null||r(ue.target.checked)},{margin:m,padding:b,paddingX:y,paddingY:v,paddingTop:w,paddingRight:C,paddingBottom:T,paddingLeft:M,width:E,height:R,minWidth:j,maxWidth:k,minHeight:P,maxHeight:z,sx:_,style:B,span:G,xs:D,sm:A,md:Y,lg:F,xl:$,background:I,backgroundImage:Q,backgroundGradient:ee,textAlign:J,className:L,...oe}=p;return c.jsxs(Ho,{component:"fieldset",error:!!u,disabled:s,sx:_,style:B,className:L,...oe,children:[c.jsx(es,{control:c.jsx(el,{checked:e,onChange:h,onFocus:n,required:o,disabled:s}),label:t}),(u||d)&&c.jsx(Gc,{children:u||d})]})}const PF=ci({tagName:"SwitchInputField",version:"1.0.0",role:"view",View:OF});function _F({label:t,value:e="",onChange:r,onFocus:n,required:o=!1,disabled:s=!1,error:u,helperText:d,placeholder:p,type:h="text",multiline:m=!1,rows:b,maxRows:y,textFieldProps:v,...w}){const C=Ce=>{r==null||r(Ce.target.value)},{margin:T,padding:M,paddingX:E,paddingY:R,paddingTop:j,paddingRight:k,paddingBottom:P,paddingLeft:z,width:_,height:B,minWidth:G,maxWidth:D,minHeight:A,maxHeight:Y,sx:F,style:$,span:I,xs:Q,sm:ee,md:J,lg:L,xl:oe,background:ue,backgroundImage:ce,backgroundGradient:K,textAlign:re,className:Z,...ye}=w;return c.jsx(At,{...ye,fullWidth:!0,label:t,value:e,onChange:C,onFocus:n,required:o,disabled:s,error:!!u,helperText:u||d,placeholder:p,type:h,multiline:m,rows:b,maxRows:y,sx:F,style:$,className:Z,...v})}const LF=ci({tagName:"TextInputField",version:"1.0.0",role:"view",View:_F});function NF({children:t,gridProps:e,...r}){const n=e;return c.jsx(ne,{...r,...n?{"data-grid-span":n.span,"data-grid-xs":n.xs,"data-grid-sm":n.sm,"data-grid-md":n.md,"data-grid-lg":n.lg,"data-grid-xl":n.xl}:{},children:t})}const IF=ci({tagName:"GridCell",version:"1.0.0",role:"container",View:NF});function BF({children:t,columns:e,spacing:r="small",equalHeight:n=!1,height:o,width:s,minHeight:u,minWidth:d,maxHeight:p,maxWidth:h,gridProps:m,...b}){const y=In(r),v=()=>Mt.Children.toArray(t).map((C,T)=>{if(!Mt.isValidElement(C))return C;let M={};const E=C.props,R=E["data-grid-span"]||E.span,j=E["data-grid-xs"]||E.xs,k=E["data-grid-sm"]||E.sm,P=E["data-grid-md"]||E.md,z=E["data-grid-lg"]||E.lg,_=E["data-grid-xl"]||E.xl;if(R||j||k||P||z||_)if(R)M={size:R};else{const B={};j&&(B.xs=j),k&&(B.sm=k),P&&(B.md=P),z&&(B.lg=z),_&&(B.xl=_),M={size:B}}if(e&&Object.keys(M).length===0&&(M={size:{xs:12,sm:e>=3?6:12/Math.min(e,2),md:12/Math.min(e,3),lg:12/e}}),Object.keys(M).length>0){const B={...C.props};return delete B["data-grid-span"],delete B["data-grid-xs"],delete B["data-grid-sm"],delete B["data-grid-md"],delete B["data-grid-lg"],delete B["data-grid-xl"],c.jsx(Dn,{...M,children:Mt.cloneElement(C,B)},C.key||T)}return c.jsx(Mt.Fragment,{children:C},C.key||T)});return c.jsx(Dn,{container:!0,spacing:y,...b,...m?{"data-grid":JSON.stringify(m)}:{},sx:{width:"100%",height:Ui(o,"height"),minHeight:Ui(u,"minHeight"),minWidth:Ui(d,"minWidth"),maxHeight:Ui(p,"maxHeight"),maxWidth:Ui(h,"maxWidth"),...s&&{width:Ui(s,"width")},...n&&{alignItems:"stretch","& > .MuiGrid-root":{display:"flex","& > *":{width:"100%",height:"100%"}}},...b.sx},children:v()})}const _m=ci({tagName:"GridLayout",version:"1.0.0",role:"container",View:BF});let $c=class extends xr{};N([U(),V({field_type:H.TEXTAREA,label:"HTML Content",description:"HTML content to be transformed into React components",placeholder:"<p>Enter HTML content...</p>"}),W(),ae(),q("design:type",String)],$c.prototype,"children",void 0);N([U(),V({field_type:H.CHECKBOX,label:"Strip Headers",description:"Whether to remove header elements (h1-h6) from the HTML"}),W(),Ot(),q("design:type",Boolean)],$c.prototype,"stripHeaders",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder",description:"Fallback content to display when HTML is empty",placeholder:"No content available"}),W(),ae(),q("design:type",String)],$c.prototype,"placeholder",void 0);$c=N([zt("Html","1.0.0")],$c);var zF=$c;function Db({children:t="",stripHeaders:e=!1,placeholder:r,component:n="div",...o}){const{styleProps:s,htmlProps:u,restProps:d}=On(o);if(Db[Hn]=!0,!t||!t.trim())return r?c.jsx(ne,{component:n,...u,...s,...d,sx:{opacity:.6,fontStyle:"italic",...s.sx},children:r}):null;try{let p=t;e&&(p=p.replace(/<h[1-6][^>]*>.*?<\/h[1-6]>/gi,""));const h=dn.transformHTML(p);return c.jsx(ne,{component:n,...u,...s,...d,sx:{"& > *:not(:last-child)":{mb:1.5},"& h1, & h2, & h3, & h4, & h5, & h6":{mb:1.5,mt:2,"&:first-of-type":{mt:0}},"& p":{mb:1.5,lineHeight:1.6},"& ul, & ol":{mb:1.5,pl:3},...s.sx},children:h})}catch(p){return console.error("Error transforming HTML content:",p),c.jsxs(ne,{component:n,...u,...s,...d,sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)",...s.sx},children:[c.jsx("strong",{children:"HTML Transform Error:"})," ",p instanceof Error?p.message:"Unknown error",c.jsx(bi,{html:t,placeholder:"Failed to transform HTML"})]})}}class Vi extends wl{static fromJson(e){const{tagName:r,version:n,data:o}=e;if(r!==Vi.tagName)throw new Error(`Cannot deserialize: Expected tagName 'Html' but got '${r}'`);n!==Vi.version&&console.warn(`Version mismatch: Expected ${Vi.version} but got ${n}`);const{children:s,...u}=o||{};return c.jsx(Vi,{...u,children:dn.deserialize(s)})}getComponentSpecificProps(){return{children:this.props.children,stripHeaders:this.props.stripHeaders,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return c.jsx(Db,{...e})}renderWithDataBinding(){return c.jsx($F,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.html-content")||e.registerPattern("div.html-content",Vi.transformHtmlDiv),e.hasPattern("[data-html]")||e.registerPattern("[data-html]",Vi.transformDataHtml)}static transformHtmlDiv(e){const r=e.getAttribute("data-strip-headers")==="true",n=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:e.innerHTML,stripHeaders:r,placeholder:n||void 0}}}static transformDataHtml(e){const r=e.getAttribute("data-html")||e.innerHTML,n=e.getAttribute("data-strip-headers")==="true",o=e.getAttribute("data-placeholder");return{tagName:"Html",props:{children:r,stripHeaders:n,placeholder:o||void 0}}}}Vi.tagName="Html";Vi.version="1.0.0";function $F(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...u}=Qo(e,n,zF.getSchema(),{...r});return o?c.jsx(ne,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading HTML content..."}):s?(console.error("Error loading HTML content:",s),c.jsxs(ne,{sx:{p:2,border:"1px solid red",borderRadius:1,backgroundColor:"rgba(255, 0, 0, 0.1)"},children:[c.jsx("strong",{children:"Error Loading HTML:"})," ",s.message]})):c.jsx(Db,{...u})}class mi{static serialize(e){var r,n;if(e==null)return null;if(Array.isArray(e))return{type:"array",children:e.map(o=>mi.serialize(o))};if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return{type:"primitive",value:e};if(S.isValidElement(e)){const o=e,s=o.type,u=typeof s=="string"?s:((r=s==null?void 0:s.render)==null?void 0:r.name)||(s==null?void 0:s.name)||(s==null?void 0:s.muiName)||(s==null?void 0:s.displayName)||"Anonymous";return{type:"react-element",elementType:typeof u=="string"?((n=u.match(/^[A-Za-z]+?\(([^)]+)\)$/))==null?void 0:n[1])||u:"Anonymous",props:mi.serializeProps(o.props),key:o.key}}if(typeof e=="object"&&e!==null)try{const o={type:"object",data:{}};for(const[s,u]of Object.entries(e))o.data[s]=mi.serialize(u);return o}catch{return{type:"string",value:String(e)}}return{type:"string",value:String(e)}}static deserialize(e){var r;if(e==null)return null;if(typeof e=="object"&&e.type)switch(e.type){case"primitive":return e.value;case"string":return e.value;case"array":return((r=e.children)==null?void 0:r.map(n=>mi.deserialize(n)))||[];case"react-element":return mi.deserializeReactElement(e);case"object":{const n={};if(e.data&&typeof e.data=="object")for(const[o,s]of Object.entries(e.data))n[o]=mi.deserialize(s);return n}default:return String(e.value||e)}return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:String(e)}static serializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=mi.serialize(o):typeof o=="function"?r[n]=null:r[n]=o;return r}static deserializeReactElement(e){const r=e,{elementType:n,props:o,key:s}=r;try{if(typeof n=="string"){const u=mi.deserializeProps(o);return S.createElement(n,{key:s,...u})}}catch(u){console.warn("Error deserializing React element:",u)}return S.createElement(Vi,{key:s,children:o.children})}static deserializeProps(e){if(!e||typeof e!="object")return e;const r={};for(const[n,o]of Object.entries(e))n==="children"?r[n]=mi.deserialize(o):r[n]=o;return r}static extractTextContent(e){return e?typeof e.children=="string"?e.children:e.title&&typeof e.title=="string"?e.title:e.label&&typeof e.label=="string"?e.label:e.text&&typeof e.text=="string"?e.text:null:null}}const Ao=new Map,Qs=new Map;let pc=!0;const DF="__react_node__",HF="1.0.0";let dn=class Bn{static setStrictMode(e){pc=e}static isStrictMode(){return pc}static registerComponent(e){const{tagName:r,version:n}=e;if(!r||typeof r!="string")throw new Error("Component class must have a static 'tagName' property");if(!n||typeof n!="string")throw new Error(`Component class '${r}' must have a static 'version' property`);if(typeof e.fromJson!="function")throw new Error(`Component class '${r}' must implement static 'fromJson' method`);Ao.has(r)&&console.warn(`Component '${r}' is already registered. Overwriting existing registration.`),Ao.set(r,e);const o=e;typeof o.registerPatternHandlers=="function"&&o.registerPatternHandlers(Bn)}static serialize(e){const r=Bn.serializeNode(e);return JSON.stringify(r)}static deserialize(e){if(typeof e=="string")try{const r=JSON.parse(e);return Bn.deserializeData(r)}catch{return e}return e==null?null:Bn.deserializeData(e)}static isSerializedComponent(e){return!!e&&typeof e=="object"&&typeof e.tagName=="string"&&typeof e.version=="string"&&"data"in e}static deserializeData(e){if(e==null)return null;if(Array.isArray(e))return e.map(r=>Bn.deserializeData(r));if(Bn.isSerializedComponent(e)){const{key:r,tagName:n,data:o}=e;try{const s=Ao.get(n);if(!s){if(pc)throw new Error(`Component '${n}' is not registered in strict mode`);const d=Bn.deserializeUnregisteredComponent(o);return r?Mt.cloneElement(d,{key:r}):d}const u=s.fromJson(e);return r?Mt.cloneElement(u,{key:r}):u}catch(s){if(pc)throw s;console.error(`TEST: Error deserializing component '${n}':`,s)}}if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;console.warn("TEST: Unrecognized data:",e);{const r=typeof e=="object"?JSON.stringify(e,null,2):String(e);return Mt.createElement(bi,{html:`<pre>${r}</pre>`})}}static serializeNode(e){if(e==null)return null;if(Array.isArray(e))return e.map(n=>Bn.serializeNode(n));if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof e=="object"&&"type"in e){const n=e,o=n.key?{key:String(n.key)}:{},s=n.type;if(typeof s=="function"){const u=Bn.findTagNameForComponent(s);if(u){const d=Ao.get(u);let p=null;const h=d;if(typeof h.toJson=="function"&&(p=h.toJson(n.props)),p!==null)return p.data&&p.data.children!==void 0&&(p.data.children=Bn.serializeNode(p.data.children)),{...o,...p}}else if(pc){const d=s,p=d.displayName||d.name||"Unknown";throw new Error(`Unregistered component '${p}' cannot be serialized in strict mode`)}}}if(pc)throw new Error(`Cannot serialize unregistered node in strict mode: ${typeof e=="object"&&e&&"type"in e?e.type:typeof e}`);return{tagName:DF,version:HF,data:mi.serialize(e)}}static deserializeUnregisteredComponent(e){return mi.deserialize(e)}static findTagNameForComponent(e){for(const[o,s]of Ao.entries())if(s===e)return o;const r=e==null?void 0:e.tagName;if(typeof r=="string"&&Ao.has(r))return r;const n=(e==null?void 0:e.displayName)||(e==null?void 0:e.name);if(n){const o=n.replace(/^[A-Za-z]+?\(([^)]+)\)$/,"$1").replace(/WithDataBinding$/,"");if(Ao.has(o))return o;if(Ao.has(n))return n}return null}static getRegisteredComponents(){return Array.from(Ao.keys())}static clearRegistry(){Ao.clear(),Qs.clear()}static registerPattern(e,r){Qs.has(e)&&console.warn(`Pattern '${e}' is already registered. Overwriting existing handler.`),Qs.set(e,r)}static hasPattern(e){return Qs.has(e)}static transformHTMLElement(e){for(const[r,n]of Qs)if(e.matches(r))try{const o=n(e);return Bn.deserialize(o)}catch(o){return console.warn(`Error transforming element with pattern '${r}':`,o),null}return null}static transformHTML(e){if(!e.trim())return[];const n=new DOMParser().parseFromString(e,"text/html");return Array.from(n.body.children).map((o,s)=>Bn.transformElement(o,`element-${s}`))}static transformElement(e,r){const n=Bn.transformHTMLElement(e);if(n)return n;const o=Array.from(e.children);if(o.some(u=>Array.from(Qs.keys()).some(d=>u.matches(d)))){const u=o.map((d,p)=>Bn.transformElement(d,`${r}-${p}`));return Mt.createElement(e.tagName.toLowerCase(),{key:r,className:e.className||void 0,id:e.id||void 0},u)}return mi.deserialize({type:"react-element",elementType:e.tagName.toLowerCase(),props:{key:r,className:e.className||void 0,id:e.id||void 0,dangerouslySetInnerHTML:{__html:e.innerHTML}}})}static getRegisteredPatterns(){return Array.from(Qs.keys())}};function UF(){dn.registerComponent(OH),dn.registerComponent(Sc),dn.registerComponent(wc),dn.registerComponent(Vr),dn.registerComponent(L5),dn.registerComponent(Et),dn.registerComponent($H),dn.registerComponent(_m),dn.registerComponent(IF),dn.registerComponent(LF),dn.registerComponent(kF),dn.registerComponent(Y3),dn.registerComponent(MF),dn.registerComponent(PF),dn.registerComponent(Kc)}UF();let Yd=class extends xr{};N([U(),V({field_type:H.TEXTAREA,label:"HTML Content",description:"Raw HTML content to transform and render",placeholder:"Enter HTML content..."}),ae(),W(),q("design:type",String)],Yd.prototype,"html",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Skip Header",description:"Skip/remove header elements before rendering"}),W(),q("design:type",Boolean)],Yd.prototype,"skipHeader",void 0);Yd=N([zt("Article","1.0.0")],Yd);var VF=Yd;function Hb({html:t="",skipHeader:e=!1,...r}){const{styleProps:n,htmlProps:o,restProps:s}=On(r);return Hb[Hn]=!0,t.trim()?c.jsx(Vi,{component:"article",stripHeaders:e,placeholder:"No content available",...o,...s,...n,maxWidth:"900px",mx:"auto",px:{xs:2,sm:3,md:4},py:{xs:3,md:5},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',fontWeight:700,letterSpacing:"-0.02em",color:"var(--theme-text)",scrollMarginTop:"100px","&:first-of-type":{mt:0}},"& h1":{fontSize:{xs:"2rem",md:"2.75rem"},lineHeight:1.15,mb:3,mt:5},"& h2":{fontSize:{xs:"1.5rem",md:"2rem"},lineHeight:1.25,mb:2.5,mt:5,pb:1.5,borderBottom:"1px solid var(--theme-border-lighter)"},"& h3":{fontSize:{xs:"1.25rem",md:"1.5rem"},lineHeight:1.3,mb:2,mt:4},"& h4":{fontSize:{xs:"1.1rem",md:"1.25rem"},lineHeight:1.4,mb:1.5,mt:3,color:"var(--theme-text)",fontWeight:600},"& p":{fontSize:{xs:"1rem",md:"1.0625rem"},lineHeight:1.75,mb:2,color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&:last-child":{mb:0}},"& ul, & ol":{mb:3,pl:{xs:3,md:4},"& li":{mb:1.25,lineHeight:1.7,fontSize:{xs:"1rem",md:"1.0625rem"},color:"var(--theme-text)",fontFamily:'Georgia, "Times New Roman", serif',"&::marker":{color:"var(--theme-primary)",fontWeight:600},"& p":{mb:.5}},"& ul, & ol":{mt:1,mb:0}},"& pre":{backgroundColor:"var(--theme-surface-elevated)",color:"var(--theme-text)",borderRadius:"var(--theme-border-radius)",p:{xs:2,md:3},mb:3,overflow:"auto",fontSize:"0.9rem",lineHeight:1.6,fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',border:"1px solid var(--theme-border-light)",boxShadow:"var(--theme-elevation-2)","& code":{backgroundColor:"transparent",color:"inherit",padding:0,fontSize:"inherit",fontFamily:"inherit"}},"& code":{backgroundColor:"var(--theme-code-bg)",color:"var(--theme-error)",padding:"0.2em 0.4em",borderRadius:"var(--theme-border-radius-small)",fontSize:"0.9em",fontFamily:'"Fira Code", "Cascadia Code", "SF Mono", Monaco, Consolas, monospace',fontWeight:500},"& blockquote":{borderLeft:"4px solid var(--theme-primary)",backgroundColor:"var(--theme-surface-variant)",borderRadius:"0 var(--theme-border-radius-small) var(--theme-border-radius-small) 0",pl:3,pr:3,py:2.5,my:4,ml:0,mr:0,"& p":{fontSize:{xs:"1.05rem",md:"1.125rem"},fontStyle:"italic",lineHeight:1.6,mb:1.5,color:"var(--theme-text)","&:last-child":{mb:0}},"& cite":{display:"block",fontSize:"0.9rem",fontStyle:"normal",fontWeight:500,color:"var(--theme-text)",mt:1,"&::before":{content:'"— "',color:"var(--theme-primary)"}}},"& table":{width:"100%",borderCollapse:"separate",borderSpacing:0,mb:3,fontSize:"0.95rem",overflow:"hidden",borderRadius:"var(--theme-border-radius-small)",border:"1px solid var(--theme-border-light)","& thead":{backgroundColor:"var(--theme-surface-variant)","& th":{padding:"12px 16px",textAlign:"left",fontWeight:600,color:"var(--theme-text)",borderBottom:"2px solid var(--theme-border-main)",fontSize:"0.875rem",textTransform:"uppercase",letterSpacing:"0.05em"}},"& tbody":{"& tr":{borderBottom:"1px solid var(--theme-border-lighter)",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"var(--theme-surface-variant)"},"&:last-child":{borderBottom:"none"}},"& td":{padding:"12px 16px",color:"var(--theme-text)",lineHeight:1.6}}},"& strong":{fontWeight:700,color:"var(--theme-text)"},"& em":{fontStyle:"italic",color:"var(--theme-text)"},"& a":{color:"var(--theme-primary)",textDecoration:"none",fontWeight:500,borderBottom:"1px solid transparent",transition:"border-color 0.2s ease","&:hover":{borderBottomColor:"var(--theme-primary)"},"&:focus-visible":{outline:"2px solid var(--theme-primary)",outlineOffset:"2px",borderRadius:"2px"}},"& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",display:"block",my:3},"& figure":{margin:"3rem 0","& img":{maxWidth:"100%",height:"auto",borderRadius:"var(--theme-border-radius-small)",boxShadow:"var(--theme-elevation-2)"},"& figcaption":{textAlign:"center",fontSize:"0.875rem",color:"var(--theme-text)",mt:1.5,fontStyle:"italic"}},"& hr":{border:"none",borderTop:"1px solid var(--theme-border-light)",my:5},...n.sx,children:t}):c.jsxs(ne,{component:"article",...o,...n,sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center",opacity:.6,...n.sx},children:[c.jsx(me,{variant:"h6",color:"var(--theme-text)",children:"No Content Available"}),c.jsx(me,{variant:"body2",color:"var(--theme-text)",children:"No HTML content provided for this article"})]})}class Lm extends wl{getComponentSpecificProps(){return{html:this.props.html,skipHeader:this.props.skipHeader}}renderView(){const{...e}=this.props;return c.jsx(Hb,{...e})}renderWithDataBinding(){return c.jsx(qF,{...this.props})}static registerPatternHandlers(e){e.hasPattern("article")||e.registerPattern("article",Lm.transformArticle)}static transformArticle(e){const r=e.getAttribute("data-skip-header")==="true";return{tagName:"Article",props:{html:e.innerHTML,skipHeader:r}}}}Lm.tagName="Article";Lm.version="1.0.0";function qF(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...u}=Qo(e,n,VF.getSchema(),{...r});return o?c.jsxs(ne,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[c.jsx(me,{variant:"h6",children:"Loading Article..."}),c.jsx(me,{variant:"body2",color:"var(--theme-text)",children:"Loading"})]}):s?(console.error("Error loading article:",s),c.jsxs(ne,{component:"article",sx:{maxWidth:"800px",mx:"auto",p:4,textAlign:"center"},children:[c.jsx(me,{variant:"h6",children:"Error Loading Article"}),c.jsx(me,{variant:"body2",color:"var(--theme-text)",children:s.message})]})):c.jsx(Hb,{...u})}let ti=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Label",description:"Button label text",placeholder:"Enter button text..."}),W(),ae(),q("design:type",String)],ti.prototype,"label",void 0);N([U(),V({field_type:H.SELECT,label:"Variant",description:"Visual style variant",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"},{label:"Contained",value:"contained"}]}}),W(),qe(["primary","secondary","outlined","text","contained"]),q("design:type",String)],ti.prototype,"variant",void 0);N([U(),V({field_type:H.SELECT,label:"Size",description:"Button size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),qe(["small","medium","large"]),q("design:type",String)],ti.prototype,"buttonSize",void 0);N([U(),V({field_type:H.TEXT,label:"Icon",description:"Icon to display (before text)",placeholder:"Icon identifier..."}),W(),ae(),q("design:type",String)],ti.prototype,"icon",void 0);N([U(),V({field_type:H.TEXT,label:"End Icon",description:"Icon to display after text",placeholder:"End icon identifier..."}),W(),ae(),q("design:type",String)],ti.prototype,"endIcon",void 0);N([U(),V({field_type:H.URL,label:"URL",description:"Link URL - button becomes a link",placeholder:"https://..."}),W(),bm(),q("design:type",String)],ti.prototype,"href",void 0);N([U(),V({field_type:H.SELECT,label:"Target",description:"Link target (when href is provided)",validation:{options:[{label:"Blank",value:"_blank"},{label:"Self",value:"_self"},{label:"Parent",value:"_parent"},{label:"Top",value:"_top"}]}}),W(),qe(["_blank","_self","_parent","_top"]),q("design:type",String)],ti.prototype,"target",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),q("design:type",Boolean)],ti.prototype,"disabled",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Loading",description:"Loading state - shows spinner and disables interaction"}),W(),q("design:type",Boolean)],ti.prototype,"loading",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Full Width",description:"Full width button"}),W(),q("design:type",Boolean)],ti.prototype,"fullWidth",void 0);ti=N([zt("Action","1.0.0")],ti);let qo=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Title",description:"Main heading for the content block",placeholder:"Enter content title..."}),W(),ae(),q("design:type",String)],qo.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Subtitle",description:"Secondary heading or description",placeholder:"Enter subtitle..."}),W(),ae(),q("design:type",String)],qo.prototype,"subtitle",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Content",description:"Main content body (HTML supported)",placeholder:"Enter content body..."}),W(),ae(),q("design:type",Object)],qo.prototype,"children",void 0);N([U(),V({field_type:H.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),gn(),ai({each:!0}),li(()=>ti),q("design:type",Array)],qo.prototype,"actions",void 0);N([U(),V({field_type:H.SELECT,label:"Variant",description:"Background/elevation style",validation:{options:[{label:"Default",value:"default"},{label:"Elevated",value:"elevated"},{label:"Outlined",value:"outlined"},{label:"Filled",value:"filled"}]}}),W(),qe(["default","elevated","outlined","filled"]),q("design:type",String)],qo.prototype,"variant",void 0);N([U(),V({field_type:H.SELECT,label:"Block Spacing",description:"Content padding size",validation:{options:[{label:"None",value:"none"},{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),qe(["none","compact","comfortable","spacious"]),q("design:type",String)],qo.prototype,"blockSpacing",void 0);N([U(),V({field_type:H.SELECT,label:"Content Max Width",description:"Maximum content width constraint",validation:{options:[{label:"XS",value:"xs"},{label:"SM",value:"sm"},{label:"MD",value:"md"},{label:"LG",value:"lg"},{label:"XL",value:"xl"},{label:"Full Width",value:"false"}]}}),W(),qe(["xs","sm","md","lg","xl","false"]),q("design:type",String)],qo.prototype,"contentMaxWidth",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Centered",description:"Center align content"}),W(),Ot(),q("design:type",Boolean)],qo.prototype,"centered",void 0);qo=N([zt("Content","1.0.0")],qo);let Qd=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Label",description:'Metadata label (e.g., "followers", "posts")',placeholder:"followers"}),ae(),q("design:type",String)],Qd.prototype,"label",void 0);N([U(),V({field_type:H.TEXT,label:"Value",description:'Metadata value (e.g., "1.2k", "42")',placeholder:"1.2k"}),ae(),q("design:type",String)],Qd.prototype,"value",void 0);Qd=N([zt("MetadataItem","1.0.0")],Qd);let Tn=class extends xr{};N([U(),V({field_type:H.IMAGE,label:"Cover Image",description:"Large banner/cover image URL",placeholder:"Upload cover image"}),W(),ae(),q("design:type",String)],Tn.prototype,"coverImage",void 0);N([U(),V({field_type:H.TEXT,label:"Cover Image Alt Text",description:"Alternative text for cover image",placeholder:"Descriptive alt text..."}),W(),ae(),q("design:type",String)],Tn.prototype,"coverImageAlt",void 0);N([U(),V({field_type:H.IMAGE,label:"Profile Image",description:"Profile/avatar image URL",placeholder:"Upload profile image"}),W(),ae(),q("design:type",String)],Tn.prototype,"profileImage",void 0);N([U(),V({field_type:H.TEXT,label:"Profile Image Alt Text",description:"Alternative text for profile image",placeholder:"Profile alt text..."}),W(),ae(),q("design:type",String)],Tn.prototype,"profileImageAlt",void 0);N([U(),V({field_type:H.SELECT,label:"Profile Image Size",description:"Size of the profile image",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),qe(["small","medium","large"]),q("design:type",String)],Tn.prototype,"profileImageSize",void 0);N([U(),V({field_type:H.TEXT,label:"Overline",description:"Small text above the main title",placeholder:"Overline text"}),W(),ae(),q("design:type",String)],Tn.prototype,"overline",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Main heading/title text",placeholder:"Enter title..."}),ae(),q("design:type",String)],Tn.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Subtitle",description:"Secondary text below the title",placeholder:"Enter subtitle..."}),W(),ae(),q("design:type",String)],Tn.prototype,"subtitle",void 0);N([U(),V({field_type:H.REPEATER,label:"Metadata",description:"Array of metadata items (followers, posts, etc.)"}),W(),gn(),ai({each:!0}),li(()=>Qd),q("design:type",Array)],Tn.prototype,"metadata",void 0);N([U(),V({field_type:H.REPEATER,label:"Tags",description:"Array of tag strings"}),W(),gn(),ae({each:!0}),q("design:type",Array)],Tn.prototype,"tags",void 0);N([U(),V({field_type:H.REPEATER,label:"Actions",description:"Array of action buttons"}),W(),gn(),ai({each:!0}),li(()=>Uo),q("design:type",Array)],Tn.prototype,"actions",void 0);N([U(),V({field_type:H.NUMBER,label:"Max Visible Actions",description:"Maximum visible actions before overflow",validation:{min:1,max:10}}),W(),Lr(),si(1),Sl(10),q("design:type",Number)],Tn.prototype,"maxVisibleActions",void 0);N([U(),V({field_type:H.NUMBER,label:"Banner Height",description:"Height of the banner area in pixels",validation:{min:100,max:500}}),W(),Lr(),si(100),Sl(500),q("design:type",Number)],Tn.prototype,"height",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),q("design:type",String)],Tn.prototype,"className",void 0);N([U(),V({field_type:H.SELECT,label:"Profile Position",description:"Position of profile image relative to banner",validation:{options:[{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Center",value:"bottom-center"},{label:"Overlay Center",value:"overlay-center"}]}}),W(),qe(["bottom-left","bottom-center","overlay-center"]),q("design:type",String)],Tn.prototype,"profilePosition",void 0);Tn=N([zt("PageBannerHeader","1.0.0")],Tn);let Fo=class extends xr{};N([U(),V({field_type:H.TEXT,label:"ID",description:"Unique identifier for the feature item",placeholder:"feature-id"}),ae(),xs(),q("design:type",String)],Fo.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Icon",description:"Feature icon (emoji or icon name)",placeholder:"🚀 or icon-name"}),W(),ae(),q("design:type",String)],Fo.prototype,"icon",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Feature title",placeholder:"Feature title..."}),ae(),q("design:type",String)],Fo.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Description",description:"Feature description",placeholder:"Feature description..."}),ae(),q("design:type",String)],Fo.prototype,"description",void 0);N([U(),V({field_type:H.TEXT,label:"Action",description:"Optional action/link text or content",placeholder:"Learn more"}),W(),ae(),q("design:type",String)],Fo.prototype,"action",void 0);Fo=N([zt("FeatureItem","1.0.0")],Fo);let gl=class extends xr{};N([U(),V({field_type:H.REPEATER,label:"Features",description:"Array of feature items"}),gn(),ai({each:!0}),li(()=>Fo),q("design:type",Array)],gl.prototype,"features",void 0);N([U(),V({field_type:H.SELECT,label:"Columns",description:"Number of columns in the grid",validation:{options:[{label:"1 Column",value:1},{label:"2 Columns",value:2},{label:"3 Columns",value:3},{label:"4 Columns",value:4},{label:"5 Columns",value:5},{label:"6 Columns",value:6}]}}),W(),Lr(),qe([1,2,3,4,5,6]),q("design:type",Number)],gl.prototype,"columns",void 0);N([U(),V({field_type:H.SELECT,label:"Gap",description:"Grid gap size",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}}),W(),qe(["small","medium","large"]),q("design:type",String)],gl.prototype,"gap",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Equal Height",description:"Whether all grid items should have equal height"}),W(),Ot(),q("design:type",Boolean)],gl.prototype,"equalHeight",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-class"}),W(),ae(),q("design:type",String)],gl.prototype,"className",void 0);gl=N([zt("FeatureGrid","1.0.0")],gl);let Kr=class extends xr{};N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Collapsed",description:"Whether the layout is currently collapsed"}),W(),Ot(),q("design:type",Boolean)],Kr.prototype,"collapsed",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Default Collapsed",description:"Initial collapsed state for uncontrolled usage"}),W(),Ot(),q("design:type",Boolean)],Kr.prototype,"defaultCollapsed",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Main title displayed in the header",placeholder:"Enter title..."}),W(),ae(),q("design:type",String)],Kr.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Subtitle",description:"Secondary text displayed below the title",placeholder:"Enter subtitle..."}),W(),ae(),q("design:type",String)],Kr.prototype,"subtitle",void 0);N([U(),V({field_type:H.TEXT,label:"Lead Icon",description:"Icon displayed before the title (icon identifier or HTML)",placeholder:"Icon identifier..."}),W(),ae(),q("design:type",String)],Kr.prototype,"leadIcon",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Header Actions",description:"Additional controls displayed in header (HTML/React content)",placeholder:"Enter header actions HTML..."}),W(),ae(),q("design:type",String)],Kr.prototype,"headerActions",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Collapsed View",description:"Summary content shown when collapsed (HTML supported)",placeholder:"Enter collapsed view content..."}),W(),ae(),q("design:type",String)],Kr.prototype,"collapsedView",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Content",description:"Main content shown when expanded (HTML supported)",placeholder:"Enter main content..."}),W(),ae(),q("design:type",Object)],Kr.prototype,"children",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Footer View",description:"Always visible footer content (HTML supported)",placeholder:"Enter footer content..."}),W(),ae(),q("design:type",String)],Kr.prototype,"footerView",void 0);N([U({defaultValue:"header"}),V({field_type:H.SELECT,label:"Trigger Area",description:"Area that responds to clicks for toggle functionality",validation:{options:[{label:"Button Only",value:"button"},{label:"Header Area",value:"header"},{label:"Button and Header",value:"both"}]}}),W(),qe(["button","header","both"]),q("design:type",String)],Kr.prototype,"triggerArea",void 0);N([U({defaultValue:"slide"}),V({field_type:H.SELECT,label:"Animation Style",description:"Animation variant for expand/collapse transitions",validation:{options:[{label:"Fade",value:"fade"},{label:"Slide",value:"slide"},{label:"Scale",value:"scale"}]}}),W(),qe(["fade","slide","scale"]),q("design:type",String)],Kr.prototype,"animationStyle",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Persist State",description:"Save collapse state in local storage"}),W(),Ot(),q("design:type",Boolean)],Kr.prototype,"persistState",void 0);N([U(),V({field_type:H.TEXT,label:"Collapsed Icon",description:"Icon shown when content is collapsed (default: VisibilityIcon)",placeholder:"Icon identifier..."}),W(),ae(),q("design:type",String)],Kr.prototype,"collapsedIcon",void 0);N([U(),V({field_type:H.TEXT,label:"Expanded Icon",description:"Icon shown when content is expanded (default: VisibilityOffIcon)",placeholder:"Icon identifier..."}),W(),ae(),q("design:type",String)],Kr.prototype,"expandedIcon",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Divider",description:"Show divider lines between header, content, and footer sections"}),W(),Ot(),q("design:type",Boolean)],Kr.prototype,"showDivider",void 0);N([U({defaultValue:"default"}),V({field_type:H.SELECT,label:"Variant",description:"Visual style variant for the layout container",validation:{options:[{label:"Default",value:"default"},{label:"Outlined",value:"outlined"},{label:"Elevated",value:"elevated"},{label:"Filled",value:"filled"}]}}),W(),qe(["default","outlined","elevated","filled"]),q("design:type",String)],Kr.prototype,"variant",void 0);N([U({defaultValue:"comfortable"}),V({field_type:H.SELECT,label:"Header Spacing",description:"Padding/spacing within the header area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),qe(["compact","comfortable","spacious"]),q("design:type",String)],Kr.prototype,"headerSpacing",void 0);N([U({defaultValue:"comfortable"}),V({field_type:H.SELECT,label:"Content Spacing",description:"Padding/spacing within the content area",validation:{options:[{label:"Compact",value:"compact"},{label:"Comfortable",value:"comfortable"},{label:"Spacious",value:"spacious"}]}}),W(),qe(["compact","comfortable","spacious"]),q("design:type",String)],Kr.prototype,"contentSpacing",void 0);Kr=N([zt("CollapsibleLayout","1.0.0")],Kr);let cs=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Action ID",description:"Unique identifier for the action",placeholder:"action-1"}),ae(),xs(),q("design:type",String)],cs.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Label",description:"Action button label",placeholder:"Button text..."}),ae(),q("design:type",String)],cs.prototype,"label",void 0);N([U(),V({field_type:H.SELECT,label:"Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),qe(["contained","outlined","text"]),q("design:type",String)],cs.prototype,"variant",void 0);N([U(),V({field_type:H.SELECT,label:"Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),qe(["primary","secondary","error"]),q("design:type",String)],cs.prototype,"color",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),q("design:type",Boolean)],cs.prototype,"disabled",void 0);cs=N([zt("FeatureCardAction","1.0.0")],cs);let us=class extends xr{};N([U({type:dt.OBJECT}),V({field_type:H.FORM,label:"Feature Data",description:"Single feature item to display"}),W(),ai(),li(()=>Fo),q("design:type",Fo)],us.prototype,"feature",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Features List",description:"List of feature strings for list variant"}),W(),gn(),ae({each:!0}),q("design:type",Array)],us.prototype,"features",void 0);N([U({defaultValue:"standard"}),V({field_type:H.SELECT,label:"Card Type",description:"Display variant for the feature card",validation:{options:[{label:"Standard",value:"standard"},{label:"List",value:"list"}]}}),W(),qe(["standard","list"]),q("design:type",String)],us.prototype,"variant",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Actions",description:"Custom action buttons"}),W(),gn(),ai({each:!0}),li(()=>cs),q("design:type",Array)],us.prototype,"actions",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Title for list variant",placeholder:"Enter card title..."}),W(),ae(),q("design:type",String)],us.prototype,"title",void 0);N([U(),V({field_type:H.NUMBER,label:"Elevation",description:"Card elevation (0-24)",validation:{min:0,max:24}}),W(),Lr(),si(0),Sl(24),q("design:type",Number)],us.prototype,"elevation",void 0);us=N([zt("FeatureCard","1.0.0")],us);let yl=class extends xr{};N([U(),V({field_type:H.TEXT,label:"ID",description:"Unique identifier for the footer item",placeholder:"footer-item-id"}),ae(),xs(),q("design:type",String)],yl.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Label",description:"Display text for the footer item",placeholder:"Navigation label"}),ae(),q("design:type",String)],yl.prototype,"label",void 0);N([U(),V({field_type:H.URL,label:"URL",description:"Optional URL for links",placeholder:"https://example.com"}),W(),ae(),q("design:type",String)],yl.prototype,"href",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"External Link",description:"Whether to open links in new tab"}),W(),Ot(),q("design:type",Boolean)],yl.prototype,"external",void 0);yl=N([zt("FooterItem","1.0.0")],yl);let Dc=class extends xr{};N([U(),V({field_type:H.TEXT,label:"ID",description:"Unique identifier for the footer section",placeholder:"footer-section-id"}),ae(),xs(),q("design:type",String)],Dc.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Section title/heading",placeholder:"Section title"}),W(),ae(),q("design:type",String)],Dc.prototype,"title",void 0);N([U(),V({field_type:H.REPEATER,label:"Items",description:"Array of items in this section"}),gn(),ai({each:!0}),li(()=>yl),q("design:type",Array)],Dc.prototype,"items",void 0);Dc=N([zt("FooterSection","1.0.0")],Dc);let Wo=class extends xr{};N([U(),V({field_type:H.REPEATER,label:"Sections",description:"Footer sections with navigation items"}),W(),gn(),ai({each:!0}),li(()=>Dc),q("design:type",Array)],Wo.prototype,"sections",void 0);N([U(),V({field_type:H.TEXT,label:"Logo",description:"Optional logo or branding element (HTML or text)",placeholder:"Company Logo or HTML"}),W(),ae(),q("design:type",String)],Wo.prototype,"logo",void 0);N([U(),V({field_type:H.TEXT,label:"Copyright",description:"Copyright text",placeholder:"© 2025 Company Name"}),W(),ae(),q("design:type",String)],Wo.prototype,"copyright",void 0);N([U(),V({field_type:H.TEXT,label:"Legal Text",description:"Additional legal or info text",placeholder:"All rights reserved."}),W(),ae(),q("design:type",String)],Wo.prototype,"legalText",void 0);N([U(),V({field_type:H.SELECT,label:"Orientation",description:"Layout orientation",validation:{options:[{label:"Vertical",value:"vertical"},{label:"Horizontal",value:"horizontal"}]}}),W(),qe(["vertical","horizontal"]),q("design:type",String)],Wo.prototype,"orientation",void 0);N([U(),V({field_type:H.SELECT,label:"Variant",description:"Background variant",validation:{options:[{label:"Default",value:"default"},{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"}]}}),W(),qe(["default","contained","outlined"]),q("design:type",String)],Wo.prototype,"variant",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Show Divider",description:"Whether to show divider above footer"}),W(),Ot(),q("design:type",Boolean)],Wo.prototype,"showDivider",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-footer-class"}),W(),ae(),q("design:type",String)],Wo.prototype,"className",void 0);Wo=N([zt("Footer","1.0.0")],Wo);let ri=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Product ID",description:"Unique product identifier",placeholder:"product-1"}),ae(),xs(),q("design:type",String)],ri.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Product Name",description:"The display name of the product",placeholder:"Enter product name..."}),ae(),xs(),q("design:type",String)],ri.prototype,"name",void 0);N([U(),V({field_type:H.TEXT,label:"Category",description:"Product category or type",placeholder:"e.g., Software, Hardware, Service"}),ae(),q("design:type",String)],ri.prototype,"category",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Description",description:"Full product description",placeholder:"Detailed product description..."}),ae(),q("design:type",String)],ri.prototype,"description",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Short Description",description:"Brief product description for compact view",placeholder:"Brief description..."}),W(),ae(),q("design:type",String)],ri.prototype,"shortDescription",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Features",description:"List of key product features"}),gn(),ae({each:!0}),q("design:type",Array)],ri.prototype,"features",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Technologies",description:"Technologies used in the product"}),gn(),ae({each:!0}),q("design:type",Array)],ri.prototype,"technologies",void 0);N([U(),V({field_type:H.TEXT,label:"Status",description:"Current product status",placeholder:"e.g., Active, Development, Beta"}),ae(),q("design:type",String)],ri.prototype,"status",void 0);N([U(),V({field_type:H.IMAGE,label:"Image URL",description:"Product image or screenshot",placeholder:"https://..."}),W(),bm(),q("design:type",String)],ri.prototype,"image",void 0);N([U(),V({field_type:H.URL,label:"Product URL",description:"Live product URL (for launched products)",placeholder:"https://..."}),W(),bm(),q("design:type",String)],ri.prototype,"url",void 0);ri=N([zt("Product","1.0.0")],ri);let ds=class extends xr{};N([U(),V({field_type:H.TEXT,label:"Action ID",description:"Unique action identifier",placeholder:"action-1"}),ae(),xs(),q("design:type",String)],ds.prototype,"id",void 0);N([U(),V({field_type:H.TEXT,label:"Button Label",description:"Action button text",placeholder:"Button text..."}),ae(),q("design:type",String)],ds.prototype,"label",void 0);N([U(),V({field_type:H.SELECT,label:"Button Style",description:"Button style variant",validation:{options:[{label:"Contained",value:"contained"},{label:"Outlined",value:"outlined"},{label:"Text",value:"text"}]}}),W(),qe(["contained","outlined","text"]),q("design:type",String)],ds.prototype,"variant",void 0);N([U(),V({field_type:H.SELECT,label:"Button Color",description:"Button color theme",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Error",value:"error"}]}}),W(),qe(["primary","secondary","error"]),q("design:type",String)],ds.prototype,"color",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Disabled state"}),W(),q("design:type",Boolean)],ds.prototype,"disabled",void 0);ds=N([zt("ProductCardAction","1.0.0")],ds);let ps=class extends xr{};N([U({type:dt.OBJECT}),V({field_type:H.FORM,label:"Product Data",description:"Product information to display"}),W(),ai(),li(()=>ri),q("design:type",ri)],ps.prototype,"product",void 0);N([U({defaultValue:"detailed"}),V({field_type:H.SELECT,label:"Card Variant",description:"Display variant for the product card",validation:{options:[{label:"Compact",value:"compact"},{label:"Detailed",value:"detailed"}]}}),W(),qe(["compact","detailed"]),q("design:type",String)],ps.prototype,"variant",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Custom Actions",description:"Custom action buttons"}),W(),gn(),ai({each:!0}),li(()=>ds),q("design:type",Array)],ps.prototype,"actions",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Image",description:"Whether to display the product image"}),W(),q("design:type",Boolean)],ps.prototype,"showImage",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Technologies",description:"Whether to display technology chips"}),W(),q("design:type",Boolean)],ps.prototype,"showTechnologies",void 0);N([U({defaultValue:3}),V({field_type:H.NUMBER,label:"Max Features (Compact)",description:"Maximum features to show in compact mode",validation:{min:1,max:10}}),W(),Lr(),si(1),Sl(10),q("design:type",Number)],ps.prototype,"maxFeaturesCompact",void 0);ps=N([zt("ProductCard","1.0.0")],ps);let fs=class extends Ca{};N([U(),V({field_type:H.REPEATER,label:"Grid Items",description:"Array of items to display in the grid"}),gn(),q("design:type",Array)],fs.prototype,"items",void 0);N([U(),V({field_type:H.SELECT,label:"Columns",description:"Number of columns in the grid layout",validation:{options:[{value:1,label:"1 Column"},{value:2,label:"2 Columns (Default)"},{value:3,label:"3 Columns"},{value:4,label:"4 Columns"},{value:5,label:"5 Columns"},{value:6,label:"6 Columns"}]}}),W(),Lr(),qe([1,2,3,4,5,6]),q("design:type",Number)],fs.prototype,"columns",void 0);N([U(),V({field_type:H.SELECT,label:"Grid Spacing",description:"Spacing between grid items",validation:{options:[{value:"none",label:"No Spacing"},{value:"tiny",label:"Tiny"},{value:"small",label:"Small"},{value:"medium",label:"Medium"},{value:"large",label:"Large (Default)"},{value:"huge",label:"Huge"}]}}),W(),qe(["none","tiny","small","medium","large","huge"]),q("design:type",String)],fs.prototype,"spacing",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Equal Height",description:"Whether all cards should have equal height"}),W(),Ot(),q("design:type",Boolean)],fs.prototype,"equalHeight",void 0);N([U(),V({field_type:H.SELECT,label:"Card Component Type",description:"Type of card component to render for each item",validation:{options:[{value:"ProductCard",label:"Product Card"},{value:"FeatureCard",label:"Feature Card"},{value:"Custom",label:"Custom Component"}]}}),W(),qe(["ProductCard","FeatureCard","Custom"]),q("design:type",String)],fs.prototype,"renderComponent",void 0);N([U(),V({field_type:H.FORM,label:"Item Properties",description:"Additional properties to pass to each rendered item"}),W(),v$(),q("design:type",Object)],fs.prototype,"itemProps",void 0);fs=N([zt("CardListGrid","1.0.0")],fs);let ho=class extends xr{};N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Disable the theme switcher button"}),W(),Ot(),q("design:type",Boolean)],ho.prototype,"disabled",void 0);N([U({defaultValue:"medium"}),V({field_type:H.SELECT,label:"Button Size",description:"Size of the theme switcher button"}),W(),ae(),qe(["small","medium","large"]),q("design:type",String)],ho.prototype,"size",void 0);N([U(),V({field_type:H.TEXT,label:"Custom Tooltip",description:"Custom tooltip text override",placeholder:"Current theme: Light"}),W(),ae(),q("design:type",String)],ho.prototype,"tooltipText",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Tooltip",description:"Show tooltip on hover"}),W(),Ot(),q("design:type",Boolean)],ho.prototype,"showTooltip",void 0);N([U({defaultValue:"bottom"}),V({field_type:H.SELECT,label:"Menu Position",description:"Position of the theme selection menu"}),W(),ae(),qe(["bottom","top","left","right"]),q("design:type",String)],ho.prototype,"menuPosition",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Light Theme",description:"Show light theme option in menu"}),W(),Ot(),q("design:type",Boolean)],ho.prototype,"showLightTheme",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Dark Theme",description:"Show dark theme option in menu"}),W(),Ot(),q("design:type",Boolean)],ho.prototype,"showDarkTheme",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show System Theme",description:"Show system theme option in menu"}),W(),Ot(),q("design:type",Boolean)],ho.prototype,"showSystemTheme",void 0);ho=N([zt("ThemeSwitcher","1.0.0")],ho);var FF=ho;function FT({disabled:t=!1,size:e="medium",tooltipText:r,showTooltip:n=!0,menuPosition:o="bottom",showLightTheme:s=!0,showDarkTheme:u=!0,showSystemTheme:d=!0,...p}){const{styleProps:h,htmlProps:m}=On(p),{currentTheme:b,actualThemeMode:y,setPreferredTheme:v}=O5(),[w,C]=S.useState(null),T=!!w,M=B=>{t||C(B.currentTarget)},E=()=>{C(null)},R=B=>{t||(v(B),E())},j=()=>{switch(y){case"dark":return c.jsx(YC,{});case"light":return c.jsx(lh,{});default:return c.jsx(lh,{})}},k=()=>r||(t?"Theme switcher disabled":`Current theme: ${b==="system"?`System (${y})`:b.charAt(0).toUpperCase()+b.slice(1)}`),P=()=>{switch(o){case"top":return{vertical:"top",horizontal:"right"};case"left":return{vertical:"bottom",horizontal:"left"};case"right":return{vertical:"bottom",horizontal:"right"};default:return{vertical:"bottom",horizontal:"right"}}},z=()=>{switch(o){case"top":return{vertical:"bottom",horizontal:"right"};case"left":return{vertical:"top",horizontal:"right"};case"right":return{vertical:"top",horizontal:"left"};default:return{vertical:"top",horizontal:"right"}}};if(!s&&!u&&!d)return c.jsx(Fr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:c.jsx(me,{variant:"body2",color:"error",children:"Error: No theme options enabled"})});const _=c.jsxs("span",{suppressHydrationWarning:!0,children:[c.jsx(sr,{...m,onClick:M,disabled:t,size:e,"aria-label":"theme switcher","aria-controls":T?"theme-menu":void 0,"aria-haspopup":"true","aria-expanded":T?"true":void 0,suppressHydrationWarning:!0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"},"&:disabled":{color:"var(--theme-disabled, rgba(0, 0, 0, 0.26))"},...h.sx},className:h.className,children:j()}),c.jsxs(ym,{id:"theme-menu",anchorEl:w,open:T,onClose:E,slotProps:{paper:{"aria-labelledby":"theme-button"}},anchorOrigin:P(),transformOrigin:z(),children:[s&&c.jsxs(Mr,{onClick:()=>R("light"),selected:b==="light",children:[c.jsx(ah,{children:c.jsx(lh,{fontSize:"small"})}),c.jsx(sh,{children:"Light"})]}),u&&c.jsxs(Mr,{onClick:()=>R("dark"),selected:b==="dark",children:[c.jsx(ah,{children:c.jsx(YC,{fontSize:"small"})}),c.jsx(sh,{children:"Dark"})]}),d&&c.jsxs(Mr,{onClick:()=>R("system"),selected:b==="system",children:[c.jsx(ah,{children:c.jsx(MD,{fontSize:"small"})}),c.jsx(sh,{children:"System"})]})]})]});return n?c.jsx(_r,{title:k(),children:_}):_}function Q3(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Qo(e||"",n,FF.getSchema(),{...r});if(!e)return c.jsx(FT,{...n});const{loading:s,error:u,...d}=o;return s?c.jsx(sr,{disabled:!0,size:"medium",children:c.jsx(lh,{})}):u?(console.error("Error loading theme switcher:",u),c.jsx(Fr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:c.jsxs(me,{variant:"body2",color:"error",children:["Error loading theme switcher: ",u.message]})})):c.jsx(FT,{...d})}Q3[Hn]=!0;const Ub=S.createContext(null);function WF({children:t}){const e=Pv(),r=Ov(),n=s=>{(typeof s=="string"||typeof s=="number")&&e(s)},o=r?{pathname:r.pathname,search:r.search,hash:r.hash}:typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return c.jsx(Ub.Provider,{value:{navigate:n,location:o},children:t})}function GF({children:t}){const e=n=>{typeof window>"u"||(typeof n=="string"?window.location.href=n:typeof n=="number"&&window.history.go(n))},r=typeof window<"u"?{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}:void 0;return c.jsx(Ub.Provider,{value:{navigate:e,location:r},children:t})}function XF({children:t}){return Zd()?c.jsx(WF,{children:t}):c.jsx(GF,{children:t})}function K3(){const t=S.useContext(Ub);if(!t)throw new Error("useNavigation must be used within a NavigationProvider. Make sure your component is wrapped in QwickApp or NavigationProvider.");return t}let hs=class extends xr{};N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Disable the palette switcher button"}),W(),Ot(),q("design:type",Boolean)],hs.prototype,"disabled",void 0);N([U(),V({field_type:H.TEXT,label:"Button Size",description:"Size of the palette switcher button",placeholder:"medium"}),W(),ae(),q("design:type",String)],hs.prototype,"buttonSize",void 0);N([U(),V({field_type:H.TEXT,label:"Tooltip Text",description:"Custom tooltip text for the palette switcher",placeholder:"Switch color palette"}),W(),ae(),q("design:type",String)],hs.prototype,"tooltipText",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Active Badge",description:'Show "Active" badge on currently selected palette'}),W(),Ot(),q("design:type",Boolean)],hs.prototype,"showActiveBadge",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Descriptions",description:"Show palette descriptions in menu items"}),W(),Ot(),q("design:type",Boolean)],hs.prototype,"showDescriptions",void 0);hs=N([zt("PaletteSwitcher","1.0.0")],hs);var YF=hs;function WT({disabled:t=!1,buttonSize:e="medium",tooltipText:r,showActiveBadge:n=!0,showDescriptions:o=!0,...s}){const{styleProps:u,htmlProps:d}=On(s),{currentPalette:p,setPreferredPalette:h,availablePalettes:m}=R5(),[b,y]=S.useState(null),v=!!b,w=j=>{y(j.currentTarget)},C=()=>{y(null)},T=j=>{h(j),C()},M=j=>{const k=j.id===p;return c.jsx(D$,{fontSize:"small",sx:{color:j.primaryColor,filter:k?"drop-shadow(0 0 3px currentColor) brightness(1.2)":"none",transform:k?"scale(1.1)":"scale(1)",transition:"all 0.2s ease-in-out"}})},E=()=>m.find(j=>j.id===p)||m[0];if(!m||m.length===0)return c.jsx(Fr,{...d,...u,variant:"outlined",sx:{p:2,textAlign:"center",opacity:.6,...u.sx},children:c.jsx(me,{variant:"body2",color:"text.secondary",children:"No color palettes available"})});const R=`Switch color palette (current: ${E().name})`;return c.jsxs(ne,{...d,...u,children:[c.jsx(_r,{title:r||R,children:c.jsx(sr,{onClick:w,disabled:t,size:e,"aria-label":"palette switcher","aria-controls":v?"palette-menu":void 0,"aria-haspopup":"true","aria-expanded":v?"true":void 0,sx:{color:"var(--theme-on-surface, inherit)","&:hover":{backgroundColor:"var(--menu-hover, rgba(0, 0, 0, 0.04))"}},children:c.jsx(yD,{})})}),c.jsx(ym,{id:"palette-menu",anchorEl:b,open:v,onClose:C,slotProps:{paper:{"aria-labelledby":"palette-button"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:m.map(j=>c.jsxs(Mr,{onClick:()=>T(j.id),selected:p===j.id,sx:{"&:hover":{backgroundColor:"action.hover"},"&.Mui-selected":{backgroundColor:"action.selected","&:hover":{backgroundColor:"action.selected"}}},children:[c.jsx(ah,{children:M(j)}),c.jsx(sh,{primary:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[j.name,n&&p===j.id&&c.jsx(ne,{component:"span",sx:{fontSize:"0.75rem",px:1,py:.25,borderRadius:1,backgroundColor:"primary.main",color:"primary.contrastText"},children:"Active"})]}),secondary:o?j.description:void 0})]},j.id))})]})}function Z3(t){const{dataSource:e,bindingOptions:r,...n}=t,o=Qo(e||"",n,YF.getSchema(),{...r});if(!e)return c.jsx(WT,{...n});const{loading:s,error:u,...d}=o;return s?c.jsxs(Fr,{variant:"outlined",sx:{p:2,textAlign:"center"},children:[c.jsx(me,{variant:"body2",children:"Loading PaletteSwitcher..."}),c.jsx(me,{variant:"caption",color:"text.secondary",children:"Loading palette switcher from data source..."})]}):u?(console.error("Error loading palette switcher:",u),c.jsx(Fr,{variant:"outlined",sx:{p:2,textAlign:"center",borderColor:"error.main"},children:c.jsxs(me,{variant:"body2",color:"error",children:["Error loading palette switcher: ",u.message]})})):c.jsx(WT,{...d})}Z3[Hn]=!0;function Sd({children:t,PaperProps:e,...r}){return c.jsx(V4,{...r,PaperProps:{...e,sx:{backgroundColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:"var(--theme-border-radius, 8px)",...e==null?void 0:e.sx}},children:t})}function wd({children:t,sx:e,...r}){return c.jsx(W4,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",borderBottom:"1px solid var(--theme-border)",...e},children:t})}function Cd({children:t,sx:e,...r}){return c.jsx(F4,{...r,sx:{color:"var(--theme-text-primary)",backgroundColor:"var(--theme-surface)",...e},children:t})}function Td({children:t,sx:e,...r}){return c.jsx(q4,{...r,sx:{backgroundColor:"var(--theme-surface)",borderTop:"1px solid var(--theme-border)",padding:"16px 24px",...e},children:t})}const J3=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=On(t),{label:u,value:d,onChange:p,onChangeRaw:h,type:m="text",helperText:b,required:y=!1,readOnly:v=!1,disabled:w=!1,disabledColor:C,fullWidth:T=!0,multiline:M=!1,rows:E,placeholder:R,startAdornment:j,endAdornment:k,inputProps:P}=s,z=Mt.useId(),_=A=>{if(h){h(A);return}if(p){const Y=m==="number"?parseInt(A.target.value)||0:A.target.value;p(Y)}},B={p:1,pl:1.6,mt:3,color:w&&C?C:v?"var(--theme-text-secondary)":"var(--theme-text-primary)",backgroundColor:v?"var(--theme-surface-variant)":"transparent",borderRadius:1,"&.Mui-disabled":C?{color:C,WebkitTextFillColor:C}:void 0,"& input.Mui-disabled":C?{color:C,WebkitTextFillColor:C}:void 0,...n.sx},G={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},D={color:"var(--theme-secondary)"};return c.jsxs(Ho,{ref:e,fullWidth:T,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[c.jsx(ls,{htmlFor:z,sx:G,shrink:!0,children:u}),c.jsx(mm,{id:z,type:m,value:d,onChange:_,readOnly:v,disabled:w,required:y,multiline:M,rows:E,placeholder:R,inputProps:P,sx:B,startAdornment:j?c.jsx(Eh,{position:"start",children:j}):void 0,endAdornment:k?c.jsx(Eh,{position:"end",children:k}):void 0}),b&&c.jsx(Gc,{sx:D,children:b})]})});J3.displayName="FormField";J3[Hn]=!0;const ej=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=On(t),{label:u,value:d,onChange:p,options:h,helperText:m,required:b=!1,disabled:y=!1,fullWidth:v=!0,size:w="small",placeholder:C}=s,T=j=>{p(j.target.value)},M={p:1,pl:1.6,...u?{mt:1,color:"var(--theme-text-primary)"}:{},backgroundColor:"var(--theme-surface-variant)",borderColor:"var(--theme-surface)",color:"var(--theme-text-primary)",borderRadius:1,...n.sx},E={left:-12,fontWeight:600,color:"var(--theme-text-primary)"},R={color:"var(--theme-secondary)"};return c.jsxs(Ho,{ref:e,fullWidth:v,size:w,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[u&&c.jsx(ls,{sx:E,shrink:!0,children:u}),c.jsxs(wa,{value:d,onChange:T,disabled:y,required:b,displayEmpty:!!C,sx:M,children:[C&&c.jsx(Mr,{value:"",disabled:!0,children:C}),h.map(j=>c.jsx(Mr,{value:j.value,children:j.label},j.value))]}),m&&c.jsx(Gc,{sx:R,children:m})]})});ej.displayName="FormSelect";ej[Hn]=!0;const tj=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=On(t),{label:u,checked:d,onChange:p,helperText:h,required:m=!1,disabled:b=!1}=s,y=T=>{p(T.target.checked)},v={color:"var(--theme-primary)","&.Mui-checked":{color:"var(--theme-primary)"},"&.Mui-disabled":{color:"var(--theme-text-disabled)"}},w={color:"var(--theme-text-primary)","& .MuiFormControlLabel-label":{color:"var(--theme-text-primary)"},"& .MuiFormControlLabel-label.Mui-disabled":{color:"var(--theme-text-disabled)"},...n.sx},C={color:"var(--theme-secondary)",marginLeft:"32px"};return c.jsxs(Ho,{ref:e,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[c.jsx(es,{control:c.jsx(OL,{checked:d,onChange:y,required:m,disabled:b,sx:v}),label:u,sx:w}),h&&c.jsx(Gc,{sx:C,children:h})]})});tj.displayName="FormCheckbox";tj[Hn]=!0;const rj=Mt.forwardRef((t,e)=>{const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=On(t),{provider:u,siteKey:d,onVerify:p,onExpire:h,onError:m,theme:b="light",size:y="normal",action:v="submit"}=s,w=S.useRef(null),C=S.useRef(null),[T,M]=S.useState(!1),[E,R]=S.useState(null);return S.useEffect(()=>{(()=>{if((()=>{switch(u){case"recaptcha-v2":case"recaptcha-v3":return!!window.grecaptcha;case"hcaptcha":return!!window.hcaptcha;case"turnstile":return!!window.turnstile;default:return!1}})()){M(!0);return}const z=(()=>{switch(u){case"recaptcha-v2":return"https://www.google.com/recaptcha/api.js?render=explicit";case"recaptcha-v3":return`https://www.google.com/recaptcha/api.js?render=${d}`;case"hcaptcha":return"https://js.hcaptcha.com/1/api.js?render=explicit";case"turnstile":return"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";default:return""}})();if(!z){R("Unsupported CAPTCHA provider");return}const _=document.createElement("script");return _.src=z,_.async=!0,_.defer=!0,_.onload=()=>{M(!0)},_.onerror=()=>{R("Failed to load CAPTCHA script"),m==null||m(new Error("Failed to load CAPTCHA script"))},document.head.appendChild(_),()=>{document.head.removeChild(_)}})()},[u,d,m]),S.useEffect(()=>{if(!T||!w.current)return;const k=setTimeout(()=>{try{switch(u){case"recaptcha-v2":window.grecaptcha&&window.grecaptcha.render&&(C.current=window.grecaptcha.render(w.current,{sitekey:d,callback:p,"expired-callback":h,"error-callback":()=>{const P=new Error("reCAPTCHA error");R(P.message),m==null||m(P)},theme:b,size:y}));break;case"recaptcha-v3":window.grecaptcha&&window.grecaptcha.execute&&window.grecaptcha.execute(d,{action:v}).then(P=>{p(P)}).catch(P=>{R(P.message),m==null||m(P)});break;case"hcaptcha":window.hcaptcha&&window.hcaptcha.render&&(C.current=window.hcaptcha.render(w.current,{sitekey:d,callback:p,"expired-callback":h,"error-callback":()=>{const P=new Error("hCaptcha error");R(P.message),m==null||m(P)},theme:b,size:y==="normal"?"normal":"compact"}));break;case"turnstile":window.turnstile&&window.turnstile.render&&(C.current=window.turnstile.render(w.current,{sitekey:d,callback:p,"expired-callback":h,"error-callback":()=>{const P=new Error("Turnstile error");R(P.message),m==null||m(P)},theme:b,size:y==="compact"?"compact":"normal"}));break}}catch(P){const z=P instanceof Error?P:new Error("Failed to render CAPTCHA");R(z.message),m==null||m(z)}},100);return()=>{var P,z,_;if(clearTimeout(k),C.current!==null)try{switch(u){case"recaptcha-v2":(P=window.grecaptcha)==null||P.reset(C.current);break;case"hcaptcha":(z=window.hcaptcha)==null||z.remove(C.current);break;case"turnstile":(_=window.turnstile)==null||_.remove(C.current);break}}catch{}}},[T,u,d,p,h,m,b,y,v]),u==="recaptcha-v3"?null:c.jsxs(ne,{ref:e,...o,sx:{my:2,...n.sx},...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl},children:[E&&c.jsx(ar,{severity:"error",sx:{mb:2},children:E}),c.jsx("div",{ref:w})]})});rj.displayName="Captcha";rj[Hn]=!0;const nj=Mt.forwardRef((t,e)=>{var j;const{gridProps:r,styleProps:n,htmlProps:o,restProps:s}=On(t),{placeholder:u,value:d,defaultValue:p,slotProps:h,InputLabelProps:m,InputProps:b,variant:y="outlined",...v}=s,w=d!=null&&d!==""||p!=null&&p!=="",C=!!u&&!w,T=((j=h==null?void 0:h.inputLabel)==null?void 0:j.shrink)??(m==null?void 0:m.shrink),M=T!==void 0?T:C,E={...h,inputLabel:{...(h==null?void 0:h.inputLabel)||{},...M?{shrink:!0}:{}}};let R=b||{};return y==="outlined"&&M&&u&&!w&&R.notched===void 0&&(R={...R,notched:!0}),nj[Hn]=!0,c.jsx(At,{ref:e,placeholder:u,value:d,defaultValue:p,variant:y,slotProps:E,InputProps:R,...v,...o,...n,...r&&{"data-grid-span":r.span,"data-grid-xs":r.xs,"data-grid-sm":r.sm,"data-grid-md":r.md,"data-grid-lg":r.lg,"data-grid-xl":r.xl}})});nj.displayName="TextField";function GT(t,e={}){const{defaultUnit:r="px",allowedUnits:n=["px","mm","cm","in","pt","pc"],allowKeywords:o=!1,fallback:s=`0${r}`}=e;if(t==null)return s;if(typeof t=="number"&&isFinite(t))return`${t}${r}`;const u=String(t).trim();return u?o&&/^(auto|inherit|initial|unset)$/.test(u)?u:/^-?\d+(\.\d+)?$/.test(u)?`${u}${r}`:new RegExp(`^-?\\d+(?:\\.\\d+)?(${n.map(p=>p.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})$`).test(u)?u:s:s}const QF=S.createContext(null);function KF(t,e,r){const{openGraph:n=!0,removeOnUnmount:o=!1}={};S.useEffect(()=>{const s=document.title;let u=!1,d=document.querySelector('meta[name="description"]');t&&document.title!==t&&(document.title=t),e&&(d||(d=document.createElement("meta"),d.name="description",document.head.appendChild(d),u=!0),d.content!==e&&(d.content=e));let p=null,h=null;return n&&(t&&(p=document.querySelector('meta[property="og:title"]'),p||(p=document.createElement("meta"),p.setAttribute("property","og:title"),document.head.appendChild(p)),p.content!==t&&(p.content=t)),e&&(h=document.querySelector('meta[property="og:description"]'),h||(h=document.createElement("meta"),h.setAttribute("property","og:description"),document.head.appendChild(h)),h.content!==e&&(h.content=e))),()=>{var m,b,y;o&&(document.title===t&&(document.title=s),e&&d&&(u||o)&&((m=d.parentNode)==null||m.removeChild(d)),n&&(p&&o&&((b=p.parentNode)==null||b.removeChild(p)),h&&o&&((y=h.parentNode)==null||y.removeChild(h))))}},[t,e,n,o])}const ZF=({renderView:t,renderPrintView:e,template:r,route:n,title:o,description:s,name:u,slug:d,printConfig:p,variant:h="default",padding:m="medium",background:b="default",maxWidth:y="large",children:v,...w})=>{const{htmlProps:C,styleProps:T}=On(w),[M,E]=S.useState(!1),[R,j]=S.useState(null),k={route:n??(r!=null&&r.slug?`/${r.slug}`:void 0),title:o??(r==null?void 0:r.title)??(r==null?void 0:r.name),description:s??(r==null?void 0:r.description),name:u??(r==null?void 0:r.name),slug:d??(r==null?void 0:r.slug),printConfig:{...r==null?void 0:r.printConfig,...p}};KF(k.title,k.description);const{isPrintMode:P,printConfig:z,onViewLoading:_,onViewReady:B,triggerPrint:G}=EH(),D=S.useCallback(ee=>G({...k.printConfig,...ee}),[G,k.printConfig]);S.useLayoutEffect(()=>{P&&(M?_():B())},[P,M,_,B]),S.useEffect(()=>{if(!P)return;const ee="qwickapps-print-page-setup",J=z,L=J.pageSize||"auto",oe=J.printBackground||"transparent",ue=J.printBackgroundFirstPage||oe,ce=document.querySelector(".page-print-header:not(.page-print-header-first-page)"),K=document.querySelector(".page-print-footer:not(.page-print-footer-first-page)"),re=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,Z=K!=null&&K.getBoundingClientRect?Math.ceil(K.getBoundingClientRect().height):0,ye=re?`${re}px`:GT(J.printHeaderHeight||0),Ce=Z?`${Z}px`:GT(J.printFooterHeight||0),be=(Be,Ve)=>`@media print{@page{size:${L};margin:0;} .page-print-mode{--print-header-height:${Be};--print-footer-height:${Ve};--print-background:${oe};--print-background-first-page:${ue};}}`;let se=document.getElementById(ee);se||(se=document.createElement("style"),se.id=ee,document.head.appendChild(se)),se.textContent=be(ye,Ce);let De=null;window.ResizeObserver&&(De=new ResizeObserver(()=>{const Be=ce!=null&&ce.getBoundingClientRect?Math.ceil(ce.getBoundingClientRect().height):0,Ve=K!=null&&K.getBoundingClientRect?Math.ceil(K.getBoundingClientRect().height):0,Ie=be(Be?`${Be}px`:ye,Ve?`${Ve}px`:Ce);se&&se.textContent!==Ie&&(se.textContent=Ie)}),ce&&De.observe(ce),K&&De.observe(K));const ze=()=>{const Be=document.getElementById(ee);Be!=null&&Be.parentNode&&Be.parentNode.removeChild(Be),De==null||De.disconnect()};return window.addEventListener("afterprint",ze,{once:!0}),()=>{window.removeEventListener("afterprint",ze),ze()}},[P,z]);const{location:A}=K3(),Y=k.route||(A==null?void 0:A.pathname)||"",F=S.useMemo(()=>({route:Y,isPrintMode:P,printConfig:z,triggerPrint:D,setLoading:E,setError:j,isLoading:M,error:R}),[Y,P,z,D,M,R]),$=["page",`page-variant-${h}`,`page-padding-${m}`,`page-background-${b}`,`page-max-width-${y}`,P&&"page-print-mode",P&&z.pageMargins==="0mm"&&"page-print-borderless",P&&z.pageMargins==="6mm"&&"page-print-compact",P&&z.pageMargins==="20mm"&&"page-print-large",P&&z.pageMargins==="25mm"&&"page-print-formal",P&&(z.printBackground||z.printBackgroundFirstPage)&&"has-background",T.className].filter(Boolean).join(" "),I=(P?e:t)(),Q=I??v;return c.jsx(QF.Provider,{value:F,children:c.jsxs(ne,{className:$,sx:T.sx,style:T.style,...C,children:[P&&z.printHeader&&c.jsx("div",{className:"page-print-header",children:typeof z.printHeader=="string"?c.jsx(bi,{html:dd`${z.printHeader}`}):z.printHeader}),P&&z.printHeaderFirstPage&&c.jsx("div",{className:"page-print-header page-print-header-first-page",children:typeof z.printHeaderFirstPage=="string"?c.jsx(bi,{html:dd`${z.printHeaderFirstPage}`}):z.printHeaderFirstPage}),P&&!z.printHeader&&z.printTitle&&c.jsxs("div",{className:"page-print-header",children:[c.jsx("h1",{children:z.printTitle}),z.showPrintDate&&c.jsxs("div",{className:"page-print-date",children:["Printed on: ",new Date().toLocaleString()]})]}),k.name&&k.name!==k.title&&c.jsx("div",{className:"page-heading",children:c.jsx("h1",{children:k.name})}),c.jsx("div",{className:"page-content",children:Q}),P&&z.printFooter&&c.jsx("div",{className:"page-print-footer",children:typeof z.printFooter=="string"?c.jsx(bi,{html:dd`${z.printFooter}`}):z.printFooter}),P&&z.printFooterFirstPage&&c.jsx("div",{className:"page-print-footer page-print-footer-first-page",children:typeof z.printFooterFirstPage=="string"?c.jsx(bi,{html:dd`${z.printFooterFirstPage}`}):z.printFooterFirstPage})]})})};class hX extends Mt.Component{getPageProps(){return{}}renderView(){return this.props.children}renderPrintView(){return this.renderView()}render(){const e={...this.props,...this.getPageProps()};return c.jsx(ZF,{...e,renderView:()=>this.renderView(),renderPrintView:()=>this.renderPrintView()})}}const Mo=XD.scaffold,XT={mobile:600,tablet:1024},JF=({children:t,navigationItems:e=[],appBar:r,className:n="",showAppBar:o=!0,appBarHeight:s=64,appName:u,showThemeSwitcher:d=!1,showPaletteSwitcher:p=!1,onLogoClick:h})=>{const[m,b]=S.useState("desktop"),[y,v]=S.useState(!1),[w,C]=S.useState(!1),[T,M]=S.useState(!1),{navigate:E,location:R}=K3(),j=T?R==null?void 0:R.pathname:void 0;Mt.useEffect(()=>{j&&Mo.debug("Current path changed to:",j)},[j]),S.useEffect(()=>{M(!0)},[]);const{appName:k,logo:P}=vb(),z=u||k;S.useEffect(()=>{const L=()=>{const oe=window.innerWidth;oe<XT.mobile?b("mobile"):oe<=XT.tablet?b("tablet"):b("desktop")};return L(),window.addEventListener("resize",L),()=>window.removeEventListener("resize",L)},[]);const _=[...e].sort((L,oe)=>(L.priority||999)-(oe.priority||999)),B=()=>{switch(m){case"mobile":{const L=_.slice(0,5),oe=_.slice(5);return{primaryItems:L,drawerItems:oe}}case"tablet":{const L=_.slice(0,7),oe=_.slice(7);return{primaryItems:L,drawerItems:oe}}case"desktop":{const L=_.slice(0,7),oe=_.slice(7);return{primaryItems:L,drawerItems:oe}}default:return{primaryItems:_,drawerItems:[]}}},{primaryItems:G,drawerItems:D}=B(),A=Mt.useMemo(()=>{const L=r||{};return{...L,title:L.title||z,actions:L.actions}},[r,z]),Y=(A==null?void 0:A.logo)||P||c.jsx(Cm,{name:(A==null?void 0:A.title)||z,size:"small"}),F=()=>{v(!y)},$=()=>{C(!w)},I=(L,oe="appbar")=>{const ue=L.active||L.route&&j===L.route||!L.active&&!L.route&&j&&j===`/${L.id}`;L.route&&Mo.debug(`Route matching for ${L.id}: ${j} === ${L.route} = ${ue}`);const ce=()=>{if(L.disabled)return;if(ue&&L.route===j){Mo.debug(`Navigation prevented: Already on route ${L.route}`);return}if(L.onClick)try{L.onClick()}catch(be){Mo.error("Menu item onClick error:",be)}else if(L.route)try{if(Mo.debug(`Navigating from ${j} to ${L.route}`),j&&j===L.route){Mo.debug("Final check: Same route detected, skipping navigation");return}E(L.route)}catch(be){const se=be instanceof Error?be.message:"Unknown error";if(Mo.error("Navigation error caught:",be),Mo.error("Navigation context:",{from:j,to:L.route,isActiveItem:ue,itemId:L.id,errorMessage:se}),L.route&&L.route!==j)try{Mo.debug("Attempting fallback navigation using window.location"),window.location.pathname=L.route}catch(De){Mo.error("Fallback navigation also failed:",De)}}},K=oe!=="drawer";let re=null;L.icon?typeof L.icon=="string"?re=lv(L.icon)||(K?c.jsx(ZC,{}):null):re=L.icon:K&&(re=c.jsx(ZC,{}));const Z=c.jsxs(c.Fragment,{children:[re&&c.jsx("span",{className:`menu-item-icon menu-item-icon-${oe}`,children:re}),c.jsx("span",{className:`menu-item-label menu-item-label-${oe}`,children:L.label}),L.badge&&c.jsx("span",{className:"menu-item-badge",children:L.badge})]}),ye={className:`menu-item menu-item-${oe} ${ue?"active":""} ${L.disabled?"disabled":""}`,"aria-label":L.label,"aria-current":ue?"page":void 0,onClick:L.disabled?void 0:ce};return L.href&&!L.disabled?c.jsx("a",{href:L.href,...ye,target:"_blank",rel:"noopener noreferrer",children:Z}):c.jsx("button",{type:"button",...ye,disabled:!!(L.disabled||ue&&L.route===j),children:Z})},ee=(()=>{const L=m==="mobile"?16:m==="tablet"?24:32,oe=L+(o?s:0),ue=L+(m==="mobile"?80:0),ce=L+(m==="tablet"?w?280:80:0);return{paddingTop:oe,paddingBottom:ue,paddingLeft:ce,paddingRight:L}})(),J=()=>c.jsx("div",{className:"appbar-logo",onClick:h,style:{cursor:h?"pointer":"default"},children:Y});return c.jsxs("div",{className:`app-scaffold ${n}`,children:[o&&c.jsx("header",{className:"app-scaffold-appbar",style:{height:s},children:c.jsxs("div",{className:"appbar-content",children:[c.jsxs("div",{className:"appbar-left",children:[(D.length>0||m==="tablet")&&c.jsx("button",{type:"button",className:"menu-button",onClick:m==="tablet"?$:F,"aria-label":m==="tablet"?"Toggle navigation rail":"Open drawer menu",children:c.jsxs("span",{className:"hamburger-icon",children:[c.jsx("span",{},"hamburger-line-1"),c.jsx("span",{},"hamburger-line-2"),c.jsx("span",{},"hamburger-line-3")]})},"menu-button"),(!(A!=null&&A.logoPosition)||A.logoPosition==="left")&&c.jsx(J,{},"app-logo-left")]}),c.jsxs("div",{className:"appbar-center",children:[(A==null?void 0:A.logoPosition)==="center"&&c.jsx(J,{},"app-logo-center"),m==="desktop"&&c.jsx("nav",{className:"appbar-navigation",children:G.map(L=>c.jsx(Mt.Fragment,{children:I(L,"appbar")},L.id))},"desktop-navigation")]}),c.jsxs("div",{className:"appbar-right",children:[(A==null?void 0:A.actions)&&c.jsx("div",{className:"appbar-actions",children:A.actions},"appbar-actions"),c.jsxs("div",{className:"appbar-theme-controls",children:[d&&c.jsx(Q3,{},"theme-switcher"),p&&c.jsx(Z3,{},"palette-switcher")]},"appbar-theme-controls")]})]})}),m==="tablet"&&c.jsx("nav",{className:`navigation-rail ${w?"expanded":"collapsed"}`,children:c.jsx("div",{className:"rail-items",children:G.map(L=>c.jsx(Mt.Fragment,{children:I(L,"rail")},L.id))})}),m==="mobile"&&G.length>0&&c.jsx("nav",{className:"bottom-navigation",children:c.jsx("div",{className:"bottom-nav-items",children:G.map(L=>c.jsx(Mt.Fragment,{children:I(L,"bottom")},L.id))})}),y&&D.length>0&&c.jsx("div",{className:"drawer-overlay",onClick:F,children:c.jsxs("nav",{className:"navigation-drawer",onClick:L=>L.stopPropagation(),children:[c.jsxs("div",{className:"drawer-header",children:[c.jsx("h3",{children:"Menu"},"drawer-title"),c.jsx("button",{type:"button",className:"drawer-close",onClick:F,"aria-label":"Close drawer",children:"×"},"drawer-close-button")]}),c.jsxs("div",{className:"drawer-items",children:[c.jsxs("div",{className:"drawer-section",children:[c.jsx("h4",{children:"Navigation"},"navigation-header"),G.map(L=>c.jsx(Mt.Fragment,{children:I(L,"drawer")},L.id))]}),D.length>0&&c.jsxs("div",{className:"drawer-section",children:[c.jsx("h4",{children:"More"},"more-header"),D.map(L=>c.jsx(Mt.Fragment,{children:I(L,"drawer")},L.id))]})]})]})}),c.jsx("main",{className:"app-scaffold-content",style:{paddingTop:`${ee.paddingTop}px`,paddingBottom:`${ee.paddingBottom}px`,paddingLeft:`${ee.paddingLeft}px`,paddingRight:`${ee.paddingRight}px`},children:t})]})};class eW extends S.Component{constructor(e){super(e),this.handleRetry=()=>{this.setState({hasError:!1,error:null,errorInfo:null})},this.handleRefresh=()=>{typeof window<"u"&&window.location.reload()},this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,r){var n;this.setState({error:e,errorInfo:r}),console.error("ErrorBoundary caught an error:",e,r),this.props.onError&&this.props.onError(e,r),typeof window<"u"&&(n=window.qwickapps)!=null&&n.logError&&window.qwickapps.logError(e,r)}render(){var e;return this.state.hasError?this.props.fallback?this.props.fallback:c.jsxs("div",{className:"error-boundary",role:"alert",style:{padding:"2rem",textAlign:"center",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",margin:"1rem",color:"#991b1b"},children:[c.jsxs("div",{style:{marginBottom:"1.5rem"},children:[c.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",marginBottom:"0.5rem",color:"#991b1b"},children:"Something went wrong"}),c.jsx("p",{style:{color:"#7f1d1d",marginBottom:"1rem"},children:"An unexpected error occurred in the application. Please try again or refresh the page."})]}),c.jsxs("div",{style:{display:"flex",gap:"0.75rem",justifyContent:"center",marginBottom:"1rem"},children:[c.jsx(Vr,{variant:"contained",onClick:this.handleRetry,children:"Try Again"}),c.jsx(Vr,{variant:"outlined",onClick:this.handleRefresh,children:"Refresh Page"})]}),this.state.error&&c.jsxs("details",{style:{textAlign:"left",marginTop:"1rem",padding:"1rem",backgroundColor:"#f9fafb",border:"1px solid #d1d5db",borderRadius:"6px"},children:[c.jsx("summary",{style:{cursor:"pointer",fontWeight:"bold",marginBottom:"0.5rem",color:"#374151"},children:"Error Details (Development Mode)"}),c.jsxs("pre",{style:{fontSize:"0.75rem",color:"#374151",whiteSpace:"pre-wrap",overflow:"auto"},children:[this.state.error.toString(),((e=this.state.errorInfo)==null?void 0:e.componentStack)&&c.jsxs(c.Fragment,{children:[c.jsx("br",{}),c.jsx("br",{}),"Component Stack:",this.state.errorInfo.componentStack]})]})]})]}):this.props.children}}const tW=S.createContext(null),rW=(t,e)=>{switch(e.type){case"SET_HIGH_CONTRAST":return{...t,highContrast:e.payload};case"SET_REDUCED_MOTION":return{...t,reducedMotion:e.payload};case"SET_LARGE_TEXT":return{...t,largeText:e.payload};case"SET_FOCUS_VISIBLE":return{...t,focusVisible:e.payload};case"SET_KEYBOARD_USER":return{...t,isKeyboardUser:e.payload};case"ADD_ISSUE":return{...t,issues:[...t.issues,e.payload]};case"CLEAR_ISSUES":return{...t,issues:[]};case"SET_ANNOUNCEMENT":return{...t,lastAnnouncement:e.payload};default:return t}},nW={highContrast:!1,reducedMotion:!1,largeText:!1,focusVisible:!0,isKeyboardUser:!1,issues:[],lastAnnouncement:null,preferences:{}};class iW{constructor(){this.politeRegion=null,this.assertiveRegion=null,this.createLiveRegions()}createLiveRegions(){typeof document>"u"||(this.politeRegion=document.createElement("div"),this.politeRegion.setAttribute("aria-live","polite"),this.politeRegion.setAttribute("aria-atomic","true"),this.politeRegion.setAttribute("id","qwickapps-aria-live-polite"),this.politeRegion.style.cssText=`
|
|
392
|
-
position: absolute !important;
|
|
393
|
-
left: -10000px !important;
|
|
394
|
-
width: 1px !important;
|
|
395
|
-
height: 1px !important;
|
|
396
|
-
overflow: hidden !important;
|
|
397
|
-
`,document.body.appendChild(this.politeRegion),this.assertiveRegion=document.createElement("div"),this.assertiveRegion.setAttribute("aria-live","assertive"),this.assertiveRegion.setAttribute("aria-atomic","true"),this.assertiveRegion.setAttribute("id","qwickapps-aria-live-assertive"),this.assertiveRegion.style.cssText=`
|
|
398
|
-
position: absolute !important;
|
|
399
|
-
left: -10000px !important;
|
|
400
|
-
width: 1px !important;
|
|
401
|
-
height: 1px !important;
|
|
402
|
-
overflow: hidden !important;
|
|
403
|
-
`,document.body.appendChild(this.assertiveRegion))}announce(e,r="polite"){r==="assertive"?this.announceAssertive(e):this.announcePolite(e)}announcePolite(e){this.politeRegion&&(this.politeRegion.textContent="",setTimeout(()=>{this.politeRegion&&(this.politeRegion.textContent=e)},100))}announceAssertive(e){this.assertiveRegion&&(this.assertiveRegion.textContent="",setTimeout(()=>{this.assertiveRegion&&(this.assertiveRegion.textContent=e)},100))}}const y0=new iW,oW=({children:t,enableAudit:e=!0})=>{const[r,n]=S.useReducer(rW,nW);S.useEffect(()=>{o();const h=s();return u(),e&&d(),()=>{h&&h()}},[e]);const o=()=>{if(!(typeof window>"u")&&(window.matchMedia&&window.matchMedia("(prefers-contrast: high)").matches&&n({type:"SET_HIGH_CONTRAST",payload:!0}),window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches&&n({type:"SET_REDUCED_MOTION",payload:!0}),window.matchMedia)){const h=window.matchMedia("(prefers-contrast: high)"),m=window.matchMedia("(prefers-reduced-motion: reduce)"),b=v=>{n({type:"SET_HIGH_CONTRAST",payload:v.matches})},y=v=>{n({type:"SET_REDUCED_MOTION",payload:v.matches})};return h.addEventListener("change",b),m.addEventListener("change",y),()=>{h.removeEventListener("change",b),m.removeEventListener("change",y)}}},s=()=>{if(typeof document>"u")return;let h=!1;const m=y=>{y.key==="Tab"&&(h=!0,n({type:"SET_KEYBOARD_USER",payload:!0}),document.body.classList.add("keyboard-user"))},b=()=>{h&&(h=!1,n({type:"SET_KEYBOARD_USER",payload:!1}),document.body.classList.remove("keyboard-user"))};return document.addEventListener("keydown",m),document.addEventListener("mousedown",b),()=>{document.removeEventListener("keydown",m),document.removeEventListener("mousedown",b)}},u=()=>{if(typeof document>"u")return;const h=document.createElement("style");h.textContent=`
|
|
404
|
-
.keyboard-user *:focus {
|
|
405
|
-
outline: 3px solid #005cee !important;
|
|
406
|
-
outline-offset: 2px !important;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.high-contrast *:focus {
|
|
410
|
-
outline: 3px solid #ffffff !important;
|
|
411
|
-
outline-offset: 2px !important;
|
|
412
|
-
box-shadow: 0 0 0 1px #000000 !important;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.reduced-motion * {
|
|
416
|
-
animation-duration: 0.01ms !important;
|
|
417
|
-
animation-iteration-count: 1 !important;
|
|
418
|
-
transition-duration: 0.01ms !important;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.large-text {
|
|
422
|
-
font-size: 1.2em !important;
|
|
423
|
-
}
|
|
424
|
-
`,document.head.appendChild(h)},d=()=>{typeof document>"u"||setTimeout(()=>{const h=[];document.querySelectorAll("img:not([alt])").forEach(v=>{h.push({type:"missing-alt-text",message:"Image missing alt attribute",level:"error",element:v})}),document.querySelectorAll("button:not([aria-label]):not([title])").forEach(v=>{var w;(w=v.textContent)!=null&&w.trim()||h.push({type:"unnamed-button",message:"Button missing accessible name",level:"error",element:v})}),document.querySelectorAll("input:not([aria-label]):not([title])").forEach(v=>{const w=v.getAttribute("id");w?document.querySelector(`label[for="${w}"]`)||h.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:v}):h.push({type:"unlabeled-input",message:"Form input missing label",level:"error",element:v})}),n({type:"CLEAR_ISSUES"}),h.forEach(v=>{n({type:"ADD_ISSUE",payload:v})}),h.length>0&&(console.group("🔍 Accessibility Issues Found"),h.forEach(v=>{(v.level==="error"?console.error:console.warn)(`${v.type}: ${v.message}`)}),console.groupEnd())},1e3)},p={...r,setHighContrast:h=>n({type:"SET_HIGH_CONTRAST",payload:h}),setReducedMotion:h=>n({type:"SET_REDUCED_MOTION",payload:h}),setLargeText:h=>n({type:"SET_LARGE_TEXT",payload:h}),setFocusVisible:h=>n({type:"SET_FOCUS_VISIBLE",payload:h}),announce:(h,m="polite")=>{y0.announce(h,m),n({type:"SET_ANNOUNCEMENT",payload:{message:h,level:m,timestamp:Date.now()}})},announcePolite:h=>{y0.announcePolite(h),n({type:"SET_ANNOUNCEMENT",payload:{message:h,level:"polite",timestamp:Date.now()}})},announceAssertive:h=>{y0.announceAssertive(h),n({type:"SET_ANNOUNCEMENT",payload:{message:h,level:"assertive",timestamp:Date.now()}})},addIssue:h=>n({type:"ADD_ISSUE",payload:h}),clearIssues:()=>n({type:"CLEAR_ISSUES"}),runAudit:d};return S.useEffect(()=>{if(typeof document>"u")return;const{highContrast:h,reducedMotion:m,largeText:b}=r;document.body.classList.toggle("high-contrast",h),document.body.classList.toggle("reduced-motion",m),document.body.classList.toggle("large-text",b)},[r.highContrast,r.reducedMotion,r.largeText]),c.jsx(tW.Provider,{value:p,children:t})},aW=({children:t,className:e,style:r,defaultTheme:n,defaultPalette:o,appName:s,logo:u,appId:d,enableScaffolding:p,navigationItems:h=[],appBar:m,showAppBar:b=!0,appBarHeight:y=64,showThemeSwitcher:v,showPaletteSwitcher:w,onLogoClick:C,router:T,dataSource:M,config:E})=>{const R={appName:s??(E==null?void 0:E.app.name),appId:d??(E==null?void 0:E.app.id),logo:u??(E==null?void 0:E.app.logo),enableScaffolding:p??(E==null?void 0:E.ui.enableScaffolding)??!1,showThemeSwitcher:v??(E==null?void 0:E.ui.showThemeSwitcher)??!1,showPaletteSwitcher:w??(E==null?void 0:E.ui.showPaletteSwitcher)??!1,defaultTheme:n??(E==null?void 0:E.ui.defaultTheme),defaultPalette:o??(E==null?void 0:E.ui.defaultPalette)};if(!R.appName)throw new Error("QwickApp requires either appName prop or config with app.name");const[j,k]=S.useState({logo:R.logo,enableScaffolding:R.enableScaffolding,navigationItems:h,appBar:m,showAppBar:b,appBarHeight:y,showThemeSwitcher:R.showThemeSwitcher,showPaletteSwitcher:R.showPaletteSwitcher}),P=D=>{k(A=>({...A,...D}))};S.useEffect(()=>{R.logo!==j.logo&&k(D=>({...D,logo:R.logo}))},[R.logo]);const z={appName:R.appName,appId:R.appId,...j,onLogoClick:C,updateConfig:P},_=j.enableScaffolding?c.jsx(JF,{appName:R.appName,navigationItems:j.navigationItems,appBar:j.appBar,showAppBar:j.showAppBar,appBarHeight:j.appBarHeight,showThemeSwitcher:j.showThemeSwitcher,showPaletteSwitcher:j.showPaletteSwitcher,onLogoClick:C,children:t}):t,B=M?c.jsx(QD,{dataSource:M,children:_}):_,G=c.jsx(eW,{children:c.jsx(oW,{children:c.jsx(XF,{children:c.jsx("div",{className:`qwick-app ${e||""}`,style:r,children:c.jsx(SH,{appId:R.appId,defaultTheme:R.defaultTheme,defaultPalette:R.defaultPalette,children:c.jsx(A5.Provider,{value:z,children:c.jsx(TH,{children:B})})})})})})});return T?S.cloneElement(T,{},G):G},sW=({size:t=48,showBackground:e=!0,className:r="",style:n={}})=>c.jsxs("svg",{width:t,height:t,viewBox:"0 0 225 225",className:`qwick-icon ${r}`.trim(),style:n,role:"img","aria-label":"QwickApps Icon",children:[e&&c.jsx("rect",{width:"225",height:"225",rx:"48",fill:"var(--theme-surface)"}),c.jsx("g",{transform:"scale(0.9) translate(-5,-5)",children:c.jsxs("g",{transform:"translate(-128,-60)",children:[c.jsx("path",{className:"logo-first-part",fill:"#FE6D0F",d:"M0 0 C1.3480925 -0.00788544 1.3480925 -0.00788544 2.72341919 -0.01593018 C5.67419172 -0.02905871 8.62441792 -0.02041442 11.57519531 -0.01025391 C13.64251813 -0.0122774 15.70984025 -0.01519113 17.77716064 -0.01895142 C22.10443943 -0.02336572 26.43153199 -0.01697508 30.75878906 -0.00292969 C36.2773468 0.01411856 41.79546534 0.00434284 47.31400681 -0.01364708 C51.5831018 -0.02454577 55.85209467 -0.02101006 60.12119293 -0.0132637 C62.15435082 -0.01127624 64.18751828 -0.01366927 66.22066498 -0.02070236 C76.73689794 -0.04908929 86.57929633 -0.04924466 96.65332031 3.38818359 C97.54098083 3.67795074 98.42864136 3.9677179 99.34320068 4.26626587 C114.15399949 9.31896076 126.4675764 21.76744512 133.65332031 35.38818359 C137.44514211 43.9738112 139.81630642 51.43992278 139.7668457 60.84057617 C139.76699173 61.5728241 139.76713776 62.30507202 139.76728821 63.05950928 C139.76659444 65.46727515 139.75882723 67.87496257 139.75097656 70.28271484 C139.74911048 71.95708677 139.74768747 73.63145924 139.74668884 75.30583191 C139.74287867 79.7034558 139.73306121 84.10104644 139.72198486 88.49865723 C139.71173847 92.9898229 139.70718431 97.48099397 139.70214844 101.97216797 C139.69143757 110.77752174 139.6743792 119.58284852 139.65332031 128.38818359 C138.53702723 127.43704375 137.42154262 126.48495501 136.30639648 125.5324707 C135.68512375 125.002379 135.06385101 124.47228729 134.42375183 123.9261322 C132.20679827 122.00029626 130.09344729 119.97434276 127.96582031 117.95068359 C121.3544337 111.96606452 113.93765643 107.63396094 105.65332031 104.38818359 C105.64397461 103.07736816 105.63462891 101.76655273 105.625 100.41601562 C105.58487807 95.51415049 105.51905854 90.61289839 105.44580078 85.71142578 C105.41771934 83.59724858 105.39644155 81.4829689 105.38232422 79.36865234 C105.36071633 76.31473808 105.31397548 73.26203954 105.26269531 70.20849609 C105.26085236 68.80943527 105.26085236 68.80943527 105.25897217 67.3821106 C105.05613797 58.12249123 102.35361677 49.9326592 95.65332031 43.38818359 C93.37687152 41.83978825 91.12212389 40.64502905 88.65332031 39.38818359 C88.0702562 39.02808197 87.48719208 38.66798035 86.88645935 38.29696655 C83.71010797 37.00434036 80.90937194 37.11787995 77.4855957 37.09765625 C76.41412041 37.08758041 76.41412041 37.08758041 75.32099915 37.07730103 C72.96425383 37.05833326 70.60779341 37.05439768 68.25097656 37.05224609 C66.60957218 37.04581795 64.96816895 37.03908958 63.32676697 37.03207397 C59.88782087 37.02010475 56.44897522 37.01639285 53.01000977 37.01757812 C48.60705215 37.01778144 44.20473906 36.99046492 39.80193424 36.95603371 C36.41239981 36.93377976 33.02302096 36.92974009 29.63342094 36.93079758 C28.01032729 36.9284399 26.38722945 36.91960691 24.76420784 36.90413284 C22.49249412 36.88449971 20.22217644 36.89029871 17.95043945 36.90234375 C16.65900528 36.89949371 15.36757111 36.89664368 14.03700256 36.89370728 C10.0894619 37.47058336 8.4533178 38.60386481 5.65332031 41.38818359 C4.36488826 43.96504769 4.49328598 45.87037118 4.44799805 48.75585938 C4.42805283 49.87687042 4.4081076 50.99788147 4.38755798 52.15286255 C4.36248924 53.97477615 4.36248924 53.97477615 4.33691406 55.83349609 C4.31613297 57.07364471 4.29535187 58.31379333 4.27394104 59.59152222 C4.21954326 62.88930182 4.16931936 66.18711079 4.12109375 69.48498535 C4.07086797 72.84991002 4.01524033 76.21474503 3.95996094 79.57958984 C3.85188552 86.18238589 3.75285167 92.78523103 3.65332031 99.38818359 C-7.89667969 99.38818359 -19.44667969 99.38818359 -31.34667969 99.38818359 C-31.54722373 80.32312956 -31.54722373 80.32312956 -31.59082031 72.14990234 C-31.6206242 66.58894779 -31.65574998 61.02840778 -31.72387695 55.46777344 C-31.77850048 50.98085383 -31.80816368 46.4943792 -31.8210659 42.00715256 C-31.83025168 40.30161924 -31.84818881 38.59610823 -31.87532997 36.89076614 C-32.04228479 25.95844515 -31.41983501 17.49965078 -24.17089844 8.76708984 C-23.46578125 8.16767578 -22.76066406 7.56826172 -22.03417969 6.95068359 C-21.33679688 6.33322266 -20.63941406 5.71576172 -19.92089844 5.07958984 C-13.46479327 0.83756627 -7.52553047 -0.0549708 0 0 Z",transform:"translate(185.3466796875,71.61181640625)"}),c.jsx("path",{className:"logo-second-part",fill:"#03BBCA",d:"M0 0 C11.55 0 23.1 0 35 0 C35.04125 3.25875 35.0825 6.5175 35.125 9.875 C35.47125788 19.41754586 36.68077925 25.86440869 43.74900818 32.68862915 C50.89908532 38.23277376 58.35470598 37.77209826 66.97265625 37.5859375 C68.50677317 37.57472707 70.04091178 37.56619562 71.57505798 37.56021118 C75.58524366 37.53745715 79.59409585 37.47865487 83.60375977 37.4119873 C87.70635953 37.3502711 91.80917779 37.32313407 95.91210938 37.29296875 C103.94201372 37.2288942 111.97084033 37.12668322 120 37 C117.59324168 34.57863654 115.18359847 32.1601637 112.7734375 29.7421875 C111.75527954 28.71774536 111.75527954 28.71774536 110.71655273 27.67260742 C106.8829741 23.82970702 102.99745284 20.13165615 98.8515625 16.625 C95.05012274 13.28871531 91.43825451 9.70885787 88 6 C88 5.67 88 5.34 88 5 C110.75508023 4.37644173 110.75508023 4.37644173 121 8 C122.051875 8.35191406 123.10375 8.70382813 124.1875 9.06640625 C147.22737862 17.29881571 164.80240124 33.21278198 175.41943359 55.15429688 C179.68328916 64.37125249 183.15018908 73.71312925 183.09765625 83.95703125 C183.09443359 85.06884766 183.09121094 86.18066406 183.08789062 87.32617188 C183.07951172 88.47666016 183.07113281 89.62714844 183.0625 90.8125 C183.05798828 91.98232422 183.05347656 93.15214844 183.04882812 94.35742188 C183.0370693 97.23833358 183.02063426 100.11914044 183 103 C180.55229893 100.57810948 178.13689836 98.15012289 175.81640625 95.60546875 C164.49520711 83.46019619 148.63443632 75.12990963 131.85790539 74.44966316 C128.34721591 74.38623286 124.84006559 74.37663155 121.32896042 74.40841484 C118.45052331 74.43424814 115.57348925 74.42890466 112.69497681 74.41651917 C106.58815705 74.39596309 100.48178961 74.41534647 94.375 74.4375 C87.28101821 74.45873236 80.18749777 74.46298673 73.09352493 74.43699837 C70.28119532 74.43367673 67.46978403 74.45471435 64.65756226 74.47740173 C46.51926055 74.50804771 31.73862671 70.07462761 18.28125 57.27734375 C17.5284375 56.52582031 16.775625 55.77429688 16 55 C15.02546875 54.04287109 15.02546875 54.04287109 14.03125 53.06640625 C3.06105089 41.49477078 -0.55499727 26.82435381 -0.1875 11.3125 C-0.125625 7.579375 -0.06375 3.84625 0 0 Z",transform:"translate(154,171)"})]})})]}),lW=({icon:t,name:e,size:r="small",onClick:n,style:o,className:s,...u})=>{const d=(m="small")=>({tiny:20,small:32,medium:40,large:52,"extra-large":68})[m]||32,p=t||c.jsx(sW,{}),h=S.isValidElement(p)?S.cloneElement(p,{size:p.props.size||d(r),style:{position:"relative",left:"25px",zIndex:999,...p.props.style}}):p;return c.jsx(Cm,{name:e,size:r,image:h,imagePosition:"start",style:{cursor:n?"pointer":"default",zIndex:1e3,...o},className:s,onClick:n,...u})};function ij(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let El=ij();function cW(t){El=t}const oj=/[&<>"']/,uW=new RegExp(oj.source,"g"),aj=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,dW=new RegExp(aj.source,"g"),pW={"&":"&","<":"<",">":">",'"':""","'":"'"},YT=t=>pW[t];function Rn(t,e){if(e){if(oj.test(t))return t.replace(uW,YT)}else if(aj.test(t))return t.replace(dW,YT);return t}const fW=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function sj(t){return t.replace(fW,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const hW=/(^|[^\[])\^/g;function br(t,e){t=typeof t=="string"?t:t.source,e=e||"";const r={replace:(n,o)=>(o=o.source||o,o=o.replace(hW,"$1"),t=t.replace(n,o),r),getRegex:()=>new RegExp(t,e)};return r}const mW=/[^\w:]/g,gW=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function QT(t,e,r){if(t){let n;try{n=decodeURIComponent(sj(r)).replace(mW,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!gW.test(r)&&(r=xW(e,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Jf={},yW=/^[^:]+:\/*[^/]*$/,vW=/^([^:]+:)[\s\S]*$/,bW=/^([^:]+:\/*[^/]*)[\s\S]*$/;function xW(t,e){Jf[" "+t]||(yW.test(t)?Jf[" "+t]=t+"/":Jf[" "+t]=fh(t,"/",!0)),t=Jf[" "+t];const r=t.indexOf(":")===-1;return e.substring(0,2)==="//"?r?e:t.replace(vW,"$1")+e:e.charAt(0)==="/"?r?e:t.replace(bW,"$1")+e:t+e}const Bh={exec:function(){}};function KT(t,e){const r=t.replace(/\|/g,(s,u,d)=>{let p=!1,h=u;for(;--h>=0&&d[h]==="\\";)p=!p;return p?"|":" |"}),n=r.split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function fh(t,e,r){const n=t.length;if(n===0)return"";let o=0;for(;o<n;){const s=t.charAt(n-o-1);if(s===e&&!r)o++;else if(s!==e&&r)o++;else break}return t.slice(0,n-o)}function SW(t,e){if(t.indexOf(e[1])===-1)return-1;const r=t.length;let n=0,o=0;for(;o<r;o++)if(t[o]==="\\")o++;else if(t[o]===e[0])n++;else if(t[o]===e[1]&&(n--,n<0))return o;return-1}function wW(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ZT(t,e){if(e<1)return"";let r="";for(;e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function JT(t,e,r,n){const o=e.href,s=e.title?Rn(e.title):null,u=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;const d={type:"link",raw:r,href:o,title:s,text:u,tokens:n.inlineTokens(u)};return n.state.inLink=!1,d}return{type:"image",raw:r,href:o,title:s,text:Rn(u)}}function CW(t,e){const r=t.match(/^(\s+)(?:```)/);if(r===null)return e;const n=r[1];return e.split(`
|
|
425
|
-
`).map(o=>{const s=o.match(/^\s+/);if(s===null)return o;const[u]=s;return u.length>=n.length?o.slice(n.length):o}).join(`
|
|
426
|
-
`)}class Vb{constructor(e){this.options=e||El}space(e){const r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){const r=this.rules.block.code.exec(e);if(r){const n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:fh(n,`
|
|
427
|
-
`)}}}fences(e){const r=this.rules.block.fences.exec(e);if(r){const n=r[0],o=CW(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:o}}}heading(e){const r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(/#$/.test(n)){const o=fh(n,"#");(this.options.pedantic||!o||/ $/.test(o))&&(n=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:r[0]}}blockquote(e){const r=this.rules.block.blockquote.exec(e);if(r){const n=r[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(n);return this.lexer.state.top=o,{type:"blockquote",raw:r[0],tokens:s,text:n}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n,o,s,u,d,p,h,m,b,y,v,w,C=r[1].trim();const T=C.length>1,M={type:"list",raw:"",ordered:T,start:T?+C.slice(0,-1):"",loose:!1,items:[]};C=T?`\\d{1,9}\\${C.slice(-1)}`:`\\${C}`,this.options.pedantic&&(C=T?C:"[*+-]");const E=new RegExp(`^( {0,3}${C})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(r=E.exec(e))||this.rules.block.hr.test(e)));){if(n=r[0],e=e.substring(n.length),m=r[2].split(`
|
|
428
|
-
`,1)[0].replace(/^\t+/,j=>" ".repeat(3*j.length)),b=e.split(`
|
|
429
|
-
`,1)[0],this.options.pedantic?(u=2,v=m.trimLeft()):(u=r[2].search(/[^ ]/),u=u>4?1:u,v=m.slice(u),u+=r[1].length),p=!1,!m&&/^ *$/.test(b)&&(n+=b+`
|
|
430
|
-
`,e=e.substring(b.length+1),w=!0),!w){const j=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),k=new RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),P=new RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),z=new RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;e&&(y=e.split(`
|
|
431
|
-
`,1)[0],b=y,this.options.pedantic&&(b=b.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(P.test(b)||z.test(b)||j.test(b)||k.test(e)));){if(b.search(/[^ ]/)>=u||!b.trim())v+=`
|
|
432
|
-
`+b.slice(u);else{if(p||m.search(/[^ ]/)>=4||P.test(m)||z.test(m)||k.test(m))break;v+=`
|
|
433
|
-
`+b}!p&&!b.trim()&&(p=!0),n+=y+`
|
|
434
|
-
`,e=e.substring(y.length+1),m=b.slice(u)}}M.loose||(h?M.loose=!0:/\n *\n *$/.test(n)&&(h=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(v),o&&(s=o[0]!=="[ ] ",v=v.replace(/^\[[ xX]\] +/,""))),M.items.push({type:"list_item",raw:n,task:!!o,checked:s,loose:!1,text:v}),M.raw+=n}M.items[M.items.length-1].raw=n.trimRight(),M.items[M.items.length-1].text=v.trimRight(),M.raw=M.raw.trimRight();const R=M.items.length;for(d=0;d<R;d++)if(this.lexer.state.top=!1,M.items[d].tokens=this.lexer.blockTokens(M.items[d].text,[]),!M.loose){const j=M.items[d].tokens.filter(P=>P.type==="space"),k=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));M.loose=k}if(M.loose)for(d=0;d<R;d++)M.items[d].loose=!0;return M}}html(e){const r=this.rules.block.html.exec(e);if(r){const n={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){const o=this.options.sanitizer?this.options.sanitizer(r[0]):Rn(r[0]);n.type="paragraph",n.text=o,n.tokens=this.lexer.inline(o)}return n}}def(e){const r=this.rules.block.def.exec(e);if(r){const n=r[1].toLowerCase().replace(/\s+/g," "),o=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:o,title:s}}}table(e){const r=this.rules.block.table.exec(e);if(r){const n={type:"table",header:KT(r[1]).map(o=>({text:o})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
|
|
435
|
-
`):[]};if(n.header.length===n.align.length){n.raw=r[0];let o=n.align.length,s,u,d,p;for(s=0;s<o;s++)/^ *-+: *$/.test(n.align[s])?n.align[s]="right":/^ *:-+: *$/.test(n.align[s])?n.align[s]="center":/^ *:-+ *$/.test(n.align[s])?n.align[s]="left":n.align[s]=null;for(o=n.rows.length,s=0;s<o;s++)n.rows[s]=KT(n.rows[s],n.header.length).map(h=>({text:h}));for(o=n.header.length,u=0;u<o;u++)n.header[u].tokens=this.lexer.inline(n.header[u].text);for(o=n.rows.length,u=0;u<o;u++)for(p=n.rows[u],d=0;d<p.length;d++)p[d].tokens=this.lexer.inline(p[d].text);return n}}}lheading(e){const r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){const r=this.rules.block.paragraph.exec(e);if(r){const n=r[1].charAt(r[1].length-1)===`
|
|
436
|
-
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){const r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:Rn(r[1])}}tag(e){const r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Rn(r[0]):r[0]}}link(e){const r=this.rules.inline.link.exec(e);if(r){const n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const u=fh(n.slice(0,-1),"\\");if((n.length-u.length)%2===0)return}else{const u=SW(r[2],"()");if(u>-1){const p=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,p).trim(),r[3]=""}}let o=r[2],s="";if(this.options.pedantic){const u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);u&&(o=u[1],s=u[3])}else s=r[3]?r[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(n)?o=o.slice(1):o=o.slice(1,-1)),JT(r,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let o=(n[2]||n[1]).replace(/\s+/g," ");if(o=r[o.toLowerCase()],!o){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return JT(n,o,n[0],this.lexer)}}emStrong(e,r,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o||o[3]&&n.match(/[\p{L}\p{N}]/u))return;const s=o[1]||o[2]||"";if(!s||s&&(n===""||this.rules.inline.punctuation.exec(n))){const u=o[0].length-1;let d,p,h=u,m=0;const b=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(b.lastIndex=0,r=r.slice(-1*e.length+u);(o=b.exec(r))!=null;){if(d=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!d)continue;if(p=d.length,o[3]||o[4]){h+=p;continue}else if((o[5]||o[6])&&u%3&&!((u+p)%3)){m+=p;continue}if(h-=p,h>0)continue;p=Math.min(p,p+h+m);const y=e.slice(0,u+o.index+(o[0].length-d.length)+p);if(Math.min(u,p)%2){const w=y.slice(1,-1);return{type:"em",raw:y,text:w,tokens:this.lexer.inlineTokens(w)}}const v=y.slice(2,-2);return{type:"strong",raw:y,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){const r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(/\n/g," ");const o=/[^ ]/.test(n),s=/^ /.test(n)&&/ $/.test(n);return o&&s&&(n=n.substring(1,n.length-1)),n=Rn(n,!0),{type:"codespan",raw:r[0],text:n}}}br(e){const r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){const r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e,r){const n=this.rules.inline.autolink.exec(e);if(n){let o,s;return n[2]==="@"?(o=Rn(this.options.mangle?r(n[1]):n[1]),s="mailto:"+o):(o=Rn(n[1]),s=o),{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}url(e,r){let n;if(n=this.rules.inline.url.exec(e)){let o,s;if(n[2]==="@")o=Rn(this.options.mangle?r(n[0]):n[0]),s="mailto:"+o;else{let u;do u=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(u!==n[0]);o=Rn(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:o,href:s,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e,r){const n=this.rules.inline.text.exec(e);if(n){let o;return this.lexer.state.inRawBlock?o=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Rn(n[0]):n[0]:o=Rn(this.options.smartypants?r(n[0]):n[0]),{type:"text",raw:n[0],text:o}}}}const St={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Bh,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};St._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;St._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;St.def=br(St.def).replace("label",St._label).replace("title",St._title).getRegex();St.bullet=/(?:[*+-]|\d{1,9}[.)])/;St.listItemStart=br(/^( *)(bull) */).replace("bull",St.bullet).getRegex();St.list=br(St.list).replace(/bull/g,St.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+St.def.source+")").getRegex();St._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";St._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;St.html=br(St.html,"i").replace("comment",St._comment).replace("tag",St._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();St.paragraph=br(St._paragraph).replace("hr",St.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St._tag).getRegex();St.blockquote=br(St.blockquote).replace("paragraph",St.paragraph).getRegex();St.normal={...St};St.gfm={...St.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};St.gfm.table=br(St.gfm.table).replace("hr",St.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St._tag).getRegex();St.gfm.paragraph=br(St._paragraph).replace("hr",St.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",St.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St._tag).getRegex();St.pedantic={...St.normal,html:br(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",St._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Bh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:br(St.normal._paragraph).replace("hr",St.hr).replace("heading",` *#{1,6} *[^
|
|
437
|
-
]`).replace("lheading",St.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const st={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Bh,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Bh,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};st._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";st.punctuation=br(st.punctuation).replace(/punctuation/g,st._punctuation).getRegex();st.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;st.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;st._comment=br(St._comment).replace("(?:-->|$)","-->").getRegex();st.emStrong.lDelim=br(st.emStrong.lDelim).replace(/punct/g,st._punctuation).getRegex();st.emStrong.rDelimAst=br(st.emStrong.rDelimAst,"g").replace(/punct/g,st._punctuation).getRegex();st.emStrong.rDelimUnd=br(st.emStrong.rDelimUnd,"g").replace(/punct/g,st._punctuation).getRegex();st._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;st._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;st._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;st.autolink=br(st.autolink).replace("scheme",st._scheme).replace("email",st._email).getRegex();st._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;st.tag=br(st.tag).replace("comment",st._comment).replace("attribute",st._attribute).getRegex();st._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;st._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;st._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;st.link=br(st.link).replace("label",st._label).replace("href",st._href).replace("title",st._title).getRegex();st.reflink=br(st.reflink).replace("label",st._label).replace("ref",St._label).getRegex();st.nolink=br(st.nolink).replace("ref",St._label).getRegex();st.reflinkSearch=br(st.reflinkSearch,"g").replace("reflink",st.reflink).replace("nolink",st.nolink).getRegex();st.normal={...st};st.pedantic={...st.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:br(/^!?\[(label)\]\((.*?)\)/).replace("label",st._label).getRegex(),reflink:br(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",st._label).getRegex()};st.gfm={...st.normal,escape:br(st.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};st.gfm.url=br(st.gfm.url,"i").replace("email",st.gfm._extended_email).getRegex();st.breaks={...st.gfm,br:br(st.br).replace("{2,}","*").getRegex(),text:br(st.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function TW(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function eE(t){let e="",r,n;const o=t.length;for(r=0;r<o;r++)n=t.charCodeAt(r),Math.random()>.5&&(n="x"+n.toString(16)),e+="&#"+n+";";return e}class ms{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||El,this.options.tokenizer=this.options.tokenizer||new Vb,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={block:St.normal,inline:st.normal};this.options.pedantic?(r.block=St.pedantic,r.inline=st.pedantic):this.options.gfm&&(r.block=St.gfm,this.options.breaks?r.inline=st.breaks:r.inline=st.gfm),this.tokenizer.rules=r}static get rules(){return{block:St,inline:st}}static lex(e,r){return new ms(r).lex(e)}static lexInline(e,r){return new ms(r).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
438
|
-
`),this.blockTokens(e,this.tokens);let r;for(;r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(e,r=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(d,p,h)=>p+" ".repeat(h.length));let n,o,s,u;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(d=>(n=d.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&r.length>0?r[r.length-1].raw+=`
|
|
439
|
-
`:r.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
440
|
-
`+n.raw,o.text+=`
|
|
441
|
-
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
|
|
442
|
-
`+n.raw,o.text+=`
|
|
443
|
-
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let d=1/0;const p=e.slice(1);let h;this.options.extensions.startBlock.forEach(function(m){h=m.call({lexer:this},p),typeof h=="number"&&h>=0&&(d=Math.min(d,h))}),d<1/0&&d>=0&&(s=e.substring(0,d+1))}if(this.state.top&&(n=this.tokenizer.paragraph(s))){o=r[r.length-1],u&&o.type==="paragraph"?(o.raw+=`
|
|
444
|
-
`+n.raw,o.text+=`
|
|
445
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n),u=s.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
|
|
446
|
-
`+n.raw,o.text+=`
|
|
447
|
-
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(n);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let n,o,s,u=e,d,p,h;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(d=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)m.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+ZT("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(d=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)u=u.slice(0,d.index)+"["+ZT("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(d=this.tokenizer.rules.inline.escapedEmSt.exec(u))!=null;)u=u.slice(0,d.index+d[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(p||(h=""),p=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(m=>(n=m.call({lexer:this},e,r))?(e=e.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),o=r[r.length-1],o&&n.type==="text"&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(e,u,h)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(e,eE)){e=e.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,eE))){e=e.substring(n.raw.length),r.push(n);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let m=1/0;const b=e.slice(1);let y;this.options.extensions.startInline.forEach(function(v){y=v.call({lexer:this},b),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),m<1/0&&m>=0&&(s=e.substring(0,m+1))}if(n=this.tokenizer.inlineText(s,TW)){e=e.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),p=!0,o=r[r.length-1],o&&o.type==="text"?(o.raw+=n.raw,o.text+=n.text):r.push(n);continue}if(e){const m="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return r}}class qb{constructor(e){this.options=e||El}code(e,r,n){const o=(r||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,o);s!=null&&s!==e&&(n=!0,e=s)}return e=e.replace(/\n$/,"")+`
|
|
448
|
-
`,o?'<pre><code class="'+this.options.langPrefix+Rn(o)+'">'+(n?e:Rn(e,!0))+`</code></pre>
|
|
449
|
-
`:"<pre><code>"+(n?e:Rn(e,!0))+`</code></pre>
|
|
450
|
-
`}blockquote(e){return`<blockquote>
|
|
451
|
-
${e}</blockquote>
|
|
452
|
-
`}html(e){return e}heading(e,r,n,o){if(this.options.headerIds){const s=this.options.headerPrefix+o.slug(n);return`<h${r} id="${s}">${e}</h${r}>
|
|
453
|
-
`}return`<h${r}>${e}</h${r}>
|
|
454
|
-
`}hr(){return this.options.xhtml?`<hr/>
|
|
455
|
-
`:`<hr>
|
|
456
|
-
`}list(e,r,n){const o=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+o+s+`>
|
|
457
|
-
`+e+"</"+o+`>
|
|
458
|
-
`}listitem(e){return`<li>${e}</li>
|
|
459
|
-
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
|
|
460
|
-
`}table(e,r){return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
461
|
-
<thead>
|
|
462
|
-
`+e+`</thead>
|
|
463
|
-
`+r+`</table>
|
|
464
|
-
`}tablerow(e){return`<tr>
|
|
465
|
-
${e}</tr>
|
|
466
|
-
`}tablecell(e,r){const n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
|
|
467
|
-
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,r,n){if(e=QT(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o='<a href="'+e+'"';return r&&(o+=' title="'+r+'"'),o+=">"+n+"</a>",o}image(e,r,n){if(e=QT(this.options.sanitize,this.options.baseUrl,e),e===null)return n;let o=`<img src="${e}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class lj{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,r,n){return""+n}image(e,r,n){return""+n}br(){return""}}class cj{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,r){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do o++,n=e+"-"+o;while(this.seen.hasOwnProperty(n))}return r||(this.seen[e]=o,this.seen[n]=0),n}slug(e,r={}){const n=this.serialize(e);return this.getNextSafeSlug(n,r.dryrun)}}class gs{constructor(e){this.options=e||El,this.options.renderer=this.options.renderer||new qb,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new lj,this.slugger=new cj}static parse(e,r){return new gs(r).parse(e)}static parseInline(e,r){return new gs(r).parseInline(e)}parse(e,r=!0){let n="",o,s,u,d,p,h,m,b,y,v,w,C,T,M,E,R,j,k,P;const z=e.length;for(o=0;o<z;o++){if(v=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[v.type]&&(P=this.options.extensions.renderers[v.type].call({parser:this},v),P!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(v.type))){n+=P||"";continue}switch(v.type){case"space":continue;case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(v.tokens),v.depth,sj(this.parseInline(v.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(v.text,v.lang,v.escaped);continue}case"table":{for(b="",m="",d=v.header.length,s=0;s<d;s++)m+=this.renderer.tablecell(this.parseInline(v.header[s].tokens),{header:!0,align:v.align[s]});for(b+=this.renderer.tablerow(m),y="",d=v.rows.length,s=0;s<d;s++){for(h=v.rows[s],m="",p=h.length,u=0;u<p;u++)m+=this.renderer.tablecell(this.parseInline(h[u].tokens),{header:!1,align:v.align[u]});y+=this.renderer.tablerow(m)}n+=this.renderer.table(b,y);continue}case"blockquote":{y=this.parse(v.tokens),n+=this.renderer.blockquote(y);continue}case"list":{for(w=v.ordered,C=v.start,T=v.loose,d=v.items.length,y="",s=0;s<d;s++)E=v.items[s],R=E.checked,j=E.task,M="",E.task&&(k=this.renderer.checkbox(R),T?E.tokens.length>0&&E.tokens[0].type==="paragraph"?(E.tokens[0].text=k+" "+E.tokens[0].text,E.tokens[0].tokens&&E.tokens[0].tokens.length>0&&E.tokens[0].tokens[0].type==="text"&&(E.tokens[0].tokens[0].text=k+" "+E.tokens[0].tokens[0].text)):E.tokens.unshift({type:"text",text:k}):M+=k),M+=this.parse(E.tokens,T),y+=this.renderer.listitem(M,j,R);n+=this.renderer.list(y,w,C);continue}case"html":{n+=this.renderer.html(v.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(v.tokens));continue}case"text":{for(y=v.tokens?this.parseInline(v.tokens):v.text;o+1<z&&e[o+1].type==="text";)v=e[++o],y+=`
|
|
468
|
-
`+(v.tokens?this.parseInline(v.tokens):v.text);n+=r?this.renderer.paragraph(y):y;continue}default:{const _='Token with "'+v.type+'" type was not found.';if(this.options.silent){console.error(_);return}else throw new Error(_)}}}return n}parseInline(e,r){r=r||this.renderer;let n="",o,s,u;const d=e.length;for(o=0;o<d;o++){if(s=e[o],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(u=this.options.extensions.renderers[s.type].call({parser:this},s),u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){n+=u||"";continue}switch(s.type){case"escape":{n+=r.text(s.text);break}case"html":{n+=r.html(s.text);break}case"link":{n+=r.link(s.href,s.title,this.parseInline(s.tokens,r));break}case"image":{n+=r.image(s.href,s.title,s.text);break}case"strong":{n+=r.strong(this.parseInline(s.tokens,r));break}case"em":{n+=r.em(this.parseInline(s.tokens,r));break}case"codespan":{n+=r.codespan(s.text);break}case"br":{n+=r.br();break}case"del":{n+=r.del(this.parseInline(s.tokens,r));break}case"text":{n+=r.text(s.text);break}default:{const p='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(p);return}else throw new Error(p)}}}return n}}class zh{constructor(e){this.options=e||El}preprocess(e){return e}postprocess(e){return e}}Gs(zh,"passThroughHooks",new Set(["preprocess","postprocess"]));function EW(t,e,r){return n=>{if(n.message+=`
|
|
469
|
-
Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Rn(n.message+"",!0)+"</pre>";if(e)return Promise.resolve(o);if(r){r(null,o);return}return o}if(e)return Promise.reject(n);if(r){r(n);return}throw n}}function uj(t,e){return(r,n,o)=>{typeof n=="function"&&(o=n,n=null);const s={...n};n={...vt.defaults,...s};const u=EW(n.silent,n.async,o);if(typeof r>"u"||r===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(wW(n),n.hooks&&(n.hooks.options=n),o){const d=n.highlight;let p;try{n.hooks&&(r=n.hooks.preprocess(r)),p=t(r,n)}catch(b){return u(b)}const h=function(b){let y;if(!b)try{n.walkTokens&&vt.walkTokens(p,n.walkTokens),y=e(p,n),n.hooks&&(y=n.hooks.postprocess(y))}catch(v){b=v}return n.highlight=d,b?u(b):o(null,y)};if(!d||d.length<3||(delete n.highlight,!p.length))return h();let m=0;vt.walkTokens(p,function(b){b.type==="code"&&(m++,setTimeout(()=>{d(b.text,b.lang,function(y,v){if(y)return h(y);v!=null&&v!==b.text&&(b.text=v,b.escaped=!0),m--,m===0&&h()})},0))}),m===0&&h();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(r):r).then(d=>t(d,n)).then(d=>n.walkTokens?Promise.all(vt.walkTokens(d,n.walkTokens)).then(()=>d):d).then(d=>e(d,n)).then(d=>n.hooks?n.hooks.postprocess(d):d).catch(u);try{n.hooks&&(r=n.hooks.preprocess(r));const d=t(r,n);n.walkTokens&&vt.walkTokens(d,n.walkTokens);let p=e(d,n);return n.hooks&&(p=n.hooks.postprocess(p)),p}catch(d){return u(d)}}}function vt(t,e,r){return uj(ms.lex,gs.parse)(t,e,r)}vt.options=vt.setOptions=function(t){return vt.defaults={...vt.defaults,...t},cW(vt.defaults),vt};vt.getDefaults=ij;vt.defaults=El;vt.use=function(...t){const e=vt.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(r=>{const n={...r};if(n.async=vt.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const s=e.renderers[o.name];s?e.renderers[o.name]=function(...u){let d=o.renderer.apply(this,u);return d===!1&&(d=s.apply(this,u)),d}:e.renderers[o.name]=o.renderer}if(o.tokenizer){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[o.level]?e[o.level].unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),n.extensions=e),r.renderer){const o=vt.defaults.renderer||new qb;for(const s in r.renderer){const u=o[s];o[s]=(...d)=>{let p=r.renderer[s].apply(o,d);return p===!1&&(p=u.apply(o,d)),p}}n.renderer=o}if(r.tokenizer){const o=vt.defaults.tokenizer||new Vb;for(const s in r.tokenizer){const u=o[s];o[s]=(...d)=>{let p=r.tokenizer[s].apply(o,d);return p===!1&&(p=u.apply(o,d)),p}}n.tokenizer=o}if(r.hooks){const o=vt.defaults.hooks||new zh;for(const s in r.hooks){const u=o[s];zh.passThroughHooks.has(s)?o[s]=d=>{if(vt.defaults.async)return Promise.resolve(r.hooks[s].call(o,d)).then(h=>u.call(o,h));const p=r.hooks[s].call(o,d);return u.call(o,p)}:o[s]=(...d)=>{let p=r.hooks[s].apply(o,d);return p===!1&&(p=u.apply(o,d)),p}}n.hooks=o}if(r.walkTokens){const o=vt.defaults.walkTokens;n.walkTokens=function(s){let u=[];return u.push(r.walkTokens.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}vt.setOptions(n)})};vt.walkTokens=function(t,e){let r=[];for(const n of t)switch(r=r.concat(e.call(vt,n)),n.type){case"table":{for(const o of n.header)r=r.concat(vt.walkTokens(o.tokens,e));for(const o of n.rows)for(const s of o)r=r.concat(vt.walkTokens(s.tokens,e));break}case"list":{r=r.concat(vt.walkTokens(n.items,e));break}default:vt.defaults.extensions&&vt.defaults.extensions.childTokens&&vt.defaults.extensions.childTokens[n.type]?vt.defaults.extensions.childTokens[n.type].forEach(function(o){r=r.concat(vt.walkTokens(n[o],e))}):n.tokens&&(r=r.concat(vt.walkTokens(n.tokens,e)))}return r};vt.parseInline=uj(ms.lexInline,gs.parseInline);vt.Parser=gs;vt.parser=gs.parse;vt.Renderer=qb;vt.TextRenderer=lj;vt.Lexer=ms;vt.lexer=ms.lex;vt.Tokenizer=Vb;vt.Slugger=cj;vt.Hooks=zh;vt.parse=vt;vt.options;vt.setOptions;vt.use;vt.walkTokens;vt.parseInline;gs.parse;ms.lex;let Hc=class extends xr{};N([U(),V({field_type:H.TEXTAREA,label:"Markdown Content",description:"Markdown content to be transformed into React components",placeholder:`# Enter Markdown content...
|
|
470
|
-
|
|
471
|
-
**Bold text** and *italic text*.`}),W(),ae(),q("design:type",String)],Hc.prototype,"children",void 0);N([U(),V({field_type:H.CHECKBOX,label:"Sanitize HTML",description:"Whether to sanitize HTML output for security"}),W(),Ot(),q("design:type",Boolean)],Hc.prototype,"sanitize",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder",description:"Fallback content to display when Markdown is empty",placeholder:"No content available"}),W(),ae(),q("design:type",String)],Hc.prototype,"placeholder",void 0);Hc=N([zt("Markdown","1.0.0")],Hc);var jW=Hc;const AW=[{selector:"pre",transform:(t,e)=>{var s;const r=t.querySelector("code");if(!r)return null;const o={tagName:"Code",version:"1.0.0",data:{language:((s=Array.from(r.classList).find(u=>u.startsWith("language-")))==null?void 0:s.replace("language-",""))||"text",showCopy:!0,showLineNumbers:!1,children:r.textContent||""}};return c.jsx(ne,{sx:{my:1.5},children:dn.deserialize(o)},e)}},{selector:"code",transform:t=>(t.closest("pre"),null)}],MW=t=>({gfm:!0,breaks:!1,pedantic:!1,sanitize:!1,smartypants:!1,renderer:new vt.Renderer,...t});function Fb({children:t="",htmlTransformConfig:e,sanitize:r=!0,sanitizeOptions:n,placeholder:o,component:s="div",markedOptions:u,...d}){const{styleProps:p,htmlProps:h,restProps:m}=On(d);if(Fb[Hn]=!0,!t||!t.trim())return o?c.jsx(ne,{component:s,...h,...p,...m,sx:{opacity:.6,fontStyle:"italic",...p.sx},children:o}):null;try{const b=MW(u),y=vt(t,b),v=e||{rules:AW,sanitize:r,sanitizeOptions:n};return c.jsx(Vi,{transformConfig:v,sanitize:r,sanitizeOptions:n,component:s,...h,...p,...m,children:y})}catch(b){return console.error("Error processing Markdown content:",b),c.jsxs(ne,{component:s,...h,...p,...m,sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)",...p.sx},children:[c.jsx("strong",{children:"Markdown Processing Error:"})," ",b instanceof Error?b.message:"Unknown error",c.jsx(bi,{html:t,placeholder:"Failed to process Markdown"})]})}}class Kd extends wl{getComponentSpecificProps(){return{children:this.props.children,sanitize:this.props.sanitize,placeholder:this.props.placeholder}}renderView(){const{...e}=this.props;return c.jsx(Fb,{...e})}renderWithDataBinding(){return c.jsx(RW,{...this.props})}static registerPatternHandlers(e){e.hasPattern("div.markdown-content")||e.registerPattern("div.markdown-content",Kd.transformMarkdownDiv),e.hasPattern("[data-markdown]")||e.registerPattern("[data-markdown]",Kd.transformDataMarkdown)}static transformMarkdownDiv(e){const r=e.getAttribute("data-sanitize")!=="false",n=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:e.textContent||"",sanitize:r,placeholder:n||void 0}}}static transformDataMarkdown(e){const r=e.getAttribute("data-markdown")||e.textContent,n=e.getAttribute("data-sanitize")!=="false",o=e.getAttribute("data-placeholder");return{tagName:"Markdown",props:{children:r,sanitize:n,placeholder:o||void 0}}}}Kd.tagName="Markdown";Kd.version="1.0.0";function RW(t){const{dataSource:e,bindingOptions:r,...n}=t,{loading:o,error:s,...u}=Qo(e,n,jW.getSchema(),{...r});return o?c.jsx(ne,{sx:{p:2,textAlign:"center",opacity:.6},children:"Loading Markdown content..."}):s?(console.error("Error loading Markdown content:",s),c.jsxs(ne,{sx:{p:2,border:"1px solid orange",borderRadius:1,backgroundColor:"rgba(255, 165, 0, 0.1)"},children:[c.jsx("strong",{children:"Error Loading Markdown:"})," ",s.message]})):c.jsx(Fb,{...u})}class kW{constructor(){this.measurements=[],this.isEnabled=!0,this.isEnabled&&this.initializeListeners()}initializeListeners(){typeof window>"u"||(window.addEventListener("theme-changed",e=>{var r;this.measureThemeSwitch("theme",(r=e.detail)==null?void 0:r.theme)}),window.addEventListener("palette-changed",e=>{var r;this.measureThemeSwitch("palette",(r=e.detail)==null?void 0:r.palette)}))}measureThemeSwitch(e,r){if(!this.isEnabled||typeof window>"u"||typeof performance>"u")return;const n=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{const s=performance.now()-n,u={type:e,value:r,duration:s,timestamp:new Date().toISOString()};this.measurements.push(u),this.measurements.length>50&&this.measurements.shift(),s>100?console.warn(`Slow ${e} switch detected:`,u):console.log(`${e} switch performance:`,`${s.toFixed(2)}ms`)})})}getStatistics(){if(!this.isEnabled||this.measurements.length===0)return null;const e=this.measurements.map(s=>s.duration),r=e.reduce((s,u)=>s+u,0)/e.length,n=Math.min(...e),o=Math.max(...e);return{totalMeasurements:this.measurements.length,averageDuration:r.toFixed(2),minDuration:n.toFixed(2),maxDuration:o.toFixed(2),recentMeasurements:this.measurements.slice(-10)}}logStatistics(){if(!this.isEnabled)return;const e=this.getStatistics();e&&(console.group("Theme Performance Statistics"),console.log("Total measurements:",e.totalMeasurements),console.log("Average duration:",e.averageDuration+"ms"),console.log("Min duration:",e.minDuration+"ms"),console.log("Max duration:",e.maxDuration+"ms"),console.log("Recent measurements:",e.recentMeasurements),console.groupEnd())}reset(){this.measurements=[]}}new kW;var tE;(function(t){t.POST="POST",t.PUT="PUT",t.PATCH="PATCH"})(tE||(tE={}));var rE;(function(t){t.NAVIGATE="navigate",t.SUBMIT="submit",t.RESET="reset",t.CANCEL="cancel"})(rE||(rE={}));class Wb{constructor(e){this.app=Object.freeze({...e.app}),this.build=Object.freeze({...e.build}),this.pwa=Object.freeze({...e.pwa}),this.ui=Object.freeze({...e.ui}),this.copyright=Object.freeze({...e.copyright}),Object.freeze(this)}get viteConfig(){return{server:{port:this.build.port,host:!0},preview:{port:this.build.previewPort,host:!0},build:{outDir:this.build.outputDir},base:this.build.base,publicDir:"public",define:{__APP_NAME__:JSON.stringify(this.app.name),__APP_ID__:JSON.stringify(this.app.id),__APP_VERSION__:JSON.stringify(this.app.version)}}}get pwaManifest(){return{name:this.app.name,short_name:this.app.shortName,description:this.app.description,start_url:this.pwa.startUrl,display:this.pwa.display,orientation:this.pwa.orientation,theme_color:this.pwa.themeColor,background_color:this.pwa.backgroundColor,scope:this.pwa.scope,icons:[{src:"pwa-192x192.png",sizes:"192x192",type:"image/png"},{src:"pwa-512x512.png",sizes:"512x512",type:"image/png"}]}}toJSON(){return{app:this.app,build:this.build,pwa:this.pwa,ui:this.ui,copyright:this.copyright}}with(e){return new Wb({app:{...this.app,...e.app},build:{...this.build,...e.build},pwa:{...this.pwa,...e.pwa},ui:{...this.ui,...e.ui},copyright:{...this.copyright,...e.copyright}})}}let pd,fd;try{typeof window>"u"&&typeof process<"u"&&(pd=require("fs"),fd=require("path"))}catch{}class Gb{constructor(){this.config={app:{},build:{},pwa:{},ui:{},copyright:{}},this.options={}}static create(){return new Gb}withConfig(e){if(!pd||!fd)return typeof window>"u"&&console.warn("Warning: File system operations not available in browser environment"),this;try{const r=fd.resolve(e),n=JSON.parse(pd.readFileSync(r,"utf-8"));n.app&&Object.assign(this.config.app,n.app),n.build&&Object.assign(this.config.build,n.build),n.pwa&&Object.assign(this.config.pwa,n.pwa),n.ui&&Object.assign(this.config.ui,n.ui),n.copyright&&Object.assign(this.config.copyright,n.copyright)}catch{console.warn(`Warning: Could not load config file: ${e}`)}return this}withOptions(e){return this.options={...this.options,...e},this}withName(e){return this.config.app.name=e,this}withId(e){return this.config.app.id=e,this}withShortName(e){return this.config.app.shortName=e,this}withDescription(e){return this.config.app.description=e,this}withVersion(e){return this.config.app.version=e,this}withLogo(e){return this.config.app.logo=e,this}withAuthor(e){return this.config.app.author=e,this}withHomepage(e){return this.config.app.homepage=e,this}withPort(e){return this.config.build.port=e,this}withPreviewPort(e){return this.config.build.previewPort=e,this}withOutputDir(e){return this.config.build.outputDir=e,this}withPublicPath(e){return this.config.build.publicPath=e,this}withBase(e){return this.config.build.base=e,this}withThemeColor(e){return this.config.pwa.themeColor=e,this}withBackgroundColor(e){return this.config.pwa.backgroundColor=e,this}withStartUrl(e){return this.config.pwa.startUrl=e,this}withScope(e){return this.config.pwa.scope=e,this}withDisplay(e){return this.config.pwa.display=e,this}withOrientation(e){return this.config.pwa.orientation=e,this}withDefaultTheme(e){return this.config.ui.defaultTheme=e,this}withDefaultPalette(e){return this.config.ui.defaultPalette=e,this}withScaffolding(e){return this.config.ui.enableScaffolding=e,this}withThemeSwitcher(e){return this.config.ui.showThemeSwitcher=e,this}withPaletteSwitcher(e){return this.config.ui.showPaletteSwitcher=e,this}withCopyright(e,r,n){return this.config.copyright.year=e,this.config.copyright.author=r,n!==void 0&&(this.config.copyright.text=n),this}withCopyrightYear(e){return this.config.copyright.year=e,this}withCopyrightAuthor(e){return this.config.copyright.author=e,this}withCopyrightText(e){return this.config.copyright.text=e,this}build(){const e=this.validate();if(e.warnings.forEach(n=>{console.warn(`⚠️ AppConfig: ${n}`)}),!e.isValid)throw new Error(`AppConfig validation failed:
|
|
472
|
-
${e.errors.map(n=>` - ${n}`).join(`
|
|
473
|
-
`)}`);const r=this.applyDefaults();return new Wb(r)}validate(){const e=[],r=[];if(this.config.app.name||r.push("App name is required"),this.config.app.id||r.push("App ID is required"),this.config.copyright.year&&this.config.copyright.year!=="auto"&&(!Number.isInteger(this.config.copyright.year)||this.config.copyright.year<1900)&&e.push('Copyright year should be "auto" or a valid year >= 1900'),this.config.app.logo&&!this.options.skipValidation&&pd&&fd){const n=fd.resolve(this.options.baseDir||process.cwd(),this.config.app.logo);pd.existsSync(n)||e.push(`Logo file not found: ${this.config.app.logo} (will use default)`)}return this.config.build.port!==void 0&&(!Number.isInteger(this.config.build.port)||this.config.build.port<1||this.config.build.port>65535)&&r.push("Port must be a valid integer between 1 and 65535"),this.config.build.previewPort!==void 0&&(!Number.isInteger(this.config.build.previewPort)||this.config.build.previewPort<1||this.config.build.previewPort>65535)&&r.push("Preview port must be a valid integer between 1 and 65535"),this.config.pwa.themeColor&&!this.isValidColor(this.config.pwa.themeColor)&&e.push(`Theme color may not be valid: ${this.config.pwa.themeColor}`),this.config.pwa.backgroundColor&&!this.isValidColor(this.config.pwa.backgroundColor)&&e.push(`Background color may not be valid: ${this.config.pwa.backgroundColor}`),{warnings:e,errors:r,isValid:r.length===0}}applyDefaults(){const e={id:this.config.app.id,name:this.config.app.name,shortName:this.config.app.shortName||this.config.app.name,description:this.config.app.description||this.config.app.name,version:this.config.app.version||"1.0.0",logo:this.config.app.logo||"/favicon.ico",author:this.config.app.author,homepage:this.config.app.homepage},r={port:this.config.build.port||3e3,previewPort:this.config.build.previewPort||4173,outputDir:this.config.build.outputDir||"dist",publicPath:this.config.build.publicPath||"/",base:this.config.build.base||"/"},n={themeColor:this.config.pwa.themeColor||"#000000",backgroundColor:this.config.pwa.backgroundColor||"#ffffff",startUrl:this.config.pwa.startUrl||"/",scope:this.config.pwa.scope||"/",display:this.config.pwa.display||"standalone",orientation:this.config.pwa.orientation},o={defaultTheme:this.config.ui.defaultTheme||"light",defaultPalette:this.config.ui.defaultPalette||"default",enableScaffolding:this.config.ui.enableScaffolding??!0,showThemeSwitcher:this.config.ui.showThemeSwitcher??!1,showPaletteSwitcher:this.config.ui.showPaletteSwitcher??!1},s={year:this.config.copyright.year||"auto",author:this.config.copyright.author||e.author||e.name,text:this.config.copyright.text};return{app:e,build:r,pwa:n,ui:o,copyright:s}}isValidColor(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)||/^(black|white|red|green|blue|yellow|orange|purple|pink|gray|grey)$/i.test(e)||/^rgba?\([^)]+\)$/i.test(e)}}let ja=class extends gt{};N([U(),V({field_type:H.TEXT,label:"Field Label",description:"Label/title for the choice input field",placeholder:"Options"}),W(),ae(),q("design:type",String)],ja.prototype,"label",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Options",description:"Array of option values (HTML content supported) - JSON array format"}),W(),gn(),ae({each:!0}),q("design:type",Array)],ja.prototype,"options",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Whether the input fields are disabled"}),W(),Ot(),q("design:type",Boolean)],ja.prototype,"disabled",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder Text",description:"Placeholder text for option inputs",placeholder:"Enter option text. HTML formatting supported."}),W(),ae(),q("design:type",String)],ja.prototype,"placeholder",void 0);N([U(),V({field_type:H.TEXT,label:"Option Label Prefix",description:'Prefix for each option label (e.g., "Option", "Choice")',placeholder:"Option"}),W(),ae(),q("design:type",String)],ja.prototype,"optionLabelPrefix",void 0);N([U({defaultValue:2}),V({field_type:H.NUMBER,label:"Input Rows",description:"Number of rows for each option input field"}),W(),Lr(),q("design:type",Number)],ja.prototype,"rows",void 0);N([U(),V({field_type:H.TEXT,label:"Add Button Text",description:"Text for the add option button",placeholder:"Add Option"}),W(),ae(),q("design:type",String)],ja.prototype,"addButtonText",void 0);ja=N([zt("ChoiceInputField","1.0.0")],ja);let Aa=class extends N5{};N([U(),V({field_type:H.TEXTAREA,label:"Content",description:"Raw code text. If provided, React children are ignored in serialization.",placeholder:"Enter code content..."}),W(),ae(),q("design:type",String)],Aa.prototype,"content",void 0);N([U(),V({field_type:H.TEXT,label:"Language",description:"Programming language for syntax highlighting (e.g., typescript, javascript, python)",placeholder:"javascript"}),W(),ae(),q("design:type",String)],Aa.prototype,"language",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Show Copy Button",description:"Display a copy-to-clipboard button"}),W(),Ot(),q("design:type",Boolean)],Aa.prototype,"showCopy",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Show Line Numbers",description:"Display line numbers alongside the code"}),W(),Ot(),q("design:type",Boolean)],Aa.prototype,"showLineNumbers",void 0);N([U(),V({field_type:H.TEXT,label:"Title",description:"Optional title or filename to display above the code",placeholder:"File name or title"}),W(),ae(),q("design:type",String)],Aa.prototype,"title",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Wrap Long Lines",description:"Allow long lines to wrap instead of scrolling horizontally"}),W(),Ot(),q("design:type",Boolean)],Aa.prototype,"wrapLines",void 0);N([U(),V({field_type:H.TEXT,label:"Background Color",description:"Custom background color override",placeholder:"#f5f5f5"}),W(),ae(),q("design:type",String)],Aa.prototype,"codeBackground",void 0);Aa=N([zt("Code","1.0.0")],Aa);let ni=class extends Ca{};N([U(),V({field_type:H.NUMBER,label:"Span",description:"Number of columns to span (1-12)",placeholder:"12"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"span",void 0);N([U(),V({field_type:H.NUMBER,label:"XS (Mobile)",description:"Columns on extra small screens (1-12)",placeholder:"12"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"xs",void 0);N([U(),V({field_type:H.NUMBER,label:"SM (Tablet)",description:"Columns on small screens (1-12)",placeholder:"6"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"sm",void 0);N([U(),V({field_type:H.NUMBER,label:"MD (Desktop)",description:"Columns on medium screens (1-12)",placeholder:"4"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"md",void 0);N([U(),V({field_type:H.NUMBER,label:"LG (Large Desktop)",description:"Columns on large screens (1-12)",placeholder:"3"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"lg",void 0);N([U(),V({field_type:H.NUMBER,label:"XL (Extra Large)",description:"Columns on extra large screens (1-12)",placeholder:"2"}),W(),Lr(),qe([1,2,3,4,5,6,7,8,9,10,11,12]),q("design:type",Number)],ni.prototype,"xl",void 0);N([U(),V({field_type:H.TEXT,label:"Background",description:'Background color or theme color (e.g., "primary.main", "#ffffff")',placeholder:"transparent"}),W(),ae(),q("design:type",String)],ni.prototype,"background",void 0);N([U(),V({field_type:H.TEXT,label:"Padding",description:'Internal spacing (e.g., "medium", "16px", "1rem")',placeholder:"medium"}),W(),ae(),q("design:type",String)],ni.prototype,"padding",void 0);N([U(),V({field_type:H.TEXT,label:"Margin",description:'External spacing (e.g., "small", "8px", "0.5rem")',placeholder:"0"}),W(),ae(),q("design:type",String)],ni.prototype,"margin",void 0);N([U(),V({field_type:H.TEXT,label:"Height",description:'Cell height (e.g., "200px", "medium")',placeholder:"auto"}),W(),ae(),q("design:type",String)],ni.prototype,"height",void 0);N([U(),V({field_type:H.TEXT,label:"Width",description:'Cell width (e.g., "100%", "300px")',placeholder:"100%"}),W(),ae(),q("design:type",String)],ni.prototype,"width",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-cell-class"}),W(),ae(),q("design:type",String)],ni.prototype,"className",void 0);ni=N([zt("GridCell","1.0.0")],ni);let Xi=class extends Ca{};N([U(),V({field_type:H.NUMBER,label:"Columns",description:"Number of equal-width columns for auto-distribution"}),W(),Lr(),si(1),q("design:type",Number)],Xi.prototype,"columns",void 0);N([U({defaultValue:"small"}),V({field_type:H.SELECT,label:"Spacing",description:"Spacing between grid items"}),W(),ae(),qe(["tiny","small","medium","large","huge"]),q("design:type",String)],Xi.prototype,"spacing",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Equal Height",description:"Make all grid items the same height"}),W(),Ot(),q("design:type",Boolean)],Xi.prototype,"equalHeight",void 0);N([U(),V({field_type:H.TEXT,label:"Height",description:'Grid container height (e.g., "400px", "50vh", "medium")',placeholder:"auto"}),W(),ae(),q("design:type",String)],Xi.prototype,"height",void 0);N([U(),V({field_type:H.TEXT,label:"Width",description:'Grid container width (e.g., "100%", "800px", "large")',placeholder:"100%"}),W(),ae(),q("design:type",String)],Xi.prototype,"width",void 0);N([U(),V({field_type:H.TEXT,label:"Min Height",description:"Minimum grid container height",placeholder:"auto"}),W(),ae(),q("design:type",String)],Xi.prototype,"minHeight",void 0);N([U(),V({field_type:H.TEXT,label:"Min Width",description:"Minimum grid container width",placeholder:"auto"}),W(),ae(),q("design:type",String)],Xi.prototype,"minWidth",void 0);N([U(),V({field_type:H.TEXT,label:"Max Height",description:"Maximum grid container height",placeholder:"none"}),W(),ae(),q("design:type",String)],Xi.prototype,"maxHeight",void 0);N([U(),V({field_type:H.TEXT,label:"Max Width",description:"Maximum grid container width",placeholder:"none"}),W(),ae(),q("design:type",String)],Xi.prototype,"maxWidth",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class names",placeholder:"custom-grid-class"}),W(),ae(),q("design:type",String)],Xi.prototype,"className",void 0);Xi=N([zt("GridLayout","1.0.0")],Xi);let Yi=class extends Ca{};N([U(),V({field_type:H.TEXT,label:"Title",description:"Main headline text",placeholder:"Enter hero title..."}),ae(),q("design:type",String)],Yi.prototype,"title",void 0);N([U(),V({field_type:H.TEXT,label:"Subtitle",description:"Subtitle or description text",placeholder:"Enter subtitle..."}),W(),ae(),q("design:type",String)],Yi.prototype,"subtitle",void 0);N([U(),V({field_type:H.IMAGE,label:"Background Image",description:"Background image URL",placeholder:"https://..."}),W(),bm(),q("design:type",String)],Yi.prototype,"backgroundImage",void 0);N([U(),V({field_type:H.TEXT,label:"Background Gradient",description:"Background gradient CSS value",placeholder:"linear-gradient(...)"}),W(),ae(),q("design:type",String)],Yi.prototype,"backgroundGradient",void 0);N([U({defaultValue:"default"}),V({field_type:H.SELECT,label:"Background Color",description:"Background color theme variant",validation:{options:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Surface",value:"surface"}]}}),W(),qe(["default","primary","secondary","surface"]),q("design:type",String)],Yi.prototype,"backgroundColor",void 0);N([U({type:dt.ARRAY}),V({field_type:H.REPEATER,label:"Actions",description:"Action buttons for the hero section"}),W(),gn(),ai({each:!0}),li(()=>ti),q("design:type",Array)],Yi.prototype,"actions",void 0);N([U({defaultValue:"center"}),V({field_type:H.SELECT,label:"Text Alignment",description:"Text alignment",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]}}),W(),qe(["left","center","right"]),q("design:type",String)],Yi.prototype,"textAlign",void 0);N([U({defaultValue:"medium"}),V({field_type:H.SELECT,label:"Block Height",description:"Block height preset",validation:{options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Viewport",value:"viewport"}]}}),W(),qe(["small","medium","large","viewport"]),q("design:type",String)],Yi.prototype,"blockHeight",void 0);N([U(),V({field_type:H.NUMBER,label:"Overlay Opacity",description:"Custom overlay opacity (0-1) when using background images",validation:{min:0,max:1}}),W(),Lr(),si(0),Sl(1),q("design:type",Number)],Yi.prototype,"overlayOpacity",void 0);N([U(),V({field_type:H.TEXT,label:"CSS Class",description:"Additional CSS class name",placeholder:"custom-hero-class"}),W(),ae(),q("design:type",String)],Yi.prototype,"className",void 0);Yi=N([zt("HeroBlock","1.0.0")],Yi);let an=class extends gt{};N([U({dataType:dt.STRING}),V({field_type:H.IMAGE,label:"Image Source",description:"Image source URL or path",placeholder:"https://example.com/image.jpg"}),W(),ae(),q("design:type",String)],an.prototype,"src",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Alt Text",description:"Alternative text for accessibility (required for images with src)",placeholder:"Describe the image for screen readers"}),W(),ae(),q("design:type",String)],an.prototype,"alt",void 0);N([U({dataType:dt.NUMBER}),V({field_type:H.NUMBER,label:"Width",description:"Image width in pixels (optional)",placeholder:"300"}),W(),Lr(),q("design:type",Number)],an.prototype,"width",void 0);N([U({dataType:dt.NUMBER}),V({field_type:H.NUMBER,label:"Height",description:"Image height in pixels (optional)",placeholder:"200"}),W(),Lr(),q("design:type",Number)],an.prototype,"height",void 0);N([U({defaultValue:"cover",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Object Fit",description:"How the image should be resized to fit its container",validation:{options:[{label:"Fill",value:"fill"},{label:"Contain",value:"contain"},{label:"Cover",value:"cover"},{label:"None",value:"none"},{label:"Scale Down",value:"scale-down"}]}}),W(),ae(),qe(["fill","contain","cover","none","scale-down"]),q("design:type",String)],an.prototype,"objectFit",void 0);N([U({defaultValue:"center",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Object Position",description:"Position of the image within its container",validation:{options:[{label:"Center",value:"center"},{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Top Left",value:"top-left"},{label:"Top Right",value:"top-right"},{label:"Bottom Left",value:"bottom-left"},{label:"Bottom Right",value:"bottom-right"}]}}),W(),ae(),qe(["center","top","bottom","left","right","top-left","top-right","bottom-left","bottom-right"]),q("design:type",String)],an.prototype,"objectPosition",void 0);N([U({defaultValue:"lazy",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Loading",description:"Image loading behavior",validation:{options:[{label:"Lazy (load when visible)",value:"lazy"},{label:"Eager (load immediately)",value:"eager"}]}}),W(),ae(),qe(["lazy","eager"]),q("design:type",String)],an.prototype,"loading",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Title",description:"Image title (tooltip text)",placeholder:"Tooltip text on hover"}),W(),ae(),q("design:type",String)],an.prototype,"title",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"Draggable",description:"Allow the image to be dragged"}),W(),Ot(),q("design:type",Boolean)],an.prototype,"draggable",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Border Radius",description:'CSS border radius (e.g., "8px", "50%", "1rem")',placeholder:"8px"}),W(),ae(),q("design:type",String)],an.prototype,"borderRadius",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"Show Loading State",description:"Display a loading placeholder while the image loads"}),W(),Ot(),q("design:type",Boolean)],an.prototype,"showLoading",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"Show Error State",description:"Display an error message if the image fails to load"}),W(),Ot(),q("design:type",Boolean)],an.prototype,"showError",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Fallback Image",description:"Fallback image URL to use if the main image fails to load",placeholder:"https://example.com/fallback.jpg"}),W(),ae(),q("design:type",String)],an.prototype,"fallbackSrc",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Responsive Sizes",description:"Responsive image sizes attribute for optimized loading",placeholder:"(max-width: 768px) 100vw, 50vw"}),W(),ae(),q("design:type",String)],an.prototype,"sizes",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Source Set",description:"Source set for responsive images (comma-separated)",placeholder:"image-320w.jpg 320w, image-640w.jpg 640w, image-1280w.jpg 1280w"}),W(),ae(),q("design:type",String)],an.prototype,"srcSet",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Loading Placeholder",description:"Custom loading placeholder content (for advanced use)",placeholder:"Custom loading content..."}),W(),q("design:type",Object)],an.prototype,"loadingPlaceholder",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Error Placeholder",description:"Custom error placeholder content (for advanced use)",placeholder:"Custom error content..."}),W(),q("design:type",Object)],an.prototype,"errorPlaceholder",void 0);an=N([zt("Image","1.0.0")],an);let vl=class extends Ca{};N([U(),V({field_type:H.TEXT,label:"Background Color",description:"Background color (CSS color, theme path, or palette color)",placeholder:"#ffffff or primary.main"}),W(),ae(),q("design:type",String)],vl.prototype,"background",void 0);N([U(),V({field_type:H.TEXT,label:"Text Color",description:"Text color (CSS color, theme path, or palette color)",placeholder:"#000000 or text.primary"}),W(),ae(),q("design:type",String)],vl.prototype,"color",void 0);N([U(),V({field_type:H.SELECT,label:"Section Padding",description:"Vertical padding/spacing for the section",validation:{options:[{value:"none",label:"None"},{value:"tiny",label:"Tiny (8px)"},{value:"small",label:"Small (16px)"},{value:"medium",label:"Medium (32px)"},{value:"large",label:"Large (64px)"},{value:"extra-large",label:"Extra Large (96px)"}]}}),W(),qe(["none","tiny","small","medium","large","extra-large"]),q("design:type",String)],vl.prototype,"padding",void 0);N([U(),V({field_type:H.SELECT,label:"Content Max Width",description:"Maximum width for the content container",validation:{options:[{value:"xs",label:"Extra Small (444px)"},{value:"sm",label:"Small (600px)"},{value:"md",label:"Medium (900px)"},{value:"lg",label:"Large (1200px)"},{value:"xl",label:"Extra Large (1536px)"},{value:"false",label:"Full Width"}]}}),W(),qe(["xs","sm","md","lg","xl","false"]),q("design:type",String)],vl.prototype,"contentMaxWidth",void 0);N([U(),V({field_type:H.SELECT,label:"HTML Element",description:"HTML element type to use for the section",validation:{options:[{value:"section",label:"Section"},{value:"div",label:"Div"},{value:"article",label:"Article"},{value:"main",label:"Main"}]}}),W(),qe(["section","div","article","main"]),q("design:type",String)],vl.prototype,"component",void 0);vl=N([zt("Section","1.0.0")],vl);let Ci=class extends gt{};N([U(),V({field_type:H.TEXT,label:"Field Label",description:"The label displayed for the text input field",placeholder:"Enter field label..."}),ae(),q("design:type",String)],Ci.prototype,"label",void 0);N([U(),V({field_type:H.TEXT,label:"Value",description:"Current field value",placeholder:"Enter value..."}),W(),ae(),q("design:type",String)],Ci.prototype,"value",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Required",description:"Whether the field is required"}),W(),Ot(),q("design:type",Boolean)],Ci.prototype,"required",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Disabled",description:"Whether the field is disabled"}),W(),Ot(),q("design:type",Boolean)],Ci.prototype,"disabled",void 0);N([U(),V({field_type:H.TEXT,label:"Error Message",description:"Error message to display if validation fails",placeholder:"Enter error message..."}),W(),ae(),q("design:type",String)],Ci.prototype,"error",void 0);N([U(),V({field_type:H.TEXT,label:"Helper Text",description:"Helper text to guide the user",placeholder:"Enter helper text..."}),W(),ae(),q("design:type",String)],Ci.prototype,"helperText",void 0);N([U(),V({field_type:H.TEXT,label:"Placeholder",description:"Placeholder text shown when field is empty",placeholder:"Enter placeholder text..."}),W(),ae(),q("design:type",String)],Ci.prototype,"placeholder",void 0);N([U(),V({field_type:H.TEXT,label:"Input Type",description:"HTML input type (text, email, number, password, etc.)",placeholder:"text"}),W(),ae(),q("design:type",String)],Ci.prototype,"type",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Multiline",description:"Whether the field supports multiple lines (textarea)"}),W(),Ot(),q("design:type",Boolean)],Ci.prototype,"multiline",void 0);N([U(),V({field_type:H.NUMBER,label:"Rows",description:"Number of rows for multiline fields"}),W(),Lr(),q("design:type",Number)],Ci.prototype,"rows",void 0);N([U(),V({field_type:H.NUMBER,label:"Max Rows",description:"Maximum number of rows for multiline fields"}),W(),Lr(),q("design:type",Number)],Ci.prototype,"maxRows",void 0);Ci=N([zt("TextInputField","1.0.0")],Ci);let Zr=class extends xr{};N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Text Content",description:"The text content to display",placeholder:"Enter your text content here..."}),W(),ae(),q("design:type",String)],Zr.prototype,"content",void 0);N([U({defaultValue:"body1",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Typography Variant",description:"Typography variant that determines font size, weight, and line height",validation:{options:[{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"},{label:"Heading 4",value:"h4"},{label:"Heading 5",value:"h5"},{label:"Heading 6",value:"h6"},{label:"Subtitle 1",value:"subtitle1"},{label:"Subtitle 2",value:"subtitle2"},{label:"Body 1",value:"body1"},{label:"Body 2",value:"body2"},{label:"Button",value:"button"},{label:"Caption",value:"caption"},{label:"Overline",value:"overline"}]}}),W(),ae(),qe(["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","caption","overline"]),q("design:type",String)],Zr.prototype,"variant",void 0);N([U({defaultValue:"inherit",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Text Color",description:"Color variant for the text",validation:{options:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Text Primary",value:"textPrimary"},{label:"Text Secondary",value:"textSecondary"},{label:"Error",value:"error"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),qe(["primary","secondary","textPrimary","textSecondary","error","warning","info","success","inherit"]),q("design:type",String)],Zr.prototype,"color",void 0);N([U({defaultValue:"inherit",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Text Alignment",description:"How to align the text horizontally",validation:{options:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),qe(["left","center","right","justify","inherit"]),q("design:type",String)],Zr.prototype,"align",void 0);N([U({defaultValue:"p",dataType:dt.STRING}),V({field_type:H.SELECT,label:"HTML Element",description:"The HTML element to render (affects semantics and accessibility)",validation:{options:[{label:"Paragraph (p)",value:"p"},{label:"Span",value:"span"},{label:"Div",value:"div"},{label:"Heading 1 (h1)",value:"h1"},{label:"Heading 2 (h2)",value:"h2"},{label:"Heading 3 (h3)",value:"h3"},{label:"Heading 4 (h4)",value:"h4"},{label:"Heading 5 (h5)",value:"h5"},{label:"Heading 6 (h6)",value:"h6"},{label:"Label",value:"label"},{label:"Legend",value:"legend"}]}}),W(),ae(),qe(["p","span","div","h1","h2","h3","h4","h5","h6","label","legend"]),q("design:type",String)],Zr.prototype,"component",void 0);N([U({defaultValue:"inherit",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Font Weight",description:"The weight (thickness) of the font",validation:{options:[{label:"Inherit",value:"inherit"},{label:"Lighter",value:"lighter"},{label:"Normal",value:"normal"},{label:"Bold",value:"bold"},{label:"Bolder",value:"bolder"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}}),W(),ae(),qe(["inherit","lighter","normal","bold","bolder","100","200","300","400","500","600","700","800","900"]),q("design:type",String)],Zr.prototype,"fontWeight",void 0);N([U({defaultValue:"none",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Text Decoration",description:"Text decoration style",validation:{options:[{label:"None",value:"none"},{label:"Underline",value:"underline"},{label:"Overline",value:"overline"},{label:"Line Through",value:"line-through"}]}}),W(),ae(),qe(["none","underline","overline","line-through"]),q("design:type",String)],Zr.prototype,"textDecoration",void 0);N([U({defaultValue:"none",dataType:dt.STRING}),V({field_type:H.SELECT,label:"Text Transform",description:"How to transform the text case",validation:{options:[{label:"None",value:"none"},{label:"Capitalize",value:"capitalize"},{label:"Uppercase",value:"uppercase"},{label:"Lowercase",value:"lowercase"},{label:"Inherit",value:"inherit"}]}}),W(),ae(),qe(["none","capitalize","uppercase","lowercase","inherit"]),q("design:type",String)],Zr.prototype,"textTransform",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"No Wrap",description:"Prevent text from wrapping to multiple lines"}),W(),Ot(),q("design:type",Boolean)],Zr.prototype,"noWrap",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"Paragraph Mode",description:"Apply paragraph spacing and formatting"}),W(),Ot(),q("design:type",Boolean)],Zr.prototype,"paragraph",void 0);N([U({defaultValue:!1,dataType:dt.BOOLEAN}),V({field_type:H.BOOLEAN,label:"Gutter Bottom",description:"Add margin bottom for spacing (useful for headings)"}),W(),Ot(),q("design:type",Boolean)],Zr.prototype,"gutterBottom",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Font Size",description:'Custom font size (overrides variant sizing, e.g., "16px", "1.2rem")',placeholder:"16px"}),W(),ae(),q("design:type",String)],Zr.prototype,"fontSize",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Line Height",description:'Custom line height (e.g., "1.5", "24px", "150%")',placeholder:"1.5"}),W(),ae(),q("design:type",String)],Zr.prototype,"lineHeight",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Letter Spacing",description:'Custom letter spacing (e.g., "0.1em", "1px")',placeholder:"0.1em"}),W(),ae(),q("design:type",String)],Zr.prototype,"letterSpacing",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXT,label:"Font Family",description:'Custom font family (e.g., "Arial, sans-serif")',placeholder:"Arial, sans-serif"}),W(),ae(),q("design:type",String)],Zr.prototype,"fontFamily",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Custom Color",description:"Custom text color (CSS color value, overrides color variant)",placeholder:"#333333 or rgb(51, 51, 51)"}),W(),ae(),q("design:type",String)],Zr.prototype,"customColor",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Max Width",description:'Maximum width for the text (e.g., "300px", "50%")',placeholder:"300px"}),W(),ae(),q("design:type",String)],Zr.prototype,"maxWidth",void 0);N([U({dataType:dt.STRING}),V({field_type:H.TEXTAREA,label:"Rich Content",description:"Rich text content with React elements (for advanced use)",placeholder:"Rich content..."}),W(),q("design:type",Object)],Zr.prototype,"children",void 0);Zr=N([zt("Text","1.0.0")],Zr);let Jr=class extends xr{};N([U({defaultValue:"light"}),V({field_type:H.SELECT,label:"Print Theme",description:"Theme mode to use when printing",validation:{options:[{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}}),W(),qe(["light","dark"]),q("design:type",String)],Jr.prototype,"theme",void 0);N([U({defaultValue:"default"}),V({field_type:H.SELECT,label:"Print Palette",description:"Color palette to use for print output",validation:{options:[{label:"Default",value:"default"},{label:"Autumn",value:"autumn"},{label:"Cosmic",value:"cosmic"},{label:"Ocean",value:"ocean"},{label:"Spring",value:"spring"},{label:"Winter",value:"winter"}]}}),W(),ae(),q("design:type",String)],Jr.prototype,"palette",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Hide Scaffolding",description:"Hide app scaffolding (navigation, headers) when printing"}),W(),Ot(),q("design:type",Boolean)],Jr.prototype,"hideScaffolding",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Hide Interactive Elements",description:"Hide buttons and interactive elements when printing"}),W(),Ot(),q("design:type",Boolean)],Jr.prototype,"hideInteractiveElements",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Optimize For Monochrome",description:"Optimize design for black and white printing"}),W(),Ot(),q("design:type",Boolean)],Jr.prototype,"optimizeForMonochrome",void 0);N([U(),V({field_type:H.TEXT,label:"Print Title",description:"Custom title to show when printing (optional)",placeholder:"Document Title"}),W(),ae(),q("design:type",String)],Jr.prototype,"printTitle",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show Print Date",description:"Include print date and time in printed output"}),W(),Ot(),q("design:type",Boolean)],Jr.prototype,"showPrintDate",void 0);N([U(),V({field_type:H.TEXT,label:"Print Header",description:"Custom header content for printed pages (HTML string or React component)",placeholder:"<div>Custom header content...</div>"}),W(),q("design:type",Object)],Jr.prototype,"printHeader",void 0);N([U(),V({field_type:H.TEXT,label:"Print Header (First Page)",description:"Different header for the first page only (overrides main header on page 1)",placeholder:"<div>First page header...</div>"}),W(),q("design:type",Object)],Jr.prototype,"printHeaderFirstPage",void 0);N([U(),V({field_type:H.TEXT,label:"Print Footer",description:"Custom footer content for printed pages (HTML string or React component)",placeholder:"<div>Custom footer content...</div>"}),W(),q("design:type",Object)],Jr.prototype,"printFooter",void 0);N([U(),V({field_type:H.TEXT,label:"Print Footer (First Page)",description:"Different footer for the first page only (overrides main footer on page 1)",placeholder:"<div>First page footer...</div>"}),W(),q("design:type",Object)],Jr.prototype,"printFooterFirstPage",void 0);N([U({defaultValue:"12mm"}),V({field_type:H.SELECT,label:"Page Margins",description:"Print page margins",validation:{options:[{label:"Compact (6mm)",value:"6mm"},{label:"Standard (12mm)",value:"12mm"},{label:"Large (20mm)",value:"20mm"},{label:"Formal (25mm)",value:"25mm"}]}}),W(),ae(),q("design:type",String)],Jr.prototype,"pageMargins",void 0);N([U({defaultValue:"60px"}),V({field_type:H.TEXT,label:"Print Header Height",description:"Height allocated for print header (CSS units: px, mm, etc.)",placeholder:"60px"}),W(),ae(),q("design:type",String)],Jr.prototype,"printHeaderHeight",void 0);N([U({defaultValue:"40px"}),V({field_type:H.TEXT,label:"Print Footer Height",description:"Height allocated for print footer (CSS units: px, mm, etc.)",placeholder:"40px"}),W(),ae(),q("design:type",String)],Jr.prototype,"printFooterHeight",void 0);N([U(),V({field_type:H.TEXT,label:"Print Background",description:"CSS background for all printed pages (color, gradient, or image)",placeholder:"linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"}),W(),ae(),q("design:type",String)],Jr.prototype,"printBackground",void 0);N([U(),V({field_type:H.TEXT,label:"Print Background (First Page)",description:"Different background for the first page only",placeholder:"url(/logo-watermark.png) no-repeat center, #ffffff"}),W(),ae(),q("design:type",String)],Jr.prototype,"printBackgroundFirstPage",void 0);Jr=N([zt("PrintConfig","1.0.0")],Jr);let mn=class extends gt{};N([U(),V({field_type:H.TEXT,label:"Page Slug",description:'URL-friendly page identifier (e.g., "about-us")',placeholder:"page-slug"}),W(),ae(),q("design:type",String)],mn.prototype,"slug",void 0);N([U(),V({field_type:H.TEXT,label:"Page Name",description:"Human-readable page name",placeholder:"About Us"}),W(),ae(),q("design:type",String)],mn.prototype,"name",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Page Description",description:"Description of the page content (used for SEO)",placeholder:"Brief description of this page..."}),W(),ae(),q("design:type",String)],mn.prototype,"description",void 0);N([U(),V({field_type:H.TEXT,label:"Page Title",description:"HTML title tag content (defaults to name if not provided)",placeholder:"Page Title | Site Name"}),W(),ae(),q("design:type",String)],mn.prototype,"title",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Meta Keywords",description:"SEO keywords (comma-separated)",placeholder:"keyword1, keyword2, keyword3"}),W(),ae(),q("design:type",String)],mn.prototype,"metaKeywords",void 0);N([U(),V({field_type:H.TEXT,label:"Meta Author",description:"Page author information",placeholder:"Author Name"}),W(),ae(),q("design:type",String)],mn.prototype,"metaAuthor",void 0);N([U(),V({field_type:H.URL,label:"Canonical URL",description:"Canonical URL for SEO (optional)",placeholder:"https://example.com/page"}),W(),ae(),q("design:type",String)],mn.prototype,"canonicalUrl",void 0);N([U(),V({field_type:H.TEXTAREA,label:"Page Content",description:"Main page content - can include React components and HTML"}),W(),q("design:type",Object)],mn.prototype,"children",void 0);N([U(),V({field_type:H.FORM,label:"Print Configuration",description:"Configuration for print mode behavior"}),W(),ai(),li(()=>Jr),q("design:type",Jr)],mn.prototype,"printConfig",void 0);N([U(),V({field_type:H.TEXT,label:"Layout Template",description:"Layout template identifier to use for this page",placeholder:"default, fullwidth, sidebar, etc."}),W(),ae(),q("design:type",String)],mn.prototype,"layout",void 0);N([U(),V({field_type:H.TEXT,label:"Page Icon",description:"Icon identifier for page (used in navigation)",placeholder:"home, about, contact"}),W(),ae(),q("design:type",String)],mn.prototype,"icon",void 0);N([U({defaultValue:!1}),V({field_type:H.BOOLEAN,label:"Requires Authentication",description:"Whether this page requires user authentication"}),W(),q("design:type",Boolean)],mn.prototype,"requiresAuth",void 0);N([U(),V({field_type:H.TEXT,label:"Required Roles",description:"Comma-separated list of roles required to access this page",placeholder:"admin, user, moderator"}),W(),ae(),q("design:type",String)],mn.prototype,"requiredRoles",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Show in Navigation",description:"Whether to include this page in navigation menus"}),W(),q("design:type",Boolean)],mn.prototype,"showInNavigation",void 0);N([U({defaultValue:0}),V({field_type:H.NUMBER,label:"Navigation Priority",description:"Priority in navigation (lower numbers appear first)"}),W(),q("design:type",Number)],mn.prototype,"navigationPriority",void 0);N([U({defaultValue:!0}),V({field_type:H.BOOLEAN,label:"Indexable",description:"Whether search engines should index this page"}),W(),q("design:type",Boolean)],mn.prototype,"indexable",void 0);mn=N([zt("PageTemplate","1.0.0")],mn);const OW=Gb.create().withName("Control Panel").withId("com.qwickapps.control-panel").withVersion("1.0.0").withDefaultTheme("dark").withDefaultPalette("cosmic").withThemeSwitcher(!0).withPaletteSwitcher(!0).withDisplay("standalone").build(),dj=S.createContext(null);function PW({initialWidgets:t=[],children:e}){const[r,n]=S.useState(t.map(p=>({...p,visible:p.visible!==!1,priority:p.priority??100}))),o=S.useCallback(p=>{n(h=>h.some(b=>b.id===p.id)?h.map(b=>b.id===p.id?{...p,visible:p.visible!==!1,priority:p.priority??100}:b):[...h,{...p,visible:p.visible!==!1,priority:p.priority??100}])},[]),s=S.useCallback(p=>{n(h=>h.filter(m=>m.id!==p))},[]),u=S.useCallback((p,h)=>{n(m=>m.map(b=>b.id===p?{...b,visible:h??!b.visible}:b))},[]),d=S.useCallback(()=>r.filter(p=>p.visible!==!1).sort((p,h)=>(p.priority??100)-(h.priority??100)),[r]);return c.jsx(dj.Provider,{value:{widgets:r,registerWidget:o,unregisterWidget:s,toggleWidget:u,getVisibleWidgets:d},children:e})}function _W(){const t=S.useContext(dj);if(!t)throw new Error("useDashboardWidgets must be used within a DashboardWidgetProvider");return t}function LW(){const{getVisibleWidgets:t}=_W(),e=t();return e.length===0?null:c.jsx(c.Fragment,{children:e.map(r=>c.jsxs(ne,{sx:{mt:4},children:[r.title&&c.jsx(me,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:r.title}),r.component]},r.id))})}const pj=S.createContext(null);function NW({initialComponents:t=[],children:e}){const[r,n]=S.useState(()=>{const m=new Map;for(const b of t)m.set(b.name,b.component);return m}),o=S.useCallback((m,b)=>{n(y=>{const v=new Map(y);return v.set(m,b),v})},[]),s=S.useCallback(m=>{n(b=>{const y=new Map(b);for(const v of m)y.set(v.name,v.component);return y})},[]),u=S.useCallback(m=>r.get(m)??null,[r]),d=S.useCallback(m=>r.has(m),[r]),p=S.useCallback(()=>Array.from(r.keys()),[r]),h=S.useMemo(()=>({registerComponent:o,registerComponents:s,getComponent:u,hasComponent:d,getRegisteredNames:p}),[o,s,u,d,p]);return c.jsx(pj.Provider,{value:h,children:e})}function IW(){const t=S.useContext(pj);if(!t)throw new Error("useWidgetComponentRegistry must be used within a WidgetComponentRegistryProvider");return t}class BW{constructor(e=""){Gs(this,"baseUrl");this.baseUrl=e}setBaseUrl(e){this.baseUrl=e}getBaseUrl(){return this.baseUrl}async fetch(e,r){const n=`${this.baseUrl}/api${e.startsWith("/")?e:`/${e}`}`,o=await fetch(n,{...r,headers:{"Content-Type":"application/json",...r==null?void 0:r.headers}});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.error||s.message||`Request failed: ${o.statusText}`)}return o.json()}async detectFeatures(){const[e,r,n]=await Promise.all([this.checkEndpoint("/api/users"),this.checkEndpoint("/api/bans"),this.checkEndpoint("/api/entitlements/available")]);let o=!0;if(n)try{o=(await this.getEntitlementsStatus()).readonly}catch{}return{users:e,bans:r,entitlements:n,entitlementsReadonly:o}}async checkEndpoint(e){try{return(await fetch(`${this.baseUrl}${e}`,{method:"HEAD"})).status!==404}catch{return!1}}async getUsers(e={}){const r=new URLSearchParams;e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString()),e.search&&r.set("search",e.search);const n=await fetch(`${this.baseUrl}/api/users?${r}`);if(!n.ok)throw new Error(`Users request failed: ${n.statusText}`);return n.json()}async getUserById(e){const r=await fetch(`${this.baseUrl}/api/users/${e}`);if(!r.ok)throw new Error(`User request failed: ${r.statusText}`);return r.json()}async getBans(){const e=await fetch(`${this.baseUrl}/api/bans`);if(!e.ok)throw new Error(`Bans request failed: ${e.statusText}`);return e.json()}async banUser(e,r,n){const o=await fetch(`${this.baseUrl}/api/bans`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,reason:r,expiresAt:n})});if(!o.ok){const s=await o.json().catch(()=>({}));throw new Error(s.error||`Ban request failed: ${o.statusText}`)}}async unbanUser(e){const r=await fetch(`${this.baseUrl}/api/bans/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Unban request failed: ${r.statusText}`)}async checkBan(e){const r=await fetch(`${this.baseUrl}/api/bans/check/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Ban check failed: ${r.statusText}`);return r.json()}async getEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`);if(!r.ok)throw new Error(`Entitlements request failed: ${r.statusText}`);return r.json()}async refreshEntitlements(e){const r=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/refresh`,{method:"POST"});if(!r.ok)throw new Error(`Entitlements refresh failed: ${r.statusText}`);return r.json()}async checkEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/check/${encodeURIComponent(r)}`);if(!n.ok)throw new Error(`Entitlement check failed: ${n.statusText}`);return n.json()}async getAvailableEntitlements(){const e=await fetch(`${this.baseUrl}/api/entitlements/available`);if(!e.ok)throw new Error(`Available entitlements request failed: ${e.statusText}`);return(await e.json()).entitlements}async grantEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({entitlement:r})});if(!n.ok){const o=await n.json().catch(()=>({}));throw new Error(o.error||`Grant entitlement failed: ${n.statusText}`)}}async revokeEntitlement(e,r){const n=await fetch(`${this.baseUrl}/api/entitlements/${encodeURIComponent(e)}/${encodeURIComponent(r)}`,{method:"DELETE"});if(!n.ok)throw new Error(`Revoke entitlement failed: ${n.statusText}`)}async invalidateEntitlementCache(e){const r=await fetch(`${this.baseUrl}/api/entitlements/cache/${encodeURIComponent(e)}`,{method:"DELETE"});if(!r.ok)throw new Error(`Cache invalidation failed: ${r.statusText}`)}async getEntitlementsStatus(){const e=await fetch(`${this.baseUrl}/api/entitlements/status`);if(!e.ok)throw new Error(`Entitlements status request failed: ${e.statusText}`);return e.json()}async getHealth(){const e=await fetch(`${this.baseUrl}/api/health`);if(!e.ok)throw new Error(`Health check failed: ${e.statusText}`);return e.json()}async getInfo(){const e=await fetch(`${this.baseUrl}/api/info`);if(!e.ok)throw new Error(`Info request failed: ${e.statusText}`);return e.json()}async getDiagnostics(){const e=await fetch(`${this.baseUrl}/api/diagnostics`);if(!e.ok)throw new Error(`Diagnostics request failed: ${e.statusText}`);return e.json()}async getConfig(){const e=await fetch(`${this.baseUrl}/api/config`);if(!e.ok)throw new Error(`Config request failed: ${e.statusText}`);return e.json()}async getLogs(e={}){const r=new URLSearchParams;e.source&&r.set("source",e.source),e.level&&r.set("level",e.level),e.search&&r.set("search",e.search),e.limit&&r.set("limit",e.limit.toString()),e.page&&r.set("page",e.page.toString());const n=await fetch(`${this.baseUrl}/api/logs?${r}`);if(!n.ok)throw new Error(`Logs request failed: ${n.statusText}`);return n.json()}async getLogSources(){const e=await fetch(`${this.baseUrl}/api/logs/sources`);if(!e.ok)throw new Error(`Log sources request failed: ${e.statusText}`);return(await e.json()).sources}async getPlugins(){const e=await fetch(`${this.baseUrl}/api/plugins`);if(!e.ok)throw new Error(`Plugins request failed: ${e.statusText}`);return e.json()}async getPluginDetail(e){const r=await fetch(`${this.baseUrl}/api/plugins/${encodeURIComponent(e)}`);if(!r.ok)throw r.status===404?new Error(`Plugin not found: ${e}`):new Error(`Plugin detail request failed: ${r.statusText}`);return r.json()}async getUiContributions(){const e=await fetch(`${this.baseUrl}/api/ui-contributions`);if(!e.ok)throw new Error(`UI contributions request failed: ${e.statusText}`);return e.json()}async getAuthConfigStatus(){const e=await fetch(`${this.baseUrl}/api/auth/config/status`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config status request failed: ${e.statusText}`)}return e.json()}async getAuthConfig(){const e=await fetch(`${this.baseUrl}/api/auth/config`);if(!e.ok){if(e.status===404)return{state:"disabled",adapter:null};throw new Error(`Auth config request failed: ${e.statusText}`)}return e.json()}async updateAuthConfig(e){const r=await fetch(`${this.baseUrl}/api/auth/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Auth config update failed: ${r.statusText}`)}return r.json()}async deleteAuthConfig(){const e=await fetch(`${this.baseUrl}/api/auth/config`,{method:"DELETE"});if(!e.ok){const r=await e.json().catch(()=>({}));throw new Error(r.error||`Auth config delete failed: ${e.statusText}`)}return e.json()}async testAuthProvider(e){const r=await fetch(`${this.baseUrl}/api/auth/test-provider`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Provider test failed: ${r.statusText}`)}return r.json()}async testCurrentAuthProvider(){const e=await fetch(`${this.baseUrl}/api/auth/test-current`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!e.ok){const r=await e.json().catch(()=>({}));throw new Error(r.error||`Provider test failed: ${e.statusText}`)}return e.json()}async getRateLimitConfig(){const e=await fetch(`${this.baseUrl}/api/rate-limit/config`);if(!e.ok)throw new Error(`Rate limit config request failed: ${e.statusText}`);return e.json()}async updateRateLimitConfig(e){const r=await fetch(`${this.baseUrl}/api/rate-limit/config`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!r.ok){const n=await r.json().catch(()=>({}));throw new Error(n.error||`Rate limit config update failed: ${r.statusText}`)}return r.json()}}const Bt=new BW;function zW({defaultOnly:t=!0,additionalWidgetIds:e=[]}){const[r,n]=S.useState([]),[o,s]=S.useState(!0),[u,d]=S.useState(null),{getComponent:p,hasComponent:h}=IW();if(S.useEffect(()=>{(async()=>{try{const y=await Bt.getUiContributions();n(y.widgets||[]),d(null)}catch(y){d(y instanceof Error?y.message:"Failed to fetch widgets")}finally{s(!1)}})()},[]),o)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:4},children:c.jsx(Tr,{size:24})});if(u)return c.jsx(ar,{severity:"error",sx:{mt:2},children:u});const m=r.filter(b=>t?b.showByDefault||e.includes(b.id):!0).filter(b=>h(b.component)?!0:(console.warn(`Widget "${b.id}" references unregistered component "${b.component}"`),!1)).sort((b,y)=>(b.priority??100)-(y.priority??100));return m.length===0?null:c.jsx(c.Fragment,{children:m.map(b=>{const y=p(b.component);return c.jsxs(ne,{sx:{mt:4},children:[b.title&&c.jsx(me,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:b.title}),y&&c.jsx(y,{})]},b.id)})})}function $W(t){switch(t){case"healthy":return c.jsx(Xo,{sx:{fontSize:24,color:"var(--theme-success)"}});case"degraded":return c.jsx($d,{sx:{fontSize:24,color:"var(--theme-warning)"}});case"unhealthy":return c.jsx(Yo,{sx:{fontSize:24,color:"var(--theme-error)"}});default:return c.jsx($d,{sx:{fontSize:24,color:"var(--theme-text-secondary)"}})}}function nE(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function DW(t){return t<=1?1:t===2?2:t===3?3:4}function HW(){const[t,e]=S.useState(null),[r,n]=S.useState(null);if(S.useEffect(()=>{const u=async()=>{try{const p=await Bt.getHealth();e(p),n(null)}catch(p){n(p instanceof Error?p.message:"Failed to fetch health")}};u();const d=setInterval(u,1e4);return()=>clearInterval(d)},[]),r)return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(Et,{variant:"body2",customColor:"var(--theme-error)",content:r})})});const o=t?Object.entries(t.checks):[];if(o.length===0)return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsx(Et,{variant:"body2",customColor:"var(--theme-text-secondary)",content:"No health checks configured"})})});const s=DW(o.length);return c.jsx(_m,{columns:s,spacing:"medium",equalHeight:!0,children:o.map(([u,d])=>c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[$W(d.status),c.jsxs(ne,{sx:{flex:1,minWidth:0},children:[c.jsx(Et,{variant:"body1",fontWeight:"500",content:u.charAt(0).toUpperCase()+u.slice(1),customColor:"var(--theme-text-primary)"}),c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[c.jsx(rr,{label:d.status,size:"small",sx:{bgcolor:nE(d.status)+"20",color:nE(d.status),fontSize:"0.75rem",height:20}}),d.latency!==void 0&&c.jsx(Et,{variant:"caption",content:`${d.latency}ms`,customColor:"var(--theme-text-secondary)"})]})]})]})})},u))})}function UW(){const[t,e]=S.useState(null),[r,n]=S.useState(!0),[o,s]=S.useState(null);if(S.useEffect(()=>{(async()=>{try{const h=await Bt.fetch("/ai-proxy/config");e(h)}catch(h){s(h instanceof Error?h.message:"Failed to fetch integrations")}finally{n(!1)}})()},[]),r)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:c.jsx(Tr,{size:20})});if(o)return c.jsx(ar,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load integrations"});if(!t)return null;const u=t.integrations.filter(p=>p.configured).length,d=t.integrations.length;return c.jsxs(ne,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[u," of ",d," configured"]}),c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-secondary)"},children:[t.stats.totalRequests," requests"]})]}),c.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:t.integrations.map(p=>c.jsxs(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.configured?c.jsx(Xo,{sx:{color:"var(--theme-success)",fontSize:18}}):c.jsx(Yo,{sx:{color:"var(--theme-text-secondary)",fontSize:18}}),c.jsxs(ne,{children:[c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-primary)",fontWeight:500},children:p.name}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:p.description})]})]}),c.jsx(rr,{label:p.configured?"Connected":"Not Configured",size:"small",sx:{bgcolor:p.configured?"var(--theme-success)20":"transparent",color:p.configured?"var(--theme-success)":"var(--theme-text-secondary)",border:p.configured?"none":"1px solid var(--theme-border)",fontWeight:500,fontSize:11}})]},p.id))})]})}const VW={supertokens:"SuperTokens",auth0:"Auth0",supabase:"Supabase",basic:"Basic Auth"};function qW(){const[t,e]=S.useState(null),[r,n]=S.useState(!0),[o,s]=S.useState(null);if(S.useEffect(()=>{(async()=>{try{const h=await Bt.fetch("/auth/config/status");e(h)}catch(h){s(h instanceof Error?h.message:"Failed to fetch auth status")}finally{n(!1)}})()},[]),r)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:c.jsx(Tr,{size:20})});if(o)return c.jsx(ar,{severity:"warning",sx:{py:.5,fontSize:13},children:"Unable to load auth status"});if(!t)return null;const u=()=>{switch(t.state){case"enabled":return c.jsx(Xo,{sx:{color:"var(--theme-success)",fontSize:32}});case"error":return c.jsx(Yo,{sx:{color:"var(--theme-error)",fontSize:32}});case"disabled":default:return c.jsx(xm,{sx:{color:"var(--theme-text-secondary)",fontSize:32}})}},d=()=>{switch(t.state){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}};return c.jsxs(ne,{sx:{bgcolor:"var(--theme-surface)",borderRadius:2,p:2,border:"1px solid var(--theme-border)"},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[u(),c.jsxs(ne,{sx:{flex:1},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[c.jsx(me,{variant:"subtitle1",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:t.state==="enabled"&&t.adapter?VW[t.adapter]||t.adapter:t.state==="disabled"?"Not Configured":"Configuration Error"}),c.jsx(rr,{label:t.state.toUpperCase(),size:"small",sx:{bgcolor:`${d()}20`,color:d(),fontWeight:600,fontSize:10,height:20}})]}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:t.state==="enabled"?"Authentication is active":t.state==="disabled"?"Set AUTH_ADAPTER environment variable":t.error||"Check configuration"})]})]}),t.missingVars&&t.missingVars.length>0&&c.jsxs(ar,{severity:"warning",sx:{mt:2,py:.5,"& .MuiAlert-message":{fontSize:12}},children:["Missing: ",t.missingVars.join(", ")]})]})}function FW(){return[{name:"ServiceHealthWidget",component:HW},{name:"IntegrationStatusWidget",component:UW},{name:"AuthStatusWidget",component:qW}]}function WW(t){switch(t){case"healthy":return c.jsx(Xo,{sx:{color:"var(--theme-success)"}});case"degraded":return c.jsx($d,{sx:{color:"var(--theme-warning)"}});case"unhealthy":return c.jsx(Yo,{sx:{color:"var(--theme-error)"}});default:return c.jsx(Tr,{size:20})}}function v0(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function GW(){var y,v;const t=Pv(),[e,r]=S.useState(null),[n,o]=S.useState(null),[s,u]=S.useState(!0),[d,p]=S.useState(null);if(S.useEffect(()=>{const w=async()=>{try{const[T,M]=await Promise.all([Bt.getHealth(),Bt.getInfo()]);r(T),o(M),p(null)}catch(T){p(T instanceof Error?T.message:"Failed to fetch data")}finally{u(!1)}};w();const C=setInterval(w,1e4);return()=>clearInterval(C)},[]),s)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})});if(d)return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(me,{color:"error",children:d})})});const h=e?Object.entries(e.checks):[],m=h.filter(([,w])=>w.status==="healthy").length,b=h.length;return c.jsxs(ne,{children:[c.jsx(me,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Dashboard"}),c.jsxs(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Real-time overview of ",(n==null?void 0:n.product)||"your service"]}),c.jsx(xt,{sx:{mb:4,bgcolor:"var(--theme-surface)",border:`2px solid ${v0((e==null?void 0:e.status)||"unknown")}`},children:c.jsx(hL,{onClick:()=>t("/health"),children:c.jsxs(bt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[WW((e==null?void 0:e.status)||"unknown"),c.jsxs(ne,{children:[c.jsxs(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Service Status: ",(y=e==null?void 0:e.status)==null?void 0:y.charAt(0).toUpperCase(),(v=e==null?void 0:e.status)==null?void 0:v.slice(1)]}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Click to view detailed health information"})]})]}),c.jsx(rr,{label:`${m}/${b} checks passing`,sx:{bgcolor:v0((e==null?void 0:e.status)||"unknown")+"20",color:v0((e==null?void 0:e.status)||"unknown")}})]})})}),c.jsx(zW,{}),c.jsx(LW,{})]})}function iE(t){switch(t.toLowerCase()){case"error":return"var(--theme-error)";case"warn":case"warning":return"var(--theme-warning)";case"info":return"var(--theme-info)";case"debug":return"var(--theme-text-secondary)";default:return"var(--theme-text-primary)"}}function XW(){const[t,e]=S.useState([]),[r,n]=S.useState([]),[o,s]=S.useState(!0),[u,d]=S.useState(null),[p,h]=S.useState(""),[m,b]=S.useState(""),[y,v]=S.useState(""),[w,C]=S.useState(1),[T,M]=S.useState(0),E=50,[R,j]=S.useState(!1),[k,P]=S.useState("desc"),z=S.useRef(null),_={total:T,errors:t.filter(F=>F.level.toLowerCase()==="error").length,warnings:t.filter(F=>["warn","warning"].includes(F.level.toLowerCase())).length,info:t.filter(F=>F.level.toLowerCase()==="info").length,debug:t.filter(F=>F.level.toLowerCase()==="debug").length},B=S.useCallback(async()=>{s(!0);try{const F=await Bt.getLogs({source:p||void 0,level:m||void 0,search:y||void 0,limit:E,page:w}),$=[...F.logs].sort((I,Q)=>{const ee=new Date(I.timestamp).getTime(),J=new Date(Q.timestamp).getTime();return k==="desc"?J-ee:ee-J});e($),M(F.total),d(null)}catch(F){d(F instanceof Error?F.message:"Failed to fetch logs")}finally{s(!1)}},[p,m,y,w,k]),G=async()=>{try{const F=await Bt.getLogSources();n(F)}catch{}};S.useEffect(()=>{G()},[]),S.useEffect(()=>{B()},[B]),S.useEffect(()=>(R?z.current=setInterval(B,5e3):z.current&&(clearInterval(z.current),z.current=null),()=>{z.current&&clearInterval(z.current)}),[R,B]);const D=()=>{C(1),B()},A=(F,$)=>{$!==null&&P($)},Y=Math.ceil(T/E);return c.jsxs(ne,{children:[c.jsx(me,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:"Logs"}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View and search application logs"}),c.jsxs(Dn,{container:!0,spacing:2,sx:{mb:3},children:[c.jsx(Dn,{size:{xs:6,sm:3,md:2.4},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[c.jsx(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:c.jsx(me,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:_.total.toLocaleString()})}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Total Logs"})]})})}),c.jsx(Dn,{size:{xs:6,sm:3,md:2.4},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(Yo,{sx:{color:"var(--theme-error)",fontSize:20}}),c.jsx(me,{variant:"h5",sx:{color:"var(--theme-error)",fontWeight:600},children:_.errors})]}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Errors"})]})})}),c.jsx(Dn,{size:{xs:6,sm:3,md:2.4},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx($d,{sx:{color:"var(--theme-warning)",fontSize:20}}),c.jsx(me,{variant:"h5",sx:{color:"var(--theme-warning)",fontWeight:600},children:_.warnings})]}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Warnings"})]})})}),c.jsx(Dn,{size:{xs:6,sm:3,md:2.4},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(tv,{sx:{color:"var(--theme-info)",fontSize:20}}),c.jsx(me,{variant:"h5",sx:{color:"var(--theme-info)",fontWeight:600},children:_.info})]}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Info"})]})})}),c.jsx(Dn,{size:{xs:6,sm:3,md:2.4},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(B$,{sx:{color:"var(--theme-text-secondary)",fontSize:20}}),c.jsx(me,{variant:"h5",sx:{color:"var(--theme-text-primary)",fontWeight:600},children:_.debug})]}),c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Debug"})]})})})]}),c.jsx(xt,{sx:{mb:3,bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",gap:2,flexWrap:"wrap",alignItems:"center"},children:[r.length>0&&c.jsxs(Ho,{size:"small",sx:{minWidth:150},children:[c.jsx(ls,{sx:{color:"var(--theme-text-secondary)"},children:"Source"}),c.jsxs(wa,{value:p,label:"Source",onChange:F=>h(F.target.value),sx:{color:"var(--theme-text-primary)"},children:[c.jsx(Mr,{value:"",children:"All Sources"}),r.map(F=>c.jsx(Mr,{value:F.name,children:F.name},F.name))]})]}),c.jsxs(Ho,{size:"small",sx:{minWidth:120},children:[c.jsx(ls,{sx:{color:"var(--theme-text-secondary)"},children:"Level"}),c.jsxs(wa,{value:m,label:"Level",onChange:F=>b(F.target.value),sx:{color:"var(--theme-text-primary)"},children:[c.jsx(Mr,{value:"",children:"All Levels"}),c.jsx(Mr,{value:"error",children:"Error"}),c.jsx(Mr,{value:"warn",children:"Warning"}),c.jsx(Mr,{value:"info",children:"Info"}),c.jsx(Mr,{value:"debug",children:"Debug"})]})]}),c.jsx(At,{size:"small",placeholder:"Search logs...",value:y,onChange:F=>v(F.target.value),onKeyPress:F=>F.key==="Enter"&&D(),sx:{flex:1,minWidth:200,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},InputProps:{startAdornment:c.jsx(wm,{sx:{mr:1,color:"var(--theme-text-secondary)"}})}}),c.jsxs(dz,{value:k,exclusive:!0,onChange:A,size:"small","aria-label":"sort order",children:[c.jsx(CC,{value:"desc","aria-label":"newest first",children:c.jsx(_r,{title:"Newest First",children:c.jsx(L$,{fontSize:"small"})})}),c.jsx(CC,{value:"asc","aria-label":"oldest first",children:c.jsx(_r,{title:"Oldest First",children:c.jsx(N$,{fontSize:"small"})})})]}),c.jsx(_r,{title:R?"Pause auto-refresh":"Enable auto-refresh (5s)",children:c.jsx(sr,{onClick:()=>j(!R),sx:{color:R?"var(--theme-success)":"var(--theme-text-secondary)",bgcolor:R?"var(--theme-success)20":"transparent"},children:R?c.jsx(vD,{}):c.jsx(_c,{})})}),c.jsx(_r,{title:"Refresh",children:c.jsx(sr,{onClick:B,sx:{color:"var(--theme-primary)"},children:c.jsx(Qc,{})})})]})})}),u&&c.jsx(xt,{sx:{mb:3,bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(me,{color:"error",children:u})})}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:o?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",p:4},children:c.jsx(Tr,{})}):t.length===0?c.jsx(bt,{children:c.jsx(me,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No logs found"})}):c.jsxs(c.Fragment,{children:[c.jsx(dl,{children:c.jsxs(cl,{size:"small",children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:180},children:"Timestamp"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:100},children:"Level"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:120},children:"Component"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Message"})]})}),c.jsx(ul,{children:t.map((F,$)=>c.jsxs(pn,{hover:!0,children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:new Date(F.timestamp).toLocaleString()}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(rr,{label:F.level.toUpperCase(),size:"small",sx:{bgcolor:iE(F.level)+"20",color:iE(F.level),fontSize:"0.65rem",height:20}})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontSize:"0.75rem"},children:F.namespace||"-"}),c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.8rem",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:F.message})]},$))})]})}),Y>1&&c.jsx(ne,{sx:{display:"flex",justifyContent:"center",p:2},children:c.jsx(sI,{count:Y,page:w,onChange:(F,$)=>C($),sx:{"& .MuiPaginationItem-root":{color:"var(--theme-text-primary)"}}})})]})})]})}function b0(t){if(t===0)return"0 B";const e=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,n)).toFixed(2))+" "+r[n]}function YW(t){const e=Math.floor(t/1e3),r=Math.floor(e/60),n=Math.floor(r/60),o=Math.floor(n/24);return o>0?`${o}d ${n%24}h ${r%60}m`:n>0?`${n}h ${r%60}m ${e%60}s`:r>0?`${r}m ${e%60}s`:`${e}s`}function QW(t,e=20){switch(t){case"healthy":return c.jsx(Xo,{sx:{color:"var(--theme-success)",fontSize:e}});case"degraded":return c.jsx($d,{sx:{color:"var(--theme-warning)",fontSize:e}});case"unhealthy":return c.jsx(Yo,{sx:{color:"var(--theme-error)",fontSize:e}});default:return c.jsx(Tr,{size:e})}}function ad(t){switch(t){case"healthy":return"var(--theme-success)";case"degraded":return"var(--theme-warning)";case"unhealthy":return"var(--theme-error)";default:return"var(--theme-text-secondary)"}}function KW(t){return t===void 0?"-":t<1e3?`${t}ms`:`${(t/1e3).toFixed(2)}s`}function ZW(){const[t,e]=S.useState(null),[r,n]=S.useState(null),[o,s]=S.useState(!0),[u,d]=S.useState(null),[p,h]=S.useState({open:!1,message:""}),m=async()=>{s(!0);try{const[v,w]=await Promise.all([Bt.getDiagnostics(),Bt.getHealth().catch(()=>null)]);e(v),n(w),d(null)}catch(v){d(v instanceof Error?v.message:"Failed to fetch diagnostics")}finally{s(!1)}};S.useEffect(()=>{m();const v=setInterval(m,3e4);return()=>clearInterval(v)},[]);const b=()=>{navigator.clipboard.writeText(JSON.stringify(t,null,2)),h({open:!0,message:"Diagnostics copied to clipboard"})};if(o&&!t)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})});if(u)return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(me,{color:"error",children:u})})});const y=t?t.system.memory.used/t.system.memory.total*100:0;return c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[c.jsx(me,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"System"}),c.jsxs(ne,{sx:{display:"flex",gap:1},children:[c.jsx(_r,{title:"Copy diagnostics JSON",children:c.jsx(sr,{onClick:b,sx:{color:"var(--theme-primary)"},children:c.jsx(hb,{})})}),c.jsx(_r,{title:"Refresh",children:c.jsx(sr,{onClick:m,sx:{color:"var(--theme-primary)"},children:c.jsx(Qc,{})})})]})]}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"System information and diagnostics"}),c.jsxs(Dn,{container:!0,spacing:3,children:[c.jsx(Dn,{size:{xs:12,md:6},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[c.jsx(x5,{sx:{color:"var(--theme-primary)"}}),c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"System Information"})]}),c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"QwickApps Server"}),c.jsx(rr,{label:t!=null&&t.frameworkVersion?`v${t.frameworkVersion}`:"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Node.js"}),c.jsx(rr,{label:t==null?void 0:t.system.nodeVersion,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Platform"}),c.jsx(rr,{label:t==null?void 0:t.system.platform,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Architecture"}),c.jsx(rr,{label:t==null?void 0:t.system.arch,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}})]})]})]})})}),c.jsx(Dn,{size:{xs:12,md:6},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[c.jsx(C5,{sx:{color:"var(--theme-warning)"}}),c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Memory Usage"})]}),c.jsxs(ne,{sx:{mb:2},children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",mb:1},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Used"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:b0((t==null?void 0:t.system.memory.used)||0)})]}),c.jsx(gm,{variant:"determinate",value:y,sx:{height:8,borderRadius:4,bgcolor:"var(--theme-background)","& .MuiLinearProgress-bar":{bgcolor:y>80?"var(--theme-error)":"var(--theme-warning)",borderRadius:4}}})]}),c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Total"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:b0((t==null?void 0:t.system.memory.total)||0)})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Heap Free"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:b0((t==null?void 0:t.system.memory.free)||0)})]})]})]})})}),c.jsx(Dn,{size:{xs:12,md:6},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[c.jsx(gb,{sx:{color:"var(--theme-info)"}}),c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Service Info"})]}),c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Product"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.product})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Version"}),c.jsx(rr,{label:(t==null?void 0:t.version)||"N/A",size:"small",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})]}),c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between"},children:[c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Timestamp"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)",fontSize:"0.875rem"},children:t!=null&&t.timestamp?new Date(t.timestamp).toLocaleString():"N/A"})]})]})]})})}),c.jsx(Dn,{size:{xs:12,md:6},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",height:"100%"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[c.jsx(O$,{sx:{color:"var(--theme-success)"}}),c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Uptime"})]}),c.jsx(me,{variant:"h3",sx:{color:"var(--theme-success)",mb:1},children:YW((t==null?void 0:t.uptime)||0)}),c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"Service has been running without interruption"})]})})}),r&&c.jsx(Dn,{size:{xs:12},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[c.jsx(ev,{sx:{color:ad(r.status)}}),c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Health Checks"}),c.jsx(rr,{label:r.status,size:"small",sx:{bgcolor:ad(r.status)+"20",color:ad(r.status),textTransform:"capitalize",ml:"auto"}})]}),c.jsx(dl,{children:c.jsxs(cl,{size:"small",children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Check"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Latency"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Last Checked"})]})}),c.jsx(ul,{children:Object.entries(r.checks).map(([v,w])=>c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[QW(w.status),c.jsx(me,{fontWeight:500,children:v})]})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(rr,{label:w.status,size:"small",sx:{bgcolor:ad(w.status)+"20",color:ad(w.status),textTransform:"capitalize"}})}),c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:KW(w.latency)}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:new Date(w.lastChecked).toLocaleTimeString()})]},v))})]})})]})})}),c.jsx(Dn,{size:{xs:12},children:c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Raw Diagnostics JSON (for AI agents)"}),c.jsx(ne,{component:"pre",sx:{bgcolor:"var(--theme-background)",p:2,borderRadius:1,overflow:"auto",maxHeight:300,color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"},children:JSON.stringify(t,null,2)})]})})})]}),c.jsx(t5,{open:p.open,autoHideDuration:2e3,onClose:()=>h({...p,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:c.jsx(ar,{severity:"success",variant:"filled",children:p.message})})]})}function JW(t){switch(t){case"active":return c.jsx(Xo,{sx:{color:"var(--theme-success)",fontSize:20}});case"error":return c.jsx(Yo,{sx:{color:"var(--theme-error)",fontSize:20}});case"starting":return c.jsx(tD,{sx:{color:"var(--theme-warning)",fontSize:20}});case"stopped":return c.jsx(PD,{sx:{color:"var(--theme-text-secondary)",fontSize:20}});default:return null}}function oE(t){switch(t){case"active":return"var(--theme-success)";case"error":return"var(--theme-error)";case"starting":return"var(--theme-warning)";case"stopped":return"var(--theme-text-secondary)";default:return"var(--theme-text-secondary)"}}function eG({counts:t}){const e=[];return t.routes>0&&e.push(`${t.routes} route${t.routes>1?"s":""}`),t.menuItems>0&&e.push(`${t.menuItems} menu item${t.menuItems>1?"s":""}`),t.pages>0&&e.push(`${t.pages} page${t.pages>1?"s":""}`),t.widgets>0&&e.push(`${t.widgets} widget${t.widgets>1?"s":""}`),e.length===0?c.jsx(me,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:"No contributions"}):c.jsx(me,{sx:{color:"var(--theme-text-secondary)",fontSize:"0.875rem"},children:e.join(", ")})}function tG({plugin:t}){const[e,r]=S.useState(!1),[n,o]=S.useState(null),[s,u]=S.useState(!1),[d,p]=S.useState(null),h=async()=>{if(!e&&!n&&!d){u(!0),p(null);try{const b=await Bt.getPluginDetail(t.id);o(b.contributions)}catch(b){console.error("Failed to load plugin details:",b),p(b instanceof Error?b.message:"Failed to load details")}finally{u(!1)}}r(!e)},m=t.contributionCounts.routes>0||t.contributionCounts.menuItems>0||t.contributionCounts.pages>0||t.contributionCounts.widgets>0;return c.jsxs(c.Fragment,{children:[c.jsxs(pn,{sx:{"& > *":{borderBottom:e?"none":void 0},cursor:m?"pointer":"default","&:hover":{bgcolor:m?"var(--theme-background)":void 0}},onClick:m?h:void 0,children:[c.jsx(et,{sx:{width:50,borderColor:"var(--theme-border)"},children:m&&c.jsx(sr,{size:"small",sx:{color:"var(--theme-text-secondary)"},children:e?c.jsx(sD,{}):c.jsx(aD,{})})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[JW(t.status),c.jsx(me,{sx:{color:"var(--theme-text-primary)",fontWeight:500},children:t.name})]})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(me,{sx:{color:"var(--theme-text-secondary)",fontFamily:"monospace",fontSize:"0.875rem"},children:t.id})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:t.version?c.jsx(rr,{label:`v${t.version}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}}):c.jsx(me,{sx:{color:"var(--theme-text-secondary)"},children:"-"})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(rr,{label:t.status,size:"small",sx:{bgcolor:oE(t.status)+"20",color:oE(t.status),textTransform:"capitalize"}})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(eG,{counts:t.contributionCounts})})]}),c.jsx(pn,{children:c.jsx(et,{style:{paddingBottom:0,paddingTop:0},colSpan:6,sx:{borderColor:"var(--theme-border)"},children:c.jsx(_d,{in:e,timeout:"auto",unmountOnExit:!0,children:c.jsx(ne,{sx:{py:2,px:4},children:s?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:2},children:c.jsx(Tr,{size:24})}):d?c.jsx(ar,{severity:"error",sx:{mb:1},children:d}):n?c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2},children:[t.status==="error"&&t.error&&c.jsx(ar,{severity:"error",sx:{mb:1},children:t.error}),n.routes.length>0&&c.jsxs(ne,{children:[c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Routes (",n.routes.length,")"]}),c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.routes.map((b,y)=>c.jsx(rr,{label:`${b.method.toUpperCase()} ${b.path}`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:"0.75rem"}},y))})]}),n.menuItems.length>0&&c.jsxs(ne,{children:[c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Menu Items (",n.menuItems.length,")"]}),c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.menuItems.map(b=>c.jsx(rr,{label:`${b.label} (${b.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},b.id))})]}),n.pages.length>0&&c.jsxs(ne,{children:[c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Pages (",n.pages.length,")"]}),c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.pages.map(b=>c.jsx(rr,{label:`${b.title||b.id} (${b.route})`,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},b.id))})]}),n.widgets.length>0&&c.jsxs(ne,{children:[c.jsxs(me,{variant:"subtitle2",sx:{color:"var(--theme-text-primary)",mb:1},children:["Widgets (",n.widgets.length,")"]}),c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:n.widgets.map(b=>c.jsx(rr,{label:b.title,size:"small",sx:{bgcolor:"var(--theme-background)",color:"var(--theme-text-primary)"}},b.id))})]})]}):null})})})})]})}function rG(){const[t,e]=S.useState([]),[r,n]=S.useState(!0),[o,s]=S.useState(null);if(S.useEffect(()=>{(async()=>{try{const h=await Bt.getPlugins();e(h.plugins),s(null)}catch(h){s(h instanceof Error?h.message:"Failed to fetch plugins")}finally{n(!1)}})()},[]),r)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})});if(o)return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(me,{color:"error",children:o})})});const u=t.filter(p=>p.status==="active").length,d=t.filter(p=>p.status==="error").length;return c.jsxs(ne,{children:[c.jsx(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(me,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Plugins"}),c.jsx(rr,{icon:c.jsx(Y$,{sx:{fontSize:16}}),label:`${u}/${t.length} active`,size:"small",sx:{bgcolor:u===t.length?"var(--theme-success)20":"var(--theme-warning)20",color:u===t.length?"var(--theme-success)":"var(--theme-warning)"}}),d>0&&c.jsx(rr,{icon:c.jsx(Yo,{sx:{fontSize:16}}),label:`${d} error${d>1?"s":""}`,size:"small",sx:{bgcolor:"var(--theme-error)20",color:"var(--theme-error)"}})]})}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"View registered plugins and their contributions to the control panel"}),t.length===0?c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsx(me,{sx:{color:"var(--theme-text-secondary)",textAlign:"center",py:4},children:"No plugins registered"})})}):c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(dl,{children:c.jsxs(cl,{children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:50}}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Version"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Status"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Contributions"})]})}),c.jsx(ul,{children:t.map(p=>c.jsx(tG,{plugin:p},p.id))})]})})})]})}function nG({title:t="User Management",subtitle:e="Manage users, bans, and entitlements",features:r,headerActions:n,onUserSelect:o}){const[s,u]=S.useState({users:(r==null?void 0:r.users)??!0,bans:(r==null?void 0:r.bans)??!1,entitlements:(r==null?void 0:r.entitlements)??!1,entitlementsReadonly:(r==null?void 0:r.entitlementsReadonly)??!0}),[d,p]=S.useState(!!r),[h,m]=S.useState(0),[b,y]=S.useState([]),[v,w]=S.useState(0),[C,T]=S.useState(0),[M,E]=S.useState(25),[R,j]=S.useState(""),[k,P]=S.useState({}),[z,_]=S.useState([]),[B,G]=S.useState(0),[D,A]=S.useState(!0),[Y,F]=S.useState(null),[$,I]=S.useState(null),[Q,ee]=S.useState(!1),[J,L]=S.useState({email:"",reason:"",expiresAt:""}),[oe,ue]=S.useState(!1),[ce,K]=S.useState(""),[re,Z]=S.useState(!1),[ye,Ce]=S.useState(!1),[be,se]=S.useState(null),[De,ze]=S.useState(null),[Be,Ve]=S.useState([]),[Ie,We]=S.useState(""),[ct,le]=S.useState(!1);S.useEffect(()=>{r||Bt.detectFeatures().then(ie=>{u(ie),p(!0)}).catch(()=>{p(!0)})},[r]),S.useEffect(()=>{d&&s.entitlements&&!s.entitlementsReadonly&&Bt.getAvailableEntitlements().then(Ve).catch(()=>{})},[d,s.entitlements,s.entitlementsReadonly]);const Ze=S.useCallback(async()=>{var ie;if(s.users){A(!0);try{const Pe=await Bt.getUsers({limit:M,page:C,search:R||void 0});if(y(Pe.users||[]),w(Pe.total),F(null),s.entitlements&&((ie=Pe.users)!=null&&ie.length)){const He={};await Promise.all(Pe.users.map(async $e=>{try{const yt=await Bt.getEntitlements($e.email);He[$e.email]=yt.entitlements.length}catch{He[$e.email]=0}})),P($e=>({...$e,...He}))}}catch(Pe){F(Pe instanceof Error?Pe.message:"Failed to fetch users")}finally{A(!1)}}},[s.users,s.entitlements,C,M,R]),Fe=S.useCallback(async()=>{if(s.bans){A(!0);try{const ie=await Bt.getBans();_(ie.bans||[]),G(ie.total),F(null)}catch(ie){F(ie instanceof Error?ie.message:"Failed to fetch bans")}finally{A(!1)}}},[s.bans]);S.useEffect(()=>{d&&(h===0&&s.users?Ze():h===1&&s.bans&&Fe())},[h,d,s.users,s.bans,Ze,Fe]),S.useEffect(()=>{d&&s.bans&&Fe()},[d,s.bans,Fe]),S.useEffect(()=>{if(!d)return;const ie=setTimeout(()=>{h===0&&s.users&&(T(0),Ze())},300);return()=>clearTimeout(ie)},[R,h,d,s.users,Ze]);const ft=async()=>{try{await Bt.banUser(J.email,J.reason,J.expiresAt||void 0),I("User banned successfully"),ee(!1),L({email:"",reason:"",expiresAt:""}),Fe()}catch(ie){F(ie instanceof Error?ie.message:"Failed to ban user")}},Ue=async ie=>{if(confirm("Unban this user?"))try{await Bt.unbanUser(ie),I("User unbanned successfully"),Fe()}catch{F("Failed to unban user")}},kt=async()=>{if(!ce.trim()){ze("Please enter an email address");return}Z(!0),ze(null),se(null);try{const ie=await Bt.getEntitlements(ce);se(ie)}catch(ie){ze(ie instanceof Error?ie.message:"Failed to lookup entitlements")}finally{Z(!1)}},at=async()=>{if(be){Ce(!0);try{const ie=await Bt.refreshEntitlements(ce);se(ie)}catch{ze("Failed to refresh entitlements")}finally{Ce(!1)}}},fe=async()=>{if(!(!Ie||!be)){le(!0);try{await Bt.grantEntitlement(be.identifier,Ie),I(`Entitlement "${Ie}" granted`),We("");const ie=await Bt.refreshEntitlements(be.identifier);se(ie),P(Pe=>({...Pe,[be.identifier]:ie.entitlements.length}))}catch(ie){F(ie instanceof Error?ie.message:"Failed to grant entitlement")}finally{le(!1)}}},we=async ie=>{if(be&&confirm(`Revoke "${ie}" from ${be.identifier}?`))try{await Bt.revokeEntitlement(be.identifier,ie),I(`Entitlement "${ie}" revoked`);const Pe=await Bt.refreshEntitlements(be.identifier);se(Pe),P(He=>({...He,[be.identifier]:Pe.entitlements.length}))}catch(Pe){F(Pe instanceof Error?Pe.message:"Failed to revoke entitlement")}},ke=ie=>{ie&&(K(ie),Z(!0),ze(null),se(null),Bt.getEntitlements(ie).then(se).catch(Pe=>ze(Pe instanceof Error?Pe.message:"Failed to lookup entitlements")).finally(()=>Z(!1))),ue(!0)},_e=ie=>ie?new Date(ie).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",Ge=Be.filter(ie=>!(be!=null&&be.entitlements.includes(ie.name))),Je=[];return s.users&&Je.push({label:"Users",count:v}),s.bans&&Je.push({label:"Banned",count:B}),d?c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[c.jsxs(ne,{children:[c.jsx(Et,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),c.jsxs(ne,{sx:{display:"flex",gap:1},children:[n,s.entitlements&&c.jsx(Vr,{variant:"outlined",icon:"person_search",label:"Lookup Entitlements",onClick:()=>ke()}),s.bans&&c.jsx(Vr,{variant:"primary",color:"error",icon:"block",label:"Ban User",onClick:()=>ee(!0)})]})]}),D&&c.jsx(gm,{sx:{mb:2}}),Y&&c.jsx(ar,{severity:"error",onClose:()=>F(null),sx:{mb:2},children:Y}),$&&c.jsx(ar,{severity:"success",onClose:()=>I(null),sx:{mb:2},children:$}),s.users&&c.jsxs(_m,{columns:s.bans?3:2,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(nv,{sx:{fontSize:40,color:"var(--theme-primary)"}}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"h4",content:v.toLocaleString(),customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:"Total Users",customColor:"var(--theme-text-secondary)"})]})]})})}),s.entitlements&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(xc,{sx:{fontSize:40,color:"var(--theme-success)"}}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"body1",fontWeight:"500",content:"Entitlements",customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:s.entitlementsReadonly?"Read-only Mode":"Plugin Active",customColor:s.entitlementsReadonly?"var(--theme-warning)":"var(--theme-success)"})]})]})})}),s.bans&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(xm,{sx:{fontSize:40,color:B>0?"var(--theme-error)":"var(--theme-text-secondary)"}}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"h4",content:B.toString(),customColor:B>0?"var(--theme-error)":"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:"Banned Users",customColor:"var(--theme-text-secondary)"})]})]})})})]}),c.jsxs(xt,{sx:{bgcolor:"var(--theme-surface)"},children:[Je.length>1&&c.jsx(JB,{value:h,onChange:(ie,Pe)=>m(Pe),sx:{borderBottom:1,borderColor:"var(--theme-border)",px:2},children:Je.map((ie,Pe)=>c.jsx(YI,{label:`${ie.label}${ie.count!==void 0?` (${ie.count})`:""}`},Pe))}),c.jsxs(bt,{sx:{p:0},children:[c.jsx(ne,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:c.jsx(At,{size:"small",placeholder:"Search by email or name...",value:R,onChange:ie=>j(ie.target.value),InputProps:{startAdornment:c.jsx(Eh,{position:"start",children:c.jsx(wm,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),h===0&&s.users&&c.jsxs(c.Fragment,{children:[c.jsx(dl,{children:c.jsxs(cl,{children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"ID"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),s.entitlements&&c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"center",children:"Entitlements"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Created"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),c.jsxs(ul,{children:[b.map(ie=>c.jsxs(pn,{hover:!0,sx:{cursor:o?"pointer":"default"},onClick:()=>o==null?void 0:o(ie),children:[c.jsxs(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",fontFamily:"monospace",fontSize:"0.75rem"},children:[ie.id.substring(0,8),"..."]}),c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:c.jsx(Et,{variant:"body1",content:ie.name||"--",fontWeight:"500"})}),c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:ie.email}),s.entitlements&&c.jsx(et,{sx:{borderColor:"var(--theme-border)"},align:"center",children:c.jsx(rr,{size:"small",icon:c.jsx(xc,{sx:{fontSize:14}}),label:k[ie.email]??"...",sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:_e(ie.created_at)}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},align:"right",children:s.entitlements&&c.jsx(_r,{title:"View entitlements",children:c.jsx(sr,{size:"small",onClick:Pe=>{Pe.stopPropagation(),ke(ie.email)},children:c.jsx(xc,{fontSize:"small"})})})})]},ie.id)),b.length===0&&!D&&c.jsx(pn,{children:c.jsx(et,{colSpan:s.entitlements?6:5,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:R?"No users match your search":"No users found"})})]})]})}),c.jsx(_B,{component:"div",count:v,page:C,onPageChange:(ie,Pe)=>T(Pe),rowsPerPage:M,onRowsPerPageChange:ie=>{E(parseInt(ie.target.value,10)),T(0)},rowsPerPageOptions:[10,25,50,100],sx:{borderTop:1,borderColor:"var(--theme-border)"}})]}),h===1&&s.bans&&c.jsx(dl,{children:c.jsxs(cl,{children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Email"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Reason"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned At"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Expires"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Banned By"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),c.jsxs(ul,{children:[z.map(ie=>c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:c.jsx(Et,{variant:"body1",content:ie.email,fontWeight:"500"})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:200},children:c.jsx(Et,{variant:"body2",content:ie.reason,noWrap:!0})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:_e(ie.banned_at)}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(rr,{size:"small",label:ie.expires_at?_e(ie.expires_at):"Permanent",sx:{bgcolor:ie.expires_at?"var(--theme-warning)20":"var(--theme-error)20",color:ie.expires_at?"var(--theme-warning)":"var(--theme-error)"}})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:ie.banned_by}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},align:"right",children:c.jsx(Vr,{buttonSize:"small",variant:"text",color:"success",icon:"check_circle",label:"Unban",onClick:()=>Ue(ie.email)})})]},ie.id)),z.length===0&&!D&&c.jsx(pn,{children:c.jsx(et,{colSpan:6,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:"No users are currently banned"})})]})]})})]})]}),s.bans&&c.jsxs(Sd,{open:Q,onClose:()=>ee(!1),maxWidth:"sm",fullWidth:!0,children:[c.jsx(wd,{children:"Ban User"}),c.jsx(Cd,{children:c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[c.jsx(At,{label:"Email",fullWidth:!0,value:J.email,onChange:ie=>L({...J,email:ie.target.value}),placeholder:"Enter user email"}),c.jsx(At,{label:"Reason",fullWidth:!0,multiline:!0,rows:3,value:J.reason,onChange:ie=>L({...J,reason:ie.target.value}),placeholder:"Enter reason for ban"}),c.jsx(At,{label:"Expiration (Optional)",type:"datetime-local",fullWidth:!0,value:J.expiresAt,onChange:ie=>L({...J,expiresAt:ie.target.value}),InputLabelProps:{shrink:!0},helperText:"Leave empty for permanent ban"})]})}),c.jsxs(Td,{children:[c.jsx(Vr,{variant:"text",label:"Cancel",onClick:()=>{ee(!1),L({email:"",reason:"",expiresAt:""})}}),c.jsx(Vr,{variant:"primary",color:"error",label:"Ban User",onClick:ft,disabled:!J.email||!J.reason})]})]}),s.entitlements&&c.jsxs(Sd,{open:oe,onClose:()=>ue(!1),maxWidth:"md",fullWidth:!0,children:[c.jsx(wd,{children:"User Entitlements"}),c.jsx(Cd,{children:c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[c.jsxs(ne,{sx:{display:"flex",gap:1},children:[c.jsx(At,{label:"Email",fullWidth:!0,value:ce,onChange:ie=>K(ie.target.value),placeholder:"Enter user email",onKeyDown:ie=>ie.key==="Enter"&&kt()}),c.jsx(Vr,{variant:"primary",icon:"search",label:"Lookup",onClick:kt,disabled:re})]}),re&&c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:4},children:c.jsx(Tr,{})}),De&&c.jsx(ar,{severity:"error",children:De}),be&&c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[c.jsxs(ne,{children:[c.jsx(Et,{variant:"h6",content:be.identifier,customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:`Source: ${be.source}`,customColor:"var(--theme-text-secondary)"})]}),c.jsx(Vr,{variant:"outlined",icon:"refresh",label:ye?"Refreshing...":"Refresh",onClick:at,disabled:ye,buttonSize:"small"})]}),!s.entitlementsReadonly&&Ge.length>0&&c.jsxs(ne,{sx:{display:"flex",gap:1,mb:2,p:2,bgcolor:"var(--theme-background)",borderRadius:1},children:[c.jsx(I9,{size:"small",options:Ge,getOptionLabel:ie=>ie.name,value:Ge.find(ie=>ie.name===Ie)||null,onChange:(ie,Pe)=>We((Pe==null?void 0:Pe.name)||""),renderInput:ie=>c.jsx(At,{...ie,label:"Grant Entitlement",placeholder:"Select entitlement"}),sx:{flex:1}}),c.jsx(Vr,{variant:"primary",icon:"add",label:"Grant",onClick:fe,disabled:!Ie||ct,buttonSize:"small"})]}),c.jsx(Et,{variant:"subtitle2",content:"Current Entitlements",customColor:"var(--theme-text-secondary)",style:{marginBottom:"8px"}}),be.entitlements.length===0?c.jsx(Et,{variant:"body2",content:"No entitlements found",customColor:"var(--theme-text-secondary)"}):c.jsx(ne,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:be.entitlements.map((ie,Pe)=>c.jsx(rr,{icon:c.jsx(Xo,{sx:{fontSize:16}}),label:ie,onDelete:s.entitlementsReadonly?void 0:()=>we(ie),deleteIcon:c.jsx(Sm,{sx:{fontSize:16}}),sx:{bgcolor:"var(--theme-success)20",color:"var(--theme-success)","& .MuiChip-deleteIcon":{color:"var(--theme-error)","&:hover":{color:"var(--theme-error)"}}}},Pe))}),c.jsxs(ne,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:[c.jsx(Et,{variant:"caption",content:`Data from: ${be.source==="cache"?"Cache":"Source"}`,customColor:"var(--theme-text-secondary)"}),be.cachedAt&&c.jsx(Et,{variant:"caption",content:` | Cached: ${_e(be.cachedAt)}`,customColor:"var(--theme-text-secondary)"}),s.entitlementsReadonly&&c.jsx(Et,{variant:"caption",content:" | Read-only mode (modifications disabled)",customColor:"var(--theme-warning)"})]})]})]})}),c.jsx(Td,{children:c.jsx(Vr,{variant:"text",label:"Close",onClick:()=>ue(!1)})})]})]}):c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:8},children:c.jsx(Tr,{})})}function iG({title:t="Entitlements",subtitle:e="Manage available entitlements",headerActions:r}){var ce;const[n,o]=S.useState(null),[s,u]=S.useState(!0),[d,p]=S.useState([]),[h,m]=S.useState([]),[b,y]=S.useState(!0),[v,w]=S.useState(null),[C,T]=S.useState(null),[M,E]=S.useState(""),[R,j]=S.useState(!1),[k,P]=S.useState(!1),[z,_]=S.useState(!1),[B,G]=S.useState(null),[D,A]=S.useState({name:"",category:"",description:""}),[Y,F]=S.useState(!1);S.useEffect(()=>{Bt.getEntitlementsStatus().then(o).catch(K=>w(K instanceof Error?K.message:"Failed to get status")).finally(()=>u(!1))},[]);const $=S.useCallback(async()=>{y(!0);try{const K=await Bt.getAvailableEntitlements();p(K),w(null)}catch(K){w(K instanceof Error?K.message:"Failed to fetch entitlements")}finally{y(!1)}},[]);S.useEffect(()=>{$()},[$]),S.useEffect(()=>{if(!M.trim())m(d);else{const K=M.toLowerCase();m(d.filter(re=>{var Z,ye;return re.name.toLowerCase().includes(K)||((Z=re.category)==null?void 0:Z.toLowerCase().includes(K))||((ye=re.description)==null?void 0:ye.toLowerCase().includes(K))}))}},[d,M]);const I=[...new Set(d.map(K=>K.category||"Uncategorized"))],Q=async()=>{if(!D.name.trim()){w("Name is required");return}F(!0);try{T(`Entitlement "${D.name}" created`),j(!1),A({name:"",category:"",description:""}),$()}catch(K){w(K instanceof Error?K.message:"Failed to create entitlement")}finally{F(!1)}},ee=async()=>{if(B){F(!0);try{T(`Entitlement "${B.name}" updated`),P(!1),G(null),$()}catch(K){w(K instanceof Error?K.message:"Failed to update entitlement")}finally{F(!1)}}},J=async()=>{if(B){F(!0);try{T(`Entitlement "${B.name}" deleted`),_(!1),G(null),$()}catch(K){w(K instanceof Error?K.message:"Failed to delete entitlement")}finally{F(!1)}}},L=K=>{G(K),P(!0)},oe=K=>{G(K),_(!0)},ue=(n==null?void 0:n.readonly)??!0;return s?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",py:8},children:c.jsx(Tr,{})}):c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[c.jsxs(ne,{children:[c.jsx(Et,{variant:"h4",content:t,customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:e,customColor:"var(--theme-text-secondary)"})]}),c.jsxs(ne,{sx:{display:"flex",gap:1},children:[r,!ue&&c.jsx(Vr,{variant:"primary",icon:"add",label:"Add Entitlement",onClick:()=>j(!0)})]})]}),b&&c.jsx(gm,{sx:{mb:2}}),v&&c.jsx(ar,{severity:"error",onClose:()=>w(null),sx:{mb:2},children:v}),C&&c.jsx(ar,{severity:"success",onClose:()=>T(null),sx:{mb:2},children:C}),c.jsxs(_m,{columns:3,spacing:"medium",sx:{mb:3},equalHeight:!0,children:[c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(xc,{sx:{fontSize:40,color:"var(--theme-primary)"}}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"h4",content:d.length.toString(),customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:"Total Entitlements",customColor:"var(--theme-text-secondary)"})]})]})})}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(ne,{sx:{width:40,height:40,borderRadius:1,bgcolor:"var(--theme-primary)20",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Et,{variant:"h6",content:I.length.toString(),customColor:"var(--theme-primary)"})}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"body1",fontWeight:"500",content:"Categories",customColor:"var(--theme-text-primary)"}),c.jsx(Et,{variant:"body2",content:I.slice(0,3).join(", "),customColor:"var(--theme-text-secondary)"})]})]})})}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[ue?c.jsx(rv,{sx:{fontSize:40,color:"var(--theme-warning)"}}):c.jsx(Mh,{sx:{fontSize:40,color:"var(--theme-success)"}}),c.jsxs(ne,{children:[c.jsx(Et,{variant:"body1",fontWeight:"500",content:ue?"Read-only":"Editable",customColor:ue?"var(--theme-warning)":"var(--theme-success)"}),c.jsx(Et,{variant:"body2",content:`Source: ${((ce=n==null?void 0:n.sources[0])==null?void 0:ce.name)||"Unknown"}`,customColor:"var(--theme-text-secondary)"})]})]})})})]}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{sx:{p:0},children:[c.jsx(ne,{sx:{p:2,borderBottom:1,borderColor:"var(--theme-border)"},children:c.jsx(At,{size:"small",placeholder:"Search entitlements...",value:M,onChange:K=>E(K.target.value),InputProps:{startAdornment:c.jsx(Eh,{position:"start",children:c.jsx(wm,{sx:{color:"var(--theme-text-secondary)"}})})},sx:{minWidth:300}})}),c.jsx(dl,{children:c.jsxs(cl,{children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Name"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Category"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Description"}),!ue&&c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},align:"right",children:"Actions"})]})}),c.jsxs(ul,{children:[h.map(K=>c.jsxs(pn,{hover:!0,children:[c.jsx(et,{sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(xc,{sx:{fontSize:18,color:"var(--theme-primary)"}}),c.jsx(Et,{variant:"body1",content:K.name,fontWeight:"500"})]})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:K.category?c.jsx(rr,{size:"small",label:K.category,sx:{bgcolor:"var(--theme-primary)20",color:"var(--theme-primary)"}}):c.jsx(Et,{variant:"body2",content:"--",customColor:"var(--theme-text-secondary)"})}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",maxWidth:300},children:K.description||"--"}),!ue&&c.jsxs(et,{sx:{borderColor:"var(--theme-border)"},align:"right",children:[c.jsx(_r,{title:"Edit",children:c.jsx(sr,{size:"small",onClick:()=>L(K),children:c.jsx(Mh,{fontSize:"small"})})}),c.jsx(_r,{title:"Delete",children:c.jsx(sr,{size:"small",onClick:()=>oe(K),sx:{color:"var(--theme-error)"},children:c.jsx(Sm,{fontSize:"small"})})})]})]},K.id)),h.length===0&&!b&&c.jsx(pn,{children:c.jsx(et,{colSpan:ue?3:4,align:"center",sx:{py:4,color:"var(--theme-text-secondary)"},children:M?"No entitlements match your search":"No entitlements defined"})})]})]})})]})}),n&&n.sources.length>0&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:c.jsxs(bt,{children:[c.jsx(Et,{variant:"subtitle2",content:"Entitlement Sources",customColor:"var(--theme-text-secondary)",style:{marginBottom:"12px"}}),c.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:1},children:n.sources.map((K,re)=>c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2},children:[c.jsx(rr,{size:"small",label:K.primary?"Primary":"Additional",sx:{bgcolor:K.primary?"var(--theme-primary)20":"var(--theme-text-secondary)20",color:K.primary?"var(--theme-primary)":"var(--theme-text-secondary)"}}),c.jsx(Et,{variant:"body1",content:K.name,fontWeight:"500",customColor:"var(--theme-text-primary)"}),K.description&&c.jsx(Et,{variant:"body2",content:`- ${K.description}`,customColor:"var(--theme-text-secondary)"}),K.readonly&&c.jsx(rr,{size:"small",icon:c.jsx(rv,{sx:{fontSize:14}}),label:"Read-only",sx:{bgcolor:"var(--theme-warning)20",color:"var(--theme-warning)"}})]},re))}),n.cacheEnabled&&c.jsx(ne,{sx:{mt:2,pt:2,borderTop:1,borderColor:"var(--theme-border)"},children:c.jsx(Et,{variant:"caption",content:`Caching: Enabled (TTL: ${n.cacheTtl}s)`,customColor:"var(--theme-text-secondary)"})})]})}),!ue&&c.jsxs(Sd,{open:R,onClose:()=>j(!1),maxWidth:"sm",fullWidth:!0,children:[c.jsx(wd,{children:"Add Entitlement"}),c.jsx(Cd,{children:c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[c.jsx(At,{label:"Name",fullWidth:!0,value:D.name,onChange:K=>A({...D,name:K.target.value}),placeholder:"e.g., premium, pro, feature:analytics",required:!0}),c.jsx(At,{label:"Category (Optional)",fullWidth:!0,value:D.category,onChange:K=>A({...D,category:K.target.value}),placeholder:"e.g., subscription, feature, access"}),c.jsx(At,{label:"Description (Optional)",fullWidth:!0,multiline:!0,rows:2,value:D.description,onChange:K=>A({...D,description:K.target.value}),placeholder:"Describe what this entitlement grants access to"})]})}),c.jsxs(Td,{children:[c.jsx(Vr,{variant:"text",label:"Cancel",onClick:()=>j(!1)}),c.jsx(Vr,{variant:"primary",label:"Create",onClick:Q,disabled:!D.name.trim()||Y})]})]}),!ue&&B&&c.jsxs(Sd,{open:k,onClose:()=>P(!1),maxWidth:"sm",fullWidth:!0,children:[c.jsx(wd,{children:"Edit Entitlement"}),c.jsx(Cd,{children:c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:2,mt:1},children:[c.jsx(At,{label:"Name",fullWidth:!0,value:B.name,disabled:!0,helperText:"Name cannot be changed"}),c.jsx(At,{label:"Category",fullWidth:!0,value:B.category||"",onChange:K=>G({...B,category:K.target.value})}),c.jsx(At,{label:"Description",fullWidth:!0,multiline:!0,rows:2,value:B.description||"",onChange:K=>G({...B,description:K.target.value})})]})}),c.jsxs(Td,{children:[c.jsx(Vr,{variant:"text",label:"Cancel",onClick:()=>P(!1)}),c.jsx(Vr,{variant:"primary",label:"Save",onClick:ee,disabled:Y})]})]}),!ue&&B&&c.jsxs(Sd,{open:z,onClose:()=>_(!1),maxWidth:"sm",fullWidth:!0,children:[c.jsx(wd,{children:"Delete Entitlement"}),c.jsxs(Cd,{children:[c.jsx(Et,{variant:"body1",content:`Are you sure you want to delete the entitlement "${B.name}"?`,customColor:"var(--theme-text-primary)"}),c.jsx(ar,{severity:"warning",sx:{mt:2},children:"This will remove the entitlement from all users who currently have it."})]}),c.jsxs(Td,{children:[c.jsx(Vr,{variant:"text",label:"Cancel",onClick:()=>_(!1)}),c.jsx(Vr,{variant:"primary",color:"error",label:"Delete",onClick:J,disabled:Y})]})]})]})}function aE(t){switch(t){case"enabled":return"var(--theme-success)";case"error":return"var(--theme-error)";case"disabled":default:return"var(--theme-text-secondary)"}}function oG(t){switch(t){case"enabled":return c.jsx(Xo,{sx:{color:"var(--theme-success)"}});case"error":return c.jsx(Yo,{sx:{color:"var(--theme-error)"}});case"disabled":default:return c.jsx(xm,{sx:{color:"var(--theme-text-secondary)"}})}}const sE={domain:"",clientId:"",clientSecret:"",baseUrl:"",secret:"",audience:"",scopes:["openid","profile","email"],allowedRoles:[],allowedDomains:[]},lE={url:"",anonKey:""},cE={username:"",password:"",realm:"Protected Area"},uE={connectionUri:"",apiKey:"",appName:"",apiDomain:"",websiteDomain:"",apiBasePath:"/auth",websiteBasePath:"/auth",enableEmailPassword:!0,socialProviders:{}};function aG(){var Ie,We,ct;const[t,e]=S.useState(null),[r,n]=S.useState(!0),[o,s]=S.useState(null),[u,d]=S.useState(null),[p,h]=S.useState(!1),[m,b]=S.useState(!1),[y,v]=S.useState(!1),[w,C]=S.useState(null),[T,M]=S.useState(""),[E,R]=S.useState(sE),[j,k]=S.useState(lE),[P,z]=S.useState(cE),[_,B]=S.useState(uE),[G,D]=S.useState(!0),[A,Y]=S.useState(""),[F,$]=S.useState({enabled:!1,clientId:"",clientSecret:""}),[I,Q]=S.useState({enabled:!1,clientId:"",clientSecret:""}),[ee,J]=S.useState({enabled:!1,clientId:"",clientSecret:"",keyId:"",teamId:""}),[L,oe]=S.useState(!1),[ue,ce]=S.useState(!1),K=S.useCallback(async()=>{var le,Ze,Fe,ft;n(!0),s(null);try{const Ue=await Bt.getAuthConfig();if(e(Ue),Ue.runtimeConfig){const kt=Ue.runtimeConfig;if(M(kt.adapter||""),D(kt.settings.authRequired??!0),Y(((le=kt.settings.excludePaths)==null?void 0:le.join(", "))||""),kt.config.auth0&&R({...sE,...kt.config.auth0}),kt.config.supabase&&k({...lE,...kt.config.supabase}),kt.config.basic&&z({...cE,...kt.config.basic}),kt.config.supertokens){const at=kt.config.supertokens;B({...uE,...at}),(Ze=at.socialProviders)!=null&&Ze.google&&$({enabled:!0,clientId:at.socialProviders.google.clientId,clientSecret:at.socialProviders.google.clientSecret}),(Fe=at.socialProviders)!=null&&Fe.github&&Q({enabled:!0,clientId:at.socialProviders.github.clientId,clientSecret:at.socialProviders.github.clientSecret}),(ft=at.socialProviders)!=null&&ft.apple&&J({enabled:!0,clientId:at.socialProviders.apple.clientId,clientSecret:at.socialProviders.apple.clientSecret,keyId:at.socialProviders.apple.keyId,teamId:at.socialProviders.apple.teamId})}}else Ue.adapter&&M(Ue.adapter)}catch(Ue){s(Ue instanceof Error?Ue.message:"Failed to fetch auth status")}finally{n(!1)}},[]);S.useEffect(()=>{K()},[K]);const re=(le,Ze)=>{navigator.clipboard.writeText(Ze),d(le),setTimeout(()=>d(null),2e3)},Z=()=>{h(!0),C(null)},ye=()=>{h(!1),C(null),K()},Ce=le=>JSON.parse(JSON.stringify(le)),be=()=>{switch(T){case"auth0":return Ce(E);case"supabase":return Ce(j);case"basic":return Ce(P);case"supertokens":{const le={..._},Ze={};return F.enabled&&(Ze.google={clientId:F.clientId,clientSecret:F.clientSecret}),I.enabled&&(Ze.github={clientId:I.clientId,clientSecret:I.clientSecret}),ee.enabled&&(Ze.apple={clientId:ee.clientId,clientSecret:ee.clientSecret,keyId:ee.keyId||"",teamId:ee.teamId||""}),Object.keys(Ze).length>0&&(le.socialProviders=Ze),Ce(le)}default:return{}}},se=async()=>{if(T){v(!0),C(null);try{const le=await Bt.testAuthProvider({adapter:T,config:be()});C(le)}catch(le){C({success:!1,message:le instanceof Error?le.message:"Test failed"})}finally{v(!1)}}},De=async()=>{if(t!=null&&t.adapter){v(!0),C(null);try{const le=await Bt.testCurrentAuthProvider();C(le)}catch(le){C({success:!1,message:le instanceof Error?le.message:"Test failed"})}finally{v(!1)}}},ze=async()=>{if(T){b(!0),s(null);try{const le={adapter:T,config:be(),settings:{authRequired:G,excludePaths:A.split(",").map(Ze=>Ze.trim()).filter(Boolean)}};await Bt.updateAuthConfig(le),h(!1),await K()}catch(le){s(le instanceof Error?le.message:"Failed to save configuration")}finally{b(!1)}}},Be=async()=>{b(!0),s(null);try{await Bt.deleteAuthConfig(),ce(!1),h(!1),await K()}catch(le){s(le instanceof Error?le.message:"Failed to delete configuration")}finally{b(!1)}};if(r)return c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})});const Ve=t!=null&&t.config?Object.entries(t.config):[];return c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[c.jsx(me,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Authentication"}),c.jsx(ne,{sx:{display:"flex",gap:1},children:!p&&c.jsxs(c.Fragment,{children:[c.jsx(_r,{title:"Edit Configuration",children:c.jsx(sr,{onClick:Z,sx:{color:"var(--theme-primary)"},children:c.jsx(Mh,{})})}),c.jsx(_r,{title:"Refresh",children:c.jsx(sr,{onClick:K,sx:{color:"var(--theme-text-secondary)"},children:c.jsx(Qc,{})})})]})})]}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:p?"Configure authentication provider":"Auth plugin configuration status"}),o&&c.jsx(ar,{severity:"error",sx:{mb:2},onClose:()=>s(null),children:o}),p?c.jsxs(ne,{children:[c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Provider Selection"}),c.jsxs(Ho,{fullWidth:!0,sx:{mb:2},children:[c.jsx(ls,{sx:{color:"var(--theme-text-secondary)"},children:"Auth Provider"}),c.jsxs(wa,{value:T,onChange:le=>M(le.target.value),label:"Auth Provider",sx:{color:"var(--theme-text-primary)"},children:[c.jsx(Mr,{value:"",children:c.jsx("em",{children:"None (Disabled)"})}),c.jsx(Mr,{value:"supertokens",children:"SuperTokens"}),c.jsx(Mr,{value:"auth0",children:"Auth0"}),c.jsx(Mr,{value:"supabase",children:"Supabase"}),c.jsx(Mr,{value:"basic",children:"Basic Auth"})]})]}),c.jsxs(ne,{sx:{display:"flex",gap:2,alignItems:"center"},children:[c.jsx(es,{control:c.jsx(el,{checked:G,onChange:le=>D(le.target.checked),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Auth Required",sx:{color:"var(--theme-text-primary)"}}),c.jsx(At,{label:"Exclude Paths (comma-separated)",value:A,onChange:le=>Y(le.target.value),size:"small",sx:{flex:1,"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}},placeholder:"/api/health, /api/public/*"})]})]})}),T==="auth0"&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Auth0 Configuration"}),c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[c.jsx(At,{label:"Domain",value:E.domain,onChange:le=>R({...E,domain:le.target.value}),required:!0,placeholder:"your-tenant.auth0.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Client ID",value:E.clientId,onChange:le=>R({...E,clientId:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Client Secret",type:"password",value:E.clientSecret,onChange:le=>R({...E,clientSecret:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Base URL",value:E.baseUrl,onChange:le=>R({...E,baseUrl:le.target.value}),required:!0,placeholder:"https://your-app.com",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Session Secret",type:"password",value:E.secret,onChange:le=>R({...E,secret:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"API Audience (optional)",value:E.audience||"",onChange:le=>R({...E,audience:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),T==="supabase"&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Supabase Configuration"}),c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[c.jsx(At,{label:"Project URL",value:j.url,onChange:le=>k({...j,url:le.target.value}),required:!0,placeholder:"https://your-project.supabase.co",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Anon Key",type:"password",value:j.anonKey,onChange:le=>k({...j,anonKey:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),T==="basic"&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Basic Auth Configuration"}),c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr 1fr"},gap:2},children:[c.jsx(At,{label:"Username",value:P.username,onChange:le=>z({...P,username:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Password",type:"password",value:P.password,onChange:le=>z({...P,password:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Realm (optional)",value:P.realm||"",onChange:le=>z({...P,realm:le.target.value}),placeholder:"Protected Area",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})}),T==="supertokens"&&c.jsxs(c.Fragment,{children:[c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"SuperTokens Configuration"}),c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[c.jsx(At,{label:"Connection URI",value:_.connectionUri,onChange:le=>B({..._,connectionUri:le.target.value}),required:!0,placeholder:"http://localhost:3567",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"API Key (optional)",type:"password",value:_.apiKey||"",onChange:le=>B({..._,apiKey:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"App Name",value:_.appName,onChange:le=>B({..._,appName:le.target.value}),required:!0,sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"API Domain",value:_.apiDomain,onChange:le=>B({..._,apiDomain:le.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Website Domain",value:_.websiteDomain,onChange:le=>B({..._,websiteDomain:le.target.value}),required:!0,placeholder:"http://localhost:3000",sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"API Base Path",value:_.apiBasePath||"/auth",onChange:le=>B({..._,apiBasePath:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]}),c.jsx(ne,{sx:{mt:2},children:c.jsx(es,{control:c.jsx(el,{checked:_.enableEmailPassword??!0,onChange:le=>B({..._,enableEmailPassword:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Enable Email/Password Auth",sx:{color:"var(--theme-text-primary)"}})})]})}),c.jsxs(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:[c.jsx(bt,{sx:{pb:L?2:0},children:c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer"},onClick:()=>oe(!L),children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:"Social Login Providers"}),L?c.jsx(W$,{}):c.jsx(G$,{})]})}),c.jsx(_d,{in:L,children:c.jsxs(bt,{sx:{pt:0},children:[c.jsx(F0,{sx:{mb:2}}),c.jsxs(ne,{sx:{mb:3},children:[c.jsx(es,{control:c.jsx(el,{checked:F.enabled,onChange:le=>$({...F,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Google",sx:{color:"var(--theme-text-primary)",mb:1}}),F.enabled&&c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[c.jsx(At,{label:"Client ID",size:"small",value:F.clientId,onChange:le=>$({...F,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Client Secret",size:"small",type:"password",value:F.clientSecret,onChange:le=>$({...F,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),c.jsxs(ne,{sx:{mb:3},children:[c.jsx(es,{control:c.jsx(el,{checked:I.enabled,onChange:le=>Q({...I,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"GitHub",sx:{color:"var(--theme-text-primary)",mb:1}}),I.enabled&&c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[c.jsx(At,{label:"Client ID",size:"small",value:I.clientId,onChange:le=>Q({...I,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Client Secret",size:"small",type:"password",value:I.clientSecret,onChange:le=>Q({...I,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]}),c.jsxs(ne,{children:[c.jsx(es,{control:c.jsx(el,{checked:ee.enabled,onChange:le=>J({...ee,enabled:le.target.checked}),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"var(--theme-primary)"}}}),label:"Apple",sx:{color:"var(--theme-text-primary)",mb:1}}),ee.enabled&&c.jsxs(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2,ml:4},children:[c.jsx(At,{label:"Client ID",size:"small",value:ee.clientId,onChange:le=>J({...ee,clientId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Client Secret",size:"small",type:"password",value:ee.clientSecret,onChange:le=>J({...ee,clientSecret:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Key ID",size:"small",value:ee.keyId||"",onChange:le=>J({...ee,keyId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}}),c.jsx(At,{label:"Team ID",size:"small",value:ee.teamId||"",onChange:le=>J({...ee,teamId:le.target.value}),sx:{"& .MuiInputBase-input":{color:"var(--theme-text-primary)"}}})]})]})]})})]})]}),w&&c.jsxs(ar,{severity:w.success?"success":"error",sx:{mb:3},children:[c.jsx(me,{variant:"body2",sx:{fontWeight:600},children:w.success?"Connection Successful":"Connection Failed"}),c.jsx(me,{variant:"body2",children:w.message}),((Ie=w.details)==null?void 0:Ie.latency)&&c.jsxs(me,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",w.details.latency,"ms"]})]}),c.jsxs(ne,{sx:{display:"flex",gap:2,justifyContent:"space-between"},children:[c.jsxs(ne,{sx:{display:"flex",gap:2},children:[c.jsx($n,{variant:"outlined",startIcon:c.jsx($$,{}),onClick:ye,disabled:m,sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Cancel"}),(t==null?void 0:t.runtimeConfig)&&c.jsx($n,{variant:"outlined",color:"error",startIcon:c.jsx(Sm,{}),onClick:()=>ce(!0),disabled:m,children:"Reset to Env Vars"})]}),c.jsxs(ne,{sx:{display:"flex",gap:2},children:[c.jsx($n,{variant:"outlined",startIcon:y?c.jsx(Tr,{size:16}):c.jsx(_c,{}),onClick:se,disabled:!T||y||m,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"}),c.jsx($n,{variant:"contained",startIcon:m?c.jsx(Tr,{size:16,sx:{color:"white"}}):c.jsx(mb,{}),onClick:ze,disabled:m,sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary-dark)"}},children:"Save Configuration"})]})]})]}):c.jsxs(c.Fragment,{children:[c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:2,mb:2},children:[oG((t==null?void 0:t.state)||"disabled"),c.jsxs(ne,{sx:{flex:1},children:[c.jsxs(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:["Status:"," ",c.jsx(rr,{label:((We=t==null?void 0:t.state)==null?void 0:We.toUpperCase())||"UNKNOWN",size:"small",sx:{bgcolor:`${aE((t==null?void 0:t.state)||"disabled")}20`,color:aE((t==null?void 0:t.state)||"disabled"),fontWeight:600}})]}),(t==null?void 0:t.adapter)&&c.jsxs(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mt:.5},children:["Adapter: ",c.jsx("strong",{children:t.adapter})]})]}),(t==null?void 0:t.state)==="enabled"&&(t==null?void 0:t.adapter)&&c.jsx($n,{variant:"outlined",size:"small",startIcon:y?c.jsx(Tr,{size:14}):c.jsx(_c,{}),onClick:De,disabled:y,sx:{color:"var(--theme-text-primary)",borderColor:"var(--theme-border)"},children:"Test Connection"})]}),w&&!p&&c.jsxs(ar,{severity:w.success?"success":"error",sx:{mb:2},children:[c.jsx(me,{variant:"body2",sx:{fontWeight:600},children:w.success?"Connection Successful":"Connection Failed"}),c.jsx(me,{variant:"body2",children:w.message}),((ct=w.details)==null?void 0:ct.latency)&&c.jsxs(me,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",w.details.latency,"ms"]})]}),(t==null?void 0:t.state)==="enabled"&&!(t!=null&&t.runtimeConfig)&&c.jsxs(ar,{severity:"success",sx:{mb:2},children:[c.jsx(me,{variant:"body2",sx:{fontWeight:600},children:"Configured via Environment Variables"}),c.jsx(me,{variant:"body2",children:'Authentication is configured using environment variables. Click "Edit" to override with runtime configuration (requires PostgreSQL).'})]}),(t==null?void 0:t.runtimeConfig)&&c.jsx(rr,{label:"Runtime Configuration Active",size:"small",sx:{bgcolor:"var(--theme-primary)",color:"white",mb:2}}),(t==null?void 0:t.state)==="error"&&t.error&&c.jsx(ar,{severity:"error",sx:{mb:2},children:t.error}),(t==null?void 0:t.missingVars)&&t.missingVars.length>0&&c.jsxs(ar,{severity:"warning",sx:{mb:2},children:[c.jsx(me,{variant:"body2",sx:{fontWeight:600,mb:1},children:"Missing environment variables:"}),c.jsx(ne,{component:"ul",sx:{m:0,pl:2},children:t.missingVars.map(le=>c.jsx("li",{children:c.jsx("code",{children:le})},le))})]}),(t==null?void 0:t.state)==="disabled"&&c.jsxs(ar,{severity:"info",children:[c.jsxs(me,{variant:"body2",children:["Authentication is disabled. Click the edit button to configure a provider, or set the"," ",c.jsx("code",{children:"AUTH_ADAPTER"})," environment variable."]}),c.jsxs(me,{variant:"body2",sx:{mt:1},children:["Valid options: ",c.jsx("code",{children:"supertokens"}),", ",c.jsx("code",{children:"auth0"}),", ",c.jsx("code",{children:"supabase"}),","," ",c.jsx("code",{children:"basic"})]})]})]})}),Ve.length>0&&c.jsxs(xt,{sx:{bgcolor:"var(--theme-surface)"},children:[c.jsx(bt,{sx:{pb:0},children:c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Current Configuration"})}),c.jsx(dl,{children:c.jsxs(cl,{size:"small",children:[c.jsx(pl,{children:c.jsxs(pn,{children:[c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Variable"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)"},children:"Value"}),c.jsx(et,{sx:{color:"var(--theme-text-secondary)",borderColor:"var(--theme-border)",width:60},children:"Actions"})]})}),c.jsx(ul,{children:Ve.map(([le,Ze])=>c.jsxs(pn,{children:[c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(me,{sx:{color:"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:le})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(me,{sx:{color:Ze.includes("*")?"var(--theme-text-secondary)":"var(--theme-text-primary)",fontFamily:"monospace",fontSize:13},children:Ze})}),c.jsx(et,{sx:{borderColor:"var(--theme-border)"},children:c.jsx(_r,{title:u===le?"Copied!":"Copy value",children:c.jsx(sr,{size:"small",onClick:()=>re(le,Ze),sx:{color:u===le?"var(--theme-success)":"var(--theme-text-secondary)"},children:c.jsx(hb,{fontSize:"small"})})})})]},le))})]})})]}),(t==null?void 0:t.state)==="enabled"&&Ve.length===0&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsx(bt,{children:c.jsx(me,{sx:{color:"var(--theme-text-secondary)",textAlign:"center"},children:"No configuration details available"})})})]}),c.jsxs(V4,{open:ue,onClose:()=>ce(!1),children:[c.jsx(W4,{children:"Reset to Environment Variables?"}),c.jsx(F4,{children:c.jsx(me,{children:"This will delete the runtime configuration from the database. The auth plugin will fall back to environment variables on the next request."})}),c.jsxs(q4,{children:[c.jsx($n,{onClick:()=>ce(!1),children:"Cancel"}),c.jsx($n,{onClick:Be,color:"error",disabled:m,children:m?c.jsx(Tr,{size:20}):"Reset"})]})]})]})}function x0(t){return t<1e3?`${t}ms`:t<6e4?`${t/1e3}s`:t<36e5?`${t/6e4}m`:`${t/36e5}h`}function sG(){const[t,e]=S.useState(null),[r,n]=S.useState(!0),[o,s]=S.useState(!1),[u,d]=S.useState(null),[p,h]=S.useState(null),[m,b]=S.useState(6e4),[y,v]=S.useState(100),[w,C]=S.useState("sliding-window"),[T,M]=S.useState(!0),[E,R]=S.useState(3e5),j=async()=>{n(!0),d(null);try{const z=await Bt.getRateLimitConfig();e(z),b(z.windowMs),v(z.maxRequests),C(z.strategy),M(z.cleanupEnabled),R(z.cleanupIntervalMs)}catch(z){d(z instanceof Error?z.message:"Failed to fetch config")}finally{n(!1)}};S.useEffect(()=>{j()},[]);const k=async()=>{s(!0),d(null),h(null);try{const z=await Bt.updateRateLimitConfig({windowMs:m,maxRequests:y,strategy:w,cleanupEnabled:T,cleanupIntervalMs:E});e(z.config),h("Configuration saved successfully"),setTimeout(()=>h(null),3e3)}catch(z){d(z instanceof Error?z.message:"Failed to save config")}finally{s(!1)}},P=t&&(m!==t.windowMs||y!==t.maxRequests||w!==t.strategy||T!==t.cleanupEnabled||E!==t.cleanupIntervalMs);return r?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})}):u&&!t?c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",border:"1px solid var(--theme-error)"},children:c.jsx(bt,{children:c.jsx(me,{color:"error",children:u})})}):c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(T5,{sx:{color:"var(--theme-primary)",fontSize:32}}),c.jsx(me,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"Rate Limits"})]}),c.jsxs(ne,{sx:{display:"flex",gap:1},children:[c.jsx(_r,{title:"Refresh",children:c.jsx(sr,{onClick:j,sx:{color:"var(--theme-text-secondary)"},children:c.jsx(Qc,{})})}),c.jsx($n,{variant:"contained",startIcon:o?c.jsx(Tr,{size:16,color:"inherit"}):c.jsx(mb,{}),onClick:k,disabled:o||!P,sx:{minWidth:100},children:o?"Saving...":"Save"})]})]}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Configure rate limiting defaults for your API"}),p&&c.jsx(ar,{severity:"success",sx:{mb:3},children:p}),u&&t&&c.jsx(ar,{severity:"error",sx:{mb:3},children:u}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"System Status"}),c.jsxs(ne,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(gb,{sx:{color:"var(--theme-text-secondary)"}}),c.jsxs(ne,{children:[c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Store"}),c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.store})]})]}),c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(z$,{sx:{color:t!=null&&t.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}}),c.jsxs(ne,{children:[c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:"Cache"}),c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(me,{sx:{color:"var(--theme-text-primary)"},children:t==null?void 0:t.cache}),c.jsx(rr,{label:t!=null&&t.cacheAvailable?"Available":"Unavailable",size:"small",sx:{bgcolor:t!=null&&t.cacheAvailable?"var(--theme-success)20":"var(--theme-warning)20",color:t!=null&&t.cacheAvailable?"var(--theme-success)":"var(--theme-warning)"}})]})]})]})]})]})}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Default Rate Limit Settings"}),c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:[c.jsxs(Ho,{fullWidth:!0,children:[c.jsx(ls,{sx:{color:"var(--theme-text-secondary)"},children:"Strategy"}),c.jsxs(wa,{value:w,label:"Strategy",onChange:z=>C(z.target.value),sx:{color:"var(--theme-text-primary)","& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--theme-border)"}},children:[c.jsx(Mr,{value:"sliding-window",children:"Sliding Window - Smooth rate limiting with weighted overlap"}),c.jsx(Mr,{value:"fixed-window",children:"Fixed Window - Simple discrete time windows"}),c.jsx(Mr,{value:"token-bucket",children:"Token Bucket - Allows bursts while maintaining average rate"})]})]}),c.jsxs(ne,{sx:{display:"flex",gap:3,flexWrap:"wrap"},children:[c.jsx(At,{label:"Window (ms)",type:"number",value:m,onChange:z=>b(Math.max(1e3,parseInt(z.target.value)||6e4)),helperText:`= ${x0(m)}`,sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1e3,step:1e3}}}),c.jsx(At,{label:"Max Requests",type:"number",value:y,onChange:z=>v(Math.max(1,parseInt(z.target.value)||100)),helperText:"Per window per key",sx:{flex:1,minWidth:200},InputProps:{inputProps:{min:1}}})]}),c.jsx(ar,{severity:"info",sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(me,{variant:"body2",children:[c.jsx("strong",{children:"Current limit:"})," ",y," requests per ",x0(m)," using ",w," strategy"]})})]})]})}),c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:3},children:"Cleanup Job"}),c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:[c.jsx(es,{control:c.jsx(el,{checked:T,onChange:z=>M(z.target.checked),color:"primary"}),label:"Enable automatic cleanup of expired rate limits",sx:{color:"var(--theme-text-primary)"}}),T&&c.jsx(At,{label:"Cleanup Interval (ms)",type:"number",value:E,onChange:z=>R(Math.max(6e4,parseInt(z.target.value)||3e5)),helperText:`= ${x0(E)}`,sx:{maxWidth:300},InputProps:{inputProps:{min:6e4,step:6e4}}})]})]})})]})}function lG(){const[t,e]=S.useState(null),[r,n]=S.useState(!0),[o,s]=S.useState(null),[u,d]=S.useState(null),[p,h]=S.useState({}),m=S.useCallback(async()=>{n(!0),s(null);try{const y=await Bt.fetch("/ai-proxy/config");e(y)}catch(y){s(y instanceof Error?y.message:"Failed to fetch integrations config")}finally{n(!1)}},[]);S.useEffect(()=>{m()},[m]);const b=async y=>{d(y),h(v=>({...v,[y]:{success:!1,message:"Testing..."}}));try{const v=await Bt.fetch(`/ai-proxy/test/${y}`,{method:"POST"});h(w=>({...w,[y]:v}))}catch(v){h(w=>({...w,[y]:{success:!1,message:v instanceof Error?v.message:"Test failed"}}))}finally{d(null)}};return r?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})}):c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[c.jsx(me,{variant:"h4",sx:{color:"var(--theme-text-primary)"},children:"AI Integrations"}),c.jsx(_r,{title:"Refresh",children:c.jsx(sr,{onClick:m,sx:{color:"var(--theme-text-secondary)"},children:c.jsx(Qc,{})})})]}),c.jsx(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:"Manage AI service connections for QwickBot"}),o&&c.jsx(ar,{severity:"error",sx:{mb:3},onClose:()=>s(null),children:o}),t&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mb:3},children:c.jsx(bt,{children:c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:3},children:[c.jsxs(ne,{children:[c.jsx(me,{variant:"h3",sx:{color:"var(--theme-primary)",fontWeight:600},children:t.stats.totalRequests}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Total API Requests"})]}),c.jsxs(ne,{sx:{borderLeft:"1px solid var(--theme-border)",pl:3},children:[c.jsx(me,{variant:"h3",sx:{color:"var(--theme-success)",fontWeight:600},children:t.integrations.filter(y=>y.configured).length}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:"Configured Services"})]})]})})}),c.jsx(ne,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:3},children:t==null?void 0:t.integrations.map(y=>{const v=p[y.id],w=u===y.id;return c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsxs(ne,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[c.jsxs(ne,{children:[c.jsxs(ne,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)"},children:y.name}),c.jsx(rr,{label:y.configured?"Configured":"Not Configured",size:"small",sx:{bgcolor:y.configured?"var(--theme-success)20":"var(--theme-error)20",color:y.configured?"var(--theme-success)":"var(--theme-error)",fontWeight:500}})]}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:y.description})]}),y.configured?c.jsx(Xo,{sx:{color:"var(--theme-success)"}}):c.jsx(Yo,{sx:{color:"var(--theme-error)"}})]}),c.jsxs(ne,{sx:{mb:2,p:1.5,bgcolor:"var(--theme-background)",borderRadius:1},children:[c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)",display:"block",mb:.5},children:"API Key"}),c.jsx(me,{sx:{fontFamily:"monospace",fontSize:13,color:y.configured?"var(--theme-text-primary)":"var(--theme-text-secondary)"},children:y.apiKey})]}),v&&c.jsx(ne,{sx:{mb:2},children:w?c.jsx(gm,{sx:{height:4,borderRadius:2}}):c.jsxs(ar,{severity:v.success?"success":"error",sx:{py:.5,"& .MuiAlert-message":{fontSize:13}},children:[v.message,v.latency!==void 0&&c.jsxs(me,{variant:"caption",sx:{display:"block",mt:.5},children:["Latency: ",v.latency,"ms"]})]})}),c.jsxs(ne,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[c.jsx($n,{size:"small",startIcon:c.jsx(gD,{}),href:y.docsUrl,target:"_blank",sx:{color:"var(--theme-text-secondary)","&:hover":{color:"var(--theme-primary)"}},children:"Docs"}),c.jsx($n,{size:"small",variant:"outlined",startIcon:w?c.jsx(Tr,{size:14}):c.jsx(_c,{}),onClick:()=>b(y.id),disabled:!y.configured||w,sx:{borderColor:"var(--theme-border)",color:"var(--theme-text-primary)","&:hover":{borderColor:"var(--theme-primary)"}},children:"Test Connection"})]})]})},y.id)})}),t&&t.integrations.some(y=>!y.configured)&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)",mt:3},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{color:"var(--theme-text-primary)",mb:2},children:"Setup Instructions"}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)",mb:2},children:"Add the following environment variables to configure the AI services:"}),c.jsx(ne,{component:"pre",sx:{p:2,bgcolor:"var(--theme-background)",borderRadius:1,overflow:"auto",fontFamily:"monospace",fontSize:13,color:"var(--theme-text-primary)"},children:`# Groq - for chat (https://console.groq.com)
|
|
474
|
-
GROQ_API_KEY=your_groq_api_key
|
|
475
|
-
|
|
476
|
-
# Gemini - for vision (https://ai.google.dev)
|
|
477
|
-
GEMINI_API_KEY=your_gemini_api_key`})]})})]})}function cG({pluginId:t,title:e,route:r}){const[n,o]=S.useState(!0),[s,u]=S.useState(null),[d,p]=S.useState(null);return S.useEffect(()=>{(async()=>{try{const m=await fetch(`${Bt.baseUrl}/api${r}`);if(m.ok){const b=await m.json();p(b),u(null)}else m.status===404?(p(null),u(null)):u(`Failed to load page: ${m.statusText}`)}catch(m){u(m instanceof Error?m.message:"Failed to load page")}finally{o(!1)}})()},[r]),n?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"50vh"},children:c.jsx(Tr,{})}):c.jsxs(ne,{children:[c.jsx(me,{variant:"h4",sx:{mb:1,color:"var(--theme-text-primary)"},children:e}),c.jsxs(me,{variant:"body2",sx:{mb:4,color:"var(--theme-text-secondary)"},children:["Plugin: ",t]}),s&&c.jsx(ar,{severity:"error",sx:{mb:3},children:s}),(d==null?void 0:d.cards)&&d.cards.length>0&&c.jsx(ne,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(200px, 1fr))",gap:2,mb:4},children:d.cards.map((h,m)=>c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h4",sx:{color:h.color||"var(--theme-text-primary)"},children:h.value}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)"},children:h.title}),h.subtitle&&c.jsx(me,{variant:"caption",sx:{color:"var(--theme-text-secondary)"},children:h.subtitle})]})},m))}),(d==null?void 0:d.sections)&&d.sections.length>0&&c.jsx(ne,{sx:{display:"flex",flexDirection:"column",gap:3},children:d.sections.map((h,m)=>c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"h6",sx:{mb:2,color:"var(--theme-text-primary)"},children:h.title}),c.jsx(me,{variant:"body2",sx:{color:"var(--theme-text-secondary)",whiteSpace:"pre-wrap"},children:h.content})]})},m))}),!d&&!s&&c.jsx(xt,{sx:{bgcolor:"var(--theme-surface)"},children:c.jsxs(bt,{children:[c.jsx(me,{variant:"body1",sx:{color:"var(--theme-text-secondary)"},children:"This plugin page is available. Configure the plugin to add content here."}),c.jsxs(me,{variant:"body2",sx:{mt:2,color:"var(--theme-text-secondary)"},children:["API endpoint: ",c.jsxs("code",{children:["/api",r]})]})]})})]})}function uG(){const t=Pv();return c.jsxs(ne,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"50vh",textAlign:"center"},children:[c.jsx(me,{variant:"h1",sx:{color:"var(--theme-primary)",mb:2},children:"404"}),c.jsx(me,{variant:"h5",sx:{color:"var(--theme-text-primary)",mb:1},children:"Page Not Found"}),c.jsx(me,{sx:{color:"var(--theme-text-secondary)",mb:4},children:"The page you're looking for doesn't exist or has been moved."}),c.jsx($n,{variant:"contained",startIcon:c.jsx(w5,{}),onClick:()=>t("/"),sx:{bgcolor:"var(--theme-primary)","&:hover":{bgcolor:"var(--theme-primary)"}},children:"Back to Dashboard"})]})}const dE=[{id:"dashboard",label:"Dashboard",route:"/",icon:"dashboard"},{id:"plugins",label:"Plugins",route:"/plugins",icon:"extension"},{id:"logs",label:"Logs",route:"/logs",icon:"article"},{id:"system",label:"System",route:"/system",icon:"settings"}],dG={users:{id:"users",label:"Users",route:"/users",icon:"people"}},pG=new Set(["/","/plugins","/logs","/system","/users","/entitlements","/auth","/rate-limits","/integrations"]),fG="1.0.0",fj=window.__APP_BASE_PATH__??"";Bt.setBaseUrl(fj);const hG=c.jsx(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,py:2},children:c.jsxs(Et,{variant:"caption",customColor:"var(--theme-text-secondary)",children:["Built with"," ",c.jsx(l7,{href:"https://qwickapps.com/products/qwickapps-server",target:"_blank",rel:"noopener noreferrer",sx:{color:"primary.main"},children:"QwickApps Server"})," ","v",fG]})});function mG(){const[t,e]=S.useState(dE),[r,n]=S.useState(new Set),[o,s]=S.useState([]),[u,d]=S.useState("Control Panel"),[p,h]=S.useState(),[m,b]=S.useState(!0);S.useEffect(()=>{(async()=>{try{const[C,T]=await Promise.allSettled([Bt.getInfo(),Bt.getUiContributions()]);if(C.status==="fulfilled"?(d(C.value.logoName),h(C.value.logoIconUrl)):console.warn("Failed to fetch product info:",C.reason),T.status==="fulfilled"){const{plugins:M,menuItems:E}=T.value,R=new Set(M.map(P=>P.id));n(R),s(E);const j=[...dE];for(const[P,z]of Object.entries(dG))R.has(P)&&j.push(z);const k=[...E].sort((P,z)=>(P.order??100)-(z.order??100));for(const P of k)j.some(z=>z.route===P.route)||j.push({id:P.id,label:P.label,route:P.route,icon:P.icon||"extension"});e(j)}else console.warn("Failed to fetch UI contributions:",T.reason)}finally{b(!1)}})()},[]);const y=p?c.jsx("img",{src:p,alt:u,style:{width:32,height:32,objectFit:"contain"}}):void 0,v=c.jsx(lW,{icon:y,name:u});return m?c.jsx(ne,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",bgcolor:"var(--theme-background, #1a1a2e)"}}):c.jsx(AR,{basename:fj||void 0,children:c.jsx(NW,{initialComponents:FW(),children:c.jsx(PW,{children:c.jsx(aW,{config:OW,logo:v,footerContent:hG,enableScaffolding:!0,navigationItems:t,showThemeSwitcher:!0,showPaletteSwitcher:!0,children:c.jsxs(TR,{children:[c.jsx(zi,{path:"/",element:c.jsx(GW,{})}),c.jsx(zi,{path:"/plugins",element:c.jsx(rG,{})}),c.jsx(zi,{path:"/logs",element:c.jsx(XW,{})}),c.jsx(zi,{path:"/system",element:c.jsx(ZW,{})}),r.has("users")&&c.jsx(zi,{path:"/users",element:c.jsx(nG,{})}),r.has("entitlements")&&c.jsx(zi,{path:"/entitlements",element:c.jsx(iG,{})}),r.has("auth")&&c.jsx(zi,{path:"/auth",element:c.jsx(aG,{})}),r.has("rate-limit")&&c.jsx(zi,{path:"/rate-limits",element:c.jsx(sG,{})}),r.has("ai-proxy")&&c.jsx(zi,{path:"/integrations",element:c.jsx(lG,{})}),o.filter(w=>!pG.has(w.route)).map(w=>c.jsx(zi,{path:w.route,element:c.jsx(cG,{pluginId:w.pluginId,title:w.label,route:w.route})},w.id)),c.jsx(zi,{path:"*",element:c.jsx(uG,{})})]})})})})})}OM.createRoot(document.getElementById("root")).render(c.jsx(Mt.StrictMode,{children:c.jsx(mG,{})}));
|
|
478
|
-
//# sourceMappingURL=index-D7DoZ9rL.js.map
|