@necto-react/hooks 2.14.3 → 2.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.global.js +4 -4
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var uo=Object.create;var wn=Object.defineProperty;var ao=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var lo=Object.getPrototypeOf,fo=Object.prototype.hasOwnProperty;var Ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var po=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of co(t))!fo.call(e,s)&&s!==r&&wn(e,s,{get:()=>t[s],enumerable:!(o=ao(t,s))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?uo(lo(e)):{},po(t||!e||!e.__esModule?wn(r,"default",{value:e,enumerable:!0}):r,e));var kn=Ce(w=>{"use strict";var Pt=Symbol.for("react.transitional.element"),yo=Symbol.for("react.portal"),mo=Symbol.for("react.fragment"),go=Symbol.for("react.strict_mode"),Eo=Symbol.for("react.profiler"),vo=Symbol.for("react.consumer"),ho=Symbol.for("react.context"),To=Symbol.for("react.forward_ref"),bo=Symbol.for("react.suspense"),Ro=Symbol.for("react.memo"),Mn=Symbol.for("react.lazy"),So=Symbol.for("react.activity"),An=Symbol.iterator;function _o(e){return e===null||typeof e!="object"?null:(e=An&&e[An]||e["@@iterator"],typeof e=="function"?e:null)}var In={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xn=Object.assign,Dn={};function Me(e,t,r){this.props=e,this.context=t,this.refs=Dn,this.updater=r||In}Me.prototype.isReactComponent={};Me.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Me.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Un(){}Un.prototype=Me.prototype;function Mt(e,t,r){this.props=e,this.context=t,this.refs=Dn,this.updater=r||In}var It=Mt.prototype=new Un;It.constructor=Mt;xn(It,Me.prototype);It.isPureReactComponent=!0;var Ln=Array.isArray;function Ct(){}var H={H:null,A:null,T:null,S:null},Fn=Object.prototype.hasOwnProperty;function xt(e,t,r){var o=r.ref;return{$$typeof:Pt,type:e,key:t,ref:o!==void 0?o:null,props:r}}function Oo(e,t){return xt(e.type,t,e.props)}function Dt(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pt}function wo(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Cn=/\/+/g;function Lt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wo(""+e.key):t.toString(36)}function Ao(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ct,Ct):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pe(e,t,r,o,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Pt:case yo:l=!0;break;case Mn:return l=e._init,Pe(l(e._payload),t,r,o,s)}}if(l)return s=s(e),l=o===""?"."+Lt(e,0):o,Ln(s)?(r="",l!=null&&(r=l.replace(Cn,"$&/")+"/"),Pe(s,t,r,"",function(p){return p})):s!=null&&(Dt(s)&&(s=Oo(s,r+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(Cn,"$&/")+"/")+l)),t.push(s)),1;l=0;var d=o===""?".":o+":";if(Ln(e))for(var f=0;f<e.length;f++)o=e[f],i=d+Lt(o,f),l+=Pe(o,t,r,i,s);else if(f=_o(e),typeof f=="function")for(e=f.call(e),f=0;!(o=e.next()).done;)o=o.value,i=d+Lt(o,f++),l+=Pe(o,t,r,i,s);else if(i==="object"){if(typeof e.then=="function")return Pe(Ao(e),t,r,o,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function nt(e,t,r){if(e==null)return e;var o=[],s=0;return Pe(e,o,"","",function(i){return t.call(r,i,s++)}),o}function Lo(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pn=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)},Co={map:nt,forEach:function(e,t,r){nt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return nt(e,function(){t++}),t},toArray:function(e){return nt(e,function(t){return t})||[]},only:function(e){if(!Dt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=So;w.Children=Co;w.Component=Me;w.Fragment=mo;w.Profiler=Eo;w.PureComponent=Mt;w.StrictMode=go;w.Suspense=bo;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return H.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=xn({},e.props),s=e.key;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)!Fn.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];o.children=l}return xt(e.type,s,o)};w.createContext=function(e){return e={$$typeof:ho,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:vo,_context:e},e};w.createElement=function(e,t,r){var o,s={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Fn.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(s[o]=t[o]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var d=Array(l),f=0;f<l;f++)d[f]=arguments[f+2];s.children=d}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)s[o]===void 0&&(s[o]=l[o]);return xt(e,i,s)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:To,render:e}};w.isValidElement=Dt;w.lazy=function(e){return{$$typeof:Mn,_payload:{_status:-1,_result:e},_init:Lo}};w.memo=function(e,t){return{$$typeof:Ro,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=H.T,r={};H.T=r;try{var o=e(),s=H.S;s!==null&&s(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Ct,Pn)}catch(i){Pn(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),H.T=t}};w.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()};w.use=function(e){return H.H.use(e)};w.useActionState=function(e,t,r){return H.H.useActionState(e,t,r)};w.useCallback=function(e,t){return H.H.useCallback(e,t)};w.useContext=function(e){return H.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return H.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return H.H.useEffect(e,t)};w.useEffectEvent=function(e){return H.H.useEffectEvent(e)};w.useId=function(){return H.H.useId()};w.useImperativeHandle=function(e,t,r){return H.H.useImperativeHandle(e,t,r)};w.useInsertionEffect=function(e,t){return H.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return H.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return H.H.useMemo(e,t)};w.useOptimistic=function(e,t){return H.H.useOptimistic(e,t)};w.useReducer=function(e,t,r){return H.H.useReducer(e,t,r)};w.useRef=function(e){return H.H.useRef(e)};w.useState=function(e){return H.H.useState(e)};w.useSyncExternalStore=function(e,t,r){return H.H.useSyncExternalStore(e,t,r)};w.useTransition=function(){return H.H.useTransition()};w.version="19.2.0"});var Nn=Ce((O,rt)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(n,u){Object.defineProperty(o.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function t(n){return n===null||typeof n!="object"?null:(n=dn&&n[dn]||n["@@iterator"],typeof n=="function"?n:null)}function r(n,u){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var y=n+"."+u;pn[y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,n),pn[y]=!0)}function o(n,u,y){this.props=n,this.context=u,this.refs=wt,this.updater=y||yn}function s(){}function i(n,u,y){this.props=n,this.context=u,this.refs=wt,this.updater=y||yn}function l(){}function d(n){return""+n}function f(n){try{d(n);var u=!1}catch{u=!0}if(u){u=console;var y=u.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return y.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),d(n)}}function p(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===no?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case St:return"Fragment";case un:return"Profiler";case sn:return"StrictMode";case ln:return"Suspense";case to:return"SuspenseList";case fn:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case ce:return"Portal";case an:return n.displayName||"Context";case _t:return(n._context.displayName||"Context")+".Consumer";case cn:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Ot:return u=n.displayName||null,u!==null?u:p(n.type)||"Memo";case Ne:u=n._payload,n=n._init;try{return p(n(u))}catch{}}return null}function b(n){if(n===St)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===Ne)return"<...>";try{var u=p(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function c(){var n=P.A;return n===null?null:n.getOwner()}function a(){return Error("react-stack-top-frame")}function g(n){if(Ze.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function S(n,u){function y(){vn||(vn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}y.isReactWarning=!0,Object.defineProperty(n,"key",{get:y,configurable:!0})}function T(){var n=p(this.type);return Tn[n]||(Tn[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function v(n,u,y,h,R,M){var L=y.ref;return n={$$typeof:_,type:n,key:u,props:y,_owner:h},(L!==void 0?L:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:T}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function k(n,u){return u=v(n.type,u,n.props,n._owner,n._debugStack,n._debugTask),n._store&&(u._store.validated=n._store.validated),u}function x(n){C(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===Ne&&(n._payload.status==="fulfilled"?C(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function C(n){return typeof n=="object"&&n!==null&&n.$$typeof===_}function B(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(y){return u[y]})}function U(n,u){return typeof n=="object"&&n!==null&&n.key!=null?(f(n.key),B(""+n.key)):u.toString(36)}function Y(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(l,l):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function j(n,u,y,h,R){var M=typeof n;(M==="undefined"||M==="boolean")&&(n=null);var L=!1;if(n===null)L=!0;else switch(M){case"bigint":case"string":case"number":L=!0;break;case"object":switch(n.$$typeof){case _:case ce:L=!0;break;case Ne:return L=n._init,j(L(n._payload),u,y,h,R)}}if(L){L=n,R=R(L);var N=h===""?"."+U(L,0):h;return gn(R)?(y="",N!=null&&(y=N.replace(Rn,"$&/")+"/"),j(R,u,y,"",function(de){return de})):R!=null&&(C(R)&&(R.key!=null&&(L&&L.key===R.key||f(R.key)),y=k(R,y+(R.key==null||L&&L.key===R.key?"":(""+R.key).replace(Rn,"$&/")+"/")+N),h!==""&&L!=null&&C(L)&&L.key==null&&L._store&&!L._store.validated&&(y._store.validated=2),R=y),u.push(R)),1}if(L=0,N=h===""?".":h+":",gn(n))for(var I=0;I<n.length;I++)h=n[I],M=N+U(h,I),L+=j(h,u,y,M,R);else if(I=t(n),typeof I=="function")for(I===n.entries&&(bn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bn=!0),n=I.call(n),I=0;!(h=n.next()).done;)h=h.value,M=N+U(h,I++),L+=j(h,u,y,M,R);else if(M==="object"){if(typeof n.then=="function")return j(Y(n),u,y,h,R);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return L}function G(n,u,y){if(n==null)return n;var h=[],R=0;return j(n,h,"","",function(M){return u.call(y,M,R++)}),h}function fe(n){if(n._status===-1){var u=n._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=n._result;var y=u();if(y.then(function(R){if(n._status===0||n._status===-1){n._status=1,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="fulfilled",y.value=R)}},function(R){if(n._status===0||n._status===-1){n._status=2,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="rejected",y.reason=R)}}),u=n._ioInfo,u!=null){u.value=y;var h=y.displayName;typeof h=="string"&&(u.name=h)}n._status===-1&&(n._status=0,n._result=y)}if(n._status===1)return u=n._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
"use strict";(()=>{var fo=Object.create;var Cn=Object.defineProperty;var po=Object.getOwnPropertyDescriptor;var yo=Object.getOwnPropertyNames;var mo=Object.getPrototypeOf,go=Object.prototype.hasOwnProperty;var Ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Eo=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of yo(t))!go.call(e,s)&&s!==r&&Cn(e,s,{get:()=>t[s],enumerable:!(o=po(t,s))||o.enumerable});return e};var K=(e,t,r)=>(r=e!=null?fo(mo(e)):{},Eo(t||!e||!e.__esModule?Cn(r,"default",{value:e,enumerable:!0}):r,e));var Hn=Ce(w=>{"use strict";var It=Symbol.for("react.transitional.element"),vo=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),To=Symbol.for("react.strict_mode"),bo=Symbol.for("react.profiler"),Ro=Symbol.for("react.consumer"),So=Symbol.for("react.context"),Oo=Symbol.for("react.forward_ref"),_o=Symbol.for("react.suspense"),wo=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),Ao=Symbol.for("react.activity"),Pn=Symbol.iterator;function Lo(e){return e===null||typeof e!="object"?null:(e=Pn&&e[Pn]||e["@@iterator"],typeof e=="function"?e:null)}var Un={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fn=Object.assign,kn={};function Me(e,t,r){this.props=e,this.context=t,this.refs=kn,this.updater=r||Un}Me.prototype.isReactComponent={};Me.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Me.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nn(){}Nn.prototype=Me.prototype;function xt(e,t,r){this.props=e,this.context=t,this.refs=kn,this.updater=r||Un}var Dt=xt.prototype=new Nn;Dt.constructor=xt;Fn(Dt,Me.prototype);Dt.isPureReactComponent=!0;var Mn=Array.isArray;function Mt(){}var H={H:null,A:null,T:null,S:null},Kn=Object.prototype.hasOwnProperty;function Ut(e,t,r){var o=r.ref;return{$$typeof:It,type:e,key:t,ref:o!==void 0?o:null,props:r}}function Co(e,t){return Ut(e.type,t,e.props)}function Ft(e){return typeof e=="object"&&e!==null&&e.$$typeof===It}function Po(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var In=/\/+/g;function Pt(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Po(""+e.key):t.toString(36)}function Mo(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Mt,Mt):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pe(e,t,r,o,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case It:case vo:l=!0;break;case Dn:return l=e._init,Pe(l(e._payload),t,r,o,s)}}if(l)return s=s(e),l=o===""?"."+Pt(e,0):o,Mn(s)?(r="",l!=null&&(r=l.replace(In,"$&/")+"/"),Pe(s,t,r,"",function(p){return p})):s!=null&&(Ft(s)&&(s=Co(s,r+(s.key==null||e&&e.key===s.key?"":(""+s.key).replace(In,"$&/")+"/")+l)),t.push(s)),1;l=0;var d=o===""?".":o+":";if(Mn(e))for(var f=0;f<e.length;f++)o=e[f],i=d+Pt(o,f),l+=Pe(o,t,r,i,s);else if(f=Lo(e),typeof f=="function")for(e=f.call(e),f=0;!(o=e.next()).done;)o=o.value,i=d+Pt(o,f++),l+=Pe(o,t,r,i,s);else if(i==="object"){if(typeof e.then=="function")return Pe(Mo(e),t,r,o,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function ot(e,t,r){if(e==null)return e;var o=[],s=0;return Pe(e,o,"","",function(i){return t.call(r,i,s++)}),o}function Io(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var xn=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)},xo={map:ot,forEach:function(e,t,r){ot(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ot(e,function(){t++}),t},toArray:function(e){return ot(e,function(t){return t})||[]},only:function(e){if(!Ft(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Activity=Ao;w.Children=xo;w.Component=Me;w.Fragment=ho;w.Profiler=bo;w.PureComponent=xt;w.StrictMode=To;w.Suspense=_o;w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H;w.__COMPILER_RUNTIME={__proto__:null,c:function(e){return H.H.useMemoCache(e)}};w.cache=function(e){return function(){return e.apply(null,arguments)}};w.cacheSignal=function(){return null};w.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Fn({},e.props),s=e.key;if(t!=null)for(i in t.key!==void 0&&(s=""+t.key),t)!Kn.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];o.children=l}return Ut(e.type,s,o)};w.createContext=function(e){return e={$$typeof:So,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Ro,_context:e},e};w.createElement=function(e,t,r){var o,s={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)Kn.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(s[o]=t[o]);var l=arguments.length-2;if(l===1)s.children=r;else if(1<l){for(var d=Array(l),f=0;f<l;f++)d[f]=arguments[f+2];s.children=d}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)s[o]===void 0&&(s[o]=l[o]);return Ut(e,i,s)};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:Oo,render:e}};w.isValidElement=Ft;w.lazy=function(e){return{$$typeof:Dn,_payload:{_status:-1,_result:e},_init:Io}};w.memo=function(e,t){return{$$typeof:wo,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=H.T,r={};H.T=r;try{var o=e(),s=H.S;s!==null&&s(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(Mt,xn)}catch(i){xn(i)}finally{t!==null&&r.types!==null&&(t.types=r.types),H.T=t}};w.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()};w.use=function(e){return H.H.use(e)};w.useActionState=function(e,t,r){return H.H.useActionState(e,t,r)};w.useCallback=function(e,t){return H.H.useCallback(e,t)};w.useContext=function(e){return H.H.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e,t){return H.H.useDeferredValue(e,t)};w.useEffect=function(e,t){return H.H.useEffect(e,t)};w.useEffectEvent=function(e){return H.H.useEffectEvent(e)};w.useId=function(){return H.H.useId()};w.useImperativeHandle=function(e,t,r){return H.H.useImperativeHandle(e,t,r)};w.useInsertionEffect=function(e,t){return H.H.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return H.H.useLayoutEffect(e,t)};w.useMemo=function(e,t){return H.H.useMemo(e,t)};w.useOptimistic=function(e,t){return H.H.useOptimistic(e,t)};w.useReducer=function(e,t,r){return H.H.useReducer(e,t,r)};w.useRef=function(e){return H.H.useRef(e)};w.useState=function(e){return H.H.useState(e)};w.useSyncExternalStore=function(e,t,r){return H.H.useSyncExternalStore(e,t,r)};w.useTransition=function(){return H.H.useTransition()};w.version="19.2.0"});var Vn=Ce((_,st)=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(n,u){Object.defineProperty(o.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function t(n){return n===null||typeof n!="object"?null:(n=mn&&n[mn]||n["@@iterator"],typeof n=="function"?n:null)}function r(n,u){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var y=n+"."+u;gn[y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,n),gn[y]=!0)}function o(n,u,y){this.props=n,this.context=u,this.refs=Lt,this.updater=y||En}function s(){}function i(n,u,y){this.props=n,this.context=u,this.refs=Lt,this.updater=y||En}function l(){}function d(n){return""+n}function f(n){try{d(n);var u=!1}catch{u=!0}if(u){u=console;var y=u.error,h=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return y.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",h),d(n)}}function p(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===io?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _t:return"Fragment";case ln:return"Profiler";case cn:return"StrictMode";case pn:return"Suspense";case so:return"SuspenseList";case yn:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case ce:return"Portal";case fn:return n.displayName||"Context";case wt:return(n._context.displayName||"Context")+".Consumer";case dn:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case At:return u=n.displayName||null,u!==null?u:p(n.type)||"Memo";case Ne:u=n._payload,n=n._init;try{return p(n(u))}catch{}}return null}function b(n){if(n===_t)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===Ne)return"<...>";try{var u=p(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function c(){var n=P.A;return n===null?null:n.getOwner()}function a(){return Error("react-stack-top-frame")}function g(n){if(et.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function S(n,u){function y(){bn||(bn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}y.isReactWarning=!0,Object.defineProperty(n,"key",{get:y,configurable:!0})}function T(){var n=p(this.type);return Sn[n]||(Sn[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function v(n,u,y,h,R,M){var L=y.ref;return n={$$typeof:O,type:n,key:u,props:y,_owner:h},(L!==void 0?L:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:T}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function k(n,u){return u=v(n.type,u,n.props,n._owner,n._debugStack,n._debugTask),n._store&&(u._store.validated=n._store.validated),u}function x(n){C(n)?n._store&&(n._store.validated=1):typeof n=="object"&&n!==null&&n.$$typeof===Ne&&(n._payload.status==="fulfilled"?C(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function C(n){return typeof n=="object"&&n!==null&&n.$$typeof===O}function B(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(y){return u[y]})}function U(n,u){return typeof n=="object"&&n!==null&&n.key!=null?(f(n.key),B(""+n.key)):u.toString(36)}function Y(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(l,l):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function j(n,u,y,h,R){var M=typeof n;(M==="undefined"||M==="boolean")&&(n=null);var L=!1;if(n===null)L=!0;else switch(M){case"bigint":case"string":case"number":L=!0;break;case"object":switch(n.$$typeof){case O:case ce:L=!0;break;case Ne:return L=n._init,j(L(n._payload),u,y,h,R)}}if(L){L=n,R=R(L);var N=h===""?"."+U(L,0):h;return hn(R)?(y="",N!=null&&(y=N.replace(_n,"$&/")+"/"),j(R,u,y,"",function(de){return de})):R!=null&&(C(R)&&(R.key!=null&&(L&&L.key===R.key||f(R.key)),y=k(R,y+(R.key==null||L&&L.key===R.key?"":(""+R.key).replace(_n,"$&/")+"/")+N),h!==""&&L!=null&&C(L)&&L.key==null&&L._store&&!L._store.validated&&(y._store.validated=2),R=y),u.push(R)),1}if(L=0,N=h===""?".":h+":",hn(n))for(var I=0;I<n.length;I++)h=n[I],M=N+U(h,I),L+=j(h,u,y,M,R);else if(I=t(n),typeof I=="function")for(I===n.entries&&(On||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),On=!0),n=I.call(n),I=0;!(h=n.next()).done;)h=h.value,M=N+U(h,I++),L+=j(h,u,y,M,R);else if(M==="object"){if(typeof n.then=="function")return j(Y(n),u,y,h,R);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return L}function G(n,u,y){if(n==null)return n;var h=[],R=0;return j(n,h,"","",function(M){return u.call(y,M,R++)}),h}function fe(n){if(n._status===-1){var u=n._ioInfo;u!=null&&(u.start=u.end=performance.now()),u=n._result;var y=u();if(y.then(function(R){if(n._status===0||n._status===-1){n._status=1,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="fulfilled",y.value=R)}},function(R){if(n._status===0||n._status===-1){n._status=2,n._result=R;var M=n._ioInfo;M!=null&&(M.end=performance.now()),y.status===void 0&&(y.status="rejected",y.reason=R)}}),u=n._ioInfo,u!=null){u.value=y;var h=y.displayName;typeof h=="string"&&(u.name=h)}n._status===-1&&(n._status=0,n._result=y)}if(n._status===1)return u=n._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -10,12 +10,12 @@ Your code should look like:
|
|
|
10
10
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
11
|
2. You might be breaking the Rules of Hooks
|
|
12
12
|
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function Se(){P.asyncTransitions--}function ue(n){if(Je===null)try{var u=("require"+Math.random()).slice(0,7);Je=(rt&&rt[u]).call(rt,"timers").setImmediate}catch{Je=function(h){_n===!1&&(_n=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=h,R.port2.postMessage(void 0)}}return Je(n)}function ae(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function E(n,u){u!==et-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),et=u}function m(n,u,y){var h=P.actQueue;if(h!==null)if(h.length!==0)try{D(h),ue(function(){return m(n,u,y)});return}catch(R){P.thrownErrors.push(R)}else P.actQueue=null;0<P.thrownErrors.length?(h=ae(P.thrownErrors),P.thrownErrors.length=0,y(h)):u(n)}function D(n){if(!At){At=!0;var u=0;try{for(;u<n.length;u++){var y=n[u];do{P.didUsePromise=!1;var h=y(!1);if(h!==null){if(P.didUsePromise){n[u]=y,n.splice(0,u);return}y=h}else break}while(!0)}n.length=0}catch(R){n.splice(0,u+1),P.thrownErrors.push(R)}finally{At=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var _=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),St=Symbol.for("react.fragment"),sn=Symbol.for("react.strict_mode"),un=Symbol.for("react.profiler"),_t=Symbol.for("react.consumer"),an=Symbol.for("react.context"),cn=Symbol.for("react.forward_ref"),ln=Symbol.for("react.suspense"),to=Symbol.for("react.suspense_list"),Ot=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),fn=Symbol.for("react.activity"),dn=Symbol.iterator,pn={},yn={isMounted:function(){return!1},enqueueForceUpdate:function(n){r(n,"forceUpdate")},enqueueReplaceState:function(n){r(n,"replaceState")},enqueueSetState:function(n){r(n,"setState")}},mn=Object.assign,wt={};Object.freeze(wt),o.prototype.isReactComponent={},o.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,u,"setState")},o.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var re={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Ke in re)re.hasOwnProperty(Ke)&&e(Ke,re[Ke]);s.prototype=o.prototype,re=i.prototype=new s,re.constructor=i,mn(re,o.prototype),re.isPureReactComponent=!0;var gn=Array.isArray,no=Symbol.for("react.client.reference"),P={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ze=Object.prototype.hasOwnProperty,En=console.createTask?console.createTask:function(){return null};re={react_stack_bottom_frame:function(n){return n()}};var vn,hn,Tn={},ro=re.react_stack_bottom_frame.bind(re,a)(),oo=En(b(a)),bn=!1,Rn=/\/+/g,Sn=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},_n=!1,Je=null,et=0,tt=!1,At=!1,On=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:ue;re=Object.freeze({__proto__:null,c:function(n){return A().useMemoCache(n)}});var Ke={map:G,forEach:function(n,u,y){G(n,function(){u.apply(this,arguments)},y)},count:function(n){var u=0;return G(n,function(){u++}),u},toArray:function(n){return G(n,function(u){return u})||[]},only:function(n){if(!C(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};O.Activity=fn,O.Children=Ke,O.Component=o,O.Fragment=St,O.Profiler=un,O.PureComponent=i,O.StrictMode=sn,O.Suspense=ln,O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,O.__COMPILER_RUNTIME=re,O.act=function(n){var u=P.actQueue,y=et;et++;var h=P.actQueue=u!==null?u:[],R=!1;try{var M=n()}catch(I){P.thrownErrors.push(I)}if(0<P.thrownErrors.length)throw E(u,y),n=ae(P.thrownErrors),P.thrownErrors.length=0,n;if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var L=M;return On(function(){R||tt||(tt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,de){R=!0,L.then(function(Le){if(E(u,y),y===0){try{D(h),ue(function(){return m(Le,I,de)})}catch(io){P.thrownErrors.push(io)}if(0<P.thrownErrors.length){var so=ae(P.thrownErrors);P.thrownErrors.length=0,de(so)}}else I(Le)},function(Le){E(u,y),0<P.thrownErrors.length&&(Le=ae(P.thrownErrors),P.thrownErrors.length=0),de(Le)})}}}var N=M;if(E(u,y),y===0&&(D(h),h.length!==0&&On(function(){R||tt||(tt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),P.actQueue=null),0<P.thrownErrors.length)throw n=ae(P.thrownErrors),P.thrownErrors.length=0,n;return{then:function(I,de){R=!0,y===0?(P.actQueue=h,ue(function(){return m(N,I,de)})):I(N)}}},O.cache=function(n){return function(){return n.apply(null,arguments)}},O.cacheSignal=function(){return null},O.captureOwnerStack=function(){var n=P.getCurrentStack;return n===null?null:n()},O.cloneElement=function(n,u,y){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var h=mn({},n.props),R=n.key,M=n._owner;if(u!=null){var L;e:{if(Ze.call(u,"ref")&&(L=Object.getOwnPropertyDescriptor(u,"ref").get)&&L.isReactWarning){L=!1;break e}L=u.ref!==void 0}L&&(M=c()),g(u)&&(f(u.key),R=""+u.key);for(N in u)!Ze.call(u,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&u.ref===void 0||(h[N]=u[N])}var N=arguments.length-2;if(N===1)h.children=y;else if(1<N){L=Array(N);for(var I=0;I<N;I++)L[I]=arguments[I+2];h.children=L}for(h=v(n.type,R,h,M,n._debugStack,n._debugTask),R=2;R<arguments.length;R++)x(arguments[R]);return h},O.createContext=function(n){return n={$$typeof:an,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:_t,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},O.createElement=function(n,u,y){for(var h=2;h<arguments.length;h++)x(arguments[h]);h={};var R=null;if(u!=null)for(I in hn||!("__self"in u)||"key"in u||(hn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),g(u)&&(f(u.key),R=""+u.key),u)Ze.call(u,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(h[I]=u[I]);var M=arguments.length-2;if(M===1)h.children=y;else if(1<M){for(var L=Array(M),N=0;N<M;N++)L[N]=arguments[N+2];Object.freeze&&Object.freeze(L),h.children=L}if(n&&n.defaultProps)for(I in M=n.defaultProps,M)h[I]===void 0&&(h[I]=M[I]);R&&S(h,typeof n=="function"?n.displayName||n.name||"Unknown":n);var I=1e4>P.recentlyCreatedOwnerStacks++;return v(n,R,h,c(),I?Error("react-stack-top-frame"):ro,I?En(b(n)):oo)},O.createRef=function(){var n={current:null};return Object.seal(n),n},O.forwardRef=function(n){n!=null&&n.$$typeof===Ot?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:cn,render:n},y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},O.isValidElement=C,O.lazy=function(n){n={_status:-1,_result:n};var u={$$typeof:Ne,_payload:n,_init:fe},y={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return n._ioInfo=y,u._debugInfo=[{awaited:y}],u},O.memo=function(n,u){n==null&&console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),u={$$typeof:Ot,type:n,compare:u===void 0?null:u};var y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},O.startTransition=function(n){var u=P.T,y={};y._updatedFibers=new Set,P.T=y;try{var h=n(),R=P.S;R!==null&&R(y,h),typeof h=="object"&&h!==null&&typeof h.then=="function"&&(P.asyncTransitions++,h.then(Se,Se),h.then(l,Sn))}catch(M){Sn(M)}finally{u===null&&y._updatedFibers&&(n=y._updatedFibers.size,y._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&y.types!==null&&(u.types!==null&&u.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=y.types),P.T=u}},O.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},O.use=function(n){return A().use(n)},O.useActionState=function(n,u,y){return A().useActionState(n,u,y)},O.useCallback=function(n,u){return A().useCallback(n,u)},O.useContext=function(n){var u=A();return n.$$typeof===_t&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(n)},O.useDebugValue=function(n,u){return A().useDebugValue(n,u)},O.useDeferredValue=function(n,u){return A().useDeferredValue(n,u)},O.useEffect=function(n,u){return n==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(n,u)},O.useEffectEvent=function(n){return A().useEffectEvent(n)},O.useId=function(){return A().useId()},O.useImperativeHandle=function(n,u,y){return A().useImperativeHandle(n,u,y)},O.useInsertionEffect=function(n,u){return n==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(n,u)},O.useLayoutEffect=function(n,u){return n==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(n,u)},O.useMemo=function(n,u){return A().useMemo(n,u)},O.useOptimistic=function(n,u){return A().useOptimistic(n,u)},O.useReducer=function(n,u,y){return A().useReducer(n,u,y)},O.useRef=function(n){return A().useRef(n)},O.useState=function(n){return A().useState(n)},O.useSyncExternalStore=function(n,u,y){return A().useSyncExternalStore(n,u,y)},O.useTransition=function(){return A().useTransition()},O.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var F=Ce((js,Ut)=>{"use strict";process.env.NODE_ENV==="production"?Ut.exports=kn():Ut.exports=Nn()});var Gr=Ce(J=>{"use strict";var Ps=F();function Wr(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 Re(){}var Z={d:{f:Re,r:function(){throw Error(Wr(522))},D:Re,C:Re,L:Re,m:Re,X:Re,S:Re,M:Re},p:0,findDOMNode:null},Ms=Symbol.for("react.portal");function Is(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ms,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Xe=Ps.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function bt(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z;J.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Wr(299));return Is(e,t,null,r)};J.flushSync=function(e){var t=Xe.T,r=Z.p;try{if(Xe.T=null,Z.p=2,e)return e()}finally{Xe.T=t,Z.p=r,Z.d.f()}};J.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Z.d.C(e,t))};J.prefetchDNS=function(e){typeof e=="string"&&Z.d.D(e)};J.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=bt(r,t.crossOrigin),s=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Z.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:s,fetchPriority:i}):r==="script"&&Z.d.X(e,{crossOrigin:o,integrity:s,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};J.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=bt(t.as,t.crossOrigin);Z.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Z.d.M(e)};J.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=bt(r,t.crossOrigin);Z.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};J.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=bt(t.as,t.crossOrigin);Z.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Z.d.m(e)};J.requestFormReset=function(e){Z.d.r(e)};J.unstable_batchedUpdates=function(e,t){return e(t)};J.useFormState=function(e,t,r){return Xe.H.useFormState(e,t,r)};J.useFormStatus=function(){return Xe.H.useHostTransitionStatus()};J.version="19.2.0"});var Yr=Ce(ee=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,a,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var T=!1}catch{T=!0}return T&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:p,key:S==null?null:""+S,children:c,containerInfo:a,implementation:g}}function o(c,a){if(c==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}function s(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function l(){var c=b.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function Se(){P.asyncTransitions--}function ue(n){if(tt===null)try{var u=("require"+Math.random()).slice(0,7);tt=(st&&st[u]).call(st,"timers").setImmediate}catch{tt=function(h){An===!1&&(An=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var R=new MessageChannel;R.port1.onmessage=h,R.port2.postMessage(void 0)}}return tt(n)}function ae(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function E(n,u){u!==nt-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),nt=u}function m(n,u,y){var h=P.actQueue;if(h!==null)if(h.length!==0)try{D(h),ue(function(){return m(n,u,y)});return}catch(R){P.thrownErrors.push(R)}else P.actQueue=null;0<P.thrownErrors.length?(h=ae(P.thrownErrors),P.thrownErrors.length=0,y(h)):u(n)}function D(n){if(!Ct){Ct=!0;var u=0;try{for(;u<n.length;u++){var y=n[u];do{P.didUsePromise=!1;var h=y(!1);if(h!==null){if(P.didUsePromise){n[u]=y,n.splice(0,u);return}y=h}else break}while(!0)}n.length=0}catch(R){n.splice(0,u+1),P.thrownErrors.push(R)}finally{Ct=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var O=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),_t=Symbol.for("react.fragment"),cn=Symbol.for("react.strict_mode"),ln=Symbol.for("react.profiler"),wt=Symbol.for("react.consumer"),fn=Symbol.for("react.context"),dn=Symbol.for("react.forward_ref"),pn=Symbol.for("react.suspense"),so=Symbol.for("react.suspense_list"),At=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),yn=Symbol.for("react.activity"),mn=Symbol.iterator,gn={},En={isMounted:function(){return!1},enqueueForceUpdate:function(n){r(n,"forceUpdate")},enqueueReplaceState:function(n){r(n,"replaceState")},enqueueSetState:function(n){r(n,"setState")}},vn=Object.assign,Lt={};Object.freeze(Lt),o.prototype.isReactComponent={},o.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,u,"setState")},o.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var re={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Ke in re)re.hasOwnProperty(Ke)&&e(Ke,re[Ke]);s.prototype=o.prototype,re=i.prototype=new s,re.constructor=i,vn(re,o.prototype),re.isPureReactComponent=!0;var hn=Array.isArray,io=Symbol.for("react.client.reference"),P={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},et=Object.prototype.hasOwnProperty,Tn=console.createTask?console.createTask:function(){return null};re={react_stack_bottom_frame:function(n){return n()}};var bn,Rn,Sn={},uo=re.react_stack_bottom_frame.bind(re,a)(),ao=Tn(b(a)),On=!1,_n=/\/+/g,wn=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},An=!1,tt=null,nt=0,rt=!1,Ct=!1,Ln=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:ue;re=Object.freeze({__proto__:null,c:function(n){return A().useMemoCache(n)}});var Ke={map:G,forEach:function(n,u,y){G(n,function(){u.apply(this,arguments)},y)},count:function(n){var u=0;return G(n,function(){u++}),u},toArray:function(n){return G(n,function(u){return u})||[]},only:function(n){if(!C(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};_.Activity=yn,_.Children=Ke,_.Component=o,_.Fragment=_t,_.Profiler=ln,_.PureComponent=i,_.StrictMode=cn,_.Suspense=pn,_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,_.__COMPILER_RUNTIME=re,_.act=function(n){var u=P.actQueue,y=nt;nt++;var h=P.actQueue=u!==null?u:[],R=!1;try{var M=n()}catch(I){P.thrownErrors.push(I)}if(0<P.thrownErrors.length)throw E(u,y),n=ae(P.thrownErrors),P.thrownErrors.length=0,n;if(M!==null&&typeof M=="object"&&typeof M.then=="function"){var L=M;return Ln(function(){R||rt||(rt=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(I,de){R=!0,L.then(function(Le){if(E(u,y),y===0){try{D(h),ue(function(){return m(Le,I,de)})}catch(lo){P.thrownErrors.push(lo)}if(0<P.thrownErrors.length){var co=ae(P.thrownErrors);P.thrownErrors.length=0,de(co)}}else I(Le)},function(Le){E(u,y),0<P.thrownErrors.length&&(Le=ae(P.thrownErrors),P.thrownErrors.length=0),de(Le)})}}}var N=M;if(E(u,y),y===0&&(D(h),h.length!==0&&Ln(function(){R||rt||(rt=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),P.actQueue=null),0<P.thrownErrors.length)throw n=ae(P.thrownErrors),P.thrownErrors.length=0,n;return{then:function(I,de){R=!0,y===0?(P.actQueue=h,ue(function(){return m(N,I,de)})):I(N)}}},_.cache=function(n){return function(){return n.apply(null,arguments)}},_.cacheSignal=function(){return null},_.captureOwnerStack=function(){var n=P.getCurrentStack;return n===null?null:n()},_.cloneElement=function(n,u,y){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var h=vn({},n.props),R=n.key,M=n._owner;if(u!=null){var L;e:{if(et.call(u,"ref")&&(L=Object.getOwnPropertyDescriptor(u,"ref").get)&&L.isReactWarning){L=!1;break e}L=u.ref!==void 0}L&&(M=c()),g(u)&&(f(u.key),R=""+u.key);for(N in u)!et.call(u,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&u.ref===void 0||(h[N]=u[N])}var N=arguments.length-2;if(N===1)h.children=y;else if(1<N){L=Array(N);for(var I=0;I<N;I++)L[I]=arguments[I+2];h.children=L}for(h=v(n.type,R,h,M,n._debugStack,n._debugTask),R=2;R<arguments.length;R++)x(arguments[R]);return h},_.createContext=function(n){return n={$$typeof:fn,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:wt,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},_.createElement=function(n,u,y){for(var h=2;h<arguments.length;h++)x(arguments[h]);h={};var R=null;if(u!=null)for(I in Rn||!("__self"in u)||"key"in u||(Rn=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),g(u)&&(f(u.key),R=""+u.key),u)et.call(u,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(h[I]=u[I]);var M=arguments.length-2;if(M===1)h.children=y;else if(1<M){for(var L=Array(M),N=0;N<M;N++)L[N]=arguments[N+2];Object.freeze&&Object.freeze(L),h.children=L}if(n&&n.defaultProps)for(I in M=n.defaultProps,M)h[I]===void 0&&(h[I]=M[I]);R&&S(h,typeof n=="function"?n.displayName||n.name||"Unknown":n);var I=1e4>P.recentlyCreatedOwnerStacks++;return v(n,R,h,c(),I?Error("react-stack-top-frame"):uo,I?Tn(b(n)):ao)},_.createRef=function(){var n={current:null};return Object.seal(n),n},_.forwardRef=function(n){n!=null&&n.$$typeof===At?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:dn,render:n},y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},_.isValidElement=C,_.lazy=function(n){n={_status:-1,_result:n};var u={$$typeof:Ne,_payload:n,_init:fe},y={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return n._ioInfo=y,u._debugInfo=[{awaited:y}],u},_.memo=function(n,u){n==null&&console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),u={$$typeof:At,type:n,compare:u===void 0?null:u};var y;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(h){y=h,n.name||n.displayName||(Object.defineProperty(n,"name",{value:h}),n.displayName=h)}}),u},_.startTransition=function(n){var u=P.T,y={};y._updatedFibers=new Set,P.T=y;try{var h=n(),R=P.S;R!==null&&R(y,h),typeof h=="object"&&h!==null&&typeof h.then=="function"&&(P.asyncTransitions++,h.then(Se,Se),h.then(l,wn))}catch(M){wn(M)}finally{u===null&&y._updatedFibers&&(n=y._updatedFibers.size,y._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),u!==null&&y.types!==null&&(u.types!==null&&u.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=y.types),P.T=u}},_.unstable_useCacheRefresh=function(){return A().useCacheRefresh()},_.use=function(n){return A().use(n)},_.useActionState=function(n,u,y){return A().useActionState(n,u,y)},_.useCallback=function(n,u){return A().useCallback(n,u)},_.useContext=function(n){var u=A();return n.$$typeof===wt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(n)},_.useDebugValue=function(n,u){return A().useDebugValue(n,u)},_.useDeferredValue=function(n,u){return A().useDeferredValue(n,u)},_.useEffect=function(n,u){return n==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useEffect(n,u)},_.useEffectEvent=function(n){return A().useEffectEvent(n)},_.useId=function(){return A().useId()},_.useImperativeHandle=function(n,u,y){return A().useImperativeHandle(n,u,y)},_.useInsertionEffect=function(n,u){return n==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useInsertionEffect(n,u)},_.useLayoutEffect=function(n,u){return n==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),A().useLayoutEffect(n,u)},_.useMemo=function(n,u){return A().useMemo(n,u)},_.useOptimistic=function(n,u){return A().useOptimistic(n,u)},_.useReducer=function(n,u,y){return A().useReducer(n,u,y)},_.useRef=function(n){return A().useRef(n)},_.useState=function(n){return A().useState(n)},_.useSyncExternalStore=function(n,u,y){return A().useSyncExternalStore(n,u,y)},_.useTransition=function(){return A().useTransition()},_.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var F=Ce((Gs,kt)=>{"use strict";process.env.NODE_ENV==="production"?kt.exports=Hn():kt.exports=Vn()});var qr=Ce(J=>{"use strict";var xs=F();function zr(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 Re(){}var Z={d:{f:Re,r:function(){throw Error(zr(522))},D:Re,C:Re,L:Re,m:Re,X:Re,S:Re,M:Re},p:0,findDOMNode:null},Ds=Symbol.for("react.portal");function Us(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ds,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Je=xs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function St(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}J.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z;J.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(zr(299));return Us(e,t,null,r)};J.flushSync=function(e){var t=Je.T,r=Z.p;try{if(Je.T=null,Z.p=2,e)return e()}finally{Je.T=t,Z.p=r,Z.d.f()}};J.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Z.d.C(e,t))};J.prefetchDNS=function(e){typeof e=="string"&&Z.d.D(e)};J.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=St(r,t.crossOrigin),s=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?Z.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:s,fetchPriority:i}):r==="script"&&Z.d.X(e,{crossOrigin:o,integrity:s,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};J.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=St(t.as,t.crossOrigin);Z.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Z.d.M(e)};J.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=St(r,t.crossOrigin);Z.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};J.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=St(t.as,t.crossOrigin);Z.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Z.d.m(e)};J.requestFormReset=function(e){Z.d.r(e)};J.unstable_batchedUpdates=function(e,t){return e(t)};J.useFormState=function(e,t,r){return Je.H.useFormState(e,t,r)};J.useFormStatus=function(){return Je.H.useHostTransitionStatus()};J.version="19.2.0"});var Qr=Ce(ee=>{"use strict";process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,a,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var T=!1}catch{T=!0}return T&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:p,key:S==null?null:""+S,children:c,containerInfo:a,implementation:g}}function o(c,a){if(c==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}function s(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function l(){var c=b.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
14
14
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
15
|
2. You might be breaking the Rules of Hooks
|
|
16
16
|
3. You might have more than one copy of React in the same app
|
|
17
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=F(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},p=Symbol.for("react.portal"),b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ee.createPortal=function(c,a){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,a,null,g)},ee.flushSync=function(c){var a=b.T,g=f.p;try{if(b.T=null,f.p=2,c)return c()}finally{b.T=a,f.p=g,f.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ee.preconnect=function(c,a){typeof c=="string"&&c?a!=null&&typeof a!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(a)):a!=null&&typeof a.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(a.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,f.d.C(c,a))},ee.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c));else if(1<arguments.length){var a=arguments[1];typeof a=="object"&&a.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a))}typeof c=="string"&&f.d.D(c)},ee.preinit=function(c,a){if(typeof c=="string"&&c?a==null||typeof a!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(a)):a.as!=="style"&&a.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(a.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&a&&typeof a.as=="string"){var g=a.as,S=o(g,a.crossOrigin),T=typeof a.integrity=="string"?a.integrity:void 0,v=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;g==="style"?f.d.S(c,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:v}):g==="script"&&f.d.X(c,{crossOrigin:S,integrity:T,fetchPriority:v,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},ee.preinitModule=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&a.as!=="script"&&(g+=" The `as` option encountered was "+i(a.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=a&&typeof a.as=="string"?a.as:"script",g){case"script":break;default:g=i(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,c)}typeof c=="string"&&(typeof a=="object"&&a!==null?(a.as==null||a.as==="script")&&(g=o(a.as,a.crossOrigin),f.d.M(c,{crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})):a==null&&f.d.M(c))},ee.preload=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a==null||typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":typeof a.as=="string"&&a.as||(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof c=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){g=a.as;var S=o(g,a.crossOrigin);f.d.L(c,g,{crossOrigin:S,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},ee.preloadModule=function(c,a){var g="";typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&typeof a.as!="string"&&(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof c=="string"&&(a?(g=o(a.as,a.crossOrigin),f.d.m(c,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0})):f.d.m(c))},ee.requestFormReset=function(c){f.d.r(c)},ee.unstable_batchedUpdates=function(c,a){return c(a)},ee.useFormState=function(c,a,g){return l().useFormState(c,a,g)},ee.useFormStatus=function(){return l().useHostTransitionStatus()},ee.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var zr=Ce((Ea,tn)=>{"use strict";function $r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($r)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?($r(),tn.exports=Gr()):tn.exports=Yr()});var ot=K(F(),1);function Ie(...e){if(e.length===0)return{};if(e.length===1)return typeof e[0]=="object"&&e[0]!==null?e[0]:{};let t={},r={};for(let o of e)if(!(typeof o!="object"||o===null)){for(let s in o)if(Object.hasOwn(o,s)){if(s==="children")continue;let i=o[s];s.startsWith("on")&&typeof i=="function"?(r[s]??=[],r[s].push(i)):t[s]=i}}for(let o in r)Object.hasOwn(r,o)&&r[o].length>0&&(t[o]=(...s)=>{for(let i of r[o])i?.(...s)});for(let o=e.length-1;o>=0;o--){let s=e[o];if(typeof s=="object"&&s!==null&&"children"in s){t.children=s.children;break}}return t}function Po({props:e,ref:t,context:r}){let o=Ft({context:r,slot:e.slot})||{},{ref:s=null,...i}=o,l=(0,ot.useRef)(null),d=(0,ot.useCallback)(p=>{l.current=p,typeof t=="function"?t(p):t&&(t.current=p),typeof s=="function"?s(p):s&&typeof s=="object"&&(s.current=p)},[t,s]),f=Ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?f.style=p=>{let b=typeof i.style=="function"?i.style(p):i.style,c={...p.defaultStyle,...b},a=typeof e.style=="function"?e.style({...p,defaultStyle:c}):e.style;return{...c,...a}}:f.style={...i.style,...e.style}),[f,d]}var se=K(F(),1);function Mo(e={}){let{partialVisibility:t=!1,threshold:r=0,rootMargin:o="0px",root:s=null,active:i=!0,once:l=!1,onChange:d}=e,[f,p]=(0,se.useState)(null),[b,c]=(0,se.useState)(!1),[a,g]=(0,se.useState)(null),S=(0,se.useRef)(!1),T=(0,se.useRef)(null),v=_e(x=>{let C=x[0],B=C.isIntersecting,U={isIntersecting:C.isIntersecting,intersectionRatio:C.intersectionRatio,intersectionRect:C.intersectionRect,boundingClientRect:C.boundingClientRect,rootBounds:C.rootBounds,time:C.time};g(U),c(Y=>l&&S.current?!0:B&&l?(S.current=!0,Y!==!0&&d&&d(!0),!0):Y!==B?(d&&d(B),B):Y)}),k=(0,se.useCallback)(x=>{p(x)},[]);return(0,se.useEffect)(()=>{if(!i||!f)return;let x;return t===!0?x=[0,.1,.25,.5,.75,1]:typeof t=="string"?x=.01:x=r,T.current=new IntersectionObserver(v,{root:s,rootMargin:o,threshold:x}),T.current.observe(f),()=>{T.current&&T.current.disconnect()}},[i,f,s,o,r,t]),[k,b,a]}var dt=K(F(),1);var Io=Object.defineProperty,st=(e,t)=>{for(var r in t)Io(e,r,{get:t[r],enumerable:!0})},xe={};st(xe,{ARIA_ATTRIBUTES:()=>Kn,HTML_TAGS:()=>Vn,PRIMITIVE_TAGS:()=>Hn,default:()=>xo});var Kn=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Hn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],xo={ARIA_ATTRIBUTES:Kn,PRIMITIVE_TAGS:Hn,HTML_TAGS:Vn},Do={};st(Do,{NUMERIC_DIGITS:()=>jn,default:()=>Uo});var jn=["1","2","3","4","5","6","7","8","9","0"],Uo={NUMERIC_DIGITS:jn},Fo={};st(Fo,{AMPERSAND:()=>Zn,ASTERISK:()=>er,BACKSLASH:()=>fr,BOM:()=>Bn,CARRIAGE_RETURN:()=>Yn,COLON:()=>sr,COMMA:()=>nr,COMMERCIAL_AT:()=>cr,DOT:()=>or,DOUBLE_QUOTE:()=>qn,EXCLAMATION:()=>zn,GRAVE_ACCENT:()=>pr,GREATER_THAN:()=>ur,LEFT_CURLY_BRACKET:()=>yr,LEFT_SQUARE_BRACKET:()=>lr,LINE_FEED:()=>Gn,MINUS:()=>rr,PERCENT:()=>Xn,PLUS:()=>tr,QUESTION:()=>ar,RIGHT_CURLY_BRACKET:()=>gr,RIGHT_SQUARE_BRACKET:()=>dr,SHARP:()=>Qn,SINGLE_QUOTE:()=>Jn,SMALLER_THAN:()=>ir,SPACE:()=>$n,TAB:()=>Wn,VERTICAL_LINE:()=>mr,default:()=>ko});var Bn=65279,Wn=9,Gn=10,Yn=13,$n=32,zn=33,qn=34,Qn=35,Xn=37,Zn=38,Jn=39,er=42,tr=43,nr=44,rr=45,or=46,sr=58,ir=60,ur=62,ar=63,cr=64,lr=91,fr=92,dr=93,pr=96,yr=123,mr=124,gr=125,ko={BOM:Bn,TAB:Wn,LINE_FEED:Gn,CARRIAGE_RETURN:Yn,SPACE:$n,EXCLAMATION:zn,DOUBLE_QUOTE:qn,SHARP:Qn,PERCENT:Xn,AMPERSAND:Zn,SINGLE_QUOTE:Jn,ASTERISK:er,PLUS:tr,COMMA:nr,MINUS:rr,DOT:or,COLON:sr,SMALLER_THAN:ir,GREATER_THAN:ur,QUESTION:ar,COMMERCIAL_AT:cr,LEFT_SQUARE_BRACKET:lr,BACKSLASH:fr,RIGHT_SQUARE_BRACKET:dr,GRAVE_ACCENT:pr,LEFT_CURLY_BRACKET:yr,VERTICAL_LINE:mr,RIGHT_CURLY_BRACKET:gr},No={};st(No,{CAPITALIZED:()=>Er,LOWERCASE:()=>vr,VOWELS:()=>hr,default:()=>Ko});var Er=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vr=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],hr=["A","E","I","O","U","a","e","i","o","u"],Ko={CAPITALIZED:Er,LOWERCASE:vr,VOWELS:hr};function Ho(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var it=()=>Ho(/^Mac/i);function Tr(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var Vo=()=>Tr(/^iPhone/i),jo=()=>Tr(/^iPad/i)||it()&&navigator.maxTouchPoints>1,kt=()=>Vo()||jo();function ut(e){return it()?e.metaKey??!1:e.ctrlKey??!1}function q(e){return e?.ownerDocument??document}function ye(e){return e&&"window"in e&&e.window===e?e:q(e).defaultView||window}var at=null;function Bo(){if(at==null){at=!1;try{document.createElement("div").focus({get preventScroll(){return at=!0,!0}})}catch{}}return at}function Rr(e,t,r){let{block:o="nearest",inline:s="nearest"}=r??{},i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),d=l.top<i.top,f=l.bottom>i.bottom,p=l.left<i.left,b=l.right>i.right;if(d||f){let c=e.scrollTop;if(o==="start"||o==="nearest"&&d)c=e.scrollTop+(l.top-i.top);else if(o==="end"||o==="nearest"&&f)c=e.scrollTop+(l.bottom-i.bottom);else if(o==="center"){let a=i.top+i.height/2,g=l.top+l.height/2;c=e.scrollTop+(g-a)}e.scrollTop=c}if(p||b){let c=e.scrollLeft;if(s==="start"||s==="nearest"&&p)c=e.scrollLeft+(l.left-i.left);else if(s==="end"||s==="nearest"&&b)c=e.scrollLeft+(l.right-i.right);else if(s==="center"){let a=i.left+i.width/2,g=l.left+l.width/2;c=e.scrollLeft+(g-a)}e.scrollLeft=c}}function Wo(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function ct(e,t,r=!0){if(!e||!t)return!1;if(!r)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o instanceof Element&&o.tagName==="SLOT"&&o.assignedSlot?o.assignedSlot.parentNode:Wo(o)?o.host:o.parentNode}return!1}var me=(e=document,t=!0)=>{if(!t)return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&r.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r};function lt(e,t=!0){return t&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Ve(e){if(Bo())e.focus({preventScroll:!0});else{let t=Go(e);e.focus();for(let{element:r,scrollTop:o,scrollLeft:s}of t)r.scrollTop=o,r.scrollLeft=s}}function Go(e){let t=e.parentNode,r=Array.from({length:0}),o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}var Sr="necto-style",br=new WeakMap;function Yo(e){let t=br.get(e);return t||(t=new Map,br.set(e,t)),t}function $o(e,t={}){let{id:r=Sr,insertionPoint:o}=t,s=o?q(o):document,i=s.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("necto-style-id",r),i.textContent=e,o?s.head.insertBefore(i,o):s.head.appendChild(i),i}function _r(e,t={}){let{id:r=Sr,window:o=typeof window<"u"?window:null,insertionPoint:s}=t;if(!o||!e)return()=>{};let i=Yo(o),l=`${r}:${e}`,d=i.get(l);return d?d.element&&(d.element.textContent=e,d.count++):(d={element:$o(e,{id:r,insertionPoint:s}),count:1},i.set(l,d)),()=>{let f=i.get(l);f?.element&&(f.count--,f.count<1&&(f.element.remove(),f.element=null,i.delete(l)))}}var pe=new Map,Kt=new Set;function zo(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);t||(t=new Set,pe.set(e.target,t),e.target.addEventListener("transitioncancel",Vt,{once:!0})),t.add(e.propertyName)}function Vt(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",Vt),pe.delete(e.target)),pe.size===0)){for(let r of Kt)r();Kt.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",zo),t.addEventListener("transitionend",Vt))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}function jt(e){requestAnimationFrame(()=>{for(let[t]of pe)"isConnected"in t&&!t.isConnected&&pe.delete(t);pe.size===0?e():Kt.add(e)})}var le,Nt=()=>xe.HTML_TAGS.reduce((e,t)=>{var r;return e[r=t,r.charAt(0).toUpperCase()+r.slice(1)]=t,e},{}),ni=new Proxy({},{get:(e,t,r)=>(le||(le=Nt()),Reflect.get(le,t,r)),ownKeys:()=>(le||(le=Nt()),Reflect.ownKeys(le)),getOwnPropertyDescriptor:(e,t)=>(le||(le=Nt()),Object.getOwnPropertyDescriptor(le,t))}),Ht="",De="default",He=new WeakMap;function ft(e){if(kt()){if(De==="default"){let t=q(e);t?.documentElement?.style.webkitUserSelect!==void 0&&(Ht=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none",De="disabled")}}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=e.style,r="userSelect"in t?"userSelect":"webkitUserSelect";He.has(e)||(He.set(e,t[r]??""),t[r]="none")}}function ge(e){if(kt()){if(De!=="disabled")return;De="restoring",setTimeout(()=>{jt(()=>{if(De==="restoring"){let t=q(e);t?.documentElement?.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ht||""),Ht="",De="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&He.has(e)){let t=He.get(e)??"",r=e.style,o="userSelect"in r?"userSelect":"webkitUserSelect";r[o]==="none"&&(r[o]=t),e.getAttribute("style")?.trim()===""&&e.removeAttribute("style"),He.delete(e)}}var W=xe.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(r=>{let o=r.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),qo=xe.ARIA_ATTRIBUTES,si=new Set(qo);function je(e={}){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:s}=e,i=(0,dt.useCallback)((p,b)=>{p?(r?.(b),s?.(!0)):(o?.(b),s?.(!1))},[r,o,s]),l=(0,dt.useCallback)(p=>{p.target===p.currentTarget&&i(!1,p)},[i]),d=Be({onBlur:l}),f=(0,dt.useCallback)(p=>{let b=q(p.target),c=b?me(b):me();p.target===p.currentTarget&&c===lt(p.nativeEvent)&&(i(!0,p),d(p))},[i,d]);return{focusProps:{...t?{}:{onFocus:f,onBlur:l}}}}var pt=K(F(),1);function Qo(e,t){let{autoFocus:r,isDisabled:o,excludeFromTabOrder:s}=e,{focusProps:i}=je(e),{keyboardProps:l}=Bt(e),d=(0,pt.useRef)(r),f=q(t.current),p=me(f);(0,pt.useEffect)(()=>{if(d.current&&t.current)if(We()==="virtual"){let c=p;jt(()=>{me(f)===c&&t.current?.isConnected&&Ve(t.current)})}else Ve(t.current);d.current=!1},[t]);let b=s?-1:0;return o&&(b=void 0),{focusableProps:Ie(i??{},l,{tabIndex:b})}}var Ee=K(F(),1);var Xo=null;function Zo(e={}){let{within:t=!1,isTextInput:r=!1,autoFocus:o=!1}=e,s=(0,Ee.useRef)({isFocused:o,isFocusVisible:o||Xo!=="pointer"}),[i,l]=(0,Ee.useState)(o),[d,f]=(0,Ee.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),p=(0,Ee.useCallback)(()=>{f(s.current.isFocused&&s.current.isFocusVisible)},[]),b=(0,Ee.useCallback)(g=>{s.current.isFocused=g,l(g),p()},[p]);Ge({fn:g=>{s.current.isFocusVisible=g,p()},deps:[],opts:{isTextInput:r}});let{focusProps:c={}}=je({isDisabled:t,onFocusChange:b})||{},{focusWithinProps:a={}}=Wt({isDisabled:!t,onFocusWithinChange:b})||{};return{isFocused:i,isFocusVisible:d,focusProps:t?a:c}}var Or=K(F(),1);function Jo(e={}){let{isTextInput:t,autoFocus:r}=e,[o,s]=(0,Or.useState)(r||We()!=="pointer");return Ge({fn:i=>s(i),deps:[t],opts:{isTextInput:t}}),{isFocusVisible:o}}var Ue=new Map,yt=new Set,wr=!1,Gt=null,Ar=!1,Q={get hasEventBeforeFocus(){return wr},set hasEventBeforeFocus(e){wr=e},get hasBlurredWindowRecently(){return Ar},set hasBlurredWindowRecently(e){Ar=e},get currentModality(){return Gt},set currentModality(e){Gt=e}};function We(){return Gt}var ms={},mt=Object.create(null),Ye=e=>globalThis.process?.env||ms.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?mt:globalThis),ve=new Proxy(mt,{get(e,t){return Ye()[t]??mt[t]},has(e,t){let r=Ye();return t in r||t in mt},set(e,t,r){let o=Ye(!0);return o[t]=r,!0},deleteProperty(e,t){if(!t)return!1;let r=Ye(!0);return delete r[t],!0},ownKeys(){let e=Ye(!0);return Object.keys(e)}}),Cr=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",es=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function ts(){if(globalThis.process?.env)for(let e of es){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Pr=ts(),Ci=Pr.name;function Oe(e){return e?e!=="false":!1}var Yt=globalThis.process?.platform||"",Mr=Oe(ve.CI)||Pr.ci!==!1,Ir=Oe(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Pi=Oe(ve.DEBUG),we=Cr==="test"||Oe(ve.TEST),xr=Cr==="production";var Mi=Oe(ve.MINIMAL)||Mr||we||!Ir,ns=/^win/i.test(Yt),Ii=/^linux/i.test(Yt),Dr=/^darwin/i.test(Yt),xi=!Oe(ve.NO_COLOR)&&(Oe(ve.FORCE_COLOR)||(Ir||ns)&&ve.TERM!=="dumb"||Mr),rs=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Di=Number(rs?.split(".")[0])||null,os=globalThis.process||Object.create(null),Lr={versions:{}},Ui=new Proxy(os,{get(e,t){if(t==="env")return ve;if(t in e)return e[t];if(t in Lr)return Lr[t]}}),ss=globalThis.process?.release?.name==="node",is=!!globalThis.Bun||!!globalThis.process?.versions?.bun,us=!!globalThis.Deno,as=!!globalThis.fastly,cs=!!globalThis.Netlify,ls=!!globalThis.EdgeRuntime,fs=globalThis.navigator?.userAgent==="Cloudflare-Workers",ds=[[cs,"netlify"],[ls,"edge-light"],[fs,"workerd"],[as,"fastly"],[us,"deno"],[is,"bun"],[ss,"node"]];function ps(){let e=ds.find(t=>t[0]);if(e)return{name:e[1]}}var ys=ps(),Fi=ys?.name||"";var Fr=K(F(),1);function $t(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&xr?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function gt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var gs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Es={Tab:!0,Escape:!0};function Ur(e,t,r){if(!r||!("target"in r)||!r.target)return!1;let o=q(r.target),s=ye(r.target),i=typeof window<"u"?s.HTMLInputElement:HTMLInputElement,l=typeof window<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?s.HTMLElement:HTMLElement,f=typeof window<"u"?s.KeyboardEvent:KeyboardEvent,p=o.activeElement;return e=e||p instanceof i&&!gs.has(p.type)||p instanceof l||p instanceof d&&p.isContentEditable,!(e&&t==="keyboard"&&r instanceof f&&!Es[r.key])}function qt(e,t){yt.forEach(r=>r(e,t))}function vs(e){return!(e.metaKey||Dr&&e.altKey||e.ctrlKey||["Control","Shift","Meta"].includes(e.key))}function kr(e){vs(e)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="keyboard",qt("keyboard",e))}function zt(e){["mousedown","pointerdown"].includes(e.type)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="pointer",qt("pointer",e))}function Nr(e){[window,document].includes(e.target)||!e.isTrusted||!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently||(!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently&&(Q.currentModality="virtual",qt("virtual",e)),Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!1)}function Kr(){Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!0}function hs(e){let t=ye(e),r=q(e);if(typeof window>"u"||typeof document>"u"||Ue.has(t))return;let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(...s){Q.hasEventBeforeFocus=!0,o.apply(this,s)},r.addEventListener("keydown",kr,!0),r.addEventListener("click",zt,!0),t.addEventListener("focus",Nr,!0),t.addEventListener("blur",Kr,!1),typeof PointerEvent<"u"&&r.addEventListener("pointerdown",zt,!0),Ue.set(t,{focus:o})}function Ts(e){let t=ye(e),r=q(e);if(!Ue.has(t))return;let{focus:o}=Ue.get(t);t.HTMLElement.prototype.focus=o,r.removeEventListener("keydown",kr,!0),r.removeEventListener("click",zt,!0),t.removeEventListener("focus",Nr,!0),t.removeEventListener("blur",Kr,!1),Ue.delete(t)}function Ge(e){let{fn:t,deps:r,opts:o}=e;typeof window>"u"||typeof document>"u"||(hs(),(0,Fr.useEffect)(()=>{let s=(i,l)=>{Ur(!!o?.isTextInput,i,l)&&t(Q.currentModality!=="pointer")};return yt.add(s),()=>{yt.delete(s),Ts()}},r))}var $e=K(F(),1);function Wt(e){let{isDisabled:t,onFocusWithin:r,onBlurWithin:o,onFocusWithinChange:s}=e,i=(0,$e.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=ze(),f=(0,$e.useCallback)(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,d(),o&&o(c),s&&s(!1))},[o,s,d]),p=Be({onBlur:f}),b=(0,$e.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let a=q(c.target),g=me(a);if(!i.current.isFocusWithin&&g===lt(c.nativeEvent)){r&&r(c),s&&s(!0),i.current.isFocusWithin=!0,p(c);let S=c.currentTarget;l(a,"focus",T=>{if(i.current.isFocusWithin&&!ct(S,T.target)&&a.defaultView&&typeof a.defaultView.FocusEvent=="function"){let v=new a.defaultView.FocusEvent("blur",{relatedTarget:T.target});Object.defineProperty(v,"target",{value:S}),Object.defineProperty(v,"currentTarget",{value:S});let k=gt(v);f(k)}},{capture:!0})}},[r,s,p,l,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:f}}}var he=K(F(),1);function ze(){let e=(0,he.useRef)(new Map),t=(0,he.useCallback)((s,i,l,d)=>{let f=typeof d=="object"&&d?.once?(...p)=>{e.current.delete(l),l(...p)}:l;e.current.set(l,{type:i,eventTarget:s,options:d}),s.addEventListener(i,f,d)},[]),r=(0,he.useCallback)((s,i,l,d)=>{let f=e.current.get(l),p=f?.options?.once?f.fn:l;s.removeEventListener(i,p,d),e.current.delete(l)},[]),o=(0,he.useCallback)(()=>{e.current.forEach((s,i)=>{s.eventTarget.removeEventListener(s.type,i,s.options)}),e.current.clear()},[]);return(0,he.useEffect)(()=>()=>o(),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}var te=K(F(),1);function bs(e={}){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[i,l]=(0,te.useState)(!1),d=(0,te.useRef)({hoverCount:0,ignoreEmulated:!1}),f=(0,te.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current,{addGlobalListener:p,removeAllGlobalListeners:b}=ze(),c=(0,te.useCallback)(()=>{d.current.ignoreEmulated=!0,setTimeout(()=>{d.current.ignoreEmulated=!1},50)},[]);(0,te.useEffect)(()=>{let T=k=>{k.pointerType==="touch"&&c()};if(typeof document>"u")return;let v=d.current;return v.hoverCount++,typeof PointerEvent<"u"?document.addEventListener("pointerup",T):we&&document.addEventListener("touchend",c),()=>{v.hoverCount--,v.hoverCount===0&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",T):we&&document.removeEventListener("touchend",c))}},[c]);let a=(0,te.useCallback)((T,v)=>{s||v==="touch"||f.isHovered||!(T.currentTarget&&T.currentTarget.contains(T.target))||(f.isHovered=!0,f.pointerType=v,f.target=T.currentTarget,p(q(T.target instanceof Element?T.target:null),"pointerover",k=>{f.isHovered&&f.target&&!ct(f.target,k.target)&&g(k,k.pointerType)},{capture:!0}),t?.({type:"hoverstart",target:T.currentTarget,pointerType:v}),r?.(!0),l(!0))},[s,t,r,p,f]),g=(0,te.useCallback)((T,v)=>{v==="touch"||!f.isHovered||!f.target||(f.isHovered=!1,f.pointerType="",f.target=null,b(),o?.({type:"hoverend",target:T.currentTarget,pointerType:v}),r?.(!1),l(!1))},[o,r,b,f.target,f]),S=(0,te.useMemo)(()=>{let T={};return typeof PointerEvent<"u"?(T.onPointerEnter=v=>{d.current.ignoreEmulated&&v.pointerType==="mouse"||a(v,v.pointerType)},T.onPointerLeave=v=>{!s&&v.currentTarget instanceof Element&&v.currentTarget.contains(v.target)&&g(v,v.pointerType)}):we&&(T.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},T.onMouseEnter=v=>{!f.ignoreEmulatedMouseEvents&&!d.current.ignoreEmulated&&a(v.nativeEvent,"mouse"),f.ignoreEmulatedMouseEvents=!1},T.onMouseLeave=v=>{!s&&v.currentTarget.contains(v.target)&&g(v.nativeEvent,"mouse")}),T},[s,a,g,f]);return(0,te.useEffect)(()=>{s&&f.isHovered&&g({currentTarget:f.target},f.pointerType)},[s,g,f.isHovered,f.pointerType,f.target]),{hoverProps:S,isHovered:i}}var Qt={prefix:String(Math.round(Math.random()*1e10)),current:0},qe=new Map,Qe=typeof FinalizationRegistry<"u"?new FinalizationRegistry(e=>{qe.delete(e)}):null;var oe=K(F(),1);function Rs(e={}){let{prefix:t="necto",defaultId:r}=e,[o,s]=(0,oe.useState)(()=>r),i=(0,oe.useRef)(null),l=(0,oe.useRef)({}),d=(()=>{if(r)return r;let f=typeof oe.default.useId=="function"?(0,oe.useId)():String(++Qt.current);return`${we?t:`${t}${Qt.prefix}`}-${f}`})();return(0,oe.useEffect)(()=>{if(typeof window<"u"&&window.document?.createElement){let f=qe.get(d)||[],p={current:i.current};f.some(b=>b===p)||qe.set(d,[...f,p])}return Qe&&Qe.register(l.current,d),()=>{Qe&&Qe.unregister(l.current),qe.delete(d)}},[d]),(0,oe.useEffect)(()=>{let f=i.current;f&&(s(f),i.current=null)},[]),d}function Bt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:e.onKeyDown?$t(t=>e.onKeyDown?.(t.nativeEvent)):void 0,onKeyUp:e.onKeyUp?$t(t=>e.onKeyUp?.(t.nativeEvent)):void 0}}}var Te=K(F(),1);function Xt(e={}){let{type:t="function"}=e,r=(0,Te.useRef)(!1),[o,s]=(0,Te.useState)(!1),i=(0,Te.useCallback)(()=>r.current,[]);return(0,Te.useEffect)(()=>(r.current=!0,s(!0),()=>{r.current=!1,s(!1)}),[]),t==="ref"?r:t==="boolean"?o:i}var V=K(F(),1);function X(e,t,r){return{type:e,pointerType:t,target:r.currentTarget??r.target,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function Ss(e={}){let{isDisabled:t,preventFocusOnPress:r,allowTextSelectionOnPress:o,ref:s,onPress:i,onPressStart:l,onPressEnd:d,onPressChange:f,onPressUp:p,onClick:b}=e,[c,a]=(0,V.useState)(!1),g=(0,V.useRef)(!1),S=(0,V.useRef)(null),T=(0,V.useRef)(!1),v=(0,V.useCallback)(E=>{c!==E&&(a(E),f?.(E))},[c,f]),k=(0,V.useCallback)(E=>{if(!T.current)return;let m=S.current&&S.current instanceof Node&&E.target instanceof Node&&S.current.contains(E.target);if(T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current),E.target){let D={...X("pressend","mouse",E),target:E.target};d?.(D),p?.(D),m&&i?.(D)}},[d,p,i,v,o]),x=(0,V.useCallback)(E=>{if(t||E.button!==0||g.current)return;r&&E.preventDefault(),o||ft(E.currentTarget),T.current=!0,S.current=E.currentTarget,v(!0);let m=X("pressstart","mouse",E);l?.(m),window.addEventListener("mouseup",k,{once:!0})},[t,r,o,l,v,k]),C=(0,V.useCallback)(E=>{if(t||E.button!==0||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","mouse",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","mouse",E))},[t,i,d,p,v,o]),B=(0,V.useCallback)(E=>{c&&(v(!1),d?.(X("pressend","mouse",E)),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget))},[c,v,d,o]),U=(0,V.useCallback)(E=>{T.current&&!c&&(v(!0),l?.(X("pressstart","mouse",E)))},[c,l,v]),Y=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m),p?.(m)},[d,p,v,o]),j=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m)},[d,v,o]),G=(0,V.useCallback)(E=>{t||(o||ft(E.currentTarget),g.current=!0,setTimeout(()=>{g.current=!1},100),T.current=!0,S.current=E.currentTarget,v(!0),l?.(X("pressstart","touch",E)),window.addEventListener("touchend",Y,{once:!0}),window.addEventListener("touchcancel",j,{once:!0}))},[t,l,v,o,Y,j]),fe=(0,V.useCallback)(E=>{if(t||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","touch",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","touch",E))},[t,i,d,p,v,o]),A=(0,V.useCallback)(E=>{if(t)return;(E.key==="Enter"||E.key===" ")&&!c&&(E.key===" "&&E.preventDefault(),o||ft(),v(!0),T.current=!0,l?.(X("pressstart","keyboard",E)))},[t,c,l,v,o]),Se=(0,V.useCallback)(E=>{if(t)return;if((E.key==="Enter"||E.key===" ")&&c){v(!1),T.current=!1,o||ge();let D=X("pressend","keyboard",E);d?.(D),p?.(X("pressup","keyboard",E)),i?.(X("press","keyboard",E))}},[t,c,i,d,p,v,o]),ue=(0,V.useCallback)(E=>{if(t){E.preventDefault();return}g.current||b?.(E)},[t,b]);(0,V.useEffect)(()=>()=>{window.removeEventListener("mouseup",k),window.removeEventListener("touchend",Y),window.removeEventListener("touchcancel",j)},[k,Y,j]);let ae=(0,V.useMemo)(()=>({onMouseDown:x,onMouseUp:C,onMouseLeave:B,onMouseEnter:U,onTouchStart:G,onTouchEnd:fe,onKeyDown:A,onKeyUp:Se,onClick:ue}),[x,C,B,U,G,fe,A,Se,ue]);return(0,V.useEffect)(()=>{let E=s?.current;E&&E instanceof ye(E).Element&&ye(E).getComputedStyle(E).touchAction==="auto"&&(E.style.touchAction="pan-x pan-y pinch-zoom")},[s]),{pressProps:ae,isPressed:c}}var Hr=K(F(),1);function _s(e){let{style:t,values:r,children:o,className:s,defaultStyle:i,defaultChildren:l,defaultClassName:d="necto"}=e;return(0,Hr.useMemo)(()=>{let f=typeof s=="function"?s({...r,defaultClassName:d}):s?`${d} ${s}`:d,p=typeof t=="function"?t({...r,defaultStyle:i||{}}):{...i,...t},b=typeof o=="function"?o({...r,defaultChildren:l}):o??l;return{className:f,style:p,children:b}},[s,t,o,d,l,i,r])}var Vr=K(F(),1);function Ft(e){let{context:t,slot:r}=e,o=(0,Vr.useContext)(t);if(r===null)return null;if(o&&typeof o=="object"&&"slots"in o&&o.slots){let s=r||Symbol("default");if(!o.slots[s]){let i=new Intl.ListFormat().format(Object.keys(o.slots).map(d=>`"${d}"`)),l=r?`Invalid slot name: "${r}". This slot is not recognized. Please refer to the component's documentation for valid slot names.`:"A slot prop is required. You must provide a valid slot name to render content in this area.";throw new Error(`${l} Valid slot names are ${i}.`)}return o.slots[s]}return o}var Fe=K(F(),1);function Be(e){let{onBlur:t}=e,r=(0,Fe.useRef)({isFocused:!1,observer:null});(0,Fe.useLayoutEffect)(()=>{let s=r.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]);let o=_e(s=>{t?.(s)});return(0,Fe.useCallback)(s=>{if(s.target instanceof HTMLButtonElement||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement||s.target instanceof HTMLSelectElement){r.current.isFocused=!0;let i=s.target,l=d=>{if(r.current.isFocused=!1,i.disabled){let f=gt(d);o(f)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};i.addEventListener("focusout",l,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&i.disabled){r.current.observer?.disconnect();let d=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),r.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[o])}var be=K(F(),1);function _e(e){let t=(0,be.useRef)(e);return(typeof window<"u"?be.useLayoutEffect:be.useEffect)(()=>{t.current=e},[e]),(0,be.useCallback)(((...r)=>t.current(...r)),[])}var Et=K(F(),1);function ju(e){let t=Xt(),[r,o]=(0,Et.useState)(!1);return(0,Et.useEffect)(()=>{t()&&o(!!e())},[e,t]),r}var Ae=K(F(),1);function Os(e={}){let{autoLock:t=!1,target:r,widthReflow:o=!0}=e,[s,i]=(0,Ae.useState)(!1),l=(0,Ae.useRef)(null),d=(0,Ae.useRef)(null),f=_e(()=>{if(typeof window>"u"||!l.current)return;let{overflow:b,paddingRight:c}=l.current.style;if(d.current={overflow:b,paddingRight:c},o){let a=l.current===document.body?window.innerWidth:l.current.offsetWidth,g=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,S=a-l.current.scrollWidth;l.current.style.paddingRight=`${S+g}px`}l.current.style.overflow="hidden",i(!0)}),p=_e(()=>{l.current&&d.current&&(l.current.style.overflow=d.current.overflow,o&&(l.current.style.paddingRight=d.current.paddingRight)),i(!1)});return(0,Ae.useEffect)(()=>{if(!(typeof window>"u"||typeof document>"u"))return r&&(l.current=typeof r=="string"?document.querySelector(r):r),l.current||(l.current=document.body),t&&f(),()=>{p()}},[t,r,o,f,p]),{isLocked:s,lock:f,unlock:p}}var jr=K(F(),1);function ws(e={}){let{isInvalid:t,isDisabled:r,isReadOnly:o,isRequired:s,isBusy:i,isPressed:l,isExpanded:d,isSelected:f,isChecked:p,isHidden:b,hasPopup:c,valueCurrent:a,valueMin:g,valueMax:S,valueText:T,label:v,labelledBy:k,describedBy:x,controls:C,owns:B}=e;return(0,jr.useMemo)(()=>{let U={},Y=[{value:t,attr:W.Invalid},{value:r,attr:W.Disabled},{value:o,attr:W.Readonly},{value:s,attr:W.Required},{value:i,attr:W.Busy},{value:d,attr:W.Expanded},{value:f,attr:W.Selected},{value:b,attr:W.Hidden}];for(let{value:j,attr:G}of Y)j!==void 0&&(U[G]=j||void 0);return l!==void 0&&(U[W.Pressed]=l===!1?void 0:l),p!==void 0&&(U[W.Checked]=p===!1?void 0:p),c!==void 0&&(U[W.Haspopup]=c===!1?void 0:c),a!==void 0&&(U[W.Valuenow]=a),g!==void 0&&(U[W.Valuemin]=g),S!==void 0&&(U[W.Valuemax]=S),T!==void 0&&(U[W.Valuetext]=T),v!==void 0&&(U[W.Label]=v),k!==void 0&&(U[W.Labelledby]=k),x!==void 0&&(U[W.Describedby]=x),C!==void 0&&(U[W.Controls]=C),B!==void 0&&(U[W.Owns]=B),U},[t,r,o,s,i,l,d,f,p,b,c,a,g,S,T,v,k,x,C,B])}function As({id:e,css:t,insertionPoint:r,enabled:o=!0,window:s=typeof window<"u"?window:null}){let i=Array.isArray(t)?t.join(`
|
|
18
|
-
`):t;Br(()=>{if(!(!o||!i))return _r(i,{id:e,window:s,insertionPoint:r})},[e,i,s,r,o])}var vt=K(F(),1);function ra(e){let t=(0,vt.useRef)(e);return(0,vt.useLayoutEffect)(()=>{t.current=e}),t}var ht=K(F(),1),Br=ht.default.useInsertionEffect??ht.useLayoutEffect;function Zt(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Jt(e,t,r=".",o){if(!Zt(t))return Jt(e,{},r,o);let s=Object.assign({},t);for(let i in e){if(i==="__proto__"||i==="constructor")continue;let l=e[i];l!=null&&(o&&o(s,i,l,r)||(Array.isArray(l)&&Array.isArray(s[i])?s[i]=[...l,...s[i]]:Zt(l)&&Zt(s[i])?s[i]=Jt(l,s[i],(r?`${r}.`:"")+i.toString(),o):s[i]=l))}return s}function en(e){return(...t)=>t.reduce((r,o)=>Jt(r,o,"",e),{})}var Tt=en(),ia=en((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),ua=en((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0});var ne=K(F(),1);function Cs(e={}){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:s,accessibilityDescription:i,threshold:l}=Tt(e,{threshold:500}),d=(0,ne.useRef)(null),f=(0,ne.useRef)(null),p=(0,ne.useRef)(null),b=(0,ne.useRef)(!1),c=(0,ne.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,ne.useEffect)(()=>c,[c]);let a=(0,ne.useCallback)(C=>({type:C,pointerType:f.current??"mouse",target:p.current}),[]),g=(0,ne.useCallback)(C=>{t||C.button!==0||C.pointerType!=="mouse"&&(f.current=C.pointerType,p.current=C.currentTarget,b.current=!1,r?.(a("longpressstart")),d.current=setTimeout(()=>{b.current=!0,C.currentTarget?.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s?.(a("longpress")),d.current=null},l))},[t,l,r,s,a]),S=(0,ne.useCallback)(()=>{f.current!==null&&(c(),!b.current&&o&&o(a("longpressend")),f.current=null,p.current=null)},[c,o,a]),T=(0,ne.useCallback)(()=>{c(),f.current!==null&&o&&o(a("longpressend")),f.current=null,p.current=null},[c,o,a]),v=(0,ne.useCallback)(C=>{b.current&&C.preventDefault()},[]);return{longPressProps:t?{}:{onPointerDown:g,onPointerUp:S,onPointerCancel:T,onContextMenu:v,...!t&&!!s&&!!i&&{"aria-description":i}}}}var Qr=K(zr(),1),ie=K(F(),1);function xs(e){let{ref:t,isOpen:r,isReady:o=!0}=e,[s,i]=(0,ie.useState)(r),l=s&&o;(0,ie.useLayoutEffect)(()=>{if(l&&t.current&&"getAnimations"in t.current)for(let a of t.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[t,l]),qr(t,l,(0,ie.useCallback)(()=>i(!1),[]));let[d,f]=(0,ie.useState)(r);r&&!d?(i(!0),f(!0)):!r&&d&&f(!1);let[p,b]=(0,ie.useState)(r?"open":"closed");switch(p){case"open":r||b("exiting");break;case"closed":case"exiting":r&&b("open");break}let c=p==="exiting";return qr(t,c,(0,ie.useCallback)(()=>{b(a=>a==="exiting"?"closed":a)},[])),{isEntering:l,isExiting:c,isRendered:r||c}}function qr(e,t,r){(0,ie.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let o=e.current.getAnimations();if(o.length===0){r();return}let s=!1;return Promise.all(o.map(i=>i.finished)).then(()=>{s||(0,Qr.flushSync)(()=>{r()})}).catch(()=>{}),()=>{s=!0}}},[e,t,r])}var $=K(F(),1);function Ds(e){return it()?e.metaKey:e.ctrlKey}function Xr(e,t){return e.current?.querySelector(`[data-key="${t}"]`)??null}function Us(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:s,shouldFocusWrap:i,disallowEmptySelection:l,disallowSelectAll:d,escapeBehavior:f,selectOnFocus:p,disallowTypeAhead:b,shouldUseVirtualFocus:c,allowsTabNavigation:a,scrollRef:g,direction:S,orientation:T,onNavigate:v,onFocusItem:k}=Tt(e,{autoFocus:!1,shouldFocusWrap:!1,disallowEmptySelection:!1,disallowSelectAll:!1,escapeBehavior:"clearSelection",selectOnFocus:!1,disallowTypeAhead:!1,shouldUseVirtualFocus:!1,allowsTabNavigation:!1,isVirtualized:!1,direction:"ltr",orientation:"vertical"}),x=g??o,C=(0,$.useRef)({top:0,left:0}),B=(0,$.useRef)(t.focusedKey),U=(0,$.useRef)(s),Y=(0,$.useRef)(""),j=(0,$.useRef)(null),G=(0,$.useCallback)((m,D,_)=>{m!=null&&(t.setFocusedKey(m,_),v?.(m),D?.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(m):p&&!Ds(D)&&t.replaceSelection(m))},[t,p,v]),fe=(0,$.useCallback)(m=>{if(k){k(m);return}let D=Xr(o,m);D&&!c&&Ve(D)},[o,c,k]),A=(0,$.useCallback)(m=>{if(!b&&m.key.length===1&&!m.ctrlKey&&!m.metaKey&&!m.altKey){j.current&&clearTimeout(j.current),Y.current+=m.key;let _=r.getKeyForSearch?.(Y.current,t.focusedKey)??null;_!=null&&(m.preventDefault(),G(_,m)),j.current=setTimeout(()=>{Y.current=""},500);return}let D=S==="rtl";switch(m.key){case"ArrowDown":{if(r.getKeyBelow){let _=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):r.getFirstKey?.()??null;_==null&&i&&(_=r.getFirstKey?.()??null),_!=null&&(m.preventDefault(),G(_,m))}break}case"ArrowUp":{if(r.getKeyAbove){let _=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):r.getLastKey?.()??null;_==null&&i&&(_=r.getLastKey?.()??null),_!=null&&(m.preventDefault(),G(_,m))}break}case"ArrowLeft":{if(r.getKeyLeftOf){let _=t.focusedKey!=null?r.getKeyLeftOf(t.focusedKey):null;_==null&&i&&(_=D?r.getFirstKey?.()??null:r.getLastKey?.()??null),_!=null&&(m.preventDefault(),G(_,m,D?"first":"last"))}break}case"ArrowRight":{if(r.getKeyRightOf){let _=t.focusedKey!=null?r.getKeyRightOf(t.focusedKey):null;_==null&&i&&(_=D?r.getLastKey?.()??null:r.getFirstKey?.()??null),_!=null&&(m.preventDefault(),G(_,m,D?"last":"first"))}break}case"Home":{if(r.getFirstKey){m.preventDefault();let _=r.getFirstKey();t.setFocusedKey(_),_!=null&&(ut(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):p&&t.replaceSelection(_))}break}case"End":{if(r.getLastKey){m.preventDefault();let _=r.getLastKey();t.setFocusedKey(_),_!=null&&(ut(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(_):p&&t.replaceSelection(_))}break}case"PageDown":{if(r.getKeyPageBelow&&t.focusedKey!=null){let _=r.getKeyPageBelow(t.focusedKey);_!=null&&(m.preventDefault(),G(_,m))}break}case"PageUp":{if(r.getKeyPageAbove&&t.focusedKey!=null){let _=r.getKeyPageAbove(t.focusedKey);_!=null&&(m.preventDefault(),G(_,m))}break}case"a":{ut(m)&&t.selectionMode==="multiple"&&!d&&(m.preventDefault(),t.selectAll());break}case"Escape":{f==="clearSelection"&&!l&&t.selectedKeys.size>0&&(m.stopPropagation(),m.preventDefault(),t.clearSelection());break}case"Tab":{!a&&o.current&&m.shiftKey&&o.current.focus();break}}},[r,t,o,S,i,p,b,d,l,f,a,G]),Se=(0,$.useCallback)(m=>{if(!t.isFocused){if(t.setFocused(!0),t.focusedKey==null){let D=m.relatedTarget,_=D!=null&&!!(m.currentTarget.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING),ce=null;_?ce=t.lastSelectedKey??r.getLastKey?.()??null:ce=t.firstSelectedKey??r.getFirstKey?.()??null,ce!=null&&(t.setFocusedKey(ce),p&&!t.isSelected(ce)&&t.replaceSelection(ce))}else x.current&&(x.current.scrollTop=C.current.top,x.current.scrollLeft=C.current.left);t.focusedKey!=null&&fe(t.focusedKey)}},[t,r,p,x,fe]),ue=(0,$.useCallback)(m=>{let D=m.relatedTarget;m.currentTarget.contains(D)||t.setFocused(!1)},[t]),ae=(0,$.useCallback)(m=>{x.current===m.target&&m.preventDefault()},[x]);(0,$.useEffect)(()=>{let m=x.current;if(!m)return()=>{};let D=()=>{C.current={top:m.scrollTop,left:m.scrollLeft}};return m.addEventListener("scroll",D,{passive:!0}),()=>{m.removeEventListener("scroll",D)}},[x]),(0,$.useEffect)(()=>{if(!U.current)return;let m=null;if(U.current==="first"?m=r.getFirstKey?.()??null:U.current==="last"&&(m=r.getLastKey?.()??null),t.selectedKeys.size>0){for(let D of t.selectedKeys)if(t.canSelectItem?.(D)!==!1){m=D;break}}t.setFocused(!0),t.setFocusedKey(m),m==null&&!c&&o.current&&o.current.focus(),U.current=!1},[r,t,o,c]),(0,$.useEffect)(()=>{if(!t.isFocused||t.focusedKey==null||t.focusedKey===B.current)return;let m=Xr(o,t.focusedKey);m&&x.current&&Rr(x.current,m),B.current=t.focusedKey},[t.isFocused,t.focusedKey,o,x]),(0,$.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]);let E=c?void 0:t.focusedKey==null?0:-1;return{collectionProps:Ie({onKeyDown:A,onFocus:Se,onBlur:ue,onMouseDown:ae,tabIndex:E,"data-orientation":T})}}var z=K(F(),1),Rt={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Jr={...Rt,customError:!0,valid:!1},ke={isInvalid:!1,validationErrors:[],validationDetails:Rt},eo=(0,z.createContext)({}),rn="__formValidationState"+Date.now();function Fs(e){if(e[rn]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}=e[rn];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}}return ks(e)}function ks(e){let{isInvalid:t,validationState:r,name:o,value:s,builtinValidation:i,validate:l,validationBehavior:d="aria"}=e;r&&(t||=r==="invalid");let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Jr}:null,p=(0,z.useMemo)(()=>{if(!l||s==null)return null;let A=Ns(l,s);return Zr(A)},[l,s]);i?.validationDetails.valid&&(i=void 0);let b=(0,z.useContext)(eo),c=(0,z.useMemo)(()=>o?Array.isArray(o)?o.flatMap(A=>on(b[A])):on(b[o]):[],[b,o]),[a,g]=(0,z.useState)(b),[S,T]=(0,z.useState)(!1);b!==a&&(g(b),T(!1));let v=(0,z.useMemo)(()=>Zr(S?[]:c),[S,c]),k=(0,z.useRef)(ke),[x,C]=(0,z.useState)(ke),B=(0,z.useRef)(ke),U=()=>{if(!Y)return;j(!1);let A=p||i||k.current;nn(A,B.current)||(B.current=A,C(A))},[Y,j]=(0,z.useState)(!1);return(0,z.useEffect)(U),{realtimeValidation:f||v||p||i||ke,displayValidation:d==="native"?f||v||x:f||v||p||i||x,updateValidation(A){d==="aria"&&!nn(x,A)?C(A):k.current=A},resetValidation(){let A=ke;nn(A,B.current)||(B.current=A,C(A)),d==="native"&&j(!1),T(!0)},commitValidation(){d==="native"&&j(!0),T(!0)}}}function on(e){return e?Array.isArray(e)?e:[e]:[]}function Ns(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return on(r)}return[]}function Zr(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Jr}:null}function nn(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function Ks(...e){let t=new Set,r=!1,o={...Rt};for(let s of e){for(let i of s.validationErrors)t.add(i);r||=s.isInvalid;for(let i in o)o[i]||=s.validationDetails[i]}return o.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:o}}})();
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=F(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},p=Symbol.for("react.portal"),b=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ee.createPortal=function(c,a){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,a,null,g)},ee.flushSync=function(c){var a=b.T,g=f.p;try{if(b.T=null,f.p=2,c)return c()}finally{b.T=a,f.p=g,f.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ee.preconnect=function(c,a){typeof c=="string"&&c?a!=null&&typeof a!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(a)):a!=null&&typeof a.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",s(a.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,f.d.C(c,a))},ee.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c));else if(1<arguments.length){var a=arguments[1];typeof a=="object"&&a.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(a))}typeof c=="string"&&f.d.D(c)},ee.preinit=function(c,a){if(typeof c=="string"&&c?a==null||typeof a!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(a)):a.as!=="style"&&a.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(a.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(c)),typeof c=="string"&&a&&typeof a.as=="string"){var g=a.as,S=o(g,a.crossOrigin),T=typeof a.integrity=="string"?a.integrity:void 0,v=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;g==="style"?f.d.S(c,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:S,integrity:T,fetchPriority:v}):g==="script"&&f.d.X(c,{crossOrigin:S,integrity:T,fetchPriority:v,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},ee.preinitModule=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&a.as!=="script"&&(g+=" The `as` option encountered was "+i(a.as)+"."),g)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",g);else switch(g=a&&typeof a.as=="string"?a.as:"script",g){case"script":break;default:g=i(g),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',g,c)}typeof c=="string"&&(typeof a=="object"&&a!==null?(a.as==null||a.as==="script")&&(g=o(a.as,a.crossOrigin),f.d.M(c,{crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})):a==null&&f.d.M(c))},ee.preload=function(c,a){var g="";if(typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a==null||typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":typeof a.as=="string"&&a.as||(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',g),typeof c=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){g=a.as;var S=o(g,a.crossOrigin);f.d.L(c,g,{crossOrigin:S,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},ee.preloadModule=function(c,a){var g="";typeof c=="string"&&c||(g+=" The `href` argument encountered was "+s(c)+"."),a!==void 0&&typeof a!="object"?g+=" The `options` argument encountered was "+s(a)+".":a&&"as"in a&&typeof a.as!="string"&&(g+=" The `as` option encountered was "+s(a.as)+"."),g&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',g),typeof c=="string"&&(a?(g=o(a.as,a.crossOrigin),f.d.m(c,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:g,integrity:typeof a.integrity=="string"?a.integrity:void 0})):f.d.m(c))},ee.requestFormReset=function(c){f.d.r(c)},ee.unstable_batchedUpdates=function(c,a){return c(a)},ee.useFormState=function(c,a,g){return l().useFormState(c,a,g)},ee.useFormStatus=function(){return l().useHostTransitionStatus()},ee.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Zr=Ce((ba,on)=>{"use strict";function Xr(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xr)}catch(e){console.error(e)}}}process.env.NODE_ENV==="production"?(Xr(),on.exports=qr()):on.exports=Qr()});var it=K(F(),1);function Ie(...e){if(e.length===0)return{};if(e.length===1)return typeof e[0]=="object"&&e[0]!==null?e[0]:{};let t={},r={};for(let o of e)if(!(typeof o!="object"||o===null)){for(let s in o)if(Object.hasOwn(o,s)){if(s==="children")continue;let i=o[s];s.startsWith("on")&&typeof i=="function"?(r[s]??=[],r[s].push(i)):t[s]=i}}for(let o in r)Object.hasOwn(r,o)&&r[o].length>0&&(t[o]=(...s)=>{for(let i of r[o])i?.(...s)});for(let o=e.length-1;o>=0;o--){let s=e[o];if(typeof s=="object"&&s!==null&&"children"in s){t.children=s.children;break}}return t}function Do({props:e,ref:t,context:r}){let o=Nt({context:r,slot:e.slot})||{},{ref:s=null,...i}=o,l=(0,it.useRef)(null),d=(0,it.useCallback)(p=>{l.current=p,typeof t=="function"?t(p):t&&(t.current=p),typeof s=="function"?s(p):s&&typeof s=="object"&&(s.current=p)},[t,s]),f=Ie(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?f.style=p=>{let b=typeof i.style=="function"?i.style(p):i.style,c={...p.defaultStyle,...b},a=typeof e.style=="function"?e.style({...p,defaultStyle:c}):e.style;return{...c,...a}}:f.style={...i.style,...e.style}),[f,d]}var se=K(F(),1);function Uo(e={}){let{partialVisibility:t=!1,threshold:r=0,rootMargin:o="0px",root:s=null,active:i=!0,once:l=!1,onChange:d}=e,[f,p]=(0,se.useState)(null),[b,c]=(0,se.useState)(!1),[a,g]=(0,se.useState)(null),S=(0,se.useRef)(!1),T=(0,se.useRef)(null),v=Oe(x=>{let C=x[0],B=C.isIntersecting,U={isIntersecting:C.isIntersecting,intersectionRatio:C.intersectionRatio,intersectionRect:C.intersectionRect,boundingClientRect:C.boundingClientRect,rootBounds:C.rootBounds,time:C.time};g(U),c(Y=>l&&S.current?!0:B&&l?(S.current=!0,Y!==!0&&d&&d(!0),!0):Y!==B?(d&&d(B),B):Y)}),k=(0,se.useCallback)(x=>{p(x)},[]);return(0,se.useEffect)(()=>{if(!i||!f)return;let x;return t===!0?x=[0,.1,.25,.5,.75,1]:typeof t=="string"?x=.01:x=r,T.current=new IntersectionObserver(v,{root:s,rootMargin:o,threshold:x}),T.current.observe(f),()=>{T.current&&T.current.disconnect()}},[i,f,s,o,r,t]),[k,b,a]}var yt=K(F(),1);var Fo=Object.defineProperty,ut=(e,t)=>{for(var r in t)Fo(e,r,{get:t[r],enumerable:!0})},xe={};ut(xe,{ARIA_ATTRIBUTES:()=>jn,HTML_TAGS:()=>Wn,PRIMITIVE_TAGS:()=>Bn,default:()=>ko});var jn=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],Bn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],ko={ARIA_ATTRIBUTES:jn,PRIMITIVE_TAGS:Bn,HTML_TAGS:Wn},No={};ut(No,{NUMERIC_DIGITS:()=>Gn,default:()=>Ko});var Gn=["1","2","3","4","5","6","7","8","9","0"],Ko={NUMERIC_DIGITS:Gn},Ho={};ut(Ho,{AMPERSAND:()=>tr,ASTERISK:()=>rr,BACKSLASH:()=>yr,BOM:()=>Yn,CARRIAGE_RETURN:()=>qn,COLON:()=>ar,COMMA:()=>sr,COMMERCIAL_AT:()=>dr,DOT:()=>ur,DOUBLE_QUOTE:()=>Zn,EXCLAMATION:()=>Xn,GRAVE_ACCENT:()=>gr,GREATER_THAN:()=>lr,LEFT_CURLY_BRACKET:()=>Er,LEFT_SQUARE_BRACKET:()=>pr,LINE_FEED:()=>zn,MINUS:()=>ir,PERCENT:()=>er,PLUS:()=>or,QUESTION:()=>fr,RIGHT_CURLY_BRACKET:()=>hr,RIGHT_SQUARE_BRACKET:()=>mr,SHARP:()=>Jn,SINGLE_QUOTE:()=>nr,SMALLER_THAN:()=>cr,SPACE:()=>Qn,TAB:()=>$n,VERTICAL_LINE:()=>vr,default:()=>Vo});var Yn=65279,$n=9,zn=10,qn=13,Qn=32,Xn=33,Zn=34,Jn=35,er=37,tr=38,nr=39,rr=42,or=43,sr=44,ir=45,ur=46,ar=58,cr=60,lr=62,fr=63,dr=64,pr=91,yr=92,mr=93,gr=96,Er=123,vr=124,hr=125,Vo={BOM:Yn,TAB:$n,LINE_FEED:zn,CARRIAGE_RETURN:qn,SPACE:Qn,EXCLAMATION:Xn,DOUBLE_QUOTE:Zn,SHARP:Jn,PERCENT:er,AMPERSAND:tr,SINGLE_QUOTE:nr,ASTERISK:rr,PLUS:or,COMMA:sr,MINUS:ir,DOT:ur,COLON:ar,SMALLER_THAN:cr,GREATER_THAN:lr,QUESTION:fr,COMMERCIAL_AT:dr,LEFT_SQUARE_BRACKET:pr,BACKSLASH:yr,RIGHT_SQUARE_BRACKET:mr,GRAVE_ACCENT:gr,LEFT_CURLY_BRACKET:Er,VERTICAL_LINE:vr,RIGHT_CURLY_BRACKET:hr},jo={};ut(jo,{CAPITALIZED:()=>Tr,LOWERCASE:()=>br,VOWELS:()=>Rr,default:()=>Bo});var Tr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],br=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Rr=["A","E","I","O","U","a","e","i","o","u"],Bo={CAPITALIZED:Tr,LOWERCASE:br,VOWELS:Rr};function Wo(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var at=()=>Wo(/^Mac/i);function Sr(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):!1}var Go=()=>Sr(/^iPhone/i),Yo=()=>Sr(/^iPad/i)||at()&&navigator.maxTouchPoints>1,Kt=()=>Go()||Yo();function ct(e){return at()?e.metaKey??!1:e.ctrlKey??!1}function q(e){return e?.ownerDocument??document}function ye(e){return e&&"window"in e&&e.window===e?e:q(e).defaultView||window}var lt=null;function $o(){if(lt==null){lt=!1;try{document.createElement("div").focus({get preventScroll(){return lt=!0,!0}})}catch{}}return lt}function _r(e,t,r){let{block:o="nearest",inline:s="nearest"}=r??{},i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),d=l.top<i.top,f=l.bottom>i.bottom,p=l.left<i.left,b=l.right>i.right;if(d||f){let c=e.scrollTop;if(o==="start"||o==="nearest"&&d)c=e.scrollTop+(l.top-i.top);else if(o==="end"||o==="nearest"&&f)c=e.scrollTop+(l.bottom-i.bottom);else if(o==="center"){let a=i.top+i.height/2,g=l.top+l.height/2;c=e.scrollTop+(g-a)}e.scrollTop=c}if(p||b){let c=e.scrollLeft;if(s==="start"||s==="nearest"&&p)c=e.scrollLeft+(l.left-i.left);else if(s==="end"||s==="nearest"&&b)c=e.scrollLeft+(l.right-i.right);else if(s==="center"){let a=i.left+i.width/2,g=l.left+l.width/2;c=e.scrollLeft+(g-a)}e.scrollLeft=c}}function zo(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function ft(e,t,r=!0){if(!e||!t)return!1;if(!r)return e.contains(t);let o=t;for(;o;){if(o===e)return!0;o=o instanceof Element&&o.tagName==="SLOT"&&o.assignedSlot?o.assignedSlot.parentNode:zo(o)?o.host:o.parentNode}return!1}var me=(e=document,t=!0)=>{if(!t)return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&r.shadowRoot?.activeElement;)r=r.shadowRoot.activeElement;return r};function dt(e,t=!0){return t&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function Be(e){if($o())e.focus({preventScroll:!0});else{let t=qo(e);e.focus();for(let{element:r,scrollTop:o,scrollLeft:s}of t)r.scrollTop=o,r.scrollLeft=s}}function qo(e){let t=e.parentNode,r=Array.from({length:0}),o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}var wr="necto-style",Or=new WeakMap;function Qo(e){let t=Or.get(e);return t||(t=new Map,Or.set(e,t)),t}function Xo(e,t={}){let{id:r=wr,insertionPoint:o}=t,s=o?q(o):document,i=s.createElement("style");return i.setAttribute("type","text/css"),i.setAttribute("necto-style-id",r),i.textContent=e,o?s.head.insertBefore(i,o):s.head.appendChild(i),i}function Ar(e,t={}){let{id:r=wr,window:o=typeof window<"u"?window:null,insertionPoint:s}=t;if(!o||!e)return()=>{};let i=Qo(o),l=`${r}:${e}`,d=i.get(l);return d?d.element&&(d.element.textContent=e,d.count++):(d={element:Xo(e,{id:r,insertionPoint:s}),count:1},i.set(l,d)),()=>{let f=i.get(l);f?.element&&(f.count--,f.count<1&&(f.element.remove(),f.element=null,i.delete(l)))}}var pe=new Map,Vt=new Set;function Zo(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);t||(t=new Set,pe.set(e.target,t),e.target.addEventListener("transitioncancel",Wt,{once:!0})),t.add(e.propertyName)}function Wt(e){if(!("propertyName"in e)||!e.target)return;let t=pe.get(e.target);if(t&&(t.delete(e.propertyName),t.size===0&&(e.target.removeEventListener("transitioncancel",Wt),pe.delete(e.target)),pe.size===0)){for(let r of Vt)r();Vt.clear()}}if(typeof window<"u"&&typeof document<"u"){let e=()=>{let t=document.body;t&&(t.addEventListener("transitionrun",Zo),t.addEventListener("transitionend",Wt))};document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}function Gt(e){requestAnimationFrame(()=>{for(let[t]of pe)"isConnected"in t&&!t.isConnected&&pe.delete(t);pe.size===0?e():Vt.add(e)})}var le,Ht=()=>xe.HTML_TAGS.reduce((e,t)=>{var r;return e[r=t,r.charAt(0).toUpperCase()+r.slice(1)]=t,e},{}),si=new Proxy({},{get:(e,t,r)=>(le||(le=Ht()),Reflect.get(le,t,r)),ownKeys:()=>(le||(le=Ht()),Reflect.ownKeys(le)),getOwnPropertyDescriptor:(e,t)=>(le||(le=Ht()),Object.getOwnPropertyDescriptor(le,t))}),jt="",De="default",He=new WeakMap;function pt(e){if(Kt()){if(De==="default"){let t=q(e);t?.documentElement?.style.webkitUserSelect!==void 0&&(jt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none",De="disabled")}}else if(e instanceof HTMLElement||e instanceof SVGElement){let t=e.style,r="userSelect"in t?"userSelect":"webkitUserSelect";He.has(e)||(He.set(e,t[r]??""),t[r]="none")}}function ge(e){if(Kt()){if(De!=="disabled")return;De="restoring",setTimeout(()=>{Gt(()=>{if(De==="restoring"){let t=q(e);t?.documentElement?.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=jt||""),jt="",De="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&He.has(e)){let t=He.get(e)??"",r=e.style,o="userSelect"in r?"userSelect":"webkitUserSelect";r[o]==="none"&&(r[o]=t),e.getAttribute("style")?.trim()===""&&e.removeAttribute("style"),He.delete(e)}}var Ve,Bt,Lr,je=()=>{Ve||(Ve=xe.ARIA_ATTRIBUTES.reduce((e,t)=>(e[(r=>{let o=r.replace("aria-","");return o.charAt(0).toUpperCase()+o.slice(1)})(t)]=t,e),{}),Bt=xe.ARIA_ATTRIBUTES,Lr=new Set(Bt))},W=new Proxy({},{get:(e,t,r)=>(je(),Reflect.get(Ve,t,r)),ownKeys:()=>(je(),Reflect.ownKeys(Ve)),getOwnPropertyDescriptor:(e,t)=>(je(),Object.getOwnPropertyDescriptor(Ve,t))}),ai=new Proxy([],{get:(e,t,r)=>(je(),Reflect.get(Bt,t,r))}),ci=new Proxy(new Set,{get:(e,t,r)=>(je(),Reflect.get(Lr,t,r))});function We(e={}){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:s}=e,i=(0,yt.useCallback)((p,b)=>{p?(r?.(b),s?.(!0)):(o?.(b),s?.(!1))},[r,o,s]),l=(0,yt.useCallback)(p=>{p.target===p.currentTarget&&i(!1,p)},[i]),d=Ge({onBlur:l}),f=(0,yt.useCallback)(p=>{let b=q(p.target),c=b?me(b):me();p.target===p.currentTarget&&c===dt(p.nativeEvent)&&(i(!0,p),d(p))},[i,d]);return{focusProps:{...t?{}:{onFocus:f,onBlur:l}}}}var mt=K(F(),1);function Jo(e,t){let{autoFocus:r,isDisabled:o,excludeFromTabOrder:s}=e,{focusProps:i}=We(e),{keyboardProps:l}=Yt(e),d=(0,mt.useRef)(r),f=q(t.current),p=me(f);(0,mt.useEffect)(()=>{if(d.current&&t.current)if(Ye()==="virtual"){let c=p;Gt(()=>{me(f)===c&&t.current?.isConnected&&Be(t.current)})}else Be(t.current);d.current=!1},[t]);let b=s?-1:0;return o&&(b=void 0),{focusableProps:Ie(i??{},l,{tabIndex:b})}}var Ee=K(F(),1);var es=null;function ts(e={}){let{within:t=!1,isTextInput:r=!1,autoFocus:o=!1}=e,s=(0,Ee.useRef)({isFocused:o,isFocusVisible:o||es!=="pointer"}),[i,l]=(0,Ee.useState)(o),[d,f]=(0,Ee.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),p=(0,Ee.useCallback)(()=>{f(s.current.isFocused&&s.current.isFocusVisible)},[]),b=(0,Ee.useCallback)(g=>{s.current.isFocused=g,l(g),p()},[p]);$e({fn:g=>{s.current.isFocusVisible=g,p()},deps:[],opts:{isTextInput:r}});let{focusProps:c={}}=We({isDisabled:t,onFocusChange:b})||{},{focusWithinProps:a={}}=$t({isDisabled:!t,onFocusWithinChange:b})||{};return{isFocused:i,isFocusVisible:d,focusProps:t?a:c}}var Cr=K(F(),1);function ns(e={}){let{isTextInput:t,autoFocus:r}=e,[o,s]=(0,Cr.useState)(r||Ye()!=="pointer");return $e({fn:i=>s(i),deps:[t],opts:{isTextInput:t}}),{isFocusVisible:o}}var Ue=new Map,gt=new Set,Pr=!1,zt=null,Mr=!1,Q={get hasEventBeforeFocus(){return Pr},set hasEventBeforeFocus(e){Pr=e},get hasBlurredWindowRecently(){return Mr},set hasBlurredWindowRecently(e){Mr=e},get currentModality(){return zt},set currentModality(e){zt=e}};function Ye(){return zt}var vs={},Et=Object.create(null),ze=e=>globalThis.process?.env||vs.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?Et:globalThis),ve=new Proxy(Et,{get(e,t){return ze()[t]??Et[t]},has(e,t){let r=ze();return t in r||t in Et},set(e,t,r){let o=ze(!0);return o[t]=r,!0},deleteProperty(e,t){if(!t)return!1;let r=ze(!0);return delete r[t],!0},ownKeys(){let e=ze(!0);return Object.keys(e)}}),xr=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",rs=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];function os(){if(globalThis.process?.env)for(let e of rs){let t=e[1]||e[0];if(globalThis.process?.env[t])return{name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}var Dr=os(),xi=Dr.name;function _e(e){return e?e!=="false":!1}var qt=globalThis.process?.platform||"",Ur=_e(ve.CI)||Dr.ci!==!1,Fr=_e(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);var Di=_e(ve.DEBUG),we=xr==="test"||_e(ve.TEST),kr=xr==="production";var Ui=_e(ve.MINIMAL)||Ur||we||!Fr,ss=/^win/i.test(qt),Fi=/^linux/i.test(qt),Nr=/^darwin/i.test(qt),ki=!_e(ve.NO_COLOR)&&(_e(ve.FORCE_COLOR)||(Fr||ss)&&ve.TERM!=="dumb"||Ur),is=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null,Ni=Number(is?.split(".")[0])||null,us=globalThis.process||Object.create(null),Ir={versions:{}},Ki=new Proxy(us,{get(e,t){if(t==="env")return ve;if(t in e)return e[t];if(t in Ir)return Ir[t]}}),as=globalThis.process?.release?.name==="node",cs=!!globalThis.Bun||!!globalThis.process?.versions?.bun,ls=!!globalThis.Deno,fs=!!globalThis.fastly,ds=!!globalThis.Netlify,ps=!!globalThis.EdgeRuntime,ys=globalThis.navigator?.userAgent==="Cloudflare-Workers",ms=[[ds,"netlify"],[ps,"edge-light"],[ys,"workerd"],[fs,"fastly"],[ls,"deno"],[cs,"bun"],[as,"node"]];function gs(){let e=ms.find(t=>t[0]);if(e)return{name:e[1]}}var Es=gs(),Hi=Es?.name||"";var Hr=K(F(),1);function Qt(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&kr?console.error("stopPropagation is now the default behavior for events in Necto. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function vt(e){let t=e;return Object.assign(t,{nativeEvent:e,isDefaultPrevented:()=>t.defaultPrevented,isPropagationStopped:()=>t.cancelBubble,persist:()=>{}}),t}var hs=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ts={Tab:!0,Escape:!0};function Kr(e,t,r){if(!r||!("target"in r)||!r.target)return!1;let o=q(r.target),s=ye(r.target),i=typeof window<"u"?s.HTMLInputElement:HTMLInputElement,l=typeof window<"u"?s.HTMLTextAreaElement:HTMLTextAreaElement,d=typeof window<"u"?s.HTMLElement:HTMLElement,f=typeof window<"u"?s.KeyboardEvent:KeyboardEvent,p=o.activeElement;return e=e||p instanceof i&&!hs.has(p.type)||p instanceof l||p instanceof d&&p.isContentEditable,!(e&&t==="keyboard"&&r instanceof f&&!Ts[r.key])}function Zt(e,t){gt.forEach(r=>r(e,t))}function bs(e){return!(e.metaKey||Nr&&e.altKey||e.ctrlKey||["Control","Shift","Meta"].includes(e.key))}function Vr(e){bs(e)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="keyboard",Zt("keyboard",e))}function Xt(e){["mousedown","pointerdown"].includes(e.type)&&(Q.hasEventBeforeFocus=!0,Q.currentModality="pointer",Zt("pointer",e))}function jr(e){[window,document].includes(e.target)||!e.isTrusted||!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently||(!Q.hasEventBeforeFocus&&!Q.hasBlurredWindowRecently&&(Q.currentModality="virtual",Zt("virtual",e)),Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!1)}function Br(){Q.hasEventBeforeFocus=!1,Q.hasBlurredWindowRecently=!0}function Rs(e){let t=ye(e),r=q(e);if(typeof window>"u"||typeof document>"u"||Ue.has(t))return;let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(...s){Q.hasEventBeforeFocus=!0,o.apply(this,s)},r.addEventListener("keydown",Vr,!0),r.addEventListener("click",Xt,!0),t.addEventListener("focus",jr,!0),t.addEventListener("blur",Br,!1),typeof PointerEvent<"u"&&r.addEventListener("pointerdown",Xt,!0),Ue.set(t,{focus:o})}function Ss(e){let t=ye(e),r=q(e);if(!Ue.has(t))return;let{focus:o}=Ue.get(t);t.HTMLElement.prototype.focus=o,r.removeEventListener("keydown",Vr,!0),r.removeEventListener("click",Xt,!0),t.removeEventListener("focus",jr,!0),t.removeEventListener("blur",Br,!1),Ue.delete(t)}function $e(e){let{fn:t,deps:r,opts:o}=e;typeof window>"u"||typeof document>"u"||(Rs(),(0,Hr.useEffect)(()=>{let s=(i,l)=>{Kr(!!o?.isTextInput,i,l)&&t(Q.currentModality!=="pointer")};return gt.add(s),()=>{gt.delete(s),Ss()}},r))}var qe=K(F(),1);function $t(e){let{isDisabled:t,onFocusWithin:r,onBlurWithin:o,onFocusWithinChange:s}=e,i=(0,qe.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:d}=Qe(),f=(0,qe.useCallback)(c=>{c.currentTarget.contains(c.target)&&i.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(i.current.isFocusWithin=!1,d(),o&&o(c),s&&s(!1))},[o,s,d]),p=Ge({onBlur:f}),b=(0,qe.useCallback)(c=>{if(!c.currentTarget.contains(c.target))return;let a=q(c.target),g=me(a);if(!i.current.isFocusWithin&&g===dt(c.nativeEvent)){r&&r(c),s&&s(!0),i.current.isFocusWithin=!0,p(c);let S=c.currentTarget;l(a,"focus",T=>{if(i.current.isFocusWithin&&!ft(S,T.target)&&a.defaultView&&typeof a.defaultView.FocusEvent=="function"){let v=new a.defaultView.FocusEvent("blur",{relatedTarget:T.target});Object.defineProperty(v,"target",{value:S}),Object.defineProperty(v,"currentTarget",{value:S});let k=vt(v);f(k)}},{capture:!0})}},[r,s,p,l,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:b,onBlur:f}}}var he=K(F(),1);function Qe(){let e=(0,he.useRef)(new Map),t=(0,he.useCallback)((s,i,l,d)=>{let f=typeof d=="object"&&d?.once?(...p)=>{e.current.delete(l),l(...p)}:l;e.current.set(l,{type:i,eventTarget:s,options:d}),s.addEventListener(i,f,d)},[]),r=(0,he.useCallback)((s,i,l,d)=>{let f=e.current.get(l),p=f?.options?.once?f.fn:l;s.removeEventListener(i,p,d),e.current.delete(l)},[]),o=(0,he.useCallback)(()=>{e.current.forEach((s,i)=>{s.eventTarget.removeEventListener(s.type,i,s.options)}),e.current.clear()},[]);return(0,he.useEffect)(()=>()=>o(),[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}var te=K(F(),1);function Os(e={}){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[i,l]=(0,te.useState)(!1),d=(0,te.useRef)({hoverCount:0,ignoreEmulated:!1}),f=(0,te.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current,{addGlobalListener:p,removeAllGlobalListeners:b}=Qe(),c=(0,te.useCallback)(()=>{d.current.ignoreEmulated=!0,setTimeout(()=>{d.current.ignoreEmulated=!1},50)},[]);(0,te.useEffect)(()=>{let T=k=>{k.pointerType==="touch"&&c()};if(typeof document>"u")return;let v=d.current;return v.hoverCount++,typeof PointerEvent<"u"?document.addEventListener("pointerup",T):we&&document.addEventListener("touchend",c),()=>{v.hoverCount--,v.hoverCount===0&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",T):we&&document.removeEventListener("touchend",c))}},[c]);let a=(0,te.useCallback)((T,v)=>{s||v==="touch"||f.isHovered||!(T.currentTarget&&T.currentTarget.contains(T.target))||(f.isHovered=!0,f.pointerType=v,f.target=T.currentTarget,p(q(T.target instanceof Element?T.target:null),"pointerover",k=>{f.isHovered&&f.target&&!ft(f.target,k.target)&&g(k,k.pointerType)},{capture:!0}),t?.({type:"hoverstart",target:T.currentTarget,pointerType:v}),r?.(!0),l(!0))},[s,t,r,p,f]),g=(0,te.useCallback)((T,v)=>{v==="touch"||!f.isHovered||!f.target||(f.isHovered=!1,f.pointerType="",f.target=null,b(),o?.({type:"hoverend",target:T.currentTarget,pointerType:v}),r?.(!1),l(!1))},[o,r,b,f.target,f]),S=(0,te.useMemo)(()=>{let T={};return typeof PointerEvent<"u"?(T.onPointerEnter=v=>{d.current.ignoreEmulated&&v.pointerType==="mouse"||a(v,v.pointerType)},T.onPointerLeave=v=>{!s&&v.currentTarget instanceof Element&&v.currentTarget.contains(v.target)&&g(v,v.pointerType)}):we&&(T.onTouchStart=()=>{f.ignoreEmulatedMouseEvents=!0},T.onMouseEnter=v=>{!f.ignoreEmulatedMouseEvents&&!d.current.ignoreEmulated&&a(v.nativeEvent,"mouse"),f.ignoreEmulatedMouseEvents=!1},T.onMouseLeave=v=>{!s&&v.currentTarget.contains(v.target)&&g(v.nativeEvent,"mouse")}),T},[s,a,g,f]);return(0,te.useEffect)(()=>{s&&f.isHovered&&g({currentTarget:f.target},f.pointerType)},[s,g,f.isHovered,f.pointerType,f.target]),{hoverProps:S,isHovered:i}}var Jt={prefix:String(Math.round(Math.random()*1e10)),current:0},Xe=new Map,Ze=typeof FinalizationRegistry<"u"?new FinalizationRegistry(e=>{Xe.delete(e)}):null;var oe=K(F(),1);function _s(e={}){let{prefix:t="necto",defaultId:r}=e,[o,s]=(0,oe.useState)(()=>r),i=(0,oe.useRef)(null),l=(0,oe.useRef)({}),d=(()=>{if(r)return r;let f=typeof oe.default.useId=="function"?(0,oe.useId)():String(++Jt.current);return`${we?t:`${t}${Jt.prefix}`}-${f}`})();return(0,oe.useEffect)(()=>{if(typeof window<"u"&&window.document?.createElement){let f=Xe.get(d)||[],p={current:i.current};f.some(b=>b===p)||Xe.set(d,[...f,p])}return Ze&&Ze.register(l.current,d),()=>{Ze&&Ze.unregister(l.current),Xe.delete(d)}},[d]),(0,oe.useEffect)(()=>{let f=i.current;f&&(s(f),i.current=null)},[]),d}function Yt(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:e.onKeyDown?Qt(t=>e.onKeyDown?.(t.nativeEvent)):void 0,onKeyUp:e.onKeyUp?Qt(t=>e.onKeyUp?.(t.nativeEvent)):void 0}}}var Te=K(F(),1);function en(e={}){let{type:t="function"}=e,r=(0,Te.useRef)(!1),[o,s]=(0,Te.useState)(!1),i=(0,Te.useCallback)(()=>r.current,[]);return(0,Te.useEffect)(()=>(r.current=!0,s(!0),()=>{r.current=!1,s(!1)}),[]),t==="ref"?r:t==="boolean"?o:i}var V=K(F(),1);function X(e,t,r){return{type:e,pointerType:t,target:r.currentTarget??r.target,shiftKey:r.shiftKey,ctrlKey:r.ctrlKey,metaKey:r.metaKey,altKey:r.altKey}}function ws(e={}){let{isDisabled:t,preventFocusOnPress:r,allowTextSelectionOnPress:o,ref:s,onPress:i,onPressStart:l,onPressEnd:d,onPressChange:f,onPressUp:p,onClick:b}=e,[c,a]=(0,V.useState)(!1),g=(0,V.useRef)(!1),S=(0,V.useRef)(null),T=(0,V.useRef)(!1),v=(0,V.useCallback)(E=>{c!==E&&(a(E),f?.(E))},[c,f]),k=(0,V.useCallback)(E=>{if(!T.current)return;let m=S.current&&S.current instanceof Node&&E.target instanceof Node&&S.current.contains(E.target);if(T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current),E.target){let D={...X("pressend","mouse",E),target:E.target};d?.(D),p?.(D),m&&i?.(D)}},[d,p,i,v,o]),x=(0,V.useCallback)(E=>{if(t||E.button!==0||g.current)return;r&&E.preventDefault(),o||pt(E.currentTarget),T.current=!0,S.current=E.currentTarget,v(!0);let m=X("pressstart","mouse",E);l?.(m),window.addEventListener("mouseup",k,{once:!0})},[t,r,o,l,v,k]),C=(0,V.useCallback)(E=>{if(t||E.button!==0||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","mouse",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","mouse",E))},[t,i,d,p,v,o]),B=(0,V.useCallback)(E=>{c&&(v(!1),d?.(X("pressend","mouse",E)),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget))},[c,v,d,o]),U=(0,V.useCallback)(E=>{T.current&&!c&&(v(!0),l?.(X("pressstart","mouse",E)))},[c,l,v]),Y=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m),p?.(m)},[d,p,v,o]),j=(0,V.useCallback)(E=>{if(!T.current)return;T.current=!1,v(!1),!o&&S.current instanceof HTMLElement&&ge(S.current);let m={...X("pressend","touch",E),target:E.target};d?.(m)},[d,v,o]),G=(0,V.useCallback)(E=>{t||(o||pt(E.currentTarget),g.current=!0,setTimeout(()=>{g.current=!1},100),T.current=!0,S.current=E.currentTarget,v(!0),l?.(X("pressstart","touch",E)),window.addEventListener("touchend",Y,{once:!0}),window.addEventListener("touchcancel",j,{once:!0}))},[t,l,v,o,Y,j]),fe=(0,V.useCallback)(E=>{if(t||!T.current)return;T.current=!1,v(!1),!o&&E.currentTarget instanceof HTMLElement&&ge(E.currentTarget);let m=X("pressend","touch",E);d?.(m),p?.(m),E.currentTarget instanceof Node&&E.currentTarget.contains(E.target)&&i?.(X("press","touch",E))},[t,i,d,p,v,o]),A=(0,V.useCallback)(E=>{if(t)return;(E.key==="Enter"||E.key===" ")&&!c&&(E.key===" "&&E.preventDefault(),o||pt(),v(!0),T.current=!0,l?.(X("pressstart","keyboard",E)))},[t,c,l,v,o]),Se=(0,V.useCallback)(E=>{if(t)return;if((E.key==="Enter"||E.key===" ")&&c){v(!1),T.current=!1,o||ge();let D=X("pressend","keyboard",E);d?.(D),p?.(X("pressup","keyboard",E)),i?.(X("press","keyboard",E))}},[t,c,i,d,p,v,o]),ue=(0,V.useCallback)(E=>{if(t){E.preventDefault();return}g.current||b?.(E)},[t,b]);(0,V.useEffect)(()=>()=>{window.removeEventListener("mouseup",k),window.removeEventListener("touchend",Y),window.removeEventListener("touchcancel",j)},[k,Y,j]);let ae=(0,V.useMemo)(()=>({onMouseDown:x,onMouseUp:C,onMouseLeave:B,onMouseEnter:U,onTouchStart:G,onTouchEnd:fe,onKeyDown:A,onKeyUp:Se,onClick:ue}),[x,C,B,U,G,fe,A,Se,ue]);return(0,V.useEffect)(()=>{let E=s?.current;E&&E instanceof ye(E).Element&&ye(E).getComputedStyle(E).touchAction==="auto"&&(E.style.touchAction="pan-x pan-y pinch-zoom")},[s]),{pressProps:ae,isPressed:c}}var Wr=K(F(),1);function As(e){let{style:t,values:r,children:o,className:s,defaultStyle:i,defaultChildren:l,defaultClassName:d="necto"}=e;return(0,Wr.useMemo)(()=>{let f=typeof s=="function"?s({...r,defaultClassName:d}):s?`${d} ${s}`:d,p=typeof t=="function"?t({...r,defaultStyle:i||{}}):{...i,...t},b=typeof o=="function"?o({...r,defaultChildren:l}):o??l;return{className:f,style:p,children:b}},[s,t,o,d,l,i,r])}var Gr=K(F(),1);function Nt(e){let{context:t,slot:r}=e,o=(0,Gr.useContext)(t);if(r===null)return null;if(o&&typeof o=="object"&&"slots"in o&&o.slots){let s=r||Symbol("default");if(!o.slots[s]){let i=new Intl.ListFormat().format(Object.keys(o.slots).map(d=>`"${d}"`)),l=r?`Invalid slot name: "${r}". This slot is not recognized. Please refer to the component's documentation for valid slot names.`:"A slot prop is required. You must provide a valid slot name to render content in this area.";throw new Error(`${l} Valid slot names are ${i}.`)}return o.slots[s]}return o}var Fe=K(F(),1);function Ge(e){let{onBlur:t}=e,r=(0,Fe.useRef)({isFocused:!1,observer:null});(0,Fe.useLayoutEffect)(()=>{let s=r.current;return()=>{s.observer&&(s.observer.disconnect(),s.observer=null)}},[]);let o=Oe(s=>{t?.(s)});return(0,Fe.useCallback)(s=>{if(s.target instanceof HTMLButtonElement||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement||s.target instanceof HTMLSelectElement){r.current.isFocused=!0;let i=s.target,l=d=>{if(r.current.isFocused=!1,i.disabled){let f=vt(d);o(f)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};i.addEventListener("focusout",l,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&i.disabled){r.current.observer?.disconnect();let d=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),r.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[o])}var be=K(F(),1);function Oe(e){let t=(0,be.useRef)(e);return(typeof window<"u"?be.useLayoutEffect:be.useEffect)(()=>{t.current=e},[e]),(0,be.useCallback)(((...r)=>t.current(...r)),[])}var ht=K(F(),1);function Yu(e){let t=en(),[r,o]=(0,ht.useState)(!1);return(0,ht.useEffect)(()=>{t()&&o(!!e())},[e,t]),r}var Ae=K(F(),1);function Ls(e={}){let{autoLock:t=!1,target:r,widthReflow:o=!0}=e,[s,i]=(0,Ae.useState)(!1),l=(0,Ae.useRef)(null),d=(0,Ae.useRef)(null),f=Oe(()=>{if(typeof window>"u"||!l.current)return;let{overflow:b,paddingRight:c}=l.current.style;if(d.current={overflow:b,paddingRight:c},o){let a=l.current===document.body?window.innerWidth:l.current.offsetWidth,g=parseInt(window.getComputedStyle(l.current).paddingRight,10)||0,S=a-l.current.scrollWidth;l.current.style.paddingRight=`${S+g}px`}l.current.style.overflow="hidden",i(!0)}),p=Oe(()=>{l.current&&d.current&&(l.current.style.overflow=d.current.overflow,o&&(l.current.style.paddingRight=d.current.paddingRight)),i(!1)});return(0,Ae.useEffect)(()=>{if(!(typeof window>"u"||typeof document>"u"))return r&&(l.current=typeof r=="string"?document.querySelector(r):r),l.current||(l.current=document.body),t&&f(),()=>{p()}},[t,r,o,f,p]),{isLocked:s,lock:f,unlock:p}}var Yr=K(F(),1);function Cs(e={}){let{isInvalid:t,isDisabled:r,isReadOnly:o,isRequired:s,isBusy:i,isPressed:l,isExpanded:d,isSelected:f,isChecked:p,isHidden:b,hasPopup:c,valueCurrent:a,valueMin:g,valueMax:S,valueText:T,label:v,labelledBy:k,describedBy:x,controls:C,owns:B}=e;return(0,Yr.useMemo)(()=>{let U={},Y=[{value:t,attr:W.Invalid},{value:r,attr:W.Disabled},{value:o,attr:W.Readonly},{value:s,attr:W.Required},{value:i,attr:W.Busy},{value:d,attr:W.Expanded},{value:f,attr:W.Selected},{value:b,attr:W.Hidden}];for(let{value:j,attr:G}of Y)j!==void 0&&(U[G]=j||void 0);return l!==void 0&&(U[W.Pressed]=l===!1?void 0:l),p!==void 0&&(U[W.Checked]=p===!1?void 0:p),c!==void 0&&(U[W.Haspopup]=c===!1?void 0:c),a!==void 0&&(U[W.Valuenow]=a),g!==void 0&&(U[W.Valuemin]=g),S!==void 0&&(U[W.Valuemax]=S),T!==void 0&&(U[W.Valuetext]=T),v!==void 0&&(U[W.Label]=v),k!==void 0&&(U[W.Labelledby]=k),x!==void 0&&(U[W.Describedby]=x),C!==void 0&&(U[W.Controls]=C),B!==void 0&&(U[W.Owns]=B),U},[t,r,o,s,i,l,d,f,p,b,c,a,g,S,T,v,k,x,C,B])}function Ps({id:e,css:t,insertionPoint:r,enabled:o=!0,window:s=typeof window<"u"?window:null}){let i=Array.isArray(t)?t.join(`
|
|
18
|
+
`):t;$r(()=>{if(!(!o||!i))return Ar(i,{id:e,window:s,insertionPoint:r})},[e,i,s,r,o])}var Tt=K(F(),1);function ua(e){let t=(0,Tt.useRef)(e);return(0,Tt.useLayoutEffect)(()=>{t.current=e}),t}var bt=K(F(),1),$r=bt.default.useInsertionEffect??bt.useLayoutEffect;function tn(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function nn(e,t,r=".",o){if(!tn(t))return nn(e,{},r,o);let s=Object.assign({},t);for(let i in e){if(i==="__proto__"||i==="constructor")continue;let l=e[i];l!=null&&(o&&o(s,i,l,r)||(Array.isArray(l)&&Array.isArray(s[i])?s[i]=[...l,...s[i]]:tn(l)&&tn(s[i])?s[i]=nn(l,s[i],(r?`${r}.`:"")+i.toString(),o):s[i]=l))}return s}function rn(e){return(...t)=>t.reduce((r,o)=>nn(r,o,"",e),{})}var Rt=rn(),la=rn((e,t,r)=>{if(e[t]!==void 0&&typeof r=="function")return e[t]=r(e[t]),!0}),fa=rn((e,t,r)=>{if(Array.isArray(e[t])&&typeof r=="function")return e[t]=r(e[t]),!0});var ne=K(F(),1);function Is(e={}){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:o,onLongPress:s,accessibilityDescription:i,threshold:l}=Rt(e,{threshold:500}),d=(0,ne.useRef)(null),f=(0,ne.useRef)(null),p=(0,ne.useRef)(null),b=(0,ne.useRef)(!1),c=(0,ne.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]);(0,ne.useEffect)(()=>c,[c]);let a=(0,ne.useCallback)(C=>({type:C,pointerType:f.current??"mouse",target:p.current}),[]),g=(0,ne.useCallback)(C=>{t||C.button!==0||C.pointerType!=="mouse"&&(f.current=C.pointerType,p.current=C.currentTarget,b.current=!1,r?.(a("longpressstart")),d.current=setTimeout(()=>{b.current=!0,C.currentTarget?.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s?.(a("longpress")),d.current=null},l))},[t,l,r,s,a]),S=(0,ne.useCallback)(()=>{f.current!==null&&(c(),!b.current&&o&&o(a("longpressend")),f.current=null,p.current=null)},[c,o,a]),T=(0,ne.useCallback)(()=>{c(),f.current!==null&&o&&o(a("longpressend")),f.current=null,p.current=null},[c,o,a]),v=(0,ne.useCallback)(C=>{b.current&&C.preventDefault()},[]);return{longPressProps:t?{}:{onPointerDown:g,onPointerUp:S,onPointerCancel:T,onContextMenu:v,...!t&&!!s&&!!i&&{"aria-description":i}}}}var eo=K(Zr(),1),ie=K(F(),1);function Fs(e){let{ref:t,isOpen:r,isReady:o=!0}=e,[s,i]=(0,ie.useState)(r),l=s&&o;(0,ie.useLayoutEffect)(()=>{if(l&&t.current&&"getAnimations"in t.current)for(let a of t.current.getAnimations())a instanceof CSSTransition&&a.cancel()},[t,l]),Jr(t,l,(0,ie.useCallback)(()=>i(!1),[]));let[d,f]=(0,ie.useState)(r);r&&!d?(i(!0),f(!0)):!r&&d&&f(!1);let[p,b]=(0,ie.useState)(r?"open":"closed");switch(p){case"open":r||b("exiting");break;case"closed":case"exiting":r&&b("open");break}let c=p==="exiting";return Jr(t,c,(0,ie.useCallback)(()=>{b(a=>a==="exiting"?"closed":a)},[])),{isEntering:l,isExiting:c,isRendered:r||c}}function Jr(e,t,r){(0,ie.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let o=e.current.getAnimations();if(o.length===0){r();return}let s=!1;return Promise.all(o.map(i=>i.finished)).then(()=>{s||(0,eo.flushSync)(()=>{r()})}).catch(()=>{}),()=>{s=!0}}},[e,t,r])}var $=K(F(),1);function ks(e){return at()?e.metaKey:e.ctrlKey}function to(e,t){return e.current?.querySelector(`[data-key="${t}"]`)??null}function Ns(e){let{selectionManager:t,keyboardDelegate:r,ref:o,autoFocus:s,shouldFocusWrap:i,disallowEmptySelection:l,disallowSelectAll:d,escapeBehavior:f,selectOnFocus:p,disallowTypeAhead:b,shouldUseVirtualFocus:c,allowsTabNavigation:a,scrollRef:g,direction:S,orientation:T,onNavigate:v,onFocusItem:k}=Rt(e,{autoFocus:!1,shouldFocusWrap:!1,disallowEmptySelection:!1,disallowSelectAll:!1,escapeBehavior:"clearSelection",selectOnFocus:!1,disallowTypeAhead:!1,shouldUseVirtualFocus:!1,allowsTabNavigation:!1,isVirtualized:!1,direction:"ltr",orientation:"vertical"}),x=g??o,C=(0,$.useRef)({top:0,left:0}),B=(0,$.useRef)(t.focusedKey),U=(0,$.useRef)(s),Y=(0,$.useRef)(""),j=(0,$.useRef)(null),G=(0,$.useCallback)((m,D,O)=>{m!=null&&(t.setFocusedKey(m,O),v?.(m),D?.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(m):p&&!ks(D)&&t.replaceSelection(m))},[t,p,v]),fe=(0,$.useCallback)(m=>{if(k){k(m);return}let D=to(o,m);D&&!c&&Be(D)},[o,c,k]),A=(0,$.useCallback)(m=>{if(!b&&m.key.length===1&&!m.ctrlKey&&!m.metaKey&&!m.altKey){j.current&&clearTimeout(j.current),Y.current+=m.key;let O=r.getKeyForSearch?.(Y.current,t.focusedKey)??null;O!=null&&(m.preventDefault(),G(O,m)),j.current=setTimeout(()=>{Y.current=""},500);return}let D=S==="rtl";switch(m.key){case"ArrowDown":{if(r.getKeyBelow){let O=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):r.getFirstKey?.()??null;O==null&&i&&(O=r.getFirstKey?.()??null),O!=null&&(m.preventDefault(),G(O,m))}break}case"ArrowUp":{if(r.getKeyAbove){let O=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):r.getLastKey?.()??null;O==null&&i&&(O=r.getLastKey?.()??null),O!=null&&(m.preventDefault(),G(O,m))}break}case"ArrowLeft":{if(r.getKeyLeftOf){let O=t.focusedKey!=null?r.getKeyLeftOf(t.focusedKey):null;O==null&&i&&(O=D?r.getFirstKey?.()??null:r.getLastKey?.()??null),O!=null&&(m.preventDefault(),G(O,m,D?"first":"last"))}break}case"ArrowRight":{if(r.getKeyRightOf){let O=t.focusedKey!=null?r.getKeyRightOf(t.focusedKey):null;O==null&&i&&(O=D?r.getLastKey?.()??null:r.getFirstKey?.()??null),O!=null&&(m.preventDefault(),G(O,m,D?"last":"first"))}break}case"Home":{if(r.getFirstKey){m.preventDefault();let O=r.getFirstKey();t.setFocusedKey(O),O!=null&&(ct(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):p&&t.replaceSelection(O))}break}case"End":{if(r.getLastKey){m.preventDefault();let O=r.getLastKey();t.setFocusedKey(O),O!=null&&(ct(m)&&m.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(O):p&&t.replaceSelection(O))}break}case"PageDown":{if(r.getKeyPageBelow&&t.focusedKey!=null){let O=r.getKeyPageBelow(t.focusedKey);O!=null&&(m.preventDefault(),G(O,m))}break}case"PageUp":{if(r.getKeyPageAbove&&t.focusedKey!=null){let O=r.getKeyPageAbove(t.focusedKey);O!=null&&(m.preventDefault(),G(O,m))}break}case"a":{ct(m)&&t.selectionMode==="multiple"&&!d&&(m.preventDefault(),t.selectAll());break}case"Escape":{f==="clearSelection"&&!l&&t.selectedKeys.size>0&&(m.stopPropagation(),m.preventDefault(),t.clearSelection());break}case"Tab":{!a&&o.current&&m.shiftKey&&o.current.focus();break}}},[r,t,o,S,i,p,b,d,l,f,a,G]),Se=(0,$.useCallback)(m=>{if(!t.isFocused){if(t.setFocused(!0),t.focusedKey==null){let D=m.relatedTarget,O=D!=null&&!!(m.currentTarget.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING),ce=null;O?ce=t.lastSelectedKey??r.getLastKey?.()??null:ce=t.firstSelectedKey??r.getFirstKey?.()??null,ce!=null&&(t.setFocusedKey(ce),p&&!t.isSelected(ce)&&t.replaceSelection(ce))}else x.current&&(x.current.scrollTop=C.current.top,x.current.scrollLeft=C.current.left);t.focusedKey!=null&&fe(t.focusedKey)}},[t,r,p,x,fe]),ue=(0,$.useCallback)(m=>{let D=m.relatedTarget;m.currentTarget.contains(D)||t.setFocused(!1)},[t]),ae=(0,$.useCallback)(m=>{x.current===m.target&&m.preventDefault()},[x]);(0,$.useEffect)(()=>{let m=x.current;if(!m)return()=>{};let D=()=>{C.current={top:m.scrollTop,left:m.scrollLeft}};return m.addEventListener("scroll",D,{passive:!0}),()=>{m.removeEventListener("scroll",D)}},[x]),(0,$.useEffect)(()=>{if(!U.current)return;let m=null;if(U.current==="first"?m=r.getFirstKey?.()??null:U.current==="last"&&(m=r.getLastKey?.()??null),t.selectedKeys.size>0){for(let D of t.selectedKeys)if(t.canSelectItem?.(D)!==!1){m=D;break}}t.setFocused(!0),t.setFocusedKey(m),m==null&&!c&&o.current&&o.current.focus(),U.current=!1},[r,t,o,c]),(0,$.useEffect)(()=>{if(!t.isFocused||t.focusedKey==null||t.focusedKey===B.current)return;let m=to(o,t.focusedKey);m&&x.current&&_r(x.current,m),B.current=t.focusedKey},[t.isFocused,t.focusedKey,o,x]),(0,$.useEffect)(()=>()=>{j.current&&clearTimeout(j.current)},[]);let E=c?void 0:t.focusedKey==null?0:-1;return{collectionProps:Ie({onKeyDown:A,onFocus:Se,onBlur:ue,onMouseDown:ae,tabIndex:E,"data-orientation":T})}}var z=K(F(),1),Ot={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},ro={...Ot,customError:!0,valid:!1},ke={isInvalid:!1,validationErrors:[],validationDetails:Ot},oo=(0,z.createContext)({}),un="__formValidationState"+Date.now();function Ks(e){if(e[un]){let{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}=e[un];return{realtimeValidation:t,displayValidation:r,updateValidation:o,resetValidation:s,commitValidation:i}}return Hs(e)}function Hs(e){let{isInvalid:t,validationState:r,name:o,value:s,builtinValidation:i,validate:l,validationBehavior:d="aria"}=e;r&&(t||=r==="invalid");let f=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:ro}:null,p=(0,z.useMemo)(()=>{if(!l||s==null)return null;let A=Vs(l,s);return no(A)},[l,s]);i?.validationDetails.valid&&(i=void 0);let b=(0,z.useContext)(oo),c=(0,z.useMemo)(()=>o?Array.isArray(o)?o.flatMap(A=>an(b[A])):an(b[o]):[],[b,o]),[a,g]=(0,z.useState)(b),[S,T]=(0,z.useState)(!1);b!==a&&(g(b),T(!1));let v=(0,z.useMemo)(()=>no(S?[]:c),[S,c]),k=(0,z.useRef)(ke),[x,C]=(0,z.useState)(ke),B=(0,z.useRef)(ke),U=()=>{if(!Y)return;j(!1);let A=p||i||k.current;sn(A,B.current)||(B.current=A,C(A))},[Y,j]=(0,z.useState)(!1);return(0,z.useEffect)(U),{realtimeValidation:f||v||p||i||ke,displayValidation:d==="native"?f||v||x:f||v||p||i||x,updateValidation(A){d==="aria"&&!sn(x,A)?C(A):k.current=A},resetValidation(){let A=ke;sn(A,B.current)||(B.current=A,C(A)),d==="native"&&j(!1),T(!0)},commitValidation(){d==="native"&&j(!0),T(!0)}}}function an(e){return e?Array.isArray(e)?e:[e]:[]}function Vs(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return an(r)}return[]}function no(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:ro}:null}function sn(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,o)=>r===t.validationErrors[o])&&Object.entries(e.validationDetails).every(([r,o])=>t.validationDetails[r]===o)}function js(...e){let t=new Set,r=!1,o={...Ot};for(let s of e){for(let i of s.validationErrors)t.add(i);r||=s.isInvalid;for(let i in o)o[i]||=s.validationDetails[i]}return o.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:o}}})();
|
|
19
19
|
/*! Bundled license information:
|
|
20
20
|
|
|
21
21
|
react/cjs/react.production.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@necto-react/hooks",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Necto's standard library for providing utility hooks for React applications.",
|
|
6
6
|
"files": [
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"defu": "^6.1.4",
|
|
42
42
|
"react-aria": "^3.39.0",
|
|
43
43
|
"std-env": "^3.9.0",
|
|
44
|
-
"@necto
|
|
44
|
+
"@necto/dom": "1.6.3",
|
|
45
|
+
"@necto-react/helpers": "2.6.3",
|
|
46
|
+
"@necto-react/types": "2.4.0",
|
|
45
47
|
"@necto/id": "1.6.3",
|
|
46
48
|
"@necto/mergers": "1.5.0",
|
|
47
|
-
"@necto/dom": "1.6.2",
|
|
48
|
-
"@necto-react/types": "2.4.0",
|
|
49
49
|
"@necto/platform": "1.5.0",
|
|
50
|
-
"@necto/
|
|
51
|
-
"@necto/
|
|
50
|
+
"@necto/strings": "1.6.0",
|
|
51
|
+
"@necto/types": "1.3.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"test": "vitest",
|