@cohaku/cli 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HMH4HWDA.js → chunk-HUMYWLCL.js} +3 -0
- package/dist/{chunk-HH6YEBDX.js → chunk-MU3X6KBC.js} +718 -137
- package/dist/{chunk-QNLQCC7A.js → chunk-SJZY3OAT.js} +2 -2
- package/dist/{chunk-6NVPXWGI.js → chunk-ZELLRTG5.js} +1 -1
- package/dist/dashboard/assets/index-BEGYqqtj.css +1 -0
- package/dist/dashboard/assets/index-uzAxYmEZ.js +51 -0
- package/dist/dashboard/index.html +14 -0
- package/dist/index.js +5 -5
- package/dist/{mcp-RC777UJI.js → mcp-OUXSA2GV.js} +4 -4
- package/dist/{serve-MMBRKWQ6.js → serve-2QVCMO3C.js} +3 -3
- package/dist/{start-THRKBZ4P.js → start-S5JBNPBO.js} +4 -4
- package/dist/{status-TYGEXAGJ.js → status-NYW3OOGW.js} +2 -2
- package/package.json +2 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function gw(t,a){for(var l=0;l<a.length;l++){const o=a[l];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function Ky(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Cf={exports:{}},dr={};var hv;function vw(){if(hv)return dr;hv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(o,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:t,type:o,key:f,ref:s!==void 0?s:null,props:c}}return dr.Fragment=a,dr.jsx=l,dr.jsxs=l,dr}var mv;function yw(){return mv||(mv=1,Cf.exports=vw()),Cf.exports}var R=yw(),Tf={exports:{}},ye={};var pv;function bw(){if(pv)return ye;pv=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function E(z){return z===null||typeof z!="object"?null:(z=x&&z[x]||z["@@iterator"],typeof z=="function"?z:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function C(z,X,ie){this.props=z,this.context=X,this.refs=w,this.updater=ie||A}C.prototype.isReactComponent={},C.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,X,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function N(){}N.prototype=C.prototype;function M(z,X,ie){this.props=z,this.context=X,this.refs=w,this.updater=ie||A}var T=M.prototype=new N;T.constructor=M,b(T,C.prototype),T.isPureReactComponent=!0;var L=Array.isArray;function G(){}var D={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function ee(z,X,ie){var le=ie.ref;return{$$typeof:t,type:z,key:X,ref:le!==void 0?le:null,props:ie}}function F(z,X){return ee(z.type,X,z.props)}function te(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function re(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ie){return X[ie]})}var ce=/\/+/g;function B(z,X){return typeof z=="object"&&z!==null&&z.key!=null?re(""+z.key):X.toString(36)}function W(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(G,G):(z.status="pending",z.then(function(X){z.status==="pending"&&(z.status="fulfilled",z.value=X)},function(X){z.status==="pending"&&(z.status="rejected",z.reason=X)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function O(z,X,ie,le,oe){var se=typeof z;(se==="undefined"||se==="boolean")&&(z=null);var ae=!1;if(z===null)ae=!0;else switch(se){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(z.$$typeof){case t:case a:ae=!0;break;case g:return ae=z._init,O(ae(z._payload),X,ie,le,oe)}}if(ae)return oe=oe(z),ae=le===""?"."+B(z,0):le,L(oe)?(ie="",ae!=null&&(ie=ae.replace(ce,"$&/")+"/"),O(oe,X,ie,"",function(Ae){return Ae})):oe!=null&&(te(oe)&&(oe=F(oe,ie+(oe.key==null||z&&z.key===oe.key?"":(""+oe.key).replace(ce,"$&/")+"/")+ae)),X.push(oe)),1;ae=0;var ge=le===""?".":le+":";if(L(z))for(var me=0;me<z.length;me++)le=z[me],se=ge+B(le,me),ae+=O(le,X,ie,se,oe);else if(me=E(z),typeof me=="function")for(z=me.call(z),me=0;!(le=z.next()).done;)le=le.value,se=ge+B(le,me++),ae+=O(le,X,ie,se,oe);else if(se==="object"){if(typeof z.then=="function")return O(W(z),X,ie,le,oe);throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ae}function q(z,X,ie){if(z==null)return z;var le=[],oe=0;return O(z,le,"","",function(se){return X.call(ie,se,oe++)}),le}function K(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(ie){(z._status===0||z._status===-1)&&(z._status=1,z._result=ie)},function(ie){(z._status===0||z._status===-1)&&(z._status=2,z._result=ie)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var ne=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},P={map:q,forEach:function(z,X,ie){q(z,function(){X.apply(this,arguments)},ie)},count:function(z){var X=0;return q(z,function(){X++}),X},toArray:function(z){return q(z,function(X){return X})||[]},only:function(z){if(!te(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return ye.Activity=y,ye.Children=P,ye.Component=C,ye.Fragment=l,ye.Profiler=s,ye.PureComponent=M,ye.StrictMode=o,ye.Suspense=p,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,ye.__COMPILER_RUNTIME={__proto__:null,c:function(z){return D.H.useMemoCache(z)}},ye.cache=function(z){return function(){return z.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(z,X,ie){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var le=b({},z.props),oe=z.key;if(X!=null)for(se in X.key!==void 0&&(oe=""+X.key),X)!H.call(X,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&X.ref===void 0||(le[se]=X[se]);var se=arguments.length-2;if(se===1)le.children=ie;else if(1<se){for(var ae=Array(se),ge=0;ge<se;ge++)ae[ge]=arguments[ge+2];le.children=ae}return ee(z.type,oe,le)},ye.createContext=function(z){return z={$$typeof:f,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:c,_context:z},z},ye.createElement=function(z,X,ie){var le,oe={},se=null;if(X!=null)for(le in X.key!==void 0&&(se=""+X.key),X)H.call(X,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(oe[le]=X[le]);var ae=arguments.length-2;if(ae===1)oe.children=ie;else if(1<ae){for(var ge=Array(ae),me=0;me<ae;me++)ge[me]=arguments[me+2];oe.children=ge}if(z&&z.defaultProps)for(le in ae=z.defaultProps,ae)oe[le]===void 0&&(oe[le]=ae[le]);return ee(z,se,oe)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(z){return{$$typeof:h,render:z}},ye.isValidElement=te,ye.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:K}},ye.memo=function(z,X){return{$$typeof:m,type:z,compare:X===void 0?null:X}},ye.startTransition=function(z){var X=D.T,ie={};D.T=ie;try{var le=z(),oe=D.S;oe!==null&&oe(ie,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(G,ne)}catch(se){ne(se)}finally{X!==null&&ie.types!==null&&(X.types=ie.types),D.T=X}},ye.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},ye.use=function(z){return D.H.use(z)},ye.useActionState=function(z,X,ie){return D.H.useActionState(z,X,ie)},ye.useCallback=function(z,X){return D.H.useCallback(z,X)},ye.useContext=function(z){return D.H.useContext(z)},ye.useDebugValue=function(){},ye.useDeferredValue=function(z,X){return D.H.useDeferredValue(z,X)},ye.useEffect=function(z,X){return D.H.useEffect(z,X)},ye.useEffectEvent=function(z){return D.H.useEffectEvent(z)},ye.useId=function(){return D.H.useId()},ye.useImperativeHandle=function(z,X,ie){return D.H.useImperativeHandle(z,X,ie)},ye.useInsertionEffect=function(z,X){return D.H.useInsertionEffect(z,X)},ye.useLayoutEffect=function(z,X){return D.H.useLayoutEffect(z,X)},ye.useMemo=function(z,X){return D.H.useMemo(z,X)},ye.useOptimistic=function(z,X){return D.H.useOptimistic(z,X)},ye.useReducer=function(z,X,ie){return D.H.useReducer(z,X,ie)},ye.useRef=function(z){return D.H.useRef(z)},ye.useState=function(z){return D.H.useState(z)},ye.useSyncExternalStore=function(z,X,ie){return D.H.useSyncExternalStore(z,X,ie)},ye.useTransition=function(){return D.H.useTransition()},ye.version="19.2.4",ye}var gv;function Nd(){return gv||(gv=1,Tf.exports=bw()),Tf.exports}var S=Nd();const at=Ky(S),Zy=gw({__proto__:null,default:at},[S]);var Af={exports:{}},hr={},Rf={exports:{}},Of={};var vv;function xw(){return vv||(vv=1,(function(t){function a(O,q){var K=O.length;O.push(q);e:for(;0<K;){var ne=K-1>>>1,P=O[ne];if(0<s(P,q))O[ne]=q,O[K]=P,K=ne;else break e}}function l(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var q=O[0],K=O.pop();if(K!==q){O[0]=K;e:for(var ne=0,P=O.length,z=P>>>1;ne<z;){var X=2*(ne+1)-1,ie=O[X],le=X+1,oe=O[le];if(0>s(ie,K))le<P&&0>s(oe,ie)?(O[ne]=oe,O[le]=K,ne=le):(O[ne]=ie,O[X]=K,ne=X);else if(le<P&&0>s(oe,K))O[ne]=oe,O[le]=K,ne=le;else break e}}return q}function s(O,q){var K=O.sortIndex-q.sortIndex;return K!==0?K:O.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,y=null,x=3,E=!1,A=!1,b=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function T(O){for(var q=l(m);q!==null;){if(q.callback===null)o(m);else if(q.startTime<=O)o(m),q.sortIndex=q.expirationTime,a(p,q);else break;q=l(m)}}function L(O){if(b=!1,T(O),!A)if(l(p)!==null)A=!0,G||(G=!0,re());else{var q=l(m);q!==null&&W(L,q.startTime-O)}}var G=!1,D=-1,H=5,ee=-1;function F(){return w?!0:!(t.unstable_now()-ee<H)}function te(){if(w=!1,G){var O=t.unstable_now();ee=O;var q=!0;try{e:{A=!1,b&&(b=!1,N(D),D=-1),E=!0;var K=x;try{t:{for(T(O),y=l(p);y!==null&&!(y.expirationTime>O&&F());){var ne=y.callback;if(typeof ne=="function"){y.callback=null,x=y.priorityLevel;var P=ne(y.expirationTime<=O);if(O=t.unstable_now(),typeof P=="function"){y.callback=P,T(O),q=!0;break t}y===l(p)&&o(p),T(O)}else o(p);y=l(p)}if(y!==null)q=!0;else{var z=l(m);z!==null&&W(L,z.startTime-O),q=!1}}break e}finally{y=null,x=K,E=!1}q=void 0}}finally{q?re():G=!1}}}var re;if(typeof M=="function")re=function(){M(te)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,B=ce.port2;ce.port1.onmessage=te,re=function(){B.postMessage(null)}}else re=function(){C(te,0)};function W(O,q){D=C(function(){O(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(O){O.callback=null},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<O?Math.floor(1e3/O):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(O){switch(x){case 1:case 2:case 3:var q=3;break;default:q=x}var K=x;x=q;try{return O()}finally{x=K}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var K=x;x=O;try{return q()}finally{x=K}},t.unstable_scheduleCallback=function(O,q,K){var ne=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ne+K:ne):K=ne,O){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=K+P,O={id:g++,callback:q,priorityLevel:O,startTime:K,expirationTime:P,sortIndex:-1},K>ne?(O.sortIndex=K,a(m,O),l(p)===null&&O===l(m)&&(b?(N(D),D=-1):b=!0,W(L,K-ne))):(O.sortIndex=P,a(p,O),A||E||(A=!0,G||(G=!0,re()))),O},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(O){var q=x;return function(){var K=x;x=q;try{return O.apply(this,arguments)}finally{x=K}}}})(Of)),Of}var yv;function Sw(){return yv||(yv=1,Rf.exports=xw()),Rf.exports}var Nf={exports:{}},mt={};var bv;function ww(){if(bv)return mt;bv=1;var t=Nd();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:m,implementation:g}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,mt.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,g)},mt.flushSync=function(p){var m=f.T,g=o.p;try{if(f.T=null,o.p=2,p)return p()}finally{f.T=m,o.p=g,o.d.f()}},mt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},mt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},mt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,y=h(g,m.crossOrigin),x=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:E}):g==="script"&&o.d.X(p,{crossOrigin:y,integrity:x,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=h(m.as,m.crossOrigin);o.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(p)},mt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=h(g,m.crossOrigin);o.d.L(p,g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},mt.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=h(m.as,m.crossOrigin);o.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(p)},mt.requestFormReset=function(p){o.d.r(p)},mt.unstable_batchedUpdates=function(p,m){return p(m)},mt.useFormState=function(p,m,g){return f.H.useFormState(p,m,g)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var xv;function Fy(){if(xv)return Nf.exports;xv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Nf.exports=ww(),Nf.exports}var Sv;function Ew(){if(Sv)return hr;Sv=1;var t=Sw(),a=Nd(),l=Fy();function o(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(o(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(o(188));return n!==e?null:e}for(var i=e,r=n;;){var u=i.return;if(u===null)break;var d=u.alternate;if(d===null){if(r=u.return,r!==null){i=r;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===i)return p(u),e;if(d===r)return p(u),n;d=d.sibling}throw Error(o(188))}if(i.return!==r.return)i=u,r=d;else{for(var v=!1,_=u.child;_;){if(_===i){v=!0,i=u,r=d;break}if(_===r){v=!0,r=u,i=d;break}_=_.sibling}if(!v){for(_=d.child;_;){if(_===i){v=!0,i=d,r=u;break}if(_===r){v=!0,r=d,i=u;break}_=_.sibling}if(!v)throw Error(o(189))}}if(i.alternate!==r)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:n}function g(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=g(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case C:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case G:return"SuspenseList";case ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case M:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case T:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return n=e.displayName||null,n!==null?n:B(e.type)||"Memo";case H:n=e._payload,e=e._init;try{return B(e(n))}catch{}}return null}var W=Array.isArray,O=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ne=[],P=-1;function z(e){return{current:e}}function X(e){0>P||(e.current=ne[P],ne[P]=null,P--)}function ie(e,n){P++,ne[P]=e.current,e.current=n}var le=z(null),oe=z(null),se=z(null),ae=z(null);function ge(e,n){switch(ie(se,n),ie(oe,e),ie(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Ug(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Ug(n),e=Hg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(le),ie(le,e)}function me(){X(le),X(oe),X(se)}function Ae(e){e.memoizedState!==null&&ie(ae,e);var n=le.current,i=Hg(n,e.type);n!==i&&(ie(oe,e),ie(le,i))}function Re(e){oe.current===e&&(X(le),X(oe)),ae.current===e&&(X(ae),sr._currentValue=K)}var ze,et;function Pe(e){if(ze===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ze=n&&n[1]||"",et=-1<i.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ze+e+et}var ka=!1;function qa(e,n){if(!e||ka)return"";ka=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(n){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(Z){var Q=Z}Reflect.construct(e,[],I)}else{try{I.call()}catch(Z){Q=Z}e.call(I.prototype)}}else{try{throw Error()}catch(Z){Q=Z}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(Z){if(Z&&Q&&typeof Z.stack=="string")return[Z.stack,Q.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),v=d[0],_=d[1];if(v&&_){var j=v.split(`
|
|
4
|
+
`),Y=_.split(`
|
|
5
|
+
`);for(u=r=0;r<j.length&&!j[r].includes("DetermineComponentFrameRoot");)r++;for(;u<Y.length&&!Y[u].includes("DetermineComponentFrameRoot");)u++;if(r===j.length||u===Y.length)for(r=j.length-1,u=Y.length-1;1<=r&&0<=u&&j[r]!==Y[u];)u--;for(;1<=r&&0<=u;r--,u--)if(j[r]!==Y[u]){if(r!==1||u!==1)do if(r--,u--,0>u||j[r]!==Y[u]){var $=`
|
|
6
|
+
`+j[r].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=r&&0<=u);break}}}finally{ka=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Pe(i):""}function bl(e,n){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==n&&n!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return qa(e.type,!1);case 11:return qa(e.type.render,!1);case 1:return qa(e.type,!0);case 31:return Pe("Activity");default:return""}}function hh(e){try{var n="",i=null;do n+=bl(e,i),i=e,e=e.return;while(e);return n}catch(r){return`
|
|
7
|
+
Error generating stack: `+r.message+`
|
|
8
|
+
`+r.stack}}var uu=Object.prototype.hasOwnProperty,cu=t.unstable_scheduleCallback,fu=t.unstable_cancelCallback,Fx=t.unstable_shouldYield,Px=t.unstable_requestPaint,Ot=t.unstable_now,$x=t.unstable_getCurrentPriorityLevel,mh=t.unstable_ImmediatePriority,ph=t.unstable_UserBlockingPriority,Yr=t.unstable_NormalPriority,Jx=t.unstable_LowPriority,gh=t.unstable_IdlePriority,Ix=t.log,Wx=t.unstable_setDisableYieldValue,xl=null,Nt=null;function In(e){if(typeof Ix=="function"&&Wx(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(xl,e)}catch{}}var Mt=Math.clz32?Math.clz32:nS,eS=Math.log,tS=Math.LN2;function nS(e){return e>>>=0,e===0?32:31-(eS(e)/tS|0)|0}var Qr=256,Xr=262144,Kr=4194304;function Ga(e){var n=e&42;if(n!==0)return n;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 Zr(e,n,i){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var _=r&134217727;return _!==0?(r=_&~d,r!==0?u=Ga(r):(v&=_,v!==0?u=Ga(v):i||(i=_&~e,i!==0&&(u=Ga(i))))):(_=r&~d,_!==0?u=Ga(_):v!==0?u=Ga(v):i||(i=r&~e,i!==0&&(u=Ga(i)))),u===0?0:n!==0&&n!==u&&(n&d)===0&&(d=u&-u,i=n&-n,d>=i||d===32&&(i&4194048)!==0)?n:u}function Sl(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function aS(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vh(){var e=Kr;return Kr<<=1,(Kr&62914560)===0&&(Kr=4194304),e}function du(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function wl(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function iS(e,n,i,r,u,d){var v=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var _=e.entanglements,j=e.expirationTimes,Y=e.hiddenUpdates;for(i=v&~i;0<i;){var $=31-Mt(i),I=1<<$;_[$]=0,j[$]=-1;var Q=Y[$];if(Q!==null)for(Y[$]=null,$=0;$<Q.length;$++){var Z=Q[$];Z!==null&&(Z.lane&=-536870913)}i&=~I}r!==0&&yh(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~n))}function yh(e,n,i){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-Mt(n);e.entangledLanes|=n,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function bh(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var r=31-Mt(i),u=1<<r;u&n|e[r]&n&&(e[r]|=n),i&=~u}}function xh(e,n){var i=n&-n;return i=(i&42)!==0?1:hu(i),(i&(e.suspendedLanes|n))!==0?0:i}function hu(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 mu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sh(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:rv(e.type))}function wh(e,n){var i=q.p;try{return q.p=e,n()}finally{q.p=i}}var Wn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Wn,xt="__reactProps$"+Wn,vi="__reactContainer$"+Wn,pu="__reactEvents$"+Wn,lS="__reactListeners$"+Wn,rS="__reactHandles$"+Wn,Eh="__reactResources$"+Wn,El="__reactMarker$"+Wn;function gu(e){delete e[ut],delete e[xt],delete e[pu],delete e[lS],delete e[rS]}function yi(e){var n=e[ut];if(n)return n;for(var i=e.parentNode;i;){if(n=i[vi]||i[ut]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=Qg(e);e!==null;){if(i=e[ut])return i;e=Qg(e)}return n}e=i,i=e.parentNode}return null}function bi(e){if(e=e[ut]||e[vi]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function _l(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(o(33))}function xi(e){var n=e[Eh];return n||(n=e[Eh]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function lt(e){e[El]=!0}var _h=new Set,Ch={};function Va(e,n){Si(e,n),Si(e+"Capture",n)}function Si(e,n){for(Ch[e]=n,e=0;e<n.length;e++)_h.add(n[e])}var oS=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]*$"),Th={},Ah={};function sS(e){return uu.call(Ah,e)?!0:uu.call(Th,e)?!1:oS.test(e)?Ah[e]=!0:(Th[e]=!0,!1)}function Fr(e,n,i){if(sS(n))if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var r=n.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+i)}}function Pr(e,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+i)}}function Cn(e,n,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(n,i,""+r)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function uS(e,n,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(v){i=""+v,d.call(this,v)}}),Object.defineProperty(e,n,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(v){i=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function vu(e){if(!e._valueTracker){var n=Rh(e)?"checked":"value";e._valueTracker=uS(e,n,""+e[n])}}function Oh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),r="";return e&&(r=Rh(e)?e.checked?"true":"false":e.value),e=r,e!==i?(n.setValue(e),!0):!1}function $r(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var cS=/[\n"\\]/g;function Qt(e){return e.replace(cS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function yu(e,n,i,r,u,d,v,_){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),n!=null?v==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Yt(n)):e.value!==""+Yt(n)&&(e.value=""+Yt(n)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),n!=null?bu(e,v,Yt(n)):i!=null?bu(e,v,Yt(i)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.name=""+Yt(_):e.removeAttribute("name")}function Nh(e,n,i,r,u,d,v,_){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){vu(e);return}i=i!=null?""+Yt(i):"",n=n!=null?""+Yt(n):i,_||n===e.value||(e.value=n),e.defaultValue=n}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=_?e.checked:!!r,e.defaultChecked=!!r,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),vu(e)}function bu(e,n,i){n==="number"&&$r(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function wi(e,n,i,r){if(e=e.options,n){n={};for(var u=0;u<i.length;u++)n["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=n.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&r&&(e[i].defaultSelected=!0)}else{for(i=""+Yt(i),n=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Mh(e,n,i){if(n!=null&&(n=""+Yt(n),n!==e.value&&(e.value=n),i==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=i!=null?""+Yt(i):""}function zh(e,n,i,r){if(n==null){if(r!=null){if(i!=null)throw Error(o(92));if(W(r)){if(1<r.length)throw Error(o(93));r=r[0]}i=r}i==null&&(i=""),n=i}i=Yt(n),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),vu(e)}function Ei(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var fS=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 Dh(e,n,i){var r=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":r?e.setProperty(n,i):typeof i!="number"||i===0||fS.has(n)?n==="float"?e.cssFloat=i:e[n]=(""+i).trim():e[n]=i+"px"}function jh(e,n,i){if(n!=null&&typeof n!="object")throw Error(o(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||n!=null&&n.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in n)r=n[u],n.hasOwnProperty(u)&&i[u]!==r&&Dh(e,u,r)}else for(var d in n)n.hasOwnProperty(d)&&Dh(e,d,n[d])}function xu(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 dS=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"]]),hS=/^[\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 Jr(e){return hS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Tn(){}var Su=null;function wu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _i=null,Ci=null;function Lh(e){var n=bi(e);if(n&&(e=n.stateNode)){var i=e[xt]||null;e:switch(e=n.stateNode,n.type){case"input":if(yu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Qt(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var r=i[n];if(r!==e&&r.form===e.form){var u=r[xt]||null;if(!u)throw Error(o(90));yu(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<i.length;n++)r=i[n],r.form===e.form&&Oh(r)}break e;case"textarea":Mh(e,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&wi(e,!!i.multiple,n,!1)}}}var Eu=!1;function Uh(e,n,i){if(Eu)return e(n,i);Eu=!0;try{var r=e(n);return r}finally{if(Eu=!1,(_i!==null||Ci!==null)&&(ko(),_i&&(n=_i,e=Ci,Ci=_i=null,Lh(n),e)))for(n=0;n<e.length;n++)Lh(e[n])}}function Cl(e,n){var i=e.stateNode;if(i===null)return null;var r=i[xt]||null;if(r===null)return null;i=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=!1;if(An)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){_u=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{_u=!1}var ea=null,Cu=null,Ir=null;function Hh(){if(Ir)return Ir;var e,n=Cu,i=n.length,r,u="value"in ea?ea.value:ea.textContent,d=u.length;for(e=0;e<i&&n[e]===u[e];e++);var v=i-e;for(r=1;r<=v&&n[i-r]===u[d-r];r++);return Ir=u.slice(e,1<r?1-r:void 0)}function Wr(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function eo(){return!0}function Bh(){return!1}function St(e){function n(i,r,u,d,v){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var _ in e)e.hasOwnProperty(_)&&(i=e[_],this[_]=i?i(d):d[_]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?eo:Bh,this.isPropagationStopped=Bh,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=eo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),n}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},to=St(Ya),Al=y({},Ya,{view:0,detail:0}),mS=St(Al),Tu,Au,Rl,no=y({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Rl&&(Rl&&e.type==="mousemove"?(Tu=e.screenX-Rl.screenX,Au=e.screenY-Rl.screenY):Au=Tu=0,Rl=e),Tu)},movementY:function(e){return"movementY"in e?e.movementY:Au}}),kh=St(no),pS=y({},no,{dataTransfer:0}),gS=St(pS),vS=y({},Al,{relatedTarget:0}),Ru=St(vS),yS=y({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),bS=St(yS),xS=y({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),SS=St(xS),wS=y({},Ya,{data:0}),qh=St(wS),ES={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_S={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"},CS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TS(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=CS[e])?!!n[e]:!1}function Ou(){return TS}var AS=y({},Al,{key:function(e){if(e.key){var n=ES[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_S[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RS=St(AS),OS=y({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gh=St(OS),NS=y({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),MS=St(NS),zS=y({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),DS=St(zS),jS=y({},no,{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}),LS=St(jS),US=y({},Ya,{newState:0,oldState:0}),HS=St(US),BS=[9,13,27,32],Nu=An&&"CompositionEvent"in window,Ol=null;An&&"documentMode"in document&&(Ol=document.documentMode);var kS=An&&"TextEvent"in window&&!Ol,Vh=An&&(!Nu||Ol&&8<Ol&&11>=Ol),Yh=" ",Qh=!1;function Xh(e,n){switch(e){case"keyup":return BS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function qS(e,n){switch(e){case"compositionend":return Kh(n);case"keypress":return n.which!==32?null:(Qh=!0,Yh);case"textInput":return e=n.data,e===Yh&&Qh?null:e;default:return null}}function GS(e,n){if(Ti)return e==="compositionend"||!Nu&&Xh(e,n)?(e=Hh(),Ir=Cu=ea=null,Ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vh&&n.locale!=="ko"?null:n.data;default:return null}}var VS={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 Zh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!VS[e.type]:n==="textarea"}function Fh(e,n,i,r){_i?Ci?Ci.push(r):Ci=[r]:_i=r,n=Ko(n,"onChange"),0<n.length&&(i=new to("onChange","change",null,i,r),e.push({event:i,listeners:n}))}var Nl=null,Ml=null;function YS(e){Ng(e,0)}function ao(e){var n=_l(e);if(Oh(n))return e}function Ph(e,n){if(e==="change")return n}var $h=!1;if(An){var Mu;if(An){var zu="oninput"in document;if(!zu){var Jh=document.createElement("div");Jh.setAttribute("oninput","return;"),zu=typeof Jh.oninput=="function"}Mu=zu}else Mu=!1;$h=Mu&&(!document.documentMode||9<document.documentMode)}function Ih(){Nl&&(Nl.detachEvent("onpropertychange",Wh),Ml=Nl=null)}function Wh(e){if(e.propertyName==="value"&&ao(Ml)){var n=[];Fh(n,Ml,e,wu(e)),Uh(YS,n)}}function QS(e,n,i){e==="focusin"?(Ih(),Nl=n,Ml=i,Nl.attachEvent("onpropertychange",Wh)):e==="focusout"&&Ih()}function XS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ao(Ml)}function KS(e,n){if(e==="click")return ao(n)}function ZS(e,n){if(e==="input"||e==="change")return ao(n)}function FS(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:FS;function zl(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!uu.call(n,u)||!zt(e[u],n[u]))return!1}return!0}function em(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tm(e,n){var i=em(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=n&&r>=n)return{node:i,offset:n-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=em(i)}}function nm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?nm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function am(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=$r(e.document);n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=$r(e.document)}return n}function Du(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var PS=An&&"documentMode"in document&&11>=document.documentMode,Ai=null,ju=null,Dl=null,Lu=!1;function im(e,n,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Lu||Ai==null||Ai!==$r(r)||(r=Ai,"selectionStart"in r&&Du(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dl&&zl(Dl,r)||(Dl=r,r=Ko(ju,"onSelect"),0<r.length&&(n=new to("onSelect","select",null,n,i),e.push({event:n,listeners:r}),n.target=Ai)))}function Qa(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var Ri={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},Uu={},lm={};An&&(lm=document.createElement("div").style,"AnimationEvent"in window||(delete Ri.animationend.animation,delete Ri.animationiteration.animation,delete Ri.animationstart.animation),"TransitionEvent"in window||delete Ri.transitionend.transition);function Xa(e){if(Uu[e])return Uu[e];if(!Ri[e])return e;var n=Ri[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in lm)return Uu[e]=n[i];return e}var rm=Xa("animationend"),om=Xa("animationiteration"),sm=Xa("animationstart"),$S=Xa("transitionrun"),JS=Xa("transitionstart"),IS=Xa("transitioncancel"),um=Xa("transitionend"),cm=new Map,Hu="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(" ");Hu.push("scrollEnd");function tn(e,n){cm.set(e,n),Va(n,[e])}var io=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xt=[],Oi=0,Bu=0;function lo(){for(var e=Oi,n=Bu=Oi=0;n<e;){var i=Xt[n];Xt[n++]=null;var r=Xt[n];Xt[n++]=null;var u=Xt[n];Xt[n++]=null;var d=Xt[n];if(Xt[n++]=null,r!==null&&u!==null){var v=r.pending;v===null?u.next=u:(u.next=v.next,v.next=u),r.pending=u}d!==0&&fm(i,u,d)}}function ro(e,n,i,r){Xt[Oi++]=e,Xt[Oi++]=n,Xt[Oi++]=i,Xt[Oi++]=r,Bu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ku(e,n,i,r){return ro(e,n,i,r),oo(e)}function Ka(e,n){return ro(e,null,null,n),oo(e)}function fm(e,n,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&n!==null&&(u=31-Mt(i),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[n]:r.push(n),n.lane=i|536870912),d):null}function oo(e){if(50<tr)throw tr=0,Fc=null,Error(o(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ni={};function WS(e,n,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,n,i,r){return new WS(e,n,i,r)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rn(e,n){var i=e.alternate;return i===null?(i=Dt(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function dm(e,n){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,n=i.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function so(e,n,i,r,u,d){var v=0;if(r=e,typeof e=="function")qu(e)&&(v=1);else if(typeof e=="string")v=iw(e,i,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ee:return e=Dt(31,i,n,u),e.elementType=ee,e.lanes=d,e;case b:return Za(i.children,u,d,n);case w:v=8,u|=24;break;case C:return e=Dt(12,i,n,u|2),e.elementType=C,e.lanes=d,e;case L:return e=Dt(13,i,n,u),e.elementType=L,e.lanes=d,e;case G:return e=Dt(19,i,n,u),e.elementType=G,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:v=10;break e;case N:v=9;break e;case T:v=11;break e;case D:v=14;break e;case H:v=16,r=null;break e}v=29,i=Error(o(130,e===null?"null":typeof e,"")),r=null}return n=Dt(v,i,n,u),n.elementType=e,n.type=r,n.lanes=d,n}function Za(e,n,i,r){return e=Dt(7,e,r,n),e.lanes=i,e}function Gu(e,n,i){return e=Dt(6,e,null,n),e.lanes=i,e}function hm(e){var n=Dt(18,null,null,0);return n.stateNode=e,n}function Vu(e,n,i){return n=Dt(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var mm=new WeakMap;function Kt(e,n){if(typeof e=="object"&&e!==null){var i=mm.get(e);return i!==void 0?i:(n={value:e,source:n,stack:hh(n)},mm.set(e,n),n)}return{value:e,source:n,stack:hh(n)}}var Mi=[],zi=0,uo=null,jl=0,Zt=[],Ft=0,ta=null,fn=1,dn="";function On(e,n){Mi[zi++]=jl,Mi[zi++]=uo,uo=e,jl=n}function pm(e,n,i){Zt[Ft++]=fn,Zt[Ft++]=dn,Zt[Ft++]=ta,ta=e;var r=fn;e=dn;var u=32-Mt(r)-1;r&=~(1<<u),i+=1;var d=32-Mt(n)+u;if(30<d){var v=u-u%5;d=(r&(1<<v)-1).toString(32),r>>=v,u-=v,fn=1<<32-Mt(n)+u|i<<u|r,dn=d+e}else fn=1<<d|i<<u|r,dn=e}function Yu(e){e.return!==null&&(On(e,1),pm(e,1,0))}function Qu(e){for(;e===uo;)uo=Mi[--zi],Mi[zi]=null,jl=Mi[--zi],Mi[zi]=null;for(;e===ta;)ta=Zt[--Ft],Zt[Ft]=null,dn=Zt[--Ft],Zt[Ft]=null,fn=Zt[--Ft],Zt[Ft]=null}function gm(e,n){Zt[Ft++]=fn,Zt[Ft++]=dn,Zt[Ft++]=ta,fn=n.id,dn=n.overflow,ta=e}var ct=null,Ge=null,Te=!1,na=null,Pt=!1,Xu=Error(o(519));function aa(e){var n=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ll(Kt(n,e)),Xu}function vm(e){var n=e.stateNode,i=e.type,r=e.memoizedProps;switch(n[ut]=e,n[xt]=r,i){case"dialog":Ee("cancel",n),Ee("close",n);break;case"iframe":case"object":case"embed":Ee("load",n);break;case"video":case"audio":for(i=0;i<ar.length;i++)Ee(ar[i],n);break;case"source":Ee("error",n);break;case"img":case"image":case"link":Ee("error",n),Ee("load",n);break;case"details":Ee("toggle",n);break;case"input":Ee("invalid",n),Nh(n,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",n);break;case"textarea":Ee("invalid",n),zh(n,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||r.suppressHydrationWarning===!0||jg(n.textContent,i)?(r.popover!=null&&(Ee("beforetoggle",n),Ee("toggle",n)),r.onScroll!=null&&Ee("scroll",n),r.onScrollEnd!=null&&Ee("scrollend",n),r.onClick!=null&&(n.onclick=Tn),n=!0):n=!1,n||aa(e,!0)}function ym(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:ct=ct.return}}function Di(e){if(e!==ct)return!1;if(!Te)return ym(e),Te=!0,!1;var n=e.tag,i;if((i=n!==3&&n!==27)&&((i=n===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||cf(e.type,e.memoizedProps)),i=!i),i&&Ge&&aa(e),ym(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ge=Yg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ge=Yg(e)}else n===27?(n=Ge,va(e.type)?(e=pf,pf=null,Ge=e):Ge=n):Ge=ct?Jt(e.stateNode.nextSibling):null;return!0}function Fa(){Ge=ct=null,Te=!1}function Ku(){var e=na;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),na=null),e}function Ll(e){na===null?na=[e]:na.push(e)}var Zu=z(null),Pa=null,Nn=null;function ia(e,n,i){ie(Zu,n._currentValue),n._currentValue=i}function Mn(e){e._currentValue=Zu.current,X(Zu)}function Fu(e,n,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===i)break;e=e.return}}function Pu(e,n,i,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var v=u.child;d=d.firstContext;e:for(;d!==null;){var _=d;d=u;for(var j=0;j<n.length;j++)if(_.context===n[j]){d.lanes|=i,_=d.alternate,_!==null&&(_.lanes|=i),Fu(d.return,i,e),r||(v=null);break e}d=_.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(o(341));v.lanes|=i,d=v.alternate,d!==null&&(d.lanes|=i),Fu(v,i,e),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===e){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function ji(e,n,i,r){e=null;for(var u=n,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(o(387));if(v=v.memoizedProps,v!==null){var _=u.type;zt(u.pendingProps.value,v.value)||(e!==null?e.push(_):e=[_])}}else if(u===ae.current){if(v=u.alternate,v===null)throw Error(o(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(sr):e=[sr])}u=u.return}e!==null&&Pu(n,e,i,r),n.flags|=262144}function co(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $a(e){Pa=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return bm(Pa,e)}function fo(e,n){return Pa===null&&$a(e),bm(e,n)}function bm(e,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Nn===null){if(e===null)throw Error(o(308));Nn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Nn=Nn.next=n;return i}var e1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){n.aborted=!0,e.forEach(function(i){return i()})}},t1=t.unstable_scheduleCallback,n1=t.unstable_NormalPriority,$e={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $u(){return{controller:new e1,data:new Map,refCount:0}}function Ul(e){e.refCount--,e.refCount===0&&t1(n1,function(){e.controller.abort()})}var Hl=null,Ju=0,Li=0,Ui=null;function a1(e,n){if(Hl===null){var i=Hl=[];Ju=0,Li=ef(),Ui={status:"pending",value:void 0,then:function(r){i.push(r)}}}return Ju++,n.then(xm,xm),n}function xm(){if(--Ju===0&&Hl!==null){Ui!==null&&(Ui.status="fulfilled");var e=Hl;Hl=null,Li=0,Ui=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function i1(e,n){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){r.status="fulfilled",r.value=n;for(var u=0;u<i.length;u++)(0,i[u])(n)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var Sm=O.S;O.S=function(e,n){ig=Ot(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&a1(e,n),Sm!==null&&Sm(e,n)};var Ja=z(null);function Iu(){var e=Ja.current;return e!==null?e:Be.pooledCache}function ho(e,n){n===null?ie(Ja,Ja.current):ie(Ja,n.pool)}function wm(){var e=Iu();return e===null?null:{parent:$e._currentValue,pool:e}}var Hi=Error(o(460)),Wu=Error(o(474)),mo=Error(o(542)),po={then:function(){}};function Em(e){return e=e.status,e==="fulfilled"||e==="rejected"}function _m(e,n,i){switch(i=e[i],i===void 0?e.push(n):i!==n&&(n.then(Tn,Tn),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Tm(e),e;default:if(typeof n.status=="string")n.then(Tn,Tn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=n,e.status="pending",e.then(function(r){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=r}},function(r){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=r}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Tm(e),e}throw Wa=n,Hi}}function Ia(e){try{var n=e._init;return n(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Wa=i,Hi):i}}var Wa=null;function Cm(){if(Wa===null)throw Error(o(459));var e=Wa;return Wa=null,e}function Tm(e){if(e===Hi||e===mo)throw Error(o(483))}var Bi=null,Bl=0;function go(e){var n=Bl;return Bl+=1,Bi===null&&(Bi=[]),_m(Bi,e,n)}function kl(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function vo(e,n){throw n.$$typeof===x?Error(o(525)):(e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Am(e){function n(k,U){if(e){var V=k.deletions;V===null?(k.deletions=[U],k.flags|=16):V.push(U)}}function i(k,U){if(!e)return null;for(;U!==null;)n(k,U),U=U.sibling;return null}function r(k){for(var U=new Map;k!==null;)k.key!==null?U.set(k.key,k):U.set(k.index,k),k=k.sibling;return U}function u(k,U){return k=Rn(k,U),k.index=0,k.sibling=null,k}function d(k,U,V){return k.index=V,e?(V=k.alternate,V!==null?(V=V.index,V<U?(k.flags|=67108866,U):V):(k.flags|=67108866,U)):(k.flags|=1048576,U)}function v(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function _(k,U,V,J){return U===null||U.tag!==6?(U=Gu(V,k.mode,J),U.return=k,U):(U=u(U,V),U.return=k,U)}function j(k,U,V,J){var pe=V.type;return pe===b?$(k,U,V.props.children,J,V.key):U!==null&&(U.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===H&&Ia(pe)===U.type)?(U=u(U,V.props),kl(U,V),U.return=k,U):(U=so(V.type,V.key,V.props,null,k.mode,J),kl(U,V),U.return=k,U)}function Y(k,U,V,J){return U===null||U.tag!==4||U.stateNode.containerInfo!==V.containerInfo||U.stateNode.implementation!==V.implementation?(U=Vu(V,k.mode,J),U.return=k,U):(U=u(U,V.children||[]),U.return=k,U)}function $(k,U,V,J,pe){return U===null||U.tag!==7?(U=Za(V,k.mode,J,pe),U.return=k,U):(U=u(U,V),U.return=k,U)}function I(k,U,V){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Gu(""+U,k.mode,V),U.return=k,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case E:return V=so(U.type,U.key,U.props,null,k.mode,V),kl(V,U),V.return=k,V;case A:return U=Vu(U,k.mode,V),U.return=k,U;case H:return U=Ia(U),I(k,U,V)}if(W(U)||re(U))return U=Za(U,k.mode,V,null),U.return=k,U;if(typeof U.then=="function")return I(k,go(U),V);if(U.$$typeof===M)return I(k,fo(k,U),V);vo(k,U)}return null}function Q(k,U,V,J){var pe=U!==null?U.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return pe!==null?null:_(k,U,""+V,J);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case E:return V.key===pe?j(k,U,V,J):null;case A:return V.key===pe?Y(k,U,V,J):null;case H:return V=Ia(V),Q(k,U,V,J)}if(W(V)||re(V))return pe!==null?null:$(k,U,V,J,null);if(typeof V.then=="function")return Q(k,U,go(V),J);if(V.$$typeof===M)return Q(k,U,fo(k,V),J);vo(k,V)}return null}function Z(k,U,V,J,pe){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return k=k.get(V)||null,_(U,k,""+J,pe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case E:return k=k.get(J.key===null?V:J.key)||null,j(U,k,J,pe);case A:return k=k.get(J.key===null?V:J.key)||null,Y(U,k,J,pe);case H:return J=Ia(J),Z(k,U,V,J,pe)}if(W(J)||re(J))return k=k.get(V)||null,$(U,k,J,pe,null);if(typeof J.then=="function")return Z(k,U,V,go(J),pe);if(J.$$typeof===M)return Z(k,U,V,fo(U,J),pe);vo(U,J)}return null}function ue(k,U,V,J){for(var pe=null,Oe=null,he=U,xe=U=0,Ce=null;he!==null&&xe<V.length;xe++){he.index>xe?(Ce=he,he=null):Ce=he.sibling;var Ne=Q(k,he,V[xe],J);if(Ne===null){he===null&&(he=Ce);break}e&&he&&Ne.alternate===null&&n(k,he),U=d(Ne,U,xe),Oe===null?pe=Ne:Oe.sibling=Ne,Oe=Ne,he=Ce}if(xe===V.length)return i(k,he),Te&&On(k,xe),pe;if(he===null){for(;xe<V.length;xe++)he=I(k,V[xe],J),he!==null&&(U=d(he,U,xe),Oe===null?pe=he:Oe.sibling=he,Oe=he);return Te&&On(k,xe),pe}for(he=r(he);xe<V.length;xe++)Ce=Z(he,k,xe,V[xe],J),Ce!==null&&(e&&Ce.alternate!==null&&he.delete(Ce.key===null?xe:Ce.key),U=d(Ce,U,xe),Oe===null?pe=Ce:Oe.sibling=Ce,Oe=Ce);return e&&he.forEach(function(wa){return n(k,wa)}),Te&&On(k,xe),pe}function ve(k,U,V,J){if(V==null)throw Error(o(151));for(var pe=null,Oe=null,he=U,xe=U=0,Ce=null,Ne=V.next();he!==null&&!Ne.done;xe++,Ne=V.next()){he.index>xe?(Ce=he,he=null):Ce=he.sibling;var wa=Q(k,he,Ne.value,J);if(wa===null){he===null&&(he=Ce);break}e&&he&&wa.alternate===null&&n(k,he),U=d(wa,U,xe),Oe===null?pe=wa:Oe.sibling=wa,Oe=wa,he=Ce}if(Ne.done)return i(k,he),Te&&On(k,xe),pe;if(he===null){for(;!Ne.done;xe++,Ne=V.next())Ne=I(k,Ne.value,J),Ne!==null&&(U=d(Ne,U,xe),Oe===null?pe=Ne:Oe.sibling=Ne,Oe=Ne);return Te&&On(k,xe),pe}for(he=r(he);!Ne.done;xe++,Ne=V.next())Ne=Z(he,k,xe,Ne.value,J),Ne!==null&&(e&&Ne.alternate!==null&&he.delete(Ne.key===null?xe:Ne.key),U=d(Ne,U,xe),Oe===null?pe=Ne:Oe.sibling=Ne,Oe=Ne);return e&&he.forEach(function(pw){return n(k,pw)}),Te&&On(k,xe),pe}function He(k,U,V,J){if(typeof V=="object"&&V!==null&&V.type===b&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case E:e:{for(var pe=V.key;U!==null;){if(U.key===pe){if(pe=V.type,pe===b){if(U.tag===7){i(k,U.sibling),J=u(U,V.props.children),J.return=k,k=J;break e}}else if(U.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===H&&Ia(pe)===U.type){i(k,U.sibling),J=u(U,V.props),kl(J,V),J.return=k,k=J;break e}i(k,U);break}else n(k,U);U=U.sibling}V.type===b?(J=Za(V.props.children,k.mode,J,V.key),J.return=k,k=J):(J=so(V.type,V.key,V.props,null,k.mode,J),kl(J,V),J.return=k,k=J)}return v(k);case A:e:{for(pe=V.key;U!==null;){if(U.key===pe)if(U.tag===4&&U.stateNode.containerInfo===V.containerInfo&&U.stateNode.implementation===V.implementation){i(k,U.sibling),J=u(U,V.children||[]),J.return=k,k=J;break e}else{i(k,U);break}else n(k,U);U=U.sibling}J=Vu(V,k.mode,J),J.return=k,k=J}return v(k);case H:return V=Ia(V),He(k,U,V,J)}if(W(V))return ue(k,U,V,J);if(re(V)){if(pe=re(V),typeof pe!="function")throw Error(o(150));return V=pe.call(V),ve(k,U,V,J)}if(typeof V.then=="function")return He(k,U,go(V),J);if(V.$$typeof===M)return He(k,U,fo(k,V),J);vo(k,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,U!==null&&U.tag===6?(i(k,U.sibling),J=u(U,V),J.return=k,k=J):(i(k,U),J=Gu(V,k.mode,J),J.return=k,k=J),v(k)):i(k,U)}return function(k,U,V,J){try{Bl=0;var pe=He(k,U,V,J);return Bi=null,pe}catch(he){if(he===Hi||he===mo)throw he;var Oe=Dt(29,he,null,k.mode);return Oe.lanes=J,Oe.return=k,Oe}}}var ei=Am(!0),Rm=Am(!1),la=!1;function ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oa(e,n,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Me&2)!==0){var u=r.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),r.pending=n,n=oo(e),fm(e,null,i),n}return ro(e,r,n,i),oo(e)}function ql(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194048)!==0)){var r=n.lanes;r&=e.pendingLanes,i|=r,n.lanes=i,bh(e,i)}}function nc(e,n){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var v={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=v:d=d.next=v,i=i.next}while(i!==null);d===null?u=d=n:d=d.next=n}else u=d=n;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}var ac=!1;function Gl(){if(ac){var e=Ui;if(e!==null)throw e}}function Vl(e,n,i,r){ac=!1;var u=e.updateQueue;la=!1;var d=u.firstBaseUpdate,v=u.lastBaseUpdate,_=u.shared.pending;if(_!==null){u.shared.pending=null;var j=_,Y=j.next;j.next=null,v===null?d=Y:v.next=Y,v=j;var $=e.alternate;$!==null&&($=$.updateQueue,_=$.lastBaseUpdate,_!==v&&(_===null?$.firstBaseUpdate=Y:_.next=Y,$.lastBaseUpdate=j))}if(d!==null){var I=u.baseState;v=0,$=Y=j=null,_=d;do{var Q=_.lane&-536870913,Z=Q!==_.lane;if(Z?(_e&Q)===Q:(r&Q)===Q){Q!==0&&Q===Li&&(ac=!0),$!==null&&($=$.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var ue=e,ve=_;Q=n;var He=i;switch(ve.tag){case 1:if(ue=ve.payload,typeof ue=="function"){I=ue.call(He,I,Q);break e}I=ue;break e;case 3:ue.flags=ue.flags&-65537|128;case 0:if(ue=ve.payload,Q=typeof ue=="function"?ue.call(He,I,Q):ue,Q==null)break e;I=y({},I,Q);break e;case 2:la=!0}}Q=_.callback,Q!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=u.callbacks,Z===null?u.callbacks=[Q]:Z.push(Q))}else Z={lane:Q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},$===null?(Y=$=Z,j=I):$=$.next=Z,v|=Q;if(_=_.next,_===null){if(_=u.shared.pending,_===null)break;Z=_,_=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);$===null&&(j=I),u.baseState=j,u.firstBaseUpdate=Y,u.lastBaseUpdate=$,d===null&&(u.shared.lanes=0),da|=v,e.lanes=v,e.memoizedState=I}}function Om(e,n){if(typeof e!="function")throw Error(o(191,e));e.call(n)}function Nm(e,n){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Om(i[e],n)}var ki=z(null),yo=z(0);function Mm(e,n){e=qn,ie(yo,e),ie(ki,n),qn=e|n.baseLanes}function ic(){ie(yo,qn),ie(ki,ki.current)}function lc(){qn=yo.current,X(ki),X(yo)}var jt=z(null),$t=null;function sa(e){var n=e.alternate;ie(Ze,Ze.current&1),ie(jt,e),$t===null&&(n===null||ki.current!==null||n.memoizedState!==null)&&($t=e)}function rc(e){ie(Ze,Ze.current),ie(jt,e),$t===null&&($t=e)}function zm(e){e.tag===22?(ie(Ze,Ze.current),ie(jt,e),$t===null&&($t=e)):ua()}function ua(){ie(Ze,Ze.current),ie(jt,jt.current)}function Lt(e){X(jt),$t===e&&($t=null),X(Ze)}var Ze=z(0);function bo(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||hf(i)||mf(i)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var zn=0,be=null,Le=null,Je=null,xo=!1,qi=!1,ti=!1,So=0,Yl=0,Gi=null,l1=0;function Xe(){throw Error(o(321))}function oc(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!zt(e[i],n[i]))return!1;return!0}function sc(e,n,i,r,u,d){return zn=d,be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,O.H=e===null||e.memoizedState===null?pp:Ec,ti=!1,d=i(r,u),ti=!1,qi&&(d=jm(n,i,r,u)),Dm(e),d}function Dm(e){O.H=Kl;var n=Le!==null&&Le.next!==null;if(zn=0,Je=Le=be=null,xo=!1,Yl=0,Gi=null,n)throw Error(o(300));e===null||Ie||(e=e.dependencies,e!==null&&co(e)&&(Ie=!0))}function jm(e,n,i,r){be=e;var u=0;do{if(qi&&(Gi=null),Yl=0,qi=!1,25<=u)throw Error(o(301));if(u+=1,Je=Le=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}O.H=gp,d=n(i,r)}while(qi);return d}function r1(){var e=O.H,n=e.useState()[0];return n=typeof n.then=="function"?Ql(n):n,e=e.useState()[0],(Le!==null?Le.memoizedState:null)!==e&&(be.flags|=1024),n}function uc(){var e=So!==0;return So=0,e}function cc(e,n,i){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~i}function fc(e){if(xo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}xo=!1}zn=0,Je=Le=be=null,qi=!1,Yl=So=0,Gi=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?be.memoizedState=Je=e:Je=Je.next=e,Je}function Fe(){if(Le===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Le.next;var n=Je===null?be.memoizedState:Je.next;if(n!==null)Je=n,Le=e;else{if(e===null)throw be.alternate===null?Error(o(467)):Error(o(310));Le=e,e={memoizedState:Le.memoizedState,baseState:Le.baseState,baseQueue:Le.baseQueue,queue:Le.queue,next:null},Je===null?be.memoizedState=Je=e:Je=Je.next=e}return Je}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ql(e){var n=Yl;return Yl+=1,Gi===null&&(Gi=[]),e=_m(Gi,e,n),n=be,(Je===null?n.memoizedState:Je.next)===null&&(n=n.alternate,O.H=n===null||n.memoizedState===null?pp:Ec),e}function Eo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ql(e);if(e.$$typeof===M)return ft(e)}throw Error(o(438,String(e)))}function dc(e){var n=null,i=be.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var r=be.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(n={data:r.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=wo(),be.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(e),r=0;r<e;r++)i[r]=F;return n.index++,i}function Dn(e,n){return typeof n=="function"?n(e):n}function _o(e){var n=Fe();return hc(n,Le,e)}function hc(e,n,i){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=i;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var v=u.next;u.next=d.next,d.next=v}n.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{n=u.next;var _=v=null,j=null,Y=n,$=!1;do{var I=Y.lane&-536870913;if(I!==Y.lane?(_e&I)===I:(zn&I)===I){var Q=Y.revertLane;if(Q===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),I===Li&&($=!0);else if((zn&Q)===Q){Y=Y.next,Q===Li&&($=!0);continue}else I={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},j===null?(_=j=I,v=d):j=j.next=I,be.lanes|=Q,da|=Q;I=Y.action,ti&&i(d,I),d=Y.hasEagerState?Y.eagerState:i(d,I)}else Q={lane:I,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},j===null?(_=j=Q,v=d):j=j.next=Q,be.lanes|=I,da|=I;Y=Y.next}while(Y!==null&&Y!==n);if(j===null?v=d:j.next=_,!zt(d,e.memoizedState)&&(Ie=!0,$&&(i=Ui,i!==null)))throw i;e.memoizedState=d,e.baseState=v,e.baseQueue=j,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function mc(e){var n=Fe(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var r=i.dispatch,u=i.pending,d=n.memoizedState;if(u!==null){i.pending=null;var v=u=u.next;do d=e(d,v.action),v=v.next;while(v!==u);zt(d,n.memoizedState)||(Ie=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),i.lastRenderedState=d}return[d,r]}function Lm(e,n,i){var r=be,u=Fe(),d=Te;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=n();var v=!zt((Le||u).memoizedState,i);if(v&&(u.memoizedState=i,Ie=!0),u=u.queue,vc(Bm.bind(null,r,u,e),[e]),u.getSnapshot!==n||v||Je!==null&&Je.memoizedState.tag&1){if(r.flags|=2048,Vi(9,{destroy:void 0},Hm.bind(null,r,u,i,n),null),Be===null)throw Error(o(349));d||(zn&127)!==0||Um(r,n,i)}return i}function Um(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=be.updateQueue,n===null?(n=wo(),be.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Hm(e,n,i,r){n.value=i,n.getSnapshot=r,km(n)&&qm(e)}function Bm(e,n,i){return i(function(){km(n)&&qm(e)})}function km(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!zt(e,i)}catch{return!0}}function qm(e){var n=Ka(e,2);n!==null&&Tt(n,e,2)}function pc(e){var n=gt();if(typeof e=="function"){var i=e;if(e=i(),ti){In(!0);try{i()}finally{In(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},n}function Gm(e,n,i,r){return e.baseState=i,hc(e,Le,typeof r=="function"?r:Dn)}function o1(e,n,i,r,u){if(Ao(e))throw Error(o(485));if(e=n.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};O.T!==null?i(!0):d.isTransition=!1,r(d),i=n.pending,i===null?(d.next=n.pending=d,Vm(n,d)):(d.next=i.next,n.pending=i.next=d)}}function Vm(e,n){var i=n.action,r=n.payload,u=e.state;if(n.isTransition){var d=O.T,v={};O.T=v;try{var _=i(u,r),j=O.S;j!==null&&j(v,_),Ym(e,n,_)}catch(Y){gc(e,n,Y)}finally{d!==null&&v.types!==null&&(d.types=v.types),O.T=d}}else try{d=i(u,r),Ym(e,n,d)}catch(Y){gc(e,n,Y)}}function Ym(e,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Qm(e,n,r)},function(r){return gc(e,n,r)}):Qm(e,n,i)}function Qm(e,n,i){n.status="fulfilled",n.value=i,Xm(n),e.state=i,n=e.pending,n!==null&&(i=n.next,i===n?e.pending=null:(i=i.next,n.next=i,Vm(e,i)))}function gc(e,n,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do n.status="rejected",n.reason=i,Xm(n),n=n.next;while(n!==r)}e.action=null}function Xm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Km(e,n){return n}function Zm(e,n){if(Te){var i=Be.formState;if(i!==null){e:{var r=be;if(Te){if(Ge){t:{for(var u=Ge,d=Pt;u.nodeType!==8;){if(!d){u=null;break t}if(u=Jt(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Ge=Jt(u.nextSibling),r=u.data==="F!";break e}}aa(r)}r=!1}r&&(n=i[0])}}return i=gt(),i.memoizedState=i.baseState=n,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Km,lastRenderedState:n},i.queue=r,i=dp.bind(null,be,r),r.dispatch=i,r=pc(!1),d=wc.bind(null,be,!1,r.queue),r=gt(),u={state:n,dispatch:null,action:e,pending:null},r.queue=u,i=o1.bind(null,be,u,d,i),u.dispatch=i,r.memoizedState=e,[n,i,!1]}function Fm(e){var n=Fe();return Pm(n,Le,e)}function Pm(e,n,i){if(n=hc(e,n,Km)[0],e=_o(Dn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var r=Ql(n)}catch(v){throw v===Hi?mo:v}else r=n;n=Fe();var u=n.queue,d=u.dispatch;return i!==n.memoizedState&&(be.flags|=2048,Vi(9,{destroy:void 0},s1.bind(null,u,i),null)),[r,d,e]}function s1(e,n){e.action=n}function $m(e){var n=Fe(),i=Le;if(i!==null)return Pm(n,i,e);Fe(),n=n.memoizedState,i=Fe();var r=i.queue.dispatch;return i.memoizedState=e,[n,r,!1]}function Vi(e,n,i,r){return e={tag:e,create:i,deps:r,inst:n,next:null},n=be.updateQueue,n===null&&(n=wo(),be.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,n.lastEffect=e),e}function Jm(){return Fe().memoizedState}function Co(e,n,i,r){var u=gt();be.flags|=e,u.memoizedState=Vi(1|n,{destroy:void 0},i,r===void 0?null:r)}function To(e,n,i,r){var u=Fe();r=r===void 0?null:r;var d=u.memoizedState.inst;Le!==null&&r!==null&&oc(r,Le.memoizedState.deps)?u.memoizedState=Vi(n,d,i,r):(be.flags|=e,u.memoizedState=Vi(1|n,d,i,r))}function Im(e,n){Co(8390656,8,e,n)}function vc(e,n){To(2048,8,e,n)}function u1(e){be.flags|=4;var n=be.updateQueue;if(n===null)n=wo(),be.updateQueue=n,n.events=[e];else{var i=n.events;i===null?n.events=[e]:i.push(e)}}function Wm(e){var n=Fe().memoizedState;return u1({ref:n,nextImpl:e}),function(){if((Me&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}function ep(e,n){return To(4,2,e,n)}function tp(e,n){return To(4,4,e,n)}function np(e,n){if(typeof n=="function"){e=e();var i=n(e);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function ap(e,n,i){i=i!=null?i.concat([e]):null,To(4,4,np.bind(null,n,e),i)}function yc(){}function ip(e,n){var i=Fe();n=n===void 0?null:n;var r=i.memoizedState;return n!==null&&oc(n,r[1])?r[0]:(i.memoizedState=[e,n],e)}function lp(e,n){var i=Fe();n=n===void 0?null:n;var r=i.memoizedState;if(n!==null&&oc(n,r[1]))return r[0];if(r=e(),ti){In(!0);try{e()}finally{In(!1)}}return i.memoizedState=[r,n],r}function bc(e,n,i){return i===void 0||(zn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=n:(e.memoizedState=i,e=rg(),be.lanes|=e,da|=e,i)}function rp(e,n,i,r){return zt(i,n)?i:ki.current!==null?(e=bc(e,i,r),zt(e,n)||(Ie=!0),e):(zn&42)===0||(zn&1073741824)!==0&&(_e&261930)===0?(Ie=!0,e.memoizedState=i):(e=rg(),be.lanes|=e,da|=e,n)}function op(e,n,i,r,u){var d=q.p;q.p=d!==0&&8>d?d:8;var v=O.T,_={};O.T=_,wc(e,!1,n,i);try{var j=u(),Y=O.S;if(Y!==null&&Y(_,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var $=i1(j,r);Xl(e,n,$,Bt(e))}else Xl(e,n,r,Bt(e))}catch(I){Xl(e,n,{then:function(){},status:"rejected",reason:I},Bt())}finally{q.p=d,v!==null&&_.types!==null&&(v.types=_.types),O.T=v}}function c1(){}function xc(e,n,i,r){if(e.tag!==5)throw Error(o(476));var u=sp(e).queue;op(e,u,n,K,i===null?c1:function(){return up(e),i(r)})}function sp(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:K},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:i},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function up(e){var n=sp(e);n.next===null&&(n=e.alternate.memoizedState),Xl(e,n.next.queue,{},Bt())}function Sc(){return ft(sr)}function cp(){return Fe().memoizedState}function fp(){return Fe().memoizedState}function f1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var i=Bt();e=ra(i);var r=oa(n,e,i);r!==null&&(Tt(r,n,i),ql(r,n,i)),n={cache:$u()},e.payload=n;return}n=n.return}}function d1(e,n,i){var r=Bt();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ao(e)?hp(n,i):(i=ku(e,n,i,r),i!==null&&(Tt(i,e,r),mp(i,n,r)))}function dp(e,n,i){var r=Bt();Xl(e,n,i,r)}function Xl(e,n,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ao(e))hp(n,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var v=n.lastRenderedState,_=d(v,i);if(u.hasEagerState=!0,u.eagerState=_,zt(_,v))return ro(e,n,u,0),Be===null&&lo(),!1}catch{}if(i=ku(e,n,u,r),i!==null)return Tt(i,e,r),mp(i,n,r),!0}return!1}function wc(e,n,i,r){if(r={lane:2,revertLane:ef(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ao(e)){if(n)throw Error(o(479))}else n=ku(e,i,r,2),n!==null&&Tt(n,e,2)}function Ao(e){var n=e.alternate;return e===be||n!==null&&n===be}function hp(e,n){qi=xo=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function mp(e,n,i){if((i&4194048)!==0){var r=n.lanes;r&=e.pendingLanes,i|=r,n.lanes=i,bh(e,i)}}var Kl={readContext:ft,use:Eo,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Kl.useEffectEvent=Xe;var pp={readContext:ft,use:Eo,useCallback:function(e,n){return gt().memoizedState=[e,n===void 0?null:n],e},useContext:ft,useEffect:Im,useImperativeHandle:function(e,n,i){i=i!=null?i.concat([e]):null,Co(4194308,4,np.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Co(4194308,4,e,n)},useInsertionEffect:function(e,n){Co(4,2,e,n)},useMemo:function(e,n){var i=gt();n=n===void 0?null:n;var r=e();if(ti){In(!0);try{e()}finally{In(!1)}}return i.memoizedState=[r,n],r},useReducer:function(e,n,i){var r=gt();if(i!==void 0){var u=i(n);if(ti){In(!0);try{i(n)}finally{In(!1)}}}else u=n;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=d1.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var n=gt();return e={current:e},n.memoizedState=e},useState:function(e){e=pc(e);var n=e.queue,i=dp.bind(null,be,n);return n.dispatch=i,[e.memoizedState,i]},useDebugValue:yc,useDeferredValue:function(e,n){var i=gt();return bc(i,e,n)},useTransition:function(){var e=pc(!1);return e=op.bind(null,be,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,i){var r=be,u=gt();if(Te){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Be===null)throw Error(o(349));(_e&127)!==0||Um(r,n,i)}u.memoizedState=i;var d={value:i,getSnapshot:n};return u.queue=d,Im(Bm.bind(null,r,d,e),[e]),r.flags|=2048,Vi(9,{destroy:void 0},Hm.bind(null,r,d,i,n),null),i},useId:function(){var e=gt(),n=Be.identifierPrefix;if(Te){var i=dn,r=fn;i=(r&~(1<<32-Mt(r)-1)).toString(32)+i,n="_"+n+"R_"+i,i=So++,0<i&&(n+="H"+i.toString(32)),n+="_"}else i=l1++,n="_"+n+"r_"+i.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Sc,useFormState:Zm,useActionState:Zm,useOptimistic:function(e){var n=gt();n.memoizedState=n.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=wc.bind(null,be,!0,i),i.dispatch=n,[e,n]},useMemoCache:dc,useCacheRefresh:function(){return gt().memoizedState=f1.bind(null,be)},useEffectEvent:function(e){var n=gt(),i={impl:e};return n.memoizedState=i,function(){if((Me&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},Ec={readContext:ft,use:Eo,useCallback:ip,useContext:ft,useEffect:vc,useImperativeHandle:ap,useInsertionEffect:ep,useLayoutEffect:tp,useMemo:lp,useReducer:_o,useRef:Jm,useState:function(){return _o(Dn)},useDebugValue:yc,useDeferredValue:function(e,n){var i=Fe();return rp(i,Le.memoizedState,e,n)},useTransition:function(){var e=_o(Dn)[0],n=Fe().memoizedState;return[typeof e=="boolean"?e:Ql(e),n]},useSyncExternalStore:Lm,useId:cp,useHostTransitionStatus:Sc,useFormState:Fm,useActionState:Fm,useOptimistic:function(e,n){var i=Fe();return Gm(i,Le,e,n)},useMemoCache:dc,useCacheRefresh:fp};Ec.useEffectEvent=Wm;var gp={readContext:ft,use:Eo,useCallback:ip,useContext:ft,useEffect:vc,useImperativeHandle:ap,useInsertionEffect:ep,useLayoutEffect:tp,useMemo:lp,useReducer:mc,useRef:Jm,useState:function(){return mc(Dn)},useDebugValue:yc,useDeferredValue:function(e,n){var i=Fe();return Le===null?bc(i,e,n):rp(i,Le.memoizedState,e,n)},useTransition:function(){var e=mc(Dn)[0],n=Fe().memoizedState;return[typeof e=="boolean"?e:Ql(e),n]},useSyncExternalStore:Lm,useId:cp,useHostTransitionStatus:Sc,useFormState:$m,useActionState:$m,useOptimistic:function(e,n){var i=Fe();return Le!==null?Gm(i,Le,e,n):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:dc,useCacheRefresh:fp};gp.useEffectEvent=Wm;function _c(e,n,i,r){n=e.memoizedState,i=i(r,n),i=i==null?n:y({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Cc={enqueueSetState:function(e,n,i){e=e._reactInternals;var r=Bt(),u=ra(r);u.payload=n,i!=null&&(u.callback=i),n=oa(e,u,r),n!==null&&(Tt(n,e,r),ql(n,e,r))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var r=Bt(),u=ra(r);u.tag=1,u.payload=n,i!=null&&(u.callback=i),n=oa(e,u,r),n!==null&&(Tt(n,e,r),ql(n,e,r))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=Bt(),r=ra(i);r.tag=2,n!=null&&(r.callback=n),n=oa(e,r,i),n!==null&&(Tt(n,e,i),ql(n,e,i))}};function vp(e,n,i,r,u,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,v):n.prototype&&n.prototype.isPureReactComponent?!zl(i,r)||!zl(u,d):!0}function yp(e,n,i,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,r),n.state!==e&&Cc.enqueueReplaceState(n,n.state,null)}function ni(e,n){var i=n;if("ref"in n){i={};for(var r in n)r!=="ref"&&(i[r]=n[r])}if(e=e.defaultProps){i===n&&(i=y({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function bp(e){io(e)}function xp(e){console.error(e)}function Sp(e){io(e)}function Ro(e,n){try{var i=e.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(r){setTimeout(function(){throw r})}}function wp(e,n,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Tc(e,n,i){return i=ra(i),i.tag=3,i.payload={element:null},i.callback=function(){Ro(e,n)},i}function Ep(e){return e=ra(e),e.tag=3,e}function _p(e,n,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){wp(n,i,r)}}var v=i.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){wp(n,i,r),typeof u!="function"&&(ha===null?ha=new Set([this]):ha.add(this));var _=r.stack;this.componentDidCatch(r.value,{componentStack:_!==null?_:""})})}function h1(e,n,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(n=i.alternate,n!==null&&ji(n,i,u,!0),i=jt.current,i!==null){switch(i.tag){case 31:case 13:return $t===null?qo():i.alternate===null&&Ke===0&&(Ke=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===po?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([r]):n.add(r),Jc(e,r,u)),!1;case 22:return i.flags|=65536,r===po?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([r]):i.add(r)),Jc(e,r,u)),!1}throw Error(o(435,i.tag))}return Jc(e,r,u),qo(),!1}if(Te)return n=jt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,r!==Xu&&(e=Error(o(422),{cause:r}),Ll(Kt(e,i)))):(r!==Xu&&(n=Error(o(423),{cause:r}),Ll(Kt(n,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=Kt(r,i),u=Tc(e.stateNode,r,u),nc(e,u),Ke!==4&&(Ke=2)),!1;var d=Error(o(520),{cause:r});if(d=Kt(d,i),er===null?er=[d]:er.push(d),Ke!==4&&(Ke=2),n===null)return!0;r=Kt(r,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=Tc(i.stateNode,r,e),nc(i,e),!1;case 1:if(n=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ha===null||!ha.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=Ep(u),_p(u,e,i,r),nc(i,u),!1}i=i.return}while(i!==null);return!1}var Ac=Error(o(461)),Ie=!1;function dt(e,n,i,r){n.child=e===null?Rm(n,null,i,r):ei(n,e.child,i,r)}function Cp(e,n,i,r,u){i=i.render;var d=n.ref;if("ref"in r){var v={};for(var _ in r)_!=="ref"&&(v[_]=r[_])}else v=r;return $a(n),r=sc(e,n,i,v,d,u),_=uc(),e!==null&&!Ie?(cc(e,n,u),jn(e,n,u)):(Te&&_&&Yu(n),n.flags|=1,dt(e,n,r,u),n.child)}function Tp(e,n,i,r,u){if(e===null){var d=i.type;return typeof d=="function"&&!qu(d)&&d.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=d,Ap(e,n,d,r,u)):(e=so(i.type,null,r,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Lc(e,u)){var v=d.memoizedProps;if(i=i.compare,i=i!==null?i:zl,i(v,r)&&e.ref===n.ref)return jn(e,n,u)}return n.flags|=1,e=Rn(d,r),e.ref=n.ref,e.return=n,n.child=e}function Ap(e,n,i,r,u){if(e!==null){var d=e.memoizedProps;if(zl(d,r)&&e.ref===n.ref)if(Ie=!1,n.pendingProps=r=d,Lc(e,u))(e.flags&131072)!==0&&(Ie=!0);else return n.lanes=e.lanes,jn(e,n,u)}return Rc(e,n,i,r,u)}function Rp(e,n,i,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=n.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,n.child=null;return Op(e,n,d,i,r)}if((i&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(n,d!==null?d.cachePool:null),d!==null?Mm(n,d):ic(),zm(n);else return r=n.lanes=536870912,Op(e,n,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(ho(n,d.cachePool),Mm(n,d),ua(),n.memoizedState=null):(e!==null&&ho(n,null),ic(),ua());return dt(e,n,u,i),n.child}function Zl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Op(e,n,i,r,u){var d=Iu();return d=d===null?null:{parent:$e._currentValue,pool:d},n.memoizedState={baseLanes:i,cachePool:d},e!==null&&ho(n,null),ic(),zm(n),e!==null&&ji(e,n,r,!0),n.childLanes=u,null}function Oo(e,n){return n=Mo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Np(e,n,i){return ei(n,e.child,null,i),e=Oo(n,n.pendingProps),e.flags|=2,Lt(n),n.memoizedState=null,e}function m1(e,n,i){var r=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Te){if(r.mode==="hidden")return e=Oo(n,r),n.lanes=536870912,Zl(null,e);if(rc(n),(e=Ge)?(e=Vg(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ta!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},i=hm(e),i.return=n,n.child=i,ct=n,Ge=null)):e=null,e===null)throw aa(n);return n.lanes=536870912,null}return Oo(n,r)}var d=e.memoizedState;if(d!==null){var v=d.dehydrated;if(rc(n),u)if(n.flags&256)n.flags&=-257,n=Np(e,n,i);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(o(558));else if(Ie||ji(e,n,i,!1),u=(i&e.childLanes)!==0,Ie||u){if(r=Be,r!==null&&(v=xh(r,i),v!==0&&v!==d.retryLane))throw d.retryLane=v,Ka(e,v),Tt(r,e,v),Ac;qo(),n=Np(e,n,i)}else e=d.treeContext,Ge=Jt(v.nextSibling),ct=n,Te=!0,na=null,Pt=!1,e!==null&&gm(n,e),n=Oo(n,r),n.flags|=4096;return n}return e=Rn(e.child,{mode:r.mode,children:r.children}),e.ref=n.ref,n.child=e,e.return=n,e}function No(e,n){var i=n.ref;if(i===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(n.flags|=4194816)}}function Rc(e,n,i,r,u){return $a(n),i=sc(e,n,i,r,void 0,u),r=uc(),e!==null&&!Ie?(cc(e,n,u),jn(e,n,u)):(Te&&r&&Yu(n),n.flags|=1,dt(e,n,i,u),n.child)}function Mp(e,n,i,r,u,d){return $a(n),n.updateQueue=null,i=jm(n,r,i,u),Dm(e),r=uc(),e!==null&&!Ie?(cc(e,n,d),jn(e,n,d)):(Te&&r&&Yu(n),n.flags|=1,dt(e,n,i,d),n.child)}function zp(e,n,i,r,u){if($a(n),n.stateNode===null){var d=Ni,v=i.contextType;typeof v=="object"&&v!==null&&(d=ft(v)),d=new i(r,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Cc,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=r,d.state=n.memoizedState,d.refs={},ec(n),v=i.contextType,d.context=typeof v=="object"&&v!==null?ft(v):Ni,d.state=n.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(_c(n,i,v,r),d.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&Cc.enqueueReplaceState(d,d.state,null),Vl(n,r,d,u),Gl(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),r=!0}else if(e===null){d=n.stateNode;var _=n.memoizedProps,j=ni(i,_);d.props=j;var Y=d.context,$=i.contextType;v=Ni,typeof $=="object"&&$!==null&&(v=ft($));var I=i.getDerivedStateFromProps;$=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function",_=n.pendingProps!==_,$||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(_||Y!==v)&&yp(n,d,r,v),la=!1;var Q=n.memoizedState;d.state=Q,Vl(n,r,d,u),Gl(),Y=n.memoizedState,_||Q!==Y||la?(typeof I=="function"&&(_c(n,i,I,r),Y=n.memoizedState),(j=la||vp(n,i,j,r,Q,Y,v))?($||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=Y),d.props=r,d.state=Y,d.context=v,r=j):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{d=n.stateNode,tc(e,n),v=n.memoizedProps,$=ni(i,v),d.props=$,I=n.pendingProps,Q=d.context,Y=i.contextType,j=Ni,typeof Y=="object"&&Y!==null&&(j=ft(Y)),_=i.getDerivedStateFromProps,(Y=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==I||Q!==j)&&yp(n,d,r,j),la=!1,Q=n.memoizedState,d.state=Q,Vl(n,r,d,u),Gl();var Z=n.memoizedState;v!==I||Q!==Z||la||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof _=="function"&&(_c(n,i,_,r),Z=n.memoizedState),($=la||vp(n,i,$,r,Q,Z,j)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(Y||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,Z,j),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,Z,j)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=Z),d.props=r,d.state=Z,d.context=j,r=$):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),r=!1)}return d=r,No(e,n),r=(n.flags&128)!==0,d||r?(d=n.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&r?(n.child=ei(n,e.child,null,u),n.child=ei(n,null,i,u)):dt(e,n,i,u),n.memoizedState=d.state,e=n.child):e=jn(e,n,u),e}function Dp(e,n,i,r){return Fa(),n.flags|=256,dt(e,n,i,r),n.child}var Oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(e){return{baseLanes:e,cachePool:wm()}}function Mc(e,n,i){return e=e!==null?e.childLanes&~i:0,n&&(e|=Ht),e}function jp(e,n,i){var r=n.pendingProps,u=!1,d=(n.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),v&&(u=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,e===null){if(Te){if(u?sa(n):ua(),(e=Ge)?(e=Vg(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ta!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},i=hm(e),i.return=n,n.child=i,ct=n,Ge=null)):e=null,e===null)throw aa(n);return mf(e)?n.lanes=32:n.lanes=536870912,null}var _=r.children;return r=r.fallback,u?(ua(),u=n.mode,_=Mo({mode:"hidden",children:_},u),r=Za(r,u,i,null),_.return=n,r.return=n,_.sibling=r,n.child=_,r=n.child,r.memoizedState=Nc(i),r.childLanes=Mc(e,v,i),n.memoizedState=Oc,Zl(null,r)):(sa(n),zc(n,_))}var j=e.memoizedState;if(j!==null&&(_=j.dehydrated,_!==null)){if(d)n.flags&256?(sa(n),n.flags&=-257,n=Dc(e,n,i)):n.memoizedState!==null?(ua(),n.child=e.child,n.flags|=128,n=null):(ua(),_=r.fallback,u=n.mode,r=Mo({mode:"visible",children:r.children},u),_=Za(_,u,i,null),_.flags|=2,r.return=n,_.return=n,r.sibling=_,n.child=r,ei(n,e.child,null,i),r=n.child,r.memoizedState=Nc(i),r.childLanes=Mc(e,v,i),n.memoizedState=Oc,n=Zl(null,r));else if(sa(n),mf(_)){if(v=_.nextSibling&&_.nextSibling.dataset,v)var Y=v.dgst;v=Y,r=Error(o(419)),r.stack="",r.digest=v,Ll({value:r,source:null,stack:null}),n=Dc(e,n,i)}else if(Ie||ji(e,n,i,!1),v=(i&e.childLanes)!==0,Ie||v){if(v=Be,v!==null&&(r=xh(v,i),r!==0&&r!==j.retryLane))throw j.retryLane=r,Ka(e,r),Tt(v,e,r),Ac;hf(_)||qo(),n=Dc(e,n,i)}else hf(_)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,Ge=Jt(_.nextSibling),ct=n,Te=!0,na=null,Pt=!1,e!==null&&gm(n,e),n=zc(n,r.children),n.flags|=4096);return n}return u?(ua(),_=r.fallback,u=n.mode,j=e.child,Y=j.sibling,r=Rn(j,{mode:"hidden",children:r.children}),r.subtreeFlags=j.subtreeFlags&65011712,Y!==null?_=Rn(Y,_):(_=Za(_,u,i,null),_.flags|=2),_.return=n,r.return=n,r.sibling=_,n.child=r,Zl(null,r),r=n.child,_=e.child.memoizedState,_===null?_=Nc(i):(u=_.cachePool,u!==null?(j=$e._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=wm(),_={baseLanes:_.baseLanes|i,cachePool:u}),r.memoizedState=_,r.childLanes=Mc(e,v,i),n.memoizedState=Oc,Zl(e.child,r)):(sa(n),i=e.child,e=i.sibling,i=Rn(i,{mode:"visible",children:r.children}),i.return=n,i.sibling=null,e!==null&&(v=n.deletions,v===null?(n.deletions=[e],n.flags|=16):v.push(e)),n.child=i,n.memoizedState=null,i)}function zc(e,n){return n=Mo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Mo(e,n){return e=Dt(22,e,null,n),e.lanes=0,e}function Dc(e,n,i){return ei(n,e.child,null,i),e=zc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Lp(e,n,i){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Fu(e.return,n,i)}function jc(e,n,i,r,u,d){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:d}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=r,v.tail=i,v.tailMode=u,v.treeForkCount=d)}function Up(e,n,i){var r=n.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var v=Ze.current,_=(v&2)!==0;if(_?(v=v&1|2,n.flags|=128):v&=1,ie(Ze,v),dt(e,n,r,i),r=Te?jl:0,!_&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lp(e,i,n);else if(e.tag===19)Lp(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(i=n.child,u=null;i!==null;)e=i.alternate,e!==null&&bo(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=n.child,n.child=null):(u=i.sibling,i.sibling=null),jc(n,!1,u,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&bo(e)===null){n.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}jc(n,!0,i,null,d,r);break;case"together":jc(n,!1,null,null,void 0,r);break;default:n.memoizedState=null}return n.child}function jn(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),da|=n.lanes,(i&n.childLanes)===0)if(e!==null){if(ji(e,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,i=Rn(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=Rn(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function Lc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function p1(e,n,i){switch(n.tag){case 3:ge(n,n.stateNode.containerInfo),ia(n,$e,e.memoizedState.cache),Fa();break;case 27:case 5:Ae(n);break;case 4:ge(n,n.stateNode.containerInfo);break;case 10:ia(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,rc(n),null;break;case 13:var r=n.memoizedState;if(r!==null)return r.dehydrated!==null?(sa(n),n.flags|=128,null):(i&n.child.childLanes)!==0?jp(e,n,i):(sa(n),e=jn(e,n,i),e!==null?e.sibling:null);sa(n);break;case 19:var u=(e.flags&128)!==0;if(r=(i&n.childLanes)!==0,r||(ji(e,n,i,!1),r=(i&n.childLanes)!==0),u){if(r)return Up(e,n,i);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ie(Ze,Ze.current),r)break;return null;case 22:return n.lanes=0,Rp(e,n,i,n.pendingProps);case 24:ia(n,$e,e.memoizedState.cache)}return jn(e,n,i)}function Hp(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps)Ie=!0;else{if(!Lc(e,i)&&(n.flags&128)===0)return Ie=!1,p1(e,n,i);Ie=(e.flags&131072)!==0}else Ie=!1,Te&&(n.flags&1048576)!==0&&pm(n,jl,n.index);switch(n.lanes=0,n.tag){case 16:e:{var r=n.pendingProps;if(e=Ia(n.elementType),n.type=e,typeof e=="function")qu(e)?(r=ni(e,r),n.tag=1,n=zp(null,n,e,r,i)):(n.tag=0,n=Rc(null,n,e,r,i));else{if(e!=null){var u=e.$$typeof;if(u===T){n.tag=11,n=Cp(null,n,e,r,i);break e}else if(u===D){n.tag=14,n=Tp(null,n,e,r,i);break e}}throw n=B(e)||e,Error(o(306,n,""))}}return n;case 0:return Rc(e,n,n.type,n.pendingProps,i);case 1:return r=n.type,u=ni(r,n.pendingProps),zp(e,n,r,u,i);case 3:e:{if(ge(n,n.stateNode.containerInfo),e===null)throw Error(o(387));r=n.pendingProps;var d=n.memoizedState;u=d.element,tc(e,n),Vl(n,r,null,i);var v=n.memoizedState;if(r=v.cache,ia(n,$e,r),r!==d.cache&&Pu(n,[$e],i,!0),Gl(),r=v.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Dp(e,n,r,i);break e}else if(r!==u){u=Kt(Error(o(424)),n),Ll(u),n=Dp(e,n,r,i);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ge=Jt(e.firstChild),ct=n,Te=!0,na=null,Pt=!0,i=Rm(n,null,r,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Fa(),r===u){n=jn(e,n,i);break e}dt(e,n,r,i)}n=n.child}return n;case 26:return No(e,n),e===null?(i=Fg(n.type,null,n.pendingProps,null))?n.memoizedState=i:Te||(i=n.type,e=n.pendingProps,r=Zo(se.current).createElement(i),r[ut]=n,r[xt]=e,ht(r,i,e),lt(r),n.stateNode=r):n.memoizedState=Fg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Ae(n),e===null&&Te&&(r=n.stateNode=Xg(n.type,n.pendingProps,se.current),ct=n,Pt=!0,u=Ge,va(n.type)?(pf=u,Ge=Jt(r.firstChild)):Ge=u),dt(e,n,n.pendingProps.children,i),No(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Te&&((u=r=Ge)&&(r=X1(r,n.type,n.pendingProps,Pt),r!==null?(n.stateNode=r,ct=n,Ge=Jt(r.firstChild),Pt=!1,u=!0):u=!1),u||aa(n)),Ae(n),u=n.type,d=n.pendingProps,v=e!==null?e.memoizedProps:null,r=d.children,cf(u,d)?r=null:v!==null&&cf(u,v)&&(n.flags|=32),n.memoizedState!==null&&(u=sc(e,n,r1,null,null,i),sr._currentValue=u),No(e,n),dt(e,n,r,i),n.child;case 6:return e===null&&Te&&((e=i=Ge)&&(i=K1(i,n.pendingProps,Pt),i!==null?(n.stateNode=i,ct=n,Ge=null,e=!0):e=!1),e||aa(n)),null;case 13:return jp(e,n,i);case 4:return ge(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=ei(n,null,r,i):dt(e,n,r,i),n.child;case 11:return Cp(e,n,n.type,n.pendingProps,i);case 7:return dt(e,n,n.pendingProps,i),n.child;case 8:return dt(e,n,n.pendingProps.children,i),n.child;case 12:return dt(e,n,n.pendingProps.children,i),n.child;case 10:return r=n.pendingProps,ia(n,n.type,r.value),dt(e,n,r.children,i),n.child;case 9:return u=n.type._context,r=n.pendingProps.children,$a(n),u=ft(u),r=r(u),n.flags|=1,dt(e,n,r,i),n.child;case 14:return Tp(e,n,n.type,n.pendingProps,i);case 15:return Ap(e,n,n.type,n.pendingProps,i);case 19:return Up(e,n,i);case 31:return m1(e,n,i);case 22:return Rp(e,n,i,n.pendingProps);case 24:return $a(n),r=ft($e),e===null?(u=Iu(),u===null&&(u=Be,d=$u(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),n.memoizedState={parent:r,cache:u},ec(n),ia(n,$e,u)):((e.lanes&i)!==0&&(tc(e,n),Vl(n,null,null,i),Gl()),u=e.memoizedState,d=n.memoizedState,u.parent!==r?(u={parent:r,cache:r},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),ia(n,$e,r)):(r=d.cache,ia(n,$e,r),r!==u.cache&&Pu(n,[$e],i,!0))),dt(e,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(o(156,n.tag))}function Ln(e){e.flags|=4}function Uc(e,n,i,r,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(cg())e.flags|=8192;else throw Wa=po,Wu}else e.flags&=-16777217}function Bp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wg(n))if(cg())e.flags|=8192;else throw Wa=po,Wu}function zo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?vh():536870912,e.lanes|=n,Ki|=n)}function Fl(e,n){if(!Te)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ve(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(n)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=i,n}function g1(e,n,i){var r=n.pendingProps;switch(Qu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(n),null;case 1:return Ve(n),null;case 3:return i=n.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),Mn($e),me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Di(n)?Ln(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ku())),Ve(n),null;case 26:var u=n.type,d=n.memoizedState;return e===null?(Ln(n),d!==null?(Ve(n),Bp(n,d)):(Ve(n),Uc(n,u,null,r,i))):d?d!==e.memoizedState?(Ln(n),Ve(n),Bp(n,d)):(Ve(n),n.flags&=-16777217):(e=e.memoizedProps,e!==r&&Ln(n),Ve(n),Uc(n,u,e,r,i)),null;case 27:if(Re(n),i=se.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==r&&Ln(n);else{if(!r){if(n.stateNode===null)throw Error(o(166));return Ve(n),null}e=le.current,Di(n)?vm(n):(e=Xg(u,r,i),n.stateNode=e,Ln(n))}return Ve(n),null;case 5:if(Re(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==r&&Ln(n);else{if(!r){if(n.stateNode===null)throw Error(o(166));return Ve(n),null}if(d=le.current,Di(n))vm(n);else{var v=Zo(se.current);switch(d){case 1:d=v.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=v.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=v.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=v.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=v.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?v.createElement("select",{is:r.is}):v.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?v.createElement(u,{is:r.is}):v.createElement(u)}}d[ut]=n,d[xt]=r;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)d.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=d;e:switch(ht(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Ln(n)}}return Ve(n),Uc(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,i),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==r&&Ln(n);else{if(typeof r!="string"&&n.stateNode===null)throw Error(o(166));if(e=se.current,Di(n)){if(e=n.stateNode,i=n.memoizedProps,r=null,u=ct,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[ut]=n,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||jg(e.nodeValue,i)),e||aa(n,!0)}else e=Zo(e).createTextNode(r),e[ut]=n,n.stateNode=e}return Ve(n),null;case 31:if(i=n.memoizedState,e===null||e.memoizedState!==null){if(r=Di(n),i!==null){if(e===null){if(!r)throw Error(o(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ut]=n}else Fa(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ve(n),e=!1}else i=Ku(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return n.flags&256?(Lt(n),n):(Lt(n),null);if((n.flags&128)!==0)throw Error(o(558))}return Ve(n),null;case 13:if(r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Di(n),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[ut]=n}else Fa(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ve(n),u=!1}else u=Ku(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Lt(n),n):(Lt(n),null)}return Lt(n),(n.flags&128)!==0?(n.lanes=i,n):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=n.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),i!==e&&i&&(n.child.flags|=8192),zo(n,n.updateQueue),Ve(n),null);case 4:return me(),e===null&&lf(n.stateNode.containerInfo),Ve(n),null;case 10:return Mn(n.type),Ve(n),null;case 19:if(X(Ze),r=n.memoizedState,r===null)return Ve(n),null;if(u=(n.flags&128)!==0,d=r.rendering,d===null)if(u)Fl(r,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=bo(e),d!==null){for(n.flags|=128,Fl(r,!1),e=d.updateQueue,n.updateQueue=e,zo(n,e),n.subtreeFlags=0,e=i,i=n.child;i!==null;)dm(i,e),i=i.sibling;return ie(Ze,Ze.current&1|2),Te&&On(n,r.treeForkCount),n.child}e=e.sibling}r.tail!==null&&Ot()>Ho&&(n.flags|=128,u=!0,Fl(r,!1),n.lanes=4194304)}else{if(!u)if(e=bo(d),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,zo(n,e),Fl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Te)return Ve(n),null}else 2*Ot()-r.renderingStartTime>Ho&&i!==536870912&&(n.flags|=128,u=!0,Fl(r,!1),n.lanes=4194304);r.isBackwards?(d.sibling=n.child,n.child=d):(e=r.last,e!==null?e.sibling=d:n.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ot(),e.sibling=null,i=Ze.current,ie(Ze,u?i&1|2:i&1),Te&&On(n,r.treeForkCount),e):(Ve(n),null);case 22:case 23:return Lt(n),lc(),r=n.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?(i&536870912)!==0&&(n.flags&128)===0&&(Ve(n),n.subtreeFlags&6&&(n.flags|=8192)):Ve(n),i=n.updateQueue,i!==null&&zo(n,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048),e!==null&&X(Ja),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),Mn($e),Ve(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function v1(e,n){switch(Qu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Mn($e),me(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Re(n),null;case 31:if(n.memoizedState!==null){if(Lt(n),n.alternate===null)throw Error(o(340));Fa()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Lt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Fa()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return X(Ze),null;case 4:return me(),null;case 10:return Mn(n.type),null;case 22:case 23:return Lt(n),lc(),e!==null&&X(Ja),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Mn($e),null;case 25:return null;default:return null}}function kp(e,n){switch(Qu(n),n.tag){case 3:Mn($e),me();break;case 26:case 27:case 5:Re(n);break;case 4:me();break;case 31:n.memoizedState!==null&&Lt(n);break;case 13:Lt(n);break;case 19:X(Ze);break;case 10:Mn(n.type);break;case 22:case 23:Lt(n),lc(),e!==null&&X(Ja);break;case 24:Mn($e)}}function Pl(e,n){try{var i=n.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){r=void 0;var d=i.create,v=i.inst;r=d(),v.destroy=r}i=i.next}while(i!==u)}}catch(_){je(n,n.return,_)}}function ca(e,n,i){try{var r=n.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var v=r.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,u=n;var j=i,Y=_;try{Y()}catch($){je(u,j,$)}}}r=r.next}while(r!==d)}}catch($){je(n,n.return,$)}}function qp(e){var n=e.updateQueue;if(n!==null){var i=e.stateNode;try{Nm(n,i)}catch(r){je(e,e.return,r)}}}function Gp(e,n,i){i.props=ni(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){je(e,n,r)}}function $l(e,n){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(u){je(e,n,u)}}function hn(e,n){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){je(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){je(e,n,u)}else i.current=null}function Vp(e){var n=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){je(e,e.return,u)}}function Hc(e,n,i){try{var r=e.stateNode;k1(r,e.type,i,n),r[xt]=n}catch(u){je(e,e.return,u)}}function Yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&va(e.type)||e.tag===4}function Bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&va(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kc(e,n,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,n):(n=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,n.appendChild(e),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Tn));else if(r!==4&&(r===27&&va(e.type)&&(i=e.stateNode,n=null),e=e.child,e!==null))for(kc(e,n,i),e=e.sibling;e!==null;)kc(e,n,i),e=e.sibling}function Do(e,n,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(r!==4&&(r===27&&va(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Do(e,n,i),e=e.sibling;e!==null;)Do(e,n,i),e=e.sibling}function Qp(e){var n=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);ht(n,r,i),n[ut]=e,n[xt]=i}catch(d){je(e,e.return,d)}}var Un=!1,We=!1,qc=!1,Xp=typeof WeakSet=="function"?WeakSet:Set,rt=null;function y1(e,n){if(e=e.containerInfo,sf=es,e=am(e),Du(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var v=0,_=-1,j=-1,Y=0,$=0,I=e,Q=null;t:for(;;){for(var Z;I!==i||u!==0&&I.nodeType!==3||(_=v+u),I!==d||r!==0&&I.nodeType!==3||(j=v+r),I.nodeType===3&&(v+=I.nodeValue.length),(Z=I.firstChild)!==null;)Q=I,I=Z;for(;;){if(I===e)break t;if(Q===i&&++Y===u&&(_=v),Q===d&&++$===r&&(j=v),(Z=I.nextSibling)!==null)break;I=Q,Q=I.parentNode}I=Z}i=_===-1||j===-1?null:{start:_,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(uf={focusedElem:e,selectionRange:i},es=!1,rt=n;rt!==null;)if(n=rt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,rt=e;else for(;rt!==null;){switch(n=rt,d=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=n,u=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var ue=ni(i.type,u);e=r.getSnapshotBeforeUpdate(ue,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(ve){je(i,i.return,ve)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,i=e.nodeType,i===9)df(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":df(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(o(163))}if(e=n.sibling,e!==null){e.return=n.return,rt=e;break}rt=n.return}}function Kp(e,n,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Bn(e,i),r&4&&Pl(5,i);break;case 1:if(Bn(e,i),r&4)if(e=i.stateNode,n===null)try{e.componentDidMount()}catch(v){je(i,i.return,v)}else{var u=ni(i.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(v){je(i,i.return,v)}}r&64&&qp(i),r&512&&$l(i,i.return);break;case 3:if(Bn(e,i),r&64&&(e=i.updateQueue,e!==null)){if(n=null,i.child!==null)switch(i.child.tag){case 27:case 5:n=i.child.stateNode;break;case 1:n=i.child.stateNode}try{Nm(e,n)}catch(v){je(i,i.return,v)}}break;case 27:n===null&&r&4&&Qp(i);case 26:case 5:Bn(e,i),n===null&&r&4&&Vp(i),r&512&&$l(i,i.return);break;case 12:Bn(e,i);break;case 31:Bn(e,i),r&4&&Pp(e,i);break;case 13:Bn(e,i),r&4&&$p(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=A1.bind(null,i),Z1(e,i))));break;case 22:if(r=i.memoizedState!==null||Un,!r){n=n!==null&&n.memoizedState!==null||We,u=Un;var d=We;Un=r,(We=n)&&!d?kn(e,i,(i.subtreeFlags&8772)!==0):Bn(e,i),Un=u,We=d}break;case 30:break;default:Bn(e,i)}}function Zp(e){var n=e.alternate;n!==null&&(e.alternate=null,Zp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&gu(n)),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 Ye=null,wt=!1;function Hn(e,n,i){for(i=i.child;i!==null;)Fp(e,n,i),i=i.sibling}function Fp(e,n,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(xl,i)}catch{}switch(i.tag){case 26:We||hn(i,n),Hn(e,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:We||hn(i,n);var r=Ye,u=wt;va(i.type)&&(Ye=i.stateNode,wt=!1),Hn(e,n,i),lr(i.stateNode),Ye=r,wt=u;break;case 5:We||hn(i,n);case 6:if(r=Ye,u=wt,Ye=null,Hn(e,n,i),Ye=r,wt=u,Ye!==null)if(wt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(i.stateNode)}catch(d){je(i,n,d)}else try{Ye.removeChild(i.stateNode)}catch(d){je(i,n,d)}break;case 18:Ye!==null&&(wt?(e=Ye,qg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),el(e)):qg(Ye,i.stateNode));break;case 4:r=Ye,u=wt,Ye=i.stateNode.containerInfo,wt=!0,Hn(e,n,i),Ye=r,wt=u;break;case 0:case 11:case 14:case 15:ca(2,i,n),We||ca(4,i,n),Hn(e,n,i);break;case 1:We||(hn(i,n),r=i.stateNode,typeof r.componentWillUnmount=="function"&&Gp(i,n,r)),Hn(e,n,i);break;case 21:Hn(e,n,i);break;case 22:We=(r=We)||i.memoizedState!==null,Hn(e,n,i),We=r;break;default:Hn(e,n,i)}}function Pp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{el(e)}catch(i){je(n,n.return,i)}}}function $p(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{el(e)}catch(i){je(n,n.return,i)}}function b1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Xp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Xp),n;default:throw Error(o(435,e.tag))}}function jo(e,n){var i=b1(e);n.forEach(function(r){if(!i.has(r)){i.add(r);var u=R1.bind(null,e,r);r.then(u,u)}})}function Et(e,n){var i=n.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],d=e,v=n,_=v;e:for(;_!==null;){switch(_.tag){case 27:if(va(_.type)){Ye=_.stateNode,wt=!1;break e}break;case 5:Ye=_.stateNode,wt=!1;break e;case 3:case 4:Ye=_.stateNode.containerInfo,wt=!0;break e}_=_.return}if(Ye===null)throw Error(o(160));Fp(d,v,u),Ye=null,wt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Jp(n,e),n=n.sibling}var nn=null;function Jp(e,n){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(n,e),_t(e),r&4&&(ca(3,e,e.return),Pl(3,e),ca(5,e,e.return));break;case 1:Et(n,e),_t(e),r&512&&(We||i===null||hn(i,i.return)),r&64&&Un&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=nn;if(Et(n,e),_t(e),r&512&&(We||i===null||hn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[El]||d[ut]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),ht(d,r,i),d[ut]=e,lt(d),r=d;break e;case"link":var v=Jg("link","href",u).get(r+(i.href||""));if(v){for(var _=0;_<v.length;_++)if(d=v[_],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){v.splice(_,1);break t}}d=u.createElement(r),ht(d,r,i),u.head.appendChild(d);break;case"meta":if(v=Jg("meta","content",u).get(r+(i.content||""))){for(_=0;_<v.length;_++)if(d=v[_],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){v.splice(_,1);break t}}d=u.createElement(r),ht(d,r,i),u.head.appendChild(d);break;default:throw Error(o(468,r))}d[ut]=e,lt(d),r=d}e.stateNode=r}else Ig(u,e.type,e.stateNode);else e.stateNode=$g(u,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?Ig(u,e.type,e.stateNode):$g(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Hc(e,e.memoizedProps,i.memoizedProps)}break;case 27:Et(n,e),_t(e),r&512&&(We||i===null||hn(i,i.return)),i!==null&&r&4&&Hc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Et(n,e),_t(e),r&512&&(We||i===null||hn(i,i.return)),e.flags&32){u=e.stateNode;try{Ei(u,"")}catch(ue){je(e,e.return,ue)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Hc(e,u,i!==null?i.memoizedProps:u)),r&1024&&(qc=!0);break;case 6:if(Et(n,e),_t(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(ue){je(e,e.return,ue)}}break;case 3:if($o=null,u=nn,nn=Fo(n.containerInfo),Et(n,e),nn=u,_t(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{el(n.containerInfo)}catch(ue){je(e,e.return,ue)}qc&&(qc=!1,Ip(e));break;case 4:r=nn,nn=Fo(e.stateNode.containerInfo),Et(n,e),_t(e),nn=r;break;case 12:Et(n,e),_t(e);break;case 31:Et(n,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jo(e,r)));break;case 13:Et(n,e),_t(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Uo=Ot()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jo(e,r)));break;case 22:u=e.memoizedState!==null;var j=i!==null&&i.memoizedState!==null,Y=Un,$=We;if(Un=Y||u,We=$||j,Et(n,e),We=$,Un=Y,_t(e),r&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(i===null||j||Un||We||ai(e)),i=null,n=e;;){if(n.tag===5||n.tag===26){if(i===null){j=i=n;try{if(d=j.stateNode,u)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=j.stateNode;var I=j.memoizedProps.style,Q=I!=null&&I.hasOwnProperty("display")?I.display:null;_.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ue){je(j,j.return,ue)}}}else if(n.tag===6){if(i===null){j=n;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(ue){je(j,j.return,ue)}}}else if(n.tag===18){if(i===null){j=n;try{var Z=j.stateNode;u?Gg(Z,!0):Gg(j.stateNode,!1)}catch(ue){je(j,j.return,ue)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,jo(e,i))));break;case 19:Et(n,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jo(e,r)));break;case 30:break;case 21:break;default:Et(n,e),_t(e)}}function _t(e){var n=e.flags;if(n&2){try{for(var i,r=e.return;r!==null;){if(Yp(r)){i=r;break}r=r.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,d=Bc(e);Do(e,d,u);break;case 5:var v=i.stateNode;i.flags&32&&(Ei(v,""),i.flags&=-33);var _=Bc(e);Do(e,_,v);break;case 3:case 4:var j=i.stateNode.containerInfo,Y=Bc(e);kc(e,Y,j);break;default:throw Error(o(161))}}catch($){je(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ip(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ip(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Bn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Kp(e,n.alternate,n),n=n.sibling}function ai(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ca(4,n,n.return),ai(n);break;case 1:hn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&Gp(n,n.return,i),ai(n);break;case 27:lr(n.stateNode);case 26:case 5:hn(n,n.return),ai(n);break;case 22:n.memoizedState===null&&ai(n);break;case 30:ai(n);break;default:ai(n)}e=e.sibling}}function kn(e,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var r=n.alternate,u=e,d=n,v=d.flags;switch(d.tag){case 0:case 11:case 15:kn(u,d,i),Pl(4,d);break;case 1:if(kn(u,d,i),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(Y){je(r,r.return,Y)}if(r=d,u=r.updateQueue,u!==null){var _=r.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)Om(j[u],_)}catch(Y){je(r,r.return,Y)}}i&&v&64&&qp(d),$l(d,d.return);break;case 27:Qp(d);case 26:case 5:kn(u,d,i),i&&r===null&&v&4&&Vp(d),$l(d,d.return);break;case 12:kn(u,d,i);break;case 31:kn(u,d,i),i&&v&4&&Pp(u,d);break;case 13:kn(u,d,i),i&&v&4&&$p(u,d);break;case 22:d.memoizedState===null&&kn(u,d,i),$l(d,d.return);break;case 30:break;default:kn(u,d,i)}n=n.sibling}}function Gc(e,n){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Ul(i))}function Vc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ul(e))}function an(e,n,i,r){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Wp(e,n,i,r),n=n.sibling}function Wp(e,n,i,r){var u=n.flags;switch(n.tag){case 0:case 11:case 15:an(e,n,i,r),u&2048&&Pl(9,n);break;case 1:an(e,n,i,r);break;case 3:an(e,n,i,r),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Ul(e)));break;case 12:if(u&2048){an(e,n,i,r),e=n.stateNode;try{var d=n.memoizedProps,v=d.id,_=d.onPostCommit;typeof _=="function"&&_(v,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){je(n,n.return,j)}}else an(e,n,i,r);break;case 31:an(e,n,i,r);break;case 13:an(e,n,i,r);break;case 23:break;case 22:d=n.stateNode,v=n.alternate,n.memoizedState!==null?d._visibility&2?an(e,n,i,r):Jl(e,n):d._visibility&2?an(e,n,i,r):(d._visibility|=2,Yi(e,n,i,r,(n.subtreeFlags&10256)!==0||!1)),u&2048&&Gc(v,n);break;case 24:an(e,n,i,r),u&2048&&Vc(n.alternate,n);break;default:an(e,n,i,r)}}function Yi(e,n,i,r,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,v=n,_=i,j=r,Y=v.flags;switch(v.tag){case 0:case 11:case 15:Yi(d,v,_,j,u),Pl(8,v);break;case 23:break;case 22:var $=v.stateNode;v.memoizedState!==null?$._visibility&2?Yi(d,v,_,j,u):Jl(d,v):($._visibility|=2,Yi(d,v,_,j,u)),u&&Y&2048&&Gc(v.alternate,v);break;case 24:Yi(d,v,_,j,u),u&&Y&2048&&Vc(v.alternate,v);break;default:Yi(d,v,_,j,u)}n=n.sibling}}function Jl(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=e,r=n,u=r.flags;switch(r.tag){case 22:Jl(i,r),u&2048&&Gc(r.alternate,r);break;case 24:Jl(i,r),u&2048&&Vc(r.alternate,r);break;default:Jl(i,r)}n=n.sibling}}var Il=8192;function Qi(e,n,i){if(e.subtreeFlags&Il)for(e=e.child;e!==null;)eg(e,n,i),e=e.sibling}function eg(e,n,i){switch(e.tag){case 26:Qi(e,n,i),e.flags&Il&&e.memoizedState!==null&&lw(i,nn,e.memoizedState,e.memoizedProps);break;case 5:Qi(e,n,i);break;case 3:case 4:var r=nn;nn=Fo(e.stateNode.containerInfo),Qi(e,n,i),nn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Il,Il=16777216,Qi(e,n,i),Il=r):Qi(e,n,i));break;default:Qi(e,n,i)}}function tg(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Wl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];rt=r,ag(r,e)}tg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ng(e),e=e.sibling}function ng(e){switch(e.tag){case 0:case 11:case 15:Wl(e),e.flags&2048&&ca(9,e,e.return);break;case 3:Wl(e);break;case 12:Wl(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Lo(e)):Wl(e);break;default:Wl(e)}}function Lo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var i=0;i<n.length;i++){var r=n[i];rt=r,ag(r,e)}tg(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ca(8,n,n.return),Lo(n);break;case 22:i=n.stateNode,i._visibility&2&&(i._visibility&=-3,Lo(n));break;default:Lo(n)}e=e.sibling}}function ag(e,n){for(;rt!==null;){var i=rt;switch(i.tag){case 0:case 11:case 15:ca(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ul(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,rt=r;else e:for(i=e;rt!==null;){r=rt;var u=r.sibling,d=r.return;if(Zp(r),r===i){rt=null;break e}if(u!==null){u.return=d,rt=u;break e}rt=d}}}var x1={getCacheForType:function(e){var n=ft($e),i=n.data.get(e);return i===void 0&&(i=e(),n.data.set(e,i)),i},cacheSignal:function(){return ft($e).controller.signal}},S1=typeof WeakMap=="function"?WeakMap:Map,Me=0,Be=null,we=null,_e=0,De=0,Ut=null,fa=!1,Xi=!1,Yc=!1,qn=0,Ke=0,da=0,ii=0,Qc=0,Ht=0,Ki=0,er=null,Ct=null,Xc=!1,Uo=0,ig=0,Ho=1/0,Bo=null,ha=null,tt=0,ma=null,Zi=null,Gn=0,Kc=0,Zc=null,lg=null,tr=0,Fc=null;function Bt(){return(Me&2)!==0&&_e!==0?_e&-_e:O.T!==null?ef():Sh()}function rg(){if(Ht===0)if((_e&536870912)===0||Te){var e=Xr;Xr<<=1,(Xr&3932160)===0&&(Xr=262144),Ht=e}else Ht=536870912;return e=jt.current,e!==null&&(e.flags|=32),Ht}function Tt(e,n,i){(e===Be&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(Fi(e,0),pa(e,_e,Ht,!1)),wl(e,i),((Me&2)===0||e!==Be)&&(e===Be&&((Me&2)===0&&(ii|=i),Ke===4&&pa(e,_e,Ht,!1)),mn(e))}function og(e,n,i){if((Me&6)!==0)throw Error(o(327));var r=!i&&(n&127)===0&&(n&e.expiredLanes)===0||Sl(e,n),u=r?_1(e,n):$c(e,n,!0),d=r;do{if(u===0){Xi&&!r&&pa(e,n,0,!1);break}else{if(i=e.current.alternate,d&&!w1(i)){u=$c(e,n,!1),d=!1;continue}if(u===2){if(d=n,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var _=e;u=er;var j=_.current.memoizedState.isDehydrated;if(j&&(Fi(_,v).flags|=256),v=$c(_,v,!1),v!==2){if(Yc&&!j){_.errorRecoveryDisabledLanes|=d,ii|=d,u=4;break e}d=Ct,Ct=u,d!==null&&(Ct===null?Ct=d:Ct.push.apply(Ct,d))}u=v}if(d=!1,u!==2)continue}}if(u===1){Fi(e,0),pa(e,n,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((n&4194048)!==n)break;case 6:pa(r,n,Ht,!fa);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((n&62914560)===n&&(u=Uo+300-Ot(),10<u)){if(pa(r,n,Ht,!fa),Zr(r,0,!0)!==0)break e;Gn=n,r.timeoutHandle=Bg(sg.bind(null,r,i,Ct,Bo,Xc,n,Ht,ii,Ki,fa,d,"Throttled",-0,0),u);break e}sg(r,i,Ct,Bo,Xc,n,Ht,ii,Ki,fa,d,null,-0,0)}}break}while(!0);mn(e)}function sg(e,n,i,r,u,d,v,_,j,Y,$,I,Q,Z){if(e.timeoutHandle=-1,I=n.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},eg(n,d,I);var ue=(d&62914560)===d?Uo-Ot():(d&4194048)===d?ig-Ot():0;if(ue=rw(I,ue),ue!==null){Gn=d,e.cancelPendingCommit=ue(gg.bind(null,e,n,d,i,r,u,v,_,j,$,I,null,Q,Z)),pa(e,d,v,!Y);return}}gg(e,n,d,i,r,u,v,_,j)}function w1(e){for(var n=e;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],d=u.getSnapshot;u=u.value;try{if(!zt(d(),u))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function pa(e,n,i,r){n&=~Qc,n&=~ii,e.suspendedLanes|=n,e.pingedLanes&=~n,r&&(e.warmLanes|=n),r=e.expirationTimes;for(var u=n;0<u;){var d=31-Mt(u),v=1<<d;r[d]=-1,u&=~v}i!==0&&yh(e,i,n)}function ko(){return(Me&6)===0?(nr(0),!1):!0}function Pc(){if(we!==null){if(De===0)var e=we.return;else e=we,Nn=Pa=null,fc(e),Bi=null,Bl=0,e=we;for(;e!==null;)kp(e.alternate,e),e=e.return;we=null}}function Fi(e,n){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,V1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Gn=0,Pc(),Be=e,we=i=Rn(e.current,null),_e=n,De=0,Ut=null,fa=!1,Xi=Sl(e,n),Yc=!1,Ki=Ht=Qc=ii=da=Ke=0,Ct=er=null,Xc=!1,(n&8)!==0&&(n|=n&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=n;0<r;){var u=31-Mt(r),d=1<<u;n|=e[u],r&=~d}return qn=n,lo(),i}function ug(e,n){be=null,O.H=Kl,n===Hi||n===mo?(n=Cm(),De=3):n===Wu?(n=Cm(),De=4):De=n===Ac?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Ut=n,we===null&&(Ke=1,Ro(e,Kt(n,e.current)))}function cg(){var e=jt.current;return e===null?!0:(_e&4194048)===_e?$t===null:(_e&62914560)===_e||(_e&536870912)!==0?e===$t:!1}function fg(){var e=O.H;return O.H=Kl,e===null?Kl:e}function dg(){var e=O.A;return O.A=x1,e}function qo(){Ke=4,fa||(_e&4194048)!==_e&&jt.current!==null||(Xi=!0),(da&134217727)===0&&(ii&134217727)===0||Be===null||pa(Be,_e,Ht,!1)}function $c(e,n,i){var r=Me;Me|=2;var u=fg(),d=dg();(Be!==e||_e!==n)&&(Bo=null,Fi(e,n)),n=!1;var v=Ke;e:do try{if(De!==0&&we!==null){var _=we,j=Ut;switch(De){case 8:Pc(),v=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(n=!0);var Y=De;if(De=0,Ut=null,Pi(e,_,j,Y),i&&Xi){v=0;break e}break;default:Y=De,De=0,Ut=null,Pi(e,_,j,Y)}}E1(),v=Ke;break}catch($){ug(e,$)}while(!0);return n&&e.shellSuspendCounter++,Nn=Pa=null,Me=r,O.H=u,O.A=d,we===null&&(Be=null,_e=0,lo()),v}function E1(){for(;we!==null;)hg(we)}function _1(e,n){var i=Me;Me|=2;var r=fg(),u=dg();Be!==e||_e!==n?(Bo=null,Ho=Ot()+500,Fi(e,n)):Xi=Sl(e,n);e:do try{if(De!==0&&we!==null){n=we;var d=Ut;t:switch(De){case 1:De=0,Ut=null,Pi(e,n,d,1);break;case 2:case 9:if(Em(d)){De=0,Ut=null,mg(n);break}n=function(){De!==2&&De!==9||Be!==e||(De=7),mn(e)},d.then(n,n);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Em(d)?(De=0,Ut=null,mg(n)):(De=0,Ut=null,Pi(e,n,d,7));break;case 5:var v=null;switch(we.tag){case 26:v=we.memoizedState;case 5:case 27:var _=we;if(v?Wg(v):_.stateNode.complete){De=0,Ut=null;var j=_.sibling;if(j!==null)we=j;else{var Y=_.return;Y!==null?(we=Y,Go(Y)):we=null}break t}}De=0,Ut=null,Pi(e,n,d,5);break;case 6:De=0,Ut=null,Pi(e,n,d,6);break;case 8:Pc(),Ke=6;break e;default:throw Error(o(462))}}C1();break}catch($){ug(e,$)}while(!0);return Nn=Pa=null,O.H=r,O.A=u,Me=i,we!==null?0:(Be=null,_e=0,lo(),Ke)}function C1(){for(;we!==null&&!Fx();)hg(we)}function hg(e){var n=Hp(e.alternate,e,qn);e.memoizedProps=e.pendingProps,n===null?Go(e):we=n}function mg(e){var n=e,i=n.alternate;switch(n.tag){case 15:case 0:n=Mp(i,n,n.pendingProps,n.type,void 0,_e);break;case 11:n=Mp(i,n,n.pendingProps,n.type.render,n.ref,_e);break;case 5:fc(n);default:kp(i,n),n=we=dm(n,qn),n=Hp(i,n,qn)}e.memoizedProps=e.pendingProps,n===null?Go(e):we=n}function Pi(e,n,i,r){Nn=Pa=null,fc(n),Bi=null,Bl=0;var u=n.return;try{if(h1(e,u,n,i,_e)){Ke=1,Ro(e,Kt(i,e.current)),we=null;return}}catch(d){if(u!==null)throw we=u,d;Ke=1,Ro(e,Kt(i,e.current)),we=null;return}n.flags&32768?(Te||r===1?e=!0:Xi||(_e&536870912)!==0?e=!1:(fa=e=!0,(r===2||r===9||r===3||r===6)&&(r=jt.current,r!==null&&r.tag===13&&(r.flags|=16384))),pg(n,e)):Go(n)}function Go(e){var n=e;do{if((n.flags&32768)!==0){pg(n,fa);return}e=n.return;var i=g1(n.alternate,n,qn);if(i!==null){we=i;return}if(n=n.sibling,n!==null){we=n;return}we=n=e}while(n!==null);Ke===0&&(Ke=5)}function pg(e,n){do{var i=v1(e.alternate,e);if(i!==null){i.flags&=32767,we=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(e=e.sibling,e!==null)){we=e;return}we=e=i}while(e!==null);Ke=6,we=null}function gg(e,n,i,r,u,d,v,_,j){e.cancelPendingCommit=null;do Vo();while(tt!==0);if((Me&6)!==0)throw Error(o(327));if(n!==null){if(n===e.current)throw Error(o(177));if(d=n.lanes|n.childLanes,d|=Bu,iS(e,i,d,v,_,j),e===Be&&(we=Be=null,_e=0),Zi=n,ma=e,Gn=i,Kc=d,Zc=u,lg=r,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(Yr,function(){return Sg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,u=q.p,q.p=2,v=Me,Me|=4;try{y1(e,n,i)}finally{Me=v,q.p=u,O.T=r}}tt=1,vg(),yg(),bg()}}function vg(){if(tt===1){tt=0;var e=ma,n=Zi,i=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||i){i=O.T,O.T=null;var r=q.p;q.p=2;var u=Me;Me|=4;try{Jp(n,e);var d=uf,v=am(e.containerInfo),_=d.focusedElem,j=d.selectionRange;if(v!==_&&_&&_.ownerDocument&&nm(_.ownerDocument.documentElement,_)){if(j!==null&&Du(_)){var Y=j.start,$=j.end;if($===void 0&&($=Y),"selectionStart"in _)_.selectionStart=Y,_.selectionEnd=Math.min($,_.value.length);else{var I=_.ownerDocument||document,Q=I&&I.defaultView||window;if(Q.getSelection){var Z=Q.getSelection(),ue=_.textContent.length,ve=Math.min(j.start,ue),He=j.end===void 0?ve:Math.min(j.end,ue);!Z.extend&&ve>He&&(v=He,He=ve,ve=v);var k=tm(_,ve),U=tm(_,He);if(k&&U&&(Z.rangeCount!==1||Z.anchorNode!==k.node||Z.anchorOffset!==k.offset||Z.focusNode!==U.node||Z.focusOffset!==U.offset)){var V=I.createRange();V.setStart(k.node,k.offset),Z.removeAllRanges(),ve>He?(Z.addRange(V),Z.extend(U.node,U.offset)):(V.setEnd(U.node,U.offset),Z.addRange(V))}}}}for(I=[],Z=_;Z=Z.parentNode;)Z.nodeType===1&&I.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<I.length;_++){var J=I[_];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}es=!!sf,uf=sf=null}finally{Me=u,q.p=r,O.T=i}}e.current=n,tt=2}}function yg(){if(tt===2){tt=0;var e=ma,n=Zi,i=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||i){i=O.T,O.T=null;var r=q.p;q.p=2;var u=Me;Me|=4;try{Kp(e,n.alternate,n)}finally{Me=u,q.p=r,O.T=i}}tt=3}}function bg(){if(tt===4||tt===3){tt=0,Px();var e=ma,n=Zi,i=Gn,r=lg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?tt=5:(tt=0,Zi=ma=null,xg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ha=null),mu(i),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(xl,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=O.T,u=q.p,q.p=2,O.T=null;try{for(var d=e.onRecoverableError,v=0;v<r.length;v++){var _=r[v];d(_.value,{componentStack:_.stack})}}finally{O.T=n,q.p=u}}(Gn&3)!==0&&Vo(),mn(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===Fc?tr++:(tr=0,Fc=e):tr=0,nr(0)}}function xg(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Ul(n)))}function Vo(){return vg(),yg(),bg(),Sg()}function Sg(){if(tt!==5)return!1;var e=ma,n=Kc;Kc=0;var i=mu(Gn),r=O.T,u=q.p;try{q.p=32>i?32:i,O.T=null,i=Zc,Zc=null;var d=ma,v=Gn;if(tt=0,Zi=ma=null,Gn=0,(Me&6)!==0)throw Error(o(331));var _=Me;if(Me|=4,ng(d.current),Wp(d,d.current,v,i),Me=_,nr(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(xl,d)}catch{}return!0}finally{q.p=u,O.T=r,xg(e,n)}}function wg(e,n,i){n=Kt(i,n),n=Tc(e.stateNode,n,2),e=oa(e,n,2),e!==null&&(wl(e,2),mn(e))}function je(e,n,i){if(e.tag===3)wg(e,e,i);else for(;n!==null;){if(n.tag===3){wg(n,e,i);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ha===null||!ha.has(r))){e=Kt(i,e),i=Ep(2),r=oa(n,i,2),r!==null&&(_p(i,r,n,e),wl(r,2),mn(r));break}}n=n.return}}function Jc(e,n,i){var r=e.pingCache;if(r===null){r=e.pingCache=new S1;var u=new Set;r.set(n,u)}else u=r.get(n),u===void 0&&(u=new Set,r.set(n,u));u.has(i)||(Yc=!0,u.add(i),e=T1.bind(null,e,n,i),n.then(e,e))}function T1(e,n,i){var r=e.pingCache;r!==null&&r.delete(n),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Be===e&&(_e&i)===i&&(Ke===4||Ke===3&&(_e&62914560)===_e&&300>Ot()-Uo?(Me&2)===0&&Fi(e,0):Qc|=i,Ki===_e&&(Ki=0)),mn(e)}function Eg(e,n){n===0&&(n=vh()),e=Ka(e,n),e!==null&&(wl(e,n),mn(e))}function A1(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Eg(e,i)}function R1(e,n){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(n),Eg(e,i)}function O1(e,n){return cu(e,n)}var Yo=null,$i=null,Ic=!1,Qo=!1,Wc=!1,ga=0;function mn(e){e!==$i&&e.next===null&&($i===null?Yo=$i=e:$i=$i.next=e),Qo=!0,Ic||(Ic=!0,M1())}function nr(e,n){if(!Wc&&Qo){Wc=!0;do for(var i=!1,r=Yo;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var v=r.suspendedLanes,_=r.pingedLanes;d=(1<<31-Mt(42|e)+1)-1,d&=u&~(v&~_),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Ag(r,d))}else d=_e,d=Zr(r,r===Be?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||Sl(r,d)||(i=!0,Ag(r,d));r=r.next}while(i);Wc=!1}}function N1(){_g()}function _g(){Qo=Ic=!1;var e=0;ga!==0&&G1()&&(e=ga);for(var n=Ot(),i=null,r=Yo;r!==null;){var u=r.next,d=Cg(r,n);d===0?(r.next=null,i===null?Yo=u:i.next=u,u===null&&($i=i)):(i=r,(e!==0||(d&3)!==0)&&(Qo=!0)),r=u}tt!==0&&tt!==5||nr(e),ga!==0&&(ga=0)}function Cg(e,n){for(var i=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-Mt(d),_=1<<v,j=u[v];j===-1?((_&i)===0||(_&r)!==0)&&(u[v]=aS(_,n)):j<=n&&(e.expiredLanes|=_),d&=~_}if(n=Be,i=_e,i=Zr(e,e===n?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===n&&(De===2||De===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&fu(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Sl(e,i)){if(n=i&-i,n===e.callbackPriority)return n;switch(r!==null&&fu(r),mu(i)){case 2:case 8:i=ph;break;case 32:i=Yr;break;case 268435456:i=gh;break;default:i=Yr}return r=Tg.bind(null,e),i=cu(i,r),e.callbackPriority=n,e.callbackNode=i,n}return r!==null&&r!==null&&fu(r),e.callbackPriority=2,e.callbackNode=null,2}function Tg(e,n){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Vo()&&e.callbackNode!==i)return null;var r=_e;return r=Zr(e,e===Be?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(og(e,r,n),Cg(e,Ot()),e.callbackNode!=null&&e.callbackNode===i?Tg.bind(null,e):null)}function Ag(e,n){if(Vo())return null;og(e,n,!0)}function M1(){Y1(function(){(Me&6)!==0?cu(mh,N1):_g()})}function ef(){if(ga===0){var e=Li;e===0&&(e=Qr,Qr<<=1,(Qr&261888)===0&&(Qr=256)),ga=e}return ga}function Rg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jr(""+e)}function Og(e,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,e.id&&i.setAttribute("form",e.id),n.parentNode.insertBefore(i,n),e=new FormData(e),i.parentNode.removeChild(i),e}function z1(e,n,i,r,u){if(n==="submit"&&i&&i.stateNode===u){var d=Rg((u[xt]||null).action),v=r.submitter;v&&(n=(n=v[xt]||null)?Rg(n.formAction):v.getAttribute("formAction"),n!==null&&(d=n,v=null));var _=new to("action","action",null,r,u);e.push({event:_,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ga!==0){var j=v?Og(u,v):new FormData(u);xc(i,{pending:!0,data:j,method:u.method,action:d},null,j)}}else typeof d=="function"&&(_.preventDefault(),j=v?Og(u,v):new FormData(u),xc(i,{pending:!0,data:j,method:u.method,action:d},d,j))},currentTarget:u}]})}}for(var tf=0;tf<Hu.length;tf++){var nf=Hu[tf],D1=nf.toLowerCase(),j1=nf[0].toUpperCase()+nf.slice(1);tn(D1,"on"+j1)}tn(rm,"onAnimationEnd"),tn(om,"onAnimationIteration"),tn(sm,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn($S,"onTransitionRun"),tn(JS,"onTransitionStart"),tn(IS,"onTransitionCancel"),tn(um,"onTransitionEnd"),Si("onMouseEnter",["mouseout","mouseover"]),Si("onMouseLeave",["mouseout","mouseover"]),Si("onPointerEnter",["pointerout","pointerover"]),Si("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ar="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(" "),L1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ar));function Ng(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],u=r.event;r=r.listeners;e:{var d=void 0;if(n)for(var v=r.length-1;0<=v;v--){var _=r[v],j=_.instance,Y=_.currentTarget;if(_=_.listener,j!==d&&u.isPropagationStopped())break e;d=_,u.currentTarget=Y;try{d(u)}catch($){io($)}u.currentTarget=null,d=j}else for(v=0;v<r.length;v++){if(_=r[v],j=_.instance,Y=_.currentTarget,_=_.listener,j!==d&&u.isPropagationStopped())break e;d=_,u.currentTarget=Y;try{d(u)}catch($){io($)}u.currentTarget=null,d=j}}}}function Ee(e,n){var i=n[pu];i===void 0&&(i=n[pu]=new Set);var r=e+"__bubble";i.has(r)||(Mg(n,e,2,!1),i.add(r))}function af(e,n,i){var r=0;n&&(r|=4),Mg(i,e,r,n)}var Xo="_reactListening"+Math.random().toString(36).slice(2);function lf(e){if(!e[Xo]){e[Xo]=!0,_h.forEach(function(i){i!=="selectionchange"&&(L1.has(i)||af(i,!1,e),af(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Xo]||(n[Xo]=!0,af("selectionchange",!1,n))}}function Mg(e,n,i,r){switch(rv(n)){case 2:var u=uw;break;case 8:u=cw;break;default:u=xf}i=u.bind(null,n,i,e),u=void 0,!_u||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(n,i,{capture:!0,passive:u}):e.addEventListener(n,i,!0):u!==void 0?e.addEventListener(n,i,{passive:u}):e.addEventListener(n,i,!1)}function rf(e,n,i,r,u){var d=r;if((n&1)===0&&(n&2)===0&&r!==null)e:for(;;){if(r===null)return;var v=r.tag;if(v===3||v===4){var _=r.stateNode.containerInfo;if(_===u)break;if(v===4)for(v=r.return;v!==null;){var j=v.tag;if((j===3||j===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;_!==null;){if(v=yi(_),v===null)return;if(j=v.tag,j===5||j===6||j===26||j===27){r=d=v;continue e}_=_.parentNode}}r=r.return}Uh(function(){var Y=d,$=wu(i),I=[];e:{var Q=cm.get(e);if(Q!==void 0){var Z=to,ue=e;switch(e){case"keypress":if(Wr(i)===0)break e;case"keydown":case"keyup":Z=RS;break;case"focusin":ue="focus",Z=Ru;break;case"focusout":ue="blur",Z=Ru;break;case"beforeblur":case"afterblur":Z=Ru;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=gS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=MS;break;case rm:case om:case sm:Z=bS;break;case um:Z=DS;break;case"scroll":case"scrollend":Z=mS;break;case"wheel":Z=LS;break;case"copy":case"cut":case"paste":Z=SS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Gh;break;case"toggle":case"beforetoggle":Z=HS}var ve=(n&4)!==0,He=!ve&&(e==="scroll"||e==="scrollend"),k=ve?Q!==null?Q+"Capture":null:Q;ve=[];for(var U=Y,V;U!==null;){var J=U;if(V=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||V===null||k===null||(J=Cl(U,k),J!=null&&ve.push(ir(U,J,V))),He)break;U=U.return}0<ve.length&&(Q=new Z(Q,ue,null,i,$),I.push({event:Q,listeners:ve}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",Q&&i!==Su&&(ue=i.relatedTarget||i.fromElement)&&(yi(ue)||ue[vi]))break e;if((Z||Q)&&(Q=$.window===$?$:(Q=$.ownerDocument)?Q.defaultView||Q.parentWindow:window,Z?(ue=i.relatedTarget||i.toElement,Z=Y,ue=ue?yi(ue):null,ue!==null&&(He=c(ue),ve=ue.tag,ue!==He||ve!==5&&ve!==27&&ve!==6)&&(ue=null)):(Z=null,ue=Y),Z!==ue)){if(ve=kh,J="onMouseLeave",k="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(ve=Gh,J="onPointerLeave",k="onPointerEnter",U="pointer"),He=Z==null?Q:_l(Z),V=ue==null?Q:_l(ue),Q=new ve(J,U+"leave",Z,i,$),Q.target=He,Q.relatedTarget=V,J=null,yi($)===Y&&(ve=new ve(k,U+"enter",ue,i,$),ve.target=V,ve.relatedTarget=He,J=ve),He=J,Z&&ue)t:{for(ve=U1,k=Z,U=ue,V=0,J=k;J;J=ve(J))V++;J=0;for(var pe=U;pe;pe=ve(pe))J++;for(;0<V-J;)k=ve(k),V--;for(;0<J-V;)U=ve(U),J--;for(;V--;){if(k===U||U!==null&&k===U.alternate){ve=k;break t}k=ve(k),U=ve(U)}ve=null}else ve=null;Z!==null&&zg(I,Q,Z,ve,!1),ue!==null&&He!==null&&zg(I,He,ue,ve,!0)}}e:{if(Q=Y?_l(Y):window,Z=Q.nodeName&&Q.nodeName.toLowerCase(),Z==="select"||Z==="input"&&Q.type==="file")var Oe=Ph;else if(Zh(Q))if($h)Oe=ZS;else{Oe=XS;var he=QS}else Z=Q.nodeName,!Z||Z.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?Y&&xu(Y.elementType)&&(Oe=Ph):Oe=KS;if(Oe&&(Oe=Oe(e,Y))){Fh(I,Oe,i,$);break e}he&&he(e,Q,Y),e==="focusout"&&Y&&Q.type==="number"&&Y.memoizedProps.value!=null&&bu(Q,"number",Q.value)}switch(he=Y?_l(Y):window,e){case"focusin":(Zh(he)||he.contentEditable==="true")&&(Ai=he,ju=Y,Dl=null);break;case"focusout":Dl=ju=Ai=null;break;case"mousedown":Lu=!0;break;case"contextmenu":case"mouseup":case"dragend":Lu=!1,im(I,i,$);break;case"selectionchange":if(PS)break;case"keydown":case"keyup":im(I,i,$)}var xe;if(Nu)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Ti?Xh(e,i)&&(Ce="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Ce="onCompositionStart");Ce&&(Vh&&i.locale!=="ko"&&(Ti||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Ti&&(xe=Hh()):(ea=$,Cu="value"in ea?ea.value:ea.textContent,Ti=!0)),he=Ko(Y,Ce),0<he.length&&(Ce=new qh(Ce,e,null,i,$),I.push({event:Ce,listeners:he}),xe?Ce.data=xe:(xe=Kh(i),xe!==null&&(Ce.data=xe)))),(xe=kS?qS(e,i):GS(e,i))&&(Ce=Ko(Y,"onBeforeInput"),0<Ce.length&&(he=new qh("onBeforeInput","beforeinput",null,i,$),I.push({event:he,listeners:Ce}),he.data=xe)),z1(I,e,Y,i,$)}Ng(I,n)})}function ir(e,n,i){return{instance:e,listener:n,currentTarget:i}}function Ko(e,n){for(var i=n+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Cl(e,i),u!=null&&r.unshift(ir(e,u,d)),u=Cl(e,n),u!=null&&r.push(ir(e,u,d))),e.tag===3)return r;e=e.return}return[]}function U1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zg(e,n,i,r,u){for(var d=n._reactName,v=[];i!==null&&i!==r;){var _=i,j=_.alternate,Y=_.stateNode;if(_=_.tag,j!==null&&j===r)break;_!==5&&_!==26&&_!==27||Y===null||(j=Y,u?(Y=Cl(i,d),Y!=null&&v.unshift(ir(i,Y,j))):u||(Y=Cl(i,d),Y!=null&&v.push(ir(i,Y,j)))),i=i.return}v.length!==0&&e.push({event:n,listeners:v})}var H1=/\r\n?/g,B1=/\u0000|\uFFFD/g;function Dg(e){return(typeof e=="string"?e:""+e).replace(H1,`
|
|
9
|
+
`).replace(B1,"")}function jg(e,n){return n=Dg(n),Dg(e)===n}function Ue(e,n,i,r,u,d){switch(i){case"children":typeof r=="string"?n==="body"||n==="textarea"&&r===""||Ei(e,r):(typeof r=="number"||typeof r=="bigint")&&n!=="body"&&Ei(e,""+r);break;case"className":Pr(e,"class",r);break;case"tabIndex":Pr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(e,i,r);break;case"style":jh(e,r,d);break;case"data":if(n!=="object"){Pr(e,"data",r);break}case"src":case"href":if(r===""&&(n!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Jr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(n!=="input"&&Ue(e,n,"name",u.name,u,null),Ue(e,n,"formEncType",u.formEncType,u,null),Ue(e,n,"formMethod",u.formMethod,u,null),Ue(e,n,"formTarget",u.formTarget,u,null)):(Ue(e,n,"encType",u.encType,u,null),Ue(e,n,"method",u.method,u,null),Ue(e,n,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Jr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=Tn);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Jr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Fr(e,"popover",r);break;case"xlinkActuate":Cn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Cn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Cn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Cn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Cn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Cn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Cn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Fr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=dS.get(i)||i,Fr(e,i,r))}}function of(e,n,i,r,u,d){switch(i){case"style":jh(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof r=="string"?Ei(e,r):(typeof r=="number"||typeof r=="bigint")&&Ei(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ch.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),n=i.slice(2,u?i.length-7:void 0),d=e[xt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(n,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(n,r,u);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Fr(e,i,r)}}}function ht(e,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var v=i[d];if(v!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(e,n,d,v,i,null)}}u&&Ue(e,n,"srcSet",i.srcSet,i,null),r&&Ue(e,n,"src",i.src,i,null);return;case"input":Ee("invalid",e);var _=d=v=u=null,j=null,Y=null;for(r in i)if(i.hasOwnProperty(r)){var $=i[r];if($!=null)switch(r){case"name":u=$;break;case"type":v=$;break;case"checked":j=$;break;case"defaultChecked":Y=$;break;case"value":d=$;break;case"defaultValue":_=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,n));break;default:Ue(e,n,r,$,i,null)}}Nh(e,d,_,j,Y,v,u,!1);return;case"select":Ee("invalid",e),r=v=d=null;for(u in i)if(i.hasOwnProperty(u)&&(_=i[u],_!=null))switch(u){case"value":d=_;break;case"defaultValue":v=_;break;case"multiple":r=_;default:Ue(e,n,u,_,i,null)}n=d,i=v,e.multiple=!!r,n!=null?wi(e,!!r,n,!1):i!=null&&wi(e,!!r,i,!0);return;case"textarea":Ee("invalid",e),d=u=r=null;for(v in i)if(i.hasOwnProperty(v)&&(_=i[v],_!=null))switch(v){case"value":r=_;break;case"defaultValue":u=_;break;case"children":d=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(91));break;default:Ue(e,n,v,_,i,null)}zh(e,r,u,d);return;case"option":for(j in i)i.hasOwnProperty(j)&&(r=i[j],r!=null)&&(j==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ue(e,n,j,r,i,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<ar.length;r++)Ee(ar[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(Y in i)if(i.hasOwnProperty(Y)&&(r=i[Y],r!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,n));default:Ue(e,n,Y,r,i,null)}return;default:if(xu(n)){for($ in i)i.hasOwnProperty($)&&(r=i[$],r!==void 0&&of(e,n,$,r,i,void 0));return}}for(_ in i)i.hasOwnProperty(_)&&(r=i[_],r!=null&&Ue(e,n,_,r,i,null))}function k1(e,n,i,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,v=null,_=null,j=null,Y=null,$=null;for(Z in i){var I=i[Z];if(i.hasOwnProperty(Z)&&I!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":j=I;default:r.hasOwnProperty(Z)||Ue(e,n,Z,null,r,I)}}for(var Q in r){var Z=r[Q];if(I=i[Q],r.hasOwnProperty(Q)&&(Z!=null||I!=null))switch(Q){case"type":d=Z;break;case"name":u=Z;break;case"checked":Y=Z;break;case"defaultChecked":$=Z;break;case"value":v=Z;break;case"defaultValue":_=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,n));break;default:Z!==I&&Ue(e,n,Q,Z,r,I)}}yu(e,v,_,j,Y,$,d,u);return;case"select":Z=v=_=Q=null;for(d in i)if(j=i[d],i.hasOwnProperty(d)&&j!=null)switch(d){case"value":break;case"multiple":Z=j;default:r.hasOwnProperty(d)||Ue(e,n,d,null,r,j)}for(u in r)if(d=r[u],j=i[u],r.hasOwnProperty(u)&&(d!=null||j!=null))switch(u){case"value":Q=d;break;case"defaultValue":_=d;break;case"multiple":v=d;default:d!==j&&Ue(e,n,u,d,r,j)}n=_,i=v,r=Z,Q!=null?wi(e,!!i,Q,!1):!!r!=!!i&&(n!=null?wi(e,!!i,n,!0):wi(e,!!i,i?[]:"",!1));return;case"textarea":Z=Q=null;for(_ in i)if(u=i[_],i.hasOwnProperty(_)&&u!=null&&!r.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ue(e,n,_,null,r,u)}for(v in r)if(u=r[v],d=i[v],r.hasOwnProperty(v)&&(u!=null||d!=null))switch(v){case"value":Q=u;break;case"defaultValue":Z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&Ue(e,n,v,u,r,d)}Mh(e,Q,Z);return;case"option":for(var ue in i)Q=i[ue],i.hasOwnProperty(ue)&&Q!=null&&!r.hasOwnProperty(ue)&&(ue==="selected"?e.selected=!1:Ue(e,n,ue,null,r,Q));for(j in r)Q=r[j],Z=i[j],r.hasOwnProperty(j)&&Q!==Z&&(Q!=null||Z!=null)&&(j==="selected"?e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":Ue(e,n,j,Q,r,Z));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 ve in i)Q=i[ve],i.hasOwnProperty(ve)&&Q!=null&&!r.hasOwnProperty(ve)&&Ue(e,n,ve,null,r,Q);for(Y in r)if(Q=r[Y],Z=i[Y],r.hasOwnProperty(Y)&&Q!==Z&&(Q!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,n));break;default:Ue(e,n,Y,Q,r,Z)}return;default:if(xu(n)){for(var He in i)Q=i[He],i.hasOwnProperty(He)&&Q!==void 0&&!r.hasOwnProperty(He)&&of(e,n,He,void 0,r,Q);for($ in r)Q=r[$],Z=i[$],!r.hasOwnProperty($)||Q===Z||Q===void 0&&Z===void 0||of(e,n,$,Q,r,Z);return}}for(var k in i)Q=i[k],i.hasOwnProperty(k)&&Q!=null&&!r.hasOwnProperty(k)&&Ue(e,n,k,null,r,Q);for(I in r)Q=r[I],Z=i[I],!r.hasOwnProperty(I)||Q===Z||Q==null&&Z==null||Ue(e,n,I,Q,r,Z)}function Lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function q1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],d=u.transferSize,v=u.initiatorType,_=u.duration;if(d&&_&&Lg(v)){for(v=0,_=u.responseEnd,r+=1;r<i.length;r++){var j=i[r],Y=j.startTime;if(Y>_)break;var $=j.transferSize,I=j.initiatorType;$&&Lg(I)&&(j=j.responseEnd,v+=$*(j<_?1:(_-Y)/(j-Y)))}if(--r,n+=8*(d+v)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sf=null,uf=null;function Zo(e){return e.nodeType===9?e:e.ownerDocument}function Ug(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 Hg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function cf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ff=null;function G1(){var e=window.event;return e&&e.type==="popstate"?e===ff?!1:(ff=e,!0):(ff=null,!1)}var Bg=typeof setTimeout=="function"?setTimeout:void 0,V1=typeof clearTimeout=="function"?clearTimeout:void 0,kg=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof kg<"u"?function(e){return kg.resolve(null).then(e).catch(Q1)}:Bg;function Q1(e){setTimeout(function(){throw e})}function va(e){return e==="head"}function qg(e,n){var i=n,r=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(u),el(n);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")lr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,lr(i);for(var d=i.firstChild;d;){var v=d.nextSibling,_=d.nodeName;d[El]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=v}}else i==="body"&&lr(e.ownerDocument.body);i=u}while(i);el(n)}function Gg(e,n){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?n?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(n?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function df(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":df(i),gu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function X1(e,n,i,r){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[El])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function K1(e,n,i){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Jt(e.nextSibling),e===null))return null;return e}function Vg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jt(e.nextSibling),e===null))return null;return e}function hf(e){return e.data==="$?"||e.data==="$~"}function mf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Z1(e,n){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||i.readyState!=="loading")n();else{var r=function(){n(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Jt(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var pf=null;function Yg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(n===0)return Jt(e.nextSibling);n--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||n++}e=e.nextSibling}return null}function Qg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(n===0)return e;n--}else i!=="/$"&&i!=="/&"||n++}e=e.previousSibling}return null}function Xg(e,n,i){switch(n=Zo(i),e){case"html":if(e=n.documentElement,!e)throw Error(o(452));return e;case"head":if(e=n.head,!e)throw Error(o(453));return e;case"body":if(e=n.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function lr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);gu(e)}var It=new Map,Kg=new Set;function Fo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=q.d;q.d={f:F1,r:P1,D:$1,C:J1,L:I1,m:W1,X:tw,S:ew,M:nw};function F1(){var e=Vn.f(),n=ko();return e||n}function P1(e){var n=bi(e);n!==null&&n.tag===5&&n.type==="form"?up(n):Vn.r(e)}var Ji=typeof document>"u"?null:document;function Zg(e,n,i){var r=Ji;if(r&&typeof n=="string"&&n){var u=Qt(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Kg.has(u)||(Kg.add(u),e={rel:e,crossOrigin:i,href:n},r.querySelector(u)===null&&(n=r.createElement("link"),ht(n,"link",e),lt(n),r.head.appendChild(n)))}}function $1(e){Vn.D(e),Zg("dns-prefetch",e,null)}function J1(e,n){Vn.C(e,n),Zg("preconnect",e,n)}function I1(e,n,i){Vn.L(e,n,i);var r=Ji;if(r&&e&&n){var u='link[rel="preload"][as="'+Qt(n)+'"]';n==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+Qt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+Qt(i.imageSizes)+'"]')):u+='[href="'+Qt(e)+'"]';var d=u;switch(n){case"style":d=Ii(e);break;case"script":d=Wi(e)}It.has(d)||(e=y({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:e,as:n},i),It.set(d,e),r.querySelector(u)!==null||n==="style"&&r.querySelector(rr(d))||n==="script"&&r.querySelector(or(d))||(n=r.createElement("link"),ht(n,"link",e),lt(n),r.head.appendChild(n)))}}function W1(e,n){Vn.m(e,n);var i=Ji;if(i&&e){var r=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Qt(r)+'"][href="'+Qt(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Wi(e)}if(!It.has(d)&&(e=y({rel:"modulepreload",href:e},n),It.set(d,e),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(or(d)))return}r=i.createElement("link"),ht(r,"link",e),lt(r),i.head.appendChild(r)}}}function ew(e,n,i){Vn.S(e,n,i);var r=Ji;if(r&&e){var u=xi(r).hoistableStyles,d=Ii(e);n=n||"default";var v=u.get(d);if(!v){var _={loading:0,preload:null};if(v=r.querySelector(rr(d)))_.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},i),(i=It.get(d))&&gf(e,i);var j=v=r.createElement("link");lt(j),ht(j,"link",e),j._p=new Promise(function(Y,$){j.onload=Y,j.onerror=$}),j.addEventListener("load",function(){_.loading|=1}),j.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Po(v,n,r)}v={type:"stylesheet",instance:v,count:1,state:_},u.set(d,v)}}}function tw(e,n){Vn.X(e,n);var i=Ji;if(i&&e){var r=xi(i).hoistableScripts,u=Wi(e),d=r.get(u);d||(d=i.querySelector(or(u)),d||(e=y({src:e,async:!0},n),(n=It.get(u))&&vf(e,n),d=i.createElement("script"),lt(d),ht(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function nw(e,n){Vn.M(e,n);var i=Ji;if(i&&e){var r=xi(i).hoistableScripts,u=Wi(e),d=r.get(u);d||(d=i.querySelector(or(u)),d||(e=y({src:e,async:!0,type:"module"},n),(n=It.get(u))&&vf(e,n),d=i.createElement("script"),lt(d),ht(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function Fg(e,n,i,r){var u=(u=se.current)?Fo(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Ii(i.href),i=xi(u).hoistableStyles,r=i.get(n),r||(r={type:"style",instance:null,count:0,state:null},i.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Ii(i.href);var d=xi(u).hoistableStyles,v=d.get(e);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=u.querySelector(rr(e)))&&!d._p&&(v.instance=d,v.state.loading=5),It.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},It.set(e,i),d||aw(u,e,i,v.state))),n&&r===null)throw Error(o(528,""));return v}if(n&&r!==null)throw Error(o(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Wi(i),i=xi(u).hoistableScripts,r=i.get(n),r||(r={type:"script",instance:null,count:0,state:null},i.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ii(e){return'href="'+Qt(e)+'"'}function rr(e){return'link[rel="stylesheet"]['+e+"]"}function Pg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function aw(e,n,i,r){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?r.loading=1:(n=e.createElement("link"),r.preload=n,n.addEventListener("load",function(){return r.loading|=1}),n.addEventListener("error",function(){return r.loading|=2}),ht(n,"link",i),lt(n),e.head.appendChild(n))}function Wi(e){return'[src="'+Qt(e)+'"]'}function or(e){return"script[async]"+e}function $g(e,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+Qt(i.href)+'"]');if(r)return n.instance=r,lt(r),r;var u=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),lt(r),ht(r,"style",u),Po(r,i.precedence,e),n.instance=r;case"stylesheet":u=Ii(i.href);var d=e.querySelector(rr(u));if(d)return n.state.loading|=4,n.instance=d,lt(d),d;r=Pg(i),(u=It.get(u))&&gf(r,u),d=(e.ownerDocument||e).createElement("link"),lt(d);var v=d;return v._p=new Promise(function(_,j){v.onload=_,v.onerror=j}),ht(d,"link",r),n.state.loading|=4,Po(d,i.precedence,e),n.instance=d;case"script":return d=Wi(i.src),(u=e.querySelector(or(d)))?(n.instance=u,lt(u),u):(r=i,(u=It.get(d))&&(r=y({},i),vf(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),lt(u),ht(u,"link",r),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(r=n.instance,n.state.loading|=4,Po(r,i.precedence,e));return n.instance}function Po(e,n,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,v=0;v<r.length;v++){var _=r[v];if(_.dataset.precedence===n)d=_;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(e,n.firstChild))}function gf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function vf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var $o=null;function Jg(e,n,i){if($o===null){var r=new Map,u=$o=new Map;u.set(i,r)}else u=$o,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[El]||d[ut]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(n)||"";v=e+v;var _=r.get(v);_?_.push(d):r.set(v,[d])}}return r}function Ig(e,n,i){e=e.ownerDocument||e,e.head.insertBefore(i,n==="title"?e.querySelector("head > title"):null)}function iw(e,n,i){if(i===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lw(e,n,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=Ii(r.href),d=n.querySelector(rr(u));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Jo.bind(e),n.then(e,e)),i.state.loading|=4,i.instance=d,lt(d);return}d=n.ownerDocument||n,r=Pg(r),(u=It.get(u))&&gf(r,u),d=d.createElement("link"),lt(d);var v=d;v._p=new Promise(function(_,j){v.onload=_,v.onerror=j}),ht(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,n),(n=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Jo.bind(e),n.addEventListener("load",i),n.addEventListener("error",i))}}var yf=0;function rw(e,n){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&yf===0&&(yf=62500*q1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>yf?50:800)+n);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Wo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,n.forEach(ow,e),Io=null,Jo.call(e))}function ow(e,n){if(!(n.state.loading&4)){var i=Io.get(e);if(i)var r=i.get(null);else{i=new Map,Io.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var v=u[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(i.set(v.dataset.precedence,v),r=v)}r&&i.set(null,r)}u=n.instance,v=u.getAttribute("data-precedence"),d=i.get(v)||r,d===r&&i.set(null,u),i.set(v,u),this.count++,r=Jo.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var sr={$$typeof:M,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function sw(e,n,i,r,u,d,v,_,j){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=du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.hiddenUpdates=du(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function ev(e,n,i,r,u,d,v,_,j,Y,$,I){return e=new sw(e,n,i,v,j,Y,$,I,_),n=1,d===!0&&(n|=24),d=Dt(3,null,null,n),e.current=d,d.stateNode=e,n=$u(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:n},ec(d),e}function tv(e){return e?(e=Ni,e):Ni}function nv(e,n,i,r,u,d){u=tv(u),r.context===null?r.context=u:r.pendingContext=u,r=ra(n),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=oa(e,r,n),i!==null&&(Tt(i,e,n),ql(i,e,n))}function av(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function bf(e,n){av(e,n),(e=e.alternate)&&av(e,n)}function iv(e){if(e.tag===13||e.tag===31){var n=Ka(e,67108864);n!==null&&Tt(n,e,67108864),bf(e,67108864)}}function lv(e){if(e.tag===13||e.tag===31){var n=Bt();n=hu(n);var i=Ka(e,n);i!==null&&Tt(i,e,n),bf(e,n)}}var es=!0;function uw(e,n,i,r){var u=O.T;O.T=null;var d=q.p;try{q.p=2,xf(e,n,i,r)}finally{q.p=d,O.T=u}}function cw(e,n,i,r){var u=O.T;O.T=null;var d=q.p;try{q.p=8,xf(e,n,i,r)}finally{q.p=d,O.T=u}}function xf(e,n,i,r){if(es){var u=Sf(r);if(u===null)rf(e,n,r,ts,i),ov(e,r);else if(dw(u,e,n,i,r))r.stopPropagation();else if(ov(e,r),n&4&&-1<fw.indexOf(e)){for(;u!==null;){var d=bi(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=Ga(d.pendingLanes);if(v!==0){var _=d;for(_.pendingLanes|=2,_.entangledLanes|=2;v;){var j=1<<31-Mt(v);_.entanglements[1]|=j,v&=~j}mn(d),(Me&6)===0&&(Ho=Ot()+500,nr(0))}}break;case 31:case 13:_=Ka(d,2),_!==null&&Tt(_,d,2),ko(),bf(d,2)}if(d=Sf(r),d===null&&rf(e,n,r,ts,i),d===u)break;u=d}u!==null&&r.stopPropagation()}else rf(e,n,r,null,i)}}function Sf(e){return e=wu(e),wf(e)}var ts=null;function wf(e){if(ts=null,e=yi(e),e!==null){var n=c(e);if(n===null)e=null;else{var i=n.tag;if(i===13){if(e=f(n),e!==null)return e;e=null}else if(i===31){if(e=h(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return ts=e,null}function rv(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($x()){case mh:return 2;case ph:return 8;case Yr:case Jx:return 32;case gh:return 268435456;default:return 32}default:return 32}}var Ef=!1,ya=null,ba=null,xa=null,ur=new Map,cr=new Map,Sa=[],fw="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 ov(e,n){switch(e){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":ba=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":ur.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":cr.delete(n.pointerId)}}function fr(e,n,i,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},n!==null&&(n=bi(n),n!==null&&iv(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function dw(e,n,i,r,u){switch(n){case"focusin":return ya=fr(ya,e,n,i,r,u),!0;case"dragenter":return ba=fr(ba,e,n,i,r,u),!0;case"mouseover":return xa=fr(xa,e,n,i,r,u),!0;case"pointerover":var d=u.pointerId;return ur.set(d,fr(ur.get(d)||null,e,n,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,cr.set(d,fr(cr.get(d)||null,e,n,i,r,u)),!0}return!1}function sv(e){var n=yi(e.target);if(n!==null){var i=c(n);if(i!==null){if(n=i.tag,n===13){if(n=f(i),n!==null){e.blockedOn=n,wh(e.priority,function(){lv(i)});return}}else if(n===31){if(n=h(i),n!==null){e.blockedOn=n,wh(e.priority,function(){lv(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ns(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=Sf(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Su=r,i.target.dispatchEvent(r),Su=null}else return n=bi(i),n!==null&&iv(n),e.blockedOn=i,!1;n.shift()}return!0}function uv(e,n,i){ns(e)&&i.delete(n)}function hw(){Ef=!1,ya!==null&&ns(ya)&&(ya=null),ba!==null&&ns(ba)&&(ba=null),xa!==null&&ns(xa)&&(xa=null),ur.forEach(uv),cr.forEach(uv)}function as(e,n){e.blockedOn===n&&(e.blockedOn=null,Ef||(Ef=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,hw)))}var is=null;function cv(e){is!==e&&(is=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){is===e&&(is=null);for(var n=0;n<e.length;n+=3){var i=e[n],r=e[n+1],u=e[n+2];if(typeof r!="function"){if(wf(r||i)===null)continue;break}var d=bi(i);d!==null&&(e.splice(n,3),n-=3,xc(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function el(e){function n(j){return as(j,e)}ya!==null&&as(ya,e),ba!==null&&as(ba,e),xa!==null&&as(xa,e),ur.forEach(n),cr.forEach(n);for(var i=0;i<Sa.length;i++){var r=Sa[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sa.length&&(i=Sa[0],i.blockedOn===null);)sv(i),i.blockedOn===null&&Sa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],d=i[r+1],v=u[xt]||null;if(typeof d=="function")v||cv(i);else if(v){var _=null;if(d&&d.hasAttribute("formAction")){if(u=d,v=d[xt]||null)_=v.formAction;else if(wf(u)!==null)continue}else _=v.action;typeof _=="function"?i[r+1]=_:(i.splice(r,3),r-=3),cv(i)}}}function fv(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(v){return u=v})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function _f(e){this._internalRoot=e}ls.prototype.render=_f.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));var i=n.current,r=Bt();nv(i,r,e,n,null,null)},ls.prototype.unmount=_f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;nv(e.current,2,null,e,null,null),ko(),n[vi]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var n=Sh();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Sa.length&&n!==0&&n<Sa[i].priority;i++);Sa.splice(i,0,e),i===0&&sv(e)}};var dv=a.version;if(dv!=="19.2.4")throw Error(o(527,dv,"19.2.4"));q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(n),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var mw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rs.isDisabled&&rs.supportsFiber)try{xl=rs.inject(mw),Nt=rs}catch{}}return hr.createRoot=function(e,n){if(!s(e))throw Error(o(299));var i=!1,r="",u=bp,d=xp,v=Sp;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=ev(e,1,!1,null,null,i,r,null,u,d,v,fv),e[vi]=n.current,lf(e),new _f(n)},hr.hydrateRoot=function(e,n,i){if(!s(e))throw Error(o(299));var r=!1,u="",d=bp,v=xp,_=Sp,j=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(_=i.onRecoverableError),i.formState!==void 0&&(j=i.formState)),n=ev(e,1,!0,n,i??null,r,u,j,d,v,_,fv),n.context=tv(null),i=n.current,r=Bt(),r=hu(r),u=ra(r),u.callback=null,oa(i,u,r),i=r,n.current.lanes=i,wl(n,i),mn(n),e[vi]=n.current,lf(e),new ls(n)},hr.version="19.2.4",hr}var wv;function _w(){if(wv)return Af.exports;wv=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Af.exports=Ew(),Af.exports}var Cw=_w();var Ev="popstate";function _v(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Tw(t={}){function a(o,s){let c=s.state?.masked,{pathname:f,search:h,hash:p}=c||o.location;return td("",{pathname:f,search:h,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function l(o,s){return typeof s=="string"?s:_r(s)}return Rw(a,l,null,t)}function Qe(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function Sn(t,a){if(!t){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Aw(){return Math.random().toString(36).substring(2,10)}function Cv(t,a){return{usr:t.state,key:t.key,idx:a,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function td(t,a,l=null,o,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?hl(a):a,state:l,key:a&&a.key||o||Aw(),unstable_mask:s}}function _r({pathname:t="/",search:a="",hash:l=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(t+=l.charAt(0)==="#"?l:"#"+l),t}function hl(t){let a={};if(t){let l=t.indexOf("#");l>=0&&(a.hash=t.substring(l),t=t.substring(0,l));let o=t.indexOf("?");o>=0&&(a.search=t.substring(o),t=t.substring(0,o)),t&&(a.pathname=t)}return a}function Rw(t,a,l,o={}){let{window:s=document.defaultView,v5Compat:c=!1}=o,f=s.history,h="POP",p=null,m=g();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function g(){return(f.state||{idx:null}).idx}function y(){h="POP";let w=g(),C=w==null?null:w-m;m=w,p&&p({action:h,location:b.location,delta:C})}function x(w,C){h="PUSH";let N=_v(w)?w:td(b.location,w,C);m=g()+1;let M=Cv(N,m),T=b.createHref(N.unstable_mask||N);try{f.pushState(M,"",T)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(T)}c&&p&&p({action:h,location:b.location,delta:1})}function E(w,C){h="REPLACE";let N=_v(w)?w:td(b.location,w,C);m=g();let M=Cv(N,m),T=b.createHref(N.unstable_mask||N);f.replaceState(M,"",T),c&&p&&p({action:h,location:b.location,delta:0})}function A(w){return Ow(w)}let b={get action(){return h},get location(){return t(s,f)},listen(w){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Ev,y),p=w,()=>{s.removeEventListener(Ev,y),p=null}},createHref(w){return a(s,w)},createURL:A,encodeLocation(w){let C=A(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:x,replace:E,go(w){return f.go(w)}};return b}function Ow(t,a=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(l,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:_r(t);return o=o.replace(/ $/,"%20"),!a&&o.startsWith("//")&&(o=l+o),new URL(o,l)}function Py(t,a,l="/"){return Nw(t,a,l,!1)}function Nw(t,a,l,o){let s=typeof a=="string"?hl(a):a,c=Zn(s.pathname||"/",l);if(c==null)return null;let f=$y(t);Mw(f);let h=null;for(let p=0;h==null&&p<f.length;++p){let m=Vw(c);h=qw(f[p],m,o)}return h}function $y(t,a=[],l=[],o="",s=!1){let c=(f,h,p=s,m)=>{let g={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(o)&&p)return;Qe(g.relativePath.startsWith(o),`Absolute route path "${g.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(o.length)}let y=yn([o,g.relativePath]),x=l.concat(g);f.children&&f.children.length>0&&(Qe(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),$y(f.children,a,x,y,p)),!(f.path==null&&!f.index)&&a.push({path:y,score:Bw(y,f.index),routesMeta:x})};return t.forEach((f,h)=>{if(f.path===""||!f.path?.includes("?"))c(f,h);else for(let p of Jy(f.path))c(f,h,!0,p)}),a}function Jy(t){let a=t.split("/");if(a.length===0)return[];let[l,...o]=a,s=l.endsWith("?"),c=l.replace(/\?$/,"");if(o.length===0)return s?[c,""]:[c];let f=Jy(o.join("/")),h=[];return h.push(...f.map(p=>p===""?c:[c,p].join("/"))),s&&h.push(...f),h.map(p=>t.startsWith("/")&&p===""?"/":p)}function Mw(t){t.sort((a,l)=>a.score!==l.score?l.score-a.score:kw(a.routesMeta.map(o=>o.childrenIndex),l.routesMeta.map(o=>o.childrenIndex)))}var zw=/^:[\w-]+$/,Dw=3,jw=2,Lw=1,Uw=10,Hw=-2,Tv=t=>t==="*";function Bw(t,a){let l=t.split("/"),o=l.length;return l.some(Tv)&&(o+=Hw),a&&(o+=jw),l.filter(s=>!Tv(s)).reduce((s,c)=>s+(zw.test(c)?Dw:c===""?Lw:Uw),o)}function kw(t,a){return t.length===a.length&&t.slice(0,-1).every((o,s)=>o===a[s])?t[t.length-1]-a[a.length-1]:0}function qw(t,a,l=!1){let{routesMeta:o}=t,s={},c="/",f=[];for(let h=0;h<o.length;++h){let p=o[h],m=h===o.length-1,g=c==="/"?a:a.slice(c.length)||"/",y=Ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},g),x=p.route;if(!y&&m&&l&&!o[o.length-1].route.index&&(y=Ms({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!y)return null;Object.assign(s,y.params),f.push({params:s,pathname:yn([c,y.pathname]),pathnameBase:Kw(yn([c,y.pathnameBase])),route:x}),y.pathnameBase!=="/"&&(c=yn([c,y.pathnameBase]))}return f}function Ms(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[l,o]=Gw(t.path,t.caseSensitive,t.end),s=a.match(l);if(!s)return null;let c=s[0],f=c.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:o.reduce((m,{paramName:g,isOptional:y},x)=>{if(g==="*"){let A=h[x]||"";f=c.slice(0,c.length-A.length).replace(/(.)\/+$/,"$1")}const E=h[x];return y&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:t}}function Gw(t,a=!1,l=!0){Sn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let o=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p,m,g)=>{if(o.push({paramName:h,isOptional:p!=null}),p){let y=g.charAt(m+f.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(o.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),o]}function Vw(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Sn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function Zn(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let l=a.endsWith("/")?a.length-1:a.length,o=t.charAt(l);return o&&o!=="/"?null:t.slice(l)||"/"}var Yw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Qw(t,a="/"){let{pathname:l,search:o="",hash:s=""}=typeof t=="string"?hl(t):t,c;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?c=Av(l.substring(1),"/"):c=Av(l,a)):c=a,{pathname:c,search:Zw(o),hash:Fw(s)}}function Av(t,a){let l=a.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function Mf(t,a,l,o){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Xw(t){return t.filter((a,l)=>l===0||a.route.path&&a.route.path.length>0)}function Iy(t){let a=Xw(t);return a.map((l,o)=>o===a.length-1?l.pathname:l.pathnameBase)}function Md(t,a,l,o=!1){let s;typeof t=="string"?s=hl(t):(s={...t},Qe(!s.pathname||!s.pathname.includes("?"),Mf("?","pathname","search",s)),Qe(!s.pathname||!s.pathname.includes("#"),Mf("#","pathname","hash",s)),Qe(!s.search||!s.search.includes("#"),Mf("#","search","hash",s)));let c=t===""||s.pathname==="",f=c?"/":s.pathname,h;if(f==null)h=l;else{let y=a.length-1;if(!o&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),y-=1;s.pathname=x.join("/")}h=y>=0?a[y]:"/"}let p=Qw(s,h),m=f&&f!=="/"&&f.endsWith("/"),g=(c||f===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var yn=t=>t.join("/").replace(/\/\/+/g,"/"),Kw=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Zw=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Fw=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Pw=class{constructor(t,a,l,o=!1){this.status=t,this.statusText=a||"",this.internal=o,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function $w(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function Jw(t){return t.map(a=>a.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e0(t,a){let l=t;if(typeof l!="string"||!Yw.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let o=l,s=!1;if(Wy)try{let c=new URL(window.location.href),f=l.startsWith("//")?new URL(c.protocol+l):new URL(l),h=Zn(f.pathname,a);f.origin===c.origin&&h!=null?l=h+f.search+f.hash:s=!0}catch{Sn(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t0=["POST","PUT","PATCH","DELETE"];new Set(t0);var Iw=["GET",...t0];new Set(Iw);var ml=S.createContext(null);ml.displayName="DataRouter";var Zs=S.createContext(null);Zs.displayName="DataRouterState";var Ww=S.createContext(!1),n0=S.createContext({isTransitioning:!1});n0.displayName="ViewTransition";var eE=S.createContext(new Map);eE.displayName="Fetchers";var tE=S.createContext(null);tE.displayName="Await";var en=S.createContext(null);en.displayName="Navigation";var Dr=S.createContext(null);Dr.displayName="Location";var Jn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var zd=S.createContext(null);zd.displayName="RouteError";var a0="REACT_ROUTER_ERROR",nE="REDIRECT",aE="ROUTE_ERROR_RESPONSE";function iE(t){if(t.startsWith(`${a0}:${nE}:{`))try{let a=JSON.parse(t.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function lE(t){if(t.startsWith(`${a0}:${aE}:{`))try{let a=JSON.parse(t.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new Pw(a.status,a.statusText,a.data)}catch{}}function rE(t,{relative:a}={}){Qe(jr(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:o}=S.useContext(en),{hash:s,pathname:c,search:f}=Lr(t,{relative:a}),h=c;return l!=="/"&&(h=c==="/"?l:yn([l,c])),o.createHref({pathname:h,search:f,hash:s})}function jr(){return S.useContext(Dr)!=null}function ja(){return Qe(jr(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Dr).location}var i0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l0(t){S.useContext(en).static||S.useLayoutEffect(t)}function oE(){let{isDataRoute:t}=S.useContext(Jn);return t?xE():sE()}function sE(){Qe(jr(),"useNavigate() may be used only in the context of a <Router> component.");let t=S.useContext(ml),{basename:a,navigator:l}=S.useContext(en),{matches:o}=S.useContext(Jn),{pathname:s}=ja(),c=JSON.stringify(Iy(o)),f=S.useRef(!1);return l0(()=>{f.current=!0}),S.useCallback((p,m={})=>{if(Sn(f.current,i0),!f.current)return;if(typeof p=="number"){l.go(p);return}let g=Md(p,JSON.parse(c),s,m.relative==="path");t==null&&a!=="/"&&(g.pathname=g.pathname==="/"?a:yn([a,g.pathname])),(m.replace?l.replace:l.push)(g,m.state,m)},[a,l,c,s,t])}S.createContext(null);function Lr(t,{relative:a}={}){let{matches:l}=S.useContext(Jn),{pathname:o}=ja(),s=JSON.stringify(Iy(l));return S.useMemo(()=>Md(t,JSON.parse(s),o,a==="path"),[t,s,o,a])}function uE(t,a){return r0(t,a)}function r0(t,a,l){Qe(jr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(en),{matches:s}=S.useContext(Jn),c=s[s.length-1],f=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",m=c&&c.route;{let w=m&&m.path||"";s0(h,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let g=ja(),y;if(a){let w=typeof a=="string"?hl(a):a;Qe(p==="/"||w.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${w.pathname}" was given in the \`location\` prop.`),y=w}else y=g;let x=y.pathname||"/",E=x;if(p!=="/"){let w=p.replace(/^\//,"").split("/");E="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let A=Py(t,{pathname:E});Sn(m||A!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Sn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=mE(A&&A.map(w=>Object.assign({},w,{params:Object.assign({},f,w.params),pathname:yn([p,o.encodeLocation?o.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:yn([p,o.encodeLocation?o.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),s,l);return a&&b?S.createElement(Dr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},b):b}function cE(){let t=bE(),a=$w(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),l=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:c},"ErrorBoundary")," or"," ",S.createElement("code",{style:c},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},a),l?S.createElement("pre",{style:s},l):null,f)}var fE=S.createElement(cE,null),o0=class extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){this.props.onError?this.props.onError(t,a):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const l=lE(t.digest);l&&(t=l)}let a=t!==void 0?S.createElement(Jn.Provider,{value:this.props.routeContext},S.createElement(zd.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?S.createElement(dE,{error:t},a):a}};o0.contextType=Ww;var zf=new WeakMap;function dE({children:t,error:a}){let{basename:l}=S.useContext(en);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let o=iE(a.digest);if(o){let s=zf.get(a);if(s)throw s;let c=e0(o.location,l);if(Wy&&!zf.get(a))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw zf.set(a,f),f}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function hE({routeContext:t,match:a,children:l}){let o=S.useContext(ml);return o&&o.static&&o.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=a.route.id),S.createElement(Jn.Provider,{value:t},l)}function mE(t,a=[],l){let o=l?.state;if(t==null){if(!o)return null;if(o.errors)t=o.matches;else if(a.length===0&&!o.initialized&&o.matches.length>0)t=o.matches;else return null}let s=t,c=o?.errors;if(c!=null){let g=s.findIndex(y=>y.route.id&&c?.[y.route.id]!==void 0);Qe(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let f=!1,h=-1;if(l&&o){f=o.renderFallback;for(let g=0;g<s.length;g++){let y=s[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=g),y.route.id){let{loaderData:x,errors:E}=o,A=y.route.loader&&!x.hasOwnProperty(y.route.id)&&(!E||E[y.route.id]===void 0);if(y.route.lazy||A){l.isStatic&&(f=!0),h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}}let p=l?.onError,m=o&&p?(g,y)=>{p(g,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:Jw(o.matches),errorInfo:y})}:void 0;return s.reduceRight((g,y,x)=>{let E,A=!1,b=null,w=null;o&&(E=c&&y.route.id?c[y.route.id]:void 0,b=y.route.errorElement||fE,f&&(h<0&&x===0?(s0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,w=null):h===x&&(A=!0,w=y.route.hydrateFallbackElement||null)));let C=a.concat(s.slice(0,x+1)),N=()=>{let M;return E?M=b:A?M=w:y.route.Component?M=S.createElement(y.route.Component,null):y.route.element?M=y.route.element:M=g,S.createElement(hE,{match:y,routeContext:{outlet:g,matches:C,isDataRoute:o!=null},children:M})};return o&&(y.route.ErrorBoundary||y.route.errorElement||x===0)?S.createElement(o0,{location:o.location,revalidation:o.revalidation,component:b,error:E,children:N(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:m}):N()},null)}function Dd(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pE(t){let a=S.useContext(ml);return Qe(a,Dd(t)),a}function gE(t){let a=S.useContext(Zs);return Qe(a,Dd(t)),a}function vE(t){let a=S.useContext(Jn);return Qe(a,Dd(t)),a}function jd(t){let a=vE(t),l=a.matches[a.matches.length-1];return Qe(l.route.id,`${t} can only be used on routes that contain a unique "id"`),l.route.id}function yE(){return jd("useRouteId")}function bE(){let t=S.useContext(zd),a=gE("useRouteError"),l=jd("useRouteError");return t!==void 0?t:a.errors?.[l]}function xE(){let{router:t}=pE("useNavigate"),a=jd("useNavigate"),l=S.useRef(!1);return l0(()=>{l.current=!0}),S.useCallback(async(s,c={})=>{Sn(l.current,i0),l.current&&(typeof s=="number"?await t.navigate(s):await t.navigate(s,{fromRouteId:a,...c}))},[t,a])}var Rv={};function s0(t,a,l){!a&&!Rv[t]&&(Rv[t]=!0,Sn(!1,l))}S.memo(SE);function SE({routes:t,future:a,state:l,isStatic:o,onError:s}){return r0(t,void 0,{state:l,isStatic:o,onError:s})}function yr(t){Qe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wE({basename:t="/",children:a=null,location:l,navigationType:o="POP",navigator:s,static:c=!1,unstable_useTransitions:f}){Qe(!jr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:h,navigator:s,static:c,unstable_useTransitions:f,future:{}}),[h,s,c,f]);typeof l=="string"&&(l=hl(l));let{pathname:m="/",search:g="",hash:y="",state:x=null,key:E="default",unstable_mask:A}=l,b=S.useMemo(()=>{let w=Zn(m,h);return w==null?null:{location:{pathname:w,search:g,hash:y,state:x,key:E,unstable_mask:A},navigationType:o}},[h,m,g,y,x,E,o,A]);return Sn(b!=null,`<Router basename="${h}"> is not able to match the URL "${m}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:S.createElement(en.Provider,{value:p},S.createElement(Dr.Provider,{children:a,value:b}))}function EE({children:t,location:a}){return uE(nd(t),a)}function nd(t,a=[]){let l=[];return S.Children.forEach(t,(o,s)=>{if(!S.isValidElement(o))return;let c=[...a,s];if(o.type===S.Fragment){l.push.apply(l,nd(o.props.children,c));return}Qe(o.type===yr,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!o.props.index||!o.props.children,"An index route cannot have child routes.");let f={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(f.children=nd(o.props.children,c)),l.push(f)}),l}var ws="get",Es="application/x-www-form-urlencoded";function Fs(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function _E(t){return Fs(t)&&t.tagName.toLowerCase()==="button"}function CE(t){return Fs(t)&&t.tagName.toLowerCase()==="form"}function TE(t){return Fs(t)&&t.tagName.toLowerCase()==="input"}function AE(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function RE(t,a){return t.button===0&&(!a||a==="_self")&&!AE(t)}var os=null;function OE(){if(os===null)try{new FormData(document.createElement("form"),0),os=!1}catch{os=!0}return os}var NE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Df(t){return t!=null&&!NE.has(t)?(Sn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Es}"`),null):t}function ME(t,a){let l,o,s,c,f;if(CE(t)){let h=t.getAttribute("action");o=h?Zn(h,a):null,l=t.getAttribute("method")||ws,s=Df(t.getAttribute("enctype"))||Es,c=new FormData(t)}else if(_E(t)||TE(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||h.getAttribute("action");if(o=p?Zn(p,a):null,l=t.getAttribute("formmethod")||h.getAttribute("method")||ws,s=Df(t.getAttribute("formenctype"))||Df(h.getAttribute("enctype"))||Es,c=new FormData(h,t),!OE()){let{name:m,type:g,value:y}=t;if(g==="image"){let x=m?`${m}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else m&&c.append(m,y)}}else{if(Fs(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=ws,o=null,s=Es,f=t}return c&&s==="text/plain"&&(f=c,c=void 0),{action:o,method:l.toLowerCase(),encType:s,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ld(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function zE(t,a,l,o){let s=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return l?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${o}`:s.pathname=`${s.pathname}.${o}`:s.pathname==="/"?s.pathname=`_root.${o}`:a&&Zn(s.pathname,a)==="/"?s.pathname=`${a.replace(/\/$/,"")}/_root.${o}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${o}`,s}async function DE(t,a){if(t.id in a)return a[t.id];try{let l=await import(t.module);return a[t.id]=l,l}catch(l){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function jE(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function LE(t,a,l){let o=await Promise.all(t.map(async s=>{let c=a.routes[s.route.id];if(c){let f=await DE(c,l);return f.links?f.links():[]}return[]}));return kE(o.flat(1).filter(jE).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ov(t,a,l,o,s,c){let f=(p,m)=>l[m]?p.route.id!==l[m].route.id:!0,h=(p,m)=>l[m].pathname!==p.pathname||l[m].route.path?.endsWith("*")&&l[m].params["*"]!==p.params["*"];return c==="assets"?a.filter((p,m)=>f(p,m)||h(p,m)):c==="data"?a.filter((p,m)=>{let g=o.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(f(p,m)||h(p,m))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:l[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function UE(t,a,{includeHydrateFallback:l}={}){return HE(t.map(o=>{let s=a.routes[o.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),l&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function HE(t){return[...new Set(t)]}function BE(t){let a={},l=Object.keys(t).sort();for(let o of l)a[o]=t[o];return a}function kE(t,a){let l=new Set;return new Set(a),t.reduce((o,s)=>{let c=JSON.stringify(BE(s));return l.has(c)||(l.add(c),o.push({key:c,link:s})),o},[])}function u0(){let t=S.useContext(ml);return Ld(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function qE(){let t=S.useContext(Zs);return Ld(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Ud=S.createContext(void 0);Ud.displayName="FrameworkContext";function c0(){let t=S.useContext(Ud);return Ld(t,"You must render this element inside a <HydratedRouter> element"),t}function GE(t,a){let l=S.useContext(Ud),[o,s]=S.useState(!1),[c,f]=S.useState(!1),{onFocus:h,onBlur:p,onMouseEnter:m,onMouseLeave:g,onTouchStart:y}=a,x=S.useRef(null);S.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let b=C=>{C.forEach(N=>{f(N.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return x.current&&w.observe(x.current),()=>{w.disconnect()}}},[t]),S.useEffect(()=>{if(o){let b=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(b)}}},[o]);let E=()=>{s(!0)},A=()=>{s(!1),f(!1)};return l?t!=="intent"?[c,x,{}]:[c,x,{onFocus:mr(h,E),onBlur:mr(p,A),onMouseEnter:mr(m,E),onMouseLeave:mr(g,A),onTouchStart:mr(y,E)}]:[!1,x,{}]}function mr(t,a){return l=>{t&&t(l),l.defaultPrevented||a(l)}}function VE({page:t,...a}){let{router:l}=u0(),o=S.useMemo(()=>Py(l.routes,t,l.basename),[l.routes,t,l.basename]);return o?S.createElement(QE,{page:t,matches:o,...a}):null}function YE(t){let{manifest:a,routeModules:l}=c0(),[o,s]=S.useState([]);return S.useEffect(()=>{let c=!1;return LE(t,a,l).then(f=>{c||s(f)}),()=>{c=!0}},[t,a,l]),o}function QE({page:t,matches:a,...l}){let o=ja(),{future:s,manifest:c,routeModules:f}=c0(),{basename:h}=u0(),{loaderData:p,matches:m}=qE(),g=S.useMemo(()=>Ov(t,a,m,c,o,"data"),[t,a,m,c,o]),y=S.useMemo(()=>Ov(t,a,m,c,o,"assets"),[t,a,m,c,o]),x=S.useMemo(()=>{if(t===o.pathname+o.search+o.hash)return[];let b=new Set,w=!1;if(a.forEach(N=>{let M=c.routes[N.route.id];!M||!M.hasLoader||(!g.some(T=>T.route.id===N.route.id)&&N.route.id in p&&f[N.route.id]?.shouldRevalidate||M.hasClientLoader?w=!0:b.add(N.route.id))}),b.size===0)return[];let C=zE(t,h,s.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&C.searchParams.set("_routes",a.filter(N=>b.has(N.route.id)).map(N=>N.route.id).join(",")),[C.pathname+C.search]},[h,s.unstable_trailingSlashAwareDataRequests,p,o,c,g,a,t,f]),E=S.useMemo(()=>UE(y,c),[y,c]),A=YE(y);return S.createElement(S.Fragment,null,x.map(b=>S.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...l})),E.map(b=>S.createElement("link",{key:b,rel:"modulepreload",href:b,...l})),A.map(({key:b,link:w})=>S.createElement("link",{key:b,nonce:l.nonce,...w,crossOrigin:w.crossOrigin??l.crossOrigin})))}function XE(...t){return a=>{t.forEach(l=>{typeof l=="function"?l(a):l!=null&&(l.current=a)})}}var KE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{KE&&(window.__reactRouterVersion="7.13.1")}catch{}function ZE({basename:t,children:a,unstable_useTransitions:l,window:o}){let s=S.useRef();s.current==null&&(s.current=Tw({window:o,v5Compat:!0}));let c=s.current,[f,h]=S.useState({action:c.action,location:c.location}),p=S.useCallback(m=>{l===!1?h(m):S.startTransition(()=>h(m))},[l]);return S.useLayoutEffect(()=>c.listen(p),[c,p]),S.createElement(wE,{basename:t,children:a,location:f.location,navigationType:f.action,navigator:c,unstable_useTransitions:l})}var f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d0=S.forwardRef(function({onClick:a,discover:l="render",prefetch:o="none",relative:s,reloadDocument:c,replace:f,unstable_mask:h,state:p,target:m,to:g,preventScrollReset:y,viewTransition:x,unstable_defaultShouldRevalidate:E,...A},b){let{basename:w,navigator:C,unstable_useTransitions:N}=S.useContext(en),M=typeof g=="string"&&f0.test(g),T=e0(g,w);g=T.to;let L=rE(g,{relative:s}),G=ja(),D=null;if(h){let W=Md(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);w!=="/"&&(W.pathname=W.pathname==="/"?w:yn([w,W.pathname])),D=C.createHref(W)}let[H,ee,F]=GE(o,A),te=$E(g,{replace:f,unstable_mask:h,state:p,target:m,preventScrollReset:y,relative:s,viewTransition:x,unstable_defaultShouldRevalidate:E,unstable_useTransitions:N});function re(W){a&&a(W),W.defaultPrevented||te(W)}let ce=!(T.isExternal||c),B=S.createElement("a",{...A,...F,href:(ce?D:void 0)||T.absoluteURL||L,onClick:ce?re:a,ref:XE(b,ee),target:m,"data-discover":!M&&l==="render"?"true":void 0});return H&&!M?S.createElement(S.Fragment,null,B,S.createElement(VE,{page:L})):B});d0.displayName="Link";var h0=S.forwardRef(function({"aria-current":a="page",caseSensitive:l=!1,className:o="",end:s=!1,style:c,to:f,viewTransition:h,children:p,...m},g){let y=Lr(f,{relative:m.relative}),x=ja(),E=S.useContext(Zs),{navigator:A,basename:b}=S.useContext(en),w=E!=null&&t_(y)&&h===!0,C=A.encodeLocation?A.encodeLocation(y).pathname:y.pathname,N=x.pathname,M=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;l||(N=N.toLowerCase(),M=M?M.toLowerCase():null,C=C.toLowerCase()),M&&b&&(M=Zn(M,b)||M);const T=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let L=N===C||!s&&N.startsWith(C)&&N.charAt(T)==="/",G=M!=null&&(M===C||!s&&M.startsWith(C)&&M.charAt(C.length)==="/"),D={isActive:L,isPending:G,isTransitioning:w},H=L?a:void 0,ee;typeof o=="function"?ee=o(D):ee=[o,L?"active":null,G?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let F=typeof c=="function"?c(D):c;return S.createElement(d0,{...m,"aria-current":H,className:ee,ref:g,style:F,to:f,viewTransition:h},typeof p=="function"?p(D):p)});h0.displayName="NavLink";var FE=S.forwardRef(({discover:t="render",fetcherKey:a,navigate:l,reloadDocument:o,replace:s,state:c,method:f=ws,action:h,onSubmit:p,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:x,...E},A)=>{let{unstable_useTransitions:b}=S.useContext(en),w=WE(),C=e_(h,{relative:m}),N=f.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&f0.test(h),T=L=>{if(p&&p(L),L.defaultPrevented)return;L.preventDefault();let G=L.nativeEvent.submitter,D=G?.getAttribute("formmethod")||f,H=()=>w(G||L.currentTarget,{fetcherKey:a,method:D,navigate:l,replace:s,state:c,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:x});b&&l!==!1?S.startTransition(()=>H()):H()};return S.createElement("form",{ref:A,method:N,action:C,onSubmit:o?p:T,...E,"data-discover":!M&&t==="render"?"true":void 0})});FE.displayName="Form";function PE(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m0(t){let a=S.useContext(ml);return Qe(a,PE(t)),a}function $E(t,{target:a,replace:l,unstable_mask:o,state:s,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let g=oE(),y=ja(),x=Lr(t,{relative:f});return S.useCallback(E=>{if(RE(E,a)){E.preventDefault();let A=l!==void 0?l:_r(y)===_r(x),b=()=>g(t,{replace:A,unstable_mask:o,state:s,preventScrollReset:c,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:p});m?S.startTransition(()=>b()):b()}},[y,g,x,l,o,s,a,t,c,f,h,p,m])}var JE=0,IE=()=>`__${String(++JE)}__`;function WE(){let{router:t}=m0("useSubmit"),{basename:a}=S.useContext(en),l=yE(),o=t.fetch,s=t.navigate;return S.useCallback(async(c,f={})=>{let{action:h,method:p,encType:m,formData:g,body:y}=ME(c,a);if(f.navigate===!1){let x=f.fetcherKey||IE();await o(x,l,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:y,formMethod:f.method||p,formEncType:f.encType||m,flushSync:f.flushSync})}else await s(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:y,formMethod:f.method||p,formEncType:f.encType||m,replace:f.replace,state:f.state,fromRouteId:l,flushSync:f.flushSync,viewTransition:f.viewTransition})},[o,s,a,l])}function e_(t,{relative:a}={}){let{basename:l}=S.useContext(en),o=S.useContext(Jn);Qe(o,"useFormAction must be used inside a RouteContext");let[s]=o.matches.slice(-1),c={...Lr(t||".",{relative:a})},f=ja();if(t==null){c.search=f.search;let h=new URLSearchParams(c.search),p=h.getAll("index");if(p.some(g=>g==="")){h.delete("index"),p.filter(y=>y).forEach(y=>h.append("index",y));let g=h.toString();c.search=g?`?${g}`:""}}return(!t||t===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(c.pathname=c.pathname==="/"?l:yn([l,c.pathname])),_r(c)}function t_(t,{relative:a}={}){let l=S.useContext(n0);Qe(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=m0("useViewTransitionState"),s=Lr(t,{relative:a});if(!l.isTransitioning)return!1;let c=Zn(l.currentLocation.pathname,o)||l.currentLocation.pathname,f=Zn(l.nextLocation.pathname,o)||l.nextLocation.pathname;return Ms(s.pathname,f)!=null||Ms(s.pathname,c)!=null}var Ur=Fy();const n_=Ky(Ur);var pl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},a_={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},i_=class{#e=a_;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,a){return this.#e.setTimeout(t,a)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,a){return this.#e.setInterval(t,a)}clearInterval(t){this.#e.clearInterval(t)}},ri=new i_;function l_(t){setTimeout(t,0)}var ci=typeof window>"u"||"Deno"in globalThis;function vt(){}function r_(t,a){return typeof t=="function"?t(a):t}function ad(t){return typeof t=="number"&&t>=0&&t!==1/0}function p0(t,a){return Math.max(t+(a||0)-Date.now(),0)}function Oa(t,a){return typeof t=="function"?t(a):t}function Wt(t,a){return typeof t=="function"?t(a):t}function Nv(t,a){const{type:l="all",exact:o,fetchStatus:s,predicate:c,queryKey:f,stale:h}=t;if(f){if(o){if(a.queryHash!==Hd(f,a.options))return!1}else if(!Cr(a.queryKey,f))return!1}if(l!=="all"){const p=a.isActive();if(l==="active"&&!p||l==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||s&&s!==a.state.fetchStatus||c&&!c(a))}function Mv(t,a){const{exact:l,status:o,predicate:s,mutationKey:c}=t;if(c){if(!a.options.mutationKey)return!1;if(l){if(fi(a.options.mutationKey)!==fi(c))return!1}else if(!Cr(a.options.mutationKey,c))return!1}return!(o&&a.state.status!==o||s&&!s(a))}function Hd(t,a){return(a?.queryKeyHashFn||fi)(t)}function fi(t){return JSON.stringify(t,(a,l)=>id(l)?Object.keys(l).sort().reduce((o,s)=>(o[s]=l[s],o),{}):l)}function Cr(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(l=>Cr(t[l],a[l])):!1}var o_=Object.prototype.hasOwnProperty;function g0(t,a,l=0){if(t===a)return t;if(l>500)return a;const o=zv(t)&&zv(a);if(!o&&!(id(t)&&id(a)))return a;const c=(o?t:Object.keys(t)).length,f=o?a:Object.keys(a),h=f.length,p=o?new Array(h):{};let m=0;for(let g=0;g<h;g++){const y=o?g:f[g],x=t[y],E=a[y];if(x===E){p[y]=x,(o?g<c:o_.call(t,y))&&m++;continue}if(x===null||E===null||typeof x!="object"||typeof E!="object"){p[y]=E;continue}const A=g0(x,E,l+1);p[y]=A,A===x&&m++}return c===h&&m===c?t:p}function zs(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const l in t)if(t[l]!==a[l])return!1;return!0}function zv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function id(t){if(!Dv(t))return!1;const a=t.constructor;if(a===void 0)return!0;const l=a.prototype;return!(!Dv(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Dv(t){return Object.prototype.toString.call(t)==="[object Object]"}function s_(t){return new Promise(a=>{ri.setTimeout(a,t)})}function ld(t,a,l){return typeof l.structuralSharing=="function"?l.structuralSharing(t,a):l.structuralSharing!==!1?g0(t,a):a}function u_(t,a,l=0){const o=[...t,a];return l&&o.length>l?o.slice(1):o}function c_(t,a,l=0){const o=[a,...t];return l&&o.length>l?o.slice(0,-1):o}var Bd=Symbol();function v0(t,a){return!t.queryFn&&a?.initialPromise?()=>a.initialPromise:!t.queryFn||t.queryFn===Bd?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function kd(t,a){return typeof t=="function"?t(...a):!!t}function f_(t,a,l){let o=!1,s;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=a(),o||(o=!0,s.aborted?l():s.addEventListener("abort",l,{once:!0})),s)}),t}var d_=class extends pl{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!ci&&window.addEventListener){const a=()=>t();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qd=new d_;function rd(){let t,a;const l=new Promise((s,c)=>{t=s,a=c});l.status="pending",l.catch(()=>{});function o(s){Object.assign(l,s),delete l.resolve,delete l.reject}return l.resolve=s=>{o({status:"fulfilled",value:s}),t(s)},l.reject=s=>{o({status:"rejected",reason:s}),a(s)},l}var h_=l_;function m_(){let t=[],a=0,l=h=>{h()},o=h=>{h()},s=h_;const c=h=>{a?t.push(h):s(()=>{l(h)})},f=()=>{const h=t;t=[],h.length&&s(()=>{o(()=>{h.forEach(p=>{l(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||f()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{l=h},setBatchNotifyFunction:h=>{o=h},setScheduler:h=>{s=h}}}var it=m_(),p_=class extends pl{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!ci&&window.addEventListener){const a=()=>t(!0),l=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(l=>{l(t)}))}isOnline(){return this.#e}},Ds=new p_;function g_(t){return Math.min(1e3*2**t,3e4)}function y0(t){return(t??"online")==="online"?Ds.isOnline():!0}var od=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function b0(t){let a=!1,l=0,o;const s=rd(),c=()=>s.status!=="pending",f=b=>{if(!c()){const w=new od(b);x(w),t.onCancel?.(w)}},h=()=>{a=!0},p=()=>{a=!1},m=()=>qd.isFocused()&&(t.networkMode==="always"||Ds.isOnline())&&t.canRun(),g=()=>y0(t.networkMode)&&t.canRun(),y=b=>{c()||(o?.(),s.resolve(b))},x=b=>{c()||(o?.(),s.reject(b))},E=()=>new Promise(b=>{o=w=>{(c()||m())&&b(w)},t.onPause?.()}).then(()=>{o=void 0,c()||t.onContinue?.()}),A=()=>{if(c())return;let b;const w=l===0?t.initialPromise:void 0;try{b=w??t.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(y).catch(C=>{if(c())return;const N=t.retry??(ci?0:3),M=t.retryDelay??g_,T=typeof M=="function"?M(l,C):M,L=N===!0||typeof N=="number"&&l<N||typeof N=="function"&&N(l,C);if(a||!L){x(C);return}l++,t.onFail?.(l,C),s_(T).then(()=>m()?void 0:E()).then(()=>{a?x(C):A()})})};return{promise:s,status:()=>s.status,cancel:f,continue:()=>(o?.(),s),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?A():E().then(A),s)}}var x0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ad(this.gcTime)&&(this.#e=ri.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ci?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ri.clearTimeout(this.#e),this.#e=void 0)}},v_=class extends x0{#e;#t;#n;#i;#a;#r;#o;constructor(t){super(),this.#o=!1,this.#r=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#n=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Lv(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#r,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Lv(this.options);a.data!==void 0&&(this.setState(jv(a.data,a.dataUpdatedAt)),this.#e=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,a){const l=ld(this.state.data,t,this.options);return this.#l({data:l,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),l}setState(t,a){this.#l({type:"setState",state:t,setStateOptions:a})}cancel(t){const a=this.#a?.promise;return this.#a?.cancel(t),a?a.then(vt).catch(vt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Wt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bd||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Oa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!p0(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const l=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,l.signal)})},s=()=>{const h=v0(this.options,a),m=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#o=!1,this.options.persister?this.options.persister(h,m,this):h(m)},f=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return o(h),h})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#l({type:"fetch",meta:f.fetchOptions?.meta}),this.#a=b0({initialPromise:a?.initialPromise,fn:f.fetchFn,onCancel:h=>{h instanceof od&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),l.abort()},onFail:(h,p)=>{this.#l({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof od){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#l({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#l(t){const a=l=>{switch(t.type){case"failed":return{...l,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...S0(l.data,this.options),fetchMeta:t.meta??null};case"success":const o={...l,...jv(t.data,t.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?o:void 0,o;case"error":const s=t.error;return{...l,error:s,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...t.state}}};this.state=a(this.state),it.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function S0(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:y0(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function jv(t,a){return{data:t,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Lv(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,l=a!==void 0,o=l?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:l?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var y_=class extends pl{constructor(t,a){super(),this.options=a,this.#e=t,this.#l=null,this.#o=rd(),this.bindMethods(),this.setOptions(a)}#e;#t=void 0;#n=void 0;#i=void 0;#a;#r;#o;#l;#p;#d;#h;#u;#c;#s;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Uv(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(t){const a=this.options,l=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),a._defaulted&&!zs(this.options,a)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&Hv(this.#t,l,this.options,a)&&this.#f(),this.updateResult(),o&&(this.#t!==l||Wt(this.options.enabled,this.#t)!==Wt(a.enabled,this.#t)||Oa(this.options.staleTime,this.#t)!==Oa(a.staleTime,this.#t))&&this.#g();const s=this.#v();o&&(this.#t!==l||Wt(this.options.enabled,this.#t)!==Wt(a.enabled,this.#t)||s!==this.#s)&&this.#y(s)}getOptimisticResult(t){const a=this.#e.getQueryCache().build(this.#e,t),l=this.createResult(a,t);return x_(this,l)&&(this.#i=l,this.#r=this.options,this.#a=this.#t.state),l}getCurrentResult(){return this.#i}trackResult(t,a){return new Proxy(t,{get:(l,o)=>(this.trackProp(o),a?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,o))})}trackProp(t){this.#m.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const a=this.#e.defaultQueryOptions(t),l=this.#e.getQueryCache().build(this.#e,a);return l.fetch().then(()=>this.createResult(l,a))}fetch(t){return this.#f({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(t){this.#w();let a=this.#t.fetch(this.options,t);return t?.throwOnError||(a=a.catch(vt)),a}#g(){this.#x();const t=Oa(this.options.staleTime,this.#t);if(ci||this.#i.isStale||!ad(t))return;const l=p0(this.#i.dataUpdatedAt,t)+1;this.#u=ri.setTimeout(()=>{this.#i.isStale||this.updateResult()},l)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#S(),this.#s=t,!(ci||Wt(this.options.enabled,this.#t)===!1||!ad(this.#s)||this.#s===0)&&(this.#c=ri.setInterval(()=>{(this.options.refetchIntervalInBackground||qd.isFocused())&&this.#f()},this.#s))}#b(){this.#g(),this.#y(this.#v())}#x(){this.#u&&(ri.clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(ri.clearInterval(this.#c),this.#c=void 0)}createResult(t,a){const l=this.#t,o=this.options,s=this.#i,c=this.#a,f=this.#r,p=t!==l?t.state:this.#n,{state:m}=t;let g={...m},y=!1,x;if(a._optimisticResults){const H=this.hasListeners(),ee=!H&&Uv(t,a),F=H&&Hv(t,l,a,o);(ee||F)&&(g={...g,...S0(m.data,t.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:E,errorUpdatedAt:A,status:b}=g;x=g.data;let w=!1;if(a.placeholderData!==void 0&&x===void 0&&b==="pending"){let H;s?.isPlaceholderData&&a.placeholderData===f?.placeholderData?(H=s.data,w=!0):H=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,H!==void 0&&(b="success",x=ld(s?.data,H,a),y=!0)}if(a.select&&x!==void 0&&!w)if(s&&x===c?.data&&a.select===this.#p)x=this.#d;else try{this.#p=a.select,x=a.select(x),x=ld(s?.data,x,a),this.#d=x,this.#l=null}catch(H){this.#l=H}this.#l&&(E=this.#l,x=this.#d,A=Date.now(),b="error");const C=g.fetchStatus==="fetching",N=b==="pending",M=b==="error",T=N&&C,L=x!==void 0,D={status:b,fetchStatus:g.fetchStatus,isPending:N,isSuccess:b==="success",isError:M,isInitialLoading:T,isLoading:T,data:x,dataUpdatedAt:g.dataUpdatedAt,error:E,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!N,isLoadingError:M&&!L,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:M&&L,isStale:Gd(t,a),refetch:this.refetch,promise:this.#o,isEnabled:Wt(a.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const H=D.data!==void 0,ee=D.status==="error"&&!H,F=ce=>{ee?ce.reject(D.error):H&&ce.resolve(D.data)},te=()=>{const ce=this.#o=D.promise=rd();F(ce)},re=this.#o;switch(re.status){case"pending":t.queryHash===l.queryHash&&F(re);break;case"fulfilled":(ee||D.data!==re.value)&&te();break;case"rejected":(!ee||D.error!==re.reason)&&te();break}}return D}updateResult(){const t=this.#i,a=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#r=this.options,this.#a.data!==void 0&&(this.#h=this.#t),zs(a,t))return;this.#i=a;const l=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.#m.size)return!0;const c=new Set(s??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#i).some(f=>{const h=f;return this.#i[h]!==t[h]&&c.has(h)})};this.#E({listeners:l()})}#w(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const a=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(a?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(t){it.batch(()=>{t.listeners&&this.listeners.forEach(a=>{a(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function b_(t,a){return Wt(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&a.retryOnMount===!1)}function Uv(t,a){return b_(t,a)||t.state.data!==void 0&&sd(t,a,a.refetchOnMount)}function sd(t,a,l){if(Wt(a.enabled,t)!==!1&&Oa(a.staleTime,t)!=="static"){const o=typeof l=="function"?l(t):l;return o==="always"||o!==!1&&Gd(t,a)}return!1}function Hv(t,a,l,o){return(t!==a||Wt(o.enabled,t)===!1)&&(!l.suspense||t.state.status!=="error")&&Gd(t,l)}function Gd(t,a){return Wt(a.enabled,t)!==!1&&t.isStaleByTime(Oa(a.staleTime,t))}function x_(t,a){return!zs(t.getCurrentResult(),a)}function Bv(t){return{onFetch:(a,l)=>{const o=a.options,s=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],f=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const y=A=>{f_(A,()=>a.signal,()=>g=!0)},x=v0(a.options,a.fetchOptions),E=async(A,b,w)=>{if(g)return Promise.reject();if(b==null&&A.pages.length)return Promise.resolve(A);const N=(()=>{const G={client:a.client,queryKey:a.queryKey,pageParam:b,direction:w?"backward":"forward",meta:a.options.meta};return y(G),G})(),M=await x(N),{maxPages:T}=a.options,L=w?c_:u_;return{pages:L(A.pages,M,T),pageParams:L(A.pageParams,b,T)}};if(s&&c.length){const A=s==="backward",b=A?S_:kv,w={pages:c,pageParams:f},C=b(o,w);h=await E(w,C,A)}else{const A=t??c.length;do{const b=p===0?f[0]??o.initialPageParam:kv(o,h);if(p>0&&b==null)break;h=await E(h,b),p++}while(p<A)}return h};a.options.persister?a.fetchFn=()=>a.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},l):a.fetchFn=m}}}function kv(t,{pages:a,pageParams:l}){const o=a.length-1;return a.length>0?t.getNextPageParam(a[o],a,l[o],l):void 0}function S_(t,{pages:a,pageParams:l}){return a.length>0?t.getPreviousPageParam?.(a[0],a,l[0],l):void 0}var w_=class extends x0{#e;#t;#n;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||w0(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(a=>a!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const a=()=>{this.#a({type:"continue"})},l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=b0({fn:()=>this.options.mutationFn?this.options.mutationFn(t,l):Promise.reject(new Error("No mutationFn found")),onFail:(c,f)=>{this.#a({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",s=!this.#i.canStart();try{if(o)a();else{this.#a({type:"pending",variables:t,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,l);const f=await this.options.onMutate?.(t,l);f!==this.state.context&&this.#a({type:"pending",context:f,variables:t,isPaused:s})}const c=await this.#i.start();return await this.#n.config.onSuccess?.(c,t,this.state.context,this,l),await this.options.onSuccess?.(c,t,this.state.context,l),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(c,null,t,this.state.context,l),this.#a({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,t,this.state.context,this,l)}catch(f){Promise.reject(f)}try{await this.options.onError?.(c,t,this.state.context,l)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,l)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,l)}catch(f){Promise.reject(f)}throw this.#a({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#a(t){const a=l=>{switch(t.type){case"failed":return{...l,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...l,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:t.error,failureCount:l.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),it.batch(()=>{this.#t.forEach(l=>{l.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function w0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var E_=class extends pl{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,a,l){const o=new w_({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(a),state:l});return this.add(o),o}add(t){this.#e.add(t);const a=ss(t);if(typeof a=="string"){const l=this.#t.get(a);l?l.push(t):this.#t.set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const a=ss(t);if(typeof a=="string"){const l=this.#t.get(a);if(l)if(l.length>1){const o=l.indexOf(t);o!==-1&&l.splice(o,1)}else l[0]===t&&this.#t.delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=ss(t);if(typeof a=="string"){const o=this.#t.get(a)?.find(s=>s.state.status==="pending");return!o||o===t}else return!0}runNext(t){const a=ss(t);return typeof a=="string"?this.#t.get(a)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){it.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const a={exact:!0,...t};return this.getAll().find(l=>Mv(a,l))}findAll(t={}){return this.getAll().filter(a=>Mv(t,a))}notify(t){it.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return it.batch(()=>Promise.all(t.map(a=>a.continue().catch(vt))))}};function ss(t){return t.options.scope?.id}var __=class extends pl{#e;#t=void 0;#n;#i;constructor(a,l){super(),this.#e=a,this.setOptions(l),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const l=this.options;this.options=this.#e.defaultMutationOptions(a),zs(this.options,l)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&fi(l.mutationKey)!==fi(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#a(),this.#r(a)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#r()}mutate(a,l){return this.#i=l,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(a)}#a(){const a=this.#n?.state??w0();this.#t={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#r(a){it.batch(()=>{if(this.#i&&this.hasListeners()){const l=this.#t.variables,o=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#i.onSuccess?.(a.data,l,o,s)}catch(c){Promise.reject(c)}try{this.#i.onSettled?.(a.data,null,l,o,s)}catch(c){Promise.reject(c)}}else if(a?.type==="error"){try{this.#i.onError?.(a.error,l,o,s)}catch(c){Promise.reject(c)}try{this.#i.onSettled?.(void 0,a.error,l,o,s)}catch(c){Promise.reject(c)}}}this.listeners.forEach(l=>{l(this.#t)})})}},C_=class extends pl{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,a,l){const o=a.queryKey,s=a.queryHash??Hd(o,a);let c=this.get(s);return c||(c=new v_({client:t,queryKey:o,queryHash:s,options:t.defaultQueryOptions(a),state:l,defaultOptions:t.getQueryDefaults(o)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=this.#e.get(t.queryHash);a&&(t.destroy(),a===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){it.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const a={exact:!0,...t};return this.getAll().find(l=>Nv(a,l))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(l=>Nv(t,l)):a}notify(t){it.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){it.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},T_=class{#e;#t;#n;#i;#a;#r;#o;#l;constructor(t={}){this.#e=t.queryCache||new C_,this.#t=t.mutationCache||new E_,this.#n=t.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=qd.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=Ds.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),l=this.#e.build(this,a),o=l.state.data;return o===void 0?this.fetchQuery(t):(t.revalidateIfStale&&l.isStaleByTime(Oa(a.staleTime,l))&&this.prefetchQuery(a),Promise.resolve(o))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:a,state:l})=>{const o=l.data;return[a,o]})}setQueryData(t,a,l){const o=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(o.queryHash)?.state.data,f=r_(a,c);if(f!==void 0)return this.#e.build(this,o).setData(f,{...l,manual:!0})}setQueriesData(t,a,l){return it.batch(()=>this.#e.findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,a,l)]))}getQueryState(t){const a=this.defaultQueryOptions({queryKey:t});return this.#e.get(a.queryHash)?.state}removeQueries(t){const a=this.#e;it.batch(()=>{a.findAll(t).forEach(l=>{a.remove(l)})})}resetQueries(t,a){const l=this.#e;return it.batch(()=>(l.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const l={revert:!0,...a},o=it.batch(()=>this.#e.findAll(t).map(s=>s.cancel(l)));return Promise.all(o).then(vt).catch(vt)}invalidateQueries(t,a={}){return it.batch(()=>(this.#e.findAll(t).forEach(l=>{l.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},a)))}refetchQueries(t,a={}){const l={...a,cancelRefetch:a.cancelRefetch??!0},o=it.batch(()=>this.#e.findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,l);return l.throwOnError||(c=c.catch(vt)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(o).then(vt)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const l=this.#e.build(this,a);return l.isStaleByTime(Oa(a.staleTime,l))?l.fetch(a):Promise.resolve(l.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(vt).catch(vt)}fetchInfiniteQuery(t){return t.behavior=Bv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(vt).catch(vt)}ensureInfiniteQueryData(t){return t.behavior=Bv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Ds.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,a){this.#i.set(fi(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...this.#i.values()],l={};return a.forEach(o=>{Cr(t,o.queryKey)&&Object.assign(l,o.defaultOptions)}),l}setMutationDefaults(t,a){this.#a.set(fi(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...this.#a.values()],l={};return a.forEach(o=>{Cr(t,o.mutationKey)&&Object.assign(l,o.defaultOptions)}),l}defaultQueryOptions(t){if(t._defaulted)return t;const a={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=Hd(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Bd&&(a.enabled=!1),a}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},E0=S.createContext(void 0),Ps=t=>{const a=S.useContext(E0);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},A_=({client:t,children:a})=>(S.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),R.jsx(E0.Provider,{value:t,children:a})),_0=S.createContext(!1),R_=()=>S.useContext(_0);_0.Provider;function O_(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var N_=S.createContext(O_()),M_=()=>S.useContext(N_),z_=(t,a,l)=>{const o=l?.state.error&&typeof t.throwOnError=="function"?kd(t.throwOnError,[l.state.error,l]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||o)&&(a.isReset()||(t.retryOnMount=!1))},D_=t=>{S.useEffect(()=>{t.clearReset()},[t])},j_=({result:t,errorResetBoundary:a,throwOnError:l,query:o,suspense:s})=>t.isError&&!a.isReset()&&!t.isFetching&&o&&(s&&t.data===void 0||kd(l,[t.error,o])),L_=t=>{if(t.suspense){const l=s=>s==="static"?s:Math.max(s??1e3,1e3),o=t.staleTime;t.staleTime=typeof o=="function"?(...s)=>l(o(...s)):l(o),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},U_=(t,a)=>t.isLoading&&t.isFetching&&!a,H_=(t,a)=>t?.suspense&&a.isPending,qv=(t,a,l)=>a.fetchOptimistic(t).catch(()=>{l.clearReset()});function B_(t,a,l){const o=R_(),s=M_(),c=Ps(),f=c.defaultQueryOptions(t);c.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const h=c.getQueryCache().get(f.queryHash);f._optimisticResults=o?"isRestoring":"optimistic",L_(f),z_(f,s,h),D_(s);const p=!c.getQueryCache().get(f.queryHash),[m]=S.useState(()=>new a(c,f)),g=m.getOptimisticResult(f),y=!o&&t.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(x=>{const E=y?m.subscribe(it.batchCalls(x)):vt;return m.updateResult(),E},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),S.useEffect(()=>{m.setOptions(f)},[f,m]),H_(f,g))throw qv(f,m,s);if(j_({result:g,errorResetBoundary:s,throwOnError:f.throwOnError,query:h,suspense:f.suspense}))throw g.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(f,g),f.experimental_prefetchInRender&&!ci&&U_(g,o)&&(p?qv(f,m,s):h?.promise)?.catch(vt).finally(()=>{m.updateResult()}),f.notifyOnChangeProps?g:m.trackResult(g)}function sl(t,a){return B_(t,y_)}function wr(t,a){const l=Ps(),[o]=S.useState(()=>new __(l,t));S.useEffect(()=>{o.setOptions(t)},[o,t]);const s=S.useSyncExternalStore(S.useCallback(f=>o.subscribe(it.batchCalls(f)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=S.useCallback((f,h)=>{o.mutate(f,h).catch(vt)},[o]);if(s.error&&kd(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var k_=(t,a,l,o,s,c,f,h)=>{let p=document.documentElement,m=["light","dark"];function g(E){(Array.isArray(t)?t:[t]).forEach(A=>{let b=A==="class",w=b&&c?s.map(C=>c[C]||C):s;b?(p.classList.remove(...w),p.classList.add(c&&c[E]?c[E]:E)):p.setAttribute(A,E)}),y(E)}function y(E){h&&m.includes(E)&&(p.style.colorScheme=E)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)g(o);else try{let E=localStorage.getItem(a)||l,A=f&&E==="system"?x():E;g(A)}catch{}},Gv=["light","dark"],C0="(prefers-color-scheme: dark)",q_=typeof window>"u",Vd=S.createContext(void 0),G_={setTheme:t=>{},themes:[]},T0=()=>{var t;return(t=S.useContext(Vd))!=null?t:G_},V_=t=>S.useContext(Vd)?S.createElement(S.Fragment,null,t.children):S.createElement(Q_,{...t}),Y_=["light","dark"],Q_=({forcedTheme:t,disableTransitionOnChange:a=!1,enableSystem:l=!0,enableColorScheme:o=!0,storageKey:s="theme",themes:c=Y_,defaultTheme:f=l?"system":"light",attribute:h="data-theme",value:p,children:m,nonce:g,scriptProps:y})=>{let[x,E]=S.useState(()=>K_(s,f)),[A,b]=S.useState(()=>x==="system"?jf():x),w=p?Object.values(p):c,C=S.useCallback(L=>{let G=L;if(!G)return;L==="system"&&l&&(G=jf());let D=p?p[G]:G,H=a?Z_(g):null,ee=document.documentElement,F=te=>{te==="class"?(ee.classList.remove(...w),D&&ee.classList.add(D)):te.startsWith("data-")&&(D?ee.setAttribute(te,D):ee.removeAttribute(te))};if(Array.isArray(h)?h.forEach(F):F(h),o){let te=Gv.includes(f)?f:null,re=Gv.includes(G)?G:te;ee.style.colorScheme=re}H?.()},[g]),N=S.useCallback(L=>{let G=typeof L=="function"?L(x):L;E(G);try{localStorage.setItem(s,G)}catch{}},[x]),M=S.useCallback(L=>{let G=jf(L);b(G),x==="system"&&l&&!t&&C("system")},[x,t]);S.useEffect(()=>{let L=window.matchMedia(C0);return L.addListener(M),M(L),()=>L.removeListener(M)},[M]),S.useEffect(()=>{let L=G=>{G.key===s&&(G.newValue?E(G.newValue):N(f))};return window.addEventListener("storage",L),()=>window.removeEventListener("storage",L)},[N]),S.useEffect(()=>{C(t??x)},[t,x]);let T=S.useMemo(()=>({theme:x,setTheme:N,forcedTheme:t,resolvedTheme:x==="system"?A:x,themes:l?[...c,"system"]:c,systemTheme:l?A:void 0}),[x,N,t,A,l,c]);return S.createElement(Vd.Provider,{value:T},S.createElement(X_,{forcedTheme:t,storageKey:s,attribute:h,enableSystem:l,enableColorScheme:o,defaultTheme:f,value:p,themes:c,nonce:g,scriptProps:y}),m)},X_=S.memo(({forcedTheme:t,storageKey:a,attribute:l,enableSystem:o,enableColorScheme:s,defaultTheme:c,value:f,themes:h,nonce:p,scriptProps:m})=>{let g=JSON.stringify([l,a,c,t,h,f,o,s]).slice(1,-1);return S.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${k_.toString()})(${g})`}})}),K_=(t,a)=>{if(q_)return;let l;try{l=localStorage.getItem(t)||void 0}catch{}return l||a},Z_=t=>{let a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(a),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(a)},1)}},jf=t=>(t||(t=window.matchMedia(C0)),t.matches?"dark":"light");function Vv(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function A0(...t){return a=>{let l=!1;const o=t.map(s=>{const c=Vv(s,a);return!l&&typeof c=="function"&&(l=!0),c});if(l)return()=>{for(let s=0;s<o.length;s++){const c=o[s];typeof c=="function"?c():Vv(t[s],null)}}}}function st(...t){return S.useCallback(A0(...t),t)}function Tr(t){const a=F_(t),l=S.forwardRef((o,s)=>{const{children:c,...f}=o,h=S.Children.toArray(c),p=h.find($_);if(p){const m=p.props.children,g=h.map(y=>y===p?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:y);return R.jsx(a,{...f,ref:s,children:S.isValidElement(m)?S.cloneElement(m,void 0,g):null})}return R.jsx(a,{...f,ref:s,children:c})});return l.displayName=`${t}.Slot`,l}var R0=Tr("Slot");function F_(t){const a=S.forwardRef((l,o)=>{const{children:s,...c}=l;if(S.isValidElement(s)){const f=I_(s),h=J_(c,s.props);return s.type!==S.Fragment&&(h.ref=o?A0(o,f):f),S.cloneElement(s,h)}return S.Children.count(s)>1?S.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var P_=Symbol("radix.slottable");function $_(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===P_}function J_(t,a){const l={...a};for(const o in a){const s=t[o],c=a[o];/^on[A-Z]/.test(o)?s&&c?l[o]=(...h)=>{const p=c(...h);return s(...h),p}:s&&(l[o]=s):o==="style"?l[o]={...s,...c}:o==="className"&&(l[o]=[s,c].filter(Boolean).join(" "))}return{...t,...l}}function I_(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?t.props.ref:t.props.ref||t.ref)}var W_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qe=W_.reduce((t,a)=>{const l=Tr(`Primitive.${a}`),o=S.forwardRef((s,c)=>{const{asChild:f,...h}=s,p=f?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(p,{...h,ref:c})});return o.displayName=`Primitive.${a}`,{...t,[a]:o}},{});function eC(t,a){t&&Ur.flushSync(()=>t.dispatchEvent(a))}var O0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tC="VisuallyHidden",nC=S.forwardRef((t,a)=>R.jsx(qe.span,{...t,ref:a,style:{...O0,...t.style}}));nC.displayName=tC;function Hr(t,a=[]){let l=[];function o(c,f){const h=S.createContext(f),p=l.length;l=[...l,f];const m=y=>{const{scope:x,children:E,...A}=y,b=x?.[t]?.[p]||h,w=S.useMemo(()=>A,Object.values(A));return R.jsx(b.Provider,{value:w,children:E})};m.displayName=c+"Provider";function g(y,x){const E=x?.[t]?.[p]||h,A=S.useContext(E);if(A)return A;if(f!==void 0)return f;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[m,g]}const s=()=>{const c=l.map(f=>S.createContext(f));return function(h){const p=h?.[t]||c;return S.useMemo(()=>({[`__scope${t}`]:{...h,[t]:p}}),[h,p])}};return s.scopeName=t,[o,aC(s,...a)]}function aC(...t){const a=t[0];if(t.length===1)return a;const l=()=>{const o=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=o.reduce((h,{useScope:p,scopeName:m})=>{const y=p(c)[`__scope${m}`];return{...h,...y}},{});return S.useMemo(()=>({[`__scope${a.scopeName}`]:f}),[f])}};return l.scopeName=a.scopeName,l}function N0(t){const a=t+"CollectionProvider",[l,o]=Hr(a),[s,c]=l(a,{collectionRef:{current:null},itemMap:new Map}),f=b=>{const{scope:w,children:C}=b,N=at.useRef(null),M=at.useRef(new Map).current;return R.jsx(s,{scope:w,itemMap:M,collectionRef:N,children:C})};f.displayName=a;const h=t+"CollectionSlot",p=Tr(h),m=at.forwardRef((b,w)=>{const{scope:C,children:N}=b,M=c(h,C),T=st(w,M.collectionRef);return R.jsx(p,{ref:T,children:N})});m.displayName=h;const g=t+"CollectionItemSlot",y="data-radix-collection-item",x=Tr(g),E=at.forwardRef((b,w)=>{const{scope:C,children:N,...M}=b,T=at.useRef(null),L=st(w,T),G=c(g,C);return at.useEffect(()=>(G.itemMap.set(T,{ref:T,...M}),()=>{G.itemMap.delete(T)})),R.jsx(x,{[y]:"",ref:L,children:N})});E.displayName=g;function A(b){const w=c(t+"CollectionConsumer",b);return at.useCallback(()=>{const N=w.collectionRef.current;if(!N)return[];const M=Array.from(N.querySelectorAll(`[${y}]`));return Array.from(w.itemMap.values()).sort((G,D)=>M.indexOf(G.ref.current)-M.indexOf(D.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:f,Slot:m,ItemSlot:E},A,o]}function ke(t,a,{checkForDefaultPrevented:l=!0}={}){return function(s){if(t?.(s),l===!1||!s.defaultPrevented)return a?.(s)}}var Rt=globalThis?.document?S.useLayoutEffect:()=>{},iC=Zy[" useInsertionEffect ".trim().toString()]||Rt;function ul({prop:t,defaultProp:a,onChange:l=()=>{},caller:o}){const[s,c,f]=lC({defaultProp:a,onChange:l}),h=t!==void 0,p=h?t:s;{const g=S.useRef(t!==void 0);S.useEffect(()=>{const y=g.current;y!==h&&console.warn(`${o} is changing from ${y?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=h},[h,o])}const m=S.useCallback(g=>{if(h){const y=rC(g)?g(t):g;y!==t&&f.current?.(y)}else c(g)},[h,t,c,f]);return[p,m]}function lC({defaultProp:t,onChange:a}){const[l,o]=S.useState(t),s=S.useRef(l),c=S.useRef(a);return iC(()=>{c.current=a},[a]),S.useEffect(()=>{s.current!==l&&(c.current?.(l),s.current=l)},[l,s]),[l,o,c]}function rC(t){return typeof t=="function"}var oC=Zy[" useId ".trim().toString()]||(()=>{}),sC=0;function $s(t){const[a,l]=S.useState(oC());return Rt(()=>{l(o=>o??String(sC++))},[t]),t||(a?`radix-${a}`:"")}var uC=S.createContext(void 0);function Yd(t){const a=S.useContext(uC);return t||a||"ltr"}function Ma(t){const a=S.useRef(t);return S.useEffect(()=>{a.current=t}),S.useMemo(()=>(...l)=>a.current?.(...l),[])}function cC(t,a=globalThis?.document){const l=Ma(t);S.useEffect(()=>{const o=s=>{s.key==="Escape"&&l(s)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[l,a])}var fC="DismissableLayer",ud="dismissableLayer.update",dC="dismissableLayer.pointerDownOutside",hC="dismissableLayer.focusOutside",Yv,M0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z0=S.forwardRef((t,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:h,...p}=t,m=S.useContext(M0),[g,y]=S.useState(null),x=g?.ownerDocument??globalThis?.document,[,E]=S.useState({}),A=st(a,D=>y(D)),b=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),C=b.indexOf(w),N=g?b.indexOf(g):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,T=N>=C,L=gC(D=>{const H=D.target,ee=[...m.branches].some(F=>F.contains(H));!T||ee||(s?.(D),f?.(D),D.defaultPrevented||h?.())},x),G=vC(D=>{const H=D.target;[...m.branches].some(F=>F.contains(H))||(c?.(D),f?.(D),D.defaultPrevented||h?.())},x);return cC(D=>{N===m.layers.size-1&&(o?.(D),!D.defaultPrevented&&h&&(D.preventDefault(),h()))},x),S.useEffect(()=>{if(g)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Yv=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Qv(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Yv)}},[g,x,l,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Qv())},[g,m]),S.useEffect(()=>{const D=()=>E({});return document.addEventListener(ud,D),()=>document.removeEventListener(ud,D)},[]),R.jsx(qe.div,{...p,ref:A,style:{pointerEvents:M?T?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,G.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,G.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,L.onPointerDownCapture)})});z0.displayName=fC;var mC="DismissableLayerBranch",pC=S.forwardRef((t,a)=>{const l=S.useContext(M0),o=S.useRef(null),s=st(a,o);return S.useEffect(()=>{const c=o.current;if(c)return l.branches.add(c),()=>{l.branches.delete(c)}},[l.branches]),R.jsx(qe.div,{...t,ref:s})});pC.displayName=mC;function gC(t,a=globalThis?.document){const l=Ma(t),o=S.useRef(!1),s=S.useRef(()=>{});return S.useEffect(()=>{const c=h=>{if(h.target&&!o.current){let p=function(){D0(dC,l,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);o.current=!1},f=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(f),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,l]),{onPointerDownCapture:()=>o.current=!0}}function vC(t,a=globalThis?.document){const l=Ma(t),o=S.useRef(!1);return S.useEffect(()=>{const s=c=>{c.target&&!o.current&&D0(hC,l,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,l]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Qv(){const t=new CustomEvent(ud);document.dispatchEvent(t)}function D0(t,a,l,{discrete:o}){const s=l.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:l});a&&s.addEventListener(t,a,{once:!0}),o?eC(s,c):s.dispatchEvent(c)}var Lf="focusScope.autoFocusOnMount",Uf="focusScope.autoFocusOnUnmount",Xv={bubbles:!1,cancelable:!0},yC="FocusScope",j0=S.forwardRef((t,a)=>{const{loop:l=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=t,[h,p]=S.useState(null),m=Ma(s),g=Ma(c),y=S.useRef(null),x=st(a,b=>p(b)),E=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(o){let b=function(M){if(E.paused||!h)return;const T=M.target;h.contains(T)?y.current=T:Ca(y.current,{select:!0})},w=function(M){if(E.paused||!h)return;const T=M.relatedTarget;T!==null&&(h.contains(T)||Ca(y.current,{select:!0}))},C=function(M){if(document.activeElement===document.body)for(const L of M)L.removedNodes.length>0&&Ca(h)};document.addEventListener("focusin",b),document.addEventListener("focusout",w);const N=new MutationObserver(C);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",w),N.disconnect()}}},[o,h,E.paused]),S.useEffect(()=>{if(h){Zv.add(E);const b=document.activeElement;if(!h.contains(b)){const C=new CustomEvent(Lf,Xv);h.addEventListener(Lf,m),h.dispatchEvent(C),C.defaultPrevented||(bC(_C(L0(h)),{select:!0}),document.activeElement===b&&Ca(h))}return()=>{h.removeEventListener(Lf,m),setTimeout(()=>{const C=new CustomEvent(Uf,Xv);h.addEventListener(Uf,g),h.dispatchEvent(C),C.defaultPrevented||Ca(b??document.body,{select:!0}),h.removeEventListener(Uf,g),Zv.remove(E)},0)}}},[h,m,g,E]);const A=S.useCallback(b=>{if(!l&&!o||E.paused)return;const w=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,C=document.activeElement;if(w&&C){const N=b.currentTarget,[M,T]=xC(N);M&&T?!b.shiftKey&&C===T?(b.preventDefault(),l&&Ca(M,{select:!0})):b.shiftKey&&C===M&&(b.preventDefault(),l&&Ca(T,{select:!0})):C===N&&b.preventDefault()}},[l,o,E.paused]);return R.jsx(qe.div,{tabIndex:-1,...f,ref:x,onKeyDown:A})});j0.displayName=yC;function bC(t,{select:a=!1}={}){const l=document.activeElement;for(const o of t)if(Ca(o,{select:a}),document.activeElement!==l)return}function xC(t){const a=L0(t),l=Kv(a,t),o=Kv(a.reverse(),t);return[l,o]}function L0(t){const a=[],l=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)a.push(l.currentNode);return a}function Kv(t,a){for(const l of t)if(!SC(l,{upTo:a}))return l}function SC(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function wC(t){return t instanceof HTMLInputElement&&"select"in t}function Ca(t,{select:a=!1}={}){if(t&&t.focus){const l=document.activeElement;t.focus({preventScroll:!0}),t!==l&&wC(t)&&a&&t.select()}}var Zv=EC();function EC(){let t=[];return{add(a){const l=t[0];a!==l&&l?.pause(),t=Fv(t,a),t.unshift(a)},remove(a){t=Fv(t,a),t[0]?.resume()}}}function Fv(t,a){const l=[...t],o=l.indexOf(a);return o!==-1&&l.splice(o,1),l}function _C(t){return t.filter(a=>a.tagName!=="A")}var CC="Portal",U0=S.forwardRef((t,a)=>{const{container:l,...o}=t,[s,c]=S.useState(!1);Rt(()=>c(!0),[]);const f=l||s&&globalThis?.document?.body;return f?n_.createPortal(R.jsx(qe.div,{...o,ref:a}),f):null});U0.displayName=CC;var Hf=0;function TC(){S.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Pv()),document.body.insertAdjacentElement("beforeend",t[1]??Pv()),Hf++,()=>{Hf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Hf--}},[])}function Pv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var pn=function(){return pn=Object.assign||function(a){for(var l,o=1,s=arguments.length;o<s;o++){l=arguments[o];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(a[c]=l[c])}return a},pn.apply(this,arguments)};function H0(t,a){var l={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&a.indexOf(o)<0&&(l[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(t);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(t,o[s])&&(l[o[s]]=t[o[s]]);return l}function AC(t,a,l){if(l||arguments.length===2)for(var o=0,s=a.length,c;o<s;o++)(c||!(o in a))&&(c||(c=Array.prototype.slice.call(a,0,o)),c[o]=a[o]);return t.concat(c||Array.prototype.slice.call(a))}var _s="right-scroll-bar-position",Cs="width-before-scroll-bar",RC="with-scroll-bars-hidden",OC="--removed-body-scroll-bar-size";function Bf(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function NC(t,a){var l=S.useState(function(){return{value:t,callback:a,facade:{get current(){return l.value},set current(o){var s=l.value;s!==o&&(l.value=o,l.callback(o,s))}}}})[0];return l.callback=a,l.facade}var MC=typeof window<"u"?S.useLayoutEffect:S.useEffect,$v=new WeakMap;function zC(t,a){var l=NC(null,function(o){return t.forEach(function(s){return Bf(s,o)})});return MC(function(){var o=$v.get(l);if(o){var s=new Set(o),c=new Set(t),f=l.current;s.forEach(function(h){c.has(h)||Bf(h,null)}),c.forEach(function(h){s.has(h)||Bf(h,f)})}$v.set(l,t)},[t]),l}function DC(t){return t}function jC(t,a){a===void 0&&(a=DC);var l=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:t},useMedium:function(c){var f=a(c,o);return l.push(f),function(){l=l.filter(function(h){return h!==f})}},assignSyncMedium:function(c){for(o=!0;l.length;){var f=l;l=[],f.forEach(c)}l={push:function(h){return c(h)},filter:function(){return l}}},assignMedium:function(c){o=!0;var f=[];if(l.length){var h=l;l=[],h.forEach(c),f=l}var p=function(){var g=f;f=[],g.forEach(c)},m=function(){return Promise.resolve().then(p)};m(),l={push:function(g){f.push(g),m()},filter:function(g){return f=f.filter(g),l}}}};return s}function LC(t){t===void 0&&(t={});var a=jC(null);return a.options=pn({async:!0,ssr:!1},t),a}var B0=function(t){var a=t.sideCar,l=H0(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=a.read();if(!o)throw new Error("Sidecar medium not found");return S.createElement(o,pn({},l))};B0.isSideCarExport=!0;function UC(t,a){return t.useMedium(a),B0}var k0=LC(),kf=function(){},Js=S.forwardRef(function(t,a){var l=S.useRef(null),o=S.useState({onScrollCapture:kf,onWheelCapture:kf,onTouchMoveCapture:kf}),s=o[0],c=o[1],f=t.forwardProps,h=t.children,p=t.className,m=t.removeScrollBar,g=t.enabled,y=t.shards,x=t.sideCar,E=t.noRelative,A=t.noIsolation,b=t.inert,w=t.allowPinchZoom,C=t.as,N=C===void 0?"div":C,M=t.gapMode,T=H0(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=x,G=zC([l,a]),D=pn(pn({},T),s);return S.createElement(S.Fragment,null,g&&S.createElement(L,{sideCar:k0,removeScrollBar:m,shards:y,noRelative:E,noIsolation:A,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:l,gapMode:M}),f?S.cloneElement(S.Children.only(h),pn(pn({},D),{ref:G})):S.createElement(N,pn({},D,{className:p,ref:G}),h))});Js.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Js.classNames={fullWidth:Cs,zeroRight:_s};var HC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function BC(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=HC();return a&&t.setAttribute("nonce",a),t}function kC(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function qC(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var GC=function(){var t=0,a=null;return{add:function(l){t==0&&(a=BC())&&(kC(a,l),qC(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},VC=function(){var t=GC();return function(a,l){S.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&l])}},q0=function(){var t=VC(),a=function(l){var o=l.styles,s=l.dynamic;return t(o,s),null};return a},YC={left:0,top:0,right:0,gap:0},qf=function(t){return parseInt(t||"",10)||0},QC=function(t){var a=window.getComputedStyle(document.body),l=a[t==="padding"?"paddingLeft":"marginLeft"],o=a[t==="padding"?"paddingTop":"marginTop"],s=a[t==="padding"?"paddingRight":"marginRight"];return[qf(l),qf(o),qf(s)]},XC=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return YC;var a=QC(t),l=document.documentElement.clientWidth,o=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,o-l+a[2]-a[0])}},KC=q0(),il="data-scroll-locked",ZC=function(t,a,l,o){var s=t.left,c=t.top,f=t.right,h=t.gap;return l===void 0&&(l="margin"),`
|
|
12
|
+
.`.concat(RC,` {
|
|
13
|
+
overflow: hidden `).concat(o,`;
|
|
14
|
+
padding-right: `).concat(h,"px ").concat(o,`;
|
|
15
|
+
}
|
|
16
|
+
body[`).concat(il,`] {
|
|
17
|
+
overflow: hidden `).concat(o,`;
|
|
18
|
+
overscroll-behavior: contain;
|
|
19
|
+
`).concat([a&&"position: relative ".concat(o,";"),l==="margin"&&`
|
|
20
|
+
padding-left: `.concat(s,`px;
|
|
21
|
+
padding-top: `).concat(c,`px;
|
|
22
|
+
padding-right: `).concat(f,`px;
|
|
23
|
+
margin-left:0;
|
|
24
|
+
margin-top:0;
|
|
25
|
+
margin-right: `).concat(h,"px ").concat(o,`;
|
|
26
|
+
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.`).concat(_s,` {
|
|
30
|
+
right: `).concat(h,"px ").concat(o,`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.`).concat(Cs,` {
|
|
34
|
+
margin-right: `).concat(h,"px ").concat(o,`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.`).concat(_s," .").concat(_s,` {
|
|
38
|
+
right: 0 `).concat(o,`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.`).concat(Cs," .").concat(Cs,` {
|
|
42
|
+
margin-right: 0 `).concat(o,`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body[`).concat(il,`] {
|
|
46
|
+
`).concat(OC,": ").concat(h,`px;
|
|
47
|
+
}
|
|
48
|
+
`)},Jv=function(){var t=parseInt(document.body.getAttribute(il)||"0",10);return isFinite(t)?t:0},FC=function(){S.useEffect(function(){return document.body.setAttribute(il,(Jv()+1).toString()),function(){var t=Jv()-1;t<=0?document.body.removeAttribute(il):document.body.setAttribute(il,t.toString())}},[])},PC=function(t){var a=t.noRelative,l=t.noImportant,o=t.gapMode,s=o===void 0?"margin":o;FC();var c=S.useMemo(function(){return XC(s)},[s]);return S.createElement(KC,{styles:ZC(c,!a,s,l?"":"!important")})},cd=!1;if(typeof window<"u")try{var us=Object.defineProperty({},"passive",{get:function(){return cd=!0,!0}});window.addEventListener("test",us,us),window.removeEventListener("test",us,us)}catch{cd=!1}var tl=cd?{passive:!1}:!1,$C=function(t){return t.tagName==="TEXTAREA"},G0=function(t,a){if(!(t instanceof Element))return!1;var l=window.getComputedStyle(t);return l[a]!=="hidden"&&!(l.overflowY===l.overflowX&&!$C(t)&&l[a]==="visible")},JC=function(t){return G0(t,"overflowY")},IC=function(t){return G0(t,"overflowX")},Iv=function(t,a){var l=a.ownerDocument,o=a;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=V0(t,o);if(s){var c=Y0(t,o),f=c[1],h=c[2];if(f>h)return!0}o=o.parentNode}while(o&&o!==l.body);return!1},WC=function(t){var a=t.scrollTop,l=t.scrollHeight,o=t.clientHeight;return[a,l,o]},e2=function(t){var a=t.scrollLeft,l=t.scrollWidth,o=t.clientWidth;return[a,l,o]},V0=function(t,a){return t==="v"?JC(a):IC(a)},Y0=function(t,a){return t==="v"?WC(a):e2(a)},t2=function(t,a){return t==="h"&&a==="rtl"?-1:1},n2=function(t,a,l,o,s){var c=t2(t,window.getComputedStyle(a).direction),f=c*o,h=l.target,p=a.contains(h),m=!1,g=f>0,y=0,x=0;do{if(!h)break;var E=Y0(t,h),A=E[0],b=E[1],w=E[2],C=b-w-c*A;(A||C)&&V0(t,h)&&(y+=C,x+=A);var N=h.parentNode;h=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(g&&Math.abs(y)<1||!g&&Math.abs(x)<1)&&(m=!0),m},cs=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Wv=function(t){return[t.deltaX,t.deltaY]},ey=function(t){return t&&"current"in t?t.current:t},a2=function(t,a){return t[0]===a[0]&&t[1]===a[1]},i2=function(t){return`
|
|
49
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
50
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
51
|
+
`)},l2=0,nl=[];function r2(t){var a=S.useRef([]),l=S.useRef([0,0]),o=S.useRef(),s=S.useState(l2++)[0],c=S.useState(q0)[0],f=S.useRef(t);S.useEffect(function(){f.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var b=AC([t.lockRef.current],(t.shards||[]).map(ey),!0).filter(Boolean);return b.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),b.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var h=S.useCallback(function(b,w){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!f.current.allowPinchZoom;var C=cs(b),N=l.current,M="deltaX"in b?b.deltaX:N[0]-C[0],T="deltaY"in b?b.deltaY:N[1]-C[1],L,G=b.target,D=Math.abs(M)>Math.abs(T)?"h":"v";if("touches"in b&&D==="h"&&G.type==="range")return!1;var H=window.getSelection(),ee=H&&H.anchorNode,F=ee?ee===G||ee.contains(G):!1;if(F)return!1;var te=Iv(D,G);if(!te)return!0;if(te?L=D:(L=D==="v"?"h":"v",te=Iv(D,G)),!te)return!1;if(!o.current&&"changedTouches"in b&&(M||T)&&(o.current=L),!L)return!0;var re=o.current||L;return n2(re,w,b,re==="h"?M:T)},[]),p=S.useCallback(function(b){var w=b;if(!(!nl.length||nl[nl.length-1]!==c)){var C="deltaY"in w?Wv(w):cs(w),N=a.current.filter(function(L){return L.name===w.type&&(L.target===w.target||w.target===L.shadowParent)&&a2(L.delta,C)})[0];if(N&&N.should){w.cancelable&&w.preventDefault();return}if(!N){var M=(f.current.shards||[]).map(ey).filter(Boolean).filter(function(L){return L.contains(w.target)}),T=M.length>0?h(w,M[0]):!f.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),m=S.useCallback(function(b,w,C,N){var M={name:b,delta:w,target:C,should:N,shadowParent:o2(C)};a.current.push(M),setTimeout(function(){a.current=a.current.filter(function(T){return T!==M})},1)},[]),g=S.useCallback(function(b){l.current=cs(b),o.current=void 0},[]),y=S.useCallback(function(b){m(b.type,Wv(b),b.target,h(b,t.lockRef.current))},[]),x=S.useCallback(function(b){m(b.type,cs(b),b.target,h(b,t.lockRef.current))},[]);S.useEffect(function(){return nl.push(c),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",p,tl),document.addEventListener("touchmove",p,tl),document.addEventListener("touchstart",g,tl),function(){nl=nl.filter(function(b){return b!==c}),document.removeEventListener("wheel",p,tl),document.removeEventListener("touchmove",p,tl),document.removeEventListener("touchstart",g,tl)}},[]);var E=t.removeScrollBar,A=t.inert;return S.createElement(S.Fragment,null,A?S.createElement(c,{styles:i2(s)}):null,E?S.createElement(PC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function o2(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const s2=UC(k0,r2);var Q0=S.forwardRef(function(t,a){return S.createElement(Js,pn({},t,{ref:a,sideCar:s2}))});Q0.classNames=Js.classNames;var u2=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},al=new WeakMap,fs=new WeakMap,ds={},Gf=0,X0=function(t){return t&&(t.host||X0(t.parentNode))},c2=function(t,a){return a.map(function(l){if(t.contains(l))return l;var o=X0(l);return o&&t.contains(o)?o:(console.error("aria-hidden",l,"in not contained inside",t,". Doing nothing"),null)}).filter(function(l){return!!l})},f2=function(t,a,l,o){var s=c2(a,Array.isArray(t)?t:[t]);ds[l]||(ds[l]=new WeakMap);var c=ds[l],f=[],h=new Set,p=new Set(s),m=function(y){!y||h.has(y)||(h.add(y),m(y.parentNode))};s.forEach(m);var g=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(x){if(h.has(x))g(x);else try{var E=x.getAttribute(o),A=E!==null&&E!=="false",b=(al.get(x)||0)+1,w=(c.get(x)||0)+1;al.set(x,b),c.set(x,w),f.push(x),b===1&&A&&fs.set(x,!0),w===1&&x.setAttribute(l,"true"),A||x.setAttribute(o,"true")}catch(C){console.error("aria-hidden: cannot operate on ",x,C)}})};return g(a),h.clear(),Gf++,function(){f.forEach(function(y){var x=al.get(y)-1,E=c.get(y)-1;al.set(y,x),c.set(y,E),x||(fs.has(y)||y.removeAttribute(o),fs.delete(y)),E||y.removeAttribute(l)}),Gf--,Gf||(al=new WeakMap,al=new WeakMap,fs=new WeakMap,ds={})}},d2=function(t,a,l){l===void 0&&(l="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),s=u2(t);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),f2(o,s,l,"aria-hidden")):function(){return null}};function h2(t){const a=S.useRef({value:t,previous:t});return S.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}function m2(t){const[a,l]=S.useState(void 0);return Rt(()=>{if(t){l({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let f,h;if("borderBoxSize"in c){const p=c.borderBoxSize,m=Array.isArray(p)?p[0]:p;f=m.inlineSize,h=m.blockSize}else f=t.offsetWidth,h=t.offsetHeight;l({width:f,height:h})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else l(void 0)},[t]),a}const p2=["top","right","bottom","left"],za=Math.min,kt=Math.max,js=Math.round,hs=Math.floor,bn=t=>({x:t,y:t}),g2={left:"right",right:"left",bottom:"top",top:"bottom"},v2={start:"end",end:"start"};function fd(t,a,l){return kt(t,za(a,l))}function Fn(t,a){return typeof t=="function"?t(a):t}function Pn(t){return t.split("-")[0]}function gl(t){return t.split("-")[1]}function Qd(t){return t==="x"?"y":"x"}function Xd(t){return t==="y"?"height":"width"}const y2=new Set(["top","bottom"]);function vn(t){return y2.has(Pn(t))?"y":"x"}function Kd(t){return Qd(vn(t))}function b2(t,a,l){l===void 0&&(l=!1);const o=gl(t),s=Kd(t),c=Xd(s);let f=s==="x"?o===(l?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(f=Ls(f)),[f,Ls(f)]}function x2(t){const a=Ls(t);return[dd(t),a,dd(a)]}function dd(t){return t.replace(/start|end/g,a=>v2[a])}const ty=["left","right"],ny=["right","left"],S2=["top","bottom"],w2=["bottom","top"];function E2(t,a,l){switch(t){case"top":case"bottom":return l?a?ny:ty:a?ty:ny;case"left":case"right":return a?S2:w2;default:return[]}}function _2(t,a,l,o){const s=gl(t);let c=E2(Pn(t),l==="start",o);return s&&(c=c.map(f=>f+"-"+s),a&&(c=c.concat(c.map(dd)))),c}function Ls(t){return t.replace(/left|right|bottom|top/g,a=>g2[a])}function C2(t){return{top:0,right:0,bottom:0,left:0,...t}}function K0(t){return typeof t!="number"?C2(t):{top:t,right:t,bottom:t,left:t}}function Us(t){const{x:a,y:l,width:o,height:s}=t;return{width:o,height:s,top:l,left:a,right:a+o,bottom:l+s,x:a,y:l}}function ay(t,a,l){let{reference:o,floating:s}=t;const c=vn(a),f=Kd(a),h=Xd(f),p=Pn(a),m=c==="y",g=o.x+o.width/2-s.width/2,y=o.y+o.height/2-s.height/2,x=o[h]/2-s[h]/2;let E;switch(p){case"top":E={x:g,y:o.y-s.height};break;case"bottom":E={x:g,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y};break;case"left":E={x:o.x-s.width,y};break;default:E={x:o.x,y:o.y}}switch(gl(a)){case"start":E[f]-=x*(l&&m?-1:1);break;case"end":E[f]+=x*(l&&m?-1:1);break}return E}async function T2(t,a){var l;a===void 0&&(a={});const{x:o,y:s,platform:c,rects:f,elements:h,strategy:p}=t,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:x=!1,padding:E=0}=Fn(a,t),A=K0(E),w=h[x?y==="floating"?"reference":"floating":y],C=Us(await c.getClippingRect({element:(l=await(c.isElement==null?void 0:c.isElement(w)))==null||l?w:w.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:m,rootBoundary:g,strategy:p})),N=y==="floating"?{x:o,y:s,width:f.floating.width,height:f.floating.height}:f.reference,M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),T=await(c.isElement==null?void 0:c.isElement(M))?await(c.getScale==null?void 0:c.getScale(M))||{x:1,y:1}:{x:1,y:1},L=Us(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:N,offsetParent:M,strategy:p}):N);return{top:(C.top-L.top+A.top)/T.y,bottom:(L.bottom-C.bottom+A.bottom)/T.y,left:(C.left-L.left+A.left)/T.x,right:(L.right-C.right+A.right)/T.x}}const A2=async(t,a,l)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=l,h=c.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(a));let m=await f.getElementRects({reference:t,floating:a,strategy:s}),{x:g,y}=ay(m,o,p),x=o,E={},A=0;for(let w=0;w<h.length;w++){var b;const{name:C,fn:N}=h[w],{x:M,y:T,data:L,reset:G}=await N({x:g,y,initialPlacement:o,placement:x,strategy:s,middlewareData:E,rects:m,platform:{...f,detectOverflow:(b=f.detectOverflow)!=null?b:T2},elements:{reference:t,floating:a}});g=M??g,y=T??y,E={...E,[C]:{...E[C],...L}},G&&A<=50&&(A++,typeof G=="object"&&(G.placement&&(x=G.placement),G.rects&&(m=G.rects===!0?await f.getElementRects({reference:t,floating:a,strategy:s}):G.rects),{x:g,y}=ay(m,x,p)),w=-1)}return{x:g,y,placement:x,strategy:s,middlewareData:E}},R2=t=>({name:"arrow",options:t,async fn(a){const{x:l,y:o,placement:s,rects:c,platform:f,elements:h,middlewareData:p}=a,{element:m,padding:g=0}=Fn(t,a)||{};if(m==null)return{};const y=K0(g),x={x:l,y:o},E=Kd(s),A=Xd(E),b=await f.getDimensions(m),w=E==="y",C=w?"top":"left",N=w?"bottom":"right",M=w?"clientHeight":"clientWidth",T=c.reference[A]+c.reference[E]-x[E]-c.floating[A],L=x[E]-c.reference[E],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m));let D=G?G[M]:0;(!D||!await(f.isElement==null?void 0:f.isElement(G)))&&(D=h.floating[M]||c.floating[A]);const H=T/2-L/2,ee=D/2-b[A]/2-1,F=za(y[C],ee),te=za(y[N],ee),re=F,ce=D-b[A]-te,B=D/2-b[A]/2+H,W=fd(re,B,ce),O=!p.arrow&&gl(s)!=null&&B!==W&&c.reference[A]/2-(B<re?F:te)-b[A]/2<0,q=O?B<re?B-re:B-ce:0;return{[E]:x[E]+q,data:{[E]:W,centerOffset:B-W-q,...O&&{alignmentOffset:q}},reset:O}}}),O2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var l,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:b=!0,...w}=Fn(t,a);if((l=c.arrow)!=null&&l.alignmentOffset)return{};const C=Pn(s),N=vn(h),M=Pn(h)===h,T=await(p.isRTL==null?void 0:p.isRTL(m.floating)),L=x||(M||!b?[Ls(h)]:x2(h)),G=A!=="none";!x&&G&&L.push(..._2(h,b,A,T));const D=[h,...L],H=await p.detectOverflow(a,w),ee=[];let F=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&ee.push(H[C]),y){const B=b2(s,f,T);ee.push(H[B[0]],H[B[1]])}if(F=[...F,{placement:s,overflows:ee}],!ee.every(B=>B<=0)){var te,re;const B=(((te=c.flip)==null?void 0:te.index)||0)+1,W=D[B];if(W&&(!(y==="alignment"?N!==vn(W):!1)||F.every(K=>vn(K.placement)===N?K.overflows[0]>0:!0)))return{data:{index:B,overflows:F},reset:{placement:W}};let O=(re=F.filter(q=>q.overflows[0]<=0).sort((q,K)=>q.overflows[1]-K.overflows[1])[0])==null?void 0:re.placement;if(!O)switch(E){case"bestFit":{var ce;const q=(ce=F.filter(K=>{if(G){const ne=vn(K.placement);return ne===N||ne==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ne=>ne>0).reduce((ne,P)=>ne+P,0)]).sort((K,ne)=>K[1]-ne[1])[0])==null?void 0:ce[0];q&&(O=q);break}case"initialPlacement":O=h;break}if(s!==O)return{reset:{placement:O}}}return{}}}};function iy(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function ly(t){return p2.some(a=>t[a]>=0)}const N2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:l,platform:o}=a,{strategy:s="referenceHidden",...c}=Fn(t,a);switch(s){case"referenceHidden":{const f=await o.detectOverflow(a,{...c,elementContext:"reference"}),h=iy(f,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:ly(h)}}}case"escaped":{const f=await o.detectOverflow(a,{...c,altBoundary:!0}),h=iy(f,l.floating);return{data:{escapedOffsets:h,escaped:ly(h)}}}default:return{}}}}},Z0=new Set(["left","top"]);async function M2(t,a){const{placement:l,platform:o,elements:s}=t,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Pn(l),h=gl(l),p=vn(l)==="y",m=Z0.has(f)?-1:1,g=c&&p?-1:1,y=Fn(a,t);let{mainAxis:x,crossAxis:E,alignmentAxis:A}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof A=="number"&&(E=h==="end"?A*-1:A),p?{x:E*g,y:x*m}:{x:x*m,y:E*g}}const z2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var l,o;const{x:s,y:c,placement:f,middlewareData:h}=a,p=await M2(a,t);return f===((l=h.offset)==null?void 0:l.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},D2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:l,y:o,placement:s,platform:c}=a,{mainAxis:f=!0,crossAxis:h=!1,limiter:p={fn:C=>{let{x:N,y:M}=C;return{x:N,y:M}}},...m}=Fn(t,a),g={x:l,y:o},y=await c.detectOverflow(a,m),x=vn(Pn(s)),E=Qd(x);let A=g[E],b=g[x];if(f){const C=E==="y"?"top":"left",N=E==="y"?"bottom":"right",M=A+y[C],T=A-y[N];A=fd(M,A,T)}if(h){const C=x==="y"?"top":"left",N=x==="y"?"bottom":"right",M=b+y[C],T=b-y[N];b=fd(M,b,T)}const w=p.fn({...a,[E]:A,[x]:b});return{...w,data:{x:w.x-l,y:w.y-o,enabled:{[E]:f,[x]:h}}}}}},j2=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:l,y:o,placement:s,rects:c,middlewareData:f}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=Fn(t,a),g={x:l,y:o},y=vn(s),x=Qd(y);let E=g[x],A=g[y];const b=Fn(h,a),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(p){const M=x==="y"?"height":"width",T=c.reference[x]-c.floating[M]+w.mainAxis,L=c.reference[x]+c.reference[M]-w.mainAxis;E<T?E=T:E>L&&(E=L)}if(m){var C,N;const M=x==="y"?"width":"height",T=Z0.has(Pn(s)),L=c.reference[y]-c.floating[M]+(T&&((C=f.offset)==null?void 0:C[y])||0)+(T?0:w.crossAxis),G=c.reference[y]+c.reference[M]+(T?0:((N=f.offset)==null?void 0:N[y])||0)-(T?w.crossAxis:0);A<L?A=L:A>G&&(A=G)}return{[x]:E,[y]:A}}}},L2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var l,o;const{placement:s,rects:c,platform:f,elements:h}=a,{apply:p=()=>{},...m}=Fn(t,a),g=await f.detectOverflow(a,m),y=Pn(s),x=gl(s),E=vn(s)==="y",{width:A,height:b}=c.floating;let w,C;y==="top"||y==="bottom"?(w=y,C=x===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(C=y,w=x==="end"?"top":"bottom");const N=b-g.top-g.bottom,M=A-g.left-g.right,T=za(b-g[w],N),L=za(A-g[C],M),G=!a.middlewareData.shift;let D=T,H=L;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(H=M),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(D=N),G&&!x){const F=kt(g.left,0),te=kt(g.right,0),re=kt(g.top,0),ce=kt(g.bottom,0);E?H=A-2*(F!==0||te!==0?F+te:kt(g.left,g.right)):D=b-2*(re!==0||ce!==0?re+ce:kt(g.top,g.bottom))}await p({...a,availableWidth:H,availableHeight:D});const ee=await f.getDimensions(h.floating);return A!==ee.width||b!==ee.height?{reset:{rects:!0}}:{}}}};function Is(){return typeof window<"u"}function vl(t){return F0(t)?(t.nodeName||"").toLowerCase():"#document"}function qt(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function En(t){var a;return(a=(F0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function F0(t){return Is()?t instanceof Node||t instanceof qt(t).Node:!1}function sn(t){return Is()?t instanceof Element||t instanceof qt(t).Element:!1}function wn(t){return Is()?t instanceof HTMLElement||t instanceof qt(t).HTMLElement:!1}function ry(t){return!Is()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof qt(t).ShadowRoot}const U2=new Set(["inline","contents"]);function Br(t){const{overflow:a,overflowX:l,overflowY:o,display:s}=un(t);return/auto|scroll|overlay|hidden|clip/.test(a+o+l)&&!U2.has(s)}const H2=new Set(["table","td","th"]);function B2(t){return H2.has(vl(t))}const k2=[":popover-open",":modal"];function Ws(t){return k2.some(a=>{try{return t.matches(a)}catch{return!1}})}const q2=["transform","translate","scale","rotate","perspective"],G2=["transform","translate","scale","rotate","perspective","filter"],V2=["paint","layout","strict","content"];function Zd(t){const a=Fd(),l=sn(t)?un(t):t;return q2.some(o=>l[o]?l[o]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||G2.some(o=>(l.willChange||"").includes(o))||V2.some(o=>(l.contain||"").includes(o))}function Y2(t){let a=Da(t);for(;wn(a)&&!cl(a);){if(Zd(a))return a;if(Ws(a))return null;a=Da(a)}return null}function Fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Q2=new Set(["html","body","#document"]);function cl(t){return Q2.has(vl(t))}function un(t){return qt(t).getComputedStyle(t)}function eu(t){return sn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Da(t){if(vl(t)==="html")return t;const a=t.assignedSlot||t.parentNode||ry(t)&&t.host||En(t);return ry(a)?a.host:a}function P0(t){const a=Da(t);return cl(a)?t.ownerDocument?t.ownerDocument.body:t.body:wn(a)&&Br(a)?a:P0(a)}function Ar(t,a,l){var o;a===void 0&&(a=[]),l===void 0&&(l=!0);const s=P0(t),c=s===((o=t.ownerDocument)==null?void 0:o.body),f=qt(s);if(c){const h=hd(f);return a.concat(f,f.visualViewport||[],Br(s)?s:[],h&&l?Ar(h):[])}return a.concat(s,Ar(s,[],l))}function hd(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $0(t){const a=un(t);let l=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const s=wn(t),c=s?t.offsetWidth:l,f=s?t.offsetHeight:o,h=js(l)!==c||js(o)!==f;return h&&(l=c,o=f),{width:l,height:o,$:h}}function Pd(t){return sn(t)?t:t.contextElement}function ll(t){const a=Pd(t);if(!wn(a))return bn(1);const l=a.getBoundingClientRect(),{width:o,height:s,$:c}=$0(a);let f=(c?js(l.width):l.width)/o,h=(c?js(l.height):l.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const X2=bn(0);function J0(t){const a=qt(t);return!Fd()||!a.visualViewport?X2:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function K2(t,a,l){return a===void 0&&(a=!1),!l||a&&l!==qt(t)?!1:a}function di(t,a,l,o){a===void 0&&(a=!1),l===void 0&&(l=!1);const s=t.getBoundingClientRect(),c=Pd(t);let f=bn(1);a&&(o?sn(o)&&(f=ll(o)):f=ll(t));const h=K2(c,l,o)?J0(c):bn(0);let p=(s.left+h.x)/f.x,m=(s.top+h.y)/f.y,g=s.width/f.x,y=s.height/f.y;if(c){const x=qt(c),E=o&&sn(o)?qt(o):o;let A=x,b=hd(A);for(;b&&o&&E!==A;){const w=ll(b),C=b.getBoundingClientRect(),N=un(b),M=C.left+(b.clientLeft+parseFloat(N.paddingLeft))*w.x,T=C.top+(b.clientTop+parseFloat(N.paddingTop))*w.y;p*=w.x,m*=w.y,g*=w.x,y*=w.y,p+=M,m+=T,A=qt(b),b=hd(A)}}return Us({width:g,height:y,x:p,y:m})}function tu(t,a){const l=eu(t).scrollLeft;return a?a.left+l:di(En(t)).left+l}function I0(t,a){const l=t.getBoundingClientRect(),o=l.left+a.scrollLeft-tu(t,l),s=l.top+a.scrollTop;return{x:o,y:s}}function Z2(t){let{elements:a,rect:l,offsetParent:o,strategy:s}=t;const c=s==="fixed",f=En(o),h=a?Ws(a.floating):!1;if(o===f||h&&c)return l;let p={scrollLeft:0,scrollTop:0},m=bn(1);const g=bn(0),y=wn(o);if((y||!y&&!c)&&((vl(o)!=="body"||Br(f))&&(p=eu(o)),wn(o))){const E=di(o);m=ll(o),g.x=E.x+o.clientLeft,g.y=E.y+o.clientTop}const x=f&&!y&&!c?I0(f,p):bn(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-p.scrollLeft*m.x+g.x+x.x,y:l.y*m.y-p.scrollTop*m.y+g.y+x.y}}function F2(t){return Array.from(t.getClientRects())}function P2(t){const a=En(t),l=eu(t),o=t.ownerDocument.body,s=kt(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),c=kt(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let f=-l.scrollLeft+tu(t);const h=-l.scrollTop;return un(o).direction==="rtl"&&(f+=kt(a.clientWidth,o.clientWidth)-s),{width:s,height:c,x:f,y:h}}const oy=25;function $2(t,a){const l=qt(t),o=En(t),s=l.visualViewport;let c=o.clientWidth,f=o.clientHeight,h=0,p=0;if(s){c=s.width,f=s.height;const g=Fd();(!g||g&&a==="fixed")&&(h=s.offsetLeft,p=s.offsetTop)}const m=tu(o);if(m<=0){const g=o.ownerDocument,y=g.body,x=getComputedStyle(y),E=g.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,A=Math.abs(o.clientWidth-y.clientWidth-E);A<=oy&&(c-=A)}else m<=oy&&(c+=m);return{width:c,height:f,x:h,y:p}}const J2=new Set(["absolute","fixed"]);function I2(t,a){const l=di(t,!0,a==="fixed"),o=l.top+t.clientTop,s=l.left+t.clientLeft,c=wn(t)?ll(t):bn(1),f=t.clientWidth*c.x,h=t.clientHeight*c.y,p=s*c.x,m=o*c.y;return{width:f,height:h,x:p,y:m}}function sy(t,a,l){let o;if(a==="viewport")o=$2(t,l);else if(a==="document")o=P2(En(t));else if(sn(a))o=I2(a,l);else{const s=J0(t);o={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Us(o)}function W0(t,a){const l=Da(t);return l===a||!sn(l)||cl(l)?!1:un(l).position==="fixed"||W0(l,a)}function W2(t,a){const l=a.get(t);if(l)return l;let o=Ar(t,[],!1).filter(h=>sn(h)&&vl(h)!=="body"),s=null;const c=un(t).position==="fixed";let f=c?Da(t):t;for(;sn(f)&&!cl(f);){const h=un(f),p=Zd(f);!p&&h.position==="fixed"&&(s=null),(c?!p&&!s:!p&&h.position==="static"&&!!s&&J2.has(s.position)||Br(f)&&!p&&W0(t,f))?o=o.filter(g=>g!==f):s=h,f=Da(f)}return a.set(t,o),o}function eT(t){let{element:a,boundary:l,rootBoundary:o,strategy:s}=t;const f=[...l==="clippingAncestors"?Ws(a)?[]:W2(a,this._c):[].concat(l),o],h=f[0],p=f.reduce((m,g)=>{const y=sy(a,g,s);return m.top=kt(y.top,m.top),m.right=za(y.right,m.right),m.bottom=za(y.bottom,m.bottom),m.left=kt(y.left,m.left),m},sy(a,h,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function tT(t){const{width:a,height:l}=$0(t);return{width:a,height:l}}function nT(t,a,l){const o=wn(a),s=En(a),c=l==="fixed",f=di(t,!0,c,a);let h={scrollLeft:0,scrollTop:0};const p=bn(0);function m(){p.x=tu(s)}if(o||!o&&!c)if((vl(a)!=="body"||Br(s))&&(h=eu(a)),o){const E=di(a,!0,c,a);p.x=E.x+a.clientLeft,p.y=E.y+a.clientTop}else s&&m();c&&!o&&s&&m();const g=s&&!o&&!c?I0(s,h):bn(0),y=f.left+h.scrollLeft-p.x-g.x,x=f.top+h.scrollTop-p.y-g.y;return{x:y,y:x,width:f.width,height:f.height}}function Vf(t){return un(t).position==="static"}function uy(t,a){if(!wn(t)||un(t).position==="fixed")return null;if(a)return a(t);let l=t.offsetParent;return En(t)===l&&(l=l.ownerDocument.body),l}function eb(t,a){const l=qt(t);if(Ws(t))return l;if(!wn(t)){let s=Da(t);for(;s&&!cl(s);){if(sn(s)&&!Vf(s))return s;s=Da(s)}return l}let o=uy(t,a);for(;o&&B2(o)&&Vf(o);)o=uy(o,a);return o&&cl(o)&&Vf(o)&&!Zd(o)?l:o||Y2(t)||l}const aT=async function(t){const a=this.getOffsetParent||eb,l=this.getDimensions,o=await l(t.floating);return{reference:nT(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function iT(t){return un(t).direction==="rtl"}const lT={convertOffsetParentRelativeRectToViewportRelativeRect:Z2,getDocumentElement:En,getClippingRect:eT,getOffsetParent:eb,getElementRects:aT,getClientRects:F2,getDimensions:tT,getScale:ll,isElement:sn,isRTL:iT};function tb(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function rT(t,a){let l=null,o;const s=En(t);function c(){var h;clearTimeout(o),(h=l)==null||h.disconnect(),l=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),c();const m=t.getBoundingClientRect(),{left:g,top:y,width:x,height:E}=m;if(h||a(),!x||!E)return;const A=hs(y),b=hs(s.clientWidth-(g+x)),w=hs(s.clientHeight-(y+E)),C=hs(g),M={rootMargin:-A+"px "+-b+"px "+-w+"px "+-C+"px",threshold:kt(0,za(1,p))||1};let T=!0;function L(G){const D=G[0].intersectionRatio;if(D!==p){if(!T)return f();D?f(!1,D):o=setTimeout(()=>{f(!1,1e-7)},1e3)}D===1&&!tb(m,t.getBoundingClientRect())&&f(),T=!1}try{l=new IntersectionObserver(L,{...M,root:s.ownerDocument})}catch{l=new IntersectionObserver(L,M)}l.observe(t)}return f(!0),c}function oT(t,a,l,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,m=Pd(t),g=s||c?[...m?Ar(m):[],...Ar(a)]:[];g.forEach(C=>{s&&C.addEventListener("scroll",l,{passive:!0}),c&&C.addEventListener("resize",l)});const y=m&&h?rT(m,l):null;let x=-1,E=null;f&&(E=new ResizeObserver(C=>{let[N]=C;N&&N.target===m&&E&&(E.unobserve(a),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var M;(M=E)==null||M.observe(a)})),l()}),m&&!p&&E.observe(m),E.observe(a));let A,b=p?di(t):null;p&&w();function w(){const C=di(t);b&&!tb(b,C)&&l(),b=C,A=requestAnimationFrame(w)}return l(),()=>{var C;g.forEach(N=>{s&&N.removeEventListener("scroll",l),c&&N.removeEventListener("resize",l)}),y?.(),(C=E)==null||C.disconnect(),E=null,p&&cancelAnimationFrame(A)}}const sT=z2,uT=D2,cT=O2,fT=L2,dT=N2,cy=R2,hT=j2,mT=(t,a,l)=>{const o=new Map,s={platform:lT,...l},c={...s.platform,_c:o};return A2(t,a,{...s,platform:c})};var pT=typeof document<"u",gT=function(){},Ts=pT?S.useLayoutEffect:gT;function Hs(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let l,o,s;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(l=t.length,l!==a.length)return!1;for(o=l;o--!==0;)if(!Hs(t[o],a[o]))return!1;return!0}if(s=Object.keys(t),l=s.length,l!==Object.keys(a).length)return!1;for(o=l;o--!==0;)if(!{}.hasOwnProperty.call(a,s[o]))return!1;for(o=l;o--!==0;){const c=s[o];if(!(c==="_owner"&&t.$$typeof)&&!Hs(t[c],a[c]))return!1}return!0}return t!==t&&a!==a}function nb(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function fy(t,a){const l=nb(t);return Math.round(a*l)/l}function Yf(t){const a=S.useRef(t);return Ts(()=>{a.current=t}),a}function vT(t){t===void 0&&(t={});const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:s,elements:{reference:c,floating:f}={},transform:h=!0,whileElementsMounted:p,open:m}=t,[g,y]=S.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[x,E]=S.useState(o);Hs(x,o)||E(o);const[A,b]=S.useState(null),[w,C]=S.useState(null),N=S.useCallback(K=>{K!==G.current&&(G.current=K,b(K))},[]),M=S.useCallback(K=>{K!==D.current&&(D.current=K,C(K))},[]),T=c||A,L=f||w,G=S.useRef(null),D=S.useRef(null),H=S.useRef(g),ee=p!=null,F=Yf(p),te=Yf(s),re=Yf(m),ce=S.useCallback(()=>{if(!G.current||!D.current)return;const K={placement:a,strategy:l,middleware:x};te.current&&(K.platform=te.current),mT(G.current,D.current,K).then(ne=>{const P={...ne,isPositioned:re.current!==!1};B.current&&!Hs(H.current,P)&&(H.current=P,Ur.flushSync(()=>{y(P)}))})},[x,a,l,te,re]);Ts(()=>{m===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,y(K=>({...K,isPositioned:!1})))},[m]);const B=S.useRef(!1);Ts(()=>(B.current=!0,()=>{B.current=!1}),[]),Ts(()=>{if(T&&(G.current=T),L&&(D.current=L),T&&L){if(F.current)return F.current(T,L,ce);ce()}},[T,L,ce,F,ee]);const W=S.useMemo(()=>({reference:G,floating:D,setReference:N,setFloating:M}),[N,M]),O=S.useMemo(()=>({reference:T,floating:L}),[T,L]),q=S.useMemo(()=>{const K={position:l,left:0,top:0};if(!O.floating)return K;const ne=fy(O.floating,g.x),P=fy(O.floating,g.y);return h?{...K,transform:"translate("+ne+"px, "+P+"px)",...nb(O.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ne,top:P}},[l,h,O.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:ce,refs:W,elements:O,floatingStyles:q}),[g,ce,W,O,q])}const yT=t=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:t,fn(l){const{element:o,padding:s}=typeof t=="function"?t(l):t;return o&&a(o)?o.current!=null?cy({element:o.current,padding:s}).fn(l):{}:o?cy({element:o,padding:s}).fn(l):{}}}},bT=(t,a)=>({...sT(t),options:[t,a]}),xT=(t,a)=>({...uT(t),options:[t,a]}),ST=(t,a)=>({...hT(t),options:[t,a]}),wT=(t,a)=>({...cT(t),options:[t,a]}),ET=(t,a)=>({...fT(t),options:[t,a]}),_T=(t,a)=>({...dT(t),options:[t,a]}),CT=(t,a)=>({...yT(t),options:[t,a]});var TT="Arrow",ab=S.forwardRef((t,a)=>{const{children:l,width:o=10,height:s=5,...c}=t;return R.jsx(qe.svg,{...c,ref:a,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?l:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});ab.displayName=TT;var AT=ab,$d="Popper",[ib,lb]=Hr($d),[RT,rb]=ib($d),ob=t=>{const{__scopePopper:a,children:l}=t,[o,s]=S.useState(null);return R.jsx(RT,{scope:a,anchor:o,onAnchorChange:s,children:l})};ob.displayName=$d;var sb="PopperAnchor",ub=S.forwardRef((t,a)=>{const{__scopePopper:l,virtualRef:o,...s}=t,c=rb(sb,l),f=S.useRef(null),h=st(a,f),p=S.useRef(null);return S.useEffect(()=>{const m=p.current;p.current=o?.current||f.current,m!==p.current&&c.onAnchorChange(p.current)}),o?null:R.jsx(qe.div,{...s,ref:h})});ub.displayName=sb;var Jd="PopperContent",[OT,NT]=ib(Jd),cb=S.forwardRef((t,a)=>{const{__scopePopper:l,side:o="bottom",sideOffset:s=0,align:c="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,updatePositionStrategy:E="optimized",onPlaced:A,...b}=t,w=rb(Jd,l),[C,N]=S.useState(null),M=st(a,ae=>N(ae)),[T,L]=S.useState(null),G=m2(T),D=G?.width??0,H=G?.height??0,ee=o+(c!=="center"?"-"+c:""),F=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},te=Array.isArray(m)?m:[m],re=te.length>0,ce={padding:F,boundary:te.filter(zT),altBoundary:re},{refs:B,floatingStyles:W,placement:O,isPositioned:q,middlewareData:K}=vT({strategy:"fixed",placement:ee,whileElementsMounted:(...ae)=>oT(...ae,{animationFrame:E==="always"}),elements:{reference:w.anchor},middleware:[bT({mainAxis:s+H,alignmentAxis:f}),p&&xT({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?ST():void 0,...ce}),p&&wT({...ce}),ET({...ce,apply:({elements:ae,rects:ge,availableWidth:me,availableHeight:Ae})=>{const{width:Re,height:ze}=ge.reference,et=ae.floating.style;et.setProperty("--radix-popper-available-width",`${me}px`),et.setProperty("--radix-popper-available-height",`${Ae}px`),et.setProperty("--radix-popper-anchor-width",`${Re}px`),et.setProperty("--radix-popper-anchor-height",`${ze}px`)}}),T&&CT({element:T,padding:h}),DT({arrowWidth:D,arrowHeight:H}),x&&_T({strategy:"referenceHidden",...ce})]}),[ne,P]=hb(O),z=Ma(A);Rt(()=>{q&&z?.()},[q,z]);const X=K.arrow?.x,ie=K.arrow?.y,le=K.arrow?.centerOffset!==0,[oe,se]=S.useState();return Rt(()=>{C&&se(window.getComputedStyle(C).zIndex)},[C]),R.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:q?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:R.jsx(OT,{scope:l,placedSide:ne,onArrowChange:L,arrowX:X,arrowY:ie,shouldHideArrow:le,children:R.jsx(qe.div,{"data-side":ne,"data-align":P,...b,ref:M,style:{...b.style,animation:q?void 0:"none"}})})})});cb.displayName=Jd;var fb="PopperArrow",MT={top:"bottom",right:"left",bottom:"top",left:"right"},db=S.forwardRef(function(a,l){const{__scopePopper:o,...s}=a,c=NT(fb,o),f=MT[c.placedSide];return R.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:R.jsx(AT,{...s,ref:l,style:{...s.style,display:"block"}})})});db.displayName=fb;function zT(t){return t!==null}var DT=t=>({name:"transformOrigin",options:t,fn(a){const{placement:l,rects:o,middlewareData:s}=a,f=s.arrow?.centerOffset!==0,h=f?0:t.arrowWidth,p=f?0:t.arrowHeight,[m,g]=hb(l),y={start:"0%",center:"50%",end:"100%"}[g],x=(s.arrow?.x??0)+h/2,E=(s.arrow?.y??0)+p/2;let A="",b="";return m==="bottom"?(A=f?y:`${x}px`,b=`${-p}px`):m==="top"?(A=f?y:`${x}px`,b=`${o.floating.height+p}px`):m==="right"?(A=`${-p}px`,b=f?y:`${E}px`):m==="left"&&(A=`${o.floating.width+p}px`,b=f?y:`${E}px`),{data:{x:A,y:b}}}});function hb(t){const[a,l="center"]=t.split("-");return[a,l]}var jT=ob,LT=ub,UT=cb,HT=db,Qf="rovingFocusGroup.onEntryFocus",BT={bubbles:!1,cancelable:!0},kr="RovingFocusGroup",[md,mb,kT]=N0(kr),[qT,pb]=Hr(kr,[kT]),[GT,VT]=qT(kr),gb=S.forwardRef((t,a)=>R.jsx(md.Provider,{scope:t.__scopeRovingFocusGroup,children:R.jsx(md.Slot,{scope:t.__scopeRovingFocusGroup,children:R.jsx(YT,{...t,ref:a})})}));gb.displayName=kr;var YT=S.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:l,orientation:o,loop:s=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...y}=t,x=S.useRef(null),E=st(a,x),A=Yd(c),[b,w]=ul({prop:f,defaultProp:h??null,onChange:p,caller:kr}),[C,N]=S.useState(!1),M=Ma(m),T=mb(l),L=S.useRef(!1),[G,D]=S.useState(0);return S.useEffect(()=>{const H=x.current;if(H)return H.addEventListener(Qf,M),()=>H.removeEventListener(Qf,M)},[M]),R.jsx(GT,{scope:l,orientation:o,dir:A,loop:s,currentTabStopId:b,onItemFocus:S.useCallback(H=>w(H),[w]),onItemShiftTab:S.useCallback(()=>N(!0),[]),onFocusableItemAdd:S.useCallback(()=>D(H=>H+1),[]),onFocusableItemRemove:S.useCallback(()=>D(H=>H-1),[]),children:R.jsx(qe.div,{tabIndex:C||G===0?-1:0,"data-orientation":o,...y,ref:E,style:{outline:"none",...t.style},onMouseDown:ke(t.onMouseDown,()=>{L.current=!0}),onFocus:ke(t.onFocus,H=>{const ee=!L.current;if(H.target===H.currentTarget&&ee&&!C){const F=new CustomEvent(Qf,BT);if(H.currentTarget.dispatchEvent(F),!F.defaultPrevented){const te=T().filter(O=>O.focusable),re=te.find(O=>O.active),ce=te.find(O=>O.id===b),W=[re,ce,...te].filter(Boolean).map(O=>O.ref.current);bb(W,g)}}L.current=!1}),onBlur:ke(t.onBlur,()=>N(!1))})})}),vb="RovingFocusGroupItem",yb=S.forwardRef((t,a)=>{const{__scopeRovingFocusGroup:l,focusable:o=!0,active:s=!1,tabStopId:c,children:f,...h}=t,p=$s(),m=c||p,g=VT(vb,l),y=g.currentTabStopId===m,x=mb(l),{onFocusableItemAdd:E,onFocusableItemRemove:A,currentTabStopId:b}=g;return S.useEffect(()=>{if(o)return E(),()=>A()},[o,E,A]),R.jsx(md.ItemSlot,{scope:l,id:m,focusable:o,active:s,children:R.jsx(qe.span,{tabIndex:y?0:-1,"data-orientation":g.orientation,...h,ref:a,onMouseDown:ke(t.onMouseDown,w=>{o?g.onItemFocus(m):w.preventDefault()}),onFocus:ke(t.onFocus,()=>g.onItemFocus(m)),onKeyDown:ke(t.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){g.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const C=KT(w,g.orientation,g.dir);if(C!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let M=x().filter(T=>T.focusable).map(T=>T.ref.current);if(C==="last")M.reverse();else if(C==="prev"||C==="next"){C==="prev"&&M.reverse();const T=M.indexOf(w.currentTarget);M=g.loop?ZT(M,T+1):M.slice(T+1)}setTimeout(()=>bb(M))}}),children:typeof f=="function"?f({isCurrentTabStop:y,hasTabStop:b!=null}):f})})});yb.displayName=vb;var QT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function XT(t,a){return a!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function KT(t,a,l){const o=XT(t.key,l);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return QT[o]}function bb(t,a=!1){const l=document.activeElement;for(const o of t)if(o===l||(o.focus({preventScroll:a}),document.activeElement!==l))return}function ZT(t,a){return t.map((l,o)=>t[(a+o)%t.length])}var FT=gb,PT=yb;function dy(t,[a,l]){return Math.min(l,Math.max(a,t))}var $T=[" ","Enter","ArrowUp","ArrowDown"],JT=[" ","Enter"],hi="Select",[nu,au,IT]=N0(hi),[yl]=Hr(hi,[IT,lb]),iu=lb(),[WT,La]=yl(hi),[eA,tA]=yl(hi),xb=t=>{const{__scopeSelect:a,children:l,open:o,defaultOpen:s,onOpenChange:c,value:f,defaultValue:h,onValueChange:p,dir:m,name:g,autoComplete:y,disabled:x,required:E,form:A}=t,b=iu(a),[w,C]=S.useState(null),[N,M]=S.useState(null),[T,L]=S.useState(!1),G=Yd(m),[D,H]=ul({prop:o,defaultProp:s??!1,onChange:c,caller:hi}),[ee,F]=ul({prop:f,defaultProp:h,onChange:p,caller:hi}),te=S.useRef(null),re=w?A||!!w.closest("form"):!0,[ce,B]=S.useState(new Set),W=Array.from(ce).map(O=>O.props.value).join(";");return R.jsx(jT,{...b,children:R.jsxs(WT,{required:E,scope:a,trigger:w,onTriggerChange:C,valueNode:N,onValueNodeChange:M,valueNodeHasChildren:T,onValueNodeHasChildrenChange:L,contentId:$s(),value:ee,onValueChange:F,open:D,onOpenChange:H,dir:G,triggerPointerDownPosRef:te,disabled:x,children:[R.jsx(nu.Provider,{scope:a,children:R.jsx(eA,{scope:t.__scopeSelect,onNativeOptionAdd:S.useCallback(O=>{B(q=>new Set(q).add(O))},[]),onNativeOptionRemove:S.useCallback(O=>{B(q=>{const K=new Set(q);return K.delete(O),K})},[]),children:l})}),re?R.jsxs(Vb,{"aria-hidden":!0,required:E,tabIndex:-1,name:g,autoComplete:y,value:ee,onChange:O=>F(O.target.value),disabled:x,form:A,children:[ee===void 0?R.jsx("option",{value:""}):null,Array.from(ce)]},W):null]})})};xb.displayName=hi;var Sb="SelectTrigger",wb=S.forwardRef((t,a)=>{const{__scopeSelect:l,disabled:o=!1,...s}=t,c=iu(l),f=La(Sb,l),h=f.disabled||o,p=st(a,f.onTriggerChange),m=au(l),g=S.useRef("touch"),[y,x,E]=Qb(b=>{const w=m().filter(M=>!M.disabled),C=w.find(M=>M.value===f.value),N=Xb(w,b,C);N!==void 0&&f.onValueChange(N.value)}),A=b=>{h||(f.onOpenChange(!0),E()),b&&(f.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return R.jsx(LT,{asChild:!0,...c,children:R.jsx(qe.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Yb(f.value)?"":void 0,...s,ref:p,onClick:ke(s.onClick,b=>{b.currentTarget.focus(),g.current!=="mouse"&&A(b)}),onPointerDown:ke(s.onPointerDown,b=>{g.current=b.pointerType;const w=b.target;w.hasPointerCapture(b.pointerId)&&w.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(A(b),b.preventDefault())}),onKeyDown:ke(s.onKeyDown,b=>{const w=y.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&x(b.key),!(w&&b.key===" ")&&$T.includes(b.key)&&(A(),b.preventDefault())})})})});wb.displayName=Sb;var Eb="SelectValue",_b=S.forwardRef((t,a)=>{const{__scopeSelect:l,className:o,style:s,children:c,placeholder:f="",...h}=t,p=La(Eb,l),{onValueNodeHasChildrenChange:m}=p,g=c!==void 0,y=st(a,p.onValueNodeChange);return Rt(()=>{m(g)},[m,g]),R.jsx(qe.span,{...h,ref:y,style:{pointerEvents:"none"},children:Yb(p.value)?R.jsx(R.Fragment,{children:f}):c})});_b.displayName=Eb;var nA="SelectIcon",Cb=S.forwardRef((t,a)=>{const{__scopeSelect:l,children:o,...s}=t;return R.jsx(qe.span,{"aria-hidden":!0,...s,ref:a,children:o||"▼"})});Cb.displayName=nA;var aA="SelectPortal",Tb=t=>R.jsx(U0,{asChild:!0,...t});Tb.displayName=aA;var mi="SelectContent",Ab=S.forwardRef((t,a)=>{const l=La(mi,t.__scopeSelect),[o,s]=S.useState();if(Rt(()=>{s(new DocumentFragment)},[]),!l.open){const c=o;return c?Ur.createPortal(R.jsx(Rb,{scope:t.__scopeSelect,children:R.jsx(nu.Slot,{scope:t.__scopeSelect,children:R.jsx("div",{children:t.children})})}),c):null}return R.jsx(Ob,{...t,ref:a})});Ab.displayName=mi;var ln=10,[Rb,Ua]=yl(mi),iA="SelectContentImpl",lA=Tr("SelectContent.RemoveScroll"),Ob=S.forwardRef((t,a)=>{const{__scopeSelect:l,position:o="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:f,side:h,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:x,collisionPadding:E,sticky:A,hideWhenDetached:b,avoidCollisions:w,...C}=t,N=La(mi,l),[M,T]=S.useState(null),[L,G]=S.useState(null),D=st(a,ae=>T(ae)),[H,ee]=S.useState(null),[F,te]=S.useState(null),re=au(l),[ce,B]=S.useState(!1),W=S.useRef(!1);S.useEffect(()=>{if(M)return d2(M)},[M]),TC();const O=S.useCallback(ae=>{const[ge,...me]=re().map(ze=>ze.ref.current),[Ae]=me.slice(-1),Re=document.activeElement;for(const ze of ae)if(ze===Re||(ze?.scrollIntoView({block:"nearest"}),ze===ge&&L&&(L.scrollTop=0),ze===Ae&&L&&(L.scrollTop=L.scrollHeight),ze?.focus(),document.activeElement!==Re))return},[re,L]),q=S.useCallback(()=>O([H,M]),[O,H,M]);S.useEffect(()=>{ce&&q()},[ce,q]);const{onOpenChange:K,triggerPointerDownPosRef:ne}=N;S.useEffect(()=>{if(M){let ae={x:0,y:0};const ge=Ae=>{ae={x:Math.abs(Math.round(Ae.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(Ae.pageY)-(ne.current?.y??0))}},me=Ae=>{ae.x<=10&&ae.y<=10?Ae.preventDefault():M.contains(Ae.target)||K(!1),document.removeEventListener("pointermove",ge),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",me,{capture:!0})}}},[M,K,ne]),S.useEffect(()=>{const ae=()=>K(!1);return window.addEventListener("blur",ae),window.addEventListener("resize",ae),()=>{window.removeEventListener("blur",ae),window.removeEventListener("resize",ae)}},[K]);const[P,z]=Qb(ae=>{const ge=re().filter(Re=>!Re.disabled),me=ge.find(Re=>Re.ref.current===document.activeElement),Ae=Xb(ge,ae,me);Ae&&setTimeout(()=>Ae.ref.current.focus())}),X=S.useCallback((ae,ge,me)=>{const Ae=!W.current&&!me;(N.value!==void 0&&N.value===ge||Ae)&&(ee(ae),Ae&&(W.current=!0))},[N.value]),ie=S.useCallback(()=>M?.focus(),[M]),le=S.useCallback((ae,ge,me)=>{const Ae=!W.current&&!me;(N.value!==void 0&&N.value===ge||Ae)&&te(ae)},[N.value]),oe=o==="popper"?pd:Nb,se=oe===pd?{side:h,sideOffset:p,align:m,alignOffset:g,arrowPadding:y,collisionBoundary:x,collisionPadding:E,sticky:A,hideWhenDetached:b,avoidCollisions:w}:{};return R.jsx(Rb,{scope:l,content:M,viewport:L,onViewportChange:G,itemRefCallback:X,selectedItem:H,onItemLeave:ie,itemTextRefCallback:le,focusSelectedItem:q,selectedItemText:F,position:o,isPositioned:ce,searchRef:P,children:R.jsx(Q0,{as:lA,allowPinchZoom:!0,children:R.jsx(j0,{asChild:!0,trapped:N.open,onMountAutoFocus:ae=>{ae.preventDefault()},onUnmountAutoFocus:ke(s,ae=>{N.trigger?.focus({preventScroll:!0}),ae.preventDefault()}),children:R.jsx(z0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:ae=>ae.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:R.jsx(oe,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ae=>ae.preventDefault(),...C,...se,onPlaced:()=>B(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:ke(C.onKeyDown,ae=>{const ge=ae.ctrlKey||ae.altKey||ae.metaKey;if(ae.key==="Tab"&&ae.preventDefault(),!ge&&ae.key.length===1&&z(ae.key),["ArrowUp","ArrowDown","Home","End"].includes(ae.key)){let Ae=re().filter(Re=>!Re.disabled).map(Re=>Re.ref.current);if(["ArrowUp","End"].includes(ae.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(ae.key)){const Re=ae.target,ze=Ae.indexOf(Re);Ae=Ae.slice(ze+1)}setTimeout(()=>O(Ae)),ae.preventDefault()}})})})})})})});Ob.displayName=iA;var rA="SelectItemAlignedPosition",Nb=S.forwardRef((t,a)=>{const{__scopeSelect:l,onPlaced:o,...s}=t,c=La(mi,l),f=Ua(mi,l),[h,p]=S.useState(null),[m,g]=S.useState(null),y=st(a,D=>g(D)),x=au(l),E=S.useRef(!1),A=S.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:C,focusSelectedItem:N}=f,M=S.useCallback(()=>{if(c.trigger&&c.valueNode&&h&&m&&b&&w&&C){const D=c.trigger.getBoundingClientRect(),H=m.getBoundingClientRect(),ee=c.valueNode.getBoundingClientRect(),F=C.getBoundingClientRect();if(c.dir!=="rtl"){const Re=F.left-H.left,ze=ee.left-Re,et=D.left-ze,Pe=D.width+et,ka=Math.max(Pe,H.width),qa=window.innerWidth-ln,bl=dy(ze,[ln,Math.max(ln,qa-ka)]);h.style.minWidth=Pe+"px",h.style.left=bl+"px"}else{const Re=H.right-F.right,ze=window.innerWidth-ee.right-Re,et=window.innerWidth-D.right-ze,Pe=D.width+et,ka=Math.max(Pe,H.width),qa=window.innerWidth-ln,bl=dy(ze,[ln,Math.max(ln,qa-ka)]);h.style.minWidth=Pe+"px",h.style.right=bl+"px"}const te=x(),re=window.innerHeight-ln*2,ce=b.scrollHeight,B=window.getComputedStyle(m),W=parseInt(B.borderTopWidth,10),O=parseInt(B.paddingTop,10),q=parseInt(B.borderBottomWidth,10),K=parseInt(B.paddingBottom,10),ne=W+O+ce+K+q,P=Math.min(w.offsetHeight*5,ne),z=window.getComputedStyle(b),X=parseInt(z.paddingTop,10),ie=parseInt(z.paddingBottom,10),le=D.top+D.height/2-ln,oe=re-le,se=w.offsetHeight/2,ae=w.offsetTop+se,ge=W+O+ae,me=ne-ge;if(ge<=le){const Re=te.length>0&&w===te[te.length-1].ref.current;h.style.bottom="0px";const ze=m.clientHeight-b.offsetTop-b.offsetHeight,et=Math.max(oe,se+(Re?ie:0)+ze+q),Pe=ge+et;h.style.height=Pe+"px"}else{const Re=te.length>0&&w===te[0].ref.current;h.style.top="0px";const et=Math.max(le,W+b.offsetTop+(Re?X:0)+se)+me;h.style.height=et+"px",b.scrollTop=ge-le+b.offsetTop}h.style.margin=`${ln}px 0`,h.style.minHeight=P+"px",h.style.maxHeight=re+"px",o?.(),requestAnimationFrame(()=>E.current=!0)}},[x,c.trigger,c.valueNode,h,m,b,w,C,c.dir,o]);Rt(()=>M(),[M]);const[T,L]=S.useState();Rt(()=>{m&&L(window.getComputedStyle(m).zIndex)},[m]);const G=S.useCallback(D=>{D&&A.current===!0&&(M(),N?.(),A.current=!1)},[M,N]);return R.jsx(sA,{scope:l,contentWrapper:h,shouldExpandOnScrollRef:E,onScrollButtonChange:G,children:R.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:R.jsx(qe.div,{...s,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Nb.displayName=rA;var oA="SelectPopperPosition",pd=S.forwardRef((t,a)=>{const{__scopeSelect:l,align:o="start",collisionPadding:s=ln,...c}=t,f=iu(l);return R.jsx(UT,{...f,...c,ref:a,align:o,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});pd.displayName=oA;var[sA,Id]=yl(mi,{}),gd="SelectViewport",Mb=S.forwardRef((t,a)=>{const{__scopeSelect:l,nonce:o,...s}=t,c=Ua(gd,l),f=Id(gd,l),h=st(a,c.onViewportChange),p=S.useRef(0);return R.jsxs(R.Fragment,{children:[R.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),R.jsx(nu.Slot,{scope:l,children:R.jsx(qe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ke(s.onScroll,m=>{const g=m.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:x}=f;if(x?.current&&y){const E=Math.abs(p.current-g.scrollTop);if(E>0){const A=window.innerHeight-ln*2,b=parseFloat(y.style.minHeight),w=parseFloat(y.style.height),C=Math.max(b,w);if(C<A){const N=C+E,M=Math.min(A,N),T=N-M;y.style.height=M+"px",y.style.bottom==="0px"&&(g.scrollTop=T>0?T:0,y.style.justifyContent="flex-end")}}}p.current=g.scrollTop})})})]})});Mb.displayName=gd;var zb="SelectGroup",[uA,cA]=yl(zb),fA=S.forwardRef((t,a)=>{const{__scopeSelect:l,...o}=t,s=$s();return R.jsx(uA,{scope:l,id:s,children:R.jsx(qe.div,{role:"group","aria-labelledby":s,...o,ref:a})})});fA.displayName=zb;var Db="SelectLabel",dA=S.forwardRef((t,a)=>{const{__scopeSelect:l,...o}=t,s=cA(Db,l);return R.jsx(qe.div,{id:s.id,...o,ref:a})});dA.displayName=Db;var Bs="SelectItem",[hA,jb]=yl(Bs),Lb=S.forwardRef((t,a)=>{const{__scopeSelect:l,value:o,disabled:s=!1,textValue:c,...f}=t,h=La(Bs,l),p=Ua(Bs,l),m=h.value===o,[g,y]=S.useState(c??""),[x,E]=S.useState(!1),A=st(a,N=>p.itemRefCallback?.(N,o,s)),b=$s(),w=S.useRef("touch"),C=()=>{s||(h.onValueChange(o),h.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return R.jsx(hA,{scope:l,value:o,disabled:s,textId:b,isSelected:m,onItemTextChange:S.useCallback(N=>{y(M=>M||(N?.textContent??"").trim())},[]),children:R.jsx(nu.ItemSlot,{scope:l,value:o,disabled:s,textValue:g,children:R.jsx(qe.div,{role:"option","aria-labelledby":b,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...f,ref:A,onFocus:ke(f.onFocus,()=>E(!0)),onBlur:ke(f.onBlur,()=>E(!1)),onClick:ke(f.onClick,()=>{w.current!=="mouse"&&C()}),onPointerUp:ke(f.onPointerUp,()=>{w.current==="mouse"&&C()}),onPointerDown:ke(f.onPointerDown,N=>{w.current=N.pointerType}),onPointerMove:ke(f.onPointerMove,N=>{w.current=N.pointerType,s?p.onItemLeave?.():w.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(f.onPointerLeave,N=>{N.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:ke(f.onKeyDown,N=>{p.searchRef?.current!==""&&N.key===" "||(JT.includes(N.key)&&C(),N.key===" "&&N.preventDefault())})})})})});Lb.displayName=Bs;var br="SelectItemText",Ub=S.forwardRef((t,a)=>{const{__scopeSelect:l,className:o,style:s,...c}=t,f=La(br,l),h=Ua(br,l),p=jb(br,l),m=tA(br,l),[g,y]=S.useState(null),x=st(a,C=>y(C),p.onItemTextChange,C=>h.itemTextRefCallback?.(C,p.value,p.disabled)),E=g?.textContent,A=S.useMemo(()=>R.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=m;return Rt(()=>(b(A),()=>w(A)),[b,w,A]),R.jsxs(R.Fragment,{children:[R.jsx(qe.span,{id:p.textId,...c,ref:x}),p.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Ur.createPortal(c.children,f.valueNode):null]})});Ub.displayName=br;var Hb="SelectItemIndicator",Bb=S.forwardRef((t,a)=>{const{__scopeSelect:l,...o}=t;return jb(Hb,l).isSelected?R.jsx(qe.span,{"aria-hidden":!0,...o,ref:a}):null});Bb.displayName=Hb;var vd="SelectScrollUpButton",kb=S.forwardRef((t,a)=>{const l=Ua(vd,t.__scopeSelect),o=Id(vd,t.__scopeSelect),[s,c]=S.useState(!1),f=st(a,o.onScrollButtonChange);return Rt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const m=p.scrollTop>0;c(m)};const p=l.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),s?R.jsx(Gb,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=l;h&&p&&(h.scrollTop=h.scrollTop-p.offsetHeight)}}):null});kb.displayName=vd;var yd="SelectScrollDownButton",qb=S.forwardRef((t,a)=>{const l=Ua(yd,t.__scopeSelect),o=Id(yd,t.__scopeSelect),[s,c]=S.useState(!1),f=st(a,o.onScrollButtonChange);return Rt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const m=p.scrollHeight-p.clientHeight,g=Math.ceil(p.scrollTop)<m;c(g)};const p=l.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),s?R.jsx(Gb,{...t,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=l;h&&p&&(h.scrollTop=h.scrollTop+p.offsetHeight)}}):null});qb.displayName=yd;var Gb=S.forwardRef((t,a)=>{const{__scopeSelect:l,onAutoScroll:o,...s}=t,c=Ua("SelectScrollButton",l),f=S.useRef(null),h=au(l),p=S.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return S.useEffect(()=>()=>p(),[p]),Rt(()=>{h().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),R.jsx(qe.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ke(s.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(o,50))}),onPointerMove:ke(s.onPointerMove,()=>{c.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(o,50))}),onPointerLeave:ke(s.onPointerLeave,()=>{p()})})}),mA="SelectSeparator",pA=S.forwardRef((t,a)=>{const{__scopeSelect:l,...o}=t;return R.jsx(qe.div,{"aria-hidden":!0,...o,ref:a})});pA.displayName=mA;var bd="SelectArrow",gA=S.forwardRef((t,a)=>{const{__scopeSelect:l,...o}=t,s=iu(l),c=La(bd,l),f=Ua(bd,l);return c.open&&f.position==="popper"?R.jsx(HT,{...s,...o,ref:a}):null});gA.displayName=bd;var vA="SelectBubbleInput",Vb=S.forwardRef(({__scopeSelect:t,value:a,...l},o)=>{const s=S.useRef(null),c=st(o,s),f=h2(a);return S.useEffect(()=>{const h=s.current;if(!h)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(f!==a&&g){const y=new Event("change",{bubbles:!0});g.call(h,a),h.dispatchEvent(y)}},[f,a]),R.jsx(qe.select,{...l,style:{...O0,...l.style},ref:c,defaultValue:a})});Vb.displayName=vA;function Yb(t){return t===""||t===void 0}function Qb(t){const a=Ma(t),l=S.useRef(""),o=S.useRef(0),s=S.useCallback(f=>{const h=l.current+f;a(h),(function p(m){l.current=m,window.clearTimeout(o.current),m!==""&&(o.current=window.setTimeout(()=>p(""),1e3))})(h)},[a]),c=S.useCallback(()=>{l.current="",window.clearTimeout(o.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(o.current),[]),[l,s,c]}function Xb(t,a,l){const s=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,c=l?t.indexOf(l):-1;let f=yA(t,Math.max(c,0));s.length===1&&(f=f.filter(m=>m!==l));const p=f.find(m=>m.textValue.toLowerCase().startsWith(s.toLowerCase()));return p!==l?p:void 0}function yA(t,a){return t.map((l,o)=>t[(a+o)%t.length])}var bA=xb,xA=wb,SA=_b,wA=Cb,EA=Tb,_A=Ab,CA=Mb,TA=Lb,AA=Ub,RA=Bb,OA=kb,NA=qb,Kb="Toggle",Zb=S.forwardRef((t,a)=>{const{pressed:l,defaultPressed:o,onPressedChange:s,...c}=t,[f,h]=ul({prop:l,onChange:s,defaultProp:o??!1,caller:Kb});return R.jsx(qe.button,{type:"button","aria-pressed":f,"data-state":f?"on":"off","data-disabled":t.disabled?"":void 0,...c,ref:a,onClick:ke(t.onClick,()=>{t.disabled||h(!f)})})});Zb.displayName=Kb;var Ha="ToggleGroup",[Fb]=Hr(Ha,[pb]),Pb=pb(),Wd=at.forwardRef((t,a)=>{const{type:l,...o}=t;if(l==="single"){const s=o;return R.jsx(MA,{...s,ref:a})}if(l==="multiple"){const s=o;return R.jsx(zA,{...s,ref:a})}throw new Error(`Missing prop \`type\` expected on \`${Ha}\``)});Wd.displayName=Ha;var[$b,Jb]=Fb(Ha),MA=at.forwardRef((t,a)=>{const{value:l,defaultValue:o,onValueChange:s=()=>{},...c}=t,[f,h]=ul({prop:l,defaultProp:o??"",onChange:s,caller:Ha});return R.jsx($b,{scope:t.__scopeToggleGroup,type:"single",value:at.useMemo(()=>f?[f]:[],[f]),onItemActivate:h,onItemDeactivate:at.useCallback(()=>h(""),[h]),children:R.jsx(Ib,{...c,ref:a})})}),zA=at.forwardRef((t,a)=>{const{value:l,defaultValue:o,onValueChange:s=()=>{},...c}=t,[f,h]=ul({prop:l,defaultProp:o??[],onChange:s,caller:Ha}),p=at.useCallback(g=>h((y=[])=>[...y,g]),[h]),m=at.useCallback(g=>h((y=[])=>y.filter(x=>x!==g)),[h]);return R.jsx($b,{scope:t.__scopeToggleGroup,type:"multiple",value:f,onItemActivate:p,onItemDeactivate:m,children:R.jsx(Ib,{...c,ref:a})})});Wd.displayName=Ha;var[DA,jA]=Fb(Ha),Ib=at.forwardRef((t,a)=>{const{__scopeToggleGroup:l,disabled:o=!1,rovingFocus:s=!0,orientation:c,dir:f,loop:h=!0,...p}=t,m=Pb(l),g=Yd(f),y={role:"group",dir:g,...p};return R.jsx(DA,{scope:l,rovingFocus:s,disabled:o,children:s?R.jsx(FT,{asChild:!0,...m,orientation:c,dir:g,loop:h,children:R.jsx(qe.div,{...y,ref:a})}):R.jsx(qe.div,{...y,ref:a})})}),ks="ToggleGroupItem",Wb=at.forwardRef((t,a)=>{const l=Jb(ks,t.__scopeToggleGroup),o=jA(ks,t.__scopeToggleGroup),s=Pb(t.__scopeToggleGroup),c=l.value.includes(t.value),f=o.disabled||t.disabled,h={...t,pressed:c,disabled:f},p=at.useRef(null);return o.rovingFocus?R.jsx(PT,{asChild:!0,...s,focusable:!f,active:c,ref:p,children:R.jsx(hy,{...h,ref:a})}):R.jsx(hy,{...h,ref:a})});Wb.displayName=ks;var hy=at.forwardRef((t,a)=>{const{__scopeToggleGroup:l,value:o,...s}=t,c=Jb(ks,l),f={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},h=c.type==="single"?f:void 0;return R.jsx(Zb,{...h,...s,ref:a,onPressedChange:p=>{p?c.onItemActivate(o):c.onItemDeactivate(o)}})}),LA=Wd,UA=Wb;function ex(t){var a,l,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(a=0;a<s;a++)t[a]&&(l=ex(t[a]))&&(o&&(o+=" "),o+=l)}else for(l in t)t[l]&&(o&&(o+=" "),o+=l);return o}function tx(){for(var t,a,l=0,o="",s=arguments.length;l<s;l++)(t=arguments[l])&&(a=ex(t))&&(o&&(o+=" "),o+=a);return o}const HA=(t,a)=>{const l=new Array(t.length+a.length);for(let o=0;o<t.length;o++)l[o]=t[o];for(let o=0;o<a.length;o++)l[t.length+o]=a[o];return l},BA=(t,a)=>({classGroupId:t,validator:a}),nx=(t=new Map,a=null,l)=>({nextPart:t,validators:a,classGroupId:l}),qs="-",my=[],kA="arbitrary..",qA=t=>{const a=VA(t),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return GA(f);const h=f.split(qs),p=h[0]===""&&h.length>1?1:0;return ax(h,p,a)},getConflictingClassGroupIds:(f,h)=>{if(h){const p=o[f],m=l[f];return p?m?HA(m,p):p:m||my}return l[f]||my}}},ax=(t,a,l)=>{if(t.length-a===0)return l.classGroupId;const s=t[a],c=l.nextPart.get(s);if(c){const m=ax(t,a+1,c);if(m)return m}const f=l.validators;if(f===null)return;const h=a===0?t.join(qs):t.slice(a).join(qs),p=f.length;for(let m=0;m<p;m++){const g=f[m];if(g.validator(h))return g.classGroupId}},GA=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const a=t.slice(1,-1),l=a.indexOf(":"),o=a.slice(0,l);return o?kA+o:void 0})(),VA=t=>{const{theme:a,classGroups:l}=t;return YA(l,a)},YA=(t,a)=>{const l=nx();for(const o in t){const s=t[o];eh(s,l,o,a)}return l},eh=(t,a,l,o)=>{const s=t.length;for(let c=0;c<s;c++){const f=t[c];QA(f,a,l,o)}},QA=(t,a,l,o)=>{if(typeof t=="string"){XA(t,a,l);return}if(typeof t=="function"){KA(t,a,l,o);return}ZA(t,a,l,o)},XA=(t,a,l)=>{const o=t===""?a:ix(a,t);o.classGroupId=l},KA=(t,a,l,o)=>{if(FA(t)){eh(t(o),a,l,o);return}a.validators===null&&(a.validators=[]),a.validators.push(BA(l,t))},ZA=(t,a,l,o)=>{const s=Object.entries(t),c=s.length;for(let f=0;f<c;f++){const[h,p]=s[f];eh(p,ix(a,h),l,o)}},ix=(t,a)=>{let l=t;const o=a.split(qs),s=o.length;for(let c=0;c<s;c++){const f=o[c];let h=l.nextPart.get(f);h||(h=nx(),l.nextPart.set(f,h)),l=h}return l},FA=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,PA=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,l=Object.create(null),o=Object.create(null);const s=(c,f)=>{l[c]=f,a++,a>t&&(a=0,o=l,l=Object.create(null))};return{get(c){let f=l[c];if(f!==void 0)return f;if((f=o[c])!==void 0)return s(c,f),f},set(c,f){c in l?l[c]=f:s(c,f)}}},xd="!",py=":",$A=[],gy=(t,a,l,o,s)=>({modifiers:t,hasImportantModifier:a,baseClassName:l,maybePostfixModifierPosition:o,isExternal:s}),JA=t=>{const{prefix:a,experimentalParseClassName:l}=t;let o=s=>{const c=[];let f=0,h=0,p=0,m;const g=s.length;for(let b=0;b<g;b++){const w=s[b];if(f===0&&h===0){if(w===py){c.push(s.slice(p,b)),p=b+1;continue}if(w==="/"){m=b;continue}}w==="["?f++:w==="]"?f--:w==="("?h++:w===")"&&h--}const y=c.length===0?s:s.slice(p);let x=y,E=!1;y.endsWith(xd)?(x=y.slice(0,-1),E=!0):y.startsWith(xd)&&(x=y.slice(1),E=!0);const A=m&&m>p?m-p:void 0;return gy(c,E,x,A)};if(a){const s=a+py,c=o;o=f=>f.startsWith(s)?c(f.slice(s.length)):gy($A,!1,f,void 0,!0)}if(l){const s=o;o=c=>l({className:c,parseClassName:s})}return o},IA=t=>{const a=new Map;return t.orderSensitiveModifiers.forEach((l,o)=>{a.set(l,1e6+o)}),l=>{const o=[];let s=[];for(let c=0;c<l.length;c++){const f=l[c],h=f[0]==="[",p=a.has(f);h||p?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(f)):s.push(f)}return s.length>0&&(s.sort(),o.push(...s)),o}},WA=t=>({cache:PA(t.cacheSize),parseClassName:JA(t),sortModifiers:IA(t),...qA(t)}),eR=/\s+/,tR=(t,a)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:c}=a,f=[],h=t.trim().split(eR);let p="";for(let m=h.length-1;m>=0;m-=1){const g=h[m],{isExternal:y,modifiers:x,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:b}=l(g);if(y){p=g+(p.length>0?" "+p:p);continue}let w=!!b,C=o(w?A.substring(0,b):A);if(!C){if(!w){p=g+(p.length>0?" "+p:p);continue}if(C=o(A),!C){p=g+(p.length>0?" "+p:p);continue}w=!1}const N=x.length===0?"":x.length===1?x[0]:c(x).join(":"),M=E?N+xd:N,T=M+C;if(f.indexOf(T)>-1)continue;f.push(T);const L=s(C,w);for(let G=0;G<L.length;++G){const D=L[G];f.push(M+D)}p=g+(p.length>0?" "+p:p)}return p},nR=(...t)=>{let a=0,l,o,s="";for(;a<t.length;)(l=t[a++])&&(o=lx(l))&&(s&&(s+=" "),s+=o);return s},lx=t=>{if(typeof t=="string")return t;let a,l="";for(let o=0;o<t.length;o++)t[o]&&(a=lx(t[o]))&&(l&&(l+=" "),l+=a);return l},aR=(t,...a)=>{let l,o,s,c;const f=p=>{const m=a.reduce((g,y)=>y(g),t());return l=WA(m),o=l.cache.get,s=l.cache.set,c=h,h(p)},h=p=>{const m=o(p);if(m)return m;const g=tR(p,l);return s(p,g),g};return c=f,(...p)=>c(nR(...p))},iR=[],nt=t=>{const a=l=>l[t]||iR;return a.isThemeGetter=!0,a},rx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ox=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oR=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ea=t=>lR.test(t),Se=t=>!!t&&!Number.isNaN(Number(t)),_a=t=>!!t&&Number.isInteger(Number(t)),Xf=t=>t.endsWith("%")&&Se(t.slice(0,-1)),Yn=t=>rR.test(t),sx=()=>!0,fR=t=>oR.test(t)&&!sR.test(t),th=()=>!1,dR=t=>uR.test(t),hR=t=>cR.test(t),mR=t=>!fe(t)&&!de(t),pR=t=>Ba(t,fx,th),fe=t=>rx.test(t),li=t=>Ba(t,dx,fR),vy=t=>Ba(t,ER,Se),gR=t=>Ba(t,mx,sx),vR=t=>Ba(t,hx,th),yy=t=>Ba(t,ux,th),yR=t=>Ba(t,cx,hR),ms=t=>Ba(t,px,dR),de=t=>ox.test(t),pr=t=>gi(t,dx),bR=t=>gi(t,hx),by=t=>gi(t,ux),xR=t=>gi(t,fx),SR=t=>gi(t,cx),ps=t=>gi(t,px,!0),wR=t=>gi(t,mx,!0),Ba=(t,a,l)=>{const o=rx.exec(t);return o?o[1]?a(o[1]):l(o[2]):!1},gi=(t,a,l=!1)=>{const o=ox.exec(t);return o?o[1]?a(o[1]):l:!1},ux=t=>t==="position"||t==="percentage",cx=t=>t==="image"||t==="url",fx=t=>t==="length"||t==="size"||t==="bg-size",dx=t=>t==="length",ER=t=>t==="number",hx=t=>t==="family-name",mx=t=>t==="number"||t==="weight",px=t=>t==="shadow",_R=()=>{const t=nt("color"),a=nt("font"),l=nt("text"),o=nt("font-weight"),s=nt("tracking"),c=nt("leading"),f=nt("breakpoint"),h=nt("container"),p=nt("spacing"),m=nt("radius"),g=nt("shadow"),y=nt("inset-shadow"),x=nt("text-shadow"),E=nt("drop-shadow"),A=nt("blur"),b=nt("perspective"),w=nt("aspect"),C=nt("ease"),N=nt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...T(),de,fe],G=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],H=()=>[de,fe,p],ee=()=>[Ea,"full","auto",...H()],F=()=>[_a,"none","subgrid",de,fe],te=()=>["auto",{span:["full",_a,de,fe]},_a,de,fe],re=()=>[_a,"auto",de,fe],ce=()=>["auto","min","max","fr",de,fe],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...H()],q=()=>[Ea,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],K=()=>[Ea,"screen","full","dvw","lvw","svw","min","max","fit",...H()],ne=()=>[Ea,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],P=()=>[t,de,fe],z=()=>[...T(),by,yy,{position:[de,fe]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",xR,pR,{size:[de,fe]}],le=()=>[Xf,pr,li],oe=()=>["","none","full",m,de,fe],se=()=>["",Se,pr,li],ae=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Se,Xf,by,yy],Ae=()=>["","none",A,de,fe],Re=()=>["none",Se,de,fe],ze=()=>["none",Se,de,fe],et=()=>[Se,de,fe],Pe=()=>[Ea,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yn],breakpoint:[Yn],color:[sx],container:[Yn],"drop-shadow":[Yn],ease:["in","out","in-out"],font:[mR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yn],shadow:[Yn],spacing:["px",Se],text:[Yn],"text-shadow":[Yn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ea,fe,de,w]}],container:["container"],columns:[{columns:[Se,fe,de,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{"inset-s":ee(),start:ee()}],end:[{"inset-e":ee(),end:ee()}],"inset-bs":[{"inset-bs":ee()}],"inset-be":[{"inset-be":ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[_a,"auto",de,fe]}],basis:[{basis:[Ea,"full","auto",h,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,Ea,"auto","initial","none",fe]}],grow:[{grow:["",Se,de,fe]}],shrink:[{shrink:["",Se,de,fe]}],order:[{order:[_a,"first","last","none",de,fe]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...ne()]}],"min-block-size":[{"min-block":["auto",...ne()]}],"max-block-size":[{"max-block":["none",...ne()]}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",l,pr,li]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,wR,gR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Xf,fe]}],"font-family":[{font:[bR,vR,a]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,de,fe]}],"line-clamp":[{"line-clamp":[Se,"none",de,vy]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",de,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",de,li]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Se,"auto",de,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_a,de,fe],radial:["",de,fe],conic:[_a,de,fe]},SR,yR]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,de,fe]}],"outline-w":[{outline:["",Se,pr,li]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",g,ps,ms]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",y,ps,ms]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Se,li]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",x,ps,ms]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Se,de,fe]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[de,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,fe]}],filter:[{filter:["","none",de,fe]}],blur:[{blur:Ae()}],brightness:[{brightness:[Se,de,fe]}],contrast:[{contrast:[Se,de,fe]}],"drop-shadow":[{"drop-shadow":["","none",E,ps,ms]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Se,de,fe]}],"hue-rotate":[{"hue-rotate":[Se,de,fe]}],invert:[{invert:["",Se,de,fe]}],saturate:[{saturate:[Se,de,fe]}],sepia:[{sepia:["",Se,de,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",de,fe]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[Se,de,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Se,de,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,de,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,de,fe]}],"backdrop-invert":[{"backdrop-invert":["",Se,de,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Se,de,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Se,de,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,de,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",de,fe]}],ease:[{ease:["linear","initial",C,de,fe]}],delay:[{delay:[Se,de,fe]}],animate:[{animate:["none",N,de,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,de,fe]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:et()}],"skew-x":[{"skew-x":et()}],"skew-y":[{"skew-y":et()}],transform:[{transform:[de,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,fe]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Se,pr,li,vy]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},CR=aR(_R);function Gt(...t){return CR(tx(t))}const xy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Sy=tx,nh=(t,a)=>l=>{var o;if(a?.variants==null)return Sy(t,l?.class,l?.className);const{variants:s,defaultVariants:c}=a,f=Object.keys(s).map(m=>{const g=l?.[m],y=c?.[m];if(g===null)return null;const x=xy(g)||xy(y);return s[m][x]}),h=l&&Object.entries(l).reduce((m,g)=>{let[y,x]=g;return x===void 0||(m[y]=x),m},{}),p=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((m,g)=>{let{class:y,className:x,...E}=g;return Object.entries(E).every(A=>{let[b,w]=A;return Array.isArray(w)?w.includes({...c,...h}[b]):{...c,...h}[b]===w})?[...m,y,x]:m},[]);return Sy(t,f,p,l?.class,l?.className)},TR=nh("hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[state=on]:bg-muted gap-1 rounded-md text-xs font-medium transition-all [&_svg:not([class*='size-'])]:size-3.5 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border-input hover:bg-muted border bg-transparent"},size:{default:"h-7 min-w-7 px-2",sm:"h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-1.5 text-[0.625rem] [&_svg:not([class*='size-'])]:size-3",lg:"h-8 min-w-8 px-2"}},defaultVariants:{variant:"default",size:"default"}}),gx=S.createContext({size:"default",variant:"default",spacing:0,orientation:"horizontal"});function AR({className:t,variant:a,size:l,spacing:o=0,orientation:s="horizontal",children:c,...f}){return R.jsx(LA,{"data-slot":"toggle-group","data-variant":a,"data-size":l,"data-spacing":o,"data-orientation":s,style:{"--gap":o},className:Gt("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-md data-vertical:flex-col data-vertical:items-stretch data-[size=sm]:rounded-[min(var(--radius-md),8px)]",t),...f,children:R.jsx(gx.Provider,{value:{variant:a,size:l,spacing:o,orientation:s},children:c})})}function Kf({className:t,children:a,variant:l="default",size:o="default",...s}){const c=S.useContext(gx);return R.jsx(UA,{"data-slot":"toggle-group-item","data-variant":c.variant||l,"data-size":c.size||o,"data-spacing":c.spacing,className:Gt("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",TR({variant:c.variant||l,size:c.size||o}),t),...s,children:a})}const RR=nh("focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-xs/relaxed font-medium focus-visible:ring-2 aria-invalid:ring-2 [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border dark:bg-input/30 hover:bg-input/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",destructive:"bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-7 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",xs:"h-5 gap-1 rounded-sm px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-2.5",sm:"h-6 gap-1 px-2 text-xs/relaxed has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",lg:"h-8 gap-1 px-2.5 text-xs/relaxed has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-4",icon:"size-7 [&_svg:not([class*='size-'])]:size-3.5","icon-xs":"size-5 rounded-sm [&_svg:not([class*='size-'])]:size-2.5","icon-sm":"size-6 [&_svg:not([class*='size-'])]:size-3","icon-lg":"size-8 [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default",size:"default"}});function pt({className:t,variant:a="default",size:l="default",asChild:o=!1,...s}){const c=o?R0:"button";return R.jsx(c,{"data-slot":"button","data-variant":a,"data-size":l,className:Gt(RR({variant:a,size:l,className:t})),...s})}const OR="/api";async function ot(t,a){const l=await fetch(`${OR}${t}`,{headers:{"Content-Type":"application/json",...a?.headers},...a});if(!l.ok){const o=await l.text();throw new Error(`API error ${l.status}: ${o}`)}return l.json()}const on={info:()=>ot("/info"),memories:{list:t=>{const a=new URLSearchParams;t?.layer&&a.set("layer",t.layer),t?.scope&&a.set("scope",t.scope),t?.limit&&a.set("limit",String(t.limit));const l=a.toString();return ot(`/memories${l?"?"+l:""}`)},get:t=>ot(`/memories/${t}`),create:t=>ot("/memories",{method:"POST",body:JSON.stringify(t)}),update:(t,a)=>ot(`/memories/${t}`,{method:"PATCH",body:JSON.stringify(a)}),delete:t=>ot(`/memories/${t}`,{method:"DELETE"}),search:t=>ot("/memories/search",{method:"POST",body:JSON.stringify(t)})},graph:{entities:t=>{const a=new URLSearchParams;t?.scope&&a.set("scope",t.scope),t?.limit&&a.set("limit",String(t.limit));const l=a.toString();return ot(`/graph/entities${l?"?"+l:""}`)},createEntity:t=>ot("/graph/entities",{method:"POST",body:JSON.stringify(t)}),edges:t=>{const a=new URLSearchParams;t?.scope&&a.set("scope",t.scope),t?.includeExpired&&a.set("includeExpired","true"),t?.limit&&a.set("limit",String(t.limit));const l=a.toString();return ot(`/graph/edges${l?"?"+l:""}`)},createEdge:t=>ot("/graph/edges",{method:"POST",body:JSON.stringify(t)}),updateEdge:(t,a)=>ot(`/graph/edges/${t}`,{method:"PATCH",body:JSON.stringify(a)}),deleteEdge:t=>ot(`/graph/edges/${t}`,{method:"DELETE"}),search:t=>ot("/graph/search",{method:"POST",body:JSON.stringify(t)})},sessions:{list:t=>{const a=new URLSearchParams;t?.scope&&a.set("scope",t.scope),t?.limit&&a.set("limit",String(t.limit));const l=a.toString();return ot(`/sessions${l?"?"+l:""}`)}},episodes:{list:t=>{const a=new URLSearchParams;t?.scope&&a.set("scope",t.scope),t?.limit&&a.set("limit",String(t.limit));const l=a.toString();return ot(`/episodes${l?"?"+l:""}`)},get:t=>ot(`/episodes/${t}`)},context:{get:t=>{const a=new URLSearchParams;t?.scope&&a.set("scope",t.scope),t?.maxMemories&&a.set("maxMemories",String(t.maxMemories));const l=a.toString();return ot(`/context${l?"?"+l:""}`)}}},vx=S.createContext("all");function NR(){return S.useContext(vx)}function lu(){const t=NR();return t==="all"?void 0:t}function Aa({className:t,size:a="default",...l}){return R.jsx("div",{"data-slot":"card","data-size":a,className:Gt("ring-foreground/10 bg-card text-card-foreground group/card flex flex-col gap-4 overflow-hidden rounded-lg py-4 text-xs/relaxed ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",t),...l})}const MR=nh("h-5 gap-1 rounded-full border border-transparent px-2 py-0.5 text-[0.625rem] font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-2.5! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground bg-input/20 dark:bg-input/30",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function Na({className:t,variant:a="default",asChild:l=!1,...o}){const s=l?R0:"span";return R.jsx(s,{"data-slot":"badge","data-variant":a,className:Gt(MR({variant:a}),t),...o})}function Er({className:t,type:a,...l}){return R.jsx("input",{type:a,"data-slot":"input",className:Gt("bg-input/20 dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 file:text-foreground placeholder:text-muted-foreground h-7 w-full min-w-0 rounded-md border px-2 py-0.5 text-sm transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-xs/relaxed file:font-medium focus-visible:ring-2 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-2 md:text-xs/relaxed",t),...l})}function wy({className:t,...a}){return R.jsx("textarea",{"data-slot":"textarea",className:Gt("border-input bg-input/20 dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full resize-none rounded-md border px-2 py-2 text-sm transition-colors outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-2 md:text-xs/relaxed",t),...a})}const zR=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),DR=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,l,o)=>o?o.toUpperCase():l.toLowerCase()),Ey=t=>{const a=DR(t);return a.charAt(0).toUpperCase()+a.slice(1)},yx=(...t)=>t.filter((a,l,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===l).join(" ").trim(),jR=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var LR={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const UR=S.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:s="",children:c,iconNode:f,...h},p)=>S.createElement("svg",{ref:p,...LR,width:a,height:a,stroke:t,strokeWidth:o?Number(l)*24/Number(a):l,className:yx("lucide",s),...!c&&!jR(h)&&{"aria-hidden":"true"},...h},[...f.map(([m,g])=>S.createElement(m,g)),...Array.isArray(c)?c:[c]]));const ah=(t,a)=>{const l=S.forwardRef(({className:o,...s},c)=>S.createElement(UR,{ref:c,iconNode:a,className:yx(`lucide-${zR(Ey(t))}`,`lucide-${t}`,o),...s}));return l.displayName=Ey(t),l};const HR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],BR=ah("check",HR);const kR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bx=ah("chevron-down",kR);const qR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],GR=ah("chevron-up",qR);function Zf({...t}){return R.jsx(bA,{"data-slot":"select",...t})}function Ff({...t}){return R.jsx(SA,{"data-slot":"select-value",...t})}function Pf({className:t,size:a="default",children:l,...o}){return R.jsxs(xA,{"data-slot":"select-trigger","data-size":a,className:Gt("border-input data-placeholder:text-muted-foreground bg-input/20 dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/30 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex w-fit items-center justify-between gap-1.5 rounded-md border px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-2 data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",t),...o,children:[l,R.jsx(wA,{asChild:!0,children:R.jsx(bx,{className:"text-muted-foreground pointer-events-none size-3.5"})})]})}function $f({className:t,children:a,position:l="item-aligned",align:o="center",...s}){return R.jsx(EA,{children:R.jsxs(_A,{"data-slot":"select-content","data-align-trigger":l==="item-aligned",className:Gt("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none",l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:l,align:o,...s,children:[R.jsx(VR,{}),R.jsx(CA,{"data-position":l,className:Gt("data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)",l==="popper"&&""),children:a}),R.jsx(YR,{})]})})}function gs({className:t,children:a,...l}){return R.jsxs(TA,{"data-slot":"select-item",className:Gt("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...l,children:[R.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center",children:R.jsx(RA,{children:R.jsx(BR,{className:"pointer-events-none"})})}),R.jsx(AA,{children:a})]})}function VR({className:t,...a}){return R.jsx(OA,{"data-slot":"select-scroll-up-button",className:Gt("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5",t),...a,children:R.jsx(GR,{})})}function YR({className:t,...a}){return R.jsx(NA,{"data-slot":"select-scroll-down-button",className:Gt("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-3.5",t),...a,children:R.jsx(bx,{})})}const _y=["rule","working","long_term"],QR=["rule","decision","fact","note","skill"],XR={rule:"bg-red-500/20 text-red-400",working:"bg-blue-500/20 text-blue-400",long_term:"bg-green-500/20 text-green-400"},KR={rule:"bg-red-500/10 text-red-300",decision:"bg-purple-500/10 text-purple-300",fact:"bg-cyan-500/10 text-cyan-300",note:"bg-zinc-500/10 text-zinc-300",skill:"bg-amber-500/10 text-amber-300"};function ZR(){const t=Ps(),a=lu(),[l,o]=S.useState(""),[s,c]=S.useState(null),[f,h]=S.useState(""),[p,m]=S.useState("long_term"),[g,y]=S.useState("note"),[x,E]=S.useState(""),[A,b]=S.useState(!1),{data:w=[],isLoading:C}=sl({queryKey:["memories",l,a],queryFn:()=>on.memories.list({layer:l||void 0,scope:a})}),N=wr({mutationFn:F=>on.memories.create(F),onSuccess:()=>{t.invalidateQueries({queryKey:["memories"]}),b(!1),h(""),E("")}}),M=wr({mutationFn:({id:F,data:te})=>on.memories.update(F,te),onSuccess:()=>{t.invalidateQueries({queryKey:["memories"]}),c(null)}}),T=wr({mutationFn:F=>on.memories.delete(F),onSuccess:()=>t.invalidateQueries({queryKey:["memories"]})}),L=F=>{c(F.id),h(F.content),m(F.layer),y(F.type),E(F.tags?.join(", ")??"")},G=()=>{if(s){const F=x.split(",").map(te=>te.trim()).filter(Boolean);M.mutate({id:s,data:{content:f,layer:p,type:g,tags:F}})}},D=()=>{const F=x.split(",").map(te=>te.trim()).filter(Boolean);N.mutate({content:f,layer:p,type:g,tags:F.length>0?F:void 0})},H=({value:F,onValueChange:te})=>R.jsxs(Zf,{value:F,onValueChange:te,children:[R.jsx(Pf,{className:"w-[130px]",children:R.jsx(Ff,{})}),R.jsx($f,{children:_y.map(re=>R.jsx(gs,{value:re,children:re},re))})]}),ee=({value:F,onValueChange:te})=>R.jsxs(Zf,{value:F,onValueChange:te,children:[R.jsx(Pf,{className:"w-[120px]",children:R.jsx(Ff,{})}),R.jsx($f,{children:QR.map(re=>R.jsx(gs,{value:re,children:re},re))})]});return R.jsxs("div",{children:[R.jsxs("div",{className:"flex items-center justify-between mb-6",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Memories"}),R.jsxs("div",{className:"flex items-center gap-3",children:[R.jsxs(Zf,{value:l||"_all",onValueChange:F=>o(F==="_all"?"":F),children:[R.jsx(Pf,{className:"w-[140px]",children:R.jsx(Ff,{placeholder:"All layers"})}),R.jsxs($f,{children:[R.jsx(gs,{value:"_all",children:"All layers"}),_y.map(F=>R.jsx(gs,{value:F,children:F},F))]})]}),R.jsx(pt,{onClick:()=>{b(!0),h(""),m("long_term"),y("note"),E("")},children:"+ New"})]})]}),A&&R.jsxs(Aa,{className:"mb-4 p-4",children:[R.jsx(wy,{value:f,onChange:F=>h(F.target.value),placeholder:"Memory content...",rows:3,className:"mb-3"}),R.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[R.jsx(H,{value:p,onValueChange:m}),R.jsx(ee,{value:g,onValueChange:y}),R.jsx(Er,{value:x,onChange:F=>E(F.target.value),placeholder:"Tags (comma separated)",className:"flex-1"})]}),R.jsxs("div",{className:"flex gap-2",children:[R.jsx(pt,{onClick:D,children:"Create"}),R.jsx(pt,{variant:"ghost",onClick:()=>b(!1),children:"Cancel"})]})]}),C?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):w.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No memories found."}):R.jsx("div",{className:"space-y-2",children:w.map(F=>R.jsx(Aa,{className:"p-4 hover:border-muted-foreground/30 transition-colors",children:s===F.id?R.jsxs("div",{children:[R.jsx(wy,{value:f,onChange:te=>h(te.target.value),rows:3,className:"mb-3"}),R.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[R.jsx(H,{value:p,onValueChange:m}),R.jsx(ee,{value:g,onValueChange:y}),R.jsx(Er,{value:x,onChange:te=>E(te.target.value),placeholder:"Tags (comma separated)",className:"flex-1"})]}),R.jsxs("div",{className:"flex gap-2",children:[R.jsx(pt,{size:"sm",onClick:G,children:"Save"}),R.jsx(pt,{size:"sm",variant:"ghost",onClick:()=>c(null),children:"Cancel"})]})]}):R.jsxs("div",{children:[R.jsxs("div",{className:"flex items-start justify-between gap-4",children:[R.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap flex-1",children:F.content}),R.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[R.jsx(pt,{variant:"ghost",size:"sm",onClick:()=>L(F),children:"Edit"}),R.jsx(pt,{variant:"destructive",size:"sm",onClick:()=>{confirm("Delete this memory?")&&T.mutate(F.id)},children:"Delete"})]})]}),R.jsxs("div",{className:"flex items-center gap-2 mt-3 flex-wrap",children:[R.jsx(Na,{className:XR[F.layer],children:F.layer}),R.jsx(Na,{className:KR[F.type],children:F.type}),F.tags?.map(te=>R.jsx(Na,{variant:"secondary",children:te},te)),R.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:new Date(F.updatedAt).toLocaleString()})]})]})},F.id))})]})}var FR={value:()=>{}};function qr(){for(var t=0,a=arguments.length,l={},o;t<a;++t){if(!(o=arguments[t]+"")||o in l||/[\s.]/.test(o))throw new Error("illegal type: "+o);l[o]=[]}return new As(l)}function As(t){this._=t}function PR(t,a){return t.trim().split(/^|\s+/).map(function(l){var o="",s=l.indexOf(".");if(s>=0&&(o=l.slice(s+1),l=l.slice(0,s)),l&&!a.hasOwnProperty(l))throw new Error("unknown type: "+l);return{type:l,name:o}})}As.prototype=qr.prototype={constructor:As,on:function(t,a){var l=this._,o=PR(t+"",l),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(t=o[c]).type)&&(s=$R(l[s],t.name)))return s;return}if(a!=null&&typeof a!="function")throw new Error("invalid callback: "+a);for(;++c<f;)if(s=(t=o[c]).type)l[s]=Cy(l[s],t.name,a);else if(a==null)for(s in l)l[s]=Cy(l[s],t.name,null);return this},copy:function(){var t={},a=this._;for(var l in a)t[l]=a[l].slice();return new As(t)},call:function(t,a){if((s=arguments.length-2)>0)for(var l=new Array(s),o=0,s,c;o<s;++o)l[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=this._[t],o=0,s=c.length;o<s;++o)c[o].value.apply(a,l)},apply:function(t,a,l){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],s=0,c=o.length;s<c;++s)o[s].value.apply(a,l)}};function $R(t,a){for(var l=0,o=t.length,s;l<o;++l)if((s=t[l]).name===a)return s.value}function Cy(t,a,l){for(var o=0,s=t.length;o<s;++o)if(t[o].name===a){t[o]=FR,t=t.slice(0,o).concat(t.slice(o+1));break}return l!=null&&t.push({name:a,value:l}),t}var Sd="http://www.w3.org/1999/xhtml";const Ty={svg:"http://www.w3.org/2000/svg",xhtml:Sd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ru(t){var a=t+="",l=a.indexOf(":");return l>=0&&(a=t.slice(0,l))!=="xmlns"&&(t=t.slice(l+1)),Ty.hasOwnProperty(a)?{space:Ty[a],local:t}:t}function JR(t){return function(){var a=this.ownerDocument,l=this.namespaceURI;return l===Sd&&a.documentElement.namespaceURI===Sd?a.createElement(t):a.createElementNS(l,t)}}function IR(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function xx(t){var a=ru(t);return(a.local?IR:JR)(a)}function WR(){}function ih(t){return t==null?WR:function(){return this.querySelector(t)}}function eO(t){typeof t!="function"&&(t=ih(t));for(var a=this._groups,l=a.length,o=new Array(l),s=0;s<l;++s)for(var c=a[s],f=c.length,h=o[s]=new Array(f),p,m,g=0;g<f;++g)(p=c[g])&&(m=t.call(p,p.__data__,g,c))&&("__data__"in p&&(m.__data__=p.__data__),h[g]=m);return new Vt(o,this._parents)}function tO(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function nO(){return[]}function Sx(t){return t==null?nO:function(){return this.querySelectorAll(t)}}function aO(t){return function(){return tO(t.apply(this,arguments))}}function iO(t){typeof t=="function"?t=aO(t):t=Sx(t);for(var a=this._groups,l=a.length,o=[],s=[],c=0;c<l;++c)for(var f=a[c],h=f.length,p,m=0;m<h;++m)(p=f[m])&&(o.push(t.call(p,p.__data__,m,f)),s.push(p));return new Vt(o,s)}function wx(t){return function(){return this.matches(t)}}function Ex(t){return function(a){return a.matches(t)}}var lO=Array.prototype.find;function rO(t){return function(){return lO.call(this.children,t)}}function oO(){return this.firstElementChild}function sO(t){return this.select(t==null?oO:rO(typeof t=="function"?t:Ex(t)))}var uO=Array.prototype.filter;function cO(){return Array.from(this.children)}function fO(t){return function(){return uO.call(this.children,t)}}function dO(t){return this.selectAll(t==null?cO:fO(typeof t=="function"?t:Ex(t)))}function hO(t){typeof t!="function"&&(t=wx(t));for(var a=this._groups,l=a.length,o=new Array(l),s=0;s<l;++s)for(var c=a[s],f=c.length,h=o[s]=[],p,m=0;m<f;++m)(p=c[m])&&t.call(p,p.__data__,m,c)&&h.push(p);return new Vt(o,this._parents)}function _x(t){return new Array(t.length)}function mO(){return new Vt(this._enter||this._groups.map(_x),this._parents)}function Gs(t,a){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=a}Gs.prototype={constructor:Gs,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,a){return this._parent.insertBefore(t,a)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function pO(t){return function(){return t}}function gO(t,a,l,o,s,c){for(var f=0,h,p=a.length,m=c.length;f<m;++f)(h=a[f])?(h.__data__=c[f],o[f]=h):l[f]=new Gs(t,c[f]);for(;f<p;++f)(h=a[f])&&(s[f]=h)}function vO(t,a,l,o,s,c,f){var h,p,m=new Map,g=a.length,y=c.length,x=new Array(g),E;for(h=0;h<g;++h)(p=a[h])&&(x[h]=E=f.call(p,p.__data__,h,a)+"",m.has(E)?s[h]=p:m.set(E,p));for(h=0;h<y;++h)E=f.call(t,c[h],h,c)+"",(p=m.get(E))?(o[h]=p,p.__data__=c[h],m.delete(E)):l[h]=new Gs(t,c[h]);for(h=0;h<g;++h)(p=a[h])&&m.get(x[h])===p&&(s[h]=p)}function yO(t){return t.__data__}function bO(t,a){if(!arguments.length)return Array.from(this,yO);var l=a?vO:gO,o=this._parents,s=this._groups;typeof t!="function"&&(t=pO(t));for(var c=s.length,f=new Array(c),h=new Array(c),p=new Array(c),m=0;m<c;++m){var g=o[m],y=s[m],x=y.length,E=xO(t.call(g,g&&g.__data__,m,o)),A=E.length,b=h[m]=new Array(A),w=f[m]=new Array(A),C=p[m]=new Array(x);l(g,y,b,w,C,E,a);for(var N=0,M=0,T,L;N<A;++N)if(T=b[N]){for(N>=M&&(M=N+1);!(L=w[M])&&++M<A;);T._next=L||null}}return f=new Vt(f,o),f._enter=h,f._exit=p,f}function xO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function SO(){return new Vt(this._exit||this._groups.map(_x),this._parents)}function wO(t,a,l){var o=this.enter(),s=this,c=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),a!=null&&(s=a(s),s&&(s=s.selection())),l==null?c.remove():l(c),o&&s?o.merge(s).order():s}function EO(t){for(var a=t.selection?t.selection():t,l=this._groups,o=a._groups,s=l.length,c=o.length,f=Math.min(s,c),h=new Array(s),p=0;p<f;++p)for(var m=l[p],g=o[p],y=m.length,x=h[p]=new Array(y),E,A=0;A<y;++A)(E=m[A]||g[A])&&(x[A]=E);for(;p<s;++p)h[p]=l[p];return new Vt(h,this._parents)}function _O(){for(var t=this._groups,a=-1,l=t.length;++a<l;)for(var o=t[a],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function CO(t){t||(t=TO);function a(y,x){return y&&x?t(y.__data__,x.__data__):!y-!x}for(var l=this._groups,o=l.length,s=new Array(o),c=0;c<o;++c){for(var f=l[c],h=f.length,p=s[c]=new Array(h),m,g=0;g<h;++g)(m=f[g])&&(p[g]=m);p.sort(a)}return new Vt(s,this._parents).order()}function TO(t,a){return t<a?-1:t>a?1:t>=a?0:NaN}function AO(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function RO(){return Array.from(this)}function OO(){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var o=t[a],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function NO(){let t=0;for(const a of this)++t;return t}function MO(){return!this.node()}function zO(t){for(var a=this._groups,l=0,o=a.length;l<o;++l)for(var s=a[l],c=0,f=s.length,h;c<f;++c)(h=s[c])&&t.call(h,h.__data__,c,s);return this}function DO(t){return function(){this.removeAttribute(t)}}function jO(t){return function(){this.removeAttributeNS(t.space,t.local)}}function LO(t,a){return function(){this.setAttribute(t,a)}}function UO(t,a){return function(){this.setAttributeNS(t.space,t.local,a)}}function HO(t,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttribute(t):this.setAttribute(t,l)}}function BO(t,a){return function(){var l=a.apply(this,arguments);l==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,l)}}function kO(t,a){var l=ru(t);if(arguments.length<2){var o=this.node();return l.local?o.getAttributeNS(l.space,l.local):o.getAttribute(l)}return this.each((a==null?l.local?jO:DO:typeof a=="function"?l.local?BO:HO:l.local?UO:LO)(l,a))}function Cx(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function qO(t){return function(){this.style.removeProperty(t)}}function GO(t,a,l){return function(){this.style.setProperty(t,a,l)}}function VO(t,a,l){return function(){var o=a.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,l)}}function YO(t,a,l){return arguments.length>1?this.each((a==null?qO:typeof a=="function"?VO:GO)(t,a,l??"")):fl(this.node(),t)}function fl(t,a){return t.style.getPropertyValue(a)||Cx(t).getComputedStyle(t,null).getPropertyValue(a)}function QO(t){return function(){delete this[t]}}function XO(t,a){return function(){this[t]=a}}function KO(t,a){return function(){var l=a.apply(this,arguments);l==null?delete this[t]:this[t]=l}}function ZO(t,a){return arguments.length>1?this.each((a==null?QO:typeof a=="function"?KO:XO)(t,a)):this.node()[t]}function Tx(t){return t.trim().split(/^|\s+/)}function lh(t){return t.classList||new Ax(t)}function Ax(t){this._node=t,this._names=Tx(t.getAttribute("class")||"")}Ax.prototype={add:function(t){var a=this._names.indexOf(t);a<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var a=this._names.indexOf(t);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Rx(t,a){for(var l=lh(t),o=-1,s=a.length;++o<s;)l.add(a[o])}function Ox(t,a){for(var l=lh(t),o=-1,s=a.length;++o<s;)l.remove(a[o])}function FO(t){return function(){Rx(this,t)}}function PO(t){return function(){Ox(this,t)}}function $O(t,a){return function(){(a.apply(this,arguments)?Rx:Ox)(this,t)}}function JO(t,a){var l=Tx(t+"");if(arguments.length<2){for(var o=lh(this.node()),s=-1,c=l.length;++s<c;)if(!o.contains(l[s]))return!1;return!0}return this.each((typeof a=="function"?$O:a?FO:PO)(l,a))}function IO(){this.textContent=""}function WO(t){return function(){this.textContent=t}}function eN(t){return function(){var a=t.apply(this,arguments);this.textContent=a??""}}function tN(t){return arguments.length?this.each(t==null?IO:(typeof t=="function"?eN:WO)(t)):this.node().textContent}function nN(){this.innerHTML=""}function aN(t){return function(){this.innerHTML=t}}function iN(t){return function(){var a=t.apply(this,arguments);this.innerHTML=a??""}}function lN(t){return arguments.length?this.each(t==null?nN:(typeof t=="function"?iN:aN)(t)):this.node().innerHTML}function rN(){this.nextSibling&&this.parentNode.appendChild(this)}function oN(){return this.each(rN)}function sN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uN(){return this.each(sN)}function cN(t){var a=typeof t=="function"?t:xx(t);return this.select(function(){return this.appendChild(a.apply(this,arguments))})}function fN(){return null}function dN(t,a){var l=typeof t=="function"?t:xx(t),o=a==null?fN:typeof a=="function"?a:ih(a);return this.select(function(){return this.insertBefore(l.apply(this,arguments),o.apply(this,arguments)||null)})}function hN(){var t=this.parentNode;t&&t.removeChild(this)}function mN(){return this.each(hN)}function pN(){var t=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}function gN(){var t=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}function vN(t){return this.select(t?gN:pN)}function yN(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bN(t){return function(a){t.call(this,a,this.__data__)}}function xN(t){return t.trim().split(/^|\s+/).map(function(a){var l="",o=a.indexOf(".");return o>=0&&(l=a.slice(o+1),a=a.slice(0,o)),{type:a,name:l}})}function SN(t){return function(){var a=this.__on;if(a){for(var l=0,o=-1,s=a.length,c;l<s;++l)c=a[l],(!t.type||c.type===t.type)&&c.name===t.name?this.removeEventListener(c.type,c.listener,c.options):a[++o]=c;++o?a.length=o:delete this.__on}}}function wN(t,a,l){return function(){var o=this.__on,s,c=bN(a);if(o){for(var f=0,h=o.length;f<h;++f)if((s=o[f]).type===t.type&&s.name===t.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=l),s.value=a;return}}this.addEventListener(t.type,c,l),s={type:t.type,name:t.name,value:a,listener:c,options:l},o?o.push(s):this.__on=[s]}}function EN(t,a,l){var o=xN(t+""),s,c=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,m=h.length,g;p<m;++p)for(s=0,g=h[p];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(h=a?wN:SN,s=0;s<c;++s)this.each(h(o[s],a,l));return this}function Nx(t,a,l){var o=Cx(t),s=o.CustomEvent;typeof s=="function"?s=new s(a,l):(s=o.document.createEvent("Event"),l?(s.initEvent(a,l.bubbles,l.cancelable),s.detail=l.detail):s.initEvent(a,!1,!1)),t.dispatchEvent(s)}function _N(t,a){return function(){return Nx(this,t,a)}}function CN(t,a){return function(){return Nx(this,t,a.apply(this,arguments))}}function TN(t,a){return this.each((typeof a=="function"?CN:_N)(t,a))}function*AN(){for(var t=this._groups,a=0,l=t.length;a<l;++a)for(var o=t[a],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var Mx=[null];function Vt(t,a){this._groups=t,this._parents=a}function Gr(){return new Vt([[document.documentElement]],Mx)}function RN(){return this}Vt.prototype=Gr.prototype={constructor:Vt,select:eO,selectAll:iO,selectChild:sO,selectChildren:dO,filter:hO,data:bO,enter:mO,exit:SO,join:wO,merge:EO,selection:RN,order:_O,sort:CO,call:AO,nodes:RO,node:OO,size:NO,empty:MO,each:zO,attr:kO,style:YO,property:ZO,classed:JO,text:tN,html:lN,raise:oN,lower:uN,append:cN,insert:dN,remove:mN,clone:vN,datum:yN,on:EN,dispatch:TN,[Symbol.iterator]:AN};function gn(t){return typeof t=="string"?new Vt([[document.querySelector(t)]],[document.documentElement]):new Vt([[t]],Mx)}function ON(t){let a;for(;a=t.sourceEvent;)t=a;return t}function Xn(t,a){if(t=ON(t),a===void 0&&(a=t.currentTarget),a){var l=a.ownerSVGElement||a;if(l.createSVGPoint){var o=l.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(a.getScreenCTM().inverse()),[o.x,o.y]}if(a.getBoundingClientRect){var s=a.getBoundingClientRect();return[t.clientX-s.left-a.clientLeft,t.clientY-s.top-a.clientTop]}}return[t.pageX,t.pageY]}const NN={passive:!1},Rr={capture:!0,passive:!1};function Jf(t){t.stopImmediatePropagation()}function rl(t){t.preventDefault(),t.stopImmediatePropagation()}function zx(t){var a=t.document.documentElement,l=gn(t).on("dragstart.drag",rl,Rr);"onselectstart"in a?l.on("selectstart.drag",rl,Rr):(a.__noselect=a.style.MozUserSelect,a.style.MozUserSelect="none")}function Dx(t,a){var l=t.document.documentElement,o=gn(t).on("dragstart.drag",null);a&&(o.on("click.drag",rl,Rr),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in l?o.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}const vs=t=>()=>t;function wd(t,{sourceEvent:a,subject:l,target:o,identifier:s,active:c,x:f,y:h,dx:p,dy:m,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},subject:{value:l,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:m,enumerable:!0,configurable:!0},_:{value:g}})}wd.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function MN(t){return!t.ctrlKey&&!t.button}function zN(){return this.parentNode}function DN(t,a){return a??{x:t.x,y:t.y}}function jN(){return navigator.maxTouchPoints||"ontouchstart"in this}function LN(){var t=MN,a=zN,l=DN,o=jN,s={},c=qr("start","drag","end"),f=0,h,p,m,g,y=0;function x(T){T.on("mousedown.drag",E).filter(o).on("touchstart.drag",w).on("touchmove.drag",C,NN).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function E(T,L){if(!(g||!t.call(this,T,L))){var G=M(this,a.call(this,T,L),T,L,"mouse");G&&(gn(T.view).on("mousemove.drag",A,Rr).on("mouseup.drag",b,Rr),zx(T.view),Jf(T),m=!1,h=T.clientX,p=T.clientY,G("start",T))}}function A(T){if(rl(T),!m){var L=T.clientX-h,G=T.clientY-p;m=L*L+G*G>y}s.mouse("drag",T)}function b(T){gn(T.view).on("mousemove.drag mouseup.drag",null),Dx(T.view,m),rl(T),s.mouse("end",T)}function w(T,L){if(t.call(this,T,L)){var G=T.changedTouches,D=a.call(this,T,L),H=G.length,ee,F;for(ee=0;ee<H;++ee)(F=M(this,D,T,L,G[ee].identifier,G[ee]))&&(Jf(T),F("start",T,G[ee]))}}function C(T){var L=T.changedTouches,G=L.length,D,H;for(D=0;D<G;++D)(H=s[L[D].identifier])&&(rl(T),H("drag",T,L[D]))}function N(T){var L=T.changedTouches,G=L.length,D,H;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),D=0;D<G;++D)(H=s[L[D].identifier])&&(Jf(T),H("end",T,L[D]))}function M(T,L,G,D,H,ee){var F=c.copy(),te=Xn(ee||G,L),re,ce,B;if((B=l.call(T,new wd("beforestart",{sourceEvent:G,target:x,identifier:H,active:f,x:te[0],y:te[1],dx:0,dy:0,dispatch:F}),D))!=null)return re=B.x-te[0]||0,ce=B.y-te[1]||0,function W(O,q,K){var ne=te,P;switch(O){case"start":s[H]=W,P=f++;break;case"end":delete s[H],--f;case"drag":te=Xn(K||q,L),P=f;break}F.call(O,T,new wd(O,{sourceEvent:q,subject:B,target:x,identifier:H,active:P,x:te[0]+re,y:te[1]+ce,dx:te[0]-ne[0],dy:te[1]-ne[1],dispatch:F}),D)}}return x.filter=function(T){return arguments.length?(t=typeof T=="function"?T:vs(!!T),x):t},x.container=function(T){return arguments.length?(a=typeof T=="function"?T:vs(T),x):a},x.subject=function(T){return arguments.length?(l=typeof T=="function"?T:vs(T),x):l},x.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:vs(!!T),x):o},x.on=function(){var T=c.on.apply(c,arguments);return T===c?x:T},x.clickDistance=function(T){return arguments.length?(y=(T=+T)*T,x):Math.sqrt(y)},x}function rh(t,a,l){t.prototype=a.prototype=l,l.constructor=t}function jx(t,a){var l=Object.create(t.prototype);for(var o in a)l[o]=a[o];return l}function Vr(){}var Or=.7,Vs=1/Or,ol="\\s*([+-]?\\d+)\\s*",Nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",UN=/^#([0-9a-f]{3,8})$/,HN=new RegExp(`^rgb\\(${ol},${ol},${ol}\\)$`),BN=new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`),kN=new RegExp(`^rgba\\(${ol},${ol},${ol},${Nr}\\)$`),qN=new RegExp(`^rgba\\(${xn},${xn},${xn},${Nr}\\)$`),GN=new RegExp(`^hsl\\(${Nr},${xn},${xn}\\)$`),VN=new RegExp(`^hsla\\(${Nr},${xn},${xn},${Nr}\\)$`),Ay={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};rh(Vr,Mr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ry,formatHex:Ry,formatHex8:YN,formatHsl:QN,formatRgb:Oy,toString:Oy});function Ry(){return this.rgb().formatHex()}function YN(){return this.rgb().formatHex8()}function QN(){return Lx(this).formatHsl()}function Oy(){return this.rgb().formatRgb()}function Mr(t){var a,l;return t=(t+"").trim().toLowerCase(),(a=UN.exec(t))?(l=a[1].length,a=parseInt(a[1],16),l===6?Ny(a):l===3?new At(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):l===8?ys(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):l===4?ys(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=HN.exec(t))?new At(a[1],a[2],a[3],1):(a=BN.exec(t))?new At(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=kN.exec(t))?ys(a[1],a[2],a[3],a[4]):(a=qN.exec(t))?ys(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=GN.exec(t))?Dy(a[1],a[2]/100,a[3]/100,1):(a=VN.exec(t))?Dy(a[1],a[2]/100,a[3]/100,a[4]):Ay.hasOwnProperty(t)?Ny(Ay[t]):t==="transparent"?new At(NaN,NaN,NaN,0):null}function Ny(t){return new At(t>>16&255,t>>8&255,t&255,1)}function ys(t,a,l,o){return o<=0&&(t=a=l=NaN),new At(t,a,l,o)}function XN(t){return t instanceof Vr||(t=Mr(t)),t?(t=t.rgb(),new At(t.r,t.g,t.b,t.opacity)):new At}function Ed(t,a,l,o){return arguments.length===1?XN(t):new At(t,a,l,o??1)}function At(t,a,l,o){this.r=+t,this.g=+a,this.b=+l,this.opacity=+o}rh(At,Ed,jx(Vr,{brighter(t){return t=t==null?Vs:Math.pow(Vs,t),new At(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Or:Math.pow(Or,t),new At(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new At(si(this.r),si(this.g),si(this.b),Ys(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:My,formatHex:My,formatHex8:KN,formatRgb:zy,toString:zy}));function My(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}`}function KN(){return`#${oi(this.r)}${oi(this.g)}${oi(this.b)}${oi((isNaN(this.opacity)?1:this.opacity)*255)}`}function zy(){const t=Ys(this.opacity);return`${t===1?"rgb(":"rgba("}${si(this.r)}, ${si(this.g)}, ${si(this.b)}${t===1?")":`, ${t})`}`}function Ys(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function si(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function oi(t){return t=si(t),(t<16?"0":"")+t.toString(16)}function Dy(t,a,l,o){return o<=0?t=a=l=NaN:l<=0||l>=1?t=a=NaN:a<=0&&(t=NaN),new rn(t,a,l,o)}function Lx(t){if(t instanceof rn)return new rn(t.h,t.s,t.l,t.opacity);if(t instanceof Vr||(t=Mr(t)),!t)return new rn;if(t instanceof rn)return t;t=t.rgb();var a=t.r/255,l=t.g/255,o=t.b/255,s=Math.min(a,l,o),c=Math.max(a,l,o),f=NaN,h=c-s,p=(c+s)/2;return h?(a===c?f=(l-o)/h+(l<o)*6:l===c?f=(o-a)/h+2:f=(a-l)/h+4,h/=p<.5?c+s:2-c-s,f*=60):h=p>0&&p<1?0:f,new rn(f,h,p,t.opacity)}function ZN(t,a,l,o){return arguments.length===1?Lx(t):new rn(t,a,l,o??1)}function rn(t,a,l,o){this.h=+t,this.s=+a,this.l=+l,this.opacity=+o}rh(rn,ZN,jx(Vr,{brighter(t){return t=t==null?Vs:Math.pow(Vs,t),new rn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Or:Math.pow(Or,t),new rn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,a=isNaN(t)||isNaN(this.s)?0:this.s,l=this.l,o=l+(l<.5?l:1-l)*a,s=2*l-o;return new At(If(t>=240?t-240:t+120,s,o),If(t,s,o),If(t<120?t+240:t-120,s,o),this.opacity)},clamp(){return new rn(jy(this.h),bs(this.s),bs(this.l),Ys(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ys(this.opacity);return`${t===1?"hsl(":"hsla("}${jy(this.h)}, ${bs(this.s)*100}%, ${bs(this.l)*100}%${t===1?")":`, ${t})`}`}}));function jy(t){return t=(t||0)%360,t<0?t+360:t}function bs(t){return Math.max(0,Math.min(1,t||0))}function If(t,a,l){return(t<60?a+(l-a)*t/60:t<180?l:t<240?a+(l-a)*(240-t)/60:a)*255}const Ux=t=>()=>t;function FN(t,a){return function(l){return t+l*a}}function PN(t,a,l){return t=Math.pow(t,l),a=Math.pow(a,l)-t,l=1/l,function(o){return Math.pow(t+o*a,l)}}function $N(t){return(t=+t)==1?Hx:function(a,l){return l-a?PN(a,l,t):Ux(isNaN(a)?l:a)}}function Hx(t,a){var l=a-t;return l?FN(t,l):Ux(isNaN(t)?a:t)}const Ly=(function t(a){var l=$N(a);function o(s,c){var f=l((s=Ed(s)).r,(c=Ed(c)).r),h=l(s.g,c.g),p=l(s.b,c.b),m=Hx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=h(g),s.b=p(g),s.opacity=m(g),s+""}}return o.gamma=t,o})(1);function Ta(t,a){return t=+t,a=+a,function(l){return t*(1-l)+a*l}}var _d=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wf=new RegExp(_d.source,"g");function JN(t){return function(){return t}}function IN(t){return function(a){return t(a)+""}}function WN(t,a){var l=_d.lastIndex=Wf.lastIndex=0,o,s,c,f=-1,h=[],p=[];for(t=t+"",a=a+"";(o=_d.exec(t))&&(s=Wf.exec(a));)(c=s.index)>l&&(c=a.slice(l,c),h[f]?h[f]+=c:h[++f]=c),(o=o[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,p.push({i:f,x:Ta(o,s)})),l=Wf.lastIndex;return l<a.length&&(c=a.slice(l),h[f]?h[f]+=c:h[++f]=c),h.length<2?p[0]?IN(p[0].x):JN(a):(a=p.length,function(m){for(var g=0,y;g<a;++g)h[(y=p[g]).i]=y.x(m);return h.join("")})}var Uy=180/Math.PI,Cd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Bx(t,a,l,o,s,c){var f,h,p;return(f=Math.sqrt(t*t+a*a))&&(t/=f,a/=f),(p=t*l+a*o)&&(l-=t*p,o-=a*p),(h=Math.sqrt(l*l+o*o))&&(l/=h,o/=h,p/=h),t*o<a*l&&(t=-t,a=-a,p=-p,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(a,t)*Uy,skewX:Math.atan(p)*Uy,scaleX:f,scaleY:h}}var xs;function eM(t){const a=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return a.isIdentity?Cd:Bx(a.a,a.b,a.c,a.d,a.e,a.f)}function tM(t){return t==null||(xs||(xs=document.createElementNS("http://www.w3.org/2000/svg","g")),xs.setAttribute("transform",t),!(t=xs.transform.baseVal.consolidate()))?Cd:(t=t.matrix,Bx(t.a,t.b,t.c,t.d,t.e,t.f))}function kx(t,a,l,o){function s(m){return m.length?m.pop()+" ":""}function c(m,g,y,x,E,A){if(m!==y||g!==x){var b=E.push("translate(",null,a,null,l);A.push({i:b-4,x:Ta(m,y)},{i:b-2,x:Ta(g,x)})}else(y||x)&&E.push("translate("+y+a+x+l)}function f(m,g,y,x){m!==g?(m-g>180?g+=360:g-m>180&&(m+=360),x.push({i:y.push(s(y)+"rotate(",null,o)-2,x:Ta(m,g)})):g&&y.push(s(y)+"rotate("+g+o)}function h(m,g,y,x){m!==g?x.push({i:y.push(s(y)+"skewX(",null,o)-2,x:Ta(m,g)}):g&&y.push(s(y)+"skewX("+g+o)}function p(m,g,y,x,E,A){if(m!==y||g!==x){var b=E.push(s(E)+"scale(",null,",",null,")");A.push({i:b-4,x:Ta(m,y)},{i:b-2,x:Ta(g,x)})}else(y!==1||x!==1)&&E.push(s(E)+"scale("+y+","+x+")")}return function(m,g){var y=[],x=[];return m=t(m),g=t(g),c(m.translateX,m.translateY,g.translateX,g.translateY,y,x),f(m.rotate,g.rotate,y,x),h(m.skewX,g.skewX,y,x),p(m.scaleX,m.scaleY,g.scaleX,g.scaleY,y,x),m=g=null,function(E){for(var A=-1,b=x.length,w;++A<b;)y[(w=x[A]).i]=w.x(E);return y.join("")}}}var nM=kx(eM,"px, ","px)","deg)"),aM=kx(tM,", ",")",")"),iM=1e-12;function Hy(t){return((t=Math.exp(t))+1/t)/2}function lM(t){return((t=Math.exp(t))-1/t)/2}function rM(t){return((t=Math.exp(2*t))-1)/(t+1)}const oM=(function t(a,l,o){function s(c,f){var h=c[0],p=c[1],m=c[2],g=f[0],y=f[1],x=f[2],E=g-h,A=y-p,b=E*E+A*A,w,C;if(b<iM)C=Math.log(x/m)/a,w=function(D){return[h+D*E,p+D*A,m*Math.exp(a*D*C)]};else{var N=Math.sqrt(b),M=(x*x-m*m+o*b)/(2*m*l*N),T=(x*x-m*m-o*b)/(2*x*l*N),L=Math.log(Math.sqrt(M*M+1)-M),G=Math.log(Math.sqrt(T*T+1)-T);C=(G-L)/a,w=function(D){var H=D*C,ee=Hy(L),F=m/(l*N)*(ee*rM(a*H+L)-lM(L));return[h+F*E,p+F*A,m*ee/Hy(a*H+L)]}}return w.duration=C*1e3*a/Math.SQRT2,w}return s.rho=function(c){var f=Math.max(.001,+c),h=f*f,p=h*h;return t(f,h,p)},s})(Math.SQRT2,2,4);var dl=0,xr=0,gr=0,qx=1e3,Qs,Sr,Xs=0,pi=0,ou=0,zr=typeof performance=="object"&&performance.now?performance:Date,Gx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oh(){return pi||(Gx(sM),pi=zr.now()+ou)}function sM(){pi=0}function Ks(){this._call=this._time=this._next=null}Ks.prototype=sh.prototype={constructor:Ks,restart:function(t,a,l){if(typeof t!="function")throw new TypeError("callback is not a function");l=(l==null?oh():+l)+(a==null?0:+a),!this._next&&Sr!==this&&(Sr?Sr._next=this:Qs=this,Sr=this),this._call=t,this._time=l,Td()},stop:function(){this._call&&(this._call=null,this._time=1/0,Td())}};function sh(t,a,l){var o=new Ks;return o.restart(t,a,l),o}function uM(){oh(),++dl;for(var t=Qs,a;t;)(a=pi-t._time)>=0&&t._call.call(void 0,a),t=t._next;--dl}function By(){pi=(Xs=zr.now())+ou,dl=xr=0;try{uM()}finally{dl=0,fM(),pi=0}}function cM(){var t=zr.now(),a=t-Xs;a>qx&&(ou-=a,Xs=t)}function fM(){for(var t,a=Qs,l,o=1/0;a;)a._call?(o>a._time&&(o=a._time),t=a,a=a._next):(l=a._next,a._next=null,a=t?t._next=l:Qs=l);Sr=t,Td(o)}function Td(t){if(!dl){xr&&(xr=clearTimeout(xr));var a=t-pi;a>24?(t<1/0&&(xr=setTimeout(By,t-zr.now()-ou)),gr&&(gr=clearInterval(gr))):(gr||(Xs=zr.now(),gr=setInterval(cM,qx)),dl=1,Gx(By))}}function ky(t,a,l){var o=new Ks;return a=a==null?0:+a,o.restart(s=>{o.stop(),t(s+a)},a,l),o}var dM=qr("start","end","cancel","interrupt"),hM=[],Vx=0,qy=1,Ad=2,Rs=3,Gy=4,Rd=5,Os=6;function su(t,a,l,o,s,c){var f=t.__transition;if(!f)t.__transition={};else if(l in f)return;mM(t,l,{name:a,index:o,group:s,on:dM,tween:hM,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Vx})}function uh(t,a){var l=cn(t,a);if(l.state>Vx)throw new Error("too late; already scheduled");return l}function _n(t,a){var l=cn(t,a);if(l.state>Rs)throw new Error("too late; already running");return l}function cn(t,a){var l=t.__transition;if(!l||!(l=l[a]))throw new Error("transition not found");return l}function mM(t,a,l){var o=t.__transition,s;o[a]=l,l.timer=sh(c,0,l.time);function c(m){l.state=qy,l.timer.restart(f,l.delay,l.time),l.delay<=m&&f(m-l.delay)}function f(m){var g,y,x,E;if(l.state!==qy)return p();for(g in o)if(E=o[g],E.name===l.name){if(E.state===Rs)return ky(f);E.state===Gy?(E.state=Os,E.timer.stop(),E.on.call("interrupt",t,t.__data__,E.index,E.group),delete o[g]):+g<a&&(E.state=Os,E.timer.stop(),E.on.call("cancel",t,t.__data__,E.index,E.group),delete o[g])}if(ky(function(){l.state===Rs&&(l.state=Gy,l.timer.restart(h,l.delay,l.time),h(m))}),l.state=Ad,l.on.call("start",t,t.__data__,l.index,l.group),l.state===Ad){for(l.state=Rs,s=new Array(x=l.tween.length),g=0,y=-1;g<x;++g)(E=l.tween[g].value.call(t,t.__data__,l.index,l.group))&&(s[++y]=E);s.length=y+1}}function h(m){for(var g=m<l.duration?l.ease.call(null,m/l.duration):(l.timer.restart(p),l.state=Rd,1),y=-1,x=s.length;++y<x;)s[y].call(t,g);l.state===Rd&&(l.on.call("end",t,t.__data__,l.index,l.group),p())}function p(){l.state=Os,l.timer.stop(),delete o[a];for(var m in o)return;delete t.__transition}}function Ns(t,a){var l=t.__transition,o,s,c=!0,f;if(l){a=a==null?null:a+"";for(f in l){if((o=l[f]).name!==a){c=!1;continue}s=o.state>Ad&&o.state<Rd,o.state=Os,o.timer.stop(),o.on.call(s?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete l[f]}c&&delete t.__transition}}function pM(t){return this.each(function(){Ns(this,t)})}function gM(t,a){var l,o;return function(){var s=_n(this,t),c=s.tween;if(c!==l){o=l=c;for(var f=0,h=o.length;f<h;++f)if(o[f].name===a){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function vM(t,a,l){var o,s;if(typeof l!="function")throw new Error;return function(){var c=_n(this,t),f=c.tween;if(f!==o){s=(o=f).slice();for(var h={name:a,value:l},p=0,m=s.length;p<m;++p)if(s[p].name===a){s[p]=h;break}p===m&&s.push(h)}c.tween=s}}function yM(t,a){var l=this._id;if(t+="",arguments.length<2){for(var o=cn(this.node(),l).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===t)return f.value;return null}return this.each((a==null?gM:vM)(l,t,a))}function ch(t,a,l){var o=t._id;return t.each(function(){var s=_n(this,o);(s.value||(s.value={}))[a]=l.apply(this,arguments)}),function(s){return cn(s,o).value[a]}}function Yx(t,a){var l;return(typeof a=="number"?Ta:a instanceof Mr?Ly:(l=Mr(a))?(a=l,Ly):WN)(t,a)}function bM(t){return function(){this.removeAttribute(t)}}function xM(t){return function(){this.removeAttributeNS(t.space,t.local)}}function SM(t,a,l){var o,s=l+"",c;return function(){var f=this.getAttribute(t);return f===s?null:f===o?c:c=a(o=f,l)}}function wM(t,a,l){var o,s=l+"",c;return function(){var f=this.getAttributeNS(t.space,t.local);return f===s?null:f===o?c:c=a(o=f,l)}}function EM(t,a,l){var o,s,c;return function(){var f,h=l(this),p;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),p=h+"",f===p?null:f===o&&p===s?c:(s=p,c=a(o=f,h)))}}function _M(t,a,l){var o,s,c;return function(){var f,h=l(this),p;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),p=h+"",f===p?null:f===o&&p===s?c:(s=p,c=a(o=f,h)))}}function CM(t,a){var l=ru(t),o=l==="transform"?aM:Yx;return this.attrTween(t,typeof a=="function"?(l.local?_M:EM)(l,o,ch(this,"attr."+t,a)):a==null?(l.local?xM:bM)(l):(l.local?wM:SM)(l,o,a))}function TM(t,a){return function(l){this.setAttribute(t,a.call(this,l))}}function AM(t,a){return function(l){this.setAttributeNS(t.space,t.local,a.call(this,l))}}function RM(t,a){var l,o;function s(){var c=a.apply(this,arguments);return c!==o&&(l=(o=c)&&AM(t,c)),l}return s._value=a,s}function OM(t,a){var l,o;function s(){var c=a.apply(this,arguments);return c!==o&&(l=(o=c)&&TM(t,c)),l}return s._value=a,s}function NM(t,a){var l="attr."+t;if(arguments.length<2)return(l=this.tween(l))&&l._value;if(a==null)return this.tween(l,null);if(typeof a!="function")throw new Error;var o=ru(t);return this.tween(l,(o.local?RM:OM)(o,a))}function MM(t,a){return function(){uh(this,t).delay=+a.apply(this,arguments)}}function zM(t,a){return a=+a,function(){uh(this,t).delay=a}}function DM(t){var a=this._id;return arguments.length?this.each((typeof t=="function"?MM:zM)(a,t)):cn(this.node(),a).delay}function jM(t,a){return function(){_n(this,t).duration=+a.apply(this,arguments)}}function LM(t,a){return a=+a,function(){_n(this,t).duration=a}}function UM(t){var a=this._id;return arguments.length?this.each((typeof t=="function"?jM:LM)(a,t)):cn(this.node(),a).duration}function HM(t,a){if(typeof a!="function")throw new Error;return function(){_n(this,t).ease=a}}function BM(t){var a=this._id;return arguments.length?this.each(HM(a,t)):cn(this.node(),a).ease}function kM(t,a){return function(){var l=a.apply(this,arguments);if(typeof l!="function")throw new Error;_n(this,t).ease=l}}function qM(t){if(typeof t!="function")throw new Error;return this.each(kM(this._id,t))}function GM(t){typeof t!="function"&&(t=wx(t));for(var a=this._groups,l=a.length,o=new Array(l),s=0;s<l;++s)for(var c=a[s],f=c.length,h=o[s]=[],p,m=0;m<f;++m)(p=c[m])&&t.call(p,p.__data__,m,c)&&h.push(p);return new $n(o,this._parents,this._name,this._id)}function VM(t){if(t._id!==this._id)throw new Error;for(var a=this._groups,l=t._groups,o=a.length,s=l.length,c=Math.min(o,s),f=new Array(o),h=0;h<c;++h)for(var p=a[h],m=l[h],g=p.length,y=f[h]=new Array(g),x,E=0;E<g;++E)(x=p[E]||m[E])&&(y[E]=x);for(;h<o;++h)f[h]=a[h];return new $n(f,this._parents,this._name,this._id)}function YM(t){return(t+"").trim().split(/^|\s+/).every(function(a){var l=a.indexOf(".");return l>=0&&(a=a.slice(0,l)),!a||a==="start"})}function QM(t,a,l){var o,s,c=YM(a)?uh:_n;return function(){var f=c(this,t),h=f.on;h!==o&&(s=(o=h).copy()).on(a,l),f.on=s}}function XM(t,a){var l=this._id;return arguments.length<2?cn(this.node(),l).on.on(t):this.each(QM(l,t,a))}function KM(t){return function(){var a=this.parentNode;for(var l in this.__transition)if(+l!==t)return;a&&a.removeChild(this)}}function ZM(){return this.on("end.remove",KM(this._id))}function FM(t){var a=this._name,l=this._id;typeof t!="function"&&(t=ih(t));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var h=o[f],p=h.length,m=c[f]=new Array(p),g,y,x=0;x<p;++x)(g=h[x])&&(y=t.call(g,g.__data__,x,h))&&("__data__"in g&&(y.__data__=g.__data__),m[x]=y,su(m[x],a,l,x,m,cn(g,l)));return new $n(c,this._parents,a,l)}function PM(t){var a=this._name,l=this._id;typeof t!="function"&&(t=Sx(t));for(var o=this._groups,s=o.length,c=[],f=[],h=0;h<s;++h)for(var p=o[h],m=p.length,g,y=0;y<m;++y)if(g=p[y]){for(var x=t.call(g,g.__data__,y,p),E,A=cn(g,l),b=0,w=x.length;b<w;++b)(E=x[b])&&su(E,a,l,b,x,A);c.push(x),f.push(g)}return new $n(c,f,a,l)}var $M=Gr.prototype.constructor;function JM(){return new $M(this._groups,this._parents)}function IM(t,a){var l,o,s;return function(){var c=fl(this,t),f=(this.style.removeProperty(t),fl(this,t));return c===f?null:c===l&&f===o?s:s=a(l=c,o=f)}}function Qx(t){return function(){this.style.removeProperty(t)}}function WM(t,a,l){var o,s=l+"",c;return function(){var f=fl(this,t);return f===s?null:f===o?c:c=a(o=f,l)}}function ez(t,a,l){var o,s,c;return function(){var f=fl(this,t),h=l(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),fl(this,t))),f===p?null:f===o&&p===s?c:(s=p,c=a(o=f,h))}}function tz(t,a){var l,o,s,c="style."+a,f="end."+c,h;return function(){var p=_n(this,t),m=p.on,g=p.value[c]==null?h||(h=Qx(a)):void 0;(m!==l||s!==g)&&(o=(l=m).copy()).on(f,s=g),p.on=o}}function nz(t,a,l){var o=(t+="")=="transform"?nM:Yx;return a==null?this.styleTween(t,IM(t,o)).on("end.style."+t,Qx(t)):typeof a=="function"?this.styleTween(t,ez(t,o,ch(this,"style."+t,a))).each(tz(this._id,t)):this.styleTween(t,WM(t,o,a),l).on("end.style."+t,null)}function az(t,a,l){return function(o){this.style.setProperty(t,a.call(this,o),l)}}function iz(t,a,l){var o,s;function c(){var f=a.apply(this,arguments);return f!==s&&(o=(s=f)&&az(t,f,l)),o}return c._value=a,c}function lz(t,a,l){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(a==null)return this.tween(o,null);if(typeof a!="function")throw new Error;return this.tween(o,iz(t,a,l??""))}function rz(t){return function(){this.textContent=t}}function oz(t){return function(){var a=t(this);this.textContent=a??""}}function sz(t){return this.tween("text",typeof t=="function"?oz(ch(this,"text",t)):rz(t==null?"":t+""))}function uz(t){return function(a){this.textContent=t.call(this,a)}}function cz(t){var a,l;function o(){var s=t.apply(this,arguments);return s!==l&&(a=(l=s)&&uz(s)),a}return o._value=t,o}function fz(t){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,cz(t))}function dz(){for(var t=this._name,a=this._id,l=Xx(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],h=f.length,p,m=0;m<h;++m)if(p=f[m]){var g=cn(p,a);su(p,t,l,m,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new $n(o,this._parents,t,l)}function hz(){var t,a,l=this,o=l._id,s=l.size();return new Promise(function(c,f){var h={value:f},p={value:function(){--s===0&&c()}};l.each(function(){var m=_n(this,o),g=m.on;g!==t&&(a=(t=g).copy(),a._.cancel.push(h),a._.interrupt.push(h),a._.end.push(p)),m.on=a}),s===0&&c()})}var mz=0;function $n(t,a,l,o){this._groups=t,this._parents=a,this._name=l,this._id=o}function Xx(){return++mz}var Qn=Gr.prototype;$n.prototype={constructor:$n,select:FM,selectAll:PM,selectChild:Qn.selectChild,selectChildren:Qn.selectChildren,filter:GM,merge:VM,selection:JM,transition:dz,call:Qn.call,nodes:Qn.nodes,node:Qn.node,size:Qn.size,empty:Qn.empty,each:Qn.each,on:XM,attr:CM,attrTween:NM,style:nz,styleTween:lz,text:sz,textTween:fz,remove:ZM,tween:yM,delay:DM,duration:UM,ease:BM,easeVarying:qM,end:hz,[Symbol.iterator]:Qn[Symbol.iterator]};function pz(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var gz={time:null,delay:0,duration:250,ease:pz};function vz(t,a){for(var l;!(l=t.__transition)||!(l=l[a]);)if(!(t=t.parentNode))throw new Error(`transition ${a} not found`);return l}function yz(t){var a,l;t instanceof $n?(a=t._id,t=t._name):(a=Xx(),(l=gz).time=oh(),t=t==null?null:t+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],h=f.length,p,m=0;m<h;++m)(p=f[m])&&su(p,t,a,m,f,l||vz(p,a));return new $n(o,this._parents,t,a)}Gr.prototype.interrupt=pM;Gr.prototype.transition=yz;function bz(t,a){var l,o=1;t==null&&(t=0),a==null&&(a=0);function s(){var c,f=l.length,h,p=0,m=0;for(c=0;c<f;++c)h=l[c],p+=h.x,m+=h.y;for(p=(p/f-t)*o,m=(m/f-a)*o,c=0;c<f;++c)h=l[c],h.x-=p,h.y-=m}return s.initialize=function(c){l=c},s.x=function(c){return arguments.length?(t=+c,s):t},s.y=function(c){return arguments.length?(a=+c,s):a},s.strength=function(c){return arguments.length?(o=+c,s):o},s}function xz(t){const a=+this._x.call(null,t),l=+this._y.call(null,t);return Kx(this.cover(a,l),a,l,t)}function Kx(t,a,l,o){if(isNaN(a)||isNaN(l))return t;var s,c=t._root,f={data:o},h=t._x0,p=t._y0,m=t._x1,g=t._y1,y,x,E,A,b,w,C,N;if(!c)return t._root=f,t;for(;c.length;)if((b=a>=(y=(h+m)/2))?h=y:m=y,(w=l>=(x=(p+g)/2))?p=x:g=x,s=c,!(c=c[C=w<<1|b]))return s[C]=f,t;if(E=+t._x.call(null,c.data),A=+t._y.call(null,c.data),a===E&&l===A)return f.next=c,s?s[C]=f:t._root=f,t;do s=s?s[C]=new Array(4):t._root=new Array(4),(b=a>=(y=(h+m)/2))?h=y:m=y,(w=l>=(x=(p+g)/2))?p=x:g=x;while((C=w<<1|b)===(N=(A>=x)<<1|E>=y));return s[N]=c,s[C]=f,t}function Sz(t){var a,l,o=t.length,s,c,f=new Array(o),h=new Array(o),p=1/0,m=1/0,g=-1/0,y=-1/0;for(l=0;l<o;++l)isNaN(s=+this._x.call(null,a=t[l]))||isNaN(c=+this._y.call(null,a))||(f[l]=s,h[l]=c,s<p&&(p=s),s>g&&(g=s),c<m&&(m=c),c>y&&(y=c));if(p>g||m>y)return this;for(this.cover(p,m).cover(g,y),l=0;l<o;++l)Kx(this,f[l],h[l],t[l]);return this}function wz(t,a){if(isNaN(t=+t)||isNaN(a=+a))return this;var l=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(l))s=(l=Math.floor(t))+1,c=(o=Math.floor(a))+1;else{for(var f=s-l||1,h=this._root,p,m;l>t||t>=s||o>a||a>=c;)switch(m=(a<o)<<1|t<l,p=new Array(4),p[m]=h,h=p,f*=2,m){case 0:s=l+f,c=o+f;break;case 1:l=s-f,c=o+f;break;case 2:s=l+f,o=c-f;break;case 3:l=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=l,this._y0=o,this._x1=s,this._y1=c,this}function Ez(){var t=[];return this.visit(function(a){if(!a.length)do t.push(a.data);while(a=a.next)}),t}function _z(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function yt(t,a,l,o,s){this.node=t,this.x0=a,this.y0=l,this.x1=o,this.y1=s}function Cz(t,a,l){var o,s=this._x0,c=this._y0,f,h,p,m,g=this._x1,y=this._y1,x=[],E=this._root,A,b;for(E&&x.push(new yt(E,s,c,g,y)),l==null?l=1/0:(s=t-l,c=a-l,g=t+l,y=a+l,l*=l);A=x.pop();)if(!(!(E=A.node)||(f=A.x0)>g||(h=A.y0)>y||(p=A.x1)<s||(m=A.y1)<c))if(E.length){var w=(f+p)/2,C=(h+m)/2;x.push(new yt(E[3],w,C,p,m),new yt(E[2],f,C,w,m),new yt(E[1],w,h,p,C),new yt(E[0],f,h,w,C)),(b=(a>=C)<<1|t>=w)&&(A=x[x.length-1],x[x.length-1]=x[x.length-1-b],x[x.length-1-b]=A)}else{var N=t-+this._x.call(null,E.data),M=a-+this._y.call(null,E.data),T=N*N+M*M;if(T<l){var L=Math.sqrt(l=T);s=t-L,c=a-L,g=t+L,y=a+L,o=E.data}}return o}function Tz(t){if(isNaN(g=+this._x.call(null,t))||isNaN(y=+this._y.call(null,t)))return this;var a,l=this._root,o,s,c,f=this._x0,h=this._y0,p=this._x1,m=this._y1,g,y,x,E,A,b,w,C;if(!l)return this;if(l.length)for(;;){if((A=g>=(x=(f+p)/2))?f=x:p=x,(b=y>=(E=(h+m)/2))?h=E:m=E,a=l,!(l=l[w=b<<1|A]))return this;if(!l.length)break;(a[w+1&3]||a[w+2&3]||a[w+3&3])&&(o=a,C=w)}for(;l.data!==t;)if(s=l,!(l=l.next))return this;return(c=l.next)&&delete l.next,s?(c?s.next=c:delete s.next,this):a?(c?a[w]=c:delete a[w],(l=a[0]||a[1]||a[2]||a[3])&&l===(a[3]||a[2]||a[1]||a[0])&&!l.length&&(o?o[C]=l:this._root=l),this):(this._root=c,this)}function Az(t){for(var a=0,l=t.length;a<l;++a)this.remove(t[a]);return this}function Rz(){return this._root}function Oz(){var t=0;return this.visit(function(a){if(!a.length)do++t;while(a=a.next)}),t}function Nz(t){var a=[],l,o=this._root,s,c,f,h,p;for(o&&a.push(new yt(o,this._x0,this._y0,this._x1,this._y1));l=a.pop();)if(!t(o=l.node,c=l.x0,f=l.y0,h=l.x1,p=l.y1)&&o.length){var m=(c+h)/2,g=(f+p)/2;(s=o[3])&&a.push(new yt(s,m,g,h,p)),(s=o[2])&&a.push(new yt(s,c,g,m,p)),(s=o[1])&&a.push(new yt(s,m,f,h,g)),(s=o[0])&&a.push(new yt(s,c,f,m,g))}return this}function Mz(t){var a=[],l=[],o;for(this._root&&a.push(new yt(this._root,this._x0,this._y0,this._x1,this._y1));o=a.pop();){var s=o.node;if(s.length){var c,f=o.x0,h=o.y0,p=o.x1,m=o.y1,g=(f+p)/2,y=(h+m)/2;(c=s[0])&&a.push(new yt(c,f,h,g,y)),(c=s[1])&&a.push(new yt(c,g,h,p,y)),(c=s[2])&&a.push(new yt(c,f,y,g,m)),(c=s[3])&&a.push(new yt(c,g,y,p,m))}l.push(o)}for(;o=l.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function zz(t){return t[0]}function Dz(t){return arguments.length?(this._x=t,this):this._x}function jz(t){return t[1]}function Lz(t){return arguments.length?(this._y=t,this):this._y}function fh(t,a,l){var o=new dh(a??zz,l??jz,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function dh(t,a,l,o,s,c){this._x=t,this._y=a,this._x0=l,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function Vy(t){for(var a={data:t.data},l=a;t=t.next;)l=l.next={data:t.data};return a}var bt=fh.prototype=dh.prototype;bt.copy=function(){var t=new dh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root,l,o;if(!a)return t;if(!a.length)return t._root=Vy(a),t;for(l=[{source:a,target:t._root=new Array(4)}];a=l.pop();)for(var s=0;s<4;++s)(o=a.source[s])&&(o.length?l.push({source:o,target:a.target[s]=new Array(4)}):a.target[s]=Vy(o));return t};bt.add=xz;bt.addAll=Sz;bt.cover=wz;bt.data=Ez;bt.extent=_z;bt.find=Cz;bt.remove=Tz;bt.removeAll=Az;bt.root=Rz;bt.size=Oz;bt.visit=Nz;bt.visitAfter=Mz;bt.x=Dz;bt.y=Lz;function ui(t){return function(){return t}}function Ra(t){return(t()-.5)*1e-6}function Uz(t){return t.x+t.vx}function Hz(t){return t.y+t.vy}function Bz(t){var a,l,o,s=1,c=1;typeof t!="function"&&(t=ui(t==null?1:+t));function f(){for(var m,g=a.length,y,x,E,A,b,w,C=0;C<c;++C)for(y=fh(a,Uz,Hz).visitAfter(h),m=0;m<g;++m)x=a[m],b=l[x.index],w=b*b,E=x.x+x.vx,A=x.y+x.vy,y.visit(N);function N(M,T,L,G,D){var H=M.data,ee=M.r,F=b+ee;if(H){if(H.index>x.index){var te=E-H.x-H.vx,re=A-H.y-H.vy,ce=te*te+re*re;ce<F*F&&(te===0&&(te=Ra(o),ce+=te*te),re===0&&(re=Ra(o),ce+=re*re),ce=(F-(ce=Math.sqrt(ce)))/ce*s,x.vx+=(te*=ce)*(F=(ee*=ee)/(w+ee)),x.vy+=(re*=ce)*F,H.vx-=te*(F=1-F),H.vy-=re*F)}return}return T>E+F||G<E-F||L>A+F||D<A-F}}function h(m){if(m.data)return m.r=l[m.data.index];for(var g=m.r=0;g<4;++g)m[g]&&m[g].r>m.r&&(m.r=m[g].r)}function p(){if(a){var m,g=a.length,y;for(l=new Array(g),m=0;m<g;++m)y=a[m],l[y.index]=+t(y,m,a)}}return f.initialize=function(m,g){a=m,o=g,p()},f.iterations=function(m){return arguments.length?(c=+m,f):c},f.strength=function(m){return arguments.length?(s=+m,f):s},f.radius=function(m){return arguments.length?(t=typeof m=="function"?m:ui(+m),p(),f):t},f}function kz(t){return t.index}function Yy(t,a){var l=t.get(a);if(!l)throw new Error("node not found: "+a);return l}function qz(t){var a=kz,l=y,o,s=ui(30),c,f,h,p,m,g=1;t==null&&(t=[]);function y(w){return 1/Math.min(h[w.source.index],h[w.target.index])}function x(w){for(var C=0,N=t.length;C<g;++C)for(var M=0,T,L,G,D,H,ee,F;M<N;++M)T=t[M],L=T.source,G=T.target,D=G.x+G.vx-L.x-L.vx||Ra(m),H=G.y+G.vy-L.y-L.vy||Ra(m),ee=Math.sqrt(D*D+H*H),ee=(ee-c[M])/ee*w*o[M],D*=ee,H*=ee,G.vx-=D*(F=p[M]),G.vy-=H*F,L.vx+=D*(F=1-F),L.vy+=H*F}function E(){if(f){var w,C=f.length,N=t.length,M=new Map(f.map((L,G)=>[a(L,G,f),L])),T;for(w=0,h=new Array(C);w<N;++w)T=t[w],T.index=w,typeof T.source!="object"&&(T.source=Yy(M,T.source)),typeof T.target!="object"&&(T.target=Yy(M,T.target)),h[T.source.index]=(h[T.source.index]||0)+1,h[T.target.index]=(h[T.target.index]||0)+1;for(w=0,p=new Array(N);w<N;++w)T=t[w],p[w]=h[T.source.index]/(h[T.source.index]+h[T.target.index]);o=new Array(N),A(),c=new Array(N),b()}}function A(){if(f)for(var w=0,C=t.length;w<C;++w)o[w]=+l(t[w],w,t)}function b(){if(f)for(var w=0,C=t.length;w<C;++w)c[w]=+s(t[w],w,t)}return x.initialize=function(w,C){f=w,m=C,E()},x.links=function(w){return arguments.length?(t=w,E(),x):t},x.id=function(w){return arguments.length?(a=w,x):a},x.iterations=function(w){return arguments.length?(g=+w,x):g},x.strength=function(w){return arguments.length?(l=typeof w=="function"?w:ui(+w),A(),x):l},x.distance=function(w){return arguments.length?(s=typeof w=="function"?w:ui(+w),b(),x):s},x}const Gz=1664525,Vz=1013904223,Qy=4294967296;function Yz(){let t=1;return()=>(t=(Gz*t+Vz)%Qy)/Qy}function Qz(t){return t.x}function Xz(t){return t.y}var Kz=10,Zz=Math.PI*(3-Math.sqrt(5));function Fz(t){var a,l=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,h=new Map,p=sh(y),m=qr("tick","end"),g=Yz();t==null&&(t=[]);function y(){x(),m.call("tick",a),l<o&&(p.stop(),m.call("end",a))}function x(b){var w,C=t.length,N;b===void 0&&(b=1);for(var M=0;M<b;++M)for(l+=(c-l)*s,h.forEach(function(T){T(l)}),w=0;w<C;++w)N=t[w],N.fx==null?N.x+=N.vx*=f:(N.x=N.fx,N.vx=0),N.fy==null?N.y+=N.vy*=f:(N.y=N.fy,N.vy=0);return a}function E(){for(var b=0,w=t.length,C;b<w;++b){if(C=t[b],C.index=b,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var N=Kz*Math.sqrt(.5+b),M=b*Zz;C.x=N*Math.cos(M),C.y=N*Math.sin(M)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function A(b){return b.initialize&&b.initialize(t,g),b}return E(),a={tick:x,restart:function(){return p.restart(y),a},stop:function(){return p.stop(),a},nodes:function(b){return arguments.length?(t=b,E(),h.forEach(A),a):t},alpha:function(b){return arguments.length?(l=+b,a):l},alphaMin:function(b){return arguments.length?(o=+b,a):o},alphaDecay:function(b){return arguments.length?(s=+b,a):+s},alphaTarget:function(b){return arguments.length?(c=+b,a):c},velocityDecay:function(b){return arguments.length?(f=1-b,a):1-f},randomSource:function(b){return arguments.length?(g=b,h.forEach(A),a):g},force:function(b,w){return arguments.length>1?(w==null?h.delete(b):h.set(b,A(w)),a):h.get(b)},find:function(b,w,C){var N=0,M=t.length,T,L,G,D,H;for(C==null?C=1/0:C*=C,N=0;N<M;++N)D=t[N],T=b-D.x,L=w-D.y,G=T*T+L*L,G<C&&(H=D,C=G);return H},on:function(b,w){return arguments.length>1?(m.on(b,w),a):m.on(b)}}}function Pz(){var t,a,l,o,s=ui(-30),c,f=1,h=1/0,p=.81;function m(E){var A,b=t.length,w=fh(t,Qz,Xz).visitAfter(y);for(o=E,A=0;A<b;++A)a=t[A],w.visit(x)}function g(){if(t){var E,A=t.length,b;for(c=new Array(A),E=0;E<A;++E)b=t[E],c[b.index]=+s(b,E,t)}}function y(E){var A=0,b,w,C=0,N,M,T;if(E.length){for(N=M=T=0;T<4;++T)(b=E[T])&&(w=Math.abs(b.value))&&(A+=b.value,C+=w,N+=w*b.x,M+=w*b.y);E.x=N/C,E.y=M/C}else{b=E,b.x=b.data.x,b.y=b.data.y;do A+=c[b.data.index];while(b=b.next)}E.value=A}function x(E,A,b,w){if(!E.value)return!0;var C=E.x-a.x,N=E.y-a.y,M=w-A,T=C*C+N*N;if(M*M/p<T)return T<h&&(C===0&&(C=Ra(l),T+=C*C),N===0&&(N=Ra(l),T+=N*N),T<f&&(T=Math.sqrt(f*T)),a.vx+=C*E.value*o/T,a.vy+=N*E.value*o/T),!0;if(E.length||T>=h)return;(E.data!==a||E.next)&&(C===0&&(C=Ra(l),T+=C*C),N===0&&(N=Ra(l),T+=N*N),T<f&&(T=Math.sqrt(f*T)));do E.data!==a&&(M=c[E.data.index]*o/T,a.vx+=C*M,a.vy+=N*M);while(E=E.next)}return m.initialize=function(E,A){t=E,l=A,g()},m.strength=function(E){return arguments.length?(s=typeof E=="function"?E:ui(+E),g(),m):s},m.distanceMin=function(E){return arguments.length?(f=E*E,m):Math.sqrt(f)},m.distanceMax=function(E){return arguments.length?(h=E*E,m):Math.sqrt(h)},m.theta=function(E){return arguments.length?(p=E*E,m):Math.sqrt(p)},m}const Ss=t=>()=>t;function $z(t,{sourceEvent:a,target:l,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:a,enumerable:!0,configurable:!0},target:{value:l,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function Kn(t,a,l){this.k=t,this.x=a,this.y=l}Kn.prototype={constructor:Kn,scale:function(t){return t===1?this:new Kn(this.k*t,this.x,this.y)},translate:function(t,a){return t===0&a===0?this:new Kn(this.k,this.x+this.k*t,this.y+this.k*a)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zx=new Kn(1,0,0);Kn.prototype;function ed(t){t.stopImmediatePropagation()}function vr(t){t.preventDefault(),t.stopImmediatePropagation()}function Jz(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Iz(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Xy(){return this.__zoom||Zx}function Wz(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function e3(){return navigator.maxTouchPoints||"ontouchstart"in this}function t3(t,a,l){var o=t.invertX(a[0][0])-l[0][0],s=t.invertX(a[1][0])-l[1][0],c=t.invertY(a[0][1])-l[0][1],f=t.invertY(a[1][1])-l[1][1];return t.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function n3(){var t=Jz,a=Iz,l=t3,o=Wz,s=e3,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=oM,m=qr("start","zoom","end"),g,y,x,E=500,A=150,b=0,w=10;function C(B){B.property("__zoom",Xy).on("wheel.zoom",H,{passive:!1}).on("mousedown.zoom",ee).on("dblclick.zoom",F).filter(s).on("touchstart.zoom",te).on("touchmove.zoom",re).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(B,W,O,q){var K=B.selection?B.selection():B;K.property("__zoom",Xy),B!==K?L(B,W,O,q):K.interrupt().each(function(){G(this,arguments).event(q).start().zoom(null,typeof W=="function"?W.apply(this,arguments):W).end()})},C.scaleBy=function(B,W,O,q){C.scaleTo(B,function(){var K=this.__zoom.k,ne=typeof W=="function"?W.apply(this,arguments):W;return K*ne},O,q)},C.scaleTo=function(B,W,O,q){C.transform(B,function(){var K=a.apply(this,arguments),ne=this.__zoom,P=O==null?T(K):typeof O=="function"?O.apply(this,arguments):O,z=ne.invert(P),X=typeof W=="function"?W.apply(this,arguments):W;return l(M(N(ne,X),P,z),K,f)},O,q)},C.translateBy=function(B,W,O,q){C.transform(B,function(){return l(this.__zoom.translate(typeof W=="function"?W.apply(this,arguments):W,typeof O=="function"?O.apply(this,arguments):O),a.apply(this,arguments),f)},null,q)},C.translateTo=function(B,W,O,q,K){C.transform(B,function(){var ne=a.apply(this,arguments),P=this.__zoom,z=q==null?T(ne):typeof q=="function"?q.apply(this,arguments):q;return l(Zx.translate(z[0],z[1]).scale(P.k).translate(typeof W=="function"?-W.apply(this,arguments):-W,typeof O=="function"?-O.apply(this,arguments):-O),ne,f)},q,K)};function N(B,W){return W=Math.max(c[0],Math.min(c[1],W)),W===B.k?B:new Kn(W,B.x,B.y)}function M(B,W,O){var q=W[0]-O[0]*B.k,K=W[1]-O[1]*B.k;return q===B.x&&K===B.y?B:new Kn(B.k,q,K)}function T(B){return[(+B[0][0]+ +B[1][0])/2,(+B[0][1]+ +B[1][1])/2]}function L(B,W,O,q){B.on("start.zoom",function(){G(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(q).end()}).tween("zoom",function(){var K=this,ne=arguments,P=G(K,ne).event(q),z=a.apply(K,ne),X=O==null?T(z):typeof O=="function"?O.apply(K,ne):O,ie=Math.max(z[1][0]-z[0][0],z[1][1]-z[0][1]),le=K.__zoom,oe=typeof W=="function"?W.apply(K,ne):W,se=p(le.invert(X).concat(ie/le.k),oe.invert(X).concat(ie/oe.k));return function(ae){if(ae===1)ae=oe;else{var ge=se(ae),me=ie/ge[2];ae=new Kn(me,X[0]-ge[0]*me,X[1]-ge[1]*me)}P.zoom(null,ae)}})}function G(B,W,O){return!O&&B.__zooming||new D(B,W)}function D(B,W){this.that=B,this.args=W,this.active=0,this.sourceEvent=null,this.extent=a.apply(B,W),this.taps=0}D.prototype={event:function(B){return B&&(this.sourceEvent=B),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(B,W){return this.mouse&&B!=="mouse"&&(this.mouse[1]=W.invert(this.mouse[0])),this.touch0&&B!=="touch"&&(this.touch0[1]=W.invert(this.touch0[0])),this.touch1&&B!=="touch"&&(this.touch1[1]=W.invert(this.touch1[0])),this.that.__zoom=W,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(B){var W=gn(this.that).datum();m.call(B,this.that,new $z(B,{sourceEvent:this.sourceEvent,target:C,transform:this.that.__zoom,dispatch:m}),W)}};function H(B,...W){if(!t.apply(this,arguments))return;var O=G(this,W).event(B),q=this.__zoom,K=Math.max(c[0],Math.min(c[1],q.k*Math.pow(2,o.apply(this,arguments)))),ne=Xn(B);if(O.wheel)(O.mouse[0][0]!==ne[0]||O.mouse[0][1]!==ne[1])&&(O.mouse[1]=q.invert(O.mouse[0]=ne)),clearTimeout(O.wheel);else{if(q.k===K)return;O.mouse=[ne,q.invert(ne)],Ns(this),O.start()}vr(B),O.wheel=setTimeout(P,A),O.zoom("mouse",l(M(N(q,K),O.mouse[0],O.mouse[1]),O.extent,f));function P(){O.wheel=null,O.end()}}function ee(B,...W){if(x||!t.apply(this,arguments))return;var O=B.currentTarget,q=G(this,W,!0).event(B),K=gn(B.view).on("mousemove.zoom",X,!0).on("mouseup.zoom",ie,!0),ne=Xn(B,O),P=B.clientX,z=B.clientY;zx(B.view),ed(B),q.mouse=[ne,this.__zoom.invert(ne)],Ns(this),q.start();function X(le){if(vr(le),!q.moved){var oe=le.clientX-P,se=le.clientY-z;q.moved=oe*oe+se*se>b}q.event(le).zoom("mouse",l(M(q.that.__zoom,q.mouse[0]=Xn(le,O),q.mouse[1]),q.extent,f))}function ie(le){K.on("mousemove.zoom mouseup.zoom",null),Dx(le.view,q.moved),vr(le),q.event(le).end()}}function F(B,...W){if(t.apply(this,arguments)){var O=this.__zoom,q=Xn(B.changedTouches?B.changedTouches[0]:B,this),K=O.invert(q),ne=O.k*(B.shiftKey?.5:2),P=l(M(N(O,ne),q,K),a.apply(this,W),f);vr(B),h>0?gn(this).transition().duration(h).call(L,P,q,B):gn(this).call(C.transform,P,q,B)}}function te(B,...W){if(t.apply(this,arguments)){var O=B.touches,q=O.length,K=G(this,W,B.changedTouches.length===q).event(B),ne,P,z,X;for(ed(B),P=0;P<q;++P)z=O[P],X=Xn(z,this),X=[X,this.__zoom.invert(X),z.identifier],K.touch0?!K.touch1&&K.touch0[2]!==X[2]&&(K.touch1=X,K.taps=0):(K.touch0=X,ne=!0,K.taps=1+!!g);g&&(g=clearTimeout(g)),ne&&(K.taps<2&&(y=X[0],g=setTimeout(function(){g=null},E)),Ns(this),K.start())}}function re(B,...W){if(this.__zooming){var O=G(this,W).event(B),q=B.changedTouches,K=q.length,ne,P,z,X;for(vr(B),ne=0;ne<K;++ne)P=q[ne],z=Xn(P,this),O.touch0&&O.touch0[2]===P.identifier?O.touch0[0]=z:O.touch1&&O.touch1[2]===P.identifier&&(O.touch1[0]=z);if(P=O.that.__zoom,O.touch1){var ie=O.touch0[0],le=O.touch0[1],oe=O.touch1[0],se=O.touch1[1],ae=(ae=oe[0]-ie[0])*ae+(ae=oe[1]-ie[1])*ae,ge=(ge=se[0]-le[0])*ge+(ge=se[1]-le[1])*ge;P=N(P,Math.sqrt(ae/ge)),z=[(ie[0]+oe[0])/2,(ie[1]+oe[1])/2],X=[(le[0]+se[0])/2,(le[1]+se[1])/2]}else if(O.touch0)z=O.touch0[0],X=O.touch0[1];else return;O.zoom("touch",l(M(P,z,X),O.extent,f))}}function ce(B,...W){if(this.__zooming){var O=G(this,W).event(B),q=B.changedTouches,K=q.length,ne,P;for(ed(B),x&&clearTimeout(x),x=setTimeout(function(){x=null},E),ne=0;ne<K;++ne)P=q[ne],O.touch0&&O.touch0[2]===P.identifier?delete O.touch0:O.touch1&&O.touch1[2]===P.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),O.taps===2&&(P=Xn(P,this),Math.hypot(y[0]-P[0],y[1]-P[1])<w)){var z=gn(this).on("dblclick.zoom");z&&z.apply(this,arguments)}}}return C.wheelDelta=function(B){return arguments.length?(o=typeof B=="function"?B:Ss(+B),C):o},C.filter=function(B){return arguments.length?(t=typeof B=="function"?B:Ss(!!B),C):t},C.touchable=function(B){return arguments.length?(s=typeof B=="function"?B:Ss(!!B),C):s},C.extent=function(B){return arguments.length?(a=typeof B=="function"?B:Ss([[+B[0][0],+B[0][1]],[+B[1][0],+B[1][1]]]),C):a},C.scaleExtent=function(B){return arguments.length?(c[0]=+B[0],c[1]=+B[1],C):[c[0],c[1]]},C.translateExtent=function(B){return arguments.length?(f[0][0]=+B[0][0],f[1][0]=+B[1][0],f[0][1]=+B[0][1],f[1][1]=+B[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(B){return arguments.length?(l=B,C):l},C.duration=function(B){return arguments.length?(h=+B,C):h},C.interpolate=function(B){return arguments.length?(p=B,C):p},C.on=function(){var B=m.on.apply(m,arguments);return B===m?C:B},C.clickDistance=function(B){return arguments.length?(b=(B=+B)*B,C):Math.sqrt(b)},C.tapDistance=function(B){return arguments.length?(w=+B,C):w},C}const a3={package:"#f59e0b",class:"#8b5cf6",dependency:"#06b6d4",framework:"#10b981"};function Od(t){return a3[t??""]??"#a1a1aa"}function i3({entities:t,edges:a,onSelectNode:l}){const o=S.useRef(null),{resolvedTheme:s}=T0(),c=s==="dark";return S.useEffect(()=>{const f=gn(o.current);if(!o.current||t.length===0)return;f.selectAll("*").remove();const h=o.current.getBoundingClientRect(),p=h.width,m=h.height,g=t.map(T=>({...T})),y=new Map(g.map(T=>[T.id,T])),E=a.filter(T=>!T.expiredAt).filter(T=>y.has(T.sourceId)&&y.has(T.targetId)).map(T=>({...T,source:y.get(T.sourceId),target:y.get(T.targetId)})),A=Fz(g).force("link",qz(E).id(T=>T.id).distance(120)).force("charge",Pz().strength(-300)).force("center",bz(p/2,m/2)).force("collision",Bz().radius(40)),b=f.append("g"),w=n3().scaleExtent([.2,4]).on("zoom",T=>b.attr("transform",T.transform));f.call(w),f.append("defs").append("marker").attr("id","arrowhead").attr("viewBox","0 -5 10 10").attr("refX",24).attr("refY",0).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5").attr("fill",c?"#525252":"#a1a1aa");const C=b.append("g").selectAll("line").data(E).join("line").attr("stroke",c?"#404040":"#d4d4d8").attr("stroke-width",1.5).attr("marker-end","url(#arrowhead)"),N=b.append("g").selectAll("text").data(E).join("text").text(T=>T.relation).attr("font-size",9).attr("fill",c?"#737373":"#a1a1aa").attr("text-anchor","middle").attr("dy",-4),M=b.append("g").selectAll("g").data(g).join("g").style("cursor","pointer").on("click",(T,L)=>l(L)).call(LN().on("start",(T,L)=>{T.active||A.alphaTarget(.3).restart(),L.fx=L.x,L.fy=L.y}).on("drag",(T,L)=>{L.fx=T.x,L.fy=T.y}).on("end",(T,L)=>{T.active||A.alphaTarget(0),L.fx=null,L.fy=null}));return M.append("circle").attr("r",14).attr("fill",T=>Od(T.entityType)).attr("stroke",c?"#18181b":"#ffffff").attr("stroke-width",2),M.append("text").text(T=>T.name).attr("font-size",11).attr("font-weight",500).attr("fill",c?"#e4e4e7":"#27272a").attr("dx",20).attr("dy",4),A.on("tick",()=>{C.attr("x1",T=>T.source.x).attr("y1",T=>T.source.y).attr("x2",T=>T.target.x).attr("y2",T=>T.target.y),N.attr("x",T=>(T.source.x+T.target.x)/2).attr("y",T=>(T.source.y+T.target.y)/2),M.attr("transform",T=>`translate(${T.x},${T.y})`)}),()=>{A.stop()}},[t,a,c,l]),R.jsx("svg",{ref:o,className:"w-full h-full bg-background rounded-lg border border-border"})}function l3(){const t=Ps(),a=lu(),[l,o]=S.useState("graph"),[s,c]=S.useState(null),[f,h]=S.useState(!1),[p,m]=S.useState(""),[g,y]=S.useState(""),[x,E]=S.useState(""),{data:A=[],isLoading:b}=sl({queryKey:["entities",a],queryFn:()=>on.graph.entities({scope:a})}),{data:w=[],isLoading:C}=sl({queryKey:["edges",a],queryFn:()=>on.graph.edges({scope:a,includeExpired:!0})}),N=wr({mutationFn:D=>on.graph.createEntity(D),onSuccess:()=>{t.invalidateQueries({queryKey:["entities"]}),h(!1),m(""),y(""),E("")}}),M=wr({mutationFn:D=>on.graph.deleteEdge(D),onSuccess:()=>t.invalidateQueries({queryKey:["edges"]})}),T=new Map(A.map(D=>[D.id,D.name])),L=S.useCallback(D=>{c(D)},[]),G=s?w.filter(D=>!D.expiredAt&&(D.sourceId===s.id||D.targetId===s.id)):[];return R.jsxs("div",{className:"flex flex-col h-full",children:[R.jsxs("div",{className:"flex items-center justify-between mb-4 shrink-0",children:[R.jsx("h2",{className:"text-xl font-semibold",children:"Knowledge Graph"}),R.jsxs("div",{className:"flex items-center gap-2",children:[R.jsx(pt,{variant:l==="graph"?"secondary":"ghost",size:"sm",onClick:()=>o("graph"),children:"Graph"}),R.jsxs(pt,{variant:l==="entities"?"secondary":"ghost",size:"sm",onClick:()=>o("entities"),children:["Entities (",A.length,")"]}),R.jsxs(pt,{variant:l==="edges"?"secondary":"ghost",size:"sm",onClick:()=>o("edges"),children:["Edges (",w.length,")"]})]})]}),l==="graph"&&R.jsxs("div",{className:"flex-1 min-h-0 flex gap-4",children:[R.jsx("div",{className:"flex-1 min-w-0",children:b||C?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):A.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No entities found."}):R.jsx(i3,{entities:A,edges:w,onSelectNode:L})}),s&&R.jsxs(Aa,{className:"w-72 shrink-0 p-4 overflow-auto",children:[R.jsxs("div",{className:"flex items-center justify-between mb-3",children:[R.jsx("h3",{className:"font-medium text-sm",children:s.name}),R.jsx(pt,{variant:"ghost",size:"icon-xs",onClick:()=>c(null),children:"✕"})]}),s.entityType&&R.jsx(Na,{className:"mb-2",style:{backgroundColor:Od(s.entityType)+"20",color:Od(s.entityType)},children:s.entityType}),s.summary&&R.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:s.summary}),G.length>0&&R.jsxs("div",{children:[R.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:"Connections"}),R.jsx("div",{className:"space-y-1.5",children:G.map(D=>{const H=D.sourceId===s.id,ee=T.get(H?D.targetId:D.sourceId)??"?";return R.jsxs("div",{className:"text-xs",children:[R.jsx("span",{className:"text-muted-foreground",children:H?"→":"←"}),R.jsx("span",{className:"text-primary mx-1",children:D.relation}),R.jsx("span",{className:"text-foreground",children:ee}),D.fact&&R.jsx("p",{className:"text-muted-foreground/70 ml-4 mt-0.5",children:D.fact})]},D.id)})})]})]})]}),l==="entities"&&R.jsxs("div",{className:"flex-1 overflow-auto",children:[R.jsx("div",{className:"mb-4",children:f?R.jsxs(Aa,{className:"p-4",children:[R.jsxs("div",{className:"flex gap-3 mb-3",children:[R.jsx(Er,{value:p,onChange:D=>m(D.target.value),placeholder:"Name",className:"flex-1"}),R.jsx(Er,{value:x,onChange:D=>E(D.target.value),placeholder:"Type (optional)",className:"w-40"})]}),R.jsx(Er,{value:g,onChange:D=>y(D.target.value),placeholder:"Summary (optional)",className:"w-full mb-3"}),R.jsxs("div",{className:"flex gap-2",children:[R.jsx(pt,{onClick:()=>N.mutate({name:p,summary:g||void 0,entityType:x||void 0}),children:"Create"}),R.jsx(pt,{variant:"ghost",onClick:()=>h(!1),children:"Cancel"})]})]}):R.jsx(pt,{onClick:()=>h(!0),children:"+ New Entity"})}),b?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):A.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No entities found."}):R.jsx("div",{className:"space-y-2",children:A.map(D=>R.jsxs(Aa,{className:"p-4 hover:border-muted-foreground/30 transition-colors",children:[R.jsxs("div",{className:"flex items-center gap-3",children:[R.jsx("span",{className:"font-medium text-sm text-foreground",children:D.name}),D.entityType&&R.jsx(Na,{variant:"secondary",children:D.entityType})]}),D.summary&&R.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:D.summary}),R.jsx("p",{className:"text-xs text-muted-foreground/60 mt-2",children:new Date(D.updatedAt).toLocaleString()})]},D.id))})]}),l==="edges"&&R.jsx("div",{className:"flex-1 overflow-auto",children:C?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):w.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No edges found."}):R.jsx("div",{className:"space-y-2",children:w.map(D=>R.jsxs(Aa,{className:`p-4 transition-colors ${D.expiredAt?"opacity-50":"hover:border-muted-foreground/30"}`,children:[R.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[R.jsx("span",{className:"text-cyan-400",children:T.get(D.sourceId)??D.sourceId.slice(0,8)}),R.jsx("span",{className:"text-muted-foreground",children:"→"}),R.jsx("span",{className:"text-primary font-medium",children:D.relation}),R.jsx("span",{className:"text-muted-foreground",children:"→"}),R.jsx("span",{className:"text-cyan-400",children:T.get(D.targetId)??D.targetId.slice(0,8)}),D.expiredAt&&R.jsx(Na,{variant:"destructive",className:"ml-2",children:"expired"}),!D.expiredAt&&R.jsx(pt,{variant:"ghost",size:"sm",onClick:()=>{confirm("Invalidate this edge?")&&M.mutate(D.id)},className:"ml-auto text-muted-foreground hover:text-destructive",children:"Invalidate"})]}),D.fact&&R.jsx("p",{className:"text-sm text-muted-foreground mt-2",children:D.fact}),R.jsx("p",{className:"text-xs text-muted-foreground/60 mt-2",children:new Date(D.createdAt).toLocaleString()})]},D.id))})})]})}function r3(){const t=lu(),{data:a=[],isLoading:l}=sl({queryKey:["sessions",t],queryFn:()=>on.sessions.list({scope:t})});return R.jsxs("div",{children:[R.jsx("h2",{className:"text-xl font-semibold mb-6",children:"Sessions"}),l?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):a.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No sessions found."}):R.jsx("div",{className:"space-y-2",children:a.map(o=>R.jsxs(Aa,{className:"p-4 hover:border-muted-foreground/30 transition-colors",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsxs("div",{className:"flex items-center gap-3",children:[R.jsx("span",{className:`w-2 h-2 rounded-full ${o.status==="active"?"bg-green-400":"bg-muted-foreground/30"}`}),R.jsx("span",{className:"text-sm font-medium text-foreground",children:o.metadata||o.id.slice(0,12)}),R.jsx(Na,{variant:o.status==="active"?"default":"secondary",children:o.status})]}),R.jsxs("span",{className:"text-xs text-muted-foreground",children:[o.checkpointCount," checkpoint",o.checkpointCount!==1?"s":""]})]}),R.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground/60",children:[R.jsxs("span",{children:["Started: ",new Date(o.startedAt).toLocaleString()]}),o.endedAt&&R.jsxs("span",{children:["Ended: ",new Date(o.endedAt).toLocaleString()]})]})]},o.id))})]})}function o3(){const t=lu(),{data:a=[],isLoading:l}=sl({queryKey:["episodes",t],queryFn:()=>on.episodes.list({scope:t})});return R.jsxs("div",{children:[R.jsx("h2",{className:"text-xl font-semibold mb-6",children:"Episodes"}),l?R.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading..."}):a.length===0?R.jsx("p",{className:"text-muted-foreground text-sm",children:"No episodes found."}):R.jsx("div",{className:"space-y-2",children:a.map(o=>R.jsxs(Aa,{className:"p-4 hover:border-muted-foreground/30 transition-colors",children:[R.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.contentType&&R.jsx(Na,{variant:"secondary",children:o.contentType}),o.source&&R.jsx("span",{className:"text-xs text-muted-foreground",children:o.source}),R.jsx("span",{className:"text-xs text-muted-foreground/60 ml-auto",children:new Date(o.createdAt).toLocaleString()})]}),R.jsx("pre",{className:"text-sm text-foreground/80 whitespace-pre-wrap font-mono bg-background rounded-lg p-3 max-h-60 overflow-auto",children:o.content})]},o.id))})]})}const s3=[{to:"/",label:"Memories"},{to:"/graph",label:"Graph"},{to:"/sessions",label:"Sessions"},{to:"/episodes",label:"Episodes"}];function u3(){const{theme:t,setTheme:a}=T0();return R.jsx(pt,{variant:"ghost",size:"icon-sm",onClick:()=>a(t==="dark"?"light":"dark"),"aria-label":"Toggle theme",children:t==="dark"?"☀":"☾"})}function c3(){const[t,a]=S.useState("all"),{data:l}=sl({queryKey:["info"],queryFn:()=>on.info()});return R.jsx(vx,{value:t,children:R.jsxs("div",{className:"flex h-screen",children:[R.jsxs("nav",{className:"w-56 shrink-0 border-r border-border bg-card flex flex-col",children:[R.jsxs("div",{className:"px-5 py-5 border-b border-border",children:[R.jsxs("div",{className:"flex items-center justify-between",children:[R.jsx("h1",{className:"text-lg font-semibold text-primary tracking-tight",children:"◆ Cohaku"}),R.jsx(u3,{})]}),l?.projectName?R.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:l.projectName}):R.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Dashboard"})]}),R.jsx("div",{className:"flex flex-col gap-1 p-3",children:s3.map(({to:o,label:s})=>R.jsx(h0,{to:o,end:o==="/",className:({isActive:c})=>`px-3 py-2 rounded-lg text-sm transition-colors ${c?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent"}`,children:s},o))}),R.jsxs("div",{className:"mt-auto px-3 pb-4",children:[R.jsx("p",{className:"text-xs text-muted-foreground px-1 mb-2",children:"Scope"}),R.jsxs(AR,{type:"single",value:t,onValueChange:o=>{o&&a(o)},variant:"outline",className:"w-full",children:[R.jsx(Kf,{value:"all",className:"flex-1",children:"All"}),R.jsx(Kf,{value:"project",className:"flex-1",children:"Project"}),R.jsx(Kf,{value:"global",className:"flex-1",children:"Global"})]})]})]}),R.jsx("main",{className:"flex-1 overflow-auto p-6",children:R.jsxs(EE,{children:[R.jsx(yr,{path:"/",element:R.jsx(ZR,{})}),R.jsx(yr,{path:"/graph",element:R.jsx(l3,{})}),R.jsx(yr,{path:"/sessions",element:R.jsx(r3,{})}),R.jsx(yr,{path:"/episodes",element:R.jsx(o3,{})})]})})]})})}const f3=new T_({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Cw.createRoot(document.getElementById("root")).render(R.jsx(S.StrictMode,{children:R.jsx(V_,{attribute:"class",defaultTheme:"dark",enableSystem:!0,disableTransitionOnChange:!0,children:R.jsx(A_,{client:f3,children:R.jsx(ZE,{children:R.jsx(c3,{})})})})}));
|