@elizaos/client 1.5.5-alpha.10
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/LICENSE +21 -0
- package/README.md +350 -0
- package/dist/assets/empty-module-CLMscLYw.js +1 -0
- package/dist/assets/main-BBZ_3lkn.css +5999 -0
- package/dist/assets/main-C5zNUkXH.js +7 -0
- package/dist/assets/main-Dz64ENQg.js +614 -0
- package/dist/assets/react-vendor-DM5m98rr.js +545 -0
- package/dist/assets/ui-vendor-BQCqNqg0.js +1 -0
- package/dist/elizaos-avatar.png +0 -0
- package/dist/elizaos-icon.png +0 -0
- package/dist/elizaos-logo-light.png +0 -0
- package/dist/elizaos.webp +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/images/agents/agent1.png +0 -0
- package/dist/images/agents/agent2.png +0 -0
- package/dist/images/agents/agent3.png +0 -0
- package/dist/images/agents/agent4.png +0 -0
- package/dist/images/agents/agent5.png +0 -0
- package/dist/index.html +14 -0
- package/index.html +24 -0
- package/package.json +159 -0
- package/postcss.config.js +3 -0
- package/public/elizaos-avatar.png +0 -0
- package/public/elizaos-icon.png +0 -0
- package/public/elizaos-logo-light.png +0 -0
- package/public/elizaos.webp +0 -0
- package/public/favicon.ico +0 -0
- package/public/images/agents/agent1.png +0 -0
- package/public/images/agents/agent2.png +0 -0
- package/public/images/agents/agent3.png +0 -0
- package/public/images/agents/agent4.png +0 -0
- package/public/images/agents/agent5.png +0 -0
- package/src/App.tsx +222 -0
- package/src/components/AgentDetailsPanel.tsx +147 -0
- package/src/components/ChatInputArea.tsx +196 -0
- package/src/components/ChatMessageListComponent.tsx +139 -0
- package/src/components/actionTool.tsx +186 -0
- package/src/components/add-agent-card.tsx +77 -0
- package/src/components/agent-action-viewer.tsx +816 -0
- package/src/components/agent-avatar-stack.tsx +121 -0
- package/src/components/agent-card.cy.tsx +259 -0
- package/src/components/agent-card.tsx +177 -0
- package/src/components/agent-creator.tsx +142 -0
- package/src/components/agent-log-viewer.tsx +645 -0
- package/src/components/agent-memory-edit-overlay.tsx +461 -0
- package/src/components/agent-memory-viewer.tsx +504 -0
- package/src/components/agent-settings.tsx +270 -0
- package/src/components/agent-sidebar.tsx +178 -0
- package/src/components/api-key-dialog.tsx +113 -0
- package/src/components/app-sidebar.tsx +685 -0
- package/src/components/array-input.tsx +116 -0
- package/src/components/audio-recorder.tsx +292 -0
- package/src/components/avatar-panel.tsx +141 -0
- package/src/components/character-form.tsx +1138 -0
- package/src/components/chat.tsx +1813 -0
- package/src/components/combobox.tsx +187 -0
- package/src/components/confirmation-dialog.tsx +59 -0
- package/src/components/connection-error-banner.tsx +101 -0
- package/src/components/connection-status.cy.tsx +73 -0
- package/src/components/connection-status.tsx +155 -0
- package/src/components/copy-button.tsx +35 -0
- package/src/components/delete-button.tsx +24 -0
- package/src/components/env-settings.tsx +261 -0
- package/src/components/group-card.tsx +160 -0
- package/src/components/group-panel.tsx +543 -0
- package/src/components/input-copy.tsx +21 -0
- package/src/components/logs-page.tsx +41 -0
- package/src/components/media-content.tsx +385 -0
- package/src/components/memory-graph.tsx +170 -0
- package/src/components/missing-secrets-dialog.tsx +72 -0
- package/src/components/onboarding-tour.tsx +247 -0
- package/src/components/page-title.tsx +8 -0
- package/src/components/plugins-panel.tsx +383 -0
- package/src/components/profile-card.tsx +66 -0
- package/src/components/profile-overlay.tsx +283 -0
- package/src/components/retry-button.tsx +28 -0
- package/src/components/secret-panel.tsx +1505 -0
- package/src/components/server-management.tsx +264 -0
- package/src/components/split-button.tsx +148 -0
- package/src/components/stop-agent-button.tsx +99 -0
- package/src/components/ui/alert-dialog.cy.tsx +333 -0
- package/src/components/ui/alert-dialog.tsx +115 -0
- package/src/components/ui/alert.tsx +49 -0
- package/src/components/ui/avatar.cy.tsx +180 -0
- package/src/components/ui/avatar.tsx +57 -0
- package/src/components/ui/badge.cy.tsx +146 -0
- package/src/components/ui/badge.tsx +43 -0
- package/src/components/ui/button.cy.tsx +177 -0
- package/src/components/ui/button.tsx +56 -0
- package/src/components/ui/card.cy.tsx +160 -0
- package/src/components/ui/card.tsx +73 -0
- package/src/components/ui/chat/animated-markdown.tsx +59 -0
- package/src/components/ui/chat/chat-bubble.tsx +178 -0
- package/src/components/ui/chat/chat-container.tsx +51 -0
- package/src/components/ui/chat/chat-input.cy.tsx +169 -0
- package/src/components/ui/chat/chat-input.tsx +47 -0
- package/src/components/ui/chat/chat-message-list.tsx +61 -0
- package/src/components/ui/chat/chat-tts-button.tsx +199 -0
- package/src/components/ui/chat/code-block.tsx +79 -0
- package/src/components/ui/chat/expandable-chat.tsx +131 -0
- package/src/components/ui/chat/hooks/useAutoScroll.ts +86 -0
- package/src/components/ui/chat/markdown.tsx +209 -0
- package/src/components/ui/chat/message-loading.tsx +48 -0
- package/src/components/ui/checkbox.cy.tsx +170 -0
- package/src/components/ui/checkbox.tsx +30 -0
- package/src/components/ui/collapsible.cy.tsx +283 -0
- package/src/components/ui/collapsible.tsx +9 -0
- package/src/components/ui/command.cy.tsx +313 -0
- package/src/components/ui/command.tsx +143 -0
- package/src/components/ui/dialog.cy.tsx +279 -0
- package/src/components/ui/dialog.tsx +104 -0
- package/src/components/ui/dropdown-menu.cy.tsx +273 -0
- package/src/components/ui/dropdown-menu.tsx +281 -0
- package/src/components/ui/input.cy.tsx +82 -0
- package/src/components/ui/input.tsx +27 -0
- package/src/components/ui/label.cy.tsx +157 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/resizable.tsx +42 -0
- package/src/components/ui/scroll-area.cy.tsx +242 -0
- package/src/components/ui/scroll-area.tsx +46 -0
- package/src/components/ui/select.cy.tsx +277 -0
- package/src/components/ui/select.tsx +155 -0
- package/src/components/ui/separator.cy.tsx +145 -0
- package/src/components/ui/separator.tsx +29 -0
- package/src/components/ui/sheet.cy.tsx +324 -0
- package/src/components/ui/sheet.tsx +119 -0
- package/src/components/ui/sidebar.tsx +734 -0
- package/src/components/ui/skeleton.cy.tsx +149 -0
- package/src/components/ui/skeleton.tsx +17 -0
- package/src/components/ui/split-button.cy.tsx +274 -0
- package/src/components/ui/split-button.tsx +112 -0
- package/src/components/ui/switch.tsx +28 -0
- package/src/components/ui/tabs.cy.tsx +271 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.cy.tsx +136 -0
- package/src/components/ui/textarea.tsx +26 -0
- package/src/components/ui/toast.cy.tsx +209 -0
- package/src/components/ui/toast.tsx +126 -0
- package/src/components/ui/toaster.tsx +29 -0
- package/src/components/ui/tooltip.cy.tsx +244 -0
- package/src/components/ui/tooltip.tsx +30 -0
- package/src/config/agent-templates.ts +349 -0
- package/src/config/voice-models.ts +181 -0
- package/src/constants.ts +23 -0
- package/src/context/AuthContext.tsx +44 -0
- package/src/context/ConnectionContext.tsx +194 -0
- package/src/entry.tsx +9 -0
- package/src/hooks/__tests__/use-agent-tab-state.test.ts +137 -0
- package/src/hooks/__tests__/use-agent-update.test.tsx +250 -0
- package/src/hooks/__tests__/use-character-convert.test.ts +102 -0
- package/src/hooks/__tests__/use-panel-width-state.test.ts +243 -0
- package/src/hooks/__tests__/use-sidebar-state.test.ts +117 -0
- package/src/hooks/use-agent-management.ts +130 -0
- package/src/hooks/use-agent-tab-state.ts +74 -0
- package/src/hooks/use-agent-update.ts +469 -0
- package/src/hooks/use-character-convert.ts +138 -0
- package/src/hooks/use-confirmation.ts +55 -0
- package/src/hooks/use-delete-agent.ts +123 -0
- package/src/hooks/use-dm-channels.ts +198 -0
- package/src/hooks/use-elevenlabs-voices.ts +83 -0
- package/src/hooks/use-file-upload.ts +224 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/hooks/use-onboarding.tsx +49 -0
- package/src/hooks/use-panel-width-state.ts +147 -0
- package/src/hooks/use-partial-update.ts +288 -0
- package/src/hooks/use-plugin-details.ts +462 -0
- package/src/hooks/use-plugins.ts +119 -0
- package/src/hooks/use-query-hooks.ts +1263 -0
- package/src/hooks/use-server-agents.ts +62 -0
- package/src/hooks/use-server-version.tsx +47 -0
- package/src/hooks/use-sidebar-state.ts +50 -0
- package/src/hooks/use-socket-chat.ts +264 -0
- package/src/hooks/use-toast.ts +260 -0
- package/src/hooks/use-version.tsx +64 -0
- package/src/index.css +146 -0
- package/src/lib/api-client-config.ts +53 -0
- package/src/lib/api-type-mappers.ts +196 -0
- package/src/lib/export-utils.ts +123 -0
- package/src/lib/logger.ts +19 -0
- package/src/lib/media-utils.ts +170 -0
- package/src/lib/pca.test.ts +17 -0
- package/src/lib/pca.ts +52 -0
- package/src/lib/socketio-manager.ts +664 -0
- package/src/lib/utils.ts +168 -0
- package/src/main.tsx +16 -0
- package/src/mocks/empty-module.ts +12 -0
- package/src/mocks/node-module.ts +57 -0
- package/src/polyfills.ts +37 -0
- package/src/routes/agent-detail.tsx +30 -0
- package/src/routes/agent-list.tsx +27 -0
- package/src/routes/agent-settings.tsx +48 -0
- package/src/routes/character-detail.tsx +52 -0
- package/src/routes/character-form.tsx +79 -0
- package/src/routes/character-list.tsx +38 -0
- package/src/routes/chat.tsx +128 -0
- package/src/routes/createAgent.tsx +13 -0
- package/src/routes/group-new.tsx +50 -0
- package/src/routes/group.tsx +29 -0
- package/src/routes/home.tsx +218 -0
- package/src/routes/not-found.tsx +71 -0
- package/src/test/setup.ts +154 -0
- package/src/types/crypto-browserify.d.ts +4 -0
- package/src/types/index.ts +13 -0
- package/src/types/rooms.ts +8 -0
- package/src/types.ts +84 -0
- package/src/vite-env.d.ts +40 -0
- package/tailwind.config.ts +90 -0
- package/tsconfig.json +10 -0
- package/vite.config.ts +102 -0
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import{c as ge,a as vh}from"./ui-vendor-BQCqNqg0.js";function rM(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(o,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),r}var Cp={exports:{}},Ol={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var w0;function iM(){if(w0)return Ol;w0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,a,s){var u=null;if(s!==void 0&&(u=""+s),a.key!==void 0&&(u=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:o,key:u,ref:a!==void 0?a:null,props:s}}return Ol.Fragment=t,Ol.jsx=r,Ol.jsxs=r,Ol}var E0;function oM(){return E0||(E0=1,Cp.exports=iM()),Cp.exports}var k=oM(),Tp={exports:{}},Ie={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var C0;function aM(){if(C0)return Ie;C0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=g&&R[g]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function T(R,$,fe){this.props=R,this.context=$,this.refs=x,this.updater=fe||S}T.prototype.isReactComponent={},T.prototype.setState=function(R,$){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,$,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function E(){}E.prototype=T.prototype;function O(R,$,fe){this.props=R,this.context=$,this.refs=x,this.updater=fe||S}var _=O.prototype=new E;_.constructor=O,w(_,T.prototype),_.isPureReactComponent=!0;var L=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},D=Object.prototype.hasOwnProperty;function I(R,$,fe,A,te,he){return fe=he.ref,{$$typeof:e,type:R,key:$,ref:fe!==void 0?fe:null,props:he}}function G(R,$){return I(R.type,$,void 0,void 0,void 0,R.props)}function X(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function Z(R){var $={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(fe){return $[fe]})}var Q=/\/+/g;function W(R,$){return typeof R=="object"&&R!==null&&R.key!=null?Z(""+R.key):$.toString(36)}function ue(){}function F(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ue,ue):(R.status="pending",R.then(function($){R.status==="pending"&&(R.status="fulfilled",R.value=$)},function($){R.status==="pending"&&(R.status="rejected",R.reason=$)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function oe(R,$,fe,A,te){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var ie=!1;if(R===null)ie=!0;else switch(he){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(R.$$typeof){case e:case t:ie=!0;break;case m:return ie=R._init,oe(ie(R._payload),$,fe,A,te)}}if(ie)return te=te(R),ie=A===""?"."+W(R,0):A,L(te)?(fe="",ie!=null&&(fe=ie.replace(Q,"$&/")+"/"),oe(te,$,fe,"",function(Ee){return Ee})):te!=null&&(X(te)&&(te=G(te,fe+(te.key==null||R&&R.key===te.key?"":(""+te.key).replace(Q,"$&/")+"/")+ie)),$.push(te)),1;ie=0;var Y=A===""?".":A+":";if(L(R))for(var ce=0;ce<R.length;ce++)A=R[ce],he=Y+W(A,ce),ie+=oe(A,$,fe,he,te);else if(ce=v(R),typeof ce=="function")for(R=ce.call(R),ce=0;!(A=R.next()).done;)A=A.value,he=Y+W(A,ce++),ie+=oe(A,$,fe,he,te);else if(he==="object"){if(typeof R.then=="function")return oe(F(R),$,fe,A,te);throw $=String(R),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return ie}function z(R,$,fe){if(R==null)return R;var A=[],te=0;return oe(R,A,"","",function(he){return $.call(fe,he,te++)}),A}function K(R){if(R._status===-1){var $=R._result;$=$(),$.then(function(fe){(R._status===0||R._status===-1)&&(R._status=1,R._result=fe)},function(fe){(R._status===0||R._status===-1)&&(R._status=2,R._result=fe)}),R._status===-1&&(R._status=0,R._result=$)}if(R._status===1)return R._result.default;throw R._result}var ee=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function le(){}return Ie.Children={map:z,forEach:function(R,$,fe){z(R,function(){$.apply(this,arguments)},fe)},count:function(R){var $=0;return z(R,function(){$++}),$},toArray:function(R){return z(R,function($){return $})||[]},only:function(R){if(!X(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Ie.Component=T,Ie.Fragment=r,Ie.Profiler=a,Ie.PureComponent=O,Ie.StrictMode=o,Ie.Suspense=d,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(R){return P.H.useMemoCache(R)}},Ie.cache=function(R){return function(){return R.apply(null,arguments)}},Ie.cloneElement=function(R,$,fe){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var A=w({},R.props),te=R.key,he=void 0;if($!=null)for(ie in $.ref!==void 0&&(he=void 0),$.key!==void 0&&(te=""+$.key),$)!D.call($,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&$.ref===void 0||(A[ie]=$[ie]);var ie=arguments.length-2;if(ie===1)A.children=fe;else if(1<ie){for(var Y=Array(ie),ce=0;ce<ie;ce++)Y[ce]=arguments[ce+2];A.children=Y}return I(R.type,te,void 0,void 0,he,A)},Ie.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:s,_context:R},R},Ie.createElement=function(R,$,fe){var A,te={},he=null;if($!=null)for(A in $.key!==void 0&&(he=""+$.key),$)D.call($,A)&&A!=="key"&&A!=="__self"&&A!=="__source"&&(te[A]=$[A]);var ie=arguments.length-2;if(ie===1)te.children=fe;else if(1<ie){for(var Y=Array(ie),ce=0;ce<ie;ce++)Y[ce]=arguments[ce+2];te.children=Y}if(R&&R.defaultProps)for(A in ie=R.defaultProps,ie)te[A]===void 0&&(te[A]=ie[A]);return I(R,he,void 0,void 0,null,te)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(R){return{$$typeof:f,render:R}},Ie.isValidElement=X,Ie.lazy=function(R){return{$$typeof:m,_payload:{_status:-1,_result:R},_init:K}},Ie.memo=function(R,$){return{$$typeof:p,type:R,compare:$===void 0?null:$}},Ie.startTransition=function(R){var $=P.T,fe={};P.T=fe;try{var A=R(),te=P.S;te!==null&&te(fe,A),typeof A=="object"&&A!==null&&typeof A.then=="function"&&A.then(le,ee)}catch(he){ee(he)}finally{P.T=$}},Ie.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Ie.use=function(R){return P.H.use(R)},Ie.useActionState=function(R,$,fe){return P.H.useActionState(R,$,fe)},Ie.useCallback=function(R,$){return P.H.useCallback(R,$)},Ie.useContext=function(R){return P.H.useContext(R)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(R,$){return P.H.useDeferredValue(R,$)},Ie.useEffect=function(R,$,fe){var A=P.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return A.useEffect(R,$)},Ie.useId=function(){return P.H.useId()},Ie.useImperativeHandle=function(R,$,fe){return P.H.useImperativeHandle(R,$,fe)},Ie.useInsertionEffect=function(R,$){return P.H.useInsertionEffect(R,$)},Ie.useLayoutEffect=function(R,$){return P.H.useLayoutEffect(R,$)},Ie.useMemo=function(R,$){return P.H.useMemo(R,$)},Ie.useOptimistic=function(R,$){return P.H.useOptimistic(R,$)},Ie.useReducer=function(R,$,fe){return P.H.useReducer(R,$,fe)},Ie.useRef=function(R){return P.H.useRef(R)},Ie.useState=function(R){return P.H.useState(R)},Ie.useSyncExternalStore=function(R,$,fe){return P.H.useSyncExternalStore(R,$,fe)},Ie.useTransition=function(){return P.H.useTransition()},Ie.version="19.1.0",Ie}var T0;function Tc(){return T0||(T0=1,Tp.exports=aM()),Tp.exports}var b=Tc();const Me=qr(b),um=rM({__proto__:null,default:Me},[b]);var Rp={exports:{}},Al={},Op={exports:{}},Ap={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var R0;function lM(){return R0||(R0=1,function(e){function t(z,K){var ee=z.length;z.push(K);e:for(;0<ee;){var le=ee-1>>>1,R=z[le];if(0<a(R,K))z[le]=K,z[ee]=R,ee=le;else break e}}function r(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var K=z[0],ee=z.pop();if(ee!==K){z[0]=ee;e:for(var le=0,R=z.length,$=R>>>1;le<$;){var fe=2*(le+1)-1,A=z[fe],te=fe+1,he=z[te];if(0>a(A,ee))te<R&&0>a(he,A)?(z[le]=he,z[te]=ee,le=te):(z[le]=A,z[fe]=ee,le=fe);else if(te<R&&0>a(he,ee))z[le]=he,z[te]=ee,le=te;else break e}}return K}function a(z,K){var ee=z.sortIndex-K.sortIndex;return ee!==0?ee:z.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],m=1,g=null,v=3,S=!1,w=!1,x=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function L(z){for(var K=r(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=z)o(p),K.sortIndex=K.expirationTime,t(d,K);else break;K=r(p)}}function P(z){if(x=!1,L(z),!w)if(r(d)!==null)w=!0,D||(D=!0,W());else{var K=r(p);K!==null&&oe(P,K.startTime-z)}}var D=!1,I=-1,G=5,X=-1;function Z(){return T?!0:!(e.unstable_now()-X<G)}function Q(){if(T=!1,D){var z=e.unstable_now();X=z;var K=!0;try{e:{w=!1,x&&(x=!1,O(I),I=-1),S=!0;var ee=v;try{t:{for(L(z),g=r(d);g!==null&&!(g.expirationTime>z&&Z());){var le=g.callback;if(typeof le=="function"){g.callback=null,v=g.priorityLevel;var R=le(g.expirationTime<=z);if(z=e.unstable_now(),typeof R=="function"){g.callback=R,L(z),K=!0;break t}g===r(d)&&o(d),L(z)}else o(d);g=r(d)}if(g!==null)K=!0;else{var $=r(p);$!==null&&oe(P,$.startTime-z),K=!1}}break e}finally{g=null,v=ee,S=!1}K=void 0}}finally{K?W():D=!1}}}var W;if(typeof _=="function")W=function(){_(Q)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,F=ue.port2;ue.port1.onmessage=Q,W=function(){F.postMessage(null)}}else W=function(){E(Q,0)};function oe(z,K){I=E(function(){z(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(z){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var ee=v;v=K;try{return z()}finally{v=ee}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=v;v=z;try{return K()}finally{v=ee}},e.unstable_scheduleCallback=function(z,K,ee){var le=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?le+ee:le):ee=le,z){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ee+R,z={id:m++,callback:K,priorityLevel:z,startTime:ee,expirationTime:R,sortIndex:-1},ee>le?(z.sortIndex=ee,t(p,z),r(d)===null&&z===r(p)&&(x?(O(I),I=-1):x=!0,oe(P,ee-le))):(z.sortIndex=R,t(d,z),w||S||(w=!0,D||(D=!0,W()))),z},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(z){var K=v;return function(){var ee=v;v=K;try{return z.apply(this,arguments)}finally{v=ee}}}}(Ap)),Ap}var O0;function sM(){return O0||(O0=1,Op.exports=lM()),Op.exports}var Mp={exports:{}},Ut={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var A0;function uM(){if(A0)return Ut;A0=1;var e=Tc();function t(d){var p="https://react.dev/errors/"+d;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(d,p,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:p,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,p){if(d==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ut.createPortal=function(d,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(d,p,null,m)},Ut.flushSync=function(d){var p=u.T,m=o.p;try{if(u.T=null,o.p=2,d)return d()}finally{u.T=p,o.p=m,o.d.f()}},Ut.preconnect=function(d,p){typeof d=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(d,p))},Ut.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},Ut.preinit=function(d,p){if(typeof d=="string"&&p&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?o.d.S(d,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):m==="script"&&o.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(d,p){if(typeof d=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=f(p.as,p.crossOrigin);o.d.M(d,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(d)},Ut.preload=function(d,p){if(typeof d=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,g=f(m,p.crossOrigin);o.d.L(d,m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(d,p){if(typeof d=="string")if(p){var m=f(p.as,p.crossOrigin);o.d.m(d,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(d)},Ut.requestFormReset=function(d){o.d.r(d)},Ut.unstable_batchedUpdates=function(d,p){return d(p)},Ut.useFormState=function(d,p,m){return u.H.useFormState(d,p,m)},Ut.useFormStatus=function(){return u.H.useHostTransitionStatus()},Ut.version="19.1.0",Ut}var M0;function XS(){if(M0)return Mp.exports;M0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Mp.exports=uM(),Mp.exports}var _0;function cM(){if(_0)return Al;_0=1;/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var e=sM(),t=Tc(),r=XS();function o(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,i.flags&4098&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function f(n){if(s(n)!==n)throw Error(o(188))}function d(n){var i=n.alternate;if(!i){if(i=s(n),i===null)throw Error(o(188));return i!==n?null:n}for(var l=n,c=i;;){var h=l.return;if(h===null)break;var y=h.alternate;if(y===null){if(c=h.return,c!==null){l=c;continue}break}if(h.child===y.child){for(y=h.child;y;){if(y===l)return f(h),n;if(y===c)return f(h),i;y=y.sibling}throw Error(o(188))}if(l.return!==c.return)l=h,c=y;else{for(var C=!1,M=h.child;M;){if(M===l){C=!0,l=h,c=y;break}if(M===c){C=!0,c=h,l=y;break}M=M.sibling}if(!C){for(M=y.child;M;){if(M===l){C=!0,l=y,c=h;break}if(M===c){C=!0,c=y,l=h;break}M=M.sibling}if(!C)throw Error(o(189))}}if(l.alternate!==c)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?n:i}function p(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=p(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),_=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function W(n){return n===null||typeof n!="object"?null:(n=Q&&n[Q]||n["@@iterator"],typeof n=="function"?n:null)}var ue=Symbol.for("react.client.reference");function F(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ue?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case w:return"Fragment";case T:return"Profiler";case x:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case _:return(n.displayName||"Context")+".Provider";case O:return(n._context.displayName||"Context")+".Consumer";case L:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return i=n.displayName||null,i!==null?i:F(n.type)||"Memo";case G:i=n._payload,n=n._init;try{return F(n(i))}catch{}}return null}var oe=Array.isArray,z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},le=[],R=-1;function $(n){return{current:n}}function fe(n){0>R||(n.current=le[R],le[R]=null,R--)}function A(n,i){R++,le[R]=n.current,n.current=i}var te=$(null),he=$(null),ie=$(null),Y=$(null);function ce(n,i){switch(A(ie,i),A(he,n),A(te,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?Xb(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=Xb(i),n=Wb(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}fe(te),A(te,n)}function Ee(){fe(te),fe(he),fe(ie)}function Ce(n){n.memoizedState!==null&&A(Y,n);var i=te.current,l=Wb(i,n.type);i!==l&&(A(he,n),A(te,l))}function Ne(n){he.current===n&&(fe(te),fe(he)),Y.current===n&&(fe(Y),wl._currentValue=ee)}var Fe=Object.prototype.hasOwnProperty,ze=e.unstable_scheduleCallback,st=e.unstable_cancelCallback,Yt=e.unstable_shouldYield,on=e.unstable_requestPaint,bt=e.unstable_now,Ot=e.unstable_getCurrentPriorityLevel,Gr=e.unstable_ImmediatePriority,Oi=e.unstable_UserBlockingPriority,Sn=e.unstable_NormalPriority,uo=e.unstable_LowPriority,co=e.unstable_IdlePriority,ff=e.log,df=e.unstable_setDisableYieldValue,ne=null,de=null;function Re(n){if(typeof ff=="function"&&df(n),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(ne,n)}catch{}}var _e=Math.clz32?Math.clz32:Sr,Ze=Math.log,an=Math.LN2;function Sr(n){return n>>>=0,n===0?32:31-(Ze(n)/an|0)|0}var Kt=256,Wn=4194304;function ln(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function At(n,i,l){var c=n.pendingLanes;if(c===0)return 0;var h=0,y=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var M=c&134217727;return M!==0?(c=M&~y,c!==0?h=ln(c):(C&=M,C!==0?h=ln(C):l||(l=M&~n,l!==0&&(h=ln(l))))):(M=c&~y,M!==0?h=ln(M):C!==0?h=ln(C):l||(l=c&~n,l!==0&&(h=ln(l)))),h===0?0:i!==0&&i!==h&&!(i&y)&&(y=h&-h,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:h}function xn(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function In(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ng(){var n=Kt;return Kt<<=1,!(Kt&4194048)&&(Kt=256),n}function Pg(){var n=Wn;return Wn<<=1,!(Wn&62914560)&&(Wn=4194304),n}function pf(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function Da(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function GR(n,i,l,c,h,y){var C=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var M=n.entanglements,N=n.expirationTimes,H=n.hiddenUpdates;for(l=C&~l;0<l;){var re=31-_e(l),se=1<<re;M[re]=0,N[re]=-1;var q=H[re];if(q!==null)for(H[re]=null,re=0;re<q.length;re++){var V=q[re];V!==null&&(V.lane&=-536870913)}l&=~se}c!==0&&Lg(n,c,0),y!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=y&~(C&~i))}function Lg(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-_e(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|l&4194090}function zg(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var c=31-_e(l),h=1<<c;h&i|n[c]&i&&(n[c]|=i),l&=~h}}function hf(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function mf(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function Ig(){var n=K.p;return n!==0?n:(n=window.event,n===void 0?32:g0(n.type))}function $R(n,i){var l=K.p;try{return K.p=n,i()}finally{K.p=l}}var $r=Math.random().toString(36).slice(2),It="__reactFiber$"+$r,Qt="__reactProps$"+$r,fo="__reactContainer$"+$r,gf="__reactEvents$"+$r,YR="__reactListeners$"+$r,KR="__reactHandles$"+$r,jg="__reactResources$"+$r,Na="__reactMarker$"+$r;function yf(n){delete n[It],delete n[Qt],delete n[gf],delete n[YR],delete n[KR]}function po(n){var i=n[It];if(i)return i;for(var l=n.parentNode;l;){if(i=l[fo]||l[It]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=t0(n);n!==null;){if(l=n[It])return l;n=t0(n)}return i}n=l,l=n.parentNode}return null}function ho(n){if(n=n[It]||n[fo]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function Pa(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(o(33))}function mo(n){var i=n[jg];return i||(i=n[jg]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Mt(n){n[Na]=!0}var Ug=new Set,Bg={};function Ai(n,i){go(n,i),go(n+"Capture",i)}function go(n,i){for(Bg[n]=i,n=0;n<i.length;n++)Ug.add(i[n])}var QR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hg={},Fg={};function XR(n){return Fe.call(Fg,n)?!0:Fe.call(Hg,n)?!1:QR.test(n)?Fg[n]=!0:(Hg[n]=!0,!1)}function Ts(n,i,l){if(XR(i))if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+l)}}function Rs(n,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+l)}}function xr(n,i,l,c){if(c===null)n.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(i,l,""+c)}}var vf,qg;function yo(n){if(vf===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);vf=i&&i[1]||"",qg=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+vf+n+qg}var bf=!1;function Sf(n,i){if(!n||bf)return"";bf=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(V){var q=V}Reflect.construct(n,[],se)}else{try{se.call()}catch(V){q=V}n.call(se.prototype)}}else{try{throw Error()}catch(V){q=V}(se=n())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(V){if(V&&q&&typeof V.stack=="string")return[V.stack,q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),C=y[0],M=y[1];if(C&&M){var N=C.split(`
|
|
44
|
+
`),H=M.split(`
|
|
45
|
+
`);for(h=c=0;c<N.length&&!N[c].includes("DetermineComponentFrameRoot");)c++;for(;h<H.length&&!H[h].includes("DetermineComponentFrameRoot");)h++;if(c===N.length||h===H.length)for(c=N.length-1,h=H.length-1;1<=c&&0<=h&&N[c]!==H[h];)h--;for(;1<=c&&0<=h;c--,h--)if(N[c]!==H[h]){if(c!==1||h!==1)do if(c--,h--,0>h||N[c]!==H[h]){var re=`
|
|
46
|
+
`+N[c].replace(" at new "," at ");return n.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",n.displayName)),re}while(1<=c&&0<=h);break}}}finally{bf=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?yo(l):""}function WR(n){switch(n.tag){case 26:case 27:case 5:return yo(n.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 15:return Sf(n.type,!1);case 11:return Sf(n.type.render,!1);case 1:return Sf(n.type,!0);case 31:return yo("Activity");default:return""}}function Vg(n){try{var i="";do i+=WR(n),n=n.return;while(n);return i}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}function wn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Gg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function ZR(n){var i=Gg(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,y=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(C){c=""+C,y.call(this,C)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return c},setValue:function(C){c=""+C},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Os(n){n._valueTracker||(n._valueTracker=ZR(n))}function $g(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),c="";return n&&(c=Gg(n)?n.checked?"true":"false":n.value),n=c,n!==l?(i.setValue(n),!0):!1}function As(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var JR=/[\n"\\]/g;function En(n){return n.replace(JR,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function xf(n,i,l,c,h,y,C,M){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),i!=null?C==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+wn(i)):n.value!==""+wn(i)&&(n.value=""+wn(i)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),i!=null?wf(n,C,wn(i)):l!=null?wf(n,C,wn(l)):c!=null&&n.removeAttribute("value"),h==null&&y!=null&&(n.defaultChecked=!!y),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+wn(M):n.removeAttribute("name")}function Yg(n,i,l,c,h,y,C,M){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(n.type=y),i!=null||l!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;l=l!=null?""+wn(l):"",i=i!=null?""+wn(i):l,M||i===n.value||(n.value=i),n.defaultValue=i}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=M?n.checked:!!c,n.defaultChecked=!!c,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C)}function wf(n,i,l){i==="number"&&As(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function vo(n,i,l,c){if(n=n.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<n.length;l++)h=i.hasOwnProperty("$"+n[l].value),n[l].selected!==h&&(n[l].selected=h),h&&c&&(n[l].defaultSelected=!0)}else{for(l=""+wn(l),i=null,h=0;h<n.length;h++){if(n[h].value===l){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Kg(n,i,l){if(i!=null&&(i=""+wn(i),i!==n.value&&(n.value=i),l==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=l!=null?""+wn(l):""}function Qg(n,i,l,c){if(i==null){if(c!=null){if(l!=null)throw Error(o(92));if(oe(c)){if(1<c.length)throw Error(o(93));c=c[0]}l=c}l==null&&(l=""),i=l}l=wn(i),n.defaultValue=l,c=n.textContent,c===l&&c!==""&&c!==null&&(n.value=c)}function bo(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var eO=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xg(n,i,l){var c=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":c?n.setProperty(i,l):typeof l!="number"||l===0||eO.has(i)?i==="float"?n.cssFloat=l:n[i]=(""+l).trim():n[i]=l+"px"}function Wg(n,i,l){if(i!=null&&typeof i!="object")throw Error(o(62));if(n=n.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var h in i)c=i[h],i.hasOwnProperty(h)&&l[h]!==c&&Xg(n,h,c)}else for(var y in i)i.hasOwnProperty(y)&&Xg(n,y,i[y])}function Ef(n){if(n.indexOf("-")===-1)return!1;switch(n){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 tO=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),nO=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ms(n){return nO.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Cf=null;function Tf(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var So=null,xo=null;function Zg(n){var i=ho(n);if(i&&(n=i.stateNode)){var l=n[Qt]||null;e:switch(n=i.stateNode,i.type){case"input":if(xf(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+En(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var c=l[i];if(c!==n&&c.form===n.form){var h=c[Qt]||null;if(!h)throw Error(o(90));xf(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)c=l[i],c.form===n.form&&$g(c)}break e;case"textarea":Kg(n,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&vo(n,!!l.multiple,i,!1)}}}var Rf=!1;function Jg(n,i,l){if(Rf)return n(i,l);Rf=!0;try{var c=n(i);return c}finally{if(Rf=!1,(So!==null||xo!==null)&&(hu(),So&&(i=So,n=xo,xo=So=null,Zg(i),n)))for(i=0;i<n.length;i++)Zg(n[i])}}function La(n,i){var l=n.stateNode;if(l===null)return null;var c=l[Qt]||null;if(c===null)return null;l=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(o(231,i,typeof l));return l}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Of=!1;if(wr)try{var za={};Object.defineProperty(za,"passive",{get:function(){Of=!0}}),window.addEventListener("test",za,za),window.removeEventListener("test",za,za)}catch{Of=!1}var Yr=null,Af=null,_s=null;function ey(){if(_s)return _s;var n,i=Af,l=i.length,c,h="value"in Yr?Yr.value:Yr.textContent,y=h.length;for(n=0;n<l&&i[n]===h[n];n++);var C=l-n;for(c=1;c<=C&&i[l-c]===h[y-c];c++);return _s=h.slice(n,1<c?1-c:void 0)}function ks(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ds(){return!0}function ty(){return!1}function Xt(n){function i(l,c,h,y,C){this._reactName=l,this._targetInst=h,this.type=c,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var M in n)n.hasOwnProperty(M)&&(l=n[M],this[M]=l?l(y):y[M]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Ds:ty,this.isPropagationStopped=ty,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ds)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ds)},persist:function(){},isPersistent:Ds}),i}var Mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=Xt(Mi),Ia=m({},Mi,{view:0,detail:0}),rO=Xt(Ia),Mf,_f,ja,Ps=m({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Df,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ja&&(ja&&n.type==="mousemove"?(Mf=n.screenX-ja.screenX,_f=n.screenY-ja.screenY):_f=Mf=0,ja=n),Mf)},movementY:function(n){return"movementY"in n?n.movementY:_f}}),ny=Xt(Ps),iO=m({},Ps,{dataTransfer:0}),oO=Xt(iO),aO=m({},Ia,{relatedTarget:0}),kf=Xt(aO),lO=m({},Mi,{animationName:0,elapsedTime:0,pseudoElement:0}),sO=Xt(lO),uO=m({},Mi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),cO=Xt(uO),fO=m({},Mi,{data:0}),ry=Xt(fO),dO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pO={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"},hO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mO(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=hO[n])?!!i[n]:!1}function Df(){return mO}var gO=m({},Ia,{key:function(n){if(n.key){var i=dO[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=ks(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?pO[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Df,charCode:function(n){return n.type==="keypress"?ks(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ks(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),yO=Xt(gO),vO=m({},Ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),iy=Xt(vO),bO=m({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Df}),SO=Xt(bO),xO=m({},Mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),wO=Xt(xO),EO=m({},Ps,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),CO=Xt(EO),TO=m({},Mi,{newState:0,oldState:0}),RO=Xt(TO),OO=[9,13,27,32],Nf=wr&&"CompositionEvent"in window,Ua=null;wr&&"documentMode"in document&&(Ua=document.documentMode);var AO=wr&&"TextEvent"in window&&!Ua,oy=wr&&(!Nf||Ua&&8<Ua&&11>=Ua),ay=" ",ly=!1;function sy(n,i){switch(n){case"keyup":return OO.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var wo=!1;function MO(n,i){switch(n){case"compositionend":return uy(i);case"keypress":return i.which!==32?null:(ly=!0,ay);case"textInput":return n=i.data,n===ay&&ly?null:n;default:return null}}function _O(n,i){if(wo)return n==="compositionend"||!Nf&&sy(n,i)?(n=ey(),_s=Af=Yr=null,wo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return oy&&i.locale!=="ko"?null:i.data;default:return null}}var kO={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 cy(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!kO[n.type]:i==="textarea"}function fy(n,i,l,c){So?xo?xo.push(c):xo=[c]:So=c,i=Su(i,"onChange"),0<i.length&&(l=new Ns("onChange","change",null,l,c),n.push({event:l,listeners:i}))}var Ba=null,Ha=null;function DO(n){Gb(n,0)}function Ls(n){var i=Pa(n);if($g(i))return n}function dy(n,i){if(n==="change")return i}var py=!1;if(wr){var Pf;if(wr){var Lf="oninput"in document;if(!Lf){var hy=document.createElement("div");hy.setAttribute("oninput","return;"),Lf=typeof hy.oninput=="function"}Pf=Lf}else Pf=!1;py=Pf&&(!document.documentMode||9<document.documentMode)}function my(){Ba&&(Ba.detachEvent("onpropertychange",gy),Ha=Ba=null)}function gy(n){if(n.propertyName==="value"&&Ls(Ha)){var i=[];fy(i,Ha,n,Tf(n)),Jg(DO,i)}}function NO(n,i,l){n==="focusin"?(my(),Ba=i,Ha=l,Ba.attachEvent("onpropertychange",gy)):n==="focusout"&&my()}function PO(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ls(Ha)}function LO(n,i){if(n==="click")return Ls(i)}function zO(n,i){if(n==="input"||n==="change")return Ls(i)}function IO(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var sn=typeof Object.is=="function"?Object.is:IO;function Fa(n,i){if(sn(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),c=Object.keys(i);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var h=l[c];if(!Fe.call(i,h)||!sn(n[h],i[h]))return!1}return!0}function yy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function vy(n,i){var l=yy(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=i&&c>=i)return{node:l,offset:i-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=yy(l)}}function by(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?by(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Sy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=As(n.document);i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=As(n.document)}return i}function zf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var jO=wr&&"documentMode"in document&&11>=document.documentMode,Eo=null,If=null,qa=null,jf=!1;function xy(n,i,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jf||Eo==null||Eo!==As(c)||(c=Eo,"selectionStart"in c&&zf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),qa&&Fa(qa,c)||(qa=c,c=Su(If,"onSelect"),0<c.length&&(i=new Ns("onSelect","select",null,i,l),n.push({event:i,listeners:c}),i.target=Eo)))}function _i(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var Co={animationend:_i("Animation","AnimationEnd"),animationiteration:_i("Animation","AnimationIteration"),animationstart:_i("Animation","AnimationStart"),transitionrun:_i("Transition","TransitionRun"),transitionstart:_i("Transition","TransitionStart"),transitioncancel:_i("Transition","TransitionCancel"),transitionend:_i("Transition","TransitionEnd")},Uf={},wy={};wr&&(wy=document.createElement("div").style,"AnimationEvent"in window||(delete Co.animationend.animation,delete Co.animationiteration.animation,delete Co.animationstart.animation),"TransitionEvent"in window||delete Co.transitionend.transition);function ki(n){if(Uf[n])return Uf[n];if(!Co[n])return n;var i=Co[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in wy)return Uf[n]=i[l];return n}var Ey=ki("animationend"),Cy=ki("animationiteration"),Ty=ki("animationstart"),UO=ki("transitionrun"),BO=ki("transitionstart"),HO=ki("transitioncancel"),Ry=ki("transitionend"),Oy=new Map,Bf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bf.push("scrollEnd");function jn(n,i){Oy.set(n,i),Ai(i,[n])}var Ay=new WeakMap;function Cn(n,i){if(typeof n=="object"&&n!==null){var l=Ay.get(n);return l!==void 0?l:(i={value:n,source:i,stack:Vg(i)},Ay.set(n,i),i)}return{value:n,source:i,stack:Vg(i)}}var Tn=[],To=0,Hf=0;function zs(){for(var n=To,i=Hf=To=0;i<n;){var l=Tn[i];Tn[i++]=null;var c=Tn[i];Tn[i++]=null;var h=Tn[i];Tn[i++]=null;var y=Tn[i];if(Tn[i++]=null,c!==null&&h!==null){var C=c.pending;C===null?h.next=h:(h.next=C.next,C.next=h),c.pending=h}y!==0&&My(l,h,y)}}function Is(n,i,l,c){Tn[To++]=n,Tn[To++]=i,Tn[To++]=l,Tn[To++]=c,Hf|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Ff(n,i,l,c){return Is(n,i,l,c),js(n)}function Ro(n,i){return Is(n,null,null,i),js(n)}function My(n,i,l){n.lanes|=l;var c=n.alternate;c!==null&&(c.lanes|=l);for(var h=!1,y=n.return;y!==null;)y.childLanes|=l,c=y.alternate,c!==null&&(c.childLanes|=l),y.tag===22&&(n=y.stateNode,n===null||n._visibility&1||(h=!0)),n=y,y=y.return;return n.tag===3?(y=n.stateNode,h&&i!==null&&(h=31-_e(l),n=y.hiddenUpdates,c=n[h],c===null?n[h]=[i]:c.push(i),i.lane=l|536870912),y):null}function js(n){if(50<hl)throw hl=0,Kd=null,Error(o(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Oo={};function FO(n,i,l,c){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(n,i,l,c){return new FO(n,i,l,c)}function qf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Er(n,i){var l=n.alternate;return l===null?(l=un(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function _y(n,i){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,i=l.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function Us(n,i,l,c,h,y){var C=0;if(c=n,typeof n=="function")qf(n)&&(C=1);else if(typeof n=="string")C=VA(n,l,te.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case X:return n=un(31,l,i,h),n.elementType=X,n.lanes=y,n;case w:return Di(l.children,h,y,i);case x:C=8,h|=24;break;case T:return n=un(12,l,i,h|2),n.elementType=T,n.lanes=y,n;case P:return n=un(13,l,i,h),n.elementType=P,n.lanes=y,n;case D:return n=un(19,l,i,h),n.elementType=D,n.lanes=y,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case _:C=10;break e;case O:C=9;break e;case L:C=11;break e;case I:C=14;break e;case G:C=16,c=null;break e}C=29,l=Error(o(130,n===null?"null":typeof n,"")),c=null}return i=un(C,l,i,h),i.elementType=n,i.type=c,i.lanes=y,i}function Di(n,i,l,c){return n=un(7,n,c,i),n.lanes=l,n}function Vf(n,i,l){return n=un(6,n,null,i),n.lanes=l,n}function Gf(n,i,l){return i=un(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var Ao=[],Mo=0,Bs=null,Hs=0,Rn=[],On=0,Ni=null,Cr=1,Tr="";function Pi(n,i){Ao[Mo++]=Hs,Ao[Mo++]=Bs,Bs=n,Hs=i}function ky(n,i,l){Rn[On++]=Cr,Rn[On++]=Tr,Rn[On++]=Ni,Ni=n;var c=Cr;n=Tr;var h=32-_e(c)-1;c&=~(1<<h),l+=1;var y=32-_e(i)+h;if(30<y){var C=h-h%5;y=(c&(1<<C)-1).toString(32),c>>=C,h-=C,Cr=1<<32-_e(i)+h|l<<h|c,Tr=y+n}else Cr=1<<y|l<<h|c,Tr=n}function $f(n){n.return!==null&&(Pi(n,1),ky(n,1,0))}function Yf(n){for(;n===Bs;)Bs=Ao[--Mo],Ao[Mo]=null,Hs=Ao[--Mo],Ao[Mo]=null;for(;n===Ni;)Ni=Rn[--On],Rn[On]=null,Tr=Rn[--On],Rn[On]=null,Cr=Rn[--On],Rn[On]=null}var qt=null,pt=null,Qe=!1,Li=null,Zn=!1,Kf=Error(o(519));function zi(n){var i=Error(o(418,""));throw $a(Cn(i,n)),Kf}function Dy(n){var i=n.stateNode,l=n.type,c=n.memoizedProps;switch(i[It]=n,i[Qt]=c,l){case"dialog":Ve("cancel",i),Ve("close",i);break;case"iframe":case"object":case"embed":Ve("load",i);break;case"video":case"audio":for(l=0;l<gl.length;l++)Ve(gl[l],i);break;case"source":Ve("error",i);break;case"img":case"image":case"link":Ve("error",i),Ve("load",i);break;case"details":Ve("toggle",i);break;case"input":Ve("invalid",i),Yg(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Os(i);break;case"select":Ve("invalid",i);break;case"textarea":Ve("invalid",i),Qg(i,c.value,c.defaultValue,c.children),Os(i)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||c.suppressHydrationWarning===!0||Qb(i.textContent,l)?(c.popover!=null&&(Ve("beforetoggle",i),Ve("toggle",i)),c.onScroll!=null&&Ve("scroll",i),c.onScrollEnd!=null&&Ve("scrollend",i),c.onClick!=null&&(i.onclick=xu),i=!0):i=!1,i||zi(n)}function Ny(n){for(qt=n.return;qt;)switch(qt.tag){case 5:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:qt=qt.return}}function Va(n){if(n!==qt)return!1;if(!Qe)return Ny(n),Qe=!0,!1;var i=n.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||cp(n.type,n.memoizedProps)),l=!l),l&&pt&&zi(n),Ny(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(l=n.data,l==="/$"){if(i===0){pt=Bn(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++;n=n.nextSibling}pt=null}}else i===27?(i=pt,ui(n.type)?(n=hp,hp=null,pt=n):pt=i):pt=qt?Bn(n.stateNode.nextSibling):null;return!0}function Ga(){pt=qt=null,Qe=!1}function Py(){var n=Li;return n!==null&&(Jt===null?Jt=n:Jt.push.apply(Jt,n),Li=null),n}function $a(n){Li===null?Li=[n]:Li.push(n)}var Qf=$(null),Ii=null,Rr=null;function Kr(n,i,l){A(Qf,i._currentValue),i._currentValue=l}function Or(n){n._currentValue=Qf.current,fe(Qf)}function Xf(n,i,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===l)break;n=n.return}}function Wf(n,i,l,c){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var y=h.dependencies;if(y!==null){var C=h.child;y=y.firstContext;e:for(;y!==null;){var M=y;y=h;for(var N=0;N<i.length;N++)if(M.context===i[N]){y.lanes|=l,M=y.alternate,M!==null&&(M.lanes|=l),Xf(y.return,l,n),c||(C=null);break e}y=M.next}}else if(h.tag===18){if(C=h.return,C===null)throw Error(o(341));C.lanes|=l,y=C.alternate,y!==null&&(y.lanes|=l),Xf(C,l,n),C=null}else C=h.child;if(C!==null)C.return=h;else for(C=h;C!==null;){if(C===n){C=null;break}if(h=C.sibling,h!==null){h.return=C.return,C=h;break}C=C.return}h=C}}function Ya(n,i,l,c){n=null;for(var h=i,y=!1;h!==null;){if(!y){if(h.flags&524288)y=!0;else if(h.flags&262144)break}if(h.tag===10){var C=h.alternate;if(C===null)throw Error(o(387));if(C=C.memoizedProps,C!==null){var M=h.type;sn(h.pendingProps.value,C.value)||(n!==null?n.push(M):n=[M])}}else if(h===Y.current){if(C=h.alternate,C===null)throw Error(o(387));C.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(wl):n=[wl])}h=h.return}n!==null&&Wf(i,n,l,c),i.flags|=262144}function Fs(n){for(n=n.firstContext;n!==null;){if(!sn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ji(n){Ii=n,Rr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function jt(n){return Ly(Ii,n)}function qs(n,i){return Ii===null&&ji(n),Ly(n,i)}function Ly(n,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Rr===null){if(n===null)throw Error(o(308));Rr=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else Rr=Rr.next=i;return l}var qO=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(l,c){n.push(c)}};this.abort=function(){i.aborted=!0,n.forEach(function(l){return l()})}},VO=e.unstable_scheduleCallback,GO=e.unstable_NormalPriority,Tt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zf(){return{controller:new qO,data:new Map,refCount:0}}function Ka(n){n.refCount--,n.refCount===0&&VO(GO,function(){n.controller.abort()})}var Qa=null,Jf=0,_o=0,ko=null;function $O(n,i){if(Qa===null){var l=Qa=[];Jf=0,_o=tp(),ko={status:"pending",value:void 0,then:function(c){l.push(c)}}}return Jf++,i.then(zy,zy),i}function zy(){if(--Jf===0&&Qa!==null){ko!==null&&(ko.status="fulfilled");var n=Qa;Qa=null,_o=0,ko=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function YO(n,i){var l=[],c={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return n.then(function(){c.status="fulfilled",c.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(c.status="rejected",c.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),c}var Iy=z.S;z.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&$O(n,i),Iy!==null&&Iy(n,i)};var Ui=$(null);function ed(){var n=Ui.current;return n!==null?n:ot.pooledCache}function Vs(n,i){i===null?A(Ui,Ui.current):A(Ui,i.pool)}function jy(){var n=ed();return n===null?null:{parent:Tt._currentValue,pool:n}}var Xa=Error(o(460)),Uy=Error(o(474)),Gs=Error(o(542)),td={then:function(){}};function By(n){return n=n.status,n==="fulfilled"||n==="rejected"}function $s(){}function Hy(n,i,l){switch(l=n[l],l===void 0?n.push(i):l!==i&&(i.then($s,$s),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,qy(n),n;default:if(typeof i.status=="string")i.then($s,$s);else{if(n=ot,n!==null&&100<n.shellSuspendCounter)throw Error(o(482));n=i,n.status="pending",n.then(function(c){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=c}},function(c){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,qy(n),n}throw Wa=i,Xa}}var Wa=null;function Fy(){if(Wa===null)throw Error(o(459));var n=Wa;return Wa=null,n}function qy(n){if(n===Xa||n===Gs)throw Error(o(483))}var Qr=!1;function nd(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rd(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Xr(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Wr(n,i,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,Je&2){var h=c.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),c.pending=i,i=js(n),My(n,null,l),i}return Is(n,c,i,l),js(n)}function Za(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,zg(n,l)}}function id(n,i){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var h=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};y===null?h=y=C:y=y.next=C,l=l.next}while(l!==null);y===null?h=y=i:y=y.next=i}else h=y=i;l={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}var od=!1;function Ja(){if(od){var n=ko;if(n!==null)throw n}}function el(n,i,l,c){od=!1;var h=n.updateQueue;Qr=!1;var y=h.firstBaseUpdate,C=h.lastBaseUpdate,M=h.shared.pending;if(M!==null){h.shared.pending=null;var N=M,H=N.next;N.next=null,C===null?y=H:C.next=H,C=N;var re=n.alternate;re!==null&&(re=re.updateQueue,M=re.lastBaseUpdate,M!==C&&(M===null?re.firstBaseUpdate=H:M.next=H,re.lastBaseUpdate=N))}if(y!==null){var se=h.baseState;C=0,re=H=N=null,M=y;do{var q=M.lane&-536870913,V=q!==M.lane;if(V?($e&q)===q:(c&q)===q){q!==0&&q===_o&&(od=!0),re!==null&&(re=re.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var ke=n,Oe=M;q=i;var rt=l;switch(Oe.tag){case 1:if(ke=Oe.payload,typeof ke=="function"){se=ke.call(rt,se,q);break e}se=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Oe.payload,q=typeof ke=="function"?ke.call(rt,se,q):ke,q==null)break e;se=m({},se,q);break e;case 2:Qr=!0}}q=M.callback,q!==null&&(n.flags|=64,V&&(n.flags|=8192),V=h.callbacks,V===null?h.callbacks=[q]:V.push(q))}else V={lane:q,tag:M.tag,payload:M.payload,callback:M.callback,next:null},re===null?(H=re=V,N=se):re=re.next=V,C|=q;if(M=M.next,M===null){if(M=h.shared.pending,M===null)break;V=M,M=V.next,V.next=null,h.lastBaseUpdate=V,h.shared.pending=null}}while(!0);re===null&&(N=se),h.baseState=N,h.firstBaseUpdate=H,h.lastBaseUpdate=re,y===null&&(h.shared.lanes=0),oi|=C,n.lanes=C,n.memoizedState=se}}function Vy(n,i){if(typeof n!="function")throw Error(o(191,n));n.call(i)}function Gy(n,i){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)Vy(l[n],i)}var Do=$(null),Ys=$(0);function $y(n,i){n=Pr,A(Ys,n),A(Do,i),Pr=n|i.baseLanes}function ad(){A(Ys,Pr),A(Do,Do.current)}function ld(){Pr=Ys.current,fe(Do),fe(Ys)}var Zr=0,Be=null,tt=null,wt=null,Ks=!1,No=!1,Bi=!1,Qs=0,tl=0,Po=null,KO=0;function St(){throw Error(o(321))}function sd(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!sn(n[l],i[l]))return!1;return!0}function ud(n,i,l,c,h,y){return Zr=y,Be=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,z.H=n===null||n.memoizedState===null?Mv:_v,Bi=!1,y=l(c,h),Bi=!1,No&&(y=Ky(i,l,c,h)),Yy(n),y}function Yy(n){z.H=tu;var i=tt!==null&&tt.next!==null;if(Zr=0,wt=tt=Be=null,Ks=!1,tl=0,Po=null,i)throw Error(o(300));n===null||_t||(n=n.dependencies,n!==null&&Fs(n)&&(_t=!0))}function Ky(n,i,l,c){Be=n;var h=0;do{if(No&&(Po=null),tl=0,No=!1,25<=h)throw Error(o(301));if(h+=1,wt=tt=null,n.updateQueue!=null){var y=n.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}z.H=tA,y=i(l,c)}while(No);return y}function QO(){var n=z.H,i=n.useState()[0];return i=typeof i.then=="function"?nl(i):i,n=n.useState()[0],(tt!==null?tt.memoizedState:null)!==n&&(Be.flags|=1024),i}function cd(){var n=Qs!==0;return Qs=0,n}function fd(n,i,l){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~l}function dd(n){if(Ks){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ks=!1}Zr=0,wt=tt=Be=null,No=!1,tl=Qs=0,Po=null}function Wt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Be.memoizedState=wt=n:wt=wt.next=n,wt}function Et(){if(tt===null){var n=Be.alternate;n=n!==null?n.memoizedState:null}else n=tt.next;var i=wt===null?Be.memoizedState:wt.next;if(i!==null)wt=i,tt=n;else{if(n===null)throw Be.alternate===null?Error(o(467)):Error(o(310));tt=n,n={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},wt===null?Be.memoizedState=wt=n:wt=wt.next=n}return wt}function pd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function nl(n){var i=tl;return tl+=1,Po===null&&(Po=[]),n=Hy(Po,n,i),i=Be,(wt===null?i.memoizedState:wt.next)===null&&(i=i.alternate,z.H=i===null||i.memoizedState===null?Mv:_v),n}function Xs(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return nl(n);if(n.$$typeof===_)return jt(n)}throw Error(o(438,String(n)))}function hd(n){var i=null,l=Be.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var c=Be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=pd(),Be.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(n),c=0;c<n;c++)l[c]=Z;return i.index++,l}function Ar(n,i){return typeof i=="function"?i(n):i}function Ws(n){var i=Et();return md(i,tt,n)}function md(n,i,l){var c=n.queue;if(c===null)throw Error(o(311));c.lastRenderedReducer=l;var h=n.baseQueue,y=c.pending;if(y!==null){if(h!==null){var C=h.next;h.next=y.next,y.next=C}i.baseQueue=h=y,c.pending=null}if(y=n.baseState,h===null)n.memoizedState=y;else{i=h.next;var M=C=null,N=null,H=i,re=!1;do{var se=H.lane&-536870913;if(se!==H.lane?($e&se)===se:(Zr&se)===se){var q=H.revertLane;if(q===0)N!==null&&(N=N.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),se===_o&&(re=!0);else if((Zr&q)===q){H=H.next,q===_o&&(re=!0);continue}else se={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},N===null?(M=N=se,C=y):N=N.next=se,Be.lanes|=q,oi|=q;se=H.action,Bi&&l(y,se),y=H.hasEagerState?H.eagerState:l(y,se)}else q={lane:se,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},N===null?(M=N=q,C=y):N=N.next=q,Be.lanes|=se,oi|=se;H=H.next}while(H!==null&&H!==i);if(N===null?C=y:N.next=M,!sn(y,n.memoizedState)&&(_t=!0,re&&(l=ko,l!==null)))throw l;n.memoizedState=y,n.baseState=C,n.baseQueue=N,c.lastRenderedState=y}return h===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function gd(n){var i=Et(),l=i.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var c=l.dispatch,h=l.pending,y=i.memoizedState;if(h!==null){l.pending=null;var C=h=h.next;do y=n(y,C.action),C=C.next;while(C!==h);sn(y,i.memoizedState)||(_t=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),l.lastRenderedState=y}return[y,c]}function Qy(n,i,l){var c=Be,h=Et(),y=Qe;if(y){if(l===void 0)throw Error(o(407));l=l()}else l=i();var C=!sn((tt||h).memoizedState,l);C&&(h.memoizedState=l,_t=!0),h=h.queue;var M=Zy.bind(null,c,h,n);if(rl(2048,8,M,[n]),h.getSnapshot!==i||C||wt!==null&&wt.memoizedState.tag&1){if(c.flags|=2048,Lo(9,Zs(),Wy.bind(null,c,h,l,i),null),ot===null)throw Error(o(349));y||Zr&124||Xy(c,i,l)}return l}function Xy(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=Be.updateQueue,i===null?(i=pd(),Be.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Wy(n,i,l,c){i.value=l,i.getSnapshot=c,Jy(i)&&ev(n)}function Zy(n,i,l){return l(function(){Jy(i)&&ev(n)})}function Jy(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!sn(n,l)}catch{return!0}}function ev(n){var i=Ro(n,2);i!==null&&hn(i,n,2)}function yd(n){var i=Wt();if(typeof n=="function"){var l=n;if(n=l(),Bi){Re(!0);try{l()}finally{Re(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:n},i}function tv(n,i,l,c){return n.baseState=l,md(n,tt,typeof c=="function"?c:Ar)}function XO(n,i,l,c,h){if(eu(n))throw Error(o(485));if(n=i.action,n!==null){var y={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};z.T!==null?l(!0):y.isTransition=!1,c(y),l=i.pending,l===null?(y.next=i.pending=y,nv(i,y)):(y.next=l.next,i.pending=l.next=y)}}function nv(n,i){var l=i.action,c=i.payload,h=n.state;if(i.isTransition){var y=z.T,C={};z.T=C;try{var M=l(h,c),N=z.S;N!==null&&N(C,M),rv(n,i,M)}catch(H){vd(n,i,H)}finally{z.T=y}}else try{y=l(h,c),rv(n,i,y)}catch(H){vd(n,i,H)}}function rv(n,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){iv(n,i,c)},function(c){return vd(n,i,c)}):iv(n,i,l)}function iv(n,i,l){i.status="fulfilled",i.value=l,ov(i),n.state=l,i=n.pending,i!==null&&(l=i.next,l===i?n.pending=null:(l=l.next,i.next=l,nv(n,l)))}function vd(n,i,l){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=l,ov(i),i=i.next;while(i!==c)}n.action=null}function ov(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function av(n,i){return i}function lv(n,i){if(Qe){var l=ot.formState;if(l!==null){e:{var c=Be;if(Qe){if(pt){t:{for(var h=pt,y=Zn;h.nodeType!==8;){if(!y){h=null;break t}if(h=Bn(h.nextSibling),h===null){h=null;break t}}y=h.data,h=y==="F!"||y==="F"?h:null}if(h){pt=Bn(h.nextSibling),c=h.data==="F!";break e}}zi(c)}c=!1}c&&(i=l[0])}}return l=Wt(),l.memoizedState=l.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:av,lastRenderedState:i},l.queue=c,l=Rv.bind(null,Be,c),c.dispatch=l,c=yd(!1),y=Ed.bind(null,Be,!1,c.queue),c=Wt(),h={state:i,dispatch:null,action:n,pending:null},c.queue=h,l=XO.bind(null,Be,h,y,l),h.dispatch=l,c.memoizedState=n,[i,l,!1]}function sv(n){var i=Et();return uv(i,tt,n)}function uv(n,i,l){if(i=md(n,i,av)[0],n=Ws(Ar)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=nl(i)}catch(C){throw C===Xa?Gs:C}else c=i;i=Et();var h=i.queue,y=h.dispatch;return l!==i.memoizedState&&(Be.flags|=2048,Lo(9,Zs(),WO.bind(null,h,l),null)),[c,y,n]}function WO(n,i){n.action=i}function cv(n){var i=Et(),l=tt;if(l!==null)return uv(i,l,n);Et(),i=i.memoizedState,l=Et();var c=l.queue.dispatch;return l.memoizedState=n,[i,c,!1]}function Lo(n,i,l,c){return n={tag:n,create:l,deps:c,inst:i,next:null},i=Be.updateQueue,i===null&&(i=pd(),Be.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,i.lastEffect=n),n}function Zs(){return{destroy:void 0,resource:void 0}}function fv(){return Et().memoizedState}function Js(n,i,l,c){var h=Wt();c=c===void 0?null:c,Be.flags|=n,h.memoizedState=Lo(1|i,Zs(),l,c)}function rl(n,i,l,c){var h=Et();c=c===void 0?null:c;var y=h.memoizedState.inst;tt!==null&&c!==null&&sd(c,tt.memoizedState.deps)?h.memoizedState=Lo(i,y,l,c):(Be.flags|=n,h.memoizedState=Lo(1|i,y,l,c))}function dv(n,i){Js(8390656,8,n,i)}function pv(n,i){rl(2048,8,n,i)}function hv(n,i){return rl(4,2,n,i)}function mv(n,i){return rl(4,4,n,i)}function gv(n,i){if(typeof i=="function"){n=n();var l=i(n);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function yv(n,i,l){l=l!=null?l.concat([n]):null,rl(4,4,gv.bind(null,i,n),l)}function bd(){}function vv(n,i){var l=Et();i=i===void 0?null:i;var c=l.memoizedState;return i!==null&&sd(i,c[1])?c[0]:(l.memoizedState=[n,i],n)}function bv(n,i){var l=Et();i=i===void 0?null:i;var c=l.memoizedState;if(i!==null&&sd(i,c[1]))return c[0];if(c=n(),Bi){Re(!0);try{n()}finally{Re(!1)}}return l.memoizedState=[c,i],c}function Sd(n,i,l){return l===void 0||Zr&1073741824?n.memoizedState=i:(n.memoizedState=l,n=wb(),Be.lanes|=n,oi|=n,l)}function Sv(n,i,l,c){return sn(l,i)?l:Do.current!==null?(n=Sd(n,l,c),sn(n,i)||(_t=!0),n):Zr&42?(n=wb(),Be.lanes|=n,oi|=n,i):(_t=!0,n.memoizedState=l)}function xv(n,i,l,c,h){var y=K.p;K.p=y!==0&&8>y?y:8;var C=z.T,M={};z.T=M,Ed(n,!1,i,l);try{var N=h(),H=z.S;if(H!==null&&H(M,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var re=YO(N,c);il(n,i,re,pn(n))}else il(n,i,c,pn(n))}catch(se){il(n,i,{then:function(){},status:"rejected",reason:se},pn())}finally{K.p=y,z.T=C}}function ZO(){}function xd(n,i,l,c){if(n.tag!==5)throw Error(o(476));var h=wv(n).queue;xv(n,h,i,ee,l===null?ZO:function(){return Ev(n),l(c)})}function wv(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:ee},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:l},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function Ev(n){var i=wv(n).next.queue;il(n,i,{},pn())}function wd(){return jt(wl)}function Cv(){return Et().memoizedState}function Tv(){return Et().memoizedState}function JO(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var l=pn();n=Xr(l);var c=Wr(i,n,l);c!==null&&(hn(c,i,l),Za(c,i,l)),i={cache:Zf()},n.payload=i;return}i=i.return}}function eA(n,i,l){var c=pn();l={lane:c,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},eu(n)?Ov(i,l):(l=Ff(n,i,l,c),l!==null&&(hn(l,n,c),Av(l,i,c)))}function Rv(n,i,l){var c=pn();il(n,i,l,c)}function il(n,i,l,c){var h={lane:c,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(eu(n))Ov(i,h);else{var y=n.alternate;if(n.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var C=i.lastRenderedState,M=y(C,l);if(h.hasEagerState=!0,h.eagerState=M,sn(M,C))return Is(n,i,h,0),ot===null&&zs(),!1}catch{}finally{}if(l=Ff(n,i,h,c),l!==null)return hn(l,n,c),Av(l,i,c),!0}return!1}function Ed(n,i,l,c){if(c={lane:2,revertLane:tp(),action:c,hasEagerState:!1,eagerState:null,next:null},eu(n)){if(i)throw Error(o(479))}else i=Ff(n,l,c,2),i!==null&&hn(i,n,2)}function eu(n){var i=n.alternate;return n===Be||i!==null&&i===Be}function Ov(n,i){No=Ks=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Av(n,i,l){if(l&4194048){var c=i.lanes;c&=n.pendingLanes,l|=c,i.lanes=l,zg(n,l)}}var tu={readContext:jt,use:Xs,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St},Mv={readContext:jt,use:Xs,useCallback:function(n,i){return Wt().memoizedState=[n,i===void 0?null:i],n},useContext:jt,useEffect:dv,useImperativeHandle:function(n,i,l){l=l!=null?l.concat([n]):null,Js(4194308,4,gv.bind(null,i,n),l)},useLayoutEffect:function(n,i){return Js(4194308,4,n,i)},useInsertionEffect:function(n,i){Js(4,2,n,i)},useMemo:function(n,i){var l=Wt();i=i===void 0?null:i;var c=n();if(Bi){Re(!0);try{n()}finally{Re(!1)}}return l.memoizedState=[c,i],c},useReducer:function(n,i,l){var c=Wt();if(l!==void 0){var h=l(i);if(Bi){Re(!0);try{l(i)}finally{Re(!1)}}}else h=i;return c.memoizedState=c.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},c.queue=n,n=n.dispatch=eA.bind(null,Be,n),[c.memoizedState,n]},useRef:function(n){var i=Wt();return n={current:n},i.memoizedState=n},useState:function(n){n=yd(n);var i=n.queue,l=Rv.bind(null,Be,i);return i.dispatch=l,[n.memoizedState,l]},useDebugValue:bd,useDeferredValue:function(n,i){var l=Wt();return Sd(l,n,i)},useTransition:function(){var n=yd(!1);return n=xv.bind(null,Be,n.queue,!0,!1),Wt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,l){var c=Be,h=Wt();if(Qe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=i(),ot===null)throw Error(o(349));$e&124||Xy(c,i,l)}h.memoizedState=l;var y={value:l,getSnapshot:i};return h.queue=y,dv(Zy.bind(null,c,y,n),[n]),c.flags|=2048,Lo(9,Zs(),Wy.bind(null,c,y,l,i),null),l},useId:function(){var n=Wt(),i=ot.identifierPrefix;if(Qe){var l=Tr,c=Cr;l=(c&~(1<<32-_e(c)-1)).toString(32)+l,i="«"+i+"R"+l,l=Qs++,0<l&&(i+="H"+l.toString(32)),i+="»"}else l=KO++,i="«"+i+"r"+l.toString(32)+"»";return n.memoizedState=i},useHostTransitionStatus:wd,useFormState:lv,useActionState:lv,useOptimistic:function(n){var i=Wt();i.memoizedState=i.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Ed.bind(null,Be,!0,l),l.dispatch=i,[n,i]},useMemoCache:hd,useCacheRefresh:function(){return Wt().memoizedState=JO.bind(null,Be)}},_v={readContext:jt,use:Xs,useCallback:vv,useContext:jt,useEffect:pv,useImperativeHandle:yv,useInsertionEffect:hv,useLayoutEffect:mv,useMemo:bv,useReducer:Ws,useRef:fv,useState:function(){return Ws(Ar)},useDebugValue:bd,useDeferredValue:function(n,i){var l=Et();return Sv(l,tt.memoizedState,n,i)},useTransition:function(){var n=Ws(Ar)[0],i=Et().memoizedState;return[typeof n=="boolean"?n:nl(n),i]},useSyncExternalStore:Qy,useId:Cv,useHostTransitionStatus:wd,useFormState:sv,useActionState:sv,useOptimistic:function(n,i){var l=Et();return tv(l,tt,n,i)},useMemoCache:hd,useCacheRefresh:Tv},tA={readContext:jt,use:Xs,useCallback:vv,useContext:jt,useEffect:pv,useImperativeHandle:yv,useInsertionEffect:hv,useLayoutEffect:mv,useMemo:bv,useReducer:gd,useRef:fv,useState:function(){return gd(Ar)},useDebugValue:bd,useDeferredValue:function(n,i){var l=Et();return tt===null?Sd(l,n,i):Sv(l,tt.memoizedState,n,i)},useTransition:function(){var n=gd(Ar)[0],i=Et().memoizedState;return[typeof n=="boolean"?n:nl(n),i]},useSyncExternalStore:Qy,useId:Cv,useHostTransitionStatus:wd,useFormState:cv,useActionState:cv,useOptimistic:function(n,i){var l=Et();return tt!==null?tv(l,tt,n,i):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:hd,useCacheRefresh:Tv},zo=null,ol=0;function nu(n){var i=ol;return ol+=1,zo===null&&(zo=[]),Hy(zo,n,i)}function al(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function ru(n,i){throw i.$$typeof===g?Error(o(525)):(n=Object.prototype.toString.call(i),Error(o(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function kv(n){var i=n._init;return i(n._payload)}function Dv(n){function i(U,j){if(n){var B=U.deletions;B===null?(U.deletions=[j],U.flags|=16):B.push(j)}}function l(U,j){if(!n)return null;for(;j!==null;)i(U,j),j=j.sibling;return null}function c(U){for(var j=new Map;U!==null;)U.key!==null?j.set(U.key,U):j.set(U.index,U),U=U.sibling;return j}function h(U,j){return U=Er(U,j),U.index=0,U.sibling=null,U}function y(U,j,B){return U.index=B,n?(B=U.alternate,B!==null?(B=B.index,B<j?(U.flags|=67108866,j):B):(U.flags|=67108866,j)):(U.flags|=1048576,j)}function C(U){return n&&U.alternate===null&&(U.flags|=67108866),U}function M(U,j,B,ae){return j===null||j.tag!==6?(j=Vf(B,U.mode,ae),j.return=U,j):(j=h(j,B),j.return=U,j)}function N(U,j,B,ae){var be=B.type;return be===w?re(U,j,B.props.children,ae,B.key):j!==null&&(j.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===G&&kv(be)===j.type)?(j=h(j,B.props),al(j,B),j.return=U,j):(j=Us(B.type,B.key,B.props,null,U.mode,ae),al(j,B),j.return=U,j)}function H(U,j,B,ae){return j===null||j.tag!==4||j.stateNode.containerInfo!==B.containerInfo||j.stateNode.implementation!==B.implementation?(j=Gf(B,U.mode,ae),j.return=U,j):(j=h(j,B.children||[]),j.return=U,j)}function re(U,j,B,ae,be){return j===null||j.tag!==7?(j=Di(B,U.mode,ae,be),j.return=U,j):(j=h(j,B),j.return=U,j)}function se(U,j,B){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Vf(""+j,U.mode,B),j.return=U,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case v:return B=Us(j.type,j.key,j.props,null,U.mode,B),al(B,j),B.return=U,B;case S:return j=Gf(j,U.mode,B),j.return=U,j;case G:var ae=j._init;return j=ae(j._payload),se(U,j,B)}if(oe(j)||W(j))return j=Di(j,U.mode,B,null),j.return=U,j;if(typeof j.then=="function")return se(U,nu(j),B);if(j.$$typeof===_)return se(U,qs(U,j),B);ru(U,j)}return null}function q(U,j,B,ae){var be=j!==null?j.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:M(U,j,""+B,ae);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return B.key===be?N(U,j,B,ae):null;case S:return B.key===be?H(U,j,B,ae):null;case G:return be=B._init,B=be(B._payload),q(U,j,B,ae)}if(oe(B)||W(B))return be!==null?null:re(U,j,B,ae,null);if(typeof B.then=="function")return q(U,j,nu(B),ae);if(B.$$typeof===_)return q(U,j,qs(U,B),ae);ru(U,B)}return null}function V(U,j,B,ae,be){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return U=U.get(B)||null,M(j,U,""+ae,be);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case v:return U=U.get(ae.key===null?B:ae.key)||null,N(j,U,ae,be);case S:return U=U.get(ae.key===null?B:ae.key)||null,H(j,U,ae,be);case G:var He=ae._init;return ae=He(ae._payload),V(U,j,B,ae,be)}if(oe(ae)||W(ae))return U=U.get(B)||null,re(j,U,ae,be,null);if(typeof ae.then=="function")return V(U,j,B,nu(ae),be);if(ae.$$typeof===_)return V(U,j,B,qs(j,ae),be);ru(j,ae)}return null}function ke(U,j,B,ae){for(var be=null,He=null,Te=j,Ae=j=0,Dt=null;Te!==null&&Ae<B.length;Ae++){Te.index>Ae?(Dt=Te,Te=null):Dt=Te.sibling;var Ke=q(U,Te,B[Ae],ae);if(Ke===null){Te===null&&(Te=Dt);break}n&&Te&&Ke.alternate===null&&i(U,Te),j=y(Ke,j,Ae),He===null?be=Ke:He.sibling=Ke,He=Ke,Te=Dt}if(Ae===B.length)return l(U,Te),Qe&&Pi(U,Ae),be;if(Te===null){for(;Ae<B.length;Ae++)Te=se(U,B[Ae],ae),Te!==null&&(j=y(Te,j,Ae),He===null?be=Te:He.sibling=Te,He=Te);return Qe&&Pi(U,Ae),be}for(Te=c(Te);Ae<B.length;Ae++)Dt=V(Te,U,Ae,B[Ae],ae),Dt!==null&&(n&&Dt.alternate!==null&&Te.delete(Dt.key===null?Ae:Dt.key),j=y(Dt,j,Ae),He===null?be=Dt:He.sibling=Dt,He=Dt);return n&&Te.forEach(function(hi){return i(U,hi)}),Qe&&Pi(U,Ae),be}function Oe(U,j,B,ae){if(B==null)throw Error(o(151));for(var be=null,He=null,Te=j,Ae=j=0,Dt=null,Ke=B.next();Te!==null&&!Ke.done;Ae++,Ke=B.next()){Te.index>Ae?(Dt=Te,Te=null):Dt=Te.sibling;var hi=q(U,Te,Ke.value,ae);if(hi===null){Te===null&&(Te=Dt);break}n&&Te&&hi.alternate===null&&i(U,Te),j=y(hi,j,Ae),He===null?be=hi:He.sibling=hi,He=hi,Te=Dt}if(Ke.done)return l(U,Te),Qe&&Pi(U,Ae),be;if(Te===null){for(;!Ke.done;Ae++,Ke=B.next())Ke=se(U,Ke.value,ae),Ke!==null&&(j=y(Ke,j,Ae),He===null?be=Ke:He.sibling=Ke,He=Ke);return Qe&&Pi(U,Ae),be}for(Te=c(Te);!Ke.done;Ae++,Ke=B.next())Ke=V(Te,U,Ae,Ke.value,ae),Ke!==null&&(n&&Ke.alternate!==null&&Te.delete(Ke.key===null?Ae:Ke.key),j=y(Ke,j,Ae),He===null?be=Ke:He.sibling=Ke,He=Ke);return n&&Te.forEach(function(nM){return i(U,nM)}),Qe&&Pi(U,Ae),be}function rt(U,j,B,ae){if(typeof B=="object"&&B!==null&&B.type===w&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case v:e:{for(var be=B.key;j!==null;){if(j.key===be){if(be=B.type,be===w){if(j.tag===7){l(U,j.sibling),ae=h(j,B.props.children),ae.return=U,U=ae;break e}}else if(j.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===G&&kv(be)===j.type){l(U,j.sibling),ae=h(j,B.props),al(ae,B),ae.return=U,U=ae;break e}l(U,j);break}else i(U,j);j=j.sibling}B.type===w?(ae=Di(B.props.children,U.mode,ae,B.key),ae.return=U,U=ae):(ae=Us(B.type,B.key,B.props,null,U.mode,ae),al(ae,B),ae.return=U,U=ae)}return C(U);case S:e:{for(be=B.key;j!==null;){if(j.key===be)if(j.tag===4&&j.stateNode.containerInfo===B.containerInfo&&j.stateNode.implementation===B.implementation){l(U,j.sibling),ae=h(j,B.children||[]),ae.return=U,U=ae;break e}else{l(U,j);break}else i(U,j);j=j.sibling}ae=Gf(B,U.mode,ae),ae.return=U,U=ae}return C(U);case G:return be=B._init,B=be(B._payload),rt(U,j,B,ae)}if(oe(B))return ke(U,j,B,ae);if(W(B)){if(be=W(B),typeof be!="function")throw Error(o(150));return B=be.call(B),Oe(U,j,B,ae)}if(typeof B.then=="function")return rt(U,j,nu(B),ae);if(B.$$typeof===_)return rt(U,j,qs(U,B),ae);ru(U,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,j!==null&&j.tag===6?(l(U,j.sibling),ae=h(j,B),ae.return=U,U=ae):(l(U,j),ae=Vf(B,U.mode,ae),ae.return=U,U=ae),C(U)):l(U,j)}return function(U,j,B,ae){try{ol=0;var be=rt(U,j,B,ae);return zo=null,be}catch(Te){if(Te===Xa||Te===Gs)throw Te;var He=un(29,Te,null,U.mode);return He.lanes=ae,He.return=U,He}finally{}}}var Io=Dv(!0),Nv=Dv(!1),An=$(null),Jn=null;function Jr(n){var i=n.alternate;A(Rt,Rt.current&1),A(An,n),Jn===null&&(i===null||Do.current!==null||i.memoizedState!==null)&&(Jn=n)}function Pv(n){if(n.tag===22){if(A(Rt,Rt.current),A(An,n),Jn===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Jn=n)}}else ei()}function ei(){A(Rt,Rt.current),A(An,An.current)}function Mr(n){fe(An),Jn===n&&(Jn=null),fe(Rt)}var Rt=$(0);function iu(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||pp(l)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function Cd(n,i,l,c){i=n.memoizedState,l=l(c,i),l=l==null?i:m({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Td={enqueueSetState:function(n,i,l){n=n._reactInternals;var c=pn(),h=Xr(c);h.payload=i,l!=null&&(h.callback=l),i=Wr(n,h,c),i!==null&&(hn(i,n,c),Za(i,n,c))},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var c=pn(),h=Xr(c);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=Wr(n,h,c),i!==null&&(hn(i,n,c),Za(i,n,c))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=pn(),c=Xr(l);c.tag=2,i!=null&&(c.callback=i),i=Wr(n,c,l),i!==null&&(hn(i,n,l),Za(i,n,l))}};function Lv(n,i,l,c,h,y,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,y,C):i.prototype&&i.prototype.isPureReactComponent?!Fa(l,c)||!Fa(h,y):!0}function zv(n,i,l,c){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,c),i.state!==n&&Td.enqueueReplaceState(i,i.state,null)}function Hi(n,i){var l=i;if("ref"in i){l={};for(var c in i)c!=="ref"&&(l[c]=i[c])}if(n=n.defaultProps){l===i&&(l=m({},l));for(var h in n)l[h]===void 0&&(l[h]=n[h])}return l}var ou=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Iv(n){ou(n)}function jv(n){console.error(n)}function Uv(n){ou(n)}function au(n,i){try{var l=n.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function Bv(n,i,l){try{var c=n.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Rd(n,i,l){return l=Xr(l),l.tag=3,l.payload={element:null},l.callback=function(){au(n,i)},l}function Hv(n){return n=Xr(n),n.tag=3,n}function Fv(n,i,l,c){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var y=c.value;n.payload=function(){return h(y)},n.callback=function(){Bv(i,l,c)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){Bv(i,l,c),typeof h!="function"&&(ai===null?ai=new Set([this]):ai.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})})}function nA(n,i,l,c,h){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=l.alternate,i!==null&&Ya(i,l,h,!0),l=An.current,l!==null){switch(l.tag){case 13:return Jn===null?Xd():l.alternate===null&&ht===0&&(ht=3),l.flags&=-257,l.flags|=65536,l.lanes=h,c===td?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([c]):i.add(c),Zd(n,c,h)),!1;case 22:return l.flags|=65536,c===td?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([c]):l.add(c)),Zd(n,c,h)),!1}throw Error(o(435,l.tag))}return Zd(n,c,h),Xd(),!1}if(Qe)return i=An.current,i!==null?(!(i.flags&65536)&&(i.flags|=256),i.flags|=65536,i.lanes=h,c!==Kf&&(n=Error(o(422),{cause:c}),$a(Cn(n,l)))):(c!==Kf&&(i=Error(o(423),{cause:c}),$a(Cn(i,l))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=Cn(c,l),h=Rd(n.stateNode,c,h),id(n,h),ht!==4&&(ht=2)),!1;var y=Error(o(520),{cause:c});if(y=Cn(y,l),pl===null?pl=[y]:pl.push(y),ht!==4&&(ht=2),i===null)return!0;c=Cn(c,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,n=h&-h,l.lanes|=n,n=Rd(l.stateNode,c,n),id(l,n),!1;case 1:if(i=l.type,y=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ai===null||!ai.has(y))))return l.flags|=65536,h&=-h,l.lanes|=h,h=Hv(h),Fv(h,n,l,c),id(l,h),!1}l=l.return}while(l!==null);return!1}var qv=Error(o(461)),_t=!1;function Nt(n,i,l,c){i.child=n===null?Nv(i,null,l,c):Io(i,n.child,l,c)}function Vv(n,i,l,c,h){l=l.render;var y=i.ref;if("ref"in c){var C={};for(var M in c)M!=="ref"&&(C[M]=c[M])}else C=c;return ji(i),c=ud(n,i,l,C,y,h),M=cd(),n!==null&&!_t?(fd(n,i,h),_r(n,i,h)):(Qe&&M&&$f(i),i.flags|=1,Nt(n,i,c,h),i.child)}function Gv(n,i,l,c,h){if(n===null){var y=l.type;return typeof y=="function"&&!qf(y)&&y.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=y,$v(n,i,y,c,h)):(n=Us(l.type,null,c,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(y=n.child,!Pd(n,h)){var C=y.memoizedProps;if(l=l.compare,l=l!==null?l:Fa,l(C,c)&&n.ref===i.ref)return _r(n,i,h)}return i.flags|=1,n=Er(y,c),n.ref=i.ref,n.return=i,i.child=n}function $v(n,i,l,c,h){if(n!==null){var y=n.memoizedProps;if(Fa(y,c)&&n.ref===i.ref)if(_t=!1,i.pendingProps=c=y,Pd(n,h))n.flags&131072&&(_t=!0);else return i.lanes=n.lanes,_r(n,i,h)}return Od(n,i,l,c,h)}function Yv(n,i,l){var c=i.pendingProps,h=c.children,y=n!==null?n.memoizedState:null;if(c.mode==="hidden"){if(i.flags&128){if(c=y!==null?y.baseLanes|l:l,n!==null){for(h=i.child=n.child,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;i.childLanes=y&~c}else i.childLanes=0,i.child=null;return Kv(n,i,c,l)}if(l&536870912)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Vs(i,y!==null?y.cachePool:null),y!==null?$y(i,y):ad(),Pv(i);else return i.lanes=i.childLanes=536870912,Kv(n,i,y!==null?y.baseLanes|l:l,l)}else y!==null?(Vs(i,y.cachePool),$y(i,y),ei(),i.memoizedState=null):(n!==null&&Vs(i,null),ad(),ei());return Nt(n,i,h,l),i.child}function Kv(n,i,l,c){var h=ed();return h=h===null?null:{parent:Tt._currentValue,pool:h},i.memoizedState={baseLanes:l,cachePool:h},n!==null&&Vs(i,null),ad(),Pv(i),n!==null&&Ya(n,i,c,!0),null}function lu(n,i){var l=i.ref;if(l===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(n===null||n.ref!==l)&&(i.flags|=4194816)}}function Od(n,i,l,c,h){return ji(i),l=ud(n,i,l,c,void 0,h),c=cd(),n!==null&&!_t?(fd(n,i,h),_r(n,i,h)):(Qe&&c&&$f(i),i.flags|=1,Nt(n,i,l,h),i.child)}function Qv(n,i,l,c,h,y){return ji(i),i.updateQueue=null,l=Ky(i,c,l,h),Yy(n),c=cd(),n!==null&&!_t?(fd(n,i,y),_r(n,i,y)):(Qe&&c&&$f(i),i.flags|=1,Nt(n,i,l,y),i.child)}function Xv(n,i,l,c,h){if(ji(i),i.stateNode===null){var y=Oo,C=l.contextType;typeof C=="object"&&C!==null&&(y=jt(C)),y=new l(c,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Td,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=c,y.state=i.memoizedState,y.refs={},nd(i),C=l.contextType,y.context=typeof C=="object"&&C!==null?jt(C):Oo,y.state=i.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(Cd(i,l,C,c),y.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&Td.enqueueReplaceState(y,y.state,null),el(i,c,y,h),Ja(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(n===null){y=i.stateNode;var M=i.memoizedProps,N=Hi(l,M);y.props=N;var H=y.context,re=l.contextType;C=Oo,typeof re=="object"&&re!==null&&(C=jt(re));var se=l.getDerivedStateFromProps;re=typeof se=="function"||typeof y.getSnapshotBeforeUpdate=="function",M=i.pendingProps!==M,re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(M||H!==C)&&zv(i,y,c,C),Qr=!1;var q=i.memoizedState;y.state=q,el(i,c,y,h),Ja(),H=i.memoizedState,M||q!==H||Qr?(typeof se=="function"&&(Cd(i,l,se,c),H=i.memoizedState),(N=Qr||Lv(i,l,N,c,q,H,C))?(re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=H),y.props=c,y.state=H,y.context=C,c=N):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{y=i.stateNode,rd(n,i),C=i.memoizedProps,re=Hi(l,C),y.props=re,se=i.pendingProps,q=y.context,H=l.contextType,N=Oo,typeof H=="object"&&H!==null&&(N=jt(H)),M=l.getDerivedStateFromProps,(H=typeof M=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==se||q!==N)&&zv(i,y,c,N),Qr=!1,q=i.memoizedState,y.state=q,el(i,c,y,h),Ja();var V=i.memoizedState;C!==se||q!==V||Qr||n!==null&&n.dependencies!==null&&Fs(n.dependencies)?(typeof M=="function"&&(Cd(i,l,M,c),V=i.memoizedState),(re=Qr||Lv(i,l,re,c,q,V,N)||n!==null&&n.dependencies!==null&&Fs(n.dependencies))?(H||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,V,N),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,V,N)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===n.memoizedProps&&q===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&q===n.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=V),y.props=c,y.state=V,y.context=N,c=re):(typeof y.componentDidUpdate!="function"||C===n.memoizedProps&&q===n.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&q===n.memoizedState||(i.flags|=1024),c=!1)}return y=c,lu(n,i),c=(i.flags&128)!==0,y||c?(y=i.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,n!==null&&c?(i.child=Io(i,n.child,null,h),i.child=Io(i,null,l,h)):Nt(n,i,l,h),i.memoizedState=y.state,n=i.child):n=_r(n,i,h),n}function Wv(n,i,l,c){return Ga(),i.flags|=256,Nt(n,i,l,c),i.child}var Ad={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Md(n){return{baseLanes:n,cachePool:jy()}}function _d(n,i,l){return n=n!==null?n.childLanes&~l:0,i&&(n|=Mn),n}function Zv(n,i,l){var c=i.pendingProps,h=!1,y=(i.flags&128)!==0,C;if((C=y)||(C=n!==null&&n.memoizedState===null?!1:(Rt.current&2)!==0),C&&(h=!0,i.flags&=-129),C=(i.flags&32)!==0,i.flags&=-33,n===null){if(Qe){if(h?Jr(i):ei(),Qe){var M=pt,N;if(N=M){e:{for(N=M,M=Zn;N.nodeType!==8;){if(!M){M=null;break e}if(N=Bn(N.nextSibling),N===null){M=null;break e}}M=N}M!==null?(i.memoizedState={dehydrated:M,treeContext:Ni!==null?{id:Cr,overflow:Tr}:null,retryLane:536870912,hydrationErrors:null},N=un(18,null,null,0),N.stateNode=M,N.return=i,i.child=N,qt=i,pt=null,N=!0):N=!1}N||zi(i)}if(M=i.memoizedState,M!==null&&(M=M.dehydrated,M!==null))return pp(M)?i.lanes=32:i.lanes=536870912,null;Mr(i)}return M=c.children,c=c.fallback,h?(ei(),h=i.mode,M=su({mode:"hidden",children:M},h),c=Di(c,h,l,null),M.return=i,c.return=i,M.sibling=c,i.child=M,h=i.child,h.memoizedState=Md(l),h.childLanes=_d(n,C,l),i.memoizedState=Ad,c):(Jr(i),kd(i,M))}if(N=n.memoizedState,N!==null&&(M=N.dehydrated,M!==null)){if(y)i.flags&256?(Jr(i),i.flags&=-257,i=Dd(n,i,l)):i.memoizedState!==null?(ei(),i.child=n.child,i.flags|=128,i=null):(ei(),h=c.fallback,M=i.mode,c=su({mode:"visible",children:c.children},M),h=Di(h,M,l,null),h.flags|=2,c.return=i,h.return=i,c.sibling=h,i.child=c,Io(i,n.child,null,l),c=i.child,c.memoizedState=Md(l),c.childLanes=_d(n,C,l),i.memoizedState=Ad,i=h);else if(Jr(i),pp(M)){if(C=M.nextSibling&&M.nextSibling.dataset,C)var H=C.dgst;C=H,c=Error(o(419)),c.stack="",c.digest=C,$a({value:c,source:null,stack:null}),i=Dd(n,i,l)}else if(_t||Ya(n,i,l,!1),C=(l&n.childLanes)!==0,_t||C){if(C=ot,C!==null&&(c=l&-l,c=c&42?1:hf(c),c=c&(C.suspendedLanes|l)?0:c,c!==0&&c!==N.retryLane))throw N.retryLane=c,Ro(n,c),hn(C,n,c),qv;M.data==="$?"||Xd(),i=Dd(n,i,l)}else M.data==="$?"?(i.flags|=192,i.child=n.child,i=null):(n=N.treeContext,pt=Bn(M.nextSibling),qt=i,Qe=!0,Li=null,Zn=!1,n!==null&&(Rn[On++]=Cr,Rn[On++]=Tr,Rn[On++]=Ni,Cr=n.id,Tr=n.overflow,Ni=i),i=kd(i,c.children),i.flags|=4096);return i}return h?(ei(),h=c.fallback,M=i.mode,N=n.child,H=N.sibling,c=Er(N,{mode:"hidden",children:c.children}),c.subtreeFlags=N.subtreeFlags&65011712,H!==null?h=Er(H,h):(h=Di(h,M,l,null),h.flags|=2),h.return=i,c.return=i,c.sibling=h,i.child=c,c=h,h=i.child,M=n.child.memoizedState,M===null?M=Md(l):(N=M.cachePool,N!==null?(H=Tt._currentValue,N=N.parent!==H?{parent:H,pool:H}:N):N=jy(),M={baseLanes:M.baseLanes|l,cachePool:N}),h.memoizedState=M,h.childLanes=_d(n,C,l),i.memoizedState=Ad,c):(Jr(i),l=n.child,n=l.sibling,l=Er(l,{mode:"visible",children:c.children}),l.return=i,l.sibling=null,n!==null&&(C=i.deletions,C===null?(i.deletions=[n],i.flags|=16):C.push(n)),i.child=l,i.memoizedState=null,l)}function kd(n,i){return i=su({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function su(n,i){return n=un(22,n,null,i),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function Dd(n,i,l){return Io(i,n.child,null,l),n=kd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Jv(n,i,l){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i),Xf(n.return,i,l)}function Nd(n,i,l,c,h){var y=n.memoizedState;y===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:h}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=c,y.tail=l,y.tailMode=h)}function eb(n,i,l){var c=i.pendingProps,h=c.revealOrder,y=c.tail;if(Nt(n,i,c.children,l),c=Rt.current,c&2)c=c&1|2,i.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Jv(n,l,i);else if(n.tag===19)Jv(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}switch(A(Rt,c),h){case"forwards":for(l=i.child,h=null;l!==null;)n=l.alternate,n!==null&&iu(n)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),Nd(i,!1,h,l,y);break;case"backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&iu(n)===null){i.child=h;break}n=h.sibling,h.sibling=l,l=h,h=n}Nd(i,!0,l,null,y);break;case"together":Nd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function _r(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),oi|=i.lanes,!(l&i.childLanes))if(n!==null){if(Ya(n,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(o(153));if(i.child!==null){for(n=i.child,l=Er(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=Er(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function Pd(n,i){return n.lanes&i?!0:(n=n.dependencies,!!(n!==null&&Fs(n)))}function rA(n,i,l){switch(i.tag){case 3:ce(i,i.stateNode.containerInfo),Kr(i,Tt,n.memoizedState.cache),Ga();break;case 27:case 5:Ce(i);break;case 4:ce(i,i.stateNode.containerInfo);break;case 10:Kr(i,i.type,i.memoizedProps.value);break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Jr(i),i.flags|=128,null):l&i.child.childLanes?Zv(n,i,l):(Jr(i),n=_r(n,i,l),n!==null?n.sibling:null);Jr(i);break;case 19:var h=(n.flags&128)!==0;if(c=(l&i.childLanes)!==0,c||(Ya(n,i,l,!1),c=(l&i.childLanes)!==0),h){if(c)return eb(n,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),A(Rt,Rt.current),c)break;return null;case 22:case 23:return i.lanes=0,Yv(n,i,l);case 24:Kr(i,Tt,n.memoizedState.cache)}return _r(n,i,l)}function tb(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps)_t=!0;else{if(!Pd(n,l)&&!(i.flags&128))return _t=!1,rA(n,i,l);_t=!!(n.flags&131072)}else _t=!1,Qe&&i.flags&1048576&&ky(i,Hs,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var c=i.elementType,h=c._init;if(c=h(c._payload),i.type=c,typeof c=="function")qf(c)?(n=Hi(c,n),i.tag=1,i=Xv(null,i,c,n,l)):(i.tag=0,i=Od(null,i,c,n,l));else{if(c!=null){if(h=c.$$typeof,h===L){i.tag=11,i=Vv(null,i,c,n,l);break e}else if(h===I){i.tag=14,i=Gv(null,i,c,n,l);break e}}throw i=F(c)||c,Error(o(306,i,""))}}return i;case 0:return Od(n,i,i.type,i.pendingProps,l);case 1:return c=i.type,h=Hi(c,i.pendingProps),Xv(n,i,c,h,l);case 3:e:{if(ce(i,i.stateNode.containerInfo),n===null)throw Error(o(387));c=i.pendingProps;var y=i.memoizedState;h=y.element,rd(n,i),el(i,c,null,l);var C=i.memoizedState;if(c=C.cache,Kr(i,Tt,c),c!==y.cache&&Wf(i,[Tt],l,!0),Ja(),c=C.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:C.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=Wv(n,i,c,l);break e}else if(c!==h){h=Cn(Error(o(424)),i),$a(h),i=Wv(n,i,c,l);break e}else{switch(n=i.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(pt=Bn(n.firstChild),qt=i,Qe=!0,Li=null,Zn=!0,l=Nv(i,null,c,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ga(),c===h){i=_r(n,i,l);break e}Nt(n,i,c,l)}i=i.child}return i;case 26:return lu(n,i),n===null?(l=o0(i.type,null,i.pendingProps,null))?i.memoizedState=l:Qe||(l=i.type,n=i.pendingProps,c=wu(ie.current).createElement(l),c[It]=i,c[Qt]=n,Lt(c,l,n),Mt(c),i.stateNode=c):i.memoizedState=o0(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return Ce(i),n===null&&Qe&&(c=i.stateNode=n0(i.type,i.pendingProps,ie.current),qt=i,Zn=!0,h=pt,ui(i.type)?(hp=h,pt=Bn(c.firstChild)):pt=h),Nt(n,i,i.pendingProps.children,l),lu(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Qe&&((h=c=pt)&&(c=kA(c,i.type,i.pendingProps,Zn),c!==null?(i.stateNode=c,qt=i,pt=Bn(c.firstChild),Zn=!1,h=!0):h=!1),h||zi(i)),Ce(i),h=i.type,y=i.pendingProps,C=n!==null?n.memoizedProps:null,c=y.children,cp(h,y)?c=null:C!==null&&cp(h,C)&&(i.flags|=32),i.memoizedState!==null&&(h=ud(n,i,QO,null,null,l),wl._currentValue=h),lu(n,i),Nt(n,i,c,l),i.child;case 6:return n===null&&Qe&&((n=l=pt)&&(l=DA(l,i.pendingProps,Zn),l!==null?(i.stateNode=l,qt=i,pt=null,n=!0):n=!1),n||zi(i)),null;case 13:return Zv(n,i,l);case 4:return ce(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=Io(i,null,c,l):Nt(n,i,c,l),i.child;case 11:return Vv(n,i,i.type,i.pendingProps,l);case 7:return Nt(n,i,i.pendingProps,l),i.child;case 8:return Nt(n,i,i.pendingProps.children,l),i.child;case 12:return Nt(n,i,i.pendingProps.children,l),i.child;case 10:return c=i.pendingProps,Kr(i,i.type,c.value),Nt(n,i,c.children,l),i.child;case 9:return h=i.type._context,c=i.pendingProps.children,ji(i),h=jt(h),c=c(h),i.flags|=1,Nt(n,i,c,l),i.child;case 14:return Gv(n,i,i.type,i.pendingProps,l);case 15:return $v(n,i,i.type,i.pendingProps,l);case 19:return eb(n,i,l);case 31:return c=i.pendingProps,l=i.mode,c={mode:c.mode,children:c.children},n===null?(l=su(c,l),l.ref=i.ref,i.child=l,l.return=i,i=l):(l=Er(n.child,c),l.ref=i.ref,i.child=l,l.return=i,i=l),i;case 22:return Yv(n,i,l);case 24:return ji(i),c=jt(Tt),n===null?(h=ed(),h===null&&(h=ot,y=Zf(),h.pooledCache=y,y.refCount++,y!==null&&(h.pooledCacheLanes|=l),h=y),i.memoizedState={parent:c,cache:h},nd(i),Kr(i,Tt,h)):(n.lanes&l&&(rd(n,i),el(i,null,null,l),Ja()),h=n.memoizedState,y=i.memoizedState,h.parent!==c?(h={parent:c,cache:c},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),Kr(i,Tt,c)):(c=y.cache,Kr(i,Tt,c),c!==h.cache&&Wf(i,[Tt],l,!0))),Nt(n,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(o(156,i.tag))}function kr(n){n.flags|=4}function nb(n,i){if(i.type!=="stylesheet"||i.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!c0(i)){if(i=An.current,i!==null&&(($e&4194048)===$e?Jn!==null:($e&62914560)!==$e&&!($e&536870912)||i!==Jn))throw Wa=td,Uy;n.flags|=8192}}function uu(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Pg():536870912,n.lanes|=i,Ho|=i)}function ll(n,i){if(!Qe)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function ft(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(i)for(var h=n.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)l|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=l,i}function iA(n,i,l){var c=i.pendingProps;switch(Yf(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(i),null;case 1:return ft(i),null;case 3:return l=i.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Or(Tt),Ee(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Va(i)?kr(i):n===null||n.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Py())),ft(i),null;case 26:return l=i.memoizedState,n===null?(kr(i),l!==null?(ft(i),nb(i,l)):(ft(i),i.flags&=-16777217)):l?l!==n.memoizedState?(kr(i),ft(i),nb(i,l)):(ft(i),i.flags&=-16777217):(n.memoizedProps!==c&&kr(i),ft(i),i.flags&=-16777217),null;case 27:Ne(i),l=ie.current;var h=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==c&&kr(i);else{if(!c){if(i.stateNode===null)throw Error(o(166));return ft(i),null}n=te.current,Va(i)?Dy(i):(n=n0(h,c,l),i.stateNode=n,kr(i))}return ft(i),null;case 5:if(Ne(i),l=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==c&&kr(i);else{if(!c){if(i.stateNode===null)throw Error(o(166));return ft(i),null}if(n=te.current,Va(i))Dy(i);else{switch(h=wu(ie.current),n){case 1:n=h.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=h.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=h.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=h.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?n.multiple=!0:c.size&&(n.size=c.size);break;default:n=typeof c.is=="string"?h.createElement(l,{is:c.is}):h.createElement(l)}}n[It]=i,n[Qt]=c;e:for(h=i.child;h!==null;){if(h.tag===5||h.tag===6)n.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)break e;for(;h.sibling===null;){if(h.return===null||h.return===i)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}i.stateNode=n;e:switch(Lt(n,l,c),l){case"button":case"input":case"select":case"textarea":n=!!c.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&kr(i)}}return ft(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==c&&kr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(o(166));if(n=ie.current,Va(i)){if(n=i.stateNode,l=i.memoizedProps,c=null,h=qt,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}n[It]=i,n=!!(n.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||Qb(n.nodeValue,l)),n||zi(i)}else n=wu(n).createTextNode(c),n[It]=i,i.stateNode=n}return ft(i),null;case 13:if(c=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Va(i),c!==null&&c.dehydrated!==null){if(n===null){if(!h)throw Error(o(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));h[It]=i}else Ga(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;ft(i),h=!1}else h=Py(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Mr(i),i):(Mr(i),null)}if(Mr(i),i.flags&128)return i.lanes=l,i;if(l=c!==null,n=n!==null&&n.memoizedState!==null,l){c=i.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool);var y=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==h&&(c.flags|=2048)}return l!==n&&l&&(i.child.flags|=8192),uu(i,i.updateQueue),ft(i),null;case 4:return Ee(),n===null&&op(i.stateNode.containerInfo),ft(i),null;case 10:return Or(i.type),ft(i),null;case 19:if(fe(Rt),h=i.memoizedState,h===null)return ft(i),null;if(c=(i.flags&128)!==0,y=h.rendering,y===null)if(c)ll(h,!1);else{if(ht!==0||n!==null&&n.flags&128)for(n=i.child;n!==null;){if(y=iu(n),y!==null){for(i.flags|=128,ll(h,!1),n=y.updateQueue,i.updateQueue=n,uu(i,n),i.subtreeFlags=0,n=l,l=i.child;l!==null;)_y(l,n),l=l.sibling;return A(Rt,Rt.current&1|2),i.child}n=n.sibling}h.tail!==null&&bt()>du&&(i.flags|=128,c=!0,ll(h,!1),i.lanes=4194304)}else{if(!c)if(n=iu(y),n!==null){if(i.flags|=128,c=!0,n=n.updateQueue,i.updateQueue=n,uu(i,n),ll(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!Qe)return ft(i),null}else 2*bt()-h.renderingStartTime>du&&l!==536870912&&(i.flags|=128,c=!0,ll(h,!1),i.lanes=4194304);h.isBackwards?(y.sibling=i.child,i.child=y):(n=h.last,n!==null?n.sibling=y:i.child=y,h.last=y)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=bt(),i.sibling=null,n=Rt.current,A(Rt,c?n&1|2:n&1),i):(ft(i),null);case 22:case 23:return Mr(i),ld(),c=i.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?l&536870912&&!(i.flags&128)&&(ft(i),i.subtreeFlags&6&&(i.flags|=8192)):ft(i),l=i.updateQueue,l!==null&&uu(i,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==l&&(i.flags|=2048),n!==null&&fe(Ui),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Or(Tt),ft(i),null;case 25:return null;case 30:return null}throw Error(o(156,i.tag))}function oA(n,i){switch(Yf(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Or(Tt),Ee(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Ne(i),null;case 13:if(Mr(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(o(340));Ga()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return fe(Rt),null;case 4:return Ee(),null;case 10:return Or(i.type),null;case 22:case 23:return Mr(i),ld(),n!==null&&fe(Ui),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Or(Tt),null;case 25:return null;default:return null}}function rb(n,i){switch(Yf(i),i.tag){case 3:Or(Tt),Ee();break;case 26:case 27:case 5:Ne(i);break;case 4:Ee();break;case 13:Mr(i);break;case 19:fe(Rt);break;case 10:Or(i.type);break;case 22:case 23:Mr(i),ld(),n!==null&&fe(Ui);break;case 24:Or(Tt)}}function sl(n,i){try{var l=i.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var h=c.next;l=h;do{if((l.tag&n)===n){c=void 0;var y=l.create,C=l.inst;c=y(),C.destroy=c}l=l.next}while(l!==h)}}catch(M){it(i,i.return,M)}}function ti(n,i,l){try{var c=i.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&n)===n){var C=c.inst,M=C.destroy;if(M!==void 0){C.destroy=void 0,h=i;var N=l,H=M;try{H()}catch(re){it(h,N,re)}}}c=c.next}while(c!==y)}}catch(re){it(i,i.return,re)}}function ib(n){var i=n.updateQueue;if(i!==null){var l=n.stateNode;try{Gy(i,l)}catch(c){it(n,n.return,c)}}}function ob(n,i,l){l.props=Hi(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(c){it(n,i,c)}}function ul(n,i){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof l=="function"?n.refCleanup=l(c):l.current=c}}catch(h){it(n,i,h)}}function er(n,i){var l=n.ref,c=n.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(h){it(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){it(n,i,h)}else l.current=null}function ab(n){var i=n.type,l=n.memoizedProps,c=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(h){it(n,n.return,h)}}function Ld(n,i,l){try{var c=n.stateNode;RA(c,n.type,l,i),c[Qt]=i}catch(h){it(n,n.return,h)}}function lb(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ui(n.type)||n.tag===4}function zd(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||lb(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ui(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Id(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(n),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=xu));else if(c!==4&&(c===27&&ui(n.type)&&(l=n.stateNode,i=null),n=n.child,n!==null))for(Id(n,i,l),n=n.sibling;n!==null;)Id(n,i,l),n=n.sibling}function cu(n,i,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(c!==4&&(c===27&&ui(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(cu(n,i,l),n=n.sibling;n!==null;)cu(n,i,l),n=n.sibling}function sb(n){var i=n.stateNode,l=n.memoizedProps;try{for(var c=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);Lt(i,c,l),i[It]=n,i[Qt]=l}catch(y){it(n,n.return,y)}}var Dr=!1,xt=!1,jd=!1,ub=typeof WeakSet=="function"?WeakSet:Set,kt=null;function aA(n,i){if(n=n.containerInfo,sp=Au,n=Sy(n),zf(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var h=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{l.nodeType,y.nodeType}catch{l=null;break e}var C=0,M=-1,N=-1,H=0,re=0,se=n,q=null;t:for(;;){for(var V;se!==l||h!==0&&se.nodeType!==3||(M=C+h),se!==y||c!==0&&se.nodeType!==3||(N=C+c),se.nodeType===3&&(C+=se.nodeValue.length),(V=se.firstChild)!==null;)q=se,se=V;for(;;){if(se===n)break t;if(q===l&&++H===h&&(M=C),q===y&&++re===c&&(N=C),(V=se.nextSibling)!==null)break;se=q,q=se.parentNode}se=V}l=M===-1||N===-1?null:{start:M,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(up={focusedElem:n,selectionRange:l},Au=!1,kt=i;kt!==null;)if(i=kt,n=i.child,(i.subtreeFlags&1024)!==0&&n!==null)n.return=i,kt=n;else for(;kt!==null;){switch(i=kt,y=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if(n&1024&&y!==null){n=void 0,l=i,h=y.memoizedProps,y=y.memoizedState,c=l.stateNode;try{var ke=Hi(l.type,h,l.elementType===l.type);n=c.getSnapshotBeforeUpdate(ke,y),c.__reactInternalSnapshotBeforeUpdate=n}catch(Oe){it(l,l.return,Oe)}}break;case 3:if(n&1024){if(n=i.stateNode.containerInfo,l=n.nodeType,l===9)dp(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":dp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(n&1024)throw Error(o(163))}if(n=i.sibling,n!==null){n.return=i.return,kt=n;break}kt=i.return}}function cb(n,i,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:ni(n,l),c&4&&sl(5,l);break;case 1:if(ni(n,l),c&4)if(n=l.stateNode,i===null)try{n.componentDidMount()}catch(C){it(l,l.return,C)}else{var h=Hi(l.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(C){it(l,l.return,C)}}c&64&&ib(l),c&512&&ul(l,l.return);break;case 3:if(ni(n,l),c&64&&(n=l.updateQueue,n!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{Gy(n,i)}catch(C){it(l,l.return,C)}}break;case 27:i===null&&c&4&&sb(l);case 26:case 5:ni(n,l),i===null&&c&4&&ab(l),c&512&&ul(l,l.return);break;case 12:ni(n,l);break;case 13:ni(n,l),c&4&&pb(n,l),c&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=mA.bind(null,l),NA(n,l))));break;case 22:if(c=l.memoizedState!==null||Dr,!c){i=i!==null&&i.memoizedState!==null||xt,h=Dr;var y=xt;Dr=c,(xt=i)&&!y?ri(n,l,(l.subtreeFlags&8772)!==0):ni(n,l),Dr=h,xt=y}break;case 30:break;default:ni(n,l)}}function fb(n){var i=n.alternate;i!==null&&(n.alternate=null,fb(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&yf(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var ut=null,Zt=!1;function Nr(n,i,l){for(l=l.child;l!==null;)db(n,i,l),l=l.sibling}function db(n,i,l){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(ne,l)}catch{}switch(l.tag){case 26:xt||er(l,i),Nr(n,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:xt||er(l,i);var c=ut,h=Zt;ui(l.type)&&(ut=l.stateNode,Zt=!1),Nr(n,i,l),vl(l.stateNode),ut=c,Zt=h;break;case 5:xt||er(l,i);case 6:if(c=ut,h=Zt,ut=null,Nr(n,i,l),ut=c,Zt=h,ut!==null)if(Zt)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(l.stateNode)}catch(y){it(l,i,y)}else try{ut.removeChild(l.stateNode)}catch(y){it(l,i,y)}break;case 18:ut!==null&&(Zt?(n=ut,e0(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),Rl(n)):e0(ut,l.stateNode));break;case 4:c=ut,h=Zt,ut=l.stateNode.containerInfo,Zt=!0,Nr(n,i,l),ut=c,Zt=h;break;case 0:case 11:case 14:case 15:xt||ti(2,l,i),xt||ti(4,l,i),Nr(n,i,l);break;case 1:xt||(er(l,i),c=l.stateNode,typeof c.componentWillUnmount=="function"&&ob(l,i,c)),Nr(n,i,l);break;case 21:Nr(n,i,l);break;case 22:xt=(c=xt)||l.memoizedState!==null,Nr(n,i,l),xt=c;break;default:Nr(n,i,l)}}function pb(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Rl(n)}catch(l){it(i,i.return,l)}}function lA(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new ub),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new ub),i;default:throw Error(o(435,n.tag))}}function Ud(n,i){var l=lA(n);i.forEach(function(c){var h=gA.bind(null,n,c);l.has(c)||(l.add(c),c.then(h,h))})}function cn(n,i){var l=i.deletions;if(l!==null)for(var c=0;c<l.length;c++){var h=l[c],y=n,C=i,M=C;e:for(;M!==null;){switch(M.tag){case 27:if(ui(M.type)){ut=M.stateNode,Zt=!1;break e}break;case 5:ut=M.stateNode,Zt=!1;break e;case 3:case 4:ut=M.stateNode.containerInfo,Zt=!0;break e}M=M.return}if(ut===null)throw Error(o(160));db(y,C,h),ut=null,Zt=!1,y=h.alternate,y!==null&&(y.return=null),h.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)hb(i,n),i=i.sibling}var Un=null;function hb(n,i){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:cn(i,n),fn(n),c&4&&(ti(3,n,n.return),sl(3,n),ti(5,n,n.return));break;case 1:cn(i,n),fn(n),c&512&&(xt||l===null||er(l,l.return)),c&64&&Dr&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var h=Un;if(cn(i,n),fn(n),c&512&&(xt||l===null||er(l,l.return)),c&4){var y=l!==null?l.memoizedState:null;if(c=n.memoizedState,l===null)if(c===null)if(n.stateNode===null){e:{c=n.type,l=n.memoizedProps,h=h.ownerDocument||h;t:switch(c){case"title":y=h.getElementsByTagName("title")[0],(!y||y[Na]||y[It]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=h.createElement(c),h.head.insertBefore(y,h.querySelector("head > title"))),Lt(y,c,l),y[It]=n,Mt(y),c=y;break e;case"link":var C=s0("link","href",h).get(c+(l.href||""));if(C){for(var M=0;M<C.length;M++)if(y=C[M],y.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&y.getAttribute("rel")===(l.rel==null?null:l.rel)&&y.getAttribute("title")===(l.title==null?null:l.title)&&y.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(M,1);break t}}y=h.createElement(c),Lt(y,c,l),h.head.appendChild(y);break;case"meta":if(C=s0("meta","content",h).get(c+(l.content||""))){for(M=0;M<C.length;M++)if(y=C[M],y.getAttribute("content")===(l.content==null?null:""+l.content)&&y.getAttribute("name")===(l.name==null?null:l.name)&&y.getAttribute("property")===(l.property==null?null:l.property)&&y.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&y.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(M,1);break t}}y=h.createElement(c),Lt(y,c,l),h.head.appendChild(y);break;default:throw Error(o(468,c))}y[It]=n,Mt(y),c=y}n.stateNode=c}else u0(h,n.type,n.stateNode);else n.stateNode=l0(h,c,n.memoizedProps);else y!==c?(y===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):y.count--,c===null?u0(h,n.type,n.stateNode):l0(h,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Ld(n,n.memoizedProps,l.memoizedProps)}break;case 27:cn(i,n),fn(n),c&512&&(xt||l===null||er(l,l.return)),l!==null&&c&4&&Ld(n,n.memoizedProps,l.memoizedProps);break;case 5:if(cn(i,n),fn(n),c&512&&(xt||l===null||er(l,l.return)),n.flags&32){h=n.stateNode;try{bo(h,"")}catch(V){it(n,n.return,V)}}c&4&&n.stateNode!=null&&(h=n.memoizedProps,Ld(n,h,l!==null?l.memoizedProps:h)),c&1024&&(jd=!0);break;case 6:if(cn(i,n),fn(n),c&4){if(n.stateNode===null)throw Error(o(162));c=n.memoizedProps,l=n.stateNode;try{l.nodeValue=c}catch(V){it(n,n.return,V)}}break;case 3:if(Tu=null,h=Un,Un=Eu(i.containerInfo),cn(i,n),Un=h,fn(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{Rl(i.containerInfo)}catch(V){it(n,n.return,V)}jd&&(jd=!1,mb(n));break;case 4:c=Un,Un=Eu(n.stateNode.containerInfo),cn(i,n),fn(n),Un=c;break;case 12:cn(i,n),fn(n);break;case 13:cn(i,n),fn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gd=bt()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Ud(n,c)));break;case 22:h=n.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,H=Dr,re=xt;if(Dr=H||h,xt=re||N,cn(i,n),xt=re,Dr=H,fn(n),c&8192)e:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(l===null||N||Dr||xt||Fi(n)),l=null,i=n;;){if(i.tag===5||i.tag===26){if(l===null){N=l=i;try{if(y=N.stateNode,h)C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{M=N.stateNode;var se=N.memoizedProps.style,q=se!=null&&se.hasOwnProperty("display")?se.display:null;M.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(V){it(N,N.return,V)}}}else if(i.tag===6){if(l===null){N=i;try{N.stateNode.nodeValue=h?"":N.memoizedProps}catch(V){it(N,N.return,V)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=n.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,Ud(n,l))));break;case 19:cn(i,n),fn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,Ud(n,c)));break;case 30:break;case 21:break;default:cn(i,n),fn(n)}}function fn(n){var i=n.flags;if(i&2){try{for(var l,c=n.return;c!==null;){if(lb(c)){l=c;break}c=c.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var h=l.stateNode,y=zd(n);cu(n,y,h);break;case 5:var C=l.stateNode;l.flags&32&&(bo(C,""),l.flags&=-33);var M=zd(n);cu(n,M,C);break;case 3:case 4:var N=l.stateNode.containerInfo,H=zd(n);Id(n,H,N);break;default:throw Error(o(161))}}catch(re){it(n,n.return,re)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function mb(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;mb(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function ni(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)cb(n,i.alternate,i),i=i.sibling}function Fi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:ti(4,i,i.return),Fi(i);break;case 1:er(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&ob(i,i.return,l),Fi(i);break;case 27:vl(i.stateNode);case 26:case 5:er(i,i.return),Fi(i);break;case 22:i.memoizedState===null&&Fi(i);break;case 30:Fi(i);break;default:Fi(i)}n=n.sibling}}function ri(n,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,h=n,y=i,C=y.flags;switch(y.tag){case 0:case 11:case 15:ri(h,y,l),sl(4,y);break;case 1:if(ri(h,y,l),c=y,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(H){it(c,c.return,H)}if(c=y,h=c.updateQueue,h!==null){var M=c.stateNode;try{var N=h.shared.hiddenCallbacks;if(N!==null)for(h.shared.hiddenCallbacks=null,h=0;h<N.length;h++)Vy(N[h],M)}catch(H){it(c,c.return,H)}}l&&C&64&&ib(y),ul(y,y.return);break;case 27:sb(y);case 26:case 5:ri(h,y,l),l&&c===null&&C&4&&ab(y),ul(y,y.return);break;case 12:ri(h,y,l);break;case 13:ri(h,y,l),l&&C&4&&pb(h,y);break;case 22:y.memoizedState===null&&ri(h,y,l),ul(y,y.return);break;case 30:break;default:ri(h,y,l)}i=i.sibling}}function Bd(n,i){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&Ka(l))}function Hd(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Ka(n))}function tr(n,i,l,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)gb(n,i,l,c),i=i.sibling}function gb(n,i,l,c){var h=i.flags;switch(i.tag){case 0:case 11:case 15:tr(n,i,l,c),h&2048&&sl(9,i);break;case 1:tr(n,i,l,c);break;case 3:tr(n,i,l,c),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&Ka(n)));break;case 12:if(h&2048){tr(n,i,l,c),n=i.stateNode;try{var y=i.memoizedProps,C=y.id,M=y.onPostCommit;typeof M=="function"&&M(C,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(N){it(i,i.return,N)}}else tr(n,i,l,c);break;case 13:tr(n,i,l,c);break;case 23:break;case 22:y=i.stateNode,C=i.alternate,i.memoizedState!==null?y._visibility&2?tr(n,i,l,c):cl(n,i):y._visibility&2?tr(n,i,l,c):(y._visibility|=2,jo(n,i,l,c,(i.subtreeFlags&10256)!==0)),h&2048&&Bd(C,i);break;case 24:tr(n,i,l,c),h&2048&&Hd(i.alternate,i);break;default:tr(n,i,l,c)}}function jo(n,i,l,c,h){for(h=h&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var y=n,C=i,M=l,N=c,H=C.flags;switch(C.tag){case 0:case 11:case 15:jo(y,C,M,N,h),sl(8,C);break;case 23:break;case 22:var re=C.stateNode;C.memoizedState!==null?re._visibility&2?jo(y,C,M,N,h):cl(y,C):(re._visibility|=2,jo(y,C,M,N,h)),h&&H&2048&&Bd(C.alternate,C);break;case 24:jo(y,C,M,N,h),h&&H&2048&&Hd(C.alternate,C);break;default:jo(y,C,M,N,h)}i=i.sibling}}function cl(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=n,c=i,h=c.flags;switch(c.tag){case 22:cl(l,c),h&2048&&Bd(c.alternate,c);break;case 24:cl(l,c),h&2048&&Hd(c.alternate,c);break;default:cl(l,c)}i=i.sibling}}var fl=8192;function Uo(n){if(n.subtreeFlags&fl)for(n=n.child;n!==null;)yb(n),n=n.sibling}function yb(n){switch(n.tag){case 26:Uo(n),n.flags&fl&&n.memoizedState!==null&&$A(Un,n.memoizedState,n.memoizedProps);break;case 5:Uo(n);break;case 3:case 4:var i=Un;Un=Eu(n.stateNode.containerInfo),Uo(n),Un=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=fl,fl=16777216,Uo(n),fl=i):Uo(n));break;default:Uo(n)}}function vb(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function dl(n){var i=n.deletions;if(n.flags&16){if(i!==null)for(var l=0;l<i.length;l++){var c=i[l];kt=c,Sb(c,n)}vb(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)bb(n),n=n.sibling}function bb(n){switch(n.tag){case 0:case 11:case 15:dl(n),n.flags&2048&&ti(9,n,n.return);break;case 3:dl(n);break;case 12:dl(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,fu(n)):dl(n);break;default:dl(n)}}function fu(n){var i=n.deletions;if(n.flags&16){if(i!==null)for(var l=0;l<i.length;l++){var c=i[l];kt=c,Sb(c,n)}vb(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:ti(8,i,i.return),fu(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,fu(i));break;default:fu(i)}n=n.sibling}}function Sb(n,i){for(;kt!==null;){var l=kt;switch(l.tag){case 0:case 11:case 15:ti(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Ka(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,kt=c;else e:for(l=n;kt!==null;){c=kt;var h=c.sibling,y=c.return;if(fb(c),c===l){kt=null;break e}if(h!==null){h.return=y,kt=h;break e}kt=y}}}var sA={getCacheForType:function(n){var i=jt(Tt),l=i.data.get(n);return l===void 0&&(l=n(),i.data.set(n,l)),l}},uA=typeof WeakMap=="function"?WeakMap:Map,Je=0,ot=null,qe=null,$e=0,et=0,dn=null,ii=!1,Bo=!1,Fd=!1,Pr=0,ht=0,oi=0,qi=0,qd=0,Mn=0,Ho=0,pl=null,Jt=null,Vd=!1,Gd=0,du=1/0,pu=null,ai=null,Pt=0,li=null,Fo=null,qo=0,$d=0,Yd=null,xb=null,hl=0,Kd=null;function pn(){if(Je&2&&$e!==0)return $e&-$e;if(z.T!==null){var n=_o;return n!==0?n:tp()}return Ig()}function wb(){Mn===0&&(Mn=!($e&536870912)||Qe?Ng():536870912);var n=An.current;return n!==null&&(n.flags|=32),Mn}function hn(n,i,l){(n===ot&&(et===2||et===9)||n.cancelPendingCommit!==null)&&(Vo(n,0),si(n,$e,Mn,!1)),Da(n,l),(!(Je&2)||n!==ot)&&(n===ot&&(!(Je&2)&&(qi|=l),ht===4&&si(n,$e,Mn,!1)),nr(n))}function Eb(n,i,l){if(Je&6)throw Error(o(327));var c=!l&&(i&124)===0&&(i&n.expiredLanes)===0||xn(n,i),h=c?dA(n,i):Wd(n,i,!0),y=c;do{if(h===0){Bo&&!c&&si(n,i,0,!1);break}else{if(l=n.current.alternate,y&&!cA(l)){h=Wd(n,i,!1),y=!1;continue}if(h===2){if(y=i,n.errorRecoveryDisabledLanes&y)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){i=C;e:{var M=n;h=pl;var N=M.current.memoizedState.isDehydrated;if(N&&(Vo(M,C).flags|=256),C=Wd(M,C,!1),C!==2){if(Fd&&!N){M.errorRecoveryDisabledLanes|=y,qi|=y,h=4;break e}y=Jt,Jt=h,y!==null&&(Jt===null?Jt=y:Jt.push.apply(Jt,y))}h=C}if(y=!1,h!==2)continue}}if(h===1){Vo(n,0),si(n,i,0,!0);break}e:{switch(c=n,y=h,y){case 0:case 1:throw Error(o(345));case 4:if((i&4194048)!==i)break;case 6:si(c,i,Mn,!ii);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((i&62914560)===i&&(h=Gd+300-bt(),10<h)){if(si(c,i,Mn,!ii),At(c,0,!0)!==0)break e;c.timeoutHandle=Zb(Cb.bind(null,c,l,Jt,pu,Vd,i,Mn,qi,Ho,ii,y,2,-0,0),h);break e}Cb(c,l,Jt,pu,Vd,i,Mn,qi,Ho,ii,y,0,-0,0)}}break}while(!0);nr(n)}function Cb(n,i,l,c,h,y,C,M,N,H,re,se,q,V){if(n.timeoutHandle=-1,se=i.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(xl={stylesheets:null,count:0,unsuspend:GA},yb(i),se=YA(),se!==null)){n.cancelPendingCommit=se(kb.bind(null,n,i,y,l,c,h,C,M,N,re,1,q,V)),si(n,y,C,!H);return}kb(n,i,y,l,c,h,C,M,N)}function cA(n){for(var i=n;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var h=l[c],y=h.getSnapshot;h=h.value;try{if(!sn(y(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function si(n,i,l,c){i&=~qd,i&=~qi,n.suspendedLanes|=i,n.pingedLanes&=~i,c&&(n.warmLanes|=i),c=n.expirationTimes;for(var h=i;0<h;){var y=31-_e(h),C=1<<y;c[y]=-1,h&=~C}l!==0&&Lg(n,l,i)}function hu(){return Je&6?!0:(ml(0),!1)}function Qd(){if(qe!==null){if(et===0)var n=qe.return;else n=qe,Rr=Ii=null,dd(n),zo=null,ol=0,n=qe;for(;n!==null;)rb(n.alternate,n),n=n.return;qe=null}}function Vo(n,i){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,AA(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),Qd(),ot=n,qe=l=Er(n.current,null),$e=i,et=0,dn=null,ii=!1,Bo=xn(n,i),Fd=!1,Ho=Mn=qd=qi=oi=ht=0,Jt=pl=null,Vd=!1,i&8&&(i|=i&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=i;0<c;){var h=31-_e(c),y=1<<h;i|=n[h],c&=~y}return Pr=i,zs(),l}function Tb(n,i){Be=null,z.H=tu,i===Xa||i===Gs?(i=Fy(),et=3):i===Uy?(i=Fy(),et=4):et=i===qv?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,dn=i,qe===null&&(ht=1,au(n,Cn(i,n.current)))}function Rb(){var n=z.H;return z.H=tu,n===null?tu:n}function Ob(){var n=z.A;return z.A=sA,n}function Xd(){ht=4,ii||($e&4194048)!==$e&&An.current!==null||(Bo=!0),!(oi&134217727)&&!(qi&134217727)||ot===null||si(ot,$e,Mn,!1)}function Wd(n,i,l){var c=Je;Je|=2;var h=Rb(),y=Ob();(ot!==n||$e!==i)&&(pu=null,Vo(n,i)),i=!1;var C=ht;e:do try{if(et!==0&&qe!==null){var M=qe,N=dn;switch(et){case 8:Qd(),C=6;break e;case 3:case 2:case 9:case 6:An.current===null&&(i=!0);var H=et;if(et=0,dn=null,Go(n,M,N,H),l&&Bo){C=0;break e}break;default:H=et,et=0,dn=null,Go(n,M,N,H)}}fA(),C=ht;break}catch(re){Tb(n,re)}while(!0);return i&&n.shellSuspendCounter++,Rr=Ii=null,Je=c,z.H=h,z.A=y,qe===null&&(ot=null,$e=0,zs()),C}function fA(){for(;qe!==null;)Ab(qe)}function dA(n,i){var l=Je;Je|=2;var c=Rb(),h=Ob();ot!==n||$e!==i?(pu=null,du=bt()+500,Vo(n,i)):Bo=xn(n,i);e:do try{if(et!==0&&qe!==null){i=qe;var y=dn;t:switch(et){case 1:et=0,dn=null,Go(n,i,y,1);break;case 2:case 9:if(By(y)){et=0,dn=null,Mb(i);break}i=function(){et!==2&&et!==9||ot!==n||(et=7),nr(n)},y.then(i,i);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:By(y)?(et=0,dn=null,Mb(i)):(et=0,dn=null,Go(n,i,y,7));break;case 5:var C=null;switch(qe.tag){case 26:C=qe.memoizedState;case 5:case 27:var M=qe;if(!C||c0(C)){et=0,dn=null;var N=M.sibling;if(N!==null)qe=N;else{var H=M.return;H!==null?(qe=H,mu(H)):qe=null}break t}}et=0,dn=null,Go(n,i,y,5);break;case 6:et=0,dn=null,Go(n,i,y,6);break;case 8:Qd(),ht=6;break e;default:throw Error(o(462))}}pA();break}catch(re){Tb(n,re)}while(!0);return Rr=Ii=null,z.H=c,z.A=h,Je=l,qe!==null?0:(ot=null,$e=0,zs(),ht)}function pA(){for(;qe!==null&&!Yt();)Ab(qe)}function Ab(n){var i=tb(n.alternate,n,Pr);n.memoizedProps=n.pendingProps,i===null?mu(n):qe=i}function Mb(n){var i=n,l=i.alternate;switch(i.tag){case 15:case 0:i=Qv(l,i,i.pendingProps,i.type,void 0,$e);break;case 11:i=Qv(l,i,i.pendingProps,i.type.render,i.ref,$e);break;case 5:dd(i);default:rb(l,i),i=qe=_y(i,Pr),i=tb(l,i,Pr)}n.memoizedProps=n.pendingProps,i===null?mu(n):qe=i}function Go(n,i,l,c){Rr=Ii=null,dd(i),zo=null,ol=0;var h=i.return;try{if(nA(n,h,i,l,$e)){ht=1,au(n,Cn(l,n.current)),qe=null;return}}catch(y){if(h!==null)throw qe=h,y;ht=1,au(n,Cn(l,n.current)),qe=null;return}i.flags&32768?(Qe||c===1?n=!0:Bo||$e&536870912?n=!1:(ii=n=!0,(c===2||c===9||c===3||c===6)&&(c=An.current,c!==null&&c.tag===13&&(c.flags|=16384))),_b(i,n)):mu(i)}function mu(n){var i=n;do{if(i.flags&32768){_b(i,ii);return}n=i.return;var l=iA(i.alternate,i,Pr);if(l!==null){qe=l;return}if(i=i.sibling,i!==null){qe=i;return}qe=i=n}while(i!==null);ht===0&&(ht=5)}function _b(n,i){do{var l=oA(n.alternate,n);if(l!==null){l.flags&=32767,qe=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(n=n.sibling,n!==null)){qe=n;return}qe=n=l}while(n!==null);ht=6,qe=null}function kb(n,i,l,c,h,y,C,M,N){n.cancelPendingCommit=null;do gu();while(Pt!==0);if(Je&6)throw Error(o(327));if(i!==null){if(i===n.current)throw Error(o(177));if(y=i.lanes|i.childLanes,y|=Hf,GR(n,l,y,C,M,N),n===ot&&(qe=ot=null,$e=0),Fo=i,li=n,qo=l,$d=y,Yd=h,xb=c,i.subtreeFlags&10256||i.flags&10256?(n.callbackNode=null,n.callbackPriority=0,yA(Sn,function(){return zb(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(i.flags&13878)!==0,i.subtreeFlags&13878||c){c=z.T,z.T=null,h=K.p,K.p=2,C=Je,Je|=4;try{aA(n,i,l)}finally{Je=C,K.p=h,z.T=c}}Pt=1,Db(),Nb(),Pb()}}function Db(){if(Pt===1){Pt=0;var n=li,i=Fo,l=(i.flags&13878)!==0;if(i.subtreeFlags&13878||l){l=z.T,z.T=null;var c=K.p;K.p=2;var h=Je;Je|=4;try{hb(i,n);var y=up,C=Sy(n.containerInfo),M=y.focusedElem,N=y.selectionRange;if(C!==M&&M&&M.ownerDocument&&by(M.ownerDocument.documentElement,M)){if(N!==null&&zf(M)){var H=N.start,re=N.end;if(re===void 0&&(re=H),"selectionStart"in M)M.selectionStart=H,M.selectionEnd=Math.min(re,M.value.length);else{var se=M.ownerDocument||document,q=se&&se.defaultView||window;if(q.getSelection){var V=q.getSelection(),ke=M.textContent.length,Oe=Math.min(N.start,ke),rt=N.end===void 0?Oe:Math.min(N.end,ke);!V.extend&&Oe>rt&&(C=rt,rt=Oe,Oe=C);var U=vy(M,Oe),j=vy(M,rt);if(U&&j&&(V.rangeCount!==1||V.anchorNode!==U.node||V.anchorOffset!==U.offset||V.focusNode!==j.node||V.focusOffset!==j.offset)){var B=se.createRange();B.setStart(U.node,U.offset),V.removeAllRanges(),Oe>rt?(V.addRange(B),V.extend(j.node,j.offset)):(B.setEnd(j.node,j.offset),V.addRange(B))}}}}for(se=[],V=M;V=V.parentNode;)V.nodeType===1&&se.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<se.length;M++){var ae=se[M];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Au=!!sp,up=sp=null}finally{Je=h,K.p=c,z.T=l}}n.current=i,Pt=2}}function Nb(){if(Pt===2){Pt=0;var n=li,i=Fo,l=(i.flags&8772)!==0;if(i.subtreeFlags&8772||l){l=z.T,z.T=null;var c=K.p;K.p=2;var h=Je;Je|=4;try{cb(n,i.alternate,i)}finally{Je=h,K.p=c,z.T=l}}Pt=3}}function Pb(){if(Pt===4||Pt===3){Pt=0,on();var n=li,i=Fo,l=qo,c=xb;i.subtreeFlags&10256||i.flags&10256?Pt=5:(Pt=0,Fo=li=null,Lb(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(ai=null),mf(l),i=i.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(ne,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=z.T,h=K.p,K.p=2,z.T=null;try{for(var y=n.onRecoverableError,C=0;C<c.length;C++){var M=c[C];y(M.value,{componentStack:M.stack})}}finally{z.T=i,K.p=h}}qo&3&&gu(),nr(n),h=n.pendingLanes,l&4194090&&h&42?n===Kd?hl++:(hl=0,Kd=n):hl=0,ml(0)}}function Lb(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,Ka(i)))}function gu(n){return Db(),Nb(),Pb(),zb()}function zb(){if(Pt!==5)return!1;var n=li,i=$d;$d=0;var l=mf(qo),c=z.T,h=K.p;try{K.p=32>l?32:l,z.T=null,l=Yd,Yd=null;var y=li,C=qo;if(Pt=0,Fo=li=null,qo=0,Je&6)throw Error(o(331));var M=Je;if(Je|=4,bb(y.current),gb(y,y.current,C,l),Je=M,ml(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(ne,y)}catch{}return!0}finally{K.p=h,z.T=c,Lb(n,i)}}function Ib(n,i,l){i=Cn(l,i),i=Rd(n.stateNode,i,2),n=Wr(n,i,2),n!==null&&(Da(n,2),nr(n))}function it(n,i,l){if(n.tag===3)Ib(n,n,l);else for(;i!==null;){if(i.tag===3){Ib(i,n,l);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ai===null||!ai.has(c))){n=Cn(l,n),l=Hv(2),c=Wr(i,l,2),c!==null&&(Fv(l,c,i,n),Da(c,2),nr(c));break}}i=i.return}}function Zd(n,i,l){var c=n.pingCache;if(c===null){c=n.pingCache=new uA;var h=new Set;c.set(i,h)}else h=c.get(i),h===void 0&&(h=new Set,c.set(i,h));h.has(l)||(Fd=!0,h.add(l),n=hA.bind(null,n,i,l),i.then(n,n))}function hA(n,i,l){var c=n.pingCache;c!==null&&c.delete(i),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,ot===n&&($e&l)===l&&(ht===4||ht===3&&($e&62914560)===$e&&300>bt()-Gd?!(Je&2)&&Vo(n,0):qd|=l,Ho===$e&&(Ho=0)),nr(n)}function jb(n,i){i===0&&(i=Pg()),n=Ro(n,i),n!==null&&(Da(n,i),nr(n))}function mA(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),jb(n,l)}function gA(n,i){var l=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(l=h.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(o(314))}c!==null&&c.delete(i),jb(n,l)}function yA(n,i){return ze(n,i)}var yu=null,$o=null,Jd=!1,vu=!1,ep=!1,Vi=0;function nr(n){n!==$o&&n.next===null&&($o===null?yu=$o=n:$o=$o.next=n),vu=!0,Jd||(Jd=!0,bA())}function ml(n,i){if(!ep&&vu){ep=!0;do for(var l=!1,c=yu;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var y=0;else{var C=c.suspendedLanes,M=c.pingedLanes;y=(1<<31-_e(42|n)+1)-1,y&=h&~(C&~M),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(l=!0,Fb(c,y))}else y=$e,y=At(c,c===ot?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),!(y&3)||xn(c,y)||(l=!0,Fb(c,y));c=c.next}while(l);ep=!1}}function vA(){Ub()}function Ub(){vu=Jd=!1;var n=0;Vi!==0&&(OA()&&(n=Vi),Vi=0);for(var i=bt(),l=null,c=yu;c!==null;){var h=c.next,y=Bb(c,i);y===0?(c.next=null,l===null?yu=h:l.next=h,h===null&&($o=l)):(l=c,(n!==0||y&3)&&(vu=!0)),c=h}ml(n)}function Bb(n,i){for(var l=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,y=n.pendingLanes&-62914561;0<y;){var C=31-_e(y),M=1<<C,N=h[C];N===-1?(!(M&l)||M&c)&&(h[C]=In(M,i)):N<=i&&(n.expiredLanes|=M),y&=~M}if(i=ot,l=$e,l=At(n,n===i?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,l===0||n===i&&(et===2||et===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&st(c),n.callbackNode=null,n.callbackPriority=0;if(!(l&3)||xn(n,l)){if(i=l&-l,i===n.callbackPriority)return i;switch(c!==null&&st(c),mf(l)){case 2:case 8:l=Oi;break;case 32:l=Sn;break;case 268435456:l=co;break;default:l=Sn}return c=Hb.bind(null,n),l=ze(l,c),n.callbackPriority=i,n.callbackNode=l,i}return c!==null&&c!==null&&st(c),n.callbackPriority=2,n.callbackNode=null,2}function Hb(n,i){if(Pt!==0&&Pt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(gu()&&n.callbackNode!==l)return null;var c=$e;return c=At(n,n===ot?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(Eb(n,c,i),Bb(n,bt()),n.callbackNode!=null&&n.callbackNode===l?Hb.bind(null,n):null)}function Fb(n,i){if(gu())return null;Eb(n,i,!0)}function bA(){MA(function(){Je&6?ze(Gr,vA):Ub()})}function tp(){return Vi===0&&(Vi=Ng()),Vi}function qb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ms(""+n)}function Vb(n,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,n.id&&l.setAttribute("form",n.id),i.parentNode.insertBefore(l,i),n=new FormData(n),l.parentNode.removeChild(l),n}function SA(n,i,l,c,h){if(i==="submit"&&l&&l.stateNode===h){var y=qb((h[Qt]||null).action),C=c.submitter;C&&(i=(i=C[Qt]||null)?qb(i.formAction):C.getAttribute("formAction"),i!==null&&(y=i,C=null));var M=new Ns("action","action",null,c,h);n.push({event:M,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Vi!==0){var N=C?Vb(h,C):new FormData(h);xd(l,{pending:!0,data:N,method:h.method,action:y},null,N)}}else typeof y=="function"&&(M.preventDefault(),N=C?Vb(h,C):new FormData(h),xd(l,{pending:!0,data:N,method:h.method,action:y},y,N))},currentTarget:h}]})}}for(var np=0;np<Bf.length;np++){var rp=Bf[np],xA=rp.toLowerCase(),wA=rp[0].toUpperCase()+rp.slice(1);jn(xA,"on"+wA)}jn(Ey,"onAnimationEnd"),jn(Cy,"onAnimationIteration"),jn(Ty,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(UO,"onTransitionRun"),jn(BO,"onTransitionStart"),jn(HO,"onTransitionCancel"),jn(Ry,"onTransitionEnd"),go("onMouseEnter",["mouseout","mouseover"]),go("onMouseLeave",["mouseout","mouseover"]),go("onPointerEnter",["pointerout","pointerover"]),go("onPointerLeave",["pointerout","pointerover"]),Ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ai("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),EA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function Gb(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],h=c.event;c=c.listeners;e:{var y=void 0;if(i)for(var C=c.length-1;0<=C;C--){var M=c[C],N=M.instance,H=M.currentTarget;if(M=M.listener,N!==y&&h.isPropagationStopped())break e;y=M,h.currentTarget=H;try{y(h)}catch(re){ou(re)}h.currentTarget=null,y=N}else for(C=0;C<c.length;C++){if(M=c[C],N=M.instance,H=M.currentTarget,M=M.listener,N!==y&&h.isPropagationStopped())break e;y=M,h.currentTarget=H;try{y(h)}catch(re){ou(re)}h.currentTarget=null,y=N}}}}function Ve(n,i){var l=i[gf];l===void 0&&(l=i[gf]=new Set);var c=n+"__bubble";l.has(c)||($b(i,n,2,!1),l.add(c))}function ip(n,i,l){var c=0;i&&(c|=4),$b(l,n,c,i)}var bu="_reactListening"+Math.random().toString(36).slice(2);function op(n){if(!n[bu]){n[bu]=!0,Ug.forEach(function(l){l!=="selectionchange"&&(EA.has(l)||ip(l,!1,n),ip(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[bu]||(i[bu]=!0,ip("selectionchange",!1,i))}}function $b(n,i,l,c){switch(g0(i)){case 2:var h=XA;break;case 8:h=WA;break;default:h=bp}l=h.bind(null,i,l,n),h=void 0,!Of||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(i,l,{capture:!0,passive:h}):n.addEventListener(i,l,!0):h!==void 0?n.addEventListener(i,l,{passive:h}):n.addEventListener(i,l,!1)}function ap(n,i,l,c,h){var y=c;if(!(i&1)&&!(i&2)&&c!==null)e:for(;;){if(c===null)return;var C=c.tag;if(C===3||C===4){var M=c.stateNode.containerInfo;if(M===h)break;if(C===4)for(C=c.return;C!==null;){var N=C.tag;if((N===3||N===4)&&C.stateNode.containerInfo===h)return;C=C.return}for(;M!==null;){if(C=po(M),C===null)return;if(N=C.tag,N===5||N===6||N===26||N===27){c=y=C;continue e}M=M.parentNode}}c=c.return}Jg(function(){var H=y,re=Tf(l),se=[];e:{var q=Oy.get(n);if(q!==void 0){var V=Ns,ke=n;switch(n){case"keypress":if(ks(l)===0)break e;case"keydown":case"keyup":V=yO;break;case"focusin":ke="focus",V=kf;break;case"focusout":ke="blur",V=kf;break;case"beforeblur":case"afterblur":V=kf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=ny;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=oO;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=SO;break;case Ey:case Cy:case Ty:V=sO;break;case Ry:V=wO;break;case"scroll":case"scrollend":V=rO;break;case"wheel":V=CO;break;case"copy":case"cut":case"paste":V=cO;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=iy;break;case"toggle":case"beforetoggle":V=RO}var Oe=(i&4)!==0,rt=!Oe&&(n==="scroll"||n==="scrollend"),U=Oe?q!==null?q+"Capture":null:q;Oe=[];for(var j=H,B;j!==null;){var ae=j;if(B=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||B===null||U===null||(ae=La(j,U),ae!=null&&Oe.push(yl(j,ae,B))),rt)break;j=j.return}0<Oe.length&&(q=new V(q,ke,null,l,re),se.push({event:q,listeners:Oe}))}}if(!(i&7)){e:{if(q=n==="mouseover"||n==="pointerover",V=n==="mouseout"||n==="pointerout",q&&l!==Cf&&(ke=l.relatedTarget||l.fromElement)&&(po(ke)||ke[fo]))break e;if((V||q)&&(q=re.window===re?re:(q=re.ownerDocument)?q.defaultView||q.parentWindow:window,V?(ke=l.relatedTarget||l.toElement,V=H,ke=ke?po(ke):null,ke!==null&&(rt=s(ke),Oe=ke.tag,ke!==rt||Oe!==5&&Oe!==27&&Oe!==6)&&(ke=null)):(V=null,ke=H),V!==ke)){if(Oe=ny,ae="onMouseLeave",U="onMouseEnter",j="mouse",(n==="pointerout"||n==="pointerover")&&(Oe=iy,ae="onPointerLeave",U="onPointerEnter",j="pointer"),rt=V==null?q:Pa(V),B=ke==null?q:Pa(ke),q=new Oe(ae,j+"leave",V,l,re),q.target=rt,q.relatedTarget=B,ae=null,po(re)===H&&(Oe=new Oe(U,j+"enter",ke,l,re),Oe.target=B,Oe.relatedTarget=rt,ae=Oe),rt=ae,V&&ke)t:{for(Oe=V,U=ke,j=0,B=Oe;B;B=Yo(B))j++;for(B=0,ae=U;ae;ae=Yo(ae))B++;for(;0<j-B;)Oe=Yo(Oe),j--;for(;0<B-j;)U=Yo(U),B--;for(;j--;){if(Oe===U||U!==null&&Oe===U.alternate)break t;Oe=Yo(Oe),U=Yo(U)}Oe=null}else Oe=null;V!==null&&Yb(se,q,V,Oe,!1),ke!==null&&rt!==null&&Yb(se,rt,ke,Oe,!0)}}e:{if(q=H?Pa(H):window,V=q.nodeName&&q.nodeName.toLowerCase(),V==="select"||V==="input"&&q.type==="file")var be=dy;else if(cy(q))if(py)be=zO;else{be=PO;var He=NO}else V=q.nodeName,!V||V.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?H&&Ef(H.elementType)&&(be=dy):be=LO;if(be&&(be=be(n,H))){fy(se,be,l,re);break e}He&&He(n,q,H),n==="focusout"&&H&&q.type==="number"&&H.memoizedProps.value!=null&&wf(q,"number",q.value)}switch(He=H?Pa(H):window,n){case"focusin":(cy(He)||He.contentEditable==="true")&&(Eo=He,If=H,qa=null);break;case"focusout":qa=If=Eo=null;break;case"mousedown":jf=!0;break;case"contextmenu":case"mouseup":case"dragend":jf=!1,xy(se,l,re);break;case"selectionchange":if(jO)break;case"keydown":case"keyup":xy(se,l,re)}var Te;if(Nf)e:{switch(n){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else wo?sy(n,l)&&(Ae="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(Ae="onCompositionStart");Ae&&(oy&&l.locale!=="ko"&&(wo||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&wo&&(Te=ey()):(Yr=re,Af="value"in Yr?Yr.value:Yr.textContent,wo=!0)),He=Su(H,Ae),0<He.length&&(Ae=new ry(Ae,n,null,l,re),se.push({event:Ae,listeners:He}),Te?Ae.data=Te:(Te=uy(l),Te!==null&&(Ae.data=Te)))),(Te=AO?MO(n,l):_O(n,l))&&(Ae=Su(H,"onBeforeInput"),0<Ae.length&&(He=new ry("onBeforeInput","beforeinput",null,l,re),se.push({event:He,listeners:Ae}),He.data=Te)),SA(se,n,H,l,re)}Gb(se,i)})}function yl(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Su(n,i){for(var l=i+"Capture",c=[];n!==null;){var h=n,y=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||y===null||(h=La(n,l),h!=null&&c.unshift(yl(n,h,y)),h=La(n,i),h!=null&&c.push(yl(n,h,y))),n.tag===3)return c;n=n.return}return[]}function Yo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Yb(n,i,l,c,h){for(var y=i._reactName,C=[];l!==null&&l!==c;){var M=l,N=M.alternate,H=M.stateNode;if(M=M.tag,N!==null&&N===c)break;M!==5&&M!==26&&M!==27||H===null||(N=H,h?(H=La(l,y),H!=null&&C.unshift(yl(l,H,N))):h||(H=La(l,y),H!=null&&C.push(yl(l,H,N)))),l=l.return}C.length!==0&&n.push({event:i,listeners:C})}var CA=/\r\n?/g,TA=/\u0000|\uFFFD/g;function Kb(n){return(typeof n=="string"?n:""+n).replace(CA,`
|
|
49
|
+
`).replace(TA,"")}function Qb(n,i){return i=Kb(i),Kb(n)===i}function xu(){}function nt(n,i,l,c,h,y){switch(l){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||bo(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&bo(n,""+c);break;case"className":Rs(n,"class",c);break;case"tabIndex":Rs(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Rs(n,l,c);break;case"style":Wg(n,c,y);break;case"data":if(i!=="object"){Rs(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=Ms(""+c),n.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof y=="function"&&(l==="formAction"?(i!=="input"&&nt(n,i,"name",h.name,h,null),nt(n,i,"formEncType",h.formEncType,h,null),nt(n,i,"formMethod",h.formMethod,h,null),nt(n,i,"formTarget",h.formTarget,h,null)):(nt(n,i,"encType",h.encType,h,null),nt(n,i,"method",h.method,h,null),nt(n,i,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=Ms(""+c),n.setAttribute(l,c);break;case"onClick":c!=null&&(n.onclick=xu);break;case"onScroll":c!=null&&Ve("scroll",n);break;case"onScrollEnd":c!=null&&Ve("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(o(61));if(l=c.__html,l!=null){if(h.children!=null)throw Error(o(60));n.innerHTML=l}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}l=Ms(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""+c):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":c===!0?n.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,c):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(l,c):n.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(l):n.setAttribute(l,c);break;case"popover":Ve("beforetoggle",n),Ve("toggle",n),Ts(n,"popover",c);break;case"xlinkActuate":xr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":xr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":xr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":xr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":xr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":xr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":xr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":xr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":xr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ts(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=tO.get(l)||l,Ts(n,l,c))}}function lp(n,i,l,c,h,y){switch(l){case"style":Wg(n,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(o(61));if(l=c.__html,l!=null){if(h.children!=null)throw Error(o(60));n.innerHTML=l}}break;case"children":typeof c=="string"?bo(n,c):(typeof c=="number"||typeof c=="bigint")&&bo(n,""+c);break;case"onScroll":c!=null&&Ve("scroll",n);break;case"onScrollEnd":c!=null&&Ve("scrollend",n);break;case"onClick":c!=null&&(n.onclick=xu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),y=n[Qt]||null,y=y!=null?y[l]:null,typeof y=="function"&&n.removeEventListener(i,y,h),typeof c=="function")){typeof y!="function"&&y!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(i,c,h);break e}l in n?n[l]=c:c===!0?n.setAttribute(l,""):Ts(n,l,c)}}}function Lt(n,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",n),Ve("load",n);var c=!1,h=!1,y;for(y in l)if(l.hasOwnProperty(y)){var C=l[y];if(C!=null)switch(y){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:nt(n,i,y,C,l,null)}}h&&nt(n,i,"srcSet",l.srcSet,l,null),c&&nt(n,i,"src",l.src,l,null);return;case"input":Ve("invalid",n);var M=y=C=h=null,N=null,H=null;for(c in l)if(l.hasOwnProperty(c)){var re=l[c];if(re!=null)switch(c){case"name":h=re;break;case"type":C=re;break;case"checked":N=re;break;case"defaultChecked":H=re;break;case"value":y=re;break;case"defaultValue":M=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(o(137,i));break;default:nt(n,i,c,re,l,null)}}Yg(n,y,M,N,H,C,h,!1),Os(n);return;case"select":Ve("invalid",n),c=C=y=null;for(h in l)if(l.hasOwnProperty(h)&&(M=l[h],M!=null))switch(h){case"value":y=M;break;case"defaultValue":C=M;break;case"multiple":c=M;default:nt(n,i,h,M,l,null)}i=y,l=C,n.multiple=!!c,i!=null?vo(n,!!c,i,!1):l!=null&&vo(n,!!c,l,!0);return;case"textarea":Ve("invalid",n),y=h=c=null;for(C in l)if(l.hasOwnProperty(C)&&(M=l[C],M!=null))switch(C){case"value":c=M;break;case"defaultValue":h=M;break;case"children":y=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(91));break;default:nt(n,i,C,M,l,null)}Qg(n,c,h,y),Os(n);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(c=l[N],c!=null))switch(N){case"selected":n.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:nt(n,i,N,c,l,null)}return;case"dialog":Ve("beforetoggle",n),Ve("toggle",n),Ve("cancel",n),Ve("close",n);break;case"iframe":case"object":Ve("load",n);break;case"video":case"audio":for(c=0;c<gl.length;c++)Ve(gl[c],n);break;case"image":Ve("error",n),Ve("load",n);break;case"details":Ve("toggle",n);break;case"embed":case"source":case"link":Ve("error",n),Ve("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in l)if(l.hasOwnProperty(H)&&(c=l[H],c!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,i));default:nt(n,i,H,c,l,null)}return;default:if(Ef(i)){for(re in l)l.hasOwnProperty(re)&&(c=l[re],c!==void 0&&lp(n,i,re,c,l,void 0));return}}for(M in l)l.hasOwnProperty(M)&&(c=l[M],c!=null&&nt(n,i,M,c,l,null))}function RA(n,i,l,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,y=null,C=null,M=null,N=null,H=null,re=null;for(V in l){var se=l[V];if(l.hasOwnProperty(V)&&se!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":N=se;default:c.hasOwnProperty(V)||nt(n,i,V,null,c,se)}}for(var q in c){var V=c[q];if(se=l[q],c.hasOwnProperty(q)&&(V!=null||se!=null))switch(q){case"type":y=V;break;case"name":h=V;break;case"checked":H=V;break;case"defaultChecked":re=V;break;case"value":C=V;break;case"defaultValue":M=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,i));break;default:V!==se&&nt(n,i,q,V,c,se)}}xf(n,C,M,N,H,re,y,h);return;case"select":V=C=M=q=null;for(y in l)if(N=l[y],l.hasOwnProperty(y)&&N!=null)switch(y){case"value":break;case"multiple":V=N;default:c.hasOwnProperty(y)||nt(n,i,y,null,c,N)}for(h in c)if(y=c[h],N=l[h],c.hasOwnProperty(h)&&(y!=null||N!=null))switch(h){case"value":q=y;break;case"defaultValue":M=y;break;case"multiple":C=y;default:y!==N&&nt(n,i,h,y,c,N)}i=M,l=C,c=V,q!=null?vo(n,!!l,q,!1):!!c!=!!l&&(i!=null?vo(n,!!l,i,!0):vo(n,!!l,l?[]:"",!1));return;case"textarea":V=q=null;for(M in l)if(h=l[M],l.hasOwnProperty(M)&&h!=null&&!c.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:nt(n,i,M,null,c,h)}for(C in c)if(h=c[C],y=l[C],c.hasOwnProperty(C)&&(h!=null||y!=null))switch(C){case"value":q=h;break;case"defaultValue":V=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(o(91));break;default:h!==y&&nt(n,i,C,h,c,y)}Kg(n,q,V);return;case"option":for(var ke in l)if(q=l[ke],l.hasOwnProperty(ke)&&q!=null&&!c.hasOwnProperty(ke))switch(ke){case"selected":n.selected=!1;break;default:nt(n,i,ke,null,c,q)}for(N in c)if(q=c[N],V=l[N],c.hasOwnProperty(N)&&q!==V&&(q!=null||V!=null))switch(N){case"selected":n.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:nt(n,i,N,q,c,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Oe in l)q=l[Oe],l.hasOwnProperty(Oe)&&q!=null&&!c.hasOwnProperty(Oe)&&nt(n,i,Oe,null,c,q);for(H in c)if(q=c[H],V=l[H],c.hasOwnProperty(H)&&q!==V&&(q!=null||V!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,i));break;default:nt(n,i,H,q,c,V)}return;default:if(Ef(i)){for(var rt in l)q=l[rt],l.hasOwnProperty(rt)&&q!==void 0&&!c.hasOwnProperty(rt)&&lp(n,i,rt,void 0,c,q);for(re in c)q=c[re],V=l[re],!c.hasOwnProperty(re)||q===V||q===void 0&&V===void 0||lp(n,i,re,q,c,V);return}}for(var U in l)q=l[U],l.hasOwnProperty(U)&&q!=null&&!c.hasOwnProperty(U)&&nt(n,i,U,null,c,q);for(se in c)q=c[se],V=l[se],!c.hasOwnProperty(se)||q===V||q==null&&V==null||nt(n,i,se,q,c,V)}var sp=null,up=null;function wu(n){return n.nodeType===9?n:n.ownerDocument}function Xb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wb(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function cp(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var fp=null;function OA(){var n=window.event;return n&&n.type==="popstate"?n===fp?!1:(fp=n,!0):(fp=null,!1)}var Zb=typeof setTimeout=="function"?setTimeout:void 0,AA=typeof clearTimeout=="function"?clearTimeout:void 0,Jb=typeof Promise=="function"?Promise:void 0,MA=typeof queueMicrotask=="function"?queueMicrotask:typeof Jb<"u"?function(n){return Jb.resolve(null).then(n).catch(_A)}:Zb;function _A(n){setTimeout(function(){throw n})}function ui(n){return n==="head"}function e0(n,i){var l=i,c=0,h=0;do{var y=l.nextSibling;if(n.removeChild(l),y&&y.nodeType===8)if(l=y.data,l==="/$"){if(0<c&&8>c){l=c;var C=n.ownerDocument;if(l&1&&vl(C.documentElement),l&2&&vl(C.body),l&4)for(l=C.head,vl(l),C=l.firstChild;C;){var M=C.nextSibling,N=C.nodeName;C[Na]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&C.rel.toLowerCase()==="stylesheet"||l.removeChild(C),C=M}}if(h===0){n.removeChild(y),Rl(i);return}h--}else l==="$"||l==="$?"||l==="$!"?h++:c=l.charCodeAt(0)-48;else c=0;l=y}while(l);Rl(i)}function dp(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":dp(l),yf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function kA(n,i,l,c){for(;n.nodeType===1;){var h=l;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[Na])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(y=n.getAttribute("rel"),y==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(y!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(y=n.getAttribute("src"),(y!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&y&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var y=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===y)return n}else return n;if(n=Bn(n.nextSibling),n===null)break}return null}function DA(n,i,l){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=Bn(n.nextSibling),n===null))return null;return n}function pp(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function NA(n,i){var l=n.ownerDocument;if(n.data!=="$?"||l.readyState==="complete")i();else{var c=function(){i(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function Bn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}var hp=null;function t0(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}function n0(n,i,l){switch(i=wu(l),n){case"html":if(n=i.documentElement,!n)throw Error(o(452));return n;case"head":if(n=i.head,!n)throw Error(o(453));return n;case"body":if(n=i.body,!n)throw Error(o(454));return n;default:throw Error(o(451))}}function vl(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);yf(n)}var _n=new Map,r0=new Set;function Eu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Lr=K.d;K.d={f:PA,r:LA,D:zA,C:IA,L:jA,m:UA,X:HA,S:BA,M:FA};function PA(){var n=Lr.f(),i=hu();return n||i}function LA(n){var i=ho(n);i!==null&&i.tag===5&&i.type==="form"?Ev(i):Lr.r(n)}var Ko=typeof document>"u"?null:document;function i0(n,i,l){var c=Ko;if(c&&typeof i=="string"&&i){var h=En(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),r0.has(h)||(r0.add(h),n={rel:n,crossOrigin:l,href:i},c.querySelector(h)===null&&(i=c.createElement("link"),Lt(i,"link",n),Mt(i),c.head.appendChild(i)))}}function zA(n){Lr.D(n),i0("dns-prefetch",n,null)}function IA(n,i){Lr.C(n,i),i0("preconnect",n,i)}function jA(n,i,l){Lr.L(n,i,l);var c=Ko;if(c&&n&&i){var h='link[rel="preload"][as="'+En(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+En(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+En(l.imageSizes)+'"]')):h+='[href="'+En(n)+'"]';var y=h;switch(i){case"style":y=Qo(n);break;case"script":y=Xo(n)}_n.has(y)||(n=m({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:n,as:i},l),_n.set(y,n),c.querySelector(h)!==null||i==="style"&&c.querySelector(bl(y))||i==="script"&&c.querySelector(Sl(y))||(i=c.createElement("link"),Lt(i,"link",n),Mt(i),c.head.appendChild(i)))}}function UA(n,i){Lr.m(n,i);var l=Ko;if(l&&n){var c=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+En(c)+'"][href="'+En(n)+'"]',y=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Xo(n)}if(!_n.has(y)&&(n=m({rel:"modulepreload",href:n},i),_n.set(y,n),l.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sl(y)))return}c=l.createElement("link"),Lt(c,"link",n),Mt(c),l.head.appendChild(c)}}}function BA(n,i,l){Lr.S(n,i,l);var c=Ko;if(c&&n){var h=mo(c).hoistableStyles,y=Qo(n);i=i||"default";var C=h.get(y);if(!C){var M={loading:0,preload:null};if(C=c.querySelector(bl(y)))M.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},l),(l=_n.get(y))&&mp(n,l);var N=C=c.createElement("link");Mt(N),Lt(N,"link",n),N._p=new Promise(function(H,re){N.onload=H,N.onerror=re}),N.addEventListener("load",function(){M.loading|=1}),N.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Cu(C,i,c)}C={type:"stylesheet",instance:C,count:1,state:M},h.set(y,C)}}}function HA(n,i){Lr.X(n,i);var l=Ko;if(l&&n){var c=mo(l).hoistableScripts,h=Xo(n),y=c.get(h);y||(y=l.querySelector(Sl(h)),y||(n=m({src:n,async:!0},i),(i=_n.get(h))&&gp(n,i),y=l.createElement("script"),Mt(y),Lt(y,"link",n),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function FA(n,i){Lr.M(n,i);var l=Ko;if(l&&n){var c=mo(l).hoistableScripts,h=Xo(n),y=c.get(h);y||(y=l.querySelector(Sl(h)),y||(n=m({src:n,async:!0,type:"module"},i),(i=_n.get(h))&&gp(n,i),y=l.createElement("script"),Mt(y),Lt(y,"link",n),l.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(h,y))}}function o0(n,i,l,c){var h=(h=ie.current)?Eu(h):null;if(!h)throw Error(o(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=Qo(l.href),l=mo(h).hoistableStyles,c=l.get(i),c||(c={type:"style",instance:null,count:0,state:null},l.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Qo(l.href);var y=mo(h).hoistableStyles,C=y.get(n);if(C||(h=h.ownerDocument||h,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(n,C),(y=h.querySelector(bl(n)))&&!y._p&&(C.instance=y,C.state.loading=5),_n.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},_n.set(n,l),y||qA(h,n,l,C.state))),i&&c===null)throw Error(o(528,""));return C}if(i&&c!==null)throw Error(o(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Xo(l),l=mo(h).hoistableScripts,c=l.get(i),c||(c={type:"script",instance:null,count:0,state:null},l.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,n))}}function Qo(n){return'href="'+En(n)+'"'}function bl(n){return'link[rel="stylesheet"]['+n+"]"}function a0(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function qA(n,i,l,c){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=n.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),Lt(i,"link",l),Mt(i),n.head.appendChild(i))}function Xo(n){return'[src="'+En(n)+'"]'}function Sl(n){return"script[async]"+n}function l0(n,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var c=n.querySelector('style[data-href~="'+En(l.href)+'"]');if(c)return i.instance=c,Mt(c),c;var h=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),Mt(c),Lt(c,"style",h),Cu(c,l.precedence,n),i.instance=c;case"stylesheet":h=Qo(l.href);var y=n.querySelector(bl(h));if(y)return i.state.loading|=4,i.instance=y,Mt(y),y;c=a0(l),(h=_n.get(h))&&mp(c,h),y=(n.ownerDocument||n).createElement("link"),Mt(y);var C=y;return C._p=new Promise(function(M,N){C.onload=M,C.onerror=N}),Lt(y,"link",c),i.state.loading|=4,Cu(y,l.precedence,n),i.instance=y;case"script":return y=Xo(l.src),(h=n.querySelector(Sl(y)))?(i.instance=h,Mt(h),h):(c=l,(h=_n.get(y))&&(c=m({},l),gp(c,h)),n=n.ownerDocument||n,h=n.createElement("script"),Mt(h),Lt(h,"link",c),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(o(443,i.type))}else i.type==="stylesheet"&&!(i.state.loading&4)&&(c=i.instance,i.state.loading|=4,Cu(c,l.precedence,n));return i.instance}function Cu(n,i,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,y=h,C=0;C<c.length;C++){var M=c[C];if(M.dataset.precedence===i)y=M;else if(y!==h)break}y?y.parentNode.insertBefore(n,y.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(n,i.firstChild))}function mp(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function gp(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Tu=null;function s0(n,i,l){if(Tu===null){var c=new Map,h=Tu=new Map;h.set(l,c)}else h=Tu,c=h.get(l),c||(c=new Map,h.set(l,c));if(c.has(n))return c;for(c.set(n,null),l=l.getElementsByTagName(n),h=0;h<l.length;h++){var y=l[h];if(!(y[Na]||y[It]||n==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(i)||"";C=n+C;var M=c.get(C);M?M.push(y):c.set(C,[y])}}return c}function u0(n,i,l){n=n.ownerDocument||n,n.head.insertBefore(l,i==="title"?n.querySelector("head > title"):null)}function VA(n,i,l){if(l===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function c0(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}var xl=null;function GA(){}function $A(n,i,l){if(xl===null)throw Error(o(475));var c=xl;if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(i.state.loading&4)){if(i.instance===null){var h=Qo(l.href),y=n.querySelector(bl(h));if(y){n=y._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(c.count++,c=Ru.bind(c),n.then(c,c)),i.state.loading|=4,i.instance=y,Mt(y);return}y=n.ownerDocument||n,l=a0(l),(h=_n.get(h))&&mp(l,h),y=y.createElement("link"),Mt(y);var C=y;C._p=new Promise(function(M,N){C.onload=M,C.onerror=N}),Lt(y,"link",l),i.instance=y}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(i,n),(n=i.state.preload)&&!(i.state.loading&3)&&(c.count++,i=Ru.bind(c),n.addEventListener("load",i),n.addEventListener("error",i))}}function YA(){if(xl===null)throw Error(o(475));var n=xl;return n.stylesheets&&n.count===0&&yp(n,n.stylesheets),0<n.count?function(i){var l=setTimeout(function(){if(n.stylesheets&&yp(n,n.stylesheets),n.unsuspend){var c=n.unsuspend;n.unsuspend=null,c()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(l)}}:null}function Ru(){if(this.count--,this.count===0){if(this.stylesheets)yp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Ou=null;function yp(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Ou=new Map,i.forEach(KA,n),Ou=null,Ru.call(n))}function KA(n,i){if(!(i.state.loading&4)){var l=Ou.get(n);if(l)var c=l.get(null);else{l=new Map,Ou.set(n,l);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<h.length;y++){var C=h[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),c=C)}c&&l.set(null,c)}h=i.instance,C=h.getAttribute("data-precedence"),y=l.get(C)||c,y===c&&l.set(null,h),l.set(C,h),this.count++,c=Ru.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),y?y.parentNode.insertBefore(h,y.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var wl={$$typeof:_,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function QA(n,i,l,c,h,y,C,M){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=pf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pf(0),this.hiddenUpdates=pf(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function f0(n,i,l,c,h,y,C,M,N,H,re,se){return n=new QA(n,i,l,C,M,N,H,se),i=1,y===!0&&(i|=24),y=un(3,null,null,i),n.current=y,y.stateNode=n,i=Zf(),i.refCount++,n.pooledCache=i,i.refCount++,y.memoizedState={element:c,isDehydrated:l,cache:i},nd(y),n}function d0(n){return n?(n=Oo,n):Oo}function p0(n,i,l,c,h,y){h=d0(h),c.context===null?c.context=h:c.pendingContext=h,c=Xr(i),c.payload={element:l},y=y===void 0?null:y,y!==null&&(c.callback=y),l=Wr(n,c,i),l!==null&&(hn(l,n,i),Za(l,n,i))}function h0(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function vp(n,i){h0(n,i),(n=n.alternate)&&h0(n,i)}function m0(n){if(n.tag===13){var i=Ro(n,67108864);i!==null&&hn(i,n,67108864),vp(n,67108864)}}var Au=!0;function XA(n,i,l,c){var h=z.T;z.T=null;var y=K.p;try{K.p=2,bp(n,i,l,c)}finally{K.p=y,z.T=h}}function WA(n,i,l,c){var h=z.T;z.T=null;var y=K.p;try{K.p=8,bp(n,i,l,c)}finally{K.p=y,z.T=h}}function bp(n,i,l,c){if(Au){var h=Sp(c);if(h===null)ap(n,i,c,Mu,l),y0(n,c);else if(JA(h,n,i,l,c))c.stopPropagation();else if(y0(n,c),i&4&&-1<ZA.indexOf(n)){for(;h!==null;){var y=ho(h);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=ln(y.pendingLanes);if(C!==0){var M=y;for(M.pendingLanes|=2,M.entangledLanes|=2;C;){var N=1<<31-_e(C);M.entanglements[1]|=N,C&=~N}nr(y),!(Je&6)&&(du=bt()+500,ml(0))}}break;case 13:M=Ro(y,2),M!==null&&hn(M,y,2),hu(),vp(y,2)}if(y=Sp(c),y===null&&ap(n,i,c,Mu,l),y===h)break;h=y}h!==null&&c.stopPropagation()}else ap(n,i,c,null,l)}}function Sp(n){return n=Tf(n),xp(n)}var Mu=null;function xp(n){if(Mu=null,n=po(n),n!==null){var i=s(n);if(i===null)n=null;else{var l=i.tag;if(l===13){if(n=u(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Mu=n,null}function g0(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ot()){case Gr:return 2;case Oi:return 8;case Sn:case uo:return 32;case co:return 268435456;default:return 32}default:return 32}}var wp=!1,ci=null,fi=null,di=null,El=new Map,Cl=new Map,pi=[],ZA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function y0(n,i){switch(n){case"focusin":case"focusout":ci=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":El.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cl.delete(i.pointerId)}}function Tl(n,i,l,c,h,y){return n===null||n.nativeEvent!==y?(n={blockedOn:i,domEventName:l,eventSystemFlags:c,nativeEvent:y,targetContainers:[h]},i!==null&&(i=ho(i),i!==null&&m0(i)),n):(n.eventSystemFlags|=c,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function JA(n,i,l,c,h){switch(i){case"focusin":return ci=Tl(ci,n,i,l,c,h),!0;case"dragenter":return fi=Tl(fi,n,i,l,c,h),!0;case"mouseover":return di=Tl(di,n,i,l,c,h),!0;case"pointerover":var y=h.pointerId;return El.set(y,Tl(El.get(y)||null,n,i,l,c,h)),!0;case"gotpointercapture":return y=h.pointerId,Cl.set(y,Tl(Cl.get(y)||null,n,i,l,c,h)),!0}return!1}function v0(n){var i=po(n.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=u(l),i!==null){n.blockedOn=i,$R(n.priority,function(){if(l.tag===13){var c=pn();c=hf(c);var h=Ro(l,c);h!==null&&hn(h,l,c),vp(l,c)}});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function _u(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=Sp(n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);Cf=c,l.target.dispatchEvent(c),Cf=null}else return i=ho(l),i!==null&&m0(i),n.blockedOn=l,!1;i.shift()}return!0}function b0(n,i,l){_u(n)&&l.delete(i)}function eM(){wp=!1,ci!==null&&_u(ci)&&(ci=null),fi!==null&&_u(fi)&&(fi=null),di!==null&&_u(di)&&(di=null),El.forEach(b0),Cl.forEach(b0)}function ku(n,i){n.blockedOn===i&&(n.blockedOn=null,wp||(wp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,eM)))}var Du=null;function S0(n){Du!==n&&(Du=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Du===n&&(Du=null);for(var i=0;i<n.length;i+=3){var l=n[i],c=n[i+1],h=n[i+2];if(typeof c!="function"){if(xp(c||l)===null)continue;break}var y=ho(l);y!==null&&(n.splice(i,3),i-=3,xd(y,{pending:!0,data:h,method:l.method,action:c},c,h))}}))}function Rl(n){function i(N){return ku(N,n)}ci!==null&&ku(ci,n),fi!==null&&ku(fi,n),di!==null&&ku(di,n),El.forEach(i),Cl.forEach(i);for(var l=0;l<pi.length;l++){var c=pi[l];c.blockedOn===n&&(c.blockedOn=null)}for(;0<pi.length&&(l=pi[0],l.blockedOn===null);)v0(l),l.blockedOn===null&&pi.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var h=l[c],y=l[c+1],C=h[Qt]||null;if(typeof y=="function")C||S0(l);else if(C){var M=null;if(y&&y.hasAttribute("formAction")){if(h=y,C=y[Qt]||null)M=C.formAction;else if(xp(h)!==null)continue}else M=C.action;typeof M=="function"?l[c+1]=M:(l.splice(c,3),c-=3),S0(l)}}}function Ep(n){this._internalRoot=n}Nu.prototype.render=Ep.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(o(409));var l=i.current,c=pn();p0(l,c,n,i,null,null)},Nu.prototype.unmount=Ep.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;p0(n.current,2,null,n,null,null),hu(),i[fo]=null}};function Nu(n){this._internalRoot=n}Nu.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ig();n={blockedOn:null,target:n,priority:i};for(var l=0;l<pi.length&&i!==0&&i<pi[l].priority;l++);pi.splice(l,0,n),l===0&&v0(n)}};var x0=t.version;if(x0!=="19.1.0")throw Error(o(527,x0,"19.1.0"));K.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(o(188)):(n=Object.keys(n).join(","),Error(o(268,n)));return n=d(i),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var tM={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{ne=Pu.inject(tM),de=Pu}catch{}}return Al.createRoot=function(n,i){if(!a(n))throw Error(o(299));var l=!1,c="",h=Iv,y=jv,C=Uv,M=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(M=i.unstable_transitionCallbacks)),i=f0(n,1,!1,null,null,l,c,h,y,C,M,null),n[fo]=i.current,op(n),new Ep(i)},Al.hydrateRoot=function(n,i,l){if(!a(n))throw Error(o(299));var c=!1,h="",y=Iv,C=jv,M=Uv,N=null,H=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(y=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(M=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(N=l.unstable_transitionCallbacks),l.formState!==void 0&&(H=l.formState)),i=f0(n,1,!0,i,l??null,c,h,y,C,M,N,H),i.context=d0(null),l=i.current,c=pn(),c=hf(c),h=Xr(c),h.callback=null,Wr(l,h,c),l=c,i.current.lanes=l,Da(i,l),nr(i),n[fo]=i.current,op(n),new Nu(i)},Al.version="19.1.0",Al}var k0;function fM(){if(k0)return Rp.exports;k0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rp.exports=cM(),Rp.exports}var G8=fM();function D0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rc(...e){return t=>{let r=!1;const o=e.map(a=>{const s=D0(a,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let a=0;a<o.length;a++){const s=o[a];typeof s=="function"?s():D0(e[a],null)}}}}function Le(...e){return b.useCallback(Rc(...e),e)}function Qi(e){const t=dM(e),r=b.forwardRef((o,a)=>{const{children:s,...u}=o,f=b.Children.toArray(s),d=f.find(pM);if(d){const p=d.props.children,m=f.map(g=>g===d?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:g);return k.jsx(t,{...u,ref:a,children:b.isValidElement(p)?b.cloneElement(p,void 0,m):null})}return k.jsx(t,{...u,ref:a,children:s})});return r.displayName=`${e}.Slot`,r}var $8=Qi("Slot");function dM(e){const t=b.forwardRef((r,o)=>{const{children:a,...s}=r;if(b.isValidElement(a)){const u=mM(a),f=hM(s,a.props);return a.type!==b.Fragment&&(f.ref=o?Rc(o,u):u),b.cloneElement(a,f)}return b.Children.count(a)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WS=Symbol("radix.slottable");function ZS(e){const t=({children:r})=>k.jsx(k.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=WS,t}function pM(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WS}function hM(e,t){const r={...t};for(const o in t){const a=e[o],s=t[o];/^on[A-Z]/.test(o)?a&&s?r[o]=(...f)=>{const d=s(...f);return a(...f),d}:a&&(r[o]=a):o==="style"?r[o]={...a,...s}:o==="className"&&(r[o]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}function mM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fr=XS();const ql=qr(fr);var gM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],we=gM.reduce((e,t)=>{const r=Qi(`Primitive.${t}`),o=b.forwardRef((a,s)=>{const{asChild:u,...f}=a,d=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(d,{...f,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function cm(e,t){e&&fr.flushSync(()=>e.dispatchEvent(t))}var yM="Separator",N0="horizontal",vM=["horizontal","vertical"],JS=b.forwardRef((e,t)=>{const{decorative:r,orientation:o=N0,...a}=e,s=bM(o)?o:N0,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return k.jsx(we.div,{"data-orientation":s,...f,...a,ref:t})});JS.displayName=yM;function bM(e){return vM.includes(e)}var Y8=JS;function SM(e,t){const r=b.createContext(t),o=s=>{const{children:u,...f}=s,d=b.useMemo(()=>f,Object.values(f));return k.jsx(r.Provider,{value:d,children:u})};o.displayName=e+"Provider";function a(s){const u=b.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,a]}function Gt(e,t=[]){let r=[];function o(s,u){const f=b.createContext(u),d=r.length;r=[...r,u];const p=g=>{const{scope:v,children:S,...w}=g,x=v?.[e]?.[d]||f,T=b.useMemo(()=>w,Object.values(w));return k.jsx(x.Provider,{value:T,children:S})};p.displayName=s+"Provider";function m(g,v){const S=v?.[e]?.[d]||f,w=b.useContext(S);if(w)return w;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[p,m]}const a=()=>{const s=r.map(u=>b.createContext(u));return function(f){const d=f?.[e]||s;return b.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return a.scopeName=e,[o,xM(a,...t)]}function xM(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const u=o.reduce((f,{useScope:d,scopeName:p})=>{const g=d(s)[`__scope${p}`];return{...f,...g}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var vt=globalThis?.document?b.useLayoutEffect:()=>{},wM=um[" useId ".trim().toString()]||(()=>{}),EM=0;function Pn(e){const[t,r]=b.useState(wM());return vt(()=>{r(o=>o??String(EM++))},[e]),e||(t?`radix-${t}`:"")}var CM=um[" useInsertionEffect ".trim().toString()]||vt;function pr({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){const[a,s,u]=TM({defaultProp:t,onChange:r}),f=e!==void 0,d=f?e:a;{const m=b.useRef(e!==void 0);b.useEffect(()=>{const g=m.current;g!==f&&console.warn(`${o} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,o])}const p=b.useCallback(m=>{if(f){const g=RM(m)?m(e):m;g!==e&&u.current?.(g)}else s(m)},[f,e,s,u]);return[d,p]}function TM({defaultProp:e,onChange:t}){const[r,o]=b.useState(e),a=b.useRef(r),s=b.useRef(t);return CM(()=>{s.current=t},[t]),b.useEffect(()=>{a.current!==r&&(s.current?.(r),a.current=r)},[r,a]),[r,o,s]}function RM(e){return typeof e=="function"}function yt(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>t.current?.(...r),[])}function OM(e,t=globalThis?.document){const r=yt(e);b.useEffect(()=>{const o=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var AM="DismissableLayer",bh="dismissableLayer.update",MM="dismissableLayer.pointerDownOutside",_M="dismissableLayer.focusOutside",P0,ex=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ba=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:u,onDismiss:f,...d}=e,p=b.useContext(ex),[m,g]=b.useState(null),v=m?.ownerDocument??globalThis?.document,[,S]=b.useState({}),w=Le(t,I=>g(I)),x=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(T),O=m?x.indexOf(m):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,L=O>=E,P=DM(I=>{const G=I.target,X=[...p.branches].some(Z=>Z.contains(G));!L||X||(a?.(I),u?.(I),I.defaultPrevented||f?.())},v),D=NM(I=>{const G=I.target;[...p.branches].some(Z=>Z.contains(G))||(s?.(I),u?.(I),I.defaultPrevented||f?.())},v);return OM(I=>{O===p.layers.size-1&&(o?.(I),!I.defaultPrevented&&f&&(I.preventDefault(),f()))},v),b.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(P0=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),L0(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=P0)}},[m,v,r,p]),b.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),L0())},[m,p]),b.useEffect(()=>{const I=()=>S({});return document.addEventListener(bh,I),()=>document.removeEventListener(bh,I)},[]),k.jsx(we.div,{...d,ref:w,style:{pointerEvents:_?L?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,D.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,P.onPointerDownCapture)})});ba.displayName=AM;var kM="DismissableLayerBranch",tx=b.forwardRef((e,t)=>{const r=b.useContext(ex),o=b.useRef(null),a=Le(t,o);return b.useEffect(()=>{const s=o.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),k.jsx(we.div,{...e,ref:a})});tx.displayName=kM;function DM(e,t=globalThis?.document){const r=yt(e),o=b.useRef(!1),a=b.useRef(()=>{});return b.useEffect(()=>{const s=f=>{if(f.target&&!o.current){let d=function(){nx(MM,r,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);o.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function NM(e,t=globalThis?.document){const r=yt(e),o=b.useRef(!1);return b.useEffect(()=>{const a=s=>{s.target&&!o.current&&nx(_M,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function L0(){const e=new CustomEvent(bh);document.dispatchEvent(e)}function nx(e,t,r,{discrete:o}){const a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?cm(a,s):a.dispatchEvent(s)}var PM=ba,LM=tx,_p="focusScope.autoFocusOnMount",kp="focusScope.autoFocusOnUnmount",z0={bubbles:!1,cancelable:!0},zM="FocusScope",Oc=b.forwardRef((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...u}=e,[f,d]=b.useState(null),p=yt(a),m=yt(s),g=b.useRef(null),v=Le(t,x=>d(x)),S=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(o){let x=function(_){if(S.paused||!f)return;const L=_.target;f.contains(L)?g.current=L:gi(g.current,{select:!0})},T=function(_){if(S.paused||!f)return;const L=_.relatedTarget;L!==null&&(f.contains(L)||gi(g.current,{select:!0}))},E=function(_){if(document.activeElement===document.body)for(const P of _)P.removedNodes.length>0&&gi(f)};document.addEventListener("focusin",x),document.addEventListener("focusout",T);const O=new MutationObserver(E);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",T),O.disconnect()}}},[o,f,S.paused]),b.useEffect(()=>{if(f){j0.add(S);const x=document.activeElement;if(!f.contains(x)){const E=new CustomEvent(_p,z0);f.addEventListener(_p,p),f.dispatchEvent(E),E.defaultPrevented||(IM(FM(rx(f)),{select:!0}),document.activeElement===x&&gi(f))}return()=>{f.removeEventListener(_p,p),setTimeout(()=>{const E=new CustomEvent(kp,z0);f.addEventListener(kp,m),f.dispatchEvent(E),E.defaultPrevented||gi(x??document.body,{select:!0}),f.removeEventListener(kp,m),j0.remove(S)},0)}}},[f,p,m,S]);const w=b.useCallback(x=>{if(!r&&!o||S.paused)return;const T=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,E=document.activeElement;if(T&&E){const O=x.currentTarget,[_,L]=jM(O);_&&L?!x.shiftKey&&E===L?(x.preventDefault(),r&&gi(_,{select:!0})):x.shiftKey&&E===_&&(x.preventDefault(),r&&gi(L,{select:!0})):E===O&&x.preventDefault()}},[r,o,S.paused]);return k.jsx(we.div,{tabIndex:-1,...u,ref:v,onKeyDown:w})});Oc.displayName=zM;function IM(e,{select:t=!1}={}){const r=document.activeElement;for(const o of e)if(gi(o,{select:t}),document.activeElement!==r)return}function jM(e){const t=rx(e),r=I0(t,e),o=I0(t.reverse(),e);return[r,o]}function rx(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function I0(e,t){for(const r of e)if(!UM(r,{upTo:t}))return r}function UM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function BM(e){return e instanceof HTMLInputElement&&"select"in e}function gi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&BM(e)&&t&&e.select()}}var j0=HM();function HM(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=U0(e,t),e.unshift(t)},remove(t){e=U0(e,t),e[0]?.resume()}}}function U0(e,t){const r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function FM(e){return e.filter(t=>t.tagName!=="A")}var qM="Portal",Sa=b.forwardRef((e,t)=>{const{container:r,...o}=e,[a,s]=b.useState(!1);vt(()=>s(!0),[]);const u=r||a&&globalThis?.document?.body;return u?ql.createPortal(k.jsx(we.div,{...o,ref:t}),u):null});Sa.displayName=qM;function VM(e,t){return b.useReducer((r,o)=>t[r][o]??r,e)}var zt=e=>{const{present:t,children:r}=e,o=GM(t),a=typeof r=="function"?r({present:o.isPresent}):b.Children.only(r),s=Le(o.ref,$M(a));return typeof r=="function"||o.isPresent?b.cloneElement(a,{ref:s}):null};zt.displayName="Presence";function GM(e){const[t,r]=b.useState(),o=b.useRef(null),a=b.useRef(e),s=b.useRef("none"),u=e?"mounted":"unmounted",[f,d]=VM(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=Lu(o.current);s.current=f==="mounted"?p:"none"},[f]),vt(()=>{const p=o.current,m=a.current;if(m!==e){const v=s.current,S=Lu(p);e?d("MOUNT"):S==="none"||p?.display==="none"?d("UNMOUNT"):d(m&&v!==S?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),vt(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,g=S=>{const x=Lu(o.current).includes(CSS.escape(S.animationName));if(S.target===t&&x&&(d("ANIMATION_END"),!a.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},v=S=>{S.target===t&&(s.current=Lu(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:b.useCallback(p=>{o.current=p?getComputedStyle(p):null,r(p)},[])}}function Lu(e){return e?.animationName||"none"}function $M(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Dp=0;function fm(){b.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B0()),document.body.insertAdjacentElement("beforeend",e[1]??B0()),Dp++,()=>{Dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dp--}},[])}function B0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ar=function(){return ar=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ar.apply(this,arguments)};function ix(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function YM(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,s;o<a;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Qu="right-scroll-bar-position",Xu="width-before-scroll-bar",KM="with-scroll-bars-hidden",QM="--removed-body-scroll-bar-size";function Np(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function XM(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=t,r.facade}var WM=typeof window<"u"?b.useLayoutEffect:b.useEffect,H0=new WeakMap;function ZM(e,t){var r=XM(null,function(o){return e.forEach(function(a){return Np(a,o)})});return WM(function(){var o=H0.get(r);if(o){var a=new Set(o),s=new Set(e),u=r.current;a.forEach(function(f){s.has(f)||Np(f,null)}),s.forEach(function(f){a.has(f)||Np(f,u)})}H0.set(r,e)},[e]),r}function JM(e){return e}function e_(e,t){t===void 0&&(t=JM);var r=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var u=t(s,o);return r.push(u),function(){r=r.filter(function(f){return f!==u})}},assignSyncMedium:function(s){for(o=!0;r.length;){var u=r;r=[],u.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){o=!0;var u=[];if(r.length){var f=r;r=[],f.forEach(s),u=r}var d=function(){var m=u;u=[],m.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(m){u.push(m),p()},filter:function(m){return u=u.filter(m),r}}}};return a}function t_(e){e===void 0&&(e={});var t=e_(null);return t.options=ar({async:!0,ssr:!1},e),t}var ox=function(e){var t=e.sideCar,r=ix(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,ar({},r))};ox.isSideCarExport=!0;function n_(e,t){return e.useMedium(t),ox}var ax=t_(),Pp=function(){},Ac=b.forwardRef(function(e,t){var r=b.useRef(null),o=b.useState({onScrollCapture:Pp,onWheelCapture:Pp,onTouchMoveCapture:Pp}),a=o[0],s=o[1],u=e.forwardProps,f=e.children,d=e.className,p=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,S=e.noRelative,w=e.noIsolation,x=e.inert,T=e.allowPinchZoom,E=e.as,O=E===void 0?"div":E,_=e.gapMode,L=ix(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=v,D=ZM([r,t]),I=ar(ar({},L),a);return b.createElement(b.Fragment,null,m&&b.createElement(P,{sideCar:ax,removeScrollBar:p,shards:g,noRelative:S,noIsolation:w,inert:x,setCallbacks:s,allowPinchZoom:!!T,lockRef:r,gapMode:_}),u?b.cloneElement(b.Children.only(f),ar(ar({},I),{ref:D})):b.createElement(O,ar({},I,{className:d,ref:D}),f))});Ac.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ac.classNames={fullWidth:Xu,zeroRight:Qu};var r_=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function i_(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r_();return t&&e.setAttribute("nonce",t),e}function o_(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function a_(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var l_=function(){var e=0,t=null;return{add:function(r){e==0&&(t=i_())&&(o_(t,r),a_(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},s_=function(){var e=l_();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},lx=function(){var e=s_(),t=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return t},u_={left:0,top:0,right:0,gap:0},Lp=function(e){return parseInt(e||"",10)||0},c_=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Lp(r),Lp(o),Lp(a)]},f_=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return u_;var t=c_(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}},d_=lx(),aa="data-scroll-locked",p_=function(e,t,r,o){var a=e.left,s=e.top,u=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
50
|
+
.`.concat(KM,` {
|
|
51
|
+
overflow: hidden `).concat(o,`;
|
|
52
|
+
padding-right: `).concat(f,"px ").concat(o,`;
|
|
53
|
+
}
|
|
54
|
+
body[`).concat(aa,`] {
|
|
55
|
+
overflow: hidden `).concat(o,`;
|
|
56
|
+
overscroll-behavior: contain;
|
|
57
|
+
`).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
58
|
+
padding-left: `.concat(a,`px;
|
|
59
|
+
padding-top: `).concat(s,`px;
|
|
60
|
+
padding-right: `).concat(u,`px;
|
|
61
|
+
margin-left:0;
|
|
62
|
+
margin-top:0;
|
|
63
|
+
margin-right: `).concat(f,"px ").concat(o,`;
|
|
64
|
+
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.`).concat(Qu,` {
|
|
68
|
+
right: `).concat(f,"px ").concat(o,`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.`).concat(Xu,` {
|
|
72
|
+
margin-right: `).concat(f,"px ").concat(o,`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.`).concat(Qu," .").concat(Qu,` {
|
|
76
|
+
right: 0 `).concat(o,`;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.`).concat(Xu," .").concat(Xu,` {
|
|
80
|
+
margin-right: 0 `).concat(o,`;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
body[`).concat(aa,`] {
|
|
84
|
+
`).concat(QM,": ").concat(f,`px;
|
|
85
|
+
}
|
|
86
|
+
`)},F0=function(){var e=parseInt(document.body.getAttribute(aa)||"0",10);return isFinite(e)?e:0},h_=function(){b.useEffect(function(){return document.body.setAttribute(aa,(F0()+1).toString()),function(){var e=F0()-1;e<=0?document.body.removeAttribute(aa):document.body.setAttribute(aa,e.toString())}},[])},m_=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;h_();var s=b.useMemo(function(){return f_(a)},[a]);return b.createElement(d_,{styles:p_(s,!t,a,r?"":"!important")})},Sh=!1;if(typeof window<"u")try{var zu=Object.defineProperty({},"passive",{get:function(){return Sh=!0,!0}});window.addEventListener("test",zu,zu),window.removeEventListener("test",zu,zu)}catch{Sh=!1}var Wo=Sh?{passive:!1}:!1,g_=function(e){return e.tagName==="TEXTAREA"},sx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!g_(e)&&r[t]==="visible")},y_=function(e){return sx(e,"overflowY")},v_=function(e){return sx(e,"overflowX")},q0=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=ux(e,o);if(a){var s=cx(e,o),u=s[1],f=s[2];if(u>f)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},b_=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},S_=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},ux=function(e,t){return e==="v"?y_(t):v_(t)},cx=function(e,t){return e==="v"?b_(t):S_(t)},x_=function(e,t){return e==="h"&&t==="rtl"?-1:1},w_=function(e,t,r,o,a){var s=x_(e,window.getComputedStyle(t).direction),u=s*o,f=r.target,d=t.contains(f),p=!1,m=u>0,g=0,v=0;do{if(!f)break;var S=cx(e,f),w=S[0],x=S[1],T=S[2],E=x-T-s*w;(w||E)&&ux(e,f)&&(g+=E,v+=w);var O=f.parentNode;f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!d&&f!==document.body||d&&(t.contains(f)||t===f));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(p=!0),p},Iu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V0=function(e){return[e.deltaX,e.deltaY]},G0=function(e){return e&&"current"in e?e.current:e},E_=function(e,t){return e[0]===t[0]&&e[1]===t[1]},C_=function(e){return`
|
|
87
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
88
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
89
|
+
`)},T_=0,Zo=[];function R_(e){var t=b.useRef([]),r=b.useRef([0,0]),o=b.useRef(),a=b.useState(T_++)[0],s=b.useState(lx)[0],u=b.useRef(e);b.useEffect(function(){u.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=YM([e.lockRef.current],(e.shards||[]).map(G0),!0).filter(Boolean);return x.forEach(function(T){return T.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=b.useCallback(function(x,T){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!u.current.allowPinchZoom;var E=Iu(x),O=r.current,_="deltaX"in x?x.deltaX:O[0]-E[0],L="deltaY"in x?x.deltaY:O[1]-E[1],P,D=x.target,I=Math.abs(_)>Math.abs(L)?"h":"v";if("touches"in x&&I==="h"&&D.type==="range")return!1;var G=q0(I,D);if(!G)return!0;if(G?P=I:(P=I==="v"?"h":"v",G=q0(I,D)),!G)return!1;if(!o.current&&"changedTouches"in x&&(_||L)&&(o.current=P),!P)return!0;var X=o.current||P;return w_(X,T,x,X==="h"?_:L)},[]),d=b.useCallback(function(x){var T=x;if(!(!Zo.length||Zo[Zo.length-1]!==s)){var E="deltaY"in T?V0(T):Iu(T),O=t.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&E_(P.delta,E)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var _=(u.current.shards||[]).map(G0).filter(Boolean).filter(function(P){return P.contains(T.target)}),L=_.length>0?f(T,_[0]):!u.current.noIsolation;L&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(x,T,E,O){var _={name:x,delta:T,target:E,should:O,shadowParent:O_(E)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(L){return L!==_})},1)},[]),m=b.useCallback(function(x){r.current=Iu(x),o.current=void 0},[]),g=b.useCallback(function(x){p(x.type,V0(x),x.target,f(x,e.lockRef.current))},[]),v=b.useCallback(function(x){p(x.type,Iu(x),x.target,f(x,e.lockRef.current))},[]);b.useEffect(function(){return Zo.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Wo),document.addEventListener("touchmove",d,Wo),document.addEventListener("touchstart",m,Wo),function(){Zo=Zo.filter(function(x){return x!==s}),document.removeEventListener("wheel",d,Wo),document.removeEventListener("touchmove",d,Wo),document.removeEventListener("touchstart",m,Wo)}},[]);var S=e.removeScrollBar,w=e.inert;return b.createElement(b.Fragment,null,w?b.createElement(s,{styles:C_(a)}):null,S?b.createElement(m_,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function O_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const A_=n_(ax,R_);var Mc=b.forwardRef(function(e,t){return b.createElement(Ac,ar({},e,{ref:t,sideCar:A_}))});Mc.classNames=Ac.classNames;var M_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jo=new WeakMap,ju=new WeakMap,Uu={},zp=0,fx=function(e){return e&&(e.host||fx(e.parentNode))},__=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=fx(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},k_=function(e,t,r,o){var a=__(t,Array.isArray(e)?e:[e]);Uu[r]||(Uu[r]=new WeakMap);var s=Uu[r],u=[],f=new Set,d=new Set(a),p=function(g){!g||f.has(g)||(f.add(g),p(g.parentNode))};a.forEach(p);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(f.has(v))m(v);else try{var S=v.getAttribute(o),w=S!==null&&S!=="false",x=(Jo.get(v)||0)+1,T=(s.get(v)||0)+1;Jo.set(v,x),s.set(v,T),u.push(v),x===1&&w&&ju.set(v,!0),T===1&&v.setAttribute(r,"true"),w||v.setAttribute(o,"true")}catch(E){console.error("aria-hidden: cannot operate on ",v,E)}})};return m(t),f.clear(),zp++,function(){u.forEach(function(g){var v=Jo.get(g)-1,S=s.get(g)-1;Jo.set(g,v),s.set(g,S),v||(ju.has(g)||g.removeAttribute(o),ju.delete(g)),S||g.removeAttribute(r)}),zp--,zp||(Jo=new WeakMap,Jo=new WeakMap,ju=new WeakMap,Uu={})}},dm=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=M_(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),k_(o,a,r,"aria-hidden")):function(){return null}},_c="Dialog",[dx,px]=Gt(_c),[D_,Kn]=dx(_c),hx=e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,f=b.useRef(null),d=b.useRef(null),[p,m]=pr({prop:o,defaultProp:a??!1,onChange:s,caller:_c});return k.jsx(D_,{scope:t,triggerRef:f,contentRef:d,contentId:Pn(),titleId:Pn(),descriptionId:Pn(),open:p,onOpenChange:m,onOpenToggle:b.useCallback(()=>m(g=>!g),[m]),modal:u,children:r})};hx.displayName=_c;var mx="DialogTrigger",gx=b.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Kn(mx,r),s=Le(t,a.triggerRef);return k.jsx(we.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":mm(a.open),...o,ref:s,onClick:ge(e.onClick,a.onOpenToggle)})});gx.displayName=mx;var pm="DialogPortal",[N_,yx]=dx(pm,{forceMount:void 0}),vx=e=>{const{__scopeDialog:t,forceMount:r,children:o,container:a}=e,s=Kn(pm,t);return k.jsx(N_,{scope:t,forceMount:r,children:b.Children.map(o,u=>k.jsx(zt,{present:r||s.open,children:k.jsx(Sa,{asChild:!0,container:a,children:u})}))})};vx.displayName=pm;var ic="DialogOverlay",bx=b.forwardRef((e,t)=>{const r=yx(ic,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,s=Kn(ic,e.__scopeDialog);return s.modal?k.jsx(zt,{present:o||s.open,children:k.jsx(L_,{...a,ref:t})}):null});bx.displayName=ic;var P_=Qi("DialogOverlay.RemoveScroll"),L_=b.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Kn(ic,r);return k.jsx(Mc,{as:P_,allowPinchZoom:!0,shards:[a.contentRef],children:k.jsx(we.div,{"data-state":mm(a.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Xi="DialogContent",Sx=b.forwardRef((e,t)=>{const r=yx(Xi,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,s=Kn(Xi,e.__scopeDialog);return k.jsx(zt,{present:o||s.open,children:s.modal?k.jsx(z_,{...a,ref:t}):k.jsx(I_,{...a,ref:t})})});Sx.displayName=Xi;var z_=b.forwardRef((e,t)=>{const r=Kn(Xi,e.__scopeDialog),o=b.useRef(null),a=Le(t,r.contentRef,o);return b.useEffect(()=>{const s=o.current;if(s)return dm(s)},[]),k.jsx(xx,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ge(e.onPointerDownOutside,s=>{const u=s.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&s.preventDefault()}),onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault())})}),I_=b.forwardRef((e,t)=>{const r=Kn(Xi,e.__scopeDialog),o=b.useRef(!1),a=b.useRef(!1);return k.jsx(xx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||r.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=s.target;r.triggerRef.current?.contains(u)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),xx=b.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...u}=e,f=Kn(Xi,r),d=b.useRef(null),p=Le(t,d);return fm(),k.jsxs(k.Fragment,{children:[k.jsx(Oc,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:k.jsx(ba,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":mm(f.open),...u,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),k.jsxs(k.Fragment,{children:[k.jsx(U_,{titleId:f.titleId}),k.jsx(H_,{contentRef:d,descriptionId:f.descriptionId})]})]})}),hm="DialogTitle",wx=b.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Kn(hm,r);return k.jsx(we.h2,{id:a.titleId,...o,ref:t})});wx.displayName=hm;var Ex="DialogDescription",Cx=b.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Kn(Ex,r);return k.jsx(we.p,{id:a.descriptionId,...o,ref:t})});Cx.displayName=Ex;var Tx="DialogClose",Rx=b.forwardRef((e,t)=>{const{__scopeDialog:r,...o}=e,a=Kn(Tx,r);return k.jsx(we.button,{type:"button",...o,ref:t,onClick:ge(e.onClick,()=>a.onOpenChange(!1))})});Rx.displayName=Tx;function mm(e){return e?"open":"closed"}var Ox="DialogTitleWarning",[j_,Ax]=SM(Ox,{contentName:Xi,titleName:hm,docsSlug:"dialog"}),U_=({titleId:e})=>{const t=Ax(Ox),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
90
|
+
|
|
91
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
92
|
+
|
|
93
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},B_="DialogDescriptionWarning",H_=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ax(B_).contentName}}.`;return b.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},F_=hx,q_=gx,V_=vx,G_=bx,$_=Sx,Y_=wx,K_=Cx,Mx=Rx;/**
|
|
94
|
+
* @license lucide-react v0.469.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const Q_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_x=(...e)=>e.filter((t,r,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===r).join(" ").trim();/**
|
|
99
|
+
* @license lucide-react v0.469.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/var X_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
104
|
+
* @license lucide-react v0.469.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const W_=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:a="",children:s,iconNode:u,...f},d)=>b.createElement("svg",{ref:d,...X_,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:_x("lucide",a),...f},[...u.map(([p,m])=>b.createElement(p,m)),...Array.isArray(s)?s:[s]]));/**
|
|
109
|
+
* @license lucide-react v0.469.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const ye=(e,t)=>{const r=b.forwardRef(({className:o,...a},s)=>b.createElement(W_,{ref:s,iconNode:t,className:_x(`lucide-${Q_(e)}`,o),...a}));return r.displayName=`${e}`,r};/**
|
|
114
|
+
* @license lucide-react v0.469.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const K8=ye("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
119
|
+
* @license lucide-react v0.469.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const Q8=ye("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
|
|
124
|
+
* @license lucide-react v0.469.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const X8=ye("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
|
|
129
|
+
* @license lucide-react v0.469.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const W8=ye("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
134
|
+
* @license lucide-react v0.469.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const Z8=ye("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
|
|
139
|
+
* @license lucide-react v0.469.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const J8=ye("Book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
|
|
144
|
+
* @license lucide-react v0.469.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const e7=ye("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
149
|
+
* @license lucide-react v0.469.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const t7=ye("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
154
|
+
* @license lucide-react v0.469.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const n7=ye("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
159
|
+
* @license lucide-react v0.469.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const r7=ye("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
164
|
+
* @license lucide-react v0.469.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const i7=ye("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
169
|
+
* @license lucide-react v0.469.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const o7=ye("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
174
|
+
* @license lucide-react v0.469.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const a7=ye("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
179
|
+
* @license lucide-react v0.469.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const l7=ye("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
184
|
+
* @license lucide-react v0.469.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const s7=ye("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
189
|
+
* @license lucide-react v0.469.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const u7=ye("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
|
|
194
|
+
* @license lucide-react v0.469.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const c7=ye("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
199
|
+
* @license lucide-react v0.469.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const f7=ye("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
204
|
+
* @license lucide-react v0.469.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const d7=ye("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/**
|
|
209
|
+
* @license lucide-react v0.469.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const p7=ye("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
214
|
+
* @license lucide-react v0.469.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const h7=ye("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
|
|
219
|
+
* @license lucide-react v0.469.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const m7=ye("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
224
|
+
* @license lucide-react v0.469.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const g7=ye("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
229
|
+
* @license lucide-react v0.469.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const y7=ye("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
234
|
+
* @license lucide-react v0.469.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const v7=ye("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
239
|
+
* @license lucide-react v0.469.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const b7=ye("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
244
|
+
* @license lucide-react v0.469.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const S7=ye("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
249
|
+
* @license lucide-react v0.469.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const x7=ye("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
|
|
254
|
+
* @license lucide-react v0.469.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const w7=ye("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
259
|
+
* @license lucide-react v0.469.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const E7=ye("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
264
|
+
* @license lucide-react v0.469.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const C7=ye("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
269
|
+
* @license lucide-react v0.469.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* This source code is licensed under the ISC license.
|
|
272
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
+
*/const T7=ye("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
274
|
+
* @license lucide-react v0.469.0 - ISC
|
|
275
|
+
*
|
|
276
|
+
* This source code is licensed under the ISC license.
|
|
277
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
+
*/const R7=ye("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
279
|
+
* @license lucide-react v0.469.0 - ISC
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the ISC license.
|
|
282
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/const O7=ye("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
284
|
+
* @license lucide-react v0.469.0 - ISC
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the ISC license.
|
|
287
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/const A7=ye("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
289
|
+
* @license lucide-react v0.469.0 - ISC
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the ISC license.
|
|
292
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
+
*/const M7=ye("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
294
|
+
* @license lucide-react v0.469.0 - ISC
|
|
295
|
+
*
|
|
296
|
+
* This source code is licensed under the ISC license.
|
|
297
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
+
*/const _7=ye("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
|
|
299
|
+
* @license lucide-react v0.469.0 - ISC
|
|
300
|
+
*
|
|
301
|
+
* This source code is licensed under the ISC license.
|
|
302
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
+
*/const k7=ye("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
304
|
+
* @license lucide-react v0.469.0 - ISC
|
|
305
|
+
*
|
|
306
|
+
* This source code is licensed under the ISC license.
|
|
307
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
+
*/const D7=ye("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
309
|
+
* @license lucide-react v0.469.0 - ISC
|
|
310
|
+
*
|
|
311
|
+
* This source code is licensed under the ISC license.
|
|
312
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
+
*/const N7=ye("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
314
|
+
* @license lucide-react v0.469.0 - ISC
|
|
315
|
+
*
|
|
316
|
+
* This source code is licensed under the ISC license.
|
|
317
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
+
*/const P7=ye("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
|
|
319
|
+
* @license lucide-react v0.469.0 - ISC
|
|
320
|
+
*
|
|
321
|
+
* This source code is licensed under the ISC license.
|
|
322
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
+
*/const L7=ye("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
324
|
+
* @license lucide-react v0.469.0 - ISC
|
|
325
|
+
*
|
|
326
|
+
* This source code is licensed under the ISC license.
|
|
327
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
+
*/const z7=ye("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
|
|
329
|
+
* @license lucide-react v0.469.0 - ISC
|
|
330
|
+
*
|
|
331
|
+
* This source code is licensed under the ISC license.
|
|
332
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
+
*/const I7=ye("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
334
|
+
* @license lucide-react v0.469.0 - ISC
|
|
335
|
+
*
|
|
336
|
+
* This source code is licensed under the ISC license.
|
|
337
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
+
*/const j7=ye("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]);/**
|
|
339
|
+
* @license lucide-react v0.469.0 - ISC
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the ISC license.
|
|
342
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
+
*/const U7=ye("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
344
|
+
* @license lucide-react v0.469.0 - ISC
|
|
345
|
+
*
|
|
346
|
+
* This source code is licensed under the ISC license.
|
|
347
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
+
*/const B7=ye("Paperclip",[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]]);/**
|
|
349
|
+
* @license lucide-react v0.469.0 - ISC
|
|
350
|
+
*
|
|
351
|
+
* This source code is licensed under the ISC license.
|
|
352
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
+
*/const H7=ye("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
|
|
354
|
+
* @license lucide-react v0.469.0 - ISC
|
|
355
|
+
*
|
|
356
|
+
* This source code is licensed under the ISC license.
|
|
357
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
+
*/const F7=ye("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
359
|
+
* @license lucide-react v0.469.0 - ISC
|
|
360
|
+
*
|
|
361
|
+
* This source code is licensed under the ISC license.
|
|
362
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
+
*/const q7=ye("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
364
|
+
* @license lucide-react v0.469.0 - ISC
|
|
365
|
+
*
|
|
366
|
+
* This source code is licensed under the ISC license.
|
|
367
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
+
*/const V7=ye("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
369
|
+
* @license lucide-react v0.469.0 - ISC
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the ISC license.
|
|
372
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/const G7=ye("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]]);/**
|
|
374
|
+
* @license lucide-react v0.469.0 - ISC
|
|
375
|
+
*
|
|
376
|
+
* This source code is licensed under the ISC license.
|
|
377
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
+
*/const $7=ye("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
379
|
+
* @license lucide-react v0.469.0 - ISC
|
|
380
|
+
*
|
|
381
|
+
* This source code is licensed under the ISC license.
|
|
382
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
+
*/const Y7=ye("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
384
|
+
* @license lucide-react v0.469.0 - ISC
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the ISC license.
|
|
387
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
+
*/const K7=ye("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
389
|
+
* @license lucide-react v0.469.0 - ISC
|
|
390
|
+
*
|
|
391
|
+
* This source code is licensed under the ISC license.
|
|
392
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
+
*/const Q7=ye("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
394
|
+
* @license lucide-react v0.469.0 - ISC
|
|
395
|
+
*
|
|
396
|
+
* This source code is licensed under the ISC license.
|
|
397
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
+
*/const X7=ye("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
399
|
+
* @license lucide-react v0.469.0 - ISC
|
|
400
|
+
*
|
|
401
|
+
* This source code is licensed under the ISC license.
|
|
402
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
403
|
+
*/const W7=ye("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
404
|
+
* @license lucide-react v0.469.0 - ISC
|
|
405
|
+
*
|
|
406
|
+
* This source code is licensed under the ISC license.
|
|
407
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
408
|
+
*/const Z7=ye("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
409
|
+
* @license lucide-react v0.469.0 - ISC
|
|
410
|
+
*
|
|
411
|
+
* This source code is licensed under the ISC license.
|
|
412
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
413
|
+
*/const J7=ye("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
414
|
+
* @license lucide-react v0.469.0 - ISC
|
|
415
|
+
*
|
|
416
|
+
* This source code is licensed under the ISC license.
|
|
417
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
418
|
+
*/const eU=ye("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
419
|
+
* @license lucide-react v0.469.0 - ISC
|
|
420
|
+
*
|
|
421
|
+
* This source code is licensed under the ISC license.
|
|
422
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
423
|
+
*/const tU=ye("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
424
|
+
* @license lucide-react v0.469.0 - ISC
|
|
425
|
+
*
|
|
426
|
+
* This source code is licensed under the ISC license.
|
|
427
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
428
|
+
*/const nU=ye("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/**
|
|
429
|
+
* @license lucide-react v0.469.0 - ISC
|
|
430
|
+
*
|
|
431
|
+
* This source code is licensed under the ISC license.
|
|
432
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
433
|
+
*/const rU=ye("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
434
|
+
* @license lucide-react v0.469.0 - ISC
|
|
435
|
+
*
|
|
436
|
+
* This source code is licensed under the ISC license.
|
|
437
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
438
|
+
*/const iU=ye("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
439
|
+
* @license lucide-react v0.469.0 - ISC
|
|
440
|
+
*
|
|
441
|
+
* This source code is licensed under the ISC license.
|
|
442
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
443
|
+
*/const oU=ye("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
444
|
+
* @license lucide-react v0.469.0 - ISC
|
|
445
|
+
*
|
|
446
|
+
* This source code is licensed under the ISC license.
|
|
447
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
448
|
+
*/const aU=ye("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
|
|
449
|
+
* @license lucide-react v0.469.0 - ISC
|
|
450
|
+
*
|
|
451
|
+
* This source code is licensed under the ISC license.
|
|
452
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
453
|
+
*/const lU=ye("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
454
|
+
* @license lucide-react v0.469.0 - ISC
|
|
455
|
+
*
|
|
456
|
+
* This source code is licensed under the ISC license.
|
|
457
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
458
|
+
*/const sU=ye("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Z_=["top","right","bottom","left"],Si=Math.min,yn=Math.max,oc=Math.round,Bu=Math.floor,dr=e=>({x:e,y:e}),J_={left:"right",right:"left",bottom:"top",top:"bottom"},ek={start:"end",end:"start"};function xh(e,t,r){return yn(e,Si(t,r))}function Br(e,t){return typeof e=="function"?e(t):e}function Hr(e){return e.split("-")[0]}function xa(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const tk=new Set(["top","bottom"]);function sr(e){return tk.has(Hr(e))?"y":"x"}function vm(e){return gm(sr(e))}function nk(e,t,r){r===void 0&&(r=!1);const o=xa(e),a=vm(e),s=ym(a);let u=a==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=ac(u)),[u,ac(u)]}function rk(e){const t=ac(e);return[wh(e),t,wh(t)]}function wh(e){return e.replace(/start|end/g,t=>ek[t])}const $0=["left","right"],Y0=["right","left"],ik=["top","bottom"],ok=["bottom","top"];function ak(e,t,r){switch(e){case"top":case"bottom":return r?t?Y0:$0:t?$0:Y0;case"left":case"right":return t?ik:ok;default:return[]}}function lk(e,t,r,o){const a=xa(e);let s=ak(Hr(e),r==="start",o);return a&&(s=s.map(u=>u+"-"+a),t&&(s=s.concat(s.map(wh)))),s}function ac(e){return e.replace(/left|right|bottom|top/g,t=>J_[t])}function sk(e){return{top:0,right:0,bottom:0,left:0,...e}}function kx(e){return typeof e!="number"?sk(e):{top:e,right:e,bottom:e,left:e}}function lc(e){const{x:t,y:r,width:o,height:a}=e;return{width:o,height:a,top:r,left:t,right:t+o,bottom:r+a,x:t,y:r}}function K0(e,t,r){let{reference:o,floating:a}=e;const s=sr(t),u=vm(t),f=ym(u),d=Hr(t),p=s==="y",m=o.x+o.width/2-a.width/2,g=o.y+o.height/2-a.height/2,v=o[f]/2-a[f]/2;let S;switch(d){case"top":S={x:m,y:o.y-a.height};break;case"bottom":S={x:m,y:o.y+o.height};break;case"right":S={x:o.x+o.width,y:g};break;case"left":S={x:o.x-a.width,y:g};break;default:S={x:o.x,y:o.y}}switch(xa(t)){case"start":S[u]-=v*(r&&p?-1:1);break;case"end":S[u]+=v*(r&&p?-1:1);break}return S}const uk=async(e,t,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:u}=r,f=s.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=K0(p,o,d),v=o,S={},w=0;for(let x=0;x<f.length;x++){const{name:T,fn:E}=f[x],{x:O,y:_,data:L,reset:P}=await E({x:m,y:g,initialPlacement:o,placement:v,strategy:a,middlewareData:S,rects:p,platform:u,elements:{reference:e,floating:t}});m=O??m,g=_??g,S={...S,[T]:{...S[T],...L}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(p=P.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:a}):P.rects),{x:m,y:g}=K0(p,v,d)),x=-1)}return{x:m,y:g,placement:v,strategy:a,middlewareData:S}};async function Yl(e,t){var r;t===void 0&&(t={});const{x:o,y:a,platform:s,rects:u,elements:f,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:S=0}=Br(t,e),w=kx(S),T=f[v?g==="floating"?"reference":"floating":g],E=lc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:p,rootBoundary:m,strategy:d})),O=g==="floating"?{x:o,y:a,width:u.floating.width,height:u.floating.height}:u.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),L=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},P=lc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:_,strategy:d}):O);return{top:(E.top-P.top+w.top)/L.y,bottom:(P.bottom-E.bottom+w.bottom)/L.y,left:(E.left-P.left+w.left)/L.x,right:(P.right-E.right+w.right)/L.x}}const ck=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:a,rects:s,platform:u,elements:f,middlewareData:d}=t,{element:p,padding:m=0}=Br(e,t)||{};if(p==null)return{};const g=kx(m),v={x:r,y:o},S=vm(a),w=ym(S),x=await u.getDimensions(p),T=S==="y",E=T?"top":"left",O=T?"bottom":"right",_=T?"clientHeight":"clientWidth",L=s.reference[w]+s.reference[S]-v[S]-s.floating[w],P=v[S]-s.reference[S],D=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let I=D?D[_]:0;(!I||!await(u.isElement==null?void 0:u.isElement(D)))&&(I=f.floating[_]||s.floating[w]);const G=L/2-P/2,X=I/2-x[w]/2-1,Z=Si(g[E],X),Q=Si(g[O],X),W=Z,ue=I-x[w]-Q,F=I/2-x[w]/2+G,oe=xh(W,F,ue),z=!d.arrow&&xa(a)!=null&&F!==oe&&s.reference[w]/2-(F<W?Z:Q)-x[w]/2<0,K=z?F<W?F-W:F-ue:0;return{[S]:v[S]+K,data:{[S]:oe,centerOffset:F-oe-K,...z&&{alignmentOffset:K}},reset:z}}}),fk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:a,middlewareData:s,rects:u,initialPlacement:f,platform:d,elements:p}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...T}=Br(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const E=Hr(a),O=sr(f),_=Hr(f)===f,L=await(d.isRTL==null?void 0:d.isRTL(p.floating)),P=v||(_||!x?[ac(f)]:rk(f)),D=w!=="none";!v&&D&&P.push(...lk(f,x,w,L));const I=[f,...P],G=await Yl(t,T),X=[];let Z=((o=s.flip)==null?void 0:o.overflows)||[];if(m&&X.push(G[E]),g){const F=nk(a,u,L);X.push(G[F[0]],G[F[1]])}if(Z=[...Z,{placement:a,overflows:X}],!X.every(F=>F<=0)){var Q,W;const F=(((Q=s.flip)==null?void 0:Q.index)||0)+1,oe=I[F];if(oe&&(!(g==="alignment"?O!==sr(oe):!1)||Z.every(ee=>sr(ee.placement)===O?ee.overflows[0]>0:!0)))return{data:{index:F,overflows:Z},reset:{placement:oe}};let z=(W=Z.filter(K=>K.overflows[0]<=0).sort((K,ee)=>K.overflows[1]-ee.overflows[1])[0])==null?void 0:W.placement;if(!z)switch(S){case"bestFit":{var ue;const K=(ue=Z.filter(ee=>{if(D){const le=sr(ee.placement);return le===O||le==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(le=>le>0).reduce((le,R)=>le+R,0)]).sort((ee,le)=>ee[1]-le[1])[0])==null?void 0:ue[0];K&&(z=K);break}case"initialPlacement":z=f;break}if(a!==z)return{reset:{placement:z}}}return{}}}};function Q0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function X0(e){return Z_.some(t=>e[t]>=0)}const dk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...a}=Br(e,t);switch(o){case"referenceHidden":{const s=await Yl(t,{...a,elementContext:"reference"}),u=Q0(s,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:X0(u)}}}case"escaped":{const s=await Yl(t,{...a,altBoundary:!0}),u=Q0(s,r.floating);return{data:{escapedOffsets:u,escaped:X0(u)}}}default:return{}}}}},Dx=new Set(["left","top"]);async function pk(e,t){const{placement:r,platform:o,elements:a}=e,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),u=Hr(r),f=xa(r),d=sr(r)==="y",p=Dx.has(u)?-1:1,m=s&&d?-1:1,g=Br(t,e);let{mainAxis:v,crossAxis:S,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof w=="number"&&(S=f==="end"?w*-1:w),d?{x:S*m,y:v*p}:{x:v*p,y:S*m}}const hk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:a,y:s,placement:u,middlewareData:f}=t,d=await pk(t,e);return u===((r=f.offset)==null?void 0:r.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:u}}}}},mk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:a}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:f={fn:T=>{let{x:E,y:O}=T;return{x:E,y:O}}},...d}=Br(e,t),p={x:r,y:o},m=await Yl(t,d),g=sr(Hr(a)),v=gm(g);let S=p[v],w=p[g];if(s){const T=v==="y"?"top":"left",E=v==="y"?"bottom":"right",O=S+m[T],_=S-m[E];S=xh(O,S,_)}if(u){const T=g==="y"?"top":"left",E=g==="y"?"bottom":"right",O=w+m[T],_=w-m[E];w=xh(O,w,_)}const x=f.fn({...t,[v]:S,[g]:w});return{...x,data:{x:x.x-r,y:x.y-o,enabled:{[v]:s,[g]:u}}}}}},gk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:a,rects:s,middlewareData:u}=t,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=Br(e,t),m={x:r,y:o},g=sr(a),v=gm(g);let S=m[v],w=m[g];const x=Br(f,t),T=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const _=v==="y"?"height":"width",L=s.reference[v]-s.floating[_]+T.mainAxis,P=s.reference[v]+s.reference[_]-T.mainAxis;S<L?S=L:S>P&&(S=P)}if(p){var E,O;const _=v==="y"?"width":"height",L=Dx.has(Hr(a)),P=s.reference[g]-s.floating[_]+(L&&((E=u.offset)==null?void 0:E[g])||0)+(L?0:T.crossAxis),D=s.reference[g]+s.reference[_]+(L?0:((O=u.offset)==null?void 0:O[g])||0)-(L?T.crossAxis:0);w<P?w=P:w>D&&(w=D)}return{[v]:S,[g]:w}}}},yk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:a,rects:s,platform:u,elements:f}=t,{apply:d=()=>{},...p}=Br(e,t),m=await Yl(t,p),g=Hr(a),v=xa(a),S=sr(a)==="y",{width:w,height:x}=s.floating;let T,E;g==="top"||g==="bottom"?(T=g,E=v===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(E=g,T=v==="end"?"top":"bottom");const O=x-m.top-m.bottom,_=w-m.left-m.right,L=Si(x-m[T],O),P=Si(w-m[E],_),D=!t.middlewareData.shift;let I=L,G=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(G=_),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(I=O),D&&!v){const Z=yn(m.left,0),Q=yn(m.right,0),W=yn(m.top,0),ue=yn(m.bottom,0);S?G=w-2*(Z!==0||Q!==0?Z+Q:yn(m.left,m.right)):I=x-2*(W!==0||ue!==0?W+ue:yn(m.top,m.bottom))}await d({...t,availableWidth:G,availableHeight:I});const X=await u.getDimensions(f.floating);return w!==X.width||x!==X.height?{reset:{rects:!0}}:{}}}};function kc(){return typeof window<"u"}function wa(e){return Nx(e)?(e.nodeName||"").toLowerCase():"#document"}function bn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gr(e){var t;return(t=(Nx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nx(e){return kc()?e instanceof Node||e instanceof bn(e).Node:!1}function Gn(e){return kc()?e instanceof Element||e instanceof bn(e).Element:!1}function hr(e){return kc()?e instanceof HTMLElement||e instanceof bn(e).HTMLElement:!1}function W0(e){return!kc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bn(e).ShadowRoot}const vk=new Set(["inline","contents"]);function as(e){const{overflow:t,overflowX:r,overflowY:o,display:a}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!vk.has(a)}const bk=new Set(["table","td","th"]);function Sk(e){return bk.has(wa(e))}const xk=[":popover-open",":modal"];function Dc(e){return xk.some(t=>{try{return e.matches(t)}catch{return!1}})}const wk=["transform","translate","scale","rotate","perspective"],Ek=["transform","translate","scale","rotate","perspective","filter"],Ck=["paint","layout","strict","content"];function bm(e){const t=Sm(),r=Gn(e)?$n(e):e;return wk.some(o=>r[o]?r[o]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ek.some(o=>(r.willChange||"").includes(o))||Ck.some(o=>(r.contain||"").includes(o))}function Tk(e){let t=xi(e);for(;hr(t)&&!da(t);){if(bm(t))return t;if(Dc(t))return null;t=xi(t)}return null}function Sm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Rk=new Set(["html","body","#document"]);function da(e){return Rk.has(wa(e))}function $n(e){return bn(e).getComputedStyle(e)}function Nc(e){return Gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xi(e){if(wa(e)==="html")return e;const t=e.assignedSlot||e.parentNode||W0(e)&&e.host||gr(e);return W0(t)?t.host:t}function Px(e){const t=xi(e);return da(t)?e.ownerDocument?e.ownerDocument.body:e.body:hr(t)&&as(t)?t:Px(t)}function Kl(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Px(e),s=a===((o=e.ownerDocument)==null?void 0:o.body),u=bn(a);if(s){const f=Eh(u);return t.concat(u,u.visualViewport||[],as(a)?a:[],f&&r?Kl(f):[])}return t.concat(a,Kl(a,[],r))}function Eh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lx(e){const t=$n(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const a=hr(e),s=a?e.offsetWidth:r,u=a?e.offsetHeight:o,f=oc(r)!==s||oc(o)!==u;return f&&(r=s,o=u),{width:r,height:o,$:f}}function xm(e){return Gn(e)?e:e.contextElement}function la(e){const t=xm(e);if(!hr(t))return dr(1);const r=t.getBoundingClientRect(),{width:o,height:a,$:s}=Lx(t);let u=(s?oc(r.width):r.width)/o,f=(s?oc(r.height):r.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const Ok=dr(0);function zx(e){const t=bn(e);return!Sm()||!t.visualViewport?Ok:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ak(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==bn(e)?!1:t}function Wi(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),s=xm(e);let u=dr(1);t&&(o?Gn(o)&&(u=la(o)):u=la(e));const f=Ak(s,r,o)?zx(s):dr(0);let d=(a.left+f.x)/u.x,p=(a.top+f.y)/u.y,m=a.width/u.x,g=a.height/u.y;if(s){const v=bn(s),S=o&&Gn(o)?bn(o):o;let w=v,x=Eh(w);for(;x&&o&&S!==w;){const T=la(x),E=x.getBoundingClientRect(),O=$n(x),_=E.left+(x.clientLeft+parseFloat(O.paddingLeft))*T.x,L=E.top+(x.clientTop+parseFloat(O.paddingTop))*T.y;d*=T.x,p*=T.y,m*=T.x,g*=T.y,d+=_,p+=L,w=bn(x),x=Eh(w)}}return lc({width:m,height:g,x:d,y:p})}function Pc(e,t){const r=Nc(e).scrollLeft;return t?t.left+r:Wi(gr(e)).left+r}function Ix(e,t){const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-Pc(e,r),a=r.top+t.scrollTop;return{x:o,y:a}}function Mk(e){let{elements:t,rect:r,offsetParent:o,strategy:a}=e;const s=a==="fixed",u=gr(o),f=t?Dc(t.floating):!1;if(o===u||f&&s)return r;let d={scrollLeft:0,scrollTop:0},p=dr(1);const m=dr(0),g=hr(o);if((g||!g&&!s)&&((wa(o)!=="body"||as(u))&&(d=Nc(o)),hr(o))){const S=Wi(o);p=la(o),m.x=S.x+o.clientLeft,m.y=S.y+o.clientTop}const v=u&&!g&&!s?Ix(u,d):dr(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-d.scrollLeft*p.x+m.x+v.x,y:r.y*p.y-d.scrollTop*p.y+m.y+v.y}}function _k(e){return Array.from(e.getClientRects())}function kk(e){const t=gr(e),r=Nc(e),o=e.ownerDocument.body,a=yn(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=yn(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-r.scrollLeft+Pc(e);const f=-r.scrollTop;return $n(o).direction==="rtl"&&(u+=yn(t.clientWidth,o.clientWidth)-a),{width:a,height:s,x:u,y:f}}const Z0=25;function Dk(e,t){const r=bn(e),o=gr(e),a=r.visualViewport;let s=o.clientWidth,u=o.clientHeight,f=0,d=0;if(a){s=a.width,u=a.height;const m=Sm();(!m||m&&t==="fixed")&&(f=a.offsetLeft,d=a.offsetTop)}const p=Pc(o);if(p<=0){const m=o.ownerDocument,g=m.body,v=getComputedStyle(g),S=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,w=Math.abs(o.clientWidth-g.clientWidth-S);w<=Z0&&(s-=w)}else p<=Z0&&(s+=p);return{width:s,height:u,x:f,y:d}}const Nk=new Set(["absolute","fixed"]);function Pk(e,t){const r=Wi(e,!0,t==="fixed"),o=r.top+e.clientTop,a=r.left+e.clientLeft,s=hr(e)?la(e):dr(1),u=e.clientWidth*s.x,f=e.clientHeight*s.y,d=a*s.x,p=o*s.y;return{width:u,height:f,x:d,y:p}}function J0(e,t,r){let o;if(t==="viewport")o=Dk(e,r);else if(t==="document")o=kk(gr(e));else if(Gn(t))o=Pk(t,r);else{const a=zx(e);o={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return lc(o)}function jx(e,t){const r=xi(e);return r===t||!Gn(r)||da(r)?!1:$n(r).position==="fixed"||jx(r,t)}function Lk(e,t){const r=t.get(e);if(r)return r;let o=Kl(e,[],!1).filter(f=>Gn(f)&&wa(f)!=="body"),a=null;const s=$n(e).position==="fixed";let u=s?xi(e):e;for(;Gn(u)&&!da(u);){const f=$n(u),d=bm(u);!d&&f.position==="fixed"&&(a=null),(s?!d&&!a:!d&&f.position==="static"&&!!a&&Nk.has(a.position)||as(u)&&!d&&jx(e,u))?o=o.filter(m=>m!==u):a=f,u=xi(u)}return t.set(e,o),o}function zk(e){let{element:t,boundary:r,rootBoundary:o,strategy:a}=e;const u=[...r==="clippingAncestors"?Dc(t)?[]:Lk(t,this._c):[].concat(r),o],f=u[0],d=u.reduce((p,m)=>{const g=J0(t,m,a);return p.top=yn(g.top,p.top),p.right=Si(g.right,p.right),p.bottom=Si(g.bottom,p.bottom),p.left=yn(g.left,p.left),p},J0(t,f,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ik(e){const{width:t,height:r}=Lx(e);return{width:t,height:r}}function jk(e,t,r){const o=hr(t),a=gr(t),s=r==="fixed",u=Wi(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const d=dr(0);function p(){d.x=Pc(a)}if(o||!o&&!s)if((wa(t)!=="body"||as(a))&&(f=Nc(t)),o){const S=Wi(t,!0,s,t);d.x=S.x+t.clientLeft,d.y=S.y+t.clientTop}else a&&p();s&&!o&&a&&p();const m=a&&!o&&!s?Ix(a,f):dr(0),g=u.left+f.scrollLeft-d.x-m.x,v=u.top+f.scrollTop-d.y-m.y;return{x:g,y:v,width:u.width,height:u.height}}function Ip(e){return $n(e).position==="static"}function e1(e,t){if(!hr(e)||$n(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return gr(e)===r&&(r=r.ownerDocument.body),r}function Ux(e,t){const r=bn(e);if(Dc(e))return r;if(!hr(e)){let a=xi(e);for(;a&&!da(a);){if(Gn(a)&&!Ip(a))return a;a=xi(a)}return r}let o=e1(e,t);for(;o&&Sk(o)&&Ip(o);)o=e1(o,t);return o&&da(o)&&Ip(o)&&!bm(o)?r:o||Tk(e)||r}const Uk=async function(e){const t=this.getOffsetParent||Ux,r=this.getDimensions,o=await r(e.floating);return{reference:jk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Bk(e){return $n(e).direction==="rtl"}const Hk={convertOffsetParentRelativeRectToViewportRelativeRect:Mk,getDocumentElement:gr,getClippingRect:zk,getOffsetParent:Ux,getElementRects:Uk,getClientRects:_k,getDimensions:Ik,getScale:la,isElement:Gn,isRTL:Bk};function Bx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fk(e,t){let r=null,o;const a=gr(e);function s(){var f;clearTimeout(o),(f=r)==null||f.disconnect(),r=null}function u(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const p=e.getBoundingClientRect(),{left:m,top:g,width:v,height:S}=p;if(f||t(),!v||!S)return;const w=Bu(g),x=Bu(a.clientWidth-(m+v)),T=Bu(a.clientHeight-(g+S)),E=Bu(m),_={rootMargin:-w+"px "+-x+"px "+-T+"px "+-E+"px",threshold:yn(0,Si(1,d))||1};let L=!0;function P(D){const I=D[0].intersectionRatio;if(I!==d){if(!L)return u();I?u(!1,I):o=setTimeout(()=>{u(!1,1e-7)},1e3)}I===1&&!Bx(p,e.getBoundingClientRect())&&u(),L=!1}try{r=new IntersectionObserver(P,{..._,root:a.ownerDocument})}catch{r=new IntersectionObserver(P,_)}r.observe(e)}return u(!0),s}function qk(e,t,r,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,p=xm(e),m=a||s?[...p?Kl(p):[],...Kl(t)]:[];m.forEach(E=>{a&&E.addEventListener("scroll",r,{passive:!0}),s&&E.addEventListener("resize",r)});const g=p&&f?Fk(p,r):null;let v=-1,S=null;u&&(S=new ResizeObserver(E=>{let[O]=E;O&&O.target===p&&S&&(S.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var _;(_=S)==null||_.observe(t)})),r()}),p&&!d&&S.observe(p),S.observe(t));let w,x=d?Wi(e):null;d&&T();function T(){const E=Wi(e);x&&!Bx(x,E)&&r(),x=E,w=requestAnimationFrame(T)}return r(),()=>{var E;m.forEach(O=>{a&&O.removeEventListener("scroll",r),s&&O.removeEventListener("resize",r)}),g?.(),(E=S)==null||E.disconnect(),S=null,d&&cancelAnimationFrame(w)}}const Vk=hk,Gk=mk,$k=fk,Yk=yk,Kk=dk,t1=ck,Qk=gk,Xk=(e,t,r)=>{const o=new Map,a={platform:Hk,...r},s={...a.platform,_c:o};return uk(e,t,{...a,platform:s})};var Wk=typeof document<"u",Zk=function(){},Wu=Wk?b.useLayoutEffect:Zk;function sc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,o,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(o=r;o--!==0;)if(!sc(e[o],t[o]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(t,a[o]))return!1;for(o=r;o--!==0;){const s=a[o];if(!(s==="_owner"&&e.$$typeof)&&!sc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Hx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n1(e,t){const r=Hx(e);return Math.round(t*r)/r}function jp(e){const t=b.useRef(e);return Wu(()=>{t.current=e}),t}function Jk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:u}={},transform:f=!0,whileElementsMounted:d,open:p}=e,[m,g]=b.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,S]=b.useState(o);sc(v,o)||S(o);const[w,x]=b.useState(null),[T,E]=b.useState(null),O=b.useCallback(ee=>{ee!==D.current&&(D.current=ee,x(ee))},[]),_=b.useCallback(ee=>{ee!==I.current&&(I.current=ee,E(ee))},[]),L=s||w,P=u||T,D=b.useRef(null),I=b.useRef(null),G=b.useRef(m),X=d!=null,Z=jp(d),Q=jp(a),W=jp(p),ue=b.useCallback(()=>{if(!D.current||!I.current)return;const ee={placement:t,strategy:r,middleware:v};Q.current&&(ee.platform=Q.current),Xk(D.current,I.current,ee).then(le=>{const R={...le,isPositioned:W.current!==!1};F.current&&!sc(G.current,R)&&(G.current=R,fr.flushSync(()=>{g(R)}))})},[v,t,r,Q,W]);Wu(()=>{p===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,g(ee=>({...ee,isPositioned:!1})))},[p]);const F=b.useRef(!1);Wu(()=>(F.current=!0,()=>{F.current=!1}),[]),Wu(()=>{if(L&&(D.current=L),P&&(I.current=P),L&&P){if(Z.current)return Z.current(L,P,ue);ue()}},[L,P,ue,Z,X]);const oe=b.useMemo(()=>({reference:D,floating:I,setReference:O,setFloating:_}),[O,_]),z=b.useMemo(()=>({reference:L,floating:P}),[L,P]),K=b.useMemo(()=>{const ee={position:r,left:0,top:0};if(!z.floating)return ee;const le=n1(z.floating,m.x),R=n1(z.floating,m.y);return f?{...ee,transform:"translate("+le+"px, "+R+"px)",...Hx(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:le,top:R}},[r,f,z.floating,m.x,m.y]);return b.useMemo(()=>({...m,update:ue,refs:oe,elements:z,floatingStyles:K}),[m,ue,oe,z,K])}const eD=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:o,padding:a}=typeof e=="function"?e(r):e;return o&&t(o)?o.current!=null?t1({element:o.current,padding:a}).fn(r):{}:o?t1({element:o,padding:a}).fn(r):{}}}},tD=(e,t)=>({...Vk(e),options:[e,t]}),nD=(e,t)=>({...Gk(e),options:[e,t]}),rD=(e,t)=>({...Qk(e),options:[e,t]}),iD=(e,t)=>({...$k(e),options:[e,t]}),oD=(e,t)=>({...Yk(e),options:[e,t]}),aD=(e,t)=>({...Kk(e),options:[e,t]}),lD=(e,t)=>({...eD(e),options:[e,t]});var sD="Arrow",Fx=b.forwardRef((e,t)=>{const{children:r,width:o=10,height:a=5,...s}=e;return k.jsx(we.svg,{...s,ref:t,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fx.displayName=sD;var uD=Fx;function qx(e){const[t,r]=b.useState(void 0);return vt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let u,f;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;u=p.inlineSize,f=p.blockSize}else u=e.offsetWidth,f=e.offsetHeight;r({width:u,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else r(void 0)},[e]),t}var wm="Popper",[Vx,Ea]=Gt(wm),[cD,Gx]=Vx(wm),$x=e=>{const{__scopePopper:t,children:r}=e,[o,a]=b.useState(null);return k.jsx(cD,{scope:t,anchor:o,onAnchorChange:a,children:r})};$x.displayName=wm;var Yx="PopperAnchor",Kx=b.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:o,...a}=e,s=Gx(Yx,r),u=b.useRef(null),f=Le(t,u),d=b.useRef(null);return b.useEffect(()=>{const p=d.current;d.current=o?.current||u.current,p!==d.current&&s.onAnchorChange(d.current)}),o?null:k.jsx(we.div,{...a,ref:f})});Kx.displayName=Yx;var Em="PopperContent",[fD,dD]=Vx(Em),Qx=b.forwardRef((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:s="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:S="optimized",onPlaced:w,...x}=e,T=Gx(Em,r),[E,O]=b.useState(null),_=Le(t,Y=>O(Y)),[L,P]=b.useState(null),D=qx(L),I=D?.width??0,G=D?.height??0,X=o+(s!=="center"?"-"+s:""),Z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Q=Array.isArray(p)?p:[p],W=Q.length>0,ue={padding:Z,boundary:Q.filter(hD),altBoundary:W},{refs:F,floatingStyles:oe,placement:z,isPositioned:K,middlewareData:ee}=Jk({strategy:"fixed",placement:X,whileElementsMounted:(...Y)=>qk(...Y,{animationFrame:S==="always"}),elements:{reference:T.anchor},middleware:[tD({mainAxis:a+G,alignmentAxis:u}),d&&nD({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?rD():void 0,...ue}),d&&iD({...ue}),oD({...ue,apply:({elements:Y,rects:ce,availableWidth:Ee,availableHeight:Ce})=>{const{width:Ne,height:Fe}=ce.reference,ze=Y.floating.style;ze.setProperty("--radix-popper-available-width",`${Ee}px`),ze.setProperty("--radix-popper-available-height",`${Ce}px`),ze.setProperty("--radix-popper-anchor-width",`${Ne}px`),ze.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),L&&lD({element:L,padding:f}),mD({arrowWidth:I,arrowHeight:G}),v&&aD({strategy:"referenceHidden",...ue})]}),[le,R]=Zx(z),$=yt(w);vt(()=>{K&&$?.()},[K,$]);const fe=ee.arrow?.x,A=ee.arrow?.y,te=ee.arrow?.centerOffset!==0,[he,ie]=b.useState();return vt(()=>{E&&ie(window.getComputedStyle(E).zIndex)},[E]),k.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:K?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(fD,{scope:r,placedSide:le,onArrowChange:P,arrowX:fe,arrowY:A,shouldHideArrow:te,children:k.jsx(we.div,{"data-side":le,"data-align":R,...x,ref:_,style:{...x.style,animation:K?void 0:"none"}})})})});Qx.displayName=Em;var Xx="PopperArrow",pD={top:"bottom",right:"left",bottom:"top",left:"right"},Wx=b.forwardRef(function(t,r){const{__scopePopper:o,...a}=t,s=dD(Xx,o),u=pD[s.placedSide];return k.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:k.jsx(uD,{...a,ref:r,style:{...a.style,display:"block"}})})});Wx.displayName=Xx;function hD(e){return e!==null}var mD=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:o,middlewareData:a}=t,u=a.arrow?.centerOffset!==0,f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,m]=Zx(r),g={start:"0%",center:"50%",end:"100%"}[m],v=(a.arrow?.x??0)+f/2,S=(a.arrow?.y??0)+d/2;let w="",x="";return p==="bottom"?(w=u?g:`${v}px`,x=`${-d}px`):p==="top"?(w=u?g:`${v}px`,x=`${o.floating.height+d}px`):p==="right"?(w=`${-d}px`,x=u?g:`${S}px`):p==="left"&&(w=`${o.floating.width+d}px`,x=u?g:`${S}px`),{data:{x:w,y:x}}}});function Zx(e){const[t,r="center"]=e.split("-");return[t,r]}var Cm=$x,Tm=Kx,Rm=Qx,Om=Wx,Jx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gD="VisuallyHidden",Lc=b.forwardRef((e,t)=>k.jsx(we.span,{...e,ref:t,style:{...Jx,...e.style}}));Lc.displayName=gD;var yD=Lc,[zc,uU]=Gt("Tooltip",[Ea]),Ic=Ea(),ew="TooltipProvider",vD=700,Ch="tooltip.open",[bD,Am]=zc(ew),tw=e=>{const{__scopeTooltip:t,delayDuration:r=vD,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:s}=e,u=b.useRef(!0),f=b.useRef(!1),d=b.useRef(0);return b.useEffect(()=>{const p=d.current;return()=>window.clearTimeout(p)},[]),k.jsx(bD,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(d.current),u.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.current=!0,o)},[o]),isPointerInTransitRef:f,onPointerInTransitChange:b.useCallback(p=>{f.current=p},[]),disableHoverableContent:a,children:s})};tw.displayName=ew;var Ql="Tooltip",[SD,ls]=zc(Ql),nw=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:a,onOpenChange:s,disableHoverableContent:u,delayDuration:f}=e,d=Am(Ql,e.__scopeTooltip),p=Ic(t),[m,g]=b.useState(null),v=Pn(),S=b.useRef(0),w=u??d.disableHoverableContent,x=f??d.delayDuration,T=b.useRef(!1),[E,O]=pr({prop:o,defaultProp:a??!1,onChange:I=>{I?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ch))):d.onClose(),s?.(I)},caller:Ql}),_=b.useMemo(()=>E?T.current?"delayed-open":"instant-open":"closed",[E]),L=b.useCallback(()=>{window.clearTimeout(S.current),S.current=0,T.current=!1,O(!0)},[O]),P=b.useCallback(()=>{window.clearTimeout(S.current),S.current=0,O(!1)},[O]),D=b.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{T.current=!0,O(!0),S.current=0},x)},[x,O]);return b.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),k.jsx(Cm,{...p,children:k.jsx(SD,{scope:t,contentId:v,open:E,stateAttribute:_,trigger:m,onTriggerChange:g,onTriggerEnter:b.useCallback(()=>{d.isOpenDelayedRef.current?D():L()},[d.isOpenDelayedRef,D,L]),onTriggerLeave:b.useCallback(()=>{w?P():(window.clearTimeout(S.current),S.current=0)},[P,w]),onOpen:L,onClose:P,disableHoverableContent:w,children:r})})};nw.displayName=Ql;var Th="TooltipTrigger",rw=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,a=ls(Th,r),s=Am(Th,r),u=Ic(r),f=b.useRef(null),d=Le(t,f,a.onTriggerChange),p=b.useRef(!1),m=b.useRef(!1),g=b.useCallback(()=>p.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),k.jsx(Tm,{asChild:!0,...u,children:k.jsx(we.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:d,onPointerMove:ge(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{a.open&&a.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:ge(e.onFocus,()=>{p.current||a.onOpen()}),onBlur:ge(e.onBlur,a.onClose),onClick:ge(e.onClick,a.onClose)})})});rw.displayName=Th;var Mm="TooltipPortal",[xD,wD]=zc(Mm,{forceMount:void 0}),iw=e=>{const{__scopeTooltip:t,forceMount:r,children:o,container:a}=e,s=ls(Mm,t);return k.jsx(xD,{scope:t,forceMount:r,children:k.jsx(zt,{present:r||s.open,children:k.jsx(Sa,{asChild:!0,container:a,children:o})})})};iw.displayName=Mm;var pa="TooltipContent",ow=b.forwardRef((e,t)=>{const r=wD(pa,e.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...s}=e,u=ls(pa,e.__scopeTooltip);return k.jsx(zt,{present:o||u.open,children:u.disableHoverableContent?k.jsx(aw,{side:a,...s,ref:t}):k.jsx(ED,{side:a,...s,ref:t})})}),ED=b.forwardRef((e,t)=>{const r=ls(pa,e.__scopeTooltip),o=Am(pa,e.__scopeTooltip),a=b.useRef(null),s=Le(t,a),[u,f]=b.useState(null),{trigger:d,onClose:p}=r,m=a.current,{onPointerInTransitChange:g}=o,v=b.useCallback(()=>{f(null),g(!1)},[g]),S=b.useCallback((w,x)=>{const T=w.currentTarget,E={x:w.clientX,y:w.clientY},O=AD(E,T.getBoundingClientRect()),_=MD(E,O),L=_D(x.getBoundingClientRect()),P=DD([..._,...L]);f(P),g(!0)},[g]);return b.useEffect(()=>()=>v(),[v]),b.useEffect(()=>{if(d&&m){const w=T=>S(T,m),x=T=>S(T,d);return d.addEventListener("pointerleave",w),m.addEventListener("pointerleave",x),()=>{d.removeEventListener("pointerleave",w),m.removeEventListener("pointerleave",x)}}},[d,m,S,v]),b.useEffect(()=>{if(u){const w=x=>{const T=x.target,E={x:x.clientX,y:x.clientY},O=d?.contains(T)||m?.contains(T),_=!kD(E,u);O?v():_&&(v(),p())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,m,u,p,v]),k.jsx(aw,{...e,ref:s})}),[CD,TD]=zc(Ql,{isInside:!1}),RD=ZS("TooltipContent"),aw=b.forwardRef((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:u,...f}=e,d=ls(pa,r),p=Ic(r),{onClose:m}=d;return b.useEffect(()=>(document.addEventListener(Ch,m),()=>document.removeEventListener(Ch,m)),[m]),b.useEffect(()=>{if(d.trigger){const g=v=>{v.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),k.jsx(ba,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:m,children:k.jsxs(Rm,{"data-state":d.stateAttribute,...p,...f,ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[k.jsx(RD,{children:o}),k.jsx(CD,{scope:r,isInside:!0,children:k.jsx(yD,{id:d.contentId,role:"tooltip",children:a||o})})]})})});ow.displayName=pa;var lw="TooltipArrow",OD=b.forwardRef((e,t)=>{const{__scopeTooltip:r,...o}=e,a=Ic(r);return TD(lw,r).isInside?null:k.jsx(Om,{...a,...o,ref:t})});OD.displayName=lw;function AD(e,t){const r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,o,a,s)){case s:return"left";case a:return"right";case r:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function MD(e,t,r=5){const o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return o}function _D(e){const{top:t,right:r,bottom:o,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:o},{x:a,y:o}]}function kD(e,t){const{x:r,y:o}=e;let a=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const f=t[s],d=t[u],p=f.x,m=f.y,g=d.x,v=d.y;m>o!=v>o&&r<(g-p)*(o-m)/(v-m)+p&&(a=!a)}return a}function DD(e){const t=e.slice();return t.sort((r,o)=>r.x<o.x?-1:r.x>o.x?1:r.y<o.y?-1:r.y>o.y?1:0),ND(t)}function ND(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const a=e[o];for(;t.length>=2;){const s=t[t.length-1],u=t[t.length-2];if((s.x-u.x)*(a.y-u.y)>=(s.y-u.y)*(a.x-u.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let o=e.length-1;o>=0;o--){const a=e[o];for(;r.length>=2;){const s=r[r.length-1],u=r[r.length-2];if((s.x-u.x)*(a.y-u.y)>=(s.y-u.y)*(a.x-u.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var cU=tw,fU=nw,dU=rw,pU=iw,hU=ow,io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Zi=typeof window>"u"||"Deno"in globalThis;function Bt(){}function PD(e,t){return typeof e=="function"?e(t):e}function Rh(e){return typeof e=="number"&&e>=0&&e!==1/0}function sw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bi(e,t){return typeof e=="function"?e(t):e}function kn(e,t){return typeof e=="function"?e(t):e}function r1(e,t){const{type:r="all",exact:o,fetchStatus:a,predicate:s,queryKey:u,stale:f}=e;if(u){if(o){if(t.queryHash!==_m(u,t.options))return!1}else if(!Xl(t.queryKey,u))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||a&&a!==t.state.fetchStatus||s&&!s(t))}function i1(e,t){const{exact:r,status:o,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Ji(t.options.mutationKey)!==Ji(s))return!1}else if(!Xl(t.options.mutationKey,s))return!1}return!(o&&t.state.status!==o||a&&!a(t))}function _m(e,t){return(t?.queryKeyHashFn||Ji)(e)}function Ji(e){return JSON.stringify(e,(t,r)=>Oh(r)?Object.keys(r).sort().reduce((o,a)=>(o[a]=r[a],o),{}):r)}function Xl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Xl(e[r],t[r])):!1}var LD=Object.prototype.hasOwnProperty;function km(e,t){if(e===t)return e;const r=o1(e)&&o1(t);if(!r&&!(Oh(e)&&Oh(t)))return t;const a=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),u=s.length,f=r?new Array(u):{};let d=0;for(let p=0;p<u;p++){const m=r?p:s[p],g=e[m],v=t[m];if(g===v){f[m]=g,(r?p<a:LD.call(e,m))&&d++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){f[m]=v;continue}const S=km(g,v);f[m]=S,S===g&&d++}return a===u&&d===a?e:f}function Wl(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function o1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oh(e){if(!a1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!a1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function a1(e){return Object.prototype.toString.call(e)==="[object Object]"}function zD(e){return new Promise(t=>{setTimeout(t,e)})}function Ah(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?km(e,t):t}function ID(e,t,r=0){const o=[...e,t];return r&&o.length>r?o.slice(1):o}function jD(e,t,r=0){const o=[t,...e];return r&&o.length>r?o.slice(0,-1):o}var Dm=Symbol();function uw(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Dm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cw(e,t){return typeof e=="function"?e(...t):!!e}var UD=class extends io{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Zi&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Nm=new UD,BD=class extends io{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Zi&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},uc=new BD;function Mh(){let e,t;const r=new Promise((a,s)=>{e=a,t=s});r.status="pending",r.catch(()=>{});function o(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{o({status:"fulfilled",value:a}),e(a)},r.reject=a=>{o({status:"rejected",reason:a}),t(a)},r}function HD(e){return Math.min(1e3*2**e,3e4)}function fw(e){return(e??"online")==="online"?uc.isOnline():!0}var _h=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dw(e){let t=!1,r=0,o;const a=Mh(),s=()=>a.status!=="pending",u=x=>{if(!s()){const T=new _h(x);v(T),e.onCancel?.(T)}},f=()=>{t=!0},d=()=>{t=!1},p=()=>Nm.isFocused()&&(e.networkMode==="always"||uc.isOnline())&&e.canRun(),m=()=>fw(e.networkMode)&&e.canRun(),g=x=>{s()||(o?.(),a.resolve(x))},v=x=>{s()||(o?.(),a.reject(x))},S=()=>new Promise(x=>{o=T=>{(s()||p())&&x(T)},e.onPause?.()}).then(()=>{o=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let x;const T=r===0?e.initialPromise:void 0;try{x=T??e.fn()}catch(E){x=Promise.reject(E)}Promise.resolve(x).then(g).catch(E=>{if(s())return;const O=e.retry??(Zi?0:3),_=e.retryDelay??HD,L=typeof _=="function"?_(r,E):_,P=O===!0||typeof O=="number"&&r<O||typeof O=="function"&&O(r,E);if(t||!P){v(E);return}r++,e.onFail?.(r,E),zD(L).then(()=>p()?void 0:S()).then(()=>{t?v(E):w()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(o?.(),a),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?w():S().then(w),a)}}var FD=e=>setTimeout(e,0);function qD(){let e=[],t=0,r=f=>{f()},o=f=>{f()},a=FD;const s=f=>{t?e.push(f):a(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&a(()=>{o(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||u()}return d},batchCalls:f=>(...d)=>{s(()=>{f(...d)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{o=f},setScheduler:f=>{a=f}}}var gt=qD(),pw=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rh(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Zi?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},VD=class extends pw{#t;#e;#n;#r;#i;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=GD(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const r=Ah(this.state.data,e,this.options);return this.#a({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(Bt).catch(Bt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>kn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Dm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>bi(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#l?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},a=()=>{const f=uw(this.options,t),p=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return o(m),m})();return this.#l=!1,this.options.persister?this.options.persister(f,p,this):f(p)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return o(f),f})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#a({type:"fetch",meta:u.fetchOptions?.meta}),this.#i=dw({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof _h&&f.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(f,d)=>{this.#a({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#i.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof _h){if(f.silent)return this.#i.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#a({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...hw(r.data,this.options),fetchMeta:e.meta??null};case"success":const o={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?o:void 0,o;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),gt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function hw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function GD(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,o=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var $D=class extends io{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const o=t.queryKey,a=t.queryHash??_m(o,t);let s=this.get(a);return s||(s=new VD({client:e,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){gt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>r1(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>r1(e,r)):t}notify(e){gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},YD=class extends pw{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||mw(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=dw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,s)=>{this.#r({type:"failed",failureCount:a,error:s})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const r=this.state.status==="pending",o=!this.#n.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#e.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#r({type:"pending",context:s,variables:e,isPaused:o})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),gt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function mw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var KD=class extends io{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,r){const o=new YD({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){this.#t.add(e);const t=Hu(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Hu(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const o=r.indexOf(e);o!==-1&&r.splice(o,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Hu(e);if(typeof t=="string"){const o=this.#e.get(t)?.find(a=>a.state.status==="pending");return!o||o===e}else return!0}runNext(e){const t=Hu(e);return typeof t=="string"?this.#e.get(t)?.find(o=>o!==e&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){gt.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>i1(t,r))}findAll(e={}){return this.getAll().filter(t=>i1(e,t))}notify(e){gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Bt))))}};function Hu(e){return e.options.scope?.id}function l1(e){return{onFetch:(t,r)=>{const o=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let m=!1;const g=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=uw(t.options,t.fetchOptions),S=async(w,x,T)=>{if(m)return Promise.reject();if(x==null&&w.pages.length)return Promise.resolve(w);const O=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:x,direction:T?"backward":"forward",meta:t.options.meta};return g(D),D})(),_=await v(O),{maxPages:L}=t.options,P=T?jD:ID;return{pages:P(w.pages,_,L),pageParams:P(w.pageParams,x,L)}};if(a&&s.length){const w=a==="backward",x=w?QD:s1,T={pages:s,pageParams:u},E=x(o,T);f=await S(T,E,w)}else{const w=e??s.length;do{const x=d===0?u[0]??o.initialPageParam:s1(o,f);if(d>0&&x==null)break;f=await S(f,x),d++}while(d<w)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function s1(e,{pages:t,pageParams:r}){const o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,r[o],r):void 0}function QD(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var mU=class{#t;#e;#n;#r;#i;#o;#l;#a;constructor(e={}){this.#t=e.queryCache||new $D,this.#e=e.mutationCache||new KD,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=Nm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#a=uc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),o=r.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(bi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(o))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const o=r.data;return[t,o]})}setQueryData(e,t,r){const o=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(o.queryHash)?.state.data,u=PD(t,s);if(u!==void 0)return this.#t.build(this,o).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return gt.batch(()=>this.#t.findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;gt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return gt.batch(()=>(r.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},o=gt.batch(()=>this.#t.findAll(e).map(a=>a.cancel(r)));return Promise.all(o).then(Bt).catch(Bt)}invalidateQueries(e,t={}){return gt.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},o=gt.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let s=a.fetch(void 0,r);return r.throwOnError||(s=s.catch(Bt)),a.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(o).then(Bt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(bi(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Bt).catch(Bt)}fetchInfiniteQuery(e){return e.behavior=l1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Bt).catch(Bt)}ensureInfiniteQueryData(e){return e.behavior=l1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return uc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ji(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(o=>{Xl(e,o.queryKey)&&Object.assign(r,o.defaultOptions)}),r}setMutationDefaults(e,t){this.#i.set(Ji(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(o=>{Xl(e,o.mutationKey)&&Object.assign(r,o.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_m(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Dm&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Pm=class extends io{constructor(e,t){super(),this.options=t,this.#t=e,this.#a=null,this.#l=Mh(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#i;#o;#l;#a;#p;#f;#d;#u;#c;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),u1(this.#e,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Wl(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&c1(this.#e,r,this.options,t)&&this.#h(),this.updateResult(),o&&(this.#e!==r||kn(this.options.enabled,this.#e)!==kn(t.enabled,this.#e)||bi(this.options.staleTime,this.#e)!==bi(t.staleTime,this.#e))&&this.#g();const a=this.#y();o&&(this.#e!==r||kn(this.options.enabled,this.#e)!==kn(t.enabled,this.#e)||a!==this.#s)&&this.#v(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return WD(this,r)&&(this.#r=r,this.#o=this.options,this.#i=this.#e.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,o)=>(this.trackProp(o),t?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Bt)),t}#g(){this.#S();const e=bi(this.options.staleTime,this.#e);if(Zi||this.#r.isStale||!Rh(e))return;const r=sw(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#s=e,!(Zi||kn(this.options.enabled,this.#e)===!1||!Rh(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Nm.isFocused())&&this.#h()},this.#s))}#b(){this.#g(),this.#v(this.#y())}#S(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const r=this.#e,o=this.options,a=this.#r,s=this.#i,u=this.#o,d=e!==r?e.state:this.#n,{state:p}=e;let m={...p},g=!1,v;if(t._optimisticResults){const G=this.hasListeners(),X=!G&&u1(e,t),Z=G&&c1(e,r,t,o);(X||Z)&&(m={...m,...hw(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:x}=m;v=m.data;let T=!1;if(t.placeholderData!==void 0&&v===void 0&&x==="pending"){let G;a?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(G=a.data,T=!0):G=typeof t.placeholderData=="function"?t.placeholderData(this.#d?.state.data,this.#d):t.placeholderData,G!==void 0&&(x="success",v=Ah(a?.data,G,t),g=!0)}if(t.select&&v!==void 0&&!T)if(a&&v===s?.data&&t.select===this.#p)v=this.#f;else try{this.#p=t.select,v=t.select(v),v=Ah(a?.data,v,t),this.#f=v,this.#a=null}catch(G){this.#a=G}this.#a&&(S=this.#a,v=this.#f,w=Date.now(),x="error");const E=m.fetchStatus==="fetching",O=x==="pending",_=x==="error",L=O&&E,P=v!==void 0,I={status:x,fetchStatus:m.fetchStatus,isPending:O,isSuccess:x==="success",isError:_,isInitialLoading:L,isLoading:L,data:v,dataUpdatedAt:m.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:E,isRefetching:E&&!O,isLoadingError:_&&!P,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:_&&P,isStale:Lm(e,t),refetch:this.refetch,promise:this.#l,isEnabled:kn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const G=Q=>{I.status==="error"?Q.reject(I.error):I.data!==void 0&&Q.resolve(I.data)},X=()=>{const Q=this.#l=I.promise=Mh();G(Q)},Z=this.#l;switch(Z.status){case"pending":e.queryHash===r.queryHash&&G(Z);break;case"fulfilled":(I.status==="error"||I.data!==Z.value)&&X();break;case"rejected":(I.status!=="error"||I.error!==Z.reason)&&X();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#e),Wl(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.#m.size)return!0;const s=new Set(a??this.#m);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(u=>{const f=u;return this.#r[f]!==e[f]&&s.has(f)})};this.#E({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(e){gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function XD(e,t){return kn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function u1(e,t){return XD(e,t)||e.state.data!==void 0&&kh(e,t,t.refetchOnMount)}function kh(e,t,r){if(kn(t.enabled,e)!==!1&&bi(t.staleTime,e)!=="static"){const o=typeof r=="function"?r(e):r;return o==="always"||o!==!1&&Lm(e,t)}return!1}function c1(e,t,r,o){return(e!==t||kn(o.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Lm(e,r)}function Lm(e,t){return kn(t.enabled,e)!==!1&&e.isStaleByTime(bi(t.staleTime,e))}function WD(e,t){return!Wl(e.getCurrentResult(),t)}function f1(e,t){const r=new Set(t);return e.filter(o=>!r.has(o))}function ZD(e,t,r){const o=e.slice(0);return o[t]=r,o}var JD=class extends io{#t;#e;#n;#r;#i;#o;#l;#a;#p=[];constructor(e,t,r){super(),this.#t=e,this.#r=r,this.#n=[],this.#i=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,gt.batch(()=>{const r=this.#i,o=this.#u(this.#n);this.#p=o,o.forEach(d=>d.observer.setOptions(d.defaultedQueryOptions));const a=o.map(d=>d.observer),s=a.map(d=>d.getCurrentResult()),u=a.some((d,p)=>d!==r[p]),f=r.length===a.length&&!u?s.some((d,p)=>{const m=this.#e[p];return!m||!Wl(d,m)}):!0;!u&&!f||(u&&(this.#i=a),this.#e=s,this.hasListeners()&&(u&&(f1(r,a).forEach(d=>{d.destroy()}),f1(a,r).forEach(d=>{d.subscribe(p=>{this.#c(d,p)})})),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){const r=this.#u(e),o=r.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[o,a=>this.#d(a??o,t),()=>this.#f(o,r)]}#f(e,t){return t.map((r,o)=>{const a=e[o];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,s=>{t.forEach(u=>{u.observer.trackProp(s)})})})}#d(e,t){return t?((!this.#o||this.#e!==this.#a||t!==this.#l)&&(this.#l=t,this.#a=this.#e,this.#o=km(this.#o,t(e))),this.#o):e}#u(e){const t=new Map(this.#i.map(o=>[o.options.queryHash,o])),r=[];return e.forEach(o=>{const a=this.#t.defaultQueryOptions(o),s=t.get(a.queryHash);s?r.push({defaultedQueryOptions:a,observer:s}):r.push({defaultedQueryOptions:a,observer:new Pm(this.#t,a)})}),r}#c(e,t){const r=this.#i.indexOf(e);r!==-1&&(this.#e=ZD(this.#e,r,t),this.#s())}#s(){if(this.hasListeners()){const e=this.#o,t=this.#f(this.#e,this.#p),r=this.#d(t,this.#r?.combine);e!==r&>.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},eN=class extends io{#t;#e=void 0;#n;#r;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Wl(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&Ji(r.mutationKey)!==Ji(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#i(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(t,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#i(){const t=this.#n?.state??mw();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){gt.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#e.variables,o=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,r,o),this.#r.onSettled?.(t.data,null,r,o)):t?.type==="error"&&(this.#r.onError?.(t.error,r,o),this.#r.onSettled?.(void 0,t.error,r,o))}this.listeners.forEach(r=>{r(this.#e)})})}},gw=b.createContext(void 0),zm=e=>{const t=b.useContext(gw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yU=({client:e,children:t})=>(b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(gw.Provider,{value:e,children:t})),yw=b.createContext(!1),vw=()=>b.useContext(yw);yw.Provider;function tN(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nN=b.createContext(tN()),bw=()=>b.useContext(nN),Sw=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xw=e=>{b.useEffect(()=>{e.clearReset()},[e])},ww=({result:e,errorResetBoundary:t,throwOnError:r,query:o,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(a&&e.data===void 0||cw(r,[e.error,o])),Ew=e=>{if(e.suspense){const r=a=>a==="static"?a:Math.max(a??1e3,1e3),o=e.staleTime;e.staleTime=typeof o=="function"?(...a)=>r(o(...a)):r(o),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Cw=(e,t)=>e.isLoading&&e.isFetching&&!t,Dh=(e,t)=>e?.suspense&&t.isPending,cc=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function vU({queries:e,...t},r){const o=zm(),a=vw(),s=bw(),u=b.useMemo(()=>e.map(x=>{const T=o.defaultQueryOptions(x);return T._optimisticResults=a?"isRestoring":"optimistic",T}),[e,o,a]);u.forEach(x=>{Ew(x),Sw(x,s)}),xw(s);const[f]=b.useState(()=>new JD(o,u,t)),[d,p,m]=f.getOptimisticResult(u,t.combine),g=!a&&t.subscribed!==!1;b.useSyncExternalStore(b.useCallback(x=>g?f.subscribe(gt.batchCalls(x)):Bt,[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),b.useEffect(()=>{f.setQueries(u,t)},[u,t,f]);const S=d.some((x,T)=>Dh(u[T],x))?d.flatMap((x,T)=>{const E=u[T];if(E){const O=new Pm(o,E);if(Dh(E,x))return cc(E,O,s);Cw(x,a)&&cc(E,O,s)}return[]}):[];if(S.length>0)throw Promise.all(S);const w=d.find((x,T)=>{const E=u[T];return E&&ww({result:x,errorResetBoundary:s,throwOnError:E.throwOnError,query:o.getQueryCache().get(E.queryHash),suspense:E.suspense})});if(w?.error)throw w.error;return p(m())}function rN(e,t,r){const o=vw(),a=bw(),s=zm(),u=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=o?"isRestoring":"optimistic",Ew(u),Sw(u,a),xw(a);const f=!s.getQueryCache().get(u.queryHash),[d]=b.useState(()=>new t(s,u)),p=d.getOptimisticResult(u),m=!o&&e.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(g=>{const v=m?d.subscribe(gt.batchCalls(g)):Bt;return d.updateResult(),v},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),b.useEffect(()=>{d.setOptions(u)},[u,d]),Dh(u,p))throw cc(u,d,a);if(ww({result:p,errorResetBoundary:a,throwOnError:u.throwOnError,query:s.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!Zi&&Cw(p,o)&&(f?cc(u,d,a):s.getQueryCache().get(u.queryHash)?.promise)?.catch(Bt).finally(()=>{d.updateResult()}),u.notifyOnChangeProps?p:d.trackResult(p)}function bU(e,t){return rN(e,Pm)}function SU(e,t){const r=zm(),[o]=b.useState(()=>new eN(r,e));b.useEffect(()=>{o.setOptions(e)},[o,e]);const a=b.useSyncExternalStore(b.useCallback(u=>o.subscribe(gt.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=b.useCallback((u,f)=>{o.mutate(u,f).catch(Bt)},[o]);if(a.error&&cw(o.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}/**
|
|
459
|
+
* react-router v7.8.2
|
|
460
|
+
*
|
|
461
|
+
* Copyright (c) Remix Software Inc.
|
|
462
|
+
*
|
|
463
|
+
* This source code is licensed under the MIT license found in the
|
|
464
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
465
|
+
*
|
|
466
|
+
* @license MIT
|
|
467
|
+
*/var d1="popstate";function iN(e={}){function t(o,a){let{pathname:s,search:u,hash:f}=o.location;return Nh("",{pathname:s,search:u,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){return typeof a=="string"?a:Zl(a)}return aN(t,r,null,e)}function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Yn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function oN(){return Math.random().toString(36).substring(2,10)}function p1(e,t){return{usr:e.state,key:e.key,idx:t}}function Nh(e,t,r=null,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ca(t):t,state:r,key:t&&t.key||o||oN()}}function Zl({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ca(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let o=e.indexOf("?");o>=0&&(t.search=e.substring(o),e=e.substring(0,o)),e&&(t.pathname=e)}return t}function aN(e,t,r,o={}){let{window:a=document.defaultView,v5Compat:s=!1}=o,u=a.history,f="POP",d=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function g(){f="POP";let T=m(),E=T==null?null:T-p;p=T,d&&d({action:f,location:x.location,delta:E})}function v(T,E){f="PUSH";let O=Nh(x.location,T,E);p=m()+1;let _=p1(O,p),L=x.createHref(O);try{u.pushState(_,"",L)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(L)}s&&d&&d({action:f,location:x.location,delta:1})}function S(T,E){f="REPLACE";let O=Nh(x.location,T,E);p=m();let _=p1(O,p),L=x.createHref(O);u.replaceState(_,"",L),s&&d&&d({action:f,location:x.location,delta:0})}function w(T){return lN(T)}let x={get action(){return f},get location(){return e(a,u)},listen(T){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(d1,g),d=T,()=>{a.removeEventListener(d1,g),d=null}},createHref(T){return t(a,T)},createURL:w,encodeLocation(T){let E=w(T);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:v,replace:S,go(T){return u.go(T)}};return x}function lN(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),dt(r,"No window.location.(origin|href) available to create URL");let o=typeof e=="string"?e:Zl(e);return o=o.replace(/ $/,"%20"),!t&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Tw(e,t,r="/"){return sN(e,t,r,!1)}function sN(e,t,r,o){let a=typeof t=="string"?Ca(t):t,s=Fr(a.pathname||"/",r);if(s==null)return null;let u=Rw(e);uN(u);let f=null;for(let d=0;f==null&&d<u.length;++d){let p=SN(s);f=vN(u[d],p,o)}return f}function Rw(e,t=[],r=[],o="",a=!1){let s=(u,f,d=a,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(o)&&d)return;dt(m.relativePath.startsWith(o),`Absolute route path "${m.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(o.length)}let g=Ur([o,m.relativePath]),v=r.concat(m);u.children&&u.children.length>0&&(dt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Rw(u.children,t,v,g,d)),!(u.path==null&&!u.index)&&t.push({path:g,score:gN(g,u.index),routesMeta:v})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))s(u,f);else for(let d of Ow(u.path))s(u,f,!0,d)}),t}function Ow(e){let t=e.split("/");if(t.length===0)return[];let[r,...o]=t,a=r.endsWith("?"),s=r.replace(/\?$/,"");if(o.length===0)return a?[s,""]:[s];let u=Ow(o.join("/")),f=[];return f.push(...u.map(d=>d===""?s:[s,d].join("/"))),a&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function uN(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:yN(t.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var cN=/^:[\w-]+$/,fN=3,dN=2,pN=1,hN=10,mN=-2,h1=e=>e==="*";function gN(e,t){let r=e.split("/"),o=r.length;return r.some(h1)&&(o+=mN),t&&(o+=dN),r.filter(a=>!h1(a)).reduce((a,s)=>a+(cN.test(s)?fN:s===""?pN:hN),o)}function yN(e,t){return e.length===t.length&&e.slice(0,-1).every((o,a)=>o===t[a])?e[e.length-1]-t[t.length-1]:0}function vN(e,t,r=!1){let{routesMeta:o}=e,a={},s="/",u=[];for(let f=0;f<o.length;++f){let d=o[f],p=f===o.length-1,m=s==="/"?t:t.slice(s.length)||"/",g=fc({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},m),v=d.route;if(!g&&p&&r&&!o[o.length-1].route.index&&(g=fc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),u.push({params:a,pathname:Ur([s,g.pathname]),pathnameBase:CN(Ur([s,g.pathnameBase])),route:v}),g.pathnameBase!=="/"&&(s=Ur([s,g.pathnameBase]))}return u}function fc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,o]=bN(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let s=a[0],u=s.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:o.reduce((p,{paramName:m,isOptional:g},v)=>{if(m==="*"){let w=f[v]||"";u=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const S=f[v];return g&&!S?p[m]=void 0:p[m]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:u,pattern:e}}function bN(e,t=!1,r=!0){Yn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d)=>(o.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),o]}function SN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Yn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function xN(e,t="/"){let{pathname:r,search:o="",hash:a=""}=typeof e=="string"?Ca(e):e;return{pathname:r?r.startsWith("/")?r:wN(r,t):t,search:TN(o),hash:RN(a)}}function wN(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Up(e,t,r,o){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(o)}]. 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 EN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Aw(e){let t=EN(e);return t.map((r,o)=>o===t.length-1?r.pathname:r.pathnameBase)}function Mw(e,t,r,o=!1){let a;typeof e=="string"?a=Ca(e):(a={...e},dt(!a.pathname||!a.pathname.includes("?"),Up("?","pathname","search",a)),dt(!a.pathname||!a.pathname.includes("#"),Up("#","pathname","hash",a)),dt(!a.search||!a.search.includes("#"),Up("#","search","hash",a)));let s=e===""||a.pathname==="",u=s?"/":a.pathname,f;if(u==null)f=r;else{let g=t.length-1;if(!o&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),g-=1;a.pathname=v.join("/")}f=g>=0?t[g]:"/"}let d=xN(a,f),p=u&&u!=="/"&&u.endsWith("/"),m=(s||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||m)&&(d.pathname+="/"),d}var Ur=e=>e.join("/").replace(/\/\/+/g,"/"),CN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ON(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var _w=["POST","PUT","PATCH","DELETE"];new Set(_w);var AN=["GET",..._w];new Set(AN);var Ta=b.createContext(null);Ta.displayName="DataRouter";var jc=b.createContext(null);jc.displayName="DataRouterState";b.createContext(!1);var kw=b.createContext({isTransitioning:!1});kw.displayName="ViewTransition";var MN=b.createContext(new Map);MN.displayName="Fetchers";var _N=b.createContext(null);_N.displayName="Await";var yr=b.createContext(null);yr.displayName="Navigation";var ss=b.createContext(null);ss.displayName="Location";var vr=b.createContext({outlet:null,matches:[],isDataRoute:!1});vr.displayName="Route";var Im=b.createContext(null);Im.displayName="RouteError";function kN(e,{relative:t}={}){dt(us(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=b.useContext(yr),{hash:a,pathname:s,search:u}=cs(e,{relative:t}),f=s;return r!=="/"&&(f=s==="/"?r:Ur([r,s])),o.createHref({pathname:f,search:u,hash:a})}function us(){return b.useContext(ss)!=null}function Ei(){return dt(us(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(ss).location}var Dw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nw(e){b.useContext(yr).static||b.useLayoutEffect(e)}function Pw(){let{isDataRoute:e}=b.useContext(vr);return e?VN():DN()}function DN(){dt(us(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Ta),{basename:t,navigator:r}=b.useContext(yr),{matches:o}=b.useContext(vr),{pathname:a}=Ei(),s=JSON.stringify(Aw(o)),u=b.useRef(!1);return Nw(()=>{u.current=!0}),b.useCallback((d,p={})=>{if(Yn(u.current,Dw),!u.current)return;if(typeof d=="number"){r.go(d);return}let m=Mw(d,JSON.parse(s),a,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ur([t,m.pathname])),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,s,a,e])}b.createContext(null);function xU(){let{matches:e}=b.useContext(vr),t=e[e.length-1];return t?t.params:{}}function cs(e,{relative:t}={}){let{matches:r}=b.useContext(vr),{pathname:o}=Ei(),a=JSON.stringify(Aw(r));return b.useMemo(()=>Mw(e,JSON.parse(a),o,t==="path"),[e,a,o,t])}function NN(e,t){return Lw(e,t)}function Lw(e,t,r,o,a){dt(us(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=b.useContext(yr),{matches:u}=b.useContext(vr),f=u[u.length-1],d=f?f.params:{},p=f?f.pathname:"/",m=f?f.pathnameBase:"/",g=f&&f.route;{let O=g&&g.path||"";zw(p,!g||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
468
|
+
|
|
469
|
+
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let v=Ei(),S;if(t){let O=typeof t=="string"?Ca(t):t;dt(m==="/"||O.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${O.pathname}" was given in the \`location\` prop.`),S=O}else S=v;let w=S.pathname||"/",x=w;if(m!=="/"){let O=m.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(O.length).join("/")}let T=Tw(e,{pathname:x});Yn(g||T!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Yn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=jN(T&&T.map(O=>Object.assign({},O,{params:Object.assign({},d,O.params),pathname:Ur([m,s.encodeLocation?s.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?m:Ur([m,s.encodeLocation?s.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),u,r,o,a);return t&&E?b.createElement(ss.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},E):E}function PN(){let e=qN(),t=ON(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o},s={padding:"2px 4px",backgroundColor:o},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:s},"ErrorBoundary")," or"," ",b.createElement("code",{style:s},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:a},r):null,u)}var LN=b.createElement(PN,null),zN=class 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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?b.createElement(vr.Provider,{value:this.props.routeContext},b.createElement(Im.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function IN({routeContext:e,match:t,children:r}){let o=b.useContext(Ta);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(vr.Provider,{value:e},r)}function jN(e,t=[],r=null,o=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,u=r?.errors;if(u!=null){let p=s.findIndex(m=>m.route.id&&u?.[m.route.id]!==void 0);dt(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let f=!1,d=-1;if(r)for(let p=0;p<s.length;p++){let m=s[p];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=p),m.route.id){let{loaderData:g,errors:v}=r,S=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||S){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,m,g)=>{let v,S=!1,w=null,x=null;r&&(v=u&&m.route.id?u[m.route.id]:void 0,w=m.route.errorElement||LN,f&&(d<0&&g===0?(zw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,x=null):d===g&&(S=!0,x=m.route.hydrateFallbackElement||null)));let T=t.concat(s.slice(0,g+1)),E=()=>{let O;return v?O=w:S?O=x:m.route.Component?O=b.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=p,b.createElement(IN,{match:m,routeContext:{outlet:p,matches:T,isDataRoute:r!=null},children:O})};return r&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?b.createElement(zN,{location:r.location,revalidation:r.revalidation,component:w,error:v,children:E(),routeContext:{outlet:null,matches:T,isDataRoute:!0},unstable_onError:o}):E()},null)}function jm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UN(e){let t=b.useContext(Ta);return dt(t,jm(e)),t}function BN(e){let t=b.useContext(jc);return dt(t,jm(e)),t}function HN(e){let t=b.useContext(vr);return dt(t,jm(e)),t}function Um(e){let t=HN(e),r=t.matches[t.matches.length-1];return dt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function FN(){return Um("useRouteId")}function qN(){let e=b.useContext(Im),t=BN("useRouteError"),r=Um("useRouteError");return e!==void 0?e:t.errors?.[r]}function VN(){let{router:e}=UN("useNavigate"),t=Um("useNavigate"),r=b.useRef(!1);return Nw(()=>{r.current=!0}),b.useCallback(async(a,s={})=>{Yn(r.current,Dw),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var m1={};function zw(e,t,r){!t&&!m1[e]&&(m1[e]=!0,Yn(!1,r))}b.memo(GN);function GN({routes:e,future:t,state:r,unstable_onError:o}){return Lw(e,void 0,r,o,t)}function $N(e){dt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function YN({basename:e="/",children:t=null,location:r,navigationType:o="POP",navigator:a,static:s=!1}){dt(!us(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=b.useMemo(()=>({basename:u,navigator:a,static:s,future:{}}),[u,a,s]);typeof r=="string"&&(r=Ca(r));let{pathname:d="/",search:p="",hash:m="",state:g=null,key:v="default"}=r,S=b.useMemo(()=>{let w=Fr(d,u);return w==null?null:{location:{pathname:w,search:p,hash:m,state:g,key:v},navigationType:o}},[u,d,p,m,g,v,o]);return Yn(S!=null,`<Router basename="${u}"> is not able to match the URL "${d}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:b.createElement(yr.Provider,{value:f},b.createElement(ss.Provider,{children:t,value:S}))}function wU({children:e,location:t}){return NN(Ph(e),t)}function Ph(e,t=[]){let r=[];return b.Children.forEach(e,(o,a)=>{if(!b.isValidElement(o))return;let s=[...t,a];if(o.type===b.Fragment){r.push.apply(r,Ph(o.props.children,s));return}dt(o.type===$N,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dt(!o.props.index||!o.props.children,"An index route cannot have child routes.");let u={id:o.props.id||s.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(u.children=Ph(o.props.children,s)),r.push(u)}),r}var Zu="get",Ju="application/x-www-form-urlencoded";function Uc(e){return e!=null&&typeof e.tagName=="string"}function KN(e){return Uc(e)&&e.tagName.toLowerCase()==="button"}function QN(e){return Uc(e)&&e.tagName.toLowerCase()==="form"}function XN(e){return Uc(e)&&e.tagName.toLowerCase()==="input"}function WN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZN(e,t){return e.button===0&&(!t||t==="_self")&&!WN(e)}function Lh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(a=>[r,a]):[[r,o]])},[]))}function JN(e,t){let r=Lh(e);return t&&t.forEach((o,a)=>{r.has(a)||t.getAll(a).forEach(s=>{r.append(a,s)})}),r}var Fu=null;function eP(){if(Fu===null)try{new FormData(document.createElement("form"),0),Fu=!1}catch{Fu=!0}return Fu}var tP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bp(e){return e!=null&&!tP.has(e)?(Yn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):e}function nP(e,t){let r,o,a,s,u;if(QN(e)){let f=e.getAttribute("action");o=f?Fr(f,t):null,r=e.getAttribute("method")||Zu,a=Bp(e.getAttribute("enctype"))||Ju,s=new FormData(e)}else if(KN(e)||XN(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(o=d?Fr(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Zu,a=Bp(e.getAttribute("formenctype"))||Bp(f.getAttribute("enctype"))||Ju,s=new FormData(f,e),!eP()){let{name:p,type:m,value:g}=e;if(m==="image"){let v=p?`${p}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else p&&s.append(p,g)}}else{if(Uc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Zu,o=null,a=Ju,u=e}return s&&a==="text/plain"&&(u=s,s=void 0),{action:o,method:r.toLowerCase(),encType:a,formData:s,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bm(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rP(e,t,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return o.pathname==="/"?o.pathname=`_root.${r}`:t&&Fr(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function iP(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oP(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aP(e,t,r){let o=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let u=await iP(s,r);return u.links?u.links():[]}return[]}));return cP(o.flat(1).filter(oP).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function g1(e,t,r,o,a,s){let u=(d,p)=>r[p]?d.route.id!==r[p].route.id:!0,f=(d,p)=>r[p].pathname!==d.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==d.params["*"];return s==="assets"?t.filter((d,p)=>u(d,p)||f(d,p)):s==="data"?t.filter((d,p)=>{let m=o.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(u(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let g=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function lP(e,t,{includeHydrateFallback:r}={}){return sP(e.map(o=>{let a=t.routes[o.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function sP(e){return[...new Set(e)]}function uP(e){let t={},r=Object.keys(e).sort();for(let o of r)t[o]=e[o];return t}function cP(e,t){let r=new Set;return new Set(t),e.reduce((o,a)=>{let s=JSON.stringify(uP(a));return r.has(s)||(r.add(s),o.push({key:s,link:a})),o},[])}function Iw(){let e=b.useContext(Ta);return Bm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fP(){let e=b.useContext(jc);return Bm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Hm=b.createContext(void 0);Hm.displayName="FrameworkContext";function jw(){let e=b.useContext(Hm);return Bm(e,"You must render this element inside a <HydratedRouter> element"),e}function dP(e,t){let r=b.useContext(Hm),[o,a]=b.useState(!1),[s,u]=b.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:m,onTouchStart:g}=t,v=b.useRef(null);b.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let x=E=>{E.forEach(O=>{u(O.isIntersecting)})},T=new IntersectionObserver(x,{threshold:.5});return v.current&&T.observe(v.current),()=>{T.disconnect()}}},[e]),b.useEffect(()=>{if(o){let x=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(x)}}},[o]);let S=()=>{a(!0)},w=()=>{a(!1),u(!1)};return r?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Ml(f,S),onBlur:Ml(d,w),onMouseEnter:Ml(p,S),onMouseLeave:Ml(m,w),onTouchStart:Ml(g,S)}]:[!1,v,{}]}function Ml(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function pP({page:e,...t}){let{router:r}=Iw(),o=b.useMemo(()=>Tw(r.routes,e,r.basename),[r.routes,e,r.basename]);return o?b.createElement(mP,{page:e,matches:o,...t}):null}function hP(e){let{manifest:t,routeModules:r}=jw(),[o,a]=b.useState([]);return b.useEffect(()=>{let s=!1;return aP(e,t,r).then(u=>{s||a(u)}),()=>{s=!0}},[e,t,r]),o}function mP({page:e,matches:t,...r}){let o=Ei(),{manifest:a,routeModules:s}=jw(),{basename:u}=Iw(),{loaderData:f,matches:d}=fP(),p=b.useMemo(()=>g1(e,t,d,a,o,"data"),[e,t,d,a,o]),m=b.useMemo(()=>g1(e,t,d,a,o,"assets"),[e,t,d,a,o]),g=b.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let w=new Set,x=!1;if(t.forEach(E=>{let O=a.routes[E.route.id];!O||!O.hasLoader||(!p.some(_=>_.route.id===E.route.id)&&E.route.id in f&&s[E.route.id]?.shouldRevalidate||O.hasClientLoader?x=!0:w.add(E.route.id))}),w.size===0)return[];let T=rP(e,u,"data");return x&&w.size>0&&T.searchParams.set("_routes",t.filter(E=>w.has(E.route.id)).map(E=>E.route.id).join(",")),[T.pathname+T.search]},[u,f,o,a,p,t,e,s]),v=b.useMemo(()=>lP(m,a),[m,a]),S=hP(m);return b.createElement(b.Fragment,null,g.map(w=>b.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),v.map(w=>b.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),S.map(({key:w,link:x})=>b.createElement("link",{key:w,nonce:r.nonce,...x})))}function gP(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Uw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Uw&&(window.__reactRouterVersion="7.8.2")}catch{}function EU({basename:e,children:t,window:r}){let o=b.useRef();o.current==null&&(o.current=iN({window:r,v5Compat:!0}));let a=o.current,[s,u]=b.useState({action:a.action,location:a.location}),f=b.useCallback(d=>{b.startTransition(()=>u(d))},[u]);return b.useLayoutEffect(()=>a.listen(f),[a,f]),b.createElement(YN,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var Bw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hw=b.forwardRef(function({onClick:t,discover:r="render",prefetch:o="none",relative:a,reloadDocument:s,replace:u,state:f,target:d,to:p,preventScrollReset:m,viewTransition:g,...v},S){let{basename:w}=b.useContext(yr),x=typeof p=="string"&&Bw.test(p),T,E=!1;if(typeof p=="string"&&x&&(T=p,Uw))try{let X=new URL(window.location.href),Z=p.startsWith("//")?new URL(X.protocol+p):new URL(p),Q=Fr(Z.pathname,w);Z.origin===X.origin&&Q!=null?p=Q+Z.search+Z.hash:E=!0}catch{Yn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let O=kN(p,{relative:a}),[_,L,P]=dP(o,v),D=SP(p,{replace:u,state:f,target:d,preventScrollReset:m,relative:a,viewTransition:g});function I(X){t&&t(X),X.defaultPrevented||D(X)}let G=b.createElement("a",{...v,...P,href:T||O,onClick:E||s?t:I,ref:gP(S,L),target:d,"data-discover":!x&&r==="render"?"true":void 0});return _&&!x?b.createElement(b.Fragment,null,G,b.createElement(pP,{page:O})):G});Hw.displayName="Link";var yP=b.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:o="",end:a=!1,style:s,to:u,viewTransition:f,children:d,...p},m){let g=cs(u,{relative:p.relative}),v=Ei(),S=b.useContext(jc),{navigator:w,basename:x}=b.useContext(yr),T=S!=null&&TP(g)&&f===!0,E=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,O=v.pathname,_=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(O=O.toLowerCase(),_=_?_.toLowerCase():null,E=E.toLowerCase()),_&&x&&(_=Fr(_,x)||_);const L=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let P=O===E||!a&&O.startsWith(E)&&O.charAt(L)==="/",D=_!=null&&(_===E||!a&&_.startsWith(E)&&_.charAt(E.length)==="/"),I={isActive:P,isPending:D,isTransitioning:T},G=P?t:void 0,X;typeof o=="function"?X=o(I):X=[o,P?"active":null,D?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let Z=typeof s=="function"?s(I):s;return b.createElement(Hw,{...p,"aria-current":G,className:X,ref:m,style:Z,to:u,viewTransition:f},typeof d=="function"?d(I):d)});yP.displayName="NavLink";var vP=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:o,replace:a,state:s,method:u=Zu,action:f,onSubmit:d,relative:p,preventScrollReset:m,viewTransition:g,...v},S)=>{let w=EP(),x=CP(f,{relative:p}),T=u.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&Bw.test(f),O=_=>{if(d&&d(_),_.defaultPrevented)return;_.preventDefault();let L=_.nativeEvent.submitter,P=L?.getAttribute("formmethod")||u;w(L||_.currentTarget,{fetcherKey:t,method:P,navigate:r,replace:a,state:s,relative:p,preventScrollReset:m,viewTransition:g})};return b.createElement("form",{ref:S,method:T,action:x,onSubmit:o?d:O,...v,"data-discover":!E&&e==="render"?"true":void 0})});vP.displayName="Form";function bP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fw(e){let t=b.useContext(Ta);return dt(t,bP(e)),t}function SP(e,{target:t,replace:r,state:o,preventScrollReset:a,relative:s,viewTransition:u}={}){let f=Pw(),d=Ei(),p=cs(e,{relative:s});return b.useCallback(m=>{if(ZN(m,t)){m.preventDefault();let g=r!==void 0?r:Zl(d)===Zl(p);f(e,{replace:g,state:o,preventScrollReset:a,relative:s,viewTransition:u})}},[d,f,p,r,o,t,e,a,s,u])}function CU(e){Yn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(Lh(e)),r=b.useRef(!1),o=Ei(),a=b.useMemo(()=>JN(o.search,r.current?null:t.current),[o.search]),s=Pw(),u=b.useCallback((f,d)=>{const p=Lh(typeof f=="function"?f(new URLSearchParams(a)):f);r.current=!0,s("?"+p,d)},[s,a]);return[a,u]}var xP=0,wP=()=>`__${String(++xP)}__`;function EP(){let{router:e}=Fw("useSubmit"),{basename:t}=b.useContext(yr),r=FN();return b.useCallback(async(o,a={})=>{let{action:s,method:u,encType:f,formData:d,body:p}=nP(o,t);if(a.navigate===!1){let m=a.fetcherKey||wP();await e.fetch(m,r,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||u,formEncType:a.encType||f,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:p,formMethod:a.method||u,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function CP(e,{relative:t}={}){let{basename:r}=b.useContext(yr),o=b.useContext(vr);dt(o,"useFormAction must be used inside a RouteContext");let[a]=o.matches.slice(-1),s={...cs(e||".",{relative:t})},u=Ei();if(e==null){s.search=u.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(g=>g).forEach(g=>f.append("index",g));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Ur([r,s.pathname])),Zl(s)}function TP(e,{relative:t}={}){let r=b.useContext(kw);dt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Fw("useViewTransitionState"),a=cs(e,{relative:t});if(!r.isTransitioning)return!1;let s=Fr(r.currentLocation.pathname,o)||r.currentLocation.pathname,u=Fr(r.nextLocation.pathname,o)||r.nextLocation.pathname;return fc(a.pathname,u)!=null||fc(a.pathname,s)!=null}var RP="Label",qw=b.forwardRef((e,t)=>k.jsx(we.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));qw.displayName=RP;var TU=qw;function Bc(e){const t=e+"CollectionProvider",[r,o]=Gt(t),[a,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=x=>{const{scope:T,children:E}=x,O=Me.useRef(null),_=Me.useRef(new Map).current;return k.jsx(a,{scope:T,itemMap:_,collectionRef:O,children:E})};u.displayName=t;const f=e+"CollectionSlot",d=Qi(f),p=Me.forwardRef((x,T)=>{const{scope:E,children:O}=x,_=s(f,E),L=Le(T,_.collectionRef);return k.jsx(d,{ref:L,children:O})});p.displayName=f;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=Qi(m),S=Me.forwardRef((x,T)=>{const{scope:E,children:O,..._}=x,L=Me.useRef(null),P=Le(T,L),D=s(m,E);return Me.useEffect(()=>(D.itemMap.set(L,{ref:L,..._}),()=>void D.itemMap.delete(L))),k.jsx(v,{[g]:"",ref:P,children:O})});S.displayName=m;function w(x){const T=s(e+"CollectionConsumer",x);return Me.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const _=Array.from(O.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((D,I)=>_.indexOf(D.ref.current)-_.indexOf(I.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:u,Slot:p,ItemSlot:S},w,o]}var OP=b.createContext(void 0);function fs(e){const t=b.useContext(OP);return e||t||"ltr"}var Hp="rovingFocusGroup.onEntryFocus",AP={bubbles:!1,cancelable:!0},ds="RovingFocusGroup",[zh,Vw,MP]=Bc(ds),[_P,Hc]=Gt(ds,[MP]),[kP,DP]=_P(ds),Gw=b.forwardRef((e,t)=>k.jsx(zh.Provider,{scope:e.__scopeRovingFocusGroup,children:k.jsx(zh.Slot,{scope:e.__scopeRovingFocusGroup,children:k.jsx(NP,{...e,ref:t})})}));Gw.displayName=ds;var NP=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...g}=e,v=b.useRef(null),S=Le(t,v),w=fs(s),[x,T]=pr({prop:u,defaultProp:f??null,onChange:d,caller:ds}),[E,O]=b.useState(!1),_=yt(p),L=Vw(r),P=b.useRef(!1),[D,I]=b.useState(0);return b.useEffect(()=>{const G=v.current;if(G)return G.addEventListener(Hp,_),()=>G.removeEventListener(Hp,_)},[_]),k.jsx(kP,{scope:r,orientation:o,dir:w,loop:a,currentTabStopId:x,onItemFocus:b.useCallback(G=>T(G),[T]),onItemShiftTab:b.useCallback(()=>O(!0),[]),onFocusableItemAdd:b.useCallback(()=>I(G=>G+1),[]),onFocusableItemRemove:b.useCallback(()=>I(G=>G-1),[]),children:k.jsx(we.div,{tabIndex:E||D===0?-1:0,"data-orientation":o,...g,ref:S,style:{outline:"none",...e.style},onMouseDown:ge(e.onMouseDown,()=>{P.current=!0}),onFocus:ge(e.onFocus,G=>{const X=!P.current;if(G.target===G.currentTarget&&X&&!E){const Z=new CustomEvent(Hp,AP);if(G.currentTarget.dispatchEvent(Z),!Z.defaultPrevented){const Q=L().filter(z=>z.focusable),W=Q.find(z=>z.active),ue=Q.find(z=>z.id===x),oe=[W,ue,...Q].filter(Boolean).map(z=>z.ref.current);Kw(oe,m)}}P.current=!1}),onBlur:ge(e.onBlur,()=>O(!1))})})}),$w="RovingFocusGroupItem",Yw=b.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:s,children:u,...f}=e,d=Pn(),p=s||d,m=DP($w,r),g=m.currentTabStopId===p,v=Vw(r),{onFocusableItemAdd:S,onFocusableItemRemove:w,currentTabStopId:x}=m;return b.useEffect(()=>{if(o)return S(),()=>w()},[o,S,w]),k.jsx(zh.ItemSlot,{scope:r,id:p,focusable:o,active:a,children:k.jsx(we.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:ge(e.onMouseDown,T=>{o?m.onItemFocus(p):T.preventDefault()}),onFocus:ge(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:ge(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){m.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const E=zP(T,m.orientation,m.dir);if(E!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let _=v().filter(L=>L.focusable).map(L=>L.ref.current);if(E==="last")_.reverse();else if(E==="prev"||E==="next"){E==="prev"&&_.reverse();const L=_.indexOf(T.currentTarget);_=m.loop?IP(_,L+1):_.slice(L+1)}setTimeout(()=>Kw(_))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:x!=null}):u})})});Yw.displayName=$w;var PP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function LP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function zP(e,t,r){const o=LP(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return PP[o]}function Kw(e,t=!1){const r=document.activeElement;for(const o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function IP(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var Qw=Gw,Xw=Yw,Fc="Tabs",[jP,RU]=Gt(Fc,[Hc]),Ww=Hc(),[UP,Fm]=jP(Fc),Zw=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:a,defaultValue:s,orientation:u="horizontal",dir:f,activationMode:d="automatic",...p}=e,m=fs(f),[g,v]=pr({prop:o,onChange:a,defaultProp:s??"",caller:Fc});return k.jsx(UP,{scope:r,baseId:Pn(),value:g,onValueChange:v,orientation:u,dir:m,activationMode:d,children:k.jsx(we.div,{dir:m,"data-orientation":u,...p,ref:t})})});Zw.displayName=Fc;var Jw="TabsList",eE=b.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...a}=e,s=Fm(Jw,r),u=Ww(r);return k.jsx(Qw,{asChild:!0,...u,orientation:s.orientation,dir:s.dir,loop:o,children:k.jsx(we.div,{role:"tablist","aria-orientation":s.orientation,...a,ref:t})})});eE.displayName=Jw;var tE="TabsTrigger",nE=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:a=!1,...s}=e,u=Fm(tE,r),f=Ww(r),d=oE(u.baseId,o),p=aE(u.baseId,o),m=o===u.value;return k.jsx(Xw,{asChild:!0,...f,focusable:!a,active:m,children:k.jsx(we.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...s,ref:t,onMouseDown:ge(e.onMouseDown,g=>{!a&&g.button===0&&g.ctrlKey===!1?u.onValueChange(o):g.preventDefault()}),onKeyDown:ge(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(o)}),onFocus:ge(e.onFocus,()=>{const g=u.activationMode!=="manual";!m&&!a&&g&&u.onValueChange(o)})})})});nE.displayName=tE;var rE="TabsContent",iE=b.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:a,children:s,...u}=e,f=Fm(rE,r),d=oE(f.baseId,o),p=aE(f.baseId,o),m=o===f.value,g=b.useRef(m);return b.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),k.jsx(zt,{present:a||m,children:({present:v})=>k.jsx(we.div,{"data-state":m?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:v&&s})})});iE.displayName=rE;function oE(e,t){return`${e}-trigger-${t}`}function aE(e,t){return`${e}-content-${t}`}var OU=Zw,AU=eE,MU=nE,_U=iE;function lE(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var BP=[" ","Enter","ArrowUp","ArrowDown"],HP=[" ","Enter"],eo="Select",[qc,Vc,FP]=Bc(eo),[Ra,kU]=Gt(eo,[FP,Ea]),Gc=Ea(),[qP,Ci]=Ra(eo),[VP,GP]=Ra(eo),sE=e=>{const{__scopeSelect:t,children:r,open:o,defaultOpen:a,onOpenChange:s,value:u,defaultValue:f,onValueChange:d,dir:p,name:m,autoComplete:g,disabled:v,required:S,form:w}=e,x=Gc(t),[T,E]=b.useState(null),[O,_]=b.useState(null),[L,P]=b.useState(!1),D=fs(p),[I,G]=pr({prop:o,defaultProp:a??!1,onChange:s,caller:eo}),[X,Z]=pr({prop:u,defaultProp:f,onChange:d,caller:eo}),Q=b.useRef(null),W=T?w||!!T.closest("form"):!0,[ue,F]=b.useState(new Set),oe=Array.from(ue).map(z=>z.props.value).join(";");return k.jsx(Cm,{...x,children:k.jsxs(qP,{required:S,scope:t,trigger:T,onTriggerChange:E,valueNode:O,onValueNodeChange:_,valueNodeHasChildren:L,onValueNodeHasChildrenChange:P,contentId:Pn(),value:X,onValueChange:Z,open:I,onOpenChange:G,dir:D,triggerPointerDownPosRef:Q,disabled:v,children:[k.jsx(qc.Provider,{scope:t,children:k.jsx(VP,{scope:e.__scopeSelect,onNativeOptionAdd:b.useCallback(z=>{F(K=>new Set(K).add(z))},[]),onNativeOptionRemove:b.useCallback(z=>{F(K=>{const ee=new Set(K);return ee.delete(z),ee})},[]),children:r})}),W?k.jsxs(NE,{"aria-hidden":!0,required:S,tabIndex:-1,name:m,autoComplete:g,value:X,onChange:z=>Z(z.target.value),disabled:v,form:w,children:[X===void 0?k.jsx("option",{value:""}):null,Array.from(ue)]},oe):null]})})};sE.displayName=eo;var uE="SelectTrigger",cE=b.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:o=!1,...a}=e,s=Gc(r),u=Ci(uE,r),f=u.disabled||o,d=Le(t,u.onTriggerChange),p=Vc(r),m=b.useRef("touch"),[g,v,S]=LE(x=>{const T=p().filter(_=>!_.disabled),E=T.find(_=>_.value===u.value),O=zE(T,x,E);O!==void 0&&u.onValueChange(O.value)}),w=x=>{f||(u.onOpenChange(!0),S()),x&&(u.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return k.jsx(Tm,{asChild:!0,...s,children:k.jsx(we.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":PE(u.value)?"":void 0,...a,ref:d,onClick:ge(a.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&w(x)}),onPointerDown:ge(a.onPointerDown,x=>{m.current=x.pointerType;const T=x.target;T.hasPointerCapture(x.pointerId)&&T.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(w(x),x.preventDefault())}),onKeyDown:ge(a.onKeyDown,x=>{const T=g.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&v(x.key),!(T&&x.key===" ")&&BP.includes(x.key)&&(w(),x.preventDefault())})})})});cE.displayName=uE;var fE="SelectValue",dE=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:a,children:s,placeholder:u="",...f}=e,d=Ci(fE,r),{onValueNodeHasChildrenChange:p}=d,m=s!==void 0,g=Le(t,d.onValueNodeChange);return vt(()=>{p(m)},[p,m]),k.jsx(we.span,{...f,ref:g,style:{pointerEvents:"none"},children:PE(d.value)?k.jsx(k.Fragment,{children:u}):s})});dE.displayName=fE;var $P="SelectIcon",pE=b.forwardRef((e,t)=>{const{__scopeSelect:r,children:o,...a}=e;return k.jsx(we.span,{"aria-hidden":!0,...a,ref:t,children:o||"▼"})});pE.displayName=$P;var YP="SelectPortal",hE=e=>k.jsx(Sa,{asChild:!0,...e});hE.displayName=YP;var to="SelectContent",mE=b.forwardRef((e,t)=>{const r=Ci(to,e.__scopeSelect),[o,a]=b.useState();if(vt(()=>{a(new DocumentFragment)},[]),!r.open){const s=o;return s?fr.createPortal(k.jsx(gE,{scope:e.__scopeSelect,children:k.jsx(qc.Slot,{scope:e.__scopeSelect,children:k.jsx("div",{children:e.children})})}),s):null}return k.jsx(yE,{...e,ref:t})});mE.displayName=to;var Hn=10,[gE,Ti]=Ra(to),KP="SelectContentImpl",QP=Qi("SelectContent.RemoveScroll"),yE=b.forwardRef((e,t)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:u,side:f,sideOffset:d,align:p,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:S,sticky:w,hideWhenDetached:x,avoidCollisions:T,...E}=e,O=Ci(to,r),[_,L]=b.useState(null),[P,D]=b.useState(null),I=Le(t,Y=>L(Y)),[G,X]=b.useState(null),[Z,Q]=b.useState(null),W=Vc(r),[ue,F]=b.useState(!1),oe=b.useRef(!1);b.useEffect(()=>{if(_)return dm(_)},[_]),fm();const z=b.useCallback(Y=>{const[ce,...Ee]=W().map(Fe=>Fe.ref.current),[Ce]=Ee.slice(-1),Ne=document.activeElement;for(const Fe of Y)if(Fe===Ne||(Fe?.scrollIntoView({block:"nearest"}),Fe===ce&&P&&(P.scrollTop=0),Fe===Ce&&P&&(P.scrollTop=P.scrollHeight),Fe?.focus(),document.activeElement!==Ne))return},[W,P]),K=b.useCallback(()=>z([G,_]),[z,G,_]);b.useEffect(()=>{ue&&K()},[ue,K]);const{onOpenChange:ee,triggerPointerDownPosRef:le}=O;b.useEffect(()=>{if(_){let Y={x:0,y:0};const ce=Ce=>{Y={x:Math.abs(Math.round(Ce.pageX)-(le.current?.x??0)),y:Math.abs(Math.round(Ce.pageY)-(le.current?.y??0))}},Ee=Ce=>{Y.x<=10&&Y.y<=10?Ce.preventDefault():_.contains(Ce.target)||ee(!1),document.removeEventListener("pointermove",ce),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",Ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",Ee,{capture:!0})}}},[_,ee,le]),b.useEffect(()=>{const Y=()=>ee(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[ee]);const[R,$]=LE(Y=>{const ce=W().filter(Ne=>!Ne.disabled),Ee=ce.find(Ne=>Ne.ref.current===document.activeElement),Ce=zE(ce,Y,Ee);Ce&&setTimeout(()=>Ce.ref.current.focus())}),fe=b.useCallback((Y,ce,Ee)=>{const Ce=!oe.current&&!Ee;(O.value!==void 0&&O.value===ce||Ce)&&(X(Y),Ce&&(oe.current=!0))},[O.value]),A=b.useCallback(()=>_?.focus(),[_]),te=b.useCallback((Y,ce,Ee)=>{const Ce=!oe.current&&!Ee;(O.value!==void 0&&O.value===ce||Ce)&&Q(Y)},[O.value]),he=o==="popper"?Ih:vE,ie=he===Ih?{side:f,sideOffset:d,align:p,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:S,sticky:w,hideWhenDetached:x,avoidCollisions:T}:{};return k.jsx(gE,{scope:r,content:_,viewport:P,onViewportChange:D,itemRefCallback:fe,selectedItem:G,onItemLeave:A,itemTextRefCallback:te,focusSelectedItem:K,selectedItemText:Z,position:o,isPositioned:ue,searchRef:R,children:k.jsx(Mc,{as:QP,allowPinchZoom:!0,children:k.jsx(Oc,{asChild:!0,trapped:O.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:ge(a,Y=>{O.trigger?.focus({preventScroll:!0}),Y.preventDefault()}),children:k.jsx(ba,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:k.jsx(he,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:Y=>Y.preventDefault(),...E,...ie,onPlaced:()=>F(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:ge(E.onKeyDown,Y=>{const ce=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!ce&&Y.key.length===1&&$(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let Ce=W().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(Ce=Ce.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const Ne=Y.target,Fe=Ce.indexOf(Ne);Ce=Ce.slice(Fe+1)}setTimeout(()=>z(Ce)),Y.preventDefault()}})})})})})})});yE.displayName=KP;var XP="SelectItemAlignedPosition",vE=b.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:o,...a}=e,s=Ci(to,r),u=Ti(to,r),[f,d]=b.useState(null),[p,m]=b.useState(null),g=Le(t,I=>m(I)),v=Vc(r),S=b.useRef(!1),w=b.useRef(!0),{viewport:x,selectedItem:T,selectedItemText:E,focusSelectedItem:O}=u,_=b.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&p&&x&&T&&E){const I=s.trigger.getBoundingClientRect(),G=p.getBoundingClientRect(),X=s.valueNode.getBoundingClientRect(),Z=E.getBoundingClientRect();if(s.dir!=="rtl"){const Ne=Z.left-G.left,Fe=X.left-Ne,ze=I.left-Fe,st=I.width+ze,Yt=Math.max(st,G.width),on=window.innerWidth-Hn,bt=vh(Fe,[Hn,Math.max(Hn,on-Yt)]);f.style.minWidth=st+"px",f.style.left=bt+"px"}else{const Ne=G.right-Z.right,Fe=window.innerWidth-X.right-Ne,ze=window.innerWidth-I.right-Fe,st=I.width+ze,Yt=Math.max(st,G.width),on=window.innerWidth-Hn,bt=vh(Fe,[Hn,Math.max(Hn,on-Yt)]);f.style.minWidth=st+"px",f.style.right=bt+"px"}const Q=v(),W=window.innerHeight-Hn*2,ue=x.scrollHeight,F=window.getComputedStyle(p),oe=parseInt(F.borderTopWidth,10),z=parseInt(F.paddingTop,10),K=parseInt(F.borderBottomWidth,10),ee=parseInt(F.paddingBottom,10),le=oe+z+ue+ee+K,R=Math.min(T.offsetHeight*5,le),$=window.getComputedStyle(x),fe=parseInt($.paddingTop,10),A=parseInt($.paddingBottom,10),te=I.top+I.height/2-Hn,he=W-te,ie=T.offsetHeight/2,Y=T.offsetTop+ie,ce=oe+z+Y,Ee=le-ce;if(ce<=te){const Ne=Q.length>0&&T===Q[Q.length-1].ref.current;f.style.bottom="0px";const Fe=p.clientHeight-x.offsetTop-x.offsetHeight,ze=Math.max(he,ie+(Ne?A:0)+Fe+K),st=ce+ze;f.style.height=st+"px"}else{const Ne=Q.length>0&&T===Q[0].ref.current;f.style.top="0px";const ze=Math.max(te,oe+x.offsetTop+(Ne?fe:0)+ie)+Ee;f.style.height=ze+"px",x.scrollTop=ce-te+x.offsetTop}f.style.margin=`${Hn}px 0`,f.style.minHeight=R+"px",f.style.maxHeight=W+"px",o?.(),requestAnimationFrame(()=>S.current=!0)}},[v,s.trigger,s.valueNode,f,p,x,T,E,s.dir,o]);vt(()=>_(),[_]);const[L,P]=b.useState();vt(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);const D=b.useCallback(I=>{I&&w.current===!0&&(_(),O?.(),w.current=!1)},[_,O]);return k.jsx(ZP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:S,onScrollButtonChange:D,children:k.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:k.jsx(we.div,{...a,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});vE.displayName=XP;var WP="SelectPopperPosition",Ih=b.forwardRef((e,t)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=Hn,...s}=e,u=Gc(r);return k.jsx(Rm,{...u,...s,ref:t,align:o,collisionPadding:a,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ih.displayName=WP;var[ZP,qm]=Ra(to,{}),jh="SelectViewport",bE=b.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:o,...a}=e,s=Ti(jh,r),u=qm(jh,r),f=Le(t,s.onViewportChange),d=b.useRef(0);return k.jsxs(k.Fragment,{children:[k.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),k.jsx(qc.Slot,{scope:r,children:k.jsx(we.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ge(a.onScroll,p=>{const m=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=u;if(v?.current&&g){const S=Math.abs(d.current-m.scrollTop);if(S>0){const w=window.innerHeight-Hn*2,x=parseFloat(g.style.minHeight),T=parseFloat(g.style.height),E=Math.max(x,T);if(E<w){const O=E+S,_=Math.min(w,O),L=O-_;g.style.height=_+"px",g.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,g.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});bE.displayName=jh;var SE="SelectGroup",[JP,eL]=Ra(SE),xE=b.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=Pn();return k.jsx(JP,{scope:r,id:a,children:k.jsx(we.div,{role:"group","aria-labelledby":a,...o,ref:t})})});xE.displayName=SE;var wE="SelectLabel",EE=b.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=eL(wE,r);return k.jsx(we.div,{id:a.id,...o,ref:t})});EE.displayName=wE;var dc="SelectItem",[tL,CE]=Ra(dc),TE=b.forwardRef((e,t)=>{const{__scopeSelect:r,value:o,disabled:a=!1,textValue:s,...u}=e,f=Ci(dc,r),d=Ti(dc,r),p=f.value===o,[m,g]=b.useState(s??""),[v,S]=b.useState(!1),w=Le(t,O=>d.itemRefCallback?.(O,o,a)),x=Pn(),T=b.useRef("touch"),E=()=>{a||(f.onValueChange(o),f.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return k.jsx(tL,{scope:r,value:o,disabled:a,textId:x,isSelected:p,onItemTextChange:b.useCallback(O=>{g(_=>_||(O?.textContent??"").trim())},[]),children:k.jsx(qc.ItemSlot,{scope:r,value:o,disabled:a,textValue:m,children:k.jsx(we.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":p&&v,"data-state":p?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:w,onFocus:ge(u.onFocus,()=>S(!0)),onBlur:ge(u.onBlur,()=>S(!1)),onClick:ge(u.onClick,()=>{T.current!=="mouse"&&E()}),onPointerUp:ge(u.onPointerUp,()=>{T.current==="mouse"&&E()}),onPointerDown:ge(u.onPointerDown,O=>{T.current=O.pointerType}),onPointerMove:ge(u.onPointerMove,O=>{T.current=O.pointerType,a?d.onItemLeave?.():T.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ge(u.onPointerLeave,O=>{O.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:ge(u.onKeyDown,O=>{d.searchRef?.current!==""&&O.key===" "||(HP.includes(O.key)&&E(),O.key===" "&&O.preventDefault())})})})})});TE.displayName=dc;var Ul="SelectItemText",RE=b.forwardRef((e,t)=>{const{__scopeSelect:r,className:o,style:a,...s}=e,u=Ci(Ul,r),f=Ti(Ul,r),d=CE(Ul,r),p=GP(Ul,r),[m,g]=b.useState(null),v=Le(t,E=>g(E),d.onItemTextChange,E=>f.itemTextRefCallback?.(E,d.value,d.disabled)),S=m?.textContent,w=b.useMemo(()=>k.jsx("option",{value:d.value,disabled:d.disabled,children:S},d.value),[d.disabled,d.value,S]),{onNativeOptionAdd:x,onNativeOptionRemove:T}=p;return vt(()=>(x(w),()=>T(w)),[x,T,w]),k.jsxs(k.Fragment,{children:[k.jsx(we.span,{id:d.textId,...s,ref:v}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?fr.createPortal(s.children,u.valueNode):null]})});RE.displayName=Ul;var OE="SelectItemIndicator",AE=b.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return CE(OE,r).isSelected?k.jsx(we.span,{"aria-hidden":!0,...o,ref:t}):null});AE.displayName=OE;var Uh="SelectScrollUpButton",ME=b.forwardRef((e,t)=>{const r=Ti(Uh,e.__scopeSelect),o=qm(Uh,e.__scopeSelect),[a,s]=b.useState(!1),u=Le(t,o.onScrollButtonChange);return vt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const p=d.scrollTop>0;s(p)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?k.jsx(kE,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});ME.displayName=Uh;var Bh="SelectScrollDownButton",_E=b.forwardRef((e,t)=>{const r=Ti(Bh,e.__scopeSelect),o=qm(Bh,e.__scopeSelect),[a,s]=b.useState(!1),u=Le(t,o.onScrollButtonChange);return vt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const p=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<p;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?k.jsx(kE,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});_E.displayName=Bh;var kE=b.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:o,...a}=e,s=Ti("SelectScrollButton",r),u=b.useRef(null),f=Vc(r),d=b.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return b.useEffect(()=>()=>d(),[d]),vt(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),k.jsx(we.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ge(a.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(o,50))}),onPointerMove:ge(a.onPointerMove,()=>{s.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(o,50))}),onPointerLeave:ge(a.onPointerLeave,()=>{d()})})}),nL="SelectSeparator",DE=b.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e;return k.jsx(we.div,{"aria-hidden":!0,...o,ref:t})});DE.displayName=nL;var Hh="SelectArrow",rL=b.forwardRef((e,t)=>{const{__scopeSelect:r,...o}=e,a=Gc(r),s=Ci(Hh,r),u=Ti(Hh,r);return s.open&&u.position==="popper"?k.jsx(Om,{...a,...o,ref:t}):null});rL.displayName=Hh;var iL="SelectBubbleInput",NE=b.forwardRef(({__scopeSelect:e,value:t,...r},o)=>{const a=b.useRef(null),s=Le(o,a),u=lE(t);return b.useEffect(()=>{const f=a.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(u!==t&&m){const g=new Event("change",{bubbles:!0});m.call(f,t),f.dispatchEvent(g)}},[u,t]),k.jsx(we.select,{...r,style:{...Jx,...r.style},ref:s,defaultValue:t})});NE.displayName=iL;function PE(e){return e===""||e===void 0}function LE(e){const t=yt(e),r=b.useRef(""),o=b.useRef(0),a=b.useCallback(u=>{const f=r.current+u;t(f),function d(p){r.current=p,window.clearTimeout(o.current),p!==""&&(o.current=window.setTimeout(()=>d(""),1e3))}(f)},[t]),s=b.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,a,s]}function zE(e,t,r){const a=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let u=oL(e,Math.max(s,0));a.length===1&&(u=u.filter(p=>p!==r));const d=u.find(p=>p.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==r?d:void 0}function oL(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var DU=sE,NU=cE,PU=dE,LU=pE,zU=hE,IU=mE,jU=bE,UU=xE,BU=EE,HU=TE,FU=RE,qU=AE,VU=ME,GU=_E,$U=DE,Fh=["Enter"," "],aL=["ArrowDown","PageUp","Home"],IE=["ArrowUp","PageDown","End"],lL=[...aL,...IE],sL={ltr:[...Fh,"ArrowRight"],rtl:[...Fh,"ArrowLeft"]},uL={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ps="Menu",[Jl,cL,fL]=Bc(ps),[oo,jE]=Gt(ps,[fL,Ea,Hc]),$c=Ea(),UE=Hc(),[dL,ao]=oo(ps),[pL,hs]=oo(ps),BE=e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:a,onOpenChange:s,modal:u=!0}=e,f=$c(t),[d,p]=b.useState(null),m=b.useRef(!1),g=yt(s),v=fs(a);return b.useEffect(()=>{const S=()=>{m.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener("keydown",S,{capture:!0}),()=>{document.removeEventListener("keydown",S,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),k.jsx(Cm,{...f,children:k.jsx(dL,{scope:t,open:r,onOpenChange:g,content:d,onContentChange:p,children:k.jsx(pL,{scope:t,onClose:b.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:u,children:o})})})};BE.displayName=ps;var hL="MenuAnchor",Vm=b.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,a=$c(r);return k.jsx(Tm,{...a,...o,ref:t})});Vm.displayName=hL;var Gm="MenuPortal",[mL,HE]=oo(Gm,{forceMount:void 0}),FE=e=>{const{__scopeMenu:t,forceMount:r,children:o,container:a}=e,s=ao(Gm,t);return k.jsx(mL,{scope:t,forceMount:r,children:k.jsx(zt,{present:r||s.open,children:k.jsx(Sa,{asChild:!0,container:a,children:o})})})};FE.displayName=Gm;var Ln="MenuContent",[gL,$m]=oo(Ln),qE=b.forwardRef((e,t)=>{const r=HE(Ln,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,s=ao(Ln,e.__scopeMenu),u=hs(Ln,e.__scopeMenu);return k.jsx(Jl.Provider,{scope:e.__scopeMenu,children:k.jsx(zt,{present:o||s.open,children:k.jsx(Jl.Slot,{scope:e.__scopeMenu,children:u.modal?k.jsx(yL,{...a,ref:t}):k.jsx(vL,{...a,ref:t})})})})}),yL=b.forwardRef((e,t)=>{const r=ao(Ln,e.__scopeMenu),o=b.useRef(null),a=Le(t,o);return b.useEffect(()=>{const s=o.current;if(s)return dm(s)},[]),k.jsx(Ym,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ge(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),vL=b.forwardRef((e,t)=>{const r=ao(Ln,e.__scopeMenu);return k.jsx(Ym,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),bL=Qi("MenuContent.ScrollLock"),Ym=b.forwardRef((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:S,disableOutsideScroll:w,...x}=e,T=ao(Ln,r),E=hs(Ln,r),O=$c(r),_=UE(r),L=cL(r),[P,D]=b.useState(null),I=b.useRef(null),G=Le(t,I,T.onContentChange),X=b.useRef(0),Z=b.useRef(""),Q=b.useRef(0),W=b.useRef(null),ue=b.useRef("right"),F=b.useRef(0),oe=w?Mc:b.Fragment,z=w?{as:bL,allowPinchZoom:!0}:void 0,K=le=>{const R=Z.current+le,$=L().filter(Y=>!Y.disabled),fe=document.activeElement,A=$.find(Y=>Y.ref.current===fe)?.textValue,te=$.map(Y=>Y.textValue),he=kL(te,R,A),ie=$.find(Y=>Y.textValue===he)?.ref.current;(function Y(ce){Z.current=ce,window.clearTimeout(X.current),ce!==""&&(X.current=window.setTimeout(()=>Y(""),1e3))})(R),ie&&setTimeout(()=>ie.focus())};b.useEffect(()=>()=>window.clearTimeout(X.current),[]),fm();const ee=b.useCallback(le=>ue.current===W.current?.side&&NL(le,W.current?.area),[]);return k.jsx(gL,{scope:r,searchRef:Z,onItemEnter:b.useCallback(le=>{ee(le)&&le.preventDefault()},[ee]),onItemLeave:b.useCallback(le=>{ee(le)||(I.current?.focus(),D(null))},[ee]),onTriggerLeave:b.useCallback(le=>{ee(le)&&le.preventDefault()},[ee]),pointerGraceTimerRef:Q,onPointerGraceIntentChange:b.useCallback(le=>{W.current=le},[]),children:k.jsx(oe,{...z,children:k.jsx(Oc,{asChild:!0,trapped:a,onMountAutoFocus:ge(s,le=>{le.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:k.jsx(ba,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:S,children:k.jsx(Qw,{asChild:!0,..._,dir:E.dir,orientation:"vertical",loop:o,currentTabStopId:P,onCurrentTabStopIdChange:D,onEntryFocus:ge(d,le=>{E.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:k.jsx(Rm,{role:"menu","aria-orientation":"vertical","data-state":oC(T.open),"data-radix-menu-content":"",dir:E.dir,...O,...x,ref:G,style:{outline:"none",...x.style},onKeyDown:ge(x.onKeyDown,le=>{const $=le.target.closest("[data-radix-menu-content]")===le.currentTarget,fe=le.ctrlKey||le.altKey||le.metaKey,A=le.key.length===1;$&&(le.key==="Tab"&&le.preventDefault(),!fe&&A&&K(le.key));const te=I.current;if(le.target!==te||!lL.includes(le.key))return;le.preventDefault();const ie=L().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);IE.includes(le.key)&&ie.reverse(),ML(ie)}),onBlur:ge(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(X.current),Z.current="")}),onPointerMove:ge(e.onPointerMove,es(le=>{const R=le.target,$=F.current!==le.clientX;if(le.currentTarget.contains(R)&&$){const fe=le.clientX>F.current?"right":"left";ue.current=fe,F.current=le.clientX}}))})})})})})})});qE.displayName=Ln;var SL="MenuGroup",Km=b.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return k.jsx(we.div,{role:"group",...o,ref:t})});Km.displayName=SL;var xL="MenuLabel",VE=b.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return k.jsx(we.div,{...o,ref:t})});VE.displayName=xL;var pc="MenuItem",y1="menu.itemSelect",Yc=b.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:o,...a}=e,s=b.useRef(null),u=hs(pc,e.__scopeMenu),f=$m(pc,e.__scopeMenu),d=Le(t,s),p=b.useRef(!1),m=()=>{const g=s.current;if(!r&&g){const v=new CustomEvent(y1,{bubbles:!0,cancelable:!0});g.addEventListener(y1,S=>o?.(S),{once:!0}),cm(g,v),v.defaultPrevented?p.current=!1:u.onClose()}};return k.jsx(GE,{...a,ref:d,disabled:r,onClick:ge(e.onClick,m),onPointerDown:g=>{e.onPointerDown?.(g),p.current=!0},onPointerUp:ge(e.onPointerUp,g=>{p.current||g.currentTarget?.click()}),onKeyDown:ge(e.onKeyDown,g=>{const v=f.searchRef.current!=="";r||v&&g.key===" "||Fh.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});Yc.displayName=pc;var GE=b.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:a,...s}=e,u=$m(pc,r),f=UE(r),d=b.useRef(null),p=Le(t,d),[m,g]=b.useState(!1),[v,S]=b.useState("");return b.useEffect(()=>{const w=d.current;w&&S((w.textContent??"").trim())},[s.children]),k.jsx(Jl.ItemSlot,{scope:r,disabled:o,textValue:a??v,children:k.jsx(Xw,{asChild:!0,...f,focusable:!o,children:k.jsx(we.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:ge(e.onPointerMove,es(w=>{o?u.onItemLeave(w):(u.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ge(e.onPointerLeave,es(w=>u.onItemLeave(w))),onFocus:ge(e.onFocus,()=>g(!0)),onBlur:ge(e.onBlur,()=>g(!1))})})})}),wL="MenuCheckboxItem",$E=b.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return k.jsx(WE,{scope:e.__scopeMenu,checked:r,children:k.jsx(Yc,{role:"menuitemcheckbox","aria-checked":hc(r)?"mixed":r,...a,ref:t,"data-state":Xm(r),onSelect:ge(a.onSelect,()=>o?.(hc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});$E.displayName=wL;var YE="MenuRadioGroup",[EL,CL]=oo(YE,{value:void 0,onValueChange:()=>{}}),KE=b.forwardRef((e,t)=>{const{value:r,onValueChange:o,...a}=e,s=yt(o);return k.jsx(EL,{scope:e.__scopeMenu,value:r,onValueChange:s,children:k.jsx(Km,{...a,ref:t})})});KE.displayName=YE;var QE="MenuRadioItem",XE=b.forwardRef((e,t)=>{const{value:r,...o}=e,a=CL(QE,e.__scopeMenu),s=r===a.value;return k.jsx(WE,{scope:e.__scopeMenu,checked:s,children:k.jsx(Yc,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Xm(s),onSelect:ge(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});XE.displayName=QE;var Qm="MenuItemIndicator",[WE,TL]=oo(Qm,{checked:!1}),ZE=b.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:o,...a}=e,s=TL(Qm,r);return k.jsx(zt,{present:o||hc(s.checked)||s.checked===!0,children:k.jsx(we.span,{...a,ref:t,"data-state":Xm(s.checked)})})});ZE.displayName=Qm;var RL="MenuSeparator",JE=b.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e;return k.jsx(we.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});JE.displayName=RL;var OL="MenuArrow",eC=b.forwardRef((e,t)=>{const{__scopeMenu:r,...o}=e,a=$c(r);return k.jsx(Om,{...a,...o,ref:t})});eC.displayName=OL;var AL="MenuSub",[YU,tC]=oo(AL),Bl="MenuSubTrigger",nC=b.forwardRef((e,t)=>{const r=ao(Bl,e.__scopeMenu),o=hs(Bl,e.__scopeMenu),a=tC(Bl,e.__scopeMenu),s=$m(Bl,e.__scopeMenu),u=b.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,p={__scopeMenu:e.__scopeMenu},m=b.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return b.useEffect(()=>m,[m]),b.useEffect(()=>{const g=f.current;return()=>{window.clearTimeout(g),d(null)}},[f,d]),k.jsx(Vm,{asChild:!0,...p,children:k.jsx(GE,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":oC(r.open),...e,ref:Rc(t,a.onTriggerChange),onClick:g=>{e.onClick?.(g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ge(e.onPointerMove,es(g=>{s.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:ge(e.onPointerLeave,es(g=>{m();const v=r.content?.getBoundingClientRect();if(v){const S=r.content?.dataset.side,w=S==="right",x=w?-5:5,T=v[w?"left":"right"],E=v[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+x,y:g.clientY},{x:T,y:v.top},{x:E,y:v.top},{x:E,y:v.bottom},{x:T,y:v.bottom}],side:S}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:ge(e.onKeyDown,g=>{const v=s.searchRef.current!=="";e.disabled||v&&g.key===" "||sL[o.dir].includes(g.key)&&(r.onOpenChange(!0),r.content?.focus(),g.preventDefault())})})})});nC.displayName=Bl;var rC="MenuSubContent",iC=b.forwardRef((e,t)=>{const r=HE(Ln,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,s=ao(Ln,e.__scopeMenu),u=hs(Ln,e.__scopeMenu),f=tC(rC,e.__scopeMenu),d=b.useRef(null),p=Le(t,d);return k.jsx(Jl.Provider,{scope:e.__scopeMenu,children:k.jsx(zt,{present:o||s.open,children:k.jsx(Jl.Slot,{scope:e.__scopeMenu,children:k.jsx(Ym,{id:f.contentId,"aria-labelledby":f.triggerId,...a,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{u.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ge(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:ge(e.onEscapeKeyDown,m=>{u.onClose(),m.preventDefault()}),onKeyDown:ge(e.onKeyDown,m=>{const g=m.currentTarget.contains(m.target),v=uL[u.dir].includes(m.key);g&&v&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});iC.displayName=rC;function oC(e){return e?"open":"closed"}function hc(e){return e==="indeterminate"}function Xm(e){return hc(e)?"indeterminate":e?"checked":"unchecked"}function ML(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function _L(e,t){return e.map((r,o)=>e[(t+o)%e.length])}function kL(e,t,r){const a=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let u=_L(e,Math.max(s,0));a.length===1&&(u=u.filter(p=>p!==r));const d=u.find(p=>p.toLowerCase().startsWith(a.toLowerCase()));return d!==r?d:void 0}function DL(e,t){const{x:r,y:o}=e;let a=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const f=t[s],d=t[u],p=f.x,m=f.y,g=d.x,v=d.y;m>o!=v>o&&r<(g-p)*(o-m)/(v-m)+p&&(a=!a)}return a}function NL(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return DL(r,t)}function es(e){return t=>t.pointerType==="mouse"?e(t):void 0}var PL=BE,LL=Vm,zL=FE,IL=qE,jL=Km,UL=VE,BL=Yc,HL=$E,FL=KE,qL=XE,VL=ZE,GL=JE,$L=eC,YL=nC,KL=iC,Kc="DropdownMenu",[QL,KU]=Gt(Kc,[jE]),$t=jE(),[XL,aC]=QL(Kc),lC=e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:a,defaultOpen:s,onOpenChange:u,modal:f=!0}=e,d=$t(t),p=b.useRef(null),[m,g]=pr({prop:a,defaultProp:s??!1,onChange:u,caller:Kc});return k.jsx(XL,{scope:t,triggerId:Pn(),triggerRef:p,contentId:Pn(),open:m,onOpenChange:g,onOpenToggle:b.useCallback(()=>g(v=>!v),[g]),modal:f,children:k.jsx(PL,{...d,open:m,onOpenChange:g,dir:o,modal:f,children:r})})};lC.displayName=Kc;var sC="DropdownMenuTrigger",uC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...a}=e,s=aC(sC,r),u=$t(r);return k.jsx(LL,{asChild:!0,...u,children:k.jsx(we.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:Rc(t,s.triggerRef),onPointerDown:ge(e.onPointerDown,f=>{!o&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:ge(e.onKeyDown,f=>{o||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});uC.displayName=sC;var WL="DropdownMenuPortal",cC=e=>{const{__scopeDropdownMenu:t,...r}=e,o=$t(t);return k.jsx(zL,{...o,...r})};cC.displayName=WL;var fC="DropdownMenuContent",dC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=aC(fC,r),s=$t(r),u=b.useRef(!1);return k.jsx(IL,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...o,ref:t,onCloseAutoFocus:ge(e.onCloseAutoFocus,f=>{u.current||a.triggerRef.current?.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:ge(e.onInteractOutside,f=>{const d=f.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,m=d.button===2||p;(!a.modal||m)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});dC.displayName=fC;var ZL="DropdownMenuGroup",JL=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(jL,{...a,...o,ref:t})});JL.displayName=ZL;var e3="DropdownMenuLabel",pC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(UL,{...a,...o,ref:t})});pC.displayName=e3;var t3="DropdownMenuItem",hC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(BL,{...a,...o,ref:t})});hC.displayName=t3;var n3="DropdownMenuCheckboxItem",r3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(HL,{...a,...o,ref:t})});r3.displayName=n3;var i3="DropdownMenuRadioGroup",o3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(FL,{...a,...o,ref:t})});o3.displayName=i3;var a3="DropdownMenuRadioItem",l3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(qL,{...a,...o,ref:t})});l3.displayName=a3;var s3="DropdownMenuItemIndicator",u3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(VL,{...a,...o,ref:t})});u3.displayName=s3;var c3="DropdownMenuSeparator",mC=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(GL,{...a,...o,ref:t})});mC.displayName=c3;var f3="DropdownMenuArrow",d3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx($L,{...a,...o,ref:t})});d3.displayName=f3;var p3="DropdownMenuSubTrigger",h3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(YL,{...a,...o,ref:t})});h3.displayName=p3;var m3="DropdownMenuSubContent",g3=b.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,a=$t(r);return k.jsx(KL,{...a,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});g3.displayName=m3;var QU=lC,XU=uC,WU=cC,ZU=dC,JU=pC,eB=hC,tB=mC,gC="AlertDialog",[y3,nB]=Gt(gC,[px]),Vr=px(),yC=e=>{const{__scopeAlertDialog:t,...r}=e,o=Vr(t);return k.jsx(F_,{...o,...r,modal:!0})};yC.displayName=gC;var v3="AlertDialogTrigger",b3=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,a=Vr(r);return k.jsx(q_,{...a,...o,ref:t})});b3.displayName=v3;var S3="AlertDialogPortal",vC=e=>{const{__scopeAlertDialog:t,...r}=e,o=Vr(t);return k.jsx(V_,{...o,...r})};vC.displayName=S3;var x3="AlertDialogOverlay",bC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,a=Vr(r);return k.jsx(G_,{...a,...o,ref:t})});bC.displayName=x3;var sa="AlertDialogContent",[w3,E3]=y3(sa),C3=ZS("AlertDialogContent"),SC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:o,...a}=e,s=Vr(r),u=b.useRef(null),f=Le(t,u),d=b.useRef(null);return k.jsx(j_,{contentName:sa,titleName:xC,docsSlug:"alert-dialog",children:k.jsx(w3,{scope:r,cancelRef:d,children:k.jsxs($_,{role:"alertdialog",...s,...a,ref:f,onOpenAutoFocus:ge(a.onOpenAutoFocus,p=>{p.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[k.jsx(C3,{children:o}),k.jsx(R3,{contentRef:u})]})})})});SC.displayName=sa;var xC="AlertDialogTitle",wC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,a=Vr(r);return k.jsx(Y_,{...a,...o,ref:t})});wC.displayName=xC;var EC="AlertDialogDescription",CC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,a=Vr(r);return k.jsx(K_,{...a,...o,ref:t})});CC.displayName=EC;var T3="AlertDialogAction",TC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,a=Vr(r);return k.jsx(Mx,{...a,...o,ref:t})});TC.displayName=T3;var RC="AlertDialogCancel",OC=b.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...o}=e,{cancelRef:a}=E3(RC,r),s=Vr(r),u=Le(t,a);return k.jsx(Mx,{...s,...o,ref:u})});OC.displayName=RC;var R3=({contentRef:e})=>{const t=`\`${sa}\` requires a description for the component to be accessible for screen reader users.
|
|
470
|
+
|
|
471
|
+
You can add a description to the \`${sa}\` by passing a \`${EC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
472
|
+
|
|
473
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${sa}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
474
|
+
|
|
475
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},rB=yC,iB=vC,oB=bC,aB=SC,lB=TC,sB=OC,uB=wC,cB=CC;function O3(e,t){return b.useReducer((r,o)=>t[r][o]??r,e)}var Wm="ScrollArea",[AC,fB]=Gt(Wm),[A3,zn]=AC(Wm),MC=b.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:o="hover",dir:a,scrollHideDelay:s=600,...u}=e,[f,d]=b.useState(null),[p,m]=b.useState(null),[g,v]=b.useState(null),[S,w]=b.useState(null),[x,T]=b.useState(null),[E,O]=b.useState(0),[_,L]=b.useState(0),[P,D]=b.useState(!1),[I,G]=b.useState(!1),X=Le(t,Q=>d(Q)),Z=fs(a);return k.jsx(A3,{scope:r,type:o,dir:Z,scrollHideDelay:s,scrollArea:f,viewport:p,onViewportChange:m,content:g,onContentChange:v,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:P,onScrollbarXEnabledChange:D,scrollbarY:x,onScrollbarYChange:T,scrollbarYEnabled:I,onScrollbarYEnabledChange:G,onCornerWidthChange:O,onCornerHeightChange:L,children:k.jsx(we.div,{dir:Z,...u,ref:X,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});MC.displayName=Wm;var _C="ScrollAreaViewport",kC=b.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:o,nonce:a,...s}=e,u=zn(_C,r),f=b.useRef(null),d=Le(t,f,u.onViewportChange);return k.jsxs(k.Fragment,{children:[k.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),k.jsx(we.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:k.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});kC.displayName=_C;var br="ScrollAreaScrollbar",M3=b.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=zn(br,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=a,f=e.orientation==="horizontal";return b.useEffect(()=>(f?s(!0):u(!0),()=>{f?s(!1):u(!1)}),[f,s,u]),a.type==="hover"?k.jsx(_3,{...o,ref:t,forceMount:r}):a.type==="scroll"?k.jsx(k3,{...o,ref:t,forceMount:r}):a.type==="auto"?k.jsx(DC,{...o,ref:t,forceMount:r}):a.type==="always"?k.jsx(Zm,{...o,ref:t}):null});M3.displayName=br;var _3=b.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=zn(br,e.__scopeScrollArea),[s,u]=b.useState(!1);return b.useEffect(()=>{const f=a.scrollArea;let d=0;if(f){const p=()=>{window.clearTimeout(d),u(!0)},m=()=>{d=window.setTimeout(()=>u(!1),a.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),k.jsx(zt,{present:r||s,children:k.jsx(DC,{"data-state":s?"visible":"hidden",...o,ref:t})})}),k3=b.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=zn(br,e.__scopeScrollArea),s=e.orientation==="horizontal",u=Xc(()=>d("SCROLL_END"),100),[f,d]=O3("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(f==="idle"){const p=window.setTimeout(()=>d("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(p)}},[f,a.scrollHideDelay,d]),b.useEffect(()=>{const p=a.viewport,m=s?"scrollLeft":"scrollTop";if(p){let g=p[m];const v=()=>{const S=p[m];g!==S&&(d("SCROLL"),u()),g=S};return p.addEventListener("scroll",v),()=>p.removeEventListener("scroll",v)}},[a.viewport,s,d,u]),k.jsx(zt,{present:r||f!=="hidden",children:k.jsx(Zm,{"data-state":f==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:ge(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:ge(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),DC=b.forwardRef((e,t)=>{const r=zn(br,e.__scopeScrollArea),{forceMount:o,...a}=e,[s,u]=b.useState(!1),f=e.orientation==="horizontal",d=Xc(()=>{if(r.viewport){const p=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;u(f?p:m)}},10);return ha(r.viewport,d),ha(r.content,d),k.jsx(zt,{present:o||s,children:k.jsx(Zm,{"data-state":s?"visible":"hidden",...a,ref:t})})}),Zm=b.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,a=zn(br,e.__scopeScrollArea),s=b.useRef(null),u=b.useRef(0),[f,d]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=zC(f.viewport,f.content),m={...o,sizes:f,onSizesChange:d,hasThumb:p>0&&p<1,onThumbChange:v=>s.current=v,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:v=>u.current=v};function g(v,S){return j3(v,u.current,f,S)}return r==="horizontal"?k.jsx(D3,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const v=a.viewport.scrollLeft,S=v1(v,f,a.dir);s.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:v=>{a.viewport&&(a.viewport.scrollLeft=v)},onDragScroll:v=>{a.viewport&&(a.viewport.scrollLeft=g(v,a.dir))}}):r==="vertical"?k.jsx(N3,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&s.current){const v=a.viewport.scrollTop,S=v1(v,f);s.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:v=>{a.viewport&&(a.viewport.scrollTop=v)},onDragScroll:v=>{a.viewport&&(a.viewport.scrollTop=g(v))}}):null}),D3=b.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...a}=e,s=zn(br,e.__scopeScrollArea),[u,f]=b.useState(),d=b.useRef(null),p=Le(t,d,s.onScrollbarXChange);return b.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),k.jsx(PC,{"data-orientation":"horizontal",...a,ref:p,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,g)=>{if(s.viewport){const v=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(v),jC(v,g)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&u&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:gc(u.paddingLeft),paddingEnd:gc(u.paddingRight)}})}})}),N3=b.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...a}=e,s=zn(br,e.__scopeScrollArea),[u,f]=b.useState(),d=b.useRef(null),p=Le(t,d,s.onScrollbarYChange);return b.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),k.jsx(PC,{"data-orientation":"vertical",...a,ref:p,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,g)=>{if(s.viewport){const v=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(v),jC(v,g)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&u&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:gc(u.paddingTop),paddingEnd:gc(u.paddingBottom)}})}})}),[P3,NC]=AC(br),PC=b.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:o,hasThumb:a,onThumbChange:s,onThumbPointerUp:u,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:p,onWheelScroll:m,onResize:g,...v}=e,S=zn(br,r),[w,x]=b.useState(null),T=Le(t,X=>x(X)),E=b.useRef(null),O=b.useRef(""),_=S.viewport,L=o.content-o.viewport,P=yt(m),D=yt(d),I=Xc(g,10);function G(X){if(E.current){const Z=X.clientX-E.current.left,Q=X.clientY-E.current.top;p({x:Z,y:Q})}}return b.useEffect(()=>{const X=Z=>{const Q=Z.target;w?.contains(Q)&&P(Z,L)};return document.addEventListener("wheel",X,{passive:!1}),()=>document.removeEventListener("wheel",X,{passive:!1})},[_,w,L,P]),b.useEffect(D,[o,D]),ha(w,I),ha(S.content,I),k.jsx(P3,{scope:r,scrollbar:w,hasThumb:a,onThumbChange:yt(s),onThumbPointerUp:yt(u),onThumbPositionChange:D,onThumbPointerDown:yt(f),children:k.jsx(we.div,{...v,ref:T,style:{position:"absolute",...v.style},onPointerDown:ge(e.onPointerDown,X=>{X.button===0&&(X.target.setPointerCapture(X.pointerId),E.current=w.getBoundingClientRect(),O.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),G(X))}),onPointerMove:ge(e.onPointerMove,G),onPointerUp:ge(e.onPointerUp,X=>{const Z=X.target;Z.hasPointerCapture(X.pointerId)&&Z.releasePointerCapture(X.pointerId),document.body.style.webkitUserSelect=O.current,S.viewport&&(S.viewport.style.scrollBehavior=""),E.current=null})})})}),mc="ScrollAreaThumb",L3=b.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=NC(mc,e.__scopeScrollArea);return k.jsx(zt,{present:r||a.hasThumb,children:k.jsx(z3,{ref:t,...o})})}),z3=b.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:o,...a}=e,s=zn(mc,r),u=NC(mc,r),{onThumbPositionChange:f}=u,d=Le(t,g=>u.onThumbChange(g)),p=b.useRef(void 0),m=Xc(()=>{p.current&&(p.current(),p.current=void 0)},100);return b.useEffect(()=>{const g=s.viewport;if(g){const v=()=>{if(m(),!p.current){const S=U3(g,f);p.current=S,f()}};return f(),g.addEventListener("scroll",v),()=>g.removeEventListener("scroll",v)}},[s.viewport,m,f]),k.jsx(we.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:ge(e.onPointerDownCapture,g=>{const S=g.target.getBoundingClientRect(),w=g.clientX-S.left,x=g.clientY-S.top;u.onThumbPointerDown({x:w,y:x})}),onPointerUp:ge(e.onPointerUp,u.onThumbPointerUp)})});L3.displayName=mc;var Jm="ScrollAreaCorner",LC=b.forwardRef((e,t)=>{const r=zn(Jm,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?k.jsx(I3,{...e,ref:t}):null});LC.displayName=Jm;var I3=b.forwardRef((e,t)=>{const{__scopeScrollArea:r,...o}=e,a=zn(Jm,r),[s,u]=b.useState(0),[f,d]=b.useState(0),p=!!(s&&f);return ha(a.scrollbarX,()=>{const m=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(m),d(m)}),ha(a.scrollbarY,()=>{const m=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(m),u(m)}),p?k.jsx(we.div,{...o,ref:t,style:{width:s,height:f,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function gc(e){return e?parseInt(e,10):0}function zC(e,t){const r=e/t;return isNaN(r)?0:r}function Qc(e){const t=zC(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function j3(e,t,r,o="ltr"){const a=Qc(r),s=a/2,u=t||s,f=a-u,d=r.scrollbar.paddingStart+u,p=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,g=o==="ltr"?[0,m]:[m*-1,0];return IC([d,p],g)(e)}function v1(e,t,r="ltr"){const o=Qc(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-a,u=t.content-t.viewport,f=s-o,d=r==="ltr"?[0,u]:[u*-1,0],p=vh(e,d);return IC([0,u],[0,f])(p)}function IC(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function jC(e,t){return e>0&&e<t}var U3=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return function a(){const s={left:e.scrollLeft,top:e.scrollTop},u=r.left!==s.left,f=r.top!==s.top;(u||f)&&t(),r=s,o=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(o)};function Xc(e,t){const r=yt(e),o=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),b.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function ha(e,t){const r=yt(t);vt(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,r])}var dB=MC,pB=kC,hB=LC,Fp={exports:{}},qp={};/**
|
|
476
|
+
* @license React
|
|
477
|
+
* use-sync-external-store-shim.production.js
|
|
478
|
+
*
|
|
479
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
480
|
+
*
|
|
481
|
+
* This source code is licensed under the MIT license found in the
|
|
482
|
+
* LICENSE file in the root directory of this source tree.
|
|
483
|
+
*/var b1;function B3(){if(b1)return qp;b1=1;var e=Tc();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var r=typeof Object.is=="function"?Object.is:t,o=e.useState,a=e.useEffect,s=e.useLayoutEffect,u=e.useDebugValue;function f(g,v){var S=v(),w=o({inst:{value:S,getSnapshot:v}}),x=w[0].inst,T=w[1];return s(function(){x.value=S,x.getSnapshot=v,d(x)&&T({inst:x})},[g,S,v]),a(function(){return d(x)&&T({inst:x}),g(function(){d(x)&&T({inst:x})})},[g]),u(S),S}function d(g){var v=g.getSnapshot;g=g.value;try{var S=v();return!r(g,S)}catch{return!0}}function p(g,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return qp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,qp}var S1;function H3(){return S1||(S1=1,Fp.exports=B3()),Fp.exports}var F3=H3();function q3(){return F3.useSyncExternalStore(V3,()=>!0,()=>!1)}function V3(){return()=>{}}var eg="Avatar",[G3,mB]=Gt(eg),[$3,UC]=G3(eg),BC=b.forwardRef((e,t)=>{const{__scopeAvatar:r,...o}=e,[a,s]=b.useState("idle");return k.jsx($3,{scope:r,imageLoadingStatus:a,onImageLoadingStatusChange:s,children:k.jsx(we.span,{...o,ref:t})})});BC.displayName=eg;var HC="AvatarImage",FC=b.forwardRef((e,t)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:a=()=>{},...s}=e,u=UC(HC,r),f=Y3(o,s),d=yt(p=>{a(p),u.onImageLoadingStatusChange(p)});return vt(()=>{f!=="idle"&&d(f)},[f,d]),f==="loaded"?k.jsx(we.img,{...s,ref:t,src:o}):null});FC.displayName=HC;var qC="AvatarFallback",VC=b.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:o,...a}=e,s=UC(qC,r),[u,f]=b.useState(o===void 0);return b.useEffect(()=>{if(o!==void 0){const d=window.setTimeout(()=>f(!0),o);return()=>window.clearTimeout(d)}},[o]),u&&s.imageLoadingStatus!=="loaded"?k.jsx(we.span,{...a,ref:t}):null});VC.displayName=qC;function x1(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Y3(e,{referrerPolicy:t,crossOrigin:r}){const o=q3(),a=b.useRef(null),s=o?(a.current||(a.current=new window.Image),a.current):null,[u,f]=b.useState(()=>x1(s,e));return vt(()=>{f(x1(s,e))},[s,e]),vt(()=>{const d=g=>()=>{f(g)};if(!s)return;const p=d("loaded"),m=d("error");return s.addEventListener("load",p),s.addEventListener("error",m),t&&(s.referrerPolicy=t),typeof r=="string"&&(s.crossOrigin=r),()=>{s.removeEventListener("load",p),s.removeEventListener("error",m)}},[s,r,t]),u}var gB=BC,yB=FC,vB=VC;function GC(e){return t=>typeof t===e}var K3=GC("function"),Q3=e=>e===null,w1=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",E1=e=>!X3(e)&&!Q3(e)&&(K3(e)||typeof e=="object"),X3=GC("undefined");function W3(e,t){const{length:r}=e;if(r!==t.length)return!1;for(let o=r;o--!==0;)if(!Vt(e[o],t[o]))return!1;return!0}function Z3(e,t){if(e.byteLength!==t.byteLength)return!1;const r=new DataView(e.buffer),o=new DataView(t.buffer);let a=e.byteLength;for(;a--;)if(r.getUint8(a)!==o.getUint8(a))return!1;return!0}function J3(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;for(const r of e.entries())if(!Vt(r[1],t.get(r[0])))return!1;return!0}function ez(e,t){if(e.size!==t.size)return!1;for(const r of e.entries())if(!t.has(r[0]))return!1;return!0}function Vt(e,t){if(e===t)return!0;if(e&&E1(e)&&t&&E1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return W3(e,t);if(e instanceof Map&&t instanceof Map)return J3(e,t);if(e instanceof Set&&t instanceof Set)return ez(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Z3(e,t);if(w1(e)&&w1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let a=r.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[a]))return!1;for(let a=r.length;a--!==0;){const s=r[a];if(!(s==="_owner"&&e.$$typeof)&&!Vt(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var tz=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],nz=["bigint","boolean","null","number","string","symbol","undefined"];function Wc(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(rz(t))return t}function Qn(e){return t=>Wc(t)===e}function rz(e){return tz.includes(e)}function Oa(e){return t=>typeof t===e}function iz(e){return nz.includes(e)}var oz=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ve(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ve.array(e))return"Array";if(ve.plainFunction(e))return"Function";const t=Wc(e);return t||"Object"}ve.array=Array.isArray;ve.arrayOf=(e,t)=>!ve.array(e)&&!ve.function(t)?!1:e.every(r=>t(r));ve.asyncGeneratorFunction=e=>Wc(e)==="AsyncGeneratorFunction";ve.asyncFunction=Qn("AsyncFunction");ve.bigint=Oa("bigint");ve.boolean=e=>e===!0||e===!1;ve.date=Qn("Date");ve.defined=e=>!ve.undefined(e);ve.domElement=e=>ve.object(e)&&!ve.plainObject(e)&&e.nodeType===1&&ve.string(e.nodeName)&&oz.every(t=>t in e);ve.empty=e=>ve.string(e)&&e.length===0||ve.array(e)&&e.length===0||ve.object(e)&&!ve.map(e)&&!ve.set(e)&&Object.keys(e).length===0||ve.set(e)&&e.size===0||ve.map(e)&&e.size===0;ve.error=Qn("Error");ve.function=Oa("function");ve.generator=e=>ve.iterable(e)&&ve.function(e.next)&&ve.function(e.throw);ve.generatorFunction=Qn("GeneratorFunction");ve.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ve.iterable=e=>!ve.nullOrUndefined(e)&&ve.function(e[Symbol.iterator]);ve.map=Qn("Map");ve.nan=e=>Number.isNaN(e);ve.null=e=>e===null;ve.nullOrUndefined=e=>ve.null(e)||ve.undefined(e);ve.number=e=>Oa("number")(e)&&!ve.nan(e);ve.numericString=e=>ve.string(e)&&e.length>0&&!Number.isNaN(Number(e));ve.object=e=>!ve.nullOrUndefined(e)&&(ve.function(e)||typeof e=="object");ve.oneOf=(e,t)=>ve.array(e)?e.indexOf(t)>-1:!1;ve.plainFunction=Qn("Function");ve.plainObject=e=>{if(Wc(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ve.primitive=e=>ve.null(e)||iz(typeof e);ve.promise=Qn("Promise");ve.propertyOf=(e,t,r)=>{if(!ve.object(e)||!t)return!1;const o=e[t];return ve.function(r)?r(o):ve.defined(o)};ve.regexp=Qn("RegExp");ve.set=Qn("Set");ve.string=Oa("string");ve.symbol=Oa("symbol");ve.undefined=Oa("undefined");ve.weakMap=Qn("WeakMap");ve.weakSet=Qn("WeakSet");var Se=ve;function az(...e){return e.every(t=>Se.string(t)||Se.array(t)||Se.plainObject(t))}function lz(e,t,r){return $C(e,t)?[e,t].every(Se.array)?!e.some(A1(r))&&t.some(A1(r)):[e,t].every(Se.plainObject)?!Object.entries(e).some(O1(r))&&Object.entries(t).some(O1(r)):t===r:!1}function C1(e,t,r){const{actual:o,key:a,previous:s,type:u}=r,f=ur(e,a),d=ur(t,a);let p=[f,d].every(Se.number)&&(u==="increased"?f<d:f>d);return Se.undefined(o)||(p=p&&d===o),Se.undefined(s)||(p=p&&f===s),p}function T1(e,t,r){const{key:o,type:a,value:s}=r,u=ur(e,o),f=ur(t,o),d=a==="added"?u:f,p=a==="added"?f:u;if(!Se.nullOrUndefined(s)){if(Se.defined(d)){if(Se.array(d)||Se.plainObject(d))return lz(d,p,s)}else return Vt(p,s);return!1}return[u,f].every(Se.array)?!p.every(tg(d)):[u,f].every(Se.plainObject)?sz(Object.keys(d),Object.keys(p)):![u,f].every(m=>Se.primitive(m)&&Se.defined(m))&&(a==="added"?!Se.defined(u)&&Se.defined(f):Se.defined(u)&&!Se.defined(f))}function R1(e,t,{key:r}={}){let o=ur(e,r),a=ur(t,r);if(!$C(o,a))throw new TypeError("Inputs have different types");if(!az(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(Se.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function O1(e){return([t,r])=>Se.array(e)?Vt(e,r)||e.some(o=>Vt(o,r)||Se.array(r)&&tg(r)(o)):Se.plainObject(e)&&e[t]?!!e[t]&&Vt(e[t],r):Vt(e,r)}function sz(e,t){return t.some(r=>!e.includes(r))}function A1(e){return t=>Se.array(e)?e.some(r=>Vt(r,t)||Se.array(t)&&tg(t)(r)):Vt(e,t)}function _l(e,t){return Se.array(e)?e.some(r=>Vt(r,t)):Vt(e,t)}function tg(e){return t=>e.some(r=>Vt(r,t))}function $C(...e){return e.every(Se.array)||e.every(Se.number)||e.every(Se.plainObject)||e.every(Se.string)}function ur(e,t){return Se.plainObject(e)||Se.array(e)?Se.string(t)?t.split(".").reduce((o,a)=>o&&o[a],e):Se.number(t)?e[t]:e:e}function yc(e,t){if([e,t].some(Se.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(m=>Se.plainObject(m)||Se.array(m)))throw new Error("Expected plain objects or array");return{added:(m,g)=>{try{return T1(e,t,{key:m,type:"added",value:g})}catch{return!1}},changed:(m,g,v)=>{try{const S=ur(e,m),w=ur(t,m),x=Se.defined(g),T=Se.defined(v);if(x||T){const E=T?_l(v,S):!_l(g,S),O=_l(g,w);return E&&O}return[S,w].every(Se.array)||[S,w].every(Se.plainObject)?!Vt(S,w):S!==w}catch{return!1}},changedFrom:(m,g,v)=>{if(!Se.defined(m))return!1;try{const S=ur(e,m),w=ur(t,m),x=Se.defined(v);return _l(g,S)&&(x?_l(v,w):!x)}catch{return!1}},decreased:(m,g,v)=>{if(!Se.defined(m))return!1;try{return C1(e,t,{key:m,actual:g,previous:v,type:"decreased"})}catch{return!1}},emptied:m=>{try{const[g,v]=R1(e,t,{key:m});return!!g.length&&!v.length}catch{return!1}},filled:m=>{try{const[g,v]=R1(e,t,{key:m});return!g.length&&!!v.length}catch{return!1}},increased:(m,g,v)=>{if(!Se.defined(m))return!1;try{return C1(e,t,{key:m,actual:g,previous:v,type:"increased"})}catch{return!1}},removed:(m,g)=>{try{return T1(e,t,{key:m,type:"removed",value:g})}catch{return!1}}}}var Vp,M1;function uz(){if(M1)return Vp;M1=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),r=Math.min,o=Date.now;Vp={left:a("scrollLeft"),top:a("scrollTop")};function a(f){return function(p,m,g,v){g=g||{},typeof g=="function"&&(v=g,g={}),typeof v!="function"&&(v=u);var S=o(),w=p[f],x=g.ease||s,T=isNaN(g.duration)?350:+g.duration,E=!1;return w===m?v(e,p[f]):requestAnimationFrame(_),O;function O(){E=!0}function _(L){if(E)return v(t,p[f]);var P=o(),D=r(1,(P-S)/T),I=x(D);p[f]=I*(m-w)+w,D<1?requestAnimationFrame(_):requestAnimationFrame(function(){v(null,p[f])})}}}function s(f){return .5*(1-Math.cos(Math.PI*f))}function u(){}return Vp}var cz=uz();const fz=qr(cz);var ec={exports:{}},dz=ec.exports,_1;function pz(){return _1||(_1=1,function(e){(function(t,r){e.exports?e.exports=r():t.Scrollparent=r()})(dz,function(){function t(o){var a=getComputedStyle(o,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function r(o){if(o instanceof HTMLElement||o instanceof SVGElement){for(var a=o.parentNode;a.parentNode;){if(t(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return r})}(ec)),ec.exports}var hz=pz();const YC=qr(hz);var Gp,k1;function mz(){if(k1)return Gp;k1=1;var e=function(o){return Object.prototype.hasOwnProperty.call(o,"props")},t=function(o,a){return o+r(a)},r=function(o){return o===null||typeof o=="boolean"||typeof o>"u"?"":typeof o=="number"?o.toString():typeof o=="string"?o:Array.isArray(o)?o.reduce(t,""):e(o)&&Object.prototype.hasOwnProperty.call(o.props,"children")?r(o.props.children):""};return r.default=r,Gp=r,Gp}var gz=mz();const D1=qr(gz);var $p,N1;function yz(){if(N1)return $p;N1=1;var e=function(O){return t(O)&&!r(O)};function t(E){return!!E&&typeof E=="object"}function r(E){var O=Object.prototype.toString.call(E);return O==="[object RegExp]"||O==="[object Date]"||s(E)}var o=typeof Symbol=="function"&&Symbol.for,a=o?Symbol.for("react.element"):60103;function s(E){return E.$$typeof===a}function u(E){return Array.isArray(E)?[]:{}}function f(E,O){return O.clone!==!1&&O.isMergeableObject(E)?x(u(E),E,O):E}function d(E,O,_){return E.concat(O).map(function(L){return f(L,_)})}function p(E,O){if(!O.customMerge)return x;var _=O.customMerge(E);return typeof _=="function"?_:x}function m(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(O){return Object.propertyIsEnumerable.call(E,O)}):[]}function g(E){return Object.keys(E).concat(m(E))}function v(E,O){try{return O in E}catch{return!1}}function S(E,O){return v(E,O)&&!(Object.hasOwnProperty.call(E,O)&&Object.propertyIsEnumerable.call(E,O))}function w(E,O,_){var L={};return _.isMergeableObject(E)&&g(E).forEach(function(P){L[P]=f(E[P],_)}),g(O).forEach(function(P){S(E,P)||(v(E,P)&&_.isMergeableObject(O[P])?L[P]=p(P,_)(E[P],O[P],_):L[P]=f(O[P],_))}),L}function x(E,O,_){_=_||{},_.arrayMerge=_.arrayMerge||d,_.isMergeableObject=_.isMergeableObject||e,_.cloneUnlessOtherwiseSpecified=f;var L=Array.isArray(O),P=Array.isArray(E),D=L===P;return D?L?_.arrayMerge(E,O,_):w(E,O,_):f(O,_)}x.all=function(O,_){if(!Array.isArray(O))throw new Error("first argument should be an array");return O.reduce(function(L,P){return x(L,P,_)},{})};var T=x;return $p=T,$p}var vz=yz();const qn=qr(vz);var Yp={exports:{}},Kp,P1;function bz(){if(P1)return Kp;P1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Kp=e,Kp}var Qp,L1;function Sz(){if(L1)return Qp;L1=1;var e=bz();function t(){}function r(){}return r.resetWarningCache=t,Qp=function(){function o(u,f,d,p,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function a(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Qp}var z1;function xz(){return z1||(z1=1,Yp.exports=Sz()()),Yp.exports}var wz=xz();const me=qr(wz);/**!
|
|
484
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
485
|
+
* @version 1.16.1
|
|
486
|
+
* @license
|
|
487
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
488
|
+
*
|
|
489
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
490
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
491
|
+
* in the Software without restriction, including without limitation the rights
|
|
492
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
493
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
494
|
+
* furnished to do so, subject to the following conditions:
|
|
495
|
+
*
|
|
496
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
497
|
+
* copies or substantial portions of the Software.
|
|
498
|
+
*
|
|
499
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
500
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
501
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
502
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
503
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
504
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
505
|
+
* SOFTWARE.
|
|
506
|
+
*/var ms=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Ez=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ms&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Cz(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Tz(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ez))}}var Rz=ms&&window.Promise,Oz=Rz?Cz:Tz;function KC(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function lo(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,o=r.getComputedStyle(e,null);return t?o[t]:o}function ng(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function gs(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=lo(e),r=t.overflow,o=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(r+a+o)?e:gs(ng(e))}function QC(e){return e&&e.referenceNode?e.referenceNode:e}var I1=ms&&!!(window.MSInputMethodContext&&document.documentMode),j1=ms&&/MSIE 10/.test(navigator.userAgent);function Aa(e){return e===11?I1:e===10?j1:I1||j1}function ma(e){if(!e)return document.documentElement;for(var t=Aa(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var o=r&&r.nodeName;return!o||o==="BODY"||o==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&lo(r,"position")==="static"?ma(r):r}function Az(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ma(e.firstElementChild)===e}function qh(e){return e.parentNode!==null?qh(e.parentNode):e}function vc(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=r?e:t,a=r?t:e,s=document.createRange();s.setStart(o,0),s.setEnd(a,0);var u=s.commonAncestorContainer;if(e!==u&&t!==u||o.contains(a))return Az(u)?u:ma(u);var f=qh(e);return f.host?vc(f.host,t):vc(e,qh(t).host)}function ga(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",o=e.nodeName;if(o==="BODY"||o==="HTML"){var a=e.ownerDocument.documentElement,s=e.ownerDocument.scrollingElement||a;return s[r]}return e[r]}function Mz(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=ga(t,"top"),a=ga(t,"left"),s=r?-1:1;return e.top+=o*s,e.bottom+=o*s,e.left+=a*s,e.right+=a*s,e}function U1(e,t){var r=t==="x"?"Left":"Top",o=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+o+"Width"])}function B1(e,t,r,o){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Aa(10)?parseInt(r["offset"+e])+parseInt(o["margin"+(e==="Height"?"Top":"Left")])+parseInt(o["margin"+(e==="Height"?"Bottom":"Right")]):0)}function XC(e){var t=e.body,r=e.documentElement,o=Aa(10)&&getComputedStyle(r);return{height:B1("Height",t,r,o),width:B1("Width",t,r,o)}}var _z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},kz=function(){function e(t,r){for(var o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),ya=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Nn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};function wi(e){return Nn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vh(e){var t={};try{if(Aa(10)){t=e.getBoundingClientRect();var r=ga(e,"top"),o=ga(e,"left");t.top+=r,t.left+=o,t.bottom+=r,t.right+=o}else t=e.getBoundingClientRect()}catch{}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s=e.nodeName==="HTML"?XC(e.ownerDocument):{},u=s.width||e.clientWidth||a.width,f=s.height||e.clientHeight||a.height,d=e.offsetWidth-u,p=e.offsetHeight-f;if(d||p){var m=lo(e);d-=U1(m,"x"),p-=U1(m,"y"),a.width-=d,a.height-=p}return wi(a)}function rg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=Aa(10),a=t.nodeName==="HTML",s=Vh(e),u=Vh(t),f=gs(e),d=lo(t),p=parseFloat(d.borderTopWidth),m=parseFloat(d.borderLeftWidth);r&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var g=wi({top:s.top-u.top-p,left:s.left-u.left-m,width:s.width,height:s.height});if(g.marginTop=0,g.marginLeft=0,!o&&a){var v=parseFloat(d.marginTop),S=parseFloat(d.marginLeft);g.top-=p-v,g.bottom-=p-v,g.left-=m-S,g.right-=m-S,g.marginTop=v,g.marginLeft=S}return(o&&!r?t.contains(f):t===f&&f.nodeName!=="BODY")&&(g=Mz(g,t)),g}function Dz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,o=rg(e,r),a=Math.max(r.clientWidth,window.innerWidth||0),s=Math.max(r.clientHeight,window.innerHeight||0),u=t?0:ga(r),f=t?0:ga(r,"left"),d={top:u-o.top+o.marginTop,left:f-o.left+o.marginLeft,width:a,height:s};return wi(d)}function WC(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(lo(e,"position")==="fixed")return!0;var r=ng(e);return r?WC(r):!1}function ZC(e){if(!e||!e.parentElement||Aa())return document.documentElement;for(var t=e.parentElement;t&&lo(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function ig(e,t,r,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s={top:0,left:0},u=a?ZC(e):vc(e,QC(t));if(o==="viewport")s=Dz(u,a);else{var f=void 0;o==="scrollParent"?(f=gs(ng(t)),f.nodeName==="BODY"&&(f=e.ownerDocument.documentElement)):o==="window"?f=e.ownerDocument.documentElement:f=o;var d=rg(f,u,a);if(f.nodeName==="HTML"&&!WC(u)){var p=XC(e.ownerDocument),m=p.height,g=p.width;s.top+=d.top-d.marginTop,s.bottom=m+d.top,s.left+=d.left-d.marginLeft,s.right=g+d.left}else s=d}r=r||0;var v=typeof r=="number";return s.left+=v?r:r.left||0,s.top+=v?r:r.top||0,s.right-=v?r:r.right||0,s.bottom-=v?r:r.bottom||0,s}function Nz(e){var t=e.width,r=e.height;return t*r}function JC(e,t,r,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var u=ig(r,o,s,a),f={top:{width:u.width,height:t.top-u.top},right:{width:u.right-t.right,height:u.height},bottom:{width:u.width,height:u.bottom-t.bottom},left:{width:t.left-u.left,height:u.height}},d=Object.keys(f).map(function(v){return Nn({key:v},f[v],{area:Nz(f[v])})}).sort(function(v,S){return S.area-v.area}),p=d.filter(function(v){var S=v.width,w=v.height;return S>=r.clientWidth&&w>=r.clientHeight}),m=p.length>0?p[0].key:d[0].key,g=e.split("-")[1];return m+(g?"-"+g:"")}function eT(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=o?ZC(t):vc(t,QC(r));return rg(r,a,o)}function tT(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),o=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),a=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),s={width:e.offsetWidth+a,height:e.offsetHeight+o};return s}function bc(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function nT(e,t,r){r=r.split("-")[0];var o=tT(e),a={width:o.width,height:o.height},s=["right","left"].indexOf(r)!==-1,u=s?"top":"left",f=s?"left":"top",d=s?"height":"width",p=s?"width":"height";return a[u]=t[u]+t[d]/2-o[d]/2,r===f?a[f]=t[f]-o[p]:a[f]=t[bc(f)],a}function ys(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Pz(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===r});var o=ys(e,function(a){return a[t]===r});return e.indexOf(o)}function rT(e,t,r){var o=r===void 0?e:e.slice(0,Pz(e,"name",r));return o.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var s=a.function||a.fn;a.enabled&&KC(s)&&(t.offsets.popper=wi(t.offsets.popper),t.offsets.reference=wi(t.offsets.reference),t=s(t,a))}),t}function Lz(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eT(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=JC(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=nT(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=rT(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function iT(e,t){return e.some(function(r){var o=r.name,a=r.enabled;return a&&o===t})}function og(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var a=t[o],s=a?""+a+r:e;if(typeof document.body.style[s]<"u")return s}return null}function zz(){return this.state.isDestroyed=!0,iT(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[og("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function oT(e){var t=e.ownerDocument;return t?t.defaultView:window}function aT(e,t,r,o){var a=e.nodeName==="BODY",s=a?e.ownerDocument.defaultView:e;s.addEventListener(t,r,{passive:!0}),a||aT(gs(s.parentNode),t,r,o),o.push(s)}function Iz(e,t,r,o){r.updateBound=o,oT(e).addEventListener("resize",r.updateBound,{passive:!0});var a=gs(e);return aT(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function jz(){this.state.eventsEnabled||(this.state=Iz(this.reference,this.options,this.state,this.scheduleUpdate))}function Uz(e,t){return oT(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function Bz(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Uz(this.reference,this.state))}function ag(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Gh(e,t){Object.keys(t).forEach(function(r){var o="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&ag(t[r])&&(o="px"),e.style[r]=t[r]+o})}function Hz(e,t){Object.keys(t).forEach(function(r){var o=t[r];o!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function Fz(e){return Gh(e.instance.popper,e.styles),Hz(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Gh(e.arrowElement,e.arrowStyles),e}function qz(e,t,r,o,a){var s=eT(a,t,e,r.positionFixed),u=JC(r.placement,s,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",u),Gh(t,{position:r.positionFixed?"fixed":"absolute"}),r}function Vz(e,t){var r=e.offsets,o=r.popper,a=r.reference,s=Math.round,u=Math.floor,f=function(E){return E},d=s(a.width),p=s(o.width),m=["left","right"].indexOf(e.placement)!==-1,g=e.placement.indexOf("-")!==-1,v=d%2===p%2,S=d%2===1&&p%2===1,w=t?m||g||v?s:u:f,x=t?s:f;return{left:w(S&&!g&&t?o.left-1:o.left),top:x(o.top),bottom:x(o.bottom),right:w(o.right)}}var Gz=ms&&/Firefox/i.test(navigator.userAgent);function $z(e,t){var r=t.x,o=t.y,a=e.offsets.popper,s=ys(e.instance.modifiers,function(_){return _.name==="applyStyle"}).gpuAcceleration;s!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var u=s!==void 0?s:t.gpuAcceleration,f=ma(e.instance.popper),d=Vh(f),p={position:a.position},m=Vz(e,window.devicePixelRatio<2||!Gz),g=r==="bottom"?"top":"bottom",v=o==="right"?"left":"right",S=og("transform"),w=void 0,x=void 0;if(g==="bottom"?f.nodeName==="HTML"?x=-f.clientHeight+m.bottom:x=-d.height+m.bottom:x=m.top,v==="right"?f.nodeName==="HTML"?w=-f.clientWidth+m.right:w=-d.width+m.right:w=m.left,u&&S)p[S]="translate3d("+w+"px, "+x+"px, 0)",p[g]=0,p[v]=0,p.willChange="transform";else{var T=g==="bottom"?-1:1,E=v==="right"?-1:1;p[g]=x*T,p[v]=w*E,p.willChange=g+", "+v}var O={"x-placement":e.placement};return e.attributes=Nn({},O,e.attributes),e.styles=Nn({},p,e.styles),e.arrowStyles=Nn({},e.offsets.arrow,e.arrowStyles),e}function lT(e,t,r){var o=ys(e,function(f){var d=f.name;return d===t}),a=!!o&&e.some(function(f){return f.name===r&&f.enabled&&f.order<o.order});if(!a){var s="`"+t+"`",u="`"+r+"`";console.warn(u+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return a}function Yz(e,t){var r;if(!lT(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if(typeof o=="string"){if(o=e.instance.popper.querySelector(o),!o)return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],s=e.offsets,u=s.popper,f=s.reference,d=["left","right"].indexOf(a)!==-1,p=d?"height":"width",m=d?"Top":"Left",g=m.toLowerCase(),v=d?"left":"top",S=d?"bottom":"right",w=tT(o)[p];f[S]-w<u[g]&&(e.offsets.popper[g]-=u[g]-(f[S]-w)),f[g]+w>u[S]&&(e.offsets.popper[g]+=f[g]+w-u[S]),e.offsets.popper=wi(e.offsets.popper);var x=f[g]+f[p]/2-w/2,T=lo(e.instance.popper),E=parseFloat(T["margin"+m]),O=parseFloat(T["border"+m+"Width"]),_=x-e.offsets.popper[g]-E-O;return _=Math.max(Math.min(u[p]-w,_),0),e.arrowElement=o,e.offsets.arrow=(r={},ya(r,g,Math.round(_)),ya(r,v,""),r),e}function Kz(e){return e==="end"?"start":e==="start"?"end":e}var sT=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Xp=sT.slice(3);function H1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Xp.indexOf(e),o=Xp.slice(r+1).concat(Xp.slice(0,r));return t?o.reverse():o}var Wp={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Qz(e,t){if(iT(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=ig(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],a=bc(o),s=e.placement.split("-")[1]||"",u=[];switch(t.behavior){case Wp.FLIP:u=[o,a];break;case Wp.CLOCKWISE:u=H1(o);break;case Wp.COUNTERCLOCKWISE:u=H1(o,!0);break;default:u=t.behavior}return u.forEach(function(f,d){if(o!==f||u.length===d+1)return e;o=e.placement.split("-")[0],a=bc(o);var p=e.offsets.popper,m=e.offsets.reference,g=Math.floor,v=o==="left"&&g(p.right)>g(m.left)||o==="right"&&g(p.left)<g(m.right)||o==="top"&&g(p.bottom)>g(m.top)||o==="bottom"&&g(p.top)<g(m.bottom),S=g(p.left)<g(r.left),w=g(p.right)>g(r.right),x=g(p.top)<g(r.top),T=g(p.bottom)>g(r.bottom),E=o==="left"&&S||o==="right"&&w||o==="top"&&x||o==="bottom"&&T,O=["top","bottom"].indexOf(o)!==-1,_=!!t.flipVariations&&(O&&s==="start"&&S||O&&s==="end"&&w||!O&&s==="start"&&x||!O&&s==="end"&&T),L=!!t.flipVariationsByContent&&(O&&s==="start"&&w||O&&s==="end"&&S||!O&&s==="start"&&T||!O&&s==="end"&&x),P=_||L;(v||E||P)&&(e.flipped=!0,(v||E)&&(o=u[d+1]),P&&(s=Kz(s)),e.placement=o+(s?"-"+s:""),e.offsets.popper=Nn({},e.offsets.popper,nT(e.instance.popper,e.offsets.reference,e.placement)),e=rT(e.instance.modifiers,e,"flip"))}),e}function Xz(e){var t=e.offsets,r=t.popper,o=t.reference,a=e.placement.split("-")[0],s=Math.floor,u=["top","bottom"].indexOf(a)!==-1,f=u?"right":"bottom",d=u?"left":"top",p=u?"width":"height";return r[f]<s(o[d])&&(e.offsets.popper[d]=s(o[d])-r[p]),r[d]>s(o[f])&&(e.offsets.popper[d]=s(o[f])),e}function Wz(e,t,r,o){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+a[1],u=a[2];if(!s)return e;if(u.indexOf("%")===0){var f=void 0;switch(u){case"%p":f=r;break;case"%":case"%r":default:f=o}var d=wi(f);return d[t]/100*s}else if(u==="vh"||u==="vw"){var p=void 0;return u==="vh"?p=Math.max(document.documentElement.clientHeight,window.innerHeight||0):p=Math.max(document.documentElement.clientWidth,window.innerWidth||0),p/100*s}else return s}function Zz(e,t,r,o){var a=[0,0],s=["right","left"].indexOf(o)!==-1,u=e.split(/(\+|\-)/).map(function(m){return m.trim()}),f=u.indexOf(ys(u,function(m){return m.search(/,|\s/)!==-1}));u[f]&&u[f].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,p=f!==-1?[u.slice(0,f).concat([u[f].split(d)[0]]),[u[f].split(d)[1]].concat(u.slice(f+1))]:[u];return p=p.map(function(m,g){var v=(g===1?!s:s)?"height":"width",S=!1;return m.reduce(function(w,x){return w[w.length-1]===""&&["+","-"].indexOf(x)!==-1?(w[w.length-1]=x,S=!0,w):S?(w[w.length-1]+=x,S=!1,w):w.concat(x)},[]).map(function(w){return Wz(w,v,t,r)})}),p.forEach(function(m,g){m.forEach(function(v,S){ag(v)&&(a[g]+=v*(m[S-1]==="-"?-1:1))})}),a}function Jz(e,t){var r=t.offset,o=e.placement,a=e.offsets,s=a.popper,u=a.reference,f=o.split("-")[0],d=void 0;return ag(+r)?d=[+r,0]:d=Zz(r,s,u,f),f==="left"?(s.top+=d[0],s.left-=d[1]):f==="right"?(s.top+=d[0],s.left+=d[1]):f==="top"?(s.left+=d[0],s.top-=d[1]):f==="bottom"&&(s.left+=d[0],s.top+=d[1]),e.popper=s,e}function e4(e,t){var r=t.boundariesElement||ma(e.instance.popper);e.instance.reference===r&&(r=ma(r));var o=og("transform"),a=e.instance.popper.style,s=a.top,u=a.left,f=a[o];a.top="",a.left="",a[o]="";var d=ig(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);a.top=s,a.left=u,a[o]=f,t.boundaries=d;var p=t.priority,m=e.offsets.popper,g={primary:function(S){var w=m[S];return m[S]<d[S]&&!t.escapeWithReference&&(w=Math.max(m[S],d[S])),ya({},S,w)},secondary:function(S){var w=S==="right"?"left":"top",x=m[w];return m[S]>d[S]&&!t.escapeWithReference&&(x=Math.min(m[w],d[S]-(S==="right"?m.width:m.height))),ya({},w,x)}};return p.forEach(function(v){var S=["left","top"].indexOf(v)!==-1?"primary":"secondary";m=Nn({},m,g[S](v))}),e.offsets.popper=m,e}function t4(e){var t=e.placement,r=t.split("-")[0],o=t.split("-")[1];if(o){var a=e.offsets,s=a.reference,u=a.popper,f=["bottom","top"].indexOf(r)!==-1,d=f?"left":"top",p=f?"width":"height",m={start:ya({},d,s[d]),end:ya({},d,s[d]+s[p]-u[p])};e.offsets.popper=Nn({},u,m[o])}return e}function n4(e){if(!lT(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=ys(e.instance.modifiers,function(o){return o.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function r4(e){var t=e.placement,r=t.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,u=["left","right"].indexOf(r)!==-1,f=["top","left"].indexOf(r)===-1;return a[u?"left":"top"]=s[r]-(f?a[u?"width":"height"]:0),e.placement=bc(t),e.offsets.popper=wi(a),e}var i4={shift:{order:100,enabled:!0,fn:t4},offset:{order:200,enabled:!0,fn:Jz,offset:0},preventOverflow:{order:300,enabled:!0,fn:e4,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Xz},arrow:{order:500,enabled:!0,fn:Yz,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Qz,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:r4},hide:{order:800,enabled:!0,fn:n4},computeStyle:{order:850,enabled:!0,fn:$z,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Fz,onLoad:qz,gpuAcceleration:void 0}},o4={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:i4},ts=function(){function e(t,r){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_z(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=Oz(this.update.bind(this)),this.options=Nn({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Nn({},e.Defaults.modifiers,a.modifiers)).forEach(function(u){o.options.modifiers[u]=Nn({},e.Defaults.modifiers[u]||{},a.modifiers?a.modifiers[u]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(u){return Nn({name:u},o.options.modifiers[u])}).sort(function(u,f){return u.order-f.order}),this.modifiers.forEach(function(u){u.enabled&&KC(u.onLoad)&&u.onLoad(o.reference,o.popper,o.options,u,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return kz(e,[{key:"update",value:function(){return Lz.call(this)}},{key:"destroy",value:function(){return zz.call(this)}},{key:"enableEventListeners",value:function(){return jz.call(this)}},{key:"disableEventListeners",value:function(){return Bz.call(this)}}]),e}();ts.Utils=(typeof window<"u"?window:globalThis).PopperUtils;ts.placements=sT;ts.Defaults=o4;var a4=["innerHTML","ownerDocument","style","attributes","nodeValue"],l4=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],s4=["bigint","boolean","null","number","string","symbol","undefined"];function Zc(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(u4(t))return t}function Xn(e){return function(t){return Zc(t)===e}}function u4(e){return l4.includes(e)}function Ma(e){return function(t){return typeof t===e}}function c4(e){return s4.includes(e)}function J(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(J.array(e))return"Array";if(J.plainFunction(e))return"Function";var t=Zc(e);return t||"Object"}J.array=Array.isArray;J.arrayOf=function(e,t){return!J.array(e)&&!J.function(t)?!1:e.every(function(r){return t(r)})};J.asyncGeneratorFunction=function(e){return Zc(e)==="AsyncGeneratorFunction"};J.asyncFunction=Xn("AsyncFunction");J.bigint=Ma("bigint");J.boolean=function(e){return e===!0||e===!1};J.date=Xn("Date");J.defined=function(e){return!J.undefined(e)};J.domElement=function(e){return J.object(e)&&!J.plainObject(e)&&e.nodeType===1&&J.string(e.nodeName)&&a4.every(function(t){return t in e})};J.empty=function(e){return J.string(e)&&e.length===0||J.array(e)&&e.length===0||J.object(e)&&!J.map(e)&&!J.set(e)&&Object.keys(e).length===0||J.set(e)&&e.size===0||J.map(e)&&e.size===0};J.error=Xn("Error");J.function=Ma("function");J.generator=function(e){return J.iterable(e)&&J.function(e.next)&&J.function(e.throw)};J.generatorFunction=Xn("GeneratorFunction");J.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};J.iterable=function(e){return!J.nullOrUndefined(e)&&J.function(e[Symbol.iterator])};J.map=Xn("Map");J.nan=function(e){return Number.isNaN(e)};J.null=function(e){return e===null};J.nullOrUndefined=function(e){return J.null(e)||J.undefined(e)};J.number=function(e){return Ma("number")(e)&&!J.nan(e)};J.numericString=function(e){return J.string(e)&&e.length>0&&!Number.isNaN(Number(e))};J.object=function(e){return!J.nullOrUndefined(e)&&(J.function(e)||typeof e=="object")};J.oneOf=function(e,t){return J.array(e)?e.indexOf(t)>-1:!1};J.plainFunction=Xn("Function");J.plainObject=function(e){if(Zc(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};J.primitive=function(e){return J.null(e)||c4(typeof e)};J.promise=Xn("Promise");J.propertyOf=function(e,t,r){if(!J.object(e)||!t)return!1;var o=e[t];return J.function(r)?r(o):J.defined(o)};J.regexp=Xn("RegExp");J.set=Xn("Set");J.string=Ma("string");J.symbol=Ma("symbol");J.undefined=Ma("undefined");J.weakMap=Xn("WeakMap");J.weakSet=Xn("WeakSet");function uT(e){return function(t){return typeof t===e}}var f4=uT("function"),d4=function(e){return e===null},F1=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},q1=function(e){return!p4(e)&&!d4(e)&&(f4(e)||typeof e=="object")},p4=uT("undefined"),$h=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function h4(e,t){var r=e.length;if(r!==t.length)return!1;for(var o=r;o--!==0;)if(!tn(e[o],t[o]))return!1;return!0}function m4(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=new DataView(e.buffer),o=new DataView(t.buffer),a=e.byteLength;a--;)if(r.getUint8(a)!==o.getUint8(a))return!1;return!0}function g4(e,t){var r,o,a,s;if(e.size!==t.size)return!1;try{for(var u=$h(e.entries()),f=u.next();!f.done;f=u.next()){var d=f.value;if(!t.has(d[0]))return!1}}catch(g){r={error:g}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}try{for(var p=$h(e.entries()),m=p.next();!m.done;m=p.next()){var d=m.value;if(!tn(d[1],t.get(d[0])))return!1}}catch(g){a={error:g}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return!0}function y4(e,t){var r,o;if(e.size!==t.size)return!1;try{for(var a=$h(e.entries()),s=a.next();!s.done;s=a.next()){var u=s.value;if(!t.has(u[0]))return!1}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return!0}function tn(e,t){if(e===t)return!0;if(e&&q1(e)&&t&&q1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return h4(e,t);if(e instanceof Map&&t instanceof Map)return g4(e,t);if(e instanceof Set&&t instanceof Set)return y4(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return m4(e,t);if(F1(e)&&F1(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var a=r.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,r[a]))return!1;for(var a=r.length;a--!==0;){var s=r[a];if(!(s==="_owner"&&e.$$typeof)&&!tn(e[s],t[s]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function v4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(r){return J.string(r)||J.array(r)||J.plainObject(r)})}function b4(e,t,r){return cT(e,t)?[e,t].every(J.array)?!e.some(K1(r))&&t.some(K1(r)):[e,t].every(J.plainObject)?!Object.entries(e).some(Y1(r))&&Object.entries(t).some(Y1(r)):t===r:!1}function V1(e,t,r){var o=r.actual,a=r.key,s=r.previous,u=r.type,f=cr(e,a),d=cr(t,a),p=[f,d].every(J.number)&&(u==="increased"?f<d:f>d);return J.undefined(o)||(p=p&&d===o),J.undefined(s)||(p=p&&f===s),p}function G1(e,t,r){var o=r.key,a=r.type,s=r.value,u=cr(e,o),f=cr(t,o),d=a==="added"?u:f,p=a==="added"?f:u;if(!J.nullOrUndefined(s)){if(J.defined(d)){if(J.array(d)||J.plainObject(d))return b4(d,p,s)}else return tn(p,s);return!1}return[u,f].every(J.array)?!p.every(lg(d)):[u,f].every(J.plainObject)?S4(Object.keys(d),Object.keys(p)):![u,f].every(function(m){return J.primitive(m)&&J.defined(m)})&&(a==="added"?!J.defined(u)&&J.defined(f):J.defined(u)&&!J.defined(f))}function $1(e,t,r){var o=r===void 0?{}:r,a=o.key,s=cr(e,a),u=cr(t,a);if(!cT(s,u))throw new TypeError("Inputs have different types");if(!v4(s,u))throw new TypeError("Inputs don't have length");return[s,u].every(J.plainObject)&&(s=Object.keys(s),u=Object.keys(u)),[s,u]}function Y1(e){return function(t){var r=t[0],o=t[1];return J.array(e)?tn(e,o)||e.some(function(a){return tn(a,o)||J.array(o)&&lg(o)(a)}):J.plainObject(e)&&e[r]?!!e[r]&&tn(e[r],o):tn(e,o)}}function S4(e,t){return t.some(function(r){return!e.includes(r)})}function K1(e){return function(t){return J.array(e)?e.some(function(r){return tn(r,t)||J.array(t)&&lg(t)(r)}):tn(e,t)}}function kl(e,t){return J.array(e)?e.some(function(r){return tn(r,t)}):tn(e,t)}function lg(e){return function(t){return e.some(function(r){return tn(r,t)})}}function cT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(J.array)||e.every(J.number)||e.every(J.plainObject)||e.every(J.string)}function cr(e,t){if(J.plainObject(e)||J.array(e)){if(J.string(t)){var r=t.split(".");return r.reduce(function(o,a){return o&&o[a]},e)}return J.number(t)?e[t]:e}return e}function x4(e,t){if([e,t].some(J.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(g){return J.plainObject(g)||J.array(g)}))throw new Error("Expected plain objects or array");var r=function(g,v){try{return G1(e,t,{key:g,type:"added",value:v})}catch{return!1}},o=function(g,v,S){try{var w=cr(e,g),x=cr(t,g),T=J.defined(v),E=J.defined(S);if(T||E){var O=E?kl(S,w):!kl(v,w),_=kl(v,x);return O&&_}return[w,x].every(J.array)||[w,x].every(J.plainObject)?!tn(w,x):w!==x}catch{return!1}},a=function(g,v,S){if(!J.defined(g))return!1;try{var w=cr(e,g),x=cr(t,g),T=J.defined(S);return kl(v,w)&&(T?kl(S,x):!T)}catch{return!1}},s=function(g,v){return J.defined(g)?o(g,v):!1},u=function(g,v,S){if(!J.defined(g))return!1;try{return V1(e,t,{key:g,actual:v,previous:S,type:"decreased"})}catch{return!1}},f=function(g){try{var v=$1(e,t,{key:g}),S=v[0],w=v[1];return!!S.length&&!w.length}catch{return!1}},d=function(g){try{var v=$1(e,t,{key:g}),S=v[0],w=v[1];return!S.length&&!!w.length}catch{return!1}},p=function(g,v,S){if(!J.defined(g))return!1;try{return V1(e,t,{key:g,actual:v,previous:S,type:"increased"})}catch{return!1}},m=function(g,v){try{return G1(e,t,{key:g,type:"removed",value:v})}catch{return!1}};return{added:r,changed:o,changedFrom:a,changedTo:s,decreased:u,emptied:f,filled:d,increased:p,removed:m}}function Q1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,o)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(r),!0).forEach(function(o){Ht(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q1(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function vs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w4(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,dT(o.key),o)}}function bs(e,t,r){return t&&w4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ht(e,t,r){return t=dT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ss(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yh(e,t)}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function Yh(e,t){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},Yh(e,t)}function E4(){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 C4(e,t){if(e==null)return{};var r={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function fT(e,t){if(e==null)return{};var r=C4(e,t),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)o=s[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T4(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}function xs(e){var t=E4();return function(){var o=Sc(e),a;if(t){var s=Sc(this).constructor;a=Reflect.construct(o,arguments,s)}else a=o.apply(this,arguments);return T4(this,a)}}function R4(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dT(e){var t=R4(e,"string");return typeof t=="symbol"?t:String(t)}var O4={flip:{padding:20},preventOverflow:{padding:10}},A4="The typeValidator argument must be a function with the signature function(props, propName, componentName).",M4="The error message is optional, but must be a string if provided.";function _4(e,t,r,o){return typeof e=="boolean"?e:typeof e=="function"?e(t,r,o):e?!!e:!1}function k4(e,t){return Object.hasOwnProperty.call(e,t)}function D4(e,t,r,o){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(r,"`."))}function N4(e,t){if(typeof e!="function")throw new TypeError(A4);if(t&&typeof t!="string")throw new TypeError(M4)}function X1(e,t,r){return N4(e,r),function(o,a,s){for(var u=arguments.length,f=new Array(u>3?u-3:0),d=3;d<u;d++)f[d-3]=arguments[d];return _4(t,o,a,s)?k4(o,a)?e.apply(void 0,[o,a,s].concat(f)):D4(o,a,s):e.apply(void 0,[o,a,s].concat(f))}}var Ye={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},Dl=ql.createPortal!==void 0;function ir(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Zp(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function qu(e){var t=e.title,r=e.data,o=e.warn,a=o===void 0?!1:o,s=e.debug,u=s===void 0?!1:s,f=a?console.warn||console.error:console.log;u&&t&&r&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(r)?r.forEach(function(d){J.plainObject(d)&&d.key?f.apply(console,[d.key,d.value]):f.apply(console,[d])}):f.apply(console,[r]),console.groupEnd())}function P4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,r,o)}function L4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,r,o)}function z4(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a;a=function(u){r(u),L4(e,t,a)},P4(e,t,a,o)}function W1(){}var pT=function(e){Ss(r,e);var t=xs(r);function r(){return vs(this,r),t.apply(this,arguments)}return bs(r,[{key:"componentDidMount",value:function(){ir()&&(this.node||this.appendNode(),Dl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ir()&&(Dl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ir()||!this.node||(Dl||ql.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var a=this.props,s=a.id,u=a.zIndex;this.node||(this.node=document.createElement("div"),s&&(this.node.id=s),u&&(this.node.style.zIndex=u),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ir())return null;var a=this.props,s=a.children,u=a.setRef;if(this.node||this.appendNode(),Dl)return ql.createPortal(s,this.node);var f=ql.unstable_renderSubtreeIntoContainer(this,s.length>1?Me.createElement("div",null,s):s[0],this.node);return u(f),null}},{key:"renderReact16",value:function(){var a=this.props,s=a.hasChildren,u=a.placement,f=a.target;return s?this.renderPortal():f||u==="center"?this.renderPortal():null}},{key:"render",value:function(){return Dl?this.renderReact16():null}}]),r}(Me.Component);Ht(pT,"propTypes",{children:me.oneOfType([me.element,me.array]),hasChildren:me.bool,id:me.oneOfType([me.string,me.number]),placement:me.string,setRef:me.func.isRequired,target:me.oneOfType([me.object,me.string]),zIndex:me.number});var hT=function(e){Ss(r,e);var t=xs(r);function r(){return vs(this,r),t.apply(this,arguments)}return bs(r,[{key:"parentStyle",get:function(){var a=this.props,s=a.placement,u=a.styles,f=u.arrow.length,d={pointerEvents:"none",position:"absolute",width:"100%"};return s.startsWith("top")?(d.bottom=0,d.left=0,d.right=0,d.height=f):s.startsWith("bottom")?(d.left=0,d.right=0,d.top=0,d.height=f):s.startsWith("left")?(d.right=0,d.top=0,d.bottom=0):s.startsWith("right")&&(d.left=0,d.top=0),d}},{key:"render",value:function(){var a=this.props,s=a.placement,u=a.setArrowRef,f=a.styles,d=f.arrow,p=d.color,m=d.display,g=d.length,v=d.margin,S=d.position,w=d.spread,x={display:m,position:S},T,E=w,O=g;return s.startsWith("top")?(T="0,0 ".concat(E/2,",").concat(O," ").concat(E,",0"),x.bottom=0,x.marginLeft=v,x.marginRight=v):s.startsWith("bottom")?(T="".concat(E,",").concat(O," ").concat(E/2,",0 0,").concat(O),x.top=0,x.marginLeft=v,x.marginRight=v):s.startsWith("left")?(O=w,E=g,T="0,0 ".concat(E,",").concat(O/2," 0,").concat(O),x.right=0,x.marginTop=v,x.marginBottom=v):s.startsWith("right")&&(O=w,E=g,T="".concat(E,",").concat(O," ").concat(E,",0 0,").concat(O/2),x.left=0,x.marginTop=v,x.marginBottom=v),Me.createElement("div",{className:"__floater__arrow",style:this.parentStyle},Me.createElement("span",{ref:u,style:x},Me.createElement("svg",{width:E,height:O,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Me.createElement("polygon",{points:T,fill:p}))))}}]),r}(Me.Component);Ht(hT,"propTypes",{placement:me.string.isRequired,setArrowRef:me.func.isRequired,styles:me.object.isRequired});var I4=["color","height","width"];function mT(e){var t=e.handleClick,r=e.styles,o=r.color,a=r.height,s=r.width,u=fT(r,I4);return Me.createElement("button",{"aria-label":"close",onClick:t,style:u,type:"button"},Me.createElement("svg",{width:"".concat(s,"px"),height:"".concat(a,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},Me.createElement("g",null,Me.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}mT.propTypes={handleClick:me.func.isRequired,styles:me.object.isRequired};function gT(e){var t=e.content,r=e.footer,o=e.handleClick,a=e.open,s=e.positionWrapper,u=e.showCloseButton,f=e.title,d=e.styles,p={content:Me.isValidElement(t)?t:Me.createElement("div",{className:"__floater__content",style:d.content},t)};return f&&(p.title=Me.isValidElement(f)?f:Me.createElement("div",{className:"__floater__title",style:d.title},f)),r&&(p.footer=Me.isValidElement(r)?r:Me.createElement("div",{className:"__floater__footer",style:d.footer},r)),(u||s)&&!J.boolean(a)&&(p.close=Me.createElement(mT,{styles:d.close,handleClick:o})),Me.createElement("div",{className:"__floater__container",style:d.container},p.close,p.title,p.content,p.footer)}gT.propTypes={content:me.node.isRequired,footer:me.node,handleClick:me.func.isRequired,open:me.bool,positionWrapper:me.bool.isRequired,showCloseButton:me.bool.isRequired,styles:me.object.isRequired,title:me.node};var yT=function(e){Ss(r,e);var t=xs(r);function r(){return vs(this,r),t.apply(this,arguments)}return bs(r,[{key:"style",get:function(){var a=this.props,s=a.disableAnimation,u=a.component,f=a.placement,d=a.hideArrow,p=a.status,m=a.styles,g=m.arrow.length,v=m.floater,S=m.floaterCentered,w=m.floaterClosing,x=m.floaterOpening,T=m.floaterWithAnimation,E=m.floaterWithComponent,O={};return d||(f.startsWith("top")?O.padding="0 0 ".concat(g,"px"):f.startsWith("bottom")?O.padding="".concat(g,"px 0 0"):f.startsWith("left")?O.padding="0 ".concat(g,"px 0 0"):f.startsWith("right")&&(O.padding="0 0 0 ".concat(g,"px"))),[Ye.OPENING,Ye.OPEN].indexOf(p)!==-1&&(O=ct(ct({},O),x)),p===Ye.CLOSING&&(O=ct(ct({},O),w)),p===Ye.OPEN&&!s&&(O=ct(ct({},O),T)),f==="center"&&(O=ct(ct({},O),S)),u&&(O=ct(ct({},O),E)),ct(ct({},v),O)}},{key:"render",value:function(){var a=this.props,s=a.component,u=a.handleClick,f=a.hideArrow,d=a.setFloaterRef,p=a.status,m={},g=["__floater"];return s?Me.isValidElement(s)?m.content=Me.cloneElement(s,{closeFn:u}):m.content=s({closeFn:u}):m.content=Me.createElement(gT,this.props),p===Ye.OPEN&&g.push("__floater__open"),f||(m.arrow=Me.createElement(hT,this.props)),Me.createElement("div",{ref:d,className:g.join(" "),style:this.style},Me.createElement("div",{className:"__floater__body"},m.content,m.arrow))}}]),r}(Me.Component);Ht(yT,"propTypes",{component:me.oneOfType([me.func,me.element]),content:me.node,disableAnimation:me.bool.isRequired,footer:me.node,handleClick:me.func.isRequired,hideArrow:me.bool.isRequired,open:me.bool,placement:me.string.isRequired,positionWrapper:me.bool.isRequired,setArrowRef:me.func.isRequired,setFloaterRef:me.func.isRequired,showCloseButton:me.bool,status:me.string.isRequired,styles:me.object.isRequired,title:me.node});var vT=function(e){Ss(r,e);var t=xs(r);function r(){return vs(this,r),t.apply(this,arguments)}return bs(r,[{key:"render",value:function(){var a=this.props,s=a.children,u=a.handleClick,f=a.handleMouseEnter,d=a.handleMouseLeave,p=a.setChildRef,m=a.setWrapperRef,g=a.style,v=a.styles,S;if(s)if(Me.Children.count(s)===1)if(!Me.isValidElement(s))S=Me.createElement("span",null,s);else{var w=J.function(s.type)?"innerRef":"ref";S=Me.cloneElement(Me.Children.only(s),Ht({},w,p))}else S=s;return S?Me.createElement("span",{ref:m,style:ct(ct({},v),g),onClick:u,onMouseEnter:f,onMouseLeave:d},S):null}}]),r}(Me.Component);Ht(vT,"propTypes",{children:me.node,handleClick:me.func.isRequired,handleMouseEnter:me.func.isRequired,handleMouseLeave:me.func.isRequired,setChildRef:me.func.isRequired,setWrapperRef:me.func.isRequired,style:me.object,styles:me.object.isRequired});var j4={zIndex:100};function U4(e){var t=qn(j4,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var B4=["arrow","flip","offset"],H4=["position","top","right","bottom","left"],sg=function(e){Ss(r,e);var t=xs(r);function r(o){var a;return vs(this,r),a=t.call(this,o),Ht(zr(a),"setArrowRef",function(s){a.arrowRef=s}),Ht(zr(a),"setChildRef",function(s){a.childRef=s}),Ht(zr(a),"setFloaterRef",function(s){a.floaterRef=s}),Ht(zr(a),"setWrapperRef",function(s){a.wrapperRef=s}),Ht(zr(a),"handleTransitionEnd",function(){var s=a.state.status,u=a.props.callback;a.wrapperPopper&&a.wrapperPopper.instance.update(),a.setState({status:s===Ye.OPENING?Ye.OPEN:Ye.IDLE},function(){var f=a.state.status;u(f===Ye.OPEN?"open":"close",a.props)})}),Ht(zr(a),"handleClick",function(){var s=a.props,u=s.event,f=s.open;if(!J.boolean(f)){var d=a.state,p=d.positionWrapper,m=d.status;(a.event==="click"||a.event==="hover"&&p)&&(qu({title:"click",data:[{event:u,status:m===Ye.OPEN?"closing":"opening"}],debug:a.debug}),a.toggle())}}),Ht(zr(a),"handleMouseEnter",function(){var s=a.props,u=s.event,f=s.open;if(!(J.boolean(f)||Zp())){var d=a.state.status;a.event==="hover"&&d===Ye.IDLE&&(qu({title:"mouseEnter",data:[{key:"originalEvent",value:u}],debug:a.debug}),clearTimeout(a.eventDelayTimeout),a.toggle())}}),Ht(zr(a),"handleMouseLeave",function(){var s=a.props,u=s.event,f=s.eventDelay,d=s.open;if(!(J.boolean(d)||Zp())){var p=a.state,m=p.status,g=p.positionWrapper;a.event==="hover"&&(qu({title:"mouseLeave",data:[{key:"originalEvent",value:u}],debug:a.debug}),f?[Ye.OPENING,Ye.OPEN].indexOf(m)!==-1&&!g&&!a.eventDelayTimeout&&(a.eventDelayTimeout=setTimeout(function(){delete a.eventDelayTimeout,a.toggle()},f*1e3)):a.toggle(Ye.IDLE))}}),a.state={currentPlacement:o.placement,needsUpdate:!1,positionWrapper:o.wrapperOptions.position&&!!o.target,status:Ye.INIT,statusWrapper:Ye.INIT},a._isMounted=!1,a.hasMounted=!1,ir()&&window.addEventListener("load",function(){a.popper&&a.popper.instance.update(),a.wrapperPopper&&a.wrapperPopper.instance.update()}),a}return bs(r,[{key:"componentDidMount",value:function(){if(ir()){var a=this.state.positionWrapper,s=this.props,u=s.children,f=s.open,d=s.target;this._isMounted=!0,qu({title:"init",data:{hasChildren:!!u,hasTarget:!!d,isControlled:J.boolean(f),positionWrapper:a,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!u&&d&&J.boolean(f)}}},{key:"componentDidUpdate",value:function(a,s){if(ir()){var u=this.props,f=u.autoOpen,d=u.open,p=u.target,m=u.wrapperOptions,g=x4(s,this.state),v=g.changedFrom,S=g.changed;if(a.open!==d){var w;J.boolean(d)&&(w=d?Ye.OPENING:Ye.CLOSING),this.toggle(w)}(a.wrapperOptions.position!==m.position||a.target!==p)&&this.changeWrapperPosition(this.props),S("status",Ye.IDLE)&&d?this.toggle(Ye.OPEN):v("status",Ye.INIT,Ye.IDLE)&&f&&this.toggle(Ye.OPEN),this.popper&&S("status",Ye.OPENING)&&this.popper.instance.update(),this.floaterRef&&(S("status",Ye.OPENING)||S("status",Ye.CLOSING))&&z4(this.floaterRef,"transitionend",this.handleTransitionEnd),S("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ir()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var a=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,u=this.state.positionWrapper,f=this.props,d=f.disableFlip,p=f.getPopper,m=f.hideArrow,g=f.offset,v=f.placement,S=f.wrapperOptions,w=v==="top"||v==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(v==="center")this.setState({status:Ye.IDLE});else if(s&&this.floaterRef){var x=this.options,T=x.arrow,E=x.flip,O=x.offset,_=fT(x,B4);new ts(s,this.floaterRef,{placement:v,modifiers:ct({arrow:ct({enabled:!m,element:this.arrowRef},T),flip:ct({enabled:!d,behavior:w},E),offset:ct({offset:"0, ".concat(g,"px")},O)},_),onCreate:function(D){var I;if(a.popper=D,!((I=a.floaterRef)!==null&&I!==void 0&&I.isConnected)){a.setState({needsUpdate:!0});return}p(D,"floater"),a._isMounted&&a.setState({currentPlacement:D.placement,status:Ye.IDLE}),v!==D.placement&&setTimeout(function(){D.instance.update()},1)},onUpdate:function(D){a.popper=D;var I=a.state.currentPlacement;a._isMounted&&D.placement!==I&&a.setState({currentPlacement:D.placement})}})}if(u){var L=J.undefined(S.offset)?0:S.offset;new ts(this.target,this.wrapperRef,{placement:S.placement||v,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(L,"px")},flip:{enabled:!1}},onCreate:function(D){a.wrapperPopper=D,a._isMounted&&a.setState({statusWrapper:Ye.IDLE}),p(D,"wrapper"),v!==D.placement&&setTimeout(function(){D.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var a=this;this.floaterRefInterval=setInterval(function(){var s;(s=a.floaterRef)!==null&&s!==void 0&&s.isConnected&&(clearInterval(a.floaterRefInterval),a.setState({needsUpdate:!1}),a.initPopper())},50)}},{key:"changeWrapperPosition",value:function(a){var s=a.target,u=a.wrapperOptions;this.setState({positionWrapper:u.position&&!!s})}},{key:"toggle",value:function(a){var s=this.state.status,u=s===Ye.OPEN?Ye.CLOSING:Ye.OPENING;J.undefined(a)||(u=a),this.setState({status:u})}},{key:"debug",get:function(){var a=this.props.debug;return a||ir()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var a=this.props,s=a.disableHoverToClick,u=a.event;return u==="hover"&&Zp()&&!s?"click":u}},{key:"options",get:function(){var a=this.props.options;return qn(O4,a||{})}},{key:"styles",get:function(){var a=this,s=this.state,u=s.status,f=s.positionWrapper,d=s.statusWrapper,p=this.props.styles,m=qn(U4(p),p);if(f){var g;[Ye.IDLE].indexOf(u)===-1||[Ye.IDLE].indexOf(d)===-1?g=m.wrapperPosition:g=this.wrapperPopper.styles,m.wrapper=ct(ct({},m.wrapper),g)}if(this.target){var v=window.getComputedStyle(this.target);this.wrapperStyles?m.wrapper=ct(ct({},m.wrapper),this.wrapperStyles):["relative","static"].indexOf(v.position)===-1&&(this.wrapperStyles={},f||(H4.forEach(function(S){a.wrapperStyles[S]=v[S]}),m.wrapper=ct(ct({},m.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return m}},{key:"target",get:function(){if(!ir())return null;var a=this.props.target;return a?J.domElement(a)?a:document.querySelector(a):this.childRef||this.wrapperRef}},{key:"render",value:function(){var a=this.state,s=a.currentPlacement,u=a.positionWrapper,f=a.status,d=this.props,p=d.children,m=d.component,g=d.content,v=d.disableAnimation,S=d.footer,w=d.hideArrow,x=d.id,T=d.open,E=d.showCloseButton,O=d.style,_=d.target,L=d.title,P=Me.createElement(vT,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:O,styles:this.styles.wrapper},p),D={};return u?D.wrapperInPortal=P:D.wrapperAsChildren=P,Me.createElement("span",null,Me.createElement(pT,{hasChildren:!!p,id:x,placement:s,setRef:this.setFloaterRef,target:_,zIndex:this.styles.options.zIndex},Me.createElement(yT,{component:m,content:g,disableAnimation:v,footer:S,handleClick:this.handleClick,hideArrow:w||s==="center",open:T,placement:s,positionWrapper:u,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:E,status:f,styles:this.styles,title:L}),D.wrapperInPortal),D.wrapperAsChildren)}}]),r}(Me.Component);Ht(sg,"propTypes",{autoOpen:me.bool,callback:me.func,children:me.node,component:X1(me.oneOfType([me.func,me.element]),function(e){return!e.content}),content:X1(me.node,function(e){return!e.component}),debug:me.bool,disableAnimation:me.bool,disableFlip:me.bool,disableHoverToClick:me.bool,event:me.oneOf(["hover","click"]),eventDelay:me.number,footer:me.node,getPopper:me.func,hideArrow:me.bool,id:me.oneOfType([me.string,me.number]),offset:me.number,open:me.bool,options:me.object,placement:me.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:me.bool,style:me.object,styles:me.object,target:me.oneOfType([me.object,me.string]),title:me.node,wrapperOptions:me.shape({offset:me.number,placement:me.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:me.bool})});Ht(sg,"defaultProps",{autoOpen:!1,callback:W1,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:W1,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var F4=Object.defineProperty,q4=(e,t,r)=>t in e?F4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xe=(e,t,r)=>q4(e,typeof t!="symbol"?t+"":t,r),We={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Fn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},Pe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Ge={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function yi(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function bT(e){return e?e.getBoundingClientRect():null}function V4(e=!1){const{body:t,documentElement:r}=document;if(!t||!r)return 0;if(e){const o=[t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight].sort((s,u)=>s-u),a=Math.floor(o.length/2);return o.length%2===0?(o[a-1]+o[a])/2:o[a]}return Math.max(t.scrollHeight,t.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function jr(e){if(typeof e=="string")try{return document.querySelector(e)}catch{return null}return e}function G4(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function ns(e,t,r){if(!e)return Yi();const o=YC(e);if(o){if(o.isSameNode(Yi()))return r?document:Yi();if(!(o.scrollHeight>o.offsetHeight)&&!t)return o.style.overflow="initial",Yi()}return o}function Jc(e,t){if(!e)return!1;const r=ns(e,t);return r?!r.isSameNode(Yi()):!1}function $4(e){return e.offsetParent!==document.body}function va(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:r}=e,o=G4(e);return r==="BODY"||r==="HTML"?!1:o&&o.position===t?!0:e.parentNode?va(e.parentNode,t):!1}function Y4(e){var t;if(!e)return!1;let r=e;for(;r&&r!==document.body;){if(r instanceof HTMLElement){const{display:o,visibility:a}=getComputedStyle(r);if(o==="none"||a==="hidden")return!1}r=(t=r.parentElement)!=null?t:null}return!0}function K4(e,t,r){var o,a,s;const u=bT(e),f=ns(e,r),d=Jc(e,r),p=va(e);let m=0,g=(o=u?.top)!=null?o:0;if(d&&p){const v=(a=e?.offsetTop)!=null?a:0,S=(s=f?.scrollTop)!=null?s:0;g=v-S}else f instanceof HTMLElement&&(m=f.scrollTop,!d&&!va(e)&&(g+=m),f.isSameNode(Yi())||(g+=Yi().scrollTop));return Math.floor(g-t)}function Q4(e,t,r){var o;if(!e)return 0;const{offsetTop:a=0,scrollTop:s=0}=(o=YC(e))!=null?o:{};let u=e.getBoundingClientRect().top+s;a&&(Jc(e,r)||$4(e))&&(u-=a);const f=Math.floor(u-t);return f<0?0:f}function Yi(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function X4(e,t){const{duration:r,element:o}=t;return new Promise((a,s)=>{const{scrollTop:u}=o,f=e>u?e-u:u-e;fz.top(o,e,{duration:f<100?50:r},d=>d&&d.message!=="Element already at target scroll position"?s(d):a())})}var Nl=fr.createPortal!==void 0;function ST(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function tc(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function or(e,t={}){const{defaultValue:r,step:o,steps:a}=t;let s=D1(e);if(s)(s.includes("{step}")||s.includes("{steps}"))&&o&&a&&(s=s.replace("{step}",o.toString()).replace("{steps}",a.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&tc(e.type)==="function"){const u=e.type({});s=or(u,t)}else s=D1(r);return s}function W4(e,t){return!Se.plainObject(e)||!Se.array(t)?!1:Object.keys(e).every(r=>t.includes(r))}function Z4(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,r=e.replace(t,(a,s,u,f)=>s+s+u+u+f+f),o=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);return o?[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]:[]}function Z1(e){return e.disableBeacon||e.placement==="center"}function J1(){return!["chrome","safari","firefox","opera"].includes(ST())}function no({data:e,debug:t=!1,title:r,warn:o=!1}){const a=o?console.warn||console.error:console.log;t&&(r&&e?(console.groupCollapsed(`%creact-joyride: ${r}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(s=>{Se.plainObject(s)&&s.key?a.apply(console,[s.key,s.value]):a.apply(console,[s])}):a.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function J4(e){return Object.keys(e)}function xT(e,...t){if(!Se.plainObject(e))throw new TypeError("Expected an object");const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&(t.includes(o)||(r[o]=e[o]));return r}function e6(e,...t){if(!Se.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const r={};for(const o in e)({}).hasOwnProperty.call(e,o)&&t.includes(o)&&(r[o]=e[o]);return r}function Kh(e,t,r){const o=s=>s.replace("{step}",String(t)).replace("{steps}",String(r));if(tc(e)==="string")return o(e);if(!b.isValidElement(e))return e;const{children:a}=e.props;if(tc(a)==="string"&&a.includes("{step}"))return b.cloneElement(e,{children:o(a)});if(Array.isArray(a))return b.cloneElement(e,{children:a.map(s=>typeof s=="string"?o(s):Kh(s,t,r))});if(tc(e.type)==="function"&&!Object.values(e.props).length){const s=e.type({});return Kh(s,t,r)}return e}function t6(e){const{isFirstStep:t,lifecycle:r,previousLifecycle:o,scrollToFirstStep:a,step:s,target:u}=e;return!s.disableScrolling&&(!t||a||r===Pe.TOOLTIP)&&s.placement!=="center"&&(!s.isFixed||!va(u))&&o!==r&&[Pe.BEACON,Pe.TOOLTIP].includes(r)}var n6={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},wT={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},r6={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:wT,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},i6={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},o6={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Pl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},eS={borderRadius:4,position:"absolute"};function a6(e,t){var r,o,a,s,u;const{floaterProps:f,styles:d}=e,p=qn((r=t.floaterProps)!=null?r:{},f??{}),m=qn(d??{},(o=t.styles)!=null?o:{}),g=qn(o6,m.options||{}),v=t.placement==="center"||t.disableBeacon;let{width:S}=g;window.innerWidth>480&&(S=380),"width"in g&&(S=typeof g.width=="number"&&window.innerWidth<g.width?window.innerWidth-30:g.width);const w={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:g.zIndex},x={beacon:{...Pl,display:v?"none":"inline-block",height:g.beaconSize,position:"relative",width:g.beaconSize,zIndex:g.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:g.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Z4(g.primaryColor).join(",")}, 0.2)`,border:`2px solid ${g.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:g.backgroundColor,borderRadius:5,boxSizing:"border-box",color:g.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:S},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Pl,backgroundColor:g.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Pl,color:g.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Pl,color:g.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Pl,color:g.textColor,fontSize:14},overlay:{...w,backgroundColor:g.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...w},overlayLegacyCenter:{...w,backgroundColor:g.overlayColor},spotlight:{...eS,backgroundColor:"gray"},spotlightLegacy:{...eS,boxShadow:`0 0 0 9999px ${g.overlayColor}, ${g.spotlightShadow}`},floaterStyles:{arrow:{color:(u=(s=(a=p?.styles)==null?void 0:a.arrow)==null?void 0:s.color)!=null?u:g.arrowColor},options:{zIndex:g.zIndex+100}},options:g};return qn(x,m)}function l6(e){return e6(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function ea(e,t){var r,o,a,s,u,f;const d=t??{},p=qn.all([r6,l6(e),d],{isMergeableObject:Se.plainObject}),m=a6(e,p),g=Jc(jr(p.target),p.disableScrollParentFix),v=qn.all([n6,(r=e.floaterProps)!=null?r:{},(o=p.floaterProps)!=null?o:{}]);return v.offset=p.offset,v.styles=qn((a=v.styles)!=null?a:{},m.floaterStyles),v.offset+=(u=(s=e.spotlightPadding)!=null?s:p.spotlightPadding)!=null?u:0,p.placementBeacon&&v.wrapperOptions&&(v.wrapperOptions.placement=p.placementBeacon),g&&v.options.preventOverflow&&(v.options.preventOverflow.boundariesElement="window"),{...p,locale:qn.all([wT,(f=e.locale)!=null?f:{},p.locale||{}]),floaterProps:v,styles:xT(m,"floaterStyles")}}function ET(e,t=!1){return Se.plainObject(e)?e.target?!0:(no({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(no({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function tS(e,t=!1){return Se.array(e)?e.every(r=>ET(r,t)):(no({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var CT={action:"init",controlled:!1,index:0,lifecycle:Pe.INIT,origin:null,size:0,status:Ge.IDLE},nS=J4(xT(CT,"controlled","size")),s6=class{constructor(e){xe(this,"beaconPopper"),xe(this,"tooltipPopper"),xe(this,"data",new Map),xe(this,"listener"),xe(this,"store",new Map),xe(this,"addListener",a=>{this.listener=a}),xe(this,"setSteps",a=>{const{size:s,status:u}=this.getState(),f={size:a.length,status:u};this.data.set("steps",a),u===Ge.WAITING&&!s&&a.length&&(f.status=Ge.RUNNING),this.setState(f)}),xe(this,"getPopper",a=>a==="beacon"?this.beaconPopper:this.tooltipPopper),xe(this,"setPopper",(a,s)=>{a==="beacon"?this.beaconPopper=s:this.tooltipPopper=s}),xe(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),xe(this,"close",(a=null)=>{const{index:s,status:u}=this.getState();u===Ge.RUNNING&&this.setState({...this.getNextState({action:We.CLOSE,index:s+1,origin:a})})}),xe(this,"go",a=>{const{controlled:s,status:u}=this.getState();if(s||u!==Ge.RUNNING)return;const f=this.getSteps()[a];this.setState({...this.getNextState({action:We.GO,index:a}),status:f?u:Ge.FINISHED})}),xe(this,"info",()=>this.getState()),xe(this,"next",()=>{const{index:a,status:s}=this.getState();s===Ge.RUNNING&&this.setState(this.getNextState({action:We.NEXT,index:a+1}))}),xe(this,"open",()=>{const{status:a}=this.getState();a===Ge.RUNNING&&this.setState({...this.getNextState({action:We.UPDATE,lifecycle:Pe.TOOLTIP})})}),xe(this,"prev",()=>{const{index:a,status:s}=this.getState();s===Ge.RUNNING&&this.setState({...this.getNextState({action:We.PREV,index:a-1})})}),xe(this,"reset",(a=!1)=>{const{controlled:s}=this.getState();s||this.setState({...this.getNextState({action:We.RESET,index:0}),status:a?Ge.RUNNING:Ge.READY})}),xe(this,"skip",()=>{const{status:a}=this.getState();a===Ge.RUNNING&&this.setState({action:We.SKIP,lifecycle:Pe.INIT,status:Ge.SKIPPED})}),xe(this,"start",a=>{const{index:s,size:u}=this.getState();this.setState({...this.getNextState({action:We.START,index:Se.number(a)?a:s},!0),status:u?Ge.RUNNING:Ge.WAITING})}),xe(this,"stop",(a=!1)=>{const{index:s,status:u}=this.getState();[Ge.FINISHED,Ge.SKIPPED].includes(u)||this.setState({...this.getNextState({action:We.STOP,index:s+(a?1:0)}),status:Ge.PAUSED})}),xe(this,"update",a=>{var s,u;if(!W4(a,nS))throw new Error(`State is not valid. Valid keys: ${nS.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...a,action:(s=a.action)!=null?s:We.UPDATE,origin:(u=a.origin)!=null?u:null},!0)})});const{continuous:t=!1,stepIndex:r,steps:o=[]}=e??{};this.setState({action:We.INIT,controlled:Se.number(r),continuous:t,index:Se.number(r)?r:0,lifecycle:Pe.INIT,origin:null,status:o.length?Ge.READY:Ge.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(o)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...CT}}getNextState(e,t=!1){var r,o,a,s,u;const{action:f,controlled:d,index:p,size:m,status:g}=this.getState(),v=Se.number(e.index)?e.index:p,S=d&&!t?p:Math.min(Math.max(v,0),m);return{action:(r=e.action)!=null?r:f,controlled:d,index:S,lifecycle:(o=e.lifecycle)!=null?o:Pe.INIT,origin:(a=e.origin)!=null?a:null,size:(s=e.size)!=null?s:m,status:S===m?Ge.FINISHED:(u=e.status)!=null?u:g}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),r=JSON.stringify(this.getState());return t!==r}setState(e,t=!1){const r=this.getState(),{action:o,index:a,lifecycle:s,origin:u=null,size:f,status:d}={...r,...e};this.store.set("action",o),this.store.set("index",a),this.store.set("lifecycle",s),this.store.set("origin",u),this.store.set("size",f),this.store.set("status",d),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(r)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function u6(e){return new s6(e)}function c6({styles:e}){return b.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var f6=c6,d6=class extends b.Component{constructor(){super(...arguments),xe(this,"isActive",!1),xe(this,"resizeTimeout"),xe(this,"scrollTimeout"),xe(this,"scrollParent"),xe(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),xe(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:r}=this.props,o=[Pe.INIT,Pe.BEACON,Pe.COMPLETE,Pe.ERROR];return t||(e?o.includes(r):r!==Pe.TOOLTIP)}),xe(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:r,left:o,position:a,top:s,width:u}=this.spotlightStyles,f=a==="fixed"?e.clientY:e.pageY,d=a==="fixed"?e.clientX:e.pageX,p=f>=s&&f<=s+r,g=d>=o&&d<=o+u&&p;g!==t&&this.updateState({mouseOverSpotlight:g})}),xe(this,"handleScroll",()=>{const{target:e}=this.props,t=jr(e);if(this.scrollParent!==document){const{isScrolling:r}=this.state;r||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else va(t,"sticky")&&this.updateState({})}),xe(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:r=!1,target:o}=this.props,a=jr(o);this.scrollParent=ns(a??document.body,r,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:r,lifecycle:o,spotlightClicks:a,target:s}=this.props,{changed:u}=yc(e,this.props);if(u("target")||u("disableScrollParentFix")){const f=jr(s);this.scrollParent=ns(f??document.body,r,!0)}u("lifecycle",Pe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:f}=this.state;f||this.updateState({showSpotlight:!0})},100)),(u("spotlightClicks")||u("disableOverlay")||u("lifecycle"))&&(a&&o===Pe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):o!==Pe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:r,styles:o}=this.props;let a=o.overlay;return J1()&&(a=r==="center"?o.overlayLegacyCenter:o.overlayLegacy),{cursor:t?"default":"pointer",height:V4(),pointerEvents:e?"none":"auto",...a}}get spotlightStyles(){var e,t,r;const{showSpotlight:o}=this.state,{disableScrollParentFix:a=!1,spotlightClicks:s,spotlightPadding:u=0,styles:f,target:d}=this.props,p=jr(d),m=bT(p),g=va(p),v=K4(p,u,a);return{...J1()?f.spotlightLegacy:f.spotlight,height:Math.round(((e=m?.height)!=null?e:0)+u*2),left:Math.round(((t=m?.left)!=null?t:0)-u),opacity:o?1:0,pointerEvents:s?"none":"auto",position:g?"fixed":"absolute",top:v,transition:"opacity 0.2s",width:Math.round(((r=m?.width)!=null?r:0)+u*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:r}=this.props,{hideSpotlight:o,overlayStyles:a,spotlightStyles:s}=this;if(o())return null;let u=r!=="center"&&e&&b.createElement(f6,{styles:s});if(ST()==="safari"){const{mixBlendMode:f,zIndex:d,...p}=a;u=b.createElement("div",{style:{...p}},u),delete a.backgroundColor}return b.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:a},u)}},p6=class extends b.Component{constructor(){super(...arguments),xe(this,"node",null)}componentDidMount(){const{id:e}=this.props;yi()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Nl||this.renderReact15())}componentDidUpdate(){yi()&&(Nl||this.renderReact15())}componentWillUnmount(){!yi()||!this.node||(Nl||fr.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!yi())return;const{children:e}=this.props;this.node&&fr.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!yi()||!Nl)return null;const{children:e}=this.props;return this.node?fr.createPortal(e,this.node):null}render(){return Nl?this.renderReact16():null}},h6=class{constructor(e,t){if(xe(this,"element"),xe(this,"options"),xe(this,"canBeTabbed",r=>{const{tabIndex:o}=r;return o===null||o<0?!1:this.canHaveFocus(r)}),xe(this,"canHaveFocus",r=>{const o=/input|select|textarea|button|object/,a=r.nodeName.toLowerCase();return(o.test(a)&&!r.getAttribute("disabled")||a==="a"&&!!r.getAttribute("href"))&&this.isVisible(r)}),xe(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),xe(this,"handleKeyDown",r=>{const{code:o="Tab"}=this.options;r.code===o&&this.interceptTab(r)}),xe(this,"interceptTab",r=>{r.preventDefault();const o=this.findValidTabElements(),{shiftKey:a}=r;if(!o.length)return;let s=document.activeElement?o.indexOf(document.activeElement):0;s===-1||!a&&s+1===o.length?s=0:a&&s===0?s=o.length-1:s+=a?-1:1,o[s].focus()}),xe(this,"isHidden",r=>{const o=r.offsetWidth<=0&&r.offsetHeight<=0,a=window.getComputedStyle(r);return o&&!r.innerHTML?!0:o&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),xe(this,"isVisible",r=>{let o=r;for(;o;)if(o instanceof HTMLElement){if(o===document.body)break;if(this.isHidden(o))return!1;o=o.parentNode}return!0}),xe(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),xe(this,"checkFocus",r=>{document.activeElement!==r&&(r.focus(),window.requestAnimationFrame(()=>this.checkFocus(r)))}),xe(this,"setFocus",()=>{const{selector:r}=this.options;if(!r)return;const o=this.element.querySelector(r);o&&window.requestAnimationFrame(()=>this.checkFocus(o))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},m6=class extends b.Component{constructor(e){if(super(e),xe(this,"beacon",null),xe(this,"setBeaconRef",a=>{this.beacon=a}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.id="joyride-beacon-animation",e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode(`
|
|
507
|
+
@keyframes joyride-beacon-inner {
|
|
508
|
+
20% {
|
|
509
|
+
opacity: 0.9;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
90% {
|
|
513
|
+
opacity: 0.7;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
@keyframes joyride-beacon-outer {
|
|
518
|
+
0% {
|
|
519
|
+
transform: scale(1);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
45% {
|
|
523
|
+
opacity: 0.7;
|
|
524
|
+
transform: scale(0.75);
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
100% {
|
|
528
|
+
opacity: 0.9;
|
|
529
|
+
transform: scale(1);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
`)),t.appendChild(r)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout(()=>{Se.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:r,isLastStep:o,locale:a,onClickOrHover:s,size:u,step:f,styles:d}=this.props,p=or(a.open),m={"aria-label":p,onClick:s,onMouseEnter:s,ref:this.setBeaconRef,title:p};let g;if(e){const v=e;g=b.createElement(v,{continuous:t,index:r,isLastStep:o,size:u,step:f,...m})}else g=b.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:d.beacon,type:"button",...m},b.createElement("span",{style:d.beaconInner}),b.createElement("span",{style:d.beaconOuter}));return g}};function g6({styles:e,...t}){const{color:r,height:o,width:a,...s}=e;return Me.createElement("button",{style:s,type:"button",...t},Me.createElement("svg",{height:typeof o=="number"?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof a=="number"?`${a}px`:a,xmlns:"http://www.w3.org/2000/svg"},Me.createElement("g",null,Me.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}var y6=g6;function v6(e){const{backProps:t,closeProps:r,index:o,isLastStep:a,primaryProps:s,skipProps:u,step:f,tooltipProps:d}=e,{content:p,hideBackButton:m,hideCloseButton:g,hideFooter:v,showSkipButton:S,styles:w,title:x}=f,T={};return T.primary=b.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...s}),S&&!a&&(T.skip=b.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...u})),!m&&o>0&&(T.back=b.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),T.close=!g&&b.createElement(y6,{"data-test-id":"button-close",styles:w.buttonClose,...r}),b.createElement("div",{key:"JoyrideTooltip","aria-label":or(x??p),className:"react-joyride__tooltip",style:w.tooltip,...d},b.createElement("div",{style:w.tooltipContainer},x&&b.createElement("h1",{"aria-label":or(x),style:w.tooltipTitle},x),b.createElement("div",{style:w.tooltipContent},p)),!v&&b.createElement("div",{style:w.tooltipFooter},b.createElement("div",{style:w.tooltipFooterSpacer},T.skip),T.back,T.primary),T.close)}var b6=v6,S6=class extends b.Component{constructor(){super(...arguments),xe(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),xe(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),xe(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:r}=this.props;if(!t){r.close("button_primary");return}r.next()}),xe(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),xe(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:a,step:s}=this.props,{back:u,close:f,last:d,next:p,nextLabelWithProgress:m,skip:g}=s.locale,v=or(u),S=or(f),w=or(d),x=or(p),T=or(g);let E=f,O=S;if(e){if(E=p,O=x,s.showProgress&&!r){const _=or(m,{step:t+1,steps:a});E=Kh(m,t+1,a),O=_}r&&(E=d,O=w)}return{backProps:{"aria-label":v,children:u,"data-action":"back",onClick:this.handleClickBack,role:"button",title:v},closeProps:{"aria-label":S,children:f,"data-action":"close",onClick:this.handleClickClose,role:"button",title:S},primaryProps:{"aria-label":O,children:E,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:O},skipProps:{"aria-label":T,children:g,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:T},tooltipProps:{"aria-modal":!0,ref:o,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:r,setTooltipRef:o,size:a,step:s}=this.props,{beaconComponent:u,tooltipComponent:f,...d}=s;let p;if(f){const m={...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:a,step:d,setTooltipRef:o},g=f;p=b.createElement(g,{...m})}else p=b.createElement(b6,{...this.getElementsProps(),continuous:e,index:t,isLastStep:r,size:a,step:s});return p}},x6=class extends b.Component{constructor(){super(...arguments),xe(this,"scope",null),xe(this,"tooltip",null),xe(this,"handleClickHoverBeacon",e=>{const{step:t,store:r}=this.props;e.type==="mouseenter"&&t.event!=="hover"||r.update({lifecycle:Pe.TOOLTIP})}),xe(this,"setTooltipRef",e=>{this.tooltip=e}),xe(this,"setPopper",(e,t)=>{var r;const{action:o,lifecycle:a,step:s,store:u}=this.props;t==="wrapper"?u.setPopper("beacon",e):u.setPopper("tooltip",e),u.getPopper("beacon")&&(u.getPopper("tooltip")||s.placement==="center")&&a===Pe.INIT&&u.update({action:o,lifecycle:Pe.READY}),(r=s.floaterProps)!=null&&r.getPopper&&s.floaterProps.getPopper(e,t)}),xe(this,"renderTooltip",e=>{const{continuous:t,helpers:r,index:o,size:a,step:s}=this.props;return b.createElement(S6,{continuous:t,helpers:r,index:o,isLastStep:o+1===a,setTooltipRef:this.setTooltipRef,size:a,step:s,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;no({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:r,callback:o,continuous:a,controlled:s,debug:u,helpers:f,index:d,lifecycle:p,shouldScroll:m,status:g,step:v,store:S}=this.props,{changed:w,changedFrom:x}=yc(e,this.props),T=f.info(),E=a&&r!==We.CLOSE&&(d>0||r===We.PREV),O=w("action")||w("index")||w("lifecycle")||w("status"),_=x("lifecycle",[Pe.TOOLTIP,Pe.INIT],Pe.INIT),L=w("action",[We.NEXT,We.PREV,We.SKIP,We.CLOSE]),P=s&&d===e.index;if(L&&(_||P)&&o({...T,index:e.index,lifecycle:Pe.COMPLETE,step:e.step,type:Fn.STEP_AFTER}),v.placement==="center"&&g===Ge.RUNNING&&w("index")&&r!==We.START&&p===Pe.INIT&&S.update({lifecycle:Pe.READY}),O){const D=jr(v.target),I=!!D;I&&Y4(D)?(x("status",Ge.READY,Ge.RUNNING)||x("lifecycle",Pe.INIT,Pe.READY))&&o({...T,step:v,type:Fn.STEP_BEFORE}):(console.warn(I?"Target not visible":"Target not mounted",v),o({...T,type:Fn.TARGET_NOT_FOUND,step:v}),s||S.update({index:d+(r===We.PREV?-1:1)}))}x("lifecycle",Pe.INIT,Pe.READY)&&S.update({lifecycle:Z1(v)||E?Pe.TOOLTIP:Pe.BEACON}),w("index")&&no({title:`step:${p}`,data:[{key:"props",value:this.props}],debug:u}),w("lifecycle",Pe.BEACON)&&o({...T,step:v,type:Fn.BEACON}),w("lifecycle",Pe.TOOLTIP)&&(o({...T,step:v,type:Fn.TOOLTIP}),m&&this.tooltip&&(this.scope=new h6(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Pe.TOOLTIP,Pe.INIT],Pe.INIT)&&((t=this.scope)==null||t.removeScope(),S.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return Z1(t)||e===Pe.TOOLTIP}render(){const{continuous:e,debug:t,index:r,nonce:o,shouldScroll:a,size:s,step:u}=this.props,f=jr(u.target);return!ET(u)||!Se.domElement(f)?null:b.createElement("div",{key:`JoyrideStep-${r}`,className:"react-joyride__step"},b.createElement(sg,{...u.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${r}`,open:this.open,placement:u.placement,target:u.target},b.createElement(m6,{beaconComponent:u.beaconComponent,continuous:e,index:r,isLastStep:r+1===s,locale:u.locale,nonce:o,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:a,size:s,step:u,styles:u.styles})))}},TT=class extends b.Component{constructor(e){super(e),xe(this,"helpers"),xe(this,"store"),xe(this,"callback",u=>{const{callback:f}=this.props;Se.function(f)&&f(u)}),xe(this,"handleKeyboard",u=>{const{index:f,lifecycle:d}=this.state,{steps:p}=this.props,m=p[f];d===Pe.TOOLTIP&&u.code==="Escape"&&m&&!m.disableCloseOnEsc&&this.store.close("keyboard")}),xe(this,"handleClickOverlay",()=>{const{index:u}=this.state,{steps:f}=this.props;ea(this.props,f[u]).disableOverlayClose||this.helpers.close("overlay")}),xe(this,"syncState",u=>{this.setState(u)});const{debug:t,getHelpers:r,run:o=!0,stepIndex:a}=e;this.store=u6({...e,controlled:o&&Se.number(a)}),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;no({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),s(this.syncState),r&&r(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!yi())return;const{debug:e,disableCloseOnEsc:t,run:r,steps:o}=this.props,{start:a}=this.store;tS(o,e)&&r&&a(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!yi())return;const{action:r,controlled:o,index:a,status:s}=this.state,{debug:u,run:f,stepIndex:d,steps:p}=this.props,{stepIndex:m,steps:g}=e,{reset:v,setSteps:S,start:w,stop:x,update:T}=this.store,{changed:E}=yc(e,this.props),{changed:O,changedFrom:_}=yc(t,this.state),L=ea(this.props,p[a]),P=!Vt(g,p),D=Se.number(d)&&E("stepIndex"),I=jr(L.target);if(P&&(tS(p,u)?S(p):console.warn("Steps are not valid",p)),E("run")&&(f?w(d):x()),D){let Z=Se.number(m)&&m<d?We.NEXT:We.PREV;r===We.STOP&&(Z=We.START),[Ge.FINISHED,Ge.SKIPPED].includes(s)||T({action:r===We.CLOSE?We.CLOSE:Z,index:d,lifecycle:Pe.INIT})}!o&&s===Ge.RUNNING&&a===0&&!I&&(this.store.update({index:a+1}),this.callback({...this.state,type:Fn.TARGET_NOT_FOUND,step:L}));const G={...this.state,index:a,step:L};if(O("action",[We.NEXT,We.PREV,We.SKIP,We.CLOSE])&&O("status",Ge.PAUSED)){const Z=ea(this.props,p[t.index]);this.callback({...G,index:t.index,lifecycle:Pe.COMPLETE,step:Z,type:Fn.STEP_AFTER})}if(O("status",[Ge.FINISHED,Ge.SKIPPED])){const Z=ea(this.props,p[t.index]);o||this.callback({...G,index:t.index,lifecycle:Pe.COMPLETE,step:Z,type:Fn.STEP_AFTER}),this.callback({...G,type:Fn.TOUR_END,step:Z,index:t.index}),v()}else _("status",[Ge.IDLE,Ge.READY],Ge.RUNNING)?this.callback({...G,type:Fn.TOUR_START}):(O("status")||O("action",We.RESET))&&this.callback({...G,type:Fn.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:r,status:o}=this.state,{debug:a,disableScrollParentFix:s=!1,scrollDuration:u,scrollOffset:f=20,scrollToFirstStep:d=!1,steps:p}=this.props,m=ea(this.props,p[t]),g=jr(m.target),v=t6({isFirstStep:t===0,lifecycle:r,previousLifecycle:e.lifecycle,scrollToFirstStep:d,step:m,target:g});if(o===Ge.RUNNING&&v){const S=Jc(g,s),w=ns(g,s);let x=Math.floor(Q4(g,f,s))||0;no({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:r},{key:"status",value:o}],debug:a});const T=this.store.getPopper("beacon"),E=this.store.getPopper("tooltip");if(r===Pe.BEACON&&T){const{offsets:O,placement:_}=T;!["bottom"].includes(_)&&!S&&(x=Math.floor(O.popper.top-f))}else if(r===Pe.TOOLTIP&&E){const{flipped:O,offsets:_,placement:L}=E;["top","right","left"].includes(L)&&!O&&!S?x=Math.floor(_.popper.top-f):x-=m.spotlightPadding}x=x>=0?x:0,o===Ge.RUNNING&&X4(x,{element:w,duration:u}).then(()=>{setTimeout(()=>{var O;(O=this.store.getPopper("tooltip"))==null||O.instance.update()},10)})}}render(){if(!yi())return null;const{index:e,lifecycle:t,status:r}=this.state,{continuous:o=!1,debug:a=!1,nonce:s,scrollToFirstStep:u=!1,steps:f}=this.props,d=r===Ge.RUNNING,p={};if(d&&f[e]){const m=ea(this.props,f[e]);p.step=b.createElement(x6,{...this.state,callback:this.callback,continuous:o,debug:a,helpers:this.helpers,nonce:s,shouldScroll:!m.disableScrolling&&(e!==0||u),step:m,store:this.store}),p.overlay=b.createElement(p6,{id:"react-joyride-portal"},b.createElement(d6,{...m,continuous:o,debug:a,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return b.createElement("div",{className:"react-joyride"},p.step,p.overlay)}};xe(TT,"defaultProps",i6);var bB=TT,ug="ToastProvider",[cg,w6,E6]=Bc("Toast"),[RT,SB]=Gt("Toast",[E6]),[C6,ef]=RT(ug),OT=e=>{const{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:u}=e,[f,d]=b.useState(null),[p,m]=b.useState(0),g=b.useRef(!1),v=b.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${ug}\`. Expected non-empty \`string\`.`),k.jsx(cg.Provider,{scope:t,children:k.jsx(C6,{scope:t,label:r,duration:o,swipeDirection:a,swipeThreshold:s,toastCount:p,viewport:f,onViewportChange:d,onToastAdd:b.useCallback(()=>m(S=>S+1),[]),onToastRemove:b.useCallback(()=>m(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v,children:u})})};OT.displayName=ug;var AT="ToastViewport",T6=["F8"],Qh="toast.viewportPause",Xh="toast.viewportResume",MT=b.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:o=T6,label:a="Notifications ({hotkey})",...s}=e,u=ef(AT,r),f=w6(r),d=b.useRef(null),p=b.useRef(null),m=b.useRef(null),g=b.useRef(null),v=Le(t,g,u.onViewportChange),S=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=u.toastCount>0;b.useEffect(()=>{const T=E=>{o.length!==0&&o.every(_=>E[_]||E.code===_)&&g.current?.focus()};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[o]),b.useEffect(()=>{const T=d.current,E=g.current;if(w&&T&&E){const O=()=>{if(!u.isClosePausedRef.current){const D=new CustomEvent(Qh);E.dispatchEvent(D),u.isClosePausedRef.current=!0}},_=()=>{if(u.isClosePausedRef.current){const D=new CustomEvent(Xh);E.dispatchEvent(D),u.isClosePausedRef.current=!1}},L=D=>{!T.contains(D.relatedTarget)&&_()},P=()=>{T.contains(document.activeElement)||_()};return T.addEventListener("focusin",O),T.addEventListener("focusout",L),T.addEventListener("pointermove",O),T.addEventListener("pointerleave",P),window.addEventListener("blur",O),window.addEventListener("focus",_),()=>{T.removeEventListener("focusin",O),T.removeEventListener("focusout",L),T.removeEventListener("pointermove",O),T.removeEventListener("pointerleave",P),window.removeEventListener("blur",O),window.removeEventListener("focus",_)}}},[w,u.isClosePausedRef]);const x=b.useCallback(({tabbingDirection:T})=>{const O=f().map(_=>{const L=_.ref.current,P=[L,...j6(L)];return T==="forwards"?P:P.reverse()});return(T==="forwards"?O.reverse():O).flat()},[f]);return b.useEffect(()=>{const T=g.current;if(T){const E=O=>{const _=O.altKey||O.ctrlKey||O.metaKey;if(O.key==="Tab"&&!_){const P=document.activeElement,D=O.shiftKey;if(O.target===T&&D){p.current?.focus();return}const X=x({tabbingDirection:D?"backwards":"forwards"}),Z=X.findIndex(Q=>Q===P);Jp(X.slice(Z+1))?O.preventDefault():D?p.current?.focus():m.current?.focus()}};return T.addEventListener("keydown",E),()=>T.removeEventListener("keydown",E)}},[f,x]),k.jsxs(LM,{ref:d,role:"region","aria-label":a.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&k.jsx(Wh,{ref:p,onFocusFromOutsideViewport:()=>{const T=x({tabbingDirection:"forwards"});Jp(T)}}),k.jsx(cg.Slot,{scope:r,children:k.jsx(we.ol,{tabIndex:-1,...s,ref:v})}),w&&k.jsx(Wh,{ref:m,onFocusFromOutsideViewport:()=>{const T=x({tabbingDirection:"backwards"});Jp(T)}})]})});MT.displayName=AT;var _T="ToastFocusProxy",Wh=b.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:o,...a}=e,s=ef(_T,r);return k.jsx(Lc,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:u=>{const f=u.relatedTarget;!s.viewport?.contains(f)&&o()}})});Wh.displayName=_T;var ws="Toast",R6="toast.swipeStart",O6="toast.swipeMove",A6="toast.swipeCancel",M6="toast.swipeEnd",kT=b.forwardRef((e,t)=>{const{forceMount:r,open:o,defaultOpen:a,onOpenChange:s,...u}=e,[f,d]=pr({prop:o,defaultProp:a??!0,onChange:s,caller:ws});return k.jsx(zt,{present:r||f,children:k.jsx(D6,{open:f,...u,ref:t,onClose:()=>d(!1),onPause:yt(e.onPause),onResume:yt(e.onResume),onSwipeStart:ge(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:ge(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,p=>{const{x:m,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})})});kT.displayName=ws;var[_6,k6]=RT(ws,{onClose(){}}),D6=b.forwardRef((e,t)=>{const{__scopeToast:r,type:o="foreground",duration:a,open:s,onClose:u,onEscapeKeyDown:f,onPause:d,onResume:p,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:S,...w}=e,x=ef(ws,r),[T,E]=b.useState(null),O=Le(t,F=>E(F)),_=b.useRef(null),L=b.useRef(null),P=a||x.duration,D=b.useRef(0),I=b.useRef(P),G=b.useRef(0),{onToastAdd:X,onToastRemove:Z}=x,Q=yt(()=>{T?.contains(document.activeElement)&&x.viewport?.focus(),u()}),W=b.useCallback(F=>{!F||F===1/0||(window.clearTimeout(G.current),D.current=new Date().getTime(),G.current=window.setTimeout(Q,F))},[Q]);b.useEffect(()=>{const F=x.viewport;if(F){const oe=()=>{W(I.current),p?.()},z=()=>{const K=new Date().getTime()-D.current;I.current=I.current-K,window.clearTimeout(G.current),d?.()};return F.addEventListener(Qh,z),F.addEventListener(Xh,oe),()=>{F.removeEventListener(Qh,z),F.removeEventListener(Xh,oe)}}},[x.viewport,P,d,p,W]),b.useEffect(()=>{s&&!x.isClosePausedRef.current&&W(P)},[s,P,x.isClosePausedRef,W]),b.useEffect(()=>(X(),()=>Z()),[X,Z]);const ue=b.useMemo(()=>T?jT(T):null,[T]);return x.viewport?k.jsxs(k.Fragment,{children:[ue&&k.jsx(N6,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:ue}),k.jsx(_6,{scope:r,onClose:Q,children:fr.createPortal(k.jsx(cg.ItemSlot,{scope:r,children:k.jsx(PM,{asChild:!0,onEscapeKeyDown:ge(f,()=>{x.isFocusedToastEscapeKeyDownRef.current||Q(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:k.jsx(we.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":x.swipeDirection,...w,ref:O,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,F=>{F.key==="Escape"&&(f?.(F.nativeEvent),F.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:ge(e.onPointerDown,F=>{F.button===0&&(_.current={x:F.clientX,y:F.clientY})}),onPointerMove:ge(e.onPointerMove,F=>{if(!_.current)return;const oe=F.clientX-_.current.x,z=F.clientY-_.current.y,K=!!L.current,ee=["left","right"].includes(x.swipeDirection),le=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,R=ee?le(0,oe):0,$=ee?0:le(0,z),fe=F.pointerType==="touch"?10:2,A={x:R,y:$},te={originalEvent:F,delta:A};K?(L.current=A,Vu(O6,g,te,{discrete:!1})):rS(A,x.swipeDirection,fe)?(L.current=A,Vu(R6,m,te,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(oe)>fe||Math.abs(z)>fe)&&(_.current=null)}),onPointerUp:ge(e.onPointerUp,F=>{const oe=L.current,z=F.target;if(z.hasPointerCapture(F.pointerId)&&z.releasePointerCapture(F.pointerId),L.current=null,_.current=null,oe){const K=F.currentTarget,ee={originalEvent:F,delta:oe};rS(oe,x.swipeDirection,x.swipeThreshold)?Vu(M6,S,ee,{discrete:!0}):Vu(A6,v,ee,{discrete:!0}),K.addEventListener("click",le=>le.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),N6=e=>{const{__scopeToast:t,children:r,...o}=e,a=ef(ws,t),[s,u]=b.useState(!1),[f,d]=b.useState(!1);return z6(()=>u(!0)),b.useEffect(()=>{const p=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(p)},[]),f?null:k.jsx(Sa,{asChild:!0,children:k.jsx(Lc,{...o,children:s&&k.jsxs(k.Fragment,{children:[a.label," ",r]})})})},P6="ToastTitle",DT=b.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return k.jsx(we.div,{...o,ref:t})});DT.displayName=P6;var L6="ToastDescription",NT=b.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e;return k.jsx(we.div,{...o,ref:t})});NT.displayName=L6;var PT="ToastAction",LT=b.forwardRef((e,t)=>{const{altText:r,...o}=e;return r.trim()?k.jsx(IT,{altText:r,asChild:!0,children:k.jsx(fg,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${PT}\`. Expected non-empty \`string\`.`),null)});LT.displayName=PT;var zT="ToastClose",fg=b.forwardRef((e,t)=>{const{__scopeToast:r,...o}=e,a=k6(zT,r);return k.jsx(IT,{asChild:!0,children:k.jsx(we.button,{type:"button",...o,ref:t,onClick:ge(e.onClick,a.onClose)})})});fg.displayName=zT;var IT=b.forwardRef((e,t)=>{const{__scopeToast:r,altText:o,...a}=e;return k.jsx(we.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:t})});function jT(e){const t=[];return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),I6(o)){const a=o.ariaHidden||o.hidden||o.style.display==="none",s=o.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const u=o.dataset.radixToastAnnounceAlt;u&&t.push(u)}else t.push(...jT(o))}}),t}function Vu(e,t,r,{discrete:o}){const a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?cm(a,s):a.dispatchEvent(s)}var rS=(e,t,r=0)=>{const o=Math.abs(e.x),a=Math.abs(e.y),s=o>a;return t==="left"||t==="right"?s&&o>r:!s&&a>r};function z6(e=()=>{}){const t=yt(e);vt(()=>{let r=0,o=0;return r=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(o)}},[t])}function I6(e){return e.nodeType===e.ELEMENT_NODE}function j6(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Jp(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var xB=OT,wB=MT,EB=kT,CB=DT,TB=NT,RB=LT,OB=fg;function AB(){}function U6(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const B6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,H6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,F6={};function iS(e,t){return(F6.jsx?H6:B6).test(e)}const q6=/[ \t\n\f\r]/g;function V6(e){return typeof e=="object"?e.type==="text"?oS(e.value):!1:oS(e)}function oS(e){return e.replace(q6,"")===""}class Es{constructor(t,r,o){this.normal=r,this.property=t,o&&(this.space=o)}}Es.prototype.normal={};Es.prototype.property={};Es.prototype.space=void 0;function UT(e,t){const r={},o={};for(const a of e)Object.assign(r,a.property),Object.assign(o,a.normal);return new Es(r,o,t)}function Zh(e){return e.toLowerCase()}class rn{constructor(t,r){this.attribute=r,this.property=t}}rn.prototype.attribute="";rn.prototype.booleanish=!1;rn.prototype.boolean=!1;rn.prototype.commaOrSpaceSeparated=!1;rn.prototype.commaSeparated=!1;rn.prototype.defined=!1;rn.prototype.mustUseProperty=!1;rn.prototype.number=!1;rn.prototype.overloadedBoolean=!1;rn.prototype.property="";rn.prototype.spaceSeparated=!1;rn.prototype.space=void 0;let G6=0;const je=so(),Ct=so(),Jh=so(),pe=so(),at=so(),ua=so(),mn=so();function so(){return 2**++G6}const em=Object.freeze(Object.defineProperty({__proto__:null,boolean:je,booleanish:Ct,commaOrSpaceSeparated:mn,commaSeparated:ua,number:pe,overloadedBoolean:Jh,spaceSeparated:at},Symbol.toStringTag,{value:"Module"})),eh=Object.keys(em);class dg extends rn{constructor(t,r,o,a){let s=-1;if(super(t,r),aS(this,"space",a),typeof o=="number")for(;++s<eh.length;){const u=eh[s];aS(this,eh[s],(o&em[u])===em[u])}}}dg.prototype.defined=!0;function aS(e,t,r){r&&(e[t]=r)}function _a(e){const t={},r={};for(const[o,a]of Object.entries(e.properties)){const s=new dg(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),t[o]=s,r[Zh(o)]=o,r[Zh(s.attribute)]=o}return new Es(t,r,e.space)}const BT=_a({properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:at,ariaCurrent:null,ariaDescribedBy:at,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:at,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:at,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:at,ariaLevel:pe,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:at,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:at,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ct,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function HT(e,t){return t in e?e[t]:t}function FT(e,t){return HT(e,t.toLowerCase())}const $6=_a({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ua,acceptCharset:at,accessKey:at,action:null,allow:null,allowFullScreen:je,allowPaymentRequest:je,allowUserMedia:je,alt:null,as:null,async:je,autoCapitalize:null,autoComplete:at,autoFocus:je,autoPlay:je,blocking:at,capture:null,charSet:null,checked:je,cite:null,className:at,cols:pe,colSpan:null,content:null,contentEditable:Ct,controls:je,controlsList:at,coords:pe|ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:je,defer:je,dir:null,dirName:null,disabled:je,download:Jh,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:je,formTarget:null,headers:at,height:pe,hidden:Jh,high:pe,href:null,hrefLang:null,htmlFor:at,httpEquiv:at,id:null,imageSizes:null,imageSrcSet:null,inert:je,inputMode:null,integrity:null,is:null,isMap:je,itemId:null,itemProp:at,itemRef:at,itemScope:je,itemType:at,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:je,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:je,muted:je,name:null,nonce:null,noModule:je,noValidate:je,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:je,optimum:pe,pattern:null,ping:at,placeholder:null,playsInline:je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:je,referrerPolicy:null,rel:at,required:je,reversed:je,rows:pe,rowSpan:pe,sandbox:at,scope:null,scoped:je,seamless:je,selected:je,shadowRootClonable:je,shadowRootDelegatesFocus:je,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:je,useMap:null,value:Ct,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:at,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:je,declare:je,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:je,noHref:je,noShade:je,noWrap:je,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:je,disableRemotePlayback:je,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:FT}),Y6=_a({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:at,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:je,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ua,g2:ua,glyphName:ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:mn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:at,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mn,rev:mn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mn,requiredFeatures:mn,requiredFonts:mn,requiredFormats:mn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:mn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:HT}),qT=_a({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),VT=_a({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:FT}),GT=_a({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),K6={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Q6=/[A-Z]/g,lS=/-[a-z]/g,X6=/^data[-\w.:]+$/i;function W6(e,t){const r=Zh(t);let o=t,a=rn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&X6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(lS,J6);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!lS.test(s)){let u=s.replace(Q6,Z6);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=dg}return new a(o,t)}function Z6(e){return"-"+e.toLowerCase()}function J6(e){return e.charAt(1).toUpperCase()}const eI=UT([BT,$6,qT,VT,GT],"html"),pg=UT([BT,Y6,qT,VT,GT],"svg");function tI(e){return e.join(" ").trim()}var ta={},th,sS;function nI(){if(sS)return th;sS=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
533
|
+
`,p="/",m="*",g="",v="comment",S="declaration";th=function(x,T){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];T=T||{};var E=1,O=1;function _(ue){var F=ue.match(t);F&&(E+=F.length);var oe=ue.lastIndexOf(d);O=~oe?ue.length-oe:O+ue.length}function L(){var ue={line:E,column:O};return function(F){return F.position=new P(ue),G(),F}}function P(ue){this.start=ue,this.end={line:E,column:O},this.source=T.source}P.prototype.content=x;function D(ue){var F=new Error(T.source+":"+E+":"+O+": "+ue);if(F.reason=ue,F.filename=T.source,F.line=E,F.column=O,F.source=x,!T.silent)throw F}function I(ue){var F=ue.exec(x);if(F){var oe=F[0];return _(oe),x=x.slice(oe.length),F}}function G(){I(r)}function X(ue){var F;for(ue=ue||[];F=Z();)F!==!1&&ue.push(F);return ue}function Z(){var ue=L();if(!(p!=x.charAt(0)||m!=x.charAt(1))){for(var F=2;g!=x.charAt(F)&&(m!=x.charAt(F)||p!=x.charAt(F+1));)++F;if(F+=2,g===x.charAt(F-1))return D("End of comment missing");var oe=x.slice(2,F-2);return O+=2,_(oe),x=x.slice(F),O+=2,ue({type:v,comment:oe})}}function Q(){var ue=L(),F=I(o);if(F){if(Z(),!I(a))return D("property missing ':'");var oe=I(s),z=ue({type:S,property:w(F[0].replace(e,g)),value:oe?w(oe[0].replace(e,g)):g});return I(u),z}}function W(){var ue=[];X(ue);for(var F;F=Q();)F!==!1&&(ue.push(F),X(ue));return ue}return G(),W()};function w(x){return x?x.replace(f,g):g}return th}var uS;function rI(){if(uS)return ta;uS=1;var e=ta&&ta.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ta,"__esModule",{value:!0}),ta.default=r;var t=e(nI());function r(o,a){var s=null;if(!o||typeof o!="string")return s;var u=(0,t.default)(o),f=typeof a=="function";return u.forEach(function(d){if(d.type==="declaration"){var p=d.property,m=d.value;f?a(p,m,d):m&&(s=s||{},s[p]=m)}}),s}return ta}var Ll={},cS;function iI(){if(cS)return Ll;cS=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(p){return!p||r.test(p)||e.test(p)},u=function(p,m){return m.toUpperCase()},f=function(p,m){return"".concat(m,"-")},d=function(p,m){return m===void 0&&(m={}),s(p)?p:(p=p.toLowerCase(),m.reactCompat?p=p.replace(a,f):p=p.replace(o,f),p.replace(t,u))};return Ll.camelCase=d,Ll}var zl,fS;function oI(){if(fS)return zl;fS=1;var e=zl&&zl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(rI()),r=iI();function o(a,s){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(f,d){f&&d&&(u[(0,r.camelCase)(f,s)]=d)}),u}return o.default=o,zl=o,zl}var aI=oI();const lI=qr(aI),$T=YT("end"),hg=YT("start");function YT(e){return t;function t(r){const o=r&&r.position&&r.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function sI(e){const t=hg(e),r=$T(e);if(t&&r)return{start:t,end:r}}function Vl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?dS(e.position):"start"in e||"end"in e?dS(e):"line"in e||"column"in e?tm(e):""}function tm(e){return pS(e&&e.line)+":"+pS(e&&e.column)}function dS(e){return tm(e&&e.start)+"-"+tm(e&&e.end)}function pS(e){return e&&typeof e=="number"?e:1}class Ft extends Error{constructor(t,r,o){super(),typeof r=="string"&&(o=r,r=void 0);let a="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?a=t:!s.cause&&t&&(u=!0,a=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof o=="string"){const d=o.indexOf(":");d===-1?s.ruleId=o:(s.source=o.slice(0,d),s.ruleId=o.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=f?f.line:void 0,this.name=Vl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ft.prototype.file="";Ft.prototype.name="";Ft.prototype.reason="";Ft.prototype.message="";Ft.prototype.stack="";Ft.prototype.column=void 0;Ft.prototype.line=void 0;Ft.prototype.ancestors=void 0;Ft.prototype.cause=void 0;Ft.prototype.fatal=void 0;Ft.prototype.place=void 0;Ft.prototype.ruleId=void 0;Ft.prototype.source=void 0;const mg={}.hasOwnProperty,uI=new Map,cI=/[A-Z]/g,fI=new Set(["table","tbody","thead","tfoot","tr"]),dI=new Set(["td","th"]),KT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pI(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=xI(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=SI(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pg:eI,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=QT(a,e,void 0);return s&&typeof s!="string"?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}function QT(e,t,r){if(t.type==="element")return hI(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mI(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return yI(e,t,r);if(t.type==="mdxjsEsm")return gI(e,t);if(t.type==="root")return vI(e,t,r);if(t.type==="text")return bI(e,t)}function hI(e,t,r){const o=e.schema;let a=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(a=pg,e.schema=a),e.ancestors.push(t);const s=WT(e,t.tagName,!1),u=wI(e,t);let f=yg(e,t);return fI.has(t.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!V6(d):!0})),XT(e,u,s,t),gg(u,f),e.ancestors.pop(),e.schema=o,e.create(t,s,u,r)}function mI(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}rs(e,t.position)}function gI(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);rs(e,t.position)}function yI(e,t,r){const o=e.schema;let a=o;t.name==="svg"&&o.space==="html"&&(a=pg,e.schema=a),e.ancestors.push(t);const s=t.name===null?e.Fragment:WT(e,t.name,!0),u=EI(e,t),f=yg(e,t);return XT(e,u,s,t),gg(u,f),e.ancestors.pop(),e.schema=o,e.create(t,s,u,r)}function vI(e,t,r){const o={};return gg(o,yg(e,t)),e.create(t,e.Fragment,o,r)}function bI(e,t){return t.value}function XT(e,t,r,o){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=o)}function gg(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function SI(e,t,r){return o;function o(a,s,u,f){const p=Array.isArray(u.children)?r:t;return f?p(s,u,f):p(s,u)}}function xI(e,t){return r;function r(o,a,s,u){const f=Array.isArray(s.children),d=hg(o);return t(a,s,u,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function wI(e,t){const r={};let o,a;for(a in t.properties)if(a!=="children"&&mg.call(t.properties,a)){const s=CI(e,a,t.properties[a]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&dI.has(t.tagName)?o=f:r[u]=f}}if(o){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return r}function EI(e,t){const r={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const s=o.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else rs(e,t.position);else{const a=o.name;let s;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const f=o.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else rs(e,t.position);else s=o.value===null?!0:o.value;r[a]=s}return r}function yg(e,t){const r=[];let o=-1;const a=e.passKeys?new Map:uI;for(;++o<t.children.length;){const s=t.children[o];let u;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const p=a.get(d)||0;u=d+"-"+p,a.set(d,p+1)}}const f=QT(e,s,u);f!==void 0&&r.push(f)}return r}function CI(e,t,r){const o=W6(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=o.commaSeparated?U6(r):tI(r)),o.property==="style"){let a=typeof r=="object"?r:TI(e,String(r));return e.stylePropertyNameCase==="css"&&(a=RI(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&o.space?K6[o.property]||o.property:o.attribute,r]}}function TI(e,t){try{return lI(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const o=r,a=new Ft("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=KT+"#cannot-parse-style-attribute",a}}function WT(e,t,r){let o;if(!r)o={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let s=-1,u;for(;++s<a.length;){const f=iS(a[s])?{type:"Identifier",name:a[s]}:{type:"Literal",value:a[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}o=u}else o=iS(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const a=o.value;return mg.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(o);rs(e)}function rs(e,t){const r=new Ft("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=KT+"#cannot-handle-mdx-estrees-without-createevaluater",r}function RI(e){const t={};let r;for(r in e)mg.call(e,r)&&(t[OI(r)]=e[r]);return t}function OI(e){let t=e.replace(cI,AI);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function AI(e){return"-"+e.toLowerCase()}const nh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},MI={};function _I(e,t){const r=MI,o=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return ZT(e,o,a)}function ZT(e,t,r){if(kI(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hS(e.children,t,r)}return Array.isArray(e)?hS(e,t,r):""}function hS(e,t,r){const o=[];let a=-1;for(;++a<e.length;)o[a]=ZT(e[a],t,r);return o.join("")}function kI(e){return!!(e&&typeof e=="object")}const mS=document.createElement("i");function vg(e){const t="&"+e+";";mS.innerHTML=t;const r=mS.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function mr(e,t,r,o){const a=e.length;let s=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,o.length<1e4)u=Array.from(o),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);s<o.length;)u=o.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Dn(e,t){return e.length>0?(mr(e,e.length,0,t),e):t}const gS={}.hasOwnProperty;function DI(e){const t={};let r=-1;for(;++r<e.length;)NI(t,e[r]);return t}function NI(e,t){let r;for(r in t){const a=(gS.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let u;if(s)for(u in s){gS.call(a,u)||(a[u]=[]);const f=s[u];PI(a[u],Array.isArray(f)?f:f?[f]:[])}}}function PI(e,t){let r=-1;const o=[];for(;++r<t.length;)(t[r].add==="after"?e:o).push(t[r]);mr(e,0,0,o)}function JT(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function ca(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lr=Ri(/[A-Za-z]/),vn=Ri(/[\dA-Za-z]/),LI=Ri(/[#-'*+\--9=?A-Z^-~]/);function nm(e){return e!==null&&(e<32||e===127)}const rm=Ri(/\d/),zI=Ri(/[\dA-Fa-f]/),II=Ri(/[!-/:-@[-`{-~]/);function De(e){return e!==null&&e<-2}function nn(e){return e!==null&&(e<0||e===32)}function Xe(e){return e===-2||e===-1||e===32}const jI=Ri(/\p{P}|\p{S}/u),UI=Ri(/\s/);function Ri(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ka(e){const t=[];let r=-1,o=0,a=0;for(;++r<e.length;){const s=e.charCodeAt(r);let u="";if(s===37&&vn(e.charCodeAt(r+1))&&vn(e.charCodeAt(r+2)))a=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),a=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(o,r),encodeURIComponent(u)),o=r+a+1,u=""),a&&(r+=a,a=0)}return t.join("")+e.slice(o)}function lt(e,t,r,o){const a=o?o-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(d){return Xe(d)?(e.enter(r),f(d)):t(d)}function f(d){return Xe(d)&&s++<a?(e.consume(d),f):(e.exit(r),t(d))}}const BI={tokenize:HI};function HI(e){const t=e.attempt(this.parser.constructs.contentInitial,o,a);let r;return t;function o(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lt(e,t,"linePrefix")}function a(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return De(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const FI={tokenize:qI},yS={tokenize:VI};function qI(e){const t=this,r=[];let o=0,a,s,u;return f;function f(_){if(o<r.length){const L=r[o];return t.containerState=L[1],e.attempt(L[0].continuation,d,p)(_)}return p(_)}function d(_){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&O();const L=t.events.length;let P=L,D;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){D=t.events[P][1].end;break}E(o);let I=L;for(;I<t.events.length;)t.events[I][1].end={...D},I++;return mr(t.events,P+1,0,t.events.slice(L)),t.events.length=I,p(_)}return f(_)}function p(_){if(o===r.length){if(!a)return v(_);if(a.currentConstruct&&a.currentConstruct.concrete)return w(_);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(yS,m,g)(_)}function m(_){return a&&O(),E(o),v(_)}function g(_){return t.parser.lazy[t.now().line]=o!==r.length,u=t.now().offset,w(_)}function v(_){return t.containerState={},e.attempt(yS,S,w)(_)}function S(_){return o++,r.push([t.currentConstruct,t.containerState]),v(_)}function w(_){if(_===null){a&&O(),E(0),e.consume(_);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:s}),x(_)}function x(_){if(_===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(_);return}return De(_)?(e.consume(_),T(e.exit("chunkFlow")),o=0,t.interrupt=void 0,f):(e.consume(_),x)}function T(_,L){const P=t.sliceStream(_);if(L&&P.push(null),_.previous=s,s&&(s.next=_),s=_,a.defineSkip(_.start),a.write(P),t.parser.lazy[_.start.line]){let D=a.events.length;for(;D--;)if(a.events[D][1].start.offset<u&&(!a.events[D][1].end||a.events[D][1].end.offset>u))return;const I=t.events.length;let G=I,X,Z;for(;G--;)if(t.events[G][0]==="exit"&&t.events[G][1].type==="chunkFlow"){if(X){Z=t.events[G][1].end;break}X=!0}for(E(o),D=I;D<t.events.length;)t.events[D][1].end={...Z},D++;mr(t.events,G+1,0,t.events.slice(I)),t.events.length=D}}function E(_){let L=r.length;for(;L-- >_;){const P=r[L];t.containerState=P[1],P[0].exit.call(t,e)}r.length=_}function O(){a.write([null]),s=void 0,a=void 0,t.containerState._closeFlow=void 0}}function VI(e,t,r){return lt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vS(e){if(e===null||nn(e)||UI(e))return 1;if(jI(e))return 2}function bg(e,t,r){const o=[];let a=-1;for(;++a<e.length;){const s=e[a].resolveAll;s&&!o.includes(s)&&(t=s(t,r),o.push(s))}return t}const im={name:"attention",resolveAll:GI,tokenize:$I};function GI(e,t){let r=-1,o,a,s,u,f,d,p,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[o][1].end},v={...e[r][1].start};bS(g,-d),bS(v,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},s={type:d>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},a={type:d>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[o][1].end={...u.start},e[r][1].start={...f.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=Dn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=Dn(p,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",s,t]]),p=Dn(p,bg(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),p=Dn(p,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,p=Dn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,mr(e,o-1,r-o+3,p),r=o+p.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function $I(e,t){const r=this.parser.constructs.attentionMarkers.null,o=this.previous,a=vS(o);let s;return u;function u(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const p=e.exit("attentionSequence"),m=vS(d),g=!m||m===2&&a||r.includes(d),v=!a||a===2&&m||r.includes(o);return p._open=!!(s===42?g:g&&(a||!v)),p._close=!!(s===42?v:v&&(m||!g)),t(d)}}function bS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const YI={name:"autolink",tokenize:KI};function KI(e,t,r){let o=0;return a;function a(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(S){return lr(S)?(e.consume(S),u):S===64?r(S):p(S)}function u(S){return S===43||S===45||S===46||vn(S)?(o=1,f(S)):p(S)}function f(S){return S===58?(e.consume(S),o=0,d):(S===43||S===45||S===46||vn(S))&&o++<32?(e.consume(S),f):(o=0,p(S))}function d(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),t):S===null||S===32||S===60||nm(S)?r(S):(e.consume(S),d)}function p(S){return S===64?(e.consume(S),m):LI(S)?(e.consume(S),p):r(S)}function m(S){return vn(S)?g(S):r(S)}function g(S){return S===46?(e.consume(S),o=0,m):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),t):v(S)}function v(S){if((S===45||vn(S))&&o++<63){const w=S===45?v:g;return e.consume(S),w}return r(S)}}const tf={partial:!0,tokenize:QI};function QI(e,t,r){return o;function o(s){return Xe(s)?lt(e,a,"linePrefix")(s):a(s)}function a(s){return s===null||De(s)?t(s):r(s)}}const eR={continuation:{tokenize:WI},exit:ZI,name:"blockQuote",tokenize:XI};function XI(e,t,r){const o=this;return a;function a(u){if(u===62){const f=o.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return r(u)}function s(u){return Xe(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function WI(e,t,r){const o=this;return a;function a(u){return Xe(u)?lt(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(eR,t,r)(u)}}function ZI(e){e.exit("blockQuote")}const tR={name:"characterEscape",tokenize:JI};function JI(e,t,r){return o;function o(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),a}function a(s){return II(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const nR={name:"characterReference",tokenize:e5};function e5(e,t,r){const o=this;let a=0,s,u;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,u=vn,m(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=zI,m):(e.enter("characterReferenceValue"),s=7,u=rm,m(g))}function m(g){if(g===59&&a){const v=e.exit("characterReferenceValue");return u===vn&&!vg(o.sliceSerialize(v))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&a++<s?(e.consume(g),m):r(g)}}const SS={partial:!0,tokenize:n5},xS={concrete:!0,name:"codeFenced",tokenize:t5};function t5(e,t,r){const o=this,a={partial:!0,tokenize:P};let s=0,u=0,f;return d;function d(D){return p(D)}function p(D){const I=o.events[o.events.length-1];return s=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,f=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(D)}function m(D){return D===f?(u++,e.consume(D),m):u<3?r(D):(e.exit("codeFencedFenceSequence"),Xe(D)?lt(e,g,"whitespace")(D):g(D))}function g(D){return D===null||De(D)?(e.exit("codeFencedFence"),o.interrupt?t(D):e.check(SS,x,L)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||De(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(D)):Xe(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),lt(e,S,"whitespace")(D)):D===96&&D===f?r(D):(e.consume(D),v)}function S(D){return D===null||De(D)?g(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||De(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(D)):D===96&&D===f?r(D):(e.consume(D),w)}function x(D){return e.attempt(a,L,T)(D)}function T(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),E}function E(D){return s>0&&Xe(D)?lt(e,O,"linePrefix",s+1)(D):O(D)}function O(D){return D===null||De(D)?e.check(SS,x,L)(D):(e.enter("codeFlowValue"),_(D))}function _(D){return D===null||De(D)?(e.exit("codeFlowValue"),O(D)):(e.consume(D),_)}function L(D){return e.exit("codeFenced"),t(D)}function P(D,I,G){let X=0;return Z;function Z(oe){return D.enter("lineEnding"),D.consume(oe),D.exit("lineEnding"),Q}function Q(oe){return D.enter("codeFencedFence"),Xe(oe)?lt(D,W,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(oe):W(oe)}function W(oe){return oe===f?(D.enter("codeFencedFenceSequence"),ue(oe)):G(oe)}function ue(oe){return oe===f?(X++,D.consume(oe),ue):X>=u?(D.exit("codeFencedFenceSequence"),Xe(oe)?lt(D,F,"whitespace")(oe):F(oe)):G(oe)}function F(oe){return oe===null||De(oe)?(D.exit("codeFencedFence"),I(oe)):G(oe)}}}function n5(e,t,r){const o=this;return a;function a(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}const rh={name:"codeIndented",tokenize:i5},r5={partial:!0,tokenize:o5};function i5(e,t,r){const o=this;return a;function a(p){return e.enter("codeIndented"),lt(e,s,"linePrefix",5)(p)}function s(p){const m=o.events[o.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?d(p):De(p)?e.attempt(r5,u,d)(p):(e.enter("codeFlowValue"),f(p))}function f(p){return p===null||De(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),f)}function d(p){return e.exit("codeIndented"),t(p)}}function o5(e,t,r){const o=this;return a;function a(u){return o.parser.lazy[o.now().line]?r(u):De(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):lt(e,s,"linePrefix",5)(u)}function s(u){const f=o.events[o.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):De(u)?a(u):r(u)}}const a5={name:"codeText",previous:s5,resolve:l5,tokenize:u5};function l5(e){let t=e.length-4,r=3,o,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)a===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(a=o):(o===t||e[o][1].type==="lineEnding")&&(e[a][1].type="codeTextData",o!==a+2&&(e[a][1].end=e[o-1][1].end,e.splice(a+2,o-a-2),t-=o-a-2,o=a+2),a=void 0);return e}function s5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function u5(e,t,r){let o=0,a,s;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),o++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),a=0,m(g)):De(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||De(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),p)}function m(g){return g===96?(e.consume(g),a++,m):a===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",p(g))}}class c5{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const o=r??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,r,o){const a=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&Il(this.left,o),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Il(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Il(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Il(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Il(this.left,r.reverse())}}}function Il(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function rR(e){const t={};let r=-1,o,a,s,u,f,d,p;const m=new c5(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(o=m.get(r),r&&o[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=o[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,f5(m,r)),r=t[r],p=!0);else if(o[1]._container){for(s=r,a=void 0;s--;)if(u=m.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(a&&(m.get(a)[1].type="lineEndingBlank"),u[1].type="lineEnding",a=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;a&&(o[1].end={...m.get(a)[1].start},f=m.slice(a,r),f.unshift(o),m.splice(a,r-a+1,f))}}return mr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!p}function f5(e,t){const r=e.get(t)[1],o=e.get(t)[2];let a=t-1;const s=[];let u=r._tokenizer;u||(u=o.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,d=[],p={};let m,g,v=-1,S=r,w=0,x=0;const T=[x];for(;S;){for(;e.get(++a)[1]!==S;);s.push(a),S._tokenizer||(m=o.sliceStream(S),S.next||m.push(null),g&&u.defineSkip(S.start),S._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),S._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=r;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(x=v+1,T.push(x),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(u.events=[],S?(S._tokenizer=void 0,S.previous=void 0):T.pop(),v=T.length;v--;){const E=f.slice(T[v],T[v+1]),O=s.pop();d.push([O,O+E.length-1]),e.splice(O,2,E)}for(d.reverse(),v=-1;++v<d.length;)p[w+d[v][0]]=w+d[v][1],w+=d[v][1]-d[v][0]-1;return p}const d5={resolve:h5,tokenize:m5},p5={partial:!0,tokenize:g5};function h5(e){return rR(e),e}function m5(e,t){let r;return o;function o(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(f)}function a(f){return f===null?s(f):De(f)?e.check(p5,u,s)(f):(e.consume(f),a)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function g5(e,t,r){const o=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),lt(e,s,"linePrefix")}function s(u){if(u===null||De(u))return r(u);const f=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,r,t)(u)}}function iR(e,t,r,o,a,s,u,f,d){const p=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(E){return E===60?(e.enter(o),e.enter(a),e.enter(s),e.consume(E),e.exit(s),v):E===null||E===32||E===41||nm(E)?r(E):(e.enter(o),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),x(E))}function v(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(a),e.exit(o),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),S(E))}function S(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||De(E)?r(E):(e.consume(E),E===92?w:S)}function w(E){return E===60||E===62||E===92?(e.consume(E),S):S(E)}function x(E){return!m&&(E===null||E===41||nn(E))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(o),t(E)):m<p&&E===40?(e.consume(E),m++,x):E===41?(e.consume(E),m--,x):E===null||E===32||E===40||nm(E)?r(E):(e.consume(E),E===92?T:x)}function T(E){return E===40||E===41||E===92?(e.consume(E),x):x(E)}}function oR(e,t,r,o,a,s){const u=this;let f=0,d;return p;function p(S){return e.enter(o),e.enter(a),e.consume(S),e.exit(a),e.enter(s),m}function m(S){return f>999||S===null||S===91||S===93&&!d||S===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?r(S):S===93?(e.exit(s),e.enter(a),e.consume(S),e.exit(a),e.exit(o),t):De(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||De(S)||f++>999?(e.exit("chunkString"),m(S)):(e.consume(S),d||(d=!Xe(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(e.consume(S),f++,g):g(S)}}function aR(e,t,r,o,a,s){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(o),e.enter(a),e.consume(v),e.exit(a),u=v===40?41:v,d):r(v)}function d(v){return v===u?(e.enter(a),e.consume(v),e.exit(a),e.exit(o),t):(e.enter(s),p(v))}function p(v){return v===u?(e.exit(s),d(u)):v===null?r(v):De(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),lt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===u||v===null||De(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?g:m)}function g(v){return v===u||v===92?(e.consume(v),m):m(v)}}function Gl(e,t){let r;return o;function o(a){return De(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,o):Xe(a)?lt(e,o,r?"linePrefix":"lineSuffix")(a):t(a)}}const y5={name:"definition",tokenize:b5},v5={partial:!0,tokenize:S5};function b5(e,t,r){const o=this;let a;return s;function s(S){return e.enter("definition"),u(S)}function u(S){return oR.call(o,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function f(S){return a=ca(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),d):r(S)}function d(S){return nn(S)?Gl(e,p)(S):p(S)}function p(S){return iR(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function m(S){return e.attempt(v5,g,g)(S)}function g(S){return Xe(S)?lt(e,v,"whitespace")(S):v(S)}function v(S){return S===null||De(S)?(e.exit("definition"),o.parser.defined.push(a),t(S)):r(S)}}function S5(e,t,r){return o;function o(f){return nn(f)?Gl(e,a)(f):r(f)}function a(f){return aR(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Xe(f)?lt(e,u,"whitespace")(f):u(f)}function u(f){return f===null||De(f)?t(f):r(f)}}const x5={name:"hardBreakEscape",tokenize:w5};function w5(e,t,r){return o;function o(s){return e.enter("hardBreakEscape"),e.consume(s),a}function a(s){return De(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const E5={name:"headingAtx",resolve:C5,tokenize:T5};function C5(e,t){let r=e.length-2,o=3,a,s;return e[o][1].type==="whitespace"&&(o+=2),r-2>o&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(o===r-1||r-4>o&&e[r-2][1].type==="whitespace")&&(r-=o+1===r?2:4),r>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[r][1].end},s={type:"chunkText",start:e[o][1].start,end:e[r][1].end,contentType:"text"},mr(e,o,r-o+1,[["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t]])),e}function T5(e,t,r){let o=0;return a;function a(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&o++<6?(e.consume(m),u):m===null||nn(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||De(m)?(e.exit("atxHeading"),t(m)):Xe(m)?lt(e,f,"whitespace")(m):(e.enter("atxHeadingText"),p(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function p(m){return m===null||m===35||nn(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),p)}}const R5=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wS=["pre","script","style","textarea"],O5={concrete:!0,name:"htmlFlow",resolveTo:_5,tokenize:k5},A5={partial:!0,tokenize:N5},M5={partial:!0,tokenize:D5};function _5(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function k5(e,t,r){const o=this;let a,s,u,f,d;return p;function p(A){return m(A)}function m(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),g}function g(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),s=!0,x):A===63?(e.consume(A),a=3,o.interrupt?t:R):lr(A)?(e.consume(A),u=String.fromCharCode(A),T):r(A)}function v(A){return A===45?(e.consume(A),a=2,S):A===91?(e.consume(A),a=5,f=0,w):lr(A)?(e.consume(A),a=4,o.interrupt?t:R):r(A)}function S(A){return A===45?(e.consume(A),o.interrupt?t:R):r(A)}function w(A){const te="CDATA[";return A===te.charCodeAt(f++)?(e.consume(A),f===te.length?o.interrupt?t:W:w):r(A)}function x(A){return lr(A)?(e.consume(A),u=String.fromCharCode(A),T):r(A)}function T(A){if(A===null||A===47||A===62||nn(A)){const te=A===47,he=u.toLowerCase();return!te&&!s&&wS.includes(he)?(a=1,o.interrupt?t(A):W(A)):R5.includes(u.toLowerCase())?(a=6,te?(e.consume(A),E):o.interrupt?t(A):W(A)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?r(A):s?O(A):_(A))}return A===45||vn(A)?(e.consume(A),u+=String.fromCharCode(A),T):r(A)}function E(A){return A===62?(e.consume(A),o.interrupt?t:W):r(A)}function O(A){return Xe(A)?(e.consume(A),O):Z(A)}function _(A){return A===47?(e.consume(A),Z):A===58||A===95||lr(A)?(e.consume(A),L):Xe(A)?(e.consume(A),_):Z(A)}function L(A){return A===45||A===46||A===58||A===95||vn(A)?(e.consume(A),L):P(A)}function P(A){return A===61?(e.consume(A),D):Xe(A)?(e.consume(A),P):_(A)}function D(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),d=A,I):Xe(A)?(e.consume(A),D):G(A)}function I(A){return A===d?(e.consume(A),d=null,X):A===null||De(A)?r(A):(e.consume(A),I)}function G(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||nn(A)?P(A):(e.consume(A),G)}function X(A){return A===47||A===62||Xe(A)?_(A):r(A)}function Z(A){return A===62?(e.consume(A),Q):r(A)}function Q(A){return A===null||De(A)?W(A):Xe(A)?(e.consume(A),Q):r(A)}function W(A){return A===45&&a===2?(e.consume(A),z):A===60&&a===1?(e.consume(A),K):A===62&&a===4?(e.consume(A),$):A===63&&a===3?(e.consume(A),R):A===93&&a===5?(e.consume(A),le):De(A)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(A5,fe,ue)(A)):A===null||De(A)?(e.exit("htmlFlowData"),ue(A)):(e.consume(A),W)}function ue(A){return e.check(M5,F,fe)(A)}function F(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),oe}function oe(A){return A===null||De(A)?ue(A):(e.enter("htmlFlowData"),W(A))}function z(A){return A===45?(e.consume(A),R):W(A)}function K(A){return A===47?(e.consume(A),u="",ee):W(A)}function ee(A){if(A===62){const te=u.toLowerCase();return wS.includes(te)?(e.consume(A),$):W(A)}return lr(A)&&u.length<8?(e.consume(A),u+=String.fromCharCode(A),ee):W(A)}function le(A){return A===93?(e.consume(A),R):W(A)}function R(A){return A===62?(e.consume(A),$):A===45&&a===2?(e.consume(A),R):W(A)}function $(A){return A===null||De(A)?(e.exit("htmlFlowData"),fe(A)):(e.consume(A),$)}function fe(A){return e.exit("htmlFlow"),t(A)}}function D5(e,t,r){const o=this;return a;function a(u){return De(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):r(u)}function s(u){return o.parser.lazy[o.now().line]?r(u):t(u)}}function N5(e,t,r){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(tf,t,r)}}const P5={name:"htmlText",tokenize:L5};function L5(e,t,r){const o=this;let a,s,u;return f;function f(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),P):R===63?(e.consume(R),_):lr(R)?(e.consume(R),G):r(R)}function p(R){return R===45?(e.consume(R),m):R===91?(e.consume(R),s=0,w):lr(R)?(e.consume(R),O):r(R)}function m(R){return R===45?(e.consume(R),S):r(R)}function g(R){return R===null?r(R):R===45?(e.consume(R),v):De(R)?(u=g,K(R)):(e.consume(R),g)}function v(R){return R===45?(e.consume(R),S):g(R)}function S(R){return R===62?z(R):R===45?v(R):g(R)}function w(R){const $="CDATA[";return R===$.charCodeAt(s++)?(e.consume(R),s===$.length?x:w):r(R)}function x(R){return R===null?r(R):R===93?(e.consume(R),T):De(R)?(u=x,K(R)):(e.consume(R),x)}function T(R){return R===93?(e.consume(R),E):x(R)}function E(R){return R===62?z(R):R===93?(e.consume(R),E):x(R)}function O(R){return R===null||R===62?z(R):De(R)?(u=O,K(R)):(e.consume(R),O)}function _(R){return R===null?r(R):R===63?(e.consume(R),L):De(R)?(u=_,K(R)):(e.consume(R),_)}function L(R){return R===62?z(R):_(R)}function P(R){return lr(R)?(e.consume(R),D):r(R)}function D(R){return R===45||vn(R)?(e.consume(R),D):I(R)}function I(R){return De(R)?(u=I,K(R)):Xe(R)?(e.consume(R),I):z(R)}function G(R){return R===45||vn(R)?(e.consume(R),G):R===47||R===62||nn(R)?X(R):r(R)}function X(R){return R===47?(e.consume(R),z):R===58||R===95||lr(R)?(e.consume(R),Z):De(R)?(u=X,K(R)):Xe(R)?(e.consume(R),X):z(R)}function Z(R){return R===45||R===46||R===58||R===95||vn(R)?(e.consume(R),Z):Q(R)}function Q(R){return R===61?(e.consume(R),W):De(R)?(u=Q,K(R)):Xe(R)?(e.consume(R),Q):X(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),a=R,ue):De(R)?(u=W,K(R)):Xe(R)?(e.consume(R),W):(e.consume(R),F)}function ue(R){return R===a?(e.consume(R),a=void 0,oe):R===null?r(R):De(R)?(u=ue,K(R)):(e.consume(R),ue)}function F(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||nn(R)?X(R):(e.consume(R),F)}function oe(R){return R===47||R===62||nn(R)?X(R):r(R)}function z(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function K(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),ee}function ee(R){return Xe(R)?lt(e,le,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):le(R)}function le(R){return e.enter("htmlTextData"),u(R)}}const Sg={name:"labelEnd",resolveAll:U5,resolveTo:B5,tokenize:H5},z5={tokenize:F5},I5={tokenize:q5},j5={tokenize:V5};function U5(e){let t=-1;const r=[];for(;++t<e.length;){const o=e[t][1];if(r.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const a=o.type==="labelImage"?4:2;o.type="data",t+=a}}return e.length!==r.length&&mr(e,0,e.length,r),e}function B5(e,t){let r=e.length,o=0,a,s,u,f;for(;r--;)if(a=e[r][1],s){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(s=r,a.type!=="labelLink")){o=2;break}}else a.type==="labelEnd"&&(u=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[s+o+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",d,t],["enter",p,t]],f=Dn(f,e.slice(s+1,s+o+3)),f=Dn(f,[["enter",m,t]]),f=Dn(f,bg(t.parser.constructs.insideSpan.null,e.slice(s+o+4,u-3),t)),f=Dn(f,[["exit",m,t],e[u-2],e[u-1],["exit",p,t]]),f=Dn(f,e.slice(u+1)),f=Dn(f,[["exit",d,t]]),mr(e,s,e.length,f),e}function H5(e,t,r){const o=this;let a=o.events.length,s,u;for(;a--;)if((o.events[a][1].type==="labelImage"||o.events[a][1].type==="labelLink")&&!o.events[a][1]._balanced){s=o.events[a][1];break}return f;function f(v){return s?s._inactive?g(v):(u=o.parser.defined.includes(ca(o.sliceSerialize({start:s.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),d):r(v)}function d(v){return v===40?e.attempt(z5,m,u?m:g)(v):v===91?e.attempt(I5,m,u?p:g)(v):u?m(v):g(v)}function p(v){return e.attempt(j5,m,g)(v)}function m(v){return t(v)}function g(v){return s._balanced=!0,r(v)}}function F5(e,t,r){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),a}function a(g){return nn(g)?Gl(e,s)(g):s(g)}function s(g){return g===41?m(g):iR(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return nn(g)?Gl(e,d)(g):m(g)}function f(g){return r(g)}function d(g){return g===34||g===39||g===40?aR(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function p(g){return nn(g)?Gl(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):r(g)}}function q5(e,t,r){const o=this;return a;function a(f){return oR.call(o,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return o.parser.defined.includes(ca(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(f):r(f)}function u(f){return r(f)}}function V5(e,t,r){return o;function o(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),a}function a(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const G5={name:"labelStartImage",resolveAll:Sg.resolveAll,tokenize:$5};function $5(e,t,r){const o=this;return a;function a(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):r(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(f):t(f)}}const Y5={name:"labelStartLink",resolveAll:Sg.resolveAll,tokenize:K5};function K5(e,t,r){const o=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?r(u):t(u)}}const ih={name:"lineEnding",tokenize:Q5};function Q5(e,t){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),lt(e,t,"linePrefix")}}const nc={name:"thematicBreak",tokenize:X5};function X5(e,t,r){let o=0,a;return s;function s(p){return e.enter("thematicBreak"),u(p)}function u(p){return a=p,f(p)}function f(p){return p===a?(e.enter("thematicBreakSequence"),d(p)):o>=3&&(p===null||De(p))?(e.exit("thematicBreak"),t(p)):r(p)}function d(p){return p===a?(e.consume(p),o++,d):(e.exit("thematicBreakSequence"),Xe(p)?lt(e,f,"whitespace")(p):f(p))}}const en={continuation:{tokenize:ej},exit:nj,name:"list",tokenize:J5},W5={partial:!0,tokenize:rj},Z5={partial:!0,tokenize:tj};function J5(e,t,r){const o=this,a=o.events[o.events.length-1];let s=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return f;function f(S){const w=o.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!o.containerState.marker||S===o.containerState.marker:rm(S)){if(o.containerState.type||(o.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(nc,r,p)(S):p(S);if(!o.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(S)}return r(S)}function d(S){return rm(S)&&++u<10?(e.consume(S),d):(!o.interrupt||u<2)&&(o.containerState.marker?S===o.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),p(S)):r(S)}function p(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||S,e.check(tf,o.interrupt?r:m,e.attempt(W5,v,g))}function m(S){return o.containerState.initialBlankLine=!0,s++,v(S)}function g(S){return Xe(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),v):r(S)}function v(S){return o.containerState.size=s+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(S)}}function ej(e,t,r){const o=this;return o.containerState._closeFlow=void 0,e.check(tf,a,s);function a(f){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,lt(e,t,"listItemIndent",o.containerState.size+1)(f)}function s(f){return o.containerState.furtherBlankLines||!Xe(f)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(f)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(Z5,t,u)(f))}function u(f){return o.containerState._closeFlow=!0,o.interrupt=void 0,lt(e,e.attempt(en,t,r),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function tj(e,t,r){const o=this;return lt(e,a,"listItemIndent",o.containerState.size+1);function a(s){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(s):r(s)}}function nj(e){e.exit(this.containerState.type)}function rj(e,t,r){const o=this;return lt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(s){const u=o.events[o.events.length-1];return!Xe(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const ES={name:"setextUnderline",resolveTo:ij,tokenize:oj};function ij(e,t){let r=e.length,o,a,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){o=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",s?(e.splice(a,0,["enter",u,t]),e.splice(s+1,0,["exit",e[o][1],t]),e[o][1].end={...e[s][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function oj(e,t,r){const o=this;let a;return s;function s(p){let m=o.events.length,g;for(;m--;)if(o.events[m][1].type!=="lineEnding"&&o.events[m][1].type!=="linePrefix"&&o.events[m][1].type!=="content"){g=o.events[m][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),a=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),f(p)}function f(p){return p===a?(e.consume(p),f):(e.exit("setextHeadingLineSequence"),Xe(p)?lt(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||De(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const aj={tokenize:lj};function lj(e){const t=this,r=e.attempt(tf,o,e.attempt(this.parser.constructs.flowInitial,a,lt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(d5,a)),"linePrefix")));return r;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const sj={resolveAll:sR()},uj=lR("string"),cj=lR("text");function lR(e){return{resolveAll:sR(e==="text"?fj:void 0),tokenize:t};function t(r){const o=this,a=this.parser.constructs[e],s=r.attempt(a,u,f);return u;function u(m){return p(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return p(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function p(m){if(m===null)return!0;const g=a[m];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(o,o.previous))return!0}return!1}}}function sR(e){return t;function t(r,o){let a=-1,s;for(;++a<=r.length;)s===void 0?r[a]&&r[a][1].type==="data"&&(s=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==s+2&&(r[s][1].end=r[a-1][1].end,r.splice(s+2,a-s-2),a=s+2),s=void 0);return e?e(r,o):r}}function fj(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const o=e[r-1][1],a=t.sliceStream(o);let s=a.length,u=-1,f=0,d;for(;s--;){const p=a[s];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(p===-2)d=!0,f++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(f=0),f){const p={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:o.start._bufferIndex+u,_index:o.start._index+s,line:o.end.line,column:o.end.column-f,offset:o.end.offset-f},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const dj={42:en,43:en,45:en,48:en,49:en,50:en,51:en,52:en,53:en,54:en,55:en,56:en,57:en,62:eR},pj={91:y5},hj={[-2]:rh,[-1]:rh,32:rh},mj={35:E5,42:nc,45:[ES,nc],60:O5,61:ES,95:nc,96:xS,126:xS},gj={38:nR,92:tR},yj={[-5]:ih,[-4]:ih,[-3]:ih,33:G5,38:nR,42:im,60:[YI,P5],91:Y5,92:[x5,tR],93:Sg,95:im,96:a5},vj={null:[im,sj]},bj={null:[42,95]},Sj={null:[]},xj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:bj,contentInitial:pj,disable:Sj,document:dj,flow:mj,flowInitial:hj,insideSpan:vj,string:gj,text:yj},Symbol.toStringTag,{value:"Module"}));function wj(e,t,r){let o={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},s=[];let u=[],f=[];const d={attempt:I(P),check:I(D),consume:O,enter:_,exit:L,interrupt:I(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:x,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:S,write:g};let m=t.tokenize.call(p,d);return t.resolveAll&&s.push(t),p;function g(Q){return u=Dn(u,Q),T(),u[u.length-1]!==null?[]:(G(t,0),p.events=bg(s,p.events,p),p.events)}function v(Q,W){return Cj(S(Q),W)}function S(Q){return Ej(u,Q)}function w(){const{_bufferIndex:Q,_index:W,line:ue,column:F,offset:oe}=o;return{_bufferIndex:Q,_index:W,line:ue,column:F,offset:oe}}function x(Q){a[Q.line]=Q.column,Z()}function T(){let Q;for(;o._index<u.length;){const W=u[o._index];if(typeof W=="string")for(Q=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===Q&&o._bufferIndex<W.length;)E(W.charCodeAt(o._bufferIndex));else E(W)}}function E(Q){m=m(Q)}function O(Q){De(Q)?(o.line++,o.column=1,o.offset+=Q===-3?2:1,Z()):Q!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=Q}function _(Q,W){const ue=W||{};return ue.type=Q,ue.start=w(),p.events.push(["enter",ue,p]),f.push(ue),ue}function L(Q){const W=f.pop();return W.end=w(),p.events.push(["exit",W,p]),W}function P(Q,W){G(Q,W.from)}function D(Q,W){W.restore()}function I(Q,W){return ue;function ue(F,oe,z){let K,ee,le,R;return Array.isArray(F)?fe(F):"tokenize"in F?fe([F]):$(F);function $(ie){return Y;function Y(ce){const Ee=ce!==null&&ie[ce],Ce=ce!==null&&ie.null,Ne=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return fe(Ne)(ce)}}function fe(ie){return K=ie,ee=0,ie.length===0?z:A(ie[ee])}function A(ie){return Y;function Y(ce){return R=X(),le=ie,ie.partial||(p.currentConstruct=ie),ie.name&&p.parser.constructs.disable.null.includes(ie.name)?he():ie.tokenize.call(W?Object.assign(Object.create(p),W):p,d,te,he)(ce)}}function te(ie){return Q(le,R),oe}function he(ie){return R.restore(),++ee<K.length?A(K[ee]):z}}}function G(Q,W){Q.resolveAll&&!s.includes(Q)&&s.push(Q),Q.resolve&&mr(p.events,W,p.events.length-W,Q.resolve(p.events.slice(W),p)),Q.resolveTo&&(p.events=Q.resolveTo(p.events,p))}function X(){const Q=w(),W=p.previous,ue=p.currentConstruct,F=p.events.length,oe=Array.from(f);return{from:F,restore:z};function z(){o=Q,p.previous=W,p.currentConstruct=ue,p.events.length=F,f=oe,Z()}}function Z(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}function Ej(e,t){const r=t.start._index,o=t.start._bufferIndex,a=t.end._index,s=t.end._bufferIndex;let u;if(r===a)u=[e[r].slice(o,s)];else{if(u=e.slice(r,a),o>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(o):u.shift()}s>0&&u.push(e[a].slice(0,s))}return u}function Cj(e,t){let r=-1;const o=[];let a;for(;++r<e.length;){const s=e[r];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
|
|
534
|
+
`;break}case-3:{u=`\r
|
|
535
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(s)}a=s===-2,o.push(u)}return o.join("")}function Tj(e){const o={constructs:DI([xj,...(e||{}).extensions||[]]),content:a(BI),defined:[],document:a(FI),flow:a(aj),lazy:{},string:a(uj),text:a(cj)};return o;function a(s){return u;function u(f){return wj(o,s,f)}}}function Rj(e){for(;!rR(e););return e}const CS=/[\0\t\n\r]/g;function Oj(){let e=1,t="",r=!0,o;return a;function a(s,u,f){const d=[];let p,m,g,v,S;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),g=0,t="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(CS.lastIndex=g,p=CS.exec(s),v=p&&p.index!==void 0?p.index:s.length,S=s.charCodeAt(v),!p){t=s.slice(g);break}if(S===10&&g===v&&o)d.push(-3),o=void 0;else switch(o&&(d.push(-5),o=void 0),g<v&&(d.push(s.slice(g,v)),e+=v-g),S){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:o=!0,e=1}g=v+1}return f&&(o&&d.push(-5),t&&d.push(t),d.push(null)),d}}const Aj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mj(e){return e.replace(Aj,_j)}function _j(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),s=a===120||a===88;return JT(r.slice(s?2:1),s?16:10)}return vg(r)||e}const uR={}.hasOwnProperty;function kj(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Dj(r)(Rj(Tj(r).document().write(Oj()(e,t,!0))))}function Dj(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Gr),autolinkProtocol:X,autolinkEmail:X,atxHeading:s(Yt),blockQuote:s(Ce),characterEscape:X,characterReference:X,codeFenced:s(Ne),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ne,u),codeText:s(Fe,u),codeTextData:X,data:X,codeFlowValue:X,definition:s(ze),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(st),hardBreakEscape:s(on),hardBreakTrailing:s(on),htmlFlow:s(bt,u),htmlFlowData:X,htmlText:s(bt,u),htmlTextData:X,image:s(Ot),label:u,link:s(Gr),listItem:s(Sn),listItemValue:v,listOrdered:s(Oi,g),listUnordered:s(Oi),paragraph:s(uo),reference:A,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Yt),strong:s(co),thematicBreak:s(df)},exit:{atxHeading:d(),atxHeadingSequence:P,autolink:d(),autolinkEmail:Ee,autolinkProtocol:ce,blockQuote:d(),characterEscapeValue:Z,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:ie,characterReference:Y,codeFenced:d(T),codeFencedFence:x,codeFencedFenceInfo:S,codeFencedFenceMeta:w,codeFlowValue:Z,codeIndented:d(E),codeText:d(oe),codeTextData:Z,data:Z,definition:d(),definitionDestinationString:L,definitionLabelString:O,definitionTitleString:_,emphasis:d(),hardBreakEscape:d(W),hardBreakTrailing:d(W),htmlFlow:d(ue),htmlFlowData:Z,htmlText:d(F),htmlTextData:Z,image:d(K),label:le,labelText:ee,lineEnding:Q,link:d(z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:te,resourceDestinationString:R,resourceTitleString:$,resource:fe,setextHeading:d(G),setextHeadingLineSequence:I,setextHeadingText:D,strong:d(),thematicBreak:d()}};cR(t,(e||{}).mdastExtensions||[]);const r={};return o;function o(ne){let de={type:"root",children:[]};const Re={stack:[de],tokenStack:[],config:t,enter:f,exit:p,buffer:u,resume:m,data:r},_e=[];let Ze=-1;for(;++Ze<ne.length;)if(ne[Ze][1].type==="listOrdered"||ne[Ze][1].type==="listUnordered")if(ne[Ze][0]==="enter")_e.push(Ze);else{const an=_e.pop();Ze=a(ne,an,Ze)}for(Ze=-1;++Ze<ne.length;){const an=t[ne[Ze][0]];uR.call(an,ne[Ze][1].type)&&an[ne[Ze][1].type].call(Object.assign({sliceSerialize:ne[Ze][2].sliceSerialize},Re),ne[Ze][1])}if(Re.tokenStack.length>0){const an=Re.tokenStack[Re.tokenStack.length-1];(an[1]||TS).call(Re,void 0,an[0])}for(de.position={start:mi(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:mi(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)de=t.transforms[Ze](de)||de;return de}function a(ne,de,Re){let _e=de-1,Ze=-1,an=!1,Sr,Kt,Wn,ln;for(;++_e<=Re;){const At=ne[_e];switch(At[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{At[0]==="enter"?Ze++:Ze--,ln=void 0;break}case"lineEndingBlank":{At[0]==="enter"&&(Sr&&!ln&&!Ze&&!Wn&&(Wn=_e),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!Ze&&At[0]==="enter"&&At[1].type==="listItemPrefix"||Ze===-1&&At[0]==="exit"&&(At[1].type==="listUnordered"||At[1].type==="listOrdered")){if(Sr){let xn=_e;for(Kt=void 0;xn--;){const In=ne[xn];if(In[1].type==="lineEnding"||In[1].type==="lineEndingBlank"){if(In[0]==="exit")continue;Kt&&(ne[Kt][1].type="lineEndingBlank",an=!0),In[1].type="lineEnding",Kt=xn}else if(!(In[1].type==="linePrefix"||In[1].type==="blockQuotePrefix"||In[1].type==="blockQuotePrefixWhitespace"||In[1].type==="blockQuoteMarker"||In[1].type==="listItemIndent"))break}Wn&&(!Kt||Wn<Kt)&&(Sr._spread=!0),Sr.end=Object.assign({},Kt?ne[Kt][1].start:At[1].end),ne.splice(Kt||_e,0,["exit",Sr,At[2]]),_e++,Re++}if(At[1].type==="listItemPrefix"){const xn={type:"listItem",_spread:!1,start:Object.assign({},At[1].start),end:void 0};Sr=xn,ne.splice(_e,0,["enter",xn,At[2]]),_e++,Re++,Wn=void 0,ln=!0}}}return ne[de][1]._spread=an,Re}function s(ne,de){return Re;function Re(_e){f.call(this,ne(_e),_e),de&&de.call(this,_e)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(ne,de,Re){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([de,Re||void 0]),ne.position={start:mi(de.start),end:void 0}}function d(ne){return de;function de(Re){ne&&ne.call(this,Re),p.call(this,Re)}}function p(ne,de){const Re=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==ne.type&&(de?de.call(this,ne,_e[0]):(_e[1]||TS).call(this,ne,_e[0]));else throw new Error("Cannot close `"+ne.type+"` ("+Vl({start:ne.start,end:ne.end})+"): it’s not open");Re.position.end=mi(ne.end)}function m(){return _I(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(ne){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function S(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.lang=ne}function w(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.meta=ne}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.value=ne.replace(/(\r?\n|\r)$/g,"")}function O(ne){const de=this.resume(),Re=this.stack[this.stack.length-1];Re.label=de,Re.identifier=ca(this.sliceSerialize(ne)).toLowerCase()}function _(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.title=ne}function L(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.url=ne}function P(ne){const de=this.stack[this.stack.length-1];if(!de.depth){const Re=this.sliceSerialize(ne).length;de.depth=Re}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function I(ne){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function X(ne){const Re=this.stack[this.stack.length-1].children;let _e=Re[Re.length-1];(!_e||_e.type!=="text")&&(_e=ff(),_e.position={start:mi(ne.start),end:void 0},Re.push(_e)),this.stack.push(_e)}function Z(ne){const de=this.stack.pop();de.value+=this.sliceSerialize(ne),de.position.end=mi(ne.end)}function Q(ne){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Re=de.children[de.children.length-1];Re.position.end=mi(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(X.call(this,ne),Z.call(this,ne))}function W(){this.data.atHardBreak=!0}function ue(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.value=ne}function F(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.value=ne}function oe(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.value=ne}function z(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=de,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function K(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=de,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function ee(ne){const de=this.sliceSerialize(ne),Re=this.stack[this.stack.length-2];Re.label=Mj(de),Re.identifier=ca(de).toLowerCase()}function le(){const ne=this.stack[this.stack.length-1],de=this.resume(),Re=this.stack[this.stack.length-1];if(this.data.inReference=!0,Re.type==="link"){const _e=ne.children;Re.children=_e}else Re.alt=de}function R(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.url=ne}function $(){const ne=this.resume(),de=this.stack[this.stack.length-1];de.title=ne}function fe(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function te(ne){const de=this.resume(),Re=this.stack[this.stack.length-1];Re.label=de,Re.identifier=ca(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function he(ne){this.data.characterReferenceType=ne.type}function ie(ne){const de=this.sliceSerialize(ne),Re=this.data.characterReferenceType;let _e;Re?(_e=JT(de,Re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=vg(de);const Ze=this.stack[this.stack.length-1];Ze.value+=_e}function Y(ne){const de=this.stack.pop();de.position.end=mi(ne.end)}function ce(ne){Z.call(this,ne);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ne)}function Ee(ne){Z.call(this,ne);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ne)}function Ce(){return{type:"blockquote",children:[]}}function Ne(){return{type:"code",lang:null,meta:null,value:""}}function Fe(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function Yt(){return{type:"heading",depth:0,children:[]}}function on(){return{type:"break"}}function bt(){return{type:"html",value:""}}function Ot(){return{type:"image",title:null,url:"",alt:null}}function Gr(){return{type:"link",title:null,url:"",children:[]}}function Oi(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function Sn(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function uo(){return{type:"paragraph",children:[]}}function co(){return{type:"strong",children:[]}}function ff(){return{type:"text",value:""}}function df(){return{type:"thematicBreak"}}}function mi(e){return{line:e.line,column:e.column,offset:e.offset}}function cR(e,t){let r=-1;for(;++r<t.length;){const o=t[r];Array.isArray(o)?cR(e,o):Nj(e,o)}}function Nj(e,t){let r;for(r in t)if(uR.call(t,r))switch(r){case"canContainEols":{const o=t[r];o&&e[r].push(...o);break}case"transforms":{const o=t[r];o&&e[r].push(...o);break}case"enter":case"exit":{const o=t[r];o&&Object.assign(e[r],o);break}}}function TS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is still open")}function Pj(e){const t=this;t.parser=r;function r(o){return kj(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Lj(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function zj(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
536
|
+
`}]}function Ij(e,t){const r=t.value?t.value+`
|
|
537
|
+
`:"",o={};t.lang&&(o.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function jj(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uj(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Bj(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),a=ka(o.toLowerCase()),s=e.footnoteOrder.indexOf(o);let u,f=e.footnoteCounts.get(o);f===void 0?(f=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(o,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,p),e.applyData(t,p)}function Hj(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fj(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function fR(e,t){const r=t.referenceType;let o="]";if(r==="collapsed"?o+="[]":r==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const a=e.all(t),s=a[0];s&&s.type==="text"?s.value="["+s.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=o:a.push({type:"text",value:o}),a}function qj(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return fR(e,t);const a={src:ka(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const s={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,s),e.applyData(t,s)}function Vj(e,t){const r={src:ka(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function Gj(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const o={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,o),e.applyData(t,o)}function $j(e,t){const r=String(t.identifier).toUpperCase(),o=e.definitionById.get(r);if(!o)return fR(e,t);const a={href:ka(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const s={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Yj(e,t){const r={href:ka(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Kj(e,t,r){const o=e.all(t),a=r?Qj(r):dR(t),s={},u=[];if(typeof t.checked=="boolean"){const m=o[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<o.length;){const m=o[f];(a||f!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
538
|
+
`}),m.type==="element"&&m.tagName==="p"&&!a?u.push(...m.children):u.push(m)}const d=o[o.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
|
539
|
+
`});const p={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,p),e.applyData(t,p)}function Qj(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let o=-1;for(;!t&&++o<r.length;)t=dR(r[o])}return t}function dR(e){const t=e.spread;return t??e.children.length>1}function Xj(e,t){const r={},o=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<o.length;){const u=o[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function Wj(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zj(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Jj(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e9(e,t){const r=e.all(t),o=r.shift(),a=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],u),a.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=hg(t.children[1]),d=$T(t.children[t.children.length-1]);f&&d&&(u.position={start:f,end:d}),a.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function t9(e,t,r){const o=r?r.children:void 0,s=(o?o.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,f=u?u.length:t.children.length;let d=-1;const p=[];for(;++d<f;){const g=t.children[d],v={},S=u?u[d]:void 0;S&&(v.align=S);let w={type:"element",tagName:s,properties:v,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),p.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,m),e.applyData(t,m)}function n9(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const RS=9,OS=32;function r9(e){const t=String(e),r=/\r?\n|\r/g;let o=r.exec(t),a=0;const s=[];for(;o;)s.push(AS(t.slice(a,o.index),a>0,!0),o[0]),a=o.index+o[0].length,o=r.exec(t);return s.push(AS(t.slice(a),a>0,!1)),s.join("")}function AS(e,t,r){let o=0,a=e.length;if(t){let s=e.codePointAt(o);for(;s===RS||s===OS;)o++,s=e.codePointAt(o)}if(r){let s=e.codePointAt(a-1);for(;s===RS||s===OS;)a--,s=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function i9(e,t){const r={type:"text",value:r9(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function o9(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const a9={blockquote:Lj,break:zj,code:Ij,delete:jj,emphasis:Uj,footnoteReference:Bj,heading:Hj,html:Fj,imageReference:qj,image:Vj,inlineCode:Gj,linkReference:$j,link:Yj,listItem:Kj,list:Xj,paragraph:Wj,root:Zj,strong:Jj,table:e9,tableCell:n9,tableRow:t9,text:i9,thematicBreak:o9,toml:Gu,yaml:Gu,definition:Gu,footnoteDefinition:Gu};function Gu(){}const pR=-1,nf=0,$l=1,xc=2,xg=3,wg=4,Eg=5,Cg=6,hR=7,mR=8,MS=typeof self=="object"?self:globalThis,l9=(e,t)=>{const r=(a,s)=>(e.set(s,a),a),o=a=>{if(e.has(a))return e.get(a);const[s,u]=t[a];switch(s){case nf:case pR:return r(u,a);case $l:{const f=r([],a);for(const d of u)f.push(o(d));return f}case xc:{const f=r({},a);for(const[d,p]of u)f[o(d)]=o(p);return f}case xg:return r(new Date(u),a);case wg:{const{source:f,flags:d}=u;return r(new RegExp(f,d),a)}case Eg:{const f=r(new Map,a);for(const[d,p]of u)f.set(o(d),o(p));return f}case Cg:{const f=r(new Set,a);for(const d of u)f.add(o(d));return f}case hR:{const{name:f,message:d}=u;return r(new MS[f](d),a)}case mR:return r(BigInt(u),a);case"BigInt":return r(Object(BigInt(u)),a);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return r(new DataView(f),u)}}return r(new MS[s](u),a)};return o},_S=e=>l9(new Map,e)(0),na="",{toString:s9}={},{keys:u9}=Object,jl=e=>{const t=typeof e;if(t!=="object"||!e)return[nf,t];const r=s9.call(e).slice(8,-1);switch(r){case"Array":return[$l,na];case"Object":return[xc,na];case"Date":return[xg,na];case"RegExp":return[wg,na];case"Map":return[Eg,na];case"Set":return[Cg,na];case"DataView":return[$l,r]}return r.includes("Array")?[$l,r]:r.includes("Error")?[hR,r]:[xc,r]},$u=([e,t])=>e===nf&&(t==="function"||t==="symbol"),c9=(e,t,r,o)=>{const a=(u,f)=>{const d=o.push(u)-1;return r.set(f,d),d},s=u=>{if(r.has(u))return r.get(u);let[f,d]=jl(u);switch(f){case nf:{let m=u;switch(d){case"bigint":f=mR,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return a([pR],u)}return a([f,m],u)}case $l:{if(d){let v=u;return d==="DataView"?v=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(v=new Uint8Array(u)),a([d,[...v]],u)}const m=[],g=a([f,m],u);for(const v of u)m.push(s(v));return g}case xc:{if(d)switch(d){case"BigInt":return a([d,u.toString()],u);case"Boolean":case"Number":case"String":return a([d,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const m=[],g=a([f,m],u);for(const v of u9(u))(e||!$u(jl(u[v])))&&m.push([s(v),s(u[v])]);return g}case xg:return a([f,u.toISOString()],u);case wg:{const{source:m,flags:g}=u;return a([f,{source:m,flags:g}],u)}case Eg:{const m=[],g=a([f,m],u);for(const[v,S]of u)(e||!($u(jl(v))||$u(jl(S))))&&m.push([s(v),s(S)]);return g}case Cg:{const m=[],g=a([f,m],u);for(const v of u)(e||!$u(jl(v)))&&m.push(s(v));return g}}const{message:p}=u;return a([f,{name:d,message:p}],u)};return s},kS=(e,{json:t,lossy:r}={})=>{const o=[];return c9(!(t||r),!!t,new Map,o)(e),o},wc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_S(kS(e,t)):structuredClone(e):(e,t)=>_S(kS(e,t));function f9(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function d9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function p9(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||f9,o=e.options.footnoteBackLabel||d9,a=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const m=e.all(p),g=String(p.identifier).toUpperCase(),v=ka(g.toLowerCase());let S=0;const w=[],x=e.footnoteCounts.get(g);for(;x!==void 0&&++S<=x;){w.length>0&&w.push({type:"text",value:" "});let O=typeof r=="string"?r:r(d,S);typeof O=="string"&&(O={type:"text",value:O}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(d,S),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const T=m[m.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const O=T.children[T.children.length-1];O&&O.type==="text"?O.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...w)}else m.push(...w);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(m,!0)};e.patch(p,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...wc(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
540
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
541
|
+
`}]}}const gR=function(e){if(e==null)return y9;if(typeof e=="function")return rf(e);if(typeof e=="object")return Array.isArray(e)?h9(e):m9(e);if(typeof e=="string")return g9(e);throw new Error("Expected function, string, or object as test")};function h9(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=gR(e[r]);return rf(o);function o(...a){let s=-1;for(;++s<t.length;)if(t[s].apply(this,a))return!0;return!1}}function m9(e){const t=e;return rf(r);function r(o){const a=o;let s;for(s in e)if(a[s]!==t[s])return!1;return!0}}function g9(e){return rf(t);function t(r){return r&&r.type===e}}function rf(e){return t;function t(r,o,a){return!!(v9(r)&&e.call(this,r,typeof o=="number"?o:void 0,a||void 0))}}function y9(){return!0}function v9(e){return e!==null&&typeof e=="object"&&"type"in e}const yR=[],b9=!0,DS=!1,S9="skip";function x9(e,t,r,o){let a;typeof t=="function"&&typeof r!="function"?(o=r,r=t):a=t;const s=gR(a),u=o?-1:1;f(e,void 0,[])();function f(d,p,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(d.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=yR,w,x,T;if((!t||s(d,p,m[m.length-1]||void 0))&&(S=w9(r(d,m)),S[0]===DS))return S;if("children"in d&&d.children){const E=d;if(E.children&&S[0]!==S9)for(x=(o?E.children.length:-1)+u,T=m.concat(E);x>-1&&x<E.children.length;){const O=E.children[x];if(w=f(O,x,T)(),w[0]===DS)return w;x=typeof w[1]=="number"?w[1]:x+u}}return S}}}function w9(e){return Array.isArray(e)?e:typeof e=="number"?[b9,e]:e==null?yR:[e]}function vR(e,t,r,o){let a,s,u;typeof t=="function"&&typeof r!="function"?(s=void 0,u=t,a=r):(s=t,u=r,a=o),x9(e,s,f,a);function f(d,p){const m=p[p.length-1],g=m?m.children.indexOf(d):void 0;return u(d,g,m)}}const om={}.hasOwnProperty,E9={};function C9(e,t){const r=t||E9,o=new Map,a=new Map,s=new Map,u={...a9,...r.handlers},f={all:p,applyData:R9,definitionById:o,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:u,one:d,options:r,patch:T9,wrap:A9};return vR(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?o:a,v=String(m.identifier).toUpperCase();g.has(v)||g.set(v,m)}}),f;function d(m,g){const v=m.type,S=f.handlers[v];if(om.call(f.handlers,v)&&S)return S(f,m,g);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in m){const{children:x,...T}=m,E=wc(T);return E.children=f.all(m),E}return wc(m)}return(f.options.unknownHandler||O9)(f,m,g)}function p(m){const g=[];if("children"in m){const v=m.children;let S=-1;for(;++S<v.length;){const w=f.one(v[S],m);if(w){if(S&&v[S-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=NS(w.value)),!Array.isArray(w)&&w.type==="element")){const x=w.children[0];x&&x.type==="text"&&(x.value=NS(x.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function T9(e,t){e.position&&(t.position=sI(e))}function R9(e,t){let r=t;if(e&&e.data){const o=e.data.hName,a=e.data.hChildren,s=e.data.hProperties;if(typeof o=="string")if(r.type==="element")r.tagName=o;else{const u="children"in r?r.children:[r];r={type:"element",tagName:o,properties:{},children:u}}r.type==="element"&&s&&Object.assign(r.properties,wc(s)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function O9(e,t){const r=t.data||{},o="value"in t&&!(om.call(r,"hProperties")||om.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function A9(e,t){const r=[];let o=-1;for(t&&r.push({type:"text",value:`
|
|
542
|
+
`});++o<e.length;)o&&r.push({type:"text",value:`
|
|
543
|
+
`}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
544
|
+
`}),r}function NS(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function PS(e,t){const r=C9(e,t),o=r.one(e,void 0),a=p9(r),s=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&s.children.push({type:"text",value:`
|
|
545
|
+
`},a),s}function M9(e,t){return e&&"run"in e?async function(r,o){const a=PS(r,{file:o,...t});await e.run(a,o)}:function(r,o){return PS(r,{file:o,...e||t})}}function LS(e){if(e)throw e}var oh,zS;function _9(){if(zS)return oh;zS=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var m=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!m&&!g)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,m){r&&m.name==="__proto__"?r(p,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):p[m.name]=m.newValue},f=function(p,m){if(m==="__proto__")if(e.call(p,m)){if(o)return o(p,m).value}else return;return p[m]};return oh=function d(){var p,m,g,v,S,w,x=arguments[0],T=1,E=arguments.length,O=!1;for(typeof x=="boolean"&&(O=x,x=arguments[1]||{},T=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});T<E;++T)if(p=arguments[T],p!=null)for(m in p)g=f(x,m),v=f(p,m),x!==v&&(O&&v&&(s(v)||(S=a(v)))?(S?(S=!1,w=g&&a(g)?g:[]):w=g&&s(g)?g:{},u(x,{name:m,newValue:d(O,w,v)})):typeof v<"u"&&u(x,{name:m,newValue:v}));return x},oh}var k9=_9();const ah=qr(k9);function am(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function D9(){const e=[],t={run:r,use:o};return t;function r(...a){let s=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...a);function f(d,...p){const m=e[++s];let g=-1;if(d){u(d);return}for(;++g<a.length;)(p[g]===null||p[g]===void 0)&&(p[g]=a[g]);a=p,m?N9(m,f)(...p):u(null,...p)}}function o(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function N9(e,t){let r;return o;function o(...u){const f=e.length>u.length;let d;f&&u.push(a);try{d=e.apply(this,u)}catch(p){const m=p;if(f&&r)throw m;return a(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,a):d instanceof Error?a(d):s(d))}function a(u,...f){r||(r=!0,t(u,...f))}function s(u){a(null,u)}}const rr={basename:P9,dirname:L9,extname:z9,join:I9,sep:"/"};function P9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cs(e);let r=0,o=-1,a=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(s){r=a+1;break}}else o<0&&(s=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let u=-1,f=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(s){r=a+1;break}}else u<0&&(s=!0,u=a+1),f>-1&&(e.codePointAt(a)===t.codePointAt(f--)?f<0&&(o=a):(f=-1,o=u));return r===o?o=u:o<0&&(o=e.length),e.slice(r,o)}function L9(e){if(Cs(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function z9(e){Cs(e);let t=e.length,r=-1,o=0,a=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){o=t+1;break}continue}r<0&&(u=!0,r=t+1),f===46?a<0?a=t:s!==1&&(s=1):a>-1&&(s=-1)}return a<0||r<0||s===0||s===1&&a===r-1&&a===o+1?"":e.slice(a,r)}function I9(...e){let t=-1,r;for(;++t<e.length;)Cs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":j9(r)}function j9(e){Cs(e);const t=e.codePointAt(0)===47;let r=U9(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function U9(e,t){let r="",o=0,a=-1,s=0,u=-1,f,d;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(a===u-1||s===1))if(a!==u-1&&s===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",o=0):(r=r.slice(0,d),o=r.length-1-r.lastIndexOf("/")),a=u,s=0;continue}}else if(r.length>0){r="",o=0,a=u,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(a+1,u):r=e.slice(a+1,u),o=u-a-1;a=u,s=0}else f===46&&s>-1?s++:s=-1}return r}function Cs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const B9={cwd:H9};function H9(){return"/"}function lm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function F9(e){if(typeof e=="string")e=new URL(e);else if(!lm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return q9(e)}function q9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const lh=["history","path","basename","stem","extname","dirname"];class bR{constructor(t){let r;t?lm(t)?r={path:t}:typeof t=="string"||V9(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":B9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<lh.length;){const s=lh[o];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let a;for(a in r)lh.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?rr.basename(this.path):void 0}set basename(t){uh(t,"basename"),sh(t,"basename"),this.path=rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?rr.dirname(this.path):void 0}set dirname(t){IS(this.basename,"dirname"),this.path=rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?rr.extname(this.path):void 0}set extname(t){if(sh(t,"extname"),IS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lm(t)&&(t=F9(t)),uh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?rr.basename(this.path,this.extname):void 0}set stem(t){uh(t,"stem"),sh(t,"stem"),this.path=rr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const a=this.message(t,r,o);throw a.fatal=!0,a}info(t,r,o){const a=this.message(t,r,o);return a.fatal=void 0,a}message(t,r,o){const a=new Ft(t,r,o);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function sh(e,t){if(e&&e.includes(rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+rr.sep+"`")}function uh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function IS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function V9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const G9=function(e){const o=this.constructor.prototype,a=o[e],s=function(){return a.apply(s,arguments)};return Object.setPrototypeOf(s,o),s},$9={}.hasOwnProperty;class Tg extends G9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=D9()}copy(){const t=new Tg;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(ah(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(dh("data",this.frozen),this.namespace[t]=r,this):$9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(dh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const a=r.call(t,...o);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Yu(t),o=this.parser||this.Parser;return ch("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),ch("process",this.parser||this.Parser),fh("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(s,u){const f=Yu(t),d=o.parse(f);o.run(d,f,function(m,g,v){if(m||!g||!v)return p(m);const S=g,w=o.stringify(S,v);Q9(w)?v.value=w:v.result=w,p(m,v)});function p(m,g){m||!g?u(m):s?s(g):r(void 0,g)}}}processSync(t){let r=!1,o;return this.freeze(),ch("processSync",this.parser||this.Parser),fh("processSync",this.compiler||this.Compiler),this.process(t,a),US("processSync","process",r),o;function a(s,u){r=!0,LS(s),o=u}}run(t,r,o){jS(t),this.freeze();const a=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?s(void 0,o):new Promise(s);function s(u,f){const d=Yu(r);a.run(t,d,p);function p(m,g,v){const S=g||t;m?f(m):u?u(S):o(void 0,S,v)}}}runSync(t,r){let o=!1,a;return this.run(t,r,s),US("runSync","run",o),a;function s(u,f){LS(u),a=f,o=!0}}stringify(t,r){this.freeze();const o=Yu(r),a=this.compiler||this.Compiler;return fh("stringify",a),jS(t),a(t,o)}use(t,...r){const o=this.attachers,a=this.namespace;if(dh("use",this.frozen),t!=null)if(typeof t=="function")d(t,r);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[m,...g]=p;d(m,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(p.plugins),p.settings&&(a.settings=ah(!0,a.settings,p.settings))}function f(p){let m=-1;if(p!=null)if(Array.isArray(p))for(;++m<p.length;){const g=p[m];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,m){let g=-1,v=-1;for(;++g<o.length;)if(o[g][0]===p){v=g;break}if(v===-1)o.push([p,...m]);else if(m.length>0){let[S,...w]=m;const x=o[v][1];am(x)&&am(S)&&(S=ah(!0,x,S)),o[v]=[p,S,...w]}}}}const Y9=new Tg().freeze();function ch(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function fh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jS(e){if(!am(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function US(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Yu(e){return K9(e)?e:new bR(e)}function K9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Q9(e){return typeof e=="string"||X9(e)}function X9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const W9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BS=[],HS={allowDangerousHtml:!0},Z9=/^(https?|ircs?|mailto|xmpp)$/i,J9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function MB(e){const t=e8(e),r=t8(e);return n8(t.runSync(t.parse(r),r),e)}function e8(e){const t=e.rehypePlugins||BS,r=e.remarkPlugins||BS,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...HS}:HS;return Y9().use(Pj).use(r).use(M9,o).use(t)}function t8(e){const t=e.children||"",r=new bR;return typeof t=="string"&&(r.value=t),r}function n8(e,t){const r=t.allowedElements,o=t.allowElement,a=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,d=t.urlTransform||r8;for(const m of J9)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+W9+m.id,void 0);return vR(e,p),pI(e,{Fragment:k.Fragment,components:a,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function p(m,g,v){if(m.type==="raw"&&v&&typeof g=="number")return u?v.children.splice(g,1):v.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let S;for(S in nh)if(Object.hasOwn(nh,S)&&Object.hasOwn(m.properties,S)){const w=m.properties[S],x=nh[S];(x===null||x.includes(m.tagName))&&(m.properties[S]=d(String(w||""),S,m))}}if(m.type==="element"){let S=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!S&&o&&typeof g=="number"&&(S=!o(m,g,v)),S&&v&&typeof g=="number")return f&&m.children?v.children.splice(g,1,...m.children):v.children.splice(g,1),g}}}function r8(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||o!==-1&&t>o||Z9.test(e.slice(0,t))?e:""}const of=b.createContext(null);of.displayName="PanelGroupContext";const mt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Rg=10,Ki=b.useLayoutEffect,FS=um.useId,i8=typeof FS=="function"?FS:()=>null;let o8=0;function Og(e=null){const t=i8(),r=b.useRef(e||t||null);return r.current===null&&(r.current=""+o8++),e??r.current}function SR({children:e,className:t="",collapsedSize:r,collapsible:o,defaultSize:a,forwardedRef:s,id:u,maxSize:f,minSize:d,onCollapse:p,onExpand:m,onResize:g,order:v,style:S,tagName:w="div",...x}){const T=b.useContext(of);if(T===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:O,getPanelSize:_,getPanelStyle:L,groupId:P,isPanelCollapsed:D,reevaluatePanelConstraints:I,registerPanel:G,resizePanel:X,unregisterPanel:Z}=T,Q=Og(u),W=b.useRef({callbacks:{onCollapse:p,onExpand:m,onResize:g},constraints:{collapsedSize:r,collapsible:o,defaultSize:a,maxSize:f,minSize:d},id:Q,idIsFromProps:u!==void 0,order:v});b.useRef({didLogMissingDefaultSizeWarning:!1}),Ki(()=>{const{callbacks:F,constraints:oe}=W.current,z={...oe};W.current.id=Q,W.current.idIsFromProps=u!==void 0,W.current.order=v,F.onCollapse=p,F.onExpand=m,F.onResize=g,oe.collapsedSize=r,oe.collapsible=o,oe.defaultSize=a,oe.maxSize=f,oe.minSize=d,(z.collapsedSize!==oe.collapsedSize||z.collapsible!==oe.collapsible||z.maxSize!==oe.maxSize||z.minSize!==oe.minSize)&&I(W.current,z)}),Ki(()=>{const F=W.current;return G(F),()=>{Z(F)}},[v,Q,G,Z]),b.useImperativeHandle(s,()=>({collapse:()=>{E(W.current)},expand:F=>{O(W.current,F)},getId(){return Q},getSize(){return _(W.current)},isCollapsed(){return D(W.current)},isExpanded(){return!D(W.current)},resize:F=>{X(W.current,F)}}),[E,O,_,D,Q,X]);const ue=L(W.current,a);return b.createElement(w,{...x,children:e,className:t,id:Q,style:{...ue,...S},[mt.groupId]:P,[mt.panel]:"",[mt.panelCollapsible]:o||void 0,[mt.panelId]:Q,[mt.panelSize]:parseFloat(""+ue.flexGrow).toFixed(1)})}const a8=b.forwardRef((e,t)=>b.createElement(SR,{...e,forwardedRef:t}));SR.displayName="Panel";a8.displayName="forwardRef(Panel)";let sm=null,rc=-1,vi=null;function l8(e,t){if(t){const r=(t&TR)!==0,o=(t&RR)!==0,a=(t&OR)!==0,s=(t&AR)!==0;if(r)return a?"se-resize":s?"ne-resize":"e-resize";if(o)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function s8(){vi!==null&&(document.head.removeChild(vi),sm=null,vi=null,rc=-1)}function ph(e,t){var r,o;const a=l8(e,t);if(sm!==a){if(sm=a,vi===null&&(vi=document.createElement("style"),document.head.appendChild(vi)),rc>=0){var s;(s=vi.sheet)===null||s===void 0||s.removeRule(rc)}rc=(r=(o=vi.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${a} !important;}`))!==null&&r!==void 0?r:-1}}function xR(e){return e.type==="keydown"}function wR(e){return e.type.startsWith("pointer")}function ER(e){return e.type.startsWith("mouse")}function af(e){if(wR(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(ER(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function u8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function c8(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function f8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:GS(e),b:GS(t)};let o;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),o=e;Ue(o,"Stacking order can only be calculated for elements with a common ancestor");const a={a:VS(qS(r.a)),b:VS(qS(r.b))};if(a.a===a.b){const s=o.childNodes,u={a:r.a.at(-1),b:r.b.at(-1)};let f=s.length;for(;f--;){const d=s[f];if(d===u.a)return 1;if(d===u.b)return-1}}return Math.sign(a.a-a.b)}const d8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function p8(e){var t;const r=getComputedStyle((t=CR(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}function h8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||p8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||d8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function qS(e){let t=e.length;for(;t--;){const r=e[t];if(Ue(r,"Missing node"),h8(r))return r}return null}function VS(e){return e&&Number(getComputedStyle(e).zIndex)||0}function GS(e){const t=[];for(;e;)t.push(e),e=CR(e);return t}function CR(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const TR=1,RR=2,OR=4,AR=8,m8=u8()==="coarse";let Vn=[],fa=!1,$i=new Map,lf=new Map;const is=new Set;function g8(e,t,r,o,a){var s;const{ownerDocument:u}=t,f={direction:r,element:t,hitAreaMargins:o,setResizeHandlerState:a},d=(s=$i.get(u))!==null&&s!==void 0?s:0;return $i.set(u,d+1),is.add(f),Ec(),function(){var m;lf.delete(e),is.delete(f);const g=(m=$i.get(u))!==null&&m!==void 0?m:1;if($i.set(u,g-1),Ec(),g===1&&$i.delete(u),Vn.includes(f)){const v=Vn.indexOf(f);v>=0&&Vn.splice(v,1),Mg(),a("up",!0,null)}}}function y8(e){const{target:t}=e,{x:r,y:o}=af(e);fa=!0,Ag({target:t,x:r,y:o}),Ec(),Vn.length>0&&(Cc("down",e),e.preventDefault(),MR(t)||e.stopImmediatePropagation())}function hh(e){const{x:t,y:r}=af(e);if(fa&&e.buttons===0&&(fa=!1,Cc("up",e)),!fa){const{target:o}=e;Ag({target:o,x:t,y:r})}Cc("move",e),Mg(),Vn.length>0&&e.preventDefault()}function mh(e){const{target:t}=e,{x:r,y:o}=af(e);lf.clear(),fa=!1,Vn.length>0&&(e.preventDefault(),MR(t)||e.stopImmediatePropagation()),Cc("up",e),Ag({target:t,x:r,y:o}),Mg(),Ec()}function MR(e){let t=e;for(;t;){if(t.hasAttribute(mt.resizeHandle))return!0;t=t.parentElement}return!1}function Ag({target:e,x:t,y:r}){Vn.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),is.forEach(a=>{const{element:s,hitAreaMargins:u}=a,f=s.getBoundingClientRect(),{bottom:d,left:p,right:m,top:g}=f,v=m8?u.coarse:u.fine;if(t>=p-v&&t<=m+v&&r>=g-v&&r<=d+v){if(o!==null&&document.contains(o)&&s!==o&&!s.contains(o)&&!o.contains(s)&&f8(o,s)>0){let w=o,x=!1;for(;w&&!w.contains(s);){if(c8(w.getBoundingClientRect(),f)){x=!0;break}w=w.parentElement}if(x)return}Vn.push(a)}})}function gh(e,t){lf.set(e,t)}function Mg(){let e=!1,t=!1;Vn.forEach(o=>{const{direction:a}=o;a==="horizontal"?e=!0:t=!0});let r=0;lf.forEach(o=>{r|=o}),e&&t?ph("intersection",r):e?ph("horizontal",r):t?ph("vertical",r):s8()}let yh=new AbortController;function Ec(){yh.abort(),yh=new AbortController;const e={capture:!0,signal:yh.signal};is.size&&(fa?(Vn.length>0&&$i.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("contextmenu",mh,e),o.addEventListener("pointerleave",hh,e),o.addEventListener("pointermove",hh,e))}),window.addEventListener("pointerup",mh,e),window.addEventListener("pointercancel",mh,e)):$i.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("pointerdown",y8,e),o.addEventListener("pointermove",hh,e))}))}function Cc(e,t){is.forEach(r=>{const{setResizeHandlerState:o}=r,a=Vn.includes(r);o(e,a,t)})}function v8(){const[e,t]=b.useState(0);return b.useCallback(()=>t(r=>r+1),[])}function Ue(e,t){if(!e)throw console.error(t),Error(t)}function ro(e,t,r=Rg){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}function Ir(e,t,r=Rg){return ro(e,t,r)===0}function gn(e,t,r){return ro(e,t,r)===0}function b8(e,t,r){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const a=e[o],s=t[o];if(!gn(a,s,r))return!1}return!0}function oa({panelConstraints:e,panelIndex:t,size:r}){const o=e[t];Ue(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:a=0,collapsible:s,maxSize:u=100,minSize:f=0}=o;if(ro(r,f)<0)if(s){const d=(a+f)/2;ro(r,d)<0?r=a:r=f}else r=f;return r=Math.min(u,r),r=parseFloat(r.toFixed(Rg)),r}function Hl({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:o,prevLayout:a,trigger:s}){if(gn(e,0))return t;const u=[...t],[f,d]=o;Ue(f!=null,"Invalid first pivot index"),Ue(d!=null,"Invalid second pivot index");let p=0;if(s==="keyboard"){{const g=e<0?d:f,v=r[g];Ue(v,`Panel constraints not found for index ${g}`);const{collapsedSize:S=0,collapsible:w,minSize:x=0}=v;if(w){const T=t[g];if(Ue(T!=null,`Previous layout not found for panel index ${g}`),gn(T,S)){const E=x-T;ro(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}{const g=e<0?f:d,v=r[g];Ue(v,`No panel constraints found for index ${g}`);const{collapsedSize:S=0,collapsible:w,minSize:x=0}=v;if(w){const T=t[g];if(Ue(T!=null,`Previous layout not found for panel index ${g}`),gn(T,x)){const E=T-S;ro(E,Math.abs(e))>0&&(e=e<0?0-E:E)}}}}{const g=e<0?1:-1;let v=e<0?d:f,S=0;for(;;){const x=t[v];Ue(x!=null,`Previous layout not found for panel index ${v}`);const E=oa({panelConstraints:r,panelIndex:v,size:100})-x;if(S+=E,v+=g,v<0||v>=r.length)break}const w=Math.min(Math.abs(e),Math.abs(S));e=e<0?0-w:w}{let v=e<0?f:d;for(;v>=0&&v<r.length;){const S=Math.abs(e)-Math.abs(p),w=t[v];Ue(w!=null,`Previous layout not found for panel index ${v}`);const x=w-S,T=oa({panelConstraints:r,panelIndex:v,size:x});if(!gn(w,T)&&(p+=w-T,u[v]=T,p.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?v--:v++}}if(b8(a,u))return a;{const g=e<0?d:f,v=t[g];Ue(v!=null,`Previous layout not found for panel index ${g}`);const S=v+p,w=oa({panelConstraints:r,panelIndex:g,size:S});if(u[g]=w,!gn(w,S)){let x=S-w,E=e<0?d:f;for(;E>=0&&E<r.length;){const O=u[E];Ue(O!=null,`Previous layout not found for panel index ${E}`);const _=O+x,L=oa({panelConstraints:r,panelIndex:E,size:_});if(gn(O,L)||(x-=L-O,u[E]=L),gn(x,0))break;e>0?E--:E++}}}const m=u.reduce((g,v)=>v+g,0);return gn(m,100)?u:a}function S8({layout:e,panelsArray:t,pivotIndices:r}){let o=0,a=100,s=0,u=0;const f=r[0];Ue(f!=null,"No pivot index found"),t.forEach((g,v)=>{const{constraints:S}=g,{maxSize:w=100,minSize:x=0}=S;v===f?(o=x,a=w):(s+=x,u+=w)});const d=Math.min(a,100-s),p=Math.max(o,100-u),m=e[f];return{valueMax:d,valueMin:p,valueNow:m}}function os(e,t=document){return Array.from(t.querySelectorAll(`[${mt.resizeHandleId}][data-panel-group-id="${e}"]`))}function _R(e,t,r=document){const a=os(e,r).findIndex(s=>s.getAttribute(mt.resizeHandleId)===t);return a??null}function kR(e,t,r){const o=_R(e,t,r);return o!=null?[o,o+1]:[-1,-1]}function DR(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function sf(e,t=document){const r=t.querySelector(`[${mt.resizeHandleId}="${e}"]`);return r||null}function x8(e,t,r,o=document){var a,s,u,f;const d=sf(t,o),p=os(e,o),m=d?p.indexOf(d):-1,g=(a=(s=r[m])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,v=(u=(f=r[m+1])===null||f===void 0?void 0:f.id)!==null&&u!==void 0?u:null;return[g,v]}function w8({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:o,panelDataArray:a,panelGroupElement:s,setLayout:u}){b.useRef({didWarnAboutMissingResizeHandle:!1}),Ki(()=>{if(!s)return;const f=os(r,s);for(let d=0;d<a.length-1;d++){const{valueMax:p,valueMin:m,valueNow:g}=S8({layout:o,panelsArray:a,pivotIndices:[d,d+1]}),v=f[d];if(v!=null){const S=a[d];Ue(S,`No panel data found for index "${d}"`),v.setAttribute("aria-controls",S.id),v.setAttribute("aria-valuemax",""+Math.round(p)),v.setAttribute("aria-valuemin",""+Math.round(m)),v.setAttribute("aria-valuenow",g!=null?""+Math.round(g):"")}}return()=>{f.forEach((d,p)=>{d.removeAttribute("aria-controls"),d.removeAttribute("aria-valuemax"),d.removeAttribute("aria-valuemin"),d.removeAttribute("aria-valuenow")})}},[r,o,a,s]),b.useEffect(()=>{if(!s)return;const f=t.current;Ue(f,"Eager values not found");const{panelDataArray:d}=f,p=DR(r,s);Ue(p!=null,`No group found for id "${r}"`);const m=os(r,s);Ue(m,`No resize handles found for group id "${r}"`);const g=m.map(v=>{const S=v.getAttribute(mt.resizeHandleId);Ue(S,"Resize handle element has no handle id attribute");const[w,x]=x8(r,S,d,s);if(w==null||x==null)return()=>{};const T=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const O=d.findIndex(_=>_.id===w);if(O>=0){const _=d[O];Ue(_,`No panel data found for index ${O}`);const L=o[O],{collapsedSize:P=0,collapsible:D,minSize:I=0}=_.constraints;if(L!=null&&D){const G=Hl({delta:gn(L,P)?I-P:P-L,initialLayout:o,panelConstraints:d.map(X=>X.constraints),pivotIndices:kR(r,S,s),prevLayout:o,trigger:"keyboard"});o!==G&&u(G)}}break}}};return v.addEventListener("keydown",T),()=>{v.removeEventListener("keydown",T)}});return()=>{g.forEach(v=>v())}},[s,e,t,r,o,a,u])}function $S(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function NR(e,t){const r=e==="horizontal",{x:o,y:a}=af(t);return r?o:a}function E8(e,t,r,o,a){const s=r==="horizontal",u=sf(t,a);Ue(u,`No resize handle element found for id "${t}"`);const f=u.getAttribute(mt.groupId);Ue(f,"Resize handle element has no group id attribute");let{initialCursorPosition:d}=o;const p=NR(r,e),m=DR(f,a);Ue(m,`No group element found for id "${f}"`);const g=m.getBoundingClientRect(),v=s?g.width:g.height;return(p-d)/v*100}function C8(e,t,r,o,a,s){if(xR(e)){const u=r==="horizontal";let f=0;e.shiftKey?f=100:a!=null?f=a:f=10;let d=0;switch(e.key){case"ArrowDown":d=u?0:f;break;case"ArrowLeft":d=u?-f:0;break;case"ArrowRight":d=u?f:0;break;case"ArrowUp":d=u?0:-f;break;case"End":d=100;break;case"Home":d=-100;break}return d}else return o==null?0:E8(e,t,r,o,s)}function T8({panelDataArray:e}){const t=Array(e.length),r=e.map(s=>s.constraints);let o=0,a=100;for(let s=0;s<e.length;s++){const u=r[s];Ue(u,`Panel constraints not found for index ${s}`);const{defaultSize:f}=u;f!=null&&(o++,t[s]=f,a-=f)}for(let s=0;s<e.length;s++){const u=r[s];Ue(u,`Panel constraints not found for index ${s}`);const{defaultSize:f}=u;if(f!=null)continue;const d=e.length-o,p=a/d;o++,t[s]=p,a-=p}return t}function ra(e,t,r){t.forEach((o,a)=>{const s=e[a];Ue(s,`Panel data not found for index ${a}`);const{callbacks:u,constraints:f,id:d}=s,{collapsedSize:p=0,collapsible:m}=f,g=r[d];if(g==null||o!==g){r[d]=o;const{onCollapse:v,onExpand:S,onResize:w}=u;w&&w(o,g),m&&(v||S)&&(S&&(g==null||Ir(g,p))&&!Ir(o,p)&&S(),v&&(g==null||!Ir(g,p))&&Ir(o,p)&&v())}})}function Ku(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function R8({defaultSize:e,dragState:t,layout:r,panelData:o,panelIndex:a,precision:s=3}){const u=r[a];let f;return u==null?f=e!=null?e.toPrecision(s):"1":o.length===1?f="1":f=u.toPrecision(s),{flexBasis:0,flexGrow:f,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function O8(e,t=10){let r=null;return(...a)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...a)},t)}}function YS(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function PR(e){return`react-resizable-panels:${e}`}function LR(e){return e.map(t=>{const{constraints:r,id:o,idIsFromProps:a,order:s}=t;return a?o:s?`${s}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}function zR(e,t){try{const r=PR(e),o=t.getItem(r);if(o){const a=JSON.parse(o);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function A8(e,t,r){var o,a;const s=(o=zR(e,r))!==null&&o!==void 0?o:{},u=LR(t);return(a=s[u])!==null&&a!==void 0?a:null}function M8(e,t,r,o,a){var s;const u=PR(e),f=LR(t),d=(s=zR(e,a))!==null&&s!==void 0?s:{};d[f]={expandToSizes:Object.fromEntries(r.entries()),layout:o};try{a.setItem(u,JSON.stringify(d))}catch(p){console.error(p)}}function KS({layout:e,panelConstraints:t}){const r=[...e],o=r.reduce((s,u)=>s+u,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(s=>`${s}%`).join(", ")}`);if(!gn(o,100)&&r.length>0)for(let s=0;s<t.length;s++){const u=r[s];Ue(u!=null,`No layout data found for index ${s}`);const f=100/o*u;r[s]=f}let a=0;for(let s=0;s<t.length;s++){const u=r[s];Ue(u!=null,`No layout data found for index ${s}`);const f=oa({panelConstraints:t,panelIndex:s,size:u});u!=f&&(a+=u-f,r[s]=f)}if(!gn(a,0))for(let s=0;s<t.length;s++){const u=r[s];Ue(u!=null,`No layout data found for index ${s}`);const f=u+a,d=oa({panelConstraints:t,panelIndex:s,size:f});if(u!==d&&(a-=d-u,r[s]=d,gn(a,0)))break}return r}const _8=100,Fl={getItem:e=>(YS(Fl),Fl.getItem(e)),setItem:(e,t)=>{YS(Fl),Fl.setItem(e,t)}},QS={};function IR({autoSaveId:e=null,children:t,className:r="",direction:o,forwardedRef:a,id:s=null,onLayout:u=null,keyboardResizeBy:f=null,storage:d=Fl,style:p,tagName:m="div",...g}){const v=Og(s),S=b.useRef(null),[w,x]=b.useState(null),[T,E]=b.useState([]),O=v8(),_=b.useRef({}),L=b.useRef(new Map),P=b.useRef(0),D=b.useRef({autoSaveId:e,direction:o,dragState:w,id:v,keyboardResizeBy:f,onLayout:u,storage:d}),I=b.useRef({layout:T,panelDataArray:[],panelDataArrayChanged:!1});b.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),b.useImperativeHandle(a,()=>({getId:()=>D.current.id,getLayout:()=>{const{layout:A}=I.current;return A},setLayout:A=>{const{onLayout:te}=D.current,{layout:he,panelDataArray:ie}=I.current,Y=KS({layout:A,panelConstraints:ie.map(ce=>ce.constraints)});$S(he,Y)||(E(Y),I.current.layout=Y,te&&te(Y),ra(ie,Y,_.current))}}),[]),Ki(()=>{D.current.autoSaveId=e,D.current.direction=o,D.current.dragState=w,D.current.id=v,D.current.onLayout=u,D.current.storage=d}),w8({committedValuesRef:D,eagerValuesRef:I,groupId:v,layout:T,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:S.current}),b.useEffect(()=>{const{panelDataArray:A}=I.current;if(e){if(T.length===0||T.length!==A.length)return;let te=QS[e];te==null&&(te=O8(M8,_8),QS[e]=te);const he=[...A],ie=new Map(L.current);te(e,he,ie,T,d)}},[e,T,d]),b.useEffect(()=>{});const G=b.useCallback(A=>{const{onLayout:te}=D.current,{layout:he,panelDataArray:ie}=I.current;if(A.constraints.collapsible){const Y=ie.map(Ne=>Ne.constraints),{collapsedSize:ce=0,panelSize:Ee,pivotIndices:Ce}=Gi(ie,A,he);if(Ue(Ee!=null,`Panel size not found for panel "${A.id}"`),!Ir(Ee,ce)){L.current.set(A.id,Ee);const Fe=ia(ie,A)===ie.length-1?Ee-ce:ce-Ee,ze=Hl({delta:Fe,initialLayout:he,panelConstraints:Y,pivotIndices:Ce,prevLayout:he,trigger:"imperative-api"});Ku(he,ze)||(E(ze),I.current.layout=ze,te&&te(ze),ra(ie,ze,_.current))}}},[]),X=b.useCallback((A,te)=>{const{onLayout:he}=D.current,{layout:ie,panelDataArray:Y}=I.current;if(A.constraints.collapsible){const ce=Y.map(st=>st.constraints),{collapsedSize:Ee=0,panelSize:Ce=0,minSize:Ne=0,pivotIndices:Fe}=Gi(Y,A,ie),ze=te??Ne;if(Ir(Ce,Ee)){const st=L.current.get(A.id),Yt=st!=null&&st>=ze?st:ze,bt=ia(Y,A)===Y.length-1?Ce-Yt:Yt-Ce,Ot=Hl({delta:bt,initialLayout:ie,panelConstraints:ce,pivotIndices:Fe,prevLayout:ie,trigger:"imperative-api"});Ku(ie,Ot)||(E(Ot),I.current.layout=Ot,he&&he(Ot),ra(Y,Ot,_.current))}}},[]),Z=b.useCallback(A=>{const{layout:te,panelDataArray:he}=I.current,{panelSize:ie}=Gi(he,A,te);return Ue(ie!=null,`Panel size not found for panel "${A.id}"`),ie},[]),Q=b.useCallback((A,te)=>{const{panelDataArray:he}=I.current,ie=ia(he,A);return R8({defaultSize:te,dragState:w,layout:T,panelData:he,panelIndex:ie})},[w,T]),W=b.useCallback(A=>{const{layout:te,panelDataArray:he}=I.current,{collapsedSize:ie=0,collapsible:Y,panelSize:ce}=Gi(he,A,te);return Ue(ce!=null,`Panel size not found for panel "${A.id}"`),Y===!0&&Ir(ce,ie)},[]),ue=b.useCallback(A=>{const{layout:te,panelDataArray:he}=I.current,{collapsedSize:ie=0,collapsible:Y,panelSize:ce}=Gi(he,A,te);return Ue(ce!=null,`Panel size not found for panel "${A.id}"`),!Y||ro(ce,ie)>0},[]),F=b.useCallback(A=>{const{panelDataArray:te}=I.current;te.push(A),te.sort((he,ie)=>{const Y=he.order,ce=ie.order;return Y==null&&ce==null?0:Y==null?-1:ce==null?1:Y-ce}),I.current.panelDataArrayChanged=!0,O()},[O]);Ki(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:te,storage:he}=D.current,{layout:ie,panelDataArray:Y}=I.current;let ce=null;if(A){const Ce=A8(A,Y,he);Ce&&(L.current=new Map(Object.entries(Ce.expandToSizes)),ce=Ce.layout)}ce==null&&(ce=T8({panelDataArray:Y}));const Ee=KS({layout:ce,panelConstraints:Y.map(Ce=>Ce.constraints)});$S(ie,Ee)||(E(Ee),I.current.layout=Ee,te&&te(Ee),ra(Y,Ee,_.current))}}),Ki(()=>{const A=I.current;return()=>{A.layout=[]}},[]);const oe=b.useCallback(A=>{let te=!1;const he=S.current;return he&&window.getComputedStyle(he,null).getPropertyValue("direction")==="rtl"&&(te=!0),function(Y){Y.preventDefault();const ce=S.current;if(!ce)return()=>null;const{direction:Ee,dragState:Ce,id:Ne,keyboardResizeBy:Fe,onLayout:ze}=D.current,{layout:st,panelDataArray:Yt}=I.current,{initialLayout:on}=Ce??{},bt=kR(Ne,A,ce);let Ot=C8(Y,A,Ee,Ce,Fe,ce);const Gr=Ee==="horizontal";Gr&&te&&(Ot=-Ot);const Oi=Yt.map(co=>co.constraints),Sn=Hl({delta:Ot,initialLayout:on??st,panelConstraints:Oi,pivotIndices:bt,prevLayout:st,trigger:xR(Y)?"keyboard":"mouse-or-touch"}),uo=!Ku(st,Sn);(wR(Y)||ER(Y))&&P.current!=Ot&&(P.current=Ot,!uo&&Ot!==0?Gr?gh(A,Ot<0?TR:RR):gh(A,Ot<0?OR:AR):gh(A,0)),uo&&(E(Sn),I.current.layout=Sn,ze&&ze(Sn),ra(Yt,Sn,_.current))}},[]),z=b.useCallback((A,te)=>{const{onLayout:he}=D.current,{layout:ie,panelDataArray:Y}=I.current,ce=Y.map(st=>st.constraints),{panelSize:Ee,pivotIndices:Ce}=Gi(Y,A,ie);Ue(Ee!=null,`Panel size not found for panel "${A.id}"`);const Fe=ia(Y,A)===Y.length-1?Ee-te:te-Ee,ze=Hl({delta:Fe,initialLayout:ie,panelConstraints:ce,pivotIndices:Ce,prevLayout:ie,trigger:"imperative-api"});Ku(ie,ze)||(E(ze),I.current.layout=ze,he&&he(ze),ra(Y,ze,_.current))},[]),K=b.useCallback((A,te)=>{const{layout:he,panelDataArray:ie}=I.current,{collapsedSize:Y=0,collapsible:ce}=te,{collapsedSize:Ee=0,collapsible:Ce,maxSize:Ne=100,minSize:Fe=0}=A.constraints,{panelSize:ze}=Gi(ie,A,he);ze!=null&&(ce&&Ce&&Ir(ze,Y)?Ir(Y,Ee)||z(A,Ee):ze<Fe?z(A,Fe):ze>Ne&&z(A,Ne))},[z]),ee=b.useCallback((A,te)=>{const{direction:he}=D.current,{layout:ie}=I.current;if(!S.current)return;const Y=sf(A,S.current);Ue(Y,`Drag handle element not found for id "${A}"`);const ce=NR(he,te);x({dragHandleId:A,dragHandleRect:Y.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:ie})},[]),le=b.useCallback(()=>{x(null)},[]),R=b.useCallback(A=>{const{panelDataArray:te}=I.current,he=ia(te,A);he>=0&&(te.splice(he,1),delete _.current[A.id],I.current.panelDataArrayChanged=!0,O())},[O]),$=b.useMemo(()=>({collapsePanel:G,direction:o,dragState:w,expandPanel:X,getPanelSize:Z,getPanelStyle:Q,groupId:v,isPanelCollapsed:W,isPanelExpanded:ue,reevaluatePanelConstraints:K,registerPanel:F,registerResizeHandle:oe,resizePanel:z,startDragging:ee,stopDragging:le,unregisterPanel:R,panelGroupElement:S.current}),[G,w,o,X,Z,Q,v,W,ue,K,F,oe,z,ee,le,R]),fe={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return b.createElement(of.Provider,{value:$},b.createElement(m,{...g,children:t,className:r,id:s,ref:S,style:{...fe,...p},[mt.group]:"",[mt.groupDirection]:o,[mt.groupId]:v}))}const k8=b.forwardRef((e,t)=>b.createElement(IR,{...e,forwardedRef:t}));IR.displayName="PanelGroup";k8.displayName="forwardRef(PanelGroup)";function ia(e,t){return e.findIndex(r=>r===t||r.id===t.id)}function Gi(e,t,r){const o=ia(e,t),s=o===e.length-1?[o-1,o]:[o,o+1],u=r[o];return{...t.constraints,panelSize:u,pivotIndices:s}}function D8({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:o}){b.useEffect(()=>{if(e||r==null||o==null)return;const a=sf(t,o);if(a==null)return;const s=u=>{if(!u.defaultPrevented)switch(u.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{u.preventDefault(),r(u);break}case"F6":{u.preventDefault();const f=a.getAttribute(mt.groupId);Ue(f,`No group element found for id "${f}"`);const d=os(f,o),p=_R(f,t,o);Ue(p!==null,`No resize element found for id "${t}"`);const m=u.shiftKey?p>0?p-1:d.length-1:p+1<d.length?p+1:0;d[m].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[o,e,t,r])}function N8({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:o,id:a,onBlur:s,onClick:u,onDragging:f,onFocus:d,onPointerDown:p,onPointerUp:m,style:g={},tabIndex:v=0,tagName:S="div",...w}){var x,T;const E=b.useRef(null),O=b.useRef({onClick:u,onDragging:f,onPointerDown:p,onPointerUp:m});b.useEffect(()=>{O.current.onClick=u,O.current.onDragging=f,O.current.onPointerDown=p,O.current.onPointerUp=m});const _=b.useContext(of);if(_===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:L,groupId:P,registerResizeHandle:D,startDragging:I,stopDragging:G,panelGroupElement:X}=_,Z=Og(a),[Q,W]=b.useState("inactive"),[ue,F]=b.useState(!1),[oe,z]=b.useState(null),K=b.useRef({state:Q});Ki(()=>{K.current.state=Q}),b.useEffect(()=>{if(r)z(null);else{const $=D(Z);z(()=>$)}},[r,Z,D]);const ee=(x=o?.coarse)!==null&&x!==void 0?x:15,le=(T=o?.fine)!==null&&T!==void 0?T:5;b.useEffect(()=>{if(r||oe==null)return;const $=E.current;Ue($,"Element ref not attached");let fe=!1;return g8(Z,$,L,{coarse:ee,fine:le},(te,he,ie)=>{if(!he){W("inactive");return}switch(te){case"down":{W("drag"),fe=!1,Ue(ie,'Expected event to be defined for "down" action'),I(Z,ie);const{onDragging:Y,onPointerDown:ce}=O.current;Y?.(!0),ce?.();break}case"move":{const{state:Y}=K.current;fe=!0,Y!=="drag"&&W("hover"),Ue(ie,'Expected event to be defined for "move" action'),oe(ie);break}case"up":{W("hover"),G();const{onClick:Y,onDragging:ce,onPointerUp:Ee}=O.current;ce?.(!1),Ee?.(),fe||Y?.();break}}})},[ee,L,r,le,D,Z,oe,I,G]),D8({disabled:r,handleId:Z,resizeHandler:oe,panelGroupElement:X});const R={touchAction:"none",userSelect:"none"};return b.createElement(S,{...w,children:e,className:t,id:a,onBlur:()=>{F(!1),s?.()},onFocus:()=>{F(!0),d?.()},ref:E,role:"separator",style:{...R,...g},tabIndex:v,[mt.groupDirection]:L,[mt.groupId]:P,[mt.resizeHandle]:"",[mt.resizeHandleActive]:Q==="drag"?"pointer":ue?"keyboard":void 0,[mt.resizeHandleEnabled]:!r,[mt.resizeHandleId]:Z,[mt.resizeHandleState]:Q})}N8.displayName="PanelResizeHandle";var uf="Collapsible",[P8,_B]=Gt(uf),[L8,_g]=P8(uf),jR=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:a,disabled:s,onOpenChange:u,...f}=e,[d,p]=pr({prop:o,defaultProp:a??!1,onChange:u,caller:uf});return k.jsx(L8,{scope:r,disabled:s,contentId:Pn(),open:d,onOpenToggle:b.useCallback(()=>p(m=>!m),[p]),children:k.jsx(we.div,{"data-state":Dg(d),"data-disabled":s?"":void 0,...f,ref:t})})});jR.displayName=uf;var UR="CollapsibleTrigger",z8=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,a=_g(UR,r);return k.jsx(we.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Dg(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...o,ref:t,onClick:ge(e.onClick,a.onOpenToggle)})});z8.displayName=UR;var kg="CollapsibleContent",I8=b.forwardRef((e,t)=>{const{forceMount:r,...o}=e,a=_g(kg,e.__scopeCollapsible);return k.jsx(zt,{present:r||a.open,children:({present:s})=>k.jsx(j8,{...o,ref:t,present:s})})});I8.displayName=kg;var j8=b.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:a,...s}=e,u=_g(kg,r),[f,d]=b.useState(o),p=b.useRef(null),m=Le(t,p),g=b.useRef(0),v=g.current,S=b.useRef(0),w=S.current,x=u.open||f,T=b.useRef(x),E=b.useRef(void 0);return b.useEffect(()=>{const O=requestAnimationFrame(()=>T.current=!1);return()=>cancelAnimationFrame(O)},[]),vt(()=>{const O=p.current;if(O){E.current=E.current||{transitionDuration:O.style.transitionDuration,animationName:O.style.animationName},O.style.transitionDuration="0s",O.style.animationName="none";const _=O.getBoundingClientRect();g.current=_.height,S.current=_.width,T.current||(O.style.transitionDuration=E.current.transitionDuration,O.style.animationName=E.current.animationName),d(o)}},[u.open,o]),k.jsx(we.div,{"data-state":Dg(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!x,...s,ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:x&&a})});function Dg(e){return e?"open":"closed"}var kB=jR,cf="Switch",[U8,DB]=Gt(cf),[B8,H8]=U8(cf),BR=b.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:a,defaultChecked:s,required:u,disabled:f,value:d="on",onCheckedChange:p,form:m,...g}=e,[v,S]=b.useState(null),w=Le(t,_=>S(_)),x=b.useRef(!1),T=v?m||!!v.closest("form"):!0,[E,O]=pr({prop:a,defaultProp:s??!1,onChange:p,caller:cf});return k.jsxs(B8,{scope:r,checked:E,disabled:f,children:[k.jsx(we.button,{type:"button",role:"switch","aria-checked":E,"aria-required":u,"data-state":VR(E),"data-disabled":f?"":void 0,disabled:f,value:d,...g,ref:w,onClick:ge(e.onClick,_=>{O(L=>!L),T&&(x.current=_.isPropagationStopped(),x.current||_.stopPropagation())})}),T&&k.jsx(qR,{control:v,bubbles:!x.current,name:o,value:d,checked:E,required:u,disabled:f,form:m,style:{transform:"translateX(-100%)"}})]})});BR.displayName=cf;var HR="SwitchThumb",FR=b.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,a=H8(HR,r);return k.jsx(we.span,{"data-state":VR(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})});FR.displayName=HR;var F8="SwitchBubbleInput",qR=b.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...a},s)=>{const u=b.useRef(null),f=Le(u,s),d=lE(r),p=qx(t);return b.useEffect(()=>{const m=u.current;if(!m)return;const g=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(g,"checked").set;if(d!==r&&S){const w=new Event("click",{bubbles:o});S.call(m,r),m.dispatchEvent(w)}},[d,r,o]),k.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:f,style:{...a.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qR.displayName=F8;function VR(e){return e?"checked":"unchecked"}var NB=BR,PB=FR;export{aB as $,$U as A,BU as B,$_ as C,K_ as D,VU as E,a7 as F,UU as G,GU as H,LU as I,bU as J,QU as K,AU as L,XU as M,WU as N,G_ as O,V_ as P,ZU as Q,Y8 as R,$8 as S,q_ as T,eB as U,PU as V,tB as W,lU as X,JU as Y,rB as Z,iB as _,F_ as a,OB as a$,uB as a0,cB as a1,sB as a2,lB as a3,oB as a4,l7 as a5,V8 as a6,i7 as a7,o7 as a8,b7 as a9,gB as aA,yB as aB,vB as aC,vU as aD,SU as aE,Ei as aF,J8 as aG,eU as aH,h7 as aI,V7 as aJ,yP as aK,w7 as aL,W7 as aM,y7 as aN,$7 as aO,R7 as aP,Q7 as aQ,f7 as aR,P7 as aS,bB as aT,Ge as aU,We as aV,RB as aW,xB as aX,EB as aY,CB as aZ,TB as a_,Q8 as aa,Z8 as ab,N7 as ac,u7 as ad,nU as ae,Y7 as af,K7 as ag,k7 as ah,iU as ai,D7 as aj,dB as ak,pB as al,hB as am,M3 as an,L3 as ao,T7 as ap,O7 as aq,E7 as ar,C7 as as,H7 as at,tU as au,d7 as av,g7 as aw,Pw as ax,zm as ay,s7 as az,Mx as b,yU as b$,wB as b0,G7 as b1,q7 as b2,aU as b3,v7 as b4,J7 as b5,t7 as b6,S7 as b7,gR as b8,x9 as b9,I8 as bA,c7 as bB,sU as bC,e7 as bD,_7 as bE,K8 as bF,rU as bG,F7 as bH,oU as bI,m7 as bJ,p7 as bK,Me as bL,z7 as bM,X7 as bN,B7 as bO,X8 as bP,j7 as bQ,x7 as bR,U7 as bS,Z7 as bT,xU as bU,NB as bV,PB as bW,Hw as bX,M7 as bY,W8 as bZ,CU as b_,AB as ba,UI as bb,jI as bc,ca as bd,vS as be,vR as bf,_I as bg,DS as bh,vn as bi,lr as bj,nn as bk,nm as bl,tf as bm,lt as bn,mr as bo,bg as bp,De as bq,Xe as br,DI as bs,MB as bt,a8 as bu,k8 as bv,N8 as bw,A7 as bx,kB as by,z8 as bz,Y_ as c,mU as c0,EU as c1,L7 as c2,wU as c3,$N as c4,G8 as c5,cU as d,fU as e,dU as f,qr as g,pU as h,hU as i,k as j,I7 as k,TU as l,OU as m,MU as n,_U as o,DU as p,NU as q,b as r,r7 as s,zU as t,IU as u,jU as v,HU as w,qU as x,n7 as y,FU as z};
|