@xframework-ca-test/cli 1.0.31 → 1.0.33
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/dist/customer-portal/android-chrome-192x192.png +0 -0
- package/dist/customer-portal/android-chrome-512x512.png +0 -0
- package/dist/customer-portal/apple-touch-icon.png +0 -0
- package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
- package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
- package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
- package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
- package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
- package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
- package/dist/customer-portal/assets/Card-8badb238.js +1 -0
- package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
- package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
- package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
- package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
- package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
- package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
- package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
- package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
- package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
- package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
- package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
- package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
- package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
- package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
- package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
- package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
- package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
- package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
- package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
- package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
- package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
- package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
- package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
- package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
- package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
- package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
- package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
- package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
- package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
- package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
- package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
- package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
- package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
- package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
- package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
- package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
- package/dist/customer-portal/assets/Views-7025458f.js +1 -0
- package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
- package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
- package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
- package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
- package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
- package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
- package/dist/customer-portal/assets/en-e8193568.js +1 -0
- package/dist/customer-portal/assets/es-74fe811a.js +1 -0
- package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
- package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
- package/dist/customer-portal/assets/index-108e74a4.js +1 -0
- package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
- package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
- package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
- package/dist/customer-portal/assets/index-51020fda.js +1 -0
- package/dist/customer-portal/assets/index-59b78927.js +1 -0
- package/dist/customer-portal/assets/index-5ee26094.js +1 -0
- package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
- package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
- package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
- package/dist/customer-portal/assets/index-7b067308.js +1 -0
- package/dist/customer-portal/assets/index-7fb11654.css +1 -0
- package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
- package/dist/customer-portal/assets/index-91a81028.js +1 -0
- package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
- package/dist/customer-portal/assets/index-a05b664a.js +9 -0
- package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
- package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
- package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
- package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
- package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
- package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
- package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
- package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
- package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
- package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
- package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
- package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
- package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
- package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
- package/dist/customer-portal/assets/react-27635538.js +27 -0
- package/dist/customer-portal/assets/react-35db633d.js +31 -0
- package/dist/customer-portal/assets/react-55737d69.js +44 -0
- package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
- package/dist/customer-portal/assets/react-72b07884.js +16 -0
- package/dist/customer-portal/assets/react-a5b37028.js +29 -0
- package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
- package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
- package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
- package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
- package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
- package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
- package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
- package/dist/customer-portal/assets/warning-eb037686.js +1 -0
- package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
- package/dist/customer-portal/browserconfig.xml +9 -0
- package/dist/customer-portal/config.js +12 -0
- package/dist/customer-portal/data/features.json +11423 -0
- package/dist/customer-portal/data/order-list.csv +15 -0
- package/dist/customer-portal/data/product-list.csv +13 -0
- package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
- package/dist/customer-portal/favicon-16x16.png +0 -0
- package/dist/customer-portal/favicon-32x32.png +0 -0
- package/dist/customer-portal/favicon.ico +0 -0
- package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
- package/dist/customer-portal/img/countries/ar.png +0 -0
- package/dist/customer-portal/img/countries/cn.png +0 -0
- package/dist/customer-portal/img/countries/fr.png +0 -0
- package/dist/customer-portal/img/countries/jp.png +0 -0
- package/dist/customer-portal/img/countries/sp.png +0 -0
- package/dist/customer-portal/img/countries/us.png +0 -0
- package/dist/customer-portal/img/email/email-logo.png +0 -0
- package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
- package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
- package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
- package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
- package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
- package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
- package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
- package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
- package/dist/customer-portal/img/logo/Group.png +0 -0
- package/dist/customer-portal/img/logo/aica.svg +16 -0
- package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo-grey.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo.svg +1 -0
- package/dist/customer-portal/img/map/pin-dark.png +0 -0
- package/dist/customer-portal/img/map/pin-orange.png +0 -0
- package/dist/customer-portal/img/map/pin-red.png +0 -0
- package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
- package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/others/img-1.jpg +0 -0
- package/dist/customer-portal/img/others/img-10.png +0 -0
- package/dist/customer-portal/img/others/img-11.jpg +0 -0
- package/dist/customer-portal/img/others/img-13.jpg +0 -0
- package/dist/customer-portal/img/others/img-14.jpg +0 -0
- package/dist/customer-portal/img/others/img-15.jpg +0 -0
- package/dist/customer-portal/img/others/img-16.jpg +0 -0
- package/dist/customer-portal/img/others/img-17.png +0 -0
- package/dist/customer-portal/img/others/img-2-dark.png +0 -0
- package/dist/customer-portal/img/others/img-2.png +0 -0
- package/dist/customer-portal/img/others/img-8.png +0 -0
- package/dist/customer-portal/img/others/img-9.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
- package/dist/customer-portal/img/others/no-notification.png +0 -0
- package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
- package/dist/customer-portal/img/others/pending-approval.png +0 -0
- package/dist/customer-portal/img/others/upload-dark.png +0 -0
- package/dist/customer-portal/img/others/upload.png +0 -0
- package/dist/customer-portal/img/others/welcome-dark.png +0 -0
- package/dist/customer-portal/img/others/welcome.png +0 -0
- package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-1.jpg +0 -0
- package/dist/customer-portal/img/products/product-10.jpg +0 -0
- package/dist/customer-portal/img/products/product-11.jpg +0 -0
- package/dist/customer-portal/img/products/product-12.jpg +0 -0
- package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-5.jpg +0 -0
- package/dist/customer-portal/img/products/product-6.jpg +0 -0
- package/dist/customer-portal/img/products/product-7.jpg +0 -0
- package/dist/customer-portal/img/products/product-8.jpg +0 -0
- package/dist/customer-portal/img/products/product-9.jpg +0 -0
- package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
- package/dist/customer-portal/img/theme/login_center.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
- package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
- package/dist/customer-portal/img/thumbs/cardano.png +0 -0
- package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
- package/dist/customer-portal/img/thumbs/doge.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
- package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
- package/dist/customer-portal/img/thumbs/eos.png +0 -0
- package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
- package/dist/customer-portal/img/thumbs/figma.png +0 -0
- package/dist/customer-portal/img/thumbs/github.png +0 -0
- package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
- package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
- package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
- package/dist/customer-portal/img/thumbs/jira.png +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
- package/dist/customer-portal/img/thumbs/miota.png +0 -0
- package/dist/customer-portal/img/thumbs/monero.png +0 -0
- package/dist/customer-portal/img/thumbs/notion.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
- package/dist/customer-portal/img/thumbs/passport.png +0 -0
- package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
- package/dist/customer-portal/img/thumbs/polygon.png +0 -0
- package/dist/customer-portal/img/thumbs/ripple.png +0 -0
- package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
- package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
- package/dist/customer-portal/img/thumbs/sketch.png +0 -0
- package/dist/customer-portal/img/thumbs/slack.png +0 -0
- package/dist/customer-portal/img/thumbs/solana.png +0 -0
- package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
- package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
- package/dist/customer-portal/img/thumbs/tron.png +0 -0
- package/dist/customer-portal/img/thumbs/zapier.png +0 -0
- package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
- package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
- package/dist/customer-portal/index.html +31 -0
- package/dist/customer-portal/logo192.png +0 -0
- package/dist/customer-portal/logo512.png +0 -0
- package/dist/customer-portal/manifest.json +20 -0
- package/dist/customer-portal/mstile-150x150.png +0 -0
- package/dist/customer-portal/robots.txt +3 -0
- package/dist/customer-portal/safari-pinned-tab.svg +70 -0
- package/dist/customer-portal/web.config +27 -0
- package/index.bundle.js +71 -37
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
var nD=Object.defineProperty;var aD=(t,e,r)=>e in t?nD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Rr=(t,e,r)=>(aD(t,typeof e!="symbol"?e+"":e,r),r);function oD(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in t)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ti(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function sD(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 a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var pO={exports:{}},Zd={},hO={exports:{}},Pe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Ql=Symbol.for("react.element"),iD=Symbol.for("react.portal"),lD=Symbol.for("react.fragment"),cD=Symbol.for("react.strict_mode"),uD=Symbol.for("react.profiler"),dD=Symbol.for("react.provider"),pD=Symbol.for("react.context"),hD=Symbol.for("react.forward_ref"),fD=Symbol.for("react.suspense"),mD=Symbol.for("react.memo"),yD=Symbol.for("react.lazy"),k1=Symbol.iterator;function vD(t){return t===null||typeof t!="object"?null:(t=k1&&t[k1]||t["@@iterator"],typeof t=="function"?t:null)}var fO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mO=Object.assign,yO={};function ri(t,e,r){this.props=t,this.context=e,this.refs=yO,this.updater=r||fO}ri.prototype.isReactComponent={};ri.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ri.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function vO(){}vO.prototype=ri.prototype;function xy(t,e,r){this.props=t,this.context=e,this.refs=yO,this.updater=r||fO}var Sy=xy.prototype=new vO;Sy.constructor=xy;mO(Sy,ri.prototype);Sy.isPureReactComponent=!0;var _1=Array.isArray,gO=Object.prototype.hasOwnProperty,Py={current:null},CO={key:!0,ref:!0,__self:!0,__source:!0};function xO(t,e,r){var n,a={},o=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(o=""+e.key),e)gO.call(e,n)&&!CO.hasOwnProperty(n)&&(a[n]=e[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var l=Array(i),c=0;c<i;c++)l[c]=arguments[c+2];a.children=l}if(t&&t.defaultProps)for(n in i=t.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return{$$typeof:Ql,type:t,key:o,ref:s,props:a,_owner:Py.current}}function gD(t,e){return{$$typeof:Ql,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ay(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ql}function CD(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var U1=/\/+/g;function Ih(t,e){return typeof t=="object"&&t!==null&&t.key!=null?CD(""+t.key):e.toString(36)}function su(t,e,r,n,a){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Ql:case iD:s=!0}}if(s)return s=t,a=a(s),t=n===""?"."+Ih(s,0):n,_1(a)?(r="",t!=null&&(r=t.replace(U1,"$&/")+"/"),su(a,e,r,"",function(c){return c})):a!=null&&(Ay(a)&&(a=gD(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(U1,"$&/")+"/")+t)),e.push(a)),1;if(s=0,n=n===""?".":n+":",_1(t))for(var i=0;i<t.length;i++){o=t[i];var l=n+Ih(o,i);s+=su(o,e,r,l,a)}else if(l=vD(t),typeof l=="function")for(t=l.call(t),i=0;!(o=t.next()).done;)o=o.value,l=n+Ih(o,i++),s+=su(o,e,r,l,a);else if(o==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function gc(t,e,r){if(t==null)return t;var n=[],a=0;return su(t,n,"","",function(o){return e.call(r,o,a++)}),n}function xD(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var nr={current:null},iu={transition:null},SD={ReactCurrentDispatcher:nr,ReactCurrentBatchConfig:iu,ReactCurrentOwner:Py};function SO(){throw Error("act(...) is not supported in production builds of React.")}Pe.Children={map:gc,forEach:function(t,e,r){gc(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return gc(t,function(){e++}),e},toArray:function(t){return gc(t,function(e){return e})||[]},only:function(t){if(!Ay(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Pe.Component=ri;Pe.Fragment=lD;Pe.Profiler=uD;Pe.PureComponent=xy;Pe.StrictMode=cD;Pe.Suspense=fD;Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SD;Pe.act=SO;Pe.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=mO({},t.props),a=t.key,o=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,s=Py.current),e.key!==void 0&&(a=""+e.key),t.type&&t.type.defaultProps)var i=t.type.defaultProps;for(l in e)gO.call(e,l)&&!CO.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&i!==void 0?i[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){i=Array(l);for(var c=0;c<l;c++)i[c]=arguments[c+2];n.children=i}return{$$typeof:Ql,type:t.type,key:a,ref:o,props:n,_owner:s}};Pe.createContext=function(t){return t={$$typeof:pD,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:dD,_context:t},t.Consumer=t};Pe.createElement=xO;Pe.createFactory=function(t){var e=xO.bind(null,t);return e.type=t,e};Pe.createRef=function(){return{current:null}};Pe.forwardRef=function(t){return{$$typeof:hD,render:t}};Pe.isValidElement=Ay;Pe.lazy=function(t){return{$$typeof:yD,_payload:{_status:-1,_result:t},_init:xD}};Pe.memo=function(t,e){return{$$typeof:mD,type:t,compare:e===void 0?null:e}};Pe.startTransition=function(t){var e=iu.transition;iu.transition={};try{t()}finally{iu.transition=e}};Pe.unstable_act=SO;Pe.useCallback=function(t,e){return nr.current.useCallback(t,e)};Pe.useContext=function(t){return nr.current.useContext(t)};Pe.useDebugValue=function(){};Pe.useDeferredValue=function(t){return nr.current.useDeferredValue(t)};Pe.useEffect=function(t,e){return nr.current.useEffect(t,e)};Pe.useId=function(){return nr.current.useId()};Pe.useImperativeHandle=function(t,e,r){return nr.current.useImperativeHandle(t,e,r)};Pe.useInsertionEffect=function(t,e){return nr.current.useInsertionEffect(t,e)};Pe.useLayoutEffect=function(t,e){return nr.current.useLayoutEffect(t,e)};Pe.useMemo=function(t,e){return nr.current.useMemo(t,e)};Pe.useReducer=function(t,e,r){return nr.current.useReducer(t,e,r)};Pe.useRef=function(t){return nr.current.useRef(t)};Pe.useState=function(t){return nr.current.useState(t)};Pe.useSyncExternalStore=function(t,e,r){return nr.current.useSyncExternalStore(t,e,r)};Pe.useTransition=function(){return nr.current.useTransition()};Pe.version="18.3.1";hO.exports=Pe;var B=hO.exports;const Nr=ti(B),Af=oD({__proto__:null,default:Nr},[B]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 PD=B,AD=Symbol.for("react.element"),OD=Symbol.for("react.fragment"),VD=Object.prototype.hasOwnProperty,ID=PD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wD={key:!0,ref:!0,__self:!0,__source:!0};function PO(t,e,r){var n,a={},o=null,s=null;r!==void 0&&(o=""+r),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)VD.call(e,n)&&!wD.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)a[n]===void 0&&(a[n]=e[n]);return{$$typeof:AD,type:t,key:o,ref:s,props:a,_owner:ID.current}}Zd.Fragment=OD;Zd.jsx=PO;Zd.jsxs=PO;pO.exports=Zd;var ie=pO.exports,Of={},AO={exports:{}},wr={},OO={exports:{}},VO={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(t){function e(F,Y){var Q=F.length;F.push(Y);e:for(;0<Q;){var M=Q-1>>>1,z=F[M];if(0<a(z,Y))F[M]=Y,F[Q]=z,Q=M;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var Y=F[0],Q=F.pop();if(Q!==Y){F[0]=Q;e:for(var M=0,z=F.length,W=z>>>1;M<W;){var q=2*(M+1)-1,ae=F[q],oe=q+1,pe=F[oe];if(0>a(ae,Q))oe<z&&0>a(pe,ae)?(F[M]=pe,F[oe]=Q,M=oe):(F[M]=ae,F[q]=Q,M=q);else if(oe<z&&0>a(pe,Q))F[M]=pe,F[oe]=Q,M=oe;else break e}}return Y}function a(F,Y){var Q=F.sortIndex-Y.sortIndex;return Q!==0?Q:F.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,i=s.now();t.unstable_now=function(){return s.now()-i}}var l=[],c=[],u=1,d=null,p=3,h=!1,f=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(F){for(var Y=r(c);Y!==null;){if(Y.callback===null)n(c);else if(Y.startTime<=F)n(c),Y.sortIndex=Y.expirationTime,e(l,Y);else break;Y=r(c)}}function x(F){if(y=!1,C(F),!f)if(r(l)!==null)f=!0,$(S);else{var Y=r(c);Y!==null&&X(x,Y.startTime-F)}}function S(F,Y){f=!1,y&&(y=!1,g(V),V=-1),h=!0;var Q=p;try{for(C(Y),d=r(l);d!==null&&(!(d.expirationTime>Y)||F&&!I());){var M=d.callback;if(typeof M=="function"){d.callback=null,p=d.priorityLevel;var z=M(d.expirationTime<=Y);Y=t.unstable_now(),typeof z=="function"?d.callback=z:d===r(l)&&n(l),C(Y)}else n(l);d=r(l)}if(d!==null)var W=!0;else{var q=r(c);q!==null&&X(x,q.startTime-Y),W=!1}return W}finally{d=null,p=Q,h=!1}}var P=!1,A=null,V=-1,U=5,O=-1;function I(){return!(t.unstable_now()-O<U)}function L(){if(A!==null){var F=t.unstable_now();O=F;var Y=!0;try{Y=A(!0,F)}finally{Y?N():(P=!1,A=null)}}else P=!1}var N;if(typeof m=="function")N=function(){m(L)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,H=G.port2;G.port1.onmessage=L,N=function(){H.postMessage(null)}}else N=function(){v(L,0)};function $(F){A=F,P||(P=!0,N())}function X(F,Y){V=v(function(){F(t.unstable_now())},Y)}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(F){F.callback=null},t.unstable_continueExecution=function(){f||h||(f=!0,$(S))},t.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<F?Math.floor(1e3/F):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(F){switch(p){case 1:case 2:case 3:var Y=3;break;default:Y=p}var Q=p;p=Y;try{return F()}finally{p=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(F,Y){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var Q=p;p=F;try{return Y()}finally{p=Q}},t.unstable_scheduleCallback=function(F,Y,Q){var M=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?M+Q:M):Q=M,F){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=Q+z,F={id:u++,callback:Y,priorityLevel:F,startTime:Q,expirationTime:z,sortIndex:-1},Q>M?(F.sortIndex=Q,e(c,F),r(l)===null&&F===r(c)&&(y?(g(V),V=-1):y=!0,X(x,Q-M))):(F.sortIndex=z,e(l,F),f||h||(f=!0,$(S))),F},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(F){var Y=p;return function(){var Q=p;p=Y;try{return F.apply(this,arguments)}finally{p=Q}}}})(VO);OO.exports=VO;var bD=OO.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 TD=B,Or=bD;function re(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var IO=new Set,ml={};function Uo(t,e){_s(t,e),_s(t+"Capture",e)}function _s(t,e){for(ml[t]=e,t=0;t<e.length;t++)IO.add(e[t])}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vf=Object.prototype.hasOwnProperty,ED=/^[: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]*$/,B1={},M1={};function RD(t){return Vf.call(M1,t)?!0:Vf.call(B1,t)?!1:ED.test(t)?M1[t]=!0:(B1[t]=!0,!1)}function DD(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function kD(t,e,r,n){if(e===null||typeof e>"u"||DD(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ar(t,e,r,n,a,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var Ft={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ft[t]=new ar(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ft[e]=new ar(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ft[t]=new ar(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ft[t]=new ar(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ft[t]=new ar(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ft[t]=new ar(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ft[t]=new ar(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ft[t]=new ar(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ft[t]=new ar(t,5,!1,t.toLowerCase(),null,!1,!1)});var Oy=/[\-:]([a-z])/g;function Vy(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Oy,Vy);Ft[e]=new ar(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Oy,Vy);Ft[e]=new ar(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Oy,Vy);Ft[e]=new ar(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ft[t]=new ar(t,1,!1,t.toLowerCase(),null,!1,!1)});Ft.xlinkHref=new ar("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ft[t]=new ar(t,1,!1,t.toLowerCase(),null,!0,!0)});function Iy(t,e,r,n){var a=Ft.hasOwnProperty(e)?Ft[e]:null;(a!==null?a.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(kD(e,r,a,n)&&(r=null),n||a===null?RD(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):a.mustUseProperty?t[a.propertyName]=r===null?a.type===3?!1:"":r:(e=a.attributeName,n=a.attributeNamespace,r===null?t.removeAttribute(e):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var ua=TD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Cc=Symbol.for("react.element"),as=Symbol.for("react.portal"),os=Symbol.for("react.fragment"),wy=Symbol.for("react.strict_mode"),If=Symbol.for("react.profiler"),wO=Symbol.for("react.provider"),bO=Symbol.for("react.context"),by=Symbol.for("react.forward_ref"),wf=Symbol.for("react.suspense"),bf=Symbol.for("react.suspense_list"),Ty=Symbol.for("react.memo"),xa=Symbol.for("react.lazy"),TO=Symbol.for("react.offscreen"),F1=Symbol.iterator;function gi(t){return t===null||typeof t!="object"?null:(t=F1&&t[F1]||t["@@iterator"],typeof t=="function"?t:null)}var nt=Object.assign,wh;function Fi(t){if(wh===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);wh=e&&e[1]||""}return`
|
|
34
|
+
`+wh+t}var bh=!1;function Th(t,e){if(!t||bh)return"";bh=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var n=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){n=c}t.call(e.prototype)}else{try{throw Error()}catch(c){n=c}t()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var a=c.stack.split(`
|
|
35
|
+
`),o=n.stack.split(`
|
|
36
|
+
`),s=a.length-1,i=o.length-1;1<=s&&0<=i&&a[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(a[s]!==o[i]){if(s!==1||i!==1)do if(s--,i--,0>i||a[s]!==o[i]){var l=`
|
|
37
|
+
`+a[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=i);break}}}finally{bh=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Fi(t):""}function _D(t){switch(t.tag){case 5:return Fi(t.type);case 16:return Fi("Lazy");case 13:return Fi("Suspense");case 19:return Fi("SuspenseList");case 0:case 2:case 15:return t=Th(t.type,!1),t;case 11:return t=Th(t.type.render,!1),t;case 1:return t=Th(t.type,!0),t;default:return""}}function Tf(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case os:return"Fragment";case as:return"Portal";case If:return"Profiler";case wy:return"StrictMode";case wf:return"Suspense";case bf:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case bO:return(t.displayName||"Context")+".Consumer";case wO:return(t._context.displayName||"Context")+".Provider";case by:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ty:return e=t.displayName||null,e!==null?e:Tf(t.type)||"Memo";case xa:e=t._payload,t=t._init;try{return Tf(t(e))}catch{}}return null}function UD(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tf(e);case 8:return e===wy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function za(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function EO(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function BD(t){var e=EO(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function xc(t){t._valueTracker||(t._valueTracker=BD(t))}function RO(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=EO(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Gu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ef(t,e){var r=e.checked;return nt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function L1(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=za(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function DO(t,e){e=e.checked,e!=null&&Iy(t,"checked",e,!1)}function Rf(t,e){DO(t,e);var r=za(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Df(t,e.type,r):e.hasOwnProperty("defaultValue")&&Df(t,e.type,za(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function N1(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Df(t,e,r){(e!=="number"||Gu(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Li=Array.isArray;function As(t,e,r,n){if(t=t.options,e){e={};for(var a=0;a<r.length;a++)e["$"+r[a]]=!0;for(r=0;r<t.length;r++)a=e.hasOwnProperty("$"+t[r].value),t[r].selected!==a&&(t[r].selected=a),a&&n&&(t[r].defaultSelected=!0)}else{for(r=""+za(r),e=null,a=0;a<t.length;a++){if(t[a].value===r){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function kf(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(re(91));return nt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function G1(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(re(92));if(Li(r)){if(1<r.length)throw Error(re(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:za(r)}}function kO(t,e){var r=za(e.value),n=za(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function H1(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function _O(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _f(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?_O(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Sc,UO=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,a){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,a)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Sc=Sc||document.createElement("div"),Sc.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Sc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function yl(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Wi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},MD=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(t){MD.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wi[e]=Wi[t]})});function BO(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Wi.hasOwnProperty(t)&&Wi[t]?(""+e).trim():e+"px"}function MO(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=BO(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,a):t[r]=a}}var FD=nt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Uf(t,e){if(e){if(FD[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(re(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(re(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(re(61))}if(e.style!=null&&typeof e.style!="object")throw Error(re(62))}}function Bf(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Mf=null;function Ey(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ff=null,Os=null,Vs=null;function j1(t){if(t=Yl(t)){if(typeof Ff!="function")throw Error(re(280));var e=t.stateNode;e&&(e=ap(e),Ff(t.stateNode,t.type,e))}}function FO(t){Os?Vs?Vs.push(t):Vs=[t]:Os=t}function LO(){if(Os){var t=Os,e=Vs;if(Vs=Os=null,j1(t),e)for(t=0;t<e.length;t++)j1(e[t])}}function NO(t,e){return t(e)}function GO(){}var Eh=!1;function HO(t,e,r){if(Eh)return t(e,r);Eh=!0;try{return NO(t,e,r)}finally{Eh=!1,(Os!==null||Vs!==null)&&(GO(),LO())}}function vl(t,e){var r=t.stateNode;if(r===null)return null;var n=ap(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(re(231,e,typeof r));return r}var Lf=!1;if(na)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){Lf=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{Lf=!1}function LD(t,e,r,n,a,o,s,i,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(u){this.onError(u)}}var Yi=!1,Hu=null,ju=!1,Nf=null,ND={onError:function(t){Yi=!0,Hu=t}};function GD(t,e,r,n,a,o,s,i,l){Yi=!1,Hu=null,LD.apply(ND,arguments)}function HD(t,e,r,n,a,o,s,i,l){if(GD.apply(this,arguments),Yi){if(Yi){var c=Hu;Yi=!1,Hu=null}else throw Error(re(198));ju||(ju=!0,Nf=c)}}function Bo(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function jO(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function $1(t){if(Bo(t)!==t)throw Error(re(188))}function jD(t){var e=t.alternate;if(!e){if(e=Bo(t),e===null)throw Error(re(188));return e!==t?null:t}for(var r=t,n=e;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return $1(a),t;if(o===n)return $1(a),e;o=o.sibling}throw Error(re(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,i=a.child;i;){if(i===r){s=!0,r=a,n=o;break}if(i===n){s=!0,n=a,r=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===r){s=!0,r=o,n=a;break}if(i===n){s=!0,n=o,r=a;break}i=i.sibling}if(!s)throw Error(re(189))}}if(r.alternate!==n)throw Error(re(190))}if(r.tag!==3)throw Error(re(188));return r.stateNode.current===r?t:e}function $O(t){return t=jD(t),t!==null?zO(t):null}function zO(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=zO(t);if(e!==null)return e;t=t.sibling}return null}var qO=Or.unstable_scheduleCallback,z1=Or.unstable_cancelCallback,$D=Or.unstable_shouldYield,zD=Or.unstable_requestPaint,st=Or.unstable_now,qD=Or.unstable_getCurrentPriorityLevel,Ry=Or.unstable_ImmediatePriority,QO=Or.unstable_UserBlockingPriority,$u=Or.unstable_NormalPriority,QD=Or.unstable_LowPriority,KO=Or.unstable_IdlePriority,ep=null,On=null;function KD(t){if(On&&typeof On.onCommitFiberRoot=="function")try{On.onCommitFiberRoot(ep,t,void 0,(t.current.flags&128)===128)}catch{}}var tn=Math.clz32?Math.clz32:JD,WD=Math.log,YD=Math.LN2;function JD(t){return t>>>=0,t===0?32:31-(WD(t)/YD|0)|0}var Pc=64,Ac=4194304;function Ni(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function zu(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,a=t.suspendedLanes,o=t.pingedLanes,s=r&268435455;if(s!==0){var i=s&~a;i!==0?n=Ni(i):(o&=s,o!==0&&(n=Ni(o)))}else s=r&~a,s!==0?n=Ni(s):o!==0&&(n=Ni(o));if(n===0)return 0;if(e!==0&&e!==n&&!(e&a)&&(a=n&-n,o=e&-e,a>=o||a===16&&(o&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-tn(e),a=1<<r,n|=t[r],e&=~a;return n}function XD(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8: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 e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ZD(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,o=t.pendingLanes;0<o;){var s=31-tn(o),i=1<<s,l=a[s];l===-1?(!(i&r)||i&n)&&(a[s]=XD(i,e)):l<=e&&(t.expiredLanes|=i),o&=~i}}function Gf(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function WO(){var t=Pc;return Pc<<=1,!(Pc&4194240)&&(Pc=64),t}function Rh(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Kl(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-tn(e),t[e]=r}function ek(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var a=31-tn(r),o=1<<a;e[a]=0,n[a]=-1,t[a]=-1,r&=~o}}function Dy(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-tn(r),a=1<<n;a&e|t[n]&e&&(t[n]|=e),r&=~a}}var ke=0;function YO(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var JO,ky,XO,ZO,eV,Hf=!1,Oc=[],Ta=null,Ea=null,Ra=null,gl=new Map,Cl=new Map,Aa=[],tk="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 submit".split(" ");function q1(t,e){switch(t){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Ea=null;break;case"mouseover":case"mouseout":Ra=null;break;case"pointerover":case"pointerout":gl.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(e.pointerId)}}function xi(t,e,r,n,a,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},e!==null&&(e=Yl(e),e!==null&&ky(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function rk(t,e,r,n,a){switch(e){case"focusin":return Ta=xi(Ta,t,e,r,n,a),!0;case"dragenter":return Ea=xi(Ea,t,e,r,n,a),!0;case"mouseover":return Ra=xi(Ra,t,e,r,n,a),!0;case"pointerover":var o=a.pointerId;return gl.set(o,xi(gl.get(o)||null,t,e,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Cl.set(o,xi(Cl.get(o)||null,t,e,r,n,a)),!0}return!1}function tV(t){var e=yo(t.target);if(e!==null){var r=Bo(e);if(r!==null){if(e=r.tag,e===13){if(e=jO(r),e!==null){t.blockedOn=e,eV(t.priority,function(){XO(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function lu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=jf(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Mf=n,r.target.dispatchEvent(n),Mf=null}else return e=Yl(r),e!==null&&ky(e),t.blockedOn=r,!1;e.shift()}return!0}function Q1(t,e,r){lu(t)&&r.delete(e)}function nk(){Hf=!1,Ta!==null&&lu(Ta)&&(Ta=null),Ea!==null&&lu(Ea)&&(Ea=null),Ra!==null&&lu(Ra)&&(Ra=null),gl.forEach(Q1),Cl.forEach(Q1)}function Si(t,e){t.blockedOn===e&&(t.blockedOn=null,Hf||(Hf=!0,Or.unstable_scheduleCallback(Or.unstable_NormalPriority,nk)))}function xl(t){function e(a){return Si(a,t)}if(0<Oc.length){Si(Oc[0],t);for(var r=1;r<Oc.length;r++){var n=Oc[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Ta!==null&&Si(Ta,t),Ea!==null&&Si(Ea,t),Ra!==null&&Si(Ra,t),gl.forEach(e),Cl.forEach(e),r=0;r<Aa.length;r++)n=Aa[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Aa.length&&(r=Aa[0],r.blockedOn===null);)tV(r),r.blockedOn===null&&Aa.shift()}var Is=ua.ReactCurrentBatchConfig,qu=!0;function ak(t,e,r,n){var a=ke,o=Is.transition;Is.transition=null;try{ke=1,_y(t,e,r,n)}finally{ke=a,Is.transition=o}}function ok(t,e,r,n){var a=ke,o=Is.transition;Is.transition=null;try{ke=4,_y(t,e,r,n)}finally{ke=a,Is.transition=o}}function _y(t,e,r,n){if(qu){var a=jf(t,e,r,n);if(a===null)Gh(t,e,n,Qu,r),q1(t,n);else if(rk(a,t,e,r,n))n.stopPropagation();else if(q1(t,n),e&4&&-1<tk.indexOf(t)){for(;a!==null;){var o=Yl(a);if(o!==null&&JO(o),o=jf(t,e,r,n),o===null&&Gh(t,e,n,Qu,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else Gh(t,e,n,null,r)}}var Qu=null;function jf(t,e,r,n){if(Qu=null,t=Ey(n),t=yo(t),t!==null)if(e=Bo(t),e===null)t=null;else if(r=e.tag,r===13){if(t=jO(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Qu=t,null}function rV(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qD()){case Ry:return 1;case QO:return 4;case $u:case QD:return 16;case KO:return 536870912;default:return 16}default:return 16}}var Ia=null,Uy=null,cu=null;function nV(){if(cu)return cu;var t,e=Uy,r=e.length,n,a="value"in Ia?Ia.value:Ia.textContent,o=a.length;for(t=0;t<r&&e[t]===a[t];t++);var s=r-t;for(n=1;n<=s&&e[r-n]===a[o-n];n++);return cu=a.slice(t,1<n?1-n:void 0)}function uu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Vc(){return!0}function K1(){return!1}function br(t){function e(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in t)t.hasOwnProperty(i)&&(r=t[i],this[i]=r?r(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vc:K1,this.isPropagationStopped=K1,this}return nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Vc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vc)},persist:function(){},isPersistent:Vc}),e}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},By=br(ni),Wl=nt({},ni,{view:0,detail:0}),sk=br(Wl),Dh,kh,Pi,tp=nt({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:My,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Pi&&(Pi&&t.type==="mousemove"?(Dh=t.screenX-Pi.screenX,kh=t.screenY-Pi.screenY):kh=Dh=0,Pi=t),Dh)},movementY:function(t){return"movementY"in t?t.movementY:kh}}),W1=br(tp),ik=nt({},tp,{dataTransfer:0}),lk=br(ik),ck=nt({},Wl,{relatedTarget:0}),_h=br(ck),uk=nt({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),dk=br(uk),pk=nt({},ni,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),hk=br(pk),fk=nt({},ni,{data:0}),Y1=br(fk),mk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yk={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"},vk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gk(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=vk[t])?!!e[t]:!1}function My(){return gk}var Ck=nt({},Wl,{key:function(t){if(t.key){var e=mk[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=uu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?yk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:My,charCode:function(t){return t.type==="keypress"?uu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?uu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xk=br(Ck),Sk=nt({},tp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J1=br(Sk),Pk=nt({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:My}),Ak=br(Pk),Ok=nt({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vk=br(Ok),Ik=nt({},tp,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),wk=br(Ik),bk=[9,13,27,32],Fy=na&&"CompositionEvent"in window,Ji=null;na&&"documentMode"in document&&(Ji=document.documentMode);var Tk=na&&"TextEvent"in window&&!Ji,aV=na&&(!Fy||Ji&&8<Ji&&11>=Ji),X1=String.fromCharCode(32),Z1=!1;function oV(t,e){switch(t){case"keyup":return bk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sV(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ss=!1;function Ek(t,e){switch(t){case"compositionend":return sV(e);case"keypress":return e.which!==32?null:(Z1=!0,X1);case"textInput":return t=e.data,t===X1&&Z1?null:t;default:return null}}function Rk(t,e){if(ss)return t==="compositionend"||!Fy&&oV(t,e)?(t=nV(),cu=Uy=Ia=null,ss=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return aV&&e.locale!=="ko"?null:e.data;default:return null}}var Dk={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 eC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Dk[t.type]:e==="textarea"}function iV(t,e,r,n){FO(n),e=Ku(e,"onChange"),0<e.length&&(r=new By("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Xi=null,Sl=null;function kk(t){gV(t,0)}function rp(t){var e=cs(t);if(RO(e))return t}function _k(t,e){if(t==="change")return e}var lV=!1;if(na){var Uh;if(na){var Bh="oninput"in document;if(!Bh){var tC=document.createElement("div");tC.setAttribute("oninput","return;"),Bh=typeof tC.oninput=="function"}Uh=Bh}else Uh=!1;lV=Uh&&(!document.documentMode||9<document.documentMode)}function rC(){Xi&&(Xi.detachEvent("onpropertychange",cV),Sl=Xi=null)}function cV(t){if(t.propertyName==="value"&&rp(Sl)){var e=[];iV(e,Sl,t,Ey(t)),HO(kk,e)}}function Uk(t,e,r){t==="focusin"?(rC(),Xi=e,Sl=r,Xi.attachEvent("onpropertychange",cV)):t==="focusout"&&rC()}function Bk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return rp(Sl)}function Mk(t,e){if(t==="click")return rp(e)}function Fk(t,e){if(t==="input"||t==="change")return rp(e)}function Lk(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var sn=typeof Object.is=="function"?Object.is:Lk;function Pl(t,e){if(sn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!Vf.call(e,a)||!sn(t[a],e[a]))return!1}return!0}function nC(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function aC(t,e){var r=nC(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nC(r)}}function uV(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?uV(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function dV(){for(var t=window,e=Gu();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Gu(t.document)}return e}function Ly(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Nk(t){var e=dV(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&uV(r.ownerDocument.documentElement,r)){if(n!==null&&Ly(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!t.extend&&o>n&&(a=n,n=o,o=a),a=aC(r,o);var s=aC(r,n);a&&s&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),o>n?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Gk=na&&"documentMode"in document&&11>=document.documentMode,is=null,$f=null,Zi=null,zf=!1;function oC(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;zf||is==null||is!==Gu(n)||(n=is,"selectionStart"in n&&Ly(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Zi&&Pl(Zi,n)||(Zi=n,n=Ku($f,"onSelect"),0<n.length&&(e=new By("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=is)))}function Ic(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var ls={animationend:Ic("Animation","AnimationEnd"),animationiteration:Ic("Animation","AnimationIteration"),animationstart:Ic("Animation","AnimationStart"),transitionend:Ic("Transition","TransitionEnd")},Mh={},pV={};na&&(pV=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function np(t){if(Mh[t])return Mh[t];if(!ls[t])return t;var e=ls[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in pV)return Mh[t]=e[r];return t}var hV=np("animationend"),fV=np("animationiteration"),mV=np("animationstart"),yV=np("transitionend"),vV=new Map,sC="abort auxClick 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 toggle touchMove waiting wheel".split(" ");function eo(t,e){vV.set(t,e),Uo(e,[t])}for(var Fh=0;Fh<sC.length;Fh++){var Lh=sC[Fh],Hk=Lh.toLowerCase(),jk=Lh[0].toUpperCase()+Lh.slice(1);eo(Hk,"on"+jk)}eo(hV,"onAnimationEnd");eo(fV,"onAnimationIteration");eo(mV,"onAnimationStart");eo("dblclick","onDoubleClick");eo("focusin","onFocus");eo("focusout","onBlur");eo(yV,"onTransitionEnd");_s("onMouseEnter",["mouseout","mouseover"]);_s("onMouseLeave",["mouseout","mouseover"]);_s("onPointerEnter",["pointerout","pointerover"]);_s("onPointerLeave",["pointerout","pointerover"]);Uo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Uo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Uo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Uo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Uo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gi="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(" "),$k=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gi));function iC(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,HD(n,e,void 0,t),t.currentTarget=null}function gV(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],a=n.event;n=n.listeners;e:{var o=void 0;if(e)for(var s=n.length-1;0<=s;s--){var i=n[s],l=i.instance,c=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;iC(a,i,c),o=l}else for(s=0;s<n.length;s++){if(i=n[s],l=i.instance,c=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;iC(a,i,c),o=l}}}if(ju)throw t=Nf,ju=!1,Nf=null,t}function je(t,e){var r=e[Yf];r===void 0&&(r=e[Yf]=new Set);var n=t+"__bubble";r.has(n)||(CV(e,t,2,!1),r.add(n))}function Nh(t,e,r){var n=0;e&&(n|=4),CV(r,t,n,e)}var wc="_reactListening"+Math.random().toString(36).slice(2);function Al(t){if(!t[wc]){t[wc]=!0,IO.forEach(function(r){r!=="selectionchange"&&($k.has(r)||Nh(r,!1,t),Nh(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[wc]||(e[wc]=!0,Nh("selectionchange",!1,e))}}function CV(t,e,r,n){switch(rV(e)){case 1:var a=ak;break;case 4:a=ok;break;default:a=_y}r=a.bind(null,e,r,t),a=void 0,!Lf||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,r,{capture:!0,passive:a}):t.addEventListener(e,r,!0):a!==void 0?t.addEventListener(e,r,{passive:a}):t.addEventListener(e,r,!1)}function Gh(t,e,r,n,a){var o=n;if(!(e&1)&&!(e&2)&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var i=n.stateNode.containerInfo;if(i===a||i.nodeType===8&&i.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===a||l.nodeType===8&&l.parentNode===a))return;s=s.return}for(;i!==null;){if(s=yo(i),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}i=i.parentNode}}n=n.return}HO(function(){var c=o,u=Ey(r),d=[];e:{var p=vV.get(t);if(p!==void 0){var h=By,f=t;switch(t){case"keypress":if(uu(r)===0)break e;case"keydown":case"keyup":h=xk;break;case"focusin":f="focus",h=_h;break;case"focusout":f="blur",h=_h;break;case"beforeblur":case"afterblur":h=_h;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=W1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=lk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Ak;break;case hV:case fV:case mV:h=dk;break;case yV:h=Vk;break;case"scroll":h=sk;break;case"wheel":h=wk;break;case"copy":case"cut":case"paste":h=hk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=J1}var y=(e&4)!==0,v=!y&&t==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var m=c,C;m!==null;){C=m;var x=C.stateNode;if(C.tag===5&&x!==null&&(C=x,g!==null&&(x=vl(m,g),x!=null&&y.push(Ol(m,x,C)))),v)break;m=m.return}0<y.length&&(p=new h(p,f,null,r,u),d.push({event:p,listeners:y}))}}if(!(e&7)){e:{if(p=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",p&&r!==Mf&&(f=r.relatedTarget||r.fromElement)&&(yo(f)||f[aa]))break e;if((h||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,h?(f=r.relatedTarget||r.toElement,h=c,f=f?yo(f):null,f!==null&&(v=Bo(f),f!==v||f.tag!==5&&f.tag!==6)&&(f=null)):(h=null,f=c),h!==f)){if(y=W1,x="onMouseLeave",g="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(y=J1,x="onPointerLeave",g="onPointerEnter",m="pointer"),v=h==null?p:cs(h),C=f==null?p:cs(f),p=new y(x,m+"leave",h,r,u),p.target=v,p.relatedTarget=C,x=null,yo(u)===c&&(y=new y(g,m+"enter",f,r,u),y.target=C,y.relatedTarget=v,x=y),v=x,h&&f)t:{for(y=h,g=f,m=0,C=y;C;C=Qo(C))m++;for(C=0,x=g;x;x=Qo(x))C++;for(;0<m-C;)y=Qo(y),m--;for(;0<C-m;)g=Qo(g),C--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=Qo(y),g=Qo(g)}y=null}else y=null;h!==null&&lC(d,p,h,y,!1),f!==null&&v!==null&&lC(d,v,f,y,!0)}}e:{if(p=c?cs(c):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var S=_k;else if(eC(p))if(lV)S=Fk;else{S=Bk;var P=Uk}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=Mk);if(S&&(S=S(t,c))){iV(d,S,r,u);break e}P&&P(t,p,c),t==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&Df(p,"number",p.value)}switch(P=c?cs(c):window,t){case"focusin":(eC(P)||P.contentEditable==="true")&&(is=P,$f=c,Zi=null);break;case"focusout":Zi=$f=is=null;break;case"mousedown":zf=!0;break;case"contextmenu":case"mouseup":case"dragend":zf=!1,oC(d,r,u);break;case"selectionchange":if(Gk)break;case"keydown":case"keyup":oC(d,r,u)}var A;if(Fy)e:{switch(t){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else ss?oV(t,r)&&(V="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(V="onCompositionStart");V&&(aV&&r.locale!=="ko"&&(ss||V!=="onCompositionStart"?V==="onCompositionEnd"&&ss&&(A=nV()):(Ia=u,Uy="value"in Ia?Ia.value:Ia.textContent,ss=!0)),P=Ku(c,V),0<P.length&&(V=new Y1(V,t,null,r,u),d.push({event:V,listeners:P}),A?V.data=A:(A=sV(r),A!==null&&(V.data=A)))),(A=Tk?Ek(t,r):Rk(t,r))&&(c=Ku(c,"onBeforeInput"),0<c.length&&(u=new Y1("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=A))}gV(d,e)})}function Ol(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Ku(t,e){for(var r=e+"Capture",n=[];t!==null;){var a=t,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=vl(t,r),o!=null&&n.unshift(Ol(t,o,a)),o=vl(t,e),o!=null&&n.push(Ol(t,o,a))),t=t.return}return n}function Qo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function lC(t,e,r,n,a){for(var o=e._reactName,s=[];r!==null&&r!==n;){var i=r,l=i.alternate,c=i.stateNode;if(l!==null&&l===n)break;i.tag===5&&c!==null&&(i=c,a?(l=vl(r,o),l!=null&&s.unshift(Ol(r,l,i))):a||(l=vl(r,o),l!=null&&s.push(Ol(r,l,i)))),r=r.return}s.length!==0&&t.push({event:e,listeners:s})}var zk=/\r\n?/g,qk=/\u0000|\uFFFD/g;function cC(t){return(typeof t=="string"?t:""+t).replace(zk,`
|
|
38
|
+
`).replace(qk,"")}function bc(t,e,r){if(e=cC(e),cC(t)!==e&&r)throw Error(re(425))}function Wu(){}var qf=null,Qf=null;function Kf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Wf=typeof setTimeout=="function"?setTimeout:void 0,Qk=typeof clearTimeout=="function"?clearTimeout:void 0,uC=typeof Promise=="function"?Promise:void 0,Kk=typeof queueMicrotask=="function"?queueMicrotask:typeof uC<"u"?function(t){return uC.resolve(null).then(t).catch(Wk)}:Wf;function Wk(t){setTimeout(function(){throw t})}function Hh(t,e){var r=e,n=0;do{var a=r.nextSibling;if(t.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){t.removeChild(a),xl(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);xl(e)}function Da(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function dC(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var ai=Math.random().toString(36).slice(2),Cn="__reactFiber$"+ai,Vl="__reactProps$"+ai,aa="__reactContainer$"+ai,Yf="__reactEvents$"+ai,Yk="__reactListeners$"+ai,Jk="__reactHandles$"+ai;function yo(t){var e=t[Cn];if(e)return e;for(var r=t.parentNode;r;){if(e=r[aa]||r[Cn]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=dC(t);t!==null;){if(r=t[Cn])return r;t=dC(t)}return e}t=r,r=t.parentNode}return null}function Yl(t){return t=t[Cn]||t[aa],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function cs(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(re(33))}function ap(t){return t[Vl]||null}var Jf=[],us=-1;function to(t){return{current:t}}function qe(t){0>us||(t.current=Jf[us],Jf[us]=null,us--)}function Ge(t,e){us++,Jf[us]=t.current,t.current=e}var qa={},Jt=to(qa),lr=to(!1),Vo=qa;function Us(t,e){var r=t.type.contextTypes;if(!r)return qa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=e[o];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function cr(t){return t=t.childContextTypes,t!=null}function Yu(){qe(lr),qe(Jt)}function pC(t,e,r){if(Jt.current!==qa)throw Error(re(168));Ge(Jt,e),Ge(lr,r)}function xV(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(re(108,UD(t)||"Unknown",a));return nt({},r,n)}function Ju(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||qa,Vo=Jt.current,Ge(Jt,t),Ge(lr,lr.current),!0}function hC(t,e,r){var n=t.stateNode;if(!n)throw Error(re(169));r?(t=xV(t,e,Vo),n.__reactInternalMemoizedMergedChildContext=t,qe(lr),qe(Jt),Ge(Jt,t)):qe(lr),Ge(lr,r)}var zn=null,op=!1,jh=!1;function SV(t){zn===null?zn=[t]:zn.push(t)}function Xk(t){op=!0,SV(t)}function ro(){if(!jh&&zn!==null){jh=!0;var t=0,e=ke;try{var r=zn;for(ke=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}zn=null,op=!1}catch(a){throw zn!==null&&(zn=zn.slice(t+1)),qO(Ry,ro),a}finally{ke=e,jh=!1}}return null}var ds=[],ps=0,Xu=null,Zu=0,Br=[],Mr=0,Io=null,qn=1,Qn="";function co(t,e){ds[ps++]=Zu,ds[ps++]=Xu,Xu=t,Zu=e}function PV(t,e,r){Br[Mr++]=qn,Br[Mr++]=Qn,Br[Mr++]=Io,Io=t;var n=qn;t=Qn;var a=32-tn(n)-1;n&=~(1<<a),r+=1;var o=32-tn(e)+a;if(30<o){var s=a-a%5;o=(n&(1<<s)-1).toString(32),n>>=s,a-=s,qn=1<<32-tn(e)+a|r<<a|n,Qn=o+t}else qn=1<<o|r<<a|n,Qn=t}function Ny(t){t.return!==null&&(co(t,1),PV(t,1,0))}function Gy(t){for(;t===Xu;)Xu=ds[--ps],ds[ps]=null,Zu=ds[--ps],ds[ps]=null;for(;t===Io;)Io=Br[--Mr],Br[Mr]=null,Qn=Br[--Mr],Br[Mr]=null,qn=Br[--Mr],Br[Mr]=null}var Pr=null,xr=null,Xe=!1,Zr=null;function AV(t,e){var r=Lr(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function fC(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Pr=t,xr=Da(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Pr=t,xr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Io!==null?{id:qn,overflow:Qn}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Lr(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Pr=t,xr=null,!0):!1;default:return!1}}function Xf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Zf(t){if(Xe){var e=xr;if(e){var r=e;if(!fC(t,e)){if(Xf(t))throw Error(re(418));e=Da(r.nextSibling);var n=Pr;e&&fC(t,e)?AV(n,r):(t.flags=t.flags&-4097|2,Xe=!1,Pr=t)}}else{if(Xf(t))throw Error(re(418));t.flags=t.flags&-4097|2,Xe=!1,Pr=t}}}function mC(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Pr=t}function Tc(t){if(t!==Pr)return!1;if(!Xe)return mC(t),Xe=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Kf(t.type,t.memoizedProps)),e&&(e=xr)){if(Xf(t))throw OV(),Error(re(418));for(;e;)AV(t,e),e=Da(e.nextSibling)}if(mC(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(re(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){xr=Da(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}xr=null}}else xr=Pr?Da(t.stateNode.nextSibling):null;return!0}function OV(){for(var t=xr;t;)t=Da(t.nextSibling)}function Bs(){xr=Pr=null,Xe=!1}function Hy(t){Zr===null?Zr=[t]:Zr.push(t)}var Zk=ua.ReactCurrentBatchConfig;function Ai(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(re(309));var n=r.stateNode}if(!n)throw Error(re(147,t));var a=n,o=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===o?e.ref:(e=function(s){var i=a.refs;s===null?delete i[o]:i[o]=s},e._stringRef=o,e)}if(typeof t!="string")throw Error(re(284));if(!r._owner)throw Error(re(290,t))}return t}function Ec(t,e){throw t=Object.prototype.toString.call(e),Error(re(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function yC(t){var e=t._init;return e(t._payload)}function VV(t){function e(g,m){if(t){var C=g.deletions;C===null?(g.deletions=[m],g.flags|=16):C.push(m)}}function r(g,m){if(!t)return null;for(;m!==null;)e(g,m),m=m.sibling;return null}function n(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function a(g,m){return g=Ba(g,m),g.index=0,g.sibling=null,g}function o(g,m,C){return g.index=C,t?(C=g.alternate,C!==null?(C=C.index,C<m?(g.flags|=2,m):C):(g.flags|=2,m)):(g.flags|=1048576,m)}function s(g){return t&&g.alternate===null&&(g.flags|=2),g}function i(g,m,C,x){return m===null||m.tag!==6?(m=Yh(C,g.mode,x),m.return=g,m):(m=a(m,C),m.return=g,m)}function l(g,m,C,x){var S=C.type;return S===os?u(g,m,C.props.children,x,C.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xa&&yC(S)===m.type)?(x=a(m,C.props),x.ref=Ai(g,m,C),x.return=g,x):(x=vu(C.type,C.key,C.props,null,g.mode,x),x.ref=Ai(g,m,C),x.return=g,x)}function c(g,m,C,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==C.containerInfo||m.stateNode.implementation!==C.implementation?(m=Jh(C,g.mode,x),m.return=g,m):(m=a(m,C.children||[]),m.return=g,m)}function u(g,m,C,x,S){return m===null||m.tag!==7?(m=Oo(C,g.mode,x,S),m.return=g,m):(m=a(m,C),m.return=g,m)}function d(g,m,C){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Yh(""+m,g.mode,C),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Cc:return C=vu(m.type,m.key,m.props,null,g.mode,C),C.ref=Ai(g,null,m),C.return=g,C;case as:return m=Jh(m,g.mode,C),m.return=g,m;case xa:var x=m._init;return d(g,x(m._payload),C)}if(Li(m)||gi(m))return m=Oo(m,g.mode,C,null),m.return=g,m;Ec(g,m)}return null}function p(g,m,C,x){var S=m!==null?m.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return S!==null?null:i(g,m,""+C,x);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Cc:return C.key===S?l(g,m,C,x):null;case as:return C.key===S?c(g,m,C,x):null;case xa:return S=C._init,p(g,m,S(C._payload),x)}if(Li(C)||gi(C))return S!==null?null:u(g,m,C,x,null);Ec(g,C)}return null}function h(g,m,C,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(C)||null,i(m,g,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Cc:return g=g.get(x.key===null?C:x.key)||null,l(m,g,x,S);case as:return g=g.get(x.key===null?C:x.key)||null,c(m,g,x,S);case xa:var P=x._init;return h(g,m,C,P(x._payload),S)}if(Li(x)||gi(x))return g=g.get(C)||null,u(m,g,x,S,null);Ec(m,x)}return null}function f(g,m,C,x){for(var S=null,P=null,A=m,V=m=0,U=null;A!==null&&V<C.length;V++){A.index>V?(U=A,A=null):U=A.sibling;var O=p(g,A,C[V],x);if(O===null){A===null&&(A=U);break}t&&A&&O.alternate===null&&e(g,A),m=o(O,m,V),P===null?S=O:P.sibling=O,P=O,A=U}if(V===C.length)return r(g,A),Xe&&co(g,V),S;if(A===null){for(;V<C.length;V++)A=d(g,C[V],x),A!==null&&(m=o(A,m,V),P===null?S=A:P.sibling=A,P=A);return Xe&&co(g,V),S}for(A=n(g,A);V<C.length;V++)U=h(A,g,V,C[V],x),U!==null&&(t&&U.alternate!==null&&A.delete(U.key===null?V:U.key),m=o(U,m,V),P===null?S=U:P.sibling=U,P=U);return t&&A.forEach(function(I){return e(g,I)}),Xe&&co(g,V),S}function y(g,m,C,x){var S=gi(C);if(typeof S!="function")throw Error(re(150));if(C=S.call(C),C==null)throw Error(re(151));for(var P=S=null,A=m,V=m=0,U=null,O=C.next();A!==null&&!O.done;V++,O=C.next()){A.index>V?(U=A,A=null):U=A.sibling;var I=p(g,A,O.value,x);if(I===null){A===null&&(A=U);break}t&&A&&I.alternate===null&&e(g,A),m=o(I,m,V),P===null?S=I:P.sibling=I,P=I,A=U}if(O.done)return r(g,A),Xe&&co(g,V),S;if(A===null){for(;!O.done;V++,O=C.next())O=d(g,O.value,x),O!==null&&(m=o(O,m,V),P===null?S=O:P.sibling=O,P=O);return Xe&&co(g,V),S}for(A=n(g,A);!O.done;V++,O=C.next())O=h(A,g,V,O.value,x),O!==null&&(t&&O.alternate!==null&&A.delete(O.key===null?V:O.key),m=o(O,m,V),P===null?S=O:P.sibling=O,P=O);return t&&A.forEach(function(L){return e(g,L)}),Xe&&co(g,V),S}function v(g,m,C,x){if(typeof C=="object"&&C!==null&&C.type===os&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Cc:e:{for(var S=C.key,P=m;P!==null;){if(P.key===S){if(S=C.type,S===os){if(P.tag===7){r(g,P.sibling),m=a(P,C.props.children),m.return=g,g=m;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===xa&&yC(S)===P.type){r(g,P.sibling),m=a(P,C.props),m.ref=Ai(g,P,C),m.return=g,g=m;break e}r(g,P);break}else e(g,P);P=P.sibling}C.type===os?(m=Oo(C.props.children,g.mode,x,C.key),m.return=g,g=m):(x=vu(C.type,C.key,C.props,null,g.mode,x),x.ref=Ai(g,m,C),x.return=g,g=x)}return s(g);case as:e:{for(P=C.key;m!==null;){if(m.key===P)if(m.tag===4&&m.stateNode.containerInfo===C.containerInfo&&m.stateNode.implementation===C.implementation){r(g,m.sibling),m=a(m,C.children||[]),m.return=g,g=m;break e}else{r(g,m);break}else e(g,m);m=m.sibling}m=Jh(C,g.mode,x),m.return=g,g=m}return s(g);case xa:return P=C._init,v(g,m,P(C._payload),x)}if(Li(C))return f(g,m,C,x);if(gi(C))return y(g,m,C,x);Ec(g,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,m!==null&&m.tag===6?(r(g,m.sibling),m=a(m,C),m.return=g,g=m):(r(g,m),m=Yh(C,g.mode,x),m.return=g,g=m),s(g)):r(g,m)}return v}var Ms=VV(!0),IV=VV(!1),ed=to(null),td=null,hs=null,jy=null;function $y(){jy=hs=td=null}function zy(t){var e=ed.current;qe(ed),t._currentValue=e}function em(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function ws(t,e){td=t,jy=hs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ir=!0),t.firstContext=null)}function jr(t){var e=t._currentValue;if(jy!==t)if(t={context:t,memoizedValue:e,next:null},hs===null){if(td===null)throw Error(re(308));hs=t,td.dependencies={lanes:0,firstContext:t}}else hs=hs.next=t;return e}var vo=null;function qy(t){vo===null?vo=[t]:vo.push(t)}function wV(t,e,r,n){var a=e.interleaved;return a===null?(r.next=r,qy(e)):(r.next=a.next,a.next=r),e.interleaved=r,oa(t,n)}function oa(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var Sa=!1;function Qy(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bV(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Xn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function ka(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,we&2){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,oa(t,r)}return a=n.interleaved,a===null?(e.next=e,qy(n)):(e.next=a.next,a.next=e),n.interleaved=e,oa(t,r)}function du(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Dy(t,r)}}function vC(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=e:o=o.next=e}else a=o=e;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function rd(t,e,r,n){var a=t.updateQueue;Sa=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(i!==null){a.shared.pending=null;var l=i,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=t.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=c:i.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=a.baseState;s=0,u=c=l=null,i=o;do{var p=i.lane,h=i.eventTime;if((n&p)===p){u!==null&&(u=u.next={eventTime:h,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,y=i;switch(p=e,h=r,y.tag){case 1:if(f=y.payload,typeof f=="function"){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=y.payload,p=typeof f=="function"?f.call(h,d,p):f,p==null)break e;d=nt({},d,p);break e;case 2:Sa=!0}}i.callback!==null&&i.lane!==0&&(t.flags|=64,p=a.effects,p===null?a.effects=[i]:p.push(i))}else h={eventTime:h,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=p;if(i=i.next,i===null){if(i=a.shared.pending,i===null)break;p=i,i=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(1);if(u===null&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,e=a.shared.interleaved,e!==null){a=e;do s|=a.lane,a=a.next;while(a!==e)}else o===null&&(a.shared.lanes=0);bo|=s,t.lanes=s,t.memoizedState=d}}function gC(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(re(191,a));a.call(n)}}}var Jl={},Vn=to(Jl),Il=to(Jl),wl=to(Jl);function go(t){if(t===Jl)throw Error(re(174));return t}function Ky(t,e){switch(Ge(wl,e),Ge(Il,t),Ge(Vn,Jl),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:_f(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=_f(e,t)}qe(Vn),Ge(Vn,e)}function Fs(){qe(Vn),qe(Il),qe(wl)}function TV(t){go(wl.current);var e=go(Vn.current),r=_f(e,t.type);e!==r&&(Ge(Il,t),Ge(Vn,r))}function Wy(t){Il.current===t&&(qe(Vn),qe(Il))}var et=to(0);function nd(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var $h=[];function Yy(){for(var t=0;t<$h.length;t++)$h[t]._workInProgressVersionPrimary=null;$h.length=0}var pu=ua.ReactCurrentDispatcher,zh=ua.ReactCurrentBatchConfig,wo=0,rt=null,yt=null,Vt=null,ad=!1,el=!1,bl=0,e2=0;function Lt(){throw Error(re(321))}function Jy(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!sn(t[r],e[r]))return!1;return!0}function Xy(t,e,r,n,a,o){if(wo=o,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,pu.current=t===null||t.memoizedState===null?a2:o2,t=r(n,a),el){o=0;do{if(el=!1,bl=0,25<=o)throw Error(re(301));o+=1,Vt=yt=null,e.updateQueue=null,pu.current=s2,t=r(n,a)}while(el)}if(pu.current=od,e=yt!==null&&yt.next!==null,wo=0,Vt=yt=rt=null,ad=!1,e)throw Error(re(300));return t}function Zy(){var t=bl!==0;return bl=0,t}function yn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function $r(){if(yt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=yt.next;var e=Vt===null?rt.memoizedState:Vt.next;if(e!==null)Vt=e,yt=t;else{if(t===null)throw Error(re(310));yt=t,t={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Tl(t,e){return typeof e=="function"?e(t):e}function qh(t){var e=$r(),r=e.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=t;var n=yt,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var i=s=null,l=null,c=o;do{var u=c.lane;if((wo&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:t(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(i=l=d,s=n):l=l.next=d,rt.lanes|=u,bo|=u}c=c.next}while(c!==null&&c!==o);l===null?s=n:l.next=i,sn(n,e.memoizedState)||(ir=!0),e.memoizedState=n,e.baseState=s,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){a=t;do o=a.lane,rt.lanes|=o,bo|=o,a=a.next;while(a!==t)}else a===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Qh(t){var e=$r(),r=e.queue;if(r===null)throw Error(re(311));r.lastRenderedReducer=t;var n=r.dispatch,a=r.pending,o=e.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=t(o,s.action),s=s.next;while(s!==a);sn(o,e.memoizedState)||(ir=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),r.lastRenderedState=o}return[o,n]}function EV(){}function RV(t,e){var r=rt,n=$r(),a=e(),o=!sn(n.memoizedState,a);if(o&&(n.memoizedState=a,ir=!0),n=n.queue,ev(_V.bind(null,r,n,t),[t]),n.getSnapshot!==e||o||Vt!==null&&Vt.memoizedState.tag&1){if(r.flags|=2048,El(9,kV.bind(null,r,n,a,e),void 0,null),wt===null)throw Error(re(349));wo&30||DV(r,e,a)}return a}function DV(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=rt.updateQueue,e===null?(e={lastEffect:null,stores:null},rt.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function kV(t,e,r,n){e.value=r,e.getSnapshot=n,UV(e)&&BV(t)}function _V(t,e,r){return r(function(){UV(e)&&BV(t)})}function UV(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!sn(t,r)}catch{return!0}}function BV(t){var e=oa(t,1);e!==null&&rn(e,t,1,-1)}function CC(t){var e=yn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:t},e.queue=t,t=t.dispatch=n2.bind(null,rt,t),[e.memoizedState,t]}function El(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=rt.updateQueue,e===null?(e={lastEffect:null,stores:null},rt.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function MV(){return $r().memoizedState}function hu(t,e,r,n){var a=yn();rt.flags|=t,a.memoizedState=El(1|e,r,void 0,n===void 0?null:n)}function sp(t,e,r,n){var a=$r();n=n===void 0?null:n;var o=void 0;if(yt!==null){var s=yt.memoizedState;if(o=s.destroy,n!==null&&Jy(n,s.deps)){a.memoizedState=El(e,r,o,n);return}}rt.flags|=t,a.memoizedState=El(1|e,r,o,n)}function xC(t,e){return hu(8390656,8,t,e)}function ev(t,e){return sp(2048,8,t,e)}function FV(t,e){return sp(4,2,t,e)}function LV(t,e){return sp(4,4,t,e)}function NV(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function GV(t,e,r){return r=r!=null?r.concat([t]):null,sp(4,4,NV.bind(null,e,t),r)}function tv(){}function HV(t,e){var r=$r();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Jy(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function jV(t,e){var r=$r();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Jy(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function $V(t,e,r){return wo&21?(sn(r,e)||(r=WO(),rt.lanes|=r,bo|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ir=!0),t.memoizedState=r)}function t2(t,e){var r=ke;ke=r!==0&&4>r?r:4,t(!0);var n=zh.transition;zh.transition={};try{t(!1),e()}finally{ke=r,zh.transition=n}}function zV(){return $r().memoizedState}function r2(t,e,r){var n=Ua(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},qV(t))QV(e,r);else if(r=wV(t,e,r,n),r!==null){var a=rr();rn(r,t,n,a),KV(r,e,n)}}function n2(t,e,r){var n=Ua(t),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(qV(t))QV(e,a);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,i=o(s,r);if(a.hasEagerState=!0,a.eagerState=i,sn(i,s)){var l=e.interleaved;l===null?(a.next=a,qy(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}r=wV(t,e,a,n),r!==null&&(a=rr(),rn(r,t,n,a),KV(r,e,n))}}function qV(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function QV(t,e){el=ad=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function KV(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Dy(t,r)}}var od={readContext:jr,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useInsertionEffect:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useSyncExternalStore:Lt,useId:Lt,unstable_isNewReconciler:!1},a2={readContext:jr,useCallback:function(t,e){return yn().memoizedState=[t,e===void 0?null:e],t},useContext:jr,useEffect:xC,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,hu(4194308,4,NV.bind(null,e,t),r)},useLayoutEffect:function(t,e){return hu(4194308,4,t,e)},useInsertionEffect:function(t,e){return hu(4,2,t,e)},useMemo:function(t,e){var r=yn();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=yn();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=r2.bind(null,rt,t),[n.memoizedState,t]},useRef:function(t){var e=yn();return t={current:t},e.memoizedState=t},useState:CC,useDebugValue:tv,useDeferredValue:function(t){return yn().memoizedState=t},useTransition:function(){var t=CC(!1),e=t[0];return t=t2.bind(null,t[1]),yn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=rt,a=yn();if(Xe){if(r===void 0)throw Error(re(407));r=r()}else{if(r=e(),wt===null)throw Error(re(349));wo&30||DV(n,e,r)}a.memoizedState=r;var o={value:r,getSnapshot:e};return a.queue=o,xC(_V.bind(null,n,o,t),[t]),n.flags|=2048,El(9,kV.bind(null,n,o,r,e),void 0,null),r},useId:function(){var t=yn(),e=wt.identifierPrefix;if(Xe){var r=Qn,n=qn;r=(n&~(1<<32-tn(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=bl++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=e2++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},o2={readContext:jr,useCallback:HV,useContext:jr,useEffect:ev,useImperativeHandle:GV,useInsertionEffect:FV,useLayoutEffect:LV,useMemo:jV,useReducer:qh,useRef:MV,useState:function(){return qh(Tl)},useDebugValue:tv,useDeferredValue:function(t){var e=$r();return $V(e,yt.memoizedState,t)},useTransition:function(){var t=qh(Tl)[0],e=$r().memoizedState;return[t,e]},useMutableSource:EV,useSyncExternalStore:RV,useId:zV,unstable_isNewReconciler:!1},s2={readContext:jr,useCallback:HV,useContext:jr,useEffect:ev,useImperativeHandle:GV,useInsertionEffect:FV,useLayoutEffect:LV,useMemo:jV,useReducer:Qh,useRef:MV,useState:function(){return Qh(Tl)},useDebugValue:tv,useDeferredValue:function(t){var e=$r();return yt===null?e.memoizedState=t:$V(e,yt.memoizedState,t)},useTransition:function(){var t=Qh(Tl)[0],e=$r().memoizedState;return[t,e]},useMutableSource:EV,useSyncExternalStore:RV,useId:zV,unstable_isNewReconciler:!1};function Yr(t,e){if(t&&t.defaultProps){e=nt({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function tm(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:nt({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var ip={isMounted:function(t){return(t=t._reactInternals)?Bo(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=rr(),a=Ua(t),o=Xn(n,a);o.payload=e,r!=null&&(o.callback=r),e=ka(t,o,a),e!==null&&(rn(e,t,a,n),du(e,t,a))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=rr(),a=Ua(t),o=Xn(n,a);o.tag=1,o.payload=e,r!=null&&(o.callback=r),e=ka(t,o,a),e!==null&&(rn(e,t,a,n),du(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=rr(),n=Ua(t),a=Xn(r,n);a.tag=2,e!=null&&(a.callback=e),e=ka(t,a,n),e!==null&&(rn(e,t,n,r),du(e,t,n))}};function SC(t,e,r,n,a,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,o,s):e.prototype&&e.prototype.isPureReactComponent?!Pl(r,n)||!Pl(a,o):!0}function WV(t,e,r){var n=!1,a=qa,o=e.contextType;return typeof o=="object"&&o!==null?o=jr(o):(a=cr(e)?Vo:Jt.current,n=e.contextTypes,o=(n=n!=null)?Us(t,a):qa),e=new e(r,o),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ip,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=a,t.__reactInternalMemoizedMaskedChildContext=o),e}function PC(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&ip.enqueueReplaceState(e,e.state,null)}function rm(t,e,r,n){var a=t.stateNode;a.props=r,a.state=t.memoizedState,a.refs={},Qy(t);var o=e.contextType;typeof o=="object"&&o!==null?a.context=jr(o):(o=cr(e)?Vo:Jt.current,a.context=Us(t,o)),a.state=t.memoizedState,o=e.getDerivedStateFromProps,typeof o=="function"&&(tm(t,e,o,r),a.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(e=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),e!==a.state&&ip.enqueueReplaceState(a,a.state,null),rd(t,r,a,n),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308)}function Ls(t,e){try{var r="",n=e;do r+=_D(n),n=n.return;while(n);var a=r}catch(o){a=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:t,source:e,stack:a,digest:null}}function Kh(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function nm(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var i2=typeof WeakMap=="function"?WeakMap:Map;function YV(t,e,r){r=Xn(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){id||(id=!0,hm=n),nm(t,e)},r}function JV(t,e,r){r=Xn(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var a=e.value;r.payload=function(){return n(a)},r.callback=function(){nm(t,e)}}var o=t.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){nm(t,e),typeof n!="function"&&(_a===null?_a=new Set([this]):_a.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),r}function AC(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new i2;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(r)||(a.add(r),t=S2.bind(null,t,e,r),e.then(t,t))}function OC(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function VC(t,e,r,n,a){return t.mode&1?(t.flags|=65536,t.lanes=a,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Xn(-1,1),e.tag=2,ka(r,e,1))),r.lanes|=1),t)}var l2=ua.ReactCurrentOwner,ir=!1;function er(t,e,r,n){e.child=t===null?IV(e,null,r,n):Ms(e,t.child,r,n)}function IC(t,e,r,n,a){r=r.render;var o=e.ref;return ws(e,a),n=Xy(t,e,r,n,o,a),r=Zy(),t!==null&&!ir?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,sa(t,e,a)):(Xe&&r&&Ny(e),e.flags|=1,er(t,e,n,a),e.child)}function wC(t,e,r,n,a){if(t===null){var o=r.type;return typeof o=="function"&&!cv(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=o,XV(t,e,o,n,a)):(t=vu(r.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!(t.lanes&a)){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Pl,r(s,n)&&t.ref===e.ref)return sa(t,e,a)}return e.flags|=1,t=Ba(o,n),t.ref=e.ref,t.return=e,e.child=t}function XV(t,e,r,n,a){if(t!==null){var o=t.memoizedProps;if(Pl(o,n)&&t.ref===e.ref)if(ir=!1,e.pendingProps=n=o,(t.lanes&a)!==0)t.flags&131072&&(ir=!0);else return e.lanes=t.lanes,sa(t,e,a)}return am(t,e,r,n,a)}function ZV(t,e,r){var n=e.pendingProps,a=n.children,o=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(ms,gr),gr|=r;else{if(!(r&1073741824))return t=o!==null?o.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ge(ms,gr),gr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Ge(ms,gr),gr|=n}else o!==null?(n=o.baseLanes|r,e.memoizedState=null):n=r,Ge(ms,gr),gr|=n;return er(t,e,a,r),e.child}function eI(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function am(t,e,r,n,a){var o=cr(r)?Vo:Jt.current;return o=Us(e,o),ws(e,a),r=Xy(t,e,r,n,o,a),n=Zy(),t!==null&&!ir?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a,sa(t,e,a)):(Xe&&n&&Ny(e),e.flags|=1,er(t,e,r,a),e.child)}function bC(t,e,r,n,a){if(cr(r)){var o=!0;Ju(e)}else o=!1;if(ws(e,a),e.stateNode===null)fu(t,e),WV(e,r,n),rm(e,r,n,a),n=!0;else if(t===null){var s=e.stateNode,i=e.memoizedProps;s.props=i;var l=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=jr(c):(c=cr(r)?Vo:Jt.current,c=Us(e,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==n||l!==c)&&PC(e,s,n,c),Sa=!1;var p=e.memoizedState;s.state=p,rd(e,n,s,a),l=e.memoizedState,i!==n||p!==l||lr.current||Sa?(typeof u=="function"&&(tm(e,r,u,n),l=e.memoizedState),(i=Sa||SC(e,r,i,n,p,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),s.props=n,s.state=l,s.context=c,n=i):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,bV(t,e),i=e.memoizedProps,c=e.type===e.elementType?i:Yr(e.type,i),s.props=c,d=e.pendingProps,p=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=jr(l):(l=cr(r)?Vo:Jt.current,l=Us(e,l));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==d||p!==l)&&PC(e,s,n,l),Sa=!1,p=e.memoizedState,s.state=p,rd(e,n,s,a);var f=e.memoizedState;i!==d||p!==f||lr.current||Sa?(typeof h=="function"&&(tm(e,r,h,n),f=e.memoizedState),(c=Sa||SC(e,r,c,n,p,f,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,f,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,f,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=f),s.props=n,s.state=f,s.context=l,n=c):(typeof s.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),n=!1)}return om(t,e,r,n,o,a)}function om(t,e,r,n,a,o){eI(t,e);var s=(e.flags&128)!==0;if(!n&&!s)return a&&hC(e,r,!1),sa(t,e,o);n=e.stateNode,l2.current=e;var i=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&s?(e.child=Ms(e,t.child,null,o),e.child=Ms(e,null,i,o)):er(t,e,i,o),e.memoizedState=n.state,a&&hC(e,r,!0),e.child}function tI(t){var e=t.stateNode;e.pendingContext?pC(t,e.pendingContext,e.pendingContext!==e.context):e.context&&pC(t,e.context,!1),Ky(t,e.containerInfo)}function TC(t,e,r,n,a){return Bs(),Hy(a),e.flags|=256,er(t,e,r,n),e.child}var sm={dehydrated:null,treeContext:null,retryLane:0};function im(t){return{baseLanes:t,cachePool:null,transitions:null}}function rI(t,e,r){var n=e.pendingProps,a=et.current,o=!1,s=(e.flags&128)!==0,i;if((i=s)||(i=t!==null&&t.memoizedState===null?!1:(a&2)!==0),i?(o=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(a|=1),Ge(et,a&1),t===null)return Zf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=n.children,t=n.fallback,o?(n=e.mode,o=e.child,s={mode:"hidden",children:s},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=up(s,n,0,null),t=Oo(t,n,r,null),o.return=e,t.return=e,o.sibling=t,e.child=o,e.child.memoizedState=im(r),e.memoizedState=sm,t):rv(e,s));if(a=t.memoizedState,a!==null&&(i=a.dehydrated,i!==null))return c2(t,e,s,n,i,a,r);if(o){o=n.fallback,s=e.mode,a=t.child,i=a.sibling;var l={mode:"hidden",children:n.children};return!(s&1)&&e.child!==a?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Ba(a,l),n.subtreeFlags=a.subtreeFlags&14680064),i!==null?o=Ba(i,o):(o=Oo(o,s,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,n=o,o=e.child,s=t.child.memoizedState,s=s===null?im(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=t.childLanes&~r,e.memoizedState=sm,n}return o=t.child,t=o.sibling,n=Ba(o,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function rv(t,e){return e=up({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Rc(t,e,r,n){return n!==null&&Hy(n),Ms(e,t.child,null,r),t=rv(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function c2(t,e,r,n,a,o,s){if(r)return e.flags&256?(e.flags&=-257,n=Kh(Error(re(422))),Rc(t,e,s,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(o=n.fallback,a=e.mode,n=up({mode:"visible",children:n.children},a,0,null),o=Oo(o,a,s,null),o.flags|=2,n.return=e,o.return=e,n.sibling=o,e.child=n,e.mode&1&&Ms(e,t.child,null,s),e.child.memoizedState=im(s),e.memoizedState=sm,o);if(!(e.mode&1))return Rc(t,e,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var i=n.dgst;return n=i,o=Error(re(419)),n=Kh(o,n,void 0),Rc(t,e,s,n)}if(i=(s&t.childLanes)!==0,ir||i){if(n=wt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|s)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,oa(t,a),rn(n,t,a,-1))}return lv(),n=Kh(Error(re(421))),Rc(t,e,s,n)}return a.data==="$?"?(e.flags|=128,e.child=t.child,e=P2.bind(null,t),a._reactRetry=e,null):(t=o.treeContext,xr=Da(a.nextSibling),Pr=e,Xe=!0,Zr=null,t!==null&&(Br[Mr++]=qn,Br[Mr++]=Qn,Br[Mr++]=Io,qn=t.id,Qn=t.overflow,Io=e),e=rv(e,n.children),e.flags|=4096,e)}function EC(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),em(t.return,e,r)}function Wh(t,e,r,n,a){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function nI(t,e,r){var n=e.pendingProps,a=n.revealOrder,o=n.tail;if(er(t,e,n.children,r),n=et.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&EC(t,r,e);else if(t.tag===19)EC(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Ge(et,n),!(e.mode&1))e.memoizedState=null;else switch(a){case"forwards":for(r=e.child,a=null;r!==null;)t=r.alternate,t!==null&&nd(t)===null&&(a=r),r=r.sibling;r=a,r===null?(a=e.child,e.child=null):(a=r.sibling,r.sibling=null),Wh(e,!1,a,r,o);break;case"backwards":for(r=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&nd(t)===null){e.child=a;break}t=a.sibling,a.sibling=r,r=a,a=t}Wh(e,!0,r,null,o);break;case"together":Wh(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function fu(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function sa(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),bo|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(re(153));if(e.child!==null){for(t=e.child,r=Ba(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Ba(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function u2(t,e,r){switch(e.tag){case 3:tI(e),Bs();break;case 5:TV(e);break;case 1:cr(e.type)&&Ju(e);break;case 4:Ky(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,a=e.memoizedProps.value;Ge(ed,n._currentValue),n._currentValue=a;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Ge(et,et.current&1),e.flags|=128,null):r&e.child.childLanes?rI(t,e,r):(Ge(et,et.current&1),t=sa(t,e,r),t!==null?t.sibling:null);Ge(et,et.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return nI(t,e,r);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ge(et,et.current),n)break;return null;case 22:case 23:return e.lanes=0,ZV(t,e,r)}return sa(t,e,r)}var aI,lm,oI,sI;aI=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};lm=function(){};oI=function(t,e,r,n){var a=t.memoizedProps;if(a!==n){t=e.stateNode,go(Vn.current);var o=null;switch(r){case"input":a=Ef(t,a),n=Ef(t,n),o=[];break;case"select":a=nt({},a,{value:void 0}),n=nt({},n,{value:void 0}),o=[];break;case"textarea":a=kf(t,a),n=kf(t,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Wu)}Uf(r,n);var s;r=null;for(c in a)if(!n.hasOwnProperty(c)&&a.hasOwnProperty(c)&&a[c]!=null)if(c==="style"){var i=a[c];for(s in i)i.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ml.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(i=a!=null?a[c]:void 0,n.hasOwnProperty(c)&&l!==i&&(l!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ml.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&je("scroll",t),o||i===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(e.updateQueue=c)&&(e.flags|=4)}};sI=function(t,e,r,n){r!==n&&(e.flags|=4)};function Oi(t,e){if(!Xe)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Nt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var a=t.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function d2(t,e,r){var n=e.pendingProps;switch(Gy(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(e),null;case 1:return cr(e.type)&&Yu(),Nt(e),null;case 3:return n=e.stateNode,Fs(),qe(lr),qe(Jt),Yy(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Tc(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Zr!==null&&(ym(Zr),Zr=null))),lm(t,e),Nt(e),null;case 5:Wy(e);var a=go(wl.current);if(r=e.type,t!==null&&e.stateNode!=null)oI(t,e,r,n,a),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(re(166));return Nt(e),null}if(t=go(Vn.current),Tc(e)){n=e.stateNode,r=e.type;var o=e.memoizedProps;switch(n[Cn]=e,n[Vl]=o,t=(e.mode&1)!==0,r){case"dialog":je("cancel",n),je("close",n);break;case"iframe":case"object":case"embed":je("load",n);break;case"video":case"audio":for(a=0;a<Gi.length;a++)je(Gi[a],n);break;case"source":je("error",n);break;case"img":case"image":case"link":je("error",n),je("load",n);break;case"details":je("toggle",n);break;case"input":L1(n,o),je("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},je("invalid",n);break;case"textarea":G1(n,o),je("invalid",n)}Uf(r,o),a=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?n.textContent!==i&&(o.suppressHydrationWarning!==!0&&bc(n.textContent,i,t),a=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&bc(n.textContent,i,t),a=["children",""+i]):ml.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&je("scroll",n)}switch(r){case"input":xc(n),N1(n,o,!0);break;case"textarea":xc(n),H1(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=Wu)}n=a,e.updateQueue=n,n!==null&&(e.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=_O(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=s.createElement(r,{is:n.is}):(t=s.createElement(r),r==="select"&&(s=t,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):t=s.createElementNS(t,r),t[Cn]=e,t[Vl]=n,aI(t,e,!1,!1),e.stateNode=t;e:{switch(s=Bf(r,n),r){case"dialog":je("cancel",t),je("close",t),a=n;break;case"iframe":case"object":case"embed":je("load",t),a=n;break;case"video":case"audio":for(a=0;a<Gi.length;a++)je(Gi[a],t);a=n;break;case"source":je("error",t),a=n;break;case"img":case"image":case"link":je("error",t),je("load",t),a=n;break;case"details":je("toggle",t),a=n;break;case"input":L1(t,n),a=Ef(t,n),je("invalid",t);break;case"option":a=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},a=nt({},n,{value:void 0}),je("invalid",t);break;case"textarea":G1(t,n),a=kf(t,n),je("invalid",t);break;default:a=n}Uf(r,a),i=a;for(o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="style"?MO(t,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&UO(t,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&yl(t,l):typeof l=="number"&&yl(t,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ml.hasOwnProperty(o)?l!=null&&o==="onScroll"&&je("scroll",t):l!=null&&Iy(t,o,l,s))}switch(r){case"input":xc(t),N1(t,n,!1);break;case"textarea":xc(t),H1(t);break;case"option":n.value!=null&&t.setAttribute("value",""+za(n.value));break;case"select":t.multiple=!!n.multiple,o=n.value,o!=null?As(t,!!n.multiple,o,!1):n.defaultValue!=null&&As(t,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(t.onclick=Wu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Nt(e),null;case 6:if(t&&e.stateNode!=null)sI(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(re(166));if(r=go(wl.current),go(Vn.current),Tc(e)){if(n=e.stateNode,r=e.memoizedProps,n[Cn]=e,(o=n.nodeValue!==r)&&(t=Pr,t!==null))switch(t.tag){case 3:bc(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&bc(n.nodeValue,r,(t.mode&1)!==0)}o&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Cn]=e,e.stateNode=n}return Nt(e),null;case 13:if(qe(et),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Xe&&xr!==null&&e.mode&1&&!(e.flags&128))OV(),Bs(),e.flags|=98560,o=!1;else if(o=Tc(e),n!==null&&n.dehydrated!==null){if(t===null){if(!o)throw Error(re(318));if(o=e.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(re(317));o[Cn]=e}else Bs(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Nt(e),o=!1}else Zr!==null&&(ym(Zr),Zr=null),o=!0;if(!o)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||et.current&1?gt===0&&(gt=3):lv())),e.updateQueue!==null&&(e.flags|=4),Nt(e),null);case 4:return Fs(),lm(t,e),t===null&&Al(e.stateNode.containerInfo),Nt(e),null;case 10:return zy(e.type._context),Nt(e),null;case 17:return cr(e.type)&&Yu(),Nt(e),null;case 19:if(qe(et),o=e.memoizedState,o===null)return Nt(e),null;if(n=(e.flags&128)!==0,s=o.rendering,s===null)if(n)Oi(o,!1);else{if(gt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=nd(t),s!==null){for(e.flags|=128,Oi(o,!1),n=s.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)o=r,t=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=t,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,t=s.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Ge(et,et.current&1|2),e.child}t=t.sibling}o.tail!==null&&st()>Ns&&(e.flags|=128,n=!0,Oi(o,!1),e.lanes=4194304)}else{if(!n)if(t=nd(s),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Oi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Xe)return Nt(e),null}else 2*st()-o.renderingStartTime>Ns&&r!==1073741824&&(e.flags|=128,n=!0,Oi(o,!1),e.lanes=4194304);o.isBackwards?(s.sibling=e.child,e.child=s):(r=o.last,r!==null?r.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=st(),e.sibling=null,r=et.current,Ge(et,n?r&1|2:r&1),e):(Nt(e),null);case 22:case 23:return iv(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?gr&1073741824&&(Nt(e),e.subtreeFlags&6&&(e.flags|=8192)):Nt(e),null;case 24:return null;case 25:return null}throw Error(re(156,e.tag))}function p2(t,e){switch(Gy(e),e.tag){case 1:return cr(e.type)&&Yu(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Fs(),qe(lr),qe(Jt),Yy(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Wy(e),null;case 13:if(qe(et),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(re(340));Bs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qe(et),null;case 4:return Fs(),null;case 10:return zy(e.type._context),null;case 22:case 23:return iv(),null;case 24:return null;default:return null}}var Dc=!1,Qt=!1,h2=typeof WeakSet=="function"?WeakSet:Set,se=null;function fs(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){at(t,e,n)}else r.current=null}function cm(t,e,r){try{r()}catch(n){at(t,e,n)}}var RC=!1;function f2(t,e){if(qf=qu,t=dV(),Ly(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,i=-1,l=-1,c=0,u=0,d=t,p=null;t:for(;;){for(var h;d!==r||a!==0&&d.nodeType!==3||(i=s+a),d!==o||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===t)break t;if(p===r&&++c===a&&(i=s),p===o&&++u===n&&(l=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}r=i===-1||l===-1?null:{start:i,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qf={focusedElem:t,selectionRange:r},qu=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){e=se;try{var f=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var y=f.memoizedProps,v=f.memoizedState,g=e.stateNode,m=g.getSnapshotBeforeUpdate(e.elementType===e.type?y:Yr(e.type,y),v);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var C=e.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(x){at(e,e.return,x)}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}return f=RC,RC=!1,f}function tl(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&t)===t){var o=a.destroy;a.destroy=void 0,o!==void 0&&cm(e,r,o)}a=a.next}while(a!==n)}}function lp(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function um(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function iI(t){var e=t.alternate;e!==null&&(t.alternate=null,iI(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Cn],delete e[Vl],delete e[Yf],delete e[Yk],delete e[Jk])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function lI(t){return t.tag===5||t.tag===3||t.tag===4}function DC(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||lI(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dm(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Wu));else if(n!==4&&(t=t.child,t!==null))for(dm(t,e,r),t=t.sibling;t!==null;)dm(t,e,r),t=t.sibling}function pm(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(pm(t,e,r),t=t.sibling;t!==null;)pm(t,e,r),t=t.sibling}var _t=null,Jr=!1;function ha(t,e,r){for(r=r.child;r!==null;)cI(t,e,r),r=r.sibling}function cI(t,e,r){if(On&&typeof On.onCommitFiberUnmount=="function")try{On.onCommitFiberUnmount(ep,r)}catch{}switch(r.tag){case 5:Qt||fs(r,e);case 6:var n=_t,a=Jr;_t=null,ha(t,e,r),_t=n,Jr=a,_t!==null&&(Jr?(t=_t,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):_t.removeChild(r.stateNode));break;case 18:_t!==null&&(Jr?(t=_t,r=r.stateNode,t.nodeType===8?Hh(t.parentNode,r):t.nodeType===1&&Hh(t,r),xl(t)):Hh(_t,r.stateNode));break;case 4:n=_t,a=Jr,_t=r.stateNode.containerInfo,Jr=!0,ha(t,e,r),_t=n,Jr=a;break;case 0:case 11:case 14:case 15:if(!Qt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&cm(r,e,s),a=a.next}while(a!==n)}ha(t,e,r);break;case 1:if(!Qt&&(fs(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(i){at(r,e,i)}ha(t,e,r);break;case 21:ha(t,e,r);break;case 22:r.mode&1?(Qt=(n=Qt)||r.memoizedState!==null,ha(t,e,r),Qt=n):ha(t,e,r);break;default:ha(t,e,r)}}function kC(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new h2),e.forEach(function(n){var a=A2.bind(null,t,n);r.has(n)||(r.add(n),n.then(a,a))})}}function Qr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=t,s=e,i=s;e:for(;i!==null;){switch(i.tag){case 5:_t=i.stateNode,Jr=!1;break e;case 3:_t=i.stateNode.containerInfo,Jr=!0;break e;case 4:_t=i.stateNode.containerInfo,Jr=!0;break e}i=i.return}if(_t===null)throw Error(re(160));cI(o,s,a),_t=null,Jr=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(c){at(a,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)uI(e,t),e=e.sibling}function uI(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Qr(e,t),pn(t),n&4){try{tl(3,t,t.return),lp(3,t)}catch(y){at(t,t.return,y)}try{tl(5,t,t.return)}catch(y){at(t,t.return,y)}}break;case 1:Qr(e,t),pn(t),n&512&&r!==null&&fs(r,r.return);break;case 5:if(Qr(e,t),pn(t),n&512&&r!==null&&fs(r,r.return),t.flags&32){var a=t.stateNode;try{yl(a,"")}catch(y){at(t,t.return,y)}}if(n&4&&(a=t.stateNode,a!=null)){var o=t.memoizedProps,s=r!==null?r.memoizedProps:o,i=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&DO(a,o),Bf(i,s);var c=Bf(i,o);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?MO(a,d):u==="dangerouslySetInnerHTML"?UO(a,d):u==="children"?yl(a,d):Iy(a,u,d,c)}switch(i){case"input":Rf(a,o);break;case"textarea":kO(a,o);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?As(a,!!o.multiple,h,!1):p!==!!o.multiple&&(o.defaultValue!=null?As(a,!!o.multiple,o.defaultValue,!0):As(a,!!o.multiple,o.multiple?[]:"",!1))}a[Vl]=o}catch(y){at(t,t.return,y)}}break;case 6:if(Qr(e,t),pn(t),n&4){if(t.stateNode===null)throw Error(re(162));a=t.stateNode,o=t.memoizedProps;try{a.nodeValue=o}catch(y){at(t,t.return,y)}}break;case 3:if(Qr(e,t),pn(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{xl(e.containerInfo)}catch(y){at(t,t.return,y)}break;case 4:Qr(e,t),pn(t);break;case 13:Qr(e,t),pn(t),a=t.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ov=st())),n&4&&kC(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(Qt=(c=Qt)||u,Qr(e,t),Qt=c):Qr(e,t),pn(t),n&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(se=t,u=t.child;u!==null;){for(d=se=u;se!==null;){switch(p=se,h=p.child,p.tag){case 0:case 11:case 14:case 15:tl(4,p,p.return);break;case 1:fs(p,p.return);var f=p.stateNode;if(typeof f.componentWillUnmount=="function"){n=p,r=p.return;try{e=n,f.props=e.memoizedProps,f.state=e.memoizedState,f.componentWillUnmount()}catch(y){at(n,r,y)}}break;case 5:fs(p,p.return);break;case 22:if(p.memoizedState!==null){UC(d);continue}}h!==null?(h.return=p,se=h):UC(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{a=d.stateNode,c?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=BO("display",s))}catch(y){at(t,t.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(y){at(t,t.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Qr(e,t),pn(t),n&4&&kC(t);break;case 21:break;default:Qr(e,t),pn(t)}}function pn(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(lI(r)){var n=r;break e}r=r.return}throw Error(re(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(yl(a,""),n.flags&=-33);var o=DC(t);pm(t,o,a);break;case 3:case 4:var s=n.stateNode.containerInfo,i=DC(t);dm(t,i,s);break;default:throw Error(re(161))}}catch(l){at(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function m2(t,e,r){se=t,dI(t)}function dI(t,e,r){for(var n=(t.mode&1)!==0;se!==null;){var a=se,o=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||Dc;if(!s){var i=a.alternate,l=i!==null&&i.memoizedState!==null||Qt;i=Dc;var c=Qt;if(Dc=s,(Qt=l)&&!c)for(se=a;se!==null;)s=se,l=s.child,s.tag===22&&s.memoizedState!==null?BC(a):l!==null?(l.return=s,se=l):BC(a);for(;o!==null;)se=o,dI(o),o=o.sibling;se=a,Dc=i,Qt=c}_C(t)}else a.subtreeFlags&8772&&o!==null?(o.return=a,se=o):_C(t)}}function _C(t){for(;se!==null;){var e=se;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Qt||lp(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!Qt)if(r===null)n.componentDidMount();else{var a=e.elementType===e.type?r.memoizedProps:Yr(e.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=e.updateQueue;o!==null&&gC(e,o,n);break;case 3:var s=e.updateQueue;if(s!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}gC(e,s,r)}break;case 5:var i=e.stateNode;if(r===null&&e.flags&4){r=i;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&xl(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}Qt||e.flags&512&&um(e)}catch(p){at(e,e.return,p)}}if(e===t){se=null;break}if(r=e.sibling,r!==null){r.return=e.return,se=r;break}se=e.return}}function UC(t){for(;se!==null;){var e=se;if(e===t){se=null;break}var r=e.sibling;if(r!==null){r.return=e.return,se=r;break}se=e.return}}function BC(t){for(;se!==null;){var e=se;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{lp(4,e)}catch(l){at(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var a=e.return;try{n.componentDidMount()}catch(l){at(e,a,l)}}var o=e.return;try{um(e)}catch(l){at(e,o,l)}break;case 5:var s=e.return;try{um(e)}catch(l){at(e,s,l)}}}catch(l){at(e,e.return,l)}if(e===t){se=null;break}var i=e.sibling;if(i!==null){i.return=e.return,se=i;break}se=e.return}}var y2=Math.ceil,sd=ua.ReactCurrentDispatcher,nv=ua.ReactCurrentOwner,Gr=ua.ReactCurrentBatchConfig,we=0,wt=null,pt=null,Mt=0,gr=0,ms=to(0),gt=0,Rl=null,bo=0,cp=0,av=0,rl=null,or=null,ov=0,Ns=1/0,jn=null,id=!1,hm=null,_a=null,kc=!1,wa=null,ld=0,nl=0,fm=null,mu=-1,yu=0;function rr(){return we&6?st():mu!==-1?mu:mu=st()}function Ua(t){return t.mode&1?we&2&&Mt!==0?Mt&-Mt:Zk.transition!==null?(yu===0&&(yu=WO()),yu):(t=ke,t!==0||(t=window.event,t=t===void 0?16:rV(t.type)),t):1}function rn(t,e,r,n){if(50<nl)throw nl=0,fm=null,Error(re(185));Kl(t,r,n),(!(we&2)||t!==wt)&&(t===wt&&(!(we&2)&&(cp|=r),gt===4&&Oa(t,Mt)),ur(t,n),r===1&&we===0&&!(e.mode&1)&&(Ns=st()+500,op&&ro()))}function ur(t,e){var r=t.callbackNode;ZD(t,e);var n=zu(t,t===wt?Mt:0);if(n===0)r!==null&&z1(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&z1(r),e===1)t.tag===0?Xk(MC.bind(null,t)):SV(MC.bind(null,t)),Kk(function(){!(we&6)&&ro()}),r=null;else{switch(YO(n)){case 1:r=Ry;break;case 4:r=QO;break;case 16:r=$u;break;case 536870912:r=KO;break;default:r=$u}r=CI(r,pI.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function pI(t,e){if(mu=-1,yu=0,we&6)throw Error(re(327));var r=t.callbackNode;if(bs()&&t.callbackNode!==r)return null;var n=zu(t,t===wt?Mt:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=cd(t,n);else{e=n;var a=we;we|=2;var o=fI();(wt!==t||Mt!==e)&&(jn=null,Ns=st()+500,Ao(t,e));do try{C2();break}catch(i){hI(t,i)}while(1);$y(),sd.current=o,we=a,pt!==null?e=0:(wt=null,Mt=0,e=gt)}if(e!==0){if(e===2&&(a=Gf(t),a!==0&&(n=a,e=mm(t,a))),e===1)throw r=Rl,Ao(t,0),Oa(t,n),ur(t,st()),r;if(e===6)Oa(t,n);else{if(a=t.current.alternate,!(n&30)&&!v2(a)&&(e=cd(t,n),e===2&&(o=Gf(t),o!==0&&(n=o,e=mm(t,o))),e===1))throw r=Rl,Ao(t,0),Oa(t,n),ur(t,st()),r;switch(t.finishedWork=a,t.finishedLanes=n,e){case 0:case 1:throw Error(re(345));case 2:uo(t,or,jn);break;case 3:if(Oa(t,n),(n&130023424)===n&&(e=ov+500-st(),10<e)){if(zu(t,0)!==0)break;if(a=t.suspendedLanes,(a&n)!==n){rr(),t.pingedLanes|=t.suspendedLanes&a;break}t.timeoutHandle=Wf(uo.bind(null,t,or,jn),e);break}uo(t,or,jn);break;case 4:if(Oa(t,n),(n&4194240)===n)break;for(e=t.eventTimes,a=-1;0<n;){var s=31-tn(n);o=1<<s,s=e[s],s>a&&(a=s),n&=~o}if(n=a,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*y2(n/1960))-n,10<n){t.timeoutHandle=Wf(uo.bind(null,t,or,jn),n);break}uo(t,or,jn);break;case 5:uo(t,or,jn);break;default:throw Error(re(329))}}}return ur(t,st()),t.callbackNode===r?pI.bind(null,t):null}function mm(t,e){var r=rl;return t.current.memoizedState.isDehydrated&&(Ao(t,e).flags|=256),t=cd(t,e),t!==2&&(e=or,or=r,e!==null&&ym(e)),t}function ym(t){or===null?or=t:or.push.apply(or,t)}function v2(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!sn(o(),a))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Oa(t,e){for(e&=~av,e&=~cp,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-tn(e),n=1<<r;t[r]=-1,e&=~n}}function MC(t){if(we&6)throw Error(re(327));bs();var e=zu(t,0);if(!(e&1))return ur(t,st()),null;var r=cd(t,e);if(t.tag!==0&&r===2){var n=Gf(t);n!==0&&(e=n,r=mm(t,n))}if(r===1)throw r=Rl,Ao(t,0),Oa(t,e),ur(t,st()),r;if(r===6)throw Error(re(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,uo(t,or,jn),ur(t,st()),null}function sv(t,e){var r=we;we|=1;try{return t(e)}finally{we=r,we===0&&(Ns=st()+500,op&&ro())}}function To(t){wa!==null&&wa.tag===0&&!(we&6)&&bs();var e=we;we|=1;var r=Gr.transition,n=ke;try{if(Gr.transition=null,ke=1,t)return t()}finally{ke=n,Gr.transition=r,we=e,!(we&6)&&ro()}}function iv(){gr=ms.current,qe(ms)}function Ao(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,Qk(r)),pt!==null)for(r=pt.return;r!==null;){var n=r;switch(Gy(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Yu();break;case 3:Fs(),qe(lr),qe(Jt),Yy();break;case 5:Wy(n);break;case 4:Fs();break;case 13:qe(et);break;case 19:qe(et);break;case 10:zy(n.type._context);break;case 22:case 23:iv()}r=r.return}if(wt=t,pt=t=Ba(t.current,null),Mt=gr=e,gt=0,Rl=null,av=cp=bo=0,or=rl=null,vo!==null){for(e=0;e<vo.length;e++)if(r=vo[e],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=a,n.next=s}r.pending=n}vo=null}return t}function hI(t,e){do{var r=pt;try{if($y(),pu.current=od,ad){for(var n=rt.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}ad=!1}if(wo=0,Vt=yt=rt=null,el=!1,bl=0,nv.current=null,r===null||r.return===null){gt=1,Rl=e,pt=null;break}e:{var o=t,s=r.return,i=r,l=e;if(e=Mt,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=i,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=OC(s);if(h!==null){h.flags&=-257,VC(h,s,i,o,e),h.mode&1&&AC(o,c,e),e=h,l=c;var f=e.updateQueue;if(f===null){var y=new Set;y.add(l),e.updateQueue=y}else f.add(l);break e}else{if(!(e&1)){AC(o,c,e),lv();break e}l=Error(re(426))}}else if(Xe&&i.mode&1){var v=OC(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),VC(v,s,i,o,e),Hy(Ls(l,i));break e}}o=l=Ls(l,i),gt!==4&&(gt=2),rl===null?rl=[o]:rl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,e&=-e,o.lanes|=e;var g=YV(o,l,e);vC(o,g);break e;case 1:i=l;var m=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(_a===null||!_a.has(C)))){o.flags|=65536,e&=-e,o.lanes|=e;var x=JV(o,i,e);vC(o,x);break e}}o=o.return}while(o!==null)}yI(r)}catch(S){e=S,pt===r&&r!==null&&(pt=r=r.return);continue}break}while(1)}function fI(){var t=sd.current;return sd.current=od,t===null?od:t}function lv(){(gt===0||gt===3||gt===2)&&(gt=4),wt===null||!(bo&268435455)&&!(cp&268435455)||Oa(wt,Mt)}function cd(t,e){var r=we;we|=2;var n=fI();(wt!==t||Mt!==e)&&(jn=null,Ao(t,e));do try{g2();break}catch(a){hI(t,a)}while(1);if($y(),we=r,sd.current=n,pt!==null)throw Error(re(261));return wt=null,Mt=0,gt}function g2(){for(;pt!==null;)mI(pt)}function C2(){for(;pt!==null&&!$D();)mI(pt)}function mI(t){var e=gI(t.alternate,t,gr);t.memoizedProps=t.pendingProps,e===null?yI(t):pt=e,nv.current=null}function yI(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=p2(r,e),r!==null){r.flags&=32767,pt=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{gt=6,pt=null;return}}else if(r=d2(r,e,gr),r!==null){pt=r;return}if(e=e.sibling,e!==null){pt=e;return}pt=e=t}while(e!==null);gt===0&&(gt=5)}function uo(t,e,r){var n=ke,a=Gr.transition;try{Gr.transition=null,ke=1,x2(t,e,r,n)}finally{Gr.transition=a,ke=n}return null}function x2(t,e,r,n){do bs();while(wa!==null);if(we&6)throw Error(re(327));r=t.finishedWork;var a=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(re(177));t.callbackNode=null,t.callbackPriority=0;var o=r.lanes|r.childLanes;if(ek(t,o),t===wt&&(pt=wt=null,Mt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||kc||(kc=!0,CI($u,function(){return bs(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Gr.transition,Gr.transition=null;var s=ke;ke=1;var i=we;we|=4,nv.current=null,f2(t,r),uI(r,t),Nk(Qf),qu=!!qf,Qf=qf=null,t.current=r,m2(r),zD(),we=i,ke=s,Gr.transition=o}else t.current=r;if(kc&&(kc=!1,wa=t,ld=a),o=t.pendingLanes,o===0&&(_a=null),KD(r.stateNode),ur(t,st()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)a=e[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(id)throw id=!1,t=hm,hm=null,t;return ld&1&&t.tag!==0&&bs(),o=t.pendingLanes,o&1?t===fm?nl++:(nl=0,fm=t):nl=0,ro(),null}function bs(){if(wa!==null){var t=YO(ld),e=Gr.transition,r=ke;try{if(Gr.transition=null,ke=16>t?16:t,wa===null)var n=!1;else{if(t=wa,wa=null,ld=0,we&6)throw Error(re(331));var a=we;for(we|=4,se=t.current;se!==null;){var o=se,s=o.child;if(se.flags&16){var i=o.deletions;if(i!==null){for(var l=0;l<i.length;l++){var c=i[l];for(se=c;se!==null;){var u=se;switch(u.tag){case 0:case 11:case 15:tl(8,u,o)}var d=u.child;if(d!==null)d.return=u,se=d;else for(;se!==null;){u=se;var p=u.sibling,h=u.return;if(iI(u),u===c){se=null;break}if(p!==null){p.return=h,se=p;break}se=h}}}var f=o.alternate;if(f!==null){var y=f.child;if(y!==null){f.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}se=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,se=s;else e:for(;se!==null;){if(o=se,o.flags&2048)switch(o.tag){case 0:case 11:case 15:tl(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,se=g;break e}se=o.return}}var m=t.current;for(se=m;se!==null;){s=se;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,se=C;else e:for(s=m;se!==null;){if(i=se,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:lp(9,i)}}catch(S){at(i,i.return,S)}if(i===s){se=null;break e}var x=i.sibling;if(x!==null){x.return=i.return,se=x;break e}se=i.return}}if(we=a,ro(),On&&typeof On.onPostCommitFiberRoot=="function")try{On.onPostCommitFiberRoot(ep,t)}catch{}n=!0}return n}finally{ke=r,Gr.transition=e}}return!1}function FC(t,e,r){e=Ls(r,e),e=YV(t,e,1),t=ka(t,e,1),e=rr(),t!==null&&(Kl(t,1,e),ur(t,e))}function at(t,e,r){if(t.tag===3)FC(t,t,r);else for(;e!==null;){if(e.tag===3){FC(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(_a===null||!_a.has(n))){t=Ls(r,t),t=JV(e,t,1),e=ka(e,t,1),t=rr(),e!==null&&(Kl(e,1,t),ur(e,t));break}}e=e.return}}function S2(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=rr(),t.pingedLanes|=t.suspendedLanes&r,wt===t&&(Mt&r)===r&&(gt===4||gt===3&&(Mt&130023424)===Mt&&500>st()-ov?Ao(t,0):av|=r),ur(t,e)}function vI(t,e){e===0&&(t.mode&1?(e=Ac,Ac<<=1,!(Ac&130023424)&&(Ac=4194304)):e=1);var r=rr();t=oa(t,e),t!==null&&(Kl(t,e,r),ur(t,r))}function P2(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),vI(t,r)}function A2(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(re(314))}n!==null&&n.delete(e),vI(t,r)}var gI;gI=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||lr.current)ir=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ir=!1,u2(t,e,r);ir=!!(t.flags&131072)}else ir=!1,Xe&&e.flags&1048576&&PV(e,Zu,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;fu(t,e),t=e.pendingProps;var a=Us(e,Jt.current);ws(e,r),a=Xy(null,e,n,t,a,r);var o=Zy();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,cr(n)?(o=!0,Ju(e)):o=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Qy(e),a.updater=ip,e.stateNode=a,a._reactInternals=e,rm(e,n,t,r),e=om(null,e,n,!0,o,r)):(e.tag=0,Xe&&o&&Ny(e),er(null,e,a,r),e=e.child),e;case 16:n=e.elementType;e:{switch(fu(t,e),t=e.pendingProps,a=n._init,n=a(n._payload),e.type=n,a=e.tag=V2(n),t=Yr(n,t),a){case 0:e=am(null,e,n,t,r);break e;case 1:e=bC(null,e,n,t,r);break e;case 11:e=IC(null,e,n,t,r);break e;case 14:e=wC(null,e,n,Yr(n.type,t),r);break e}throw Error(re(306,n,""))}return e;case 0:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Yr(n,a),am(t,e,n,a,r);case 1:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Yr(n,a),bC(t,e,n,a,r);case 3:e:{if(tI(e),t===null)throw Error(re(387));n=e.pendingProps,o=e.memoizedState,a=o.element,bV(t,e),rd(e,n,null,r);var s=e.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){a=Ls(Error(re(423)),e),e=TC(t,e,n,r,a);break e}else if(n!==a){a=Ls(Error(re(424)),e),e=TC(t,e,n,r,a);break e}else for(xr=Da(e.stateNode.containerInfo.firstChild),Pr=e,Xe=!0,Zr=null,r=IV(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Bs(),n===a){e=sa(t,e,r);break e}er(t,e,n,r)}e=e.child}return e;case 5:return TV(e),t===null&&Zf(e),n=e.type,a=e.pendingProps,o=t!==null?t.memoizedProps:null,s=a.children,Kf(n,a)?s=null:o!==null&&Kf(n,o)&&(e.flags|=32),eI(t,e),er(t,e,s,r),e.child;case 6:return t===null&&Zf(e),null;case 13:return rI(t,e,r);case 4:return Ky(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Ms(e,null,n,r):er(t,e,n,r),e.child;case 11:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Yr(n,a),IC(t,e,n,a,r);case 7:return er(t,e,e.pendingProps,r),e.child;case 8:return er(t,e,e.pendingProps.children,r),e.child;case 12:return er(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,a=e.pendingProps,o=e.memoizedProps,s=a.value,Ge(ed,n._currentValue),n._currentValue=s,o!==null)if(sn(o.value,s)){if(o.children===a.children&&!lr.current){e=sa(t,e,r);break e}}else for(o=e.child,o!==null&&(o.return=e);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var l=i.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Xn(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),em(o.return,r,e),i.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===e.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=r,i=s.alternate,i!==null&&(i.lanes|=r),em(s,r,e),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===e){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}er(t,e,a.children,r),e=e.child}return e;case 9:return a=e.type,n=e.pendingProps.children,ws(e,r),a=jr(a),n=n(a),e.flags|=1,er(t,e,n,r),e.child;case 14:return n=e.type,a=Yr(n,e.pendingProps),a=Yr(n.type,a),wC(t,e,n,a,r);case 15:return XV(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,a=e.pendingProps,a=e.elementType===n?a:Yr(n,a),fu(t,e),e.tag=1,cr(n)?(t=!0,Ju(e)):t=!1,ws(e,r),WV(e,n,a),rm(e,n,a,r),om(null,e,n,!0,t,r);case 19:return nI(t,e,r);case 22:return ZV(t,e,r)}throw Error(re(156,e.tag))};function CI(t,e){return qO(t,e)}function O2(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lr(t,e,r,n){return new O2(t,e,r,n)}function cv(t){return t=t.prototype,!(!t||!t.isReactComponent)}function V2(t){if(typeof t=="function")return cv(t)?1:0;if(t!=null){if(t=t.$$typeof,t===by)return 11;if(t===Ty)return 14}return 2}function Ba(t,e){var r=t.alternate;return r===null?(r=Lr(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function vu(t,e,r,n,a,o){var s=2;if(n=t,typeof t=="function")cv(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case os:return Oo(r.children,a,o,e);case wy:s=8,a|=8;break;case If:return t=Lr(12,r,e,a|2),t.elementType=If,t.lanes=o,t;case wf:return t=Lr(13,r,e,a),t.elementType=wf,t.lanes=o,t;case bf:return t=Lr(19,r,e,a),t.elementType=bf,t.lanes=o,t;case TO:return up(r,a,o,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case wO:s=10;break e;case bO:s=9;break e;case by:s=11;break e;case Ty:s=14;break e;case xa:s=16,n=null;break e}throw Error(re(130,t==null?t:typeof t,""))}return e=Lr(s,r,e,a),e.elementType=t,e.type=n,e.lanes=o,e}function Oo(t,e,r,n){return t=Lr(7,t,n,e),t.lanes=r,t}function up(t,e,r,n){return t=Lr(22,t,n,e),t.elementType=TO,t.lanes=r,t.stateNode={isHidden:!1},t}function Yh(t,e,r){return t=Lr(6,t,null,e),t.lanes=r,t}function Jh(t,e,r){return e=Lr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function I2(t,e,r,n,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rh(0),this.expirationTimes=Rh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rh(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function uv(t,e,r,n,a,o,s,i,l){return t=new I2(t,e,r,i,l),e===1?(e=1,o===!0&&(e|=8)):e=0,o=Lr(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qy(o),t}function w2(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:as,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function xI(t){if(!t)return qa;t=t._reactInternals;e:{if(Bo(t)!==t||t.tag!==1)throw Error(re(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(cr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(re(171))}if(t.tag===1){var r=t.type;if(cr(r))return xV(t,r,e)}return e}function SI(t,e,r,n,a,o,s,i,l){return t=uv(r,n,!0,t,a,o,s,i,l),t.context=xI(null),r=t.current,n=rr(),a=Ua(r),o=Xn(n,a),o.callback=e??null,ka(r,o,a),t.current.lanes=a,Kl(t,a,n),ur(t,n),t}function dp(t,e,r,n){var a=e.current,o=rr(),s=Ua(a);return r=xI(r),e.context===null?e.context=r:e.pendingContext=r,e=Xn(o,s),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=ka(a,e,s),t!==null&&(rn(t,a,s,o),du(t,a,s)),s}function ud(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function LC(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function dv(t,e){LC(t,e),(t=t.alternate)&&LC(t,e)}function b2(){return null}var PI=typeof reportError=="function"?reportError:function(t){console.error(t)};function pv(t){this._internalRoot=t}pp.prototype.render=pv.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(re(409));dp(t,e,null,null)};pp.prototype.unmount=pv.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;To(function(){dp(null,t,null,null)}),e[aa]=null}};function pp(t){this._internalRoot=t}pp.prototype.unstable_scheduleHydration=function(t){if(t){var e=ZO();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Aa.length&&e!==0&&e<Aa[r].priority;r++);Aa.splice(r,0,t),r===0&&tV(t)}};function hv(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function hp(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function NC(){}function T2(t,e,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var c=ud(s);o.call(c)}}var s=SI(e,n,t,0,null,!1,!1,"",NC);return t._reactRootContainer=s,t[aa]=s.current,Al(t.nodeType===8?t.parentNode:t),To(),s}for(;a=t.lastChild;)t.removeChild(a);if(typeof n=="function"){var i=n;n=function(){var c=ud(l);i.call(c)}}var l=uv(t,0,!1,null,null,!1,!1,"",NC);return t._reactRootContainer=l,t[aa]=l.current,Al(t.nodeType===8?t.parentNode:t),To(function(){dp(e,l,r,n)}),l}function fp(t,e,r,n,a){var o=r._reactRootContainer;if(o){var s=o;if(typeof a=="function"){var i=a;a=function(){var l=ud(s);i.call(l)}}dp(e,s,t,a)}else s=T2(r,e,t,a,n);return ud(s)}JO=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Ni(e.pendingLanes);r!==0&&(Dy(e,r|1),ur(e,st()),!(we&6)&&(Ns=st()+500,ro()))}break;case 13:To(function(){var n=oa(t,1);if(n!==null){var a=rr();rn(n,t,1,a)}}),dv(t,1)}};ky=function(t){if(t.tag===13){var e=oa(t,134217728);if(e!==null){var r=rr();rn(e,t,134217728,r)}dv(t,134217728)}};XO=function(t){if(t.tag===13){var e=Ua(t),r=oa(t,e);if(r!==null){var n=rr();rn(r,t,e,n)}dv(t,e)}};ZO=function(){return ke};eV=function(t,e){var r=ke;try{return ke=t,e()}finally{ke=r}};Ff=function(t,e,r){switch(e){case"input":if(Rf(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var a=ap(n);if(!a)throw Error(re(90));RO(n),Rf(n,a)}}}break;case"textarea":kO(t,r);break;case"select":e=r.value,e!=null&&As(t,!!r.multiple,e,!1)}};NO=sv;GO=To;var E2={usingClientEntryPoint:!1,Events:[Yl,cs,ap,FO,LO,sv]},Vi={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},R2={bundleType:Vi.bundleType,version:Vi.version,rendererPackageName:Vi.rendererPackageName,rendererConfig:Vi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=$O(t),t===null?null:t.stateNode},findFiberByHostInstance:Vi.findFiberByHostInstance||b2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_c.isDisabled&&_c.supportsFiber)try{ep=_c.inject(R2),On=_c}catch{}}wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E2;wr.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hv(e))throw Error(re(200));return w2(t,e,null,r)};wr.createRoot=function(t,e){if(!hv(t))throw Error(re(299));var r=!1,n="",a=PI;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(a=e.onRecoverableError)),e=uv(t,1,!1,null,null,r,!1,n,a),t[aa]=e.current,Al(t.nodeType===8?t.parentNode:t),new pv(e)};wr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(re(188)):(t=Object.keys(t).join(","),Error(re(268,t)));return t=$O(e),t=t===null?null:t.stateNode,t};wr.flushSync=function(t){return To(t)};wr.hydrate=function(t,e,r){if(!hp(e))throw Error(re(200));return fp(null,t,e,!0,r)};wr.hydrateRoot=function(t,e,r){if(!hv(t))throw Error(re(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",s=PI;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),e=SI(e,null,t,1,r??null,a,!1,o,s),t[aa]=e.current,Al(t),n)for(t=0;t<n.length;t++)r=n[t],a=r._getVersion,a=a(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,a]:e.mutableSourceEagerHydrationData.push(r,a);return new pp(e)};wr.render=function(t,e,r){if(!hp(e))throw Error(re(200));return fp(null,t,e,!1,r)};wr.unmountComponentAtNode=function(t){if(!hp(t))throw Error(re(40));return t._reactRootContainer?(To(function(){fp(null,null,t,!1,function(){t._reactRootContainer=null,t[aa]=null})}),!0):!1};wr.unstable_batchedUpdates=sv;wr.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!hp(r))throw Error(re(200));if(t==null||t._reactInternals===void 0)throw Error(re(38));return fp(t,e,r,!1,n)};wr.version="18.3.1-next-f1338f8080-20240426";function AI(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(AI)}catch(t){console.error(t)}}AI(),AO.exports=wr;var mp=AO.exports;const mq=ti(mp);var OI,GC=mp;OI=Of.createRoot=GC.createRoot,Of.hydrateRoot=GC.hydrateRoot;var VI={exports:{}},II={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* use-sync-external-store-shim.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var Gs=B;function D2(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var k2=typeof Object.is=="function"?Object.is:D2,_2=Gs.useState,U2=Gs.useEffect,B2=Gs.useLayoutEffect,M2=Gs.useDebugValue;function F2(t,e){var r=e(),n=_2({inst:{value:r,getSnapshot:e}}),a=n[0].inst,o=n[1];return B2(function(){a.value=r,a.getSnapshot=e,Xh(a)&&o({inst:a})},[t,r,e]),U2(function(){return Xh(a)&&o({inst:a}),t(function(){Xh(a)&&o({inst:a})})},[t]),M2(r),r}function Xh(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!k2(t,r)}catch{return!0}}function L2(t,e){return e()}var N2=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?L2:F2;II.useSyncExternalStore=Gs.useSyncExternalStore!==void 0?Gs.useSyncExternalStore:N2;VI.exports=II;var G2=VI.exports,wI={exports:{}},bI={};/**
|
|
49
|
+
* @license React
|
|
50
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/var yp=B,H2=G2;function j2(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var $2=typeof Object.is=="function"?Object.is:j2,z2=H2.useSyncExternalStore,q2=yp.useRef,Q2=yp.useEffect,K2=yp.useMemo,W2=yp.useDebugValue;bI.useSyncExternalStoreWithSelector=function(t,e,r,n,a){var o=q2(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=K2(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),a!==void 0&&s.hasValue){var f=s.value;if(a(f,h))return d=f}return d=h}if(f=d,$2(u,h))return f;var y=n(h);return a!==void 0&&a(f,y)?(u=h,f):(u=h,d=y)}var c=!1,u,d,p=r===void 0?null:r;return[function(){return l(e())},p===null?void 0:function(){return l(p())}]},[e,r,n,a]);var i=z2(t,o[0],o[1]);return Q2(function(){s.hasValue=!0,s.value=i},[i]),W2(i),i};wI.exports=bI;var Y2=wI.exports;function J2(t){t()}let TI=J2;const X2=t=>TI=t,Z2=()=>TI,HC=Symbol.for("react-redux-context"),jC=typeof globalThis<"u"?globalThis:{};function e_(){var t;if(!B.createContext)return{};const e=(t=jC[HC])!=null?t:jC[HC]=new Map;let r=e.get(B.createContext);return r||(r=B.createContext(null),e.set(B.createContext,r)),r}const Qa=e_();function fv(t=Qa){return function(){return B.useContext(t)}}const EI=fv(),t_=()=>{throw new Error("uSES not initialized!")};let RI=t_;const r_=t=>{RI=t},n_=(t,e)=>t===e;function a_(t=Qa){const e=t===Qa?EI:fv(t);return function(n,a={}){const{equalityFn:o=n_,stabilityCheck:s=void 0,noopCheck:i=void 0}=typeof a=="function"?{equalityFn:a}:a,{store:l,subscription:c,getServerState:u,stabilityCheck:d,noopCheck:p}=e();B.useRef(!0);const h=B.useCallback({[n.name](y){return n(y)}}[n.name],[n,d,s]),f=RI(c.addNestedSub,l.getState,u||l.getState,h,o);return B.useDebugValue(f),f}}const DI=a_();var kI={exports:{}},_e={};/** @license React v16.13.1
|
|
57
|
+
* react-is.production.min.js
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/var Tt=typeof Symbol=="function"&&Symbol.for,mv=Tt?Symbol.for("react.element"):60103,yv=Tt?Symbol.for("react.portal"):60106,vp=Tt?Symbol.for("react.fragment"):60107,gp=Tt?Symbol.for("react.strict_mode"):60108,Cp=Tt?Symbol.for("react.profiler"):60114,xp=Tt?Symbol.for("react.provider"):60109,Sp=Tt?Symbol.for("react.context"):60110,vv=Tt?Symbol.for("react.async_mode"):60111,Pp=Tt?Symbol.for("react.concurrent_mode"):60111,Ap=Tt?Symbol.for("react.forward_ref"):60112,Op=Tt?Symbol.for("react.suspense"):60113,o_=Tt?Symbol.for("react.suspense_list"):60120,Vp=Tt?Symbol.for("react.memo"):60115,Ip=Tt?Symbol.for("react.lazy"):60116,s_=Tt?Symbol.for("react.block"):60121,i_=Tt?Symbol.for("react.fundamental"):60117,l_=Tt?Symbol.for("react.responder"):60118,c_=Tt?Symbol.for("react.scope"):60119;function Tr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case mv:switch(t=t.type,t){case vv:case Pp:case vp:case Cp:case gp:case Op:return t;default:switch(t=t&&t.$$typeof,t){case Sp:case Ap:case Ip:case Vp:case xp:return t;default:return e}}case yv:return e}}}function _I(t){return Tr(t)===Pp}_e.AsyncMode=vv;_e.ConcurrentMode=Pp;_e.ContextConsumer=Sp;_e.ContextProvider=xp;_e.Element=mv;_e.ForwardRef=Ap;_e.Fragment=vp;_e.Lazy=Ip;_e.Memo=Vp;_e.Portal=yv;_e.Profiler=Cp;_e.StrictMode=gp;_e.Suspense=Op;_e.isAsyncMode=function(t){return _I(t)||Tr(t)===vv};_e.isConcurrentMode=_I;_e.isContextConsumer=function(t){return Tr(t)===Sp};_e.isContextProvider=function(t){return Tr(t)===xp};_e.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===mv};_e.isForwardRef=function(t){return Tr(t)===Ap};_e.isFragment=function(t){return Tr(t)===vp};_e.isLazy=function(t){return Tr(t)===Ip};_e.isMemo=function(t){return Tr(t)===Vp};_e.isPortal=function(t){return Tr(t)===yv};_e.isProfiler=function(t){return Tr(t)===Cp};_e.isStrictMode=function(t){return Tr(t)===gp};_e.isSuspense=function(t){return Tr(t)===Op};_e.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===vp||t===Pp||t===Cp||t===gp||t===Op||t===o_||typeof t=="object"&&t!==null&&(t.$$typeof===Ip||t.$$typeof===Vp||t.$$typeof===xp||t.$$typeof===Sp||t.$$typeof===Ap||t.$$typeof===i_||t.$$typeof===l_||t.$$typeof===c_||t.$$typeof===s_)};_e.typeOf=Tr;kI.exports=_e;var u_=kI.exports,gv=u_,d_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},p_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},h_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Cv={};Cv[gv.ForwardRef]=h_;Cv[gv.Memo]=UI;function $C(t){return gv.isMemo(t)?UI:Cv[t.$$typeof]||d_}var f_=Object.defineProperty,m_=Object.getOwnPropertyNames,zC=Object.getOwnPropertySymbols,y_=Object.getOwnPropertyDescriptor,v_=Object.getPrototypeOf,qC=Object.prototype;function BI(t,e,r){if(typeof e!="string"){if(qC){var n=v_(e);n&&n!==qC&&BI(t,n,r)}var a=m_(e);zC&&(a=a.concat(zC(e)));for(var o=$C(t),s=$C(e),i=0;i<a.length;++i){var l=a[i];if(!p_[l]&&!(r&&r[l])&&!(s&&s[l])&&!(o&&o[l])){var c=y_(e,l);try{f_(t,l,c)}catch{}}}}return t}var g_=BI;const yq=ti(g_);var Me={};/**
|
|
64
|
+
* @license React
|
|
65
|
+
* react-is.production.min.js
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the MIT license found in the
|
|
70
|
+
* LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var xv=Symbol.for("react.element"),Sv=Symbol.for("react.portal"),wp=Symbol.for("react.fragment"),bp=Symbol.for("react.strict_mode"),Tp=Symbol.for("react.profiler"),Ep=Symbol.for("react.provider"),Rp=Symbol.for("react.context"),C_=Symbol.for("react.server_context"),Dp=Symbol.for("react.forward_ref"),kp=Symbol.for("react.suspense"),_p=Symbol.for("react.suspense_list"),Up=Symbol.for("react.memo"),Bp=Symbol.for("react.lazy"),x_=Symbol.for("react.offscreen"),MI;MI=Symbol.for("react.module.reference");function zr(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case xv:switch(t=t.type,t){case wp:case Tp:case bp:case kp:case _p:return t;default:switch(t=t&&t.$$typeof,t){case C_:case Rp:case Dp:case Bp:case Up:case Ep:return t;default:return e}}case Sv:return e}}}Me.ContextConsumer=Rp;Me.ContextProvider=Ep;Me.Element=xv;Me.ForwardRef=Dp;Me.Fragment=wp;Me.Lazy=Bp;Me.Memo=Up;Me.Portal=Sv;Me.Profiler=Tp;Me.StrictMode=bp;Me.Suspense=kp;Me.SuspenseList=_p;Me.isAsyncMode=function(){return!1};Me.isConcurrentMode=function(){return!1};Me.isContextConsumer=function(t){return zr(t)===Rp};Me.isContextProvider=function(t){return zr(t)===Ep};Me.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===xv};Me.isForwardRef=function(t){return zr(t)===Dp};Me.isFragment=function(t){return zr(t)===wp};Me.isLazy=function(t){return zr(t)===Bp};Me.isMemo=function(t){return zr(t)===Up};Me.isPortal=function(t){return zr(t)===Sv};Me.isProfiler=function(t){return zr(t)===Tp};Me.isStrictMode=function(t){return zr(t)===bp};Me.isSuspense=function(t){return zr(t)===kp};Me.isSuspenseList=function(t){return zr(t)===_p};Me.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===wp||t===Tp||t===bp||t===kp||t===_p||t===x_||typeof t=="object"&&t!==null&&(t.$$typeof===Bp||t.$$typeof===Up||t.$$typeof===Ep||t.$$typeof===Rp||t.$$typeof===Dp||t.$$typeof===MI||t.getModuleId!==void 0)};Me.typeOf=zr;function S_(){const t=Z2();let e=null,r=null;return{clear(){e=null,r=null},notify(){t(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],a=e;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0,o=r={callback:n,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}const QC={notify(){},get:()=>[]};function P_(t,e){let r,n=QC,a=0,o=!1;function s(y){u();const v=n.subscribe(y);let g=!1;return()=>{g||(g=!0,v(),d())}}function i(){n.notify()}function l(){f.onStateChange&&f.onStateChange()}function c(){return o}function u(){a++,r||(r=e?e.addNestedSub(l):t.subscribe(l),n=S_())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=QC)}function p(){o||(o=!0,u())}function h(){o&&(o=!1,d())}const f={addNestedSub:s,notifyNestedSubs:i,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:h,getListeners:()=>n};return f}const A_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O_=A_?B.useLayoutEffect:B.useEffect;function KC(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function dd(t,e){if(KC(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let a=0;a<r.length;a++)if(!Object.prototype.hasOwnProperty.call(e,r[a])||!KC(t[r[a]],e[r[a]]))return!1;return!0}function V_({store:t,context:e,children:r,serverState:n,stabilityCheck:a="once",noopCheck:o="once"}){const s=B.useMemo(()=>{const c=P_(t);return{store:t,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:a,noopCheck:o}},[t,n,a,o]),i=B.useMemo(()=>t.getState(),[t]);O_(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),i!==t.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,i]);const l=e||Qa;return B.createElement(l.Provider,{value:s},r)}function FI(t=Qa){const e=t===Qa?EI:fv(t);return function(){const{store:n}=e();return n}}const LI=FI();function I_(t=Qa){const e=t===Qa?LI:FI(t);return function(){return e().dispatch}}const Pv=I_();r_(Y2.useSyncExternalStoreWithSelector);X2(mp.unstable_batchedUpdates);/**
|
|
72
|
+
* @remix-run/router v1.23.0
|
|
73
|
+
*
|
|
74
|
+
* Copyright (c) Remix Software Inc.
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the MIT license found in the
|
|
77
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
78
|
+
*
|
|
79
|
+
* @license MIT
|
|
80
|
+
*/function Dl(){return Dl=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},Dl.apply(this,arguments)}var ba;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(ba||(ba={}));const WC="popstate";function w_(t){t===void 0&&(t={});function e(n,a){let{pathname:o,search:s,hash:i}=n.location;return vm("",{pathname:o,search:s,hash:i},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:pd(a)}return T_(e,r,null,t)}function lt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function NI(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function b_(){return Math.random().toString(36).substr(2,8)}function YC(t,e){return{usr:t.state,key:t.key,idx:e}}function vm(t,e,r,n){return r===void 0&&(r=null),Dl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?oi(e):e,{state:r,key:e&&e.key||n||b_()})}function pd(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 oi(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 T_(t,e,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,i=ba.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Dl({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){i=ba.Pop;let v=u(),g=v==null?null:v-c;c=v,l&&l({action:i,location:y.location,delta:g})}function p(v,g){i=ba.Push;let m=vm(y.location,v,g);r&&r(m,v),c=u()+1;let C=YC(m,c),x=y.createHref(m);try{s.pushState(C,"",x)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(x)}o&&l&&l({action:i,location:y.location,delta:1})}function h(v,g){i=ba.Replace;let m=vm(y.location,v,g);r&&r(m,v),c=u();let C=YC(m,c),x=y.createHref(m);s.replaceState(C,"",x),o&&l&&l({action:i,location:y.location,delta:0})}function f(v){let g=a.location.origin!=="null"?a.location.origin:a.location.href,m=typeof v=="string"?v:pd(v);return m=m.replace(/ $/,"%20"),lt(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return i},get location(){return t(a,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(WC,d),l=v,()=>{a.removeEventListener(WC,d),l=null}},createHref(v){return e(a,v)},createURL:f,encodeLocation(v){let g=f(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:h,go(v){return s.go(v)}};return y}var JC;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(JC||(JC={}));function E_(t,e,r){return r===void 0&&(r="/"),R_(t,e,r,!1)}function R_(t,e,r,n){let a=typeof e=="string"?oi(e):e,o=Av(a.pathname||"/",r);if(o==null)return null;let s=GI(t);D_(s);let i=null;for(let l=0;i==null&&l<s.length;++l){let c=j_(o);i=G_(s[l],c,n)}return i}function GI(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,s,i)=>{let l={relativePath:i===void 0?o.path||"":i,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(lt(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ma([n,l.relativePath]),u=r.concat(l);o.children&&o.children.length>0&&(lt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),GI(o.children,e,u,c)),!(o.path==null&&!o.index)&&e.push({path:c,score:L_(c,o.index),routesMeta:u})};return t.forEach((o,s)=>{var i;if(o.path===""||!((i=o.path)!=null&&i.includes("?")))a(o,s);else for(let l of HI(o.path))a(o,s,l)}),e}function HI(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=HI(n.join("/")),i=[];return i.push(...s.map(l=>l===""?o:[o,l].join("/"))),a&&i.push(...s),i.map(l=>t.startsWith("/")&&l===""?"/":l)}function D_(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:N_(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const k_=/^:[\w-]+$/,__=3,U_=2,B_=1,M_=10,F_=-2,XC=t=>t==="*";function L_(t,e){let r=t.split("/"),n=r.length;return r.some(XC)&&(n+=F_),e&&(n+=U_),r.filter(a=>!XC(a)).reduce((a,o)=>a+(k_.test(o)?__:o===""?B_:M_),n)}function N_(t,e){return t.length===e.length&&t.slice(0,-1).every((n,a)=>n===e[a])?t[t.length-1]-e[e.length-1]:0}function G_(t,e,r){r===void 0&&(r=!1);let{routesMeta:n}=t,a={},o="/",s=[];for(let i=0;i<n.length;++i){let l=n[i],c=i===n.length-1,u=o==="/"?e:e.slice(o.length)||"/",d=ZC({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=ZC({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:Ma([o,d.pathname]),pathnameBase:Q_(Ma([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=Ma([o,d.pathnameBase]))}return s}function ZC(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=H_(t.path,t.caseSensitive,t.end),a=e.match(r);if(!a)return null;let o=a[0],s=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:p,isOptional:h}=u;if(p==="*"){let y=i[d]||"";s=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const f=i[d];return h&&!f?c[p]=void 0:c[p]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:t}}function H_(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),NI(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=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,l)=>(n.push({paramName:i,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),n]}function j_(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return NI(!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 Av(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)||"/"}function $_(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:a=""}=typeof t=="string"?oi(t):t;return{pathname:r?r.startsWith("/")?r:z_(r,e):e,search:K_(n),hash:W_(a)}}function z_(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Zh(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 q_(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Ov(t,e){let r=q_(t);return e?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Vv(t,e,r,n){n===void 0&&(n=!1);let a;typeof t=="string"?a=oi(t):(a=Dl({},t),lt(!a.pathname||!a.pathname.includes("?"),Zh("?","pathname","search",a)),lt(!a.pathname||!a.pathname.includes("#"),Zh("#","pathname","hash",a)),lt(!a.search||!a.search.includes("#"),Zh("#","search","hash",a)));let o=t===""||a.pathname==="",s=o?"/":a.pathname,i;if(s==null)i=r;else{let d=e.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}i=d>=0?e[d]:"/"}let l=$_(a,i),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ma=t=>t.join("/").replace(/\/\/+/g,"/"),Q_=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),K_=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,W_=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Y_(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const jI=["post","put","patch","delete"];new Set(jI);const J_=["get",...jI];new Set(J_);/**
|
|
81
|
+
* React Router v6.30.1
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) Remix Software Inc.
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
87
|
+
*
|
|
88
|
+
* @license MIT
|
|
89
|
+
*/function kl(){return kl=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},kl.apply(this,arguments)}const Iv=B.createContext(null),X_=B.createContext(null),no=B.createContext(null),Mp=B.createContext(null),_n=B.createContext({outlet:null,matches:[],isDataRoute:!1}),$I=B.createContext(null);function Z_(t,e){let{relative:r}=e===void 0?{}:e;si()||lt(!1);let{basename:n,navigator:a}=B.useContext(no),{hash:o,pathname:s,search:i}=qI(t,{relative:r}),l=s;return n!=="/"&&(l=s==="/"?n:Ma([n,s])),a.createHref({pathname:l,search:i,hash:o})}function si(){return B.useContext(Mp)!=null}function Mo(){return si()||lt(!1),B.useContext(Mp).location}function zI(t){B.useContext(no).static||B.useLayoutEffect(t)}function Fp(){let{isDataRoute:t}=B.useContext(_n);return t?fU():eU()}function eU(){si()||lt(!1);let t=B.useContext(Iv),{basename:e,future:r,navigator:n}=B.useContext(no),{matches:a}=B.useContext(_n),{pathname:o}=Mo(),s=JSON.stringify(Ov(a,r.v7_relativeSplatPath)),i=B.useRef(!1);return zI(()=>{i.current=!0}),B.useCallback(function(c,u){if(u===void 0&&(u={}),!i.current)return;if(typeof c=="number"){n.go(c);return}let d=Vv(c,JSON.parse(s),o,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Ma([e,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[e,n,s,o,t])}const tU=B.createContext(null);function rU(t){let e=B.useContext(_n).outlet;return e&&B.createElement(tU.Provider,{value:t},e)}function vq(){let{matches:t}=B.useContext(_n),e=t[t.length-1];return e?e.params:{}}function qI(t,e){let{relative:r}=e===void 0?{}:e,{future:n}=B.useContext(no),{matches:a}=B.useContext(_n),{pathname:o}=Mo(),s=JSON.stringify(Ov(a,n.v7_relativeSplatPath));return B.useMemo(()=>Vv(t,JSON.parse(s),o,r==="path"),[t,s,o,r])}function nU(t,e){return aU(t,e)}function aU(t,e,r,n){si()||lt(!1);let{navigator:a}=B.useContext(no),{matches:o}=B.useContext(_n),s=o[o.length-1],i=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Mo(),u;if(e){var d;let v=typeof e=="string"?oi(e):e;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||lt(!1),u=v}else u=c;let p=u.pathname||"/",h=p;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let f=E_(t,{pathname:h}),y=cU(f&&f.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:Ma([l,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Ma([l,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r,n);return e&&y?B.createElement(Mp.Provider,{value:{location:kl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ba.Pop}},y):y}function oU(){let t=hU(),e=Y_(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},e),r?B.createElement("pre",{style:a},r):null,o)}const sU=B.createElement(oU,null);class iU extends B.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?B.createElement(_n.Provider,{value:this.props.routeContext},B.createElement($I.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function lU(t){let{routeContext:e,match:r,children:n}=t,a=B.useContext(Iv);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(_n.Provider,{value:e},n)}function cU(t,e,r,n){var a;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var o;if(!r)return null;if(r.errors)t=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let s=t,i=(a=r)==null?void 0:a.errors;if(i!=null){let u=s.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);u>=0||lt(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:p,errors:h}=r,f=d.route.loader&&p[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||f){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,p)=>{let h,f=!1,y=null,v=null;r&&(h=i&&d.route.id?i[d.route.id]:void 0,y=d.route.errorElement||sU,l&&(c<0&&p===0?(mU("route-fallback",!1),f=!0,v=null):c===p&&(f=!0,v=d.route.hydrateFallbackElement||null)));let g=e.concat(s.slice(0,p+1)),m=()=>{let C;return h?C=y:f?C=v:d.route.Component?C=B.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,B.createElement(lU,{match:d,routeContext:{outlet:u,matches:g,isDataRoute:r!=null},children:C})};return r&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?B.createElement(iU,{location:r.location,revalidation:r.revalidation,component:y,error:h,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var QI=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(QI||{}),hd=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}(hd||{});function uU(t){let e=B.useContext(Iv);return e||lt(!1),e}function dU(t){let e=B.useContext(X_);return e||lt(!1),e}function pU(t){let e=B.useContext(_n);return e||lt(!1),e}function KI(t){let e=pU(),r=e.matches[e.matches.length-1];return r.route.id||lt(!1),r.route.id}function hU(){var t;let e=B.useContext($I),r=dU(hd.UseRouteError),n=KI(hd.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function fU(){let{router:t}=uU(QI.UseNavigateStable),e=KI(hd.UseNavigateStable),r=B.useRef(!1);return zI(()=>{r.current=!0}),B.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,kl({fromRouteId:e},o)))},[t,e])}const ex={};function mU(t,e,r){!e&&!ex[t]&&(ex[t]=!0)}function yU(t,e){t==null||t.v7_startTransition,(t==null?void 0:t.v7_relativeSplatPath)===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function gq(t){let{to:e,replace:r,state:n,relative:a}=t;si()||lt(!1);let{future:o,static:s}=B.useContext(no),{matches:i}=B.useContext(_n),{pathname:l}=Mo(),c=Fp(),u=Vv(e,Ov(i,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(u);return B.useEffect(()=>c(JSON.parse(d),{replace:r,state:n,relative:a}),[c,d,a,r,n]),null}function Cq(t){return rU(t.context)}function vU(t){lt(!1)}function gU(t){let{basename:e="/",children:r=null,location:n,navigationType:a=ba.Pop,navigator:o,static:s=!1,future:i}=t;si()&<(!1);let l=e.replace(/^\/*/,"/"),c=B.useMemo(()=>({basename:l,navigator:o,static:s,future:kl({v7_relativeSplatPath:!1},i)}),[l,i,o,s]);typeof n=="string"&&(n=oi(n));let{pathname:u="/",search:d="",hash:p="",state:h=null,key:f="default"}=n,y=B.useMemo(()=>{let v=Av(u,l);return v==null?null:{location:{pathname:v,search:d,hash:p,state:h,key:f},navigationType:a}},[l,u,d,p,h,f,a]);return y==null?null:B.createElement(no.Provider,{value:c},B.createElement(Mp.Provider,{children:r,value:y}))}function xq(t){let{children:e,location:r}=t;return nU(gm(e),r)}new Promise(()=>{});function gm(t,e){e===void 0&&(e=[]);let r=[];return B.Children.forEach(t,(n,a)=>{if(!B.isValidElement(n))return;let o=[...e,a];if(n.type===B.Fragment){r.push.apply(r,gm(n.props.children,o));return}n.type!==vU&<(!1),!n.props.index||!n.props.children||lt(!1);let s={id:n.props.id||o.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&&(s.children=gm(n.props.children,o)),r.push(s)}),r}/**
|
|
90
|
+
* React Router DOM v6.30.1
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) Remix Software Inc.
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
96
|
+
*
|
|
97
|
+
* @license MIT
|
|
98
|
+
*/function Cm(){return Cm=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},Cm.apply(this,arguments)}function CU(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o<n.length;o++)a=n[o],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function xU(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function SU(t,e){return t.button===0&&(!e||e==="_self")&&!xU(t)}function xm(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,r)=>{let n=t[r];return e.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function PU(t,e){let r=xm(t);return e&&e.forEach((n,a)=>{r.has(a)||e.getAll(a).forEach(o=>{r.append(a,o)})}),r}const AU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],OU="6";try{window.__reactRouterVersion=OU}catch{}const VU="startTransition",tx=Af[VU];function IU(t){let{basename:e,children:r,future:n,window:a}=t,o=B.useRef();o.current==null&&(o.current=w_({window:a,v5Compat:!0}));let s=o.current,[i,l]=B.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},u=B.useCallback(d=>{c&&tx?tx(()=>l(d)):l(d)},[l,c]);return B.useLayoutEffect(()=>s.listen(u),[s,u]),B.useEffect(()=>yU(n),[n]),B.createElement(gU,{basename:e,children:r,location:i.location,navigationType:i.action,navigator:s,future:n})}const wU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sq=B.forwardRef(function(e,r){let{onClick:n,relative:a,reloadDocument:o,replace:s,state:i,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,p=CU(e,AU),{basename:h}=B.useContext(no),f,y=!1;if(typeof c=="string"&&bU.test(c)&&(f=c,wU))try{let C=new URL(window.location.href),x=c.startsWith("//")?new URL(C.protocol+c):new URL(c),S=Av(x.pathname,h);x.origin===C.origin&&S!=null?c=S+x.search+x.hash:y=!0}catch{}let v=Z_(c,{relative:a}),g=TU(c,{replace:s,state:i,target:l,preventScrollReset:u,relative:a,viewTransition:d});function m(C){n&&n(C),C.defaultPrevented||g(C)}return B.createElement("a",Cm({},p,{href:f||v,onClick:y||o?n:m,ref:r,target:l}))});var rx;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(rx||(rx={}));var nx;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(nx||(nx={}));function TU(t,e){let{target:r,replace:n,state:a,preventScrollReset:o,relative:s,viewTransition:i}=e===void 0?{}:e,l=Fp(),c=Mo(),u=qI(t,{relative:s});return B.useCallback(d=>{if(SU(d,r)){d.preventDefault();let p=n!==void 0?n:pd(c)===pd(u);l(t,{replace:p,state:a,preventScrollReset:o,relative:s,viewTransition:i})}},[c,l,u,n,a,r,t,o,s,i])}function Pq(t){let e=B.useRef(xm(t)),r=B.useRef(!1),n=Mo(),a=B.useMemo(()=>PU(n.search,r.current?null:e.current),[n.search]),o=Fp(),s=B.useCallback((i,l)=>{const c=xm(typeof i=="function"?i(a):i);r.current=!0,o("?"+c,l)},[o,a]);return[a,s]}function gu(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gu=function(r){return typeof r}:gu=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gu(t)}function EU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ax(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function RU(t,e,r){return e&&ax(t.prototype,e),r&&ax(t,r),t}function DU(t,e){return e&&(gu(e)==="object"||typeof e=="function")?e:Cu(t)}function Sm(t){return Sm=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Sm(t)}function Cu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pm(t,e)}function Pm(t,e){return Pm=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Pm(t,e)}function xu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var WI=function(t){kU(e,t);function e(){var r,n;EU(this,e);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return n=DU(this,(r=Sm(e)).call.apply(r,[this].concat(o))),xu(Cu(n),"state",{bootstrapped:!1}),xu(Cu(n),"_unsubscribe",void 0),xu(Cu(n),"handlePersistorState",function(){var i=n.props.persistor,l=i.getState(),c=l.bootstrapped;c&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally(function(){return n.setState({bootstrapped:!0})}):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())}),n}return RU(e,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),e}(B.PureComponent);xu(WI,"defaultProps",{children:null,loading:null});function Bt(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ln(t){return!!t&&!!t[$e]}function cn(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===HU}(t)||Array.isArray(t)||!!t[al]||!!(!((e=t.constructor)===null||e===void 0)&&e[al])||Lp(t)||Np(t))}function _U(t){return ln(t)||Bt(23,t),t[$e].t}function Ka(t,e,r){r===void 0&&(r=!1),Wa(t)===0?(r?Object.keys:Ts)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Wa(t){var e=t[$e];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Lp(t)?2:Np(t)?3:0}function Fa(t,e){return Wa(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Su(t,e){return Wa(t)===2?t.get(e):t[e]}function YI(t,e,r){var n=Wa(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function JI(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Lp(t){return NU&&t instanceof Map}function Np(t){return GU&&t instanceof Set}function po(t){return t.o||t.t}function wv(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ZI(t);delete e[$e];for(var r=Ts(e),n=0;n<r.length;n++){var a=r[n],o=e[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function bv(t,e){return e===void 0&&(e=!1),Tv(t)||ln(t)||!cn(t)||(Wa(t)>1&&(t.set=t.add=t.clear=t.delete=UU),Object.freeze(t),e&&Ka(t,function(r,n){return bv(n,!0)},!0)),t}function UU(){Bt(2)}function Tv(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function In(t){var e=Im[t];return e||Bt(18,t),e}function XI(t,e){Im[t]||(Im[t]=e)}function Am(){return _l}function e0(t,e){e&&(In("Patches"),t.u=[],t.s=[],t.v=e)}function fd(t){Om(t),t.p.forEach(BU),t.p=null}function Om(t){t===_l&&(_l=t.l)}function ox(t){return _l={p:[],l:_l,h:t,m:!0,_:0}}function BU(t){var e=t[$e];e.i===0||e.i===1?e.j():e.g=!0}function t0(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||In("ES5").S(e,t,n),n?(r[$e].P&&(fd(e),Bt(4)),cn(t)&&(t=md(e,t),e.l||yd(e,t)),e.u&&In("Patches").M(r[$e].t,t,e.u,e.s)):t=md(e,r,[]),fd(e),e.u&&e.v(e.u,e.s),t!==Rv?t:void 0}function md(t,e,r){if(Tv(e))return e;var n=e[$e];if(!n)return Ka(e,function(i,l){return sx(t,n,e,i,l,r)},!0),e;if(n.A!==t)return e;if(!n.P)return yd(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=wv(n.k):n.o,o=a,s=!1;n.i===3&&(o=new Set(a),a.clear(),s=!0),Ka(o,function(i,l){return sx(t,n,a,i,l,r,s)}),yd(t,a,!1),r&&t.u&&In("Patches").N(n,r,t.u,t.s)}return n.o}function sx(t,e,r,n,a,o,s){if(ln(a)){var i=md(t,a,o&&e&&e.i!==3&&!Fa(e.R,n)?o.concat(n):void 0);if(YI(r,n,i),!ln(i))return;t.m=!1}else s&&r.add(a);if(cn(a)&&!Tv(a)){if(!t.h.D&&t._<1)return;md(t,a),e&&e.A.l||yd(t,a)}}function yd(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&bv(e,r)}function r0(t,e){var r=t[$e];return(r?po(r):t)[e]}function ix(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Va(t){t.P||(t.P=!0,t.l&&Va(t.l))}function n0(t){t.o||(t.o=wv(t.t))}function Vm(t,e,r){var n=Lp(e)?In("MapSet").F(e,r):Np(e)?In("MapSet").T(e,r):t.O?function(a,o){var s=Array.isArray(a),i={i:s?1:0,A:o?o.A:Am(),P:!1,I:!1,R:{},l:o,t:a,k:null,o:null,j:null,C:!1},l=i,c=Ul;s&&(l=[i],c=Hi);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return i.k=p,i.j=d,p}(e,r):In("ES5").J(e,r);return(r?r.A:Am()).p.push(n),n}function MU(t){return ln(t)||Bt(22,t),function e(r){if(!cn(r))return r;var n,a=r[$e],o=Wa(r);if(a){if(!a.P&&(a.i<4||!In("ES5").K(a)))return a.t;a.I=!0,n=lx(r,o),a.I=!1}else n=lx(r,o);return Ka(n,function(s,i){a&&Su(a.t,s)===i||YI(n,s,e(i))}),o===3?new Set(n):n}(t)}function lx(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wv(t)}function FU(){function t(o,s){var i=a[o];return i?i.enumerable=s:a[o]=i={configurable:!0,enumerable:s,get:function(){var l=this[$e];return Ul.get(l,o)},set:function(l){var c=this[$e];Ul.set(c,o,l)}},i}function e(o){for(var s=o.length-1;s>=0;s--){var i=o[s][$e];if(!i.P)switch(i.i){case 5:n(i)&&Va(i);break;case 4:r(i)&&Va(i)}}}function r(o){for(var s=o.t,i=o.k,l=Ts(i),c=l.length-1;c>=0;c--){var u=l[c];if(u!==$e){var d=s[u];if(d===void 0&&!Fa(s,u))return!0;var p=i[u],h=p&&p[$e];if(h?h.t!==d:!JI(p,d))return!0}}var f=!!s[$e];return l.length!==Ts(s).length+(f?0:1)}function n(o){var s=o.k;if(s.length!==o.t.length)return!0;var i=Object.getOwnPropertyDescriptor(s,s.length-1);if(i&&!i.get)return!0;for(var l=0;l<s.length;l++)if(!s.hasOwnProperty(l))return!0;return!1}var a={};XI("ES5",{J:function(o,s){var i=Array.isArray(o),l=function(u,d){if(u){for(var p=Array(d.length),h=0;h<d.length;h++)Object.defineProperty(p,""+h,t(h,!0));return p}var f=ZI(d);delete f[$e];for(var y=Ts(f),v=0;v<y.length;v++){var g=y[v];f[g]=t(g,u||!!f[g].enumerable)}return Object.create(Object.getPrototypeOf(d),f)}(i,o),c={i:i?5:4,A:s?s.A:Am(),P:!1,I:!1,R:{},l:s,t:o,k:l,o:null,g:!1,C:!1};return Object.defineProperty(l,$e,{value:c,writable:!0}),l},S:function(o,s,i){i?ln(s)&&s[$e].A===o&&e(o.p):(o.u&&function l(c){if(c&&typeof c=="object"){var u=c[$e];if(u){var d=u.t,p=u.k,h=u.R,f=u.i;if(f===4)Ka(p,function(C){C!==$e&&(d[C]!==void 0||Fa(d,C)?h[C]||l(p[C]):(h[C]=!0,Va(u)))}),Ka(d,function(C){p[C]!==void 0||Fa(p,C)||(h[C]=!1,Va(u))});else if(f===5){if(n(u)&&(Va(u),h.length=!0),p.length<d.length)for(var y=p.length;y<d.length;y++)h[y]=!1;else for(var v=d.length;v<p.length;v++)h[v]=!0;for(var g=Math.min(p.length,d.length),m=0;m<g;m++)p.hasOwnProperty(m)||(h[m]=!0),h[m]===void 0&&l(p[m])}}}}(o.p[0]),e(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}function LU(){function t(n){if(!cn(n))return n;if(Array.isArray(n))return n.map(t);if(Lp(n))return new Map(Array.from(n.entries()).map(function(s){return[s[0],t(s[1])]}));if(Np(n))return new Set(Array.from(n).map(t));var a=Object.create(Object.getPrototypeOf(n));for(var o in n)a[o]=t(n[o]);return Fa(n,al)&&(a[al]=n[al]),a}function e(n){return ln(n)?t(n):n}var r="add";XI("Patches",{$:function(n,a){return a.forEach(function(o){for(var s=o.path,i=o.op,l=n,c=0;c<s.length-1;c++){var u=Wa(l),d=s[c];typeof d!="string"&&typeof d!="number"&&(d=""+d),u!==0&&u!==1||d!=="__proto__"&&d!=="constructor"||Bt(24),typeof l=="function"&&d==="prototype"&&Bt(24),typeof(l=Su(l,d))!="object"&&Bt(15,s.join("/"))}var p=Wa(l),h=t(o.value),f=s[s.length-1];switch(i){case"replace":switch(p){case 2:return l.set(f,h);case 3:Bt(16);default:return l[f]=h}case r:switch(p){case 1:return f==="-"?l.push(h):l.splice(f,0,h);case 2:return l.set(f,h);case 3:return l.add(h);default:return l[f]=h}case"remove":switch(p){case 1:return l.splice(f,1);case 2:return l.delete(f);case 3:return l.delete(o.value);default:return delete l[f]}default:Bt(17,i)}}),n},N:function(n,a,o,s){switch(n.i){case 0:case 4:case 2:return function(i,l,c,u){var d=i.t,p=i.o;Ka(i.R,function(h,f){var y=Su(d,h),v=Su(p,h),g=f?Fa(d,h)?"replace":r:"remove";if(y!==v||g!=="replace"){var m=l.concat(h);c.push(g==="remove"?{op:g,path:m}:{op:g,path:m,value:v}),u.push(g===r?{op:"remove",path:m}:g==="remove"?{op:r,path:m,value:e(y)}:{op:"replace",path:m,value:e(y)})}})}(n,a,o,s);case 5:case 1:return function(i,l,c,u){var d=i.t,p=i.R,h=i.o;if(h.length<d.length){var f=[h,d];d=f[0],h=f[1];var y=[u,c];c=y[0],u=y[1]}for(var v=0;v<d.length;v++)if(p[v]&&h[v]!==d[v]){var g=l.concat([v]);c.push({op:"replace",path:g,value:e(h[v])}),u.push({op:"replace",path:g,value:e(d[v])})}for(var m=d.length;m<h.length;m++){var C=l.concat([m]);c.push({op:r,path:C,value:e(h[m])})}d.length<h.length&&u.push({op:"replace",path:l.concat(["length"]),value:d.length})}(n,a,o,s);case 3:return function(i,l,c,u){var d=i.t,p=i.o,h=0;d.forEach(function(f){if(!p.has(f)){var y=l.concat([h]);c.push({op:"remove",path:y,value:f}),u.unshift({op:r,path:y,value:f})}h++}),h=0,p.forEach(function(f){if(!d.has(f)){var y=l.concat([h]);c.push({op:r,path:y,value:f}),u.unshift({op:"remove",path:y,value:f})}h++})}(n,a,o,s)}},M:function(n,a,o,s){o.push({op:"replace",path:[],value:a===Rv?void 0:a}),s.push({op:"replace",path:[],value:n})}})}var cx,_l,Ev=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",NU=typeof Map<"u",GU=typeof Set<"u",ux=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Rv=Ev?Symbol.for("immer-nothing"):((cx={})["immer-nothing"]=!0,cx),al=Ev?Symbol.for("immer-draftable"):"__$immer_draftable",$e=Ev?Symbol.for("immer-state"):"__$immer_state",HU=""+Object.prototype.constructor,Ts=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ZI=Object.getOwnPropertyDescriptors||function(t){var e={};return Ts(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Im={},Ul={get:function(t,e){if(e===$e)return t;var r=po(t);if(!Fa(r,e))return function(a,o,s){var i,l=ix(o,s);return l?"value"in l?l.value:(i=l.get)===null||i===void 0?void 0:i.call(a.k):void 0}(t,r,e);var n=r[e];return t.I||!cn(n)?n:n===r0(t.t,e)?(n0(t),t.o[e]=Vm(t.A.h,n,t)):n},has:function(t,e){return e in po(t)},ownKeys:function(t){return Reflect.ownKeys(po(t))},set:function(t,e,r){var n=ix(po(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var a=r0(po(t),e),o=a==null?void 0:a[$e];if(o&&o.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(JI(r,a)&&(r!==void 0||Fa(t.t,e)))return!0;n0(t),Va(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return r0(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,n0(t),Va(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=po(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Bt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Bt(12)}},Hi={};Ka(Ul,function(t,e){Hi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Hi.deleteProperty=function(t,e){return Hi.set.call(this,t,e,void 0)},Hi.set=function(t,e,r){return Ul.set.call(this,t[0],e,r,t[0])};var jU=function(){function t(r){var n=this;this.O=ux,this.D=!0,this.produce=function(a,o,s){if(typeof a=="function"&&typeof o!="function"){var i=o;o=a;var l=n;return function(y){var v=this;y===void 0&&(y=i);for(var g=arguments.length,m=Array(g>1?g-1:0),C=1;C<g;C++)m[C-1]=arguments[C];return l.produce(y,function(x){var S;return(S=o).call.apply(S,[v,x].concat(m))})}}var c;if(typeof o!="function"&&Bt(6),s!==void 0&&typeof s!="function"&&Bt(7),cn(a)){var u=ox(n),d=Vm(n,a,void 0),p=!0;try{c=o(d),p=!1}finally{p?fd(u):Om(u)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(y){return e0(u,s),t0(y,u)},function(y){throw fd(u),y}):(e0(u,s),t0(c,u))}if(!a||typeof a!="object"){if((c=o(a))===void 0&&(c=a),c===Rv&&(c=void 0),n.D&&bv(c,!0),s){var h=[],f=[];In("Patches").M(a,c,h,f),s(h,f)}return c}Bt(21,a)},this.produceWithPatches=function(a,o){if(typeof a=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return n.produceWithPatches(c,function(h){return a.apply(void 0,[h].concat(d))})};var s,i,l=n.produce(a,o,function(c,u){s=c,i=u});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,i]}):[l,s,i]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){cn(r)||Bt(8),ln(r)&&(r=MU(r));var n=ox(this),a=Vm(this,r,void 0);return a[$e].C=!0,Om(n),a},e.finishDraft=function(r,n){var a=r&&r[$e],o=a.A;return e0(o,n),t0(void 0,o)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ux&&Bt(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var o=n[a];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}a>-1&&(n=n.slice(a+1));var s=In("Patches").$;return ln(r)?s(r,n):this.produce(r,function(i){return s(i,n)})},t}(),Vr=new jU,Xl=Vr.produce,ew=Vr.produceWithPatches.bind(Vr);Vr.setAutoFreeze.bind(Vr);Vr.setUseProxies.bind(Vr);var dx=Vr.applyPatches.bind(Vr);Vr.createDraft.bind(Vr);Vr.finishDraft.bind(Vr);function Hr(t){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(t)}function $U(t,e){if(Hr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function tw(t){var e=$U(t,"string");return Hr(e)=="symbol"?e:e+""}function Un(t,e,r){return(e=tw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function px(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function hx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?px(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $t(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var fx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),a0=function(){return Math.random().toString(36).substring(7).split("").join(".")},vd={INIT:"@@redux/INIT"+a0(),REPLACE:"@@redux/REPLACE"+a0(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a0()}};function zU(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function rw(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error($t(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error($t(1));return r(rw)(t,e)}if(typeof t!="function")throw new Error($t(2));var a=t,o=e,s=[],i=s,l=!1;function c(){i===s&&(i=s.slice())}function u(){if(l)throw new Error($t(3));return o}function d(y){if(typeof y!="function")throw new Error($t(4));if(l)throw new Error($t(5));var v=!0;return c(),i.push(y),function(){if(v){if(l)throw new Error($t(6));v=!1,c();var m=i.indexOf(y);i.splice(m,1),s=null}}}function p(y){if(!zU(y))throw new Error($t(7));if(typeof y.type>"u")throw new Error($t(8));if(l)throw new Error($t(9));try{l=!0,o=a(o,y)}finally{l=!1}for(var v=s=i,g=0;g<v.length;g++){var m=v[g];m()}return y}function h(y){if(typeof y!="function")throw new Error($t(10));a=y,p({type:vd.REPLACE})}function f(){var y,v=d;return y={subscribe:function(m){if(typeof m!="object"||m===null)throw new Error($t(11));function C(){m.next&&m.next(u())}C();var x=v(C);return{unsubscribe:x}}},y[fx]=function(){return this},y}return p({type:vd.INIT}),n={dispatch:p,subscribe:d,getState:u,replaceReducer:h},n[fx]=f,n}function qU(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:vd.INIT});if(typeof n>"u")throw new Error($t(12));if(typeof r(void 0,{type:vd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error($t(13))})}function Gp(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(r[a]=t[a])}var o=Object.keys(r),s;try{qU(r)}catch(i){s=i}return function(l,c){if(l===void 0&&(l={}),s)throw s;for(var u=!1,d={},p=0;p<o.length;p++){var h=o[p],f=r[h],y=l[h],v=f(y,c);if(typeof v>"u")throw c&&c.type,new Error($t(14));d[h]=v,u=u||v!==y}return u=u||o.length!==Object.keys(l).length,u?d:l}}function gd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function QU(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),o=function(){throw new Error($t(15))},s={getState:a.getState,dispatch:function(){return o.apply(void 0,arguments)}},i=e.map(function(l){return l(s)});return o=gd.apply(void 0,i)(a.dispatch),hx(hx({},a),{},{dispatch:o})}}}var Cd="NOT_FOUND";function KU(t){var e;return{get:function(n){return e&&t(e.key,n)?e.value:Cd},put:function(n,a){e={key:n,value:a}},getEntries:function(){return e?[e]:[]},clear:function(){e=void 0}}}function WU(t,e){var r=[];function n(i){var l=r.findIndex(function(u){return e(i,u.key)});if(l>-1){var c=r[l];return l>0&&(r.splice(l,1),r.unshift(c)),c.value}return Cd}function a(i,l){n(i)===Cd&&(r.unshift({key:i,value:l}),r.length>t&&r.pop())}function o(){return r}function s(){r=[]}return{get:n,put:a,getEntries:o,clear:s}}var YU=function(e,r){return e===r};function JU(t){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var a=r.length,o=0;o<a;o++)if(!t(r[o],n[o]))return!1;return!0}}function wm(t,e){var r=typeof e=="object"?e:{equalityCheck:e},n=r.equalityCheck,a=n===void 0?YU:n,o=r.maxSize,s=o===void 0?1:o,i=r.resultEqualityCheck,l=JU(a),c=s===1?KU(l):WU(s,l);function u(){var d=c.get(arguments);if(d===Cd){if(d=t.apply(null,arguments),i){var p=c.getEntries(),h=p.find(function(f){return i(f.value,d)});h&&(d=h.value)}c.put(arguments,d)}return d}return u.clearCache=function(){return c.clear()},u}function XU(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every(function(n){return typeof n=="function"})){var r=e.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return e}function ZU(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var a=function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];var c=0,u,d={memoizeOptions:void 0},p=i.pop();if(typeof p=="object"&&(d=p,p=i.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var h=d,f=h.memoizeOptions,y=f===void 0?r:f,v=Array.isArray(y)?y:[y],g=XU(i),m=t.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(v)),C=t(function(){for(var S=[],P=g.length,A=0;A<P;A++)S.push(g[A].apply(null,arguments));return u=m.apply(null,S),u});return Object.assign(C,{resultFunc:p,memoizedResultFunc:m,dependencies:g,lastResult:function(){return u},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),C};return a}var ol=ZU(wm);function nw(t){var e=function(n){var a=n.dispatch,o=n.getState;return function(s){return function(i){return typeof i=="function"?i(a,o,t):s(i)}}};return e}var aw=nw();aw.withExtraArgument=nw;const mx=aw;var ow=globalThis&&globalThis.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},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)}}(),eB=globalThis&&globalThis.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Hs=globalThis&&globalThis.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t},tB=Object.defineProperty,rB=Object.defineProperties,nB=Object.getOwnPropertyDescriptors,yx=Object.getOwnPropertySymbols,aB=Object.prototype.hasOwnProperty,oB=Object.prototype.propertyIsEnumerable,vx=function(t,e,r){return e in t?tB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},La=function(t,e){for(var r in e||(e={}))aB.call(e,r)&&vx(t,r,e[r]);if(yx)for(var n=0,a=yx(e);n<a.length;n++){var r=a[n];oB.call(e,r)&&vx(t,r,e[r])}return t},o0=function(t,e){return rB(t,nB(e))},sB=function(t,e,r){return new Promise(function(n,a){var o=function(l){try{i(r.next(l))}catch(c){a(c)}},s=function(l){try{i(r.throw(l))}catch(c){a(c)}},i=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};i((r=r.apply(t,e)).next())})},iB=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?gd:gd.apply(null,arguments)};function js(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var lB=function(t){return t&&typeof t.match=="function"};function dr(t,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var o=e.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return La(La({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}var cB=function(t){ow(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hs([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hs([void 0],r.concat(this))))},e}(Array),uB=function(t){ow(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=t.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Hs([void 0],r[0].concat(this)))):new(e.bind.apply(e,Hs([void 0],r.concat(this))))},e}(Array);function bm(t){return cn(t)?Xl(t,function(){}):t}function dB(t){return typeof t=="boolean"}function pB(){return function(e){return hB(e)}}function hB(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e;t.immutableCheck,t.serializableCheck,t.actionCreatorCheck;var n=new cB;return r&&(dB(r)?n.push(mx):n.push(mx.withExtraArgument(r.extraArgument))),n}var fB=!0;function mB(t){var e=pB(),r=t||{},n=r.reducer,a=n===void 0?void 0:n,o=r.middleware,s=o===void 0?e():o,i=r.devTools,l=i===void 0?!0:i,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof a=="function")h=a;else if(js(a))h=Gp(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var f=s;typeof f=="function"&&(f=f(e));var y=QU.apply(void 0,f),v=gd;l&&(v=iB(La({trace:!fB},typeof l=="object"&&l)));var g=new uB(y),m=g;Array.isArray(p)?m=Hs([y],p):typeof p=="function"&&(m=p(g));var C=v.apply(void 0,m);return rw(h,u,C)}function sw(t){var e={},r=[],n,a={addCase:function(o,s){var i=typeof o=="string"?o:o.type;if(!i)throw new Error("`builder.addCase` cannot be called with an empty action type");if(i in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[i]=s,a},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),a},addDefaultCase:function(o){return n=o,a}};return t(a),[e,r,n]}function yB(t){return typeof t=="function"}function vB(t,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?sw(e):[e,r,n],o=a[0],s=a[1],i=a[2],l;if(yB(t))l=function(){return bm(t())};else{var c=bm(t);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Hs([o[p.type]],s.filter(function(f){var y=f.matcher;return y(p)}).map(function(f){var y=f.reducer;return y}));return h.filter(function(f){return!!f}).length===0&&(h=[i]),h.reduce(function(f,y){if(y)if(ln(f)){var v=f,g=y(v,p);return g===void 0?f:g}else{if(cn(f))return Xl(f,function(m){return y(m,p)});var g=y(f,p);if(g===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}return f},d)}return u.getInitialState=l,u}function gB(t,e){return t+"/"+e}function en(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:bm(t.initialState),n=t.reducers||{},a=Object.keys(n),o={},s={},i={};a.forEach(function(u){var d=n[u],p=gB(e,u),h,f;"reducer"in d?(h=d.reducer,f=d.prepare):h=d,o[u]=h,s[p]=h,i[u]=f?dr(p,f):dr(p)});function l(){var u=typeof t.extraReducers=="function"?sw(t.extraReducers):[t.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],f=h===void 0?[]:h,y=u[2],v=y===void 0?void 0:y,g=La(La({},p),s);return vB(r,function(m){for(var C in g)m.addCase(C,g[C]);for(var x=0,S=f;x<S.length;x++){var P=S[x];m.addMatcher(P.matcher,P.reducer)}v&&m.addDefaultCase(v)})}var c;return{name:e,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:i,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var CB="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",iw=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=CB[Math.random()*64|0];return e},xB=["name","message","stack","code"],s0=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),gx=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),SB=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=xB;r<n.length;r++){var a=n[r];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},$s=function(){function t(e,r,n){var a=dr(e+"/fulfilled",function(c,u,d,p){return{payload:c,meta:o0(La({},p||{}),{arg:d,requestId:u,requestStatus:"fulfilled"})}}),o=dr(e+"/pending",function(c,u,d){return{payload:void 0,meta:o0(La({},d||{}),{arg:u,requestId:c,requestStatus:"pending"})}}),s=dr(e+"/rejected",function(c,u,d,p,h){return{payload:p,error:(n&&n.serializeError||SB)(c||"Rejected"),meta:o0(La({},h||{}),{arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"})}}),i=typeof AbortController<"u"?AbortController:function(){function c(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return c.prototype.abort=function(){},c}();function l(c){return function(u,d,p){var h=n!=null&&n.idGenerator?n.idGenerator(c):iw(),f=new i,y;function v(m){y=m,f.abort()}var g=function(){return sB(this,null,function(){var m,C,x,S,P,A,V;return eB(this,function(U){switch(U.label){case 0:return U.trys.push([0,4,,5]),S=(m=n==null?void 0:n.condition)==null?void 0:m.call(n,c,{getState:d,extra:p}),AB(S)?[4,S]:[3,2];case 1:S=U.sent(),U.label=2;case 2:if(S===!1||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=new Promise(function(O,I){return f.signal.addEventListener("abort",function(){return I({name:"AbortError",message:y||"Aborted"})})}),u(o(h,c,(C=n==null?void 0:n.getPendingMeta)==null?void 0:C.call(n,{requestId:h,arg:c},{getState:d,extra:p}))),[4,Promise.race([P,Promise.resolve(r(c,{dispatch:u,getState:d,extra:p,requestId:h,signal:f.signal,abort:v,rejectWithValue:function(O,I){return new s0(O,I)},fulfillWithValue:function(O,I){return new gx(O,I)}})).then(function(O){if(O instanceof s0)throw O;return O instanceof gx?a(O.payload,h,c,O.meta):a(O,h,c)})])];case 3:return x=U.sent(),[3,5];case 4:return A=U.sent(),x=A instanceof s0?s(null,h,c,A.payload,A.meta):s(A,h,c),[3,5];case 5:return V=n&&!n.dispatchConditionRejection&&s.match(x)&&x.meta.condition,V||u(x),[2,x]}})})}();return Object.assign(g,{abort:v,requestId:h,arg:c,unwrap:function(){return g.then(PB)}})}}return Object.assign(l,{pending:o,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function PB(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function AB(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var lw=function(t,e){return lB(t)?t.match(e):t(e)};function ii(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){return t.some(function(n){return lw(n,r)})}}function sl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(r){return t.every(function(n){return lw(n,r)})}}function Hp(t,e){if(!t||!t.meta)return!1;var r=typeof t.meta.requestId=="string",n=e.indexOf(t.meta.requestStatus)>-1;return r&&n}function Zl(t){return typeof t[0]=="function"&&"pending"in t[0]&&"fulfilled"in t[0]&&"rejected"in t[0]}function Dv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?function(r){return Hp(r,["pending"])}:Zl(t)?function(r){var n=t.map(function(o){return o.pending}),a=ii.apply(void 0,n);return a(r)}:Dv()(t[0])}function Bl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?function(r){return Hp(r,["rejected"])}:Zl(t)?function(r){var n=t.map(function(o){return o.rejected}),a=ii.apply(void 0,n);return a(r)}:Bl()(t[0])}function jp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=function(n){return n&&n.meta&&n.meta.rejectedWithValue};return t.length===0?function(n){var a=sl(Bl.apply(void 0,t),r);return a(n)}:Zl(t)?function(n){var a=sl(Bl.apply(void 0,t),r);return a(n)}:jp()(t[0])}function Fo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?function(r){return Hp(r,["fulfilled"])}:Zl(t)?function(r){var n=t.map(function(o){return o.fulfilled}),a=ii.apply(void 0,n);return a(r)}:Fo()(t[0])}function Tm(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length===0?function(r){return Hp(r,["pending","fulfilled","rejected"])}:Zl(t)?function(r){for(var n=[],a=0,o=t;a<o.length;a++){var s=o[a];n.push(s.pending,s.rejected,s.fulfilled)}var i=ii.apply(void 0,n);return i(r)}:Tm()(t[0])}var kv="listenerMiddleware";dr(kv+"/add");dr(kv+"/removeAll");dr(kv+"/remove");var ji="RTK_autoBatch",Ii=function(){return function(t){var e;return{payload:t,meta:(e={},e[ji]=!0,e)}}},Cx;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);FU();var _v="persist:",Uv="persist/FLUSH",$p="persist/REHYDRATE",Bv="persist/PAUSE",Mv="persist/PERSIST",Fv="persist/PURGE",Lv="persist/REGISTER",OB=-1;function Pu(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pu=function(r){return typeof r}:Pu=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pu(t)}function xx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function VB(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xx(r,!0).forEach(function(n){IB(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xx(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function IB(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wB(t,e,r,n){n.debug;var a=VB({},r);return t&&Pu(t)==="object"&&Object.keys(t).forEach(function(o){o!=="_persist"&&e[o]===r[o]&&(a[o]=t[o])}),a}function bB(t){var e=t.blacklist||null,r=t.whitelist||null,n=t.transforms||[],a=t.throttle||0,o="".concat(t.keyPrefix!==void 0?t.keyPrefix:_v).concat(t.key),s=t.storage,i;t.serialize===!1?i=function(S){return S}:typeof t.serialize=="function"?i=t.serialize:i=TB;var l=t.writeFailHandler||null,c={},u={},d=[],p=null,h=null,f=function(S){Object.keys(S).forEach(function(P){g(P)&&c[P]!==S[P]&&d.indexOf(P)===-1&&d.push(P)}),Object.keys(c).forEach(function(P){S[P]===void 0&&g(P)&&d.indexOf(P)===-1&&c[P]!==void 0&&d.push(P)}),p===null&&(p=setInterval(y,a)),c=S};function y(){if(d.length===0){p&&clearInterval(p),p=null;return}var x=d.shift(),S=n.reduce(function(P,A){return A.in(P,x,c)},c[x]);if(S!==void 0)try{u[x]=i(S)}catch(P){console.error("redux-persist/createPersistoid: error serializing state",P)}else delete u[x];d.length===0&&v()}function v(){Object.keys(u).forEach(function(x){c[x]===void 0&&delete u[x]}),h=s.setItem(o,i(u)).catch(m)}function g(x){return!(r&&r.indexOf(x)===-1&&x!=="_persist"||e&&e.indexOf(x)!==-1)}function m(x){l&&l(x)}var C=function(){for(;d.length!==0;)y();return h||Promise.resolve()};return{update:f,flush:C}}function TB(t){return JSON.stringify(t)}function EB(t){var e=t.transforms||[],r="".concat(t.keyPrefix!==void 0?t.keyPrefix:_v).concat(t.key),n=t.storage;t.debug;var a;return t.deserialize===!1?a=function(s){return s}:typeof t.deserialize=="function"?a=t.deserialize:a=RB,n.getItem(r).then(function(o){if(o)try{var s={},i=a(o);return Object.keys(i).forEach(function(l){s[l]=e.reduceRight(function(c,u){return u.out(c,l,i)},a(i[l]))}),s}catch(l){throw l}else return})}function RB(t){return JSON.parse(t)}function DB(t){var e=t.storage,r="".concat(t.keyPrefix!==void 0?t.keyPrefix:_v).concat(t.key);return e.removeItem(r,kB)}function kB(t){}function Sx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Fn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sx(r,!0).forEach(function(n){_B(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sx(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UB(t,e){if(t==null)return{};var r=BB(t,e),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)n=o[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function BB(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,o;for(o=0;o<n.length;o++)a=n[o],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var MB=5e3;function FB(t,e){var r=t.version!==void 0?t.version:OB;t.debug;var n=t.stateReconciler===void 0?wB:t.stateReconciler,a=t.getStoredState||EB,o=t.timeout!==void 0?t.timeout:MB,s=null,i=!1,l=!0,c=function(d){return d._persist.rehydrated&&s&&!l&&s.update(d),d};return function(u,d){var p=u||{},h=p._persist,f=UB(p,["_persist"]),y=f;if(d.type===Mv){var v=!1,g=function(V,U){v||(d.rehydrate(t.key,V,U),v=!0)};if(o&&setTimeout(function(){!v&&g(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(t.key,'"')))},o),l=!1,s||(s=bB(t)),h)return Fn({},e(y,d),{_persist:h});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(t.key),a(t).then(function(A){var V=t.migrate||function(U,O){return Promise.resolve(U)};V(A,r).then(function(U){g(U)},function(U){g(void 0,U)})},function(A){g(void 0,A)}),Fn({},e(y,d),{_persist:{version:r,rehydrated:!1}})}else{if(d.type===Fv)return i=!0,d.result(DB(t)),Fn({},e(y,d),{_persist:h});if(d.type===Uv)return d.result(s&&s.flush()),Fn({},e(y,d),{_persist:h});if(d.type===Bv)l=!0;else if(d.type===$p){if(i)return Fn({},y,{_persist:Fn({},h,{rehydrated:!0})});if(d.key===t.key){var m=e(y,d),C=d.payload,x=n!==!1&&C!==void 0?n(C,u,m,t):m,S=Fn({},x,{_persist:Fn({},h,{rehydrated:!0})});return c(S)}}}if(!h)return e(u,d);var P=e(y,d);return P===y?u:c(Fn({},P,{_persist:h}))}}function jt(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var LB=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),Px=LB,i0=()=>Math.random().toString(36).substring(7).split("").join("."),NB={INIT:`@@redux/INIT${i0()}`,REPLACE:`@@redux/REPLACE${i0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i0()}`},xd=NB;function GB(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function cw(t,e,r){if(typeof t!="function")throw new Error(jt(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(jt(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jt(1));return r(cw)(t,e)}let n=t,a=e,o=new Map,s=o,i=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,g)=>{s.set(g,v)}))}function u(){if(l)throw new Error(jt(3));return a}function d(v){if(typeof v!="function")throw new Error(jt(4));if(l)throw new Error(jt(5));let g=!0;c();const m=i++;return s.set(m,v),function(){if(g){if(l)throw new Error(jt(6));g=!1,c(),s.delete(m),o=null}}}function p(v){if(!GB(v))throw new Error(jt(7));if(typeof v.type>"u")throw new Error(jt(8));if(typeof v.type!="string")throw new Error(jt(17));if(l)throw new Error(jt(9));try{l=!0,a=n(a,v)}finally{l=!1}return(o=s).forEach(m=>{m()}),v}function h(v){if(typeof v!="function")throw new Error(jt(10));n=v,p({type:xd.REPLACE})}function f(){const v=d;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(jt(11));function m(){const x=g;x.next&&x.next(u())}return m(),{unsubscribe:v(m)}},[Px](){return this}}}return p({type:xd.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:h,[Px]:f}}function HB(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:xd.INIT})>"u")throw new Error(jt(12));if(typeof r(void 0,{type:xd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jt(13))})}function jB(t){const e=Object.keys(t),r={};for(let o=0;o<e.length;o++){const s=e[o];typeof t[s]=="function"&&(r[s]=t[s])}const n=Object.keys(r);let a;try{HB(r)}catch(o){a=o}return function(s={},i){if(a)throw a;let l=!1;const c={};for(let u=0;u<n.length;u++){const d=n[u],p=r[d],h=s[d],f=p(h,i);if(typeof f>"u")throw i&&i.type,new Error(jt(14));c[d]=f,l=l||f!==h}return l=l||n.length!==Object.keys(s).length,l?c:s}}function Ax(t){return qB(t)||zB(t)||$B()}function $B(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function zB(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function qB(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}function Ox(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Em(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ox(r,!0).forEach(function(n){QB(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ox(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QB(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uw={registry:[],bootstrapped:!1},KB=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uw,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Lv:return Em({},e,{registry:[].concat(Ax(e.registry),[r.key])});case $p:var n=e.registry.indexOf(r.key),a=Ax(e.registry);return a.splice(n,1),Em({},e,{registry:a,bootstrapped:a.length===0});default:return e}};function WB(t,e,r){var n=r||!1,a=cw(KB,uw,e&&e.enhancer?e.enhancer:void 0),o=function(c){a.dispatch({type:Lv,key:c})},s=function(c,u,d){var p={type:$p,payload:u,err:d,key:c};t.dispatch(p),a.dispatch(p),n&&i.getState().bootstrapped&&(n(),n=!1)},i=Em({},a,{purge:function(){var c=[];return t.dispatch({type:Fv,result:function(d){c.push(d)}}),Promise.all(c)},flush:function(){var c=[];return t.dispatch({type:Uv,result:function(d){c.push(d)}}),Promise.all(c)},pause:function(){t.dispatch({type:Bv})},persist:function(){t.dispatch({type:Mv,register:o,rehydrate:s})}});return e&&e.manualPersist||i.persist(),i}var Nv={},Gv={};Gv.__esModule=!0;Gv.default=XB;function Au(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Au=function(r){return typeof r}:Au=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Au(t)}function l0(){}var YB={getItem:l0,setItem:l0,removeItem:l0};function JB(t){if((typeof self>"u"?"undefined":Au(self))!=="object"||!(t in self))return!1;try{var e=self[t],r="redux-persist ".concat(t," test");e.setItem(r,"test"),e.getItem(r),e.removeItem(r)}catch{return!1}return!0}function XB(t){var e="".concat(t,"Storage");return JB(e)?self[e]:YB}Nv.__esModule=!0;Nv.default=tM;var ZB=eM(Gv);function eM(t){return t&&t.__esModule?t:{default:t}}function tM(t){var e=(0,ZB.default)(t);return{getItem:function(n){return new Promise(function(a,o){a(e.getItem(n))})},setItem:function(n,a){return new Promise(function(o,s){o(e.setItem(n,a))})},removeItem:function(n){return new Promise(function(a,o){a(e.removeItem(n))})}}}var dw=void 0,rM=nM(Nv);function nM(t){return t&&t.__esModule?t:{default:t}}var aM=(0,rM.default)("local");dw=aM;const Aq="ContentActive",Hv="admin",oM="redirectUrl",Vx="roldId",Ix="loginType",pw="auth",sM={signedIn:!1,token:null,userId:null,tenantId:null,permission:[]},hw=en({name:`${pw}/session`,initialState:sM,reducers:{signInSuccess(t,e){t.signedIn=!0,t.token=e.payload.token,t.userId=e.payload.userId,t.tenantId=e.payload.tenantId},signOutSuccess(t){t.signedIn=!1,t.token=null,t.userId=null,t.tenantId=null},setPermission(t,e){t.permission=e.payload}}}),{signInSuccess:wx,signOutSuccess:zp,setPermission:iM}=hw.actions,lM=hw.reducer,cM={avatar:"",userName:"",email:"",authority:[],provider:"",twoFactorEnabled:!1,id:"",authenticatorUrl:"",roleId:"",twoFactorForAllUsers:!1,roleName:"",phone:"",isNewUser:!1,courseId:""},fw=en({name:`${pw}/user`,initialState:cM,reducers:{setUser(t,e){var r,n,a,o,s,i,l,c,u,d,p,h,f,y;t.avatar=(r=e.payload)==null?void 0:r.avatar,t.email=(n=e.payload)==null?void 0:n.email,t.userName=(a=e.payload)==null?void 0:a.userName,t.authority=(o=e.payload)==null?void 0:o.authority,t.authenticatorUrl=(s=e.payload)==null?void 0:s.authenticatorUrl,t.provider=(i=e.payload)==null?void 0:i.provider,t.twoFactorEnabled=(l=e.payload)==null?void 0:l.twoFactorEnabled,t.id=(c=e.payload)==null?void 0:c.id,t.roleId=(u=e==null?void 0:e.payload)==null?void 0:u.roleId,t.twoFactorForAllUsers=(d=e.payload)==null?void 0:d.twoFactorForAllUsers,t.roleName=(p=e==null?void 0:e.payload)==null?void 0:p.roleName,t.phone=((h=e==null?void 0:e.payload)==null?void 0:h.phone)||((f=e==null?void 0:e.payload)==null?void 0:f.phoneNumber),t.courseId=(y=e==null?void 0:e.payload)==null?void 0:y.courseId},updateUser(t,e){var r,n,a,o,s,i;t.avatar=(r=e.payload)==null?void 0:r.avatar,t.email=(n=e.payload)==null?void 0:n.email,t.userName=(a=e.payload)==null?void 0:a.userName,t.authenticatorUrl=(o=e.payload)==null?void 0:o.authenticatorUrl,t.twoFactorEnabled=(s=e.payload)==null?void 0:s.twoFactorEnabled,t.phone=(i=e.payload)==null?void 0:i.phone},setIsNewUser:(t,e)=>{t.isNewUser=e.payload},completeOnboarding:t=>{t.isNewUser=!1}}}),{setUser:ho,updateUser:Oq,setIsNewUser:uM,completeOnboarding:Vq}=fw.actions,dM=fw.reducer,pM=Gp({session:lM,user:dM}),hM="base",fM={currentRouteKey:""},mw=en({name:`${hM}/common`,initialState:fM,reducers:{setCurrentRouteKey:(t,e)=>{t.currentRouteKey=e.payload}}}),{setCurrentRouteKey:Iq}=mw.actions,mM=mw.reducer,yM=Gp({common:mM});async function vM(t,e){const n=new TextEncoder().encode(e),a=await crypto.subtle.importKey("raw",n,{name:"AES-CBC"},!1,["decrypt"]),o=new Uint8Array(16),s=Uint8Array.from(atob(t),c=>c.charCodeAt(0)),i=await crypto.subtle.decrypt({name:"AES-CBC",iv:o},a,s);return new TextDecoder().decode(i)}const St=window.RUNTIME_CONFIG,Wt={apiPrefix:"/api",authenticatedEntryPath:"/app/documents",unAuthenticatedEntryPath:"/sign-in",tourPath:"/app/crm/dashboard",locale:"en",enableMock:!0,apiBaseUrl:(St==null?void 0:St.VITE_API_BASE_URL)||""||"",microsoftCliendId:(St==null?void 0:St.VITE_MICROSOFT_CLIENTID)||"00000000-0000-0000-0000-000000000000",microsoftLoginUri:(St==null?void 0:St.VITE_MICROSOFT_LOGIN)||""||"",googleClientId:(St==null?void 0:St.VITE_GOOGLE_CLIENTID)||"000000000000-000000000000.apps.googleusercontent.com",auth0ClientId:(St==null?void 0:St.VITE_APP_AUTH0_CLIENT_ID)||""||"",googleMapKey:(St==null?void 0:St.VITE_GOOGLE_MAPS_API_KEY)||""||""},gM="EncryptKeyVaultD";async function CM(){var t;try{const r=await(await fetch(`${Wt.apiBaseUrl}/api/v1.0/AppKeyVault/GetAllKeysData`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})})).json();if(!r.success||!((t=r.data)!=null&&t.$values))return;const n=r.data.$values;for(const a of n){const{key:o,value:s,isEncrypted:i}=a;let l=s;if(i)try{l=await vM(s,gM)}catch(c){console.error(`Failed to decrypt ${o}:`,c);continue}switch(o){case"Google":Wt.googleClientId=l;break;case"Microsoft":Wt.microsoftCliendId=l;break;case"Oauth2 Magic link":Wt.auth0ClientId=l;break;case"Google Maps":Wt.googleMapKey=l;break;default:break}}}catch(e){console.error("Failed to load app config",e)}}const xM={currentLang:Wt.locale},SM=en({name:"locale",initialState:xM,reducers:{setLang:(t,e)=>{t.currentLang=e.payload}}}),PM=SM.reducer,AM="rtl",OM="ltr",Ou="light",Vu="dark",jv="classic",Es="modern",$v="stackedSide",zv="decked",yw="simple",vw="blank",Iu="light",wu="dark",Sd="themed",Pd="transparent",VM=290,IM=80,wM=80,bM=250,wq="px-4",bq="py-6 px-6 mx-auto",TM="h-16",Tq="px-4 sm:px-6 md:px-8",Eq="py-4 sm:py-6 md:px-8",$i={DIR_RTL:AM,DIR_LTR:OM,MODE_LIGHT:Ou,MODE_DARK:Vu,LAYOUT_TYPE_CLASSIC:jv,LAYOUT_TYPE_MODERN:Es,LAYOUT_TYPE_SIMPLE:yw,LAYOUT_TYPE_STACKED_SIDE:$v,LAYOUT_TYPE_DECKED:zv,LAYOUT_TYPE_BLANK:vw,SIDE_NAV_WIDTH:VM,SIDE_NAV_COLLAPSED_WIDTH:IM,SPLITTED_SIDE_NAV_MINI_WIDTH:wM,SPLITTED_SIDE_NAV_SECONDARY_WIDTH:bM,HEADER_HEIGHT_CLASS:TM,NAV_MODE_LIGHT:Iu,NAV_MODE_DARK:wu,NAV_MODE_THEMED:Sd,NAV_MODE_TRANSPARENT:Pd},he={themeColor:"custom",direction:$i.DIR_LTR,mode:$i.MODE_LIGHT,primaryColorLevel:600,cardBordered:!0,panelExpand:!1,controlSize:"md",navMode:$i.NAV_MODE_THEMED,sideNavigationColor:"neutral-900",layout:{type:$i.LAYOUT_TYPE_MODERN,sideNavCollapse:!1},chartColors:{light:{color1:"#f15a22",color2:"#1b1b1b",color3:"#434343",color4:"#d61f1f",color5:"#3c54a5",color6:"#321e59",color7:"#269446",color8:"#41415b",color9:"#c16f37",color10:"#2c2335",color11:"#00a4c8",color12:"#005391"},dark:{color1:"#39A78E",color2:"#F0F0F0",color3:"#E1B86F",color4:"#92D4B4",color5:"#FFFFFF",color6:"#FFD580",color7:"#14DFC1",color8:"#E03B3B",color9:"#FF9900",color10:"#3ECC80",color11:"#FFA7A7",color12:"#D9A23E"}},specificChartColor:{light:"#F4A261",dark:"#8C3D2E"},themeText:{cover:{primaryText:"Jump start your project with Content Active",secondaryText:"",description:"Content Active Framework comes with a complete set of UI components crafted with Tailwind CSS, it fulfilled most of the use case to create modern and beautiful UI and application"},side:{primaryText:"Your Journey to",secondaryText:"Exceptional Service",description:"Elevate Your Client Relationships and Deliver Excellence Every Step of the Way"}}};function gw(t,e){return function(){return t.apply(e,arguments)}}const{toString:EM}=Object.prototype,{getPrototypeOf:qv}=Object,{iterator:qp,toStringTag:Cw}=Symbol,Qp=(t=>e=>{const r=EM.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dn=t=>(t=t.toLowerCase(),e=>Qp(e)===t),Kp=t=>e=>typeof e===t,{isArray:li}=Array,zs=Kp("undefined");function ec(t){return t!==null&&!zs(t)&&t.constructor!==null&&!zs(t.constructor)&&pr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xw=dn("ArrayBuffer");function RM(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&xw(t.buffer),e}const DM=Kp("string"),pr=Kp("function"),Sw=Kp("number"),tc=t=>t!==null&&typeof t=="object",kM=t=>t===!0||t===!1,bu=t=>{if(Qp(t)!=="object")return!1;const e=qv(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Cw in t)&&!(qp in t)},_M=t=>{if(!tc(t)||ec(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},UM=dn("Date"),BM=dn("File"),MM=dn("Blob"),FM=dn("FileList"),LM=t=>tc(t)&&pr(t.pipe),NM=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||pr(t.append)&&((e=Qp(t))==="formdata"||e==="object"&&pr(t.toString)&&t.toString()==="[object FormData]"))},GM=dn("URLSearchParams"),[HM,jM,$M,zM]=["ReadableStream","Request","Response","Headers"].map(dn),qM=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rc(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,a;if(typeof t!="object"&&(t=[t]),li(t))for(n=0,a=t.length;n<a;n++)e.call(null,t[n],n,t);else{if(ec(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let i;for(n=0;n<s;n++)i=o[n],e.call(null,t[i],i,t)}}function Pw(t,e){if(ec(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,a;for(;n-- >0;)if(a=r[n],e===a.toLowerCase())return a;return null}const Co=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Aw=t=>!zs(t)&&t!==Co;function Rm(){const{caseless:t,skipUndefined:e}=Aw(this)&&this||{},r={},n=(a,o)=>{const s=t&&Pw(r,o)||o;bu(r[s])&&bu(a)?r[s]=Rm(r[s],a):bu(a)?r[s]=Rm({},a):li(a)?r[s]=a.slice():(!e||!zs(a))&&(r[s]=a)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&rc(arguments[a],n);return r}const QM=(t,e,r,{allOwnKeys:n}={})=>(rc(e,(a,o)=>{r&&pr(a)?t[o]=gw(a,r):t[o]=a},{allOwnKeys:n}),t),KM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),WM=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},YM=(t,e,r,n)=>{let a,o,s;const i={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),o=a.length;o-- >0;)s=a[o],(!n||n(s,t,e))&&!i[s]&&(e[s]=t[s],i[s]=!0);t=r!==!1&&qv(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},JM=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},XM=t=>{if(!t)return null;if(li(t))return t;let e=t.length;if(!Sw(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ZM=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qv(Uint8Array)),eF=(t,e)=>{const n=(t&&t[qp]).call(t);let a;for(;(a=n.next())&&!a.done;){const o=a.value;e.call(t,o[0],o[1])}},tF=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},rF=dn("HTMLFormElement"),nF=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),bx=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),aF=dn("RegExp"),Ow=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};rc(r,(a,o)=>{let s;(s=e(a,o,t))!==!1&&(n[o]=s||a)}),Object.defineProperties(t,n)},oF=t=>{Ow(t,(e,r)=>{if(pr(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(pr(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},sF=(t,e)=>{const r={},n=a=>{a.forEach(o=>{r[o]=!0})};return li(t)?n(t):n(String(t).split(e)),r},iF=()=>{},lF=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function cF(t){return!!(t&&pr(t.append)&&t[Cw]==="FormData"&&t[qp])}const uF=t=>{const e=new Array(10),r=(n,a)=>{if(tc(n)){if(e.indexOf(n)>=0)return;if(ec(n))return n;if(!("toJSON"in n)){e[a]=n;const o=li(n)?[]:{};return rc(n,(s,i)=>{const l=r(s,a+1);!zs(l)&&(o[i]=l)}),e[a]=void 0,o}}return n};return r(t,0)},dF=dn("AsyncFunction"),pF=t=>t&&(tc(t)||pr(t))&&pr(t.then)&&pr(t.catch),Vw=((t,e)=>t?setImmediate:e?((r,n)=>(Co.addEventListener("message",({source:a,data:o})=>{a===Co&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Co.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",pr(Co.postMessage)),hF=typeof queueMicrotask<"u"?queueMicrotask.bind(Co):typeof process<"u"&&process.nextTick||Vw,fF=t=>t!=null&&pr(t[qp]),J={isArray:li,isArrayBuffer:xw,isBuffer:ec,isFormData:NM,isArrayBufferView:RM,isString:DM,isNumber:Sw,isBoolean:kM,isObject:tc,isPlainObject:bu,isEmptyObject:_M,isReadableStream:HM,isRequest:jM,isResponse:$M,isHeaders:zM,isUndefined:zs,isDate:UM,isFile:BM,isBlob:MM,isRegExp:aF,isFunction:pr,isStream:LM,isURLSearchParams:GM,isTypedArray:ZM,isFileList:FM,forEach:rc,merge:Rm,extend:QM,trim:qM,stripBOM:KM,inherits:WM,toFlatObject:YM,kindOf:Qp,kindOfTest:dn,endsWith:JM,toArray:XM,forEachEntry:eF,matchAll:tF,isHTMLForm:rF,hasOwnProperty:bx,hasOwnProp:bx,reduceDescriptors:Ow,freezeMethods:oF,toObjectSet:sF,toCamelCase:nF,noop:iF,toFiniteNumber:lF,findKey:Pw,global:Co,isContextDefined:Aw,isSpecCompliantForm:cF,toJSONObject:uF,isAsyncFn:dF,isThenable:pF,setImmediate:Vw,asap:hF,isIterable:fF};function ve(t,e,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}J.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const Iw=ve.prototype,ww={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ww[t]={value:t}});Object.defineProperties(ve,ww);Object.defineProperty(Iw,"isAxiosError",{value:!0});ve.from=(t,e,r,n,a,o)=>{const s=Object.create(Iw);J.toFlatObject(t,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const i=t&&t.message?t.message:"Error",l=e==null&&t?t.code:e;return ve.call(s,i,l,r,n,a),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",o&&Object.assign(s,o),s};const mF=null;function Dm(t){return J.isPlainObject(t)||J.isArray(t)}function bw(t){return J.endsWith(t,"[]")?t.slice(0,-2):t}function Tx(t,e,r){return t?t.concat(e).map(function(a,o){return a=bw(a),!r&&o?"["+a+"]":a}).join(r?".":""):e}function yF(t){return J.isArray(t)&&!t.some(Dm)}const vF=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function Wp(t,e,r){if(!J.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!J.isUndefined(v[y])});const n=r.metaTokens,a=r.visitor||u,o=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(e);if(!J.isFunction(a))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(J.isDate(f))return f.toISOString();if(J.isBoolean(f))return f.toString();if(!l&&J.isBlob(f))throw new ve("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(f)||J.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,y,v){let g=f;if(f&&!v&&typeof f=="object"){if(J.endsWith(y,"{}"))y=n?y:y.slice(0,-2),f=JSON.stringify(f);else if(J.isArray(f)&&yF(f)||(J.isFileList(f)||J.endsWith(y,"[]"))&&(g=J.toArray(f)))return y=bw(y),g.forEach(function(C,x){!(J.isUndefined(C)||C===null)&&e.append(s===!0?Tx([y],x,o):s===null?y:y+"[]",c(C))}),!1}return Dm(f)?!0:(e.append(Tx(v,y,o),c(f)),!1)}const d=[],p=Object.assign(vF,{defaultVisitor:u,convertValue:c,isVisitable:Dm});function h(f,y){if(!J.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(f),J.forEach(f,function(g,m){(!(J.isUndefined(g)||g===null)&&a.call(e,g,J.isString(m)?m.trim():m,y,p))===!0&&h(g,y?y.concat(m):[m])}),d.pop()}}if(!J.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Ex(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Qv(t,e){this._pairs=[],t&&Wp(t,this,e)}const Tw=Qv.prototype;Tw.append=function(e,r){this._pairs.push([e,r])};Tw.toString=function(e){const r=e?function(n){return e.call(this,n,Ex)}:Ex;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function gF(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ew(t,e,r){if(!e)return t;const n=r&&r.encode||gF;J.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let o;if(a?o=a(e,r):o=J.isURLSearchParams(e)?e.toString():new Qv(e,r).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class CF{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Rx=CF,Rw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xF=typeof URLSearchParams<"u"?URLSearchParams:Qv,SF=typeof FormData<"u"?FormData:null,PF=typeof Blob<"u"?Blob:null,AF={isBrowser:!0,classes:{URLSearchParams:xF,FormData:SF,Blob:PF},protocols:["http","https","file","blob","url","data"]},Kv=typeof window<"u"&&typeof document<"u",km=typeof navigator=="object"&&navigator||void 0,OF=Kv&&(!km||["ReactNative","NativeScript","NS"].indexOf(km.product)<0),VF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),IF=Kv&&window.location.href||"http://localhost",wF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kv,hasStandardBrowserEnv:OF,hasStandardBrowserWebWorkerEnv:VF,navigator:km,origin:IF},Symbol.toStringTag,{value:"Module"})),Yt={...wF,...AF};function bF(t,e){return Wp(t,new Yt.classes.URLSearchParams,{visitor:function(r,n,a,o){return Yt.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function TF(t){return J.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function EF(t){const e={},r=Object.keys(t);let n;const a=r.length;let o;for(n=0;n<a;n++)o=r[n],e[o]=t[o];return e}function Dw(t){function e(r,n,a,o){let s=r[o++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),l=o>=r.length;return s=!s&&J.isArray(a)?a.length:s,l?(J.hasOwnProp(a,s)?a[s]=[a[s],n]:a[s]=n,!i):((!a[s]||!J.isObject(a[s]))&&(a[s]=[]),e(r,n,a[s],o)&&J.isArray(a[s])&&(a[s]=EF(a[s])),!i)}if(J.isFormData(t)&&J.isFunction(t.entries)){const r={};return J.forEachEntry(t,(n,a)=>{e(TF(n),a,r,0)}),r}return null}function RF(t,e,r){if(J.isString(t))try{return(e||JSON.parse)(t),J.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Wv={transitional:Rw,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=J.isObject(e);if(o&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return a?JSON.stringify(Dw(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bF(e,this.formSerializer).toString();if((i=J.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Wp(i?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),RF(e)):e}],transformResponse:[function(e){const r=this.transitional||Wv.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!this.responseType||a)){const s=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(e,this.parseReviver)}catch(i){if(s)throw i.name==="SyntaxError"?ve.from(i,ve.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Yt.classes.FormData,Blob:Yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],t=>{Wv.headers[t]={}});const Yv=Wv,DF=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kF=t=>{const e={};let r,n,a;return t&&t.split(`
|
|
99
|
+
`).forEach(function(s){a=s.indexOf(":"),r=s.substring(0,a).trim().toLowerCase(),n=s.substring(a+1).trim(),!(!r||e[r]&&DF[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Dx=Symbol("internals");function wi(t){return t&&String(t).trim().toLowerCase()}function Tu(t){return t===!1||t==null?t:J.isArray(t)?t.map(Tu):String(t)}function _F(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const UF=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function c0(t,e,r,n,a){if(J.isFunction(n))return n.call(this,e,r);if(a&&(e=r),!!J.isString(e)){if(J.isString(n))return e.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(e)}}function BF(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function MF(t,e){const r=J.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(a,o,s){return this[n].call(this,e,a,o,s)},configurable:!0})})}class Yp{constructor(e){e&&this.set(e)}set(e,r,n){const a=this;function o(i,l,c){const u=wi(l);if(!u)throw new Error("header name must be a non-empty string");const d=J.findKey(a,u);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=Tu(i))}const s=(i,l)=>J.forEach(i,(c,u)=>o(c,u,l));if(J.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(J.isString(e)&&(e=e.trim())&&!UF(e))s(kF(e),r);else if(J.isObject(e)&&J.isIterable(e)){let i={},l,c;for(const u of e){if(!J.isArray(u))throw TypeError("Object iterator must return a key-value pair");i[c=u[0]]=(l=i[c])?J.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(i,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=wi(e),e){const n=J.findKey(this,e);if(n){const a=this[n];if(!r)return a;if(r===!0)return _F(a);if(J.isFunction(r))return r.call(this,a,n);if(J.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=wi(e),e){const n=J.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||c0(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let a=!1;function o(s){if(s=wi(s),s){const i=J.findKey(n,s);i&&(!r||c0(n,n[i],i,r))&&(delete n[i],a=!0)}}return J.isArray(e)?e.forEach(o):o(e),a}clear(e){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const o=r[n];(!e||c0(this,this[o],o,e,!0))&&(delete this[o],a=!0)}return a}normalize(e){const r=this,n={};return J.forEach(this,(a,o)=>{const s=J.findKey(n,o);if(s){r[s]=Tu(a),delete r[o];return}const i=e?BF(o):String(o).trim();i!==o&&delete r[o],r[i]=Tu(a),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return J.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=e&&J.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
100
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[Dx]=this[Dx]={accessors:{}}).accessors,a=this.prototype;function o(s){const i=wi(s);n[i]||(MF(a,s),n[i]=!0)}return J.isArray(e)?e.forEach(o):o(e),this}}Yp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Yp.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});J.freezeMethods(Yp);const nn=Yp;function u0(t,e){const r=this||Yv,n=e||r,a=nn.from(n.headers);let o=n.data;return J.forEach(t,function(i){o=i.call(r,o,a.normalize(),e?e.status:void 0)}),a.normalize(),o}function kw(t){return!!(t&&t.__CANCEL__)}function ci(t,e,r){ve.call(this,t??"canceled",ve.ERR_CANCELED,e,r),this.name="CanceledError"}J.inherits(ci,ve,{__CANCEL__:!0});function _w(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new ve("Request failed with status code "+r.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function FF(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function LF(t,e){t=t||10;const r=new Array(t),n=new Array(t);let a=0,o=0,s;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[o];s||(s=c),r[a]=l,n[a]=c;let d=o,p=0;for(;d!==a;)p+=r[d++],d=d%t;if(a=(a+1)%t,a===o&&(o=(o+1)%t),c-s<e)return;const h=u&&c-u;return h?Math.round(p*1e3/h):void 0}}function NF(t,e){let r=0,n=1e3/e,a,o;const s=(c,u=Date.now())=>{r=u,a=null,o&&(clearTimeout(o),o=null),t(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(a=c,o||(o=setTimeout(()=>{o=null,s(a)},n-d)))},()=>a&&s(a)]}const Ad=(t,e,r=3)=>{let n=0;const a=LF(50,250);return NF(o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,l=s-n,c=a(l),u=s<=i;n=s;const d={loaded:s,total:i,progress:i?s/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&u?(i-s)/c:void 0,event:o,lengthComputable:i!=null,[e?"download":"upload"]:!0};t(d)},r)},kx=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},_x=t=>(...e)=>J.asap(()=>t(...e)),GF=Yt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Yt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Yt.origin),Yt.navigator&&/(msie|trident)/i.test(Yt.navigator.userAgent)):()=>!0,HF=Yt.hasStandardBrowserEnv?{write(t,e,r,n,a,o){const s=[t+"="+encodeURIComponent(e)];J.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),J.isString(n)&&s.push("path="+n),J.isString(a)&&s.push("domain="+a),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jF(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $F(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Uw(t,e,r){let n=!jF(e);return t&&(n||r==!1)?$F(t,e):e}const Ux=t=>t instanceof nn?{...t}:t;function Eo(t,e){e=e||{};const r={};function n(c,u,d,p){return J.isPlainObject(c)&&J.isPlainObject(u)?J.merge.call({caseless:p},c,u):J.isPlainObject(u)?J.merge({},u):J.isArray(u)?u.slice():u}function a(c,u,d,p){if(J.isUndefined(u)){if(!J.isUndefined(c))return n(void 0,c,d,p)}else return n(c,u,d,p)}function o(c,u){if(!J.isUndefined(u))return n(void 0,u)}function s(c,u){if(J.isUndefined(u)){if(!J.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function i(c,u,d){if(d in e)return n(c,u);if(d in t)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(c,u,d)=>a(Ux(c),Ux(u),d,!0)};return J.forEach(Object.keys({...t,...e}),function(u){const d=l[u]||a,p=d(t[u],e[u],u);J.isUndefined(p)&&d!==i||(r[u]=p)}),r}const Bw=t=>{const e=Eo({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:i}=e;if(e.headers=s=nn.from(s),e.url=Ew(Uw(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),J.isFormData(r)){if(Yt.hasStandardBrowserEnv||Yt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(J.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Yt.hasStandardBrowserEnv&&(n&&J.isFunction(n)&&(n=n(e)),n||n!==!1&&GF(e.url))){const l=a&&o&&HF.read(o);l&&s.set(a,l)}return e},zF=typeof XMLHttpRequest<"u",qF=zF&&function(t){return new Promise(function(r,n){const a=Bw(t);let o=a.data;const s=nn.from(a.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=a,u,d,p,h,f;function y(){h&&h(),f&&f(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function g(){if(!v)return;const C=nn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!i||i==="text"||i==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:C,config:t,request:v};_w(function(A){r(A),y()},function(A){n(A),y()},S),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new ve("Request aborted",ve.ECONNABORTED,t,v)),v=null)},v.onerror=function(x){const S=x&&x.message?x.message:"Network Error",P=new ve(S,ve.ERR_NETWORK,t,v);P.event=x||null,n(P),v=null},v.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Rw;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),n(new ve(x,S.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,t,v)),v=null},o===void 0&&s.setContentType(null),"setRequestHeader"in v&&J.forEach(s.toJSON(),function(x,S){v.setRequestHeader(S,x)}),J.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),i&&i!=="json"&&(v.responseType=a.responseType),c&&([p,f]=Ad(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,h]=Ad(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=C=>{v&&(n(!C||C.type?new ci(null,t,v):C),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const m=FF(a.url);if(m&&Yt.protocols.indexOf(m)===-1){n(new ve("Unsupported protocol "+m+":",ve.ERR_BAD_REQUEST,t));return}v.send(o||null)})},QF=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,a;const o=function(c){if(!a){a=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ve?u:new ci(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,o(new ve(`timeout ${e} of ms exceeded`,ve.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>J.asap(i),l}},KF=QF,WF=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,a;for(;n<r;)a=n+e,yield t.slice(n,a),n=a},YF=async function*(t,e){for await(const r of JF(t))yield*WF(r,e)},JF=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},Bx=(t,e,r,n)=>{const a=YF(t,e);let o=0,s,i=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){i(),l.close();return}let d=u.byteLength;if(r){let p=o+=d;r(p)}l.enqueue(new Uint8Array(u))}catch(c){throw i(c),c}},cancel(l){return i(l),a.return()}},{highWaterMark:2})},Mx=64*1024,{isFunction:Uc}=J,XF=(({Request:t,Response:e})=>({Request:t,Response:e}))(J.global),{ReadableStream:Fx,TextEncoder:Lx}=J.global,Nx=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ZF=t=>{t=J.merge.call({skipUndefined:!0},XF,t);const{fetch:e,Request:r,Response:n}=t,a=e?Uc(e):typeof fetch=="function",o=Uc(r),s=Uc(n);if(!a)return!1;const i=a&&Uc(Fx),l=a&&(typeof Lx=="function"?(f=>y=>f.encode(y))(new Lx):async f=>new Uint8Array(await new r(f).arrayBuffer())),c=o&&i&&Nx(()=>{let f=!1;const y=new r(Yt.origin,{body:new Fx,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!y}),u=s&&i&&Nx(()=>J.isReadableStream(new n("").body)),d={stream:u&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(y,v)=>{let g=y&&y[f];if(g)return g.call(y);throw new ve(`Response type '${f}' is not supported`,ve.ERR_NOT_SUPPORT,v)})});const p=async f=>{if(f==null)return 0;if(J.isBlob(f))return f.size;if(J.isSpecCompliantForm(f))return(await new r(Yt.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(J.isArrayBufferView(f)||J.isArrayBuffer(f))return f.byteLength;if(J.isURLSearchParams(f)&&(f=f+""),J.isString(f))return(await l(f)).byteLength},h=async(f,y)=>{const v=J.toFiniteNumber(f.getContentLength());return v??p(y)};return async f=>{let{url:y,method:v,data:g,signal:m,cancelToken:C,timeout:x,onDownloadProgress:S,onUploadProgress:P,responseType:A,headers:V,withCredentials:U="same-origin",fetchOptions:O}=Bw(f),I=e||fetch;A=A?(A+"").toLowerCase():"text";let L=KF([m,C&&C.toAbortSignal()],x),N=null;const G=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let H;try{if(P&&c&&v!=="get"&&v!=="head"&&(H=await h(V,g))!==0){let M=new r(y,{method:"POST",body:g,duplex:"half"}),z;if(J.isFormData(g)&&(z=M.headers.get("content-type"))&&V.setContentType(z),M.body){const[W,q]=kx(H,Ad(_x(P)));g=Bx(M.body,Mx,W,q)}}J.isString(U)||(U=U?"include":"omit");const $=o&&"credentials"in r.prototype,X={...O,signal:L,method:v.toUpperCase(),headers:V.normalize().toJSON(),body:g,duplex:"half",credentials:$?U:void 0};N=o&&new r(y,X);let F=await(o?I(N,O):I(y,X));const Y=u&&(A==="stream"||A==="response");if(u&&(S||Y&&G)){const M={};["status","statusText","headers"].forEach(ae=>{M[ae]=F[ae]});const z=J.toFiniteNumber(F.headers.get("content-length")),[W,q]=S&&kx(z,Ad(_x(S),!0))||[];F=new n(Bx(F.body,Mx,W,()=>{q&&q(),G&&G()}),M)}A=A||"text";let Q=await d[J.findKey(d,A)||"text"](F,f);return!Y&&G&&G(),await new Promise((M,z)=>{_w(M,z,{data:Q,headers:nn.from(F.headers),status:F.status,statusText:F.statusText,config:f,request:N})})}catch($){throw G&&G(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,f,N),{cause:$.cause||$}):ve.from($,$&&$.code,f,N)}}},eL=new Map,Mw=t=>{let e=t?t.env:{};const{fetch:r,Request:n,Response:a}=e,o=[n,a,r];let s=o.length,i=s,l,c,u=eL;for(;i--;)l=o[i],c=u.get(l),c===void 0&&u.set(l,c=i?new Map:ZF(e)),u=c;return c};Mw();const _m={http:mF,xhr:qF,fetch:{get:Mw}};J.forEach(_m,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Gx=t=>`- ${t}`,tL=t=>J.isFunction(t)||t===null||t===!1,Fw={getAdapter:(t,e)=>{t=J.isArray(t)?t:[t];const{length:r}=t;let n,a;const o={};for(let s=0;s<r;s++){n=t[s];let i;if(a=n,!tL(n)&&(a=_m[(i=String(n)).toLowerCase()],a===void 0))throw new ve(`Unknown adapter '${i}'`);if(a&&(J.isFunction(a)||(a=a.get(e))))break;o[i||"#"+s]=a}if(!a){const s=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=r?s.length>1?`since :
|
|
101
|
+
`+s.map(Gx).join(`
|
|
102
|
+
`):" "+Gx(s[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return a},adapters:_m};function d0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ci(null,t)}function Hx(t){return d0(t),t.headers=nn.from(t.headers),t.data=u0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Fw.getAdapter(t.adapter||Yv.adapter,t)(t).then(function(n){return d0(t),n.data=u0.call(t,t.transformResponse,n),n.headers=nn.from(n.headers),n},function(n){return kw(n)||(d0(t),n&&n.response&&(n.response.data=u0.call(t,t.transformResponse,n.response),n.response.headers=nn.from(n.response.headers))),Promise.reject(n)})}const Lw="1.12.2",Jp={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jp[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const jx={};Jp.transitional=function(e,r,n){function a(o,s){return"[Axios v"+Lw+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,i)=>{if(e===!1)throw new ve(a(s," has been removed"+(r?" in "+r:"")),ve.ERR_DEPRECATED);return r&&!jx[s]&&(jx[s]=!0,console.warn(a(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,s,i):!0}};Jp.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function rL(t,e,r){if(typeof t!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let a=n.length;for(;a-- >0;){const o=n[a],s=e[o];if(s){const i=t[o],l=i===void 0||s(i,o,t);if(l!==!0)throw new ve("option "+o+" must be "+l,ve.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}}const Eu={assertOptions:rL,validators:Jp},hn=Eu.validators;class Od{constructor(e){this.defaults=e||{},this.interceptors={request:new Rx,response:new Rx}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
103
|
+
`+o):n.stack=o}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Eo(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&Eu.assertOptions(n,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),a!=null&&(J.isFunction(a)?r.paramsSerializer={serialize:a}:Eu.assertOptions(a,{encode:hn.function,serialize:hn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Eu.assertOptions(r,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&J.merge(o.common,o[r.method]);o&&J.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),r.headers=nn.concat(s,o);const i=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,i.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let u,d=0,p;if(!l){const f=[Hx.bind(this),void 0];for(f.unshift(...i),f.push(...c),p=f.length,u=Promise.resolve(r);d<p;)u=u.then(f[d++],f[d++]);return u}p=i.length;let h=r;for(;d<p;){const f=i[d++],y=i[d++];try{h=f(h)}catch(v){y.call(this,v);break}}try{u=Hx.call(this,h)}catch(f){return Promise.reject(f)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Eo(this.defaults,e);const r=Uw(e.baseURL,e.url,e.allowAbsoluteUrls);return Ew(r,e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],function(e){Od.prototype[e]=function(r,n){return this.request(Eo(n||{},{method:e,url:r,data:(n||{}).data}))}});J.forEach(["post","put","patch"],function(e){function r(n){return function(o,s,i){return this.request(Eo(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Od.prototype[e]=r(),Od.prototype[e+"Form"]=r(!0)});const Ru=Od;class Jv{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o;const s=new Promise(i=>{n.subscribe(i),o=i}).then(a);return s.cancel=function(){n.unsubscribe(o)},s},e(function(o,s,i){n.reason||(n.reason=new ci(o,s,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Jv(function(a){e=a}),cancel:e}}}const nL=Jv;function aL(t){return function(r){return t.apply(null,r)}}function oL(t){return J.isObject(t)&&t.isAxiosError===!0}const Um={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Um).forEach(([t,e])=>{Um[e]=t});const sL=Um;function Nw(t){const e=new Ru(t),r=gw(Ru.prototype.request,e);return J.extend(r,Ru.prototype,e,{allOwnKeys:!0}),J.extend(r,e,null,{allOwnKeys:!0}),r.create=function(a){return Nw(Eo(t,a))},r}const ht=Nw(Yv);ht.Axios=Ru;ht.CanceledError=ci;ht.CancelToken=nL;ht.isCancel=kw;ht.VERSION=Lw;ht.toFormData=Wp;ht.AxiosError=ve;ht.Cancel=ht.CanceledError;ht.all=function(e){return Promise.all(e)};ht.spread=aL;ht.isAxiosError=oL;ht.mergeConfig=Eo;ht.AxiosHeaders=nn;ht.formToJSON=t=>Dw(J.isHTMLForm(t)?new FormData(t):t);ht.getAdapter=Fw.getAdapter;ht.HttpStatusCode=sL;ht.default=ht;const w=ht,b="http://localhost".replace(/\/+$/,"");class Fe{constructor(e,r=b,n=w){Rr(this,"configuration");this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??r)}}class iL extends Error{constructor(e,r){super(r),this.field=e,this.name="RequiredError"}}const T={},E="https://example.com",j=function(t,e,r){if(r==null)throw new iL(e,`Required parameter ${e} was null or undefined when calling ${t}.`)},R=async function(t,e){if(e&&e.accessToken){const r=typeof e.accessToken=="function"?await e.accessToken():await e.accessToken;t.Authorization="Bearer "+r}};function Bm(t,e,r=""){e!=null&&(typeof e=="object"?Array.isArray(e)?e.forEach(n=>Bm(t,n,r)):Object.keys(e).forEach(n=>Bm(t,e[n],`${r}${r!==""?".":""}${n}`)):t.has(r)?t.append(r,e):t.set(r,e))}const D=function(t,...e){const r=new URLSearchParams(t.search);Bm(r,e),t.search=r.toString()},ee=function(t,e,r){const n=typeof t!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(t!==void 0?t:{}):t||""},k=function(t){return t.pathname+t.search+t.hash},_=function(t,e,r,n){return(a=e,o=r)=>{const s={...t.options,url:(a.defaults.baseURL?"":(n==null?void 0:n.basePath)??o)+t.url};return a.request(s)}},lL={Regular:"Regular",Biometric:"Biometric",Google:"Google",Microsoft:"Microsoft",PasswordLess:"PasswordLess"},cL=function(t){return{apiV10AccountAddAccountPost:async(e,r={})=>{const n="/api/v1.0/Account/AddAccount",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountChangePasswordPost:async(e,r={})=>{const n="/api/v1.0/Account/ChangePassword",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountDeleteAccountIdDelete:async(e,r={})=>{j("apiV10AccountDeleteAccountIdDelete","id",e);const n="/api/v1.0/Account/DeleteAccount/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountEnable2faForAllPost:async(e,r={})=>{const n="/api/v1.0/Account/Enable2faForAll",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.isEnabled=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountEnable2faGet:async(e,r={})=>{const n="/api/v1.0/Account/Enable2fa",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.IsEnabled=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountForgotPasswordGet:async(e,r,n={})=>{j("apiV10AccountForgotPasswordGet","email",e);const a="/api/v1.0/Account/ForgotPassword",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.email=e),r!==void 0&&(c.isMobile=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10AccountGenerateQRCodeGet:async(e,r={})=>{const n="/api/v1.0/Account/GenerateQRCode",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.tmpUrl=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountGetAccountByIdIdGet:async(e,r={})=>{j("apiV10AccountGetAccountByIdIdGet","id",e);const n="/api/v1.0/Account/GetAccountById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountGetAccountUsersByAccountIdAccountIdGet:async(e,r={})=>{j("apiV10AccountGetAccountUsersByAccountIdAccountIdGet","accountId",e);const n="/api/v1.0/Account/GetAccountUsersByAccountId/{accountId}".replace("{accountId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountGetAccountsPost:async(e,r={})=>{const n="/api/v1.0/Account/GetAccounts",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountGetCourseDetailGet:async(e,r,n={})=>{const a="/api/v1.0/Account/GetCourseDetail",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.referralCode=e),r!==void 0&&(c.IsEncoded=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10AccountGetLoginActivitiesPost:async(e,r,n,a,o,s={})=>{const i="/api/v1.0/Account/GetLoginActivities",l=new URL(i,E);let c;t&&(c=t.baseOptions);const u={method:"POST",...c,...s},d={},p={};await R(d,t),e!==void 0&&(p.pageNumber=e),r!==void 0&&(p.pageSize=r),n!==void 0&&(p.sortBy=n),a!==void 0&&(p.isAscending=a),d["Content-Type"]="application/json",D(l,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...s.headers},u.data=ee(o,u,t),{url:k(l),options:u}},apiV10AccountGetOpportunityFilesByAccountIdIdGet:async(e,r={})=>{j("apiV10AccountGetOpportunityFilesByAccountIdIdGet","id",e);const n="/api/v1.0/Account/GetOpportunityFilesByAccountId/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10AccountLoginLogintopotalPost:async(e,r,n,a,o,s={})=>{j("apiV10AccountLoginLogintopotalPost","logintopotal",e);const i="/api/v1.0/Account/Login/{logintopotal}".replace("{logintopotal}",encodeURIComponent(String(e))),l=new URL(i,E);let c;t&&(c=t.baseOptions);const u={method:"POST",...c,...s},d={},p={};await R(d,t),r!==void 0&&(p.loginType=r),n!==void 0&&(p.source=n),a!==void 0&&(p.flag=a),d["Content-Type"]="application/json",D(l,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...s.headers},u.data=ee(o,u,t),{url:k(l),options:u}},apiV10AccountLoginPost:async(e,r,n,a,o={})=>{const s="/api/v1.0/Account/Login",i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"POST",...l,...o},u={},d={};await R(u,t),e!==void 0&&(d.loginType=e),r!==void 0&&(d.source=r),n!==void 0&&(d.flag=n),u["Content-Type"]="application/json",D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},c.data=ee(a,c,t),{url:k(i),options:c}},apiV10AccountLogoutPost:async(e,r,n,a={})=>{const o="/api/v1.0/Account/Logout",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.userId=e),r!==void 0&&(u.loginType=r),n!==void 0&&(u.source=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:k(s),options:l}},apiV10AccountResetPasswordPost:async(e,r={})=>{const n="/api/v1.0/Account/ResetPassword",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountSignUpPost:async(e,r,n,a={})=>{const o="/api/v1.0/Account/SignUp",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.signUpType=e),r!==void 0&&(u.portal=r),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=ee(n,l,t),{url:k(s),options:l}},apiV10AccountUpdateAccountIdPut:async(e,r,n={})=>{j("apiV10AccountUpdateAccountIdPut","id",e);const a="/api/v1.0/Account/UpdateAccount/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10AccountUpdateProfileDataPost:async(e,r,n,a,o,s,i,l,c={})=>{const u="/api/v1.0/Account/UpdateProfileData",d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"POST",...p,...c},f={},y={},v=new(t&&t.formDataCtor||FormData);await R(f,t),e!==void 0&&v.append("Avatar",e),r!==void 0&&v.append("Email",r),n!==void 0&&v.append("Lang",n),a!==void 0&&v.append("Name",a),o!==void 0&&v.append("SyncData",o),s!==void 0&&v.append("TimeZone",s),i!==void 0&&v.append("Title",i),l!==void 0&&v.append("TwoFactor",l),f["Content-Type"]="multipart/form-data",D(d,y);let g=p&&p.headers?p.headers:{};return h.headers={...f,...g,...c.headers},h.data=v,{url:k(d),options:h}},apiV10AccountVerify2faPost:async(e,r={})=>{const n="/api/v1.0/Account/Verify2fa",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountVerifyEmailPost:async(e,r={})=>{const n="/api/v1.0/Account/VerifyEmail",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10AccountVerifyForgotPasswordCodePost:async(e,r,n={})=>{const a="/api/v1.0/Account/VerifyForgotPasswordCode",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.isMobile=e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ze=function(t){const e=cL(t);return{async apiV10AccountAddAccountPost(r,n){var i,l;const a=await e.apiV10AccountAddAccountPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountAddAccountPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountChangePasswordPost(r,n){var i,l;const a=await e.apiV10AccountChangePasswordPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountChangePasswordPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountDeleteAccountIdDelete(r,n){var i,l;const a=await e.apiV10AccountDeleteAccountIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountDeleteAccountIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountEnable2faForAllPost(r,n){var i,l;const a=await e.apiV10AccountEnable2faForAllPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountEnable2faForAllPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountEnable2faGet(r,n){var i,l;const a=await e.apiV10AccountEnable2faGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountEnable2faGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountForgotPasswordGet(r,n,a){var l,c;const o=await e.apiV10AccountForgotPasswordGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["AccountApi.apiV10AccountForgotPasswordGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10AccountGenerateQRCodeGet(r,n){var i,l;const a=await e.apiV10AccountGenerateQRCodeGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountGenerateQRCodeGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountGetAccountByIdIdGet(r,n){var i,l;const a=await e.apiV10AccountGetAccountByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountGetAccountByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountGetAccountUsersByAccountIdAccountIdGet(r,n){var i,l;const a=await e.apiV10AccountGetAccountUsersByAccountIdAccountIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountGetAccountUsersByAccountIdAccountIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountGetAccountsPost(r,n){var i,l;const a=await e.apiV10AccountGetAccountsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountGetAccountsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountGetCourseDetailGet(r,n,a){var l,c;const o=await e.apiV10AccountGetCourseDetailGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["AccountApi.apiV10AccountGetCourseDetailGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10AccountGetLoginActivitiesPost(r,n,a,o,s,i){var d,p;const l=await e.apiV10AccountGetLoginActivitiesPost(r,n,a,o,s,i),c=(t==null?void 0:t.serverIndex)??0,u=(p=(d=T["AccountApi.apiV10AccountGetLoginActivitiesPost"])==null?void 0:d[c])==null?void 0:p.url;return(h,f)=>_(l,w,b,t)(h,u||f)},async apiV10AccountGetOpportunityFilesByAccountIdIdGet(r,n){var i,l;const a=await e.apiV10AccountGetOpportunityFilesByAccountIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountGetOpportunityFilesByAccountIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountLoginLogintopotalPost(r,n,a,o,s,i){var d,p;const l=await e.apiV10AccountLoginLogintopotalPost(r,n,a,o,s,i),c=(t==null?void 0:t.serverIndex)??0,u=(p=(d=T["AccountApi.apiV10AccountLoginLogintopotalPost"])==null?void 0:d[c])==null?void 0:p.url;return(h,f)=>_(l,w,b,t)(h,u||f)},async apiV10AccountLoginPost(r,n,a,o,s){var u,d;const i=await e.apiV10AccountLoginPost(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["AccountApi.apiV10AccountLoginPost"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10AccountLogoutPost(r,n,a,o){var c,u;const s=await e.apiV10AccountLogoutPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["AccountApi.apiV10AccountLogoutPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10AccountResetPasswordPost(r,n){var i,l;const a=await e.apiV10AccountResetPasswordPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountResetPasswordPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountSignUpPost(r,n,a,o){var c,u;const s=await e.apiV10AccountSignUpPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["AccountApi.apiV10AccountSignUpPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10AccountUpdateAccountIdPut(r,n,a){var l,c;const o=await e.apiV10AccountUpdateAccountIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["AccountApi.apiV10AccountUpdateAccountIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10AccountUpdateProfileDataPost(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10AccountUpdateProfileDataPost(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["AccountApi.apiV10AccountUpdateProfileDataPost"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)},async apiV10AccountVerify2faPost(r,n){var i,l;const a=await e.apiV10AccountVerify2faPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountVerify2faPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountVerifyEmailPost(r,n){var i,l;const a=await e.apiV10AccountVerifyEmailPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AccountApi.apiV10AccountVerifyEmailPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10AccountVerifyForgotPasswordCodePost(r,n,a){var l,c;const o=await e.apiV10AccountVerifyForgotPasswordCodePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["AccountApi.apiV10AccountVerifyForgotPasswordCodePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class uL extends Fe{apiV10AccountAddAccountPost(e,r){return Ze(this.configuration).apiV10AccountAddAccountPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountChangePasswordPost(e,r){return Ze(this.configuration).apiV10AccountChangePasswordPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountDeleteAccountIdDelete(e,r){return Ze(this.configuration).apiV10AccountDeleteAccountIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountEnable2faForAllPost(e,r){return Ze(this.configuration).apiV10AccountEnable2faForAllPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountEnable2faGet(e,r){return Ze(this.configuration).apiV10AccountEnable2faGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountForgotPasswordGet(e,r,n){return Ze(this.configuration).apiV10AccountForgotPasswordGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10AccountGenerateQRCodeGet(e,r){return Ze(this.configuration).apiV10AccountGenerateQRCodeGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountGetAccountByIdIdGet(e,r){return Ze(this.configuration).apiV10AccountGetAccountByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountGetAccountUsersByAccountIdAccountIdGet(e,r){return Ze(this.configuration).apiV10AccountGetAccountUsersByAccountIdAccountIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountGetAccountsPost(e,r){return Ze(this.configuration).apiV10AccountGetAccountsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountGetCourseDetailGet(e,r,n){return Ze(this.configuration).apiV10AccountGetCourseDetailGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10AccountGetLoginActivitiesPost(e,r,n,a,o,s){return Ze(this.configuration).apiV10AccountGetLoginActivitiesPost(e,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}apiV10AccountGetOpportunityFilesByAccountIdIdGet(e,r){return Ze(this.configuration).apiV10AccountGetOpportunityFilesByAccountIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountLoginLogintopotalPost(e,r,n,a,o,s){return Ze(this.configuration).apiV10AccountLoginLogintopotalPost(e,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}apiV10AccountLoginPost(e,r,n,a,o){return Ze(this.configuration).apiV10AccountLoginPost(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10AccountLogoutPost(e,r,n,a){return Ze(this.configuration).apiV10AccountLogoutPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10AccountResetPasswordPost(e,r){return Ze(this.configuration).apiV10AccountResetPasswordPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountSignUpPost(e,r,n,a){return Ze(this.configuration).apiV10AccountSignUpPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10AccountUpdateAccountIdPut(e,r,n){return Ze(this.configuration).apiV10AccountUpdateAccountIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10AccountUpdateProfileDataPost(e,r,n,a,o,s,i,l,c){return Ze(this.configuration).apiV10AccountUpdateProfileDataPost(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}apiV10AccountVerify2faPost(e,r){return Ze(this.configuration).apiV10AccountVerify2faPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountVerifyEmailPost(e,r){return Ze(this.configuration).apiV10AccountVerifyEmailPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10AccountVerifyForgotPasswordCodePost(e,r,n){return Ze(this.configuration).apiV10AccountVerifyForgotPasswordCodePost(e,r,n).then(a=>a(this.axios,this.basePath))}}const dL=function(t){return{apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet:async(e,r={})=>{j("apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet","fileId",e);const n="/api/v1.0/CustomerPortal/AllDocuments/DownloadFile/{fileId}".replace("{fileId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CustomerPortalAllDocumentsGetFilesGet:async(e,r,n,a={})=>{const o="/api/v1.0/CustomerPortal/AllDocuments/GetFiles",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"GET",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.searchParam=e),r!==void 0&&(u.pageNumber=r),n!==void 0&&(u.pageSize=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:k(s),options:l}}}},$x=function(t){const e=dL(t);return{async apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet(r,n){var i,l;const a=await e.apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["AllDocumentsApi.apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CustomerPortalAllDocumentsGetFilesGet(r,n,a,o){var c,u;const s=await e.apiV10CustomerPortalAllDocumentsGetFilesGet(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["AllDocumentsApi.apiV10CustomerPortalAllDocumentsGetFilesGet"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)}}};class pL extends Fe{apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet(e,r){return $x(this.configuration).apiV10CustomerPortalAllDocumentsDownloadFileFileIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10CustomerPortalAllDocumentsGetFilesGet(e,r,n,a){return $x(this.configuration).apiV10CustomerPortalAllDocumentsGetFilesGet(e,r,n,a).then(o=>o(this.axios,this.basePath))}}const hL=function(t){return{apiV10BrainAskAQuestionPost:async(e,r,n,a,o,s={})=>{const i="/api/v1.0/Brain/AskAQuestion",l=new URL(i,E);let c;t&&(c=t.baseOptions);const u={method:"POST",...c,...s},d={},p={};await R(d,t),e!==void 0&&(p.name=e),r!==void 0&&(p.UID=r),n!==void 0&&(p.IsChat=n),a!==void 0&&(p.IpAddress=a),d["Content-Type"]="application/json",D(l,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...s.headers},u.data=ee(o,u,t),{url:k(l),options:u}},apiV10BrainAskNameQuestionPost:async(e,r={})=>{const n="/api/v1.0/Brain/AskNameQuestion",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10BrainDeleteDocumentIdDelete:async(e,r={})=>{j("apiV10BrainDeleteDocumentIdDelete","id",e);const n="/api/v1.0/Brain/DeleteDocument/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainDeleteSchemaContextIdDelete:async(e,r={})=>{j("apiV10BrainDeleteSchemaContextIdDelete","id",e);const n="/api/v1.0/Brain/DeleteSchemaContext/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainGetDocumentIdGet:async(e,r={})=>{j("apiV10BrainGetDocumentIdGet","id",e);const n="/api/v1.0/Brain/GetDocument/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainGetDocumentsGet:async(e={})=>{const r="/api/v1.0/Brain/GetDocuments",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10BrainGetSchemaContextsGet:async(e={})=>{const r="/api/v1.0/Brain/GetSchemaContexts",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10BrainGetSchemaTablesGet:async(e={})=>{const r="/api/v1.0/Brain/GetSchemaTables",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10BrainGetZapierStatusIdGet:async(e,r={})=>{j("apiV10BrainGetZapierStatusIdGet","id",e);const n="/api/v1.0/Brain/GetZapierStatus/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainPostSchemaContextPost:async(e,r={})=>{const n="/api/v1.0/Brain/PostSchemaContext",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10BrainPutSchemaContextIdPut:async(e,r,n={})=>{j("apiV10BrainPutSchemaContextIdPut","id",e);const a="/api/v1.0/Brain/PutSchemaContext/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10BrainQueryDocumentPost:async(e,r={})=>{const n="/api/v1.0/Brain/QueryDocument",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10BrainRegenerateDocumentChunksIdPost:async(e,r={})=>{j("apiV10BrainRegenerateDocumentChunksIdPost","id",e);const n="/api/v1.0/Brain/RegenerateDocumentChunks/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainRemoveAllDocumentChunksDelete:async(e={})=>{const r="/api/v1.0/Brain/RemoveAllDocumentChunks",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"DELETE",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10BrainRemoveDocumentChunksIdDelete:async(e,r={})=>{j("apiV10BrainRemoveDocumentChunksIdDelete","id",e);const n="/api/v1.0/Brain/RemoveDocumentChunks/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrainUploadAndAskPost:async(e,r,n={})=>{j("apiV10BrainUploadAndAskPost","file",e);const a="/api/v1.0/Brain/UploadAndAsk",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e!==void 0&&u.append("File",e),r!==void 0&&u.append("Question",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10BrainUploadDocumentPost:async(e,r,n={})=>{j("apiV10BrainUploadDocumentPost","file",e);const a="/api/v1.0/Brain/UploadDocument",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e!==void 0&&u.append("File",e),r!==void 0&&u.append("Description",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10BrainWebhookPost:async(e,r={})=>{const n="/api/v1.0/Brain/webhook",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},getSchemaTableColumns:async(e,r={})=>{const n="/api/v1.0/Brain/GetSchemaTableColumns",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.tableName=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}}}},ft=function(t){const e=hL(t);return{async apiV10BrainAskAQuestionPost(r,n,a,o,s,i){var d,p;const l=await e.apiV10BrainAskAQuestionPost(r,n,a,o,s,i),c=(t==null?void 0:t.serverIndex)??0,u=(p=(d=T["BrainApi.apiV10BrainAskAQuestionPost"])==null?void 0:d[c])==null?void 0:p.url;return(h,f)=>_(l,w,b,t)(h,u||f)},async apiV10BrainAskNameQuestionPost(r,n){var i,l;const a=await e.apiV10BrainAskNameQuestionPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainAskNameQuestionPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainDeleteDocumentIdDelete(r,n){var i,l;const a=await e.apiV10BrainDeleteDocumentIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainDeleteDocumentIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainDeleteSchemaContextIdDelete(r,n){var i,l;const a=await e.apiV10BrainDeleteSchemaContextIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainDeleteSchemaContextIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainGetDocumentIdGet(r,n){var i,l;const a=await e.apiV10BrainGetDocumentIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainGetDocumentIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainGetDocumentsGet(r){var s,i;const n=await e.apiV10BrainGetDocumentsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["BrainApi.apiV10BrainGetDocumentsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10BrainGetSchemaContextsGet(r){var s,i;const n=await e.apiV10BrainGetSchemaContextsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["BrainApi.apiV10BrainGetSchemaContextsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10BrainGetSchemaTablesGet(r){var s,i;const n=await e.apiV10BrainGetSchemaTablesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["BrainApi.apiV10BrainGetSchemaTablesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10BrainGetZapierStatusIdGet(r,n){var i,l;const a=await e.apiV10BrainGetZapierStatusIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainGetZapierStatusIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainPostSchemaContextPost(r,n){var i,l;const a=await e.apiV10BrainPostSchemaContextPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainPostSchemaContextPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainPutSchemaContextIdPut(r,n,a){var l,c;const o=await e.apiV10BrainPutSchemaContextIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["BrainApi.apiV10BrainPutSchemaContextIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10BrainQueryDocumentPost(r,n){var i,l;const a=await e.apiV10BrainQueryDocumentPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainQueryDocumentPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainRegenerateDocumentChunksIdPost(r,n){var i,l;const a=await e.apiV10BrainRegenerateDocumentChunksIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainRegenerateDocumentChunksIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainRemoveAllDocumentChunksDelete(r){var s,i;const n=await e.apiV10BrainRemoveAllDocumentChunksDelete(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["BrainApi.apiV10BrainRemoveAllDocumentChunksDelete"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10BrainRemoveDocumentChunksIdDelete(r,n){var i,l;const a=await e.apiV10BrainRemoveDocumentChunksIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainRemoveDocumentChunksIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrainUploadAndAskPost(r,n,a){var l,c;const o=await e.apiV10BrainUploadAndAskPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["BrainApi.apiV10BrainUploadAndAskPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10BrainUploadDocumentPost(r,n,a){var l,c;const o=await e.apiV10BrainUploadDocumentPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["BrainApi.apiV10BrainUploadDocumentPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10BrainWebhookPost(r,n){var i,l;const a=await e.apiV10BrainWebhookPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.apiV10BrainWebhookPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async getSchemaTableColumns(r,n){var i,l;const a=await e.getSchemaTableColumns(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrainApi.getSchemaTableColumns"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class fL extends Fe{apiV10BrainAskAQuestionPost(e,r,n,a,o,s){return ft(this.configuration).apiV10BrainAskAQuestionPost(e,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}apiV10BrainAskNameQuestionPost(e,r){return ft(this.configuration).apiV10BrainAskNameQuestionPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainDeleteDocumentIdDelete(e,r){return ft(this.configuration).apiV10BrainDeleteDocumentIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainDeleteSchemaContextIdDelete(e,r){return ft(this.configuration).apiV10BrainDeleteSchemaContextIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainGetDocumentIdGet(e,r){return ft(this.configuration).apiV10BrainGetDocumentIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainGetDocumentsGet(e){return ft(this.configuration).apiV10BrainGetDocumentsGet(e).then(r=>r(this.axios,this.basePath))}apiV10BrainGetSchemaContextsGet(e){return ft(this.configuration).apiV10BrainGetSchemaContextsGet(e).then(r=>r(this.axios,this.basePath))}apiV10BrainGetSchemaTablesGet(e){return ft(this.configuration).apiV10BrainGetSchemaTablesGet(e).then(r=>r(this.axios,this.basePath))}apiV10BrainGetZapierStatusIdGet(e,r){return ft(this.configuration).apiV10BrainGetZapierStatusIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainPostSchemaContextPost(e,r){return ft(this.configuration).apiV10BrainPostSchemaContextPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainPutSchemaContextIdPut(e,r,n){return ft(this.configuration).apiV10BrainPutSchemaContextIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10BrainQueryDocumentPost(e,r){return ft(this.configuration).apiV10BrainQueryDocumentPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainRegenerateDocumentChunksIdPost(e,r){return ft(this.configuration).apiV10BrainRegenerateDocumentChunksIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainRemoveAllDocumentChunksDelete(e){return ft(this.configuration).apiV10BrainRemoveAllDocumentChunksDelete(e).then(r=>r(this.axios,this.basePath))}apiV10BrainRemoveDocumentChunksIdDelete(e,r){return ft(this.configuration).apiV10BrainRemoveDocumentChunksIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrainUploadAndAskPost(e,r,n){return ft(this.configuration).apiV10BrainUploadAndAskPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10BrainUploadDocumentPost(e,r,n){return ft(this.configuration).apiV10BrainUploadDocumentPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10BrainWebhookPost(e,r){return ft(this.configuration).apiV10BrainWebhookPost(e,r).then(n=>n(this.axios,this.basePath))}getSchemaTableColumns(e,r){return ft(this.configuration).getSchemaTableColumns(e,r).then(n=>n(this.axios,this.basePath))}}const mL=function(t){return{apiV10BrandingSettingsAddBrandingDataPost:async(e,r,n,a,o,s,i,l={})=>{const c="/api/v1.0/BrandingSettings/AddBrandingData",u=new URL(c,E);let d;t&&(d=t.baseOptions);const p={method:"POST",...d,...l},h={},f={},y=new(t&&t.formDataCtor||FormData);await R(h,t),e!==void 0&&y.append("SettingKey",e),r!==void 0&&y.append("SettingName",r),n!==void 0&&y.append("SettingValue",n),a!==void 0&&y.append("SettingType",a),o!==void 0&&y.append("SettingDescription",o),s!==void 0&&y.append("SettingFile",s),i!==void 0&&y.append("MoreInformation",i),h["Content-Type"]="multipart/form-data",D(u,f);let v=d&&d.headers?d.headers:{};return p.headers={...h,...v,...l.headers},p.data=y,{url:k(u),options:p}},apiV10BrandingSettingsDeleteBrandingDataIdDelete:async(e,r={})=>{j("apiV10BrandingSettingsDeleteBrandingDataIdDelete","id",e);const n="/api/v1.0/BrandingSettings/DeleteBrandingData/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10BrandingSettingsGetAllBrandingDataPost:async(e={})=>{const r="/api/v1.0/BrandingSettings/GetAllBrandingData",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10BrandingSettingsUpdateBrandingDataIdPut:async(e,r,n,a,o,s,i,l,c={})=>{j("apiV10BrandingSettingsUpdateBrandingDataIdPut","id",e);const u="/api/v1.0/BrandingSettings/UpdateBrandingData/{id}".replace("{id}",encodeURIComponent(String(e))),d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"PUT",...p,...c},f={},y={},v=new(t&&t.formDataCtor||FormData);await R(f,t),r!==void 0&&v.append("SettingKey",r),n!==void 0&&v.append("SettingName",n),a!==void 0&&v.append("SettingValue",a),o!==void 0&&v.append("SettingType",o),s!==void 0&&v.append("SettingDescription",s),i!==void 0&&v.append("SettingFile",i),l!==void 0&&v.append("MoreInformation",l),f["Content-Type"]="multipart/form-data",D(d,y);let g=p&&p.headers?p.headers:{};return h.headers={...f,...g,...c.headers},h.data=v,{url:k(d),options:h}}}},Bc=function(t){const e=mL(t);return{async apiV10BrandingSettingsAddBrandingDataPost(r,n,a,o,s,i,l,c){var h,f;const u=await e.apiV10BrandingSettingsAddBrandingDataPost(r,n,a,o,s,i,l,c),d=(t==null?void 0:t.serverIndex)??0,p=(f=(h=T["BrandingSettingsApi.apiV10BrandingSettingsAddBrandingDataPost"])==null?void 0:h[d])==null?void 0:f.url;return(y,v)=>_(u,w,b,t)(y,p||v)},async apiV10BrandingSettingsDeleteBrandingDataIdDelete(r,n){var i,l;const a=await e.apiV10BrandingSettingsDeleteBrandingDataIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["BrandingSettingsApi.apiV10BrandingSettingsDeleteBrandingDataIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10BrandingSettingsGetAllBrandingDataPost(r){var s,i;const n=await e.apiV10BrandingSettingsGetAllBrandingDataPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["BrandingSettingsApi.apiV10BrandingSettingsGetAllBrandingDataPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10BrandingSettingsUpdateBrandingDataIdPut(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10BrandingSettingsUpdateBrandingDataIdPut(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["BrandingSettingsApi.apiV10BrandingSettingsUpdateBrandingDataIdPut"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)}}};class yL extends Fe{apiV10BrandingSettingsAddBrandingDataPost(e,r,n,a,o,s,i,l){return Bc(this.configuration).apiV10BrandingSettingsAddBrandingDataPost(e,r,n,a,o,s,i,l).then(c=>c(this.axios,this.basePath))}apiV10BrandingSettingsDeleteBrandingDataIdDelete(e,r){return Bc(this.configuration).apiV10BrandingSettingsDeleteBrandingDataIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10BrandingSettingsGetAllBrandingDataPost(e){return Bc(this.configuration).apiV10BrandingSettingsGetAllBrandingDataPost(e).then(r=>r(this.axios,this.basePath))}apiV10BrandingSettingsUpdateBrandingDataIdPut(e,r,n,a,o,s,i,l,c){return Bc(this.configuration).apiV10BrandingSettingsUpdateBrandingDataIdPut(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}}const vL=function(t){return{apiV10ChatGetChatHistoryPost:async(e,r={})=>{const n="/api/v1.0/Chat/GetChatHistory",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ChatGetChatListIdPost:async(e,r={})=>{j("apiV10ChatGetChatListIdPost","id",e);const n="/api/v1.0/Chat/GetChatList/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ChatSendMessagePost:async(e,r={})=>{const n="/api/v1.0/Chat/SendMessage",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},p0=function(t){const e=vL(t);return{async apiV10ChatGetChatHistoryPost(r,n){var i,l;const a=await e.apiV10ChatGetChatHistoryPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ChatApi.apiV10ChatGetChatHistoryPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ChatGetChatListIdPost(r,n){var i,l;const a=await e.apiV10ChatGetChatListIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ChatApi.apiV10ChatGetChatListIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ChatSendMessagePost(r,n){var i,l;const a=await e.apiV10ChatSendMessagePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ChatApi.apiV10ChatSendMessagePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class gL extends Fe{apiV10ChatGetChatHistoryPost(e,r){return p0(this.configuration).apiV10ChatGetChatHistoryPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ChatGetChatListIdPost(e,r){return p0(this.configuration).apiV10ChatGetChatListIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ChatSendMessagePost(e,r){return p0(this.configuration).apiV10ChatSendMessagePost(e,r).then(n=>n(this.axios,this.basePath))}}const CL=function(t){return{apiV10CompanyAddCompanyPost:async(e,r={})=>{const n="/api/v1.0/Company/AddCompany",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10CompanyDeleteCompanyIdDelete:async(e,r={})=>{j("apiV10CompanyDeleteCompanyIdDelete","id",e);const n="/api/v1.0/Company/DeleteCompany/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CompanyGetCompaniesPost:async(e={})=>{const r="/api/v1.0/Company/GetCompanies",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10CompanyGetCompanyByIdIdGet:async(e,r={})=>{j("apiV10CompanyGetCompanyByIdIdGet","id",e);const n="/api/v1.0/Company/GetCompanyById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CompanyUpdateCompanyIdPut:async(e,r,n={})=>{j("apiV10CompanyUpdateCompanyIdPut","id",e);const a="/api/v1.0/Company/UpdateCompany/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},bi=function(t){const e=CL(t);return{async apiV10CompanyAddCompanyPost(r,n){var i,l;const a=await e.apiV10CompanyAddCompanyPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CompanyApi.apiV10CompanyAddCompanyPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CompanyDeleteCompanyIdDelete(r,n){var i,l;const a=await e.apiV10CompanyDeleteCompanyIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CompanyApi.apiV10CompanyDeleteCompanyIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CompanyGetCompaniesPost(r){var s,i;const n=await e.apiV10CompanyGetCompaniesPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["CompanyApi.apiV10CompanyGetCompaniesPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10CompanyGetCompanyByIdIdGet(r,n){var i,l;const a=await e.apiV10CompanyGetCompanyByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CompanyApi.apiV10CompanyGetCompanyByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CompanyUpdateCompanyIdPut(r,n,a){var l,c;const o=await e.apiV10CompanyUpdateCompanyIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["CompanyApi.apiV10CompanyUpdateCompanyIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class xL extends Fe{apiV10CompanyAddCompanyPost(e,r){return bi(this.configuration).apiV10CompanyAddCompanyPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CompanyDeleteCompanyIdDelete(e,r){return bi(this.configuration).apiV10CompanyDeleteCompanyIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10CompanyGetCompaniesPost(e){return bi(this.configuration).apiV10CompanyGetCompaniesPost(e).then(r=>r(this.axios,this.basePath))}apiV10CompanyGetCompanyByIdIdGet(e,r){return bi(this.configuration).apiV10CompanyGetCompanyByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10CompanyUpdateCompanyIdPut(e,r,n){return bi(this.configuration).apiV10CompanyUpdateCompanyIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const SL=function(t){return{apiV10ContactAddContactPost:async(e,r={})=>{const n="/api/v1.0/Contact/AddContact",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ContactDeleteContactIdDelete:async(e,r={})=>{j("apiV10ContactDeleteContactIdDelete","id",e);const n="/api/v1.0/Contact/DeleteContact/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ContactGetContactByIdIdGet:async(e,r={})=>{j("apiV10ContactGetContactByIdIdGet","id",e);const n="/api/v1.0/Contact/GetContactById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ContactGetContactsByAccountIdAccountIdPost:async(e,r={})=>{j("apiV10ContactGetContactsByAccountIdAccountIdPost","accountId",e);const n="/api/v1.0/Contact/GetContactsByAccountId/{accountId}".replace("{accountId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ContactGetContactsPost:async(e,r={})=>{const n="/api/v1.0/Contact/GetContacts",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ContactImportFilesPost:async(e,r,n,a={})=>{const o="/api/v1.0/Contact/ImportFiles",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(t&&t.formDataCtor||FormData);await R(c,t),e&&e.forEach(h=>{d.append("Files",h)}),r!==void 0&&d.append("ImportType",r),n!==void 0&&d.append("FileType",n),c["Content-Type"]="multipart/form-data",D(s,u);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...a.headers},l.data=d,{url:k(s),options:l}},apiV10ContactUpdateContactIdPut:async(e,r,n={})=>{j("apiV10ContactUpdateContactIdPut","id",e);const a="/api/v1.0/Contact/UpdateContact/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},so=function(t){const e=SL(t);return{async apiV10ContactAddContactPost(r,n){var i,l;const a=await e.apiV10ContactAddContactPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactApi.apiV10ContactAddContactPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactDeleteContactIdDelete(r,n){var i,l;const a=await e.apiV10ContactDeleteContactIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactApi.apiV10ContactDeleteContactIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactGetContactByIdIdGet(r,n){var i,l;const a=await e.apiV10ContactGetContactByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactApi.apiV10ContactGetContactByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactGetContactsByAccountIdAccountIdPost(r,n){var i,l;const a=await e.apiV10ContactGetContactsByAccountIdAccountIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactApi.apiV10ContactGetContactsByAccountIdAccountIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactGetContactsPost(r,n){var i,l;const a=await e.apiV10ContactGetContactsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactApi.apiV10ContactGetContactsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactImportFilesPost(r,n,a,o){var c,u;const s=await e.apiV10ContactImportFilesPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["ContactApi.apiV10ContactImportFilesPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10ContactUpdateContactIdPut(r,n,a){var l,c;const o=await e.apiV10ContactUpdateContactIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ContactApi.apiV10ContactUpdateContactIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class PL extends Fe{apiV10ContactAddContactPost(e,r){return so(this.configuration).apiV10ContactAddContactPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactDeleteContactIdDelete(e,r){return so(this.configuration).apiV10ContactDeleteContactIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactGetContactByIdIdGet(e,r){return so(this.configuration).apiV10ContactGetContactByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactGetContactsByAccountIdAccountIdPost(e,r){return so(this.configuration).apiV10ContactGetContactsByAccountIdAccountIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactGetContactsPost(e,r){return so(this.configuration).apiV10ContactGetContactsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactImportFilesPost(e,r,n,a){return so(this.configuration).apiV10ContactImportFilesPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10ContactUpdateContactIdPut(e,r,n){return so(this.configuration).apiV10ContactUpdateContactIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const AL=function(t){return{apiV10ContactPosistionAddContactPosistionPost:async(e,r={})=>{const n="/api/v1.0/ContactPosistion/AddContactPosistion",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ContactPosistionDeleteContactPosistionIdDelete:async(e,r={})=>{j("apiV10ContactPosistionDeleteContactPosistionIdDelete","id",e);const n="/api/v1.0/ContactPosistion/DeleteContactPosistion/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ContactPosistionGetContactPosistionByIdIdGet:async(e,r={})=>{j("apiV10ContactPosistionGetContactPosistionByIdIdGet","id",e);const n="/api/v1.0/ContactPosistion/GetContactPosistionById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ContactPosistionGetContactPosistionPost:async(e={})=>{const r="/api/v1.0/ContactPosistion/GetContactPosistion",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10ContactPosistionUpdateContactPosistionIdPut:async(e,r,n={})=>{j("apiV10ContactPosistionUpdateContactPosistionIdPut","id",e);const a="/api/v1.0/ContactPosistion/UpdateContactPosistion/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ti=function(t){const e=AL(t);return{async apiV10ContactPosistionAddContactPosistionPost(r,n){var i,l;const a=await e.apiV10ContactPosistionAddContactPosistionPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactPosistionApi.apiV10ContactPosistionAddContactPosistionPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactPosistionDeleteContactPosistionIdDelete(r,n){var i,l;const a=await e.apiV10ContactPosistionDeleteContactPosistionIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactPosistionApi.apiV10ContactPosistionDeleteContactPosistionIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactPosistionGetContactPosistionByIdIdGet(r,n){var i,l;const a=await e.apiV10ContactPosistionGetContactPosistionByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ContactPosistionApi.apiV10ContactPosistionGetContactPosistionByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ContactPosistionGetContactPosistionPost(r){var s,i;const n=await e.apiV10ContactPosistionGetContactPosistionPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["ContactPosistionApi.apiV10ContactPosistionGetContactPosistionPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10ContactPosistionUpdateContactPosistionIdPut(r,n,a){var l,c;const o=await e.apiV10ContactPosistionUpdateContactPosistionIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ContactPosistionApi.apiV10ContactPosistionUpdateContactPosistionIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class OL extends Fe{apiV10ContactPosistionAddContactPosistionPost(e,r){return Ti(this.configuration).apiV10ContactPosistionAddContactPosistionPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactPosistionDeleteContactPosistionIdDelete(e,r){return Ti(this.configuration).apiV10ContactPosistionDeleteContactPosistionIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactPosistionGetContactPosistionByIdIdGet(e,r){return Ti(this.configuration).apiV10ContactPosistionGetContactPosistionByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ContactPosistionGetContactPosistionPost(e){return Ti(this.configuration).apiV10ContactPosistionGetContactPosistionPost(e).then(r=>r(this.axios,this.basePath))}apiV10ContactPosistionUpdateContactPosistionIdPut(e,r,n){return Ti(this.configuration).apiV10ContactPosistionUpdateContactPosistionIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const VL=function(t){return{apiV10CourseAddCourseMaterialSectionIdPost:async(e,r,n,a,o,s,i,l,c={})=>{j("apiV10CourseAddCourseMaterialSectionIdPost","sectionId",e),j("apiV10CourseAddCourseMaterialSectionIdPost","title",r);const u="/api/v1.0/Course/AddCourseMaterial/{sectionId}".replace("{sectionId}",encodeURIComponent(String(e))),d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"POST",...p,...c},f={},y={},v=new(t&&t.formDataCtor||FormData);await R(f,t),r!==void 0&&v.append("Title",r),n!==void 0&&v.append("Duration",n),a!==void 0&&v.append("VideoUrl",a),o!==void 0&&v.append("VideoId",o),s!==void 0&&v.append("VideoFile",s),i!==void 0&&v.append("Description",i),l&&l.forEach(m=>{v.append("Resources",m)}),f["Content-Type"]="multipart/form-data",D(d,y);let g=p&&p.headers?p.headers:{};return h.headers={...f,...g,...c.headers},h.data=v,{url:k(d),options:h}},apiV10CourseAddCoursePost:async(e,r,n,a,o,s,i,l,c={})=>{j("apiV10CourseAddCoursePost","title",e),j("apiV10CourseAddCoursePost","author",r),j("apiV10CourseAddCoursePost","language",n),j("apiV10CourseAddCoursePost","shortDescription",a);const u="/api/v1.0/Course/AddCourse",d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"POST",...p,...c},f={},y={},v=new(t&&t.formDataCtor||FormData);await R(f,t),e!==void 0&&v.append("Title",e),r!==void 0&&v.append("Author",r),n!==void 0&&v.append("Language",n),a!==void 0&&v.append("ShortDescription",a),o!==void 0&&v.append("Description",o),s!==void 0&&v.append("Duration",s),i!==void 0&&v.append("File",i),l!==void 0&&v.append("NewFile",l),f["Content-Type"]="multipart/form-data",D(d,y);let g=p&&p.headers?p.headers:{};return h.headers={...f,...g,...c.headers},h.data=v,{url:k(d),options:h}},apiV10CourseAddCourseSectionCourseIdPost:async(e,r,n={})=>{j("apiV10CourseAddCourseSectionCourseIdPost","courseId",e);const a="/api/v1.0/Course/AddCourseSection/{courseId}".replace("{courseId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10CourseDeleteCourseCourseIdPost:async(e,r={})=>{j("apiV10CourseDeleteCourseCourseIdPost","courseId",e);const n="/api/v1.0/Course/DeleteCourse/{courseId}".replace("{courseId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CourseDeleteCourseMaterialMaterialIdPost:async(e,r={})=>{j("apiV10CourseDeleteCourseMaterialMaterialIdPost","materialId",e);const n="/api/v1.0/Course/DeleteCourseMaterial/{materialId}".replace("{materialId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CourseDeleteCourseSectionSectionIdPost:async(e,r={})=>{j("apiV10CourseDeleteCourseSectionSectionIdPost","sectionId",e);const n="/api/v1.0/Course/DeleteCourseSection/{sectionId}".replace("{sectionId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CourseGetCourseByIdIdGet:async(e,r={})=>{j("apiV10CourseGetCourseByIdIdGet","id",e);const n="/api/v1.0/Course/GetCourseById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CourseGetCourseMaterialSectionIdGet:async(e,r,n,a,o={})=>{j("apiV10CourseGetCourseMaterialSectionIdGet","sectionId",e);const s="/api/v1.0/Course/GetCourseMaterial/{sectionId}".replace("{sectionId}",encodeURIComponent(String(e))),i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"GET",...l,...o},u={},d={};await R(u,t),r!==void 0&&(d.isActive=r),n!==void 0&&(d.pageNumber=n),a!==void 0&&(d.pageSize=a),D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},{url:k(i),options:c}},apiV10CourseGetCoursePost:async(e,r,n,a,o={})=>{const s="/api/v1.0/Course/GetCourse",i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"POST",...l,...o},u={},d={};await R(u,t),e!==void 0&&(d.IsActive=e),r!==void 0&&(d.pageNumber=r),n!==void 0&&(d.pageSize=n),u["Content-Type"]="application/json",D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},c.data=ee(a,c,t),{url:k(i),options:c}},apiV10CourseGetCourseSectionCourseIdGet:async(e,r,n,a,o={})=>{j("apiV10CourseGetCourseSectionCourseIdGet","courseId",e);const s="/api/v1.0/Course/GetCourseSection/{courseId}".replace("{courseId}",encodeURIComponent(String(e))),i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"GET",...l,...o},u={},d={};await R(u,t),r!==void 0&&(d.isActive=r),n!==void 0&&(d.pageNumber=n),a!==void 0&&(d.pageSize=a),D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},{url:k(i),options:c}},apiV10CourseGetVimeoDetailVideoIdGet:async(e,r={})=>{j("apiV10CourseGetVimeoDetailVideoIdGet","videoId",e);const n="/api/v1.0/Course/GetVimeoDetail/{videoId}".replace("{videoId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10CourseReorderCourseMaterialsPost:async(e,r={})=>{const n="/api/v1.0/Course/ReorderCourseMaterials",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10CourseReorderCourseSectionsPost:async(e,r={})=>{const n="/api/v1.0/Course/ReorderCourseSections",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10CourseUpdateCourseCourseIdPost:async(e,r,n,a,o,s,i,l,c,u={})=>{j("apiV10CourseUpdateCourseCourseIdPost","courseId",e),j("apiV10CourseUpdateCourseCourseIdPost","title",r),j("apiV10CourseUpdateCourseCourseIdPost","author",n),j("apiV10CourseUpdateCourseCourseIdPost","language",a),j("apiV10CourseUpdateCourseCourseIdPost","shortDescription",o);const d="/api/v1.0/Course/UpdateCourse/{courseId}".replace("{courseId}",encodeURIComponent(String(e))),p=new URL(d,E);let h;t&&(h=t.baseOptions);const f={method:"POST",...h,...u},y={},v={},g=new(t&&t.formDataCtor||FormData);await R(y,t),r!==void 0&&g.append("Title",r),n!==void 0&&g.append("Author",n),a!==void 0&&g.append("Language",a),o!==void 0&&g.append("ShortDescription",o),s!==void 0&&g.append("Description",s),i!==void 0&&g.append("Duration",i),l!==void 0&&g.append("File",l),c!==void 0&&g.append("NewFile",c),y["Content-Type"]="multipart/form-data",D(p,v);let m=h&&h.headers?h.headers:{};return f.headers={...y,...m,...u.headers},f.data=g,{url:k(p),options:f}},apiV10CourseUpdateCourseMaterialMaterialIdPost:async(e,r,n,a,o,s,i,l,c={})=>{j("apiV10CourseUpdateCourseMaterialMaterialIdPost","materialId",e),j("apiV10CourseUpdateCourseMaterialMaterialIdPost","title",r);const u="/api/v1.0/Course/UpdateCourseMaterial/{materialId}".replace("{materialId}",encodeURIComponent(String(e))),d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"POST",...p,...c},f={},y={},v=new(t&&t.formDataCtor||FormData);await R(f,t),r!==void 0&&v.append("Title",r),n!==void 0&&v.append("Duration",n),a!==void 0&&v.append("VideoUrl",a),o!==void 0&&v.append("VideoId",o),s!==void 0&&v.append("VideoFile",s),i!==void 0&&v.append("Description",i),l&&l.forEach(m=>{v.append("Resources",m)}),f["Content-Type"]="multipart/form-data",D(d,y);let g=p&&p.headers?p.headers:{};return h.headers={...f,...g,...c.headers},h.data=v,{url:k(d),options:h}},apiV10CourseUpdateCourseSectionSectionIdPost:async(e,r,n={})=>{j("apiV10CourseUpdateCourseSectionSectionIdPost","sectionId",e);const a="/api/v1.0/Course/UpdateCourseSection/{sectionId}".replace("{sectionId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10CourseUploadResourceFileResourceIdPost:async(e,r,n={})=>{j("apiV10CourseUploadResourceFileResourceIdPost","resourceId",e);const a="/api/v1.0/Course/UploadResourceFile/{resourceId}".replace("{resourceId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),r!==void 0&&u.append("file",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}}}},Rt=function(t){const e=VL(t);return{async apiV10CourseAddCourseMaterialSectionIdPost(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10CourseAddCourseMaterialSectionIdPost(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["CourseApi.apiV10CourseAddCourseMaterialSectionIdPost"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)},async apiV10CourseAddCoursePost(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10CourseAddCoursePost(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["CourseApi.apiV10CourseAddCoursePost"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)},async apiV10CourseAddCourseSectionCourseIdPost(r,n,a){var l,c;const o=await e.apiV10CourseAddCourseSectionCourseIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["CourseApi.apiV10CourseAddCourseSectionCourseIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10CourseDeleteCourseCourseIdPost(r,n){var i,l;const a=await e.apiV10CourseDeleteCourseCourseIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseDeleteCourseCourseIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseDeleteCourseMaterialMaterialIdPost(r,n){var i,l;const a=await e.apiV10CourseDeleteCourseMaterialMaterialIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseDeleteCourseMaterialMaterialIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseDeleteCourseSectionSectionIdPost(r,n){var i,l;const a=await e.apiV10CourseDeleteCourseSectionSectionIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseDeleteCourseSectionSectionIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseGetCourseByIdIdGet(r,n){var i,l;const a=await e.apiV10CourseGetCourseByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseGetCourseByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseGetCourseMaterialSectionIdGet(r,n,a,o,s){var u,d;const i=await e.apiV10CourseGetCourseMaterialSectionIdGet(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["CourseApi.apiV10CourseGetCourseMaterialSectionIdGet"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10CourseGetCoursePost(r,n,a,o,s){var u,d;const i=await e.apiV10CourseGetCoursePost(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["CourseApi.apiV10CourseGetCoursePost"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10CourseGetCourseSectionCourseIdGet(r,n,a,o,s){var u,d;const i=await e.apiV10CourseGetCourseSectionCourseIdGet(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["CourseApi.apiV10CourseGetCourseSectionCourseIdGet"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10CourseGetVimeoDetailVideoIdGet(r,n){var i,l;const a=await e.apiV10CourseGetVimeoDetailVideoIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseGetVimeoDetailVideoIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseReorderCourseMaterialsPost(r,n){var i,l;const a=await e.apiV10CourseReorderCourseMaterialsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseReorderCourseMaterialsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseReorderCourseSectionsPost(r,n){var i,l;const a=await e.apiV10CourseReorderCourseSectionsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CourseApi.apiV10CourseReorderCourseSectionsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10CourseUpdateCourseCourseIdPost(r,n,a,o,s,i,l,c,u,d){var y,v;const p=await e.apiV10CourseUpdateCourseCourseIdPost(r,n,a,o,s,i,l,c,u,d),h=(t==null?void 0:t.serverIndex)??0,f=(v=(y=T["CourseApi.apiV10CourseUpdateCourseCourseIdPost"])==null?void 0:y[h])==null?void 0:v.url;return(g,m)=>_(p,w,b,t)(g,f||m)},async apiV10CourseUpdateCourseMaterialMaterialIdPost(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10CourseUpdateCourseMaterialMaterialIdPost(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["CourseApi.apiV10CourseUpdateCourseMaterialMaterialIdPost"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)},async apiV10CourseUpdateCourseSectionSectionIdPost(r,n,a){var l,c;const o=await e.apiV10CourseUpdateCourseSectionSectionIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["CourseApi.apiV10CourseUpdateCourseSectionSectionIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10CourseUploadResourceFileResourceIdPost(r,n,a){var l,c;const o=await e.apiV10CourseUploadResourceFileResourceIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["CourseApi.apiV10CourseUploadResourceFileResourceIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class IL extends Fe{apiV10CourseAddCourseMaterialSectionIdPost(e,r,n,a,o,s,i,l,c){return Rt(this.configuration).apiV10CourseAddCourseMaterialSectionIdPost(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}apiV10CourseAddCoursePost(e,r,n,a,o,s,i,l,c){return Rt(this.configuration).apiV10CourseAddCoursePost(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}apiV10CourseAddCourseSectionCourseIdPost(e,r,n){return Rt(this.configuration).apiV10CourseAddCourseSectionCourseIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10CourseDeleteCourseCourseIdPost(e,r){return Rt(this.configuration).apiV10CourseDeleteCourseCourseIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseDeleteCourseMaterialMaterialIdPost(e,r){return Rt(this.configuration).apiV10CourseDeleteCourseMaterialMaterialIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseDeleteCourseSectionSectionIdPost(e,r){return Rt(this.configuration).apiV10CourseDeleteCourseSectionSectionIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseGetCourseByIdIdGet(e,r){return Rt(this.configuration).apiV10CourseGetCourseByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseGetCourseMaterialSectionIdGet(e,r,n,a,o){return Rt(this.configuration).apiV10CourseGetCourseMaterialSectionIdGet(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10CourseGetCoursePost(e,r,n,a,o){return Rt(this.configuration).apiV10CourseGetCoursePost(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10CourseGetCourseSectionCourseIdGet(e,r,n,a,o){return Rt(this.configuration).apiV10CourseGetCourseSectionCourseIdGet(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10CourseGetVimeoDetailVideoIdGet(e,r){return Rt(this.configuration).apiV10CourseGetVimeoDetailVideoIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseReorderCourseMaterialsPost(e,r){return Rt(this.configuration).apiV10CourseReorderCourseMaterialsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseReorderCourseSectionsPost(e,r){return Rt(this.configuration).apiV10CourseReorderCourseSectionsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10CourseUpdateCourseCourseIdPost(e,r,n,a,o,s,i,l,c,u){return Rt(this.configuration).apiV10CourseUpdateCourseCourseIdPost(e,r,n,a,o,s,i,l,c,u).then(d=>d(this.axios,this.basePath))}apiV10CourseUpdateCourseMaterialMaterialIdPost(e,r,n,a,o,s,i,l,c){return Rt(this.configuration).apiV10CourseUpdateCourseMaterialMaterialIdPost(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}apiV10CourseUpdateCourseSectionSectionIdPost(e,r,n){return Rt(this.configuration).apiV10CourseUpdateCourseSectionSectionIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10CourseUploadResourceFileResourceIdPost(e,r,n){return Rt(this.configuration).apiV10CourseUploadResourceFileResourceIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}}const wL=function(t){return{apiV10CustomerSignUpGetCourseDetailGet:async(e,r,n={})=>{const a="/api/v1.0/CustomerSignUp/GetCourseDetail",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.referralCode=e),r!==void 0&&(c.IsEncoded=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10CustomerSignUpSignUpPost:async(e,r={})=>{const n="/api/v1.0/CustomerSignUp/SignUp",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},zx=function(t){const e=wL(t);return{async apiV10CustomerSignUpGetCourseDetailGet(r,n,a){var l,c;const o=await e.apiV10CustomerSignUpGetCourseDetailGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["CustomerSignUpApi.apiV10CustomerSignUpGetCourseDetailGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10CustomerSignUpSignUpPost(r,n){var i,l;const a=await e.apiV10CustomerSignUpSignUpPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["CustomerSignUpApi.apiV10CustomerSignUpSignUpPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class bL extends Fe{apiV10CustomerSignUpGetCourseDetailGet(e,r,n){return zx(this.configuration).apiV10CustomerSignUpGetCourseDetailGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10CustomerSignUpSignUpPost(e,r){return zx(this.configuration).apiV10CustomerSignUpSignUpPost(e,r).then(n=>n(this.axios,this.basePath))}}const TL=function(t){return{apiV10DashboardMetricsGet:async(e={})=>{const r="/api/v1.0/Dashboard/metrics",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DashboardOpportunityPipelineGet:async(e={})=>{const r="/api/v1.0/Dashboard/opportunity-pipeline",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DashboardSalesTargetAchievedGet:async(e={})=>{const r="/api/v1.0/Dashboard/sales-target-achieved",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DashboardTopOpportunitiesGet:async(e={})=>{const r="/api/v1.0/Dashboard/top-opportunities",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}}}},Mc=function(t){const e=TL(t);return{async apiV10DashboardMetricsGet(r){var s,i;const n=await e.apiV10DashboardMetricsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DashboardApi.apiV10DashboardMetricsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DashboardOpportunityPipelineGet(r){var s,i;const n=await e.apiV10DashboardOpportunityPipelineGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DashboardApi.apiV10DashboardOpportunityPipelineGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DashboardSalesTargetAchievedGet(r){var s,i;const n=await e.apiV10DashboardSalesTargetAchievedGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DashboardApi.apiV10DashboardSalesTargetAchievedGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DashboardTopOpportunitiesGet(r){var s,i;const n=await e.apiV10DashboardTopOpportunitiesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DashboardApi.apiV10DashboardTopOpportunitiesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)}}};class EL extends Fe{apiV10DashboardMetricsGet(e){return Mc(this.configuration).apiV10DashboardMetricsGet(e).then(r=>r(this.axios,this.basePath))}apiV10DashboardOpportunityPipelineGet(e){return Mc(this.configuration).apiV10DashboardOpportunityPipelineGet(e).then(r=>r(this.axios,this.basePath))}apiV10DashboardSalesTargetAchievedGet(e){return Mc(this.configuration).apiV10DashboardSalesTargetAchievedGet(e).then(r=>r(this.axios,this.basePath))}apiV10DashboardTopOpportunitiesGet(e){return Mc(this.configuration).apiV10DashboardTopOpportunitiesGet(e).then(r=>r(this.axios,this.basePath))}}const RL=function(t){return{apiV10DepartmentAddDepartmentPost:async(e,r={})=>{const n="/api/v1.0/Department/AddDepartment",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DepartmentDeleteDepartmentIdDelete:async(e,r={})=>{j("apiV10DepartmentDeleteDepartmentIdDelete","id",e);const n="/api/v1.0/Department/DeleteDepartment/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DepartmentGetDepartmentByIdIdGet:async(e,r={})=>{j("apiV10DepartmentGetDepartmentByIdIdGet","id",e);const n="/api/v1.0/Department/GetDepartmentById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DepartmentGetDepartmentPost:async(e={})=>{const r="/api/v1.0/Department/GetDepartment",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DepartmentUpdateDepartmentIdPut:async(e,r,n={})=>{j("apiV10DepartmentUpdateDepartmentIdPut","id",e);const a="/api/v1.0/Department/UpdateDepartment/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ei=function(t){const e=RL(t);return{async apiV10DepartmentAddDepartmentPost(r,n){var i,l;const a=await e.apiV10DepartmentAddDepartmentPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DepartmentApi.apiV10DepartmentAddDepartmentPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DepartmentDeleteDepartmentIdDelete(r,n){var i,l;const a=await e.apiV10DepartmentDeleteDepartmentIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DepartmentApi.apiV10DepartmentDeleteDepartmentIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DepartmentGetDepartmentByIdIdGet(r,n){var i,l;const a=await e.apiV10DepartmentGetDepartmentByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DepartmentApi.apiV10DepartmentGetDepartmentByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DepartmentGetDepartmentPost(r){var s,i;const n=await e.apiV10DepartmentGetDepartmentPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DepartmentApi.apiV10DepartmentGetDepartmentPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DepartmentUpdateDepartmentIdPut(r,n,a){var l,c;const o=await e.apiV10DepartmentUpdateDepartmentIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DepartmentApi.apiV10DepartmentUpdateDepartmentIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class DL extends Fe{apiV10DepartmentAddDepartmentPost(e,r){return Ei(this.configuration).apiV10DepartmentAddDepartmentPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DepartmentDeleteDepartmentIdDelete(e,r){return Ei(this.configuration).apiV10DepartmentDeleteDepartmentIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DepartmentGetDepartmentByIdIdGet(e,r){return Ei(this.configuration).apiV10DepartmentGetDepartmentByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DepartmentGetDepartmentPost(e){return Ei(this.configuration).apiV10DepartmentGetDepartmentPost(e).then(r=>r(this.axios,this.basePath))}apiV10DepartmentUpdateDepartmentIdPut(e,r,n){return Ei(this.configuration).apiV10DepartmentUpdateDepartmentIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const kL=function(t){return{apiV10DocumentCreateDocumentFolderPost:async(e,r={})=>{j("apiV10DocumentCreateDocumentFolderPost","contentActiveCoreDataDTODocumentCreateFolderDto",e);const n="/api/v1.0/Document/CreateDocumentFolder",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentCreateFilePost:async(e,r,n={})=>{j("apiV10DocumentCreateFilePost","folderId",e);const a="/api/v1.0/Document/CreateFile",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),r&&r.forEach(p=>{u.append("Files",p)}),e!==void 0&&u.append("FolderId",e),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10DocumentDeleteDocumentFileIdDelete:async(e,r={})=>{j("apiV10DocumentDeleteDocumentFileIdDelete","id",e);const n="/api/v1.0/Document/DeleteDocumentFile/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentDeleteDocumentFolderIdDelete:async(e,r={})=>{j("apiV10DocumentDeleteDocumentFolderIdDelete","id",e);const n="/api/v1.0/Document/DeleteDocumentFolder/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentDownloadFileIdGet:async(e,r={})=>{j("apiV10DocumentDownloadFileIdGet","id",e);const n="/api/v1.0/Document/DownloadFile/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentGetDocumentFolderByIdIdGet:async(e,r={})=>{j("apiV10DocumentGetDocumentFolderByIdIdGet","id",e);const n="/api/v1.0/Document/GetDocumentFolderById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentGetDocumentFolderFilesPost:async(e,r={})=>{const n="/api/v1.0/Document/GetDocumentFolderFiles",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentGetDocumentParentFoldersGet:async(e={})=>{const r="/api/v1.0/Document/GetDocumentParentFolders",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DocumentUpdateDocumentFolderFolderIdPut:async(e,r,n={})=>{j("apiV10DocumentUpdateDocumentFolderFolderIdPut","folderId",e),j("apiV10DocumentUpdateDocumentFolderFolderIdPut","contentActiveCoreDataDTODocumentCreateFolderDto",r);const a="/api/v1.0/Document/UpdateDocumentFolder/{folderId}".replace("{folderId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ln=function(t){const e=kL(t);return{async apiV10DocumentCreateDocumentFolderPost(r,n){var i,l;const a=await e.apiV10DocumentCreateDocumentFolderPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentCreateDocumentFolderPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentCreateFilePost(r,n,a){var l,c;const o=await e.apiV10DocumentCreateFilePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DocumentApi.apiV10DocumentCreateFilePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10DocumentDeleteDocumentFileIdDelete(r,n){var i,l;const a=await e.apiV10DocumentDeleteDocumentFileIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentDeleteDocumentFileIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentDeleteDocumentFolderIdDelete(r,n){var i,l;const a=await e.apiV10DocumentDeleteDocumentFolderIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentDeleteDocumentFolderIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentDownloadFileIdGet(r,n){var i,l;const a=await e.apiV10DocumentDownloadFileIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentDownloadFileIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentGetDocumentFolderByIdIdGet(r,n){var i,l;const a=await e.apiV10DocumentGetDocumentFolderByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentGetDocumentFolderByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentGetDocumentFolderFilesPost(r,n){var i,l;const a=await e.apiV10DocumentGetDocumentFolderFilesPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentApi.apiV10DocumentGetDocumentFolderFilesPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentGetDocumentParentFoldersGet(r){var s,i;const n=await e.apiV10DocumentGetDocumentParentFoldersGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DocumentApi.apiV10DocumentGetDocumentParentFoldersGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DocumentUpdateDocumentFolderFolderIdPut(r,n,a){var l,c;const o=await e.apiV10DocumentUpdateDocumentFolderFolderIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DocumentApi.apiV10DocumentUpdateDocumentFolderFolderIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class _L extends Fe{apiV10DocumentCreateDocumentFolderPost(e,r){return Ln(this.configuration).apiV10DocumentCreateDocumentFolderPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentCreateFilePost(e,r,n){return Ln(this.configuration).apiV10DocumentCreateFilePost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10DocumentDeleteDocumentFileIdDelete(e,r){return Ln(this.configuration).apiV10DocumentDeleteDocumentFileIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentDeleteDocumentFolderIdDelete(e,r){return Ln(this.configuration).apiV10DocumentDeleteDocumentFolderIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentDownloadFileIdGet(e,r){return Ln(this.configuration).apiV10DocumentDownloadFileIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentGetDocumentFolderByIdIdGet(e,r){return Ln(this.configuration).apiV10DocumentGetDocumentFolderByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentGetDocumentFolderFilesPost(e,r){return Ln(this.configuration).apiV10DocumentGetDocumentFolderFilesPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentGetDocumentParentFoldersGet(e){return Ln(this.configuration).apiV10DocumentGetDocumentParentFoldersGet(e).then(r=>r(this.axios,this.basePath))}apiV10DocumentUpdateDocumentFolderFolderIdPut(e,r,n){return Ln(this.configuration).apiV10DocumentUpdateDocumentFolderFolderIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const UL=function(t){return{apiV10DocumentManagementAnalyzeDocumentPost:async(e,r,n={})=>{const a="/api/v1.0/DocumentManagement/AnalyzeDocument",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e!==void 0&&(c.fileName=e),r!==void 0&&u.append("file",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10DocumentManagementCreateCategoryPost:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/CreateCategory",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentManagementCreateFilePost:async(e,r,n,a,o,s,i,l={})=>{j("apiV10DocumentManagementCreateFilePost","categoryId",e);const c="/api/v1.0/DocumentManagement/CreateFile",u=new URL(c,E);let d;t&&(d=t.baseOptions);const p={method:"POST",...d,...l},h={},f={},y=new(t&&t.formDataCtor||FormData);await R(h,t),r!==void 0&&(f.FileSource=r),e!==void 0&&(f.CategoryId=e),n!==void 0&&(f.CustomerId=n),a!==void 0&&(f.Year=a),o!==void 0&&(f.Hierarchy=o),s!==void 0&&(f.SubCategoryId=s),i&&i.forEach(g=>{y.append("Files",g)}),h["Content-Type"]="multipart/form-data",D(u,f);let v=d&&d.headers?d.headers:{};return p.headers={...h,...v,...l.headers},p.data=y,{url:k(u),options:p}},apiV10DocumentManagementCreateHierarchyPost:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/CreateHierarchy",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentManagementCreateSubCategoryPost:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/CreateSubCategory",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete:async(e,r={})=>{j("apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete","fileId",e);const n="/api/v1.0/DocumentManagement/DeleteAnalyzedDocument/{fileId}".replace("{fileId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementDeleteDocumentFileIdDelete:async(e,r={})=>{j("apiV10DocumentManagementDeleteDocumentFileIdDelete","id",e);const n="/api/v1.0/DocumentManagement/DeleteDocumentFile/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementDeleteDocumentFolderIdDelete:async(e,r={})=>{j("apiV10DocumentManagementDeleteDocumentFolderIdDelete","id",e);const n="/api/v1.0/DocumentManagement/DeleteDocumentFolder/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet:async(e,r={})=>{j("apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet","analyzedFileId",e);const n="/api/v1.0/DocumentManagement/DownloadAnalyzedDocument/{analyzedFileId}".replace("{analyzedFileId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementDownloadFileIdGet:async(e,r={})=>{j("apiV10DocumentManagementDownloadFileIdGet","id",e);const n="/api/v1.0/DocumentManagement/DownloadFile/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementDownloadFolderIdGet:async(e,r,n={})=>{j("apiV10DocumentManagementDownloadFolderIdGet","id",e);const a="/api/v1.0/DocumentManagement/DownloadFolder/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.FileSource=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10DocumentManagementEditAnalyzeDocumentFileIdPut:async(e,r,n,a={})=>{j("apiV10DocumentManagementEditAnalyzeDocumentFileIdPut","fileId",e);const o="/api/v1.0/DocumentManagement/EditAnalyzeDocument/{fileId}".replace("{fileId}",encodeURIComponent(String(e))),s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"PUT",...i,...a},c={},u={},d=new(t&&t.formDataCtor||FormData);await R(c,t),r!==void 0&&(u.fileName=r),n!==void 0&&d.append("newFile",n),c["Content-Type"]="multipart/form-data",D(s,u);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...a.headers},l.data=d,{url:k(s),options:l}},apiV10DocumentManagementGetAllDocumentFilesPost:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/GetAllDocumentFiles",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentManagementGetAnalyzedDocumentsGet:async(e={})=>{const r="/api/v1.0/DocumentManagement/GetAnalyzedDocuments",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10DocumentManagementGetCategoriesGet:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/GetCategories",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.FileSource=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementGetDocumentFolderFilesPost:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/GetDocumentFolderFiles",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10DocumentManagementGetHierarchyGet:async(e,r={})=>{const n="/api/v1.0/DocumentManagement/GetHierarchy",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.FileSource=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10DocumentManagementGetSubCategoriesCategoryIdGet:async(e,r,n={})=>{j("apiV10DocumentManagementGetSubCategoriesCategoryIdGet","categoryId",e);const a="/api/v1.0/DocumentManagement/GetSubCategories/{CategoryId}".replace("{CategoryId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.FileSource=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10DocumentManagementViewFileIdGet:async(e,r={})=>{j("apiV10DocumentManagementViewFileIdGet","id",e);const n="/api/v1.0/DocumentManagement/ViewFile/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}}}},mt=function(t){const e=UL(t);return{async apiV10DocumentManagementAnalyzeDocumentPost(r,n,a){var l,c;const o=await e.apiV10DocumentManagementAnalyzeDocumentPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DocumentManagementApi.apiV10DocumentManagementAnalyzeDocumentPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10DocumentManagementCreateCategoryPost(r,n){var i,l;const a=await e.apiV10DocumentManagementCreateCategoryPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementCreateCategoryPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementCreateFilePost(r,n,a,o,s,i,l,c){var h,f;const u=await e.apiV10DocumentManagementCreateFilePost(r,n,a,o,s,i,l,c),d=(t==null?void 0:t.serverIndex)??0,p=(f=(h=T["DocumentManagementApi.apiV10DocumentManagementCreateFilePost"])==null?void 0:h[d])==null?void 0:f.url;return(y,v)=>_(u,w,b,t)(y,p||v)},async apiV10DocumentManagementCreateHierarchyPost(r,n){var i,l;const a=await e.apiV10DocumentManagementCreateHierarchyPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementCreateHierarchyPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementCreateSubCategoryPost(r,n){var i,l;const a=await e.apiV10DocumentManagementCreateSubCategoryPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementCreateSubCategoryPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete(r,n){var i,l;const a=await e.apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDeleteDocumentFileIdDelete(r,n){var i,l;const a=await e.apiV10DocumentManagementDeleteDocumentFileIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementDeleteDocumentFileIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDeleteDocumentFolderIdDelete(r,n){var i,l;const a=await e.apiV10DocumentManagementDeleteDocumentFolderIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementDeleteDocumentFolderIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet(r,n){var i,l;const a=await e.apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDownloadFileIdGet(r,n){var i,l;const a=await e.apiV10DocumentManagementDownloadFileIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementDownloadFileIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementDownloadFolderIdGet(r,n,a){var l,c;const o=await e.apiV10DocumentManagementDownloadFolderIdGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DocumentManagementApi.apiV10DocumentManagementDownloadFolderIdGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10DocumentManagementEditAnalyzeDocumentFileIdPut(r,n,a,o){var c,u;const s=await e.apiV10DocumentManagementEditAnalyzeDocumentFileIdPut(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["DocumentManagementApi.apiV10DocumentManagementEditAnalyzeDocumentFileIdPut"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10DocumentManagementGetAllDocumentFilesPost(r,n){var i,l;const a=await e.apiV10DocumentManagementGetAllDocumentFilesPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementGetAllDocumentFilesPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementGetAnalyzedDocumentsGet(r){var s,i;const n=await e.apiV10DocumentManagementGetAnalyzedDocumentsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["DocumentManagementApi.apiV10DocumentManagementGetAnalyzedDocumentsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10DocumentManagementGetCategoriesGet(r,n){var i,l;const a=await e.apiV10DocumentManagementGetCategoriesGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementGetCategoriesGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementGetDocumentFolderFilesPost(r,n){var i,l;const a=await e.apiV10DocumentManagementGetDocumentFolderFilesPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementGetDocumentFolderFilesPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementGetHierarchyGet(r,n){var i,l;const a=await e.apiV10DocumentManagementGetHierarchyGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementGetHierarchyGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10DocumentManagementGetSubCategoriesCategoryIdGet(r,n,a){var l,c;const o=await e.apiV10DocumentManagementGetSubCategoriesCategoryIdGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["DocumentManagementApi.apiV10DocumentManagementGetSubCategoriesCategoryIdGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10DocumentManagementViewFileIdGet(r,n){var i,l;const a=await e.apiV10DocumentManagementViewFileIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["DocumentManagementApi.apiV10DocumentManagementViewFileIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class BL extends Fe{apiV10DocumentManagementAnalyzeDocumentPost(e,r,n){return mt(this.configuration).apiV10DocumentManagementAnalyzeDocumentPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10DocumentManagementCreateCategoryPost(e,r){return mt(this.configuration).apiV10DocumentManagementCreateCategoryPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementCreateFilePost(e,r,n,a,o,s,i,l){return mt(this.configuration).apiV10DocumentManagementCreateFilePost(e,r,n,a,o,s,i,l).then(c=>c(this.axios,this.basePath))}apiV10DocumentManagementCreateHierarchyPost(e,r){return mt(this.configuration).apiV10DocumentManagementCreateHierarchyPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementCreateSubCategoryPost(e,r){return mt(this.configuration).apiV10DocumentManagementCreateSubCategoryPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete(e,r){return mt(this.configuration).apiV10DocumentManagementDeleteAnalyzedDocumentFileIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDeleteDocumentFileIdDelete(e,r){return mt(this.configuration).apiV10DocumentManagementDeleteDocumentFileIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDeleteDocumentFolderIdDelete(e,r){return mt(this.configuration).apiV10DocumentManagementDeleteDocumentFolderIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet(e,r){return mt(this.configuration).apiV10DocumentManagementDownloadAnalyzedDocumentAnalyzedFileIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDownloadFileIdGet(e,r){return mt(this.configuration).apiV10DocumentManagementDownloadFileIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementDownloadFolderIdGet(e,r,n){return mt(this.configuration).apiV10DocumentManagementDownloadFolderIdGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10DocumentManagementEditAnalyzeDocumentFileIdPut(e,r,n,a){return mt(this.configuration).apiV10DocumentManagementEditAnalyzeDocumentFileIdPut(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10DocumentManagementGetAllDocumentFilesPost(e,r){return mt(this.configuration).apiV10DocumentManagementGetAllDocumentFilesPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementGetAnalyzedDocumentsGet(e){return mt(this.configuration).apiV10DocumentManagementGetAnalyzedDocumentsGet(e).then(r=>r(this.axios,this.basePath))}apiV10DocumentManagementGetCategoriesGet(e,r){return mt(this.configuration).apiV10DocumentManagementGetCategoriesGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementGetDocumentFolderFilesPost(e,r){return mt(this.configuration).apiV10DocumentManagementGetDocumentFolderFilesPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementGetHierarchyGet(e,r){return mt(this.configuration).apiV10DocumentManagementGetHierarchyGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10DocumentManagementGetSubCategoriesCategoryIdGet(e,r,n){return mt(this.configuration).apiV10DocumentManagementGetSubCategoriesCategoryIdGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10DocumentManagementViewFileIdGet(e,r){return mt(this.configuration).apiV10DocumentManagementViewFileIdGet(e,r).then(n=>n(this.axios,this.basePath))}}const ML=function(t){return{apiV10FAQAddFAQPost:async(e,r={})=>{const n="/api/v1.0/FAQ/AddFAQ",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10FAQDeleteFAQIdPost:async(e,r,n={})=>{j("apiV10FAQDeleteFAQIdPost","id",e);const a="/api/v1.0/FAQ/DeleteFAQ/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.IsActive=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10FAQGetFAQByIdIdGet:async(e,r={})=>{j("apiV10FAQGetFAQByIdIdGet","id",e);const n="/api/v1.0/FAQ/GetFAQById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10FAQGetFAQsPost:async(e,r,n,a={})=>{const o="/api/v1.0/FAQ/GetFAQs",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.IsActive=e),r!==void 0&&(u.pageNumber=r),n!==void 0&&(u.pageSize=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:k(s),options:l}},apiV10FAQReorderFAQsPost:async(e,r={})=>{const n="/api/v1.0/FAQ/ReorderFAQs",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10FAQUpdateFAQIdPost:async(e,r,n={})=>{j("apiV10FAQUpdateFAQIdPost","id",e);const a="/api/v1.0/FAQ/UpdateFAQ/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ko=function(t){const e=ML(t);return{async apiV10FAQAddFAQPost(r,n){var i,l;const a=await e.apiV10FAQAddFAQPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["FAQApi.apiV10FAQAddFAQPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10FAQDeleteFAQIdPost(r,n,a){var l,c;const o=await e.apiV10FAQDeleteFAQIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["FAQApi.apiV10FAQDeleteFAQIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10FAQGetFAQByIdIdGet(r,n){var i,l;const a=await e.apiV10FAQGetFAQByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["FAQApi.apiV10FAQGetFAQByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10FAQGetFAQsPost(r,n,a,o){var c,u;const s=await e.apiV10FAQGetFAQsPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["FAQApi.apiV10FAQGetFAQsPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10FAQReorderFAQsPost(r,n){var i,l;const a=await e.apiV10FAQReorderFAQsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["FAQApi.apiV10FAQReorderFAQsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10FAQUpdateFAQIdPost(r,n,a){var l,c;const o=await e.apiV10FAQUpdateFAQIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["FAQApi.apiV10FAQUpdateFAQIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class FL extends Fe{apiV10FAQAddFAQPost(e,r){return Ko(this.configuration).apiV10FAQAddFAQPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10FAQDeleteFAQIdPost(e,r,n){return Ko(this.configuration).apiV10FAQDeleteFAQIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10FAQGetFAQByIdIdGet(e,r){return Ko(this.configuration).apiV10FAQGetFAQByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10FAQGetFAQsPost(e,r,n,a){return Ko(this.configuration).apiV10FAQGetFAQsPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10FAQReorderFAQsPost(e,r){return Ko(this.configuration).apiV10FAQReorderFAQsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10FAQUpdateFAQIdPost(e,r,n){return Ko(this.configuration).apiV10FAQUpdateFAQIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}}const LL=function(t){return{apiV10LeadSourceAddLeadSourcePost:async(e,r={})=>{const n="/api/v1.0/LeadSource/AddLeadSource",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10LeadSourceDeleteLeadSourceIdDelete:async(e,r={})=>{j("apiV10LeadSourceDeleteLeadSourceIdDelete","id",e);const n="/api/v1.0/LeadSource/DeleteLeadSource/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadSourceGetLeadSourceByIdIdGet:async(e,r={})=>{j("apiV10LeadSourceGetLeadSourceByIdIdGet","id",e);const n="/api/v1.0/LeadSource/GetLeadSourceById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadSourceGetLeadSourcesPost:async(e={})=>{const r="/api/v1.0/LeadSource/GetLeadSources",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10LeadSourceUpdateLeadSourceIdPut:async(e,r,n={})=>{j("apiV10LeadSourceUpdateLeadSourceIdPut","id",e);const a="/api/v1.0/LeadSource/UpdateLeadSource/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Ri=function(t){const e=LL(t);return{async apiV10LeadSourceAddLeadSourcePost(r,n){var i,l;const a=await e.apiV10LeadSourceAddLeadSourcePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadSourceApi.apiV10LeadSourceAddLeadSourcePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadSourceDeleteLeadSourceIdDelete(r,n){var i,l;const a=await e.apiV10LeadSourceDeleteLeadSourceIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadSourceApi.apiV10LeadSourceDeleteLeadSourceIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadSourceGetLeadSourceByIdIdGet(r,n){var i,l;const a=await e.apiV10LeadSourceGetLeadSourceByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadSourceApi.apiV10LeadSourceGetLeadSourceByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadSourceGetLeadSourcesPost(r){var s,i;const n=await e.apiV10LeadSourceGetLeadSourcesPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["LeadSourceApi.apiV10LeadSourceGetLeadSourcesPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10LeadSourceUpdateLeadSourceIdPut(r,n,a){var l,c;const o=await e.apiV10LeadSourceUpdateLeadSourceIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["LeadSourceApi.apiV10LeadSourceUpdateLeadSourceIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class NL extends Fe{apiV10LeadSourceAddLeadSourcePost(e,r){return Ri(this.configuration).apiV10LeadSourceAddLeadSourcePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadSourceDeleteLeadSourceIdDelete(e,r){return Ri(this.configuration).apiV10LeadSourceDeleteLeadSourceIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadSourceGetLeadSourceByIdIdGet(e,r){return Ri(this.configuration).apiV10LeadSourceGetLeadSourceByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadSourceGetLeadSourcesPost(e){return Ri(this.configuration).apiV10LeadSourceGetLeadSourcesPost(e).then(r=>r(this.axios,this.basePath))}apiV10LeadSourceUpdateLeadSourceIdPut(e,r,n){return Ri(this.configuration).apiV10LeadSourceUpdateLeadSourceIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const GL=function(t){return{apiV10LeadsAddLeadMeetingPost:async(e,r={})=>{const n="/api/v1.0/Leads/AddLeadMeeting",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10LeadsAddLeadPost:async(e,r={})=>{j("apiV10LeadsAddLeadPost","contentActiveApiViewModelsCreateLeadDTO",e);const n="/api/v1.0/Leads/AddLead",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10LeadsCancelLeadMeetingIdPut:async(e,r={})=>{j("apiV10LeadsCancelLeadMeetingIdPut","id",e);const n="/api/v1.0/Leads/CancelLeadMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsDeleteLeadIdDelete:async(e,r={})=>{j("apiV10LeadsDeleteLeadIdDelete","id",e);const n="/api/v1.0/Leads/DeleteLead/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsDeleteLeadMeetingIdDelete:async(e,r={})=>{j("apiV10LeadsDeleteLeadMeetingIdDelete","id",e);const n="/api/v1.0/Leads/DeleteLeadMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsGetLeadByIdIdGet:async(e,r={})=>{j("apiV10LeadsGetLeadByIdIdGet","id",e);const n="/api/v1.0/Leads/GetLeadById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsGetLeadMeetingByIdIdGet:async(e,r={})=>{j("apiV10LeadsGetLeadMeetingByIdIdGet","id",e);const n="/api/v1.0/Leads/GetLeadMeetingById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsGetLeadMeetingsLeadIdGet:async(e,r={})=>{j("apiV10LeadsGetLeadMeetingsLeadIdGet","leadId",e);const n="/api/v1.0/Leads/GetLeadMeetings/{leadId}".replace("{leadId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10LeadsGetLeadsPost:async(e,r={})=>{const n="/api/v1.0/Leads/GetLeads",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10LeadsUpdateLeadIdPut:async(e,r,n={})=>{j("apiV10LeadsUpdateLeadIdPut","id",e);const a="/api/v1.0/Leads/UpdateLead/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10LeadsUpdateLeadMeetingIdPut:async(e,r,n={})=>{j("apiV10LeadsUpdateLeadMeetingIdPut","id",e);const a="/api/v1.0/Leads/UpdateLeadMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10LeadsUpdateLeadStatusIdPut:async(e,r,n={})=>{j("apiV10LeadsUpdateLeadStatusIdPut","id",e);const a="/api/v1.0/Leads/UpdateLeadStatus/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Dr=function(t){const e=GL(t);return{async apiV10LeadsAddLeadMeetingPost(r,n){var i,l;const a=await e.apiV10LeadsAddLeadMeetingPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsAddLeadMeetingPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsAddLeadPost(r,n){var i,l;const a=await e.apiV10LeadsAddLeadPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsAddLeadPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsCancelLeadMeetingIdPut(r,n){var i,l;const a=await e.apiV10LeadsCancelLeadMeetingIdPut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsCancelLeadMeetingIdPut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsDeleteLeadIdDelete(r,n){var i,l;const a=await e.apiV10LeadsDeleteLeadIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsDeleteLeadIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsDeleteLeadMeetingIdDelete(r,n){var i,l;const a=await e.apiV10LeadsDeleteLeadMeetingIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsDeleteLeadMeetingIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsGetLeadByIdIdGet(r,n){var i,l;const a=await e.apiV10LeadsGetLeadByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsGetLeadByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsGetLeadMeetingByIdIdGet(r,n){var i,l;const a=await e.apiV10LeadsGetLeadMeetingByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsGetLeadMeetingByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsGetLeadMeetingsLeadIdGet(r,n){var i,l;const a=await e.apiV10LeadsGetLeadMeetingsLeadIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsGetLeadMeetingsLeadIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsGetLeadsPost(r,n){var i,l;const a=await e.apiV10LeadsGetLeadsPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["LeadsApi.apiV10LeadsGetLeadsPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10LeadsUpdateLeadIdPut(r,n,a){var l,c;const o=await e.apiV10LeadsUpdateLeadIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["LeadsApi.apiV10LeadsUpdateLeadIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10LeadsUpdateLeadMeetingIdPut(r,n,a){var l,c;const o=await e.apiV10LeadsUpdateLeadMeetingIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["LeadsApi.apiV10LeadsUpdateLeadMeetingIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10LeadsUpdateLeadStatusIdPut(r,n,a){var l,c;const o=await e.apiV10LeadsUpdateLeadStatusIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["LeadsApi.apiV10LeadsUpdateLeadStatusIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class HL extends Fe{apiV10LeadsAddLeadMeetingPost(e,r){return Dr(this.configuration).apiV10LeadsAddLeadMeetingPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsAddLeadPost(e,r){return Dr(this.configuration).apiV10LeadsAddLeadPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsCancelLeadMeetingIdPut(e,r){return Dr(this.configuration).apiV10LeadsCancelLeadMeetingIdPut(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsDeleteLeadIdDelete(e,r){return Dr(this.configuration).apiV10LeadsDeleteLeadIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsDeleteLeadMeetingIdDelete(e,r){return Dr(this.configuration).apiV10LeadsDeleteLeadMeetingIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsGetLeadByIdIdGet(e,r){return Dr(this.configuration).apiV10LeadsGetLeadByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsGetLeadMeetingByIdIdGet(e,r){return Dr(this.configuration).apiV10LeadsGetLeadMeetingByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsGetLeadMeetingsLeadIdGet(e,r){return Dr(this.configuration).apiV10LeadsGetLeadMeetingsLeadIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsGetLeadsPost(e,r){return Dr(this.configuration).apiV10LeadsGetLeadsPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10LeadsUpdateLeadIdPut(e,r,n){return Dr(this.configuration).apiV10LeadsUpdateLeadIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10LeadsUpdateLeadMeetingIdPut(e,r,n){return Dr(this.configuration).apiV10LeadsUpdateLeadMeetingIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10LeadsUpdateLeadStatusIdPut(e,r,n){return Dr(this.configuration).apiV10LeadsUpdateLeadStatusIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const jL=function(t){return{apiV10MenuCreateMenuPost:async(e,r={})=>{j("apiV10MenuCreateMenuPost","contentActiveCoreDataDTOMenuCreateMenuDto",e);const n="/api/v1.0/Menu/CreateMenu",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10MenuDeleteMenuIdDelete:async(e,r={})=>{j("apiV10MenuDeleteMenuIdDelete","id",e);const n="/api/v1.0/Menu/DeleteMenu/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10MenuGetMenuByIdIdGet:async(e,r={})=>{j("apiV10MenuGetMenuByIdIdGet","id",e);const n="/api/v1.0/Menu/GetMenuById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet:async(e,r,n={})=>{j("apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet","roleId",e),j("apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet","portalName",r);const a="/api/v1.0/Menu/GetMenuPermissionByPortalAndRole/{roleId}/{portalName}".replace("{roleId}",encodeURIComponent(String(e))).replace("{portalName}",encodeURIComponent(String(r))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10MenuGetMenusGet:async(e={})=>{const r="/api/v1.0/Menu/GetMenus",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10MenuGetParentMenusByPortalPortalNameGet:async(e,r={})=>{j("apiV10MenuGetParentMenusByPortalPortalNameGet","portalName",e);const n="/api/v1.0/Menu/GetParentMenusByPortal/{portalName}".replace("{portalName}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10MenuUpdateMenuPermissionsPut:async(e,r={})=>{const n="/api/v1.0/Menu/UpdateMenuPermissions",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10MenuUpdateMenuPut:async(e,r={})=>{j("apiV10MenuUpdateMenuPut","contentActiveCoreDataDTOMenuUpdateMenuDto",e);const n="/api/v1.0/Menu/UpdateMenu",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},fa=function(t){const e=jL(t);return{async apiV10MenuCreateMenuPost(r,n){var i,l;const a=await e.apiV10MenuCreateMenuPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuCreateMenuPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10MenuDeleteMenuIdDelete(r,n){var i,l;const a=await e.apiV10MenuDeleteMenuIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuDeleteMenuIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10MenuGetMenuByIdIdGet(r,n){var i,l;const a=await e.apiV10MenuGetMenuByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuGetMenuByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet(r,n,a){var l,c;const o=await e.apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["MenuApi.apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10MenuGetMenusGet(r){var s,i;const n=await e.apiV10MenuGetMenusGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["MenuApi.apiV10MenuGetMenusGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10MenuGetParentMenusByPortalPortalNameGet(r,n){var i,l;const a=await e.apiV10MenuGetParentMenusByPortalPortalNameGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuGetParentMenusByPortalPortalNameGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10MenuUpdateMenuPermissionsPut(r,n){var i,l;const a=await e.apiV10MenuUpdateMenuPermissionsPut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuUpdateMenuPermissionsPut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10MenuUpdateMenuPut(r,n){var i,l;const a=await e.apiV10MenuUpdateMenuPut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["MenuApi.apiV10MenuUpdateMenuPut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class $L extends Fe{apiV10MenuCreateMenuPost(e,r){return fa(this.configuration).apiV10MenuCreateMenuPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10MenuDeleteMenuIdDelete(e,r){return fa(this.configuration).apiV10MenuDeleteMenuIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10MenuGetMenuByIdIdGet(e,r){return fa(this.configuration).apiV10MenuGetMenuByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet(e,r,n){return fa(this.configuration).apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10MenuGetMenusGet(e){return fa(this.configuration).apiV10MenuGetMenusGet(e).then(r=>r(this.axios,this.basePath))}apiV10MenuGetParentMenusByPortalPortalNameGet(e,r){return fa(this.configuration).apiV10MenuGetParentMenusByPortalPortalNameGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10MenuUpdateMenuPermissionsPut(e,r){return fa(this.configuration).apiV10MenuUpdateMenuPermissionsPut(e,r).then(n=>n(this.axios,this.basePath))}apiV10MenuUpdateMenuPut(e,r){return fa(this.configuration).apiV10MenuUpdateMenuPut(e,r).then(n=>n(this.axios,this.basePath))}}const zL=function(t){return{apiV10OpportunityAddOpportunityCallPost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddOpportunityCall",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityAddOpportunityEmailPost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddOpportunityEmail",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityAddOpportunityNotePost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddOpportunityNote",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityAddOpportunityPost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddOpportunity",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityAddOpportunityTaskPost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddOpportunityTask",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityAddStagePost:async(e,r={})=>{const n="/api/v1.0/Opportunity/AddStage",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10OpportunityDeleteOpportunityCallIdDelete:async(e,r={})=>{j("apiV10OpportunityDeleteOpportunityCallIdDelete","id",e);const n="/api/v1.0/Opportunity/DeleteOpportunityCall/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityDeleteOpportunityEmailIdDelete:async(e,r={})=>{j("apiV10OpportunityDeleteOpportunityEmailIdDelete","id",e);const n="/api/v1.0/Opportunity/DeleteOpportunityEmail/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityDeleteOpportunityIdDelete:async(e,r,n={})=>{j("apiV10OpportunityDeleteOpportunityIdDelete","id",e);const a="/api/v1.0/Opportunity/DeleteOpportunity/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityDeleteOpportunityNoteIdDelete:async(e,r={})=>{j("apiV10OpportunityDeleteOpportunityNoteIdDelete","id",e);const n="/api/v1.0/Opportunity/DeleteOpportunityNote/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityDeleteOpportunityTaskIdDelete:async(e,r={})=>{j("apiV10OpportunityDeleteOpportunityTaskIdDelete","id",e);const n="/api/v1.0/Opportunity/DeleteOpportunityTask/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityDeleteStageIdDelete:async(e,r={})=>{j("apiV10OpportunityDeleteStageIdDelete","id",e);const n="/api/v1.0/Opportunity/DeleteStage/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetAllStagesGet:async(e={})=>{const r="/api/v1.0/Opportunity/GetAllStages",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10OpportunityGetFilesOpportunityIdGet:async(e,r,n={})=>{j("apiV10OpportunityGetFilesOpportunityIdGet","opportunityId",e);const a="/api/v1.0/Opportunity/GetFiles/{opportunityId}".replace("{opportunityId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.searchTerm=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost:async(e,r,n,a,o={})=>{j("apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost","accountId",e);const s="/api/v1.0/Opportunity/GetOpportunitiesByAccountId/{accountId}".replace("{accountId}",encodeURIComponent(String(e))),i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"POST",...l,...o},u={},d={};await R(u,t),r!==void 0&&(d.pageNumber=r),n!==void 0&&(d.pageSize=n),u["Content-Type"]="application/json",D(i,d);let p=l&&l.headers?l.headers:{};return c.headers={...u,...p,...o.headers},c.data=ee(a,c,t),{url:k(i),options:c}},apiV10OpportunityGetOpportunitiesPost:async(e,r,n,a={})=>{const o="/api/v1.0/Opportunity/GetOpportunities",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.pageNumber=e),r!==void 0&&(u.pageSize=r),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=ee(n,l,t),{url:k(s),options:l}},apiV10OpportunityGetOpportunityAccountListGet:async(e={})=>{const r="/api/v1.0/Opportunity/GetOpportunityAccountList",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10OpportunityGetOpportunityByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetOpportunityById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityCallByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityCallByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetOpportunityCallById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityCallsOpportunityIDGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityCallsOpportunityIDGet","opportunityID",e);const n="/api/v1.0/Opportunity/GetOpportunityCalls/{OpportunityID}".replace("{OpportunityID}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityEmailByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityEmailByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetOpportunityEmailById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityEmailsOpportunityIDGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityEmailsOpportunityIDGet","opportunityID",e);const n="/api/v1.0/Opportunity/GetOpportunityEmails/{OpportunityID}".replace("{OpportunityID}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityLogsPost:async(e,r,n={})=>{const a="/api/v1.0/Opportunity/GetOpportunityLogs",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.OpportunityID=e),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityGetOpportunityNoteByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityNoteByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetOpportunityNoteById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityNotesOpportunityIDGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityNotesOpportunityIDGet","opportunityID",e);const n="/api/v1.0/Opportunity/GetOpportunityNotes/{OpportunityID}".replace("{OpportunityID}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityTaskByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityTaskByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetOpportunityTaskById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetOpportunityTasksOpportunityIDGet:async(e,r={})=>{j("apiV10OpportunityGetOpportunityTasksOpportunityIDGet","opportunityID",e);const n="/api/v1.0/Opportunity/GetOpportunityTasks/{OpportunityID}".replace("{OpportunityID}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityGetStageByIdIdGet:async(e,r={})=>{j("apiV10OpportunityGetStageByIdIdGet","id",e);const n="/api/v1.0/Opportunity/GetStageById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10OpportunityOpportunityIdDeleteFileFileIdDelete:async(e,r,n={})=>{j("apiV10OpportunityOpportunityIdDeleteFileFileIdDelete","opportunityId",e),j("apiV10OpportunityOpportunityIdDeleteFileFileIdDelete","fileId",r);const a="/api/v1.0/Opportunity/{opportunityId}/DeleteFile/{fileId}".replace("{opportunityId}",encodeURIComponent(String(e))).replace("{fileId}",encodeURIComponent(String(r))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};await R(l,t),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10OpportunityOpportunityIdDownloadFileFileIdGet:async(e,r,n={})=>{j("apiV10OpportunityOpportunityIdDownloadFileFileIdGet","opportunityId",e),j("apiV10OpportunityOpportunityIdDownloadFileFileIdGet","fileId",r);const a="/api/v1.0/Opportunity/{opportunityId}/DownloadFile/{fileId}".replace("{opportunityId}",encodeURIComponent(String(e))).replace("{fileId}",encodeURIComponent(String(r))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10OpportunityOpportunityIdEditFileFileIdPut:async(e,r,n,a,o={})=>{j("apiV10OpportunityOpportunityIdEditFileFileIdPut","opportunityId",e),j("apiV10OpportunityOpportunityIdEditFileFileIdPut","fileId",r);const s="/api/v1.0/Opportunity/{opportunityId}/EditFile/{fileId}".replace("{opportunityId}",encodeURIComponent(String(e))).replace("{fileId}",encodeURIComponent(String(r))),i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"PUT",...l,...o},u={},d={},p=new(t&&t.formDataCtor||FormData);await R(u,t),n!==void 0&&(d.fileName=n),a!==void 0&&p.append("newFile",a),u["Content-Type"]="multipart/form-data",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=p,{url:k(i),options:c}},apiV10OpportunityUpdateOpportunityCallIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityCallIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunityCall/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateOpportunityEmailIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityEmailIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunityEmail/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateOpportunityIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunity/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateOpportunityNoteIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityNoteIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunityNote/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateOpportunityStageIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityStageIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunityStage/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateOpportunityTaskIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateOpportunityTaskIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateOpportunityTask/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUpdateStageIdPut:async(e,r,n={})=>{j("apiV10OpportunityUpdateStageIdPut","id",e);const a="/api/v1.0/Opportunity/UpdateStage/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10OpportunityUploadFileOpportunityIdPost:async(e,r,n,a={})=>{j("apiV10OpportunityUploadFileOpportunityIdPost","opportunityId",e);const o="/api/v1.0/Opportunity/UploadFile/{opportunityId}".replace("{opportunityId}",encodeURIComponent(String(e))),s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={},d=new(t&&t.formDataCtor||FormData);await R(c,t),r!==void 0&&(u.fileName=r),n!==void 0&&d.append("file",n),c["Content-Type"]="multipart/form-data",D(s,u);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...a.headers},l.data=d,{url:k(s),options:l}}}},Ce=function(t){const e=zL(t);return{async apiV10OpportunityAddOpportunityCallPost(r,n){var i,l;const a=await e.apiV10OpportunityAddOpportunityCallPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddOpportunityCallPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityAddOpportunityEmailPost(r,n){var i,l;const a=await e.apiV10OpportunityAddOpportunityEmailPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddOpportunityEmailPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityAddOpportunityNotePost(r,n){var i,l;const a=await e.apiV10OpportunityAddOpportunityNotePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddOpportunityNotePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityAddOpportunityPost(r,n){var i,l;const a=await e.apiV10OpportunityAddOpportunityPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddOpportunityPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityAddOpportunityTaskPost(r,n){var i,l;const a=await e.apiV10OpportunityAddOpportunityTaskPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddOpportunityTaskPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityAddStagePost(r,n){var i,l;const a=await e.apiV10OpportunityAddStagePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityAddStagePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityDeleteOpportunityCallIdDelete(r,n){var i,l;const a=await e.apiV10OpportunityDeleteOpportunityCallIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityDeleteOpportunityCallIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityDeleteOpportunityEmailIdDelete(r,n){var i,l;const a=await e.apiV10OpportunityDeleteOpportunityEmailIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityDeleteOpportunityEmailIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityDeleteOpportunityIdDelete(r,n,a){var l,c;const o=await e.apiV10OpportunityDeleteOpportunityIdDelete(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityDeleteOpportunityIdDelete"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityDeleteOpportunityNoteIdDelete(r,n){var i,l;const a=await e.apiV10OpportunityDeleteOpportunityNoteIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityDeleteOpportunityNoteIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityDeleteOpportunityTaskIdDelete(r,n){var i,l;const a=await e.apiV10OpportunityDeleteOpportunityTaskIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityDeleteOpportunityTaskIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityDeleteStageIdDelete(r,n){var i,l;const a=await e.apiV10OpportunityDeleteStageIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityDeleteStageIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetAllStagesGet(r){var s,i;const n=await e.apiV10OpportunityGetAllStagesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["OpportunityApi.apiV10OpportunityGetAllStagesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10OpportunityGetFilesOpportunityIdGet(r,n,a){var l,c;const o=await e.apiV10OpportunityGetFilesOpportunityIdGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityGetFilesOpportunityIdGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost(r,n,a,o,s){var u,d;const i=await e.apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["OpportunityApi.apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10OpportunityGetOpportunitiesPost(r,n,a,o){var c,u;const s=await e.apiV10OpportunityGetOpportunitiesPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["OpportunityApi.apiV10OpportunityGetOpportunitiesPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10OpportunityGetOpportunityAccountListGet(r){var s,i;const n=await e.apiV10OpportunityGetOpportunityAccountListGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["OpportunityApi.apiV10OpportunityGetOpportunityAccountListGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10OpportunityGetOpportunityByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityCallByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityCallByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityCallByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityCallsOpportunityIDGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityCallsOpportunityIDGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityCallsOpportunityIDGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityEmailByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityEmailByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityEmailByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityEmailsOpportunityIDGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityEmailsOpportunityIDGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityEmailsOpportunityIDGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityLogsPost(r,n,a){var l,c;const o=await e.apiV10OpportunityGetOpportunityLogsPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityGetOpportunityLogsPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityGetOpportunityNoteByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityNoteByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityNoteByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityNotesOpportunityIDGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityNotesOpportunityIDGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityNotesOpportunityIDGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityTaskByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityTaskByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityTaskByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetOpportunityTasksOpportunityIDGet(r,n){var i,l;const a=await e.apiV10OpportunityGetOpportunityTasksOpportunityIDGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetOpportunityTasksOpportunityIDGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityGetStageByIdIdGet(r,n){var i,l;const a=await e.apiV10OpportunityGetStageByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["OpportunityApi.apiV10OpportunityGetStageByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10OpportunityOpportunityIdDeleteFileFileIdDelete(r,n,a){var l,c;const o=await e.apiV10OpportunityOpportunityIdDeleteFileFileIdDelete(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityOpportunityIdDeleteFileFileIdDelete"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityOpportunityIdDownloadFileFileIdGet(r,n,a){var l,c;const o=await e.apiV10OpportunityOpportunityIdDownloadFileFileIdGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityOpportunityIdDownloadFileFileIdGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityOpportunityIdEditFileFileIdPut(r,n,a,o,s){var u,d;const i=await e.apiV10OpportunityOpportunityIdEditFileFileIdPut(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["OpportunityApi.apiV10OpportunityOpportunityIdEditFileFileIdPut"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10OpportunityUpdateOpportunityCallIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityCallIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityCallIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateOpportunityEmailIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityEmailIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityEmailIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateOpportunityIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateOpportunityNoteIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityNoteIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityNoteIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateOpportunityStageIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityStageIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityStageIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateOpportunityTaskIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateOpportunityTaskIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateOpportunityTaskIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUpdateStageIdPut(r,n,a){var l,c;const o=await e.apiV10OpportunityUpdateStageIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["OpportunityApi.apiV10OpportunityUpdateStageIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10OpportunityUploadFileOpportunityIdPost(r,n,a,o){var c,u;const s=await e.apiV10OpportunityUploadFileOpportunityIdPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["OpportunityApi.apiV10OpportunityUploadFileOpportunityIdPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)}}};class Gw extends Fe{apiV10OpportunityAddOpportunityCallPost(e,r){return Ce(this.configuration).apiV10OpportunityAddOpportunityCallPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityAddOpportunityEmailPost(e,r){return Ce(this.configuration).apiV10OpportunityAddOpportunityEmailPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityAddOpportunityNotePost(e,r){return Ce(this.configuration).apiV10OpportunityAddOpportunityNotePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityAddOpportunityPost(e,r){return Ce(this.configuration).apiV10OpportunityAddOpportunityPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityAddOpportunityTaskPost(e,r){return Ce(this.configuration).apiV10OpportunityAddOpportunityTaskPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityAddStagePost(e,r){return Ce(this.configuration).apiV10OpportunityAddStagePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityDeleteOpportunityCallIdDelete(e,r){return Ce(this.configuration).apiV10OpportunityDeleteOpportunityCallIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityDeleteOpportunityEmailIdDelete(e,r){return Ce(this.configuration).apiV10OpportunityDeleteOpportunityEmailIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityDeleteOpportunityIdDelete(e,r,n){return Ce(this.configuration).apiV10OpportunityDeleteOpportunityIdDelete(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityDeleteOpportunityNoteIdDelete(e,r){return Ce(this.configuration).apiV10OpportunityDeleteOpportunityNoteIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityDeleteOpportunityTaskIdDelete(e,r){return Ce(this.configuration).apiV10OpportunityDeleteOpportunityTaskIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityDeleteStageIdDelete(e,r){return Ce(this.configuration).apiV10OpportunityDeleteStageIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetAllStagesGet(e){return Ce(this.configuration).apiV10OpportunityGetAllStagesGet(e).then(r=>r(this.axios,this.basePath))}apiV10OpportunityGetFilesOpportunityIdGet(e,r,n){return Ce(this.configuration).apiV10OpportunityGetFilesOpportunityIdGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost(e,r,n,a,o){return Ce(this.configuration).apiV10OpportunityGetOpportunitiesByAccountIdAccountIdPost(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10OpportunityGetOpportunitiesPost(e,r,n,a){return Ce(this.configuration).apiV10OpportunityGetOpportunitiesPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10OpportunityGetOpportunityAccountListGet(e){return Ce(this.configuration).apiV10OpportunityGetOpportunityAccountListGet(e).then(r=>r(this.axios,this.basePath))}apiV10OpportunityGetOpportunityByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityCallByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityCallByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityCallsOpportunityIDGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityCallsOpportunityIDGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityEmailByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityEmailByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityEmailsOpportunityIDGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityEmailsOpportunityIDGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityLogsPost(e,r,n){return Ce(this.configuration).apiV10OpportunityGetOpportunityLogsPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityGetOpportunityNoteByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityNoteByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityNotesOpportunityIDGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityNotesOpportunityIDGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityTaskByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityTaskByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetOpportunityTasksOpportunityIDGet(e,r){return Ce(this.configuration).apiV10OpportunityGetOpportunityTasksOpportunityIDGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityGetStageByIdIdGet(e,r){return Ce(this.configuration).apiV10OpportunityGetStageByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10OpportunityOpportunityIdDeleteFileFileIdDelete(e,r,n){return Ce(this.configuration).apiV10OpportunityOpportunityIdDeleteFileFileIdDelete(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityOpportunityIdDownloadFileFileIdGet(e,r,n){return Ce(this.configuration).apiV10OpportunityOpportunityIdDownloadFileFileIdGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityOpportunityIdEditFileFileIdPut(e,r,n,a,o){return Ce(this.configuration).apiV10OpportunityOpportunityIdEditFileFileIdPut(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityCallIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityCallIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityEmailIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityEmailIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityNoteIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityNoteIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityStageIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityStageIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateOpportunityTaskIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateOpportunityTaskIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUpdateStageIdPut(e,r,n){return Ce(this.configuration).apiV10OpportunityUpdateStageIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10OpportunityUploadFileOpportunityIdPost(e,r,n,a){return Ce(this.configuration).apiV10OpportunityUploadFileOpportunityIdPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}}const qL=function(t){return{apiV10ScheduleMeetingAddEventCategoryPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/AddEventCategory",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ScheduleMeetingAddIcalSubscriptionPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/AddIcalSubscription",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ScheduleMeetingAddMeetingPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/AddMeeting",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ScheduleMeetingCancelMeetingIdPut:async(e,r={})=>{j("apiV10ScheduleMeetingCancelMeetingIdPut","id",e);const n="/api/v1.0/ScheduleMeeting/CancelMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingDeleteEventCategoryIdDelete:async(e,r={})=>{j("apiV10ScheduleMeetingDeleteEventCategoryIdDelete","id",e);const n="/api/v1.0/ScheduleMeeting/DeleteEventCategory/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete:async(e,r,n={})=>{j("apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete","meetingId",e);const a="/api/v1.0/ScheduleMeeting/DeleteFromGoogleCalendar/{meetingId}".replace("{meetingId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"DELETE",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete:async(e,r={})=>{j("apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete","id",e);const n="/api/v1.0/ScheduleMeeting/DeleteIcalSubscription/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingDeleteMeetingIdDelete:async(e,r={})=>{j("apiV10ScheduleMeetingDeleteMeetingIdDelete","id",e);const n="/api/v1.0/ScheduleMeeting/DeleteMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingGetAllMeetingsGet:async(e,r,n,a,o,s,i,l,c={})=>{const u="/api/v1.0/ScheduleMeeting/GetAllMeetings",d=new URL(u,E);let p;t&&(p=t.baseOptions);const h={method:"GET",...p,...c},f={},y={};await R(f,t),e!==void 0&&(y.meetingDate=e instanceof Date?e.toISOString():e),r!==void 0&&(y.upcomingTaskDate=r instanceof Date?r.toISOString():r),n!==void 0&&(y.meetingWith=n),a!==void 0&&(y.meetingTypes=a),o!==void 0&&(y.eventName=o),s!==void 0&&(y.categoryId=s),i!==void 0&&(y.createdBy=i),l!==void 0&&(y.icalSubscriptionIds=l),D(d,y);let v=p&&p.headers?p.headers:{};return h.headers={...f,...v,...c.headers},{url:k(d),options:h}},apiV10ScheduleMeetingGetEventCategoriesGet:async(e={})=>{const r="/api/v1.0/ScheduleMeeting/GetEventCategories",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10ScheduleMeetingGetEventCategoryByIdIdGet:async(e,r={})=>{j("apiV10ScheduleMeetingGetEventCategoryByIdIdGet","id",e);const n="/api/v1.0/ScheduleMeeting/GetEventCategoryById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingGetIcalSubscriptionIdGet:async(e,r={})=>{j("apiV10ScheduleMeetingGetIcalSubscriptionIdGet","id",e);const n="/api/v1.0/ScheduleMeeting/GetIcalSubscription/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingGetIcalSubscriptionsGet:async(e={})=>{const r="/api/v1.0/ScheduleMeeting/GetIcalSubscriptions",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10ScheduleMeetingGetMeetingByIdIdGet:async(e,r={})=>{j("apiV10ScheduleMeetingGetMeetingByIdIdGet","id",e);const n="/api/v1.0/ScheduleMeeting/GetMeetingById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingGetMeetingsEntityIdGet:async(e,r={})=>{j("apiV10ScheduleMeetingGetMeetingsEntityIdGet","entityId",e);const n="/api/v1.0/ScheduleMeeting/GetMeetings/{entityId}".replace("{entityId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingSyncAllToGoogleCalendarPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/SyncAllToGoogleCalendar",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ScheduleMeetingSyncFromGoogleCalendarPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/SyncFromGoogleCalendar",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10ScheduleMeetingSyncIcalSubscriptionIdPost:async(e,r={})=>{j("apiV10ScheduleMeetingSyncIcalSubscriptionIdPost","id",e);const n="/api/v1.0/ScheduleMeeting/SyncIcalSubscription/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost:async(e,r,n={})=>{j("apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost","meetingId",e);const a="/api/v1.0/ScheduleMeeting/SyncMeetingToGoogleCalendar/{meetingId}".replace("{meetingId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10ScheduleMeetingUpdateEventCategoryIdPut:async(e,r,n={})=>{j("apiV10ScheduleMeetingUpdateEventCategoryIdPut","id",e);const a="/api/v1.0/ScheduleMeeting/UpdateEventCategory/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut:async(e,r,n={})=>{j("apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut","id",e);const a="/api/v1.0/ScheduleMeeting/UpdateIcalSubscription/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10ScheduleMeetingUpdateMeetingIdPut:async(e,r,n={})=>{j("apiV10ScheduleMeetingUpdateMeetingIdPut","id",e);const a="/api/v1.0/ScheduleMeeting/UpdateMeeting/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10ScheduleMeetingUploadIcalFilesPost:async(e,r,n={})=>{const a="/api/v1.0/ScheduleMeeting/UploadIcalFiles",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e&&e.forEach(p=>{u.append("files",p)}),r!==void 0&&u.append("baseName",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10ScheduleMeetingValidateGoogleTokenPost:async(e,r={})=>{const n="/api/v1.0/ScheduleMeeting/ValidateGoogleToken",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},We=function(t){const e=qL(t);return{async apiV10ScheduleMeetingAddEventCategoryPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingAddEventCategoryPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingAddEventCategoryPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingAddIcalSubscriptionPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingAddIcalSubscriptionPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingAddIcalSubscriptionPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingAddMeetingPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingAddMeetingPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingAddMeetingPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingCancelMeetingIdPut(r,n){var i,l;const a=await e.apiV10ScheduleMeetingCancelMeetingIdPut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingCancelMeetingIdPut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingDeleteEventCategoryIdDelete(r,n){var i,l;const a=await e.apiV10ScheduleMeetingDeleteEventCategoryIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingDeleteEventCategoryIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete(r,n){var i,l;const a=await e.apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingDeleteMeetingIdDelete(r,n){var i,l;const a=await e.apiV10ScheduleMeetingDeleteMeetingIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingDeleteMeetingIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingGetAllMeetingsGet(r,n,a,o,s,i,l,c,u){var f,y;const d=await e.apiV10ScheduleMeetingGetAllMeetingsGet(r,n,a,o,s,i,l,c,u),p=(t==null?void 0:t.serverIndex)??0,h=(y=(f=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetAllMeetingsGet"])==null?void 0:f[p])==null?void 0:y.url;return(v,g)=>_(d,w,b,t)(v,h||g)},async apiV10ScheduleMeetingGetEventCategoriesGet(r){var s,i;const n=await e.apiV10ScheduleMeetingGetEventCategoriesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetEventCategoriesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10ScheduleMeetingGetEventCategoryByIdIdGet(r,n){var i,l;const a=await e.apiV10ScheduleMeetingGetEventCategoryByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetEventCategoryByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingGetIcalSubscriptionIdGet(r,n){var i,l;const a=await e.apiV10ScheduleMeetingGetIcalSubscriptionIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetIcalSubscriptionIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingGetIcalSubscriptionsGet(r){var s,i;const n=await e.apiV10ScheduleMeetingGetIcalSubscriptionsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetIcalSubscriptionsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10ScheduleMeetingGetMeetingByIdIdGet(r,n){var i,l;const a=await e.apiV10ScheduleMeetingGetMeetingByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetMeetingByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingGetMeetingsEntityIdGet(r,n){var i,l;const a=await e.apiV10ScheduleMeetingGetMeetingsEntityIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingGetMeetingsEntityIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingSyncAllToGoogleCalendarPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingSyncAllToGoogleCalendarPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingSyncAllToGoogleCalendarPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingSyncFromGoogleCalendarPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingSyncFromGoogleCalendarPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingSyncFromGoogleCalendarPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingSyncIcalSubscriptionIdPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingSyncIcalSubscriptionIdPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingSyncIcalSubscriptionIdPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingUpdateEventCategoryIdPut(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingUpdateEventCategoryIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingUpdateEventCategoryIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingUpdateMeetingIdPut(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingUpdateMeetingIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingUpdateMeetingIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingUploadIcalFilesPost(r,n,a){var l,c;const o=await e.apiV10ScheduleMeetingUploadIcalFilesPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["ScheduleMeetingApi.apiV10ScheduleMeetingUploadIcalFilesPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10ScheduleMeetingValidateGoogleTokenPost(r,n){var i,l;const a=await e.apiV10ScheduleMeetingValidateGoogleTokenPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["ScheduleMeetingApi.apiV10ScheduleMeetingValidateGoogleTokenPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class QL extends Fe{apiV10ScheduleMeetingAddEventCategoryPost(e,r){return We(this.configuration).apiV10ScheduleMeetingAddEventCategoryPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingAddIcalSubscriptionPost(e,r){return We(this.configuration).apiV10ScheduleMeetingAddIcalSubscriptionPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingAddMeetingPost(e,r){return We(this.configuration).apiV10ScheduleMeetingAddMeetingPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingCancelMeetingIdPut(e,r){return We(this.configuration).apiV10ScheduleMeetingCancelMeetingIdPut(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingDeleteEventCategoryIdDelete(e,r){return We(this.configuration).apiV10ScheduleMeetingDeleteEventCategoryIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete(e,r,n){return We(this.configuration).apiV10ScheduleMeetingDeleteFromGoogleCalendarMeetingIdDelete(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete(e,r){return We(this.configuration).apiV10ScheduleMeetingDeleteIcalSubscriptionIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingDeleteMeetingIdDelete(e,r){return We(this.configuration).apiV10ScheduleMeetingDeleteMeetingIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingGetAllMeetingsGet(e,r,n,a,o,s,i,l,c){return We(this.configuration).apiV10ScheduleMeetingGetAllMeetingsGet(e,r,n,a,o,s,i,l,c).then(u=>u(this.axios,this.basePath))}apiV10ScheduleMeetingGetEventCategoriesGet(e){return We(this.configuration).apiV10ScheduleMeetingGetEventCategoriesGet(e).then(r=>r(this.axios,this.basePath))}apiV10ScheduleMeetingGetEventCategoryByIdIdGet(e,r){return We(this.configuration).apiV10ScheduleMeetingGetEventCategoryByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingGetIcalSubscriptionIdGet(e,r){return We(this.configuration).apiV10ScheduleMeetingGetIcalSubscriptionIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingGetIcalSubscriptionsGet(e){return We(this.configuration).apiV10ScheduleMeetingGetIcalSubscriptionsGet(e).then(r=>r(this.axios,this.basePath))}apiV10ScheduleMeetingGetMeetingByIdIdGet(e,r){return We(this.configuration).apiV10ScheduleMeetingGetMeetingByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingGetMeetingsEntityIdGet(e,r){return We(this.configuration).apiV10ScheduleMeetingGetMeetingsEntityIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingSyncAllToGoogleCalendarPost(e,r){return We(this.configuration).apiV10ScheduleMeetingSyncAllToGoogleCalendarPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingSyncFromGoogleCalendarPost(e,r){return We(this.configuration).apiV10ScheduleMeetingSyncFromGoogleCalendarPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingSyncIcalSubscriptionIdPost(e,r){return We(this.configuration).apiV10ScheduleMeetingSyncIcalSubscriptionIdPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost(e,r,n){return We(this.configuration).apiV10ScheduleMeetingSyncMeetingToGoogleCalendarMeetingIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingUpdateEventCategoryIdPut(e,r,n){return We(this.configuration).apiV10ScheduleMeetingUpdateEventCategoryIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut(e,r,n){return We(this.configuration).apiV10ScheduleMeetingUpdateIcalSubscriptionIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingUpdateMeetingIdPut(e,r,n){return We(this.configuration).apiV10ScheduleMeetingUpdateMeetingIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingUploadIcalFilesPost(e,r,n){return We(this.configuration).apiV10ScheduleMeetingUploadIcalFilesPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10ScheduleMeetingValidateGoogleTokenPost(e,r){return We(this.configuration).apiV10ScheduleMeetingValidateGoogleTokenPost(e,r).then(n=>n(this.axios,this.basePath))}}const KL=function(t){return{apiV10SettingExportGet:async(e,r={})=>{const n="/api/v1.0/Setting/export",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),e&&(l.entityNames=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SettingGetSitePageConfigSiteKeyGet:async(e,r={})=>{j("apiV10SettingGetSitePageConfigSiteKeyGet","siteKey",e);const n="/api/v1.0/Setting/GetSitePageConfig/{siteKey}".replace("{siteKey}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SettingSettingCreatePost:async(e,r={})=>{const n="/api/v1.0/Setting/setting/create",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10SettingSettingDeleteIdDelete:async(e,r={})=>{j("apiV10SettingSettingDeleteIdDelete","id",e);const n="/api/v1.0/Setting/setting/delete/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SettingSettingIdGet:async(e,r={})=>{j("apiV10SettingSettingIdGet","id",e);const n="/api/v1.0/Setting/setting/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SettingSettingUpdatePut:async(e,r={})=>{const n="/api/v1.0/Setting/setting/update",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10SettingSettingsGet:async(e={})=>{const r="/api/v1.0/Setting/settings",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SettingSitePageConfigPost:async(e,r={})=>{const n="/api/v1.0/Setting/SitePageConfig",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},ma=function(t){const e=KL(t);return{async apiV10SettingExportGet(r,n){var i,l;const a=await e.apiV10SettingExportGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingExportGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingGetSitePageConfigSiteKeyGet(r,n){var i,l;const a=await e.apiV10SettingGetSitePageConfigSiteKeyGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingGetSitePageConfigSiteKeyGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingSettingCreatePost(r,n){var i,l;const a=await e.apiV10SettingSettingCreatePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingSettingCreatePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingSettingDeleteIdDelete(r,n){var i,l;const a=await e.apiV10SettingSettingDeleteIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingSettingDeleteIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingSettingIdGet(r,n){var i,l;const a=await e.apiV10SettingSettingIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingSettingIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingSettingUpdatePut(r,n){var i,l;const a=await e.apiV10SettingSettingUpdatePut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingSettingUpdatePut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SettingSettingsGet(r){var s,i;const n=await e.apiV10SettingSettingsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SettingApi.apiV10SettingSettingsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SettingSitePageConfigPost(r,n){var i,l;const a=await e.apiV10SettingSitePageConfigPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SettingApi.apiV10SettingSitePageConfigPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class WL extends Fe{apiV10SettingExportGet(e,r){return ma(this.configuration).apiV10SettingExportGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingGetSitePageConfigSiteKeyGet(e,r){return ma(this.configuration).apiV10SettingGetSitePageConfigSiteKeyGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingSettingCreatePost(e,r){return ma(this.configuration).apiV10SettingSettingCreatePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingSettingDeleteIdDelete(e,r){return ma(this.configuration).apiV10SettingSettingDeleteIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingSettingIdGet(e,r){return ma(this.configuration).apiV10SettingSettingIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingSettingUpdatePut(e,r){return ma(this.configuration).apiV10SettingSettingUpdatePut(e,r).then(n=>n(this.axios,this.basePath))}apiV10SettingSettingsGet(e){return ma(this.configuration).apiV10SettingSettingsGet(e).then(r=>r(this.axios,this.basePath))}apiV10SettingSitePageConfigPost(e,r){return ma(this.configuration).apiV10SettingSitePageConfigPost(e,r).then(n=>n(this.axios,this.basePath))}}const YL=function(t){return{apiV10SignUpSettingGetCourseEnrollmentSettingPost:async(e={})=>{const r="/api/v1.0/SignUpSetting/GetCourseEnrollmentSetting",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SignUpSettingGetSignUpAddressSettingPost:async(e={})=>{const r="/api/v1.0/SignUpSetting/GetSignUpAddressSetting",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SignUpSettingGetSignUpSettingGet:async(e={})=>{const r="/api/v1.0/SignUpSetting/GetSignUpSetting",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SignUpSettingGetSubscriptionSettingPost:async(e={})=>{const r="/api/v1.0/SignUpSetting/GetSubscriptionSetting",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SignUpSettingUpdateCourseEnrollmentSettingPost:async(e,r,n={})=>{const a="/api/v1.0/SignUpSetting/UpdateCourseEnrollmentSetting",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.IsEnabled=e),r!==void 0&&(c.CourseId=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10SignUpSettingUpdateSignUpAddressSettingPost:async(e,r={})=>{const n="/api/v1.0/SignUpSetting/UpdateSignUpAddressSetting",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.IsEnabled=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SignUpSettingUpdateSubscriptionSettingPost:async(e,r={})=>{const n="/api/v1.0/SignUpSetting/UpdateSubscriptionSetting",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.IsEnabled=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}}}},io=function(t){const e=YL(t);return{async apiV10SignUpSettingGetCourseEnrollmentSettingPost(r){var s,i;const n=await e.apiV10SignUpSettingGetCourseEnrollmentSettingPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SignUpSettingApi.apiV10SignUpSettingGetCourseEnrollmentSettingPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SignUpSettingGetSignUpAddressSettingPost(r){var s,i;const n=await e.apiV10SignUpSettingGetSignUpAddressSettingPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SignUpSettingApi.apiV10SignUpSettingGetSignUpAddressSettingPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SignUpSettingGetSignUpSettingGet(r){var s,i;const n=await e.apiV10SignUpSettingGetSignUpSettingGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SignUpSettingApi.apiV10SignUpSettingGetSignUpSettingGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SignUpSettingGetSubscriptionSettingPost(r){var s,i;const n=await e.apiV10SignUpSettingGetSubscriptionSettingPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SignUpSettingApi.apiV10SignUpSettingGetSubscriptionSettingPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SignUpSettingUpdateCourseEnrollmentSettingPost(r,n,a){var l,c;const o=await e.apiV10SignUpSettingUpdateCourseEnrollmentSettingPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["SignUpSettingApi.apiV10SignUpSettingUpdateCourseEnrollmentSettingPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10SignUpSettingUpdateSignUpAddressSettingPost(r,n){var i,l;const a=await e.apiV10SignUpSettingUpdateSignUpAddressSettingPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SignUpSettingApi.apiV10SignUpSettingUpdateSignUpAddressSettingPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SignUpSettingUpdateSubscriptionSettingPost(r,n){var i,l;const a=await e.apiV10SignUpSettingUpdateSubscriptionSettingPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SignUpSettingApi.apiV10SignUpSettingUpdateSubscriptionSettingPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class JL extends Fe{apiV10SignUpSettingGetCourseEnrollmentSettingPost(e){return io(this.configuration).apiV10SignUpSettingGetCourseEnrollmentSettingPost(e).then(r=>r(this.axios,this.basePath))}apiV10SignUpSettingGetSignUpAddressSettingPost(e){return io(this.configuration).apiV10SignUpSettingGetSignUpAddressSettingPost(e).then(r=>r(this.axios,this.basePath))}apiV10SignUpSettingGetSignUpSettingGet(e){return io(this.configuration).apiV10SignUpSettingGetSignUpSettingGet(e).then(r=>r(this.axios,this.basePath))}apiV10SignUpSettingGetSubscriptionSettingPost(e){return io(this.configuration).apiV10SignUpSettingGetSubscriptionSettingPost(e).then(r=>r(this.axios,this.basePath))}apiV10SignUpSettingUpdateCourseEnrollmentSettingPost(e,r,n){return io(this.configuration).apiV10SignUpSettingUpdateCourseEnrollmentSettingPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10SignUpSettingUpdateSignUpAddressSettingPost(e,r){return io(this.configuration).apiV10SignUpSettingUpdateSignUpAddressSettingPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10SignUpSettingUpdateSubscriptionSettingPost(e,r){return io(this.configuration).apiV10SignUpSettingUpdateSubscriptionSettingPost(e,r).then(n=>n(this.axios,this.basePath))}}const XL=function(t){return{apiV10SubscriptionCreateCheckoutSessionPost:async(e,r={})=>{const n="/api/v1.0/Subscription/CreateCheckoutSession",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10SubscriptionCreatePortalSessionPost:async(e={})=>{const r="/api/v1.0/Subscription/CreatePortalSession",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SubscriptionGetAllProductsGet:async(e={})=>{const r="/api/v1.0/Subscription/GetAllProducts",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet:async(e,r={})=>{j("apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet","userId",e);const n="/api/v1.0/Subscription/GetCustomerSubscriptionById/{userId}".replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SubscriptionGetCustomerSubscriptionsGet:async(e,r,n,a,o,s,i,l={})=>{const c="/api/v1.0/Subscription/GetCustomerSubscriptions",u=new URL(c,E);let d;t&&(d=t.baseOptions);const p={method:"GET",...d,...l},h={},f={};await R(h,t),e!==void 0&&(f.Status=e),r!==void 0&&(f.PlanName=r),n!==void 0&&(f.CustomerEmail=n),a!==void 0&&(f.StartDate=a instanceof Date?a.toISOString():a),o!==void 0&&(f.EndDate=o instanceof Date?o.toISOString():o),s!==void 0&&(f.Page=s),i!==void 0&&(f.PageSize=i),D(u,f);let y=d&&d.headers?d.headers:{};return p.headers={...h,...y,...l.headers},{url:k(u),options:p}},apiV10SubscriptionGetInvoicesGet:async(e={})=>{const r="/api/v1.0/Subscription/GetInvoices",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SubscriptionSyncProductsPricesPost:async(e={})=>{const r="/api/v1.0/Subscription/SyncProductsPrices",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10SubscriptionWebhookPost:async(e={})=>{const r="/api/v1.0/Subscription/Webhook",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"POST",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}}}},ya=function(t){const e=XL(t);return{async apiV10SubscriptionCreateCheckoutSessionPost(r,n){var i,l;const a=await e.apiV10SubscriptionCreateCheckoutSessionPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SubscriptionApi.apiV10SubscriptionCreateCheckoutSessionPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SubscriptionCreatePortalSessionPost(r){var s,i;const n=await e.apiV10SubscriptionCreatePortalSessionPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SubscriptionApi.apiV10SubscriptionCreatePortalSessionPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SubscriptionGetAllProductsGet(r){var s,i;const n=await e.apiV10SubscriptionGetAllProductsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SubscriptionApi.apiV10SubscriptionGetAllProductsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet(r,n){var i,l;const a=await e.apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SubscriptionApi.apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SubscriptionGetCustomerSubscriptionsGet(r,n,a,o,s,i,l,c){var h,f;const u=await e.apiV10SubscriptionGetCustomerSubscriptionsGet(r,n,a,o,s,i,l,c),d=(t==null?void 0:t.serverIndex)??0,p=(f=(h=T["SubscriptionApi.apiV10SubscriptionGetCustomerSubscriptionsGet"])==null?void 0:h[d])==null?void 0:f.url;return(y,v)=>_(u,w,b,t)(y,p||v)},async apiV10SubscriptionGetInvoicesGet(r){var s,i;const n=await e.apiV10SubscriptionGetInvoicesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SubscriptionApi.apiV10SubscriptionGetInvoicesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SubscriptionSyncProductsPricesPost(r){var s,i;const n=await e.apiV10SubscriptionSyncProductsPricesPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SubscriptionApi.apiV10SubscriptionSyncProductsPricesPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10SubscriptionWebhookPost(r){var s,i;const n=await e.apiV10SubscriptionWebhookPost(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["SubscriptionApi.apiV10SubscriptionWebhookPost"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)}}};class ZL extends Fe{apiV10SubscriptionCreateCheckoutSessionPost(e,r){return ya(this.configuration).apiV10SubscriptionCreateCheckoutSessionPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10SubscriptionCreatePortalSessionPost(e){return ya(this.configuration).apiV10SubscriptionCreatePortalSessionPost(e).then(r=>r(this.axios,this.basePath))}apiV10SubscriptionGetAllProductsGet(e){return ya(this.configuration).apiV10SubscriptionGetAllProductsGet(e).then(r=>r(this.axios,this.basePath))}apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet(e,r){return ya(this.configuration).apiV10SubscriptionGetCustomerSubscriptionByIdUserIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10SubscriptionGetCustomerSubscriptionsGet(e,r,n,a,o,s,i,l){return ya(this.configuration).apiV10SubscriptionGetCustomerSubscriptionsGet(e,r,n,a,o,s,i,l).then(c=>c(this.axios,this.basePath))}apiV10SubscriptionGetInvoicesGet(e){return ya(this.configuration).apiV10SubscriptionGetInvoicesGet(e).then(r=>r(this.axios,this.basePath))}apiV10SubscriptionSyncProductsPricesPost(e){return ya(this.configuration).apiV10SubscriptionSyncProductsPricesPost(e).then(r=>r(this.axios,this.basePath))}apiV10SubscriptionWebhookPost(e){return ya(this.configuration).apiV10SubscriptionWebhookPost(e).then(r=>r(this.axios,this.basePath))}}const e4=function(t){return{apiV10SupportCategoryAddCategoryPost:async(e,r={})=>{const n="/api/v1.0/SupportCategory/AddCategory",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10SupportCategoryDeleteCategoryIdPost:async(e,r,n={})=>{j("apiV10SupportCategoryDeleteCategoryIdPost","id",e);const a="/api/v1.0/SupportCategory/DeleteCategory/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.IsActive=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10SupportCategoryGetCategoryPost:async(e,r,n,a={})=>{const o="/api/v1.0/SupportCategory/GetCategory",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.IsActive=e),r!==void 0&&(u.pageNumber=r),n!==void 0&&(u.pageSize=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:k(s),options:l}},apiV10SupportCategoryUpdateCategoryIdPost:async(e,r,n={})=>{j("apiV10SupportCategoryUpdateCategoryIdPost","id",e);const a="/api/v1.0/SupportCategory/UpdateCategory/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Fc=function(t){const e=e4(t);return{async apiV10SupportCategoryAddCategoryPost(r,n){var i,l;const a=await e.apiV10SupportCategoryAddCategoryPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SupportCategoryApi.apiV10SupportCategoryAddCategoryPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SupportCategoryDeleteCategoryIdPost(r,n,a){var l,c;const o=await e.apiV10SupportCategoryDeleteCategoryIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["SupportCategoryApi.apiV10SupportCategoryDeleteCategoryIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10SupportCategoryGetCategoryPost(r,n,a,o){var c,u;const s=await e.apiV10SupportCategoryGetCategoryPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["SupportCategoryApi.apiV10SupportCategoryGetCategoryPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10SupportCategoryUpdateCategoryIdPost(r,n,a){var l,c;const o=await e.apiV10SupportCategoryUpdateCategoryIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["SupportCategoryApi.apiV10SupportCategoryUpdateCategoryIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class t4 extends Fe{apiV10SupportCategoryAddCategoryPost(e,r){return Fc(this.configuration).apiV10SupportCategoryAddCategoryPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10SupportCategoryDeleteCategoryIdPost(e,r,n){return Fc(this.configuration).apiV10SupportCategoryDeleteCategoryIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10SupportCategoryGetCategoryPost(e,r,n,a){return Fc(this.configuration).apiV10SupportCategoryGetCategoryPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10SupportCategoryUpdateCategoryIdPost(e,r,n){return Fc(this.configuration).apiV10SupportCategoryUpdateCategoryIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}}const r4=function(t){return{apiV10SupportTicketsMyGet:async(e,r,n,a={})=>{const o="/api/v1.0/support/tickets/my",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"GET",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.IsActive=e),r!==void 0&&(u.page=r),n!==void 0&&(u.pageSize=n),D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},{url:k(s),options:l}},apiV10SupportTicketsPost:async(e,r,n,a,o={})=>{j("apiV10SupportTicketsPost","categoryId",e),j("apiV10SupportTicketsPost","title",r);const s="/api/v1.0/support/tickets",i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"POST",...l,...o},u={},d={},p=new(t&&t.formDataCtor||FormData);await R(u,t),e!==void 0&&p.append("CategoryId",e),r!==void 0&&p.append("Title",r),n!==void 0&&p.append("Description",n),a!==void 0&&p.append("attachment",a),u["Content-Type"]="multipart/form-data",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=p,{url:k(i),options:c}},apiV10SupportTicketsTicketIdGet:async(e,r={})=>{j("apiV10SupportTicketsTicketIdGet","ticketId",e);const n="/api/v1.0/support/tickets/{ticketId}".replace("{ticketId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SupportTicketsTicketIdMessagesPost:async(e,r,n,a,o={})=>{j("apiV10SupportTicketsTicketIdMessagesPost","ticketId",e),j("apiV10SupportTicketsTicketIdMessagesPost","messageText",r);const s="/api/v1.0/support/tickets/{ticketId}/messages".replace("{ticketId}",encodeURIComponent(String(e))),i=new URL(s,E);let l;t&&(l=t.baseOptions);const c={method:"POST",...l,...o},u={},d={},p=new(t&&t.formDataCtor||FormData);await R(u,t),n!==void 0&&(d.status=n),r!==void 0&&p.append("MessageText",r),a!==void 0&&p.append("attachment",a),u["Content-Type"]="multipart/form-data",D(i,d);let h=l&&l.headers?l.headers:{};return c.headers={...u,...h,...o.headers},c.data=p,{url:k(i),options:c}},apiV10SupportTicketsTicketIdResolvePost:async(e,r={})=>{j("apiV10SupportTicketsTicketIdResolvePost","ticketId",e);const n="/api/v1.0/support/tickets/{ticketId}/resolve".replace("{ticketId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10SupportTicketsTicketIdUpdateStatusPost:async(e,r,n={})=>{j("apiV10SupportTicketsTicketIdUpdateStatusPost","ticketId",e);const a="/api/v1.0/support/tickets/{ticketId}/update-status".replace("{ticketId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),r!==void 0&&(c.status=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}}}},Wo=function(t){const e=r4(t);return{async apiV10SupportTicketsMyGet(r,n,a,o){var c,u;const s=await e.apiV10SupportTicketsMyGet(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["SupportTicketsApi.apiV10SupportTicketsMyGet"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10SupportTicketsPost(r,n,a,o,s){var u,d;const i=await e.apiV10SupportTicketsPost(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["SupportTicketsApi.apiV10SupportTicketsPost"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10SupportTicketsTicketIdGet(r,n){var i,l;const a=await e.apiV10SupportTicketsTicketIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SupportTicketsApi.apiV10SupportTicketsTicketIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SupportTicketsTicketIdMessagesPost(r,n,a,o,s){var u,d;const i=await e.apiV10SupportTicketsTicketIdMessagesPost(r,n,a,o,s),l=(t==null?void 0:t.serverIndex)??0,c=(d=(u=T["SupportTicketsApi.apiV10SupportTicketsTicketIdMessagesPost"])==null?void 0:u[l])==null?void 0:d.url;return(p,h)=>_(i,w,b,t)(p,c||h)},async apiV10SupportTicketsTicketIdResolvePost(r,n){var i,l;const a=await e.apiV10SupportTicketsTicketIdResolvePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["SupportTicketsApi.apiV10SupportTicketsTicketIdResolvePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10SupportTicketsTicketIdUpdateStatusPost(r,n,a){var l,c;const o=await e.apiV10SupportTicketsTicketIdUpdateStatusPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["SupportTicketsApi.apiV10SupportTicketsTicketIdUpdateStatusPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class n4 extends Fe{apiV10SupportTicketsMyGet(e,r,n,a){return Wo(this.configuration).apiV10SupportTicketsMyGet(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10SupportTicketsPost(e,r,n,a,o){return Wo(this.configuration).apiV10SupportTicketsPost(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10SupportTicketsTicketIdGet(e,r){return Wo(this.configuration).apiV10SupportTicketsTicketIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10SupportTicketsTicketIdMessagesPost(e,r,n,a,o){return Wo(this.configuration).apiV10SupportTicketsTicketIdMessagesPost(e,r,n,a,o).then(s=>s(this.axios,this.basePath))}apiV10SupportTicketsTicketIdResolvePost(e,r){return Wo(this.configuration).apiV10SupportTicketsTicketIdResolvePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10SupportTicketsTicketIdUpdateStatusPost(e,r,n){return Wo(this.configuration).apiV10SupportTicketsTicketIdUpdateStatusPost(e,r,n).then(a=>a(this.axios,this.basePath))}}const a4=function(t){return{apiV10TenantCreateTenantPost:async(e,r={})=>{j("apiV10TenantCreateTenantPost","contentActiveCoreDataDTOTenantCreateTenantDto",e);const n="/api/v1.0/Tenant/CreateTenant",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10TenantCreateTenantUserPost:async(e,r={})=>{j("apiV10TenantCreateTenantUserPost","contentActiveCoreDataDTOTenantCreateTenantUserDto",e);const n="/api/v1.0/Tenant/CreateTenantUser",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10TenantDeleteTenantIdDelete:async(e,r={})=>{j("apiV10TenantDeleteTenantIdDelete","id",e);const n="/api/v1.0/Tenant/DeleteTenant/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10TenantDeleteTenantUserIdDelete:async(e,r={})=>{j("apiV10TenantDeleteTenantUserIdDelete","id",e);const n="/api/v1.0/Tenant/DeleteTenantUser/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10TenantExportTenantUsersByTenantIdIdPost:async(e,r,n={})=>{j("apiV10TenantExportTenantUsersByTenantIdIdPost","id",e),j("apiV10TenantExportTenantUsersByTenantIdIdPost","contentActiveCoreDataDTOUserGetUsersDto",r);const a="/api/v1.0/Tenant/ExportTenantUsersByTenantId/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10TenantGetTenantByIdIdGet:async(e,r={})=>{j("apiV10TenantGetTenantByIdIdGet","id",e);const n="/api/v1.0/Tenant/GetTenantById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10TenantGetTenantUserIdGet:async(e,r={})=>{j("apiV10TenantGetTenantUserIdGet","id",e);const n="/api/v1.0/Tenant/GetTenantUser/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10TenantGetTenantUsersByTenantIdIdPost:async(e,r,n={})=>{j("apiV10TenantGetTenantUsersByTenantIdIdPost","id",e),j("apiV10TenantGetTenantUsersByTenantIdIdPost","contentActiveCoreDataDTOUserGetUsersDto",r);const a="/api/v1.0/Tenant/GetTenantUsersByTenantId/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10TenantGetTenantsGet:async(e={})=>{const r="/api/v1.0/Tenant/GetTenants",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10TenantUpdateTenantPost:async(e,r={})=>{j("apiV10TenantUpdateTenantPost","contentActiveCoreDataDTOTenantUpdateTenantDto",e);const n="/api/v1.0/Tenant/UpdateTenant",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10TenantUpdateTenantUserIdPut:async(e,r,n={})=>{j("apiV10TenantUpdateTenantUserIdPut","id",e),j("apiV10TenantUpdateTenantUserIdPut","contentActiveCoreDataDTOTenantUpdateTenantUserDto",r);const a="/api/v1.0/Tenant/UpdateTenantUser/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}}}},Kr=function(t){const e=a4(t);return{async apiV10TenantCreateTenantPost(r,n){var i,l;const a=await e.apiV10TenantCreateTenantPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantCreateTenantPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantCreateTenantUserPost(r,n){var i,l;const a=await e.apiV10TenantCreateTenantUserPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantCreateTenantUserPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantDeleteTenantIdDelete(r,n){var i,l;const a=await e.apiV10TenantDeleteTenantIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantDeleteTenantIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantDeleteTenantUserIdDelete(r,n){var i,l;const a=await e.apiV10TenantDeleteTenantUserIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantDeleteTenantUserIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantExportTenantUsersByTenantIdIdPost(r,n,a){var l,c;const o=await e.apiV10TenantExportTenantUsersByTenantIdIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["TenantApi.apiV10TenantExportTenantUsersByTenantIdIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10TenantGetTenantByIdIdGet(r,n){var i,l;const a=await e.apiV10TenantGetTenantByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantGetTenantByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantGetTenantUserIdGet(r,n){var i,l;const a=await e.apiV10TenantGetTenantUserIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantGetTenantUserIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantGetTenantUsersByTenantIdIdPost(r,n,a){var l,c;const o=await e.apiV10TenantGetTenantUsersByTenantIdIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["TenantApi.apiV10TenantGetTenantUsersByTenantIdIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10TenantGetTenantsGet(r){var s,i;const n=await e.apiV10TenantGetTenantsGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["TenantApi.apiV10TenantGetTenantsGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10TenantUpdateTenantPost(r,n){var i,l;const a=await e.apiV10TenantUpdateTenantPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TenantApi.apiV10TenantUpdateTenantPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TenantUpdateTenantUserIdPut(r,n,a){var l,c;const o=await e.apiV10TenantUpdateTenantUserIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["TenantApi.apiV10TenantUpdateTenantUserIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)}}};class o4 extends Fe{apiV10TenantCreateTenantPost(e,r){return Kr(this.configuration).apiV10TenantCreateTenantPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantCreateTenantUserPost(e,r){return Kr(this.configuration).apiV10TenantCreateTenantUserPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantDeleteTenantIdDelete(e,r){return Kr(this.configuration).apiV10TenantDeleteTenantIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantDeleteTenantUserIdDelete(e,r){return Kr(this.configuration).apiV10TenantDeleteTenantUserIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantExportTenantUsersByTenantIdIdPost(e,r,n){return Kr(this.configuration).apiV10TenantExportTenantUsersByTenantIdIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10TenantGetTenantByIdIdGet(e,r){return Kr(this.configuration).apiV10TenantGetTenantByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantGetTenantUserIdGet(e,r){return Kr(this.configuration).apiV10TenantGetTenantUserIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantGetTenantUsersByTenantIdIdPost(e,r,n){return Kr(this.configuration).apiV10TenantGetTenantUsersByTenantIdIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10TenantGetTenantsGet(e){return Kr(this.configuration).apiV10TenantGetTenantsGet(e).then(r=>r(this.axios,this.basePath))}apiV10TenantUpdateTenantPost(e,r){return Kr(this.configuration).apiV10TenantUpdateTenantPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10TenantUpdateTenantUserIdPut(e,r,n){return Kr(this.configuration).apiV10TenantUpdateTenantUserIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}}const s4=function(t){return{apiV10TokenCheckTokenValidityGet:async(e={})=>{const r="/api/v1.0/Token/CheckTokenValidity",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10TokenGetUserProfileGet:async(e={})=>{const r="/api/v1.0/Token/GetUserProfile",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10TokenRefreshTokenPost:async(e,r={})=>{const n="/api/v1.0/Token/RefreshToken",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10TokenRevokeAllRefreshTokensForUserGet:async(e={})=>{const r="/api/v1.0/Token/RevokeAllRefreshTokensForUser",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10TokenRevokeTokenPost:async(e,r={})=>{const n="/api/v1.0/Token/RevokeToken",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}}}},Di=function(t){const e=s4(t);return{async apiV10TokenCheckTokenValidityGet(r){var s,i;const n=await e.apiV10TokenCheckTokenValidityGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["TokenApi.apiV10TokenCheckTokenValidityGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10TokenGetUserProfileGet(r){var s,i;const n=await e.apiV10TokenGetUserProfileGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["TokenApi.apiV10TokenGetUserProfileGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10TokenRefreshTokenPost(r,n){var i,l;const a=await e.apiV10TokenRefreshTokenPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TokenApi.apiV10TokenRefreshTokenPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10TokenRevokeAllRefreshTokensForUserGet(r){var s,i;const n=await e.apiV10TokenRevokeAllRefreshTokensForUserGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["TokenApi.apiV10TokenRevokeAllRefreshTokensForUserGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10TokenRevokeTokenPost(r,n){var i,l;const a=await e.apiV10TokenRevokeTokenPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["TokenApi.apiV10TokenRevokeTokenPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class i4 extends Fe{apiV10TokenCheckTokenValidityGet(e){return Di(this.configuration).apiV10TokenCheckTokenValidityGet(e).then(r=>r(this.axios,this.basePath))}apiV10TokenGetUserProfileGet(e){return Di(this.configuration).apiV10TokenGetUserProfileGet(e).then(r=>r(this.axios,this.basePath))}apiV10TokenRefreshTokenPost(e,r){return Di(this.configuration).apiV10TokenRefreshTokenPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10TokenRevokeAllRefreshTokensForUserGet(e){return Di(this.configuration).apiV10TokenRevokeAllRefreshTokensForUserGet(e).then(r=>r(this.axios,this.basePath))}apiV10TokenRevokeTokenPost(e,r){return Di(this.configuration).apiV10TokenRevokeTokenPost(e,r).then(n=>n(this.axios,this.basePath))}}const l4=function(t){return{apiV10UserCheckVerifySendSMSNumberCodeGet:async(e,r,n={})=>{j("apiV10UserCheckVerifySendSMSNumberCodeGet","number",e),j("apiV10UserCheckVerifySendSMSNumberCodeGet","code",r);const a="/api/v1.0/User/CheckVerifySendSMS/{number}/{code}".replace("{number}",encodeURIComponent(String(e))).replace("{code}",encodeURIComponent(String(r))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10UserCreateRolePost:async(e,r={})=>{const n="/api/v1.0/User/CreateRole",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserCreateUserPost:async(e,r={})=>{j("apiV10UserCreateUserPost","contentActiveApiViewModelsUserAddEditDTO",e);const n="/api/v1.0/User/CreateUser",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserDefaultAllUserRolesGet:async(e={})=>{const r="/api/v1.0/User/DefaultAllUserRoles",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10UserDeleteRoleIdDelete:async(e,r={})=>{j("apiV10UserDeleteRoleIdDelete","id",e);const n="/api/v1.0/User/DeleteRole/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserExportRolesTypePost:async(e,r,n={})=>{j("apiV10UserExportRolesTypePost","type",e),j("apiV10UserExportRolesTypePost","contentActiveCoreDataDTORoleGetRolesDto",r);const a="/api/v1.0/User/ExportRoles/{type}".replace("{type}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10UserForgotpasswordGet:async(e,r,n={})=>{j("apiV10UserForgotpasswordGet","email",e);const a="/api/v1.0/User/forgotpassword",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"GET",...s,...n},l={},c={};await R(l,t),e!==void 0&&(c.email=e),r!==void 0&&(c.isWeb=r),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10UserGenerateLoginTokenPost:async(e,r={})=>{const n="/api/v1.0/User/GenerateLoginToken",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserGet:async(e={})=>{const r="/api/v1.0/User",n=new URL(r,E);let a;t&&(a=t.baseOptions);const o={method:"GET",...a,...e},s={},i={};await R(s,t),D(n,i);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...e.headers},{url:k(n),options:o}},apiV10UserGetAvatarImageUserIdGet:async(e,r={})=>{j("apiV10UserGetAvatarImageUserIdGet","userId",e);const n="/api/v1.0/User/GetAvatarImage/{userId}".replace("{userId}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserGetRoleByIdIdGet:async(e,r={})=>{j("apiV10UserGetRoleByIdIdGet","id",e);const n="/api/v1.0/User/GetRoleById/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserGetRolesTypePost:async(e,r,n={})=>{j("apiV10UserGetRolesTypePost","type",e),j("apiV10UserGetRolesTypePost","contentActiveCoreDataDTORoleGetRolesDto",r);const a="/api/v1.0/User/GetRoles/{type}".replace("{type}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10UserGetUserIdGet:async(e,r={})=>{j("apiV10UserGetUserIdGet","id",e);const n="/api/v1.0/User/GetUser/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserGetUsersByTenantIdIdPost:async(e,r,n={})=>{j("apiV10UserGetUsersByTenantIdIdPost","id",e),j("apiV10UserGetUsersByTenantIdIdPost","contentActiveCoreDataDTOUserGetUsersDto",r);const a="/api/v1.0/User/GetUsersByTenantId/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10UserIdDelete:async(e,r={})=>{j("apiV10UserIdDelete","id",e);const n="/api/v1.0/User/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"DELETE",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserInsertTenantForAllUsersPost:async(e,r={})=>{const n="/api/v1.0/User/InsertTenantForAllUsers",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),e!==void 0&&(l.TenantName=e),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}},apiV10UserLoginAsUserPost:async(e,r={})=>{const n="/api/v1.0/User/LoginAsUser",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserLoginLogintopotalPost:async(e,r,n,a,o,s={})=>{j("apiV10UserLoginLogintopotalPost","logintopotal",e);const i="/api/v1.0/User/Login/{logintopotal}".replace("{logintopotal}",encodeURIComponent(String(e))),l=new URL(i,E);let c;t&&(c=t.baseOptions);const u={method:"POST",...c,...s},d={},p={};await R(d,t),r!==void 0&&(p.loginType=r),n!==void 0&&(p.source=n),a!==void 0&&(p.flag=a),d["Content-Type"]="application/json",D(l,p);let h=c&&c.headers?c.headers:{};return u.headers={...d,...h,...s.headers},u.data=ee(o,u,t),{url:k(l),options:u}},apiV10UserPost:async(e,r={})=>{j("apiV10UserPost","contentActiveCoreDataDTOUserRegisterUserDto",e);const n="/api/v1.0/User",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"POST",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserSend2FALogiCodeToUserIdTwoFATypePost:async(e,r,n={})=>{j("apiV10UserSend2FALogiCodeToUserIdTwoFATypePost","id",e),j("apiV10UserSend2FALogiCodeToUserIdTwoFATypePost","twoFAType",r);const a="/api/v1.0/User/Send2FALogiCodeToUser/{id}/{twoFAType}".replace("{id}",encodeURIComponent(String(e))).replace("{twoFAType}",encodeURIComponent(String(r))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={};await R(l,t),D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},{url:k(o),options:i}},apiV10UserUpdateRolePut:async(e,r={})=>{j("apiV10UserUpdateRolePut","contentActiveCoreDataDTORoleUpdateRoleDto",e);const n="/api/v1.0/User/UpdateRole",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserUpdateUserIdPut:async(e,r,n={})=>{j("apiV10UserUpdateUserIdPut","id",e),j("apiV10UserUpdateUserIdPut","contentActiveApiViewModelsUserAddEditDTO",r);const a="/api/v1.0/User/UpdateUser/{id}".replace("{id}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10UserUpdateUserProfileDataPost:async(e,r,n,a,o,s,i,l,c,u={})=>{const d="/api/v1.0/User/UpdateUserProfileData",p=new URL(d,E);let h;t&&(h=t.baseOptions);const f={method:"POST",...h,...u},y={},v={},g=new(t&&t.formDataCtor||FormData);await R(y,t),e!==void 0&&g.append("Phone",e),r!==void 0&&g.append("Avatar",r),n!==void 0&&g.append("Email",n),a!==void 0&&g.append("Lang",a),o!==void 0&&g.append("Name",o),s!==void 0&&g.append("SyncData",s),i!==void 0&&g.append("TimeZone",i),l!==void 0&&g.append("Title",l),c!==void 0&&g.append("TwoFactor",c),y["Content-Type"]="multipart/form-data",D(p,v);let m=h&&h.headers?h.headers:{};return f.headers={...y,...m,...u.headers},f.data=g,{url:k(p),options:f}},apiV10UserUpdateUserRolePut:async(e,r={})=>{const n="/api/v1.0/User/UpdateUserRole",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserUpdateUserTenantPut:async(e,r={})=>{const n="/api/v1.0/User/UpdateUserTenant",a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"PUT",...o,...r},i={},l={};await R(i,t),i["Content-Type"]="application/json",D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},s.data=ee(e,s,t),{url:k(a),options:s}},apiV10UserUploadProfileAvatarPost:async(e,r,n={})=>{const a="/api/v1.0/User/UploadProfileAvatar",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e!==void 0&&u.append("File",e),r!==void 0&&u.append("FileName",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10UserUploadScannedFilePost:async(e,r,n={})=>{const a="/api/v1.0/User/UploadScannedFile",o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"POST",...s,...n},l={},c={},u=new(t&&t.formDataCtor||FormData);await R(l,t),e!==void 0&&u.append("File",e),r!==void 0&&u.append("UserId",r),l["Content-Type"]="multipart/form-data",D(o,c);let d=s&&s.headers?s.headers:{};return i.headers={...l,...d,...n.headers},i.data=u,{url:k(o),options:i}},apiV10UserUserIdPut:async(e,r,n={})=>{j("apiV10UserUserIdPut","userId",e),j("apiV10UserUserIdPut","contentActiveCoreDataDTOUserUpdateUserDto",r);const a="/api/v1.0/User/{userId}".replace("{userId}",encodeURIComponent(String(e))),o=new URL(a,E);let s;t&&(s=t.baseOptions);const i={method:"PUT",...s,...n},l={},c={};await R(l,t),l["Content-Type"]="application/json",D(o,c);let u=s&&s.headers?s.headers:{};return i.headers={...l,...u,...n.headers},i.data=ee(r,i,t),{url:k(o),options:i}},apiV10UserVerify2faPost:async(e,r,n,a={})=>{const o="/api/v1.0/User/Verify2fa",s=new URL(o,E);let i;t&&(i=t.baseOptions);const l={method:"POST",...i,...a},c={},u={};await R(c,t),e!==void 0&&(u.source=e),r!==void 0&&(u.flag=r),c["Content-Type"]="application/json",D(s,u);let d=i&&i.headers?i.headers:{};return l.headers={...c,...d,...a.headers},l.data=ee(n,l,t),{url:k(s),options:l}},apiV10UserVerifySendSMSNumberGet:async(e,r={})=>{j("apiV10UserVerifySendSMSNumberGet","number",e);const n="/api/v1.0/User/VerifySendSMS/{number}".replace("{number}",encodeURIComponent(String(e))),a=new URL(n,E);let o;t&&(o=t.baseOptions);const s={method:"GET",...o,...r},i={},l={};await R(i,t),D(a,l);let c=o&&o.headers?o.headers:{};return s.headers={...i,...c,...r.headers},{url:k(a),options:s}}}},Re=function(t){const e=l4(t);return{async apiV10UserCheckVerifySendSMSNumberCodeGet(r,n,a){var l,c;const o=await e.apiV10UserCheckVerifySendSMSNumberCodeGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserCheckVerifySendSMSNumberCodeGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserCreateRolePost(r,n){var i,l;const a=await e.apiV10UserCreateRolePost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserCreateRolePost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserCreateUserPost(r,n){var i,l;const a=await e.apiV10UserCreateUserPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserCreateUserPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserDefaultAllUserRolesGet(r){var s,i;const n=await e.apiV10UserDefaultAllUserRolesGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["UserApi.apiV10UserDefaultAllUserRolesGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10UserDeleteRoleIdDelete(r,n){var i,l;const a=await e.apiV10UserDeleteRoleIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserDeleteRoleIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserExportRolesTypePost(r,n,a){var l,c;const o=await e.apiV10UserExportRolesTypePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserExportRolesTypePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserForgotpasswordGet(r,n,a){var l,c;const o=await e.apiV10UserForgotpasswordGet(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserForgotpasswordGet"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserGenerateLoginTokenPost(r,n){var i,l;const a=await e.apiV10UserGenerateLoginTokenPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserGenerateLoginTokenPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserGet(r){var s,i;const n=await e.apiV10UserGet(r),a=(t==null?void 0:t.serverIndex)??0,o=(i=(s=T["UserApi.apiV10UserGet"])==null?void 0:s[a])==null?void 0:i.url;return(l,c)=>_(n,w,b,t)(l,o||c)},async apiV10UserGetAvatarImageUserIdGet(r,n){var i,l;const a=await e.apiV10UserGetAvatarImageUserIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserGetAvatarImageUserIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserGetRoleByIdIdGet(r,n){var i,l;const a=await e.apiV10UserGetRoleByIdIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserGetRoleByIdIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserGetRolesTypePost(r,n,a){var l,c;const o=await e.apiV10UserGetRolesTypePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserGetRolesTypePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserGetUserIdGet(r,n){var i,l;const a=await e.apiV10UserGetUserIdGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserGetUserIdGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserGetUsersByTenantIdIdPost(r,n,a){var l,c;const o=await e.apiV10UserGetUsersByTenantIdIdPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserGetUsersByTenantIdIdPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserIdDelete(r,n){var i,l;const a=await e.apiV10UserIdDelete(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserIdDelete"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserInsertTenantForAllUsersPost(r,n){var i,l;const a=await e.apiV10UserInsertTenantForAllUsersPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserInsertTenantForAllUsersPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserLoginAsUserPost(r,n){var i,l;const a=await e.apiV10UserLoginAsUserPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserLoginAsUserPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserLoginLogintopotalPost(r,n,a,o,s,i){var d,p;const l=await e.apiV10UserLoginLogintopotalPost(r,n,a,o,s,i),c=(t==null?void 0:t.serverIndex)??0,u=(p=(d=T["UserApi.apiV10UserLoginLogintopotalPost"])==null?void 0:d[c])==null?void 0:p.url;return(h,f)=>_(l,w,b,t)(h,u||f)},async apiV10UserPost(r,n){var i,l;const a=await e.apiV10UserPost(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserPost"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserSend2FALogiCodeToUserIdTwoFATypePost(r,n,a){var l,c;const o=await e.apiV10UserSend2FALogiCodeToUserIdTwoFATypePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserSend2FALogiCodeToUserIdTwoFATypePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserUpdateRolePut(r,n){var i,l;const a=await e.apiV10UserUpdateRolePut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserUpdateRolePut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserUpdateUserIdPut(r,n,a){var l,c;const o=await e.apiV10UserUpdateUserIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserUpdateUserIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserUpdateUserProfileDataPost(r,n,a,o,s,i,l,c,u,d){var y,v;const p=await e.apiV10UserUpdateUserProfileDataPost(r,n,a,o,s,i,l,c,u,d),h=(t==null?void 0:t.serverIndex)??0,f=(v=(y=T["UserApi.apiV10UserUpdateUserProfileDataPost"])==null?void 0:y[h])==null?void 0:v.url;return(g,m)=>_(p,w,b,t)(g,f||m)},async apiV10UserUpdateUserRolePut(r,n){var i,l;const a=await e.apiV10UserUpdateUserRolePut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserUpdateUserRolePut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserUpdateUserTenantPut(r,n){var i,l;const a=await e.apiV10UserUpdateUserTenantPut(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserUpdateUserTenantPut"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)},async apiV10UserUploadProfileAvatarPost(r,n,a){var l,c;const o=await e.apiV10UserUploadProfileAvatarPost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserUploadProfileAvatarPost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserUploadScannedFilePost(r,n,a){var l,c;const o=await e.apiV10UserUploadScannedFilePost(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserUploadScannedFilePost"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserUserIdPut(r,n,a){var l,c;const o=await e.apiV10UserUserIdPut(r,n,a),s=(t==null?void 0:t.serverIndex)??0,i=(c=(l=T["UserApi.apiV10UserUserIdPut"])==null?void 0:l[s])==null?void 0:c.url;return(u,d)=>_(o,w,b,t)(u,i||d)},async apiV10UserVerify2faPost(r,n,a,o){var c,u;const s=await e.apiV10UserVerify2faPost(r,n,a,o),i=(t==null?void 0:t.serverIndex)??0,l=(u=(c=T["UserApi.apiV10UserVerify2faPost"])==null?void 0:c[i])==null?void 0:u.url;return(d,p)=>_(s,w,b,t)(d,l||p)},async apiV10UserVerifySendSMSNumberGet(r,n){var i,l;const a=await e.apiV10UserVerifySendSMSNumberGet(r,n),o=(t==null?void 0:t.serverIndex)??0,s=(l=(i=T["UserApi.apiV10UserVerifySendSMSNumberGet"])==null?void 0:i[o])==null?void 0:l.url;return(c,u)=>_(a,w,b,t)(c,s||u)}}};class c4 extends Fe{apiV10UserCheckVerifySendSMSNumberCodeGet(e,r,n){return Re(this.configuration).apiV10UserCheckVerifySendSMSNumberCodeGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserCreateRolePost(e,r){return Re(this.configuration).apiV10UserCreateRolePost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserCreateUserPost(e,r){return Re(this.configuration).apiV10UserCreateUserPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserDefaultAllUserRolesGet(e){return Re(this.configuration).apiV10UserDefaultAllUserRolesGet(e).then(r=>r(this.axios,this.basePath))}apiV10UserDeleteRoleIdDelete(e,r){return Re(this.configuration).apiV10UserDeleteRoleIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserExportRolesTypePost(e,r,n){return Re(this.configuration).apiV10UserExportRolesTypePost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserForgotpasswordGet(e,r,n){return Re(this.configuration).apiV10UserForgotpasswordGet(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserGenerateLoginTokenPost(e,r){return Re(this.configuration).apiV10UserGenerateLoginTokenPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserGet(e){return Re(this.configuration).apiV10UserGet(e).then(r=>r(this.axios,this.basePath))}apiV10UserGetAvatarImageUserIdGet(e,r){return Re(this.configuration).apiV10UserGetAvatarImageUserIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserGetRoleByIdIdGet(e,r){return Re(this.configuration).apiV10UserGetRoleByIdIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserGetRolesTypePost(e,r,n){return Re(this.configuration).apiV10UserGetRolesTypePost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserGetUserIdGet(e,r){return Re(this.configuration).apiV10UserGetUserIdGet(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserGetUsersByTenantIdIdPost(e,r,n){return Re(this.configuration).apiV10UserGetUsersByTenantIdIdPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserIdDelete(e,r){return Re(this.configuration).apiV10UserIdDelete(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserInsertTenantForAllUsersPost(e,r){return Re(this.configuration).apiV10UserInsertTenantForAllUsersPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserLoginAsUserPost(e,r){return Re(this.configuration).apiV10UserLoginAsUserPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserLoginLogintopotalPost(e,r,n,a,o,s){return Re(this.configuration).apiV10UserLoginLogintopotalPost(e,r,n,a,o,s).then(i=>i(this.axios,this.basePath))}apiV10UserPost(e,r){return Re(this.configuration).apiV10UserPost(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserSend2FALogiCodeToUserIdTwoFATypePost(e,r,n){return Re(this.configuration).apiV10UserSend2FALogiCodeToUserIdTwoFATypePost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserUpdateRolePut(e,r){return Re(this.configuration).apiV10UserUpdateRolePut(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserUpdateUserIdPut(e,r,n){return Re(this.configuration).apiV10UserUpdateUserIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserUpdateUserProfileDataPost(e,r,n,a,o,s,i,l,c,u){return Re(this.configuration).apiV10UserUpdateUserProfileDataPost(e,r,n,a,o,s,i,l,c,u).then(d=>d(this.axios,this.basePath))}apiV10UserUpdateUserRolePut(e,r){return Re(this.configuration).apiV10UserUpdateUserRolePut(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserUpdateUserTenantPut(e,r){return Re(this.configuration).apiV10UserUpdateUserTenantPut(e,r).then(n=>n(this.axios,this.basePath))}apiV10UserUploadProfileAvatarPost(e,r,n){return Re(this.configuration).apiV10UserUploadProfileAvatarPost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserUploadScannedFilePost(e,r,n){return Re(this.configuration).apiV10UserUploadScannedFilePost(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserUserIdPut(e,r,n){return Re(this.configuration).apiV10UserUserIdPut(e,r,n).then(a=>a(this.axios,this.basePath))}apiV10UserVerify2faPost(e,r,n,a){return Re(this.configuration).apiV10UserVerify2faPost(e,r,n,a).then(o=>o(this.axios,this.basePath))}apiV10UserVerifySendSMSNumberGet(e,r){return Re(this.configuration).apiV10UserVerifySendSMSNumberGet(e,r).then(n=>n(this.axios,this.basePath))}}class u4{constructor(e={}){Rr(this,"apiKey");Rr(this,"username");Rr(this,"password");Rr(this,"accessToken");Rr(this,"basePath");Rr(this,"serverIndex");Rr(this,"baseOptions");Rr(this,"formDataCtor");this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(r.test(e)||e.toLowerCase()==="application/json-patch+json")}}const Hw="Bearer ",jw="Authorization",qx=t=>!isNaN(Number(t));function il(t){if(typeof t=="string"){if(qx(t))return t;try{return il(JSON.parse(t))}catch{return t}}else return Array.isArray(t)?t.map(e=>il(e)):typeof t=="object"&&t!==null?Object.keys(t).reduce((e,r)=>{const n=t[r];return e[r]=qx(n)?n:il(n),e},{}):t}const Ee=w.create({baseURL:Wt.apiBaseUrl,timeout:6e4}),Ue=new u4({basePath:Wt.apiBaseUrl});Ee.interceptors.request.use(t=>{var a;const e=localStorage.getItem(Hv),r=il(e);let n=(a=r==null?void 0:r.session)==null?void 0:a.token;if(!n){const{auth:o}=ac.getState();n=o.session.token}return n&&(t.headers[jw]=`${Hw}${n}`),t},t=>Promise.reject(t));Ee.interceptors.response.use(t=>t,t=>{const e=[401];return t.response&&e.includes(t.response.status)&&ac.dispatch(zp()),Promise.reject(t)});const Xv=new uL(Ue,void 0,Ee);new i4(Ue,void 0,Ee);const d4=new $L(Ue,void 0,Ee);new o4(Ue,void 0,Ee);const nc=new c4(Ue,void 0,Ee),Du=new WL(Ue,void 0,Ee);new _L(Ue,void 0,Ee);new fL(Ue,void 0,Ee);new Gw(Ue,void 0,Ee);new HL(Ue,void 0,Ee);new Gw(Ue,void 0,Ee);new PL(Ue,void 0,Ee);new xL(Ue,void 0,Ee);new QL(Ue,void 0,Ee);new NL(Ue,void 0,Ee);new EL(Ue,void 0,Ee);new OL(Ue,void 0,Ee);new DL(Ue,void 0,Ee);new BL(Ue,void 0,Ee);new gL(Ue,void 0,Ee);const Rq=new pL(Ue,void 0,Ee),p4=new yL(Ue,void 0,Ee),Dq=new n4(Ue,void 0,Ee),kq=new t4(Ue,void 0,Ee),_q=new ZL(Ue,void 0,Ee),Uq=new IL(Ue,void 0,Ee),Bq=new FL(Ue,void 0,Ee),h4=new JL(Ue,void 0,Ee),f4=new bL(Ue,void 0,Ee);let Lc;const m4=new Uint8Array(16);function y4(){if(!Lc&&(Lc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lc(m4)}const Dt=[];for(let t=0;t<256;++t)Dt.push((t+256).toString(16).slice(1));function v4(t,e=0){return Dt[t[e+0]]+Dt[t[e+1]]+Dt[t[e+2]]+Dt[t[e+3]]+"-"+Dt[t[e+4]]+Dt[t[e+5]]+"-"+Dt[t[e+6]]+Dt[t[e+7]]+"-"+Dt[t[e+8]]+Dt[t[e+9]]+"-"+Dt[t[e+10]]+Dt[t[e+11]]+Dt[t[e+12]]+Dt[t[e+13]]+Dt[t[e+14]]+Dt[t[e+15]]}const g4=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Qx={randomUUID:g4};function C4(t,e,r){if(Qx.randomUUID&&!e&&!t)return Qx.randomUUID();t=t||{};const n=t.random||(t.rng||y4)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let a=0;a<16;++a)e[r+a]=n[a];return e}return v4(n)}const ku="theme",x4=async()=>{try{const t=await Du.apiV10SettingSettingsGet();if(t.data&&t.data.success){const r=t.data.data.find(n=>n.key===ku);return r&&r.value?JSON.parse(r.value):he}else return he}catch{return he}},$w=async t=>{try{const e=await Du.apiV10SettingSettingsGet();if(e.data&&e.data.success){const n=e.data.data.find(a=>a.key===ku);if(n&&n.id){const a=await Du.apiV10SettingSettingUpdatePut({id:n.id,key:ku,value:JSON.stringify(t),createdBy:"Anonymous",modifiedBy:"Anonymous"});return t}else{const a=C4(),o=await Du.apiV10SettingSettingCreatePost({key:ku,value:JSON.stringify(t),createdBy:"Anonymous",modifiedBy:"Anonymous"});return t}}else return t}catch{return t}};async function S4(){return(await p4.apiV10BrandingSettingsGetAllBrandingDataPost()).data}async function P4(){return(await h4.apiV10SignUpSettingGetSignUpSettingGet()).data}const A4=()=>he.layout.type===Es&&he.navMode!==Sd?Pd:he.navMode,O4={themeColor:he.themeColor,direction:he.direction,mode:he.mode,primaryColorLevel:he.primaryColorLevel,panelExpand:he.panelExpand,cardBordered:he.cardBordered,controlSize:he.controlSize,navMode:A4(),sideNavigationColor:he.sideNavigationColor,layout:he.layout,logoColor:he.chartColors.dark.color1,loginLayout:"side_layout",themeColours:{50:"#fedbc6",100:"#fbc7a8",200:"#f7af86",300:"#f8a06d",400:"#f88d48",500:"#fd8331",600:"#f3741c",700:"#c65a0e",800:"#9a4000",900:"#671b02",950:"#3e1303"},chartColors:{light:{color1:he.chartColors.light.color1,color2:he.chartColors.light.color2,color3:he.chartColors.light.color3,color4:he.chartColors.light.color4,color5:he.chartColors.light.color5,color6:he.chartColors.light.color6,color7:he.chartColors.light.color7,color8:he.chartColors.light.color8,color9:he.chartColors.light.color9,color10:he.chartColors.light.color10,color11:he.chartColors.light.color11,color12:he.chartColors.light.color12},dark:{color1:he.chartColors.dark.color1,color2:he.chartColors.dark.color2,color3:he.chartColors.dark.color3,color4:he.chartColors.dark.color4,color5:he.chartColors.dark.color5,color6:he.chartColors.dark.color6,color7:he.chartColors.dark.color7,color8:he.chartColors.dark.color8,color9:he.chartColors.dark.color9,color10:he.chartColors.dark.color10,color11:he.chartColors.dark.color11,color12:he.chartColors.dark.color12}},specificChartColor:{light:he.specificChartColor.light,dark:he.specificChartColor.dark},themeText:{cover:{primaryText:he.themeText.cover.primaryText,secondaryText:he.themeText.cover.secondaryText,description:he.themeText.cover.description},side:{primaryText:he.themeText.side.primaryText,secondaryText:he.themeText.side.secondaryText,description:he.themeText.side.description}},coverLayout:[],sideLayout:[],centerLayout:[],logoIconLightMode:[],fullLogoIconLightMode:[],logoIconDarkMode:[],fullLogoIconDarkMode:[],siteSettings:[],isCourseEnable:!1,isSubscriptionEnable:!0,isAddressNeeded:!1},zw=$s("theme/fetchConfig",async()=>await x4());$s("theme/saveConfig",async(t,{rejectWithValue:e})=>{try{return await $w(t),t}catch(r){return e(r)}});const qw=$s("theme/fetchThemeSettings",async()=>(await S4()).data),Qw=$s("theme/getSignupCourseSetting",async()=>(await P4()).data),h0=[jv,$v,zv],Kw=en({name:"theme",initialState:O4,reducers:{setDirection:(t,e)=>{t.direction=e.payload},setMode:(t,e)=>{const r=h0.includes(t.layout.type);r&&e.payload===Vu&&t.navMode!==Sd&&(t.navMode=wu),r&&e.payload===Ou&&t.navMode!==Sd&&(t.navMode=Iu),t.mode=e.payload},setLayout:(t,e)=>{t.cardBordered=e.payload===Es,e.payload===Es&&(t.navMode=Pd);const r=h0.includes(e.payload);r&&t.mode===Ou&&(t.navMode=Iu),r&&t.mode===Vu&&(t.navMode=wu),t.layout={...t.layout,type:e.payload}},setPreviousLayout:(t,e)=>{t.layout.previousType=e.payload},setSideNavCollapse:(t,e)=>{t.layout={...t.layout,sideNavCollapse:e.payload}},setCourseSettings:(t,e)=>{t.isCourseEnable=e.payload},setSubscriptionSettings:(t,e)=>{t.isSubscriptionEnable=e.payload},setNavMode:(t,e)=>{if(e.payload!=="default")t.navMode=e.payload;else{t.layout.type===Es&&(t.navMode=Pd);const r=h0.includes(t.layout.type);r&&t.mode===Ou&&(t.navMode=Iu),r&&t.mode===Vu&&(t.navMode=wu)}},setPanelExpand:(t,e)=>{t.panelExpand=e.payload},setThemeColor:(t,e)=>{t.themeColor=e.payload},setThemeColorLevel:(t,e)=>{t.primaryColorLevel=e.payload},setLogoColor:(t,e)=>{t.logoColor=e.payload},setLoginLayout:(t,e)=>{t.loginLayout=e.payload},setThemeColors:(t,e)=>{t.themeColours=e.payload},setThemeText:(t,e)=>{t.themeText[e.payload.type]=e.payload.text}},extraReducers:t=>{t.addCase(zw.fulfilled,(e,r)=>({...e,...r.payload})).addCase(qw.fulfilled,(e,r)=>{var s,i;let n=r.payload.$values||[];const a=n.find(l=>l.settingKey==="site_Info")||null;let o=null;if(a!=null&&a.moreInformation)try{o=((s=JSON.parse(a.moreInformation))==null?void 0:s.custom)||null}catch(l){console.error("Invalid JSON in site_Info.moreInformation:",l)}e.siteSettings=a||null,e.coverLayout=n.find(l=>l.settingKey==="customer_cover_layout")||null,e.sideLayout=n.find(l=>l.settingKey==="customer_side_layout")||null,e.centerLayout=n.find(l=>l.settingKey==="customer_center_layout")||null,e.loginLayout=((i=e.centerLayout)==null?void 0:i.settingType)||"",e.logoIconLightMode=n.find(l=>l.settingKey==="logo_icon_light_mode")||null,e.fullLogoIconLightMode=n.find(l=>l.settingKey==="full_logo_icon_light_mode")||null,e.logoIconDarkMode=n.find(l=>l.settingKey==="logo_icon_dark_mode")||null,e.fullLogoIconDarkMode=n.find(l=>l.settingKey==="full_logo_icon_dark_mode")||null,o&&(e.themeColours=o)}).addCase(Qw.fulfilled,(e,r)=>{var n,a,o;e.isCourseEnable=((n=r.payload)==null?void 0:n.courseEnrollment)??!1,e.isSubscriptionEnable=((a=r==null?void 0:r.payload)==null?void 0:a.subsription)??!1,e.isAddressNeeded=((o=r==null?void 0:r.payload)==null?void 0:o.address)??!1})}}),{setDirection:V4,setMode:I4,setLayout:Mq,setSideNavCollapse:Fq,setNavMode:Lq,setPanelExpand:Nq,setThemeColor:Gq,setThemeColorLevel:Hq,setPreviousLayout:jq,setLogoColor:$q,setLoginLayout:zq,setThemeColors:qq,setThemeText:Qq,setCourseSettings:Kq,setSubscriptionSettings:Wq}=Kw.actions,w4=Kw.reducer;var Ww=globalThis&&globalThis.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],a=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Vd=globalThis&&globalThis.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t},b4=Object.defineProperty,T4=Object.defineProperties,E4=Object.getOwnPropertyDescriptors,Kx=Object.getOwnPropertySymbols,R4=Object.prototype.hasOwnProperty,D4=Object.prototype.propertyIsEnumerable,Wx=function(t,e,r){return e in t?b4(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},vt=function(t,e){for(var r in e||(e={}))R4.call(e,r)&&Wx(t,r,e[r]);if(Kx)for(var n=0,a=Kx(e);n<a.length;n++){var r=a[n];D4.call(e,r)&&Wx(t,r,e[r])}return t},Kn=function(t,e){return T4(t,E4(e))},Yw=function(t,e,r){return new Promise(function(n,a){var o=function(l){try{i(r.next(l))}catch(c){a(c)}},s=function(l){try{i(r.throw(l))}catch(c){a(c)}},i=function(l){return l.done?n(l.value):Promise.resolve(l.value).then(o,s)};i((r=r.apply(t,e)).next())})},Je;(function(t){t.uninitialized="uninitialized",t.pending="pending",t.fulfilled="fulfilled",t.rejected="rejected"})(Je||(Je={}));function k4(t){return{status:t,isUninitialized:t===Je.uninitialized,isLoading:t===Je.pending,isSuccess:t===Je.fulfilled,isError:t===Je.rejected}}var Yx=function(t){return[].concat.apply([],t)};function _4(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function U4(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var Jx=js;function Jw(t,e){if(t===e||!(Jx(t)&&Jx(e)||Array.isArray(t)&&Array.isArray(e)))return e;for(var r=Object.keys(e),n=Object.keys(t),a=r.length===n.length,o=Array.isArray(e)?[]:{},s=0,i=r;s<i.length;s++){var l=i[s];o[l]=Jw(t[l],e[l]),a&&(a=t[l]===o[l])}return a?t:o}var Xx=function(){function t(e,r){r===void 0&&(r=void 0),this.value=e,this.meta=r}return t}(),Zv=dr("__rtkq/focused"),Xw=dr("__rtkq/unfocused"),eg=dr("__rtkq/online"),Zw=dr("__rtkq/offline"),En;(function(t){t.query="query",t.mutation="mutation"})(En||(En={}));function eb(t){return t.type===En.query}function B4(t){return t.type===En.mutation}function tg(t,e,r,n,a,o){return M4(t)?t(e,r,n,a).map(Mm).map(o):Array.isArray(t)?t.map(Mm).map(o):[]}function M4(t){return typeof t=="function"}function Mm(t){return typeof t=="string"?{type:t}:t}function f0(t){return t!=null}var Ml=Symbol("forceQueryFn"),Fm=function(t){return typeof t[Ml]=="function"};function F4(t){var e=t.serializeQueryArgs,r=t.queryThunk,n=t.mutationThunk,a=t.api,o=t.context,s=new Map,i=new Map,l=a.internalActions,c=l.unsubscribeQueryResult,u=l.removeMutationResult,d=l.updateSubscriptionOptions;return{buildInitiateQuery:m,buildInitiateMutation:C,getRunningQueryThunk:f,getRunningMutationThunk:y,getRunningQueriesThunk:v,getRunningMutationsThunk:g,getRunningOperationPromises:h,removalWarning:p};function p(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
104
|
+
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
105
|
+
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var x=function(S){return Array.from(S.values()).flatMap(function(P){return P?Object.values(P):[]})};return Vd(Vd([],x(s)),x(i)).filter(f0)}function f(x,S){return function(P){var A,V=o.endpointDefinitions[x],U=e({queryArgs:S,endpointDefinition:V,endpointName:x});return(A=s.get(P))==null?void 0:A[U]}}function y(x,S){return function(P){var A;return(A=i.get(P))==null?void 0:A[S]}}function v(){return function(x){return Object.values(s.get(x)||{}).filter(f0)}}function g(){return function(x){return Object.values(i.get(x)||{}).filter(f0)}}function m(x,S){var P=function(A,V){var U=V===void 0?{}:V,O=U.subscribe,I=O===void 0?!0:O,L=U.forceRefetch,N=U.subscriptionOptions,G=Ml,H=U[G];return function($,X){var F,Y,Q=e({queryArgs:A,endpointDefinition:S,endpointName:x}),M=r((F={type:"query",subscribe:I,forceRefetch:L,subscriptionOptions:N,endpointName:x,originalArgs:A,queryCacheKey:Q},F[Ml]=H,F)),z=a.endpoints[x].select(A),W=$(M),q=z(X()),ae=W.requestId,oe=W.abort,pe=q.requestId!==ae,ue=(Y=s.get($))==null?void 0:Y[Q],He=function(){return z(X())},Se=Object.assign(H?W.then(He):pe&&!ue?Promise.resolve(q):Promise.all([ue,W]).then(He),{arg:A,requestId:ae,subscriptionOptions:N,queryCacheKey:Q,abort:oe,unwrap:function(){return Yw(this,null,function(){var Ne;return Ww(this,function(Oe){switch(Oe.label){case 0:return[4,Se];case 1:if(Ne=Oe.sent(),Ne.isError)throw Ne.error;return[2,Ne.data]}})})},refetch:function(){return $(P(A,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){I&&$(c({queryCacheKey:Q,requestId:ae}))},updateSubscriptionOptions:function(Ne){Se.subscriptionOptions=Ne,$(d({endpointName:x,requestId:ae,queryCacheKey:Q,options:Ne}))}});if(!ue&&!pe&&!H){var Ae=s.get($)||{};Ae[Q]=Se,s.set($,Ae),Se.then(function(){delete Ae[Q],Object.keys(Ae).length||s.delete($)})}return Se}};return P}function C(x){return function(S,P){var A=P===void 0?{}:P,V=A.track,U=V===void 0?!0:V,O=A.fixedCacheKey;return function(I,L){var N=n({type:"mutation",endpointName:x,originalArgs:S,track:U,fixedCacheKey:O}),G=I(N),H=G.requestId,$=G.abort,X=G.unwrap,F=G.unwrap().then(function(z){return{data:z}}).catch(function(z){return{error:z}}),Y=function(){I(u({requestId:H,fixedCacheKey:O}))},Q=Object.assign(F,{arg:G.arg,requestId:H,abort:$,unwrap:X,unsubscribe:Y,reset:Y}),M=i.get(I)||{};return i.set(I,M),M[H]=Q,Q.then(function(){delete M[H],Object.keys(M).length||i.delete(I)}),O&&(M[O]=Q,Q.then(function(){M[O]===Q&&(delete M[O],Object.keys(M).length||i.delete(I))})),Q}}}}function Zx(t){return t}function L4(t){var e=this,r=t.reducerPath,n=t.baseQuery,a=t.context.endpointDefinitions,o=t.serializeQueryArgs,s=t.api,i=t.assertTagType,l=function(x,S,P,A){return function(V,U){var O=a[x],I=o({queryArgs:S,endpointDefinition:O,endpointName:x});if(V(s.internalActions.queryResultPatched({queryCacheKey:I,patches:P})),!!A){var L=s.endpoints[x].select(S)(U()),N=tg(O.providesTags,L.data,void 0,S,{},i);V(s.internalActions.updateProvidedBy({queryCacheKey:I,providedTags:N}))}}},c=function(x,S,P,A){return A===void 0&&(A=!0),function(V,U){var O,I,L=s.endpoints[x],N=L.select(S)(U()),G={patches:[],inversePatches:[],undo:function(){return V(s.util.patchQueryData(x,S,G.inversePatches,A))}};if(N.status===Je.uninitialized)return G;var H;if("data"in N)if(cn(N.data)){var $=ew(N.data,P),X=$[0],F=$[1],Y=$[2];(O=G.patches).push.apply(O,F),(I=G.inversePatches).push.apply(I,Y),H=X}else H=P(N.data),G.patches.push({op:"replace",path:[],value:H}),G.inversePatches.push({op:"replace",path:[],value:N.data});return V(s.util.patchQueryData(x,S,G.patches,A)),G}},u=function(x,S,P){return function(A){var V;return A(s.endpoints[x].initiate(S,(V={subscribe:!1,forceRefetch:!0},V[Ml]=function(){return{data:P}},V)))}},d=function(x,S){return Yw(e,[x,S],function(P,A){var V,U,O,I,L,N,G,H,$,X,F,Y,Q,M,z,W,q,ae,oe=A.signal,pe=A.abort,ue=A.rejectWithValue,He=A.fulfillWithValue,Se=A.dispatch,Ae=A.getState,Ne=A.extra;return Ww(this,function(Oe){switch(Oe.label){case 0:V=a[P.endpointName],Oe.label=1;case 1:return Oe.trys.push([1,8,,13]),U=Zx,O=void 0,I={signal:oe,abort:pe,dispatch:Se,getState:Ae,extra:Ne,endpoint:P.endpointName,type:P.type,forced:P.type==="query"?p(P,Ae()):void 0},L=P.type==="query"?P[Ml]:void 0,L?(O=L(),[3,6]):[3,2];case 2:return V.query?[4,n(V.query(P.originalArgs),I,V.extraOptions)]:[3,4];case 3:return O=Oe.sent(),V.transformResponse&&(U=V.transformResponse),[3,6];case 4:return[4,V.queryFn(P.originalArgs,I,V.extraOptions,function(xt){return n(xt,I,V.extraOptions)})];case 5:O=Oe.sent(),Oe.label=6;case 6:if(typeof process<"u",O.error)throw new Xx(O.error,O.meta);return F=He,[4,U(O.data,O.meta,P.originalArgs)];case 7:return[2,F.apply(void 0,[Oe.sent(),(q={fulfilledTimeStamp:Date.now(),baseQueryMeta:O.meta},q[ji]=!0,q)])];case 8:if(Y=Oe.sent(),Q=Y,!(Q instanceof Xx))return[3,12];M=Zx,V.query&&V.transformErrorResponse&&(M=V.transformErrorResponse),Oe.label=9;case 9:return Oe.trys.push([9,11,,12]),z=ue,[4,M(Q.value,Q.meta,P.originalArgs)];case 10:return[2,z.apply(void 0,[Oe.sent(),(ae={baseQueryMeta:Q.meta},ae[ji]=!0,ae)])];case 11:return W=Oe.sent(),Q=W,[3,12];case 12:throw typeof process<"u",console.error(Q),Q;case 13:return[2]}})})};function p(x,S){var P,A,V,U,O=(A=(P=S[r])==null?void 0:P.queries)==null?void 0:A[x.queryCacheKey],I=(V=S[r])==null?void 0:V.config.refetchOnMountOrArgChange,L=O==null?void 0:O.fulfilledTimeStamp,N=(U=x.forceRefetch)!=null?U:x.subscribe&&I;return N?N===!0||(Number(new Date)-Number(L))/1e3>=N:!1}var h=$s(r+"/executeQuery",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ji]=!0,x},condition:function(x,S){var P=S.getState,A,V,U,O=P(),I=(V=(A=O[r])==null?void 0:A.queries)==null?void 0:V[x.queryCacheKey],L=I==null?void 0:I.fulfilledTimeStamp,N=x.originalArgs,G=I==null?void 0:I.originalArgs,H=a[x.endpointName];return Fm(x)?!0:(I==null?void 0:I.status)==="pending"?!1:p(x,O)||eb(H)&&((U=H==null?void 0:H.forceRefetch)!=null&&U.call(H,{currentArg:N,previousArg:G,endpointState:I,state:O}))?!0:!L},dispatchConditionRejection:!0}),f=$s(r+"/executeMutation",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[ji]=!0,x}}),y=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,P){return function(A,V){var U=y(P)&&P.force,O=v(P)&&P.ifOlderThan,I=function(H){return H===void 0&&(H=!0),s.endpoints[x].initiate(S,{forceRefetch:H})},L=s.endpoints[x].select(S)(V());if(U)A(I());else if(O){var N=L==null?void 0:L.fulfilledTimeStamp;if(!N){A(I());return}var G=(Number(new Date)-Number(new Date(N)))/1e3>=O;G&&A(I())}else A(I(!1))}};function m(x){return function(S){var P,A;return((A=(P=S==null?void 0:S.meta)==null?void 0:P.arg)==null?void 0:A.endpointName)===x}}function C(x,S){return{matchPending:sl(Dv(x),m(S)),matchFulfilled:sl(Fo(x),m(S)),matchRejected:sl(Bl(x),m(S))}}return{queryThunk:h,mutationThunk:f,prefetch:g,updateQueryData:c,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:C}}function tb(t,e,r,n){return tg(r[t.meta.arg.endpointName][e],Fo(t)?t.payload:void 0,jp(t)?t.payload:void 0,t.meta.arg.originalArgs,"baseQueryMeta"in t.meta?t.meta.baseQueryMeta:void 0,n)}function Nc(t,e,r){var n=t[e];n&&r(n)}function Fl(t){var e;return(e="arg"in t?t.arg.fixedCacheKey:t.fixedCacheKey)!=null?e:t.requestId}function eS(t,e,r){var n=t[Fl(e)];n&&r(n)}var ki={};function N4(t){var e=t.reducerPath,r=t.queryThunk,n=t.mutationThunk,a=t.context,o=a.endpointDefinitions,s=a.apiUid,i=a.extractRehydrationInfo,l=a.hasRehydrationInfo,c=t.assertTagType,u=t.config,d=dr(e+"/resetApiState"),p=en({name:e+"/queries",initialState:ki,reducers:{removeQueryResult:{reducer:function(S,P){var A=P.payload.queryCacheKey;delete S[A]},prepare:Ii()},queryResultPatched:{reducer:function(S,P){var A=P.payload,V=A.queryCacheKey,U=A.patches;Nc(S,V,function(O){O.data=dx(O.data,U.concat())})},prepare:Ii()}},extraReducers:function(S){S.addCase(r.pending,function(P,A){var V=A.meta,U=A.meta.arg,O,I,L=Fm(U);(U.subscribe||L)&&((I=P[O=U.queryCacheKey])!=null||(P[O]={status:Je.uninitialized,endpointName:U.endpointName})),Nc(P,U.queryCacheKey,function(N){N.status=Je.pending,N.requestId=L&&N.requestId?N.requestId:V.requestId,U.originalArgs!==void 0&&(N.originalArgs=U.originalArgs),N.startedTimeStamp=V.startedTimeStamp})}).addCase(r.fulfilled,function(P,A){var V=A.meta,U=A.payload;Nc(P,V.arg.queryCacheKey,function(O){var I;if(!(O.requestId!==V.requestId&&!Fm(V.arg))){var L=o[V.arg.endpointName].merge;if(O.status=Je.fulfilled,L)if(O.data!==void 0){var N=V.fulfilledTimeStamp,G=V.arg,H=V.baseQueryMeta,$=V.requestId,X=Xl(O.data,function(F){return L(F,U,{arg:G.originalArgs,baseQueryMeta:H,fulfilledTimeStamp:N,requestId:$})});O.data=X}else O.data=U;else O.data=(I=o[V.arg.endpointName].structuralSharing)==null||I?Jw(ln(O.data)?_U(O.data):O.data,U):U;delete O.error,O.fulfilledTimeStamp=V.fulfilledTimeStamp}})}).addCase(r.rejected,function(P,A){var V=A.meta,U=V.condition,O=V.arg,I=V.requestId,L=A.error,N=A.payload;Nc(P,O.queryCacheKey,function(G){if(!U){if(G.requestId!==I)return;G.status=Je.rejected,G.error=N??L}})}).addMatcher(l,function(P,A){for(var V=i(A).queries,U=0,O=Object.entries(V);U<O.length;U++){var I=O[U],L=I[0],N=I[1];((N==null?void 0:N.status)===Je.fulfilled||(N==null?void 0:N.status)===Je.rejected)&&(P[L]=N)}})}}),h=en({name:e+"/mutations",initialState:ki,reducers:{removeMutationResult:{reducer:function(S,P){var A=P.payload,V=Fl(A);V in S&&delete S[V]},prepare:Ii()}},extraReducers:function(S){S.addCase(n.pending,function(P,A){var V=A.meta,U=A.meta,O=U.requestId,I=U.arg,L=U.startedTimeStamp;I.track&&(P[Fl(V)]={requestId:O,status:Je.pending,endpointName:I.endpointName,startedTimeStamp:L})}).addCase(n.fulfilled,function(P,A){var V=A.payload,U=A.meta;U.arg.track&&eS(P,U,function(O){O.requestId===U.requestId&&(O.status=Je.fulfilled,O.data=V,O.fulfilledTimeStamp=U.fulfilledTimeStamp)})}).addCase(n.rejected,function(P,A){var V=A.payload,U=A.error,O=A.meta;O.arg.track&&eS(P,O,function(I){I.requestId===O.requestId&&(I.status=Je.rejected,I.error=V??U)})}).addMatcher(l,function(P,A){for(var V=i(A).mutations,U=0,O=Object.entries(V);U<O.length;U++){var I=O[U],L=I[0],N=I[1];((N==null?void 0:N.status)===Je.fulfilled||(N==null?void 0:N.status)===Je.rejected)&&L!==(N==null?void 0:N.requestId)&&(P[L]=N)}})}}),f=en({name:e+"/invalidation",initialState:ki,reducers:{updateProvidedBy:{reducer:function(S,P){for(var A,V,U,O,I=P.payload,L=I.queryCacheKey,N=I.providedTags,G=0,H=Object.values(S);G<H.length;G++)for(var $=H[G],X=0,F=Object.values($);X<F.length;X++){var Y=F[X],Q=Y.indexOf(L);Q!==-1&&Y.splice(Q,1)}for(var M=0,z=N;M<z.length;M++){var W=z[M],q=W.type,ae=W.id,oe=(O=(V=(A=S[q])!=null?A:S[q]={})[U=ae||"__internal_without_id"])!=null?O:V[U]=[],pe=oe.includes(L);pe||oe.push(L)}},prepare:Ii()}},extraReducers:function(S){S.addCase(p.actions.removeQueryResult,function(P,A){for(var V=A.payload.queryCacheKey,U=0,O=Object.values(P);U<O.length;U++)for(var I=O[U],L=0,N=Object.values(I);L<N.length;L++){var G=N[L],H=G.indexOf(V);H!==-1&&G.splice(H,1)}}).addMatcher(l,function(P,A){for(var V,U,O,I,L=i(A).provided,N=0,G=Object.entries(L);N<G.length;N++)for(var H=G[N],$=H[0],X=H[1],F=0,Y=Object.entries(X);F<Y.length;F++)for(var Q=Y[F],M=Q[0],z=Q[1],W=(I=(U=(V=P[$])!=null?V:P[$]={})[O=M||"__internal_without_id"])!=null?I:U[O]=[],q=0,ae=z;q<ae.length;q++){var oe=ae[q],pe=W.includes(oe);pe||W.push(oe)}}).addMatcher(ii(Fo(r),jp(r)),function(P,A){var V=tb(A,"providesTags",o,c),U=A.meta.arg.queryCacheKey;f.caseReducers.updateProvidedBy(P,f.actions.updateProvidedBy({queryCacheKey:U,providedTags:V}))})}}),y=en({name:e+"/subscriptions",initialState:ki,reducers:{updateSubscriptionOptions:function(S,P){},unsubscribeQueryResult:function(S,P){},internal_probeSubscription:function(S,P){}}}),v=en({name:e+"/internalSubscriptions",initialState:ki,reducers:{subscriptionsUpdated:{reducer:function(S,P){return dx(S,P.payload)},prepare:Ii()}}}),g=en({name:e+"/config",initialState:vt({online:_4(),focused:U4(),middlewareRegistered:!1},u),reducers:{middlewareRegistered:function(S,P){var A=P.payload;S.middlewareRegistered=S.middlewareRegistered==="conflict"||s!==A?"conflict":!0}},extraReducers:function(S){S.addCase(eg,function(P){P.online=!0}).addCase(Zw,function(P){P.online=!1}).addCase(Zv,function(P){P.focused=!0}).addCase(Xw,function(P){P.focused=!1}).addMatcher(l,function(P){return vt({},P)})}}),m=Gp({queries:p.reducer,mutations:h.reducer,provided:f.reducer,subscriptions:v.reducer,config:g.reducer}),C=function(S,P){return m(d.match(P)?void 0:S,P)},x=Kn(vt(vt(vt(vt(vt(vt({},g.actions),p.actions),y.actions),v.actions),h.actions),f.actions),{unsubscribeMutationResult:h.actions.removeMutationResult,resetApiState:d});return{reducer:C,actions:x}}var xo=Symbol.for("RTKQ/skipToken"),rb={status:Je.uninitialized},tS=Xl(rb,function(){}),rS=Xl(rb,function(){});function G4(t){var e=t.serializeQueryArgs,r=t.reducerPath,n=function(u){return tS},a=function(u){return rS};return{buildQuerySelector:i,buildMutationSelector:l,selectInvalidatedBy:c};function o(u){return vt(vt({},u),k4(u.status))}function s(u){var d=u[r];return d}function i(u,d){return function(p){var h=e({queryArgs:p,endpointDefinition:d,endpointName:u}),f=function(v){var g,m,C;return(C=(m=(g=s(v))==null?void 0:g.queries)==null?void 0:m[h])!=null?C:tS},y=p===xo?n:f;return ol(y,o)}}function l(){return function(u){var d,p;typeof u=="object"?p=(d=Fl(u))!=null?d:xo:p=u;var h=function(y){var v,g,m;return(m=(g=(v=s(y))==null?void 0:v.mutations)==null?void 0:g[p])!=null?m:rS},f=p===xo?a:h;return ol(f,o)}}function c(u,d){for(var p,h=u[r],f=new Set,y=0,v=d.map(Mm);y<v.length;y++){var g=v[y],m=h.provided[g.type];if(m)for(var C=(p=g.id!==void 0?m[g.id]:Yx(Object.values(m)))!=null?p:[],x=0,S=C;x<S.length;x++){var P=S[x];f.add(P)}}return Yx(Array.from(f.values()).map(function(A){var V=h.queries[A];return V?[{queryCacheKey:A,endpointName:V.endpointName,originalArgs:V.originalArgs}]:[]}))}}var Gc=WeakMap?new WeakMap:void 0,nS=function(t){var e=t.endpointName,r=t.queryArgs,n="",a=Gc==null?void 0:Gc.get(r);if(typeof a=="string")n=a;else{var o=JSON.stringify(r,function(s,i){return js(i)?Object.keys(i).sort().reduce(function(l,c){return l[c]=i[c],l},{}):i});js(r)&&(Gc==null||Gc.set(r,o)),n=o}return e+"("+n+")"};function H4(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){var a=wm(function(u){var d,p;return(p=n.extractRehydrationInfo)==null?void 0:p.call(n,u,{reducerPath:(d=n.reducerPath)!=null?d:"api"})}),o=Kn(vt({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},n),{extractRehydrationInfo:a,serializeQueryArgs:function(u){var d=nS;if("serializeQueryArgs"in u.endpointDefinition){var p=u.endpointDefinition.serializeQueryArgs;d=function(h){var f=p(h);return typeof f=="string"?f:nS(Kn(vt({},h),{queryArgs:f}))}}else n.serializeQueryArgs&&(d=n.serializeQueryArgs);return d(u)},tagTypes:Vd([],n.tagTypes||[])}),s={endpointDefinitions:{},batch:function(u){u()},apiUid:iw(),extractRehydrationInfo:a,hasRehydrationInfo:wm(function(u){return a(u)!=null})},i={injectEndpoints:c,enhanceEndpoints:function(u){var d=u.addTagTypes,p=u.endpoints;if(d)for(var h=0,f=d;h<f.length;h++){var y=f[h];o.tagTypes.includes(y)||o.tagTypes.push(y)}if(p)for(var v=0,g=Object.entries(p);v<g.length;v++){var m=g[v],C=m[0],x=m[1];typeof x=="function"?x(s.endpointDefinitions[C]):Object.assign(s.endpointDefinitions[C]||{},x)}return i}},l=t.map(function(u){return u.init(i,o,s)});function c(u){for(var d=u.endpoints({query:function(x){return Kn(vt({},x),{type:En.query})},mutation:function(x){return Kn(vt({},x),{type:En.mutation})}}),p=0,h=Object.entries(d);p<h.length;p++){var f=h[p],y=f[0],v=f[1];if(!u.overrideExisting&&y in s.endpointDefinitions){typeof process<"u";continue}s.endpointDefinitions[y]=v;for(var g=0,m=l;g<m.length;g++){var C=m[g];C.injectEndpoint(y,v)}}return i}return i.injectEndpoints({endpoints:n.endpoints})}}function j4(t){for(var e in t)return!1;return!0}var $4=2147483647/1e3-1,z4=function(t){var e=t.reducerPath,r=t.api,n=t.context,a=t.internalState,o=r.internalActions,s=o.removeQueryResult,i=o.unsubscribeQueryResult;function l(p){var h=a.currentSubscriptions[p];return!!h&&!j4(h)}var c={},u=function(p,h,f){var y;if(i.match(p)){var v=h.getState()[e],g=p.payload.queryCacheKey;d(g,(y=v.queries[g])==null?void 0:y.endpointName,h,v.config)}if(r.util.resetApiState.match(p))for(var m=0,C=Object.entries(c);m<C.length;m++){var x=C[m],S=x[0],P=x[1];P&&clearTimeout(P),delete c[S]}if(n.hasRehydrationInfo(p))for(var v=h.getState()[e],A=n.extractRehydrationInfo(p).queries,V=0,U=Object.entries(A);V<U.length;V++){var O=U[V],g=O[0],I=O[1];d(g,I==null?void 0:I.endpointName,h,v.config)}};function d(p,h,f,y){var v,g=n.endpointDefinitions[h],m=(v=g==null?void 0:g.keepUnusedDataFor)!=null?v:y.keepUnusedDataFor;if(m!==1/0){var C=Math.max(0,Math.min(m,$4));if(!l(p)){var x=c[p];x&&clearTimeout(x),c[p]=setTimeout(function(){l(p)||f.dispatch(s({queryCacheKey:p})),delete c[p]},C*1e3)}}}return u},q4=function(t){var e=t.reducerPath,r=t.context,n=t.context.endpointDefinitions,a=t.mutationThunk,o=t.api,s=t.assertTagType,i=t.refetchQuery,l=o.internalActions.removeQueryResult,c=ii(Fo(a),jp(a)),u=function(p,h){c(p)&&d(tb(p,"invalidatesTags",n,s),h),o.util.invalidateTags.match(p)&&d(tg(p.payload,void 0,void 0,void 0,void 0,s),h)};function d(p,h){var f=h.getState(),y=f[e],v=o.util.selectInvalidatedBy(f,p);r.batch(function(){for(var g,m=Array.from(v.values()),C=0,x=m;C<x.length;C++){var S=x[C].queryCacheKey,P=y.queries[S],A=(g=y.subscriptions[S])!=null?g:{};P&&(Object.keys(A).length===0?h.dispatch(l({queryCacheKey:S})):P.status!==Je.uninitialized&&h.dispatch(i(P,S)))}})}return u},Q4=function(t){var e=t.reducerPath,r=t.queryThunk,n=t.api,a=t.refetchQuery,o=t.internalState,s={},i=function(h,f){(n.internalActions.updateSubscriptionOptions.match(h)||n.internalActions.unsubscribeQueryResult.match(h))&&c(h.payload,f),(r.pending.match(h)||r.rejected.match(h)&&h.meta.condition)&&c(h.meta.arg,f),(r.fulfilled.match(h)||r.rejected.match(h)&&!h.meta.condition)&&l(h.meta.arg,f),n.util.resetApiState.match(h)&&d()};function l(h,f){var y=h.queryCacheKey,v=f.getState()[e],g=v.queries[y],m=o.currentSubscriptions[y];if(!(!g||g.status===Je.uninitialized)){var C=p(m);if(Number.isFinite(C)){var x=s[y];x!=null&&x.timeout&&(clearTimeout(x.timeout),x.timeout=void 0);var S=Date.now()+C,P=s[y]={nextPollTimestamp:S,pollingInterval:C,timeout:setTimeout(function(){P.timeout=void 0,f.dispatch(a(g,y))},C)}}}}function c(h,f){var y=h.queryCacheKey,v=f.getState()[e],g=v.queries[y],m=o.currentSubscriptions[y];if(!(!g||g.status===Je.uninitialized)){var C=p(m);if(!Number.isFinite(C)){u(y);return}var x=s[y],S=Date.now()+C;(!x||S<x.nextPollTimestamp)&&l({queryCacheKey:y},f)}}function u(h){var f=s[h];f!=null&&f.timeout&&clearTimeout(f.timeout),delete s[h]}function d(){for(var h=0,f=Object.keys(s);h<f.length;h++){var y=f[h];u(y)}}function p(h){h===void 0&&(h={});var f=Number.POSITIVE_INFINITY;for(var y in h)h[y].pollingInterval&&(f=Math.min(h[y].pollingInterval,f));return f}return i},K4=function(t){var e=t.reducerPath,r=t.context,n=t.api,a=t.refetchQuery,o=t.internalState,s=n.internalActions.removeQueryResult,i=function(c,u){Zv.match(c)&&l(u,"refetchOnFocus"),eg.match(c)&&l(u,"refetchOnReconnect")};function l(c,u){var d=c.getState()[e],p=d.queries,h=o.currentSubscriptions;r.batch(function(){for(var f=0,y=Object.keys(h);f<y.length;f++){var v=y[f],g=p[v],m=h[v];if(!(!m||!g)){var C=Object.values(m).some(function(x){return x[u]===!0})||Object.values(m).every(function(x){return x[u]===void 0})&&d.config[u];C&&(Object.keys(m).length===0?c.dispatch(s({queryCacheKey:v})):g.status!==Je.uninitialized&&c.dispatch(a(g,v)))}}})}return i},aS=new Error("Promise never resolved before cacheEntryRemoved."),W4=function(t){var e=t.api,r=t.reducerPath,n=t.context,a=t.queryThunk,o=t.mutationThunk;t.internalState;var s=Tm(a),i=Tm(o),l=Fo(a,o),c={},u=function(h,f,y){var v=d(h);if(a.pending.match(h)){var g=y[r].queries[v],m=f.getState()[r].queries[v];!g&&m&&p(h.meta.arg.endpointName,h.meta.arg.originalArgs,v,f,h.meta.requestId)}else if(o.pending.match(h)){var m=f.getState()[r].mutations[v];m&&p(h.meta.arg.endpointName,h.meta.arg.originalArgs,v,f,h.meta.requestId)}else if(l(h)){var C=c[v];C!=null&&C.valueResolved&&(C.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete C.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){var C=c[v];C&&(delete c[v],C.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(var x=0,S=Object.entries(c);x<S.length;x++){var P=S[x],A=P[0],C=P[1];delete c[A],C.cacheEntryRemoved()}};function d(h){return s(h)?h.meta.arg.queryCacheKey:i(h)?h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?Fl(h.payload):""}function p(h,f,y,v,g){var m=n.endpointDefinitions[h],C=m==null?void 0:m.onCacheEntryAdded;if(C){var x={},S=new Promise(function(I){x.cacheEntryRemoved=I}),P=Promise.race([new Promise(function(I){x.valueResolved=I}),S.then(function(){throw aS})]);P.catch(function(){}),c[y]=x;var A=e.endpoints[h].select(m.type===En.query?f:y),V=v.dispatch(function(I,L,N){return N}),U=Kn(vt({},v),{getCacheEntry:function(){return A(v.getState())},requestId:g,extra:V,updateCachedData:m.type===En.query?function(I){return v.dispatch(e.util.updateQueryData(h,f,I))}:void 0,cacheDataLoaded:P,cacheEntryRemoved:S}),O=C(f,U);Promise.resolve(O).catch(function(I){if(I!==aS)throw I})}}return u},Y4=function(t){var e=t.api,r=t.context,n=t.queryThunk,a=t.mutationThunk,o=Dv(n,a),s=Bl(n,a),i=Fo(n,a),l={},c=function(u,d){var p,h,f;if(o(u)){var y=u.meta,v=y.requestId,g=y.arg,m=g.endpointName,C=g.originalArgs,x=r.endpointDefinitions[m],S=x==null?void 0:x.onQueryStarted;if(S){var P={},A=new Promise(function(H,$){P.resolve=H,P.reject=$});A.catch(function(){}),l[v]=P;var V=e.endpoints[m].select(x.type===En.query?C:v),U=d.dispatch(function(H,$,X){return X}),O=Kn(vt({},d),{getCacheEntry:function(){return V(d.getState())},requestId:v,extra:U,updateCachedData:x.type===En.query?function(H){return d.dispatch(e.util.updateQueryData(m,C,H))}:void 0,queryFulfilled:A});S(C,O)}}else if(i(u)){var I=u.meta,v=I.requestId,L=I.baseQueryMeta;(p=l[v])==null||p.resolve({data:u.payload,meta:L}),delete l[v]}else if(s(u)){var N=u.meta,v=N.requestId,G=N.rejectedWithValue,L=N.baseQueryMeta;(f=l[v])==null||f.reject({error:(h=u.payload)!=null?h:u.error,isUnhandledError:!G,meta:L}),delete l[v]}};return c},J4=function(t){var e=t.api,r=t.context.apiUid,n=t.reducerPath;return function(a,o){var s,i;e.util.resetApiState.match(a)&&o.dispatch(e.internalActions.middlewareRegistered(r)),typeof process<"u"}},oS,X4=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(oS||(oS=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Z4=function(t){var e=t.api,r=t.queryThunk,n=t.internalState,a=e.reducerPath+"/subscriptions",o=null,s=!1,i=e.internalActions,l=i.updateSubscriptionOptions,c=i.unsubscribeQueryResult,u=function(d,p){var h,f,y,v,g,m,C,x,S;if(l.match(p)){var P=p.payload,A=P.queryCacheKey,V=P.requestId,U=P.options;return(h=d==null?void 0:d[A])!=null&&h[V]&&(d[A][V]=U),!0}if(c.match(p)){var O=p.payload,A=O.queryCacheKey,V=O.requestId;return d[A]&&delete d[A][V],!0}if(e.internalActions.removeQueryResult.match(p))return delete d[p.payload.queryCacheKey],!0;if(r.pending.match(p)){var I=p.meta,L=I.arg,V=I.requestId;if(L.subscribe){var N=(y=d[f=L.queryCacheKey])!=null?y:d[f]={};return N[V]=(g=(v=L.subscriptionOptions)!=null?v:N[V])!=null?g:{},!0}}if(r.rejected.match(p)){var G=p.meta,H=G.condition,L=G.arg,V=G.requestId;if(H&&L.subscribe){var N=(C=d[m=L.queryCacheKey])!=null?C:d[m]={};return N[V]=(S=(x=L.subscriptionOptions)!=null?x:N[V])!=null?S:{},!0}}return!1};return function(d,p){var h,f;if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(d))return o=n.currentSubscriptions={},[!0,!1];if(e.internalActions.internal_probeSubscription.match(d)){var y=d.payload,v=y.queryCacheKey,g=y.requestId,m=!!((h=n.currentSubscriptions[v])!=null&&h[g]);return[!1,m]}var C=u(n.currentSubscriptions,d);if(C){s||(X4(function(){var A=JSON.parse(JSON.stringify(n.currentSubscriptions)),V=ew(o,function(){return A}),U=V[1];p.next(e.internalActions.subscriptionsUpdated(U)),o=A,s=!1}),s=!0);var x=!!((f=d.type)!=null&&f.startsWith(a)),S=r.rejected.match(d)&&d.meta.condition&&!!d.meta.arg.subscribe,P=!x&&!S;return[P,!1]}return[!0,!1]}};function eN(t){var e=t.reducerPath,r=t.queryThunk,n=t.api,a=t.context,o=a.apiUid,s={invalidateTags:dr(e+"/invalidateTags")},i=function(d){return!!d&&typeof d.type=="string"&&d.type.startsWith(e+"/")},l=[J4,z4,q4,Q4,W4,Y4],c=function(d){var p=!1,h={currentSubscriptions:{}},f=Kn(vt({},t),{internalState:h,refetchQuery:u}),y=l.map(function(m){return m(f)}),v=Z4(f),g=K4(f);return function(m){return function(C){p||(p=!0,d.dispatch(n.internalActions.middlewareRegistered(o)));var x=Kn(vt({},d),{next:m}),S=d.getState(),P=v(C,x,S),A=P[0],V=P[1],U;if(A?U=m(C):U=V,d.getState()[e]&&(g(C,x,S),i(C)||a.hasRehydrationInfo(C)))for(var O=0,I=y;O<I.length;O++){var L=I[O];L(C,x,S)}return U}}};return{middleware:c,actions:s};function u(d,p,h){return h===void 0&&(h={}),r(vt({type:"query",endpointName:d.endpointName,originalArgs:d.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:p},h))}}function va(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];Object.assign.apply(Object,Vd([t],e))}var sS=Symbol(),tN=function(){return{name:sS,init:function(t,e,r){var n=e.baseQuery,a=e.tagTypes,o=e.reducerPath,s=e.serializeQueryArgs,i=e.keepUnusedDataFor,l=e.refetchOnMountOrArgChange,c=e.refetchOnFocus,u=e.refetchOnReconnect;LU();var d=function(W){return typeof process<"u",W};Object.assign(t,{reducerPath:o,endpoints:{},internalActions:{onOnline:eg,onOffline:Zw,onFocus:Zv,onFocusLost:Xw},util:{}});var p=L4({baseQuery:n,reducerPath:o,context:r,api:t,serializeQueryArgs:s,assertTagType:d}),h=p.queryThunk,f=p.mutationThunk,y=p.patchQueryData,v=p.updateQueryData,g=p.upsertQueryData,m=p.prefetch,C=p.buildMatchThunkActions,x=N4({context:r,queryThunk:h,mutationThunk:f,reducerPath:o,assertTagType:d,config:{refetchOnFocus:c,refetchOnReconnect:u,refetchOnMountOrArgChange:l,keepUnusedDataFor:i,reducerPath:o}}),S=x.reducer,P=x.actions;va(t.util,{patchQueryData:y,updateQueryData:v,upsertQueryData:g,prefetch:m,resetApiState:P.resetApiState}),va(t.internalActions,P);var A=eN({reducerPath:o,context:r,queryThunk:h,mutationThunk:f,api:t,assertTagType:d}),V=A.middleware,U=A.actions;va(t.util,U),va(t,{reducer:S,middleware:V});var O=G4({serializeQueryArgs:s,reducerPath:o}),I=O.buildQuerySelector,L=O.buildMutationSelector,N=O.selectInvalidatedBy;va(t.util,{selectInvalidatedBy:N});var G=F4({queryThunk:h,mutationThunk:f,api:t,serializeQueryArgs:s,context:r}),H=G.buildInitiateQuery,$=G.buildInitiateMutation,X=G.getRunningMutationThunk,F=G.getRunningMutationsThunk,Y=G.getRunningQueriesThunk,Q=G.getRunningQueryThunk,M=G.getRunningOperationPromises,z=G.removalWarning;return va(t.util,{getRunningOperationPromises:M,getRunningOperationPromise:z,getRunningMutationThunk:X,getRunningMutationsThunk:F,getRunningQueryThunk:Q,getRunningQueriesThunk:Y}),{name:sS,injectEndpoint:function(W,q){var ae,oe,pe=t;(oe=(ae=pe.endpoints)[W])!=null||(ae[W]={}),eb(q)?va(pe.endpoints[W],{name:W,select:I(W,q),initiate:H(W,q)},C(h,W)):B4(q)&&va(pe.endpoints[W],{name:W,select:L(),initiate:$(W)},C(f,W))}}}}},rN=globalThis&&globalThis.__spreadArray||function(t,e){for(var r=0,n=e.length,a=t.length;r<n;r++,a++)t[a]=e[r];return t},nN=Object.defineProperty,aN=Object.defineProperties,oN=Object.getOwnPropertyDescriptors,iS=Object.getOwnPropertySymbols,sN=Object.prototype.hasOwnProperty,iN=Object.prototype.propertyIsEnumerable,lS=function(t,e,r){return e in t?nN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Hn=function(t,e){for(var r in e||(e={}))sN.call(e,r)&&lS(t,r,e[r]);if(iS)for(var n=0,a=iS(e);n<a.length;n++){var r=a[n];iN.call(e,r)&&lS(t,r,e[r])}return t},_u=function(t,e){return aN(t,oN(e))};function cS(t,e,r,n){var a=B.useMemo(function(){return{queryArgs:t,serialized:typeof t=="object"?e({queryArgs:t,endpointDefinition:r,endpointName:n}):t}},[t,e,r,n]),o=B.useRef(a);return B.useEffect(function(){o.current.serialized!==a.serialized&&(o.current=a)},[a]),o.current.serialized===a.serialized?o.current.queryArgs:t}var m0=Symbol();function y0(t){var e=B.useRef(t);return B.useEffect(function(){dd(e.current,t)||(e.current=t)},[t]),dd(e.current,t)?e.current:t}var Hc=WeakMap?new WeakMap:void 0,lN=function(t){var e=t.endpointName,r=t.queryArgs,n="",a=Hc==null?void 0:Hc.get(r);if(typeof a=="string")n=a;else{var o=JSON.stringify(r,function(s,i){return js(i)?Object.keys(i).sort().reduce(function(l,c){return l[c]=i[c],l},{}):i});js(r)&&(Hc==null||Hc.set(r,o)),n=o}return e+"("+n+")"},cN=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,uN=function(t){return t},dN=function(t){return t.isUninitialized?_u(Hn({},t),{isUninitialized:!1,isFetching:!0,isLoading:t.data===void 0,status:Je.pending}):t};function pN(t){var e=t.api,r=t.moduleOptions,n=r.batch,a=r.useDispatch,o=r.useSelector,s=r.useStore,i=r.unstable__sideEffectsInRender,l=t.serializeQueryArgs,c=t.context,u=i?function(y){return y()}:B.useEffect;return{buildQueryHooks:h,buildMutationHook:f,usePrefetch:p};function d(y,v,g){if(v!=null&&v.endpointName&&y.isUninitialized){var m=v.endpointName,C=c.endpointDefinitions[m];l({queryArgs:v.originalArgs,endpointDefinition:C,endpointName:m})===l({queryArgs:g,endpointDefinition:C,endpointName:m})&&(v=void 0)}var x=y.isSuccess?y.data:v==null?void 0:v.data;x===void 0&&(x=y.data);var S=x!==void 0,P=y.isLoading,A=!S&&P,V=y.isSuccess||P&&S;return _u(Hn({},y),{data:x,currentData:y.data,isFetching:P,isLoading:A,isSuccess:V})}function p(y,v){var g=a(),m=y0(v);return B.useCallback(function(C,x){return g(e.util.prefetch(y,C,Hn(Hn({},m),x)))},[y,g,m])}function h(y){var v=function(C,x){var S=x===void 0?{}:x,P=S.refetchOnReconnect,A=S.refetchOnFocus,V=S.refetchOnMountOrArgChange,U=S.skip,O=U===void 0?!1:U,I=S.pollingInterval,L=I===void 0?0:I,N=e.endpoints[y].initiate,G=a(),H=cS(O?xo:C,lN,c.endpointDefinitions[y],y),$=y0({refetchOnReconnect:P,refetchOnFocus:A,pollingInterval:L}),X=B.useRef(!1),F=B.useRef(),Y=F.current||{},Q=Y.queryCacheKey,M=Y.requestId,z=!1;if(Q&&M){var W=G(e.internalActions.internal_probeSubscription({queryCacheKey:Q,requestId:M}));z=!!W}var q=!z&&X.current;return u(function(){X.current=z}),u(function(){q&&(F.current=void 0)},[q]),u(function(){var ae,oe=F.current;if(typeof process<"u",H===xo){oe==null||oe.unsubscribe(),F.current=void 0;return}var pe=(ae=F.current)==null?void 0:ae.subscriptionOptions;if(!oe||oe.arg!==H){oe==null||oe.unsubscribe();var ue=G(N(H,{subscriptionOptions:$,forceRefetch:V}));F.current=ue}else $!==pe&&oe.updateSubscriptionOptions($)},[G,N,V,H,$,q]),B.useEffect(function(){return function(){var ae;(ae=F.current)==null||ae.unsubscribe(),F.current=void 0}},[]),B.useMemo(function(){return{refetch:function(){var ae;if(!F.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ae=F.current)==null?void 0:ae.refetch()}}},[])},g=function(C){var x=C===void 0?{}:C,S=x.refetchOnReconnect,P=x.refetchOnFocus,A=x.pollingInterval,V=A===void 0?0:A,U=e.endpoints[y].initiate,O=a(),I=B.useState(m0),L=I[0],N=I[1],G=B.useRef(),H=y0({refetchOnReconnect:S,refetchOnFocus:P,pollingInterval:V});u(function(){var F,Y,Q=(F=G.current)==null?void 0:F.subscriptionOptions;H!==Q&&((Y=G.current)==null||Y.updateSubscriptionOptions(H))},[H]);var $=B.useRef(H);u(function(){$.current=H},[H]);var X=B.useCallback(function(F,Y){Y===void 0&&(Y=!1);var Q;return n(function(){var M;(M=G.current)==null||M.unsubscribe(),G.current=Q=O(U(F,{subscriptionOptions:$.current,forceRefetch:!Y})),N(F)}),Q},[O,U]);return B.useEffect(function(){return function(){var F;(F=G==null?void 0:G.current)==null||F.unsubscribe()}},[]),B.useEffect(function(){L!==m0&&!G.current&&X(L,!0)},[L,X]),B.useMemo(function(){return[X,L]},[X,L])},m=function(C,x){var S=x===void 0?{}:x,P=S.skip,A=P===void 0?!1:P,V=S.selectFromResult,U=e.endpoints[y].select,O=cS(A?xo:C,l,c.endpointDefinitions[y],y),I=B.useRef(),L=B.useMemo(function(){return ol([U(O),function(X,F){return F},function(X){return O}],d)},[U,O]),N=B.useMemo(function(){return V?ol([L],V):L},[L,V]),G=o(function(X){return N(X,I.current)},dd),H=s(),$=L(H.getState(),I.current);return cN(function(){I.current=$},[$]),G};return{useQueryState:m,useQuerySubscription:v,useLazyQuerySubscription:g,useLazyQuery:function(C){var x=g(C),S=x[0],P=x[1],A=m(P,_u(Hn({},C),{skip:P===m0})),V=B.useMemo(function(){return{lastArg:P}},[P]);return B.useMemo(function(){return[S,A,V]},[S,A,V])},useQuery:function(C,x){var S=v(C,x),P=m(C,Hn({selectFromResult:C===xo||x!=null&&x.skip?void 0:dN},x)),A=P.data,V=P.status,U=P.isLoading,O=P.isSuccess,I=P.isError,L=P.error;return B.useDebugValue({data:A,status:V,isLoading:U,isSuccess:O,isError:I,error:L}),B.useMemo(function(){return Hn(Hn({},P),S)},[P,S])}}}function f(y){return function(v){var g=v===void 0?{}:v,m=g.selectFromResult,C=m===void 0?uN:m,x=g.fixedCacheKey,S=e.endpoints[y],P=S.select,A=S.initiate,V=a(),U=B.useState(),O=U[0],I=U[1];B.useEffect(function(){return function(){O!=null&&O.arg.fixedCacheKey||O==null||O.reset()}},[O]);var L=B.useCallback(function(oe){var pe=V(A(oe,{fixedCacheKey:x}));return I(pe),pe},[V,A,x]),N=(O||{}).requestId,G=B.useMemo(function(){return ol([P({fixedCacheKey:x,requestId:O==null?void 0:O.requestId})],C)},[P,O,C,x]),H=o(G,dd),$=x==null?O==null?void 0:O.arg.originalArgs:void 0,X=B.useCallback(function(){n(function(){O&&I(void 0),x&&V(e.internalActions.removeMutationResult({requestId:N,fixedCacheKey:x}))})},[V,x,O,N]),F=H.endpointName,Y=H.data,Q=H.status,M=H.isLoading,z=H.isSuccess,W=H.isError,q=H.error;B.useDebugValue({endpointName:F,data:Y,status:Q,isLoading:M,isSuccess:z,isError:W,error:q});var ae=B.useMemo(function(){return _u(Hn({},H),{originalArgs:$,reset:X})},[H,$,X]);return B.useMemo(function(){return[L,ae]},[L,ae])}}}var Id;(function(t){t.query="query",t.mutation="mutation"})(Id||(Id={}));function hN(t){return t.type===Id.query}function fN(t){return t.type===Id.mutation}function v0(t){return t.replace(t[0],t[0].toUpperCase())}function jc(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];Object.assign.apply(Object,rN([t],e))}var mN=Symbol(),yN=function(t){var e=t===void 0?{}:t,r=e.batch,n=r===void 0?mp.unstable_batchedUpdates:r,a=e.useDispatch,o=a===void 0?Pv:a,s=e.useSelector,i=s===void 0?DI:s,l=e.useStore,c=l===void 0?LI:l,u=e.unstable__sideEffectsInRender,d=u===void 0?!1:u;return{name:mN,init:function(p,h,f){var y=h.serializeQueryArgs,v=p,g=pN({api:p,moduleOptions:{batch:n,useDispatch:o,useSelector:i,useStore:c,unstable__sideEffectsInRender:d},serializeQueryArgs:y,context:f}),m=g.buildQueryHooks,C=g.buildMutationHook,x=g.usePrefetch;return jc(v,{usePrefetch:x}),jc(f,{batch:n}),{injectEndpoint:function(S,P){if(hN(P)){var A=m(S),V=A.useQuery,U=A.useLazyQuery,O=A.useLazyQuerySubscription,I=A.useQueryState,L=A.useQuerySubscription;jc(v.endpoints[S],{useQuery:V,useLazyQuery:U,useLazyQuerySubscription:O,useQueryState:I,useQuerySubscription:L}),p["use"+v0(S)+"Query"]=V,p["useLazy"+v0(S)+"Query"]=U}else if(fN(P)){var N=C(S);jc(v.endpoints[S],{useMutation:N}),p["use"+v0(S)+"Mutation"]=N}}}}}},vN=H4(tN(),yN());const gN=[401],rg=w.create({timeout:6e4,baseURL:Wt.apiPrefix});rg.interceptors.request.use(t=>{const e=localStorage.getItem(Hv);let n=il(e).auth.session.token;if(!n){const{auth:a}=ac.getState();n=a.session.token}return n&&(t.headers[jw]=`${Hw}${n}`,t.headers["ngrok-skip-browser-warning"]="69420"),t},t=>Promise.reject(t));rg.interceptors.response.use(t=>t,t=>{const{response:e}=t;return e&&gN.includes(e.status)&&ac.dispatch(zp()),Promise.reject(t)});const CN=()=>async t=>{var e,r;try{return rg(t)}catch(n){const a=n;return{error:{status:(e=a.response)==null?void 0:e.status,data:((r=a.response)==null?void 0:r.data)||a.message}}}},wd=vN({reducerPath:"rtkApi",baseQuery:CN(),endpoints:()=>({})}),xN={auth:pM,base:yM,locale:PM,theme:w4,[wd.reducerPath]:wd.reducer},SN=t=>(e,r)=>jB({...xN,...t})(e,r),nb=t=>e=>r=>{const n=e(r);if(["theme/setMode","theme/setDirection","theme/setNavMode","theme/setThemeColor","theme/setThemeColorLevel","theme/setLayout"].includes(r.type)){const{theme:o}=t.getState(),s={themeColor:o.themeColor,direction:o.direction,mode:o.mode,primaryColorLevel:o.primaryColorLevel,panelExpand:o.panelExpand,navMode:o.navMode,cardBordered:o.cardBordered,layout:o.layout,controlSize:o.controlSize};$w(s).then(()=>console.log("Theme config saved successfully")).catch(i=>console.error("Failed to save theme configuration:",i))}return n};wd.middleware;const PN={key:Hv,keyPrefix:"",storage:dw,whitelist:["auth","theme","locale"]},ng=mB({reducer:FB(PN,SN()),middleware:t=>t({immutableCheck:!1,serializableCheck:{ignoredActions:[Uv,$p,Bv,Mv,Fv,Lv]}}).concat(nb,wd.middleware),devTools:!1});ng.asyncReducers={};const AN=WB(ng),ac=ng,Xp=()=>Pv(),ia=DI;var ab=(t=>(t.XS="xs",t.SM="sm",t.MD="md",t.LG="lg",t))(ab||{});const Yq={xs:7,sm:9,md:11,lg:14},Jq={HORIZONTAL:"horizontal",VERTICAL:"vertical",INLINE:"inline"},Xq={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Zq={COMPLETE:"complete",PENDING:"pending",IN_PROGRESS:"in-progress",ERROR:"error"},ob={TOP_START:"top-start",TOP_CENTER:"top-center",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM_CENTER:"bottom-center",BOTTOM_END:"bottom-end",MIDDLE_START_TOP:"middle-start-top",MIDDLE_START_BOTTOM:"middle-start-bottom",MIDDLE_END_TOP:"middle-end-top",MIDDLE_END_BOTTOM:"middle-end-bottom"},eQ={DEFAULT:"default",HEADER:"header",DIVIDER:"divider",CUSTOM:"custom"},ON={themeColor:"indigo",direction:"ltr",mode:"light",locale:"en",primaryColorLevel:600,cardBordered:!1,controlSize:ab.MD,navMode:"light"},ag=B.createContext(ON),VN=ag.Provider;ag.Consumer;function IN(){return B.useContext(ag)}function wN(){const t=ia(s=>s.theme.mode),{MODE_DARK:e,MODE_LIGHT:r}=$i,n=t===e,a=Xp(),o=s=>{a(I4(s))};return B.useEffect(()=>{if(window===void 0)return;const s=window.document.documentElement;s.classList.remove(n?r:e),s.classList.add(n?e:r)},[n]),[n,o]}const bN=t=>{const e=ia(a=>a.theme),r=ia(a=>a.locale.currentLang);wN();const n={...he,...e,locale:r};return ie.jsx(VN,{value:n,children:t.children})},TN="modulepreload",EN=function(t){return"/"+t},uS={},Fr=function(e,r,n){if(!r||r.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(r.map(o=>{if(o=EN(o),o in uS)return;uS[o]=!0;const s=o.endsWith(".css"),i=s?'[rel="stylesheet"]':"";if(!!n)for(let u=a.length-1;u>=0;u--){const d=a[u];if(d.href===o&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${i}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":TN,s||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),s)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var sb={exports:{}};/*!
|
|
106
|
+
Copyright (c) 2018 Jed Watson.
|
|
107
|
+
Licensed under the MIT License (MIT), see
|
|
108
|
+
http://jedwatson.github.io/classnames
|
|
109
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var i=arguments[s];i&&(o=a(o,n(i)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var i in o)e.call(o,i)&&o[i]&&(s=a(s,i));return s}function a(o,s){return s?o?o+" "+s:o+s:o}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(sb);var RN=sb.exports;const Zn=ti(RN);var ib={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dS=Nr.createContext&&Nr.createContext(ib),Na=globalThis&&globalThis.__assign||function(){return Na=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Na.apply(this,arguments)},DN=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(r[n[a]]=t[n[a]]);return r};function lb(t){return t&&t.map(function(e,r){return Nr.createElement(e.tag,Na({key:r},e.attr),lb(e.child))})}function me(t){return function(e){return Nr.createElement(kN,Na({attr:Na({},t.attr)},e),lb(t.child))}}function kN(t){var e=function(r){var n=t.attr,a=t.size,o=t.title,s=DN(t,["attr","size","title"]),i=a||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),Nr.createElement("svg",Na({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:Na(Na({color:t.color||r.color},r.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),o&&Nr.createElement("title",null,o),t.children)};return dS!==void 0?Nr.createElement(dS.Consumer,null,function(r){return e(r)}):e(ib)}function _N(t){return me({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"}},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"}}]})(t)}const og=B.forwardRef((t,e)=>{const{className:r,color:n,enableTheme:a=!0,indicator:o=_N,isSpining:s=!0,size:i=20,style:l,...c}=t,{themeColor:u,primaryColorLevel:d}=IN(),p=n||a&&`${u}-${d}`,h={height:i,width:i,...l},f=Zn(s&&"animate-spin",p&&`text-${p}`,r);return ie.jsx(o,{ref:e,style:h,className:f,...c})});og.displayName="Spinner";const pS=t=>{const{loading:e,children:r,spinnerClass:n,className:a,asElement:o="div",customLoader:s}=t;return e?ie.jsx(o,{className:Zn(!s&&"flex items-center justify-center h-full",a),children:s?ie.jsx(ie.Fragment,{children:s}):ie.jsx(og,{className:n,size:40})}):ie.jsx(ie.Fragment,{children:r})},UN=t=>{const{loading:e,children:r,spinnerClass:n,className:a,asElement:o="div",customLoader:s}=t;return ie.jsxs(o,{className:Zn(e?"relative":"",a),children:[r,e&&ie.jsx("div",{className:"w-full h-full bg-white dark:bg-gray-800 dark:bg-opacity-60 bg-opacity-50 absolute inset-0"}),e&&ie.jsx("div",{className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-10",children:s?ie.jsx(ie.Fragment,{children:s}):ie.jsx(og,{className:n,size:40})})]})},cb=({type:t,...e})=>{switch(t){case"default":return ie.jsx(pS,{...e});case"cover":return ie.jsx(UN,{...e});default:return ie.jsx(pS,{...e})}};cb.defaultProps={loading:!1,type:"default",asElement:"div"};async function BN(t){return(await nc.apiV10UserLoginLogintopotalPost(2,0,0,!0,t)).data}async function MN(t,e){const r={token:e};return(await nc.apiV10UserLoginLogintopotalPost(2,t,0,!0,r)).data}async function FN(t){return(await nc.apiV10UserLoginAsUserPost({token:t,loginToPortal:2})).data}async function LN(t){return(await nc.apiV10UserVerify2faPost(3,!0,t)).data}async function NN(t){return(await Xv.apiV10AccountLogoutPost(t,0,3)).data}async function GN(t,e){return(await f4.apiV10CustomerSignUpSignUpPost(e)).data}async function tQ(t){return(await nc.apiV10UserForgotpasswordGet(t)).data}async function rQ(t){return(await Xv.apiV10AccountResetPasswordPost(t)).data}async function nQ(t){return(await Xv.apiV10AccountGetCourseDetailGet(t,!0)).data}function HN(){const{search:t}=Mo();return B.useMemo(()=>new URLSearchParams(t),[t])}class zi extends Error{}zi.prototype.name="InvalidTokenError";function jN(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function $N(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return jN(e)}catch{return atob(e)}}function hS(t,e){if(typeof t!="string")throw new zi("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new zi(`Invalid token specified: missing part #${r+1}`);let a;try{a=$N(n)}catch(o){throw new zi(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(a)}catch(o){throw new zi(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}async function zN(t,e){return(await d4.apiV10MenuGetMenuPermissionByPortalAndRoleRoleIdPortalNameGet(t,e)).data}var ub={exports:{}};function qN(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var g0={exports:{}};const QN={},KN=Object.freeze(Object.defineProperty({__proto__:null,default:QN},Symbol.toStringTag,{value:"Module"})),WN=sD(KN);var fS;function Ve(){return fS||(fS=1,function(t,e){(function(r,n){t.exports=n()})(ge,function(){var r=r||function(n,a){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ge<"u"&&ge.crypto&&(o=ge.crypto),!o&&typeof qN=="function")try{o=WN}catch{}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function m(){}return function(C){var x;return m.prototype=C,x=new m,m.prototype=null,x}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(m){var C=i(this);return m&&C.mixIn(m),(!C.hasOwnProperty("init")||this.init===C.init)&&(C.init=function(){C.$super.init.apply(this,arguments)}),C.init.prototype=C,C.$super=this,C},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var C in m)m.hasOwnProperty(C)&&(this[C]=m[C]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(m,C){m=this.words=m||[],C!=a?this.sigBytes=C:this.sigBytes=m.length*4},toString:function(m){return(m||h).stringify(this)},concat:function(m){var C=this.words,x=m.words,S=this.sigBytes,P=m.sigBytes;if(this.clamp(),S%4)for(var A=0;A<P;A++){var V=x[A>>>2]>>>24-A%4*8&255;C[S+A>>>2]|=V<<24-(S+A)%4*8}else for(var U=0;U<P;U+=4)C[S+U>>>2]=x[U>>>2];return this.sigBytes+=P,this},clamp:function(){var m=this.words,C=this.sigBytes;m[C>>>2]&=4294967295<<32-C%4*8,m.length=n.ceil(C/4)},clone:function(){var m=u.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var C=[],x=0;x<m;x+=4)C.push(s());return new d.init(C,m)}}),p=l.enc={},h=p.Hex={stringify:function(m){for(var C=m.words,x=m.sigBytes,S=[],P=0;P<x;P++){var A=C[P>>>2]>>>24-P%4*8&255;S.push((A>>>4).toString(16)),S.push((A&15).toString(16))}return S.join("")},parse:function(m){for(var C=m.length,x=[],S=0;S<C;S+=2)x[S>>>3]|=parseInt(m.substr(S,2),16)<<24-S%8*4;return new d.init(x,C/2)}},f=p.Latin1={stringify:function(m){for(var C=m.words,x=m.sigBytes,S=[],P=0;P<x;P++){var A=C[P>>>2]>>>24-P%4*8&255;S.push(String.fromCharCode(A))}return S.join("")},parse:function(m){for(var C=m.length,x=[],S=0;S<C;S++)x[S>>>2]|=(m.charCodeAt(S)&255)<<24-S%4*8;return new d.init(x,C)}},y=p.Utf8={stringify:function(m){try{return decodeURIComponent(escape(f.stringify(m)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(m){return f.parse(unescape(encodeURIComponent(m)))}},v=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=y.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var C,x=this._data,S=x.words,P=x.sigBytes,A=this.blockSize,V=A*4,U=P/V;m?U=n.ceil(U):U=n.max((U|0)-this._minBufferSize,0);var O=U*A,I=n.min(O*4,P);if(O){for(var L=0;L<O;L+=A)this._doProcessBlock(S,L);C=S.splice(0,O),x.sigBytes-=I}return new d.init(C,I)},clone:function(){var m=u.clone.call(this);return m._data=this._data.clone(),m},_minBufferSize:0});c.Hasher=v.extend({cfg:u.extend(),init:function(m){this.cfg=this.cfg.extend(m),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(m){return this._append(m),this._process(),this},finalize:function(m){m&&this._append(m);var C=this._doFinalize();return C},blockSize:16,_createHelper:function(m){return function(C,x){return new m.init(x).finalize(C)}},_createHmacHelper:function(m){return function(C,x){return new g.HMAC.init(m,x).finalize(C)}}});var g=l.algo={};return l}(Math);return r})}(g0)),g0.exports}var C0={exports:{}},mS;function Zp(){return mS||(mS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(n){var a=r,o=a.lib,s=o.Base,i=o.WordArray,l=a.x64={};l.Word=s.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=s.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],p=0;p<u;p++){var h=c[p];d.push(h.high),d.push(h.low)}return i.create(d,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),u=c.words=this.words.slice(0),d=u.length,p=0;p<d;p++)u[p]=u[p].clone();return c}})}(),r})}(C0)),C0.exports}var x0={exports:{}},yS;function YN(){return yS||(yS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,a=n.lib,o=a.WordArray,s=o.init,i=o.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;s.call(this,u,c)}else s.apply(this,arguments)};i.prototype=o}}(),r.lib.WordArray})}(x0)),x0.exports}var S0={exports:{}},vS;function JN(){return vS||(vS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],p=0;p<u;p+=2){var h=c[p>>>2]>>>16-p%4*8&65535;d.push(String.fromCharCode(h))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return o.create(u,c*2)}},s.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],p=0;p<u;p+=2){var h=i(c[p>>>2]>>>16-p%4*8&65535);d.push(String.fromCharCode(h))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=i(l.charCodeAt(d)<<16-d%2*16);return o.create(u,c*2)}};function i(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(S0)),S0.exports}var P0={exports:{}},gS;function Lo(){return gS||(gS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=n.enc;s.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,d=this._map;l.clamp();for(var p=[],h=0;h<u;h+=3)for(var f=c[h>>>2]>>>24-h%4*8&255,y=c[h+1>>>2]>>>24-(h+1)%4*8&255,v=c[h+2>>>2]>>>24-(h+2)%4*8&255,g=f<<16|y<<8|v,m=0;m<4&&h+m*.75<u;m++)p.push(d.charAt(g>>>6*(3-m)&63));var C=d.charAt(64);if(C)for(;p.length%4;)p.push(C);return p.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var p=0;p<u.length;p++)d[u.charCodeAt(p)]=p}var h=u.charAt(64);if(h){var f=l.indexOf(h);f!==-1&&(c=f)}return i(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function i(l,c,u){for(var d=[],p=0,h=0;h<c;h++)if(h%4){var f=u[l.charCodeAt(h-1)]<<h%4*2,y=u[l.charCodeAt(h)]>>>6-h%4*2,v=f|y;d[p>>>2]|=v<<24-p%4*8,p++}return o.create(d,p)}}(),r.enc.Base64})}(P0)),P0.exports}var A0={exports:{}},CS;function XN(){return CS||(CS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=n.enc;s.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,d=l.sigBytes,p=c?this._safe_map:this._map;l.clamp();for(var h=[],f=0;f<d;f+=3)for(var y=u[f>>>2]>>>24-f%4*8&255,v=u[f+1>>>2]>>>24-(f+1)%4*8&255,g=u[f+2>>>2]>>>24-(f+2)%4*8&255,m=y<<16|v<<8|g,C=0;C<4&&f+C*.75<d;C++)h.push(p.charAt(m>>>6*(3-C)&63));var x=p.charAt(64);if(x)for(;h.length%4;)h.push(x);return h.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,d=c?this._safe_map:this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var h=0;h<d.length;h++)p[d.charCodeAt(h)]=h}var f=d.charAt(64);if(f){var y=l.indexOf(f);y!==-1&&(u=y)}return i(l,u,p)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function i(l,c,u){for(var d=[],p=0,h=0;h<c;h++)if(h%4){var f=u[l.charCodeAt(h-1)]<<h%4*2,y=u[l.charCodeAt(h)]>>>6-h%4*2,v=f|y;d[p>>>2]|=v<<24-p%4*8,p++}return o.create(d,p)}}(),r.enc.Base64url})}(A0)),A0.exports}var O0={exports:{}},xS;function No(){return xS||(xS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(n){var a=r,o=a.lib,s=o.WordArray,i=o.Hasher,l=a.algo,c=[];(function(){for(var y=0;y<64;y++)c[y]=n.abs(n.sin(y+1))*4294967296|0})();var u=l.MD5=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,v){for(var g=0;g<16;g++){var m=v+g,C=y[m];y[m]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var x=this._hash.words,S=y[v+0],P=y[v+1],A=y[v+2],V=y[v+3],U=y[v+4],O=y[v+5],I=y[v+6],L=y[v+7],N=y[v+8],G=y[v+9],H=y[v+10],$=y[v+11],X=y[v+12],F=y[v+13],Y=y[v+14],Q=y[v+15],M=x[0],z=x[1],W=x[2],q=x[3];M=d(M,z,W,q,S,7,c[0]),q=d(q,M,z,W,P,12,c[1]),W=d(W,q,M,z,A,17,c[2]),z=d(z,W,q,M,V,22,c[3]),M=d(M,z,W,q,U,7,c[4]),q=d(q,M,z,W,O,12,c[5]),W=d(W,q,M,z,I,17,c[6]),z=d(z,W,q,M,L,22,c[7]),M=d(M,z,W,q,N,7,c[8]),q=d(q,M,z,W,G,12,c[9]),W=d(W,q,M,z,H,17,c[10]),z=d(z,W,q,M,$,22,c[11]),M=d(M,z,W,q,X,7,c[12]),q=d(q,M,z,W,F,12,c[13]),W=d(W,q,M,z,Y,17,c[14]),z=d(z,W,q,M,Q,22,c[15]),M=p(M,z,W,q,P,5,c[16]),q=p(q,M,z,W,I,9,c[17]),W=p(W,q,M,z,$,14,c[18]),z=p(z,W,q,M,S,20,c[19]),M=p(M,z,W,q,O,5,c[20]),q=p(q,M,z,W,H,9,c[21]),W=p(W,q,M,z,Q,14,c[22]),z=p(z,W,q,M,U,20,c[23]),M=p(M,z,W,q,G,5,c[24]),q=p(q,M,z,W,Y,9,c[25]),W=p(W,q,M,z,V,14,c[26]),z=p(z,W,q,M,N,20,c[27]),M=p(M,z,W,q,F,5,c[28]),q=p(q,M,z,W,A,9,c[29]),W=p(W,q,M,z,L,14,c[30]),z=p(z,W,q,M,X,20,c[31]),M=h(M,z,W,q,O,4,c[32]),q=h(q,M,z,W,N,11,c[33]),W=h(W,q,M,z,$,16,c[34]),z=h(z,W,q,M,Y,23,c[35]),M=h(M,z,W,q,P,4,c[36]),q=h(q,M,z,W,U,11,c[37]),W=h(W,q,M,z,L,16,c[38]),z=h(z,W,q,M,H,23,c[39]),M=h(M,z,W,q,F,4,c[40]),q=h(q,M,z,W,S,11,c[41]),W=h(W,q,M,z,V,16,c[42]),z=h(z,W,q,M,I,23,c[43]),M=h(M,z,W,q,G,4,c[44]),q=h(q,M,z,W,X,11,c[45]),W=h(W,q,M,z,Q,16,c[46]),z=h(z,W,q,M,A,23,c[47]),M=f(M,z,W,q,S,6,c[48]),q=f(q,M,z,W,L,10,c[49]),W=f(W,q,M,z,Y,15,c[50]),z=f(z,W,q,M,O,21,c[51]),M=f(M,z,W,q,X,6,c[52]),q=f(q,M,z,W,V,10,c[53]),W=f(W,q,M,z,H,15,c[54]),z=f(z,W,q,M,P,21,c[55]),M=f(M,z,W,q,N,6,c[56]),q=f(q,M,z,W,Q,10,c[57]),W=f(W,q,M,z,I,15,c[58]),z=f(z,W,q,M,F,21,c[59]),M=f(M,z,W,q,U,6,c[60]),q=f(q,M,z,W,$,10,c[61]),W=f(W,q,M,z,A,15,c[62]),z=f(z,W,q,M,G,21,c[63]),x[0]=x[0]+M|0,x[1]=x[1]+z|0,x[2]=x[2]+W|0,x[3]=x[3]+q|0},_doFinalize:function(){var y=this._data,v=y.words,g=this._nDataBytes*8,m=y.sigBytes*8;v[m>>>5]|=128<<24-m%32;var C=n.floor(g/4294967296),x=g;v[(m+64>>>9<<4)+15]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,v[(m+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,y.sigBytes=(v.length+1)*4,this._process();for(var S=this._hash,P=S.words,A=0;A<4;A++){var V=P[A];P[A]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}return S},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y}});function d(y,v,g,m,C,x,S){var P=y+(v&g|~v&m)+C+S;return(P<<x|P>>>32-x)+v}function p(y,v,g,m,C,x,S){var P=y+(v&m|g&~m)+C+S;return(P<<x|P>>>32-x)+v}function h(y,v,g,m,C,x,S){var P=y+(v^g^m)+C+S;return(P<<x|P>>>32-x)+v}function f(y,v,g,m,C,x,S){var P=y+(g^(v|~m))+C+S;return(P<<x|P>>>32-x)+v}a.MD5=i._createHelper(u),a.HmacMD5=i._createHmacHelper(u)}(Math),r.MD5})}(O0)),O0.exports}var V0={exports:{}},SS;function db(){return SS||(SS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=a.Hasher,i=n.algo,l=[],c=i.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var p=this._hash.words,h=p[0],f=p[1],y=p[2],v=p[3],g=p[4],m=0;m<80;m++){if(m<16)l[m]=u[d+m]|0;else{var C=l[m-3]^l[m-8]^l[m-14]^l[m-16];l[m]=C<<1|C>>>31}var x=(h<<5|h>>>27)+g+l[m];m<20?x+=(f&y|~f&v)+1518500249:m<40?x+=(f^y^v)+1859775393:m<60?x+=(f&y|f&v|y&v)-1894007588:x+=(f^y^v)-899497514,g=v,v=y,y=f<<30|f>>>2,f=h,h=x}p[0]=p[0]+h|0,p[1]=p[1]+f|0,p[2]=p[2]+y|0,p[3]=p[3]+v|0,p[4]=p[4]+g|0},_doFinalize:function(){var u=this._data,d=u.words,p=this._nDataBytes*8,h=u.sigBytes*8;return d[h>>>5]|=128<<24-h%32,d[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),d[(h+64>>>9<<4)+15]=p,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=s.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c)}(),r.SHA1})}(V0)),V0.exports}var I0={exports:{}},PS;function sg(){return PS||(PS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){return function(n){var a=r,o=a.lib,s=o.WordArray,i=o.Hasher,l=a.algo,c=[],u=[];(function(){function h(g){for(var m=n.sqrt(g),C=2;C<=m;C++)if(!(g%C))return!1;return!0}function f(g){return(g-(g|0))*4294967296|0}for(var y=2,v=0;v<64;)h(y)&&(v<8&&(c[v]=f(n.pow(y,1/2))),u[v]=f(n.pow(y,1/3)),v++),y++})();var d=[],p=l.SHA256=i.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(h,f){for(var y=this._hash.words,v=y[0],g=y[1],m=y[2],C=y[3],x=y[4],S=y[5],P=y[6],A=y[7],V=0;V<64;V++){if(V<16)d[V]=h[f+V]|0;else{var U=d[V-15],O=(U<<25|U>>>7)^(U<<14|U>>>18)^U>>>3,I=d[V-2],L=(I<<15|I>>>17)^(I<<13|I>>>19)^I>>>10;d[V]=O+d[V-7]+L+d[V-16]}var N=x&S^~x&P,G=v&g^v&m^g&m,H=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),$=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),X=A+$+N+u[V]+d[V],F=H+G;A=P,P=S,S=x,x=C+X|0,C=m,m=g,g=v,v=X+F|0}y[0]=y[0]+v|0,y[1]=y[1]+g|0,y[2]=y[2]+m|0,y[3]=y[3]+C|0,y[4]=y[4]+x|0,y[5]=y[5]+S|0,y[6]=y[6]+P|0,y[7]=y[7]+A|0},_doFinalize:function(){var h=this._data,f=h.words,y=this._nDataBytes*8,v=h.sigBytes*8;return f[v>>>5]|=128<<24-v%32,f[(v+64>>>9<<4)+14]=n.floor(y/4294967296),f[(v+64>>>9<<4)+15]=y,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA256=i._createHelper(p),a.HmacSHA256=i._createHmacHelper(p)}(Math),r.SHA256})}(I0)),I0.exports}var w0={exports:{}},AS;function ZN(){return AS||(AS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),sg())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=n.algo,i=s.SHA256,l=s.SHA224=i.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=i._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=i._createHelper(l),n.HmacSHA224=i._createHmacHelper(l)}(),r.SHA224})}(w0)),w0.exports}var b0={exports:{}},OS;function pb(){return OS||(OS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Zp())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.Hasher,s=n.x64,i=s.Word,l=s.WordArray,c=n.algo;function u(){return i.create.apply(i,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],p=[];(function(){for(var f=0;f<80;f++)p[f]=u()})();var h=c.SHA512=o.extend({_doReset:function(){this._hash=new l.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,y){for(var v=this._hash.words,g=v[0],m=v[1],C=v[2],x=v[3],S=v[4],P=v[5],A=v[6],V=v[7],U=g.high,O=g.low,I=m.high,L=m.low,N=C.high,G=C.low,H=x.high,$=x.low,X=S.high,F=S.low,Y=P.high,Q=P.low,M=A.high,z=A.low,W=V.high,q=V.low,ae=U,oe=O,pe=I,ue=L,He=N,Se=G,Ae=H,Ne=$,Oe=X,xt=F,mc=Y,hi=Q,yc=M,fi=z,Vh=W,mi=q,qr=0;qr<80;qr++){var Er,da,vc=p[qr];if(qr<16)da=vc.high=f[y+qr*2]|0,Er=vc.low=f[y+qr*2+1]|0;else{var S1=p[qr-15],zo=S1.high,yi=S1.low,$R=(zo>>>1|yi<<31)^(zo>>>8|yi<<24)^zo>>>7,P1=(yi>>>1|zo<<31)^(yi>>>8|zo<<24)^(yi>>>7|zo<<25),A1=p[qr-2],qo=A1.high,vi=A1.low,zR=(qo>>>19|vi<<13)^(qo<<3|vi>>>29)^qo>>>6,O1=(vi>>>19|qo<<13)^(vi<<3|qo>>>29)^(vi>>>6|qo<<26),V1=p[qr-7],qR=V1.high,QR=V1.low,I1=p[qr-16],KR=I1.high,w1=I1.low;Er=P1+QR,da=$R+qR+(Er>>>0<P1>>>0?1:0),Er=Er+O1,da=da+zR+(Er>>>0<O1>>>0?1:0),Er=Er+w1,da=da+KR+(Er>>>0<w1>>>0?1:0),vc.high=da,vc.low=Er}var WR=Oe&mc^~Oe&yc,b1=xt&hi^~xt&fi,YR=ae&pe^ae&He^pe&He,JR=oe&ue^oe&Se^ue&Se,XR=(ae>>>28|oe<<4)^(ae<<30|oe>>>2)^(ae<<25|oe>>>7),T1=(oe>>>28|ae<<4)^(oe<<30|ae>>>2)^(oe<<25|ae>>>7),ZR=(Oe>>>14|xt<<18)^(Oe>>>18|xt<<14)^(Oe<<23|xt>>>9),eD=(xt>>>14|Oe<<18)^(xt>>>18|Oe<<14)^(xt<<23|Oe>>>9),E1=d[qr],tD=E1.high,R1=E1.low,mr=mi+eD,pa=Vh+ZR+(mr>>>0<mi>>>0?1:0),mr=mr+b1,pa=pa+WR+(mr>>>0<b1>>>0?1:0),mr=mr+R1,pa=pa+tD+(mr>>>0<R1>>>0?1:0),mr=mr+Er,pa=pa+da+(mr>>>0<Er>>>0?1:0),D1=T1+JR,rD=XR+YR+(D1>>>0<T1>>>0?1:0);Vh=yc,mi=fi,yc=mc,fi=hi,mc=Oe,hi=xt,xt=Ne+mr|0,Oe=Ae+pa+(xt>>>0<Ne>>>0?1:0)|0,Ae=He,Ne=Se,He=pe,Se=ue,pe=ae,ue=oe,oe=mr+D1|0,ae=pa+rD+(oe>>>0<mr>>>0?1:0)|0}O=g.low=O+oe,g.high=U+ae+(O>>>0<oe>>>0?1:0),L=m.low=L+ue,m.high=I+pe+(L>>>0<ue>>>0?1:0),G=C.low=G+Se,C.high=N+He+(G>>>0<Se>>>0?1:0),$=x.low=$+Ne,x.high=H+Ae+($>>>0<Ne>>>0?1:0),F=S.low=F+xt,S.high=X+Oe+(F>>>0<xt>>>0?1:0),Q=P.low=Q+hi,P.high=Y+mc+(Q>>>0<hi>>>0?1:0),z=A.low=z+fi,A.high=M+yc+(z>>>0<fi>>>0?1:0),q=V.low=q+mi,V.high=W+Vh+(q>>>0<mi>>>0?1:0)},_doFinalize:function(){var f=this._data,y=f.words,v=this._nDataBytes*8,g=f.sigBytes*8;y[g>>>5]|=128<<24-g%32,y[(g+128>>>10<<5)+30]=Math.floor(v/4294967296),y[(g+128>>>10<<5)+31]=v,f.sigBytes=y.length*4,this._process();var m=this._hash.toX32();return m},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});n.SHA512=o._createHelper(h),n.HmacSHA512=o._createHmacHelper(h)}(),r.SHA512})}(b0)),b0.exports}var T0={exports:{}},VS;function e3(){return VS||(VS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Zp(),pb())})(ge,function(r){return function(){var n=r,a=n.x64,o=a.Word,s=a.WordArray,i=n.algo,l=i.SHA512,c=i.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(T0)),T0.exports}var E0={exports:{}},IS;function t3(){return IS||(IS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Zp())})(ge,function(r){return function(n){var a=r,o=a.lib,s=o.WordArray,i=o.Hasher,l=a.x64,c=l.Word,u=a.algo,d=[],p=[],h=[];(function(){for(var v=1,g=0,m=0;m<24;m++){d[v+5*g]=(m+1)*(m+2)/2%64;var C=g%5,x=(2*v+3*g)%5;v=C,g=x}for(var v=0;v<5;v++)for(var g=0;g<5;g++)p[v+5*g]=g+(2*v+3*g)%5*5;for(var S=1,P=0;P<24;P++){for(var A=0,V=0,U=0;U<7;U++){if(S&1){var O=(1<<U)-1;O<32?V^=1<<O:A^=1<<O-32}S&128?S=S<<1^113:S<<=1}h[P]=c.create(A,V)}})();var f=[];(function(){for(var v=0;v<25;v++)f[v]=c.create()})();var y=u.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],g=0;g<25;g++)v[g]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,g){for(var m=this._state,C=this.blockSize/2,x=0;x<C;x++){var S=v[g+2*x],P=v[g+2*x+1];S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var A=m[x];A.high^=P,A.low^=S}for(var V=0;V<24;V++){for(var U=0;U<5;U++){for(var O=0,I=0,L=0;L<5;L++){var A=m[U+5*L];O^=A.high,I^=A.low}var N=f[U];N.high=O,N.low=I}for(var U=0;U<5;U++)for(var G=f[(U+4)%5],H=f[(U+1)%5],$=H.high,X=H.low,O=G.high^($<<1|X>>>31),I=G.low^(X<<1|$>>>31),L=0;L<5;L++){var A=m[U+5*L];A.high^=O,A.low^=I}for(var F=1;F<25;F++){var O,I,A=m[F],Y=A.high,Q=A.low,M=d[F];M<32?(O=Y<<M|Q>>>32-M,I=Q<<M|Y>>>32-M):(O=Q<<M-32|Y>>>64-M,I=Y<<M-32|Q>>>64-M);var z=f[p[F]];z.high=O,z.low=I}var W=f[0],q=m[0];W.high=q.high,W.low=q.low;for(var U=0;U<5;U++)for(var L=0;L<5;L++){var F=U+5*L,A=m[F],ae=f[F],oe=f[(U+1)%5+5*L],pe=f[(U+2)%5+5*L];A.high=ae.high^~oe.high&pe.high,A.low=ae.low^~oe.low&pe.low}var A=m[0],ue=h[V];A.high^=ue.high,A.low^=ue.low}},_doFinalize:function(){var v=this._data,g=v.words;this._nDataBytes*8;var m=v.sigBytes*8,C=this.blockSize*32;g[m>>>5]|=1<<24-m%32,g[(n.ceil((m+1)/C)*C>>>5)-1]|=128,v.sigBytes=g.length*4,this._process();for(var x=this._state,S=this.cfg.outputLength/8,P=S/8,A=[],V=0;V<P;V++){var U=x[V],O=U.high,I=U.low;O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,A.push(I),A.push(O)}return new s.init(A,S)},clone:function(){for(var v=i.clone.call(this),g=v._state=this._state.slice(0),m=0;m<25;m++)g[m]=g[m].clone();return v}});a.SHA3=i._createHelper(y),a.HmacSHA3=i._createHmacHelper(y)}(Math),r.SHA3})}(E0)),E0.exports}var R0={exports:{}},wS;function r3(){return wS||(wS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){/** @preserve
|
|
110
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
111
|
+
|
|
112
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
113
|
+
|
|
114
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
115
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
116
|
+
|
|
117
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
118
|
+
*/return function(n){var a=r,o=a.lib,s=o.WordArray,i=o.Hasher,l=a.algo,c=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),p=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=s.create([0,1518500249,1859775393,2400959708,2840853838]),f=s.create([1352829926,1548603684,1836072691,2053994217,0]),y=l.RIPEMD160=i.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,A){for(var V=0;V<16;V++){var U=A+V,O=P[U];P[U]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var I=this._hash.words,L=h.words,N=f.words,G=c.words,H=u.words,$=d.words,X=p.words,F,Y,Q,M,z,W,q,ae,oe,pe;W=F=I[0],q=Y=I[1],ae=Q=I[2],oe=M=I[3],pe=z=I[4];for(var ue,V=0;V<80;V+=1)ue=F+P[A+G[V]]|0,V<16?ue+=v(Y,Q,M)+L[0]:V<32?ue+=g(Y,Q,M)+L[1]:V<48?ue+=m(Y,Q,M)+L[2]:V<64?ue+=C(Y,Q,M)+L[3]:ue+=x(Y,Q,M)+L[4],ue=ue|0,ue=S(ue,$[V]),ue=ue+z|0,F=z,z=M,M=S(Q,10),Q=Y,Y=ue,ue=W+P[A+H[V]]|0,V<16?ue+=x(q,ae,oe)+N[0]:V<32?ue+=C(q,ae,oe)+N[1]:V<48?ue+=m(q,ae,oe)+N[2]:V<64?ue+=g(q,ae,oe)+N[3]:ue+=v(q,ae,oe)+N[4],ue=ue|0,ue=S(ue,X[V]),ue=ue+pe|0,W=pe,pe=oe,oe=S(ae,10),ae=q,q=ue;ue=I[1]+Q+oe|0,I[1]=I[2]+M+pe|0,I[2]=I[3]+z+W|0,I[3]=I[4]+F+q|0,I[4]=I[0]+Y+ae|0,I[0]=ue},_doFinalize:function(){var P=this._data,A=P.words,V=this._nDataBytes*8,U=P.sigBytes*8;A[U>>>5]|=128<<24-U%32,A[(U+64>>>9<<4)+14]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360,P.sigBytes=(A.length+1)*4,this._process();for(var O=this._hash,I=O.words,L=0;L<5;L++){var N=I[L];I[L]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return O},clone:function(){var P=i.clone.call(this);return P._hash=this._hash.clone(),P}});function v(P,A,V){return P^A^V}function g(P,A,V){return P&A|~P&V}function m(P,A,V){return(P|~A)^V}function C(P,A,V){return P&V|A&~V}function x(P,A,V){return P^(A|~V)}function S(P,A){return P<<A|P>>>32-A}a.RIPEMD160=i._createHelper(y),a.HmacRIPEMD160=i._createHmacHelper(y)}(),r.RIPEMD160})}(R0)),R0.exports}var D0={exports:{}},bS;function ig(){return bS||(bS=1,function(t,e){(function(r,n){t.exports=n(Ve())})(ge,function(r){(function(){var n=r,a=n.lib,o=a.Base,s=n.enc,i=s.Utf8,l=n.algo;l.HMAC=o.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var d=c.blockSize,p=d*4;u.sigBytes>p&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),f=this._iKey=u.clone(),y=h.words,v=f.words,g=0;g<d;g++)y[g]^=1549556828,v[g]^=909522486;h.sigBytes=f.sigBytes=p,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var u=this._hasher,d=u.finalize(c);u.reset();var p=u.finalize(this._oKey.clone().concat(d));return p}})})()})}(D0)),D0.exports}var k0={exports:{}},TS;function n3(){return TS||(TS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),sg(),ig())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.Base,s=a.WordArray,i=n.algo,l=i.SHA256,c=i.HMAC,u=i.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,p){for(var h=this.cfg,f=c.create(h.hasher,d),y=s.create(),v=s.create([1]),g=y.words,m=v.words,C=h.keySize,x=h.iterations;g.length<C;){var S=f.update(p).finalize(v);f.reset();for(var P=S.words,A=P.length,V=S,U=1;U<x;U++){V=f.finalize(V),f.reset();for(var O=V.words,I=0;I<A;I++)P[I]^=O[I]}y.concat(S),m[0]++}return y.sigBytes=C*4,y}});n.PBKDF2=function(d,p,h){return u.create(h).compute(d,p)}}(),r.PBKDF2})}(k0)),k0.exports}var _0={exports:{}},ES;function ao(){return ES||(ES=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),db(),ig())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.Base,s=a.WordArray,i=n.algo,l=i.MD5,c=i.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:l,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,d){for(var p,h=this.cfg,f=h.hasher.create(),y=s.create(),v=y.words,g=h.keySize,m=h.iterations;v.length<g;){p&&f.update(p),p=f.update(u).finalize(d),f.reset();for(var C=1;C<m;C++)p=f.finalize(p),f.reset();y.concat(p)}return y.sigBytes=g*4,y}});n.EvpKDF=function(u,d,p){return c.create(p).compute(u,d)}}(),r.EvpKDF})}(_0)),_0.exports}var U0={exports:{}},RS;function Et(){return RS||(RS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),ao())})(ge,function(r){r.lib.Cipher||function(n){var a=r,o=a.lib,s=o.Base,i=o.WordArray,l=o.BufferedBlockAlgorithm,c=a.enc;c.Utf8;var u=c.Base64,d=a.algo,p=d.EvpKDF,h=o.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(O,I){return this.create(this._ENC_XFORM_MODE,O,I)},createDecryptor:function(O,I){return this.create(this._DEC_XFORM_MODE,O,I)},init:function(O,I,L){this.cfg=this.cfg.extend(L),this._xformMode=O,this._key=I,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(O){return this._append(O),this._process()},finalize:function(O){O&&this._append(O);var I=this._doFinalize();return I},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function O(I){return typeof I=="string"?U:P}return function(I){return{encrypt:function(L,N,G){return O(N).encrypt(I,L,N,G)},decrypt:function(L,N,G){return O(N).decrypt(I,L,N,G)}}}}()});o.StreamCipher=h.extend({_doFinalize:function(){var O=this._process(!0);return O},blockSize:1});var f=a.mode={},y=o.BlockCipherMode=s.extend({createEncryptor:function(O,I){return this.Encryptor.create(O,I)},createDecryptor:function(O,I){return this.Decryptor.create(O,I)},init:function(O,I){this._cipher=O,this._iv=I}}),v=f.CBC=function(){var O=y.extend();O.Encryptor=O.extend({processBlock:function(L,N){var G=this._cipher,H=G.blockSize;I.call(this,L,N,H),G.encryptBlock(L,N),this._prevBlock=L.slice(N,N+H)}}),O.Decryptor=O.extend({processBlock:function(L,N){var G=this._cipher,H=G.blockSize,$=L.slice(N,N+H);G.decryptBlock(L,N),I.call(this,L,N,H),this._prevBlock=$}});function I(L,N,G){var H,$=this._iv;$?(H=$,this._iv=n):H=this._prevBlock;for(var X=0;X<G;X++)L[N+X]^=H[X]}return O}(),g=a.pad={},m=g.Pkcs7={pad:function(O,I){for(var L=I*4,N=L-O.sigBytes%L,G=N<<24|N<<16|N<<8|N,H=[],$=0;$<N;$+=4)H.push(G);var X=i.create(H,N);O.concat(X)},unpad:function(O){var I=O.words[O.sigBytes-1>>>2]&255;O.sigBytes-=I}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:v,padding:m}),reset:function(){var O;h.reset.call(this);var I=this.cfg,L=I.iv,N=I.mode;this._xformMode==this._ENC_XFORM_MODE?O=N.createEncryptor:(O=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==O?this._mode.init(this,L&&L.words):(this._mode=O.call(N,this,L&&L.words),this._mode.__creator=O)},_doProcessBlock:function(O,I){this._mode.processBlock(O,I)},_doFinalize:function(){var O,I=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(I.pad(this._data,this.blockSize),O=this._process(!0)):(O=this._process(!0),I.unpad(O)),O},blockSize:128/32});var C=o.CipherParams=s.extend({init:function(O){this.mixIn(O)},toString:function(O){return(O||this.formatter).stringify(this)}}),x=a.format={},S=x.OpenSSL={stringify:function(O){var I,L=O.ciphertext,N=O.salt;return N?I=i.create([1398893684,1701076831]).concat(N).concat(L):I=L,I.toString(u)},parse:function(O){var I,L=u.parse(O),N=L.words;return N[0]==1398893684&&N[1]==1701076831&&(I=i.create(N.slice(2,4)),N.splice(0,4),L.sigBytes-=16),C.create({ciphertext:L,salt:I})}},P=o.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(O,I,L,N){N=this.cfg.extend(N);var G=O.createEncryptor(L,N),H=G.finalize(I),$=G.cfg;return C.create({ciphertext:H,key:L,iv:$.iv,algorithm:O,mode:$.mode,padding:$.padding,blockSize:O.blockSize,formatter:N.format})},decrypt:function(O,I,L,N){N=this.cfg.extend(N),I=this._parse(I,N.format);var G=O.createDecryptor(L,N).finalize(I.ciphertext);return G},_parse:function(O,I){return typeof O=="string"?I.parse(O,this):O}}),A=a.kdf={},V=A.OpenSSL={execute:function(O,I,L,N,G){if(N||(N=i.random(64/8)),G)var H=p.create({keySize:I+L,hasher:G}).compute(O,N);else var H=p.create({keySize:I+L}).compute(O,N);var $=i.create(H.words.slice(I),L*4);return H.sigBytes=I*4,C.create({key:H,iv:$,salt:N})}},U=o.PasswordBasedCipher=P.extend({cfg:P.cfg.extend({kdf:V}),encrypt:function(O,I,L,N){N=this.cfg.extend(N);var G=N.kdf.execute(L,O.keySize,O.ivSize,N.salt,N.hasher);N.iv=G.iv;var H=P.encrypt.call(this,O,I,G.key,N);return H.mixIn(G),H},decrypt:function(O,I,L,N){N=this.cfg.extend(N),I=this._parse(I,N.format);var G=N.kdf.execute(L,O.keySize,O.ivSize,I.salt,N.hasher);N.iv=G.iv;var H=P.decrypt.call(this,O,I,G.key,N);return H}})}()})}(U0)),U0.exports}var B0={exports:{}},DS;function a3(){return DS||(DS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var i=this._cipher,l=i.blockSize;a.call(this,o,s,l,i),this._prevBlock=o.slice(s,s+l)}}),n.Decryptor=n.extend({processBlock:function(o,s){var i=this._cipher,l=i.blockSize,c=o.slice(s,s+l);a.call(this,o,s,l,i),this._prevBlock=c}});function a(o,s,i,l){var c,u=this._iv;u?(c=u.slice(0),this._iv=void 0):c=this._prevBlock,l.encryptBlock(c,0);for(var d=0;d<i;d++)o[s+d]^=c[d]}return n}(),r.mode.CFB})}(B0)),B0.exports}var M0={exports:{}},kS;function o3(){return kS||(kS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(o,s){var i=this._cipher,l=i.blockSize,c=this._iv,u=this._counter;c&&(u=this._counter=c.slice(0),this._iv=void 0);var d=u.slice(0);i.encryptBlock(d,0),u[l-1]=u[l-1]+1|0;for(var p=0;p<l;p++)o[s+p]^=d[p]}});return n.Decryptor=a,n}(),r.mode.CTR})}(M0)),M0.exports}var F0={exports:{}},_S;function s3(){return _S||(_S=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){/** @preserve
|
|
119
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
120
|
+
* derived from CryptoJS.mode.CTR
|
|
121
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
122
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function a(i){if((i>>24&255)===255){var l=i>>16&255,c=i>>8&255,u=i&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,i=0,i+=l<<16,i+=c<<8,i+=u}else i+=1<<24;return i}function o(i){return(i[0]=a(i[0]))===0&&(i[1]=a(i[1])),i}var s=n.Encryptor=n.extend({processBlock:function(i,l){var c=this._cipher,u=c.blockSize,d=this._iv,p=this._counter;d&&(p=this._counter=d.slice(0),this._iv=void 0),o(p);var h=p.slice(0);c.encryptBlock(h,0);for(var f=0;f<u;f++)i[l+f]^=h[f]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(F0)),F0.exports}var L0={exports:{}},US;function i3(){return US||(US=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(o,s){var i=this._cipher,l=i.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),i.encryptBlock(u,0);for(var d=0;d<l;d++)o[s+d]^=u[d]}});return n.Decryptor=a,n}(),r.mode.OFB})}(L0)),L0.exports}var N0={exports:{}},BS;function l3(){return BS||(BS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(a,o){this._cipher.encryptBlock(a,o)}}),n.Decryptor=n.extend({processBlock:function(a,o){this._cipher.decryptBlock(a,o)}}),n}(),r.mode.ECB})}(N0)),N0.exports}var G0={exports:{}},MS;function c3(){return MS||(MS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.pad.AnsiX923={pad:function(n,a){var o=n.sigBytes,s=a*4,i=s-o%s,l=o+i-1;n.clamp(),n.words[l>>>2]|=i<<24-l%4*8,n.sigBytes+=i},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Ansix923})}(G0)),G0.exports}var H0={exports:{}},FS;function u3(){return FS||(FS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.pad.Iso10126={pad:function(n,a){var o=a*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var a=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=a}},r.pad.Iso10126})}(H0)),H0.exports}var j0={exports:{}},LS;function d3(){return LS||(LS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.pad.Iso97971={pad:function(n,a){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,a)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(j0)),j0.exports}var $0={exports:{}},NS;function p3(){return NS||(NS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.pad.ZeroPadding={pad:function(n,a){var o=a*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var a=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(a[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},r.pad.ZeroPadding})}($0)),$0.exports}var z0={exports:{}},GS;function h3(){return GS||(GS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(z0)),z0.exports}var q0={exports:{}},HS;function f3(){return HS||(HS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Et())})(ge,function(r){return function(n){var a=r,o=a.lib,s=o.CipherParams,i=a.enc,l=i.Hex,c=a.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var d=l.parse(u);return s.create({ciphertext:d})}}}(),r.format.Hex})}(q0)),q0.exports}var Q0={exports:{}},jS;function m3(){return jS||(jS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.BlockCipher,s=n.algo,i=[],l=[],c=[],u=[],d=[],p=[],h=[],f=[],y=[],v=[];(function(){for(var C=[],x=0;x<256;x++)x<128?C[x]=x<<1:C[x]=x<<1^283;for(var S=0,P=0,x=0;x<256;x++){var A=P^P<<1^P<<2^P<<3^P<<4;A=A>>>8^A&255^99,i[S]=A,l[A]=S;var V=C[S],U=C[V],O=C[U],I=C[A]*257^A*16843008;c[S]=I<<24|I>>>8,u[S]=I<<16|I>>>16,d[S]=I<<8|I>>>24,p[S]=I;var I=O*16843009^U*65537^V*257^S*16843008;h[A]=I<<24|I>>>8,f[A]=I<<16|I>>>16,y[A]=I<<8|I>>>24,v[A]=I,S?(S=V^C[C[C[O^V]]],P^=C[C[P]]):S=P=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=s.AES=o.extend({_doReset:function(){var C;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,S=x.words,P=x.sigBytes/4,A=this._nRounds=P+6,V=(A+1)*4,U=this._keySchedule=[],O=0;O<V;O++)O<P?U[O]=S[O]:(C=U[O-1],O%P?P>6&&O%P==4&&(C=i[C>>>24]<<24|i[C>>>16&255]<<16|i[C>>>8&255]<<8|i[C&255]):(C=C<<8|C>>>24,C=i[C>>>24]<<24|i[C>>>16&255]<<16|i[C>>>8&255]<<8|i[C&255],C^=g[O/P|0]<<24),U[O]=U[O-P]^C);for(var I=this._invKeySchedule=[],L=0;L<V;L++){var O=V-L;if(L%4)var C=U[O];else var C=U[O-4];L<4||O<=4?I[L]=C:I[L]=h[i[C>>>24]]^f[i[C>>>16&255]]^y[i[C>>>8&255]]^v[i[C&255]]}}},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._keySchedule,c,u,d,p,i)},decryptBlock:function(C,x){var S=C[x+1];C[x+1]=C[x+3],C[x+3]=S,this._doCryptBlock(C,x,this._invKeySchedule,h,f,y,v,l);var S=C[x+1];C[x+1]=C[x+3],C[x+3]=S},_doCryptBlock:function(C,x,S,P,A,V,U,O){for(var I=this._nRounds,L=C[x]^S[0],N=C[x+1]^S[1],G=C[x+2]^S[2],H=C[x+3]^S[3],$=4,X=1;X<I;X++){var F=P[L>>>24]^A[N>>>16&255]^V[G>>>8&255]^U[H&255]^S[$++],Y=P[N>>>24]^A[G>>>16&255]^V[H>>>8&255]^U[L&255]^S[$++],Q=P[G>>>24]^A[H>>>16&255]^V[L>>>8&255]^U[N&255]^S[$++],M=P[H>>>24]^A[L>>>16&255]^V[N>>>8&255]^U[G&255]^S[$++];L=F,N=Y,G=Q,H=M}var F=(O[L>>>24]<<24|O[N>>>16&255]<<16|O[G>>>8&255]<<8|O[H&255])^S[$++],Y=(O[N>>>24]<<24|O[G>>>16&255]<<16|O[H>>>8&255]<<8|O[L&255])^S[$++],Q=(O[G>>>24]<<24|O[H>>>16&255]<<16|O[L>>>8&255]<<8|O[N&255])^S[$++],M=(O[H>>>24]<<24|O[L>>>16&255]<<16|O[N>>>8&255]<<8|O[G&255])^S[$++];C[x]=F,C[x+1]=Y,C[x+2]=Q,C[x+3]=M},keySize:256/32});n.AES=o._createHelper(m)}(),r.AES})}(Q0)),Q0.exports}var K0={exports:{}},$S;function y3(){return $S||($S=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.WordArray,s=a.BlockCipher,i=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=s.extend({_doReset:function(){for(var g=this._key,m=g.words,C=[],x=0;x<56;x++){var S=l[x]-1;C[x]=m[S>>>5]>>>31-S%32&1}for(var P=this._subKeys=[],A=0;A<16;A++){for(var V=P[A]=[],U=u[A],x=0;x<24;x++)V[x/6|0]|=C[(c[x]-1+U)%28]<<31-x%6,V[4+(x/6|0)]|=C[28+(c[x+24]-1+U)%28]<<31-x%6;V[0]=V[0]<<1|V[0]>>>31;for(var x=1;x<7;x++)V[x]=V[x]>>>(x-1)*4+3;V[7]=V[7]<<5|V[7]>>>27}for(var O=this._invSubKeys=[],x=0;x<16;x++)O[x]=P[15-x]},encryptBlock:function(g,m){this._doCryptBlock(g,m,this._subKeys)},decryptBlock:function(g,m){this._doCryptBlock(g,m,this._invSubKeys)},_doCryptBlock:function(g,m,C){this._lBlock=g[m],this._rBlock=g[m+1],f.call(this,4,252645135),f.call(this,16,65535),y.call(this,2,858993459),y.call(this,8,16711935),f.call(this,1,1431655765);for(var x=0;x<16;x++){for(var S=C[x],P=this._lBlock,A=this._rBlock,V=0,U=0;U<8;U++)V|=d[U][((A^S[U])&p[U])>>>0];this._lBlock=A,this._rBlock=P^V}var O=this._lBlock;this._lBlock=this._rBlock,this._rBlock=O,f.call(this,1,1431655765),y.call(this,8,16711935),y.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),g[m]=this._lBlock,g[m+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(g,m){var C=(this._lBlock>>>g^this._rBlock)&m;this._rBlock^=C,this._lBlock^=C<<g}function y(g,m){var C=(this._rBlock>>>g^this._lBlock)&m;this._lBlock^=C,this._rBlock^=C<<g}n.DES=s._createHelper(h);var v=i.TripleDES=s.extend({_doReset:function(){var g=this._key,m=g.words;if(m.length!==2&&m.length!==4&&m.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=m.slice(0,2),x=m.length<4?m.slice(0,2):m.slice(2,4),S=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=h.createEncryptor(o.create(C)),this._des2=h.createEncryptor(o.create(x)),this._des3=h.createEncryptor(o.create(S))},encryptBlock:function(g,m){this._des1.encryptBlock(g,m),this._des2.decryptBlock(g,m),this._des3.encryptBlock(g,m)},decryptBlock:function(g,m){this._des3.decryptBlock(g,m),this._des2.encryptBlock(g,m),this._des1.decryptBlock(g,m)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(v)}(),r.TripleDES})}(K0)),K0.exports}var W0={exports:{}},zS;function v3(){return zS||(zS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.StreamCipher,s=n.algo,i=s.RC4=o.extend({_doReset:function(){for(var u=this._key,d=u.words,p=u.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,y=0;f<256;f++){var v=f%p,g=d[v>>>2]>>>24-v%4*8&255;y=(y+h[f]+g)%256;var m=h[f];h[f]=h[y],h[y]=m}this._i=this._j=0},_doProcessBlock:function(u,d){u[d]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,d=this._i,p=this._j,h=0,f=0;f<4;f++){d=(d+1)%256,p=(p+u[d])%256;var y=u[d];u[d]=u[p],u[p]=y,h|=u[(u[d]+u[p])%256]<<24-f*8}return this._i=d,this._j=p,h}n.RC4=o._createHelper(i);var c=s.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(W0)),W0.exports}var Y0={exports:{}},qS;function g3(){return qS||(qS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.StreamCipher,s=n.algo,i=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var p=this._key.words,h=this.cfg.iv,f=0;f<4;f++)p[f]=(p[f]<<8|p[f]>>>24)&16711935|(p[f]<<24|p[f]>>>8)&4278255360;var y=this._X=[p[0],p[3]<<16|p[2]>>>16,p[1],p[0]<<16|p[3]>>>16,p[2],p[1]<<16|p[0]>>>16,p[3],p[2]<<16|p[1]>>>16],v=this._C=[p[2]<<16|p[2]>>>16,p[0]&4294901760|p[1]&65535,p[3]<<16|p[3]>>>16,p[1]&4294901760|p[2]&65535,p[0]<<16|p[0]>>>16,p[2]&4294901760|p[3]&65535,p[1]<<16|p[1]>>>16,p[3]&4294901760|p[0]&65535];this._b=0;for(var f=0;f<4;f++)d.call(this);for(var f=0;f<8;f++)v[f]^=y[f+4&7];if(h){var g=h.words,m=g[0],C=g[1],x=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,S=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,P=x>>>16|S&4294901760,A=S<<16|x&65535;v[0]^=x,v[1]^=P,v[2]^=S,v[3]^=A,v[4]^=x,v[5]^=P,v[6]^=S,v[7]^=A;for(var f=0;f<4;f++)d.call(this)}},_doProcessBlock:function(p,h){var f=this._X;d.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var y=0;y<4;y++)i[y]=(i[y]<<8|i[y]>>>24)&16711935|(i[y]<<24|i[y]>>>8)&4278255360,p[h+y]^=i[y]},blockSize:128/32,ivSize:64/32});function d(){for(var p=this._X,h=this._C,f=0;f<8;f++)l[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var f=0;f<8;f++){var y=p[f]+h[f],v=y&65535,g=y>>>16,m=((v*v>>>17)+v*g>>>15)+g*g,C=((y&4294901760)*y|0)+((y&65535)*y|0);c[f]=m^C}p[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,p[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,p[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,p[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,p[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,p[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,p[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,p[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(u)}(),r.Rabbit})}(Y0)),Y0.exports}var J0={exports:{}},QS;function C3(){return QS||(QS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.StreamCipher,s=n.algo,i=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var p=this._key.words,h=this.cfg.iv,f=this._X=[p[0],p[3]<<16|p[2]>>>16,p[1],p[0]<<16|p[3]>>>16,p[2],p[1]<<16|p[0]>>>16,p[3],p[2]<<16|p[1]>>>16],y=this._C=[p[2]<<16|p[2]>>>16,p[0]&4294901760|p[1]&65535,p[3]<<16|p[3]>>>16,p[1]&4294901760|p[2]&65535,p[0]<<16|p[0]>>>16,p[2]&4294901760|p[3]&65535,p[1]<<16|p[1]>>>16,p[3]&4294901760|p[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)y[v]^=f[v+4&7];if(h){var g=h.words,m=g[0],C=g[1],x=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,S=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,P=x>>>16|S&4294901760,A=S<<16|x&65535;y[0]^=x,y[1]^=P,y[2]^=S,y[3]^=A,y[4]^=x,y[5]^=P,y[6]^=S,y[7]^=A;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(p,h){var f=this._X;d.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var y=0;y<4;y++)i[y]=(i[y]<<8|i[y]>>>24)&16711935|(i[y]<<24|i[y]>>>8)&4278255360,p[h+y]^=i[y]},blockSize:128/32,ivSize:64/32});function d(){for(var p=this._X,h=this._C,f=0;f<8;f++)l[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<l[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<l[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<l[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<l[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<l[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<l[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<l[6]>>>0?1:0)|0,this._b=h[7]>>>0<l[7]>>>0?1:0;for(var f=0;f<8;f++){var y=p[f]+h[f],v=y&65535,g=y>>>16,m=((v*v>>>17)+v*g>>>15)+g*g,C=((y&4294901760)*y|0)+((y&65535)*y|0);c[f]=m^C}p[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,p[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,p[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,p[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,p[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,p[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,p[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,p[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(u)}(),r.RabbitLegacy})}(J0)),J0.exports}var X0={exports:{}},KS;function x3(){return KS||(KS=1,function(t,e){(function(r,n,a){t.exports=n(Ve(),Lo(),No(),ao(),Et())})(ge,function(r){return function(){var n=r,a=n.lib,o=a.BlockCipher,s=n.algo;const i=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function d(v,g){let m=g>>24&255,C=g>>16&255,x=g>>8&255,S=g&255,P=v.sbox[0][m]+v.sbox[1][C];return P=P^v.sbox[2][x],P=P+v.sbox[3][S],P}function p(v,g,m){let C=g,x=m,S;for(let P=0;P<i;++P)C=C^v.pbox[P],x=d(v,C)^x,S=C,C=x,x=S;return S=C,C=x,x=S,x=x^v.pbox[i],C=C^v.pbox[i+1],{left:C,right:x}}function h(v,g,m){let C=g,x=m,S;for(let P=i+1;P>1;--P)C=C^v.pbox[P],x=d(v,C)^x,S=C,C=x,x=S;return S=C,C=x,x=S,x=x^v.pbox[1],C=C^v.pbox[0],{left:C,right:x}}function f(v,g,m){for(let A=0;A<4;A++){v.sbox[A]=[];for(let V=0;V<256;V++)v.sbox[A][V]=c[A][V]}let C=0;for(let A=0;A<i+2;A++)v.pbox[A]=l[A]^g[C],C++,C>=m&&(C=0);let x=0,S=0,P=0;for(let A=0;A<i+2;A+=2)P=p(v,x,S),x=P.left,S=P.right,v.pbox[A]=x,v.pbox[A+1]=S;for(let A=0;A<4;A++)for(let V=0;V<256;V+=2)P=p(v,x,S),x=P.left,S=P.right,v.sbox[A][V]=x,v.sbox[A][V+1]=S;return!0}var y=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,g=v.words,m=v.sigBytes/4;f(u,g,m)}},encryptBlock:function(v,g){var m=p(u,v[g],v[g+1]);v[g]=m.left,v[g+1]=m.right},decryptBlock:function(v,g){var m=h(u,v[g],v[g+1]);v[g]=m.left,v[g+1]=m.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(y)}(),r.Blowfish})}(X0)),X0.exports}(function(t,e){(function(r,n,a){t.exports=n(Ve(),Zp(),YN(),JN(),Lo(),XN(),No(),db(),sg(),ZN(),pb(),e3(),t3(),r3(),ig(),n3(),ao(),Et(),a3(),o3(),s3(),i3(),l3(),c3(),u3(),d3(),p3(),h3(),f3(),m3(),y3(),v3(),g3(),C3(),x3())})(ge,function(r){return r})})(ub);var S3=ub.exports;const P3=ti(S3);function A3(){const t=Xp(),e=Fp(),r=HN(),{token:n,signedIn:a,userId:o}=ia(v=>v.auth.session),s=async v=>{var g,m;try{const C=await BN(v);if(C.data)if(C.data.tempToken){const x=C.data.userDetails;if(x)return t(ho(x||{avatar:"",userName:"Anonymous",authority:["USER"],email:"",authenticatorUrl:"",provider:"",twoFactorEnabled:!1,twoFactorForAllUsers:!1,id:""})),e(`/options-verification?tempToken=${C.data.tempToken}`),{status:"failed",message:"Network Error! Please try again"}}else return c(C),{status:"success",message:""}}catch(C){return{status:"failed",message:((m=(g=C==null?void 0:C.response)==null?void 0:g.data)==null?void 0:m.message)||C.toString()}}},i=async v=>{var g,m;try{const C=await FN(v);if(C.data)if(C.data.tempToken){const x=C.data.userDetails;if(x)return t(ho(x||{avatar:"",userName:"Anonymous",authority:["USER"],email:"",authenticatorUrl:"",provider:"",twoFactorEnabled:!1,id:""})),e(`/verification?tempToken=${C.data.tempToken}`),{status:"failed",message:"Network Error! Please try again"}}else return c(C),{status:"success",message:""}}catch(C){return{status:"failed",message:((m=(g=C==null?void 0:C.response)==null?void 0:g.data)==null?void 0:m.message)||C.toString()}}},l=async(v,g)=>{var m,C;try{const x=lL[`NUMBER_${v}`],S=await MN(v,g);if(localStorage.setItem(Ix,String(x)),S.data)if(S.data.tempToken){const P=S.data.userDetails;if(P)return t(ho(P)),e(`/verification?tempToken=${S.data.tempToken}`),{status:"failed",message:"Network Error! Please try again"}}else return c(S),{status:"success",message:""}}catch(x){return{status:"failed",message:((C=(m=x==null?void 0:x.response)==null?void 0:m.data)==null?void 0:C.message)||x.toString()}}},c=v=>{var S;const{jwtToken:g}=v.data,m=hS(g);t(wx({token:g,userId:m.UserId,tenantId:m.TenantId}));const x={authority:[`${m.Role}`],avatar:v.data.userDetails.avatar,email:m.email,userName:`${v.data.userDetails.firstName} ${v.data.userDetails.lastName}`,twoFactorEnabled:v.data.userDetails.twoFactorEnabled,twoFactorForAllUsers:v.data.globalTwoFactorStatus,authenticatorUrl:v.data.userDetails.authenticatorUrl,id:v.data.userDetails.id,provider:v.data.userDetails.provider,roleId:m.RoleId,roleName:m.Role,phone:v.data.userDetails.phoneNumber??"",courseId:((S=v==null?void 0:v.data)==null?void 0:S.userDetails.courseId)??""};localStorage.setItem(Vx,m.RoleId),x&&t(ho(x)),d({roleId:m.RoleId,portalName:"default"})},u=v=>{const g=[];return v.forEach(m=>{g.push({id:m.id,menuName:m.menuName,isView:m.isView,isEdit:m.isEdit,isDelete:m.isDelete,isManage:m.isManage}),m.childMenus&&m.childMenus.$values&&g.push(...u(m.childMenus.$values))}),g},d=async(v,g=!1)=>{const m=await zN(v.roleId,v.portalName),C=u([{$id:"29",childMenus:{$id:"20",$values:[]},id:"4fe753b4-ddef-4e0b-8e6c-70d24c9adb28",isDelete:!0,isEdit:!0,isManage:!0,isView:!0,menuName:"My Course",parentId:null,routeLink:"/app/courses",sequence:1},{$id:"299",childMenus:{$id:"40",$values:[]},id:"4fe753b4-ddef-4e0b-8e6c-46736c9adb28",isDelete:!0,isEdit:!0,isManage:!0,isView:!0,menuName:"FAQ's",parentId:null,routeLink:"/app/faq",sequence:2},{$id:"399",childMenus:{$id:"39",$values:[]},id:"4fe753b4-ddef-4e0b-8e6c-w88d24c9adb28",isDelete:!0,isEdit:!0,isManage:!0,isView:!0,menuName:"Support Request",parentId:null,routeLink:"/app/support-request",sequence:3},{$id:"459",childMenus:{$id:"39",$values:[]},id:"4fe753b4-ddef-4e0b-8e6c-w88d24c9adb28",isDelete:!0,isEdit:!0,isManage:!0,isView:!0,menuName:"Documents",parentId:null,routeLink:"/app/documents",sequence:3}]);t(iM(C));const x=P3.AES.encrypt(JSON.stringify((await m).data),"7888").toString();localStorage.setItem("permissions",x);const S=r.get(oM);g||e(S||Wt.authenticatedEntryPath)},p=async(v,g)=>{var m,C;try{const x=await GN(0,v);if(x.data){const{jwtToken:S}=x.data;if(S){const P=hS(S);if(t(wx({token:S,userId:P.UserId,tenantId:P.TenantId})),localStorage.setItem(Vx,P.RoleId),x.data.userDetails){const A={...x.data.userDetails,userName:`${x.data.userDetails.firstName} ${x.data.userDetails.lastName}`};t(ho(A))}if(d({roleId:P.RoleId,portalName:"default"},!0),g){const V=new URLSearchParams(window.location.search).get("priceId");t(uM(!0)),e(V?`/checkout?priceId=${V}`:"/products")}else e("/app/documents");return{status:"success",message:""}}else return{status:"failed",message:"Token not received from sign-up response"}}}catch(x){return{status:"failed",message:((C=(m=x==null?void 0:x.response)==null?void 0:m.data)==null?void 0:C.message)||x.toString()}}},h=async()=>{const v=localStorage.getItem(Ix),g=await NN(o);if(g!=null&&g.success)if(localStorage.removeItem("login_type"),t(zp()),t(ho({avatar:"",userName:"",authority:[],email:"",authenticatorUrl:"",provider:"",twoFactorEnabled:!1,twoFactorForAllUsers:!1,id:"",roleId:""})),v==="4"){const m="",C=Wt.auth0ClientId,x=window.location.origin+Wt.unAuthenticatedEntryPath;window.location.href=`https://${m}/v2/logout?client_id=${C}&returnTo=${encodeURIComponent(x)}`}else e(Wt.unAuthenticatedEntryPath)};return{authenticated:n&&a,signIn:s,signInExternal:l,signUp:p,signOut:async()=>{h()},verifyTwoFactor:async v=>{var g,m;try{const C=await LN(v);return c(C),{status:"success",message:""}}catch(C){return{status:"failed",message:((m=(g=C==null?void 0:C.response)==null?void 0:g.data)==null?void 0:m.message)||C.toString()}}},signInByUserId:i}}function O3(){const t=ia(n=>n.theme.direction),e=Xp(),r=n=>{e(V4(n))};return B.useEffect(()=>{if(window===void 0)return;window.document.documentElement.setAttribute("dir",t)},[t]),[t,r]}function Bn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tw(n.key),n)}}function Mn(t,e,r){return e&&WS(t.prototype,e),r&&WS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ga(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Lm(t,e)}function eh(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}function oc(t,e){if(e&&(Hr(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ga(t)}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rn(t)}function V3(t){if(Array.isArray(t))return t}function I3(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w3(t,e){if(t){if(typeof t=="string")return YS(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?YS(t,e):void 0}}function b3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
123
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T3(t){return V3(t)||I3(t)||w3(t)||b3()}function JS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function XS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?JS(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var E3={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,r){console&&console[e]&&console[e].apply(console,r)}},R3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,t),this.init(e,r)}return Mn(t,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=r||E3,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(r){this.debug=r}},{key:"log",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(r,n,a,o){return o&&!this.debug?null:(typeof r[0]=="string"&&(r[0]="".concat(a).concat(this.prefix," ").concat(r[0])),this.logger[n](r))}},{key:"create",value:function(r){return new t(this.logger,XS(XS({},{prefix:"".concat(this.prefix,":").concat(r,":")}),this.options))}},{key:"clone",value:function(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new t(this.logger,r)}}]),t}(),Pn=new R3,Ya=function(){function t(){Bn(this,t),this.observers={}}return Mn(t,[{key:"on",value:function(r,n){var a=this;return r.split(" ").forEach(function(o){a.observers[o]=a.observers[o]||[],a.observers[o].push(n)}),this}},{key:"off",value:function(r,n){if(this.observers[r]){if(!n){delete this.observers[r];return}this.observers[r]=this.observers[r].filter(function(a){return a!==n})}}},{key:"emit",value:function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];if(this.observers[r]){var s=[].concat(this.observers[r]);s.forEach(function(l){l.apply(void 0,a)})}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach(function(l){l.apply(l,[r].concat(a))})}}}]),t}();function _i(){var t,e,r=new Promise(function(n,a){t=n,e=a});return r.resolve=t,r.reject=e,r}function ZS(t){return t==null?"":""+t}function D3(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function lg(t,e,r){function n(i){return i&&i.indexOf("###")>-1?i.replace(/###/g,"."):i}function a(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(a())return{};var s=n(o.shift());!t[s]&&r&&(t[s]=new r),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={}}return a()?{}:{obj:t,k:n(o.shift())}}function eP(t,e,r){var n=lg(t,e,Object),a=n.obj,o=n.k;a[o]=r}function k3(t,e,r,n){var a=lg(t,e,Object),o=a.obj,s=a.k;o[s]=o[s]||[],n&&(o[s]=o[s].concat(r)),n||o[s].push(r)}function bd(t,e){var r=lg(t,e),n=r.obj,a=r.k;if(n)return n[a]}function _3(t,e,r){var n=bd(t,r);return n!==void 0?n:bd(e,r)}function hb(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):hb(t[n],e[n],r):t[n]=e[n]);return t}function Yo(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var U3={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function B3(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return U3[e]}):t}var th=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,M3=[" ",",","?","!",";"];function F3(t,e,r){e=e||"",r=r||"";var n=M3.filter(function(i){return e.indexOf(i)<0&&r.indexOf(i)<0});if(n.length===0)return!0;var a=new RegExp("(".concat(n.map(function(i){return i==="?"?"\\?":i}).join("|"),")")),o=!a.test(t);if(!o){var s=t.indexOf(r);s>0&&!a.test(t.substring(0,s))&&(o=!0)}return o}function Td(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),a=t,o=0;o<n.length;++o){if(!a||typeof a[n[o]]=="string"&&o+1<n.length)return;if(a[n[o]]===void 0){for(var s=2,i=n.slice(o,o+s).join(r),l=a[i];l===void 0&&n.length>o+s;)s++,i=n.slice(o,o+s).join(r),l=a[i];if(l===void 0)return;if(l===null)return null;if(e.endsWith(i)){if(typeof l=="string")return l;if(i&&typeof l[i]=="string")return l[i]}var c=n.slice(o+s).join(r);return c?Td(l,c,r):void 0}a=a[n[o]]}return a}}function tP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function $c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function L3(t){var e=N3();return function(){var n=Rn(t),a;if(e){var o=Rn(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return oc(this,a)}}function N3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var G3=function(t){eh(r,t);var e=L3(r);function r(n){var a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Bn(this,r),a=e.call(this),th&&Ya.call(Ga(a)),a.data=n||{},a.options=o,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.options.ignoreJSONStructure===void 0&&(a.options.ignoreJSONStructure=!0),a}return Mn(r,[{key:"addNamespaces",value:function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}},{key:"removeNamespaces",value:function(a){var o=this.options.ns.indexOf(a);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(a,o,s){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,c=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,u=[a,o];s&&typeof s!="string"&&(u=u.concat(s)),s&&typeof s=="string"&&(u=u.concat(l?s.split(l):s)),a.indexOf(".")>-1&&(u=a.split("."));var d=bd(this.data,u);return d||!c||typeof s!="string"?d:Td(this.data&&this.data[a]&&this.data[a][o],s,l)}},{key:"addResource",value:function(a,o,s,i){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=[a,o];s&&(u=u.concat(c?s.split(c):s)),a.indexOf(".")>-1&&(u=a.split("."),i=o,o=u[1]),this.addNamespaces(o),eP(this.data,u,i),l.silent||this.emit("added",a,o,s,i)}},{key:"addResources",value:function(a,o,s){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(a,o,l,s[l],{silent:!0});i.silent||this.emit("added",a,o,s)}},{key:"addResourceBundle",value:function(a,o,s,i,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},u=[a,o];a.indexOf(".")>-1&&(u=a.split("."),i=s,s=o,o=u[1]),this.addNamespaces(o);var d=bd(this.data,u)||{};i?hb(d,s,l):d=$c($c({},d),s),eP(this.data,u,d),c.silent||this.emit("added",a,o,s)}},{key:"removeResourceBundle",value:function(a,o){this.hasResourceBundle(a,o)&&delete this.data[a][o],this.removeNamespaces(o),this.emit("removed",a,o)}},{key:"hasResourceBundle",value:function(a,o){return this.getResource(a,o)!==void 0}},{key:"getResourceBundle",value:function(a,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?$c($c({},{}),this.getResource(a,o)):this.getResource(a,o)}},{key:"getDataByLanguage",value:function(a){return this.data[a]}},{key:"hasLanguageSomeTranslations",value:function(a){var o=this.getDataByLanguage(a),s=o&&Object.keys(o)||[];return!!s.find(function(i){return o[i]&&Object.keys(o[i]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(Ya),fb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,r,n,a,o){var s=this;return e.forEach(function(i){s.processors[i]&&(r=s.processors[i].process(r,n,a,o))}),r}};function rP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Gt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function H3(t){var e=j3();return function(){var n=Rn(t),a;if(e){var o=Rn(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return oc(this,a)}}function j3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var nP={},aP=function(t){eh(r,t);var e=H3(r);function r(n){var a,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bn(this,r),a=e.call(this),th&&Ya.call(Ga(a)),D3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Ga(a)),a.options=o,a.options.keySeparator===void 0&&(a.options.keySeparator="."),a.logger=Pn.create("translator"),a}return Mn(r,[{key:"changeLanguage",value:function(a){a&&(this.language=a)}},{key:"exists",value:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(a==null)return!1;var s=this.resolve(a,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(a,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=s&&a.indexOf(s)>-1,u=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!F3(a,s,i);if(c&&!u){var d=a.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:a,namespaces:l};var p=a.split(s);(s!==i||s===i&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),a=p.join(i)}return typeof l=="string"&&(l=[l]),{key:a,namespaces:l}}},{key:"translate",value:function(a,o,s){var i=this;if(Hr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Hr(o)==="object"&&(o=Gt({},o)),o||(o={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=this.extractFromKey(a[a.length-1],o),d=u.key,p=u.namespaces,h=p[p.length-1],f=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(y){var v=o.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(h).concat(v).concat(d),usedKey:d,exactUsedKey:d,usedLng:f,usedNS:h}:"".concat(h).concat(v).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:f,usedNS:h}:d}var g=this.resolve(a,o),m=g&&g.res,C=g&&g.usedKey||d,x=g&&g.exactUsedKey||d,S=Object.prototype.toString.apply(m),P=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,V=!this.i18nFormat||this.i18nFormat.handleAsObject,U=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(V&&m&&U&&P.indexOf(S)<0&&!(typeof A=="string"&&S==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,m,Gt(Gt({},o),{},{ns:p})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(g.res=O,g):O}if(c){var I=S==="[object Array]",L=I?[]:{},N=I?x:C;for(var G in m)if(Object.prototype.hasOwnProperty.call(m,G)){var H="".concat(N).concat(c).concat(G);L[G]=this.translate(H,Gt(Gt({},o),{joinArrays:!1,ns:p})),L[G]===H&&(L[G]=m[G])}m=L}}else if(V&&typeof A=="string"&&S==="[object Array]")m=m.join(A),m&&(m=this.extendTranslation(m,a,o,s));else{var $=!1,X=!1,F=o.count!==void 0&&typeof o.count!="string",Y=r.hasDefaultValue(o),Q=F?this.pluralResolver.getSuffix(f,o.count,o):"",M=o["defaultValue".concat(Q)]||o.defaultValue;!this.isValidLookup(m)&&Y&&($=!0,m=M),this.isValidLookup(m)||(X=!0,m=d);var z=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,W=z&&X?void 0:m,q=Y&&M!==m&&this.options.updateMissing;if(X||$||q){if(this.logger.log(q?"updateKey":"missingKey",f,h,d,q?M:m),c){var ae=this.resolve(d,Gt(Gt({},o),{},{keySeparator:!1}));ae&&ae.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var oe=[],pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(var ue=0;ue<pe.length;ue++)oe.push(pe[ue]);else this.options.saveMissingTo==="all"?oe=this.languageUtils.toResolveHierarchy(o.lng||this.language):oe.push(o.lng||this.language);var He=function(Ae,Ne,Oe){var xt=Y&&Oe!==m?Oe:W;i.options.missingKeyHandler?i.options.missingKeyHandler(Ae,h,Ne,xt,q,o):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(Ae,h,Ne,xt,q,o),i.emit("missingKey",Ae,h,Ne,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?oe.forEach(function(Se){i.pluralResolver.getSuffixes(Se,o).forEach(function(Ae){He([Se],d+Ae,o["defaultValue".concat(Ae)]||M)})}):He(oe,d,M))}m=this.extendTranslation(m,a,o,g,s),X&&m===d&&this.options.appendNamespaceToMissingKey&&(m="".concat(h,":").concat(d)),(X||$)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(d):d,$?m:void 0):m=this.options.parseMissingKeyHandler(m))}return l?(g.res=m,g):m}},{key:"extendTranslation",value:function(a,o,s,i,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)a=this.i18nFormat.parse(a,Gt(Gt({},this.options.interpolation.defaultVariables),s),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Gt(Gt({},s),{interpolation:Gt(Gt({},this.options.interpolation),s.interpolation)}));var u=typeof a=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(u){var p=a.match(this.interpolator.nestingRegexp);d=p&&p.length}var h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h=Gt(Gt({},this.options.interpolation.defaultVariables),h)),a=this.interpolator.interpolate(a,h,s.lng||this.language,s),u){var f=a.match(this.interpolator.nestingRegexp),y=f&&f.length;d<y&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(s.lng=i.usedLng),s.nest!==!1&&(a=this.interpolator.nest(a,function(){for(var m=arguments.length,C=new Array(m),x=0;x<m;x++)C[x]=arguments[x];return l&&l[0]===C[0]&&!s.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(C[0]," in key: ").concat(o[0])),null):c.translate.apply(c,C.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var v=s.postProcess||this.options.postProcess,g=typeof v=="string"?[v]:v;return a!=null&&g&&g.length&&s.applyPostProcessor!==!1&&(a=fb.handle(g,a,o,this.options&&this.options.postProcessPassResolved?Gt({i18nResolved:i},s):s,this)),a}},{key:"resolve",value:function(a){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,l,c,u,d;return typeof a=="string"&&(a=[a]),a.forEach(function(p){if(!o.isValidLookup(i)){var h=o.extractFromKey(p,s),f=h.key;l=f;var y=h.namespaces;o.options.fallbackNS&&(y=y.concat(o.options.fallbackNS));var v=s.count!==void 0&&typeof s.count!="string",g=v&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),m=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",C=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);y.forEach(function(x){o.isValidLookup(i)||(d=x,!nP["".concat(C[0],"-").concat(x)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(d)&&(nP["".concat(C[0],"-").concat(x)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(C.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(function(S){if(!o.isValidLookup(i)){u=S;var P=[f];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(P,f,S,x,s);else{var A;v&&(A=o.pluralResolver.getSuffix(S,s.count,s));var V="".concat(o.options.pluralSeparator,"zero");if(v&&(P.push(f+A),g&&P.push(f+V)),m){var U="".concat(f).concat(o.options.contextSeparator).concat(s.context);P.push(U),v&&(P.push(U+A),g&&P.push(U+V))}}for(var O;O=P.pop();)o.isValidLookup(i)||(c=O,i=o.getResource(S,x,O,s))}}))})}}),{res:i,usedKey:l,exactUsedKey:c,usedLng:u,usedNS:d}}},{key:"isValidLookup",value:function(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}},{key:"getResource",value:function(a,o,s){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(a,o,s,i):this.resourceStore.getResource(a,o,s,i)}}],[{key:"hasDefaultValue",value:function(a){var o="defaultValue";for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s)&&o===s.substring(0,o.length)&&a[s]!==void 0)return!0;return!1}}]),r}(Ya);function Z0(t){return t.charAt(0).toUpperCase()+t.slice(1)}var oP=function(){function t(e){Bn(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Pn.create("languageUtils")}return Mn(t,[{key:"getScriptPartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return null;var n=r.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(r){if(!r||r.indexOf("-")<0)return r;var n=r.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(r){if(typeof r=="string"&&r.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],a=r.split("-");return this.options.lowerCaseLng?a=a.map(function(o){return o.toLowerCase()}):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=Z0(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=Z0(a[1].toLowerCase())),n.indexOf(a[2].toLowerCase())>-1&&(a[2]=Z0(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}},{key:"isSupportedCode",value:function(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}},{key:"getBestMatchFromCodes",value:function(r){var n=this;if(!r)return null;var a;return r.forEach(function(o){if(!a){var s=n.formatLanguageCode(o);(!n.options.supportedLngs||n.isSupportedCode(s))&&(a=s)}}),!a&&this.options.supportedLngs&&r.forEach(function(o){if(!a){var s=n.getLanguagePartFromCode(o);if(n.isSupportedCode(s))return a=s;a=n.options.supportedLngs.find(function(i){if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}},{key:"getFallbackCodes",value:function(r,n){if(!r)return[];if(typeof r=="function"&&(r=r(n)),typeof r=="string"&&(r=[r]),Object.prototype.toString.apply(r)==="[object Array]")return r;if(!n)return r.default||[];var a=r[n];return a||(a=r[this.getScriptPartFromCode(n)]),a||(a=r[this.formatLanguageCode(n)]),a||(a=r[this.getLanguagePartFromCode(n)]),a||(a=r.default),a||[]}},{key:"toResolveHierarchy",value:function(r,n){var a=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],r),s=[],i=function(c){c&&(a.isSupportedCode(c)?s.push(c):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof r=="string"&&r.indexOf("-")>-1?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(r))):typeof r=="string"&&i(this.formatLanguageCode(r)),o.forEach(function(l){s.indexOf(l)<0&&i(a.formatLanguageCode(l))}),s}}]),t}(),$3=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],z3={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},q3=["v1","v2","v3"],sP={zero:0,one:1,two:2,few:3,many:4,other:5};function Q3(){var t={};return $3.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:z3[e.fc]}})}),t}var K3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bn(this,t),this.languageUtils=e,this.options=r,this.logger=Pn.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Q3()}return Mn(t,[{key:"addRule",value:function(r,n){this.rules[r]=n}},{key:"getRule",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(r,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}},{key:"needsPlural",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(r,n);return this.shouldUseIntlApi()?a&&a.resolvedOptions().pluralCategories.length>1:a&&a.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,a).map(function(o){return"".concat(n).concat(o)})}},{key:"getSuffixes",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(r,a);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,i){return sP[s]-sP[i]}).map(function(s){return"".concat(n.options.prepend).concat(s)}):o.numbers.map(function(s){return n.getSuffix(r,s,a)}):[]}},{key:"getSuffix",value:function(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(r,a);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(n)):this.getSuffixRetroCompatible(o,n):(this.logger.warn("no plural rule found for: ".concat(r)),"")}},{key:"getSuffixRetroCompatible",value:function(r,n){var a=this,o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),s=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var i=function(){return a.options.prepend&&s.toString()?a.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!q3.includes(this.options.compatibilityJSON)}}]),t}();function iP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?iP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lP(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=_3(t,e,r);return!o&&a&&typeof r=="string"&&(o=Td(t,r,n),o===void 0&&(o=Td(e,r,n))),o}var W3=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bn(this,t),this.logger=Pn.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return Mn(t,[{key:"init",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});var n=r.interpolation;this.escape=n.escape!==void 0?n.escape:B3,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Yo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Yo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Yo(n.nestingPrefix):n.nestingPrefixEscaped||Yo("$t("),this.nestingSuffix=n.nestingSuffix?Yo(n.nestingSuffix):n.nestingSuffixEscaped||Yo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var r="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(r,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(r,n,a,o){var s=this,i,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(v){return v.replace(/\$/g,"$$$$")}var p=function(g){if(g.indexOf(s.formatSeparator)<0){var m=lP(n,u,g,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(m,void 0,a,Wr(Wr(Wr({},o),n),{},{interpolationkey:g})):m}var C=g.split(s.formatSeparator),x=C.shift().trim(),S=C.join(s.formatSeparator).trim();return s.format(lP(n,u,x,s.options.keySeparator,s.options.ignoreJSONStructure),S,a,Wr(Wr(Wr({},o),n),{},{interpolationkey:x}))};this.resetRegExp();var h=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(g){return d(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?d(s.escape(g)):d(g)}}];return y.forEach(function(v){for(c=0;i=v.regex.exec(r);){var g=i[1].trim();if(l=p(g),l===void 0)if(typeof h=="function"){var m=h(r,i,o);l=typeof m=="string"?m:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))l="";else if(f){l=i[0];continue}else s.logger.warn("missed to pass in variable ".concat(g," for interpolating ").concat(r)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=ZS(l));var C=v.safeValue(l);if(r=r.replace(i[0],C),f?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,c++,c>=s.maxReplaces)break}}),r}},{key:"nest",value:function(r,n){var a=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,l;function c(h,f){var y=this.nestingOptionsSeparator;if(h.indexOf(y)<0)return h;var v=h.split(new RegExp("".concat(y,"[ ]*{"))),g="{".concat(v[1]);h=v[0],g=this.interpolate(g,l);var m=g.match(/'/g),C=g.match(/"/g);(m&&m.length%2===0&&!C||C.length%2!==0)&&(g=g.replace(/'/g,'"'));try{l=JSON.parse(g),f&&(l=Wr(Wr({},f),l))}catch(x){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),x),"".concat(h).concat(y).concat(g)}return delete l.defaultValue,h}for(;s=this.nestingRegexp.exec(r);){var u=[];l=Wr({},o),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var p=s[1].split(this.formatSeparator).map(function(h){return h.trim()});s[1]=p.shift(),u=p,d=!0}if(i=n(c.call(this,s[1].trim(),l),l),i&&s[0]===r&&typeof i!="string")return i;typeof i!="string"&&(i=ZS(i)),i||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(r)),i=""),d&&(i=u.reduce(function(h,f){return a.format(h,f,o.lng,Wr(Wr({},o),{},{interpolationkey:s[1].trim()}))},i.trim())),r=r.replace(s[0],i),this.regexp.lastIndex=0}return r}}]),t}();function cP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Nn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Y3(t){var e=t.toLowerCase().trim(),r={};if(t.indexOf("(")>-1){var n=t.split("(");e=n[0].toLowerCase().trim();var a=n[1].substring(0,n[1].length-1);if(e==="currency"&&a.indexOf(":")<0)r.currency||(r.currency=a.trim());else if(e==="relativetime"&&a.indexOf(":")<0)r.range||(r.range=a.trim());else{var o=a.split(";");o.forEach(function(s){if(s){var i=s.split(":"),l=T3(i),c=l[0],u=l.slice(1),d=u.join(":").trim().replace(/^'+|'+$/g,"");r[c.trim()]||(r[c.trim()]=d),d==="false"&&(r[c.trim()]=!1),d==="true"&&(r[c.trim()]=!0),isNaN(d)||(r[c.trim()]=parseInt(d,10))}})}}return{formatName:e,formatOptions:r}}function Jo(t){var e={};return function(n,a,o){var s=a+JSON.stringify(o),i=e[s];return i||(i=t(a,o),e[s]=i),i(n)}}var J3=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bn(this,t),this.logger=Pn.create("formatter"),this.options=e,this.formats={number:Jo(function(r,n){var a=new Intl.NumberFormat(r,Nn({},n));return function(o){return a.format(o)}}),currency:Jo(function(r,n){var a=new Intl.NumberFormat(r,Nn(Nn({},n),{},{style:"currency"}));return function(o){return a.format(o)}}),datetime:Jo(function(r,n){var a=new Intl.DateTimeFormat(r,Nn({},n));return function(o){return a.format(o)}}),relativetime:Jo(function(r,n){var a=new Intl.RelativeTimeFormat(r,Nn({},n));return function(o){return a.format(o,n.range||"day")}}),list:Jo(function(r,n){var a=new Intl.ListFormat(r,Nn({},n));return function(o){return a.format(o)}})},this.init(e)}return Mn(t,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},a=n.interpolation;this.formatSeparator=a.formatSeparator?a.formatSeparator:a.formatSeparator||","}},{key:"add",value:function(r,n){this.formats[r.toLowerCase().trim()]=n}},{key:"addCached",value:function(r,n){this.formats[r.toLowerCase().trim()]=Jo(n)}},{key:"format",value:function(r,n,a){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=n.split(this.formatSeparator),l=i.reduce(function(c,u){var d=Y3(u),p=d.formatName,h=d.formatOptions;if(o.formats[p]){var f=c;try{var y=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},v=y.locale||y.lng||s.locale||s.lng||a;f=o.formats[p](c,v,Nn(Nn(Nn({},h),s),y))}catch(g){o.logger.warn(g)}return f}else o.logger.warn("there was no format function for ".concat(p));return c},r);return l}}]),t}();function uP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function dP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function X3(t){var e=Z3();return function(){var n=Rn(t),a;if(e){var o=Rn(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return oc(this,a)}}function Z3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e8(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var t8=function(t){eh(r,t);var e=X3(r);function r(n,a,o){var s,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Bn(this,r),s=e.call(this),th&&Ya.call(Ga(s)),s.backend=n,s.store=a,s.services=o,s.languageUtils=o.languageUtils,s.options=i,s.logger=Pn.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=i.maxParallelReads||10,s.readingCalls=0,s.maxRetries=i.maxRetries>=0?i.maxRetries:5,s.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,i.backend,i),s}return Mn(r,[{key:"queueLoad",value:function(a,o,s,i){var l=this,c={},u={},d={},p={};return a.forEach(function(h){var f=!0;o.forEach(function(y){var v="".concat(h,"|").concat(y);!s.reload&&l.store.hasResourceBundle(h,y)?l.state[v]=2:l.state[v]<0||(l.state[v]===1?u[v]===void 0&&(u[v]=!0):(l.state[v]=1,f=!1,u[v]===void 0&&(u[v]=!0),c[v]===void 0&&(c[v]=!0),p[y]===void 0&&(p[y]=!0)))}),f||(d[h]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(a,o,s){var i=a.split("|"),l=i[0],c=i[1];o&&this.emit("failedLoading",l,c,o),s&&this.store.addResourceBundle(l,c,s),this.state[a]=o?-1:2;var u={};this.queue.forEach(function(d){k3(d.loaded,[l],c),e8(d,a),o&&d.errors.push(o),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(p){u[p]||(u[p]={});var h=d.loaded[p];h.length&&h.forEach(function(f){u[p][f]===void 0&&(u[p][f]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(a,o,s){var i=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,u=arguments.length>5?arguments[5]:void 0;if(!a.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:o,fcName:s,tried:l,wait:c,callback:u});return}this.readingCalls++;var d=function(y,v){if(i.readingCalls--,i.waitingReads.length>0){var g=i.waitingReads.shift();i.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(y&&v&&l<i.maxRetries){setTimeout(function(){i.read.call(i,a,o,s,l+1,c*2,u)},c);return}u(y,v)},p=this.backend[s].bind(this.backend);if(p.length===2){try{var h=p(a,o);h&&typeof h.then=="function"?h.then(function(f){return d(null,f)}).catch(d):d(null,h)}catch(f){d(f)}return}return p(a,o,d)}},{key:"prepareLoading",value:function(a,o){var s=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof a=="string"&&(a=this.languageUtils.toResolveHierarchy(a)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(a,o,i,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(u){s.loadOne(u)})}},{key:"load",value:function(a,o,s){this.prepareLoading(a,o,{},s)}},{key:"reload",value:function(a,o,s){this.prepareLoading(a,o,{reload:!0},s)}},{key:"loadOne",value:function(a){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=a.split("|"),l=i[0],c=i[1];this.read(l,c,"read",void 0,void 0,function(u,d){u&&o.logger.warn("".concat(s,"loading namespace ").concat(c," for language ").concat(l," failed"),u),!u&&d&&o.logger.log("".concat(s,"loaded namespace ").concat(c," for language ").concat(l),d),o.loaded(a,u,d)})}},{key:"saveMissing",value:function(a,o,s,i,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){var d=dP(dP({},c),{},{isUpdate:l}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var h;p.length===5?h=p(a,o,s,i,d):h=p(a,o,s,i),h&&typeof h.then=="function"?h.then(function(f){return u(null,f)}).catch(u):u(null,h)}catch(f){u(f)}else p(a,o,s,i,u,d)}!a||!a[0]||this.store.addResource(a[0],o,s,i)}}}]),r}(Ya);function pP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var r={};if(Hr(e[1])==="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),Hr(e[2])==="object"||Hr(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(a){r[a]=n[a]})}return r},interpolation:{escapeValue:!0,format:function(e,r,n,a){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function hP(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function fP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function fn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function r8(t){var e=n8();return function(){var n=Rn(t),a;if(e){var o=Rn(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return oc(this,a)}}function n8(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zc(){}function a8(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(r){typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}var Ed=function(t){eh(r,t);var e=r8(r);function r(){var n,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Bn(this,r),n=e.call(this),th&&Ya.call(Ga(n)),n.options=hP(a),n.services={},n.logger=Pn,n.modules={external:[]},a8(Ga(n)),o&&!n.isInitialized&&!a.isClone){if(!n.options.initImmediate)return n.init(a,o),oc(n,Ga(n));setTimeout(function(){n.init(a,o)},0)}return n}return Mn(r,[{key:"init",value:function(){var a=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var i=pP();this.options=fn(fn(fn({},i),this.options),hP(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=fn(fn({},i.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(g){return g?typeof g=="function"?new g:g:null}if(!this.options.isClone){this.modules.logger?Pn.init(l(this.modules.logger),this.options):Pn.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=J3);var u=new oP(this.options);this.store=new G3(this.options.resources,this.options);var d=this.services;d.logger=Pn,d.resourceStore=this.store,d.languageUtils=u,d.pluralResolver=new K3(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=l(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new W3(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new t8(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(g){for(var m=arguments.length,C=new Array(m>1?m-1:0),x=1;x<m;x++)C[x-1]=arguments[x];a.emit.apply(a,[g].concat(C))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new aP(this.services,this.options),this.translator.on("*",function(g){for(var m=arguments.length,C=new Array(m>1?m-1:0),x=1;x<m;x++)C[x-1]=arguments[x];a.emit.apply(a,[g].concat(C))}),this.modules.external.forEach(function(g){g.init&&g.init(a)})}if(this.format=this.options.interpolation.format,s||(s=zc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(g){a[g]=function(){var m;return(m=a.store)[g].apply(m,arguments)}});var f=["addResource","addResources","addResourceBundle","removeResourceBundle"];f.forEach(function(g){a[g]=function(){var m;return(m=a.store)[g].apply(m,arguments),a}});var y=_i(),v=function(){var m=function(x,S){a.isInitialized&&!a.initializedStoreOnce&&a.logger.warn("init: i18next is already initialized. You should call init just once!"),a.isInitialized=!0,a.options.isClone||a.logger.log("initialized",a.options),a.emit("initialized",a.options),y.resolve(S),s(x,S)};if(a.languages&&a.options.compatibilityAPI!=="v1"&&!a.isInitialized)return m(null,a.t.bind(a));a.changeLanguage(a.options.lng,m)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),y}},{key:"loadResources",value:function(a){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zc,i=s,l=typeof a=="string"?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return i();var c=[],u=function(h){if(h){var f=o.services.languageUtils.toResolveHierarchy(h);f.forEach(function(y){c.indexOf(y)<0&&c.push(y)})}};if(l)u(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(p){return u(p)})}this.options.preload&&this.options.preload.forEach(function(p){return u(p)}),this.services.backendConnector.load(c,this.options.ns,function(p){!p&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),i(p)})}else i(null)}},{key:"reloadResources",value:function(a,o,s){var i=_i();return a||(a=this.languages),o||(o=this.options.ns),s||(s=zc),this.services.backendConnector.reload(a,o,function(l){i.resolve(),s(l)}),i}},{key:"use",value:function(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&fb.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}},{key:"setResolvedLanguage",value:function(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(a,o){var s=this;this.isLanguageChangingTo=a;var i=_i();this.emit("languageChanging",a);var l=function(p){s.language=p,s.languages=s.services.languageUtils.toResolveHierarchy(p),s.resolvedLanguage=void 0,s.setResolvedLanguage(p)},c=function(p,h){h?(l(h),s.translator.changeLanguage(h),s.isLanguageChangingTo=void 0,s.emit("languageChanged",h),s.logger.log("languageChanged",h)):s.isLanguageChangingTo=void 0,i.resolve(function(){return s.t.apply(s,arguments)}),o&&o(p,function(){return s.t.apply(s,arguments)})},u=function(p){!a&&!p&&s.services.languageDetector&&(p=[]);var h=typeof p=="string"?p:s.services.languageUtils.getBestMatchFromCodes(p);h&&(s.language||l(h),s.translator.language||s.translator.changeLanguage(h),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(h)),s.loadResources(h,function(f){c(f,h)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(a),i}},{key:"getFixedT",value:function(a,o,s){var i=this,l=function c(u,d){var p;if(Hr(d)!=="object"){for(var h=arguments.length,f=new Array(h>2?h-2:0),y=2;y<h;y++)f[y-2]=arguments[y];p=i.options.overloadTranslationOptionHandler([u,d].concat(f))}else p=fn({},d);p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix=p.keyPrefix||s||c.keyPrefix;var v=i.options.keySeparator||".",g;return p.keyPrefix&&Array.isArray(u)?g=u.map(function(m){return"".concat(p.keyPrefix).concat(v).concat(m)}):g=p.keyPrefix?"".concat(p.keyPrefix).concat(v).concat(u):u,i.t(g,p)};return typeof a=="string"?l.lng=a:l.lngs=a,l.ns=o,l.keyPrefix=s,l}},{key:"t",value:function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)}},{key:"exists",value:function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)}},{key:"setDefaultNamespace",value:function(a){this.options.defaultNS=a}},{key:"hasLoadedNamespace",value:function(a){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=s.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var u=function(h,f){var y=o.services.backendConnector.state["".concat(h,"|").concat(f)];return y===-1||y===2};if(s.precheck){var d=s.precheck(this,u);if(d!==void 0)return d}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||u(i,a)&&(!l||u(c,a)))}},{key:"loadNamespaces",value:function(a,o){var s=this,i=_i();return this.options.ns?(typeof a=="string"&&(a=[a]),a.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){i.resolve(),o&&o(l)}),i):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(a,o){var s=_i();typeof a=="string"&&(a=[a]);var i=this.options.preload||[],l=a.filter(function(c){return i.indexOf(c)<0});return l.length?(this.options.preload=i.concat(l),this.loadResources(function(c){s.resolve(),o&&o(c)}),s):(o&&o(),Promise.resolve())}},{key:"dir",value:function(a){if(a||(a=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!a)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new oP(pP());return o.indexOf(s.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var a=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zc,i=fn(fn(fn({},this.options),o),{isClone:!0}),l=new r(i);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(u){l[u]=a[u]}),l.services=fn({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new aP(l.services,l.options),l.translator.on("*",function(u){for(var d=arguments.length,p=new Array(d>1?d-1:0),h=1;h<d;h++)p[h-1]=arguments[h];l.emit.apply(l,[u].concat(p))}),l.init(i,s),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),r}(Ya);Un(Ed,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Ed(t,e)});var bt=Ed.createInstance();bt.createInstance=Ed.createInstance;bt.createInstance;bt.dir;bt.init;bt.loadResources;bt.reloadResources;bt.use;bt.changeLanguage;bt.getFixedT;bt.t;bt.exists;bt.setDefaultNamespace;bt.hasLoadedNamespace;bt.loadNamespaces;bt.loadLanguages;var ef={exports:{}},mP;function o8(){return mP||(mP=1,function(t,e){(function(r,n){t.exports=n()})(ge,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",s="second",i="minute",l="hour",c="day",u="week",d="month",p="quarter",h="year",f="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(G){var H=["th","st","nd","rd"],$=G%100;return"["+G+(H[($-20)%10]||H[$]||H[0])+"]"}},C=function(G,H,$){var X=String(G);return!X||X.length>=H?G:""+Array(H+1-X.length).join($)+G},x={s:C,z:function(G){var H=-G.utcOffset(),$=Math.abs(H),X=Math.floor($/60),F=$%60;return(H<=0?"+":"-")+C(X,2,"0")+":"+C(F,2,"0")},m:function G(H,$){if(H.date()<$.date())return-G($,H);var X=12*($.year()-H.year())+($.month()-H.month()),F=H.clone().add(X,d),Y=$-F<0,Q=H.clone().add(X+(Y?-1:1),d);return+(-(X+($-F)/(Y?F-Q:Q-F))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:d,y:h,w:u,d:c,D:f,h:l,m:i,s,ms:o,Q:p}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},S="en",P={};P[S]=m;var A="$isDayjsObject",V=function(G){return G instanceof L||!(!G||!G[A])},U=function G(H,$,X){var F;if(!H)return S;if(typeof H=="string"){var Y=H.toLowerCase();P[Y]&&(F=Y),$&&(P[Y]=$,F=Y);var Q=H.split("-");if(!F&&Q.length>1)return G(Q[0])}else{var M=H.name;P[M]=H,F=M}return!X&&F&&(S=F),F||!X&&S},O=function(G,H){if(V(G))return G.clone();var $=typeof H=="object"?H:{};return $.date=G,$.args=arguments,new L($)},I=x;I.l=U,I.i=V,I.w=function(G,H){return O(G,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var L=function(){function G($){this.$L=U($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[A]=!0}var H=G.prototype;return H.parse=function($){this.$d=function(X){var F=X.date,Y=X.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var Q=F.match(v);if(Q){var M=Q[2]-1||0,z=(Q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Q[1],M,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,z)):new Date(Q[1],M,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,z)}}return new Date(F)}($),this.init()},H.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==y},H.isSame=function($,X){var F=O($);return this.startOf(X)<=F&&F<=this.endOf(X)},H.isAfter=function($,X){return O($)<this.startOf(X)},H.isBefore=function($,X){return this.endOf(X)<O($)},H.$g=function($,X,F){return I.u($)?this[X]:this.set(F,$)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function($,X){var F=this,Y=!!I.u(X)||X,Q=I.p($),M=function(He,Se){var Ae=I.w(F.$u?Date.UTC(F.$y,Se,He):new Date(F.$y,Se,He),F);return Y?Ae:Ae.endOf(c)},z=function(He,Se){return I.w(F.toDate()[He].apply(F.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(Se)),F)},W=this.$W,q=this.$M,ae=this.$D,oe="set"+(this.$u?"UTC":"");switch(Q){case h:return Y?M(1,0):M(31,11);case d:return Y?M(1,q):M(0,q+1);case u:var pe=this.$locale().weekStart||0,ue=(W<pe?W+7:W)-pe;return M(Y?ae-ue:ae+(6-ue),q);case c:case f:return z(oe+"Hours",0);case l:return z(oe+"Minutes",1);case i:return z(oe+"Seconds",2);case s:return z(oe+"Milliseconds",3);default:return this.clone()}},H.endOf=function($){return this.startOf($,!1)},H.$set=function($,X){var F,Y=I.p($),Q="set"+(this.$u?"UTC":""),M=(F={},F[c]=Q+"Date",F[f]=Q+"Date",F[d]=Q+"Month",F[h]=Q+"FullYear",F[l]=Q+"Hours",F[i]=Q+"Minutes",F[s]=Q+"Seconds",F[o]=Q+"Milliseconds",F)[Y],z=Y===c?this.$D+(X-this.$W):X;if(Y===d||Y===h){var W=this.clone().set(f,1);W.$d[M](z),W.init(),this.$d=W.set(f,Math.min(this.$D,W.daysInMonth())).$d}else M&&this.$d[M](z);return this.init(),this},H.set=function($,X){return this.clone().$set($,X)},H.get=function($){return this[I.p($)]()},H.add=function($,X){var F,Y=this;$=Number($);var Q=I.p(X),M=function(q){var ae=O(Y);return I.w(ae.date(ae.date()+Math.round(q*$)),Y)};if(Q===d)return this.set(d,this.$M+$);if(Q===h)return this.set(h,this.$y+$);if(Q===c)return M(1);if(Q===u)return M(7);var z=(F={},F[i]=n,F[l]=a,F[s]=r,F)[Q]||1,W=this.$d.getTime()+$*z;return I.w(W,this)},H.subtract=function($,X){return this.add(-1*$,X)},H.format=function($){var X=this,F=this.$locale();if(!this.isValid())return F.invalidDate||y;var Y=$||"YYYY-MM-DDTHH:mm:ssZ",Q=I.z(this),M=this.$H,z=this.$m,W=this.$M,q=F.weekdays,ae=F.months,oe=F.meridiem,pe=function(Se,Ae,Ne,Oe){return Se&&(Se[Ae]||Se(X,Y))||Ne[Ae].slice(0,Oe)},ue=function(Se){return I.s(M%12||12,Se,"0")},He=oe||function(Se,Ae,Ne){var Oe=Se<12?"AM":"PM";return Ne?Oe.toLowerCase():Oe};return Y.replace(g,function(Se,Ae){return Ae||function(Ne){switch(Ne){case"YY":return String(X.$y).slice(-2);case"YYYY":return I.s(X.$y,4,"0");case"M":return W+1;case"MM":return I.s(W+1,2,"0");case"MMM":return pe(F.monthsShort,W,ae,3);case"MMMM":return pe(ae,W);case"D":return X.$D;case"DD":return I.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return pe(F.weekdaysMin,X.$W,q,2);case"ddd":return pe(F.weekdaysShort,X.$W,q,3);case"dddd":return q[X.$W];case"H":return String(M);case"HH":return I.s(M,2,"0");case"h":return ue(1);case"hh":return ue(2);case"a":return He(M,z,!0);case"A":return He(M,z,!1);case"m":return String(z);case"mm":return I.s(z,2,"0");case"s":return String(X.$s);case"ss":return I.s(X.$s,2,"0");case"SSS":return I.s(X.$ms,3,"0");case"Z":return Q}return null}(Se)||Q.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function($,X,F){var Y,Q=this,M=I.p(X),z=O($),W=(z.utcOffset()-this.utcOffset())*n,q=this-z,ae=function(){return I.m(Q,z)};switch(M){case h:Y=ae()/12;break;case d:Y=ae();break;case p:Y=ae()/3;break;case u:Y=(q-W)/6048e5;break;case c:Y=(q-W)/864e5;break;case l:Y=q/a;break;case i:Y=q/n;break;case s:Y=q/r;break;default:Y=q}return F?Y:I.a(Y)},H.daysInMonth=function(){return this.endOf(d).$D},H.$locale=function(){return P[this.$L]},H.locale=function($,X){if(!$)return this.$L;var F=this.clone(),Y=U($,X,!0);return Y&&(F.$L=Y),F},H.clone=function(){return I.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},G}(),N=L.prototype;return O.prototype=N,[["$ms",o],["$s",s],["$m",i],["$H",l],["$W",c],["$M",d],["$y",h],["$D",f]].forEach(function(G){N[G[1]]=function(H){return this.$g(H,G[0],G[1])}}),O.extend=function(G,H){return G.$i||(G(H,L,O),G.$i=!0),O},O.locale=U,O.isDayjs=V,O.unix=function(G){return O(1e3*G)},O.en=P[S],O.Ls=P,O.p={},O})}(ef)),ef.exports}var s8=o8();const i8=ti(s8);var l8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,c8={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},u8=function(e){return c8[e]},d8=function(e){return e.replace(l8,u8)};function yP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function vP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yP(Object(r),!0).forEach(function(n){Un(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Nm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:d8};function p8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nm=vP(vP({},Nm),t)}function aQ(){return Nm}var mb;function h8(t){mb=t}function oQ(){return mb}var f8={type:"3rdParty",init:function(e){p8(e.options.react),h8(e)}};const m8={apps:"Apps",appsAccount:{account:"Account",settings:"Settings",invoice:"Invoice",activityLog:"Activity Log",kycForm:"KYC Form"},crudoperation:{crud:"Settings"}},y8={nav:m8},v8={apps:"应用",appsAccount:{account:"帐户",settings:"设置",invoice:"发票",activityLog:"活动日志",kycForm:"了解客户表格"},crudoperation:{crud:"CRUD"}},g8={nav:v8},C8={apps:"Aplicaciones",appsAccount:{account:"Cuenta",settings:"Ajustes",invoice:"Factura",activityLog:"Registro de actividades",kycForm:"Formulario kyc"},crudoperation:{crud:"CRUD"}},x8={nav:C8},S8={apps:"تطبيقات",appsAccount:{account:"الحساب",settings:"الإعدادات",invoice:"فاتورة",activityLog:"سجل النشاطات",kycForm:"نموذج kyc"},crudoperation:{crud:"CRUD"}},P8={nav:S8},A8={en:{translation:y8},zhCn:{translation:g8},es:{translation:x8},ar:{translation:P8}};bt.use(f8).init({resources:A8,fallbackLng:Wt.locale,lng:Wt.locale,interpolation:{escapeValue:!1}});const O8={en:()=>Fr(()=>import("./en-e8193568.js").then(t=>t.e),[]),es:()=>Fr(()=>import("./es-74fe811a.js").then(t=>t.e),[]),zhCn:()=>Fr(()=>import("./zh-cn-9d3866aa.js").then(t=>t.z),[]),ar:()=>Fr(()=>import("./ar-bb9d99db.js").then(t=>t.a),[])};function V8(){const t=ia(e=>e.locale.currentLang);return B.useEffect(()=>{const e=t.replace(/-([a-z])/g,function(r){return r[1].toUpperCase()});t!==bt.language&&bt.changeLanguage(e),O8[e]().then(()=>{i8.locale(e)})},[t]),t}const I8={[jv]:B.lazy(()=>Fr(()=>import("./ClassicLayout-43547087.js").then(t=>t.C),["assets/ClassicLayout-43547087.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js"])),[Es]:B.lazy(()=>Fr(()=>import("./ModernLayout-fd6ab4e1.js"),["assets/ModernLayout-fd6ab4e1.js","assets/ClassicLayout-43547087.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js"])),[$v]:B.lazy(()=>Fr(()=>import("./StackedSideLayout-d20fda92.js"),["assets/StackedSideLayout-d20fda92.js","assets/ClassicLayout-43547087.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js"])),[yw]:B.lazy(()=>Fr(()=>import("./SimpleLayout-a34ce3d6.js"),["assets/SimpleLayout-a34ce3d6.js","assets/ClassicLayout-43547087.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js","assets/HorizontalMenuContent-c2ce9ba4.js"])),[zv]:B.lazy(()=>Fr(()=>import("./DeckedLayout-50b0b841.js"),["assets/DeckedLayout-50b0b841.js","assets/ClassicLayout-43547087.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/index-59b78927.js","assets/index-a05b664a.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/index.esm-7fca4988.js","assets/Alert-e6518529.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/FormContainer-e0ad1074.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/Logo-aa883174.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js","assets/HorizontalMenuContent-c2ce9ba4.js"])),[vw]:B.lazy(()=>Fr(()=>import("./BlankLayout-7d425a4f.js"),["assets/BlankLayout-7d425a4f.js","assets/Views-7025458f.js","assets/Container-0271dbaa.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/warning-eb037686.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/SidePanelContent-0d8d0ddd.js","assets/Switcher-4b56d286.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js"]))},w8=()=>{const t=ia(s=>s.theme.layout.type),e=ia(s=>s.auth.user.isNewUser),r=B.lazy(()=>Fr(()=>import("./ProductsLayout-c61b7a8e.js"),["assets/ProductsLayout-c61b7a8e.js","assets/Product-ed043f08.js","assets/Alert-e6518529.js","assets/index-59b78927.js","assets/warning-eb037686.js","assets/index-a05b664a.js","assets/index-d7b1d047.js","assets/Select-19bd23ac.js","assets/isEmpty-d6a6848e.js","assets/get-e6d75ebc.js","assets/Button-312a6bfe.js","assets/useControllableState-ed446800.js","assets/index-91a81028.js","assets/Input-f9dc9df7.js","assets/Card-8badb238.js","assets/index-cdf4c2fe.js","assets/cloneDeep-958c9090.js","assets/Tag-0a3ddbe2.js","assets/index.esm-7fca4988.js","assets/FormContainer-e0ad1074.js","assets/Switcher-4b56d286.js","assets/index-51020fda.js","assets/Upload-f16cbbc9.js","assets/AdaptableCard-5bdf55ff.js","assets/SvgIcon-e50d8824.js","assets/SvgIcon-8e59e50e.css","assets/Container-0271dbaa.js","assets/SegmentItemOption-1228dbe0.js","assets/useThemeClass-61b1bbbf.js","assets/SubscriptionService-ff0a4fe5.js","assets/Checkout-735fa664.js","assets/Logo-aa883174.js"])),{authenticated:n}=A3();O3(),V8();const a=()=>{const s=Xp();s(zp()),s(ho({avatar:"",userName:"",authority:[],email:"",authenticatorUrl:"",provider:"",twoFactorEnabled:!1,id:"",roleId:""}))},o=B.useMemo(()=>((location.pathname.indexOf("reset-password")>-1||location.pathname.indexOf("loginAsUser")>-1)&&n&&a(),n&&e&&(location.pathname==="/products"||location.pathname.startsWith("/checkout"))&&!location.pathname.includes("reset-password")&&!location.pathname.includes("loginAsUser")?r:n&&location.pathname.indexOf("reset-password")===-1&&location.pathname.indexOf("loginAsUser")===-1?I8[t]:B.lazy(()=>Fr(()=>import("./index-bba6cb11.js"),["assets/index-bba6cb11.js","assets/Logo-aa883174.js","assets/Container-0271dbaa.js","assets/Card-8badb238.js","assets/Views-7025458f.js"]))),[t,n,e]);return ie.jsx(B.Suspense,{fallback:ie.jsx("div",{className:"flex flex-auto flex-col h-[100vh]",children:ie.jsx(cb,{loading:!0})}),children:ie.jsx(o,{})})};/*! @azure/msal-common v14.16.1 2025-08-05 */const Z={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",NOT_AVAILABLE:"Not Available",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},qc={SUCCESS:200,SUCCESS_RANGE_START:200,SUCCESS_RANGE_END:299,REDIRECT:302,CLIENT_ERROR:400,CLIENT_ERROR_RANGE_START:400,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,REQUEST_TIMEOUT:408,TOO_MANY_REQUESTS:429,CLIENT_ERROR_RANGE_END:499,SERVER_ERROR:500,SERVER_ERROR_RANGE_START:500,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,SERVER_ERROR_RANGE_END:599,MULTI_SIDED_ERROR:600},ui=[Z.OPENID_SCOPE,Z.PROFILE_SCOPE,Z.OFFLINE_ACCESS_SCOPE],gP=[...ui,Z.EMAIL_SCOPE],tr={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},Pt={ID_TOKEN:"idtoken",CLIENT_INFO:"client.info",ADAL_ID_TOKEN:"adal.idtoken",ERROR:"error",ERROR_DESC:"error.description",ACTIVE_ACCOUNT:"active-account",ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},Ha={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Qc={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},It={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},CP={PLAIN:"plain",S256:"S256"},sc={QUERY:"query",FRAGMENT:"fragment"},b8={...sc,FORM_POST:"form_post"},yb={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},Kc={MSSTS_ACCOUNT_TYPE:"MSSTS",ADFS_ACCOUNT_TYPE:"ADFS",MSAV1_ACCOUNT_TYPE:"MSA",GENERIC_ACCOUNT_TYPE:"Generic"},Kt={CACHE_KEY_SEPARATOR:"-",CLIENT_INFO_SEPARATOR:"."},ye={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},cg="appmetadata",T8="client_info",ll="1",Rd={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},yr={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},kt={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Be={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},cl={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},xP={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},SP={username:"username",password:"password"},Wc={httpSuccess:200,httpBadRequest:400},Xo={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},tf={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},ga={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},E8={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},R8=300;/*! @azure/msal-common v14.16.1 2025-08-05 */const ug="unexpected_error",D8="post_request_failed";/*! @azure/msal-common v14.16.1 2025-08-05 */const PP={[ug]:"Unexpected error in authentication.",[D8]:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."};class Qe extends Error{constructor(e,r,n){const a=r?`${e}: ${r}`:e;super(a),Object.setPrototypeOf(this,Qe.prototype),this.errorCode=e||Z.EMPTY_STRING,this.errorMessage=r||Z.EMPTY_STRING,this.subError=n||Z.EMPTY_STRING,this.name="AuthError"}setCorrelationId(e){this.correlationId=e}}function vb(t,e){return new Qe(t,e?`${PP[t]} ${e}`:PP[t])}/*! @azure/msal-common v14.16.1 2025-08-05 */const dg="client_info_decoding_error",gb="client_info_empty_error",pg="token_parsing_error",Cb="null_or_empty_token",$n="endpoints_resolution_error",xb="network_error",Sb="openid_config_error",Pb="hash_not_deserialized",qs="invalid_state",Ab="state_mismatch",Dd="state_not_found",Ob="nonce_mismatch",hg="auth_time_not_found",Vb="max_age_transpired",k8="multiple_matching_tokens",_8="multiple_matching_accounts",Ib="multiple_matching_appMetadata",wb="request_cannot_be_made",bb="cannot_remove_empty_scope",Tb="cannot_append_scopeset",Gm="empty_input_scopeset",U8="device_code_polling_cancelled",B8="device_code_expired",M8="device_code_unknown_error",fg="no_account_in_silent_request",Eb="invalid_cache_record",mg="invalid_cache_environment",Hm="no_account_found",jm="no_crypto_object",$m="unexpected_credential_type",F8="invalid_assertion",L8="invalid_client_credential",Wn="token_refresh_required",N8="user_timeout_reached",Rb="token_claims_cnf_required_for_signedjwt",Db="authorization_code_missing_from_server_response",G8="binding_key_not_removed",kb="end_session_endpoint_not_supported",yg="key_id_missing",H8="no_network_connectivity",j8="user_canceled",$8="missing_tenant_id_error",xe="method_not_implemented",z8="nested_app_auth_bridge_disabled";/*! @azure/msal-common v14.16.1 2025-08-05 */const AP={[dg]:"The client info could not be parsed/decoded correctly",[gb]:"The client info was empty",[pg]:"Token cannot be parsed",[Cb]:"The token is null or empty",[$n]:"Endpoints cannot be resolved",[xb]:"Network request failed",[Sb]:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints.",[Pb]:"The hash parameters could not be deserialized",[qs]:"State was not the expected format",[Ab]:"State mismatch error",[Dd]:"State not found",[Ob]:"Nonce mismatch error",[hg]:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information.",[Vb]:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication.",[k8]:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account.",[_8]:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account",[Ib]:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata",[wb]:"Token request cannot be made without authorization code or refresh token.",[bb]:"Cannot remove null or empty scope from ScopeSet",[Tb]:"Cannot append ScopeSet",[Gm]:"Empty input ScopeSet cannot be processed",[U8]:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true.",[B8]:"Device code is expired.",[M8]:"Device code stopped polling for unknown reasons.",[fg]:"Please pass an account object, silent flow is not supported without account information",[Eb]:"Cache record object was null or undefined.",[mg]:"Invalid environment when attempting to create cache entry",[Hm]:"No account found in cache for given key.",[jm]:"No crypto object detected.",[$m]:"Unexpected credential type.",[F8]:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515",[L8]:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential",[Wn]:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired.",[N8]:"User defined timeout for device code polling reached",[Rb]:"Cannot generate a POP jwt if the token_claims are not populated",[Db]:"Server response does not contain an authorization code to proceed",[G8]:"Could not remove the credential's binding key from storage.",[kb]:"The provided authority does not support logout",[yg]:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key.",[H8]:"No network connectivity. Check your internet connection.",[j8]:"User cancelled the flow.",[$8]:"A tenant id - not common, organizations, or consumers - must be specified when using the client_credentials flow.",[xe]:"This method has not been implemented",[z8]:"The nested app auth bridge is disabled"};class rh extends Qe{constructor(e,r){super(e,r?`${AP[e]}: ${r}`:AP[e]),this.name="ClientAuthError",Object.setPrototypeOf(this,rh.prototype)}}function te(t,e){return new rh(t,e)}/*! @azure/msal-common v14.16.1 2025-08-05 */const kd={createNewGuid:()=>{throw te(xe)},base64Decode:()=>{throw te(xe)},base64Encode:()=>{throw te(xe)},base64UrlEncode:()=>{throw te(xe)},encodeKid:()=>{throw te(xe)},async getPublicKeyThumbprint(){throw te(xe)},async removeTokenBindingKey(){throw te(xe)},async clearKeystore(){throw te(xe)},async signJwt(){throw te(xe)},async hashString(){throw te(xe)}};/*! @azure/msal-common v14.16.1 2025-08-05 */var Ye;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(Ye||(Ye={}));class la{constructor(e,r,n){this.level=Ye.Info;const a=()=>{},o=e||la.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||a,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:Ye.Info,this.correlationId=o.correlationId||Z.EMPTY_STRING,this.packageName=r||Z.EMPTY_STRING,this.packageVersion=n||Z.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ye.Info}}clone(e,r,n){return new la({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,r)}logMessage(e,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const o=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${Ye[r.logLevel]} - ${e}`;this.executeCallback(r.logLevel,o,r.containsPii||!1)}executeCallback(e,r,n){this.localCallback&&this.localCallback(e,r,n)}error(e,r){this.logMessage(e,{logLevel:Ye.Error,containsPii:!1,correlationId:r||Z.EMPTY_STRING})}errorPii(e,r){this.logMessage(e,{logLevel:Ye.Error,containsPii:!0,correlationId:r||Z.EMPTY_STRING})}warning(e,r){this.logMessage(e,{logLevel:Ye.Warning,containsPii:!1,correlationId:r||Z.EMPTY_STRING})}warningPii(e,r){this.logMessage(e,{logLevel:Ye.Warning,containsPii:!0,correlationId:r||Z.EMPTY_STRING})}info(e,r){this.logMessage(e,{logLevel:Ye.Info,containsPii:!1,correlationId:r||Z.EMPTY_STRING})}infoPii(e,r){this.logMessage(e,{logLevel:Ye.Info,containsPii:!0,correlationId:r||Z.EMPTY_STRING})}verbose(e,r){this.logMessage(e,{logLevel:Ye.Verbose,containsPii:!1,correlationId:r||Z.EMPTY_STRING})}verbosePii(e,r){this.logMessage(e,{logLevel:Ye.Verbose,containsPii:!0,correlationId:r||Z.EMPTY_STRING})}trace(e,r){this.logMessage(e,{logLevel:Ye.Trace,containsPii:!1,correlationId:r||Z.EMPTY_STRING})}tracePii(e,r){this.logMessage(e,{logLevel:Ye.Trace,containsPii:!0,correlationId:r||Z.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.16.1 2025-08-05 */const _b="@azure/msal-common",vg="14.16.1";/*! @azure/msal-common v14.16.1 2025-08-05 */const gg={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.16.1 2025-08-05 */function Go(t,e){const r=q8(t);try{const n=e(r);return JSON.parse(n)}catch{throw te(pg)}}function q8(t){if(!t)throw te(Cb);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw te(pg);return r[2]}function Ub(t,e){if(e===0||Date.now()-3e5>t+e)throw te(Vb)}/*! @azure/msal-common v14.16.1 2025-08-05 */function Dn(){return Math.round(new Date().getTime()/1e3)}function zm(t,e){const r=Number(t)||0;return Dn()+e>r}function Q8(t){return Number(t)>Dn()}/*! @azure/msal-common v14.16.1 2025-08-05 */function ys(t){return[K8(t),W8(t),Y8(t),J8(t),X8(t)].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}function nh(t,e,r,n,a){return{credentialType:ye.ID_TOKEN,homeAccountId:t,environment:e,clientId:n,secret:r,realm:a}}function ah(t,e,r,n,a,o,s,i,l,c,u,d,p,h,f){var v,g;const y={homeAccountId:t,credentialType:ye.ACCESS_TOKEN,secret:r,cachedAt:Dn().toString(),expiresOn:s.toString(),extendedExpiresOn:i.toString(),environment:e,clientId:n,realm:a,target:o,tokenType:u||Be.BEARER};if(d&&(y.userAssertionHash=d),c&&(y.refreshOn=c.toString()),h&&(y.requestedClaims=h,y.requestedClaimsHash=f),((v=y.tokenType)==null?void 0:v.toLowerCase())!==Be.BEARER.toLowerCase())switch(y.credentialType=ye.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case Be.POP:const m=Go(r,l);if(!((g=m==null?void 0:m.cnf)!=null&&g.kid))throw te(Rb);y.keyId=m.cnf.kid;break;case Be.SSH:y.keyId=p}return y}function Bb(t,e,r,n,a,o,s){const i={credentialType:ye.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:n,secret:r};return o&&(i.userAssertionHash=o),a&&(i.familyId=a),s&&(i.expiresOn=s.toString()),i}function Cg(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function OP(t){return t?Cg(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===ye.ACCESS_TOKEN||t.credentialType===ye.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function VP(t){return t?Cg(t)&&t.hasOwnProperty("realm")&&t.credentialType===ye.ID_TOKEN:!1}function IP(t){return t?Cg(t)&&t.credentialType===ye.REFRESH_TOKEN:!1}function K8(t){return[t.homeAccountId,t.environment].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}function W8(t){const e=t.credentialType===ye.REFRESH_TOKEN&&t.familyId||t.clientId;return[t.credentialType,e,t.realm||""].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}function Y8(t){return(t.target||"").toLowerCase()}function J8(t){return(t.requestedClaimsHash||"").toLowerCase()}function X8(t){return t.tokenType&&t.tokenType.toLowerCase()!==Be.BEARER.toLowerCase()?t.tokenType.toLowerCase():""}function Z8(t,e){const r=t.indexOf(kt.CACHE_KEY)===0;let n=!0;return e&&(n=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&n}function eG(t,e){let r=!1;t&&(r=t.indexOf(cl.THROTTLING_PREFIX)===0);let n=!0;return e&&(n=e.hasOwnProperty("throttleTime")),r&&n}function tG({environment:t,clientId:e}){return[cg,t,e].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}function rG(t,e){return e?t.indexOf(cg)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function nG(t,e){return e?t.indexOf(Rd.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function wP(){return Dn()+Rd.REFRESH_TIME_SECONDS}function Yc(t,e,r){t.authorization_endpoint=e.authorization_endpoint,t.token_endpoint=e.token_endpoint,t.end_session_endpoint=e.end_session_endpoint,t.issuer=e.issuer,t.endpointsFromNetwork=r,t.jwks_uri=e.jwks_uri}function rf(t,e,r){t.aliases=e.aliases,t.preferred_cache=e.preferred_cache,t.preferred_network=e.preferred_network,t.aliasesFromNetwork=r}function bP(t){return t.expiresAt<=Dn()}/*! @azure/msal-common v14.16.1 2025-08-05 */const Mb="redirect_uri_empty",aG="claims_request_parsing_error",Fb="authority_uri_insecure",qi="url_parse_error",Lb="empty_url_error",Nb="empty_input_scopes_error",Gb="invalid_prompt_value",xg="invalid_claims",Hb="token_request_empty",jb="logout_request_empty",$b="invalid_code_challenge_method",Sg="pkce_params_missing",Pg="invalid_cloud_discovery_metadata",zb="invalid_authority_metadata",qb="untrusted_authority",oh="missing_ssh_jwk",Qb="missing_ssh_kid",oG="missing_nonce_authentication_header",sG="invalid_authentication_header",Kb="cannot_set_OIDCOptions",Wb="cannot_allow_native_broker",Yb="authority_mismatch";/*! @azure/msal-common v14.16.1 2025-08-05 */const iG={[Mb]:"A redirect URI is required for all calls, and none has been set.",[aG]:"Could not parse the given claims request object.",[Fb]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[qi]:"URL could not be parsed into appropriate segments.",[Lb]:"URL was empty or null.",[Nb]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[Gb]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[xg]:"Given claims parameter must be a stringified JSON object.",[Hb]:"Token request was empty and not found in cache.",[jb]:"The logout request was null or undefined.",[$b]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Sg]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Pg]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[zb]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[qb]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[oh]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[Qb]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[oG]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[sG]:"Invalid authentication header provided",[Kb]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[Wb]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[Yb]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class Ag extends Qe{constructor(e){super(e,iG[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,Ag.prototype)}}function Le(t){return new Ag(t)}/*! @azure/msal-common v14.16.1 2025-08-05 */class an{static isEmptyObj(e){if(e)try{const r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0}static startsWith(e,r){return e.indexOf(r)===0}static endsWith(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length}static queryStringToObject(e){const r={},n=e.split("&"),a=o=>decodeURIComponent(o.replace(/\+/g," "));return n.forEach(o=>{if(o.trim()){const[s,i]=o.split(/=(.+)/g,2);s&&i&&(r[a(s)]=a(i))}}),r}static trimArrayEntries(e){return e.map(r=>r.trim())}static removeEmptyStringsFromArray(e){return e.filter(r=>!!r)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,r){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(r)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class it{constructor(e){const r=e?an.trimArrayEntries([...e]):[],n=r?an.removeEmptyStringsFromArray(r):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach(a=>this.scopes.add(a))}static fromString(e){const n=(e||Z.EMPTY_STRING).split(" ");return new it(n)}static createSearchScopes(e){const r=new it(e);return r.containsOnlyOIDCScopes()?r.removeScope(Z.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}validateInputScopes(e){if(!e||e.length<1)throw Le(Nb)}containsScope(e){const r=this.printScopesLowerCase().split(" "),n=new it(r);return e?n.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(r=>this.containsScope(r))}containsOnlyOIDCScopes(){let e=0;return gP.forEach(r=>{this.containsScope(r)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(r=>this.appendScope(r))}catch{throw te(Tb)}}removeScope(e){if(!e)throw te(bb);this.scopes.delete(e.trim())}removeOIDCScopes(){gP.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw te(Gm);const r=new Set;return e.scopes.forEach(n=>r.add(n.toLowerCase())),this.scopes.forEach(n=>r.add(n.toLowerCase())),r}intersectingScopeSets(e){if(!e)throw te(Gm);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const r=this.unionScopeSets(e),n=e.getScopeCount(),a=this.getScopeCount();return r.size<a+n}getScopeCount(){return this.scopes.size}asArray(){const e=[];return this.scopes.forEach(r=>e.push(r)),e}printScopes(){return this.scopes?this.asArray().join(" "):Z.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.16.1 2025-08-05 */function _d(t,e){if(!t)throw te(gb);try{const r=e(t);return JSON.parse(r)}catch{throw te(dg)}}function vs(t){if(!t)throw te(dg);const e=t.split(Kt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?Z.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.16.1 2025-08-05 */function Ud(t,e){return!!t&&!!e&&t===e.split(".")[1]}function Og(t,e,r,n){if(n){const{oid:a,sub:o,tid:s,name:i,tfp:l,acr:c}=n,u=s||l||c||"";return{tenantId:u,localAccountId:a||o||"",name:i,isHomeTenant:Ud(u,t)}}else return{tenantId:r,localAccountId:e,isHomeTenant:Ud(r,t)}}function Vg(t,e,r,n){let a=t;if(e){const{isHomeTenant:o,...s}=e;a={...t,...s}}if(r){const{isHomeTenant:o,...s}=Og(t.homeAccountId,t.localAccountId,t.tenantId,r);return a={...a,...s,idTokenClaims:r,idToken:n},a}return a}/*! @azure/msal-common v14.16.1 2025-08-05 */const Xr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.16.1 2025-08-05 */function Jb(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v14.16.1 2025-08-05 */const ea={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.16.1 2025-08-05 */class Ct{generateAccountId(){return[this.homeAccountId,this.environment].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Ct.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const r=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",r||e.tenantId||""].join(Kt.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,r,n){var c,u,d,p,h,f;const a=new Ct;r.authorityType===Xr.Adfs?a.authorityType=Kc.ADFS_ACCOUNT_TYPE:r.protocolMode===ea.AAD?a.authorityType=Kc.MSSTS_ACCOUNT_TYPE:a.authorityType=Kc.GENERIC_ACCOUNT_TYPE;let o;e.clientInfo&&n&&(o=_d(e.clientInfo,n)),a.clientInfo=e.clientInfo,a.homeAccountId=e.homeAccountId,a.nativeAccountId=e.nativeAccountId;const s=e.environment||r&&r.getPreferredCache();if(!s)throw te(mg);a.environment=s,a.realm=(o==null?void 0:o.utid)||Jb(e.idTokenClaims)||"",a.localAccountId=(o==null?void 0:o.uid)||((c=e.idTokenClaims)==null?void 0:c.oid)||((u=e.idTokenClaims)==null?void 0:u.sub)||"";const i=((d=e.idTokenClaims)==null?void 0:d.preferred_username)||((p=e.idTokenClaims)==null?void 0:p.upn),l=(h=e.idTokenClaims)!=null&&h.emails?e.idTokenClaims.emails[0]:null;if(a.username=i||l||"",a.name=((f=e.idTokenClaims)==null?void 0:f.name)||"",a.cloudGraphHostName=e.cloudGraphHostName,a.msGraphHost=e.msGraphHost,e.tenantProfiles)a.tenantProfiles=e.tenantProfiles;else{const y=Og(e.homeAccountId,a.localAccountId,a.realm,e.idTokenClaims);a.tenantProfiles=[y]}return a}static createFromAccountInfo(e,r,n){var o;const a=new Ct;return a.authorityType=e.authorityType||Kc.GENERIC_ACCOUNT_TYPE,a.homeAccountId=e.homeAccountId,a.localAccountId=e.localAccountId,a.nativeAccountId=e.nativeAccountId,a.realm=e.tenantId,a.environment=e.environment,a.username=e.username,a.name=e.name,a.cloudGraphHostName=r,a.msGraphHost=n,a.tenantProfiles=Array.from(((o=e.tenantProfiles)==null?void 0:o.values())||[]),a}static generateHomeAccountId(e,r,n,a,o){if(!(r===Xr.Adfs||r===Xr.Dsts)){if(e)try{const s=_d(e,a.base64Decode);if(s.uid&&s.utid)return`${s.uid}.${s.utid}`}catch{}n.warning("No client info in response")}return(o==null?void 0:o.sub)||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,r,n){if(!e||!r)return!1;let a=!0;if(n){const o=e.idTokenClaims||{},s=r.idTokenClaims||{};a=o.iat===s.iat&&o.nonce===s.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&a}}/*! @azure/msal-common v14.16.1 2025-08-05 */function Xb(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function Bd(t){if(!t||t.indexOf("=")<0)return null;try{const e=Xb(t),r=Object.fromEntries(new URLSearchParams(e));if(r.code||r.error||r.error_description||r.state)return r}catch{throw te(Pb)}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */class Ie{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Le(Lb);e.includes("#")||(this._urlString=Ie.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let r=e.toLowerCase();return an.endsWith(r,"?")?r=r.slice(0,-1):an.endsWith(r,"?/")&&(r=r.slice(0,-2)),an.endsWith(r,"/")||(r+="/"),r}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Le(qi)}if(!e.HostNameAndPort||!e.PathSegments)throw Le(qi);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Le(Fb)}static appendQueryString(e,r){return r?e.indexOf("?")<0?`${e}?${r}`:`${e}&${r}`:e}static removeHashFromUrl(e){return Ie.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const r=this.getUrlComponents(),n=r.PathSegments;return e&&n.length!==0&&(n[0]===Ha.COMMON||n[0]===Ha.ORGANIZATIONS)&&(n[0]=e),Ie.constructAuthorityUriFromObject(r)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Le(qi);const n={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]};let a=n.AbsolutePath.split("/");return a=a.filter(o=>o&&o.length>0),n.PathSegments=a,n.QueryString&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n}static getDomainFromUrl(e){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(r);if(!n)throw Le(qi);return n[2]}static getAbsoluteUrl(e,r){if(e[0]===Z.FORWARD_SLASH){const a=new Ie(r).getUrlComponents();return a.Protocol+"//"+a.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new Ie(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Bd(e)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Zb={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},TP=Zb.endpointMetadata,Ig=Zb.instanceDiscoveryMetadata,eT=new Set;Ig.metadata.forEach(t=>{t.aliases.forEach(e=>{eT.add(e)})});function lG(t,e){var a;let r;const n=t.canonicalAuthority;if(n){const o=new Ie(n).getUrlComponents().HostNameAndPort;r=EP(o,(a=t.cloudDiscoveryMetadata)==null?void 0:a.metadata,yr.CONFIG,e)||EP(o,Ig.metadata,yr.HARDCODED_VALUES,e)||t.knownAuthorities}return r||[]}function EP(t,e,r,n){if(n==null||n.trace(`getAliasesFromMetadata called with source: ${r}`),t&&e){const a=Md(e,t);if(a)return n==null||n.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${r}, returning aliases`),a.aliases;n==null||n.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${r}`)}return null}function cG(t){return Md(Ig.metadata,t)}function Md(t,e){for(let r=0;r<t.length;r++){const n=t[r];if(n.aliases.includes(e))return n}return null}/*! @azure/msal-common v14.16.1 2025-08-05 */const wg="cache_quota_exceeded",bg="cache_error_unknown";/*! @azure/msal-common v14.16.1 2025-08-05 */const nf={[wg]:"Exceeded cache storage capacity.",[bg]:"Unexpected error occurred when using cache storage."};class Rs extends Error{constructor(e,r){const n=r||(nf[e]?nf[e]:nf[bg]);super(`${e}: ${n}`),Object.setPrototypeOf(this,Rs.prototype),this.name="CacheError",this.errorCode=e,this.errorMessage=n}}function tT(t){return t instanceof Error?t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED"||t.message.includes("exceeded the quota")?new Rs(wg):new Rs(t.name,t.message):new Rs(bg)}/*! @azure/msal-common v14.16.1 2025-08-05 */class Qs{constructor(e,r,n,a){this.clientId=e,this.cryptoImpl=r,this.commonLogger=n.clone(_b,vg),this.staticAuthorityOptions=a}getAllAccounts(e,r){return this.buildTenantProfiles(this.getAccountsFilteredBy(r||{},e),e,r)}getAccountInfoFilteredBy(e,r){const n=this.getAllAccounts(r,e);return n.length>1?n.sort(o=>o.idTokenClaims?-1:1)[0]:n.length===1?n[0]:null}getBaseAccountInfo(e,r){const n=this.getAccountsFilteredBy(e,r);return n.length>0?n[0].getAccountInfo():null}buildTenantProfiles(e,r,n){return e.flatMap(a=>this.getTenantProfilesFromAccountEntity(a,r,n==null?void 0:n.tenantId,n))}getTenantedAccountInfoByFilter(e,r,n,a,o){let s=null,i;if(o&&!this.tenantProfileMatchesFilter(n,o))return null;const l=this.getIdToken(e,a,r,n.tenantId);return l&&(i=Go(l.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(i,o))?null:(s=Vg(e,n,i,l==null?void 0:l.secret),s)}getTenantProfilesFromAccountEntity(e,r,n,a){const o=e.getAccountInfo();let s=o.tenantProfiles||new Map;const i=this.getTokenKeys();if(n){const c=s.get(n);if(c)s=new Map([[n,c]]);else return[]}const l=[];return s.forEach(c=>{const u=this.getTenantedAccountInfoByFilter(o,i,c,r,a);u&&l.push(u)}),l}tenantProfileMatchesFilter(e,r){return!(r.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,r.localAccountId)||r.name&&e.name!==r.name||r.isHomeTenant!==void 0&&e.isHomeTenant!==r.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,r){return!(r&&(r.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,r.localAccountId)||r.loginHint&&!this.matchLoginHintFromTokenClaims(e,r.loginHint)||r.username&&!this.matchUsername(e.preferred_username,r.username)||r.name&&!this.matchName(e,r.name)||r.sid&&!this.matchSid(e,r.sid)))}async saveCacheRecord(e,r,n){var a;if(!e)throw te(Eb);try{e.account&&this.setAccount(e.account,r),e.idToken&&(n==null?void 0:n.idToken)!==!1&&this.setIdTokenCredential(e.idToken,r),e.accessToken&&(n==null?void 0:n.accessToken)!==!1&&await this.saveAccessToken(e.accessToken,r),e.refreshToken&&(n==null?void 0:n.refreshToken)!==!1&&this.setRefreshTokenCredential(e.refreshToken,r),e.appMetadata&&this.setAppMetadata(e.appMetadata,r)}catch(o){throw(a=this.commonLogger)==null||a.error("CacheManager.saveCacheRecord: failed"),o instanceof Qe?o:tT(o)}}async saveAccessToken(e,r){const n={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},a=this.getTokenKeys(),o=it.fromString(e.target);a.accessToken.forEach(s=>{if(!this.accessTokenKeyMatchesFilter(s,n,!1))return;const i=this.getAccessTokenCredential(s,r);i&&this.credentialMatchesFilter(i,n)&&it.fromString(i.target).intersectingScopeSets(o)&&this.removeAccessToken(s,r)}),this.setAccessTokenCredential(e,r)}getAccountsFilteredBy(e,r){const n=this.getAccountKeys(),a=[];return n.forEach(o=>{var c;if(!this.isAccountKey(o,e.homeAccountId))return;const s=this.getAccount(o,r,this.commonLogger);if(!s||e.homeAccountId&&!this.matchHomeAccountId(s,e.homeAccountId)||e.username&&!this.matchUsername(s.username,e.username)||e.environment&&!this.matchEnvironment(s,e.environment)||e.realm&&!this.matchRealm(s,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(s,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(s,e.authorityType))return;const i={localAccountId:e==null?void 0:e.localAccountId,name:e==null?void 0:e.name},l=(c=s.tenantProfiles)==null?void 0:c.filter(u=>this.tenantProfileMatchesFilter(u,i));l&&l.length===0||a.push(s)}),a}isAccountKey(e,r,n){return!(e.split(Kt.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))}isCredentialKey(e){if(e.split(Kt.CACHE_KEY_SEPARATOR).length<6)return!1;const r=e.toLowerCase();if(r.indexOf(ye.ID_TOKEN.toLowerCase())===-1&&r.indexOf(ye.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(ye.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(ye.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(ye.REFRESH_TOKEN.toLowerCase())>-1){const n=`${ye.REFRESH_TOKEN}${Kt.CACHE_KEY_SEPARATOR}${this.clientId}${Kt.CACHE_KEY_SEPARATOR}`,a=`${ye.REFRESH_TOKEN}${Kt.CACHE_KEY_SEPARATOR}${ll}${Kt.CACHE_KEY_SEPARATOR}`;if(r.indexOf(n.toLowerCase())===-1&&r.indexOf(a.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===ye.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===Be.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))}getAppMetadataFilteredBy(e){const r=this.getKeys(),n={};return r.forEach(a=>{if(!this.isAppMetadata(a))return;const o=this.getAppMetadata(a);o&&(e.environment&&!this.matchEnvironment(o,e.environment)||e.clientId&&!this.matchClientId(o,e.clientId)||(n[a]=o))}),n}getAuthorityMetadataByAlias(e){const r=this.getAuthorityMetadataKeys();let n=null;return r.forEach(a=>{if(!this.isAuthorityMetadata(a)||a.indexOf(this.clientId)===-1)return;const o=this.getAuthorityMetadata(a);o&&o.aliases.indexOf(e)!==-1&&(n=o)}),n}async removeAllAccounts(e){const r=this.getAccountKeys(),n=[];r.forEach(a=>{n.push(this.removeAccount(a,e))}),await Promise.all(n)}async removeAccount(e,r){const n=this.getAccount(e,r,this.commonLogger);n&&(await this.removeAccountContext(n,r),this.removeItem(e,r))}async removeAccountContext(e,r){const n=this.getTokenKeys(),a=e.generateAccountId();n.idToken.forEach(o=>{o.indexOf(a)===0&&this.removeIdToken(o,r)}),n.accessToken.forEach(o=>{o.indexOf(a)===0&&this.removeAccessToken(o,r)}),n.refreshToken.forEach(o=>{o.indexOf(a)===0&&this.removeRefreshToken(o,r)}),this.getKeys().forEach(o=>{o.includes(a)&&this.removeItem(o,r)})}updateOutdatedCachedAccount(e,r,n,a){var o;if(r&&r.isSingleTenant()){(o=this.commonLogger)==null||o.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const s=this.getAccountKeys().filter(d=>d.startsWith(r.homeAccountId)),i=[];s.forEach(d=>{const p=this.getCachedAccountEntity(d,n);p&&i.push(p)});const l=i.find(d=>Ud(d.realm,d.homeAccountId))||i[0];l.tenantProfiles=i.map(d=>({tenantId:d.realm,localAccountId:d.localAccountId,name:d.name,isHomeTenant:Ud(d.realm,d.homeAccountId)}));const c=Qs.toObject(new Ct,{...l}),u=c.generateAccountKey();return s.forEach(d=>{d!==u&&this.removeOutdatedAccount(e,n)}),this.setAccount(c,n),a==null||a.verbose("Updated an outdated account entity in the cache"),c}return r}removeAccessToken(e,r){const n=this.getAccessTokenCredential(e,r);if(this.removeItem(e,r),!n||n.credentialType.toLowerCase()!==ye.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()||n.tokenType!==Be.POP)return;const a=n.keyId;a&&this.cryptoImpl.removeTokenBindingKey(a).catch(()=>{this.commonLogger.error("Binding key could not be removed")})}removeAppMetadata(e){return this.getKeys().forEach(n=>{this.isAppMetadata(n)&&this.removeItem(n,e)}),!0}readAccountFromCache(e,r){const n=Ct.generateAccountCacheKey(e);return this.getAccount(n,r,this.commonLogger)}getIdToken(e,r,n,a,o){this.commonLogger.trace("CacheManager - getIdToken called");const s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ye.ID_TOKEN,clientId:this.clientId,realm:a},i=this.getIdTokensByFilter(s,r,n),l=i.size;if(l<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(l>1){let c=i;if(!a){const u=new Map;i.forEach((p,h)=>{p.realm===e.tenantId&&u.set(h,p)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),i.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;c=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),c.forEach((u,d)=>{this.removeIdToken(d,r)}),o&&r&&o.addFields({multiMatchedID:i.size},r),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),i.values().next().value}getIdTokensByFilter(e,r,n){const a=n&&n.idToken||this.getTokenKeys().idToken,o=new Map;return a.forEach(s=>{if(!this.idTokenKeyMatchesFilter(s,{clientId:this.clientId,...e}))return;const i=this.getIdTokenCredential(s,r);i&&this.credentialMatchesFilter(i,e)&&o.set(s,i)}),o}idTokenKeyMatchesFilter(e,r){const n=e.toLowerCase();return!(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)}removeIdToken(e,r){this.removeItem(e,r)}removeRefreshToken(e,r){this.removeItem(e,r)}getAccessToken(e,r,n,a,o){this.commonLogger.trace("CacheManager - getAccessToken called");const s=it.createSearchScopes(r.scopes),i=r.authenticationScheme||Be.BEARER,l=i&&i.toLowerCase()!==Be.BEARER.toLowerCase()?ye.ACCESS_TOKEN_WITH_AUTH_SCHEME:ye.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:l,clientId:this.clientId,realm:a||e.tenantId,target:s,tokenType:i,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},u=n&&n.accessToken||this.getTokenKeys().accessToken,d=[];u.forEach(h=>{if(this.accessTokenKeyMatchesFilter(h,c,!0)){const f=this.getAccessTokenCredential(h,r.correlationId);f&&this.credentialMatchesFilter(f,c)&&d.push(f)}});const p=d.length;return p<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):p>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),d.forEach(h=>{this.removeAccessToken(ys(h),r.correlationId)}),o&&r.correlationId&&o.addFields({multiMatchedAT:d.length},r.correlationId),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),d[0])}accessTokenKeyMatchesFilter(e,r,n){const a=e.toLowerCase();if(r.clientId&&a.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&a.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&a.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&a.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target){const o=r.target.asArray();for(let s=0;s<o.length;s++){if(n&&!a.includes(o[s].toLowerCase()))return!1;if(!n&&a.includes(o[s].toLowerCase()))return!0}}return!0}getAccessTokensByFilter(e,r){const n=this.getTokenKeys(),a=[];return n.accessToken.forEach(o=>{if(!this.accessTokenKeyMatchesFilter(o,e,!0))return;const s=this.getAccessTokenCredential(o,r);s&&this.credentialMatchesFilter(s,e)&&a.push(s)}),a}getRefreshToken(e,r,n,a,o){this.commonLogger.trace("CacheManager - getRefreshToken called");const s=r?ll:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ye.REFRESH_TOKEN,clientId:this.clientId,familyId:s},l=a&&a.refreshToken||this.getTokenKeys().refreshToken,c=[];l.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,i)){const p=this.getRefreshTokenCredential(d,n);p&&this.credentialMatchesFilter(p,i)&&c.push(p)}});const u=c.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&o&&n&&o.addFields({multiMatchedRT:u},n),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])}refreshTokenKeyMatchesFilter(e,r){const n=e.toLowerCase();return!(r.familyId&&n.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const r={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(r),a=Object.keys(n).map(s=>n[s]),o=a.length;if(o<1)return null;if(o>1)throw te(Ib);return a[0]}isAppMetadataFOCI(e){const r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===ll)}matchHomeAccountId(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,r){const n=e.oid||e.sub;return r===n}matchLocalAccountIdFromTenantProfile(e,r){return e.localAccountId===r}matchName(e,r){var n;return r.toLowerCase()===((n=e.name)==null?void 0:n.toLowerCase())}matchUsername(e,r){return!!(e&&typeof e=="string"&&(r==null?void 0:r.toLowerCase())===e.toLowerCase())}matchUserAssertionHash(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)}matchEnvironment(e,r){if(this.staticAuthorityOptions){const a=lG(this.staticAuthorityOptions,this.commonLogger);if(a.includes(r)&&a.includes(e.environment))return!0}const n=this.getAuthorityMetadataByAlias(r);return!!(n&&n.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,r){return!!(e.clientId&&r===e.clientId)}matchFamilyId(e,r){return!!(e.familyId&&r===e.familyId)}matchRealm(e,r){var n;return((n=e.realm)==null?void 0:n.toLowerCase())===r.toLowerCase()}matchNativeAccountId(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,r){return e.login_hint===r||e.preferred_username===r||e.upn===r}matchSid(e,r){return e.sid===r}matchAuthorityType(e,r){return!!(e.authorityType&&r.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,r){return e.credentialType!==ye.ACCESS_TOKEN&&e.credentialType!==ye.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:it.fromString(e.target).containsScopeSet(r)}matchTokenType(e,r){return!!(e.tokenType&&e.tokenType===r)}matchKeyId(e,r){return!!(e.keyId&&e.keyId===r)}isAppMetadata(e){return e.indexOf(cg)!==-1}isAuthorityMetadata(e){return e.indexOf(Rd.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Rd.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,r){for(const n in r)e[n]=r[n];return e}}class uG extends Qs{setAccount(){throw te(xe)}getAccount(){throw te(xe)}getCachedAccountEntity(){throw te(xe)}setIdTokenCredential(){throw te(xe)}getIdTokenCredential(){throw te(xe)}setAccessTokenCredential(){throw te(xe)}getAccessTokenCredential(){throw te(xe)}setRefreshTokenCredential(){throw te(xe)}getRefreshTokenCredential(){throw te(xe)}setAppMetadata(){throw te(xe)}getAppMetadata(){throw te(xe)}setServerTelemetry(){throw te(xe)}getServerTelemetry(){throw te(xe)}setAuthorityMetadata(){throw te(xe)}getAuthorityMetadata(){throw te(xe)}getAuthorityMetadataKeys(){throw te(xe)}setThrottlingCache(){throw te(xe)}getThrottlingCache(){throw te(xe)}removeItem(){throw te(xe)}getKeys(){throw te(xe)}getAccountKeys(){throw te(xe)}getTokenKeys(){throw te(xe)}updateCredentialCacheKey(){throw te(xe)}removeOutdatedAccount(){throw te(xe)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const rT={tokenRenewalOffsetSeconds:R8,preventCorsPreflight:!1},dG={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ye.Info,correlationId:Z.EMPTY_STRING},pG={claimsBasedCachingEnabled:!1},hG={async sendGetRequestAsync(){throw te(xe)},async sendPostRequestAsync(){throw te(xe)}},fG={sku:Z.SKU,version:vg,cpu:Z.EMPTY_STRING,os:Z.EMPTY_STRING},mG={clientSecret:Z.EMPTY_STRING,clientAssertion:void 0},yG={azureCloudInstance:gg.None,tenant:`${Z.DEFAULT_COMMON_TENANT}`},vG={application:{appName:"",appVersion:""}};function gG({authOptions:t,systemOptions:e,loggerOptions:r,cacheOptions:n,storageInterface:a,networkInterface:o,cryptoInterface:s,clientCredentials:i,libraryInfo:l,telemetry:c,serverTelemetryManager:u,persistencePlugin:d,serializableCache:p}){const h={...dG,...r};return{authOptions:CG(t),systemOptions:{...rT,...e},loggerOptions:h,cacheOptions:{...pG,...n},storageInterface:a||new uG(t.clientId,kd,new la(h)),networkInterface:o||hG,cryptoInterface:s||kd,clientCredentials:i||mG,libraryInfo:{...fG,...l},telemetry:{...vG,...c},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:p||null}}function CG(t){return{clientCapabilities:[],azureCloudOptions:yG,skipAuthorityMetadataCache:!1,instanceAware:!1,...t}}function qm(t){return t.authOptions.authority.options.protocolMode===ea.OIDC}/*! @azure/msal-common v14.16.1 2025-08-05 */const Sr={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.16.1 2025-08-05 */const Ro="client_id",nT="redirect_uri",RP="response_type",xG="response_mode",SG="grant_type",PG="claims",AG="scope",OG="refresh_token",VG="state",IG="nonce",wG="prompt",bG="code",TG="code_challenge",EG="code_challenge_method",RG="code_verifier",DG="client-request-id",kG="x-client-SKU",_G="x-client-VER",UG="x-client-OS",BG="x-client-CPU",MG="x-client-current-telemetry",FG="x-client-last-telemetry",LG="x-ms-lib-capability",NG="x-app-name",GG="x-app-ver",HG="post_logout_redirect_uri",jG="id_token_hint",$G="device_code",zG="client_secret",qG="client_assertion",QG="client_assertion_type",DP="token_type",kP="req_cnf",KG="assertion",WG="requested_token_use",_P="return_spa_code",YG="nativebroker",JG="logout_hint",XG="sid",ZG="login_hint",e6="domain_hint",t6="x-client-xtra-sku",Tg="brk_client_id",Qm="brk_redirect_uri";/*! @azure/msal-common v14.16.1 2025-08-05 */class ts{static validateRedirectUri(e){if(!e)throw Le(Mb)}static validatePrompt(e){const r=[];for(const n in It)r.push(It[n]);if(r.indexOf(e)<0)throw Le(Gb)}static validateClaims(e){try{JSON.parse(e)}catch{throw Le(xg)}}static validateCodeChallengeParams(e,r){if(!e||!r)throw Le(Sg);this.validateCodeChallengeMethod(r)}static validateCodeChallengeMethod(e){if([CP.PLAIN,CP.S256].indexOf(e)<0)throw Le($b)}}/*! @azure/msal-common v14.16.1 2025-08-05 */function r6(t,e,r){if(!e)return;const n=t.get(Ro);n&&t.has(Tg)&&(r==null||r.addFields({embeddedClientId:n,embeddedRedirectUri:t.get(nT)},e))}class ul{constructor(e,r){this.parameters=new Map,this.performanceClient=r,this.correlationId=e}addResponseTypeCode(){this.parameters.set(RP,encodeURIComponent(Z.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(RP,encodeURIComponent(`${Z.TOKEN_RESPONSE_TYPE} ${Z.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(xG,encodeURIComponent(e||b8.QUERY))}addNativeBroker(){this.parameters.set(YG,encodeURIComponent("1"))}addScopes(e,r=!0,n=ui){r&&!n.includes("openid")&&!e.includes("openid")&&n.push("openid");const a=r?[...e||[],...n]:e||[],o=new it(a);this.parameters.set(AG,encodeURIComponent(o.printScopes()))}addClientId(e){this.parameters.set(Ro,encodeURIComponent(e))}addRedirectUri(e){ts.validateRedirectUri(e),this.parameters.set(nT,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ts.validateRedirectUri(e),this.parameters.set(HG,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(jG,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(e6,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(ZG,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(tr.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(tr.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(XG,encodeURIComponent(e))}addClaims(e,r){const n=this.addClientCapabilitiesToClaims(e,r);ts.validateClaims(n),this.parameters.set(PG,encodeURIComponent(n))}addCorrelationId(e){this.parameters.set(DG,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(kG,e.sku),this.parameters.set(_G,e.version),e.os&&this.parameters.set(UG,e.os),e.cpu&&this.parameters.set(BG,e.cpu)}addApplicationTelemetry(e){e!=null&&e.appName&&this.parameters.set(NG,e.appName),e!=null&&e.appVersion&&this.parameters.set(GG,e.appVersion)}addPrompt(e){ts.validatePrompt(e),this.parameters.set(`${wG}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(VG,encodeURIComponent(e))}addNonce(e){this.parameters.set(IG,encodeURIComponent(e))}addCodeChallengeParams(e,r){if(ts.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(TG,encodeURIComponent(e)),this.parameters.set(EG,encodeURIComponent(r));else throw Le(Sg)}addAuthorizationCode(e){this.parameters.set(bG,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set($G,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(OG,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(RG,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(zG,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(qG,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(QG,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(KG,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(WG,encodeURIComponent(e))}addGrantType(e){this.parameters.set(SG,encodeURIComponent(e))}addClientInfo(){this.parameters.set(T8,"1")}addExtraQueryParameters(e){Object.entries(e).forEach(([r,n])=>{!this.parameters.has(r)&&n&&this.parameters.set(r,n)})}addClientCapabilitiesToClaims(e,r){let n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw Le(xg)}return r&&r.length>0&&(n.hasOwnProperty(Qc.ACCESS_TOKEN)||(n[Qc.ACCESS_TOKEN]={}),n[Qc.ACCESS_TOKEN][Qc.XMS_CC]={values:r}),JSON.stringify(n)}addUsername(e){this.parameters.set(SP.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(SP.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(DP,Be.POP),this.parameters.set(kP,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(DP,Be.SSH),this.parameters.set(kP,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(MG,e.generateCurrentRequestHeaderValue()),this.parameters.set(FG,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(LG,cl.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(JG,encodeURIComponent(e))}addBrokerParameters(e){const r={};r[Tg]=e.brokerClientId,r[Qm]=e.brokerRedirectUri,this.addExtraQueryParameters(r)}createQueryString(){const e=new Array;return this.parameters.forEach((r,n)=>{e.push(`${n}=${r}`)}),r6(this.parameters,this.correlationId,this.performanceClient),e.join("&")}}/*! @azure/msal-common v14.16.1 2025-08-05 */function n6(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.16.1 2025-08-05 */function a6(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v14.16.1 2025-08-05 */function o6(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("error_description")}/*! @azure/msal-common v14.16.1 2025-08-05 */const K={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",AcquireTokenPreRedirect:"acquireTokenPreRedirect",AcquireTokenRedirect:"acquireTokenRedirect",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",AwaitConcurrentIframe:"awaitConcurrentIframe",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",NetworkClientSendPostRequestAsync:"networkClientSendPostRequestAsync",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromise",HandleNativeRedirectPromiseMeasurement:"handleNativeRedirectPromise",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},s6={NotStarted:0,InProgress:1,Completed:2};/*! @azure/msal-common v14.16.1 2025-08-05 */const Ho=(t,e,r,n,a)=>(...o)=>{r.trace(`Executing function ${e}`);const s=n==null?void 0:n.startMeasurement(e,a);if(a){const i=e+"CallCount";n==null||n.incrementFields({[i]:1},a)}try{const i=t(...o);return s==null||s.end({success:!0}),r.trace(`Returning result from ${e}`),i}catch(i){r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(i))}catch{r.trace("Unable to print error message.")}throw s==null||s.end({success:!1},i),i}},ne=(t,e,r,n,a)=>(...o)=>{r.trace(`Executing function ${e}`);const s=n==null?void 0:n.startMeasurement(e,a);if(a){const i=e+"CallCount";n==null||n.incrementFields({[i]:1},a)}return n==null||n.setPreQueueTime(e,a),t(...o).then(i=>(r.trace(`Returning result from ${e}`),s==null||s.end({success:!0}),i)).catch(i=>{r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(i))}catch{r.trace("Unable to print error message.")}throw s==null||s.end({success:!1},i),i})};/*! @azure/msal-common v14.16.1 2025-08-05 */class sh{constructor(e,r,n,a){this.networkInterface=e,this.logger=r,this.performanceClient=n,this.correlationId=a}async detectRegion(e,r){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(K.RegionDiscoveryDetectRegion,this.correlationId);let n=e;if(n)r.region_source=Xo.ENVIRONMENT_VARIABLE;else{const o=sh.IMDS_OPTIONS;try{const s=await ne(this.getRegionFromIMDS.bind(this),K.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(Z.IMDS_VERSION,o);if(s.status===Wc.httpSuccess&&(n=s.body,r.region_source=Xo.IMDS),s.status===Wc.httpBadRequest){const i=await ne(this.getCurrentVersion.bind(this),K.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(o);if(!i)return r.region_source=Xo.FAILED_AUTO_DETECTION,null;const l=await ne(this.getRegionFromIMDS.bind(this),K.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(i,o);l.status===Wc.httpSuccess&&(n=l.body,r.region_source=Xo.IMDS)}}catch{return r.region_source=Xo.FAILED_AUTO_DETECTION,null}}return n||(r.region_source=Xo.FAILED_AUTO_DETECTION),n||null}async getRegionFromIMDS(e,r){var n;return(n=this.performanceClient)==null||n.addQueueMeasurement(K.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${Z.IMDS_ENDPOINT}?api-version=${e}&format=text`,r,Z.IMDS_TIMEOUT)}async getCurrentVersion(e){var r;(r=this.performanceClient)==null||r.addQueueMeasurement(K.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const n=await this.networkInterface.sendGetRequestAsync(`${Z.IMDS_ENDPOINT}?format=json`,e);return n.status===Wc.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?n.body["newest-versions"][0]:null}catch{return null}}}sh.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.16.1 2025-08-05 */class qt{constructor(e,r,n,a,o,s,i,l){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=a,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=i,this.correlationId=s,this.managedIdentity=l||!1,this.regionDiscovery=new sh(r,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(Z.CIAM_AUTH_URL))return Xr.Ciam;const r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case Z.ADFS:return Xr.Adfs;case Z.DSTS:return Xr.Dsts}return Xr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Ie(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw te($n)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw te($n)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw te($n)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw te(kb);return this.replacePath(this.metadata.end_session_endpoint)}else throw te($n)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw te($n)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw te($n)}canReplaceTenant(e){return e.PathSegments.length===1&&!qt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Xr.Default&&this.protocolMode===ea.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let r=e;const a=new Ie(this.metadata.canonical_authority).getUrlComponents(),o=a.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((i,l)=>{let c=o[l];if(l===0&&this.canReplaceTenant(a)){const u=new Ie(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];c!==u&&(this.logger.verbose(`Replacing tenant domain name ${c} with id ${u}`),c=u)}i!==c&&(r=r.replace(`/${c}/`,`/${i}/`))}),this.replaceTenant(r)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Xr.Adfs||this.protocolMode!==ea.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){var a,o;(a=this.performanceClient)==null||a.addQueueMeasurement(K.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),r=await ne(this.updateCloudDiscoveryMetadata.bind(this),K.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const n=await ne(this.updateEndpointMetadata.bind(this),K.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,r,{source:n}),(o=this.performanceClient)==null||o.addFields({cloudDiscoverySource:r,authorityEndpointSource:n},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:wP(),jwks_uri:""}),e}updateCachedMetadata(e,r,n){r!==yr.CACHE&&(n==null?void 0:n.source)!==yr.CACHE&&(e.expiresAt=wP(),e.canonical_authority=this.canonicalAuthority);const a=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(a,e),this.metadata=e}async updateEndpointMetadata(e){var a,o,s;(a=this.performanceClient)==null||a.addQueueMeasurement(K.AuthorityUpdateEndpointMetadata,this.correlationId);const r=this.updateEndpointMetadataFromLocalSources(e);if(r){if(r.source===yr.HARDCODED_VALUES&&(o=this.authorityOptions.azureRegionConfiguration)!=null&&o.azureRegion&&r.metadata){const i=await ne(this.updateMetadataWithRegionalInformation.bind(this),K.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r.metadata);Yc(e,i,!1),e.canonical_authority=this.canonicalAuthority}return r.source}let n=await ne(this.getEndpointMetadataFromNetwork.bind(this),K.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(n)return(s=this.authorityOptions.azureRegionConfiguration)!=null&&s.azureRegion&&(n=await ne(this.updateMetadataWithRegionalInformation.bind(this),K.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(n)),Yc(e,n,!0),yr.NETWORK;throw te(Sb,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const r=this.getEndpointMetadataFromConfig();if(r)return this.logger.verbose("Found endpoint metadata in authority configuration"),Yc(e,r,!1),{source:yr.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const a=this.getEndpointMetadataFromHardcodedValues();if(a)return Yc(e,a,!1),{source:yr.HARDCODED_VALUES,metadata:a};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const n=bP(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!n?(this.logger.verbose("Found endpoint metadata in the cache."),{source:yr.CACHE}):(n&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Ie(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Le(zb)}return null}async getEndpointMetadataFromNetwork(){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(K.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},r=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${r}`);try{const a=await this.networkInterface.sendGetRequestAsync(r,e);return n6(a.body)?a.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(a){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${a}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in TP?TP[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){var n,a,o;(n=this.performanceClient)==null||n.addQueueMeasurement(K.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const r=(a=this.authorityOptions.azureRegionConfiguration)==null?void 0:a.azureRegion;if(r){if(r!==Z.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=tf.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=r,qt.replaceWithRegionalInformation(e,r);const s=await ne(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),K.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)((o=this.authorityOptions.azureRegionConfiguration)==null?void 0:o.environmentRegion,this.regionDiscoveryMetadata);if(s)return this.regionDiscoveryMetadata.region_outcome=tf.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,qt.replaceWithRegionalInformation(e,s);this.regionDiscoveryMetadata.region_outcome=tf.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(K.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const r=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(r)return r;const n=await ne(this.getCloudDiscoveryMetadataFromNetwork.bind(this),K.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(n)return rf(e,n,!0),yr.NETWORK;throw Le(qb)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||Z.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||Z.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||Z.NOT_APPLICABLE}`);const r=this.getCloudDiscoveryMetadataFromConfig();if(r)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),rf(e,r,!1),yr.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const a=cG(this.hostnameAndPort);if(a)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),rf(e,a,!1),yr.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const n=bP(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!n?(this.logger.verbose("Found cloud discovery metadata in the cache."),yr.CACHE):(n&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Xr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=Md(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Le(Pg)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(K.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${Z.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,r={};let n=null;try{const o=await this.networkInterface.sendGetRequestAsync(e,r);let s,i;if(a6(o.body))s=o.body,i=s.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${s.tenant_discovery_endpoint}`);else if(o6(o.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${o.status}`),s=o.body,s.error===Z.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${s.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${s.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),i=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),n=Md(i,this.hostnameAndPort)}catch(o){if(o instanceof Qe)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
124
|
+
Error: ${o.errorCode}
|
|
125
|
+
Error Description: ${o.errorMessage}`);else{const s=o;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
126
|
+
Error: ${s.name}
|
|
127
|
+
Error Description: ${s.message}`)}return null}return n||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),n=qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),n}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(r=>r&&Ie.getDomainFromUrl(r).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,r){let n;if(r&&r.azureCloudInstance!==gg.None){const a=r.tenant?r.tenant:Z.DEFAULT_COMMON_TENANT;n=`${r.azureCloudInstance}/${a}/`}return n||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.managedIdentity)return Z.DEFAULT_AUTHORITY_HOST;if(this.discoveryComplete())return this.metadata.preferred_cache;throw te($n)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return eT.has(e)}static isPublicCloudAuthority(e){return Z.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,r,n){const a=new Ie(e);a.validateAsUri();const o=a.getUrlComponents();let s=`${r}.${o.HostNameAndPort}`;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=`${r}.${Z.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const i=Ie.constructAuthorityUriFromObject({...a.getUrlComponents(),HostNameAndPort:s}).urlString;return n?`${i}?${n}`:i}static replaceWithRegionalInformation(e,r){const n={...e};return n.authorization_endpoint=qt.buildRegionalAuthorityString(n.authorization_endpoint,r),n.token_endpoint=qt.buildRegionalAuthorityString(n.token_endpoint,r),n.end_session_endpoint&&(n.end_session_endpoint=qt.buildRegionalAuthorityString(n.end_session_endpoint,r)),n}static transformCIAMAuthority(e){let r=e;const a=new Ie(e).getUrlComponents();if(a.PathSegments.length===0&&a.HostNameAndPort.endsWith(Z.CIAM_AUTH_URL)){const o=a.HostNameAndPort.split(".")[0];r=`${r}${o}${Z.AAD_TENANT_DOMAIN_SUFFIX}`}return r}}qt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Ha.COMMON,Ha.CONSUMERS,Ha.ORGANIZATIONS]);function i6(t){var a;const n=(a=new Ie(t).getUrlComponents().PathSegments.slice(-1)[0])==null?void 0:a.toLowerCase();switch(n){case Ha.COMMON:case Ha.ORGANIZATIONS:case Ha.CONSUMERS:return;default:return n}}function aT(t){return t.endsWith(Z.FORWARD_SLASH)?t:`${t}${Z.FORWARD_SLASH}`}function l6(t){const e=t.cloudDiscoveryMetadata;let r;if(e)try{r=JSON.parse(e)}catch{throw Le(Pg)}return{canonicalAuthority:t.authority?aT(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:r}}/*! @azure/msal-common v14.16.1 2025-08-05 */async function oT(t,e,r,n,a,o,s){s==null||s.addQueueMeasurement(K.AuthorityFactoryCreateDiscoveredInstance,o);const i=qt.transformCIAMAuthority(aT(t)),l=new qt(i,e,r,n,a,o,s);try{return await ne(l.resolveEndpointsAsync.bind(l),K.AuthorityResolveEndpointsAsync,a,s,o)(),l}catch{throw te($n)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class Ja extends Qe{constructor(e,r,n,a,o){super(e,r,n),this.name="ServerError",this.errorNo=a,this.status=o,Object.setPrototypeOf(this,Ja.prototype)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class xn{static generateThrottlingStorageKey(e){return`${cl.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,r,n){var s;const a=xn.generateThrottlingStorageKey(r),o=e.getThrottlingCache(a);if(o){if(o.throttleTime<Date.now()){e.removeItem(a,n);return}throw new Ja(((s=o.errorCodes)==null?void 0:s.join(" "))||Z.EMPTY_STRING,o.errorMessage,o.subError)}}static postProcess(e,r,n,a){if(xn.checkResponseStatus(n)||xn.checkResponseForRetryAfter(n)){const o={throttleTime:xn.calculateThrottleTime(parseInt(n.headers[tr.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(xn.generateThrottlingStorageKey(r),o,a)}}static checkResponseStatus(e){return e.status===429||e.status>=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(tr.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const r=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(r||cl.DEFAULT_THROTTLE_TIME_SECONDS),n+cl.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,r,n,a){const o={clientId:r,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:a,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},s=this.generateThrottlingStorageKey(o);e.removeItem(s,n.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class ih extends Qe{constructor(e,r,n){super(e.errorCode,e.errorMessage,e.subError),Object.setPrototypeOf(this,ih.prototype),this.name="NetworkError",this.error=e,this.httpStatus=r,this.responseHeaders=n}}function UP(t,e,r){return new ih(t,e,r)}/*! @azure/msal-common v14.16.1 2025-08-05 */class Eg{constructor(e,r){this.config=gG(e),this.logger=new la(this.config.loggerOptions,_b,vg),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}createTokenRequestHeaders(e){const r={};if(r[tr.CONTENT_TYPE]=Z.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Sr.HOME_ACCOUNT_ID:try{const n=vs(e.credential);r[tr.CCS_HEADER]=`Oid:${n.uid}@${n.utid}`}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case Sr.UPN:r[tr.CCS_HEADER]=`UPN: ${e.credential}`;break}return r}async executePostToTokenEndpoint(e,r,n,a,o,s){var l;s&&((l=this.performanceClient)==null||l.addQueueMeasurement(s,o));const i=await this.sendPostRequest(a,e,{body:r,headers:n},o);return this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),i}async sendPostRequest(e,r,n,a){var s,i,l;xn.preProcess(this.cacheManager,e,a);let o;try{o=await ne(this.networkClient.sendPostRequestAsync.bind(this.networkClient),K.NetworkClientSendPostRequestAsync,this.logger,this.performanceClient,a)(r,n);const c=o.headers||{};(i=this.performanceClient)==null||i.addFields({refreshTokenSize:((s=o.body.refresh_token)==null?void 0:s.length)||0,httpVerToken:c[tr.X_MS_HTTP_VERSION]||"",requestId:c[tr.X_MS_REQUEST_ID]||""},a)}catch(c){if(c instanceof ih){const u=c.responseHeaders;throw u&&((l=this.performanceClient)==null||l.addFields({httpVerToken:u[tr.X_MS_HTTP_VERSION]||"",requestId:u[tr.X_MS_REQUEST_ID]||"",contentTypeHeader:u[tr.CONTENT_TYPE]||void 0,contentLengthHeader:u[tr.CONTENT_LENGTH]||void 0,httpStatus:c.httpStatus},a)),c.error}throw c instanceof Qe?c:te(xb)}return xn.postProcess(this.cacheManager,e,o,a),o}async updateAuthority(e,r){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(K.UpdateTokenEndpointAuthority,r);const n=`https://${e}/${this.authority.tenant}/`,a=await oT(n,this.networkClient,this.cacheManager,this.authority.options,this.logger,r,this.performanceClient);this.authority=a}createTokenQueryParameters(e){const r=new ul(e.correlationId,this.performanceClient);return e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.addCorrelationId(e.correlationId),r.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */const Fd="no_tokens_found",sT="native_account_unavailable",Rg="refresh_token_expired",c6="interaction_required",u6="consent_required",d6="login_required",lh="bad_token";/*! @azure/msal-common v14.16.1 2025-08-05 */const BP=[c6,u6,d6,lh],p6=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],h6={[Fd]:"No refresh token found in the cache. Please sign-in.",[sT]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[Rg]:"Refresh token has expired.",[lh]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class un extends Qe{constructor(e,r,n,a,o,s,i,l){super(e,r,n),Object.setPrototypeOf(this,un.prototype),this.timestamp=a||Z.EMPTY_STRING,this.traceId=o||Z.EMPTY_STRING,this.correlationId=s||Z.EMPTY_STRING,this.claims=i||Z.EMPTY_STRING,this.name="InteractionRequiredAuthError",this.errorNo=l}}function MP(t,e,r){const n=!!t&&BP.indexOf(t)>-1,a=!!r&&p6.indexOf(r)>-1,o=!!e&&BP.some(s=>e.indexOf(s)>-1);return n||o||a}function Km(t){return new un(t,h6[t])}/*! @azure/msal-common v14.16.1 2025-08-05 */class on{static setRequestState(e,r,n){const a=on.generateLibraryState(e,n);return r?`${a}${Z.RESOURCE_DELIM}${r}`:a}static generateLibraryState(e,r){if(!e)throw te(jm);const n={id:e.createNewGuid()};r&&(n.meta=r);const a=JSON.stringify(n);return e.base64Encode(a)}static parseRequestState(e,r){if(!e)throw te(jm);if(!r)throw te(qs);try{const n=r.split(Z.RESOURCE_DELIM),a=n[0],o=n.length>1?n.slice(1).join(Z.RESOURCE_DELIM):Z.EMPTY_STRING,s=e.base64Decode(a),i=JSON.parse(s);return{userRequestState:o||Z.EMPTY_STRING,libraryState:i}}catch{throw te(qs)}}}/*! @azure/msal-common v14.16.1 2025-08-05 */const f6={SW:"sw",UHW:"uhw"};class Ks{constructor(e,r){this.cryptoUtils=e,this.performanceClient=r}async generateCnf(e,r){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(K.PopTokenGenerateCnf,e.correlationId);const n=await ne(this.generateKid.bind(this),K.PopTokenGenerateCnf,r,this.performanceClient,e.correlationId)(e),a=this.cryptoUtils.base64UrlEncode(JSON.stringify(n));return{kid:n.kid,reqCnfString:a}}async generateKid(e){var n;return(n=this.performanceClient)==null||n.addQueueMeasurement(K.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:f6.SW}}async signPopToken(e,r,n){return this.signPayload(e,r,n)}async signPayload(e,r,n,a){const{resourceRequestMethod:o,resourceRequestUri:s,shrClaims:i,shrNonce:l,shrOptions:c}=n,u=s?new Ie(s):void 0,d=u==null?void 0:u.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Dn(),m:o==null?void 0:o.toUpperCase(),u:d==null?void 0:d.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:d==null?void 0:d.AbsolutePath,q:d!=null&&d.QueryString?[[],d.QueryString]:void 0,client_claims:i||void 0,...a},r,c,n.correlationId)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class m6{constructor(e,r){this.cache=e,this.hasChanged=r}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.16.1 2025-08-05 */function y6(t){var n,a;const e="code=",r=(n=t.error_uri)==null?void 0:n.lastIndexOf(e);return r&&r>=0?(a=t.error_uri)==null?void 0:a.substring(r+e.length):void 0}class Do{constructor(e,r,n,a,o,s,i){this.clientId=e,this.cacheStorage=r,this.cryptoObj=n,this.logger=a,this.serializableCache=o,this.persistencePlugin=s,this.performanceClient=i}validateServerAuthorizationCodeResponse(e,r){if(!e.state||!r)throw e.state?te(Dd,"Cached State"):te(Dd,"Server State");let n,a;try{n=decodeURIComponent(e.state)}catch{throw te(qs,e.state)}try{a=decodeURIComponent(r)}catch{throw te(qs,e.state)}if(n!==a)throw te(Ab);if(e.error||e.error_description||e.suberror){const o=y6(e);throw MP(e.error,e.error_description,e.suberror)?new un(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",o):new Ja(e.error||"",e.error_description,e.suberror,o)}}validateTokenResponse(e,r){var n;if(e.error||e.error_description||e.suberror){const a=`Error(s): ${e.error_codes||Z.NOT_AVAILABLE} - Timestamp: ${e.timestamp||Z.NOT_AVAILABLE} - Description: ${e.error_description||Z.NOT_AVAILABLE} - Correlation ID: ${e.correlation_id||Z.NOT_AVAILABLE} - Trace ID: ${e.trace_id||Z.NOT_AVAILABLE}`,o=(n=e.error_codes)!=null&&n.length?e.error_codes[0]:void 0,s=new Ja(e.error,a,e.suberror,o,e.status);if(r&&e.status&&e.status>=qc.SERVER_ERROR_RANGE_START&&e.status<=qc.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed.
|
|
128
|
+
${s}`);return}else if(r&&e.status&&e.status>=qc.CLIENT_ERROR_RANGE_START&&e.status<=qc.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token.
|
|
129
|
+
${s}`);return}throw MP(e.error,e.error_description,e.suberror)?new un(e.error,e.error_description,e.suberror,e.timestamp||Z.EMPTY_STRING,e.trace_id||Z.EMPTY_STRING,e.correlation_id||Z.EMPTY_STRING,e.claims||Z.EMPTY_STRING,o):s}}async handleServerTokenResponse(e,r,n,a,o,s,i,l,c){var f;(f=this.performanceClient)==null||f.addQueueMeasurement(K.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=Go(e.id_token||Z.EMPTY_STRING,this.cryptoObj.base64Decode),o&&o.nonce&&u.nonce!==o.nonce)throw te(Ob);if(a.maxAge||a.maxAge===0){const y=u.auth_time;if(!y)throw te(hg);Ub(y,a.maxAge)}}this.homeAccountIdentifier=Ct.generateHomeAccountId(e.client_info||Z.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u);let d;o&&o.state&&(d=on.parseRequestState(this.cryptoObj,o.state)),e.key_id=e.key_id||a.sshKid||void 0;const p=this.generateCacheRecord(e,r,n,a,u,s,o);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new m6(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),i&&!l&&p.account){const y=p.account.generateAccountKey();if(!this.cacheStorage.getAccount(y,a.correlationId,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Do.generateAuthenticationResult(this.cryptoObj,r,p,!1,a,u,d,void 0,c)}await this.cacheStorage.saveCacheRecord(p,a.correlationId,a.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Do.generateAuthenticationResult(this.cryptoObj,r,p,!1,a,u,d,e,c)}generateCacheRecord(e,r,n,a,o,s,i){const l=r.getPreferredCache();if(!l)throw te(mg);const c=Jb(o);let u,d;e.id_token&&o&&(u=nh(this.homeAccountIdentifier,l,e.id_token,this.clientId,c||""),d=Dg(this.cacheStorage,r,this.homeAccountIdentifier,this.cryptoObj.base64Decode,a.correlationId,o,e.client_info,l,c,i,void 0,this.logger));let p=null;if(e.access_token){const y=e.scope?it.fromString(e.scope):new it(a.scopes||[]),v=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,g=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,C=n+v,x=C+g,S=m&&m>0?n+m:void 0;p=ah(this.homeAccountIdentifier,l,e.access_token,this.clientId,c||r.tenant||"",y.printScopes(),C,x,this.cryptoObj.base64Decode,S,e.token_type,s,e.key_id,a.claims,a.requestedClaimsHash)}let h=null;if(e.refresh_token){let y;if(e.refresh_token_expires_in){const v=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;y=n+v}h=Bb(this.homeAccountIdentifier,l,e.refresh_token,this.clientId,e.foci,s,y)}let f=null;return e.foci&&(f={clientId:this.clientId,environment:l,familyId:e.foci}),{account:d,idToken:u,accessToken:p,refreshToken:h,appMetadata:f}}static async generateAuthenticationResult(e,r,n,a,o,s,i,l,c){var C,x,S,P,A;let u=Z.EMPTY_STRING,d=[],p=null,h,f,y=Z.EMPTY_STRING;if(n.accessToken){if(n.accessToken.tokenType===Be.POP&&!o.popKid){const V=new Ks(e),{secret:U,keyId:O}=n.accessToken;if(!O)throw te(yg);u=await V.signPopToken(U,O,o)}else u=n.accessToken.secret;d=it.fromString(n.accessToken.target).asArray(),p=new Date(Number(n.accessToken.expiresOn)*1e3),h=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),n.accessToken.refreshOn&&(f=new Date(Number(n.accessToken.refreshOn)*1e3))}n.appMetadata&&(y=n.appMetadata.familyId===ll?ll:"");const v=(s==null?void 0:s.oid)||(s==null?void 0:s.sub)||"",g=(s==null?void 0:s.tid)||"";l!=null&&l.spa_accountid&&n.account&&(n.account.nativeAccountId=l==null?void 0:l.spa_accountid);const m=n.account?Vg(n.account.getAccountInfo(),void 0,s,(C=n.idToken)==null?void 0:C.secret):null;return{authority:r.canonicalAuthority,uniqueId:v,tenantId:g,scopes:d,account:m,idToken:((x=n==null?void 0:n.idToken)==null?void 0:x.secret)||"",idTokenClaims:s||{},accessToken:u,fromCache:a,expiresOn:p,extExpiresOn:h,refreshOn:f,correlationId:o.correlationId,requestId:c||Z.EMPTY_STRING,familyId:y,tokenType:((S=n.accessToken)==null?void 0:S.tokenType)||Z.EMPTY_STRING,state:i?i.userRequestState:Z.EMPTY_STRING,cloudGraphHostName:((P=n.account)==null?void 0:P.cloudGraphHostName)||Z.EMPTY_STRING,msGraphHost:((A=n.account)==null?void 0:A.msGraphHost)||Z.EMPTY_STRING,code:l==null?void 0:l.spa_code,fromNativeBroker:!1}}}function Dg(t,e,r,n,a,o,s,i,l,c,u,d){d==null||d.verbose("setCachedAccount called");const h=t.getAccountKeys().find(m=>m.startsWith(r));let f=null;h&&(f=t.getAccount(h,a,d));const y=f||Ct.createAccount({homeAccountId:r,idTokenClaims:o,clientInfo:s,environment:i,cloudGraphHostName:c==null?void 0:c.cloud_graph_host_name,msGraphHost:c==null?void 0:c.msgraph_host,nativeAccountId:u},e,n),v=y.tenantProfiles||[],g=l||y.realm;if(g&&!v.find(m=>m.tenantId===g)){const m=Og(r,y.localAccountId,g,o);v.push(m)}return y.tenantProfiles=v,y}/*! @azure/msal-common v14.16.1 2025-08-05 */async function iT(t,e,r){return typeof t=="string"?t:t({clientId:e,tokenEndpoint:r})}/*! @azure/msal-common v14.16.1 2025-08-05 */class lT extends Eg{constructor(e,r){var n;super(e,r),this.includeRedirectUri=!0,this.oidcDefaultScopes=(n=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:n.defaultScopes}async getAuthCodeUrl(e){var n;(n=this.performanceClient)==null||n.addQueueMeasurement(K.GetAuthCodeUrl,e.correlationId);const r=await ne(this.createAuthCodeUrlQueryString.bind(this),K.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return Ie.appendQueryString(this.authority.authorizationEndpoint,r)}async acquireToken(e,r){var i,l;if((i=this.performanceClient)==null||i.addQueueMeasurement(K.AuthClientAcquireToken,e.correlationId),!e.code)throw te(wb);const n=Dn(),a=await ne(this.executeTokenRequest.bind(this),K.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),o=(l=a.headers)==null?void 0:l[tr.X_MS_REQUEST_ID],s=new Do(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return s.validateTokenResponse(a.body),ne(s.handleServerTokenResponse.bind(s),K.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(a.body,this.authority,n,e,r,void 0,void 0,void 0,o)}handleFragmentResponse(e,r){if(new Do(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,r),!e.code)throw te(Db);return e}getLogoutUri(e){if(!e)throw Le(jb);const r=this.createLogoutUrlQueryString(e);return Ie.appendQueryString(this.authority.endSessionEndpoint,r)}async executeTokenRequest(e,r){var c,u;(c=this.performanceClient)==null||c.addQueueMeasurement(K.AuthClientExecuteTokenRequest,r.correlationId);const n=this.createTokenQueryParameters(r),a=Ie.appendQueryString(e.tokenEndpoint,n),o=await ne(this.createTokenRequestBody.bind(this),K.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,r.correlationId)(r);let s;if(r.clientInfo)try{const d=_d(r.clientInfo,this.cryptoUtils.base64Decode);s={credential:`${d.uid}${Kt.CLIENT_INFO_SEPARATOR}${d.utid}`,type:Sr.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}const i=this.createTokenRequestHeaders(s||r.ccsCredential),l={clientId:((u=r.tokenBodyParameters)==null?void 0:u.clientId)||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return ne(this.executePostToTokenEndpoint.bind(this),K.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,r.correlationId)(a,o,i,l,r.correlationId,K.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var a,o;(a=this.performanceClient)==null||a.addQueueMeasurement(K.AuthClientCreateTokenRequestBody,e.correlationId);const r=new ul(e.correlationId,this.performanceClient);if(r.addClientId(e.embeddedClientId||((o=e.tokenBodyParameters)==null?void 0:o[Ro])||this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):ts.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,this.oidcDefaultScopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!qm(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const s=this.config.clientCredentials.clientAssertion;r.addClientAssertion(await iT(s.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),r.addClientAssertionType(s.assertionType)}if(r.addGrantType(yb.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme===Be.POP){const s=new Ks(this.cryptoUtils,this.performanceClient);let i;e.popKid?i=this.cryptoUtils.encodeKid(e.popKid):i=(await ne(s.generateCnf.bind(s),K.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,r.addPopToken(i)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Le(oh);(!an.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const s=_d(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${s.uid}${Kt.CLIENT_INFO_SEPARATOR}${s.utid}`,type:Sr.HOME_ACCOUNT_ID}}catch(s){this.logger.verbose("Could not parse client info for CCS Header: "+s)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case Sr.HOME_ACCOUNT_ID:try{const s=vs(n.credential);r.addCcsOid(s)}catch(s){this.logger.verbose("Could not parse home account ID for CCS Header: "+s)}break;case Sr.UPN:r.addCcsUpn(n.credential);break}return e.embeddedClientId&&r.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[_P])&&r.addExtraQueryParameters({[_P]:"1"}),r.createQueryString()}async createAuthCodeUrlQueryString(e){var o,s;const r=e.correlationId||this.config.cryptoInterface.createNewGuid();(o=this.performanceClient)==null||o.addQueueMeasurement(K.AuthClientCreateQueryString,r);const n=new ul(r,this.performanceClient);n.addClientId(e.embeddedClientId||((s=e.extraQueryParameters)==null?void 0:s[Ro])||this.config.authOptions.clientId);const a=[...e.scopes||[],...e.extraScopesToConsent||[]];if(n.addScopes(a,!0,this.oidcDefaultScopes),n.addRedirectUri(e.redirectUri),n.addCorrelationId(r),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),qm(this.config)||n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==It.SELECT_ACCOUNT)if(e.sid&&e.prompt===It.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){const i=this.extractAccountSid(e.account);let l=this.extractLoginHint(e.account);if(l&&e.domainHint&&(this.logger.warning('AuthorizationCodeClient.createAuthCodeUrlQueryString: "domainHint" param is set, skipping opaque "login_hint" claim. Please consider not passing domainHint'),l=null),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(l);try{const c=vs(e.account.homeAccountId);n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===It.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(i);try{const c=vs(e.account.homeAccountId);n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{const c=vs(e.account.homeAccountId);n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),this.addExtraQueryParams(e,n),e.nativeBroker&&(n.addNativeBroker(),e.authenticationScheme===Be.POP)){const i=new Ks(this.cryptoUtils);let l;e.popKid?l=this.cryptoUtils.encodeKid(e.popKid):l=(await ne(i.generateCnf.bind(i),K.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,n.addPopToken(l)}return n.createQueryString()}createLogoutUrlQueryString(e){const r=new ul(e.correlationId,this.performanceClient);return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),this.addExtraQueryParams(e,r),r.createQueryString()}addExtraQueryParams(e,r){!(e.extraQueryParameters&&e.extraQueryParameters.hasOwnProperty("instance_aware"))&&this.config.authOptions.instanceAware&&(e.extraQueryParameters=e.extraQueryParameters||{},e.extraQueryParameters.instance_aware="true"),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters)}extractAccountSid(e){var r;return((r=e.idTokenClaims)==null?void 0:r.sid)||null}extractLoginHint(e){var r;return((r=e.idTokenClaims)==null?void 0:r.login_hint)||null}}/*! @azure/msal-common v14.16.1 2025-08-05 */const v6=300;class Wm extends Eg{constructor(e,r){super(e,r)}async acquireToken(e){var s,i;(s=this.performanceClient)==null||s.addQueueMeasurement(K.RefreshTokenClientAcquireToken,e.correlationId);const r=Dn(),n=await ne(this.executeTokenRequest.bind(this),K.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),a=(i=n.headers)==null?void 0:i[tr.X_MS_REQUEST_ID],o=new Do(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return o.validateTokenResponse(n.body),ne(o.handleServerTokenResponse.bind(o),K.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,r,e,void 0,void 0,!0,e.forceCache,a)}async acquireTokenByRefreshToken(e){var n;if(!e)throw Le(Hb);if((n=this.performanceClient)==null||n.addQueueMeasurement(K.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw te(fg);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await ne(this.acquireTokenWithCachedRefreshToken.bind(this),K.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(a){const o=a instanceof un&&a.errorCode===Fd,s=a instanceof Ja&&a.errorCode===xP.INVALID_GRANT_ERROR&&a.subError===xP.CLIENT_MISMATCH_ERROR;if(o||s)return ne(this.acquireTokenWithCachedRefreshToken.bind(this),K.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw a}return ne(this.acquireTokenWithCachedRefreshToken.bind(this),K.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,r){var o;(o=this.performanceClient)==null||o.addQueueMeasurement(K.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const n=Ho(this.cacheManager.getRefreshToken.bind(this.cacheManager),K.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,r,e.correlationId,void 0,this.performanceClient);if(!n)throw Km(Fd);if(n.expiresOn&&zm(n.expiresOn,e.refreshTokenExpirationOffsetSeconds||v6))throw Km(Rg);const a={...e,refreshToken:n.secret,authenticationScheme:e.authenticationScheme||Be.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Sr.HOME_ACCOUNT_ID}};try{return await ne(this.acquireToken.bind(this),K.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(a)}catch(s){if(s instanceof un&&s.subError===lh){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const i=ys(n);this.cacheManager.removeRefreshToken(i,e.correlationId)}throw s}}async executeTokenRequest(e,r){var l,c;(l=this.performanceClient)==null||l.addQueueMeasurement(K.RefreshTokenClientExecuteTokenRequest,e.correlationId);const n=this.createTokenQueryParameters(e),a=Ie.appendQueryString(r.tokenEndpoint,n),o=await ne(this.createTokenRequestBody.bind(this),K.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),s=this.createTokenRequestHeaders(e.ccsCredential),i={clientId:((c=e.tokenBodyParameters)==null?void 0:c.clientId)||this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return ne(this.executePostToTokenEndpoint.bind(this),K.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(a,o,s,i,e.correlationId,K.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){var a,o,s;(a=this.performanceClient)==null||a.addQueueMeasurement(K.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const r=e.correlationId,n=new ul(r,this.performanceClient);if(n.addClientId(e.embeddedClientId||((o=e.tokenBodyParameters)==null?void 0:o[Ro])||this.config.authOptions.clientId),e.redirectUri&&n.addRedirectUri(e.redirectUri),n.addScopes(e.scopes,!0,(s=this.config.authOptions.authority.options.OIDCOptions)==null?void 0:s.defaultScopes),n.addGrantType(yb.REFRESH_TOKEN_GRANT),n.addClientInfo(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&!qm(this.config)&&n.addServerTelemetry(this.serverTelemetryManager),n.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const i=this.config.clientCredentials.clientAssertion;n.addClientAssertion(await iT(i.assertion,this.config.authOptions.clientId,e.resourceRequestUri)),n.addClientAssertionType(i.assertionType)}if(e.authenticationScheme===Be.POP){const i=new Ks(this.cryptoUtils,this.performanceClient);let l;e.popKid?l=this.cryptoUtils.encodeKid(e.popKid):l=(await ne(i.generateCnf.bind(i),K.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger)).reqCnfString,n.addPopToken(l)}else if(e.authenticationScheme===Be.SSH)if(e.sshJwk)n.addSshJwk(e.sshJwk);else throw Le(oh);if((!an.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Sr.HOME_ACCOUNT_ID:try{const i=vs(e.ccsCredential.credential);n.addCcsOid(i)}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case Sr.UPN:n.addCcsUpn(e.ccsCredential.credential);break}return e.embeddedClientId&&n.addBrokerParameters({brokerClientId:this.config.authOptions.clientId,brokerRedirectUri:this.config.authOptions.redirectUri}),e.tokenBodyParameters&&n.addExtraQueryParameters(e.tokenBodyParameters),n.createQueryString()}}/*! @azure/msal-common v14.16.1 2025-08-05 */class g6 extends Eg{constructor(e,r){super(e,r)}async acquireToken(e){var r;try{const[n,a]=await this.acquireCachedToken({...e,scopes:(r=e.scopes)!=null&&r.length?e.scopes:[...ui]});return a===ga.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new Wm(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),n}catch(n){if(n instanceof rh&&n.errorCode===Wn)return new Wm(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw n}}async acquireCachedToken(e){var l;(l=this.performanceClient)==null||l.addQueueMeasurement(K.SilentFlowClientAcquireCachedToken,e.correlationId);let r=ga.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!an.isEmptyObj(e.claims))throw this.setCacheOutcome(ga.FORCE_REFRESH_OR_CLAIMS,e.correlationId),te(Wn);if(!e.account)throw te(fg);const n=e.account.tenantId||i6(e.authority),a=this.cacheManager.getTokenKeys(),o=this.cacheManager.getAccessToken(e.account,e,a,n,this.performanceClient);if(o){if(Q8(o.cachedAt)||zm(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(ga.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),te(Wn);o.refreshOn&&zm(o.refreshOn,0)&&(r=ga.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(ga.NO_CACHED_ACCESS_TOKEN,e.correlationId),te(Wn);const s=e.authority||this.authority.getPreferredCache(),i={account:this.cacheManager.readAccountFromCache(e.account,e.correlationId),accessToken:o,idToken:this.cacheManager.getIdToken(e.account,e.correlationId,a,n,this.performanceClient),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(s)};return this.setCacheOutcome(r,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await ne(this.generateResultFromCacheRecord.bind(this),K.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(i,e),r]}setCacheOutcome(e,r){var n,a;(n=this.serverTelemetryManager)==null||n.setCacheOutcome(e),(a=this.performanceClient)==null||a.addFields({cacheOutcome:e},r),e!==ga.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,r){var a;(a=this.performanceClient)==null||a.addQueueMeasurement(K.SilentFlowClientGenerateResultFromCacheRecord,r.correlationId);let n;if(e.idToken&&(n=Go(e.idToken.secret,this.config.cryptoInterface.base64Decode)),r.maxAge||r.maxAge===0){const o=n==null?void 0:n.auth_time;if(!o)throw te(hg);Ub(o,r.maxAge)}return Do.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,n)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const C6={sendGetRequestAsync:()=>Promise.reject(te(xe)),sendPostRequestAsync:()=>Promise.reject(te(xe))};/*! @azure/msal-common v14.16.1 2025-08-05 */const FP=",",cT="|";function x6(t){const{skus:e,libraryName:r,libraryVersion:n,extensionName:a,extensionVersion:o}=t,s=new Map([[0,[r,n]],[2,[a,o]]]);let i=[];if(e!=null&&e.length){if(i=e.split(FP),i.length<4)return e}else i=Array.from({length:4},()=>cT);return s.forEach((l,c)=>{var u,d;l.length===2&&((u=l[0])!=null&&u.length)&&((d=l[1])!=null&&d.length)&&S6({skuArr:i,index:c,skuName:l[0],skuVersion:l[1]})}),i.join(FP)}function S6(t){const{skuArr:e,index:r,skuName:n,skuVersion:a}=t;r>=e.length||(e[r]=[n,a].join(cT))}class Ll{constructor(e,r){this.cacheOutcome=ga.NOT_APPLICABLE,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||Z.EMPTY_STRING,this.wrapperVer=e.wrapperVer||Z.EMPTY_STRING,this.telemetryCacheKey=kt.CACHE_KEY+Kt.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${kt.VALUE_SEPARATOR}${this.cacheOutcome}`,r=[this.wrapperSKU,this.wrapperVer],n=this.getNativeBrokerErrorCode();n!=null&&n.length&&r.push(`broker_error=${n}`);const a=r.join(kt.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),s=[e,o].join(kt.VALUE_SEPARATOR);return[kt.SCHEMA_VERSION,s,a].join(kt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),r=Ll.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(kt.VALUE_SEPARATOR),a=e.errors.slice(0,r).join(kt.VALUE_SEPARATOR),o=e.errors.length,s=r<o?kt.OVERFLOW_TRUE:kt.OVERFLOW_FALSE,i=[o,s].join(kt.VALUE_SEPARATOR);return[kt.SCHEMA_VERSION,e.cacheHits,n,a,i].join(kt.CATEGORY_SEPARATOR)}cacheFailedRequest(e){const r=this.getLastRequests();r.errors.length>=kt.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof Qe?e.subError?r.errors.push(e.subError):e.errorCode?r.errors.push(e.errorCode):r.errors.push(e.toString()):r.errors.push(e.toString()):r.errors.push(kt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),r=Ll.maxErrorsToSend(e),n=e.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{const a={failedRequests:e.failedRequests.slice(r*2),errors:e.errors.slice(r),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,a,this.correlationId)}}static maxErrorsToSend(e){let r,n=0,a=0;const o=e.errors.length;for(r=0;r<o;r++){const s=e.failedRequests[2*r]||Z.EMPTY_STRING,i=e.failedRequests[2*r+1]||Z.EMPTY_STRING,l=e.errors[r]||Z.EMPTY_STRING;if(a+=s.toString().length+i.toString().length+l.length+3,a<kt.MAX_LAST_HEADER_BYTES)n+=1;else break}return n}getRegionDiscoveryFields(){const e=[];return e.push(this.regionUsed||Z.EMPTY_STRING),e.push(this.regionSource||Z.EMPTY_STRING),e.push(this.regionOutcome||Z.EMPTY_STRING),e.join(",")}updateRegionDiscoveryMetadata(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome}setCacheOutcome(e){this.cacheOutcome=e}setNativeBrokerErrorCode(e){const r=this.getLastRequests();r.nativeBrokerErrorCode=e,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}getNativeBrokerErrorCode(){return this.getLastRequests().nativeBrokerErrorCode}clearNativeBrokerErrorCode(){const e=this.getLastRequests();delete e.nativeBrokerErrorCode,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e,this.correlationId)}static makeExtraSkuString(e){return x6(e)}}/*! @azure/msal-common v14.16.1 2025-08-05 */const uT="missing_kid_error",dT="missing_alg_error";/*! @azure/msal-common v14.16.1 2025-08-05 */const P6={[uT]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[dT]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class kg extends Qe{constructor(e,r){super(e,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,kg.prototype)}}function LP(t){return new kg(t,P6[t])}/*! @azure/msal-common v14.16.1 2025-08-05 */class _g{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw LP(uT);if(!e.alg)throw LP(dT);const r=new _g({typ:e.typ||E8.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)}}/*! @azure/msal-common v14.16.1 2025-08-05 */class NP{startMeasurement(){}endMeasurement(){}flushMeasurement(){return null}}class A6{generateId(){return"callback-id"}startMeasurement(e,r){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:s6.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:r||""},measurement:new NP}}startPerformanceMeasurement(){return new NP}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Ug="pkce_not_created",Ym="crypto_nonexistent",ch="empty_navigate_uri",pT="hash_empty_error",Bg="no_state_in_hash",hT="hash_does_not_contain_known_properties",fT="unable_to_parse_state",mT="state_interaction_type_mismatch",yT="interaction_in_progress",vT="popup_window_error",gT="empty_window_error",ko="user_cancelled",O6="monitor_popup_timeout",CT="monitor_window_timeout",xT="redirect_in_iframe",ST="block_iframe_reload",PT="block_nested_popups",V6="iframe_closed_prematurely",uh="silent_logout_unsupported",AT="no_account_error",I6="silent_prompt_value_error",OT="no_token_request_cache_error",VT="unable_to_parse_token_request_cache_error",Mg="no_cached_authority_error",w6="auth_request_not_set_error",b6="invalid_cache_type",dh="non_browser_environment",rs="database_not_open",Ld="no_network_connectivity",IT="post_request_failed",wT="get_request_failed",Jm="failed_to_parse_response",bT="unable_to_load_token",Fg="crypto_key_not_found",TT="auth_code_required",ET="auth_code_or_nativeAccountId_required",RT="spa_code_and_nativeAccountId_present",Lg="database_unavailable",DT="unable_to_acquire_token_from_native_platform",kT="native_handshake_timeout",_T="native_extension_not_installed",ic="native_connection_not_established",UT="uninitialized_public_client_application",BT="native_prompt_not_supported",MT="invalid_base64_string",FT="invalid_pop_token_request",LT="failed_to_build_headers",NT="failed_to_parse_headers";/*! @azure/msal-browser v3.30.0 2025-08-05 */const Gn="For more visit: aka.ms/msaljs/browser-errors",T6={[Ug]:"The PKCE code challenge and verifier could not be generated.",[Ym]:"The crypto object or function is not available.",[ch]:"Navigation URI is empty. Please check stack trace for more info.",[pT]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${Gn}`,[Bg]:"Hash does not contain state. Please verify that the request originated from msal.",[hT]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${Gn}`,[fT]:"Unable to parse state. Please verify that the request originated from msal.",[mT]:"Hash contains state but the interaction type does not match the caller.",[yT]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${Gn}`,[vT]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[gT]:"window.open returned null or undefined window object.",[ko]:"User cancelled the flow.",[O6]:`Token acquisition in popup failed due to timeout. ${Gn}`,[CT]:`Token acquisition in iframe failed due to timeout. ${Gn}`,[xT]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[ST]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${Gn}`,[PT]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[V6]:"The iframe being monitored was closed prematurely.",[uh]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[AT]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[I6]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[OT]:"No token request found in cache.",[VT]:"The cached token request could not be parsed.",[Mg]:"No cached authority found.",[w6]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[b6]:"Invalid cache type",[dh]:"Login and token requests are not supported in non-browser environments.",[rs]:"Database is not open!",[Ld]:"No network connectivity. Check your internet connection.",[IT]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[wT]:"Network request failed. Please check the network trace to determine root cause.",[Jm]:"Failed to parse network response. Check network trace.",[bT]:"Error loading token to cache.",[Fg]:"Cryptographic Key or Keypair not found in browser storage.",[TT]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[ET]:"An authorization code or nativeAccountId must be provided to this flow.",[RT]:"Request cannot contain both spa code and native account id.",[Lg]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[DT]:`Unable to acquire token from native platform. ${Gn}`,[kT]:"Timed out while attempting to establish connection to browser extension",[_T]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[ic]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${Gn}`,[UT]:`You must call and await the initialize function before attempting to call any other MSAL API. ${Gn}`,[BT]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[MT]:"Invalid base64 encoded string.",[FT]:"Invalid PoP token request. The request should not have both a popKid value and signPopToken set to true.",[LT]:"Failed to build request headers object.",[NT]:"Failed to parse response headers"};class lc extends Qe{constructor(e,r){super(e,T6[e],r),Object.setPrototypeOf(this,lc.prototype),this.name="BrowserAuthError"}}function le(t,e){return new lc(t,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Cr={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},gs={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},So={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},sr={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},GP={GET:"GET",POST:"POST"},De={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},kr={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys",VERSION:"msal.version"},Jc={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},ze={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var de;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(de||(de={}));const Ot={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},HP={scopes:ui},GT="jwk",E6={React:"@azure/msal-react",Angular:"@azure/msal-angular"},Xm="msal.db",R6=1,D6=`${Xm}.keys`,vr={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},k6=[vr.Default,vr.Skip,vr.RefreshTokenAndNetwork],_6="msal.browser.log.level",U6="msal.browser.log.pii";/*! @azure/msal-browser v3.30.0 2025-08-05 */function Xc(t){return encodeURIComponent(Ng(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function ph(t){return HT(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ng(t){return HT(new TextEncoder().encode(t))}function HT(t){const e=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const B6="RSASSA-PKCS1-v1_5",jT="SHA-256",M6=2048,F6=new Uint8Array([1,0,1]),jP="0123456789abcdef",$P=new Uint32Array(1),L6="crypto_subtle_undefined",Gg={name:B6,hash:jT,modulusLength:M6,publicExponent:F6};function N6(t){if(!window)throw le(dh);if(!window.crypto)throw le(Ym);if(!t&&!window.crypto.subtle)throw le(Ym,L6)}async function $T(t,e,r){e==null||e.addQueueMeasurement(K.Sha256Digest,r);const a=new TextEncoder().encode(t);return window.crypto.subtle.digest(jT,a)}function G6(t){return window.crypto.getRandomValues(t)}function af(){return window.crypto.getRandomValues($P),$P[0]}function kn(){const t=Date.now(),e=af()*1024+(af()&1023),r=new Uint8Array(16),n=Math.trunc(e/2**30),a=e&2**30-1,o=af();r[0]=t/2**40,r[1]=t/2**32,r[2]=t/2**24,r[3]=t/2**16,r[4]=t/2**8,r[5]=t,r[6]=112|n>>>8,r[7]=n,r[8]=128|a>>>24,r[9]=a>>>16,r[10]=a>>>8,r[11]=a,r[12]=o>>>24,r[13]=o>>>16,r[14]=o>>>8,r[15]=o;let s="";for(let i=0;i<r.length;i++)s+=jP.charAt(r[i]>>>4),s+=jP.charAt(r[i]&15),(i===3||i===5||i===7||i===9)&&(s+="-");return s}async function H6(t,e){return window.crypto.subtle.generateKey(Gg,t,e)}async function of(t){return window.crypto.subtle.exportKey(GT,t)}async function j6(t,e,r){return window.crypto.subtle.importKey(GT,t,Gg,e,r)}async function $6(t,e){return window.crypto.subtle.sign(Gg,t,e)}async function zT(t){const e=await $T(t),r=new Uint8Array(e);return ph(r)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Hg="storage_not_supported",At="stubbed_public_client_application_called",qT="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.30.0 2025-08-05 */const z6={[Hg]:"Given storage configuration option was not supported.",[At]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[qT]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class jg extends Qe{constructor(e,r){super(e,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,jg.prototype)}}function ct(t){return new jg(t,z6[t])}/*! @azure/msal-browser v3.30.0 2025-08-05 */function q6(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function Q6(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function $g(){return window.parent!==window}function K6(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Cr.POPUP_NAME_PREFIX}.`)===0}function Yn(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function W6(){const e=new Ie(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function Y6(){if(Ie.hashContainsKnownProperties(window.location.hash)&&$g())throw le(ST)}function J6(t){if($g()&&!t)throw le(xT)}function X6(){if(K6())throw le(PT)}function QT(){if(typeof window>"u")throw le(dh)}function KT(t){if(!t)throw le(UT)}function zg(t){QT(),Y6(),X6(),KT(t)}function zP(t,e){if(zg(t),J6(e.system.allowRedirectInIframe),e.cache.cacheLocation===sr.MemoryStorage&&!e.cache.storeAuthStateInCookie)throw ct(qT)}function WT(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}function Z6(){return kn()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Nd{navigateInternal(e,r){return Nd.defaultNavigateWindow(e,r)}navigateExternal(e,r){return Nd.defaultNavigateWindow(e,r)}static defaultNavigateWindow(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(n=>{setTimeout(()=>{n(!0)},r.timeout)})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class e5{async sendGetRequestAsync(e,r){let n,a={},o=0;const s=qP(r);try{n=await fetch(e,{method:GP.GET,headers:s})}catch{throw le(window.navigator.onLine?wT:Ld)}a=QP(n.headers);try{return o=n.status,{headers:a,body:await n.json(),status:o}}catch{throw UP(le(Jm),o,a)}}async sendPostRequestAsync(e,r){const n=r&&r.body||"",a=qP(r);let o,s=0,i={};try{o=await fetch(e,{method:GP.POST,headers:a,body:n})}catch{throw le(window.navigator.onLine?IT:Ld)}i=QP(o.headers);try{return s=o.status,{headers:i,body:await o.json(),status:s}}catch{throw UP(le(Jm),s,i)}}}function qP(t){try{const e=new Headers;if(!(t&&t.headers))return e;const r=t.headers;return Object.entries(r).forEach(([n,a])=>{e.append(n,a)}),e}catch{throw le(LT)}}function QP(t){try{const e={};return t.forEach((r,n)=>{e[n]=r}),e}catch{throw le(NT)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const t5=6e4,Zm=1e4,r5=3e4,n5=2e3;function a5({auth:t,cache:e,system:r,telemetry:n},a){const o={clientId:Z.EMPTY_STRING,authority:`${Z.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:Z.EMPTY_STRING,authorityMetadata:Z.EMPTY_STRING,redirectUri:typeof window<"u"?Yn():"",postLogoutRedirectUri:Z.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:ea.AAD,OIDCOptions:{serverResponseType:sc.FRAGMENT,defaultScopes:[Z.OPENID_SCOPE,Z.PROFILE_SCOPE,Z.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:gg.None,tenant:Z.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1,instanceAware:!1},s={cacheLocation:sr.SessionStorage,temporaryCacheLocation:sr.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===sr.LocalStorage),claimsBasedCachingEnabled:!1},i={loggerCallback:()=>{},logLevel:Ye.Info,piiLoggingEnabled:!1},c={...{...rT,loggerOptions:i,networkClient:a?new e5:C6,navigationClient:new Nd,loadFrameTimeout:0,windowHashTimeout:(r==null?void 0:r.loadFrameTimeout)||t5,iframeHashTimeout:(r==null?void 0:r.loadFrameTimeout)||Zm,navigateFrameWait:0,redirectNavigationTimeout:r5,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(r==null?void 0:r.nativeBrokerHandshakeTimeout)||n5,pollIntervalMilliseconds:Cr.DEFAULT_POLL_INTERVAL_MS},...r,loggerOptions:(r==null?void 0:r.loggerOptions)||i},u={application:{appName:Z.EMPTY_STRING,appVersion:Z.EMPTY_STRING},client:new A6};if((t==null?void 0:t.protocolMode)!==ea.OIDC&&(t!=null&&t.OIDCOptions)&&new la(c.loggerOptions).warning(JSON.stringify(Le(Kb))),t!=null&&t.protocolMode&&t.protocolMode!==ea.AAD&&(c!=null&&c.allowNativeBroker))throw Le(Wb);return{auth:{...o,...t,OIDCOptions:{...o.OIDCOptions,...t==null?void 0:t.OIDCOptions}},cache:{...s,...e},system:c,telemetry:{...u,...n}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const o5="@azure/msal-browser",Ws="3.30.0";/*! @azure/msal-browser v3.30.0 2025-08-05 */class qg{static loggerCallback(e,r){switch(e){case Ye.Error:console.error(r);return;case Ye.Info:console.info(r);return;case Ye.Verbose:console.debug(r);return;case Ye.Warning:console.warn(r);return;default:console.log(r);return}}constructor(e){var l;this.browserEnvironment=typeof window<"u",this.config=a5(e,this.browserEnvironment);let r;try{r=window[sr.SessionStorage]}catch{}const n=r==null?void 0:r.getItem(_6),a=(l=r==null?void 0:r.getItem(U6))==null?void 0:l.toLowerCase(),o=a==="true"?!0:a==="false"?!1:void 0,s={...this.config.system.loggerOptions},i=n&&Object.keys(Ye).includes(n)?Ye[n]:void 0;i&&(s.loggerCallback=qg.loggerCallback,s.logLevel=i),o!==void 0&&(s.piiLoggingEnabled=o),this.logger=new la(s,o5,Ws),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class _o extends qg{getModuleName(){return _o.MODULE_NAME}getId(){return _o.ID}async initialize(){return this.available=typeof window<"u",this.available}}_o.MODULE_NAME="";_o.ID="StandardOperatingContext";/*! @azure/msal-browser v3.30.0 2025-08-05 */function wn(t){return new TextDecoder().decode(s5(t))}function s5(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw le(MT)}const r=atob(e);return Uint8Array.from(r,n=>n.codePointAt(0)||0)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class i5{constructor(){this.dbName=Xm,this.version=R6,this.tableName=D6,this.dbOpen=!1}async open(){return new Promise((e,r)=>{const n=window.indexedDB.open(this.dbName,this.version);n.addEventListener("upgradeneeded",a=>{a.target.result.createObjectStore(this.tableName)}),n.addEventListener("success",a=>{const o=a;this.db=o.target.result,this.dbOpen=!0,e()}),n.addEventListener("error",()=>r(le(Lg)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((r,n)=>{if(!this.db)return n(le(rs));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);s.addEventListener("success",i=>{const l=i;this.closeConnection(),r(l.target.result)}),s.addEventListener("error",i=>{this.closeConnection(),n(i)})})}async setItem(e,r){return await this.validateDbIsOpen(),new Promise((n,a)=>{if(!this.db)return a(le(rs));const i=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(r,e);i.addEventListener("success",()=>{this.closeConnection(),n()}),i.addEventListener("error",l=>{this.closeConnection(),a(l)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((r,n)=>{if(!this.db)return n(le(rs));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);s.addEventListener("success",()=>{this.closeConnection(),r()}),s.addEventListener("error",i=>{this.closeConnection(),n(i)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,r)=>{if(!this.db)return r(le(rs));const o=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();o.addEventListener("success",s=>{const i=s;this.closeConnection(),e(i.target.result)}),o.addEventListener("error",s=>{this.closeConnection(),r(s)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((r,n)=>{if(!this.db)return n(le(rs));const s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);s.addEventListener("success",i=>{const l=i;this.closeConnection(),r(l.target.result===1)}),s.addEventListener("error",i=>{this.closeConnection(),n(i)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,r)=>{const n=window.indexedDB.deleteDatabase(Xm),a=setTimeout(()=>r(!1),200);n.addEventListener("success",()=>(clearTimeout(a),e(!0))),n.addEventListener("blocked",()=>(clearTimeout(a),e(!0))),n.addEventListener("error",()=>(clearTimeout(a),r(!1)))})}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class ey{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,r){this.cache.set(e,r)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((r,n)=>{e.push(n)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class l5{constructor(e){this.inMemoryCache=new ey,this.indexedDBCache=new i5,this.logger=e}handleDatabaseAccessError(e){if(e instanceof lc&&e.errorCode===Lg)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(n){this.handleDatabaseAccessError(n)}return r}async setItem(e,r){this.inMemoryCache.setItem(e,r);try{await this.indexedDBCache.setItem(e,r)}catch(n){this.handleDatabaseAccessError(n)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(r){this.handleDatabaseAccessError(r)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(r){this.handleDatabaseAccessError(r)}return e}async containsKey(e){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(n){this.handleDatabaseAccessError(n)}return r}clearInMemory(){this.logger.verbose("Deleting in-memory keystore"),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore deleted")}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Ys{constructor(e,r,n){this.logger=e,N6(n??!1),this.cache=new l5(this.logger),this.performanceClient=r}createNewGuid(){return kn()}base64Encode(e){return Ng(e)}base64Decode(e){return wn(e)}base64UrlEncode(e){return Xc(e)}encodeKid(e){return this.base64UrlEncode(JSON.stringify({kid:e}))}async getPublicKeyThumbprint(e){var u;const r=(u=this.performanceClient)==null?void 0:u.startMeasurement(K.CryptoOptsGetPublicKeyThumbprint,e.correlationId),n=await H6(Ys.EXTRACTABLE,Ys.POP_KEY_USAGES),a=await of(n.publicKey),o={e:a.e,kty:a.kty,n:a.n},s=KP(o),i=await this.hashString(s),l=await of(n.privateKey),c=await j6(l,!1,["sign"]);return await this.cache.setItem(i,{privateKey:c,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),r&&r.end({success:!0}),i}async removeTokenBindingKey(e){return await this.cache.removeItem(e),!await this.cache.containsKey(e)}async clearKeystore(){this.cache.clearInMemory();try{return await this.cache.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}async signJwt(e,r,n,a){var C;const o=(C=this.performanceClient)==null?void 0:C.startMeasurement(K.CryptoOptsSignJwt,a),s=await this.cache.getItem(r);if(!s)throw le(Fg);const i=await of(s.publicKey),l=KP(i),c=Xc(JSON.stringify({kid:r})),u=_g.getShrHeaderString({...n==null?void 0:n.header,alg:i.alg,kid:c}),d=Xc(u);e.cnf={jwk:JSON.parse(l)};const p=Xc(JSON.stringify(e)),h=`${d}.${p}`,y=new TextEncoder().encode(h),v=await $6(s.privateKey,y),g=ph(new Uint8Array(v)),m=`${h}.${g}`;return o&&o.end({success:!0}),m}async hashString(e){return zT(e)}}Ys.POP_KEY_USAGES=["sign","verify"];Ys.EXTRACTABLE=!0;function KP(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v3.30.0 2025-08-05 */class c5{constructor(){if(!window.localStorage)throw ct(Hg)}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r)}removeItem(e){window.localStorage.removeItem(e)}getKeys(){return Object.keys(window.localStorage)}containsKey(e){return window.localStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class u5{constructor(){if(!window.sessionStorage)throw ct(Hg)}getItem(e){return window.sessionStorage.getItem(e)}setItem(e,r){window.sessionStorage.setItem(e,r)}removeItem(e){window.sessionStorage.removeItem(e)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(e){return window.sessionStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function YT(t,e){if(!e)return null;try{return on.parseRequestState(t,e).libraryState.meta}catch{throw te(qs)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const d5=24*60*60*1e3;class p5{getItem(e){const r=`${encodeURIComponent(e)}`,n=document.cookie.split(";");for(let a=0;a<n.length;a++){const o=n[a],[s,...i]=decodeURIComponent(o).trim().split("="),l=i.join("=");if(s===r)return l}return""}setItem(e,r,n,a=!0){let o=`${encodeURIComponent(e)}=${encodeURIComponent(r)};path=/;SameSite=Lax;`;if(n){const s=h5(n);o+=`expires=${s};`}a&&(o+="Secure;"),document.cookie=o}removeItem(e){this.setItem(e,"",-1)}getKeys(){const e=document.cookie.split(";"),r=[];return e.forEach(n=>{const a=decodeURIComponent(n).trim().split("=");r.push(a[0])}),r}containsKey(e){return this.getKeys().includes(e)}}function h5(t){const e=new Date;return new Date(e.getTime()+t*d5).toUTCString()}/*! @azure/msal-browser v3.30.0 2025-08-05 */class ty extends Qs{constructor(e,r,n,a,o,s){super(e,n,a,o),this.cacheConfig=r,this.logger=a,this.internalStorage=new ey,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupBrowserStorage(this.cacheConfig.temporaryCacheLocation),this.cookieStorage=new p5,r.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps()),this.performanceClient=s}setupBrowserStorage(e){try{switch(e){case sr.LocalStorage:return new c5;case sr.SessionStorage:return new u5;case sr.MemoryStorage:default:break}}catch(r){this.logger.error(r)}return this.cacheConfig.cacheLocation=sr.MemoryStorage,new ey}migrateCacheEntries(){const e=this.browserStorage.getItem(kr.VERSION);e&&this.logger.info(`MSAL.js was last initialized with version ${e}`),e!==Ws&&this.browserStorage.setItem(kr.VERSION,Ws);const r=`${Z.CACHE_PREFIX}.${Pt.ID_TOKEN}`,n=`${Z.CACHE_PREFIX}.${Pt.CLIENT_INFO}`,a=`${Z.CACHE_PREFIX}.${Pt.ERROR}`,o=`${Z.CACHE_PREFIX}.${Pt.ERROR_DESC}`,s=this.browserStorage.getItem(r),i=this.browserStorage.getItem(n),l=this.browserStorage.getItem(a),c=this.browserStorage.getItem(o),u=[s,i,l,c];[Pt.ID_TOKEN,Pt.CLIENT_INFO,Pt.ERROR,Pt.ERROR_DESC].forEach((p,h)=>{const f=u[h];f&&this.setTemporaryCache(p,f,!0)})}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.cryptoImpl.createNewGuid(),r=this.getItem(kr.ACCOUNT_KEYS),n=this.getItem(`${kr.TOKEN_KEYS}.${this.clientId}`);if(r&&n){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(o=>{if(this.isCredentialKey(o)){const s=this.getItem(o);if(s){const i=this.validateAndParseJson(s);if(i&&i.hasOwnProperty("credentialType"))switch(i.credentialType){case ye.ID_TOKEN:if(VP(i)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${o} found, saving key to token key map`);const l=i,c=this.updateCredentialCacheKey(o,l,e);this.addTokenKey(c,ye.ID_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${o}`);break;case ye.ACCESS_TOKEN:case ye.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(OP(i)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${o} found, saving key to token key map`);const l=i,c=this.updateCredentialCacheKey(o,l,e);this.addTokenKey(c,ye.ACCESS_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${o}`);break;case ye.REFRESH_TOKEN:if(IP(i)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${o} found, saving key to token key map`);const l=i,c=this.updateCredentialCacheKey(o,l,e);this.addTokenKey(c,ye.REFRESH_TOKEN,e);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${o}`);break}}}if(this.isAccountKey(o)){const s=this.getItem(o);if(s){const i=this.validateAndParseJson(s);i&&Ct.isAccountEntity(i)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${o} found, saving key to account key map`),this.addAccountKeyToMap(o,e))}}})}validateAndParseJson(e){try{const r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,r,n){let a=[];for(let s=0;s<=20;s++)try{this.browserStorage.setItem(e,r),s>0&&this.removeAccessTokenKeys(a.slice(0,s),n);break}catch(i){const l=tT(i);if(l.errorCode===wg&&s<20){if(a.length||(e===`${kr.TOKEN_KEYS}.${this.clientId}`?a=JSON.parse(r).accessToken:a=this.getTokenKeys().accessToken),a.length<=s)throw l;this.removeAccessToken(a[s],n,!1)}else throw l}}getAccount(e,r,n){this.logger.trace("BrowserCacheManager.getAccount called");const a=this.getCachedAccountEntity(e,r);return this.updateOutdatedCachedAccount(e,a,r,n)}getCachedAccountEntity(e,r){const n=this.getItem(e);if(!n)return this.removeAccountKeyFromMap(e,r),null;const a=this.validateAndParseJson(n);return!a||!Ct.isAccountEntity(a)?null:Qs.toObject(new Ct,a)}setAccount(e,r){this.logger.trace("BrowserCacheManager.setAccount called");const n=e.generateAccountKey();e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),r),this.addAccountKeyToMap(n,r)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(kr.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e,r){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const n=this.getAccountKeys();n.indexOf(e)===-1?(n.push(e),this.setItem(kr.ACCOUNT_KEYS,JSON.stringify(n),r),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e,r){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const n=this.getAccountKeys(),a=n.indexOf(e);if(a>-1){if(n.splice(a,1),n.length===0){this.removeItem(kr.ACCOUNT_KEYS);return}else this.setItem(kr.ACCOUNT_KEYS,JSON.stringify(n),r);this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")}else this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e,r){super.removeAccount(e,r),this.removeAccountKeyFromMap(e,r)}removeOutdatedAccount(e,r){this.removeItem(e),this.removeAccountKeyFromMap(e,r)}removeIdToken(e,r){super.removeIdToken(e,r),this.removeTokenKey(e,ye.ID_TOKEN,r)}removeAccessToken(e,r,n=!0){var a;super.removeAccessToken(e,r),(a=this.performanceClient)==null||a.incrementFields({accessTokensRemoved:1},r),n&&this.removeTokenKey(e,ye.ACCESS_TOKEN,r)}removeAccessTokenKeys(e,r){this.logger.trace("removeAccessTokenKey called");const n=this.getTokenKeys();let a=0;if(e.forEach(o=>{const s=n.accessToken.indexOf(o);s>-1&&(n.accessToken.splice(s,1),a++)}),a>0){this.logger.info(`removed ${a} accessToken keys from tokenKeys map`),this.setTokenKeys(n,r);return}}removeRefreshToken(e,r){super.removeRefreshToken(e,r),this.removeTokenKey(e,ye.REFRESH_TOKEN,r)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${kr.TOKEN_KEYS}.${this.clientId}`);if(e){const r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}setTokenKeys(e,r){if(e.idToken.length===0&&e.accessToken.length===0&&e.refreshToken.length===0){this.removeItem(`${kr.TOKEN_KEYS}.${this.clientId}`);return}else this.setItem(`${kr.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(e),r)}addTokenKey(e,r,n){this.logger.trace("BrowserCacheManager addTokenKey called");const a=this.getTokenKeys();switch(r){case ye.ID_TOKEN:a.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),a.idToken.push(e));break;case ye.ACCESS_TOKEN:const o=a.accessToken.indexOf(e);o!==-1&&a.accessToken.splice(o,1),this.logger.trace(`access token ${o===-1?"added to":"updated in"} map`),a.accessToken.push(e);break;case ye.REFRESH_TOKEN:a.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),a.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${r}`),te($m)}this.setTokenKeys(a,n)}removeTokenKey(e,r,n,a=this.getTokenKeys()){switch(this.logger.trace("BrowserCacheManager removeTokenKey called"),r){case ye.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const o=a.idToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),a.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ye.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const s=a.accessToken.indexOf(e);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),a.accessToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ye.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const i=a.refreshToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),a.refreshToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${r}`),te($m)}this.setTokenKeys(a,n)}getIdTokenCredential(e,r){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeIdToken(e,r),null;const a=this.validateAndParseJson(n);return!a||!VP(a)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),a)}setIdTokenCredential(e,r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const n=ys(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),r),this.addTokenKey(n,ye.ID_TOKEN,r)}getAccessTokenCredential(e,r){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ye.ACCESS_TOKEN,r),null;const a=this.validateAndParseJson(n);return!a||!OP(a)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),a)}setAccessTokenCredential(e,r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const n=ys(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),r),this.addTokenKey(n,ye.ACCESS_TOKEN,r)}getRefreshTokenCredential(e,r){const n=this.getItem(e);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ye.REFRESH_TOKEN,r),null;const a=this.validateAndParseJson(n);return!a||!IP(a)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),a)}setRefreshTokenCredential(e,r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const n=ys(e);e.lastUpdatedAt=Date.now().toString(),this.setItem(n,JSON.stringify(e),r),this.addTokenKey(n,ye.REFRESH_TOKEN,r)}getAppMetadata(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(r);return!n||!rG(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),n)}setAppMetadata(e,r){this.logger.trace("BrowserCacheManager.setAppMetadata called");const n=tG(e);this.setItem(n,JSON.stringify(e),r)}getServerTelemetry(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const n=this.validateAndParseJson(r);return!n||!Z8(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),n)}setServerTelemetry(e,r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r),n)}getAuthorityMetadata(e){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const n=this.validateAndParseJson(r);return n&&nG(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),n):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(r=>this.isAuthorityMetadata(r))}setWrapperMetadata(e,r){this.internalStorage.setItem(Jc.WRAPPER_SKU,e),this.internalStorage.setItem(Jc.WRAPPER_VER,r)}getWrapperMetadata(){const e=this.internalStorage.getItem(Jc.WRAPPER_SKU)||Z.EMPTY_STRING,r=this.internalStorage.getItem(Jc.WRAPPER_VER)||Z.EMPTY_STRING;return[e,r]}setAuthorityMetadata(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))}getActiveAccount(e){const r=this.generateCacheKey(Pt.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const o=this.generateCacheKey(Pt.ACTIVE_ACCOUNT),s=this.getItem(o);if(!s)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const i=this.getAccountInfoFilteredBy({localAccountId:s},e);return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(i,e),i):null}const a=this.validateAndParseJson(n);return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId,tenantId:a.tenantId},e)):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e,r){const n=this.generateCacheKey(Pt.ACTIVE_ACCOUNT_FILTERS),a=this.generateCacheKey(Pt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId,lastUpdatedAt:Date.now().toString()};this.setItem(n,JSON.stringify(o),r),this.setItem(a,e.localAccountId,r)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(a)}getThrottlingCache(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const n=this.validateAndParseJson(r);return!n||!eG(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),n)}setThrottlingCache(e,r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r),n)}getTemporaryCache(e,r){const n=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const o=this.cookieStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}const a=this.temporaryCacheStorage.getItem(n);if(!a){if(this.cacheConfig.cacheLocation===sr.LocalStorage){const o=this.browserStorage.getItem(n);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),o}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a}setTemporaryCache(e,r,n){const a=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(a,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.cookieStorage.setItem(a,r,void 0,this.cacheConfig.secureCookies))}removeItem(e){this.browserStorage.removeItem(e)}removeTemporaryItem(e){this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.cookieStorage.removeItem(e))}getKeys(){return this.browserStorage.getKeys()}async clear(e){await this.removeAllAccounts(e),this.removeAppMetadata(e),this.temporaryCacheStorage.getKeys().forEach(r=>{(r.indexOf(Z.CACHE_PREFIX)!==-1||r.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(r)}),this.browserStorage.getKeys().forEach(r=>{(r.indexOf(Z.CACHE_PREFIX)!==-1||r.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(r)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e,r){e.addQueueMeasurement(K.ClearTokensAndKeysWithClaims,r);const n=this.getTokenKeys();let a=0;n.accessToken.forEach(o=>{const s=this.getAccessTokenCredential(o,r);s!=null&&s.requestedClaimsHash&&o.includes(s.requestedClaimsHash.toLowerCase())&&(this.removeAccessToken(o,r),a++)}),a>0&&this.logger.warning(`${a} access tokens with claims in the cache keys have been removed from the cache.`)}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):an.startsWith(e,Z.CACHE_PREFIX)||an.startsWith(e,Pt.ADAL_ID_TOKEN)?e:`${Z.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:r}}=on.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${De.AUTHORITY}.${r}`)}generateNonceKey(e){const{libraryState:{id:r}}=on.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${De.NONCE_IDTOKEN}.${r}`)}generateStateKey(e){const{libraryState:{id:r}}=on.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${De.REQUEST_STATE}.${r}`)}getCachedAuthority(e){const r=this.generateStateKey(e),n=this.getTemporaryCache(r);if(!n)return null;const a=this.generateAuthorityKey(n);return this.getTemporaryCache(a)}updateCacheEntries(e,r,n,a,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const s=this.generateStateKey(e);this.setTemporaryCache(s,e,!1);const i=this.generateNonceKey(e);this.setTemporaryCache(i,r,!1);const l=this.generateAuthorityKey(e);if(this.setTemporaryCache(l,n,!1),o){const c={credential:o.homeAccountId,type:Sr.HOME_ACCOUNT_ID};this.setTemporaryCache(De.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(a){const c={credential:a,type:Sr.UPN};this.setTemporaryCache(De.CCS_CREDENTIAL,JSON.stringify(c),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.temporaryCacheStorage.getKeys().forEach(r=>{r.indexOf(e)!==-1&&this.removeTemporaryItem(r)}),this.removeTemporaryItem(this.generateStateKey(e)),this.removeTemporaryItem(this.generateNonceKey(e)),this.removeTemporaryItem(this.generateAuthorityKey(e))),this.removeTemporaryItem(this.generateCacheKey(De.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey(De.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey(De.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey(De.CORRELATION_ID)),this.removeTemporaryItem(this.generateCacheKey(De.CCS_CREDENTIAL)),this.removeTemporaryItem(this.generateCacheKey(De.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const r=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(r);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n||Z.EMPTY_STRING)}}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.temporaryCacheStorage.getKeys().forEach(r=>{if(r.indexOf(De.REQUEST_STATE)===-1)return;const n=this.temporaryCacheStorage.getItem(r);if(!n)return;const a=YT(this.cryptoImpl,n);a&&a.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${n}`),this.resetRequestCache(n))}),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const r=Ng(JSON.stringify(e));this.setTemporaryCache(De.REQUEST_PARAMS,r,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const r=this.getTemporaryCache(De.REQUEST_PARAMS,!0);if(!r)throw le(OT);let n;try{n=JSON.parse(wn(r))}catch(a){throw this.logger.errorPii(`Attempted to parse: ${r}`),this.logger.error(`Parsing cached token request threw with error: ${a}`),le(VT)}if(this.removeTemporaryItem(this.generateCacheKey(De.REQUEST_PARAMS)),!n.authority){const a=this.generateAuthorityKey(e),o=this.getTemporaryCache(a);if(!o)throw le(Mg);n.authority=o}return n}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(De.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const r=this.getInteractionInProgress();return e?r===this.clientId:!!r}getInteractionInProgress(){const e=`${Z.CACHE_PREFIX}.${De.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const r=`${Z.CACHE_PREFIX}.${De.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw le(yT);this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeTemporaryItem(r)}getLegacyLoginHint(){const e=this.getTemporaryCache(Pt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Pt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const r=this.getTemporaryCache(Pt.ID_TOKEN,!0);r&&(this.browserStorage.removeItem(this.generateCacheKey(Pt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const n=r||e;if(n){const a=Go(n,wn);if(a.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),a.preferred_username;if(a.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),a.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,r,n){const a=ys(r);if(e!==a){const o=this.getItem(e);if(o)return this.browserStorage.removeItem(e),this.setItem(a,o,n),this.logger.verbose(`Updated an outdated ${r.credentialType} cache key`),a;this.logger.error(`Attempted to update an outdated ${r.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}async hydrateCache(e,r){var i,l,c;const n=nh((i=e.account)==null?void 0:i.homeAccountId,(l=e.account)==null?void 0:l.environment,e.idToken,this.clientId,e.tenantId);let a;r.claims&&(a=await this.cryptoImpl.hashString(r.claims));const o=ah((c=e.account)==null?void 0:c.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?e.expiresOn.getTime()/1e3:0,e.extExpiresOn?e.extExpiresOn.getTime()/1e3:0,wn,void 0,e.tokenType,void 0,r.sshKid,r.claims,a),s={idToken:n,accessToken:o};return this.saveCacheRecord(s,e.correlationId)}async saveCacheRecord(e,r,n){try{await super.saveCacheRecord(e,r,n)}catch(a){if(a instanceof Rs&&this.performanceClient&&r)try{const o=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:o.refreshToken.length,cacheIdCount:o.idToken.length,cacheAtCount:o.accessToken.length},r)}catch{}throw a}}}const f5=(t,e)=>{const r={cacheLocation:sr.MemoryStorage,temporaryCacheLocation:sr.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new ty(t,r,kd,e)};/*! @azure/msal-browser v3.30.0 2025-08-05 */function m5(t,e,r,n,a){return t.verbose("getAllAccounts called"),r?e.getAllAccounts(n,a):[]}function y5(t,e,r,n){if(e.trace("getAccount called"),Object.keys(t).length===0)return e.warning("getAccount: No accountFilter provided"),null;const a=r.getAccountInfoFilteredBy(t,n);return a?(e.verbose("getAccount: Account matching provided filter found, returning"),a):(e.verbose("getAccount: No matching account found, returning null"),null)}function v5(t,e,r,n){if(e.trace("getAccountByUsername called"),!t)return e.warning("getAccountByUsername: No username provided"),null;const a=r.getAccountInfoFilteredBy({username:t},n);return a?(e.verbose("getAccountByUsername: Account matching username found, returning"),e.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${t}`),a):(e.verbose("getAccountByUsername: No matching account found, returning null"),null)}function g5(t,e,r,n){if(e.trace("getAccountByHomeId called"),!t)return e.warning("getAccountByHomeId: No homeAccountId provided"),null;const a=r.getAccountInfoFilteredBy({homeAccountId:t},n);return a?(e.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),e.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${t}`),a):(e.verbose("getAccountByHomeId: No matching account found, returning null"),null)}function C5(t,e,r,n){if(e.trace("getAccountByLocalId called"),!t)return e.warning("getAccountByLocalId: No localAccountId provided"),null;const a=r.getAccountInfoFilteredBy({localAccountId:t},n);return a?(e.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),e.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${t}`),a):(e.verbose("getAccountByLocalId: No matching account found, returning null"),null)}function x5(t,e,r){e.setActiveAccount(t,r)}function S5(t,e){return t.getActiveAccount(e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */const ce={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.30.0 2025-08-05 */class P5{constructor(e){this.eventCallbacks=new Map,this.logger=e||new la({})}addEventCallback(e,r,n){if(typeof window<"u"){const a=n||Z6();return this.eventCallbacks.has(a)?(this.logger.error(`Event callback with id: ${a} is already registered. Please provide a unique id or remove the existing callback and try again.`),null):(this.eventCallbacks.set(a,[e,r||[]]),this.logger.verbose(`Event callback registered with id: ${a}`),a)}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}emitEvent(e,r,n,a){if(typeof window<"u"){const o={eventType:e,interactionType:r||null,payload:n||null,error:a||null,timestamp:Date.now()};this.eventCallbacks.forEach(([s,i],l)=>{(i.length===0||i.includes(e))&&(this.logger.verbose(`Emitting event to callback ${l}: ${e}`),s.apply(null,[o]))})}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class JT{constructor(e,r,n,a,o,s,i,l,c){this.config=e,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=s,this.nativeMessageHandler=l,this.correlationId=c||kn(),this.logger=a.clone(Cr.MSAL_SKU,Ws,this.correlationId),this.performanceClient=i}async clearCacheOnLogout(e){if(e){Ct.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(this.correlationId),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null,this.correlationId));try{await this.browserStorage.removeAccount(Ct.generateAccountCacheKey(e),this.correlationId),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(this.correlationId),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const r=e||this.config.auth.redirectUri;return Ie.getAbsoluteUrl(r,Yn())}initializeServerTelemetryManager(e,r){this.logger.verbose("initializeServerTelemetryManager called");const n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Ll(n,this.browserStorage)}async getDiscoveredAuthority(e){const{account:r}=e,n=e.requestExtraQueryParameters&&e.requestExtraQueryParameters.hasOwnProperty("instance_aware")?e.requestExtraQueryParameters.instance_aware:void 0;this.performanceClient.addQueueMeasurement(K.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const a={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},o=e.requestAuthority||this.config.auth.authority,s=n!=null&&n.length?n==="true":this.config.auth.instanceAware,i=r&&s?this.config.auth.authority.replace(Ie.getDomainFromUrl(o),r.environment):o,l=qt.generateAuthority(i,e.requestAzureCloudOptions||this.config.auth.azureCloudOptions),c=await ne(oT,K.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(l,this.config.system.networkClient,this.browserStorage,a,this.logger,this.correlationId,this.performanceClient);if(r&&!c.isAlias(r.environment))throw Le(Yb);return c}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const A5=32;async function O5(t,e,r){t.addQueueMeasurement(K.GeneratePkceCodes,r);const n=Ho(V5,K.GenerateCodeVerifier,e,t,r)(t,e,r),a=await ne(I5,K.GenerateCodeChallengeFromVerifier,e,t,r)(n,t,e,r);return{verifier:n,challenge:a}}function V5(t,e,r){try{const n=new Uint8Array(A5);return Ho(G6,K.GetRandomValues,e,t,r)(n),ph(n)}catch{throw le(Ug)}}async function I5(t,e,r,n){e.addQueueMeasurement(K.GenerateCodeChallengeFromVerifier,n);try{const a=await ne($T,K.Sha256Digest,r,e,n)(t,e,n);return ph(new Uint8Array(a))}catch{throw le(Ug)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function Qg(t,e,r,n){r.addQueueMeasurement(K.InitializeBaseRequest,t.correlationId);const a=t.authority||e.auth.authority,o=[...t&&t.scopes||[]],s={...t,correlationId:t.correlationId,authority:a,scopes:o};if(!s.authenticationScheme)s.authenticationScheme=Be.BEARER,n.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(s.authenticationScheme===Be.SSH){if(!t.sshJwk)throw Le(oh);if(!t.sshKid)throw Le(Qb)}n.verbose(`Authentication Scheme set to "${s.authenticationScheme}" as configured in Auth request`)}return e.cache.claimsBasedCachingEnabled&&t.claims&&!an.isEmptyObj(t.claims)&&(s.requestedClaimsHash=await zT(t.claims)),s}async function w5(t,e,r,n,a){n.addQueueMeasurement(K.InitializeSilentRequest,t.correlationId);const o=await ne(Qg,K.InitializeBaseRequest,a,n,t.correlationId)(t,r,n,a);return{...t,...o,account:e,forceRefresh:t.forceRefresh||!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class di extends JT{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(K.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const r=await ne(O5,K.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),n={...e,redirectUri:e.redirectUri,code:Z.EMPTY_STRING,codeVerifier:r.verifier};return e.codeChallenge=r.challenge,e.codeChallengeMethod=Z.S256_CODE_CHALLENGE_METHOD,n}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);const r={correlationId:this.correlationId||kn(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=Ie.getAbsoluteUrl(e.postLogoutRedirectUri,Yn())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=Ie.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Yn())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=Ie.getAbsoluteUrl(Yn(),Yn())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r}getLogoutHintFromIdTokenClaims(e){const r=e.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e){this.performanceClient.addQueueMeasurement(K.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const r=await ne(this.getClientConfiguration.bind(this),K.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e);return new lT(r,this.performanceClient)}async getClientConfiguration(e){const{serverTelemetryManager:r,requestAuthority:n,requestAzureCloudOptions:a,requestExtraQueryParameters:o,account:s}=e;this.performanceClient.addQueueMeasurement(K.StandardInteractionClientGetClientConfiguration,this.correlationId);const i=await ne(this.getDiscoveredAuthority.bind(this),K.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)({requestAuthority:n,requestAzureCloudOptions:a,requestExtraQueryParameters:o,account:s}),l=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:l.loggerCallback,piiLoggingEnabled:l.piiLoggingEnabled,logLevel:l.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:Cr.MSAL_SKU,version:Ws,cpu:Z.EMPTY_STRING,os:Z.EMPTY_STRING},telemetry:this.config.telemetry}}async initializeAuthorizationRequest(e,r){this.performanceClient.addQueueMeasurement(K.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const n=this.getRedirectUri(e.redirectUri),a={interactionType:r},o=on.setRequestState(this.browserCrypto,e&&e.state||Z.EMPTY_STRING,a),i={...await ne(Qg,K.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)({...e,correlationId:this.correlationId},this.config,this.performanceClient,this.logger),redirectUri:n,state:o,nonce:e.nonce||kn(),responseMode:this.config.auth.OIDCOptions.serverResponseType};if(e.loginHint||e.sid)return i;const l=e.account||this.browserStorage.getActiveAccount(this.correlationId);if(l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${l.homeAccountId}`,this.correlationId),i.account=l),!i.loginHint&&!l){const c=this.browserStorage.getLegacyLoginHint();c&&(i.loginHint=c)}return i}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const b5="ContentError",XT="user_switch";/*! @azure/msal-browser v3.30.0 2025-08-05 */const T5="USER_INTERACTION_REQUIRED",E5="USER_CANCEL",R5="NO_NETWORK",D5="PERSISTENT_ERROR",k5="DISABLED",_5="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.30.0 2025-08-05 */const U5=-2147186943,B5={[XT]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Sn extends Qe{constructor(e,r,n){super(e,r),Object.setPrototypeOf(this,Sn.prototype),this.name="NativeAuthError",this.ext=n}}function ns(t){if(t.ext&&t.ext.status&&(t.ext.status===D5||t.ext.status===k5)||t.ext&&t.ext.error&&t.ext.error===U5)return!0;switch(t.errorCode){case b5:return!0;default:return!1}}function ry(t,e,r){if(r&&r.status)switch(r.status){case _5:return Km(sT);case T5:return new un(t,e);case E5:return le(ko);case R5:return le(Ld)}return new Sn(t,B5[t]||e,r)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class ZT extends di{async acquireToken(e){this.performanceClient.addQueueMeasurement(K.SilentCacheClientAcquireToken,e.correlationId);const r=this.initializeServerTelemetryManager(ze.acquireTokenSilent_silentFlow),n=await ne(this.getClientConfiguration.bind(this),K.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:e.authority,requestAzureCloudOptions:e.azureCloudOptions,account:e.account}),a=new g6(n,this.performanceClient);this.logger.verbose("Silent auth client created");try{const s=(await ne(a.acquireCachedToken.bind(a),K.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),s}catch(o){throw o instanceof lc&&o.errorCode===Fg&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),o}}logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(r==null?void 0:r.account)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Ds extends JT{constructor(e,r,n,a,o,s,i,l,c,u,d,p){var f;super(e,r,n,a,o,s,l,c,p),this.apiId=i,this.accountId=u,this.nativeMessageHandler=c,this.nativeStorageManager=d,this.silentCacheClient=new ZT(e,this.nativeStorageManager,n,a,o,s,l,c,p),this.serverTelemetryManager=this.initializeServerTelemetryManager(this.apiId);const h=this.nativeMessageHandler.getExtensionId()===gs.PREFERRED_EXTENSION_ID?"chrome":(f=this.nativeMessageHandler.getExtensionId())!=null&&f.length?"unknown":void 0;this.skus=Ll.makeExtraSkuString({libraryName:Cr.MSAL_SKU,libraryVersion:Ws,extensionName:h,extensionVersion:this.nativeMessageHandler.getExtensionVersion()})}addRequestSKUs(e){e.extraParameters={...e.extraParameters,[t6]:this.skus}}async acquireToken(e){this.performanceClient.addQueueMeasurement(K.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(K.NativeInteractionClientAcquireToken,e.correlationId),n=Dn();try{const a=await this.initializeNativeRequest(e);try{const c=await this.acquireTokensFromCache(this.accountId,a);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),c}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const{...o}=a,s={method:So.GetToken,request:o},i=await this.nativeMessageHandler.sendMessage(s),l=this.validateNativeResponse(i);return await this.handleNativeResponse(l,a,n).then(c=>(r.end({success:!0,isNativeBroker:!0,requestId:c.requestId}),this.serverTelemetryManager.clearNativeBrokerErrorCode(),c)).catch(c=>{throw r.end({success:!1,errorCode:c.errorCode,subErrorCode:c.subError,isNativeBroker:!0}),c})}catch(a){throw a instanceof Sn&&this.serverTelemetryManager.setNativeBrokerErrorCode(a.errorCode),a}}createSilentCacheRequest(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:it.fromString(e.scope).asArray(),account:r,forceRefresh:!1}}async acquireTokensFromCache(e,r){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),te(Hm);const n=this.browserStorage.getBaseAccountInfo({nativeAccountId:e},r.correlationId);if(!n)throw te(Hm);try{const a=this.createSilentCacheRequest(r,n),o=await this.silentCacheClient.acquireToken(a),s={...n,idTokenClaims:o==null?void 0:o.idTokenClaims,idToken:o==null?void 0:o.idToken};return{...o,account:s}}catch(a){throw a}}async acquireTokenRedirect(e,r){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const{...n}=e;delete n.onRedirectNavigate;const a=await this.initializeNativeRequest(n),o={method:So.GetToken,request:a};try{const l=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(l)}catch(l){if(l instanceof Sn&&(this.serverTelemetryManager.setNativeBrokerErrorCode(l.errorCode),ns(l)))throw l}this.browserStorage.setTemporaryCache(De.NATIVE_REQUEST,JSON.stringify(a),!0);const s={apiId:ze.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);r.end({success:!0}),await this.navigationClient.navigateExternal(i,s)}async handleRedirectPromise(e,r){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const n=this.browserStorage.getCachedNativeRequest();if(!n)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),e&&r&&(e==null||e.addFields({errorCode:"no_cached_request"},r)),null;const{prompt:a,...o}=n;a&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(De.NATIVE_REQUEST));const s={method:So.GetToken,request:o},i=Dn();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const l=await this.nativeMessageHandler.sendMessage(s);this.validateNativeResponse(l);const c=this.handleNativeResponse(l,o,i);this.browserStorage.setInteractionInProgress(!1);const u=await c;return this.serverTelemetryManager.clearNativeBrokerErrorCode(),u}catch(l){throw this.browserStorage.setInteractionInProgress(!1),l}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,r,n){var u;this.logger.trace("NativeInteractionClient - handleNativeResponse called.");const a=Go(e.id_token,wn),o=this.createHomeAccountIdentifier(e,a),s=(u=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:r.accountId},this.correlationId))==null?void 0:u.homeAccountId;if(o!==s&&e.account.id!==r.accountId)throw ry(XT);const i=await this.getDiscoveredAuthority({requestAuthority:r.authority}),l=Dg(this.browserStorage,i,o,wn,this.correlationId,a,e.client_info,void 0,a.tid,void 0,e.account.id,this.logger),c=await this.generateAuthenticationResult(e,r,a,l,i.canonicalAuthority,n);return this.cacheAccount(l),this.cacheNativeTokens(e,r,o,a,e.access_token,c.tenantId,n),c}createHomeAccountIdentifier(e,r){return Ct.generateHomeAccountId(e.client_info||Z.EMPTY_STRING,Xr.Default,this.logger,this.browserCrypto,r)}generateScopes(e,r){return e.scope?it.fromString(e.scope):it.fromString(r.scope)}async generatePopAccessToken(e,r){if(r.tokenType===Be.POP&&r.signPopToken){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const n=new Ks(this.browserCrypto),a={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce};if(!r.keyId)throw te(yg);return n.signPopToken(e.access_token,r.keyId,a)}else return e.access_token}async generateAuthenticationResult(e,r,n,a,o,s){const i=this.addTelemetryFromNativeResponse(e),l=e.scope?it.fromString(e.scope):it.fromString(r.scope),c=e.account.properties||{},u=c.UID||n.oid||n.sub||Z.EMPTY_STRING,d=c.TenantId||n.tid||Z.EMPTY_STRING,p=Vg(a.getAccountInfo(),void 0,n,e.id_token);p.nativeAccountId!==e.account.id&&(p.nativeAccountId=e.account.id);const h=await this.generatePopAccessToken(e,r),f=r.tokenType===Be.POP?Be.POP:Be.BEARER;return{authority:o,uniqueId:u,tenantId:d,scopes:l.asArray(),account:p,idToken:e.id_token,idTokenClaims:n,accessToken:h,fromCache:i?this.isResponseFromCache(i):!1,expiresOn:new Date(Number(s+e.expires_in)*1e3),tokenType:f,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e,this.correlationId),this.browserStorage.removeAccountContext(e,this.correlationId).catch(r=>{this.logger.error(`Error occurred while removing account context from browser storage. ${r}`)})}cacheNativeTokens(e,r,n,a,o,s,i){const l=nh(n,r.authority,e.id_token||"",r.clientId,a.tid||""),c=r.tokenType===Be.POP?Z.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=i+c,d=this.generateScopes(e,r),p=ah(n,r.authority,o,r.clientId,a.tid||s,d.printScopes(),u,0,wn,void 0,r.tokenType,void 0,r.keyId),h={idToken:l,accessToken:p};this.nativeStorageManager.saveCacheRecord(h,r.correlationId,r.storeInCache)}addTelemetryFromNativeResponse(e){const r=this.getMATSFromResponse(e);return r?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw vb(ug,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const r=e.authority||this.config.auth.authority;e.account&&await this.getDiscoveredAuthority({requestAuthority:r,requestAzureCloudOptions:e.azureCloudOptions,account:e.account});const n=new Ie(r);n.validateAsUri();const{scopes:a,...o}=e,s=new it(a||[]);s.appendScopes(ui);const i=()=>{switch(this.apiId){case ze.ssoSilent:case ze.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),It.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case It.NONE:case It.CONSENT:case It.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),le(BT)}},l={...o,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:i(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1,keyId:e.popKid};if(l.signPopToken&&e.popKid)throw le(FT);if(this.handleExtraBrokerParams(l),l.extraParameters=l.extraParameters||{},l.extraParameters.telemetry=gs.MATS_TELEMETRY,e.authenticationScheme===Be.POP){const c={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new Ks(this.browserCrypto);let d;if(l.keyId)d=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:l.keyId})),l.signPopToken=!1;else{const p=await ne(u.generateCnf.bind(u),K.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(c,this.logger);d=p.reqCnfString,l.keyId=p.kid,l.signPopToken=!0}l.reqCnf=d}return this.addRequestSKUs(l),l}handleExtraBrokerParams(e){var o;const r=e.extraParameters&&e.extraParameters.hasOwnProperty(Tg)&&e.extraParameters.hasOwnProperty(Qm)&&e.extraParameters.hasOwnProperty(Ro);if(!e.embeddedClientId&&!r)return;let n="";const a=e.redirectUri;e.embeddedClientId?(e.redirectUri=this.config.auth.redirectUri,n=e.embeddedClientId):e.extraParameters&&(e.redirectUri=e.extraParameters[Qm],n=e.extraParameters[Ro]),e.extraParameters={child_client_id:n,child_redirect_uri:a},(o=this.performanceClient)==null||o.addFields({embeddedClientId:n,embeddedRedirectUri:a},e.correlationId)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class An{constructor(e,r,n,a){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=a,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(K.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const r={channel:gs.CHANNEL_ID,extensionId:this.extensionId,responseId:kn(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r),new Promise((n,a)=>{this.resolvers.set(r.responseId,{resolve:n,reject:a})})}static async createProvider(e,r,n){e.trace("NativeMessageHandler - createProvider called.");try{const a=new An(e,r,n,gs.PREFERRED_EXTENSION_ID);return await a.sendHandshakeRequest(),a}catch{const o=new An(e,r,n);return await o.sendHandshakeRequest(),o}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:gs.CHANNEL_ID,extensionId:this.extensionId,responseId:kn(),body:{method:So.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=r=>{this.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((r,n)=>{this.handshakeResolvers.set(e.responseId,{resolve:r,reject:n}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),n(le(kT)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const r=e.data;if(!(!r.channel||r.channel!==gs.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===So.HandshakeRequest){const n=this.handshakeResolvers.get(r.responseId);if(!n){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${r.responseId}`);return}this.logger.verbose(r.extensionId?`Extension with id: ${r.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),n.reject(le(_T))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const r=e.data,n=this.resolvers.get(r.responseId),a=this.handshakeResolvers.get(r.responseId);try{const o=r.body.method;if(o===So.Response){if(!n)return;const s=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(s)}`),s.status!=="Success")n.reject(ry(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?n.reject(ry(s.result.code,s.result.description,s.result.ext)):n.resolve(s.result);else throw vb(ug,"Event does not contain result.");this.resolvers.delete(r.responseId)}else if(o===So.HandshakeResponse){if(!a){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${r.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),a.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(o){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${o}`),this.logger.errorPii(`Unable to parse ${e}`),n?n.reject(o):a&&a.reject(o)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,r,n,a){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(a)switch(a){case Be.BEARER:case Be.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Kg{constructor(e,r,n,a,o){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=a,this.performanceClient=o}async handleCodeResponse(e,r){this.performanceClient.addQueueMeasurement(K.HandleCodeResponse,r.correlationId);let n;try{n=this.authModule.handleFragmentResponse(e,r.state)}catch(a){throw a instanceof Ja&&a.subError===ko?le(ko):a}return ne(this.handleCodeResponseFromServer.bind(this),K.HandleCodeResponseFromServer,this.logger,this.performanceClient,r.correlationId)(n,r)}async handleCodeResponseFromServer(e,r,n=!0){if(this.performanceClient.addQueueMeasurement(K.HandleCodeResponseFromServer,r.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await ne(this.authModule.updateAuthority.bind(this.authModule),K.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,r.correlationId)(e.cloud_instance_host_name,r.correlationId),n&&(e.nonce=r.nonce||void 0),e.state=r.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const o=this.createCcsCredentials(r);o&&(this.authCodeRequest.ccsCredential=o)}return await ne(this.authModule.acquireToken.bind(this.authModule),K.AuthClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:Sr.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:Sr.UPN}:null}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function eE(t,e,r){const n=Bd(t);if(!n)throw Xb(t)?(r.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),r.errorPii(`The ${e} detected is: ${t}`),le(hT)):(r.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),le(pT));return n}function M5(t,e,r){if(!t.state)throw le(Bg);const n=YT(e,t.state);if(!n)throw le(fT);if(n.interactionType!==r)throw le(mT)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class F5 extends di{constructor(e,r,n,a,o,s,i,l,c,u){super(e,r,n,a,o,s,i,c,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=l}acquireToken(e){try{const n={popupName:this.generatePopupName(e.scopes||ui,e.authority||this.config.auth.authority),popupWindowAttributes:e.popupWindowAttributes||{},popupWindowParent:e.popupWindowParent??window};return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,n)):(this.logger.verbose("asyncPopup set to false, opening popup before acquiring token"),n.popup=this.openSizedPopup("about:blank",n),this.acquireTokenPopupAsync(e,n))}catch(r){return Promise.reject(r)}}logout(e){try{this.logger.verbose("logoutPopup called");const r=this.initializeLogoutRequest(e),n={popupName:this.generateLogoutPopupName(r),popupWindowAttributes:(e==null?void 0:e.popupWindowAttributes)||{},popupWindowParent:(e==null?void 0:e.popupWindowParent)??window},a=e&&e.authority,o=e&&e.mainWindowRedirectUri;return this.config.system.asyncPopups?(this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,n,a,o)):(this.logger.verbose("asyncPopup set to false, opening popup"),n.popup=this.openSizedPopup("about:blank",n),this.logoutPopupAsync(r,n,a,o))}catch(r){return Promise.reject(r)}}async acquireTokenPopupAsync(e,r){var o;this.logger.verbose("acquireTokenPopupAsync called");const n=this.initializeServerTelemetryManager(ze.acquireTokenPopup),a=await ne(this.initializeAuthorizationRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,de.Popup);WT(a.authority);try{const s=await ne(this.initializeAuthorizationCodeRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(a),i=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account}),l=An.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let c;l&&(c=this.performanceClient.startMeasurement(K.FetchAccountIdWithNativeBroker,e.correlationId));const u=await i.getAuthCodeUrl({...a,nativeBroker:l}),d=new Kg(i,this.browserStorage,s,this.logger,this.performanceClient),p=this.initiateAuthRequest(u,r);this.eventHandler.emitEvent(ce.POPUP_OPENED,de.Popup,{popupWindow:p},null);const h=await this.monitorPopupForHash(p,r.popupWindowParent),f=Ho(eE,K.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(h,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(xn.removeThrottle(this.browserStorage,this.config.auth.clientId,s),f.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),c&&c.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw le(ic);const v=new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,f.accountId,this.nativeStorage,a.correlationId),{userRequestState:g}=on.parseRequestState(this.browserCrypto,a.state);return await v.acquireToken({...a,state:g,prompt:void 0})}return await d.handleCodeResponse(f,a)}catch(s){throw(o=r.popup)==null||o.close(),s instanceof Qe&&(s.setCorrelationId(this.correlationId),n.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,r,n,a){var s,i,l,c;this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ce.LOGOUT_START,de.Popup,e);const o=this.initializeServerTelemetryManager(ze.logoutPopup);try{await this.clearCacheOnLogout(e.account);const u=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:n,account:e.account||void 0});try{u.authority.endSessionEndpoint}catch{if((s=e.account)!=null&&s.homeAccountId&&e.postLogoutRedirectUri&&u.authority.protocolMode===ea.OIDC){if(this.browserStorage.removeAccount((i=e.account)==null?void 0:i.homeAccountId,this.correlationId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,de.Popup,e),a){const h={apiId:ze.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Ie.getAbsoluteUrl(a,Yn());await this.navigationClient.navigateInternal(f,h)}(l=r.popup)==null||l.close();return}}const d=u.getLogoutUri(e);this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,de.Popup,e);const p=this.openPopup(d,r);if(this.eventHandler.emitEvent(ce.POPUP_OPENED,de.Popup,{popupWindow:p},null),await this.monitorPopupForHash(p,r.popupWindowParent).catch(()=>{}),a){const h={apiId:ze.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Ie.getAbsoluteUrl(a,Yn());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${f}`),await this.navigationClient.navigateInternal(f,h)}else this.logger.verbose("No main window navigation requested")}catch(u){throw(c=r.popup)==null||c.close(),u instanceof Qe&&(u.setCorrelationId(this.correlationId),o.cacheFailedRequest(u)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,de.Popup,null,u),this.eventHandler.emitEvent(ce.LOGOUT_END,de.Popup),u}this.eventHandler.emitEvent(ce.LOGOUT_END,de.Popup)}initiateAuthRequest(e,r){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,r);throw this.logger.error("Navigate url is empty"),le(ch)}monitorPopupForHash(e,r){return new Promise((n,a)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const o=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(o),a(le(ko));return}let s="";try{s=e.location.href}catch{}if(!s||s==="about:blank")return;clearInterval(o);let i="";const l=this.config.auth.OIDCOptions.serverResponseType;e&&(l===sc.QUERY?i=e.location.search:i=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),n(i)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e,r)})}openPopup(e,r){try{let n;if(r.popup?(n=r.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),n.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),n=this.openSizedPopup(e,r)),!n)throw le(gT);return n.focus&&n.focus(),this.currentWindow=n,r.popupWindowParent.addEventListener("beforeunload",this.unloadWindow),n}catch(n){throw this.logger.error("error opening popup "+n.message),this.browserStorage.setInteractionInProgress(!1),le(vT)}}openSizedPopup(e,{popupName:r,popupWindowAttributes:n,popupWindowParent:a}){var h,f,y,v;const o=a.screenLeft?a.screenLeft:a.screenX,s=a.screenTop?a.screenTop:a.screenY,i=a.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=a.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let c=(h=n.popupSize)==null?void 0:h.width,u=(f=n.popupSize)==null?void 0:f.height,d=(y=n.popupPosition)==null?void 0:y.top,p=(v=n.popupPosition)==null?void 0:v.left;return(!c||c<0||c>i)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),c=Cr.POPUP_WIDTH),(!u||u<0||u>l)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),u=Cr.POPUP_HEIGHT),(!d||d<0||d>l)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),d=Math.max(0,l/2-Cr.POPUP_HEIGHT/2+s)),(!p||p<0||p>i)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,i/2-Cr.POPUP_WIDTH/2+o)),a.open(e,r,`width=${c}, height=${u}, top=${d}, left=${p}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(de.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e,r){e.close(),r.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,r){return`${Cr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${r}.${this.correlationId}`}generateLogoutPopupName(e){const r=e.account&&e.account.homeAccountId;return`${Cr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r}.${this.correlationId}`}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class WP{constructor(e,r,n,a,o){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=a,this.performanceClient=o}async initiateAuthRequest(e,r){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(De.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(De.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const n={apiId:ze.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1};if(typeof r.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await r.navigationClient.navigateExternal(e,n);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await r.navigationClient.navigateExternal(e,n);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),le(ch)}async handleCodeResponse(e,r){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const n=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(n);if(!a)throw te(Dd,"Cached State");let o;try{o=this.authModule.handleFragmentResponse(e,a)}catch(c){throw c instanceof Ja&&c.subError===ko?le(ko):c}const s=this.browserStorage.generateNonceKey(a),i=this.browserStorage.getTemporaryCache(s);if(this.authCodeRequest.code=o.code,o.cloud_instance_host_name&&await ne(this.authModule.updateAuthority.bind(this.authModule),K.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(o.cloud_instance_host_name,this.authCodeRequest.correlationId),o.nonce=i||void 0,o.state=a,o.client_info)this.authCodeRequest.clientInfo=o.client_info;else{const c=this.checkCcsCredentials();c&&(this.authCodeRequest.ccsCredential=c)}const l=await this.authModule.acquireToken(this.authCodeRequest,o);return this.browserStorage.cleanRequestByState(r),l}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(De.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function L5(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;const t=window.performance.getEntriesByType("navigation"),e=t.length?t[0]:void 0;return e==null?void 0:e.type}class N5 extends di{constructor(e,r,n,a,o,s,i,l,c,u){super(e,r,n,a,o,s,i,c,u),this.nativeStorage=l}async acquireToken(e){const r=await ne(this.initializeAuthorizationRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,de.Redirect);this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||"",r.account||null);const n=this.initializeServerTelemetryManager(ze.acquireTokenRedirect),a=o=>{o.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(r.state),this.eventHandler.emitEvent(ce.RESTORE_FROM_BFCACHE,de.Redirect))};try{const o=await ne(this.initializeAuthorizationCodeRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(r),s=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),i=new WP(s,this.browserStorage,o,this.logger,this.performanceClient),l=await s.getAuthCodeUrl({...r,nativeBroker:An.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),c=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${c}`),window.addEventListener("pageshow",a),await i.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:e.onRedirectNavigate||this.config.auth.onRedirectNavigate})}catch(o){throw o instanceof Qe&&(o.setCorrelationId(this.correlationId),n.cacheFailedRequest(o)),window.removeEventListener("pageshow",a),this.browserStorage.cleanRequestByState(r.state),o}}async handleRedirectPromise(e="",r){const n=this.initializeServerTelemetryManager(ze.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[a,o]=this.getRedirectResponse(e||"");if(!a)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(de.Redirect),L5()!=="back_forward"?r.event.errorCode="no_server_response":this.logger.verbose("Back navigation event detected. Muting no_server_response error"),null;const s=this.browserStorage.getTemporaryCache(De.ORIGIN_URI,!0)||Z.EMPTY_STRING,i=Ie.removeHashFromUrl(s),l=Ie.removeHashFromUrl(window.location.href);if(i===l&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),s.indexOf("#")>-1&&Q6(s),await this.handleResponse(a,n);if(this.config.auth.navigateToLoginRequestUrl){if(!$g()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(De.URL_HASH,o,!0);const c={apiId:ze.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let u=!0;if(!s||s==="null"){const d=W6();this.browserStorage.setTemporaryCache(De.ORIGIN_URI,d,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),u=await this.navigationClient.navigateInternal(d,c)}else this.logger.verbose(`Navigating to loginRequestUrl: ${s}`),u=await this.navigationClient.navigateInternal(s,c);if(!u)return await this.handleResponse(a,n)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(a,n);return null}catch(a){throw a instanceof Qe&&(a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a)),this.browserStorage.cleanRequestByInteractionType(de.Redirect),a}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let r=e;r||(this.config.auth.OIDCOptions.serverResponseType===sc.QUERY?r=window.location.search:r=window.location.hash);let n=Bd(r);if(n){try{M5(n,this.browserCrypto,de.Redirect)}catch(o){return o instanceof Qe&&this.logger.error(`Interaction type validation failed due to ${o.errorCode}: ${o.errorMessage}`),[null,""]}return q6(window),this.logger.verbose("Hash contains known properties, returning response hash"),[n,r]}const a=this.browserStorage.getTemporaryCache(De.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(De.URL_HASH)),a&&(n=Bd(a),n)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[n,a]):[null,""]}async handleResponse(e,r){const n=e.state;if(!n)throw le(Bg);const a=this.browserStorage.getCachedRequest(n);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw le(ic);const l=new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,a.correlationId),{userRequestState:c}=on.parseRequestState(this.browserCrypto,n);return l.acquireToken({...a,state:c,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(n)})}const o=this.browserStorage.getCachedAuthority(n);if(!o)throw le(Mg);const s=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:o});return xn.removeThrottle(this.browserStorage,this.config.auth.clientId,a),new WP(s,this.browserStorage,a,this.logger,this.performanceClient).handleCodeResponse(e,n)}async logout(e){var a,o;this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(ze.logout);try{this.eventHandler.emitEvent(ce.LOGOUT_START,de.Redirect,e),await this.clearCacheOnLogout(r.account);const s={apiId:ze.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:e&&e.authority,requestExtraQueryParameters:e==null?void 0:e.extraQueryParameters,account:e&&e.account||void 0});if(i.authority.protocolMode===ea.OIDC)try{i.authority.endSessionEndpoint}catch{if((a=r.account)!=null&&a.homeAccountId){this.browserStorage.removeAccount((o=r.account)==null?void 0:o.homeAccountId,this.correlationId),this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,de.Redirect,r);return}}const l=i.getLogoutUri(r);if(this.eventHandler.emitEvent(ce.LOGOUT_SUCCESS,de.Redirect,r),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(l)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(l,s);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(l,s);return}}catch(s){throw s instanceof Qe&&(s.setCorrelationId(this.correlationId),n.cacheFailedRequest(s)),this.eventHandler.emitEvent(ce.LOGOUT_FAILURE,de.Redirect,null,s),this.eventHandler.emitEvent(ce.LOGOUT_END,de.Redirect),s}this.eventHandler.emitEvent(ce.LOGOUT_END,de.Redirect)}getRedirectStartPage(e){const r=e||window.location.href;return Ie.getAbsoluteUrl(r,Yn())}}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function G5(t,e,r,n,a){if(e.addQueueMeasurement(K.SilentHandlerInitiateAuthRequest,n),!t)throw r.info("Navigate url is empty"),le(ch);return a?ne(j5,K.SilentHandlerLoadFrame,r,e,n)(t,a,e,n):Ho($5,K.SilentHandlerLoadFrameSync,r,e,n)(t)}async function H5(t,e,r,n,a,o,s){return n.addQueueMeasurement(K.SilentHandlerMonitorIframeForHash,o),new Promise((i,l)=>{e<Zm&&a.warning(`system.loadFrameTimeout or system.iframeHashTimeout set to lower (${e}ms) than the default (${Zm}ms). This may result in timeouts.`);const c=window.setTimeout(()=>{window.clearInterval(u),l(le(CT))},e),u=window.setInterval(()=>{let d="";const p=t.contentWindow;try{d=p?p.location.href:""}catch{}if(!d||d==="about:blank")return;let h="";p&&(s===sc.QUERY?h=p.location.search:h=p.location.hash),window.clearTimeout(c),window.clearInterval(u),i(h)},r)}).finally(()=>{Ho(z5,K.RemoveHiddenIframe,a,n,o)(t)})}function j5(t,e,r,n){return r.addQueueMeasurement(K.SilentHandlerLoadFrame,n),new Promise((a,o)=>{const s=tE();window.setTimeout(()=>{if(!s){o("Unable to load iframe");return}s.src=t,a(s)},e)})}function $5(t){const e=tE();return e.src=t,e}function tE(){const t=document.createElement("iframe");return t.className="msalSilentIframe",t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function z5(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class q5 extends di{constructor(e,r,n,a,o,s,i,l,c,u,d){super(e,r,n,a,o,s,l,u,d),this.apiId=i,this.nativeStorage=c}async acquireToken(e){this.performanceClient.addQueueMeasurement(K.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request.");const r={...e};r.prompt?r.prompt!==It.NONE&&r.prompt!==It.NO_SESSION&&(this.logger.warning(`SilentIframeClient. Replacing invalid prompt ${r.prompt} with ${It.NONE}`),r.prompt=It.NONE):r.prompt=It.NONE;const n=await ne(this.initializeAuthorizationRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(r,de.Silent);WT(n.authority);const a=this.initializeServerTelemetryManager(this.apiId);let o;try{return o=await ne(this.createAuthCodeClient.bind(this),K.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:a,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),await ne(this.silentTokenHelper.bind(this),K.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(o,n)}catch(s){if(s instanceof Qe&&(s.setCorrelationId(this.correlationId),a.cacheFailedRequest(s)),!o||!(s instanceof Qe)||s.errorCode!==Cr.INVALID_GRANT_ERROR)throw s;this.performanceClient.addFields({retryError:s.errorCode},this.correlationId);const i=await ne(this.initializeAuthorizationRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(r,de.Silent);return await ne(this.silentTokenHelper.bind(this),K.SilentIframeClientTokenHelper,this.logger,this.performanceClient,this.correlationId)(o,i)}}logout(){return Promise.reject(le(uh))}async silentTokenHelper(e,r){const n=r.correlationId;this.performanceClient.addQueueMeasurement(K.SilentIframeClientTokenHelper,n);const a=await ne(this.initializeAuthorizationCodeRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,n)(r),o=await ne(e.getAuthCodeUrl.bind(e),K.GetAuthCodeUrl,this.logger,this.performanceClient,n)({...r,nativeBroker:An.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}),s=new Kg(e,this.browserStorage,a,this.logger,this.performanceClient),i=await ne(G5,K.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,n)(o,this.performanceClient,this.logger,n,this.config.system.navigateFrameWait),l=this.config.auth.OIDCOptions.serverResponseType,c=await ne(H5,K.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,n)(i,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,n,l),u=Ho(eE,K.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(c,l,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw le(ic);const d=new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,n),{userRequestState:p}=on.parseRequestState(this.browserCrypto,r.state);return ne(d.acquireToken.bind(d),K.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,n)({...r,state:p,prompt:r.prompt||It.NONE})}return ne(s.handleCodeResponse.bind(s),K.HandleCodeResponse,this.logger,this.performanceClient,n)(u,r)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Q5 extends di{async acquireToken(e){this.performanceClient.addQueueMeasurement(K.SilentRefreshClientAcquireToken,e.correlationId);const r=await ne(Qg,K.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,this.config,this.performanceClient,this.logger),n={...e,...r};e.redirectUri&&(n.redirectUri=this.getRedirectUri(e.redirectUri));const a=this.initializeServerTelemetryManager(ze.acquireTokenSilent_silentFlow),o=await this.createRefreshTokenClient({serverTelemetryManager:a,authorityUrl:n.authority,azureCloudOptions:n.azureCloudOptions,account:n.account});return ne(o.acquireTokenByRefreshToken.bind(o),K.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(n).catch(s=>{throw s.setCorrelationId(this.correlationId),a.cacheFailedRequest(s),s})}logout(){return Promise.reject(le(uh))}async createRefreshTokenClient(e){const r=await ne(this.getClientConfiguration.bind(this),K.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:e.serverTelemetryManager,requestAuthority:e.authorityUrl,requestAzureCloudOptions:e.azureCloudOptions,requestExtraQueryParameters:e.extraQueryParameters,account:e.account});return new Wm(r,this.performanceClient)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class K5{constructor(e,r,n,a){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=n,this.cryptoObj=a}loadExternalTokens(e,r,n){if(!this.isBrowserEnvironment)throw le(dh);const a=e.correlationId||kn(),o=r.id_token?Go(r.id_token,wn):void 0,s={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},i=e.authority?new qt(qt.generateAuthority(e.authority,e.azureCloudOptions),this.config.system.networkClient,this.storage,s,this.logger,e.correlationId||kn()):void 0,l=this.loadAccount(e,n.clientInfo||r.client_info||"",a,o,i),c=this.loadIdToken(r,l.homeAccountId,l.environment,l.realm,a),u=this.loadAccessToken(e,r,l.homeAccountId,l.environment,l.realm,n,a),d=this.loadRefreshToken(r,l.homeAccountId,l.environment,a);return this.generateAuthenticationResult(e,{account:l,idToken:c,accessToken:u,refreshToken:d},o,i)}loadAccount(e,r,n,a,o){if(this.logger.verbose("TokenCache - loading account"),e.account){const c=Ct.createFromAccountInfo(e.account);return this.storage.setAccount(c,n),c}else if(!o||!r&&!a)throw this.logger.error("TokenCache - if an account is not provided on the request, authority and either clientInfo or idToken must be provided instead."),le(bT);const s=Ct.generateHomeAccountId(r,o.authorityType,this.logger,this.cryptoObj,a),i=a==null?void 0:a.tid,l=Dg(this.storage,o,s,wn,n,a,r,o.hostnameAndPort,i,void 0,void 0,this.logger);return this.storage.setAccount(l,n),l}loadIdToken(e,r,n,a,o){if(!e.id_token)return this.logger.verbose("TokenCache - no id token found in response"),null;this.logger.verbose("TokenCache - loading id token");const s=nh(r,n,e.id_token,this.config.auth.clientId,a);return this.storage.setIdTokenCredential(s,o),s}loadAccessToken(e,r,n,a,o,s,i){if(r.access_token)if(r.expires_in){if(!r.scope&&(!e.scopes||!e.scopes.length))return this.logger.error("TokenCache - scopes not specified in the request or response. Cannot add token to the cache."),null}else return this.logger.error("TokenCache - no expiration set on the access token. Cannot add it to the cache."),null;else return this.logger.verbose("TokenCache - no access token found in response"),null;this.logger.verbose("TokenCache - loading access token");const l=r.scope?it.fromString(r.scope):new it(e.scopes),c=s.expiresOn||r.expires_in+new Date().getTime()/1e3,u=s.extendedExpiresOn||(r.ext_expires_in||r.expires_in)+new Date().getTime()/1e3,d=ah(n,a,r.access_token,this.config.auth.clientId,o,l.printScopes(),c,u,wn);return this.storage.setAccessTokenCredential(d,i),d}loadRefreshToken(e,r,n,a){if(!e.refresh_token)return this.logger.verbose("TokenCache - no refresh token found in response"),null;this.logger.verbose("TokenCache - loading refresh token");const o=Bb(r,n,e.refresh_token,this.config.auth.clientId,e.foci,void 0,e.refresh_token_expires_in);return this.storage.setRefreshTokenCredential(o,a),o}generateAuthenticationResult(e,r,n,a){var u,d,p;let o="",s=[],i=null,l;r!=null&&r.accessToken&&(o=r.accessToken.secret,s=it.fromString(r.accessToken.target).asArray(),i=new Date(Number(r.accessToken.expiresOn)*1e3),l=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));const c=r.account;return{authority:a?a.canonicalAuthority:"",uniqueId:r.account.localAccountId,tenantId:r.account.realm,scopes:s,account:c.getAccountInfo(),idToken:((u=r.idToken)==null?void 0:u.secret)||"",idTokenClaims:n||{},accessToken:o,fromCache:!0,expiresOn:i,correlationId:e.correlationId||"",requestId:"",extExpiresOn:l,familyId:((d=r.refreshToken)==null?void 0:d.familyId)||"",tokenType:((p=r==null?void 0:r.accessToken)==null?void 0:p.tokenType)||"",state:e.state||"",cloudGraphHostName:c.cloudGraphHostName||"",msGraphHost:c.msGraphHost||"",fromNativeBroker:!1}}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class W5 extends lT{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Y5 extends di{constructor(e,r,n,a,o,s,i,l,c,u){super(e,r,n,a,o,s,l,c,u),this.apiId=i}async acquireToken(e){if(!e.code)throw le(TT);const r=await ne(this.initializeAuthorizationRequest.bind(this),K.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,de.Silent),n=this.initializeServerTelemetryManager(this.apiId);try{const a={...r,code:e.code},o=await ne(this.getClientConfiguration.bind(this),K.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)({serverTelemetryManager:n,requestAuthority:r.authority,requestAzureCloudOptions:r.azureCloudOptions,requestExtraQueryParameters:r.extraQueryParameters,account:r.account}),s=new W5(o);this.logger.verbose("Auth code client created");const i=new Kg(s,this.browserStorage,a,this.logger,this.performanceClient);return await ne(i.handleCodeResponseFromServer.bind(i),K.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r,!1)}catch(a){throw a instanceof Qe&&(a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a)),a}}logout(){return Promise.reject(le(uh))}}/*! @azure/msal-browser v3.30.0 2025-08-05 */function mn(t){const e=t==null?void 0:t.idTokenClaims;if(e!=null&&e.tfp||e!=null&&e.acr)return"B2C";if(e!=null&&e.tid){if((e==null?void 0:e.tid)==="9188040d-6c67-4c5b-b112-36a304b66dad")return"MSA"}else return;return"AAD"}function Zc(t,e){try{zg(t)}catch(r){throw e.end({success:!1},r),r}}class hh{constructor(e){this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Ys(this.logger,this.performanceClient):kd,this.eventHandler=new P5(this.logger),this.browserStorage=this.isBrowserEnvironment?new ty(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,l6(this.config.auth),this.performanceClient):f5(this.config.auth.clientId,this.logger);const r={cacheLocation:sr.MemoryStorage,temporaryCacheLocation:sr.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new ty(this.config.auth.clientId,r,this.browserCrypto,this.logger,void 0,this.performanceClient),this.tokenCache=new K5(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this),this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}static async createController(e,r){const n=new hh(e);return await n.initialize(r),n}trackPageVisibility(e){e&&(this.logger.info("Perf: Visibility change detected"),this.performanceClient.incrementFields({visibilityChangeCount:1},e))}async initialize(e){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, exiting early."),this.initialized=!0,this.eventHandler.emitEvent(ce.INITIALIZE_END);return}const r=(e==null?void 0:e.correlationId)||this.getRequestCorrelationId(),n=this.config.system.allowNativeBroker,a=this.performanceClient.startMeasurement(K.InitializeClientApplication,r);if(this.eventHandler.emitEvent(ce.INITIALIZE_START),n)try{this.nativeExtensionProvider=await An.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await ne(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),K.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient,r)(this.performanceClient,r)),this.initialized=!0,this.eventHandler.emitEvent(ce.INITIALIZE_END),a.end({allowNativeBroker:n,success:!0})}async handleRedirectPromise(e){if(this.logger.verbose("handleRedirectPromise called"),KT(this.initialized),this.isBrowserEnvironment){const r=e||"";let n=this.redirectResponse.get(r);return typeof n>"u"?(n=this.handleRedirectPromiseInternal(e),this.redirectResponse.set(r,n),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise")):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async handleRedirectPromiseInternal(e){const r=this.getAllAccounts(),n=this.browserStorage.getCachedNativeRequest(),a=n&&An.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e,o=a?n==null?void 0:n.correlationId:this.browserStorage.getTemporaryCache(De.CORRELATION_ID,!0)||"",s=this.performanceClient.startMeasurement(K.AcquireTokenRedirect,o);this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_START,de.Redirect);let i;if(a&&this.nativeExtensionProvider){this.logger.trace("handleRedirectPromise - acquiring token from native platform");const l=new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,n.accountId,this.nativeInternalStorage,n.correlationId);i=ne(l.handleRedirectPromise.bind(l),K.HandleNativeRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(this.performanceClient,s.event.correlationId)}else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const l=this.createRedirectClient(o);i=ne(l.handleRedirectPromise.bind(l),K.HandleRedirectPromiseMeasurement,this.logger,this.performanceClient,s.event.correlationId)(e,s)}return i.then(l=>(l?(r.length<this.getAllAccounts().length?(this.eventHandler.emitEvent(ce.LOGIN_SUCCESS,de.Redirect,l),this.logger.verbose("handleRedirectResponse returned result, login success")):(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_SUCCESS,de.Redirect,l),this.logger.verbose("handleRedirectResponse returned result, acquire token success")),s.end({success:!0,accountType:mn(l.account)})):s.event.errorCode?s.end({success:!1}):s.discard(),this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_END,de.Redirect),l)).catch(l=>{const c=l;throw r.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,de.Redirect,null,c):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,de.Redirect,null,c),this.eventHandler.emitEvent(ce.HANDLE_REDIRECT_END,de.Redirect),s.end({success:!1},c),l})}async acquireTokenRedirect(e){const r=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",r);const n=this.performanceClient.startMeasurement(K.AcquireTokenPreRedirect,r);n.add({accountType:mn(e.account),scenarioId:e.scenarioId});const a=e.onRedirectNavigate;if(a)e.onRedirectNavigate=s=>{const i=typeof a=="function"?a(s):void 0;return i!==!1?n.end({success:!0}):n.discard(),i};else{const s=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=i=>{const l=typeof s=="function"?s(i):void 0;return l!==!1?n.end({success:!0}):n.discard(),l}}const o=this.getAllAccounts().length>0;try{zP(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,de.Redirect,e):this.eventHandler.emitEvent(ce.LOGIN_START,de.Redirect,e);let s;return this.nativeExtensionProvider&&this.canUseNative(e)?s=new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,r).acquireTokenRedirect(e,n).catch(l=>{if(l instanceof Sn&&ns(l))return this.nativeExtensionProvider=void 0,this.createRedirectClient(r).acquireToken(e);if(l instanceof un)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(r).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),l}):s=this.createRedirectClient(r).acquireToken(e),await s}catch(s){throw n.end({success:!1},s),o?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,de.Redirect,null,s):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,de.Redirect,null,s),s}}acquireTokenPopup(e){const r=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(K.AcquireTokenPopup,r);n.add({scenarioId:e.scenarioId,accountType:mn(e.account)});try{this.logger.verbose("acquireTokenPopup called",r),Zc(this.initialized,n),this.browserStorage.setInteractionInProgress(!0)}catch(s){return Promise.reject(s)}const a=this.getAllAccounts();a.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,de.Popup,e):this.eventHandler.emitEvent(ce.LOGIN_START,de.Popup,e);let o;return this.canUseNative(e)?o=this.acquireTokenNative({...e,correlationId:r},ze.acquireTokenPopup).then(s=>(this.browserStorage.setInteractionInProgress(!1),n.end({success:!0,isNativeBroker:!0,accountType:mn(s.account)}),s)).catch(s=>{if(s instanceof Sn&&ns(s))return this.nativeExtensionProvider=void 0,this.createPopupClient(r).acquireToken(e);if(s instanceof un)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(r).acquireToken(e);throw this.browserStorage.setInteractionInProgress(!1),s}):o=this.createPopupClient(r).acquireToken(e),o.then(s=>(a.length<this.getAllAccounts().length?this.eventHandler.emitEvent(ce.LOGIN_SUCCESS,de.Popup,s):this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_SUCCESS,de.Popup,s),n.end({success:!0,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:mn(s.account)}),s)).catch(s=>(a.length>0?this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,de.Popup,null,s):this.eventHandler.emitEvent(ce.LOGIN_FAILURE,de.Popup,null,s),n.end({success:!1},s),Promise.reject(s)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){var o,s;const r=this.getRequestCorrelationId(e),n={...e,prompt:e.prompt,correlationId:r};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(K.SsoSilent,r),(o=this.ssoSilentMeasurement)==null||o.add({scenarioId:e.scenarioId,accountType:mn(e.account)}),Zc(this.initialized,this.ssoSilentMeasurement),(s=this.ssoSilentMeasurement)==null||s.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(ce.SSO_SILENT_START,de.Silent,n);let a;return this.canUseNative(n)?a=this.acquireTokenNative(n,ze.ssoSilent).catch(i=>{if(i instanceof Sn&&ns(i))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(n.correlationId).acquireToken(n);throw i}):a=this.createSilentIframeClient(n.correlationId).acquireToken(n),a.then(i=>{var l;return this.eventHandler.emitEvent(ce.SSO_SILENT_SUCCESS,de.Silent,i),(l=this.ssoSilentMeasurement)==null||l.end({success:!0,isNativeBroker:i.fromNativeBroker,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length,accountType:mn(i.account)}),i}).catch(i=>{var l;throw this.eventHandler.emitEvent(ce.SSO_SILENT_FAILURE,de.Silent,null,i),(l=this.ssoSilentMeasurement)==null||l.end({success:!1},i),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const r=this.getRequestCorrelationId(e);this.logger.trace("acquireTokenByCode called",r);const n=this.performanceClient.startMeasurement(K.AcquireTokenByCode,r);Zc(this.initialized,n),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_START,de.Silent,e),n.add({scenarioId:e.scenarioId});try{if(e.code&&e.nativeAccountId)throw le(RT);if(e.code){const a=e.code;let o=this.hybridAuthCodeResponses.get(a);return o?(this.logger.verbose("Existing acquireTokenByCode request found",r),n.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),o=this.acquireTokenByCodeAsync({...e,correlationId:r}).then(s=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_SUCCESS,de.Silent,s),this.hybridAuthCodeResponses.delete(a),n.end({success:!0,isNativeBroker:s.fromNativeBroker,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length,accountType:mn(s.account)}),s)).catch(s=>{throw this.hybridAuthCodeResponses.delete(a),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,de.Silent,null,s),n.end({success:!1},s),s}),this.hybridAuthCodeResponses.set(a,o)),await o}else if(e.nativeAccountId)if(this.canUseNative(e,e.nativeAccountId)){const a=await this.acquireTokenNative({...e,correlationId:r},ze.acquireTokenByCode,e.nativeAccountId).catch(o=>{throw o instanceof Sn&&ns(o)&&(this.nativeExtensionProvider=void 0),o});return n.end({accountType:mn(a.account),success:!0}),a}else throw le(DT);else throw le(ET)}catch(a){throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_BY_CODE_FAILURE,de.Silent,null,a),n.end({success:!1},a),a}}async acquireTokenByCodeAsync(e){var a;return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(K.AcquireTokenByCodeAsync,e.correlationId),(a=this.acquireTokenByCodeAsyncMeasurement)==null||a.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(o=>{var s;return(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!0,fromCache:o.fromCache,isNativeBroker:o.fromNativeBroker}),o}).catch(o=>{var s;throw(s=this.acquireTokenByCodeAsyncMeasurement)==null||s.end({success:!1},o),o}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,r){switch(this.performanceClient.addQueueMeasurement(K.AcquireTokenFromCache,e.correlationId),r){case vr.Default:case vr.AccessToken:case vr.AccessTokenAndRefreshToken:const n=this.createSilentCacheClient(e.correlationId);return ne(n.acquireToken.bind(n),K.SilentCacheClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw te(Wn)}}async acquireTokenByRefreshToken(e,r){switch(this.performanceClient.addQueueMeasurement(K.AcquireTokenByRefreshToken,e.correlationId),r){case vr.Default:case vr.AccessTokenAndRefreshToken:case vr.RefreshToken:case vr.RefreshTokenAndNetwork:const n=this.createSilentRefreshClient(e.correlationId);return ne(n.acquireToken.bind(n),K.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw te(Wn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(K.AcquireTokenBySilentIframe,e.correlationId);const r=this.createSilentIframeClient(e.correlationId);return ne(r.acquireToken.bind(r),K.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const r=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),this.logoutRedirect({correlationId:r,...e})}async logoutRedirect(e){const r=this.getRequestCorrelationId(e);return zP(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0),this.createRedirectClient(r).logout(e)}logoutPopup(e){try{const r=this.getRequestCorrelationId(e);return zg(this.initialized),this.browserStorage.setInteractionInProgress(!0),this.createPopupClient(r).logout(e)}catch(r){return Promise.reject(r)}}async clearCache(e){if(!this.isBrowserEnvironment){this.logger.info("in non-browser environment, returning early.");return}const r=this.getRequestCorrelationId(e);return this.createSilentCacheClient(r).logout(e)}getAllAccounts(e){const r=this.getRequestCorrelationId();return m5(this.logger,this.browserStorage,this.isBrowserEnvironment,r,e)}getAccount(e){const r=this.getRequestCorrelationId();return y5(e,this.logger,this.browserStorage,r)}getAccountByUsername(e){const r=this.getRequestCorrelationId();return v5(e,this.logger,this.browserStorage,r)}getAccountByHomeId(e){const r=this.getRequestCorrelationId();return g5(e,this.logger,this.browserStorage,r)}getAccountByLocalId(e){const r=this.getRequestCorrelationId();return C5(e,this.logger,this.browserStorage,r)}setActiveAccount(e){const r=this.getRequestCorrelationId();x5(e,this.browserStorage,r)}getActiveAccount(){const e=this.getRequestCorrelationId();return S5(this.browserStorage,e)}async hydrateCache(e,r){this.logger.verbose("hydrateCache called");const n=Ct.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(n,e.correlationId),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,r)):this.browserStorage.hydrateCache(e,r)}async acquireTokenNative(e,r,n){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw le(ic);return new Ds(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,r){if(this.logger.trace("canUseNative called"),!An.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case It.NONE:case It.CONSENT:case It.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const r=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return r&&r.nativeAccountId||""}createPopupClient(e){return new F5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new N5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new q5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new ZT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new Q5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new Y5(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ze.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e,r){return this.eventHandler.addEventCallback(e,r)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return QT(),this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}handleAccountCacheChange(e){var r;try{(r=e.key)!=null&&r.includes(Pt.ACTIVE_ACCOUNT_FILTERS)&&this.eventHandler.emitEvent(ce.ACTIVE_ACCOUNT_CHANGED);const n=e.newValue||e.oldValue;if(!n)return;const a=JSON.parse(n);if(typeof a!="object"||!Ct.isAccountEntity(a))return;const s=Qs.toObject(new Ct,a).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.eventHandler.emitEvent(ce.ACCOUNT_ADDED,void 0,s)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.eventHandler.emitEvent(ce.ACCOUNT_REMOVED,void 0,s))}catch{return}}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,r){this.browserStorage.setWrapperMetadata(e,r)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?kn():Z.EMPTY_STRING}async loginRedirect(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",r),this.acquireTokenRedirect({correlationId:r,...e||HP})}loginPopup(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup({correlationId:r,...e||HP})}async acquireTokenSilent(e){const r=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(K.AcquireTokenSilent,r);n.add({cacheLookupPolicy:e.cacheLookupPolicy,scenarioId:e.scenarioId}),Zc(this.initialized,n),this.logger.verbose("acquireTokenSilent called",r);const a=e.account||this.getActiveAccount();if(!a)throw le(AT);n.add({accountType:mn(a)});const o={clientId:this.config.auth.clientId,authority:e.authority||Z.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:a.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},s=JSON.stringify(o),i=this.activeSilentTokenRequests.get(s);if(typeof i>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r);const l=ne(this.acquireTokenSilentAsync.bind(this),K.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},a).then(c=>(this.activeSilentTokenRequests.delete(s),n.end({success:!0,fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),c)).catch(c=>{throw this.activeSilentTokenRequests.delete(s),n.end({success:!1},c),c});return this.activeSilentTokenRequests.set(s,l),{...await l,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),n.discard(),{...await i,state:e.state}}async acquireTokenSilentAsync(e,r){const n=()=>this.trackPageVisibility(e.correlationId);this.performanceClient.addQueueMeasurement(K.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_START,de.Silent,e),e.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0},e.correlationId),document.addEventListener("visibilitychange",n);const a=await ne(w5,K.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,r,this.config,this.performanceClient,this.logger),o=e.cacheLookupPolicy||vr.Default;return this.acquireTokenSilentNoIframe(a,o).catch(async i=>{if(J5(i,o))if(this.activeIframeRequest)if(o!==vr.Skip){const[c,u]=this.activeIframeRequest;this.logger.verbose(`Iframe request is already in progress, awaiting resolution for request with correlationId: ${u}`,a.correlationId);const d=this.performanceClient.startMeasurement(K.AwaitConcurrentIframe,a.correlationId);d.add({awaitIframeCorrelationId:u});const p=await c;if(d.end({success:p}),p)return this.logger.verbose(`Parallel iframe request with correlationId: ${u} succeeded. Retrying cache and/or RT redemption`,a.correlationId),this.acquireTokenSilentNoIframe(a,o);throw this.logger.info(`Iframe request with correlationId: ${u} failed. Interaction is required.`),i}else return this.logger.warning("Another iframe request is currently in progress and CacheLookupPolicy is set to Skip. This may result in degraded performance and/or reliability for both calls. Please consider changing the CacheLookupPolicy to take advantage of request queuing and token cache.",a.correlationId),ne(this.acquireTokenBySilentIframe.bind(this),K.AcquireTokenBySilentIframe,this.logger,this.performanceClient,a.correlationId)(a);else{let c;return this.activeIframeRequest=[new Promise(u=>{c=u}),a.correlationId],this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",a.correlationId),ne(this.acquireTokenBySilentIframe.bind(this),K.AcquireTokenBySilentIframe,this.logger,this.performanceClient,a.correlationId)(a).then(u=>(c(!0),u)).catch(u=>{throw c(!1),u}).finally(()=>{this.activeIframeRequest=void 0})}else throw i}).then(i=>(this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_SUCCESS,de.Silent,i),e.correlationId&&this.performanceClient.addFields({fromCache:i.fromCache,isNativeBroker:i.fromNativeBroker},e.correlationId),i)).catch(i=>{throw this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_FAILURE,de.Silent,null,i),i}).finally(()=>{document.removeEventListener("visibilitychange",n)})}async acquireTokenSilentNoIframe(e,r){return An.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&e.account.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),this.acquireTokenNative(e,ze.acquireTokenSilent_silentFlow).catch(async n=>{throw n instanceof Sn&&ns(n)?(this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,te(Wn)):n})):(this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),ne(this.acquireTokenFromCache.bind(this),K.AcquireTokenFromCache,this.logger,this.performanceClient,e.correlationId)(e,r).catch(n=>{if(r===vr.AccessToken)throw n;return this.eventHandler.emitEvent(ce.ACQUIRE_TOKEN_NETWORK_START,de.Silent,e),ne(this.acquireTokenByRefreshToken.bind(this),K.AcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,r)}))}}function J5(t,e){const r=!(t instanceof un&&t.subError!==lh),n=t.errorCode===Cr.INVALID_GRANT_ERROR||t.errorCode===Wn,a=r&&n||t.errorCode===Fd||t.errorCode===Rg,o=k6.includes(e);return a&&o}/*! @azure/msal-browser v3.30.0 2025-08-05 */async function X5(t,e){const r=new _o(t);return await r.initialize(),hh.createController(r,e)}/*! @azure/msal-browser v3.30.0 2025-08-05 */class Wg{static async createPublicClientApplication(e){const r=await X5(e);return new Wg(e,r)}constructor(e,r){this.controller=r||new hh(new _o(e))}async initialize(e){return this.controller.initialize(e)}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e,r){return this.controller.addEventCallback(e,r)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,r){return this.controller.initializeWrapperLibrary(e,r)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,r){return this.controller.hydrateCache(e,r)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v3.30.0 2025-08-05 */const Z5={initialize:()=>Promise.reject(ct(At)),acquireTokenPopup:()=>Promise.reject(ct(At)),acquireTokenRedirect:()=>Promise.reject(ct(At)),acquireTokenSilent:()=>Promise.reject(ct(At)),acquireTokenByCode:()=>Promise.reject(ct(At)),getAllAccounts:()=>[],getAccount:()=>null,getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(ct(At)),loginPopup:()=>Promise.reject(ct(At)),loginRedirect:()=>Promise.reject(ct(At)),logout:()=>Promise.reject(ct(At)),logoutRedirect:()=>Promise.reject(ct(At)),logoutPopup:()=>Promise.reject(ct(At)),ssoSilent:()=>Promise.reject(ct(At)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw ct(At)},getLogger:()=>{throw ct(At)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw ct(At)},hydrateCache:()=>Promise.reject(ct(At)),clearCache:()=>Promise.reject(ct(At))};/*! @azure/msal-browser v3.30.0 2025-08-05 */class eH{static getInteractionStatusFromEvent(e,r){switch(e.eventType){case ce.LOGIN_START:return Ot.Login;case ce.SSO_SILENT_START:return Ot.SsoSilent;case ce.ACQUIRE_TOKEN_START:if(e.interactionType===de.Redirect||e.interactionType===de.Popup)return Ot.AcquireToken;break;case ce.HANDLE_REDIRECT_START:return Ot.HandleRedirect;case ce.LOGOUT_START:return Ot.Logout;case ce.SSO_SILENT_SUCCESS:case ce.SSO_SILENT_FAILURE:if(r&&r!==Ot.SsoSilent)break;return Ot.None;case ce.LOGOUT_END:if(r&&r!==Ot.Logout)break;return Ot.None;case ce.HANDLE_REDIRECT_END:if(r&&r!==Ot.HandleRedirect)break;return Ot.None;case ce.LOGIN_SUCCESS:case ce.LOGIN_FAILURE:case ce.ACQUIRE_TOKEN_SUCCESS:case ce.ACQUIRE_TOKEN_FAILURE:case ce.RESTORE_FROM_BFCACHE:if(e.interactionType===de.Redirect||e.interactionType===de.Popup){if(r&&r!==Ot.Login&&r!==Ot.AcquireToken)break;return Ot.None}break}return null}}/*! @azure/msal-react v2.2.0 2024-11-05 */const tH={instance:Z5,inProgress:Ot.None,accounts:[],logger:new la({})},rE=B.createContext(tH);rE.Consumer;/*! @azure/msal-react v2.2.0 2024-11-05 */function YP(t,e){if(t.length!==e.length)return!1;const r=[...e];return t.every(n=>{const a=r.shift();return!n||!a?!1:n.homeAccountId===a.homeAccountId&&n.localAccountId===a.localAccountId&&n.username===a.username})}/*! @azure/msal-react v2.2.0 2024-11-05 */const rH="@azure/msal-react",JP="2.2.0";/*! @azure/msal-react v2.2.0 2024-11-05 */const Gd={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},nH=(t,e)=>{const{type:r,payload:n}=e;let a=t.inProgress;switch(r){case Gd.UNBLOCK_INPROGRESS:t.inProgress===Ot.Startup&&(a=Ot.None,n.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case Gd.EVENT:const s=n.message,i=eH.getInteractionStatusFromEvent(s,t.inProgress);i&&(n.logger.info(`MsalProvider - ${s.eventType} results in setting inProgress from ${t.inProgress} to ${i}`),a=i);break;default:throw new Error(`Unknown action type: ${r}`)}const o=n.instance.getAllAccounts();return a!==t.inProgress&&!YP(o,t.accounts)?{...t,inProgress:a,accounts:o}:a!==t.inProgress?{...t,inProgress:a}:YP(o,t.accounts)?t:{...t,accounts:o}};function aH({instance:t,children:e}){B.useEffect(()=>{t.initializeWrapperLibrary(E6.React,JP)},[t]);const r=B.useMemo(()=>t.getLogger().clone(rH,JP),[t]),[n,a]=B.useReducer(nH,void 0,()=>({inProgress:Ot.Startup,accounts:t.getAllAccounts()}));B.useEffect(()=>{const s=t.addEventCallback(i=>{a({payload:{instance:t,logger:r,message:i},type:Gd.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${s}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{a({payload:{instance:t,logger:r},type:Gd.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{s&&(r.verbose(`MsalProvider - Removing event callback ${s}`),t.removeEventCallback(s))}},[t,r]);const o={instance:t,inProgress:n.inProgress,accounts:n.accounts,logger:r};return Nr.createElement(rE.Provider,{value:o},e)}const oH={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string"},cc=function(t){if(t===null)return"null";const e=Object.prototype.toString.call(t);return typeof t=="object"?oH[e]||"object":typeof t},sH=function(t){return typeof t=="boolean"},iH=function(t){return aE(t)&&t.toString().indexOf("e")!==-1},lH=function(t){return cc(t)==="date"},cH=function(t){return t!=null},Js=function(t){return typeof t=="function"},nE=function(t){return typeof t=="string"},aE=function(t){return typeof t=="number"&&isFinite(t)||!isNaN(t-parseFloat(t))},uH=function(t){return cc(t)==="object"},dH=function(t){let e;for(e in t)return!1;return!0},ny=function(t){if(!t||cc(t)!=="object")return!1;const e=Object.getPrototypeOf(t);if(!e)return!0;const r=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&Object.toString.call(r)===Object.toString.call(Object)},pH=function(t){return!["object","array","function"].includes(cc(t))},oE=function(t){return t!=null&&t===t.window},hH=function(t){return!!t&&!!(t.jquery||t.dxRenderer)},fH=function(t){return!!t&&Js(t.then)},mH=function(t){return!!t&&Js(t.done)&&Js(t.fail)},yH=function(t){return!!(t&&t.preventDefault)},sQ={isBoolean:sH,isDate:lH,isDeferred:mH,isDefined:cH,isEmptyObject:dH,isEvent:yH,isExponential:iH,isFunction:Js,isNumeric:aE,isObject:uH,isPlainObject:ny,isPrimitive:pH,isPromise:fH,isRenderer:hH,isString:nE,isWindow:oE,type:cc},iQ=function(t,e,r){t=t||{};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const a=e[n];(!(n in t)||r)&&(t[n]=a)}return t},Hd=function(t){t=t||{};let e=1,r=!1;for(typeof t=="boolean"&&(r=t,t=arguments[1]||{},e++);e<arguments.length;e++){const n=arguments[e];if(n!=null)for(const a in n){const o=t[a],s=n[a];let i=!1,l;a==="__proto__"||a==="constructor"||t===s||(r&&s&&(ny(s)||(i=Array.isArray(s)))?(i?l=o&&Array.isArray(o)?o:[]:l=o&&ny(o)?o:{},t[a]=Hd(r,l,s)):s!==void 0&&(t[a]=s))}}return t},lQ=function(){const t=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(e){return String(e).replace(t[0],"&").replace(t[1],""").replace(t[2],"'").replace(t[3],"<").replace(t[4],">")}}(),vH=function(t){switch(typeof t){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}},cQ=function(t){const e=vH(t);let r=parseInt(e&&e[0],10),n=parseInt(e&&e[1],10),a=parseInt(e&&e[2],10),o=parseInt(e&&e[3],10);return isFinite(r)||(r=0),isFinite(n)||(n=r),isFinite(a)||(a=r),isFinite(o)||(o=n),{top:n,right:a,bottom:o,left:r}};function XP(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Js(t)?t(...r):(r.forEach((a,o)=>{nE(a)&&(a=a.replace(/\$/g,"$$$$"));const s=new RegExp(`\\{${o}\\}`,"gm");t=t.replace(s,a)}),t)}const uQ=function(){const t=/\s/g;return function(e){return!e||!e.replace(t,"")}}(),gH="24.2.3",dQ="24.2.3",CH=function(){},eu=function(t){return typeof console>"u"||!Js(console[t])?CH:console[t].bind(console)},xH={log:eu("log"),info:eu("info"),warn:eu("warn"),error:eu("error")},SH=function(){function t(e,r){if(!e)throw new Error(r)}return{assert:t,assertParam:function(e,r){t(e!=null,r)}}}(),PH={logger:xH,debug:SH},AH=`https://js.devexpress.com/error/${gH.split(".").slice(0,2).join("_")}/`;function OH(t,e){const r={ERROR_MESSAGES:Hd(e,t),Error:function(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return function(c){const u=c[0];c=c.slice(1);const d=n(u,c),p=o(u),h=a(u,d);return Hd(new Error(h),{__id:u,__details:d,url:p})}(i)},log(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];const c=i[0];let u="log";/^E\d+$/.test(c)?u="error":/^W\d+$/.test(c)&&(u="warn"),PH.logger[u](u==="log"?c:function(d){const p=d[0];return d=d.slice(1),a(p,n(p,d))}(i))}};function n(s,i){return i=[r.ERROR_MESSAGES[s]].concat(i),XP.apply(this,i).replace(/\.*\s*?$/,"")}function a(s,i){const l=s!=null&&s.startsWith("W")?"warning":"error";return XP.apply(this,[`{0} - {1}.
|
|
130
|
+
|
|
131
|
+
For additional information on this {2} message, see: {3}`,s,i,l,o(s)])}function o(s){return AH+s}return r}const fh=OH({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2',W0019:`DevExtreme: Unable to Locate a Valid License Key.
|
|
132
|
+
|
|
133
|
+
Detailed license/registration related information and instructions: https://js.devexpress.com/Documentation/Licensing/.
|
|
134
|
+
|
|
135
|
+
If you are using a 30-day trial version of DevExtreme, you must uninstall all copies of DevExtreme once your 30-day trial period expires. For terms and conditions that govern use of DevExtreme UI components/libraries, please refer to the DevExtreme End User License Agreement: https://js.devexpress.com/EULAs/DevExtremeComplete.
|
|
136
|
+
|
|
137
|
+
To use DevExtreme in a commercial project, you must purchase a license. For pricing/licensing options, please visit: https://js.devexpress.com/Buy.
|
|
138
|
+
|
|
139
|
+
If you have licensing-related questions or need help with a purchase, please email clientservices@devexpress.com.
|
|
140
|
+
|
|
141
|
+
`,W0020:`DevExtreme: License Key Has Expired.
|
|
142
|
+
|
|
143
|
+
Detailed license/registration related information and instructions: https://js.devexpress.com/Documentation/Licensing/.
|
|
144
|
+
|
|
145
|
+
A mismatch exists between the license key used and the DevExtreme version referenced in this project.
|
|
146
|
+
|
|
147
|
+
To proceed, you can:
|
|
148
|
+
• use a version of DevExtreme linked to your license key: https://www.devexpress.com/ClientCenter/DownloadManager
|
|
149
|
+
• renew your DevExpress Subscription: https://www.devexpress.com/buy/renew (once you renew your subscription, you will be entitled to product updates and support service as defined in the DevExtreme End User License Agreement)
|
|
150
|
+
|
|
151
|
+
If you have licensing-related questions or need help with a renewal, please email clientservices@devexpress.com.
|
|
152
|
+
|
|
153
|
+
`,W0021:`DevExtreme: License Key Verification Has Failed.
|
|
154
|
+
|
|
155
|
+
Detailed license/registration related information and instructions: https://js.devexpress.com/Documentation/Licensing/.
|
|
156
|
+
|
|
157
|
+
To verify your DevExtreme license, make certain to specify a correct key in the GlobalConfig. If you continue to encounter this error, please visit https://www.devexpress.com/ClientCenter/DownloadManager to obtain a valid license key.
|
|
158
|
+
|
|
159
|
+
If you have a valid license and this problem persists, please submit a support ticket via the DevExpress Support Center. We will be happy to follow-up: https://supportcenter.devexpress.com/ticket/create.
|
|
160
|
+
|
|
161
|
+
`,W0022:`DevExtreme: Pre-release software. Not suitable for commercial use.
|
|
162
|
+
|
|
163
|
+
Detailed license/registration related information and instructions: https://js.devexpress.com/Documentation/Licensing/.
|
|
164
|
+
|
|
165
|
+
Pre-release software may contain deficiencies and as such, should not be considered for use or integrated in any mission critical application.
|
|
166
|
+
|
|
167
|
+
`,W0023:`DevExtreme: the following 'devextreme' package version does not match versions of other DevExpress products used in this application:
|
|
168
|
+
|
|
169
|
+
{0}
|
|
170
|
+
|
|
171
|
+
Interoperability between different versions of the products listed herein cannot be guaranteed.
|
|
172
|
+
|
|
173
|
+
`}),ZP={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:t=>{t.trim().charAt(0)!=="{"&&(t=`{${t}}`);try{return JSON.parse(t)}catch(e){try{return JSON.parse(VH(t))}catch{throw fh.Error("E3018",e,t)}}}},VH=t=>t.replace(/'/g,'"').replace(/,\s*([\]}])/g,"$1").replace(/([{,])\s*([^":\s]+)\s*:/g,'$1"$2":'),IH=["decimalSeparator","thousandsSeparator"],sE=function(){if(!arguments.length)return ZP;const t=arguments.length<=0?void 0:arguments[0];IH.forEach(e=>{if(t[e]){const r=`Now, the ${e} is selected based on the specified locale.`;fh.log("W0003","config",e,"19.2",r)}}),Hd(ZP,t)};typeof DevExpress<"u"&&DevExpress.config&&sE(DevExpress.config);const wH=function(t,e,r){return function(){const n=this.callBase;this.callBase=t[e];try{return r.apply(this,arguments)}finally{this.callBase=n}}},bH=function(t){const e=function(){};return e.prototype=t.prototype,new e},TH=function(t){const e=this;let r,n,a;if(!t)return e;for(n in t)a=t[n],r=typeof e.prototype[n]=="function"&&typeof a=="function",e.prototype[n]=r?wH(e.parent.prototype,n,a):a;return e},EH=function(){const t=this;let e,r,n;const a=Object.prototype.hasOwnProperty.bind(t);!a("_includedCtors")&&!a("_includedPostCtors")&&(t._includedCtors=t._includedCtors.slice(0),t._includedPostCtors=t._includedPostCtors.slice(0));for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];for(n=0;n<i.length;n++){e=i[n],e.ctor&&t._includedCtors.push(e.ctor),e.postCtor&&t._includedPostCtors.push(e.postCtor);for(r in e)r==="ctor"||r==="postCtor"||r==="default"||(t.prototype[r]=e[r])}return t},RH=function(t){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){const n=Object.getPrototypeOf(this);return n===t||n.subclassOf(t)}return this.parent===t?!0:!this.parent||!this.parent.subclassOf?!1:this.parent.subclassOf(t)},iE=function(){throw fh.Error("E0001")},Yg=function(){};Yg.inherit=function(t){const e=function(){if(!this||oE(this)||typeof this.constructor!="function")throw fh.Error("E0003");const r=this,{ctor:n}=r,a=r.constructor._includedCtors,o=r.constructor._includedPostCtors;let s;for(s=0;s<a.length;s++)a[s].call(r);if(n){for(var i=arguments.length,l=new Array(i),c=0;c<i;c++)l[c]=arguments[c];n.apply(r,l)}for(s=0;s<o.length;s++)o[s].call(r)};return e.prototype=bH(this),Object.setPrototypeOf(e,this),e.inherit=this.inherit,e.abstract=iE,e.redefine=TH,e.include=EH,e.subclassOf=RH,e.parent=this,e._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],e._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],e.prototype.constructor=e,e.redefine(t),e};Yg.abstract=iE;const pQ=Yg.inherit({ctor:function(t){t&&(t=String(t)),this._value=this._normalize(t||this._generate())},_normalize:function(t){for(t=t.replace(/[^a-f0-9]/gi,"").toLowerCase();t.length<32;)t+="0";return[t.substr(0,8),t.substr(8,4),t.substr(12,4),t.substr(16,4),t.substr(20,12)].join("-")},_generate:function(){let t="";for(let e=0;e<32;e++)t+=Math.round(15*Math.random()).toString(16);return t},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}}),DH="ewogICJmb3JtYXQiOiAxLAogICJjdXN0b21lcklkIjogIjlkZWE2ZWUzLThjNzItNGNlOC1iM2VjLWYzZDEyODgxZmM0NCIsCiAgIm1heFZlcnNpb25BbGxvd2VkIjogMjUxCn0=.JWFwL37gyC5ymzCZrrdgWbXW3LEQ86aHSbtXis1mso7JukYfcaRuiZMYmsSv7kbyXvcO5APfIv2CCSikBJZCd0tA0WkVDT5NyDQSTo3wk8HxtFOGpvTbDnG/AZ8/yBVrQvLo0Q==";function kH(...t){return t.filter(e=>e!==null&&typeof e<"u").reduce((e,r)=>{if(typeof r!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===void 0?r:function(...a){e.apply(this,a),r.apply(this,a)}},void 0)}const lE=B.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),mh=B.createContext({}),Jg=B.createContext(null),yh=typeof document<"u",_H=yh?B.useLayoutEffect:B.useEffect,cE=B.createContext({strict:!1}),Xg=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),UH="framerAppearId",uE="data-"+Xg(UH);function BH(t,e,r,n){const{visualElement:a}=B.useContext(mh),o=B.useContext(cE),s=B.useContext(Jg),i=B.useContext(lE).reducedMotion,l=B.useRef();n=n||o.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:a,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:i}));const c=l.current;B.useInsertionEffect(()=>{c&&c.update(r,s)});const u=B.useRef(!!(r[uE]&&!window.HandoffComplete));return _H(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),B.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Cs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function MH(t,e,r){return B.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Cs(r)&&(r.current=n))},[e])}function Nl(t){return typeof t=="string"||Array.isArray(t)}function vh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Zg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],e1=["initial",...Zg];function gh(t){return vh(t.animate)||e1.some(e=>Nl(t[e]))}function dE(t){return!!(gh(t)||t.variants)}function FH(t,e){if(gh(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Nl(r)?r:void 0,animate:Nl(n)?n:void 0}}return t.inherit!==!1?e:{}}function LH(t){const{initial:e,animate:r}=FH(t,B.useContext(mh));return B.useMemo(()=>({initial:e,animate:r}),[eA(e),eA(r)])}function eA(t){return Array.isArray(t)?t.join(" "):t}const tA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Gl={};for(const t in tA)Gl[t]={isEnabled:e=>tA[t].some(r=>!!e[r])};function NH(t){for(const e in t)Gl[e]={...Gl[e],...t[e]}}const pE=B.createContext({}),hE=B.createContext({}),GH=Symbol.for("motionComponentSymbol");function HH({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:a}){t&&NH(t);function o(i,l){let c;const u={...B.useContext(lE),...i,layoutId:jH(i)},{isStatic:d}=u,p=LH(i),h=n(i,d);if(!d&&yh){p.visualElement=BH(a,h,u,e);const f=B.useContext(hE),y=B.useContext(cE).strict;p.visualElement&&(c=p.visualElement.loadFeatures(u,y,t,f))}return B.createElement(mh.Provider,{value:p},c&&p.visualElement?B.createElement(c,{visualElement:p.visualElement,...u}):null,r(a,i,MH(h,p.visualElement,l),h,d,p.visualElement))}const s=B.forwardRef(o);return s[GH]=a,s}function jH({layoutId:t}){const e=B.useContext(pE).id;return e&&t!==void 0?e+"-"+t:t}function $H(t){function e(n,a={}){return HH(t(n,a))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,a)=>(r.has(a)||r.set(a,e(a)),r.get(a))})}const zH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t1(t){return typeof t!="string"||t.includes("-")?!1:!!(zH.indexOf(t)>-1||/[A-Z]/.test(t))}const jd={};function qH(t){Object.assign(jd,t)}const uc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jo=new Set(uc);function fE(t,{layout:e,layoutId:r}){return jo.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!jd[t]||t==="opacity")}const hr=t=>!!(t&&t.getVelocity),QH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KH=uc.length;function WH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,a){let o="";for(let s=0;s<KH;s++){const i=uc[s];if(t[i]!==void 0){const l=QH[i]||i;o+=`${l}(${t[i]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),a?o=a(t,n?"":o):r&&n&&(o="none"),o}const mE=t=>e=>typeof e=="string"&&e.startsWith(t),yE=mE("--"),ay=mE("var(--"),YH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,JH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Xa=(t,e,r)=>Math.min(Math.max(r,t),e),$o={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},dl={...$o,transform:t=>Xa(0,1,t)},tu={...$o,default:1},pl=t=>Math.round(t*1e5)/1e5,Ch=/(-)?([\d]*\.?[\d])+/g,vE=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,XH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function dc(t){return typeof t=="string"}const pc=t=>({test:e=>dc(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ca=pc("deg"),bn=pc("%"),fe=pc("px"),ZH=pc("vh"),ej=pc("vw"),rA={...bn,parse:t=>bn.parse(t)/100,transform:t=>bn.transform(t*100)},nA={...$o,transform:Math.round},gE={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,size:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,rotate:Ca,rotateX:Ca,rotateY:Ca,rotateZ:Ca,scale:tu,scaleX:tu,scaleY:tu,scaleZ:tu,skew:Ca,skewX:Ca,skewY:Ca,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:dl,originX:rA,originY:rA,originZ:fe,zIndex:nA,fillOpacity:dl,strokeOpacity:dl,numOctaves:nA};function r1(t,e,r,n){const{style:a,vars:o,transform:s,transformOrigin:i}=t;let l=!1,c=!1,u=!0;for(const d in e){const p=e[d];if(yE(d)){o[d]=p;continue}const h=gE[d],f=JH(p,h);if(jo.has(d)){if(l=!0,s[d]=f,!u)continue;p!==(h.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,i[d]=f):a[d]=f}if(e.transform||(l||n?a.transform=WH(t.transform,r,u,n):a.transform&&(a.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:h=0}=i;a.transformOrigin=`${d} ${p} ${h}`}}const n1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function CE(t,e,r){for(const n in e)!hr(e[n])&&!fE(n,r)&&(t[n]=e[n])}function tj({transformTemplate:t},e,r){return B.useMemo(()=>{const n=n1();return r1(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function rj(t,e,r){const n=t.style||{},a={};return CE(a,n,t),Object.assign(a,tj(t,e,r)),t.transformValues?t.transformValues(a):a}function nj(t,e,r){const n={},a=rj(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=a,n}const aj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $d(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||aj.has(t)}let xE=t=>!$d(t);function oj(t){t&&(xE=e=>e.startsWith("on")?!$d(e):t(e))}try{oj(require("@emotion/is-prop-valid").default)}catch{}function sj(t,e,r){const n={};for(const a in t)a==="values"&&typeof t.values=="object"||(xE(a)||r===!0&&$d(a)||!e&&!$d(a)||t.draggable&&a.startsWith("onDrag"))&&(n[a]=t[a]);return n}function aA(t,e,r){return typeof t=="string"?t:fe.transform(e+r*t)}function ij(t,e,r){const n=aA(e,t.x,t.width),a=aA(r,t.y,t.height);return`${n} ${a}`}const lj={offset:"stroke-dashoffset",array:"stroke-dasharray"},cj={offset:"strokeDashoffset",array:"strokeDasharray"};function uj(t,e,r=1,n=0,a=!0){t.pathLength=1;const o=a?lj:cj;t[o.offset]=fe.transform(-n);const s=fe.transform(e),i=fe.transform(r);t[o.array]=`${s} ${i}`}function a1(t,{attrX:e,attrY:r,attrScale:n,originX:a,originY:o,pathLength:s,pathSpacing:i=1,pathOffset:l=0,...c},u,d,p){if(r1(t,c,u,p),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f,dimensions:y}=t;h.transform&&(y&&(f.transform=h.transform),delete h.transform),y&&(a!==void 0||o!==void 0||f.transform)&&(f.transformOrigin=ij(y,a!==void 0?a:.5,o!==void 0?o:.5)),e!==void 0&&(h.x=e),r!==void 0&&(h.y=r),n!==void 0&&(h.scale=n),s!==void 0&&uj(h,s,i,l,!1)}const SE=()=>({...n1(),attrs:{}}),o1=t=>typeof t=="string"&&t.toLowerCase()==="svg";function dj(t,e,r,n){const a=B.useMemo(()=>{const o=SE();return a1(o,e,{enableHardwareAcceleration:!1},o1(n),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};CE(o,t.style,t),a.style={...o,...a.style}}return a}function pj(t=!1){return(r,n,a,{latestValues:o},s)=>{const l=(t1(r)?dj:nj)(n,o,s,r),u={...sj(n,typeof r=="string",t),...l,ref:a},{children:d}=n,p=B.useMemo(()=>hr(d)?d.get():d,[d]);return B.createElement(r,{...u,children:p})}}function PE(t,{style:e,vars:r},n,a){Object.assign(t.style,e,a&&a.getProjectionStyles(n));for(const o in r)t.style.setProperty(o,r[o])}const AE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function OE(t,e,r,n){PE(t,e,void 0,n);for(const a in e.attrs)t.setAttribute(AE.has(a)?a:Xg(a),e.attrs[a])}function s1(t,e){const{style:r}=t,n={};for(const a in r)(hr(r[a])||e.style&&hr(e.style[a])||fE(a,t))&&(n[a]=r[a]);return n}function VE(t,e){const r=s1(t,e);for(const n in t)if(hr(t[n])||hr(e[n])){const a=uc.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[a]=t[n]}return r}function i1(t,e,r,n={},a={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,a)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,a)),e}function hj(t){const e=B.useRef(null);return e.current===null&&(e.current=t()),e.current}const zd=t=>Array.isArray(t),fj=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),mj=t=>zd(t)?t[t.length-1]||0:t;function Uu(t){const e=hr(t)?t.get():t;return fj(e)?e.toValue():e}function yj({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,a,o){const s={latestValues:vj(n,a,o,t),renderState:e()};return r&&(s.mount=i=>r(n,i,s)),s}const IE=t=>(e,r)=>{const n=B.useContext(mh),a=B.useContext(Jg),o=()=>yj(t,e,n,a);return r?o():hj(o)};function vj(t,e,r,n){const a={},o=n(t,{});for(const p in o)a[p]=Uu(o[p]);let{initial:s,animate:i}=t;const l=gh(t),c=dE(t);e&&c&&!l&&t.inherit!==!1&&(s===void 0&&(s=e.initial),i===void 0&&(i=e.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?i:s;return d&&typeof d!="boolean"&&!vh(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const f=i1(t,h);if(!f)return;const{transitionEnd:y,transition:v,...g}=f;for(const m in g){let C=g[m];if(Array.isArray(C)){const x=u?C.length-1:0;C=C[x]}C!==null&&(a[m]=C)}for(const m in y)a[m]=y[m]}),a}const ot=t=>t;class oA{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function gj(t){let e=new oA,r=new oA,n=0,a=!1,o=!1;const s=new WeakSet,i={schedule:(l,c=!1,u=!1)=>{const d=u&&a,p=d?e:r;return c&&s.add(l),p.add(l)&&d&&a&&(n=e.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(a){o=!0;return}if(a=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c<n;c++){const u=e.order[c];u(l),s.has(u)&&(i.schedule(u),t())}a=!1,o&&(o=!1,i.process(l))}};return i}const ru=["prepare","read","update","preRender","render","postRender"],Cj=40;function xj(t,e){let r=!1,n=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=ru.reduce((d,p)=>(d[p]=gj(()=>r=!0),d),{}),s=d=>o[d].process(a),i=()=>{const d=performance.now();r=!1,a.delta=n?1e3/60:Math.max(Math.min(d-a.timestamp,Cj),1),a.timestamp=d,a.isProcessing=!0,ru.forEach(s),a.isProcessing=!1,r&&e&&(n=!1,t(i))},l=()=>{r=!0,n=!0,a.isProcessing||t(i)};return{schedule:ru.reduce((d,p)=>{const h=o[p];return d[p]=(f,y=!1,v=!1)=>(r||l(),h.schedule(f,y,v)),d},{}),cancel:d=>ru.forEach(p=>o[p].cancel(d)),state:a,steps:o}}const{schedule:Ke,cancel:ca,state:zt,steps:sf}=xj(typeof requestAnimationFrame<"u"?requestAnimationFrame:ot,!0),Sj={useVisualState:IE({scrapeMotionValuesFromProps:VE,createRenderState:SE,onMount:(t,e,{renderState:r,latestValues:n})=>{Ke.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ke.render(()=>{a1(r,n,{enableHardwareAcceleration:!1},o1(e.tagName),t.transformTemplate),OE(e,r)})}})},Pj={useVisualState:IE({scrapeMotionValuesFromProps:s1,createRenderState:n1})};function Aj(t,{forwardMotionProps:e=!1},r,n){return{...t1(t)?Sj:Pj,preloadedFeatures:r,useRender:pj(e),createVisualElement:n,Component:t}}function Jn(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const wE=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function xh(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Oj=t=>e=>wE(e)&&t(e,xh(e));function ta(t,e,r,n){return Jn(t,e,Oj(r),n)}const Vj=(t,e)=>r=>e(t(r)),ja=(...t)=>t.reduce(Vj);function bE(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const sA=bE("dragHorizontal"),iA=bE("dragVertical");function TE(t){let e=!1;if(t==="y")e=iA();else if(t==="x")e=sA();else{const r=sA(),n=iA();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function EE(){const t=TE(!0);return t?(t(),!1):!0}class oo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function lA(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),a=(o,s)=>{if(o.pointerType==="touch"||EE())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",e),i[n]&&Ke.update(()=>i[n](o,s))};return ta(t.current,r,a,{passive:!t.getProps()[n]})}class Ij extends oo{mount(){this.unmount=ja(lA(this.node,!0),lA(this.node,!1))}unmount(){}}class wj extends oo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ja(Jn(this.node.current,"focus",()=>this.onFocus()),Jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const RE=(t,e)=>e?t===e?!0:RE(t,e.parentElement):!1;function lf(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,xh(r))}class bj extends oo{constructor(){super(...arguments),this.removeStartListeners=ot,this.removeEndListeners=ot,this.removeAccessibleListeners=ot,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=ta(window,"pointerup",(i,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps();Ke.update(()=>{!d&&!RE(this.node.current,i.target)?u&&u(i,l):c&&c(i,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=ta(window,"pointercancel",(i,l)=>this.cancelPress(i,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ja(o,s),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=i=>{i.key!=="Enter"||!this.checkPressEnd()||lf("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&Ke.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Jn(this.node.current,"keyup",s),lf("down",(i,l)=>{this.startPress(i,l)})},r=Jn(this.node.current,"keydown",e),n=()=>{this.isPressing&&lf("cancel",(o,s)=>this.cancelPress(o,s))},a=Jn(this.node.current,"blur",n);this.removeAccessibleListeners=ja(r,a)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:a}=this.node.getProps();a&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ke.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!EE()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ke.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=ta(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Jn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ja(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const oy=new WeakMap,cf=new WeakMap,Tj=t=>{const e=oy.get(t.target);e&&e(t)},Ej=t=>{t.forEach(Tj)};function Rj({root:t,...e}){const r=t||document;cf.has(r)||cf.set(r,{});const n=cf.get(r),a=JSON.stringify(e);return n[a]||(n[a]=new IntersectionObserver(Ej,{root:t,...e})),n[a]}function Dj(t,e,r){const n=Rj(e);return oy.set(t,r),n.observe(t),()=>{oy.delete(t),n.unobserve(t)}}const kj={some:0,all:1};class _j extends oo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:o}=e,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:kj[a]},i=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return Dj(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(Uj(e,r))&&this.startObserver()}unmount(){}}function Uj({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const Bj={inView:{Feature:_j},tap:{Feature:bj},focus:{Feature:wj},hover:{Feature:Ij}};function DE(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Mj(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function Fj(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function Sh(t,e,r){const n=t.getProps();return i1(n,e,r!==void 0?r:n.custom,Mj(t),Fj(t))}let Lj=ot,l1=ot;const $a=t=>t*1e3,ra=t=>t/1e3,Nj={current:!1},kE=t=>Array.isArray(t)&&typeof t[0]=="number";function _E(t){return!!(!t||typeof t=="string"&&UE[t]||kE(t)||Array.isArray(t)&&t.every(_E))}const Qi=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,UE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qi([0,.65,.55,1]),circOut:Qi([.55,0,1,.45]),backIn:Qi([.31,.01,.66,-.59]),backOut:Qi([.33,1.53,.69,.99])};function BE(t){if(t)return kE(t)?Qi(t):Array.isArray(t)?t.map(BE):UE[t]}function Gj(t,e,r,{delay:n=0,duration:a,repeat:o=0,repeatType:s="loop",ease:i,times:l}={}){const c={[e]:r};l&&(c.offset=l);const u=BE(i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:n,duration:a,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Hj(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const ME=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,jj=1e-7,$j=12;function zj(t,e,r,n,a){let o,s,i=0;do s=e+(r-e)/2,o=ME(s,n,a)-t,o>0?r=s:e=s;while(Math.abs(o)>jj&&++i<$j);return s}function hc(t,e,r,n){if(t===e&&r===n)return ot;const a=o=>zj(o,0,1,t,r);return o=>o===0||o===1?o:ME(a(o),e,n)}const qj=hc(.42,0,1,1),Qj=hc(0,0,.58,1),FE=hc(.42,0,.58,1),Kj=t=>Array.isArray(t)&&typeof t[0]!="number",LE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,NE=t=>e=>1-t(1-e),c1=t=>1-Math.sin(Math.acos(t)),GE=NE(c1),Wj=LE(c1),HE=hc(.33,1.53,.69,.99),u1=NE(HE),Yj=LE(u1),Jj=t=>(t*=2)<1?.5*u1(t):.5*(2-Math.pow(2,-10*(t-1))),Xj={linear:ot,easeIn:qj,easeInOut:FE,easeOut:Qj,circIn:c1,circInOut:Wj,circOut:GE,backIn:u1,backInOut:Yj,backOut:HE,anticipate:Jj},cA=t=>{if(Array.isArray(t)){l1(t.length===4);const[e,r,n,a]=t;return hc(e,r,n,a)}else if(typeof t=="string")return Xj[t];return t},d1=(t,e)=>r=>!!(dc(r)&&XH.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),jE=(t,e,r)=>n=>{if(!dc(n))return n;const[a,o,s,i]=n.match(Ch);return{[t]:parseFloat(a),[e]:parseFloat(o),[r]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}},Zj=t=>Xa(0,255,t),uf={...$o,transform:t=>Math.round(Zj(t))},Po={test:d1("rgb","red"),parse:jE("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+uf.transform(t)+", "+uf.transform(e)+", "+uf.transform(r)+", "+pl(dl.transform(n))+")"};function e7(t){let e="",r="",n="",a="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),a=t.substring(4,5),e+=e,r+=r,n+=n,a+=a),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}const sy={test:d1("#"),parse:e7,transform:Po.transform},xs={test:d1("hsl","hue"),parse:jE("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+bn.transform(pl(e))+", "+bn.transform(pl(r))+", "+pl(dl.transform(n))+")"},Zt={test:t=>Po.test(t)||sy.test(t)||xs.test(t),parse:t=>Po.test(t)?Po.parse(t):xs.test(t)?xs.parse(t):sy.parse(t),transform:t=>dc(t)?t:t.hasOwnProperty("red")?Po.transform(t):xs.transform(t)},tt=(t,e,r)=>-r*t+r*e+t;function df(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function t7({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let a=0,o=0,s=0;if(!e)a=o=s=r;else{const i=r<.5?r*(1+e):r+e-r*e,l=2*r-i;a=df(l,i,t+1/3),o=df(l,i,t),s=df(l,i,t-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:n}}const pf=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},r7=[sy,Po,xs],n7=t=>r7.find(e=>e.test(t));function uA(t){const e=n7(t);let r=e.parse(t);return e===xs&&(r=t7(r)),r}const $E=(t,e)=>{const r=uA(t),n=uA(e),a={...r};return o=>(a.red=pf(r.red,n.red,o),a.green=pf(r.green,n.green,o),a.blue=pf(r.blue,n.blue,o),a.alpha=tt(r.alpha,n.alpha,o),Po.transform(a))};function a7(t){var e,r;return isNaN(t)&&dc(t)&&(((e=t.match(Ch))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(vE))===null||r===void 0?void 0:r.length)||0)>0}const zE={regex:YH,countKey:"Vars",token:"${v}",parse:ot},qE={regex:vE,countKey:"Colors",token:"${c}",parse:Zt.parse},QE={regex:Ch,countKey:"Numbers",token:"${n}",parse:$o.parse};function hf(t,{regex:e,countKey:r,token:n,parse:a}){const o=t.tokenised.match(e);o&&(t["num"+r]=o.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...o.map(a)))}function qd(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&hf(r,zE),hf(r,qE),hf(r,QE),r}function KE(t){return qd(t).values}function WE(t){const{values:e,numColors:r,numVars:n,tokenised:a}=qd(t),o=e.length;return s=>{let i=a;for(let l=0;l<o;l++)l<n?i=i.replace(zE.token,s[l]):l<n+r?i=i.replace(qE.token,Zt.transform(s[l])):i=i.replace(QE.token,pl(s[l]));return i}}const o7=t=>typeof t=="number"?0:t;function s7(t){const e=KE(t);return WE(t)(e.map(o7))}const Za={test:a7,parse:KE,createTransformer:WE,getAnimatableNone:s7},YE=(t,e)=>r=>`${r>0?e:t}`;function JE(t,e){return typeof t=="number"?r=>tt(t,e,r):Zt.test(t)?$E(t,e):t.startsWith("var(")?YE(t,e):ZE(t,e)}const XE=(t,e)=>{const r=[...t],n=r.length,a=t.map((o,s)=>JE(o,e[s]));return o=>{for(let s=0;s<n;s++)r[s]=a[s](o);return r}},i7=(t,e)=>{const r={...t,...e},n={};for(const a in r)t[a]!==void 0&&e[a]!==void 0&&(n[a]=JE(t[a],e[a]));return a=>{for(const o in n)r[o]=n[o](a);return r}},ZE=(t,e)=>{const r=Za.createTransformer(e),n=qd(t),a=qd(e);return n.numVars===a.numVars&&n.numColors===a.numColors&&n.numNumbers>=a.numNumbers?ja(XE(n.values,a.values),r):YE(t,e)},Hl=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},dA=(t,e)=>r=>tt(t,e,r);function l7(t){return typeof t=="number"?dA:typeof t=="string"?Zt.test(t)?$E:ZE:Array.isArray(t)?XE:typeof t=="object"?i7:dA}function c7(t,e,r){const n=[],a=r||l7(t[0]),o=t.length-1;for(let s=0;s<o;s++){let i=a(t[s],t[s+1]);if(e){const l=Array.isArray(e)?e[s]||ot:e;i=ja(l,i)}n.push(i)}return n}function eR(t,e,{clamp:r=!0,ease:n,mixer:a}={}){const o=t.length;if(l1(o===e.length),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=c7(e,n,a),i=s.length,l=c=>{let u=0;if(i>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const d=Hl(t[u],t[u+1],c);return s[u](d)};return r?c=>l(Xa(t[0],t[o-1],c)):l}function u7(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const a=Hl(0,e,n);t.push(tt(r,1,a))}}function d7(t){const e=[0];return u7(e,t.length-1),e}function p7(t,e){return t.map(r=>r*e)}function h7(t,e){return t.map(()=>e||FE).splice(0,t.length-1)}function Qd({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const a=Kj(n)?n.map(cA):cA(n),o={done:!1,value:e[0]},s=p7(r&&r.length===e.length?r:d7(e),t),i=eR(s,e,{ease:Array.isArray(a)?a:h7(e,a)});return{calculatedDuration:t,next:l=>(o.value=i(l),o.done=l>=t,o)}}function tR(t,e){return e?t*(1e3/e):0}const f7=5;function rR(t,e,r){const n=Math.max(e-f7,0);return tR(r-t(n),e-n)}const ff=.001,m7=.01,pA=10,y7=.05,v7=1;function g7({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let a,o;Lj(t<=$a(pA));let s=1-e;s=Xa(y7,v7,s),t=Xa(m7,pA,ra(t)),s<1?(a=c=>{const u=c*s,d=u*t,p=u-r,h=iy(c,s),f=Math.exp(-d);return ff-p/h*f},o=c=>{const d=c*s*t,p=d*r+r,h=Math.pow(s,2)*Math.pow(c,2)*t,f=Math.exp(-d),y=iy(Math.pow(c,2),s);return(-a(c)+ff>0?-1:1)*((p-h)*f)/y}):(a=c=>{const u=Math.exp(-c*t),d=(c-r)*t+1;return-ff+u*d},o=c=>{const u=Math.exp(-c*t),d=(r-c)*(t*t);return u*d});const i=5/t,l=x7(a,o,i);if(t=$a(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:t}}}const C7=12;function x7(t,e,r){let n=r;for(let a=1;a<C7;a++)n=n-t(n)/e(n);return n}function iy(t,e){return t*Math.sqrt(1-e*e)}const S7=["duration","bounce"],P7=["stiffness","damping","mass"];function hA(t,e){return e.some(r=>t[r]!==void 0)}function A7(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!hA(t,P7)&&hA(t,S7)){const r=g7(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function nR({keyframes:t,restDelta:e,restSpeed:r,...n}){const a=t[0],o=t[t.length-1],s={done:!1,value:a},{stiffness:i,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:p}=A7({...n,velocity:-ra(n.velocity||0)}),h=d||0,f=l/(2*Math.sqrt(i*c)),y=o-a,v=ra(Math.sqrt(i/c)),g=Math.abs(y)<5;r||(r=g?.01:2),e||(e=g?.005:.5);let m;if(f<1){const C=iy(v,f);m=x=>{const S=Math.exp(-f*v*x);return o-S*((h+f*v*y)/C*Math.sin(C*x)+y*Math.cos(C*x))}}else if(f===1)m=C=>o-Math.exp(-v*C)*(y+(h+v*y)*C);else{const C=v*Math.sqrt(f*f-1);m=x=>{const S=Math.exp(-f*v*x),P=Math.min(C*x,300);return o-S*((h+f*v*y)*Math.sinh(P)+C*y*Math.cosh(P))/C}}return{calculatedDuration:p&&u||null,next:C=>{const x=m(C);if(p)s.done=C>=u;else{let S=h;C!==0&&(f<1?S=rR(m,C,x):S=0);const P=Math.abs(S)<=r,A=Math.abs(o-x)<=e;s.done=P&&A}return s.value=s.done?o:x,s}}}function fA({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:i,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],p={done:!1,value:d},h=V=>i!==void 0&&V<i||l!==void 0&&V>l,f=V=>i===void 0?l:l===void 0||Math.abs(i-V)<Math.abs(l-V)?i:l;let y=r*e;const v=d+y,g=s===void 0?v:s(v);g!==v&&(y=g-d);const m=V=>-y*Math.exp(-V/n),C=V=>g+m(V),x=V=>{const U=m(V),O=C(V);p.done=Math.abs(U)<=c,p.value=p.done?g:O};let S,P;const A=V=>{h(p.value)&&(S=V,P=nR({keyframes:[p.value,f(p.value)],velocity:rR(C,V,p.value),damping:a,stiffness:o,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:V=>{let U=!1;return!P&&S===void 0&&(U=!0,x(V),A(V)),S!==void 0&&V>S?P.next(V-S):(!U&&x(V),p)}}}const O7=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ke.update(e,!0),stop:()=>ca(e),now:()=>zt.isProcessing?zt.timestamp:performance.now()}},mA=2e4;function yA(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e<mA;)e+=r,n=t.next(e);return e>=mA?1/0:e}const V7={decay:fA,inertia:fA,tween:Qd,keyframes:Qd,spring:nR};function Kd({autoplay:t=!0,delay:e=0,driver:r=O7,keyframes:n,type:a="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let h=1,f=!1,y,v;const g=()=>{v=new Promise(M=>{y=M})};g();let m;const C=V7[a]||Qd;let x;C!==Qd&&typeof n[0]!="number"&&(x=eR([0,100],n,{clamp:!1}),n=[0,100]);const S=C({...p,keyframes:n});let P;i==="mirror"&&(P=C({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let A="idle",V=null,U=null,O=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=yA(S));const{calculatedDuration:I}=S;let L=1/0,N=1/0;I!==null&&(L=I+s,N=L*(o+1)-s);let G=0;const H=M=>{if(U===null)return;h>0&&(U=Math.min(U,M)),h<0&&(U=Math.min(M-N/h,U)),V!==null?G=V:G=Math.round(M-U)*h;const z=G-e*(h>=0?1:-1),W=h>=0?z<0:z>N;G=Math.max(z,0),A==="finished"&&V===null&&(G=N);let q=G,ae=S;if(o){const He=Math.min(G,N)/L;let Se=Math.floor(He),Ae=He%1;!Ae&&He>=1&&(Ae=1),Ae===1&&Se--,Se=Math.min(Se,o+1),!!(Se%2)&&(i==="reverse"?(Ae=1-Ae,s&&(Ae-=s/L)):i==="mirror"&&(ae=P)),q=Xa(0,1,Ae)*L}const oe=W?{done:!1,value:n[0]}:ae.next(q);x&&(oe.value=x(oe.value));let{done:pe}=oe;!W&&I!==null&&(pe=h>=0?G>=N:G<=0);const ue=V===null&&(A==="finished"||A==="running"&&pe);return d&&d(oe.value),ue&&F(),oe},$=()=>{m&&m.stop(),m=void 0},X=()=>{A="idle",$(),y(),g(),U=O=null},F=()=>{A="finished",u&&u(),$(),y()},Y=()=>{if(f)return;m||(m=r(H));const M=m.now();l&&l(),V!==null?U=M-V:(!U||A==="finished")&&(U=M),A==="finished"&&g(),O=U,V=null,A="running",m.start()};t&&Y();const Q={then(M,z){return v.then(M,z)},get time(){return ra(G)},set time(M){M=$a(M),G=M,V!==null||!m||h===0?V=M:U=m.now()-M/h},get duration(){const M=S.calculatedDuration===null?yA(S):S.calculatedDuration;return ra(M)},get speed(){return h},set speed(M){M===h||!m||(h=M,Q.time=ra(G))},get state(){return A},play:Y,pause:()=>{A="paused",V=G},stop:()=>{f=!0,A!=="idle"&&(A="idle",c&&c(),X())},cancel:()=>{O!==null&&H(O),X()},complete:()=>{A="finished"},sample:M=>(U=0,H(M))};return Q}function I7(t){let e;return()=>(e===void 0&&(e=t()),e)}const w7=I7(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),b7=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),nu=10,T7=2e4,E7=(t,e)=>e.type==="spring"||t==="backgroundColor"||!_E(e.ease);function R7(t,e,{onUpdate:r,onComplete:n,...a}){if(!(w7()&&b7.has(e)&&!a.repeatDelay&&a.repeatType!=="mirror"&&a.damping!==0&&a.type!=="inertia"))return!1;let s=!1,i,l,c=!1;const u=()=>{l=new Promise(C=>{i=C})};u();let{keyframes:d,duration:p=300,ease:h,times:f}=a;if(E7(e,a)){const C=Kd({...a,repeat:0,delay:0});let x={done:!1,value:d[0]};const S=[];let P=0;for(;!x.done&&P<T7;)x=C.sample(P),S.push(x.value),P+=nu;f=void 0,d=S,p=P-nu,h="linear"}const y=Gj(t.owner.current,e,d,{...a,duration:p,ease:h,times:f}),v=()=>{c=!1,y.cancel()},g=()=>{c=!0,Ke.update(v),i(),u()};return y.onfinish=()=>{c||(t.set(Hj(d,a)),n&&n(),g())},{then(C,x){return l.then(C,x)},attachTimeline(C){return y.timeline=C,y.onfinish=null,ot},get time(){return ra(y.currentTime||0)},set time(C){y.currentTime=$a(C)},get speed(){return y.playbackRate},set speed(C){y.playbackRate=C},get duration(){return ra(p)},play:()=>{s||(y.play(),ca(v))},pause:()=>y.pause(),stop:()=>{if(s=!0,y.playState==="idle")return;const{currentTime:C}=y;if(C){const x=Kd({...a,autoplay:!1});t.setWithVelocity(x.sample(C-nu).value,x.sample(C).value,nu)}g()},complete:()=>{c||y.finish()},cancel:g}}function D7({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const a=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:ot,pause:ot,stop:ot,then:o=>(o(),Promise.resolve()),cancel:ot,complete:ot});return e?Kd({keyframes:[0,1],duration:0,delay:e,onComplete:a}):a()}const k7={type:"spring",stiffness:500,damping:25,restSpeed:10},_7=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),U7={type:"keyframes",duration:.8},B7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},M7=(t,{keyframes:e})=>e.length>2?U7:jo.has(t)?t.startsWith("scale")?_7(e[1]):k7:B7,ly=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Za.test(e)||e==="0")&&!e.startsWith("url(")),F7=new Set(["brightness","contrast","saturate","opacity"]);function L7(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Ch)||[];if(!n)return t;const a=r.replace(n,"");let o=F7.has(e)?1:0;return n!==r&&(o*=100),e+"("+o+a+")"}const N7=/([a-z-]*)\(.*?\)/g,cy={...Za,getAnimatableNone:t=>{const e=t.match(N7);return e?e.map(L7).join(" "):t}},G7={...gE,color:Zt,backgroundColor:Zt,outlineColor:Zt,fill:Zt,stroke:Zt,borderColor:Zt,borderTopColor:Zt,borderRightColor:Zt,borderBottomColor:Zt,borderLeftColor:Zt,filter:cy,WebkitFilter:cy},p1=t=>G7[t];function aR(t,e){let r=p1(t);return r!==cy&&(r=Za),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const oR=t=>/^0[^.\s]+$/.test(t);function H7(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||oR(t)}function j7(t,e,r,n){const a=ly(e,r);let o;Array.isArray(r)?o=[...r]:o=[null,r];const s=n.from!==void 0?n.from:t.get();let i;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),H7(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(i=o[c]);if(a&&l.length&&i)for(let c=0;c<l.length;c++){const u=l[c];o[u]=aR(e,i)}return o}function $7({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:i,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function h1(t,e){return t[e]||t.default||t}const z7={skipAnimations:!1},f1=(t,e,r,n={})=>a=>{const o=h1(n,t)||{},s=o.delay||n.delay||0;let{elapsed:i=0}=n;i=i-$a(s);const l=j7(e,t,r,o),c=l[0],u=l[l.length-1],d=ly(t,c),p=ly(t,u);let h={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-i,onUpdate:f=>{e.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{a(),o.onComplete&&o.onComplete()}};if($7(o)||(h={...h,...M7(t,h)}),h.duration&&(h.duration=$a(h.duration)),h.repeatDelay&&(h.repeatDelay=$a(h.repeatDelay)),!d||!p||Nj.current||o.type===!1||z7.skipAnimations)return D7(h);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const f=R7(e,t,h);if(f)return f}return Kd(h)};function Wd(t){return!!(hr(t)&&t.add)}const sR=t=>/^\-?\d*\.?\d+$/.test(t);function m1(t,e){t.indexOf(e)===-1&&t.push(e)}function y1(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class v1{constructor(){this.subscriptions=[]}add(e){return m1(this.subscriptions,e),()=>y1(this.subscriptions,e)}notify(e,r,n){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,r,n);else for(let o=0;o<a;o++){const s=this.subscriptions[o];s&&s(e,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const q7=t=>!isNaN(parseFloat(t));class Q7{constructor(e,r={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,a=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:s}=zt;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Ke.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ke.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=q7(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new v1);const n=this.events[e].add(r);return e==="change"?()=>{n(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?tR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xs(t,e){return new Q7(t,e)}const iR=t=>e=>e.test(t),K7={test:t=>t==="auto",parse:t=>t},lR=[$o,fe,bn,Ca,ej,ZH,K7],Ui=t=>lR.find(iR(t)),W7=[...lR,Zt,Za],Y7=t=>W7.find(iR(t));function J7(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Xs(r))}function X7(t,e){const r=Sh(t,e);let{transitionEnd:n={},transition:a={},...o}=r?t.makeTargetAnimatable(r,!1):{};o={...o,...n};for(const s in o){const i=mj(o[s]);J7(t,s,i)}}function Z7(t,e,r){var n,a;const o=Object.keys(e).filter(i=>!t.hasValue(i)),s=o.length;if(s)for(let i=0;i<s;i++){const l=o[i],c=e[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(a=(n=r[l])!==null&&n!==void 0?n:t.readValue(l))!==null&&a!==void 0?a:e[l]),u!=null&&(typeof u=="string"&&(sR(u)||oR(u))?u=parseFloat(u):!Y7(u)&&Za.test(c)&&(u=aR(l,c)),t.addValue(l,Xs(u,{owner:t})),r[l]===void 0&&(r[l]=u),u!==null&&t.setBaseTarget(l,u))}}function e9(t,e){return e?(e[t]||e.default||e).from:void 0}function t9(t,e,r){const n={};for(const a in t){const o=e9(a,e);if(o!==void 0)n[a]=o;else{const s=r.getValue(a);s&&(n[a]=s.get())}}return n}function r9({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}function n9(t,e){const r=t.get();if(Array.isArray(e)){for(let n=0;n<e.length;n++)if(e[n]!==r)return!0}else return r!==e}function cR(t,e,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...i}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");n&&(o=n);const c=[],u=a&&t.animationState&&t.animationState.getState()[a];for(const d in i){const p=t.getValue(d),h=i[d];if(!p||h===void 0||u&&r9(u,d))continue;const f={delay:r,elapsed:0,...h1(o||{},d)};if(window.HandoffAppearAnimations){const g=t.getProps()[uE];if(g){const m=window.HandoffAppearAnimations(g,d,p,Ke);m!==null&&(f.elapsed=m,f.isHandoff=!0)}}let y=!f.isHandoff&&!n9(p,h);if(f.type==="spring"&&(p.getVelocity()||f.velocity)&&(y=!1),p.animation&&(y=!1),y)continue;p.start(f1(d,p,h,t.shouldReduceMotion&&jo.has(d)?{type:!1}:f));const v=p.animation;Wd(l)&&(l.add(d),v.then(()=>l.remove(d))),c.push(v)}return s&&Promise.all(c).then(()=>{s&&X7(t,s)}),c}function uy(t,e,r={}){const n=Sh(t,e,r.custom);let{transition:a=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);const o=n?()=>Promise.all(cR(t,n,r)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=a;return a9(t,e,c+l,u,d,r)}:()=>Promise.resolve(),{when:i}=a;if(i){const[l,c]=i==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(r.delay)])}function a9(t,e,r=0,n=0,a=1,o){const s=[],i=(t.variantChildren.size-1)*n,l=a===1?(c=0)=>c*n:(c=0)=>i-c*n;return Array.from(t.variantChildren).sort(o9).forEach((c,u)=>{c.notify("AnimationStart",e),s.push(uy(c,e,{...o,delay:r+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(s)}function o9(t,e){return t.sortNodePosition(e)}function s9(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const a=e.map(o=>uy(t,o,r));n=Promise.all(a)}else if(typeof e=="string")n=uy(t,e,r);else{const a=typeof e=="function"?Sh(t,e,r.custom):e;n=Promise.all(cR(t,a,r))}return n.then(()=>t.notify("AnimationComplete",e))}const i9=[...Zg].reverse(),l9=Zg.length;function c9(t){return e=>Promise.all(e.map(({animation:r,options:n})=>s9(t,r,n)))}function u9(t){let e=c9(t);const r=p9();let n=!0;const a=(l,c)=>{const u=Sh(t,c);if(u){const{transition:d,transitionEnd:p,...h}=u;l={...l,...h,...p}}return l};function o(l){e=l(t)}function s(l,c){const u=t.getProps(),d=t.getVariantContext(!0)||{},p=[],h=new Set;let f={},y=1/0;for(let g=0;g<l9;g++){const m=i9[g],C=r[m],x=u[m]!==void 0?u[m]:d[m],S=Nl(x),P=m===c?C.isActive:null;P===!1&&(y=g);let A=x===d[m]&&x!==u[m]&&S;if(A&&n&&t.manuallyAnimateOnMount&&(A=!1),C.protectedKeys={...f},!C.isActive&&P===null||!x&&!C.prevProp||vh(x)||typeof x=="boolean")continue;let U=d9(C.prevProp,x)||m===c&&C.isActive&&!A&&S||g>y&&S,O=!1;const I=Array.isArray(x)?x:[x];let L=I.reduce(a,{});P===!1&&(L={});const{prevResolvedValues:N={}}=C,G={...N,...L},H=$=>{U=!0,h.has($)&&(O=!0,h.delete($)),C.needsAnimating[$]=!0};for(const $ in G){const X=L[$],F=N[$];if(f.hasOwnProperty($))continue;let Y=!1;zd(X)&&zd(F)?Y=!DE(X,F):Y=X!==F,Y?X!==void 0?H($):h.add($):X!==void 0&&h.has($)?H($):C.protectedKeys[$]=!0}C.prevProp=x,C.prevResolvedValues=L,C.isActive&&(f={...f,...L}),n&&t.blockInitialAnimation&&(U=!1),U&&(!A||O)&&p.push(...I.map($=>({animation:$,options:{type:m,...l}})))}if(h.size){const g={};h.forEach(m=>{const C=t.getBaseTarget(m);C!==void 0&&(g[m]=C)}),p.push({animation:g})}let v=!!p.length;return n&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,v?e(p):Promise.resolve()}function i(l,c,u){var d;if(r[l].isActive===c)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(h=>{var f;return(f=h.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),r[l].isActive=c;const p=s(u,l);for(const h in r)r[h].protectedKeys={};return p}return{animateChanges:s,setActive:i,setAnimateFunction:o,getState:()=>r}}function d9(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!DE(e,t):!1}function lo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p9(){return{animate:lo(!0),whileInView:lo(),whileHover:lo(),whileTap:lo(),whileDrag:lo(),whileFocus:lo(),exit:lo()}}class h9 extends oo{constructor(e){super(e),e.animationState||(e.animationState=u9(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),vh(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let f9=0;class m9 extends oo{constructor(){super(...arguments),this.id=f9++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===a)return;const o=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&o.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const y9={animation:{Feature:h9},exit:{Feature:m9}},vA=(t,e)=>Math.abs(t-e);function v9(t,e){const r=vA(t.x,e.x),n=vA(t.y,e.y);return Math.sqrt(r**2+n**2)}class uR{constructor(e,r,{transformPagePoint:n,contextWindow:a,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=yf(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=v9(d.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:f}=d,{timestamp:y}=zt;this.history.push({...f,timestamp:y});const{onStart:v,onMove:g}=this.handlers;p||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=mf(p,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:h,onSessionEnd:f,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=yf(d.type==="pointercancel"?this.lastMoveEventInfo:mf(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,v),f&&f(d,v)},!wE(e))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.contextWindow=a||window;const s=xh(e),i=mf(s,this.transformPagePoint),{point:l}=i,{timestamp:c}=zt;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=r;u&&u(e,yf(i,this.history)),this.removeListeners=ja(ta(this.contextWindow,"pointermove",this.handlePointerMove),ta(this.contextWindow,"pointerup",this.handlePointerUp),ta(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ca(this.updatePoint)}}function mf(t,e){return e?{point:e(t.point)}:t}function gA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function yf({point:t},e){return{point:t,delta:gA(t,dR(e)),offset:gA(t,g9(e)),velocity:C9(e,.1)}}function g9(t){return t[0]}function dR(t){return t[t.length-1]}function C9(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const a=dR(t);for(;r>=0&&(n=t[r],!(a.timestamp-n.timestamp>$a(e)));)r--;if(!n)return{x:0,y:0};const o=ra(a.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const s={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Ir(t){return t.max-t.min}function dy(t,e=0,r=.01){return Math.abs(t-e)<=r}function CA(t,e,r,n=.5){t.origin=n,t.originPoint=tt(e.min,e.max,t.origin),t.scale=Ir(r)/Ir(e),(dy(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=tt(r.min,r.max,t.origin)-t.originPoint,(dy(t.translate)||isNaN(t.translate))&&(t.translate=0)}function hl(t,e,r,n){CA(t.x,e.x,r.x,n?n.originX:void 0),CA(t.y,e.y,r.y,n?n.originY:void 0)}function xA(t,e,r){t.min=r.min+e.min,t.max=t.min+Ir(e)}function x9(t,e,r){xA(t.x,e.x,r.x),xA(t.y,e.y,r.y)}function SA(t,e,r){t.min=e.min-r.min,t.max=t.min+Ir(e)}function fl(t,e,r){SA(t.x,e.x,r.x),SA(t.y,e.y,r.y)}function S9(t,{min:e,max:r},n){return e!==void 0&&t<e?t=n?tt(e,t,n.min):Math.max(t,e):r!==void 0&&t>r&&(t=n?tt(r,t,n.max):Math.min(t,r)),t}function PA(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function P9(t,{top:e,left:r,bottom:n,right:a}){return{x:PA(t.x,r,a),y:PA(t.y,e,n)}}function AA(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function A9(t,e){return{x:AA(t.x,e.x),y:AA(t.y,e.y)}}function O9(t,e){let r=.5;const n=Ir(t),a=Ir(e);return a>n?r=Hl(e.min,e.max-n,t.min):n>a&&(r=Hl(t.min,t.max-a,e.min)),Xa(0,1,r)}function V9(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const py=.35;function I9(t=py){return t===!1?t=0:t===!0&&(t=py),{x:OA(t,"left","right"),y:OA(t,"top","bottom")}}function OA(t,e,r){return{min:VA(t,e),max:VA(t,r)}}function VA(t,e){return typeof t=="number"?t:t[e]||0}const IA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ss=()=>({x:IA(),y:IA()}),wA=()=>({min:0,max:0}),ut=()=>({x:wA(),y:wA()});function Ur(t){return[t("x"),t("y")]}function pR({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function w9({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function b9(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function vf(t){return t===void 0||t===1}function hy({scale:t,scaleX:e,scaleY:r}){return!vf(t)||!vf(e)||!vf(r)}function fo(t){return hy(t)||hR(t)||t.z||t.rotate||t.rotateX||t.rotateY}function hR(t){return bA(t.x)||bA(t.y)}function bA(t){return t&&t!=="0%"}function Yd(t,e,r){const n=t-r,a=e*n;return r+a}function TA(t,e,r,n,a){return a!==void 0&&(t=Yd(t,a,n)),Yd(t,r,n)+e}function fy(t,e=0,r=1,n,a){t.min=TA(t.min,e,r,n,a),t.max=TA(t.max,e,r,n,a)}function fR(t,{x:e,y:r}){fy(t.x,e.translate,e.scale,e.originPoint),fy(t.y,r.translate,r.scale,r.originPoint)}function T9(t,e,r,n=!1){const a=r.length;if(!a)return;e.x=e.y=1;let o,s;for(let i=0;i<a;i++){o=r[i],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ps(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,fR(t,s)),n&&fo(o.latestValues)&&Ps(t,o.latestValues))}e.x=EA(e.x),e.y=EA(e.y)}function EA(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Pa(t,e){t.min=t.min+e,t.max=t.max+e}function RA(t,e,[r,n,a]){const o=e[a]!==void 0?e[a]:.5,s=tt(t.min,t.max,o);fy(t,e[r],e[n],s,e.scale)}const E9=["x","scaleX","originX"],R9=["y","scaleY","originY"];function Ps(t,e){RA(t.x,e,E9),RA(t.y,e,R9)}function mR(t,e){return pR(b9(t.getBoundingClientRect(),e))}function D9(t,e,r){const n=mR(t,r),{scroll:a}=e;return a&&(Pa(n.x,a.offset.x),Pa(n.y,a.offset.y)),n}const yR=({current:t})=>t?t.ownerDocument.defaultView:null,k9=new WeakMap;class _9{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ut(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const a=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(xh(u,"page").point)},o=(u,d)=>{const{drag:p,dragPropagation:h,onDragStart:f}=this.getProps();if(p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=TE(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ur(v=>{let g=this.getAxisMotionValue(v).get()||0;if(bn.test(g)){const{projection:m}=this.visualElement;if(m&&m.layout){const C=m.layout.layoutBox[v];C&&(g=Ir(C)*(parseFloat(g)/100))}}this.originPoint[v]=g}),f&&Ke.update(()=>f(u,d),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(u,d)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:f,onDrag:y}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:v}=d;if(h&&this.currentDirection===null){this.currentDirection=U9(v),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),y&&y(u,d)},i=(u,d)=>this.stop(u,d),l=()=>Ur(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new uR(e,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:i,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yR(this.visualElement)})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&Ke.update(()=>o(e,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:a}=this.getProps();if(!n||!au(e,a,this.currentDirection))return;const o=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=S9(s,this.constraints[e],this.elastic[e])),o.set(s)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;r&&Cs(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&a?this.constraints=P9(a.layoutBox,r):this.constraints=!1,this.elastic=I9(n),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&Ur(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=V9(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Cs(e))return!1;const n=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=D9(n,a.root,this.visualElement.getTransformPagePoint());let s=A9(a.layout.layoutBox,o);if(r){const i=r(w9(s));this.hasMutatedConstraints=!!i,i&&(s=pR(i))}return s}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:a,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),l=this.constraints||{},c=Ur(u=>{if(!au(u,r,this.currentDirection))return;let d=l&&l[u]||{};s&&(d={min:0,max:0});const p=a?200:1e6,h=a?40:1e7,f={type:"inertia",velocity:n?e[u]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,f)});return Promise.all(c).then(i)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(f1(e,n,0,r))}stopAnimation(){Ur(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ur(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ur(r=>{const{drag:n}=this.getProps();if(!au(r,n,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(r);if(a&&a.layout){const{min:s,max:i}=a.layout.layoutBox[r];o.set(e[r]-tt(s,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Cs(r)||!n||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ur(s=>{const i=this.getAxisMotionValue(s);if(i){const l=i.get();a[s]=O9({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ur(s=>{if(!au(s,e,null))return;const i=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];i.set(tt(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;k9.set(this.visualElement,this);const e=this.visualElement.current,r=ta(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Cs(l)&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",n);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),n();const s=Jn(window,"resize",()=>this.scalePositionWithinConstraints()),i=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ur(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:s=py,dragMomentum:i=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:o,dragElastic:s,dragMomentum:i}}}function au(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function U9(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class B9 extends oo{constructor(e){super(e),this.removeGroupControls=ot,this.removeListeners=ot,this.controls=new _9(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ot}unmount(){this.removeGroupControls(),this.removeListeners()}}const DA=t=>(e,r)=>{t&&Ke.update(()=>t(e,r))};class M9 extends oo{constructor(){super(...arguments),this.removePointerDownListener=ot}onPointerDown(e){this.session=new uR(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yR(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:DA(e),onStart:DA(r),onMove:n,onEnd:(o,s)=>{delete this.session,a&&Ke.update(()=>a(o,s))}}}mount(){this.removePointerDownListener=ta(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function F9(){const t=B.useContext(Jg);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,a=B.useId();return B.useEffect(()=>n(a),[]),!e&&r?[!1,()=>r&&r(a)]:[!0]}const Bu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Bi={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(fe.test(t))t=parseFloat(t);else return t;const r=kA(t,e.target.x),n=kA(t,e.target.y);return`${r}% ${n}%`}},L9={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,a=Za.parse(t);if(a.length>5)return n;const o=Za.createTransformer(t),s=typeof a[0]!="number"?1:0,i=r.x.scale*e.x,l=r.y.scale*e.y;a[0+s]/=i,a[1+s]/=l;const c=tt(i,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),o(a)}};class N9 extends Nr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:o}=e;qH(G9),o&&(r.group&&r.group.add(o),n&&n.register&&a&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Bu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:a,isPresent:o}=this.props,s=n.projection;return s&&(s.isPresent=o,a||e.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?s.promote():s.relegate()||Ke.postRender(()=>{const i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=e;a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vR(t){const[e,r]=F9(),n=B.useContext(pE);return Nr.createElement(N9,{...t,layoutGroup:n,switchLayoutGroup:B.useContext(hE),isPresent:e,safeToRemove:r})}const G9={borderRadius:{...Bi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bi,borderTopRightRadius:Bi,borderBottomLeftRadius:Bi,borderBottomRightRadius:Bi,boxShadow:L9},gR=["TopLeft","TopRight","BottomLeft","BottomRight"],H9=gR.length,_A=t=>typeof t=="string"?parseFloat(t):t,UA=t=>typeof t=="number"||fe.test(t);function j9(t,e,r,n,a,o){a?(t.opacity=tt(0,r.opacity!==void 0?r.opacity:1,$9(n)),t.opacityExit=tt(e.opacity!==void 0?e.opacity:1,0,z9(n))):o&&(t.opacity=tt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<H9;s++){const i=`border${gR[s]}Radius`;let l=BA(e,i),c=BA(r,i);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||UA(l)===UA(c)?(t[i]=Math.max(tt(_A(l),_A(c),n),0),(bn.test(c)||bn.test(l))&&(t[i]+="%")):t[i]=c}(e.rotate||r.rotate)&&(t.rotate=tt(e.rotate||0,r.rotate||0,n))}function BA(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const $9=CR(0,.5,GE),z9=CR(.5,.95,ot);function CR(t,e,r){return n=>n<t?0:n>e?1:r(Hl(t,e,n))}function MA(t,e){t.min=e.min,t.max=e.max}function _r(t,e){MA(t.x,e.x),MA(t.y,e.y)}function FA(t,e,r,n,a){return t-=e,t=Yd(t,1/r,n),a!==void 0&&(t=Yd(t,1/a,n)),t}function q9(t,e=0,r=1,n=.5,a,o=t,s=t){if(bn.test(e)&&(e=parseFloat(e),e=tt(s.min,s.max,e/100)-s.min),typeof e!="number")return;let i=tt(o.min,o.max,n);t===o&&(i-=e),t.min=FA(t.min,e,r,i,a),t.max=FA(t.max,e,r,i,a)}function LA(t,e,[r,n,a],o,s){q9(t,e[r],e[n],e[a],e.scale,o,s)}const Q9=["x","scaleX","originX"],K9=["y","scaleY","originY"];function NA(t,e,r,n){LA(t.x,e,Q9,r?r.x:void 0,n?n.x:void 0),LA(t.y,e,K9,r?r.y:void 0,n?n.y:void 0)}function GA(t){return t.translate===0&&t.scale===1}function xR(t){return GA(t.x)&&GA(t.y)}function W9(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function SR(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function HA(t){return Ir(t.x)/Ir(t.y)}class Y9{constructor(){this.members=[]}add(e){m1(this.members,e),e.scheduleRender()}remove(e){if(y1(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(a=>e===a);if(r===0)return!1;let n;for(let a=r;a>=0;a--){const o=this.members[a];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jA(t,e,r){let n="";const a=t.x.translate/e.x,o=t.y.translate/e.y;if((a||o)&&(n=`translate3d(${a}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:l,rotateX:c,rotateY:u}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),u&&(n+=`rotateY(${u}deg) `)}const s=t.x.scale*e.x,i=t.y.scale*e.y;return(s!==1||i!==1)&&(n+=`scale(${s}, ${i})`),n||"none"}const J9=(t,e)=>t.depth-e.depth;class X9{constructor(){this.children=[],this.isDirty=!1}add(e){m1(this.children,e),this.isDirty=!0}remove(e){y1(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(J9),this.isDirty=!1,this.children.forEach(e)}}function Z9(t,e){const r=performance.now(),n=({timestamp:a})=>{const o=a-r;o>=e&&(ca(n),t(o-e))};return Ke.read(n,!0),()=>ca(n)}function e$(t){window.MotionDebug&&window.MotionDebug.record(t)}function t$(t){return t instanceof SVGElement&&t.tagName!=="svg"}function r$(t,e,r){const n=hr(t)?t:Xs(t);return n.start(f1("",n,e,r)),n.animation}const $A=["","X","Y","Z"],n$={visibility:"hidden"},zA=1e3;let a$=0;const mo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function PR({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(s={},i=e==null?void 0:e()){this.id=a$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,mo.totalNodes=mo.resolvedTargetDeltas=mo.recalculatedProjection=0,this.nodes.forEach(i$),this.nodes.forEach(p$),this.nodes.forEach(h$),this.nodes.forEach(l$),e$(mo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new X9)}addEventListener(s,i){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new v1),this.eventHandlers.get(s).add(i)}notifyListeners(s,...i){const l=this.eventHandlers.get(s);l&&l.notify(...i)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t$(s),this.instance=s;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(c||l)&&(this.isLayoutDirty=!0),t){let d;const p=()=>this.root.updateBlockedByResize=!1;t(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Z9(p,250),Bu.hasAnimatedSinceResize&&(Bu.hasAnimatedSinceResize=!1,this.nodes.forEach(QA))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||g$,{onLayoutAnimationStart:v,onLayoutAnimationComplete:g}=u.getProps(),m=!this.targetLayout||!SR(this.targetLayout,f)||h,C=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,C);const x={...h1(y,"layout"),onPlay:v,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else p||QA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ca(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(f$),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:i,layout:l}=this.options;if(i===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qA);return}this.isUpdating||this.nodes.forEach(u$),this.isUpdating=!1,this.nodes.forEach(d$),this.nodes.forEach(o$),this.nodes.forEach(s$),this.clearAllSnapshots();const i=performance.now();zt.delta=Xa(0,1e3/60,i-zt.timestamp),zt.timestamp=i,zt.isProcessing=!0,sf.update.process(zt),sf.preRender.process(zt),sf.render.process(zt),zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(c$),this.sharedNodes.forEach(m$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:i}=this.options;i&&i.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform,i=this.projectionDelta&&!xR(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(i||fo(this.latestValues)||u)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const i=this.measurePageBox();let l=this.removeElementScroll(i);return s&&(l=this.removeTransform(l)),C$(l),{animationId:this.root.animationId,measuredBox:i,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ut();const i=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Pa(i.x,l.offset.x),Pa(i.y,l.offset.y)),i}removeElementScroll(s){const i=ut();_r(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;if(c!==this.root&&u&&d.layoutScroll){if(u.isRoot){_r(i,s);const{scroll:p}=this.root;p&&(Pa(i.x,-p.offset.x),Pa(i.y,-p.offset.y))}Pa(i.x,u.offset.x),Pa(i.y,u.offset.y)}}return i}applyTransform(s,i=!1){const l=ut();_r(l,s);for(let c=0;c<this.path.length;c++){const u=this.path[c];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ps(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),fo(u.latestValues)&&Ps(l,u.latestValues)}return fo(this.latestValues)&&Ps(l,this.latestValues),l}removeTransform(s){const i=ut();_r(i,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!fo(c.latestValues))continue;hy(c.latestValues)&&c.updateSnapshot();const u=ut(),d=c.measurePageBox();_r(u,d),NA(i,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return fo(this.latestValues)&&NA(i,this.latestValues),i}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var i;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:d,layoutId:p}=this.options;if(!(!this.layout||!(d||p))){if(this.resolvedRelativeTargetAt=zt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),fl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),_r(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ut(),this.targetWithTransforms=ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),x9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):_r(this.target,this.layout.layoutBox),fR(this.target,this.targetDelta)):_r(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ut(),this.relativeTargetOrigin=ut(),fl(this.relativeTargetOrigin,this.target,h.target),_r(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}mo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hy(this.parent.latestValues)||hR(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const i=this.getLead(),l=!!this.resumingFrom||this!==i;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===zt.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;_r(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,h=this.treeScale.y;T9(this.layoutCorrected,this.treeScale,this.path,l),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox);const{target:f}=i;if(!f){this.projectionTransform&&(this.projectionDelta=Ss(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ss(),this.projectionDeltaWithTransform=Ss());const y=this.projectionTransform;hl(this.projectionDelta,this.layoutCorrected,f,this.latestValues),this.projectionTransform=jA(this.projectionDelta,this.treeScale),(this.projectionTransform!==y||this.treeScale.x!==p||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f)),mo.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const i=this.getStack();i&&i.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,i=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Ss();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const p=ut(),h=l?l.source:void 0,f=this.layout?this.layout.source:void 0,y=h!==f,v=this.getStack(),g=!v||v.members.length<=1,m=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(v$));this.animationProgress=0;let C;this.mixTargetDelta=x=>{const S=x/1e3;KA(d.x,s.x,S),KA(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fl(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),y$(this.relativeTarget,this.relativeTargetOrigin,p,S),C&&W9(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ut()),_r(C,this.relativeTarget)),y&&(this.animationValues=u,j9(u,c,this.latestValues,S,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ca(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{Bu.hasAnimatedSinceResize=!0,this.currentAnimation=r$(0,zA,{...s,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:i,target:l,layout:c,latestValues:u}=s;if(!(!i||!l||!c)){if(this!==s&&this.layout&&c&&AR(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ut();const d=Ir(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=Ir(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}_r(i,l),Ps(i,u),hl(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Y9),this.sharedNodes.get(s).add(i);const c=i.options.initialPromotionConfig;i.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(i):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:i}=this.options;return i?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:i}=this.options;return i?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let i=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(i=!0),!i)return;const c={};for(let u=0;u<$A.length;u++){const d="rotate"+$A[u];l[d]&&(c[d]=l[d],s.setStaticValue(d,0))}s.render();for(const u in c)s.setStaticValue(u,c[u]);s.scheduleRender()}getProjectionStyles(s){var i,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return n$;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Uu(s==null?void 0:s.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Uu(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!fo(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}const p=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=jA(this.projectionDeltaWithTransform,this.treeScale,p),u&&(c.transform=u(p,c.transform));const{x:h,y:f}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${f.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(i=p.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const y in jd){if(p[y]===void 0)continue;const{correct:v,applyTo:g}=jd[y],m=c.transform==="none"?p[y]:v(p[y],d);if(g){const C=g.length;for(let x=0;x<C;x++)c[g[x]]=m}else c[y]=m}return this.options.layoutId&&(c.pointerEvents=d===this?Uu(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var i;return(i=s.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(qA),this.root.sharedNodes.clear()}}}function o$(t){t.updateLayout()}function s$(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:a}=t.layout,{animationType:o}=t.options,s=r.source!==t.layout.source;o==="size"?Ur(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=Ir(p);p.min=n[d].min,p.max=p.min+h}):AR(o,r.layoutBox,n)&&Ur(d=>{const p=s?r.measuredBox[d]:r.layoutBox[d],h=Ir(n[d]);p.max=p.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const i=Ss();hl(i,n,r.layoutBox);const l=Ss();s?hl(l,t.applyTransform(a,!0),r.measuredBox):hl(l,n,r.layoutBox);const c=!xR(i);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const f=ut();fl(f,r.layoutBox,p.layoutBox);const y=ut();fl(y,n,h.layoutBox),SR(f,y)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=f,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:i,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function i$(t){mo.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function l$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function c$(t){t.clearSnapshot()}function qA(t){t.clearMeasurements()}function u$(t){t.isLayoutDirty=!1}function d$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function QA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function p$(t){t.resolveTargetDelta()}function h$(t){t.calcProjection()}function f$(t){t.resetRotation()}function m$(t){t.removeLeadSnapshot()}function KA(t,e,r){t.translate=tt(e.translate,0,r),t.scale=tt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function WA(t,e,r,n){t.min=tt(e.min,r.min,n),t.max=tt(e.max,r.max,n)}function y$(t,e,r,n){WA(t.x,e.x,r.x,n),WA(t.y,e.y,r.y,n)}function v$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const g$={duration:.45,ease:[.4,0,.1,1]},YA=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),JA=YA("applewebkit/")&&!YA("chrome/")?Math.round:ot;function XA(t){t.min=JA(t.min),t.max=JA(t.max)}function C$(t){XA(t.x),XA(t.y)}function AR(t,e,r){return t==="position"||t==="preserve-aspect"&&!dy(HA(e),HA(r),.2)}const x$=PR({attachResizeListener:(t,e)=>Jn(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gf={current:void 0},OR=PR({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!gf.current){const t=new x$({});t.mount(window),t.setOptions({layoutScroll:!0}),gf.current=t}return gf.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),S$={pan:{Feature:M9},drag:{Feature:B9,ProjectionNode:OR,MeasureLayout:vR}},P$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function A$(t){const e=P$.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function my(t,e,r=1){const[n,a]=A$(t);if(!n)return;const o=window.getComputedStyle(e).getPropertyValue(n);if(o){const s=o.trim();return sR(s)?parseFloat(s):s}else return ay(a)?my(a,e,r+1):a}function O$(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(a=>{const o=a.get();if(!ay(o))return;const s=my(o,n);s&&a.set(s)});for(const a in e){const o=e[a];if(!ay(o))continue;const s=my(o,n);s&&(e[a]=s,r||(r={}),r[a]===void 0&&(r[a]=o))}return{target:e,transitionEnd:r}}const V$=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),VR=t=>V$.has(t),I$=t=>Object.keys(t).some(VR),ZA=t=>t===$o||t===fe,eO=(t,e)=>parseFloat(t.split(", ")[e]),tO=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const a=n.match(/^matrix3d\((.+)\)$/);if(a)return eO(a[1],e);{const o=n.match(/^matrix\((.+)\)$/);return o?eO(o[1],t):0}},w$=new Set(["x","y","z"]),b$=uc.filter(t=>!w$.has(t));function T$(t){const e=[];return b$.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Zs={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tO(4,13),y:tO(5,14)};Zs.translateX=Zs.x;Zs.translateY=Zs.y;const E$=(t,e,r)=>{const n=e.measureViewportBox(),a=e.current,o=getComputedStyle(a),{display:s}=o,i={};s==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(c=>{i[c]=Zs[c](n,o)}),e.render();const l=e.measureViewportBox();return r.forEach(c=>{const u=e.getValue(c);u&&u.jump(i[c]),t[c]=Zs[c](l,o)}),t},R$=(t,e,r={},n={})=>{e={...e},n={...n};const a=Object.keys(e).filter(VR);let o=[],s=!1;const i=[];if(a.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=r[l],d=Ui(u);const p=e[l];let h;if(zd(p)){const f=p.length,y=p[0]===null?1:0;u=p[y],d=Ui(u);for(let v=y;v<f&&p[v]!==null;v++)h?l1(Ui(p[v])===h):h=Ui(p[v])}else h=Ui(p);if(d!==h)if(ZA(d)&&ZA(h)){const f=c.get();typeof f=="string"&&c.set(parseFloat(f)),typeof p=="string"?e[l]=parseFloat(p):Array.isArray(p)&&h===fe&&(e[l]=p.map(parseFloat))}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||p===0)?u===0?c.set(h.transform(u)):e[l]=d.transform(p):(s||(o=T$(t),s=!0),i.push(l),n[l]=n[l]!==void 0?n[l]:e[l],c.jump(p))}),i.length){const l=i.indexOf("height")>=0?window.pageYOffset:null,c=E$(e,t,i);return o.length&&o.forEach(([u,d])=>{t.getValue(u).set(d)}),t.render(),yh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function D$(t,e,r,n){return I$(e)?R$(t,e,r,n):{target:e,transitionEnd:n}}const k$=(t,e,r,n)=>{const a=O$(t,e,n);return e=a.target,n=a.transitionEnd,D$(t,e,r,n)},yy={current:null},IR={current:!1};function _$(){if(IR.current=!0,!!yh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>yy.current=t.matches;t.addListener(e),e()}else yy.current=!1}function U$(t,e,r){const{willChange:n}=e;for(const a in e){const o=e[a],s=r[a];if(hr(o))t.addValue(a,o),Wd(n)&&n.add(a);else if(hr(s))t.addValue(a,Xs(o,{owner:t})),Wd(n)&&n.remove(a);else if(s!==o)if(t.hasValue(a)){const i=t.getValue(a);!i.hasAnimated&&i.set(o)}else{const i=t.getStaticValue(a);t.addValue(a,Xs(i!==void 0?i:o,{owner:t}))}}for(const a in r)e[a]===void 0&&t.removeValue(a);return e}const rO=new WeakMap,wR=Object.keys(Gl),B$=wR.length,nO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],M$=e1.length;class F${constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ke.render(this.render,!1,!0);const{latestValues:i,renderState:l}=o;this.latestValues=i,this.baseTarget={...i},this.initialValues=r.initial?{...i}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=s,this.isControllingVariants=gh(r),this.isVariantNode=dE(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(r,{});for(const d in u){const p=u[d];i[d]!==void 0&&hr(p)&&(p.set(i[d],!1),Wd(c)&&c.add(d))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,rO.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),IR.current||_$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rO.delete(this.current),this.projection&&this.projection.unmount(),ca(this.notifyUpdate),ca(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=jo.has(e),a=r.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Ke.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{a(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,a,o){let s,i;for(let l=0;l<B$;l++){const c=wR[l],{isEnabled:u,Feature:d,ProjectionNode:p,MeasureLayout:h}=Gl[c];p&&(s=p),u(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(i=h))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:d,layoutScroll:p,layoutRoot:h}=r;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||d&&Cs(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:p,layoutRoot:h})}return i}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ut()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<nO.length;n++){const a=nO[n];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o=e["on"+a];o&&(this.propEventSubscriptions[a]=this.on(a,o))}this.prevMotionValues=U$(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}const r={};for(let n=0;n<M$;n++){const a=e1[n],o=this.props[a];(Nl(o)||o===!1)&&(r[a]=o)}return r}addVariantChild(e){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(e),()=>r.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Xs(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,a=typeof n=="string"||typeof n=="object"?(r=i1(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!hr(o)?o:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new v1),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class bR extends F${sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:a},o){let s=t9(n,e||{},this);if(a&&(r&&(r=a(r)),n&&(n=a(n)),s&&(s=a(s))),o){Z7(this,n,s);const i=k$(this,n,s,r);r=i.transitionEnd,n=i.target}return{transition:e,transitionEnd:r,...n}}}function L$(t){return window.getComputedStyle(t)}class N$ extends bR{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(jo.has(r)){const n=p1(r);return n&&n.default||0}else{const n=L$(e),a=(yE(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(e,{transformPagePoint:r}){return mR(e,r)}build(e,r,n,a){r1(e,r,n,a.transformTemplate)}scrapeMotionValuesFromProps(e,r){return s1(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hr(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,a){PE(e,r,n,a)}}class G$ extends bR{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(jo.has(r)){const n=p1(r);return n&&n.default||0}return r=AE.has(r)?r:Xg(r),e.getAttribute(r)}measureInstanceViewportBox(){return ut()}scrapeMotionValuesFromProps(e,r){return VE(e,r)}build(e,r,n,a){a1(e,r,n,this.isSVGTag,a.transformTemplate)}renderInstance(e,r,n,a){OE(e,r,n,a)}mount(e){this.isSVGTag=o1(e.tagName),super.mount(e)}}const H$=(t,e)=>t1(t)?new G$(e,{enableHardwareAcceleration:!1}):new N$(e,{enableHardwareAcceleration:!0}),j$={layout:{ProjectionNode:OR,MeasureLayout:vR}},$$={...y9,...Bj,...S$,...j$},z$=$H((t,e)=>Aj(t,e,$$,H$)),q$=({offsetX:t,offsetY:e,placement:r,transitionType:n})=>n==="fade"?K$(t,e)[r]:Q$(t,e)[r],Zo={initial:{opacity:0,transform:"scale(0.75)"},animate:{transform:"scale(1)",opacity:1},exit:{opacity:0,transform:"scale(0.75)"}},es={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},Q$=(t,e)=>({"top-end":{default:{top:e,right:t},variants:{...Zo}},"top-start":{default:{top:e,left:t},variants:{...Zo}},"top-center":{default:{top:e,left:"50%",transform:"translateX(-50%)"},variants:{...Zo}},"bottom-end":{default:{bottom:e,right:t},variants:{...Zo}},"bottom-start":{default:{bottom:e,left:t},variants:{...Zo}},"bottom-center":{default:{bottom:e,left:"50%",transform:"translateX(-50%)"},variants:{...Zo}}}),K$=(t,e)=>({"top-end":{default:{top:e,right:t},variants:{...es}},"top-start":{default:{top:e,left:t},variants:{...es}},"top-center":{default:{top:e,left:"50%",transform:"translateX(-50%)"},variants:{...es}},"bottom-end":{default:{bottom:e,right:t},variants:{...es}},"bottom-start":{default:{bottom:e,left:t},variants:{...es}},"bottom-center":{default:{bottom:e,left:"50%",transform:"translateX(-50%)"},variants:{...es}}}),W$=t=>{const[e,r]=B.useState([]),n=B.useCallback(i=>(typeof i>"u"&&e.length&&(i=e[e.length-1].key),i),[e]),a=B.useCallback(i=>{const l=t||"_"+Math.random().toString(36).substr(2,12);return r([...e,{key:l,visible:!0,node:i}]),l},[e,t]),o=B.useCallback(()=>{r(e.map(i=>({...i,visible:!1}))),setTimeout(()=>{r([])},50)},[e]),s=B.useCallback(i=>{r(e.map(l=>(l.key===n(i)&&(l.visible=!1),l))),setTimeout(()=>{r(e.filter(l=>l.visible))},50)},[e,n]);return{messages:e,push:a,removeAll:o,remove:s}},Jd=B.forwardRef((t,e)=>{const r=B.useRef(null),{transitionType:n="scale",placement:a=ob.TOP_END,offsetX:o=30,offsetY:s=30,messageKey:i,block:l=!1,callback:c,...u}=t,{push:d,removeAll:p,remove:h,messages:f}=W$(i);B.useImperativeHandle(e,()=>({root:r.current,push:d,removeAll:p,remove:h}));const y=q$({offsetX:o,offsetY:s,placement:a,transitionType:n}),v={triggerByToast:!0,...u},g=f.map(m=>{var C,x,S,P;return ie.jsx(z$.div,{className:"toast-wrapper",initial:y.variants.initial,variants:y.variants,animate:m.visible?"animate":"exit",transition:{duration:.15,type:"tween"},children:B.cloneElement(m.node,{...v,ref:e,onClose:kH((x=(C=m.node)==null?void 0:C.props)==null?void 0:x.onClose,()=>h(m.key)),className:Zn((P=(S=m.node)==null?void 0:S.props)==null?void 0:P.className)})},m.key)});return ie.jsx("div",{style:y.default,...u,ref:m=>{r.current=m,c==null||c(m)},className:Zn("toast",l&&"w-full"),children:g})});Jd.getInstance=t=>{const{wrapper:e,...r}=t,n=B.createRef(),a=(typeof e=="function"?e():e)||document.body;return new Promise(o=>{const s=()=>{o([n,l])};function i(c){const u=document.createElement("div");a.appendChild(u);const d=OI(u);return d.render(c),d}const{unmount:l}=i(ie.jsx(Jd,{...r,ref:n,callback:s}))})};Jd.displayName="ToastWrapper";const Y$={placement:ob.TOP_END,offsetX:30,offsetY:30,transitionType:"scale",block:!1},TR="default",jl=new Map;function J$(t){if(/\top\b/.test(t))return"top-full";if(/\bottom\b/.test(t))return"bottom-full"}async function X$(t,e){const[r]=await Jd.getInstance(e);return jl.set(t||TR,r),r}function Z$(t){return jl.size===0?null:jl.get(t||TR)}const Xt=t=>Xt.push(t);Xt.push=(t,e=Y$)=>{let r=e.placement;e.block&&(r=J$(e.placement));const n=Z$(r);return n!=null&&n.current?n.current.push(t):X$(r??"",e).then(a=>{var o;return(o=a.current)==null?void 0:o.push(t)})};Xt.remove=t=>{jl.forEach(e=>e.current.remove(t))};Xt.removeAll=()=>{jl.forEach(t=>t.current.removeAll())};function ez(t,e=0,r=!0){const n=B.useRef(),a=B.useRef(t),o=B.useCallback(()=>{n.current&&clearTimeout(n.current)},[]),s=B.useCallback(()=>{n.current&&clearTimeout(n.current),r&&(n.current=setTimeout(()=>{var i;(i=a.current)==null||i.call(a)},e))},[e,r]);return B.useEffect(()=>{a.current=t},[t]),B.useEffect(()=>(s(),o),[e,r,s,o]),{clear:o,reset:s}}function fQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 10.293a1 1 0 010 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 111.414-1.414L9 14.586V3a1 1 0 012 0v11.586l4.293-4.293a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(t)}function mQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}}]})(t)}function yQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(t)}function tz(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}}]})(t)}function vQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(t)}function gQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(t)}function CQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(t)}function xQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(t)}function SQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(t)}function PQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}}]})(t)}function AQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"}},{tag:"path",attr:{d:"M3 8a2 2 0 012-2v10h8a2 2 0 01-2 2H5a2 2 0 01-2-2V8z"}}]})(t)}function OQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"}}]})(t)}function VQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(t)}function rz(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}}]})(t)}function IQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z",clipRule:"evenodd"}}]})(t)}function nz(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}}]})(t)}function wQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 4a3 3 0 00-3 3v4a5 5 0 0010 0V7a1 1 0 112 0v4a7 7 0 11-14 0V7a5 5 0 0110 0v4a3 3 0 11-6 0V7a1 1 0 012 0v4a1 1 0 102 0V7a3 3 0 00-3-3z",clipRule:"evenodd"}}]})(t)}function bQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z",clipRule:"evenodd"}}]})(t)}function TQ(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-2 0c0 .993-.241 1.929-.668 2.754l-1.524-1.525a3.997 3.997 0 00.078-2.183l1.562-1.562C15.802 8.249 16 9.1 16 10zm-5.165 3.913l1.58 1.58A5.98 5.98 0 0110 16a5.976 5.976 0 01-2.516-.552l1.562-1.562a4.006 4.006 0 001.789.027zm-4.677-2.796a4.002 4.002 0 01-.041-2.08l-.08.08-1.53-1.533A5.98 5.98 0 004 10c0 .954.223 1.856.619 2.657l1.54-1.54zm1.088-6.45A5.974 5.974 0 0110 4c.954 0 1.856.223 2.657.619l-1.54 1.54a4.002 4.002 0 00-2.346.033L7.246 4.668zM12 10a2 2 0 11-4 0 2 2 0 014 0z",clipRule:"evenodd"}}]})(t)}function az(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}}]})(t)}function oz(t){return me({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}}]})(t)}function EQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}}]})(t)}function RQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"}}]})(t)}function DQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"}}]})(t)}function kQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}}]})(t)}function _Q(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}}]})(t)}function UQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 19l-7-7 7-7m8 14l-7-7 7-7"}}]})(t)}function BQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(t)}function MQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}}]})(t)}function FQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"}}]})(t)}function LQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(t)}function NQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}}]})(t)}function GQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}}]})(t)}function HQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}}]})(t)}function jQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(t)}function $Q(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}}]})(t)}function zQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}}]})(t)}function qQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}}]})(t)}function QQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}}]})(t)}function KQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h7"}}]})(t)}function WQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"}}]})(t)}function YQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"}}]})(t)}function JQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}}]})(t)}function XQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"}}]})(t)}function ZQ(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z"}}]})(t)}function eK(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"}}]})(t)}function tK(t){return me({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}}]})(t)}const ER=B.forwardRef((t,e)=>{const{absolute:r,className:n,defaultStyle:a,...o}=t,i=Zn("close-btn",a&&"close-btn-default",r&&"absolute z-10",n);return ie.jsx("span",{className:i,role:"button",...o,ref:e,children:ie.jsx(oz,{})})});ER.displayName="CloseButton";const sz={success:{color:"text-emerald-400",icon:ie.jsx(tz,{})},info:{color:"text-blue-400",icon:ie.jsx(nz,{})},warning:{color:"text-yellow-400",icon:ie.jsx(rz,{})},danger:{color:"text-red-400",icon:ie.jsx(az,{})}},iz=t=>{const{type:e="info",custom:r,iconColor:n}=t,a=sz[e];return ie.jsx("span",{className:`text-2xl ${n||a.color}`,children:r||a.icon})},Ki=B.forwardRef((t,e)=>{const{className:r,children:n,closable:a=!1,customIcon:o,duration:s=3e3,onClose:i,style:l,title:c,triggerByToast:u,type:d,width:p=350,...h}=t,[f,y]=B.useState("show"),{clear:v}=ez(i,s,s>0),g=B.useCallback(C=>{y("hiding"),i==null||i(C),v(),u||setTimeout(()=>{y("hide")},400)},[i,v,u]),m=Zn("notification",r);return f==="hide"?null:ie.jsxs("div",{ref:e,...h,className:m,style:{width:p,...l},children:[ie.jsxs("div",{className:Zn("notification-content",!n&&"no-child"),children:[d&&!o?ie.jsx("div",{className:"mr-3",children:ie.jsx(iz,{type:d})}):null,o&&ie.jsx("div",{className:"mr-3",children:o}),ie.jsxs("div",{className:"mr-4",children:[c&&ie.jsx("div",{className:Zn("notification-title",n&&"mb-1"),children:c}),ie.jsx("div",{className:"notification-description",children:n})]})]}),a&&ie.jsx(ER,{className:"notification-close",defaultStyle:!1,absolute:!0,onClick:g})]})});Ki.displayName="Notification";const aO=["https://www.google.com/favicon.ico","https://cdn.jsdelivr.net/npm/axios@1.0.0/package.json"],Cf=4e3,lz=8e3,Mu=6e3,xf=4,cz=2,oO=5e3;async function uz(){const t=[];t.push(new Promise((e,r)=>{const n=new Image,a=performance.now();let o=setTimeout(()=>r(new Error("image_timeout")),Mu);n.onload=()=>{clearTimeout(o),e({method:"image",duration:performance.now()-a})},n.onerror=()=>{clearTimeout(o),r(new Error("image_error"))},n.src=`${aO[0]}?_=${Date.now()}_${Math.random().toString(36).substr(2,9)}`})),t.push(new Promise((e,r)=>{const n=performance.now(),a=new AbortController,o=setTimeout(()=>{a.abort(),r(new Error("fetch_timeout"))},Mu);fetch(`${aO[1]}?_=${Date.now()}`,{method:"GET",mode:"cors",cache:"no-cache",signal:a.signal}).then(s=>{clearTimeout(o),e({method:"fetch",duration:performance.now()-n})}).catch(s=>{clearTimeout(o),r(new Error("fetch_error"))})})),t.push(new Promise((e,r)=>{const n=performance.now(),a=new XMLHttpRequest;a.timeout=Mu,a.onreadystatechange=function(){a.readyState===4&&(a.status===200||a.status===0?e({method:"xhr",duration:performance.now()-n}):r(new Error("xhr_error")))},a.ontimeout=()=>r(new Error("xhr_timeout")),a.onerror=()=>r(new Error("xhr_error"));try{a.open("HEAD",`https://httpbin.org/status/200?_=${Date.now()}`,!0),a.send()}catch{r(new Error("xhr_exception"))}}));try{return(await Promise.any(t)).duration}catch(e){throw console.warn("All ping methods failed:",e),new Error("all_methods_failed")}}const dz=()=>{const t=B.useRef(null),e=B.useRef(null),r=B.useRef(!1),n=B.useRef(null),a=B.useRef(null),o=B.useRef(!0),s=B.useRef(Date.now()),i=B.useRef(!1),l=B.useRef(0),c=B.useRef(0),u=B.useRef([]),d=B.useRef(!1),p=6;return B.useEffect(()=>{const h=(x,S={})=>{console.log(`[ConnectionListener] ${x}`,{visible:o.current,online:navigator.onLine,suppress:r.current,failures:l.current,successes:c.current,...S})},f=()=>{const x=!document.hidden,S=o.current;o.current=x,h(`Tab visibility changed: ${S} -> ${x}`),x&&!S&&(s.current=Date.now(),e.current&&(h("Clearing stale poor connection warning after tab focus"),Xt.remove(e.current),e.current=null,l.current=0,c.current=0),setTimeout(()=>{o.current&&navigator.onLine&&!r.current&&(h("Running connection check after tab focus"),m())},2e3))},y=()=>{h("Showing online toast"),e.current&&(Xt.remove(e.current),e.current=null),l.current=0,c.current=0,u.current=[],Promise.resolve(Xt.push(ie.jsx(Ki,{title:"Back Online",type:"success",duration:3e3,children:"Internet connection restored."}),{placement:"top-center"})),r.current=!0,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{r.current=!1,h("Suppression lifted after reconnect")},7e3)},v=()=>{h("Online event triggered"),t.current&&(Xt.remove(t.current),t.current=null,setTimeout(y,100))},g=()=>{h("Offline event triggered"),e.current&&(Xt.remove(e.current),e.current=null),l.current=0,c.current=0,u.current=[],t.current||Promise.resolve(Xt.push(ie.jsx(Ki,{title:"No Internet",type:"danger",duration:0,children:"You are currently offline."}),{placement:"top-center"})).then(x=>{typeof x=="string"&&!t.current&&!navigator.onLine&&(t.current=x)})},m=async()=>{if(!navigator.onLine){h("Skip check: offline");return}if(r.current){h("Skip check: suppressed");return}if(!o.current||document.hidden){h("Skip check: tab not visible");return}if(d.current){h("Skip check: already checking");return}if(!i.current&&Date.now()-s.current<oO){h("Skip check: waiting for initial delay");return}d.current=!0;try{h("Starting connection test");const x=performance.now(),S=await uz(),P=Math.max(S,performance.now()-x);if(h("Ping successful",{duration:Math.round(P)}),i.current=!0,u.current.push({duration:P,timestamp:Date.now(),success:!0,wasVisible:o.current}),u.current.length>p&&u.current.shift(),P>=Cf){if(l.current++,c.current=0,h("Poor connection detected",{consecutive:l.current,threshold:xf}),l.current>=xf&&!t.current&&!e.current){const V=u.current.filter(U=>U.wasVisible&&U.success).slice(-4);if(V.length>=3){const U=V.reduce((O,I)=>O+I.duration,0)/V.length;h("Average duration check",{avg:Math.round(U),threshold:Cf}),U>=Cf&&(h("Showing poor connection warning"),Promise.resolve(Xt.push(ie.jsx(Ki,{title:"Slow Internet Connection",type:"warning",duration:0,children:"Your connection seems slower than usual."}),{placement:"top-center"})).then(O=>{typeof O=="string"&&(e.current=O)}))}}}else c.current++,l.current>0&&(l.current=Math.max(0,l.current-1)),h("Good connection",{consecutive:c.current,failuresReset:l.current}),c.current>=cz&&e.current&&(h("Removing poor connection warning"),Xt.remove(e.current),e.current=null)}catch(x){if(h("Ping failed",{error:x.message}),o.current&&!document.hidden){u.current.push({duration:Mu,timestamp:Date.now(),success:!1,error:x.message,wasVisible:!0}),u.current.length>p&&u.current.shift(),l.current++,c.current=0;const S=u.current.filter(P=>P.success&&Date.now()-P.timestamp<15e3).length;l.current>=xf&&!t.current&&!r.current&&!e.current&&navigator.onLine&&S===0&&(h("Showing poor connection warning after failures"),Promise.resolve(Xt.push(ie.jsx(Ki,{title:"Connection Issues",type:"warning",duration:0,children:"Having trouble connecting to the internet."}),{placement:"top-center"})).then(P=>{typeof P=="string"&&(e.current=P)}))}}finally{d.current=!1}};window.addEventListener("online",v),window.addEventListener("offline",g),document.addEventListener("visibilitychange",f),o.current=!document.hidden,s.current=Date.now(),navigator.onLine?setTimeout(()=>{o.current&&navigator.onLine&&(h("Running initial connection check"),m())},oO):g();const C=()=>{o.current&&!document.hidden&&!d.current&&m()};return n.current=setInterval(C,lz),()=>{window.removeEventListener("online",v),window.removeEventListener("offline",g),document.removeEventListener("visibilitychange",f),clearInterval(n.current),a.current&&clearTimeout(a.current),t.current&&Xt.remove(t.current),e.current&&Xt.remove(e.current)}},[]),null};sE({licenseKey:DH});const pz=()=>{const t=Pv();return B.useEffect(()=>{t(zw()),t(qw()),t(Qw())},[t]),null},hz=()=>{const t=ia(o=>o.theme.themeColours);for(const[o,s]of Object.entries(t))document.documentElement.style.setProperty(`--custom-${o}`,s);const e=parseInt(t[600].slice(1),16),r=e>>16&255,n=e>>8&255,a=e&255;return document.documentElement.style.setProperty("--customs-600",`${r}, ${n}, ${a}`),null};function fz({msalInstance:t}){return ie.jsx(aH,{instance:t,children:ie.jsx(V_,{store:ac,children:ie.jsx(WI,{loading:null,persistor:AN,children:ie.jsx(IU,{children:ie.jsxs(bN,{children:[ie.jsx(pz,{})," ",ie.jsx(hz,{}),ie.jsx(dz,{}),ie.jsx(w8,{})]})})})})})}var mz=!1;function yz(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 vz(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 gz=function(){function t(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!mz: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(vz(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=yz(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},t}(),Ht="-ms-",Xd="-moz-",be="-webkit-",RR="comm",g1="rule",C1="decl",Cz="@import",DR="@keyframes",xz="@layer",Sz=Math.abs,Ph=String.fromCharCode,Pz=Object.assign;function Az(t,e){return Ut(t,0)^45?(((e<<2^Ut(t,0))<<2^Ut(t,1))<<2^Ut(t,2))<<2^Ut(t,3):0}function kR(t){return t.trim()}function Oz(t,e){return(t=e.exec(t))?t[0]:t}function Te(t,e,r){return t.replace(e,r)}function vy(t,e){return t.indexOf(e)}function Ut(t,e){return t.charCodeAt(e)|0}function $l(t,e,r){return t.slice(e,r)}function vn(t){return t.length}function x1(t){return t.length}function ou(t,e){return e.push(t),t}function Vz(t,e){return t.map(e).join("")}var Ah=1,ei=1,_R=0,fr=0,dt=0,pi="";function Oh(t,e,r,n,a,o,s){return{value:t,root:e,parent:r,type:n,props:a,children:o,line:Ah,column:ei,length:s,return:""}}function Mi(t,e){return Pz(Oh("",null,null,"",null,null,0),t,{length:-t.length},e)}function Iz(){return dt}function wz(){return dt=fr>0?Ut(pi,--fr):0,ei--,dt===10&&(ei=1,Ah--),dt}function Ar(){return dt=fr<_R?Ut(pi,fr++):0,ei++,dt===10&&(ei=1,Ah++),dt}function Tn(){return Ut(pi,fr)}function Fu(){return fr}function fc(t,e){return $l(pi,t,e)}function zl(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 UR(t){return Ah=ei=1,_R=vn(pi=t),fr=0,[]}function BR(t){return pi="",t}function Lu(t){return kR(fc(fr-1,gy(t===91?t+2:t===40?t+1:t)))}function bz(t){for(;(dt=Tn())&&dt<33;)Ar();return zl(t)>2||zl(dt)>3?"":" "}function Tz(t,e){for(;--e&&Ar()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return fc(t,Fu()+(e<6&&Tn()==32&&Ar()==32))}function gy(t){for(;Ar();)switch(dt){case t:return fr;case 34:case 39:t!==34&&t!==39&&gy(dt);break;case 40:t===41&&gy(t);break;case 92:Ar();break}return fr}function Ez(t,e){for(;Ar()&&t+dt!==47+10;)if(t+dt===42+42&&Tn()===47)break;return"/*"+fc(e,fr-1)+"*"+Ph(t===47?t:Ar())}function Rz(t){for(;!zl(Tn());)Ar();return fc(t,fr)}function Dz(t){return BR(Nu("",null,null,null,[""],t=UR(t),0,[0],t))}function Nu(t,e,r,n,a,o,s,i,l){for(var c=0,u=0,d=s,p=0,h=0,f=0,y=1,v=1,g=1,m=0,C="",x=a,S=o,P=n,A=C;v;)switch(f=m,m=Ar()){case 40:if(f!=108&&Ut(A,d-1)==58){vy(A+=Te(Lu(m),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:A+=Lu(m);break;case 9:case 10:case 13:case 32:A+=bz(f);break;case 92:A+=Tz(Fu()-1,7);continue;case 47:switch(Tn()){case 42:case 47:ou(kz(Ez(Ar(),Fu()),e,r),l);break;default:A+="/"}break;case 123*y:i[c++]=vn(A)*g;case 125*y:case 59:case 0:switch(m){case 0:case 125:v=0;case 59+u:g==-1&&(A=Te(A,/\f/g,"")),h>0&&vn(A)-d&&ou(h>32?iO(A+";",n,r,d-1):iO(Te(A," ","")+";",n,r,d-2),l);break;case 59:A+=";";default:if(ou(P=sO(A,e,r,c,u,a,i,C,x=[],S=[],d),o),m===123)if(u===0)Nu(A,e,P,P,x,o,d,i,S);else switch(p===99&&Ut(A,3)===110?100:p){case 100:case 108:case 109:case 115:Nu(t,P,P,n&&ou(sO(t,P,P,0,0,a,i,C,a,x=[],d),S),a,S,d,i,n?x:S);break;default:Nu(A,P,P,P,[""],S,0,i,S)}}c=u=h=0,y=g=1,C=A="",d=s;break;case 58:d=1+vn(A),h=f;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&wz()==125)continue}switch(A+=Ph(m),m*y){case 38:g=u>0?1:(A+="\f",-1);break;case 44:i[c++]=(vn(A)-1)*g,g=1;break;case 64:Tn()===45&&(A+=Lu(Ar())),p=Tn(),u=d=vn(C=A+=Rz(Fu())),m++;break;case 45:f===45&&vn(A)==2&&(y=0)}}return o}function sO(t,e,r,n,a,o,s,i,l,c,u){for(var d=a-1,p=a===0?o:[""],h=x1(p),f=0,y=0,v=0;f<n;++f)for(var g=0,m=$l(t,d+1,d=Sz(y=s[f])),C=t;g<h;++g)(C=kR(y>0?p[g]+" "+m:Te(m,/&\f/g,p[g])))&&(l[v++]=C);return Oh(t,e,r,a===0?g1:i,l,c,u)}function kz(t,e,r){return Oh(t,e,r,RR,Ph(Iz()),$l(t,2,-2),0)}function iO(t,e,r,n){return Oh(t,e,r,C1,$l(t,0,n),$l(t,n+1,-1),n)}function ks(t,e){for(var r="",n=x1(t),a=0;a<n;a++)r+=e(t[a],a,t,e)||"";return r}function _z(t,e,r,n){switch(t.type){case xz:if(t.children.length)break;case Cz:case C1:return t.return=t.return||t.value;case RR:return"";case DR:return t.return=t.value+"{"+ks(t.children,n)+"}";case g1:t.value=t.props.join(",")}return vn(r=ks(t.children,n))?t.return=t.value+"{"+r+"}":""}function Uz(t){var e=x1(t);return function(r,n,a,o){for(var s="",i=0;i<e;i++)s+=t[i](r,n,a,o)||"";return s}}function Bz(t){return function(e){e.root||(e=e.return)&&t(e)}}function Mz(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Fz=function(e,r,n){for(var a=0,o=0;a=o,o=Tn(),a===38&&o===12&&(r[n]=1),!zl(o);)Ar();return fc(e,fr)},Lz=function(e,r){var n=-1,a=44;do switch(zl(a)){case 0:a===38&&Tn()===12&&(r[n]=1),e[n]+=Fz(fr-1,r,n);break;case 2:e[n]+=Lu(a);break;case 4:if(a===44){e[++n]=Tn()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ph(a)}while(a=Ar());return e},Nz=function(e,r){return BR(Lz(UR(e),r))},lO=new WeakMap,Gz=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,a=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&&!lO.get(n))&&!a){lO.set(e,!0);for(var o=[],s=Nz(r,o),i=n.props,l=0,c=0;l<s.length;l++)for(var u=0;u<i.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,i[u]):i[u]+" "+s[l]}}},Hz=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function MR(t,e){switch(Az(t,e)){case 5103:return be+"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 be+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return be+t+Xd+t+Ht+t+t;case 6828:case 4268:return be+t+Ht+t+t;case 6165:return be+t+Ht+"flex-"+t+t;case 5187:return be+t+Te(t,/(\w+).+(:[^]+)/,be+"box-$1$2"+Ht+"flex-$1$2")+t;case 5443:return be+t+Ht+"flex-item-"+Te(t,/flex-|-self/,"")+t;case 4675:return be+t+Ht+"flex-line-pack"+Te(t,/align-content|flex-|-self/,"")+t;case 5548:return be+t+Ht+Te(t,"shrink","negative")+t;case 5292:return be+t+Ht+Te(t,"basis","preferred-size")+t;case 6060:return be+"box-"+Te(t,"-grow","")+be+t+Ht+Te(t,"grow","positive")+t;case 4554:return be+Te(t,/([^-])(transform)/g,"$1"+be+"$2")+t;case 6187:return Te(Te(Te(t,/(zoom-|grab)/,be+"$1"),/(image-set)/,be+"$1"),t,"")+t;case 5495:case 3959:return Te(t,/(image-set\([^]*)/,be+"$1$`$1");case 4968:return Te(Te(t,/(.+:)(flex-)?(.*)/,be+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+be+t+t;case 4095:case 3583:case 4068:case 2532:return Te(t,/(.+)-inline(.+)/,be+"$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(vn(t)-1-e>6)switch(Ut(t,e+1)){case 109:if(Ut(t,e+4)!==45)break;case 102:return Te(t,/(.+:)(.+)-([^]+)/,"$1"+be+"$2-$3$1"+Xd+(Ut(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~vy(t,"stretch")?MR(Te(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Ut(t,e+1)!==115)break;case 6444:switch(Ut(t,vn(t)-3-(~vy(t,"!important")&&10))){case 107:return Te(t,":",":"+be)+t;case 101:return Te(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+be+(Ut(t,14)===45?"inline-":"")+"box$3$1"+be+"$2$3$1"+Ht+"$2box$3")+t}break;case 5936:switch(Ut(t,e+11)){case 114:return be+t+Ht+Te(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return be+t+Ht+Te(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return be+t+Ht+Te(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return be+t+Ht+t+t}return t}var jz=function(e,r,n,a){if(e.length>-1&&!e.return)switch(e.type){case C1:e.return=MR(e.value,e.length);break;case DR:return ks([Mi(e,{value:Te(e.value,"@","@"+be)})],a);case g1:if(e.length)return Vz(e.props,function(o){switch(Oz(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ks([Mi(e,{props:[Te(o,/:(read-\w+)/,":"+Xd+"$1")]})],a);case"::placeholder":return ks([Mi(e,{props:[Te(o,/:(plac\w+)/,":"+be+"input-$1")]}),Mi(e,{props:[Te(o,/:(plac\w+)/,":"+Xd+"$1")]}),Mi(e,{props:[Te(o,/:(plac\w+)/,Ht+"input-$1")]})],a)}return""})}},$z=[jz],FR=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(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=e.stylisPlugins||$z,o={},s,i=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),g=1;g<v.length;g++)o[v[g]]=!0;i.push(y)});var l,c=[Gz,Hz];{var u,d=[_z,Bz(function(y){u.insert(y)})],p=Uz(c.concat(a,d)),h=function(v){return ks(Dz(v),p)};l=function(v,g,m,C){u=m,h(v?v+"{"+g.styles+"}":g.styles),C&&(f.inserted[g.name]=!0)}}var f={key:r,sheet:new gz({key:r,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return f.sheet.hydrate(i),f},zz=!0;function qz(t,e,r){var n="";return r.split(" ").forEach(function(a){t[a]!==void 0?e.push(t[a]+";"):a&&(n+=a+" ")}),n}var LR=function(e,r,n){var a=e.key+"-"+r.name;(n===!1||zz===!1)&&e.registered[a]===void 0&&(e.registered[a]=r.styles)},Qz=function(e,r,n){LR(e,r,n);var a=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var o=r;do e.insert(r===o?"."+a:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Kz(t){for(var e=0,r,n=0,a=t.length;a>=4;++n,a-=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(a){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 Wz={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},Yz=!1,Jz=/[A-Z]|^ms/g,Xz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NR=function(e){return e.charCodeAt(1)===45},cO=function(e){return e!=null&&typeof e!="boolean"},Sf=Mz(function(t){return NR(t)?t:t.replace(Jz,"-$&").toLowerCase()}),uO=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Xz,function(n,a,o){return gn={name:a,styles:o,next:gn},a})}return Wz[e]!==1&&!NR(e)&&typeof r=="number"&&r!==0?r+"px":r},Zz="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ql(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 a=r;if(a.anim===1)return gn={name:a.name,styles:a.styles,next:gn},a.name;var o=r;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)gn={name:s.name,styles:s.styles,next:gn},s=s.next;var i=o.styles+";";return i}return eq(t,e,r)}case"function":{if(t!==void 0){var l=gn,c=r(t);return gn=l,ql(t,e,c)}break}}var u=r;if(e==null)return u;var d=e[u];return d!==void 0?d:u}function eq(t,e,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=ql(t,e,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object"){var i=s;e!=null&&e[i]!==void 0?n+=o+"{"+e[i]+"}":cO(i)&&(n+=Sf(o)+":"+uO(o,i)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&Yz)throw new Error(Zz);if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)cO(s[l])&&(n+=Sf(o)+":"+uO(o,s[l])+";");else{var c=ql(t,e,s);switch(o){case"animation":case"animationName":{n+=Sf(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}}return n}var dO=/label:\s*([^\s;{]+)\s*(;|$)/g,gn;function tq(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,a="";gn=void 0;var o=t[0];if(o==null||o.raw===void 0)n=!1,a+=ql(r,e,o);else{var s=o;a+=s[0]}for(var i=1;i<t.length;i++)if(a+=ql(r,e,t[i]),n){var l=o;a+=l[i]}dO.lastIndex=0;for(var c="",u;(u=dO.exec(a))!==null;)c+="-"+u[1];var d=Kz(a)+c;return{name:d,styles:a,next:gn}}var rq=function(e){return e()},GR=Af["useInsertionEffect"]?Af["useInsertionEffect"]:!1,nq=GR||rq,rK=GR||B.useLayoutEffect,aq=!1,HR=B.createContext(typeof HTMLElement<"u"?FR({key:"css"}):null),oq=HR.Provider,sq=function(e){return B.forwardRef(function(r,n){var a=B.useContext(HR);return e(r,a,n)})},iq=B.createContext({}),jR={}.hasOwnProperty,Cy="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nK=function(e,r){var n={};for(var a in r)jR.call(r,a)&&(n[a]=r[a]);return n[Cy]=e,n},lq=function(e){var r=e.cache,n=e.serialized,a=e.isStringTag;return LR(r,n,a),nq(function(){return Qz(r,n,a)}),null},cq=sq(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var a=t[Cy],o=[n],s="";typeof t.className=="string"?s=qz(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var i=tq(o,void 0,B.useContext(iq));s+=e.key+"-"+i.name;var l={};for(var c in t)jR.call(t,c)&&c!=="css"&&c!==Cy&&!aq&&(l[c]=t[c]);return l.className=s,r&&(l.ref=r),B.createElement(B.Fragment,null,B.createElement(lq,{cache:e,serialized:i,isStringTag:typeof a=="string"}),B.createElement(a,l))}),aK=cq;function uq(t,e){const r=FR({key:"css",prepend:t});if(e){const n=r.insert;r.insert=(...a)=>(a[1].styles.match(/^@layer\s+[^{]*$/)||(a[1].styles=`@layer mui {${a[1].styles}}`),n(...a))}return r}const Pf=new Map;function dq(t){const{injectFirst:e,enableCssLayer:r,children:n}=t,a=B.useMemo(()=>{const o=`${e}-${r}`;if(typeof document=="object"&&Pf.has(o))return Pf.get(o);const s=uq(e,r);return Pf.set(o,s),s},[e,r]);return e||r?ie.jsx(oq,{value:a,children:n}):n}class pq extends B.Component{constructor(){super(...arguments);Rr(this,"state",{hasError:!1,error:void 0});Rr(this,"handleReset",()=>{this.setState({hasError:!1,error:void 0}),window.location.reload()})}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,n){console.error("Uncaught error:",r,n)}render(){const{hasError:r,error:n}=this.state;return r?ie.jsx("div",{className:"min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center px-4 py-12",children:ie.jsxs("div",{className:"w-full max-w-screen-xl px-[10%] text-center",children:[ie.jsx("img",{src:"/img/others/img-2.png",alt:"Something went wrong illustration",className:"w-64 mx-auto mb-8"}),ie.jsx("h2",{className:"text-4xl font-bold text-red-600 dark:text-red-400 mb-4",children:"Something Went Wrong"}),ie.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-lg mb-6",children:"An unexpected error occurred. Try refreshing the page or contact support if the issue persists."}),ie.jsxs("div",{className:"mt-6 flex justify-center gap-4 flex-wrap",children:[ie.jsx("button",{onClick:this.handleReset,className:"bg-orange-700 hover:bg-orange-800 text-white px-6 py-2.5 rounded-md transition",children:"Reload Page"}),ie.jsx("a",{href:"/",className:"bg-orange-700 hover:bg-orange-800 text-white px-6 py-2.5 rounded-md transition",children:"Go Home"})]})]})}):this.props.children}}async function hq(){await CM();const{microsoftCliendId:t,microsoftLoginUri:e,googleMapKey:r}=Wt,n=new Wg({auth:{clientId:t,authority:e,redirectUri:window.location.origin}}),a=document.createElement("script");a.src=`https://maps.googleapis.com/maps/api/js?key=${r}&libraries=places`,document.head.appendChild(a),Of.createRoot(document.getElementById("root")).render(ie.jsx(Nr.StrictMode,{children:ie.jsx(dq,{injectFirst:!0,children:ie.jsx(pq,{children:ie.jsx(fz,{msalInstance:n})})})}))}hq();export{tz as $,_Q as A,rg as B,EQ as C,AM as D,XQ as E,ZQ as F,me as G,JQ as H,$Q as I,RQ as J,DQ as K,Sq as L,Mo as M,Sd as N,Fp as O,Vx as P,he as Q,Nr as R,wq as S,bq as T,VM as U,IM as V,wu as W,Pd as X,wN as Y,$i as Z,Un as _,zN as a,OH as a$,jv as a0,Es as a1,yw as a2,zv as a3,vw as a4,Mq as a5,vQ as a6,Gq as a7,Hq as a8,O3 as a9,Pq as aA,nE as aB,fh as aC,Af as aD,Ga as aE,NQ as aF,LQ as aG,jQ as aH,Yg as aI,Hd as aJ,Js as aK,xH as aL,ny as aM,uH as aN,aE as aO,cH as aP,mH as aQ,fH as aR,cc as aS,pQ as aT,sE as aU,oE as aV,XP as aW,hH as aX,lH as aY,iH as aZ,dH as a_,Lq as aa,Aq as ab,Tq as ac,IQ as ad,Eq as ae,gq as af,oM as ag,Cq as ah,Wt as ai,P3 as aj,Iq as ak,jq as al,cb as am,xq as an,vU as ao,ge as ap,o8 as aq,Xt as ar,Ki as as,nc as at,rE as au,nQ as av,tQ as aw,rQ as ax,vq as ay,HN as az,SQ as b,qz as b$,iQ as b0,sH as b1,dQ as b2,sQ as b3,yH as b4,uQ as b5,pH as b6,lQ as b7,cQ as b8,mp as b9,i8 as bA,kQ as bB,BQ as bC,Xq as bD,Zq as bE,ez as bF,iz as bG,nz as bH,rz as bI,az as bJ,og as bK,gQ as bL,FQ as bM,UQ as bN,Jq as bO,V3 as bP,w3 as bQ,b3 as bR,hx as bS,Rn as bT,oc as bU,YS as bV,I3 as bW,eh as bX,Mz as bY,sq as bZ,iq as b_,qN as ba,sD as bb,Rq as bc,oz as bd,DI as be,mQ as bf,VQ as bg,wQ as bh,Dq as bi,kq as bj,bQ as bk,OQ as bl,AQ as bm,Uq as bn,z$ as bo,ER as bp,IN as bq,Yq as br,ab as bs,mq as bt,kH as bu,xQ as bv,eQ as bw,PQ as bx,CQ as by,ob as bz,Zn as c,tq as c0,LR as c1,nq as c2,Qz as c3,dq as c4,Lm as c5,_H as c6,Ke as c7,hj as c8,Jg as c9,pE as ca,jR as cb,aK as cc,nK as cd,rK as ce,yQ as cf,fQ as cg,_q as ch,yq as ci,GQ as cj,HQ as ck,Vq as cl,Bq as cm,Pv as cn,QQ as co,YQ as cp,Oq as cq,Xv as cr,$s as cs,en as ct,Gp as cu,zp as cv,aQ as d,Hr as e,oQ as f,ti as g,Mn as h,Bn as i,ie as j,TM as k,WQ as l,KQ as m,Xp as n,Fr as o,A3 as p,MQ as q,B as r,Fq as s,qQ as t,ia as u,tK as v,Nq as w,eK as x,zQ as y,TQ as z};
|