@ra3orblade/swarm 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -16
- package/dist/swarm-hook.js +39 -0
- package/dist/swarm.js +39 -1
- package/dist/swarmd.js +1652 -117
- package/package.json +1 -1
- package/web/app.js +702 -66
- package/web/icons.js +2 -2
- package/web/index.html +101 -28
- package/web/menus.js +7 -7
- package/web/release-notes.js +1 -1
- package/web/table.js +1 -1
- package/web/viz.js +76 -2
package/web/menus.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
(()=>{var e_=Object.create;var{getPrototypeOf:t_,defineProperty:ri,getOwnPropertyNames:Xd,getOwnPropertyDescriptor:a_}=Object,jd=Object.prototype.hasOwnProperty;function Yd(e){return this[e]}var o_,n_,O=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var n=t?o_??=new WeakMap:n_??=new WeakMap,s=n.get(e);if(s)return s}a=e!=null?e_(t_(e)):{};let i=t||!e||!e.__esModule?ri(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let l of Xd(e))if(!jd.call(i,l))ri(i,l,{get:Yd.bind(e,l),enumerable:!0})}if(o)n.set(e,i);return i},r_=(e)=>{var t=(Zd??=new WeakMap).get(e),a;if(t)return t;if(t=ri({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var o of Xd(e))if(!jd.call(t,o))ri(t,o,{get:Yd.bind(e,o),enumerable:!(a=a_(e,o))||a.enumerable})}return Zd.set(e,t),t},Zd,ia=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var r=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var rp=ia(function(z){var Bc=Symbol.for("react.transitional.element"),s_=Symbol.for("react.portal"),i_=Symbol.for("react.fragment"),l_=Symbol.for("react.strict_mode"),c_=Symbol.for("react.profiler"),u_=Symbol.for("react.consumer"),f_=Symbol.for("react.context"),m_=Symbol.for("react.forward_ref"),d_=Symbol.for("react.suspense"),p_=Symbol.for("react.memo"),$d=Symbol.for("react.lazy"),h_=Symbol.for("react.activity"),Qd=Symbol.iterator;function g_(e){if(e===null||typeof e!=="object")return null;return e=Qd&&e[Qd]||e["@@iterator"],typeof e==="function"?e:null}var ep={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tp=Object.assign,ap={};function wn(e,t,a){this.props=e,this.context=t,this.refs=ap,this.updater=a||ep}wn.prototype.isReactComponent={};wn.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function op(){}op.prototype=wn.prototype;function Nc(e,t,a){this.props=e,this.context=t,this.refs=ap,this.updater=a||ep}var Oc=Nc.prototype=new op;Oc.constructor=Nc;tp(Oc,wn.prototype);Oc.isPureReactComponent=!0;var Wd=Array.isArray;function Rc(){}var le={H:null,A:null,T:null,S:null},np=Object.prototype.hasOwnProperty;function Hc(e,t,a){var o=a.ref;return{$$typeof:Bc,type:e,key:t,ref:o!==void 0?o:null,props:a}}function I_(e,t){return Hc(e.type,t,e.props)}function kc(e){return typeof e==="object"&&e!==null&&e.$$typeof===Bc}function S_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Kd=/\/+/g;function Lc(e,t){return typeof e==="object"&&e!==null&&e.key!=null?S_(""+e.key):t.toString(36)}function v_(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Rc,Rc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cn(e,t,a,o,n){var s=typeof e;if(s==="undefined"||s==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Bc:case s_:i=!0;break;case $d:return i=e._init,Cn(i(e._payload),t,a,o,n)}}if(i)return n=n(e),i=o===""?"."+Lc(e,0):o,Wd(n)?(a="",i!=null&&(a=i.replace(Kd,"$&/")+"/"),Cn(n,t,a,"",function(u){return u})):n!=null&&(kc(n)&&(n=I_(n,a+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(Kd,"$&/")+"/")+i)),t.push(n)),1;i=0;var l=o===""?".":o+":";if(Wd(e))for(var c=0;c<e.length;c++)o=e[c],s=l+Lc(o,c),i+=Cn(o,t,a,s,n);else if(c=g_(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,s=l+Lc(o,c++),i+=Cn(o,t,a,s,n);else if(s==="object"){if(typeof e.then==="function")return Cn(v_(e),t,a,o,n);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 ui(e,t,a){if(e==null)return e;var o=[],n=0;return Cn(e,o,"","",function(s){return t.call(a,s,n++)}),o}function y_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Jd=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},b_={map:ui,forEach:function(e,t,a){ui(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return ui(e,function(){t++}),t},toArray:function(e){return ui(e,function(t){return t})||[]},only:function(e){if(!kc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Activity=h_;z.Children=b_;z.Component=wn;z.Fragment=i_;z.Profiler=c_;z.PureComponent=Nc;z.StrictMode=l_;z.Suspense=d_;z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le;z.__COMPILER_RUNTIME={__proto__:null,c:function(e){return le.H.useMemoCache(e)}};z.cache=function(e){return function(){return e.apply(null,arguments)}};z.cacheSignal=function(){return null};z.cloneElement=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=tp({},e.props),n=e.key;if(t!=null)for(s in t.key!==void 0&&(n=""+t.key),t)!np.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(o[s]=t[s]);var s=arguments.length-2;if(s===1)o.children=a;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];o.children=i}return Hc(e.type,n,o)};z.createContext=function(e){return e={$$typeof:f_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:u_,_context:e},e};z.createElement=function(e,t,a){var o,n={},s=null;if(t!=null)for(o in t.key!==void 0&&(s=""+t.key),t)np.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(n[o]=t[o]);var i=arguments.length-2;if(i===1)n.children=a;else if(1<i){for(var l=Array(i),c=0;c<i;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)n[o]===void 0&&(n[o]=i[o]);return Hc(e,s,n)};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:m_,render:e}};z.isValidElement=kc;z.lazy=function(e){return{$$typeof:$d,_payload:{_status:-1,_result:e},_init:y_}};z.memo=function(e,t){return{$$typeof:p_,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=le.T,a={};le.T=a;try{var o=e(),n=le.S;n!==null&&n(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Rc,Jd)}catch(s){Jd(s)}finally{t!==null&&a.types!==null&&(t.types=a.types),le.T=t}};z.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()};z.use=function(e){return le.H.use(e)};z.useActionState=function(e,t,a){return le.H.useActionState(e,t,a)};z.useCallback=function(e,t){return le.H.useCallback(e,t)};z.useContext=function(e){return le.H.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e,t){return le.H.useDeferredValue(e,t)};z.useEffect=function(e,t){return le.H.useEffect(e,t)};z.useEffectEvent=function(e){return le.H.useEffectEvent(e)};z.useId=function(){return le.H.useId()};z.useImperativeHandle=function(e,t,a){return le.H.useImperativeHandle(e,t,a)};z.useInsertionEffect=function(e,t){return le.H.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return le.H.useLayoutEffect(e,t)};z.useMemo=function(e,t){return le.H.useMemo(e,t)};z.useOptimistic=function(e,t){return le.H.useOptimistic(e,t)};z.useReducer=function(e,t,a){return le.H.useReducer(e,t,a)};z.useRef=function(e){return le.H.useRef(e)};z.useState=function(e){return le.H.useState(e)};z.useSyncExternalStore=function(e,t,a){return le.H.useSyncExternalStore(e,t,a)};z.useTransition=function(){return le.H.useTransition()};z.version="19.2.8"});var U=ia(function(rX,sp){sp.exports=rp()});var jO=ia(function(mt){var T_=U();function XO(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function Wa(){}var ft={d:{f:Wa,r:function(){throw Error(XO(522))},D:Wa,C:Wa,L:Wa,m:Wa,X:Wa,S:Wa,M:Wa},p:0,findDOMNode:null},x_=Symbol.for("react.portal");function M_(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x_,key:o==null?null:""+o,children:e,containerInfo:t,implementation:a}}var Or=T_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ti(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ft;mt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(XO(299));return M_(e,t,null,a)};mt.flushSync=function(e){var t=Or.T,a=ft.p;try{if(Or.T=null,ft.p=2,e)return e()}finally{Or.T=t,ft.p=a,ft.d.f()}};mt.preconnect=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,ft.d.C(e,t))};mt.prefetchDNS=function(e){typeof e==="string"&&ft.d.D(e)};mt.preinit=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var a=t.as,o=Ti(a,t.crossOrigin),n=typeof t.integrity==="string"?t.integrity:void 0,s=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;a==="style"?ft.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:o,integrity:n,fetchPriority:s}):a==="script"&&ft.d.X(e,{crossOrigin:o,integrity:n,fetchPriority:s,nonce:typeof t.nonce==="string"?t.nonce:void 0})}};mt.preinitModule=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Ti(t.as,t.crossOrigin);ft.d.M(e,{crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0})}}else t==null&&ft.d.M(e)};mt.preload=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var a=t.as,o=Ti(a,t.crossOrigin);ft.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}};mt.preloadModule=function(e,t){if(typeof e==="string")if(t){var a=Ti(t.as,t.crossOrigin);ft.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0})}else ft.d.m(e)};mt.requestFormReset=function(e){ft.d.r(e)};mt.unstable_batchedUpdates=function(e,t){return e(t)};mt.useFormState=function(e,t,a){return Or.H.useFormState(e,t,a)};mt.useFormStatus=function(){return Or.H.useHostTransitionStatus()};mt.version="19.2.8"});var An=ia(function(Ej,QO){function YO(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YO)}catch(e){console.error(e)}}YO(),QO.exports=jO()});var KO=ia(function(xi){var D_=Symbol.for("react.transitional.element"),E_=Symbol.for("react.fragment");function WO(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var n in t)n!=="key"&&(a[n]=t[n])}else a=t;return t=a.ref,{$$typeof:D_,type:e,key:o,ref:t!==void 0?t:null,props:a}}xi.Fragment=E_;xi.jsx=WO;xi.jsxs=WO});var Mi=ia(function(Rj,JO){JO.exports=KO()});var Ez=ia(function(he){function af(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,n=e[o];if(0<Ji(n,t))e[o]=t,e[a]=n,a=o;else break e}}function fa(e){return e.length===0?null:e[0]}function al(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,n=e.length,s=n>>>1;o<s;){var i=2*(o+1)-1,l=e[i],c=i+1,u=e[c];if(0>Ji(l,a))c<n&&0>Ji(u,l)?(e[o]=u,e[c]=a,o=c):(e[o]=l,e[i]=a,o=i);else if(c<n&&0>Ji(u,a))e[o]=u,e[c]=a,o=c;else break e}}return t}function Ji(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}he.unstable_now=void 0;if(typeof performance==="object"&&typeof performance.now==="function")of=performance,he.unstable_now=function(){return of.now()};else $i=Date,nf=$i.now(),he.unstable_now=function(){return $i.now()-nf};var of,$i,nf,Aa=[],ao=[],PG=1,Ut=null,ct=3,rf=!1,$r=!1,es=!1,lf=!1,Az=typeof setTimeout==="function"?setTimeout:null,Tz=typeof clearTimeout==="function"?clearTimeout:null,wz=typeof setImmediate<"u"?setImmediate:null;function el(e){for(var t=fa(ao);t!==null;){if(t.callback===null)al(ao);else if(t.startTime<=e)al(ao),t.sortIndex=t.expirationTime,af(Aa,t);else break;t=fa(ao)}}function cf(e){if(es=!1,el(e),!$r)if(fa(Aa)!==null)$r=!0,kn||(kn=!0,Hn());else{var t=fa(ao);t!==null&&uf(cf,t.startTime-e)}}var kn=!1,ts=-1,xz=5,Mz=-1;function Dz(){return lf?!0:he.unstable_now()-Mz<xz?!1:!0}function tf(){if(lf=!1,kn){var e=he.unstable_now();Mz=e;var t=!0;try{e:{$r=!1,es&&(es=!1,Tz(ts),ts=-1),rf=!0;var a=ct;try{t:{el(e);for(Ut=fa(Aa);Ut!==null&&!(Ut.expirationTime>e&&Dz());){var o=Ut.callback;if(typeof o==="function"){Ut.callback=null,ct=Ut.priorityLevel;var n=o(Ut.expirationTime<=e);if(e=he.unstable_now(),typeof n==="function"){Ut.callback=n,el(e),t=!0;break t}Ut===fa(Aa)&&al(Aa),el(e)}else al(Aa);Ut=fa(Aa)}if(Ut!==null)t=!0;else{var s=fa(ao);s!==null&&uf(cf,s.startTime-e),t=!1}}break e}finally{Ut=null,ct=a,rf=!1}t=void 0}}finally{t?Hn():kn=!1}}}var Hn;if(typeof wz==="function")Hn=function(){wz(tf)};else if(typeof MessageChannel<"u")tl=new MessageChannel,sf=tl.port2,tl.port1.onmessage=tf,Hn=function(){sf.postMessage(null)};else Hn=function(){Az(tf,0)};var tl,sf;function uf(e,t){ts=Az(function(){e(he.unstable_now())},t)}he.unstable_IdlePriority=5;he.unstable_ImmediatePriority=1;he.unstable_LowPriority=4;he.unstable_NormalPriority=3;he.unstable_Profiling=null;he.unstable_UserBlockingPriority=2;he.unstable_cancelCallback=function(e){e.callback=null};he.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xz=0<e?Math.floor(1000/e):5};he.unstable_getCurrentPriorityLevel=function(){return ct};he.unstable_next=function(e){switch(ct){case 1:case 2:case 3:var t=3;break;default:t=ct}var a=ct;ct=t;try{return e()}finally{ct=a}};he.unstable_requestPaint=function(){lf=!0};he.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ct;ct=e;try{return t()}finally{ct=a}};he.unstable_scheduleCallback=function(e,t,a){var o=he.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5000}return n=a+n,e={id:PG++,callback:t,priorityLevel:e,startTime:a,expirationTime:n,sortIndex:-1},a>o?(e.sortIndex=a,af(ao,e),fa(Aa)===null&&e===fa(ao)&&(es?(Tz(ts),ts=-1):es=!0,uf(cf,a-o))):(e.sortIndex=n,af(Aa,e),$r||rf||($r=!0,kn||(kn=!0,Hn()))),e};he.unstable_shouldYield=Dz;he.unstable_wrapCallback=function(e){var t=ct;return function(){var a=ct;ct=t;try{return e.apply(this,arguments)}finally{ct=a}}}});var Rz=ia(function(_Y,Lz){Lz.exports=Ez()});var P7=ia(function(Ac){var Ze=Rz(),tU=U(),GG=An();function M(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function aU(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qs(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function oU(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 nU(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bz(e){if(qs(e)!==e)throw Error(M(188))}function VG(e){var t=e.alternate;if(!t){if(t=qs(e),t===null)throw Error(M(188));return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return Bz(n),e;if(s===o)return Bz(n),t;s=s.sibling}throw Error(M(188))}if(a.return!==o.return)a=n,o=s;else{for(var i=!1,l=n.child;l;){if(l===a){i=!0,a=n,o=s;break}if(l===o){i=!0,o=n,a=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===a){i=!0,a=s,o=n;break}if(l===o){i=!0,o=s,a=n;break}l=l.sibling}if(!i)throw Error(M(189))}}if(a.alternate!==o)throw Error(M(190))}if(a.tag!==3)throw Error(M(188));return a.stateNode.current===a?e:t}function rU(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rU(e),t!==null)return t;e=e.sibling}return null}var me=Object.assign,qG=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),ls=Symbol.for("react.portal"),Gn=Symbol.for("react.fragment"),sU=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),iU=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),_m=Symbol.for("react.forward_ref"),qf=Symbol.for("react.suspense"),Zf=Symbol.for("react.suspense_list"),Pm=Symbol.for("react.memo"),oo=Symbol.for("react.lazy"),Xf=Symbol.for("react.activity"),ZG=Symbol.for("react.memo_cache_sentinel"),Nz=Symbol.iterator;function as(e){if(e===null||typeof e!=="object")return null;return e=Nz&&e[Nz]||e["@@iterator"],typeof e==="function"?e:null}var XG=Symbol.for("react.client.reference");function jf(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===XG?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Gn:return"Fragment";case Vf:return"Profiler";case sU:return"StrictMode";case qf:return"Suspense";case Zf:return"SuspenseList";case Xf:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case ls:return"Portal";case Ba:return e.displayName||"Context";case iU:return(e._context.displayName||"Context")+".Consumer";case _m:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pm:return t=e.displayName||null,t!==null?t:jf(e.type)||"Memo";case oo:t=e._payload,e=e._init;try{return jf(e(t))}catch(a){}}return null}var cs=Array.isArray,H=tU.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=GG.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jo={pending:!1,data:null,method:null,action:null},Yf=[],Vn=-1;function ga(e){return{current:e}}function Je(e){0>Vn||(e.current=Yf[Vn],Yf[Vn]=null,Vn--)}function se(e,t){Vn++,Yf[Vn]=e.current,e.current=t}var ha=ga(null),Ls=ga(null),ho=ga(null),Nl=ga(null);function Ol(e,t){switch(se(ho,t),se(Ls,e),se(ha,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?U5(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=U5(t),e=M7(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Je(ha),se(ha,e)}function ir(){Je(ha),Je(Ls),Je(ho)}function Qf(e){e.memoizedState!==null&&se(Nl,e);var t=ha.current,a=M7(t,e.type);t!==a&&(se(Ls,e),se(ha,a))}function Hl(e){Ls.current===e&&(Je(ha),Je(Ls)),Nl.current===e&&(Je(Nl),Ps._currentValue=Jo)}var ff,Oz;function jo(e){if(ff===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ff=t&&t[1]||"",Oz=-1<a.stack.indexOf(`
|
|
1
|
+
(()=>{var t_=Object.create;var{getPrototypeOf:a_,defineProperty:si,getOwnPropertyNames:Yd,getOwnPropertyDescriptor:o_}=Object,Qd=Object.prototype.hasOwnProperty;function Wd(e){return this[e]}var n_,r_,O=(e,t,a)=>{var o=e!=null&&typeof e==="object";if(o){var n=t?n_??=new WeakMap:r_??=new WeakMap,s=n.get(e);if(s)return s}a=e!=null?t_(a_(e)):{};let i=t||!e||!e.__esModule?si(a,"default",{value:e,enumerable:!0}):a;if(e&&typeof e==="object"||typeof e==="function"){for(let l of Yd(e))if(!Qd.call(i,l))si(i,l,{get:Wd.bind(e,l),enumerable:!0})}if(o)n.set(e,i);return i},s_=(e)=>{var t=(jd??=new WeakMap).get(e),a;if(t)return t;if(t=si({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var o of Yd(e))if(!Qd.call(t,o))si(t,o,{get:Wd.bind(e,o),enumerable:!(a=o_(e,o))||a.enumerable})}return jd.set(e,t),t},jd,ia=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var r=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ip=ia(function(z){var Bc=Symbol.for("react.transitional.element"),i_=Symbol.for("react.portal"),l_=Symbol.for("react.fragment"),c_=Symbol.for("react.strict_mode"),u_=Symbol.for("react.profiler"),f_=Symbol.for("react.consumer"),m_=Symbol.for("react.context"),d_=Symbol.for("react.forward_ref"),p_=Symbol.for("react.suspense"),h_=Symbol.for("react.memo"),tp=Symbol.for("react.lazy"),g_=Symbol.for("react.activity"),Kd=Symbol.iterator;function I_(e){if(e===null||typeof e!=="object")return null;return e=Kd&&e[Kd]||e["@@iterator"],typeof e==="function"?e:null}var ap={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},op=Object.assign,np={};function wn(e,t,a){this.props=e,this.context=t,this.refs=np,this.updater=a||ap}wn.prototype.isReactComponent={};wn.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rp(){}rp.prototype=wn.prototype;function Nc(e,t,a){this.props=e,this.context=t,this.refs=np,this.updater=a||ap}var Oc=Nc.prototype=new rp;Oc.constructor=Nc;op(Oc,wn.prototype);Oc.isPureReactComponent=!0;var Jd=Array.isArray;function Rc(){}var le={H:null,A:null,T:null,S:null},sp=Object.prototype.hasOwnProperty;function Hc(e,t,a){var o=a.ref;return{$$typeof:Bc,type:e,key:t,ref:o!==void 0?o:null,props:a}}function S_(e,t){return Hc(e.type,t,e.props)}function kc(e){return typeof e==="object"&&e!==null&&e.$$typeof===Bc}function v_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var $d=/\/+/g;function Lc(e,t){return typeof e==="object"&&e!==null&&e.key!=null?v_(""+e.key):t.toString(36)}function y_(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(Rc,Rc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cn(e,t,a,o,n){var s=typeof e;if(s==="undefined"||s==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(s){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Bc:case i_:i=!0;break;case tp:return i=e._init,Cn(i(e._payload),t,a,o,n)}}if(i)return n=n(e),i=o===""?"."+Lc(e,0):o,Jd(n)?(a="",i!=null&&(a=i.replace($d,"$&/")+"/"),Cn(n,t,a,"",function(u){return u})):n!=null&&(kc(n)&&(n=S_(n,a+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace($d,"$&/")+"/")+i)),t.push(n)),1;i=0;var l=o===""?".":o+":";if(Jd(e))for(var c=0;c<e.length;c++)o=e[c],s=l+Lc(o,c),i+=Cn(o,t,a,s,n);else if(c=I_(e),typeof c==="function")for(e=c.call(e),c=0;!(o=e.next()).done;)o=o.value,s=l+Lc(o,c++),i+=Cn(o,t,a,s,n);else if(s==="object"){if(typeof e.then==="function")return Cn(y_(e),t,a,o,n);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 fi(e,t,a){if(e==null)return e;var o=[],n=0;return Cn(e,o,"","",function(s){return t.call(a,s,n++)}),o}function b_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){if(e._status===0||e._status===-1)e._status=1,e._result=a},function(a){if(e._status===0||e._status===-1)e._status=2,e._result=a}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ep=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},C_={map:fi,forEach:function(e,t,a){fi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return fi(e,function(){t++}),t},toArray:function(e){return fi(e,function(t){return t})||[]},only:function(e){if(!kc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Activity=g_;z.Children=C_;z.Component=wn;z.Fragment=l_;z.Profiler=u_;z.PureComponent=Nc;z.StrictMode=c_;z.Suspense=p_;z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le;z.__COMPILER_RUNTIME={__proto__:null,c:function(e){return le.H.useMemoCache(e)}};z.cache=function(e){return function(){return e.apply(null,arguments)}};z.cacheSignal=function(){return null};z.cloneElement=function(e,t,a){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var o=op({},e.props),n=e.key;if(t!=null)for(s in t.key!==void 0&&(n=""+t.key),t)!sp.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(o[s]=t[s]);var s=arguments.length-2;if(s===1)o.children=a;else if(1<s){for(var i=Array(s),l=0;l<s;l++)i[l]=arguments[l+2];o.children=i}return Hc(e.type,n,o)};z.createContext=function(e){return e={$$typeof:m_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:f_,_context:e},e};z.createElement=function(e,t,a){var o,n={},s=null;if(t!=null)for(o in t.key!==void 0&&(s=""+t.key),t)sp.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(n[o]=t[o]);var i=arguments.length-2;if(i===1)n.children=a;else if(1<i){for(var l=Array(i),c=0;c<i;c++)l[c]=arguments[c+2];n.children=l}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)n[o]===void 0&&(n[o]=i[o]);return Hc(e,s,n)};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:d_,render:e}};z.isValidElement=kc;z.lazy=function(e){return{$$typeof:tp,_payload:{_status:-1,_result:e},_init:b_}};z.memo=function(e,t){return{$$typeof:h_,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=le.T,a={};le.T=a;try{var o=e(),n=le.S;n!==null&&n(a,o),typeof o==="object"&&o!==null&&typeof o.then==="function"&&o.then(Rc,ep)}catch(s){ep(s)}finally{t!==null&&a.types!==null&&(t.types=a.types),le.T=t}};z.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()};z.use=function(e){return le.H.use(e)};z.useActionState=function(e,t,a){return le.H.useActionState(e,t,a)};z.useCallback=function(e,t){return le.H.useCallback(e,t)};z.useContext=function(e){return le.H.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e,t){return le.H.useDeferredValue(e,t)};z.useEffect=function(e,t){return le.H.useEffect(e,t)};z.useEffectEvent=function(e){return le.H.useEffectEvent(e)};z.useId=function(){return le.H.useId()};z.useImperativeHandle=function(e,t,a){return le.H.useImperativeHandle(e,t,a)};z.useInsertionEffect=function(e,t){return le.H.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return le.H.useLayoutEffect(e,t)};z.useMemo=function(e,t){return le.H.useMemo(e,t)};z.useOptimistic=function(e,t){return le.H.useOptimistic(e,t)};z.useReducer=function(e,t,a){return le.H.useReducer(e,t,a)};z.useRef=function(e){return le.H.useRef(e)};z.useState=function(e){return le.H.useState(e)};z.useSyncExternalStore=function(e,t,a){return le.H.useSyncExternalStore(e,t,a)};z.useTransition=function(){return le.H.useTransition()};z.version="19.2.8"});var U=ia(function(sX,lp){lp.exports=ip()});var QO=ia(function(mt){var x_=U();function YO(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function Wa(){}var ft={d:{f:Wa,r:function(){throw Error(YO(522))},D:Wa,C:Wa,L:Wa,m:Wa,X:Wa,S:Wa,M:Wa},p:0,findDOMNode:null},M_=Symbol.for("react.portal");function D_(e,t,a){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M_,key:o==null?null:""+o,children:e,containerInfo:t,implementation:a}}var Or=x_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function xi(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ft;mt.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(YO(299));return D_(e,t,null,a)};mt.flushSync=function(e){var t=Or.T,a=ft.p;try{if(Or.T=null,ft.p=2,e)return e()}finally{Or.T=t,ft.p=a,ft.d.f()}};mt.preconnect=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,ft.d.C(e,t))};mt.prefetchDNS=function(e){typeof e==="string"&&ft.d.D(e)};mt.preinit=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var a=t.as,o=xi(a,t.crossOrigin),n=typeof t.integrity==="string"?t.integrity:void 0,s=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;a==="style"?ft.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:o,integrity:n,fetchPriority:s}):a==="script"&&ft.d.X(e,{crossOrigin:o,integrity:n,fetchPriority:s,nonce:typeof t.nonce==="string"?t.nonce:void 0})}};mt.preinitModule=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var a=xi(t.as,t.crossOrigin);ft.d.M(e,{crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0})}}else t==null&&ft.d.M(e)};mt.preload=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var a=t.as,o=xi(a,t.crossOrigin);ft.d.L(e,a,{crossOrigin:o,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}};mt.preloadModule=function(e,t){if(typeof e==="string")if(t){var a=xi(t.as,t.crossOrigin);ft.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity==="string"?t.integrity:void 0})}else ft.d.m(e)};mt.requestFormReset=function(e){ft.d.r(e)};mt.unstable_batchedUpdates=function(e,t){return e(t)};mt.useFormState=function(e,t,a){return Or.H.useFormState(e,t,a)};mt.useFormStatus=function(){return Or.H.useHostTransitionStatus()};mt.version="19.2.8"});var An=ia(function(Lj,KO){function WO(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WO)}catch(e){console.error(e)}}WO(),KO.exports=QO()});var $O=ia(function(Mi){var E_=Symbol.for("react.transitional.element"),L_=Symbol.for("react.fragment");function JO(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var n in t)n!=="key"&&(a[n]=t[n])}else a=t;return t=a.ref,{$$typeof:E_,type:e,key:o,ref:t!==void 0?t:null,props:a}}Mi.Fragment=L_;Mi.jsx=JO;Mi.jsxs=JO});var Di=ia(function(Bj,eH){eH.exports=$O()});var Lz=ia(function(he){function nf(e,t){var a=e.length;e.push(t);e:for(;0<a;){var o=a-1>>>1,n=e[o];if(0<$i(n,t))e[o]=t,e[a]=n,a=o;else break e}}function fa(e){return e.length===0?null:e[0]}function ol(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var o=0,n=e.length,s=n>>>1;o<s;){var i=2*(o+1)-1,l=e[i],c=i+1,u=e[c];if(0>$i(l,a))c<n&&0>$i(u,l)?(e[o]=u,e[c]=a,o=c):(e[o]=l,e[i]=a,o=i);else if(c<n&&0>$i(u,a))e[o]=u,e[c]=a,o=c;else break e}}return t}function $i(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}he.unstable_now=void 0;if(typeof performance==="object"&&typeof performance.now==="function")rf=performance,he.unstable_now=function(){return rf.now()};else el=Date,sf=el.now(),he.unstable_now=function(){return el.now()-sf};var rf,el,sf,Aa=[],ao=[],GG=1,Ut=null,ct=3,lf=!1,$r=!1,es=!1,uf=!1,Tz=typeof setTimeout==="function"?setTimeout:null,xz=typeof clearTimeout==="function"?clearTimeout:null,Az=typeof setImmediate<"u"?setImmediate:null;function tl(e){for(var t=fa(ao);t!==null;){if(t.callback===null)ol(ao);else if(t.startTime<=e)ol(ao),t.sortIndex=t.expirationTime,nf(Aa,t);else break;t=fa(ao)}}function ff(e){if(es=!1,tl(e),!$r)if(fa(Aa)!==null)$r=!0,kn||(kn=!0,Hn());else{var t=fa(ao);t!==null&&mf(ff,t.startTime-e)}}var kn=!1,ts=-1,Mz=5,Dz=-1;function Ez(){return uf?!0:he.unstable_now()-Dz<Mz?!1:!0}function of(){if(uf=!1,kn){var e=he.unstable_now();Dz=e;var t=!0;try{e:{$r=!1,es&&(es=!1,xz(ts),ts=-1),lf=!0;var a=ct;try{t:{tl(e);for(Ut=fa(Aa);Ut!==null&&!(Ut.expirationTime>e&&Ez());){var o=Ut.callback;if(typeof o==="function"){Ut.callback=null,ct=Ut.priorityLevel;var n=o(Ut.expirationTime<=e);if(e=he.unstable_now(),typeof n==="function"){Ut.callback=n,tl(e),t=!0;break t}Ut===fa(Aa)&&ol(Aa),tl(e)}else ol(Aa);Ut=fa(Aa)}if(Ut!==null)t=!0;else{var s=fa(ao);s!==null&&mf(ff,s.startTime-e),t=!1}}break e}finally{Ut=null,ct=a,lf=!1}t=void 0}}finally{t?Hn():kn=!1}}}var Hn;if(typeof Az==="function")Hn=function(){Az(of)};else if(typeof MessageChannel<"u")al=new MessageChannel,cf=al.port2,al.port1.onmessage=of,Hn=function(){cf.postMessage(null)};else Hn=function(){Tz(of,0)};var al,cf;function mf(e,t){ts=Tz(function(){e(he.unstable_now())},t)}he.unstable_IdlePriority=5;he.unstable_ImmediatePriority=1;he.unstable_LowPriority=4;he.unstable_NormalPriority=3;he.unstable_Profiling=null;he.unstable_UserBlockingPriority=2;he.unstable_cancelCallback=function(e){e.callback=null};he.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Mz=0<e?Math.floor(1000/e):5};he.unstable_getCurrentPriorityLevel=function(){return ct};he.unstable_next=function(e){switch(ct){case 1:case 2:case 3:var t=3;break;default:t=ct}var a=ct;ct=t;try{return e()}finally{ct=a}};he.unstable_requestPaint=function(){uf=!0};he.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ct;ct=e;try{return t()}finally{ct=a}};he.unstable_scheduleCallback=function(e,t,a){var o=he.unstable_now();switch(typeof a==="object"&&a!==null?(a=a.delay,a=typeof a==="number"&&0<a?o+a:o):a=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5000}return n=a+n,e={id:GG++,callback:t,priorityLevel:e,startTime:a,expirationTime:n,sortIndex:-1},a>o?(e.sortIndex=a,nf(ao,e),fa(Aa)===null&&e===fa(ao)&&(es?(xz(ts),ts=-1):es=!0,mf(ff,a-o))):(e.sortIndex=n,nf(Aa,e),$r||lf||($r=!0,kn||(kn=!0,Hn()))),e};he.unstable_shouldYield=Ez;he.unstable_wrapCallback=function(e){var t=ct;return function(){var a=ct;ct=t;try{return e.apply(this,arguments)}finally{ct=a}}}});var Bz=ia(function(_Y,Rz){Rz.exports=Lz()});var G7=ia(function(Tc){var Ze=Bz(),aU=U(),VG=An();function M(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function oU(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qs(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function nU(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 rU(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nz(e){if(qs(e)!==e)throw Error(M(188))}function qG(e){var t=e.alternate;if(!t){if(t=qs(e),t===null)throw Error(M(188));return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var s=n.alternate;if(s===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===a)return Nz(n),e;if(s===o)return Nz(n),t;s=s.sibling}throw Error(M(188))}if(a.return!==o.return)a=n,o=s;else{for(var i=!1,l=n.child;l;){if(l===a){i=!0,a=n,o=s;break}if(l===o){i=!0,o=n,a=s;break}l=l.sibling}if(!i){for(l=s.child;l;){if(l===a){i=!0,a=s,o=n;break}if(l===o){i=!0,o=s,a=n;break}l=l.sibling}if(!i)throw Error(M(189))}}if(a.alternate!==o)throw Error(M(190))}if(a.tag!==3)throw Error(M(188));return a.stateNode.current===a?e:t}function sU(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=sU(e),t!==null)return t;e=e.sibling}return null}var me=Object.assign,ZG=Symbol.for("react.element"),nl=Symbol.for("react.transitional.element"),ls=Symbol.for("react.portal"),Gn=Symbol.for("react.fragment"),iU=Symbol.for("react.strict_mode"),Zf=Symbol.for("react.profiler"),lU=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),Gm=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),jf=Symbol.for("react.suspense_list"),Vm=Symbol.for("react.memo"),oo=Symbol.for("react.lazy"),Yf=Symbol.for("react.activity"),XG=Symbol.for("react.memo_cache_sentinel"),Oz=Symbol.iterator;function as(e){if(e===null||typeof e!=="object")return null;return e=Oz&&e[Oz]||e["@@iterator"],typeof e==="function"?e:null}var jG=Symbol.for("react.client.reference");function Qf(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===jG?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Gn:return"Fragment";case Zf:return"Profiler";case iU:return"StrictMode";case Xf:return"Suspense";case jf:return"SuspenseList";case Yf:return"Activity"}if(typeof e==="object")switch(e.$$typeof){case ls:return"Portal";case Ba:return e.displayName||"Context";case lU:return(e._context.displayName||"Context")+".Consumer";case Gm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vm:return t=e.displayName||null,t!==null?t:Qf(e.type)||"Memo";case oo:t=e._payload,e=e._init;try{return Qf(e(t))}catch(a){}}return null}var cs=Array.isArray,H=aU.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=VG.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jo={pending:!1,data:null,method:null,action:null},Wf=[],Vn=-1;function ga(e){return{current:e}}function Je(e){0>Vn||(e.current=Wf[Vn],Wf[Vn]=null,Vn--)}function se(e,t){Vn++,Wf[Vn]=e.current,e.current=t}var ha=ga(null),Ls=ga(null),ho=ga(null),Ol=ga(null);function Hl(e,t){switch(se(ho,t),se(Ls,e),se(ha,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)?(e=e.namespaceURI)?F5(e):0:0;break;default:if(e=t.tagName,t=t.namespaceURI)t=F5(t),e=D7(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Je(ha),se(ha,e)}function ir(){Je(ha),Je(Ls),Je(ho)}function Kf(e){e.memoizedState!==null&&se(Ol,e);var t=ha.current,a=D7(t,e.type);t!==a&&(se(Ls,e),se(ha,a))}function kl(e){Ls.current===e&&(Je(ha),Je(Ls)),Ol.current===e&&(Je(Ol),Ps._currentValue=Jo)}var df,Hz;function jo(e){if(df===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);df=t&&t[1]||"",Hz=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+df+e+Hz}var pf=!1;function hf(e,t){if(!e||pf)return"";pf=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(p){var d=p}Reflect.construct(e,[],m)}else{try{m.call()}catch(p){d=p}e.call(m.prototype)}}else{try{throw Error()}catch(p){d=p}(m=e())&&typeof m.catch==="function"&&m.catch(function(){})}}catch(p){if(p&&d&&typeof p.stack==="string")return[p.stack,d.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=o.DetermineComponentFrameRoot(),i=s[0],l=s[1];if(i&&l){var c=i.split(`
|
|
4
4
|
`),u=l.split(`
|
|
5
5
|
`);for(n=o=0;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;for(;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;if(o===c.length||n===u.length)for(o=c.length-1,n=u.length-1;1<=o&&0<=n&&c[o]!==u[n];)n--;for(;1<=o&&0<=n;o--,n--)if(c[o]!==u[n]){if(o!==1||n!==1)do if(o--,n--,0>n||c[o]!==u[n]){var f=`
|
|
6
|
-
`+c[o].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=o&&0<=n);break}}}finally{
|
|
6
|
+
`+c[o].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=o&&0<=n);break}}}finally{pf=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?jo(a):""}function YG(e,t){switch(e.tag){case 26:case 27:case 5:return jo(e.type);case 16:return jo("Lazy");case 13:return e.child!==t&&t!==null?jo("Suspense Fallback"):jo("Suspense");case 19:return jo("SuspenseList");case 0:case 15:return hf(e.type,!1);case 11:return hf(e.type.render,!1);case 1:return hf(e.type,!0);case 31:return jo("Activity");default:return""}}function kz(e){try{var t="",a=null;do t+=YG(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}}var Wf=Object.prototype.hasOwnProperty,Gm=Ze.unstable_scheduleCallback,pf=Ze.unstable_cancelCallback,YG=Ze.unstable_shouldYield,QG=Ze.unstable_requestPaint,Lt=Ze.unstable_now,WG=Ze.unstable_getCurrentPriorityLevel,lU=Ze.unstable_ImmediatePriority,cU=Ze.unstable_UserBlockingPriority,kl=Ze.unstable_NormalPriority,KG=Ze.unstable_LowPriority,uU=Ze.unstable_IdlePriority,JG=Ze.log,$G=Ze.unstable_setDisableYieldValue,Zs=null,Rt=null;function co(e){if(typeof JG==="function"&&$G(e),Rt&&typeof Rt.setStrictMode==="function")try{Rt.setStrictMode(Zs,e)}catch(t){}}var Bt=Math.clz32?Math.clz32:aV,eV=Math.log,tV=Math.LN2;function aV(e){return e>>>=0,e===0?32:31-(eV(e)/tV|0)|0}var nl=256,rl=262144,sl=4194304;function Yo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function lc(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=o&134217727;return l!==0?(o=l&~s,o!==0?n=Yo(o):(i&=l,i!==0?n=Yo(i):a||(a=l&~e,a!==0&&(n=Yo(a))))):(l=o&~s,l!==0?n=Yo(l):i!==0?n=Yo(i):a||(a=o&~e,a!==0&&(n=Yo(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function Xs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function oV(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fU(){var e=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),e}function hf(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function js(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nV(e,t,a,o,n,s){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:l,expirationTimes:c,hiddenUpdates:u}=e;for(a=i&~a;0<a;){var f=31-Bt(a),m=1<<f;l[f]=0,c[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var p=d[f];p!==null&&(p.lane&=-536870913)}a&=~m}o!==0&&mU(e,o,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(i&~t))}function mU(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Bt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function dU(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Bt(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function pU(e,t){var a=t&-t;return a=(a&42)!==0?1:Vm(a),(a&(e.suspendedLanes|t))!==0?0:a}function Vm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hU(){var e=j.p;if(e!==0)return e;return e=window.event,e===void 0?32:U7(e.type)}function kz(e,t){var a=j.p;try{return j.p=e,t()}finally{j.p=a}}var Do=Math.random().toString(36).slice(2),ot="__reactFiber$"+Do,yt="__reactProps$"+Do,Sr="__reactContainer$"+Do,Kf="__reactEvents$"+Do,rV="__reactListeners$"+Do,sV="__reactHandles$"+Do,zz="__reactResources$"+Do,Ys="__reactMarker$"+Do;function Zm(e){delete e[ot],delete e[yt],delete e[Kf],delete e[rV],delete e[sV]}function qn(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Sr]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=V5(e);e!==null;){if(a=e[ot])return a;e=V5(e)}return t}e=a,a=e.parentNode}return null}function vr(e){if(e=e[ot]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function us(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(M(33))}function er(e){var t=e[zz];return t||(t=e[zz]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Ys]=!0}var gU=new Set,IU={};function cn(e,t){lr(e,t),lr(e+"Capture",t)}function lr(e,t){IU[e]=t;for(e=0;e<t.length;e++)gU.add(t[e])}var iV=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Uz={},Fz={};function lV(e){if(Wf.call(Fz,e))return!0;if(Wf.call(Uz,e))return!1;if(iV.test(e))return Fz[e]=!0;return Uz[e]=!0,!1}function Il(e,t,a){if(lV(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function il(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ta(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cV(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:n,set:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jf(e){if(!e._valueTracker){var t=SU(e)?"checked":"value";e._valueTracker=cV(e,t,""+e[t])}}function vU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=SU(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function zl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var uV=/[\n"\\]/g;function Vt(e){return e.replace(uV,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $f(e,t,a,o,n,s,i,l){if(e.name="",i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?e.type=i:e.removeAttribute("type"),t!=null)if(i==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+_t(t)}else e.value!==""+_t(t)&&(e.value=""+_t(t));else i!=="submit"&&i!=="reset"||e.removeAttribute("value");t!=null?em(e,i,_t(t)):a!=null?em(e,i,_t(a)):o!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"?e.name=""+_t(l):e.removeAttribute("name")}function yU(e,t,a,o,n,s,i,l){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){Jf(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=l?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"&&(e.name=i),Jf(e)}function em(e,t,a){t==="number"&&zl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function tr(e,t,a,o){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&o&&(e[a].defaultSelected=!0)}else{a=""+_t(a),t=null;for(n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function bU(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function CU(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(M(92));if(cs(o)){if(1<o.length)throw Error(M(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Jf(e)}function cr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var fV=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _z(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||fV.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function wU(e,t,a){if(t!=null&&typeof t!=="object")throw Error(M(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var n in t)o=t[n],t.hasOwnProperty(n)&&a[n]!==o&&_z(e,n,o)}else for(var s in t)t.hasOwnProperty(s)&&_z(e,s,t[s])}function Xm(e){if(e.indexOf("-")===-1)return!1;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 mV=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dV=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sl(e){return dV.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Na(){}var tm=null;function jm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zn=null,ar=null;function Pz(e){var t=vr(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if($f(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[yt]||null;if(!n)throw Error(M(90));$f(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&vU(o)}break e;case"textarea":bU(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tr(e,!!a.multiple,t,!1)}}}var gf=!1;function AU(e,t,a){if(gf)return e(t,a);gf=!0;try{var o=e(t);return o}finally{if(gf=!1,Zn!==null||ar!==null){if(yc(),Zn&&(t=Zn,e=ar,ar=Zn=null,Pz(t),e))for(t=0;t<e.length;t++)Pz(e[t])}}}function Rs(e,t){var a=e.stateNode;if(a===null)return null;var o=a[yt]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(M(231,t,typeof a));return a}var Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),am=!1;if(Ua)try{Qo={},Object.defineProperty(Qo,"passive",{get:function(){am=!0}}),window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch(e){am=!1}var Qo,uo=null,Ym=null,vl=null;function TU(){if(vl)return vl;var e,t=Ym,a=t.length,o,n="value"in uo?uo.value:uo.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===n[s-o];o++);return vl=n.slice(e,1<o?1-o:void 0)}function yl(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 ll(){return!0}function Gz(){return!1}function bt(e){function t(a,o,n,s,i){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ll:Gz,this.isPropagationStopped=Gz,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ll)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ll)},persist:function(){},isPersistent:ll}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=bt(un),Qs=me({},un,{view:0,detail:0}),pV=bt(Qs),If,Sf,os,uc=me({},Qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qm,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){if("movementX"in e)return e.movementX;return e!==os&&(os&&e.type==="mousemove"?(If=e.screenX-os.screenX,Sf=e.screenY-os.screenY):Sf=If=0,os=e),If},movementY:function(e){return"movementY"in e?e.movementY:Sf}}),Vz=bt(uc),hV=me({},uc,{dataTransfer:0}),gV=bt(hV),IV=me({},Qs,{relatedTarget:0}),vf=bt(IV),SV=me({},un,{animationName:0,elapsedTime:0,pseudoElement:0}),vV=bt(SV),yV=me({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bV=bt(yV),CV=me({},un,{data:0}),qz=bt(CV),wV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AV={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"},TV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TV[e])?!!t[e]:!1}function Qm(){return xV}var MV=me({},Qs,{key:function(e){if(e.key){var t=wV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qm,charCode:function(e){return e.type==="keypress"?yl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),DV=bt(MV),EV=me({},uc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zz=bt(EV),LV=me({},Qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qm}),RV=bt(LV),BV=me({},un,{propertyName:0,elapsedTime:0,pseudoElement:0}),NV=bt(BV),OV=me({},uc,{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}),HV=bt(OV),kV=me({},un,{newState:0,oldState:0}),zV=bt(kV),UV=[9,13,27,32],Wm=Ua&&"CompositionEvent"in window,Is=null;Ua&&"documentMode"in document&&(Is=document.documentMode);var FV=Ua&&"TextEvent"in window&&!Is,xU=Ua&&(!Wm||Is&&8<Is&&11>=Is),Xz=String.fromCharCode(32),jz=!1;function MU(e,t){switch(e){case"keyup":return UV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DU(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var Xn=!1;function _V(e,t){switch(e){case"compositionend":return DU(t);case"keypress":if(t.which!==32)return null;return jz=!0,Xz;case"textInput":return e=t.data,e===Xz&&jz?null:e;default:return null}}function PV(e,t){if(Xn)return e==="compositionend"||!Wm&&MU(e,t)?(e=TU(),vl=Ym=uo=null,Xn=!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 xU&&t.locale!=="ko"?null:t.data;default:return null}}var GV={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 Yz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GV[e.type]:t==="textarea"?!0:!1}function EU(e,t,a,o){Zn?ar?ar.push(o):ar=[o]:Zn=o,t=tc(t,"onChange"),0<t.length&&(a=new cc("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Ss=null,Bs=null;function VV(e){A7(e,0)}function fc(e){var t=us(e);if(vU(t))return e}function Qz(e,t){if(e==="change")return t}var LU=!1;if(Ua){if(Ua){if(ms="oninput"in document,!ms)bl=document.createElement("div"),bl.setAttribute("oninput","return;"),ms=typeof bl.oninput==="function";fs=ms}else fs=!1;LU=fs&&(!document.documentMode||9<document.documentMode)}var fs,ms,bl;function Wz(){Ss&&(Ss.detachEvent("onpropertychange",RU),Bs=Ss=null)}function RU(e){if(e.propertyName==="value"&&fc(Bs)){var t=[];EU(t,Bs,e,jm(e)),AU(VV,t)}}function qV(e,t,a){e==="focusin"?(Wz(),Ss=t,Bs=a,Ss.attachEvent("onpropertychange",RU)):e==="focusout"&&Wz()}function ZV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fc(Bs)}function XV(e,t){if(e==="click")return fc(t)}function jV(e,t){if(e==="input"||e==="change")return fc(t)}function YV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is==="function"?Object.is:YV;function Ns(e,t){if(Ot(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!Wf.call(t,n)||!Ot(e[n],t[n]))return!1}return!0}function Kz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jz(e,t){var a=Kz(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Kz(a)}}function BU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BU(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function NU(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zl(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=zl(e.document)}return t}function Km(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var QV=Ua&&"documentMode"in document&&11>=document.documentMode,jn=null,om=null,vs=null,nm=!1;function $z(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nm||jn==null||jn!==zl(o)||(o=jn,("selectionStart"in o)&&Km(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vs&&Ns(vs,o)||(vs=o,o=tc(om,"onSelect"),0<o.length&&(t=new cc("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=jn)))}function Xo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Yn={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionrun:Xo("Transition","TransitionRun"),transitionstart:Xo("Transition","TransitionStart"),transitioncancel:Xo("Transition","TransitionCancel"),transitionend:Xo("Transition","TransitionEnd")},yf={},OU={};Ua&&(OU=document.createElement("div").style,("AnimationEvent"in window)||(delete Yn.animationend.animation,delete Yn.animationiteration.animation,delete Yn.animationstart.animation),("TransitionEvent"in window)||delete Yn.transitionend.transition);function fn(e){if(yf[e])return yf[e];if(!Yn[e])return e;var t=Yn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in OU)return yf[e]=t[a];return e}var HU=fn("animationend"),kU=fn("animationiteration"),zU=fn("animationstart"),WV=fn("transitionrun"),KV=fn("transitionstart"),JV=fn("transitioncancel"),UU=fn("transitionend"),FU=new Map,rm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rm.push("scrollEnd");function oa(e,t){FU.set(e,t),cn(t,[e])}var Ul=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Qn=0,Jm=0;function mc(){for(var e=Qn,t=Jm=Qn=0;t<e;){var a=Ft[t];Ft[t++]=null;var o=Ft[t];Ft[t++]=null;var n=Ft[t];Ft[t++]=null;var s=Ft[t];if(Ft[t++]=null,o!==null&&n!==null){var i=o.pending;i===null?n.next=n:(n.next=i.next,i.next=n),o.pending=n}s!==0&&_U(a,n,s)}}function dc(e,t,a,o){Ft[Qn++]=e,Ft[Qn++]=t,Ft[Qn++]=a,Ft[Qn++]=o,Jm|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function $m(e,t,a,o){return dc(e,t,a,o),Fl(e)}function mn(e,t){return dc(e,null,null,t),Fl(e)}function _U(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Bt(a),e=s.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),s):null}function Fl(e){if(50<Ds)throw Ds=0,xm=null,Error(M(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wn={};function $V(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,o){return new $V(e,t,a,o)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ha(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function PU(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Cl(e,t,a,o,n,s){var i=0;if(o=e,typeof e==="function")ed(e)&&(i=1);else if(typeof e==="string")i=aZ(e,a,ha.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xf:return e=Dt(31,a,t,n),e.elementType=Xf,e.lanes=s,e;case Gn:return $o(a.children,n,s,t);case sU:i=8,n|=24;break;case Vf:return e=Dt(12,a,t,n|2),e.elementType=Vf,e.lanes=s,e;case qf:return e=Dt(13,a,t,n),e.elementType=qf,e.lanes=s,e;case Zf:return e=Dt(19,a,t,n),e.elementType=Zf,e.lanes=s,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Ba:i=10;break e;case iU:i=9;break e;case _m:i=11;break e;case Pm:i=14;break e;case oo:i=16,o=null;break e}i=29,a=Error(M(130,e===null?"null":typeof e,"")),o=null}return t=Dt(i,a,t,n),t.elementType=e,t.type=o,t.lanes=s,t}function $o(e,t,a,o){return e=Dt(7,e,o,t),e.lanes=a,e}function bf(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function GU(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Cf(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var e5=new WeakMap;function qt(e,t){if(typeof e==="object"&&e!==null){var a=e5.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:Hz(t)},e5.set(e,t),t}return{value:e,source:t,stack:Hz(t)}}var Kn=[],Jn=0,_l=null,Os=0,Pt=[],Gt=0,Ao=null,ma=1,da="";function La(e,t){Kn[Jn++]=Os,Kn[Jn++]=_l,_l=e,Os=t}function VU(e,t,a){Pt[Gt++]=ma,Pt[Gt++]=da,Pt[Gt++]=Ao,Ao=e;var o=ma;e=da;var n=32-Bt(o)-1;o&=~(1<<n),a+=1;var s=32-Bt(t)+n;if(30<s){var i=n-n%5;s=(o&(1<<i)-1).toString(32),o>>=i,n-=i,ma=1<<32-Bt(t)+n|a<<n|o,da=s+e}else ma=1<<s|a<<n|o,da=e}function td(e){e.return!==null&&(La(e,1),VU(e,1,0))}function ad(e){for(;e===_l;)_l=Kn[--Jn],Kn[Jn]=null,Os=Kn[--Jn],Kn[Jn]=null;for(;e===Ao;)Ao=Pt[--Gt],Pt[Gt]=null,da=Pt[--Gt],Pt[Gt]=null,ma=Pt[--Gt],Pt[Gt]=null}function qU(e,t){Pt[Gt++]=ma,Pt[Gt++]=da,Pt[Gt++]=Ao,ma=t.id,da=t.overflow,Ao=e}var nt=null,fe=null,Z=!1,go=null,Zt=!1,sm=Error(M(519));function To(e){var t=Error(M(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hs(qt(t,e)),sm}function t5(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[ot]=e,t[yt]=o,a){case"dialog":_("cancel",t),_("close",t);break;case"iframe":case"object":case"embed":_("load",t);break;case"video":case"audio":for(a=0;a<Fs.length;a++)_(Fs[a],t);break;case"source":_("error",t);break;case"img":case"image":case"link":_("error",t),_("load",t);break;case"details":_("toggle",t);break;case"input":_("invalid",t),yU(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":_("invalid",t);break;case"textarea":_("invalid",t),CU(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||x7(t.textContent,a)?(o.popover!=null&&(_("beforetoggle",t),_("toggle",t)),o.onScroll!=null&&_("scroll",t),o.onScrollEnd!=null&&_("scrollend",t),o.onClick!=null&&(t.onclick=Na),t=!0):t=!1,t||To(e,!0)}function a5(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:nt=nt.return}}function zn(e){if(e!==nt)return!1;if(!Z)return a5(e),Z=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Nm(e.type,e.memoizedProps);a=!a}if(a&&fe&&To(e),a5(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));fe=G5(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));fe=G5(e)}else t===27?(t=fe,Eo(e.type)?(e=zm,zm=null,fe=e):fe=t):fe=nt?jt(e.stateNode.nextSibling):null;return!0}function on(){fe=nt=null,Z=!1}function wf(){var e=go;return e!==null&&(St===null?St=e:St.push.apply(St,e),go=null),e}function Hs(e){go===null?go=[e]:go.push(e)}var im=ga(null),dn=null,Oa=null;function ro(e,t,a){se(im,t._currentValue),t._currentValue=a}function ka(e){e._currentValue=im.current,Je(im)}function lm(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function cm(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var s=n.dependencies;if(s!==null){var i=n.child;s=s.firstContext;e:for(;s!==null;){var l=s;s=n;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=a,l=s.alternate,l!==null&&(l.lanes|=a),lm(s.return,a,e),o||(i=null);break e}s=l.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(M(341));i.lanes|=a,s=i.alternate,s!==null&&(s.lanes|=a),lm(i,a,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function yr(e,t,a,o){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(M(387));if(i=i.memoizedProps,i!==null){var l=n.type;Ot(n.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(n===Nl.current){if(i=n.alternate,i===null)throw Error(M(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ps):e=[Ps])}n=n.return}e!==null&&cm(t,e,a,o),t.flags|=262144}function Pl(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nn(e){dn=e,Oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return ZU(dn,e)}function cl(e,t){return dn===null&&nn(e),ZU(e,t)}function ZU(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Oa===null){if(e===null)throw Error(M(308));Oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Oa=Oa.next=t;return a}var eq=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},tq=Ze.unstable_scheduleCallback,aq=Ze.unstable_NormalPriority,Fe={$$typeof:Ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function od(){return{controller:new eq,data:new Map,refCount:0}}function Ws(e){e.refCount--,e.refCount===0&&tq(aq,function(){e.controller.abort()})}var ys=null,um=0,ur=0,or=null;function oq(e,t){if(ys===null){var a=ys=[];um=0,ur=Dd(),or={status:"pending",value:void 0,then:function(o){a.push(o)}}}return um++,t.then(o5,o5),t}function o5(){if(--um===0&&ys!==null){or!==null&&(or.status="fulfilled");var e=ys;ys=null,ur=0,or=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nq(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){o.status="rejected",o.reason=n;for(n=0;n<a.length;n++)(0,a[n])(void 0)}),o}var n5=H.S;H.S=function(e,t){r7=Lt(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&oq(e,t),n5!==null&&n5(e,t)};var en=ga(null);function nd(){var e=en.current;return e!==null?e:re.pooledCache}function wl(e,t){t===null?se(en,en.current):se(en,t.pool)}function XU(){var e=nd();return e===null?null:{parent:Fe._currentValue,pool:e}}var br=Error(M(460)),rd=Error(M(474)),pc=Error(M(542)),Gl={then:function(){}};function r5(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jU(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Na,Na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,i5(e),e;default:if(typeof t.status==="string")t.then(Na,Na);else{if(e=re,e!==null&&100<e.shellSuspendCounter)throw Error(M(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=o}},function(o){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,i5(e),e}throw tn=t,br}}function Wo(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw tn=a,br;throw a}}var tn=null;function s5(){if(tn===null)throw Error(M(459));var e=tn;return tn=null,e}function i5(e){if(e===br||e===pc)throw Error(M(483))}var nr=null,ks=0;function ul(e){var t=ks;return ks+=1,nr===null&&(nr=[]),jU(nr,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fl(e,t){if(t.$$typeof===qG)throw Error(M(525));throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function YU(e){function t(g,I){if(e){var S=g.deletions;S===null?(g.deletions=[I],g.flags|=16):S.push(I)}}function a(g,I){if(!e)return null;for(;I!==null;)t(g,I),I=I.sibling;return null}function o(g){for(var I=new Map;g!==null;)g.key!==null?I.set(g.key,g):I.set(g.index,g),g=g.sibling;return I}function n(g,I){return g=Ha(g,I),g.index=0,g.sibling=null,g}function s(g,I,S){if(g.index=S,!e)return g.flags|=1048576,I;if(S=g.alternate,S!==null)return S=S.index,S<I?(g.flags|=67108866,I):S;return g.flags|=67108866,I}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,I,S,y){if(I===null||I.tag!==6)return I=bf(S,g.mode,y),I.return=g,I;return I=n(I,S),I.return=g,I}function c(g,I,S,y){var w=S.type;if(w===Gn)return f(g,I,S.props.children,y,S.key);if(I!==null&&(I.elementType===w||typeof w==="object"&&w!==null&&w.$$typeof===oo&&Wo(w)===I.type))return I=n(I,S.props),ns(I,S),I.return=g,I;return I=Cl(S.type,S.key,S.props,null,g.mode,y),ns(I,S),I.return=g,I}function u(g,I,S,y){if(I===null||I.tag!==4||I.stateNode.containerInfo!==S.containerInfo||I.stateNode.implementation!==S.implementation)return I=Cf(S,g.mode,y),I.return=g,I;return I=n(I,S.children||[]),I.return=g,I}function f(g,I,S,y,w){if(I===null||I.tag!==7)return I=$o(S,g.mode,y,w),I.return=g,I;return I=n(I,S),I.return=g,I}function m(g,I,S){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=bf(""+I,g.mode,S),I.return=g,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case ol:return S=Cl(I.type,I.key,I.props,null,g.mode,S),ns(S,I),S.return=g,S;case ls:return I=Cf(I,g.mode,S),I.return=g,I;case oo:return I=Wo(I),m(g,I,S)}if(cs(I)||as(I))return I=$o(I,g.mode,S,null),I.return=g,I;if(typeof I.then==="function")return m(g,ul(I),S);if(I.$$typeof===Ba)return m(g,cl(g,I),S);fl(g,I)}return null}function d(g,I,S,y){var w=I!==null?I.key:null;if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return w!==null?null:l(g,I,""+S,y);if(typeof S==="object"&&S!==null){switch(S.$$typeof){case ol:return S.key===w?c(g,I,S,y):null;case ls:return S.key===w?u(g,I,S,y):null;case oo:return S=Wo(S),d(g,I,S,y)}if(cs(S)||as(S))return w!==null?null:f(g,I,S,y,null);if(typeof S.then==="function")return d(g,I,ul(S),y);if(S.$$typeof===Ba)return d(g,I,cl(g,S),y);fl(g,S)}return null}function p(g,I,S,y,w){if(typeof y==="string"&&y!==""||typeof y==="number"||typeof y==="bigint")return g=g.get(S)||null,l(I,g,""+y,w);if(typeof y==="object"&&y!==null){switch(y.$$typeof){case ol:return g=g.get(y.key===null?S:y.key)||null,c(I,g,y,w);case ls:return g=g.get(y.key===null?S:y.key)||null,u(I,g,y,w);case oo:return y=Wo(y),p(g,I,S,y,w)}if(cs(y)||as(y))return g=g.get(S)||null,f(I,g,y,w,null);if(typeof y.then==="function")return p(g,I,S,ul(y),w);if(y.$$typeof===Ba)return p(g,I,S,cl(I,y),w);fl(I,y)}return null}function v(g,I,S,y){for(var w=null,T=null,x=I,E=I=0,L=null;x!==null&&E<S.length;E++){x.index>E?(L=x,x=null):L=x.sibling;var D=d(g,x,S[E],y);if(D===null){x===null&&(x=L);break}e&&x&&D.alternate===null&&t(g,x),I=s(D,I,E),T===null?w=D:T.sibling=D,T=D,x=L}if(E===S.length)return a(g,x),Z&&La(g,E),w;if(x===null){for(;E<S.length;E++)x=m(g,S[E],y),x!==null&&(I=s(x,I,E),T===null?w=x:T.sibling=x,T=x);return Z&&La(g,E),w}for(x=o(x);E<S.length;E++)L=p(x,g,E,S[E],y),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?E:L.key),I=s(L,I,E),T===null?w=L:T.sibling=L,T=L);return e&&x.forEach(function(N){return t(g,N)}),Z&&La(g,E),w}function b(g,I,S,y){if(S==null)throw Error(M(151));for(var w=null,T=null,x=I,E=I=0,L=null,D=S.next();x!==null&&!D.done;E++,D=S.next()){x.index>E?(L=x,x=null):L=x.sibling;var N=d(g,x,D.value,y);if(N===null){x===null&&(x=L);break}e&&x&&N.alternate===null&&t(g,x),I=s(N,I,E),T===null?w=N:T.sibling=N,T=N,x=L}if(D.done)return a(g,x),Z&&La(g,E),w;if(x===null){for(;!D.done;E++,D=S.next())D=m(g,D.value,y),D!==null&&(I=s(D,I,E),T===null?w=D:T.sibling=D,T=D);return Z&&La(g,E),w}for(x=o(x);!D.done;E++,D=S.next())D=p(x,g,E,D.value,y),D!==null&&(e&&D.alternate!==null&&x.delete(D.key===null?E:D.key),I=s(D,I,E),T===null?w=D:T.sibling=D,T=D);return e&&x.forEach(function(oe){return t(g,oe)}),Z&&La(g,E),w}function C(g,I,S,y){if(typeof S==="object"&&S!==null&&S.type===Gn&&S.key===null&&(S=S.props.children),typeof S==="object"&&S!==null){switch(S.$$typeof){case ol:e:{for(var w=S.key;I!==null;){if(I.key===w){if(w=S.type,w===Gn){if(I.tag===7){a(g,I.sibling),y=n(I,S.props.children),y.return=g,g=y;break e}}else if(I.elementType===w||typeof w==="object"&&w!==null&&w.$$typeof===oo&&Wo(w)===I.type){a(g,I.sibling),y=n(I,S.props),ns(y,S),y.return=g,g=y;break e}a(g,I);break}else t(g,I);I=I.sibling}S.type===Gn?(y=$o(S.props.children,g.mode,y,S.key),y.return=g,g=y):(y=Cl(S.type,S.key,S.props,null,g.mode,y),ns(y,S),y.return=g,g=y)}return i(g);case ls:e:{for(w=S.key;I!==null;){if(I.key===w)if(I.tag===4&&I.stateNode.containerInfo===S.containerInfo&&I.stateNode.implementation===S.implementation){a(g,I.sibling),y=n(I,S.children||[]),y.return=g,g=y;break e}else{a(g,I);break}else t(g,I);I=I.sibling}y=Cf(S,g.mode,y),y.return=g,g=y}return i(g);case oo:return S=Wo(S),C(g,I,S,y)}if(cs(S))return v(g,I,S,y);if(as(S)){if(w=as(S),typeof w!=="function")throw Error(M(150));return S=w.call(S),b(g,I,S,y)}if(typeof S.then==="function")return C(g,I,ul(S),y);if(S.$$typeof===Ba)return C(g,I,cl(g,S),y);fl(g,S)}return typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint"?(S=""+S,I!==null&&I.tag===6?(a(g,I.sibling),y=n(I,S),y.return=g,g=y):(a(g,I),y=bf(S,g.mode,y),y.return=g,g=y),i(g)):a(g,I)}return function(g,I,S,y){try{ks=0;var w=C(g,I,S,y);return nr=null,w}catch(x){if(x===br||x===pc)throw x;var T=Dt(29,x,null,g.mode);return T.lanes=y,T.return=g,T}finally{}}}var rn=YU(!0),QU=YU(!1),no=!1;function sd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(X&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=Fl(e),_U(e,null,a),t}return dc(e,o,t,a),Fl(e)}function bs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,dU(e,a)}}function Af(e,t){var{updateQueue:a,alternate:o}=e;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=i:s=s.next=i,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var mm=!1;function Cs(){if(mm){var e=or;if(e!==null)throw e}}function ws(e,t,a,o){mm=!1;var n=e.updateQueue;no=!1;var{firstBaseUpdate:s,lastBaseUpdate:i}=n,l=n.shared.pending;if(l!==null){n.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(s!==null){var m=n.baseState;i=0,f=u=c=null,l=s;do{var d=l.lane&-536870913,p=d!==l.lane;if(p?(q&d)===d:(o&d)===d){d!==0&&d===ur&&(mm=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var v=e,b=l;d=t;var C=a;switch(b.tag){case 1:if(v=b.payload,typeof v==="function"){m=v.call(C,m,d);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,d=typeof v==="function"?v.call(C,m,d):v,d===null||d===void 0)break e;m=me({},m,d);break e;case 2:no=!0}}d=l.callback,d!==null&&(e.flags|=64,p&&(e.flags|=8192),p=n.callbacks,p===null?n.callbacks=[d]:p.push(d))}else p={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,c=m):f=f.next=p,i|=d;if(l=l.next,l===null)if(l=n.shared.pending,l===null)break;else p=l,l=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}while(1);f===null&&(c=m),n.baseState=c,n.firstBaseUpdate=u,n.lastBaseUpdate=f,s===null&&(n.shared.lanes=0),Mo|=i,e.lanes=i,e.memoizedState=m}}function WU(e,t){if(typeof e!=="function")throw Error(M(191,e));e.call(t)}function KU(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)WU(a[e],t)}var fr=ga(null),Vl=ga(0);function l5(e,t){e=Ga,se(Vl,e),se(fr,t),Ga=e|t.baseLanes}function dm(){se(Vl,Ga),se(fr,fr.current)}function id(){Ga=Vl.current,Je(fr),Je(Vl)}var Ht=ga(null),Xt=null;function so(e){var t=e.alternate;se(He,He.current&1),se(Ht,e),Xt===null&&(t===null||fr.current!==null?Xt=e:t.memoizedState!==null&&(Xt=e))}function pm(e){se(He,He.current),se(Ht,e),Xt===null&&(Xt=e)}function JU(e){e.tag===22?(se(He,He.current),se(Ht,e),Xt===null&&(Xt=e)):io(e)}function io(){se(He,He.current),se(Ht,Ht.current)}function Mt(e){Je(Ht),Xt===e&&(Xt=null),Je(He)}var He=ga(0);function ql(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hm(a)||km(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Fa=0,F=null,ae=null,ze=null,Zl=!1,rr=!1,sn=!1,Xl=0,zs=0,sr=null,rq=0;function Ie(){throw Error(M(321))}function ld(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ot(e[a],t[a]))return!1;return!0}function cd(e,t,a,o,n,s){return Fa=s,F=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?EF:yd,sn=!1,s=a(o,n),sn=!1,rr&&(s=eF(t,a,o,n)),$U(e),s}function $U(e){H.H=Us;var t=ae!==null&&ae.next!==null;if(Fa=0,ze=ae=F=null,Zl=!1,zs=0,sr=null,t)throw Error(M(300));e===null||_e||(e=e.dependencies,e!==null&&Pl(e)&&(_e=!0))}function eF(e,t,a,o){F=e;var n=0;do{if(rr&&(sr=null),zs=0,rr=!1,25<=n)throw Error(M(301));if(n+=1,ze=ae=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}H.H=LF,s=t(a,o)}while(rr);return s}function sq(){var e=H.H,t=e.useState()[0];return t=typeof t.then==="function"?Ks(t):t,e=e.useState()[0],(ae!==null?ae.memoizedState:null)!==e&&(F.flags|=1024),t}function ud(){var e=Xl!==0;return Xl=0,e}function fd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function md(e){if(Zl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Zl=!1}Fa=0,ze=ae=F=null,rr=!1,zs=Xl=0,sr=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?F.memoizedState=ze=e:ze=ze.next=e,ze}function ke(){if(ae===null){var e=F.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ze===null?F.memoizedState:ze.next;if(t!==null)ze=t,ae=e;else{if(e===null){if(F.alternate===null)throw Error(M(467));throw Error(M(310))}ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ze===null?F.memoizedState=ze=e:ze=ze.next=e}return ze}function hc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ks(e){var t=zs;return zs+=1,sr===null&&(sr=[]),e=jU(sr,e,t),t=F,(ze===null?t.memoizedState:ze.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?EF:yd),e}function gc(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Ks(e);if(e.$$typeof===Ba)return rt(e)}throw Error(M(438,String(e)))}function dd(e){var t=null,a=F.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=F.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=hc(),F.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=ZG;return t.index++,a}function _a(e,t){return typeof t==="function"?t(e):t}function Al(e){var t=ke();return pd(t,ae,e)}function pd(e,t,a){var o=e.queue;if(o===null)throw Error(M(311));o.lastRenderedReducer=a;var n=e.baseQueue,s=o.pending;if(s!==null){if(n!==null){var i=n.next;n.next=s.next,s.next=i}t.baseQueue=n=s,o.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var l=i=null,c=null,u=t,f=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(q&m)===m:(Fa&m)===m){var d=u.revertLane;if(d===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===ur&&(f=!0);else if((Fa&d)===d){u=u.next,d===ur&&(f=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,i=s):c=c.next=m,F.lanes|=d,Mo|=d;m=u.action,sn&&a(s,m),s=u.hasEagerState?u.eagerState:a(s,m)}else d={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=d,i=s):c=c.next=d,F.lanes|=m,Mo|=m;u=u.next}while(u!==null&&u!==t);if(c===null?i=s:c.next=l,!Ot(s,e.memoizedState)&&(_e=!0,f&&(a=or,a!==null)))throw a;e.memoizedState=s,e.baseState=i,e.baseQueue=c,o.lastRenderedState=s}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Tf(e){var t=ke(),a=t.queue;if(a===null)throw Error(M(311));a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,s=t.memoizedState;if(n!==null){a.pending=null;var i=n=n.next;do s=e(s,i.action),i=i.next;while(i!==n);Ot(s,t.memoizedState)||(_e=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function tF(e,t,a){var o=F,n=ke(),s=Z;if(s){if(a===void 0)throw Error(M(407));a=a()}else a=t();var i=!Ot((ae||n).memoizedState,a);if(i&&(n.memoizedState=a,_e=!0),n=n.queue,hd(nF.bind(null,o,n,e),[e]),n.getSnapshot!==t||i||ze!==null&&ze.memoizedState.tag&1){if(o.flags|=2048,mr(9,{destroy:void 0},oF.bind(null,o,n,a,t),null),re===null)throw Error(M(349));s||(Fa&127)!==0||aF(o,t,a)}return a}function aF(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=F.updateQueue,t===null?(t=hc(),F.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oF(e,t,a,o){t.value=a,t.getSnapshot=o,rF(t)&&sF(e)}function nF(e,t,a){return a(function(){rF(t)&&sF(e)})}function rF(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ot(e,a)}catch(o){return!0}}function sF(e){var t=mn(e,2);t!==null&&vt(t,e,2)}function hm(e){var t=pt();if(typeof e==="function"){var a=e;if(e=a(),sn){co(!0);try{a()}finally{co(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function iF(e,t,a,o){return e.baseState=a,pd(e,ae,typeof o==="function"?o:_a)}function iq(e,t,a,o,n){if(Sc(e))throw Error(M(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){s.listeners.push(i)}};H.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,lF(t,s)):(s.next=a.next,t.pending=a.next=s)}}function lF(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var s=H.T,i={};H.T=i;try{var l=a(n,o),c=H.S;c!==null&&c(i,l),c5(e,t,l)}catch(u){gm(e,t,u)}finally{s!==null&&i.types!==null&&(s.types=i.types),H.T=s}}else try{s=a(n,o),c5(e,t,s)}catch(u){gm(e,t,u)}}function c5(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){u5(e,t,o)},function(o){return gm(e,t,o)}):u5(e,t,a)}function u5(e,t,a){t.status="fulfilled",t.value=a,cF(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,lF(e,a)))}function gm(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,cF(t),t=t.next;while(t!==o)}e.action=null}function cF(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uF(e,t){return t}function f5(e,t){if(Z){var a=re.formState;if(a!==null){e:{var o=F;if(Z){if(fe){t:{var n=fe;for(var s=Zt;n.nodeType!==8;){if(!s){n=null;break t}if(n=jt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){fe=jt(n.nextSibling),o=n.data==="F!";break e}}To(o)}o=!1}o&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uF,lastRenderedState:t},a.queue=o,a=xF.bind(null,F,o),o.dispatch=a,o=hm(!1),s=vd.bind(null,F,!1,o.queue),o=pt(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=iq.bind(null,F,n,s,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function m5(e){var t=ke();return fF(t,ae,e)}function fF(e,t,a){if(t=pd(e,t,uF)[0],e=Al(_a)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Ks(t)}catch(i){if(i===br)throw pc;throw i}else o=t;t=ke();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(F.flags|=2048,mr(9,{destroy:void 0},lq.bind(null,n,a),null)),[o,s,e]}function lq(e,t){e.action=t}function d5(e){var t=ke(),a=ae;if(a!==null)return fF(t,a,e);ke(),t=t.memoizedState,a=ke();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function mr(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=F.updateQueue,t===null&&(t=hc(),F.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function mF(){return ke().memoizedState}function Tl(e,t,a,o){var n=pt();F.flags|=e,n.memoizedState=mr(1|t,{destroy:void 0},a,o===void 0?null:o)}function Ic(e,t,a,o){var n=ke();o=o===void 0?null:o;var s=n.memoizedState.inst;ae!==null&&o!==null&&ld(o,ae.memoizedState.deps)?n.memoizedState=mr(t,s,a,o):(F.flags|=e,n.memoizedState=mr(1|t,s,a,o))}function p5(e,t){Tl(8390656,8,e,t)}function hd(e,t){Ic(2048,8,e,t)}function cq(e){F.flags|=4;var t=F.updateQueue;if(t===null)t=hc(),F.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function dF(e){var t=ke().memoizedState;return cq({ref:t,nextImpl:e}),function(){if((X&2)!==0)throw Error(M(440));return t.impl.apply(void 0,arguments)}}function pF(e,t){return Ic(4,2,e,t)}function hF(e,t){return Ic(4,4,e,t)}function gF(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function IF(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Ic(4,4,gF.bind(null,t,e),a)}function gd(){}function SF(e,t){var a=ke();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ld(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function vF(e,t){var a=ke();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ld(t,o[1]))return o[0];if(o=e(),sn){co(!0);try{e()}finally{co(!1)}}return a.memoizedState=[o,t],o}function Id(e,t,a){if(a===void 0||(Fa&1073741824)!==0&&(q&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=i7(),F.lanes|=e,Mo|=e,a}function yF(e,t,a,o){if(Ot(a,t))return a;if(fr.current!==null)return e=Id(e,a,o),Ot(e,t)||(_e=!0),e;if((Fa&42)===0||(Fa&1073741824)!==0&&(q&261930)===0)return _e=!0,e.memoizedState=a;return e=i7(),F.lanes|=e,Mo|=e,t}function bF(e,t,a,o,n){var s=j.p;j.p=s!==0&&8>s?s:8;var i=H.T,l={};H.T=l,vd(e,!1,t,a);try{var c=n(),u=H.S;if(u!==null&&u(l,c),c!==null&&typeof c==="object"&&typeof c.then==="function"){var f=nq(c,o);As(e,t,f,Nt(e))}else As(e,t,o,Nt(e))}catch(m){As(e,t,{then:function(){},status:"rejected",reason:m},Nt())}finally{j.p=s,i!==null&&l.types!==null&&(i.types=l.types),H.T=i}}function uq(){}function Im(e,t,a,o){if(e.tag!==5)throw Error(M(476));var n=CF(e).queue;bF(e,n,t,Jo,a===null?uq:function(){return wF(e),a(o)})}function CF(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Jo,baseState:Jo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:Jo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wF(e){var t=CF(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},Nt())}function Sd(){return rt(Ps)}function AF(){return ke().memoizedState}function TF(){return ke().memoizedState}function fq(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Io(a);var o=So(t,e,a);o!==null&&(vt(o,t,a),bs(o,t,a)),t={cache:od()},e.payload=t;return}t=t.return}}function mq(e,t,a){var o=Nt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Sc(e)?MF(t,a):(a=$m(e,t,a,o),a!==null&&(vt(a,e,o),DF(a,t,o)))}function xF(e,t,a){var o=Nt();As(e,t,a,o)}function As(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Sc(e))MF(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,a);if(n.hasEagerState=!0,n.eagerState=l,Ot(l,i))return dc(e,t,n,0),re===null&&mc(),!1}catch(c){}finally{}if(a=$m(e,t,n,o),a!==null)return vt(a,e,o),DF(a,t,o),!0}return!1}function vd(e,t,a,o){if(o={lane:2,revertLane:Dd(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Sc(e)){if(t)throw Error(M(479))}else t=$m(e,a,o,2),t!==null&&vt(t,e,2)}function Sc(e){var t=e.alternate;return e===F||t!==null&&t===F}function MF(e,t){rr=Zl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function DF(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,dU(e,a)}}var Us={readContext:rt,use:gc,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Us.useEffectEvent=Ie;var EF={readContext:rt,use:gc,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:p5,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Tl(4194308,4,gF.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Tl(4194308,4,e,t)},useInsertionEffect:function(e,t){Tl(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var o=e();if(sn){co(!0);try{e()}finally{co(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=pt();if(a!==void 0){var n=a(t);if(sn){co(!0);try{a(t)}finally{co(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=mq.bind(null,F,e),[o.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=hm(e);var t=e.queue,a=xF.bind(null,F,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:gd,useDeferredValue:function(e,t){var a=pt();return Id(a,e,t)},useTransition:function(){var e=hm(!1);return e=bF.bind(null,F,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=F,n=pt();if(Z){if(a===void 0)throw Error(M(407));a=a()}else{if(a=t(),re===null)throw Error(M(349));(q&127)!==0||aF(o,t,a)}n.memoizedState=a;var s={value:a,getSnapshot:t};return n.queue=s,p5(nF.bind(null,o,s,e),[e]),o.flags|=2048,mr(9,{destroy:void 0},oF.bind(null,o,s,a,t),null),a},useId:function(){var e=pt(),t=re.identifierPrefix;if(Z){var a=da,o=ma;a=(o&~(1<<32-Bt(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Xl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=rq++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Sd,useFormState:f5,useActionState:f5,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=vd.bind(null,F,!0,a),a.dispatch=t,[e,t]},useMemoCache:dd,useCacheRefresh:function(){return pt().memoizedState=fq.bind(null,F)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((X&2)!==0)throw Error(M(440));return a.impl.apply(void 0,arguments)}}},yd={readContext:rt,use:gc,useCallback:SF,useContext:rt,useEffect:hd,useImperativeHandle:IF,useInsertionEffect:pF,useLayoutEffect:hF,useMemo:vF,useReducer:Al,useRef:mF,useState:function(){return Al(_a)},useDebugValue:gd,useDeferredValue:function(e,t){var a=ke();return yF(a,ae.memoizedState,e,t)},useTransition:function(){var e=Al(_a)[0],t=ke().memoizedState;return[typeof e==="boolean"?e:Ks(e),t]},useSyncExternalStore:tF,useId:AF,useHostTransitionStatus:Sd,useFormState:m5,useActionState:m5,useOptimistic:function(e,t){var a=ke();return iF(a,ae,e,t)},useMemoCache:dd,useCacheRefresh:TF};yd.useEffectEvent=dF;var LF={readContext:rt,use:gc,useCallback:SF,useContext:rt,useEffect:hd,useImperativeHandle:IF,useInsertionEffect:pF,useLayoutEffect:hF,useMemo:vF,useReducer:Tf,useRef:mF,useState:function(){return Tf(_a)},useDebugValue:gd,useDeferredValue:function(e,t){var a=ke();return ae===null?Id(a,e,t):yF(a,ae.memoizedState,e,t)},useTransition:function(){var e=Tf(_a)[0],t=ke().memoizedState;return[typeof e==="boolean"?e:Ks(e),t]},useSyncExternalStore:tF,useId:AF,useHostTransitionStatus:Sd,useFormState:d5,useActionState:d5,useOptimistic:function(e,t){var a=ke();if(ae!==null)return iF(a,ae,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:dd,useCacheRefresh:TF};LF.useEffectEvent=dF;function xf(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:me({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Sm={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Nt(),n=Io(o);n.payload=t,a!==void 0&&a!==null&&(n.callback=a),t=So(e,n,o),t!==null&&(vt(t,e,o),bs(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Nt(),n=Io(o);n.tag=1,n.payload=t,a!==void 0&&a!==null&&(n.callback=a),t=So(e,n,o),t!==null&&(vt(t,e,o),bs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),o=Io(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=So(e,o,a),t!==null&&(vt(t,e,a),bs(t,e,a))}};function h5(e,t,a,o,n,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ns(a,o)||!Ns(n,s):!0}function g5(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Sm.enqueueReplaceState(t,t.state,null)}function ln(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=me({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function RF(e){Ul(e)}function BF(e){console.error(e)}function NF(e){Ul(e)}function jl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function I5(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function vm(e,t,a){return a=Io(a),a.tag=3,a.payload={element:null},a.callback=function(){jl(e,t)},a}function OF(e){return e=Io(e),e.tag=3,e}function HF(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var s=o.value;e.payload=function(){return n(s)},e.callback=function(){I5(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch==="function"&&(e.callback=function(){I5(t,a,o),typeof n!=="function"&&(vo===null?vo=new Set([this]):vo.add(this));var l=o.stack;this.componentDidCatch(o.value,{componentStack:l!==null?l:""})})}function dq(e,t,a,o,n){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&yr(t,a,n,!0),a=Ht.current,a!==null){switch(a.tag){case 31:case 13:return Xt===null?Jl():a.alternate===null&&Se===0&&(Se=3),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Gl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),zf(e,o,n)),!1;case 22:return a.flags|=65536,o===Gl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),zf(e,o,n)),!1}throw Error(M(435,a.tag))}return zf(e,o,n),Jl(),!1}if(Z)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==sm&&(e=Error(M(422),{cause:o}),Hs(qt(e,a)))):(o!==sm&&(t=Error(M(423),{cause:o}),Hs(qt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=qt(o,a),n=vm(e.stateNode,o,n),Af(e,n),Se!==4&&(Se=2)),!1;var s=Error(M(520),{cause:o});if(s=qt(s,a),Ms===null?Ms=[s]:Ms.push(s),Se!==4&&(Se=2),t===null)return!0;o=qt(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=vm(a.stateNode,o,e),Af(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(vo===null||!vo.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=OF(n),HF(n,e,a,o),Af(a,n),!1}a=a.return}while(a!==null);return!1}var bd=Error(M(461)),_e=!1;function at(e,t,a,o){t.child=e===null?QU(t,null,a,o):rn(t,e.child,a,o)}function S5(e,t,a,o,n){a=a.render;var s=t.ref;if("ref"in o){var i={};for(var l in o)l!=="ref"&&(i[l]=o[l])}else i=o;if(nn(t),o=cd(e,t,a,i,s,n),l=ud(),e!==null&&!_e)return fd(e,t,n),Pa(e,t,n);return Z&&l&&td(t),t.flags|=1,at(e,t,o,n),t.child}function v5(e,t,a,o,n){if(e===null){var s=a.type;if(typeof s==="function"&&!ed(s)&&s.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=s,kF(e,t,s,o,n);return e=Cl(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Cd(e,n)){var i=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ns,a(i,o)&&e.ref===t.ref)return Pa(e,t,n)}return t.flags|=1,e=Ha(s,o),e.ref=t.ref,e.return=t,t.child=e}function kF(e,t,a,o,n){if(e!==null){var s=e.memoizedProps;if(Ns(s,o)&&e.ref===t.ref)if(_e=!1,t.pendingProps=o=s,Cd(e,n))(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Pa(e,t,n)}return ym(e,t,a,o,n)}function zF(e,t,a,o){var n=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~s}else o=0,t.child=null;return y5(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wl(t,s!==null?s.cachePool:null),s!==null?l5(t,s):dm(),JU(t);else return o=t.lanes=536870912,y5(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(wl(t,s.cachePool),l5(t,s),io(t),t.memoizedState=null):(e!==null&&wl(t,null),dm(),io(t));return at(e,t,n,a),t.child}function ds(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function y5(e,t,a,o,n){var s=nd();return s=s===null?null:{parent:Fe._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&wl(t,null),dm(),JU(t),e!==null&&yr(e,t,o,!0),t.childLanes=n,null}function xl(e,t){return t=Yl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function b5(e,t,a){return rn(t,e.child,null,a),e=xl(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function pq(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Z){if(o.mode==="hidden")return e=xl(t,o),t.lanes=536870912,ds(null,e);if(pm(t),(e=fe)?(e=E7(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ao!==null?{id:ma,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=GU(e),a.return=t,t.child=a,nt=t,fe=null)):e=null,e===null)throw To(t);return t.lanes=536870912,null}return xl(t,o)}var s=e.memoizedState;if(s!==null){var i=s.dehydrated;if(pm(t),n)if(t.flags&256)t.flags&=-257,t=b5(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(M(558));else if(_e||yr(e,t,a,!1),n=(a&e.childLanes)!==0,_e||n){if(o=re,o!==null&&(i=pU(o,a),i!==0&&i!==s.retryLane))throw s.retryLane=i,mn(e,i),vt(o,e,i),bd;Jl(),t=b5(e,t,a)}else e=s.treeContext,fe=jt(i.nextSibling),nt=t,Z=!0,go=null,Zt=!1,e!==null&&qU(t,e),t=xl(t,o),t.flags|=4096;return t}return e=Ha(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ml(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(M(284));if(e===null||e.ref!==a)t.flags|=4194816}}function ym(e,t,a,o,n){if(nn(t),a=cd(e,t,a,o,void 0,n),o=ud(),e!==null&&!_e)return fd(e,t,n),Pa(e,t,n);return Z&&o&&td(t),t.flags|=1,at(e,t,a,n),t.child}function C5(e,t,a,o,n,s){if(nn(t),t.updateQueue=null,a=eF(t,o,a,n),$U(e),o=ud(),e!==null&&!_e)return fd(e,t,s),Pa(e,t,s);return Z&&o&&td(t),t.flags|=1,at(e,t,a,s),t.child}function w5(e,t,a,o,n){if(nn(t),t.stateNode===null){var s=Wn,i=a.contextType;typeof i==="object"&&i!==null&&(s=rt(i)),s=new a(o,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Sm,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},sd(t),i=a.contextType,s.context=typeof i==="object"&&i!==null?rt(i):Wn,s.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i==="function"&&(xf(t,a,i,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(i=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),i!==s.state&&Sm.enqueueReplaceState(s,s.state,null),ws(t,o,s,n),Cs(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){s=t.stateNode;var l=t.memoizedProps,c=ln(a,l);s.props=c;var u=s.context,f=a.contextType;i=Wn,typeof f==="object"&&f!==null&&(i=rt(f));var m=a.getDerivedStateFromProps;f=typeof m==="function"||typeof s.getSnapshotBeforeUpdate==="function",l=t.pendingProps!==l,f||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(l||u!==i)&&g5(t,s,o,i),no=!1;var d=t.memoizedState;s.state=d,ws(t,o,s,n),Cs(),u=t.memoizedState,l||d!==u||no?(typeof m==="function"&&(xf(t,a,m,o),u=t.memoizedState),(c=no||h5(t,a,c,o,d,u,i))?(f||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),s.props=o,s.state=u,s.context=i,o=c):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,fm(e,t),i=t.memoizedProps,f=ln(a,i),s.props=f,m=t.pendingProps,d=s.context,u=a.contextType,c=Wn,typeof u==="object"&&u!==null&&(c=rt(u)),l=a.getDerivedStateFromProps,(u=typeof l==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(i!==m||d!==c)&&g5(t,s,o,c),no=!1,d=t.memoizedState,s.state=d,ws(t,o,s,n),Cs();var p=t.memoizedState;i!==m||d!==p||no||e!==null&&e.dependencies!==null&&Pl(e.dependencies)?(typeof l==="function"&&(xf(t,a,l,o),p=t.memoizedState),(f=no||h5(t,a,f,o,d,p,c)||e!==null&&e.dependencies!==null&&Pl(e.dependencies))?(u||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,p,c),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,p,c)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=p),s.props=o,s.state=p,s.context=c,o=f):(typeof s.componentDidUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return s=o,Ml(e,t),o=(t.flags&128)!==0,s||o?(s=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:s.render(),t.flags|=1,e!==null&&o?(t.child=rn(t,e.child,null,n),t.child=rn(t,null,a,n)):at(e,t,a,n),t.memoizedState=s.state,e=t.child):e=Pa(e,t,n),e}function A5(e,t,a,o){return on(),t.flags|=256,at(e,t,a,o),t.child}var Mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Df(e){return{baseLanes:e,cachePool:XU()}}function Ef(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Et),e}function UF(e,t,a){var o=t.pendingProps,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Z){if(n?so(t):io(t),(e=fe)?(e=E7(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ao!==null?{id:ma,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=GU(e),a.return=t,t.child=a,nt=t,fe=null)):e=null,e===null)throw To(t);return km(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;if(o=o.fallback,n)return io(t),n=t.mode,l=Yl({mode:"hidden",children:l},n),o=$o(o,n,a,null),l.return=t,o.return=t,l.sibling=o,t.child=l,o=t.child,o.memoizedState=Df(a),o.childLanes=Ef(e,i,a),t.memoizedState=Mf,ds(null,o);return so(t),bm(t,l)}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(s)t.flags&256?(so(t),t.flags&=-257,t=Lf(e,t,a)):t.memoizedState!==null?(io(t),t.child=e.child,t.flags|=128,t=null):(io(t),l=o.fallback,n=t.mode,o=Yl({mode:"visible",children:o.children},n),l=$o(l,n,a,null),l.flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,rn(t,e.child,null,a),o=t.child,o.memoizedState=Df(a),o.childLanes=Ef(e,i,a),t.memoizedState=Mf,t=ds(null,o));else if(so(t),km(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,o=Error(M(419)),o.stack="",o.digest=i,Hs({value:o,source:null,stack:null}),t=Lf(e,t,a)}else if(_e||yr(e,t,a,!1),i=(a&e.childLanes)!==0,_e||i){if(i=re,i!==null&&(o=pU(i,a),o!==0&&o!==c.retryLane))throw c.retryLane=o,mn(e,o),vt(i,e,o),bd;Hm(l)||Jl(),t=Lf(e,t,a)}else Hm(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,fe=jt(l.nextSibling),nt=t,Z=!0,go=null,Zt=!1,e!==null&&qU(t,e),t=bm(t,o.children),t.flags|=4096);return t}if(n)return io(t),l=o.fallback,n=t.mode,c=e.child,u=c.sibling,o=Ha(c,{mode:"hidden",children:o.children}),o.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=Ha(u,l):(l=$o(l,n,a,null),l.flags|=2),l.return=t,o.return=t,o.sibling=l,t.child=o,ds(null,o),o=t.child,l=e.child.memoizedState,l===null?l=Df(a):(n=l.cachePool,n!==null?(c=Fe._currentValue,n=n.parent!==c?{parent:c,pool:c}:n):n=XU(),l={baseLanes:l.baseLanes|a,cachePool:n}),o.memoizedState=l,o.childLanes=Ef(e,i,a),t.memoizedState=Mf,ds(e.child,o);return so(t),a=e.child,e=a.sibling,a=Ha(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function bm(e,t){return t=Yl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yl(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Lf(e,t,a){return rn(t,e.child,null,a),e=bm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function T5(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),lm(e.return,t,a)}function Rf(e,t,a,o,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=n,i.treeForkCount=s)}function FF(e,t,a){var o=t.pendingProps,n=o.revealOrder,s=o.tail;o=o.children;var i=He.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,se(He,i),at(e,t,o,a),o=Z?Os:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&T5(e,a,t);else if(e.tag===19)T5(e,a,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}switch(n){case"forwards":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&ql(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Rf(t,!1,n,a,s,o);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&ql(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Rf(t,!0,a,null,s,o);break;case"together":Rf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Mo|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){e=t.child,a=Ha(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Cd(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Pl(e)?!0:!1}function hq(e,t,a){switch(t.tag){case 3:Ol(t,t.stateNode.containerInfo),ro(t,Fe,e.memoizedState.cache),on();break;case 27:case 5:Qf(t);break;case 4:Ol(t,t.stateNode.containerInfo);break;case 10:ro(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pm(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return so(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return UF(e,t,a);return so(t),e=Pa(e,t,a),e!==null?e.sibling:null}so(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(yr(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return FF(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),se(He,He.current),o)break;else return null;case 22:return t.lanes=0,zF(e,t,a,t.pendingProps);case 24:ro(t,Fe,e.memoizedState.cache)}return Pa(e,t,a)}function _F(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)_e=!0;else{if(!Cd(e,a)&&(t.flags&128)===0)return _e=!1,hq(e,t,a);_e=(e.flags&131072)!==0?!0:!1}else _e=!1,Z&&(t.flags&1048576)!==0&&VU(t,Os,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Wo(t.elementType),t.type=e,typeof e==="function")ed(e)?(o=ln(e,o),t.tag=1,t=w5(null,t,e,o,a)):(t.tag=0,t=ym(null,t,e,o,a));else{if(e!==void 0&&e!==null){var n=e.$$typeof;if(n===_m){t.tag=11,t=S5(null,t,e,o,a);break e}else if(n===Pm){t.tag=14,t=v5(null,t,e,o,a);break e}}throw t=jf(e)||e,Error(M(306,t,""))}}return t;case 0:return ym(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ln(o,t.pendingProps),w5(e,t,o,n,a);case 3:e:{if(Ol(t,t.stateNode.containerInfo),e===null)throw Error(M(387));o=t.pendingProps;var s=t.memoizedState;n=s.element,fm(e,t),ws(t,o,null,a);var i=t.memoizedState;if(o=i.cache,ro(t,Fe,o),o!==s.cache&&cm(t,[Fe],a,!0),Cs(),o=i.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=A5(e,t,o,a);break e}else if(o!==n){n=qt(Error(M(424)),t),Hs(n),t=A5(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}fe=jt(e.firstChild),nt=t,Z=!0,go=null,Zt=!0,a=QU(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(on(),o===n){t=Pa(e,t,a);break e}at(e,t,o,a)}t=t.child}return t;case 26:return Ml(e,t),e===null?(a=Z5(t.type,null,t.pendingProps,null))?t.memoizedState=a:Z||(a=t.type,e=t.pendingProps,o=ac(ho.current).createElement(a),o[ot]=t,o[yt]=e,st(o,a,e),Ke(o),t.stateNode=o):t.memoizedState=Z5(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qf(t),e===null&&Z&&(o=t.stateNode=L7(t.type,t.pendingProps,ho.current),nt=t,Zt=!0,n=fe,Eo(t.type)?(zm=n,fe=jt(o.firstChild)):fe=n),at(e,t,t.pendingProps.children,a),Ml(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&Z){if(n=o=fe)o=Vq(o,t.type,t.pendingProps,Zt),o!==null?(t.stateNode=o,nt=t,fe=jt(o.firstChild),Zt=!1,n=!0):n=!1;n||To(t)}return Qf(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Nm(n,s)?o=null:i!==null&&Nm(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=cd(e,t,sq,null,null,a),Ps._currentValue=n),Ml(e,t),at(e,t,o,a),t.child;case 6:if(e===null&&Z){if(e=a=fe)a=qq(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,nt=t,fe=null,e=!0):e=!1;e||To(t)}return null;case 13:return UF(e,t,a);case 4:return Ol(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=rn(t,null,o,a):at(e,t,o,a),t.child;case 11:return S5(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,ro(t,t.type,o.value),at(e,t,o.children,a),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,nn(t),n=rt(n),o=o(n),t.flags|=1,at(e,t,o,a),t.child;case 14:return v5(e,t,t.type,t.pendingProps,a);case 15:return kF(e,t,t.type,t.pendingProps,a);case 19:return FF(e,t,a);case 31:return pq(e,t,a);case 22:return zF(e,t,a,t.pendingProps);case 24:return nn(t),o=rt(Fe),e===null?(n=nd(),n===null&&(n=re,s=od(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:o,cache:n},sd(t),ro(t,Fe,n)):((e.lanes&a)!==0&&(fm(e,t),ws(t,null,null,a),Cs()),n=e.memoizedState,s=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ro(t,Fe,o)):(o=s.cache,ro(t,Fe,o),o!==n.cache&&cm(t,[Fe],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(M(156,t.tag))}function xa(e){e.flags|=4}function Bf(e,t,a,o,n){if(t=(e.mode&32)!==0)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(u7())e.flags|=8192;else throw tn=Gl,rd}else e.flags&=-16777217}function x5(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!N7(t))if(u7())e.flags|=8192;else throw tn=Gl,rd}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fU():536870912,e.lanes|=t,dr|=t)}function rs(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function gq(e,t,a){var o=t.pendingProps;switch(ad(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return ue(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ka(Fe),ir(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)zn(t)?xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wf());return ue(t),null;case 26:var{type:n,memoizedState:s}=t;return e===null?(xa(t),s!==null?(ue(t),x5(t,s)):(ue(t),Bf(t,n,null,o,a))):s?s!==e.memoizedState?(xa(t),ue(t),x5(t,s)):(ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&xa(t),ue(t),Bf(t,n,e,o,a)),null;case 27:if(Hl(t),a=ho.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return ue(t),null}e=ha.current,zn(t)?t5(t,e):(e=L7(n,o,a),t.stateNode=e,xa(t))}return ue(t),null;case 5:if(Hl(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return ue(t),null}if(s=ha.current,zn(t))t5(t,s);else{var i=ac(ho.current);switch(s){case 1:s=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=i.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?i.createElement(n,{is:o.is}):i.createElement(n)}}s[ot]=t,s[yt]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)s.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=s;e:switch(st(s,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&xa(t)}}return ue(t),Bf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(M(166));if(e=ho.current,zn(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,n=nt,n!==null)switch(n.tag){case 27:case 5:o=n.memoizedProps}e[ot]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||x7(e.nodeValue,a)?!0:!1,e||To(t,!0)}else e=ac(e).createTextNode(o),e[ot]=t,t.stateNode=e}return ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=zn(t),a!==null){if(e===null){if(!o)throw Error(M(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(557));e[ot]=t}else on(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),e=!1}else a=wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Mt(t),t;return Mt(t),null}if((t.flags&128)!==0)throw Error(M(558))}return ue(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=zn(t),o!==null&&o.dehydrated!==null){if(e===null){if(!n)throw Error(M(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(M(317));n[ot]=t}else on(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),n=!1}else n=wf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Mt(t),t;return Mt(t),null}}if(Mt(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ml(t,t.updateQueue),ue(t),null;case 4:return ir(),e===null&&Ed(t.stateNode.containerInfo),ue(t),null;case 10:return ka(t.type),ue(t),null;case 19:if(Je(He),o=t.memoizedState,o===null)return ue(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)rs(o,!1);else{if(Se!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=ql(e),s!==null){t.flags|=128,rs(o,!1),e=s.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)PU(a,e),a=a.sibling;return se(He,He.current&1|2),Z&&La(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Lt()>Wl&&(t.flags|=128,n=!0,rs(o,!1),t.lanes=4194304)}else{if(!n)if(e=ql(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),rs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Z)return ue(t),null}else 2*Lt()-o.renderingStartTime>Wl&&a!==536870912&&(t.flags|=128,n=!0,rs(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Lt(),e.sibling=null,a=He.current,se(He,n?a&1|2:a&1),Z&&La(t,o.treeForkCount),e;return ue(t),null;case 22:case 23:return Mt(t),id(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),a=t.updateQueue,a!==null&&ml(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Je(en),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ka(Fe),ue(t),null;case 25:return null;case 30:return null}throw Error(M(156,t.tag))}function Iq(e,t){switch(ad(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ka(Fe),ir(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Hl(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(M(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(He),null;case 4:return ir(),null;case 10:return ka(t.type),null;case 22:case 23:return Mt(t),id(),e!==null&&Je(en),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ka(Fe),null;case 25:return null;default:return null}}function PF(e,t){switch(ad(t),t.tag){case 3:ka(Fe),ir();break;case 26:case 27:case 5:Hl(t);break;case 4:ir();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Je(He);break;case 10:ka(t.type);break;case 22:case 23:Mt(t),id(),e!==null&&Je(en);break;case 24:ka(Fe)}}function Js(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e){o=void 0;var{create:s,inst:i}=a;o=s(),i.destroy=o}a=a.next}while(a!==n)}}catch(l){J(t,t.return,l)}}function xo(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var s=n.next;o=s;do{if((o.tag&e)===e){var i=o.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,n=t;var c=a,u=l;try{u()}catch(f){J(n,c,f)}}}o=o.next}while(o!==s)}}catch(f){J(t,t.return,f)}}function GF(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{KU(t,a)}catch(o){J(e,e.return,o)}}}function VF(e,t,a){a.props=ln(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){J(e,t,o)}}function Ts(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a==="function"?e.refCleanup=a(o):a.current=o}}catch(n){J(e,t,n)}}function pa(e,t){var{ref:a,refCleanup:o}=e;if(a!==null)if(typeof o==="function")try{o()}catch(n){J(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(n){J(e,t,n)}else a.current=null}function qF(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(n){J(e,e.return,n)}}function Nf(e,t,a){try{var o=e.stateNode;zq(o,e.type,a,t),o[yt]=t}catch(n){J(e,e.return,n)}}function ZF(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Eo(e.type)||e.tag===4}function Of(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ZF(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Eo(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cm(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Na));else if(o!==4&&(o===27&&Eo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Cm(e,t,a),e=e.sibling;e!==null;)Cm(e,t,a),e=e.sibling}function Ql(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Eo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ql(e,t,a),e=e.sibling;e!==null;)Ql(e,t,a),e=e.sibling}function XF(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);st(t,o,a),t[ot]=e,t[yt]=a}catch(s){J(e,e.return,s)}}var Ra=!1,Ue=!1,Hf=!1,M5=typeof WeakSet==="function"?WeakSet:Set,We=null;function Sq(e,t){if(e=e.containerInfo,Rm=sc,e=NU(e),Km(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var{anchorOffset:n,focusNode:s}=o;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(b){a=null;break e}var i=0,l=-1,c=-1,u=0,f=0,m=e,d=null;t:for(;;){for(var p;;){if(m!==a||n!==0&&m.nodeType!==3||(l=i+n),m!==s||o!==0&&m.nodeType!==3||(c=i+o),m.nodeType===3&&(i+=m.nodeValue.length),(p=m.firstChild)===null)break;d=m,m=p}for(;;){if(m===e)break t;if(d===a&&++u===n&&(l=i),d===s&&++f===o&&(c=i),(p=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=p}a=l===-1||c===-1?null:{start:l,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;Bm={focusedElem:e,selectionRange:a},sc=!1;for(We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,n=s.memoizedProps,s=s.memoizedState,o=a.stateNode;try{var v=ln(a.type,n);e=o.getSnapshotBeforeUpdate(v,s),o.__reactInternalSnapshotBeforeUpdate=e}catch(b){J(a,a.return,b)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Om(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Om(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(M(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function jF(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Da(e,a),o&4&&Js(5,a);break;case 1:if(Da(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){J(a,a.return,i)}else{var n=ln(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){J(a,a.return,i)}}o&64&&GF(a),o&512&&Ts(a,a.return);break;case 3:if(Da(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{KU(e,t)}catch(i){J(a,a.return,i)}}break;case 27:t===null&&o&4&&XF(a);case 26:case 5:Da(e,a),t===null&&o&4&&qF(a),o&512&&Ts(a,a.return);break;case 12:Da(e,a);break;case 31:Da(e,a),o&4&&WF(e,a);break;case 13:Da(e,a),o&4&&KF(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Mq.bind(null,a),Zq(e,a))));break;case 22:if(o=a.memoizedState!==null||Ra,!o){t=t!==null&&t.memoizedState!==null||Ue,n=Ra;var s=Ue;Ra=o,(Ue=t)&&!s?Ea(e,a,(a.subtreeFlags&8772)!==0):Da(e,a),Ra=n,Ue=s}break;case 30:break;default:Da(e,a)}}function YF(e){var t=e.alternate;t!==null&&(e.alternate=null,YF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ge=null,It=!1;function Ma(e,t,a){for(a=a.child;a!==null;)QF(e,t,a),a=a.sibling}function QF(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount==="function")try{Rt.onCommitFiberUnmount(Zs,a)}catch(s){}switch(a.tag){case 26:Ue||pa(a,t),Ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ue||pa(a,t);var o=ge,n=It;Eo(a.type)&&(ge=a.stateNode,It=!1),Ma(e,t,a),Es(a.stateNode),ge=o,It=n;break;case 5:Ue||pa(a,t);case 6:if(o=ge,n=It,ge=null,Ma(e,t,a),ge=o,It=n,ge!==null)if(It)try{(ge.nodeType===9?ge.body:ge.nodeName==="HTML"?ge.ownerDocument.body:ge).removeChild(a.stateNode)}catch(s){J(a,t,s)}else try{ge.removeChild(a.stateNode)}catch(s){J(a,t,s)}break;case 18:ge!==null&&(It?(e=ge,_5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ir(e)):_5(ge,a.stateNode));break;case 4:o=ge,n=It,ge=a.stateNode.containerInfo,It=!0,Ma(e,t,a),ge=o,It=n;break;case 0:case 11:case 14:case 15:xo(2,a,t),Ue||xo(4,a,t),Ma(e,t,a);break;case 1:Ue||(pa(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&VF(a,t,o)),Ma(e,t,a);break;case 21:Ma(e,t,a);break;case 22:Ue=(o=Ue)||a.memoizedState!==null,Ma(e,t,a),Ue=o;break;default:Ma(e,t,a)}}function WF(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ir(e)}catch(a){J(t,t.return,a)}}}function KF(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ir(e)}catch(a){J(t,t.return,a)}}function vq(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new M5),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new M5),t;default:throw Error(M(435,e.tag))}}function dl(e,t){var a=vq(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var n=Dq.bind(null,e,o);o.then(n,n)}})}function ht(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=a[o],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Eo(l.type)){ge=l.stateNode,It=!1;break e}break;case 5:ge=l.stateNode,It=!1;break e;case 3:case 4:ge=l.stateNode.containerInfo,It=!0;break e}l=l.return}if(ge===null)throw Error(M(160));QF(s,i,n),ge=null,It=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)JF(t,e),t=t.sibling}var aa=null;function JF(e,t){var{alternate:a,flags:o}=e;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),gt(e),o&4&&(xo(3,e,e.return),Js(3,e),xo(5,e,e.return));break;case 1:ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),o&64&&Ra&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var n=aa;if(ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),o&4){var s=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(o){case"title":if(s=n.getElementsByTagName("title")[0],!s||s[Ys]||s[ot]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))s=n.createElement(o),n.head.insertBefore(s,n.querySelector("head > title"));st(s,o,a),s[ot]=e,Ke(s),o=s;break e;case"link":var i=j5("link","href",n).get(o+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(s=i[l],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}s=n.createElement(o),st(s,o,a),n.head.appendChild(s);break;case"meta":if(i=j5("meta","content",n).get(o+(a.content||""))){for(l=0;l<i.length;l++)if(s=i[l],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}s=n.createElement(o),st(s,o,a),n.head.appendChild(s);break;default:throw Error(M(468,o))}s[ot]=e,Ke(s),o=s}e.stateNode=o}else Y5(n,e.type,e.stateNode);else e.stateNode=X5(n,o,e.memoizedProps);else s!==o?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,o===null?Y5(n,e.type,e.stateNode):X5(n,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Nf(e,e.memoizedProps,a.memoizedProps)}break;case 27:ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),a!==null&&o&4&&Nf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),e.flags&32){n=e.stateNode;try{cr(n,"")}catch(v){J(e,e.return,v)}}o&4&&e.stateNode!=null&&(n=e.memoizedProps,Nf(e,n,a!==null?a.memoizedProps:n)),o&1024&&(Hf=!0);break;case 6:if(ht(t,e),gt(e),o&4){if(e.stateNode===null)throw Error(M(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(v){J(e,e.return,v)}}break;case 3:if(Ll=null,n=aa,aa=oc(t.containerInfo),ht(t,e),aa=n,gt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(v){J(e,e.return,v)}Hf&&(Hf=!1,$F(e));break;case 4:o=aa,aa=oc(e.stateNode.containerInfo),ht(t,e),gt(e),aa=o;break;case 12:ht(t,e),gt(e);break;case 31:ht(t,e),gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dl(e,o)));break;case 13:ht(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(vc=Lt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dl(e,o)));break;case 22:n=e.memoizedState!==null;var c=a!==null&&a.memoizedState!==null,u=Ra,f=Ue;if(Ra=u||n,Ue=f||c,ht(t,e),Ue=f,Ra=u,gt(e),o&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||c||Ra||Ue||Ko(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){c=a=t;try{if(s=c.stateNode,n)i=s.style,typeof i.setProperty==="function"?i.setProperty("display","none","important"):i.display="none";else{l=c.stateNode;var m=c.memoizedProps.style,d=m!==void 0&&m!==null&&m.hasOwnProperty("display")?m.display:null;l.style.display=d==null||typeof d==="boolean"?"":(""+d).trim()}}catch(v){J(c,c.return,v)}}}else if(t.tag===6){if(a===null){c=t;try{c.stateNode.nodeValue=n?"":c.memoizedProps}catch(v){J(c,c.return,v)}}}else if(t.tag===18){if(a===null){c=t;try{var p=c.stateNode;n?P5(p,!0):P5(c.stateNode,!1)}catch(v){J(c,c.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,dl(e,a))));break;case 19:ht(t,e),gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,dl(e,o)));break;case 30:break;case 21:break;default:ht(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(ZF(o)){a=o;break}o=o.return}if(a==null)throw Error(M(160));switch(a.tag){case 27:var n=a.stateNode,s=Of(e);Ql(e,s,n);break;case 5:var i=a.stateNode;a.flags&32&&(cr(i,""),a.flags&=-33);var l=Of(e);Ql(e,l,i);break;case 3:case 4:var c=a.stateNode.containerInfo,u=Of(e);Cm(e,u,c);break;default:throw Error(M(161))}}catch(f){J(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $F(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$F(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jF(e,t.alternate,t),t=t.sibling}function Ko(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xo(4,t,t.return),Ko(t);break;case 1:pa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount==="function"&&VF(t,t.return,a),Ko(t);break;case 27:Es(t.stateNode);case 26:case 5:pa(t,t.return),Ko(t);break;case 22:t.memoizedState===null&&Ko(t);break;case 30:Ko(t);break;default:Ko(t)}e=e.sibling}}function Ea(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;){var o=t.alternate,n=e,s=t,i=s.flags;switch(s.tag){case 0:case 11:case 15:Ea(n,s,a),Js(4,s);break;case 1:if(Ea(n,s,a),o=s,n=o.stateNode,typeof n.componentDidMount==="function")try{n.componentDidMount()}catch(u){J(o,o.return,u)}if(o=s,n=o.updateQueue,n!==null){var l=o.stateNode;try{var c=n.shared.hiddenCallbacks;if(c!==null)for(n.shared.hiddenCallbacks=null,n=0;n<c.length;n++)WU(c[n],l)}catch(u){J(o,o.return,u)}}a&&i&64&&GF(s),Ts(s,s.return);break;case 27:XF(s);case 26:case 5:Ea(n,s,a),a&&o===null&&i&4&&qF(s),Ts(s,s.return);break;case 12:Ea(n,s,a);break;case 31:Ea(n,s,a),a&&i&4&&WF(n,s);break;case 13:Ea(n,s,a),a&&i&4&&KF(n,s);break;case 22:s.memoizedState===null&&Ea(n,s,a),Ts(s,s.return);break;case 30:break;default:Ea(n,s,a)}t=t.sibling}}function wd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ws(a))}function Ad(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ws(e))}function ta(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)e7(e,t,a,o),t=t.sibling}function e7(e,t,a,o){var n=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,a,o),n&2048&&Js(9,t);break;case 1:ta(e,t,a,o);break;case 3:ta(e,t,a,o),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ws(e)));break;case 12:if(n&2048){ta(e,t,a,o),e=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l==="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){J(t,t.return,c)}}else ta(e,t,a,o);break;case 31:ta(e,t,a,o);break;case 13:ta(e,t,a,o);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?s._visibility&2?ta(e,t,a,o):xs(e,t):s._visibility&2?ta(e,t,a,o):(s._visibility|=2,Fn(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),n&2048&&wd(i,t);break;case 24:ta(e,t,a,o),n&2048&&Ad(t.alternate,t);break;default:ta(e,t,a,o)}}function Fn(e,t,a,o,n){n=n&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var s=e,i=t,l=a,c=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(s,i,l,c,n),Js(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?Fn(s,i,l,c,n):xs(s,i):(f._visibility|=2,Fn(s,i,l,c,n)),n&&u&2048&&wd(i.alternate,i);break;case 24:Fn(s,i,l,c,n),n&&u&2048&&Ad(i.alternate,i);break;default:Fn(s,i,l,c,n)}t=t.sibling}}function xs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,n=o.flags;switch(o.tag){case 22:xs(a,o),n&2048&&wd(o.alternate,o);break;case 24:xs(a,o),n&2048&&Ad(o.alternate,o);break;default:xs(a,o)}t=t.sibling}}var ps=8192;function Un(e,t,a){if(e.subtreeFlags&ps)for(e=e.child;e!==null;)t7(e,t,a),e=e.sibling}function t7(e,t,a){switch(e.tag){case 26:Un(e,t,a),e.flags&ps&&e.memoizedState!==null&&oZ(a,aa,e.memoizedState,e.memoizedProps);break;case 5:Un(e,t,a);break;case 3:case 4:var o=aa;aa=oc(e.stateNode.containerInfo),Un(e,t,a),aa=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ps,ps=16777216,Un(e,t,a),ps=o):Un(e,t,a));break;default:Un(e,t,a)}}function a7(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];We=o,n7(o,e)}a7(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)o7(e),e=e.sibling}function o7(e){switch(e.tag){case 0:case 11:case 15:ss(e),e.flags&2048&&xo(9,e,e.return);break;case 3:ss(e);break;case 12:ss(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dl(e)):ss(e);break;default:ss(e)}}function Dl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];We=o,n7(o,e)}a7(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xo(8,t,t.return),Dl(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Dl(t));break;default:Dl(t)}e=e.sibling}}function n7(e,t){for(;We!==null;){var a=We;switch(a.tag){case 0:case 11:case 15:xo(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ws(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,We=o;else e:for(a=e;We!==null;){o=We;var{sibling:n,return:s}=o;if(YF(o),o===a){We=null;break e}if(n!==null){n.return=s,We=n;break e}We=s}}}var yq={getCacheForType:function(e){var t=rt(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt(Fe).controller.signal}},bq=typeof WeakMap==="function"?WeakMap:Map,X=0,re=null,P=null,q=0,K=0,xt=null,fo=!1,Cr=!1,Td=!1,Ga=0,Se=0,Mo=0,an=0,xd=0,Et=0,dr=0,Ms=null,St=null,wm=!1,vc=0,r7=0,Wl=1/0,Kl=null,vo=null,qe=0,yo=null,pr=null,za=0,Am=0,Tm=null,s7=null,Ds=0,xm=null;function Nt(){return(X&2)!==0&&q!==0?q&-q:H.T!==null?Dd():hU()}function i7(){if(Et===0)if((q&536870912)===0||Z){var e=rl;rl<<=1,(rl&3932160)===0&&(rl=262144),Et=e}else Et=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Et}function vt(e,t,a){if(e===re&&(K===2||K===9)||e.cancelPendingCommit!==null)hr(e,0),mo(e,q,Et,!1);if(js(e,a),(X&2)===0||e!==re)e===re&&((X&2)===0&&(an|=a),Se===4&&mo(e,q,Et,!1)),Ia(e)}function l7(e,t,a){if((X&6)!==0)throw Error(M(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Xs(e,t),n=o?Aq(e,t):kf(e,t,!0),s=o;do{if(n===0){Cr&&!o&&mo(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!Cq(a)){n=kf(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;n=Ms;var c=l.current.memoizedState.isDehydrated;if(c&&(hr(l,i).flags|=256),i=kf(l,i,!1),i!==2){if(Td&&!c){l.errorRecoveryDisabledLanes|=s,an|=s,n=4;break e}s=St,St=n,s!==null&&(St===null?St=s:St.push.apply(St,s))}n=i}if(s=!1,n!==2)continue}}if(n===1){hr(e,0),mo(e,t,0,!0);break}e:{switch(o=e,s=n,s){case 0:case 1:throw Error(M(345));case 4:if((t&4194048)!==t)break;case 6:mo(o,t,Et,!fo);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(M(329))}if((t&62914560)===t&&(n=vc+300-Lt(),10<n)){if(mo(o,t,Et,!fo),lc(o,0,!0)!==0)break e;za=t,o.timeoutHandle=D7(D5.bind(null,o,a,St,Kl,wm,t,Et,an,dr,fo,s,"Throttled",-0,0),n);break e}D5(o,a,St,Kl,wm,t,Et,an,dr,fo,s,null,-0,0)}}break}while(1);Ia(e)}function D5(e,t,a,o,n,s,i,l,c,u,f,m,d,p){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Na},t7(t,s,m);var v=(s&62914560)===s?vc-Lt():(s&4194048)===s?r7-Lt():0;if(v=nZ(m,v),v!==null){za=s,e.cancelPendingCommit=v(L5.bind(null,e,t,s,a,o,n,i,l,c,f,m,null,d,p)),mo(e,s,i,!u);return}}L5(e,t,s,a,o,n,i,l,c)}function Cq(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var n=a[o],s=n.getSnapshot;n=n.value;try{if(!Ot(s(),n))return!1}catch(i){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 mo(e,t,a,o){t&=~xd,t&=~an,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var s=31-Bt(n),i=1<<s;o[s]=-1,n&=~i}a!==0&&mU(e,a,t)}function yc(){return(X&6)===0?($s(0,!1),!1):!0}function Md(){if(P!==null){if(K===0)var e=P.return;else e=P,Oa=dn=null,md(e),nr=null,ks=0,e=P;for(;e!==null;)PF(e.alternate,e),e=e.return;P=null}}function hr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,_q(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,Md(),re=e,P=a=Ha(e.current,null),q=t,K=0,xt=null,fo=!1,Cr=Xs(e,t),Td=!1,dr=Et=xd=an=Mo=Se=0,St=Ms=null,wm=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var n=31-Bt(o),s=1<<n;t|=e[n],o&=~s}return Ga=t,mc(),a}function c7(e,t){F=null,H.H=Us,t===br||t===pc?(t=s5(),K=3):t===rd?(t=s5(),K=4):K=t===bd?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,xt=t,P===null&&(Se=1,jl(e,qt(t,e.current)))}function u7(){var e=Ht.current;return e===null?!0:(q&4194048)===q?Xt===null?!0:!1:(q&62914560)===q||(q&536870912)!==0?e===Xt:!1}function f7(){var e=H.H;return H.H=Us,e===null?Us:e}function m7(){var e=H.A;return H.A=yq,e}function Jl(){Se=4,fo||(q&4194048)!==q&&Ht.current!==null||(Cr=!0),(Mo&134217727)===0&&(an&134217727)===0||re===null||mo(re,q,Et,!1)}function kf(e,t,a){var o=X;X|=2;var n=f7(),s=m7();if(re!==e||q!==t)Kl=null,hr(e,t);t=!1;var i=Se;e:do try{if(K!==0&&P!==null){var l=P,c=xt;switch(K){case 8:Md(),i=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var u=K;if(K=0,xt=null,$n(e,l,c,u),a&&Cr){i=0;break e}break;default:u=K,K=0,xt=null,$n(e,l,c,u)}}wq(),i=Se;break}catch(f){c7(e,f)}while(1);return t&&e.shellSuspendCounter++,Oa=dn=null,X=o,H.H=n,H.A=s,P===null&&(re=null,q=0,mc()),i}function wq(){for(;P!==null;)d7(P)}function Aq(e,t){var a=X;X|=2;var o=f7(),n=m7();re!==e||q!==t?(Kl=null,Wl=Lt()+500,hr(e,t)):Cr=Xs(e,t);e:do try{if(K!==0&&P!==null){t=P;var s=xt;t:switch(K){case 1:K=0,xt=null,$n(e,t,s,1);break;case 2:case 9:if(r5(s)){K=0,xt=null,E5(t);break}t=function(){K!==2&&K!==9||re!==e||(K=7),Ia(e)},s.then(t,t);break e;case 3:K=7;break e;case 4:K=5;break e;case 7:r5(s)?(K=0,xt=null,E5(t)):(K=0,xt=null,$n(e,t,s,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var l=P;if(i?N7(i):l.stateNode.complete){K=0,xt=null;var c=l.sibling;if(c!==null)P=c;else{var u=l.return;u!==null?(P=u,bc(u)):P=null}break t}}K=0,xt=null,$n(e,t,s,5);break;case 6:K=0,xt=null,$n(e,t,s,6);break;case 8:Md(),Se=6;break e;default:throw Error(M(462))}}Tq();break}catch(f){c7(e,f)}while(1);if(Oa=dn=null,H.H=o,H.A=n,X=a,P!==null)return 0;return re=null,q=0,mc(),Se}function Tq(){for(;P!==null&&!YG();)d7(P)}function d7(e){var t=_F(e.alternate,e,Ga);e.memoizedProps=e.pendingProps,t===null?bc(e):P=t}function E5(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=C5(a,t,t.pendingProps,t.type,void 0,q);break;case 11:t=C5(a,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:md(t);default:PF(a,t),t=P=PU(t,Ga),t=_F(a,t,Ga)}e.memoizedProps=e.pendingProps,t===null?bc(e):P=t}function $n(e,t,a,o){Oa=dn=null,md(t),nr=null,ks=0;var n=t.return;try{if(dq(e,n,t,a,q)){Se=1,jl(e,qt(a,e.current)),P=null;return}}catch(s){if(n!==null)throw P=n,s;Se=1,jl(e,qt(a,e.current)),P=null;return}if(t.flags&32768){if(Z||o===1)e=!0;else if(Cr||(q&536870912)!==0)e=!1;else if(fo=e=!0,o===2||o===9||o===3||o===6)o=Ht.current,o!==null&&o.tag===13&&(o.flags|=16384);p7(t,e)}else bc(t)}function bc(e){var t=e;do{if((t.flags&32768)!==0){p7(t,fo);return}e=t.return;var a=gq(t.alternate,t,Ga);if(a!==null){P=a;return}if(t=t.sibling,t!==null){P=t;return}P=t=e}while(t!==null);Se===0&&(Se=5)}function p7(e,t){do{var a=Iq(e.alternate,e);if(a!==null){a.flags&=32767,P=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){P=e;return}P=e=a}while(e!==null);Se=6,P=null}function L5(e,t,a,o,n,s,i,l,c){e.cancelPendingCommit=null;do Cc();while(qe!==0);if((X&6)!==0)throw Error(M(327));if(t!==null){if(t===e.current)throw Error(M(177));if(s=t.lanes|t.childLanes,s|=Jm,nV(e,a,s,i,l,c),e===re&&(P=re=null,q=0),pr=t,yo=e,za=a,Am=s,Tm=n,s7=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Eq(kl,function(){return v7(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,n=j.p,j.p=2,i=X,X|=4;try{Sq(e,t,a)}finally{X=i,j.p=n,H.T=o}}qe=1,h7(),g7(),I7()}}function h7(){if(qe===1){qe=0;var e=yo,t=pr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var o=j.p;j.p=2;var n=X;X|=4;try{JF(t,e);var s=Bm,i=NU(e.containerInfo),l=s.focusedElem,c=s.selectionRange;if(i!==l&&l&&l.ownerDocument&&BU(l.ownerDocument.documentElement,l)){if(c!==null&&Km(l)){var{start:u,end:f}=c;if(f===void 0&&(f=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(f,l.value.length);else{var m=l.ownerDocument||document,d=m&&m.defaultView||window;if(d.getSelection){var p=d.getSelection(),v=l.textContent.length,b=Math.min(c.start,v),C=c.end===void 0?b:Math.min(c.end,v);!p.extend&&b>C&&(i=C,C=b,b=i);var g=Jz(l,b),I=Jz(l,C);if(g&&I&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==I.node||p.focusOffset!==I.offset)){var S=m.createRange();S.setStart(g.node,g.offset),p.removeAllRanges(),b>C?(p.addRange(S),p.extend(I.node,I.offset)):(S.setEnd(I.node,I.offset),p.addRange(S))}}}}m=[];for(p=l;p=p.parentNode;)p.nodeType===1&&m.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof l.focus==="function"&&l.focus();for(l=0;l<m.length;l++){var y=m[l];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}sc=!!Rm,Bm=Rm=null}finally{X=n,j.p=o,H.T=a}}e.current=t,qe=2}}function g7(){if(qe===2){qe=0;var e=yo,t=pr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var o=j.p;j.p=2;var n=X;X|=4;try{jF(e,t.alternate,t)}finally{X=n,j.p=o,H.T=a}}qe=3}}function I7(){if(qe===4||qe===3){qe=0,QG();var e=yo,t=pr,a=za,o=s7;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,pr=yo=null,S7(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(vo=null),qm(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot==="function")try{Rt.onCommitFiberRoot(Zs,t,void 0,(t.current.flags&128)===128)}catch(c){}if(o!==null){t=H.T,n=j.p,j.p=2,H.T=null;try{for(var s=e.onRecoverableError,i=0;i<o.length;i++){var l=o[i];s(l.value,{componentStack:l.stack})}}finally{H.T=t,j.p=n}}(za&3)!==0&&Cc(),Ia(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===xm?Ds++:(Ds=0,xm=e):Ds=0,$s(0,!1)}}function S7(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ws(t)))}function Cc(){return h7(),g7(),I7(),v7()}function v7(){if(qe!==5)return!1;var e=yo,t=Am;Am=0;var a=qm(za),o=H.T,n=j.p;try{j.p=32>a?32:a,H.T=null,a=Tm,Tm=null;var s=yo,i=za;if(qe=0,pr=yo=null,za=0,(X&6)!==0)throw Error(M(331));var l=X;if(X|=4,o7(s.current),e7(s,s.current,i,a),X=l,$s(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot==="function")try{Rt.onPostCommitFiberRoot(Zs,s)}catch(c){}return!0}finally{j.p=n,H.T=o,S7(e,t)}}function R5(e,t,a){t=qt(a,t),t=vm(e.stateNode,t,2),e=So(e,t,2),e!==null&&(js(e,2),Ia(e))}function J(e,t,a){if(e.tag===3)R5(e,e,a);else for(;t!==null;){if(t.tag===3){R5(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(vo===null||!vo.has(o))){e=qt(a,e),a=OF(2),o=So(t,a,2),o!==null&&(HF(a,o,t,e),js(o,2),Ia(o));break}}t=t.return}}function zf(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new bq;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(Td=!0,n.add(a),e=xq.bind(null,e,t,a),t.then(e,e))}function xq(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,re===e&&(q&a)===a&&(Se===4||Se===3&&(q&62914560)===q&&300>Lt()-vc?(X&2)===0&&hr(e,0):xd|=a,dr===q&&(dr=0)),Ia(e)}function y7(e,t){t===0&&(t=fU()),e=mn(e,t),e!==null&&(js(e,t),Ia(e))}function Mq(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),y7(e,a)}function Dq(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(M(314))}o!==null&&o.delete(t),y7(e,a)}function Eq(e,t){return Gm(e,t)}var $l=null,_n=null,Mm=!1,ec=!1,Uf=!1,po=0;function Ia(e){e!==_n&&e.next===null&&(_n===null?$l=_n=e:_n=_n.next=e),ec=!0,Mm||(Mm=!0,Rq())}function $s(e,t){if(!Uf&&ec){Uf=!0;do{var a=!1;for(var o=$l;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var s=0;else{var{suspendedLanes:i,pingedLanes:l}=o;s=(1<<31-Bt(42|e)+1)-1,s&=n&~(i&~l),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,B5(o,s))}else s=q,s=lc(o,o===re?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(s&3)===0||Xs(o,s)||(a=!0,B5(o,s));o=o.next}}while(a);Uf=!1}}function Lq(){b7()}function b7(){ec=Mm=!1;var e=0;po!==0&&Fq()&&(e=po);for(var t=Lt(),a=null,o=$l;o!==null;){var n=o.next,s=C7(o,t);if(s===0)o.next=null,a===null?$l=n:a.next=n,n===null&&(_n=a);else if(a=o,e!==0||(s&3)!==0)ec=!0;o=n}qe!==0&&qe!==5||$s(e,!1),po!==0&&(po=0)}function C7(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,s=e.pendingLanes&-62914561;0<s;){var i=31-Bt(s),l=1<<i,c=n[i];if(c===-1){if((l&a)===0||(l&o)!==0)n[i]=oV(l,t)}else c<=t&&(e.expiredLanes|=l);s&=~l}if(t=re,a=q,a=lc(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&pf(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xs(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&pf(o),qm(a)){case 2:case 8:a=cU;break;case 32:a=kl;break;case 268435456:a=uU;break;default:a=kl}return o=w7.bind(null,e),a=Gm(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&pf(o),e.callbackPriority=2,e.callbackNode=null,2}function w7(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Cc()&&e.callbackNode!==a)return null;var o=q;if(o=lc(e,e===re?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return l7(e,o,t),C7(e,Lt()),e.callbackNode!=null&&e.callbackNode===a?w7.bind(null,e):null}function B5(e,t){if(Cc())return null;l7(e,t,!0)}function Rq(){Pq(function(){(X&6)!==0?Gm(lU,Lq):b7()})}function Dd(){if(po===0){var e=ur;e===0&&(e=nl,nl<<=1,(nl&261888)===0&&(nl=256)),po=e}return po}function N5(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:Sl(""+e)}function O5(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Bq(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var s=N5((n[yt]||null).action),i=o.submitter;i&&(t=(t=i[yt]||null)?N5(t.formAction):i.getAttribute("formAction"),t!==null&&(s=t,i=null));var l=new cc("action","action",null,o,n);e.push({event:l,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(po!==0){var c=i?O5(n,i):new FormData(n);Im(a,{pending:!0,data:c,method:n.method,action:s},null,c)}}else typeof s==="function"&&(l.preventDefault(),c=i?O5(n,i):new FormData(n),Im(a,{pending:!0,data:c,method:n.method,action:s},s,c))},currentTarget:n}]})}}for(hs=0;hs<rm.length;hs++)gs=rm[hs],Dm=gs.toLowerCase(),Em=gs[0].toUpperCase()+gs.slice(1),oa(Dm,"on"+Em);var gs,Dm,Em,hs;oa(HU,"onAnimationEnd");oa(kU,"onAnimationIteration");oa(zU,"onAnimationStart");oa("dblclick","onDoubleClick");oa("focusin","onFocus");oa("focusout","onBlur");oa(WV,"onTransitionRun");oa(KV,"onTransitionStart");oa(JV,"onTransitionCancel");oa(UU,"onTransitionEnd");lr("onMouseEnter",["mouseout","mouseover"]);lr("onMouseLeave",["mouseout","mouseover"]);lr("onPointerEnter",["pointerout","pointerover"]);lr("onPointerLeave",["pointerout","pointerover"]);cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cn("onBeforeInput",["compositionend","keypress","textInput","paste"]);cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),Nq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function A7(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],n=o.event;o=o.listeners;e:{var s=void 0;if(t)for(var i=o.length-1;0<=i;i--){var l=o[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&n.isPropagationStopped())break e;s=l,n.currentTarget=u;try{s(n)}catch(f){Ul(f)}n.currentTarget=null,s=c}else for(i=0;i<o.length;i++){if(l=o[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&n.isPropagationStopped())break e;s=l,n.currentTarget=u;try{s(n)}catch(f){Ul(f)}n.currentTarget=null,s=c}}}}function _(e,t){var a=t[Kf];a===void 0&&(a=t[Kf]=new Set);var o=e+"__bubble";a.has(o)||(T7(t,e,2,!1),a.add(o))}function Ff(e,t,a){var o=0;t&&(o|=4),T7(a,e,o,t)}var pl="_reactListening"+Math.random().toString(36).slice(2);function Ed(e){if(!e[pl]){e[pl]=!0,gU.forEach(function(a){a!=="selectionchange"&&(Nq.has(a)||Ff(a,!1,e),Ff(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pl]||(t[pl]=!0,Ff("selectionchange",!1,t))}}function T7(e,t,a,o){switch(U7(t)){case 2:var n=iZ;break;case 8:n=lZ;break;default:n=Nd}a=n.bind(null,t,a,e),n=void 0,!am||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function _f(e,t,a,o,n){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var l=o.stateNode.containerInfo;if(l===n)break;if(i===4)for(i=o.return;i!==null;){var c=i.tag;if((c===3||c===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;l!==null;){if(i=qn(l),i===null)return;if(c=i.tag,c===5||c===6||c===26||c===27){o=s=i;continue e}l=l.parentNode}}o=o.return}AU(function(){var u=s,f=jm(a),m=[];e:{var d=FU.get(e);if(d!==void 0){var p=cc,v=e;switch(e){case"keypress":if(yl(a)===0)break e;case"keydown":case"keyup":p=DV;break;case"focusin":v="focus",p=vf;break;case"focusout":v="blur",p=vf;break;case"beforeblur":case"afterblur":p=vf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Vz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=gV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=RV;break;case HU:case kU:case zU:p=vV;break;case UU:p=NV;break;case"scroll":case"scrollend":p=pV;break;case"wheel":p=HV;break;case"copy":case"cut":case"paste":p=bV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Zz;break;case"toggle":case"beforetoggle":p=zV}var b=(t&4)!==0,C=!b&&(e==="scroll"||e==="scrollend"),g=b?d!==null?d+"Capture":null:d;b=[];for(var I=u,S;I!==null;){var y=I;if(S=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||S===null||g===null||(y=Rs(I,g),y!=null&&b.push(_s(I,y,S))),C)break;I=I.return}0<b.length&&(d=new p(d,v,null,a,f),m.push({event:d,listeners:b}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&a!==tm&&(v=a.relatedTarget||a.fromElement)&&(qn(v)||v[Sr]))break e;if(p||d){if(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p){if(v=a.relatedTarget||a.toElement,p=u,v=v?qn(v):null,v!==null&&(C=qs(v),b=v.tag,v!==C||b!==5&&b!==27&&b!==6))v=null}else p=null,v=u;if(p!==v){if(b=Vz,y="onMouseLeave",g="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")b=Zz,y="onPointerLeave",g="onPointerEnter",I="pointer";if(C=p==null?d:us(p),S=v==null?d:us(v),d=new b(y,I+"leave",p,a,f),d.target=C,d.relatedTarget=S,y=null,qn(f)===u&&(b=new b(g,I+"enter",v,a,f),b.target=S,b.relatedTarget=C,y=b),C=y,p&&v)t:{b=Oq,g=p,I=v,S=0;for(y=g;y;y=b(y))S++;y=0;for(var w=I;w;w=b(w))y++;for(;0<S-y;)g=b(g),S--;for(;0<y-S;)I=b(I),y--;for(;S--;){if(g===I||I!==null&&g===I.alternate){b=g;break t}g=b(g),I=b(I)}b=null}else b=null;p!==null&&H5(m,d,p,b,!1),v!==null&&C!==null&&H5(m,C,v,b,!0)}}}e:{if(d=u?us(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var T=Qz;else if(Yz(d))if(LU)T=jV;else{T=ZV;var x=qV}else p=d.nodeName,!p||p.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Xm(u.elementType)&&(T=Qz):T=XV;if(T&&(T=T(e,u))){EU(m,T,a,f);break e}x&&x(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&em(d,"number",d.value)}switch(x=u?us(u):window,e){case"focusin":if(Yz(x)||x.contentEditable==="true")jn=x,om=u,vs=null;break;case"focusout":vs=om=jn=null;break;case"mousedown":nm=!0;break;case"contextmenu":case"mouseup":case"dragend":nm=!1,$z(m,a,f);break;case"selectionchange":if(QV)break;case"keydown":case"keyup":$z(m,a,f)}var E;if(Wm)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Xn?MU(e,a)&&(L="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(L="onCompositionStart");if(L&&(xU&&a.locale!=="ko"&&(Xn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Xn&&(E=TU()):(uo=f,Ym=("value"in uo)?uo.value:uo.textContent,Xn=!0)),x=tc(u,L),0<x.length&&(L=new qz(L,e,null,a,f),m.push({event:L,listeners:x}),E?L.data=E:(E=DU(a),E!==null&&(L.data=E)))),E=FV?_V(e,a):PV(e,a))L=tc(u,"onBeforeInput"),0<L.length&&(x=new qz("onBeforeInput","beforeinput",null,a,f),m.push({event:x,listeners:L}),x.data=E);Bq(m,e,u,a,f)}A7(m,t)})}function _s(e,t,a){return{instance:e,listener:t,currentTarget:a}}function tc(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Rs(e,a),n!=null&&o.unshift(_s(e,n,s)),n=Rs(e,t),n!=null&&o.push(_s(e,n,s))),e.tag===3)return o;e=e.return}return[]}function Oq(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function H5(e,t,a,o,n){for(var s=t._reactName,i=[];a!==null&&a!==o;){var l=a,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===o)break;l!==5&&l!==26&&l!==27||u===null||(c=u,n?(u=Rs(a,s),u!=null&&i.unshift(_s(a,u,c))):n||(u=Rs(a,s),u!=null&&i.push(_s(a,u,c)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var Hq=/\r\n?/g,kq=/\u0000|\uFFFD/g;function k5(e){return(typeof e==="string"?e:""+e).replace(Hq,`
|
|
9
|
-
`).replace(kq,"")}function x7(e,t){return t=k5(t),k5(e)===t?!0:!1}function te(e,t,a,o,n,s){switch(a){case"children":typeof o==="string"?t==="body"||t==="textarea"&&o===""||cr(e,o):(typeof o==="number"||typeof o==="bigint")&&t!=="body"&&cr(e,""+o);break;case"className":il(e,"class",o);break;case"tabIndex":il(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":il(e,a,o);break;case"style":wU(e,o,s);break;case"data":if(t!=="object"){il(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Sl(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s==="function"&&(a==="formAction"?(t!=="input"&&te(e,t,"name",n.name,n,null),te(e,t,"formEncType",n.formEncType,n,null),te(e,t,"formMethod",n.formMethod,n,null),te(e,t,"formTarget",n.formTarget,n,null)):(te(e,t,"encType",n.encType,n,null),te(e,t,"method",n.method,n,null),te(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=Sl(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Na);break;case"onScroll":o!=null&&_("scroll",e);break;case"onScrollEnd":o!=null&&_("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(M(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=Sl(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":_("beforetoggle",e),_("toggle",e),Il(e,"popover",o);break;case"xlinkActuate":Ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ta(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ta(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ta(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ta(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Il(e,"is",o);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=mV.get(a)||a,Il(e,a,o)}}function Lm(e,t,a,o,n,s){switch(a){case"style":wU(e,o,s);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(M(60));e.innerHTML=a}}break;case"children":typeof o==="string"?cr(e,o):(typeof o==="number"||typeof o==="bigint")&&cr(e,""+o);break;case"onScroll":o!=null&&_("scroll",e);break;case"onScrollEnd":o!=null&&_("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!IU.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[yt]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,n),typeof o==="function")){typeof s!=="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Il(e,a,o)}}}function st(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_("error",e),_("load",e);var o=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var i=a[s];if(i!=null)switch(s){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:te(e,t,s,i,a,null)}}n&&te(e,t,"srcSet",a.srcSet,a,null),o&&te(e,t,"src",a.src,a,null);return;case"input":_("invalid",e);var l=s=i=n=null,c=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var f=a[o];if(f!=null)switch(o){case"name":n=f;break;case"type":i=f;break;case"checked":c=f;break;case"defaultChecked":u=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(M(137,t));break;default:te(e,t,o,f,a,null)}}yU(e,s,l,c,u,i,n,!1);return;case"select":_("invalid",e),o=i=s=null;for(n in a)if(a.hasOwnProperty(n)&&(l=a[n],l!=null))switch(n){case"value":s=l;break;case"defaultValue":i=l;break;case"multiple":o=l;default:te(e,t,n,l,a,null)}t=s,a=i,e.multiple=!!o,t!=null?tr(e,!!o,t,!1):a!=null&&tr(e,!!o,a,!0);return;case"textarea":_("invalid",e),s=n=o=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":n=l;break;case"children":s=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(M(91));break;default:te(e,t,i,l,a,null)}CU(e,o,n,s);return;case"option":for(c in a)if(a.hasOwnProperty(c)&&(o=a[c],o!=null))switch(c){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:te(e,t,c,o,a,null)}return;case"dialog":_("beforetoggle",e),_("toggle",e),_("cancel",e),_("close",e);break;case"iframe":case"object":_("load",e);break;case"video":case"audio":for(o=0;o<Fs.length;o++)_(Fs[o],e);break;case"image":_("error",e),_("load",e);break;case"details":_("toggle",e);break;case"embed":case"source":case"link":_("error",e),_("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:te(e,t,u,o,a,null)}return;default:if(Xm(t)){for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!==void 0&&Lm(e,t,f,o,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(o=a[l],o!=null&&te(e,t,l,o,a,null))}function zq(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,i=null,l=null,c=null,u=null,f=null;for(p in a){var m=a[p];if(a.hasOwnProperty(p)&&m!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":c=m;default:o.hasOwnProperty(p)||te(e,t,p,null,o,m)}}for(var d in o){var p=o[d];if(m=a[d],o.hasOwnProperty(d)&&(p!=null||m!=null))switch(d){case"type":s=p;break;case"name":n=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(M(137,t));break;default:p!==m&&te(e,t,d,p,o,m)}}$f(e,i,l,c,u,f,s,n);return;case"select":p=i=l=d=null;for(s in a)if(c=a[s],a.hasOwnProperty(s)&&c!=null)switch(s){case"value":break;case"multiple":p=c;default:o.hasOwnProperty(s)||te(e,t,s,null,o,c)}for(n in o)if(s=o[n],c=a[n],o.hasOwnProperty(n)&&(s!=null||c!=null))switch(n){case"value":d=s;break;case"defaultValue":l=s;break;case"multiple":i=s;default:s!==c&&te(e,t,n,s,o,c)}t=l,a=i,o=p,d!=null?tr(e,!!a,d,!1):!!o!==!!a&&(t!=null?tr(e,!!a,t,!0):tr(e,!!a,a?[]:"",!1));return;case"textarea":p=d=null;for(l in a)if(n=a[l],a.hasOwnProperty(l)&&n!=null&&!o.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:te(e,t,l,null,o,n)}for(i in o)if(n=o[i],s=a[i],o.hasOwnProperty(i)&&(n!=null||s!=null))switch(i){case"value":d=n;break;case"defaultValue":p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(M(91));break;default:n!==s&&te(e,t,i,n,o,s)}bU(e,d,p);return;case"option":for(var v in a)if(d=a[v],a.hasOwnProperty(v)&&d!=null&&!o.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:te(e,t,v,null,o,d)}for(c in o)if(d=o[c],p=a[c],o.hasOwnProperty(c)&&d!==p&&(d!=null||p!=null))switch(c){case"selected":e.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:te(e,t,c,d,o,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in a)d=a[b],a.hasOwnProperty(b)&&d!=null&&!o.hasOwnProperty(b)&&te(e,t,b,null,o,d);for(u in o)if(d=o[u],p=a[u],o.hasOwnProperty(u)&&d!==p&&(d!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,t));break;default:te(e,t,u,d,o,p)}return;default:if(Xm(t)){for(var C in a)d=a[C],a.hasOwnProperty(C)&&d!==void 0&&!o.hasOwnProperty(C)&&Lm(e,t,C,void 0,o,d);for(f in o)d=o[f],p=a[f],!o.hasOwnProperty(f)||d===p||d===void 0&&p===void 0||Lm(e,t,f,d,o,p);return}}for(var g in a)d=a[g],a.hasOwnProperty(g)&&d!=null&&!o.hasOwnProperty(g)&&te(e,t,g,null,o,d);for(m in o)d=o[m],p=a[m],!o.hasOwnProperty(m)||d===p||d==null&&p==null||te(e,t,m,d,o,p)}function z5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Uq(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],s=n.transferSize,i=n.initiatorType,l=n.duration;if(s&&l&&z5(i)){i=0,l=n.responseEnd;for(o+=1;o<a.length;o++){var c=a[o],u=c.startTime;if(u>l)break;var{transferSize:f,initiatorType:m}=c;f&&z5(m)&&(c=c.responseEnd,i+=f*(c<l?1:(l-u)/(c-u)))}if(--o,t+=8*(s+i)/(n.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var Rm=null,Bm=null;function ac(e){return e.nodeType===9?e:e.ownerDocument}function U5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function M7(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nm(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pf=null;function Fq(){var e=window.event;if(e&&e.type==="popstate"){if(e===Pf)return!1;return Pf=e,!0}return Pf=null,!1}var D7=typeof setTimeout==="function"?setTimeout:void 0,_q=typeof clearTimeout==="function"?clearTimeout:void 0,F5=typeof Promise==="function"?Promise:void 0,Pq=typeof queueMicrotask==="function"?queueMicrotask:typeof F5<"u"?function(e){return F5.resolve(null).then(e).catch(Gq)}:D7;function Gq(e){setTimeout(function(){throw e})}function Eo(e){return e==="head"}function _5(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(n),Ir(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Es(a);for(var s=a.firstChild;s;){var{nextSibling:i,nodeName:l}=s;s[Ys]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=i}}else a==="body"&&Es(e.ownerDocument.body);a=n}while(a);Ir(t)}function P5(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function Om(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Om(a),Zm(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Vq(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[Ys])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=jt(e.nextSibling),e===null)break}return null}function qq(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=jt(e.nextSibling),e===null)return null}return e}function E7(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=jt(e.nextSibling),e===null)return null}return e}function Hm(e){return e.data==="$?"||e.data==="$~"}function km(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Zq(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function jt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zm=null;function G5(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function V5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function L7(e,t,a){switch(t=ac(a),e){case"html":if(e=t.documentElement,!e)throw Error(M(452));return e;case"head":if(e=t.head,!e)throw Error(M(453));return e;case"body":if(e=t.body,!e)throw Error(M(454));return e;default:throw Error(M(451))}}function Es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zm(e)}var Yt=new Map,q5=new Set;function oc(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Va=j.d;j.d={f:Xq,r:jq,D:Yq,C:Qq,L:Wq,m:Kq,X:$q,S:Jq,M:eZ};function Xq(){var e=Va.f(),t=yc();return e||t}function jq(e){var t=vr(e);t!==null&&t.tag===5&&t.type==="form"?wF(t):Va.r(e)}var wr=typeof document>"u"?null:document;function R7(e,t,a){var o=wr;if(o&&typeof t==="string"&&t){var n=Vt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),q5.has(n)||(q5.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),st(t,"link",e),Ke(t),o.head.appendChild(t)))}}function Yq(e){Va.D(e),R7("dns-prefetch",e,null)}function Qq(e,t){Va.C(e,t),R7("preconnect",e,t)}function Wq(e,t,a){Va.L(e,t,a);var o=wr;if(o&&e&&t){var n='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Vt(a.imageSizes)+'"]')):n+='[href="'+Vt(e)+'"]':n+='[href="'+Vt(e)+'"]';var s=n;switch(t){case"style":s=gr(e);break;case"script":s=Ar(e)}Yt.has(s)||(e=me({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(s,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(ei(s))||t==="script"&&o.querySelector(ti(s))||(t=o.createElement("link"),st(t,"link",e),Ke(t),o.head.appendChild(t)))}}function Kq(e,t){Va.m(e,t);var a=wr;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Vt(o)+'"][href="'+Vt(e)+'"]',s=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ar(e)}if(!Yt.has(s)&&(e=me({rel:"modulepreload",href:e},t),Yt.set(s,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ti(s)))return}o=a.createElement("link"),st(o,"link",e),Ke(o),a.head.appendChild(o)}}}function Jq(e,t,a){Va.S(e,t,a);var o=wr;if(o&&e){var n=er(o).hoistableStyles,s=gr(e);t=t||"default";var i=n.get(s);if(!i){var l={loading:0,preload:null};if(i=o.querySelector(ei(s)))l.loading=5;else{e=me({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(s))&&Ld(e,a);var c=i=o.createElement("link");Ke(c),st(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,El(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:l},n.set(s,i)}}}function $q(e,t){Va.X(e,t);var a=wr;if(a&&e){var o=er(a).hoistableScripts,n=Ar(e),s=o.get(n);s||(s=a.querySelector(ti(n)),s||(e=me({src:e,async:!0},t),(t=Yt.get(n))&&Rd(e,t),s=a.createElement("script"),Ke(s),st(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}function eZ(e,t){Va.M(e,t);var a=wr;if(a&&e){var o=er(a).hoistableScripts,n=Ar(e),s=o.get(n);s||(s=a.querySelector(ti(n)),s||(e=me({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Rd(e,t),s=a.createElement("script"),Ke(s),st(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}function Z5(e,t,a,o){var n=(n=ho.current)?oc(n):null;if(!n)throw Error(M(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(t=gr(a.href),a=er(n).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=gr(a.href);var s=er(n).hoistableStyles,i=s.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,i),(s=n.querySelector(ei(e)))&&!s._p&&(i.instance=s,i.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),s||tZ(n,e,a,i.state))),t&&o===null)throw Error(M(528,""));return i}if(t&&o!==null)throw Error(M(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(t=Ar(a),a=er(n).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,e))}}function gr(e){return'href="'+Vt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function B7(e){return me({},e,{"data-precedence":e.precedence,precedence:null})}function tZ(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),st(t,"link",a),Ke(t),e.head.appendChild(t))}function Ar(e){return'[src="'+Vt(e)+'"]'}function ti(e){return"script[async]"+e}function X5(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(o)return t.instance=o,Ke(o),o;var n=me({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ke(o),st(o,"style",n),El(o,a.precedence,e),t.instance=o;case"stylesheet":n=gr(a.href);var s=e.querySelector(ei(n));if(s)return t.state.loading|=4,t.instance=s,Ke(s),s;o=B7(a),(n=Yt.get(n))&&Ld(o,n),s=(e.ownerDocument||e).createElement("link"),Ke(s);var i=s;return i._p=new Promise(function(l,c){i.onload=l,i.onerror=c}),st(s,"link",o),t.state.loading|=4,El(s,a.precedence,e),t.instance=s;case"script":if(s=Ar(a.src),n=e.querySelector(ti(s)))return t.instance=n,Ke(n),n;if(o=a,n=Yt.get(s))o=me({},a),Rd(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),Ke(n),st(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error(M(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,El(o,a.precedence,e));return t.instance}function El(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,s=n,i=0;i<o.length;i++){var l=o[i];if(l.dataset.precedence===t)s=l;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ld(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ll=null;function j5(e,t,a){if(Ll===null){var o=new Map,n=Ll=new Map;n.set(a,o)}else n=Ll,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var s=a[n];if(!(s[Ys]||s[ot]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var i=s.getAttribute(t)||"";i=e+i;var l=o.get(i);l?l.push(s):o.set(i,[s])}}return o}function Y5(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function aZ(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function N7(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function oZ(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=gr(o.href),s=t.querySelector(ei(n));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=nc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Ke(s);return}s=t.ownerDocument||t,o=B7(o),(n=Yt.get(n))&&Ld(o,n),s=s.createElement("link"),Ke(s);var i=s;i._p=new Promise(function(l,c){i.onload=l,i.onerror=c}),st(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=nc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Gf=0;function nZ(e,t){return e.stylesheets&&e.count===0&&Rl(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Rl(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},60000+t);0<e.imgBytes&&Gf===0&&(Gf=62500*Uq());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Rl(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Gf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function nc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rc=null;function Rl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rc=new Map,t.forEach(rZ,e),rc=null,nc.call(e))}function rZ(e,t){if(!(t.state.loading&4)){var a=rc.get(e);if(a)var o=a.get(null);else{a=new Map,rc.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var i=n[s];if(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")a.set(i.dataset.precedence,i),o=i}o&&a.set(null,o)}n=t.instance,i=n.getAttribute("data-precedence"),s=a.get(i)||o,s===o&&a.set(null,n),a.set(i,n),this.count++,o=nc.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ps={$$typeof:Ba,Provider:null,Consumer:null,_currentValue:Jo,_currentValue2:Jo,_threadCount:0};function sZ(e,t,a,o,n,s,i,l,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=hf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hf(0),this.hiddenUpdates=hf(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function O7(e,t,a,o,n,s,i,l,c,u,f,m){return e=new sZ(e,t,a,i,c,u,f,m,l),t=1,s===!0&&(t|=24),s=Dt(3,null,null,t),e.current=s,s.stateNode=e,t=od(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:o,isDehydrated:a,cache:t},sd(s),e}function H7(e){if(!e)return Wn;return e=Wn,e}function k7(e,t,a,o,n,s){n=H7(n),o.context===null?o.context=n:o.pendingContext=n,o=Io(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(o.callback=s),a=So(e,o,t),a!==null&&(vt(a,e,t),bs(a,e,t))}function Q5(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bd(e,t){Q5(e,t),(e=e.alternate)&&Q5(e,t)}function z7(e){if(e.tag===13||e.tag===31){var t=mn(e,67108864);t!==null&&vt(t,e,67108864),Bd(e,67108864)}}function W5(e){if(e.tag===13||e.tag===31){var t=Nt();t=Vm(t);var a=mn(e,t);a!==null&&vt(a,e,t),Bd(e,t)}}var sc=!0;function iZ(e,t,a,o){var n=H.T;H.T=null;var s=j.p;try{j.p=2,Nd(e,t,a,o)}finally{j.p=s,H.T=n}}function lZ(e,t,a,o){var n=H.T;H.T=null;var s=j.p;try{j.p=8,Nd(e,t,a,o)}finally{j.p=s,H.T=n}}function Nd(e,t,a,o){if(sc){var n=Um(o);if(n===null)_f(e,t,o,ic,a),K5(e,o);else if(uZ(n,e,t,a,o))o.stopPropagation();else if(K5(e,o),t&4&&-1<cZ.indexOf(e)){for(;n!==null;){var s=vr(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var i=Yo(s.pendingLanes);if(i!==0){var l=s;l.pendingLanes|=2;for(l.entangledLanes|=2;i;){var c=1<<31-Bt(i);l.entanglements[1]|=c,i&=~c}Ia(s),(X&6)===0&&(Wl=Lt()+500,$s(0,!1))}}break;case 31:case 13:l=mn(s,2),l!==null&&vt(l,s,2),yc(),Bd(s,2)}if(s=Um(o),s===null&&_f(e,t,o,ic,a),s===n)break;n=s}n!==null&&o.stopPropagation()}else _f(e,t,o,null,a)}}function Um(e){return e=jm(e),Od(e)}var ic=null;function Od(e){if(ic=null,e=qn(e),e!==null){var t=qs(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=oU(t),e!==null)return e;e=null}else if(a===31){if(e=nU(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ic=e,null}function U7(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(WG()){case lU:return 2;case cU:return 8;case kl:case KG:return 32;case uU:return 268435456;default:return 32}default:return 32}}var Fm=!1,bo=null,Co=null,wo=null,Gs=new Map,Vs=new Map,lo=[],cZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function K5(e,t){switch(e){case"focusin":case"focusout":bo=null;break;case"dragenter":case"dragleave":Co=null;break;case"mouseover":case"mouseout":wo=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(t.pointerId)}}function is(e,t,a,o,n,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[n]},t!==null&&(t=vr(t),t!==null&&z7(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function uZ(e,t,a,o,n){switch(t){case"focusin":return bo=is(bo,e,t,a,o,n),!0;case"dragenter":return Co=is(Co,e,t,a,o,n),!0;case"mouseover":return wo=is(wo,e,t,a,o,n),!0;case"pointerover":var s=n.pointerId;return Gs.set(s,is(Gs.get(s)||null,e,t,a,o,n)),!0;case"gotpointercapture":return s=n.pointerId,Vs.set(s,is(Vs.get(s)||null,e,t,a,o,n)),!0}return!1}function F7(e){var t=qn(e.target);if(t!==null){var a=qs(t);if(a!==null){if(t=a.tag,t===13){if(t=oU(a),t!==null){e.blockedOn=t,kz(e.priority,function(){W5(a)});return}}else if(t===31){if(t=nU(a),t!==null){e.blockedOn=t,kz(e.priority,function(){W5(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Um(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);tm=o,a.target.dispatchEvent(o),tm=null}else return t=vr(a),t!==null&&z7(t),e.blockedOn=a,!1;t.shift()}return!0}function J5(e,t,a){Bl(e)&&a.delete(t)}function fZ(){Fm=!1,bo!==null&&Bl(bo)&&(bo=null),Co!==null&&Bl(Co)&&(Co=null),wo!==null&&Bl(wo)&&(wo=null),Gs.forEach(J5),Vs.forEach(J5)}function hl(e,t){e.blockedOn===t&&(e.blockedOn=null,Fm||(Fm=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,fZ)))}var gl=null;function $5(e){gl!==e&&(gl=e,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,function(){gl===e&&(gl=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(Od(o||a)===null)continue;else break;var s=vr(a);s!==null&&(e.splice(t,3),t-=3,Im(s,{pending:!0,data:n,method:a.method,action:o},o,n))}}))}function Ir(e){function t(c){return hl(c,e)}bo!==null&&hl(bo,e),Co!==null&&hl(Co,e),wo!==null&&hl(wo,e),Gs.forEach(t),Vs.forEach(t);for(var a=0;a<lo.length;a++){var o=lo[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<lo.length&&(a=lo[0],a.blockedOn===null);)F7(a),a.blockedOn===null&&lo.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],s=a[o+1],i=n[yt]||null;if(typeof s==="function")i||$5(a);else if(i){var l=null;if(s&&s.hasAttribute("formAction")){if(n=s,i=s[yt]||null)l=i.formAction;else if(Od(n)!==null)continue}else l=i.action;typeof l==="function"?a[o+1]=l:(a.splice(o,3),o-=3),$5(a)}}}function _7(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Hd(e){this._internalRoot=e}wc.prototype.render=Hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));var a=t.current,o=Nt();k7(a,o,e,t,null,null)};wc.prototype.unmount=Hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;k7(e.current,2,null,e,null,null),yc(),t[Sr]=null}};function wc(e){this._internalRoot=e}wc.prototype.unstable_scheduleHydration=function(e){if(e){var t=hU();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lo.length&&t!==0&&t<lo[a].priority;a++);lo.splice(a,0,e),a===0&&F7(e)}};var eU=tU.version;if(eU!=="19.2.8")throw Error(M(527,eU,"19.2.8"));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(M(188));throw e=Object.keys(e).join(","),Error(M(268,e))}return e=VG(t),e=e!==null?rU(e):null,e=e===null?null:e.stateNode,e};var mZ={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Pn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pn.isDisabled&&Pn.supportsFiber)try{Zs=Pn.inject(mZ),Rt=Pn}catch(e){}}var Pn;Ac.createRoot=function(e,t){if(!aU(e))throw Error(M(299));var a=!1,o="",n=RF,s=BF,i=NF;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=O7(e,1,!1,null,null,a,o,null,n,s,i,_7),e[Sr]=t.current,Ed(e),new Hd(t)};Ac.hydrateRoot=function(e,t,a){if(!aU(e))throw Error(M(299));var o=!1,n="",s=RF,i=BF,l=NF,c=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(c=a.formState)),t=O7(e,1,!0,t,a!=null?a:null,o,n,c,s,i,l,_7),t.context=H7(null),a=t.current,o=Nt(),o=Vm(o),n=Io(o),n.callback=null,So(a,n,o),a=o,t.current.lanes=a,js(t,a),Ia(t),e[Sr]=t.current,Ed(e),new wc(t)};Ac.version="19.2.8"});var q7=ia(function(GY,V7){function G7(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(G7)}catch(e){console.error(e)}}G7(),V7.exports=P7()});var vZ={};function Ec(e){return e}var si=((e)=>(e.Menu="menu",e.Tooltip="tooltip",e.Context="context",e.Inline="inline",e))(si||{});var ii=((e)=>(e.List="list",e.Grid="grid",e.Form="form",e.Custom="custom",e.Composed="composed",e))(ii||{});var bn=((e)=>(e.Item="item",e.Section="section",e.Divider="divider",e.Switch="switch",e.Checkbox="checkbox",e.SelectNav="selectNav",e.Color="color",e.Object="object",e.Add="add",e.Sortable="sortable",e.Chip="chip",e.FilterRule="filterRule",e.Participant="participant",e.Empty="empty",e.Custom="custom",e))(bn||{});var li=((e)=>(e.Static="static",e.Prop="prop",e.Store="store",e.Async="async",e.Sections="sections",e.Composite="composite",e))(li||{});var ci=((e)=>(e.ArrowHover="arrowHover",e.ArrowClick="arrowClick",e.MoreIcon="moreIcon",e.RightClick="rightClick",e.LongPress="longPress",e.Replace="replace",e.Programmatic="programmatic",e))(ci||{});var R=O(U(),1);var fi=O(U(),1);var Lo=O(U(),1);var ip=O(U(),1),lp=ip.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var W=Lo.forwardRef((e,t)=>{let{alt:a,color:o,size:n,weight:s,mirrored:i,children:l,weights:c,...u}=e,{color:f="currentColor",size:m,weight:d="regular",mirrored:p=!1,...v}=Lo.useContext(lp);return Lo.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n!=null?n:m,height:n!=null?n:m,fill:o!=null?o:f,viewBox:"0 0 256 256",transform:i||p?"scale(-1, 1)":void 0,...v,...u},!!a&&Lo.createElement("title",null,a),l,c.get(s!=null?s:d))});W.displayName="IconBase";var ve=O(U(),1),cp=new Map([["bold",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"}))],["duotone",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"}),ve.createElement("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"}))],["fill",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"}))],["light",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"}))]]);var zc=fi.forwardRef((e,t)=>fi.createElement(W,{ref:t,...e,weights:cp}));zc.displayName="ArrowDownIcon";var Uc=zc;var mi=O(U(),1);var ye=O(U(),1),up=new Map([["bold",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),ye.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]);var Fc=mi.forwardRef((e,t)=>mi.createElement(W,{ref:t,...e,weights:up}));Fc.displayName="ArrowLeftIcon";var _c=Fc;var di=O(U(),1);var be=O(U(),1),fp=new Map([["bold",be.createElement(be.Fragment,null,be.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",be.createElement(be.Fragment,null,be.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),be.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",be.createElement(be.Fragment,null,be.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",be.createElement(be.Fragment,null,be.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",be.createElement(be.Fragment,null,be.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",be.createElement(be.Fragment,null,be.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]);var Pc=di.forwardRef((e,t)=>di.createElement(W,{ref:t,...e,weights:fp}));Pc.displayName="ArrowUpIcon";var Gc=Pc;var pi=O(U(),1);var Ce=O(U(),1),mp=new Map([["bold",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),Ce.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]);var Vc=pi.forwardRef((e,t)=>pi.createElement(W,{ref:t,...e,weights:mp}));Vc.displayName="CaretLeftIcon";var qc=Vc;var hi=O(U(),1);var we=O(U(),1),dp=new Map([["bold",we.createElement(we.Fragment,null,we.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",we.createElement(we.Fragment,null,we.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),we.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",we.createElement(we.Fragment,null,we.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",we.createElement(we.Fragment,null,we.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",we.createElement(we.Fragment,null,we.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",we.createElement(we.Fragment,null,we.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]);var Zc=hi.forwardRef((e,t)=>hi.createElement(W,{ref:t,...e,weights:dp}));Zc.displayName="CaretRightIcon";var Lr=Zc;var gi=O(U(),1);var Ae=O(U(),1),pp=new Map([["bold",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),Ae.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]);var Xc=gi.forwardRef((e,t)=>gi.createElement(W,{ref:t,...e,weights:pp}));Xc.displayName="CheckIcon";var Rr=Xc;var Ii=O(U(),1);var Te=O(U(),1),hp=new Map([["bold",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),Te.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]);var jc=Ii.forwardRef((e,t)=>Ii.createElement(W,{ref:t,...e,weights:hp}));jc.displayName="CircleNotchIcon";var Yc=jc;var Si=O(U(),1);var xe=O(U(),1),gp=new Map([["bold",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),xe.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]);var Qc=Si.forwardRef((e,t)=>Si.createElement(W,{ref:t,...e,weights:gp}));Qc.displayName="DotsSixVerticalIcon";var Wc=Qc;var vi=O(U(),1);var Me=O(U(),1),Ip=new Map([["bold",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),Me.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]);var Kc=vi.forwardRef((e,t)=>vi.createElement(W,{ref:t,...e,weights:Ip}));Kc.displayName="DotsThreeIcon";var Br=Kc;var yi=O(U(),1);var De=O(U(),1),Sp=new Map([["bold",De.createElement(De.Fragment,null,De.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",De.createElement(De.Fragment,null,De.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),De.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",De.createElement(De.Fragment,null,De.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",De.createElement(De.Fragment,null,De.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",De.createElement(De.Fragment,null,De.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",De.createElement(De.Fragment,null,De.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]);var Jc=yi.forwardRef((e,t)=>yi.createElement(W,{ref:t,...e,weights:Sp}));Jc.displayName="MagnifyingGlassIcon";var Nr=Jc;var bi=O(U(),1);var Ee=O(U(),1),vp=new Map([["bold",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),Ee.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]);var $c=bi.forwardRef((e,t)=>bi.createElement(W,{ref:t,...e,weights:vp}));$c.displayName="PlusIcon";var eu=$c;var Ci=O(U(),1);var Le=O(U(),1),yp=new Map([["bold",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"}))],["duotone",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),Le.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]);var tu=Ci.forwardRef((e,t)=>Ci.createElement(W,{ref:t,...e,weights:yp}));tu.displayName="UploadIcon";var au=tu;var wi=O(U(),1);var Re=O(U(),1),bp=new Map([["bold",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]);var ou=wi.forwardRef((e,t)=>wi.createElement(W,{ref:t,...e,weights:bp}));ou.displayName="WarningCircleIcon";var nu=ou;var Ai=O(U(),1);var Be=O(U(),1),Cp=new Map([["bold",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),Be.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);var ru=Ai.forwardRef((e,t)=>Ai.createElement(W,{ref:t,...e,weights:Cp}));ru.displayName="XIcon";var Ro=ru;function ZO(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=ZO(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function A_(){for(var e,t,a=0,o="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=ZO(e))&&(o&&(o+=" "),o+=t);return o}var Y=A_;var Ku=O(An(),1),h=O(Mi(),1);var la=O(U(),1),iH=O(An(),1);function $O(e,t,a){let o=Array(e);return new Proxy(o,{get(n,s,i){if(typeof s==="string"){let l=s.charCodeAt(0);if(l>=48&&l<=57){let c=+s;if(Number.isInteger(c)&&c>=0&&c<e){let u=n[c];if(!u){let f=t[c*2];u=n[c]={index:c,key:a(c),start:f,size:t[c*2+1],end:f+t[c*2+1],lane:0}}return u}}if(s==="length")return e}return Reflect.get(n,s,i)}})}function Bo(e,t,a){let o=a.initialDeps??[],n,s=!0;function i(){var l;let c=!1,u=0,f=e();if(!(f.length!==o.length||f.some((p,v)=>o[v]!==p)))return n;o=f;let d=0;if(n=t(...f),(a==null?void 0:a.onChange)&&!(s&&a.skipInitialOnChange))a.onChange(n);return s=!1,n}return i.updateDeps=(l)=>{o=l},i}function Au(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:""}`);else return e}var eH=(e,t)=>Math.abs(e-t)<1.01,tH=(e,t,a)=>{let o;return Object.assign(function(...n){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,n),a)},{cancel:()=>{e.clearTimeout(o)}})};var Hr,Tu=()=>{if(Hr!==void 0)return Hr;if(typeof navigator>"u")return Hr=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Hr=!0;let e=navigator.maxTouchPoints;return Hr=navigator.platform==="MacIntel"&&e!==void 0&&e>0};var aH=(e)=>{let{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},L_=(e)=>e,R_=(e)=>{let t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=Array(o);for(let s=0;s<o;s++)n[s]=t+s;return n},oH=(e,t)=>{let a=e.scrollElement;if(!a)return;let o=e.targetWindow;if(!o)return;let n=(i)=>{let{width:l,height:c}=i;t({width:Math.round(l),height:Math.round(c)})};if(n(aH(a)),!o.ResizeObserver)return()=>{};let s=new o.ResizeObserver((i)=>{let l=()=>{let c=i[0];if(c==null?void 0:c.borderBoxSize){let u=c.borderBoxSize[0];if(u){n({width:u.inlineSize,height:u.blockSize});return}}n(aH(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return s.observe(a,{box:"border-box"}),()=>{s.unobserve(a)}},Di={passive:!0};var B_=typeof window>"u"?!0:("onscrollend"in window),N_=(e,t,a)=>{let o=e.scrollElement;if(!o)return;let n=e.targetWindow;if(!n)return;let s=e.options.useScrollendEvent&&B_,i=0,l=s?null:tH(n,()=>t(i,!1),e.options.isScrollingResetDelay),c=(m)=>()=>{i=a(o),l==null||l(),t(i,m)},u=c(!0),f=c(!1);if(o.addEventListener("scroll",u,Di),s)o.addEventListener("scrollend",f,Di);return()=>{if(o.removeEventListener("scroll",u),s)o.removeEventListener("scrollend",f);l==null||l.cancel()}},nH=(e,t)=>N_(e,t,(a)=>{let{horizontal:o,isRtl:n}=e.options;return o?a.scrollLeft*(n&&-1||1):a.scrollTop});var O_=(e,t,a)=>{if(a.options.useCachedMeasurements){let o=a.indexFromElement(e),n=a.options.getItemKey(o);return a.itemSizeCache.get(n)??a.options.estimateSize(o)}if(t==null?void 0:t.borderBoxSize){let o=t.borderBoxSize[0];if(o)return Math.round(o[a.options.horizontal?"inlineSize":"blockSize"])}if(!t){let o=a.indexFromElement(e),n=a.options.getItemKey(o),s=a.itemSizeCache.get(n);if(s!==void 0)return s}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},H_=(e,{adjustments:t=0,behavior:a},o)=>{var n,s;(s=(n=o.scrollElement)==null?void 0:n.scrollTo)==null||s.call(n,{[o.options.horizontal?"left":"top"]:e+t,behavior:a})};var rH=H_;class xu{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,a,o;return((o=(a=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:a.now)==null?void 0:o.call(a))??Date.now()},this.observer=(()=>{let t=null,a=()=>{if(t)return t;if(!this.targetWindow||!this.targetWindow.ResizeObserver)return null;return t=new this.targetWindow.ResizeObserver((o)=>{o.forEach((n)=>{let s=()=>{let i=n.target,l=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(let[c,u]of this.elementsCache)if(u===i){this.elementsCache.delete(c);break}return}if(!this.isIndexInRange(l))return;if(this.shouldMeasureDuringScroll(l))this.resizeItem(l,this.options.measureElement(i,n,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})})};return{disconnect:()=>{var o;(o=a())==null||o.disconnect(),t=null},observe:(o)=>{var n;return(n=a())==null?void 0:n.observe(o,{box:"border-box"})},unobserve:(o)=>{var n;return(n=a())==null?void 0:n.unobserve(o)}}})(),this.range=null,this.setOptions=(t)=>{var a,o;let n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:L_,rangeExtractor:R_,onChange:()=>{},measureElement:O_,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let m in t){let d=t[m];if(d!==void 0)n[m]=d}let s=this.options,i=null,l=null,c=!1;if(s!==void 0&&s.enabled&&n.enabled&&n.anchorTo==="end"&&this.scrollElement!==null){let m=s.count,d=n.count,p=this.getMeasurements(),v=m>0?((a=p[0])==null?void 0:a.key)??s.getItemKey(0):null,b=m>0?((o=p[m-1])==null?void 0:o.key)??s.getItemKey(m-1):null;if(d!==m||m>0&&d>0&&(n.getItemKey(0)!==v||n.getItemKey(d-1)!==b)){c=!0;let I=m>0?this.getVirtualItemForOffset(this.getScrollOffset())??p[0]:null;if(I)i=[I.key,this.getScrollOffset()-I.start];let S=n.followOnAppend===!0?"auto":n.followOnAppend||null;if(S&&d>m&&this.isAtEnd(s.scrollEndThreshold)&&(m===0||n.getItemKey(d-1)!==b))l=S}}if(this.options=n,c)this.pendingMin=0,this.itemSizeCacheVersion++;let u=!1,f=0;if(i&&this.scrollOffset!==null){let[m,d]=i,p=this.getMeasurements(),{count:v,getItemKey:b}=this.options,C=0;while(C<v&&b(C)!==m)C++;if(C<v){let g=p[C];if(g){let I=Math.max(0,g.start+d);if(I!==this.scrollOffset)f=I-this.scrollOffset,this.scrollOffset=I,u=!0}}}if(u||l)this.pendingScrollAnchor=[u?i[0]:null,u?i[1]:0,l,f]},this.notify=(t)=>{var a,o;(o=(a=this.options).onChange)==null||o.call(a,this,t)},this.maybeNotify=Bo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),(t)=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{if(this.unsubs.filter(Boolean).forEach((t)=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow)this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null;this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;let a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}if(this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement)this.targetWindow=this.scrollElement.ownerDocument.defaultView;else this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null;if(this.elementsCache.forEach((n)=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,(n)=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{if(s&&this._intendedScrollOffset===null&&n===this.scrollOffset)return;if(this._intendedScrollOffset!==null&&Math.abs(n-this._intendedScrollOffset)<1.5)n=this._intendedScrollOffset;this._intendedScrollOffset=null,this.scrollAdjustments=0;let i=this.getScrollOffset();if(this.scrollDirection=s?i===n?this.scrollDirection:i<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=s,this._flushIosDeferredIfReady(),this.scrollState)this.scheduleScrollReconcile();this.maybeNotify()})),"addEventListener"in this.scrollElement){let n=this.scrollElement,s=()=>{if(this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null)this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null},i=()=>{if(this._iosTouching=!1,!Tu()||this.targetWindow==null)return;this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150)};n.addEventListener("touchstart",s,Di),n.addEventListener("touchend",i,Di),this.unsubs.push(()=>{if(n.removeEventListener("touchstart",s),n.removeEventListener("touchend",i),this._iosTouchEndTimerId!==null&&this.targetWindow!=null)this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let o=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled){let[n,s,i,l]=o;if(n!==null&&!i)if(Tu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)){if(l!==0)this._iosDeferredAdjustment+=l}else this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0});if(i)this.scrollToEnd({behavior:i})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;let t=this.getScrollOffset(),a=this.getMaxScrollOffset();if(t<0||t>a)return;if(this._iosDeferredAdjustment<0&&t>=a-1){this._iosDeferredAdjustment=0;return}let o=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=o,behavior:void 0})},this.rafId=null,this.getSize=()=>{if(!this.options.enabled)return this.scrollRect=null,0;return this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]},this.getScrollOffset=()=>{if(!this.options.enabled)return this.scrollOffset=null,0;return this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset},this.getMeasurementOptions=Bo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,a,o,n,s,i,l,c)=>{if(this.prevLanes!==void 0&&this.prevLanes!==i)this.lanesChangedFlag=!0;return this.prevLanes=i,this.pendingMin=null,{count:t,paddingStart:a,scrollMargin:o,getItemKey:n,enabled:s,lanes:i,laneAssignmentMode:l,gap:c}},{key:!1}),this.isIndexInRange=(t)=>t>=0&&t<this.options.count,this.getMeasurements=Bo(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:a,scrollMargin:o,getItemKey:n,enabled:s,lanes:i,laneAssignmentMode:l,gap:c},u)=>{let f=this.itemSizeCache;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t){for(let C of this.laneAssignments.keys())if(C>=t)this.laneAssignments.delete(C)}if(this.lanesChangedFlag)this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null;if(this.measurementsCache.length===0&&!this.lanesSettling)this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((C)=>{this.itemSizeCache.set(C.key,C.size)});let m=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t)this.lanesSettling=!1;if(i===1){let C=t*2,g=this._flatMeasurements;if(!g||g.length<C){let y=new Float64Array(C);if(g&&m>0)y.set(g.subarray(0,m*2));g=y,this._flatMeasurements=g}let I;if(m===0)I=a+o;else{let y=m-1;I=g[y*2]+g[y*2+1]+c}for(let y=m;y<t;y++){let w=n(y),T=f.get(w),x=typeof T==="number"?T:this.options.estimateSize(y);g[y*2]=I,g[y*2+1]=x,I+=x+c}let S=$O(t,g,n);return this.measurementsCache=S,S}let d=this.measurementsCache.slice(0,m),p=Array(i).fill(void 0),v=new Float64Array(i),b=0;for(let C=0;C<m;C++){let g=d[C];if(g){if(p[g.lane]===void 0)b++;p[g.lane]=C,v[g.lane]=g.end}}for(let C=m;C<t;C++){let g=n(C),I=this.laneAssignments.get(C),S,y,w=l==="estimate"||f.has(g);if(I!==void 0&&this.options.lanes>1){S=I;let L=p[S],D=L!==void 0?d[L]:void 0;y=D?D.end+c:a+o}else if(b===i){let L=0,D=v[0],N=p[0];for(let oe=1;oe<i;oe++){let ne=v[oe];if(ne<D||ne===D&&p[oe]<N)L=oe,D=ne,N=p[oe]}if(S=L,y=D+c,w)this.laneAssignments.set(C,S)}else if(S=C%this.options.lanes,y=a+o,w)this.laneAssignments.set(C,S);let T=f.get(g),x=typeof T==="number"?T:this.options.estimateSize(C),E=y+x;if(d[C]={index:C,start:y,size:x,end:E,key:g,lane:S},p[S]===void 0)b++;p[S]=C,v[S]=E}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Bo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,a,o,n)=>{if(t.length===0||a===0)return this.range=null,null;return this.range=z_(t,a,o,n,n===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range},{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Bo(()=>{let t=null,a=null,o=this.calculateRange();if(o)t=o.startIndex,a=o.endIndex;return this.maybeNotify.updateDeps([this.isScrolling,t,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,a]},(t,a,o,n,s)=>n===null||s===null?[]:t({startIndex:n,endIndex:s,overscan:a,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=(t)=>{let a=this.options.indexAttribute,o=t.getAttribute(a);if(!o)return console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1;return parseInt(o,10)},this.shouldMeasureDuringScroll=(t)=>{var a;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;let o=this.scrollState.index??((a=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:a.index);if(o!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,o-n),i=Math.min(this.options.count-1,o+n);return t>=s&&t<=i}return!0},this.measureElement=(t)=>{if(!t){this.elementsCache.forEach((s,i)=>{if(!s.isConnected)this.observer.unobserve(s),this.elementsCache.delete(i)});return}let a=this.indexFromElement(t);if(!this.isIndexInRange(a))return;let o=this.options.getItemKey(a),n=this.elementsCache.get(o);if(n!==t){if(n)this.observer.unobserve(n);this.observer.observe(t),this.elementsCache.set(o,t)}if((!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(a))this.resizeItem(a,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,a)=>{var o,n;if(!this.isIndexInRange(t))return;let s,i,l,c=this._flatMeasurements;if(this.options.lanes===1&&c!==null)l=this.options.getItemKey(t),i=c[t*2],s=c[t*2+1];else{let m=this.measurementsCache[t];if(!m)return;l=m.key,i=m.start,s=m.size}let u=this.itemSizeCache.get(l)??s,f=a-u;if(f!==0){let m=this.options.anchorTo==="end"&&((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=m?this.getTotalSize():0,p=this.getScrollOffset()+this.scrollAdjustments,b=!this.itemSizeCache.has(l)?i<p:i+u<=p&&this.scrollDirection!=="backward",C=((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:l,start:i,size:s,end:i+s,lane:0},f,this):b);if(this.pendingMin===null||t<this.pendingMin)this.pendingMin=t;this.itemSizeCache.set(l,a),this.itemSizeCacheVersion++;let g=!1;if(m)g=this.applyScrollAdjustment(this.getTotalSize()-d);else if(C)g=this.applyScrollAdjustment(f);this.notify(g)}},this.getVirtualItems=Bo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,a)=>{let o=[];for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a[i];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=(t)=>{let a=this.getMeasurements();if(a.length===0)return;let o=this._flatMeasurements,n=this.options.lanes===1&&o!=null,s=sH(0,a.length-1,n?(i)=>o[i*2]:(i)=>Au(a[i]).start,t);return Au(a[s])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;else{let t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,a,o=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),s=this.getScrollOffset();if(a==="auto")a=t>=s+n?"end":"start";if(a==="center")t+=(o-n)/2;else if(a==="end")t-=n;let i=this.getMaxScrollOffset();return Math.max(Math.min(i,t),0)},this.getOffsetForIndex=(t,a="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let o=this.getSize(),n=this.getScrollOffset(),s=this.measurementsCache[t];if(!s)return;if(a==="auto")if(s.end>=n+o-this.options.scrollPaddingEnd)a="end";else if(s.start<=n+this.options.scrollPaddingStart)a="start";else return[n,a];if(a==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),a];let i=a==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a,s.size),a]},this.scrollToOffset=(t,{align:a="start",behavior:o="auto"}={})=>{this._iosDeferredAdjustment=0;let n=this.getOffsetForAlignment(t,a),s=this.now();this.scrollState={index:null,align:a,behavior:o,startedAt:s,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:a="auto",behavior:o="auto"}={})=>{this._iosDeferredAdjustment=0,t=Math.max(0,Math.min(t,this.options.count-1));let n=this.getOffsetForIndex(t,a);if(!n)return;let[s,i]=n,l=this.now();this.scrollState={index:t,align:i,behavior:o,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:a="auto"}={})=>{let o=this.getScrollOffset()+t,n=this.now();this.scrollState={index:null,align:"start",behavior:a,startedAt:n,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;let a=this.getMeasurements(),o;if(a.length===0)o=this.options.paddingStart;else if(this.options.lanes===1){let n=a.length-1,s=this._flatMeasurements;if(s!=null)o=s[n*2]+s[n*2+1];else o=((t=a[n])==null?void 0:t.end)??0}else{let n=Array(this.options.lanes).fill(null),s=a.length-1;while(s>=0&&n.some((i)=>i===null)){let i=a[s];if(n[i.lane]===null)n[i.lane]=i.end;s--}o=Math.max(...n.filter((i)=>i!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let t=[];if(this.itemSizeCache.size===0)return t;let a=this.getMeasurements();for(let o of a)if(o&&this.itemSizeCache.has(o.key))t.push({index:o.index,key:o.key,start:o.start,size:o.size,end:o.end,lane:o.lane});return t},this._scrollToOffset=(t,{adjustments:a,behavior:o})=>{this._intendedScrollOffset=t+(a??0),this.options.scrollToFn(t,{behavior:o,adjustments:a},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(e===0)return!1;if(Tu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;else{if(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null){if(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0)this.scrollOffset=0;this.scrollAdjustments=0}return!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}if(this.rafId!=null)return;this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;let t=5000;if(this.now()-this.scrollState.startedAt>t){this.scrollState=null;return}let a=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,o=a?a[0]:this.scrollState.lastTargetOffset,n=1,s=o!==this.scrollState.lastTargetOffset;if(!s&&eH(o,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){if(this.getScrollOffset()!==o)this._scrollToOffset(o,{adjustments:void 0,behavior:"auto"});this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){let i=this.getSize()||600,l=Math.abs(o-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>i;if(this.scrollState.lastTargetOffset=o,!c)this.scrollState.behavior="auto";this._scrollToOffset(o,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}var sH=(e,t,a,o)=>{while(e<=t){let n=(e+t)/2|0,s=a(n);if(s<o)e=n+1;else if(s>o)t=n-1;else return n}if(e>0)return e-1;else return 0};function k_(e,t,a){let o=0;while(o<=t){let n=(o+t)/2|0,s=e[n*2];if(s<a)o=n+1;else if(s>a)t=n-1;else return n}return o>0?o-1:0}function z_(e,t,a,o,n){let s=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:s};if(o===1&&n!==null){let u=k_(n,s,a),f=u,m=a+t;while(f<s&&n[f*2]+n[f*2+1]<m)f++;return{startIndex:u,endIndex:f}}let l=sH(0,s,(u)=>e[u].start,a),c=l;if(o===1)while(c<s&&e[c].end<a+t)c++;else if(o>1){let u=Array(o).fill(0);while(c<s&&u.some((m)=>m<a+t)){let m=e[c];u[m.lane]=m.end,c++}let f=Array(o).fill(a+t);while(l>=0&&f.some((m)=>m>=a)){let m=e[l];f[m.lane]=m.start,l--}l=Math.max(0,l-l%o),c=Math.min(s,c+(o-1-c%o))}return{startIndex:l,endIndex:c}}var Mu=typeof document<"u"?la.useLayoutEffect:la.useEffect;function U_({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:a="transform",...o}){let n=la.useReducer((f)=>f+1,0)[1],s=la.useRef({enabled:t,mode:a,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=a;let i=(f)=>{let m=s.current;if(!m.enabled||!m.container)return;let d=f.getTotalSize();if(d!==m.lastSize){m.lastSize=d;let p=f.options.horizontal?"width":"height";m.container.style[p]=`${d}px`}},l=(f)=>{let m=s.current;if(!m.enabled||!m.container)return;i(f);let d=!!f.options.horizontal,p=m.mode==="transform",v=d?"left":"top",b=f.options.scrollMargin,C=f.getVirtualItems();for(let g of C){let I=g.start-b,S=f.elementsCache.get(g.key);if(!S)continue;if(m.lastPositions.get(S)===I)continue;if(m.lastPositions.set(S,I),p)S.style.transform=d?`translate3d(${I}px, 0, 0)`:`translate3d(0, ${I}px, 0)`;else S.style[v]=`${I}px`}},c={...o,onChange:(f,m)=>{var d;let p=s.current,v=!0;if(p.enabled){l(f);let b=f.range,C=p.prevRange;if(v=!C||C.isScrolling!==f.isScrolling||C.startIndex!==(b==null?void 0:b.startIndex)||C.endIndex!==(b==null?void 0:b.endIndex),v)p.prevRange=b?{startIndex:b.startIndex,endIndex:b.endIndex,isScrolling:f.isScrolling}:null}if(v)if(e&&m)iH.flushSync(n);else n();(d=o.onChange)==null||d.call(o,f,m)}},[u]=la.useState(()=>{let f=new xu(c);return Object.assign(f,{containerRef:(m)=>{let d=s.current;if(d.container=m,d.lastSize=null,m&&d.enabled){let p=f.getTotalSize();d.lastSize=p;let v=f.options.horizontal?"width":"height";m.style[v]=`${p}px`}}})});return u.setOptions(c),Mu(()=>u._didMount(),[]),Mu(()=>(i(u),u._willUpdate())),Mu(()=>{l(u)}),u}function Du(e){return U_({observeElementRect:oH,observeElementOffset:nH,scrollToFn:rH,...e})}var A=O(U(),1),Fo=O(An(),1);var Ne=O(U(),1);function cH(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ne.useMemo(()=>(o)=>{t.forEach((n)=>n(o))},t)}var kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function No(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ei(e){return"nodeType"in e}function lt(e){var t,a;if(!e)return window;if(No(e))return e;if(!Ei(e))return window;return(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window}function Li(e){let{Document:t}=lt(e);return e instanceof t}function Tn(e){if(No(e))return!1;return e instanceof lt(e).HTMLElement}function Lu(e){return e instanceof lt(e).SVGElement}function Oo(e){if(!e)return document;if(No(e))return e.document;if(!Ei(e))return document;if(Li(e))return e;if(Tn(e)||Lu(e))return e.ownerDocument;return document}var Tt=kr?Ne.useLayoutEffect:Ne.useEffect;function zr(e){let t=Ne.useRef(e);return Tt(()=>{t.current=e}),Ne.useCallback(function(){for(var a=arguments.length,o=Array(a),n=0;n<a;n++)o[n]=arguments[n];return t.current==null?void 0:t.current(...o)},[])}function uH(){let e=Ne.useRef(null),t=Ne.useCallback((o,n)=>{e.current=setInterval(o,n)},[]),a=Ne.useCallback(()=>{if(e.current!==null)clearInterval(e.current),e.current=null},[]);return[t,a]}function xn(e,t){if(t===void 0)t=[e];let a=Ne.useRef(e);return Tt(()=>{if(a.current!==e)a.current=e},t),a}function Mn(e,t){let a=Ne.useRef();return Ne.useMemo(()=>{let o=e(a.current);return a.current=o,o},[...t])}function Ur(e){let t=zr(e),a=Ne.useRef(null),o=Ne.useCallback((n)=>{if(n!==a.current)t==null||t(n,a.current);a.current=n},[]);return[a,o]}function Fr(e){let t=Ne.useRef();return Ne.useEffect(()=>{t.current=e},[e]),t.current}var Eu={};function Ho(e,t){return Ne.useMemo(()=>{if(t)return t;let a=Eu[e]==null?0:Eu[e]+1;return Eu[e]=a,e+"-"+a},[e,t])}function fH(e){return function(t){for(var a=arguments.length,o=Array(a>1?a-1:0),n=1;n<a;n++)o[n-1]=arguments[n];return o.reduce((s,i)=>{let l=Object.entries(i);for(let[c,u]of l){let f=s[c];if(f!=null)s[c]=f+e*u}return s},{...t})}}var ko=fH(1),zo=fH(-1);function F_(e){return"clientX"in e&&"clientY"in e}function Dn(e){if(!e)return!1;let{KeyboardEvent:t}=lt(e.target);return t&&e instanceof t}function __(e){if(!e)return!1;let{TouchEvent:t}=lt(e.target);return t&&e instanceof t}function En(e){if(__(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}if(F_(e))return{x:e.clientX,y:e.clientY};return null}var Qt=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(!e)return;return[Qt.Translate.toString(e),Qt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:o}=e;return t+" "+a+"ms "+o}}}),lH="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function mH(e){if(e.matches(lH))return e;return e.querySelector(lH)}var Uo=O(U(),1),P_={display:"none"};function dH(e){let{id:t,value:a}=e;return Uo.default.createElement("div",{id:t,style:P_},a)}function pH(e){let{id:t,announcement:a,ariaLiveType:o="assertive"}=e,n={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Uo.default.createElement("div",{id:t,style:n,role:"status","aria-live":o,"aria-atomic":!0},a)}function hH(){let[e,t]=Uo.useState("");return{announce:Uo.useCallback((o)=>{if(o!=null)t(o)},[]),announcement:e}}var MH=A.createContext(null);function G_(e){let t=A.useContext(MH);A.useEffect(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function V_(){let[e]=A.useState(()=>new Set),t=A.useCallback((o)=>(e.add(o),()=>e.delete(o)),[e]);return[A.useCallback((o)=>{let{type:n,event:s}=o;e.forEach((i)=>{var l;return(l=i[n])==null?void 0:l.call(i,s)})},[e]),t]}var q_={draggable:`
|
|
8
|
+
`+o.stack}}var Jf=Object.prototype.hasOwnProperty,qm=Ze.unstable_scheduleCallback,gf=Ze.unstable_cancelCallback,QG=Ze.unstable_shouldYield,WG=Ze.unstable_requestPaint,Lt=Ze.unstable_now,KG=Ze.unstable_getCurrentPriorityLevel,cU=Ze.unstable_ImmediatePriority,uU=Ze.unstable_UserBlockingPriority,zl=Ze.unstable_NormalPriority,JG=Ze.unstable_LowPriority,fU=Ze.unstable_IdlePriority,$G=Ze.log,eV=Ze.unstable_setDisableYieldValue,Zs=null,Rt=null;function co(e){if(typeof $G==="function"&&eV(e),Rt&&typeof Rt.setStrictMode==="function")try{Rt.setStrictMode(Zs,e)}catch(t){}}var Bt=Math.clz32?Math.clz32:oV,tV=Math.log,aV=Math.LN2;function oV(e){return e>>>=0,e===0?32:31-(tV(e)/aV|0)|0}var rl=256,sl=262144,il=4194304;function Yo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function cc(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,s=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=o&134217727;return l!==0?(o=l&~s,o!==0?n=Yo(o):(i&=l,i!==0?n=Yo(i):a||(a=l&~e,a!==0&&(n=Yo(a))))):(l=o&~s,l!==0?n=Yo(l):i!==0?n=Yo(i):a||(a=o&~e,a!==0&&(n=Yo(a)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:n}function Xs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nV(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mU(){var e=il;return il<<=1,(il&62914560)===0&&(il=4194304),e}function If(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function js(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rV(e,t,a,o,n,s){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:l,expirationTimes:c,hiddenUpdates:u}=e;for(a=i&~a;0<a;){var f=31-Bt(a),m=1<<f;l[f]=0,c[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var p=d[f];p!==null&&(p.lane&=-536870913)}a&=~m}o!==0&&dU(e,o,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(i&~t))}function dU(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Bt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function pU(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-Bt(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function hU(e,t){var a=t&-t;return a=(a&42)!==0?1:Zm(a),(a&(e.suspendedLanes|t))!==0?0:a}function Zm(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xm(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function gU(){var e=j.p;if(e!==0)return e;return e=window.event,e===void 0?32:F7(e.type)}function zz(e,t){var a=j.p;try{return j.p=e,t()}finally{j.p=a}}var Do=Math.random().toString(36).slice(2),ot="__reactFiber$"+Do,yt="__reactProps$"+Do,Sr="__reactContainer$"+Do,$f="__reactEvents$"+Do,sV="__reactListeners$"+Do,iV="__reactHandles$"+Do,Uz="__reactResources$"+Do,Ys="__reactMarker$"+Do;function jm(e){delete e[ot],delete e[yt],delete e[$f],delete e[sV],delete e[iV]}function qn(e){var t=e[ot];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Sr]||a[ot]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=q5(e);e!==null;){if(a=e[ot])return a;e=q5(e)}return t}e=a,a=e.parentNode}return null}function vr(e){if(e=e[ot]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function us(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(M(33))}function er(e){var t=e[Uz];return t||(t=e[Uz]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Ys]=!0}var IU=new Set,SU={};function cn(e,t){lr(e,t),lr(e+"Capture",t)}function lr(e,t){SU[e]=t;for(e=0;e<t.length;e++)IU.add(t[e])}var lV=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fz={},_z={};function cV(e){if(Jf.call(_z,e))return!0;if(Jf.call(Fz,e))return!1;if(lV.test(e))return _z[e]=!0;return Fz[e]=!0,!1}function Sl(e,t,a){if(cV(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ll(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ta(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uV(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:n,set:s}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function em(e){if(!e._valueTracker){var t=vU(e)?"checked":"value";e._valueTracker=uV(e,t,""+e[t])}}function yU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=vU(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var fV=/[\n"\\]/g;function Vt(e){return e.replace(fV,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tm(e,t,a,o,n,s,i,l){if(e.name="",i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"?e.type=i:e.removeAttribute("type"),t!=null)if(i==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+_t(t)}else e.value!==""+_t(t)&&(e.value=""+_t(t));else i!=="submit"&&i!=="reset"||e.removeAttribute("value");t!=null?am(e,i,_t(t)):a!=null?am(e,i,_t(a)):o!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"?e.name=""+_t(l):e.removeAttribute("name")}function bU(e,t,a,o,n,s,i,l){if(s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!==void 0&&t!==null)){em(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=l?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!=="function"&&typeof i!=="symbol"&&typeof i!=="boolean"&&(e.name=i),em(e)}function am(e,t,a){t==="number"&&Ul(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function tr(e,t,a,o){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&o&&(e[a].defaultSelected=!0)}else{a=""+_t(a),t=null;for(n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function CU(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function wU(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(M(92));if(cs(o)){if(1<o.length)throw Error(M(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),em(e)}function cr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var mV=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Pz(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||mV.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function AU(e,t,a){if(t!=null&&typeof t!=="object")throw Error(M(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var n in t)o=t[n],t.hasOwnProperty(n)&&a[n]!==o&&Pz(e,n,o)}else for(var s in t)t.hasOwnProperty(s)&&Pz(e,s,t[s])}function Ym(e){if(e.indexOf("-")===-1)return!1;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 dV=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),pV=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function vl(e){return pV.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Na(){}var om=null;function Qm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zn=null,ar=null;function Gz(e){var t=vr(e);if(t&&(e=t.stateNode)){var a=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(tm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;a=a.querySelectorAll('input[name="'+Vt(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[yt]||null;if(!n)throw Error(M(90));tm(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&yU(o)}break e;case"textarea":CU(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&tr(e,!!a.multiple,t,!1)}}}var Sf=!1;function TU(e,t,a){if(Sf)return e(t,a);Sf=!0;try{var o=e(t);return o}finally{if(Sf=!1,Zn!==null||ar!==null){if(bc(),Zn&&(t=Zn,e=ar,ar=Zn=null,Gz(t),e))for(t=0;t<e.length;t++)Gz(e[t])}}}function Rs(e,t){var a=e.stateNode;if(a===null)return null;var o=a[yt]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error(M(231,t,typeof a));return a}var Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nm=!1;if(Ua)try{Qo={},Object.defineProperty(Qo,"passive",{get:function(){nm=!0}}),window.addEventListener("test",Qo,Qo),window.removeEventListener("test",Qo,Qo)}catch(e){nm=!1}var Qo,uo=null,Wm=null,yl=null;function xU(){if(yl)return yl;var e,t=Wm,a=t.length,o,n="value"in uo?uo.value:uo.textContent,s=n.length;for(e=0;e<a&&t[e]===n[e];e++);var i=a-e;for(o=1;o<=i&&t[a-o]===n[s-o];o++);return yl=n.slice(e,1<o?1-o:void 0)}function bl(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 cl(){return!0}function Vz(){return!1}function bt(e){function t(a,o,n,s,i){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?cl:Vz,this.isPropagationStopped=Vz,this}return me(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),t}var un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uc=bt(un),Qs=me({},un,{view:0,detail:0}),hV=bt(Qs),vf,yf,os,fc=me({},Qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Km,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){if("movementX"in e)return e.movementX;return e!==os&&(os&&e.type==="mousemove"?(vf=e.screenX-os.screenX,yf=e.screenY-os.screenY):yf=vf=0,os=e),vf},movementY:function(e){return"movementY"in e?e.movementY:yf}}),qz=bt(fc),gV=me({},fc,{dataTransfer:0}),IV=bt(gV),SV=me({},Qs,{relatedTarget:0}),bf=bt(SV),vV=me({},un,{animationName:0,elapsedTime:0,pseudoElement:0}),yV=bt(vV),bV=me({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CV=bt(bV),wV=me({},un,{data:0}),Zz=bt(wV),AV={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TV={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"},xV={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function MV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xV[e])?!!t[e]:!1}function Km(){return MV}var DV=me({},Qs,{key:function(e){if(e.key){var t=AV[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TV[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Km,charCode:function(e){return e.type==="keypress"?bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),EV=bt(DV),LV=me({},fc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xz=bt(LV),RV=me({},Qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Km}),BV=bt(RV),NV=me({},un,{propertyName:0,elapsedTime:0,pseudoElement:0}),OV=bt(NV),HV=me({},fc,{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}),kV=bt(HV),zV=me({},un,{newState:0,oldState:0}),UV=bt(zV),FV=[9,13,27,32],Jm=Ua&&"CompositionEvent"in window,Is=null;Ua&&"documentMode"in document&&(Is=document.documentMode);var _V=Ua&&"TextEvent"in window&&!Is,MU=Ua&&(!Jm||Is&&8<Is&&11>=Is),jz=String.fromCharCode(32),Yz=!1;function DU(e,t){switch(e){case"keyup":return FV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function EU(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}var Xn=!1;function PV(e,t){switch(e){case"compositionend":return EU(t);case"keypress":if(t.which!==32)return null;return Yz=!0,jz;case"textInput":return e=t.data,e===jz&&Yz?null:e;default:return null}}function GV(e,t){if(Xn)return e==="compositionend"||!Jm&&DU(e,t)?(e=xU(),yl=Wm=uo=null,Xn=!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 MU&&t.locale!=="ko"?null:t.data;default:return null}}var VV={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 Qz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VV[e.type]:t==="textarea"?!0:!1}function LU(e,t,a,o){Zn?ar?ar.push(o):ar=[o]:Zn=o,t=ac(t,"onChange"),0<t.length&&(a=new uc("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var Ss=null,Bs=null;function qV(e){T7(e,0)}function mc(e){var t=us(e);if(yU(t))return e}function Wz(e,t){if(e==="change")return t}var RU=!1;if(Ua){if(Ua){if(ms="oninput"in document,!ms)Cl=document.createElement("div"),Cl.setAttribute("oninput","return;"),ms=typeof Cl.oninput==="function";fs=ms}else fs=!1;RU=fs&&(!document.documentMode||9<document.documentMode)}var fs,ms,Cl;function Kz(){Ss&&(Ss.detachEvent("onpropertychange",BU),Bs=Ss=null)}function BU(e){if(e.propertyName==="value"&&mc(Bs)){var t=[];LU(t,Bs,e,Qm(e)),TU(qV,t)}}function ZV(e,t,a){e==="focusin"?(Kz(),Ss=t,Bs=a,Ss.attachEvent("onpropertychange",BU)):e==="focusout"&&Kz()}function XV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mc(Bs)}function jV(e,t){if(e==="click")return mc(t)}function YV(e,t){if(e==="input"||e==="change")return mc(t)}function QV(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is==="function"?Object.is:QV;function Ns(e,t){if(Ot(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var n=a[o];if(!Jf.call(t,n)||!Ot(e[n],t[n]))return!1}return!0}function Jz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $z(e,t){var a=Jz(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Jz(a)}}function NU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?NU(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function OU(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ul(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Ul(e.document)}return t}function $m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var WV=Ua&&"documentMode"in document&&11>=document.documentMode,jn=null,rm=null,vs=null,sm=!1;function e5(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;sm||jn==null||jn!==Ul(o)||(o=jn,("selectionStart"in o)&&$m(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),vs&&Ns(vs,o)||(vs=o,o=ac(rm,"onSelect"),0<o.length&&(t=new uc("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=jn)))}function Xo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Yn={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionrun:Xo("Transition","TransitionRun"),transitionstart:Xo("Transition","TransitionStart"),transitioncancel:Xo("Transition","TransitionCancel"),transitionend:Xo("Transition","TransitionEnd")},Cf={},HU={};Ua&&(HU=document.createElement("div").style,("AnimationEvent"in window)||(delete Yn.animationend.animation,delete Yn.animationiteration.animation,delete Yn.animationstart.animation),("TransitionEvent"in window)||delete Yn.transitionend.transition);function fn(e){if(Cf[e])return Cf[e];if(!Yn[e])return e;var t=Yn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in HU)return Cf[e]=t[a];return e}var kU=fn("animationend"),zU=fn("animationiteration"),UU=fn("animationstart"),KV=fn("transitionrun"),JV=fn("transitionstart"),$V=fn("transitioncancel"),FU=fn("transitionend"),_U=new Map,im="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");im.push("scrollEnd");function oa(e,t){_U.set(e,t),cn(t,[e])}var Fl=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Qn=0,ed=0;function dc(){for(var e=Qn,t=ed=Qn=0;t<e;){var a=Ft[t];Ft[t++]=null;var o=Ft[t];Ft[t++]=null;var n=Ft[t];Ft[t++]=null;var s=Ft[t];if(Ft[t++]=null,o!==null&&n!==null){var i=o.pending;i===null?n.next=n:(n.next=i.next,i.next=n),o.pending=n}s!==0&&PU(a,n,s)}}function pc(e,t,a,o){Ft[Qn++]=e,Ft[Qn++]=t,Ft[Qn++]=a,Ft[Qn++]=o,ed|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function td(e,t,a,o){return pc(e,t,a,o),_l(e)}function mn(e,t){return pc(e,null,null,t),_l(e)}function PU(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,s=e.return;s!==null;)s.childLanes|=a,o=s.alternate,o!==null&&(o.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Bt(a),e=s.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),s):null}function _l(e){if(50<Ds)throw Ds=0,Dm=null,Error(M(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wn={};function eq(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,a,o){return new eq(e,t,a,o)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ha(e,t){var a=e.alternate;return a===null?(a=Dt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function GU(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wl(e,t,a,o,n,s){var i=0;if(o=e,typeof e==="function")ad(e)&&(i=1);else if(typeof e==="string")i=oZ(e,a,ha.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yf:return e=Dt(31,a,t,n),e.elementType=Yf,e.lanes=s,e;case Gn:return $o(a.children,n,s,t);case iU:i=8,n|=24;break;case Zf:return e=Dt(12,a,t,n|2),e.elementType=Zf,e.lanes=s,e;case Xf:return e=Dt(13,a,t,n),e.elementType=Xf,e.lanes=s,e;case jf:return e=Dt(19,a,t,n),e.elementType=jf,e.lanes=s,e;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Ba:i=10;break e;case lU:i=9;break e;case Gm:i=11;break e;case Vm:i=14;break e;case oo:i=16,o=null;break e}i=29,a=Error(M(130,e===null?"null":typeof e,"")),o=null}return t=Dt(i,a,t,n),t.elementType=e,t.type=o,t.lanes=s,t}function $o(e,t,a,o){return e=Dt(7,e,o,t),e.lanes=a,e}function wf(e,t,a){return e=Dt(6,e,null,t),e.lanes=a,e}function VU(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Af(e,t,a){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var t5=new WeakMap;function qt(e,t){if(typeof e==="object"&&e!==null){var a=t5.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:kz(t)},t5.set(e,t),t}return{value:e,source:t,stack:kz(t)}}var Kn=[],Jn=0,Pl=null,Os=0,Pt=[],Gt=0,Ao=null,ma=1,da="";function La(e,t){Kn[Jn++]=Os,Kn[Jn++]=Pl,Pl=e,Os=t}function qU(e,t,a){Pt[Gt++]=ma,Pt[Gt++]=da,Pt[Gt++]=Ao,Ao=e;var o=ma;e=da;var n=32-Bt(o)-1;o&=~(1<<n),a+=1;var s=32-Bt(t)+n;if(30<s){var i=n-n%5;s=(o&(1<<i)-1).toString(32),o>>=i,n-=i,ma=1<<32-Bt(t)+n|a<<n|o,da=s+e}else ma=1<<s|a<<n|o,da=e}function od(e){e.return!==null&&(La(e,1),qU(e,1,0))}function nd(e){for(;e===Pl;)Pl=Kn[--Jn],Kn[Jn]=null,Os=Kn[--Jn],Kn[Jn]=null;for(;e===Ao;)Ao=Pt[--Gt],Pt[Gt]=null,da=Pt[--Gt],Pt[Gt]=null,ma=Pt[--Gt],Pt[Gt]=null}function ZU(e,t){Pt[Gt++]=ma,Pt[Gt++]=da,Pt[Gt++]=Ao,ma=t.id,da=t.overflow,Ao=e}var nt=null,fe=null,Z=!1,go=null,Zt=!1,lm=Error(M(519));function To(e){var t=Error(M(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hs(qt(t,e)),lm}function a5(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[ot]=e,t[yt]=o,a){case"dialog":_("cancel",t),_("close",t);break;case"iframe":case"object":case"embed":_("load",t);break;case"video":case"audio":for(a=0;a<Fs.length;a++)_(Fs[a],t);break;case"source":_("error",t);break;case"img":case"image":case"link":_("error",t),_("load",t);break;case"details":_("toggle",t);break;case"input":_("invalid",t),bU(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":_("invalid",t);break;case"textarea":_("invalid",t),wU(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||M7(t.textContent,a)?(o.popover!=null&&(_("beforetoggle",t),_("toggle",t)),o.onScroll!=null&&_("scroll",t),o.onScrollEnd!=null&&_("scrollend",t),o.onClick!=null&&(t.onclick=Na),t=!0):t=!1,t||To(e,!0)}function o5(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:nt=nt.return}}function zn(e){if(e!==nt)return!1;if(!Z)return o5(e),Z=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Hm(e.type,e.memoizedProps);a=!a}if(a&&fe&&To(e),o5(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));fe=V5(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));fe=V5(e)}else t===27?(t=fe,Eo(e.type)?(e=Fm,Fm=null,fe=e):fe=t):fe=nt?jt(e.stateNode.nextSibling):null;return!0}function on(){fe=nt=null,Z=!1}function Tf(){var e=go;return e!==null&&(St===null?St=e:St.push.apply(St,e),go=null),e}function Hs(e){go===null?go=[e]:go.push(e)}var cm=ga(null),dn=null,Oa=null;function ro(e,t,a){se(cm,t._currentValue),t._currentValue=a}function ka(e){e._currentValue=cm.current,Je(cm)}function um(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function fm(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var s=n.dependencies;if(s!==null){var i=n.child;s=s.firstContext;e:for(;s!==null;){var l=s;s=n;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=a,l=s.alternate,l!==null&&(l.lanes|=a),um(s.return,a,e),o||(i=null);break e}s=l.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(M(341));i.lanes|=a,s=i.alternate,s!==null&&(s.lanes|=a),um(i,a,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function yr(e,t,a,o){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(M(387));if(i=i.memoizedProps,i!==null){var l=n.type;Ot(n.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(n===Ol.current){if(i=n.alternate,i===null)throw Error(M(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ps):e=[Ps])}n=n.return}e!==null&&fm(t,e,a,o),t.flags|=262144}function Gl(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nn(e){dn=e,Oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return XU(dn,e)}function ul(e,t){return dn===null&&nn(e),XU(e,t)}function XU(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Oa===null){if(e===null)throw Error(M(308));Oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Oa=Oa.next=t;return a}var tq=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},aq=Ze.unstable_scheduleCallback,oq=Ze.unstable_NormalPriority,Fe={$$typeof:Ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rd(){return{controller:new tq,data:new Map,refCount:0}}function Ws(e){e.refCount--,e.refCount===0&&aq(oq,function(){e.controller.abort()})}var ys=null,mm=0,ur=0,or=null;function nq(e,t){if(ys===null){var a=ys=[];mm=0,ur=Ld(),or={status:"pending",value:void 0,then:function(o){a.push(o)}}}return mm++,t.then(n5,n5),t}function n5(){if(--mm===0&&ys!==null){or!==null&&(or.status="fulfilled");var e=ys;ys=null,ur=0,or=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rq(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){o.status="rejected",o.reason=n;for(n=0;n<a.length;n++)(0,a[n])(void 0)}),o}var r5=H.S;H.S=function(e,t){s7=Lt(),typeof t==="object"&&t!==null&&typeof t.then==="function"&&nq(e,t),r5!==null&&r5(e,t)};var en=ga(null);function sd(){var e=en.current;return e!==null?e:re.pooledCache}function Al(e,t){t===null?se(en,en.current):se(en,t.pool)}function jU(){var e=sd();return e===null?null:{parent:Fe._currentValue,pool:e}}var br=Error(M(460)),id=Error(M(474)),hc=Error(M(542)),Vl={then:function(){}};function s5(e){return e=e.status,e==="fulfilled"||e==="rejected"}function YU(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Na,Na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,l5(e),e;default:if(typeof t.status==="string")t.then(Na,Na);else{if(e=re,e!==null&&100<e.shellSuspendCounter)throw Error(M(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=o}},function(o){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,l5(e),e}throw tn=t,br}}function Wo(e){try{var t=e._init;return t(e._payload)}catch(a){if(a!==null&&typeof a==="object"&&typeof a.then==="function")throw tn=a,br;throw a}}var tn=null;function i5(){if(tn===null)throw Error(M(459));var e=tn;return tn=null,e}function l5(e){if(e===br||e===hc)throw Error(M(483))}var nr=null,ks=0;function fl(e){var t=ks;return ks+=1,nr===null&&(nr=[]),YU(nr,e,t)}function ns(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ml(e,t){if(t.$$typeof===ZG)throw Error(M(525));throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function QU(e){function t(g,I){if(e){var S=g.deletions;S===null?(g.deletions=[I],g.flags|=16):S.push(I)}}function a(g,I){if(!e)return null;for(;I!==null;)t(g,I),I=I.sibling;return null}function o(g){for(var I=new Map;g!==null;)g.key!==null?I.set(g.key,g):I.set(g.index,g),g=g.sibling;return I}function n(g,I){return g=Ha(g,I),g.index=0,g.sibling=null,g}function s(g,I,S){if(g.index=S,!e)return g.flags|=1048576,I;if(S=g.alternate,S!==null)return S=S.index,S<I?(g.flags|=67108866,I):S;return g.flags|=67108866,I}function i(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,I,S,y){if(I===null||I.tag!==6)return I=wf(S,g.mode,y),I.return=g,I;return I=n(I,S),I.return=g,I}function c(g,I,S,y){var w=S.type;if(w===Gn)return f(g,I,S.props.children,y,S.key);if(I!==null&&(I.elementType===w||typeof w==="object"&&w!==null&&w.$$typeof===oo&&Wo(w)===I.type))return I=n(I,S.props),ns(I,S),I.return=g,I;return I=wl(S.type,S.key,S.props,null,g.mode,y),ns(I,S),I.return=g,I}function u(g,I,S,y){if(I===null||I.tag!==4||I.stateNode.containerInfo!==S.containerInfo||I.stateNode.implementation!==S.implementation)return I=Af(S,g.mode,y),I.return=g,I;return I=n(I,S.children||[]),I.return=g,I}function f(g,I,S,y,w){if(I===null||I.tag!==7)return I=$o(S,g.mode,y,w),I.return=g,I;return I=n(I,S),I.return=g,I}function m(g,I,S){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=wf(""+I,g.mode,S),I.return=g,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case nl:return S=wl(I.type,I.key,I.props,null,g.mode,S),ns(S,I),S.return=g,S;case ls:return I=Af(I,g.mode,S),I.return=g,I;case oo:return I=Wo(I),m(g,I,S)}if(cs(I)||as(I))return I=$o(I,g.mode,S,null),I.return=g,I;if(typeof I.then==="function")return m(g,fl(I),S);if(I.$$typeof===Ba)return m(g,ul(g,I),S);ml(g,I)}return null}function d(g,I,S,y){var w=I!==null?I.key:null;if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return w!==null?null:l(g,I,""+S,y);if(typeof S==="object"&&S!==null){switch(S.$$typeof){case nl:return S.key===w?c(g,I,S,y):null;case ls:return S.key===w?u(g,I,S,y):null;case oo:return S=Wo(S),d(g,I,S,y)}if(cs(S)||as(S))return w!==null?null:f(g,I,S,y,null);if(typeof S.then==="function")return d(g,I,fl(S),y);if(S.$$typeof===Ba)return d(g,I,ul(g,S),y);ml(g,S)}return null}function p(g,I,S,y,w){if(typeof y==="string"&&y!==""||typeof y==="number"||typeof y==="bigint")return g=g.get(S)||null,l(I,g,""+y,w);if(typeof y==="object"&&y!==null){switch(y.$$typeof){case nl:return g=g.get(y.key===null?S:y.key)||null,c(I,g,y,w);case ls:return g=g.get(y.key===null?S:y.key)||null,u(I,g,y,w);case oo:return y=Wo(y),p(g,I,S,y,w)}if(cs(y)||as(y))return g=g.get(S)||null,f(I,g,y,w,null);if(typeof y.then==="function")return p(g,I,S,fl(y),w);if(y.$$typeof===Ba)return p(g,I,S,ul(I,y),w);ml(I,y)}return null}function v(g,I,S,y){for(var w=null,T=null,x=I,E=I=0,L=null;x!==null&&E<S.length;E++){x.index>E?(L=x,x=null):L=x.sibling;var D=d(g,x,S[E],y);if(D===null){x===null&&(x=L);break}e&&x&&D.alternate===null&&t(g,x),I=s(D,I,E),T===null?w=D:T.sibling=D,T=D,x=L}if(E===S.length)return a(g,x),Z&&La(g,E),w;if(x===null){for(;E<S.length;E++)x=m(g,S[E],y),x!==null&&(I=s(x,I,E),T===null?w=x:T.sibling=x,T=x);return Z&&La(g,E),w}for(x=o(x);E<S.length;E++)L=p(x,g,E,S[E],y),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?E:L.key),I=s(L,I,E),T===null?w=L:T.sibling=L,T=L);return e&&x.forEach(function(N){return t(g,N)}),Z&&La(g,E),w}function b(g,I,S,y){if(S==null)throw Error(M(151));for(var w=null,T=null,x=I,E=I=0,L=null,D=S.next();x!==null&&!D.done;E++,D=S.next()){x.index>E?(L=x,x=null):L=x.sibling;var N=d(g,x,D.value,y);if(N===null){x===null&&(x=L);break}e&&x&&N.alternate===null&&t(g,x),I=s(N,I,E),T===null?w=N:T.sibling=N,T=N,x=L}if(D.done)return a(g,x),Z&&La(g,E),w;if(x===null){for(;!D.done;E++,D=S.next())D=m(g,D.value,y),D!==null&&(I=s(D,I,E),T===null?w=D:T.sibling=D,T=D);return Z&&La(g,E),w}for(x=o(x);!D.done;E++,D=S.next())D=p(x,g,E,D.value,y),D!==null&&(e&&D.alternate!==null&&x.delete(D.key===null?E:D.key),I=s(D,I,E),T===null?w=D:T.sibling=D,T=D);return e&&x.forEach(function(oe){return t(g,oe)}),Z&&La(g,E),w}function C(g,I,S,y){if(typeof S==="object"&&S!==null&&S.type===Gn&&S.key===null&&(S=S.props.children),typeof S==="object"&&S!==null){switch(S.$$typeof){case nl:e:{for(var w=S.key;I!==null;){if(I.key===w){if(w=S.type,w===Gn){if(I.tag===7){a(g,I.sibling),y=n(I,S.props.children),y.return=g,g=y;break e}}else if(I.elementType===w||typeof w==="object"&&w!==null&&w.$$typeof===oo&&Wo(w)===I.type){a(g,I.sibling),y=n(I,S.props),ns(y,S),y.return=g,g=y;break e}a(g,I);break}else t(g,I);I=I.sibling}S.type===Gn?(y=$o(S.props.children,g.mode,y,S.key),y.return=g,g=y):(y=wl(S.type,S.key,S.props,null,g.mode,y),ns(y,S),y.return=g,g=y)}return i(g);case ls:e:{for(w=S.key;I!==null;){if(I.key===w)if(I.tag===4&&I.stateNode.containerInfo===S.containerInfo&&I.stateNode.implementation===S.implementation){a(g,I.sibling),y=n(I,S.children||[]),y.return=g,g=y;break e}else{a(g,I);break}else t(g,I);I=I.sibling}y=Af(S,g.mode,y),y.return=g,g=y}return i(g);case oo:return S=Wo(S),C(g,I,S,y)}if(cs(S))return v(g,I,S,y);if(as(S)){if(w=as(S),typeof w!=="function")throw Error(M(150));return S=w.call(S),b(g,I,S,y)}if(typeof S.then==="function")return C(g,I,fl(S),y);if(S.$$typeof===Ba)return C(g,I,ul(g,S),y);ml(g,S)}return typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint"?(S=""+S,I!==null&&I.tag===6?(a(g,I.sibling),y=n(I,S),y.return=g,g=y):(a(g,I),y=wf(S,g.mode,y),y.return=g,g=y),i(g)):a(g,I)}return function(g,I,S,y){try{ks=0;var w=C(g,I,S,y);return nr=null,w}catch(x){if(x===br||x===hc)throw x;var T=Dt(29,x,null,g.mode);return T.lanes=y,T.return=g,T}finally{}}}var rn=QU(!0),WU=QU(!1),no=!1;function ld(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Io(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(X&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=_l(e),PU(e,null,a),t}return pc(e,o,t,a),_l(e)}function bs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,pU(e,a)}}function xf(e,t){var{updateQueue:a,alternate:o}=e;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?n=s=i:s=s.next=i,a=a.next}while(a!==null);s===null?n=s=t:s=s.next=t}else n=s=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var pm=!1;function Cs(){if(pm){var e=or;if(e!==null)throw e}}function ws(e,t,a,o){pm=!1;var n=e.updateQueue;no=!1;var{firstBaseUpdate:s,lastBaseUpdate:i}=n,l=n.shared.pending;if(l!==null){n.shared.pending=null;var c=l,u=c.next;c.next=null,i===null?s=u:i.next=u,i=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==i&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(s!==null){var m=n.baseState;i=0,f=u=c=null,l=s;do{var d=l.lane&-536870913,p=d!==l.lane;if(p?(q&d)===d:(o&d)===d){d!==0&&d===ur&&(pm=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var v=e,b=l;d=t;var C=a;switch(b.tag){case 1:if(v=b.payload,typeof v==="function"){m=v.call(C,m,d);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,d=typeof v==="function"?v.call(C,m,d):v,d===null||d===void 0)break e;m=me({},m,d);break e;case 2:no=!0}}d=l.callback,d!==null&&(e.flags|=64,p&&(e.flags|=8192),p=n.callbacks,p===null?n.callbacks=[d]:p.push(d))}else p={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,c=m):f=f.next=p,i|=d;if(l=l.next,l===null)if(l=n.shared.pending,l===null)break;else p=l,l=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}while(1);f===null&&(c=m),n.baseState=c,n.firstBaseUpdate=u,n.lastBaseUpdate=f,s===null&&(n.shared.lanes=0),Mo|=i,e.lanes=i,e.memoizedState=m}}function KU(e,t){if(typeof e!=="function")throw Error(M(191,e));e.call(t)}function JU(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)KU(a[e],t)}var fr=ga(null),ql=ga(0);function c5(e,t){e=Ga,se(ql,e),se(fr,t),Ga=e|t.baseLanes}function hm(){se(ql,Ga),se(fr,fr.current)}function cd(){Ga=ql.current,Je(fr),Je(ql)}var Ht=ga(null),Xt=null;function so(e){var t=e.alternate;se(He,He.current&1),se(Ht,e),Xt===null&&(t===null||fr.current!==null?Xt=e:t.memoizedState!==null&&(Xt=e))}function gm(e){se(He,He.current),se(Ht,e),Xt===null&&(Xt=e)}function $U(e){e.tag===22?(se(He,He.current),se(Ht,e),Xt===null&&(Xt=e)):io(e)}function io(){se(He,He.current),se(Ht,Ht.current)}function Mt(e){Je(Ht),Xt===e&&(Xt=null),Je(He)}var He=ga(0);function Zl(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zm(a)||Um(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 Fa=0,F=null,ae=null,ze=null,Xl=!1,rr=!1,sn=!1,jl=0,zs=0,sr=null,sq=0;function Ie(){throw Error(M(321))}function ud(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ot(e[a],t[a]))return!1;return!0}function fd(e,t,a,o,n,s){return Fa=s,F=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?LF:Cd,sn=!1,s=a(o,n),sn=!1,rr&&(s=tF(t,a,o,n)),eF(e),s}function eF(e){H.H=Us;var t=ae!==null&&ae.next!==null;if(Fa=0,ze=ae=F=null,Xl=!1,zs=0,sr=null,t)throw Error(M(300));e===null||_e||(e=e.dependencies,e!==null&&Gl(e)&&(_e=!0))}function tF(e,t,a,o){F=e;var n=0;do{if(rr&&(sr=null),zs=0,rr=!1,25<=n)throw Error(M(301));if(n+=1,ze=ae=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}H.H=RF,s=t(a,o)}while(rr);return s}function iq(){var e=H.H,t=e.useState()[0];return t=typeof t.then==="function"?Ks(t):t,e=e.useState()[0],(ae!==null?ae.memoizedState:null)!==e&&(F.flags|=1024),t}function md(){var e=jl!==0;return jl=0,e}function dd(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function pd(e){if(Xl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xl=!1}Fa=0,ze=ae=F=null,rr=!1,zs=jl=0,sr=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?F.memoizedState=ze=e:ze=ze.next=e,ze}function ke(){if(ae===null){var e=F.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=ze===null?F.memoizedState:ze.next;if(t!==null)ze=t,ae=e;else{if(e===null){if(F.alternate===null)throw Error(M(467));throw Error(M(310))}ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},ze===null?F.memoizedState=ze=e:ze=ze.next=e}return ze}function gc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ks(e){var t=zs;return zs+=1,sr===null&&(sr=[]),e=YU(sr,e,t),t=F,(ze===null?t.memoizedState:ze.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?LF:Cd),e}function Ic(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Ks(e);if(e.$$typeof===Ba)return rt(e)}throw Error(M(438,String(e)))}function hd(e){var t=null,a=F.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=F.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=gc(),F.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=XG;return t.index++,a}function _a(e,t){return typeof t==="function"?t(e):t}function Tl(e){var t=ke();return gd(t,ae,e)}function gd(e,t,a){var o=e.queue;if(o===null)throw Error(M(311));o.lastRenderedReducer=a;var n=e.baseQueue,s=o.pending;if(s!==null){if(n!==null){var i=n.next;n.next=s.next,s.next=i}t.baseQueue=n=s,o.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var l=i=null,c=null,u=t,f=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(q&m)===m:(Fa&m)===m){var d=u.revertLane;if(d===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===ur&&(f=!0);else if((Fa&d)===d){u=u.next,d===ur&&(f=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,i=s):c=c.next=m,F.lanes|=d,Mo|=d;m=u.action,sn&&a(s,m),s=u.hasEagerState?u.eagerState:a(s,m)}else d={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=d,i=s):c=c.next=d,F.lanes|=m,Mo|=m;u=u.next}while(u!==null&&u!==t);if(c===null?i=s:c.next=l,!Ot(s,e.memoizedState)&&(_e=!0,f&&(a=or,a!==null)))throw a;e.memoizedState=s,e.baseState=i,e.baseQueue=c,o.lastRenderedState=s}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Mf(e){var t=ke(),a=t.queue;if(a===null)throw Error(M(311));a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,s=t.memoizedState;if(n!==null){a.pending=null;var i=n=n.next;do s=e(s,i.action),i=i.next;while(i!==n);Ot(s,t.memoizedState)||(_e=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,o]}function aF(e,t,a){var o=F,n=ke(),s=Z;if(s){if(a===void 0)throw Error(M(407));a=a()}else a=t();var i=!Ot((ae||n).memoizedState,a);if(i&&(n.memoizedState=a,_e=!0),n=n.queue,Id(rF.bind(null,o,n,e),[e]),n.getSnapshot!==t||i||ze!==null&&ze.memoizedState.tag&1){if(o.flags|=2048,mr(9,{destroy:void 0},nF.bind(null,o,n,a,t),null),re===null)throw Error(M(349));s||(Fa&127)!==0||oF(o,t,a)}return a}function oF(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=F.updateQueue,t===null?(t=gc(),F.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nF(e,t,a,o){t.value=a,t.getSnapshot=o,sF(t)&&iF(e)}function rF(e,t,a){return a(function(){sF(t)&&iF(e)})}function sF(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ot(e,a)}catch(o){return!0}}function iF(e){var t=mn(e,2);t!==null&&vt(t,e,2)}function Im(e){var t=pt();if(typeof e==="function"){var a=e;if(e=a(),sn){co(!0);try{a()}finally{co(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:e},t}function lF(e,t,a,o){return e.baseState=a,gd(e,ae,typeof o==="function"?o:_a)}function lq(e,t,a,o,n){if(vc(e))throw Error(M(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){s.listeners.push(i)}};H.T!==null?a(!0):s.isTransition=!1,o(s),a=t.pending,a===null?(s.next=t.pending=s,cF(t,s)):(s.next=a.next,t.pending=a.next=s)}}function cF(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var s=H.T,i={};H.T=i;try{var l=a(n,o),c=H.S;c!==null&&c(i,l),u5(e,t,l)}catch(u){Sm(e,t,u)}finally{s!==null&&i.types!==null&&(s.types=i.types),H.T=s}}else try{s=a(n,o),u5(e,t,s)}catch(u){Sm(e,t,u)}}function u5(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?a.then(function(o){f5(e,t,o)},function(o){return Sm(e,t,o)}):f5(e,t,a)}function f5(e,t,a){t.status="fulfilled",t.value=a,uF(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,cF(e,a)))}function Sm(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,uF(t),t=t.next;while(t!==o)}e.action=null}function uF(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fF(e,t){return t}function m5(e,t){if(Z){var a=re.formState;if(a!==null){e:{var o=F;if(Z){if(fe){t:{var n=fe;for(var s=Zt;n.nodeType!==8;){if(!s){n=null;break t}if(n=jt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){fe=jt(n.nextSibling),o=n.data==="F!";break e}}To(o)}o=!1}o&&(t=a[0])}}return a=pt(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fF,lastRenderedState:t},a.queue=o,a=MF.bind(null,F,o),o.dispatch=a,o=Im(!1),s=bd.bind(null,F,!1,o.queue),o=pt(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=lq.bind(null,F,n,s,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function d5(e){var t=ke();return mF(t,ae,e)}function mF(e,t,a){if(t=gd(e,t,fF)[0],e=Tl(_a)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Ks(t)}catch(i){if(i===br)throw hc;throw i}else o=t;t=ke();var n=t.queue,s=n.dispatch;return a!==t.memoizedState&&(F.flags|=2048,mr(9,{destroy:void 0},cq.bind(null,n,a),null)),[o,s,e]}function cq(e,t){e.action=t}function p5(e){var t=ke(),a=ae;if(a!==null)return mF(t,a,e);ke(),t=t.memoizedState,a=ke();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function mr(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=F.updateQueue,t===null&&(t=gc(),F.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function dF(){return ke().memoizedState}function xl(e,t,a,o){var n=pt();F.flags|=e,n.memoizedState=mr(1|t,{destroy:void 0},a,o===void 0?null:o)}function Sc(e,t,a,o){var n=ke();o=o===void 0?null:o;var s=n.memoizedState.inst;ae!==null&&o!==null&&ud(o,ae.memoizedState.deps)?n.memoizedState=mr(t,s,a,o):(F.flags|=e,n.memoizedState=mr(1|t,s,a,o))}function h5(e,t){xl(8390656,8,e,t)}function Id(e,t){Sc(2048,8,e,t)}function uq(e){F.flags|=4;var t=F.updateQueue;if(t===null)t=gc(),F.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function pF(e){var t=ke().memoizedState;return uq({ref:t,nextImpl:e}),function(){if((X&2)!==0)throw Error(M(440));return t.impl.apply(void 0,arguments)}}function hF(e,t){return Sc(4,2,e,t)}function gF(e,t){return Sc(4,4,e,t)}function IF(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return e=e(),t.current=e,function(){t.current=null}}function SF(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,Sc(4,4,IF.bind(null,t,e),a)}function Sd(){}function vF(e,t){var a=ke();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ud(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function yF(e,t){var a=ke();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&ud(t,o[1]))return o[0];if(o=e(),sn){co(!0);try{e()}finally{co(!1)}}return a.memoizedState=[o,t],o}function vd(e,t,a){if(a===void 0||(Fa&1073741824)!==0&&(q&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=l7(),F.lanes|=e,Mo|=e,a}function bF(e,t,a,o){if(Ot(a,t))return a;if(fr.current!==null)return e=vd(e,a,o),Ot(e,t)||(_e=!0),e;if((Fa&42)===0||(Fa&1073741824)!==0&&(q&261930)===0)return _e=!0,e.memoizedState=a;return e=l7(),F.lanes|=e,Mo|=e,t}function CF(e,t,a,o,n){var s=j.p;j.p=s!==0&&8>s?s:8;var i=H.T,l={};H.T=l,bd(e,!1,t,a);try{var c=n(),u=H.S;if(u!==null&&u(l,c),c!==null&&typeof c==="object"&&typeof c.then==="function"){var f=rq(c,o);As(e,t,f,Nt(e))}else As(e,t,o,Nt(e))}catch(m){As(e,t,{then:function(){},status:"rejected",reason:m},Nt())}finally{j.p=s,i!==null&&l.types!==null&&(i.types=l.types),H.T=i}}function fq(){}function vm(e,t,a,o){if(e.tag!==5)throw Error(M(476));var n=wF(e).queue;CF(e,n,t,Jo,a===null?fq:function(){return AF(e),a(o)})}function wF(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Jo,baseState:Jo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:Jo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function AF(e){var t=wF(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},Nt())}function yd(){return rt(Ps)}function TF(){return ke().memoizedState}function xF(){return ke().memoizedState}function mq(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Nt();e=Io(a);var o=So(t,e,a);o!==null&&(vt(o,t,a),bs(o,t,a)),t={cache:rd()},e.payload=t;return}t=t.return}}function dq(e,t,a){var o=Nt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vc(e)?DF(t,a):(a=td(e,t,a,o),a!==null&&(vt(a,e,o),EF(a,t,o)))}function MF(e,t,a){var o=Nt();As(e,t,a,o)}function As(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(vc(e))DF(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,l=s(i,a);if(n.hasEagerState=!0,n.eagerState=l,Ot(l,i))return pc(e,t,n,0),re===null&&dc(),!1}catch(c){}finally{}if(a=td(e,t,n,o),a!==null)return vt(a,e,o),EF(a,t,o),!0}return!1}function bd(e,t,a,o){if(o={lane:2,revertLane:Ld(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},vc(e)){if(t)throw Error(M(479))}else t=td(e,a,o,2),t!==null&&vt(t,e,2)}function vc(e){var t=e.alternate;return e===F||t!==null&&t===F}function DF(e,t){rr=Xl=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function EF(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,pU(e,a)}}var Us={readContext:rt,use:Ic,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Us.useEffectEvent=Ie;var LF={readContext:rt,use:Ic,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:h5,useImperativeHandle:function(e,t,a){a=a!==null&&a!==void 0?a.concat([e]):null,xl(4194308,4,IF.bind(null,t,e),a)},useLayoutEffect:function(e,t){return xl(4194308,4,e,t)},useInsertionEffect:function(e,t){xl(4,2,e,t)},useMemo:function(e,t){var a=pt();t=t===void 0?null:t;var o=e();if(sn){co(!0);try{e()}finally{co(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=pt();if(a!==void 0){var n=a(t);if(sn){co(!0);try{a(t)}finally{co(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=dq.bind(null,F,e),[o.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=Im(e);var t=e.queue,a=MF.bind(null,F,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Sd,useDeferredValue:function(e,t){var a=pt();return vd(a,e,t)},useTransition:function(){var e=Im(!1);return e=CF.bind(null,F,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=F,n=pt();if(Z){if(a===void 0)throw Error(M(407));a=a()}else{if(a=t(),re===null)throw Error(M(349));(q&127)!==0||oF(o,t,a)}n.memoizedState=a;var s={value:a,getSnapshot:t};return n.queue=s,h5(rF.bind(null,o,s,e),[e]),o.flags|=2048,mr(9,{destroy:void 0},nF.bind(null,o,s,a,t),null),a},useId:function(){var e=pt(),t=re.identifierPrefix;if(Z){var a=da,o=ma;a=(o&~(1<<32-Bt(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=jl++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=sq++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:yd,useFormState:m5,useActionState:m5,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=bd.bind(null,F,!0,a),a.dispatch=t,[e,t]},useMemoCache:hd,useCacheRefresh:function(){return pt().memoizedState=mq.bind(null,F)},useEffectEvent:function(e){var t=pt(),a={impl:e};return t.memoizedState=a,function(){if((X&2)!==0)throw Error(M(440));return a.impl.apply(void 0,arguments)}}},Cd={readContext:rt,use:Ic,useCallback:vF,useContext:rt,useEffect:Id,useImperativeHandle:SF,useInsertionEffect:hF,useLayoutEffect:gF,useMemo:yF,useReducer:Tl,useRef:dF,useState:function(){return Tl(_a)},useDebugValue:Sd,useDeferredValue:function(e,t){var a=ke();return bF(a,ae.memoizedState,e,t)},useTransition:function(){var e=Tl(_a)[0],t=ke().memoizedState;return[typeof e==="boolean"?e:Ks(e),t]},useSyncExternalStore:aF,useId:TF,useHostTransitionStatus:yd,useFormState:d5,useActionState:d5,useOptimistic:function(e,t){var a=ke();return lF(a,ae,e,t)},useMemoCache:hd,useCacheRefresh:xF};Cd.useEffectEvent=pF;var RF={readContext:rt,use:Ic,useCallback:vF,useContext:rt,useEffect:Id,useImperativeHandle:SF,useInsertionEffect:hF,useLayoutEffect:gF,useMemo:yF,useReducer:Mf,useRef:dF,useState:function(){return Mf(_a)},useDebugValue:Sd,useDeferredValue:function(e,t){var a=ke();return ae===null?vd(a,e,t):bF(a,ae.memoizedState,e,t)},useTransition:function(){var e=Mf(_a)[0],t=ke().memoizedState;return[typeof e==="boolean"?e:Ks(e),t]},useSyncExternalStore:aF,useId:TF,useHostTransitionStatus:yd,useFormState:p5,useActionState:p5,useOptimistic:function(e,t){var a=ke();if(ae!==null)return lF(a,ae,e,t);return a.baseState=e,[e,a.queue.dispatch]},useMemoCache:hd,useCacheRefresh:xF};RF.useEffectEvent=pF;function Df(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a===null||a===void 0?t:me({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ym={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Nt(),n=Io(o);n.payload=t,a!==void 0&&a!==null&&(n.callback=a),t=So(e,n,o),t!==null&&(vt(t,e,o),bs(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Nt(),n=Io(o);n.tag=1,n.payload=t,a!==void 0&&a!==null&&(n.callback=a),t=So(e,n,o),t!==null&&(vt(t,e,o),bs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Nt(),o=Io(a);o.tag=2,t!==void 0&&t!==null&&(o.callback=t),t=So(e,o,a),t!==null&&(vt(t,e,a),bs(t,e,a))}};function g5(e,t,a,o,n,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate==="function"?e.shouldComponentUpdate(o,s,i):t.prototype&&t.prototype.isPureReactComponent?!Ns(a,o)||!Ns(n,s):!0}function I5(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&ym.enqueueReplaceState(t,t.state,null)}function ln(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=me({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function BF(e){Fl(e)}function NF(e){console.error(e)}function OF(e){Fl(e)}function Yl(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function S5(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function bm(e,t,a){return a=Io(a),a.tag=3,a.payload={element:null},a.callback=function(){Yl(e,t)},a}function HF(e){return e=Io(e),e.tag=3,e}function kF(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var s=o.value;e.payload=function(){return n(s)},e.callback=function(){S5(t,a,o)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch==="function"&&(e.callback=function(){S5(t,a,o),typeof n!=="function"&&(vo===null?vo=new Set([this]):vo.add(this));var l=o.stack;this.componentDidCatch(o.value,{componentStack:l!==null?l:""})})}function pq(e,t,a,o,n){if(a.flags|=32768,o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&yr(t,a,n,!0),a=Ht.current,a!==null){switch(a.tag){case 31:case 13:return Xt===null?$l():a.alternate===null&&Se===0&&(Se=3),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Vl?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Ff(e,o,n)),!1;case 22:return a.flags|=65536,o===Vl?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),Ff(e,o,n)),!1}throw Error(M(435,a.tag))}return Ff(e,o,n),$l(),!1}if(Z)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==lm&&(e=Error(M(422),{cause:o}),Hs(qt(e,a)))):(o!==lm&&(t=Error(M(423),{cause:o}),Hs(qt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=qt(o,a),n=bm(e.stateNode,o,n),xf(e,n),Se!==4&&(Se=2)),!1;var s=Error(M(520),{cause:o});if(s=qt(s,a),Ms===null?Ms=[s]:Ms.push(s),Se!==4&&(Se=2),t===null)return!0;o=qt(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=bm(a.stateNode,o,e),xf(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||s!==null&&typeof s.componentDidCatch==="function"&&(vo===null||!vo.has(s))))return a.flags|=65536,n&=-n,a.lanes|=n,n=HF(n),kF(n,e,a,o),xf(a,n),!1}a=a.return}while(a!==null);return!1}var wd=Error(M(461)),_e=!1;function at(e,t,a,o){t.child=e===null?WU(t,null,a,o):rn(t,e.child,a,o)}function v5(e,t,a,o,n){a=a.render;var s=t.ref;if("ref"in o){var i={};for(var l in o)l!=="ref"&&(i[l]=o[l])}else i=o;if(nn(t),o=fd(e,t,a,i,s,n),l=md(),e!==null&&!_e)return dd(e,t,n),Pa(e,t,n);return Z&&l&&od(t),t.flags|=1,at(e,t,o,n),t.child}function y5(e,t,a,o,n){if(e===null){var s=a.type;if(typeof s==="function"&&!ad(s)&&s.defaultProps===void 0&&a.compare===null)return t.tag=15,t.type=s,zF(e,t,s,o,n);return e=wl(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(s=e.child,!Ad(e,n)){var i=s.memoizedProps;if(a=a.compare,a=a!==null?a:Ns,a(i,o)&&e.ref===t.ref)return Pa(e,t,n)}return t.flags|=1,e=Ha(s,o),e.ref=t.ref,e.return=t,t.child=e}function zF(e,t,a,o,n){if(e!==null){var s=e.memoizedProps;if(Ns(s,o)&&e.ref===t.ref)if(_e=!1,t.pendingProps=o=s,Ad(e,n))(e.flags&131072)!==0&&(_e=!0);else return t.lanes=e.lanes,Pa(e,t,n)}return Cm(e,t,a,o,n)}function UF(e,t,a,o){var n=o.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~s}else o=0,t.child=null;return b5(e,t,s,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(t,s!==null?s.cachePool:null),s!==null?c5(t,s):hm(),$U(t);else return o=t.lanes=536870912,b5(e,t,s!==null?s.baseLanes|a:a,a,o)}else s!==null?(Al(t,s.cachePool),c5(t,s),io(t),t.memoizedState=null):(e!==null&&Al(t,null),hm(),io(t));return at(e,t,n,a),t.child}function ds(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function b5(e,t,a,o,n){var s=sd();return s=s===null?null:{parent:Fe._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Al(t,null),hm(),$U(t),e!==null&&yr(e,t,o,!0),t.childLanes=n,null}function Ml(e,t){return t=Ql({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function C5(e,t,a){return rn(t,e.child,null,a),e=Ml(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function hq(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Z){if(o.mode==="hidden")return e=Ml(t,o),t.lanes=536870912,ds(null,e);if(gm(t),(e=fe)?(e=L7(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ao!==null?{id:ma,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=VU(e),a.return=t,t.child=a,nt=t,fe=null)):e=null,e===null)throw To(t);return t.lanes=536870912,null}return Ml(t,o)}var s=e.memoizedState;if(s!==null){var i=s.dehydrated;if(gm(t),n)if(t.flags&256)t.flags&=-257,t=C5(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(M(558));else if(_e||yr(e,t,a,!1),n=(a&e.childLanes)!==0,_e||n){if(o=re,o!==null&&(i=hU(o,a),i!==0&&i!==s.retryLane))throw s.retryLane=i,mn(e,i),vt(o,e,i),wd;$l(),t=C5(e,t,a)}else e=s.treeContext,fe=jt(i.nextSibling),nt=t,Z=!0,go=null,Zt=!1,e!==null&&ZU(t,e),t=Ml(t,o),t.flags|=4096;return t}return e=Ha(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Dl(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error(M(284));if(e===null||e.ref!==a)t.flags|=4194816}}function Cm(e,t,a,o,n){if(nn(t),a=fd(e,t,a,o,void 0,n),o=md(),e!==null&&!_e)return dd(e,t,n),Pa(e,t,n);return Z&&o&&od(t),t.flags|=1,at(e,t,a,n),t.child}function w5(e,t,a,o,n,s){if(nn(t),t.updateQueue=null,a=tF(t,o,a,n),eF(e),o=md(),e!==null&&!_e)return dd(e,t,s),Pa(e,t,s);return Z&&o&&od(t),t.flags|=1,at(e,t,a,s),t.child}function A5(e,t,a,o,n){if(nn(t),t.stateNode===null){var s=Wn,i=a.contextType;typeof i==="object"&&i!==null&&(s=rt(i)),s=new a(o,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ym,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=o,s.state=t.memoizedState,s.refs={},ld(t),i=a.contextType,s.context=typeof i==="object"&&i!==null?rt(i):Wn,s.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i==="function"&&(Df(t,a,i,o),s.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof s.getSnapshotBeforeUpdate==="function"||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(i=s.state,typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount(),i!==s.state&&ym.enqueueReplaceState(s,s.state,null),ws(t,o,s,n),Cs(),s.state=t.memoizedState),typeof s.componentDidMount==="function"&&(t.flags|=4194308),o=!0}else if(e===null){s=t.stateNode;var l=t.memoizedProps,c=ln(a,l);s.props=c;var u=s.context,f=a.contextType;i=Wn,typeof f==="object"&&f!==null&&(i=rt(f));var m=a.getDerivedStateFromProps;f=typeof m==="function"||typeof s.getSnapshotBeforeUpdate==="function",l=t.pendingProps!==l,f||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(l||u!==i)&&I5(t,s,o,i),no=!1;var d=t.memoizedState;s.state=d,ws(t,o,s,n),Cs(),u=t.memoizedState,l||d!==u||no?(typeof m==="function"&&(Df(t,a,m,o),u=t.memoizedState),(c=no||g5(t,a,c,o,d,u,i))?(f||typeof s.UNSAFE_componentWillMount!=="function"&&typeof s.componentWillMount!=="function"||(typeof s.componentWillMount==="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==="function"&&(t.flags|=4194308)):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),s.props=o,s.state=u,s.context=i,o=c):(typeof s.componentDidMount==="function"&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,dm(e,t),i=t.memoizedProps,f=ln(a,i),s.props=f,m=t.pendingProps,d=s.context,u=a.contextType,c=Wn,typeof u==="object"&&u!==null&&(c=rt(u)),l=a.getDerivedStateFromProps,(u=typeof l==="function"||typeof s.getSnapshotBeforeUpdate==="function")||typeof s.UNSAFE_componentWillReceiveProps!=="function"&&typeof s.componentWillReceiveProps!=="function"||(i!==m||d!==c)&&I5(t,s,o,c),no=!1,d=t.memoizedState,s.state=d,ws(t,o,s,n),Cs();var p=t.memoizedState;i!==m||d!==p||no||e!==null&&e.dependencies!==null&&Gl(e.dependencies)?(typeof l==="function"&&(Df(t,a,l,o),p=t.memoizedState),(f=no||g5(t,a,f,o,d,p,c)||e!==null&&e.dependencies!==null&&Gl(e.dependencies))?(u||typeof s.UNSAFE_componentWillUpdate!=="function"&&typeof s.componentWillUpdate!=="function"||(typeof s.componentWillUpdate==="function"&&s.componentWillUpdate(o,p,c),typeof s.UNSAFE_componentWillUpdate==="function"&&s.UNSAFE_componentWillUpdate(o,p,c)),typeof s.componentDidUpdate==="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=p),s.props=o,s.state=p,s.context=c,o=f):(typeof s.componentDidUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return s=o,Dl(e,t),o=(t.flags&128)!==0,s||o?(s=t.stateNode,a=o&&typeof a.getDerivedStateFromError!=="function"?null:s.render(),t.flags|=1,e!==null&&o?(t.child=rn(t,e.child,null,n),t.child=rn(t,null,a,n)):at(e,t,a,n),t.memoizedState=s.state,e=t.child):e=Pa(e,t,n),e}function T5(e,t,a,o){return on(),t.flags|=256,at(e,t,a,o),t.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lf(e){return{baseLanes:e,cachePool:jU()}}function Rf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Et),e}function FF(e,t,a){var o=t.pendingProps,n=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Z){if(n?so(t):io(t),(e=fe)?(e=L7(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ao!==null?{id:ma,overflow:da}:null,retryLane:536870912,hydrationErrors:null},a=VU(e),a.return=t,t.child=a,nt=t,fe=null)):e=null,e===null)throw To(t);return Um(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;if(o=o.fallback,n)return io(t),n=t.mode,l=Ql({mode:"hidden",children:l},n),o=$o(o,n,a,null),l.return=t,o.return=t,l.sibling=o,t.child=l,o=t.child,o.memoizedState=Lf(a),o.childLanes=Rf(e,i,a),t.memoizedState=Ef,ds(null,o);return so(t),wm(t,l)}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(s)t.flags&256?(so(t),t.flags&=-257,t=Bf(e,t,a)):t.memoizedState!==null?(io(t),t.child=e.child,t.flags|=128,t=null):(io(t),l=o.fallback,n=t.mode,o=Ql({mode:"visible",children:o.children},n),l=$o(l,n,a,null),l.flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,rn(t,e.child,null,a),o=t.child,o.memoizedState=Lf(a),o.childLanes=Rf(e,i,a),t.memoizedState=Ef,t=ds(null,o));else if(so(t),Um(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,o=Error(M(419)),o.stack="",o.digest=i,Hs({value:o,source:null,stack:null}),t=Bf(e,t,a)}else if(_e||yr(e,t,a,!1),i=(a&e.childLanes)!==0,_e||i){if(i=re,i!==null&&(o=hU(i,a),o!==0&&o!==c.retryLane))throw c.retryLane=o,mn(e,o),vt(i,e,o),wd;zm(l)||$l(),t=Bf(e,t,a)}else zm(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,fe=jt(l.nextSibling),nt=t,Z=!0,go=null,Zt=!1,e!==null&&ZU(t,e),t=wm(t,o.children),t.flags|=4096);return t}if(n)return io(t),l=o.fallback,n=t.mode,c=e.child,u=c.sibling,o=Ha(c,{mode:"hidden",children:o.children}),o.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=Ha(u,l):(l=$o(l,n,a,null),l.flags|=2),l.return=t,o.return=t,o.sibling=l,t.child=o,ds(null,o),o=t.child,l=e.child.memoizedState,l===null?l=Lf(a):(n=l.cachePool,n!==null?(c=Fe._currentValue,n=n.parent!==c?{parent:c,pool:c}:n):n=jU(),l={baseLanes:l.baseLanes|a,cachePool:n}),o.memoizedState=l,o.childLanes=Rf(e,i,a),t.memoizedState=Ef,ds(e.child,o);return so(t),a=e.child,e=a.sibling,a=Ha(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a}function wm(e,t){return t=Ql({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ql(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Bf(e,t,a){return rn(t,e.child,null,a),e=wm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function x5(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),um(e.return,t,a)}function Nf(e,t,a,o,n,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=a,i.tailMode=n,i.treeForkCount=s)}function _F(e,t,a){var o=t.pendingProps,n=o.revealOrder,s=o.tail;o=o.children;var i=He.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,se(He,i),at(e,t,o,a),o=Z?Os:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&x5(e,a,t);else if(e.tag===19)x5(e,a,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}switch(n){case"forwards":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&Zl(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Nf(t,!1,n,a,s,o);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&Zl(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Nf(t,!0,a,null,s,o);break;case"together":Nf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Pa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Mo|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(yr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){e=t.child,a=Ha(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ad(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&Gl(e)?!0:!1}function gq(e,t,a){switch(t.tag){case 3:Hl(t,t.stateNode.containerInfo),ro(t,Fe,e.memoizedState.cache),on();break;case 27:case 5:Kf(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:ro(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,gm(t),null;break;case 13:var o=t.memoizedState;if(o!==null){if(o.dehydrated!==null)return so(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return FF(e,t,a);return so(t),e=Pa(e,t,a),e!==null?e.sibling:null}so(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(yr(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return _F(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),se(He,He.current),o)break;else return null;case 22:return t.lanes=0,UF(e,t,a,t.pendingProps);case 24:ro(t,Fe,e.memoizedState.cache)}return Pa(e,t,a)}function PF(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)_e=!0;else{if(!Ad(e,a)&&(t.flags&128)===0)return _e=!1,gq(e,t,a);_e=(e.flags&131072)!==0?!0:!1}else _e=!1,Z&&(t.flags&1048576)!==0&&qU(t,Os,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Wo(t.elementType),t.type=e,typeof e==="function")ad(e)?(o=ln(e,o),t.tag=1,t=A5(null,t,e,o,a)):(t.tag=0,t=Cm(null,t,e,o,a));else{if(e!==void 0&&e!==null){var n=e.$$typeof;if(n===Gm){t.tag=11,t=v5(null,t,e,o,a);break e}else if(n===Vm){t.tag=14,t=y5(null,t,e,o,a);break e}}throw t=Qf(e)||e,Error(M(306,t,""))}}return t;case 0:return Cm(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ln(o,t.pendingProps),A5(e,t,o,n,a);case 3:e:{if(Hl(t,t.stateNode.containerInfo),e===null)throw Error(M(387));o=t.pendingProps;var s=t.memoizedState;n=s.element,dm(e,t),ws(t,o,null,a);var i=t.memoizedState;if(o=i.cache,ro(t,Fe,o),o!==s.cache&&fm(t,[Fe],a,!0),Cs(),o=i.element,s.isDehydrated)if(s={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=T5(e,t,o,a);break e}else if(o!==n){n=qt(Error(M(424)),t),Hs(n),t=T5(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}fe=jt(e.firstChild),nt=t,Z=!0,go=null,Zt=!0,a=WU(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(on(),o===n){t=Pa(e,t,a);break e}at(e,t,o,a)}t=t.child}return t;case 26:return Dl(e,t),e===null?(a=X5(t.type,null,t.pendingProps,null))?t.memoizedState=a:Z||(a=t.type,e=t.pendingProps,o=oc(ho.current).createElement(a),o[ot]=t,o[yt]=e,st(o,a,e),Ke(o),t.stateNode=o):t.memoizedState=X5(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kf(t),e===null&&Z&&(o=t.stateNode=R7(t.type,t.pendingProps,ho.current),nt=t,Zt=!0,n=fe,Eo(t.type)?(Fm=n,fe=jt(o.firstChild)):fe=n),at(e,t,t.pendingProps.children,a),Dl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:if(e===null&&Z){if(n=o=fe)o=qq(o,t.type,t.pendingProps,Zt),o!==null?(t.stateNode=o,nt=t,fe=jt(o.firstChild),Zt=!1,n=!0):n=!1;n||To(t)}return Kf(t),n=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Hm(n,s)?o=null:i!==null&&Hm(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=fd(e,t,iq,null,null,a),Ps._currentValue=n),Dl(e,t),at(e,t,o,a),t.child;case 6:if(e===null&&Z){if(e=a=fe)a=Zq(a,t.pendingProps,Zt),a!==null?(t.stateNode=a,nt=t,fe=null,e=!0):e=!1;e||To(t)}return null;case 13:return FF(e,t,a);case 4:return Hl(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=rn(t,null,o,a):at(e,t,o,a),t.child;case 11:return v5(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,ro(t,t.type,o.value),at(e,t,o.children,a),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,nn(t),n=rt(n),o=o(n),t.flags|=1,at(e,t,o,a),t.child;case 14:return y5(e,t,t.type,t.pendingProps,a);case 15:return zF(e,t,t.type,t.pendingProps,a);case 19:return _F(e,t,a);case 31:return hq(e,t,a);case 22:return UF(e,t,a,t.pendingProps);case 24:return nn(t),o=rt(Fe),e===null?(n=sd(),n===null&&(n=re,s=rd(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=a),n=s),t.memoizedState={parent:o,cache:n},ld(t),ro(t,Fe,n)):((e.lanes&a)!==0&&(dm(e,t),ws(t,null,null,a),Cs()),n=e.memoizedState,s=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ro(t,Fe,o)):(o=s.cache,ro(t,Fe,o),o!==n.cache&&fm(t,[Fe],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(M(156,t.tag))}function xa(e){e.flags|=4}function Of(e,t,a,o,n){if(t=(e.mode&32)!==0)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(f7())e.flags|=8192;else throw tn=Vl,id}else e.flags&=-16777217}function M5(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!O7(t))if(f7())e.flags|=8192;else throw tn=Vl,id}function dl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mU():536870912,e.lanes|=t,dr|=t)}function rs(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function Iq(e,t,a){var o=t.pendingProps;switch(nd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(t),null;case 1:return ue(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ka(Fe),ir(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)zn(t)?xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tf());return ue(t),null;case 26:var{type:n,memoizedState:s}=t;return e===null?(xa(t),s!==null?(ue(t),M5(t,s)):(ue(t),Of(t,n,null,o,a))):s?s!==e.memoizedState?(xa(t),ue(t),M5(t,s)):(ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&xa(t),ue(t),Of(t,n,e,o,a)),null;case 27:if(kl(t),a=ho.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return ue(t),null}e=ha.current,zn(t)?a5(t,e):(e=R7(n,o,a),t.stateNode=e,xa(t))}return ue(t),null;case 5:if(kl(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(!o){if(t.stateNode===null)throw Error(M(166));return ue(t),null}if(s=ha.current,zn(t))a5(t,s);else{var i=oc(ho.current);switch(s){case 1:s=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=i.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof o.is==="string"?i.createElement("select",{is:o.is}):i.createElement("select"),o.multiple?s.multiple=!0:o.size&&(s.size=o.size);break;default:s=typeof o.is==="string"?i.createElement(n,{is:o.is}):i.createElement(n)}}s[ot]=t,s[yt]=o;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)s.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=s;e:switch(st(s,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&xa(t)}}return ue(t),Of(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&xa(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error(M(166));if(e=ho.current,zn(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,n=nt,n!==null)switch(n.tag){case 27:case 5:o=n.memoizedProps}e[ot]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||M7(e.nodeValue,a)?!0:!1,e||To(t,!0)}else e=oc(e).createTextNode(o),e[ot]=t,t.stateNode=e}return ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=zn(t),a!==null){if(e===null){if(!o)throw Error(M(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(557));e[ot]=t}else on(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),e=!1}else a=Tf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Mt(t),t;return Mt(t),null}if((t.flags&128)!==0)throw Error(M(558))}return ue(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=zn(t),o!==null&&o.dehydrated!==null){if(e===null){if(!n)throw Error(M(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(M(317));n[ot]=t}else on(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ue(t),n=!1}else n=Tf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Mt(t),t;return Mt(t),null}}if(Mt(t),(t.flags&128)!==0)return t.lanes=a,t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),dl(t,t.updateQueue),ue(t),null;case 4:return ir(),e===null&&Rd(t.stateNode.containerInfo),ue(t),null;case 10:return ka(t.type),ue(t),null;case 19:if(Je(He),o=t.memoizedState,o===null)return ue(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)rs(o,!1);else{if(Se!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Zl(e),s!==null){t.flags|=128,rs(o,!1),e=s.updateQueue,t.updateQueue=e,dl(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)GU(a,e),a=a.sibling;return se(He,He.current&1|2),Z&&La(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Lt()>Kl&&(t.flags|=128,n=!0,rs(o,!1),t.lanes=4194304)}else{if(!n)if(e=Zl(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,dl(t,e),rs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Z)return ue(t),null}else 2*Lt()-o.renderingStartTime>Kl&&a!==536870912&&(t.flags|=128,n=!0,rs(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(e=o.last,e!==null?e.sibling=s:t.child=s,o.last=s)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Lt(),e.sibling=null,a=He.current,se(He,n?a&1|2:a&1),Z&&La(t,o.treeForkCount),e;return ue(t),null;case 22:case 23:return Mt(t),cd(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),a=t.updateQueue,a!==null&&dl(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Je(en),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ka(Fe),ue(t),null;case 25:return null;case 30:return null}throw Error(M(156,t.tag))}function Sq(e,t){switch(nd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ka(Fe),ir(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kl(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(M(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));on()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Je(He),null;case 4:return ir(),null;case 10:return ka(t.type),null;case 22:case 23:return Mt(t),cd(),e!==null&&Je(en),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ka(Fe),null;case 25:return null;default:return null}}function GF(e,t){switch(nd(t),t.tag){case 3:ka(Fe),ir();break;case 26:case 27:case 5:kl(t);break;case 4:ir();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Je(He);break;case 10:ka(t.type);break;case 22:case 23:Mt(t),cd(),e!==null&&Je(en);break;case 24:ka(Fe)}}function Js(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e){o=void 0;var{create:s,inst:i}=a;o=s(),i.destroy=o}a=a.next}while(a!==n)}}catch(l){J(t,t.return,l)}}function xo(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var s=n.next;o=s;do{if((o.tag&e)===e){var i=o.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,n=t;var c=a,u=l;try{u()}catch(f){J(n,c,f)}}}o=o.next}while(o!==s)}}catch(f){J(t,t.return,f)}}function VF(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{JU(t,a)}catch(o){J(e,e.return,o)}}}function qF(e,t,a){a.props=ln(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){J(e,t,o)}}function Ts(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a==="function"?e.refCleanup=a(o):a.current=o}}catch(n){J(e,t,n)}}function pa(e,t){var{ref:a,refCleanup:o}=e;if(a!==null)if(typeof o==="function")try{o()}catch(n){J(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{a(null)}catch(n){J(e,t,n)}else a.current=null}function ZF(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(n){J(e,e.return,n)}}function Hf(e,t,a){try{var o=e.stateNode;Uq(o,e.type,a,t),o[yt]=t}catch(n){J(e,e.return,n)}}function XF(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Eo(e.type)||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||XF(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Eo(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Am(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=Na));else if(o!==4&&(o===27&&Eo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Am(e,t,a),e=e.sibling;e!==null;)Am(e,t,a),e=e.sibling}function Wl(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Eo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Wl(e,t,a),e=e.sibling;e!==null;)Wl(e,t,a),e=e.sibling}function jF(e){var{stateNode:t,memoizedProps:a}=e;try{for(var o=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);st(t,o,a),t[ot]=e,t[yt]=a}catch(s){J(e,e.return,s)}}var Ra=!1,Ue=!1,zf=!1,D5=typeof WeakSet==="function"?WeakSet:Set,We=null;function vq(e,t){if(e=e.containerInfo,Nm=ic,e=OU(e),$m(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var{anchorOffset:n,focusNode:s}=o;o=o.focusOffset;try{a.nodeType,s.nodeType}catch(b){a=null;break e}var i=0,l=-1,c=-1,u=0,f=0,m=e,d=null;t:for(;;){for(var p;;){if(m!==a||n!==0&&m.nodeType!==3||(l=i+n),m!==s||o!==0&&m.nodeType!==3||(c=i+o),m.nodeType===3&&(i+=m.nodeValue.length),(p=m.firstChild)===null)break;d=m,m=p}for(;;){if(m===e)break t;if(d===a&&++u===n&&(l=i),d===s&&++f===o&&(c=i),(p=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=p}a=l===-1||c===-1?null:{start:l,end:c}}else a=null}a=a||{start:0,end:0}}else a=null;Om={focusedElem:e,selectionRange:a},ic=!1;for(We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,n=s.memoizedProps,s=s.memoizedState,o=a.stateNode;try{var v=ln(a.type,n);e=o.getSnapshotBeforeUpdate(v,s),o.__reactInternalSnapshotBeforeUpdate=e}catch(b){J(a,a.return,b)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)km(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":km(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(M(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function YF(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Da(e,a),o&4&&Js(5,a);break;case 1:if(Da(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){J(a,a.return,i)}else{var n=ln(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){J(a,a.return,i)}}o&64&&VF(a),o&512&&Ts(a,a.return);break;case 3:if(Da(e,a),o&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{JU(e,t)}catch(i){J(a,a.return,i)}}break;case 27:t===null&&o&4&&jF(a);case 26:case 5:Da(e,a),t===null&&o&4&&ZF(a),o&512&&Ts(a,a.return);break;case 12:Da(e,a);break;case 31:Da(e,a),o&4&&KF(e,a);break;case 13:Da(e,a),o&4&&JF(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Dq.bind(null,a),Xq(e,a))));break;case 22:if(o=a.memoizedState!==null||Ra,!o){t=t!==null&&t.memoizedState!==null||Ue,n=Ra;var s=Ue;Ra=o,(Ue=t)&&!s?Ea(e,a,(a.subtreeFlags&8772)!==0):Da(e,a),Ra=n,Ue=s}break;case 30:break;default:Da(e,a)}}function QF(e){var t=e.alternate;t!==null&&(e.alternate=null,QF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jm(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ge=null,It=!1;function Ma(e,t,a){for(a=a.child;a!==null;)WF(e,t,a),a=a.sibling}function WF(e,t,a){if(Rt&&typeof Rt.onCommitFiberUnmount==="function")try{Rt.onCommitFiberUnmount(Zs,a)}catch(s){}switch(a.tag){case 26:Ue||pa(a,t),Ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ue||pa(a,t);var o=ge,n=It;Eo(a.type)&&(ge=a.stateNode,It=!1),Ma(e,t,a),Es(a.stateNode),ge=o,It=n;break;case 5:Ue||pa(a,t);case 6:if(o=ge,n=It,ge=null,Ma(e,t,a),ge=o,It=n,ge!==null)if(It)try{(ge.nodeType===9?ge.body:ge.nodeName==="HTML"?ge.ownerDocument.body:ge).removeChild(a.stateNode)}catch(s){J(a,t,s)}else try{ge.removeChild(a.stateNode)}catch(s){J(a,t,s)}break;case 18:ge!==null&&(It?(e=ge,P5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ir(e)):P5(ge,a.stateNode));break;case 4:o=ge,n=It,ge=a.stateNode.containerInfo,It=!0,Ma(e,t,a),ge=o,It=n;break;case 0:case 11:case 14:case 15:xo(2,a,t),Ue||xo(4,a,t),Ma(e,t,a);break;case 1:Ue||(pa(a,t),o=a.stateNode,typeof o.componentWillUnmount==="function"&&qF(a,t,o)),Ma(e,t,a);break;case 21:Ma(e,t,a);break;case 22:Ue=(o=Ue)||a.memoizedState!==null,Ma(e,t,a),Ue=o;break;default:Ma(e,t,a)}}function KF(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ir(e)}catch(a){J(t,t.return,a)}}}function JF(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ir(e)}catch(a){J(t,t.return,a)}}function yq(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new D5),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new D5),t;default:throw Error(M(435,e.tag))}}function pl(e,t){var a=yq(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var n=Eq.bind(null,e,o);o.then(n,n)}})}function ht(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=a[o],s=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(Eo(l.type)){ge=l.stateNode,It=!1;break e}break;case 5:ge=l.stateNode,It=!1;break e;case 3:case 4:ge=l.stateNode.containerInfo,It=!0;break e}l=l.return}if(ge===null)throw Error(M(160));WF(s,i,n),ge=null,It=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$F(t,e),t=t.sibling}var aa=null;function $F(e,t){var{alternate:a,flags:o}=e;switch(e.tag){case 0:case 11:case 14:case 15:ht(t,e),gt(e),o&4&&(xo(3,e,e.return),Js(3,e),xo(5,e,e.return));break;case 1:ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),o&64&&Ra&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var n=aa;if(ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),o&4){var s=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(o){case"title":if(s=n.getElementsByTagName("title")[0],!s||s[Ys]||s[ot]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))s=n.createElement(o),n.head.insertBefore(s,n.querySelector("head > title"));st(s,o,a),s[ot]=e,Ke(s),o=s;break e;case"link":var i=Y5("link","href",n).get(o+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(s=i[l],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}s=n.createElement(o),st(s,o,a),n.head.appendChild(s);break;case"meta":if(i=Y5("meta","content",n).get(o+(a.content||""))){for(l=0;l<i.length;l++)if(s=i[l],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}s=n.createElement(o),st(s,o,a),n.head.appendChild(s);break;default:throw Error(M(468,o))}s[ot]=e,Ke(s),o=s}e.stateNode=o}else Q5(n,e.type,e.stateNode);else e.stateNode=j5(n,o,e.memoizedProps);else s!==o?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,o===null?Q5(n,e.type,e.stateNode):j5(n,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Hf(e,e.memoizedProps,a.memoizedProps)}break;case 27:ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),a!==null&&o&4&&Hf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ht(t,e),gt(e),o&512&&(Ue||a===null||pa(a,a.return)),e.flags&32){n=e.stateNode;try{cr(n,"")}catch(v){J(e,e.return,v)}}o&4&&e.stateNode!=null&&(n=e.memoizedProps,Hf(e,n,a!==null?a.memoizedProps:n)),o&1024&&(zf=!0);break;case 6:if(ht(t,e),gt(e),o&4){if(e.stateNode===null)throw Error(M(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(v){J(e,e.return,v)}}break;case 3:if(Rl=null,n=aa,aa=nc(t.containerInfo),ht(t,e),aa=n,gt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(v){J(e,e.return,v)}zf&&(zf=!1,e7(e));break;case 4:o=aa,aa=nc(e.stateNode.containerInfo),ht(t,e),gt(e),aa=o;break;case 12:ht(t,e),gt(e);break;case 31:ht(t,e),gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,pl(e,o)));break;case 13:ht(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!==(a!==null&&a.memoizedState!==null)&&(yc=Lt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,pl(e,o)));break;case 22:n=e.memoizedState!==null;var c=a!==null&&a.memoizedState!==null,u=Ra,f=Ue;if(Ra=u||n,Ue=f||c,ht(t,e),Ue=f,Ra=u,gt(e),o&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||c||Ra||Ue||Ko(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){c=a=t;try{if(s=c.stateNode,n)i=s.style,typeof i.setProperty==="function"?i.setProperty("display","none","important"):i.display="none";else{l=c.stateNode;var m=c.memoizedProps.style,d=m!==void 0&&m!==null&&m.hasOwnProperty("display")?m.display:null;l.style.display=d==null||typeof d==="boolean"?"":(""+d).trim()}}catch(v){J(c,c.return,v)}}}else if(t.tag===6){if(a===null){c=t;try{c.stateNode.nodeValue=n?"":c.memoizedProps}catch(v){J(c,c.return,v)}}}else if(t.tag===18){if(a===null){c=t;try{var p=c.stateNode;n?G5(p,!0):G5(c.stateNode,!1)}catch(v){J(c,c.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,pl(e,a))));break;case 19:ht(t,e),gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,pl(e,o)));break;case 30:break;case 21:break;default:ht(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(XF(o)){a=o;break}o=o.return}if(a==null)throw Error(M(160));switch(a.tag){case 27:var n=a.stateNode,s=kf(e);Wl(e,s,n);break;case 5:var i=a.stateNode;a.flags&32&&(cr(i,""),a.flags&=-33);var l=kf(e);Wl(e,l,i);break;case 3:case 4:var c=a.stateNode.containerInfo,u=kf(e);Am(e,u,c);break;default:throw Error(M(161))}}catch(f){J(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e7(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;e7(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Da(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YF(e,t.alternate,t),t=t.sibling}function Ko(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:xo(4,t,t.return),Ko(t);break;case 1:pa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount==="function"&&qF(t,t.return,a),Ko(t);break;case 27:Es(t.stateNode);case 26:case 5:pa(t,t.return),Ko(t);break;case 22:t.memoizedState===null&&Ko(t);break;case 30:Ko(t);break;default:Ko(t)}e=e.sibling}}function Ea(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;){var o=t.alternate,n=e,s=t,i=s.flags;switch(s.tag){case 0:case 11:case 15:Ea(n,s,a),Js(4,s);break;case 1:if(Ea(n,s,a),o=s,n=o.stateNode,typeof n.componentDidMount==="function")try{n.componentDidMount()}catch(u){J(o,o.return,u)}if(o=s,n=o.updateQueue,n!==null){var l=o.stateNode;try{var c=n.shared.hiddenCallbacks;if(c!==null)for(n.shared.hiddenCallbacks=null,n=0;n<c.length;n++)KU(c[n],l)}catch(u){J(o,o.return,u)}}a&&i&64&&VF(s),Ts(s,s.return);break;case 27:jF(s);case 26:case 5:Ea(n,s,a),a&&o===null&&i&4&&ZF(s),Ts(s,s.return);break;case 12:Ea(n,s,a);break;case 31:Ea(n,s,a),a&&i&4&&KF(n,s);break;case 13:Ea(n,s,a),a&&i&4&&JF(n,s);break;case 22:s.memoizedState===null&&Ea(n,s,a),Ts(s,s.return);break;case 30:break;default:Ea(n,s,a)}t=t.sibling}}function Td(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Ws(a))}function xd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ws(e))}function ta(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)t7(e,t,a,o),t=t.sibling}function t7(e,t,a,o){var n=t.flags;switch(t.tag){case 0:case 11:case 15:ta(e,t,a,o),n&2048&&Js(9,t);break;case 1:ta(e,t,a,o);break;case 3:ta(e,t,a,o),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ws(e)));break;case 12:if(n&2048){ta(e,t,a,o),e=t.stateNode;try{var s=t.memoizedProps,i=s.id,l=s.onPostCommit;typeof l==="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){J(t,t.return,c)}}else ta(e,t,a,o);break;case 31:ta(e,t,a,o);break;case 13:ta(e,t,a,o);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,t.memoizedState!==null?s._visibility&2?ta(e,t,a,o):xs(e,t):s._visibility&2?ta(e,t,a,o):(s._visibility|=2,Fn(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Td(i,t);break;case 24:ta(e,t,a,o),n&2048&&xd(t.alternate,t);break;default:ta(e,t,a,o)}}function Fn(e,t,a,o,n){n=n&&((t.subtreeFlags&10256)!==0||!1);for(t=t.child;t!==null;){var s=e,i=t,l=a,c=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:Fn(s,i,l,c,n),Js(8,i);break;case 23:break;case 22:var f=i.stateNode;i.memoizedState!==null?f._visibility&2?Fn(s,i,l,c,n):xs(s,i):(f._visibility|=2,Fn(s,i,l,c,n)),n&&u&2048&&Td(i.alternate,i);break;case 24:Fn(s,i,l,c,n),n&&u&2048&&xd(i.alternate,i);break;default:Fn(s,i,l,c,n)}t=t.sibling}}function xs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,n=o.flags;switch(o.tag){case 22:xs(a,o),n&2048&&Td(o.alternate,o);break;case 24:xs(a,o),n&2048&&xd(o.alternate,o);break;default:xs(a,o)}t=t.sibling}}var ps=8192;function Un(e,t,a){if(e.subtreeFlags&ps)for(e=e.child;e!==null;)a7(e,t,a),e=e.sibling}function a7(e,t,a){switch(e.tag){case 26:Un(e,t,a),e.flags&ps&&e.memoizedState!==null&&nZ(a,aa,e.memoizedState,e.memoizedProps);break;case 5:Un(e,t,a);break;case 3:case 4:var o=aa;aa=nc(e.stateNode.containerInfo),Un(e,t,a),aa=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ps,ps=16777216,Un(e,t,a),ps=o):Un(e,t,a));break;default:Un(e,t,a)}}function o7(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];We=o,r7(o,e)}o7(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)n7(e),e=e.sibling}function n7(e){switch(e.tag){case 0:case 11:case 15:ss(e),e.flags&2048&&xo(9,e,e.return);break;case 3:ss(e);break;case 12:ss(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,El(e)):ss(e);break;default:ss(e)}}function El(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];We=o,r7(o,e)}o7(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xo(8,t,t.return),El(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,El(t));break;default:El(t)}e=e.sibling}}function r7(e,t){for(;We!==null;){var a=We;switch(a.tag){case 0:case 11:case 15:xo(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Ws(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,We=o;else e:for(a=e;We!==null;){o=We;var{sibling:n,return:s}=o;if(QF(o),o===a){We=null;break e}if(n!==null){n.return=s,We=n;break e}We=s}}}var bq={getCacheForType:function(e){var t=rt(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt(Fe).controller.signal}},Cq=typeof WeakMap==="function"?WeakMap:Map,X=0,re=null,P=null,q=0,K=0,xt=null,fo=!1,Cr=!1,Md=!1,Ga=0,Se=0,Mo=0,an=0,Dd=0,Et=0,dr=0,Ms=null,St=null,Tm=!1,yc=0,s7=0,Kl=1/0,Jl=null,vo=null,qe=0,yo=null,pr=null,za=0,xm=0,Mm=null,i7=null,Ds=0,Dm=null;function Nt(){return(X&2)!==0&&q!==0?q&-q:H.T!==null?Ld():gU()}function l7(){if(Et===0)if((q&536870912)===0||Z){var e=sl;sl<<=1,(sl&3932160)===0&&(sl=262144),Et=e}else Et=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Et}function vt(e,t,a){if(e===re&&(K===2||K===9)||e.cancelPendingCommit!==null)hr(e,0),mo(e,q,Et,!1);if(js(e,a),(X&2)===0||e!==re)e===re&&((X&2)===0&&(an|=a),Se===4&&mo(e,q,Et,!1)),Ia(e)}function c7(e,t,a){if((X&6)!==0)throw Error(M(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Xs(e,t),n=o?Tq(e,t):Uf(e,t,!0),s=o;do{if(n===0){Cr&&!o&&mo(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!wq(a)){n=Uf(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;n=Ms;var c=l.current.memoizedState.isDehydrated;if(c&&(hr(l,i).flags|=256),i=Uf(l,i,!1),i!==2){if(Md&&!c){l.errorRecoveryDisabledLanes|=s,an|=s,n=4;break e}s=St,St=n,s!==null&&(St===null?St=s:St.push.apply(St,s))}n=i}if(s=!1,n!==2)continue}}if(n===1){hr(e,0),mo(e,t,0,!0);break}e:{switch(o=e,s=n,s){case 0:case 1:throw Error(M(345));case 4:if((t&4194048)!==t)break;case 6:mo(o,t,Et,!fo);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(M(329))}if((t&62914560)===t&&(n=yc+300-Lt(),10<n)){if(mo(o,t,Et,!fo),cc(o,0,!0)!==0)break e;za=t,o.timeoutHandle=E7(E5.bind(null,o,a,St,Jl,Tm,t,Et,an,dr,fo,s,"Throttled",-0,0),n);break e}E5(o,a,St,Jl,Tm,t,Et,an,dr,fo,s,null,-0,0)}}break}while(1);Ia(e)}function E5(e,t,a,o,n,s,i,l,c,u,f,m,d,p){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Na},a7(t,s,m);var v=(s&62914560)===s?yc-Lt():(s&4194048)===s?s7-Lt():0;if(v=rZ(m,v),v!==null){za=s,e.cancelPendingCommit=v(R5.bind(null,e,t,s,a,o,n,i,l,c,f,m,null,d,p)),mo(e,s,i,!u);return}}R5(e,t,s,a,o,n,i,l,c)}function wq(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var n=a[o],s=n.getSnapshot;n=n.value;try{if(!Ot(s(),n))return!1}catch(i){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 mo(e,t,a,o){t&=~Dd,t&=~an,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var s=31-Bt(n),i=1<<s;o[s]=-1,n&=~i}a!==0&&dU(e,a,t)}function bc(){return(X&6)===0?($s(0,!1),!1):!0}function Ed(){if(P!==null){if(K===0)var e=P.return;else e=P,Oa=dn=null,pd(e),nr=null,ks=0,e=P;for(;e!==null;)GF(e.alternate,e),e=e.return;P=null}}function hr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Pq(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),za=0,Ed(),re=e,P=a=Ha(e.current,null),q=t,K=0,xt=null,fo=!1,Cr=Xs(e,t),Md=!1,dr=Et=Dd=an=Mo=Se=0,St=Ms=null,Tm=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var n=31-Bt(o),s=1<<n;t|=e[n],o&=~s}return Ga=t,dc(),a}function u7(e,t){F=null,H.H=Us,t===br||t===hc?(t=i5(),K=3):t===id?(t=i5(),K=4):K=t===wd?8:t!==null&&typeof t==="object"&&typeof t.then==="function"?6:1,xt=t,P===null&&(Se=1,Yl(e,qt(t,e.current)))}function f7(){var e=Ht.current;return e===null?!0:(q&4194048)===q?Xt===null?!0:!1:(q&62914560)===q||(q&536870912)!==0?e===Xt:!1}function m7(){var e=H.H;return H.H=Us,e===null?Us:e}function d7(){var e=H.A;return H.A=bq,e}function $l(){Se=4,fo||(q&4194048)!==q&&Ht.current!==null||(Cr=!0),(Mo&134217727)===0&&(an&134217727)===0||re===null||mo(re,q,Et,!1)}function Uf(e,t,a){var o=X;X|=2;var n=m7(),s=d7();if(re!==e||q!==t)Jl=null,hr(e,t);t=!1;var i=Se;e:do try{if(K!==0&&P!==null){var l=P,c=xt;switch(K){case 8:Ed(),i=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var u=K;if(K=0,xt=null,$n(e,l,c,u),a&&Cr){i=0;break e}break;default:u=K,K=0,xt=null,$n(e,l,c,u)}}Aq(),i=Se;break}catch(f){u7(e,f)}while(1);return t&&e.shellSuspendCounter++,Oa=dn=null,X=o,H.H=n,H.A=s,P===null&&(re=null,q=0,dc()),i}function Aq(){for(;P!==null;)p7(P)}function Tq(e,t){var a=X;X|=2;var o=m7(),n=d7();re!==e||q!==t?(Jl=null,Kl=Lt()+500,hr(e,t)):Cr=Xs(e,t);e:do try{if(K!==0&&P!==null){t=P;var s=xt;t:switch(K){case 1:K=0,xt=null,$n(e,t,s,1);break;case 2:case 9:if(s5(s)){K=0,xt=null,L5(t);break}t=function(){K!==2&&K!==9||re!==e||(K=7),Ia(e)},s.then(t,t);break e;case 3:K=7;break e;case 4:K=5;break e;case 7:s5(s)?(K=0,xt=null,L5(t)):(K=0,xt=null,$n(e,t,s,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var l=P;if(i?O7(i):l.stateNode.complete){K=0,xt=null;var c=l.sibling;if(c!==null)P=c;else{var u=l.return;u!==null?(P=u,Cc(u)):P=null}break t}}K=0,xt=null,$n(e,t,s,5);break;case 6:K=0,xt=null,$n(e,t,s,6);break;case 8:Ed(),Se=6;break e;default:throw Error(M(462))}}xq();break}catch(f){u7(e,f)}while(1);if(Oa=dn=null,H.H=o,H.A=n,X=a,P!==null)return 0;return re=null,q=0,dc(),Se}function xq(){for(;P!==null&&!QG();)p7(P)}function p7(e){var t=PF(e.alternate,e,Ga);e.memoizedProps=e.pendingProps,t===null?Cc(e):P=t}function L5(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=w5(a,t,t.pendingProps,t.type,void 0,q);break;case 11:t=w5(a,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:pd(t);default:GF(a,t),t=P=GU(t,Ga),t=PF(a,t,Ga)}e.memoizedProps=e.pendingProps,t===null?Cc(e):P=t}function $n(e,t,a,o){Oa=dn=null,pd(t),nr=null,ks=0;var n=t.return;try{if(pq(e,n,t,a,q)){Se=1,Yl(e,qt(a,e.current)),P=null;return}}catch(s){if(n!==null)throw P=n,s;Se=1,Yl(e,qt(a,e.current)),P=null;return}if(t.flags&32768){if(Z||o===1)e=!0;else if(Cr||(q&536870912)!==0)e=!1;else if(fo=e=!0,o===2||o===9||o===3||o===6)o=Ht.current,o!==null&&o.tag===13&&(o.flags|=16384);h7(t,e)}else Cc(t)}function Cc(e){var t=e;do{if((t.flags&32768)!==0){h7(t,fo);return}e=t.return;var a=Iq(t.alternate,t,Ga);if(a!==null){P=a;return}if(t=t.sibling,t!==null){P=t;return}P=t=e}while(t!==null);Se===0&&(Se=5)}function h7(e,t){do{var a=Sq(e.alternate,e);if(a!==null){a.flags&=32767,P=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){P=e;return}P=e=a}while(e!==null);Se=6,P=null}function R5(e,t,a,o,n,s,i,l,c){e.cancelPendingCommit=null;do wc();while(qe!==0);if((X&6)!==0)throw Error(M(327));if(t!==null){if(t===e.current)throw Error(M(177));if(s=t.lanes|t.childLanes,s|=ed,rV(e,a,s,i,l,c),e===re&&(P=re=null,q=0),pr=t,yo=e,za=a,xm=s,Mm=n,i7=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Lq(zl,function(){return y7(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,n=j.p,j.p=2,i=X,X|=4;try{vq(e,t,a)}finally{X=i,j.p=n,H.T=o}}qe=1,g7(),I7(),S7()}}function g7(){if(qe===1){qe=0;var e=yo,t=pr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=H.T,H.T=null;var o=j.p;j.p=2;var n=X;X|=4;try{$F(t,e);var s=Om,i=OU(e.containerInfo),l=s.focusedElem,c=s.selectionRange;if(i!==l&&l&&l.ownerDocument&&NU(l.ownerDocument.documentElement,l)){if(c!==null&&$m(l)){var{start:u,end:f}=c;if(f===void 0&&(f=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(f,l.value.length);else{var m=l.ownerDocument||document,d=m&&m.defaultView||window;if(d.getSelection){var p=d.getSelection(),v=l.textContent.length,b=Math.min(c.start,v),C=c.end===void 0?b:Math.min(c.end,v);!p.extend&&b>C&&(i=C,C=b,b=i);var g=$z(l,b),I=$z(l,C);if(g&&I&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==I.node||p.focusOffset!==I.offset)){var S=m.createRange();S.setStart(g.node,g.offset),p.removeAllRanges(),b>C?(p.addRange(S),p.extend(I.node,I.offset)):(S.setEnd(I.node,I.offset),p.addRange(S))}}}}m=[];for(p=l;p=p.parentNode;)p.nodeType===1&&m.push({element:p,left:p.scrollLeft,top:p.scrollTop});typeof l.focus==="function"&&l.focus();for(l=0;l<m.length;l++){var y=m[l];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}ic=!!Nm,Om=Nm=null}finally{X=n,j.p=o,H.T=a}}e.current=t,qe=2}}function I7(){if(qe===2){qe=0;var e=yo,t=pr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=H.T,H.T=null;var o=j.p;j.p=2;var n=X;X|=4;try{YF(e,t.alternate,t)}finally{X=n,j.p=o,H.T=a}}qe=3}}function S7(){if(qe===4||qe===3){qe=0,WG();var e=yo,t=pr,a=za,o=i7;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,pr=yo=null,v7(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(vo=null),Xm(a),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot==="function")try{Rt.onCommitFiberRoot(Zs,t,void 0,(t.current.flags&128)===128)}catch(c){}if(o!==null){t=H.T,n=j.p,j.p=2,H.T=null;try{for(var s=e.onRecoverableError,i=0;i<o.length;i++){var l=o[i];s(l.value,{componentStack:l.stack})}}finally{H.T=t,j.p=n}}(za&3)!==0&&wc(),Ia(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Dm?Ds++:(Ds=0,Dm=e):Ds=0,$s(0,!1)}}function v7(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ws(t)))}function wc(){return g7(),I7(),S7(),y7()}function y7(){if(qe!==5)return!1;var e=yo,t=xm;xm=0;var a=Xm(za),o=H.T,n=j.p;try{j.p=32>a?32:a,H.T=null,a=Mm,Mm=null;var s=yo,i=za;if(qe=0,pr=yo=null,za=0,(X&6)!==0)throw Error(M(331));var l=X;if(X|=4,n7(s.current),t7(s,s.current,i,a),X=l,$s(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot==="function")try{Rt.onPostCommitFiberRoot(Zs,s)}catch(c){}return!0}finally{j.p=n,H.T=o,v7(e,t)}}function B5(e,t,a){t=qt(a,t),t=bm(e.stateNode,t,2),e=So(e,t,2),e!==null&&(js(e,2),Ia(e))}function J(e,t,a){if(e.tag===3)B5(e,e,a);else for(;t!==null;){if(t.tag===3){B5(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(vo===null||!vo.has(o))){e=qt(a,e),a=HF(2),o=So(t,a,2),o!==null&&(kF(a,o,t,e),js(o,2),Ia(o));break}}t=t.return}}function Ff(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new Cq;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(Md=!0,n.add(a),e=Mq.bind(null,e,t,a),t.then(e,e))}function Mq(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,re===e&&(q&a)===a&&(Se===4||Se===3&&(q&62914560)===q&&300>Lt()-yc?(X&2)===0&&hr(e,0):Dd|=a,dr===q&&(dr=0)),Ia(e)}function b7(e,t){t===0&&(t=mU()),e=mn(e,t),e!==null&&(js(e,t),Ia(e))}function Dq(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),b7(e,a)}function Eq(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(M(314))}o!==null&&o.delete(t),b7(e,a)}function Lq(e,t){return qm(e,t)}var ec=null,_n=null,Em=!1,tc=!1,_f=!1,po=0;function Ia(e){e!==_n&&e.next===null&&(_n===null?ec=_n=e:_n=_n.next=e),tc=!0,Em||(Em=!0,Bq())}function $s(e,t){if(!_f&&tc){_f=!0;do{var a=!1;for(var o=ec;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var s=0;else{var{suspendedLanes:i,pingedLanes:l}=o;s=(1<<31-Bt(42|e)+1)-1,s&=n&~(i&~l),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,N5(o,s))}else s=q,s=cc(o,o===re?s:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(s&3)===0||Xs(o,s)||(a=!0,N5(o,s));o=o.next}}while(a);_f=!1}}function Rq(){C7()}function C7(){tc=Em=!1;var e=0;po!==0&&_q()&&(e=po);for(var t=Lt(),a=null,o=ec;o!==null;){var n=o.next,s=w7(o,t);if(s===0)o.next=null,a===null?ec=n:a.next=n,n===null&&(_n=a);else if(a=o,e!==0||(s&3)!==0)tc=!0;o=n}qe!==0&&qe!==5||$s(e,!1),po!==0&&(po=0)}function w7(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,s=e.pendingLanes&-62914561;0<s;){var i=31-Bt(s),l=1<<i,c=n[i];if(c===-1){if((l&a)===0||(l&o)!==0)n[i]=nV(l,t)}else c<=t&&(e.expiredLanes|=l);s&=~l}if(t=re,a=q,a=cc(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(K===2||K===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&gf(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xs(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&gf(o),Xm(a)){case 2:case 8:a=uU;break;case 32:a=zl;break;case 268435456:a=fU;break;default:a=zl}return o=A7.bind(null,e),a=qm(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&gf(o),e.callbackPriority=2,e.callbackNode=null,2}function A7(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(wc()&&e.callbackNode!==a)return null;var o=q;if(o=cc(e,e===re?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0)return null;return c7(e,o,t),w7(e,Lt()),e.callbackNode!=null&&e.callbackNode===a?A7.bind(null,e):null}function N5(e,t){if(wc())return null;c7(e,t,!0)}function Bq(){Gq(function(){(X&6)!==0?qm(cU,Rq):C7()})}function Ld(){if(po===0){var e=ur;e===0&&(e=rl,rl<<=1,(rl&261888)===0&&(rl=256)),po=e}return po}function O5(e){return e==null||typeof e==="symbol"||typeof e==="boolean"?null:typeof e==="function"?e:vl(""+e)}function H5(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Nq(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var s=O5((n[yt]||null).action),i=o.submitter;i&&(t=(t=i[yt]||null)?O5(t.formAction):i.getAttribute("formAction"),t!==null&&(s=t,i=null));var l=new uc("action","action",null,o,n);e.push({event:l,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(po!==0){var c=i?H5(n,i):new FormData(n);vm(a,{pending:!0,data:c,method:n.method,action:s},null,c)}}else typeof s==="function"&&(l.preventDefault(),c=i?H5(n,i):new FormData(n),vm(a,{pending:!0,data:c,method:n.method,action:s},s,c))},currentTarget:n}]})}}for(hs=0;hs<im.length;hs++)gs=im[hs],Lm=gs.toLowerCase(),Rm=gs[0].toUpperCase()+gs.slice(1),oa(Lm,"on"+Rm);var gs,Lm,Rm,hs;oa(kU,"onAnimationEnd");oa(zU,"onAnimationIteration");oa(UU,"onAnimationStart");oa("dblclick","onDoubleClick");oa("focusin","onFocus");oa("focusout","onBlur");oa(KV,"onTransitionRun");oa(JV,"onTransitionStart");oa($V,"onTransitionCancel");oa(FU,"onTransitionEnd");lr("onMouseEnter",["mouseout","mouseover"]);lr("onMouseLeave",["mouseout","mouseover"]);lr("onPointerEnter",["pointerout","pointerover"]);lr("onPointerLeave",["pointerout","pointerover"]);cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cn("onBeforeInput",["compositionend","keypress","textInput","paste"]);cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fs="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(" "),Oq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Fs));function T7(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],n=o.event;o=o.listeners;e:{var s=void 0;if(t)for(var i=o.length-1;0<=i;i--){var l=o[i],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==s&&n.isPropagationStopped())break e;s=l,n.currentTarget=u;try{s(n)}catch(f){Fl(f)}n.currentTarget=null,s=c}else for(i=0;i<o.length;i++){if(l=o[i],c=l.instance,u=l.currentTarget,l=l.listener,c!==s&&n.isPropagationStopped())break e;s=l,n.currentTarget=u;try{s(n)}catch(f){Fl(f)}n.currentTarget=null,s=c}}}}function _(e,t){var a=t[$f];a===void 0&&(a=t[$f]=new Set);var o=e+"__bubble";a.has(o)||(x7(t,e,2,!1),a.add(o))}function Pf(e,t,a){var o=0;t&&(o|=4),x7(a,e,o,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function Rd(e){if(!e[hl]){e[hl]=!0,IU.forEach(function(a){a!=="selectionchange"&&(Oq.has(a)||Pf(a,!1,e),Pf(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,Pf("selectionchange",!1,t))}}function x7(e,t,a,o){switch(F7(t)){case 2:var n=lZ;break;case 8:n=cZ;break;default:n=Hd}a=n.bind(null,t,a,e),n=void 0,!nm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Gf(e,t,a,o,n){var s=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var l=o.stateNode.containerInfo;if(l===n)break;if(i===4)for(i=o.return;i!==null;){var c=i.tag;if((c===3||c===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;l!==null;){if(i=qn(l),i===null)return;if(c=i.tag,c===5||c===6||c===26||c===27){o=s=i;continue e}l=l.parentNode}}o=o.return}TU(function(){var u=s,f=Qm(a),m=[];e:{var d=_U.get(e);if(d!==void 0){var p=uc,v=e;switch(e){case"keypress":if(bl(a)===0)break e;case"keydown":case"keyup":p=EV;break;case"focusin":v="focus",p=bf;break;case"focusout":v="blur",p=bf;break;case"beforeblur":case"afterblur":p=bf;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=qz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=IV;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=BV;break;case kU:case zU:case UU:p=yV;break;case FU:p=OV;break;case"scroll":case"scrollend":p=hV;break;case"wheel":p=kV;break;case"copy":case"cut":case"paste":p=CV;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Xz;break;case"toggle":case"beforetoggle":p=UV}var b=(t&4)!==0,C=!b&&(e==="scroll"||e==="scrollend"),g=b?d!==null?d+"Capture":null:d;b=[];for(var I=u,S;I!==null;){var y=I;if(S=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||S===null||g===null||(y=Rs(I,g),y!=null&&b.push(_s(I,y,S))),C)break;I=I.return}0<b.length&&(d=new p(d,v,null,a,f),m.push({event:d,listeners:b}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&a!==om&&(v=a.relatedTarget||a.fromElement)&&(qn(v)||v[Sr]))break e;if(p||d){if(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p){if(v=a.relatedTarget||a.toElement,p=u,v=v?qn(v):null,v!==null&&(C=qs(v),b=v.tag,v!==C||b!==5&&b!==27&&b!==6))v=null}else p=null,v=u;if(p!==v){if(b=qz,y="onMouseLeave",g="onMouseEnter",I="mouse",e==="pointerout"||e==="pointerover")b=Xz,y="onPointerLeave",g="onPointerEnter",I="pointer";if(C=p==null?d:us(p),S=v==null?d:us(v),d=new b(y,I+"leave",p,a,f),d.target=C,d.relatedTarget=S,y=null,qn(f)===u&&(b=new b(g,I+"enter",v,a,f),b.target=S,b.relatedTarget=C,y=b),C=y,p&&v)t:{b=Hq,g=p,I=v,S=0;for(y=g;y;y=b(y))S++;y=0;for(var w=I;w;w=b(w))y++;for(;0<S-y;)g=b(g),S--;for(;0<y-S;)I=b(I),y--;for(;S--;){if(g===I||I!==null&&g===I.alternate){b=g;break t}g=b(g),I=b(I)}b=null}else b=null;p!==null&&k5(m,d,p,b,!1),v!==null&&C!==null&&k5(m,C,v,b,!0)}}}e:{if(d=u?us(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var T=Wz;else if(Qz(d))if(RU)T=YV;else{T=XV;var x=ZV}else p=d.nodeName,!p||p.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Ym(u.elementType)&&(T=Wz):T=jV;if(T&&(T=T(e,u))){LU(m,T,a,f);break e}x&&x(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&am(d,"number",d.value)}switch(x=u?us(u):window,e){case"focusin":if(Qz(x)||x.contentEditable==="true")jn=x,rm=u,vs=null;break;case"focusout":vs=rm=jn=null;break;case"mousedown":sm=!0;break;case"contextmenu":case"mouseup":case"dragend":sm=!1,e5(m,a,f);break;case"selectionchange":if(WV)break;case"keydown":case"keyup":e5(m,a,f)}var E;if(Jm)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Xn?DU(e,a)&&(L="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(L="onCompositionStart");if(L&&(MU&&a.locale!=="ko"&&(Xn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Xn&&(E=xU()):(uo=f,Wm=("value"in uo)?uo.value:uo.textContent,Xn=!0)),x=ac(u,L),0<x.length&&(L=new Zz(L,e,null,a,f),m.push({event:L,listeners:x}),E?L.data=E:(E=EU(a),E!==null&&(L.data=E)))),E=_V?PV(e,a):GV(e,a))L=ac(u,"onBeforeInput"),0<L.length&&(x=new Zz("onBeforeInput","beforeinput",null,a,f),m.push({event:x,listeners:L}),x.data=E);Nq(m,e,u,a,f)}T7(m,t)})}function _s(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ac(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Rs(e,a),n!=null&&o.unshift(_s(e,n,s)),n=Rs(e,t),n!=null&&o.push(_s(e,n,s))),e.tag===3)return o;e=e.return}return[]}function Hq(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function k5(e,t,a,o,n){for(var s=t._reactName,i=[];a!==null&&a!==o;){var l=a,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===o)break;l!==5&&l!==26&&l!==27||u===null||(c=u,n?(u=Rs(a,s),u!=null&&i.unshift(_s(a,u,c))):n||(u=Rs(a,s),u!=null&&i.push(_s(a,u,c)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var kq=/\r\n?/g,zq=/\u0000|\uFFFD/g;function z5(e){return(typeof e==="string"?e:""+e).replace(kq,`
|
|
9
|
+
`).replace(zq,"")}function M7(e,t){return t=z5(t),z5(e)===t?!0:!1}function te(e,t,a,o,n,s){switch(a){case"children":typeof o==="string"?t==="body"||t==="textarea"&&o===""||cr(e,o):(typeof o==="number"||typeof o==="bigint")&&t!=="body"&&cr(e,""+o);break;case"className":ll(e,"class",o);break;case"tabIndex":ll(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ll(e,a,o);break;case"style":AU(e,o,s);break;case"data":if(t!=="object"){ll(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=vl(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s==="function"&&(a==="formAction"?(t!=="input"&&te(e,t,"name",n.name,n,null),te(e,t,"formEncType",n.formEncType,n,null),te(e,t,"formMethod",n.formMethod,n,null),te(e,t,"formTarget",n.formTarget,n,null)):(te(e,t,"encType",n.encType,n,null),te(e,t,"method",n.method,n,null),te(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}o=vl(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Na);break;case"onScroll":o!=null&&_("scroll",e);break;case"onScrollEnd":o!=null&&_("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(M(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}a=vl(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":_("beforetoggle",e),_("toggle",e),Sl(e,"popover",o);break;case"xlinkActuate":Ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ta(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ta(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ta(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ta(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Sl(e,"is",o);break;case"innerText":case"textContent":break;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=dV.get(a)||a,Sl(e,a,o)}}function Bm(e,t,a,o,n,s){switch(a){case"style":AU(e,o,s);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error(M(61));if(a=o.__html,a!=null){if(n.children!=null)throw Error(M(60));e.innerHTML=a}}break;case"children":typeof o==="string"?cr(e,o):(typeof o==="number"||typeof o==="bigint")&&cr(e,""+o);break;case"onScroll":o!=null&&_("scroll",e);break;case"onScrollEnd":o!=null&&_("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!SU.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),s=e[yt]||null,s=s!=null?s[a]:null,typeof s==="function"&&e.removeEventListener(t,s,n),typeof o==="function")){typeof s!=="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Sl(e,a,o)}}}function st(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_("error",e),_("load",e);var o=!1,n=!1,s;for(s in a)if(a.hasOwnProperty(s)){var i=a[s];if(i!=null)switch(s){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:te(e,t,s,i,a,null)}}n&&te(e,t,"srcSet",a.srcSet,a,null),o&&te(e,t,"src",a.src,a,null);return;case"input":_("invalid",e);var l=s=i=n=null,c=null,u=null;for(o in a)if(a.hasOwnProperty(o)){var f=a[o];if(f!=null)switch(o){case"name":n=f;break;case"type":i=f;break;case"checked":c=f;break;case"defaultChecked":u=f;break;case"value":s=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(M(137,t));break;default:te(e,t,o,f,a,null)}}bU(e,s,l,c,u,i,n,!1);return;case"select":_("invalid",e),o=i=s=null;for(n in a)if(a.hasOwnProperty(n)&&(l=a[n],l!=null))switch(n){case"value":s=l;break;case"defaultValue":i=l;break;case"multiple":o=l;default:te(e,t,n,l,a,null)}t=s,a=i,e.multiple=!!o,t!=null?tr(e,!!o,t,!1):a!=null&&tr(e,!!o,a,!0);return;case"textarea":_("invalid",e),s=n=o=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":n=l;break;case"children":s=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(M(91));break;default:te(e,t,i,l,a,null)}wU(e,o,n,s);return;case"option":for(c in a)if(a.hasOwnProperty(c)&&(o=a[c],o!=null))switch(c){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:te(e,t,c,o,a,null)}return;case"dialog":_("beforetoggle",e),_("toggle",e),_("cancel",e),_("close",e);break;case"iframe":case"object":_("load",e);break;case"video":case"audio":for(o=0;o<Fs.length;o++)_(Fs[o],e);break;case"image":_("error",e),_("load",e);break;case"details":_("toggle",e);break;case"embed":case"source":case"link":_("error",e),_("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(o=a[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(M(137,t));default:te(e,t,u,o,a,null)}return;default:if(Ym(t)){for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!==void 0&&Bm(e,t,f,o,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(o=a[l],o!=null&&te(e,t,l,o,a,null))}function Uq(e,t,a,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,i=null,l=null,c=null,u=null,f=null;for(p in a){var m=a[p];if(a.hasOwnProperty(p)&&m!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":c=m;default:o.hasOwnProperty(p)||te(e,t,p,null,o,m)}}for(var d in o){var p=o[d];if(m=a[d],o.hasOwnProperty(d)&&(p!=null||m!=null))switch(d){case"type":s=p;break;case"name":n=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(M(137,t));break;default:p!==m&&te(e,t,d,p,o,m)}}tm(e,i,l,c,u,f,s,n);return;case"select":p=i=l=d=null;for(s in a)if(c=a[s],a.hasOwnProperty(s)&&c!=null)switch(s){case"value":break;case"multiple":p=c;default:o.hasOwnProperty(s)||te(e,t,s,null,o,c)}for(n in o)if(s=o[n],c=a[n],o.hasOwnProperty(n)&&(s!=null||c!=null))switch(n){case"value":d=s;break;case"defaultValue":l=s;break;case"multiple":i=s;default:s!==c&&te(e,t,n,s,o,c)}t=l,a=i,o=p,d!=null?tr(e,!!a,d,!1):!!o!==!!a&&(t!=null?tr(e,!!a,t,!0):tr(e,!!a,a?[]:"",!1));return;case"textarea":p=d=null;for(l in a)if(n=a[l],a.hasOwnProperty(l)&&n!=null&&!o.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:te(e,t,l,null,o,n)}for(i in o)if(n=o[i],s=a[i],o.hasOwnProperty(i)&&(n!=null||s!=null))switch(i){case"value":d=n;break;case"defaultValue":p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(M(91));break;default:n!==s&&te(e,t,i,n,o,s)}CU(e,d,p);return;case"option":for(var v in a)if(d=a[v],a.hasOwnProperty(v)&&d!=null&&!o.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:te(e,t,v,null,o,d)}for(c in o)if(d=o[c],p=a[c],o.hasOwnProperty(c)&&d!==p&&(d!=null||p!=null))switch(c){case"selected":e.selected=d&&typeof d!=="function"&&typeof d!=="symbol";break;default:te(e,t,c,d,o,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in a)d=a[b],a.hasOwnProperty(b)&&d!=null&&!o.hasOwnProperty(b)&&te(e,t,b,null,o,d);for(u in o)if(d=o[u],p=a[u],o.hasOwnProperty(u)&&d!==p&&(d!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(M(137,t));break;default:te(e,t,u,d,o,p)}return;default:if(Ym(t)){for(var C in a)d=a[C],a.hasOwnProperty(C)&&d!==void 0&&!o.hasOwnProperty(C)&&Bm(e,t,C,void 0,o,d);for(f in o)d=o[f],p=a[f],!o.hasOwnProperty(f)||d===p||d===void 0&&p===void 0||Bm(e,t,f,d,o,p);return}}for(var g in a)d=a[g],a.hasOwnProperty(g)&&d!=null&&!o.hasOwnProperty(g)&&te(e,t,g,null,o,d);for(m in o)d=o[m],p=a[m],!o.hasOwnProperty(m)||d===p||d==null&&p==null||te(e,t,m,d,o,p)}function U5(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fq(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],s=n.transferSize,i=n.initiatorType,l=n.duration;if(s&&l&&U5(i)){i=0,l=n.responseEnd;for(o+=1;o<a.length;o++){var c=a[o],u=c.startTime;if(u>l)break;var{transferSize:f,initiatorType:m}=c;f&&U5(m)&&(c=c.responseEnd,i+=f*(c<l?1:(l-u)/(c-u)))}if(--o,t+=8*(s+i)/(n.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}var Nm=null,Om=null;function oc(e){return e.nodeType===9?e:e.ownerDocument}function F5(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function D7(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Hm(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vf=null;function _q(){var e=window.event;if(e&&e.type==="popstate"){if(e===Vf)return!1;return Vf=e,!0}return Vf=null,!1}var E7=typeof setTimeout==="function"?setTimeout:void 0,Pq=typeof clearTimeout==="function"?clearTimeout:void 0,_5=typeof Promise==="function"?Promise:void 0,Gq=typeof queueMicrotask==="function"?queueMicrotask:typeof _5<"u"?function(e){return _5.resolve(null).then(e).catch(Vq)}:E7;function Vq(e){setTimeout(function(){throw e})}function Eo(e){return e==="head"}function P5(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(n),Ir(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Es(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Es(a);for(var s=a.firstChild;s;){var{nextSibling:i,nodeName:l}=s;s[Ys]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=i}}else a==="body"&&Es(e.ownerDocument.body);a=n}while(a);Ir(t)}function G5(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$")if(e===0)break;else e--;else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function km(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":km(a),jm(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function qq(e,t,a,o){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;else if(!e[Ys])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=jt(e.nextSibling),e===null)break}return null}function Zq(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=jt(e.nextSibling),e===null)return null}return e}function L7(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=jt(e.nextSibling),e===null)return null}return e}function zm(e){return e.data==="$?"||e.data==="$~"}function Um(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xq(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function jt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Fm=null;function V5(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function q5(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function R7(e,t,a){switch(t=oc(a),e){case"html":if(e=t.documentElement,!e)throw Error(M(452));return e;case"head":if(e=t.head,!e)throw Error(M(453));return e;case"body":if(e=t.body,!e)throw Error(M(454));return e;default:throw Error(M(451))}}function Es(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jm(e)}var Yt=new Map,Z5=new Set;function nc(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Va=j.d;j.d={f:jq,r:Yq,D:Qq,C:Wq,L:Kq,m:Jq,X:eZ,S:$q,M:tZ};function jq(){var e=Va.f(),t=bc();return e||t}function Yq(e){var t=vr(e);t!==null&&t.tag===5&&t.type==="form"?AF(t):Va.r(e)}var wr=typeof document>"u"?null:document;function B7(e,t,a){var o=wr;if(o&&typeof t==="string"&&t){var n=Vt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),Z5.has(n)||(Z5.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),st(t,"link",e),Ke(t),o.head.appendChild(t)))}}function Qq(e){Va.D(e),B7("dns-prefetch",e,null)}function Wq(e,t){Va.C(e,t),B7("preconnect",e,t)}function Kq(e,t,a){Va.L(e,t,a);var o=wr;if(o&&e&&t){var n='link[rel="preload"][as="'+Vt(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Vt(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Vt(a.imageSizes)+'"]')):n+='[href="'+Vt(e)+'"]':n+='[href="'+Vt(e)+'"]';var s=n;switch(t){case"style":s=gr(e);break;case"script":s=Ar(e)}Yt.has(s)||(e=me({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(s,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(ei(s))||t==="script"&&o.querySelector(ti(s))||(t=o.createElement("link"),st(t,"link",e),Ke(t),o.head.appendChild(t)))}}function Jq(e,t){Va.m(e,t);var a=wr;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Vt(o)+'"][href="'+Vt(e)+'"]',s=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Ar(e)}if(!Yt.has(s)&&(e=me({rel:"modulepreload",href:e},t),Yt.set(s,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ti(s)))return}o=a.createElement("link"),st(o,"link",e),Ke(o),a.head.appendChild(o)}}}function $q(e,t,a){Va.S(e,t,a);var o=wr;if(o&&e){var n=er(o).hoistableStyles,s=gr(e);t=t||"default";var i=n.get(s);if(!i){var l={loading:0,preload:null};if(i=o.querySelector(ei(s)))l.loading=5;else{e=me({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(s))&&Bd(e,a);var c=i=o.createElement("link");Ke(c),st(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Ll(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:l},n.set(s,i)}}}function eZ(e,t){Va.X(e,t);var a=wr;if(a&&e){var o=er(a).hoistableScripts,n=Ar(e),s=o.get(n);s||(s=a.querySelector(ti(n)),s||(e=me({src:e,async:!0},t),(t=Yt.get(n))&&Nd(e,t),s=a.createElement("script"),Ke(s),st(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}function tZ(e,t){Va.M(e,t);var a=wr;if(a&&e){var o=er(a).hoistableScripts,n=Ar(e),s=o.get(n);s||(s=a.querySelector(ti(n)),s||(e=me({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Nd(e,t),s=a.createElement("script"),Ke(s),st(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},o.set(n,s))}}function X5(e,t,a,o){var n=(n=ho.current)?nc(n):null;if(!n)throw Error(M(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(t=gr(a.href),a=er(n).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=gr(a.href);var s=er(n).hoistableStyles,i=s.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,i),(s=n.querySelector(ei(e)))&&!s._p&&(i.instance=s,i.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),s||aZ(n,e,a,i.state))),t&&o===null)throw Error(M(528,""));return i}if(t&&o!==null)throw Error(M(529,""));return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(t=Ar(a),a=er(n).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(M(444,e))}}function gr(e){return'href="'+Vt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function N7(e){return me({},e,{"data-precedence":e.precedence,precedence:null})}function aZ(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),st(t,"link",a),Ke(t),e.head.appendChild(t))}function Ar(e){return'[src="'+Vt(e)+'"]'}function ti(e){return"script[async]"+e}function j5(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Vt(a.href)+'"]');if(o)return t.instance=o,Ke(o),o;var n=me({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ke(o),st(o,"style",n),Ll(o,a.precedence,e),t.instance=o;case"stylesheet":n=gr(a.href);var s=e.querySelector(ei(n));if(s)return t.state.loading|=4,t.instance=s,Ke(s),s;o=N7(a),(n=Yt.get(n))&&Bd(o,n),s=(e.ownerDocument||e).createElement("link"),Ke(s);var i=s;return i._p=new Promise(function(l,c){i.onload=l,i.onerror=c}),st(s,"link",o),t.state.loading|=4,Ll(s,a.precedence,e),t.instance=s;case"script":if(s=Ar(a.src),n=e.querySelector(ti(s)))return t.instance=n,Ke(n),n;if(o=a,n=Yt.get(s))o=me({},a),Nd(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),Ke(n),st(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error(M(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Ll(o,a.precedence,e));return t.instance}function Ll(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,s=n,i=0;i<o.length;i++){var l=o[i];if(l.dataset.precedence===t)s=l;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rl=null;function Y5(e,t,a){if(Rl===null){var o=new Map,n=Rl=new Map;n.set(a,o)}else n=Rl,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var s=a[n];if(!(s[Ys]||s[ot]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var i=s.getAttribute(t)||"";i=e+i;var l=o.get(i);l?l.push(s):o.set(i,[s])}}return o}function Q5(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function oZ(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence==="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==="string")return!0}return!1}function O7(e){return e.type==="stylesheet"&&(e.state.loading&3)===0?!1:!0}function nZ(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=gr(o.href),s=t.querySelector(ei(n));if(s){t=s._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=rc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Ke(s);return}s=t.ownerDocument||t,o=N7(o),(n=Yt.get(n))&&Bd(o,n),s=s.createElement("link"),Ke(s);var i=s;i._p=new Promise(function(l,c){i.onload=l,i.onerror=c}),st(s,"link",o),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=rc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var qf=0;function rZ(e,t){return e.stylesheets&&e.count===0&&Bl(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Bl(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},60000+t);0<e.imgBytes&&qf===0&&(qf=62500*Fq());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bl(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sc=null;function Bl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sc=new Map,t.forEach(sZ,e),sc=null,rc.call(e))}function sZ(e,t){if(!(t.state.loading&4)){var a=sc.get(e);if(a)var o=a.get(null);else{a=new Map,sc.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var i=n[s];if(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")a.set(i.dataset.precedence,i),o=i}o&&a.set(null,o)}n=t.instance,i=n.getAttribute("data-precedence"),s=a.get(i)||o,s===o&&a.set(null,n),a.set(i,n),this.count++,o=rc.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ps={$$typeof:Ba,Provider:null,Consumer:null,_currentValue:Jo,_currentValue2:Jo,_threadCount:0};function iZ(e,t,a,o,n,s,i,l,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=If(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=If(0),this.hiddenUpdates=If(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function H7(e,t,a,o,n,s,i,l,c,u,f,m){return e=new iZ(e,t,a,i,c,u,f,m,l),t=1,s===!0&&(t|=24),s=Dt(3,null,null,t),e.current=s,s.stateNode=e,t=rd(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:o,isDehydrated:a,cache:t},ld(s),e}function k7(e){if(!e)return Wn;return e=Wn,e}function z7(e,t,a,o,n,s){n=k7(n),o.context===null?o.context=n:o.pendingContext=n,o=Io(t),o.payload={element:a},s=s===void 0?null:s,s!==null&&(o.callback=s),a=So(e,o,t),a!==null&&(vt(a,e,t),bs(a,e,t))}function W5(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Od(e,t){W5(e,t),(e=e.alternate)&&W5(e,t)}function U7(e){if(e.tag===13||e.tag===31){var t=mn(e,67108864);t!==null&&vt(t,e,67108864),Od(e,67108864)}}function K5(e){if(e.tag===13||e.tag===31){var t=Nt();t=Zm(t);var a=mn(e,t);a!==null&&vt(a,e,t),Od(e,t)}}var ic=!0;function lZ(e,t,a,o){var n=H.T;H.T=null;var s=j.p;try{j.p=2,Hd(e,t,a,o)}finally{j.p=s,H.T=n}}function cZ(e,t,a,o){var n=H.T;H.T=null;var s=j.p;try{j.p=8,Hd(e,t,a,o)}finally{j.p=s,H.T=n}}function Hd(e,t,a,o){if(ic){var n=_m(o);if(n===null)Gf(e,t,o,lc,a),J5(e,o);else if(fZ(n,e,t,a,o))o.stopPropagation();else if(J5(e,o),t&4&&-1<uZ.indexOf(e)){for(;n!==null;){var s=vr(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var i=Yo(s.pendingLanes);if(i!==0){var l=s;l.pendingLanes|=2;for(l.entangledLanes|=2;i;){var c=1<<31-Bt(i);l.entanglements[1]|=c,i&=~c}Ia(s),(X&6)===0&&(Kl=Lt()+500,$s(0,!1))}}break;case 31:case 13:l=mn(s,2),l!==null&&vt(l,s,2),bc(),Od(s,2)}if(s=_m(o),s===null&&Gf(e,t,o,lc,a),s===n)break;n=s}n!==null&&o.stopPropagation()}else Gf(e,t,o,null,a)}}function _m(e){return e=Qm(e),kd(e)}var lc=null;function kd(e){if(lc=null,e=qn(e),e!==null){var t=qs(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=nU(t),e!==null)return e;e=null}else if(a===31){if(e=rU(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lc=e,null}function F7(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(KG()){case cU:return 2;case uU:return 8;case zl:case JG:return 32;case fU:return 268435456;default:return 32}default:return 32}}var Pm=!1,bo=null,Co=null,wo=null,Gs=new Map,Vs=new Map,lo=[],uZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function J5(e,t){switch(e){case"focusin":case"focusout":bo=null;break;case"dragenter":case"dragleave":Co=null;break;case"mouseover":case"mouseout":wo=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(t.pointerId)}}function is(e,t,a,o,n,s){if(e===null||e.nativeEvent!==s)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:s,targetContainers:[n]},t!==null&&(t=vr(t),t!==null&&U7(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function fZ(e,t,a,o,n){switch(t){case"focusin":return bo=is(bo,e,t,a,o,n),!0;case"dragenter":return Co=is(Co,e,t,a,o,n),!0;case"mouseover":return wo=is(wo,e,t,a,o,n),!0;case"pointerover":var s=n.pointerId;return Gs.set(s,is(Gs.get(s)||null,e,t,a,o,n)),!0;case"gotpointercapture":return s=n.pointerId,Vs.set(s,is(Vs.get(s)||null,e,t,a,o,n)),!0}return!1}function _7(e){var t=qn(e.target);if(t!==null){var a=qs(t);if(a!==null){if(t=a.tag,t===13){if(t=nU(a),t!==null){e.blockedOn=t,zz(e.priority,function(){K5(a)});return}}else if(t===31){if(t=rU(a),t!==null){e.blockedOn=t,zz(e.priority,function(){K5(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Nl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=_m(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);om=o,a.target.dispatchEvent(o),om=null}else return t=vr(a),t!==null&&U7(t),e.blockedOn=a,!1;t.shift()}return!0}function $5(e,t,a){Nl(e)&&a.delete(t)}function mZ(){Pm=!1,bo!==null&&Nl(bo)&&(bo=null),Co!==null&&Nl(Co)&&(Co=null),wo!==null&&Nl(wo)&&(wo=null),Gs.forEach($5),Vs.forEach($5)}function gl(e,t){e.blockedOn===t&&(e.blockedOn=null,Pm||(Pm=!0,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,mZ)))}var Il=null;function eU(e){Il!==e&&(Il=e,Ze.unstable_scheduleCallback(Ze.unstable_NormalPriority,function(){Il===e&&(Il=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(kd(o||a)===null)continue;else break;var s=vr(a);s!==null&&(e.splice(t,3),t-=3,vm(s,{pending:!0,data:n,method:a.method,action:o},o,n))}}))}function Ir(e){function t(c){return gl(c,e)}bo!==null&&gl(bo,e),Co!==null&&gl(Co,e),wo!==null&&gl(wo,e),Gs.forEach(t),Vs.forEach(t);for(var a=0;a<lo.length;a++){var o=lo[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<lo.length&&(a=lo[0],a.blockedOn===null);)_7(a),a.blockedOn===null&&lo.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],s=a[o+1],i=n[yt]||null;if(typeof s==="function")i||eU(a);else if(i){var l=null;if(s&&s.hasAttribute("formAction")){if(n=s,i=s[yt]||null)l=i.formAction;else if(kd(n)!==null)continue}else l=i.action;typeof l==="function"?a[o+1]=l:(a.splice(o,3),o-=3),eU(a)}}}function P7(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function zd(e){this._internalRoot=e}Ac.prototype.render=zd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));var a=t.current,o=Nt();z7(a,o,e,t,null,null)};Ac.prototype.unmount=zd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;z7(e.current,2,null,e,null,null),bc(),t[Sr]=null}};function Ac(e){this._internalRoot=e}Ac.prototype.unstable_scheduleHydration=function(e){if(e){var t=gU();e={blockedOn:null,target:e,priority:t};for(var a=0;a<lo.length&&t!==0&&t<lo[a].priority;a++);lo.splice(a,0,e),a===0&&_7(e)}};var tU=aU.version;if(tU!=="19.2.8")throw Error(M(527,tU,"19.2.8"));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error(M(188));throw e=Object.keys(e).join(","),Error(M(268,e))}return e=qG(t),e=e!==null?sU(e):null,e=e===null?null:e.stateNode,e};var dZ={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Pn=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pn.isDisabled&&Pn.supportsFiber)try{Zs=Pn.inject(dZ),Rt=Pn}catch(e){}}var Pn;Tc.createRoot=function(e,t){if(!oU(e))throw Error(M(299));var a=!1,o="",n=BF,s=NF,i=OF;return t!==null&&t!==void 0&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=H7(e,1,!1,null,null,a,o,null,n,s,i,P7),e[Sr]=t.current,Rd(e),new zd(t)};Tc.hydrateRoot=function(e,t,a){if(!oU(e))throw Error(M(299));var o=!1,n="",s=BF,i=NF,l=OF,c=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(c=a.formState)),t=H7(e,1,!0,t,a!=null?a:null,o,n,c,s,i,l,P7),t.context=k7(null),a=t.current,o=Nt(),o=Zm(o),n=Io(o),n.callback=null,So(a,n,o),a=o,t.current.lanes=a,js(t,a),Ia(t),e[Sr]=t.current,Rd(e),new Ac(t)};Tc.version="19.2.8"});var Z7=ia(function(GY,q7){function V7(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V7)}catch(e){console.error(e)}}V7(),q7.exports=G7()});var yZ={};function Ec(e){return e}var ii=((e)=>(e.Menu="menu",e.Tooltip="tooltip",e.Context="context",e.Inline="inline",e))(ii||{});var li=((e)=>(e.List="list",e.Grid="grid",e.Form="form",e.Custom="custom",e.Composed="composed",e))(li||{});var bn=((e)=>(e.Item="item",e.Section="section",e.Divider="divider",e.Switch="switch",e.Checkbox="checkbox",e.SelectNav="selectNav",e.Color="color",e.Object="object",e.Add="add",e.Sortable="sortable",e.Chip="chip",e.FilterRule="filterRule",e.Participant="participant",e.Empty="empty",e.Custom="custom",e))(bn||{});var ci=((e)=>(e.Static="static",e.Prop="prop",e.Store="store",e.Async="async",e.Sections="sections",e.Composite="composite",e))(ci||{});var ui=((e)=>(e.ArrowHover="arrowHover",e.ArrowClick="arrowClick",e.MoreIcon="moreIcon",e.RightClick="rightClick",e.LongPress="longPress",e.Replace="replace",e.Programmatic="programmatic",e))(ui||{});var R=O(U(),1);var mi=O(U(),1);var Lo=O(U(),1);var cp=O(U(),1),up=cp.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});var W=Lo.forwardRef((e,t)=>{let{alt:a,color:o,size:n,weight:s,mirrored:i,children:l,weights:c,...u}=e,{color:f="currentColor",size:m,weight:d="regular",mirrored:p=!1,...v}=Lo.useContext(up);return Lo.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:n!=null?n:m,height:n!=null?n:m,fill:o!=null?o:f,viewBox:"0 0 256 256",transform:i||p?"scale(-1, 1)":void 0,...v,...u},!!a&&Lo.createElement("title",null,a),l,c.get(s!=null?s:d))});W.displayName="IconBase";var ve=O(U(),1),fp=new Map([["bold",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"}))],["duotone",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M200,144l-72,72L56,144Z",opacity:"0.2"}),ve.createElement("path",{d:"M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"}))],["fill",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"}))],["light",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",ve.createElement(ve.Fragment,null,ve.createElement("path",{d:"M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"}))]]);var zc=mi.forwardRef((e,t)=>mi.createElement(W,{ref:t,...e,weights:fp}));zc.displayName="ArrowDownIcon";var Uc=zc;var di=O(U(),1);var ye=O(U(),1),mp=new Map([["bold",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),ye.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",ye.createElement(ye.Fragment,null,ye.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]);var Fc=di.forwardRef((e,t)=>di.createElement(W,{ref:t,...e,weights:mp}));Fc.displayName="ArrowLeftIcon";var _c=Fc;var pi=O(U(),1);var be=O(U(),1),dp=new Map([["bold",be.createElement(be.Fragment,null,be.createElement("path",{d:"M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"}))],["duotone",be.createElement(be.Fragment,null,be.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),be.createElement("path",{d:"M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"}))],["fill",be.createElement(be.Fragment,null,be.createElement("path",{d:"M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"}))],["light",be.createElement(be.Fragment,null,be.createElement("path",{d:"M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"}))],["regular",be.createElement(be.Fragment,null,be.createElement("path",{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"}))],["thin",be.createElement(be.Fragment,null,be.createElement("path",{d:"M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"}))]]);var Pc=pi.forwardRef((e,t)=>pi.createElement(W,{ref:t,...e,weights:dp}));Pc.displayName="ArrowUpIcon";var Gc=Pc;var hi=O(U(),1);var Ce=O(U(),1),pp=new Map([["bold",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),Ce.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",Ce.createElement(Ce.Fragment,null,Ce.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]);var Vc=hi.forwardRef((e,t)=>hi.createElement(W,{ref:t,...e,weights:pp}));Vc.displayName="CaretLeftIcon";var qc=Vc;var gi=O(U(),1);var we=O(U(),1),hp=new Map([["bold",we.createElement(we.Fragment,null,we.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",we.createElement(we.Fragment,null,we.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),we.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",we.createElement(we.Fragment,null,we.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",we.createElement(we.Fragment,null,we.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",we.createElement(we.Fragment,null,we.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",we.createElement(we.Fragment,null,we.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]);var Zc=gi.forwardRef((e,t)=>gi.createElement(W,{ref:t,...e,weights:hp}));Zc.displayName="CaretRightIcon";var Lr=Zc;var Ii=O(U(),1);var Ae=O(U(),1),gp=new Map([["bold",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),Ae.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",Ae.createElement(Ae.Fragment,null,Ae.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]);var Xc=Ii.forwardRef((e,t)=>Ii.createElement(W,{ref:t,...e,weights:gp}));Xc.displayName="CheckIcon";var Rr=Xc;var Si=O(U(),1);var Te=O(U(),1),Ip=new Map([["bold",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),Te.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",Te.createElement(Te.Fragment,null,Te.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]);var jc=Si.forwardRef((e,t)=>Si.createElement(W,{ref:t,...e,weights:Ip}));jc.displayName="CircleNotchIcon";var Yc=jc;var vi=O(U(),1);var xe=O(U(),1),Sp=new Map([["bold",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z"}))],["duotone",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",opacity:"0.2"}),xe.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["fill",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z"}))],["light",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z"}))],["regular",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"}))],["thin",xe.createElement(xe.Fragment,null,xe.createElement("path",{d:"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z"}))]]);var Qc=vi.forwardRef((e,t)=>vi.createElement(W,{ref:t,...e,weights:Sp}));Qc.displayName="DotsSixVerticalIcon";var Wc=Qc;var yi=O(U(),1);var Me=O(U(),1),vp=new Map([["bold",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z"}))],["duotone",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z",opacity:"0.2"}),Me.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["fill",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z"}))],["light",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z"}))],["regular",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"}))],["thin",Me.createElement(Me.Fragment,null,Me.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z"}))]]);var Kc=yi.forwardRef((e,t)=>yi.createElement(W,{ref:t,...e,weights:vp}));Kc.displayName="DotsThreeIcon";var Br=Kc;var bi=O(U(),1);var De=O(U(),1),yp=new Map([["bold",De.createElement(De.Fragment,null,De.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",De.createElement(De.Fragment,null,De.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),De.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",De.createElement(De.Fragment,null,De.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",De.createElement(De.Fragment,null,De.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",De.createElement(De.Fragment,null,De.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",De.createElement(De.Fragment,null,De.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]);var Jc=bi.forwardRef((e,t)=>bi.createElement(W,{ref:t,...e,weights:yp}));Jc.displayName="MagnifyingGlassIcon";var Nr=Jc;var Ci=O(U(),1);var Ee=O(U(),1),bp=new Map([["bold",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),Ee.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",Ee.createElement(Ee.Fragment,null,Ee.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]);var $c=Ci.forwardRef((e,t)=>Ci.createElement(W,{ref:t,...e,weights:bp}));$c.displayName="PlusIcon";var eu=$c;var wi=O(U(),1);var Le=O(U(),1),Cp=new Map([["bold",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z"}))],["duotone",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),Le.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",Le.createElement(Le.Fragment,null,Le.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]);var tu=wi.forwardRef((e,t)=>wi.createElement(W,{ref:t,...e,weights:Cp}));tu.displayName="UploadIcon";var au=tu;var Ai=O(U(),1);var Re=O(U(),1),wp=new Map([["bold",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",Re.createElement(Re.Fragment,null,Re.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]);var ou=Ai.forwardRef((e,t)=>Ai.createElement(W,{ref:t,...e,weights:wp}));ou.displayName="WarningCircleIcon";var nu=ou;var Ti=O(U(),1);var Be=O(U(),1),Ap=new Map([["bold",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),Be.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",Be.createElement(Be.Fragment,null,Be.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]);var ru=Ti.forwardRef((e,t)=>Ti.createElement(W,{ref:t,...e,weights:Ap}));ru.displayName="XIcon";var Ro=ru;function jO(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(a=jO(e[t]))&&(o&&(o+=" "),o+=a)}else for(a in e)e[a]&&(o&&(o+=" "),o+=a);return o}function T_(){for(var e,t,a=0,o="",n=arguments.length;a<n;a++)(e=arguments[a])&&(t=jO(e))&&(o&&(o+=" "),o+=t);return o}var Y=T_;var Ku=O(An(),1),h=O(Di(),1);var la=O(U(),1),cH=O(An(),1);function tH(e,t,a){let o=Array(e);return new Proxy(o,{get(n,s,i){if(typeof s==="string"){let l=s.charCodeAt(0);if(l>=48&&l<=57){let c=+s;if(Number.isInteger(c)&&c>=0&&c<e){let u=n[c];if(!u){let f=t[c*2];u=n[c]={index:c,key:a(c),start:f,size:t[c*2+1],end:f+t[c*2+1],lane:0}}return u}}if(s==="length")return e}return Reflect.get(n,s,i)}})}function Bo(e,t,a){let o=a.initialDeps??[],n,s=!0;function i(){var l;let c=!1,u=0,f=e();if(!(f.length!==o.length||f.some((p,v)=>o[v]!==p)))return n;o=f;let d=0;if(n=t(...f),(a==null?void 0:a.onChange)&&!(s&&a.skipInitialOnChange))a.onChange(n);return s=!1,n}return i.updateDeps=(l)=>{o=l},i}function Au(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:""}`);else return e}var aH=(e,t)=>Math.abs(e-t)<1.01,oH=(e,t,a)=>{let o;return Object.assign(function(...n){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,n),a)},{cancel:()=>{e.clearTimeout(o)}})};var Hr,Tu=()=>{if(Hr!==void 0)return Hr;if(typeof navigator>"u")return Hr=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Hr=!0;let e=navigator.maxTouchPoints;return Hr=navigator.platform==="MacIntel"&&e!==void 0&&e>0};var nH=(e)=>{let{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},R_=(e)=>e,B_=(e)=>{let t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,n=Array(o);for(let s=0;s<o;s++)n[s]=t+s;return n},rH=(e,t)=>{let a=e.scrollElement;if(!a)return;let o=e.targetWindow;if(!o)return;let n=(i)=>{let{width:l,height:c}=i;t({width:Math.round(l),height:Math.round(c)})};if(n(nH(a)),!o.ResizeObserver)return()=>{};let s=new o.ResizeObserver((i)=>{let l=()=>{let c=i[0];if(c==null?void 0:c.borderBoxSize){let u=c.borderBoxSize[0];if(u){n({width:u.inlineSize,height:u.blockSize});return}}n(nH(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return s.observe(a,{box:"border-box"}),()=>{s.unobserve(a)}},Ei={passive:!0};var N_=typeof window>"u"?!0:("onscrollend"in window),O_=(e,t,a)=>{let o=e.scrollElement;if(!o)return;let n=e.targetWindow;if(!n)return;let s=e.options.useScrollendEvent&&N_,i=0,l=s?null:oH(n,()=>t(i,!1),e.options.isScrollingResetDelay),c=(m)=>()=>{i=a(o),l==null||l(),t(i,m)},u=c(!0),f=c(!1);if(o.addEventListener("scroll",u,Ei),s)o.addEventListener("scrollend",f,Ei);return()=>{if(o.removeEventListener("scroll",u),s)o.removeEventListener("scrollend",f);l==null||l.cancel()}},sH=(e,t)=>O_(e,t,(a)=>{let{horizontal:o,isRtl:n}=e.options;return o?a.scrollLeft*(n&&-1||1):a.scrollTop});var H_=(e,t,a)=>{if(a.options.useCachedMeasurements){let o=a.indexFromElement(e),n=a.options.getItemKey(o);return a.itemSizeCache.get(n)??a.options.estimateSize(o)}if(t==null?void 0:t.borderBoxSize){let o=t.borderBoxSize[0];if(o)return Math.round(o[a.options.horizontal?"inlineSize":"blockSize"])}if(!t){let o=a.indexFromElement(e),n=a.options.getItemKey(o),s=a.itemSizeCache.get(n);if(s!==void 0)return s}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},k_=(e,{adjustments:t=0,behavior:a},o)=>{var n,s;(s=(n=o.scrollElement)==null?void 0:n.scrollTo)==null||s.call(n,{[o.options.horizontal?"left":"top"]:e+t,behavior:a})};var iH=k_;class xu{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var t,a,o;return((o=(a=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:a.now)==null?void 0:o.call(a))??Date.now()},this.observer=(()=>{let t=null,a=()=>{if(t)return t;if(!this.targetWindow||!this.targetWindow.ResizeObserver)return null;return t=new this.targetWindow.ResizeObserver((o)=>{o.forEach((n)=>{let s=()=>{let i=n.target,l=this.indexFromElement(i);if(!i.isConnected){this.observer.unobserve(i);for(let[c,u]of this.elementsCache)if(u===i){this.elementsCache.delete(c);break}return}if(!this.isIndexInRange(l))return;if(this.shouldMeasureDuringScroll(l))this.resizeItem(l,this.options.measureElement(i,n,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})})};return{disconnect:()=>{var o;(o=a())==null||o.disconnect(),t=null},observe:(o)=>{var n;return(n=a())==null?void 0:n.observe(o,{box:"border-box"})},unobserve:(o)=>{var n;return(n=a())==null?void 0:n.unobserve(o)}}})(),this.range=null,this.setOptions=(t)=>{var a,o;let n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:R_,rangeExtractor:B_,onChange:()=>{},measureElement:H_,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(let m in t){let d=t[m];if(d!==void 0)n[m]=d}let s=this.options,i=null,l=null,c=!1;if(s!==void 0&&s.enabled&&n.enabled&&n.anchorTo==="end"&&this.scrollElement!==null){let m=s.count,d=n.count,p=this.getMeasurements(),v=m>0?((a=p[0])==null?void 0:a.key)??s.getItemKey(0):null,b=m>0?((o=p[m-1])==null?void 0:o.key)??s.getItemKey(m-1):null;if(d!==m||m>0&&d>0&&(n.getItemKey(0)!==v||n.getItemKey(d-1)!==b)){c=!0;let I=m>0?this.getVirtualItemForOffset(this.getScrollOffset())??p[0]:null;if(I)i=[I.key,this.getScrollOffset()-I.start];let S=n.followOnAppend===!0?"auto":n.followOnAppend||null;if(S&&d>m&&this.isAtEnd(s.scrollEndThreshold)&&(m===0||n.getItemKey(d-1)!==b))l=S}}if(this.options=n,c)this.pendingMin=0,this.itemSizeCacheVersion++;let u=!1,f=0;if(i&&this.scrollOffset!==null){let[m,d]=i,p=this.getMeasurements(),{count:v,getItemKey:b}=this.options,C=0;while(C<v&&b(C)!==m)C++;if(C<v){let g=p[C];if(g){let I=Math.max(0,g.start+d);if(I!==this.scrollOffset)f=I-this.scrollOffset,this.scrollOffset=I,u=!0}}}if(u||l)this.pendingScrollAnchor=[u?i[0]:null,u?i[1]:0,l,f]},this.notify=(t)=>{var a,o;(o=(a=this.options).onChange)==null||o.call(a,this,t)},this.maybeNotify=Bo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),(t)=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{if(this.unsubs.filter(Boolean).forEach((t)=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow)this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null;this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;let a=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==a){if(this.cleanup(),!a){this.maybeNotify();return}if(this.scrollElement=a,this.scrollElement&&"ownerDocument"in this.scrollElement)this.targetWindow=this.scrollElement.ownerDocument.defaultView;else this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null;if(this.elementsCache.forEach((n)=>{this.observer.observe(n)}),this.unsubs.push(this.options.observeElementRect(this,(n)=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,s)=>{if(s&&this._intendedScrollOffset===null&&n===this.scrollOffset)return;if(this._intendedScrollOffset!==null&&Math.abs(n-this._intendedScrollOffset)<1.5)n=this._intendedScrollOffset;this._intendedScrollOffset=null,this.scrollAdjustments=0;let i=this.getScrollOffset();if(this.scrollDirection=s?i===n?this.scrollDirection:i<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=s,this._flushIosDeferredIfReady(),this.scrollState)this.scheduleScrollReconcile();this.maybeNotify()})),"addEventListener"in this.scrollElement){let n=this.scrollElement,s=()=>{if(this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null)this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null},i=()=>{if(this._iosTouching=!1,!Tu()||this.targetWindow==null)return;this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150)};n.addEventListener("touchstart",s,Ei),n.addEventListener("touchend",i,Ei),this.unsubs.push(()=>{if(n.removeEventListener("touchstart",s),n.removeEventListener("touchend",i),this._iosTouchEndTimerId!==null&&this.targetWindow!=null)this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let o=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled){let[n,s,i,l]=o;if(n!==null&&!i)if(Tu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)){if(l!==0)this._iosDeferredAdjustment+=l}else this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0});if(i)this.scrollToEnd({behavior:i})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;let t=this.getScrollOffset(),a=this.getMaxScrollOffset();if(t<0||t>a)return;if(this._iosDeferredAdjustment<0&&t>=a-1){this._iosDeferredAdjustment=0;return}let o=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(t,{adjustments:this.scrollAdjustments+=o,behavior:void 0})},this.rafId=null,this.getSize=()=>{if(!this.options.enabled)return this.scrollRect=null,0;return this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]},this.getScrollOffset=()=>{if(!this.options.enabled)return this.scrollOffset=null,0;return this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset},this.getMeasurementOptions=Bo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(t,a,o,n,s,i,l,c)=>{if(this.prevLanes!==void 0&&this.prevLanes!==i)this.lanesChangedFlag=!0;return this.prevLanes=i,this.pendingMin=null,{count:t,paddingStart:a,scrollMargin:o,getItemKey:n,enabled:s,lanes:i,laneAssignmentMode:l,gap:c}},{key:!1}),this.isIndexInRange=(t)=>t>=0&&t<this.options.count,this.getMeasurements=Bo(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:t,paddingStart:a,scrollMargin:o,getItemKey:n,enabled:s,lanes:i,laneAssignmentMode:l,gap:c},u)=>{let f=this.itemSizeCache;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t){for(let C of this.laneAssignments.keys())if(C>=t)this.laneAssignments.delete(C)}if(this.lanesChangedFlag)this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null;if(this.measurementsCache.length===0&&!this.lanesSettling)this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((C)=>{this.itemSizeCache.set(C.key,C.size)});let m=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===t)this.lanesSettling=!1;if(i===1){let C=t*2,g=this._flatMeasurements;if(!g||g.length<C){let y=new Float64Array(C);if(g&&m>0)y.set(g.subarray(0,m*2));g=y,this._flatMeasurements=g}let I;if(m===0)I=a+o;else{let y=m-1;I=g[y*2]+g[y*2+1]+c}for(let y=m;y<t;y++){let w=n(y),T=f.get(w),x=typeof T==="number"?T:this.options.estimateSize(y);g[y*2]=I,g[y*2+1]=x,I+=x+c}let S=tH(t,g,n);return this.measurementsCache=S,S}let d=this.measurementsCache.slice(0,m),p=Array(i).fill(void 0),v=new Float64Array(i),b=0;for(let C=0;C<m;C++){let g=d[C];if(g){if(p[g.lane]===void 0)b++;p[g.lane]=C,v[g.lane]=g.end}}for(let C=m;C<t;C++){let g=n(C),I=this.laneAssignments.get(C),S,y,w=l==="estimate"||f.has(g);if(I!==void 0&&this.options.lanes>1){S=I;let L=p[S],D=L!==void 0?d[L]:void 0;y=D?D.end+c:a+o}else if(b===i){let L=0,D=v[0],N=p[0];for(let oe=1;oe<i;oe++){let ne=v[oe];if(ne<D||ne===D&&p[oe]<N)L=oe,D=ne,N=p[oe]}if(S=L,y=D+c,w)this.laneAssignments.set(C,S)}else if(S=C%this.options.lanes,y=a+o,w)this.laneAssignments.set(C,S);let T=f.get(g),x=typeof T==="number"?T:this.options.estimateSize(C),E=y+x;if(d[C]={index:C,start:y,size:x,end:E,key:g,lane:S},p[S]===void 0)b++;p[S]=C,v[S]=E}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Bo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,a,o,n)=>{if(t.length===0||a===0)return this.range=null,null;return this.range=U_(t,a,o,n,n===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range},{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Bo(()=>{let t=null,a=null,o=this.calculateRange();if(o)t=o.startIndex,a=o.endIndex;return this.maybeNotify.updateDeps([this.isScrolling,t,a]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,a]},(t,a,o,n,s)=>n===null||s===null?[]:t({startIndex:n,endIndex:s,overscan:a,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=(t)=>{let a=this.options.indexAttribute,o=t.getAttribute(a);if(!o)return console.warn(`Missing attribute name '${a}={index}' on measured element.`),-1;return parseInt(o,10)},this.shouldMeasureDuringScroll=(t)=>{var a;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;let o=this.scrollState.index??((a=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:a.index);if(o!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,o-n),i=Math.min(this.options.count-1,o+n);return t>=s&&t<=i}return!0},this.measureElement=(t)=>{if(!t){this.elementsCache.forEach((s,i)=>{if(!s.isConnected)this.observer.unobserve(s),this.elementsCache.delete(i)});return}let a=this.indexFromElement(t);if(!this.isIndexInRange(a))return;let o=this.options.getItemKey(a),n=this.elementsCache.get(o);if(n!==t){if(n)this.observer.unobserve(n);this.observer.observe(t),this.elementsCache.set(o,t)}if((!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(a))this.resizeItem(a,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,a)=>{var o,n;if(!this.isIndexInRange(t))return;let s,i,l,c=this._flatMeasurements;if(this.options.lanes===1&&c!==null)l=this.options.getItemKey(t),i=c[t*2],s=c[t*2+1];else{let m=this.measurementsCache[t];if(!m)return;l=m.key,i=m.start,s=m.size}let u=this.itemSizeCache.get(l)??s,f=a-u;if(f!==0){let m=this.options.anchorTo==="end"&&((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=m?this.getTotalSize():0,p=this.getScrollOffset()+this.scrollAdjustments,b=!this.itemSizeCache.has(l)?i<p:i+u<=p&&this.scrollDirection!=="backward",C=((n=this.scrollState)==null?void 0:n.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[t]??{index:t,key:l,start:i,size:s,end:i+s,lane:0},f,this):b);if(this.pendingMin===null||t<this.pendingMin)this.pendingMin=t;this.itemSizeCache.set(l,a),this.itemSizeCacheVersion++;let g=!1;if(m)g=this.applyScrollAdjustment(this.getTotalSize()-d);else if(C)g=this.applyScrollAdjustment(f);this.notify(g)}},this.getVirtualItems=Bo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,a)=>{let o=[];for(let n=0,s=t.length;n<s;n++){let i=t[n],l=a[i];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=(t)=>{let a=this.getMeasurements();if(a.length===0)return;let o=this._flatMeasurements,n=this.options.lanes===1&&o!=null,s=lH(0,a.length-1,n?(i)=>o[i*2]:(i)=>Au(a[i]).start,t);return Au(a[s])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;else{let t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(t=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=t,this.getOffsetForAlignment=(t,a,o=0)=>{if(!this.scrollElement)return 0;let n=this.getSize(),s=this.getScrollOffset();if(a==="auto")a=t>=s+n?"end":"start";if(a==="center")t+=(o-n)/2;else if(a==="end")t-=n;let i=this.getMaxScrollOffset();return Math.max(Math.min(i,t),0)},this.getOffsetForIndex=(t,a="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));let o=this.getSize(),n=this.getScrollOffset(),s=this.measurementsCache[t];if(!s)return;if(a==="auto")if(s.end>=n+o-this.options.scrollPaddingEnd)a="end";else if(s.start<=n+this.options.scrollPaddingStart)a="start";else return[n,a];if(a==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),a];let i=a==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,a,s.size),a]},this.scrollToOffset=(t,{align:a="start",behavior:o="auto"}={})=>{this._iosDeferredAdjustment=0;let n=this.getOffsetForAlignment(t,a),s=this.now();this.scrollState={index:null,align:a,behavior:o,startedAt:s,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:a="auto",behavior:o="auto"}={})=>{this._iosDeferredAdjustment=0,t=Math.max(0,Math.min(t,this.options.count-1));let n=this.getOffsetForIndex(t,a);if(!n)return;let[s,i]=n,l=this.now();this.scrollState={index:t,align:i,behavior:o,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:a="auto"}={})=>{let o=this.getScrollOffset()+t,n=this.now();this.scrollState={index:null,align:"start",behavior:a,startedAt:n,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:a}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:t="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:t});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:t})},this.getTotalSize=()=>{var t;let a=this.getMeasurements(),o;if(a.length===0)o=this.options.paddingStart;else if(this.options.lanes===1){let n=a.length-1,s=this._flatMeasurements;if(s!=null)o=s[n*2]+s[n*2+1];else o=((t=a[n])==null?void 0:t.end)??0}else{let n=Array(this.options.lanes).fill(null),s=a.length-1;while(s>=0&&n.some((i)=>i===null)){let i=a[s];if(n[i.lane]===null)n[i.lane]=i.end;s--}o=Math.max(...n.filter((i)=>i!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let t=[];if(this.itemSizeCache.size===0)return t;let a=this.getMeasurements();for(let o of a)if(o&&this.itemSizeCache.has(o.key))t.push({index:o.index,key:o.key,start:o.start,size:o.size,end:o.end,lane:o.lane});return t},this._scrollToOffset=(t,{adjustments:a,behavior:o})=>{this._intendedScrollOffset=t+(a??0),this.options.scrollToFn(t,{behavior:o,adjustments:a},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(e===0)return!1;if(Tu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;else{if(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null){if(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0)this.scrollOffset=0;this.scrollAdjustments=0}return!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}if(this.rafId!=null)return;this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;let t=5000;if(this.now()-this.scrollState.startedAt>t){this.scrollState=null;return}let a=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,o=a?a[0]:this.scrollState.lastTargetOffset,n=1,s=o!==this.scrollState.lastTargetOffset;if(!s&&aH(o,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){if(this.getScrollOffset()!==o)this._scrollToOffset(o,{adjustments:void 0,behavior:"auto"});this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){let i=this.getSize()||600,l=Math.abs(o-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>i;if(this.scrollState.lastTargetOffset=o,!c)this.scrollState.behavior="auto";this._scrollToOffset(o,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}var lH=(e,t,a,o)=>{while(e<=t){let n=(e+t)/2|0,s=a(n);if(s<o)e=n+1;else if(s>o)t=n-1;else return n}if(e>0)return e-1;else return 0};function z_(e,t,a){let o=0;while(o<=t){let n=(o+t)/2|0,s=e[n*2];if(s<a)o=n+1;else if(s>a)t=n-1;else return n}return o>0?o-1:0}function U_(e,t,a,o,n){let s=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:s};if(o===1&&n!==null){let u=z_(n,s,a),f=u,m=a+t;while(f<s&&n[f*2]+n[f*2+1]<m)f++;return{startIndex:u,endIndex:f}}let l=lH(0,s,(u)=>e[u].start,a),c=l;if(o===1)while(c<s&&e[c].end<a+t)c++;else if(o>1){let u=Array(o).fill(0);while(c<s&&u.some((m)=>m<a+t)){let m=e[c];u[m.lane]=m.end,c++}let f=Array(o).fill(a+t);while(l>=0&&f.some((m)=>m>=a)){let m=e[l];f[m.lane]=m.start,l--}l=Math.max(0,l-l%o),c=Math.min(s,c+(o-1-c%o))}return{startIndex:l,endIndex:c}}var Mu=typeof document<"u"?la.useLayoutEffect:la.useEffect;function F_({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:a="transform",...o}){let n=la.useReducer((f)=>f+1,0)[1],s=la.useRef({enabled:t,mode:a,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=a;let i=(f)=>{let m=s.current;if(!m.enabled||!m.container)return;let d=f.getTotalSize();if(d!==m.lastSize){m.lastSize=d;let p=f.options.horizontal?"width":"height";m.container.style[p]=`${d}px`}},l=(f)=>{let m=s.current;if(!m.enabled||!m.container)return;i(f);let d=!!f.options.horizontal,p=m.mode==="transform",v=d?"left":"top",b=f.options.scrollMargin,C=f.getVirtualItems();for(let g of C){let I=g.start-b,S=f.elementsCache.get(g.key);if(!S)continue;if(m.lastPositions.get(S)===I)continue;if(m.lastPositions.set(S,I),p)S.style.transform=d?`translate3d(${I}px, 0, 0)`:`translate3d(0, ${I}px, 0)`;else S.style[v]=`${I}px`}},c={...o,onChange:(f,m)=>{var d;let p=s.current,v=!0;if(p.enabled){l(f);let b=f.range,C=p.prevRange;if(v=!C||C.isScrolling!==f.isScrolling||C.startIndex!==(b==null?void 0:b.startIndex)||C.endIndex!==(b==null?void 0:b.endIndex),v)p.prevRange=b?{startIndex:b.startIndex,endIndex:b.endIndex,isScrolling:f.isScrolling}:null}if(v)if(e&&m)cH.flushSync(n);else n();(d=o.onChange)==null||d.call(o,f,m)}},[u]=la.useState(()=>{let f=new xu(c);return Object.assign(f,{containerRef:(m)=>{let d=s.current;if(d.container=m,d.lastSize=null,m&&d.enabled){let p=f.getTotalSize();d.lastSize=p;let v=f.options.horizontal?"width":"height";m.style[v]=`${p}px`}}})});return u.setOptions(c),Mu(()=>u._didMount(),[]),Mu(()=>(i(u),u._willUpdate())),Mu(()=>{l(u)}),u}function Du(e){return F_({observeElementRect:rH,observeElementOffset:sH,scrollToFn:iH,...e})}var A=O(U(),1),Fo=O(An(),1);var Ne=O(U(),1);function fH(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return Ne.useMemo(()=>(o)=>{t.forEach((n)=>n(o))},t)}var kr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function No(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Li(e){return"nodeType"in e}function lt(e){var t,a;if(!e)return window;if(No(e))return e;if(!Li(e))return window;return(t=(a=e.ownerDocument)==null?void 0:a.defaultView)!=null?t:window}function Ri(e){let{Document:t}=lt(e);return e instanceof t}function Tn(e){if(No(e))return!1;return e instanceof lt(e).HTMLElement}function Lu(e){return e instanceof lt(e).SVGElement}function Oo(e){if(!e)return document;if(No(e))return e.document;if(!Li(e))return document;if(Ri(e))return e;if(Tn(e)||Lu(e))return e.ownerDocument;return document}var Tt=kr?Ne.useLayoutEffect:Ne.useEffect;function zr(e){let t=Ne.useRef(e);return Tt(()=>{t.current=e}),Ne.useCallback(function(){for(var a=arguments.length,o=Array(a),n=0;n<a;n++)o[n]=arguments[n];return t.current==null?void 0:t.current(...o)},[])}function mH(){let e=Ne.useRef(null),t=Ne.useCallback((o,n)=>{e.current=setInterval(o,n)},[]),a=Ne.useCallback(()=>{if(e.current!==null)clearInterval(e.current),e.current=null},[]);return[t,a]}function xn(e,t){if(t===void 0)t=[e];let a=Ne.useRef(e);return Tt(()=>{if(a.current!==e)a.current=e},t),a}function Mn(e,t){let a=Ne.useRef();return Ne.useMemo(()=>{let o=e(a.current);return a.current=o,o},[...t])}function Ur(e){let t=zr(e),a=Ne.useRef(null),o=Ne.useCallback((n)=>{if(n!==a.current)t==null||t(n,a.current);a.current=n},[]);return[a,o]}function Fr(e){let t=Ne.useRef();return Ne.useEffect(()=>{t.current=e},[e]),t.current}var Eu={};function Ho(e,t){return Ne.useMemo(()=>{if(t)return t;let a=Eu[e]==null?0:Eu[e]+1;return Eu[e]=a,e+"-"+a},[e,t])}function dH(e){return function(t){for(var a=arguments.length,o=Array(a>1?a-1:0),n=1;n<a;n++)o[n-1]=arguments[n];return o.reduce((s,i)=>{let l=Object.entries(i);for(let[c,u]of l){let f=s[c];if(f!=null)s[c]=f+e*u}return s},{...t})}}var ko=dH(1),zo=dH(-1);function __(e){return"clientX"in e&&"clientY"in e}function Dn(e){if(!e)return!1;let{KeyboardEvent:t}=lt(e.target);return t&&e instanceof t}function P_(e){if(!e)return!1;let{TouchEvent:t}=lt(e.target);return t&&e instanceof t}function En(e){if(P_(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:a}=e.touches[0];return{x:t,y:a}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:a}=e.changedTouches[0];return{x:t,y:a}}}if(__(e))return{x:e.clientX,y:e.clientY};return null}var Qt=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:a}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(a?Math.round(a):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:a}=e;return"scaleX("+t+") scaleY("+a+")"}},Transform:{toString(e){if(!e)return;return[Qt.Translate.toString(e),Qt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:a,easing:o}=e;return t+" "+a+"ms "+o}}}),uH="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pH(e){if(e.matches(uH))return e;return e.querySelector(uH)}var Uo=O(U(),1),G_={display:"none"};function hH(e){let{id:t,value:a}=e;return Uo.default.createElement("div",{id:t,style:G_},a)}function gH(e){let{id:t,announcement:a,ariaLiveType:o="assertive"}=e,n={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Uo.default.createElement("div",{id:t,style:n,role:"status","aria-live":o,"aria-atomic":!0},a)}function IH(){let[e,t]=Uo.useState("");return{announce:Uo.useCallback((o)=>{if(o!=null)t(o)},[]),announcement:e}}var EH=A.createContext(null);function V_(e){let t=A.useContext(EH);A.useEffect(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function q_(){let[e]=A.useState(()=>new Set),t=A.useCallback((o)=>(e.add(o),()=>e.delete(o)),[e]);return[A.useCallback((o)=>{let{type:n,event:s}=o;e.forEach((i)=>{var l;return(l=i[n])==null?void 0:l.call(i,s)})},[e]),t]}var Z_={draggable:`
|
|
10
10
|
To pick up a draggable item, press the space bar.
|
|
11
11
|
While dragging, use the arrow keys to move the item.
|
|
12
12
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
13
|
-
`},Z_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was moved over droppable area "+a.id+".";return"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was dropped over droppable area "+a.id;return"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function X_(e){let{announcements:t=Z_,container:a,hiddenTextDescribedById:o,screenReaderInstructions:n=q_}=e,{announce:s,announcement:i}=hH(),l=Ho("DndLiveRegion"),[c,u]=A.useState(!1);if(A.useEffect(()=>{u(!0)},[]),G_(A.useMemo(()=>({onDragStart(m){let{active:d}=m;s(t.onDragStart({active:d}))},onDragMove(m){let{active:d,over:p}=m;if(t.onDragMove)s(t.onDragMove({active:d,over:p}))},onDragOver(m){let{active:d,over:p}=m;s(t.onDragOver({active:d,over:p}))},onDragEnd(m){let{active:d,over:p}=m;s(t.onDragEnd({active:d,over:p}))},onDragCancel(m){let{active:d,over:p}=m;s(t.onDragCancel({active:d,over:p}))}}),[s,t])),!c)return null;let f=A.default.createElement(A.default.Fragment,null,A.default.createElement(dH,{id:o,value:n.draggable}),A.default.createElement(pH,{id:l,announcement:i}));return a?Fo.createPortal(f,a):f}var Ge;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ge||(Ge={}));function Bi(){}function Uu(e,t){return A.useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function DH(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return A.useMemo(()=>[...t].filter((o)=>o!=null),[...t])}var Wt=Object.freeze({x:0,y:0});function EH(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function j_(e,t){let a=En(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function LH(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function Y_(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function Ou(e){let{left:t,top:a,height:o,width:n}=e;return[{x:t,y:a},{x:t+n,y:a},{x:t,y:a+o},{x:t+n,y:a+o}]}function Fu(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}var RH=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,n=Ou(t),s=[];for(let i of o){let{id:l}=i,c=a.get(l);if(c){let u=Ou(c),f=n.reduce((d,p,v)=>d+EH(u[v],p),0),m=Number((f/4).toFixed(4));s.push({id:l,data:{droppableContainer:i,value:m}})}}return s.sort(LH)};function Q_(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),i=n-o,l=s-a;if(o<n&&a<s){let c=t.width*t.height,u=e.width*e.height,f=i*l,m=f/(c+u-f);return Number(m.toFixed(4))}return 0}var _u=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,n=[];for(let s of o){let{id:i}=s,l=a.get(i);if(l){let c=Q_(l,t);if(c>0)n.push({id:i,data:{droppableContainer:s,value:c}})}}return n.sort(Y_)};function W_(e,t){let{top:a,left:o,bottom:n,right:s}=t;return a<=e.y&&e.y<=n&&o<=e.x&&e.x<=s}var BH=(e)=>{let{droppableContainers:t,droppableRects:a,pointerCoordinates:o}=e;if(!o)return[];let n=[];for(let s of t){let{id:i}=s,l=a.get(i);if(l&&W_(o,l)){let u=Ou(l).reduce((m,d)=>m+EH(o,d),0),f=Number((u/4).toFixed(4));n.push({id:i,data:{droppableContainer:s,value:f}})}}return n.sort(LH)};function K_(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function NH(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wt}function J_(e){return function(a){for(var o=arguments.length,n=Array(o>1?o-1:0),s=1;s<o;s++)n[s-1]=arguments[s];return n.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...a})}}var $_=J_(1);function OH(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function e9(e,t,a){let o=OH(t);if(!o)return e;let{scaleX:n,scaleY:s,x:i,y:l}=o,c=e.left-i-(1-n)*parseFloat(a),u=e.top-l-(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),f=n?e.width/n:e.width,m=s?e.height/s:e.height;return{width:f,height:m,top:u,right:c+f,bottom:u+m,left:c}}var t9={ignoreTransform:!1};function _o(e,t){if(t===void 0)t=t9;let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:f}=lt(e).getComputedStyle(e);if(u)a=e9(a,u,f)}let{top:o,left:n,width:s,height:i,bottom:l,right:c}=a;return{top:o,left:n,width:s,height:i,bottom:l,right:c}}function gH(e){return _o(e,{ignoreTransform:!0})}function a9(e){let{innerWidth:t,innerHeight:a}=e;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function o9(e,t){if(t===void 0)t=lt(e).getComputedStyle(e);return t.position==="fixed"}function n9(e,t){if(t===void 0)t=lt(e).getComputedStyle(e);let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((n)=>{let s=t[n];return typeof s==="string"?a.test(s):!1})}function Gr(e,t){let a=[];function o(n){if(t!=null&&a.length>=t)return a;if(!n)return a;if(Li(n)&&n.scrollingElement!=null&&!a.includes(n.scrollingElement))return a.push(n.scrollingElement),a;if(!Tn(n)||Lu(n))return a;if(a.includes(n))return a;let s=lt(e).getComputedStyle(n);if(n!==e){if(n9(n,s))a.push(n)}if(o9(n,s))return a;return o(n.parentNode)}if(!e)return a;return o(e)}function HH(e){let[t]=Gr(e,1);return t!=null?t:null}function Ru(e){if(!kr||!e)return null;if(No(e))return e;if(!Ei(e))return null;if(Li(e)||e===Oo(e).scrollingElement)return window;if(Tn(e))return e;return null}function kH(e){if(No(e))return e.scrollX;return e.scrollLeft}function zH(e){if(No(e))return e.scrollY;return e.scrollTop}function Hu(e){return{x:kH(e),y:zH(e)}}var Ye;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ye||(Ye={}));function UH(e){if(!kr||!e)return!1;return e===document.scrollingElement}function FH(e){let t={x:0,y:0},a=UH(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},n=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:n,isLeft:s,isBottom:i,isRight:l,maxScroll:o,minScroll:t}}var r9={x:0.2,y:0.2};function s9(e,t,a,o,n){let{top:s,left:i,right:l,bottom:c}=a;if(o===void 0)o=10;if(n===void 0)n=r9;let{isTop:u,isBottom:f,isLeft:m,isRight:d}=FH(e),p={x:0,y:0},v={x:0,y:0},b={height:t.height*n.y,width:t.width*n.x};if(!u&&s<=t.top+b.height)p.y=Ye.Backward,v.y=o*Math.abs((t.top+b.height-s)/b.height);else if(!f&&c>=t.bottom-b.height)p.y=Ye.Forward,v.y=o*Math.abs((t.bottom-b.height-c)/b.height);if(!d&&l>=t.right-b.width)p.x=Ye.Forward,v.x=o*Math.abs((t.right-b.width-l)/b.width);else if(!m&&i<=t.left+b.width)p.x=Ye.Backward,v.x=o*Math.abs((t.left+b.width-i)/b.width);return{direction:p,speed:v}}function i9(e){if(e===document.scrollingElement){let{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}let{top:t,left:a,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function _H(e){return e.reduce((t,a)=>ko(t,Hu(a)),Wt)}function l9(e){return e.reduce((t,a)=>t+kH(a),0)}function c9(e){return e.reduce((t,a)=>t+zH(a),0)}function PH(e,t){if(t===void 0)t=_o;if(!e)return;let{top:a,left:o,bottom:n,right:s}=t(e);if(!HH(e))return;if(n<=0||s<=0||a>=window.innerHeight||o>=window.innerWidth)e.scrollIntoView({block:"center",inline:"center"})}var u9=[["x",["left","right"],l9],["y",["top","bottom"],c9]];class Oi{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let a=Gr(t),o=_H(a);this.rect={...e},this.width=e.width,this.height=e.height;for(let[n,s,i]of u9)for(let l of s)Object.defineProperty(this,l,{get:()=>{let c=i(a),u=o[n]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ln{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((t)=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...t)})},this.target=e}add(e,t,a){var o;(o=this.target)==null||o.addEventListener(e,t,a),this.listeners.push([e,t,a])}}function f9(e){let{EventTarget:t}=lt(e);return e instanceof t?e:Oo(e)}function Bu(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);if(typeof t==="number")return Math.sqrt(a**2+o**2)>t;if("x"in t&&"y"in t)return a>t.x&&o>t.y;if("x"in t)return a>t.x;if("y"in t)return o>t.y;return!1}var zt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(zt||(zt={}));function IH(e){e.preventDefault()}function m9(e){e.stopPropagation()}var V;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(V||(V={}));var GH={start:[V.Space,V.Enter],cancel:[V.Esc],end:[V.Space,V.Enter,V.Tab]},d9=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case V.Right:return{...a,x:a.x+25};case V.Left:return{...a,x:a.x-25};case V.Down:return{...a,y:a.y+25};case V.Up:return{...a,y:a.y-25}}return};class Vr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Ln(Oo(t)),this.windowListeners=new Ln(lt(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zt.Resize,this.handleCancel),this.windowListeners.add(zt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,a=e.node.current;if(a)PH(a);t(Wt)}handleKeyDown(e){if(Dn(e)){let{active:t,context:a,options:o}=this.props,{keyboardCodes:n=GH,coordinateGetter:s=d9,scrollBehavior:i="smooth"}=o,{code:l}=e;if(n.end.includes(l)){this.handleEnd(e);return}if(n.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:c}=a.current,u=c?{x:c.left,y:c.top}:Wt;if(!this.referenceCoordinates)this.referenceCoordinates=u;let f=s(e,{active:t,context:a.current,currentCoordinates:u});if(f){let m=zo(f,u),d={x:0,y:0},{scrollableAncestors:p}=a.current;for(let v of p){let b=e.code,{isTop:C,isRight:g,isLeft:I,isBottom:S,maxScroll:y,minScroll:w}=FH(v),T=i9(v),x={x:Math.min(b===V.Right?T.right-T.width/2:T.right,Math.max(b===V.Right?T.left:T.left+T.width/2,f.x)),y:Math.min(b===V.Down?T.bottom-T.height/2:T.bottom,Math.max(b===V.Down?T.top:T.top+T.height/2,f.y))},E=b===V.Right&&!g||b===V.Left&&!I,L=b===V.Down&&!S||b===V.Up&&!C;if(E&&x.x!==f.x){let D=v.scrollLeft+m.x,N=b===V.Right&&D<=y.x||b===V.Left&&D>=w.x;if(N&&!m.y){v.scrollTo({left:D,behavior:i});return}if(N)d.x=v.scrollLeft-D;else d.x=b===V.Right?v.scrollLeft-y.x:v.scrollLeft-w.x;if(d.x)v.scrollBy({left:-d.x,behavior:i});break}else if(L&&x.y!==f.y){let D=v.scrollTop+m.y,N=b===V.Down&&D<=y.y||b===V.Up&&D>=w.y;if(N&&!m.x){v.scrollTo({top:D,behavior:i});return}if(N)d.y=v.scrollTop-D;else d.y=b===V.Down?v.scrollTop-y.y:v.scrollTop-w.y;if(d.y)v.scrollBy({top:-d.y,behavior:i});break}}this.handleMove(e,ko(zo(f,this.referenceCoordinates),d))}}}handleMove(e,t){let{onMove:a}=this.props;e.preventDefault(),a(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Vr.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=GH,onActivation:n}=t,{active:s}=a,{code:i}=e.nativeEvent;if(o.start.includes(i)){let l=s.activatorNode.current;if(l&&e.target!==l)return!1;return e.preventDefault(),n==null||n({event:e.nativeEvent}),!0}return!1}}];function SH(e){return Boolean(e&&"distance"in e)}function vH(e){return Boolean(e&&"delay"in e)}class Hi{constructor(e,t,a){var o;if(a===void 0)a=f9(e.event.target);this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:n}=e,{target:s}=n;this.props=e,this.events=t,this.document=Oo(s),this.documentListeners=new Ln(this.document),this.listeners=new Ln(a),this.windowListeners=new Ln(lt(s)),this.initialCoordinates=(o=En(n))!=null?o:Wt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:a}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel)this.listeners.add(e.cancel.name,this.handleCancel);if(this.windowListeners.add(zt.Resize,this.handleCancel),this.windowListeners.add(zt.DragStart,IH),this.windowListeners.add(zt.VisibilityChange,this.handleCancel),this.windowListeners.add(zt.ContextMenu,IH),this.documentListeners.add(zt.Keydown,this.handleKeydown),t){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(vH(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(SH(t)){this.handlePending(t);return}}this.handleStart()}detach(){if(this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null)clearTimeout(this.timeoutId),this.timeoutId=null}handlePending(e,t){let{active:a,onPending:o}=this.props;o(a,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;if(e)this.activated=!0,this.documentListeners.add(zt.Click,m9,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zt.SelectionChange,this.removeTextSelection),t(e)}handleMove(e){var t;let{activated:a,initialCoordinates:o,props:n}=this,{onMove:s,options:{activationConstraint:i}}=n;if(!o)return;let l=(t=En(e))!=null?t:Wt,c=zo(o,l);if(!a&&i){if(SH(i)){if(i.tolerance!=null&&Bu(c,i.tolerance))return this.handleCancel();if(Bu(c,i.distance))return this.handleStart()}if(vH(i)){if(Bu(c,i.tolerance))return this.handleCancel()}this.handlePending(i,c);return}if(e.cancelable)e.preventDefault();s(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleKeydown(e){if(e.code===V.Esc)this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}var p9={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class qr extends Hi{constructor(e){let{event:t}=e,a=Oo(t.target);super(e,p9,a)}}qr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(!a.isPrimary||a.button!==0)return!1;return o==null||o({event:a}),!0}}];var h9={move:{name:"mousemove"},end:{name:"mouseup"}},ku;(function(e){e[e.RightClick=2]="RightClick"})(ku||(ku={}));class VH extends Hi{constructor(e){super(e,h9,Oo(e.event.target))}}VH.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(a.button===ku.RightClick)return!1;return o==null||o({event:a}),!0}}];var Nu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class qH extends Hi{constructor(e){super(e,Nu)}static setup(){return window.addEventListener(Nu.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Nu.move.name,e)};function e(){}}}qH.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:n}=a;if(n.length>1)return!1;return o==null||o({event:a}),!0}}];var _r;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_r||(_r={}));var Ni;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ni||(Ni={}));function g9(e){let{acceleration:t,activator:a=_r.Pointer,canScroll:o,draggingRect:n,enabled:s,interval:i=5,order:l=Ni.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:f,delta:m,threshold:d}=e,p=S9({delta:m,disabled:!s}),[v,b]=uH(),C=A.useRef({x:0,y:0}),g=A.useRef({x:0,y:0}),I=A.useMemo(()=>{switch(a){case _r.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case _r.DraggableRect:return n}},[a,n,c]),S=A.useRef(null),y=A.useCallback(()=>{let T=S.current;if(!T)return;let x=C.current.x*g.current.x,E=C.current.y*g.current.y;T.scrollBy(x,E)},[]),w=A.useMemo(()=>l===Ni.TreeOrder?[...u].reverse():u,[l,u]);A.useEffect(()=>{if(!s||!u.length||!I){b();return}for(let T of w){if((o==null?void 0:o(T))===!1)continue;let x=u.indexOf(T),E=f[x];if(!E)continue;let{direction:L,speed:D}=s9(T,E,I,t,d);for(let N of["x","y"])if(!p[N][L[N]])D[N]=0,L[N]=0;if(D.x>0||D.y>0){b(),S.current=T,v(y,i),C.current=D,g.current=L;return}}C.current={x:0,y:0},g.current={x:0,y:0},b()},[t,y,o,b,s,i,JSON.stringify(I),JSON.stringify(p),v,u,w,f,JSON.stringify(d)])}var I9={x:{[Ye.Backward]:!1,[Ye.Forward]:!1},y:{[Ye.Backward]:!1,[Ye.Forward]:!1}};function S9(e){let{delta:t,disabled:a}=e,o=Fr(t);return Mn((n)=>{if(a||!o||!n)return I9;let s={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Ye.Backward]:n.x[Ye.Backward]||s.x===-1,[Ye.Forward]:n.x[Ye.Forward]||s.x===1},y:{[Ye.Backward]:n.y[Ye.Backward]||s.y===-1,[Ye.Forward]:n.y[Ye.Forward]||s.y===1}}},[a,t,o])}function v9(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return Mn((n)=>{var s;if(t==null)return null;return(s=o!=null?o:n)!=null?s:null},[o,t])}function y9(e,t){return A.useMemo(()=>e.reduce((a,o)=>{let{sensor:n}=o,s=n.activators.map((i)=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...a,...s]},[]),[e,t])}var Pr;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Pr||(Pr={}));var zu;(function(e){e.Optimized="optimized"})(zu||(zu={}));var yH=new Map;function b9(e,t){let{dragging:a,dependencies:o,config:n}=t,[s,i]=A.useState(null),{frequency:l,measure:c,strategy:u}=n,f=A.useRef(e),m=C(),d=xn(m),p=A.useCallback(function(g){if(g===void 0)g=[];if(d.current)return;i((I)=>{if(I===null)return g;return I.concat(g.filter((S)=>!I.includes(S)))})},[d]),v=A.useRef(null),b=Mn((g)=>{if(m&&!a)return yH;if(!g||g===yH||f.current!==e||s!=null){let I=new Map;for(let S of e){if(!S)continue;if(s&&s.length>0&&!s.includes(S.id)&&S.rect.current){I.set(S.id,S.rect.current);continue}let y=S.node.current,w=y?new Oi(c(y),y):null;if(S.rect.current=w,w)I.set(S.id,w)}return I}return g},[e,s,a,m,c]);return A.useEffect(()=>{f.current=e},[e]),A.useEffect(()=>{if(m)return;p()},[a,m]),A.useEffect(()=>{if(s&&s.length>0)i(null)},[JSON.stringify(s)]),A.useEffect(()=>{if(m||typeof l!=="number"||v.current!==null)return;v.current=setTimeout(()=>{p(),v.current=null},l)},[l,m,p,...o]),{droppableRects:b,measureDroppableContainers:p,measuringScheduled:s!=null};function C(){switch(u){case Pr.Always:return!1;case Pr.BeforeDragging:return a;default:return!a}}}function Pu(e,t){return Mn((a)=>{if(!e)return null;if(a)return a;return typeof t==="function"?t(e):e},[t,e])}function C9(e,t){return Pu(e,t)}function w9(e){let{callback:t,disabled:a}=e,o=zr(t),n=A.useMemo(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:s}=window;return new s(o)},[o,a]);return A.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function ki(e){let{callback:t,disabled:a}=e,o=zr(t),n=A.useMemo(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:s}=window;return new s(o)},[a]);return A.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function A9(e){return new Oi(_o(e),e)}function bH(e,t,a){if(t===void 0)t=A9;let[o,n]=A.useState(null);function s(){n((c)=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c!=null?c:a)!=null?u:null}let f=t(e);if(JSON.stringify(c)===JSON.stringify(f))return c;return f})}let i=w9({callback(c){if(!e)return;for(let u of c){let{type:f,target:m}=u;if(f==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),l=ki({callback:s});return Tt(()=>{if(s(),e)l==null||l.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0});else l==null||l.disconnect(),i==null||i.disconnect()},[e]),o}function T9(e){let t=Pu(e);return NH(e,t)}var CH=[];function x9(e){let t=A.useRef(e),a=Mn((o)=>{if(!e)return CH;if(o&&o!==CH&&e&&t.current&&e.parentNode===t.current.parentNode)return o;return Gr(e)},[e]);return A.useEffect(()=>{t.current=e},[e]),a}function M9(e){let[t,a]=A.useState(null),o=A.useRef(e),n=A.useCallback((s)=>{let i=Ru(s.target);if(!i)return;a((l)=>{if(!l)return null;return l.set(i,Hu(i)),new Map(l)})},[]);return A.useEffect(()=>{let s=o.current;if(e!==s){i(s);let l=e.map((c)=>{let u=Ru(c);if(u)return u.addEventListener("scroll",n,{passive:!0}),[u,Hu(u)];return null}).filter((c)=>c!=null);a(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(s)};function i(l){l.forEach((c)=>{let u=Ru(c);u==null||u.removeEventListener("scroll",n)})}},[n,e]),A.useMemo(()=>{if(e.length)return t?Array.from(t.values()).reduce((s,i)=>ko(s,i),Wt):_H(e);return Wt},[e,t])}function wH(e,t){if(t===void 0)t=[];let a=A.useRef(null);return A.useEffect(()=>{a.current=null},t),A.useEffect(()=>{let o=e!==Wt;if(o&&!a.current)a.current=e;if(!o&&a.current)a.current=null},[e]),a.current?zo(e,a.current):Wt}function D9(e){A.useEffect(()=>{if(!kr)return;let t=e.map((a)=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a==null||a()}},e.map((t)=>{let{sensor:a}=t;return a}))}function E9(e,t){return A.useMemo(()=>e.reduce((a,o)=>{let{eventName:n,handler:s}=o;return a[n]=(i)=>{s(i,t)},a},{}),[e,t])}function ZH(e){return A.useMemo(()=>e?a9(e):null,[e])}var AH=[];function L9(e,t){if(t===void 0)t=_o;let[a]=e,o=ZH(a?lt(a):null),[n,s]=A.useState(AH);function i(){s(()=>{if(!e.length)return AH;return e.map((c)=>UH(c)?o:new Oi(t(c),c))})}let l=ki({callback:i});return Tt(()=>{l==null||l.disconnect(),i(),e.forEach((c)=>l==null?void 0:l.observe(c))},[e]),n}function XH(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Tn(t)?t:e}function R9(e){let{measure:t}=e,[a,o]=A.useState(null),n=A.useCallback((u)=>{for(let{target:f}of u)if(Tn(f)){o((m)=>{let d=t(f);return m?{...m,width:d.width,height:d.height}:d});break}},[t]),s=ki({callback:n}),i=A.useCallback((u)=>{let f=XH(u);if(s==null||s.disconnect(),f)s==null||s.observe(f);o(f?t(f):null)},[t,s]),[l,c]=Ur(i);return A.useMemo(()=>({nodeRef:l,rect:a,setRef:c}),[a,l,c])}var B9=[{sensor:qr,options:{}},{sensor:Vr,options:{}}],N9={current:{}},Ri={draggable:{measure:gH},droppable:{measure:gH,strategy:Pr.WhileDragging,frequency:zu.Optimized},dragOverlay:{measure:_o}};class Rn extends Map{get(e){var t;return e!=null?(t=super.get(e))!=null?t:void 0:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e)=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,a;return(t=(a=this.get(e))==null?void 0:a.node.current)!=null?t:void 0}}var O9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bi},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ri,measureDroppableContainers:Bi,windowRect:null,measuringScheduled:!1},jH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bi,draggableNodes:new Map,over:null,measureDroppableContainers:Bi},Zr=A.createContext(jH),YH=A.createContext(O9);function H9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rn}}}function k9(e,t){switch(t.type){case Ge.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ge.DragMove:if(e.draggable.active==null)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ge.DragEnd:case Ge.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ge.RegisterDroppable:{let{element:a}=t,{id:o}=a,n=new Rn(e.droppable.containers);return n.set(o,a),{...e,droppable:{...e.droppable,containers:n}}}case Ge.SetDroppableDisabled:{let{id:a,key:o,disabled:n}=t,s=e.droppable.containers.get(a);if(!s||o!==s.key)return e;let i=new Rn(e.droppable.containers);return i.set(a,{...s,disabled:n}),{...e,droppable:{...e.droppable,containers:i}}}case Ge.UnregisterDroppable:{let{id:a,key:o}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let s=new Rn(e.droppable.containers);return s.delete(a),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function z9(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:n}=A.useContext(Zr),s=Fr(o),i=Fr(a==null?void 0:a.id);return A.useEffect(()=>{if(t)return;if(!o&&s&&i!=null){if(!Dn(s))return;if(document.activeElement===s.target)return;let l=n.get(i);if(!l)return;let{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let f of[c.current,u.current]){if(!f)continue;let m=mH(f);if(m){m.focus();break}}})}},[o,t,n,i,s]),null}function QH(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((n,s)=>s({transform:n,...o}),a):a}function U9(e){return A.useMemo(()=>({draggable:{...Ri.draggable,...e==null?void 0:e.draggable},droppable:{...Ri.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ri.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function F9(e){let{activeNode:t,measure:a,initialRect:o,config:n=!0}=e,s=A.useRef(!1),{x:i,y:l}=typeof n==="boolean"?{x:n,y:n}:n;Tt(()=>{if(!i&&!l||!t){s.current=!1;return}if(s.current||!o)return;let u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;let f=a(u),m=NH(f,o);if(!i)m.x=0;if(!l)m.y=0;if(s.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){let d=HH(u);if(d)d.scrollBy({top:m.y,left:m.x})}},[t,i,l,o,a])}var zi=A.createContext({...Wt,scaleX:1,scaleY:1}),Ka;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ka||(Ka={}));var WH=A.memo(function(t){var a,o,n,s;let{id:i,accessibility:l,autoScroll:c=!0,children:u,sensors:f=B9,collisionDetection:m=_u,measuring:d,modifiers:p,...v}=t,b=A.useReducer(k9,void 0,H9),[C,g]=b,[I,S]=V_(),[y,w]=A.useState(Ka.Uninitialized),T=y===Ka.Initialized,{draggable:{active:x,nodes:E,translate:L},droppable:{containers:D}}=C,N=x!=null?E.get(x):null,oe=A.useRef({initial:null,translated:null}),ne=A.useMemo(()=>{var it;return x!=null?{id:x,data:(it=N==null?void 0:N.data)!=null?it:N9,rect:oe}:null},[x,N]),ie=A.useRef(null),[de,Xe]=A.useState(null),[pe,je]=A.useState(null),B=xn(v,Object.values(v)),k=Ho("DndDescribedBy",i),G=A.useMemo(()=>D.getEnabled(),[D]),Q=U9(d),{droppableRects:$e,measureDroppableContainers:ut,measuringScheduled:Sa}=b9(G,{dragging:T,dependencies:[L.x,L.y],config:Q.droppable}),et=v9(E,x),pn=A.useMemo(()=>pe?En(pe):null,[pe]),qa=$7(),va=C9(et,Q.draggable.measure);F9({activeNode:x!=null?E.get(x):null,config:qa.layoutShiftCompensation,initialRect:va,measure:Q.draggable.measure});let ee=bH(et,Q.draggable.measure,va),Tr=bH(et?et.parentElement:null),na=A.useRef({activatorEvent:null,active:null,activeNode:et,collisionRect:null,collisions:null,droppableRects:$e,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),hn=D.getNodeFor((a=na.current.over)==null?void 0:a.id),ya=R9({measure:Q.dragOverlay.measure}),gn=(o=ya.nodeRef.current)!=null?o:et,In=T?(n=ya.rect)!=null?n:ee:null,zd=Boolean(ya.nodeRef.current&&ya.rect),Ud=T9(zd?null:ee),xc=ZH(gn?lt(gn):null),Za=x9(T?hn!=null?hn:et:null),oi=L9(Za),ni=QH(p,{transform:{x:L.x-Ud.x,y:L.y-Ud.y,scaleX:1,scaleY:1},activatorEvent:pe,active:ne,activeNodeRect:ee,containerNodeRect:Tr,draggingNodeRect:In,over:na.current.over,overlayNodeRect:ya.rect,scrollableAncestors:Za,scrollableAncestorRects:oi,windowRect:xc}),Fd=pn?ko(pn,L):null,_d=M9(Za),X7=wH(_d),j7=wH(_d,[ee]),Sn=ko(ni,X7),vn=In?$_(In,ni):null,xr=ne&&vn?m({active:ne,collisionRect:vn,droppableRects:$e,droppableContainers:G,pointerCoordinates:Fd}):null,Pd=Fu(xr,"id"),[Xa,Gd]=A.useState(null),Y7=zd?ni:ko(ni,j7),Q7=K_(Y7,(s=Xa==null?void 0:Xa.rect)!=null?s:null,ee),Mc=A.useRef(null),Vd=A.useCallback((it,Ct)=>{let{sensor:wt,options:ja}=Ct;if(ie.current==null)return;let kt=E.get(ie.current);if(!kt)return;let At=it.nativeEvent,ra=new wt({active:ie.current,activeNode:kt,event:At,options:ja,context:na,onAbort(tt){if(!E.get(tt))return;let{onDragAbort:sa}=B.current,ba={id:tt};sa==null||sa(ba),I({type:"onDragAbort",event:ba})},onPending(tt,Ya,sa,ba){if(!E.get(tt))return;let{onDragPending:Dr}=B.current,Qa={id:tt,constraint:Ya,initialCoordinates:sa,offset:ba};Dr==null||Dr(Qa),I({type:"onDragPending",event:Qa})},onStart(tt){let Ya=ie.current;if(Ya==null)return;let sa=E.get(Ya);if(!sa)return;let{onDragStart:ba}=B.current,Mr={activatorEvent:At,active:{id:Ya,data:sa.data,rect:oe}};Fo.unstable_batchedUpdates(()=>{ba==null||ba(Mr),w(Ka.Initializing),g({type:Ge.DragStart,initialCoordinates:tt,active:Ya}),I({type:"onDragStart",event:Mr}),Xe(Mc.current),je(At)})},onMove(tt){g({type:Ge.DragMove,coordinates:tt})},onEnd:yn(Ge.DragEnd),onCancel:yn(Ge.DragCancel)});Mc.current=ra;function yn(tt){return async function(){let{active:sa,collisions:ba,over:Mr,scrollAdjustedTranslate:Dr}=na.current,Qa=null;if(sa&&Dr){let{cancelDrop:Er}=B.current;if(Qa={activatorEvent:At,active:sa,collisions:ba,delta:Dr,over:Mr},tt===Ge.DragEnd&&typeof Er==="function"){if(await Promise.resolve(Er(Qa)))tt=Ge.DragCancel}}ie.current=null,Fo.unstable_batchedUpdates(()=>{g({type:tt}),w(Ka.Uninitialized),Gd(null),Xe(null),je(null),Mc.current=null;let Er=tt===Ge.DragEnd?"onDragEnd":"onDragCancel";if(Qa){let Dc=B.current[Er];Dc==null||Dc(Qa),I({type:Er,event:Qa})}})}}},[E]),W7=A.useCallback((it,Ct)=>(wt,ja)=>{let kt=wt.nativeEvent,At=E.get(ja);if(ie.current!==null||!At||kt.dndKit||kt.defaultPrevented)return;let ra={active:At};if(it(wt,Ct.options,ra)===!0)kt.dndKit={capturedBy:Ct.sensor},ie.current=ja,Vd(wt,Ct)},[E,Vd]),qd=y9(f,W7);D9(f),Tt(()=>{if(ee&&y===Ka.Initializing)w(Ka.Initialized)},[ee,y]),A.useEffect(()=>{let{onDragMove:it}=B.current,{active:Ct,activatorEvent:wt,collisions:ja,over:kt}=na.current;if(!Ct||!wt)return;let At={active:Ct,activatorEvent:wt,collisions:ja,delta:{x:Sn.x,y:Sn.y},over:kt};Fo.unstable_batchedUpdates(()=>{it==null||it(At),I({type:"onDragMove",event:At})})},[Sn.x,Sn.y]),A.useEffect(()=>{let{active:it,activatorEvent:Ct,collisions:wt,droppableContainers:ja,scrollAdjustedTranslate:kt}=na.current;if(!it||ie.current==null||!Ct||!kt)return;let{onDragOver:At}=B.current,ra=ja.get(Pd),yn=ra&&ra.rect.current?{id:ra.id,rect:ra.rect.current,data:ra.data,disabled:ra.disabled}:null,tt={active:it,activatorEvent:Ct,collisions:wt,delta:{x:kt.x,y:kt.y},over:yn};Fo.unstable_batchedUpdates(()=>{Gd(yn),At==null||At(tt),I({type:"onDragOver",event:tt})})},[Pd]),Tt(()=>{na.current={activatorEvent:pe,active:ne,activeNode:et,collisionRect:vn,collisions:xr,droppableRects:$e,draggableNodes:E,draggingNode:gn,draggingNodeRect:In,droppableContainers:D,over:Xa,scrollableAncestors:Za,scrollAdjustedTranslate:Sn},oe.current={initial:In,translated:vn}},[ne,et,xr,vn,E,gn,In,$e,D,Xa,Za,Sn]),g9({...qa,delta:L,draggingRect:vn,pointerCoordinates:Fd,scrollableAncestors:Za,scrollableAncestorRects:oi});let K7=A.useMemo(()=>({active:ne,activeNode:et,activeNodeRect:ee,activatorEvent:pe,collisions:xr,containerNodeRect:Tr,dragOverlay:ya,draggableNodes:E,droppableContainers:D,droppableRects:$e,over:Xa,measureDroppableContainers:ut,scrollableAncestors:Za,scrollableAncestorRects:oi,measuringConfiguration:Q,measuringScheduled:Sa,windowRect:xc}),[ne,et,ee,pe,xr,Tr,ya,E,D,$e,Xa,ut,Za,oi,Q,Sa,xc]),J7=A.useMemo(()=>({activatorEvent:pe,activators:qd,active:ne,activeNodeRect:ee,ariaDescribedById:{draggable:k},dispatch:g,draggableNodes:E,over:Xa,measureDroppableContainers:ut}),[pe,qd,ne,ee,g,k,E,Xa,ut]);return A.default.createElement(MH.Provider,{value:S},A.default.createElement(Zr.Provider,{value:J7},A.default.createElement(YH.Provider,{value:K7},A.default.createElement(zi.Provider,{value:Q7},u)),A.default.createElement(z9,{disabled:(l==null?void 0:l.restoreFocus)===!1})),A.default.createElement(X_,{...l,hiddenTextDescribedById:k}));function $7(){let it=(de==null?void 0:de.autoScrollEnabled)===!1,Ct=typeof c==="object"?c.enabled===!1:c===!1,wt=T&&!it&&!Ct;if(typeof c==="object")return{...c,enabled:wt};return{enabled:wt}}}),_9=A.createContext(null),TH="button",P9="Draggable";function KH(e){let{id:t,data:a,disabled:o=!1,attributes:n}=e,s=Ho(P9),{activators:i,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:f,draggableNodes:m,over:d}=A.useContext(Zr),{role:p=TH,roleDescription:v="draggable",tabIndex:b=0}=n!=null?n:{},C=(c==null?void 0:c.id)===t,g=A.useContext(C?zi:_9),[I,S]=Ur(),[y,w]=Ur(),T=E9(i,t),x=xn(a);Tt(()=>(m.set(t,{id:t,key:s,node:I,activatorNode:y,data:x}),()=>{let L=m.get(t);if(L&&L.key===s)m.delete(t)}),[m,t]);let E=A.useMemo(()=>({role:p,tabIndex:b,"aria-disabled":o,"aria-pressed":C&&p===TH?!0:void 0,"aria-roledescription":v,"aria-describedby":f.draggable}),[o,p,b,C,v,f.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:E,isDragging:C,listeners:o?void 0:T,node:I,over:d,setNodeRef:S,setActivatorNodeRef:w,transform:g}}function Gu(){return A.useContext(YH)}var G9="Droppable",V9={timeout:25};function JH(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:n}=e,s=Ho(G9),{active:i,dispatch:l,over:c,measureDroppableContainers:u}=A.useContext(Zr),f=A.useRef({disabled:a}),m=A.useRef(!1),d=A.useRef(null),p=A.useRef(null),{disabled:v,updateMeasurementsFor:b,timeout:C}={...V9,...n},g=xn(b!=null?b:o),I=A.useCallback(()=>{if(!m.current){m.current=!0;return}if(p.current!=null)clearTimeout(p.current);p.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),p.current=null},C)},[C]),S=ki({callback:I,disabled:v||!i}),y=A.useCallback((E,L)=>{if(!S)return;if(L)S.unobserve(L),m.current=!1;if(E)S.observe(E)},[S]),[w,T]=Ur(y),x=xn(t);return A.useEffect(()=>{if(!S||!w.current)return;S.disconnect(),m.current=!1,S.observe(w.current)},[w,S]),A.useEffect(()=>(l({type:Ge.RegisterDroppable,element:{id:o,key:s,disabled:a,node:w,rect:d,data:x}}),()=>l({type:Ge.UnregisterDroppable,key:s,id:o})),[o]),A.useEffect(()=>{if(a!==f.current.disabled)l({type:Ge.SetDroppableDisabled,id:o,key:s,disabled:a}),f.current.disabled=a},[o,s,a,l]),{active:i,rect:d,isOver:(c==null?void 0:c.id)===o,node:w,over:c,setNodeRef:T}}function q9(e){let{animation:t,children:a}=e,[o,n]=A.useState(null),[s,i]=A.useState(null),l=Fr(a);if(!a&&!o&&l)n(l);return Tt(()=>{if(!s)return;let c=o==null?void 0:o.key,u=o==null?void 0:o.props.id;if(c==null||u==null){n(null);return}Promise.resolve(t(u,s)).then(()=>{n(null)})},[t,o,s]),A.default.createElement(A.default.Fragment,null,a,o?A.cloneElement(o,{ref:i}):null)}var Z9={x:0,y:0,scaleX:1,scaleY:1};function X9(e){let{children:t}=e;return A.default.createElement(Zr.Provider,{value:jH},A.default.createElement(zi.Provider,{value:Z9},t))}var j9={position:"fixed",touchAction:"none"},Y9=(e)=>Dn(e)?"transform 250ms ease":void 0,Q9=A.forwardRef((e,t)=>{let{as:a,activatorEvent:o,adjustScale:n,children:s,className:i,rect:l,style:c,transform:u,transition:f=Y9}=e;if(!l)return null;let m=n?u:{...u,scaleX:1,scaleY:1},d={...j9,width:l.width,height:l.height,top:l.top,left:l.left,transform:Qt.Transform.toString(m),transformOrigin:n&&o?j_(o,l):void 0,transition:typeof f==="function"?f(o):f,...c};return A.default.createElement(a,{className:i,style:d,ref:t},s)}),W9=(e)=>(t)=>{let{active:a,dragOverlay:o}=t,n={},{styles:s,className:i}=e;if(s!=null&&s.active)for(let[l,c]of Object.entries(s.active)){if(c===void 0)continue;n[l]=a.node.style.getPropertyValue(l),a.node.style.setProperty(l,c)}if(s!=null&&s.dragOverlay)for(let[l,c]of Object.entries(s.dragOverlay)){if(c===void 0)continue;o.node.style.setProperty(l,c)}if(i!=null&&i.active)a.node.classList.add(i.active);if(i!=null&&i.dragOverlay)o.node.classList.add(i.dragOverlay);return function(){for(let[c,u]of Object.entries(n))a.node.style.setProperty(c,u);if(i!=null&&i.active)a.node.classList.remove(i.active)}},K9=(e)=>{let{transform:{initial:t,final:a}}=e;return[{transform:Qt.Transform.toString(t)},{transform:Qt.Transform.toString(a)}]},J9={duration:250,easing:"ease",keyframes:K9,sideEffects:W9({styles:{active:{opacity:"0"}}})};function $9(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:n}=e;return zr((s,i)=>{if(t===null)return;let l=a.get(s);if(!l)return;let c=l.node.current;if(!c)return;let u=XH(i);if(!u)return;let{transform:f}=lt(i).getComputedStyle(i),m=OH(f);if(!m)return;let d=typeof t==="function"?t:eP(t);return PH(c,n.draggable.measure),d({active:{id:s,data:l.data,node:c,rect:n.draggable.measure(c)},draggableNodes:a,dragOverlay:{node:i,rect:n.dragOverlay.measure(u)},droppableContainers:o,measuringConfiguration:n,transform:m})})}function eP(e){let{duration:t,easing:a,sideEffects:o,keyframes:n}={...J9,...e};return(s)=>{let{active:i,dragOverlay:l,transform:c,...u}=s;if(!t)return;let f={x:l.rect.left-i.rect.left,y:l.rect.top-i.rect.top},m={scaleX:c.scaleX!==1?i.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?i.rect.height*c.scaleY/l.rect.height:1},d={x:c.x-f.x,y:c.y-f.y,...m},p=n({...u,active:i,dragOverlay:l,transform:{initial:c,final:d}}),[v]=p,b=p[p.length-1];if(JSON.stringify(v)===JSON.stringify(b))return;let C=o==null?void 0:o({active:i,dragOverlay:l,...u}),g=l.node.animate(p,{duration:t,easing:a,fill:"forwards"});return new Promise((I)=>{g.onfinish=()=>{C==null||C(),I()}})}}var xH=0;function tP(e){return A.useMemo(()=>{if(e==null)return;return xH++,xH},[e])}var $H=A.default.memo((e)=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:n,transition:s,modifiers:i,wrapperElement:l="div",className:c,zIndex:u=999}=e,{activatorEvent:f,active:m,activeNodeRect:d,containerNodeRect:p,draggableNodes:v,droppableContainers:b,dragOverlay:C,over:g,measuringConfiguration:I,scrollableAncestors:S,scrollableAncestorRects:y,windowRect:w}=Gu(),T=A.useContext(zi),x=tP(m==null?void 0:m.id),E=QH(i,{activatorEvent:f,active:m,activeNodeRect:d,containerNodeRect:p,draggingNodeRect:C.rect,over:g,overlayNodeRect:C.rect,scrollableAncestors:S,scrollableAncestorRects:y,transform:T,windowRect:w}),L=Pu(d),D=$9({config:o,draggableNodes:v,droppableContainers:b,measuringConfiguration:I}),N=L?C.setRef:void 0;return A.default.createElement(X9,null,A.default.createElement(q9,{animation:D},m&&x?A.default.createElement(Q9,{key:x,id:m.id,ref:N,as:l,activatorEvent:f,adjustScale:t,className:c,transition:s,rect:L,style:{zIndex:u,...n},transform:E},a):null))});function aP(e,t,a){let o={...e};if(t.top+e.y<=a.top)o.y=a.top-t.top;else if(t.bottom+e.y>=a.top+a.height)o.y=a.top+a.height-t.bottom;if(t.left+e.x<=a.left)o.x=a.left-t.left;else if(t.right+e.x>=a.left+a.width)o.x=a.left+a.width-t.right;return o}var ek=(e)=>{let{containerNodeRect:t,draggingNodeRect:a,transform:o}=e;if(!a||!t)return o;return aP(o,a,t)};var tk=(e)=>{let{transform:t}=e;return{...t,x:0}};var Oe=O(U(),1);function ak(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function oP(e,t){return e.reduce((a,o,n)=>{let s=t.get(o);if(s)a[n]=s;return a},Array(e.length))}function Ui(e){return e!==null&&e>=0}function nP(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function rP(e){if(typeof e==="boolean")return{draggable:e,droppable:e};return e}var ok=(e)=>{let{rects:t,activeIndex:a,overIndex:o,index:n}=e,s=ak(t,o,a),i=t[n],l=s[n];if(!l||!i)return null;return{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}};var Fi={scaleX:1,scaleY:1},nk=(e)=>{var t;let{activeIndex:a,activeNodeRect:o,index:n,rects:s,overIndex:i}=e,l=(t=s[a])!=null?t:o;if(!l)return null;if(n===a){let u=s[i];if(!u)return null;return{x:0,y:a<i?u.top+u.height-(l.top+l.height):u.top-l.top,...Fi}}let c=sP(s,n,a);if(n>a&&n<=i)return{x:0,y:-l.height-c,...Fi};if(n<a&&n>=i)return{x:0,y:l.height+c,...Fi};return{x:0,y:0,...Fi}};function sP(e,t,a){let o=e[t],n=e[t-1],s=e[t+1];if(!o)return 0;if(a<t)return n?o.top-(n.top+n.height):s?s.top-(o.top+o.height):0;return s?s.top-(o.top+o.height):n?o.top-(n.top+n.height):0}var rk="Sortable",sk=Oe.default.createContext({activeIndex:-1,containerId:rk,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ok,disabled:{draggable:!1,droppable:!1}});function ik(e){let{children:t,id:a,items:o,strategy:n=ok,disabled:s=!1}=e,{active:i,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:f}=Gu(),m=Ho(rk,a),d=Boolean(l.rect!==null),p=Oe.useMemo(()=>o.map((T)=>typeof T==="object"&&("id"in T)?T.id:T),[o]),v=i!=null,b=i?p.indexOf(i.id):-1,C=u?p.indexOf(u.id):-1,g=Oe.useRef(p),I=!nP(p,g.current),S=C!==-1&&b===-1||I,y=rP(s);Tt(()=>{if(I&&v)f(p)},[I,p,v,f]),Oe.useEffect(()=>{g.current=p},[p]);let w=Oe.useMemo(()=>({activeIndex:b,containerId:m,disabled:y,disableTransforms:S,items:p,overIndex:C,useDragOverlay:d,sortedRects:oP(p,c),strategy:n}),[b,m,y.draggable,y.droppable,S,p,C,c,d,n]);return Oe.default.createElement(sk.Provider,{value:w},t)}var iP=(e)=>{let{id:t,items:a,activeIndex:o,overIndex:n}=e;return ak(a,o,n).indexOf(t)},lP=(e)=>{let{containerId:t,isSorting:a,wasDragging:o,index:n,items:s,newIndex:i,previousItems:l,previousContainerId:c,transition:u}=e;if(!u||!o)return!1;if(l!==s&&n===i)return!1;if(a)return!0;return i!==n&&t===c},cP={duration:200,easing:"ease"},lk="transform",uP=Qt.Transition.toString({property:lk,duration:0,easing:"linear"}),fP={roleDescription:"sortable"};function mP(e){let{disabled:t,index:a,node:o,rect:n}=e,[s,i]=Oe.useState(null),l=Oe.useRef(a);return Tt(()=>{if(!t&&a!==l.current&&o.current){let c=n.current;if(c){let u=_o(o.current,{ignoreTransform:!0}),f={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};if(f.x||f.y)i(f)}}if(a!==l.current)l.current=a},[t,a,o,n]),Oe.useEffect(()=>{if(s)i(null)},[s]),s}function ck(e){let{animateLayoutChanges:t=lP,attributes:a,disabled:o,data:n,getNewIndex:s=iP,id:i,strategy:l,resizeObserverConfig:c,transition:u=cP}=e,{items:f,containerId:m,activeIndex:d,disabled:p,disableTransforms:v,sortedRects:b,overIndex:C,useDragOverlay:g,strategy:I}=Oe.useContext(sk),S=dP(o,p),y=f.indexOf(i),w=Oe.useMemo(()=>({sortable:{containerId:m,index:y,items:f},...n}),[m,n,y,f]),T=Oe.useMemo(()=>f.slice(f.indexOf(i)),[f,i]),{rect:x,node:E,isOver:L,setNodeRef:D}=JH({id:i,data:w,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...c}}),{active:N,activatorEvent:oe,activeNodeRect:ne,attributes:ie,setNodeRef:de,listeners:Xe,isDragging:pe,over:je,setActivatorNodeRef:B,transform:k}=KH({id:i,data:w,attributes:{...fP,...a},disabled:S.draggable}),G=cH(D,de),Q=Boolean(N),$e=Q&&!v&&Ui(d)&&Ui(C),ut=!g&&pe,Sa=ut&&$e?k:null,et=l!=null?l:I,pn=$e?Sa!=null?Sa:et({rects:b,activeNodeRect:ne,activeIndex:d,overIndex:C,index:y}):null,qa=Ui(d)&&Ui(C)?s({id:i,items:f,activeIndex:d,overIndex:C}):y,va=N==null?void 0:N.id,ee=Oe.useRef({activeId:va,items:f,newIndex:qa,containerId:m}),Tr=f!==ee.current.items,na=t({active:N,containerId:m,isDragging:pe,isSorting:Q,id:i,index:y,items:f,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:u,wasDragging:ee.current.activeId!=null}),hn=mP({disabled:!na,index:y,node:E,rect:x});return Oe.useEffect(()=>{if(Q&&ee.current.newIndex!==qa)ee.current.newIndex=qa;if(m!==ee.current.containerId)ee.current.containerId=m;if(f!==ee.current.items)ee.current.items=f},[Q,qa,m,f]),Oe.useEffect(()=>{if(va===ee.current.activeId)return;if(va!=null&&ee.current.activeId==null){ee.current.activeId=va;return}let gn=setTimeout(()=>{ee.current.activeId=va},50);return()=>clearTimeout(gn)},[va]),{active:N,activeIndex:d,attributes:ie,data:w,rect:x,index:y,newIndex:qa,items:f,isOver:L,isSorting:Q,isDragging:pe,listeners:Xe,node:E,overIndex:C,over:je,setNodeRef:G,setActivatorNodeRef:B,setDroppableNodeRef:D,setDraggableNodeRef:de,transform:hn!=null?hn:pn,transition:ya()};function ya(){if(hn||Tr&&ee.current.newIndex===y)return uP;if(ut&&!Dn(oe)||!u)return;if(Q||na)return Qt.Transition.toString({...u,property:lk});return}}function dP(e,t){var a,o;if(typeof e==="boolean")return{draggable:e,droppable:!1};return{draggable:(a=e==null?void 0:e.draggable)!=null?a:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}function _i(e){if(!e)return!1;let t=e.data.current;if(t&&"sortable"in t&&typeof t.sortable==="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)return!0;return!1}var pP=[V.Down,V.Right,V.Up,V.Left],uk=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:n,droppableContainers:s,over:i,scrollableAncestors:l}}=t;if(pP.includes(e.code)){if(e.preventDefault(),!a||!o)return;let c=[];s.getEnabled().forEach((m)=>{if(!m||m!=null&&m.disabled)return;let d=n.get(m.id);if(!d)return;switch(e.code){case V.Down:if(o.top<d.top)c.push(m);break;case V.Up:if(o.top>d.top)c.push(m);break;case V.Left:if(o.left>d.left)c.push(m);break;case V.Right:if(o.left<d.left)c.push(m);break}});let u=RH({active:a,collisionRect:o,droppableRects:n,droppableContainers:c,pointerCoordinates:null}),f=Fu(u,"id");if(f===(i==null?void 0:i.id)&&u.length>1)f=u[1].id;if(f!=null){let m=s.get(a.id),d=s.get(f),p=d?n.get(d.id):null,v=d==null?void 0:d.node.current;if(v&&p&&m&&d){let C=Gr(v).some((T,x)=>l[x]!==T),g=fk(m,d),I=hP(m,d),S=C||!g?{x:0,y:0}:{x:I?o.width-p.width:0,y:I?o.height-p.height:0},y={x:p.left,y:p.top};return S.x&&S.y?y:zo(y,S)}}}return};function fk(e,t){if(!_i(e)||!_i(t))return!1;return e.data.current.sortable.containerId===t.data.current.sortable.containerId}function hP(e,t){if(!_i(e)||!_i(t))return!1;if(!fk(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}var{min:Ja,max:Kt,round:jr,floor:Yr}=Math,ca=(e)=>({x:e,y:e}),gP={left:"right",right:"left",bottom:"top",top:"bottom"};function pk(e,t,a){return Kt(e,Ja(t,a))}function $a(e,t){return typeof e==="function"?e(t):e}function Ca(e){return e.split("-")[0]}function Bn(e){return e.split("-")[1]}function Gi(e){return e==="x"?"y":"x"}function Vu(e){return e==="y"?"height":"width"}function Jt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function qu(e){return Gi(Jt(e))}function hk(e,t,a){if(a===void 0)a=!1;let o=Bn(e),n=qu(e),s=Vu(n),i=n==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";if(t.reference[s]>t.floating[s])i=Xr(i);return[i,Xr(i)]}function gk(e){let t=Xr(e);return[Pi(e),t,Pi(t)]}function Pi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var mk=["left","right"],dk=["right","left"],IP=["top","bottom"],SP=["bottom","top"];function vP(e,t,a){switch(e){case"top":case"bottom":if(a)return t?dk:mk;return t?mk:dk;case"left":case"right":return t?IP:SP;default:return[]}}function Ik(e,t,a,o){let n=Bn(e),s=vP(Ca(e),a==="start",o);if(n){if(s=s.map((i)=>i+"-"+n),t)s=s.concat(s.map(Pi))}return s}function Xr(e){let t=Ca(e);return gP[t]+e.slice(t.length)}function yP(e){var t,a,o,n;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(n=e.left)!=null?n:0}}function Sk(e){return typeof e!=="number"?yP(e):{top:e,right:e,bottom:e,left:e}}function Po(e){let{x:t,y:a,width:o,height:n}=e;return{width:o,height:n,top:a,left:t,right:t+o,bottom:a+n,x:t,y:a}}function vk(e,t,a){let{reference:o,floating:n}=e,s=Jt(t),i=qu(t),l=Vu(i),c=Ca(t),u=s==="y",f=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,d=o[l]/2-n[l]/2,p;switch(c){case"top":p={x:f,y:o.y-n.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:m};break;case"left":p={x:o.x-n.width,y:m};break;default:p={x:o.x,y:o.y}}let v=Bn(t);if(v)p[i]+=d*(v==="end"?1:-1)*(a&&u?-1:1);return p}async function yk(e,t){var a;if(t===void 0)t={};let{x:o,y:n,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:d=!1,padding:p=0}=$a(t,e),v=Sk(p),C=l[d?m==="floating"?"reference":"floating":m],g=Po(await s.getClippingRect({element:((a=await(s.isElement==null?void 0:s.isElement(C)))!=null?a:!0)?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),I=m==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},w=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:S,strategy:c}):I);return{top:(g.top-w.top+v.top)/y.y,bottom:(w.bottom-g.bottom+v.bottom)/y.y,left:(g.left-w.left+v.left)/y.x,right:(w.right-g.right+v.right)/y.x}}var bP=50,bk=async(e,t,a)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=a,l=i.detectOverflow?i:{...i,detectOverflow:yk},c=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:m}=vk(u,o,c),d=o,p=0,v={};for(let b=0;b<s.length;b++){let C=s[b];if(!C)continue;let{name:g,fn:I}=C,{x:S,y,data:w,reset:T}=await I({x:f,y:m,initialPlacement:o,placement:d,strategy:n,middlewareData:v,rects:u,platform:l,elements:{reference:e,floating:t}});if(f=S!=null?S:f,m=y!=null?y:m,v[g]={...v[g],...w},T&&p<bP){if(p++,typeof T==="object"){if(T.placement)d=T.placement;if(T.rects)u=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):T.rects;({x:f,y:m}=vk(u,d,c))}b=-1}}return{x:f,y:m,placement:d,strategy:n,middlewareData:v}};var Ck=function(e){if(e===void 0)e={};return{name:"flip",options:e,async fn(t){var a,o;let{placement:n,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...C}=$a(e,t);if((a=s.arrow)!=null&&a.alignmentOffset)return{};let g=Ca(n),I=Jt(l),S=Ca(l)===l,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=d||(S||!b?[Xr(l)]:gk(l)),T=v!=="none";if(!d&&T)w.push(...Ik(l,b,v,y));let x=[l,...w],E=await c.detectOverflow(t,C),L=[],D=((o=s.flip)==null?void 0:o.overflows)||[];if(f)L.push(E[g]);if(m){let ie=hk(n,i,y);L.push(E[ie[0]],E[ie[1]])}if(D=[...D,{placement:n,overflows:L}],!L.every((ie)=>ie<=0)){var N,oe;let ie=(((N=s.flip)==null?void 0:N.index)||0)+1,de=x[ie];if(de){if(!(m==="alignment"?I!==Jt(de):!1)||D.every((je)=>Jt(je.placement)===I?je.overflows[0]>0:!0))return{data:{index:ie,overflows:D},reset:{placement:de}}}let Xe=(oe=D.filter((pe)=>pe.overflows[0]<=0).sort((pe,je)=>pe.overflows[1]-je.overflows[1])[0])==null?void 0:oe.placement;if(!Xe)switch(p){case"bestFit":{var ne;let pe=(ne=D.filter((je)=>{if(T){let B=Jt(je.placement);return B===I||B==="y"}return!0}).map((je)=>[je.placement,je.overflows.filter((B)=>B>0).reduce((B,k)=>B+k,0)]).sort((je,B)=>je[1]-B[1])[0])==null?void 0:ne[0];if(pe)Xe=pe;break}case"initialPlacement":Xe=l;break}if(n!==Xe)return{reset:{placement:Xe}}}return{}}}};var wk=new Set(["left","top"]);async function CP(e,t){let{placement:a,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Ca(a),l=Bn(a),c=Jt(a)==="y",u=wk.has(i)?-1:1,f=s&&c?-1:1,m=$a(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:v}=typeof m==="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};if(l&&typeof v==="number")p=l==="end"?v*-1:v;return c?{x:p*f,y:d*u}:{x:d*u,y:p*f}}var Ak=function(e){if(e===void 0)e=0;return{name:"offset",options:e,async fn(t){var a,o;let{x:n,y:s,placement:i,middlewareData:l}=t,c=await CP(t,e);if(i===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset)return{};return{x:n+c.x,y:s+c.y,data:{...c,placement:i}}}}},Tk=function(e){if(e===void 0)e={};return{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:(I)=>{let{x:S,y}=I;return{x:S,y}}},...u}=$a(e,t),f={x:a,y:o},m=await s.detectOverflow(t,u),d=Jt(n),p=Gi(d),v=f[p],b=f[d],C=(I,S)=>pk(S+m[I==="y"?"top":"left"],S,S-m[I==="y"?"bottom":"right"]);if(i)v=C(p,v);if(l)b=C(d,b);let g=c.fn({...t,[p]:v,[d]:b});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[p]:i,[d]:l}}}}}},xk=function(e){if(e===void 0)e={};return{options:e,fn(t){var a,o;let{x:n,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=$a(e,t),d={x:n,y:s},p=Jt(i),v=Gi(p),b=d[v],C=d[p],g=$a(u,t),I=typeof g==="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(f){let w=v==="y"?"height":"width",T=l.reference[v]-l.floating[w]+I.mainAxis,x=l.reference[v]+l.reference[w]-I.mainAxis;if(b<T)b=T;else if(b>x)b=x}if(m){var S,y;let w=v==="y"?"width":"height",T=wk.has(Ca(i)),x=l.reference[p]-l.floating[w]+(T?((S=c.offset)==null?void 0:S[p])||0:0)+(T?0:I.crossAxis),E=l.reference[p]+l.reference[w]+(T?0:((y=c.offset)==null?void 0:y[p])||0)-(T?I.crossAxis:0);if(C<x)C=x;else if(C>E)C=E}return{[v]:b,[p]:C}}}},Mk=function(e){if(e===void 0)e={};return{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:n,elements:s}=t,{apply:i=()=>{},...l}=$a(e,t),c=await n.detectOverflow(t,l),u=Ca(a),f=Bn(a),m=Jt(a)==="y",{width:d,height:p}=o.floating,v,b;if(u==="top"||u==="bottom")v=u,b=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right";else b=u,v=f==="end"?"top":"bottom";let C=p-c.top-c.bottom,g=d-c.left-c.right,I=Ja(p-c[v],C),S=Ja(d-c[b],g),y=t.middlewareData.shift,w=!y,T=I,x=S;if(y!=null&&y.enabled.x)x=g;if(y!=null&&y.enabled.y)T=C;if(w&&!f)if(m)x=d-2*Kt(c.left,c.right);else T=p-2*Kt(c.top,c.bottom);await i({...t,availableWidth:x,availableHeight:T});let E=await n.getDimensions(s.floating);if(d!==E.width||p!==E.height)return{reset:{rects:!0}};return{}}}};function Vi(){return typeof window<"u"}function qo(e){if(Ek(e))return(e.nodeName||"").toLowerCase();return"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(Ek(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ek(e){if(!Vi())return!1;return e instanceof Node||e instanceof dt(e).Node}function $t(e){if(!Vi())return!1;return e instanceof Element||e instanceof dt(e).Element}function wa(e){if(!Vi())return!1;return e instanceof HTMLElement||e instanceof dt(e).HTMLElement}function Dk(e){if(!Vi()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}function Qr(e){let{overflow:t,overflowX:a,overflowY:o,display:n}=ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&n!=="inline"&&n!=="contents"}function Lk(e){return/^(table|td|th)$/.test(qo(e))}function Wr(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var wP=/transform|translate|scale|rotate|perspective|filter/,AP=/paint|layout|strict|content/,Go=(e)=>!!e&&e!=="none",Zu;function qi(e){let t=$t(e)?ea(e):e;return Go(t.transform)||Go(t.translate)||Go(t.scale)||Go(t.rotate)||Go(t.perspective)||!Zi()&&(Go(t.backdropFilter)||Go(t.filter))||wP.test(t.willChange||"")||AP.test(t.contain||"")}function Rk(e){let t=eo(e);while(wa(t)&&!Nn(t)){if(qi(t))return t;else if(Wr(t))return null;t=eo(t)}return null}function Zi(){if(Zu==null)Zu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return Zu}function Nn(e){return/^(html|body|#document)$/.test(qo(e))}function ea(e){return dt(e).getComputedStyle(e)}function Kr(e){if($t(e))return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop};return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eo(e){if(qo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Dk(e)&&e.host||ua(e);return Dk(t)?t.host:t}function Bk(e){let t=eo(e);if(Nn(t))return(e.ownerDocument||e).body;if(wa(t)&&Qr(t))return t;return Bk(t)}function Vo(e,t,a){var o;if(t===void 0)t=[];if(a===void 0)a=!0;let n=Bk(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=dt(n);if(s){let l=Xi(i);return t.concat(i,i.visualViewport||[],Qr(n)?n:[],l&&a?Vo(l):[])}else return t.concat(n,Vo(n,[],a))}function Xi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hk(e){let t=ea(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=wa(e),s=n?e.offsetWidth:a,i=n?e.offsetHeight:o,l=jr(a)!==s||jr(o)!==i;if(l)a=s,o=i;return{width:a,height:o,$:l}}function ju(e){return!$t(e)?e.contextElement:e}function On(e){let t=ju(e);if(!wa(t))return ca(1);let a=t.getBoundingClientRect(),{width:o,height:n,$:s}=Hk(t),i=(s?jr(a.width):a.width)/o,l=(s?jr(a.height):a.height)/n;if(!i||!Number.isFinite(i))i=1;if(!l||!Number.isFinite(l))l=1;return{x:i,y:l}}var TP=ca(0);function kk(e){let t=dt(e);if(!Zi()||!t.visualViewport)return TP;return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xP(e,t,a){if(t===void 0)t=!1;return!!a&&t&&a===dt(e)}function Zo(e,t,a,o){if(t===void 0)t=!1;if(a===void 0)a=!1;let n=e.getBoundingClientRect(),s=ju(e),i=ca(1);if(t)if(o){if($t(o))i=On(o)}else i=On(e);let l=xP(s,a,o)?kk(s):ca(0),c=(n.left+l.x)/i.x,u=(n.top+l.y)/i.y,f=n.width/i.x,m=n.height/i.y;if(s&&o){let d=dt(s),p=$t(o)?dt(o):o,v=d,b=Xi(v);while(b&&p!==v){let C=On(b),g=b.getBoundingClientRect(),I=ea(b),S=g.left+(b.clientLeft+parseFloat(I.paddingLeft))*C.x,y=g.top+(b.clientTop+parseFloat(I.paddingTop))*C.y;c*=C.x,u*=C.y,f*=C.x,m*=C.y,c+=S,u+=y,v=dt(b),b=Xi(v)}}return Po({width:f,height:m,x:c,y:u})}function ji(e,t){let a=Kr(e).scrollLeft;if(!t)return Zo(ua(e)).left+a;return t.left+a}function zk(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-ji(e,a),n=a.top+t.scrollTop;return{x:o,y:n}}function MP(e){let{elements:t,rect:a,offsetParent:o,strategy:n}=e,s=n==="fixed",i=ua(o),l=t?Wr(t.floating):!1;if(o===i||l&&s)return a;let c={scrollLeft:0,scrollTop:0},u=ca(1),f=ca(0),m=wa(o);if(m||!s){if(qo(o)!=="body"||Qr(i))c=Kr(o);if(m){let p=Zo(o);u=On(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}}let d=i&&!m&&!s?zk(i,c):ca(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:a.y*u.y-c.scrollTop*u.y+f.y+d.y}}function DP(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function EP(e){let t=Kr(e),a=e.ownerDocument.body,o=Kt(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),n=Kt(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),s=-t.scrollLeft+ji(e),i=-t.scrollTop;if(ea(a).direction==="rtl")s+=Kt(e.clientWidth,a.clientWidth)-o;return{width:o,height:n,x:s,y:i}}var LP=25;function RP(e,t,a){if(a===void 0)a="viewport";let o=a==="layoutViewport",n=dt(e),s=ua(e),i=n.visualViewport,l=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){let d=!Zi()||t==="fixed";if(o){if(!d)u=-i.offsetLeft,f=-i.offsetTop}else if(l=i.width,c=i.height,d)u=i.offsetLeft,f=i.offsetTop}if(ji(s)<=0){let d=s.ownerDocument,p=d.body,v=getComputedStyle(p),b=d.compatMode==="CSS1Compat"?parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0:0,C=Math.abs(s.clientWidth-p.clientWidth-b),g=getComputedStyle(s).scrollbarGutter==="stable both-edges"?C/2:C;if(g<=LP)l-=g}return{width:l,height:c,x:u,y:f}}function BP(e,t){let a=Zo(e,!0,t==="fixed"),o=a.top+e.clientTop,n=a.left+e.clientLeft,s=On(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=n*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Nk(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=RP(e,a,t);else if(t==="document")o=EP(ua(e));else if($t(t))o=BP(t,a);else{let n=kk(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Po(o)}function NP(e,t){let a=t.get(e);if(a)return a;let o=Vo(e,[],!1).filter((l)=>$t(l)&&qo(l)!=="body"),n=null,s=ea(e).position==="fixed",i=s?eo(e):e;while($t(i)&&!Nn(i)){let l=ea(i),c=qi(i),u=n?n.position:s?"fixed":"";if(!c&&(u==="fixed"||u==="absolute"&&l.position==="static"))o=o.filter((m)=>m!==i);else n=l;i=eo(i)}return t.set(e,o),o}function OP(e){let{element:t,boundary:a,rootBoundary:o,strategy:n}=e,i=[...a==="clippingAncestors"?Wr(t)?[]:NP(t,this._c):[].concat(a),o],l=Nk(t,i[0],n),c=l.top,u=l.right,f=l.bottom,m=l.left;for(let d=1;d<i.length;d++){let p=Nk(t,i[d],n);c=Kt(p.top,c),u=Ja(p.right,u),f=Ja(p.bottom,f),m=Kt(p.left,m)}return{width:u-m,height:f-c,x:m,y:c}}function HP(e){let{width:t,height:a}=Hk(e);return{width:t,height:a}}function kP(e,t,a){let o=wa(t),n=ua(t),s=a==="fixed",i=Zo(e,!0,s,t),l={scrollLeft:0,scrollTop:0},c=ca(0);if(o||!s){if(qo(t)!=="body"||Qr(n))l=Kr(t);if(o){let d=Zo(t,!0,s,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}}if(!o&&n)c.x=ji(n);let u=n&&!o&&!s?zk(n,l):ca(0),f=i.left+l.scrollLeft-c.x-u.x,m=i.top+l.scrollTop-c.y-u.y;return{x:f,y:m,width:i.width,height:i.height}}function Xu(e){return ea(e).position==="static"}function Ok(e,t){if(!wa(e)||ea(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;if(ua(e)===a)a=a.ownerDocument.body;return a}function Uk(e,t){let a=dt(e);if(Wr(e))return a;if(!wa(e)){let n=eo(e);while(n&&!Nn(n)){if($t(n)&&!Xu(n))return n;n=eo(n)}return a}let o=Ok(e,t);while(o&&Lk(o)&&Xu(o))o=Ok(o,t);if(o&&Nn(o)&&Xu(o)&&!qi(o))return a;return o||Rk(e)||a}var zP=async function(e){let t=this.getOffsetParent||Uk,a=this.getDimensions,o=await a(e.floating);return{reference:kP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function UP(e){return ea(e).direction==="rtl"}var Fk={convertOffsetParentRelativeRectToViewportRelativeRect:MP,getDocumentElement:ua,getClippingRect:OP,getOffsetParent:Uk,getElementRects:zP,getClientRects:DP,getDimensions:HP,getScale:On,isElement:$t,isRTL:UP};function _k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function FP(e,t,a){let o=null,n,s=ua(e);function i(){var f;clearTimeout(n),(f=o)==null||f.disconnect(),o=null}function l(f,m){if(f===void 0)f=!1;if(m===void 0)m=1;i();let d=e.getBoundingClientRect(),{left:p,top:v,width:b,height:C}=d;if(!f)t();if(!b||!C)return;let g=Yr(v),I=Yr(s.clientWidth-(p+b)),S=Yr(s.clientHeight-(v+C)),y=Yr(p),T={rootMargin:-g+"px "+-I+"px "+-S+"px "+-y+"px",threshold:Kt(0,Ja(1,m))||1},x=!0;function E(L){let D=L[0].intersectionRatio;if(!_k(d,e.getBoundingClientRect()))return l();if(D!==m){if(!x)return l();if(!D)n=setTimeout(()=>{l(!1,0.0000001)},1000);else l(!1,D)}x=!1}try{o=new IntersectionObserver(E,{...T,root:s.ownerDocument})}catch(L){o=new IntersectionObserver(E,T)}o.observe(e)}let c=dt(e),u=()=>l(a);return c.addEventListener("resize",u),l(!0),()=>{c.removeEventListener("resize",u),i()}}function Yu(e,t,a,o){if(o===void 0)o={};let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver==="function",layoutShift:l=typeof IntersectionObserver==="function",animationFrame:c=!1}=o,u=ju(e),f=n||s?[...u?Vo(u):[],...t?Vo(t):[]]:[];f.forEach((g)=>{n&&g.addEventListener("scroll",a),s&&g.addEventListener("resize",a)});let m=u&&l?FP(u,a,s):null,d=-1,p=null;if(i){if(p=new ResizeObserver((g)=>{let[I]=g;if(I&&I.target===u&&p&&t)p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)});a()}),u&&!c)p.observe(u);if(t)p.observe(t)}let v,b=c?Zo(e):null;if(c)C();function C(){let g=Zo(e);if(b&&!_k(b,g))a();b=g,v=requestAnimationFrame(C)}return a(),()=>{var g;if(f.forEach((I)=>{n&&I.removeEventListener("scroll",a),s&&I.removeEventListener("resize",a)}),m==null||m(),(g=p)==null||g.disconnect(),p=null,c)cancelAnimationFrame(v)}}var Pk=Ak;var Gk=Tk,Vk=Ck,qk=Mk;var Zk=xk,Yi=(e,t,a)=>{let o=new Map,n=a!=null?a:{},s={...Fk,...n.platform,_c:o};return bk(e,t,{...n,platform:s})};var Qi=O(U(),1),_P=O(U(),1),PP=O(An(),1);var Xk=(e,t)=>{let a=Pk(e);return{name:a.name,fn:a.fn,options:[e,t]}},jk=(e,t)=>{let a=Gk(e);return{name:a.name,fn:a.fn,options:[e,t]}},Yk=(e,t)=>({fn:Zk(e).fn,options:[e,t]}),Qk=(e,t)=>{let a=Vk(e);return{name:a.name,fn:a.fn,options:[e,t]}},Wk=(e,t)=>{let a=qk(e);return{name:a.name,fn:a.fn,options:[e,t]}};function GP({body:e,ctx:t}){let[a,o]=R.useState(()=>{let i={...e.initialValues};for(let l of e.fields)if(l.kind!=="button"&&l.name&&i[l.name]===void 0&&"defaultValue"in l)i[l.name]=l.defaultValue;return i}),n=(i,l)=>o((c)=>({...c,[i]:l})),s=()=>e.onSubmit(a,t);return h.jsxs("form",{className:"fm-form flex flex-col gap-2 px-2 py-2",onSubmit:(i)=>{i.preventDefault(),s()},children:[e.fields.map((i,l)=>h.jsx(VP,{field:i,values:a,setValue:n,ctx:t},i.name??l)),e.submit!==null&&h.jsx("button",{type:"submit",className:"mt-2 inline-flex h-8 items-center justify-center rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:e.submit?.label??"Save"})]})}function VP({field:e,values:t,setValue:a,ctx:o}){if(e.kind==="button")return h.jsx("button",{type:"button",onClick:()=>e.onClick(t,o),className:"inline-flex h-8 items-center justify-center rounded-md bg-secondary px-3 text-sm font-medium hover:bg-secondary/80",children:typeof e.label==="function"?e.label():e.label});let n=e.name;if(!n)return null;if(typeof e.hidden==="function"?e.hidden(t):e.hidden)return null;let i=e.label!=null?h.jsx("label",{className:"text-xs text-muted-foreground",children:typeof e.label==="function"?e.label():e.label}):null;switch(e.kind){case"switch":{let l=!!t[n];return h.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-md px-1 py-1.5",children:[h.jsx("span",{className:"text-sm",children:typeof e.label==="function"?e.label():e.label}),h.jsx("button",{type:"button",role:"switch","aria-checked":l,onClick:()=>a(n,!l),className:Y("inline-flex h-4 w-7 shrink-0 items-center rounded-full transition-colors",l?"bg-primary":"bg-muted"),children:h.jsx("span",{className:Y("block h-3 w-3 rounded-full bg-background shadow transition-transform",l?"translate-x-3.5":"translate-x-0.5")})})]})}case"checkbox":{let l=!!t[n];return h.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[h.jsx("input",{type:"checkbox",checked:l,onChange:(c)=>a(n,c.target.checked),className:"size-4 rounded border-border"}),typeof e.label==="function"?e.label():e.label]})}case"text":case"textarea":{let l=t[n]??"",c=e.kind==="textarea"?"textarea":"input";return h.jsxs("div",{className:"flex flex-col gap-1",children:[i,h.jsx(c,{value:l,placeholder:e.placeholder,onChange:(u)=>a(n,u.target.value),className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm"})]})}case"select":{let l=t[n]??"",c=typeof e.options==="function"?e.options():e.options;return h.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-md px-1 py-1.5",children:[h.jsx("span",{className:"text-sm",children:typeof e.label==="function"?e.label():e.label}),h.jsx("select",{value:l,onChange:(u)=>a(n,u.target.value),className:"h-7 rounded-md border border-input bg-transparent px-2 text-sm",children:c.map((u)=>h.jsx("option",{value:String(u.id),children:u.name},String(u.id)))})]})}case"custom":return e.render({value:t[n],setValue:(l)=>a(n,l),ctx:o});default:return h.jsxs("div",{className:"text-xs text-muted-foreground",children:["[",e.kind," field not yet rendered]"]})}}var Kk=typeof navigator<"u"&&/Mac/i.test(navigator.platform||navigator.userAgent||"");function Ju(e,t,a,o){R.useEffect(()=>{if(!e||t?.disabled)return;let n=t?.navigation??"1d";if(n==="none")return;let s=t?.defaults??{},i=s.closeOnEscape??!0,l=s.selectOnEnter??!0,c=s.selectOnTab??!1,u=s.cycleWrap??!0,f=(m)=>{if(t?.onKeyDown?.(m,o)===!0)return;if(t?.shortcuts){for(let L of t.shortcuts)if(qP(m,L.keys)){if(L.preventDefault!==!1)m.preventDefault();L.handler(m);return}}let{count:d,index:p,setIndex:v,onSelect:b,onClose:C,columns:g}=a,I=(L)=>{if(d===0)return-1;if(u)return(L%d+d)%d;return Math.max(0,Math.min(d-1,L))},S=m.key.toLowerCase(),y=S==="arrowup"||Kk&&m.ctrlKey&&S==="p",w=S==="arrowdown"||Kk&&m.ctrlKey&&S==="n",T=S==="arrowleft",x=S==="arrowright",E=(L)=>L===1?0:Math.max(0,d-1);if(y){m.preventDefault();let L=n==="2d-grid"?g??1:1;v(p<0?E(-1):I(p-L));return}if(w){m.preventDefault();let L=n==="2d-grid"?g??1:1;v(p<0?E(1):I(p+L));return}if(n==="2d-grid"&&(T||x)){m.preventDefault(),v(p<0?E(T?-1:1):I(p+(T?-1:1)));return}if(n!=="2d-grid"&&x){if(a.onSubmenuOpen?.(p)){m.preventDefault();return}}if(n!=="2d-grid"&&T&&a.closeOnArrowLeft){m.preventDefault(),C();return}if(S==="home"){m.preventDefault(),v(0);return}if(S==="end"){m.preventDefault(),v(Math.max(0,d-1));return}if(l&&S==="enter"){if(m.preventDefault(),p>=0)b(p);return}if(c&&S==="tab"){if(m.preventDefault(),p>=0)b(p);return}if(i&&S==="escape")m.preventDefault(),C()};return e.addEventListener("keydown",f),()=>e.removeEventListener("keydown",f)},[e,t,a,o])}function qP(e,t){return t.split(",").map((o)=>o.trim().toLowerCase()).some((o)=>{let n=o.split("+").map((m)=>m.trim()),s=new Set(n),i=n[n.length-1],l=s.has("shift"),c=s.has("alt"),u=s.has("ctrl"),f=s.has("cmd")||s.has("meta");return e.key.toLowerCase()===i&&e.shiftKey===l&&e.altKey===c&&e.ctrlKey===u&&e.metaKey===f})}function Jr(e,t,a){let[o,n]=R.useState({items:[],loading:!1,hasMore:!1}),s=R.useRef(0),i=R.useRef(0);R.useEffect(()=>{if(e.kind==="static"){n({items:e.items,loading:!1,hasMore:!1});return}if(e.kind==="prop"){n({items:e.getItems(a.data),loading:!1,hasMore:!1});return}if(e.kind==="sections"){let f=e.getSections(a.data).flatMap((m)=>[...m.items]);n({items:f,loading:!1,hasMore:!1});return}if(e.kind==="async"){s.current=0,i.current+=1;let u=i.current;return n((f)=>({...f,loading:!0,items:[]})),e.fetch({offset:0,limit:e.pageSize,filter:t}).then((f)=>{if(u!==i.current)return;n({items:f.items,loading:!1,hasMore:f.hasMore??!1}),s.current=f.items.length}).catch(()=>{if(u!==i.current)return;n((f)=>({...f,loading:!1}))}),()=>{i.current+=1}}if(e.kind==="store"){n({items:e.selector()??[],loading:!1,hasMore:!1});return}if(e.kind==="composite"){let u=[];for(let d of e.sources)if(d.kind==="static")u.push(...d.items);else if(d.kind==="prop")u.push(...d.getItems(a.data));else if(d.kind==="sections")for(let p of d.getSections(a.data))u.push(...p.items);else if(d.kind==="store")u.push(...d.selector()??[]);let f=e.dedupeBy,m=f?Array.from(new Map(u.map((d)=>[f(d),d])).values()):u;n({items:m,loading:!1,hasMore:!1});return}},[e,t,a.data]);let l=R.useRef(!1);return R.useEffect(()=>{l.current=o.loading},[o.loading]),{...o,loadMore:()=>{if(e.kind!=="async"||!o.hasMore)return;if(l.current)return;l.current=!0;let u=i.current;n((f)=>({...f,loading:!0})),e.fetch({offset:s.current,limit:e.pageSize,filter:t}).then((f)=>{if(u!==i.current)return;n((m)=>({items:[...m.items,...f.items],loading:!1,hasMore:f.hasMore??!1})),s.current+=f.items.length,l.current=!1}).catch(()=>{if(u!==i.current)return;n((f)=>({...f,loading:!1})),l.current=!1})}}}function ez(e,t){if(!t)return e;let a=t.toLowerCase();return e.filter((o)=>{let n=o?.name;return(typeof n==="string"?n:JSON.stringify(o)).toLowerCase().includes(a)})}function ZP({body:e,ctx:t,filter:a,onCloseRequest:o}){let{items:n,loading:s}=Jr(e.source,a,t),i=R.useRef(null),[l,c]=R.useState(0),[u,f]=R.useState(0);R.useEffect(()=>{let v=i.current;if(!v||e.columns!=="auto"||!e.responsive)return;let b=new ResizeObserver(()=>c(v.clientWidth));return b.observe(v),c(v.clientWidth),()=>b.disconnect()},[e.columns,e.responsive]);let m=R.useMemo(()=>{if(e.columns==="auto"){let v=e.responsive?.minCellWidth??64;return Math.max(1,Math.floor((l||240)/v))}return e.columns},[e.columns,e.responsive,l]),d=Math.ceil(n.length/m),p=Du({count:d,getScrollElement:()=>i.current,estimateSize:()=>e.rowHeight+(e.gap??4),overscan:4});if(Ju(i.current,{navigation:e.keyboardNav2D?"2d-grid":"1d"},{count:n.length,index:u,setIndex:(v)=>{f(v);let b=Math.floor(v/m);p.scrollToIndex(b,{align:"auto"})},onSelect:(v)=>{let b=n[v];if(b!=null)e.onCellClick?.(b,t)},onClose:o,columns:m},t),!s&&n.length===0&&e.emptyState)return h.jsx("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-sm text-muted-foreground",children:typeof e.emptyState.message==="string"&&e.emptyState.message||"No items"});return h.jsxs("div",{ref:i,className:"fm-grid relative max-h-[60vh] min-h-[80px] overflow-y-auto outline-none",role:"grid",children:[h.jsx("div",{style:{height:p.getTotalSize(),position:"relative",width:"100%"},children:p.getVirtualItems().map((v)=>{let b=v.index*m,C=n.slice(b,b+m);return h.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`,display:"grid",gridTemplateColumns:`repeat(${m}, minmax(0, 1fr))`,gap:e.gap??4,padding:e.gap??4},children:C.map((g,I)=>{let S=b+I;return h.jsx("div",{role:"gridcell","aria-selected":S===u,onMouseEnter:()=>f(S),onClick:()=>e.onCellClick?.(g,t),onContextMenu:(y)=>{if(!e.onCellContextMenu)return;y.preventDefault(),e.onCellContextMenu(g,t)},className:Y("flex items-center justify-center rounded-md border border-transparent transition-colors cursor-pointer",S===u&&"border-border bg-accent"),style:{height:e.rowHeight},children:e.renderCell(g,t)},S)})},v.key)})}),s&&h.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Loading…"})]})}function Ve({icon:e,defaultSize:t=16}){if(!e)return null;let a=e.icon,o={};if(e.color)o.color=e.color;return h.jsx(a,{size:e.size??t,weight:e.weight,className:e.className,style:o,"aria-label":e["aria-label"]})}function ce(e,t){if(e==null)return null;if(typeof e==="function")return e(t);return e}function Qe(e,t){if(typeof e==="function")return e(t);return e}function XP({item:e,spec:t,active:a,ctx:o,onActivate:n,extra:s,prefix:i}){let l=t,c=s?.filter??"",u=l.useFilterAsName&&c?`Add "${c}"`:ce(l.name,e);return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>l.onClick(c||void 0,o),className:"fm-row",children:[i,h.jsx("span",{className:"fm-row__icon",children:l.icon?h.jsx(Ve,{icon:l.icon,defaultSize:14}):h.jsx(eu,{className:"size-3.5"})}),h.jsx("span",{className:"fm-row__name",children:u})]})}function tz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=i.checked(e),c=Qe(i.disabled,e)??!1,u=Qe(i.readonly,e)??!1,f=typeof i.icon==="function"?i.icon(e):i.icon;return h.jsxs("div",{role:"option","aria-selected":a,"aria-checked":l,"aria-disabled":c||void 0,"data-active":a||void 0,"data-checked":l||void 0,"data-disabled":c||void 0,onMouseEnter:n,onClick:()=>{if(c||u)return;i.onToggle(e,!l,o)},className:Y("fm-row",u&&"fm-row--readonly"),children:[s,f&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:f,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),h.jsx("span",{"aria-hidden":!0,"data-checked":l||void 0,className:"fm-checkbox",children:l&&h.jsx(Rr,{weight:"bold"})})]})}function az({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=typeof i.icon==="function"?i.icon(e):i.icon,u=typeof i.trailing?.icon==="function"?i.trailing.icon(e):i.trailing?.icon;return h.jsxs("div",{role:"option","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,onMouseEnter:n,onClick:(f)=>!l&&i.onClick?.(e,f,o),className:Y("fm-row fm-row--chip"),children:[s,c&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:c,defaultSize:14})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.trailing&&u&&h.jsx("button",{type:"button",onClick:(f)=>{f.stopPropagation(),i.trailing?.onClick?.(e,o)},className:"fm-row__chip-trailing","aria-label":typeof i.trailing.ariaLabel==="function"?i.trailing.ariaLabel(e):i.trailing.ariaLabel??"Toggle",children:h.jsx(Ve,{icon:u,defaultSize:12})}),i.onDelete&&h.jsx("button",{type:"button",onClick:(f)=>{f.stopPropagation(),i.onDelete?.(e,o)},className:"fm-row__chip-delete","aria-label":typeof i.deleteAriaLabel==="function"?i.deleteAriaLabel(e):i.deleteAriaLabel??"Remove",children:h.jsx(Ro,{weight:"bold"})})]})}var jP={default:"text-foreground/80",red:"text-red-500",orange:"text-orange-500",amber:"text-amber-500",yellow:"text-yellow-500",green:"text-emerald-500",teal:"text-teal-500",blue:"text-blue-500",indigo:"text-indigo-500",purple:"text-purple-500",pink:"text-pink-500"},YP={default:"bg-muted",red:"bg-red-500",orange:"bg-orange-500",amber:"bg-amber-500",yellow:"bg-yellow-500",green:"bg-emerald-500",teal:"bg-teal-500",blue:"bg-blue-500",indigo:"bg-indigo-500",purple:"bg-purple-500",pink:"bg-pink-500"};function QP({item:e,spec:t,active:a,ctx:o,onActivate:n}){let s=t,i=String(s.value(e)),l=s.active?.(e)??!1,c=typeof s.scope==="function"?s.scope(e):s.scope,f=(c==="bg"?YP:jP)[i]??"bg-muted";return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>s.onSelect(e,o),className:"fm-row",children:[h.jsx("span",{"aria-hidden":!0,className:Y("fm-swatch",c==="bg"&&f),children:c==="text"&&h.jsx("span",{className:Y("fm-swatch__letter",f),children:"A"})}),h.jsx("span",{className:"fm-row__name",children:ce(s.name,e)}),l&&h.jsx(Rr,{className:"size-3.5 text-[color:var(--fm-muted-fg)]"})]})}function WP({spec:e}){let t=e;return h.jsx("div",{role:"separator",className:"fm-divider",style:t.height?{height:t.height}:void 0})}function oz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=i.icon(e),u=i.relationName(e),f=i.conditionLabel(e),m=i.valuePreview(e),d=i.withMore??Boolean(i.onMore);return h.jsxs("div",{role:"option","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,onMouseEnter:n,onClick:()=>!l&&i.onClick?.(e,o),className:Y("fm-row fm-row--rule"),children:[s,h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:c,defaultSize:14})}),h.jsxs("span",{className:"fm-row__name flex min-w-0 items-baseline gap-1.5",children:[h.jsx("span",{className:"truncate font-medium",children:u}),h.jsx("span",{className:"shrink-0 text-[color:var(--fm-muted-fg)]",children:f}),h.jsx("span",{className:"truncate text-[color:var(--fm-muted-fg)]",children:m})]}),d&&h.jsx("button",{type:"button","aria-label":"More",onClick:(p)=>{p.stopPropagation(),i.onMore?.(e,o)},className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})})]})}function nz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1;if(Qe(i.hidden,e)??!1)return null;let f=Qe(i.arrow,e)??!1,m=Qe(i.withMore,e)??!1,d=Qe(i.isBig,e)??!1,p=Qe(i.pressed,e)??!1,v=typeof i.icon==="function"?i.icon(e):i.icon,b=Qe(i.className,e),C=typeof i.subMenuId==="function"?i.subMenuId(e):i.subMenuId,g=i.subMenuTrigger??"arrowHover",I=i.subMenuHoverMs??200,S=R.useRef(null),y=R.useRef(null),w=()=>{if(!C||l||c)return;let D=i.subMenuData?i.subMenuData(e,o):o.data,N=S.current?.getBoundingClientRect(),oe=N&&N.width>0&&N.height>0?N:void 0;o.open(C,{element:S.current??void 0,data:D,triggerRect:oe})},T=()=>{if(y.current!=null)window.clearTimeout(y.current),y.current=null};return R.useEffect(()=>()=>T(),[e]),h.jsxs("div",{ref:S,role:"option","aria-selected":a,"aria-pressed":p||void 0,"aria-disabled":l||void 0,"aria-haspopup":C?"menu":void 0,"data-active":a||void 0,"data-pressed":p||void 0,"data-disabled":l||void 0,"data-submenu-id":C,onMouseEnter:()=>{if(n(),!C||l||c){T(),o.closeChildren();return}if(g!=="arrowHover")return;T(),y.current=window.setTimeout(w,I)},onMouseLeave:()=>{T()},onClick:(D)=>{if(l||c)return;if(C&&(g==="arrowClick"||g==="replace")){T(),w();return}i.onClick?.(e,D,o)},className:Y("fm-row",d&&"fm-row--big",c&&"fm-row--readonly",b),children:[s,v&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:v,defaultSize:i.iconSize??16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.caption!=null&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),(m||f)&&h.jsxs("span",{className:"fm-row__suffix",children:[m&&h.jsx("button",{type:"button","aria-label":"More",onClick:(D)=>{D.stopPropagation(),i.onMore?.(e,D,o)},className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})}),f&&h.jsx(Lr,{className:"size-4 text-[color:var(--fm-muted-fg)]"})]})]})}function rz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1;return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,"data-disabled":l||void 0,onMouseEnter:n,onClick:(c)=>!l&&i.onClick?.(e,c,o),onContextMenu:(c)=>{if(!i.onContextMenu)return;c.preventDefault(),i.onContextMenu(e,c,o)},className:Y("fm-row",i.withDescription&&"fm-row--big"),children:[s,h.jsx("span",{className:"fm-row__icon",children:i.iconRender(e)}),h.jsxs("div",{className:"fm-row__name flex flex-col leading-tight",children:[h.jsx("span",{className:"truncate",children:ce(i.name,e)}),i.caption!=null&&!i.withDescription&&h.jsx("span",{className:"truncate text-[length:var(--fm-font-size-caption)] text-[color:var(--fm-muted-fg)]",children:ce(i.caption,e)})]}),i.caption!=null&&i.withDescription&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),i.onMore&&h.jsx("button",{type:"button",onClick:(c)=>{c.stopPropagation(),i.onMore?.(e,c,o)},"aria-label":"More",className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})})]})}function sz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=i.selected?.(e)??!1;return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>i.onSelect(e,o),className:"fm-row fm-row--big",children:[s,h.jsx("span",{className:"fm-row__icon",children:i.iconRender(e)}),h.jsxs("div",{className:"fm-row__name flex flex-col leading-tight",children:[h.jsx("span",{className:"truncate",children:ce(i.name,e)}),i.identity!=null&&h.jsx("span",{className:"truncate text-[length:var(--fm-font-size-caption)] text-[color:var(--fm-muted-fg)]",children:ce(i.identity,e)})]}),l&&h.jsx(Rr,{className:"size-4 text-[color:var(--fm-accent)]"})]})}function KP({item:e,spec:t}){let a=t;return h.jsx("div",{role:"presentation",className:Y("fm-section",a.className),children:ce(a.name,e)})}function JP({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1,u=typeof i.icon==="function"?i.icon(e):i.icon,f=R.useRef(null),m=()=>{if(!i.subMenuId||l||c)return;let d=f.current?.getBoundingClientRect(),p=d&&d.width>0&&d.height>0?d:void 0;o.open(i.subMenuId,{element:f.current??void 0,data:o.data,triggerRect:p})};return h.jsxs("div",{ref:f,role:"option","aria-haspopup":"menu","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,"data-submenu-id":i.subMenuId,onMouseEnter:n,onClick:m,className:Y("fm-row",c&&"fm-row--readonly"),children:[s,u&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:u,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),h.jsx(Lr,{className:"size-4 shrink-0 text-[color:var(--fm-muted-fg)]"})]})}function iz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1,u=i.switchValue(e),f=typeof i.icon==="function"?i.icon(e):i.icon,m=Qe(i.className,e);return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,"data-disabled":l||c||void 0,onMouseEnter:n,onPointerDown:(p)=>{if(l||c)return;if(p.button!==0)return;p.preventDefault(),i.onSwitch(e,!u,o)},className:Y("fm-row",(l||c)&&"fm-row--readonly",m),children:[s,f&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:f,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.caption!=null&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),h.jsx("span",{role:"switch","aria-checked":u,"aria-disabled":l||c||void 0,className:"fm-switch","data-on":u||void 0,children:h.jsx("span",{className:"fm-switch__thumb"})})]})}function $P(e,t){if(e==null)return String(t);return String(e?.id??t)}function eG(e){let t=e.spec,a=$P(e.item,e.index),{attributes:o,listeners:n,setNodeRef:s,transform:i,transition:l,isDragging:c}=ck({id:a}),u={transform:Qt.Transform.toString(i),transition:l,opacity:c?0.55:1,zIndex:c?10:void 0,pointerEvents:c?"none":void 0},f={...e,spec:t.inner,prefix:h.jsx(tG,{dragListeners:n,dragAttributes:o})},m=(()=>{switch(t.inner.kind){case"item":return h.jsx(nz,{...f});case"object":return h.jsx(rz,{...f});case"switch":return h.jsx(iz,{...f});case"checkbox":return h.jsx(tz,{...f});case"chip":return h.jsx(az,{...f});case"participant":return h.jsx(sz,{...f});case"filterRule":return h.jsx(oz,{...f});case"custom":return h.jsx(h.Fragment,{children:t.inner.render(e.item,e.ctx)});default:return null}})();return h.jsx("div",{ref:s,style:u,"data-fm-drag-source":c||void 0,children:m})}function tG({dragListeners:e,dragAttributes:t}){let a=e?.onPointerDown,o=e?.onKeyDown;return h.jsx("span",{...t,...e,onPointerDown:(n)=>{n.stopPropagation(),a?.(n)},onKeyDown:(n)=>{n.stopPropagation(),o?.(n)},onClick:(n)=>n.stopPropagation(),"aria-label":"Drag to reorder",role:"button",tabIndex:0,className:Y("shrink-0 cursor-grab text-[color:var(--fm-muted-fg)] opacity-50 transition-opacity","hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none active:cursor-grabbing"),"data-fm-drag-handle":!0,children:h.jsx(Wc,{className:"size-3.5"})})}function to(e,t){for(let a of e)if(!a.match||a.match(t))return a;return}function Qu(e){switch(e.spec.kind){case"item":return h.jsx(nz,{...e});case"section":return h.jsx(KP,{...e});case"divider":return h.jsx(WP,{...e});case"switch":return h.jsx(iz,{...e});case"checkbox":return h.jsx(tz,{...e});case"selectNav":return h.jsx(JP,{...e});case"color":return h.jsx(QP,{...e});case"add":return h.jsx(XP,{...e});case"object":return h.jsx(rz,{...e});case"participant":return h.jsx(sz,{...e});case"sortable":return h.jsx(eG,{...e});case"chip":return h.jsx(az,{...e});case"filterRule":return h.jsx(oz,{...e});case"custom":return e.spec.render(e.item,e.ctx);default:return h.jsxs("div",{"data-row-kind":e.spec.kind,className:"px-3 py-2 text-xs text-muted-foreground",children:["[",e.spec.kind," row not yet rendered]"]})}}var aG=32,Jk=8;function lz({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){let{items:l,loading:c,hasMore:u,loadMore:f}=Jr(e.source,a,t),m=R.useMemo(()=>{let B=e.source?.kind;if(B==="async"||B==="composite")return l;return ez(l,a)},[l,a,e.source]),d=R.useRef(null),[p,v]=R.useState(0),b=i!=null,C=b?i:p;R.useEffect(()=>{if(e.orientation==="horizontal"){v(-1);return}v(m.length>0?oG(m,e.rows):-1)},[m,e.rows,e.orientation]);let g=e.focusOnMount??!0;R.useEffect(()=>{if(!g)return;let B=requestAnimationFrame(()=>{let k=d.current;if(!k)return;let G=document.activeElement;if(G&&G.tagName==="INPUT")return;if(k.contains(G))return;k.focus({preventScroll:!0})});return()=>cancelAnimationFrame(B)},[n,g]);let I=R.useCallback((B)=>{let k=e.virtualized;if(typeof k==="object"&&k.rowHeight)return typeof k.rowHeight==="function"?k.rowHeight(m[B],B):k.rowHeight;let G=to(e.rows,m[B]);if(G?.kind==="section")return 28;if(G?.kind==="divider")return 9;return aG},[e.virtualized,e.rows,m]),S=Du({count:m.length,getScrollElement:()=>d.current,estimateSize:I,overscan:typeof e.virtualized==="object"?e.virtualized.overscan??Jk:Jk});R.useEffect(()=>{if(!b||i==null||i<0)return;S.scrollToIndex(i,{align:"auto"})},[b,i,S]);let y=R.useMemo(()=>s?.navigation==="2d-grid"?{...s,navigation:"1d"}:s,[s]);Ju(d.current,y,{count:m.length,index:p,setIndex:(B)=>{let k=nG(B,m,e.rows,p);v(k),S.scrollToIndex(k,{align:"auto"})},onSelect:(B)=>{cz(m[B],e.rows,t)},onSubmenuOpen:(B)=>{let k=m[B],G=to(e.rows,k);if(!G||G.kind!=="item"&&G.kind!=="selectNav")return!1;if(!G.subMenuId)return!1;let Q=typeof G.subMenuId==="function"?G.subMenuId(k):G.subMenuId;if(!Q)return!1;let $e=d.current?.querySelector(`[data-index="${B}"] [data-submenu-id]`),ut=$e?.getBoundingClientRect(),Sa=ut&&ut.width>0&&ut.height>0?ut:void 0,et=G.subMenuData?G.subMenuData(k,t):t.data;return t.open(Q,{element:$e??void 0,data:et,triggerRect:Sa}),!0},onClose:o,closeOnArrowLeft:n},t);let w=R.useRef(-1),T=S.getVirtualItems(),x=T.length?T[T.length-1].index:-1;R.useEffect(()=>{if(!e.infiniteScroll)return;if(x<0)return;if(!u||c)return;if(x>=m.length-5&&w.current!==m.length)w.current=m.length,f()},[x,m.length,u,c,e.infiniteScroll,f]);let E=e.sortable,L=R.useMemo(()=>{let B=[];for(let k=0;k<m.length;k++){let G=m[k],Q=to(e.rows,G);if(!Q||Q.kind!=="sortable")continue;B.push(String(G?.id??k))}return B},[m,e.rows]),D=DH(Uu(qr,{activationConstraint:{distance:4}}),Uu(Vr,{coordinateGetter:uk})),[N,oe]=R.useState(null),ne=R.useRef(null),ie=N==null?null:ne.current,de=R.useCallback((B)=>{document.body.setAttribute("data-fm-dragging","true");let k=String(B.active.id);oe(k),ne.current=m.find((G,Q)=>String(G?.id??Q)===k)},[m]),Xe=R.useCallback((B)=>{if(oe(null),!E)return;let{active:k,over:G}=B;if(!G||k.id===G.id)return;let Q=(Sa)=>m.findIndex((et,pn)=>String(et?.id??pn)===Sa),$e=Q(String(k.id)),ut=Q(String(G.id));if($e<0||ut<0)return;E.onReorder($e,ut,t)},[E,m,t]);if(!c&&m.length===0&&e.emptyState){let B=typeof e.emptyState.title==="string"&&e.emptyState.title||typeof e.emptyState.message==="string"&&e.emptyState.message||"No results";return h.jsx("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-sm text-muted-foreground",children:B})}if(e.orientation==="horizontal")return h.jsx("div",{tabIndex:0,className:"fm-list fm-list--horizontal",role:"listbox","aria-orientation":"horizontal",children:m.map((B,k)=>{let G=to(e.rows,B);if(!G)return null;let Q=B?.id,$e=typeof Q==="string"||typeof Q==="number"?Q:k;return h.jsx("div",{"data-index":k,children:Qu({item:B,spec:G,index:k,active:k===C,ctx:t,onActivate:()=>v(k),extra:{filter:a}})},$e)})});let pe=h.jsxs("div",{ref:d,tabIndex:0,className:"fm-list",role:"listbox","aria-orientation":"vertical",children:[h.jsx("div",{style:{height:S.getTotalSize(),position:"relative",width:"100%"},children:S.getVirtualItems().map((B)=>{let k=m[B.index],G=to(e.rows,k);if(!G)return null;return h.jsx("div",{"data-index":B.index,ref:S.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${B.start}px)`},children:Qu({item:k,spec:G,index:B.index,active:B.index===C,ctx:t,onActivate:()=>v(B.index),extra:{filter:a}})},B.key)})}),c&&h.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Loading…"})]});if(!E)return pe;let je=[ek,E.axis==="x"?null:tk].filter(Boolean);return h.jsxs(WH,{sensors:D,collisionDetection:(B)=>{let k=BH(B);return k.length?k:_u(B)},modifiers:je,onDragStart:de,onDragEnd:(B)=>{document.body.removeAttribute("data-fm-dragging"),Xe(B)},onDragCancel:()=>{document.body.removeAttribute("data-fm-dragging"),oe(null)},children:[h.jsx(ik,{items:L,strategy:nk,children:pe}),typeof document<"u"&&Ku.createPortal(h.jsx($H,{children:ie?h.jsx("div",{className:"fm-row-overlay","data-fm-drag-overlay":!0,children:(()=>{let B=to(e.rows,ie);if(!B)return null;return Qu({item:ie,spec:B,index:-1,active:!0,ctx:t,onActivate:()=>{},extra:{filter:a}})})()}):null}),document.body)]})}function cz(e,t,a){if(e==null)return;let o=to(t,e);if(!o)return;let n=new MouseEvent("click",{detail:0});switch(o.kind){case"item":o.onClick?.(e,n,a);return;case"switch":o.onSwitch?.(e,!o.switchValue?.(e),a);return;case"checkbox":o.onToggle?.(e,!o.checked?.(e),a);return;case"color":o.onSelect?.(e,a);return;case"participant":o.onSelect?.(e,a);return;case"add":o.onClick?.(void 0,a);return;case"object":o.onClick?.(e,n,a);return;case"chip":o.onClick?.(e,n,a);return;case"filterRule":o.onClick?.(e,a);return;case"selectNav":{if(!o.subMenuId)return;a.open(o.subMenuId,{data:a.data});return}case"sortable":cz(e,[{...o.inner,match:o.match}],a);return;default:return}}function uz(e,t){let a=to(t,e);if(!a)return!1;return a.kind!=="section"&&a.kind!=="divider"&&a.kind!=="empty"}function oG(e,t){for(let a=0;a<e.length;a++)if(uz(e[a],t))return a;return-1}function nG(e,t,a,o){let n=e>o?1:-1,s=e,i=t.length;while(i-- >0){if(s<0)s=t.length-1;if(s>=t.length)s=0;if(uz(t[s],a))return s;s+=n}return o}function rG({spec:e,ctx:t}){switch(e.kind){case"custom":return h.jsx(h.Fragment,{children:e.render(t)});case"label":return h.jsx(sG,{spec:e,ctx:t});case"divider":return h.jsx("hr",{className:"mx-2 my-1 border-border"});case"searchInput":return h.jsx(iG,{spec:e,ctx:t});case"recentStrip":return h.jsx(lG,{spec:e,ctx:t});case"categoryJump":return h.jsx(cG,{spec:e,ctx:t});case"fileDropZone":return h.jsx(uG,{spec:e,ctx:t});case"monthGrid":return h.jsx(fG,{spec:e,ctx:t});case"emojiGrid":return h.jsx(fz,{spec:e,ctx:t});case"tileGrid":return h.jsx(mG,{spec:e,ctx:t});case"queryBuilder":return h.jsx(dG,{spec:e,ctx:t});case"emptyState":return h.jsx(pG,{spec:e,ctx:t});case"loader":return h.jsx(hG,{spec:e});case"error":return h.jsx(gG,{spec:e,ctx:t});case"banner":return h.jsx(IG,{spec:e,ctx:t});case"linkPreview":return h.jsx(SG,{spec:e});case"tabBar":return h.jsx(vG,{spec:e,ctx:t});case"slider":return h.jsx(yG,{spec:e,ctx:t});case"markdownToolbar":return h.jsx(bG,{spec:e,ctx:t});case"codeEditor":return h.jsx(CG,{spec:e,ctx:t});case"katexPreview":return h.jsx(wG,{spec:e});case"qrCode":return h.jsx(AG,{spec:e});default:return null}}function sG({spec:e}){return h.jsx("div",{className:Y("px-3 py-1 text-xs text-muted-foreground",e.className),children:ce(e.text,void 0)})}function iG({spec:e,ctx:t}){let[a,o]=R.useState(""),n=R.useRef(void 0),s=R.useRef(t);return s.current=t,R.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx("span",{className:"text-muted-foreground",children:e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:14}):h.jsx(Nr,{className:"size-3.5"})}),h.jsx("input",{value:a,placeholder:e.placeholder??"Search…",onChange:(i)=>{o(i.target.value),window.clearTimeout(n.current),n.current=window.setTimeout(()=>e.onChange(i.target.value,s.current),e.debounceMs??200)},className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),a&&h.jsx("button",{type:"button","aria-label":"Clear",onClick:()=>{o(""),e.onChange("",t),e.onClear?.(t)},className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function lG({spec:e,ctx:t}){let{items:a}=Jr(e.source,"",t);if(!a.length)return e.emptyMessage?h.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:e.emptyMessage}):null;return h.jsx("div",{className:"flex items-center gap-1 overflow-x-auto px-2 py-1",children:a.map((o,n)=>h.jsx("button",{type:"button",onClick:()=>e.onSelect?.(o,t),className:"shrink-0 rounded-md p-1 hover:bg-accent",children:e.renderItem(o,t)},n))})}function cG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-center justify-between border-t border-border bg-muted/30 px-1 py-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",children:e.categories.map((a)=>{let o=a.id===e.activeId;return h.jsx("button",{type:"button",title:a.tooltip,onClick:()=>e.onJump(a.id,t),className:Y("inline-flex size-6 items-center justify-center rounded-md text-muted-foreground hover:bg-accent",o&&"bg-accent text-foreground"),children:h.jsx(Ve,{icon:a.icon,defaultSize:14})},a.id)})}),e.trailing&&h.jsx("button",{type:"button",title:e.trailing.tooltip,onClick:()=>e.trailing.onClick(t),className:"inline-flex size-6 items-center justify-center rounded-md text-muted-foreground hover:bg-accent",children:h.jsx(Ve,{icon:e.trailing.icon,defaultSize:14})})]})}function uG({spec:e,ctx:t}){let[a,o]=R.useState(!1),n=R.useRef(null);return R.useEffect(()=>{if(!e.pasteFromClipboard)return;let s=(i)=>{let l=Array.from(i.clipboardData?.files??[]);if(l.length)i.preventDefault(),e.onFiles(l,t)};return window.addEventListener("paste",s),()=>window.removeEventListener("paste",s)},[e,t]),h.jsxs("div",{onClick:()=>e.clickToOpen!==!1&&n.current?.click(),onDragOver:(s)=>{s.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:(s)=>{s.preventDefault(),o(!1);let i=Array.from(s.dataTransfer.files);if(i.length)e.onFiles(i,t)},className:Y("m-2 flex h-32 flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed text-sm text-muted-foreground transition-colors cursor-pointer",a?"border-primary bg-accent/50 text-foreground":"border-border"),children:[e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:20}):h.jsx(au,{className:"size-5"}),h.jsx("span",{children:ce(e.label,void 0)??"Drop files here"}),h.jsx("input",{ref:n,type:"file",accept:e.accept,multiple:e.multiple,className:"hidden",onChange:(s)=>{let i=Array.from(s.target.files??[]);if(i.length)e.onFiles(i,t);s.target.value=""}})]})}var $k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fG({spec:e,ctx:t}){let[a,o]=R.useState(()=>new Date(e.value??Date.now())),[n,s]=R.useState("days"),i=(()=>{let C=e.value?new Date(e.value):new Date;return{hh:C.getHours(),mm:C.getMinutes()}})(),[l,c]=R.useState(i),u=(C)=>{let g=new Date(C);if(e.withTime)g.setHours(l.hh,l.mm,0,0);e.onChange(g.getTime(),t)},f=new Date,m=(C,g)=>C.getFullYear()===g.getFullYear()&&C.getMonth()===g.getMonth()&&C.getDate()===g.getDate(),d=h.jsxs("header",{className:"flex items-center justify-between gap-1 px-1 pb-1.5",children:[h.jsx("button",{type:"button",onClick:()=>{if(n==="days")o(new Date(a.getFullYear(),a.getMonth()-1,1));else if(n==="months")o(new Date(a.getFullYear()-1,a.getMonth(),1));else o(new Date(a.getFullYear()-12,a.getMonth(),1))},className:"rounded-md p-1 text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]","aria-label":"Previous",children:h.jsx(qc,{className:"size-4"})}),h.jsxs("div",{className:"flex flex-1 items-center justify-center gap-1",children:[h.jsx("button",{type:"button",onClick:()=>s(n==="months"?"days":"months"),"aria-label":"Pick month",className:"rounded-md px-1.5 py-0.5 text-sm font-medium hover:bg-[color:var(--fm-row-hover-bg)]",children:$k[a.getMonth()]}),h.jsx("button",{type:"button",onClick:()=>s(n==="years"?"days":"years"),"aria-label":"Pick year",className:"rounded-md px-1.5 py-0.5 text-sm font-medium tabular-nums hover:bg-[color:var(--fm-row-hover-bg)]",children:a.getFullYear()})]}),h.jsx("button",{type:"button",onClick:()=>{if(n==="days")o(new Date(a.getFullYear(),a.getMonth()+1,1));else if(n==="months")o(new Date(a.getFullYear()+1,a.getMonth(),1));else o(new Date(a.getFullYear()+12,a.getMonth(),1))},className:"rounded-md p-1 text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]","aria-label":"Next",children:h.jsx(Lr,{className:"size-4"})})]}),p;if(n==="months")p=h.jsx("div",{className:"grid grid-cols-3 gap-1 px-1",children:$k.map((C,g)=>{let I=g===a.getMonth();return h.jsx("button",{type:"button",onClick:()=>{o(new Date(a.getFullYear(),g,1)),s("days")},className:Y("rounded-md py-1.5 text-xs hover:bg-[color:var(--fm-row-hover-bg)]",I&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]"),children:C},C)})});else if(n==="years"){let C=a.getFullYear(),g=e.yearRange?.from??C-50,I=e.yearRange?.to??C+50,S=Math.floor(C/12)*12,y=[];for(let w=0;w<12;w++)y.push(S+w);p=h.jsx("div",{className:"grid grid-cols-3 gap-1 px-1",children:y.map((w)=>{let T=w===C,x=w<g||w>I;return h.jsx("button",{type:"button",disabled:x,onClick:()=>{o(new Date(w,a.getMonth(),1)),s("days")},className:Y("rounded-md py-1.5 text-xs tabular-nums hover:bg-[color:var(--fm-row-hover-bg)]",T&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]",x&&"opacity-30 pointer-events-none"),children:w},w)})})}else{let g=(new Date(a.getFullYear(),a.getMonth(),1).getDay()+6)%7,I=new Date(a.getFullYear(),a.getMonth()+1,0).getDate(),S=[];for(let y=0;y<g;y++)S.push(null);for(let y=1;y<=I;y++)S.push({day:y,date:new Date(a.getFullYear(),a.getMonth(),y)});while(S.length%7!==0)S.push(null);p=h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-7 gap-0.5 text-center text-[10px] text-[color:var(--fm-muted-fg)]",children:["M","T","W","T","F","S","S"].map((y,w)=>h.jsx("span",{className:"py-1",children:y},w))}),h.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:S.map((y,w)=>{if(!y)return h.jsx("span",{},w);let T=e.value&&m(new Date(e.value),y.date),x=m(f,y.date);return h.jsx("button",{type:"button",onClick:()=>u(y.date),onContextMenu:(E)=>{if(!e.onDayContextMenu)return;E.preventDefault(),e.onDayContextMenu(y.date.getTime(),t)},className:Y("flex h-7 items-center justify-center rounded-md text-xs hover:bg-[color:var(--fm-row-hover-bg)]",T&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]",!T&&x&&"border border-[color:var(--fm-surface-border)]"),children:y.day},w)})})]})}let v=(C,g)=>{let I=e.value?new Date(e.value):new Date(new Date().setHours(0,0,0,0));I.setHours(C,g,0,0),e.onChange(I.getTime(),t)},b=e.withTime?h.jsxs("div",{className:"mt-2 flex items-center justify-center gap-1 border-t border-[color:var(--fm-surface-border)] pt-2",children:[h.jsx("input",{type:"number",min:0,max:23,value:String(l.hh).padStart(2,"0"),onChange:(C)=>{let g=Math.max(0,Math.min(23,Number(C.target.value)||0));c((I)=>({...I,hh:g})),v(g,l.mm)},className:"w-10 rounded-md border border-[color:var(--fm-surface-border)] bg-transparent px-1 py-0.5 text-center font-mono text-xs tabular-nums","aria-label":"Hours"}),h.jsx("span",{className:"text-[color:var(--fm-muted-fg)]",children:":"}),h.jsx("input",{type:"number",min:0,max:59,value:String(l.mm).padStart(2,"0"),onChange:(C)=>{let g=Math.max(0,Math.min(59,Number(C.target.value)||0));c((I)=>({...I,mm:g})),v(l.hh,g)},className:"w-10 rounded-md border border-[color:var(--fm-surface-border)] bg-transparent px-1 py-0.5 text-center font-mono text-xs tabular-nums","aria-label":"Minutes"})]}):null;return h.jsxs("div",{className:"px-2 py-2 text-sm",children:[d,p,b]})}function fz({spec:e,ctx:t}){let{items:a}=Jr(e.source,"",t),o=a,n=e.columns;return h.jsx("div",{className:"grid p-1",style:{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.gap??2},children:o.map((s,i)=>h.jsx("button",{type:"button",onClick:()=>e.onSelect?.(s,t),onContextMenu:(l)=>{if(!e.onLongPress)return;l.preventDefault(),e.onLongPress(s,t)},className:"flex items-center justify-center rounded-md hover:bg-accent",style:{height:e.rowHeight},children:e.renderTile(s,t)},i))})}function mG({spec:e,ctx:t}){return h.jsx(fz,{spec:e,ctx:t})}function dG({spec:e,ctx:t}){let a=(o,n=0)=>{let s=e.getOperator(o);return h.jsxs("div",{className:Y("flex flex-col gap-1 rounded-md border border-border p-2",n>0&&"ml-4"),children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("select",{value:s,onChange:(i)=>e.onOperatorChange(o,i.target.value,t),className:"h-6 rounded-md border border-input bg-transparent px-1 text-xs",children:e.operatorOptions.map((i)=>h.jsx("option",{value:i.id,children:i.label},i.id))}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("button",{type:"button",onClick:()=>e.onAddRule(o,t),className:"rounded-md px-1.5 py-0.5 text-xs text-muted-foreground hover:bg-accent",children:"+ Rule"}),h.jsx("button",{type:"button",onClick:()=>e.onAddGroup(o,t),className:"rounded-md px-1.5 py-0.5 text-xs text-muted-foreground hover:bg-accent",children:"+ Group"})]})]}),h.jsx("div",{className:"flex flex-col gap-1",children:e.getChildren(o).map((i,l)=>i.kind==="rule"?h.jsx("div",{children:e.renderRule(i.data,t)},l):h.jsx("div",{children:a(i.data,n+1)},l))})]})};return h.jsx("div",{className:"p-2",children:a(e.root)})}function pG({spec:e}){return h.jsxs("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-muted-foreground",children:[e.icon&&h.jsx(Ve,{icon:e.icon,defaultSize:20}),e.title&&h.jsx("div",{className:"text-foreground",children:ce(e.title,void 0)}),e.message&&h.jsx("div",{children:ce(e.message,void 0)}),e.action&&h.jsx("button",{type:"button",onClick:(t)=>e.action.onClick(t),className:"mt-1 inline-flex h-7 items-center rounded-md bg-primary px-2 text-xs font-medium text-primary-foreground hover:bg-primary/90",children:e.action.label})]})}function hG({spec:e}){return h.jsxs("div",{className:"flex items-center justify-center gap-2 px-3 py-3 text-xs text-muted-foreground",children:[h.jsx(Yc,{className:"size-3.5 animate-spin"}),e.message?ce(e.message,void 0):"Loading…"]})}function gG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/10 p-2 text-xs text-destructive",children:[h.jsx(nu,{className:"size-3.5 shrink-0"}),h.jsx("div",{className:"flex-1",children:ce(e.message,void 0)}),e.retry&&h.jsx("button",{type:"button",onClick:()=>e.retry.onClick(t),className:"rounded-md bg-destructive/10 px-1.5 py-0.5 text-destructive hover:bg-destructive/20",children:e.retry.label??"Retry"})]})}function IG({spec:e}){return h.jsxs("div",{className:"m-2 flex items-start gap-2 rounded-md border border-border bg-muted/30 p-2 text-xs",children:[e.icon&&h.jsx(Ve,{icon:e.icon,defaultSize:14}),h.jsxs("div",{className:"flex-1",children:[e.title&&h.jsx("div",{className:"font-medium",children:ce(e.title,void 0)}),e.message&&h.jsx("div",{className:"text-muted-foreground",children:ce(e.message,void 0)})]}),e.action&&h.jsx("button",{type:"button",onClick:(t)=>e.action.onClick(t),className:"rounded-md bg-primary px-1.5 py-0.5 text-primary-foreground",children:e.action.label})]})}function SG({spec:e}){return h.jsxs("div",{className:"m-2 flex gap-3 rounded-md border border-border p-2",children:[e.image&&h.jsx("img",{src:e.image,alt:"",className:"size-12 shrink-0 rounded object-cover"}),h.jsxs("div",{className:"flex-1",children:[e.title&&h.jsx("div",{className:"text-sm font-medium",children:e.title}),e.description&&h.jsx("div",{className:"text-xs text-muted-foreground",children:e.description}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:e.url})]})]})}function vG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-center justify-between border-b border-border px-1 pt-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",role:"tablist",children:e.tabs.map((a)=>{let o=a.id===e.activeId;return h.jsxs("button",{type:"button",role:"tab","aria-selected":o,onClick:()=>e.onChange(a.id,t),className:Y("inline-flex items-center gap-1 rounded-t-md px-2 py-1 text-xs font-medium",o?"border-b-2 border-primary text-foreground":"text-muted-foreground"),children:[a.icon&&h.jsx(Ve,{icon:a.icon,defaultSize:12}),a.label]},a.id)})}),e.rightSlot]})}function yG({spec:e,ctx:t}){let a=(o)=>{let n=e.snaps;if(!n||n.length===0)return o;return n.reduce((s,i)=>Math.abs(i-o)<Math.abs(s-o)?i:s,n[0])};return h.jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2",children:[(e.label||e.showValue)&&h.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[h.jsx("span",{children:ce(e.label,void 0)}),e.showValue&&h.jsx("span",{className:"font-mono tabular-nums",children:e.value})]}),h.jsx("input",{type:"range",min:e.min,max:e.max,step:e.step??1,value:e.value,onChange:(o)=>e.onChange(Number(o.target.value),t),onPointerUp:(o)=>{let n=a(Number(o.target.value));if(n!==e.value)e.onChange(n,t)},className:"w-full accent-[color:var(--fm-accent)]","aria-label":typeof e.label==="string"?e.label:void 0})]})}function bG({spec:e,ctx:t}){let a=new Set(e.activeMarks??[]);return h.jsxs("div",{className:"flex items-center gap-0.5 border-b border-border px-1 py-1",children:[e.styleSwitcher&&h.jsxs(h.Fragment,{children:[h.jsxs("button",{type:"button",onClick:()=>e.styleSwitcher.onClick(t),className:"inline-flex h-6 items-center gap-1 rounded-md px-1.5 text-xs text-muted-foreground hover:bg-accent","aria-label":`Style: ${e.styleSwitcher.activeStyle}`,children:[h.jsx(Ve,{icon:e.styleSwitcher.icon,defaultSize:12}),h.jsx("span",{className:"font-medium",children:e.styleSwitcher.activeStyle})]}),h.jsx("span",{className:"mx-0.5 h-4 w-px bg-border","aria-hidden":!0})]}),e.buttons.map((o)=>{let n=o.mark?a.has(o.mark):!1;return h.jsx("button",{type:"button",onClick:()=>o.onClick(t),"aria-pressed":n||void 0,title:typeof o.tooltip?.text==="string"?o.tooltip.text:void 0,className:Y("inline-flex size-6 items-center justify-center rounded-md hover:bg-accent",n?"bg-accent text-foreground":"text-muted-foreground"),children:h.jsx(Ve,{icon:o.icon,defaultSize:14})},o.id)})]})}function CG({spec:e,ctx:t}){let a=R.useRef(t);a.current=t;let o=e.minRows??4,n=e.maxRows??16,s=Math.min(n,Math.max(o,(e.value?.split(`
|
|
14
|
-
`).length??0)||o));return h.jsxs("div",{className:"px-2 py-2",children:[e.language&&h.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-wider text-muted-foreground",children:e.language}),h.jsx("textarea",{value:e.value??"",placeholder:e.placeholder,rows:s,spellCheck:!1,onChange:(i)=>e.onChange(i.target.value,a.current),onKeyDown:(i)=>{if(e.onSave&&(i.metaKey||i.ctrlKey)&&i.key==="Enter")i.preventDefault(),e.onSave?.(i.target.value,a.current)},className:"w-full resize-none rounded-md border border-border bg-transparent p-2 font-mono text-xs leading-relaxed outline-none"})]})}function wG({spec:e}){let t=e.displayMode??!0;return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:Y("rounded-md border border-border bg-muted/30 px-3 py-2 font-mono text-xs",t?"text-center":"inline-block"),"aria-label":"LaTeX expression",children:e.expression}),e.caption&&h.jsx("div",{className:"mt-1 text-[10px] text-muted-foreground",children:e.caption})]})}function AG({spec:e}){let t=e.size??128,a=Array.from(e.value).reduce((o,n)=>(o+n.charCodeAt(0))%4096,0).toString(2).padStart(12,"0");return h.jsxs("div",{className:"flex flex-col items-center gap-2 px-3 py-3",children:[h.jsx("div",{role:"presentation",className:"grid place-items-center rounded-md border border-border bg-foreground/5",style:{width:t,height:t},children:h.jsx("div",{className:"grid grid-cols-6 gap-px font-mono text-[8px] text-muted-foreground",children:a.split("").map((o,n)=>h.jsx("span",{className:Y("size-3 rounded-sm",o==="1"?"bg-foreground":"bg-transparent")},n))})}),h.jsx("div",{className:"text-center text-[10px] uppercase tracking-wider text-muted-foreground",children:"Preview only — not scannable"}),h.jsx("code",{className:"max-w-full break-all text-center text-[10px] text-muted-foreground",children:e.value}),e.buttons&&h.jsx("div",{className:"flex items-center gap-1",children:e.buttons.map((o)=>h.jsxs("button",{type:"button",onClick:o.onClick,className:"inline-flex h-6 items-center rounded-md border border-border px-2 text-[11px] text-muted-foreground hover:bg-accent",children:[o.icon&&h.jsx(Ve,{icon:o.icon,defaultSize:10}),o.label]},o.id))})]})}function mz({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){switch(e.kind){case"list":return h.jsx(lz,{body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i});case"grid":return h.jsx(ZP,{body:e,ctx:t,filter:a,onCloseRequest:o});case"form":return h.jsx(GP,{body:e,ctx:t});case"custom":return h.jsx(h.Fragment,{children:e.render(t)});case"composed":return h.jsx(TG,{body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n})}}function TG({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){let l=e;return h.jsx("div",{className:"fm-composed flex flex-col",style:{gap:l.gap??0},children:l.sections.map((c)=>{let u=c.id;if(c.kind==="list"||c.kind==="grid"||c.kind==="form"||c.kind==="custom")return h.jsx("div",{children:h.jsx(mz,{body:c,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i})},u);return h.jsx("div",{children:h.jsx(rG,{spec:c,ctx:t})},u)})})}function xG(e,t,a,o){let n=e.config.storage?.key??e.config.id,s=e.config.storage?.adapter??a.storage,i=()=>{if(!s)return{};try{return s.get(n)??{}}catch{return{}}},l={id:e.id,data:e.param.data,storage:{get(c){return i()[c]},set(c,u){if(!s)return;let f={...i(),[c]:u};s.set(n,f)}},open:async(c,u)=>{let f=e.config.subMenus?.[c];if(f){let m=f.getData?.(void 0,l),d={...u,data:u?.data??m,parentId:e.id};t.open(f.menuId,d);return}t.open(c,{...u,parentId:e.id})},close:()=>t.close(e.id),closeAll:(c)=>t.closeAll(c),closeChildren:()=>t.closeChildren(e.id),navigateTo:(c,u)=>t.navigateTo(e.id,c,u??{}),back:()=>t.back(e.id),canGoBack:()=>t.canGoBack(e.id),update:(c)=>t.update(e.id,c),updateData:(c)=>t.updateData(e.id,c),position:o.position,setActive:o.setActive,setHover:o.setHover,updateOther:(c,u)=>t.updateData(c,u),isOpen:(c)=>t.isOpen(c)};return l}function MG({config:e,onChange:t}){let[a,o]=R.useState(""),n=R.useRef(null),s=R.useRef(void 0);R.useEffect(()=>{if(e.focusOnMount!==!1)n.current?.focus()},[e.focusOnMount]),R.useEffect(()=>()=>window.clearTimeout(s.current),[]);let i=(l)=>{o(l),window.clearTimeout(s.current),s.current=window.setTimeout(()=>{t(l),e.onChange?.(l)},e.debounceMs??250)};return h.jsxs("div",{className:"fm-filter flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx("span",{className:"text-muted-foreground",children:e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:14}):h.jsx(Nr,{className:"size-3.5"})}),h.jsx("input",{ref:n,value:a,placeholder:e.placeholder??"Search…",onChange:(l)=>i(l.target.value),className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),a&&h.jsx("button",{type:"button",onClick:()=>i(""),"aria-label":"Clear",className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function DG(e){return e?.strategy??"fixed"}function EG(e,t){if(!t)return e;if(!e){let o={};for(let n of Object.keys(t))if(t[n]!==void 0)o[n]=t[n];return o}let a={...e};for(let o of Object.keys(t))if(t[o]!==void 0)a[o]=t[o];return a}function LG(e){let t=e?.vertical??"bottom",a=e?.horizontal??"left",o=e?.stickToElementEdge;if(o){if(o==="top"||o==="bottom"){let l=e?.horizontal==="right"?"end":e?.horizontal==="center"?"center":"start";return l==="center"?o:`${o}-${l}`}let i=e?.vertical==="bottom"?"end":e?.vertical==="center"?"center":"start";return i==="center"?o:`${o}-${i}`}let n,s;if(t==="top"||t==="bottom")n=t==="top"?"top":"bottom",s=a==="left"?"start":a==="right"?"end":"center";else n=a==="left"?"left":"right",s="center";return s==="center"?n:`${n}-${s}`}function dz(e,t){if(typeof DOMRect<"u")return new DOMRect(e,t,0,0);return{x:e,y:t,width:0,height:0,top:t,bottom:t,left:e,right:e,toJSON(){return this}}}function RG(e,t){if(!(e?.fixedX!=null||e?.fixedY!=null))return t??null;let o=t==null?void 0:("getBoundingClientRect"in t)?t.getBoundingClientRect():t,n=e?.fixedX??o?.left??0,s=e?.fixedY??o?.top??0;return dz(n,s)}async function Wi(e,t,a){let o=RG(a,e)??e,n="getBoundingClientRect"in o?o:{getBoundingClientRect:()=>o,contextElement:void 0},s=typeof a?.offsetX==="function"?a.offsetX():a?.offsetX??0,i=typeof a?.offsetY==="function"?a.offsetY():a?.offsetY??0,l=a?.border?.top??8,c=a?.border?.bottom??8,u=a?.border?.left??8,f=a?.border?.right??8,m=[Xk({mainAxis:i,crossAxis:s}),!a?.noFlipX&&!a?.noFlipY?Qk({fallbackStrategy:"initialPlacement",padding:{top:l,bottom:c,left:u,right:f}}):void 0,jk({padding:{top:l,bottom:c,left:u,right:f},limiter:Yk({offset:16}),crossAxis:!a?.noBorderX||!a?.noBorderY}),a?.maxHeight||a?.fillViewport?Wk({padding:{top:l,bottom:c},apply({availableHeight:p,elements:v}){let b=a?.maxHeight??Number.POSITIVE_INFINITY;v.floating.style.maxHeight=`${Math.min(b,p)}px`}}):void 0].filter(Boolean),d=await Yi(n,t,{placement:LG(a),strategy:DG(a),middleware:m});return{x:d.x,y:d.y,placement:d.placement}}function pz(e,t,a,o){let n=!1,s=async()=>{let l=await Wi(e,t,a);if(!n)o(l)};if(a?.followAnchor===!1)return s(),()=>{n=!0};let i=Yu(e,t,s);return()=>{n=!0,i()}}function BG({triggerEl:e,triggerRect:t,floatingEl:a}){let[o,n]=R.useState(null),s=R.useRef(null);if(R.useLayoutEffect(()=>{if(!t||!a)return;let i=()=>{let c=e?.getBoundingClientRect()??t,u=a.getBoundingClientRect(),f=c,m=u.left>=f.right-4,d,p,v,b,C;if(m){d=f.right,p=Math.min(f.top,u.top),v=Math.max(0,u.left-f.right),b=Math.max(f.bottom,u.bottom)-p;let g=f.top-p,I=f.bottom-p,S=u.top-p,y=u.bottom-p;C=`polygon(0 ${g}px, 0 ${I}px, 100% ${y}px, 100% ${S}px)`}else{d=u.right,p=Math.min(f.top,u.top),v=Math.max(0,f.left-u.right),b=Math.max(f.bottom,u.bottom)-p;let g=f.top-p,I=f.bottom-p,S=u.top-p,y=u.bottom-p;C=`polygon(100% ${g}px, 100% ${I}px, 0 ${y}px, 0 ${S}px)`}n({left:d,top:p,width:v,height:b,clipPath:C})};i();let l=()=>{if(s.current)cancelAnimationFrame(s.current);s.current=requestAnimationFrame(i)};return window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{if(window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0),s.current)cancelAnimationFrame(s.current)}},[e,t,a]),!o||o.width<=0||o.height<=0)return null;return h.jsx("div",{"data-fm-safe-polygon":!0,"aria-hidden":!0,style:{position:"fixed",left:o.left,top:o.top,width:o.width,height:o.height,clipPath:o.clipPath,zIndex:"var(--fm-z-menu)",pointerEvents:"auto",background:"transparent"}})}function hz({open:e}){let t=Cz(),a=bz(),[o,n]=R.useState(null),s=R.useCallback((D)=>n(D),[]),[i,l]=R.useState(""),[c,u]=R.useState(null),[f,m]=R.useState(e.config.chrome?.tabs?.initialTab??e.config.chrome?.tabs?.tabs?.[0]?.id),d=R.useMemo(()=>xG(e,t,a,{setActive:()=>{},setHover:()=>{},position:()=>{}}),[e,t,a]),p=R.useCallback(()=>t.close(e.id),[t,e.id]),v=R.useMemo(()=>EG(e.config.position,e.param.position),[e.config.position,e.param.position]),b=e.param.element,C=e.param.rect;R.useEffect(()=>{let D=o;if(!D)return;let N=b??C,oe=v?.fixedX!=null||v?.fixedY!=null;if(!N&&!oe){let{offsetWidth:de,offsetHeight:Xe}=D;u({x:Math.max(8,(window.innerWidth-de)/2),y:Math.max(8,(window.innerHeight-Xe)/2)});return}let ne=typeof N==="string"?document.querySelector(N):N;if(!ne&&oe){let de=!1;return Wi(dz(v?.fixedX??0,v?.fixedY??0),D,v).then((Xe)=>{if(de)return;u({x:Xe.x,y:Xe.y,placement:Xe.placement})}),()=>{de=!0}}if(!ne)return;if(ne instanceof Element)return pz(ne,D,v,(de)=>u({x:de.x,y:de.y,placement:de.placement}));let ie=!1;return Wi(ne,D,v).then((de)=>{if(ie)return;u({x:de.x,y:de.y,placement:de.placement})}),()=>{ie=!0}},[o,v,b,C]),R.useEffect(()=>{let D=e.config.lifecycle?.onMount?.(d);e.config.lifecycle?.onOpen?.(d);let N=e.param.parentId;return()=>{if(typeof D==="function")D();if(e.config.lifecycle?.onClose?.(d),N)document.querySelector(`[data-fm-menu-id="${N}"] .fm-list`)?.focus({preventScroll:!0})}},[]),R.useEffect(()=>{if(e.config.chrome?.noClose)return;if(e.state==="closing")return;let D=(N)=>{if(N.key==="Escape")p()};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[e.config.chrome?.noClose,e.state,p]);let g=e.config.chrome?.dimmer??(e.param.parentId?"none":"default"),I=g!=="none",S=g==="passThrough",y=g==="visible",w=e.config.chrome?.tabs,x=(w?w.tabs.find((D)=>D.id===f)?.body:void 0)??e.config.body,E=Boolean(e.param.parentId),L=h.jsxs(h.Fragment,{children:[E&&e.param.triggerRect&&h.jsx(BG,{triggerEl:e.param.element instanceof Element?e.param.element:void 0,triggerRect:e.param.triggerRect,floatingEl:o}),I&&h.jsx("div",{"aria-hidden":!0,"data-state":e.state,onClick:S?void 0:p,className:Y("fm-dimmer",e.state==="closing"&&"fm-dimmer--closing",S&&"fm-dimmer--passthrough",y&&"fm-dimmer--visible")}),h.jsxs("div",{ref:s,role:e.config.chrome?.role??"dialog","aria-label":NG(e),"data-fm-menu-id":e.id,"data-placement":c?.placement,"data-state":e.state,className:Y("fm-menu",e.state==="closing"&&"fm-menu--closing",e.config.chrome?.classNameWrap,e.config.chrome?.className),style:{position:v?.strategy==="absolute"?"absolute":"fixed",left:c?.x,top:c?.y,width:v?.width,minWidth:v?.minWidth??220,opacity:c==null?0:1,pointerEvents:c==null?"none":"auto",...HG(c?.placement)},children:[h.jsx(kG,{open:e,onClose:p,filter:i,setFilter:l,onBack:()=>t.back(e.id),canBack:Boolean(e.history?.length),ctx:d}),w&&h.jsx(UG,{tabs:w.tabs.map((D)=>({id:D.id,label:D.label,icon:D.icon})),activeId:f,onChange:m,rightSlot:typeof w.rightSlot==="function"?w.rightSlot():w.rightSlot}),e.config.chrome?.filter&&h.jsx(MG,{config:e.config.chrome.filter,onChange:l}),!OG(x,d)&&h.jsx("div",{className:"fm-body",children:h.jsx(mz,{body:x,ctx:d,filter:i,onCloseRequest:p,isSubMenu:Boolean(e.param.parentId),keyboard:e.config.keyboard,controlledActiveIndex:e.param.activeIndex})}),h.jsx(FG,{open:e,onClose:p})]})]});return Ku.createPortal(L,document.body)}function NG(e){if(e.param.ariaLabel!=null)return e.param.ariaLabel;let t=e.config.chrome?.title;if(typeof t==="string")return t;return e.config.chrome?.ariaLabel}function OG(e,t){if(e.kind!=="custom")return!1;let a=e.measureHeight;return typeof a==="function"&&a(t)===0}function HG(e){if(!e)return{};let[t,a]=e.split("-"),o,n;if(t==="top"||t==="bottom")n=t==="top"?"bottom":"top",o=a==="start"?"left":a==="end"?"right":"center";else o=t==="left"?"right":"left",n=a==="start"?"top":a==="end"?"bottom":"center";return{transformOrigin:`${o} ${n}`}}function kG({open:e,onClose:t,filter:a,setFilter:o,onBack:n,canBack:s,ctx:i}){let l=e.config.chrome,c=l?.header;if(c?.kind==="searchBar")return h.jsx(zG,{spec:c,value:a,onChange:o,onClose:t});if(c?.kind==="custom")return h.jsx(h.Fragment,{children:c.render(i)});let u=l?.withBack||s;if(l?.title||u||l?.withClose)return h.jsxs("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[u&&h.jsx("button",{type:"button",onClick:l?.onBack??n,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:h.jsx(_c,{className:"size-4"})}),h.jsx("h3",{className:"flex-1 text-sm font-medium",children:typeof l?.title==="function"?l.title(i):l?.title}),l?.withClose&&h.jsx("button",{type:"button",onClick:t,className:"text-muted-foreground hover:text-foreground","aria-label":"Close",children:h.jsx(Ro,{className:"size-4"})})]});return null}function zG({spec:e,value:t,onChange:a,onClose:o}){return h.jsxs("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx(Nr,{className:"size-3.5 text-muted-foreground"}),h.jsx("input",{value:t,onChange:(n)=>a(n.target.value),placeholder:e.placeholder??"Find",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),e.counter&&h.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:"0 / 0"}),e.prevNext&&h.jsxs("div",{className:"flex items-center gap-0.5",children:[h.jsx("button",{type:"button","aria-label":"Previous",className:"rounded-md p-1 text-muted-foreground hover:bg-accent",children:h.jsx(Gc,{className:"size-3"})}),h.jsx("button",{type:"button","aria-label":"Next",className:"rounded-md p-1 text-muted-foreground hover:bg-accent",children:h.jsx(Uc,{className:"size-3"})})]}),h.jsx("button",{type:"button","aria-label":t?"Clear":"Close",onClick:()=>t?a(""):o(),className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function UG({tabs:e,activeId:t,onChange:a,rightSlot:o}){return h.jsxs("div",{className:"flex items-center justify-between border-b border-border px-1 pt-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",role:"tablist",children:e.map((n)=>{let s=n.id===t;return h.jsx("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>a(n.id),className:Y("inline-flex items-center gap-1 rounded-t-md px-2 py-1 text-xs font-medium",s?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"),children:n.label},n.id)})}),o]})}function FG({open:e,onClose:t}){let a=e.config.chrome?.footer;if(!a)return null;if(a.kind==="buttons")return h.jsx("footer",{className:"flex items-center justify-end gap-2 border-t border-border px-2 py-2",children:a.buttons.map((o)=>h.jsx("button",{type:"button",disabled:o.disabled,onClick:(n)=>{if(o.onClick(n),o.id==="done"||o.id==="close")t()},className:Y("inline-flex h-7 items-center rounded-md px-2.5 text-xs font-medium",o.color==="destructive"?"bg-destructive text-destructive-foreground":o.color==="accent"?"bg-primary text-primary-foreground":"border border-border text-foreground hover:bg-accent"),children:o.label},o.id))});if(a.kind==="add")return h.jsx("footer",{className:"border-t border-border",children:h.jsx("button",{type:"button",onClick:a.onClick,className:"flex w-full items-center gap-2 px-3 py-2 text-sm text-muted-foreground hover:bg-accent",children:a.label})});if(a.kind==="custom")return h.jsx("footer",{className:"border-t border-border",children:a.render()});return null}function gz(){let e=yz();return h.jsx(h.Fragment,{children:e.map((t)=>h.jsx(hz,{open:t},t.id))})}var Iz=class{constructor(e="fm:"){this.prefix=e}prefix;get(e){if(typeof localStorage>"u")return;try{let t=localStorage.getItem(this.prefix+e);return t==null?void 0:JSON.parse(t)}catch{return}}set(e,t){if(typeof localStorage>"u")return;try{localStorage.setItem(this.prefix+e,JSON.stringify(t))}catch{}}remove(e){if(typeof localStorage>"u")return;try{localStorage.removeItem(this.prefix+e)}catch{}}};var Wu=120,_G=90,Sz=class{menus=[];listeners=new Set;registry=new Map;timers=new Map;register(e){this.registry.set(e.id,e)}registerMany(e){for(let t of e)this.register(t)}getConfig(e){return this.registry.get(e)}getAll(){return this.menus}getState(e){return this.menus.find((t)=>t.id===e)?.state??"closed"}isAnyTransitioning(){return this.menus.some((e)=>e.state!=="open")}isOpen(e){if(e==null)return this.menus.some((t)=>t.state!=="closing");return this.menus.some((t)=>t.id===e&&t.state!=="closing")}open(e,t={}){let a=this.registry.get(e);if(!a){console.warn(`[fancy-menus] No menu registered with id "${e}"`);return}let o=this.timers.get(`close:${e}`);if(o)window.clearTimeout(o),this.timers.delete(`close:${e}`);let n=this.menus.findIndex((l)=>l.id===e);if(n>=0){let l=this.menus[n],c={...l.param,...t};if((t.parentId??l.param.parentId)===l.param.parentId){let f=this.menus.slice();f[n]={...l,param:c,state:l.state==="closing"?"open":l.state},this.menus=f,this.emit();return}this.menus=this.menus.filter((f)=>f.id!==e)}let s=this.menus;if(t.parentId){let l=new Set;for(let c of s)if(c.param.parentId===t.parentId&&c.id!==e)l.add(c.id);if(l.size){let c=!0;while(c){c=!1;for(let u of s)if(u.param.parentId&&l.has(u.param.parentId)&&!l.has(u.id))l.add(u.id),c=!0}s=s.filter((u)=>!l.has(u.id));for(let u of l){let f=this.timers.get(`close:${u}`);if(f)window.clearTimeout(f),this.timers.delete(`close:${u}`)}}}this.menus=[...s,{id:e,config:a,param:t,depth:t.parentId?(s.find((l)=>l.id===t.parentId)?.depth??0)+1:s.length,state:"opening"}],this.emit();let i=window.setTimeout(()=>{this.timers.delete(`open:${e}`);let l=this.menus.findIndex((u)=>u.id===e);if(l<0)return;if(this.menus[l].state!=="opening")return;let c=this.menus.slice();c[l]={...c[l],state:"open"},this.menus=c,this.emit()},Wu);this.timers.set(`open:${e}`,i)}close(e){let t=e??this.menus.at(-1)?.id;if(!t)return;let a=new Set([t]),o=!0;while(o){o=!1;for(let i of this.menus)if(i.param.parentId&&a.has(i.param.parentId)&&!a.has(i.id))a.add(i.id),o=!0}let n=this.menus.slice(),s=!1;for(let i=0;i<n.length;i++){if(!a.has(n[i].id))continue;if(n[i].state==="closing")continue;n[i]={...n[i],state:"closing"},s=!0;let l=n[i].id,c=this.timers.get(`open:${l}`);if(c)window.clearTimeout(c),this.timers.delete(`open:${l}`);let u=window.setTimeout(()=>{this.timers.delete(`close:${l}`),this.menus=this.menus.filter((f)=>f.id!==l),this.emit()},_G);this.timers.set(`close:${l}`,u)}if(!s)return;this.menus=n,this.emit()}closeChildren(e){let t=new Set,a=!0;while(a){a=!1;for(let o of this.menus){let n=o.param.parentId===e,s=o.param.parentId&&t.has(o.param.parentId);if((n||s)&&!t.has(o.id))t.add(o.id),a=!0}}if(t.size===0)return;for(let o of t)this.close(o)}closeAll(e){let t=e==null?this.menus.map((a)=>a.id):this.menus.filter((a)=>a.config.group===e).map((a)=>a.id);for(let a of t)this.close(a)}navigateTo(e,t,a={}){let o=this.menus.findIndex((f)=>f.id===e);if(o<0)return;let n=this.registry.get(t);if(!n){console.warn(`[fancy-menus] No menu registered with id "${t}"`);return}let s=this.menus[o],i=[...s.history??[],{id:s.id,config:s.config,param:s.param}],l=this.menus.slice();l[o]={id:t,config:n,param:{...s.param,...a,parentId:s.param.parentId},depth:s.depth,state:"opening",history:i},this.menus=l,this.emit();let c=this.timers.get(`open:${t}`);if(c)window.clearTimeout(c);let u=window.setTimeout(()=>{this.timers.delete(`open:${t}`);let f=this.menus.findIndex((d)=>d.id===t);if(f<0)return;if(this.menus[f].state!=="opening")return;let m=this.menus.slice();m[f]={...m[f],state:"open"},this.menus=m,this.emit()},Wu);this.timers.set(`open:${t}`,u)}canGoBack(e){let t=this.menus.find((a)=>a.id===e);return Boolean(t?.history&&t.history.length>0)}back(e){let t=this.menus.findIndex((u)=>u.id===e);if(t<0)return;let a=this.menus[t],o=a.history??[];if(o.length===0)return;let n=o[o.length-1],s=o.slice(0,-1),i=this.menus.slice();i[t]={id:n.id,config:n.config,param:n.param,depth:a.depth,state:"opening",history:s.length?s:void 0},this.menus=i,this.emit();let l=this.timers.get(`open:${n.id}`);if(l)window.clearTimeout(l);let c=window.setTimeout(()=>{this.timers.delete(`open:${n.id}`);let u=this.menus.findIndex((m)=>m.id===n.id);if(u<0)return;if(this.menus[u].state!=="opening")return;let f=this.menus.slice();f[u]={...f[u],state:"open"},this.menus=f,this.emit()},Wu);this.timers.set(`open:${n.id}`,c)}update(e,t){let a=this.menus.findIndex((n)=>n.id===e);if(a<0)return;let o=this.menus.slice();o[a]={...o[a],param:{...o[a].param,...t}},this.menus=o,this.emit()}updateData(e,t){let a=this.menus.findIndex((s)=>s.id===e);if(a<0)return;let o=this.menus.slice(),n=o[a];o[a]={...n,param:{...n.param,data:{...n.param.data??{},...t}}},this.menus=o,this.emit()}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}dispose(){for(let e of this.timers.values())window.clearTimeout(e);this.timers.clear(),this.listeners.clear()}emit(){for(let e of this.listeners)e()}},vz=R.createContext(null);function $u({menus:e,options:t,store:a,children:o}){let n=R.useRef(null);if(n.current==null)n.current=a??new Sz;let s=n.current;R.useEffect(()=>{if(e?.length)s.registerMany([...e])},[e,s]);let i=R.useMemo(()=>({storage:t?.storage??new Iz,...t}),[t]),l=R.useMemo(()=>({store:s,options:i}),[s,i]);return h.jsxs(vz.Provider,{value:l,children:[o,h.jsx(gz,{})]})}function Ki(){let e=R.useContext(vz);if(!e)throw Error("useMenu / useMenuStore must be used inside <MenuProvider>");return e}function ef(){let{store:e}=Ki();return R.useMemo(()=>({open:(t,a)=>e.open(t,a??{}),close:(t)=>e.close(t),closeAll:(t)=>e.closeAll(t),update:(t,a)=>e.update(t,a),updateData:(t,a)=>e.updateData(t,a),isOpen:(t)=>e.isOpen(t),register:(t)=>e.register(t)}),[e])}function yz(){let{store:e}=Ki();return R.useSyncExternalStore((t)=>e.subscribe(t),()=>e.getAll(),()=>e.getAll())}function bz(){return Ki().options}function Cz(){return Ki().store}var Tc=O(U(),1),Z7=O(q7(),1),ai=O(Mi(),1),dZ={},pZ=(e)=>dZ[e]??=()=>ai.jsx("span",{className:"fm-ico",dangerouslySetInnerHTML:{__html:window.icon?.(e,16)??""}}),hZ=(e)=>e?pZ(e):void 0,gZ=(e)=>[{kind:bn.Section,match:(t)=>!!t.section,name:(t)=>t.section},{kind:bn.Divider,match:(t)=>!!t.divider},{kind:bn.Item,name:(t)=>t.label,caption:(t)=>t.caption,icon:(t)=>{let a=hZ(t.icon);return a?{icon:a,size:16,...t.danger?{color:"var(--bad)"}:{}}:void 0},pressed:(t)=>!!t.pressed,disabled:(t)=>!!t.disabled,arrow:(t)=>!!t.children?.length,className:(t)=>t.danger?"fm-row--danger":void 0,subMenuId:(t)=>t.children?.length?`swarm-actions-${e+1}`:void 0,subMenuTrigger:ci.ArrowClick,subMenuData:(t)=>({items:t.children??[]}),onClick:async(t,a,o)=>{if(t.children?.length)return;if(await t.run?.(),!o.data.stay)o.closeAll("swarm")}}],IZ=[0,1,2].map((e)=>Ec({id:`swarm-actions-${e}`,kind:si.Menu,group:"swarm",position:{minWidth:260,maxWidth:420},chrome:{role:"menu"},body:{kind:ii.List,source:{kind:li.Prop,getItems:(t)=>t?.items??[]},rows:gZ(e)},keyboard:{defaults:{closeOnEscape:!0,selectOnEnter:!0,arrowsToSubmenu:!0}}}));function SZ(){let e=ef();return Tc.useEffect(()=>{let t=(a,o)=>{e.closeAll("swarm");let s={rect:a instanceof Element?a.getBoundingClientRect():new DOMRect(a.x,a.y,0,0),data:o};e.open("swarm-actions-0",s)};window.menus={open:t,close:()=>e.closeAll("swarm"),isOpen:()=>e.isOpen()},window.dispatchEvent(new Event("menus:ready"))},[e]),null}var kd=document.createElement("div");kd.id="menus-root";document.body.appendChild(kd);Z7.createRoot(kd).render(ai.jsx(Tc.StrictMode,{children:ai.jsx($u,{menus:IZ,children:ai.jsx(SZ,{})})}));})();
|
|
13
|
+
`},X_={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was moved over droppable area "+a.id+".";return"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:a}=e;if(a)return"Draggable item "+t.id+" was dropped over droppable area "+a.id;return"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function j_(e){let{announcements:t=X_,container:a,hiddenTextDescribedById:o,screenReaderInstructions:n=Z_}=e,{announce:s,announcement:i}=IH(),l=Ho("DndLiveRegion"),[c,u]=A.useState(!1);if(A.useEffect(()=>{u(!0)},[]),V_(A.useMemo(()=>({onDragStart(m){let{active:d}=m;s(t.onDragStart({active:d}))},onDragMove(m){let{active:d,over:p}=m;if(t.onDragMove)s(t.onDragMove({active:d,over:p}))},onDragOver(m){let{active:d,over:p}=m;s(t.onDragOver({active:d,over:p}))},onDragEnd(m){let{active:d,over:p}=m;s(t.onDragEnd({active:d,over:p}))},onDragCancel(m){let{active:d,over:p}=m;s(t.onDragCancel({active:d,over:p}))}}),[s,t])),!c)return null;let f=A.default.createElement(A.default.Fragment,null,A.default.createElement(hH,{id:o,value:n.draggable}),A.default.createElement(gH,{id:l,announcement:i}));return a?Fo.createPortal(f,a):f}var Ge;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ge||(Ge={}));function Ni(){}function Uu(e,t){return A.useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function LH(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return A.useMemo(()=>[...t].filter((o)=>o!=null),[...t])}var Wt=Object.freeze({x:0,y:0});function RH(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Y_(e,t){let a=En(e);if(!a)return"0 0";let o={x:(a.x-t.left)/t.width*100,y:(a.y-t.top)/t.height*100};return o.x+"% "+o.y+"%"}function BH(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return a-o}function Q_(e,t){let{data:{value:a}}=e,{data:{value:o}}=t;return o-a}function Ou(e){let{left:t,top:a,height:o,width:n}=e;return[{x:t,y:a},{x:t+n,y:a},{x:t,y:a+o},{x:t+n,y:a+o}]}function Fu(e,t){if(!e||e.length===0)return null;let[a]=e;return t?a[t]:a}var NH=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,n=Ou(t),s=[];for(let i of o){let{id:l}=i,c=a.get(l);if(c){let u=Ou(c),f=n.reduce((d,p,v)=>d+RH(u[v],p),0),m=Number((f/4).toFixed(4));s.push({id:l,data:{droppableContainer:i,value:m}})}}return s.sort(BH)};function W_(e,t){let a=Math.max(t.top,e.top),o=Math.max(t.left,e.left),n=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),i=n-o,l=s-a;if(o<n&&a<s){let c=t.width*t.height,u=e.width*e.height,f=i*l,m=f/(c+u-f);return Number(m.toFixed(4))}return 0}var _u=(e)=>{let{collisionRect:t,droppableRects:a,droppableContainers:o}=e,n=[];for(let s of o){let{id:i}=s,l=a.get(i);if(l){let c=W_(l,t);if(c>0)n.push({id:i,data:{droppableContainer:s,value:c}})}}return n.sort(Q_)};function K_(e,t){let{top:a,left:o,bottom:n,right:s}=t;return a<=e.y&&e.y<=n&&o<=e.x&&e.x<=s}var OH=(e)=>{let{droppableContainers:t,droppableRects:a,pointerCoordinates:o}=e;if(!o)return[];let n=[];for(let s of t){let{id:i}=s,l=a.get(i);if(l&&K_(o,l)){let u=Ou(l).reduce((m,d)=>m+RH(o,d),0),f=Number((u/4).toFixed(4));n.push({id:i,data:{droppableContainer:s,value:f}})}}return n.sort(BH)};function J_(e,t,a){return{...e,scaleX:t&&a?t.width/a.width:1,scaleY:t&&a?t.height/a.height:1}}function HH(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wt}function $_(e){return function(a){for(var o=arguments.length,n=Array(o>1?o-1:0),s=1;s<o;s++)n[s-1]=arguments[s];return n.reduce((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...a})}}var e9=$_(1);function kH(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function t9(e,t,a){let o=kH(t);if(!o)return e;let{scaleX:n,scaleY:s,x:i,y:l}=o,c=e.left-i-(1-n)*parseFloat(a),u=e.top-l-(1-s)*parseFloat(a.slice(a.indexOf(" ")+1)),f=n?e.width/n:e.width,m=s?e.height/s:e.height;return{width:f,height:m,top:u,right:c+f,bottom:u+m,left:c}}var a9={ignoreTransform:!1};function _o(e,t){if(t===void 0)t=a9;let a=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:f}=lt(e).getComputedStyle(e);if(u)a=t9(a,u,f)}let{top:o,left:n,width:s,height:i,bottom:l,right:c}=a;return{top:o,left:n,width:s,height:i,bottom:l,right:c}}function SH(e){return _o(e,{ignoreTransform:!0})}function o9(e){let{innerWidth:t,innerHeight:a}=e;return{top:0,left:0,right:t,bottom:a,width:t,height:a}}function n9(e,t){if(t===void 0)t=lt(e).getComputedStyle(e);return t.position==="fixed"}function r9(e,t){if(t===void 0)t=lt(e).getComputedStyle(e);let a=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((n)=>{let s=t[n];return typeof s==="string"?a.test(s):!1})}function Gr(e,t){let a=[];function o(n){if(t!=null&&a.length>=t)return a;if(!n)return a;if(Ri(n)&&n.scrollingElement!=null&&!a.includes(n.scrollingElement))return a.push(n.scrollingElement),a;if(!Tn(n)||Lu(n))return a;if(a.includes(n))return a;let s=lt(e).getComputedStyle(n);if(n!==e){if(r9(n,s))a.push(n)}if(n9(n,s))return a;return o(n.parentNode)}if(!e)return a;return o(e)}function zH(e){let[t]=Gr(e,1);return t!=null?t:null}function Ru(e){if(!kr||!e)return null;if(No(e))return e;if(!Li(e))return null;if(Ri(e)||e===Oo(e).scrollingElement)return window;if(Tn(e))return e;return null}function UH(e){if(No(e))return e.scrollX;return e.scrollLeft}function FH(e){if(No(e))return e.scrollY;return e.scrollTop}function Hu(e){return{x:UH(e),y:FH(e)}}var Ye;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ye||(Ye={}));function _H(e){if(!kr||!e)return!1;return e===document.scrollingElement}function PH(e){let t={x:0,y:0},a=_H(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-a.width,y:e.scrollHeight-a.height},n=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,l=e.scrollLeft>=o.x;return{isTop:n,isLeft:s,isBottom:i,isRight:l,maxScroll:o,minScroll:t}}var s9={x:0.2,y:0.2};function i9(e,t,a,o,n){let{top:s,left:i,right:l,bottom:c}=a;if(o===void 0)o=10;if(n===void 0)n=s9;let{isTop:u,isBottom:f,isLeft:m,isRight:d}=PH(e),p={x:0,y:0},v={x:0,y:0},b={height:t.height*n.y,width:t.width*n.x};if(!u&&s<=t.top+b.height)p.y=Ye.Backward,v.y=o*Math.abs((t.top+b.height-s)/b.height);else if(!f&&c>=t.bottom-b.height)p.y=Ye.Forward,v.y=o*Math.abs((t.bottom-b.height-c)/b.height);if(!d&&l>=t.right-b.width)p.x=Ye.Forward,v.x=o*Math.abs((t.right-b.width-l)/b.width);else if(!m&&i<=t.left+b.width)p.x=Ye.Backward,v.x=o*Math.abs((t.left+b.width-i)/b.width);return{direction:p,speed:v}}function l9(e){if(e===document.scrollingElement){let{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}let{top:t,left:a,right:o,bottom:n}=e.getBoundingClientRect();return{top:t,left:a,right:o,bottom:n,width:e.clientWidth,height:e.clientHeight}}function GH(e){return e.reduce((t,a)=>ko(t,Hu(a)),Wt)}function c9(e){return e.reduce((t,a)=>t+UH(a),0)}function u9(e){return e.reduce((t,a)=>t+FH(a),0)}function VH(e,t){if(t===void 0)t=_o;if(!e)return;let{top:a,left:o,bottom:n,right:s}=t(e);if(!zH(e))return;if(n<=0||s<=0||a>=window.innerHeight||o>=window.innerWidth)e.scrollIntoView({block:"center",inline:"center"})}var f9=[["x",["left","right"],c9],["y",["top","bottom"],u9]];class Hi{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let a=Gr(t),o=GH(a);this.rect={...e},this.width=e.width,this.height=e.height;for(let[n,s,i]of f9)for(let l of s)Object.defineProperty(this,l,{get:()=>{let c=i(a),u=o[n]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ln{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((t)=>{var a;return(a=this.target)==null?void 0:a.removeEventListener(...t)})},this.target=e}add(e,t,a){var o;(o=this.target)==null||o.addEventListener(e,t,a),this.listeners.push([e,t,a])}}function m9(e){let{EventTarget:t}=lt(e);return e instanceof t?e:Oo(e)}function Bu(e,t){let a=Math.abs(e.x),o=Math.abs(e.y);if(typeof t==="number")return Math.sqrt(a**2+o**2)>t;if("x"in t&&"y"in t)return a>t.x&&o>t.y;if("x"in t)return a>t.x;if("y"in t)return o>t.y;return!1}var zt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(zt||(zt={}));function vH(e){e.preventDefault()}function d9(e){e.stopPropagation()}var V;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(V||(V={}));var qH={start:[V.Space,V.Enter],cancel:[V.Esc],end:[V.Space,V.Enter,V.Tab]},p9=(e,t)=>{let{currentCoordinates:a}=t;switch(e.code){case V.Right:return{...a,x:a.x+25};case V.Left:return{...a,x:a.x-25};case V.Down:return{...a,y:a.y+25};case V.Up:return{...a,y:a.y-25}}return};class Vr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Ln(Oo(t)),this.windowListeners=new Ln(lt(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(zt.Resize,this.handleCancel),this.windowListeners.add(zt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(zt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,a=e.node.current;if(a)VH(a);t(Wt)}handleKeyDown(e){if(Dn(e)){let{active:t,context:a,options:o}=this.props,{keyboardCodes:n=qH,coordinateGetter:s=p9,scrollBehavior:i="smooth"}=o,{code:l}=e;if(n.end.includes(l)){this.handleEnd(e);return}if(n.cancel.includes(l)){this.handleCancel(e);return}let{collisionRect:c}=a.current,u=c?{x:c.left,y:c.top}:Wt;if(!this.referenceCoordinates)this.referenceCoordinates=u;let f=s(e,{active:t,context:a.current,currentCoordinates:u});if(f){let m=zo(f,u),d={x:0,y:0},{scrollableAncestors:p}=a.current;for(let v of p){let b=e.code,{isTop:C,isRight:g,isLeft:I,isBottom:S,maxScroll:y,minScroll:w}=PH(v),T=l9(v),x={x:Math.min(b===V.Right?T.right-T.width/2:T.right,Math.max(b===V.Right?T.left:T.left+T.width/2,f.x)),y:Math.min(b===V.Down?T.bottom-T.height/2:T.bottom,Math.max(b===V.Down?T.top:T.top+T.height/2,f.y))},E=b===V.Right&&!g||b===V.Left&&!I,L=b===V.Down&&!S||b===V.Up&&!C;if(E&&x.x!==f.x){let D=v.scrollLeft+m.x,N=b===V.Right&&D<=y.x||b===V.Left&&D>=w.x;if(N&&!m.y){v.scrollTo({left:D,behavior:i});return}if(N)d.x=v.scrollLeft-D;else d.x=b===V.Right?v.scrollLeft-y.x:v.scrollLeft-w.x;if(d.x)v.scrollBy({left:-d.x,behavior:i});break}else if(L&&x.y!==f.y){let D=v.scrollTop+m.y,N=b===V.Down&&D<=y.y||b===V.Up&&D>=w.y;if(N&&!m.x){v.scrollTo({top:D,behavior:i});return}if(N)d.y=v.scrollTop-D;else d.y=b===V.Down?v.scrollTop-y.y:v.scrollTop-w.y;if(d.y)v.scrollBy({top:-d.y,behavior:i});break}}this.handleMove(e,ko(zo(f,this.referenceCoordinates),d))}}}handleMove(e,t){let{onMove:a}=this.props;e.preventDefault(),a(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Vr.activators=[{eventName:"onKeyDown",handler:(e,t,a)=>{let{keyboardCodes:o=qH,onActivation:n}=t,{active:s}=a,{code:i}=e.nativeEvent;if(o.start.includes(i)){let l=s.activatorNode.current;if(l&&e.target!==l)return!1;return e.preventDefault(),n==null||n({event:e.nativeEvent}),!0}return!1}}];function yH(e){return Boolean(e&&"distance"in e)}function bH(e){return Boolean(e&&"delay"in e)}class ki{constructor(e,t,a){var o;if(a===void 0)a=m9(e.event.target);this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:n}=e,{target:s}=n;this.props=e,this.events=t,this.document=Oo(s),this.documentListeners=new Ln(this.document),this.listeners=new Ln(a),this.windowListeners=new Ln(lt(s)),this.initialCoordinates=(o=En(n))!=null?o:Wt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:a}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel)this.listeners.add(e.cancel.name,this.handleCancel);if(this.windowListeners.add(zt.Resize,this.handleCancel),this.windowListeners.add(zt.DragStart,vH),this.windowListeners.add(zt.VisibilityChange,this.handleCancel),this.windowListeners.add(zt.ContextMenu,vH),this.documentListeners.add(zt.Keydown,this.handleKeydown),t){if(a!=null&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(bH(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(yH(t)){this.handlePending(t);return}}this.handleStart()}detach(){if(this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null)clearTimeout(this.timeoutId),this.timeoutId=null}handlePending(e,t){let{active:a,onPending:o}=this.props;o(a,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;if(e)this.activated=!0,this.documentListeners.add(zt.Click,d9,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(zt.SelectionChange,this.removeTextSelection),t(e)}handleMove(e){var t;let{activated:a,initialCoordinates:o,props:n}=this,{onMove:s,options:{activationConstraint:i}}=n;if(!o)return;let l=(t=En(e))!=null?t:Wt,c=zo(o,l);if(!a&&i){if(yH(i)){if(i.tolerance!=null&&Bu(c,i.tolerance))return this.handleCancel();if(Bu(c,i.distance))return this.handleStart()}if(bH(i)){if(Bu(c,i.tolerance))return this.handleCancel()}this.handlePending(i,c);return}if(e.cancelable)e.preventDefault();s(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;if(this.detach(),!this.activated)e(this.props.active);t()}handleKeydown(e){if(e.code===V.Esc)this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}var h9={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class qr extends ki{constructor(e){let{event:t}=e,a=Oo(t.target);super(e,h9,a)}}qr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(!a.isPrimary||a.button!==0)return!1;return o==null||o({event:a}),!0}}];var g9={move:{name:"mousemove"},end:{name:"mouseup"}},ku;(function(e){e[e.RightClick=2]="RightClick"})(ku||(ku={}));class ZH extends ki{constructor(e){super(e,g9,Oo(e.event.target))}}ZH.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t;if(a.button===ku.RightClick)return!1;return o==null||o({event:a}),!0}}];var Nu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class XH extends ki{constructor(e){super(e,Nu)}static setup(){return window.addEventListener(Nu.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Nu.move.name,e)};function e(){}}}XH.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:a}=e,{onActivation:o}=t,{touches:n}=a;if(n.length>1)return!1;return o==null||o({event:a}),!0}}];var _r;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(_r||(_r={}));var Oi;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Oi||(Oi={}));function I9(e){let{acceleration:t,activator:a=_r.Pointer,canScroll:o,draggingRect:n,enabled:s,interval:i=5,order:l=Oi.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:f,delta:m,threshold:d}=e,p=v9({delta:m,disabled:!s}),[v,b]=mH(),C=A.useRef({x:0,y:0}),g=A.useRef({x:0,y:0}),I=A.useMemo(()=>{switch(a){case _r.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case _r.DraggableRect:return n}},[a,n,c]),S=A.useRef(null),y=A.useCallback(()=>{let T=S.current;if(!T)return;let x=C.current.x*g.current.x,E=C.current.y*g.current.y;T.scrollBy(x,E)},[]),w=A.useMemo(()=>l===Oi.TreeOrder?[...u].reverse():u,[l,u]);A.useEffect(()=>{if(!s||!u.length||!I){b();return}for(let T of w){if((o==null?void 0:o(T))===!1)continue;let x=u.indexOf(T),E=f[x];if(!E)continue;let{direction:L,speed:D}=i9(T,E,I,t,d);for(let N of["x","y"])if(!p[N][L[N]])D[N]=0,L[N]=0;if(D.x>0||D.y>0){b(),S.current=T,v(y,i),C.current=D,g.current=L;return}}C.current={x:0,y:0},g.current={x:0,y:0},b()},[t,y,o,b,s,i,JSON.stringify(I),JSON.stringify(p),v,u,w,f,JSON.stringify(d)])}var S9={x:{[Ye.Backward]:!1,[Ye.Forward]:!1},y:{[Ye.Backward]:!1,[Ye.Forward]:!1}};function v9(e){let{delta:t,disabled:a}=e,o=Fr(t);return Mn((n)=>{if(a||!o||!n)return S9;let s={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Ye.Backward]:n.x[Ye.Backward]||s.x===-1,[Ye.Forward]:n.x[Ye.Forward]||s.x===1},y:{[Ye.Backward]:n.y[Ye.Backward]||s.y===-1,[Ye.Forward]:n.y[Ye.Forward]||s.y===1}}},[a,t,o])}function y9(e,t){let a=t!=null?e.get(t):void 0,o=a?a.node.current:null;return Mn((n)=>{var s;if(t==null)return null;return(s=o!=null?o:n)!=null?s:null},[o,t])}function b9(e,t){return A.useMemo(()=>e.reduce((a,o)=>{let{sensor:n}=o,s=n.activators.map((i)=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...a,...s]},[]),[e,t])}var Pr;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Pr||(Pr={}));var zu;(function(e){e.Optimized="optimized"})(zu||(zu={}));var CH=new Map;function C9(e,t){let{dragging:a,dependencies:o,config:n}=t,[s,i]=A.useState(null),{frequency:l,measure:c,strategy:u}=n,f=A.useRef(e),m=C(),d=xn(m),p=A.useCallback(function(g){if(g===void 0)g=[];if(d.current)return;i((I)=>{if(I===null)return g;return I.concat(g.filter((S)=>!I.includes(S)))})},[d]),v=A.useRef(null),b=Mn((g)=>{if(m&&!a)return CH;if(!g||g===CH||f.current!==e||s!=null){let I=new Map;for(let S of e){if(!S)continue;if(s&&s.length>0&&!s.includes(S.id)&&S.rect.current){I.set(S.id,S.rect.current);continue}let y=S.node.current,w=y?new Hi(c(y),y):null;if(S.rect.current=w,w)I.set(S.id,w)}return I}return g},[e,s,a,m,c]);return A.useEffect(()=>{f.current=e},[e]),A.useEffect(()=>{if(m)return;p()},[a,m]),A.useEffect(()=>{if(s&&s.length>0)i(null)},[JSON.stringify(s)]),A.useEffect(()=>{if(m||typeof l!=="number"||v.current!==null)return;v.current=setTimeout(()=>{p(),v.current=null},l)},[l,m,p,...o]),{droppableRects:b,measureDroppableContainers:p,measuringScheduled:s!=null};function C(){switch(u){case Pr.Always:return!1;case Pr.BeforeDragging:return a;default:return!a}}}function Pu(e,t){return Mn((a)=>{if(!e)return null;if(a)return a;return typeof t==="function"?t(e):e},[t,e])}function w9(e,t){return Pu(e,t)}function A9(e){let{callback:t,disabled:a}=e,o=zr(t),n=A.useMemo(()=>{if(a||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:s}=window;return new s(o)},[o,a]);return A.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function zi(e){let{callback:t,disabled:a}=e,o=zr(t),n=A.useMemo(()=>{if(a||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:s}=window;return new s(o)},[a]);return A.useEffect(()=>()=>n==null?void 0:n.disconnect(),[n]),n}function T9(e){return new Hi(_o(e),e)}function wH(e,t,a){if(t===void 0)t=T9;let[o,n]=A.useState(null);function s(){n((c)=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c!=null?c:a)!=null?u:null}let f=t(e);if(JSON.stringify(c)===JSON.stringify(f))return c;return f})}let i=A9({callback(c){if(!e)return;for(let u of c){let{type:f,target:m}=u;if(f==="childList"&&m instanceof HTMLElement&&m.contains(e)){s();break}}}}),l=zi({callback:s});return Tt(()=>{if(s(),e)l==null||l.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0});else l==null||l.disconnect(),i==null||i.disconnect()},[e]),o}function x9(e){let t=Pu(e);return HH(e,t)}var AH=[];function M9(e){let t=A.useRef(e),a=Mn((o)=>{if(!e)return AH;if(o&&o!==AH&&e&&t.current&&e.parentNode===t.current.parentNode)return o;return Gr(e)},[e]);return A.useEffect(()=>{t.current=e},[e]),a}function D9(e){let[t,a]=A.useState(null),o=A.useRef(e),n=A.useCallback((s)=>{let i=Ru(s.target);if(!i)return;a((l)=>{if(!l)return null;return l.set(i,Hu(i)),new Map(l)})},[]);return A.useEffect(()=>{let s=o.current;if(e!==s){i(s);let l=e.map((c)=>{let u=Ru(c);if(u)return u.addEventListener("scroll",n,{passive:!0}),[u,Hu(u)];return null}).filter((c)=>c!=null);a(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(s)};function i(l){l.forEach((c)=>{let u=Ru(c);u==null||u.removeEventListener("scroll",n)})}},[n,e]),A.useMemo(()=>{if(e.length)return t?Array.from(t.values()).reduce((s,i)=>ko(s,i),Wt):GH(e);return Wt},[e,t])}function TH(e,t){if(t===void 0)t=[];let a=A.useRef(null);return A.useEffect(()=>{a.current=null},t),A.useEffect(()=>{let o=e!==Wt;if(o&&!a.current)a.current=e;if(!o&&a.current)a.current=null},[e]),a.current?zo(e,a.current):Wt}function E9(e){A.useEffect(()=>{if(!kr)return;let t=e.map((a)=>{let{sensor:o}=a;return o.setup==null?void 0:o.setup()});return()=>{for(let a of t)a==null||a()}},e.map((t)=>{let{sensor:a}=t;return a}))}function L9(e,t){return A.useMemo(()=>e.reduce((a,o)=>{let{eventName:n,handler:s}=o;return a[n]=(i)=>{s(i,t)},a},{}),[e,t])}function jH(e){return A.useMemo(()=>e?o9(e):null,[e])}var xH=[];function R9(e,t){if(t===void 0)t=_o;let[a]=e,o=jH(a?lt(a):null),[n,s]=A.useState(xH);function i(){s(()=>{if(!e.length)return xH;return e.map((c)=>_H(c)?o:new Hi(t(c),c))})}let l=zi({callback:i});return Tt(()=>{l==null||l.disconnect(),i(),e.forEach((c)=>l==null?void 0:l.observe(c))},[e]),n}function YH(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Tn(t)?t:e}function B9(e){let{measure:t}=e,[a,o]=A.useState(null),n=A.useCallback((u)=>{for(let{target:f}of u)if(Tn(f)){o((m)=>{let d=t(f);return m?{...m,width:d.width,height:d.height}:d});break}},[t]),s=zi({callback:n}),i=A.useCallback((u)=>{let f=YH(u);if(s==null||s.disconnect(),f)s==null||s.observe(f);o(f?t(f):null)},[t,s]),[l,c]=Ur(i);return A.useMemo(()=>({nodeRef:l,rect:a,setRef:c}),[a,l,c])}var N9=[{sensor:qr,options:{}},{sensor:Vr,options:{}}],O9={current:{}},Bi={draggable:{measure:SH},droppable:{measure:SH,strategy:Pr.WhileDragging,frequency:zu.Optimized},dragOverlay:{measure:_o}};class Rn extends Map{get(e){var t;return e!=null?(t=super.get(e))!=null?t:void 0:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e)=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,a;return(t=(a=this.get(e))==null?void 0:a.node.current)!=null?t:void 0}}var H9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ni},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Bi,measureDroppableContainers:Ni,windowRect:null,measuringScheduled:!1},QH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ni,draggableNodes:new Map,over:null,measureDroppableContainers:Ni},Zr=A.createContext(QH),WH=A.createContext(H9);function k9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rn}}}function z9(e,t){switch(t.type){case Ge.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ge.DragMove:if(e.draggable.active==null)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ge.DragEnd:case Ge.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ge.RegisterDroppable:{let{element:a}=t,{id:o}=a,n=new Rn(e.droppable.containers);return n.set(o,a),{...e,droppable:{...e.droppable,containers:n}}}case Ge.SetDroppableDisabled:{let{id:a,key:o,disabled:n}=t,s=e.droppable.containers.get(a);if(!s||o!==s.key)return e;let i=new Rn(e.droppable.containers);return i.set(a,{...s,disabled:n}),{...e,droppable:{...e.droppable,containers:i}}}case Ge.UnregisterDroppable:{let{id:a,key:o}=t,n=e.droppable.containers.get(a);if(!n||o!==n.key)return e;let s=new Rn(e.droppable.containers);return s.delete(a),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function U9(e){let{disabled:t}=e,{active:a,activatorEvent:o,draggableNodes:n}=A.useContext(Zr),s=Fr(o),i=Fr(a==null?void 0:a.id);return A.useEffect(()=>{if(t)return;if(!o&&s&&i!=null){if(!Dn(s))return;if(document.activeElement===s.target)return;let l=n.get(i);if(!l)return;let{activatorNode:c,node:u}=l;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let f of[c.current,u.current]){if(!f)continue;let m=pH(f);if(m){m.focus();break}}})}},[o,t,n,i,s]),null}function KH(e,t){let{transform:a,...o}=t;return e!=null&&e.length?e.reduce((n,s)=>s({transform:n,...o}),a):a}function F9(e){return A.useMemo(()=>({draggable:{...Bi.draggable,...e==null?void 0:e.draggable},droppable:{...Bi.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Bi.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function _9(e){let{activeNode:t,measure:a,initialRect:o,config:n=!0}=e,s=A.useRef(!1),{x:i,y:l}=typeof n==="boolean"?{x:n,y:n}:n;Tt(()=>{if(!i&&!l||!t){s.current=!1;return}if(s.current||!o)return;let u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;let f=a(u),m=HH(f,o);if(!i)m.x=0;if(!l)m.y=0;if(s.current=!0,Math.abs(m.x)>0||Math.abs(m.y)>0){let d=zH(u);if(d)d.scrollBy({top:m.y,left:m.x})}},[t,i,l,o,a])}var Ui=A.createContext({...Wt,scaleX:1,scaleY:1}),Ka;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ka||(Ka={}));var JH=A.memo(function(t){var a,o,n,s;let{id:i,accessibility:l,autoScroll:c=!0,children:u,sensors:f=N9,collisionDetection:m=_u,measuring:d,modifiers:p,...v}=t,b=A.useReducer(z9,void 0,k9),[C,g]=b,[I,S]=q_(),[y,w]=A.useState(Ka.Uninitialized),T=y===Ka.Initialized,{draggable:{active:x,nodes:E,translate:L},droppable:{containers:D}}=C,N=x!=null?E.get(x):null,oe=A.useRef({initial:null,translated:null}),ne=A.useMemo(()=>{var it;return x!=null?{id:x,data:(it=N==null?void 0:N.data)!=null?it:O9,rect:oe}:null},[x,N]),ie=A.useRef(null),[de,Xe]=A.useState(null),[pe,je]=A.useState(null),B=xn(v,Object.values(v)),k=Ho("DndDescribedBy",i),G=A.useMemo(()=>D.getEnabled(),[D]),Q=F9(d),{droppableRects:$e,measureDroppableContainers:ut,measuringScheduled:Sa}=C9(G,{dragging:T,dependencies:[L.x,L.y],config:Q.droppable}),et=y9(E,x),pn=A.useMemo(()=>pe?En(pe):null,[pe]),qa=e_(),va=w9(et,Q.draggable.measure);_9({activeNode:x!=null?E.get(x):null,config:qa.layoutShiftCompensation,initialRect:va,measure:Q.draggable.measure});let ee=wH(et,Q.draggable.measure,va),Tr=wH(et?et.parentElement:null),na=A.useRef({activatorEvent:null,active:null,activeNode:et,collisionRect:null,collisions:null,droppableRects:$e,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),hn=D.getNodeFor((a=na.current.over)==null?void 0:a.id),ya=B9({measure:Q.dragOverlay.measure}),gn=(o=ya.nodeRef.current)!=null?o:et,In=T?(n=ya.rect)!=null?n:ee:null,Fd=Boolean(ya.nodeRef.current&&ya.rect),_d=x9(Fd?null:ee),xc=jH(gn?lt(gn):null),Za=M9(T?hn!=null?hn:et:null),ni=R9(Za),ri=KH(p,{transform:{x:L.x-_d.x,y:L.y-_d.y,scaleX:1,scaleY:1},activatorEvent:pe,active:ne,activeNodeRect:ee,containerNodeRect:Tr,draggingNodeRect:In,over:na.current.over,overlayNodeRect:ya.rect,scrollableAncestors:Za,scrollableAncestorRects:ni,windowRect:xc}),Pd=pn?ko(pn,L):null,Gd=D9(Za),j7=TH(Gd),Y7=TH(Gd,[ee]),Sn=ko(ri,j7),vn=In?e9(In,ri):null,xr=ne&&vn?m({active:ne,collisionRect:vn,droppableRects:$e,droppableContainers:G,pointerCoordinates:Pd}):null,Vd=Fu(xr,"id"),[Xa,qd]=A.useState(null),Q7=Fd?ri:ko(ri,Y7),W7=J_(Q7,(s=Xa==null?void 0:Xa.rect)!=null?s:null,ee),Mc=A.useRef(null),Zd=A.useCallback((it,Ct)=>{let{sensor:wt,options:ja}=Ct;if(ie.current==null)return;let kt=E.get(ie.current);if(!kt)return;let At=it.nativeEvent,ra=new wt({active:ie.current,activeNode:kt,event:At,options:ja,context:na,onAbort(tt){if(!E.get(tt))return;let{onDragAbort:sa}=B.current,ba={id:tt};sa==null||sa(ba),I({type:"onDragAbort",event:ba})},onPending(tt,Ya,sa,ba){if(!E.get(tt))return;let{onDragPending:Dr}=B.current,Qa={id:tt,constraint:Ya,initialCoordinates:sa,offset:ba};Dr==null||Dr(Qa),I({type:"onDragPending",event:Qa})},onStart(tt){let Ya=ie.current;if(Ya==null)return;let sa=E.get(Ya);if(!sa)return;let{onDragStart:ba}=B.current,Mr={activatorEvent:At,active:{id:Ya,data:sa.data,rect:oe}};Fo.unstable_batchedUpdates(()=>{ba==null||ba(Mr),w(Ka.Initializing),g({type:Ge.DragStart,initialCoordinates:tt,active:Ya}),I({type:"onDragStart",event:Mr}),Xe(Mc.current),je(At)})},onMove(tt){g({type:Ge.DragMove,coordinates:tt})},onEnd:yn(Ge.DragEnd),onCancel:yn(Ge.DragCancel)});Mc.current=ra;function yn(tt){return async function(){let{active:sa,collisions:ba,over:Mr,scrollAdjustedTranslate:Dr}=na.current,Qa=null;if(sa&&Dr){let{cancelDrop:Er}=B.current;if(Qa={activatorEvent:At,active:sa,collisions:ba,delta:Dr,over:Mr},tt===Ge.DragEnd&&typeof Er==="function"){if(await Promise.resolve(Er(Qa)))tt=Ge.DragCancel}}ie.current=null,Fo.unstable_batchedUpdates(()=>{g({type:tt}),w(Ka.Uninitialized),qd(null),Xe(null),je(null),Mc.current=null;let Er=tt===Ge.DragEnd?"onDragEnd":"onDragCancel";if(Qa){let Dc=B.current[Er];Dc==null||Dc(Qa),I({type:Er,event:Qa})}})}}},[E]),K7=A.useCallback((it,Ct)=>(wt,ja)=>{let kt=wt.nativeEvent,At=E.get(ja);if(ie.current!==null||!At||kt.dndKit||kt.defaultPrevented)return;let ra={active:At};if(it(wt,Ct.options,ra)===!0)kt.dndKit={capturedBy:Ct.sensor},ie.current=ja,Zd(wt,Ct)},[E,Zd]),Xd=b9(f,K7);E9(f),Tt(()=>{if(ee&&y===Ka.Initializing)w(Ka.Initialized)},[ee,y]),A.useEffect(()=>{let{onDragMove:it}=B.current,{active:Ct,activatorEvent:wt,collisions:ja,over:kt}=na.current;if(!Ct||!wt)return;let At={active:Ct,activatorEvent:wt,collisions:ja,delta:{x:Sn.x,y:Sn.y},over:kt};Fo.unstable_batchedUpdates(()=>{it==null||it(At),I({type:"onDragMove",event:At})})},[Sn.x,Sn.y]),A.useEffect(()=>{let{active:it,activatorEvent:Ct,collisions:wt,droppableContainers:ja,scrollAdjustedTranslate:kt}=na.current;if(!it||ie.current==null||!Ct||!kt)return;let{onDragOver:At}=B.current,ra=ja.get(Vd),yn=ra&&ra.rect.current?{id:ra.id,rect:ra.rect.current,data:ra.data,disabled:ra.disabled}:null,tt={active:it,activatorEvent:Ct,collisions:wt,delta:{x:kt.x,y:kt.y},over:yn};Fo.unstable_batchedUpdates(()=>{qd(yn),At==null||At(tt),I({type:"onDragOver",event:tt})})},[Vd]),Tt(()=>{na.current={activatorEvent:pe,active:ne,activeNode:et,collisionRect:vn,collisions:xr,droppableRects:$e,draggableNodes:E,draggingNode:gn,draggingNodeRect:In,droppableContainers:D,over:Xa,scrollableAncestors:Za,scrollAdjustedTranslate:Sn},oe.current={initial:In,translated:vn}},[ne,et,xr,vn,E,gn,In,$e,D,Xa,Za,Sn]),I9({...qa,delta:L,draggingRect:vn,pointerCoordinates:Pd,scrollableAncestors:Za,scrollableAncestorRects:ni});let J7=A.useMemo(()=>({active:ne,activeNode:et,activeNodeRect:ee,activatorEvent:pe,collisions:xr,containerNodeRect:Tr,dragOverlay:ya,draggableNodes:E,droppableContainers:D,droppableRects:$e,over:Xa,measureDroppableContainers:ut,scrollableAncestors:Za,scrollableAncestorRects:ni,measuringConfiguration:Q,measuringScheduled:Sa,windowRect:xc}),[ne,et,ee,pe,xr,Tr,ya,E,D,$e,Xa,ut,Za,ni,Q,Sa,xc]),$7=A.useMemo(()=>({activatorEvent:pe,activators:Xd,active:ne,activeNodeRect:ee,ariaDescribedById:{draggable:k},dispatch:g,draggableNodes:E,over:Xa,measureDroppableContainers:ut}),[pe,Xd,ne,ee,g,k,E,Xa,ut]);return A.default.createElement(EH.Provider,{value:S},A.default.createElement(Zr.Provider,{value:$7},A.default.createElement(WH.Provider,{value:J7},A.default.createElement(Ui.Provider,{value:W7},u)),A.default.createElement(U9,{disabled:(l==null?void 0:l.restoreFocus)===!1})),A.default.createElement(j_,{...l,hiddenTextDescribedById:k}));function e_(){let it=(de==null?void 0:de.autoScrollEnabled)===!1,Ct=typeof c==="object"?c.enabled===!1:c===!1,wt=T&&!it&&!Ct;if(typeof c==="object")return{...c,enabled:wt};return{enabled:wt}}}),P9=A.createContext(null),MH="button",G9="Draggable";function $H(e){let{id:t,data:a,disabled:o=!1,attributes:n}=e,s=Ho(G9),{activators:i,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:f,draggableNodes:m,over:d}=A.useContext(Zr),{role:p=MH,roleDescription:v="draggable",tabIndex:b=0}=n!=null?n:{},C=(c==null?void 0:c.id)===t,g=A.useContext(C?Ui:P9),[I,S]=Ur(),[y,w]=Ur(),T=L9(i,t),x=xn(a);Tt(()=>(m.set(t,{id:t,key:s,node:I,activatorNode:y,data:x}),()=>{let L=m.get(t);if(L&&L.key===s)m.delete(t)}),[m,t]);let E=A.useMemo(()=>({role:p,tabIndex:b,"aria-disabled":o,"aria-pressed":C&&p===MH?!0:void 0,"aria-roledescription":v,"aria-describedby":f.draggable}),[o,p,b,C,v,f.draggable]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:E,isDragging:C,listeners:o?void 0:T,node:I,over:d,setNodeRef:S,setActivatorNodeRef:w,transform:g}}function Gu(){return A.useContext(WH)}var V9="Droppable",q9={timeout:25};function ek(e){let{data:t,disabled:a=!1,id:o,resizeObserverConfig:n}=e,s=Ho(V9),{active:i,dispatch:l,over:c,measureDroppableContainers:u}=A.useContext(Zr),f=A.useRef({disabled:a}),m=A.useRef(!1),d=A.useRef(null),p=A.useRef(null),{disabled:v,updateMeasurementsFor:b,timeout:C}={...q9,...n},g=xn(b!=null?b:o),I=A.useCallback(()=>{if(!m.current){m.current=!0;return}if(p.current!=null)clearTimeout(p.current);p.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),p.current=null},C)},[C]),S=zi({callback:I,disabled:v||!i}),y=A.useCallback((E,L)=>{if(!S)return;if(L)S.unobserve(L),m.current=!1;if(E)S.observe(E)},[S]),[w,T]=Ur(y),x=xn(t);return A.useEffect(()=>{if(!S||!w.current)return;S.disconnect(),m.current=!1,S.observe(w.current)},[w,S]),A.useEffect(()=>(l({type:Ge.RegisterDroppable,element:{id:o,key:s,disabled:a,node:w,rect:d,data:x}}),()=>l({type:Ge.UnregisterDroppable,key:s,id:o})),[o]),A.useEffect(()=>{if(a!==f.current.disabled)l({type:Ge.SetDroppableDisabled,id:o,key:s,disabled:a}),f.current.disabled=a},[o,s,a,l]),{active:i,rect:d,isOver:(c==null?void 0:c.id)===o,node:w,over:c,setNodeRef:T}}function Z9(e){let{animation:t,children:a}=e,[o,n]=A.useState(null),[s,i]=A.useState(null),l=Fr(a);if(!a&&!o&&l)n(l);return Tt(()=>{if(!s)return;let c=o==null?void 0:o.key,u=o==null?void 0:o.props.id;if(c==null||u==null){n(null);return}Promise.resolve(t(u,s)).then(()=>{n(null)})},[t,o,s]),A.default.createElement(A.default.Fragment,null,a,o?A.cloneElement(o,{ref:i}):null)}var X9={x:0,y:0,scaleX:1,scaleY:1};function j9(e){let{children:t}=e;return A.default.createElement(Zr.Provider,{value:QH},A.default.createElement(Ui.Provider,{value:X9},t))}var Y9={position:"fixed",touchAction:"none"},Q9=(e)=>Dn(e)?"transform 250ms ease":void 0,W9=A.forwardRef((e,t)=>{let{as:a,activatorEvent:o,adjustScale:n,children:s,className:i,rect:l,style:c,transform:u,transition:f=Q9}=e;if(!l)return null;let m=n?u:{...u,scaleX:1,scaleY:1},d={...Y9,width:l.width,height:l.height,top:l.top,left:l.left,transform:Qt.Transform.toString(m),transformOrigin:n&&o?Y_(o,l):void 0,transition:typeof f==="function"?f(o):f,...c};return A.default.createElement(a,{className:i,style:d,ref:t},s)}),K9=(e)=>(t)=>{let{active:a,dragOverlay:o}=t,n={},{styles:s,className:i}=e;if(s!=null&&s.active)for(let[l,c]of Object.entries(s.active)){if(c===void 0)continue;n[l]=a.node.style.getPropertyValue(l),a.node.style.setProperty(l,c)}if(s!=null&&s.dragOverlay)for(let[l,c]of Object.entries(s.dragOverlay)){if(c===void 0)continue;o.node.style.setProperty(l,c)}if(i!=null&&i.active)a.node.classList.add(i.active);if(i!=null&&i.dragOverlay)o.node.classList.add(i.dragOverlay);return function(){for(let[c,u]of Object.entries(n))a.node.style.setProperty(c,u);if(i!=null&&i.active)a.node.classList.remove(i.active)}},J9=(e)=>{let{transform:{initial:t,final:a}}=e;return[{transform:Qt.Transform.toString(t)},{transform:Qt.Transform.toString(a)}]},$9={duration:250,easing:"ease",keyframes:J9,sideEffects:K9({styles:{active:{opacity:"0"}}})};function eP(e){let{config:t,draggableNodes:a,droppableContainers:o,measuringConfiguration:n}=e;return zr((s,i)=>{if(t===null)return;let l=a.get(s);if(!l)return;let c=l.node.current;if(!c)return;let u=YH(i);if(!u)return;let{transform:f}=lt(i).getComputedStyle(i),m=kH(f);if(!m)return;let d=typeof t==="function"?t:tP(t);return VH(c,n.draggable.measure),d({active:{id:s,data:l.data,node:c,rect:n.draggable.measure(c)},draggableNodes:a,dragOverlay:{node:i,rect:n.dragOverlay.measure(u)},droppableContainers:o,measuringConfiguration:n,transform:m})})}function tP(e){let{duration:t,easing:a,sideEffects:o,keyframes:n}={...$9,...e};return(s)=>{let{active:i,dragOverlay:l,transform:c,...u}=s;if(!t)return;let f={x:l.rect.left-i.rect.left,y:l.rect.top-i.rect.top},m={scaleX:c.scaleX!==1?i.rect.width*c.scaleX/l.rect.width:1,scaleY:c.scaleY!==1?i.rect.height*c.scaleY/l.rect.height:1},d={x:c.x-f.x,y:c.y-f.y,...m},p=n({...u,active:i,dragOverlay:l,transform:{initial:c,final:d}}),[v]=p,b=p[p.length-1];if(JSON.stringify(v)===JSON.stringify(b))return;let C=o==null?void 0:o({active:i,dragOverlay:l,...u}),g=l.node.animate(p,{duration:t,easing:a,fill:"forwards"});return new Promise((I)=>{g.onfinish=()=>{C==null||C(),I()}})}}var DH=0;function aP(e){return A.useMemo(()=>{if(e==null)return;return DH++,DH},[e])}var tk=A.default.memo((e)=>{let{adjustScale:t=!1,children:a,dropAnimation:o,style:n,transition:s,modifiers:i,wrapperElement:l="div",className:c,zIndex:u=999}=e,{activatorEvent:f,active:m,activeNodeRect:d,containerNodeRect:p,draggableNodes:v,droppableContainers:b,dragOverlay:C,over:g,measuringConfiguration:I,scrollableAncestors:S,scrollableAncestorRects:y,windowRect:w}=Gu(),T=A.useContext(Ui),x=aP(m==null?void 0:m.id),E=KH(i,{activatorEvent:f,active:m,activeNodeRect:d,containerNodeRect:p,draggingNodeRect:C.rect,over:g,overlayNodeRect:C.rect,scrollableAncestors:S,scrollableAncestorRects:y,transform:T,windowRect:w}),L=Pu(d),D=eP({config:o,draggableNodes:v,droppableContainers:b,measuringConfiguration:I}),N=L?C.setRef:void 0;return A.default.createElement(j9,null,A.default.createElement(Z9,{animation:D},m&&x?A.default.createElement(W9,{key:x,id:m.id,ref:N,as:l,activatorEvent:f,adjustScale:t,className:c,transition:s,rect:L,style:{zIndex:u,...n},transform:E},a):null))});function oP(e,t,a){let o={...e};if(t.top+e.y<=a.top)o.y=a.top-t.top;else if(t.bottom+e.y>=a.top+a.height)o.y=a.top+a.height-t.bottom;if(t.left+e.x<=a.left)o.x=a.left-t.left;else if(t.right+e.x>=a.left+a.width)o.x=a.left+a.width-t.right;return o}var ak=(e)=>{let{containerNodeRect:t,draggingNodeRect:a,transform:o}=e;if(!a||!t)return o;return oP(o,a,t)};var ok=(e)=>{let{transform:t}=e;return{...t,x:0}};var Oe=O(U(),1);function nk(e,t,a){let o=e.slice();return o.splice(a<0?o.length+a:a,0,o.splice(t,1)[0]),o}function nP(e,t){return e.reduce((a,o,n)=>{let s=t.get(o);if(s)a[n]=s;return a},Array(e.length))}function Fi(e){return e!==null&&e>=0}function rP(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function sP(e){if(typeof e==="boolean")return{draggable:e,droppable:e};return e}var rk=(e)=>{let{rects:t,activeIndex:a,overIndex:o,index:n}=e,s=nk(t,o,a),i=t[n],l=s[n];if(!l||!i)return null;return{x:l.left-i.left,y:l.top-i.top,scaleX:l.width/i.width,scaleY:l.height/i.height}};var _i={scaleX:1,scaleY:1},sk=(e)=>{var t;let{activeIndex:a,activeNodeRect:o,index:n,rects:s,overIndex:i}=e,l=(t=s[a])!=null?t:o;if(!l)return null;if(n===a){let u=s[i];if(!u)return null;return{x:0,y:a<i?u.top+u.height-(l.top+l.height):u.top-l.top,..._i}}let c=iP(s,n,a);if(n>a&&n<=i)return{x:0,y:-l.height-c,..._i};if(n<a&&n>=i)return{x:0,y:l.height+c,..._i};return{x:0,y:0,..._i}};function iP(e,t,a){let o=e[t],n=e[t-1],s=e[t+1];if(!o)return 0;if(a<t)return n?o.top-(n.top+n.height):s?s.top-(o.top+o.height):0;return s?s.top-(o.top+o.height):n?o.top-(n.top+n.height):0}var ik="Sortable",lk=Oe.default.createContext({activeIndex:-1,containerId:ik,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rk,disabled:{draggable:!1,droppable:!1}});function ck(e){let{children:t,id:a,items:o,strategy:n=rk,disabled:s=!1}=e,{active:i,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:f}=Gu(),m=Ho(ik,a),d=Boolean(l.rect!==null),p=Oe.useMemo(()=>o.map((T)=>typeof T==="object"&&("id"in T)?T.id:T),[o]),v=i!=null,b=i?p.indexOf(i.id):-1,C=u?p.indexOf(u.id):-1,g=Oe.useRef(p),I=!rP(p,g.current),S=C!==-1&&b===-1||I,y=sP(s);Tt(()=>{if(I&&v)f(p)},[I,p,v,f]),Oe.useEffect(()=>{g.current=p},[p]);let w=Oe.useMemo(()=>({activeIndex:b,containerId:m,disabled:y,disableTransforms:S,items:p,overIndex:C,useDragOverlay:d,sortedRects:nP(p,c),strategy:n}),[b,m,y.draggable,y.droppable,S,p,C,c,d,n]);return Oe.default.createElement(lk.Provider,{value:w},t)}var lP=(e)=>{let{id:t,items:a,activeIndex:o,overIndex:n}=e;return nk(a,o,n).indexOf(t)},cP=(e)=>{let{containerId:t,isSorting:a,wasDragging:o,index:n,items:s,newIndex:i,previousItems:l,previousContainerId:c,transition:u}=e;if(!u||!o)return!1;if(l!==s&&n===i)return!1;if(a)return!0;return i!==n&&t===c},uP={duration:200,easing:"ease"},uk="transform",fP=Qt.Transition.toString({property:uk,duration:0,easing:"linear"}),mP={roleDescription:"sortable"};function dP(e){let{disabled:t,index:a,node:o,rect:n}=e,[s,i]=Oe.useState(null),l=Oe.useRef(a);return Tt(()=>{if(!t&&a!==l.current&&o.current){let c=n.current;if(c){let u=_o(o.current,{ignoreTransform:!0}),f={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};if(f.x||f.y)i(f)}}if(a!==l.current)l.current=a},[t,a,o,n]),Oe.useEffect(()=>{if(s)i(null)},[s]),s}function fk(e){let{animateLayoutChanges:t=cP,attributes:a,disabled:o,data:n,getNewIndex:s=lP,id:i,strategy:l,resizeObserverConfig:c,transition:u=uP}=e,{items:f,containerId:m,activeIndex:d,disabled:p,disableTransforms:v,sortedRects:b,overIndex:C,useDragOverlay:g,strategy:I}=Oe.useContext(lk),S=pP(o,p),y=f.indexOf(i),w=Oe.useMemo(()=>({sortable:{containerId:m,index:y,items:f},...n}),[m,n,y,f]),T=Oe.useMemo(()=>f.slice(f.indexOf(i)),[f,i]),{rect:x,node:E,isOver:L,setNodeRef:D}=ek({id:i,data:w,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...c}}),{active:N,activatorEvent:oe,activeNodeRect:ne,attributes:ie,setNodeRef:de,listeners:Xe,isDragging:pe,over:je,setActivatorNodeRef:B,transform:k}=$H({id:i,data:w,attributes:{...mP,...a},disabled:S.draggable}),G=fH(D,de),Q=Boolean(N),$e=Q&&!v&&Fi(d)&&Fi(C),ut=!g&&pe,Sa=ut&&$e?k:null,et=l!=null?l:I,pn=$e?Sa!=null?Sa:et({rects:b,activeNodeRect:ne,activeIndex:d,overIndex:C,index:y}):null,qa=Fi(d)&&Fi(C)?s({id:i,items:f,activeIndex:d,overIndex:C}):y,va=N==null?void 0:N.id,ee=Oe.useRef({activeId:va,items:f,newIndex:qa,containerId:m}),Tr=f!==ee.current.items,na=t({active:N,containerId:m,isDragging:pe,isSorting:Q,id:i,index:y,items:f,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:u,wasDragging:ee.current.activeId!=null}),hn=dP({disabled:!na,index:y,node:E,rect:x});return Oe.useEffect(()=>{if(Q&&ee.current.newIndex!==qa)ee.current.newIndex=qa;if(m!==ee.current.containerId)ee.current.containerId=m;if(f!==ee.current.items)ee.current.items=f},[Q,qa,m,f]),Oe.useEffect(()=>{if(va===ee.current.activeId)return;if(va!=null&&ee.current.activeId==null){ee.current.activeId=va;return}let gn=setTimeout(()=>{ee.current.activeId=va},50);return()=>clearTimeout(gn)},[va]),{active:N,activeIndex:d,attributes:ie,data:w,rect:x,index:y,newIndex:qa,items:f,isOver:L,isSorting:Q,isDragging:pe,listeners:Xe,node:E,overIndex:C,over:je,setNodeRef:G,setActivatorNodeRef:B,setDroppableNodeRef:D,setDraggableNodeRef:de,transform:hn!=null?hn:pn,transition:ya()};function ya(){if(hn||Tr&&ee.current.newIndex===y)return fP;if(ut&&!Dn(oe)||!u)return;if(Q||na)return Qt.Transition.toString({...u,property:uk});return}}function pP(e,t){var a,o;if(typeof e==="boolean")return{draggable:e,droppable:!1};return{draggable:(a=e==null?void 0:e.draggable)!=null?a:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}function Pi(e){if(!e)return!1;let t=e.data.current;if(t&&"sortable"in t&&typeof t.sortable==="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)return!0;return!1}var hP=[V.Down,V.Right,V.Up,V.Left],mk=(e,t)=>{let{context:{active:a,collisionRect:o,droppableRects:n,droppableContainers:s,over:i,scrollableAncestors:l}}=t;if(hP.includes(e.code)){if(e.preventDefault(),!a||!o)return;let c=[];s.getEnabled().forEach((m)=>{if(!m||m!=null&&m.disabled)return;let d=n.get(m.id);if(!d)return;switch(e.code){case V.Down:if(o.top<d.top)c.push(m);break;case V.Up:if(o.top>d.top)c.push(m);break;case V.Left:if(o.left>d.left)c.push(m);break;case V.Right:if(o.left<d.left)c.push(m);break}});let u=NH({active:a,collisionRect:o,droppableRects:n,droppableContainers:c,pointerCoordinates:null}),f=Fu(u,"id");if(f===(i==null?void 0:i.id)&&u.length>1)f=u[1].id;if(f!=null){let m=s.get(a.id),d=s.get(f),p=d?n.get(d.id):null,v=d==null?void 0:d.node.current;if(v&&p&&m&&d){let C=Gr(v).some((T,x)=>l[x]!==T),g=dk(m,d),I=gP(m,d),S=C||!g?{x:0,y:0}:{x:I?o.width-p.width:0,y:I?o.height-p.height:0},y={x:p.left,y:p.top};return S.x&&S.y?y:zo(y,S)}}}return};function dk(e,t){if(!Pi(e)||!Pi(t))return!1;return e.data.current.sortable.containerId===t.data.current.sortable.containerId}function gP(e,t){if(!Pi(e)||!Pi(t))return!1;if(!dk(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}var{min:Ja,max:Kt,round:jr,floor:Yr}=Math,ca=(e)=>({x:e,y:e}),IP={left:"right",right:"left",bottom:"top",top:"bottom"};function gk(e,t,a){return Kt(e,Ja(t,a))}function $a(e,t){return typeof e==="function"?e(t):e}function Ca(e){return e.split("-")[0]}function Bn(e){return e.split("-")[1]}function Vi(e){return e==="x"?"y":"x"}function Vu(e){return e==="y"?"height":"width"}function Jt(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function qu(e){return Vi(Jt(e))}function Ik(e,t,a){if(a===void 0)a=!1;let o=Bn(e),n=qu(e),s=Vu(n),i=n==="x"?o===(a?"end":"start")?"right":"left":o==="start"?"bottom":"top";if(t.reference[s]>t.floating[s])i=Xr(i);return[i,Xr(i)]}function Sk(e){let t=Xr(e);return[Gi(e),t,Gi(t)]}function Gi(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var pk=["left","right"],hk=["right","left"],SP=["top","bottom"],vP=["bottom","top"];function yP(e,t,a){switch(e){case"top":case"bottom":if(a)return t?hk:pk;return t?pk:hk;case"left":case"right":return t?SP:vP;default:return[]}}function vk(e,t,a,o){let n=Bn(e),s=yP(Ca(e),a==="start",o);if(n){if(s=s.map((i)=>i+"-"+n),t)s=s.concat(s.map(Gi))}return s}function Xr(e){let t=Ca(e);return IP[t]+e.slice(t.length)}function bP(e){var t,a,o,n;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(o=e.bottom)!=null?o:0,left:(n=e.left)!=null?n:0}}function yk(e){return typeof e!=="number"?bP(e):{top:e,right:e,bottom:e,left:e}}function Po(e){let{x:t,y:a,width:o,height:n}=e;return{width:o,height:n,top:a,left:t,right:t+o,bottom:a+n,x:t,y:a}}function bk(e,t,a){let{reference:o,floating:n}=e,s=Jt(t),i=qu(t),l=Vu(i),c=Ca(t),u=s==="y",f=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,d=o[l]/2-n[l]/2,p;switch(c){case"top":p={x:f,y:o.y-n.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:m};break;case"left":p={x:o.x-n.width,y:m};break;default:p={x:o.x,y:o.y}}let v=Bn(t);if(v)p[i]+=d*(v==="end"?1:-1)*(a&&u?-1:1);return p}async function Ck(e,t){var a;if(t===void 0)t={};let{x:o,y:n,platform:s,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:d=!1,padding:p=0}=$a(t,e),v=yk(p),C=l[d?m==="floating"?"reference":"floating":m],g=Po(await s.getClippingRect({element:((a=await(s.isElement==null?void 0:s.isElement(C)))!=null?a:!0)?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),I=m==="floating"?{x:o,y:n,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),y=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},w=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:I,offsetParent:S,strategy:c}):I);return{top:(g.top-w.top+v.top)/y.y,bottom:(w.bottom-g.bottom+v.bottom)/y.y,left:(g.left-w.left+v.left)/y.x,right:(w.right-g.right+v.right)/y.x}}var CP=50,wk=async(e,t,a)=>{let{placement:o="bottom",strategy:n="absolute",middleware:s=[],platform:i}=a,l=i.detectOverflow?i:{...i,detectOverflow:Ck},c=await(i.isRTL==null?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:n}),{x:f,y:m}=bk(u,o,c),d=o,p=0,v={};for(let b=0;b<s.length;b++){let C=s[b];if(!C)continue;let{name:g,fn:I}=C,{x:S,y,data:w,reset:T}=await I({x:f,y:m,initialPlacement:o,placement:d,strategy:n,middlewareData:v,rects:u,platform:l,elements:{reference:e,floating:t}});if(f=S!=null?S:f,m=y!=null?y:m,v[g]={...v[g],...w},T&&p<CP){if(p++,typeof T==="object"){if(T.placement)d=T.placement;if(T.rects)u=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:n}):T.rects;({x:f,y:m}=bk(u,d,c))}b=-1}}return{x:f,y:m,placement:d,strategy:n,middlewareData:v}};var Ak=function(e){if(e===void 0)e={};return{name:"flip",options:e,async fn(t){var a,o;let{placement:n,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...C}=$a(e,t);if((a=s.arrow)!=null&&a.alignmentOffset)return{};let g=Ca(n),I=Jt(l),S=Ca(l)===l,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),w=d||(S||!b?[Xr(l)]:Sk(l)),T=v!=="none";if(!d&&T)w.push(...vk(l,b,v,y));let x=[l,...w],E=await c.detectOverflow(t,C),L=[],D=((o=s.flip)==null?void 0:o.overflows)||[];if(f)L.push(E[g]);if(m){let ie=Ik(n,i,y);L.push(E[ie[0]],E[ie[1]])}if(D=[...D,{placement:n,overflows:L}],!L.every((ie)=>ie<=0)){var N,oe;let ie=(((N=s.flip)==null?void 0:N.index)||0)+1,de=x[ie];if(de){if(!(m==="alignment"?I!==Jt(de):!1)||D.every((je)=>Jt(je.placement)===I?je.overflows[0]>0:!0))return{data:{index:ie,overflows:D},reset:{placement:de}}}let Xe=(oe=D.filter((pe)=>pe.overflows[0]<=0).sort((pe,je)=>pe.overflows[1]-je.overflows[1])[0])==null?void 0:oe.placement;if(!Xe)switch(p){case"bestFit":{var ne;let pe=(ne=D.filter((je)=>{if(T){let B=Jt(je.placement);return B===I||B==="y"}return!0}).map((je)=>[je.placement,je.overflows.filter((B)=>B>0).reduce((B,k)=>B+k,0)]).sort((je,B)=>je[1]-B[1])[0])==null?void 0:ne[0];if(pe)Xe=pe;break}case"initialPlacement":Xe=l;break}if(n!==Xe)return{reset:{placement:Xe}}}return{}}}};var Tk=new Set(["left","top"]);async function wP(e,t){let{placement:a,platform:o,elements:n}=e,s=await(o.isRTL==null?void 0:o.isRTL(n.floating)),i=Ca(a),l=Bn(a),c=Jt(a)==="y",u=Tk.has(i)?-1:1,f=s&&c?-1:1,m=$a(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:v}=typeof m==="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};if(l&&typeof v==="number")p=l==="end"?v*-1:v;return c?{x:p*f,y:d*u}:{x:d*u,y:p*f}}var xk=function(e){if(e===void 0)e=0;return{name:"offset",options:e,async fn(t){var a,o;let{x:n,y:s,placement:i,middlewareData:l}=t,c=await wP(t,e);if(i===((a=l.offset)==null?void 0:a.placement)&&(o=l.arrow)!=null&&o.alignmentOffset)return{};return{x:n+c.x,y:s+c.y,data:{...c,placement:i}}}}},Mk=function(e){if(e===void 0)e={};return{name:"shift",options:e,async fn(t){let{x:a,y:o,placement:n,platform:s}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:(I)=>{let{x:S,y}=I;return{x:S,y}}},...u}=$a(e,t),f={x:a,y:o},m=await s.detectOverflow(t,u),d=Jt(n),p=Vi(d),v=f[p],b=f[d],C=(I,S)=>gk(S+m[I==="y"?"top":"left"],S,S-m[I==="y"?"bottom":"right"]);if(i)v=C(p,v);if(l)b=C(d,b);let g=c.fn({...t,[p]:v,[d]:b});return{...g,data:{x:g.x-a,y:g.y-o,enabled:{[p]:i,[d]:l}}}}}},Dk=function(e){if(e===void 0)e={};return{options:e,fn(t){var a,o;let{x:n,y:s,placement:i,rects:l,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=$a(e,t),d={x:n,y:s},p=Jt(i),v=Vi(p),b=d[v],C=d[p],g=$a(u,t),I=typeof g==="number"?{mainAxis:g,crossAxis:0}:{mainAxis:(a=g.mainAxis)!=null?a:0,crossAxis:(o=g.crossAxis)!=null?o:0};if(f){let w=v==="y"?"height":"width",T=l.reference[v]-l.floating[w]+I.mainAxis,x=l.reference[v]+l.reference[w]-I.mainAxis;if(b<T)b=T;else if(b>x)b=x}if(m){var S,y;let w=v==="y"?"width":"height",T=Tk.has(Ca(i)),x=l.reference[p]-l.floating[w]+(T?((S=c.offset)==null?void 0:S[p])||0:0)+(T?0:I.crossAxis),E=l.reference[p]+l.reference[w]+(T?0:((y=c.offset)==null?void 0:y[p])||0)-(T?I.crossAxis:0);if(C<x)C=x;else if(C>E)C=E}return{[v]:b,[p]:C}}}},Ek=function(e){if(e===void 0)e={};return{name:"size",options:e,async fn(t){let{placement:a,rects:o,platform:n,elements:s}=t,{apply:i=()=>{},...l}=$a(e,t),c=await n.detectOverflow(t,l),u=Ca(a),f=Bn(a),m=Jt(a)==="y",{width:d,height:p}=o.floating,v,b;if(u==="top"||u==="bottom")v=u,b=f===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right";else b=u,v=f==="end"?"top":"bottom";let C=p-c.top-c.bottom,g=d-c.left-c.right,I=Ja(p-c[v],C),S=Ja(d-c[b],g),y=t.middlewareData.shift,w=!y,T=I,x=S;if(y!=null&&y.enabled.x)x=g;if(y!=null&&y.enabled.y)T=C;if(w&&!f)if(m)x=d-2*Kt(c.left,c.right);else T=p-2*Kt(c.top,c.bottom);await i({...t,availableWidth:x,availableHeight:T});let E=await n.getDimensions(s.floating);if(d!==E.width||p!==E.height)return{reset:{rects:!0}};return{}}}};function qi(){return typeof window<"u"}function qo(e){if(Rk(e))return(e.nodeName||"").toLowerCase();return"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(Rk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rk(e){if(!qi())return!1;return e instanceof Node||e instanceof dt(e).Node}function $t(e){if(!qi())return!1;return e instanceof Element||e instanceof dt(e).Element}function wa(e){if(!qi())return!1;return e instanceof HTMLElement||e instanceof dt(e).HTMLElement}function Lk(e){if(!qi()||typeof ShadowRoot>"u")return!1;return e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}function Qr(e){let{overflow:t,overflowX:a,overflowY:o,display:n}=ea(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+a)&&n!=="inline"&&n!=="contents"}function Bk(e){return/^(table|td|th)$/.test(qo(e))}function Wr(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var AP=/transform|translate|scale|rotate|perspective|filter/,TP=/paint|layout|strict|content/,Go=(e)=>!!e&&e!=="none",Zu;function Zi(e){let t=$t(e)?ea(e):e;return Go(t.transform)||Go(t.translate)||Go(t.scale)||Go(t.rotate)||Go(t.perspective)||!Xi()&&(Go(t.backdropFilter)||Go(t.filter))||AP.test(t.willChange||"")||TP.test(t.contain||"")}function Nk(e){let t=eo(e);while(wa(t)&&!Nn(t)){if(Zi(t))return t;else if(Wr(t))return null;t=eo(t)}return null}function Xi(){if(Zu==null)Zu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none");return Zu}function Nn(e){return/^(html|body|#document)$/.test(qo(e))}function ea(e){return dt(e).getComputedStyle(e)}function Kr(e){if($t(e))return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop};return{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eo(e){if(qo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Lk(e)&&e.host||ua(e);return Lk(t)?t.host:t}function Ok(e){let t=eo(e);if(Nn(t))return(e.ownerDocument||e).body;if(wa(t)&&Qr(t))return t;return Ok(t)}function Vo(e,t,a){var o;if(t===void 0)t=[];if(a===void 0)a=!0;let n=Ok(e),s=n===((o=e.ownerDocument)==null?void 0:o.body),i=dt(n);if(s){let l=ji(i);return t.concat(i,i.visualViewport||[],Qr(n)?n:[],l&&a?Vo(l):[])}else return t.concat(n,Vo(n,[],a))}function ji(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zk(e){let t=ea(e),a=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=wa(e),s=n?e.offsetWidth:a,i=n?e.offsetHeight:o,l=jr(a)!==s||jr(o)!==i;if(l)a=s,o=i;return{width:a,height:o,$:l}}function ju(e){return!$t(e)?e.contextElement:e}function On(e){let t=ju(e);if(!wa(t))return ca(1);let a=t.getBoundingClientRect(),{width:o,height:n,$:s}=zk(t),i=(s?jr(a.width):a.width)/o,l=(s?jr(a.height):a.height)/n;if(!i||!Number.isFinite(i))i=1;if(!l||!Number.isFinite(l))l=1;return{x:i,y:l}}var xP=ca(0);function Uk(e){let t=dt(e);if(!Xi()||!t.visualViewport)return xP;return{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function MP(e,t,a){if(t===void 0)t=!1;return!!a&&t&&a===dt(e)}function Zo(e,t,a,o){if(t===void 0)t=!1;if(a===void 0)a=!1;let n=e.getBoundingClientRect(),s=ju(e),i=ca(1);if(t)if(o){if($t(o))i=On(o)}else i=On(e);let l=MP(s,a,o)?Uk(s):ca(0),c=(n.left+l.x)/i.x,u=(n.top+l.y)/i.y,f=n.width/i.x,m=n.height/i.y;if(s&&o){let d=dt(s),p=$t(o)?dt(o):o,v=d,b=ji(v);while(b&&p!==v){let C=On(b),g=b.getBoundingClientRect(),I=ea(b),S=g.left+(b.clientLeft+parseFloat(I.paddingLeft))*C.x,y=g.top+(b.clientTop+parseFloat(I.paddingTop))*C.y;c*=C.x,u*=C.y,f*=C.x,m*=C.y,c+=S,u+=y,v=dt(b),b=ji(v)}}return Po({width:f,height:m,x:c,y:u})}function Yi(e,t){let a=Kr(e).scrollLeft;if(!t)return Zo(ua(e)).left+a;return t.left+a}function Fk(e,t){let a=e.getBoundingClientRect(),o=a.left+t.scrollLeft-Yi(e,a),n=a.top+t.scrollTop;return{x:o,y:n}}function DP(e){let{elements:t,rect:a,offsetParent:o,strategy:n}=e,s=n==="fixed",i=ua(o),l=t?Wr(t.floating):!1;if(o===i||l&&s)return a;let c={scrollLeft:0,scrollTop:0},u=ca(1),f=ca(0),m=wa(o);if(m||!s){if(qo(o)!=="body"||Qr(i))c=Kr(o);if(m){let p=Zo(o);u=On(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}}let d=i&&!m&&!s?Fk(i,c):ca(0);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:a.y*u.y-c.scrollTop*u.y+f.y+d.y}}function EP(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function LP(e){let t=Kr(e),a=e.ownerDocument.body,o=Kt(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),n=Kt(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight),s=-t.scrollLeft+Yi(e),i=-t.scrollTop;if(ea(a).direction==="rtl")s+=Kt(e.clientWidth,a.clientWidth)-o;return{width:o,height:n,x:s,y:i}}var RP=25;function BP(e,t,a){if(a===void 0)a="viewport";let o=a==="layoutViewport",n=dt(e),s=ua(e),i=n.visualViewport,l=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){let d=!Xi()||t==="fixed";if(o){if(!d)u=-i.offsetLeft,f=-i.offsetTop}else if(l=i.width,c=i.height,d)u=i.offsetLeft,f=i.offsetTop}if(Yi(s)<=0){let d=s.ownerDocument,p=d.body,v=getComputedStyle(p),b=d.compatMode==="CSS1Compat"?parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0:0,C=Math.abs(s.clientWidth-p.clientWidth-b),g=getComputedStyle(s).scrollbarGutter==="stable both-edges"?C/2:C;if(g<=RP)l-=g}return{width:l,height:c,x:u,y:f}}function NP(e,t){let a=Zo(e,!0,t==="fixed"),o=a.top+e.clientTop,n=a.left+e.clientLeft,s=On(e),i=e.clientWidth*s.x,l=e.clientHeight*s.y,c=n*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Hk(e,t,a){let o;if(t==="viewport"||t==="layoutViewport")o=BP(e,a,t);else if(t==="document")o=LP(ua(e));else if($t(t))o=NP(t,a);else{let n=Uk(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Po(o)}function OP(e,t){let a=t.get(e);if(a)return a;let o=Vo(e,[],!1).filter((l)=>$t(l)&&qo(l)!=="body"),n=null,s=ea(e).position==="fixed",i=s?eo(e):e;while($t(i)&&!Nn(i)){let l=ea(i),c=Zi(i),u=n?n.position:s?"fixed":"";if(!c&&(u==="fixed"||u==="absolute"&&l.position==="static"))o=o.filter((m)=>m!==i);else n=l;i=eo(i)}return t.set(e,o),o}function HP(e){let{element:t,boundary:a,rootBoundary:o,strategy:n}=e,i=[...a==="clippingAncestors"?Wr(t)?[]:OP(t,this._c):[].concat(a),o],l=Hk(t,i[0],n),c=l.top,u=l.right,f=l.bottom,m=l.left;for(let d=1;d<i.length;d++){let p=Hk(t,i[d],n);c=Kt(p.top,c),u=Ja(p.right,u),f=Ja(p.bottom,f),m=Kt(p.left,m)}return{width:u-m,height:f-c,x:m,y:c}}function kP(e){let{width:t,height:a}=zk(e);return{width:t,height:a}}function zP(e,t,a){let o=wa(t),n=ua(t),s=a==="fixed",i=Zo(e,!0,s,t),l={scrollLeft:0,scrollTop:0},c=ca(0);if(o||!s){if(qo(t)!=="body"||Qr(n))l=Kr(t);if(o){let d=Zo(t,!0,s,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}}if(!o&&n)c.x=Yi(n);let u=n&&!o&&!s?Fk(n,l):ca(0),f=i.left+l.scrollLeft-c.x-u.x,m=i.top+l.scrollTop-c.y-u.y;return{x:f,y:m,width:i.width,height:i.height}}function Xu(e){return ea(e).position==="static"}function kk(e,t){if(!wa(e)||ea(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;if(ua(e)===a)a=a.ownerDocument.body;return a}function _k(e,t){let a=dt(e);if(Wr(e))return a;if(!wa(e)){let n=eo(e);while(n&&!Nn(n)){if($t(n)&&!Xu(n))return n;n=eo(n)}return a}let o=kk(e,t);while(o&&Bk(o)&&Xu(o))o=kk(o,t);if(o&&Nn(o)&&Xu(o)&&!Zi(o))return a;return o||Nk(e)||a}var UP=async function(e){let t=this.getOffsetParent||_k,a=this.getDimensions,o=await a(e.floating);return{reference:zP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function FP(e){return ea(e).direction==="rtl"}var Pk={convertOffsetParentRelativeRectToViewportRelativeRect:DP,getDocumentElement:ua,getClippingRect:HP,getOffsetParent:_k,getElementRects:UP,getClientRects:EP,getDimensions:kP,getScale:On,isElement:$t,isRTL:FP};function Gk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _P(e,t,a){let o=null,n,s=ua(e);function i(){var f;clearTimeout(n),(f=o)==null||f.disconnect(),o=null}function l(f,m){if(f===void 0)f=!1;if(m===void 0)m=1;i();let d=e.getBoundingClientRect(),{left:p,top:v,width:b,height:C}=d;if(!f)t();if(!b||!C)return;let g=Yr(v),I=Yr(s.clientWidth-(p+b)),S=Yr(s.clientHeight-(v+C)),y=Yr(p),T={rootMargin:-g+"px "+-I+"px "+-S+"px "+-y+"px",threshold:Kt(0,Ja(1,m))||1},x=!0;function E(L){let D=L[0].intersectionRatio;if(!Gk(d,e.getBoundingClientRect()))return l();if(D!==m){if(!x)return l();if(!D)n=setTimeout(()=>{l(!1,0.0000001)},1000);else l(!1,D)}x=!1}try{o=new IntersectionObserver(E,{...T,root:s.ownerDocument})}catch(L){o=new IntersectionObserver(E,T)}o.observe(e)}let c=dt(e),u=()=>l(a);return c.addEventListener("resize",u),l(!0),()=>{c.removeEventListener("resize",u),i()}}function Yu(e,t,a,o){if(o===void 0)o={};let{ancestorScroll:n=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver==="function",layoutShift:l=typeof IntersectionObserver==="function",animationFrame:c=!1}=o,u=ju(e),f=n||s?[...u?Vo(u):[],...t?Vo(t):[]]:[];f.forEach((g)=>{n&&g.addEventListener("scroll",a),s&&g.addEventListener("resize",a)});let m=u&&l?_P(u,a,s):null,d=-1,p=null;if(i){if(p=new ResizeObserver((g)=>{let[I]=g;if(I&&I.target===u&&p&&t)p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)});a()}),u&&!c)p.observe(u);if(t)p.observe(t)}let v,b=c?Zo(e):null;if(c)C();function C(){let g=Zo(e);if(b&&!Gk(b,g))a();b=g,v=requestAnimationFrame(C)}return a(),()=>{var g;if(f.forEach((I)=>{n&&I.removeEventListener("scroll",a),s&&I.removeEventListener("resize",a)}),m==null||m(),(g=p)==null||g.disconnect(),p=null,c)cancelAnimationFrame(v)}}var Vk=xk;var qk=Mk,Zk=Ak,Xk=Ek;var jk=Dk,Qi=(e,t,a)=>{let o=new Map,n=a!=null?a:{},s={...Pk,...n.platform,_c:o};return wk(e,t,{...n,platform:s})};var Wi=O(U(),1),PP=O(U(),1),GP=O(An(),1);var Yk=(e,t)=>{let a=Vk(e);return{name:a.name,fn:a.fn,options:[e,t]}},Qk=(e,t)=>{let a=qk(e);return{name:a.name,fn:a.fn,options:[e,t]}},Wk=(e,t)=>({fn:jk(e).fn,options:[e,t]}),Kk=(e,t)=>{let a=Zk(e);return{name:a.name,fn:a.fn,options:[e,t]}},Jk=(e,t)=>{let a=Xk(e);return{name:a.name,fn:a.fn,options:[e,t]}};function VP({body:e,ctx:t}){let[a,o]=R.useState(()=>{let i={...e.initialValues};for(let l of e.fields)if(l.kind!=="button"&&l.name&&i[l.name]===void 0&&"defaultValue"in l)i[l.name]=l.defaultValue;return i}),n=(i,l)=>o((c)=>({...c,[i]:l})),s=()=>e.onSubmit(a,t);return h.jsxs("form",{className:"fm-form flex flex-col gap-2 px-2 py-2",onSubmit:(i)=>{i.preventDefault(),s()},children:[e.fields.map((i,l)=>h.jsx(qP,{field:i,values:a,setValue:n,ctx:t},i.name??l)),e.submit!==null&&h.jsx("button",{type:"submit",className:"mt-2 inline-flex h-8 items-center justify-center rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:e.submit?.label??"Save"})]})}function qP({field:e,values:t,setValue:a,ctx:o}){if(e.kind==="button")return h.jsx("button",{type:"button",onClick:()=>e.onClick(t,o),className:"inline-flex h-8 items-center justify-center rounded-md bg-secondary px-3 text-sm font-medium hover:bg-secondary/80",children:typeof e.label==="function"?e.label():e.label});let n=e.name;if(!n)return null;if(typeof e.hidden==="function"?e.hidden(t):e.hidden)return null;let i=e.label!=null?h.jsx("label",{className:"text-xs text-muted-foreground",children:typeof e.label==="function"?e.label():e.label}):null;switch(e.kind){case"switch":{let l=!!t[n];return h.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-md px-1 py-1.5",children:[h.jsx("span",{className:"text-sm",children:typeof e.label==="function"?e.label():e.label}),h.jsx("button",{type:"button",role:"switch","aria-checked":l,onClick:()=>a(n,!l),className:Y("inline-flex h-4 w-7 shrink-0 items-center rounded-full transition-colors",l?"bg-primary":"bg-muted"),children:h.jsx("span",{className:Y("block h-3 w-3 rounded-full bg-background shadow transition-transform",l?"translate-x-3.5":"translate-x-0.5")})})]})}case"checkbox":{let l=!!t[n];return h.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[h.jsx("input",{type:"checkbox",checked:l,onChange:(c)=>a(n,c.target.checked),className:"size-4 rounded border-border"}),typeof e.label==="function"?e.label():e.label]})}case"text":case"textarea":{let l=t[n]??"",c=e.kind==="textarea"?"textarea":"input";return h.jsxs("div",{className:"flex flex-col gap-1",children:[i,h.jsx(c,{value:l,placeholder:e.placeholder,onChange:(u)=>a(n,u.target.value),className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm"})]})}case"select":{let l=t[n]??"",c=typeof e.options==="function"?e.options():e.options;return h.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-md px-1 py-1.5",children:[h.jsx("span",{className:"text-sm",children:typeof e.label==="function"?e.label():e.label}),h.jsx("select",{value:l,onChange:(u)=>a(n,u.target.value),className:"h-7 rounded-md border border-input bg-transparent px-2 text-sm",children:c.map((u)=>h.jsx("option",{value:String(u.id),children:u.name},String(u.id)))})]})}case"custom":return e.render({value:t[n],setValue:(l)=>a(n,l),ctx:o});default:return h.jsxs("div",{className:"text-xs text-muted-foreground",children:["[",e.kind," field not yet rendered]"]})}}var $k=typeof navigator<"u"&&/Mac/i.test(navigator.platform||navigator.userAgent||"");function Ju(e,t,a,o){R.useEffect(()=>{if(!e||t?.disabled)return;let n=t?.navigation??"1d";if(n==="none")return;let s=t?.defaults??{},i=s.closeOnEscape??!0,l=s.selectOnEnter??!0,c=s.selectOnTab??!1,u=s.cycleWrap??!0,f=(m)=>{if(t?.onKeyDown?.(m,o)===!0)return;if(t?.shortcuts){for(let L of t.shortcuts)if(ZP(m,L.keys)){if(L.preventDefault!==!1)m.preventDefault();L.handler(m);return}}let{count:d,index:p,setIndex:v,onSelect:b,onClose:C,columns:g}=a,I=(L)=>{if(d===0)return-1;if(u)return(L%d+d)%d;return Math.max(0,Math.min(d-1,L))},S=m.key.toLowerCase(),y=S==="arrowup"||$k&&m.ctrlKey&&S==="p",w=S==="arrowdown"||$k&&m.ctrlKey&&S==="n",T=S==="arrowleft",x=S==="arrowright",E=(L)=>L===1?0:Math.max(0,d-1);if(y){m.preventDefault();let L=n==="2d-grid"?g??1:1;v(p<0?E(-1):I(p-L));return}if(w){m.preventDefault();let L=n==="2d-grid"?g??1:1;v(p<0?E(1):I(p+L));return}if(n==="2d-grid"&&(T||x)){m.preventDefault(),v(p<0?E(T?-1:1):I(p+(T?-1:1)));return}if(n!=="2d-grid"&&x){if(a.onSubmenuOpen?.(p)){m.preventDefault();return}}if(n!=="2d-grid"&&T&&a.closeOnArrowLeft){m.preventDefault(),C();return}if(S==="home"){m.preventDefault(),v(0);return}if(S==="end"){m.preventDefault(),v(Math.max(0,d-1));return}if(l&&S==="enter"){if(m.preventDefault(),p>=0)b(p);return}if(c&&S==="tab"){if(m.preventDefault(),p>=0)b(p);return}if(i&&S==="escape")m.preventDefault(),C()};return e.addEventListener("keydown",f),()=>e.removeEventListener("keydown",f)},[e,t,a,o])}function ZP(e,t){return t.split(",").map((o)=>o.trim().toLowerCase()).some((o)=>{let n=o.split("+").map((m)=>m.trim()),s=new Set(n),i=n[n.length-1],l=s.has("shift"),c=s.has("alt"),u=s.has("ctrl"),f=s.has("cmd")||s.has("meta");return e.key.toLowerCase()===i&&e.shiftKey===l&&e.altKey===c&&e.ctrlKey===u&&e.metaKey===f})}function Jr(e,t,a){let[o,n]=R.useState({items:[],loading:!1,hasMore:!1}),s=R.useRef(0),i=R.useRef(0);R.useEffect(()=>{if(e.kind==="static"){n({items:e.items,loading:!1,hasMore:!1});return}if(e.kind==="prop"){n({items:e.getItems(a.data),loading:!1,hasMore:!1});return}if(e.kind==="sections"){let f=e.getSections(a.data).flatMap((m)=>[...m.items]);n({items:f,loading:!1,hasMore:!1});return}if(e.kind==="async"){s.current=0,i.current+=1;let u=i.current;return n((f)=>({...f,loading:!0,items:[]})),e.fetch({offset:0,limit:e.pageSize,filter:t}).then((f)=>{if(u!==i.current)return;n({items:f.items,loading:!1,hasMore:f.hasMore??!1}),s.current=f.items.length}).catch(()=>{if(u!==i.current)return;n((f)=>({...f,loading:!1}))}),()=>{i.current+=1}}if(e.kind==="store"){n({items:e.selector()??[],loading:!1,hasMore:!1});return}if(e.kind==="composite"){let u=[];for(let d of e.sources)if(d.kind==="static")u.push(...d.items);else if(d.kind==="prop")u.push(...d.getItems(a.data));else if(d.kind==="sections")for(let p of d.getSections(a.data))u.push(...p.items);else if(d.kind==="store")u.push(...d.selector()??[]);let f=e.dedupeBy,m=f?Array.from(new Map(u.map((d)=>[f(d),d])).values()):u;n({items:m,loading:!1,hasMore:!1});return}},[e,t,a.data]);let l=R.useRef(!1);return R.useEffect(()=>{l.current=o.loading},[o.loading]),{...o,loadMore:()=>{if(e.kind!=="async"||!o.hasMore)return;if(l.current)return;l.current=!0;let u=i.current;n((f)=>({...f,loading:!0})),e.fetch({offset:s.current,limit:e.pageSize,filter:t}).then((f)=>{if(u!==i.current)return;n((m)=>({items:[...m.items,...f.items],loading:!1,hasMore:f.hasMore??!1})),s.current+=f.items.length,l.current=!1}).catch(()=>{if(u!==i.current)return;n((f)=>({...f,loading:!1})),l.current=!1})}}}function az(e,t){if(!t)return e;let a=t.toLowerCase();return e.filter((o)=>{let n=o?.name;return(typeof n==="string"?n:JSON.stringify(o)).toLowerCase().includes(a)})}function XP({body:e,ctx:t,filter:a,onCloseRequest:o}){let{items:n,loading:s}=Jr(e.source,a,t),i=R.useRef(null),[l,c]=R.useState(0),[u,f]=R.useState(0);R.useEffect(()=>{let v=i.current;if(!v||e.columns!=="auto"||!e.responsive)return;let b=new ResizeObserver(()=>c(v.clientWidth));return b.observe(v),c(v.clientWidth),()=>b.disconnect()},[e.columns,e.responsive]);let m=R.useMemo(()=>{if(e.columns==="auto"){let v=e.responsive?.minCellWidth??64;return Math.max(1,Math.floor((l||240)/v))}return e.columns},[e.columns,e.responsive,l]),d=Math.ceil(n.length/m),p=Du({count:d,getScrollElement:()=>i.current,estimateSize:()=>e.rowHeight+(e.gap??4),overscan:4});if(Ju(i.current,{navigation:e.keyboardNav2D?"2d-grid":"1d"},{count:n.length,index:u,setIndex:(v)=>{f(v);let b=Math.floor(v/m);p.scrollToIndex(b,{align:"auto"})},onSelect:(v)=>{let b=n[v];if(b!=null)e.onCellClick?.(b,t)},onClose:o,columns:m},t),!s&&n.length===0&&e.emptyState)return h.jsx("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-sm text-muted-foreground",children:typeof e.emptyState.message==="string"&&e.emptyState.message||"No items"});return h.jsxs("div",{ref:i,className:"fm-grid relative max-h-[60vh] min-h-[80px] overflow-y-auto outline-none",role:"grid",children:[h.jsx("div",{style:{height:p.getTotalSize(),position:"relative",width:"100%"},children:p.getVirtualItems().map((v)=>{let b=v.index*m,C=n.slice(b,b+m);return h.jsx("div",{role:"row",style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${v.start}px)`,display:"grid",gridTemplateColumns:`repeat(${m}, minmax(0, 1fr))`,gap:e.gap??4,padding:e.gap??4},children:C.map((g,I)=>{let S=b+I;return h.jsx("div",{role:"gridcell","aria-selected":S===u,onMouseEnter:()=>f(S),onClick:()=>e.onCellClick?.(g,t),onContextMenu:(y)=>{if(!e.onCellContextMenu)return;y.preventDefault(),e.onCellContextMenu(g,t)},className:Y("flex items-center justify-center rounded-md border border-transparent transition-colors cursor-pointer",S===u&&"border-border bg-accent"),style:{height:e.rowHeight},children:e.renderCell(g,t)},S)})},v.key)})}),s&&h.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Loading…"})]})}function Ve({icon:e,defaultSize:t=16}){if(!e)return null;let a=e.icon,o={};if(e.color)o.color=e.color;return h.jsx(a,{size:e.size??t,weight:e.weight,className:e.className,style:o,"aria-label":e["aria-label"]})}function ce(e,t){if(e==null)return null;if(typeof e==="function")return e(t);return e}function Qe(e,t){if(typeof e==="function")return e(t);return e}function jP({item:e,spec:t,active:a,ctx:o,onActivate:n,extra:s,prefix:i}){let l=t,c=s?.filter??"",u=l.useFilterAsName&&c?`Add "${c}"`:ce(l.name,e);return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>l.onClick(c||void 0,o),className:"fm-row",children:[i,h.jsx("span",{className:"fm-row__icon",children:l.icon?h.jsx(Ve,{icon:l.icon,defaultSize:14}):h.jsx(eu,{className:"size-3.5"})}),h.jsx("span",{className:"fm-row__name",children:u})]})}function oz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=i.checked(e),c=Qe(i.disabled,e)??!1,u=Qe(i.readonly,e)??!1,f=typeof i.icon==="function"?i.icon(e):i.icon;return h.jsxs("div",{role:"option","aria-selected":a,"aria-checked":l,"aria-disabled":c||void 0,"data-active":a||void 0,"data-checked":l||void 0,"data-disabled":c||void 0,onMouseEnter:n,onClick:()=>{if(c||u)return;i.onToggle(e,!l,o)},className:Y("fm-row",u&&"fm-row--readonly"),children:[s,f&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:f,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),h.jsx("span",{"aria-hidden":!0,"data-checked":l||void 0,className:"fm-checkbox",children:l&&h.jsx(Rr,{weight:"bold"})})]})}function nz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=typeof i.icon==="function"?i.icon(e):i.icon,u=typeof i.trailing?.icon==="function"?i.trailing.icon(e):i.trailing?.icon;return h.jsxs("div",{role:"option","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,onMouseEnter:n,onClick:(f)=>!l&&i.onClick?.(e,f,o),className:Y("fm-row fm-row--chip"),children:[s,c&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:c,defaultSize:14})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.trailing&&u&&h.jsx("button",{type:"button",onClick:(f)=>{f.stopPropagation(),i.trailing?.onClick?.(e,o)},className:"fm-row__chip-trailing","aria-label":typeof i.trailing.ariaLabel==="function"?i.trailing.ariaLabel(e):i.trailing.ariaLabel??"Toggle",children:h.jsx(Ve,{icon:u,defaultSize:12})}),i.onDelete&&h.jsx("button",{type:"button",onClick:(f)=>{f.stopPropagation(),i.onDelete?.(e,o)},className:"fm-row__chip-delete","aria-label":typeof i.deleteAriaLabel==="function"?i.deleteAriaLabel(e):i.deleteAriaLabel??"Remove",children:h.jsx(Ro,{weight:"bold"})})]})}var YP={default:"text-foreground/80",red:"text-red-500",orange:"text-orange-500",amber:"text-amber-500",yellow:"text-yellow-500",green:"text-emerald-500",teal:"text-teal-500",blue:"text-blue-500",indigo:"text-indigo-500",purple:"text-purple-500",pink:"text-pink-500"},QP={default:"bg-muted",red:"bg-red-500",orange:"bg-orange-500",amber:"bg-amber-500",yellow:"bg-yellow-500",green:"bg-emerald-500",teal:"bg-teal-500",blue:"bg-blue-500",indigo:"bg-indigo-500",purple:"bg-purple-500",pink:"bg-pink-500"};function WP({item:e,spec:t,active:a,ctx:o,onActivate:n}){let s=t,i=String(s.value(e)),l=s.active?.(e)??!1,c=typeof s.scope==="function"?s.scope(e):s.scope,f=(c==="bg"?QP:YP)[i]??"bg-muted";return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>s.onSelect(e,o),className:"fm-row",children:[h.jsx("span",{"aria-hidden":!0,className:Y("fm-swatch",c==="bg"&&f),children:c==="text"&&h.jsx("span",{className:Y("fm-swatch__letter",f),children:"A"})}),h.jsx("span",{className:"fm-row__name",children:ce(s.name,e)}),l&&h.jsx(Rr,{className:"size-3.5 text-[color:var(--fm-muted-fg)]"})]})}function KP({spec:e}){let t=e;return h.jsx("div",{role:"separator",className:"fm-divider",style:t.height?{height:t.height}:void 0})}function rz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=i.icon(e),u=i.relationName(e),f=i.conditionLabel(e),m=i.valuePreview(e),d=i.withMore??Boolean(i.onMore);return h.jsxs("div",{role:"option","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,onMouseEnter:n,onClick:()=>!l&&i.onClick?.(e,o),className:Y("fm-row fm-row--rule"),children:[s,h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:c,defaultSize:14})}),h.jsxs("span",{className:"fm-row__name flex min-w-0 items-baseline gap-1.5",children:[h.jsx("span",{className:"truncate font-medium",children:u}),h.jsx("span",{className:"shrink-0 text-[color:var(--fm-muted-fg)]",children:f}),h.jsx("span",{className:"truncate text-[color:var(--fm-muted-fg)]",children:m})]}),d&&h.jsx("button",{type:"button","aria-label":"More",onClick:(p)=>{p.stopPropagation(),i.onMore?.(e,o)},className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})})]})}function sz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1;if(Qe(i.hidden,e)??!1)return null;let f=Qe(i.arrow,e)??!1,m=Qe(i.withMore,e)??!1,d=Qe(i.isBig,e)??!1,p=Qe(i.pressed,e)??!1,v=typeof i.icon==="function"?i.icon(e):i.icon,b=Qe(i.className,e),C=typeof i.subMenuId==="function"?i.subMenuId(e):i.subMenuId,g=i.subMenuTrigger??"arrowHover",I=i.subMenuHoverMs??200,S=R.useRef(null),y=R.useRef(null),w=()=>{if(!C||l||c)return;let D=i.subMenuData?i.subMenuData(e,o):o.data,N=S.current?.getBoundingClientRect(),oe=N&&N.width>0&&N.height>0?N:void 0;o.open(C,{element:S.current??void 0,data:D,triggerRect:oe})},T=()=>{if(y.current!=null)window.clearTimeout(y.current),y.current=null};return R.useEffect(()=>()=>T(),[e]),h.jsxs("div",{ref:S,role:"option","aria-selected":a,"aria-pressed":p||void 0,"aria-disabled":l||void 0,"aria-haspopup":C?"menu":void 0,"data-active":a||void 0,"data-pressed":p||void 0,"data-disabled":l||void 0,"data-submenu-id":C,onMouseEnter:()=>{if(n(),!C||l||c){T(),o.closeChildren();return}if(g!=="arrowHover")return;T(),y.current=window.setTimeout(w,I)},onMouseLeave:()=>{T()},onClick:(D)=>{if(l||c)return;if(C&&(g==="arrowClick"||g==="replace")){T(),w();return}i.onClick?.(e,D,o)},className:Y("fm-row",d&&"fm-row--big",c&&"fm-row--readonly",b),children:[s,v&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:v,defaultSize:i.iconSize??16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.caption!=null&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),(m||f)&&h.jsxs("span",{className:"fm-row__suffix",children:[m&&h.jsx("button",{type:"button","aria-label":"More",onClick:(D)=>{D.stopPropagation(),i.onMore?.(e,D,o)},className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})}),f&&h.jsx(Lr,{className:"size-4 text-[color:var(--fm-muted-fg)]"})]})]})}function iz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1;return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,"data-disabled":l||void 0,onMouseEnter:n,onClick:(c)=>!l&&i.onClick?.(e,c,o),onContextMenu:(c)=>{if(!i.onContextMenu)return;c.preventDefault(),i.onContextMenu(e,c,o)},className:Y("fm-row",i.withDescription&&"fm-row--big"),children:[s,h.jsx("span",{className:"fm-row__icon",children:i.iconRender(e)}),h.jsxs("div",{className:"fm-row__name flex flex-col leading-tight",children:[h.jsx("span",{className:"truncate",children:ce(i.name,e)}),i.caption!=null&&!i.withDescription&&h.jsx("span",{className:"truncate text-[length:var(--fm-font-size-caption)] text-[color:var(--fm-muted-fg)]",children:ce(i.caption,e)})]}),i.caption!=null&&i.withDescription&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),i.onMore&&h.jsx("button",{type:"button",onClick:(c)=>{c.stopPropagation(),i.onMore?.(e,c,o)},"aria-label":"More",className:"inline-flex size-6 items-center justify-center rounded-md text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]",children:h.jsx(Br,{className:"size-4"})})]})}function lz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=i.selected?.(e)??!1;return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,onMouseEnter:n,onClick:()=>i.onSelect(e,o),className:"fm-row fm-row--big",children:[s,h.jsx("span",{className:"fm-row__icon",children:i.iconRender(e)}),h.jsxs("div",{className:"fm-row__name flex flex-col leading-tight",children:[h.jsx("span",{className:"truncate",children:ce(i.name,e)}),i.identity!=null&&h.jsx("span",{className:"truncate text-[length:var(--fm-font-size-caption)] text-[color:var(--fm-muted-fg)]",children:ce(i.identity,e)})]}),l&&h.jsx(Rr,{className:"size-4 text-[color:var(--fm-accent)]"})]})}function JP({item:e,spec:t}){let a=t;return h.jsx("div",{role:"presentation",className:Y("fm-section",a.className),children:ce(a.name,e)})}function $P({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1,u=typeof i.icon==="function"?i.icon(e):i.icon,f=R.useRef(null),m=()=>{if(!i.subMenuId||l||c)return;let d=f.current?.getBoundingClientRect(),p=d&&d.width>0&&d.height>0?d:void 0;o.open(i.subMenuId,{element:f.current??void 0,data:o.data,triggerRect:p})};return h.jsxs("div",{ref:f,role:"option","aria-haspopup":"menu","aria-selected":a,"aria-disabled":l||void 0,"data-active":a||void 0,"data-submenu-id":i.subMenuId,onMouseEnter:n,onClick:m,className:Y("fm-row",c&&"fm-row--readonly"),children:[s,u&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:u,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),h.jsx(Lr,{className:"size-4 shrink-0 text-[color:var(--fm-muted-fg)]"})]})}function cz({item:e,spec:t,active:a,ctx:o,onActivate:n,prefix:s}){let i=t,l=Qe(i.disabled,e)??!1,c=Qe(i.readonly,e)??!1,u=i.switchValue(e),f=typeof i.icon==="function"?i.icon(e):i.icon,m=Qe(i.className,e);return h.jsxs("div",{role:"option","aria-selected":a,"data-active":a||void 0,"data-disabled":l||c||void 0,onMouseEnter:n,onPointerDown:(p)=>{if(l||c)return;if(p.button!==0)return;p.preventDefault(),i.onSwitch(e,!u,o)},className:Y("fm-row",(l||c)&&"fm-row--readonly",m),children:[s,f&&h.jsx("span",{className:"fm-row__icon",children:h.jsx(Ve,{icon:f,defaultSize:16})}),h.jsx("span",{className:"fm-row__name",children:ce(i.name,e)}),i.caption!=null&&h.jsx("span",{className:"fm-row__caption",children:ce(i.caption,e)}),h.jsx("span",{role:"switch","aria-checked":u,"aria-disabled":l||c||void 0,className:"fm-switch","data-on":u||void 0,children:h.jsx("span",{className:"fm-switch__thumb"})})]})}function eG(e,t){if(e==null)return String(t);return String(e?.id??t)}function tG(e){let t=e.spec,a=eG(e.item,e.index),{attributes:o,listeners:n,setNodeRef:s,transform:i,transition:l,isDragging:c}=fk({id:a}),u={transform:Qt.Transform.toString(i),transition:l,opacity:c?0.55:1,zIndex:c?10:void 0,pointerEvents:c?"none":void 0},f={...e,spec:t.inner,prefix:h.jsx(aG,{dragListeners:n,dragAttributes:o})},m=(()=>{switch(t.inner.kind){case"item":return h.jsx(sz,{...f});case"object":return h.jsx(iz,{...f});case"switch":return h.jsx(cz,{...f});case"checkbox":return h.jsx(oz,{...f});case"chip":return h.jsx(nz,{...f});case"participant":return h.jsx(lz,{...f});case"filterRule":return h.jsx(rz,{...f});case"custom":return h.jsx(h.Fragment,{children:t.inner.render(e.item,e.ctx)});default:return null}})();return h.jsx("div",{ref:s,style:u,"data-fm-drag-source":c||void 0,children:m})}function aG({dragListeners:e,dragAttributes:t}){let a=e?.onPointerDown,o=e?.onKeyDown;return h.jsx("span",{...t,...e,onPointerDown:(n)=>{n.stopPropagation(),a?.(n)},onKeyDown:(n)=>{n.stopPropagation(),o?.(n)},onClick:(n)=>n.stopPropagation(),"aria-label":"Drag to reorder",role:"button",tabIndex:0,className:Y("shrink-0 cursor-grab text-[color:var(--fm-muted-fg)] opacity-50 transition-opacity","hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none active:cursor-grabbing"),"data-fm-drag-handle":!0,children:h.jsx(Wc,{className:"size-3.5"})})}function to(e,t){for(let a of e)if(!a.match||a.match(t))return a;return}function Qu(e){switch(e.spec.kind){case"item":return h.jsx(sz,{...e});case"section":return h.jsx(JP,{...e});case"divider":return h.jsx(KP,{...e});case"switch":return h.jsx(cz,{...e});case"checkbox":return h.jsx(oz,{...e});case"selectNav":return h.jsx($P,{...e});case"color":return h.jsx(WP,{...e});case"add":return h.jsx(jP,{...e});case"object":return h.jsx(iz,{...e});case"participant":return h.jsx(lz,{...e});case"sortable":return h.jsx(tG,{...e});case"chip":return h.jsx(nz,{...e});case"filterRule":return h.jsx(rz,{...e});case"custom":return e.spec.render(e.item,e.ctx);default:return h.jsxs("div",{"data-row-kind":e.spec.kind,className:"px-3 py-2 text-xs text-muted-foreground",children:["[",e.spec.kind," row not yet rendered]"]})}}var oG=32,ez=8;function uz({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){let{items:l,loading:c,hasMore:u,loadMore:f}=Jr(e.source,a,t),m=R.useMemo(()=>{let B=e.source?.kind;if(B==="async"||B==="composite")return l;return az(l,a)},[l,a,e.source]),d=R.useRef(null),[p,v]=R.useState(0),b=i!=null,C=b?i:p;R.useEffect(()=>{if(e.orientation==="horizontal"){v(-1);return}v(m.length>0?nG(m,e.rows):-1)},[m,e.rows,e.orientation]);let g=e.focusOnMount??!0;R.useEffect(()=>{if(!g)return;let B=requestAnimationFrame(()=>{let k=d.current;if(!k)return;let G=document.activeElement;if(G&&G.tagName==="INPUT")return;if(k.contains(G))return;k.focus({preventScroll:!0})});return()=>cancelAnimationFrame(B)},[n,g]);let I=R.useCallback((B)=>{let k=e.virtualized;if(typeof k==="object"&&k.rowHeight)return typeof k.rowHeight==="function"?k.rowHeight(m[B],B):k.rowHeight;let G=to(e.rows,m[B]);if(G?.kind==="section")return 28;if(G?.kind==="divider")return 9;return oG},[e.virtualized,e.rows,m]),S=Du({count:m.length,getScrollElement:()=>d.current,estimateSize:I,overscan:typeof e.virtualized==="object"?e.virtualized.overscan??ez:ez});R.useEffect(()=>{if(!b||i==null||i<0)return;S.scrollToIndex(i,{align:"auto"})},[b,i,S]);let y=R.useMemo(()=>s?.navigation==="2d-grid"?{...s,navigation:"1d"}:s,[s]);Ju(d.current,y,{count:m.length,index:p,setIndex:(B)=>{let k=rG(B,m,e.rows,p);v(k),S.scrollToIndex(k,{align:"auto"})},onSelect:(B)=>{fz(m[B],e.rows,t)},onSubmenuOpen:(B)=>{let k=m[B],G=to(e.rows,k);if(!G||G.kind!=="item"&&G.kind!=="selectNav")return!1;if(!G.subMenuId)return!1;let Q=typeof G.subMenuId==="function"?G.subMenuId(k):G.subMenuId;if(!Q)return!1;let $e=d.current?.querySelector(`[data-index="${B}"] [data-submenu-id]`),ut=$e?.getBoundingClientRect(),Sa=ut&&ut.width>0&&ut.height>0?ut:void 0,et=G.subMenuData?G.subMenuData(k,t):t.data;return t.open(Q,{element:$e??void 0,data:et,triggerRect:Sa}),!0},onClose:o,closeOnArrowLeft:n},t);let w=R.useRef(-1),T=S.getVirtualItems(),x=T.length?T[T.length-1].index:-1;R.useEffect(()=>{if(!e.infiniteScroll)return;if(x<0)return;if(!u||c)return;if(x>=m.length-5&&w.current!==m.length)w.current=m.length,f()},[x,m.length,u,c,e.infiniteScroll,f]);let E=e.sortable,L=R.useMemo(()=>{let B=[];for(let k=0;k<m.length;k++){let G=m[k],Q=to(e.rows,G);if(!Q||Q.kind!=="sortable")continue;B.push(String(G?.id??k))}return B},[m,e.rows]),D=LH(Uu(qr,{activationConstraint:{distance:4}}),Uu(Vr,{coordinateGetter:mk})),[N,oe]=R.useState(null),ne=R.useRef(null),ie=N==null?null:ne.current,de=R.useCallback((B)=>{document.body.setAttribute("data-fm-dragging","true");let k=String(B.active.id);oe(k),ne.current=m.find((G,Q)=>String(G?.id??Q)===k)},[m]),Xe=R.useCallback((B)=>{if(oe(null),!E)return;let{active:k,over:G}=B;if(!G||k.id===G.id)return;let Q=(Sa)=>m.findIndex((et,pn)=>String(et?.id??pn)===Sa),$e=Q(String(k.id)),ut=Q(String(G.id));if($e<0||ut<0)return;E.onReorder($e,ut,t)},[E,m,t]);if(!c&&m.length===0&&e.emptyState){let B=typeof e.emptyState.title==="string"&&e.emptyState.title||typeof e.emptyState.message==="string"&&e.emptyState.message||"No results";return h.jsx("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-sm text-muted-foreground",children:B})}if(e.orientation==="horizontal")return h.jsx("div",{tabIndex:0,className:"fm-list fm-list--horizontal",role:"listbox","aria-orientation":"horizontal",children:m.map((B,k)=>{let G=to(e.rows,B);if(!G)return null;let Q=B?.id,$e=typeof Q==="string"||typeof Q==="number"?Q:k;return h.jsx("div",{"data-index":k,children:Qu({item:B,spec:G,index:k,active:k===C,ctx:t,onActivate:()=>v(k),extra:{filter:a}})},$e)})});let pe=h.jsxs("div",{ref:d,tabIndex:0,className:"fm-list",role:"listbox","aria-orientation":"vertical",children:[h.jsx("div",{style:{height:S.getTotalSize(),position:"relative",width:"100%"},children:S.getVirtualItems().map((B)=>{let k=m[B.index],G=to(e.rows,k);if(!G)return null;return h.jsx("div",{"data-index":B.index,ref:S.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${B.start}px)`},children:Qu({item:k,spec:G,index:B.index,active:B.index===C,ctx:t,onActivate:()=>v(B.index),extra:{filter:a}})},B.key)})}),c&&h.jsx("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"Loading…"})]});if(!E)return pe;let je=[ak,E.axis==="x"?null:ok].filter(Boolean);return h.jsxs(JH,{sensors:D,collisionDetection:(B)=>{let k=OH(B);return k.length?k:_u(B)},modifiers:je,onDragStart:de,onDragEnd:(B)=>{document.body.removeAttribute("data-fm-dragging"),Xe(B)},onDragCancel:()=>{document.body.removeAttribute("data-fm-dragging"),oe(null)},children:[h.jsx(ck,{items:L,strategy:sk,children:pe}),typeof document<"u"&&Ku.createPortal(h.jsx(tk,{children:ie?h.jsx("div",{className:"fm-row-overlay","data-fm-drag-overlay":!0,children:(()=>{let B=to(e.rows,ie);if(!B)return null;return Qu({item:ie,spec:B,index:-1,active:!0,ctx:t,onActivate:()=>{},extra:{filter:a}})})()}):null}),document.body)]})}function fz(e,t,a){if(e==null)return;let o=to(t,e);if(!o)return;let n=new MouseEvent("click",{detail:0});switch(o.kind){case"item":o.onClick?.(e,n,a);return;case"switch":o.onSwitch?.(e,!o.switchValue?.(e),a);return;case"checkbox":o.onToggle?.(e,!o.checked?.(e),a);return;case"color":o.onSelect?.(e,a);return;case"participant":o.onSelect?.(e,a);return;case"add":o.onClick?.(void 0,a);return;case"object":o.onClick?.(e,n,a);return;case"chip":o.onClick?.(e,n,a);return;case"filterRule":o.onClick?.(e,a);return;case"selectNav":{if(!o.subMenuId)return;a.open(o.subMenuId,{data:a.data});return}case"sortable":fz(e,[{...o.inner,match:o.match}],a);return;default:return}}function mz(e,t){let a=to(t,e);if(!a)return!1;return a.kind!=="section"&&a.kind!=="divider"&&a.kind!=="empty"}function nG(e,t){for(let a=0;a<e.length;a++)if(mz(e[a],t))return a;return-1}function rG(e,t,a,o){let n=e>o?1:-1,s=e,i=t.length;while(i-- >0){if(s<0)s=t.length-1;if(s>=t.length)s=0;if(mz(t[s],a))return s;s+=n}return o}function sG({spec:e,ctx:t}){switch(e.kind){case"custom":return h.jsx(h.Fragment,{children:e.render(t)});case"label":return h.jsx(iG,{spec:e,ctx:t});case"divider":return h.jsx("hr",{className:"mx-2 my-1 border-border"});case"searchInput":return h.jsx(lG,{spec:e,ctx:t});case"recentStrip":return h.jsx(cG,{spec:e,ctx:t});case"categoryJump":return h.jsx(uG,{spec:e,ctx:t});case"fileDropZone":return h.jsx(fG,{spec:e,ctx:t});case"monthGrid":return h.jsx(mG,{spec:e,ctx:t});case"emojiGrid":return h.jsx(dz,{spec:e,ctx:t});case"tileGrid":return h.jsx(dG,{spec:e,ctx:t});case"queryBuilder":return h.jsx(pG,{spec:e,ctx:t});case"emptyState":return h.jsx(hG,{spec:e,ctx:t});case"loader":return h.jsx(gG,{spec:e});case"error":return h.jsx(IG,{spec:e,ctx:t});case"banner":return h.jsx(SG,{spec:e,ctx:t});case"linkPreview":return h.jsx(vG,{spec:e});case"tabBar":return h.jsx(yG,{spec:e,ctx:t});case"slider":return h.jsx(bG,{spec:e,ctx:t});case"markdownToolbar":return h.jsx(CG,{spec:e,ctx:t});case"codeEditor":return h.jsx(wG,{spec:e,ctx:t});case"katexPreview":return h.jsx(AG,{spec:e});case"qrCode":return h.jsx(TG,{spec:e});default:return null}}function iG({spec:e}){return h.jsx("div",{className:Y("px-3 py-1 text-xs text-muted-foreground",e.className),children:ce(e.text,void 0)})}function lG({spec:e,ctx:t}){let[a,o]=R.useState(""),n=R.useRef(void 0),s=R.useRef(t);return s.current=t,R.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx("span",{className:"text-muted-foreground",children:e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:14}):h.jsx(Nr,{className:"size-3.5"})}),h.jsx("input",{value:a,placeholder:e.placeholder??"Search…",onChange:(i)=>{o(i.target.value),window.clearTimeout(n.current),n.current=window.setTimeout(()=>e.onChange(i.target.value,s.current),e.debounceMs??200)},className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),a&&h.jsx("button",{type:"button","aria-label":"Clear",onClick:()=>{o(""),e.onChange("",t),e.onClear?.(t)},className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function cG({spec:e,ctx:t}){let{items:a}=Jr(e.source,"",t);if(!a.length)return e.emptyMessage?h.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:e.emptyMessage}):null;return h.jsx("div",{className:"flex items-center gap-1 overflow-x-auto px-2 py-1",children:a.map((o,n)=>h.jsx("button",{type:"button",onClick:()=>e.onSelect?.(o,t),className:"shrink-0 rounded-md p-1 hover:bg-accent",children:e.renderItem(o,t)},n))})}function uG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-center justify-between border-t border-border bg-muted/30 px-1 py-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",children:e.categories.map((a)=>{let o=a.id===e.activeId;return h.jsx("button",{type:"button",title:a.tooltip,onClick:()=>e.onJump(a.id,t),className:Y("inline-flex size-6 items-center justify-center rounded-md text-muted-foreground hover:bg-accent",o&&"bg-accent text-foreground"),children:h.jsx(Ve,{icon:a.icon,defaultSize:14})},a.id)})}),e.trailing&&h.jsx("button",{type:"button",title:e.trailing.tooltip,onClick:()=>e.trailing.onClick(t),className:"inline-flex size-6 items-center justify-center rounded-md text-muted-foreground hover:bg-accent",children:h.jsx(Ve,{icon:e.trailing.icon,defaultSize:14})})]})}function fG({spec:e,ctx:t}){let[a,o]=R.useState(!1),n=R.useRef(null);return R.useEffect(()=>{if(!e.pasteFromClipboard)return;let s=(i)=>{let l=Array.from(i.clipboardData?.files??[]);if(l.length)i.preventDefault(),e.onFiles(l,t)};return window.addEventListener("paste",s),()=>window.removeEventListener("paste",s)},[e,t]),h.jsxs("div",{onClick:()=>e.clickToOpen!==!1&&n.current?.click(),onDragOver:(s)=>{s.preventDefault(),o(!0)},onDragLeave:()=>o(!1),onDrop:(s)=>{s.preventDefault(),o(!1);let i=Array.from(s.dataTransfer.files);if(i.length)e.onFiles(i,t)},className:Y("m-2 flex h-32 flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed text-sm text-muted-foreground transition-colors cursor-pointer",a?"border-primary bg-accent/50 text-foreground":"border-border"),children:[e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:20}):h.jsx(au,{className:"size-5"}),h.jsx("span",{children:ce(e.label,void 0)??"Drop files here"}),h.jsx("input",{ref:n,type:"file",accept:e.accept,multiple:e.multiple,className:"hidden",onChange:(s)=>{let i=Array.from(s.target.files??[]);if(i.length)e.onFiles(i,t);s.target.value=""}})]})}var tz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function mG({spec:e,ctx:t}){let[a,o]=R.useState(()=>new Date(e.value??Date.now())),[n,s]=R.useState("days"),i=(()=>{let C=e.value?new Date(e.value):new Date;return{hh:C.getHours(),mm:C.getMinutes()}})(),[l,c]=R.useState(i),u=(C)=>{let g=new Date(C);if(e.withTime)g.setHours(l.hh,l.mm,0,0);e.onChange(g.getTime(),t)},f=new Date,m=(C,g)=>C.getFullYear()===g.getFullYear()&&C.getMonth()===g.getMonth()&&C.getDate()===g.getDate(),d=h.jsxs("header",{className:"flex items-center justify-between gap-1 px-1 pb-1.5",children:[h.jsx("button",{type:"button",onClick:()=>{if(n==="days")o(new Date(a.getFullYear(),a.getMonth()-1,1));else if(n==="months")o(new Date(a.getFullYear()-1,a.getMonth(),1));else o(new Date(a.getFullYear()-12,a.getMonth(),1))},className:"rounded-md p-1 text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]","aria-label":"Previous",children:h.jsx(qc,{className:"size-4"})}),h.jsxs("div",{className:"flex flex-1 items-center justify-center gap-1",children:[h.jsx("button",{type:"button",onClick:()=>s(n==="months"?"days":"months"),"aria-label":"Pick month",className:"rounded-md px-1.5 py-0.5 text-sm font-medium hover:bg-[color:var(--fm-row-hover-bg)]",children:tz[a.getMonth()]}),h.jsx("button",{type:"button",onClick:()=>s(n==="years"?"days":"years"),"aria-label":"Pick year",className:"rounded-md px-1.5 py-0.5 text-sm font-medium tabular-nums hover:bg-[color:var(--fm-row-hover-bg)]",children:a.getFullYear()})]}),h.jsx("button",{type:"button",onClick:()=>{if(n==="days")o(new Date(a.getFullYear(),a.getMonth()+1,1));else if(n==="months")o(new Date(a.getFullYear()+1,a.getMonth(),1));else o(new Date(a.getFullYear()+12,a.getMonth(),1))},className:"rounded-md p-1 text-[color:var(--fm-muted-fg)] hover:bg-[color:var(--fm-row-hover-bg)]","aria-label":"Next",children:h.jsx(Lr,{className:"size-4"})})]}),p;if(n==="months")p=h.jsx("div",{className:"grid grid-cols-3 gap-1 px-1",children:tz.map((C,g)=>{let I=g===a.getMonth();return h.jsx("button",{type:"button",onClick:()=>{o(new Date(a.getFullYear(),g,1)),s("days")},className:Y("rounded-md py-1.5 text-xs hover:bg-[color:var(--fm-row-hover-bg)]",I&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]"),children:C},C)})});else if(n==="years"){let C=a.getFullYear(),g=e.yearRange?.from??C-50,I=e.yearRange?.to??C+50,S=Math.floor(C/12)*12,y=[];for(let w=0;w<12;w++)y.push(S+w);p=h.jsx("div",{className:"grid grid-cols-3 gap-1 px-1",children:y.map((w)=>{let T=w===C,x=w<g||w>I;return h.jsx("button",{type:"button",disabled:x,onClick:()=>{o(new Date(w,a.getMonth(),1)),s("days")},className:Y("rounded-md py-1.5 text-xs tabular-nums hover:bg-[color:var(--fm-row-hover-bg)]",T&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]",x&&"opacity-30 pointer-events-none"),children:w},w)})})}else{let g=(new Date(a.getFullYear(),a.getMonth(),1).getDay()+6)%7,I=new Date(a.getFullYear(),a.getMonth()+1,0).getDate(),S=[];for(let y=0;y<g;y++)S.push(null);for(let y=1;y<=I;y++)S.push({day:y,date:new Date(a.getFullYear(),a.getMonth(),y)});while(S.length%7!==0)S.push(null);p=h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-7 gap-0.5 text-center text-[10px] text-[color:var(--fm-muted-fg)]",children:["M","T","W","T","F","S","S"].map((y,w)=>h.jsx("span",{className:"py-1",children:y},w))}),h.jsx("div",{className:"grid grid-cols-7 gap-0.5",children:S.map((y,w)=>{if(!y)return h.jsx("span",{},w);let T=e.value&&m(new Date(e.value),y.date),x=m(f,y.date);return h.jsx("button",{type:"button",onClick:()=>u(y.date),onContextMenu:(E)=>{if(!e.onDayContextMenu)return;E.preventDefault(),e.onDayContextMenu(y.date.getTime(),t)},className:Y("flex h-7 items-center justify-center rounded-md text-xs hover:bg-[color:var(--fm-row-hover-bg)]",T&&"bg-[color:var(--fm-accent)] text-[color:var(--fm-accent-fg)] hover:bg-[color:var(--fm-accent)]",!T&&x&&"border border-[color:var(--fm-surface-border)]"),children:y.day},w)})})]})}let v=(C,g)=>{let I=e.value?new Date(e.value):new Date(new Date().setHours(0,0,0,0));I.setHours(C,g,0,0),e.onChange(I.getTime(),t)},b=e.withTime?h.jsxs("div",{className:"mt-2 flex items-center justify-center gap-1 border-t border-[color:var(--fm-surface-border)] pt-2",children:[h.jsx("input",{type:"number",min:0,max:23,value:String(l.hh).padStart(2,"0"),onChange:(C)=>{let g=Math.max(0,Math.min(23,Number(C.target.value)||0));c((I)=>({...I,hh:g})),v(g,l.mm)},className:"w-10 rounded-md border border-[color:var(--fm-surface-border)] bg-transparent px-1 py-0.5 text-center font-mono text-xs tabular-nums","aria-label":"Hours"}),h.jsx("span",{className:"text-[color:var(--fm-muted-fg)]",children:":"}),h.jsx("input",{type:"number",min:0,max:59,value:String(l.mm).padStart(2,"0"),onChange:(C)=>{let g=Math.max(0,Math.min(59,Number(C.target.value)||0));c((I)=>({...I,mm:g})),v(l.hh,g)},className:"w-10 rounded-md border border-[color:var(--fm-surface-border)] bg-transparent px-1 py-0.5 text-center font-mono text-xs tabular-nums","aria-label":"Minutes"})]}):null;return h.jsxs("div",{className:"px-2 py-2 text-sm",children:[d,p,b]})}function dz({spec:e,ctx:t}){let{items:a}=Jr(e.source,"",t),o=a,n=e.columns;return h.jsx("div",{className:"grid p-1",style:{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`,gap:e.gap??2},children:o.map((s,i)=>h.jsx("button",{type:"button",onClick:()=>e.onSelect?.(s,t),onContextMenu:(l)=>{if(!e.onLongPress)return;l.preventDefault(),e.onLongPress(s,t)},className:"flex items-center justify-center rounded-md hover:bg-accent",style:{height:e.rowHeight},children:e.renderTile(s,t)},i))})}function dG({spec:e,ctx:t}){return h.jsx(dz,{spec:e,ctx:t})}function pG({spec:e,ctx:t}){let a=(o,n=0)=>{let s=e.getOperator(o);return h.jsxs("div",{className:Y("flex flex-col gap-1 rounded-md border border-border p-2",n>0&&"ml-4"),children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("select",{value:s,onChange:(i)=>e.onOperatorChange(o,i.target.value,t),className:"h-6 rounded-md border border-input bg-transparent px-1 text-xs",children:e.operatorOptions.map((i)=>h.jsx("option",{value:i.id,children:i.label},i.id))}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("button",{type:"button",onClick:()=>e.onAddRule(o,t),className:"rounded-md px-1.5 py-0.5 text-xs text-muted-foreground hover:bg-accent",children:"+ Rule"}),h.jsx("button",{type:"button",onClick:()=>e.onAddGroup(o,t),className:"rounded-md px-1.5 py-0.5 text-xs text-muted-foreground hover:bg-accent",children:"+ Group"})]})]}),h.jsx("div",{className:"flex flex-col gap-1",children:e.getChildren(o).map((i,l)=>i.kind==="rule"?h.jsx("div",{children:e.renderRule(i.data,t)},l):h.jsx("div",{children:a(i.data,n+1)},l))})]})};return h.jsx("div",{className:"p-2",children:a(e.root)})}function hG({spec:e}){return h.jsxs("div",{className:"flex flex-col items-center gap-2 px-4 py-8 text-center text-sm text-muted-foreground",children:[e.icon&&h.jsx(Ve,{icon:e.icon,defaultSize:20}),e.title&&h.jsx("div",{className:"text-foreground",children:ce(e.title,void 0)}),e.message&&h.jsx("div",{children:ce(e.message,void 0)}),e.action&&h.jsx("button",{type:"button",onClick:(t)=>e.action.onClick(t),className:"mt-1 inline-flex h-7 items-center rounded-md bg-primary px-2 text-xs font-medium text-primary-foreground hover:bg-primary/90",children:e.action.label})]})}function gG({spec:e}){return h.jsxs("div",{className:"flex items-center justify-center gap-2 px-3 py-3 text-xs text-muted-foreground",children:[h.jsx(Yc,{className:"size-3.5 animate-spin"}),e.message?ce(e.message,void 0):"Loading…"]})}function IG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/10 p-2 text-xs text-destructive",children:[h.jsx(nu,{className:"size-3.5 shrink-0"}),h.jsx("div",{className:"flex-1",children:ce(e.message,void 0)}),e.retry&&h.jsx("button",{type:"button",onClick:()=>e.retry.onClick(t),className:"rounded-md bg-destructive/10 px-1.5 py-0.5 text-destructive hover:bg-destructive/20",children:e.retry.label??"Retry"})]})}function SG({spec:e}){return h.jsxs("div",{className:"m-2 flex items-start gap-2 rounded-md border border-border bg-muted/30 p-2 text-xs",children:[e.icon&&h.jsx(Ve,{icon:e.icon,defaultSize:14}),h.jsxs("div",{className:"flex-1",children:[e.title&&h.jsx("div",{className:"font-medium",children:ce(e.title,void 0)}),e.message&&h.jsx("div",{className:"text-muted-foreground",children:ce(e.message,void 0)})]}),e.action&&h.jsx("button",{type:"button",onClick:(t)=>e.action.onClick(t),className:"rounded-md bg-primary px-1.5 py-0.5 text-primary-foreground",children:e.action.label})]})}function vG({spec:e}){return h.jsxs("div",{className:"m-2 flex gap-3 rounded-md border border-border p-2",children:[e.image&&h.jsx("img",{src:e.image,alt:"",className:"size-12 shrink-0 rounded object-cover"}),h.jsxs("div",{className:"flex-1",children:[e.title&&h.jsx("div",{className:"text-sm font-medium",children:e.title}),e.description&&h.jsx("div",{className:"text-xs text-muted-foreground",children:e.description}),h.jsx("div",{className:"text-[10px] text-muted-foreground",children:e.url})]})]})}function yG({spec:e,ctx:t}){return h.jsxs("div",{className:"flex items-center justify-between border-b border-border px-1 pt-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",role:"tablist",children:e.tabs.map((a)=>{let o=a.id===e.activeId;return h.jsxs("button",{type:"button",role:"tab","aria-selected":o,onClick:()=>e.onChange(a.id,t),className:Y("inline-flex items-center gap-1 rounded-t-md px-2 py-1 text-xs font-medium",o?"border-b-2 border-primary text-foreground":"text-muted-foreground"),children:[a.icon&&h.jsx(Ve,{icon:a.icon,defaultSize:12}),a.label]},a.id)})}),e.rightSlot]})}function bG({spec:e,ctx:t}){let a=(o)=>{let n=e.snaps;if(!n||n.length===0)return o;return n.reduce((s,i)=>Math.abs(i-o)<Math.abs(s-o)?i:s,n[0])};return h.jsxs("div",{className:"flex flex-col gap-1.5 px-3 py-2",children:[(e.label||e.showValue)&&h.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[h.jsx("span",{children:ce(e.label,void 0)}),e.showValue&&h.jsx("span",{className:"font-mono tabular-nums",children:e.value})]}),h.jsx("input",{type:"range",min:e.min,max:e.max,step:e.step??1,value:e.value,onChange:(o)=>e.onChange(Number(o.target.value),t),onPointerUp:(o)=>{let n=a(Number(o.target.value));if(n!==e.value)e.onChange(n,t)},className:"w-full accent-[color:var(--fm-accent)]","aria-label":typeof e.label==="string"?e.label:void 0})]})}function CG({spec:e,ctx:t}){let a=new Set(e.activeMarks??[]);return h.jsxs("div",{className:"flex items-center gap-0.5 border-b border-border px-1 py-1",children:[e.styleSwitcher&&h.jsxs(h.Fragment,{children:[h.jsxs("button",{type:"button",onClick:()=>e.styleSwitcher.onClick(t),className:"inline-flex h-6 items-center gap-1 rounded-md px-1.5 text-xs text-muted-foreground hover:bg-accent","aria-label":`Style: ${e.styleSwitcher.activeStyle}`,children:[h.jsx(Ve,{icon:e.styleSwitcher.icon,defaultSize:12}),h.jsx("span",{className:"font-medium",children:e.styleSwitcher.activeStyle})]}),h.jsx("span",{className:"mx-0.5 h-4 w-px bg-border","aria-hidden":!0})]}),e.buttons.map((o)=>{let n=o.mark?a.has(o.mark):!1;return h.jsx("button",{type:"button",onClick:()=>o.onClick(t),"aria-pressed":n||void 0,title:typeof o.tooltip?.text==="string"?o.tooltip.text:void 0,className:Y("inline-flex size-6 items-center justify-center rounded-md hover:bg-accent",n?"bg-accent text-foreground":"text-muted-foreground"),children:h.jsx(Ve,{icon:o.icon,defaultSize:14})},o.id)})]})}function wG({spec:e,ctx:t}){let a=R.useRef(t);a.current=t;let o=e.minRows??4,n=e.maxRows??16,s=Math.min(n,Math.max(o,(e.value?.split(`
|
|
14
|
+
`).length??0)||o));return h.jsxs("div",{className:"px-2 py-2",children:[e.language&&h.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-wider text-muted-foreground",children:e.language}),h.jsx("textarea",{value:e.value??"",placeholder:e.placeholder,rows:s,spellCheck:!1,onChange:(i)=>e.onChange(i.target.value,a.current),onKeyDown:(i)=>{if(e.onSave&&(i.metaKey||i.ctrlKey)&&i.key==="Enter")i.preventDefault(),e.onSave?.(i.target.value,a.current)},className:"w-full resize-none rounded-md border border-border bg-transparent p-2 font-mono text-xs leading-relaxed outline-none"})]})}function AG({spec:e}){let t=e.displayMode??!0;return h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:Y("rounded-md border border-border bg-muted/30 px-3 py-2 font-mono text-xs",t?"text-center":"inline-block"),"aria-label":"LaTeX expression",children:e.expression}),e.caption&&h.jsx("div",{className:"mt-1 text-[10px] text-muted-foreground",children:e.caption})]})}function TG({spec:e}){let t=e.size??128,a=Array.from(e.value).reduce((o,n)=>(o+n.charCodeAt(0))%4096,0).toString(2).padStart(12,"0");return h.jsxs("div",{className:"flex flex-col items-center gap-2 px-3 py-3",children:[h.jsx("div",{role:"presentation",className:"grid place-items-center rounded-md border border-border bg-foreground/5",style:{width:t,height:t},children:h.jsx("div",{className:"grid grid-cols-6 gap-px font-mono text-[8px] text-muted-foreground",children:a.split("").map((o,n)=>h.jsx("span",{className:Y("size-3 rounded-sm",o==="1"?"bg-foreground":"bg-transparent")},n))})}),h.jsx("div",{className:"text-center text-[10px] uppercase tracking-wider text-muted-foreground",children:"Preview only — not scannable"}),h.jsx("code",{className:"max-w-full break-all text-center text-[10px] text-muted-foreground",children:e.value}),e.buttons&&h.jsx("div",{className:"flex items-center gap-1",children:e.buttons.map((o)=>h.jsxs("button",{type:"button",onClick:o.onClick,className:"inline-flex h-6 items-center rounded-md border border-border px-2 text-[11px] text-muted-foreground hover:bg-accent",children:[o.icon&&h.jsx(Ve,{icon:o.icon,defaultSize:10}),o.label]},o.id))})]})}function pz({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){switch(e.kind){case"list":return h.jsx(uz,{body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i});case"grid":return h.jsx(XP,{body:e,ctx:t,filter:a,onCloseRequest:o});case"form":return h.jsx(VP,{body:e,ctx:t});case"custom":return h.jsx(h.Fragment,{children:e.render(t)});case"composed":return h.jsx(xG,{body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n})}}function xG({body:e,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i}){let l=e;return h.jsx("div",{className:"fm-composed flex flex-col",style:{gap:l.gap??0},children:l.sections.map((c)=>{let u=c.id;if(c.kind==="list"||c.kind==="grid"||c.kind==="form"||c.kind==="custom")return h.jsx("div",{children:h.jsx(pz,{body:c,ctx:t,filter:a,onCloseRequest:o,isSubMenu:n,keyboard:s,controlledActiveIndex:i})},u);return h.jsx("div",{children:h.jsx(sG,{spec:c,ctx:t})},u)})})}function MG(e,t,a,o){let n=e.config.storage?.key??e.config.id,s=e.config.storage?.adapter??a.storage,i=()=>{if(!s)return{};try{return s.get(n)??{}}catch{return{}}},l={id:e.id,data:e.param.data,storage:{get(c){return i()[c]},set(c,u){if(!s)return;let f={...i(),[c]:u};s.set(n,f)}},open:async(c,u)=>{let f=e.config.subMenus?.[c];if(f){let m=f.getData?.(void 0,l),d={...u,data:u?.data??m,parentId:e.id};t.open(f.menuId,d);return}t.open(c,{...u,parentId:e.id})},close:()=>t.close(e.id),closeAll:(c)=>t.closeAll(c),closeChildren:()=>t.closeChildren(e.id),navigateTo:(c,u)=>t.navigateTo(e.id,c,u??{}),back:()=>t.back(e.id),canGoBack:()=>t.canGoBack(e.id),update:(c)=>t.update(e.id,c),updateData:(c)=>t.updateData(e.id,c),position:o.position,setActive:o.setActive,setHover:o.setHover,updateOther:(c,u)=>t.updateData(c,u),isOpen:(c)=>t.isOpen(c)};return l}function DG({config:e,onChange:t}){let[a,o]=R.useState(""),n=R.useRef(null),s=R.useRef(void 0);R.useEffect(()=>{if(e.focusOnMount!==!1)n.current?.focus()},[e.focusOnMount]),R.useEffect(()=>()=>window.clearTimeout(s.current),[]);let i=(l)=>{o(l),window.clearTimeout(s.current),s.current=window.setTimeout(()=>{t(l),e.onChange?.(l)},e.debounceMs??250)};return h.jsxs("div",{className:"fm-filter flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx("span",{className:"text-muted-foreground",children:e.icon?h.jsx(Ve,{icon:e.icon,defaultSize:14}):h.jsx(Nr,{className:"size-3.5"})}),h.jsx("input",{ref:n,value:a,placeholder:e.placeholder??"Search…",onChange:(l)=>i(l.target.value),className:"w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),a&&h.jsx("button",{type:"button",onClick:()=>i(""),"aria-label":"Clear",className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function EG(e){return e?.strategy??"fixed"}function LG(e,t){if(!t)return e;if(!e){let o={};for(let n of Object.keys(t))if(t[n]!==void 0)o[n]=t[n];return o}let a={...e};for(let o of Object.keys(t))if(t[o]!==void 0)a[o]=t[o];return a}function RG(e){let t=e?.vertical??"bottom",a=e?.horizontal??"left",o=e?.stickToElementEdge;if(o){if(o==="top"||o==="bottom"){let l=e?.horizontal==="right"?"end":e?.horizontal==="center"?"center":"start";return l==="center"?o:`${o}-${l}`}let i=e?.vertical==="bottom"?"end":e?.vertical==="center"?"center":"start";return i==="center"?o:`${o}-${i}`}let n,s;if(t==="top"||t==="bottom")n=t==="top"?"top":"bottom",s=a==="left"?"start":a==="right"?"end":"center";else n=a==="left"?"left":"right",s="center";return s==="center"?n:`${n}-${s}`}function hz(e,t){if(typeof DOMRect<"u")return new DOMRect(e,t,0,0);return{x:e,y:t,width:0,height:0,top:t,bottom:t,left:e,right:e,toJSON(){return this}}}function BG(e,t){if(!(e?.fixedX!=null||e?.fixedY!=null))return t??null;let o=t==null?void 0:("getBoundingClientRect"in t)?t.getBoundingClientRect():t,n=e?.fixedX??o?.left??0,s=e?.fixedY??o?.top??0;return hz(n,s)}async function Ki(e,t,a){let o=BG(a,e)??e,n="getBoundingClientRect"in o?o:{getBoundingClientRect:()=>o,contextElement:void 0},s=typeof a?.offsetX==="function"?a.offsetX():a?.offsetX??0,i=typeof a?.offsetY==="function"?a.offsetY():a?.offsetY??0,l=a?.border?.top??8,c=a?.border?.bottom??8,u=a?.border?.left??8,f=a?.border?.right??8,m=[Yk({mainAxis:i,crossAxis:s}),!a?.noFlipX&&!a?.noFlipY?Kk({fallbackStrategy:"initialPlacement",padding:{top:l,bottom:c,left:u,right:f}}):void 0,Qk({padding:{top:l,bottom:c,left:u,right:f},limiter:Wk({offset:16}),crossAxis:!a?.noBorderX||!a?.noBorderY}),a?.maxHeight||a?.fillViewport?Jk({padding:{top:l,bottom:c},apply({availableHeight:p,elements:v}){let b=a?.maxHeight??Number.POSITIVE_INFINITY;v.floating.style.maxHeight=`${Math.min(b,p)}px`}}):void 0].filter(Boolean),d=await Qi(n,t,{placement:RG(a),strategy:EG(a),middleware:m});return{x:d.x,y:d.y,placement:d.placement}}function gz(e,t,a,o){let n=!1,s=async()=>{let l=await Ki(e,t,a);if(!n)o(l)};if(a?.followAnchor===!1)return s(),()=>{n=!0};let i=Yu(e,t,s);return()=>{n=!0,i()}}function NG({triggerEl:e,triggerRect:t,floatingEl:a}){let[o,n]=R.useState(null),s=R.useRef(null);if(R.useLayoutEffect(()=>{if(!t||!a)return;let i=()=>{let c=e?.getBoundingClientRect()??t,u=a.getBoundingClientRect(),f=c,m=u.left>=f.right-4,d,p,v,b,C;if(m){d=f.right,p=Math.min(f.top,u.top),v=Math.max(0,u.left-f.right),b=Math.max(f.bottom,u.bottom)-p;let g=f.top-p,I=f.bottom-p,S=u.top-p,y=u.bottom-p;C=`polygon(0 ${g}px, 0 ${I}px, 100% ${y}px, 100% ${S}px)`}else{d=u.right,p=Math.min(f.top,u.top),v=Math.max(0,f.left-u.right),b=Math.max(f.bottom,u.bottom)-p;let g=f.top-p,I=f.bottom-p,S=u.top-p,y=u.bottom-p;C=`polygon(100% ${g}px, 100% ${I}px, 0 ${y}px, 0 ${S}px)`}n({left:d,top:p,width:v,height:b,clipPath:C})};i();let l=()=>{if(s.current)cancelAnimationFrame(s.current);s.current=requestAnimationFrame(i)};return window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{if(window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0),s.current)cancelAnimationFrame(s.current)}},[e,t,a]),!o||o.width<=0||o.height<=0)return null;return h.jsx("div",{"data-fm-safe-polygon":!0,"aria-hidden":!0,style:{position:"fixed",left:o.left,top:o.top,width:o.width,height:o.height,clipPath:o.clipPath,zIndex:"var(--fm-z-menu)",pointerEvents:"auto",background:"transparent"}})}function Iz({open:e}){let t=wz(),a=Cz(),[o,n]=R.useState(null),s=R.useCallback((D)=>n(D),[]),[i,l]=R.useState(""),[c,u]=R.useState(null),[f,m]=R.useState(e.config.chrome?.tabs?.initialTab??e.config.chrome?.tabs?.tabs?.[0]?.id),d=R.useMemo(()=>MG(e,t,a,{setActive:()=>{},setHover:()=>{},position:()=>{}}),[e,t,a]),p=R.useCallback(()=>t.close(e.id),[t,e.id]),v=R.useMemo(()=>LG(e.config.position,e.param.position),[e.config.position,e.param.position]),b=e.param.element,C=e.param.rect;R.useEffect(()=>{let D=o;if(!D)return;let N=b??C,oe=v?.fixedX!=null||v?.fixedY!=null;if(!N&&!oe){let{offsetWidth:de,offsetHeight:Xe}=D;u({x:Math.max(8,(window.innerWidth-de)/2),y:Math.max(8,(window.innerHeight-Xe)/2)});return}let ne=typeof N==="string"?document.querySelector(N):N;if(!ne&&oe){let de=!1;return Ki(hz(v?.fixedX??0,v?.fixedY??0),D,v).then((Xe)=>{if(de)return;u({x:Xe.x,y:Xe.y,placement:Xe.placement})}),()=>{de=!0}}if(!ne)return;if(ne instanceof Element)return gz(ne,D,v,(de)=>u({x:de.x,y:de.y,placement:de.placement}));let ie=!1;return Ki(ne,D,v).then((de)=>{if(ie)return;u({x:de.x,y:de.y,placement:de.placement})}),()=>{ie=!0}},[o,v,b,C]),R.useEffect(()=>{let D=e.config.lifecycle?.onMount?.(d);e.config.lifecycle?.onOpen?.(d);let N=e.param.parentId;return()=>{if(typeof D==="function")D();if(e.config.lifecycle?.onClose?.(d),N)document.querySelector(`[data-fm-menu-id="${N}"] .fm-list`)?.focus({preventScroll:!0})}},[]),R.useEffect(()=>{if(e.config.chrome?.noClose)return;if(e.state==="closing")return;let D=(N)=>{if(N.key==="Escape")p()};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[e.config.chrome?.noClose,e.state,p]);let g=e.config.chrome?.dimmer??(e.param.parentId?"none":"default"),I=g!=="none",S=g==="passThrough",y=g==="visible",w=e.config.chrome?.tabs,x=(w?w.tabs.find((D)=>D.id===f)?.body:void 0)??e.config.body,E=Boolean(e.param.parentId),L=h.jsxs(h.Fragment,{children:[E&&e.param.triggerRect&&h.jsx(NG,{triggerEl:e.param.element instanceof Element?e.param.element:void 0,triggerRect:e.param.triggerRect,floatingEl:o}),I&&h.jsx("div",{"aria-hidden":!0,"data-state":e.state,onClick:S?void 0:p,className:Y("fm-dimmer",e.state==="closing"&&"fm-dimmer--closing",S&&"fm-dimmer--passthrough",y&&"fm-dimmer--visible")}),h.jsxs("div",{ref:s,role:e.config.chrome?.role??"dialog","aria-label":OG(e),"data-fm-menu-id":e.id,"data-placement":c?.placement,"data-state":e.state,className:Y("fm-menu",e.state==="closing"&&"fm-menu--closing",e.config.chrome?.classNameWrap,e.config.chrome?.className),style:{position:v?.strategy==="absolute"?"absolute":"fixed",left:c?.x,top:c?.y,width:v?.width,minWidth:v?.minWidth??220,opacity:c==null?0:1,pointerEvents:c==null?"none":"auto",...kG(c?.placement)},children:[h.jsx(zG,{open:e,onClose:p,filter:i,setFilter:l,onBack:()=>t.back(e.id),canBack:Boolean(e.history?.length),ctx:d}),w&&h.jsx(FG,{tabs:w.tabs.map((D)=>({id:D.id,label:D.label,icon:D.icon})),activeId:f,onChange:m,rightSlot:typeof w.rightSlot==="function"?w.rightSlot():w.rightSlot}),e.config.chrome?.filter&&h.jsx(DG,{config:e.config.chrome.filter,onChange:l}),!HG(x,d)&&h.jsx("div",{className:"fm-body",children:h.jsx(pz,{body:x,ctx:d,filter:i,onCloseRequest:p,isSubMenu:Boolean(e.param.parentId),keyboard:e.config.keyboard,controlledActiveIndex:e.param.activeIndex})}),h.jsx(_G,{open:e,onClose:p})]})]});return Ku.createPortal(L,document.body)}function OG(e){if(e.param.ariaLabel!=null)return e.param.ariaLabel;let t=e.config.chrome?.title;if(typeof t==="string")return t;return e.config.chrome?.ariaLabel}function HG(e,t){if(e.kind!=="custom")return!1;let a=e.measureHeight;return typeof a==="function"&&a(t)===0}function kG(e){if(!e)return{};let[t,a]=e.split("-"),o,n;if(t==="top"||t==="bottom")n=t==="top"?"bottom":"top",o=a==="start"?"left":a==="end"?"right":"center";else o=t==="left"?"right":"left",n=a==="start"?"top":a==="end"?"bottom":"center";return{transformOrigin:`${o} ${n}`}}function zG({open:e,onClose:t,filter:a,setFilter:o,onBack:n,canBack:s,ctx:i}){let l=e.config.chrome,c=l?.header;if(c?.kind==="searchBar")return h.jsx(UG,{spec:c,value:a,onChange:o,onClose:t});if(c?.kind==="custom")return h.jsx(h.Fragment,{children:c.render(i)});let u=l?.withBack||s;if(l?.title||u||l?.withClose)return h.jsxs("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[u&&h.jsx("button",{type:"button",onClick:l?.onBack??n,className:"text-muted-foreground hover:text-foreground","aria-label":"Back",children:h.jsx(_c,{className:"size-4"})}),h.jsx("h3",{className:"flex-1 text-sm font-medium",children:typeof l?.title==="function"?l.title(i):l?.title}),l?.withClose&&h.jsx("button",{type:"button",onClick:t,className:"text-muted-foreground hover:text-foreground","aria-label":"Close",children:h.jsx(Ro,{className:"size-4"})})]});return null}function UG({spec:e,value:t,onChange:a,onClose:o}){return h.jsxs("header",{className:"flex items-center gap-2 border-b border-border px-3 py-2",children:[h.jsx(Nr,{className:"size-3.5 text-muted-foreground"}),h.jsx("input",{value:t,onChange:(n)=>a(n.target.value),placeholder:e.placeholder??"Find",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),e.counter&&h.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:"0 / 0"}),e.prevNext&&h.jsxs("div",{className:"flex items-center gap-0.5",children:[h.jsx("button",{type:"button","aria-label":"Previous",className:"rounded-md p-1 text-muted-foreground hover:bg-accent",children:h.jsx(Gc,{className:"size-3"})}),h.jsx("button",{type:"button","aria-label":"Next",className:"rounded-md p-1 text-muted-foreground hover:bg-accent",children:h.jsx(Uc,{className:"size-3"})})]}),h.jsx("button",{type:"button","aria-label":t?"Clear":"Close",onClick:()=>t?a(""):o(),className:"text-muted-foreground hover:text-foreground",children:h.jsx(Ro,{className:"size-3.5"})})]})}function FG({tabs:e,activeId:t,onChange:a,rightSlot:o}){return h.jsxs("div",{className:"flex items-center justify-between border-b border-border px-1 pt-1",children:[h.jsx("div",{className:"flex items-center gap-0.5",role:"tablist",children:e.map((n)=>{let s=n.id===t;return h.jsx("button",{type:"button",role:"tab","aria-selected":s,onClick:()=>a(n.id),className:Y("inline-flex items-center gap-1 rounded-t-md px-2 py-1 text-xs font-medium",s?"border-b-2 border-primary text-foreground":"text-muted-foreground hover:text-foreground"),children:n.label},n.id)})}),o]})}function _G({open:e,onClose:t}){let a=e.config.chrome?.footer;if(!a)return null;if(a.kind==="buttons")return h.jsx("footer",{className:"flex items-center justify-end gap-2 border-t border-border px-2 py-2",children:a.buttons.map((o)=>h.jsx("button",{type:"button",disabled:o.disabled,onClick:(n)=>{if(o.onClick(n),o.id==="done"||o.id==="close")t()},className:Y("inline-flex h-7 items-center rounded-md px-2.5 text-xs font-medium",o.color==="destructive"?"bg-destructive text-destructive-foreground":o.color==="accent"?"bg-primary text-primary-foreground":"border border-border text-foreground hover:bg-accent"),children:o.label},o.id))});if(a.kind==="add")return h.jsx("footer",{className:"border-t border-border",children:h.jsx("button",{type:"button",onClick:a.onClick,className:"flex w-full items-center gap-2 px-3 py-2 text-sm text-muted-foreground hover:bg-accent",children:a.label})});if(a.kind==="custom")return h.jsx("footer",{className:"border-t border-border",children:a.render()});return null}function Sz(){let e=tf();return h.jsx(h.Fragment,{children:e.map((t)=>h.jsx(Iz,{open:t},t.id))})}var vz=class{constructor(e="fm:"){this.prefix=e}prefix;get(e){if(typeof localStorage>"u")return;try{let t=localStorage.getItem(this.prefix+e);return t==null?void 0:JSON.parse(t)}catch{return}}set(e,t){if(typeof localStorage>"u")return;try{localStorage.setItem(this.prefix+e,JSON.stringify(t))}catch{}}remove(e){if(typeof localStorage>"u")return;try{localStorage.removeItem(this.prefix+e)}catch{}}};var Wu=120,PG=90,yz=class{menus=[];listeners=new Set;registry=new Map;timers=new Map;register(e){this.registry.set(e.id,e)}registerMany(e){for(let t of e)this.register(t)}getConfig(e){return this.registry.get(e)}getAll(){return this.menus}getState(e){return this.menus.find((t)=>t.id===e)?.state??"closed"}isAnyTransitioning(){return this.menus.some((e)=>e.state!=="open")}isOpen(e){if(e==null)return this.menus.some((t)=>t.state!=="closing");return this.menus.some((t)=>t.id===e&&t.state!=="closing")}open(e,t={}){let a=this.registry.get(e);if(!a){console.warn(`[fancy-menus] No menu registered with id "${e}"`);return}let o=this.timers.get(`close:${e}`);if(o)window.clearTimeout(o),this.timers.delete(`close:${e}`);let n=this.menus.findIndex((l)=>l.id===e);if(n>=0){let l=this.menus[n],c={...l.param,...t};if((t.parentId??l.param.parentId)===l.param.parentId){let f=this.menus.slice();f[n]={...l,param:c,state:l.state==="closing"?"open":l.state},this.menus=f,this.emit();return}this.menus=this.menus.filter((f)=>f.id!==e)}let s=this.menus;if(t.parentId){let l=new Set;for(let c of s)if(c.param.parentId===t.parentId&&c.id!==e)l.add(c.id);if(l.size){let c=!0;while(c){c=!1;for(let u of s)if(u.param.parentId&&l.has(u.param.parentId)&&!l.has(u.id))l.add(u.id),c=!0}s=s.filter((u)=>!l.has(u.id));for(let u of l){let f=this.timers.get(`close:${u}`);if(f)window.clearTimeout(f),this.timers.delete(`close:${u}`)}}}this.menus=[...s,{id:e,config:a,param:t,depth:t.parentId?(s.find((l)=>l.id===t.parentId)?.depth??0)+1:s.length,state:"opening"}],this.emit();let i=window.setTimeout(()=>{this.timers.delete(`open:${e}`);let l=this.menus.findIndex((u)=>u.id===e);if(l<0)return;if(this.menus[l].state!=="opening")return;let c=this.menus.slice();c[l]={...c[l],state:"open"},this.menus=c,this.emit()},Wu);this.timers.set(`open:${e}`,i)}close(e){let t=e??this.menus.at(-1)?.id;if(!t)return;let a=new Set([t]),o=!0;while(o){o=!1;for(let i of this.menus)if(i.param.parentId&&a.has(i.param.parentId)&&!a.has(i.id))a.add(i.id),o=!0}let n=this.menus.slice(),s=!1;for(let i=0;i<n.length;i++){if(!a.has(n[i].id))continue;if(n[i].state==="closing")continue;n[i]={...n[i],state:"closing"},s=!0;let l=n[i].id,c=this.timers.get(`open:${l}`);if(c)window.clearTimeout(c),this.timers.delete(`open:${l}`);let u=window.setTimeout(()=>{this.timers.delete(`close:${l}`),this.menus=this.menus.filter((f)=>f.id!==l),this.emit()},PG);this.timers.set(`close:${l}`,u)}if(!s)return;this.menus=n,this.emit()}closeChildren(e){let t=new Set,a=!0;while(a){a=!1;for(let o of this.menus){let n=o.param.parentId===e,s=o.param.parentId&&t.has(o.param.parentId);if((n||s)&&!t.has(o.id))t.add(o.id),a=!0}}if(t.size===0)return;for(let o of t)this.close(o)}closeAll(e){let t=e==null?this.menus.map((a)=>a.id):this.menus.filter((a)=>a.config.group===e).map((a)=>a.id);for(let a of t)this.close(a)}navigateTo(e,t,a={}){let o=this.menus.findIndex((f)=>f.id===e);if(o<0)return;let n=this.registry.get(t);if(!n){console.warn(`[fancy-menus] No menu registered with id "${t}"`);return}let s=this.menus[o],i=[...s.history??[],{id:s.id,config:s.config,param:s.param}],l=this.menus.slice();l[o]={id:t,config:n,param:{...s.param,...a,parentId:s.param.parentId},depth:s.depth,state:"opening",history:i},this.menus=l,this.emit();let c=this.timers.get(`open:${t}`);if(c)window.clearTimeout(c);let u=window.setTimeout(()=>{this.timers.delete(`open:${t}`);let f=this.menus.findIndex((d)=>d.id===t);if(f<0)return;if(this.menus[f].state!=="opening")return;let m=this.menus.slice();m[f]={...m[f],state:"open"},this.menus=m,this.emit()},Wu);this.timers.set(`open:${t}`,u)}canGoBack(e){let t=this.menus.find((a)=>a.id===e);return Boolean(t?.history&&t.history.length>0)}back(e){let t=this.menus.findIndex((u)=>u.id===e);if(t<0)return;let a=this.menus[t],o=a.history??[];if(o.length===0)return;let n=o[o.length-1],s=o.slice(0,-1),i=this.menus.slice();i[t]={id:n.id,config:n.config,param:n.param,depth:a.depth,state:"opening",history:s.length?s:void 0},this.menus=i,this.emit();let l=this.timers.get(`open:${n.id}`);if(l)window.clearTimeout(l);let c=window.setTimeout(()=>{this.timers.delete(`open:${n.id}`);let u=this.menus.findIndex((m)=>m.id===n.id);if(u<0)return;if(this.menus[u].state!=="opening")return;let f=this.menus.slice();f[u]={...f[u],state:"open"},this.menus=f,this.emit()},Wu);this.timers.set(`open:${n.id}`,c)}update(e,t){let a=this.menus.findIndex((n)=>n.id===e);if(a<0)return;let o=this.menus.slice();o[a]={...o[a],param:{...o[a].param,...t}},this.menus=o,this.emit()}updateData(e,t){let a=this.menus.findIndex((s)=>s.id===e);if(a<0)return;let o=this.menus.slice(),n=o[a];o[a]={...n,param:{...n.param,data:{...n.param.data??{},...t}}},this.menus=o,this.emit()}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}dispose(){for(let e of this.timers.values())window.clearTimeout(e);this.timers.clear(),this.listeners.clear()}emit(){for(let e of this.listeners)e()}},bz=R.createContext(null);function $u({menus:e,options:t,store:a,children:o}){let n=R.useRef(null);if(n.current==null)n.current=a??new yz;let s=n.current;R.useEffect(()=>{if(e?.length)s.registerMany([...e])},[e,s]);let i=R.useMemo(()=>({storage:t?.storage??new vz,...t}),[t]),l=R.useMemo(()=>({store:s,options:i}),[s,i]);return h.jsxs(bz.Provider,{value:l,children:[o,h.jsx(Sz,{})]})}function Ji(){let e=R.useContext(bz);if(!e)throw Error("useMenu / useMenuStore must be used inside <MenuProvider>");return e}function ef(){let{store:e}=Ji();return R.useMemo(()=>({open:(t,a)=>e.open(t,a??{}),close:(t)=>e.close(t),closeAll:(t)=>e.closeAll(t),update:(t,a)=>e.update(t,a),updateData:(t,a)=>e.updateData(t,a),isOpen:(t)=>e.isOpen(t),register:(t)=>e.register(t)}),[e])}function tf(){let{store:e}=Ji();return R.useSyncExternalStore((t)=>e.subscribe(t),()=>e.getAll(),()=>e.getAll())}function af(){let e=tf();for(let t of e)if(t.state!=="closing")return!0;return!1}function Cz(){return Ji().options}function wz(){return Ji().store}var oi=O(U(),1),X7=O(Z7(),1),ai=O(Di(),1),pZ={},hZ=(e)=>pZ[e]??=()=>ai.jsx("span",{className:"fm-ico",dangerouslySetInnerHTML:{__html:window.icon?.(e,16)??""}}),gZ=(e)=>e?hZ(e):void 0,IZ=(e)=>[{kind:bn.Section,match:(t)=>!!t.section,name:(t)=>t.section},{kind:bn.Divider,match:(t)=>!!t.divider},{kind:bn.Item,name:(t)=>t.label,caption:(t)=>t.caption,icon:(t)=>{let a=gZ(t.icon);return a?{icon:a,size:16,...t.danger?{color:"var(--bad)"}:{}}:void 0},pressed:(t)=>!!t.pressed,disabled:(t)=>!!t.disabled,arrow:(t)=>!!t.children?.length,className:(t)=>t.danger?"fm-row--danger":void 0,subMenuId:(t)=>t.children?.length?`swarm-actions-${e+1}`:void 0,subMenuTrigger:ui.ArrowClick,subMenuData:(t)=>({items:t.children??[]}),onClick:async(t,a,o)=>{if(t.children?.length)return;if(await t.run?.(),!o.data.stay)o.closeAll("swarm")}}],SZ=[0,1,2].map((e)=>Ec({id:`swarm-actions-${e}`,kind:ii.Menu,group:"swarm",position:{minWidth:260,maxWidth:420},chrome:{role:"menu"},body:{kind:li.List,source:{kind:ci.Prop,getItems:(t)=>t?.items??[]},rows:IZ(e)},keyboard:{defaults:{closeOnEscape:!0,selectOnEnter:!0,arrowsToSubmenu:!0}}}));function vZ(){let e=ef(),t=af();return oi.useEffect(()=>{window.dispatchEvent(new CustomEvent("menus:openchange",{detail:{open:t}}))},[t]),oi.useEffect(()=>{let a=(o,n)=>{e.closeAll("swarm");let i={rect:o instanceof Element?o.getBoundingClientRect():new DOMRect(o.x,o.y,0,0),data:n};e.open("swarm-actions-0",i)};window.menus={open:a,close:()=>e.closeAll("swarm"),isOpen:()=>e.isOpen()},window.dispatchEvent(new Event("menus:ready"))},[e]),null}var Ud=document.createElement("div");Ud.id="menus-root";document.body.appendChild(Ud);X7.createRoot(Ud).render(ai.jsx(oi.StrictMode,{children:ai.jsx($u,{menus:SZ,children:ai.jsx(vZ,{})})}));})();
|