forge-admin 0.0.0
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/README.md +73 -0
- package/app.db +0 -0
- package/components.json +20 -0
- package/dist/assets/index-BPVmexx_.css +1 -0
- package/dist/assets/index-BtNewH3n.js +258 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.html +27 -0
- package/dist/placeholder.svg +1 -0
- package/dist/robots.txt +14 -0
- package/eslint.config.js +26 -0
- package/index.html +26 -0
- package/package.json +107 -0
- package/postcss.config.js +6 -0
- package/public/favicon.ico +0 -0
- package/public/placeholder.svg +1 -0
- package/public/robots.txt +14 -0
- package/src/App.css +42 -0
- package/src/App.tsx +32 -0
- package/src/admin/convertSchema.ts +83 -0
- package/src/admin/factory.ts +12 -0
- package/src/admin/introspecter.ts +6 -0
- package/src/admin/router.ts +38 -0
- package/src/admin/schema.ts +17 -0
- package/src/admin/sqlite.ts +73 -0
- package/src/admin/types.ts +35 -0
- package/src/components/AdminLayout.tsx +19 -0
- package/src/components/AdminSidebar.tsx +102 -0
- package/src/components/DataTable.tsx +166 -0
- package/src/components/ModelForm.tsx +221 -0
- package/src/components/NavLink.tsx +28 -0
- package/src/components/StatCard.tsx +32 -0
- package/src/components/ui/accordion.tsx +52 -0
- package/src/components/ui/alert-dialog.tsx +104 -0
- package/src/components/ui/alert.tsx +43 -0
- package/src/components/ui/aspect-ratio.tsx +5 -0
- package/src/components/ui/avatar.tsx +38 -0
- package/src/components/ui/badge.tsx +29 -0
- package/src/components/ui/breadcrumb.tsx +90 -0
- package/src/components/ui/button.tsx +47 -0
- package/src/components/ui/calendar.tsx +54 -0
- package/src/components/ui/card.tsx +43 -0
- package/src/components/ui/carousel.tsx +224 -0
- package/src/components/ui/chart.tsx +303 -0
- package/src/components/ui/checkbox.tsx +26 -0
- package/src/components/ui/collapsible.tsx +9 -0
- package/src/components/ui/command.tsx +132 -0
- package/src/components/ui/context-menu.tsx +178 -0
- package/src/components/ui/dialog.tsx +95 -0
- package/src/components/ui/drawer.tsx +87 -0
- package/src/components/ui/dropdown-menu.tsx +179 -0
- package/src/components/ui/form.tsx +129 -0
- package/src/components/ui/hover-card.tsx +27 -0
- package/src/components/ui/input-otp.tsx +61 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +17 -0
- package/src/components/ui/menubar.tsx +207 -0
- package/src/components/ui/navigation-menu.tsx +120 -0
- package/src/components/ui/pagination.tsx +81 -0
- package/src/components/ui/popover.tsx +29 -0
- package/src/components/ui/progress.tsx +23 -0
- package/src/components/ui/radio-group.tsx +36 -0
- package/src/components/ui/resizable.tsx +37 -0
- package/src/components/ui/scroll-area.tsx +38 -0
- package/src/components/ui/select.tsx +143 -0
- package/src/components/ui/separator.tsx +20 -0
- package/src/components/ui/sheet.tsx +107 -0
- package/src/components/ui/sidebar.tsx +637 -0
- package/src/components/ui/skeleton.tsx +7 -0
- package/src/components/ui/slider.tsx +23 -0
- package/src/components/ui/sonner.tsx +27 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/table.tsx +72 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.tsx +21 -0
- package/src/components/ui/toast.tsx +111 -0
- package/src/components/ui/toaster.tsx +24 -0
- package/src/components/ui/toggle-group.tsx +49 -0
- package/src/components/ui/toggle.tsx +37 -0
- package/src/components/ui/tooltip.tsx +28 -0
- package/src/components/ui/use-toast.ts +3 -0
- package/src/config/define.ts +6 -0
- package/src/config/index.ts +0 -0
- package/src/config/load.ts +45 -0
- package/src/config/types.ts +5 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/hooks/use-toast.ts +186 -0
- package/src/index.css +142 -0
- package/src/lib/models.ts +138 -0
- package/src/lib/utils.ts +6 -0
- package/src/main.tsx +5 -0
- package/src/orm/cli/makemigrations.ts +63 -0
- package/src/orm/cli/migrate.ts +127 -0
- package/src/orm/cli.ts +30 -0
- package/src/orm/core/base-model.ts +6 -0
- package/src/orm/core/manager.ts +27 -0
- package/src/orm/core/query-builder.ts +74 -0
- package/src/orm/db/connection.ts +0 -0
- package/src/orm/db/sql-types.ts +72 -0
- package/src/orm/db/sqlite.ts +4 -0
- package/src/orm/decorators/field.ts +80 -0
- package/src/orm/decorators/model.ts +36 -0
- package/src/orm/decorators/relations.ts +0 -0
- package/src/orm/metadata/field-metadata.ts +0 -0
- package/src/orm/metadata/field-types.ts +12 -0
- package/src/orm/metadata/get-meta.ts +9 -0
- package/src/orm/metadata/index.ts +15 -0
- package/src/orm/metadata/keys.ts +2 -0
- package/src/orm/metadata/model-registry.ts +53 -0
- package/src/orm/metadata/modifiers.ts +26 -0
- package/src/orm/metadata/types.ts +45 -0
- package/src/orm/migration-engine/diff.ts +243 -0
- package/src/orm/migration-engine/operations.ts +186 -0
- package/src/orm/schema/build.ts +138 -0
- package/src/orm/schema/state.ts +23 -0
- package/src/orm/schema/writeMigrations.ts +21 -0
- package/src/orm/syncdb.ts +25 -0
- package/src/pages/Dashboard.tsx +127 -0
- package/src/pages/Index.tsx +18 -0
- package/src/pages/ModelPage.tsx +177 -0
- package/src/pages/NotFound.tsx +24 -0
- package/src/pages/SchemaEditor.tsx +170 -0
- package/src/pages/Settings.tsx +166 -0
- package/src/server.ts +69 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +112 -0
- package/tailwind.config.ts +114 -0
- package/tsconfig.app.json +30 -0
- package/tsconfig.json +16 -0
- package/tsconfig.node.json +22 -0
- package/vite.config.js +23 -0
- package/vite.config.ts +18 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
var Fd=e=>{throw TypeError(e)};var ul=(e,t,n)=>t.has(e)||Fd("Cannot "+n);var P=(e,t,n)=>(ul(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?Fd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),G=(e,t,n,r)=>(ul(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),De=(e,t,n)=>(ul(e,t,"access private method"),n);var Zs=(e,t,n,r)=>({set _(o){G(e,t,o,n)},get _(){return P(e,t,r)}});function Q0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zp={exports:{}},Ea={},Jp={exports:{}},Z={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Us=Symbol.for("react.element"),G0=Symbol.for("react.portal"),Y0=Symbol.for("react.fragment"),q0=Symbol.for("react.strict_mode"),X0=Symbol.for("react.profiler"),Z0=Symbol.for("react.provider"),J0=Symbol.for("react.context"),ex=Symbol.for("react.forward_ref"),tx=Symbol.for("react.suspense"),nx=Symbol.for("react.memo"),rx=Symbol.for("react.lazy"),$d=Symbol.iterator;function ox(e){return e===null||typeof e!="object"?null:(e=$d&&e[$d]||e["@@iterator"],typeof e=="function"?e:null)}var eh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},th=Object.assign,nh={};function Oo(e,t,n){this.props=e,this.context=t,this.refs=nh,this.updater=n||eh}Oo.prototype.isReactComponent={};Oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rh(){}rh.prototype=Oo.prototype;function hc(e,t,n){this.props=e,this.context=t,this.refs=nh,this.updater=n||eh}var mc=hc.prototype=new rh;mc.constructor=hc;th(mc,Oo.prototype);mc.isPureReactComponent=!0;var zd=Array.isArray,oh=Object.prototype.hasOwnProperty,vc={current:null},sh={key:!0,ref:!0,__self:!0,__source:!0};function ih(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)oh.call(t,r)&&!sh.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Us,type:e,key:s,ref:i,props:o,_owner:vc.current}}function sx(e,t){return{$$typeof:Us,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Us}function ix(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Bd=/\/+/g;function cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ix(""+e.key):t.toString(36)}function ki(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Us:case G0:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+cl(i,0):r,zd(o)?(n="",e!=null&&(n=e.replace(Bd,"$&/")+"/"),ki(o,t,n,"",function(u){return u})):o!=null&&(gc(o)&&(o=sx(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Bd,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",zd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+cl(s,a);i+=ki(s,t,n,l,o)}else if(l=ox(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+cl(s,a++),i+=ki(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Js(e,t,n){if(e==null)return e;var r=[],o=0;return ki(e,r,"","",function(s){return t.call(n,s,o++)}),r}function ax(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},Pi={transition:null},lx={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:Pi,ReactCurrentOwner:vc};function ah(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Js,forEach:function(e,t,n){Js(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Js(e,function(){t++}),t},toArray:function(e){return Js(e,function(t){return t})||[]},only:function(e){if(!gc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Oo;Z.Fragment=Y0;Z.Profiler=X0;Z.PureComponent=hc;Z.StrictMode=q0;Z.Suspense=tx;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lx;Z.act=ah;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=th({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=vc.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)oh.call(t,l)&&!sh.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Us,type:e.type,key:o,ref:s,props:r,_owner:i}};Z.createContext=function(e){return e={$$typeof:J0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Z0,_context:e},e.Consumer=e};Z.createElement=ih;Z.createFactory=function(e){var t=ih.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:ex,render:e}};Z.isValidElement=gc;Z.lazy=function(e){return{$$typeof:rx,_payload:{_status:-1,_result:e},_init:ax}};Z.memo=function(e,t){return{$$typeof:nx,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=Pi.transition;Pi.transition={};try{e()}finally{Pi.transition=t}};Z.unstable_act=ah;Z.useCallback=function(e,t){return Ge.current.useCallback(e,t)};Z.useContext=function(e){return Ge.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Ge.current.useEffect(e,t)};Z.useId=function(){return Ge.current.useId()};Z.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Ge.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};Z.useRef=function(e){return Ge.current.useRef(e)};Z.useState=function(e){return Ge.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Ge.current.useTransition()};Z.version="18.3.1";Jp.exports=Z;var p=Jp.exports;const M=Xp(p),yc=Q0({__proto__:null,default:M},[p]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ux=p,cx=Symbol.for("react.element"),dx=Symbol.for("react.fragment"),fx=Object.prototype.hasOwnProperty,px=ux.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hx={key:!0,ref:!0,__self:!0,__source:!0};function lh(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)fx.call(t,r)&&!hx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:cx,type:e,key:s,ref:i,props:o,_owner:px.current}}Ea.Fragment=dx;Ea.jsx=lh;Ea.jsxs=lh;Zp.exports=Ea;var d=Zp.exports,uh={exports:{}},lt={},ch={exports:{}},dh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(k,R){var L=k.length;k.push(R);e:for(;0<L;){var W=L-1>>>1,B=k[W];if(0<o(B,R))k[W]=R,k[L]=B,L=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var R=k[0],L=k.pop();if(L!==R){k[0]=L;e:for(var W=0,B=k.length,q=B>>>1;W<q;){var K=2*(W+1)-1,de=k[K],we=K+1,D=k[we];if(0>o(de,L))we<B&&0>o(D,de)?(k[W]=D,k[we]=L,W=we):(k[W]=de,k[K]=L,W=K);else if(we<B&&0>o(D,L))k[W]=D,k[we]=L,W=we;else break e}}return R}function o(k,R){var L=k.sortIndex-R.sortIndex;return L!==0?L:k.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],u=[],c=1,f=null,g=3,m=!1,S=!1,h=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(k){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=k)r(u),R.sortIndex=R.expirationTime,t(l,R);else break;R=n(u)}}function b(k){if(h=!1,x(k),!S)if(n(l)!==null)S=!0,$(C);else{var R=n(u);R!==null&&U(b,R.startTime-k)}}function C(k,R){S=!1,h&&(h=!1,y(T),T=-1),m=!0;var L=g;try{for(x(R),f=n(l);f!==null&&(!(f.expirationTime>R)||k&&!z());){var W=f.callback;if(typeof W=="function"){f.callback=null,g=f.priorityLevel;var B=W(f.expirationTime<=R);R=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(l)&&r(l),x(R)}else r(l);f=n(l)}if(f!==null)var q=!0;else{var K=n(u);K!==null&&U(b,K.startTime-R),q=!1}return q}finally{f=null,g=L,m=!1}}var N=!1,E=null,T=-1,O=5,_=-1;function z(){return!(e.unstable_now()-_<O)}function I(){if(E!==null){var k=e.unstable_now();_=k;var R=!0;try{R=E(!0,k)}finally{R?V():(N=!1,E=null)}}else N=!1}var V;if(typeof v=="function")V=function(){v(I)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,H=A.port2;A.port1.onmessage=I,V=function(){H.postMessage(null)}}else V=function(){w(I,0)};function $(k){E=k,N||(N=!0,V())}function U(k,R){T=w(function(){k(e.unstable_now())},R)}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(k){k.callback=null},e.unstable_continueExecution=function(){S||m||(S=!0,$(C))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var R=3;break;default:R=g}var L=g;g=R;try{return k()}finally{g=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,R){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=g;g=k;try{return R()}finally{g=L}},e.unstable_scheduleCallback=function(k,R,L){var W=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?W+L:W):L=W,k){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=L+B,k={id:c++,callback:R,priorityLevel:k,startTime:L,expirationTime:B,sortIndex:-1},L>W?(k.sortIndex=L,t(u,k),n(l)===null&&k===n(u)&&(h?(y(T),T=-1):h=!0,U(b,L-W))):(k.sortIndex=B,t(l,k),S||m||(S=!0,$(C))),k},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(k){var R=g;return function(){var L=g;g=R;try{return k.apply(this,arguments)}finally{g=L}}}})(dh);ch.exports=dh;var mx=ch.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var vx=p,at=mx;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fh=new Set,ms={};function Tr(e,t){wo(e,t),wo(e+"Capture",t)}function wo(e,t){for(ms[e]=t,e=0;e<t.length;e++)fh.add(t[e])}var an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,gx=/^[: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]*$/,Ud={},Vd={};function yx(e){return Xl.call(Vd,e)?!0:Xl.call(Ud,e)?!1:gx.test(e)?Vd[e]=!0:(Ud[e]=!0,!1)}function xx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wx(e,t,n,r){if(t===null||typeof t>"u"||xx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var Ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ae[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ae[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ae[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ae[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ae[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ae[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ae[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ae[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ae[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var xc=/[\-:]([a-z])/g;function wc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xc,wc);Ae[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xc,wc);Ae[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xc,wc);Ae[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ae[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Ae.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ae[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sc(e,t,n,r){var o=Ae.hasOwnProperty(t)?Ae[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wx(t,n,o,r)&&(n=null),r||o===null?yx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pn=vx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ei=Symbol.for("react.element"),Ur=Symbol.for("react.portal"),Vr=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),Zl=Symbol.for("react.profiler"),ph=Symbol.for("react.provider"),hh=Symbol.for("react.context"),Cc=Symbol.for("react.forward_ref"),Jl=Symbol.for("react.suspense"),eu=Symbol.for("react.suspense_list"),Ec=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),mh=Symbol.for("react.offscreen"),Wd=Symbol.iterator;function Vo(e){return e===null||typeof e!="object"?null:(e=Wd&&e[Wd]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,dl;function Jo(e){if(dl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);dl=t&&t[1]||""}return`
|
|
34
|
+
`+dl+e}var fl=!1;function pl(e,t){if(!e||fl)return"";fl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=`
|
|
37
|
+
`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jo(e):""}function Sx(e){switch(e.tag){case 5:return Jo(e.type);case 16:return Jo("Lazy");case 13:return Jo("Suspense");case 19:return Jo("SuspenseList");case 0:case 2:case 15:return e=pl(e.type,!1),e;case 11:return e=pl(e.type.render,!1),e;case 1:return e=pl(e.type,!0),e;default:return""}}function tu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vr:return"Fragment";case Ur:return"Portal";case Zl:return"Profiler";case bc:return"StrictMode";case Jl:return"Suspense";case eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hh:return(e.displayName||"Context")+".Consumer";case ph:return(e._context.displayName||"Context")+".Provider";case Cc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ec:return t=e.displayName||null,t!==null?t:tu(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return tu(e(t))}catch{}}return null}function bx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tu(t);case 8:return t===bc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cx(e){var t=vh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=Cx(e))}function gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nu(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yh(e,t){t=t.checked,t!=null&&Sc(e,"checked",t,!1)}function ru(e,t){yh(e,t);var n=Hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&ou(e,t.type,Hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ou(e,t,n){(t!=="number"||Vi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var es=Array.isArray;function eo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Hn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function su(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(es(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Hn(n)}}function xh(e,t){var n=Hn(t.value),r=Hn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Gd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ni,Sh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ni=ni||document.createElement("div"),ni.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ni.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var os={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ex=["Webkit","ms","Moz","O"];Object.keys(os).forEach(function(e){Ex.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),os[t]=os[e]})});function bh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||os.hasOwnProperty(e)&&os[e]?(""+t).trim():t+"px"}function Ch(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nx=xe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function au(e,t){if(t){if(Nx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function lu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uu=null;function Nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cu=null,to=null,no=null;function Yd(e){if(e=Hs(e)){if(typeof cu!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ra(t),cu(e.stateNode,e.type,t))}}function Eh(e){to?no?no.push(e):no=[e]:to=e}function Nh(){if(to){var e=to,t=no;if(no=to=null,Yd(e),t)for(e=0;e<t.length;e++)Yd(t[e])}}function kh(e,t){return e(t)}function Ph(){}var hl=!1;function Th(e,t,n){if(hl)return e(t,n);hl=!0;try{return kh(e,t,n)}finally{hl=!1,(to!==null||no!==null)&&(Ph(),Nh())}}function gs(e,t){var n=e.stateNode;if(n===null)return null;var r=Ra(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var du=!1;if(an)try{var Wo={};Object.defineProperty(Wo,"passive",{get:function(){du=!0}}),window.addEventListener("test",Wo,Wo),window.removeEventListener("test",Wo,Wo)}catch{du=!1}function kx(e,t,n,r,o,s,i,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ss=!1,Wi=null,Hi=!1,fu=null,Px={onError:function(e){ss=!0,Wi=e}};function Tx(e,t,n,r,o,s,i,a,l){ss=!1,Wi=null,kx.apply(Px,arguments)}function Rx(e,t,n,r,o,s,i,a,l){if(Tx.apply(this,arguments),ss){if(ss){var u=Wi;ss=!1,Wi=null}else throw Error(j(198));Hi||(Hi=!0,fu=u)}}function Rr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Rh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function qd(e){if(Rr(e)!==e)throw Error(j(188))}function jx(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return qd(o),e;if(s===r)return qd(o),t;s=s.sibling}throw Error(j(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function jh(e){return e=jx(e),e!==null?_h(e):null}function _h(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_h(e);if(t!==null)return t;e=e.sibling}return null}var Oh=at.unstable_scheduleCallback,Xd=at.unstable_cancelCallback,_x=at.unstable_shouldYield,Ox=at.unstable_requestPaint,ke=at.unstable_now,Mx=at.unstable_getCurrentPriorityLevel,kc=at.unstable_ImmediatePriority,Mh=at.unstable_UserBlockingPriority,Ki=at.unstable_NormalPriority,Ax=at.unstable_LowPriority,Ah=at.unstable_IdlePriority,Na=null,Kt=null;function Ix(e){if(Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(Na,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:Fx,Lx=Math.log,Dx=Math.LN2;function Fx(e){return e>>>=0,e===0?32:31-(Lx(e)/Dx|0)|0}var ri=64,oi=4194304;function ts(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=ts(a):(s&=i,s!==0&&(r=ts(s)))}else i=n&~o,i!==0?r=ts(i):s!==0&&(r=ts(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function $x(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zx(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-_t(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=$x(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function pu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ih(){var e=ri;return ri<<=1,!(ri&4194240)&&(ri=64),e}function ml(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Bx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-_t(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Pc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function Lh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Dh,Tc,Fh,$h,zh,hu=!1,si=[],In=null,Ln=null,Dn=null,ys=new Map,xs=new Map,Nn=[],Ux="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Zd(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":ys.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(t.pointerId)}}function Ho(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=Hs(t),t!==null&&Tc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Vx(e,t,n,r,o){switch(t){case"focusin":return In=Ho(In,e,t,n,r,o),!0;case"dragenter":return Ln=Ho(Ln,e,t,n,r,o),!0;case"mouseover":return Dn=Ho(Dn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return ys.set(s,Ho(ys.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,xs.set(s,Ho(xs.get(s)||null,e,t,n,r,o)),!0}return!1}function Bh(e){var t=lr(e.target);if(t!==null){var n=Rr(t);if(n!==null){if(t=n.tag,t===13){if(t=Rh(n),t!==null){e.blockedOn=t,zh(e.priority,function(){Fh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);uu=r,n.target.dispatchEvent(r),uu=null}else return t=Hs(n),t!==null&&Tc(t),e.blockedOn=n,!1;t.shift()}return!0}function Jd(e,t,n){Ti(e)&&n.delete(t)}function Wx(){hu=!1,In!==null&&Ti(In)&&(In=null),Ln!==null&&Ti(Ln)&&(Ln=null),Dn!==null&&Ti(Dn)&&(Dn=null),ys.forEach(Jd),xs.forEach(Jd)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,hu||(hu=!0,at.unstable_scheduleCallback(at.unstable_NormalPriority,Wx)))}function ws(e){function t(o){return Ko(o,e)}if(0<si.length){Ko(si[0],e);for(var n=1;n<si.length;n++){var r=si[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&Ko(In,e),Ln!==null&&Ko(Ln,e),Dn!==null&&Ko(Dn,e),ys.forEach(t),xs.forEach(t),n=0;n<Nn.length;n++)r=Nn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Nn.length&&(n=Nn[0],n.blockedOn===null);)Bh(n),n.blockedOn===null&&Nn.shift()}var ro=pn.ReactCurrentBatchConfig,Gi=!0;function Hx(e,t,n,r){var o=ae,s=ro.transition;ro.transition=null;try{ae=1,Rc(e,t,n,r)}finally{ae=o,ro.transition=s}}function Kx(e,t,n,r){var o=ae,s=ro.transition;ro.transition=null;try{ae=4,Rc(e,t,n,r)}finally{ae=o,ro.transition=s}}function Rc(e,t,n,r){if(Gi){var o=mu(e,t,n,r);if(o===null)Nl(e,t,r,Yi,n),Zd(e,r);else if(Vx(o,e,t,n,r))r.stopPropagation();else if(Zd(e,r),t&4&&-1<Ux.indexOf(e)){for(;o!==null;){var s=Hs(o);if(s!==null&&Dh(s),s=mu(e,t,n,r),s===null&&Nl(e,t,r,Yi,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else Nl(e,t,r,null,n)}}var Yi=null;function mu(e,t,n,r){if(Yi=null,e=Nc(r),e=lr(e),e!==null)if(t=Rr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Rh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yi=e,null}function Uh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Mx()){case kc:return 1;case Mh:return 4;case Ki:case Ax:return 16;case Ah:return 536870912;default:return 16}default:return 16}}var On=null,jc=null,Ri=null;function Vh(){if(Ri)return Ri;var e,t=jc,n=t.length,r,o="value"in On?On.value:On.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return Ri=o.slice(e,1<r?1-r:void 0)}function ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ii(){return!0}function ef(){return!1}function ut(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ii:ef,this.isPropagationStopped=ef,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_c=ut(Mo),Ws=xe({},Mo,{view:0,detail:0}),Qx=ut(Ws),vl,gl,Qo,ka=xe({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qo&&(Qo&&e.type==="mousemove"?(vl=e.screenX-Qo.screenX,gl=e.screenY-Qo.screenY):gl=vl=0,Qo=e),vl)},movementY:function(e){return"movementY"in e?e.movementY:gl}}),tf=ut(ka),Gx=xe({},ka,{dataTransfer:0}),Yx=ut(Gx),qx=xe({},Ws,{relatedTarget:0}),yl=ut(qx),Xx=xe({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),Zx=ut(Xx),Jx=xe({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ew=ut(Jx),tw=xe({},Mo,{data:0}),nf=ut(tw),nw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rw={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"},ow={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ow[e])?!!t[e]:!1}function Oc(){return sw}var iw=xe({},Ws,{key:function(e){if(e.key){var t=nw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aw=ut(iw),lw=xe({},ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rf=ut(lw),uw=xe({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),cw=ut(uw),dw=xe({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),fw=ut(dw),pw=xe({},ka,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),hw=ut(pw),mw=[9,13,27,32],Mc=an&&"CompositionEvent"in window,is=null;an&&"documentMode"in document&&(is=document.documentMode);var vw=an&&"TextEvent"in window&&!is,Wh=an&&(!Mc||is&&8<is&&11>=is),of=" ",sf=!1;function Hh(e,t){switch(e){case"keyup":return mw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wr=!1;function gw(e,t){switch(e){case"compositionend":return Kh(t);case"keypress":return t.which!==32?null:(sf=!0,of);case"textInput":return e=t.data,e===of&&sf?null:e;default:return null}}function yw(e,t){if(Wr)return e==="compositionend"||!Mc&&Hh(e,t)?(e=Vh(),Ri=jc=On=null,Wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wh&&t.locale!=="ko"?null:t.data;default:return null}}var xw={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 af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xw[e.type]:t==="textarea"}function Qh(e,t,n,r){Eh(r),t=qi(t,"onChange"),0<t.length&&(n=new _c("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var as=null,Ss=null;function ww(e){om(e,0)}function Pa(e){var t=Qr(e);if(gh(t))return e}function Sw(e,t){if(e==="change")return t}var Gh=!1;if(an){var xl;if(an){var wl="oninput"in document;if(!wl){var lf=document.createElement("div");lf.setAttribute("oninput","return;"),wl=typeof lf.oninput=="function"}xl=wl}else xl=!1;Gh=xl&&(!document.documentMode||9<document.documentMode)}function uf(){as&&(as.detachEvent("onpropertychange",Yh),Ss=as=null)}function Yh(e){if(e.propertyName==="value"&&Pa(Ss)){var t=[];Qh(t,Ss,e,Nc(e)),Th(ww,t)}}function bw(e,t,n){e==="focusin"?(uf(),as=t,Ss=n,as.attachEvent("onpropertychange",Yh)):e==="focusout"&&uf()}function Cw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pa(Ss)}function Ew(e,t){if(e==="click")return Pa(t)}function Nw(e,t){if(e==="input"||e==="change")return Pa(t)}function kw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:kw;function bs(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Xl.call(t,o)||!Mt(e[o],t[o]))return!1}return!0}function cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function df(e,t){var n=cf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cf(n)}}function qh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xh(){for(var e=window,t=Vi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vi(e.document)}return t}function Ac(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pw(e){var t=Xh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qh(n.ownerDocument.documentElement,n)){if(r!==null&&Ac(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=df(n,s);var i=df(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Tw=an&&"documentMode"in document&&11>=document.documentMode,Hr=null,vu=null,ls=null,gu=!1;function ff(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gu||Hr==null||Hr!==Vi(r)||(r=Hr,"selectionStart"in r&&Ac(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ls&&bs(ls,r)||(ls=r,r=qi(vu,"onSelect"),0<r.length&&(t=new _c("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kr={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionend:ai("Transition","TransitionEnd")},Sl={},Zh={};an&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete Kr.animationend.animation,delete Kr.animationiteration.animation,delete Kr.animationstart.animation),"TransitionEvent"in window||delete Kr.transitionend.transition);function Ta(e){if(Sl[e])return Sl[e];if(!Kr[e])return e;var t=Kr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zh)return Sl[e]=t[n];return e}var Jh=Ta("animationend"),em=Ta("animationiteration"),tm=Ta("animationstart"),nm=Ta("transitionend"),rm=new Map,pf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yn(e,t){rm.set(e,t),Tr(t,[e])}for(var bl=0;bl<pf.length;bl++){var Cl=pf[bl],Rw=Cl.toLowerCase(),jw=Cl[0].toUpperCase()+Cl.slice(1);Yn(Rw,"on"+jw)}Yn(Jh,"onAnimationEnd");Yn(em,"onAnimationIteration");Yn(tm,"onAnimationStart");Yn("dblclick","onDoubleClick");Yn("focusin","onFocus");Yn("focusout","onBlur");Yn(nm,"onTransitionEnd");wo("onMouseEnter",["mouseout","mouseover"]);wo("onMouseLeave",["mouseout","mouseover"]);wo("onPointerEnter",["pointerout","pointerover"]);wo("onPointerLeave",["pointerout","pointerover"]);Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ns="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(" "),_w=new Set("cancel close invalid load scroll toggle".split(" ").concat(ns));function hf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Rx(r,t,void 0,e),e.currentTarget=null}function om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;hf(o,a,u),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;hf(o,a,u),s=l}}}if(Hi)throw e=fu,Hi=!1,fu=null,e}function pe(e,t){var n=t[bu];n===void 0&&(n=t[bu]=new Set);var r=e+"__bubble";n.has(r)||(sm(t,e,2,!1),n.add(r))}function El(e,t,n){var r=0;t&&(r|=4),sm(n,e,r,t)}var li="_reactListening"+Math.random().toString(36).slice(2);function Cs(e){if(!e[li]){e[li]=!0,fh.forEach(function(n){n!=="selectionchange"&&(_w.has(n)||El(n,!1,e),El(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[li]||(t[li]=!0,El("selectionchange",!1,t))}}function sm(e,t,n,r){switch(Uh(t)){case 1:var o=Hx;break;case 4:o=Kx;break;default:o=Rc}n=o.bind(null,t,n,e),o=void 0,!du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nl(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=lr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}Th(function(){var u=s,c=Nc(n),f=[];e:{var g=rm.get(e);if(g!==void 0){var m=_c,S=e;switch(e){case"keypress":if(ji(n)===0)break e;case"keydown":case"keyup":m=aw;break;case"focusin":S="focus",m=yl;break;case"focusout":S="blur",m=yl;break;case"beforeblur":case"afterblur":m=yl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=tf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Yx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=cw;break;case Jh:case em:case tm:m=Zx;break;case nm:m=fw;break;case"scroll":m=Qx;break;case"wheel":m=hw;break;case"copy":case"cut":case"paste":m=ew;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=rf}var h=(t&4)!==0,w=!h&&e==="scroll",y=h?g!==null?g+"Capture":null:g;h=[];for(var v=u,x;v!==null;){x=v;var b=x.stateNode;if(x.tag===5&&b!==null&&(x=b,y!==null&&(b=gs(v,y),b!=null&&h.push(Es(v,b,x)))),w)break;v=v.return}0<h.length&&(g=new m(g,S,null,n,c),f.push({event:g,listeners:h}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",g&&n!==uu&&(S=n.relatedTarget||n.fromElement)&&(lr(S)||S[ln]))break e;if((m||g)&&(g=c.window===c?c:(g=c.ownerDocument)?g.defaultView||g.parentWindow:window,m?(S=n.relatedTarget||n.toElement,m=u,S=S?lr(S):null,S!==null&&(w=Rr(S),S!==w||S.tag!==5&&S.tag!==6)&&(S=null)):(m=null,S=u),m!==S)){if(h=tf,b="onMouseLeave",y="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(h=rf,b="onPointerLeave",y="onPointerEnter",v="pointer"),w=m==null?g:Qr(m),x=S==null?g:Qr(S),g=new h(b,v+"leave",m,n,c),g.target=w,g.relatedTarget=x,b=null,lr(c)===u&&(h=new h(y,v+"enter",S,n,c),h.target=x,h.relatedTarget=w,b=h),w=b,m&&S)t:{for(h=m,y=S,v=0,x=h;x;x=Dr(x))v++;for(x=0,b=y;b;b=Dr(b))x++;for(;0<v-x;)h=Dr(h),v--;for(;0<x-v;)y=Dr(y),x--;for(;v--;){if(h===y||y!==null&&h===y.alternate)break t;h=Dr(h),y=Dr(y)}h=null}else h=null;m!==null&&mf(f,g,m,h,!1),S!==null&&w!==null&&mf(f,w,S,h,!0)}}e:{if(g=u?Qr(u):window,m=g.nodeName&&g.nodeName.toLowerCase(),m==="select"||m==="input"&&g.type==="file")var C=Sw;else if(af(g))if(Gh)C=Nw;else{C=Cw;var N=bw}else(m=g.nodeName)&&m.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(C=Ew);if(C&&(C=C(e,u))){Qh(f,C,n,c);break e}N&&N(e,g,u),e==="focusout"&&(N=g._wrapperState)&&N.controlled&&g.type==="number"&&ou(g,"number",g.value)}switch(N=u?Qr(u):window,e){case"focusin":(af(N)||N.contentEditable==="true")&&(Hr=N,vu=u,ls=null);break;case"focusout":ls=vu=Hr=null;break;case"mousedown":gu=!0;break;case"contextmenu":case"mouseup":case"dragend":gu=!1,ff(f,n,c);break;case"selectionchange":if(Tw)break;case"keydown":case"keyup":ff(f,n,c)}var E;if(Mc)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Wr?Hh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Wh&&n.locale!=="ko"&&(Wr||T!=="onCompositionStart"?T==="onCompositionEnd"&&Wr&&(E=Vh()):(On=c,jc="value"in On?On.value:On.textContent,Wr=!0)),N=qi(u,T),0<N.length&&(T=new nf(T,e,null,n,c),f.push({event:T,listeners:N}),E?T.data=E:(E=Kh(n),E!==null&&(T.data=E)))),(E=vw?gw(e,n):yw(e,n))&&(u=qi(u,"onBeforeInput"),0<u.length&&(c=new nf("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}om(f,t)})}function Es(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=gs(e,n),s!=null&&r.unshift(Es(e,s,o)),s=gs(e,t),s!=null&&r.push(Es(e,s,o))),e=e.return}return r}function Dr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function mf(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=gs(n,s),l!=null&&i.unshift(Es(n,l,a))):o||(l=gs(n,s),l!=null&&i.push(Es(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Ow=/\r\n?/g,Mw=/\u0000|\uFFFD/g;function vf(e){return(typeof e=="string"?e:""+e).replace(Ow,`
|
|
38
|
+
`).replace(Mw,"")}function ui(e,t,n){if(t=vf(t),vf(e)!==t&&n)throw Error(j(425))}function Xi(){}var yu=null,xu=null;function wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Su=typeof setTimeout=="function"?setTimeout:void 0,Aw=typeof clearTimeout=="function"?clearTimeout:void 0,gf=typeof Promise=="function"?Promise:void 0,Iw=typeof queueMicrotask=="function"?queueMicrotask:typeof gf<"u"?function(e){return gf.resolve(null).then(e).catch(Lw)}:Su;function Lw(e){setTimeout(function(){throw e})}function kl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ws(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ws(t)}function Fn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ao=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Ao,Ns="__reactProps$"+Ao,ln="__reactContainer$"+Ao,bu="__reactEvents$"+Ao,Dw="__reactListeners$"+Ao,Fw="__reactHandles$"+Ao;function lr(e){var t=e[Vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ln]||n[Vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[Vt])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function Hs(e){return e=e[Vt]||e[ln],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ra(e){return e[Ns]||null}var Cu=[],Gr=-1;function qn(e){return{current:e}}function he(e){0>Gr||(e.current=Cu[Gr],Cu[Gr]=null,Gr--)}function ce(e,t){Gr++,Cu[Gr]=e.current,e.current=t}var Kn={},Ue=qn(Kn),Je=qn(!1),xr=Kn;function So(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function et(e){return e=e.childContextTypes,e!=null}function Zi(){he(Je),he(Ue)}function xf(e,t,n){if(Ue.current!==Kn)throw Error(j(168));ce(Ue,t),ce(Je,n)}function im(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,bx(e)||"Unknown",o));return xe({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,xr=Ue.current,ce(Ue,e),ce(Je,Je.current),!0}function wf(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=im(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,he(Je),he(Ue),ce(Ue,e)):he(Je),ce(Je,n)}var tn=null,ja=!1,Pl=!1;function am(e){tn===null?tn=[e]:tn.push(e)}function $w(e){ja=!0,am(e)}function Xn(){if(!Pl&&tn!==null){Pl=!0;var e=0,t=ae;try{var n=tn;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}tn=null,ja=!1}catch(o){throw tn!==null&&(tn=tn.slice(e+1)),Oh(kc,Xn),o}finally{ae=t,Pl=!1}}return null}var Yr=[],qr=0,ea=null,ta=0,pt=[],ht=0,wr=null,rn=1,on="";function ir(e,t){Yr[qr++]=ta,Yr[qr++]=ea,ea=e,ta=t}function lm(e,t,n){pt[ht++]=rn,pt[ht++]=on,pt[ht++]=wr,wr=e;var r=rn;e=on;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var s=32-_t(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,rn=1<<32-_t(t)+o|n<<o|r,on=s+e}else rn=1<<s|n<<o|r,on=e}function Ic(e){e.return!==null&&(ir(e,1),lm(e,1,0))}function Lc(e){for(;e===ea;)ea=Yr[--qr],Yr[qr]=null,ta=Yr[--qr],Yr[qr]=null;for(;e===wr;)wr=pt[--ht],pt[ht]=null,on=pt[--ht],pt[ht]=null,rn=pt[--ht],pt[ht]=null}var st=null,ot=null,ve=!1,jt=null;function um(e,t){var n=mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Sf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,st=e,ot=Fn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,st=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wr!==null?{id:rn,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,st=e,ot=null,!0):!1;default:return!1}}function Eu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Nu(e){if(ve){var t=ot;if(t){var n=t;if(!Sf(e,t)){if(Eu(e))throw Error(j(418));t=Fn(n.nextSibling);var r=st;t&&Sf(e,t)?um(r,n):(e.flags=e.flags&-4097|2,ve=!1,st=e)}}else{if(Eu(e))throw Error(j(418));e.flags=e.flags&-4097|2,ve=!1,st=e}}}function bf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function ci(e){if(e!==st)return!1;if(!ve)return bf(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wu(e.type,e.memoizedProps)),t&&(t=ot)){if(Eu(e))throw cm(),Error(j(418));for(;t;)um(e,t),t=Fn(t.nextSibling)}if(bf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=Fn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=st?Fn(e.stateNode.nextSibling):null;return!0}function cm(){for(var e=ot;e;)e=Fn(e.nextSibling)}function bo(){ot=st=null,ve=!1}function Dc(e){jt===null?jt=[e]:jt.push(e)}var zw=pn.ReactCurrentBatchConfig;function Go(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function di(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cf(e){var t=e._init;return t(e._payload)}function dm(e){function t(y,v){if(e){var x=y.deletions;x===null?(y.deletions=[v],y.flags|=16):x.push(v)}}function n(y,v){if(!e)return null;for(;v!==null;)t(y,v),v=v.sibling;return null}function r(y,v){for(y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function o(y,v){return y=Un(y,v),y.index=0,y.sibling=null,y}function s(y,v,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<v?(y.flags|=2,v):x):(y.flags|=2,v)):(y.flags|=1048576,v)}function i(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,v,x,b){return v===null||v.tag!==6?(v=Al(x,y.mode,b),v.return=y,v):(v=o(v,x),v.return=y,v)}function l(y,v,x,b){var C=x.type;return C===Vr?c(y,v,x.props.children,b,x.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Cn&&Cf(C)===v.type)?(b=o(v,x.props),b.ref=Go(y,v,x),b.return=y,b):(b=Di(x.type,x.key,x.props,null,y.mode,b),b.ref=Go(y,v,x),b.return=y,b)}function u(y,v,x,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Il(x,y.mode,b),v.return=y,v):(v=o(v,x.children||[]),v.return=y,v)}function c(y,v,x,b,C){return v===null||v.tag!==7?(v=yr(x,y.mode,b,C),v.return=y,v):(v=o(v,x),v.return=y,v)}function f(y,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Al(""+v,y.mode,x),v.return=y,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ei:return x=Di(v.type,v.key,v.props,null,y.mode,x),x.ref=Go(y,null,v),x.return=y,x;case Ur:return v=Il(v,y.mode,x),v.return=y,v;case Cn:var b=v._init;return f(y,b(v._payload),x)}if(es(v)||Vo(v))return v=yr(v,y.mode,x,null),v.return=y,v;di(y,v)}return null}function g(y,v,x,b){var C=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return C!==null?null:a(y,v,""+x,b);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ei:return x.key===C?l(y,v,x,b):null;case Ur:return x.key===C?u(y,v,x,b):null;case Cn:return C=x._init,g(y,v,C(x._payload),b)}if(es(x)||Vo(x))return C!==null?null:c(y,v,x,b,null);di(y,x)}return null}function m(y,v,x,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return y=y.get(x)||null,a(v,y,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ei:return y=y.get(b.key===null?x:b.key)||null,l(v,y,b,C);case Ur:return y=y.get(b.key===null?x:b.key)||null,u(v,y,b,C);case Cn:var N=b._init;return m(y,v,x,N(b._payload),C)}if(es(b)||Vo(b))return y=y.get(x)||null,c(v,y,b,C,null);di(v,b)}return null}function S(y,v,x,b){for(var C=null,N=null,E=v,T=v=0,O=null;E!==null&&T<x.length;T++){E.index>T?(O=E,E=null):O=E.sibling;var _=g(y,E,x[T],b);if(_===null){E===null&&(E=O);break}e&&E&&_.alternate===null&&t(y,E),v=s(_,v,T),N===null?C=_:N.sibling=_,N=_,E=O}if(T===x.length)return n(y,E),ve&&ir(y,T),C;if(E===null){for(;T<x.length;T++)E=f(y,x[T],b),E!==null&&(v=s(E,v,T),N===null?C=E:N.sibling=E,N=E);return ve&&ir(y,T),C}for(E=r(y,E);T<x.length;T++)O=m(E,y,T,x[T],b),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?T:O.key),v=s(O,v,T),N===null?C=O:N.sibling=O,N=O);return e&&E.forEach(function(z){return t(y,z)}),ve&&ir(y,T),C}function h(y,v,x,b){var C=Vo(x);if(typeof C!="function")throw Error(j(150));if(x=C.call(x),x==null)throw Error(j(151));for(var N=C=null,E=v,T=v=0,O=null,_=x.next();E!==null&&!_.done;T++,_=x.next()){E.index>T?(O=E,E=null):O=E.sibling;var z=g(y,E,_.value,b);if(z===null){E===null&&(E=O);break}e&&E&&z.alternate===null&&t(y,E),v=s(z,v,T),N===null?C=z:N.sibling=z,N=z,E=O}if(_.done)return n(y,E),ve&&ir(y,T),C;if(E===null){for(;!_.done;T++,_=x.next())_=f(y,_.value,b),_!==null&&(v=s(_,v,T),N===null?C=_:N.sibling=_,N=_);return ve&&ir(y,T),C}for(E=r(y,E);!_.done;T++,_=x.next())_=m(E,y,T,_.value,b),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?T:_.key),v=s(_,v,T),N===null?C=_:N.sibling=_,N=_);return e&&E.forEach(function(I){return t(y,I)}),ve&&ir(y,T),C}function w(y,v,x,b){if(typeof x=="object"&&x!==null&&x.type===Vr&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ei:e:{for(var C=x.key,N=v;N!==null;){if(N.key===C){if(C=x.type,C===Vr){if(N.tag===7){n(y,N.sibling),v=o(N,x.props.children),v.return=y,y=v;break e}}else if(N.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Cn&&Cf(C)===N.type){n(y,N.sibling),v=o(N,x.props),v.ref=Go(y,N,x),v.return=y,y=v;break e}n(y,N);break}else t(y,N);N=N.sibling}x.type===Vr?(v=yr(x.props.children,y.mode,b,x.key),v.return=y,y=v):(b=Di(x.type,x.key,x.props,null,y.mode,b),b.ref=Go(y,v,x),b.return=y,y=b)}return i(y);case Ur:e:{for(N=x.key;v!==null;){if(v.key===N)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(y,v.sibling),v=o(v,x.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=Il(x,y.mode,b),v.return=y,y=v}return i(y);case Cn:return N=x._init,w(y,v,N(x._payload),b)}if(es(x))return S(y,v,x,b);if(Vo(x))return h(y,v,x,b);di(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(y,v.sibling),v=o(v,x),v.return=y,y=v):(n(y,v),v=Al(x,y.mode,b),v.return=y,y=v),i(y)):n(y,v)}return w}var Co=dm(!0),fm=dm(!1),na=qn(null),ra=null,Xr=null,Fc=null;function $c(){Fc=Xr=ra=null}function zc(e){var t=na.current;he(na),e._currentValue=t}function ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function oo(e,t){ra=e,Fc=Xr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ze=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(Fc!==e)if(e={context:e,memoizedValue:t,next:null},Xr===null){if(ra===null)throw Error(j(308));Xr=e,ra.dependencies={lanes:0,firstContext:e}}else Xr=Xr.next=e;return t}var ur=null;function Bc(e){ur===null?ur=[e]:ur.push(e)}function pm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Bc(t)):(n.next=o.next,o.next=n),t.interleaved=n,un(e,r)}function un(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var En=!1;function Uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $n(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,un(e,n)}return o=r.interleaved,o===null?(t.next=t,Bc(r)):(t.next=o.next,o.next=t),r.interleaved=t,un(e,n)}function _i(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pc(e,n)}}function Ef(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function oa(e,t,n,r){var o=e.updateQueue;En=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,i===null?s=u:i.next=u,i=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==i&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=o.baseState;i=0,c=u=l=null,a=s;do{var g=a.lane,m=a.eventTime;if((r&g)===g){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var S=e,h=a;switch(g=t,m=n,h.tag){case 1:if(S=h.payload,typeof S=="function"){f=S.call(m,f,g);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=h.payload,g=typeof S=="function"?S.call(m,f,g):S,g==null)break e;f=xe({},f,g);break e;case 2:En=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else m={eventTime:m,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,i|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);br|=i,e.lanes=i,e.memoizedState=f}}function Nf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(j(191,o));o.call(r)}}}var Ks={},Qt=qn(Ks),ks=qn(Ks),Ps=qn(Ks);function cr(e){if(e===Ks)throw Error(j(174));return e}function Vc(e,t){switch(ce(Ps,t),ce(ks,e),ce(Qt,Ks),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=iu(t,e)}he(Qt),ce(Qt,t)}function Eo(){he(Qt),he(ks),he(Ps)}function mm(e){cr(Ps.current);var t=cr(Qt.current),n=iu(t,e.type);t!==n&&(ce(ks,e),ce(Qt,n))}function Wc(e){ks.current===e&&(he(Qt),he(ks))}var ge=qn(0);function sa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Tl=[];function Hc(){for(var e=0;e<Tl.length;e++)Tl[e]._workInProgressVersionPrimary=null;Tl.length=0}var Oi=pn.ReactCurrentDispatcher,Rl=pn.ReactCurrentBatchConfig,Sr=0,ye=null,Te=null,je=null,ia=!1,us=!1,Ts=0,Bw=0;function Fe(){throw Error(j(321))}function Kc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Qc(e,t,n,r,o,s){if(Sr=s,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oi.current=e===null||e.memoizedState===null?Hw:Kw,e=n(r,o),us){s=0;do{if(us=!1,Ts=0,25<=s)throw Error(j(301));s+=1,je=Te=null,t.updateQueue=null,Oi.current=Qw,e=n(r,o)}while(us)}if(Oi.current=aa,t=Te!==null&&Te.next!==null,Sr=0,je=Te=ye=null,ia=!1,t)throw Error(j(300));return e}function Gc(){var e=Ts!==0;return Ts=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ye.memoizedState=je=e:je=je.next=e,je}function yt(){if(Te===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=je===null?ye.memoizedState:je.next;if(t!==null)je=t,Te=e;else{if(e===null)throw Error(j(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},je===null?ye.memoizedState=je=e:je=je.next=e}return je}function Rs(e,t){return typeof t=="function"?t(e):t}function jl(e){var t=yt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,u=s;do{var c=u.lane;if((Sr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,i=r):l=l.next=f,ye.lanes|=c,br|=c}u=u.next}while(u!==null&&u!==s);l===null?i=r:l.next=a,Mt(r,t.memoizedState)||(Ze=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,ye.lanes|=s,br|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _l(e){var t=yt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Mt(s,t.memoizedState)||(Ze=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function vm(){}function gm(e,t){var n=ye,r=yt(),o=t(),s=!Mt(r.memoizedState,o);if(s&&(r.memoizedState=o,Ze=!0),r=r.queue,Yc(wm.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||je!==null&&je.memoizedState.tag&1){if(n.flags|=2048,js(9,xm.bind(null,n,r,o,t),void 0,null),_e===null)throw Error(j(349));Sr&30||ym(n,t,o)}return o}function ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xm(e,t,n,r){t.value=n,t.getSnapshot=r,Sm(t)&&bm(e)}function wm(e,t,n){return n(function(){Sm(t)&&bm(e)})}function Sm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function bm(e){var t=un(e,1);t!==null&&Ot(t,e,1,-1)}function kf(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rs,lastRenderedState:e},t.queue=e,e=e.dispatch=Ww.bind(null,ye,e),[t.memoizedState,e]}function js(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Cm(){return yt().memoizedState}function Mi(e,t,n,r){var o=$t();ye.flags|=e,o.memoizedState=js(1|t,n,void 0,r===void 0?null:r)}function _a(e,t,n,r){var o=yt();r=r===void 0?null:r;var s=void 0;if(Te!==null){var i=Te.memoizedState;if(s=i.destroy,r!==null&&Kc(r,i.deps)){o.memoizedState=js(t,n,s,r);return}}ye.flags|=e,o.memoizedState=js(1|t,n,s,r)}function Pf(e,t){return Mi(8390656,8,e,t)}function Yc(e,t){return _a(2048,8,e,t)}function Em(e,t){return _a(4,2,e,t)}function Nm(e,t){return _a(4,4,e,t)}function km(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pm(e,t,n){return n=n!=null?n.concat([e]):null,_a(4,4,km.bind(null,t,e),n)}function qc(){}function Tm(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Rm(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Kc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jm(e,t,n){return Sr&21?(Mt(n,t)||(n=Ih(),ye.lanes|=n,br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ze=!0),e.memoizedState=n)}function Uw(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=Rl.transition;Rl.transition={};try{e(!1),t()}finally{ae=n,Rl.transition=r}}function _m(){return yt().memoizedState}function Vw(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Om(e))Mm(t,n);else if(n=pm(e,t,n,r),n!==null){var o=Qe();Ot(n,e,r,o),Am(n,t,r)}}function Ww(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Om(e))Mm(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Mt(a,i)){var l=t.interleaved;l===null?(o.next=o,Bc(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=pm(e,t,o,r),n!==null&&(o=Qe(),Ot(n,e,r,o),Am(n,t,r))}}function Om(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Mm(e,t){us=ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Am(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pc(e,n)}}var aa={readContext:gt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Hw={readContext:gt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Pf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mi(4194308,4,km.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vw.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:kf,useDebugValue:qc,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=kf(!1),t=e[0];return e=Uw.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=$t();if(ve){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),_e===null)throw Error(j(349));Sr&30||ym(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Pf(wm.bind(null,r,s,e),[e]),r.flags|=2048,js(9,xm.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=_e.identifierPrefix;if(ve){var n=on,r=rn;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ts++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Bw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Kw={readContext:gt,useCallback:Tm,useContext:gt,useEffect:Yc,useImperativeHandle:Pm,useInsertionEffect:Em,useLayoutEffect:Nm,useMemo:Rm,useReducer:jl,useRef:Cm,useState:function(){return jl(Rs)},useDebugValue:qc,useDeferredValue:function(e){var t=yt();return jm(t,Te.memoizedState,e)},useTransition:function(){var e=jl(Rs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:vm,useSyncExternalStore:gm,useId:_m,unstable_isNewReconciler:!1},Qw={readContext:gt,useCallback:Tm,useContext:gt,useEffect:Yc,useImperativeHandle:Pm,useInsertionEffect:Em,useLayoutEffect:Nm,useMemo:Rm,useReducer:_l,useRef:Cm,useState:function(){return _l(Rs)},useDebugValue:qc,useDeferredValue:function(e){var t=yt();return Te===null?t.memoizedState=e:jm(t,Te.memoizedState,e)},useTransition:function(){var e=_l(Rs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:vm,useSyncExternalStore:gm,useId:_m,unstable_isNewReconciler:!1};function Nt(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Pu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Oa={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Qe(),o=Bn(e),s=sn(r,o);s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,o),t!==null&&(Ot(t,e,o,r),_i(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Qe(),o=Bn(e),s=sn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=$n(e,s,o),t!==null&&(Ot(t,e,o,r),_i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qe(),r=Bn(e),o=sn(n,r);o.tag=2,t!=null&&(o.callback=t),t=$n(e,o,r),t!==null&&(Ot(t,e,r,n),_i(t,e,r))}};function Tf(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!bs(n,r)||!bs(o,s):!0}function Im(e,t,n){var r=!1,o=Kn,s=t.contextType;return typeof s=="object"&&s!==null?s=gt(s):(o=et(t)?xr:Ue.current,r=t.contextTypes,s=(r=r!=null)?So(e,o):Kn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Oa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oa.enqueueReplaceState(t,t.state,null)}function Tu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Uc(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=gt(s):(s=et(t)?xr:Ue.current,o.context=So(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Pu(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Oa.enqueueReplaceState(o,o.state,null),oa(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function No(e,t){try{var n="",r=t;do n+=Sx(r),r=r.return;while(r);var o=n}catch(s){o=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Ol(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ru(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Gw=typeof WeakMap=="function"?WeakMap:Map;function Lm(e,t,n){n=sn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ua||(ua=!0,$u=r),Ru(e,t)},n}function Dm(e,t,n){n=sn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ru(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ru(e,t),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function jf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Gw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=l1.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Of(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=sn(-1,1),t.tag=2,$n(n,t,1))),n.lanes|=1),e)}var Yw=pn.ReactCurrentOwner,Ze=!1;function We(e,t,n,r){t.child=e===null?fm(t,null,n,r):Co(t,e.child,n,r)}function Mf(e,t,n,r,o){n=n.render;var s=t.ref;return oo(t,o),r=Qc(e,t,n,r,s,o),n=Gc(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cn(e,t,o)):(ve&&n&&Ic(t),t.flags|=1,We(e,t,r,o),t.child)}function Af(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!od(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Fm(e,t,s,r,o)):(e=Di(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:bs,n(i,r)&&e.ref===t.ref)return cn(e,t,o)}return t.flags|=1,e=Un(s,r),e.ref=t.ref,e.return=t,t.child=e}function Fm(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(bs(s,r)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(Ze=!0);else return t.lanes=e.lanes,cn(e,t,o)}return ju(e,t,n,r,o)}function $m(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Jr,nt),nt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(Jr,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ce(Jr,nt),nt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ce(Jr,nt),nt|=r;return We(e,t,o,n),t.child}function zm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ju(e,t,n,r,o){var s=et(n)?xr:Ue.current;return s=So(t,s),oo(t,o),n=Qc(e,t,n,r,s,o),r=Gc(),e!==null&&!Ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,cn(e,t,o)):(ve&&r&&Ic(t),t.flags|=1,We(e,t,n,o),t.child)}function If(e,t,n,r,o){if(et(n)){var s=!0;Ji(t)}else s=!1;if(oo(t,o),t.stateNode===null)Ai(e,t),Im(t,n,r),Tu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=gt(u):(u=et(n)?xr:Ue.current,u=So(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Rf(t,i,r,u),En=!1;var g=t.memoizedState;i.state=g,oa(t,r,i,o),l=t.memoizedState,a!==r||g!==l||Je.current||En?(typeof c=="function"&&(Pu(t,n,c,r),l=t.memoizedState),(a=En||Tf(t,n,a,r,g,l,u))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,hm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Nt(t.type,a),i.props=u,f=t.pendingProps,g=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=gt(l):(l=et(n)?xr:Ue.current,l=So(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||g!==l)&&Rf(t,i,r,l),En=!1,g=t.memoizedState,i.state=g,oa(t,r,i,o);var S=t.memoizedState;a!==f||g!==S||Je.current||En?(typeof m=="function"&&(Pu(t,n,m,r),S=t.memoizedState),(u=En||Tf(t,n,u,r,g,S,l)||!1)?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=l,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),r=!1)}return _u(e,t,n,r,s,o)}function _u(e,t,n,r,o,s){zm(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&wf(t,n,!1),cn(e,t,s);r=t.stateNode,Yw.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Co(t,e.child,null,s),t.child=Co(t,null,a,s)):We(e,t,a,s),t.memoizedState=r.state,o&&wf(t,n,!0),t.child}function Bm(e){var t=e.stateNode;t.pendingContext?xf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xf(e,t.context,!1),Vc(e,t.containerInfo)}function Lf(e,t,n,r,o){return bo(),Dc(o),t.flags|=256,We(e,t,n,r),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0};function Mu(e){return{baseLanes:e,cachePool:null,transitions:null}}function Um(e,t,n){var r=t.pendingProps,o=ge.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ce(ge,o&1),e===null)return Nu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=Ia(i,r,0,null),e=yr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Mu(n),t.memoizedState=Ou,e):Xc(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return qw(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Un(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Un(a,s):(s=yr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?Mu(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Ou,r}return s=e.child,e=s.sibling,r=Un(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Xc(e,t){return t=Ia({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fi(e,t,n,r){return r!==null&&Dc(r),Co(t,e.child,null,n),e=Xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function qw(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Ol(Error(j(422))),fi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Ia({mode:"visible",children:r.children},o,0,null),s=yr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Co(t,e.child,null,i),t.child.memoizedState=Mu(i),t.memoizedState=Ou,s);if(!(t.mode&1))return fi(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(j(419)),r=Ol(s,r,void 0),fi(e,t,i,r)}if(a=(i&e.childLanes)!==0,Ze||a){if(r=_e,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,un(e,o),Ot(r,e,o,-1))}return rd(),r=Ol(Error(j(421))),fi(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=u1.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,ot=Fn(o.nextSibling),st=t,ve=!0,jt=null,e!==null&&(pt[ht++]=rn,pt[ht++]=on,pt[ht++]=wr,rn=e.id,on=e.overflow,wr=t),t=Xc(t,r.children),t.flags|=4096,t)}function Df(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ku(e.return,t,n)}function Ml(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Vm(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(We(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Df(e,n,t);else if(e.tag===19)Df(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ce(ge,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&sa(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ml(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&sa(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ml(t,!0,n,null,s);break;case"together":Ml(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=Un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xw(e,t,n){switch(t.tag){case 3:Bm(t),bo();break;case 5:mm(t);break;case 1:et(t.type)&&Ji(t);break;case 4:Vc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ce(na,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?Um(e,t,n):(ce(ge,ge.current&1),e=cn(e,t,n),e!==null?e.sibling:null);ce(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vm(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ce(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,$m(e,t,n)}return cn(e,t,n)}var Wm,Au,Hm,Km;Wm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Au=function(){};Hm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,cr(Qt.current);var s=null;switch(n){case"input":o=nu(e,o),r=nu(e,r),s=[];break;case"select":o=xe({},o,{value:void 0}),r=xe({},r,{value:void 0}),s=[];break;case"textarea":o=su(e,o),r=su(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xi)}au(n,r);var i;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ms.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ms.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&pe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Km=function(e,t,n,r){n!==r&&(t.flags|=4)};function Yo(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Zw(e,t,n){var r=t.pendingProps;switch(Lc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return et(t.type)&&Zi(),$e(t),null;case 3:return r=t.stateNode,Eo(),he(Je),he(Ue),Hc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ci(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Uu(jt),jt=null))),Au(e,t),$e(t),null;case 5:Wc(t);var o=cr(Ps.current);if(n=t.type,e!==null&&t.stateNode!=null)Hm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return $e(t),null}if(e=cr(Qt.current),ci(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Vt]=t,r[Ns]=s,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(o=0;o<ns.length;o++)pe(ns[o],r);break;case"source":pe("error",r);break;case"img":case"image":case"link":pe("error",r),pe("load",r);break;case"details":pe("toggle",r);break;case"input":Hd(r,s),pe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},pe("invalid",r);break;case"textarea":Qd(r,s),pe("invalid",r)}au(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ui(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ui(r.textContent,a,e),o=["children",""+a]):ms.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&pe("scroll",r)}switch(n){case"input":ti(r),Kd(r,s,!0);break;case"textarea":ti(r),Gd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Xi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Vt]=t,e[Ns]=r,Wm(e,t,!1,!1),t.stateNode=e;e:{switch(i=lu(n,r),n){case"dialog":pe("cancel",e),pe("close",e),o=r;break;case"iframe":case"object":case"embed":pe("load",e),o=r;break;case"video":case"audio":for(o=0;o<ns.length;o++)pe(ns[o],e);o=r;break;case"source":pe("error",e),o=r;break;case"img":case"image":case"link":pe("error",e),pe("load",e),o=r;break;case"details":pe("toggle",e),o=r;break;case"input":Hd(e,r),o=nu(e,r),pe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=xe({},r,{value:void 0}),pe("invalid",e);break;case"textarea":Qd(e,r),o=su(e,r),pe("invalid",e);break;default:o=r}au(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Ch(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Sh(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&vs(e,l):typeof l=="number"&&vs(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(ms.hasOwnProperty(s)?l!=null&&s==="onScroll"&&pe("scroll",e):l!=null&&Sc(e,s,l,i))}switch(n){case"input":ti(e),Kd(e,r,!1);break;case"textarea":ti(e),Gd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Hn(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?eo(e,!!r.multiple,s,!1):r.defaultValue!=null&&eo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Xi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $e(t),null;case 6:if(e&&t.stateNode!=null)Km(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=cr(Ps.current),cr(Qt.current),ci(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vt]=t,(s=r.nodeValue!==n)&&(e=st,e!==null))switch(e.tag){case 3:ui(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ui(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vt]=t,t.stateNode=r}return $e(t),null;case 13:if(he(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&ot!==null&&t.mode&1&&!(t.flags&128))cm(),bo(),t.flags|=98560,s=!1;else if(s=ci(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(j(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(j(317));s[Vt]=t}else bo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$e(t),s=!1}else jt!==null&&(Uu(jt),jt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ge.current&1?Re===0&&(Re=3):rd())),t.updateQueue!==null&&(t.flags|=4),$e(t),null);case 4:return Eo(),Au(e,t),e===null&&Cs(t.stateNode.containerInfo),$e(t),null;case 10:return zc(t.type._context),$e(t),null;case 17:return et(t.type)&&Zi(),$e(t),null;case 19:if(he(ge),s=t.memoizedState,s===null)return $e(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)Yo(s,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=sa(e),i!==null){for(t.flags|=128,Yo(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(ge,ge.current&1|2),t.child}e=e.sibling}s.tail!==null&&ke()>ko&&(t.flags|=128,r=!0,Yo(s,!1),t.lanes=4194304)}else{if(!r)if(e=sa(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!ve)return $e(t),null}else 2*ke()-s.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Yo(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ke(),t.sibling=null,n=ge.current,ce(ge,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Jw(e,t){switch(Lc(t),t.tag){case 1:return et(t.type)&&Zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Eo(),he(Je),he(Ue),Hc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wc(t),null;case 13:if(he(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return he(ge),null;case 4:return Eo(),null;case 10:return zc(t.type._context),null;case 22:case 23:return nd(),null;case 24:return null;default:return null}}var pi=!1,Be=!1,e1=typeof WeakSet=="function"?WeakSet:Set,F=null;function Zr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Iu(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var Ff=!1;function t1(e,t){if(yu=Gi,e=Xh(),Ac(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,u=0,c=0,f=e,g=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(a=i+o),f!==s||r!==0&&f.nodeType!==3||(l=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(m=f.firstChild)!==null;)g=f,f=m;for(;;){if(f===e)break t;if(g===n&&++u===o&&(a=i),g===s&&++c===r&&(l=i),(m=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(xu={focusedElem:e,selectionRange:n},Gi=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var h=S.memoizedProps,w=S.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?h:Nt(t.type,h),w);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(b){Ce(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return S=Ff,Ff=!1,S}function cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Iu(t,n,s)}o=o.next}while(o!==r)}}function Ma(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Lu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Qm(e){var t=e.alternate;t!==null&&(e.alternate=null,Qm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vt],delete t[Ns],delete t[bu],delete t[Dw],delete t[Fw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gm(e){return e.tag===5||e.tag===3||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Du(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xi));else if(r!==4&&(e=e.child,e!==null))for(Du(e,t,n),e=e.sibling;e!==null;)Du(e,t,n),e=e.sibling}function Fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fu(e,t,n),e=e.sibling;e!==null;)Fu(e,t,n),e=e.sibling}var Oe=null,Rt=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ym(e,t,n),n=n.sibling}function Ym(e,t,n){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(Na,n)}catch{}switch(n.tag){case 5:Be||Zr(n,t);case 6:var r=Oe,o=Rt;Oe=null,yn(e,t,n),Oe=r,Rt=o,Oe!==null&&(Rt?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Rt?(e=Oe,n=n.stateNode,e.nodeType===8?kl(e.parentNode,n):e.nodeType===1&&kl(e,n),ws(e)):kl(Oe,n.stateNode));break;case 4:r=Oe,o=Rt,Oe=n.stateNode.containerInfo,Rt=!0,yn(e,t,n),Oe=r,Rt=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Iu(n,t,i),o=o.next}while(o!==r)}yn(e,t,n);break;case 1:if(!Be&&(Zr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ce(n,t,a)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,yn(e,t,n),Be=r):yn(e,t,n);break;default:yn(e,t,n)}}function zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e1),t.forEach(function(r){var o=c1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function bt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Oe=a.stateNode,Rt=!1;break e;case 3:Oe=a.stateNode.containerInfo,Rt=!0;break e;case 4:Oe=a.stateNode.containerInfo,Rt=!0;break e}a=a.return}if(Oe===null)throw Error(j(160));Ym(s,i,o),Oe=null,Rt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ce(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qm(t,e),t=t.sibling}function qm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(bt(t,e),Ft(e),r&4){try{cs(3,e,e.return),Ma(3,e)}catch(h){Ce(e,e.return,h)}try{cs(5,e,e.return)}catch(h){Ce(e,e.return,h)}}break;case 1:bt(t,e),Ft(e),r&512&&n!==null&&Zr(n,n.return);break;case 5:if(bt(t,e),Ft(e),r&512&&n!==null&&Zr(n,n.return),e.flags&32){var o=e.stateNode;try{vs(o,"")}catch(h){Ce(e,e.return,h)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&yh(o,s),lu(a,i);var u=lu(a,s);for(i=0;i<l.length;i+=2){var c=l[i],f=l[i+1];c==="style"?Ch(o,f):c==="dangerouslySetInnerHTML"?Sh(o,f):c==="children"?vs(o,f):Sc(o,c,f,u)}switch(a){case"input":ru(o,s);break;case"textarea":xh(o,s);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?eo(o,!!s.multiple,m,!1):g!==!!s.multiple&&(s.defaultValue!=null?eo(o,!!s.multiple,s.defaultValue,!0):eo(o,!!s.multiple,s.multiple?[]:"",!1))}o[Ns]=s}catch(h){Ce(e,e.return,h)}}break;case 6:if(bt(t,e),Ft(e),r&4){if(e.stateNode===null)throw Error(j(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(h){Ce(e,e.return,h)}}break;case 3:if(bt(t,e),Ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ws(t.containerInfo)}catch(h){Ce(e,e.return,h)}break;case 4:bt(t,e),Ft(e);break;case 13:bt(t,e),Ft(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(ed=ke())),r&4&&zf(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(u=Be)||c,bt(t,e),Be=u):bt(t,e),Ft(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(F=e,c=e.child;c!==null;){for(f=F=c;F!==null;){switch(g=F,m=g.child,g.tag){case 0:case 11:case 14:case 15:cs(4,g,g.return);break;case 1:Zr(g,g.return);var S=g.stateNode;if(typeof S.componentWillUnmount=="function"){r=g,n=g.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(h){Ce(r,n,h)}}break;case 5:Zr(g,g.return);break;case 22:if(g.memoizedState!==null){Uf(f);continue}}m!==null?(m.return=g,F=m):Uf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,u?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bh("display",i))}catch(h){Ce(e,e.return,h)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(h){Ce(e,e.return,h)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:bt(t,e),Ft(e),r&4&&zf(e);break;case 21:break;default:bt(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gm(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(vs(o,""),r.flags&=-33);var s=$f(e);Fu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=$f(e);Du(e,a,i);break;default:throw Error(j(161))}}catch(l){Ce(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function n1(e,t,n){F=e,Xm(e)}function Xm(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var o=F,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||pi;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Be;a=pi;var u=Be;if(pi=i,(Be=l)&&!u)for(F=o;F!==null;)i=F,l=i.child,i.tag===22&&i.memoizedState!==null?Vf(o):l!==null?(l.return=i,F=l):Vf(o);for(;s!==null;)F=s,Xm(s),s=s.sibling;F=o,pi=a,Be=u}Bf(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,F=s):Bf(e)}}function Bf(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Ma(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Nt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Nf(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nf(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&ws(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}Be||t.flags&512&&Lu(t)}catch(g){Ce(t,t.return,g)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Uf(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Vf(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ma(4,t)}catch(l){Ce(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ce(t,o,l)}}var s=t.return;try{Lu(t)}catch(l){Ce(t,s,l)}break;case 5:var i=t.return;try{Lu(t)}catch(l){Ce(t,i,l)}}}catch(l){Ce(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var r1=Math.ceil,la=pn.ReactCurrentDispatcher,Zc=pn.ReactCurrentOwner,vt=pn.ReactCurrentBatchConfig,ne=0,_e=null,Pe=null,Me=0,nt=0,Jr=qn(0),Re=0,_s=null,br=0,Aa=0,Jc=0,ds=null,Xe=null,ed=0,ko=1/0,Jt=null,ua=!1,$u=null,zn=null,hi=!1,Mn=null,ca=0,fs=0,zu=null,Ii=-1,Li=0;function Qe(){return ne&6?ke():Ii!==-1?Ii:Ii=ke()}function Bn(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:zw.transition!==null?(Li===0&&(Li=Ih()),Li):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Uh(e.type)),e):1}function Ot(e,t,n,r){if(50<fs)throw fs=0,zu=null,Error(j(185));Vs(e,n,r),(!(ne&2)||e!==_e)&&(e===_e&&(!(ne&2)&&(Aa|=n),Re===4&&kn(e,Me)),tt(e,r),n===1&&ne===0&&!(t.mode&1)&&(ko=ke()+500,ja&&Xn()))}function tt(e,t){var n=e.callbackNode;zx(e,t);var r=Qi(e,e===_e?Me:0);if(r===0)n!==null&&Xd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xd(n),t===1)e.tag===0?$w(Wf.bind(null,e)):am(Wf.bind(null,e)),Iw(function(){!(ne&6)&&Xn()}),n=null;else{switch(Lh(r)){case 1:n=kc;break;case 4:n=Mh;break;case 16:n=Ki;break;case 536870912:n=Ah;break;default:n=Ki}n=sv(n,Zm.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zm(e,t){if(Ii=-1,Li=0,ne&6)throw Error(j(327));var n=e.callbackNode;if(so()&&e.callbackNode!==n)return null;var r=Qi(e,e===_e?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=da(e,r);else{t=r;var o=ne;ne|=2;var s=ev();(_e!==e||Me!==t)&&(Jt=null,ko=ke()+500,gr(e,t));do try{i1();break}catch(a){Jm(e,a)}while(!0);$c(),la.current=s,ne=o,Pe!==null?t=0:(_e=null,Me=0,t=Re)}if(t!==0){if(t===2&&(o=pu(e),o!==0&&(r=o,t=Bu(e,o))),t===1)throw n=_s,gr(e,0),kn(e,r),tt(e,ke()),n;if(t===6)kn(e,r);else{if(o=e.current.alternate,!(r&30)&&!o1(o)&&(t=da(e,r),t===2&&(s=pu(e),s!==0&&(r=s,t=Bu(e,s))),t===1))throw n=_s,gr(e,0),kn(e,r),tt(e,ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:ar(e,Xe,Jt);break;case 3:if(kn(e,r),(r&130023424)===r&&(t=ed+500-ke(),10<t)){if(Qi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Qe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Su(ar.bind(null,e,Xe,Jt),t);break}ar(e,Xe,Jt);break;case 4:if(kn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-_t(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*r1(r/1960))-r,10<r){e.timeoutHandle=Su(ar.bind(null,e,Xe,Jt),r);break}ar(e,Xe,Jt);break;case 5:ar(e,Xe,Jt);break;default:throw Error(j(329))}}}return tt(e,ke()),e.callbackNode===n?Zm.bind(null,e):null}function Bu(e,t){var n=ds;return e.current.memoizedState.isDehydrated&&(gr(e,t).flags|=256),e=da(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&Uu(t)),e}function Uu(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function o1(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Mt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kn(e,t){for(t&=~Jc,t&=~Aa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function Wf(e){if(ne&6)throw Error(j(327));so();var t=Qi(e,0);if(!(t&1))return tt(e,ke()),null;var n=da(e,t);if(e.tag!==0&&n===2){var r=pu(e);r!==0&&(t=r,n=Bu(e,r))}if(n===1)throw n=_s,gr(e,0),kn(e,t),tt(e,ke()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ar(e,Xe,Jt),tt(e,ke()),null}function td(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(ko=ke()+500,ja&&Xn())}}function Cr(e){Mn!==null&&Mn.tag===0&&!(ne&6)&&so();var t=ne;ne|=1;var n=vt.transition,r=ae;try{if(vt.transition=null,ae=1,e)return e()}finally{ae=r,vt.transition=n,ne=t,!(ne&6)&&Xn()}}function nd(){nt=Jr.current,he(Jr)}function gr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Aw(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Lc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Zi();break;case 3:Eo(),he(Je),he(Ue),Hc();break;case 5:Wc(r);break;case 4:Eo();break;case 13:he(ge);break;case 19:he(ge);break;case 10:zc(r.type._context);break;case 22:case 23:nd()}n=n.return}if(_e=e,Pe=e=Un(e.current,null),Me=nt=t,Re=0,_s=null,Jc=Aa=br=0,Xe=ds=null,ur!==null){for(t=0;t<ur.length;t++)if(n=ur[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}ur=null}return e}function Jm(e,t){do{var n=Pe;try{if($c(),Oi.current=aa,ia){for(var r=ye.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ia=!1}if(Sr=0,je=Te=ye=null,us=!1,Ts=0,Zc.current=null,n===null||n.return===null){Re=1,_s=t,Pe=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=Me,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var g=c.alternate;g?(c.updateQueue=g.updateQueue,c.memoizedState=g.memoizedState,c.lanes=g.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=_f(i);if(m!==null){m.flags&=-257,Of(m,i,a,s,t),m.mode&1&&jf(s,u,t),t=m,l=u;var S=t.updateQueue;if(S===null){var h=new Set;h.add(l),t.updateQueue=h}else S.add(l);break e}else{if(!(t&1)){jf(s,u,t),rd();break e}l=Error(j(426))}}else if(ve&&a.mode&1){var w=_f(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Of(w,i,a,s,t),Dc(No(l,a));break e}}s=l=No(l,a),Re!==4&&(Re=2),ds===null?ds=[s]:ds.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=Lm(s,l,t);Ef(s,y);break e;case 1:a=l;var v=s.type,x=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(zn===null||!zn.has(x)))){s.flags|=65536,t&=-t,s.lanes|=t;var b=Dm(s,a,t);Ef(s,b);break e}}s=s.return}while(s!==null)}nv(n)}catch(C){t=C,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function ev(){var e=la.current;return la.current=aa,e===null?aa:e}function rd(){(Re===0||Re===3||Re===2)&&(Re=4),_e===null||!(br&268435455)&&!(Aa&268435455)||kn(_e,Me)}function da(e,t){var n=ne;ne|=2;var r=ev();(_e!==e||Me!==t)&&(Jt=null,gr(e,t));do try{s1();break}catch(o){Jm(e,o)}while(!0);if($c(),ne=n,la.current=r,Pe!==null)throw Error(j(261));return _e=null,Me=0,Re}function s1(){for(;Pe!==null;)tv(Pe)}function i1(){for(;Pe!==null&&!_x();)tv(Pe)}function tv(e){var t=ov(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?nv(e):Pe=t,Zc.current=null}function nv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Jw(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Pe=null;return}}else if(n=Zw(n,t,nt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Re===0&&(Re=5)}function ar(e,t,n){var r=ae,o=vt.transition;try{vt.transition=null,ae=1,a1(e,t,n,r)}finally{vt.transition=o,ae=r}return null}function a1(e,t,n,r){do so();while(Mn!==null);if(ne&6)throw Error(j(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Bx(e,s),e===_e&&(Pe=_e=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hi||(hi=!0,sv(Ki,function(){return so(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=vt.transition,vt.transition=null;var i=ae;ae=1;var a=ne;ne|=4,Zc.current=null,t1(e,n),qm(n,e),Pw(xu),Gi=!!yu,xu=yu=null,e.current=n,n1(n),Ox(),ne=a,ae=i,vt.transition=s}else e.current=n;if(hi&&(hi=!1,Mn=e,ca=o),s=e.pendingLanes,s===0&&(zn=null),Ix(n.stateNode),tt(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ua)throw ua=!1,e=$u,$u=null,e;return ca&1&&e.tag!==0&&so(),s=e.pendingLanes,s&1?e===zu?fs++:(fs=0,zu=e):fs=0,Xn(),null}function so(){if(Mn!==null){var e=Lh(ca),t=vt.transition,n=ae;try{if(vt.transition=null,ae=16>e?16:e,Mn===null)var r=!1;else{if(e=Mn,Mn=null,ca=0,ne&6)throw Error(j(331));var o=ne;for(ne|=4,F=e.current;F!==null;){var s=F,i=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(F=u;F!==null;){var c=F;switch(c.tag){case 0:case 11:case 15:cs(8,c,s)}var f=c.child;if(f!==null)f.return=c,F=f;else for(;F!==null;){c=F;var g=c.sibling,m=c.return;if(Qm(c),c===u){F=null;break}if(g!==null){g.return=m,F=g;break}F=m}}}var S=s.alternate;if(S!==null){var h=S.child;if(h!==null){S.child=null;do{var w=h.sibling;h.sibling=null,h=w}while(h!==null)}}F=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,F=i;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:cs(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,F=y;break e}F=s.return}}var v=e.current;for(F=v;F!==null;){i=F;var x=i.child;if(i.subtreeFlags&2064&&x!==null)x.return=i,F=x;else e:for(i=v;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Ma(9,a)}}catch(C){Ce(a,a.return,C)}if(a===i){F=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,F=b;break e}F=a.return}}if(ne=o,Xn(),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(Na,e)}catch{}r=!0}return r}finally{ae=n,vt.transition=t}}return!1}function Hf(e,t,n){t=No(n,t),t=Lm(e,t,1),e=$n(e,t,1),t=Qe(),e!==null&&(Vs(e,1,t),tt(e,t))}function Ce(e,t,n){if(e.tag===3)Hf(e,e,n);else for(;t!==null;){if(t.tag===3){Hf(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zn===null||!zn.has(r))){e=No(n,e),e=Dm(t,e,1),t=$n(t,e,1),e=Qe(),t!==null&&(Vs(t,1,e),tt(t,e));break}}t=t.return}}function l1(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Qe(),e.pingedLanes|=e.suspendedLanes&n,_e===e&&(Me&n)===n&&(Re===4||Re===3&&(Me&130023424)===Me&&500>ke()-ed?gr(e,0):Jc|=n),tt(e,t)}function rv(e,t){t===0&&(e.mode&1?(t=oi,oi<<=1,!(oi&130023424)&&(oi=4194304)):t=1);var n=Qe();e=un(e,t),e!==null&&(Vs(e,t,n),tt(e,n))}function u1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rv(e,n)}function c1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),rv(e,n)}var ov;ov=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Je.current)Ze=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ze=!1,Xw(e,t,n);Ze=!!(e.flags&131072)}else Ze=!1,ve&&t.flags&1048576&&lm(t,ta,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var o=So(t,Ue.current);oo(t,n),o=Qc(null,t,r,e,o,n);var s=Gc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,et(r)?(s=!0,Ji(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Uc(t),o.updater=Oa,t.stateNode=o,o._reactInternals=t,Tu(t,r,e,n),t=_u(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&Ic(t),We(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=f1(r),e=Nt(r,e),o){case 0:t=ju(null,t,r,e,n);break e;case 1:t=If(null,t,r,e,n);break e;case 11:t=Mf(null,t,r,e,n);break e;case 14:t=Af(null,t,r,Nt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),ju(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),If(e,t,r,o,n);case 3:e:{if(Bm(t),e===null)throw Error(j(387));r=t.pendingProps,s=t.memoizedState,o=s.element,hm(e,t),oa(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=No(Error(j(423)),t),t=Lf(e,t,r,n,o);break e}else if(r!==o){o=No(Error(j(424)),t),t=Lf(e,t,r,n,o);break e}else for(ot=Fn(t.stateNode.containerInfo.firstChild),st=t,ve=!0,jt=null,n=fm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bo(),r===o){t=cn(e,t,n);break e}We(e,t,r,n)}t=t.child}return t;case 5:return mm(t),e===null&&Nu(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,wu(r,o)?i=null:s!==null&&wu(r,s)&&(t.flags|=32),zm(e,t),We(e,t,i,n),t.child;case 6:return e===null&&Nu(t),null;case 13:return Um(e,t,n);case 4:return Vc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):We(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),Mf(e,t,r,o,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,ce(na,r._currentValue),r._currentValue=i,s!==null)if(Mt(s.value,i)){if(s.children===o.children&&!Je.current){t=cn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=sn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ku(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(j(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ku(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}We(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,oo(t,n),o=gt(o),r=r(o),t.flags|=1,We(e,t,r,n),t.child;case 14:return r=t.type,o=Nt(r,t.pendingProps),o=Nt(r.type,o),Af(e,t,r,o,n);case 15:return Fm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),Ai(e,t),t.tag=1,et(r)?(e=!0,Ji(t)):e=!1,oo(t,n),Im(t,r,o),Tu(t,r,o,n),_u(null,t,r,!0,e,n);case 19:return Vm(e,t,n);case 22:return $m(e,t,n)}throw Error(j(156,t.tag))};function sv(e,t){return Oh(e,t)}function d1(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new d1(e,t,n,r)}function od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f1(e){if(typeof e=="function")return od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cc)return 11;if(e===Ec)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Di(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")od(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Vr:return yr(n.children,o,s,t);case bc:i=8,o|=8;break;case Zl:return e=mt(12,n,t,o|2),e.elementType=Zl,e.lanes=s,e;case Jl:return e=mt(13,n,t,o),e.elementType=Jl,e.lanes=s,e;case eu:return e=mt(19,n,t,o),e.elementType=eu,e.lanes=s,e;case mh:return Ia(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ph:i=10;break e;case hh:i=9;break e;case Cc:i=11;break e;case Ec:i=14;break e;case Cn:i=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=mt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function yr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Ia(e,t,n,r){return e=mt(22,e,r,t),e.elementType=mh,e.lanes=n,e.stateNode={isHidden:!1},e}function Al(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Il(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function p1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ml(0),this.expirationTimes=ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ml(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function sd(e,t,n,r,o,s,i,a,l){return e=new p1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uc(s),e}function h1(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ur,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function iv(e){if(!e)return Kn;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(et(n))return im(e,n,t)}return t}function av(e,t,n,r,o,s,i,a,l){return e=sd(n,r,!0,e,o,s,i,a,l),e.context=iv(null),n=e.current,r=Qe(),o=Bn(n),s=sn(r,o),s.callback=t??null,$n(n,s,o),e.current.lanes=o,Vs(e,o,r),tt(e,r),e}function La(e,t,n,r){var o=t.current,s=Qe(),i=Bn(o);return n=iv(n),t.context===null?t.context=n:t.pendingContext=n,t=sn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=$n(o,t,i),e!==null&&(Ot(e,o,i,s),_i(e,o,i)),i}function fa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Kf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function id(e,t){Kf(e,t),(e=e.alternate)&&Kf(e,t)}function m1(){return null}var lv=typeof reportError=="function"?reportError:function(e){console.error(e)};function ad(e){this._internalRoot=e}Da.prototype.render=ad.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));La(e,t,null,null)};Da.prototype.unmount=ad.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cr(function(){La(null,e,null,null)}),t[ln]=null}};function Da(e){this._internalRoot=e}Da.prototype.unstable_scheduleHydration=function(e){if(e){var t=$h();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nn.length&&t!==0&&t<Nn[n].priority;n++);Nn.splice(n,0,e),n===0&&Bh(e)}};function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qf(){}function v1(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var u=fa(i);s.call(u)}}var i=av(t,r,e,0,null,!1,!1,"",Qf);return e._reactRootContainer=i,e[ln]=i.current,Cs(e.nodeType===8?e.parentNode:e),Cr(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=fa(l);a.call(u)}}var l=sd(e,0,!1,null,null,!1,!1,"",Qf);return e._reactRootContainer=l,e[ln]=l.current,Cs(e.nodeType===8?e.parentNode:e),Cr(function(){La(t,l,n,r)}),l}function $a(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=fa(i);a.call(l)}}La(t,i,e,o)}else i=v1(n,t,e,o,r);return fa(i)}Dh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ts(t.pendingLanes);n!==0&&(Pc(t,n|1),tt(t,ke()),!(ne&6)&&(ko=ke()+500,Xn()))}break;case 13:Cr(function(){var r=un(e,1);if(r!==null){var o=Qe();Ot(r,e,1,o)}}),id(e,1)}};Tc=function(e){if(e.tag===13){var t=un(e,134217728);if(t!==null){var n=Qe();Ot(t,e,134217728,n)}id(e,134217728)}};Fh=function(e){if(e.tag===13){var t=Bn(e),n=un(e,t);if(n!==null){var r=Qe();Ot(n,e,t,r)}id(e,t)}};$h=function(){return ae};zh=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};cu=function(e,t,n){switch(t){case"input":if(ru(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ra(r);if(!o)throw Error(j(90));gh(r),ru(r,o)}}}break;case"textarea":xh(e,n);break;case"select":t=n.value,t!=null&&eo(e,!!n.multiple,t,!1)}};kh=td;Ph=Cr;var g1={usingClientEntryPoint:!1,Events:[Hs,Qr,Ra,Eh,Nh,td]},qo={findFiberByHostInstance:lr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},y1={bundleType:qo.bundleType,version:qo.version,rendererPackageName:qo.rendererPackageName,rendererConfig:qo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jh(e),e===null?null:e.stateNode},findFiberByHostInstance:qo.findFiberByHostInstance||m1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mi.isDisabled&&mi.supportsFiber)try{Na=mi.inject(y1),Kt=mi}catch{}}lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g1;lt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ld(t))throw Error(j(200));return h1(e,t,null,n)};lt.createRoot=function(e,t){if(!ld(e))throw Error(j(299));var n=!1,r="",o=lv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=sd(e,1,!1,null,null,n,!1,r,o),e[ln]=t.current,Cs(e.nodeType===8?e.parentNode:e),new ad(t)};lt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=jh(t),e=e===null?null:e.stateNode,e};lt.flushSync=function(e){return Cr(e)};lt.hydrate=function(e,t,n){if(!Fa(t))throw Error(j(200));return $a(null,e,t,!0,n)};lt.hydrateRoot=function(e,t,n){if(!ld(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=lv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=av(t,null,e,1,n??null,o,!1,s,i),e[ln]=t.current,Cs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Da(t)};lt.render=function(e,t,n){if(!Fa(t))throw Error(j(200));return $a(null,e,t,!1,n)};lt.unmountComponentAtNode=function(e){if(!Fa(e))throw Error(j(40));return e._reactRootContainer?(Cr(function(){$a(null,null,e,!1,function(){e._reactRootContainer=null,e[ln]=null})}),!0):!1};lt.unstable_batchedUpdates=td;lt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fa(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return $a(e,t,n,!1,r)};lt.version="18.3.1-next-f1338f8080-20240426";function uv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uv)}catch(e){console.error(e)}}uv(),uh.exports=lt;var jr=uh.exports;const cv=Xp(jr);var dv,Gf=jr;dv=Gf.createRoot,Gf.hydrateRoot;const x1=1,w1=1e6;let Ll=0;function S1(){return Ll=(Ll+1)%Number.MAX_SAFE_INTEGER,Ll.toString()}const Dl=new Map,Yf=e=>{if(Dl.has(e))return;const t=setTimeout(()=>{Dl.delete(e),ps({type:"REMOVE_TOAST",toastId:e})},w1);Dl.set(e,t)},b1=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,x1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Yf(n):e.toasts.forEach(r=>{Yf(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Fi=[];let $i={toasts:[]};function ps(e){$i=b1($i,e),Fi.forEach(t=>{t($i)})}function hs({...e}){const t=S1(),n=o=>ps({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ps({type:"DISMISS_TOAST",toastId:t});return ps({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function C1(){const[e,t]=p.useState($i);return p.useEffect(()=>(Fi.push(t),()=>{const n=Fi.indexOf(t);n>-1&&Fi.splice(n,1)}),[e]),{...e,toast:hs,dismiss:n=>ps({type:"DISMISS_TOAST",toastId:n})}}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function qf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fv(...e){return t=>{let n=!1;const r=e.map(o=>{const s=qf(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():qf(e[o],null)}}}}function ue(...e){return p.useCallback(fv(...e),e)}function E1(e,t){const n=p.createContext(t),r=s=>{const{children:i,...a}=s,l=p.useMemo(()=>a,Object.values(a));return d.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=p.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function _r(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),l=n.length;n=[...n,i];const u=f=>{var y;const{scope:g,children:m,...S}=f,h=((y=g==null?void 0:g[e])==null?void 0:y[l])||a,w=p.useMemo(()=>S,Object.values(S));return d.jsx(h.Provider,{value:w,children:m})};u.displayName=s+"Provider";function c(f,g){var h;const m=((h=g==null?void 0:g[e])==null?void 0:h[l])||a,S=p.useContext(m);if(S)return S;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,c]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,N1(o,...t)]}function N1(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Po(e){const t=P1(e),n=p.forwardRef((r,o)=>{const{children:s,...i}=r,a=p.Children.toArray(s),l=a.find(R1);if(l){const u=l.props.children,c=a.map(f=>f===l?p.Children.count(u)>1?p.Children.only(null):p.isValidElement(u)?u.props.children:null:f);return d.jsx(t,{...i,ref:o,children:p.isValidElement(u)?p.cloneElement(u,void 0,c):null})}return d.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var k1=Po("Slot");function P1(e){const t=p.forwardRef((n,r)=>{const{children:o,...s}=n;if(p.isValidElement(o)){const i=_1(o),a=j1(s,o.props);return o.type!==p.Fragment&&(a.ref=r?fv(r,i):i),p.cloneElement(o,a)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pv=Symbol("radix.slottable");function T1(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=pv,t}function R1(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pv}function j1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function _1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function hv(e){const t=e+"CollectionProvider",[n,r]=_r(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=h=>{const{scope:w,children:y}=h,v=M.useRef(null),x=M.useRef(new Map).current;return d.jsx(o,{scope:w,itemMap:x,collectionRef:v,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=Po(a),u=M.forwardRef((h,w)=>{const{scope:y,children:v}=h,x=s(a,y),b=ue(w,x.collectionRef);return d.jsx(l,{ref:b,children:v})});u.displayName=a;const c=e+"CollectionItemSlot",f="data-radix-collection-item",g=Po(c),m=M.forwardRef((h,w)=>{const{scope:y,children:v,...x}=h,b=M.useRef(null),C=ue(w,b),N=s(c,y);return M.useEffect(()=>(N.itemMap.set(b,{ref:b,...x}),()=>void N.itemMap.delete(b))),d.jsx(g,{[f]:"",ref:C,children:v})});m.displayName=c;function S(h){const w=s(e+"CollectionConsumer",h);return M.useCallback(()=>{const v=w.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((N,E)=>x.indexOf(N.ref.current)-x.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},S,r]}var O1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=O1.reduce((e,t)=>{const n=Po(`Primitive.${t}`),r=p.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mv(e,t){e&&jr.flushSync(()=>e.dispatchEvent(t))}function At(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function M1(e,t=globalThis==null?void 0:globalThis.document){const n=At(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var A1="DismissableLayer",Vu="dismissableLayer.update",I1="dismissableLayer.pointerDownOutside",L1="dismissableLayer.focusOutside",Xf,vv=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qs=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,u=p.useContext(vv),[c,f]=p.useState(null),g=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=p.useState({}),S=ue(t,E=>f(E)),h=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(w),v=c?h.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=v>=y,C=F1(E=>{const T=E.target,O=[...u.branches].some(_=>_.contains(T));!b||O||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},g),N=$1(E=>{const T=E.target;[...u.branches].some(_=>_.contains(T))||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},g);return M1(E=>{v===u.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},g),p.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Xf=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Zf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Xf)}},[c,g,n,u]),p.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Zf())},[c,u]),p.useEffect(()=>{const E=()=>m({});return document.addEventListener(Vu,E),()=>document.removeEventListener(Vu,E)},[]),d.jsx(ee.div,{...l,ref:S,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,C.onPointerDownCapture)})});Qs.displayName=A1;var D1="DismissableLayerBranch",gv=p.forwardRef((e,t)=>{const n=p.useContext(vv),r=p.useRef(null),o=ue(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(ee.div,{...e,ref:o})});gv.displayName=D1;function F1(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){yv(I1,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $1(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),r=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!r.current&&yv(L1,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zf(){const e=new CustomEvent(Vu);document.dispatchEvent(e)}function yv(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mv(o,s):o.dispatchEvent(s)}var z1=Qs,B1=gv,Ie=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},U1="Portal",za=p.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=p.useState(!1);Ie(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?cv.createPortal(d.jsx(ee.div,{...r,ref:t}),i):null});za.displayName=U1;function V1(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Io=e=>{const{present:t,children:n}=e,r=W1(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=ue(r.ref,H1(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:s}):null};Io.displayName="Presence";function W1(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=V1(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const u=vi(r.current);s.current=a==="mounted"?u:"none"},[a]),Ie(()=>{const u=r.current,c=o.current;if(c!==e){const g=s.current,m=vi(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ie(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=m=>{const h=vi(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=m=>{m.target===t&&(s.current=vi(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function vi(e){return(e==null?void 0:e.animationName)||"none"}function H1(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var K1=yc[" useInsertionEffect ".trim().toString()]||Ie;function Os({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=Q1({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const c=p.useRef(e!==void 0);p.useEffect(()=>{const f=c.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"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.`),c.current=a},[a,r])}const u=p.useCallback(c=>{var f;if(a){const g=G1(c)?c(e):c;g!==e&&((f=i.current)==null||f.call(i,g))}else s(c)},[a,e,s,i]);return[l,u]}function Q1({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),s=p.useRef(t);return K1(()=>{s.current=t},[t]),p.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function G1(e){return typeof e=="function"}var xv=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"}),Y1="VisuallyHidden",Ba=p.forwardRef((e,t)=>d.jsx(ee.span,{...e,ref:t,style:{...xv,...e.style}}));Ba.displayName=Y1;var q1=Ba,ud="ToastProvider",[cd,X1,Z1]=hv("Toast"),[wv,yP]=_r("Toast",[Z1]),[J1,Ua]=wv(ud),Sv=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=p.useState(null),[u,c]=p.useState(0),f=p.useRef(!1),g=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ud}\`. Expected non-empty \`string\`.`),d.jsx(cd.Provider,{scope:t,children:d.jsx(J1,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:p.useCallback(()=>c(m=>m+1),[]),onToastRemove:p.useCallback(()=>c(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:g,children:i})})};Sv.displayName=ud;var bv="ToastViewport",eS=["F8"],Wu="toast.viewportPause",Hu="toast.viewportResume",Cv=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=eS,label:o="Notifications ({hotkey})",...s}=e,i=Ua(bv,n),a=X1(n),l=p.useRef(null),u=p.useRef(null),c=p.useRef(null),f=p.useRef(null),g=ue(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=i.toastCount>0;p.useEffect(()=>{const w=y=>{var x;r.length!==0&&r.every(b=>y[b]||y.code===b)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),p.useEffect(()=>{const w=l.current,y=f.current;if(S&&w&&y){const v=()=>{if(!i.isClosePausedRef.current){const N=new CustomEvent(Wu);y.dispatchEvent(N),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const N=new CustomEvent(Hu);y.dispatchEvent(N),i.isClosePausedRef.current=!1}},b=N=>{!w.contains(N.relatedTarget)&&x()},C=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",v),w.addEventListener("focusout",b),w.addEventListener("pointermove",v),w.addEventListener("pointerleave",C),window.addEventListener("blur",v),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",v),w.removeEventListener("focusout",b),w.removeEventListener("pointermove",v),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",v),window.removeEventListener("focus",x)}}},[S,i.isClosePausedRef]);const h=p.useCallback(({tabbingDirection:w})=>{const v=a().map(x=>{const b=x.ref.current,C=[b,...pS(b)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?v.reverse():v).flat()},[a]);return p.useEffect(()=>{const w=f.current;if(w){const y=v=>{var C,N,E;const x=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!x){const T=document.activeElement,O=v.shiftKey;if(v.target===w&&O){(C=u.current)==null||C.focus();return}const I=h({tabbingDirection:O?"backwards":"forwards"}),V=I.findIndex(A=>A===T);Fl(I.slice(V+1))?v.preventDefault():O?(N=u.current)==null||N.focus():(E=c.current)==null||E.focus()}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[a,h]),d.jsxs(B1,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&d.jsx(Ku,{ref:u,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"forwards"});Fl(w)}}),d.jsx(cd.Slot,{scope:n,children:d.jsx(ee.ol,{tabIndex:-1,...s,ref:g})}),S&&d.jsx(Ku,{ref:c,onFocusFromOutsideViewport:()=>{const w=h({tabbingDirection:"backwards"});Fl(w)}})]})});Cv.displayName=bv;var Ev="ToastFocusProxy",Ku=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Ua(Ev,n);return d.jsx(Ba,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var u;const a=i.relatedTarget;!((u=s.viewport)!=null&&u.contains(a))&&r()}})});Ku.displayName=Ev;var Gs="Toast",tS="toast.swipeStart",nS="toast.swipeMove",rS="toast.swipeCancel",oS="toast.swipeEnd",Nv=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=Os({prop:r,defaultProp:o??!0,onChange:s,caller:Gs});return d.jsx(Io,{present:n||a,children:d.jsx(aS,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:At(e.onPause),onResume:At(e.onResume),onSwipeStart:Y(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Y(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Y(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Y(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Nv.displayName=Gs;var[sS,iS]=wv(Gs,{onClose(){}}),aS=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:g,onSwipeEnd:m,...S}=e,h=Ua(Gs,n),[w,y]=p.useState(null),v=ue(t,A=>y(A)),x=p.useRef(null),b=p.useRef(null),C=o||h.duration,N=p.useRef(0),E=p.useRef(C),T=p.useRef(0),{onToastAdd:O,onToastRemove:_}=h,z=At(()=>{var H;(w==null?void 0:w.contains(document.activeElement))&&((H=h.viewport)==null||H.focus()),i()}),I=p.useCallback(A=>{!A||A===1/0||(window.clearTimeout(T.current),N.current=new Date().getTime(),T.current=window.setTimeout(z,A))},[z]);p.useEffect(()=>{const A=h.viewport;if(A){const H=()=>{I(E.current),u==null||u()},$=()=>{const U=new Date().getTime()-N.current;E.current=E.current-U,window.clearTimeout(T.current),l==null||l()};return A.addEventListener(Wu,$),A.addEventListener(Hu,H),()=>{A.removeEventListener(Wu,$),A.removeEventListener(Hu,H)}}},[h.viewport,C,l,u,I]),p.useEffect(()=>{s&&!h.isClosePausedRef.current&&I(C)},[s,C,h.isClosePausedRef,I]),p.useEffect(()=>(O(),()=>_()),[O,_]);const V=p.useMemo(()=>w?Ov(w):null,[w]);return h.viewport?d.jsxs(d.Fragment,{children:[V&&d.jsx(lS,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),d.jsx(sS,{scope:n,onClose:z,children:jr.createPortal(d.jsx(cd.ItemSlot,{scope:n,children:d.jsx(z1,{asChild:!0,onEscapeKeyDown:Y(a,()=>{h.isFocusedToastEscapeKeyDownRef.current||z(),h.isFocusedToastEscapeKeyDownRef.current=!1}),children:d.jsx(ee.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":h.swipeDirection,...S,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Y(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:Y(e.onPointerDown,A=>{A.button===0&&(x.current={x:A.clientX,y:A.clientY})}),onPointerMove:Y(e.onPointerMove,A=>{if(!x.current)return;const H=A.clientX-x.current.x,$=A.clientY-x.current.y,U=!!b.current,k=["left","right"].includes(h.swipeDirection),R=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,L=k?R(0,H):0,W=k?0:R(0,$),B=A.pointerType==="touch"?10:2,q={x:L,y:W},K={originalEvent:A,delta:q};U?(b.current=q,gi(nS,f,K,{discrete:!1})):Jf(q,h.swipeDirection,B)?(b.current=q,gi(tS,c,K,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(H)>B||Math.abs($)>B)&&(x.current=null)}),onPointerUp:Y(e.onPointerUp,A=>{const H=b.current,$=A.target;if($.hasPointerCapture(A.pointerId)&&$.releasePointerCapture(A.pointerId),b.current=null,x.current=null,H){const U=A.currentTarget,k={originalEvent:A,delta:H};Jf(H,h.swipeDirection,h.swipeThreshold)?gi(oS,m,k,{discrete:!0}):gi(rS,g,k,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),h.viewport)})]}):null}),lS=e=>{const{__scopeToast:t,children:n,...r}=e,o=Ua(Gs,t),[s,i]=p.useState(!1),[a,l]=p.useState(!1);return dS(()=>i(!0)),p.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:d.jsx(za,{asChild:!0,children:d.jsx(Ba,{...r,children:s&&d.jsxs(d.Fragment,{children:[o.label," ",n]})})})},uS="ToastTitle",kv=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});kv.displayName=uS;var cS="ToastDescription",Pv=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return d.jsx(ee.div,{...r,ref:t})});Pv.displayName=cS;var Tv="ToastAction",Rv=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?d.jsx(_v,{altText:n,asChild:!0,children:d.jsx(dd,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Tv}\`. Expected non-empty \`string\`.`),null)});Rv.displayName=Tv;var jv="ToastClose",dd=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=iS(jv,n);return d.jsx(_v,{asChild:!0,children:d.jsx(ee.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,o.onClose)})})});dd.displayName=jv;var _v=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return d.jsx(ee.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Ov(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),fS(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...Ov(r))}}),t}function gi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mv(o,s):o.dispatchEvent(s)}var Jf=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function dS(e=()=>{}){const t=At(e);Ie(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function fS(e){return e.nodeType===e.ELEMENT_NODE}function pS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Fl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var hS=Sv,Mv=Cv,Av=Nv,Iv=kv,Lv=Pv,Dv=Rv,Fv=dd;function $v(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$v(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zv(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$v(e))&&(r&&(r+=" "),r+=t);return r}const ep=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tp=zv,Va=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],f=s==null?void 0:s[u];if(c===null)return null;const g=ep(c)||ep(f);return o[u][g]}),a=n&&Object.entries(n).reduce((u,c)=>{let[f,g]=c;return g===void 0||(u[f]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:f,className:g,...m}=c;return Object.entries(m).every(S=>{let[h,w]=S;return Array.isArray(w)?w.includes({...s,...a}[h]):{...s,...a}[h]===w})?[...u,f,g]:u},[]);return tp(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
41
|
+
* @license lucide-react v0.462.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const mS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v0.462.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var vS={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"};/**
|
|
51
|
+
* @license lucide-react v0.462.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const gS=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...vS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bv("lucide",o),...a},[...i.map(([u,c])=>p.createElement(u,c)),...Array.isArray(s)?s:[s]]));/**
|
|
56
|
+
* @license lucide-react v0.462.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const Ne=(e,t)=>{const n=p.forwardRef(({className:r,...o},s)=>p.createElement(gS,{ref:s,iconNode:t,className:Bv(`lucide-${mS(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
61
|
+
* @license lucide-react v0.462.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const yS=Ne("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"}]]);/**
|
|
66
|
+
* @license lucide-react v0.462.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const xS=Ne("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
71
|
+
* @license lucide-react v0.462.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const Uv=Ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
76
|
+
* @license lucide-react v0.462.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const Vv=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
81
|
+
* @license lucide-react v0.462.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const wS=Ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
86
|
+
* @license lucide-react v0.462.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Wv=Ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
91
|
+
* @license lucide-react v0.462.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const SS=Ne("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"}]]);/**
|
|
96
|
+
* @license lucide-react v0.462.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const To=Ne("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"}]]);/**
|
|
101
|
+
* @license lucide-react v0.462.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Hv=Ne("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"}]]);/**
|
|
106
|
+
* @license lucide-react v0.462.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const bS=Ne("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
111
|
+
* @license lucide-react v0.462.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const Kv=Ne("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
116
|
+
* @license lucide-react v0.462.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const CS=Ne("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
|
|
121
|
+
* @license lucide-react v0.462.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const ES=Ne("Pen",[["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"}]]);/**
|
|
126
|
+
* @license lucide-react v0.462.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const NS=Ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
131
|
+
* @license lucide-react v0.462.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const kS=Ne("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"}]]);/**
|
|
136
|
+
* @license lucide-react v0.462.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const PS=Ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
141
|
+
* @license lucide-react v0.462.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Qv=Ne("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"}]]);/**
|
|
146
|
+
* @license lucide-react v0.462.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const TS=Ne("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
151
|
+
* @license lucide-react v0.462.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Gv=Ne("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
|
|
156
|
+
* @license lucide-react v0.462.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const RS=Ne("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"}]]);/**
|
|
161
|
+
* @license lucide-react v0.462.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Yv=Ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
166
|
+
* @license lucide-react v0.462.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const fd=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pd="-",jS=e=>{const t=OS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(pd);return a[0]===""&&a.length!==1&&a.shift(),qv(a,t)||_S(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},qv=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?qv(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(pd);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},np=/^\[(.+)\]$/,_S=e=>{if(np.test(e)){const t=np.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},OS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return AS(Object.entries(e.classGroups),n).forEach(([s,i])=>{Qu(i,r,s,t)}),r},Qu=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:rp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(MS(o)){Qu(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Qu(i,rp(t,s),n,r)})})},rp=(e,t)=>{let n=e;return t.split(pd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},MS=e=>e.isThemeGetter,AS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,IS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Xv="!",LS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let u=0,c=0,f;for(let w=0;w<a.length;w++){let y=a[w];if(u===0){if(y===o&&(r||a.slice(w,w+s)===t)){l.push(a.slice(c,w)),c=w+s;continue}if(y==="/"){f=w;continue}}y==="["?u++:y==="]"&&u--}const g=l.length===0?a:a.substring(c),m=g.startsWith(Xv),S=m?g.substring(1):g,h=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:S,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:i}):i},DS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},FS=e=>({cache:IS(e.cacheSize),parseClassName:LS(e),...jS(e)}),$S=/\s+/,zS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split($S);let a="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}=n(u);let S=!!m,h=r(S?g.substring(0,m):g);if(!h){if(!S){a=u+(a.length>0?" "+a:a);continue}if(h=r(g),!h){a=u+(a.length>0?" "+a:a);continue}S=!1}const w=DS(c).join(":"),y=f?w+Xv:w,v=y+h;if(s.includes(v))continue;s.push(v);const x=o(h,S);for(let b=0;b<x.length;++b){const C=x[b];s.push(y+C)}a=u+(a.length>0?" "+a:a)}return a};function BS(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Zv(t))&&(r&&(r+=" "),r+=n);return r}const Zv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Zv(e[r]))&&(n&&(n+=" "),n+=t);return n};function US(e,...t){let n,r,o,s=i;function i(l){const u=t.reduce((c,f)=>f(c),e());return n=FS(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=zS(l,n);return o(l,c),c}return function(){return s(BS.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jv=/^\[(?:([a-z-]+):)?(.+)\]$/i,VS=/^\d+\/\d+$/,WS=new Set(["px","full","screen"]),HS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,GS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>io(e)||WS.has(e)||VS.test(e),xn=e=>Lo(e,"length",rb),io=e=>!!e&&!Number.isNaN(Number(e)),$l=e=>Lo(e,"number",io),Xo=e=>!!e&&Number.isInteger(Number(e)),qS=e=>e.endsWith("%")&&io(e.slice(0,-1)),X=e=>Jv.test(e),wn=e=>HS.test(e),XS=new Set(["length","size","percentage"]),ZS=e=>Lo(e,XS,eg),JS=e=>Lo(e,"position",eg),eb=new Set(["image","url"]),tb=e=>Lo(e,eb,sb),nb=e=>Lo(e,"",ob),Zo=()=>!0,Lo=(e,t,n)=>{const r=Jv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},rb=e=>KS.test(e)&&!QS.test(e),eg=()=>!1,ob=e=>GS.test(e),sb=e=>YS.test(e),ib=()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),s=fe("borderRadius"),i=fe("borderSpacing"),a=fe("borderWidth"),l=fe("contrast"),u=fe("grayscale"),c=fe("hueRotate"),f=fe("invert"),g=fe("gap"),m=fe("gradientColorStops"),S=fe("gradientColorStopPositions"),h=fe("inset"),w=fe("margin"),y=fe("opacity"),v=fe("padding"),x=fe("saturate"),b=fe("scale"),C=fe("sepia"),N=fe("skew"),E=fe("space"),T=fe("translate"),O=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",X,t],I=()=>[X,t],V=()=>["",Xt,xn],A=()=>["auto",io,X],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",X],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[io,X];return{cacheSize:500,separator:":",theme:{colors:[Zo],spacing:[Xt,xn],blur:["none","",wn,X],brightness:W(),borderColor:[e],borderRadius:["none","","full",wn,X],borderSpacing:I(),borderWidth:V(),contrast:W(),grayscale:R(),hueRotate:W(),invert:R(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[qS,xn],inset:z(),margin:z(),opacity:W(),padding:I(),saturate:W(),scale:W(),sepia:R(),skew:W(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[wn]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),X]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xo,X]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Xo,X]}],"grid-cols":[{"grid-cols":[Zo]}],"col-start-end":[{col:["auto",{span:["full",Xo,X]},X]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Zo]}],"row-start-end":[{row:["auto",{span:[Xo,X]},X]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,t]}],"min-w":[{"min-w":[X,t,"min","max","fit"]}],"max-w":[{"max-w":[X,t,"none","full","min","max","fit","prose",{screen:[wn]},wn]}],h:[{h:[X,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,t,"auto","min","max","fit"]}],"font-size":[{text:["base",wn,xn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$l]}],"font-family":[{font:[Zo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",io,$l]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,xn]}],"underline-offset":[{"underline-offset":["auto",Xt,X]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),JS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},tb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Xt,X]}],"outline-w":[{outline:[Xt,xn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Xt,xn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,nb]}],"shadow-color":[{shadow:[Zo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",wn,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Xo,X]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,xn,$l]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ab=US(ib);function J(...e){return ab(zv(e))}const lb=hS,tg=p.forwardRef(({className:e,...t},n)=>d.jsx(Mv,{ref:n,className:J("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));tg.displayName=Mv.displayName;const ub=Va("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ng=p.forwardRef(({className:e,variant:t,...n},r)=>d.jsx(Av,{ref:r,className:J(ub({variant:t}),e),...n}));ng.displayName=Av.displayName;const cb=p.forwardRef(({className:e,...t},n)=>d.jsx(Dv,{ref:n,className:J("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));cb.displayName=Dv.displayName;const rg=p.forwardRef(({className:e,...t},n)=>d.jsx(Fv,{ref:n,className:J("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:d.jsx(fd,{className:"h-4 w-4"})}));rg.displayName=Fv.displayName;const og=p.forwardRef(({className:e,...t},n)=>d.jsx(Iv,{ref:n,className:J("text-sm font-semibold",e),...t}));og.displayName=Iv.displayName;const sg=p.forwardRef(({className:e,...t},n)=>d.jsx(Lv,{ref:n,className:J("text-sm opacity-90",e),...t}));sg.displayName=Lv.displayName;function db(){const{toasts:e}=C1();return d.jsxs(lb,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return d.jsxs(ng,{...s,children:[d.jsxs("div",{className:"grid gap-1",children:[n&&d.jsx(og,{children:n}),r&&d.jsx(sg,{children:r})]}),o,d.jsx(rg,{})]},t)}),d.jsx(tg,{})]})}var op=["light","dark"],fb="(prefers-color-scheme: dark)",pb=p.createContext(void 0),hb={setTheme:e=>{},themes:[]},mb=()=>{var e;return(e=p.useContext(pb))!=null?e:hb};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let u=s==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(S=>`'${S}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,f=o?op.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(S,h=!1,w=!0)=>{let y=i?i[S]:S,v=h?S+"|| ''":`'${y}'`,x="";return o&&w&&!h&&op.includes(S)&&(x+=`d.style.colorScheme = '${S}';`),n==="class"?h||y?x+=`c.add(${v})`:x+="null":y&&(x+=`d[s](n,${v})`),x},m=e?`!function(){${c}${g(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${fb}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}${u?"":"else{"+g(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${g(i?"x[e]":"e",!0)}}else{${g(s,!1,!1)};}${f}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})});var vb=e=>{switch(e){case"success":return xb;case"info":return Sb;case"warning":return wb;case"error":return bb;default:return null}},gb=Array(12).fill(0),yb=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},gb.map((n,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xb=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),wb=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Sb=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),bb=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Cb=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Eb=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Gu=1,Nb=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Gu++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,s,i=r.then(async l=>{if(s=["resolve",l],M.isValidElement(l))o=!1,this.create({id:n,type:"default",message:l});else if(Pb(l)&&!l.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(l):t.success,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async l=>{if(s=["reject",l],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(l):t.error,c=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var l;o&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),a=()=>new Promise((l,u)=>i.then(()=>s[0]==="reject"?u(s[1]):l(s[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Gu++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},qe=new Nb,kb=(e,t)=>{let n=(t==null?void 0:t.id)||Gu++;return qe.addToast({title:e,...t,id:n}),n},Pb=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Tb=kb,Rb=()=>qe.toasts,jb=()=>qe.getActiveToasts();Object.assign(Tb,{success:qe.success,info:qe.info,warning:qe.warning,error:qe.error,custom:qe.custom,message:qe.message,promise:qe.promise,dismiss:qe.dismiss,loading:qe.loading},{getHistory:Rb,getToasts:jb});function _b(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}_b(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
171
|
+
`);function yi(e){return e.label!==void 0}var Ob=3,Mb="32px",Ab="16px",sp=4e3,Ib=356,Lb=14,Db=20,Fb=200;function Ct(...e){return e.filter(Boolean).join(" ")}function $b(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var zb=e=>{var t,n,r,o,s,i,a,l,u,c,f;let{invert:g,toast:m,unstyled:S,interacting:h,setHeights:w,visibleToasts:y,heights:v,index:x,toasts:b,expanded:C,removeToast:N,defaultRichColors:E,closeButton:T,style:O,cancelButtonStyle:_,actionButtonStyle:z,className:I="",descriptionClassName:V="",duration:A,position:H,gap:$,loadingIcon:U,expandByDefault:k,classNames:R,icons:L,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:B}=e,[q,K]=M.useState(null),[de,we]=M.useState(null),[D,ie]=M.useState(!1),[Se,se]=M.useState(!1),[te,re]=M.useState(!1),[Le,ct]=M.useState(!1),[nr,hn]=M.useState(!1),[rr,Bo]=M.useState(0),[Mr,Od]=M.useState(0),Uo=M.useRef(m.duration||A||sp),Md=M.useRef(null),or=M.useRef(null),F0=x===0,$0=x+1<=y,dt=m.type,Ar=m.dismissible!==!1,z0=m.className||"",B0=m.descriptionClassName||"",Xs=M.useMemo(()=>v.findIndex(Q=>Q.toastId===m.id)||0,[v,m.id]),U0=M.useMemo(()=>{var Q;return(Q=m.closeButton)!=null?Q:T},[m.closeButton,T]),Ad=M.useMemo(()=>m.duration||A||sp,[m.duration,A]),al=M.useRef(0),Ir=M.useRef(0),Id=M.useRef(0),Lr=M.useRef(null),[V0,W0]=H.split("-"),Ld=M.useMemo(()=>v.reduce((Q,le,me)=>me>=Xs?Q:Q+le.height,0),[v,Xs]),Dd=Eb(),H0=m.invert||g,ll=dt==="loading";Ir.current=M.useMemo(()=>Xs*$+Ld,[Xs,Ld]),M.useEffect(()=>{Uo.current=Ad},[Ad]),M.useEffect(()=>{ie(!0)},[]),M.useEffect(()=>{let Q=or.current;if(Q){let le=Q.getBoundingClientRect().height;return Od(le),w(me=>[{toastId:m.id,height:le,position:m.position},...me]),()=>w(me=>me.filter(xt=>xt.toastId!==m.id))}},[w,m.id]),M.useLayoutEffect(()=>{if(!D)return;let Q=or.current,le=Q.style.height;Q.style.height="auto";let me=Q.getBoundingClientRect().height;Q.style.height=le,Od(me),w(xt=>xt.find(wt=>wt.toastId===m.id)?xt.map(wt=>wt.toastId===m.id?{...wt,height:me}:wt):[{toastId:m.id,height:me,position:m.position},...xt])},[D,m.title,m.description,w,m.id]);let mn=M.useCallback(()=>{se(!0),Bo(Ir.current),w(Q=>Q.filter(le=>le.toastId!==m.id)),setTimeout(()=>{N(m)},Fb)},[m,N,w,Ir]);M.useEffect(()=>{if(m.promise&&dt==="loading"||m.duration===1/0||m.type==="loading")return;let Q;return C||h||B&&Dd?(()=>{if(Id.current<al.current){let le=new Date().getTime()-al.current;Uo.current=Uo.current-le}Id.current=new Date().getTime()})():Uo.current!==1/0&&(al.current=new Date().getTime(),Q=setTimeout(()=>{var le;(le=m.onAutoClose)==null||le.call(m,m),mn()},Uo.current)),()=>clearTimeout(Q)},[C,h,m,dt,B,Dd,mn]),M.useEffect(()=>{m.delete&&mn()},[mn,m.delete]);function K0(){var Q,le,me;return L!=null&&L.loading?M.createElement("div",{className:Ct(R==null?void 0:R.loader,(Q=m==null?void 0:m.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":dt==="loading"},L.loading):U?M.createElement("div",{className:Ct(R==null?void 0:R.loader,(le=m==null?void 0:m.classNames)==null?void 0:le.loader,"sonner-loader"),"data-visible":dt==="loading"},U):M.createElement(yb,{className:Ct(R==null?void 0:R.loader,(me=m==null?void 0:m.classNames)==null?void 0:me.loader),visible:dt==="loading"})}return M.createElement("li",{tabIndex:0,ref:or,className:Ct(I,z0,R==null?void 0:R.toast,(t=m==null?void 0:m.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[dt],(n=m==null?void 0:m.classNames)==null?void 0:n[dt]),"data-sonner-toast":"","data-rich-colors":(r=m.richColors)!=null?r:E,"data-styled":!(m.jsx||m.unstyled||S),"data-mounted":D,"data-promise":!!m.promise,"data-swiped":nr,"data-removed":Se,"data-visible":$0,"data-y-position":V0,"data-x-position":W0,"data-index":x,"data-front":F0,"data-swiping":te,"data-dismissible":Ar,"data-type":dt,"data-invert":H0,"data-swipe-out":Le,"data-swipe-direction":de,"data-expanded":!!(C||k&&D),style:{"--index":x,"--toasts-before":x,"--z-index":b.length-x,"--offset":`${Se?rr:Ir.current}px`,"--initial-height":k?"auto":`${Mr}px`,...O,...m.style},onDragEnd:()=>{re(!1),K(null),Lr.current=null},onPointerDown:Q=>{ll||!Ar||(Md.current=new Date,Bo(Ir.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(re(!0),Lr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,le,me,xt;if(Le||!Ar)return;Lr.current=null;let wt=Number(((Q=or.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vn=Number(((le=or.current)==null?void 0:le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),sr=new Date().getTime()-((me=Md.current)==null?void 0:me.getTime()),St=q==="x"?wt:vn,gn=Math.abs(St)/sr;if(Math.abs(St)>=Db||gn>.11){Bo(Ir.current),(xt=m.onDismiss)==null||xt.call(m,m),we(q==="x"?wt>0?"right":"left":vn>0?"down":"up"),mn(),ct(!0),hn(!1);return}re(!1),K(null)},onPointerMove:Q=>{var le,me,xt,wt;if(!Lr.current||!Ar||((le=window.getSelection())==null?void 0:le.toString().length)>0)return;let vn=Q.clientY-Lr.current.y,sr=Q.clientX-Lr.current.x,St=(me=e.swipeDirections)!=null?me:$b(H);!q&&(Math.abs(sr)>1||Math.abs(vn)>1)&&K(Math.abs(sr)>Math.abs(vn)?"x":"y");let gn={x:0,y:0};q==="y"?(St.includes("top")||St.includes("bottom"))&&(St.includes("top")&&vn<0||St.includes("bottom")&&vn>0)&&(gn.y=vn):q==="x"&&(St.includes("left")||St.includes("right"))&&(St.includes("left")&&sr<0||St.includes("right")&&sr>0)&&(gn.x=sr),(Math.abs(gn.x)>0||Math.abs(gn.y)>0)&&hn(!0),(xt=or.current)==null||xt.style.setProperty("--swipe-amount-x",`${gn.x}px`),(wt=or.current)==null||wt.style.setProperty("--swipe-amount-y",`${gn.y}px`)}},U0&&!m.jsx?M.createElement("button",{"aria-label":W,"data-disabled":ll,"data-close-button":!0,onClick:ll||!Ar?()=>{}:()=>{var Q;mn(),(Q=m.onDismiss)==null||Q.call(m,m)},className:Ct(R==null?void 0:R.closeButton,(o=m==null?void 0:m.classNames)==null?void 0:o.closeButton)},(s=L==null?void 0:L.close)!=null?s:Cb):null,m.jsx||p.isValidElement(m.title)?m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title:M.createElement(M.Fragment,null,dt||m.icon||m.promise?M.createElement("div",{"data-icon":"",className:Ct(R==null?void 0:R.icon,(i=m==null?void 0:m.classNames)==null?void 0:i.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||K0():null,m.type!=="loading"?m.icon||(L==null?void 0:L[dt])||vb(dt):null):null,M.createElement("div",{"data-content":"",className:Ct(R==null?void 0:R.content,(a=m==null?void 0:m.classNames)==null?void 0:a.content)},M.createElement("div",{"data-title":"",className:Ct(R==null?void 0:R.title,(l=m==null?void 0:m.classNames)==null?void 0:l.title)},typeof m.title=="function"?m.title():m.title),m.description?M.createElement("div",{"data-description":"",className:Ct(V,B0,R==null?void 0:R.description,(u=m==null?void 0:m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),p.isValidElement(m.cancel)?m.cancel:m.cancel&&yi(m.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||_,onClick:Q=>{var le,me;yi(m.cancel)&&Ar&&((me=(le=m.cancel).onClick)==null||me.call(le,Q),mn())},className:Ct(R==null?void 0:R.cancelButton,(c=m==null?void 0:m.classNames)==null?void 0:c.cancelButton)},m.cancel.label):null,p.isValidElement(m.action)?m.action:m.action&&yi(m.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||z,onClick:Q=>{var le,me;yi(m.action)&&((me=(le=m.action).onClick)==null||me.call(le,Q),!Q.defaultPrevented&&mn())},className:Ct(R==null?void 0:R.actionButton,(f=m==null?void 0:m.classNames)==null?void 0:f.actionButton)},m.action.label):null))};function ip(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Bb(e,t){let n={};return[e,t].forEach((r,o)=>{let s=o===1,i=s?"--mobile-offset":"--offset",a=s?Ab:Mb;function l(u){["top","right","bottom","left"].forEach(c=>{n[`${i}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${i}-${u}`]=a:n[`${i}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}var Ub=p.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:i,className:a,offset:l,mobileOffset:u,theme:c="light",richColors:f,duration:g,style:m,visibleToasts:S=Ob,toastOptions:h,dir:w=ip(),gap:y=Lb,loadingIcon:v,icons:x,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:C}=e,[N,E]=M.useState([]),T=M.useMemo(()=>Array.from(new Set([r].concat(N.filter(B=>B.position).map(B=>B.position)))),[N,r]),[O,_]=M.useState([]),[z,I]=M.useState(!1),[V,A]=M.useState(!1),[H,$]=M.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=M.useRef(null),k=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=M.useRef(null),L=M.useRef(!1),W=M.useCallback(B=>{E(q=>{var K;return(K=q.find(de=>de.id===B.id))!=null&&K.delete||qe.dismiss(B.id),q.filter(({id:de})=>de!==B.id)})},[]);return M.useEffect(()=>qe.subscribe(B=>{if(B.dismiss){E(q=>q.map(K=>K.id===B.id?{...K,delete:!0}:K));return}setTimeout(()=>{cv.flushSync(()=>{E(q=>{let K=q.findIndex(de=>de.id===B.id);return K!==-1?[...q.slice(0,K),{...q[K],...B},...q.slice(K+1)]:[B,...q]})})})}),[]),M.useEffect(()=>{if(c!=="system"){$(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),typeof window>"u")return;let B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:q})=>{$(q?"dark":"light")})}catch{B.addListener(({matches:K})=>{try{$(K?"dark":"light")}catch(de){console.error(de)}})}},[c]),M.useEffect(()=>{N.length<=1&&I(!1)},[N]),M.useEffect(()=>{let B=q=>{var K,de;o.every(we=>q[we]||q.code===we)&&(I(!0),(K=U.current)==null||K.focus()),q.code==="Escape"&&(document.activeElement===U.current||(de=U.current)!=null&&de.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[o]),M.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,L.current=!1)}},[U.current]),M.createElement("section",{ref:t,"aria-label":`${b} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((B,q)=>{var K;let[de,we]=B.split("-");return N.length?M.createElement("ol",{key:B,dir:w==="auto"?ip():w,tabIndex:-1,ref:U,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":de,"data-lifted":z&&N.length>1&&!s,"data-x-position":we,style:{"--front-toast-height":`${((K=O[0])==null?void 0:K.height)||0}px`,"--width":`${Ib}px`,"--gap":`${y}px`,...m,...Bb(l,u)},onBlur:D=>{L.current&&!D.currentTarget.contains(D.relatedTarget)&&(L.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||L.current||(L.current=!0,R.current=D.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{V||I(!1)},onDragEnd:()=>I(!1),onPointerDown:D=>{D.target instanceof HTMLElement&&D.target.dataset.dismissible==="false"||A(!0)},onPointerUp:()=>A(!1)},N.filter(D=>!D.position&&q===0||D.position===B).map((D,ie)=>{var Se,se;return M.createElement(zb,{key:D.id,icons:x,index:ie,toast:D,defaultRichColors:f,duration:(Se=h==null?void 0:h.duration)!=null?Se:g,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:n,visibleToasts:S,closeButton:(se=h==null?void 0:h.closeButton)!=null?se:i,interacting:V,position:B,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,removeToast:W,toasts:N.filter(te=>te.position==D.position),heights:O.filter(te=>te.position==D.position),setHeights:_,expandByDefault:s,gap:y,loadingIcon:v,expanded:z,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const Vb=({...e})=>{const{theme:t="system"}=mb();return d.jsx(Ub,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var Wb=yc[" useId ".trim().toString()]||(()=>{}),Hb=0;function ao(e){const[t,n]=p.useState(Wb());return Ie(()=>{n(r=>r??String(Hb++))},[e]),t?`radix-${t}`:""}const Kb=["top","right","bottom","left"],Qn=Math.min,rt=Math.max,pa=Math.round,xi=Math.floor,Gt=e=>({x:e,y:e}),Qb={left:"right",right:"left",bottom:"top",top:"bottom"},Gb={start:"end",end:"start"};function Yu(e,t,n){return rt(e,Qn(t,n))}function dn(e,t){return typeof e=="function"?e(t):e}function fn(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function hd(e){return e==="x"?"y":"x"}function md(e){return e==="y"?"height":"width"}const Yb=new Set(["top","bottom"]);function Ht(e){return Yb.has(fn(e))?"y":"x"}function vd(e){return hd(Ht(e))}function qb(e,t,n){n===void 0&&(n=!1);const r=Do(e),o=vd(e),s=md(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ha(i)),[i,ha(i)]}function Xb(e){const t=ha(e);return[qu(e),t,qu(t)]}function qu(e){return e.replace(/start|end/g,t=>Gb[t])}const ap=["left","right"],lp=["right","left"],Zb=["top","bottom"],Jb=["bottom","top"];function eC(e,t,n){switch(e){case"top":case"bottom":return n?t?lp:ap:t?ap:lp;case"left":case"right":return t?Zb:Jb;default:return[]}}function tC(e,t,n,r){const o=Do(e);let s=eC(fn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qu)))),s}function ha(e){return e.replace(/left|right|bottom|top/g,t=>Qb[t])}function nC(e){return{top:0,right:0,bottom:0,left:0,...e}}function ig(e){return typeof e!="number"?nC(e):{top:e,right:e,bottom:e,left:e}}function ma(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function up(e,t,n){let{reference:r,floating:o}=e;const s=Ht(t),i=vd(t),a=md(i),l=fn(t),u=s==="y",c=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:c,y:r.y-o.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Do(t)){case"start":m[i]-=g*(n&&u?-1:1);break;case"end":m[i]+=g*(n&&u?-1:1);break}return m}const rC=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=up(u,r,l),g=r,m={},S=0;for(let h=0;h<a.length;h++){const{name:w,fn:y}=a[h],{x:v,y:x,data:b,reset:C}=await y({x:c,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});c=v??c,f=x??f,m={...m,[w]:{...m[w],...b}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:f}=up(u,g,l)),h=-1)}return{x:c,y:f,placement:g,strategy:o,middlewareData:m}};async function Ms(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:g=!1,padding:m=0}=dn(t,e),S=ig(m),w=a[g?f==="floating"?"reference":"floating":f],y=ma(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ma(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:l}):v);return{top:(y.top-C.top+S.top)/b.y,bottom:(C.bottom-y.bottom+S.bottom)/b.y,left:(y.left-C.left+S.left)/b.x,right:(C.right-y.right+S.right)/b.x}}const oC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=dn(e,t)||{};if(u==null)return{};const f=ig(c),g={x:n,y:r},m=vd(o),S=md(m),h=await i.getDimensions(u),w=m==="y",y=w?"top":"left",v=w?"bottom":"right",x=w?"clientHeight":"clientWidth",b=s.reference[S]+s.reference[m]-g[m]-s.floating[S],C=g[m]-s.reference[m],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let E=N?N[x]:0;(!E||!await(i.isElement==null?void 0:i.isElement(N)))&&(E=a.floating[x]||s.floating[S]);const T=b/2-C/2,O=E/2-h[S]/2-1,_=Qn(f[y],O),z=Qn(f[v],O),I=_,V=E-h[S]-z,A=E/2-h[S]/2+T,H=Yu(I,A,V),$=!l.arrow&&Do(o)!=null&&A!==H&&s.reference[S]/2-(A<I?_:z)-h[S]/2<0,U=$?A<I?A-I:A-V:0;return{[m]:g[m]+U,data:{[m]:H,centerOffset:A-H-U,...$&&{alignmentOffset:U}},reset:$}}}),sC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:h=!0,...w}=dn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=fn(o),v=Ht(a),x=fn(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=g||(x||!h?[ha(a)]:Xb(a)),N=S!=="none";!g&&N&&C.push(...tC(a,h,S,b));const E=[a,...C],T=await Ms(t,w),O=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&O.push(T[y]),f){const A=qb(o,i,b);O.push(T[A[0]],T[A[1]])}if(_=[..._,{placement:o,overflows:O}],!O.every(A=>A<=0)){var z,I;const A=(((z=s.flip)==null?void 0:z.index)||0)+1,H=E[A];if(H&&(!(f==="alignment"?v!==Ht(H):!1)||_.every(k=>k.overflows[0]>0&&Ht(k.placement)===v)))return{data:{index:A,overflows:_},reset:{placement:H}};let $=(I=_.filter(U=>U.overflows[0]<=0).sort((U,k)=>U.overflows[1]-k.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(m){case"bestFit":{var V;const U=(V=_.filter(k=>{if(N){const R=Ht(k.placement);return R===v||R==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(R=>R>0).reduce((R,L)=>R+L,0)]).sort((k,R)=>k[1]-R[1])[0])==null?void 0:V[0];U&&($=U);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function cp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dp(e){return Kb.some(t=>e[t]>=0)}const iC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=dn(e,t);switch(r){case"referenceHidden":{const s=await Ms(t,{...o,elementContext:"reference"}),i=cp(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:dp(i)}}}case"escaped":{const s=await Ms(t,{...o,altBoundary:!0}),i=cp(s,n.floating);return{data:{escapedOffsets:i,escaped:dp(i)}}}default:return{}}}}},ag=new Set(["left","top"]);async function aC(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=fn(n),a=Do(n),l=Ht(n)==="y",u=ag.has(i)?-1:1,c=s&&l?-1:1,f=dn(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:S}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof S=="number"&&(m=a==="end"?S*-1:S),l?{x:m*c,y:g*u}:{x:g*u,y:m*c}}const lC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await aC(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},uC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...l}=dn(e,t),u={x:n,y:r},c=await Ms(t,l),f=Ht(fn(o)),g=hd(f);let m=u[g],S=u[f];if(s){const w=g==="y"?"top":"left",y=g==="y"?"bottom":"right",v=m+c[w],x=m-c[y];m=Yu(v,m,x)}if(i){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=S+c[w],x=S-c[y];S=Yu(v,S,x)}const h=a.fn({...t,[g]:m,[f]:S});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[g]:s,[f]:i}}}}}},cC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=dn(e,t),c={x:n,y:r},f=Ht(o),g=hd(f);let m=c[g],S=c[f];const h=dn(a,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const x=g==="y"?"height":"width",b=s.reference[g]-s.floating[x]+w.mainAxis,C=s.reference[g]+s.reference[x]-w.mainAxis;m<b?m=b:m>C&&(m=C)}if(u){var y,v;const x=g==="y"?"width":"height",b=ag.has(fn(o)),C=s.reference[f]-s.floating[x]+(b&&((y=i.offset)==null?void 0:y[f])||0)+(b?0:w.crossAxis),N=s.reference[f]+s.reference[x]+(b?0:((v=i.offset)==null?void 0:v[f])||0)-(b?w.crossAxis:0);S<C?S=C:S>N&&(S=N)}return{[g]:m,[f]:S}}}},dC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...u}=dn(e,t),c=await Ms(t,u),f=fn(o),g=Do(o),m=Ht(o)==="y",{width:S,height:h}=s.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,w=g==="end"?"top":"bottom");const v=h-c.top-c.bottom,x=S-c.left-c.right,b=Qn(h-c[w],v),C=Qn(S-c[y],x),N=!t.middlewareData.shift;let E=b,T=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=v),N&&!g){const _=rt(c.left,0),z=rt(c.right,0),I=rt(c.top,0),V=rt(c.bottom,0);m?T=S-2*(_!==0||z!==0?_+z:rt(c.left,c.right)):E=h-2*(I!==0||V!==0?I+V:rt(c.top,c.bottom))}await l({...t,availableWidth:T,availableHeight:E});const O=await i.getDimensions(a.floating);return S!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function Wa(){return typeof window<"u"}function Fo(e){return lg(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qt(e){var t;return(t=(lg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lg(e){return Wa()?e instanceof Node||e instanceof it(e).Node:!1}function It(e){return Wa()?e instanceof Element||e instanceof it(e).Element:!1}function Yt(e){return Wa()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function fp(e){return!Wa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}const fC=new Set(["inline","contents"]);function Ys(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!fC.has(o)}const pC=new Set(["table","td","th"]);function hC(e){return pC.has(Fo(e))}const mC=[":popover-open",":modal"];function Ha(e){return mC.some(t=>{try{return e.matches(t)}catch{return!1}})}const vC=["transform","translate","scale","rotate","perspective"],gC=["transform","translate","scale","rotate","perspective","filter"],yC=["paint","layout","strict","content"];function gd(e){const t=yd(),n=It(e)?Lt(e):e;return vC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||gC.some(r=>(n.willChange||"").includes(r))||yC.some(r=>(n.contain||"").includes(r))}function xC(e){let t=Gn(e);for(;Yt(t)&&!Ro(t);){if(gd(t))return t;if(Ha(t))return null;t=Gn(t)}return null}function yd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wC=new Set(["html","body","#document"]);function Ro(e){return wC.has(Fo(e))}function Lt(e){return it(e).getComputedStyle(e)}function Ka(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gn(e){if(Fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fp(e)&&e.host||qt(e);return fp(t)?t.host:t}function ug(e){const t=Gn(e);return Ro(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Ys(t)?t:ug(t)}function As(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ug(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=it(o);if(s){const a=Xu(i);return t.concat(i,i.visualViewport||[],Ys(o)?o:[],a&&n?As(a):[])}return t.concat(o,As(o,[],n))}function Xu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cg(e){const t=Lt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Yt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=pa(n)!==s||pa(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function xd(e){return It(e)?e:e.contextElement}function lo(e){const t=xd(e);if(!Yt(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=cg(t);let i=(s?pa(n.width):n.width)/r,a=(s?pa(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const SC=Gt(0);function dg(e){const t=it(e);return!yd()||!t.visualViewport?SC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function Er(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=xd(e);let i=Gt(1);t&&(r?It(r)&&(i=lo(r)):i=lo(e));const a=bC(s,n,r)?dg(s):Gt(0);let l=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(s){const g=it(s),m=r&&It(r)?it(r):r;let S=g,h=Xu(S);for(;h&&r&&m!==S;){const w=lo(h),y=h.getBoundingClientRect(),v=Lt(h),x=y.left+(h.clientLeft+parseFloat(v.paddingLeft))*w.x,b=y.top+(h.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,f*=w.y,l+=x,u+=b,S=it(h),h=Xu(S)}}return ma({width:c,height:f,x:l,y:u})}function wd(e,t){const n=Ka(e).scrollLeft;return t?t.left+n:Er(qt(e)).left+n}function fg(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:wd(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function CC(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=qt(r),a=t?Ha(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},u=Gt(1);const c=Gt(0),f=Yt(r);if((f||!f&&!s)&&((Fo(r)!=="body"||Ys(i))&&(l=Ka(r)),Yt(r))){const m=Er(r);u=lo(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}const g=i&&!f&&!s?fg(i,l,!0):Gt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+g.x,y:n.y*u.y-l.scrollTop*u.y+c.y+g.y}}function EC(e){return Array.from(e.getClientRects())}function NC(e){const t=qt(e),n=Ka(e),r=e.ownerDocument.body,o=rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+wd(e);const a=-n.scrollTop;return Lt(r).direction==="rtl"&&(i+=rt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function kC(e,t){const n=it(e),r=qt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=yd();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}const PC=new Set(["absolute","fixed"]);function TC(e,t){const n=Er(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Yt(e)?lo(e):Gt(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:i,height:a,x:l,y:u}}function pp(e,t,n){let r;if(t==="viewport")r=kC(e,n);else if(t==="document")r=NC(qt(e));else if(It(t))r=TC(t,n);else{const o=dg(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ma(r)}function pg(e,t){const n=Gn(e);return n===t||!It(n)||Ro(n)?!1:Lt(n).position==="fixed"||pg(n,t)}function RC(e,t){const n=t.get(e);if(n)return n;let r=As(e,[],!1).filter(a=>It(a)&&Fo(a)!=="body"),o=null;const s=Lt(e).position==="fixed";let i=s?Gn(e):e;for(;It(i)&&!Ro(i);){const a=Lt(i),l=gd(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&PC.has(o.position)||Ys(i)&&!l&&pg(e,i))?r=r.filter(c=>c!==i):o=a,i=Gn(i)}return t.set(e,r),r}function jC(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ha(t)?[]:RC(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((u,c)=>{const f=pp(t,c,o);return u.top=rt(f.top,u.top),u.right=Qn(f.right,u.right),u.bottom=Qn(f.bottom,u.bottom),u.left=rt(f.left,u.left),u},pp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _C(e){const{width:t,height:n}=cg(e);return{width:t,height:n}}function OC(e,t,n){const r=Yt(t),o=qt(t),s=n==="fixed",i=Er(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Gt(0);function u(){l.x=wd(o)}if(r||!r&&!s)if((Fo(t)!=="body"||Ys(o))&&(a=Ka(t)),r){const m=Er(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const c=o&&!r&&!s?fg(o,a):Gt(0),f=i.left+a.scrollLeft-l.x-c.x,g=i.top+a.scrollTop-l.y-c.y;return{x:f,y:g,width:i.width,height:i.height}}function zl(e){return Lt(e).position==="static"}function hp(e,t){if(!Yt(e)||Lt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qt(e)===n&&(n=n.ownerDocument.body),n}function hg(e,t){const n=it(e);if(Ha(e))return n;if(!Yt(e)){let o=Gn(e);for(;o&&!Ro(o);){if(It(o)&&!zl(o))return o;o=Gn(o)}return n}let r=hp(e,t);for(;r&&hC(r)&&zl(r);)r=hp(r,t);return r&&Ro(r)&&zl(r)&&!gd(r)?n:r||xC(e)||n}const MC=async function(e){const t=this.getOffsetParent||hg,n=this.getDimensions,r=await n(e.floating);return{reference:OC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function AC(e){return Lt(e).direction==="rtl"}const IC={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:qt,getClippingRect:jC,getOffsetParent:hg,getElementRects:MC,getClientRects:EC,getDimensions:_C,getScale:lo,isElement:It,isRTL:AC};function mg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LC(e,t){let n=null,r;const o=qt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:c,top:f,width:g,height:m}=u;if(a||t(),!g||!m)return;const S=xi(f),h=xi(o.clientWidth-(c+g)),w=xi(o.clientHeight-(f+m)),y=xi(c),x={rootMargin:-S+"px "+-h+"px "+-w+"px "+-y+"px",threshold:rt(0,Qn(1,l))||1};let b=!0;function C(N){const E=N[0].intersectionRatio;if(E!==l){if(!b)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!mg(u,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function DC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=xd(e),c=o||s?[...u?As(u):[],...As(t)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&a?LC(u,n):null;let g=-1,m=null;i&&(m=new ResizeObserver(y=>{let[v]=y;v&&v.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let S,h=l?Er(e):null;l&&w();function w(){const y=Er(e);h&&!mg(h,y)&&n(),h=y,S=requestAnimationFrame(w)}return n(),()=>{var y;c.forEach(v=>{o&&v.removeEventListener("scroll",n),s&&v.removeEventListener("resize",n)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(S)}}const FC=lC,$C=uC,zC=sC,BC=dC,UC=iC,mp=oC,VC=cC,WC=(e,t,n)=>{const r=new Map,o={platform:IC,...n},s={...o.platform,_c:r};return rC(e,t,{...o,platform:s})};var HC=typeof document<"u",KC=function(){},zi=HC?p.useLayoutEffect:KC;function va(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 n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!va(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!va(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function vg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vp(e,t){const n=vg(e);return Math.round(t*n)/n}function Bl(e){const t=p.useRef(e);return zi(()=>{t.current=e}),t}function QC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=p.useState(r);va(g,r)||m(r);const[S,h]=p.useState(null),[w,y]=p.useState(null),v=p.useCallback(k=>{k!==N.current&&(N.current=k,h(k))},[]),x=p.useCallback(k=>{k!==E.current&&(E.current=k,y(k))},[]),b=s||S,C=i||w,N=p.useRef(null),E=p.useRef(null),T=p.useRef(c),O=l!=null,_=Bl(l),z=Bl(o),I=Bl(u),V=p.useCallback(()=>{if(!N.current||!E.current)return;const k={placement:t,strategy:n,middleware:g};z.current&&(k.platform=z.current),WC(N.current,E.current,k).then(R=>{const L={...R,isPositioned:I.current!==!1};A.current&&!va(T.current,L)&&(T.current=L,jr.flushSync(()=>{f(L)}))})},[g,t,n,z,I]);zi(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(k=>({...k,isPositioned:!1})))},[u]);const A=p.useRef(!1);zi(()=>(A.current=!0,()=>{A.current=!1}),[]),zi(()=>{if(b&&(N.current=b),C&&(E.current=C),b&&C){if(_.current)return _.current(b,C,V);V()}},[b,C,V,_,O]);const H=p.useMemo(()=>({reference:N,floating:E,setReference:v,setFloating:x}),[v,x]),$=p.useMemo(()=>({reference:b,floating:C}),[b,C]),U=p.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const R=vp($.floating,c.x),L=vp($.floating,c.y);return a?{...k,transform:"translate("+R+"px, "+L+"px)",...vg($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:L}},[n,a,$.floating,c.x,c.y]);return p.useMemo(()=>({...c,update:V,refs:H,elements:$,floatingStyles:U}),[c,V,H,$,U])}const GC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mp({element:r.current,padding:o}).fn(n):{}:r?mp({element:r,padding:o}).fn(n):{}}}},YC=(e,t)=>({...FC(e),options:[e,t]}),qC=(e,t)=>({...$C(e),options:[e,t]}),XC=(e,t)=>({...VC(e),options:[e,t]}),ZC=(e,t)=>({...zC(e),options:[e,t]}),JC=(e,t)=>({...BC(e),options:[e,t]}),eE=(e,t)=>({...UC(e),options:[e,t]}),tE=(e,t)=>({...GC(e),options:[e,t]});var nE="Arrow",gg=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return d.jsx(ee.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});gg.displayName=nE;var rE=gg;function yg(e){const[t,n]=p.useState(void 0);return Ie(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Sd="Popper",[xg,Qa]=_r(Sd),[oE,wg]=xg(Sd),Sg=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return d.jsx(oE,{scope:t,anchor:r,onAnchorChange:o,children:n})};Sg.displayName=Sd;var bg="PopperAnchor",Cg=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=wg(bg,n),i=p.useRef(null),a=ue(t,i);return p.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(ee.div,{...o,ref:a})});Cg.displayName=bg;var bd="PopperContent",[sE,iE]=xg(bd),Eg=p.forwardRef((e,t)=>{var D,ie,Se,se,te,re;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:S,...h}=e,w=wg(bd,n),[y,v]=p.useState(null),x=ue(t,Le=>v(Le)),[b,C]=p.useState(null),N=yg(b),E=(N==null?void 0:N.width)??0,T=(N==null?void 0:N.height)??0,O=r+(s!=="center"?"-"+s:""),_=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},z=Array.isArray(u)?u:[u],I=z.length>0,V={padding:_,boundary:z.filter(lE),altBoundary:I},{refs:A,floatingStyles:H,placement:$,isPositioned:U,middlewareData:k}=QC({strategy:"fixed",placement:O,whileElementsMounted:(...Le)=>DC(...Le,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[YC({mainAxis:o+T,alignmentAxis:i}),l&&qC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?XC():void 0,...V}),l&&ZC({...V}),JC({...V,apply:({elements:Le,rects:ct,availableWidth:nr,availableHeight:hn})=>{const{width:rr,height:Bo}=ct.reference,Mr=Le.floating.style;Mr.setProperty("--radix-popper-available-width",`${nr}px`),Mr.setProperty("--radix-popper-available-height",`${hn}px`),Mr.setProperty("--radix-popper-anchor-width",`${rr}px`),Mr.setProperty("--radix-popper-anchor-height",`${Bo}px`)}}),b&&tE({element:b,padding:a}),uE({arrowWidth:E,arrowHeight:T}),g&&eE({strategy:"referenceHidden",...V})]}),[R,L]=Pg($),W=At(S);Ie(()=>{U&&(W==null||W())},[U,W]);const B=(D=k.arrow)==null?void 0:D.x,q=(ie=k.arrow)==null?void 0:ie.y,K=((Se=k.arrow)==null?void 0:Se.centerOffset)!==0,[de,we]=p.useState();return Ie(()=>{y&&we(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:U?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(se=k.transformOrigin)==null?void 0:se.x,(te=k.transformOrigin)==null?void 0:te.y].join(" "),...((re=k.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(sE,{scope:n,placedSide:R,onArrowChange:C,arrowX:B,arrowY:q,shouldHideArrow:K,children:d.jsx(ee.div,{"data-side":R,"data-align":L,...h,ref:x,style:{...h.style,animation:U?void 0:"none"}})})})});Eg.displayName=bd;var Ng="PopperArrow",aE={top:"bottom",right:"left",bottom:"top",left:"right"},kg=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=iE(Ng,r),i=aE[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]: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:d.jsx(rE,{...o,ref:n,style:{...o.style,display:"block"}})})});kg.displayName=Ng;function lE(e){return e!==null}var uE=e=>({name:"transformOrigin",options:e,fn(t){var w,y,v;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=Pg(n),f={start:"0%",center:"50%",end:"100%"}[c],g=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,m=(((v=o.arrow)==null?void 0:v.y)??0)+l/2;let S="",h="";return u==="bottom"?(S=i?f:`${g}px`,h=`${-l}px`):u==="top"?(S=i?f:`${g}px`,h=`${r.floating.height+l}px`):u==="right"?(S=`${-l}px`,h=i?f:`${m}px`):u==="left"&&(S=`${r.floating.width+l}px`,h=i?f:`${m}px`),{data:{x:S,y:h}}}});function Pg(e){const[t,n="center"]=e.split("-");return[t,n]}var cE=Sg,Tg=Cg,Rg=Eg,jg=kg,[Ga,xP]=_r("Tooltip",[Qa]),Cd=Qa(),_g="TooltipProvider",dE=700,gp="tooltip.open",[fE,Og]=Ga(_g),Mg=e=>{const{__scopeTooltip:t,delayDuration:n=dE,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=p.useRef(!0),a=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),d.jsx(fE,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:p.useCallback(u=>{a.current=u},[]),disableHoverableContent:o,children:s})};Mg.displayName=_g;var Ag="Tooltip",[wP,Ya]=Ga(Ag),Zu="TooltipTrigger",pE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ya(Zu,n),s=Og(Zu,n),i=Cd(n),a=p.useRef(null),l=ue(t,a,o.onTriggerChange),u=p.useRef(!1),c=p.useRef(!1),f=p.useCallback(()=>u.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(Tg,{asChild:!0,...i,children:d.jsx(ee.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:Y(e.onPointerMove,g=>{g.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Y(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})})});pE.displayName=Zu;var hE="TooltipPortal",[SP,mE]=Ga(hE,{forceMount:void 0}),jo="TooltipContent",Ig=p.forwardRef((e,t)=>{const n=mE(jo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Ya(jo,e.__scopeTooltip);return d.jsx(Io,{present:r||i.open,children:i.disableHoverableContent?d.jsx(Lg,{side:o,...s,ref:t}):d.jsx(vE,{side:o,...s,ref:t})})}),vE=p.forwardRef((e,t)=>{const n=Ya(jo,e.__scopeTooltip),r=Og(jo,e.__scopeTooltip),o=p.useRef(null),s=ue(t,o),[i,a]=p.useState(null),{trigger:l,onClose:u}=n,c=o.current,{onPointerInTransitChange:f}=r,g=p.useCallback(()=>{a(null),f(!1)},[f]),m=p.useCallback((S,h)=>{const w=S.currentTarget,y={x:S.clientX,y:S.clientY},v=SE(y,w.getBoundingClientRect()),x=bE(y,v),b=CE(h.getBoundingClientRect()),C=NE([...x,...b]);a(C),f(!0)},[f]);return p.useEffect(()=>()=>g(),[g]),p.useEffect(()=>{if(l&&c){const S=w=>m(w,c),h=w=>m(w,l);return l.addEventListener("pointerleave",S),c.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",S),c.removeEventListener("pointerleave",h)}}},[l,c,m,g]),p.useEffect(()=>{if(i){const S=h=>{const w=h.target,y={x:h.clientX,y:h.clientY},v=(l==null?void 0:l.contains(w))||(c==null?void 0:c.contains(w)),x=!EE(y,i);v?g():x&&(g(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[l,c,i,u,g]),d.jsx(Lg,{...e,ref:s})}),[gE,yE]=Ga(Ag,{isInside:!1}),xE=T1("TooltipContent"),Lg=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Ya(jo,n),u=Cd(n),{onClose:c}=l;return p.useEffect(()=>(document.addEventListener(gp,c),()=>document.removeEventListener(gp,c)),[c]),p.useEffect(()=>{if(l.trigger){const f=g=>{const m=g.target;m!=null&&m.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),d.jsx(Qs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:d.jsxs(Rg,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.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:[d.jsx(xE,{children:r}),d.jsx(gE,{scope:n,isInside:!0,children:d.jsx(q1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ig.displayName=jo;var Dg="TooltipArrow",wE=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Cd(n);return yE(Dg,n).isInside?null:d.jsx(jg,{...o,...r,ref:t})});wE.displayName=Dg;function SE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function CE(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function EE(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],u=a.x,c=a.y,f=l.x,g=l.y;c>r!=g>r&&n<(f-u)*(r-c)/(g-c)+u&&(o=!o)}return o}function NE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),kE(t)}function kE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var PE=Mg,Fg=Ig;const TE=PE,RE=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(Fg,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));RE.displayName=Fg.displayName;var qa=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(){}},Xa=typeof window>"u"||"Deno"in globalThis;function kt(){}function jE(e,t){return typeof e=="function"?e(t):e}function _E(e){return typeof e=="number"&&e>=0&&e!==1/0}function OE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ju(e,t){return typeof e=="function"?e(t):e}function ME(e,t){return typeof e=="function"?e(t):e}function yp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Ed(i,t.options))return!1}else if(!Ls(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function xp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Is(t.options.mutationKey)!==Is(s))return!1}else if(!Ls(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ed(e,t){return((t==null?void 0:t.queryKeyHashFn)||Is)(e)}function Is(e){return JSON.stringify(e,(t,n)=>ec(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ls(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ls(e[n],t[n])):!1}function $g(e,t){if(e===t)return e;const n=wp(e)&&wp(t);if(n||ec(e)&&ec(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{},l=new Set(r);let u=0;for(let c=0;c<i;c++){const f=n?c:s[c];(!n&&l.has(f)||n)&&e[f]===void 0&&t[f]===void 0?(a[f]=void 0,u++):(a[f]=$g(e[f],t[f]),a[f]===e[f]&&e[f]!==void 0&&u++)}return o===i&&u===o?e:a}return t}function wp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ec(e){if(!Sp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Sp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Sp(e){return Object.prototype.toString.call(e)==="[object Object]"}function AE(e){return new Promise(t=>{setTimeout(t,e)})}function IE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$g(e,t):t}function LE(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function DE(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Nd=Symbol();function zg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Nd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var dr,Pn,fo,Vp,FE=(Vp=class extends qa{constructor(){super();oe(this,dr);oe(this,Pn);oe(this,fo);G(this,fo,t=>{if(!Xa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,Pn)||this.setEventListener(P(this,fo))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Pn))==null||t.call(this),G(this,Pn,void 0))}setEventListener(t){var n;G(this,fo,t),(n=P(this,Pn))==null||n.call(this),G(this,Pn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,dr)!==t&&(G(this,dr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,dr)=="boolean"?P(this,dr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},dr=new WeakMap,Pn=new WeakMap,fo=new WeakMap,Vp),Bg=new FE,po,Tn,ho,Wp,$E=(Wp=class extends qa{constructor(){super();oe(this,po,!0);oe(this,Tn);oe(this,ho);G(this,ho,t=>{if(!Xa&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,Tn)||this.setEventListener(P(this,ho))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,Tn))==null||t.call(this),G(this,Tn,void 0))}setEventListener(t){var n;G(this,ho,t),(n=P(this,Tn))==null||n.call(this),G(this,Tn,t(this.setOnline.bind(this)))}setOnline(t){P(this,po)!==t&&(G(this,po,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,po)}},po=new WeakMap,Tn=new WeakMap,ho=new WeakMap,Wp),ga=new $E;function zE(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function BE(e){return Math.min(1e3*2**e,3e4)}function Ug(e){return(e??"online")==="online"?ga.isOnline():!0}var Vg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ul(e){return e instanceof Vg}function Wg(e){let t=!1,n=0,r=!1,o;const s=zE(),i=h=>{var w;r||(g(new Vg(h)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Bg.isFocused()&&(e.networkMode==="always"||ga.isOnline())&&e.canRun(),c=()=>Ug(e.networkMode)&&e.canRun(),f=h=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,h),o==null||o(),s.resolve(h))},g=h=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,h),o==null||o(),s.reject(h))},m=()=>new Promise(h=>{var w;o=y=>{(r||u())&&h(y)},(w=e.onPause)==null||w.call(e)}).then(()=>{var h;o=void 0,r||(h=e.onContinue)==null||h.call(e)}),S=()=>{if(r)return;let h;const w=n===0?e.initialPromise:void 0;try{h=w??e.fn()}catch(y){h=Promise.reject(y)}Promise.resolve(h).then(f).catch(y=>{var N;if(r)return;const v=e.retry??(Xa?0:3),x=e.retryDelay??BE,b=typeof x=="function"?x(n,y):x,C=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,y);if(t||!C){g(y);return}n++,(N=e.onFail)==null||N.call(e,n,y),AE(b).then(()=>u()?void 0:m()).then(()=>{t?g(y):S()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?S():m().then(S),s)}}var UE=e=>setTimeout(e,0);function VE(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=UE;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ke=VE(),fr,Hp,Hg=(Hp=class{constructor(){oe(this,fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_E(this.gcTime)&&G(this,fr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xa?1/0:5*60*1e3))}clearGcTimeout(){P(this,fr)&&(clearTimeout(P(this,fr)),G(this,fr,void 0))}},fr=new WeakMap,Hp),mo,pr,ft,hr,ze,zs,mr,Pt,Zt,Kp,WE=(Kp=class extends Hg{constructor(t){super();oe(this,Pt);oe(this,mo);oe(this,pr);oe(this,ft);oe(this,hr);oe(this,ze);oe(this,zs);oe(this,mr);G(this,mr,!1),G(this,zs,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,hr,t.client),G(this,ft,P(this,hr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,mo,KE(this.options)),this.state=t.state??P(this,mo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=P(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...P(this,zs),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,ft).remove(this)}setData(t,n){const r=IE(this.state.data,t,this.options);return De(this,Pt,Zt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){De(this,Pt,Zt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=P(this,ze))==null?void 0:r.promise;return(o=P(this,ze))==null||o.cancel(t),n?n.then(kt).catch(kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(P(this,mo))}isActive(){return this.observers.some(t=>ME(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ju(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!OE(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,ze)&&(P(this,mr)?P(this,ze).cancel({revert:!0}):P(this,ze).cancelRetry()),this.scheduleGc()),P(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||De(this,Pt,Zt).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,ze))return P(this,ze).continueRetry(),P(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(G(this,mr,!0),r.signal)})},s=()=>{const g=zg(this.options,n),S=(()=>{const h={client:P(this,hr),queryKey:this.queryKey,meta:this.meta};return o(h),h})();return G(this,mr,!1),this.options.persister?this.options.persister(g,S,this):g(S)},a=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,hr),state:this.state,fetchFn:s};return o(g),g})();(u=this.options.behavior)==null||u.onFetch(a,this),G(this,pr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&De(this,Pt,Zt).call(this,{type:"fetch",meta:(f=a.fetchOptions)==null?void 0:f.meta});const l=g=>{var m,S,h,w;Ul(g)&&g.silent||De(this,Pt,Zt).call(this,{type:"error",error:g}),Ul(g)||((S=(m=P(this,ft).config).onError)==null||S.call(m,g,this),(w=(h=P(this,ft).config).onSettled)==null||w.call(h,this.state.data,g,this)),this.scheduleGc()};return G(this,ze,Wg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var m,S,h,w;if(g===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(g)}catch(y){l(y);return}(S=(m=P(this,ft).config).onSuccess)==null||S.call(m,g,this),(w=(h=P(this,ft).config).onSettled)==null||w.call(h,g,this.state.error,this),this.scheduleGc()},onError:l,onFail:(g,m)=>{De(this,Pt,Zt).call(this,{type:"failed",failureCount:g,error:m})},onPause:()=>{De(this,Pt,Zt).call(this,{type:"pause"})},onContinue:()=>{De(this,Pt,Zt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),P(this,ze).start()}},mo=new WeakMap,pr=new WeakMap,ft=new WeakMap,hr=new WeakMap,ze=new WeakMap,zs=new WeakMap,mr=new WeakMap,Pt=new WeakSet,Zt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...HE(r.data,this.options),fetchMeta:t.meta??null};case"success":return G(this,pr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ul(o)&&o.revert&&P(this,pr)?{...P(this,pr),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,ft).notify({query:this,type:"updated",action:t})})},Kp);function HE(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ug(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var zt,Qp,QE=(Qp=class extends qa{constructor(t={}){super();oe(this,zt);this.config=t,G(this,zt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??Ed(o,n);let i=this.get(s);return i||(i=new WE({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){P(this,zt).has(t.queryHash)||(P(this,zt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,zt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,zt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ke.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,zt).get(t)}getAll(){return[...P(this,zt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>yp(t,r)):n}notify(t){Ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ke.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},zt=new WeakMap,Qp),Bt,Ve,vr,Ut,Sn,Gp,GE=(Gp=class extends Hg{constructor(t){super();oe(this,Ut);oe(this,Bt);oe(this,Ve);oe(this,vr);this.mutationId=t.mutationId,G(this,Ve,t.mutationCache),G(this,Bt,[]),this.state=t.state||YE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Bt).includes(t)||(P(this,Bt).push(t),this.clearGcTimeout(),P(this,Ve).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Bt,P(this,Bt).filter(n=>n!==t)),this.scheduleGc(),P(this,Ve).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Bt).length||(this.state.status==="pending"?this.scheduleGc():P(this,Ve).remove(this))}continue(){var t;return((t=P(this,vr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,i,a,l,u,c,f,g,m,S,h,w,y,v,x,b,C,N,E,T;const n=()=>{De(this,Ut,Sn).call(this,{type:"continue"})};G(this,vr,Wg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,_)=>{De(this,Ut,Sn).call(this,{type:"failed",failureCount:O,error:_})},onPause:()=>{De(this,Ut,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,Ve).canRun(this)}));const r=this.state.status==="pending",o=!P(this,vr).canStart();try{if(r)n();else{De(this,Ut,Sn).call(this,{type:"pending",variables:t,isPaused:o}),await((i=(s=P(this,Ve).config).onMutate)==null?void 0:i.call(s,t,this));const _=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));_!==this.state.context&&De(this,Ut,Sn).call(this,{type:"pending",context:_,variables:t,isPaused:o})}const O=await P(this,vr).start();return await((c=(u=P(this,Ve).config).onSuccess)==null?void 0:c.call(u,O,t,this.state.context,this)),await((g=(f=this.options).onSuccess)==null?void 0:g.call(f,O,t,this.state.context)),await((S=(m=P(this,Ve).config).onSettled)==null?void 0:S.call(m,O,null,this.state.variables,this.state.context,this)),await((w=(h=this.options).onSettled)==null?void 0:w.call(h,O,null,t,this.state.context)),De(this,Ut,Sn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((v=(y=P(this,Ve).config).onError)==null?void 0:v.call(y,O,t,this.state.context,this)),await((b=(x=this.options).onError)==null?void 0:b.call(x,O,t,this.state.context)),await((N=(C=P(this,Ve).config).onSettled)==null?void 0:N.call(C,void 0,O,this.state.variables,this.state.context,this)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,void 0,O,t,this.state.context)),O}finally{De(this,Ut,Sn).call(this,{type:"error",error:O})}}finally{P(this,Ve).runNext(this)}}},Bt=new WeakMap,Ve=new WeakMap,vr=new WeakMap,Ut=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ke.batch(()=>{P(this,Bt).forEach(r=>{r.onMutationUpdate(t)}),P(this,Ve).notify({mutation:this,type:"updated",action:t})})},Gp);function YE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nn,Tt,Bs,Yp,qE=(Yp=class extends qa{constructor(t={}){super();oe(this,nn);oe(this,Tt);oe(this,Bs);this.config=t,G(this,nn,new Set),G(this,Tt,new Map),G(this,Bs,0)}build(t,n,r){const o=new GE({mutationCache:this,mutationId:++Zs(this,Bs)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,nn).add(t);const n=wi(t);if(typeof n=="string"){const r=P(this,Tt).get(n);r?r.push(t):P(this,Tt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,nn).delete(t)){const n=wi(t);if(typeof n=="string"){const r=P(this,Tt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,Tt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=wi(t);if(typeof n=="string"){const r=P(this,Tt).get(n),o=r==null?void 0:r.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=wi(t);if(typeof n=="string"){const o=(r=P(this,Tt).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ke.batch(()=>{P(this,nn).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,nn).clear(),P(this,Tt).clear()})}getAll(){return Array.from(P(this,nn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>xp(n,r))}findAll(t={}){return this.getAll().filter(n=>xp(t,n))}notify(t){Ke.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ke.batch(()=>Promise.all(t.map(n=>n.continue().catch(kt))))}},nn=new WeakMap,Tt=new WeakMap,Bs=new WeakMap,Yp);function wi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function bp(e){return{onFetch:(t,n)=>{var c,f,g,m,S;const r=t.options,o=(g=(f=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:f.fetchMore)==null?void 0:g.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],i=((S=t.state.data)==null?void 0:S.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let h=!1;const w=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},y=zg(t.options,t.fetchOptions),v=async(x,b,C)=>{if(h)return Promise.reject();if(b==null&&x.pages.length)return Promise.resolve(x);const E=(()=>{const z={client:t.client,queryKey:t.queryKey,pageParam:b,direction:C?"backward":"forward",meta:t.options.meta};return w(z),z})(),T=await y(E),{maxPages:O}=t.options,_=C?DE:LE;return{pages:_(x.pages,T,O),pageParams:_(x.pageParams,b,O)}};if(o&&s.length){const x=o==="backward",b=x?XE:Cp,C={pages:s,pageParams:i},N=b(r,C);a=await v(C,N,x)}else{const x=e??s.length;do{const b=l===0?i[0]??r.initialPageParam:Cp(r,a);if(l>0&&b==null)break;a=await v(a,b),l++}while(l<x)}return a};t.options.persister?t.fetchFn=()=>{var h,w;return(w=(h=t.options).persister)==null?void 0:w.call(h,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Cp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function XE(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var be,Rn,jn,vo,go,_n,yo,xo,qp,ZE=(qp=class{constructor(e={}){oe(this,be);oe(this,Rn);oe(this,jn);oe(this,vo);oe(this,go);oe(this,_n);oe(this,yo);oe(this,xo);G(this,be,e.queryCache||new QE),G(this,Rn,e.mutationCache||new qE),G(this,jn,e.defaultOptions||{}),G(this,vo,new Map),G(this,go,new Map),G(this,_n,0)}mount(){Zs(this,_n)._++,P(this,_n)===1&&(G(this,yo,Bg.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,be).onFocus())})),G(this,xo,ga.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,be).onOnline())})))}unmount(){var e,t;Zs(this,_n)._--,P(this,_n)===0&&((e=P(this,yo))==null||e.call(this),G(this,yo,void 0),(t=P(this,xo))==null||t.call(this),G(this,xo,void 0))}isFetching(e){return P(this,be).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Rn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,be).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,be).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ju(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,be).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,be).get(r.queryHash),s=o==null?void 0:o.state.data,i=jE(t,s);if(i!==void 0)return P(this,be).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Ke.batch(()=>P(this,be).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,be).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,be);Ke.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,be);return Ke.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ke.batch(()=>P(this,be).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(kt).catch(kt)}invalidateQueries(e,t={}){return Ke.batch(()=>(P(this,be).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ke.batch(()=>P(this,be).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(kt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(kt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,be).build(this,t);return n.isStaleByTime(Ju(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(kt).catch(kt)}fetchInfiniteQuery(e){return e.behavior=bp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(kt).catch(kt)}ensureInfiniteQueryData(e){return e.behavior=bp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ga.isOnline()?P(this,Rn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,be)}getMutationCache(){return P(this,Rn)}getDefaultOptions(){return P(this,jn)}setDefaultOptions(e){G(this,jn,e)}setQueryDefaults(e,t){P(this,vo).set(Is(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,vo).values()],n={};return t.forEach(r=>{Ls(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,go).set(Is(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,go).values()],n={};return t.forEach(r=>{Ls(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,jn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ed(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===Nd&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,jn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,be).clear(),P(this,Rn).clear()}},be=new WeakMap,Rn=new WeakMap,jn=new WeakMap,vo=new WeakMap,go=new WeakMap,_n=new WeakMap,yo=new WeakMap,xo=new WeakMap,qp),JE=p.createContext(void 0),eN=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(JE.Provider,{value:e,children:t}));/**
|
|
172
|
+
* @remix-run/router v1.23.0
|
|
173
|
+
*
|
|
174
|
+
* Copyright (c) Remix Software Inc.
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the MIT license found in the
|
|
177
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
178
|
+
*
|
|
179
|
+
* @license MIT
|
|
180
|
+
*/function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(this,arguments)}var An;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(An||(An={}));const Ep="popstate";function tN(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return tc("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:ya(o)}return rN(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function nN(){return Math.random().toString(36).substr(2,8)}function Np(e,t){return{usr:e.state,key:e.key,idx:t}}function tc(e,t,n,r){return n===void 0&&(n=null),Ds({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$o(t):t,{state:n,key:t&&t.key||r||nN()})}function ya(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $o(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rN(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=An.Pop,l=null,u=c();u==null&&(u=0,i.replaceState(Ds({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function f(){a=An.Pop;let w=c(),y=w==null?null:w-u;u=w,l&&l({action:a,location:h.location,delta:y})}function g(w,y){a=An.Push;let v=tc(h.location,w,y);u=c()+1;let x=Np(v,u),b=h.createHref(v);try{i.pushState(x,"",b)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(b)}s&&l&&l({action:a,location:h.location,delta:1})}function m(w,y){a=An.Replace;let v=tc(h.location,w,y);u=c();let x=Np(v,u),b=h.createHref(v);i.replaceState(x,"",b),s&&l&&l({action:a,location:h.location,delta:0})}function S(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof w=="string"?w:ya(w);return v=v.replace(/ $/,"%20"),Ee(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let h={get action(){return a},get location(){return e(o,i)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Ep,f),l=w,()=>{o.removeEventListener(Ep,f),l=null}},createHref(w){return t(o,w)},createURL:S,encodeLocation(w){let y=S(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:m,go(w){return i.go(w)}};return h}var kp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kp||(kp={}));function oN(e,t,n){return n===void 0&&(n="/"),sN(e,t,n,!1)}function sN(e,t,n,r){let o=typeof t=="string"?$o(t):t,s=_o(o.pathname||"/",n);if(s==null)return null;let i=Qg(e);iN(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let u=gN(s);a=mN(i[l],u,r)}return a}function Qg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Ee(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Vn([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(Ee(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Qg(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:pN(u,s.index),routesMeta:c})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of Gg(s.path))o(s,i,l)}),t}function Gg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=Gg(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function iN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aN=/^:[\w-]+$/,lN=3,uN=2,cN=1,dN=10,fN=-2,Pp=e=>e==="*";function pN(e,t){let n=e.split("/"),r=n.length;return n.some(Pp)&&(r+=fN),t&&(r+=uN),n.filter(o=>!Pp(o)).reduce((o,s)=>o+(aN.test(s)?lN:s===""?cN:dN),r)}function hN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function mN(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=s==="/"?t:t.slice(s.length)||"/",f=xa({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),g=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=xa({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;Object.assign(o,f.params),i.push({params:o,pathname:Vn([s,f.pathname]),pathnameBase:SN(Vn([s,f.pathnameBase])),route:g}),f.pathnameBase!=="/"&&(s=Vn([s,f.pathnameBase]))}return i}function xa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=vN(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:g,isOptional:m}=c;if(g==="*"){let h=a[f]||"";i=s.slice(0,s.length-h.length).replace(/(.)\/+$/,"$1")}const S=a[f];return m&&!S?u[g]=void 0:u[g]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:i,pattern:e}}function vN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Kg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function gN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _o(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function yN(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$o(e):e;return{pathname:n?n.startsWith("/")?n:xN(n,t):t,search:bN(r),hash:CN(o)}}function xN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Vl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function wN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yg(e,t){let n=wN(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function qg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$o(e):(o=Ds({},e),Ee(!o.pathname||!o.pathname.includes("?"),Vl("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),Vl("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),Vl("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}a=f>=0?t[f]:"/"}let l=yN(o,a),u=i&&i!=="/"&&i.endsWith("/"),c=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Vn=e=>e.join("/").replace(/\/\/+/g,"/"),SN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function EN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xg=["post","put","patch","delete"];new Set(Xg);const NN=["get",...Xg];new Set(NN);/**
|
|
181
|
+
* React Router v6.30.1
|
|
182
|
+
*
|
|
183
|
+
* Copyright (c) Remix Software Inc.
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the MIT license found in the
|
|
186
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
187
|
+
*
|
|
188
|
+
* @license MIT
|
|
189
|
+
*/function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fs.apply(this,arguments)}const Za=p.createContext(null),Zg=p.createContext(null),Zn=p.createContext(null),Ja=p.createContext(null),Jn=p.createContext({outlet:null,matches:[],isDataRoute:!1}),Jg=p.createContext(null);function kN(e,t){let{relative:n}=t===void 0?{}:t;qs()||Ee(!1);let{basename:r,navigator:o}=p.useContext(Zn),{hash:s,pathname:i,search:a}=el(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Vn([r,i])),o.createHref({pathname:l,search:a,hash:s})}function qs(){return p.useContext(Ja)!=null}function Or(){return qs()||Ee(!1),p.useContext(Ja).location}function ey(e){p.useContext(Zn).static||p.useLayoutEffect(e)}function PN(){let{isDataRoute:e}=p.useContext(Jn);return e?BN():TN()}function TN(){qs()||Ee(!1);let e=p.useContext(Za),{basename:t,future:n,navigator:r}=p.useContext(Zn),{matches:o}=p.useContext(Jn),{pathname:s}=Or(),i=JSON.stringify(Yg(o,n.v7_relativeSplatPath)),a=p.useRef(!1);return ey(()=>{a.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=qg(u,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Vn([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,s,e])}function RN(){let{matches:e}=p.useContext(Jn),t=e[e.length-1];return t?t.params:{}}function el(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Zn),{matches:o}=p.useContext(Jn),{pathname:s}=Or(),i=JSON.stringify(Yg(o,r.v7_relativeSplatPath));return p.useMemo(()=>qg(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function jN(e,t){return _N(e,t)}function _N(e,t,n,r){qs()||Ee(!1);let{navigator:o}=p.useContext(Zn),{matches:s}=p.useContext(Jn),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let u=Or(),c;if(t){var f;let w=typeof t=="string"?$o(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Ee(!1),c=w}else c=u;let g=c.pathname||"/",m=g;if(l!=="/"){let w=l.replace(/^\//,"").split("/");m="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=oN(e,{pathname:m}),h=LN(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:Vn([l,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Vn([l,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&h?p.createElement(Ja.Provider,{value:{location:Fs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:An.Pop}},h):h}function ON(){let e=zN(),t=EN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const MN=p.createElement(ON,null);class AN extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Jn.Provider,{value:this.props.routeContext},p.createElement(Jg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function IN(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Za);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Jn.Provider,{value:t},r)}function LN(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||Ee(!1),i=i.slice(0,Math.min(i.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<i.length;c++){let f=i[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:g,errors:m}=n,S=f.route.loader&&g[f.route.id]===void 0&&(!m||m[f.route.id]===void 0);if(f.route.lazy||S){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((c,f,g)=>{let m,S=!1,h=null,w=null;n&&(m=a&&f.route.id?a[f.route.id]:void 0,h=f.route.errorElement||MN,l&&(u<0&&g===0?(S=!0,w=null):u===g&&(S=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,g+1)),v=()=>{let x;return m?x=h:S?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,p.createElement(IN,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?p.createElement(AN,{location:n.location,revalidation:n.revalidation,component:h,error:m,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var ty=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ty||{}),wa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(wa||{});function DN(e){let t=p.useContext(Za);return t||Ee(!1),t}function FN(e){let t=p.useContext(Zg);return t||Ee(!1),t}function $N(e){let t=p.useContext(Jn);return t||Ee(!1),t}function ny(e){let t=$N(),n=t.matches[t.matches.length-1];return n.route.id||Ee(!1),n.route.id}function zN(){var e;let t=p.useContext(Jg),n=FN(wa.UseRouteError),r=ny(wa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function BN(){let{router:e}=DN(ty.UseNavigateStable),t=ny(wa.UseNavigateStable),n=p.useRef(!1);return ey(()=>{n.current=!0}),p.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fs({fromRouteId:t},s)))},[e,t])}function UN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Br(e){Ee(!1)}function VN(e){let{basename:t="/",children:n=null,location:r,navigationType:o=An.Pop,navigator:s,static:i=!1,future:a}=e;qs()&&Ee(!1);let l=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:s,static:i,future:Fs({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=$o(r));let{pathname:c="/",search:f="",hash:g="",state:m=null,key:S="default"}=r,h=p.useMemo(()=>{let w=_o(c,l);return w==null?null:{location:{pathname:w,search:f,hash:g,state:m,key:S},navigationType:o}},[l,c,f,g,m,S,o]);return h==null?null:p.createElement(Zn.Provider,{value:u},p.createElement(Ja.Provider,{children:n,value:h}))}function WN(e){let{children:t,location:n}=e;return jN(nc(t),n)}new Promise(()=>{});function nc(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let s=[...t,o];if(r.type===p.Fragment){n.push.apply(n,nc(r.props.children,s));return}r.type!==Br&&Ee(!1),!r.props.index||!r.props.children||Ee(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=nc(r.props.children,s)),n.push(i)}),n}/**
|
|
190
|
+
* React Router DOM v6.30.1
|
|
191
|
+
*
|
|
192
|
+
* Copyright (c) Remix Software Inc.
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the MIT license found in the
|
|
195
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
196
|
+
*
|
|
197
|
+
* @license MIT
|
|
198
|
+
*/function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sa.apply(this,arguments)}function ry(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function HN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KN(e,t){return e.button===0&&(!t||t==="_self")&&!HN(e)}const QN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],GN=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],YN="6";try{window.__reactRouterVersion=YN}catch{}const qN=p.createContext({isTransitioning:!1}),XN="startTransition",Tp=yc[XN];function ZN(e){let{basename:t,children:n,future:r,window:o}=e,s=p.useRef();s.current==null&&(s.current=tN({window:o,v5Compat:!0}));let i=s.current,[a,l]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},c=p.useCallback(f=>{u&&Tp?Tp(()=>l(f)):l(f)},[l,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>UN(r),[r]),p.createElement(VN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const JN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rc=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,g=ry(t,QN),{basename:m}=p.useContext(Zn),S,h=!1;if(typeof u=="string"&&e2.test(u)&&(S=u,JN))try{let x=new URL(window.location.href),b=u.startsWith("//")?new URL(x.protocol+u):new URL(u),C=_o(b.pathname,m);b.origin===x.origin&&C!=null?u=C+b.search+b.hash:h=!0}catch{}let w=kN(u,{relative:o}),y=n2(u,{replace:i,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:f});function v(x){r&&r(x),x.defaultPrevented||y(x)}return p.createElement("a",Sa({},g,{href:S||w,onClick:h||s?r:v,ref:n,target:l}))}),Si=p.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:i=!1,style:a,to:l,viewTransition:u,children:c}=t,f=ry(t,GN),g=el(l,{relative:f.relative}),m=Or(),S=p.useContext(Zg),{navigator:h,basename:w}=p.useContext(Zn),y=S!=null&&r2(g)&&u===!0,v=h.encodeLocation?h.encodeLocation(g).pathname:g.pathname,x=m.pathname,b=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;o||(x=x.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&w&&(b=_o(b,w)||b);const C=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let N=x===v||!i&&x.startsWith(v)&&x.charAt(C)==="/",E=b!=null&&(b===v||!i&&b.startsWith(v)&&b.charAt(v.length)==="/"),T={isActive:N,isPending:E,isTransitioning:y},O=N?r:void 0,_;typeof s=="function"?_=s(T):_=[s,N?"active":null,E?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(T):a;return p.createElement(rc,Sa({},f,{"aria-current":O,className:_,ref:n,style:z,to:l,viewTransition:u}),typeof c=="function"?c(T):c)});var oc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(oc||(oc={}));var Rp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Rp||(Rp={}));function t2(e){let t=p.useContext(Za);return t||Ee(!1),t}function n2(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,l=PN(),u=Or(),c=el(e,{relative:i});return p.useCallback(f=>{if(KN(f,n)){f.preventDefault();let g=r!==void 0?r:ya(u)===ya(c);l(e,{replace:g,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[u,l,c,r,o,n,e,s,i,a])}function r2(e,t){t===void 0&&(t={});let n=p.useContext(qN);n==null&&Ee(!1);let{basename:r}=t2(oc.useViewTransitionState),o=el(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=_o(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=_o(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xa(o.pathname,i)!=null||xa(o.pathname,s)!=null}const o2={Users:Yv,FileText:Hv,Package:Kv,ShoppingCart:Gv};function s2({models:e}){const t=Or(),n=o=>t.pathname===o,r=o=>t.pathname.startsWith(`/models/${o}`);return d.jsxs("aside",{className:"w-64 min-h-screen bg-sidebar border-r border-sidebar-border flex flex-col",children:[d.jsx("div",{className:"p-4 border-b border-sidebar-border",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",children:d.jsx(To,{className:"w-5 h-5 text-primary"})}),d.jsxs("div",{children:[d.jsx("h1",{className:"font-semibold text-foreground",children:"DataForge"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"ORM Admin Panel"})]})]})}),d.jsxs("nav",{className:"flex-1 p-3 space-y-1 scrollbar-thin overflow-y-auto",children:[d.jsxs(Si,{to:"/",className:`flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ${n("/")?"bg-sidebar-accent text-primary font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"}`,children:[d.jsx(bS,{className:"w-4 h-4"}),"Dashboard"]}),d.jsxs(Si,{to:"/schema",className:`flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ${n("/schema")?"bg-sidebar-accent text-primary font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"}`,children:[d.jsx(Wv,{className:"w-4 h-4"}),"Schema Editor"]}),d.jsx("div",{className:"pt-4 pb-2",children:d.jsx("span",{className:"px-3 text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Models"})}),e.map(o=>{const s=o2[o.icon]||To;return d.jsxs(Si,{to:`/models/${o.name}`,className:`flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ${r(o.name)?"bg-sidebar-accent text-primary font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"}`,children:[d.jsx(s,{className:"w-4 h-4"}),o.displayName,d.jsx("span",{className:"ml-auto text-xs text-muted-foreground font-mono",children:o.fields.length})]},o.name)})]}),d.jsx("div",{className:"p-3 border-t border-sidebar-border",children:d.jsxs(Si,{to:"/settings",className:`flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors ${n("/settings")?"bg-sidebar-accent text-primary font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"}`,children:[d.jsx(Qv,{className:"w-4 h-4"}),"Settings"]})})]})}function $s({children:e,models:t}){return d.jsxs("div",{className:"flex min-h-screen w-full bg-background",children:[d.jsx(s2,{models:t}),d.jsx("main",{className:"flex-1 overflow-auto",children:e})]})}function jp({title:e,value:t,icon:n,trend:r}){return d.jsx("div",{className:"stat-card animate-fade-in",children:d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:e}),d.jsx("p",{className:"text-2xl font-semibold mt-1",children:t}),r&&d.jsxs("p",{className:`text-xs mt-2 ${r.isPositive?"text-success":"text-destructive"}`,children:[r.isPositive?"↑":"↓"," ",Math.abs(r.value),"% from last week"]})]}),d.jsx("div",{className:"p-2 bg-primary/10 rounded-lg text-primary",children:n})]})})}function i2(e,t=10){const n=[];for(let r=1;r<=t;r++){const o={};for(const s of e.fields)switch(s.type){case"number":o[s.name]=s.name==="id"?r:s.name.includes("price")||s.name.includes("total")?Math.floor(Math.random()*1e3)+10:Math.floor(Math.random()*100)+1;break;case"string":case"text":o[s.name]=`${s.label} ${r}`;break;case"email":o[s.name]=`user${r}@example.com`;break;case"boolean":o[s.name]=Math.random()>.3;break;case"date":const i=new Date;i.setDate(i.getDate()-Math.floor(Math.random()*30)),o[s.name]=i.toISOString().split("T")[0];break;case"select":s.options&&s.options.length>0&&(o[s.name]=s.options[Math.floor(Math.random()*s.options.length)]);break}n.push(o)}return n}const a2={Users:Yv,FileText:Hv,Package:Kv,ShoppingCart:Gv};function l2({models:e}){e.reduce((n,r)=>n+10,0);const t=e.reduce((n,r)=>n+r.fields.length,0);return d.jsx($s,{models:e,children:d.jsxs("div",{className:"p-8",children:[d.jsxs("div",{className:"mb-8",children:[d.jsx("h1",{className:"text-3xl font-semibold",children:"Dashboard"}),d.jsx("p",{className:"text-muted-foreground mt-1",children:"Overview of your data models and records"})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[d.jsx(jp,{title:"Total Models",value:e.length,icon:d.jsx(To,{className:"w-5 h-5"})}),d.jsx(jp,{title:"Total Fields",value:t,icon:d.jsx(yS,{className:"w-5 h-5"})})]}),d.jsx("div",{className:"mb-6",children:d.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Models"})}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:e.map((n,r)=>{const o=a2[n.icon]||To;return i2(n,3),d.jsxs(rc,{to:`/models/${n.name}`,className:"admin-card hover:glow-effect transition-all duration-300 group",style:{animationDelay:`${r*100}ms`},children:[d.jsxs("div",{className:"flex items-start justify-between mb-4",children:[d.jsx("div",{className:"p-2 bg-primary/10 rounded-lg text-primary group-hover:bg-primary group-hover:text-primary-foreground transition-colors",children:d.jsx(o,{className:"w-5 h-5"})}),d.jsxs("span",{className:"text-xs font-mono text-muted-foreground bg-secondary px-2 py-1 rounded",children:[n.fields.length," fields"]})]}),d.jsx("h3",{className:"text-lg font-semibold mb-1",children:n.displayName}),d.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[n.name," model with ",n.fields.length," defined fields"]}),d.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[n.fields.slice(0,4).map(s=>d.jsx("span",{className:`model-badge field-type-${s.type==="string"||s.type==="text"||s.type==="email"?"string":s.type==="number"?"number":s.type==="boolean"?"boolean":"date"}`,children:s.name},s.name)),n.fields.length>4&&d.jsxs("span",{className:"model-badge bg-muted text-muted-foreground",children:["+",n.fields.length-4]})]})]},n.name)})}),d.jsxs("div",{className:"mt-8 p-6 admin-card bg-gradient-to-r from-primary/5 to-transparent border-primary/20",children:[d.jsx("h3",{className:"font-semibold mb-2",children:"Quick Start"}),d.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Define your models in ",d.jsx("code",{className:"font-mono text-primary bg-primary/10 px-1.5 py-0.5 rounded",children:"src/lib/models.ts"})," to auto-generate forms and CRUD interfaces."]}),d.jsx(rc,{to:"/schema",className:"inline-flex items-center text-sm text-primary hover:underline",children:"View Schema Editor →"})]})]})})}const u2=()=>{const[e,t]=p.useState([]);return p.useEffect(()=>{fetch("/admin/schema").then(n=>n.json()).then(t).catch(n=>{console.error("Failed to load admin schema",n)})},[]),d.jsx(l2,{models:e})},c2=Va("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Wn=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?k1:"button";return d.jsx(i,{className:J(c2({variant:t,size:n,className:e})),ref:s,...o})});Wn.displayName="Button";const uo=p.forwardRef(({className:e,type:t,...n},r)=>d.jsx("input",{type:t,className:J("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));uo.displayName="Input";const oy=p.forwardRef(({className:e,...t},n)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:n,className:J("w-full caption-bottom text-sm",e),...t})}));oy.displayName="Table";const sy=p.forwardRef(({className:e,...t},n)=>d.jsx("thead",{ref:n,className:J("[&_tr]:border-b",e),...t}));sy.displayName="TableHeader";const iy=p.forwardRef(({className:e,...t},n)=>d.jsx("tbody",{ref:n,className:J("[&_tr:last-child]:border-0",e),...t}));iy.displayName="TableBody";const d2=p.forwardRef(({className:e,...t},n)=>d.jsx("tfoot",{ref:n,className:J("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));d2.displayName="TableFooter";const sc=p.forwardRef(({className:e,...t},n)=>d.jsx("tr",{ref:n,className:J("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));sc.displayName="TableRow";const ic=p.forwardRef(({className:e,...t},n)=>d.jsx("th",{ref:n,className:J("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));ic.displayName="TableHead";const ac=p.forwardRef(({className:e,...t},n)=>d.jsx("td",{ref:n,className:J("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));ac.displayName="TableCell";const f2=p.forwardRef(({className:e,...t},n)=>d.jsx("caption",{ref:n,className:J("mt-4 text-sm text-muted-foreground",e),...t}));f2.displayName="TableCaption";const p2=Va("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function _p({className:e,variant:t,...n}){return d.jsx("div",{className:J(p2({variant:t}),e),...n})}function h2({model:e,data:t,onEdit:n,onDelete:r,onAdd:o}){const[s,i]=p.useState(""),[a,l]=p.useState(null),[u,c]=p.useState("asc"),f=t.filter(h=>s?Object.values(h).some(w=>String(w).toLowerCase().includes(s.toLowerCase())):!0),g=a?[...f].sort((h,w)=>{const y=h[a],v=w[a];if(y===v)return 0;const x=y<v?-1:1;return u==="asc"?x:-x}):f,m=h=>{a===h?c(u==="asc"?"desc":"asc"):(l(h),c("asc"))},S=(h,w)=>h==null?d.jsx("span",{className:"text-muted-foreground",children:"—"}):typeof h=="boolean"?d.jsx(_p,{variant:h?"default":"secondary",className:h?"bg-success text-success-foreground":"",children:h?"Yes":"No"}):w==="select"?d.jsx(_p,{variant:"outline",className:"font-mono text-xs",children:String(h)}):String(h);return d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between gap-4",children:[d.jsxs("div",{className:"relative flex-1 max-w-sm",children:[d.jsx(PS,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),d.jsx(uo,{placeholder:"Search records...",value:s,onChange:h=>i(h.target.value),className:"pl-9 bg-secondary border-border"})]}),d.jsxs(Wn,{onClick:o,className:"gap-2",children:[d.jsx(NS,{className:"w-4 h-4"}),"Add ",e.displayName]})]}),d.jsxs("div",{className:"admin-card p-0 overflow-hidden",children:[d.jsxs(oy,{children:[d.jsx(sy,{children:d.jsxs(sc,{className:"border-border hover:bg-transparent",children:[e.fields.map(h=>d.jsx(ic,{onClick:()=>m(h.name),className:"cursor-pointer hover:text-foreground transition-colors",children:d.jsxs("span",{className:"flex items-center gap-1",children:[h.label,a===h.name&&d.jsx("span",{className:"text-primary",children:u==="asc"?"↑":"↓"})]})},h.name)),d.jsx(ic,{className:"w-24",children:"Actions"})]})}),d.jsx(iy,{children:g.map((h,w)=>d.jsxs(sc,{className:"border-border hover:bg-secondary/50",children:[e.fields.map(y=>d.jsx(ac,{className:"font-mono text-sm",children:S(h[y.name],y.type)},y.name)),d.jsx(ac,{children:d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx(Wn,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>n==null?void 0:n(h),children:d.jsx(ES,{className:"w-4 h-4"})}),d.jsx(Wn,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-destructive",onClick:()=>r==null?void 0:r(h),children:d.jsx(RS,{className:"w-4 h-4"})})]})})]},w))})]}),g.length===0&&d.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"No records found"})]}),d.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing ",g.length," of ",t.length," records"]})]})}var m2="Label",ay=p.forwardRef((e,t)=>d.jsx(ee.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));ay.displayName=m2;var ly=ay;const v2=Va("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),He=p.forwardRef(({className:e,...t},n)=>d.jsx(ly,{ref:n,className:J(v2(),e),...t}));He.displayName=ly.displayName;const uy=p.forwardRef(({className:e,...t},n)=>d.jsx("textarea",{className:J("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));uy.displayName="Textarea";function cy(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tl="Switch",[g2,bP]=_r(tl),[y2,x2]=g2(tl),dy=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:l="on",onCheckedChange:u,form:c,...f}=e,[g,m]=p.useState(null),S=ue(t,x=>m(x)),h=p.useRef(!1),w=g?c||!!g.closest("form"):!0,[y,v]=Os({prop:o,defaultProp:s??!1,onChange:u,caller:tl});return d.jsxs(y2,{scope:n,checked:y,disabled:a,children:[d.jsx(ee.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":my(y),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:S,onClick:Y(e.onClick,x=>{v(b=>!b),w&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),w&&d.jsx(hy,{control:g,bubbles:!h.current,name:r,value:l,checked:y,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});dy.displayName=tl;var fy="SwitchThumb",py=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=x2(fy,n);return d.jsx(ee.span,{"data-state":my(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});py.displayName=fy;var w2="SwitchBubbleInput",hy=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=p.useRef(null),a=ue(i,s),l=cy(n),u=yg(t);return p.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&m){const S=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(S)}},[l,n,r]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});hy.displayName=w2;function my(e){return e?"checked":"unchecked"}var vy=dy,S2=py;const en=p.forwardRef(({className:e,...t},n)=>d.jsx(vy,{className:J("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:n,children:d.jsx(S2,{className:J("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));en.displayName=vy.displayName;function Op(e,[t,n]){return Math.min(n,Math.max(t,e))}var b2=p.createContext(void 0);function C2(e){const t=p.useContext(b2);return e||t||"ltr"}var Wl=0;function gy(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mp()),document.body.insertAdjacentElement("beforeend",e[1]??Mp()),Wl++,()=>{Wl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wl--}},[])}function Mp(){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 Hl="focusScope.autoFocusOnMount",Kl="focusScope.autoFocusOnUnmount",Ap={bubbles:!1,cancelable:!0},E2="FocusScope",kd=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=p.useState(null),u=At(o),c=At(s),f=p.useRef(null),g=ue(t,h=>l(h)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let h=function(x){if(m.paused||!a)return;const b=x.target;a.contains(b)?f.current=b:bn(f.current,{select:!0})},w=function(x){if(m.paused||!a)return;const b=x.relatedTarget;b!==null&&(a.contains(b)||bn(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&bn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const v=new MutationObserver(y);return a&&v.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),v.disconnect()}}},[r,a,m.paused]),p.useEffect(()=>{if(a){Lp.add(m);const h=document.activeElement;if(!a.contains(h)){const y=new CustomEvent(Hl,Ap);a.addEventListener(Hl,u),a.dispatchEvent(y),y.defaultPrevented||(N2(j2(yy(a)),{select:!0}),document.activeElement===h&&bn(a))}return()=>{a.removeEventListener(Hl,u),setTimeout(()=>{const y=new CustomEvent(Kl,Ap);a.addEventListener(Kl,c),a.dispatchEvent(y),y.defaultPrevented||bn(h??document.body,{select:!0}),a.removeEventListener(Kl,c),Lp.remove(m)},0)}}},[a,u,c,m]);const S=p.useCallback(h=>{if(!n&&!r||m.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(w&&y){const v=h.currentTarget,[x,b]=k2(v);x&&b?!h.shiftKey&&y===b?(h.preventDefault(),n&&bn(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&bn(b,{select:!0})):y===v&&h.preventDefault()}},[n,r,m.paused]);return d.jsx(ee.div,{tabIndex:-1,...i,ref:g,onKeyDown:S})});kd.displayName=E2;function N2(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(bn(r,{select:t}),document.activeElement!==n)return}function k2(e){const t=yy(e),n=Ip(t,e),r=Ip(t.reverse(),e);return[n,r]}function yy(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ip(e,t){for(const n of e)if(!P2(n,{upTo:t}))return n}function P2(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 T2(e){return e instanceof HTMLInputElement&&"select"in e}function bn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&T2(e)&&t&&e.select()}}var Lp=R2();function R2(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dp(e,t),e.unshift(t)},remove(t){var n;e=Dp(e,t),(n=e[0])==null||n.resume()}}}function Dp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function j2(e){return e.filter(t=>t.tagName!=="A")}var _2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fr=new WeakMap,bi=new WeakMap,Ci={},Ql=0,xy=function(e){return e&&(e.host||xy(e.parentNode))},O2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xy(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},M2=function(e,t,n,r){var o=O2(t,Array.isArray(e)?e:[e]);Ci[n]||(Ci[n]=new WeakMap);var s=Ci[n],i=[],a=new Set,l=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(g){if(a.has(g))c(g);else try{var m=g.getAttribute(r),S=m!==null&&m!=="false",h=(Fr.get(g)||0)+1,w=(s.get(g)||0)+1;Fr.set(g,h),s.set(g,w),i.push(g),h===1&&S&&bi.set(g,!0),w===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return c(t),a.clear(),Ql++,function(){i.forEach(function(f){var g=Fr.get(f)-1,m=s.get(f)-1;Fr.set(f,g),s.set(f,m),g||(bi.has(f)||f.removeAttribute(r),bi.delete(f)),m||f.removeAttribute(n)}),Ql--,Ql||(Fr=new WeakMap,Fr=new WeakMap,bi=new WeakMap,Ci={})}},wy=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),M2(r,o,n,"aria-hidden")):function(){return null}},Wt=function(){return Wt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Wt.apply(this,arguments)};function Sy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function A2(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Bi="right-scroll-bar-position",Ui="width-before-scroll-bar",I2="with-scroll-bars-hidden",L2="--removed-body-scroll-bar-size";function Gl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function D2(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var F2=typeof window<"u"?p.useLayoutEffect:p.useEffect,Fp=new WeakMap;function $2(e,t){var n=D2(null,function(r){return e.forEach(function(o){return Gl(o,r)})});return F2(function(){var r=Fp.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Gl(a,null)}),s.forEach(function(a){o.has(a)||Gl(a,i)})}Fp.set(n,e)},[e]),n}function z2(e){return e}function B2(e,t){t===void 0&&(t=z2);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var c=i;i=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){i.push(c),u()},filter:function(c){return i=i.filter(c),n}}}};return o}function U2(e){e===void 0&&(e={});var t=B2(null);return t.options=Wt({async:!0,ssr:!1},e),t}var by=function(e){var t=e.sideCar,n=Sy(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,Wt({},n))};by.isSideCarExport=!0;function V2(e,t){return e.useMedium(t),by}var Cy=U2(),Yl=function(){},nl=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Yl,onWheelCapture:Yl,onTouchMoveCapture:Yl}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,g=e.sideCar,m=e.noRelative,S=e.noIsolation,h=e.inert,w=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,x=e.gapMode,b=Sy(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,N=$2([n,t]),E=Wt(Wt({},b),o);return p.createElement(p.Fragment,null,c&&p.createElement(C,{sideCar:Cy,removeScrollBar:u,shards:f,noRelative:m,noIsolation:S,inert:h,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:x}),i?p.cloneElement(p.Children.only(a),Wt(Wt({},E),{ref:N})):p.createElement(v,Wt({},E,{className:l,ref:N}),a))});nl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nl.classNames={fullWidth:Ui,zeroRight:Bi};var W2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function H2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W2();return t&&e.setAttribute("nonce",t),e}function K2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Q2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var G2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=H2())&&(K2(t,n),Q2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y2=function(){var e=G2();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ey=function(){var e=Y2(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},q2={left:0,top:0,right:0,gap:0},ql=function(e){return parseInt(e||"",10)||0},X2=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ql(n),ql(r),ql(o)]},Z2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return q2;var t=X2(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J2=Ey(),co="data-scroll-locked",ek=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
199
|
+
.`.concat(I2,` {
|
|
200
|
+
overflow: hidden `).concat(r,`;
|
|
201
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
202
|
+
}
|
|
203
|
+
body[`).concat(co,`] {
|
|
204
|
+
overflow: hidden `).concat(r,`;
|
|
205
|
+
overscroll-behavior: contain;
|
|
206
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
207
|
+
padding-left: `.concat(o,`px;
|
|
208
|
+
padding-top: `).concat(s,`px;
|
|
209
|
+
padding-right: `).concat(i,`px;
|
|
210
|
+
margin-left:0;
|
|
211
|
+
margin-top:0;
|
|
212
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
213
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.`).concat(Bi,` {
|
|
217
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.`).concat(Ui,` {
|
|
221
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.`).concat(Bi," .").concat(Bi,` {
|
|
225
|
+
right: 0 `).concat(r,`;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.`).concat(Ui," .").concat(Ui,` {
|
|
229
|
+
margin-right: 0 `).concat(r,`;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
body[`).concat(co,`] {
|
|
233
|
+
`).concat(L2,": ").concat(a,`px;
|
|
234
|
+
}
|
|
235
|
+
`)},$p=function(){var e=parseInt(document.body.getAttribute(co)||"0",10);return isFinite(e)?e:0},tk=function(){p.useEffect(function(){return document.body.setAttribute(co,($p()+1).toString()),function(){var e=$p()-1;e<=0?document.body.removeAttribute(co):document.body.setAttribute(co,e.toString())}},[])},nk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;tk();var s=p.useMemo(function(){return Z2(o)},[o]);return p.createElement(J2,{styles:ek(s,!t,o,n?"":"!important")})},lc=!1;if(typeof window<"u")try{var Ei=Object.defineProperty({},"passive",{get:function(){return lc=!0,!0}});window.addEventListener("test",Ei,Ei),window.removeEventListener("test",Ei,Ei)}catch{lc=!1}var $r=lc?{passive:!1}:!1,rk=function(e){return e.tagName==="TEXTAREA"},Ny=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rk(e)&&n[t]==="visible")},ok=function(e){return Ny(e,"overflowY")},sk=function(e){return Ny(e,"overflowX")},zp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=ky(e,r);if(o){var s=Py(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ik=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ak=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ky=function(e,t){return e==="v"?ok(t):sk(t)},Py=function(e,t){return e==="v"?ik(t):ak(t)},lk=function(e,t){return e==="h"&&t==="rtl"?-1:1},uk=function(e,t,n,r,o){var s=lk(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),u=!1,c=i>0,f=0,g=0;do{if(!a)break;var m=Py(e,a),S=m[0],h=m[1],w=m[2],y=h-w-s*S;(S||y)&&ky(e,a)&&(f+=y,g+=S);var v=a.parentNode;a=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!o)||!c&&(Math.abs(g)<1||!o))&&(u=!0),u},Ni=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bp=function(e){return[e.deltaX,e.deltaY]},Up=function(e){return e&&"current"in e?e.current:e},ck=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dk=function(e){return`
|
|
236
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
237
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
238
|
+
`)},fk=0,zr=[];function pk(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(fk++)[0],s=p.useState(Ey)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=A2([e.lockRef.current],(e.shards||[]).map(Up),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=Ni(h),v=n.current,x="deltaX"in h?h.deltaX:v[0]-y[0],b="deltaY"in h?h.deltaY:v[1]-y[1],C,N=h.target,E=Math.abs(x)>Math.abs(b)?"h":"v";if("touches"in h&&E==="h"&&N.type==="range")return!1;var T=zp(E,N);if(!T)return!0;if(T?C=E:(C=E==="v"?"h":"v",T=zp(E,N)),!T)return!1;if(!r.current&&"changedTouches"in h&&(x||b)&&(r.current=C),!C)return!0;var O=r.current||C;return uk(O,w,h,O==="h"?x:b,!0)},[]),l=p.useCallback(function(h){var w=h;if(!(!zr.length||zr[zr.length-1]!==s)){var y="deltaY"in w?Bp(w):Ni(w),v=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&ck(C.delta,y)})[0];if(v&&v.should){w.cancelable&&w.preventDefault();return}if(!v){var x=(i.current.shards||[]).map(Up).filter(Boolean).filter(function(C){return C.contains(w.target)}),b=x.length>0?a(w,x[0]):!i.current.noIsolation;b&&w.cancelable&&w.preventDefault()}}},[]),u=p.useCallback(function(h,w,y,v){var x={name:h,delta:w,target:y,should:v,shadowParent:hk(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(b){return b!==x})},1)},[]),c=p.useCallback(function(h){n.current=Ni(h),r.current=void 0},[]),f=p.useCallback(function(h){u(h.type,Bp(h),h.target,a(h,e.lockRef.current))},[]),g=p.useCallback(function(h){u(h.type,Ni(h),h.target,a(h,e.lockRef.current))},[]);p.useEffect(function(){return zr.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",l,$r),document.addEventListener("touchmove",l,$r),document.addEventListener("touchstart",c,$r),function(){zr=zr.filter(function(h){return h!==s}),document.removeEventListener("wheel",l,$r),document.removeEventListener("touchmove",l,$r),document.removeEventListener("touchstart",c,$r)}},[]);var m=e.removeScrollBar,S=e.inert;return p.createElement(p.Fragment,null,S?p.createElement(s,{styles:dk(o)}):null,m?p.createElement(nk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const mk=V2(Cy,pk);var Pd=p.forwardRef(function(e,t){return p.createElement(nl,Wt({},e,{ref:t,sideCar:mk}))});Pd.classNames=nl.classNames;var vk=[" ","Enter","ArrowUp","ArrowDown"],gk=[" ","Enter"],Nr="Select",[rl,ol,yk]=hv(Nr),[zo,CP]=_r(Nr,[yk,Qa]),sl=Qa(),[xk,er]=zo(Nr),[wk,Sk]=zo(Nr),Ty=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:g,required:m,form:S}=e,h=sl(t),[w,y]=p.useState(null),[v,x]=p.useState(null),[b,C]=p.useState(!1),N=C2(u),[E,T]=Os({prop:r,defaultProp:o??!1,onChange:s,caller:Nr}),[O,_]=Os({prop:i,defaultProp:a,onChange:l,caller:Nr}),z=p.useRef(null),I=w?S||!!w.closest("form"):!0,[V,A]=p.useState(new Set),H=Array.from(V).map($=>$.props.value).join(";");return d.jsx(cE,{...h,children:d.jsxs(xk,{required:m,scope:t,trigger:w,onTriggerChange:y,valueNode:v,onValueNodeChange:x,valueNodeHasChildren:b,onValueNodeHasChildrenChange:C,contentId:ao(),value:O,onValueChange:_,open:E,onOpenChange:T,dir:N,triggerPointerDownPosRef:z,disabled:g,children:[d.jsx(rl.Provider,{scope:t,children:d.jsx(wk,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback($=>{A(U=>new Set(U).add($))},[]),onNativeOptionRemove:p.useCallback($=>{A(U=>{const k=new Set(U);return k.delete($),k})},[]),children:n})}),I?d.jsxs(Zy,{"aria-hidden":!0,required:m,tabIndex:-1,name:c,autoComplete:f,value:O,onChange:$=>_($.target.value),disabled:g,form:S,children:[O===void 0?d.jsx("option",{value:""}):null,Array.from(V)]},H):null]})})};Ty.displayName=Nr;var Ry="SelectTrigger",jy=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=sl(n),i=er(Ry,n),a=i.disabled||r,l=ue(t,i.onTriggerChange),u=ol(n),c=p.useRef("touch"),[f,g,m]=e0(h=>{const w=u().filter(x=>!x.disabled),y=w.find(x=>x.value===i.value),v=t0(w,h,y);v!==void 0&&i.onValueChange(v.value)}),S=h=>{a||(i.onOpenChange(!0),m()),h&&(i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return d.jsx(Tg,{asChild:!0,...s,children:d.jsx(ee.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Jy(i.value)?"":void 0,...o,ref:l,onClick:Y(o.onClick,h=>{h.currentTarget.focus(),c.current!=="mouse"&&S(h)}),onPointerDown:Y(o.onPointerDown,h=>{c.current=h.pointerType;const w=h.target;w.hasPointerCapture(h.pointerId)&&w.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(S(h),h.preventDefault())}),onKeyDown:Y(o.onKeyDown,h=>{const w=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&g(h.key),!(w&&h.key===" ")&&vk.includes(h.key)&&(S(),h.preventDefault())})})})});jy.displayName=Ry;var _y="SelectValue",Oy=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=er(_y,n),{onValueNodeHasChildrenChange:u}=l,c=s!==void 0,f=ue(t,l.onValueNodeChange);return Ie(()=>{u(c)},[u,c]),d.jsx(ee.span,{...a,ref:f,style:{pointerEvents:"none"},children:Jy(l.value)?d.jsx(d.Fragment,{children:i}):s})});Oy.displayName=_y;var bk="SelectIcon",My=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return d.jsx(ee.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});My.displayName=bk;var Ck="SelectPortal",Ay=e=>d.jsx(za,{asChild:!0,...e});Ay.displayName=Ck;var kr="SelectContent",Iy=p.forwardRef((e,t)=>{const n=er(kr,e.__scopeSelect),[r,o]=p.useState();if(Ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?jr.createPortal(d.jsx(Ly,{scope:e.__scopeSelect,children:d.jsx(rl.Slot,{scope:e.__scopeSelect,children:d.jsx("div",{children:e.children})})}),s):null}return d.jsx(Dy,{...e,ref:t})});Iy.displayName=kr;var Et=10,[Ly,tr]=zo(kr),Ek="SelectContentImpl",Nk=Po("SelectContent.RemoveScroll"),Dy=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w,...y}=e,v=er(kr,n),[x,b]=p.useState(null),[C,N]=p.useState(null),E=ue(t,D=>b(D)),[T,O]=p.useState(null),[_,z]=p.useState(null),I=ol(n),[V,A]=p.useState(!1),H=p.useRef(!1);p.useEffect(()=>{if(x)return wy(x)},[x]),gy();const $=p.useCallback(D=>{const[ie,...Se]=I().map(re=>re.ref.current),[se]=Se.slice(-1),te=document.activeElement;for(const re of D)if(re===te||(re==null||re.scrollIntoView({block:"nearest"}),re===ie&&C&&(C.scrollTop=0),re===se&&C&&(C.scrollTop=C.scrollHeight),re==null||re.focus(),document.activeElement!==te))return},[I,C]),U=p.useCallback(()=>$([T,x]),[$,T,x]);p.useEffect(()=>{V&&U()},[V,U]);const{onOpenChange:k,triggerPointerDownPosRef:R}=v;p.useEffect(()=>{if(x){let D={x:0,y:0};const ie=se=>{var te,re;D={x:Math.abs(Math.round(se.pageX)-(((te=R.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(se.pageY)-(((re=R.current)==null?void 0:re.y)??0))}},Se=se=>{D.x<=10&&D.y<=10?se.preventDefault():x.contains(se.target)||k(!1),document.removeEventListener("pointermove",ie),R.current=null};return R.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",Se,{capture:!0})}}},[x,k,R]),p.useEffect(()=>{const D=()=>k(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[k]);const[L,W]=e0(D=>{const ie=I().filter(te=>!te.disabled),Se=ie.find(te=>te.ref.current===document.activeElement),se=t0(ie,D,Se);se&&setTimeout(()=>se.ref.current.focus())}),B=p.useCallback((D,ie,Se)=>{const se=!H.current&&!Se;(v.value!==void 0&&v.value===ie||se)&&(O(D),se&&(H.current=!0))},[v.value]),q=p.useCallback(()=>x==null?void 0:x.focus(),[x]),K=p.useCallback((D,ie,Se)=>{const se=!H.current&&!Se;(v.value!==void 0&&v.value===ie||se)&&z(D)},[v.value]),de=r==="popper"?uc:Fy,we=de===uc?{side:a,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:g,collisionPadding:m,sticky:S,hideWhenDetached:h,avoidCollisions:w}:{};return d.jsx(Ly,{scope:n,content:x,viewport:C,onViewportChange:N,itemRefCallback:B,selectedItem:T,onItemLeave:q,itemTextRefCallback:K,focusSelectedItem:U,selectedItemText:_,position:r,isPositioned:V,searchRef:L,children:d.jsx(Pd,{as:Nk,allowPinchZoom:!0,children:d.jsx(kd,{asChild:!0,trapped:v.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:Y(o,D=>{var ie;(ie=v.trigger)==null||ie.focus({preventScroll:!0}),D.preventDefault()}),children:d.jsx(Qs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:d.jsx(de,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:D=>D.preventDefault(),...y,...we,onPlaced:()=>A(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Y(y.onKeyDown,D=>{const ie=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!ie&&D.key.length===1&&W(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let se=I().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(D.key)&&(se=se.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const te=D.target,re=se.indexOf(te);se=se.slice(re+1)}setTimeout(()=>$(se)),D.preventDefault()}})})})})})})});Dy.displayName=Ek;var kk="SelectItemAlignedPosition",Fy=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=er(kr,n),i=tr(kr,n),[a,l]=p.useState(null),[u,c]=p.useState(null),f=ue(t,E=>c(E)),g=ol(n),m=p.useRef(!1),S=p.useRef(!0),{viewport:h,selectedItem:w,selectedItemText:y,focusSelectedItem:v}=i,x=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&u&&h&&w&&y){const E=s.trigger.getBoundingClientRect(),T=u.getBoundingClientRect(),O=s.valueNode.getBoundingClientRect(),_=y.getBoundingClientRect();if(s.dir!=="rtl"){const te=_.left-T.left,re=O.left-te,Le=E.left-re,ct=E.width+Le,nr=Math.max(ct,T.width),hn=window.innerWidth-Et,rr=Op(re,[Et,Math.max(Et,hn-nr)]);a.style.minWidth=ct+"px",a.style.left=rr+"px"}else{const te=T.right-_.right,re=window.innerWidth-O.right-te,Le=window.innerWidth-E.right-re,ct=E.width+Le,nr=Math.max(ct,T.width),hn=window.innerWidth-Et,rr=Op(re,[Et,Math.max(Et,hn-nr)]);a.style.minWidth=ct+"px",a.style.right=rr+"px"}const z=g(),I=window.innerHeight-Et*2,V=h.scrollHeight,A=window.getComputedStyle(u),H=parseInt(A.borderTopWidth,10),$=parseInt(A.paddingTop,10),U=parseInt(A.borderBottomWidth,10),k=parseInt(A.paddingBottom,10),R=H+$+V+k+U,L=Math.min(w.offsetHeight*5,R),W=window.getComputedStyle(h),B=parseInt(W.paddingTop,10),q=parseInt(W.paddingBottom,10),K=E.top+E.height/2-Et,de=I-K,we=w.offsetHeight/2,D=w.offsetTop+we,ie=H+$+D,Se=R-ie;if(ie<=K){const te=z.length>0&&w===z[z.length-1].ref.current;a.style.bottom="0px";const re=u.clientHeight-h.offsetTop-h.offsetHeight,Le=Math.max(de,we+(te?q:0)+re+U),ct=ie+Le;a.style.height=ct+"px"}else{const te=z.length>0&&w===z[0].ref.current;a.style.top="0px";const Le=Math.max(K,H+h.offsetTop+(te?B:0)+we)+Se;a.style.height=Le+"px",h.scrollTop=ie-K+h.offsetTop}a.style.margin=`${Et}px 0`,a.style.minHeight=L+"px",a.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[g,s.trigger,s.valueNode,a,u,h,w,y,s.dir,r]);Ie(()=>x(),[x]);const[b,C]=p.useState();Ie(()=>{u&&C(window.getComputedStyle(u).zIndex)},[u]);const N=p.useCallback(E=>{E&&S.current===!0&&(x(),v==null||v(),S.current=!1)},[x,v]);return d.jsx(Tk,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:N,children:d.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:d.jsx(ee.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Fy.displayName=kk;var Pk="SelectPopperPosition",uc=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Et,...s}=e,i=sl(n);return d.jsx(Rg,{...i,...s,ref:t,align:r,collisionPadding:o,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)"}})});uc.displayName=Pk;var[Tk,Td]=zo(kr,{}),cc="SelectViewport",$y=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=tr(cc,n),i=Td(cc,n),a=ue(t,s.onViewportChange),l=p.useRef(0);return d.jsxs(d.Fragment,{children:[d.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:r}),d.jsx(rl.Slot,{scope:n,children:d.jsx(ee.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Y(o.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&f){const m=Math.abs(l.current-c.scrollTop);if(m>0){const S=window.innerHeight-Et*2,h=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),y=Math.max(h,w);if(y<S){const v=y+m,x=Math.min(S,v),b=v-x;f.style.height=x+"px",f.style.bottom==="0px"&&(c.scrollTop=b>0?b:0,f.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});$y.displayName=cc;var zy="SelectGroup",[Rk,jk]=zo(zy),_k=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ao();return d.jsx(Rk,{scope:n,id:o,children:d.jsx(ee.div,{role:"group","aria-labelledby":o,...r,ref:t})})});_k.displayName=zy;var By="SelectLabel",Uy=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=jk(By,n);return d.jsx(ee.div,{id:o.id,...r,ref:t})});Uy.displayName=By;var ba="SelectItem",[Ok,Vy]=zo(ba),Wy=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=er(ba,n),l=tr(ba,n),u=a.value===r,[c,f]=p.useState(s??""),[g,m]=p.useState(!1),S=ue(t,v=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,v,r,o)}),h=ao(),w=p.useRef("touch"),y=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")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 d.jsx(Ok,{scope:n,value:r,disabled:o,textId:h,isSelected:u,onItemTextChange:p.useCallback(v=>{f(x=>x||((v==null?void 0:v.textContent)??"").trim())},[]),children:d.jsx(rl.ItemSlot,{scope:n,value:r,disabled:o,textValue:c,children:d.jsx(ee.div,{role:"option","aria-labelledby":h,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:S,onFocus:Y(i.onFocus,()=>m(!0)),onBlur:Y(i.onBlur,()=>m(!1)),onClick:Y(i.onClick,()=>{w.current!=="mouse"&&y()}),onPointerUp:Y(i.onPointerUp,()=>{w.current==="mouse"&&y()}),onPointerDown:Y(i.onPointerDown,v=>{w.current=v.pointerType}),onPointerMove:Y(i.onPointerMove,v=>{var x;w.current=v.pointerType,o?(x=l.onItemLeave)==null||x.call(l):w.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(i.onPointerLeave,v=>{var x;v.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:Y(i.onKeyDown,v=>{var b;((b=l.searchRef)==null?void 0:b.current)!==""&&v.key===" "||(gk.includes(v.key)&&y(),v.key===" "&&v.preventDefault())})})})})});Wy.displayName=ba;var rs="SelectItemText",Hy=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=er(rs,n),a=tr(rs,n),l=Vy(rs,n),u=Sk(rs,n),[c,f]=p.useState(null),g=ue(t,y=>f(y),l.onItemTextChange,y=>{var v;return(v=a.itemTextRefCallback)==null?void 0:v.call(a,y,l.value,l.disabled)}),m=c==null?void 0:c.textContent,S=p.useMemo(()=>d.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:h,onNativeOptionRemove:w}=u;return Ie(()=>(h(S),()=>w(S)),[h,w,S]),d.jsxs(d.Fragment,{children:[d.jsx(ee.span,{id:l.textId,...s,ref:g}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?jr.createPortal(s.children,i.valueNode):null]})});Hy.displayName=rs;var Ky="SelectItemIndicator",Qy=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Vy(Ky,n).isSelected?d.jsx(ee.span,{"aria-hidden":!0,...r,ref:t}):null});Qy.displayName=Ky;var dc="SelectScrollUpButton",Gy=p.forwardRef((e,t)=>{const n=tr(dc,e.__scopeSelect),r=Td(dc,e.__scopeSelect),[o,s]=p.useState(!1),i=ue(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?d.jsx(qy,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Gy.displayName=dc;var fc="SelectScrollDownButton",Yy=p.forwardRef((e,t)=>{const n=tr(fc,e.__scopeSelect),r=Td(fc,e.__scopeSelect),[o,s]=p.useState(!1),i=ue(t,r.onScrollButtonChange);return Ie(()=>{if(n.viewport&&n.isPositioned){let a=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)<u;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?d.jsx(qy,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Yy.displayName=fc;var qy=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=tr("SelectScrollButton",n),i=p.useRef(null),a=ol(n),l=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),Ie(()=>{var c;const u=a().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[a]),d.jsx(ee.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var u;(u=s.onItemLeave)==null||u.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})})}),Mk="SelectSeparator",Xy=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return d.jsx(ee.div,{"aria-hidden":!0,...r,ref:t})});Xy.displayName=Mk;var pc="SelectArrow",Ak=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=sl(n),s=er(pc,n),i=tr(pc,n);return s.open&&i.position==="popper"?d.jsx(jg,{...o,...r,ref:t}):null});Ak.displayName=pc;var Ik="SelectBubbleInput",Zy=p.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=p.useRef(null),s=ue(r,o),i=cy(t);return p.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&c){const f=new Event("change",{bubbles:!0});c.call(a,t),a.dispatchEvent(f)}},[i,t]),d.jsx(ee.select,{...n,style:{...xv,...n.style},ref:s,defaultValue:t})});Zy.displayName=Ik;function Jy(e){return e===""||e===void 0}function e0(e){const t=At(e),n=p.useRef(""),r=p.useRef(0),o=p.useCallback(i=>{const a=n.current+i;t(a),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function t0(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Lk(e,Math.max(s,0));o.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Lk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Dk=Ty,n0=jy,Fk=Oy,$k=My,zk=Ay,r0=Iy,Bk=$y,o0=Uy,s0=Wy,Uk=Hy,Vk=Qy,i0=Gy,a0=Yy,l0=Xy;const Wk=Dk,Hk=Fk,u0=p.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(n0,{ref:r,className:J("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,d.jsx($k,{asChild:!0,children:d.jsx(Vv,{className:"h-4 w-4 opacity-50"})})]}));u0.displayName=n0.displayName;const c0=p.forwardRef(({className:e,...t},n)=>d.jsx(i0,{ref:n,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(wS,{className:"h-4 w-4"})}));c0.displayName=i0.displayName;const d0=p.forwardRef(({className:e,...t},n)=>d.jsx(a0,{ref:n,className:J("flex cursor-default items-center justify-center py-1",e),...t,children:d.jsx(Vv,{className:"h-4 w-4"})}));d0.displayName=a0.displayName;const f0=p.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>d.jsx(zk,{children:d.jsxs(r0,{ref:o,className:J("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[d.jsx(c0,{}),d.jsx(Bk,{className:J("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),d.jsx(d0,{})]})}));f0.displayName=r0.displayName;const Kk=p.forwardRef(({className:e,...t},n)=>d.jsx(o0,{ref:n,className:J("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Kk.displayName=o0.displayName;const p0=p.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(s0,{ref:r,className:J("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Vk,{children:d.jsx(Uv,{className:"h-4 w-4"})})}),d.jsx(Uk,{children:t})]}));p0.displayName=s0.displayName;const Qk=p.forwardRef(({className:e,...t},n)=>d.jsx(l0,{ref:n,className:J("-mx-1 my-1 h-px bg-muted",e),...t}));Qk.displayName=l0.displayName;var il="Dialog",[h0,EP]=_r(il),[Gk,Dt]=h0(il),m0=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=p.useRef(null),l=p.useRef(null),[u,c]=Os({prop:r,defaultProp:o??!1,onChange:s,caller:il});return d.jsx(Gk,{scope:t,triggerRef:a,contentRef:l,contentId:ao(),titleId:ao(),descriptionId:ao(),open:u,onOpenChange:c,onOpenToggle:p.useCallback(()=>c(f=>!f),[c]),modal:i,children:n})};m0.displayName=il;var v0="DialogTrigger",Yk=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Dt(v0,n),s=ue(t,o.triggerRef);return d.jsx(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_d(o.open),...r,ref:s,onClick:Y(e.onClick,o.onOpenToggle)})});Yk.displayName=v0;var Rd="DialogPortal",[qk,g0]=h0(Rd,{forceMount:void 0}),y0=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Dt(Rd,t);return d.jsx(qk,{scope:t,forceMount:n,children:p.Children.map(r,i=>d.jsx(Io,{present:n||s.open,children:d.jsx(za,{asChild:!0,container:o,children:i})}))})};y0.displayName=Rd;var Ca="DialogOverlay",x0=p.forwardRef((e,t)=>{const n=g0(Ca,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Dt(Ca,e.__scopeDialog);return s.modal?d.jsx(Io,{present:r||s.open,children:d.jsx(Zk,{...o,ref:t})}):null});x0.displayName=Ca;var Xk=Po("DialogOverlay.RemoveScroll"),Zk=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Dt(Ca,n);return d.jsx(Pd,{as:Xk,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(ee.div,{"data-state":_d(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Pr="DialogContent",w0=p.forwardRef((e,t)=>{const n=g0(Pr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Dt(Pr,e.__scopeDialog);return d.jsx(Io,{present:r||s.open,children:s.modal?d.jsx(Jk,{...o,ref:t}):d.jsx(eP,{...o,ref:t})})});w0.displayName=Pr;var Jk=p.forwardRef((e,t)=>{const n=Dt(Pr,e.__scopeDialog),r=p.useRef(null),o=ue(t,n.contentRef,r);return p.useEffect(()=>{const s=r.current;if(s)return wy(s)},[]),d.jsx(S0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:Y(e.onFocusOutside,s=>s.preventDefault())})}),eP=p.forwardRef((e,t)=>{const n=Dt(Pr,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return d.jsx(S0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((u=n.triggerRef.current)==null?void 0:u.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),S0=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=Dt(Pr,n),l=p.useRef(null),u=ue(t,l);return gy(),d.jsxs(d.Fragment,{children:[d.jsx(kd,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Qs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":_d(a.open),...i,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(tP,{titleId:a.titleId}),d.jsx(rP,{contentRef:l,descriptionId:a.descriptionId})]})]})}),jd="DialogTitle",b0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Dt(jd,n);return d.jsx(ee.h2,{id:o.titleId,...r,ref:t})});b0.displayName=jd;var C0="DialogDescription",E0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Dt(C0,n);return d.jsx(ee.p,{id:o.descriptionId,...r,ref:t})});E0.displayName=C0;var N0="DialogClose",k0=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Dt(N0,n);return d.jsx(ee.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>o.onOpenChange(!1))})});k0.displayName=N0;function _d(e){return e?"open":"closed"}var P0="DialogTitleWarning",[NP,T0]=E1(P0,{contentName:Pr,titleName:jd,docsSlug:"dialog"}),tP=({titleId:e})=>{const t=T0(P0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
239
|
+
|
|
240
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
241
|
+
|
|
242
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nP="DialogDescriptionWarning",rP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${T0(nP).contentName}}.`;return p.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},oP=m0,sP=y0,R0=x0,j0=w0,_0=b0,O0=E0,iP=k0;const aP=oP,lP=sP,M0=p.forwardRef(({className:e,...t},n)=>d.jsx(R0,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));M0.displayName=R0.displayName;const A0=p.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(lP,{children:[d.jsx(M0,{}),d.jsxs(j0,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,d.jsxs(iP,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[d.jsx(fd,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));A0.displayName=j0.displayName;const I0=({className:e,...t})=>d.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});I0.displayName="DialogHeader";const L0=({className:e,...t})=>d.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});L0.displayName="DialogFooter";const D0=p.forwardRef(({className:e,...t},n)=>d.jsx(_0,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));D0.displayName=_0.displayName;const uP=p.forwardRef(({className:e,...t},n)=>d.jsx(O0,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));uP.displayName=O0.displayName;function cP({model:e,initialData:t,open:n,onClose:r,onSave:o}){const[s,i]=p.useState(t||e.fields.reduce((c,f)=>(c[f.name]=f.default??(f.type==="boolean"?!1:""),c),{})),a=(c,f)=>{i(g=>({...g,[c]:f}))},l=c=>{c.preventDefault(),o(s),r()};p.useEffect(()=>{if(!n||!e)return;if(t){i(t);return}const c={};for(const f of e.fields)f.type!=="primary"&&(f.default!==void 0?c[f.name]=f.default:f.type==="boolean"?c[f.name]=!1:c[f.name]="");i(c)},[e,t,n]);const u=c=>{var g;const f=s[c.name];switch(c.type){case"boolean":return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:c.label}),d.jsx(en,{id:c.name,checked:f,onCheckedChange:m=>a(c.name,m)})]});case"text":return d.jsxs("div",{className:"space-y-2",children:[d.jsxs(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:[c.label,c.required&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx(uy,{id:c.name,value:f,onChange:m=>a(c.name,m.target.value),className:"bg-secondary border-border min-h-[100px]",required:c.required})]});case"select":return d.jsxs("div",{className:"space-y-2",children:[d.jsxs(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:[c.label,c.required&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsxs(Wk,{value:f,onValueChange:m=>a(c.name,m),children:[d.jsx(u0,{className:"bg-secondary border-border",children:d.jsx(Hk,{placeholder:`Select ${c.label.toLowerCase()}`})}),d.jsx(f0,{children:(g=c.options)==null?void 0:g.map(m=>d.jsx(p0,{value:m,children:m},m))})]})]});case"number":return d.jsxs("div",{className:"space-y-2",children:[d.jsxs(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:[c.label,c.required&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx(uo,{id:c.name,type:"number",value:f,onChange:m=>a(c.name,Number(m.target.value)),className:"bg-secondary border-border font-mono",required:c.required})]});case"datetime":return d.jsxs("div",{className:"space-y-2",children:[d.jsxs(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:[c.label,c.required&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx(uo,{id:c.name,type:"date",value:f,onChange:m=>a(c.name,m.target.value),className:"bg-secondary border-border font-mono",required:c.required})]});default:return d.jsxs("div",{className:"space-y-2",children:[d.jsxs(He,{htmlFor:c.name,className:"text-sm text-muted-foreground",children:[c.label,c.required&&d.jsx("span",{className:"text-destructive ml-1",children:"*"})]}),d.jsx(uo,{id:c.name,type:c.type==="email"?"email":"text",value:f,onChange:m=>a(c.name,m.target.value),className:"bg-secondary border-border",required:c.required,maxLength:c.maxLength})]})}};return d.jsx(aP,{open:n,onOpenChange:r,children:d.jsxs(A0,{className:"bg-card border-border max-w-lg",children:[d.jsx(I0,{children:d.jsxs(D0,{className:"flex items-center gap-2",children:[t?"Edit":"Add"," ",e.displayName]})}),d.jsxs("form",{onSubmit:l,className:"space-y-4",children:[e.fields.filter(c=>{var f;return((f=c.options)==null?void 0:f.autoNowAdd)!==!0&&!c.readonly}).filter(c=>!c.primaryKey).map(c=>d.jsx("div",{children:u(c)},c.name)),d.jsxs(L0,{className:"gap-2",children:[d.jsxs(Wn,{type:"button",variant:"outline",onClick:r,className:"gap-2",children:[d.jsx(fd,{className:"w-4 h-4"}),"Cancel"]}),d.jsxs(Wn,{type:"submit",className:"gap-2",children:[d.jsx(kS,{className:"w-4 h-4"}),"Save"]})]})]})]})})}function dP(){const{modelName:e}=RN(),[t,n]=p.useState(!1),[r,o]=p.useState(),[s,i]=p.useState([]),[a,l]=p.useState([]),u=p.useMemo(()=>e?s.find(S=>S.name.toLowerCase()===e.toLowerCase())??null:null,[s,e]);if(p.useEffect(()=>{fetch("/admin/schema").then(S=>S.json()).then(i).catch(S=>{console.error("Failed to load admin schema",S)})},[]),p.useEffect(()=>{e&&fetch(`/admin/${e}`).then(S=>S.json()).then(l).catch(console.error)},[e]),!u)return d.jsx($s,{models:s,children:d.jsxs("div",{className:"p-8 flex flex-col items-center justify-center min-h-[60vh]",children:[d.jsx(To,{className:"w-16 h-16 text-muted-foreground mb-4"}),d.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Model Not Found"}),d.jsxs("p",{className:"text-muted-foreground",children:['The model "',e,`" doesn't exist.`]})]})});const c=()=>{o(void 0),n(!0)},f=S=>{o(S),n(!0)},g=S=>{l(h=>h.filter(w=>w.id!==S.id)),fetch(`/admin/${e}/${S.id}`,{method:"DELETE"}),hs({title:"Record deleted",description:`${u.displayName.slice(0,-1)} #${S.id} has been removed.`})},m=S=>{if(delete S.createdAt,r)l(h=>h.map(w=>w.id===r.id?S:w)),fetch(`/admin/${e}/${r.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...S})}),hs({title:"Record updated",description:`${u.displayName} #${S.id} has been updated.`});else{const h=Math.max(...a.map(y=>y.id),0)+1,w={...S,id:h};l(y=>[w,...y]),fetch(`/admin/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...w})}),hs({title:"Record created",description:`New ${u.displayName.toLowerCase()} has been added.`})}};return d.jsx($s,{models:s,children:d.jsxs("div",{className:"p-8",children:[d.jsxs("div",{className:"mb-8",children:[d.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-2",children:[d.jsx("span",{children:"Models"}),d.jsx("span",{children:"/"}),d.jsx("span",{className:"text-foreground",children:u.displayName})]}),d.jsx("h1",{className:"text-3xl font-semibold",children:u.displayName}),d.jsxs("p",{className:"text-muted-foreground mt-1",children:["Manage ",u.displayName.toLowerCase()," records"]})]}),d.jsxs("div",{className:"admin-card mb-6 p-4",children:[d.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:"Model Schema"}),d.jsx("div",{className:"flex flex-wrap gap-2",children:u.fields.map(S=>d.jsxs("div",{className:"flex items-center gap-2 bg-secondary rounded-md px-3 py-1.5",children:[d.jsx("span",{className:"font-mono text-sm",children:S.name}),d.jsx("span",{className:`model-badge field-type-${S.type==="string"||S.type==="text"||S.type==="email"?"string":S.type==="number"?"number":S.type==="boolean"?"boolean":"date"}`,children:S.type}),S.required&&d.jsx("span",{className:"text-destructive text-xs",children:"*"})]},S.name))})]}),d.jsx(h2,{model:u,data:a,onAdd:c,onEdit:f,onDelete:g}),d.jsx(cP,{model:u,initialData:r,open:t,onClose:()=>n(!1),onSave:m},e)]})})}function fP(){const[e,t]=p.useState(!1),[n,r]=p.useState([]);p.useEffect(()=>{fetch("/admin/schema").then(i=>i.json()).then(r).catch(i=>{console.error("Failed to load admin schema",i)})},[]);const o=`// src/lib/models.ts - Define your models here
|
|
243
|
+
|
|
244
|
+
import type { FieldType, ModelDefinition } from './models';
|
|
245
|
+
|
|
246
|
+
export const models: ModelDefinition[] = [
|
|
247
|
+
${n.map(i=>` {
|
|
248
|
+
name: '${i.name}',
|
|
249
|
+
displayName: '${i.displayName}',
|
|
250
|
+
icon: '${i.icon}',
|
|
251
|
+
fields: [
|
|
252
|
+
${i.fields.map(a=>` { name: '${a.name}', type: '${a.type}', ${a.primaryKey?"primaryKey: true":"primaryKey: false"}, label: '${a.label}'${a.required?", required: true":""}${a.options?`, options: [${a.options.map(l=>`'${l}'`).join(", ")}]`:""}${a.default!==void 0?`, default: ${typeof a.default=="string"?`'${a.default}'`:a.default}`:""} },`).join(`
|
|
253
|
+
`)}
|
|
254
|
+
],
|
|
255
|
+
},`).join(`
|
|
256
|
+
`)}
|
|
257
|
+
];`,s=async()=>{await navigator.clipboard.writeText(o),t(!0),hs({title:"Copied to clipboard",description:"Schema code has been copied."}),setTimeout(()=>t(!1),2e3)};return d.jsx($s,{models:n,children:d.jsxs("div",{className:"p-8",children:[d.jsxs("div",{className:"mb-8",children:[d.jsxs("h1",{className:"text-3xl font-semibold flex items-center gap-3",children:[d.jsx(Wv,{className:"w-8 h-8 text-primary"}),"Schema Editor"]}),d.jsx("p",{className:"text-muted-foreground mt-1",children:"View and edit your model definitions"})]}),d.jsxs("div",{className:"admin-card mb-6 bg-gradient-to-r from-info/10 to-transparent border-info/20",children:[d.jsx("h3",{className:"font-semibold text-info mb-2",children:"How it works"}),d.jsxs("p",{className:"text-sm text-muted-foreground",children:["Models are defined in ",d.jsx("code",{className:"font-mono text-primary bg-primary/10 px-1.5 py-0.5 rounded",children:"src/lib/models.ts"}),". Each model automatically generates:"]}),d.jsxs("ul",{className:"text-sm text-muted-foreground mt-2 space-y-1 list-disc list-inside",children:[d.jsx("li",{children:"CRUD forms with proper field types"}),d.jsx("li",{children:"Data tables with sorting and filtering"}),d.jsx("li",{children:"Sidebar navigation entries"}),d.jsx("li",{children:"Validation based on field definitions"})]})]}),d.jsxs("div",{className:"admin-card p-0 overflow-hidden",children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-secondary/50",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"flex gap-1.5",children:[d.jsx("span",{className:"w-3 h-3 rounded-full bg-destructive/60"}),d.jsx("span",{className:"w-3 h-3 rounded-full bg-warning/60"}),d.jsx("span",{className:"w-3 h-3 rounded-full bg-success/60"})]}),d.jsx("span",{className:"text-sm text-muted-foreground font-mono ml-2",children:"models.ts"})]}),d.jsxs(Wn,{variant:"ghost",size:"sm",onClick:s,className:"gap-2 text-muted-foreground hover:text-foreground",children:[e?d.jsx(Uv,{className:"w-4 h-4"}):d.jsx(SS,{className:"w-4 h-4"}),e?"Copied":"Copy"]})]}),d.jsx("pre",{className:"p-4 overflow-x-auto text-sm font-mono leading-relaxed scrollbar-thin",children:d.jsx("code",{className:"text-muted-foreground",children:o.split(`
|
|
258
|
+
`).map((i,a)=>d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"w-8 text-right pr-4 text-muted-foreground/50 select-none",children:a+1}),d.jsx("span",{className:"flex-1",children:i.replace(/(\/\/.*)/g,"<comment>$1</comment>").replace(/('.*?')/g,"<string>$1</string>").replace(/\b(true|false)\b/g,"<boolean>$1</boolean>").replace(/\b(const|export|type)\b/g,"<keyword>$1</keyword>").split(/<(comment|string|boolean|keyword)>(.*?)<\/\1>/g).map((l,u)=>{var c;if(u%3===1)return null;if(u%3===2){const f=(c=i.match(/<(comment|string|boolean|keyword)>/))==null?void 0:c[1],g=f==="comment"?"text-muted-foreground/70 italic":f==="string"?"text-success":f==="boolean"?"text-info":f==="keyword"?"text-primary":"";return d.jsx("span",{className:g,children:l},u)}return d.jsx("span",{children:l},u)})})]},a))})})]}),d.jsxs("div",{className:"mt-8",children:[d.jsx("h2",{className:"text-xl font-semibold mb-4",children:"Field Types"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[{type:"string",desc:"Text input field",example:"username, title"},{type:"number",desc:"Numeric input",example:"price, quantity"},{type:"boolean",desc:"Toggle switch",example:"is_active, published"},{type:"date",desc:"Date picker",example:"created_at, due_date"},{type:"text",desc:"Multiline textarea",example:"description, content"},{type:"email",desc:"Email input with validation",example:"email, contact"},{type:"select",desc:"Dropdown with options",example:"status, role"}].map(i=>d.jsxs("div",{className:"admin-card",children:[d.jsx("div",{className:"flex items-center gap-2 mb-2",children:d.jsx("span",{className:`model-badge field-type-${i.type==="string"||i.type==="text"||i.type==="email"?"string":i.type==="number"?"number":i.type==="boolean"?"boolean":"date"}`,children:i.type})}),d.jsx("p",{className:"text-sm text-muted-foreground",children:i.desc}),d.jsxs("p",{className:"text-xs text-muted-foreground/70 mt-1 font-mono",children:["e.g. ",i.example]})]},i.type))})]})]})})}function pP(){const[e,t]=p.useState([]);return p.useEffect(()=>{fetch("/admin/schema").then(n=>n.json()).then(t).catch(n=>{console.error("Failed to load admin schema",n)})},[]),d.jsx($s,{models:e,children:d.jsxs("div",{className:"p-8 max-w-3xl",children:[d.jsxs("div",{className:"mb-8",children:[d.jsxs("h1",{className:"text-3xl font-semibold flex items-center gap-3",children:[d.jsx(Qv,{className:"w-8 h-8 text-primary"}),"Settings"]}),d.jsx("p",{className:"text-muted-foreground mt-1",children:"Configure your admin panel preferences"})]}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"admin-card",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"p-2 bg-primary/10 rounded-lg",children:d.jsx(To,{className:"w-5 h-5 text-primary"})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold",children:"Database Connection"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Configure your database settings"})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(He,{htmlFor:"db-url",children:"Database URL"}),d.jsx(uo,{id:"db-url",type:"password",placeholder:"postgresql://...",className:"bg-secondary border-border font-mono",defaultValue:"••••••••••••••••"})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Auto-sync Schema"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Automatically sync model changes"})]}),d.jsx(en,{defaultChecked:!0})]})]})]}),d.jsxs("div",{className:"admin-card",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"p-2 bg-info/10 rounded-lg",children:d.jsx(xS,{className:"w-5 h-5 text-info"})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold",children:"Notifications"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage notification preferences"})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Email Notifications"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Receive updates via email"})]}),d.jsx(en,{})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Record Changes"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Notify on CRUD operations"})]}),d.jsx(en,{defaultChecked:!0})]})]})]}),d.jsxs("div",{className:"admin-card",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"p-2 bg-warning/10 rounded-lg",children:d.jsx(TS,{className:"w-5 h-5 text-warning"})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold",children:"Security"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Security and access settings"})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Two-Factor Auth"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Add extra security layer"})]}),d.jsx(en,{})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Audit Logging"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Track all admin actions"})]}),d.jsx(en,{defaultChecked:!0})]})]})]}),d.jsxs("div",{className:"admin-card",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"p-2 bg-success/10 rounded-lg",children:d.jsx(CS,{className:"w-5 h-5 text-success"})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold",children:"Appearance"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Customize the look and feel"})]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Compact Mode"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Use smaller spacing"})]}),d.jsx(en,{})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(He,{children:"Show Record Count"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Display counts in sidebar"})]}),d.jsx(en,{defaultChecked:!0})]})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsx(Wn,{className:"px-6",children:"Save Changes"})})]})]})})}const hP=()=>{const e=Or();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),d.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),d.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),d.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},mP=new ZE,vP=()=>d.jsx(eN,{client:mP,children:d.jsxs(TE,{children:[d.jsx(db,{}),d.jsx(Vb,{}),d.jsx(ZN,{children:d.jsxs(WN,{children:[d.jsx(Br,{path:"/",element:d.jsx(u2,{})}),d.jsx(Br,{path:"/models/:modelName",element:d.jsx(dP,{})}),d.jsx(Br,{path:"/schema",element:d.jsx(fP,{})}),d.jsx(Br,{path:"/settings",element:d.jsx(pP,{})}),d.jsx(Br,{path:"*",element:d.jsx(hP,{})})]})})]})});dv(document.getElementById("root")).render(d.jsx(vP,{}));
|