@better-webhook/cli 3.4.3 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/dist/dashboard/assets/index-CxrRCNTh.css +1 -0
- package/dist/dashboard/assets/index-Dlqdzwyc.js +23 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/index.cjs +341 -24
- package/dist/index.js +341 -24
- package/package.json +5 -4
- package/dist/commands/capture.d.ts +0 -2
- package/dist/commands/capture.js +0 -30
- package/dist/commands/captures.d.ts +0 -2
- package/dist/commands/captures.js +0 -217
- package/dist/commands/dashboard.d.ts +0 -2
- package/dist/commands/dashboard.js +0 -65
- package/dist/commands/index.d.ts +0 -6
- package/dist/commands/index.js +0 -6
- package/dist/commands/replay.d.ts +0 -2
- package/dist/commands/replay.js +0 -140
- package/dist/commands/run.d.ts +0 -2
- package/dist/commands/run.js +0 -181
- package/dist/commands/templates.d.ts +0 -2
- package/dist/commands/templates.js +0 -285
- package/dist/core/capture-server.d.ts +0 -31
- package/dist/core/capture-server.js +0 -298
- package/dist/core/dashboard-api.d.ts +0 -8
- package/dist/core/dashboard-api.js +0 -271
- package/dist/core/dashboard-server.d.ts +0 -20
- package/dist/core/dashboard-server.js +0 -124
- package/dist/core/executor.d.ts +0 -11
- package/dist/core/executor.js +0 -130
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.js +0 -5
- package/dist/core/replay-engine.d.ts +0 -18
- package/dist/core/replay-engine.js +0 -208
- package/dist/core/signature.d.ts +0 -24
- package/dist/core/signature.js +0 -199
- package/dist/core/template-manager.d.ts +0 -24
- package/dist/core/template-manager.js +0 -246
- package/dist/dashboard/assets/index-BSfTbn4Y.js +0 -23
- package/dist/dashboard/assets/index-zDTVdss_.css +0 -1
- package/dist/types/index.d.ts +0 -299
- package/dist/types/index.js +0 -86
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function U4(l,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const f in i)if(f!=="default"&&!(f in l)){const d=Object.getOwnPropertyDescriptor(i,f);d&&Object.defineProperty(l,f,d.get?d:{enumerable:!0,get:()=>i[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))i(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();function k4(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var zf={exports:{}},Wo={};var ih;function Z4(){if(ih)return Wo;ih=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,f,d){var m=null;if(d!==void 0&&(m=""+d),f.key!==void 0&&(m=""+f.key),"key"in f){d={};for(var h in f)h!=="key"&&(d[h]=f[h])}else d=f;return f=d.ref,{$$typeof:l,type:i,key:m,ref:f!==void 0?f:null,props:d}}return Wo.Fragment=r,Wo.jsx=o,Wo.jsxs=o,Wo}var sh;function B4(){return sh||(sh=1,zf.exports=Z4()),zf.exports}var y=B4(),jf={exports:{}},ke={};var uh;function q4(){if(uh)return ke;uh=1;var l=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function R(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,w={};function O(C,q,k){this.props=C,this.context=q,this.refs=w,this.updater=k||A}O.prototype.isReactComponent={},O.prototype.setState=function(C,q){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,q,"setState")},O.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function N(){}N.prototype=O.prototype;function z(C,q,k){this.props=C,this.context=q,this.refs=w,this.updater=k||A}var D=z.prototype=new N;D.constructor=z,M(D,O.prototype),D.isPureReactComponent=!0;var T=Array.isArray;function B(){}var V={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function ie(C,q,k){var ee=k.ref;return{$$typeof:l,type:C,key:q,ref:ee!==void 0?ee:null,props:k}}function se(C,q){return ie(C.type,q,C.props)}function oe(C){return typeof C=="object"&&C!==null&&C.$$typeof===l}function ae(C){var q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return q[k]})}var I=/\/+/g;function $(C,q){return typeof C=="object"&&C!==null&&C.key!=null?ae(""+C.key):q.toString(36)}function Q(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(B,B):(C.status="pending",C.then(function(q){C.status==="pending"&&(C.status="fulfilled",C.value=q)},function(q){C.status==="pending"&&(C.status="rejected",C.reason=q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function j(C,q,k,ee,me){var te=typeof C;(te==="undefined"||te==="boolean")&&(C=null);var J=!1;if(C===null)J=!0;else switch(te){case"bigint":case"string":case"number":J=!0;break;case"object":switch(C.$$typeof){case l:case r:J=!0;break;case x:return J=C._init,j(J(C._payload),q,k,ee,me)}}if(J)return me=me(C),J=ee===""?"."+$(C,0):ee,T(me)?(k="",J!=null&&(k=J.replace(I,"$&/")+"/"),j(me,q,k,"",function(Te){return Te})):me!=null&&(oe(me)&&(me=se(me,k+(me.key==null||C&&C.key===me.key?"":(""+me.key).replace(I,"$&/")+"/")+J)),q.push(me)),1;J=0;var de=ee===""?".":ee+":";if(T(C))for(var he=0;he<C.length;he++)ee=C[he],te=de+$(ee,he),J+=j(ee,q,k,te,me);else if(he=R(C),typeof he=="function")for(C=he.call(C),he=0;!(ee=C.next()).done;)ee=ee.value,te=de+$(ee,he++),J+=j(ee,q,k,te,me);else if(te==="object"){if(typeof C.then=="function")return j(Q(C),q,k,ee,me);throw q=String(C),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return J}function Z(C,q,k){if(C==null)return C;var ee=[],me=0;return j(C,ee,"","",function(te){return q.call(k,te,me++)}),ee}function H(C){if(C._status===-1){var q=C._result;q=q(),q.then(function(k){(C._status===0||C._status===-1)&&(C._status=1,C._result=k)},function(k){(C._status===0||C._status===-1)&&(C._status=2,C._result=k)}),C._status===-1&&(C._status=0,C._result=q)}if(C._status===1)return C._result.default;throw C._result}var K=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ne={map:Z,forEach:function(C,q,k){Z(C,function(){q.apply(this,arguments)},k)},count:function(C){var q=0;return Z(C,function(){q++}),q},toArray:function(C){return Z(C,function(q){return q})||[]},only:function(C){if(!oe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ke.Activity=b,ke.Children=ne,ke.Component=O,ke.Fragment=o,ke.Profiler=f,ke.PureComponent=z,ke.StrictMode=i,ke.Suspense=v,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ke.__COMPILER_RUNTIME={__proto__:null,c:function(C){return V.H.useMemoCache(C)}},ke.cache=function(C){return function(){return C.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(C,q,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ee=M({},C.props),me=C.key;if(q!=null)for(te in q.key!==void 0&&(me=""+q.key),q)!_.call(q,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&q.ref===void 0||(ee[te]=q[te]);var te=arguments.length-2;if(te===1)ee.children=k;else if(1<te){for(var J=Array(te),de=0;de<te;de++)J[de]=arguments[de+2];ee.children=J}return ie(C.type,me,ee)},ke.createContext=function(C){return C={$$typeof:m,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:d,_context:C},C},ke.createElement=function(C,q,k){var ee,me={},te=null;if(q!=null)for(ee in q.key!==void 0&&(te=""+q.key),q)_.call(q,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(me[ee]=q[ee]);var J=arguments.length-2;if(J===1)me.children=k;else if(1<J){for(var de=Array(J),he=0;he<J;he++)de[he]=arguments[he+2];me.children=de}if(C&&C.defaultProps)for(ee in J=C.defaultProps,J)me[ee]===void 0&&(me[ee]=J[ee]);return ie(C,te,me)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(C){return{$$typeof:h,render:C}},ke.isValidElement=oe,ke.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:H}},ke.memo=function(C,q){return{$$typeof:p,type:C,compare:q===void 0?null:q}},ke.startTransition=function(C){var q=V.T,k={};V.T=k;try{var ee=C(),me=V.S;me!==null&&me(k,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(B,K)}catch(te){K(te)}finally{q!==null&&k.types!==null&&(q.types=k.types),V.T=q}},ke.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ke.use=function(C){return V.H.use(C)},ke.useActionState=function(C,q,k){return V.H.useActionState(C,q,k)},ke.useCallback=function(C,q){return V.H.useCallback(C,q)},ke.useContext=function(C){return V.H.useContext(C)},ke.useDebugValue=function(){},ke.useDeferredValue=function(C,q){return V.H.useDeferredValue(C,q)},ke.useEffect=function(C,q){return V.H.useEffect(C,q)},ke.useEffectEvent=function(C){return V.H.useEffectEvent(C)},ke.useId=function(){return V.H.useId()},ke.useImperativeHandle=function(C,q,k){return V.H.useImperativeHandle(C,q,k)},ke.useInsertionEffect=function(C,q){return V.H.useInsertionEffect(C,q)},ke.useLayoutEffect=function(C,q){return V.H.useLayoutEffect(C,q)},ke.useMemo=function(C,q){return V.H.useMemo(C,q)},ke.useOptimistic=function(C,q){return V.H.useOptimistic(C,q)},ke.useReducer=function(C,q,k){return V.H.useReducer(C,q,k)},ke.useRef=function(C){return V.H.useRef(C)},ke.useState=function(C){return V.H.useState(C)},ke.useSyncExternalStore=function(C,q,k){return V.H.useSyncExternalStore(C,q,k)},ke.useTransition=function(){return V.H.useTransition()},ke.version="19.2.0",ke}var ch;function pi(){return ch||(ch=1,jf.exports=q4()),jf.exports}var c=pi();const Y4=k4(c),sg=U4({__proto__:null,default:Y4},[c]);var Hf={exports:{}},ei={},Df={exports:{}},Lf={};var fh;function G4(){return fh||(fh=1,(function(l){function r(j,Z){var H=j.length;j.push(Z);e:for(;0<H;){var K=H-1>>>1,ne=j[K];if(0<f(ne,Z))j[K]=Z,j[H]=ne,H=K;else break e}}function o(j){return j.length===0?null:j[0]}function i(j){if(j.length===0)return null;var Z=j[0],H=j.pop();if(H!==Z){j[0]=H;e:for(var K=0,ne=j.length,C=ne>>>1;K<C;){var q=2*(K+1)-1,k=j[q],ee=q+1,me=j[ee];if(0>f(k,H))ee<ne&&0>f(me,k)?(j[K]=me,j[ee]=H,K=ee):(j[K]=k,j[q]=H,K=q);else if(ee<ne&&0>f(me,H))j[K]=me,j[ee]=H,K=ee;else break e}}return Z}function f(j,Z){var H=j.sortIndex-Z.sortIndex;return H!==0?H:j.id-Z.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();l.unstable_now=function(){return m.now()-h}}var v=[],p=[],x=1,b=null,S=3,R=!1,A=!1,M=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function D(j){for(var Z=o(p);Z!==null;){if(Z.callback===null)i(p);else if(Z.startTime<=j)i(p),Z.sortIndex=Z.expirationTime,r(v,Z);else break;Z=o(p)}}function T(j){if(M=!1,D(j),!A)if(o(v)!==null)A=!0,B||(B=!0,ae());else{var Z=o(p);Z!==null&&Q(T,Z.startTime-j)}}var B=!1,V=-1,_=5,ie=-1;function se(){return w?!0:!(l.unstable_now()-ie<_)}function oe(){if(w=!1,B){var j=l.unstable_now();ie=j;var Z=!0;try{e:{A=!1,M&&(M=!1,N(V),V=-1),R=!0;var H=S;try{t:{for(D(j),b=o(v);b!==null&&!(b.expirationTime>j&&se());){var K=b.callback;if(typeof K=="function"){b.callback=null,S=b.priorityLevel;var ne=K(b.expirationTime<=j);if(j=l.unstable_now(),typeof ne=="function"){b.callback=ne,D(j),Z=!0;break t}b===o(v)&&i(v),D(j)}else i(v);b=o(v)}if(b!==null)Z=!0;else{var C=o(p);C!==null&&Q(T,C.startTime-j),Z=!1}}break e}finally{b=null,S=H,R=!1}Z=void 0}}finally{Z?ae():B=!1}}}var ae;if(typeof z=="function")ae=function(){z(oe)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,$=I.port2;I.port1.onmessage=oe,ae=function(){$.postMessage(null)}}else ae=function(){O(oe,0)};function Q(j,Z){V=O(function(){j(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(j){j.callback=null},l.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<j?Math.floor(1e3/j):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(j){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var H=S;S=Z;try{return j()}finally{S=H}},l.unstable_requestPaint=function(){w=!0},l.unstable_runWithPriority=function(j,Z){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var H=S;S=j;try{return Z()}finally{S=H}},l.unstable_scheduleCallback=function(j,Z,H){var K=l.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,j){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=H+ne,j={id:x++,callback:Z,priorityLevel:j,startTime:H,expirationTime:ne,sortIndex:-1},H>K?(j.sortIndex=H,r(p,j),o(v)===null&&j===o(p)&&(M?(N(V),V=-1):M=!0,Q(T,H-K))):(j.sortIndex=ne,r(v,j),A||R||(A=!0,B||(B=!0,ae()))),j},l.unstable_shouldYield=se,l.unstable_wrapCallback=function(j){var Z=S;return function(){var H=S;S=Z;try{return j.apply(this,arguments)}finally{S=H}}}})(Lf)),Lf}var dh;function I4(){return dh||(dh=1,Df.exports=G4()),Df.exports}var Vf={exports:{}},rn={};var mh;function X4(){if(mh)return rn;mh=1;var l=pi();function r(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(v,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:v,containerInfo:p,implementation:x}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,rn.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return d(v,p,null,x)},rn.flushSync=function(v){var p=m.T,x=i.p;try{if(m.T=null,i.p=2,v)return v()}finally{m.T=p,i.p=x,i.d.f()}},rn.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(v,p))},rn.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},rn.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,b=h(x,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:R}):x==="script"&&i.d.X(v,{crossOrigin:b,integrity:S,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},rn.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(v)},rn.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=h(x,p.crossOrigin);i.d.L(v,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},rn.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(v)},rn.requestFormReset=function(v){i.d.r(v)},rn.unstable_batchedUpdates=function(v,p){return v(p)},rn.useFormState=function(v,p,x){return m.H.useFormState(v,p,x)},rn.useFormStatus=function(){return m.H.useHostTransitionStatus()},rn.version="19.2.0",rn}var ph;function ug(){if(ph)return Vf.exports;ph=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Vf.exports=X4(),Vf.exports}var hh;function F4(){if(hh)return ei;hh=1;var l=I4(),r=pi(),o=ug();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(d(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var u=s.alternate;if(u===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===n)return v(s),e;if(u===a)return v(s),t;u=u.sibling}throw Error(i(188))}if(n.return!==a.return)n=s,a=u;else{for(var g=!1,E=s.child;E;){if(E===n){g=!0,n=s,a=u;break}if(E===a){g=!0,a=s,n=u;break}E=E.sibling}if(!g){for(E=u.child;E;){if(E===n){g=!0,n=u,a=s;break}if(E===a){g=!0,a=u,n=s;break}E=E.sibling}if(!g)throw Error(i(189))}}if(n.alternate!==a)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),z=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ae(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function $(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case B:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case z:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:$(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}var Q=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},K=[],ne=-1;function C(e){return{current:e}}function q(e){0>ne||(e.current=K[ne],K[ne]=null,ne--)}function k(e,t){ne++,K[ne]=e.current,e.current=t}var ee=C(null),me=C(null),te=C(null),J=C(null);function de(e,t){switch(k(te,t),k(me,e),k(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Np(t),e=zp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ee),k(ee,e)}function he(){q(ee),q(me),q(te)}function Te(e){e.memoizedState!==null&&k(J,e);var t=ee.current,n=zp(t,e.type);t!==n&&(k(me,e),k(ee,n))}function le(e){me.current===e&&(q(ee),q(me)),J.current===e&&(q(J),Ko._currentValue=H)}var Se,ye;function _e(e){if(Se===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",ye=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Se+e+ye}var Ae=!1;function pe(e,t){if(!e||Ae)return"";Ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(W){var P=W}Reflect.construct(e,[],ce)}else{try{ce.call()}catch(W){P=W}e.call(ce.prototype)}}else{try{throw Error()}catch(W){P=W}(ce=e())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(W){if(W&&P&&typeof W.stack=="string")return[W.stack,P.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),g=u[0],E=u[1];if(g&&E){var L=g.split(`
|
|
4
|
+
`),F=E.split(`
|
|
5
|
+
`);for(s=a=0;a<L.length&&!L[a].includes("DetermineComponentFrameRoot");)a++;for(;s<F.length&&!F[s].includes("DetermineComponentFrameRoot");)s++;if(a===L.length||s===F.length)for(a=L.length-1,s=F.length-1;1<=a&&0<=s&&L[a]!==F[s];)s--;for(;1<=a&&0<=s;a--,s--)if(L[a]!==F[s]){if(a!==1||s!==1)do if(a--,s--,0>s||L[a]!==F[s]){var re=`
|
|
6
|
+
`+L[a].replace(" at new "," at ");return e.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",e.displayName)),re}while(1<=a&&0<=s);break}}}finally{Ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_e(n):""}function G(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return _e("Activity");default:return""}}function ge(e){try{var t="",n=null;do t+=G(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var ve=Object.prototype.hasOwnProperty,Me=l.unstable_scheduleCallback,fe=l.unstable_cancelCallback,De=l.unstable_shouldYield,be=l.unstable_requestPaint,Re=l.unstable_now,xe=l.unstable_getCurrentPriorityLevel,Ie=l.unstable_ImmediatePriority,lt=l.unstable_UserBlockingPriority,Ye=l.unstable_NormalPriority,yt=l.unstable_LowPriority,bt=l.unstable_IdlePriority,zt=l.log,Rt=l.unstable_setDisableYieldValue,ft=null,je=null;function Be(e){if(typeof zt=="function"&&Rt(e),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(ft,e)}catch{}}var Je=Math.clz32?Math.clz32:jt,dt=Math.log,xt=Math.LN2;function jt(e){return e>>>=0,e===0?32:31-(dt(e)/xt|0)|0}var vt=256,Gt=262144,At=4194304;function Mt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mn(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,u=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var E=a&134217727;return E!==0?(a=E&~u,a!==0?s=Mt(a):(g&=E,g!==0?s=Mt(g):n||(n=E&~e,n!==0&&(s=Mt(n))))):(E=a&~u,E!==0?s=Mt(E):g!==0?s=Mt(g):n||(n=a&~e,n!==0&&(s=Mt(n)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:s}function Vn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ta(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+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 $e(){var e=At;return At<<=1,(At&62914560)===0&&(At=4194304),e}function wt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function an(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function pn(e,t,n,a,s,u){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var E=e.entanglements,L=e.expirationTimes,F=e.hiddenUpdates;for(n=g&~n;0<n;){var re=31-Je(n),ce=1<<re;E[re]=0,L[re]=-1;var P=F[re];if(P!==null)for(F[re]=null,re=0;re<P.length;re++){var W=P[re];W!==null&&(W.lane&=-536870913)}n&=~ce}a!==0&&un(e,a,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(g&~t))}function un(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Je(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function vl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Je(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function io(e,t){var n=t&-t;return n=(n&42)!==0?1:yl(n),(n&(e.suspendedLanes|t))!==0?0:n}function yl(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 so(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xi(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:eh(e.type))}function Si(e,t){var n=Z.p;try{return Z.p=e,t()}finally{Z.p=n}}var Bl=Math.random().toString(36).slice(2),$t="__reactFiber$"+Bl,hn="__reactProps$"+Bl,tr="__reactContainer$"+Bl,Su="__reactEvents$"+Bl,w8="__reactListeners$"+Bl,C8="__reactHandles$"+Bl,v0="__reactResources$"+Bl,uo="__reactMarker$"+Bl;function Eu(e){delete e[$t],delete e[hn],delete e[Su],delete e[w8],delete e[C8]}function nr(e){var t=e[$t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tr]||n[$t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Up(e);e!==null;){if(n=e[$t])return n;e=Up(e)}return t}e=n,n=e.parentNode}return null}function lr(e){if(e=e[$t]||e[tr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function co(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ar(e){var t=e[v0];return t||(t=e[v0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qt(e){e[uo]=!0}var y0=new Set,b0={};function Aa(e,t){rr(e,t),rr(e+"Capture",t)}function rr(e,t){for(b0[e]=t,e=0;e<t.length;e++)y0.add(t[e])}var O8=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]*$"),x0={},S0={};function N8(e){return ve.call(S0,e)?!0:ve.call(x0,e)?!1:O8.test(e)?S0[e]=!0:(x0[e]=!0,!1)}function Ei(e,t,n){if(N8(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ri(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function bl(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function _n(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z8(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){n=""+g,u.call(this,g)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ru(e){if(!e._valueTracker){var t=E0(e)?"checked":"value";e._valueTracker=z8(e,t,""+e[t])}}function R0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=E0(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Ti(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 j8=/[\n"\\]/g;function Un(e){return e.replace(j8,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tu(e,t,n,a,s,u,g,E){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_n(t)):e.value!==""+_n(t)&&(e.value=""+_n(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?Au(e,g,_n(t)):n!=null?Au(e,g,_n(n)):a!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+_n(E):e.removeAttribute("name")}function T0(e,t,n,a,s,u,g,E){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ru(e);return}n=n!=null?""+_n(n):"",t=t!=null?""+_n(t):n,E||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=E?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Ru(e)}function Au(e,t,n){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function or(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function A0(e,t,n){if(t!=null&&(t=""+_n(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+_n(n):""}function M0(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(i(92));if(Q(a)){if(1<a.length)throw Error(i(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=_n(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ru(e)}function ir(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var H8=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 w0(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||H8.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function C0(e,t,n){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&w0(e,s,a)}else for(var u in t)t.hasOwnProperty(u)&&w0(e,u,t[u])}function Mu(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 D8=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"]]),L8=/^[\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 Ai(e){return L8.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xl(){}var wu=null;function Cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sr=null,ur=null;function O0(e){var t=lr(e);if(t&&(e=t.stateNode)){var n=e[hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Un(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[hn]||null;if(!s)throw Error(i(90));Tu(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&R0(a)}break e;case"textarea":A0(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&or(e,!!n.multiple,t,!1)}}}var Ou=!1;function N0(e,t,n){if(Ou)return e(t,n);Ou=!0;try{var a=e(t);return a}finally{if(Ou=!1,(sr!==null||ur!==null)&&(ds(),sr&&(t=sr,e=ur,ur=sr=null,O0(t),e)))for(t=0;t<e.length;t++)O0(e[t])}}function fo(e,t){var n=e.stateNode;if(n===null)return null;var a=n[hn]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,t,typeof n));return n}var Sl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nu=!1;if(Sl)try{var mo={};Object.defineProperty(mo,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",mo,mo),window.removeEventListener("test",mo,mo)}catch{Nu=!1}var ql=null,zu=null,Mi=null;function z0(){if(Mi)return Mi;var e,t=zu,n=t.length,a,s="value"in ql?ql.value:ql.textContent,u=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===s[u-a];a++);return Mi=s.slice(e,1<a?1-a:void 0)}function wi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ci(){return!0}function j0(){return!1}function gn(e){function t(n,a,s,u,g){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=u,this.target=g,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(n=e[E],this[E]=n?n(u):u[E]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ci:j0,this.isPropagationStopped=j0,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ci)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ci)},persist:function(){},isPersistent:Ci}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oi=gn(Ma),po=b({},Ma,{view:0,detail:0}),V8=gn(po),ju,Hu,ho,Ni=b({},po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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!==ho&&(ho&&e.type==="mousemove"?(ju=e.screenX-ho.screenX,Hu=e.screenY-ho.screenY):Hu=ju=0,ho=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Hu}}),H0=gn(Ni),_8=b({},Ni,{dataTransfer:0}),U8=gn(_8),k8=b({},po,{relatedTarget:0}),Du=gn(k8),Z8=b({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),B8=gn(Z8),q8=b({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y8=gn(q8),G8=b({},Ma,{data:0}),D0=gn(G8),I8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X8={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"},F8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F8[e])?!!t[e]:!1}function Lu(){return Q8}var K8=b({},po,{key:function(e){if(e.key){var t=I8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(e){return e.type==="keypress"?wi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P8=gn(K8),J8=b({},Ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),L0=gn(J8),$8=b({},po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),W8=gn($8),ev=b({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),tv=gn(ev),nv=b({},Ni,{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}),lv=gn(nv),av=b({},Ma,{newState:0,oldState:0}),rv=gn(av),ov=[9,13,27,32],Vu=Sl&&"CompositionEvent"in window,go=null;Sl&&"documentMode"in document&&(go=document.documentMode);var iv=Sl&&"TextEvent"in window&&!go,V0=Sl&&(!Vu||go&&8<go&&11>=go),_0=" ",U0=!1;function k0(e,t){switch(e){case"keyup":return ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function sv(e,t){switch(e){case"compositionend":return Z0(t);case"keypress":return t.which!==32?null:(U0=!0,_0);case"textInput":return e=t.data,e===_0&&U0?null:e;default:return null}}function uv(e,t){if(cr)return e==="compositionend"||!Vu&&k0(e,t)?(e=z0(),Mi=zu=ql=null,cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return V0&&t.locale!=="ko"?null:t.data;default:return null}}var cv={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 B0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cv[e.type]:t==="textarea"}function q0(e,t,n,a){sr?ur?ur.push(a):ur=[a]:sr=a,t=bs(t,"onChange"),0<t.length&&(n=new Oi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var vo=null,yo=null;function fv(e){Tp(e,0)}function zi(e){var t=co(e);if(R0(t))return e}function Y0(e,t){if(e==="change")return t}var G0=!1;if(Sl){var _u;if(Sl){var Uu="oninput"in document;if(!Uu){var I0=document.createElement("div");I0.setAttribute("oninput","return;"),Uu=typeof I0.oninput=="function"}_u=Uu}else _u=!1;G0=_u&&(!document.documentMode||9<document.documentMode)}function X0(){vo&&(vo.detachEvent("onpropertychange",F0),yo=vo=null)}function F0(e){if(e.propertyName==="value"&&zi(yo)){var t=[];q0(t,yo,e,Cu(e)),N0(fv,t)}}function dv(e,t,n){e==="focusin"?(X0(),vo=t,yo=n,vo.attachEvent("onpropertychange",F0)):e==="focusout"&&X0()}function mv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zi(yo)}function pv(e,t){if(e==="click")return zi(t)}function hv(e,t){if(e==="input"||e==="change")return zi(t)}function gv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tn=typeof Object.is=="function"?Object.is:gv;function bo(e,t){if(Tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!ve.call(t,s)||!Tn(e[s],t[s]))return!1}return!0}function Q0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function K0(e,t){var n=Q0(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Q0(n)}}function P0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function J0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ti(e.document)}return t}function ku(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vv=Sl&&"documentMode"in document&&11>=document.documentMode,fr=null,Zu=null,xo=null,Bu=!1;function $0(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||fr==null||fr!==Ti(a)||(a=fr,"selectionStart"in a&&ku(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),xo&&bo(xo,a)||(xo=a,a=bs(Zu,"onSelect"),0<a.length&&(t=new Oi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=fr)))}function wa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionrun:wa("Transition","TransitionRun"),transitionstart:wa("Transition","TransitionStart"),transitioncancel:wa("Transition","TransitionCancel"),transitionend:wa("Transition","TransitionEnd")},qu={},W0={};Sl&&(W0=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function Ca(e){if(qu[e])return qu[e];if(!dr[e])return e;var t=dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in W0)return qu[e]=t[n];return e}var e1=Ca("animationend"),t1=Ca("animationiteration"),n1=Ca("animationstart"),yv=Ca("transitionrun"),bv=Ca("transitionstart"),xv=Ca("transitioncancel"),l1=Ca("transitionend"),a1=new Map,Yu="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(" ");Yu.push("scrollEnd");function Pn(e,t){a1.set(e,t),Aa(t,[e])}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kn=[],mr=0,Gu=0;function Hi(){for(var e=mr,t=Gu=mr=0;t<e;){var n=kn[t];kn[t++]=null;var a=kn[t];kn[t++]=null;var s=kn[t];kn[t++]=null;var u=kn[t];if(kn[t++]=null,a!==null&&s!==null){var g=a.pending;g===null?s.next=s:(s.next=g.next,g.next=s),a.pending=s}u!==0&&r1(n,s,u)}}function Di(e,t,n,a){kn[mr++]=e,kn[mr++]=t,kn[mr++]=n,kn[mr++]=a,Gu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Iu(e,t,n,a){return Di(e,t,n,a),Li(e)}function Oa(e,t){return Di(e,null,null,t),Li(e)}function r1(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-Je(n),e=u.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),u):null}function Li(e){if(50<qo)throw qo=0,ef=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pr={};function Sv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(e,t,n,a){return new Sv(e,t,n,a)}function Xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function El(e,t){var n=e.alternate;return n===null?(n=An(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function o1(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vi(e,t,n,a,s,u){var g=0;if(a=e,typeof e=="function")Xu(e)&&(g=1);else if(typeof e=="string")g=M4(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=An(31,n,t,s),e.elementType=ie,e.lanes=u,e;case M:return Na(n.children,s,u,t);case w:g=8,s|=24;break;case O:return e=An(12,n,t,s|2),e.elementType=O,e.lanes=u,e;case T:return e=An(13,n,t,s),e.elementType=T,e.lanes=u,e;case B:return e=An(19,n,t,s),e.elementType=B,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:g=10;break e;case N:g=9;break e;case D:g=11;break e;case V:g=14;break e;case _:g=16,a=null;break e}g=29,n=Error(i(130,e===null?"null":typeof e,"")),a=null}return t=An(g,n,t,s),t.elementType=e,t.type=a,t.lanes=u,t}function Na(e,t,n,a){return e=An(7,e,a,t),e.lanes=n,e}function Fu(e,t,n){return e=An(6,e,null,t),e.lanes=n,e}function i1(e){var t=An(18,null,null,0);return t.stateNode=e,t}function Qu(e,t,n){return t=An(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var s1=new WeakMap;function Zn(e,t){if(typeof e=="object"&&e!==null){var n=s1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ge(t)},s1.set(e,t),t)}return{value:e,source:t,stack:ge(t)}}var hr=[],gr=0,_i=null,So=0,Bn=[],qn=0,Yl=null,ol=1,il="";function Rl(e,t){hr[gr++]=So,hr[gr++]=_i,_i=e,So=t}function u1(e,t,n){Bn[qn++]=ol,Bn[qn++]=il,Bn[qn++]=Yl,Yl=e;var a=ol;e=il;var s=32-Je(a)-1;a&=~(1<<s),n+=1;var u=32-Je(t)+s;if(30<u){var g=s-s%5;u=(a&(1<<g)-1).toString(32),a>>=g,s-=g,ol=1<<32-Je(t)+s|n<<s|a,il=u+e}else ol=1<<u|n<<s|a,il=e}function Ku(e){e.return!==null&&(Rl(e,1),u1(e,1,0))}function Pu(e){for(;e===_i;)_i=hr[--gr],hr[gr]=null,So=hr[--gr],hr[gr]=null;for(;e===Yl;)Yl=Bn[--qn],Bn[qn]=null,il=Bn[--qn],Bn[qn]=null,ol=Bn[--qn],Bn[qn]=null}function c1(e,t){Bn[qn++]=ol,Bn[qn++]=il,Bn[qn++]=Yl,ol=t.id,il=t.overflow,Yl=e}var Wt=null,St=null,tt=!1,Gl=null,Yn=!1,Ju=Error(i(519));function Il(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Eo(Zn(t,e)),Ju}function f1(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[$t]=e,t[hn]=a,n){case"dialog":Ke("cancel",t),Ke("close",t);break;case"iframe":case"object":case"embed":Ke("load",t);break;case"video":case"audio":for(n=0;n<Go.length;n++)Ke(Go[n],t);break;case"source":Ke("error",t);break;case"img":case"image":case"link":Ke("error",t),Ke("load",t);break;case"details":Ke("toggle",t);break;case"input":Ke("invalid",t),T0(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ke("invalid",t);break;case"textarea":Ke("invalid",t),M0(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Cp(t.textContent,n)?(a.popover!=null&&(Ke("beforetoggle",t),Ke("toggle",t)),a.onScroll!=null&&Ke("scroll",t),a.onScrollEnd!=null&&Ke("scrollend",t),a.onClick!=null&&(t.onclick=xl),t=!0):t=!1,t||Il(e,!0)}function d1(e){for(Wt=e.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Wt=Wt.return}}function vr(e){if(e!==Wt)return!1;if(!tt)return d1(e),tt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||gf(e.type,e.memoizedProps)),n=!n),n&&St&&Il(e),d1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));St=_p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));St=_p(e)}else t===27?(t=St,ra(e.type)?(e=Sf,Sf=null,St=e):St=t):St=Wt?In(e.stateNode.nextSibling):null;return!0}function za(){St=Wt=null,tt=!1}function $u(){var e=Gl;return e!==null&&(xn===null?xn=e:xn.push.apply(xn,e),Gl=null),e}function Eo(e){Gl===null?Gl=[e]:Gl.push(e)}var Wu=C(null),ja=null,Tl=null;function Xl(e,t,n){k(Wu,t._currentValue),t._currentValue=n}function Al(e){e._currentValue=Wu.current,q(Wu)}function ec(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function tc(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var g=s.child;u=u.firstContext;e:for(;u!==null;){var E=u;u=s;for(var L=0;L<t.length;L++)if(E.context===t[L]){u.lanes|=n,E=u.alternate,E!==null&&(E.lanes|=n),ec(u.return,n,e),a||(g=null);break e}u=E.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(i(341));g.lanes|=n,u=g.alternate,u!==null&&(u.lanes|=n),ec(g,n,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function yr(e,t,n,a){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(i(387));if(g=g.memoizedProps,g!==null){var E=s.type;Tn(s.pendingProps.value,g.value)||(e!==null?e.push(E):e=[E])}}else if(s===J.current){if(g=s.alternate,g===null)throw Error(i(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ko):e=[Ko])}s=s.return}e!==null&&tc(t,e,n,a),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!Tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ha(e){ja=e,Tl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function en(e){return m1(ja,e)}function ki(e,t){return ja===null&&Ha(e),m1(e,t)}function m1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Tl===null){if(e===null)throw Error(i(308));Tl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tl=Tl.next=t;return n}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Rv=l.unstable_scheduleCallback,Tv=l.unstable_NormalPriority,Vt={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new Ev,data:new Map,refCount:0}}function Ro(e){e.refCount--,e.refCount===0&&Rv(Tv,function(){e.controller.abort()})}var To=null,lc=0,br=0,xr=null;function Av(e,t){if(To===null){var n=To=[];lc=0,br=of(),xr={status:"pending",value:void 0,then:function(a){n.push(a)}}}return lc++,t.then(p1,p1),t}function p1(){if(--lc===0&&To!==null){xr!==null&&(xr.status="fulfilled");var e=To;To=null,br=0,xr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var h1=j.S;j.S=function(e,t){$m=Re(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Av(e,t),h1!==null&&h1(e,t)};var Da=C(null);function ac(){var e=Da.current;return e!==null?e:gt.pooledCache}function Zi(e,t){t===null?k(Da,Da.current):k(Da,t.pool)}function g1(){var e=ac();return e===null?null:{parent:Vt._currentValue,pool:e}}var Sr=Error(i(460)),rc=Error(i(474)),Bi=Error(i(542)),qi={then:function(){}};function v1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function y1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(xl,xl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,x1(e),e;default:if(typeof t.status=="string")t.then(xl,xl);else{if(e=gt,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,x1(e),e}throw Va=t,Sr}}function La(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Va=n,Sr):n}}var Va=null;function b1(){if(Va===null)throw Error(i(459));var e=Va;return Va=null,e}function x1(e){if(e===Sr||e===Bi)throw Error(i(483))}var Er=null,Ao=0;function Yi(e){var t=Ao;return Ao+=1,Er===null&&(Er=[]),y1(Er,e,t)}function Mo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gi(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function S1(e){function t(Y,U){if(e){var X=Y.deletions;X===null?(Y.deletions=[U],Y.flags|=16):X.push(U)}}function n(Y,U){if(!e)return null;for(;U!==null;)t(Y,U),U=U.sibling;return null}function a(Y){for(var U=new Map;Y!==null;)Y.key!==null?U.set(Y.key,Y):U.set(Y.index,Y),Y=Y.sibling;return U}function s(Y,U){return Y=El(Y,U),Y.index=0,Y.sibling=null,Y}function u(Y,U,X){return Y.index=X,e?(X=Y.alternate,X!==null?(X=X.index,X<U?(Y.flags|=67108866,U):X):(Y.flags|=67108866,U)):(Y.flags|=1048576,U)}function g(Y){return e&&Y.alternate===null&&(Y.flags|=67108866),Y}function E(Y,U,X,ue){return U===null||U.tag!==6?(U=Fu(X,Y.mode,ue),U.return=Y,U):(U=s(U,X),U.return=Y,U)}function L(Y,U,X,ue){var Le=X.type;return Le===M?re(Y,U,X.props.children,ue,X.key):U!==null&&(U.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===_&&La(Le)===U.type)?(U=s(U,X.props),Mo(U,X),U.return=Y,U):(U=Vi(X.type,X.key,X.props,null,Y.mode,ue),Mo(U,X),U.return=Y,U)}function F(Y,U,X,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==X.containerInfo||U.stateNode.implementation!==X.implementation?(U=Qu(X,Y.mode,ue),U.return=Y,U):(U=s(U,X.children||[]),U.return=Y,U)}function re(Y,U,X,ue,Le){return U===null||U.tag!==7?(U=Na(X,Y.mode,ue,Le),U.return=Y,U):(U=s(U,X),U.return=Y,U)}function ce(Y,U,X){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Fu(""+U,Y.mode,X),U.return=Y,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case R:return X=Vi(U.type,U.key,U.props,null,Y.mode,X),Mo(X,U),X.return=Y,X;case A:return U=Qu(U,Y.mode,X),U.return=Y,U;case _:return U=La(U),ce(Y,U,X)}if(Q(U)||ae(U))return U=Na(U,Y.mode,X,null),U.return=Y,U;if(typeof U.then=="function")return ce(Y,Yi(U),X);if(U.$$typeof===z)return ce(Y,ki(Y,U),X);Gi(Y,U)}return null}function P(Y,U,X,ue){var Le=U!==null?U.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Le!==null?null:E(Y,U,""+X,ue);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case R:return X.key===Le?L(Y,U,X,ue):null;case A:return X.key===Le?F(Y,U,X,ue):null;case _:return X=La(X),P(Y,U,X,ue)}if(Q(X)||ae(X))return Le!==null?null:re(Y,U,X,ue,null);if(typeof X.then=="function")return P(Y,U,Yi(X),ue);if(X.$$typeof===z)return P(Y,U,ki(Y,X),ue);Gi(Y,X)}return null}function W(Y,U,X,ue,Le){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Y=Y.get(X)||null,E(U,Y,""+ue,Le);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case R:return Y=Y.get(ue.key===null?X:ue.key)||null,L(U,Y,ue,Le);case A:return Y=Y.get(ue.key===null?X:ue.key)||null,F(U,Y,ue,Le);case _:return ue=La(ue),W(Y,U,X,ue,Le)}if(Q(ue)||ae(ue))return Y=Y.get(X)||null,re(U,Y,ue,Le,null);if(typeof ue.then=="function")return W(Y,U,X,Yi(ue),Le);if(ue.$$typeof===z)return W(Y,U,X,ki(U,ue),Le);Gi(U,ue)}return null}function Ce(Y,U,X,ue){for(var Le=null,at=null,He=U,Xe=U=0,et=null;He!==null&&Xe<X.length;Xe++){He.index>Xe?(et=He,He=null):et=He.sibling;var rt=P(Y,He,X[Xe],ue);if(rt===null){He===null&&(He=et);break}e&&He&&rt.alternate===null&&t(Y,He),U=u(rt,U,Xe),at===null?Le=rt:at.sibling=rt,at=rt,He=et}if(Xe===X.length)return n(Y,He),tt&&Rl(Y,Xe),Le;if(He===null){for(;Xe<X.length;Xe++)He=ce(Y,X[Xe],ue),He!==null&&(U=u(He,U,Xe),at===null?Le=He:at.sibling=He,at=He);return tt&&Rl(Y,Xe),Le}for(He=a(He);Xe<X.length;Xe++)et=W(He,Y,Xe,X[Xe],ue),et!==null&&(e&&et.alternate!==null&&He.delete(et.key===null?Xe:et.key),U=u(et,U,Xe),at===null?Le=et:at.sibling=et,at=et);return e&&He.forEach(function(ca){return t(Y,ca)}),tt&&Rl(Y,Xe),Le}function Ve(Y,U,X,ue){if(X==null)throw Error(i(151));for(var Le=null,at=null,He=U,Xe=U=0,et=null,rt=X.next();He!==null&&!rt.done;Xe++,rt=X.next()){He.index>Xe?(et=He,He=null):et=He.sibling;var ca=P(Y,He,rt.value,ue);if(ca===null){He===null&&(He=et);break}e&&He&&ca.alternate===null&&t(Y,He),U=u(ca,U,Xe),at===null?Le=ca:at.sibling=ca,at=ca,He=et}if(rt.done)return n(Y,He),tt&&Rl(Y,Xe),Le;if(He===null){for(;!rt.done;Xe++,rt=X.next())rt=ce(Y,rt.value,ue),rt!==null&&(U=u(rt,U,Xe),at===null?Le=rt:at.sibling=rt,at=rt);return tt&&Rl(Y,Xe),Le}for(He=a(He);!rt.done;Xe++,rt=X.next())rt=W(He,Y,Xe,rt.value,ue),rt!==null&&(e&&rt.alternate!==null&&He.delete(rt.key===null?Xe:rt.key),U=u(rt,U,Xe),at===null?Le=rt:at.sibling=rt,at=rt);return e&&He.forEach(function(_4){return t(Y,_4)}),tt&&Rl(Y,Xe),Le}function ht(Y,U,X,ue){if(typeof X=="object"&&X!==null&&X.type===M&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case R:e:{for(var Le=X.key;U!==null;){if(U.key===Le){if(Le=X.type,Le===M){if(U.tag===7){n(Y,U.sibling),ue=s(U,X.props.children),ue.return=Y,Y=ue;break e}}else if(U.elementType===Le||typeof Le=="object"&&Le!==null&&Le.$$typeof===_&&La(Le)===U.type){n(Y,U.sibling),ue=s(U,X.props),Mo(ue,X),ue.return=Y,Y=ue;break e}n(Y,U);break}else t(Y,U);U=U.sibling}X.type===M?(ue=Na(X.props.children,Y.mode,ue,X.key),ue.return=Y,Y=ue):(ue=Vi(X.type,X.key,X.props,null,Y.mode,ue),Mo(ue,X),ue.return=Y,Y=ue)}return g(Y);case A:e:{for(Le=X.key;U!==null;){if(U.key===Le)if(U.tag===4&&U.stateNode.containerInfo===X.containerInfo&&U.stateNode.implementation===X.implementation){n(Y,U.sibling),ue=s(U,X.children||[]),ue.return=Y,Y=ue;break e}else{n(Y,U);break}else t(Y,U);U=U.sibling}ue=Qu(X,Y.mode,ue),ue.return=Y,Y=ue}return g(Y);case _:return X=La(X),ht(Y,U,X,ue)}if(Q(X))return Ce(Y,U,X,ue);if(ae(X)){if(Le=ae(X),typeof Le!="function")throw Error(i(150));return X=Le.call(X),Ve(Y,U,X,ue)}if(typeof X.then=="function")return ht(Y,U,Yi(X),ue);if(X.$$typeof===z)return ht(Y,U,ki(Y,X),ue);Gi(Y,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,U!==null&&U.tag===6?(n(Y,U.sibling),ue=s(U,X),ue.return=Y,Y=ue):(n(Y,U),ue=Fu(X,Y.mode,ue),ue.return=Y,Y=ue),g(Y)):n(Y,U)}return function(Y,U,X,ue){try{Ao=0;var Le=ht(Y,U,X,ue);return Er=null,Le}catch(He){if(He===Sr||He===Bi)throw He;var at=An(29,He,null,Y.mode);return at.lanes=ue,at.return=Y,at}}}var _a=S1(!0),E1=S1(!1),Fl=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ot&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Li(e),r1(e,null,n),t}return Di(e,a,t,n),Li(e)}function wo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,vl(e,n)}}function sc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?s=u=g:u=u.next=g,n=n.next}while(n!==null);u===null?s=u=t:u=u.next=t}else s=u=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uc=!1;function Co(){if(uc){var e=xr;if(e!==null)throw e}}function Oo(e,t,n,a){uc=!1;var s=e.updateQueue;Fl=!1;var u=s.firstBaseUpdate,g=s.lastBaseUpdate,E=s.shared.pending;if(E!==null){s.shared.pending=null;var L=E,F=L.next;L.next=null,g===null?u=F:g.next=F,g=L;var re=e.alternate;re!==null&&(re=re.updateQueue,E=re.lastBaseUpdate,E!==g&&(E===null?re.firstBaseUpdate=F:E.next=F,re.lastBaseUpdate=L))}if(u!==null){var ce=s.baseState;g=0,re=F=L=null,E=u;do{var P=E.lane&-536870913,W=P!==E.lane;if(W?(We&P)===P:(a&P)===P){P!==0&&P===br&&(uc=!0),re!==null&&(re=re.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var Ce=e,Ve=E;P=t;var ht=n;switch(Ve.tag){case 1:if(Ce=Ve.payload,typeof Ce=="function"){ce=Ce.call(ht,ce,P);break e}ce=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ve.payload,P=typeof Ce=="function"?Ce.call(ht,ce,P):Ce,P==null)break e;ce=b({},ce,P);break e;case 2:Fl=!0}}P=E.callback,P!==null&&(e.flags|=64,W&&(e.flags|=8192),W=s.callbacks,W===null?s.callbacks=[P]:W.push(P))}else W={lane:P,tag:E.tag,payload:E.payload,callback:E.callback,next:null},re===null?(F=re=W,L=ce):re=re.next=W,g|=P;if(E=E.next,E===null){if(E=s.shared.pending,E===null)break;W=E,E=W.next,W.next=null,s.lastBaseUpdate=W,s.shared.pending=null}}while(!0);re===null&&(L=ce),s.baseState=L,s.firstBaseUpdate=F,s.lastBaseUpdate=re,u===null&&(s.shared.lanes=0),ea|=g,e.lanes=g,e.memoizedState=ce}}function R1(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function T1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)R1(n[e],t)}var Rr=C(null),Ii=C(0);function A1(e,t){e=Dl,k(Ii,e),k(Rr,t),Dl=e|t.baseLanes}function cc(){k(Ii,Dl),k(Rr,Rr.current)}function fc(){Dl=Ii.current,q(Rr),q(Ii)}var Mn=C(null),Gn=null;function Pl(e){var t=e.alternate;k(Ht,Ht.current&1),k(Mn,e),Gn===null&&(t===null||Rr.current!==null||t.memoizedState!==null)&&(Gn=e)}function dc(e){k(Ht,Ht.current),k(Mn,e),Gn===null&&(Gn=e)}function M1(e){e.tag===22?(k(Ht,Ht.current),k(Mn,e),Gn===null&&(Gn=e)):Jl()}function Jl(){k(Ht,Ht.current),k(Mn,Mn.current)}function wn(e){q(Mn),Gn===e&&(Gn=null),q(Ht)}var Ht=C(0);function Xi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||bf(n)||xf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ml=0,Ge=null,mt=null,_t=null,Fi=!1,Tr=!1,Ua=!1,Qi=0,No=0,Ar=null,wv=0;function Ct(){throw Error(i(321))}function mc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tn(e[n],t[n]))return!1;return!0}function pc(e,t,n,a,s,u){return Ml=u,Ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?um:Oc,Ua=!1,u=n(a,s),Ua=!1,Tr&&(u=C1(t,n,a,s)),w1(e),u}function w1(e){j.H=Ho;var t=mt!==null&&mt.next!==null;if(Ml=0,_t=mt=Ge=null,Fi=!1,No=0,Ar=null,t)throw Error(i(300));e===null||Ut||(e=e.dependencies,e!==null&&Ui(e)&&(Ut=!0))}function C1(e,t,n,a){Ge=e;var s=0;do{if(Tr&&(Ar=null),No=0,Tr=!1,25<=s)throw Error(i(301));if(s+=1,_t=mt=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=cm,u=t(n,a)}while(Tr);return u}function Cv(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?zo(t):t,e=e.useState()[0],(mt!==null?mt.memoizedState:null)!==e&&(Ge.flags|=1024),t}function hc(){var e=Qi!==0;return Qi=0,e}function gc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vc(e){if(Fi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Fi=!1}Ml=0,_t=mt=Ge=null,Tr=!1,No=Qi=0,Ar=null}function cn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ge.memoizedState=_t=e:_t=_t.next=e,_t}function Dt(){if(mt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=_t===null?Ge.memoizedState:_t.next;if(t!==null)_t=t,mt=e;else{if(e===null)throw Ge.alternate===null?Error(i(467)):Error(i(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},_t===null?Ge.memoizedState=_t=e:_t=_t.next=e}return _t}function Ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zo(e){var t=No;return No+=1,Ar===null&&(Ar=[]),e=y1(Ar,e,t),t=Ge,(_t===null?t.memoizedState:_t.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?um:Oc),e}function Pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zo(e);if(e.$$typeof===z)return en(e)}throw Error(i(438,String(e)))}function yc(e){var t=null,n=Ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ki(),Ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=se;return t.index++,n}function wl(e,t){return typeof t=="function"?t(e):t}function Ji(e){var t=Dt();return bc(t,mt,e)}function bc(e,t,n){var a=e.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=n;var s=e.baseQueue,u=a.pending;if(u!==null){if(s!==null){var g=s.next;s.next=u.next,u.next=g}t.baseQueue=s=u,a.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var E=g=null,L=null,F=t,re=!1;do{var ce=F.lane&-536870913;if(ce!==F.lane?(We&ce)===ce:(Ml&ce)===ce){var P=F.revertLane;if(P===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ce===br&&(re=!0);else if((Ml&P)===P){F=F.next,P===br&&(re=!0);continue}else ce={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},L===null?(E=L=ce,g=u):L=L.next=ce,Ge.lanes|=P,ea|=P;ce=F.action,Ua&&n(u,ce),u=F.hasEagerState?F.eagerState:n(u,ce)}else P={lane:ce,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},L===null?(E=L=P,g=u):L=L.next=P,Ge.lanes|=ce,ea|=ce;F=F.next}while(F!==null&&F!==t);if(L===null?g=u:L.next=E,!Tn(u,e.memoizedState)&&(Ut=!0,re&&(n=xr,n!==null)))throw n;e.memoizedState=u,e.baseState=g,e.baseQueue=L,a.lastRenderedState=u}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function xc(e){var t=Dt(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,u=t.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do u=e(u,g.action),g=g.next;while(g!==s);Tn(u,t.memoizedState)||(Ut=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function O1(e,t,n){var a=Ge,s=Dt(),u=tt;if(u){if(n===void 0)throw Error(i(407));n=n()}else n=t();var g=!Tn((mt||s).memoizedState,n);if(g&&(s.memoizedState=n,Ut=!0),s=s.queue,Rc(j1.bind(null,a,s,e),[e]),s.getSnapshot!==t||g||_t!==null&&_t.memoizedState.tag&1){if(a.flags|=2048,Mr(9,{destroy:void 0},z1.bind(null,a,s,n,t),null),gt===null)throw Error(i(349));u||(Ml&127)!==0||N1(a,t,n)}return n}function N1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ge.updateQueue,t===null?(t=Ki(),Ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function z1(e,t,n,a){t.value=n,t.getSnapshot=a,H1(t)&&D1(e)}function j1(e,t,n){return n(function(){H1(t)&&D1(e)})}function H1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tn(e,n)}catch{return!0}}function D1(e){var t=Oa(e,2);t!==null&&Sn(t,e,2)}function Sc(e){var t=cn();if(typeof e=="function"){var n=e;if(e=n(),Ua){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:e},t}function L1(e,t,n,a){return e.baseState=n,bc(e,mt,typeof a=="function"?a:wl)}function Ov(e,t,n,a,s){if(es(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){u.listeners.push(g)}};j.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,V1(t,u)):(u.next=n.next,t.pending=n.next=u)}}function V1(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var u=j.T,g={};j.T=g;try{var E=n(s,a),L=j.S;L!==null&&L(g,E),_1(e,t,E)}catch(F){Ec(e,t,F)}finally{u!==null&&g.types!==null&&(u.types=g.types),j.T=u}}else try{u=n(s,a),_1(e,t,u)}catch(F){Ec(e,t,F)}}function _1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){U1(e,t,a)},function(a){return Ec(e,t,a)}):U1(e,t,n)}function U1(e,t,n){t.status="fulfilled",t.value=n,k1(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,V1(e,n)))}function Ec(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,k1(t),t=t.next;while(t!==a)}e.action=null}function k1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Z1(e,t){return t}function B1(e,t){if(tt){var n=gt.formState;if(n!==null){e:{var a=Ge;if(tt){if(St){t:{for(var s=St,u=Yn;s.nodeType!==8;){if(!u){s=null;break t}if(s=In(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){St=In(s.nextSibling),a=s.data==="F!";break e}}Il(a)}a=!1}a&&(t=n[0])}}return n=cn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z1,lastRenderedState:t},n.queue=a,n=om.bind(null,Ge,a),a.dispatch=n,a=Sc(!1),u=Cc.bind(null,Ge,!1,a.queue),a=cn(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=Ov.bind(null,Ge,s,u,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function q1(e){var t=Dt();return Y1(t,mt,e)}function Y1(e,t,n){if(t=bc(e,t,Z1)[0],e=Ji(wl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=zo(t)}catch(g){throw g===Sr?Bi:g}else a=t;t=Dt();var s=t.queue,u=s.dispatch;return n!==t.memoizedState&&(Ge.flags|=2048,Mr(9,{destroy:void 0},Nv.bind(null,s,n),null)),[a,u,e]}function Nv(e,t){e.action=t}function G1(e){var t=Dt(),n=mt;if(n!==null)return Y1(t,n,e);Dt(),t=t.memoizedState,n=Dt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Mr(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ge.updateQueue,t===null&&(t=Ki(),Ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function I1(){return Dt().memoizedState}function $i(e,t,n,a){var s=cn();Ge.flags|=e,s.memoizedState=Mr(1|t,{destroy:void 0},n,a===void 0?null:a)}function Wi(e,t,n,a){var s=Dt();a=a===void 0?null:a;var u=s.memoizedState.inst;mt!==null&&a!==null&&mc(a,mt.memoizedState.deps)?s.memoizedState=Mr(t,u,n,a):(Ge.flags|=e,s.memoizedState=Mr(1|t,u,n,a))}function X1(e,t){$i(8390656,8,e,t)}function Rc(e,t){Wi(2048,8,e,t)}function zv(e){Ge.flags|=4;var t=Ge.updateQueue;if(t===null)t=Ki(),Ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function F1(e){var t=Dt().memoizedState;return zv({ref:t,nextImpl:e}),function(){if((ot&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Q1(e,t){return Wi(4,2,e,t)}function K1(e,t){return Wi(4,4,e,t)}function P1(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function J1(e,t,n){n=n!=null?n.concat([e]):null,Wi(4,4,P1.bind(null,t,e),n)}function Tc(){}function $1(e,t){var n=Dt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&mc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function W1(e,t){var n=Dt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&mc(t,a[1]))return a[0];if(a=e(),Ua){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[a,t],a}function Ac(e,t,n){return n===void 0||(Ml&1073741824)!==0&&(We&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ep(),Ge.lanes|=e,ea|=e,n)}function em(e,t,n,a){return Tn(n,t)?n:Rr.current!==null?(e=Ac(e,n,a),Tn(e,t)||(Ut=!0),e):(Ml&42)===0||(Ml&1073741824)!==0&&(We&261930)===0?(Ut=!0,e.memoizedState=n):(e=ep(),Ge.lanes|=e,ea|=e,t)}function tm(e,t,n,a,s){var u=Z.p;Z.p=u!==0&&8>u?u:8;var g=j.T,E={};j.T=E,Cc(e,!1,t,n);try{var L=s(),F=j.S;if(F!==null&&F(E,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var re=Mv(L,a);jo(e,t,re,Nn(e))}else jo(e,t,a,Nn(e))}catch(ce){jo(e,t,{then:function(){},status:"rejected",reason:ce},Nn())}finally{Z.p=u,g!==null&&E.types!==null&&(g.types=E.types),j.T=g}}function jv(){}function Mc(e,t,n,a){if(e.tag!==5)throw Error(i(476));var s=nm(e).queue;tm(e,s,t,H,n===null?jv:function(){return lm(e),n(a)})}function nm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:H},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function lm(e){var t=nm(e);t.next===null&&(t=e.alternate.memoizedState),jo(e,t.next.queue,{},Nn())}function wc(){return en(Ko)}function am(){return Dt().memoizedState}function rm(){return Dt().memoizedState}function Hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nn();e=Ql(n);var a=Kl(t,e,n);a!==null&&(Sn(a,t,n),wo(a,t,n)),t={cache:nc()},e.payload=t;return}t=t.return}}function Dv(e,t,n){var a=Nn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},es(e)?im(t,n):(n=Iu(e,t,n,a),n!==null&&(Sn(n,e,a),sm(n,t,a)))}function om(e,t,n){var a=Nn();jo(e,t,n,a)}function jo(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(es(e))im(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var g=t.lastRenderedState,E=u(g,n);if(s.hasEagerState=!0,s.eagerState=E,Tn(E,g))return Di(e,t,s,0),gt===null&&Hi(),!1}catch{}if(n=Iu(e,t,s,a),n!==null)return Sn(n,e,a),sm(n,t,a),!0}return!1}function Cc(e,t,n,a){if(a={lane:2,revertLane:of(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},es(e)){if(t)throw Error(i(479))}else t=Iu(e,n,a,2),t!==null&&Sn(t,e,2)}function es(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function im(e,t){Tr=Fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sm(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,vl(e,n)}}var Ho={readContext:en,use:Pi,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};Ho.useEffectEvent=Ct;var um={readContext:en,use:Pi,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:X1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$i(4194308,4,P1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var n=cn();t=t===void 0?null:t;var a=e();if(Ua){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=cn();if(n!==void 0){var s=n(t);if(Ua){Be(!0);try{n(t)}finally{Be(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Dv.bind(null,Ge,e),[a.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:function(e){e=Sc(e);var t=e.queue,n=om.bind(null,Ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Tc,useDeferredValue:function(e,t){var n=cn();return Ac(n,e,t)},useTransition:function(){var e=Sc(!1);return e=tm.bind(null,Ge,e.queue,!0,!1),cn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ge,s=cn();if(tt){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),gt===null)throw Error(i(349));(We&127)!==0||N1(a,t,n)}s.memoizedState=n;var u={value:n,getSnapshot:t};return s.queue=u,X1(j1.bind(null,a,u,e),[e]),a.flags|=2048,Mr(9,{destroy:void 0},z1.bind(null,a,u,n,t),null),n},useId:function(){var e=cn(),t=gt.identifierPrefix;if(tt){var n=il,a=ol;n=(a&~(1<<32-Je(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Qi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=wv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wc,useFormState:B1,useActionState:B1,useOptimistic:function(e){var t=cn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Cc.bind(null,Ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:yc,useCacheRefresh:function(){return cn().memoizedState=Hv.bind(null,Ge)},useEffectEvent:function(e){var t=cn(),n={impl:e};return t.memoizedState=n,function(){if((ot&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Oc={readContext:en,use:Pi,useCallback:$1,useContext:en,useEffect:Rc,useImperativeHandle:J1,useInsertionEffect:Q1,useLayoutEffect:K1,useMemo:W1,useReducer:Ji,useRef:I1,useState:function(){return Ji(wl)},useDebugValue:Tc,useDeferredValue:function(e,t){var n=Dt();return em(n,mt.memoizedState,e,t)},useTransition:function(){var e=Ji(wl)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:zo(e),t]},useSyncExternalStore:O1,useId:am,useHostTransitionStatus:wc,useFormState:q1,useActionState:q1,useOptimistic:function(e,t){var n=Dt();return L1(n,mt,e,t)},useMemoCache:yc,useCacheRefresh:rm};Oc.useEffectEvent=F1;var cm={readContext:en,use:Pi,useCallback:$1,useContext:en,useEffect:Rc,useImperativeHandle:J1,useInsertionEffect:Q1,useLayoutEffect:K1,useMemo:W1,useReducer:xc,useRef:I1,useState:function(){return xc(wl)},useDebugValue:Tc,useDeferredValue:function(e,t){var n=Dt();return mt===null?Ac(n,e,t):em(n,mt.memoizedState,e,t)},useTransition:function(){var e=xc(wl)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:zo(e),t]},useSyncExternalStore:O1,useId:am,useHostTransitionStatus:wc,useFormState:G1,useActionState:G1,useOptimistic:function(e,t){var n=Dt();return mt!==null?L1(n,mt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yc,useCacheRefresh:rm};cm.useEffectEvent=F1;function Nc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zc={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Nn(),s=Ql(a);s.payload=t,n!=null&&(s.callback=n),t=Kl(e,s,a),t!==null&&(Sn(t,e,a),wo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Nn(),s=Ql(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Kl(e,s,a),t!==null&&(Sn(t,e,a),wo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nn(),a=Ql(n);a.tag=2,t!=null&&(a.callback=t),t=Kl(e,a,n),t!==null&&(Sn(t,e,n),wo(t,e,n))}};function fm(e,t,n,a,s,u,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,g):t.prototype&&t.prototype.isPureReactComponent?!bo(n,a)||!bo(s,u):!0}function dm(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function ka(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function mm(e){ji(e)}function pm(e){console.error(e)}function hm(e){ji(e)}function ts(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function gm(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function jc(e,t,n){return n=Ql(n),n.tag=3,n.payload={element:null},n.callback=function(){ts(e,t)},n}function vm(e){return e=Ql(e),e.tag=3,e}function ym(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var u=a.value;e.payload=function(){return s(u)},e.callback=function(){gm(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){gm(t,n,a),typeof s!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var E=a.stack;this.componentDidCatch(a.value,{componentStack:E!==null?E:""})})}function Lv(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&yr(t,n,s,!0),n=Mn.current,n!==null){switch(n.tag){case 31:case 13:return Gn===null?ms():n.alternate===null&&Ot===0&&(Ot=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===qi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),lf(e,a,s)),!1;case 22:return n.flags|=65536,a===qi?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),lf(e,a,s)),!1}throw Error(i(435,n.tag))}return lf(e,a,s),ms(),!1}if(tt)return t=Mn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Ju&&(e=Error(i(422),{cause:a}),Eo(Zn(e,n)))):(a!==Ju&&(t=Error(i(423),{cause:a}),Eo(Zn(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Zn(a,n),s=jc(e.stateNode,a,s),sc(e,s),Ot!==4&&(Ot=2)),!1;var u=Error(i(520),{cause:a});if(u=Zn(u,n),Bo===null?Bo=[u]:Bo.push(u),Ot!==4&&(Ot=2),t===null)return!0;a=Zn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=jc(n.stateNode,a,e),sc(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ta===null||!ta.has(u))))return n.flags|=65536,s&=-s,n.lanes|=s,s=vm(s),ym(s,e,n,a),sc(n,s),!1}n=n.return}while(n!==null);return!1}var Hc=Error(i(461)),Ut=!1;function tn(e,t,n,a){t.child=e===null?E1(t,null,n,a):_a(t,e.child,n,a)}function bm(e,t,n,a,s){n=n.render;var u=t.ref;if("ref"in a){var g={};for(var E in a)E!=="ref"&&(g[E]=a[E])}else g=a;return Ha(t),a=pc(e,t,n,g,u,s),E=hc(),e!==null&&!Ut?(gc(e,t,s),Cl(e,t,s)):(tt&&E&&Ku(t),t.flags|=1,tn(e,t,a,s),t.child)}function xm(e,t,n,a,s){if(e===null){var u=n.type;return typeof u=="function"&&!Xu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Sm(e,t,u,a,s)):(e=Vi(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Bc(e,s)){var g=u.memoizedProps;if(n=n.compare,n=n!==null?n:bo,n(g,a)&&e.ref===t.ref)return Cl(e,t,s)}return t.flags|=1,e=El(u,a),e.ref=t.ref,e.return=t,t.child=e}function Sm(e,t,n,a,s){if(e!==null){var u=e.memoizedProps;if(bo(u,a)&&e.ref===t.ref)if(Ut=!1,t.pendingProps=a=u,Bc(e,s))(e.flags&131072)!==0&&(Ut=!0);else return t.lanes=e.lanes,Cl(e,t,s)}return Dc(e,t,n,a,s)}function Em(e,t,n,a){var s=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~u}else a=0,t.child=null;return Rm(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(t,u!==null?u.cachePool:null),u!==null?A1(t,u):cc(),M1(t);else return a=t.lanes=536870912,Rm(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(Zi(t,u.cachePool),A1(t,u),Jl(),t.memoizedState=null):(e!==null&&Zi(t,null),cc(),Jl());return tn(e,t,s,n),t.child}function Do(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rm(e,t,n,a,s){var u=ac();return u=u===null?null:{parent:Vt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Zi(t,null),cc(),M1(t),e!==null&&yr(e,t,a,!0),t.childLanes=s,null}function ns(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Tm(e,t,n){return _a(t,e.child,null,n),e=ns(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function Vv(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(tt){if(a.mode==="hidden")return e=ns(t,a),t.lanes=536870912,Do(null,e);if(dc(t),(e=St)?(e=Vp(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ol,overflow:il}:null,retryLane:536870912,hydrationErrors:null},n=i1(e),n.return=t,t.child=n,Wt=t,St=null)):e=null,e===null)throw Il(t);return t.lanes=536870912,null}return ns(t,a)}var u=e.memoizedState;if(u!==null){var g=u.dehydrated;if(dc(t),s)if(t.flags&256)t.flags&=-257,t=Tm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Ut||yr(e,t,n,!1),s=(n&e.childLanes)!==0,Ut||s){if(a=gt,a!==null&&(g=io(a,n),g!==0&&g!==u.retryLane))throw u.retryLane=g,Oa(e,g),Sn(a,e,g),Hc;ms(),t=Tm(e,t,n)}else e=u.treeContext,St=In(g.nextSibling),Wt=t,tt=!0,Gl=null,Yn=!1,e!==null&&c1(t,e),t=ns(t,a),t.flags|=4096;return t}return e=El(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ls(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Dc(e,t,n,a,s){return Ha(t),n=pc(e,t,n,a,void 0,s),a=hc(),e!==null&&!Ut?(gc(e,t,s),Cl(e,t,s)):(tt&&a&&Ku(t),t.flags|=1,tn(e,t,n,s),t.child)}function Am(e,t,n,a,s,u){return Ha(t),t.updateQueue=null,n=C1(t,a,n,s),w1(e),a=hc(),e!==null&&!Ut?(gc(e,t,u),Cl(e,t,u)):(tt&&a&&Ku(t),t.flags|=1,tn(e,t,n,u),t.child)}function Mm(e,t,n,a,s){if(Ha(t),t.stateNode===null){var u=pr,g=n.contextType;typeof g=="object"&&g!==null&&(u=en(g)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=zc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},oc(t),g=n.contextType,u.context=typeof g=="object"&&g!==null?en(g):pr,u.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Nc(t,n,g,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(g=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),g!==u.state&&zc.enqueueReplaceState(u,u.state,null),Oo(t,a,u,s),Co(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var E=t.memoizedProps,L=ka(n,E);u.props=L;var F=u.context,re=n.contextType;g=pr,typeof re=="object"&&re!==null&&(g=en(re));var ce=n.getDerivedStateFromProps;re=typeof ce=="function"||typeof u.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,re||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(E||F!==g)&&dm(t,u,a,g),Fl=!1;var P=t.memoizedState;u.state=P,Oo(t,a,u,s),Co(),F=t.memoizedState,E||P!==F||Fl?(typeof ce=="function"&&(Nc(t,n,ce,a),F=t.memoizedState),(L=Fl||fm(t,n,L,a,P,F,g))?(re||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=F),u.props=a,u.state=F,u.context=g,a=L):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,ic(e,t),g=t.memoizedProps,re=ka(n,g),u.props=re,ce=t.pendingProps,P=u.context,F=n.contextType,L=pr,typeof F=="object"&&F!==null&&(L=en(F)),E=n.getDerivedStateFromProps,(F=typeof E=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g!==ce||P!==L)&&dm(t,u,a,L),Fl=!1,P=t.memoizedState,u.state=P,Oo(t,a,u,s),Co();var W=t.memoizedState;g!==ce||P!==W||Fl||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof E=="function"&&(Nc(t,n,E,a),W=t.memoizedState),(re=Fl||fm(t,n,re,a,P,W,L)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(F||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,W,L),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,W,L)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=W),u.props=a,u.state=W,u.context=L,a=re):(typeof u.componentDidUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,ls(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,s),t.child=_a(t,null,n,s)):tn(e,t,n,s),t.memoizedState=u.state,e=t.child):e=Cl(e,t,s),e}function wm(e,t,n,a){return za(),t.flags|=256,tn(e,t,n,a),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Vc(e){return{baseLanes:e,cachePool:g1()}}function _c(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=On),e}function Cm(e,t,n){var a=t.pendingProps,s=!1,u=(t.flags&128)!==0,g;if((g=u)||(g=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(tt){if(s?Pl(t):Jl(),(e=St)?(e=Vp(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ol,overflow:il}:null,retryLane:536870912,hydrationErrors:null},n=i1(e),n.return=t,t.child=n,Wt=t,St=null)):e=null,e===null)throw Il(t);return xf(e)?t.lanes=32:t.lanes=536870912,null}var E=a.children;return a=a.fallback,s?(Jl(),s=t.mode,E=as({mode:"hidden",children:E},s),a=Na(a,s,n,null),E.return=t,a.return=t,E.sibling=a,t.child=E,a=t.child,a.memoizedState=Vc(n),a.childLanes=_c(e,g,n),t.memoizedState=Lc,Do(null,a)):(Pl(t),Uc(t,E))}var L=e.memoizedState;if(L!==null&&(E=L.dehydrated,E!==null)){if(u)t.flags&256?(Pl(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState!==null?(Jl(),t.child=e.child,t.flags|=128,t=null):(Jl(),E=a.fallback,s=t.mode,a=as({mode:"visible",children:a.children},s),E=Na(E,s,n,null),E.flags|=2,a.return=t,E.return=t,a.sibling=E,t.child=a,_a(t,e.child,null,n),a=t.child,a.memoizedState=Vc(n),a.childLanes=_c(e,g,n),t.memoizedState=Lc,t=Do(null,a));else if(Pl(t),xf(E)){if(g=E.nextSibling&&E.nextSibling.dataset,g)var F=g.dgst;g=F,a=Error(i(419)),a.stack="",a.digest=g,Eo({value:a,source:null,stack:null}),t=kc(e,t,n)}else if(Ut||yr(e,t,n,!1),g=(n&e.childLanes)!==0,Ut||g){if(g=gt,g!==null&&(a=io(g,n),a!==0&&a!==L.retryLane))throw L.retryLane=a,Oa(e,a),Sn(g,e,a),Hc;bf(E)||ms(),t=kc(e,t,n)}else bf(E)?(t.flags|=192,t.child=e.child,t=null):(e=L.treeContext,St=In(E.nextSibling),Wt=t,tt=!0,Gl=null,Yn=!1,e!==null&&c1(t,e),t=Uc(t,a.children),t.flags|=4096);return t}return s?(Jl(),E=a.fallback,s=t.mode,L=e.child,F=L.sibling,a=El(L,{mode:"hidden",children:a.children}),a.subtreeFlags=L.subtreeFlags&65011712,F!==null?E=El(F,E):(E=Na(E,s,n,null),E.flags|=2),E.return=t,a.return=t,a.sibling=E,t.child=a,Do(null,a),a=t.child,E=e.child.memoizedState,E===null?E=Vc(n):(s=E.cachePool,s!==null?(L=Vt._currentValue,s=s.parent!==L?{parent:L,pool:L}:s):s=g1(),E={baseLanes:E.baseLanes|n,cachePool:s}),a.memoizedState=E,a.childLanes=_c(e,g,n),t.memoizedState=Lc,Do(e.child,a)):(Pl(t),n=e.child,e=n.sibling,n=El(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Uc(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=An(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return _a(t,e.child,null,n),e=Uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Om(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ec(e.return,t,n)}function Zc(e,t,n,a,s,u){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:u}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=n,g.tailMode=s,g.treeForkCount=u)}function Nm(e,t,n){var a=t.pendingProps,s=a.revealOrder,u=a.tail;a=a.children;var g=Ht.current,E=(g&2)!==0;if(E?(g=g&1|2,t.flags|=128):g&=1,k(Ht,g),tn(e,t,a,n),a=tt?So:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Om(e,n,t);else if(e.tag===19)Om(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Xi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Zc(t,!1,s,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Xi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Zc(t,!0,n,null,u,a);break;case"together":Zc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(yr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=El(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=El(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ui(e)))}function _v(e,t,n){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),Xl(t,Vt,e.memoizedState.cache),za();break;case 27:case 5:Te(t);break;case 4:de(t,t.stateNode.containerInfo);break;case 10:Xl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Pl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Cm(e,t,n):(Pl(t),e=Cl(e,t,n),e!==null?e.sibling:null);Pl(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(yr(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Nm(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),k(Ht,Ht.current),a)break;return null;case 22:return t.lanes=0,Em(e,t,n,t.pendingProps);case 24:Xl(t,Vt,e.memoizedState.cache)}return Cl(e,t,n)}function zm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ut=!0;else{if(!Bc(e,n)&&(t.flags&128)===0)return Ut=!1,_v(e,t,n);Ut=(e.flags&131072)!==0}else Ut=!1,tt&&(t.flags&1048576)!==0&&u1(t,So,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=La(t.elementType),t.type=e,typeof e=="function")Xu(e)?(a=ka(e,a),t.tag=1,t=Mm(null,t,e,a,n)):(t.tag=0,t=Dc(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===D){t.tag=11,t=bm(null,t,e,a,n);break e}else if(s===V){t.tag=14,t=xm(null,t,e,a,n);break e}}throw t=$(e)||e,Error(i(306,t,""))}}return t;case 0:return Dc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=ka(a,t.pendingProps),Mm(e,t,a,s,n);case 3:e:{if(de(t,t.stateNode.containerInfo),e===null)throw Error(i(387));a=t.pendingProps;var u=t.memoizedState;s=u.element,ic(e,t),Oo(t,a,null,n);var g=t.memoizedState;if(a=g.cache,Xl(t,Vt,a),a!==u.cache&&tc(t,[Vt],n,!0),Co(),a=g.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=wm(e,t,a,n);break e}else if(a!==s){s=Zn(Error(i(424)),t),Eo(s),t=wm(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,St=In(e.firstChild),Wt=t,tt=!0,Gl=null,Yn=!0,n=E1(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(za(),a===s){t=Cl(e,t,n);break e}tn(e,t,a,n)}t=t.child}return t;case 26:return ls(e,t),e===null?(n=qp(t.type,null,t.pendingProps,null))?t.memoizedState=n:tt||(n=t.type,e=t.pendingProps,a=xs(te.current).createElement(n),a[$t]=t,a[hn]=e,nn(a,n,e),Qt(a),t.stateNode=a):t.memoizedState=qp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&tt&&(a=t.stateNode=kp(t.type,t.pendingProps,te.current),Wt=t,Yn=!0,s=St,ra(t.type)?(Sf=s,St=In(a.firstChild)):St=s),tn(e,t,t.pendingProps.children,n),ls(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&tt&&((s=a=St)&&(a=m4(a,t.type,t.pendingProps,Yn),a!==null?(t.stateNode=a,Wt=t,St=In(a.firstChild),Yn=!1,s=!0):s=!1),s||Il(t)),Te(t),s=t.type,u=t.pendingProps,g=e!==null?e.memoizedProps:null,a=u.children,gf(s,u)?a=null:g!==null&&gf(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=pc(e,t,Cv,null,null,n),Ko._currentValue=s),ls(e,t),tn(e,t,a,n),t.child;case 6:return e===null&&tt&&((e=n=St)&&(n=p4(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,Wt=t,St=null,e=!0):e=!1),e||Il(t)),null;case 13:return Cm(e,t,n);case 4:return de(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,n):tn(e,t,a,n),t.child;case 11:return bm(e,t,t.type,t.pendingProps,n);case 7:return tn(e,t,t.pendingProps,n),t.child;case 8:return tn(e,t,t.pendingProps.children,n),t.child;case 12:return tn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Xl(t,t.type,a.value),tn(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Ha(t),s=en(s),a=a(s),t.flags|=1,tn(e,t,a,n),t.child;case 14:return xm(e,t,t.type,t.pendingProps,n);case 15:return Sm(e,t,t.type,t.pendingProps,n);case 19:return Nm(e,t,n);case 31:return Vv(e,t,n);case 22:return Em(e,t,n,t.pendingProps);case 24:return Ha(t),a=en(Vt),e===null?(s=ac(),s===null&&(s=gt,u=nc(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=n),s=u),t.memoizedState={parent:a,cache:s},oc(t),Xl(t,Vt,s)):((e.lanes&n)!==0&&(ic(e,t),Oo(t,null,null,n),Co()),s=e.memoizedState,u=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Xl(t,Vt,a)):(a=u.cache,Xl(t,Vt,a),a!==s.cache&&tc(t,[Vt],n,!0))),tn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ol(e){e.flags|=4}function qc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(ap())e.flags|=8192;else throw Va=qi,rc}else e.flags&=-16777217}function jm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fp(t))if(ap())e.flags|=8192;else throw Va=qi,rc}function rs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$e():536870912,e.lanes|=t,Nr|=t)}function Lo(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Uv(e,t,n){var a=t.pendingProps;switch(Pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Al(Vt),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(vr(t)?Ol(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$u())),Et(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(Ol(t),u!==null?(Et(t),jm(t,u)):(Et(t),qc(t,s,null,a,n))):u?u!==e.memoizedState?(Ol(t),Et(t),jm(t,u)):(Et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ol(t),Et(t),qc(t,s,e,a,n)),null;case 27:if(le(t),n=te.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Et(t),null}e=ee.current,vr(t)?f1(t):(e=kp(s,a,n),t.stateNode=e,Ol(t))}return Et(t),null;case 5:if(le(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(!a){if(t.stateNode===null)throw Error(i(166));return Et(t),null}if(u=ee.current,vr(t))f1(t);else{var g=xs(te.current);switch(u){case 1:u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=g.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?g.createElement("select",{is:a.is}):g.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?g.createElement(s,{is:a.is}):g.createElement(s)}}u[$t]=t,u[hn]=a;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)u.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=u;e:switch(nn(u,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ol(t)}}return Et(t),qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(i(166));if(e=te.current,vr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=Wt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[$t]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Cp(e.nodeValue,n)),e||Il(t,!0)}else e=xs(e).createTextNode(a),e[$t]=t,t.stateNode=e}return Et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=vr(t),n!==null){if(e===null){if(!a)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[$t]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),e=!1}else n=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=vr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[$t]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),s=!1}else s=$u(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),rs(t,t.updateQueue),Et(t),null);case 4:return he(),e===null&&ff(t.stateNode.containerInfo),Et(t),null;case 10:return Al(t.type),Et(t),null;case 19:if(q(Ht),a=t.memoizedState,a===null)return Et(t),null;if(s=(t.flags&128)!==0,u=a.rendering,u===null)if(s)Lo(a,!1);else{if(Ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Xi(e),u!==null){for(t.flags|=128,Lo(a,!1),e=u.updateQueue,t.updateQueue=e,rs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)o1(n,e),n=n.sibling;return k(Ht,Ht.current&1|2),tt&&Rl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Re()>cs&&(t.flags|=128,s=!0,Lo(a,!1),t.lanes=4194304)}else{if(!s)if(e=Xi(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,rs(t,e),Lo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!tt)return Et(t),null}else 2*Re()-a.renderingStartTime>cs&&n!==536870912&&(t.flags|=128,s=!0,Lo(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Re(),e.sibling=null,n=Ht.current,k(Ht,s?n&1|2:n&1),tt&&Rl(t,a.treeForkCount),e):(Et(t),null);case 22:case 23:return wn(t),fc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),n=t.updateQueue,n!==null&&rs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&q(Da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Al(Vt),Et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function kv(e,t){switch(Pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Al(Vt),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(i(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ht),null;case 4:return he(),null;case 10:return Al(t.type),null;case 22:case 23:return wn(t),fc(),e!==null&&q(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Al(Vt),null;case 25:return null;default:return null}}function Hm(e,t){switch(Pu(t),t.tag){case 3:Al(Vt),he();break;case 26:case 27:case 5:le(t);break;case 4:he();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:q(Ht);break;case 10:Al(t.type);break;case 22:case 23:wn(t),fc(),e!==null&&q(Da);break;case 24:Al(Vt)}}function Vo(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var u=n.create,g=n.inst;a=u(),g.destroy=a}n=n.next}while(n!==s)}}catch(E){ct(t,t.return,E)}}function $l(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){var g=a.inst,E=g.destroy;if(E!==void 0){g.destroy=void 0,s=t;var L=n,F=E;try{F()}catch(re){ct(s,L,re)}}}a=a.next}while(a!==u)}}catch(re){ct(t,t.return,re)}}function Dm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{T1(t,n)}catch(a){ct(e,e.return,a)}}}function Lm(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ct(e,t,a)}}function _o(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){ct(e,t,s)}}function sl(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){ct(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){ct(e,t,s)}else n.current=null}function Vm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){ct(e,e.return,s)}}function Yc(e,t,n){try{var a=e.stateNode;i4(a,e.type,n,t),a[hn]=t}catch(s){ct(e,e.return,s)}}function _m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(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&&ra(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 Ic(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xl));else if(a!==4&&(a===27&&ra(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,n),e=e.sibling;e!==null;)Ic(e,t,n),e=e.sibling}function os(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ra(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(os(e,t,n),e=e.sibling;e!==null;)os(e,t,n),e=e.sibling}function Um(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);nn(t,a,n),t[$t]=e,t[hn]=n}catch(u){ct(e,e.return,u)}}var Nl=!1,kt=!1,Xc=!1,km=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function Zv(e,t){if(e=e.containerInfo,pf=ws,e=J0(e),ku(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var g=0,E=-1,L=-1,F=0,re=0,ce=e,P=null;t:for(;;){for(var W;ce!==n||s!==0&&ce.nodeType!==3||(E=g+s),ce!==u||a!==0&&ce.nodeType!==3||(L=g+a),ce.nodeType===3&&(g+=ce.nodeValue.length),(W=ce.firstChild)!==null;)P=ce,ce=W;for(;;){if(ce===e)break t;if(P===n&&++F===s&&(E=g),P===u&&++re===a&&(L=g),(W=ce.nextSibling)!==null)break;ce=P,P=ce.parentNode}ce=W}n=E===-1||L===-1?null:{start:E,end:L}}else n=null}n=n||{start:0,end:0}}else n=null;for(hf={focusedElem:e,selectionRange:n},ws=!1,Kt=t;Kt!==null;)if(t=Kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Kt=e;else for(;Kt!==null;){switch(t=Kt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,s=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var Ce=ka(n.type,s);e=a.getSnapshotBeforeUpdate(Ce,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ve){ct(n,n.return,Ve)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)yf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Kt=e;break}Kt=t.return}}function Zm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:jl(e,n),a&4&&Vo(5,n);break;case 1:if(jl(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){ct(n,n.return,g)}else{var s=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){ct(n,n.return,g)}}a&64&&Dm(n),a&512&&_o(n,n.return);break;case 3:if(jl(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{T1(e,t)}catch(g){ct(n,n.return,g)}}break;case 27:t===null&&a&4&&Um(n);case 26:case 5:jl(e,n),t===null&&a&4&&Vm(n),a&512&&_o(n,n.return);break;case 12:jl(e,n);break;case 31:jl(e,n),a&4&&Ym(e,n);break;case 13:jl(e,n),a&4&&Gm(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Kv.bind(null,n),h4(e,n))));break;case 22:if(a=n.memoizedState!==null||Nl,!a){t=t!==null&&t.memoizedState!==null||kt,s=Nl;var u=kt;Nl=a,(kt=t)&&!u?Hl(e,n,(n.subtreeFlags&8772)!==0):jl(e,n),Nl=s,kt=u}break;case 30:break;default:jl(e,n)}}function Bm(e){var t=e.alternate;t!==null&&(e.alternate=null,Bm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Tt=null,vn=!1;function zl(e,t,n){for(n=n.child;n!==null;)qm(e,t,n),n=n.sibling}function qm(e,t,n){if(je&&typeof je.onCommitFiberUnmount=="function")try{je.onCommitFiberUnmount(ft,n)}catch{}switch(n.tag){case 26:kt||sl(n,t),zl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:kt||sl(n,t);var a=Tt,s=vn;ra(n.type)&&(Tt=n.stateNode,vn=!1),zl(e,t,n),Xo(n.stateNode),Tt=a,vn=s;break;case 5:kt||sl(n,t);case 6:if(a=Tt,s=vn,Tt=null,zl(e,t,n),Tt=a,vn=s,Tt!==null)if(vn)try{(Tt.nodeType===9?Tt.body:Tt.nodeName==="HTML"?Tt.ownerDocument.body:Tt).removeChild(n.stateNode)}catch(u){ct(n,t,u)}else try{Tt.removeChild(n.stateNode)}catch(u){ct(n,t,u)}break;case 18:Tt!==null&&(vn?(e=Tt,Dp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ur(e)):Dp(Tt,n.stateNode));break;case 4:a=Tt,s=vn,Tt=n.stateNode.containerInfo,vn=!0,zl(e,t,n),Tt=a,vn=s;break;case 0:case 11:case 14:case 15:$l(2,n,t),kt||$l(4,n,t),zl(e,t,n);break;case 1:kt||(sl(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Lm(n,t,a)),zl(e,t,n);break;case 21:zl(e,t,n);break;case 22:kt=(a=kt)||n.memoizedState!==null,zl(e,t,n),kt=a;break;default:zl(e,t,n)}}function Ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ur(e)}catch(n){ct(t,t.return,n)}}}function Gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ur(e)}catch(n){ct(t,t.return,n)}}function Bv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new km),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new km),t;default:throw Error(i(435,e.tag))}}function is(e,t){var n=Bv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=Pv.bind(null,e,a);a.then(s,s)}})}function yn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],u=e,g=t,E=g;e:for(;E!==null;){switch(E.tag){case 27:if(ra(E.type)){Tt=E.stateNode,vn=!1;break e}break;case 5:Tt=E.stateNode,vn=!1;break e;case 3:case 4:Tt=E.stateNode.containerInfo,vn=!0;break e}E=E.return}if(Tt===null)throw Error(i(160));qm(u,g,s),Tt=null,vn=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Im(t,e),t=t.sibling}var Jn=null;function Im(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yn(t,e),bn(e),a&4&&($l(3,e,e.return),Vo(3,e),$l(5,e,e.return));break;case 1:yn(t,e),bn(e),a&512&&(kt||n===null||sl(n,n.return)),a&64&&Nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Jn;if(yn(t,e),bn(e),a&512&&(kt||n===null||sl(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":u=s.getElementsByTagName("title")[0],(!u||u[uo]||u[$t]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(a),s.head.insertBefore(u,s.querySelector("head > title"))),nn(u,a,n),u[$t]=e,Qt(u),a=u;break e;case"link":var g=Ip("link","href",s).get(a+(n.href||""));if(g){for(var E=0;E<g.length;E++)if(u=g[E],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(E,1);break t}}u=s.createElement(a),nn(u,a,n),s.head.appendChild(u);break;case"meta":if(g=Ip("meta","content",s).get(a+(n.content||""))){for(E=0;E<g.length;E++)if(u=g[E],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(E,1);break t}}u=s.createElement(a),nn(u,a,n),s.head.appendChild(u);break;default:throw Error(i(468,a))}u[$t]=e,Qt(u),a=u}e.stateNode=a}else Xp(s,e.type,e.stateNode);else e.stateNode=Gp(s,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?Xp(s,e.type,e.stateNode):Gp(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps)}break;case 27:yn(t,e),bn(e),a&512&&(kt||n===null||sl(n,n.return)),n!==null&&a&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yn(t,e),bn(e),a&512&&(kt||n===null||sl(n,n.return)),e.flags&32){s=e.stateNode;try{ir(s,"")}catch(Ce){ct(e,e.return,Ce)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Yc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Xc=!0);break;case 6:if(yn(t,e),bn(e),a&4){if(e.stateNode===null)throw Error(i(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(Ce){ct(e,e.return,Ce)}}break;case 3:if(Rs=null,s=Jn,Jn=Ss(t.containerInfo),yn(t,e),Jn=s,bn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ur(t.containerInfo)}catch(Ce){ct(e,e.return,Ce)}Xc&&(Xc=!1,Xm(e));break;case 4:a=Jn,Jn=Ss(e.stateNode.containerInfo),yn(t,e),bn(e),Jn=a;break;case 12:yn(t,e),bn(e);break;case 31:yn(t,e),bn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,is(e,a)));break;case 13:yn(t,e),bn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(us=Re()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,is(e,a)));break;case 22:s=e.memoizedState!==null;var L=n!==null&&n.memoizedState!==null,F=Nl,re=kt;if(Nl=F||s,kt=re||L,yn(t,e),kt=re,Nl=F,bn(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||L||Nl||kt||Za(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){L=n=t;try{if(u=L.stateNode,s)g=u.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{E=L.stateNode;var ce=L.memoizedProps.style,P=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;E.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(Ce){ct(L,L.return,Ce)}}}else if(t.tag===6){if(n===null){L=t;try{L.stateNode.nodeValue=s?"":L.memoizedProps}catch(Ce){ct(L,L.return,Ce)}}}else if(t.tag===18){if(n===null){L=t;try{var W=L.stateNode;s?Lp(W,!0):Lp(L.stateNode,!1)}catch(Ce){ct(L,L.return,Ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,is(e,n))));break;case 19:yn(t,e),bn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,is(e,a)));break;case 30:break;case 21:break;default:yn(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(_m(a)){n=a;break}a=a.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var s=n.stateNode,u=Gc(e);os(e,u,s);break;case 5:var g=n.stateNode;n.flags&32&&(ir(g,""),n.flags&=-33);var E=Gc(e);os(e,E,g);break;case 3:case 4:var L=n.stateNode.containerInfo,F=Gc(e);Ic(e,F,L);break;default:throw Error(i(161))}}catch(re){ct(e,e.return,re)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zm(e,t.alternate,t),t=t.sibling}function Za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Za(t);break;case 1:sl(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Lm(t,t.return,n),Za(t);break;case 27:Xo(t.stateNode);case 26:case 5:sl(t,t.return),Za(t);break;case 22:t.memoizedState===null&&Za(t);break;case 30:Za(t);break;default:Za(t)}e=e.sibling}}function Hl(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,u=t,g=u.flags;switch(u.tag){case 0:case 11:case 15:Hl(s,u,n),Vo(4,u);break;case 1:if(Hl(s,u,n),a=u,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(F){ct(a,a.return,F)}if(a=u,s=a.updateQueue,s!==null){var E=a.stateNode;try{var L=s.shared.hiddenCallbacks;if(L!==null)for(s.shared.hiddenCallbacks=null,s=0;s<L.length;s++)R1(L[s],E)}catch(F){ct(a,a.return,F)}}n&&g&64&&Dm(u),_o(u,u.return);break;case 27:Um(u);case 26:case 5:Hl(s,u,n),n&&a===null&&g&4&&Vm(u),_o(u,u.return);break;case 12:Hl(s,u,n);break;case 31:Hl(s,u,n),n&&g&4&&Ym(s,u);break;case 13:Hl(s,u,n),n&&g&4&&Gm(s,u);break;case 22:u.memoizedState===null&&Hl(s,u,n),_o(u,u.return);break;case 30:break;default:Hl(s,u,n)}t=t.sibling}}function Fc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ro(n))}function Qc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ro(e))}function $n(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fm(e,t,n,a),t=t.sibling}function Fm(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:$n(e,t,n,a),s&2048&&Vo(9,t);break;case 1:$n(e,t,n,a);break;case 3:$n(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ro(e)));break;case 12:if(s&2048){$n(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,g=u.id,E=u.onPostCommit;typeof E=="function"&&E(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(L){ct(t,t.return,L)}}else $n(e,t,n,a);break;case 31:$n(e,t,n,a);break;case 13:$n(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,g=t.alternate,t.memoizedState!==null?u._visibility&2?$n(e,t,n,a):Uo(e,t):u._visibility&2?$n(e,t,n,a):(u._visibility|=2,wr(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Fc(g,t);break;case 24:$n(e,t,n,a),s&2048&&Qc(t.alternate,t);break;default:$n(e,t,n,a)}}function wr(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,g=t,E=n,L=a,F=g.flags;switch(g.tag){case 0:case 11:case 15:wr(u,g,E,L,s),Vo(8,g);break;case 23:break;case 22:var re=g.stateNode;g.memoizedState!==null?re._visibility&2?wr(u,g,E,L,s):Uo(u,g):(re._visibility|=2,wr(u,g,E,L,s)),s&&F&2048&&Fc(g.alternate,g);break;case 24:wr(u,g,E,L,s),s&&F&2048&&Qc(g.alternate,g);break;default:wr(u,g,E,L,s)}t=t.sibling}}function Uo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:Uo(n,a),s&2048&&Fc(a.alternate,a);break;case 24:Uo(n,a),s&2048&&Qc(a.alternate,a);break;default:Uo(n,a)}t=t.sibling}}var ko=8192;function Cr(e,t,n){if(e.subtreeFlags&ko)for(e=e.child;e!==null;)Qm(e,t,n),e=e.sibling}function Qm(e,t,n){switch(e.tag){case 26:Cr(e,t,n),e.flags&ko&&e.memoizedState!==null&&w4(n,Jn,e.memoizedState,e.memoizedProps);break;case 5:Cr(e,t,n);break;case 3:case 4:var a=Jn;Jn=Ss(e.stateNode.containerInfo),Cr(e,t,n),Jn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ko,ko=16777216,Cr(e,t,n),ko=a):Cr(e,t,n));break;default:Cr(e,t,n)}}function Km(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Zo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Kt=a,Jm(a,e)}Km(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pm(e),e=e.sibling}function Pm(e){switch(e.tag){case 0:case 11:case 15:Zo(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Zo(e);break;case 12:Zo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ss(e)):Zo(e);break;default:Zo(e)}}function ss(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Kt=a,Jm(a,e)}Km(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),ss(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ss(t));break;default:ss(t)}e=e.sibling}}function Jm(e,t){for(;Kt!==null;){var n=Kt;switch(n.tag){case 0:case 11:case 15:$l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ro(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Kt=a;else e:for(n=e;Kt!==null;){a=Kt;var s=a.sibling,u=a.return;if(Bm(a),a===n){Kt=null;break e}if(s!==null){s.return=u,Kt=s;break e}Kt=u}}}var qv={getCacheForType:function(e){var t=en(Vt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return en(Vt).controller.signal}},Yv=typeof WeakMap=="function"?WeakMap:Map,ot=0,gt=null,Qe=null,We=0,ut=0,Cn=null,Wl=!1,Or=!1,Kc=!1,Dl=0,Ot=0,ea=0,Ba=0,Pc=0,On=0,Nr=0,Bo=null,xn=null,Jc=!1,us=0,$m=0,cs=1/0,fs=null,ta=null,It=0,na=null,zr=null,Ll=0,$c=0,Wc=null,Wm=null,qo=0,ef=null;function Nn(){return(ot&2)!==0&&We!==0?We&-We:j.T!==null?of():xi()}function ep(){if(On===0)if((We&536870912)===0||tt){var e=Gt;Gt<<=1,(Gt&3932160)===0&&(Gt=262144),On=e}else On=536870912;return e=Mn.current,e!==null&&(e.flags|=32),On}function Sn(e,t,n){(e===gt&&(ut===2||ut===9)||e.cancelPendingCommit!==null)&&(jr(e,0),la(e,We,On,!1)),an(e,n),((ot&2)===0||e!==gt)&&(e===gt&&((ot&2)===0&&(Ba|=n),Ot===4&&la(e,We,On,!1)),ul(e))}function tp(e,t,n){if((ot&6)!==0)throw Error(i(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Vn(e,t),s=a?Xv(e,t):nf(e,t,!0),u=a;do{if(s===0){Or&&!a&&la(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Gv(n)){s=nf(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var E=e;s=Bo;var L=E.current.memoizedState.isDehydrated;if(L&&(jr(E,g).flags|=256),g=nf(E,g,!1),g!==2){if(Kc&&!L){E.errorRecoveryDisabledLanes|=u,Ba|=u,s=4;break e}u=xn,xn=s,u!==null&&(xn===null?xn=u:xn.push.apply(xn,u))}s=g}if(u=!1,s!==2)continue}}if(s===1){jr(e,0),la(e,t,0,!0);break}e:{switch(a=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:la(a,t,On,!Wl);break e;case 2:xn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=us+300-Re(),10<s)){if(la(a,t,On,!Wl),mn(a,0,!0)!==0)break e;Ll=t,a.timeoutHandle=jp(np.bind(null,a,n,xn,fs,Jc,t,On,Ba,Nr,Wl,u,"Throttled",-0,0),s);break e}np(a,n,xn,fs,Jc,t,On,Ba,Nr,Wl,u,null,-0,0)}}break}while(!0);ul(e)}function np(e,t,n,a,s,u,g,E,L,F,re,ce,P,W){if(e.timeoutHandle=-1,ce=t.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xl},Qm(t,u,ce);var Ce=(u&62914560)===u?us-Re():(u&4194048)===u?$m-Re():0;if(Ce=C4(ce,Ce),Ce!==null){Ll=u,e.cancelPendingCommit=Ce(cp.bind(null,e,t,u,n,a,s,g,E,L,re,ce,null,P,W)),la(e,u,g,!F);return}}cp(e,t,u,n,a,s,g,E,L)}function Gv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],u=s.getSnapshot;s=s.value;try{if(!Tn(u(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,n,a){t&=~Pc,t&=~Ba,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var u=31-Je(s),g=1<<u;a[u]=-1,s&=~g}n!==0&&un(e,n,t)}function ds(){return(ot&6)===0?(Yo(0),!1):!0}function tf(){if(Qe!==null){if(ut===0)var e=Qe.return;else e=Qe,Tl=ja=null,vc(e),Er=null,Ao=0,e=Qe;for(;e!==null;)Hm(e.alternate,e),e=e.return;Qe=null}}function jr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,c4(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ll=0,tf(),gt=e,Qe=n=El(e.current,null),We=t,ut=0,Cn=null,Wl=!1,Or=Vn(e,t),Kc=!1,Nr=On=Pc=Ba=ea=Ot=0,xn=Bo=null,Jc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Je(a),u=1<<s;t|=e[s],a&=~u}return Dl=t,Hi(),n}function lp(e,t){Ge=null,j.H=Ho,t===Sr||t===Bi?(t=b1(),ut=3):t===rc?(t=b1(),ut=4):ut=t===Hc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Cn=t,Qe===null&&(Ot=1,ts(e,Zn(t,e.current)))}function ap(){var e=Mn.current;return e===null?!0:(We&4194048)===We?Gn===null:(We&62914560)===We||(We&536870912)!==0?e===Gn:!1}function rp(){var e=j.H;return j.H=Ho,e===null?Ho:e}function op(){var e=j.A;return j.A=qv,e}function ms(){Ot=4,Wl||(We&4194048)!==We&&Mn.current!==null||(Or=!0),(ea&134217727)===0&&(Ba&134217727)===0||gt===null||la(gt,We,On,!1)}function nf(e,t,n){var a=ot;ot|=2;var s=rp(),u=op();(gt!==e||We!==t)&&(fs=null,jr(e,t)),t=!1;var g=Ot;e:do try{if(ut!==0&&Qe!==null){var E=Qe,L=Cn;switch(ut){case 8:tf(),g=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(t=!0);var F=ut;if(ut=0,Cn=null,Hr(e,E,L,F),n&&Or){g=0;break e}break;default:F=ut,ut=0,Cn=null,Hr(e,E,L,F)}}Iv(),g=Ot;break}catch(re){lp(e,re)}while(!0);return t&&e.shellSuspendCounter++,Tl=ja=null,ot=a,j.H=s,j.A=u,Qe===null&&(gt=null,We=0,Hi()),g}function Iv(){for(;Qe!==null;)ip(Qe)}function Xv(e,t){var n=ot;ot|=2;var a=rp(),s=op();gt!==e||We!==t?(fs=null,cs=Re()+500,jr(e,t)):Or=Vn(e,t);e:do try{if(ut!==0&&Qe!==null){t=Qe;var u=Cn;t:switch(ut){case 1:ut=0,Cn=null,Hr(e,t,u,1);break;case 2:case 9:if(v1(u)){ut=0,Cn=null,sp(t);break}t=function(){ut!==2&&ut!==9||gt!==e||(ut=7),ul(e)},u.then(t,t);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:v1(u)?(ut=0,Cn=null,sp(t)):(ut=0,Cn=null,Hr(e,t,u,7));break;case 5:var g=null;switch(Qe.tag){case 26:g=Qe.memoizedState;case 5:case 27:var E=Qe;if(g?Fp(g):E.stateNode.complete){ut=0,Cn=null;var L=E.sibling;if(L!==null)Qe=L;else{var F=E.return;F!==null?(Qe=F,ps(F)):Qe=null}break t}}ut=0,Cn=null,Hr(e,t,u,5);break;case 6:ut=0,Cn=null,Hr(e,t,u,6);break;case 8:tf(),Ot=6;break e;default:throw Error(i(462))}}Fv();break}catch(re){lp(e,re)}while(!0);return Tl=ja=null,j.H=a,j.A=s,ot=n,Qe!==null?0:(gt=null,We=0,Hi(),Ot)}function Fv(){for(;Qe!==null&&!De();)ip(Qe)}function ip(e){var t=zm(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,t===null?ps(e):Qe=t}function sp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Am(n,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Am(n,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:vc(t);default:Hm(n,t),t=Qe=o1(t,Dl),t=zm(n,t,Dl)}e.memoizedProps=e.pendingProps,t===null?ps(e):Qe=t}function Hr(e,t,n,a){Tl=ja=null,vc(t),Er=null,Ao=0;var s=t.return;try{if(Lv(e,s,t,n,We)){Ot=1,ts(e,Zn(n,e.current)),Qe=null;return}}catch(u){if(s!==null)throw Qe=s,u;Ot=1,ts(e,Zn(n,e.current)),Qe=null;return}t.flags&32768?(tt||a===1?e=!0:Or||(We&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Mn.current,a!==null&&a.tag===13&&(a.flags|=16384))),up(t,e)):ps(t)}function ps(e){var t=e;do{if((t.flags&32768)!==0){up(t,Wl);return}e=t.return;var n=Uv(t.alternate,t,Dl);if(n!==null){Qe=n;return}if(t=t.sibling,t!==null){Qe=t;return}Qe=t=e}while(t!==null);Ot===0&&(Ot=5)}function up(e,t){do{var n=kv(e.alternate,e);if(n!==null){n.flags&=32767,Qe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Qe=e;return}Qe=e=n}while(e!==null);Ot=6,Qe=null}function cp(e,t,n,a,s,u,g,E,L){e.cancelPendingCommit=null;do hs();while(It!==0);if((ot&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=Gu,pn(e,n,u,g,E,L),e===gt&&(Qe=gt=null,We=0),zr=t,na=e,Ll=n,$c=u,Wc=s,Wm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Jv(Ye,function(){return hp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,s=Z.p,Z.p=2,g=ot,ot|=4;try{Zv(e,t,n)}finally{ot=g,Z.p=s,j.T=a}}It=1,fp(),dp(),mp()}}function fp(){if(It===1){It=0;var e=na,t=zr,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Z.p;Z.p=2;var s=ot;ot|=4;try{Im(t,e);var u=hf,g=J0(e.containerInfo),E=u.focusedElem,L=u.selectionRange;if(g!==E&&E&&E.ownerDocument&&P0(E.ownerDocument.documentElement,E)){if(L!==null&&ku(E)){var F=L.start,re=L.end;if(re===void 0&&(re=F),"selectionStart"in E)E.selectionStart=F,E.selectionEnd=Math.min(re,E.value.length);else{var ce=E.ownerDocument||document,P=ce&&ce.defaultView||window;if(P.getSelection){var W=P.getSelection(),Ce=E.textContent.length,Ve=Math.min(L.start,Ce),ht=L.end===void 0?Ve:Math.min(L.end,Ce);!W.extend&&Ve>ht&&(g=ht,ht=Ve,Ve=g);var Y=K0(E,Ve),U=K0(E,ht);if(Y&&U&&(W.rangeCount!==1||W.anchorNode!==Y.node||W.anchorOffset!==Y.offset||W.focusNode!==U.node||W.focusOffset!==U.offset)){var X=ce.createRange();X.setStart(Y.node,Y.offset),W.removeAllRanges(),Ve>ht?(W.addRange(X),W.extend(U.node,U.offset)):(X.setEnd(U.node,U.offset),W.addRange(X))}}}}for(ce=[],W=E;W=W.parentNode;)W.nodeType===1&&ce.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ce.length;E++){var ue=ce[E];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}ws=!!pf,hf=pf=null}finally{ot=s,Z.p=a,j.T=n}}e.current=t,It=2}}function dp(){if(It===2){It=0;var e=na,t=zr,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Z.p;Z.p=2;var s=ot;ot|=4;try{Zm(e,t.alternate,t)}finally{ot=s,Z.p=a,j.T=n}}It=3}}function mp(){if(It===4||It===3){It=0,be();var e=na,t=zr,n=Ll,a=Wm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?It=5:(It=0,zr=na=null,pp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ta=null),so(n),t=t.stateNode,je&&typeof je.onCommitFiberRoot=="function")try{je.onCommitFiberRoot(ft,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,s=Z.p,Z.p=2,j.T=null;try{for(var u=e.onRecoverableError,g=0;g<a.length;g++){var E=a[g];u(E.value,{componentStack:E.stack})}}finally{j.T=t,Z.p=s}}(Ll&3)!==0&&hs(),ul(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===ef?qo++:(qo=0,ef=e):qo=0,Yo(0)}}function pp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ro(t)))}function hs(){return fp(),dp(),mp(),hp()}function hp(){if(It!==5)return!1;var e=na,t=$c;$c=0;var n=so(Ll),a=j.T,s=Z.p;try{Z.p=32>n?32:n,j.T=null,n=Wc,Wc=null;var u=na,g=Ll;if(It=0,zr=na=null,Ll=0,(ot&6)!==0)throw Error(i(331));var E=ot;if(ot|=4,Pm(u.current),Fm(u,u.current,g,n),ot=E,Yo(0,!1),je&&typeof je.onPostCommitFiberRoot=="function")try{je.onPostCommitFiberRoot(ft,u)}catch{}return!0}finally{Z.p=s,j.T=a,pp(e,t)}}function gp(e,t,n){t=Zn(n,t),t=jc(e.stateNode,t,2),e=Kl(e,t,2),e!==null&&(an(e,2),ul(e))}function ct(e,t,n){if(e.tag===3)gp(e,e,n);else for(;t!==null;){if(t.tag===3){gp(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=Zn(n,e),n=vm(2),a=Kl(t,n,2),a!==null&&(ym(n,a,t,e),an(a,2),ul(a));break}}t=t.return}}function lf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Yv;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Kc=!0,s.add(n),e=Qv.bind(null,e,t,n),t.then(e,e))}function Qv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,gt===e&&(We&n)===n&&(Ot===4||Ot===3&&(We&62914560)===We&&300>Re()-us?(ot&2)===0&&jr(e,0):Pc|=n,Nr===We&&(Nr=0)),ul(e)}function vp(e,t){t===0&&(t=$e()),e=Oa(e,t),e!==null&&(an(e,t),ul(e))}function Kv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Pv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(i(314))}a!==null&&a.delete(t),vp(e,n)}function Jv(e,t){return Me(e,t)}var gs=null,Dr=null,af=!1,vs=!1,rf=!1,aa=0;function ul(e){e!==Dr&&e.next===null&&(Dr===null?gs=Dr=e:Dr=Dr.next=e),vs=!0,af||(af=!0,Wv())}function Yo(e,t){if(!rf&&vs){rf=!0;do for(var n=!1,a=gs;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var u=0;else{var g=a.suspendedLanes,E=a.pingedLanes;u=(1<<31-Je(42|e)+1)-1,u&=s&~(g&~E),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Sp(a,u))}else u=We,u=mn(a,a===gt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Vn(a,u)||(n=!0,Sp(a,u));a=a.next}while(n);rf=!1}}function $v(){yp()}function yp(){vs=af=!1;var e=0;aa!==0&&u4()&&(e=aa);for(var t=Re(),n=null,a=gs;a!==null;){var s=a.next,u=bp(a,t);u===0?(a.next=null,n===null?gs=s:n.next=s,s===null&&(Dr=n)):(n=a,(e!==0||(u&3)!==0)&&(vs=!0)),a=s}It!==0&&It!==5||Yo(e),aa!==0&&(aa=0)}function bp(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var g=31-Je(u),E=1<<g,L=s[g];L===-1?((E&n)===0||(E&a)!==0)&&(s[g]=Ta(E,t)):L<=t&&(e.expiredLanes|=E),u&=~E}if(t=gt,n=We,n=mn(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ut===2||ut===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&fe(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Vn(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&fe(a),so(n)){case 2:case 8:n=lt;break;case 32:n=Ye;break;case 268435456:n=bt;break;default:n=Ye}return a=xp.bind(null,e),n=Me(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&fe(a),e.callbackPriority=2,e.callbackNode=null,2}function xp(e,t){if(It!==0&&It!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hs()&&e.callbackNode!==n)return null;var a=We;return a=mn(e,e===gt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(tp(e,a,t),bp(e,Re()),e.callbackNode!=null&&e.callbackNode===n?xp.bind(null,e):null)}function Sp(e,t){if(hs())return null;tp(e,t,!0)}function Wv(){f4(function(){(ot&6)!==0?Me(Ie,$v):yp()})}function of(){if(aa===0){var e=br;e===0&&(e=vt,vt<<=1,(vt&261888)===0&&(vt=256)),aa=e}return aa}function Ep(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ai(""+e)}function Rp(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function e4(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var u=Ep((s[hn]||null).action),g=a.submitter;g&&(t=(t=g[hn]||null)?Ep(t.formAction):g.getAttribute("formAction"),t!==null&&(u=t,g=null));var E=new Oi("action","action",null,a,s);e.push({event:E,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(aa!==0){var L=g?Rp(s,g):new FormData(s);Mc(n,{pending:!0,data:L,method:s.method,action:u},null,L)}}else typeof u=="function"&&(E.preventDefault(),L=g?Rp(s,g):new FormData(s),Mc(n,{pending:!0,data:L,method:s.method,action:u},u,L))},currentTarget:s}]})}}for(var sf=0;sf<Yu.length;sf++){var uf=Yu[sf],t4=uf.toLowerCase(),n4=uf[0].toUpperCase()+uf.slice(1);Pn(t4,"on"+n4)}Pn(e1,"onAnimationEnd"),Pn(t1,"onAnimationIteration"),Pn(n1,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(yv,"onTransitionRun"),Pn(bv,"onTransitionStart"),Pn(xv,"onTransitionCancel"),Pn(l1,"onTransitionEnd"),rr("onMouseEnter",["mouseout","mouseover"]),rr("onMouseLeave",["mouseout","mouseover"]),rr("onPointerEnter",["pointerout","pointerover"]),rr("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="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(" "),l4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Go));function Tp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var g=a.length-1;0<=g;g--){var E=a[g],L=E.instance,F=E.currentTarget;if(E=E.listener,L!==u&&s.isPropagationStopped())break e;u=E,s.currentTarget=F;try{u(s)}catch(re){ji(re)}s.currentTarget=null,u=L}else for(g=0;g<a.length;g++){if(E=a[g],L=E.instance,F=E.currentTarget,E=E.listener,L!==u&&s.isPropagationStopped())break e;u=E,s.currentTarget=F;try{u(s)}catch(re){ji(re)}s.currentTarget=null,u=L}}}}function Ke(e,t){var n=t[Su];n===void 0&&(n=t[Su]=new Set);var a=e+"__bubble";n.has(a)||(Ap(t,e,2,!1),n.add(a))}function cf(e,t,n){var a=0;t&&(a|=4),Ap(n,e,a,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function ff(e){if(!e[ys]){e[ys]=!0,y0.forEach(function(n){n!=="selectionchange"&&(l4.has(n)||cf(n,!1,e),cf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,cf("selectionchange",!1,t))}}function Ap(e,t,n,a){switch(eh(t)){case 2:var s=z4;break;case 8:s=j4;break;default:s=Mf}n=s.bind(null,t,n,e),s=void 0,!Nu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function df(e,t,n,a,s){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var E=a.stateNode.containerInfo;if(E===s)break;if(g===4)for(g=a.return;g!==null;){var L=g.tag;if((L===3||L===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;E!==null;){if(g=nr(E),g===null)return;if(L=g.tag,L===5||L===6||L===26||L===27){a=u=g;continue e}E=E.parentNode}}a=a.return}N0(function(){var F=u,re=Cu(n),ce=[];e:{var P=a1.get(e);if(P!==void 0){var W=Oi,Ce=e;switch(e){case"keypress":if(wi(n)===0)break e;case"keydown":case"keyup":W=P8;break;case"focusin":Ce="focus",W=Du;break;case"focusout":Ce="blur",W=Du;break;case"beforeblur":case"afterblur":W=Du;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=H0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=U8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=W8;break;case e1:case t1:case n1:W=B8;break;case l1:W=tv;break;case"scroll":case"scrollend":W=V8;break;case"wheel":W=lv;break;case"copy":case"cut":case"paste":W=Y8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=L0;break;case"toggle":case"beforetoggle":W=rv}var Ve=(t&4)!==0,ht=!Ve&&(e==="scroll"||e==="scrollend"),Y=Ve?P!==null?P+"Capture":null:P;Ve=[];for(var U=F,X;U!==null;){var ue=U;if(X=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||X===null||Y===null||(ue=fo(U,Y),ue!=null&&Ve.push(Io(U,ue,X))),ht)break;U=U.return}0<Ve.length&&(P=new W(P,Ce,null,n,re),ce.push({event:P,listeners:Ve}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",W=e==="mouseout"||e==="pointerout",P&&n!==wu&&(Ce=n.relatedTarget||n.fromElement)&&(nr(Ce)||Ce[tr]))break e;if((W||P)&&(P=re.window===re?re:(P=re.ownerDocument)?P.defaultView||P.parentWindow:window,W?(Ce=n.relatedTarget||n.toElement,W=F,Ce=Ce?nr(Ce):null,Ce!==null&&(ht=d(Ce),Ve=Ce.tag,Ce!==ht||Ve!==5&&Ve!==27&&Ve!==6)&&(Ce=null)):(W=null,Ce=F),W!==Ce)){if(Ve=H0,ue="onMouseLeave",Y="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(Ve=L0,ue="onPointerLeave",Y="onPointerEnter",U="pointer"),ht=W==null?P:co(W),X=Ce==null?P:co(Ce),P=new Ve(ue,U+"leave",W,n,re),P.target=ht,P.relatedTarget=X,ue=null,nr(re)===F&&(Ve=new Ve(Y,U+"enter",Ce,n,re),Ve.target=X,Ve.relatedTarget=ht,ue=Ve),ht=ue,W&&Ce)t:{for(Ve=a4,Y=W,U=Ce,X=0,ue=Y;ue;ue=Ve(ue))X++;ue=0;for(var Le=U;Le;Le=Ve(Le))ue++;for(;0<X-ue;)Y=Ve(Y),X--;for(;0<ue-X;)U=Ve(U),ue--;for(;X--;){if(Y===U||U!==null&&Y===U.alternate){Ve=Y;break t}Y=Ve(Y),U=Ve(U)}Ve=null}else Ve=null;W!==null&&Mp(ce,P,W,Ve,!1),Ce!==null&&ht!==null&&Mp(ce,ht,Ce,Ve,!0)}}e:{if(P=F?co(F):window,W=P.nodeName&&P.nodeName.toLowerCase(),W==="select"||W==="input"&&P.type==="file")var at=Y0;else if(B0(P))if(G0)at=hv;else{at=mv;var He=dv}else W=P.nodeName,!W||W.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?F&&Mu(F.elementType)&&(at=Y0):at=pv;if(at&&(at=at(e,F))){q0(ce,at,n,re);break e}He&&He(e,P,F),e==="focusout"&&F&&P.type==="number"&&F.memoizedProps.value!=null&&Au(P,"number",P.value)}switch(He=F?co(F):window,e){case"focusin":(B0(He)||He.contentEditable==="true")&&(fr=He,Zu=F,xo=null);break;case"focusout":xo=Zu=fr=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,$0(ce,n,re);break;case"selectionchange":if(vv)break;case"keydown":case"keyup":$0(ce,n,re)}var Xe;if(Vu)e:{switch(e){case"compositionstart":var et="onCompositionStart";break e;case"compositionend":et="onCompositionEnd";break e;case"compositionupdate":et="onCompositionUpdate";break e}et=void 0}else cr?k0(e,n)&&(et="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(et="onCompositionStart");et&&(V0&&n.locale!=="ko"&&(cr||et!=="onCompositionStart"?et==="onCompositionEnd"&&cr&&(Xe=z0()):(ql=re,zu="value"in ql?ql.value:ql.textContent,cr=!0)),He=bs(F,et),0<He.length&&(et=new D0(et,e,null,n,re),ce.push({event:et,listeners:He}),Xe?et.data=Xe:(Xe=Z0(n),Xe!==null&&(et.data=Xe)))),(Xe=iv?sv(e,n):uv(e,n))&&(et=bs(F,"onBeforeInput"),0<et.length&&(He=new D0("onBeforeInput","beforeinput",null,n,re),ce.push({event:He,listeners:et}),He.data=Xe)),e4(ce,e,F,n,re)}Tp(ce,t)})}function Io(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bs(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=fo(e,n),s!=null&&a.unshift(Io(e,s,u)),s=fo(e,t),s!=null&&a.push(Io(e,s,u))),e.tag===3)return a;e=e.return}return[]}function a4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mp(e,t,n,a,s){for(var u=t._reactName,g=[];n!==null&&n!==a;){var E=n,L=E.alternate,F=E.stateNode;if(E=E.tag,L!==null&&L===a)break;E!==5&&E!==26&&E!==27||F===null||(L=F,s?(F=fo(n,u),F!=null&&g.unshift(Io(n,F,L))):s||(F=fo(n,u),F!=null&&g.push(Io(n,F,L)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var r4=/\r\n?/g,o4=/\u0000|\uFFFD/g;function wp(e){return(typeof e=="string"?e:""+e).replace(r4,`
|
|
9
|
+
`).replace(o4,"")}function Cp(e,t){return t=wp(t),wp(e)===t}function pt(e,t,n,a,s,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ir(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ir(e,""+a);break;case"className":Ri(e,"class",a);break;case"tabIndex":Ri(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ri(e,n,a);break;case"style":C0(e,a,u);break;case"data":if(t!=="object"){Ri(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ai(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&pt(e,t,"name",s.name,s,null),pt(e,t,"formEncType",s.formEncType,s,null),pt(e,t,"formMethod",s.formMethod,s,null),pt(e,t,"formTarget",s.formTarget,s,null)):(pt(e,t,"encType",s.encType,s,null),pt(e,t,"method",s.method,s,null),pt(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ai(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=xl);break;case"onScroll":a!=null&&Ke("scroll",e);break;case"onScrollEnd":a!=null&&Ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Ai(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ke("beforetoggle",e),Ke("toggle",e),Ei(e,"popover",a);break;case"xlinkActuate":bl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ei(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=D8.get(n)||n,Ei(e,n,a))}}function mf(e,t,n,a,s,u){switch(n){case"style":C0(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(i(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ir(e,a):(typeof a=="number"||typeof a=="bigint")&&ir(e,""+a);break;case"onScroll":a!=null&&Ke("scroll",e);break;case"onScrollEnd":a!=null&&Ke("scrollend",e);break;case"onClick":a!=null&&(e.onclick=xl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!b0.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),u=e[hn]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ei(e,n,a)}}}function nn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ke("error",e),Ke("load",e);var a=!1,s=!1,u;for(u in n)if(n.hasOwnProperty(u)){var g=n[u];if(g!=null)switch(u){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:pt(e,t,u,g,n,null)}}s&&pt(e,t,"srcSet",n.srcSet,n,null),a&&pt(e,t,"src",n.src,n,null);return;case"input":Ke("invalid",e);var E=u=g=s=null,L=null,F=null;for(a in n)if(n.hasOwnProperty(a)){var re=n[a];if(re!=null)switch(a){case"name":s=re;break;case"type":g=re;break;case"checked":L=re;break;case"defaultChecked":F=re;break;case"value":u=re;break;case"defaultValue":E=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,t));break;default:pt(e,t,a,re,n,null)}}T0(e,u,E,L,F,g,s,!1);return;case"select":Ke("invalid",e),a=g=u=null;for(s in n)if(n.hasOwnProperty(s)&&(E=n[s],E!=null))switch(s){case"value":u=E;break;case"defaultValue":g=E;break;case"multiple":a=E;default:pt(e,t,s,E,n,null)}t=u,n=g,e.multiple=!!a,t!=null?or(e,!!a,t,!1):n!=null&&or(e,!!a,n,!0);return;case"textarea":Ke("invalid",e),u=s=a=null;for(g in n)if(n.hasOwnProperty(g)&&(E=n[g],E!=null))switch(g){case"value":a=E;break;case"defaultValue":s=E;break;case"children":u=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:pt(e,t,g,E,n,null)}M0(e,a,s,u);return;case"option":for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!=null)&&(L==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":pt(e,t,L,a,n,null));return;case"dialog":Ke("beforetoggle",e),Ke("toggle",e),Ke("cancel",e),Ke("close",e);break;case"iframe":case"object":Ke("load",e);break;case"video":case"audio":for(a=0;a<Go.length;a++)Ke(Go[a],e);break;case"image":Ke("error",e),Ke("load",e);break;case"details":Ke("toggle",e);break;case"embed":case"source":case"link":Ke("error",e),Ke("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(F in n)if(n.hasOwnProperty(F)&&(a=n[F],a!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:pt(e,t,F,a,n,null)}return;default:if(Mu(t)){for(re in n)n.hasOwnProperty(re)&&(a=n[re],a!==void 0&&mf(e,t,re,a,n,void 0));return}}for(E in n)n.hasOwnProperty(E)&&(a=n[E],a!=null&&pt(e,t,E,a,n,null))}function i4(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,g=null,E=null,L=null,F=null,re=null;for(W in n){var ce=n[W];if(n.hasOwnProperty(W)&&ce!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":L=ce;default:a.hasOwnProperty(W)||pt(e,t,W,null,a,ce)}}for(var P in a){var W=a[P];if(ce=n[P],a.hasOwnProperty(P)&&(W!=null||ce!=null))switch(P){case"type":u=W;break;case"name":s=W;break;case"checked":F=W;break;case"defaultChecked":re=W;break;case"value":g=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,t));break;default:W!==ce&&pt(e,t,P,W,a,ce)}}Tu(e,g,E,L,F,re,u,s);return;case"select":W=g=E=P=null;for(u in n)if(L=n[u],n.hasOwnProperty(u)&&L!=null)switch(u){case"value":break;case"multiple":W=L;default:a.hasOwnProperty(u)||pt(e,t,u,null,a,L)}for(s in a)if(u=a[s],L=n[s],a.hasOwnProperty(s)&&(u!=null||L!=null))switch(s){case"value":P=u;break;case"defaultValue":E=u;break;case"multiple":g=u;default:u!==L&&pt(e,t,s,u,a,L)}t=E,n=g,a=W,P!=null?or(e,!!n,P,!1):!!a!=!!n&&(t!=null?or(e,!!n,t,!0):or(e,!!n,n?[]:"",!1));return;case"textarea":W=P=null;for(E in n)if(s=n[E],n.hasOwnProperty(E)&&s!=null&&!a.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:pt(e,t,E,null,a,s)}for(g in a)if(s=a[g],u=n[g],a.hasOwnProperty(g)&&(s!=null||u!=null))switch(g){case"value":P=s;break;case"defaultValue":W=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==u&&pt(e,t,g,s,a,u)}A0(e,P,W);return;case"option":for(var Ce in n)P=n[Ce],n.hasOwnProperty(Ce)&&P!=null&&!a.hasOwnProperty(Ce)&&(Ce==="selected"?e.selected=!1:pt(e,t,Ce,null,a,P));for(L in a)P=a[L],W=n[L],a.hasOwnProperty(L)&&P!==W&&(P!=null||W!=null)&&(L==="selected"?e.selected=P&&typeof P!="function"&&typeof P!="symbol":pt(e,t,L,P,a,W));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 n)P=n[Ve],n.hasOwnProperty(Ve)&&P!=null&&!a.hasOwnProperty(Ve)&&pt(e,t,Ve,null,a,P);for(F in a)if(P=a[F],W=n[F],a.hasOwnProperty(F)&&P!==W&&(P!=null||W!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(137,t));break;default:pt(e,t,F,P,a,W)}return;default:if(Mu(t)){for(var ht in n)P=n[ht],n.hasOwnProperty(ht)&&P!==void 0&&!a.hasOwnProperty(ht)&&mf(e,t,ht,void 0,a,P);for(re in a)P=a[re],W=n[re],!a.hasOwnProperty(re)||P===W||P===void 0&&W===void 0||mf(e,t,re,P,a,W);return}}for(var Y in n)P=n[Y],n.hasOwnProperty(Y)&&P!=null&&!a.hasOwnProperty(Y)&&pt(e,t,Y,null,a,P);for(ce in a)P=a[ce],W=n[ce],!a.hasOwnProperty(ce)||P===W||P==null&&W==null||pt(e,t,ce,P,a,W)}function Op(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],u=s.transferSize,g=s.initiatorType,E=s.duration;if(u&&E&&Op(g)){for(g=0,E=s.responseEnd,a+=1;a<n.length;a++){var L=n[a],F=L.startTime;if(F>E)break;var re=L.transferSize,ce=L.initiatorType;re&&Op(ce)&&(L=L.responseEnd,g+=re*(L<E?1:(E-F)/(L-F)))}if(--a,t+=8*(u+g)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var pf=null,hf=null;function xs(e){return e.nodeType===9?e:e.ownerDocument}function Np(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 zp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vf=null;function u4(){var e=window.event;return e&&e.type==="popstate"?e===vf?!1:(vf=e,!0):(vf=null,!1)}var jp=typeof setTimeout=="function"?setTimeout:void 0,c4=typeof clearTimeout=="function"?clearTimeout:void 0,Hp=typeof Promise=="function"?Promise:void 0,f4=typeof queueMicrotask=="function"?queueMicrotask:typeof Hp<"u"?function(e){return Hp.resolve(null).then(e).catch(d4)}:jp;function d4(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function Dp(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),Ur(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Xo(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Xo(n);for(var u=n.firstChild;u;){var g=u.nextSibling,E=u.nodeName;u[uo]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=g}}else n==="body"&&Xo(e.ownerDocument.body);n=s}while(n);Ur(t)}function Lp(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function yf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yf(n),Eu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function m4(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[uo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=In(e.nextSibling),e===null)break}return null}function p4(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=In(e.nextSibling),e===null))return null;return e}function Vp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=In(e.nextSibling),e===null))return null;return e}function bf(e){return e.data==="$?"||e.data==="$~"}function xf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function h4(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function In(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Sf=null;function _p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return In(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Up(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function kp(e,t,n){switch(t=xs(n),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Xo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Eu(e)}var Xn=new Map,Zp=new Set;function Ss(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vl=Z.d;Z.d={f:g4,r:v4,D:y4,C:b4,L:x4,m:S4,X:R4,S:E4,M:T4};function g4(){var e=Vl.f(),t=ds();return e||t}function v4(e){var t=lr(e);t!==null&&t.tag===5&&t.type==="form"?lm(t):Vl.r(e)}var Lr=typeof document>"u"?null:document;function Bp(e,t,n){var a=Lr;if(a&&typeof t=="string"&&t){var s=Un(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Zp.has(s)||(Zp.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),nn(t,"link",e),Qt(t),a.head.appendChild(t)))}}function y4(e){Vl.D(e),Bp("dns-prefetch",e,null)}function b4(e,t){Vl.C(e,t),Bp("preconnect",e,t)}function x4(e,t,n){Vl.L(e,t,n);var a=Lr;if(a&&e&&t){var s='link[rel="preload"][as="'+Un(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Un(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Un(n.imageSizes)+'"]')):s+='[href="'+Un(e)+'"]';var u=s;switch(t){case"style":u=Vr(e);break;case"script":u=_r(e)}Xn.has(u)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Xn.set(u,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Fo(u))||t==="script"&&a.querySelector(Qo(u))||(t=a.createElement("link"),nn(t,"link",e),Qt(t),a.head.appendChild(t)))}}function S4(e,t){Vl.m(e,t);var n=Lr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Un(a)+'"][href="'+Un(e)+'"]',u=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_r(e)}if(!Xn.has(u)&&(e=b({rel:"modulepreload",href:e},t),Xn.set(u,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qo(u)))return}a=n.createElement("link"),nn(a,"link",e),Qt(a),n.head.appendChild(a)}}}function E4(e,t,n){Vl.S(e,t,n);var a=Lr;if(a&&e){var s=ar(a).hoistableStyles,u=Vr(e);t=t||"default";var g=s.get(u);if(!g){var E={loading:0,preload:null};if(g=a.querySelector(Fo(u)))E.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Xn.get(u))&&Ef(e,n);var L=g=a.createElement("link");Qt(L),nn(L,"link",e),L._p=new Promise(function(F,re){L.onload=F,L.onerror=re}),L.addEventListener("load",function(){E.loading|=1}),L.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Es(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:E},s.set(u,g)}}}function R4(e,t){Vl.X(e,t);var n=Lr;if(n&&e){var a=ar(n).hoistableScripts,s=_r(e),u=a.get(s);u||(u=n.querySelector(Qo(s)),u||(e=b({src:e,async:!0},t),(t=Xn.get(s))&&Rf(e,t),u=n.createElement("script"),Qt(u),nn(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function T4(e,t){Vl.M(e,t);var n=Lr;if(n&&e){var a=ar(n).hoistableScripts,s=_r(e),u=a.get(s);u||(u=n.querySelector(Qo(s)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Xn.get(s))&&Rf(e,t),u=n.createElement("script"),Qt(u),nn(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(s,u))}}function qp(e,t,n,a){var s=(s=te.current)?Ss(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Vr(n.href),n=ar(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Vr(n.href);var u=ar(s).hoistableStyles,g=u.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,g),(u=s.querySelector(Fo(e)))&&!u._p&&(g.instance=u,g.state.loading=5),Xn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Xn.set(e,n),u||A4(s,e,n,g.state))),t&&a===null)throw Error(i(528,""));return g}if(t&&a!==null)throw Error(i(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_r(n),n=ar(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vr(e){return'href="'+Un(e)+'"'}function Fo(e){return'link[rel="stylesheet"]['+e+"]"}function Yp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function A4(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nn(t,"link",n),Qt(t),e.head.appendChild(t))}function _r(e){return'[src="'+Un(e)+'"]'}function Qo(e){return"script[async]"+e}function Gp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Un(n.href)+'"]');if(a)return t.instance=a,Qt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qt(a),nn(a,"style",s),Es(a,n.precedence,e),t.instance=a;case"stylesheet":s=Vr(n.href);var u=e.querySelector(Fo(s));if(u)return t.state.loading|=4,t.instance=u,Qt(u),u;a=Yp(n),(s=Xn.get(s))&&Ef(a,s),u=(e.ownerDocument||e).createElement("link"),Qt(u);var g=u;return g._p=new Promise(function(E,L){g.onload=E,g.onerror=L}),nn(u,"link",a),t.state.loading|=4,Es(u,n.precedence,e),t.instance=u;case"script":return u=_r(n.src),(s=e.querySelector(Qo(u)))?(t.instance=s,Qt(s),s):(a=n,(s=Xn.get(u))&&(a=b({},n),Rf(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Qt(s),nn(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Es(a,n.precedence,e));return t.instance}function Es(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,u=s,g=0;g<a.length;g++){var E=a[g];if(E.dataset.precedence===t)u=E;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ef(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rs=null;function Ip(e,t,n){if(Rs===null){var a=new Map,s=Rs=new Map;s.set(n,a)}else s=Rs,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var u=n[s];if(!(u[uo]||u[$t]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var g=u.getAttribute(t)||"";g=e+g;var E=a.get(g);E?E.push(u):a.set(g,[u])}}return a}function Xp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function M4(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function w4(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Vr(a.href),u=t.querySelector(Fo(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Qt(u);return}u=t.ownerDocument||t,a=Yp(a),(s=Xn.get(s))&&Ef(a,s),u=u.createElement("link"),Qt(u);var g=u;g._p=new Promise(function(E,L){g.onload=E,g.onerror=L}),nn(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ts.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Tf=0;function C4(e,t){return e.stylesheets&&e.count===0&&Ms(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Tf===0&&(Tf=62500*s4());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ms(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Tf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ms(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var As=null;function Ms(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,As=new Map,t.forEach(O4,e),As=null,Ts.call(e))}function O4(e,t){if(!(t.state.loading&4)){var n=As.get(e);if(n)var a=n.get(null);else{n=new Map,As.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var g=s[u];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}s=t.instance,g=s.getAttribute("data-precedence"),u=n.get(g)||a,u===a&&n.set(null,s),n.set(g,s),this.count++,a=Ts.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ko={$$typeof:z,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function N4(e,t,n,a,s,u,g,E,L){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=wt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wt(0),this.hiddenUpdates=wt(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function Qp(e,t,n,a,s,u,g,E,L,F,re,ce){return e=new N4(e,t,n,g,L,F,re,ce,E),t=1,u===!0&&(t|=24),u=An(3,null,null,t),e.current=u,u.stateNode=e,t=nc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},oc(u),e}function Kp(e){return e?(e=pr,e):pr}function Pp(e,t,n,a,s,u){s=Kp(s),a.context===null?a.context=s:a.pendingContext=s,a=Ql(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=Kl(e,a,t),n!==null&&(Sn(n,e,t),wo(n,e,t))}function Jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Af(e,t){Jp(e,t),(e=e.alternate)&&Jp(e,t)}function $p(e){if(e.tag===13||e.tag===31){var t=Oa(e,67108864);t!==null&&Sn(t,e,67108864),Af(e,67108864)}}function Wp(e){if(e.tag===13||e.tag===31){var t=Nn();t=yl(t);var n=Oa(e,t);n!==null&&Sn(n,e,t),Af(e,t)}}var ws=!0;function z4(e,t,n,a){var s=j.T;j.T=null;var u=Z.p;try{Z.p=2,Mf(e,t,n,a)}finally{Z.p=u,j.T=s}}function j4(e,t,n,a){var s=j.T;j.T=null;var u=Z.p;try{Z.p=8,Mf(e,t,n,a)}finally{Z.p=u,j.T=s}}function Mf(e,t,n,a){if(ws){var s=wf(a);if(s===null)df(e,t,a,Cs,n),th(e,a);else if(D4(s,e,t,n,a))a.stopPropagation();else if(th(e,a),t&4&&-1<H4.indexOf(e)){for(;s!==null;){var u=lr(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var g=Mt(u.pendingLanes);if(g!==0){var E=u;for(E.pendingLanes|=2,E.entangledLanes|=2;g;){var L=1<<31-Je(g);E.entanglements[1]|=L,g&=~L}ul(u),(ot&6)===0&&(cs=Re()+500,Yo(0))}}break;case 31:case 13:E=Oa(u,2),E!==null&&Sn(E,u,2),ds(),Af(u,2)}if(u=wf(a),u===null&&df(e,t,a,Cs,n),u===s)break;s=u}s!==null&&a.stopPropagation()}else df(e,t,a,null,n)}}function wf(e){return e=Cu(e),Cf(e)}var Cs=null;function Cf(e){if(Cs=null,e=nr(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cs=e,null}function eh(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(xe()){case Ie:return 2;case lt:return 8;case Ye:case yt:return 32;case bt:return 268435456;default:return 32}default:return 32}}var Of=!1,oa=null,ia=null,sa=null,Po=new Map,Jo=new Map,ua=[],H4="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 th(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Po.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jo.delete(t.pointerId)}}function $o(e,t,n,a,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[s]},t!==null&&(t=lr(t),t!==null&&$p(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function D4(e,t,n,a,s){switch(t){case"focusin":return oa=$o(oa,e,t,n,a,s),!0;case"dragenter":return ia=$o(ia,e,t,n,a,s),!0;case"mouseover":return sa=$o(sa,e,t,n,a,s),!0;case"pointerover":var u=s.pointerId;return Po.set(u,$o(Po.get(u)||null,e,t,n,a,s)),!0;case"gotpointercapture":return u=s.pointerId,Jo.set(u,$o(Jo.get(u)||null,e,t,n,a,s)),!0}return!1}function nh(e){var t=nr(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Si(e.priority,function(){Wp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Si(e.priority,function(){Wp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);wu=a,n.target.dispatchEvent(a),wu=null}else return t=lr(n),t!==null&&$p(t),e.blockedOn=n,!1;t.shift()}return!0}function lh(e,t,n){Os(e)&&n.delete(t)}function L4(){Of=!1,oa!==null&&Os(oa)&&(oa=null),ia!==null&&Os(ia)&&(ia=null),sa!==null&&Os(sa)&&(sa=null),Po.forEach(lh),Jo.forEach(lh)}function Ns(e,t){e.blockedOn===t&&(e.blockedOn=null,Of||(Of=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,L4)))}var zs=null;function ah(e){zs!==e&&(zs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){zs===e&&(zs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(Cf(a||n)===null)continue;break}var u=lr(n);u!==null&&(e.splice(t,3),t-=3,Mc(u,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function Ur(e){function t(L){return Ns(L,e)}oa!==null&&Ns(oa,e),ia!==null&&Ns(ia,e),sa!==null&&Ns(sa,e),Po.forEach(t),Jo.forEach(t);for(var n=0;n<ua.length;n++){var a=ua[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ua.length&&(n=ua[0],n.blockedOn===null);)nh(n),n.blockedOn===null&&ua.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],u=n[a+1],g=s[hn]||null;if(typeof u=="function")g||ah(n);else if(g){var E=null;if(u&&u.hasAttribute("formAction")){if(s=u,g=u[hn]||null)E=g.formAction;else if(Cf(s)!==null)continue}else E=g.action;typeof E=="function"?n[a+1]=E:(n.splice(a,3),a-=3),ah(n)}}}function rh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Nf(e){this._internalRoot=e}js.prototype.render=Nf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current,a=Nn();Pp(n,a,e,t,null,null)},js.prototype.unmount=Nf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pp(e.current,2,null,e,null,null),ds(),t[tr]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=xi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ua.length&&t!==0&&t<ua[n].priority;n++);ua.splice(n,0,e),n===0&&nh(e)}};var oh=r.version;if(oh!=="19.2.0")throw Error(i(527,oh,"19.2.0"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var V4={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{ft=Hs.inject(V4),je=Hs}catch{}}return ei.createRoot=function(e,t){if(!f(e))throw Error(i(299));var n=!1,a="",s=mm,u=pm,g=hm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Qp(e,1,!1,null,null,n,a,null,s,u,g,rh),e[tr]=t.current,ff(e),new Nf(t)},ei.hydrateRoot=function(e,t,n){if(!f(e))throw Error(i(299));var a=!1,s="",u=mm,g=pm,E=hm,L=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(E=n.onRecoverableError),n.formState!==void 0&&(L=n.formState)),t=Qp(e,1,!0,t,n??null,a,s,L,u,g,E,rh),t.context=Kp(null),n=t.current,a=Nn(),a=yl(a),s=Ql(a),s.callback=null,Kl(n,s,a),n=a,t.current.lanes=n,an(t,n),ul(t),e[tr]=t.current,ff(e),new js(t)},ei.version="19.2.0",ei}var gh;function Q4(){if(gh)return Hf.exports;gh=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(r){console.error(r)}}return l(),Hf.exports=F4(),Hf.exports}var K4=Q4();const P4=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"}))]]),J4=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),c.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),$4=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),c.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),W4=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),c.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),e6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z",opacity:"0.2"}),c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z"}))]]),t6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),n6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z",opacity:"0.2"}),c.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z"}))]]),l6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z",opacity:"0.2"}),c.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H40.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z"}))]]),a6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),r6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,36H48A28,28,0,0,0,20,64V176a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V64A28,28,0,0,0,208,36Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-40,52a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,228Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224,64V176a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V64A16,16,0,0,1,48,48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),c.createElement("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232,64V176a24,24,0,0,1-24,24H48a24,24,0,0,1-24-24V64A24,24,0,0,1,48,40H208A24,24,0,0,1,232,64ZM160,216H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,42H48A22,22,0,0,0,26,64V176a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V64A22,22,0,0,0,208,42Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V64A10,10,0,0,1,48,54H208a10,10,0,0,1,10,10Zm-52,48a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,224Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M208,44H48A20,20,0,0,0,28,64V176a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V64A20,20,0,0,0,208,44Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V64A12,12,0,0,1,48,52H208a12,12,0,0,1,12,12Zm-56,48a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,224Z"}))]]),o6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z",opacity:"0.2"}),c.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z"}))]]),i6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),c.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]]),s6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z",opacity:"0.2"}),c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z"}))]]),u6=new Map([["bold",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",c.createElement(c.Fragment,null,c.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",c.createElement(c.Fragment,null,c.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),c6=c.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),dn=c.forwardRef((l,r)=>{const{alt:o,color:i,size:f,weight:d,mirrored:m,children:h,weights:v,...p}=l,{color:x="currentColor",size:b,weight:S="regular",mirrored:R=!1,...A}=c.useContext(c6);return c.createElement("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",width:f??b,height:f??b,fill:i??x,viewBox:"0 0 256 256",transform:m||R?"scale(-1, 1)":void 0,...A,...p},!!o&&c.createElement("title",null,o),h,v.get(d??S))});dn.displayName="IconBase";const ui=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:P4}));ui.displayName="ArrowClockwiseIcon";const Dd=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:J4}));Dd.displayName="CaretDownIcon";const cg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:$4}));cg.displayName="CaretUpIcon";const Ld=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:W4}));Ld.displayName="CheckIcon";const nd=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:e6}));nd.displayName="DownloadIcon";const fg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:t6}));fg.displayName="FileTextIcon";const dg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:n6}));dg.displayName="FloppyDiskIcon";const mg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:l6}));mg.displayName="FolderOpenIcon";const pg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:a6}));pg.displayName="GearIcon";const hg=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:r6}));hg.displayName="MonitorIcon";const ld=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:o6}));ld.displayName="MoonIcon";const Vd=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:i6}));Vd.displayName="PaperPlaneTiltIcon";const ad=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:s6}));ad.displayName="SunIcon";const rd=c.forwardRef((l,r)=>c.createElement(dn,{ref:r,...l,weights:u6}));rd.displayName="TrashIcon";function fu(){return typeof window<"u"}function ba(l){return _d(l)?(l.nodeName||"").toLowerCase():"#document"}function Yt(l){var r;return(l==null||(r=l.ownerDocument)==null?void 0:r.defaultView)||window}function hl(l){var r;return(r=(_d(l)?l.ownerDocument:l.document)||window.document)==null?void 0:r.documentElement}function _d(l){return fu()?l instanceof Node||l instanceof Yt(l).Node:!1}function it(l){return fu()?l instanceof Element||l instanceof Yt(l).Element:!1}function Nt(l){return fu()?l instanceof HTMLElement||l instanceof Yt(l).HTMLElement:!1}function od(l){return!fu()||typeof ShadowRoot>"u"?!1:l instanceof ShadowRoot||l instanceof Yt(l).ShadowRoot}const f6=new Set(["inline","contents"]);function Pa(l){const{overflow:r,overflowX:o,overflowY:i,display:f}=Ln(l);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!f6.has(f)}const d6=new Set(["table","td","th"]);function m6(l){return d6.has(ba(l))}const p6=[":popover-open",":modal"];function du(l){return p6.some(r=>{try{return l.matches(r)}catch{return!1}})}const h6=["transform","translate","scale","rotate","perspective"],g6=["transform","translate","scale","rotate","perspective","filter"],v6=["paint","layout","strict","content"];function Ud(l){const r=mu(),o=it(l)?Ln(l):l;return h6.some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||g6.some(i=>(o.willChange||"").includes(i))||v6.some(i=>(o.contain||"").includes(i))}function y6(l){let r=pl(l);for(;Nt(r)&&!dl(r);){if(Ud(r))return r;if(du(r))return null;r=pl(r)}return null}function mu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const b6=new Set(["html","body","#document"]);function dl(l){return b6.has(ba(l))}function Ln(l){return Yt(l).getComputedStyle(l)}function pu(l){return it(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:{scrollLeft:l.scrollX,scrollTop:l.scrollY}}function pl(l){if(ba(l)==="html")return l;const r=l.assignedSlot||l.parentNode||od(l)&&l.host||hl(l);return od(r)?r.host:r}function gg(l){const r=pl(l);return dl(r)?l.ownerDocument?l.ownerDocument.body:l.body:Nt(r)&&Pa(r)?r:gg(r)}function ma(l,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const f=gg(l),d=f===((i=l.ownerDocument)==null?void 0:i.body),m=Yt(f);if(d){const h=id(m);return r.concat(m,m.visualViewport||[],Pa(f)?f:[],h&&o?ma(h):[])}return r.concat(f,ma(f,[],o))}function id(l){return l.parent&&Object.getPrototypeOf(l.parent)?l.frameElement:null}const vh={};function Rn(l,r){const o=c.useRef(vh);return o.current===vh&&(o.current=l(r)),o}const _f=sg[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],x6=_f&&_f!==c.useLayoutEffect?_f:l=>l();function we(l){const r=Rn(S6).current;return r.next=l,x6(r.effect),r.trampoline}function S6(){const l={next:void 0,callback:E6,trampoline:(...r)=>l.callback?.(...r),effect:()=>{l.callback=l.next}};return l}function E6(){}const R6=()=>{},Oe=typeof document<"u"?c.useLayoutEffect:R6;function sd(l,r){if(l&&!r)return l;if(!l&&r)return r;if(l||r)return{...l,...r}}const oi={};function va(l,r,o,i,f){let d={...ud(l,oi)};return r&&(d=li(d,r)),o&&(d=li(d,o)),i&&(d=li(d,i)),f&&(d=li(d,f)),d}function T6(l){if(l.length===0)return oi;if(l.length===1)return ud(l[0],oi);let r={...ud(l[0],oi)};for(let o=1;o<l.length;o+=1)r=li(r,l[o]);return r}function li(l,r){return vg(r)?r(l):A6(l,r)}function A6(l,r){if(!r)return l;for(const o in r){const i=r[o];switch(o){case"style":{l[o]=sd(l.style,i);break}case"className":{l[o]=yg(l.className,i);break}default:M6(o,i)?l[o]=w6(l[o],i):l[o]=i}}return l}function M6(l,r){const o=l.charCodeAt(0),i=l.charCodeAt(1),f=l.charCodeAt(2);return o===111&&i===110&&f>=65&&f<=90&&(typeof r=="function"||typeof r>"u")}function vg(l){return typeof l=="function"}function ud(l,r){return vg(l)?l(r):l??oi}function w6(l,r){return r?l?o=>{if(C6(o)){const f=o;cd(f);const d=r(f);return f.baseUIHandlerPrevented||l?.(f),d}const i=r(o);return l?.(o),i}:r:l}function cd(l){return l.preventBaseUIHandler=()=>{l.baseUIHandlerPrevented=!0},l}function yg(l,r){return r?l?r+" "+l:r:l}function C6(l){return l!=null&&typeof l=="object"&&"nativeEvent"in l}function Ft(l,...r){const o=new URL(`https://base-ui.com/production-error/${l}`);return r.forEach(i=>o.searchParams.append("args[]",i)),`Base UI error #${l}; visit ${o} for the full message.`}const O6=c.createContext(void 0);function kd(l=!1){const r=c.useContext(O6);if(r===void 0&&!l)throw new Error(Ft(16));return r}function N6(l){const{focusableWhenDisabled:r,disabled:o,composite:i=!1,tabIndex:f=0,isNativeButton:d}=l,m=i&&r!==!1,h=i&&r===!1;return{props:c.useMemo(()=>{const p={onKeyDown(x){o&&r&&x.key!=="Tab"&&x.preventDefault()}};return i||(p.tabIndex=f,!d&&o&&(p.tabIndex=r?f:-1)),(d&&(r||m)||!d&&o)&&(p["aria-disabled"]=o),d&&(!r||h)&&(p.disabled=o),p},[i,o,r,m,h,d,f])}}function Ja(l={}){const{disabled:r=!1,focusableWhenDisabled:o,tabIndex:i=0,native:f=!0}=l,d=c.useRef(null),m=kd(!0)!==void 0,h=we(()=>{const S=d.current;return!!(S?.tagName==="A"&&S?.href)}),{props:v}=N6({focusableWhenDisabled:o,disabled:r,composite:m,tabIndex:i,isNativeButton:f}),p=c.useCallback(()=>{const S=d.current;z6(S)&&m&&r&&v.disabled===void 0&&S.disabled&&(S.disabled=!1)},[r,v.disabled,m]);Oe(p,[p]);const x=c.useCallback((S={})=>{const{onClick:R,onMouseDown:A,onKeyUp:M,onKeyDown:w,onPointerDown:O,...N}=S;return va({type:f?"button":void 0,onClick(D){if(r){D.preventDefault();return}R?.(D)},onMouseDown(D){r||A?.(D)},onKeyDown(D){if(r||(cd(D),w?.(D)),D.baseUIHandlerPrevented)return;const T=D.target===D.currentTarget&&!f&&!h()&&!r,B=D.key==="Enter",V=D.key===" ";T&&((V||B)&&D.preventDefault(),B&&R?.(D))},onKeyUp(D){r||(cd(D),M?.(D)),!D.baseUIHandlerPrevented&&D.target===D.currentTarget&&!f&&!r&&D.key===" "&&R?.(D)},onPointerDown(D){if(r){D.preventDefault();return}O?.(D)}},f?void 0:{role:"button"},v,N)},[r,v,f,h]),b=we(S=>{d.current=S,p()});return{getButtonProps:x,buttonRef:b}}function z6(l){return Nt(l)&&l.tagName==="BUTTON"}function ya(l,r,o,i){const f=Rn(bg).current;return H6(f,l,r,o,i)&&xg(f,[l,r,o,i]),f.callback}function j6(l){const r=Rn(bg).current;return D6(r,l)&&xg(r,l),r.callback}function bg(){return{callback:null,cleanup:null,refs:[]}}function H6(l,r,o,i,f){return l.refs[0]!==r||l.refs[1]!==o||l.refs[2]!==i||l.refs[3]!==f}function D6(l,r){return l.refs.length!==r.length||l.refs.some((o,i)=>o!==r[i])}function xg(l,r){if(l.refs=r,r.every(o=>o==null)){l.callback=null;return}l.callback=o=>{if(l.cleanup&&(l.cleanup(),l.cleanup=null),o!=null){const i=Array(r.length).fill(null);for(let f=0;f<r.length;f+=1){const d=r[f];if(d!=null)switch(typeof d){case"function":{const m=d(o);typeof m=="function"&&(i[f]=m);break}case"object":{d.current=o;break}}}l.cleanup=()=>{for(let f=0;f<r.length;f+=1){const d=r[f];if(d!=null)switch(typeof d){case"function":{const m=i[f];typeof m=="function"?m():d(null);break}case"object":{d.current=null;break}}}}}}}const L6=parseInt(c.version,10);function Zd(l){return L6>=l}function yh(l){if(!c.isValidElement(l))return null;const r=l,o=r.props;return(Zd(19)?o?.ref:r.ref)??null}function V6(l,r){const o={};for(const i in l){const f=l[i];if(r?.hasOwnProperty(i)){const d=r[i](f);d!=null&&Object.assign(o,d);continue}f===!0?o[`data-${i.toLowerCase()}`]="":f&&(o[`data-${i.toLowerCase()}`]=f.toString())}return o}function _6(l,r){return typeof l=="function"?l(r):l}function U6(l,r){return typeof l=="function"?l(r):l}function jn(){}const Fr=Object.freeze([]),Bt=Object.freeze({}),k6=500,Z6=500,B6={style:{transition:"none"}},Sg="data-base-ui-click-trigger",Eg={fallbackAxisSide:"none"},q6={fallbackAxisSide:"end"},Y6={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function st(l,r,o={}){const i=r.render,f=G6(r,o);if(o.enabled===!1)return null;const d=o.state??Bt;return I6(l,i,f,d)}function G6(l,r={}){const{className:o,style:i,render:f}=l,{state:d=Bt,ref:m,props:h,stateAttributesMapping:v,enabled:p=!0}=r,x=p?_6(o,d):void 0,b=p?U6(i,d):void 0,S=p?V6(d,v):Bt,R=p?sd(S,Array.isArray(h)?T6(h):h)??Bt:Bt;return typeof document<"u"&&(p?Array.isArray(m)?R.ref=j6([R.ref,yh(f),...m]):R.ref=ya(R.ref,yh(f),m):ya(null,null)),p?(x!==void 0&&(R.className=yg(R.className,x)),b!==void 0&&(R.style=sd(R.style,b)),R):Bt}function I6(l,r,o,i){if(r){if(typeof r=="function")return r(o,i);const f=va(o,r.props);return f.ref=o.ref,c.cloneElement(r,f)}if(l&&typeof l=="string")return X6(l,o);throw new Error(Ft(8))}function X6(l,r){return l==="button"?c.createElement("button",{type:"button",...r,key:r.key}):l==="img"?c.createElement("img",{alt:"",...r,key:r.key}):c.createElement(l,r)}const F6=c.forwardRef(function(r,o){const{render:i,className:f,disabled:d=!1,focusableWhenDisabled:m=!1,nativeButton:h=!0,...v}=r,p=!!d,{getButtonProps:x,buttonRef:b}=Ja({disabled:p,focusableWhenDisabled:m,native:h}),S=c.useMemo(()=>({disabled:p}),[p]);return st("button",r,{state:S,ref:[o,b],props:[v,x]})});function Rg(l){var r,o,i="";if(typeof l=="string"||typeof l=="number")i+=l;else if(typeof l=="object")if(Array.isArray(l)){var f=l.length;for(r=0;r<f;r++)l[r]&&(o=Rg(l[r]))&&(i&&(i+=" "),i+=o)}else for(o in l)l[o]&&(i&&(i+=" "),i+=o);return i}function Tg(){for(var l,r,o=0,i="",f=arguments.length;o<f;o++)(l=arguments[o])&&(r=Rg(l))&&(i&&(i+=" "),i+=r);return i}const bh=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,xh=Tg,Bd=(l,r)=>o=>{var i;if(r?.variants==null)return xh(l,o?.class,o?.className);const{variants:f,defaultVariants:d}=r,m=Object.keys(f).map(p=>{const x=o?.[p],b=d?.[p];if(x===null)return null;const S=bh(x)||bh(b);return f[p][S]}),h=o&&Object.entries(o).reduce((p,x)=>{let[b,S]=x;return S===void 0||(p[b]=S),p},{}),v=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:b,className:S,...R}=x;return Object.entries(R).every(A=>{let[M,w]=A;return Array.isArray(w)?w.includes({...d,...h}[M]):{...d,...h}[M]===w})?[...p,b,S]:p},[]);return xh(l,m,v,o?.class,o?.className)},Q6=(l,r)=>{const o=new Array(l.length+r.length);for(let i=0;i<l.length;i++)o[i]=l[i];for(let i=0;i<r.length;i++)o[l.length+i]=r[i];return o},K6=(l,r)=>({classGroupId:l,validator:r}),Ag=(l=new Map,r=null,o)=>({nextPart:l,validators:r,classGroupId:o}),Js="-",Sh=[],P6="arbitrary..",J6=l=>{const r=W6(l),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=l;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return $6(m);const h=m.split(Js),v=h[0]===""&&h.length>1?1:0;return Mg(h,v,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const v=i[m],p=o[m];return v?p?Q6(p,v):v:p||Sh}return o[m]||Sh}}},Mg=(l,r,o)=>{if(l.length-r===0)return o.classGroupId;const f=l[r],d=o.nextPart.get(f);if(d){const p=Mg(l,r+1,d);if(p)return p}const m=o.validators;if(m===null)return;const h=r===0?l.join(Js):l.slice(r).join(Js),v=m.length;for(let p=0;p<v;p++){const x=m[p];if(x.validator(h))return x.classGroupId}},$6=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=l.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?P6+i:void 0})(),W6=l=>{const{theme:r,classGroups:o}=l;return ey(o,r)},ey=(l,r)=>{const o=Ag();for(const i in l){const f=l[i];qd(f,o,i,r)}return o},qd=(l,r,o,i)=>{const f=l.length;for(let d=0;d<f;d++){const m=l[d];ty(m,r,o,i)}},ty=(l,r,o,i)=>{if(typeof l=="string"){ny(l,r,o);return}if(typeof l=="function"){ly(l,r,o,i);return}ay(l,r,o,i)},ny=(l,r,o)=>{const i=l===""?r:wg(r,l);i.classGroupId=o},ly=(l,r,o,i)=>{if(ry(l)){qd(l(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(K6(o,l))},ay=(l,r,o,i)=>{const f=Object.entries(l),d=f.length;for(let m=0;m<d;m++){const[h,v]=f[m];qd(v,wg(r,h),o,i)}},wg=(l,r)=>{let o=l;const i=r.split(Js),f=i.length;for(let d=0;d<f;d++){const m=i[d];let h=o.nextPart.get(m);h||(h=Ag(),o.nextPart.set(m,h)),o=h}return o},ry=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,oy=l=>{if(l<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const f=(d,m)=>{o[d]=m,r++,r>l&&(r=0,i=o,o=Object.create(null))};return{get(d){let m=o[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return f(d,m),m},set(d,m){d in o?o[d]=m:f(d,m)}}},fd="!",Eh=":",iy=[],Rh=(l,r,o,i,f)=>({modifiers:l,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:f}),sy=l=>{const{prefix:r,experimentalParseClassName:o}=l;let i=f=>{const d=[];let m=0,h=0,v=0,p;const x=f.length;for(let M=0;M<x;M++){const w=f[M];if(m===0&&h===0){if(w===Eh){d.push(f.slice(v,M)),v=M+1;continue}if(w==="/"){p=M;continue}}w==="["?m++:w==="]"?m--:w==="("?h++:w===")"&&h--}const b=d.length===0?f:f.slice(v);let S=b,R=!1;b.endsWith(fd)?(S=b.slice(0,-1),R=!0):b.startsWith(fd)&&(S=b.slice(1),R=!0);const A=p&&p>v?p-v:void 0;return Rh(d,R,S,A)};if(r){const f=r+Eh,d=i;i=m=>m.startsWith(f)?d(m.slice(f.length)):Rh(iy,!1,m,void 0,!0)}if(o){const f=i;i=d=>o({className:d,parseClassName:f})}return i},uy=l=>{const r=new Map;return l.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let f=[];for(let d=0;d<o.length;d++){const m=o[d],h=m[0]==="[",v=r.has(m);h||v?(f.length>0&&(f.sort(),i.push(...f),f=[]),i.push(m)):f.push(m)}return f.length>0&&(f.sort(),i.push(...f)),i}},cy=l=>({cache:oy(l.cacheSize),parseClassName:sy(l),sortModifiers:uy(l),...J6(l)}),fy=/\s+/,dy=(l,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:f,sortModifiers:d}=r,m=[],h=l.trim().split(fy);let v="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:b,modifiers:S,hasImportantModifier:R,baseClassName:A,maybePostfixModifierPosition:M}=o(x);if(b){v=x+(v.length>0?" "+v:v);continue}let w=!!M,O=i(w?A.substring(0,M):A);if(!O){if(!w){v=x+(v.length>0?" "+v:v);continue}if(O=i(A),!O){v=x+(v.length>0?" "+v:v);continue}w=!1}const N=S.length===0?"":S.length===1?S[0]:d(S).join(":"),z=R?N+fd:N,D=z+O;if(m.indexOf(D)>-1)continue;m.push(D);const T=f(O,w);for(let B=0;B<T.length;++B){const V=T[B];m.push(z+V)}v=x+(v.length>0?" "+v:v)}return v},my=(...l)=>{let r=0,o,i,f="";for(;r<l.length;)(o=l[r++])&&(i=Cg(o))&&(f&&(f+=" "),f+=i);return f},Cg=l=>{if(typeof l=="string")return l;let r,o="";for(let i=0;i<l.length;i++)l[i]&&(r=Cg(l[i]))&&(o&&(o+=" "),o+=r);return o},py=(l,...r)=>{let o,i,f,d;const m=v=>{const p=r.reduce((x,b)=>b(x),l());return o=cy(p),i=o.cache.get,f=o.cache.set,d=h,h(v)},h=v=>{const p=i(v);if(p)return p;const x=dy(v,o);return f(v,x),x};return d=m,(...v)=>d(my(...v))},hy=[],Xt=l=>{const r=o=>o[l]||hy;return r.isThemeGetter=!0,r},Og=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ng=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gy=/^\d+\/\d+$/,vy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yy=/\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$/,by=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kr=l=>gy.test(l),Fe=l=>!!l&&!Number.isNaN(Number(l)),fa=l=>!!l&&Number.isInteger(Number(l)),Uf=l=>l.endsWith("%")&&Fe(l.slice(0,-1)),_l=l=>vy.test(l),Ey=()=>!0,Ry=l=>yy.test(l)&&!by.test(l),zg=()=>!1,Ty=l=>xy.test(l),Ay=l=>Sy.test(l),My=l=>!Ne(l)&&!ze(l),wy=l=>to(l,Dg,zg),Ne=l=>Og.test(l),qa=l=>to(l,Lg,Ry),kf=l=>to(l,jy,Fe),Th=l=>to(l,jg,zg),Cy=l=>to(l,Hg,Ay),Ds=l=>to(l,Vg,Ty),ze=l=>Ng.test(l),ti=l=>no(l,Lg),Oy=l=>no(l,Hy),Ah=l=>no(l,jg),Ny=l=>no(l,Dg),zy=l=>no(l,Hg),Ls=l=>no(l,Vg,!0),to=(l,r,o)=>{const i=Og.exec(l);return i?i[1]?r(i[1]):o(i[2]):!1},no=(l,r,o=!1)=>{const i=Ng.exec(l);return i?i[1]?r(i[1]):o:!1},jg=l=>l==="position"||l==="percentage",Hg=l=>l==="image"||l==="url",Dg=l=>l==="length"||l==="size"||l==="bg-size",Lg=l=>l==="length",jy=l=>l==="number",Hy=l=>l==="family-name",Vg=l=>l==="shadow",Dy=()=>{const l=Xt("color"),r=Xt("font"),o=Xt("text"),i=Xt("font-weight"),f=Xt("tracking"),d=Xt("leading"),m=Xt("breakpoint"),h=Xt("container"),v=Xt("spacing"),p=Xt("radius"),x=Xt("shadow"),b=Xt("inset-shadow"),S=Xt("text-shadow"),R=Xt("drop-shadow"),A=Xt("blur"),M=Xt("perspective"),w=Xt("aspect"),O=Xt("ease"),N=Xt("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...D(),ze,Ne],B=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],_=()=>[ze,Ne,v],ie=()=>[kr,"full","auto",..._()],se=()=>[fa,"none","subgrid",ze,Ne],oe=()=>["auto",{span:["full",fa,ze,Ne]},fa,ze,Ne],ae=()=>[fa,"auto",ze,Ne],I=()=>["auto","min","max","fr",ze,Ne],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",..._()],Z=()=>[kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],H=()=>[l,ze,Ne],K=()=>[...D(),Ah,Th,{position:[ze,Ne]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",Ny,wy,{size:[ze,Ne]}],q=()=>[Uf,ti,qa],k=()=>["","none","full",p,ze,Ne],ee=()=>["",Fe,ti,qa],me=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Fe,Uf,Ah,Th],de=()=>["","none",A,ze,Ne],he=()=>["none",Fe,ze,Ne],Te=()=>["none",Fe,ze,Ne],le=()=>[Fe,ze,Ne],Se=()=>[kr,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_l],breakpoint:[_l],color:[Ey],container:[_l],"drop-shadow":[_l],ease:["in","out","in-out"],font:[My],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_l],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_l],shadow:[_l],spacing:["px",Fe],text:[_l],"text-shadow":[_l],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kr,Ne,ze,w]}],container:["container"],columns:[{columns:[Fe,Ne,ze,h]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"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:T()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{start:ie()}],end:[{end:ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[fa,"auto",ze,Ne]}],basis:[{basis:[kr,"full","auto",h,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,kr,"auto","initial","none",Ne]}],grow:[{grow:["",Fe,ze,Ne]}],shrink:[{shrink:["",Fe,ze,Ne]}],order:[{order:[fa,"first","last","none",ze,Ne]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[h,"screen",...Z()]}],"min-w":[{"min-w":[h,"screen","none",...Z()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",o,ti,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ze,kf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uf,Ne]}],"font-family":[{font:[Oy,Ne,r]}],"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:[f,ze,Ne]}],"line-clamp":[{"line-clamp":[Fe,"none",ze,kf]}],leading:[{leading:[d,..._()]}],"list-image":[{"list-image":["none",ze,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ze,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",ze,qa]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[Fe,"auto",ze,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ze,Ne]}],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",ze,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fa,ze,Ne],radial:["",ze,Ne],conic:[fa,ze,Ne]},zy,Cy]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,ze,Ne]}],"outline-w":[{outline:["",Fe,ti,qa]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",x,Ls,Ds]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",b,Ls,Ds]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[Fe,qa]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",S,Ls,Ds]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[Fe,ze,Ne]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"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":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[ze,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ze,Ne]}],filter:[{filter:["","none",ze,Ne]}],blur:[{blur:de()}],brightness:[{brightness:[Fe,ze,Ne]}],contrast:[{contrast:[Fe,ze,Ne]}],"drop-shadow":[{"drop-shadow":["","none",R,Ls,Ds]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",Fe,ze,Ne]}],"hue-rotate":[{"hue-rotate":[Fe,ze,Ne]}],invert:[{invert:["",Fe,ze,Ne]}],saturate:[{saturate:[Fe,ze,Ne]}],sepia:[{sepia:["",Fe,ze,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ze,Ne]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,ze,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,ze,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,ze,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,ze,Ne]}],"backdrop-invert":[{"backdrop-invert":["",Fe,ze,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,ze,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,ze,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,ze,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ze,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",ze,Ne]}],ease:[{ease:["linear","initial",O,ze,Ne]}],delay:[{delay:[Fe,ze,Ne]}],animate:[{animate:["none",N,ze,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,ze,Ne]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[ze,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"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",ze,Ne]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",ze,Ne]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[Fe,ti,qa,kf]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ly=py(Dy);function nt(...l){return Ly(Tg(l))}const Vy=Bd("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-none border border-transparent bg-clip-padding text-xs font-medium focus-visible:ring-1 aria-invalid:ring-1 [&_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 [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 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-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-none [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-none","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ln({className:l,variant:r="default",size:o="default",...i}){return y.jsx(F6,{"data-slot":"button",className:nt(Vy({variant:r,size:o,className:l})),...i})}const _g=c.createContext(void 0);function Ug(l){const r=c.useContext(_g);if(r===void 0&&!l)throw new Error(Ft(33));return r}const kg=c.createContext(void 0);function $a(l){const r=c.useContext(kg);if(r===void 0&&!l)throw new Error(Ft(36));return r}let $s=(function(l){return l.startingStyle="data-starting-style",l.endingStyle="data-ending-style",l})({});const _y={[$s.startingStyle]:""},Uy={[$s.endingStyle]:""},lo={transitionStatus(l){return l==="starting"?_y:l==="ending"?Uy:null}};let Ga=(function(l){return l.open="data-open",l.closed="data-closed",l[l.startingStyle=$s.startingStyle]="startingStyle",l[l.endingStyle=$s.endingStyle]="endingStyle",l.anchorHidden="data-anchor-hidden",l})({}),dd=(function(l){return l.popupOpen="data-popup-open",l.pressed="data-pressed",l})({});const ky={[dd.popupOpen]:""},Zy={[dd.popupOpen]:"",[dd.pressed]:""},By={[Ga.open]:""},qy={[Ga.closed]:""},Yy={[Ga.anchorHidden]:""},Zg={open(l){return l?ky:null}},md={open(l){return l?Zy:null}},ao={open(l){return l?By:qy},anchorHidden(l){return l?Yy:null}},Gy=c.createContext(void 0);function hu(l=!0){const r=c.useContext(Gy);if(r===void 0&&!l)throw new Error(Ft(25));return r}const gu="none",Ia="trigger-press",Hn="trigger-hover",Ws="trigger-focus",Yd="outside-press",qr="item-press",Iy="close-press",Fa="focus-out",Gd="escape-key",Fs="list-navigation",Bg="cancel-open",ai="sibling-open",qg="imperative-action",Xy="window-resize";function eu({controlled:l,default:r,name:o,state:i="value"}){const{current:f}=c.useRef(l!==void 0),[d,m]=c.useState(r),h=f?l:d,v=c.useCallback(p=>{f||m(p)},[]);return[h,v]}const Fy={type:"regular-item"};function Qy(l){const{closeOnClick:r,disabled:o=!1,highlighted:i,id:f,store:d,nativeButton:m,itemMetadata:h,nodeId:v}=l,p=c.useRef(null),x=hu(!0),b=x!==void 0,{events:S}=d.useState("floatingTreeRoot"),{getButtonProps:R,buttonRef:A}=Ja({disabled:o,focusableWhenDisabled:!0,native:m}),M=c.useCallback(O=>va({id:f,role:"menuitem",tabIndex:i?0:-1,onMouseMove(N){v&&S.emit("itemhover",{nodeId:v,target:N.currentTarget})},onMouseEnter(){h.type==="submenu-trigger"&&h.setActive()},onKeyUp(N){N.key===" "&&d.context.typingRef.current&&N.preventBaseUIHandler()},onClick(N){r&&S.emit("close",{domEvent:N,reason:qr})},onMouseUp(N){if(x){const z=x.initialCursorPointRef.current;if(x.initialCursorPointRef.current=null,b&&z&&Math.abs(N.clientX-z.x)<=1&&Math.abs(N.clientY-z.y)<=1)return}p.current&&d.context.allowMouseUpTriggerRef.current&&(!b||N.button===2)&&h.type==="regular-item"&&p.current.click()}},O,R),[f,i,R,r,S,d,b,x,h,v]),w=ya(p,A);return c.useMemo(()=>({getItemProps:M,itemRef:w}),[M,w])}const Yg=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Ky(){return c.useContext(Yg)}let Gg=(function(l){return l[l.None=0]="None",l[l.GuessFromOrder=1]="GuessFromOrder",l})({});function Id(l={}){const{label:r,metadata:o,textRef:i,indexGuessBehavior:f,index:d}=l,{register:m,unregister:h,subscribeMapChange:v,elementsRef:p,labelsRef:x,nextIndexRef:b}=Ky(),S=c.useRef(-1),[R,A]=c.useState(d??(f===Gg.GuessFromOrder?()=>{if(S.current===-1){const O=b.current;b.current+=1,S.current=O}return S.current}:-1)),M=c.useRef(null),w=c.useCallback(O=>{if(M.current=O,R!==-1&&O!==null&&(p.current[R]=O,x)){const N=r!==void 0;x.current[R]=N?r:i?.current?.textContent??O.textContent}},[R,p,x,r,i]);return Oe(()=>{if(d!=null)return;const O=M.current;if(O)return m(O,o),()=>{h(O)}},[d,m,h,o]),Oe(()=>{if(d==null)return v(O=>{const N=M.current?O.get(M.current)?.index:null;N!=null&&A(N)})},[d,v,A]),c.useMemo(()=>({ref:w,index:R}),[R,w])}const Py={...sg};let Mh=0;function Jy(l,r="mui"){const[o,i]=c.useState(l),f=l||o;return c.useEffect(()=>{o==null&&(Mh+=1,i(`${r}-${Mh}`))},[o,r]),f}const wh=Py.useId;function Wa(l,r){if(wh!==void 0){const o=wh();return l??(r?`${r}-${o}`:o)}return Jy(l,r)}function er(l){return Wa(l,"base-ui")}let Ch=(function(l){return l.checked="data-checked",l.unchecked="data-unchecked",l.disabled="data-disabled",l.highlighted="data-highlighted",l})({});const Ig={checked(l){return l?{[Ch.checked]:""}:{[Ch.unchecked]:""}},...lo};function qe(l,r,o,i){let f=!1,d=!1;const m=Bt;return{reason:l,event:r??new Event("base-ui"),cancel(){f=!0},allowPropagation(){d=!0},get isCanceled(){return f},get isPropagationAllowed(){return d},trigger:o,...m}}const $y=[];function Xg(l){c.useEffect(l,$y)}const Vs=null;class Wy{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=r=>{this.isScheduled=!1;const o=this.callbacks,i=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,i>0)for(let f=0;f<o.length;f+=1)o[f]?.(r)};request(r){const o=this.nextId;return this.nextId+=1,this.callbacks.push(r),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),o}cancel(r){const o=r-this.startId;o<0||o>=this.callbacks.length||(this.callbacks[o]=null,this.callbacksCount-=1)}}const _s=new Wy;class cl{static create(){return new cl}static request(r){return _s.request(r)}static cancel(r){return _s.cancel(r)}currentId=Vs;request(r){this.cancel(),this.currentId=_s.request(()=>{this.currentId=Vs,r()})}cancel=()=>{this.currentId!==Vs&&(_s.cancel(this.currentId),this.currentId=Vs)};disposeEffect=()=>this.cancel}function hi(){const l=Rn(cl.create).current;return Xg(l.disposeEffect),l}function gi(l,r=!1,o=!1){const[i,f]=c.useState(l&&r?"idle":void 0),[d,m]=c.useState(l);return l&&!d&&(m(!0),f("starting")),!l&&d&&i!=="ending"&&!o&&f("ending"),!l&&!d&&i==="ending"&&f(void 0),Oe(()=>{if(!l&&d&&i!=="ending"&&o){const h=cl.request(()=>{f("ending")});return()=>{cl.cancel(h)}}},[l,d,i,o]),Oe(()=>{if(!l||r)return;const h=cl.request(()=>{f(void 0)});return()=>{cl.cancel(h)}},[r,l]),Oe(()=>{if(!l||!r)return;l&&d&&i!=="idle"&&f("starting");const h=cl.request(()=>{f("idle")});return()=>{cl.cancel(h)}},[r,l,d,f,i]),c.useMemo(()=>({mounted:d,setMounted:m,transitionStatus:i}),[d,i])}function Zt(l){const r=Rn(eb,l).current;return r.next=l,Oe(r.effect),r}function eb(l){const r={current:l,next:l,effect:()=>{r.current=r.next}};return r}var al=ug();function Ya(l){return l==null?l:"current"in l?l.current:l}function tb(l,r=!1,o=!0){const i=hi();return we((f,d=null)=>{i.cancel();const m=Ya(l);m!=null&&(typeof m.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?f():i.request(()=>{function h(){m&&Promise.all(m.getAnimations().map(v=>v.finished)).then(()=>{d!=null&&d.aborted||al.flushSync(f)}).catch(()=>{if(o){if(d!=null&&d.aborted)return;al.flushSync(f)}else m.getAnimations().length>0&&m.getAnimations().some(v=>v.pending||v.playState!=="finished")&&h()})}r?i.request(h):h()}))})}function xa(l){const{enabled:r=!0,open:o,ref:i,onComplete:f}=l,d=Zt(o),m=we(f),h=tb(i,o);c.useEffect(()=>{r&&h(()=>{o===d.current&&m()})},[r,o,m,h,d])}const ni=0;class Qa{static create(){return new Qa}currentId=ni;start(r,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ni,o()},r)}isStarted(){return this.currentId!==ni}clear=()=>{this.currentId!==ni&&(clearTimeout(this.currentId),this.currentId=ni)};disposeEffect=()=>this.clear}function qt(){const l=Rn(Qa.create).current;return Xg(l.disposeEffect),l}const ro=typeof navigator<"u",Zf=ab(),Fg=ob(),Qg=rb(),Kg=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),nb=Zf.platform==="MacIntel"&&Zf.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Zf.platform),Pg=ro&&/apple/i.test(navigator.vendor),pd=ro&&/android/i.test(Fg)||/android/i.test(Qg),lb=ro&&Fg.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,Jg=Qg.includes("jsdom/");function ab(){if(!ro)return{platform:"",maxTouchPoints:-1};const l=navigator.userAgentData;return l?.platform?{platform:l.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function rb(){if(!ro)return"";const l=navigator.userAgentData;return l&&Array.isArray(l.brands)?l.brands.map(({brand:r,version:o})=>`${r}/${o}`).join(" "):navigator.userAgent}function ob(){if(!ro)return"";const l=navigator.userAgentData;return l?.platform?l.platform:navigator.platform??""}const hd="data-base-ui-focusable",$g="active",Wg="selected",e2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",pa="ArrowLeft",ha="ArrowRight",Xd="ArrowUp",vi="ArrowDown";function fl(l){let r=l.activeElement;for(;r?.shadowRoot?.activeElement!=null;)r=r.shadowRoot.activeElement;return r}function Pe(l,r){if(!l||!r)return!1;const o=r.getRootNode?.();if(l.contains(r))return!0;if(o&&od(o)){let i=r;for(;i;){if(l===i)return!0;i=i.parentNode||i.host}}return!1}function fn(l){return"composedPath"in l?l.composedPath()[0]:l.target}function Wn(l,r){if(r==null)return!1;if("composedPath"in l)return l.composedPath().includes(r);const o=l;return o.target!=null&&r.contains(o.target)}function ib(l){return l.matches("html,body")}function Lt(l){return l?.ownerDocument||document}function Fd(l){return Nt(l)&&l.matches(e2)}function gd(l){return l?l.getAttribute("role")==="combobox"&&Fd(l):!1}function sb(l){if(!l||Jg)return!0;try{return l.matches(":focus-visible")}catch{return!0}}function ci(l){return l?l.hasAttribute(hd)?l:l.querySelector(`[${hd}]`)||l:null}function Xa(l,r,o=!0){return l.filter(f=>f.parentId===r&&(!o||f.context?.open)).flatMap(f=>[f,...Xa(l,f.id,o)])}function Oh(l,r){let o=[],i=l.find(f=>f.id===r)?.parentId;for(;i;){const f=l.find(d=>d.id===i);i=f?.parentId,f&&(o=o.concat(f))}return o}function sn(l){l.preventDefault(),l.stopPropagation()}function ub(l){return"nativeEvent"in l}function t2(l){return l.mozInputSource===0&&l.isTrusted?!0:pd&&l.pointerType?l.type==="click"&&l.buttons===1:l.detail===0&&!l.pointerType}function n2(l){return Jg?!1:!pd&&l.width===0&&l.height===0||pd&&l.width===1&&l.height===1&&l.pressure===0&&l.detail===0&&l.pointerType==="mouse"||l.width<1&&l.height<1&&l.pressure===0&&l.detail===0&&l.pointerType==="touch"}function Qr(l,r){const o=["mouse","pen"];return r||o.push("",void 0),o.includes(l)}function l2(l){const r=l.type;return r==="click"||r==="mousedown"||r==="keydown"||r==="keyup"}const cb=["top","right","bottom","left"],Kr=Math.min,zn=Math.max,tu=Math.round,Br=Math.floor,ml=l=>({x:l,y:l}),fb={left:"right",right:"left",bottom:"top",top:"bottom"},db={start:"end",end:"start"};function vd(l,r,o){return zn(l,Kr(r,o))}function kl(l,r){return typeof l=="function"?l(r):l}function Dn(l){return l.split("-")[0]}function Sa(l){return l.split("-")[1]}function Qd(l){return l==="x"?"y":"x"}function Kd(l){return l==="y"?"height":"width"}const mb=new Set(["top","bottom"]);function Qn(l){return mb.has(Dn(l))?"y":"x"}function Pd(l){return Qd(Qn(l))}function pb(l,r,o){o===void 0&&(o=!1);const i=Sa(l),f=Pd(l),d=Kd(f);let m=f==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(m=nu(m)),[m,nu(m)]}function hb(l){const r=nu(l);return[yd(l),r,yd(r)]}function yd(l){return l.replace(/start|end/g,r=>db[r])}const Nh=["left","right"],zh=["right","left"],gb=["top","bottom"],vb=["bottom","top"];function yb(l,r,o){switch(l){case"top":case"bottom":return o?r?zh:Nh:r?Nh:zh;case"left":case"right":return r?gb:vb;default:return[]}}function bb(l,r,o,i){const f=Sa(l);let d=yb(Dn(l),o==="start",i);return f&&(d=d.map(m=>m+"-"+f),r&&(d=d.concat(d.map(yd)))),d}function nu(l){return l.replace(/left|right|bottom|top/g,r=>fb[r])}function xb(l){return{top:0,right:0,bottom:0,left:0,...l}}function a2(l){return typeof l!="number"?xb(l):{top:l,right:l,bottom:l,left:l}}function lu(l){const{x:r,y:o,width:i,height:f}=l;return{width:i,height:f,top:o,left:r,right:r+i,bottom:o+f,x:r,y:o}}function Us(l,r,o){return Math.floor(l/r)!==o}function ii(l,r){return r<0||r>=l.current.length}function Bf(l,r){return on(l,{disabledIndices:r})}function jh(l,r){return on(l,{decrement:!0,startingIndex:l.current.length,disabledIndices:r})}function on(l,{startingIndex:r=-1,decrement:o=!1,disabledIndices:i,amount:f=1}={}){let d=r;do d+=o?-f:f;while(d>=0&&d<=l.current.length-1&&si(l,d,i));return d}function Sb(l,{event:r,orientation:o,loopFocus:i,rtl:f,cols:d,disabledIndices:m,minIndex:h,maxIndex:v,prevIndex:p,stopEvent:x=!1}){let b=p;const S=[],R={};let A=!1;{let O=null,N=-1;l.current.forEach((z,D)=>{if(z==null)return;const T=z.closest('[role="row"]');T&&(A=!0),(T!==O||N===-1)&&(O=T,N+=1,S[N]=[]),S[N].push(D),R[D]=N})}const M=A&&S.length>0&&S.some(O=>O.length!==d);function w(O){if(!M||p===-1)return;const N=R[p];if(N==null)return;const z=S[N].indexOf(p);let D=O==="up"?N-1:N+1;i&&(D<0?D=S.length-1:D>=S.length&&(D=0));const T=new Set;for(;D>=0&&D<S.length&&!T.has(D);){T.add(D);const B=S[D];if(B.length===0){D=O==="up"?D-1:D+1;continue}const V=Math.min(z,B.length-1);for(let _=V;_>=0;_-=1){const ie=B[_];if(!si(l,ie,m))return ie}D=O==="up"?D-1:D+1,i&&(D<0?D=S.length-1:D>=S.length&&(D=0))}}if(r.key===Xd){const O=w("up");if(O!==void 0)x&&sn(r),b=O;else{if(x&&sn(r),p===-1)b=v;else if(b=on(l,{startingIndex:b,amount:d,decrement:!0,disabledIndices:m}),i&&(p-d<h||b<0)){const N=p%d,z=v%d,D=v-(z-N);z===N?b=v:b=z>N?D:D-d}ii(l,b)&&(b=p)}}if(r.key===vi){const O=w("down");O!==void 0?(x&&sn(r),b=O):(x&&sn(r),p===-1?b=h:(b=on(l,{startingIndex:p,amount:d,disabledIndices:m}),i&&p+d>v&&(b=on(l,{startingIndex:p%d-d,amount:d,disabledIndices:m}))),ii(l,b)&&(b=p))}if(o==="both"){const O=Br(p/d);r.key===(f?pa:ha)&&(x&&sn(r),p%d!==d-1?(b=on(l,{startingIndex:p,disabledIndices:m}),i&&Us(b,d,O)&&(b=on(l,{startingIndex:p-p%d-1,disabledIndices:m}))):i&&(b=on(l,{startingIndex:p-p%d-1,disabledIndices:m})),Us(b,d,O)&&(b=p)),r.key===(f?ha:pa)&&(x&&sn(r),p%d!==0?(b=on(l,{startingIndex:p,decrement:!0,disabledIndices:m}),i&&Us(b,d,O)&&(b=on(l,{startingIndex:p+(d-p%d),decrement:!0,disabledIndices:m}))):i&&(b=on(l,{startingIndex:p+(d-p%d),decrement:!0,disabledIndices:m})),Us(b,d,O)&&(b=p));const N=Br(v/d)===O;ii(l,b)&&(i&&N?b=r.key===(f?ha:pa)?v:on(l,{startingIndex:p-p%d-1,disabledIndices:m}):b=p)}return b}function Eb(l,r,o){const i=[];let f=0;return l.forEach(({width:d,height:m},h)=>{let v=!1;for(o&&(f=0);!v;){const p=[];for(let x=0;x<d;x+=1)for(let b=0;b<m;b+=1)p.push(f+x+b*r);f%r+d<=r&&p.every(x=>i[x]==null)?(p.forEach(x=>{i[x]=h}),v=!0):f+=1}}),[...i]}function Rb(l,r,o,i,f){if(l===-1)return-1;const d=o.indexOf(l),m=r[l];switch(f){case"tl":return d;case"tr":return m?d+m.width-1:d;case"bl":return m?d+(m.height-1)*i:d;case"br":return o.lastIndexOf(l);default:return-1}}function Tb(l,r){return r.flatMap((o,i)=>l.includes(o)?[i]:[])}function si(l,r,o){if(typeof o=="function")return o(r);if(o)return o.includes(r);const i=l.current[r];return i?i.hasAttribute("disabled")||i.getAttribute("aria-disabled")==="true":!1}var Ab=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],au=Ab.join(","),r2=typeof Element>"u",Pr=r2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ru=!r2&&Element.prototype.getRootNode?function(l){var r;return l==null||(r=l.getRootNode)===null||r===void 0?void 0:r.call(l)}:function(l){return l?.ownerDocument},fi=function(r,o){var i;o===void 0&&(o=!0);var f=r==null||(i=r.getAttribute)===null||i===void 0?void 0:i.call(r,"inert"),d=f===""||f==="true",m=d||o&&r&&fi(r.parentNode);return m},Mb=function(r){var o,i=r==null||(o=r.getAttribute)===null||o===void 0?void 0:o.call(r,"contenteditable");return i===""||i==="true"},o2=function(r,o,i){if(fi(r))return[];var f=Array.prototype.slice.apply(r.querySelectorAll(au));return o&&Pr.call(r,au)&&f.unshift(r),f=f.filter(i),f},ou=function(r,o,i){for(var f=[],d=Array.from(r);d.length;){var m=d.shift();if(!fi(m,!1))if(m.tagName==="SLOT"){var h=m.assignedElements(),v=h.length?h:m.children,p=ou(v,!0,i);i.flatten?f.push.apply(f,p):f.push({scopeParent:m,candidates:p})}else{var x=Pr.call(m,au);x&&i.filter(m)&&(o||!r.includes(m))&&f.push(m);var b=m.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(m),S=!fi(b,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(m));if(b&&S){var R=ou(b===!0?m.children:b.children,!0,i);i.flatten?f.push.apply(f,R):f.push({scopeParent:m,candidates:R})}else d.unshift.apply(d,m.children)}}return f},i2=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},s2=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||Mb(r))&&!i2(r)?0:r.tabIndex},wb=function(r,o){var i=s2(r);return i<0&&o&&!i2(r)?0:i},Cb=function(r,o){return r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex},u2=function(r){return r.tagName==="INPUT"},Ob=function(r){return u2(r)&&r.type==="hidden"},Nb=function(r){var o=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(i){return i.tagName==="SUMMARY"});return o},zb=function(r,o){for(var i=0;i<r.length;i++)if(r[i].checked&&r[i].form===o)return r[i]},jb=function(r){if(!r.name)return!0;var o=r.form||ru(r),i=function(h){return o.querySelectorAll('input[type="radio"][name="'+h+'"]')},f;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")f=i(window.CSS.escape(r.name));else try{f=i(r.name)}catch(m){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",m.message),!1}var d=zb(f,r.form);return!d||d===r},Hb=function(r){return u2(r)&&r.type==="radio"},Db=function(r){return Hb(r)&&!jb(r)},Lb=function(r){var o,i=r&&ru(r),f=(o=i)===null||o===void 0?void 0:o.host,d=!1;if(i&&i!==r){var m,h,v;for(d=!!((m=f)!==null&&m!==void 0&&(h=m.ownerDocument)!==null&&h!==void 0&&h.contains(f)||r!=null&&(v=r.ownerDocument)!==null&&v!==void 0&&v.contains(r));!d&&f;){var p,x,b;i=ru(f),f=(p=i)===null||p===void 0?void 0:p.host,d=!!((x=f)!==null&&x!==void 0&&(b=x.ownerDocument)!==null&&b!==void 0&&b.contains(f))}}return d},Hh=function(r){var o=r.getBoundingClientRect(),i=o.width,f=o.height;return i===0&&f===0},Vb=function(r,o){var i=o.displayCheck,f=o.getShadowRoot;if(i==="full-native"&&"checkVisibility"in r){var d=r.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!d}if(getComputedStyle(r).visibility==="hidden")return!0;var m=Pr.call(r,"details>summary:first-of-type"),h=m?r.parentElement:r;if(Pr.call(h,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof f=="function"){for(var v=r;r;){var p=r.parentElement,x=ru(r);if(p&&!p.shadowRoot&&f(p)===!0)return Hh(r);r.assignedSlot?r=r.assignedSlot:!p&&x!==r.ownerDocument?r=x.host:r=p}r=v}if(Lb(r))return!r.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Hh(r);return!1},_b=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var o=r.parentElement;o;){if(o.tagName==="FIELDSET"&&o.disabled){for(var i=0;i<o.children.length;i++){var f=o.children.item(i);if(f.tagName==="LEGEND")return Pr.call(o,"fieldset[disabled] *")?!0:!f.contains(r)}return!0}o=o.parentElement}return!1},bd=function(r,o){return!(o.disabled||fi(o)||Ob(o)||Vb(o,r)||Nb(o)||_b(o))},xd=function(r,o){return!(Db(o)||s2(o)<0||!bd(r,o))},Ub=function(r){var o=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},c2=function(r){var o=[],i=[];return r.forEach(function(f,d){var m=!!f.scopeParent,h=m?f.scopeParent:f,v=wb(h,m),p=m?c2(f.candidates):h;v===0?m?o.push.apply(o,p):o.push(h):i.push({documentOrder:d,tabIndex:v,item:f,isScope:m,content:p})}),i.sort(Cb).reduce(function(f,d){return d.isScope?f.push.apply(f,d.content):f.push(d.content),f},[]).concat(o)},yi=function(r,o){o=o||{};var i;return o.getShadowRoot?i=ou([r],o.includeContainer,{filter:xd.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:Ub}):i=o2(r,o.includeContainer,xd.bind(null,o)),c2(i)},kb=function(r,o){o=o||{};var i;return o.getShadowRoot?i=ou([r],o.includeContainer,{filter:bd.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):i=o2(r,o.includeContainer,bd.bind(null,o)),i},f2=function(r,o){if(o=o||{},!r)throw new Error("No node provided");return Pr.call(r,au)===!1?!1:xd(o,r)};const oo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function d2(l,r){const o=yi(l,oo()),i=o.length;if(i===0)return;const f=fl(Lt(l)),d=o.indexOf(f),m=d===-1?r===1?0:i-1:d+r;return o[m]}function Jd(l){return d2(Lt(l).body,1)||l}function m2(l){return d2(Lt(l).body,-1)||l}function p2(l,r){if(!l)return null;const o=yi(Lt(l).body,oo()),i=o.length;if(i===0)return null;const f=o.indexOf(l);if(f===-1)return null;const d=(f+r+i)%i;return o[d]}function Zb(l){return p2(l,1)}function Bb(l){return p2(l,-1)}function Yr(l,r){const o=r||l.currentTarget,i=l.relatedTarget;return!i||!Pe(o,i)}function qb(l){yi(l,oo()).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function Dh(l){l.querySelectorAll("[data-tabindex]").forEach(o=>{const i=o.dataset.tabindex;delete o.dataset.tabindex,i?o.setAttribute("tabindex",i):o.removeAttribute("tabindex")})}function h2(){const l=new Map;return{emit(r,o){l.get(r)?.forEach(i=>i(o))},on(r,o){l.has(r)||l.set(r,new Set),l.get(r).add(o)},off(r,o){l.get(r)?.delete(o)}}}class $d{nodesRef={current:[]};events=h2();addNode(r){this.nodesRef.current.push(r)}removeNode(r){const o=this.nodesRef.current.findIndex(i=>i===r);o!==-1&&this.nodesRef.current.splice(o,1)}}const g2=c.createContext(null),v2=c.createContext(null),Zl=()=>c.useContext(g2)?.id||null,Ea=l=>{const r=c.useContext(v2);return l??r};function y2(l){const r=Wa(),o=Ea(l),i=Zl();return Oe(()=>{if(!r)return;const f={id:r,parentId:i};return o?.addNode(f),()=>{o?.removeNode(f)}},[o,r,i]),r}function Yb(l){const{children:r,id:o}=l,i=Zl();return y.jsx(g2.Provider,{value:c.useMemo(()=>({id:o,parentId:i}),[o,i]),children:r})}function Gb(l){const{children:r,externalTree:o}=l,i=Rn(()=>o??new $d).current;return y.jsx(v2.Provider,{value:i,children:r})}function Jr(l){return`data-base-ui-${l}`}function qf(l,r,o){if(o&&!Qr(o))return 0;if(typeof l=="number")return l;if(typeof l=="function"){const i=l();return typeof i=="number"?i:i?.[r]}return l?.[r]}const Wd={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};function rl(l){return l?.ownerDocument||document}const $r=c.forwardRef(function(r,o){const[i,f]=c.useState();Oe(()=>{Pg&&f("button")},[]);const d={tabIndex:0,role:i};return y.jsx("span",{...r,ref:o,style:Wd,"aria-hidden":i?void 0:!0,...d,"data-base-ui-focus-guard":""})});let Lh=0;function Qs(l,r={}){const{preventScroll:o=!1,cancelPrevious:i=!0,sync:f=!1}=r;i&&cancelAnimationFrame(Lh);const d=()=>l?.focus({preventScroll:o});f?d():Lh=requestAnimationFrame(d)}const Gr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vh(l){return l==="inert"?Gr.inert:l==="aria-hidden"?Gr["aria-hidden"]:Gr.none}let ks=new WeakSet,Zs={},Yf=0;const b2=l=>l&&(l.host||b2(l.parentNode)),Ib=(l,r)=>r.map(o=>{if(l.contains(o))return o;const i=b2(o);return l.contains(i)?i:null}).filter(o=>o!=null);function Xb(l,r,o,i){const f="data-base-ui-inert",d=i?"inert":o?"aria-hidden":null,m=Ib(r,l),h=new Set,v=new Set(m),p=[];Zs[f]||(Zs[f]=new WeakMap);const x=Zs[f];m.forEach(b),S(r),h.clear();function b(R){!R||h.has(R)||(h.add(R),R.parentNode&&b(R.parentNode))}function S(R){!R||v.has(R)||[].forEach.call(R.children,A=>{if(ba(A)!=="script")if(h.has(A))S(A);else{const M=d?A.getAttribute(d):null,w=M!==null&&M!=="false",O=Vh(d),N=(O.get(A)||0)+1,z=(x.get(A)||0)+1;O.set(A,N),x.set(A,z),p.push(A),N===1&&w&&ks.add(A),z===1&&A.setAttribute(f,""),!w&&d&&A.setAttribute(d,d==="inert"?"":"true")}})}return Yf+=1,()=>{p.forEach(R=>{const A=Vh(d),w=(A.get(R)||0)-1,O=(x.get(R)||0)-1;A.set(R,w),x.set(R,O),w||(!ks.has(R)&&d&&R.removeAttribute(d),ks.delete(R)),O||R.removeAttribute(f)}),Yf-=1,Yf||(Gr.inert=new WeakMap,Gr["aria-hidden"]=new WeakMap,Gr.none=new WeakMap,ks=new WeakSet,Zs={})}}function Fb(l,r=!1,o=!1){const i=Lt(l[0]).body;return Xb(l.concat(Array.from(i.querySelectorAll("[aria-live]"))),i,r,o)}const x2=c.createContext(null),S2=()=>c.useContext(x2),Qb=Jr("portal");function Kb(l={}){const{ref:r,container:o,componentProps:i=Bt,elementProps:f,elementState:d}=l,m=Wa(),v=S2()?.portalNode,[p,x]=c.useState(null),[b,S]=c.useState(null),R=c.useRef(null);Oe(()=>{if(o===null){R.current&&(R.current=null,S(null),x(null));return}if(m==null)return;const w=(o&&(_d(o)?o:o.current))??v??document.body;if(w==null){R.current&&(R.current=null,S(null),x(null));return}R.current!==w&&(R.current=w,S(null),x(w))},[o,v,m]);const A=st("div",i,{ref:[r,S],state:d,props:[{id:m,[Qb]:""},f]});return{portalNode:b,portalSubtree:p&&A?al.createPortal(A,p):null}}const e0=c.forwardRef(function(r,o){const{children:i,container:f,className:d,render:m,renderGuards:h,...v}=r,{portalNode:p,portalSubtree:x}=Kb({container:f,ref:o,componentProps:r,elementProps:v}),b=c.useRef(null),S=c.useRef(null),R=c.useRef(null),A=c.useRef(null),[M,w]=c.useState(null),O=M?.modal,N=M?.open,z=typeof h=="boolean"?h:!!M&&!M.modal&&M.open&&!!p;c.useEffect(()=>{if(!p||O)return;function T(B){p&&Yr(B)&&(B.type==="focusin"?Dh:qb)(p)}return p.addEventListener("focusin",T,!0),p.addEventListener("focusout",T,!0),()=>{p.removeEventListener("focusin",T,!0),p.removeEventListener("focusout",T,!0)}},[p,O]),c.useEffect(()=>{!p||N||Dh(p)},[N,p]);const D=c.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:S,beforeInsideRef:R,afterInsideRef:A,portalNode:p,setFocusManagerState:w}),[p]);return y.jsxs(c.Fragment,{children:[x,y.jsxs(x2.Provider,{value:D,children:[z&&p&&y.jsx($r,{"data-type":"outside",ref:b,onFocus:T=>{if(Yr(T,p))R.current?.focus();else{const B=M?M.domReference:null;m2(B)?.focus()}}}),z&&p&&y.jsx("span",{"aria-owns":p.id,style:Y6}),p&&al.createPortal(i,p),z&&p&&y.jsx($r,{"data-type":"outside",ref:S,onFocus:T=>{if(Yr(T,p))A.current?.focus();else{const B=M?M.domReference:null;Jd(B)?.focus(),M?.closeOnFocusOut&&M?.onOpenChange(!1,qe(Fa,T.nativeEvent))}}})]})]})});function Pb(l,r){const o=Yt(l.target);return l instanceof o.KeyboardEvent?"keyboard":l instanceof o.FocusEvent?r||"keyboard":"pointerType"in l?l.pointerType||"keyboard":"touches"in l?"touch":l instanceof o.MouseEvent?r||(l.detail===0?"keyboard":"mouse"):""}const _h=20;let da=[];function t0(){da=da.filter(l=>l.isConnected)}function Jb(l){t0(),l&&ba(l)!=="body"&&(da.push(l),da.length>_h&&(da=da.slice(-_h)))}function Gf(){return t0(),da[da.length-1]}function $b(l){if(!l)return null;const r=oo();return f2(l,r)?l:yi(l,r)[0]||l}function Wb(l){return!l||!l.isConnected?!1:typeof l.checkVisibility=="function"?l.checkVisibility():Ln(l).display!=="none"}function Uh(l,r){if(!r.current.includes("floating")&&!l.getAttribute("role")?.includes("dialog"))return;const o=oo(),f=kb(l,o).filter(m=>{const h=m.getAttribute("data-tabindex")||"";return f2(m,o)||m.hasAttribute("data-tabindex")&&!h.startsWith("-")}),d=l.getAttribute("tabindex");r.current.includes("floating")||f.length===0?d!=="0"&&l.setAttribute("tabindex","0"):(d!=="-1"||l.hasAttribute("data-tabindex")&&l.getAttribute("data-tabindex")!=="-1")&&(l.setAttribute("tabindex","-1"),l.setAttribute("data-tabindex","-1"))}function n0(l){const{context:r,children:o,disabled:i=!1,order:f=["content"],initialFocus:d=!0,returnFocus:m=!0,restoreFocus:h=!1,modal:v=!0,closeOnFocusOut:p=!0,openInteractionType:x="",getInsideElements:b=()=>[],nextFocusableElement:S,previousFocusableElement:R,beforeContentFocusGuardRef:A,externalTree:M}=l,w="rootStore"in r?r.rootStore:r,O=w.useState("open"),N=w.useState("domReferenceElement"),z=w.useState("floatingElement"),{events:D,dataRef:T}=w.context,B=we(()=>T.current.floatingContext?.nodeId),V=we(b),_=d===!1,ie=gd(N)&&_,se=Zt(f),oe=Zt(d),ae=Zt(m),I=Zt(x),$=Ea(M),Q=S2(),j=c.useRef(null),Z=c.useRef(null),H=c.useRef(!1),K=c.useRef(!1),ne=c.useRef(!1),C=c.useRef(-1),q=c.useRef(""),k=c.useRef(""),ee=qt(),me=qt(),te=hi(),J=Q!=null,de=ci(z),he=we((pe=de)=>pe?yi(pe,oo()):[]),Te=we(pe=>{const G=he(pe);return se.current.map(()=>G).filter(Boolean).flat()});c.useEffect(()=>{if(i||!v)return;function pe(ge){ge.key==="Tab"&&Pe(de,fl(Lt(de)))&&he().length===0&&!ie&&sn(ge)}const G=Lt(de);return G.addEventListener("keydown",pe),()=>{G.removeEventListener("keydown",pe)}},[i,N,de,v,se,ie,he,Te]),c.useEffect(()=>{if(i||!z)return;function pe(G){const ge=fn(G),Me=he().indexOf(ge);Me!==-1&&(C.current=Me)}return z.addEventListener("focusin",pe),()=>{z.removeEventListener("focusin",pe)}},[i,z,he]),c.useEffect(()=>{if(i||!O)return;const pe=Lt(de);function G(){ne.current=!1}function ge(Me){const fe=fn(Me),De=Pe(z,fe)||Pe(N,fe)||Pe(Q?.portalNode,fe);ne.current=!De,k.current=Me.pointerType||"keyboard"}function ve(){k.current="keyboard"}return pe.addEventListener("pointerdown",ge,!0),pe.addEventListener("pointerup",G,!0),pe.addEventListener("pointercancel",G,!0),pe.addEventListener("keydown",ve,!0),()=>{pe.removeEventListener("pointerdown",ge,!0),pe.removeEventListener("pointerup",G,!0),pe.removeEventListener("pointercancel",G,!0),pe.removeEventListener("keydown",ve,!0)}},[i,z,N,de,O,Q]),c.useEffect(()=>{if(i||!p)return;function pe(){K.current=!0,me.start(0,()=>{K.current=!1})}function G(fe){const De=fe.relatedTarget,be=fe.currentTarget,Re=fn(fe);queueMicrotask(()=>{const xe=B(),Ie=w.context.triggerElements,lt=!(Pe(N,De)||Pe(z,De)||Pe(De,z)||Pe(Q?.portalNode,De)||De!=null&&Ie.hasElement(De)||Ie.hasMatchingElement(Ye=>Pe(Ye,De))||De?.hasAttribute(Jr("focus-guard"))||$&&(Xa($.nodesRef.current,xe).find(Ye=>Pe(Ye.context?.elements.floating,De)||Pe(Ye.context?.elements.domReference,De))||Oh($.nodesRef.current,xe).find(Ye=>[Ye.context?.elements.floating,ci(Ye.context?.elements.floating)].includes(De)||Ye.context?.elements.domReference===De)));if(be===N&&de&&Uh(de,se),h&&be!==N&&!Wb(Re)&&fl(Lt(de))===Lt(de).body){if(Nt(de)&&(de.focus(),h==="popup")){te.request(()=>{de.focus()});return}const Ye=C.current,yt=he(),bt=yt[Ye]||yt[yt.length-1]||de;Nt(bt)&&bt.focus()}if(T.current.insideReactTree){T.current.insideReactTree=!1;return}(ie||!v)&&De&<&&!K.current&&(ie||De!==Gf())&&(H.current=!0,w.setOpen(!1,qe(Fa,fe)))})}function ge(){ne.current||(T.current.insideReactTree=!0,ee.start(0,()=>{T.current.insideReactTree=!1}))}const ve=Nt(N)?N:null,Me=[];if(!(!z&&!ve))return ve&&(ve.addEventListener("focusout",G),ve.addEventListener("pointerdown",pe),Me.push(()=>{ve.removeEventListener("focusout",G),ve.removeEventListener("pointerdown",pe)})),z&&(z.addEventListener("focusout",G),Q&&(z.addEventListener("focusout",ge,!0),Me.push(()=>{z.removeEventListener("focusout",ge,!0)})),Me.push(()=>{z.removeEventListener("focusout",G)})),()=>{Me.forEach(fe=>{fe()})}},[i,N,z,de,v,$,Q,w,p,h,he,ie,B,se,T,ee,me,te]);const le=c.useRef(null),Se=c.useRef(null),ye=ya(le,A,Q?.beforeInsideRef),_e=ya(Se,Q?.afterInsideRef);c.useEffect(()=>{if(i||!z||!O)return;const pe=Array.from(Q?.portalNode?.querySelectorAll(`[${Jr("portal")}]`)||[]),ge=($?Oh($.nodesRef.current,B()):[]).find(fe=>gd(fe.context?.elements.domReference||null))?.context?.elements.domReference,ve=[z,ge,...pe,...V(),j.current,Z.current,le.current,Se.current,Q?.beforeOutsideRef.current,Q?.afterOutsideRef.current,Ya(R),Ya(S),ie?N:null].filter(fe=>fe!=null),Me=Fb(ve,v||ie);return()=>{Me()}},[O,i,N,z,v,se,Q,ie,$,B,V,S,R]),Oe(()=>{if(!O||i||!Nt(de))return;const pe=Lt(de),G=fl(pe);queueMicrotask(()=>{const ge=Te(de),ve=oe.current,Me=typeof ve=="function"?ve(I.current||""):ve;if(Me===void 0||Me===!1)return;let fe;Me===!0||Me===null?fe=ge[0]||de:fe=Ya(Me),fe=fe||ge[0]||de,!Pe(de,G)&&Qs(fe,{preventScroll:fe===de})})},[i,O,de,_,Te,oe,I]),Oe(()=>{if(i||!de)return;const pe=Lt(de),G=fl(pe);Jb(G);function ge(fe){if(fe.open||(q.current=Pb(fe.nativeEvent,k.current)),fe.reason===Hn&&fe.nativeEvent.type==="mouseleave"&&(H.current=!0),fe.reason===Yd)if(fe.nested)H.current=!1;else if(t2(fe.nativeEvent)||n2(fe.nativeEvent))H.current=!1;else{let De=!1;document.createElement("div").focus({get preventScroll(){return De=!0,!1}}),De?H.current=!1:H.current=!0}}D.on("openchange",ge);const ve=pe.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,Wd),J&&N&&N.insertAdjacentElement("afterend",ve);function Me(){const fe=ae.current;let De=typeof fe=="function"?fe(q.current):fe;if(De===void 0||De===!1)return null;if(De===null&&(De=!0),typeof De=="boolean"){const Re=N||Gf();return Re&&Re.isConnected?Re:ve}const be=N||Gf()||ve;return Ya(De)||be}return()=>{D.off("openchange",ge);const fe=fl(pe),De=Pe(z,fe)||$&&Xa($.nodesRef.current,B(),!1).some(Re=>Pe(Re.context?.elements.floating,fe)),be=Me();queueMicrotask(()=>{const Re=$b(be),xe=typeof ae.current!="boolean";ae.current&&!H.current&&Nt(Re)&&(!(!xe&&Re!==fe&&fe!==pe.body)||De)&&Re.focus({preventScroll:!0}),ve.remove()})}},[i,z,de,ae,T,D,$,J,N,B]),c.useEffect(()=>{queueMicrotask(()=>{H.current=!1})},[i]),c.useEffect(()=>{if(i||!O)return;function pe(ge){fn(ge)?.closest(`[${Sg}]`)&&(K.current=!0)}const G=Lt(de);return G.addEventListener("pointerdown",pe,!0),()=>{G.removeEventListener("pointerdown",pe,!0)}},[i,O,de]),Oe(()=>{if(!i&&Q)return Q.setFocusManagerState({modal:v,closeOnFocusOut:p,open:O,onOpenChange:w.setOpen,domReference:N}),()=>{Q.setFocusManagerState(null)}},[i,Q,v,O,w,p,N]),Oe(()=>{if(!(i||!de))return Uh(de,se),()=>{queueMicrotask(t0)}},[i,de,se]);const Ae=!i&&(v?!ie:!0)&&(J||v);return y.jsxs(c.Fragment,{children:[Ae&&y.jsx($r,{"data-type":"inside",ref:ye,onFocus:pe=>{if(v){const G=Te();Qs(G[G.length-1])}else Q?.portalNode&&(H.current=!1,Yr(pe,Q.portalNode)?Jd(N)?.focus():Ya(R??Q.beforeOutsideRef)?.focus())}}),o,Ae&&y.jsx($r,{"data-type":"inside",ref:_e,onFocus:pe=>{v?Qs(Te()[0]):Q?.portalNode&&(p&&(H.current=!0),Yr(pe,Q.portalNode)?m2(N)?.focus():Ya(S??Q.afterOutsideRef)?.focus())}})]})}function l0(l,r={}){const o="rootStore"in l?l.rootStore:l,i=o.context.dataRef,{enabled:f=!0,event:d="click",toggle:m=!0,ignoreMouse:h=!1,stickIfOpen:v=!0,touchOpenDelay:p=0}=r,x=c.useRef(void 0),b=hi(),S=qt(),R=c.useMemo(()=>({onPointerDown(A){x.current=A.pointerType},onMouseDown(A){const M=x.current,w=A.nativeEvent,O=o.select("open");if(A.button!==0||d==="click"||Qr(M,!0)&&h)return;const N=i.current.openEvent,z=N?.type,D=o.select("domReferenceElement")!==A.currentTarget,T=O&&D||!(O&&m&&(!(N&&v)||z==="click"||z==="mousedown"));if(Fd(w.target)){const V=qe(Ia,w,w.target);T&&M==="touch"&&p>0?S.start(p,()=>{o.setOpen(!0,V)}):o.setOpen(T,V);return}const B=A.currentTarget;b.request(()=>{const V=qe(Ia,w,B);T&&M==="touch"&&p>0?S.start(p,()=>{o.setOpen(!0,V)}):o.setOpen(T,V)})},onClick(A){if(d==="mousedown-only")return;const M=x.current;if(d==="mousedown"&&M){x.current=void 0;return}if(Qr(M,!0)&&h)return;const w=o.select("open"),O=i.current.openEvent,N=o.select("domReferenceElement")!==A.currentTarget,z=w&&N||!(w&&m&&(!(O&&v)||l2(O))),D=qe(Ia,A.nativeEvent,A.currentTarget);z&&M==="touch"&&p>0?S.start(p,()=>{o.setOpen(!0,D)}):o.setOpen(z,D)},onKeyDown(){x.current=void 0}}),[i,d,h,o,v,m,b,S,p]);return c.useMemo(()=>f?{reference:R}:Bt,[f,R])}function kh(l,r,o){let{reference:i,floating:f}=l;const d=Qn(r),m=Pd(r),h=Kd(m),v=Dn(r),p=d==="y",x=i.x+i.width/2-f.width/2,b=i.y+i.height/2-f.height/2,S=i[h]/2-f[h]/2;let R;switch(v){case"top":R={x,y:i.y-f.height};break;case"bottom":R={x,y:i.y+i.height};break;case"right":R={x:i.x+i.width,y:b};break;case"left":R={x:i.x-f.width,y:b};break;default:R={x:i.x,y:i.y}}switch(Sa(r)){case"start":R[m]-=S*(o&&p?-1:1);break;case"end":R[m]+=S*(o&&p?-1:1);break}return R}const ex=async(l,r,o)=>{const{placement:i="bottom",strategy:f="absolute",middleware:d=[],platform:m}=o,h=d.filter(Boolean),v=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:l,floating:r,strategy:f}),{x,y:b}=kh(p,i,v),S=i,R={},A=0;for(let M=0;M<h.length;M++){const{name:w,fn:O}=h[M],{x:N,y:z,data:D,reset:T}=await O({x,y:b,initialPlacement:i,placement:S,strategy:f,middlewareData:R,rects:p,platform:m,elements:{reference:l,floating:r}});x=N??x,b=z??b,R={...R,[w]:{...R[w],...D}},T&&A<=50&&(A++,typeof T=="object"&&(T.placement&&(S=T.placement),T.rects&&(p=T.rects===!0?await m.getElementRects({reference:l,floating:r,strategy:f}):T.rects),{x,y:b}=kh(p,S,v)),M=-1)}return{x,y:b,placement:S,strategy:f,middlewareData:R}};async function di(l,r){var o;r===void 0&&(r={});const{x:i,y:f,platform:d,rects:m,elements:h,strategy:v}=l,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:b="floating",altBoundary:S=!1,padding:R=0}=kl(r,l),A=a2(R),w=h[S?b==="floating"?"reference":"floating":b],O=lu(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(w)))==null||o?w:w.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:v})),N=b==="floating"?{x:i,y:f,width:m.floating.width,height:m.floating.height}:m.reference,z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),D=await(d.isElement==null?void 0:d.isElement(z))?await(d.getScale==null?void 0:d.getScale(z))||{x:1,y:1}:{x:1,y:1},T=lu(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:N,offsetParent:z,strategy:v}):N);return{top:(O.top-T.top+A.top)/D.y,bottom:(T.bottom-O.bottom+A.bottom)/D.y,left:(O.left-T.left+A.left)/D.x,right:(T.right-O.right+A.right)/D.x}}const tx=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(r){var o,i;const{placement:f,middlewareData:d,rects:m,initialPlacement:h,platform:v,elements:p}=r,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:M=!0,...w}=kl(l,r);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const O=Dn(f),N=Qn(h),z=Dn(h)===h,D=await(v.isRTL==null?void 0:v.isRTL(p.floating)),T=S||(z||!M?[nu(h)]:hb(h)),B=A!=="none";!S&&B&&T.push(...bb(h,M,A,D));const V=[h,...T],_=await di(r,w),ie=[];let se=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ie.push(_[O]),b){const $=pb(f,m,D);ie.push(_[$[0]],_[$[1]])}if(se=[...se,{placement:f,overflows:ie}],!ie.every($=>$<=0)){var oe,ae;const $=(((oe=d.flip)==null?void 0:oe.index)||0)+1,Q=V[$];if(Q&&(!(b==="alignment"?N!==Qn(Q):!1)||se.every(H=>Qn(H.placement)===N?H.overflows[0]>0:!0)))return{data:{index:$,overflows:se},reset:{placement:Q}};let j=(ae=se.filter(Z=>Z.overflows[0]<=0).sort((Z,H)=>Z.overflows[1]-H.overflows[1])[0])==null?void 0:ae.placement;if(!j)switch(R){case"bestFit":{var I;const Z=(I=se.filter(H=>{if(B){const K=Qn(H.placement);return K===N||K==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(K=>K>0).reduce((K,ne)=>K+ne,0)]).sort((H,K)=>H[1]-K[1])[0])==null?void 0:I[0];Z&&(j=Z);break}case"initialPlacement":j=h;break}if(f!==j)return{reset:{placement:j}}}return{}}}};function Zh(l,r){return{top:l.top-r.height,right:l.right-r.width,bottom:l.bottom-r.height,left:l.left-r.width}}function Bh(l){return cb.some(r=>l[r]>=0)}const nx=function(l){return l===void 0&&(l={}),{name:"hide",options:l,async fn(r){const{rects:o}=r,{strategy:i="referenceHidden",...f}=kl(l,r);switch(i){case"referenceHidden":{const d=await di(r,{...f,elementContext:"reference"}),m=Zh(d,o.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Bh(m)}}}case"escaped":{const d=await di(r,{...f,altBoundary:!0}),m=Zh(d,o.floating);return{data:{escapedOffsets:m,escaped:Bh(m)}}}default:return{}}}}},E2=new Set(["left","top"]);async function lx(l,r){const{placement:o,platform:i,elements:f}=l,d=await(i.isRTL==null?void 0:i.isRTL(f.floating)),m=Dn(o),h=Sa(o),v=Qn(o)==="y",p=E2.has(m)?-1:1,x=d&&v?-1:1,b=kl(r,l);let{mainAxis:S,crossAxis:R,alignmentAxis:A}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof A=="number"&&(R=h==="end"?A*-1:A),v?{x:R*x,y:S*p}:{x:S*p,y:R*x}}const ax=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(r){var o,i;const{x:f,y:d,placement:m,middlewareData:h}=r,v=await lx(r,l);return m===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:f+v.x,y:d+v.y,data:{...v,placement:m}}}}},rx=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(r){const{x:o,y:i,placement:f}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:h={fn:w=>{let{x:O,y:N}=w;return{x:O,y:N}}},...v}=kl(l,r),p={x:o,y:i},x=await di(r,v),b=Qn(Dn(f)),S=Qd(b);let R=p[S],A=p[b];if(d){const w=S==="y"?"top":"left",O=S==="y"?"bottom":"right",N=R+x[w],z=R-x[O];R=vd(N,R,z)}if(m){const w=b==="y"?"top":"left",O=b==="y"?"bottom":"right",N=A+x[w],z=A-x[O];A=vd(N,A,z)}const M=h.fn({...r,[S]:R,[b]:A});return{...M,data:{x:M.x-o,y:M.y-i,enabled:{[S]:d,[b]:m}}}}}},ox=function(l){return l===void 0&&(l={}),{options:l,fn(r){const{x:o,y:i,placement:f,rects:d,middlewareData:m}=r,{offset:h=0,mainAxis:v=!0,crossAxis:p=!0}=kl(l,r),x={x:o,y:i},b=Qn(f),S=Qd(b);let R=x[S],A=x[b];const M=kl(h,r),w=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(v){const z=S==="y"?"height":"width",D=d.reference[S]-d.floating[z]+w.mainAxis,T=d.reference[S]+d.reference[z]-w.mainAxis;R<D?R=D:R>T&&(R=T)}if(p){var O,N;const z=S==="y"?"width":"height",D=E2.has(Dn(f)),T=d.reference[b]-d.floating[z]+(D&&((O=m.offset)==null?void 0:O[b])||0)+(D?0:w.crossAxis),B=d.reference[b]+d.reference[z]+(D?0:((N=m.offset)==null?void 0:N[b])||0)-(D?w.crossAxis:0);A<T?A=T:A>B&&(A=B)}return{[S]:R,[b]:A}}}},ix=function(l){return l===void 0&&(l={}),{name:"size",options:l,async fn(r){var o,i;const{placement:f,rects:d,platform:m,elements:h}=r,{apply:v=()=>{},...p}=kl(l,r),x=await di(r,p),b=Dn(f),S=Sa(f),R=Qn(f)==="y",{width:A,height:M}=d.floating;let w,O;b==="top"||b==="bottom"?(w=b,O=S===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(O=b,w=S==="end"?"top":"bottom");const N=M-x.top-x.bottom,z=A-x.left-x.right,D=Kr(M-x[w],N),T=Kr(A-x[O],z),B=!r.middlewareData.shift;let V=D,_=T;if((o=r.middlewareData.shift)!=null&&o.enabled.x&&(_=z),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(V=N),B&&!S){const se=zn(x.left,0),oe=zn(x.right,0),ae=zn(x.top,0),I=zn(x.bottom,0);R?_=A-2*(se!==0||oe!==0?se+oe:zn(x.left,x.right)):V=M-2*(ae!==0||I!==0?ae+I:zn(x.top,x.bottom))}await v({...r,availableWidth:_,availableHeight:V});const ie=await m.getDimensions(h.floating);return A!==ie.width||M!==ie.height?{reset:{rects:!0}}:{}}}};function R2(l){const r=Ln(l);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const f=Nt(l),d=f?l.offsetWidth:o,m=f?l.offsetHeight:i,h=tu(o)!==d||tu(i)!==m;return h&&(o=d,i=m),{width:o,height:i,$:h}}function a0(l){return it(l)?l:l.contextElement}function Ir(l){const r=a0(l);if(!Nt(r))return ml(1);const o=r.getBoundingClientRect(),{width:i,height:f,$:d}=R2(r);let m=(d?tu(o.width):o.width)/i,h=(d?tu(o.height):o.height)/f;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const sx=ml(0);function T2(l){const r=Yt(l);return!mu()||!r.visualViewport?sx:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function ux(l,r,o){return r===void 0&&(r=!1),!o||r&&o!==Yt(l)?!1:r}function Ka(l,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const f=l.getBoundingClientRect(),d=a0(l);let m=ml(1);r&&(i?it(i)&&(m=Ir(i)):m=Ir(l));const h=ux(d,o,i)?T2(d):ml(0);let v=(f.left+h.x)/m.x,p=(f.top+h.y)/m.y,x=f.width/m.x,b=f.height/m.y;if(d){const S=Yt(d),R=i&&it(i)?Yt(i):i;let A=S,M=id(A);for(;M&&i&&R!==A;){const w=Ir(M),O=M.getBoundingClientRect(),N=Ln(M),z=O.left+(M.clientLeft+parseFloat(N.paddingLeft))*w.x,D=O.top+(M.clientTop+parseFloat(N.paddingTop))*w.y;v*=w.x,p*=w.y,x*=w.x,b*=w.y,v+=z,p+=D,A=Yt(M),M=id(A)}}return lu({width:x,height:b,x:v,y:p})}function vu(l,r){const o=pu(l).scrollLeft;return r?r.left+o:Ka(hl(l)).left+o}function A2(l,r){const o=l.getBoundingClientRect(),i=o.left+r.scrollLeft-vu(l,o),f=o.top+r.scrollTop;return{x:i,y:f}}function cx(l){let{elements:r,rect:o,offsetParent:i,strategy:f}=l;const d=f==="fixed",m=hl(i),h=r?du(r.floating):!1;if(i===m||h&&d)return o;let v={scrollLeft:0,scrollTop:0},p=ml(1);const x=ml(0),b=Nt(i);if((b||!b&&!d)&&((ba(i)!=="body"||Pa(m))&&(v=pu(i)),Nt(i))){const R=Ka(i);p=Ir(i),x.x=R.x+i.clientLeft,x.y=R.y+i.clientTop}const S=m&&!b&&!d?A2(m,v):ml(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-v.scrollLeft*p.x+x.x+S.x,y:o.y*p.y-v.scrollTop*p.y+x.y+S.y}}function fx(l){return Array.from(l.getClientRects())}function dx(l){const r=hl(l),o=pu(l),i=l.ownerDocument.body,f=zn(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),d=zn(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let m=-o.scrollLeft+vu(l);const h=-o.scrollTop;return Ln(i).direction==="rtl"&&(m+=zn(r.clientWidth,i.clientWidth)-f),{width:f,height:d,x:m,y:h}}const qh=25;function mx(l,r){const o=Yt(l),i=hl(l),f=o.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,v=0;if(f){d=f.width,m=f.height;const x=mu();(!x||x&&r==="fixed")&&(h=f.offsetLeft,v=f.offsetTop)}const p=vu(i);if(p<=0){const x=i.ownerDocument,b=x.body,S=getComputedStyle(b),R=x.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,A=Math.abs(i.clientWidth-b.clientWidth-R);A<=qh&&(d-=A)}else p<=qh&&(d+=p);return{width:d,height:m,x:h,y:v}}const px=new Set(["absolute","fixed"]);function hx(l,r){const o=Ka(l,!0,r==="fixed"),i=o.top+l.clientTop,f=o.left+l.clientLeft,d=Nt(l)?Ir(l):ml(1),m=l.clientWidth*d.x,h=l.clientHeight*d.y,v=f*d.x,p=i*d.y;return{width:m,height:h,x:v,y:p}}function Yh(l,r,o){let i;if(r==="viewport")i=mx(l,o);else if(r==="document")i=dx(hl(l));else if(it(r))i=hx(r,o);else{const f=T2(l);i={x:r.x-f.x,y:r.y-f.y,width:r.width,height:r.height}}return lu(i)}function M2(l,r){const o=pl(l);return o===r||!it(o)||dl(o)?!1:Ln(o).position==="fixed"||M2(o,r)}function gx(l,r){const o=r.get(l);if(o)return o;let i=ma(l,[],!1).filter(h=>it(h)&&ba(h)!=="body"),f=null;const d=Ln(l).position==="fixed";let m=d?pl(l):l;for(;it(m)&&!dl(m);){const h=Ln(m),v=Ud(m);!v&&h.position==="fixed"&&(f=null),(d?!v&&!f:!v&&h.position==="static"&&!!f&&px.has(f.position)||Pa(m)&&!v&&M2(l,m))?i=i.filter(x=>x!==m):f=h,m=pl(m)}return r.set(l,i),i}function vx(l){let{element:r,boundary:o,rootBoundary:i,strategy:f}=l;const m=[...o==="clippingAncestors"?du(r)?[]:gx(r,this._c):[].concat(o),i],h=m[0],v=m.reduce((p,x)=>{const b=Yh(r,x,f);return p.top=zn(b.top,p.top),p.right=Kr(b.right,p.right),p.bottom=Kr(b.bottom,p.bottom),p.left=zn(b.left,p.left),p},Yh(r,h,f));return{width:v.right-v.left,height:v.bottom-v.top,x:v.left,y:v.top}}function yx(l){const{width:r,height:o}=R2(l);return{width:r,height:o}}function bx(l,r,o){const i=Nt(r),f=hl(r),d=o==="fixed",m=Ka(l,!0,d,r);let h={scrollLeft:0,scrollTop:0};const v=ml(0);function p(){v.x=vu(f)}if(i||!i&&!d)if((ba(r)!=="body"||Pa(f))&&(h=pu(r)),i){const R=Ka(r,!0,d,r);v.x=R.x+r.clientLeft,v.y=R.y+r.clientTop}else f&&p();d&&!i&&f&&p();const x=f&&!i&&!d?A2(f,h):ml(0),b=m.left+h.scrollLeft-v.x-x.x,S=m.top+h.scrollTop-v.y-x.y;return{x:b,y:S,width:m.width,height:m.height}}function If(l){return Ln(l).position==="static"}function Gh(l,r){if(!Nt(l)||Ln(l).position==="fixed")return null;if(r)return r(l);let o=l.offsetParent;return hl(l)===o&&(o=o.ownerDocument.body),o}function w2(l,r){const o=Yt(l);if(du(l))return o;if(!Nt(l)){let f=pl(l);for(;f&&!dl(f);){if(it(f)&&!If(f))return f;f=pl(f)}return o}let i=Gh(l,r);for(;i&&m6(i)&&If(i);)i=Gh(i,r);return i&&dl(i)&&If(i)&&!Ud(i)?o:i||y6(l)||o}const xx=async function(l){const r=this.getOffsetParent||w2,o=this.getDimensions,i=await o(l.floating);return{reference:bx(l.reference,await r(l.floating),l.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Sx(l){return Ln(l).direction==="rtl"}const Ex={convertOffsetParentRelativeRectToViewportRelativeRect:cx,getDocumentElement:hl,getClippingRect:vx,getOffsetParent:w2,getElementRects:xx,getClientRects:fx,getDimensions:yx,getScale:Ir,isElement:it,isRTL:Sx};function C2(l,r){return l.x===r.x&&l.y===r.y&&l.width===r.width&&l.height===r.height}function Rx(l,r){let o=null,i;const f=hl(l);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function m(h,v){h===void 0&&(h=!1),v===void 0&&(v=1),d();const p=l.getBoundingClientRect(),{left:x,top:b,width:S,height:R}=p;if(h||r(),!S||!R)return;const A=Br(b),M=Br(f.clientWidth-(x+S)),w=Br(f.clientHeight-(b+R)),O=Br(x),z={rootMargin:-A+"px "+-M+"px "+-w+"px "+-O+"px",threshold:zn(0,Kr(1,v))||1};let D=!0;function T(B){const V=B[0].intersectionRatio;if(V!==v){if(!D)return m();V?m(!1,V):i=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!C2(p,l.getBoundingClientRect())&&m(),D=!1}try{o=new IntersectionObserver(T,{...z,root:f.ownerDocument})}catch{o=new IntersectionObserver(T,z)}o.observe(l)}return m(!0),d}function Ih(l,r,o,i){i===void 0&&(i={});const{ancestorScroll:f=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:v=!1}=i,p=a0(l),x=f||d?[...p?ma(p):[],...ma(r)]:[];x.forEach(O=>{f&&O.addEventListener("scroll",o,{passive:!0}),d&&O.addEventListener("resize",o)});const b=p&&h?Rx(p,o):null;let S=-1,R=null;m&&(R=new ResizeObserver(O=>{let[N]=O;N&&N.target===p&&R&&(R.unobserve(r),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var z;(z=R)==null||z.observe(r)})),o()}),p&&!v&&R.observe(p),R.observe(r));let A,M=v?Ka(l):null;v&&w();function w(){const O=Ka(l);M&&!C2(M,O)&&o(),M=O,A=requestAnimationFrame(w)}return o(),()=>{var O;x.forEach(N=>{f&&N.removeEventListener("scroll",o),d&&N.removeEventListener("resize",o)}),b?.(),(O=R)==null||O.disconnect(),R=null,v&&cancelAnimationFrame(A)}}const Tx=ax,Ax=rx,Mx=tx,wx=ix,Cx=nx,Ox=ox,Nx=(l,r,o)=>{const i=new Map,f={platform:Ex,...o},d={...f.platform,_c:i};return ex(l,r,{...f,platform:d})};var zx=typeof document<"u",jx=function(){},Ks=zx?c.useLayoutEffect:jx;function iu(l,r){if(l===r)return!0;if(typeof l!=typeof r)return!1;if(typeof l=="function"&&l.toString()===r.toString())return!0;let o,i,f;if(l&&r&&typeof l=="object"){if(Array.isArray(l)){if(o=l.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!iu(l[i],r[i]))return!1;return!0}if(f=Object.keys(l),o=f.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,f[i]))return!1;for(i=o;i--!==0;){const d=f[i];if(!(d==="_owner"&&l.$$typeof)&&!iu(l[d],r[d]))return!1}return!0}return l!==l&&r!==r}function O2(l){return typeof window>"u"?1:(l.ownerDocument.defaultView||window).devicePixelRatio||1}function Xh(l,r){const o=O2(l);return Math.round(r*o)/o}function Xf(l){const r=c.useRef(l);return Ks(()=>{r.current=l}),r}function Hx(l){l===void 0&&(l={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:f,elements:{reference:d,floating:m}={},transform:h=!0,whileElementsMounted:v,open:p}=l,[x,b]=c.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[S,R]=c.useState(i);iu(S,i)||R(i);const[A,M]=c.useState(null),[w,O]=c.useState(null),N=c.useCallback(H=>{H!==B.current&&(B.current=H,M(H))},[]),z=c.useCallback(H=>{H!==V.current&&(V.current=H,O(H))},[]),D=d||A,T=m||w,B=c.useRef(null),V=c.useRef(null),_=c.useRef(x),ie=v!=null,se=Xf(v),oe=Xf(f),ae=Xf(p),I=c.useCallback(()=>{if(!B.current||!V.current)return;const H={placement:r,strategy:o,middleware:S};oe.current&&(H.platform=oe.current),Nx(B.current,V.current,H).then(K=>{const ne={...K,isPositioned:ae.current!==!1};$.current&&!iu(_.current,ne)&&(_.current=ne,al.flushSync(()=>{b(ne)}))})},[S,r,o,oe,ae]);Ks(()=>{p===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,b(H=>({...H,isPositioned:!1})))},[p]);const $=c.useRef(!1);Ks(()=>($.current=!0,()=>{$.current=!1}),[]),Ks(()=>{if(D&&(B.current=D),T&&(V.current=T),D&&T){if(se.current)return se.current(D,T,I);I()}},[D,T,I,se,ie]);const Q=c.useMemo(()=>({reference:B,floating:V,setReference:N,setFloating:z}),[N,z]),j=c.useMemo(()=>({reference:D,floating:T}),[D,T]),Z=c.useMemo(()=>{const H={position:o,left:0,top:0};if(!j.floating)return H;const K=Xh(j.floating,x.x),ne=Xh(j.floating,x.y);return h?{...H,transform:"translate("+K+"px, "+ne+"px)",...O2(j.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:K,top:ne}},[o,h,j.floating,x.x,x.y]);return c.useMemo(()=>({...x,update:I,refs:Q,elements:j,floatingStyles:Z}),[x,I,Q,j,Z])}const Dx=(l,r)=>({...Tx(l),options:[l,r]}),Lx=(l,r)=>({...Ax(l),options:[l,r]}),Vx=(l,r)=>({...Ox(l),options:[l,r]}),_x=(l,r)=>({...Mx(l),options:[l,r]}),Ux=(l,r)=>({...wx(l),options:[l,r]}),kx=(l,r)=>({...Cx(l),options:[l,r]}),Zx={intentional:"onClick",sloppy:"onPointerDown"};function Bx(l){return{escapeKey:typeof l=="boolean"?l:l?.escapeKey??!1,outsidePress:typeof l=="boolean"?l:l?.outsidePress??!0}}function r0(l,r={}){const o="rootStore"in l?l.rootStore:l,i=o.useState("open"),f=o.useState("floatingElement"),d=o.useState("referenceElement"),m=o.useState("domReferenceElement"),{onOpenChange:h,dataRef:v}=o.context,{enabled:p=!0,escapeKey:x=!0,outsidePress:b=!0,outsidePressEvent:S="sloppy",referencePress:R=!1,referencePressEvent:A="sloppy",ancestorScroll:M=!1,bubbles:w,externalTree:O}=r,N=Ea(O),z=we(typeof b=="function"?b:()=>!1),D=typeof b=="function"?z:b,T=c.useRef(!1),{escapeKey:B,outsidePress:V}=Bx(w),_=c.useRef(null),ie=qt(),se=qt(),oe=we(()=>{se.clear(),v.current.insideReactTree=!1}),ae=c.useRef(!1),I=c.useRef(""),$=we(le=>{I.current=le.pointerType}),Q=we(()=>{const le=I.current,Se=le==="pen"||!le?"mouse":le,ye=typeof S=="function"?S():S;return typeof ye=="string"?ye:ye[Se]}),j=we(le=>{if(!i||!p||!x||le.key!=="Escape"||ae.current)return;const Se=v.current.floatingContext?.nodeId,ye=N?Xa(N.nodesRef.current,Se):[];if(!B&&ye.length>0){let pe=!0;if(ye.forEach(G=>{G.context?.open&&!G.context.dataRef.current.__escapeKeyBubbles&&(pe=!1)}),!pe)return}const _e=ub(le)?le.nativeEvent:le,Ae=qe(Gd,_e);o.setOpen(!1,Ae),!B&&!Ae.isPropagationAllowed&&le.stopPropagation()}),Z=we(le=>{const Se=Q();return Se==="intentional"&&le.type!=="click"||Se==="sloppy"&&le.type==="click"}),H=we(()=>{v.current.insideReactTree=!0,se.start(0,oe)}),K=we((le,Se=!1)=>{if(Z(le)){oe();return}if(v.current.insideReactTree){oe();return}if(Q()==="intentional"&&Se||typeof D=="function"&&!D(le))return;const ye=fn(le),_e=`[${Jr("inert")}]`,Ae=Lt(o.select("floatingElement")).querySelectorAll(_e),pe=o.context.triggerElements;if(ye&&(pe.hasElement(ye)||pe.hasMatchingElement(fe=>Pe(fe,ye))))return;let G=it(ye)?ye:null;for(;G&&!dl(G);){const fe=pl(G);if(dl(fe)||!it(fe))break;G=fe}if(Ae.length&&it(ye)&&!ib(ye)&&!Pe(ye,o.select("floatingElement"))&&Array.from(Ae).every(fe=>!Pe(G,fe)))return;if(Nt(ye)&&!("touches"in le)){const fe=dl(ye),De=Ln(ye),be=/auto|scroll/,Re=fe||be.test(De.overflowX),xe=fe||be.test(De.overflowY),Ie=Re&&ye.clientWidth>0&&ye.scrollWidth>ye.clientWidth,lt=xe&&ye.clientHeight>0&&ye.scrollHeight>ye.clientHeight,Ye=De.direction==="rtl",yt=lt&&(Ye?le.offsetX<=ye.offsetWidth-ye.clientWidth:le.offsetX>ye.clientWidth),bt=Ie&&le.offsetY>ye.clientHeight;if(yt||bt)return}const ge=v.current.floatingContext?.nodeId,ve=N&&Xa(N.nodesRef.current,ge).some(fe=>Wn(le,fe.context?.elements.floating));if(Wn(le,o.select("floatingElement"))||Wn(le,o.select("domReferenceElement"))||ve)return;const Me=N?Xa(N.nodesRef.current,ge):[];if(Me.length>0){let fe=!0;if(Me.forEach(De=>{De.context?.open&&!De.context.dataRef.current.__outsidePressBubbles&&(fe=!1)}),!fe)return}o.setOpen(!1,qe(Yd,le)),oe()}),ne=we(le=>{Q()!=="sloppy"||le.pointerType==="touch"||!o.select("open")||!p||Wn(le,o.select("floatingElement"))||Wn(le,o.select("domReferenceElement"))||K(le)}),C=we(le=>{if(Q()!=="sloppy"||!o.select("open")||!p||Wn(le,o.select("floatingElement"))||Wn(le,o.select("domReferenceElement")))return;const Se=le.touches[0];Se&&(_.current={startTime:Date.now(),startX:Se.clientX,startY:Se.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},ie.start(1e3,()=>{_.current&&(_.current.dismissOnTouchEnd=!1,_.current.dismissOnMouseDown=!1)}))}),q=we(le=>{const Se=fn(le);function ye(){C(le),Se?.removeEventListener(le.type,ye)}Se?.addEventListener(le.type,ye)}),k=we(le=>{const Se=T.current;if(T.current=!1,ie.clear(),le.type==="mousedown"&&_.current&&!_.current.dismissOnMouseDown)return;const ye=fn(le);function _e(){le.type==="pointerdown"?ne(le):K(le,Se),ye?.removeEventListener(le.type,_e)}ye?.addEventListener(le.type,_e)}),ee=we(le=>{if(Q()!=="sloppy"||!_.current||Wn(le,o.select("floatingElement"))||Wn(le,o.select("domReferenceElement")))return;const Se=le.touches[0];if(!Se)return;const ye=Math.abs(Se.clientX-_.current.startX),_e=Math.abs(Se.clientY-_.current.startY),Ae=Math.sqrt(ye*ye+_e*_e);Ae>5&&(_.current.dismissOnTouchEnd=!0),Ae>10&&(K(le),ie.clear(),_.current=null)}),me=we(le=>{const Se=fn(le);function ye(){ee(le),Se?.removeEventListener(le.type,ye)}Se?.addEventListener(le.type,ye)}),te=we(le=>{Q()!=="sloppy"||!_.current||Wn(le,o.select("floatingElement"))||Wn(le,o.select("domReferenceElement"))||(_.current.dismissOnTouchEnd&&K(le),ie.clear(),_.current=null)}),J=we(le=>{const Se=fn(le);function ye(){te(le),Se?.removeEventListener(le.type,ye)}Se?.addEventListener(le.type,ye)});c.useEffect(()=>{if(!i||!p)return;v.current.__escapeKeyBubbles=B,v.current.__outsidePressBubbles=V;const le=new Qa;function Se(G){o.setOpen(!1,qe(gu,G))}function ye(){le.clear(),ae.current=!0}function _e(){le.start(mu()?5:0,()=>{ae.current=!1})}const Ae=Lt(f);Ae.addEventListener("pointerdown",$,!0),x&&(Ae.addEventListener("keydown",j),Ae.addEventListener("compositionstart",ye),Ae.addEventListener("compositionend",_e)),D&&(Ae.addEventListener("click",k,!0),Ae.addEventListener("pointerdown",k,!0),Ae.addEventListener("touchstart",q,!0),Ae.addEventListener("touchmove",me,!0),Ae.addEventListener("touchend",J,!0),Ae.addEventListener("mousedown",k,!0));let pe=[];return M&&(it(m)&&(pe=ma(m)),it(f)&&(pe=pe.concat(ma(f))),!it(d)&&d&&d.contextElement&&(pe=pe.concat(ma(d.contextElement)))),pe=pe.filter(G=>G!==Ae.defaultView?.visualViewport),pe.forEach(G=>{G.addEventListener("scroll",Se,{passive:!0})}),()=>{Ae.removeEventListener("pointerdown",$,!0),x&&(Ae.removeEventListener("keydown",j),Ae.removeEventListener("compositionstart",ye),Ae.removeEventListener("compositionend",_e)),D&&(Ae.removeEventListener("click",k,!0),Ae.removeEventListener("pointerdown",k,!0),Ae.removeEventListener("touchstart",q,!0),Ae.removeEventListener("touchmove",me,!0),Ae.removeEventListener("touchend",J,!0),Ae.removeEventListener("mousedown",k,!0)),pe.forEach(G=>{G.removeEventListener("scroll",Se)}),le.clear()}},[v,f,d,m,x,D,i,h,M,p,B,V,j,K,k,ne,q,me,J,$,o]),c.useEffect(oe,[D,oe]);const de=c.useMemo(()=>({onKeyDown:j,...R&&{[Zx[A]]:le=>{o.setOpen(!1,qe(Ia,le.nativeEvent))},...A!=="intentional"&&{onClick(le){o.setOpen(!1,qe(Ia,le.nativeEvent))}}}}),[j,o,R,A]),he=we(le=>{const Se=fn(le.nativeEvent);!Pe(o.select("floatingElement"),Se)||le.button!==0||(T.current=!0)}),Te=c.useMemo(()=>({onKeyDown:j,onPointerDown:he,onMouseDown:he,onMouseUp:he,onClickCapture:H,onMouseDownCapture:H,onPointerDownCapture:H,onMouseUpCapture:H,onTouchEndCapture:H,onTouchMoveCapture:H}),[j,he,H]);return c.useMemo(()=>p?{reference:de,floating:Te,trigger:de}:{},[p,de,Te])}var su=Symbol("NOT_FOUND");function qx(l,r=`expected a function, instead received ${typeof l}`){if(typeof l!="function")throw new TypeError(r)}function Yx(l,r=`expected an object, instead received ${typeof l}`){if(typeof l!="object")throw new TypeError(r)}function Gx(l,r="expected all items to be functions, instead received the following types: "){if(!l.every(o=>typeof o=="function")){const o=l.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${r}[${o}]`)}}var Fh=l=>Array.isArray(l)?l:[l];function Ix(l){const r=Array.isArray(l[0])?l[0]:l;return Gx(r,"createSelector expects all input-selectors to be functions, but received the following types: "),r}function Xx(l,r){const o=[],{length:i}=l;for(let f=0;f<i;f++)o.push(l[f].apply(null,r));return o}function Fx(l){let r;return{get(o){return r&&l(r.key,o)?r.value:su},put(o,i){r={key:o,value:i}},getEntries(){return r?[r]:[]},clear(){r=void 0}}}function Qx(l,r){let o=[];function i(h){const v=o.findIndex(p=>r(h,p.key));if(v>-1){const p=o[v];return v>0&&(o.splice(v,1),o.unshift(p)),p.value}return su}function f(h,v){i(h)===su&&(o.unshift({key:h,value:v}),o.length>l&&o.pop())}function d(){return o}function m(){o=[]}return{get:i,put:f,getEntries:d,clear:m}}var Kx=(l,r)=>l===r;function Px(l){return function(o,i){if(o===null||i===null||o.length!==i.length)return!1;const{length:f}=o;for(let d=0;d<f;d++)if(!l(o[d],i[d]))return!1;return!0}}function Jx(l,r){const o=typeof r=="object"?r:{equalityCheck:r},{equalityCheck:i=Kx,maxSize:f=1,resultEqualityCheck:d}=o,m=Px(i);let h=0;const v=f<=1?Fx(m):Qx(f,m);function p(){let x=v.get(arguments);if(x===su){if(x=l.apply(null,arguments),h++,d){const S=v.getEntries().find(R=>d(R.value,x));S&&(x=S.value,h!==0&&h--)}v.put(arguments,x)}return x}return p.clearCache=()=>{v.clear(),p.resetResultsCount()},p.resultsCount=()=>h,p.resetResultsCount=()=>{h=0},p}var $x=class{constructor(l){this.value=l}deref(){return this.value}},Wx=typeof WeakRef<"u"?WeakRef:$x,e3=0,Qh=1;function Bs(){return{s:e3,v:void 0,o:null,p:null}}function N2(l,r={}){let o=Bs();const{resultEqualityCheck:i}=r;let f,d=0;function m(){let h=o;const{length:v}=arguments;for(let b=0,S=v;b<S;b++){const R=arguments[b];if(typeof R=="function"||typeof R=="object"&&R!==null){let A=h.o;A===null&&(h.o=A=new WeakMap);const M=A.get(R);M===void 0?(h=Bs(),A.set(R,h)):h=M}else{let A=h.p;A===null&&(h.p=A=new Map);const M=A.get(R);M===void 0?(h=Bs(),A.set(R,h)):h=M}}const p=h;let x;if(h.s===Qh)x=h.v;else if(x=l.apply(null,arguments),d++,i){const b=f?.deref?.()??f;b!=null&&i(b,x)&&(x=b,d!==0&&d--),f=typeof x=="object"&&x!==null||typeof x=="function"?new Wx(x):x}return p.s=Qh,p.v=x,x}return m.clearCache=()=>{o=Bs(),m.resetResultsCount()},m.resultsCount=()=>d,m.resetResultsCount=()=>{d=0},m}function z2(l,...r){const o=typeof l=="function"?{memoize:l,memoizeOptions:r}:l,i=(...f)=>{let d=0,m=0,h,v={},p=f.pop();typeof p=="object"&&(v=p,p=f.pop()),qx(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const x={...o,...v},{memoize:b,memoizeOptions:S=[],argsMemoize:R=N2,argsMemoizeOptions:A=[]}=x,M=Fh(S),w=Fh(A),O=Ix(f),N=b(function(){return d++,p.apply(null,arguments)},...M),z=R(function(){m++;const T=Xx(O,arguments);return h=N.apply(null,T),h},...w);return Object.assign(z,{resultFunc:p,memoizedResultFunc:N,dependencies:O,dependencyRecomputations:()=>m,resetDependencyRecomputations:()=>{m=0},lastResult:()=>h,recomputations:()=>d,resetRecomputations:()=>{d=0},memoize:b,argsMemoize:R})};return Object.assign(i,{withTypes:()=>i}),i}var t3=z2(N2),n3=Object.assign((l,r=t3)=>{Yx(l,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof l}`);const o=Object.keys(l),i=o.map(d=>l[d]);return r(i,(...d)=>d.reduce((m,h,v)=>(m[o[v]]=h,m),{}))},{withTypes:()=>n3});z2({memoize:Jx,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ee=(l,r,o,i,f,d,...m)=>{if(m.length>0)throw new Error(Ft(1));let h;if(l)h=l;else throw new Error("Missing arguments");return h};var Ff={exports:{}},Qf={};var Kh;function l3(){if(Kh)return Qf;Kh=1;var l=pi();function r(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var o=typeof Object.is=="function"?Object.is:r,i=l.useState,f=l.useEffect,d=l.useLayoutEffect,m=l.useDebugValue;function h(b,S){var R=S(),A=i({inst:{value:R,getSnapshot:S}}),M=A[0].inst,w=A[1];return d(function(){M.value=R,M.getSnapshot=S,v(M)&&w({inst:M})},[b,R,S]),f(function(){return v(M)&&w({inst:M}),b(function(){v(M)&&w({inst:M})})},[b]),m(R),R}function v(b){var S=b.getSnapshot;b=b.value;try{var R=S();return!o(b,R)}catch{return!0}}function p(b,S){return S()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return Qf.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:x,Qf}var Ph;function j2(){return Ph||(Ph=1,Ff.exports=l3()),Ff.exports}var a3=j2(),Kf={exports:{}},Pf={};var Jh;function r3(){if(Jh)return Pf;Jh=1;var l=pi(),r=j2();function o(p,x){return p===x&&(p!==0||1/p===1/x)||p!==p&&x!==x}var i=typeof Object.is=="function"?Object.is:o,f=r.useSyncExternalStore,d=l.useRef,m=l.useEffect,h=l.useMemo,v=l.useDebugValue;return Pf.useSyncExternalStoreWithSelector=function(p,x,b,S,R){var A=d(null);if(A.current===null){var M={hasValue:!1,value:null};A.current=M}else M=A.current;A=h(function(){function O(B){if(!N){if(N=!0,z=B,B=S(B),R!==void 0&&M.hasValue){var V=M.value;if(R(V,B))return D=V}return D=B}if(V=D,i(z,B))return V;var _=S(B);return R!==void 0&&R(V,_)?(z=B,V):(z=B,D=_)}var N=!1,z,D,T=b===void 0?null:b;return[function(){return O(x())},T===null?void 0:function(){return O(T())}]},[x,b,S,R]);var w=f(p,A[0],A[1]);return m(function(){M.hasValue=!0,M.value=w},[w]),v(w),w},Pf}var $h;function o3(){return $h||($h=1,Kf.exports=r3()),Kf.exports}var i3=o3();const s3=Zd(19),u3=s3?c3:f3;function Ze(l,r,o,i,f){return u3(l,r,o,i,f)}function c3(l,r,o,i,f){const d=c.useCallback(()=>r(l.getSnapshot(),o,i,f),[l,r,o,i,f]);return a3.useSyncExternalStore(l.subscribe,d,d)}function f3(l,r,o,i,f){return i3.useSyncExternalStoreWithSelector(l.subscribe,l.getSnapshot,l.getSnapshot,d=>r(d,o,i,f))}class Xr{constructor(r){this.state=r,this.listeners=new Set,this.updateTick=0}subscribe=r=>(this.listeners.add(r),()=>{this.listeners.delete(r)});getSnapshot=()=>this.state;setState(r){if(this.state===r)return;this.state=r,this.updateTick+=1;const o=this.updateTick;for(const i of this.listeners){if(o!==this.updateTick)return;i(r)}}update(r){for(const o in r)if(!Object.is(this.state[o],r[o])){Xr.prototype.setState.call(this,{...this.state,...r});return}}set(r,o){Object.is(this.state[r],o)||Xr.prototype.setState.call(this,{...this.state,[r]:o})}notifyAll(){const r={...this.state};Xr.prototype.setState.call(this,r)}}class o0 extends Xr{constructor(r,o={},i){super(r),this.context=o,this.selectors=i}controlledValues=new Map;useSyncedValue(r,o){c.useDebugValue(r),Oe(()=>{this.state[r]!==o&&this.set(r,o)},[r,o])}useSyncedValueWithCleanup(r,o){Oe(()=>(this.state[r]!==o&&this.set(r,o),()=>{this.set(r,void 0)}),[r,o])}useSyncedValues(r){const o=Object.values(r);Oe(()=>{this.update(r)},o)}useControlledProp(r,o,i){c.useDebugValue(r);const f=o!==void 0;this.controlledValues.has(r)||(this.controlledValues.set(r,f),!f&&!Object.is(this.state[r],i)&&super.setState({...this.state,[r]:i})),Oe(()=>{f&&!Object.is(this.state[r],o)&&super.setState({...this.state,[r]:o})},[r,o,i,f])}set(r,o){this.controlledValues.get(r)!==!0&&super.set(r,o)}update(r){const o={...r};for(const i in o)if(Object.hasOwn(o,i)&&this.controlledValues.get(i)===!0){delete o[i];continue}super.update(o)}setState(r){const o={...r};for(const i in o)if(Object.hasOwn(o,i)&&this.controlledValues.get(i)===!0){delete o[i];continue}super.setState({...this.state,...o})}select=(r,o,i,f)=>{const d=this.selectors[r];return d(this.state,o,i,f)};useState=(r,o,i,f)=>{c.useDebugValue(r);const d=this.selectors[r];return Ze(this,d,o,i,f)};useContextCallback(r,o){c.useDebugValue(r);const i=we(o??jn);this.context[r]=i}useStateSetter(r){const o=c.useRef(void 0);return o.current===void 0&&(o.current=i=>{this.set(r,i)}),o.current}observe(r,o){let i;typeof r=="function"?i=r:i=this.selectors[r];let f=i(this.state);return o(f,f,this),this.subscribe(d=>{const m=i(d);if(!Object.is(f,m)){const h=f;f=m,o(m,h,this)}})}}const d3={open:Ee(l=>l.open),domReferenceElement:Ee(l=>l.domReferenceElement),referenceElement:Ee(l=>l.positionReference??l.referenceElement),floatingElement:Ee(l=>l.floatingElement),floatingId:Ee(l=>l.floatingId)};class i0 extends o0{constructor(r){const{nested:o,noEmit:i,onOpenChange:f,triggerElements:d,...m}=r;super({...m,positionReference:m.referenceElement,domReferenceElement:m.referenceElement},{onOpenChange:f,dataRef:{current:{}},events:h2(),nested:o,noEmit:i,triggerElements:d},d3)}setOpen=(r,o)=>{if((!r||!this.state.open||l2(o.event))&&(this.context.dataRef.current.openEvent=r?o.event:void 0),!this.context.noEmit){const i={open:r,reason:o.reason,nativeEvent:o.event,nested:this.context.nested,triggerElement:o.trigger};this.context.events.emit("openchange",i)}this.context.onOpenChange?.(r,o)}}function m3(l,r){const o=c.useRef(null);return c.useCallback(i=>{l!==void 0&&(o.current!==null&&(r.context.triggerElements.delete(o.current),o.current=null),i!==null&&(o.current=l,r.context.triggerElements.add(l,i)))},[r,l])}function H2(l,r,o,i){const f=o.useState("isMountedByTrigger",l),d=m3(l,o),m=we(h=>{d(h),h!==null&&o.select("open")&&o.select("activeTriggerId")==null&&o.update({activeTriggerId:l,activeTriggerElement:h,...i})});return Oe(()=>{f&&o.update({activeTriggerElement:r.current,...i})},[f,o,r,...Object.values(i)]),{registerTrigger:m,isMountedByThisTrigger:f}}function D2(l){const r=l.useState("open");Oe(()=>{if(r&&!l.select("activeTriggerId")&&l.context.triggerElements.size===1){const o=l.context.triggerElements.entries().next();if(!o.done){const[i,f]=o.value;l.update({activeTriggerId:i,activeTriggerElement:f})}}},[r,l])}function L2(l,r,o){const{mounted:i,setMounted:f,transitionStatus:d}=gi(l);r.useSyncedValues({mounted:i,transitionStatus:d});const m=we(()=>{f(!1),r.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),o?.(),r.context.onOpenChangeComplete?.(!1)}),h=r.useState("preventUnmountingOnClose");return xa({enabled:!h,open:l,ref:r.context.popupRef,onComplete(){l||m()}}),{forceUnmount:m,transitionStatus:d}}class yu{constructor(){this.elements=new Set,this.idMap=new Map}add(r,o){const i=this.idMap.get(r);i!==o&&(i!==void 0&&this.elements.delete(i),this.elements.add(o),this.idMap.set(r,o))}delete(r){const o=this.idMap.get(r);o&&(this.elements.delete(o),this.idMap.delete(r))}hasElement(r){return this.elements.has(r)}hasMatchingElement(r){for(const o of this.elements)if(r(o))return!0;return!1}getById(r){return this.idMap.get(r)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function p3(){return new i0({open:!1,floatingElement:null,referenceElement:null,triggerElements:new yu,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function V2(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:p3(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Bt,inactiveTriggerProps:Bt,popupProps:Bt}}const _2={open:Ee(l=>l.open),mounted:Ee(l=>l.mounted),transitionStatus:Ee(l=>l.transitionStatus),floatingRootContext:Ee(l=>l.floatingRootContext),preventUnmountingOnClose:Ee(l=>l.preventUnmountingOnClose),payload:Ee(l=>l.payload),activeTriggerId:Ee(l=>l.activeTriggerId),activeTriggerElement:Ee(l=>l.mounted?l.activeTriggerElement:null),isTriggerActive:Ee((l,r)=>r!==void 0&&l.activeTriggerId===r),isOpenedByTrigger:Ee((l,r)=>r!==void 0&&l.activeTriggerId===r&&l.open),isMountedByTrigger:Ee((l,r)=>r!==void 0&&l.activeTriggerId===r&&l.mounted),triggerProps:Ee((l,r)=>r?l.activeTriggerProps:l.inactiveTriggerProps),popupProps:Ee(l=>l.popupProps),popupElement:Ee(l=>l.popupElement),positionerElement:Ee(l=>l.positionerElement)};function U2(l){const{open:r=!1,onOpenChange:o,elements:i={}}=l,f=Wa(),d=Zl()!=null,m=Rn(()=>new i0({open:r,onOpenChange:o,referenceElement:i.reference??null,floatingElement:i.floating??null,triggerElements:i.triggers??new yu,floatingId:f,nested:d,noEmit:l.noEmit||!1})).current;return Oe(()=>{const h={open:r,floatingId:f};i.reference!==void 0&&(h.referenceElement=i.reference,h.domReferenceElement=it(i.reference)?i.reference:null),i.floating!==void 0&&(h.floatingElement=i.floating),m.update(h)},[r,f,i.reference,i.floating,m]),m.context.onOpenChange=o,m.context.nested=d,m.context.noEmit=l.noEmit||!1,m}function h3(l={}){const{nodeId:r,externalTree:o}=l,i=U2(l),f=l.rootContext||i,d={reference:f.useState("referenceElement"),floating:f.useState("floatingElement"),domReference:f.useState("domReferenceElement")},[m,h]=c.useState(null),v=c.useRef(null),p=Ea(o);Oe(()=>{d.domReference&&(v.current=d.domReference)},[d.domReference]);const x=Hx({...l,elements:{...d,...m&&{reference:m}}}),b=c.useCallback(V=>{const _=it(V)?{getBoundingClientRect:()=>V.getBoundingClientRect(),getClientRects:()=>V.getClientRects(),contextElement:V}:V;h(_),x.refs.setReference(_)},[x.refs]),[S,R]=c.useState(null),[A,M]=c.useState(null);f.useSyncedValue("referenceElement",S),f.useSyncedValue("domReferenceElement",it(S)?S:null),f.useSyncedValue("floatingElement",A);const w=c.useCallback(V=>{(it(V)||V===null)&&(v.current=V,R(V)),(it(x.refs.reference.current)||x.refs.reference.current===null||V!==null&&!it(V))&&x.refs.setReference(V)},[x.refs,R]),O=c.useCallback(V=>{M(V),x.refs.setFloating(V)},[x.refs]),N=c.useMemo(()=>({...x.refs,setReference:w,setFloating:O,setPositionReference:b,domReference:v}),[x.refs,w,O,b]),z=c.useMemo(()=>({...x.elements,domReference:d.domReference}),[x.elements,d.domReference]),D=f.useState("open"),T=f.useState("floatingId"),B=c.useMemo(()=>({...x,dataRef:f.context.dataRef,open:D,onOpenChange:f.setOpen,events:f.context.events,floatingId:T,refs:N,elements:z,nodeId:r,rootStore:f}),[x,N,z,r,f,D,T]);return Oe(()=>{f.context.dataRef.current.floatingContext=B;const V=p?.nodesRef.current.find(_=>_.id===r);V&&(V.context=B)}),c.useMemo(()=>({...x,context:B,refs:N,elements:z,rootStore:f}),[x,N,z,B,f])}function k2(l){const{popupStore:r,noEmit:o=!1,treatPopupAsFloatingElement:i=!1,onOpenChange:f}=l,d=Wa(),m=Zl()!=null,h=r.useState("open"),v=r.useState("activeTriggerElement"),p=r.useState(i?"popupElement":"positionerElement"),x=r.context.triggerElements,b=Rn(()=>new i0({open:h,referenceElement:v,floatingElement:p,triggerElements:x,onOpenChange:f,floatingId:d,nested:m,noEmit:o})).current;return Oe(()=>{const S={open:h,floatingId:d,referenceElement:v,floatingElement:p};it(v)&&(S.domReferenceElement=v),b.update(S)},[h,d,v,p,b]),b.context.onOpenChange=f,b.context.nested=m,b.context.noEmit=o,b}const Jf=lb&&Pg;function g3(l,r={}){const o="rootStore"in l?l.rootStore:l,{events:i,dataRef:f}=o.context,{enabled:d=!0,visibleOnly:m=!0}=r,h=c.useRef(!1),v=qt(),p=c.useRef(!0);c.useEffect(()=>{const b=o.select("domReferenceElement");if(!d)return;const S=Yt(b);function R(){!o.select("open")&&Nt(b)&&b===fl(Lt(b))&&(h.current=!0)}function A(){p.current=!0}function M(){p.current=!1}return S.addEventListener("blur",R),Jf&&(S.addEventListener("keydown",A,!0),S.addEventListener("pointerdown",M,!0)),()=>{S.removeEventListener("blur",R),Jf&&(S.removeEventListener("keydown",A,!0),S.removeEventListener("pointerdown",M,!0))}},[o,d]),c.useEffect(()=>{if(!d)return;function b(S){(S.reason===Ia||S.reason===Gd)&&(h.current=!0)}return i.on("openchange",b),()=>{i.off("openchange",b)}},[i,d]);const x=c.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(b){if(h.current)return;const S=fn(b.nativeEvent);if(m&&it(S)){if(Jf&&!b.relatedTarget){if(!p.current&&!Fd(S))return}else if(!sb(S))return}o.setOpen(!0,qe(Ws,b.nativeEvent,b.currentTarget))},onBlur(b){h.current=!1;const S=b.relatedTarget,R=b.nativeEvent,A=it(S)&&S.hasAttribute(Jr("focus-guard"))&&S.getAttribute("data-type")==="outside";v.start(0,()=>{const M=o.select("domReferenceElement"),w=fl(M?M.ownerDocument:document);!S&&w===M||Pe(f.current.floatingContext?.refs.floating.current,w)||Pe(M,w)||A||o.context.triggerElements.hasElement(b.relatedTarget)||o.setOpen(!1,qe(Ws,R))})}}),[f,o,m,v]);return c.useMemo(()=>d?{reference:x,trigger:x}:{},[d,x])}const Sd=Jr("safe-polygon"),v3=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${e2}`;function y3(l){return l?!!l.closest(v3):!1}function Z2(l){const r=c.useRef(void 0),o=c.useRef(!1),i=c.useRef(void 0),f=c.useRef(!0),d=c.useRef(!1),m=c.useRef(()=>{}),h=c.useRef(!1),v=qt(),p=qt(),x=c.useRef(void 0);return c.useMemo(()=>{const b=l.context.dataRef.current;return b.hoverInteractionState||(b.hoverInteractionState={pointerTypeRef:r,interactedInsideRef:o,handlerRef:i,blockMouseMoveRef:f,performedPointerEventsMutationRef:d,unbindMouseMoveRef:m,restTimeoutPendingRef:h,openChangeTimeout:v,restTimeout:p,handleCloseOptionsRef:x}),b.hoverInteractionState},[l,r,o,i,f,d,m,h,v,p,x])}const b3=new Set(["click","mousedown"]);function x3(l,r={}){const o="rootStore"in l?l.rootStore:l,i=o.useState("open"),f=o.useState("floatingElement"),d=o.useState("domReferenceElement"),{dataRef:m}=o.context,{enabled:h=!0,closeDelay:v=0,externalTree:p}=r,{pointerTypeRef:x,interactedInsideRef:b,handlerRef:S,performedPointerEventsMutationRef:R,unbindMouseMoveRef:A,restTimeoutPendingRef:M,openChangeTimeout:w,handleCloseOptionsRef:O}=Z2(o),N=Ea(p),z=Zl(),D=we(()=>b.current?!0:m.current.openEvent?b3.has(m.current.openEvent.type):!1),T=we(()=>{const se=m.current.openEvent?.type;return se?.includes("mouse")&&se!=="mousedown"}),B=c.useCallback((se,oe=!0)=>{const ae=S3(v,x.current);ae&&!S.current?w.start(ae,()=>o.setOpen(!1,qe(Hn,se))):oe&&(w.clear(),o.setOpen(!1,qe(Hn,se)))},[v,S,o,x,w]),V=we(()=>{A.current(),S.current=void 0}),_=we(()=>{if(R.current){const se=Lt(f).body;se.style.pointerEvents="",se.removeAttribute(Sd),R.current=!1}}),ie=we(se=>{const oe=fn(se);if(!y3(oe)){b.current=!1;return}b.current=!0});Oe(()=>{i||(x.current=void 0,M.current=!1,b.current=!1,V(),_())},[i,x,M,b,V,_]),c.useEffect(()=>()=>{V()},[V]),c.useEffect(()=>_,[_]),Oe(()=>{if(h&&i&&O.current?.blockPointerEvents&&T()&&it(d)&&f){R.current=!0;const se=Lt(f).body;se.setAttribute(Sd,"");const oe=d,ae=f,I=N?.nodesRef.current.find($=>$.id===z)?.context?.elements.floating;return I&&(I.style.pointerEvents=""),se.style.pointerEvents="none",oe.style.pointerEvents="auto",ae.style.pointerEvents="auto",()=>{se.style.pointerEvents="",oe.style.pointerEvents="",ae.style.pointerEvents=""}}},[h,i,d,f,O,T,N,z,R]),c.useEffect(()=>{if(!h)return;function se($){if(D()||!m.current.floatingContext||!o.select("open"))return;const Q=o.context.triggerElements;$.relatedTarget&&Q.hasElement($.relatedTarget)||(_(),V(),D()||B($))}function oe($){w.clear(),_(),S.current?.($),V()}function ae($){D()||B($,!1)}const I=f;return I&&(I.addEventListener("mouseleave",se),I.addEventListener("mouseenter",oe),I.addEventListener("mouseleave",ae),I.addEventListener("pointerdown",ie,!0)),()=>{I&&(I.removeEventListener("mouseleave",se),I.removeEventListener("mouseenter",oe),I.removeEventListener("mouseleave",ae),I.removeEventListener("pointerdown",ie,!0))}})}function S3(l,r){return r&&!Qr(r)?0:typeof l=="function"?l():l}function $f(l){return typeof l=="function"?l():l}const E3={current:null};function R3(l,r={}){const o="rootStore"in l?l.rootStore:l,{dataRef:i,events:f}=o.context,{enabled:d=!0,delay:m=0,handleClose:h=null,mouseOnly:v=!1,restMs:p=0,move:x=!0,triggerElementRef:b=E3,externalTree:S,isActiveTrigger:R=!0}=r,A=Ea(S),{pointerTypeRef:M,interactedInsideRef:w,handlerRef:O,blockMouseMoveRef:N,performedPointerEventsMutationRef:z,unbindMouseMoveRef:D,restTimeoutPendingRef:T,openChangeTimeout:B,restTimeout:V,handleCloseOptionsRef:_}=Z2(o),ie=Zt(h),se=Zt(m),oe=Zt(p);R&&(_.current=ie.current?.__options);const ae=we(()=>w.current?!0:i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1),I=c.useCallback((Z,H=!0)=>{const K=qf(se.current,"close",M.current);K&&!O.current?B.start(K,()=>o.setOpen(!1,qe(Hn,Z))):H&&(B.clear(),o.setOpen(!1,qe(Hn,Z)))},[se,O,o,M,B]),$=we(()=>{D.current(),O.current=void 0}),Q=we(()=>{if(z.current){const Z=Lt(o.select("domReferenceElement")).body;Z.style.pointerEvents="",Z.removeAttribute(Sd),z.current=!1}});c.useEffect(()=>{if(!d)return;function Z(H){H.open||(B.clear(),V.clear(),N.current=!0,T.current=!1)}return f.on("openchange",Z),()=>{f.off("openchange",Z)}},[d,f,B,V,N,T]);const j=we(Z=>{if(ae()||!i.current.floatingContext)return;const H=o.context.triggerElements;if(Z.relatedTarget&&H.hasElement(Z.relatedTarget))return;const K=b.current;ie.current?.({...i.current.floatingContext,tree:A,x:Z.clientX,y:Z.clientY,onClose(){Q(),$(),!ae()&&K===o.select("domReferenceElement")&&I(Z)}})(Z)});return c.useEffect(()=>{if(!d)return;const Z=b.current??(R?o.select("domReferenceElement"):null);if(!it(Z))return;function H(C){if(B.clear(),N.current=!1,v&&!Qr(M.current)||$f(oe.current)>0&&!qf(se.current,"open"))return;const q=qf(se.current,"open",M.current),k=o.select("domReferenceElement"),ee=o.context.triggerElements,me=(ee.hasElement(C.target)||ee.hasMatchingElement(de=>Pe(de,C.target)))&&(!k||!Pe(k,C.target)),te=C.currentTarget??null,J=!o.select("open")||me;q?B.start(q,()=>{J&&o.setOpen(!0,qe(Hn,C,te))}):J&&o.setOpen(!0,qe(Hn,C,te))}function K(C){if(ae()){Q();return}D.current();const q=o.select("domReferenceElement"),k=Lt(q);V.clear(),T.current=!1;const ee=o.context.triggerElements;if(C.relatedTarget&&ee.hasElement(C.relatedTarget))return;if(ie.current&&i.current.floatingContext){o.select("open")||B.clear();const te=b.current;O.current=ie.current({...i.current.floatingContext,tree:A,x:C.clientX,y:C.clientY,onClose(){Q(),$(),!ae()&&te===o.select("domReferenceElement")&&I(C,!0)}});const J=O.current;J(C),k.addEventListener("mousemove",J),D.current=()=>{k.removeEventListener("mousemove",J)};return}(M.current!=="touch"||!Pe(o.select("floatingElement"),C.relatedTarget))&&I(C)}function ne(C){j(C)}return o.select("open")&&Z.addEventListener("mouseleave",ne),x&&Z.addEventListener("mousemove",H,{once:!0}),Z.addEventListener("mouseenter",H),Z.addEventListener("mouseleave",K),()=>{Z.removeEventListener("mouseleave",ne),x&&Z.removeEventListener("mousemove",H),Z.removeEventListener("mouseenter",H),Z.removeEventListener("mouseleave",K)}},[$,Q,N,i,se,I,o,d,ie,j,R,ae,v,x,M,oe,V,T,B,b,A,D,O]),c.useMemo(()=>{function Z(H){M.current=H.pointerType}return{onPointerDown:Z,onPointerEnter:Z,onMouseMove(H){const{nativeEvent:K}=H,ne=H.currentTarget,C=o.select("domReferenceElement"),q=o.context.triggerElements,k=o.select("open"),ee=(q.hasElement(H.target)||q.hasMatchingElement(te=>Pe(te,H.target)))&&(!C||!Pe(C,H.target));if(v&&!Qr(M.current)||k&&!ee||$f(oe.current)===0||!ee&&T.current&&H.movementX**2+H.movementY**2<2)return;V.clear();function me(){!N.current&&(!k||ee)&&o.setOpen(!0,qe(Hn,K,ne))}M.current==="touch"?al.flushSync(()=>{me()}):ee&&k?me():(T.current=!0,V.start($f(oe.current),me))}}},[N,v,o,M,oe,V,T])}function bi(l=[]){const r=l.map(p=>p?.reference),o=l.map(p=>p?.floating),i=l.map(p=>p?.item),f=l.map(p=>p?.trigger),d=c.useCallback(p=>qs(p,l,"reference"),r),m=c.useCallback(p=>qs(p,l,"floating"),o),h=c.useCallback(p=>qs(p,l,"item"),i),v=c.useCallback(p=>qs(p,l,"trigger"),f);return c.useMemo(()=>({getReferenceProps:d,getFloatingProps:m,getItemProps:h,getTriggerProps:v}),[d,m,h,v])}function qs(l,r,o){const i=new Map,f=o==="item",d={};o==="floating"&&(d.tabIndex=-1,d[hd]="");for(const m in l)f&&l&&(m===$g||m===Wg)||(d[m]=l[m]);for(let m=0;m<r.length;m+=1){let h;const v=r[m]?.[o];typeof v=="function"?h=l?v(l):null:h=v,h&&Wh(d,h,f,i)}return Wh(d,l,f,i),d}function Wh(l,r,o,i){for(const f in r){const d=r[f];o&&(f===$g||f===Wg)||(f.startsWith("on")?(i.has(f)||i.set(f,[]),typeof d=="function"&&(i.get(f)?.push(d),l[f]=(...m)=>i.get(f)?.map(h=>h(...m)).find(h=>h!==void 0))):l[f]=d)}}const T3="Escape";function bu(l,r,o){switch(l){case"vertical":return r;case"horizontal":return o;default:return r||o}}function Ys(l,r){return bu(r,l===Xd||l===vi,l===pa||l===ha)}function Wf(l,r,o){return bu(r,l===vi,o?l===pa:l===ha)||l==="Enter"||l===" "||l===""}function A3(l,r,o){return bu(r,o?l===pa:l===ha,l===vi)}function M3(l,r,o,i){const f=o?l===ha:l===pa,d=l===Xd;return r==="both"||r==="horizontal"&&i&&i>1?l===T3:bu(r,f,d)}function B2(l,r){const o="rootStore"in l?l.rootStore:l,i=o.useState("open"),f=o.useState("floatingElement"),d=o.useState("domReferenceElement"),m=o.context.dataRef,{listRef:h,activeIndex:v,onNavigate:p=()=>{},enabled:x=!0,selectedIndex:b=null,allowEscape:S=!1,loopFocus:R=!1,nested:A=!1,rtl:M=!1,virtual:w=!1,focusItemOnOpen:O="auto",focusItemOnHover:N=!0,openOnArrowKeyDown:z=!0,disabledIndices:D=void 0,orientation:T="vertical",parentOrientation:B,cols:V=1,scrollItemIntoView:_=!0,itemSizes:ie,dense:se=!1,id:oe,resetOnPointerLeave:ae=!0,externalTree:I}=r,$=ci(f),Q=Zt($),j=Zl(),Z=Ea(I);Oe(()=>{m.current.orientation=T},[m,T]);const H=gd(d),K=c.useRef(O),ne=c.useRef(b??-1),C=c.useRef(null),q=c.useRef(!0),k=we(be=>{p(ne.current===-1?null:ne.current,be)}),ee=c.useRef(k),me=c.useRef(!!f),te=c.useRef(i),J=c.useRef(!1),de=c.useRef(!1),he=Zt(D),Te=Zt(i),le=Zt(_),Se=Zt(b),ye=Zt(ae),_e=we(()=>{function be(lt){w?Z?.events.emit("virtualfocus",lt):Qs(lt,{sync:J.current,preventScroll:!0})}const Re=h.current[ne.current],xe=de.current;Re&&be(Re),(J.current?lt=>lt():requestAnimationFrame)(()=>{const lt=h.current[ne.current]||Re;if(!lt)return;Re||be(lt);const Ye=le.current;Ye&&pe&&(xe||!q.current)&<.scrollIntoView?.(typeof Ye=="boolean"?{block:"nearest",inline:"nearest"}:Ye)})});Oe(()=>{x&&(i&&f?(ne.current=b??-1,K.current&&b!=null&&(de.current=!0,k())):me.current&&(ne.current=-1,ee.current()))},[x,i,f,b,k]),Oe(()=>{if(x){if(!i){J.current=!1;return}if(f)if(v==null){if(J.current=!1,Se.current!=null)return;if(me.current&&(ne.current=-1,_e()),(!te.current||!me.current)&&K.current&&(C.current!=null||K.current===!0&&C.current==null)){let be=0;const Re=()=>{h.current[0]==null?(be<2&&(be?requestAnimationFrame:queueMicrotask)(Re),be+=1):(ne.current=C.current==null||Wf(C.current,T,M)||A?Bf(h):jh(h),C.current=null,k())};Re()}}else ii(h,v)||(ne.current=v,_e(),de.current=!1)}},[x,i,f,v,Se,A,h,T,M,k,_e,he]),Oe(()=>{if(!x||f||!Z||w||!me.current)return;const be=Z.nodesRef.current,Re=be.find(lt=>lt.id===j)?.context?.elements.floating,xe=fl(Lt(f)),Ie=be.some(lt=>lt.context&&Pe(lt.context.elements.floating,xe));Re&&!Ie&&q.current&&Re.focus({preventScroll:!0})},[x,f,Z,j,w]),Oe(()=>{ee.current=k,te.current=i,me.current=!!f}),Oe(()=>{i||(C.current=null,K.current=O)},[i,O]);const Ae=v!=null,pe=c.useMemo(()=>{function be(xe){if(!Te.current)return;const Ie=h.current.indexOf(xe.currentTarget);Ie!==-1&&ne.current!==Ie&&(ne.current=Ie,k(xe))}return{onFocus(xe){J.current=!0,be(xe)},onClick:({currentTarget:xe})=>xe.focus({preventScroll:!0}),onMouseMove(xe){J.current=!0,de.current=!1,N&&be(xe)},onPointerLeave(xe){if(!Te.current||!q.current||xe.pointerType==="touch")return;J.current=!0;const Ie=xe.relatedTarget;!N||h.current.includes(Ie)||ye.current&&(ne.current=-1,k(xe),w||Q.current?.focus({preventScroll:!0}))}}},[Te,Q,N,h,k,ye,w]),G=c.useCallback(()=>B??Z?.nodesRef.current.find(be=>be.id===j)?.context?.dataRef?.current.orientation,[j,Z,B]),ge=we(be=>{if(q.current=!1,J.current=!0,be.which===229||!Te.current&&be.currentTarget===Q.current)return;if(A&&M3(be.key,T,M,V)){Ys(be.key,G())||sn(be),o.setOpen(!1,qe(Fs,be.nativeEvent)),Nt(d)&&(w?Z?.events.emit("virtualfocus",d):d.focus());return}const Re=ne.current,xe=Bf(h,D),Ie=jh(h,D);if(H||(be.key==="Home"&&(sn(be),ne.current=xe,k(be)),be.key==="End"&&(sn(be),ne.current=Ie,k(be))),V>1){const lt=ie||Array.from({length:h.current.length},()=>({width:1,height:1})),Ye=Eb(lt,V,se),yt=Ye.findIndex(Rt=>Rt!=null&&!si(h,Rt,D)),bt=Ye.reduce((Rt,ft,je)=>ft!=null&&!si(h,ft,D)?je:Rt,-1),zt=Ye[Sb({current:Ye.map(Rt=>Rt!=null?h.current[Rt]:null)},{event:be,orientation:T,loopFocus:R,rtl:M,cols:V,disabledIndices:Tb([...(typeof D!="function"?D:null)||h.current.map((Rt,ft)=>si(h,ft,D)?ft:void 0),void 0],Ye),minIndex:yt,maxIndex:bt,prevIndex:Rb(ne.current>Ie?xe:ne.current,lt,Ye,V,be.key===vi?"bl":be.key===(M?pa:ha)?"tr":"tl"),stopEvent:!0})];if(zt!=null&&(ne.current=zt,k(be)),T==="both")return}if(Ys(be.key,T)){if(sn(be),i&&!w&&fl(be.currentTarget.ownerDocument)===be.currentTarget){ne.current=Wf(be.key,T,M)?xe:Ie,k(be);return}Wf(be.key,T,M)?R?Re>=Ie?S&&Re!==h.current.length?ne.current=-1:(J.current=!1,ne.current=xe):ne.current=on(h,{startingIndex:Re,disabledIndices:D}):ne.current=Math.min(Ie,on(h,{startingIndex:Re,disabledIndices:D})):R?Re<=xe?S&&Re!==-1?ne.current=h.current.length:(J.current=!1,ne.current=Ie):ne.current=on(h,{startingIndex:Re,decrement:!0,disabledIndices:D}):ne.current=Math.max(xe,on(h,{startingIndex:Re,decrement:!0,disabledIndices:D})),ii(h,ne.current)&&(ne.current=-1),k(be)}}),ve=c.useMemo(()=>w&&i&&Ae&&{"aria-activedescendant":`${oe}-${v}`},[w,i,Ae,oe,v]),Me=c.useMemo(()=>({"aria-orientation":T==="both"?void 0:T,...H?{}:ve,onKeyDown(be){if(be.key==="Tab"&&be.shiftKey&&i&&!w){const Re=fn(be.nativeEvent);if(Re&&!Pe(Q.current,Re))return;sn(be),o.setOpen(!1,qe(Fa,be.nativeEvent)),Nt(d)&&d.focus();return}ge(be)},onPointerMove(){q.current=!0}}),[ve,ge,Q,T,H,o,i,w,d]),fe=c.useMemo(()=>{function be(xe){O==="auto"&&t2(xe.nativeEvent)&&(K.current=!w)}function Re(xe){K.current=O,O==="auto"&&n2(xe.nativeEvent)&&(K.current=!0)}return{onKeyDown(xe){const Ie=o.select("open");q.current=!1;const lt=xe.key.startsWith("Arrow"),Ye=A3(xe.key,G(),M),yt=Ys(xe.key,T),bt=(A?Ye:yt)||xe.key==="Enter"||xe.key.trim()==="";if(w&&Ie)return ge(xe);if(!(!Ie&&!z&<)){if(bt){const zt=Ys(xe.key,G());C.current=A&&zt?null:xe.key}if(A){Ye&&(sn(xe),Ie?(ne.current=Bf(h,he.current),k(xe)):o.setOpen(!0,qe(Fs,xe.nativeEvent,xe.currentTarget)));return}yt&&(Se.current!=null&&(ne.current=Se.current),sn(xe),!Ie&&z?o.setOpen(!0,qe(Fs,xe.nativeEvent,xe.currentTarget)):ge(xe),Ie&&k(xe))}},onFocus(xe){o.select("open")&&!w&&(ne.current=-1,k(xe))},onPointerDown:Re,onPointerEnter:Re,onMouseDown:be,onClick:be}},[ge,he,O,h,A,k,o,z,T,G,M,Se,w]),De=c.useMemo(()=>({...ve,...fe}),[ve,fe]);return c.useMemo(()=>x?{reference:De,floating:Me,item:pe,trigger:fe}:{},[x,De,Me,fe,pe])}const w3=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function q2(l,r={}){const o="rootStore"in l?l.rootStore:l,i=o.useState("open"),f=o.useState("floatingId"),d=o.useState("domReferenceElement"),m=o.useState("floatingElement"),{enabled:h=!0,role:v="dialog"}=r,p=Wa(),x=d?.id||p,b=c.useMemo(()=>ci(m)?.id||f,[m,f]),S=w3.get(v)??v,A=Zl()!=null,M=c.useMemo(()=>S==="tooltip"||v==="label"?Bt:{"aria-haspopup":S==="alertdialog"?"dialog":S,"aria-expanded":"false",...S==="listbox"&&{role:"combobox"},...S==="menu"&&A&&{role:"menuitem"},...v==="select"&&{"aria-autocomplete":"none"},...v==="combobox"&&{"aria-autocomplete":"list"}},[S,A,v]),w=c.useMemo(()=>S==="tooltip"||v==="label"?{[`aria-${v==="label"?"labelledby":"describedby"}`]:i?b:void 0}:{...M,"aria-expanded":i?"true":"false","aria-controls":i?b:void 0,...S==="menu"&&{id:x}},[S,b,i,x,v,M]),O=c.useMemo(()=>{const z={id:b,...S&&{role:S}};return S==="tooltip"||v==="label"?z:{...z,...S==="menu"&&{"aria-labelledby":x}}},[S,b,x,v]),N=c.useCallback(({active:z,selected:D})=>{const T={role:"option",...z&&{id:`${b}-fui-option`}};switch(v){case"select":case"combobox":return{...T,"aria-selected":D}}return{}},[b,v]);return c.useMemo(()=>h?{reference:w,floating:O,item:N,trigger:M}:{},[h,w,O,M,N])}function Y2(l,r){const o="rootStore"in l?l.rootStore:l,i=o.useState("open"),f=o.context.dataRef,{listRef:d,activeIndex:m,onMatch:h,onTypingChange:v,enabled:p=!0,findMatch:x=null,resetMs:b=750,ignoreKeys:S=Fr,selectedIndex:R=null}=r,A=qt(),M=c.useRef(""),w=c.useRef(R??m??-1),O=c.useRef(null);Oe(()=>{i&&(A.clear(),O.current=null,M.current="")},[i,A]),Oe(()=>{i&&M.current===""&&(w.current=R??m??-1)},[i,R,m]);const N=we(B=>{B?f.current.typing||(f.current.typing=B,v?.(B)):f.current.typing&&(f.current.typing=B,v?.(B))}),z=we(B=>{function V(ae,I,$){const Q=x?x(I,$):I.find(j=>j?.toLocaleLowerCase().indexOf($.toLocaleLowerCase())===0);return Q?ae.indexOf(Q):-1}const _=d.current;if(M.current.length>0&&M.current[0]!==" "&&(V(_,_,M.current)===-1?N(!1):B.key===" "&&sn(B)),_==null||S.includes(B.key)||B.key.length!==1||B.ctrlKey||B.metaKey||B.altKey)return;i&&B.key!==" "&&(sn(B),N(!0)),_.every(ae=>ae?ae[0]?.toLocaleLowerCase()!==ae[1]?.toLocaleLowerCase():!0)&&M.current===B.key&&(M.current="",w.current=O.current),M.current+=B.key,A.start(b,()=>{M.current="",w.current=O.current,N(!1)});const se=w.current,oe=V(_,[..._.slice((se||0)+1),..._.slice(0,(se||0)+1)],M.current);oe!==-1?(h?.(oe),O.current=oe):B.key!==" "&&(M.current="",N(!1))}),D=c.useMemo(()=>({onKeyDown:z}),[z]),T=c.useMemo(()=>({onKeyDown:z,onKeyUp(B){B.key===" "&&N(!1)}}),[z,N]);return c.useMemo(()=>p?{reference:D,floating:T}:{},[p,D,T])}function eg(l,r){const[o,i]=l;let f=!1;const d=r.length;for(let m=0,h=d-1;m<d;h=m++){const[v,p]=r[m]||[0,0],[x,b]=r[h]||[0,0];p>=i!=b>=i&&o<=(x-v)*(i-p)/(b-p)+v&&(f=!f)}return f}function C3(l,r){return l[0]>=r.x&&l[0]<=r.x+r.width&&l[1]>=r.y&&l[1]<=r.y+r.height}function O3(l={}){const{buffer:r=.5,blockPointerEvents:o=!1,requireIntent:i=!0}=l,f=new Qa;let d=!1,m=null,h=null,v=typeof performance<"u"?performance.now():0;function p(b,S){const R=performance.now(),A=R-v;if(m===null||h===null||A===0)return m=b,h=S,v=R,null;const M=b-m,w=S-h,N=Math.sqrt(M*M+w*w)/A;return m=b,h=S,v=R,N}const x=({x:b,y:S,placement:R,elements:A,onClose:M,nodeId:w,tree:O})=>function(z){function D(){f.clear(),M()}if(f.clear(),!A.domReference||!A.floating||R==null||b==null||S==null)return;const{clientX:T,clientY:B}=z,V=[T,B],_=fn(z),ie=z.type==="mouseleave",se=Pe(A.floating,_),oe=Pe(A.domReference,_),ae=A.domReference.getBoundingClientRect(),I=A.floating.getBoundingClientRect(),$=R.split("-")[0],Q=b>I.right-I.width/2,j=S>I.bottom-I.height/2,Z=C3(V,ae),H=I.width>ae.width,K=I.height>ae.height,ne=(H?ae:I).left,C=(H?ae:I).right,q=(K?ae:I).top,k=(K?ae:I).bottom;if(se&&(d=!0,!ie))return;if(oe&&(d=!1),oe&&!ie){d=!0;return}if(ie&&it(z.relatedTarget)&&Pe(A.floating,z.relatedTarget)||O&&Xa(O.nodesRef.current,w).some(({context:te})=>te?.open))return;if($==="top"&&S>=ae.bottom-1||$==="bottom"&&S<=ae.top+1||$==="left"&&b>=ae.right-1||$==="right"&&b<=ae.left+1)return D();let ee=[];switch($){case"top":ee=[[ne,ae.top+1],[ne,I.bottom-1],[C,I.bottom-1],[C,ae.top+1]];break;case"bottom":ee=[[ne,I.top+1],[ne,ae.bottom-1],[C,ae.bottom-1],[C,I.top+1]];break;case"left":ee=[[I.right-1,k],[I.right-1,q],[ae.left+1,q],[ae.left+1,k]];break;case"right":ee=[[ae.right-1,k],[ae.right-1,q],[I.left+1,q],[I.left+1,k]];break}function me([te,J]){switch($){case"top":{const de=[H?te+r/2:Q?te+r*4:te-r*4,J+r+1],he=[H?te-r/2:Q?te+r*4:te-r*4,J+r+1],Te=[[I.left,Q||H?I.bottom-r:I.top],[I.right,Q?H?I.bottom-r:I.top:I.bottom-r]];return[de,he,...Te]}case"bottom":{const de=[H?te+r/2:Q?te+r*4:te-r*4,J-r],he=[H?te-r/2:Q?te+r*4:te-r*4,J-r],Te=[[I.left,Q||H?I.top+r:I.bottom],[I.right,Q?H?I.top+r:I.bottom:I.top+r]];return[de,he,...Te]}case"left":{const de=[te+r+1,K?J+r/2:j?J+r*4:J-r*4],he=[te+r+1,K?J-r/2:j?J+r*4:J-r*4];return[...[[j||K?I.right-r:I.left,I.top],[j?K?I.right-r:I.left:I.right-r,I.bottom]],de,he]}case"right":{const de=[te-r,K?J+r/2:j?J+r*4:J-r*4],he=[te-r,K?J-r/2:j?J+r*4:J-r*4],Te=[[j||K?I.left+r:I.right,I.top],[j?K?I.left+r:I.right:I.left+r,I.bottom]];return[de,he,...Te]}default:return[]}}if(!eg([T,B],ee)){if(d&&!Z)return D();if(!ie&&i){const te=p(z.clientX,z.clientY);if(te!==null&&te<.1)return D()}eg([T,B],me([b,S]))?!d&&i&&f.start(40,D):D()}};return x.__options={blockPointerEvents:o},x}const N3=c.createContext(void 0);function G2(l){return c.useContext(N3)}const I2="ArrowUp",X2="ArrowDown",F2="ArrowLeft",Q2="ArrowRight",K2="Home",P2="End",z3=new Set([F2,Q2]),j3=new Set([I2,X2]),H3=new Set([...z3,...j3]);[...H3];const s0=new Set([I2,X2,F2,Q2,K2,P2]);function J2(l){return l==="starting"?B6:Bt}const D3={...ao,...lo},L3=c.forwardRef(function(r,o){const{render:i,className:f,finalFocus:d,...m}=r,{store:h}=$a(),{side:v,align:p}=Ug(),x=G2()!=null,b=h.useState("open"),S=h.useState("transitionStatus"),R=h.useState("popupProps"),A=h.useState("mounted"),M=h.useState("instantType"),w=h.useState("activeTriggerElement"),O=h.useState("parent"),N=h.useState("lastOpenChangeReason"),z=h.useState("rootId"),D=h.useState("floatingRootContext"),T=h.useState("floatingTreeRoot"),B=h.useState("closeDelay"),V=h.useState("activeTriggerElement");xa({open:b,ref:h.context.popupRef,onComplete(){b&&h.context.onOpenChangeComplete?.(!0)}}),c.useEffect(()=>{function I($){h.setOpen(!1,qe($.reason,$.domEvent))}return T.events.on("close",I),()=>{T.events.off("close",I)}},[T.events,h]);const _=h.useState("hoverEnabled"),ie=h.useState("disabled");x3(D,{enabled:_&&!ie&&O.type!=="context-menu"&&O.type!=="menubar",closeDelay:B});const se=c.useMemo(()=>({transitionStatus:S,side:v,align:p,open:b,nested:O.type==="menu",instant:M}),[S,v,p,b,O.type,M]),oe=st("div",r,{state:se,ref:[o,h.context.popupRef],stateAttributesMapping:D3,props:[R,{onKeyDown(I){x&&s0.has(I.key)&&I.stopPropagation()}},J2(S),m,{"data-rootownerid":z}]});let ae=O.type===void 0||O.type==="context-menu";return(w||O.type==="menubar"&&N!==Yd)&&(ae=!0),y.jsx(n0,{context:D,modal:!1,disabled:!A,returnFocus:d===void 0?ae:d,initialFocus:O.type!=="menu",restoreFocus:!0,externalTree:O.type!=="menubar"?T:void 0,previousFocusableElement:V,nextFocusableElement:O.type===void 0?h.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:O.type===void 0?h.context.beforeContentFocusGuardRef:void 0,children:oe})}),$2=c.createContext(void 0);function V3(){const l=c.useContext($2);if(l===void 0)throw new Error(Ft(32));return l}const _3=c.forwardRef(function(r,o){const{keepMounted:i=!1,...f}=r,{store:d}=$a();return d.useState("mounted")||i?y.jsx($2.Provider,{value:i,children:y.jsx(e0,{ref:o,...f})}):null});function u0(l){return Zd(19)?l:l?"true":void 0}const U3=c.createContext(void 0);function W2(){return c.useContext(U3)?.direction??"ltr"}const k3=l=>({name:"arrow",options:l,async fn(r){const{x:o,y:i,placement:f,rects:d,platform:m,elements:h,middlewareData:v}=r,{element:p,padding:x=0,offsetParent:b="real"}=kl(l,r)||{};if(p==null)return{};const S=a2(x),R={x:o,y:i},A=Pd(f),M=Kd(A),w=await m.getDimensions(p),O=A==="y",N=O?"top":"left",z=O?"bottom":"right",D=O?"clientHeight":"clientWidth",T=d.reference[M]+d.reference[A]-R[A]-d.floating[M],B=R[A]-d.reference[A],V=b==="real"?await m.getOffsetParent?.(p):h.floating;let _=h.floating[D]||d.floating[M];(!_||!await m.isElement?.(V))&&(_=h.floating[D]||d.floating[M]);const ie=T/2-B/2,se=_/2-w[M]/2-1,oe=Math.min(S[N],se),ae=Math.min(S[z],se),I=oe,$=_-w[M]-ae,Q=_/2-w[M]/2+ie,j=vd(I,Q,$),Z=!v.arrow&&Sa(f)!=null&&Q!==j&&d.reference[M]/2-(Q<I?oe:ae)-w[M]/2<0,H=Z?Q<I?Q-I:Q-$:0;return{[A]:R[A]+H,data:{[A]:j,centerOffset:Q-j-H,...Z&&{alignmentOffset:H}},reset:Z}}}),Z3=(l,r)=>({...k3(l),options:[l,r]}),B3={name:"hide",async fn(l){const{width:r,height:o,x:i,y:f}=l.rects.reference,d=r===0&&o===0&&i===0&&f===0;return{data:{referenceHidden:(await kx().fn(l)).data?.referenceHidden||d}}}},q3={sideX:"left",sideY:"top"};function e8(l,r,o){const i=l==="inline-start"||l==="inline-end";return{top:"top",right:i?o?"inline-start":"inline-end":"right",bottom:"bottom",left:i?o?"inline-end":"inline-start":"left"}[r]}function tg(l,r,o){const{rects:i,placement:f}=l;return{side:e8(r,Dn(f),o),align:Sa(f)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function t8(l){const{anchor:r,positionMethod:o="absolute",side:i="bottom",sideOffset:f=0,align:d="center",alignOffset:m=0,collisionBoundary:h,collisionPadding:v=5,sticky:p=!1,arrowPadding:x=5,disableAnchorTracking:b=!1,keepMounted:S=!1,floatingRootContext:R,mounted:A,collisionAvoidance:M,shiftCrossAxis:w=!1,nodeId:O,adaptiveOrigin:N,lazyFlip:z=!1,externalTree:D}=l,[T,B]=c.useState(null);!A&&T!==null&&B(null);const V=M.side||"flip",_=M.align||"flip",ie=M.fallbackAxisSide||"end",se=typeof r=="function"?r:void 0,oe=we(se),ae=se?oe:r,I=Zt(r),Q=W2()==="rtl",j=T||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":Q?"left":"right","inline-start":Q?"right":"left"}[i],Z=d==="center"?j:`${j}-${d}`;let H=v;const K=1,ne=i==="bottom"?K:0,C=i==="top"?K:0,q=i==="right"?K:0,k=i==="left"?K:0;typeof H=="number"?H={top:H+ne,right:H+k,bottom:H+C,left:H+q}:H&&(H={top:(H.top||0)+ne,right:(H.right||0)+k,bottom:(H.bottom||0)+C,left:(H.left||0)+q});const ee={boundary:h==="clipping-ancestors"?"clippingAncestors":h,padding:H},me=c.useRef(null),te=Zt(f),J=Zt(m),Te=[Dx(dt=>{const xt=tg(dt,i,Q),jt=typeof te.current=="function"?te.current(xt):te.current,vt=typeof J.current=="function"?J.current(xt):J.current;return{mainAxis:jt,crossAxis:vt,alignmentAxis:vt}},[typeof f!="function"?f:0,typeof m!="function"?m:0,Q,i])],le=_==="none"&&V!=="shift",Se=!le&&(p||w||V==="shift"),ye=V==="none"?null:_x({...ee,padding:{top:H.top+K,right:H.right+K,bottom:H.bottom+K,left:H.left+K},mainAxis:!w&&V==="flip",crossAxis:_==="flip"?"alignment":!1,fallbackAxisSideDirection:ie}),_e=le?null:Lx(dt=>{const xt=rl(dt.elements.floating).documentElement;return{...ee,rootBoundary:w?{x:0,y:0,width:xt.clientWidth,height:xt.clientHeight}:void 0,mainAxis:_!=="none",crossAxis:Se,limiter:p||w?void 0:Vx(jt=>{if(!me.current)return{};const{width:vt,height:Gt}=me.current.getBoundingClientRect(),At=Qn(Dn(jt.placement)),Mt=At==="y"?vt:Gt,mn=At==="y"?H.left+H.right:H.top+H.bottom;return{offset:Mt/2+mn/2}})}},[ee,p,w,H,_]);V==="shift"||_==="shift"||d==="center"?Te.push(_e,ye):Te.push(ye,_e),Te.push(Ux({...ee,apply({elements:{floating:dt},rects:{reference:xt},availableWidth:jt,availableHeight:vt}){Object.entries({"--available-width":`${jt}px`,"--available-height":`${vt}px`,"--anchor-width":`${xt.width}px`,"--anchor-height":`${xt.height}px`}).forEach(([Gt,At])=>{dt.style.setProperty(Gt,At)})}}),Z3(()=>({element:me.current||document.createElement("div"),padding:x,offsetParent:"floating"}),[x]),{name:"transformOrigin",fn(dt){const{elements:xt,middlewareData:jt,placement:vt,rects:Gt,y:At}=dt,Mt=Dn(vt),mn=Qn(Mt),Vn=me.current,Ta=jt.arrow?.x||0,$e=jt.arrow?.y||0,wt=Vn?.clientWidth||0,an=Vn?.clientHeight||0,pn=Ta+wt/2,un=$e+an/2,vl=Math.abs(jt.shift?.y||0),io=Gt.reference.height/2,yl=typeof f=="function"?f(tg(dt,i,Q)):f,so=vl>yl,xi={top:`${pn}px calc(100% + ${yl}px)`,bottom:`${pn}px ${-yl}px`,left:`calc(100% + ${yl}px) ${un}px`,right:`${-yl}px ${un}px`}[Mt],Si=`${pn}px ${Gt.reference.y+io-At}px`;return xt.floating.style.setProperty("--transform-origin",Se&&mn==="y"&&so?Si:xi),{}}},B3,N),Oe(()=>{!A&&R&&R.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[A,R]);const Ae=c.useMemo(()=>({elementResize:!b&&typeof ResizeObserver<"u",layoutShift:!b&&typeof IntersectionObserver<"u"}),[b]),{refs:pe,elements:G,x:ge,y:ve,middlewareData:Me,update:fe,placement:De,context:be,isPositioned:Re,floatingStyles:xe}=h3({rootContext:R,placement:Z,middleware:Te,strategy:o,whileElementsMounted:S?void 0:(...dt)=>Ih(...dt,Ae),nodeId:O,externalTree:D}),{sideX:Ie,sideY:lt}=Me.adaptiveOrigin||q3,Ye=Re?o:"fixed",yt=c.useMemo(()=>N?{position:Ye,[Ie]:ge,[lt]:ve}:{position:Ye,...xe},[N,Ye,Ie,ge,lt,ve,xe]),bt=c.useRef(null);Oe(()=>{if(!A)return;const dt=I.current,xt=typeof dt=="function"?dt():dt,vt=(ng(xt)?xt.current:xt)||null||null;vt!==bt.current&&(pe.setPositionReference(vt),bt.current=vt)},[A,pe,ae,I]),c.useEffect(()=>{if(!A)return;const dt=I.current;typeof dt!="function"&&ng(dt)&&dt.current!==bt.current&&(pe.setPositionReference(dt.current),bt.current=dt.current)},[A,pe,ae,I]),c.useEffect(()=>{if(S&&A&&G.domReference&&G.floating)return Ih(G.domReference,G.floating,fe,Ae)},[S,A,G,fe,Ae]);const zt=Dn(De),Rt=e8(i,zt,Q),ft=Sa(De)||"center",je=!!Me.hide?.referenceHidden;Oe(()=>{z&&A&&Re&&B(zt)},[z,A,Re,zt]);const Be=c.useMemo(()=>({position:"absolute",top:Me.arrow?.y,left:Me.arrow?.x}),[Me.arrow]),Je=Me.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:yt,arrowStyles:Be,arrowRef:me,arrowUncentered:Je,side:Rt,align:ft,physicalSide:zt,anchorHidden:je,refs:pe,context:be,isPositioned:Re,update:fe}),[yt,Be,me,Je,Rt,ft,zt,je,pe,be,Re,fe])}function ng(l){return l!=null&&"current"in l}function n8(l){const{children:r,elementsRef:o,labelsRef:i,onMapChange:f}=l,d=we(f),m=c.useRef(0),h=Rn(G3).current,v=Rn(Y3).current,[p,x]=c.useState(0),b=c.useRef(p),S=we((O,N)=>{v.set(O,N??null),b.current+=1,x(b.current)}),R=we(O=>{v.delete(O),b.current+=1,x(b.current)}),A=c.useMemo(()=>{const O=new Map;return Array.from(v.keys()).filter(z=>z.isConnected).sort(I3).forEach((z,D)=>{const T=v.get(z)??{};O.set(z,{...T,index:D})}),O},[v,p]);Oe(()=>{if(typeof MutationObserver!="function"||A.size===0)return;const O=new MutationObserver(N=>{const z=new Set,D=T=>z.has(T)?z.delete(T):z.add(T);N.forEach(T=>{T.removedNodes.forEach(D),T.addedNodes.forEach(D)}),z.size===0&&(b.current+=1,x(b.current))});return A.forEach((N,z)=>{z.parentElement&&O.observe(z.parentElement,{childList:!0})}),()=>{O.disconnect()}},[A]),Oe(()=>{b.current===p&&(o.current.length!==A.size&&(o.current.length=A.size),i&&i.current.length!==A.size&&(i.current.length=A.size),m.current=A.size),d(A)},[d,A,o,i,p]),Oe(()=>()=>{o.current=[]},[o]),Oe(()=>()=>{i&&(i.current=[])},[i]);const M=we(O=>(h.add(O),()=>{h.delete(O)}));Oe(()=>{h.forEach(O=>O(A))},[h,A]);const w=c.useMemo(()=>({register:S,unregister:R,subscribeMapChange:M,elementsRef:o,labelsRef:i,nextIndexRef:m}),[S,R,M,o,i,m]);return y.jsx(Yg.Provider,{value:w,children:r})}function Y3(){return new Map}function G3(){return new Set}function I3(l,r){const o=l.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_FOLLOWING||o&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:o&Node.DOCUMENT_POSITION_PRECEDING||o&Node.DOCUMENT_POSITION_CONTAINS?1:0}const c0=c.forwardRef(function(r,o){const{cutout:i,...f}=r;let d;if(i){const m=i?.getBoundingClientRect();d=`polygon(
|
|
10
|
+
0% 0%,
|
|
11
|
+
100% 0%,
|
|
12
|
+
100% 100%,
|
|
13
|
+
0% 100%,
|
|
14
|
+
0% 0%,
|
|
15
|
+
${m.left}px ${m.top}px,
|
|
16
|
+
${m.left}px ${m.bottom}px,
|
|
17
|
+
${m.right}px ${m.bottom}px,
|
|
18
|
+
${m.right}px ${m.top}px,
|
|
19
|
+
${m.left}px ${m.top}px
|
|
20
|
+
)`}return y.jsx("div",{ref:o,role:"presentation","data-base-ui-inert":"",...f,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:d}})}),X3=c.forwardRef(function(r,o){const{anchor:i,positionMethod:f="absolute",className:d,render:m,side:h,align:v,sideOffset:p=0,alignOffset:x=0,collisionBoundary:b="clipping-ancestors",collisionPadding:S=5,arrowPadding:R=5,sticky:A=!1,disableAnchorTracking:M=!1,collisionAvoidance:w=Eg,...O}=r,{store:N}=$a(),z=V3(),D=hu(!0),T=N.useState("parent"),B=N.useState("floatingRootContext"),V=N.useState("floatingTreeRoot"),_=N.useState("mounted"),ie=N.useState("open"),se=N.useState("modal"),oe=N.useState("activeTriggerElement"),ae=N.useState("lastOpenChangeReason"),I=N.useState("floatingNodeId"),$=N.useState("floatingParentNodeId");let Q=i,j=p,Z=x,H=v,K=w;T.type==="context-menu"&&(Q=i??T.context?.anchor,H=H??"start",!h&&H!=="center"&&(Z=r.alignOffset??2,j=r.sideOffset??-5));let ne=h,C=H;T.type==="menu"?(ne=ne??"inline-end",C=C??"start",K=r.collisionAvoidance??q6):T.type==="menubar"&&(ne=ne??"bottom",C=C??"start");const q=T.type==="context-menu",k=t8({anchor:Q,floatingRootContext:B,positionMethod:D?"fixed":f,mounted:_,side:ne,sideOffset:j,align:C,alignOffset:Z,arrowPadding:q?0:R,collisionBoundary:b,collisionPadding:S,sticky:A,nodeId:I,keepMounted:z,disableAnchorTracking:M,collisionAvoidance:K,shiftCrossAxis:q,externalTree:V}),ee=c.useMemo(()=>{const Te={};return ie||(Te.pointerEvents="none"),{role:"presentation",hidden:!_,style:{...k.positionerStyles,...Te}}},[ie,_,k.positionerStyles]);c.useEffect(()=>{function Te(le){le.open?(le.parentNodeId===I&&N.set("hoverEnabled",!1),le.nodeId!==I&&le.parentNodeId===N.select("floatingParentNodeId")&&N.setOpen(!1,qe(ai))):le.parentNodeId===I&&le.reason!==ai&&N.set("hoverEnabled",!0)}return V.events.on("menuopenchange",Te),()=>{V.events.off("menuopenchange",Te)}},[N,V.events,I]),c.useEffect(()=>{if(N.select("floatingParentNodeId")==null)return;function Te(le){if(le.open||le.nodeId!==N.select("floatingParentNodeId"))return;const Se=le.reason??ai;N.setOpen(!1,qe(Se))}return V.events.on("menuopenchange",Te),()=>{V.events.off("menuopenchange",Te)}},[V.events,N]),c.useEffect(()=>{function Te(le){!ie||le.nodeId!==N.select("floatingParentNodeId")||le.target&&oe&&oe!==le.target&&N.setOpen(!1,qe(ai))}return V.events.on("itemhover",Te),()=>{V.events.off("itemhover",Te)}},[V.events,ie,oe,N]),c.useEffect(()=>{const Te={open:ie,nodeId:I,parentNodeId:$,reason:N.select("lastOpenChangeReason")};V.events.emit("menuopenchange",Te)},[V.events,ie,N,I,$]);const me=c.useMemo(()=>({open:ie,side:k.side,align:k.align,anchorHidden:k.anchorHidden,nested:T.type==="menu"}),[ie,k.side,k.align,k.anchorHidden,T.type]),te=c.useMemo(()=>({side:k.side,align:k.align,arrowRef:k.arrowRef,arrowUncentered:k.arrowUncentered,arrowStyles:k.arrowStyles,nodeId:k.context.nodeId}),[k.side,k.align,k.arrowRef,k.arrowUncentered,k.arrowStyles,k.context.nodeId]),J=st("div",r,{state:me,stateAttributesMapping:ao,ref:[o,N.useStateSetter("positionerElement")],props:[ee,O]}),de=_&&T.type!=="menu"&&(T.type!=="menubar"&&se&&ae!==Hn||T.type==="menubar"&&T.context.modal);let he=null;return T.type==="menubar"?he=T.context.contentElement:T.type===void 0&&(he=oe),y.jsxs(_g.Provider,{value:te,children:[de&&y.jsx(c0,{ref:T.type==="context-menu"||T.type==="nested-context-menu"?T.context.internalBackdropRef:null,inert:u0(!ie),cutout:he}),y.jsx(Yb,{id:I,children:y.jsx(n8,{elementsRef:N.context.itemDomElements,labelsRef:N.context.itemLabels,children:J})})]})}),l8=c.createContext(void 0);function F3(){const l=c.useContext(l8);if(l===void 0)throw new Error(Ft(34));return l}const Q3=c.memo(c.forwardRef(function(r,o){const{render:i,className:f,value:d,defaultValue:m,onValueChange:h,disabled:v=!1,...p}=r,[x,b]=eu({controlled:d,default:m,name:"MenuRadioGroup"}),S=we(h),R=we((O,N)=>{S?.(O,N),!N.isCanceled&&b(O)}),A=c.useMemo(()=>({disabled:v}),[v]),M=st("div",r,{state:A,ref:o,props:{role:"group","aria-disabled":v||void 0,...p}}),w=c.useMemo(()=>({value:x,setValue:R,disabled:v}),[x,R,v]);return y.jsx(l8.Provider,{value:w,children:M})})),a8=c.createContext(void 0);function K3(){const l=c.useContext(a8);if(l===void 0)throw new Error(Ft(35));return l}const P3=c.forwardRef(function(r,o){const{render:i,className:f,id:d,label:m,nativeButton:h=!1,disabled:v=!1,closeOnClick:p=!1,value:x,...b}=r,S=Id({label:m}),R=Ug(!0),A=er(d),{store:M}=$a(),w=M.useState("isActive",S.index),O=M.useState("itemProps"),{value:N,setValue:z,disabled:D}=F3(),T=D||v,B=N===x,{getItemProps:V,itemRef:_}=Qy({closeOnClick:p,disabled:T,highlighted:w,id:A,store:M,nativeButton:h,nodeId:R?.nodeId,itemMetadata:Fy}),ie=c.useMemo(()=>({disabled:T,highlighted:w,checked:B}),[T,w,B]),se=we(ae=>{const I={...qe(qr,ae.nativeEvent),preventUnmountOnClose:()=>{}};z(x,I)}),oe=st("div",r,{state:ie,stateAttributesMapping:Ig,props:[O,{role:"menuitemradio","aria-checked":B,onClick:se},b,V],ref:[_,o,S.ref]});return y.jsx(a8.Provider,{value:ie,children:oe})}),J3=c.forwardRef(function(r,o){const{render:i,className:f,keepMounted:d=!1,...m}=r,h=K3(),v=c.useRef(null),{transitionStatus:p,setMounted:x}=gi(h.checked);xa({open:h.checked,ref:v,onComplete(){h.checked||x(!1)}});const b=c.useMemo(()=>({checked:h.checked,disabled:h.disabled,highlighted:h.highlighted,transitionStatus:p}),[h.checked,h.disabled,h.highlighted,p]);return st("span",r,{state:b,stateAttributesMapping:Ig,ref:[o,v],props:{"aria-hidden":!0,...m},enabled:d||h.checked})});let lg={},ag={},rg="";function $3(l){if(typeof document>"u")return!1;const r=rl(l);return Yt(r).innerWidth-r.documentElement.clientWidth>0}function W3(l){const r=rl(l),o=r.documentElement,i=r.body,f=Pa(o)?o:i,d=f.style.overflow;return f.style.overflow="hidden",()=>{f.style.overflow=d}}function eS(l){const r=rl(l),o=r.documentElement,i=r.body,f=Yt(o);let d=0,m=0;const h=cl.create(),v=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(Kg&&(f.visualViewport?.scale??1)!==1)return()=>{};function p(){const S=f.getComputedStyle(o),R=f.getComputedStyle(i),w=(S.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";d=o.scrollTop,m=o.scrollLeft,lg={scrollbarGutter:o.style.scrollbarGutter,overflowY:o.style.overflowY,overflowX:o.style.overflowX},rg=o.style.scrollBehavior,ag={position:i.style.position,height:i.style.height,width:i.style.width,boxSizing:i.style.boxSizing,overflowY:i.style.overflowY,overflowX:i.style.overflowX,scrollBehavior:i.style.scrollBehavior};const O=o.scrollHeight>o.clientHeight,N=o.scrollWidth>o.clientWidth,z=S.overflowY==="scroll"||R.overflowY==="scroll",D=S.overflowX==="scroll"||R.overflowX==="scroll",T=Math.max(0,f.innerWidth-o.clientWidth),B=Math.max(0,f.innerHeight-o.clientHeight),V=parseFloat(R.marginTop)+parseFloat(R.marginBottom),_=parseFloat(R.marginLeft)+parseFloat(R.marginRight),ie=Pa(o)?o:i;if(v){o.style.scrollbarGutter=w,ie.style.overflowY="hidden",ie.style.overflowX="hidden";return}Object.assign(o.style,{scrollbarGutter:w,overflowY:"hidden",overflowX:"hidden"}),(O||z)&&(o.style.overflowY="scroll"),(N||D)&&(o.style.overflowX="scroll"),Object.assign(i.style,{position:"relative",height:V||B?`calc(100dvh - ${V+B}px)`:"100dvh",width:_||T?`calc(100vw - ${_+T}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),i.scrollTop=d,i.scrollLeft=m,o.setAttribute("data-base-ui-scroll-locked",""),o.style.scrollBehavior="unset"}function x(){Object.assign(o.style,lg),Object.assign(i.style,ag),v||(o.scrollTop=d,o.scrollLeft=m,o.removeAttribute("data-base-ui-scroll-locked"),o.style.scrollBehavior=rg)}function b(){x(),h.request(p)}return p(),f.addEventListener("resize",b),()=>{h.cancel(),x(),typeof f.removeEventListener=="function"&&f.removeEventListener("resize",b)}}class tS{lockCount=0;restore=null;timeoutLock=Qa.create();timeoutUnlock=Qa.create();acquire(r){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(r)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(r){if(this.lockCount===0||this.restore!==null)return;const i=rl(r).documentElement,f=Yt(i).getComputedStyle(i).overflowY;if(f==="hidden"||f==="clip"){this.restore=jn;return}const d=nb||!$3(r);this.restore=d?W3(r):eS(r)}}const nS=new tS;function f0(l=!0,r=null){Oe(()=>{if(l)return nS.acquire(r)},[l,r])}const lS=c.createContext(null);function r8(l){return c.useContext(lS)}function aS(l){const r=c.useRef(""),o=c.useCallback(f=>{f.defaultPrevented||(r.current=f.pointerType,l(f,f.pointerType))},[l]);return{onClick:c.useCallback(f=>{if(f.detail===0){l(f,"keyboard");return}"pointerType"in f&&l(f,f.pointerType),l(f,r.current),r.current=""},[l]),onPointerDown:o}}function d0(l){const[r,o]=c.useState(null),i=we((h,v)=>{l||o(v)}),f=c.useCallback(()=>{o(null)},[]),{onClick:d,onPointerDown:m}=aS(i);return c.useMemo(()=>({openMethod:r,reset:f,triggerProps:{onClick:d,onPointerDown:m}}),[r,f,d,m])}const rS={..._2,disabled:Ee(l=>l.parent.type==="menubar"&&l.parent.context.disabled||l.disabled),modal:Ee(l=>(l.parent.type===void 0||l.parent.type==="context-menu")&&(l.modal??!0)),allowMouseEnter:Ee(l=>l.parent.type==="menu"?l.parent.store.select("allowMouseEnter"):l.allowMouseEnter),stickIfOpen:Ee(l=>l.stickIfOpen),parent:Ee(l=>l.parent),rootId:Ee(l=>l.parent.type==="menu"?l.parent.store.select("rootId"):l.parent.type!==void 0?l.parent.context.rootId:l.rootId),activeIndex:Ee(l=>l.activeIndex),isActive:Ee((l,r)=>l.activeIndex===r),hoverEnabled:Ee(l=>l.hoverEnabled),instantType:Ee(l=>l.instantType),lastOpenChangeReason:Ee(l=>l.openChangeReason),floatingTreeRoot:Ee(l=>l.parent.type==="menu"?l.parent.store.select("floatingTreeRoot"):l.floatingTreeRoot),floatingNodeId:Ee(l=>l.floatingNodeId),floatingParentNodeId:Ee(l=>l.floatingParentNodeId),itemProps:Ee(l=>l.itemProps),closeDelay:Ee(l=>l.closeDelay),keyboardEventRelay:Ee(l=>{if(l.keyboardEventRelay)return l.keyboardEventRelay;if(l.parent.type==="menu")return l.parent.store.select("keyboardEventRelay")})};class m0 extends o0{constructor(r){super({...oS(),...r},{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new yu},rS),this.observe(Ee(o=>o.allowMouseEnter),(o,i)=>{this.state.parent.type==="menu"&&o!==i&&this.state.parent.store.set("allowMouseEnter",o)}),this.unsubscribeParentListener=this.observe("parent",o=>{if(this.unsubscribeParentListener?.(),o.type==="menu"){this.unsubscribeParentListener=o.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=o.store.context.allowMouseUpTriggerRef;return}o.type!==void 0&&(this.context.allowMouseUpTriggerRef=o.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(r,o){this.state.floatingRootContext.context.events.emit("setOpen",{open:r,eventDetails:o})}static useStore(r,o){return Rn(()=>r??new m0(o)).current}unsubscribeParentListener=null}function oS(){return{...V2(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new $d,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Bt,keyboardEventRelay:void 0,closeDelay:0}}const iS=c.createContext(void 0);function sS(){return c.useContext(iS)}function uS(l){const{children:r,open:o,onOpenChange:i,onOpenChangeComplete:f,defaultOpen:d=!1,disabled:m=!1,modal:h,loopFocus:v=!0,orientation:p="vertical",actionsRef:x,closeParentOnEsc:b=!1,handle:S,triggerId:R,defaultTriggerId:A=null,highlightItemOnHover:M=!0}=l,w=hu(!0),O=$a(!0),N=r8(),z=sS(),D=c.useMemo(()=>z&&O?{type:"menu",store:O.store}:N?{type:"menubar",context:N}:w&&!O?{type:"context-menu",context:w}:{type:void 0},[w,O,N,z]),T=m0.useStore(S?.store,{parent:D}),B=T.useState("floatingTreeRoot"),V=y2(B),_=Zl();Oe(()=>{w&&!O?T.update({parent:{type:"context-menu",context:w},floatingNodeId:V,floatingParentNodeId:_}):O&&T.update({floatingNodeId:V,floatingParentNodeId:_})},[w,O,V,_,T]),T.useControlledProp("open",o,d),T.useControlledProp("activeTriggerId",R,A),T.useContextCallback("onOpenChangeComplete",f);const ie=T.useState("open"),se=T.useState("activeTriggerElement"),oe=T.useState("positionerElement"),ae=T.useState("hoverEnabled"),I=T.useState("modal"),$=T.useState("disabled"),Q=T.useState("lastOpenChangeReason"),j=T.useState("parent"),Z=T.useState("activeIndex"),H=T.useState("payload"),K=T.useState("floatingParentNodeId"),ne=c.useRef(null),C=K!=null;let q;T.useSyncedValues({disabled:m,modal:j.type===void 0?h:void 0,rootId:Wa()});const{openMethod:k,triggerProps:ee,reset:me}=d0(ie);D2(T);const{forceUnmount:te}=L2(ie,T,()=>{T.update({allowMouseEnter:!1,stickIfOpen:!0}),me()}),J=c.useRef(j.type!=="context-menu"),de=qt();c.useEffect(()=>{if(ie||(ne.current=null),j.type==="context-menu"){if(!ie){de.clear(),J.current=!1;return}de.start(500,()=>{J.current=!0})}},[de,ie,j.type]),f0(ie&&I&&Q!==Hn&&k!=="touch",oe),Oe(()=>{!ie&&!ae&&T.set("hoverEnabled",!0)},[ie,ae,T]);const he=c.useRef(!0),Te=qt(),le=we((je,Be)=>{const Je=Be.reason;if(ie===je&&Be.trigger===se||(Be.preventUnmountOnClose=()=>{T.set("preventUnmountingOnClose",!0)},!je&&Be.trigger==null&&(Be.trigger=se??void 0),i?.(je,Be),Be.isCanceled))return;const dt={open:je,nativeEvent:Be.event,reason:Be.reason,nested:C};q?.emit("openchange",dt);const xt=Be.event;if(je===!1&&xt?.type==="click"&&xt.pointerType==="touch"&&!he.current)return;if(!je&&Z!==null){const At=T.context.itemDomElements.current[Z];queueMicrotask(()=>{At?.setAttribute("tabindex","-1")})}je&&Je===Ws?(he.current=!1,Te.start(300,()=>{he.current=!0})):(he.current=!0,Te.clear());const jt=(Je===Ia||Je===qr)&&xt.detail===0&&xt?.isTrusted,vt=!je&&(Je===Gd||Je==null);function Gt(){const At={open:je,openChangeReason:Je};ne.current=Be.event??null;const Mt=Be.trigger?.id??null;(Mt||je)&&(At.activeTriggerId=Mt,At.activeTriggerElement=Be.trigger??null),T.update(At)}Je===Hn?al.flushSync(Gt):Gt(),j.type==="menubar"&&(Je===Ws||Je===Fa||Je===Hn||Je===Fs||Je===ai)?T.set("instantType","group"):jt||vt?T.set("instantType",jt?"click":"dismiss"):T.set("instantType",void 0)}),Se=c.useCallback(je=>{const Be=qe(je);return Be.preventUnmountOnClose=()=>{T.set("preventUnmountingOnClose",!0)},Be},[T]),ye=c.useCallback(()=>{T.setOpen(!1,Se(qg))},[T,Se]);c.useImperativeHandle(x,()=>({unmount:te,close:ye}),[te,ye]);let _e;j.type==="context-menu"&&(_e=j.context),c.useImperativeHandle(_e?.positionerRef,()=>oe,[oe]),c.useImperativeHandle(_e?.actionsRef,()=>({setOpen:le}),[le]);const Ae=k2({popupStore:T,onOpenChange:le});q=Ae.context.events,c.useEffect(()=>{const je=({open:Be,eventDetails:Je})=>le(Be,Je);return q.on("setOpen",je),()=>{q?.off("setOpen",je)}},[q,le]);const pe=r0(Ae,{enabled:!$,bubbles:b&&j.type==="menu",outsidePress(){return j.type!=="context-menu"||ne.current?.type==="contextmenu"?!0:J.current},externalTree:C?B:void 0}),G=q2(Ae,{role:"menu"}),ge=W2(),ve=c.useCallback(je=>{T.select("activeIndex")!==je&&T.set("activeIndex",je)},[T]),Me=B2(Ae,{enabled:!$,listRef:T.context.itemDomElements,activeIndex:Z,nested:j.type!==void 0,loopFocus:v,orientation:p,parentOrientation:j.type==="menubar"?j.context.orientation:void 0,rtl:ge==="rtl",disabledIndices:Fr,onNavigate:ve,openOnArrowKeyDown:j.type!=="context-menu",externalTree:C?B:void 0,focusItemOnHover:M}),fe=c.useCallback(je=>{T.context.typingRef.current=je},[T]),De=Y2(Ae,{listRef:T.context.itemLabels,activeIndex:Z,resetMs:k6,onMatch:je=>{ie&&je!==Z&&T.set("activeIndex",je)},onTypingChange:fe}),{getReferenceProps:be,getFloatingProps:Re,getItemProps:xe,getTriggerProps:Ie}=bi([pe,G,Me,De]),lt=c.useMemo(()=>{const je=va(be(),{onMouseEnter(){T.set("hoverEnabled",!0)},onMouseMove(){T.set("allowMouseEnter",!0)}},ee);return delete je.role,je},[be,T,ee]),Ye=c.useMemo(()=>{const je=Ie();if(!je)return je;const Be=va(je,ee);return delete Be.role,delete Be["aria-controls"],Be},[Ie,ee]),yt=hi(),bt=c.useMemo(()=>Re({onMouseEnter(){j.type==="menu"&&yt.request(()=>T.set("hoverEnabled",!1))},onMouseMove(){T.set("allowMouseEnter",!0)},onClick(){T.select("hoverEnabled")&&T.set("hoverEnabled",!1)},onKeyDown(je){const Be=T.select("keyboardEventRelay");Be&&!je.isPropagationStopped()&&Be(je)}}),[Re,j.type,yt,T]),zt=c.useMemo(()=>xe(),[xe]);T.useSyncedValues({floatingRootContext:Ae,activeTriggerProps:lt,inactiveTriggerProps:Ye,popupProps:bt,itemProps:zt});const Rt=c.useMemo(()=>({store:T,parent:D}),[T,D]),ft=y.jsx(kg.Provider,{value:Rt,children:typeof r=="function"?r({payload:H}):r});return j.type===void 0||j.type==="context-menu"?y.jsx(Gb,{externalTree:B,children:ft}):ft}function o8(l){const r=l.getBoundingClientRect(),o=window.getComputedStyle(l,"::before"),i=window.getComputedStyle(l,"::after");if(!(o.content!=="none"||i.content!=="none"))return r;const d=parseFloat(o.width)||0,m=parseFloat(o.height)||0,h=parseFloat(i.width)||0,v=parseFloat(i.height)||0,p=Math.max(r.width,d,h),x=Math.max(r.height,m,v),b=p-r.width,S=x-r.height;return{left:r.left-b/2,right:r.right+b/2,top:r.top-S/2,bottom:r.bottom+S/2}}function cS(l={}){const{highlightItemOnHover:r,highlightedIndex:o,onHighlightedIndexChange:i}=kd(),{ref:f,index:d}=Id(l),m=o===d,h=c.useRef(null),v=ya(f,h);return{compositeProps:c.useMemo(()=>({tabIndex:m?0:-1,onFocus(){i(d)},onMouseMove(){const x=h.current;if(!r||!x)return;const b=x.hasAttribute("disabled")||x.ariaDisabled==="true";!m&&!b&&x.focus()}}),[m,i,d,r]),compositeRef:v,index:d}}function fS(l){const{render:r,className:o,state:i=Bt,props:f=Fr,refs:d=Fr,metadata:m,stateAttributesMapping:h,tag:v="div",...p}=l,{compositeProps:x,compositeRef:b}=cS({metadata:m});return st(v,l,{state:i,ref:[...d,b],props:[x,...f,p],stateAttributesMapping:h})}function i8(l){if(Nt(l)&&l.hasAttribute("data-rootownerid"))return l.getAttribute("data-rootownerid")??void 0;if(!dl(l))return i8(pl(l))}function dS(l){const{enabled:r=!0,mouseDownAction:o,open:i}=l,f=c.useRef(!1);return c.useMemo(()=>r?{onMouseDown:d=>{(o==="open"&&!i||o==="close"&&i)&&(f.current=!0,rl(d.currentTarget).addEventListener("click",()=>{f.current=!1},{once:!0}))},onClick:d=>{f.current&&(f.current=!1,d.preventBaseUIHandler())}}:Bt,[r,o,i])}const Gs=2,mS=c.forwardRef(function(r,o){const{render:i,className:f,disabled:d=!1,nativeButton:m=!0,id:h,openOnHover:v,delay:p=100,closeDelay:x=0,handle:b,payload:S,...R}=r,A=$a(!0),M=b?.store??A?.store;if(!M)throw new Error(Ft(85));const w=er(h),O=M.useState("isTriggerActive",w),N=M.useState("floatingRootContext"),z=M.useState("isOpenedByTrigger",w),D=c.useRef(null),T=hS(),B=kd(!0),V=Ea(),_=c.useMemo(()=>V??new $d,[V]),ie=y2(_),se=Zl(),{registerTrigger:oe,isMountedByThisTrigger:ae}=H2(w,D,M,{payload:S,closeDelay:x,parent:T,floatingTreeRoot:_,floatingNodeId:ie,floatingParentNodeId:se,keyboardEventRelay:B?.relayKeyboardEvent}),I=M.useState("disabled"),$=d||I||T.type==="menubar"&&T.context.disabled,{getButtonProps:Q,buttonRef:j}=Ja({disabled:$,native:m});c.useEffect(()=>{!z&&T.type===void 0&&(M.context.allowMouseUpTriggerRef.current=!1)},[M,z,T.type]);const Z=c.useRef(null),H=qt(),K=we(G=>{if(!Z.current)return;H.clear(),M.context.allowMouseUpTriggerRef.current=!1;const ge=G.target;if(Pe(Z.current,ge)||Pe(M.select("positionerElement"),ge)||ge===Z.current||ge!=null&&i8(ge)===M.select("rootId"))return;const ve=o8(Z.current);G.clientX>=ve.left-Gs&&G.clientX<=ve.right+Gs&&G.clientY>=ve.top-Gs&&G.clientY<=ve.bottom+Gs||_.events.emit("close",{domEvent:G,reason:Bg})});c.useEffect(()=>{z&&M.select("lastOpenChangeReason")===Hn&&rl(Z.current).addEventListener("mouseup",K,{once:!0})},[z,K,M]);const ne=T.type==="menubar"&&T.context.hasSubmenuOpen,q=R3(N,{enabled:(v??ne??!1)&&!$&&T.type!=="context-menu"&&(T.type!=="menubar"||ne&&!ae),handleClose:O3({blockPointerEvents:T.type!=="menubar"}),mouseOnly:!0,move:!1,restMs:T.type===void 0?p:void 0,delay:{close:x},triggerElementRef:D,externalTree:_,isActiveTrigger:O}),k=pS(z,M.select("lastOpenChangeReason")),ee=l0(N,{enabled:!$&&T.type!=="context-menu",event:z&&T.type==="menubar"?"click":"mousedown",toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0?k:!1}),me=g3(N,{enabled:!$&&(T.type!=="menubar"&&z||ne)}),te=dS({open:z,enabled:T.type==="menubar",mouseDownAction:"open"}),J=bi([ee,me]),de=T.type==="menubar",he=c.useMemo(()=>({disabled:$,open:z}),[$,z]),Te=M.useState("triggerProps",ae),le=[Z,o,j,oe,D],Se=[J.getReferenceProps(),q??Bt,Te,{"aria-haspopup":"menu",id:w,onMouseDown:G=>{if(M.select("open"))return;H.start(200,()=>{M.context.allowMouseUpTriggerRef.current=!0}),rl(G.currentTarget).addEventListener("mouseup",K,{once:!0})}},de?{role:"menuitem"}:{},te,R,Q],ye=c.useRef(null),_e=we(G=>{al.flushSync(()=>{M.setOpen(!1,qe(Fa,G.nativeEvent,G.currentTarget))}),Bb(ye.current)?.focus()}),Ae=we(G=>{const ge=M.select("positionerElement");if(ge&&Yr(G,ge))M.context.beforeContentFocusGuardRef.current?.focus();else{al.flushSync(()=>{M.setOpen(!1,qe(Fa,G.nativeEvent,G.currentTarget))});let ve=Zb(D.current);for(;ve!==null&&Pe(ge,ve)||ve?.hasAttribute("aria-hidden");){const Me=ve;if(ve=Jd(ve),ve===Me)break}ve?.focus()}}),pe=st("button",r,{enabled:!de,stateAttributesMapping:md,state:he,ref:le,props:Se});return de?y.jsx(fS,{tag:"button",render:i,className:f,state:he,refs:le,props:Se,stateAttributesMapping:md}):z?y.jsxs(c.Fragment,{children:[y.jsx($r,{ref:ye,onFocus:_e},`${w}-pre-focus-guard`),y.jsx(c.Fragment,{children:pe},w),y.jsx($r,{ref:M.context.triggerFocusTargetRef,onFocus:Ae},`${w}-post-focus-guard`)]}):y.jsx(c.Fragment,{children:pe},w)});function pS(l,r){const o=qt(),[i,f]=c.useState(!1);return Oe(()=>{l&&r==="trigger-hover"?(f(!0),o.start(Z6,()=>{f(!1)})):l||(o.clear(),f(!1))},[l,r,o]),i}function hS(){const l=hu(!0),r=$a(!0),o=r8();return c.useMemo(()=>o?{type:"menubar",context:o}:l&&!r?{type:"context-menu",context:l}:{type:void 0},[l,r,o])}const gS=c.forwardRef(function(r,o){const{className:i,render:f,orientation:d="horizontal",...m}=r,h=c.useMemo(()=>({orientation:d}),[d]);return st("div",r,{state:h,ref:o,props:[{role:"separator","aria-orientation":d},m]})});function vS({...l}){return y.jsx(uS,{"data-slot":"dropdown-menu",...l})}function yS({...l}){return y.jsx(mS,{"data-slot":"dropdown-menu-trigger",...l})}function bS({align:l="start",alignOffset:r=0,side:o="bottom",sideOffset:i=4,className:f,...d}){return y.jsx(_3,{children:y.jsx(X3,{className:"isolate z-50 outline-none",align:l,alignOffset:r,side:o,sideOffset:i,children:y.jsx(L3,{"data-slot":"dropdown-menu-content",className:nt("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 bg-popover text-popover-foreground min-w-32 rounded-none shadow-md ring-1 duration-100 z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",f),...d})})})}function xS({...l}){return y.jsx(Q3,{"data-slot":"dropdown-menu-radio-group",...l})}function ed({className:l,children:r,...o}){return y.jsxs(P3,{"data-slot":"dropdown-menu-radio-item",className:nt("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",l),...o,children:[y.jsx("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none","data-slot":"dropdown-menu-radio-item-indicator",children:y.jsx(J3,{children:y.jsx(Ld,{})})}),r]})}const s8=c.createContext(void 0);function SS({children:l,defaultTheme:r="system",storageKey:o="vite-ui-theme",...i}){const[f,d]=c.useState(()=>localStorage.getItem(o)||r);c.useEffect(()=>{const h=window.document.documentElement;if(h.classList.remove("light","dark"),f==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";h.classList.add(v);return}h.classList.add(f)},[f]);const m=c.useMemo(()=>({theme:f,setTheme:h=>{localStorage.setItem(o,h),d(h)}}),[o,f]);return y.jsx(s8.Provider,{...i,value:m,children:l})}const ES=()=>{const l=c.useContext(s8);if(l===void 0)throw new Error("useTheme must be used within a ThemeProvider");return l};function RS(){const{theme:l,setTheme:r}=ES();return y.jsxs(vS,{children:[y.jsxs(yS,{render:y.jsx(ln,{variant:"outline",size:"icon"}),children:[y.jsx(ad,{className:"size-4 scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90"}),y.jsx(ld,{className:"absolute size-4 scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0"}),y.jsx("span",{className:"sr-only",children:"Toggle theme"})]}),y.jsx(bS,{align:"end",className:"w-40",children:y.jsxs(xS,{value:l,onValueChange:o=>r(o),children:[y.jsxs(ed,{value:"light",children:[y.jsx(ad,{}),"Light"]}),y.jsxs(ed,{value:"dark",children:[y.jsx(ld,{}),"Dark"]}),y.jsxs(ed,{value:"system",children:[y.jsx(hg,{}),"System"]})]})})]})}function TS(l){return st(l.defaultTagName??"div",l,l)}const AS=Bd("h-5 gap-1 rounded-none border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! 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 transition-colors 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",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 En({className:l,variant:r="default",render:o,...i}){return TS({defaultTagName:"span",props:va({className:nt(AS({className:l,variant:r}))},i),render:o,state:{slot:"badge",variant:r}})}function Fn({className:l,size:r="default",...o}){return y.jsx("div",{"data-slot":"card","data-size":r,className:nt("ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-none py-4 text-xs/relaxed ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-2 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-none *:[img:last-child]:rounded-none group/card flex flex-col",l),...o})}function el({className:l,...r}){return y.jsx("div",{"data-slot":"card-header",className:nt("gap-1 rounded-none px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",l),...r})}function tl({className:l,...r}){return y.jsx("div",{"data-slot":"card-title",className:nt("text-sm font-medium group-data-[size=sm]/card:text-sm",l),...r})}function nl({className:l,...r}){return y.jsx("div",{"data-slot":"card-description",className:nt("text-muted-foreground text-xs/relaxed",l),...r})}function uu({className:l,...r}){return y.jsx("div",{"data-slot":"card-action",className:nt("col-start-2 row-span-2 row-start-1 self-start justify-self-end",l),...r})}function ll({className:l,...r}){return y.jsx("div",{"data-slot":"card-content",className:nt("px-4 group-data-[size=sm]/card:px-3",l),...r})}function Ed({className:l,...r}){return y.jsx("div",{"data-slot":"card-footer",className:nt("rounded-none border-t p-4 group-data-[size=sm]/card:p-3 flex items-center",l),...r})}function p0({className:l,orientation:r="horizontal",...o}){return y.jsx(gS,{"data-slot":"separator",orientation:r,className:nt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",l),...o})}const MS=[{key:"captures",label:"Captures",icon:y.jsx(mg,{})},{key:"templates",label:"Templates",icon:y.jsx(fg,{})},{key:"run",label:"Run",icon:y.jsx(Vd,{})},{key:"settings",label:"Settings",icon:y.jsx(pg,{})}];async function Kn(l,r){const o=await fetch(l,{...r,headers:{...r?.headers||{},...r?.body?{"Content-Type":"application/json"}:{}}}),d=(o.headers.get("content-type")||"").includes("application/json")?await o.json().catch(()=>null):await o.text();if(!o.ok){const m=d&&typeof d=="object"&&"error"in d&&d.error||o.statusText||"Request failed";throw new Error(String(m))}return d}async function wS(){return Kn("/health")}async function CS(l){const r=new URLSearchParams;r.set("limit",String(l.limit)),l?.provider&&r.set("provider",l.provider),l?.q&&r.set("q",l.q);const o=r.toString();return Kn(`/api/captures${o?`?${o}`:""}`)}async function OS(l){return Kn(`/api/captures/${encodeURIComponent(l)}`)}async function NS(l){return Kn(`/api/captures/${encodeURIComponent(l)}`,{method:"DELETE"})}async function zS(){return Kn("/api/captures",{method:"DELETE"})}async function jS(l){return Kn("/api/replay",{method:"POST",body:JSON.stringify(l)})}async function u8(){return Kn("/api/templates/local")}async function c8(l){const r=l?.refresh?"?refresh=true":"";return Kn(`/api/templates/remote${r}`)}async function HS(l){return Kn("/api/templates/download",{method:"POST",body:JSON.stringify({id:l})})}async function DS(){return Kn("/api/templates/download-all",{method:"POST",body:JSON.stringify({})})}async function LS(l){return Kn("/api/run",{method:"POST",body:JSON.stringify(l)})}async function VS(l){return Kn("/api/templates/from-capture",{method:"POST",body:JSON.stringify(l)})}function _S({className:l,...r}){return y.jsx("label",{"data-slot":"label",className:nt("gap-2 text-xs leading-none group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",l),...r})}function Wr({className:l,...r}){return y.jsx("div",{"data-slot":"field-group",className:nt("gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col",l),...r})}const US=Bd("data-[invalid=true]:text-destructive gap-2 group/field flex w-full",{variants:{orientation:{vertical:"flex-col [&>*]:w-full [&>.sr-only]:w-auto",horizontal:"flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",responsive:"flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"}},defaultVariants:{orientation:"vertical"}});function Pt({className:l,orientation:r="vertical",...o}){return y.jsx("div",{role:"group","data-slot":"field","data-orientation":r,className:nt(US({orientation:r}),l),...o})}function Jt({className:l,...r}){return y.jsx(_S,{"data-slot":"field-label",className:nt("has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-none has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2 group/field-label peer/field-label flex w-fit leading-snug","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col",l),...r})}function ga({className:l,...r}){return y.jsx("p",{"data-slot":"field-description",className:nt("text-muted-foreground text-left text-xs/relaxed [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",l),...r})}let og=(function(l){return l.disabled="data-disabled",l.valid="data-valid",l.invalid="data-invalid",l.touched="data-touched",l.dirty="data-dirty",l.filled="data-filled",l.focused="data-focused",l})({});const kS={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},f8={valid(l){return l===null?null:l?{[og.valid]:""}:{[og.invalid]:""}}},ZS=c.createContext({invalid:void 0,name:void 0,validityData:{state:kS,errors:[],error:"",value:"",initialValue:null},setValidityData:jn,disabled:void 0,touched:!1,setTouched:jn,dirty:!1,setDirty:jn,filled:!1,setFilled:jn,focused:!1,setFocused:jn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},markedDirtyRef:{current:!1},validation:{getValidationProps:(l=Bt)=>l,getInputValidationProps:(l=Bt)=>l,inputRef:{current:null},commit:async()=>{}}});function mi(l=!0){const r=c.useContext(ZS);if(r.setValidityData===jn&&!l)throw new Error(Ft(28));return r}const BS=c.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:jn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function d8(){return c.useContext(BS)}const qS=c.createContext({controlId:void 0,setControlId:jn,labelId:void 0,setLabelId:jn,messageIds:[],setMessageIds:jn,getDescriptionProps:l=>l});function xu(){return c.useContext(qS)}function YS(l,r){return{...l,state:{...l.state,valid:!r&&l.state.valid}}}function m8(l={}){const{id:r,implicit:o=!1,controlRef:i}=l,{controlId:f,setControlId:d}=xu(),m=er(r);return Oe(()=>{if(!(!o&&!r||d===jn)){if(o){const h=i?.current;it(h)&&h.closest("label")!=null?d(r??null):d(f??m)}else r&&d(r);return()=>{r&&d(void 0)}}},[r,i,f,d,o,m]),f??m}function p8(l){const{enabled:r=!0,value:o,id:i,name:f,controlRef:d,commit:m}=l,{formRef:h}=d8(),{invalid:v,markedDirtyRef:p,validityData:x,setValidityData:b}=mi(),S=we(l.getValue);Oe(()=>{if(!r)return;let R=o;R===void 0&&(R=S()),x.initialValue===null&&R!==null&&b(A=>({...A,initialValue:R}))},[r,b,o,x.initialValue,S]),Oe(()=>{!r||!i||h.current.fields.set(i,{getValue:S,name:f,controlRef:d,validityData:YS(x,v),validate(){let R=o;R===void 0&&(R=S()),p.current=!0,al.flushSync(()=>m(R))}})},[m,d,r,h,S,i,v,p,f,x,o]),Oe(()=>{const R=h.current.fields;return()=>{i&&R.delete(i)}},[h,i])}const GS=c.forwardRef(function(r,o){const{render:i,className:f,id:d,name:m,value:h,disabled:v=!1,onValueChange:p,defaultValue:x,...b}=r,{state:S,name:R,disabled:A}=mi(),M=A||v,w=R??m,O=c.useMemo(()=>({...S,disabled:M}),[S,M]),{setTouched:N,setDirty:z,validityData:D,setFocused:T,setFilled:B,validationMode:V,validation:_}=mi(),{labelId:ie}=xu(),se=m8({id:d});Oe(()=>{const j=h!=null;_.inputRef.current?.value||j&&h!==""?B(!0):j&&h===""&&B(!1)},[_.inputRef,B,h]);const[oe,ae]=eu({controlled:h,default:x,name:"FieldControl",state:"value"}),I=h!==void 0,$=we((j,Z)=>{p?.(j,Z),!Z.isCanceled&&ae(j)});return p8({id:se,name:w,commit:_.commit,value:oe,getValue:()=>_.inputRef.current?.value,controlRef:_.inputRef}),st("input",r,{ref:o,state:O,props:[{id:se,disabled:M,name:w,ref:_.inputRef,"aria-labelledby":ie,...I?{value:oe}:{defaultValue:x},onChange(j){const Z=j.currentTarget.value;$(Z,qe(gu,j.nativeEvent)),z(Z!==D.initialValue),B(Z!=="")},onFocus(){T(!0)},onBlur(j){N(!0),T(!1),V==="onBlur"&&_.commit(j.currentTarget.value)},onKeyDown(j){j.currentTarget.tagName==="INPUT"&&j.key==="Enter"&&(N(!0),_.commit(j.currentTarget.value))}},_.getInputValidationProps(),b],stateAttributesMapping:f8})}),IS=c.forwardRef(function(r,o){return y.jsx(GS,{ref:o,...r})});function Ul({className:l,type:r,...o}){return y.jsx(IS,{type:r,"data-slot":"input",className:nt("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors file:h-6 file:text-xs file:font-medium focus-visible:ring-1 aria-invalid:ring-1 md:text-xs file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",l),...o})}function XS(l){const r=c.useRef(!0);r.current&&(r.current=!1,l())}const h8=c.createContext(null),g8=c.createContext(null);function gl(){const l=c.useContext(h8);if(l===null)throw new Error(Ft(60));return l}function v8(){const l=c.useContext(g8);if(l===null)throw new Error(Ft(61));return l}const FS=(l,r)=>Object.is(l,r);function eo(l,r,o){return l==null||r==null?Object.is(l,r):o(l,r)}function td(l,r,o){return!l||l.length===0?!1:l.some(i=>i===void 0?!1:eo(i,r,o))}function Rd(l,r,o){return!l||l.length===0?-1:l.findIndex(i=>i===void 0?!1:eo(i,r,o))}function QS(l,r,o){return l.filter(i=>!eo(i,r,o))}function Td(l){if(l==null)return"";if(typeof l=="string")return l;try{return JSON.stringify(l)}catch{return String(l)}}function KS(l){return l!=null&&l.length>0&&typeof l[0]=="object"&&l[0]!=null&&"items"in l[0]}function ri(l,r){if(r&&l!=null)return r(l)??"";if(l&&typeof l=="object"){if("label"in l&&l.label!=null)return String(l.label);if("value"in l)return String(l.value)}return Td(l)}function Zr(l,r){return r&&l!=null?r(l)??"":l&&typeof l=="object"&&"value"in l&&"label"in l?Td(l.value):Td(l)}function PS(l,r,o){if(o&&l!=null)return o(l);if(l&&typeof l=="object"&&"label"in l&&l.label!=null)return l.label;if(r&&!Array.isArray(r))return r[l]??ri(l,o);if(Array.isArray(r)){const i=KS(r)?r.flatMap(f=>f.items):r;if(l==null){const f=i.find(d=>d.value==null);return f&&f.label!=null?f.label:ri(l,o)}if(typeof l!="object"){const f=i.find(d=>d&&d.value===l);return f&&f.label!=null?f.label:ri(l,o)}if("value"in l){const f=i.find(d=>d&&d.value===l.value);if(f&&f.label!=null)return f.label}}return ri(l,o)}function JS(l,r){return!Array.isArray(l)||l.length===0?"":l.map(o=>ri(o,r)).join(", ")}const Ue={id:Ee(l=>l.id),modal:Ee(l=>l.modal),multiple:Ee(l=>l.multiple),items:Ee(l=>l.items),itemToStringLabel:Ee(l=>l.itemToStringLabel),itemToStringValue:Ee(l=>l.itemToStringValue),isItemEqualToValue:Ee(l=>l.isItemEqualToValue),value:Ee(l=>l.value),open:Ee(l=>l.open),mounted:Ee(l=>l.mounted),forceMount:Ee(l=>l.forceMount),transitionStatus:Ee(l=>l.transitionStatus),openMethod:Ee(l=>l.openMethod),activeIndex:Ee(l=>l.activeIndex),selectedIndex:Ee(l=>l.selectedIndex),isActive:Ee((l,r)=>l.activeIndex===r),isSelected:Ee((l,r,o)=>{const i=l.isItemEqualToValue,f=l.value;return l.multiple?Array.isArray(f)&&f.some(d=>eo(d,o,i)):l.selectedIndex===r&&l.selectedIndex!==null?!0:eo(f,o,i)}),isSelectedByFocus:Ee((l,r)=>l.selectedIndex===r),popupProps:Ee(l=>l.popupProps),triggerProps:Ee(l=>l.triggerProps),triggerElement:Ee(l=>l.triggerElement),positionerElement:Ee(l=>l.positionerElement),listElement:Ee(l=>l.listElement),scrollUpArrowVisible:Ee(l=>l.scrollUpArrowVisible),scrollDownArrowVisible:Ee(l=>l.scrollDownArrowVisible),hasScrollArrows:Ee(l=>l.hasScrollArrows),serializedValue:Ee(l=>{const{multiple:r,value:o,itemToStringValue:i}=l;return r&&Array.isArray(o)&&o.length===0?"":Zr(o,i)})};function $S(l,r){const o=c.useRef(l),i=we(r);Oe(()=>{o.current!==l&&i(o.current)},[l,i]),Oe(()=>{o.current=l},[l])}function WS(l){const{id:r,value:o,defaultValue:i=null,onValueChange:f,open:d,defaultOpen:m=!1,onOpenChange:h,name:v,disabled:p=!1,readOnly:x=!1,required:b=!1,modal:S=!0,actionsRef:R,inputRef:A,onOpenChangeComplete:M,items:w,multiple:O=!1,itemToStringLabel:N,itemToStringValue:z,isItemEqualToValue:D=FS,highlightItemOnHover:T=!0,children:B}=l,{clearErrors:V}=d8(),{setDirty:_,shouldValidateOnChange:ie,validityData:se,setFilled:oe,name:ae,disabled:I,validation:$}=mi(),{controlId:Q}=xu(),j=m8({id:r}),Z=I||p,H=ae??v,[K,ne]=eu({controlled:o,default:O?i??Fr:i,name:"Select",state:"value"}),[C,q]=eu({controlled:d,default:m,name:"Select",state:"open"}),k=c.useRef([]),ee=c.useRef([]),me=c.useRef(null),te=c.useRef(null),J=c.useRef(0),de=c.useRef(null),he=c.useRef([]),Te=c.useRef(!1),le=c.useRef(!1),Se=c.useRef(null),ye=c.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),_e=c.useRef(!1),{mounted:Ae,setMounted:pe,transitionStatus:G}=gi(C),{openMethod:ge,triggerProps:ve,reset:Me}=d0(C),fe=Rn(()=>new Xr({id:j,modal:S,multiple:O,itemToStringLabel:N,itemToStringValue:z,isItemEqualToValue:D,value:K,open:C,mounted:Ae,transitionStatus:G,items:w,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,De=Ze(fe,Ue.activeIndex),be=Ze(fe,Ue.selectedIndex),Re=Ze(fe,Ue.triggerElement),xe=Ze(fe,Ue.positionerElement),Ie=c.useMemo(()=>O&&Array.isArray(K)&&K.length===0?"":Zr(K,z),[O,K,z]),lt=c.useMemo(()=>O&&Array.isArray(K)?K.map($e=>Zr($e,z)):Zr(K,z),[O,K,z]),Ye=Zt(fe.state.triggerElement);p8({id:j,commit:$.commit,value:K,controlRef:Ye,name:H,getValue:()=>lt});const yt=c.useRef(K);Oe(()=>{K!==yt.current&&fe.set("forceMount",!0)},[fe,K]),Oe(()=>{oe(K!==null)},[K,oe]),Oe(function(){if(C)return;const wt=he.current;if(O){const pn=Array.isArray(K)?K:[];if(pn.length===0){fe.set("selectedIndex",null);return}const un=pn[pn.length-1],vl=Rd(wt,un,D);fe.set("selectedIndex",vl===-1?null:vl);return}const an=Rd(wt,K,D);fe.set("selectedIndex",an===-1?null:an)},[O,C,K,he,D,fe]),$S(K,()=>{V(H),_(K!==se.initialValue),ie()?$.commit(K):$.commit(K,!0)});const bt=we(($e,wt)=>{if(h?.($e,wt),!wt.isCanceled&&(q($e),!$e&&fe.state.activeIndex!==null)){const an=k.current[fe.state.activeIndex];queueMicrotask(()=>{an?.setAttribute("tabindex","-1")})}}),zt=we(()=>{pe(!1),fe.set("activeIndex",null),Me(),M?.(!1)});xa({enabled:!R,open:C,ref:me,onComplete(){C||zt()}}),c.useImperativeHandle(R,()=>({unmount:zt}),[zt]);const Rt=we(($e,wt)=>{f?.($e,wt),!wt.isCanceled&&ne($e)}),ft=we(()=>{const $e=fe.state.listElement||me.current;if(!$e)return;const wt=$e.scrollTop,an=$e.scrollTop+$e.clientHeight,pn=wt>1,un=an<$e.scrollHeight-1;fe.state.scrollUpArrowVisible!==pn&&fe.set("scrollUpArrowVisible",pn),fe.state.scrollDownArrowVisible!==un&&fe.set("scrollDownArrowVisible",un)}),je=U2({open:C,onOpenChange:bt,elements:{reference:Re,floating:xe}}),Be=l0(je,{enabled:!x&&!Z,event:"mousedown"}),Je=r0(je,{bubbles:!1}),dt=B2(je,{enabled:!x&&!Z,listRef:k,activeIndex:De,selectedIndex:be,disabledIndices:Fr,onNavigate($e){$e===null&&!C||fe.set("activeIndex",$e)},focusItemOnHover:!1}),xt=Y2(je,{enabled:!x&&!Z&&(C||!O),listRef:ee,activeIndex:De,selectedIndex:be,onMatch($e){C?fe.set("activeIndex",$e):Rt(he.current[$e],qe("none"))},onTypingChange($e){Te.current=$e}}),{getReferenceProps:jt,getFloatingProps:vt,getItemProps:Gt}=bi([Be,Je,dt,xt]),At=c.useMemo(()=>va(jt(),ve),[jt,ve]);XS(()=>{fe.update({popupProps:vt(),triggerProps:At})}),Oe(()=>{fe.update({id:j,modal:S,multiple:O,value:K,open:C,mounted:Ae,transitionStatus:G,popupProps:vt(),triggerProps:At,items:w,itemToStringLabel:N,itemToStringValue:z,isItemEqualToValue:D,openMethod:ge})},[fe,j,S,O,K,C,Ae,G,vt,At,w,N,z,D,ge]);const Mt=c.useMemo(()=>({store:fe,name:H,required:b,disabled:Z,readOnly:x,multiple:O,itemToStringLabel:N,itemToStringValue:z,highlightItemOnHover:T,setValue:Rt,setOpen:bt,listRef:k,popupRef:me,scrollHandlerRef:te,handleScrollArrowVisibility:ft,scrollArrowsMountedCountRef:J,getItemProps:Gt,events:je.context.events,valueRef:de,valuesRef:he,labelsRef:ee,typingRef:Te,selectionRef:ye,selectedItemTextRef:Se,validation:$,onOpenChangeComplete:M,keyboardActiveRef:le,alignItemWithTriggerActiveRef:_e,initialValueRef:yt}),[fe,H,b,Z,x,O,N,z,T,Rt,bt,Gt,je.context.events,$,M,ft]),mn=ya(A,$.inputRef),Vn=O&&Array.isArray(K)&&K.length>0,Ta=c.useMemo(()=>!O||!Array.isArray(K)||!H?null:K.map($e=>{const wt=Zr($e,z);return y.jsx("input",{type:"hidden",name:H,value:wt},wt)}),[O,K,H,z]);return y.jsx(h8.Provider,{value:Mt,children:y.jsxs(g8.Provider,{value:je,children:[B,y.jsx("input",{...$.getInputValidationProps({onFocus(){fe.state.triggerElement?.focus()},onChange($e){if($e.nativeEvent.defaultPrevented)return;const wt=$e.target.value,an=qe(gu,$e.nativeEvent);function pn(){if(O)return;const un=he.current.find(vl=>Zr(vl,z).toLowerCase()===wt.toLowerCase());un!=null&&(_(un!==se.initialValue),Rt(un,an),ie()&&$.commit(un))}fe.set("forceMount",!0),queueMicrotask(pn)}}),id:r||Q||void 0,name:O?void 0:H,value:Ie,disabled:Z,required:b&&!Vn,readOnly:x,ref:mn,style:Wd,tabIndex:-1,"aria-hidden":!0}),Ta]})})}const Is=2,eE={...md,...f8,value:()=>null},tE=c.forwardRef(function(r,o){const{render:i,className:f,disabled:d=!1,nativeButton:m=!0,...h}=r,{setTouched:v,setFocused:p,validationMode:x,state:b,disabled:S}=mi(),{labelId:R}=xu(),{store:A,setOpen:M,selectionRef:w,validation:O,readOnly:N,alignItemWithTriggerActiveRef:z,disabled:D,keyboardActiveRef:T}=gl(),B=S||D||d,V=Ze(A,Ue.open),_=Ze(A,Ue.value),ie=Ze(A,Ue.triggerProps),se=Ze(A,Ue.positionerElement),oe=Ze(A,Ue.listElement),ae=Ze(A,Ue.serializedValue),I=Zt(se),$=c.useRef(null),Q=qt(),j=qt(),{getButtonProps:Z,buttonRef:H}=Ja({disabled:B,native:m}),K=we(te=>{A.set("triggerElement",te)}),ne=ya(o,$,H,K),C=qt(),q=qt();c.useEffect(()=>{if(V)return q.start(200,()=>{w.current.allowUnselectedMouseUp=!0,C.start(200,()=>{w.current.allowSelectedMouseUp=!0})}),()=>{C.clear(),q.clear()};w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},j.clear()},[V,w,j,C,q]);const k=c.useMemo(()=>oe?.id??ci(se)?.id,[oe,se]),ee=va(ie,{role:"combobox","aria-expanded":V?"true":"false","aria-haspopup":"listbox","aria-controls":V?k:void 0,"aria-labelledby":R,"aria-readonly":N||void 0,tabIndex:B?-1:0,ref:ne,onFocus(te){p(!0),V&&z.current&&M(!1,qe(Fa,te.nativeEvent)),Q.start(0,()=>{A.set("forceMount",!0)})},onBlur(){v(!0),p(!1),x==="onBlur"&&O.commit(_)},onPointerMove(){T.current=!1},onKeyDown(){T.current=!0},onMouseDown(te){if(V)return;const J=rl(te.currentTarget);function de(he){if(!$.current)return;const Te=he.target;if(Pe($.current,Te)||Pe(I.current,Te)||Te===$.current)return;const le=o8($.current);he.clientX>=le.left-Is&&he.clientX<=le.right+Is&&he.clientY>=le.top-Is&&he.clientY<=le.bottom+Is||M(!1,qe(Bg,he))}j.start(0,()=>{J.addEventListener("mouseup",de,{once:!0})})}},O.getValidationProps,h,Z);ee.role="combobox";const me=c.useMemo(()=>({...b,open:V,disabled:B,value:_,readOnly:N,placeholder:!ae}),[b,V,B,_,N,ae]);return st("button",r,{ref:[o,$],state:me,stateAttributesMapping:eE,props:ee})}),nE={value:()=>null},lE=c.forwardRef(function(r,o){const{className:i,render:f,children:d,...m}=r,{store:h,valueRef:v}=gl(),p=Ze(h,Ue.value),x=Ze(h,Ue.items),b=Ze(h,Ue.itemToStringLabel),S=Ze(h,Ue.serializedValue),R=c.useMemo(()=>({value:p,placeholder:!S}),[p,S]),A=typeof d=="function"?d(p):d??(Array.isArray(p)?JS(p,b):PS(p,x,b));return st("span",r,{state:R,ref:[o,v],props:[{children:A},m],stateAttributesMapping:nE})}),aE=c.forwardRef(function(r,o){const{className:i,render:f,...d}=r,{store:m}=gl(),h=Ze(m,Ue.open),v=c.useMemo(()=>({open:h}),[h]);return st("span",r,{state:v,ref:o,props:[{"aria-hidden":!0,children:"▼"},d],stateAttributesMapping:Zg})}),rE=c.createContext(void 0),oE=c.forwardRef(function(r,o){const{store:i}=gl(),f=Ze(i,Ue.mounted),d=Ze(i,Ue.forceMount);return f||d?y.jsx(rE.Provider,{value:!0,children:y.jsx(e0,{ref:o,...r})}):null}),y8=c.createContext(void 0);function h0(){const l=c.useContext(y8);if(!l)throw new Error(Ft(59));return l}function cu(l,r){l&&Object.assign(l.style,r)}const b8={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"},iE={position:"fixed"},sE=c.forwardRef(function(r,o){const{anchor:i,positionMethod:f="absolute",className:d,render:m,side:h="bottom",align:v="center",sideOffset:p=0,alignOffset:x=0,collisionBoundary:b="clipping-ancestors",collisionPadding:S,arrowPadding:R=5,sticky:A=!1,disableAnchorTracking:M,alignItemWithTrigger:w=!0,collisionAvoidance:O=Eg,...N}=r,{store:z,listRef:D,labelsRef:T,alignItemWithTriggerActiveRef:B,selectedItemTextRef:V,valuesRef:_,initialValueRef:ie,popupRef:se,setValue:oe}=gl(),ae=v8(),I=Ze(z,Ue.open),$=Ze(z,Ue.mounted),Q=Ze(z,Ue.modal),j=Ze(z,Ue.value),Z=Ze(z,Ue.openMethod),H=Ze(z,Ue.positionerElement),K=Ze(z,Ue.triggerElement),ne=Ze(z,Ue.isItemEqualToValue),C=c.useRef(null),q=c.useRef(null),[k,ee]=c.useState(w),me=$&&k&&Z!=="touch";!$&&k!==w&&ee(w),Oe(()=>{$||(Ue.scrollUpArrowVisible(z.state)&&z.set("scrollUpArrowVisible",!1),Ue.scrollDownArrowVisible(z.state)&&z.set("scrollDownArrowVisible",!1))},[z,$]),c.useImperativeHandle(B,()=>me),f0((me||Q)&&I&&Z!=="touch",K);const te=t8({anchor:i,floatingRootContext:ae,positionMethod:f,mounted:$,side:h,sideOffset:p,align:v,alignOffset:x,arrowPadding:R,collisionBoundary:b,collisionPadding:S,sticky:A,disableAnchorTracking:M??me,collisionAvoidance:O,keepMounted:!0}),J=me?"none":te.side,de=me?iE:te.positionerStyles,he=c.useMemo(()=>{const pe={};return I||(pe.pointerEvents="none"),{role:"presentation",hidden:!$,style:{...de,...pe}}},[I,$,de]),Te=c.useMemo(()=>({open:I,side:J,align:te.align,anchorHidden:te.anchorHidden}),[I,J,te.align,te.anchorHidden]),le=we(pe=>{z.set("positionerElement",pe)}),Se=st("div",r,{ref:[o,le],state:Te,stateAttributesMapping:ao,props:[he,N]}),ye=c.useRef(0),_e=we(pe=>{if(pe.size===0&&ye.current===0||_.current.length===0)return;const G=ye.current;if(ye.current=pe.size,pe.size===G)return;const ge=qe(gu);if(G!==0&&!z.state.multiple&&j!==null&&Rd(_.current,j,ne)===-1){const Me=ie.current,De=Me!=null&&td(_.current,Me,ne)?Me:null;oe(De,ge),De===null&&(z.set("selectedIndex",null),V.current=null)}if(G!==0&&z.state.multiple&&Array.isArray(j)){const ve=j.filter(Me=>td(_.current,Me,ne));(ve.length!==j.length||ve.some(Me=>!td(j,Me,ne)))&&(oe(ve,ge),ve.length===0&&(z.set("selectedIndex",null),V.current=null))}if(I&&me){z.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});const ve={height:""};cu(H,ve),cu(se.current,ve)}}),Ae=c.useMemo(()=>({...te,side:J,alignItemWithTriggerActive:me,setControlledAlignItemWithTrigger:ee,scrollUpArrowRef:C,scrollDownArrowRef:q}),[te,J,me,ee]);return y.jsx(n8,{elementsRef:D,labelsRef:T,onMapChange:_e,children:y.jsxs(y8.Provider,{value:Ae,children:[$&&Q&&y.jsx(c0,{inert:u0(!I),cutout:K}),Se]})})});function x8(l){const r=l.currentTarget.getBoundingClientRect();return r.top+1<=l.clientY&&l.clientY<=r.bottom-1&&r.left+1<=l.clientX&&l.clientX<=r.right-1}const Xs="base-ui-disable-scrollbar",Ad={className:Xs,element:y.jsx("style",{href:Xs,precedence:"base-ui:low",children:`.${Xs}{scrollbar-width:none}.${Xs}::-webkit-scrollbar{display:none}`})},uE={...ao,...lo},cE=c.forwardRef(function(r,o){const{render:i,className:f,...d}=r,{store:m,popupRef:h,onOpenChangeComplete:v,setOpen:p,valueRef:x,selectedItemTextRef:b,keyboardActiveRef:S,multiple:R,handleScrollArrowVisibility:A,scrollHandlerRef:M}=gl(),{side:w,align:O,alignItemWithTriggerActive:N,setControlledAlignItemWithTrigger:z,scrollDownArrowRef:D,scrollUpArrowRef:T}=h0(),B=G2()!=null,V=v8(),_=qt(),ie=Ze(m,Ue.id),se=Ze(m,Ue.open),oe=Ze(m,Ue.mounted),ae=Ze(m,Ue.popupProps),I=Ze(m,Ue.transitionStatus),$=Ze(m,Ue.triggerElement),Q=Ze(m,Ue.positionerElement),j=Ze(m,Ue.listElement),Z=c.useRef(0),H=c.useRef(!1),K=c.useRef(0),ne=c.useRef(!1),C=c.useRef({}),q=hi(),k=we(J=>{if(!Q||!h.current||!ne.current)return;if(H.current||!N){A();return}const de=Q.style.top==="0px",he=Q.style.bottom==="0px",Te=Q.getBoundingClientRect().height,le=rl(Q),Se=getComputedStyle(Q),ye=parseFloat(Se.marginTop),_e=parseFloat(Se.marginBottom),Ae=le.documentElement.clientHeight-ye-_e,pe=J.scrollTop,G=J.scrollHeight,ge=J.clientHeight,ve=G-ge;let Me=null,fe=null,De=!1;if(de){const be=ve-pe,Re=Te+be,xe=Math.min(Re,Ae);Me=xe,xe!==Ae?fe=ve:De=!0}else if(he){const be=pe-0,Re=Te+be,xe=Math.min(Re,Ae),Ie=Re-Ae;Me=xe,xe!==Ae?fe=0:(De=!0,pe<ve&&(fe=pe-(be-Ie)))}Me!=null&&(Q.style.height=`${Me}px`),fe!=null&&(J.scrollTop=fe),De&&(H.current=!0),A()});c.useImperativeHandle(M,()=>k,[k]),xa({open:se,ref:h,onComplete(){se&&v?.(!0)}});const ee=c.useMemo(()=>({open:se,transitionStatus:I,side:w,align:O}),[se,I,w,O]);Oe(()=>{!Q||!h.current||Object.keys(C.current).length||(C.current={top:Q.style.top||"0",left:Q.style.left||"0",right:Q.style.right,height:Q.style.height,bottom:Q.style.bottom,minHeight:Q.style.minHeight,maxHeight:Q.style.maxHeight,marginTop:Q.style.marginTop,marginBottom:Q.style.marginBottom})},[h,Q]),Oe(()=>{oe||N||(ne.current=!1,H.current=!1,Z.current=0,K.current=0,cu(Q,C.current))},[oe,N,Q,h]),Oe(()=>{const J=h.current;if(!(!oe||!$||!Q||!J)){if(!N){ne.current=!0,q.request(A);return}queueMicrotask(()=>{const de=getComputedStyle(Q),he=getComputedStyle(J),Te=rl($),le=Yt(Q),Se=$.getBoundingClientRect(),ye=Q.getBoundingClientRect(),_e=Se.left,Ae=Se.height,pe=j||J,G=pe.scrollHeight,ge=parseFloat(he.borderBottomWidth),ve=parseFloat(de.marginTop)||10,Me=parseFloat(de.marginBottom)||10,fe=parseFloat(de.minHeight)||100,De=5,be=5,Re=20,xe=Te.documentElement.clientHeight-ve-Me,Ie=Te.documentElement.clientWidth,lt=xe-Se.bottom+Ae,Ye=b.current,yt=x.current;let bt=0,zt=0;if(Ye&&yt){const Mt=yt.getBoundingClientRect(),mn=Ye.getBoundingClientRect(),Vn=Mt.left-_e,Ta=mn.left-ye.left,$e=Mt.top-Se.top+Mt.height/2,wt=mn.top-ye.top+mn.height/2;bt=Vn-Ta,zt=wt-$e}const Rt=lt+zt+Me+ge;let ft=Math.min(xe,Rt);const je=xe-ve-Me,Be=Rt-ft,Je=Math.max(De,_e+bt),dt=Ie-be,xt=Math.max(0,Je+ye.width-dt);Q.style.left=`${Je-xt}px`,Q.style.height=`${ft}px`,Q.style.maxHeight="auto",Q.style.marginTop=`${ve}px`,Q.style.marginBottom=`${Me}px`,J.style.height="100%";const jt=pe.scrollHeight-pe.clientHeight,vt=Be>=jt;vt&&(ft=Math.min(xe,ye.height)-(Be-jt));const Gt=Se.top<Re||Se.bottom>xe-Re||ft<Math.min(G,fe),At=(le.visualViewport?.scale??1)!==1&&Kg;if(Gt||At){ne.current=!0,cu(Q,C.current),al.flushSync(()=>z(!1));return}if(vt){const Mt=Math.max(0,xe-Rt);Q.style.top=ye.height>=je?"0":`${Mt}px`,Q.style.height=`${ft}px`,pe.scrollTop=pe.scrollHeight-pe.clientHeight,Z.current=Math.max(fe,ft)}else Q.style.bottom="0",Z.current=Math.max(fe,ft),pe.scrollTop=Be;Z.current===xe&&(H.current=!0),A(),setTimeout(()=>{ne.current=!0})})}},[m,oe,Q,$,x,b,h,A,N,z,q,D,T,j]),c.useEffect(()=>{if(!N||!Q||!oe)return;const J=Yt(Q);function de(he){p(!1,qe(Xy,he))}return J.addEventListener("resize",de),()=>{J.removeEventListener("resize",de)}},[p,N,Q,oe]);const me={...j?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":R||void 0,id:`${ie}-list`},onKeyDown(J){S.current=!0,B&&s0.has(J.key)&&J.stopPropagation()},onMouseMove(){S.current=!1},onPointerLeave(J){if(x8(J)||J.pointerType==="touch")return;const de=J.currentTarget;_.start(0,()=>{m.set("activeIndex",null),de.focus({preventScroll:!0})})},onScroll(J){j||M.current?.(J.currentTarget)},...N&&{style:j?{height:"100%"}:b8}},te=st("div",r,{ref:[o,h],state:ee,stateAttributesMapping:uE,props:[ae,me,J2(I),{className:!j&&N?Ad.className:void 0},d]});return y.jsxs(c.Fragment,{children:[Ad.element,y.jsx(n0,{context:V,modal:!1,disabled:!oe,restoreFocus:!0,children:te})]})}),fE=c.forwardRef(function(r,o){const{className:i,render:f,...d}=r,{store:m,scrollHandlerRef:h}=gl(),{alignItemWithTriggerActive:v}=h0(),p=Ze(m,Ue.hasScrollArrows),x=Ze(m,Ue.openMethod),b=Ze(m,Ue.multiple),R={id:`${Ze(m,Ue.id)}-list`,role:"listbox","aria-multiselectable":b||void 0,onScroll(M){h.current?.(M.currentTarget)},...v&&{style:b8},className:p&&x!=="touch"?Ad.className:void 0},A=we(M=>{m.set("listElement",M)});return st("div",r,{ref:[o,A],props:[R,d]})}),S8=c.createContext(void 0);function g0(){const l=c.useContext(S8);if(!l)throw new Error(Ft(57));return l}const dE=c.memo(c.forwardRef(function(r,o){const{render:i,className:f,value:d=null,label:m,disabled:h=!1,nativeButton:v=!1,...p}=r,x=c.useRef(null),b=Id({label:m,textRef:x,indexGuessBehavior:Gg.GuessFromOrder}),{store:S,getItemProps:R,setOpen:A,setValue:M,selectionRef:w,typingRef:O,valuesRef:N,keyboardActiveRef:z,multiple:D,highlightItemOnHover:T}=gl(),B=qt(),V=Ze(S,Ue.isActive,b.index),_=Ze(S,Ue.isSelected,b.index,d),ie=Ze(S,Ue.isSelectedByFocus,b.index),se=Ze(S,Ue.isItemEqualToValue),oe=b.index,ae=oe!==-1,I=c.useRef(null),$=Zt(oe);Oe(()=>{if(!ae)return;const te=N.current;return te[oe]=d,()=>{delete te[oe]}},[ae,oe,d,N]),Oe(()=>{if(!ae)return;const te=S.state.value;let J=te;D&&Array.isArray(te)&&te.length>0&&(J=te[te.length-1]),J!==void 0&&eo(J,d,se)&&S.set("selectedIndex",oe)},[ae,oe,D,se,S,d]);const Q=c.useMemo(()=>({disabled:h,selected:_,highlighted:V}),[h,_,V]),j=R({active:V,selected:_});j.onFocus=void 0,j.id=void 0;const Z=c.useRef(null),H=c.useRef("mouse"),K=c.useRef(!1),{getButtonProps:ne,buttonRef:C}=Ja({disabled:h,focusableWhenDisabled:!0,native:v});function q(te){const J=S.state.value;if(D){const de=Array.isArray(J)?J:[],he=_?QS(de,d,se):[...de,d];M(he,qe(qr,te))}else M(d,qe(qr,te)),A(!1,qe(qr,te))}const k={role:"option","aria-selected":_,"aria-disabled":h||void 0,tabIndex:V?0:-1,onFocus(){S.set("activeIndex",oe)},onMouseEnter(){!z.current&&S.state.selectedIndex===null&&S.set("activeIndex",oe)},onMouseMove(){T&&S.set("activeIndex",oe)},onMouseLeave(te){!T||z.current||x8(te)||B.start(0,()=>{S.state.activeIndex===oe&&S.set("activeIndex",null)})},onTouchStart(){w.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(te){Z.current=te.key,S.set("activeIndex",oe)},onClick(te){K.current=!1,!(te.type==="keydown"&&Z.current===null)&&(h||Z.current===" "&&O.current||H.current!=="touch"&&!V||(Z.current=null,q(te.nativeEvent)))},onPointerEnter(te){H.current=te.pointerType},onPointerDown(te){H.current=te.pointerType,K.current=!0},onMouseUp(te){if(h)return;if(K.current){K.current=!1;return}const J=!w.current.allowSelectedMouseUp&&_,de=!w.current.allowUnselectedMouseUp&&!_;J||de||H.current!=="touch"&&!V||q(te.nativeEvent)}},ee=st("div",r,{ref:[C,o,b.ref,I],state:Q,props:[j,k,p,ne]}),me=c.useMemo(()=>({selected:_,indexRef:$,textRef:x,selectedByFocus:ie,hasRegistered:ae}),[_,$,x,ie,ae]);return y.jsx(S8.Provider,{value:me,children:ee})})),mE=c.forwardRef(function(r,o){const i=r.keepMounted??!1,{selected:f}=g0();return i||f?y.jsx(pE,{...r,ref:o}):null}),pE=c.memo(c.forwardRef((l,r)=>{const{render:o,className:i,keepMounted:f,...d}=l,{selected:m}=g0(),h=c.useRef(null),{transitionStatus:v,setMounted:p}=gi(m),x=c.useMemo(()=>({selected:m,transitionStatus:v}),[m,v]),b=st("span",l,{ref:[r,h],state:x,props:[{"aria-hidden":!0,children:"✔️"},d],stateAttributesMapping:lo});return xa({open:m,ref:h,onComplete(){m||p(!1)}}),b})),hE=c.memo(c.forwardRef(function(r,o){const{indexRef:i,textRef:f,selectedByFocus:d,hasRegistered:m}=g0(),{selectedItemTextRef:h}=gl(),{className:v,render:p,...x}=r,b=c.useCallback(R=>{if(!R||!m)return;const A=h.current===null||!h.current.isConnected;(d||A&&i.current===0)&&(h.current=R)},[h,i,d,m]);return st("div",r,{ref:[b,o,f],props:x})})),E8=c.forwardRef(function(r,o){const{render:i,className:f,direction:d,keepMounted:m=!1,...h}=r,{store:v,popupRef:p,listRef:x,handleScrollArrowVisibility:b,scrollArrowsMountedCountRef:S}=gl(),{side:R,scrollDownArrowRef:A,scrollUpArrowRef:M}=h0(),w=d==="up"?Ue.scrollUpArrowVisible:Ue.scrollDownArrowVisible,O=Ze(v,w),N=Ze(v,Ue.openMethod),z=O&&N!=="touch",D=qt(),T=d==="up"?M:A,{transitionStatus:B,setMounted:V}=gi(z);Oe(()=>(S.current+=1,v.state.hasScrollArrows||v.set("hasScrollArrows",!0),()=>{S.current=Math.max(0,S.current-1),S.current===0&&v.state.hasScrollArrows&&v.set("hasScrollArrows",!1)}),[v,S]),xa({open:z,ref:T,onComplete(){z||V(!1)}});const _=c.useMemo(()=>({direction:d,visible:z,side:R,transitionStatus:B}),[d,z,R,B]),se=st("div",r,{ref:[o,T],state:_,props:[{"aria-hidden":!0,children:d==="up"?"▲":"▼",style:{position:"absolute"},onMouseMove(ae){if(ae.movementX===0&&ae.movementY===0||D.isStarted())return;v.set("activeIndex",null);function I(){const $=v.state.listElement??p.current;if(!$)return;v.set("activeIndex",null),b();const Q=$.scrollTop===0,j=Math.round($.scrollTop+$.clientHeight)>=$.scrollHeight;if(x.current.length===0&&(d==="up"?v.set("scrollUpArrowVisible",!Q):v.set("scrollDownArrowVisible",!j)),d==="up"&&Q||d==="down"&&j){D.clear();return}if((v.state.listElement||p.current)&&x.current&&x.current.length>0){const H=x.current,K=T.current?.offsetHeight||0;if(d==="up"){let ne=0;const C=$.scrollTop+K;for(let k=0;k<H.length;k+=1){const ee=H[k];if(ee&&ee.offsetTop>=C){ne=k;break}}const q=Math.max(0,ne-1);if(q<ne){const k=H[q];k&&($.scrollTop=Math.max(0,k.offsetTop-K))}else $.scrollTop=0}else{let ne=H.length-1;const C=$.scrollTop+$.clientHeight-K;for(let k=0;k<H.length;k+=1){const ee=H[k];if(ee&&ee.offsetTop+ee.offsetHeight>C){ne=Math.max(0,k-1);break}}const q=Math.min(H.length-1,ne+1);if(q>ne){const k=H[q];k&&($.scrollTop=k.offsetTop+k.offsetHeight-$.clientHeight+K)}else $.scrollTop=$.scrollHeight-$.clientHeight}}D.start(40,I)}D.start(40,I)},onMouseLeave(){D.clear()}},h]});return z||m?se:null}),gE=c.forwardRef(function(r,o){return y.jsx(E8,{...r,ref:o,direction:"down"})}),vE=c.forwardRef(function(r,o){return y.jsx(E8,{...r,ref:o,direction:"up"})}),R8=c.createContext(void 0);function yE(){const l=c.useContext(R8);if(l===void 0)throw new Error(Ft(56));return l}const bE=c.forwardRef(function(r,o){const{className:i,render:f,...d}=r,[m,h]=c.useState(),v=c.useMemo(()=>({labelId:m,setLabelId:h}),[m,h]),p=st("div",r,{ref:o,props:[{role:"group","aria-labelledby":m},d]});return y.jsx(R8.Provider,{value:v,children:p})}),xE=c.forwardRef(function(r,o){const{className:i,render:f,id:d,...m}=r,{setLabelId:h}=yE(),v=er(d);return Oe(()=>{h(v)},[v,h]),st("div",r,{ref:o,props:[{id:v},m]})}),Md=WS;function wd({className:l,...r}){return y.jsx(bE,{"data-slot":"select-group",className:nt("scroll-my-1",l),...r})}function Cd({className:l,...r}){return y.jsx(lE,{"data-slot":"select-value",className:nt("flex flex-1 text-left",l),...r})}function Od({className:l,size:r="default",children:o,...i}){return y.jsxs(tE,{"data-slot":"select-trigger","data-size":r,className:nt("border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-none border bg-transparent py-2 pr-2 pl-2.5 text-xs transition-colors select-none focus-visible:ring-1 aria-invalid:ring-1 data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-none *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",l),...i,children:[o,y.jsx(aE,{render:y.jsx(Dd,{className:"text-muted-foreground size-4 pointer-events-none"})})]})}function Nd({className:l,children:r,side:o="bottom",sideOffset:i=4,align:f="center",alignOffset:d=0,alignItemWithTrigger:m=!0,...h}){return y.jsx(oE,{children:y.jsx(sE,{side:o,sideOffset:i,align:f,alignOffset:d,alignItemWithTrigger:m,className:"isolate z-50",children:y.jsxs(cE,{"data-slot":"select-content",className:nt("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 min-w-36 rounded-none shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto",l),...h,children:[y.jsx(SE,{}),y.jsx(fE,{children:r}),y.jsx(EE,{})]})})})}function zd({className:l,...r}){return y.jsx(xE,{"data-slot":"select-label",className:nt("text-muted-foreground px-2 py-2 text-xs",l),...r})}function jd({className:l,children:r,...o}){return y.jsxs(dE,{"data-slot":"select-item",className:nt("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none py-2 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",l),...o,children:[y.jsx(hE,{className:"flex flex-1 gap-2 shrink-0 whitespace-nowrap",children:r}),y.jsx(mE,{render:y.jsx("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:y.jsx(Ld,{className:"pointer-events-none"})})]})}function SE({className:l,...r}){return y.jsx(vE,{"data-slot":"select-scroll-up-button",className:nt("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full",l),...r,children:y.jsx(cg,{})})}function EE({className:l,...r}){return y.jsx(gE,{"data-slot":"select-scroll-down-button",className:nt("bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full",l),...r,children:y.jsx(Dd,{})})}function Hd({className:l,...r}){return y.jsx("textarea",{"data-slot":"textarea",className:nt("border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 rounded-none border bg-transparent px-2.5 py-2 text-xs transition-colors focus-visible:ring-1 aria-invalid:ring-1 md:text-xs placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",l),...r})}function RE(l){const{store:r,parentContext:o,actionsRef:i}=l,f=r.useState("open"),d=r.useState("disablePointerDismissal"),m=r.useState("modal"),h=r.useState("popupElement"),{openMethod:v,triggerProps:p,reset:x}=d0(f);D2(r);const{forceUnmount:b}=L2(f,r,()=>{x()}),S=we(se=>{const oe=qe(se);return oe.preventUnmountOnClose=()=>{r.set("preventUnmountingOnClose",!0)},oe}),R=c.useCallback(()=>{r.setOpen(!1,S(qg))},[r,S]);c.useImperativeHandle(i,()=>({unmount:b,close:R}),[b,R]);const A=k2({popupStore:r,onOpenChange:r.setOpen,treatPopupAsFloatingElement:!0,noEmit:!0}),[M,w]=c.useState(0),O=M===0,N=q2(A),z=r0(A,{outsidePressEvent(){return r.context.internalBackdropRef.current||r.context.backdropRef.current?"intentional":{mouse:m==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}},outsidePress(se){if("button"in se&&se.button!==0||"touches"in se&&se.touches.length!==1)return!1;const oe=fn(se);if(O&&!d){const ae=oe;return m&&(r.context.internalBackdropRef.current||r.context.backdropRef.current)?r.context.internalBackdropRef.current===ae||r.context.backdropRef.current===ae||Pe(ae,h)&&!ae?.hasAttribute("data-base-ui-portal"):!0}return!1},escapeKey:O});f0(f&&m===!0,h);const{getReferenceProps:D,getFloatingProps:T,getTriggerProps:B}=bi([N,z]);r.useContextCallback("onNestedDialogOpen",se=>{w(se+1)}),r.useContextCallback("onNestedDialogClose",()=>{w(0)}),c.useEffect(()=>(o?.onNestedDialogOpen&&f&&o.onNestedDialogOpen(M),o?.onNestedDialogClose&&!f&&o.onNestedDialogClose(),()=>{o?.onNestedDialogClose&&f&&o.onNestedDialogClose()}),[f,o,M]);const V=c.useMemo(()=>D(p),[D,p]),_=c.useMemo(()=>B(p),[B,p]),ie=c.useMemo(()=>T(),[T]);r.useSyncedValues({openMethod:v,activeTriggerProps:V,inactiveTriggerProps:_,popupProps:ie,floatingRootContext:A,nestedOpenDialogCount:M})}const T8=c.createContext(void 0);function Ra(l){const r=c.useContext(T8);if(l===!1&&r===void 0)throw new Error(Ft(27));return r}const TE={..._2,modal:Ee(l=>l.modal),nested:Ee(l=>l.nested),nestedOpenDialogCount:Ee(l=>l.nestedOpenDialogCount),disablePointerDismissal:Ee(l=>l.disablePointerDismissal),openMethod:Ee(l=>l.openMethod),descriptionElementId:Ee(l=>l.descriptionElementId),titleElementId:Ee(l=>l.titleElementId),viewportElement:Ee(l=>l.viewportElement),role:Ee(l=>l.role)};class AE extends o0{constructor(r){super(ME(r),{popupRef:c.createRef(),backdropRef:c.createRef(),internalBackdropRef:c.createRef(),triggerElements:new yu,onOpenChange:void 0,onOpenChangeComplete:void 0},TE)}setOpen=(r,o)=>{if(o.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},!r&&o.trigger==null&&this.state.activeTriggerId!=null&&(o.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(r,o),o.isCanceled)return;const i={open:r,nativeEvent:o.event,reason:o.reason,nested:this.state.nested};this.state.floatingRootContext.context.events?.emit("openchange",i);const f={open:r},d=o.trigger?.id??null;(d||r)&&(f.activeTriggerId=d,f.activeTriggerElement=o.trigger??null),this.update(f)}}function ME(l={}){return{...V2(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,role:"dialog",...l}}function wE(l){const{children:r,open:o,defaultOpen:i=!1,onOpenChange:f,onOpenChangeComplete:d,actionsRef:m,handle:h,triggerId:v,defaultTriggerId:p=null}=l,x=Ra(),b=!!x,S=Rn(()=>h?.store??new AE({open:o??i,activeTriggerId:v!==void 0?v:p,modal:!0,disablePointerDismissal:!0,nested:b,role:"alertdialog"})).current;S.useControlledProp("open",o,i),S.useControlledProp("activeTriggerId",v,p),S.useSyncedValue("nested",b),S.useContextCallback("onOpenChange",f),S.useContextCallback("onOpenChangeComplete",d);const R=S.useState("payload");RE({store:S,actionsRef:m,parentContext:x?.store.context});const A=c.useMemo(()=>({store:S}),[S]);return y.jsx(T8.Provider,{value:A,children:typeof r=="function"?r({payload:R}):r})}const CE={...ao,...lo},OE=c.forwardRef(function(r,o){const{render:i,className:f,forceRender:d=!1,...m}=r,{store:h}=Ra(),v=h.useState("open"),p=h.useState("nested"),x=h.useState("mounted"),b=h.useState("transitionStatus"),S=c.useMemo(()=>({open:v,transitionStatus:b}),[v,b]);return st("div",r,{state:S,ref:[h.context.backdropRef,o],stateAttributesMapping:CE,props:[{role:"presentation",hidden:!x,style:{userSelect:"none",WebkitUserSelect:"none"}},m],enabled:d||!p})}),NE=c.forwardRef(function(r,o){const{render:i,className:f,disabled:d=!1,nativeButton:m=!0,...h}=r,{store:v}=Ra(),p=v.useState("open");function x(A){p&&v.setOpen(!1,qe(Iy,A.nativeEvent))}const{getButtonProps:b,buttonRef:S}=Ja({disabled:d,native:m}),R=c.useMemo(()=>({disabled:d}),[d]);return st("button",r,{state:R,ref:[o,S],props:[{onClick:x},h,b]})}),zE=c.forwardRef(function(r,o){const{render:i,className:f,id:d,...m}=r,{store:h}=Ra(),v=er(d);return h.useSyncedValueWithCleanup("descriptionElementId",v),st("p",r,{ref:o,props:[{id:v},m]})});let jE=(function(l){return l.nestedDialogs="--nested-dialogs",l})({}),HE=(function(l){return l[l.open=Ga.open]="open",l[l.closed=Ga.closed]="closed",l[l.startingStyle=Ga.startingStyle]="startingStyle",l[l.endingStyle=Ga.endingStyle]="endingStyle",l.nested="data-nested",l.nestedDialogOpen="data-nested-dialog-open",l})({});const A8=c.createContext(void 0);function DE(){const l=c.useContext(A8);if(l===void 0)throw new Error(Ft(26));return l}const LE={...ao,...lo,nestedDialogOpen(l){return l?{[HE.nestedDialogOpen]:""}:null}},VE=c.forwardRef(function(r,o){const{className:i,finalFocus:f,initialFocus:d,render:m,...h}=r,{store:v}=Ra(),p=v.useState("descriptionElementId"),x=v.useState("disablePointerDismissal"),b=v.useState("floatingRootContext"),S=v.useState("popupProps"),R=v.useState("modal"),A=v.useState("mounted"),M=v.useState("nested"),w=v.useState("nestedOpenDialogCount"),O=v.useState("open"),N=v.useState("openMethod"),z=v.useState("titleElementId"),D=v.useState("transitionStatus"),T=v.useState("role");DE(),xa({open:O,ref:v.context.popupRef,onComplete(){O&&v.context.onOpenChangeComplete?.(!0)}});function B(oe){return oe==="touch"?v.context.popupRef.current:!0}const V=d===void 0?B:d,_=w>0,ie=c.useMemo(()=>({open:O,nested:M,transitionStatus:D,nestedDialogOpen:_}),[O,M,D,_]),se=st("div",r,{state:ie,props:[S,{"aria-labelledby":z??void 0,"aria-describedby":p??void 0,role:T,tabIndex:-1,hidden:!A,onKeyDown(oe){s0.has(oe.key)&&oe.stopPropagation()},style:{[jE.nestedDialogs]:w}},h],ref:[o,v.context.popupRef,v.useStateSetter("popupElement")],stateAttributesMapping:LE});return y.jsx(n0,{context:b,openInteractionType:N,disabled:!A,closeOnFocusOut:!x,initialFocus:V,returnFocus:f,modal:R!==!1,restoreFocus:"popup",children:se})}),_E=c.forwardRef(function(r,o){const{keepMounted:i=!1,...f}=r,{store:d}=Ra(),m=d.useState("mounted"),h=d.useState("modal");return m||i?y.jsx(A8.Provider,{value:i,children:y.jsxs(e0,{ref:o,...f,children:[m&&h===!0&&y.jsx(c0,{ref:d.context.internalBackdropRef,inert:u0(!open)}),r.children]})}):null}),UE=c.forwardRef(function(r,o){const{render:i,className:f,id:d,...m}=r,{store:h}=Ra(),v=er(d);return h.useSyncedValueWithCleanup("titleElementId",v),st("h2",r,{ref:o,props:[{id:v},m]})}),kE=c.forwardRef(function(r,o){const{render:i,className:f,disabled:d=!1,nativeButton:m=!0,id:h,payload:v,handle:p,...x}=r,b=Ra(!0),S=p?.store??b?.store;if(!S)throw new Error(Ft(79));const R=er(h),A=S.useState("floatingRootContext"),M=S.useState("isOpenedByTrigger",R),w=c.useRef(null),{registerTrigger:O,isMountedByThisTrigger:N}=H2(R,w,S,{payload:v}),{getButtonProps:z,buttonRef:D}=Ja({disabled:d,native:m}),T=l0(A,{enabled:A!=null}),B=bi([T]),V=c.useMemo(()=>({disabled:d,open:M}),[d,M]),_=S.useState("triggerProps",N);return st("button",r,{state:V,ref:[D,o,O,w],props:[B.getReferenceProps(),_,{[Sg]:"",id:R},x,z],stateAttributesMapping:Zg})});function ZE({...l}){return y.jsx(wE,{"data-slot":"alert-dialog",...l})}function BE({...l}){return y.jsx(kE,{"data-slot":"alert-dialog-trigger",...l})}function qE({...l}){return y.jsx(_E,{"data-slot":"alert-dialog-portal",...l})}function YE({className:l,...r}){return y.jsx(OE,{"data-slot":"alert-dialog-overlay",className:nt("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 isolate z-50",l),...r})}function GE({className:l,size:r="default",...o}){return y.jsxs(qE,{children:[y.jsx(YE,{}),y.jsx(VE,{"data-slot":"alert-dialog-content","data-size":r,className:nt("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 bg-background ring-foreground/10 gap-4 rounded-none p-4 ring-1 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none",l),...o})]})}function IE({className:l,...r}){return y.jsx("div",{"data-slot":"alert-dialog-header",className:nt("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",l),...r})}function XE({className:l,...r}){return y.jsx("div",{"data-slot":"alert-dialog-footer",className:nt("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",l),...r})}function FE({className:l,...r}){return y.jsx(UE,{"data-slot":"alert-dialog-title",className:nt("text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",l),...r})}function QE({className:l,...r}){return y.jsx(zE,{"data-slot":"alert-dialog-description",className:nt("text-muted-foreground *:[a]:hover:text-foreground text-xs/relaxed text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",l),...r})}function ig({className:l,...r}){return y.jsx(ln,{"data-slot":"alert-dialog-action",className:nt(l),...r})}function KE({className:l,variant:r="outline",size:o="default",...i}){return y.jsx(NE,{"data-slot":"alert-dialog-cancel",className:nt(l),render:y.jsx(ln,{variant:r,size:o}),...i})}function PE(l){if(!l||l<0)return"0 B";const r=["B","KB","MB","GB"];let o=l,i=0;for(;o>=1024&&i<r.length-1;)o/=1024,i++;return`${i===0?o:o.toFixed(1)} ${r[i]}`}function M8(l){const r=l.split(`
|
|
21
|
+
`).map(i=>i.trim()).filter(Boolean),o=[];for(const i of r){const f=i.indexOf(":");if(f<=0)continue;const d=i.slice(0,f).trim(),m=i.slice(f+1).trim();d&&o.push({key:d,value:m})}return o}function Ps(l){try{return JSON.stringify(l,null,2)}catch{return String(l)}}const JE=[{label:"All providers",value:"all"},{label:"stripe",value:"stripe"},{label:"github",value:"github"},{label:"shopify",value:"shopify"},{label:"twilio",value:"twilio"},{label:"ragie",value:"ragie"},{label:"sendgrid",value:"sendgrid"},{label:"slack",value:"slack"},{label:"discord",value:"discord"},{label:"linear",value:"linear"},{label:"clerk",value:"clerk"},{label:"custom",value:"custom"}];function $E(l){const[r,o]=c.useState(""),[i,f]=c.useState("all"),[d,m]=c.useState(!1),[h,v]=c.useState(null),[p,x]=c.useState([]),[b,S]=c.useState(null),[R,A]=c.useState(null),[M,w]=c.useState(""),[O,N]=c.useState(""),[z,D]=c.useState(""),[T,B]=c.useState(null),[V,_]=c.useState(null),[ie,se]=c.useState(!1),[oe,ae]=c.useState(!1),[I,$]=c.useState(""),[Q,j]=c.useState(""),[Z,H]=c.useState(""),[K,ne]=c.useState(""),[C,q]=c.useState(!1),[k,ee]=c.useState(!1),[me,te]=c.useState(null),[J,de]=c.useState(null),he=async()=>{m(!0),v(null);try{const G=await CS({limit:200,provider:i==="all"?void 0:i,q:r.trim()||void 0});x(G.captures)}catch(G){v(G instanceof Error?G.message:"Failed to load captures")}finally{m(!1)}};c.useEffect(()=>{he()},[i]),c.useEffect(()=>{const G=window.setTimeout(()=>{he()},250);return()=>window.clearTimeout(G)},[r]),c.useEffect(()=>{l.wsCaptures&&x(l.wsCaptures)},[l.wsCaptures]),c.useEffect(()=>{if(!b){A(null);return}const G=p.find(ge=>ge.capture.id===b)||null;G&&(A(G),M||w(`http://localhost:3000${G.capture.path}`),O||N(G.capture.method))},[b,p,M,O]);const Te=async G=>{S(G),l.onWsCaptureSelected?.(G),B(null),_(null);try{const ge=await OS(G);A(ge),w(`http://localhost:3000${ge.capture.path}`),N(ge.capture.method)}catch{}},le=async()=>{if(!R)return;const G=R.capture.id;try{await NS(G),A(null),S(null),B(null),_(null),await he()}catch(ge){v(ge instanceof Error?ge.message:"Failed to delete capture")}},Se=async()=>{try{await zS(),A(null),S(null),B(null),_(null),await he()}catch(G){v(G instanceof Error?G.message:"Failed to delete all captures")}},ye=async()=>{if(R){se(!0),_(null),B(null);try{const G=M8(z),ge=await jS({captureId:R.capture.id,targetUrl:M,method:O||void 0,headers:G.length?G:void 0});B(ge)}catch(G){_(G instanceof Error?G.message:"Replay failed")}finally{se(!1)}}},_e=()=>{if(!R)return;const G=R.capture,ge=G.provider||"custom";let ve="";const Me=G.headers["x-github-event"];Me&&(ve=Array.isArray(Me)?Me[0]:Me);const fe=ve?`${ge}-${ve}`:ge;$(fe.toLowerCase().replace(/\s+/g,"-")),j(""),H(ve),ne(""),q(!1),te(null),de(null),ae(!0)},Ae=async()=>{if(R){ee(!0),te(null),de(null);try{const G=await VS({captureId:R.capture.id,id:I||void 0,name:Q||void 0,event:Z||void 0,description:K||void 0,overwrite:C});de(`Template saved: ${G.id}`)}catch(G){te(G instanceof Error?G.message:"Failed to save template")}finally{ee(!1)}}},pe=()=>{ae(!1),de(null)};return y.jsxs("div",{className:"grid gap-4 lg:grid-cols-[minmax(320px,420px)_1fr]",children:[y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Captures"}),y.jsx(nl,{children:"Incoming webhooks captured by the local capture server."}),y.jsxs(uu,{className:"flex items-center gap-2",children:[y.jsxs(ln,{variant:"outline",size:"icon",onClick:()=>{he()},disabled:d,children:[y.jsx(ui,{}),y.jsx("span",{className:"sr-only",children:"Refresh"})]}),y.jsxs(ln,{variant:"destructive",size:"icon",onClick:()=>{Se()},children:[y.jsx(rd,{}),y.jsx("span",{className:"sr-only",children:"Delete all"})]})]})]}),y.jsxs(ll,{className:"space-y-4",children:[y.jsxs("div",{className:"grid gap-3 @container/card-content",children:[y.jsxs("div",{className:"flex flex-col gap-2 @md/card-content:flex-row @md/card-content:items-center",children:[y.jsx(Ul,{placeholder:"Search by id, path, provider...",value:r,onChange:G=>o(G.target.value)}),y.jsxs(Md,{value:i,onValueChange:G=>f(G??"all"),children:[y.jsx(Od,{className:"w-full @md/card-content:w-44",children:y.jsx(Cd,{})}),y.jsx(Nd,{children:y.jsxs(wd,{children:[y.jsx(zd,{children:"Provider"}),JE.map(G=>y.jsx(jd,{value:G.value,children:G.label},G.value||"all"))]})})]})]}),h&&y.jsx("div",{className:"text-destructive text-xs",children:h})]}),y.jsx("div",{className:"border-border max-h-[calc(100vh-22rem)] overflow-auto border",children:p.length===0?y.jsxs("div",{className:"text-muted-foreground p-4 text-xs",children:["No captures yet. Send a webhook to the capture server (default:"," ",y.jsx("span",{className:"text-foreground",children:"http://localhost:3001"}),")."]}):y.jsx("div",{className:"divide-border divide-y",children:p.map(({file:G,capture:ge})=>{const ve=b===ge.id,Me=new Date(ge.timestamp).toLocaleString();return y.jsxs("button",{type:"button",onClick:()=>{Te(ge.id)},className:["hover:bg-muted/50 w-full cursor-default p-3 text-left outline-none",ve?"bg-muted":""].join(" "),children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"text-foreground font-medium",children:ge.id.slice(0,8)}),ge.provider?y.jsx(En,{variant:"secondary",children:ge.provider}):y.jsx(En,{variant:"outline",children:"unknown"}),y.jsx("div",{className:"text-muted-foreground ml-auto",children:PE(ge.contentLength)})]}),y.jsxs("div",{className:"text-muted-foreground mt-1 flex items-center gap-2",children:[y.jsx("span",{className:"text-foreground",children:ge.method}),y.jsx("span",{className:"truncate",children:ge.path})]}),y.jsx("div",{className:"text-muted-foreground mt-1",children:Me})]},G)})})})]}),y.jsx(Ed,{className:"text-muted-foreground",children:d?"Loading...":`Showing ${p.length} capture(s)`})]}),y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Details"}),y.jsx(nl,{children:"Inspect a capture, then replay it to any local endpoint."}),y.jsxs(uu,{className:"flex items-center gap-2",children:[y.jsxs(ZE,{open:oe,onOpenChange:G=>{G?ae(G):pe()},children:[y.jsx(BE,{render:y.jsxs(ln,{variant:"outline",size:"default",disabled:!R,children:[y.jsx(dg,{"data-icon":"inline-start"}),"Save as Template"]}),onClick:_e}),y.jsxs(GE,{children:[y.jsxs(IE,{children:[y.jsx(FE,{children:"Save as Template"}),y.jsx(QE,{children:"Save this captured webhook as a reusable template."})]}),y.jsx("form",{onSubmit:G=>{G.preventDefault(),Ae()},children:y.jsxs(Wr,{children:[y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"template-id",children:"Template ID"}),y.jsx(Ul,{id:"template-id",value:I,onChange:G=>$(G.target.value),placeholder:"e.g., github-push"}),y.jsx(ga,{children:"Unique identifier for the template"})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"template-name",children:"Name (optional)"}),y.jsx(Ul,{id:"template-name",value:Q,onChange:G=>j(G.target.value),placeholder:"e.g., GitHub Push Event"})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"template-event",children:"Event (optional)"}),y.jsx(Ul,{id:"template-event",value:Z,onChange:G=>H(G.target.value),placeholder:"e.g., push"})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"template-description",children:"Description (optional)"}),y.jsx(Hd,{id:"template-description",value:K,onChange:G=>ne(G.target.value),placeholder:"Describe what this template does..."})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("input",{type:"checkbox",id:"template-overwrite",checked:C,onChange:G=>q(G.target.checked),className:"accent-primary h-4 w-4"}),y.jsx("label",{htmlFor:"template-overwrite",className:"text-muted-foreground text-xs",children:"Overwrite if template ID exists"})]}),me&&y.jsx("div",{className:"text-destructive text-xs",children:me}),J&&y.jsx("div",{className:"text-xs text-green-600 dark:text-green-400",children:J})]})}),y.jsx(XE,{children:J?y.jsx(ig,{onClick:pe,children:"Done"}):y.jsxs(y.Fragment,{children:[y.jsx(KE,{disabled:k,children:"Cancel"}),y.jsx(ig,{type:"submit",onClick:G=>{G.preventDefault(),Ae()},disabled:k||!I.trim(),children:k?"Saving...":"Save Template"})]})})]})]}),y.jsxs(ln,{variant:"destructive",size:"default",onClick:()=>{le()},disabled:!R,children:[y.jsx(rd,{"data-icon":"inline-start"}),"Delete"]})]})]}),y.jsx(ll,{className:"space-y-4",children:R?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid gap-2",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"text-sm font-medium",children:R.capture.id}),R.capture.provider?y.jsx(En,{variant:"secondary",children:R.capture.provider}):y.jsx(En,{variant:"outline",children:"unknown"})]}),y.jsxs("div",{className:"text-muted-foreground text-xs",children:[R.capture.method," ",R.capture.url]})]}),y.jsx(p0,{}),y.jsxs(Fn,{size:"sm",children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Replay"}),y.jsx(nl,{children:"Sends the captured payload to a target URL. Original headers are preserved (connection headers excluded)."})]}),y.jsx(ll,{children:y.jsxs(Wr,{children:[y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"replay-url",children:"Target URL"}),y.jsx(Ul,{id:"replay-url",value:M,onChange:G=>w(G.target.value),placeholder:"http://localhost:3000/webhooks/provider"}),y.jsx(ga,{children:"Default is based on the captured path."})]}),y.jsxs(Pt,{orientation:"responsive",children:[y.jsx(Jt,{htmlFor:"replay-method",children:"Method"}),y.jsxs(Md,{value:O,onValueChange:G=>N(G??""),children:[y.jsx(Od,{id:"replay-method",className:"w-full @md/field-group:w-40",children:y.jsx(Cd,{})}),y.jsx(Nd,{children:y.jsxs(wd,{children:[y.jsx(zd,{children:"Method"}),["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"].map(G=>y.jsx(jd,{value:G,children:G},G))]})})]})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"replay-headers",children:"Header overrides"}),y.jsx(Hd,{id:"replay-headers",value:z,onChange:G=>D(G.target.value),placeholder:`X-Debug:true
|
|
22
|
+
X-Request-Id: 123`}),y.jsxs(ga,{children:["One header per line, format:"," ",y.jsx("span",{className:"text-foreground",children:"key:value"})]})]}),V&&y.jsx("div",{className:"text-destructive text-xs",children:V}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs(ln,{onClick:()=>{ye()},disabled:ie,children:[y.jsx(ui,{"data-icon":"inline-start"}),ie?"Replaying...":"Replay"]}),y.jsx(ln,{variant:"outline",onClick:()=>{B(null),_(null)},disabled:ie,children:"Clear result"})]})]})})]}),T&&y.jsxs(Fn,{size:"sm",children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Replay result"}),y.jsxs(nl,{children:[T.status," ",T.statusText," •"," ",T.duration,"ms"]})]}),y.jsxs(ll,{className:"space-y-2",children:[y.jsx("div",{className:"text-muted-foreground text-xs",children:"Response body"}),y.jsx("pre",{className:"bg-muted/40 border-border overflow-auto border p-3 text-xs",children:Ps(T.json??T.body)})]})]}),y.jsxs(Fn,{size:"sm",children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Raw request"}),y.jsx(nl,{children:"Headers + raw body as captured."})]}),y.jsxs(ll,{className:"space-y-2",children:[y.jsx("div",{className:"text-muted-foreground text-xs",children:"Headers"}),y.jsx("pre",{className:"bg-muted/40 border-border overflow-auto border p-3 text-xs",children:Ps(R.capture.headers)}),y.jsx("div",{className:"text-muted-foreground text-xs",children:"Body"}),y.jsx("pre",{className:"bg-muted/40 border-border overflow-auto border p-3 text-xs",children:R.capture.rawBody||Ps(R.capture.body)})]})]})]}):y.jsx("div",{className:"text-muted-foreground p-2 text-xs",children:"Select a capture on the left."})})]})]})}function WE(l){const[r,o]=c.useState(""),[i,f]=c.useState(!1),[d,m]=c.useState(null),[h,v]=c.useState([]),[p,x]=c.useState([]),b=async w=>{f(!0),m(null);try{const[O,N]=await Promise.all([u8(),c8({refresh:w?.refreshRemote})]);v(O.templates),x(N.templates)}catch(O){m(O instanceof Error?O.message:"Failed to load templates")}finally{f(!1)}};c.useEffect(()=>{b()},[]),c.useEffect(()=>{l.wsLocalTemplates&&v(l.wsLocalTemplates)},[l.wsLocalTemplates]),c.useEffect(()=>{l.wsRemoteTemplates&&x(l.wsRemoteTemplates)},[l.wsRemoteTemplates]);const S=c.useMemo(()=>{const w=r.trim().toLowerCase();return w?h.filter(O=>{const N=O.metadata;return N.id.toLowerCase().includes(w)||N.name.toLowerCase().includes(w)||N.provider.toLowerCase().includes(w)||N.event.toLowerCase().includes(w)||(N.description||"").toLowerCase().includes(w)}):h},[r,h]),R=c.useMemo(()=>{const w=r.trim().toLowerCase();return w?p.filter(O=>{const N=O.metadata;return N.id.toLowerCase().includes(w)||N.name.toLowerCase().includes(w)||N.provider.toLowerCase().includes(w)||N.event.toLowerCase().includes(w)||(N.description||"").toLowerCase().includes(w)}):p},[r,p]),A=async w=>{m(null);try{await HS(w),await b()}catch(O){m(O instanceof Error?O.message:"Download failed")}},M=async()=>{m(null),f(!0);try{await DS(),await b()}catch(w){m(w instanceof Error?w.message:"Download-all failed")}finally{f(!1)}};return y.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Templates"}),y.jsx(nl,{children:"Browse remote templates and download them locally."}),y.jsxs(uu,{className:"flex items-center gap-2",children:[y.jsxs(ln,{variant:"outline",size:"icon",onClick:()=>{b({refreshRemote:!0})},disabled:i,children:[y.jsx(ui,{}),y.jsx("span",{className:"sr-only",children:"Refresh remote"})]}),y.jsxs(ln,{variant:"default",onClick:()=>{M()},disabled:i,children:[y.jsx(nd,{"data-icon":"inline-start"}),"Download all"]})]})]}),y.jsxs(ll,{className:"space-y-4",children:[y.jsx(Wr,{children:y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"templates-search",children:"Search"}),y.jsx(Ul,{id:"templates-search",placeholder:"Search by id, provider, event...",value:r,onChange:w=>o(w.target.value)})]})}),d&&y.jsx("div",{className:"text-destructive text-xs",children:d}),y.jsx("div",{className:"border-border max-h-[calc(100vh-22rem)] overflow-auto border",children:R.length===0?y.jsx("div",{className:"text-muted-foreground p-4 text-xs",children:"No remote templates found."}):y.jsx("div",{className:"divide-border divide-y",children:R.map(w=>y.jsxs("div",{className:"p-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"text-sm font-medium",children:w.metadata.id}),y.jsx(En,{variant:"secondary",children:w.metadata.provider}),y.jsx("div",{className:"text-muted-foreground ml-auto",children:w.isDownloaded?y.jsx(En,{variant:"outline",children:"downloaded"}):y.jsx(En,{variant:"outline",children:"remote"})})]}),y.jsxs("div",{className:"text-muted-foreground mt-1 text-xs",children:[w.metadata.event," • ",w.metadata.name]}),w.metadata.description&&y.jsx("div",{className:"text-muted-foreground mt-1 text-xs",children:w.metadata.description}),y.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[y.jsxs(ln,{variant:"outline",size:"sm",onClick:()=>{A(w.metadata.id)},disabled:w.isDownloaded||i,children:[y.jsx(nd,{"data-icon":"inline-start"}),"Download"]}),w.metadata.docsUrl&&y.jsx(ln,{variant:"ghost",size:"sm",render:y.jsx("a",{href:w.metadata.docsUrl,target:"_blank",rel:"noreferrer"}),children:"Docs"})]})]},w.metadata.id))})})]}),y.jsx(Ed,{className:"text-muted-foreground",children:i?"Loading...":`Remote: ${R.length}`})]}),y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Local templates"}),y.jsx(nl,{children:"Templates saved on your machine (downloaded from remote)."})]}),y.jsxs(ll,{className:"space-y-3",children:[y.jsx(p0,{}),y.jsx("div",{className:"border-border max-h-[calc(100vh-22rem)] overflow-auto border",children:S.length===0?y.jsx("div",{className:"text-muted-foreground p-4 text-xs",children:"No local templates yet. Download one from the left."}):y.jsx("div",{className:"divide-border divide-y",children:S.map(w=>y.jsxs("div",{className:"p-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"text-sm font-medium",children:w.id}),y.jsx(En,{variant:"secondary",children:w.metadata.provider}),y.jsx("div",{className:"text-muted-foreground ml-auto",children:w.metadata.event})]}),y.jsx("div",{className:"text-muted-foreground mt-1 text-xs",children:w.metadata.name}),w.metadata.description&&y.jsx("div",{className:"text-muted-foreground mt-1 text-xs",children:w.metadata.description})]},w.id))})})]}),y.jsxs(Ed,{className:"text-muted-foreground",children:["Local: ",S.length]})]})]})}function e5(l){const r=new Set(l.local.map(i=>i.id)),o=[];for(const i of l.local)o.push({id:i.id,label:i.id,provider:i.metadata.provider,event:i.metadata.event,isDownloaded:!0});for(const i of l.remote)r.has(i.metadata.id)||o.push({id:`remote:${i.metadata.id}`,label:i.metadata.id,provider:i.metadata.provider,event:i.metadata.event,isDownloaded:!1});return o.sort((i,f)=>i.label.localeCompare(f.label))}function t5(){const[l,r]=c.useState([]),[o,i]=c.useState(""),[f,d]=c.useState("http://localhost:3000/webhooks"),[m,h]=c.useState(""),[v,p]=c.useState(""),[x,b]=c.useState(null),[S,R]=c.useState(null),[A,M]=c.useState(!1),[w,O]=c.useState(!1),N=async()=>{O(!0),R(null);try{const[T,B]=await Promise.all([u8(),c8({refresh:!1})]),V=e5({local:T.templates,remote:B.templates});r(V),!o&&V.length&&i(V[0].id)}catch(T){R(T instanceof Error?T.message:"Failed to load templates")}finally{O(!1)}};c.useEffect(()=>{N()},[]);const z=c.useMemo(()=>l.find(T=>T.id===o)||null,[l,o]),D=async()=>{M(!0),R(null),b(null);try{const T=M8(v),B=await LS({templateId:o,url:f,secret:m.trim()?m.trim():void 0,headers:T.length?T:void 0});b(B)}catch(T){R(T instanceof Error?T.message:"Run failed")}finally{M(!1)}};return y.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1fr_minmax(320px,420px)]",children:[y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Run template"}),y.jsx(nl,{children:"Send a webhook template to any URL. Remote templates can be run by selecting them (they’ll download automatically)."}),y.jsx(uu,{children:y.jsxs(ln,{variant:"outline",size:"icon",onClick:()=>{N()},disabled:w,children:[y.jsx(ui,{}),y.jsx("span",{className:"sr-only",children:"Refresh templates"})]})})]}),y.jsx(ll,{children:y.jsxs(Wr,{children:[y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"run-template",children:"Template"}),y.jsxs(Md,{value:o,onValueChange:T=>i(T??""),children:[y.jsx(Od,{id:"run-template",className:"w-full",children:y.jsx(Cd,{})}),y.jsx(Nd,{children:y.jsxs(wd,{children:[y.jsx(zd,{children:"Templates"}),l.map(T=>y.jsx(jd,{value:T.id,children:T.label},T.id))]})})]}),z&&y.jsx(ga,{children:z.provider&&y.jsxs("span",{className:"inline-flex items-center gap-2",children:[y.jsx(En,{variant:"secondary",children:z.provider}),y.jsx("span",{className:"text-muted-foreground",children:z.event}),z.isDownloaded===!1&&y.jsx(En,{variant:"outline",children:"remote"})]})})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"run-url",children:"Target URL"}),y.jsx(Ul,{id:"run-url",value:f,onChange:T=>d(T.target.value)})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"run-secret",children:"Secret (optional)"}),y.jsx(Ul,{id:"run-secret",value:m,onChange:T=>h(T.target.value),placeholder:"If omitted, server will try provider env vars"})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{htmlFor:"run-headers",children:"Headers (optional)"}),y.jsx(Hd,{id:"run-headers",value:v,onChange:T=>p(T.target.value),placeholder:`X-Debug:true
|
|
23
|
+
X-Request-Id: 123`}),y.jsx(ga,{children:"One header per line, format: key:value"})]}),S&&y.jsx("div",{className:"text-destructive text-xs",children:S}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs(ln,{onClick:()=>{D()},disabled:A||!o,children:[y.jsx(Vd,{"data-icon":"inline-start"}),A?"Sending...":"Send"]}),y.jsx(ln,{variant:"outline",onClick:()=>b(null),disabled:A,children:"Clear result"})]})]})})]}),y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Result"}),y.jsx(nl,{children:x?`${x.status} ${x.statusText} • ${x.duration}ms`:"No result yet."})]}),y.jsx(ll,{className:"space-y-2",children:x?y.jsx("pre",{className:"bg-muted/40 border-border overflow-auto border p-3 text-xs",children:Ps(x.json??x.body)}):y.jsx("div",{className:"text-muted-foreground text-xs",children:"Select a template, set a target URL, and send it."})})]})]})}function n5(l){const r=c.useMemo(()=>`${window.location.protocol==="https:"?"wss":"ws"}://${window.location.host}/ws`,[]);return y.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Connection"}),y.jsx(nl,{children:"Dashboard server status and endpoints."})]}),y.jsx(ll,{children:y.jsxs(Wr,{children:[y.jsxs(Pt,{children:[y.jsx(Jt,{children:"API"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(En,{variant:l.apiOk?"secondary":"outline",children:l.apiOk?"healthy":"unavailable"}),y.jsx("span",{className:"text-muted-foreground text-xs",children:"/api"})]})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{children:"WebSocket"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(En,{variant:l.wsOk?"secondary":"outline",children:l.wsOk?"connected":"disconnected"}),y.jsx("span",{className:"text-muted-foreground text-xs",children:r})]})]}),l.captureUrl&&y.jsxs(Pt,{children:[y.jsx(Jt,{children:"Capture server"}),y.jsxs("div",{className:"text-muted-foreground text-xs",children:["Send webhooks to:"," ",y.jsx("span",{className:"text-foreground",children:l.captureUrl})]})]})]})})]}),y.jsxs(Fn,{children:[y.jsxs(el,{className:"border-b",children:[y.jsx(tl,{children:"Notes"}),y.jsx(nl,{children:"Helpful reminders for local webhook development."})]}),y.jsx(ll,{children:y.jsxs(Wr,{children:[y.jsxs(Pt,{children:[y.jsx(Jt,{children:"Same-origin API"}),y.jsxs(ga,{children:["The dashboard UI uses relative paths (e.g."," ",y.jsx("span",{className:"text-foreground",children:"/api/captures"}),") so it works when served from the CLI."]})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{children:"Security"}),y.jsxs(ga,{children:["Keep the dashboard on"," ",y.jsx("span",{className:"text-foreground",children:"localhost"})," unless you trust your network. The API can send requests to arbitrary URLs (run/replay)."]})]}),y.jsxs(Pt,{children:[y.jsx(Jt,{children:"Default app target"}),y.jsx(Ul,{disabled:!0,value:"http://localhost:3000"}),y.jsxs(ga,{children:["Replay defaults to"," ",y.jsx("span",{className:"text-foreground",children:"localhost:3000"})," + captured path."]})]})]})})]})]})}function l5(){return`${window.location.protocol==="https:"?"wss":"ws"}://${window.location.host}/ws`}function a5(l){const r=new WebSocket(l5());return r.onopen=()=>l.onOpen?.(),r.onclose=()=>l.onClose?.(),r.onerror=()=>l.onError?.(),r.onmessage=o=>{try{const i=JSON.parse(String(o.data));l.onMessage(i)}catch{}},r}function r5(){const[l,r]=c.useState("captures"),[o,i]=c.useState(!1),[f,d]=c.useState(!1),[m,h]=c.useState(void 0),[v,p]=c.useState(void 0),[x,b]=c.useState(void 0);return c.useEffect(()=>{wS().then(()=>i(!0)).catch(()=>i(!1))},[]),c.useEffect(()=>{const S=a5({onOpen:()=>d(!0),onClose:()=>d(!1),onError:()=>d(!1),onMessage:R=>{R.type==="captures_updated"&&h(R.payload.captures),R.type==="capture"&&h(A=>{const M=A?[...A]:[];return[{file:R.payload.file,capture:R.payload.capture},...M].slice(0,200)}),R.type==="templates_updated"&&(p(R.payload.local),b(R.payload.remote))}});return()=>S.close()},[]),y.jsx(SS,{defaultTheme:"dark",storageKey:"vite-ui-theme",children:y.jsxs("div",{className:"min-h-dvh",children:[y.jsx("div",{className:"fixed right-4 top-4 z-50",children:y.jsx(RS,{})}),y.jsxs("div",{className:"mx-auto grid max-w-screen-2xl grid-cols-1 gap-4 p-4 lg:grid-cols-[220px_1fr]",children:[y.jsxs(Fn,{className:"h-fit",children:[y.jsxs("div",{className:"px-4",children:[y.jsxs("div",{className:"flex items-center justify-between pt-1",children:[y.jsx("div",{className:"text-sm font-medium",children:"better-webhook"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(En,{variant:o?"secondary":"outline",children:"api"}),y.jsx(En,{variant:f?"secondary":"outline",children:"ws"})]})]}),y.jsx("div",{className:"text-muted-foreground text-xs",children:"Local dashboard"})]}),y.jsx(p0,{className:"mt-4"}),y.jsx("nav",{className:"flex flex-col gap-1 px-2 pt-2",children:MS.map(S=>y.jsxs(ln,{variant:l===S.key?"secondary":"ghost",className:"justify-start",onClick:()=>r(S.key),children:[S.icon,S.label]},S.key))}),y.jsxs("div",{className:"text-muted-foreground px-4 pt-3 pb-2 text-xs",children:["Run:"," ",y.jsx("span",{className:"text-foreground",children:"better-webhook dashboard"})]})]}),y.jsxs("div",{className:"min-w-0",children:[l==="captures"&&y.jsx($E,{wsCaptures:m}),l==="templates"&&y.jsx(WE,{wsLocalTemplates:v,wsRemoteTemplates:x}),l==="run"&&y.jsx(t5,{}),l==="settings"&&y.jsx(n5,{apiOk:o,wsOk:f,captureUrl:"http://localhost:3001"})]})]})]})})}K4.createRoot(document.getElementById("root")).render(y.jsx(c.StrictMode,{children:y.jsx(r5,{})}));
|