@service_laboratory/auth 1.0.8 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(p,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],m):(p=typeof globalThis<"u"?globalThis:p||self,m(p.auth={},p.react))})(this,(function(p,m){"use strict";var T={exports:{}},E={};/**
1
+ (function(ce,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(ce=typeof globalThis<"u"?globalThis:ce||self,E(ce.autn={},ce.react))})(this,(function(ce,E){"use strict";function qr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=qr(E);var De={exports:{}},we={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var I;function ee(){if(I)return E;I=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(s,n,a){var f=null;if(a!==void 0&&(f=""+a),n.key!==void 0&&(f=""+n.key),"key"in n){a={};for(var g in n)g!=="key"&&(a[g]=n[g])}else a=n;return n=a.ref,{$$typeof:i,type:s,key:f,ref:n!==void 0?n:null,props:a}}return E.Fragment=r,E.jsx=t,E.jsxs=t,E}var R={};/**
9
+ */var vt;function Xr(){if(vt)return we;vt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,s,l){var f=null;if(l!==void 0&&(f=""+l),s.key!==void 0&&(f=""+s.key),"key"in s){l={};for(var m in s)m!=="key"&&(l[m]=s[m])}else l=s;return s=l.ref,{$$typeof:e,type:o,key:f,ref:s!==void 0?s:null,props:l}}return we.Fragment=r,we.jsx=t,we.jsxs=t,we}var xe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,9 +14,148 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var L;function te(){return L||(L=1,process.env.NODE_ENV!=="production"&&(function(){function i(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case he:return"Profiler";case pe:return"StrictMode";case be:return"Suspense";case Se:return"SuspenseList";case Re:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case de:return"Portal";case ve:return(e.displayName||"Context")+".Provider";case _e:return(e._context.displayName||"Context")+".Consumer";case me:var o=e.render;return e=e.displayName,e||(e=o.displayName||o.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ee:return o=e.displayName||null,o!==null?o:i(e.type)||"Memo";case q:o=e._payload,e=e._init;try{return i(e(o))}catch{}}return null}function r(e){return""+e}function t(e){try{r(e);var o=!1}catch{o=!0}if(o){o=console;var c=o.error,l=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c.call(o,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",l),r(e)}}function s(e){if(e===j)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===q)return"<...>";try{var o=i(e);return o?"<"+o+">":"<...>"}catch{return"<...>"}}function n(){var e=x.A;return e===null?null:e.getOwner()}function a(){return Error("react-stack-top-frame")}function f(e){if(X.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function g(e,o){function c(){B||(B=!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)",o))}c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}function ue(){var e=i(this.type);return H[e]||(H[e]=!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.")),e=this.props.ref,e!==void 0?e:null}function fe(e,o,c,l,h,d,C,N){return c=d.ref,e={$$typeof:J,type:e,key:o,props:d,_owner:h},(c!==void 0?c:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:ue}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function $(e,o,c,l,h,d,C,N){var u=o.children;if(u!==void 0)if(l)if(Te(u)){for(l=0;l<u.length;l++)z(u[l]);Object.freeze&&Object.freeze(u)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else z(u);if(X.call(o,"key")){u=i(e);var S=Object.keys(o).filter(function(ke){return ke!=="key"});l=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",K[u+l]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var bt;function Jr(){return bt||(bt=1,process.env.NODE_ENV!=="production"&&(function(){function e(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===le?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case y:return"Fragment";case N:return"Profiler";case O:return"StrictMode";case z:return"Suspense";case D:return"SuspenseList";case W:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case g:return"Portal";case C:return(u.displayName||"Context")+".Provider";case V:return(u._context.displayName||"Context")+".Consumer";case T:var h=u.render;return u=u.displayName,u||(u=h.displayName||h.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case M:return h=u.displayName||null,h!==null?h:e(u.type)||"Memo";case _:h=u._payload,u=u._init;try{return e(u(h))}catch{}}return null}function r(u){return""+u}function t(u){try{r(u);var h=!1}catch{h=!0}if(h){h=console;var x=h.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return x.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),r(u)}}function o(u){if(u===y)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===_)return"<...>";try{var h=e(u);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function s(){var u=ee.A;return u===null?null:u.getOwner()}function l(){return Error("react-stack-top-frame")}function f(u){if(ne.call(u,"key")){var h=Object.getOwnPropertyDescriptor(u,"key").get;if(h&&h.isReactWarning)return!1}return u.key!==void 0}function m(u,h){function x(){re||(re=!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)",h))}x.isReactWarning=!0,Object.defineProperty(u,"key",{get:x,configurable:!0})}function c(){var u=e(this.type);return X[u]||(X[u]=!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.")),u=this.props.ref,u!==void 0?u:null}function i(u,h,x,k,j,L,F,P){return x=L.ref,u={$$typeof:d,type:u,key:h,props:L,_owner:j},(x!==void 0?x:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:c}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function p(u,h,x,k,j,L,F,P){var R=h.children;if(R!==void 0)if(k)if(ve(R)){for(k=0;k<R.length;k++)a(R[k]);Object.freeze&&Object.freeze(R)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else a(R);if(ne.call(h,"key")){R=e(u);var $=Object.keys(h).filter(function(ie){return ie!=="key"});k=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",fe[R+k]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,l,u,S,u),K[u+l]=!0)}if(u=null,c!==void 0&&(t(c),u=""+c),f(o)&&(t(o.key),u=""+o.key),"key"in o){c={};for(var F in o)F!=="key"&&(c[F]=o[F])}else c=o;return u&&g(c,typeof e=="function"?e.displayName||e.name||"Unknown":e),fe(e,u,d,h,n(),c,C,N)}function z(e){typeof e=="object"&&e!==null&&e.$$typeof===J&&e._store&&(e._store.validated=1)}var y=m,J=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),_e=Symbol.for("react.consumer"),ve=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Ee=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Re=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),x=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,Te=Array.isArray,V=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(e){return e()}};var B,H={},Z=y.react_stack_bottom_frame.bind(y,a)(),Q=V(s(a)),K={};R.Fragment=j,R.jsx=function(e,o,c,l,h){var d=1e4>x.recentlyCreatedOwnerStacks++;return $(e,o,c,!1,l,h,d?Error("react-stack-top-frame"):Z,d?V(s(e)):Q)},R.jsxs=function(e,o,c,l,h){var d=1e4>x.recentlyCreatedOwnerStacks++;return $(e,o,c,!0,l,h,d?Error("react-stack-top-frame"):Z,d?V(s(e)):Q)}})()),R}var Y;function re(){return Y||(Y=1,process.env.NODE_ENV==="production"?T.exports=ee():T.exports=te()),T.exports}var U=re();function se(){const[i,r]=m.useState(0);return U.jsxs("div",{children:["login form ",i,U.jsx("button",{onClick:()=>{r(t=>t+1)},type:"button",children:"click"})]})}const b=new WeakMap,k=new WeakMap,A={current:[]};let O=!1;const w=new Set,M=new Map;function W(i){const r=Array.from(i).sort((t,s)=>t instanceof _&&t.options.deps.includes(s)?1:s instanceof _&&s.options.deps.includes(t)?-1:0);for(const t of r){if(A.current.includes(t))continue;A.current.push(t),t.recompute();const s=k.get(t);if(s)for(const n of s){const a=b.get(n);a&&W(a)}}}function ne(i){i.listeners.forEach(r=>r({prevVal:i.prevState,currentVal:i.state}))}function oe(i){i.listeners.forEach(r=>r({prevVal:i.prevState,currentVal:i.state}))}function ae(i){if(w.add(i),!O)try{for(O=!0;w.size>0;){const r=Array.from(w);w.clear();for(const t of r){const s=M.get(t)??t.prevState;t.prevState=s,ne(t)}for(const t of r){const s=b.get(t);s&&(A.current.push(t),W(s))}for(const t of r){const s=b.get(t);if(s)for(const n of s)oe(n)}}}finally{O=!1,A.current=[],M.clear()}}function ie(i){return typeof i=="function"}class D{constructor(r,t){this.listeners=new Set,this.subscribe=s=>{var n,a;this.listeners.add(s);const f=(a=(n=this.options)==null?void 0:n.onSubscribe)==null?void 0:a.call(n,s,this);return()=>{this.listeners.delete(s),f?.()}},this.prevState=r,this.state=r,this.options=t}setState(r){var t,s,n;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(r):ie(r)?this.state=r(this.prevState):this.state=r,(n=(s=this.options)==null?void 0:s.onUpdate)==null||n.call(s),ae(this)}}class _{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],s=[];for(const n of this.options.deps)t.push(n.prevState),s.push(n.state);return this.lastSeenDepValues=s,{prevDepVals:t,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,s;this.prevState=this.state;const{prevDepVals:n,currDepVals:a,prevVal:f}=this.getDepVals();this.state=this.options.fn({prevDepVals:n,currDepVals:a,prevVal:f}),(s=(t=this.options).onUpdate)==null||s.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof _&&a.checkIfRecalculationNeededDeeply();let t=!1;const s=this.lastSeenDepValues,{currDepVals:n}=this.getDepVals();for(let a=0;a<n.length;a++)if(n[a]!==s[a]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var s,n;this.listeners.add(t);const a=(n=(s=this.options).onSubscribe)==null?void 0:n.call(s,t,this);return()=>{this.listeners.delete(t),a?.()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof _)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof D){let s=b.get(t);s||(s=new Set,b.set(t,s)),s.add(this);let n=k.get(this);n||(n=new Set,k.set(this,n)),n.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof _)this.unregisterFromGraph(t.options.deps);else if(t instanceof D){const s=b.get(t);s&&s.delete(this);const n=k.get(this);n&&n.delete(t)}}}const P="Authorization",G=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),v=new D(G()),ce=new _({fn:()=>!!v.state.user?.roles.find(i=>i.name==="admin"),deps:[v]});class le{accountStore;httpClient;constructor(r){this.httpClient=r,this.accountStore=v}initAuthData(){const r=localStorage.getItem("token");r&&(this.httpClient.defaults.headers.common[P]=r)}async load(){try{const{data:r}=await this.httpClient.get("/api/auth/account/me");v.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}catch{v.setState(r=>({...r,isLoaded:!0}))}}async login(r){const t=await this.httpClient.post("/api/auth/account/login",r),{user:s,access_token:n}=t.data;return s.is_active&&this._initUserData({user:s,access_token:n}),s}register(r){return this.httpClient.post("/api/auth/account/register",r)}async activate(r){const t=await this.httpClient.post("/api/auth/account/activate",r);this._initUserData(t.data)}logout(){v.setState(()=>({...G(),isLoaded:!0})),this._clearAuthData()}startResetPassword(r){return this.httpClient.post("/api/auth/account/start-reset-password",r)}async resetPassword(r){const t=await this.httpClient.post("/api/auth/account/reset-password",r);this._initUserData(t.data)}_initUserData({user:r,access_token:t}){this._setAuthData(t),v.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(r){localStorage.setItem("token",r),this.httpClient.defaults.headers.common[P]=r}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[P]}}p.Auth=le,p.LoginForm=se,p.isAdmin=ce,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})}));
22
+ <%s key={someKey} {...props} />`,k,R,$,R),fe[R+k]=!0)}if(R=null,x!==void 0&&(t(x),R=""+x),f(h)&&(t(h.key),R=""+h.key),"key"in h){x={};for(var J in h)J!=="key"&&(x[J]=h[J])}else x=h;return R&&m(x,typeof u=="function"?u.displayName||u.name||"Unknown":u),i(u,R,L,j,s(),x,F,P)}function a(u){typeof u=="object"&&u!==null&&u.$$typeof===d&&u._store&&(u._store.validated=1)}var n=E,d=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),ee=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,ve=Array.isArray,oe=console.createTask?console.createTask:function(){return null};n={react_stack_bottom_frame:function(u){return u()}};var re,X={},te=n.react_stack_bottom_frame.bind(n,l)(),w=oe(o(l)),fe={};xe.Fragment=y,xe.jsx=function(u,h,x,k,j){var L=1e4>ee.recentlyCreatedOwnerStacks++;return p(u,h,x,!1,k,j,L?Error("react-stack-top-frame"):te,L?oe(o(u)):w)},xe.jsxs=function(u,h,x,k,j){var L=1e4>ee.recentlyCreatedOwnerStacks++;return p(u,h,x,!0,k,j,L?Error("react-stack-top-frame"):te,L?oe(o(u)):w)}})()),xe}var _t;function Zr(){return _t||(_t=1,process.env.NODE_ENV==="production"?De.exports=Xr():De.exports=Jr()),De.exports}var I=Zr(),Ye={exports:{}},Ee={};/**
23
+ * @license React
24
+ * react-jsx-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Ot;function Qr(){if(Ot)return Ee;Ot=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(o,s,l){var f=null;if(l!==void 0&&(f=""+l),s.key!==void 0&&(f=""+s.key),"key"in s){l={};for(var m in s)m!=="key"&&(l[m]=s[m])}else l=s;return s=l.ref,{$$typeof:e,type:o,key:f,ref:s!==void 0?s:null,props:l}}return Ee.Fragment=r,Ee.jsx=t,Ee.jsxs=t,Ee}var Ae={};/**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var St;function en(){return St||(St=1,process.env.NODE_ENV!=="production"&&(function(){function e(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===le?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case y:return"Fragment";case N:return"Profiler";case O:return"StrictMode";case z:return"Suspense";case D:return"SuspenseList";case W:return"Activity"}if(typeof u=="object")switch(typeof u.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),u.$$typeof){case g:return"Portal";case C:return(u.displayName||"Context")+".Provider";case V:return(u._context.displayName||"Context")+".Consumer";case T:var h=u.render;return u=u.displayName,u||(u=h.displayName||h.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case M:return h=u.displayName||null,h!==null?h:e(u.type)||"Memo";case _:h=u._payload,u=u._init;try{return e(u(h))}catch{}}return null}function r(u){return""+u}function t(u){try{r(u);var h=!1}catch{h=!0}if(h){h=console;var x=h.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&u[Symbol.toStringTag]||u.constructor.name||"Object";return x.call(h,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),r(u)}}function o(u){if(u===y)return"<>";if(typeof u=="object"&&u!==null&&u.$$typeof===_)return"<...>";try{var h=e(u);return h?"<"+h+">":"<...>"}catch{return"<...>"}}function s(){var u=ee.A;return u===null?null:u.getOwner()}function l(){return Error("react-stack-top-frame")}function f(u){if(ne.call(u,"key")){var h=Object.getOwnPropertyDescriptor(u,"key").get;if(h&&h.isReactWarning)return!1}return u.key!==void 0}function m(u,h){function x(){re||(re=!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)",h))}x.isReactWarning=!0,Object.defineProperty(u,"key",{get:x,configurable:!0})}function c(){var u=e(this.type);return X[u]||(X[u]=!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.")),u=this.props.ref,u!==void 0?u:null}function i(u,h,x,k,j,L,F,P){return x=L.ref,u={$$typeof:d,type:u,key:h,props:L,_owner:j},(x!==void 0?x:null)!==null?Object.defineProperty(u,"ref",{enumerable:!1,get:c}):Object.defineProperty(u,"ref",{enumerable:!1,value:null}),u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(u,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(u,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.defineProperty(u,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u}function p(u,h,x,k,j,L,F,P){var R=h.children;if(R!==void 0)if(k)if(ve(R)){for(k=0;k<R.length;k++)a(R[k]);Object.freeze&&Object.freeze(R)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else a(R);if(ne.call(h,"key")){R=e(u);var $=Object.keys(h).filter(function(ie){return ie!=="key"});k=0<$.length?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}",fe[R+k]||($=0<$.length?"{"+$.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
39
+ let props = %s;
40
+ <%s {...props} />
41
+ React keys must be passed directly to JSX without using spread:
42
+ let props = %s;
43
+ <%s key={someKey} {...props} />`,k,R,$,R),fe[R+k]=!0)}if(R=null,x!==void 0&&(t(x),R=""+x),f(h)&&(t(h.key),R=""+h.key),"key"in h){x={};for(var J in h)J!=="key"&&(x[J]=h[J])}else x=h;return R&&m(x,typeof u=="function"?u.displayName||u.name||"Unknown":u),i(u,R,L,j,s(),x,F,P)}function a(u){typeof u=="object"&&u!==null&&u.$$typeof===d&&u._store&&(u._store.validated=1)}var n=E,d=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),ee=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,ve=Array.isArray,oe=console.createTask?console.createTask:function(){return null};n={react_stack_bottom_frame:function(u){return u()}};var re,X={},te=n.react_stack_bottom_frame.bind(n,l)(),w=oe(o(l)),fe={};Ae.Fragment=y,Ae.jsx=function(u,h,x,k,j){var L=1e4>ee.recentlyCreatedOwnerStacks++;return p(u,h,x,!1,k,j,L?Error("react-stack-top-frame"):te,L?oe(o(u)):w)},Ae.jsxs=function(u,h,x,k,j){var L=1e4>ee.recentlyCreatedOwnerStacks++;return p(u,h,x,!0,k,j,L?Error("react-stack-top-frame"):te,L?oe(o(u)):w)}})()),Ae}var wt;function tn(){return wt||(wt=1,process.env.NODE_ENV==="production"?Ye.exports=Qr():Ye.exports=en()),Ye.exports}var G=tn();function rn(e,r=[]){let t=[];function o(l,f){const m=S.createContext(f),c=t.length;t=[...t,f];const i=a=>{const{scope:n,children:d,...g}=a,y=n?.[e]?.[c]||m,O=S.useMemo(()=>g,Object.values(g));return G.jsx(y.Provider,{value:O,children:d})};i.displayName=l+"Provider";function p(a,n){const d=n?.[e]?.[c]||m,g=S.useContext(d);if(g)return g;if(f!==void 0)return f;throw new Error(`\`${a}\` must be used within \`${l}\``)}return[i,p]}const s=()=>{const l=t.map(f=>S.createContext(f));return function(f){const m=f?.[e]||l;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:m}}),[f,m])}};return s.scopeName=e,[o,nn(s,...r)]}function nn(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const l=o.reduce((f,{useScope:m,scopeName:c})=>{const i=m(s)[`__scope${c}`];return{...f,...i}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:l}),[l])}};return t.scopeName=r.scopeName,t}function on(e){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useMemo(()=>(...t)=>r.current?.(...t),[])}var qe=globalThis?.document?S.useLayoutEffect:()=>{},Ce={exports:{}},B={};/**
44
+ * @license React
45
+ * react-dom.production.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */var xt;function sn(){if(xt)return B;xt=1;var e=E;function r(c){var i="https://react.dev/errors/"+c;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)i+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var o={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(c,i,p){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:a==null?null:""+a,children:c,containerInfo:i,implementation:p}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(c,i){if(c==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return B.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,B.createPortal=function(c,i){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(r(299));return l(c,i,null,p)},B.flushSync=function(c){var i=f.T,p=o.p;try{if(f.T=null,o.p=2,c)return c()}finally{f.T=i,o.p=p,o.d.f()}},B.preconnect=function(c,i){typeof c=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,o.d.C(c,i))},B.prefetchDNS=function(c){typeof c=="string"&&o.d.D(c)},B.preinit=function(c,i){if(typeof c=="string"&&i&&typeof i.as=="string"){var p=i.as,a=m(p,i.crossOrigin),n=typeof i.integrity=="string"?i.integrity:void 0,d=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;p==="style"?o.d.S(c,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:d}):p==="script"&&o.d.X(c,{crossOrigin:a,integrity:n,fetchPriority:d,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},B.preinitModule=function(c,i){if(typeof c=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var p=m(i.as,i.crossOrigin);o.d.M(c,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&o.d.M(c)},B.preload=function(c,i){if(typeof c=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var p=i.as,a=m(p,i.crossOrigin);o.d.L(c,p,{crossOrigin:a,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},B.preloadModule=function(c,i){if(typeof c=="string")if(i){var p=m(i.as,i.crossOrigin);o.d.m(c,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else o.d.m(c)},B.requestFormReset=function(c){o.d.r(c)},B.unstable_batchedUpdates=function(c,i){return c(i)},B.useFormState=function(c,i,p){return f.H.useFormState(c,i,p)},B.useFormStatus=function(){return f.H.useHostTransitionStatus()},B.version="19.1.1",B}var Z={};/**
52
+ * @license React
53
+ * react-dom.development.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */var Et;function an(){return Et||(Et=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function r(a){return""+a}function t(a,n,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(g);var y=!1}catch{y=!0}return y&&(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&&g[Symbol.toStringTag]||g.constructor.name||"Object"),r(g)),{$$typeof:i,key:g==null?null:""+g,children:a,containerInfo:n,implementation:d}}function o(a,n){if(a==="font")return"";if(typeof n=="string")return n==="use-credentials"?n:""}function s(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":'something with type "'+typeof a+'"'}function l(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":typeof a=="string"?JSON.stringify(a):typeof a=="number"?"`"+a+"`":'something with type "'+typeof a+'"'}function f(){var a=p.H;return a===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:
60
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
61
+ 2. You might be breaking the Rules of Hooks
62
+ 3. You might have more than one copy of React in the same app
63
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=E,c={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},i=Symbol.for("react.portal"),p=m.__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"),Z.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Z.createPortal=function(a,n){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)throw Error("Target container is not a DOM element.");return t(a,n,null,d)},Z.flushSync=function(a){var n=p.T,d=c.p;try{if(p.T=null,c.p=2,a)return a()}finally{p.T=n,c.p=d,c.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.")}},Z.preconnect=function(a,n){typeof a=="string"&&a?n!=null&&typeof n!="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.",l(n)):n!=null&&typeof n.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(n.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a)),typeof a=="string"&&(n?(n=n.crossOrigin,n=typeof n=="string"?n==="use-credentials"?n:"":void 0):n=null,c.d.C(a,n))},Z.prefetchDNS=function(a){if(typeof a!="string"||!a)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a));else if(1<arguments.length){var n=arguments[1];typeof n=="object"&&n.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`.",l(n)):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`.",l(n))}typeof a=="string"&&c.d.D(a)},Z.preinit=function(a,n){if(typeof a=="string"&&a?n==null||typeof n!="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.",l(n)):n.as!=="style"&&n.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".',l(n.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a)),typeof a=="string"&&n&&typeof n.as=="string"){var d=n.as,g=o(d,n.crossOrigin),y=typeof n.integrity=="string"?n.integrity:void 0,O=typeof n.fetchPriority=="string"?n.fetchPriority:void 0;d==="style"?c.d.S(a,typeof n.precedence=="string"?n.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:O}):d==="script"&&c.d.X(a,{crossOrigin:g,integrity:y,fetchPriority:O,nonce:typeof n.nonce=="string"?n.nonce:void 0})}},Z.preinitModule=function(a,n){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n!==void 0&&typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":n&&"as"in n&&n.as!=="script"&&(d+=" The `as` option encountered was "+l(n.as)+"."),d)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",d);else switch(d=n&&typeof n.as=="string"?n.as:"script",d){case"script":break;default:d=l(d),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)',d,a)}typeof a=="string"&&(typeof n=="object"&&n!==null?(n.as==null||n.as==="script")&&(d=o(n.as,n.crossOrigin),c.d.M(a,{crossOrigin:d,integrity:typeof n.integrity=="string"?n.integrity:void 0,nonce:typeof n.nonce=="string"?n.nonce:void 0})):n==null&&c.d.M(a))},Z.preload=function(a,n){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n==null||typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":typeof n.as=="string"&&n.as||(d+=" The `as` option encountered was "+s(n.as)+"."),d&&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',d),typeof a=="string"&&typeof n=="object"&&n!==null&&typeof n.as=="string"){d=n.as;var g=o(d,n.crossOrigin);c.d.L(a,d,{crossOrigin:g,integrity:typeof n.integrity=="string"?n.integrity:void 0,nonce:typeof n.nonce=="string"?n.nonce:void 0,type:typeof n.type=="string"?n.type:void 0,fetchPriority:typeof n.fetchPriority=="string"?n.fetchPriority:void 0,referrerPolicy:typeof n.referrerPolicy=="string"?n.referrerPolicy:void 0,imageSrcSet:typeof n.imageSrcSet=="string"?n.imageSrcSet:void 0,imageSizes:typeof n.imageSizes=="string"?n.imageSizes:void 0,media:typeof n.media=="string"?n.media:void 0})}},Z.preloadModule=function(a,n){var d="";typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n!==void 0&&typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":n&&"as"in n&&typeof n.as!="string"&&(d+=" The `as` option encountered was "+s(n.as)+"."),d&&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',d),typeof a=="string"&&(n?(d=o(n.as,n.crossOrigin),c.d.m(a,{as:typeof n.as=="string"&&n.as!=="script"?n.as:void 0,crossOrigin:d,integrity:typeof n.integrity=="string"?n.integrity:void 0})):c.d.m(a))},Z.requestFormReset=function(a){c.d.r(a)},Z.unstable_batchedUpdates=function(a,n){return a(n)},Z.useFormState=function(a,n,d){return f().useFormState(a,n,d)},Z.useFormStatus=function(){return f().useHostTransitionStatus()},Z.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Z}var kt;function ln(){if(kt)return Ce.exports;kt=1;function e(){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(e)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(e(),Ce.exports=sn()):Ce.exports=an(),Ce.exports}ln();function Tt(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function cn(...e){return r=>{let t=!1;const o=e.map(s=>{const l=Tt(s,r);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let s=0;s<o.length;s++){const l=o[s];typeof l=="function"?l():Tt(e[s],null)}}}}function Rt(e){const r=un(e),t=S.forwardRef((o,s)=>{const{children:l,...f}=o,m=S.Children.toArray(l),c=m.find(fn);if(c){const i=c.props.children,p=m.map(a=>a===c?S.Children.count(i)>1?S.Children.only(null):S.isValidElement(i)?i.props.children:null:a);return G.jsx(r,{...f,ref:s,children:S.isValidElement(i)?S.cloneElement(i,void 0,p):null})}return G.jsx(r,{...f,ref:s,children:l})});return t.displayName=`${e}.Slot`,t}var Nt=Rt("Slot");function un(e){const r=S.forwardRef((t,o)=>{const{children:s,...l}=t;if(S.isValidElement(s)){const f=mn(s),m=pn(l,s.props);return s.type!==S.Fragment&&(m.ref=o?cn(o,f):f),S.cloneElement(s,m)}return S.Children.count(s)>1?S.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var dn=Symbol("radix.slottable");function fn(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dn}function pn(e,r){const t={...r};for(const o in r){const s=e[o],l=r[o];/^on[A-Z]/.test(o)?s&&l?t[o]=(...f)=>{const m=l(...f);return s(...f),m}:s&&(t[o]=s):o==="style"?t[o]={...s,...l}:o==="className"&&(t[o]=[s,l].filter(Boolean).join(" "))}return{...e,...t}}function mn(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var gn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=gn.reduce((e,r)=>{const t=Rt(`Primitive.${r}`),o=S.forwardRef((s,l)=>{const{asChild:f,...m}=s,c=f?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),G.jsx(c,{...m,ref:l})});return o.displayName=`Primitive.${r}`,{...e,[r]:o}},{}),Xe={exports:{}},Je={};/**
64
+ * @license React
65
+ * use-sync-external-store-shim.production.js
66
+ *
67
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE file in the root directory of this source tree.
71
+ */var Dt;function yn(){if(Dt)return Je;Dt=1;var e=E;function r(a,n){return a===n&&(a!==0||1/a===1/n)||a!==a&&n!==n}var t=typeof Object.is=="function"?Object.is:r,o=e.useState,s=e.useEffect,l=e.useLayoutEffect,f=e.useDebugValue;function m(a,n){var d=n(),g=o({inst:{value:d,getSnapshot:n}}),y=g[0].inst,O=g[1];return l(function(){y.value=d,y.getSnapshot=n,c(y)&&O({inst:y})},[a,d,n]),s(function(){return c(y)&&O({inst:y}),a(function(){c(y)&&O({inst:y})})},[a]),f(d),d}function c(a){var n=a.getSnapshot;a=a.value;try{var d=n();return!t(a,d)}catch{return!0}}function i(a,n){return n()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:m;return Je.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Je}var At={};/**
72
+ * @license React
73
+ * use-sync-external-store-shim.development.js
74
+ *
75
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
76
+ *
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */var Ct;function hn(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}function r(d,g){p||s.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!a){var O=g();l(y,O)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),a=!0)}O=f({inst:{value:y,getSnapshot:g}});var N=O[0].inst,V=O[1];return c(function(){N.value=y,N.getSnapshot=g,t(N)&&V({inst:N})},[d,y,g]),m(function(){return t(N)&&V({inst:N}),d(function(){t(N)&&V({inst:N})})},[d]),i(y),y}function t(d){var g=d.getSnapshot;d=d.value;try{var y=g();return!l(d,y)}catch{return!0}}function o(d,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=E,l=typeof Object.is=="function"?Object.is:e,f=s.useState,m=s.useEffect,c=s.useLayoutEffect,i=s.useDebugValue,p=!1,a=!1,n=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;At.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),At}var jt;function vn(){return jt||(jt=1,process.env.NODE_ENV==="production"?Xe.exports=yn():Xe.exports=hn()),Xe.exports}var bn=vn();function _n(){return bn.useSyncExternalStore(On,()=>!0,()=>!1)}function On(){return()=>{}}var Ze="Avatar",[Sn,Rs]=rn(Ze),[wn,Lt]=Sn(Ze),xn=S.forwardRef((e,r)=>{const{__scopeAvatar:t,...o}=e,[s,l]=S.useState("idle");return G.jsx(wn,{scope:t,imageLoadingStatus:s,onImageLoadingStatusChange:l,children:G.jsx(je.span,{...o,ref:r})})});xn.displayName=Ze;var Pt="AvatarImage",En=S.forwardRef((e,r)=>{const{__scopeAvatar:t,src:o,onLoadingStatusChange:s=()=>{},...l}=e,f=Lt(Pt,t),m=Tn(o,l),c=on(i=>{s(i),f.onImageLoadingStatusChange(i)});return qe(()=>{m!=="idle"&&c(m)},[m,c]),m==="loaded"?G.jsx(je.img,{...l,ref:r,src:o}):null});En.displayName=Pt;var Mt="AvatarFallback",kn=S.forwardRef((e,r)=>{const{__scopeAvatar:t,delayMs:o,...s}=e,l=Lt(Mt,t),[f,m]=S.useState(o===void 0);return S.useEffect(()=>{if(o!==void 0){const c=window.setTimeout(()=>m(!0),o);return()=>window.clearTimeout(c)}},[o]),f&&l.imageLoadingStatus!=="loaded"?G.jsx(je.span,{...s,ref:r}):null});kn.displayName=Mt;function Vt(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Tn(e,{referrerPolicy:r,crossOrigin:t}){const o=_n(),s=S.useRef(null),l=o?(s.current||(s.current=new window.Image),s.current):null,[f,m]=S.useState(()=>Vt(l,e));return qe(()=>{m(Vt(l,e))},[l,e]),qe(()=>{const c=a=>()=>{m(a)};if(!l)return;const i=c("loaded"),p=c("error");return l.addEventListener("load",i),l.addEventListener("error",p),r&&(l.referrerPolicy=r),typeof t=="string"&&(l.crossOrigin=t),()=>{l.removeEventListener("load",i),l.removeEventListener("error",p)}},[l,t,r]),f}function It(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=It(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function zt(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=It(e))&&(o&&(o+=" "),o+=r);return o}const Qe="-",Rn=e=>{const r=Dn(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{const l=s.split(Qe);return l[0]===""&&l.length!==1&&l.shift(),Ut(l,r)||Nn(s)},getConflictingClassGroupIds:(s,l)=>{const f=t[s]||[];return l&&o[s]?[...f,...o[s]]:f}}},Ut=(e,r)=>{if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),s=o?Ut(e.slice(1),o):void 0;if(s)return s;if(r.validators.length===0)return;const l=e.join(Qe);return r.validators.find(({validator:f})=>f(l))?.classGroupId},$t=/^\[(.+)\]$/,Nn=e=>{if($t.test(e)){const r=$t.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},Dn=e=>{const{theme:r,classGroups:t}=e,o={nextPart:new Map,validators:[]};for(const s in t)et(t[s],o,s,r);return o},et=(e,r,t,o)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?r:Gt(r,s);l.classGroupId=t;return}if(typeof s=="function"){if(An(s)){et(s(o),r,t,o);return}r.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([l,f])=>{et(f,Gt(r,l),t,o)})})},Gt=(e,r)=>{let t=e;return r.split(Qe).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},An=e=>e.isThemeGetter,Cn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const s=(l,f)=>{t.set(l,f),r++,r>e&&(r=0,o=t,t=new Map)};return{get(l){let f=t.get(l);if(f!==void 0)return f;if((f=o.get(l))!==void 0)return s(l,f),f},set(l,f){t.has(l)?t.set(l,f):s(l,f)}}},tt="!",rt=":",jn=rt.length,Ln=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=s=>{const l=[];let f=0,m=0,c=0,i;for(let g=0;g<s.length;g++){let y=s[g];if(f===0&&m===0){if(y===rt){l.push(s.slice(c,g)),c=g+jn;continue}if(y==="/"){i=g;continue}}y==="["?f++:y==="]"?f--:y==="("?m++:y===")"&&m--}const p=l.length===0?s:s.substring(c),a=Pn(p),n=a!==p,d=i&&i>c?i-c:void 0;return{modifiers:l,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:d}};if(r){const s=r+rt,l=o;o=f=>f.startsWith(s)?l(f.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(t){const s=o;o=l=>t({className:l,parseClassName:s})}return o},Pn=e=>e.endsWith(tt)?e.substring(0,e.length-1):e.startsWith(tt)?e.substring(1):e,Mn=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;const o=[];let s=[];return t.forEach(l=>{l[0]==="["||r[l]?(o.push(...s.sort(),l),s=[]):s.push(l)}),o.push(...s.sort()),o}},Vn=e=>({cache:Cn(e.cacheSize),parseClassName:Ln(e),sortModifiers:Mn(e),...Rn(e)}),In=/\s+/,zn=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:l}=r,f=[],m=e.trim().split(In);let c="";for(let i=m.length-1;i>=0;i-=1){const p=m[i],{isExternal:a,modifiers:n,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:y}=t(p);if(a){c=p+(c.length>0?" "+c:c);continue}let O=!!y,N=o(O?g.substring(0,y):g);if(!N){if(!O){c=p+(c.length>0?" "+c:c);continue}if(N=o(g),!N){c=p+(c.length>0?" "+c:c);continue}O=!1}const V=l(n).join(":"),C=d?V+tt:V,T=C+N;if(f.includes(T))continue;f.push(T);const z=s(N,O);for(let D=0;D<z.length;++D){const M=z[D];f.push(C+M)}c=p+(c.length>0?" "+c:c)}return c};function Un(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Ft(r))&&(o&&(o+=" "),o+=t);return o}const Ft=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Ft(e[o]))&&(t&&(t+=" "),t+=r);return t};function $n(e,...r){let t,o,s,l=f;function f(c){const i=r.reduce((p,a)=>a(p),e());return t=Vn(i),o=t.cache.get,s=t.cache.set,l=m,m(c)}function m(c){const i=o(c);if(i)return i;const p=zn(c,t);return s(c,p),p}return function(){return l(Un.apply(null,arguments))}}const H=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},Ht=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gn=/^\d+\/\d+$/,Fn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Kn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,be=e=>Gn.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>!!e&&Number.isInteger(Number(e)),nt=e=>e.endsWith("%")&&A(e.slice(0,-1)),ue=e=>Fn.test(e),Yn=()=>!0,qn=e=>Hn.test(e)&&!Wn.test(e),Kt=()=>!1,Xn=e=>Kn.test(e),Jn=e=>Bn.test(e),Zn=e=>!v(e)&&!b(e),Qn=e=>_e(e,Jt,Kt),v=e=>Ht.test(e),me=e=>_e(e,Zt,qn),ot=e=>_e(e,oo,A),Bt=e=>_e(e,qt,Kt),eo=e=>_e(e,Xt,Jn),Le=e=>_e(e,Qt,Xn),b=e=>Wt.test(e),ke=e=>Oe(e,Zt),to=e=>Oe(e,so),Yt=e=>Oe(e,qt),ro=e=>Oe(e,Jt),no=e=>Oe(e,Xt),Pe=e=>Oe(e,Qt,!0),_e=(e,r,t)=>{const o=Ht.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},Oe=(e,r,t=!1)=>{const o=Wt.exec(e);return o?o[1]?r(o[1]):t:!1},qt=e=>e==="position"||e==="percentage",Xt=e=>e==="image"||e==="url",Jt=e=>e==="length"||e==="size"||e==="bg-size",Zt=e=>e==="length",oo=e=>e==="number",so=e=>e==="family-name",Qt=e=>e==="shadow",io=()=>{const e=H("color"),r=H("font"),t=H("text"),o=H("font-weight"),s=H("tracking"),l=H("leading"),f=H("breakpoint"),m=H("container"),c=H("spacing"),i=H("radius"),p=H("shadow"),a=H("inset-shadow"),n=H("text-shadow"),d=H("drop-shadow"),g=H("blur"),y=H("perspective"),O=H("aspect"),N=H("ease"),V=H("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...T(),b,v],D=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],_=()=>[b,v,c],W=()=>[be,"full","auto",..._()],le=()=>[pe,"none","subgrid",b,v],ee=()=>["auto",{span:["full",pe,b,v]},pe,b,v],ne=()=>[pe,"auto",b,v],ve=()=>["auto","min","max","fr",b,v],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",..._()],te=()=>[be,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],w=()=>[e,b,v],fe=()=>[...T(),Yt,Bt,{position:[b,v]}],u=()=>["no-repeat",{repeat:["","x","y","space","round"]}],h=()=>["auto","cover","contain",ro,Qn,{size:[b,v]}],x=()=>[nt,ke,me],k=()=>["","none","full",i,b,v],j=()=>["",A,ke,me],L=()=>["solid","dashed","dotted","double"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[A,nt,Yt,Bt],R=()=>["","none",g,b,v],$=()=>["none",A,b,v],J=()=>["none",A,b,v],ie=()=>[A,b,v],se=()=>[be,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ue],breakpoint:[ue],color:[Yn],container:[ue],"drop-shadow":[ue],ease:["in","out","in-out"],font:[Zn],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ue],shadow:[ue],spacing:["px",A],text:[ue],"text-shadow":[ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",be,v,b,O]}],container:["container"],columns:[{columns:[A,v,b,m]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[pe,"auto",b,v]}],basis:[{basis:[be,"full","auto",m,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[A,be,"auto","initial","none",v]}],grow:[{grow:["",A,b,v]}],shrink:[{shrink:["",A,b,v]}],order:[{order:[pe,"first","last","none",b,v]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[m,"screen",...te()]}],"min-w":[{"min-w":[m,"screen","none",...te()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",t,ke,me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,b,ot]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nt,v]}],"font-family":[{font:[to,v,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,b,v]}],"line-clamp":[{"line-clamp":[A,"none",b,ot]}],leading:[{leading:[l,..._()]}],"list-image":[{"list-image":["none",b,v]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",b,v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:[A,"from-font","auto",b,me]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[A,"auto",b,v]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b,v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b,v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:u()}],"bg-size":[{bg:h()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pe,b,v],radial:["",b,v],conic:[pe,b,v]},no,eo]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:x()}],"gradient-via-pos":[{via:x()}],"gradient-to-pos":[{to:x()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...L(),"hidden","none"]}],"divide-style":[{divide:[...L(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...L(),"none","hidden"]}],"outline-offset":[{"outline-offset":[A,b,v]}],"outline-w":[{outline:["",A,ke,me]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",p,Pe,Le]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",a,Pe,Le]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[A,me]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",n,Pe,Le]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[A,b,v]}],"mix-blend":[{"mix-blend":[...F(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":F()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[b,v]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:u()}],"mask-size":[{mask:h()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",b,v]}],filter:[{filter:["","none",b,v]}],blur:[{blur:R()}],brightness:[{brightness:[A,b,v]}],contrast:[{contrast:[A,b,v]}],"drop-shadow":[{"drop-shadow":["","none",d,Pe,Le]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",A,b,v]}],"hue-rotate":[{"hue-rotate":[A,b,v]}],invert:[{invert:["",A,b,v]}],saturate:[{saturate:[A,b,v]}],sepia:[{sepia:["",A,b,v]}],"backdrop-filter":[{"backdrop-filter":["","none",b,v]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[A,b,v]}],"backdrop-contrast":[{"backdrop-contrast":[A,b,v]}],"backdrop-grayscale":[{"backdrop-grayscale":["",A,b,v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,b,v]}],"backdrop-invert":[{"backdrop-invert":["",A,b,v]}],"backdrop-opacity":[{"backdrop-opacity":[A,b,v]}],"backdrop-saturate":[{"backdrop-saturate":[A,b,v]}],"backdrop-sepia":[{"backdrop-sepia":["",A,b,v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",b,v]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[A,"initial",b,v]}],ease:[{ease:["linear","initial",N,b,v]}],delay:[{delay:[A,b,v]}],animate:[{animate:["none",V,b,v]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,b,v]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[b,v,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b,v]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b,v]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[A,ke,me,ot]}],stroke:[{stroke:["none",...w()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ao=$n(io);function de(...e){return ao(zt(e))}const er=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tr=zt,lo=((e,r)=>t=>{var o;if(r?.variants==null)return tr(e,t?.class,t?.className);const{variants:s,defaultVariants:l}=r,f=Object.keys(s).map(i=>{const p=t?.[i],a=l?.[i];if(p===null)return null;const n=er(p)||er(a);return s[i][n]}),m=t&&Object.entries(t).reduce((i,p)=>{let[a,n]=p;return n===void 0||(i[a]=n),i},{}),c=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((i,p)=>{let{class:a,className:n,...d}=p;return Object.entries(d).every(g=>{let[y,O]=g;return Array.isArray(O)?O.includes({...l,...m}[y]):{...l,...m}[y]===O})?[...i,a,n]:i},[]);return tr(e,f,c,t?.class,t?.className)})("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function co({className:e,variant:r,size:t,asChild:o=!1,...s}){const l=o?Nt:"button";return G.jsx(l,{"data-slot":"button",className:de(lo({variant:r,size:t,className:e})),...s})}function uo({className:e,...r}){return G.jsx("div",{"data-slot":"card",className:de("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function fo({className:e,...r}){return G.jsx("div",{"data-slot":"card-header",className:de("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...r})}function po({className:e,...r}){return G.jsx("div",{"data-slot":"card-title",className:de("leading-none font-semibold",e),...r})}function mo({className:e,...r}){return G.jsx("div",{"data-slot":"card-description",className:de("text-muted-foreground text-sm",e),...r})}function go({className:e,...r}){return G.jsx("div",{"data-slot":"card-content",className:de("px-6",e),...r})}var yo="Label",rr=S.forwardRef((e,r)=>G.jsx(je.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));rr.displayName=yo;var ho=rr,vo=e=>e.type==="checkbox",Te=e=>e instanceof Date,st=e=>e==null;const nr=e=>typeof e=="object";var ge=e=>!st(e)&&!Array.isArray(e)&&nr(e)&&!Te(e),bo=e=>ge(e)&&e.target?vo(e.target)?e.target.checked:e.target.value:e,_o=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Oo=(e,r)=>e.has(_o(r)),So=e=>{const r=e.constructor&&e.constructor.prototype;return ge(r)&&r.hasOwnProperty("isPrototypeOf")},wo=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function or(e){let r;const t=Array.isArray(e),o=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(wo&&(e instanceof Blob||o))&&(t||ge(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!So(e))r=e;else for(const s in e)e.hasOwnProperty(s)&&(r[s]=or(e[s]));else return e;return r}var sr=e=>/^\w*$/.test(e),it=e=>e===void 0,xo=e=>Array.isArray(e)?e.filter(Boolean):[],ir=e=>xo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Q=(e,r,t)=>{if(!r||!ge(e))return t;const o=(sr(r)?[r]:ir(r)).reduce((s,l)=>st(s)?s:s[l],e);return it(o)||o===e?it(e[r])?t:e[r]:o},at=e=>typeof e=="boolean",ar=(e,r,t)=>{let o=-1;const s=sr(r)?[r]:ir(r),l=s.length,f=l-1;for(;++o<l;){const m=s[o];let c=t;if(o!==f){const i=e[m];c=ge(i)||Array.isArray(i)?i:isNaN(+s[o+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;e[m]=c,e=e[m]}};const lr={BLUR:"blur",CHANGE:"change"},cr={all:"all"},lt=E.createContext(null);lt.displayName="HookFormContext";const Me=()=>E.useContext(lt),Eo=e=>{const{children:r,...t}=e;return E.createElement(lt.Provider,{value:t},r)};var ko=(e,r,t,o=!0)=>{const s={defaultValues:r._defaultValues};for(const l in e)Object.defineProperty(s,l,{get:()=>{const f=l;return r._proxyFormState[f]!==cr.all&&(r._proxyFormState[f]=!o||cr.all),t&&(t[f]=!0),e[f]}});return s};const ur=typeof window<"u"?E.useLayoutEffect:E.useEffect;function dr(e){const r=Me(),{control:t=r.control,disabled:o,name:s,exact:l}=e||{},[f,m]=E.useState(t._formState),c=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ur(()=>t._subscribe({name:s,formState:c.current,exact:l,callback:i=>{!o&&m({...t._formState,...i})}}),[s,o,l]),E.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),E.useMemo(()=>ko(f,t,c.current,!1),[f,t])}var To=e=>typeof e=="string",Ro=(e,r,t,o,s)=>To(e)?Q(t,e,s):Array.isArray(e)?e.map(l=>Q(t,l)):t,fr=e=>st(e)||!nr(e);function pr(e,r,t=new WeakSet){if(fr(e)||fr(r))return e===r;if(Te(e)&&Te(r))return e.getTime()===r.getTime();const o=Object.keys(e),s=Object.keys(r);if(o.length!==s.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const l of o){const f=e[l];if(!s.includes(l))return!1;if(l!=="ref"){const m=r[l];if(Te(f)&&Te(m)||ge(f)&&ge(m)||Array.isArray(f)&&Array.isArray(m)?!pr(f,m,t):f!==m)return!1}}return!0}function No(e){const r=Me(),{control:t=r.control,name:o,defaultValue:s,disabled:l,exact:f,compute:m}=e||{},c=E.useRef(s),i=E.useRef(m),p=E.useRef(void 0);i.current=m;const a=E.useMemo(()=>t._getWatch(o,c.current),[t,o]),[n,d]=E.useState(i.current?i.current(a):a);return ur(()=>t._subscribe({name:o,formState:{values:!0},exact:f,callback:g=>{if(!l){const y=Ro(o,t._names,g.values||t._formValues,!1,c.current);if(i.current){const O=i.current(y);pr(O,p.current)||(d(O),p.current=O)}else d(y)}}}),[t,l,o,f]),E.useEffect(()=>t._removeUnmounted()),n}function Do(e){const r=Me(),{name:t,disabled:o,control:s=r.control,shouldUnregister:l,defaultValue:f}=e,m=Oo(s._names.array,t),c=E.useMemo(()=>Q(s._formValues,t,Q(s._defaultValues,t,f)),[s,t,f]),i=No({control:s,name:t,defaultValue:c,exact:!0}),p=dr({control:s,name:t,exact:!0}),a=E.useRef(e),n=E.useRef(void 0),d=E.useRef(s.register(t,{...e.rules,value:i,...at(e.disabled)?{disabled:e.disabled}:{}}));a.current=e;const g=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Q(p.errors,t)},isDirty:{enumerable:!0,get:()=>!!Q(p.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!Q(p.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!Q(p.validatingFields,t)},error:{enumerable:!0,get:()=>Q(p.errors,t)}}),[p,t]),y=E.useCallback(C=>d.current.onChange({target:{value:bo(C),name:t},type:lr.CHANGE}),[t]),O=E.useCallback(()=>d.current.onBlur({target:{value:Q(s._formValues,t),name:t},type:lr.BLUR}),[t,s._formValues]),N=E.useCallback(C=>{const T=Q(s._fields,t);T&&C&&(T._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:z=>C.setCustomValidity(z),reportValidity:()=>C.reportValidity()})},[s._fields,t]),V=E.useMemo(()=>({name:t,value:i,...at(o)||p.disabled?{disabled:p.disabled||o}:{},onChange:y,onBlur:O,ref:N}),[t,o,p.disabled,y,O,N,i]);return E.useEffect(()=>{const C=s._options.shouldUnregister||l,T=n.current;T&&T!==t&&!m&&s.unregister(T),s.register(t,{...a.current.rules,...at(a.current.disabled)?{disabled:a.current.disabled}:{}});const z=(D,M)=>{const _=Q(s._fields,D);_&&_._f&&(_._f.mount=M)};if(z(t,!0),C){const D=or(Q(s._options.defaultValues,t));ar(s._defaultValues,t,D),it(Q(s._formValues,t))&&ar(s._formValues,t,D)}return!m&&s.register(t),n.current=t,()=>{(m?C&&!s._state.action:C)?s.unregister(t):z(t,!1)}},[t,s,m,l]),E.useEffect(()=>{s._setDisabledField({disabled:o,name:t})},[o,t,s]),E.useMemo(()=>({field:V,formState:p,fieldState:g}),[V,p,g])}const Ao=e=>e.render(Do(e));function mr({className:e,...r}){return G.jsx(ho,{"data-slot":"label",className:de("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}const Co=Eo,gr=S.createContext({}),yr=({...e})=>G.jsx(gr.Provider,{value:{name:e.name},children:G.jsx(Ao,{...e})}),jo=()=>{const e=S.useContext(gr),r=S.useContext(hr),{getFieldState:t}=Me(),o=dr({name:e.name}),s=t(e.name,o);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:l}=r;return{id:l,name:e.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...s}},hr=S.createContext({});function vr({className:e,...r}){const t=S.useId();return G.jsx(hr.Provider,{value:{id:t},children:G.jsx("div",{"data-slot":"form-item",className:de("grid gap-2",e),...r})})}function br({...e}){const{error:r,formItemId:t,formDescriptionId:o,formMessageId:s}=jo();return G.jsx(Nt,{"data-slot":"form-control",id:t,"aria-describedby":r?`${o} ${s}`:`${o}`,"aria-invalid":!!r,...e})}function _r({className:e,type:r,...t}){return G.jsx("input",{type:r,"data-slot":"input",className:de("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...t})}const Se=new WeakMap,Ve=new WeakMap,Ie={current:[]};let ct=!1;const ze=new Set,Or=new Map;function Sr(e){const r=Array.from(e).sort((t,o)=>t instanceof ye&&t.options.deps.includes(o)?1:o instanceof ye&&o.options.deps.includes(t)?-1:0);for(const t of r){if(Ie.current.includes(t))continue;Ie.current.push(t),t.recompute();const o=Ve.get(t);if(o)for(const s of o){const l=Se.get(s);l&&Sr(l)}}}function Lo(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function Po(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function Mo(e){if(ze.add(e),!ct)try{for(ct=!0;ze.size>0;){const r=Array.from(ze);ze.clear();for(const t of r){const o=Or.get(t)??t.prevState;t.prevState=o,Lo(t)}for(const t of r){const o=Se.get(t);o&&(Ie.current.push(t),Sr(o))}for(const t of r){const o=Se.get(t);if(o)for(const s of o)Po(s)}}}finally{ct=!1,Ie.current=[],Or.clear()}}function Vo(e){return typeof e=="function"}class ut{constructor(r,t){this.listeners=new Set,this.subscribe=o=>{var s,l;this.listeners.add(o);const f=(l=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:l.call(s,o,this);return()=>{this.listeners.delete(o),f?.()}},this.prevState=r,this.state=r,this.options=t}setState(r){var t,o,s;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(r):Vo(r)?this.state=r(this.prevState):this.state=r,(s=(o=this.options)==null?void 0:o.onUpdate)==null||s.call(o),Mo(this)}}class ye{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],o=[];for(const s of this.options.deps)t.push(s.prevState),o.push(s.state);return this.lastSeenDepValues=o,{prevDepVals:t,currDepVals:o,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,o;this.prevState=this.state;const{prevDepVals:s,currDepVals:l,prevVal:f}=this.getDepVals();this.state=this.options.fn({prevDepVals:s,currDepVals:l,prevVal:f}),(o=(t=this.options).onUpdate)==null||o.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const l of this.options.deps)l instanceof ye&&l.checkIfRecalculationNeededDeeply();let t=!1;const o=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let l=0;l<s.length;l++)if(s[l]!==o[l]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var o,s;this.listeners.add(t);const l=(s=(o=this.options).onSubscribe)==null?void 0:s.call(o,t,this);return()=>{this.listeners.delete(t),l?.()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof ye)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof ut){let o=Se.get(t);o||(o=new Set,Se.set(t,o)),o.add(this);let s=Ve.get(this);s||(s=new Set,Ve.set(this,s)),s.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof ye)this.unregisterFromGraph(t.options.deps);else if(t instanceof ut){const o=Se.get(t);o&&o.delete(this);const s=Ve.get(this);s&&s.delete(t)}}}function Io(e){return typeof e=="function"}function wr(e,r){return Io(e)?e(r):e}const zo=Object.prototype.hasOwnProperty;function xr(e,r){if(e===r)return e;const t=r,o=Tr(e)&&Tr(t);if(!o&&!(Ue(e)&&Ue(t)))return t;const s=o?e:Er(e);if(!s)return t;const l=o?t:Er(t);if(!l)return t;const f=s.length,m=l.length,c=o?new Array(m):{};let i=0;for(let p=0;p<m;p++){const a=o?p:l[p],n=e[a],d=t[a];if(n===d){c[a]=n,(o?p<f:zo.call(e,a))&&i++;continue}if(n===null||d===null||typeof n!="object"||typeof d!="object"){c[a]=d;continue}const g=xr(n,d);c[a]=g,g===n&&i++}return f===m&&i===f?e:c}function Er(e){const r=[],t=Object.getOwnPropertyNames(e);for(const s of t){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;r.push(s)}const o=Object.getOwnPropertySymbols(e);for(const s of o){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;r.push(s)}return r}function Ue(e){if(!kr(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const t=r.prototype;return!(!kr(t)||!t.hasOwnProperty("isPrototypeOf"))}function kr(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function $e(e,r,t){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;for(let o=0,s=e.length;o<s;o++)if(!$e(e[o],r[o],t))return!1;return!0}if(Ue(e)&&Ue(r)){const o=t?.ignoreUndefined??!0;if(t?.partial){for(const f in r)if((!o||r[f]!==void 0)&&!$e(e[f],r[f],t))return!1;return!0}let s=0;if(!o)s=Object.keys(e).length;else for(const f in e)e[f]!==void 0&&s++;let l=0;for(const f in r)if((!o||r[f]!==void 0)&&(l++,l>s||!$e(e[f],r[f],t)))return!1;return s===l}return!1}function Ge(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function Uo(e,r,t){return Ge(e,t)===Ge(r,t)}const $o="Error preloading route! ☝️";var Go=process.env.NODE_ENV==="production";function Fo(e,r){if(!Go){if(e)return;var t="Warning: "+r;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}var Fe={exports:{}},dt={},He={exports:{}},ft={};/**
80
+ * @license React
81
+ * use-sync-external-store-shim.production.js
82
+ *
83
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
84
+ *
85
+ * This source code is licensed under the MIT license found in the
86
+ * LICENSE file in the root directory of this source tree.
87
+ */var Rr;function Ho(){if(Rr)return ft;Rr=1;var e=E;function r(a,n){return a===n&&(a!==0||1/a===1/n)||a!==a&&n!==n}var t=typeof Object.is=="function"?Object.is:r,o=e.useState,s=e.useEffect,l=e.useLayoutEffect,f=e.useDebugValue;function m(a,n){var d=n(),g=o({inst:{value:d,getSnapshot:n}}),y=g[0].inst,O=g[1];return l(function(){y.value=d,y.getSnapshot=n,c(y)&&O({inst:y})},[a,d,n]),s(function(){return c(y)&&O({inst:y}),a(function(){c(y)&&O({inst:y})})},[a]),f(d),d}function c(a){var n=a.getSnapshot;a=a.value;try{var d=n();return!t(a,d)}catch{return!0}}function i(a,n){return n()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:m;return ft.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,ft}var pt={};/**
88
+ * @license React
89
+ * use-sync-external-store-shim.development.js
90
+ *
91
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
92
+ *
93
+ * This source code is licensed under the MIT license found in the
94
+ * LICENSE file in the root directory of this source tree.
95
+ */var Nr;function Wo(){return Nr||(Nr=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}function r(d,g){p||s.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!a){var O=g();l(y,O)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),a=!0)}O=f({inst:{value:y,getSnapshot:g}});var N=O[0].inst,V=O[1];return c(function(){N.value=y,N.getSnapshot=g,t(N)&&V({inst:N})},[d,y,g]),m(function(){return t(N)&&V({inst:N}),d(function(){t(N)&&V({inst:N})})},[d]),i(y),y}function t(d){var g=d.getSnapshot;d=d.value;try{var y=g();return!l(d,y)}catch{return!0}}function o(d,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=E,l=typeof Object.is=="function"?Object.is:e,f=s.useState,m=s.useEffect,c=s.useLayoutEffect,i=s.useDebugValue,p=!1,a=!1,n=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:r;pt.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:n,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),pt}var Dr;function Ar(){return Dr||(Dr=1,process.env.NODE_ENV==="production"?He.exports=Ho():He.exports=Wo()),He.exports}/**
96
+ * @license React
97
+ * use-sync-external-store-shim/with-selector.production.js
98
+ *
99
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
100
+ *
101
+ * This source code is licensed under the MIT license found in the
102
+ * LICENSE file in the root directory of this source tree.
103
+ */var Cr;function Ko(){if(Cr)return dt;Cr=1;var e=E,r=Ar();function t(i,p){return i===p&&(i!==0||1/i===1/p)||i!==i&&p!==p}var o=typeof Object.is=="function"?Object.is:t,s=r.useSyncExternalStore,l=e.useRef,f=e.useEffect,m=e.useMemo,c=e.useDebugValue;return dt.useSyncExternalStoreWithSelector=function(i,p,a,n,d){var g=l(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=m(function(){function N(D){if(!V){if(V=!0,C=D,D=n(D),d!==void 0&&y.hasValue){var M=y.value;if(d(M,D))return T=M}return T=D}if(M=T,o(C,D))return M;var _=n(D);return d!==void 0&&d(M,_)?(C=D,M):(C=D,T=_)}var V=!1,C,T,z=a===void 0?null:a;return[function(){return N(p())},z===null?void 0:function(){return N(z())}]},[p,a,n,d]);var O=s(i,g[0],g[1]);return f(function(){y.hasValue=!0,y.value=O},[O]),c(O),O},dt}var mt={};/**
104
+ * @license React
105
+ * use-sync-external-store-shim/with-selector.development.js
106
+ *
107
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
108
+ *
109
+ * This source code is licensed under the MIT license found in the
110
+ * LICENSE file in the root directory of this source tree.
111
+ */var jr;function Bo(){return jr||(jr=1,process.env.NODE_ENV!=="production"&&(function(){function e(i,p){return i===p&&(i!==0||1/i===1/p)||i!==i&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=E,t=Ar(),o=typeof Object.is=="function"?Object.is:e,s=t.useSyncExternalStore,l=r.useRef,f=r.useEffect,m=r.useMemo,c=r.useDebugValue;mt.useSyncExternalStoreWithSelector=function(i,p,a,n,d){var g=l(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=m(function(){function N(D){if(!V){if(V=!0,C=D,D=n(D),d!==void 0&&y.hasValue){var M=y.value;if(d(M,D))return T=M}return T=D}if(M=T,o(C,D))return M;var _=n(D);return d!==void 0&&d(M,_)?(C=D,M):(C=D,T=_)}var V=!1,C,T,z=a===void 0?null:a;return[function(){return N(p())},z===null?void 0:function(){return N(z())}]},[p,a,n,d]);var O=s(i,g[0],g[1]);return f(function(){y.hasValue=!0,y.value=O},[O]),c(O),O},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),mt}var Lr;function Yo(){return Lr||(Lr=1,process.env.NODE_ENV==="production"?Fe.exports=Ko():Fe.exports=Bo()),Fe.exports}var qo=Yo();function Xo(e,r=t=>t){return qo.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,Jo)}function Jo(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,s]of e)if(!r.has(o)||!Object.is(s,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();const t=Pr(e);if(t.length!==Pr(r).length)return!1;for(let o=0;o<t.length;o++)if(!Object.prototype.hasOwnProperty.call(r,t[o])||!Object.is(e[t[o]],r[t[o]]))return!1;return!0}function Pr(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const gt=S.createContext(null);function Zo(){return typeof document>"u"?gt:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=gt,gt)}function Mr(e){const r=S.useContext(Zo());return Fo(!((e?.warn??!0)&&!r),"useRouter must be used inside a <RouterProvider> component!"),r}function Vr(e){const r=Mr({warn:e?.router===void 0}),t=e?.router||r,o=E.useRef(void 0);return Xo(t.__store,s=>{if(e?.select){if(e.structuralSharing??t.options.defaultStructuralSharing){const l=xr(o.current,e.select(s));return o.current=l,l}return e.select(s)}return s})}var We={exports:{}},Y={};/**
112
+ * @license React
113
+ * react-dom.production.js
114
+ *
115
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
116
+ *
117
+ * This source code is licensed under the MIT license found in the
118
+ * LICENSE file in the root directory of this source tree.
119
+ */var Ir;function Qo(){if(Ir)return Y;Ir=1;var e=E;function r(c){var i="https://react.dev/errors/"+c;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)i+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+c+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var o={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},s=Symbol.for("react.portal");function l(c,i,p){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:a==null?null:""+a,children:c,containerInfo:i,implementation:p}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(c,i){if(c==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return Y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Y.createPortal=function(c,i){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(r(299));return l(c,i,null,p)},Y.flushSync=function(c){var i=f.T,p=o.p;try{if(f.T=null,o.p=2,c)return c()}finally{f.T=i,o.p=p,o.d.f()}},Y.preconnect=function(c,i){typeof c=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,o.d.C(c,i))},Y.prefetchDNS=function(c){typeof c=="string"&&o.d.D(c)},Y.preinit=function(c,i){if(typeof c=="string"&&i&&typeof i.as=="string"){var p=i.as,a=m(p,i.crossOrigin),n=typeof i.integrity=="string"?i.integrity:void 0,d=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;p==="style"?o.d.S(c,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:d}):p==="script"&&o.d.X(c,{crossOrigin:a,integrity:n,fetchPriority:d,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},Y.preinitModule=function(c,i){if(typeof c=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var p=m(i.as,i.crossOrigin);o.d.M(c,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&o.d.M(c)},Y.preload=function(c,i){if(typeof c=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var p=i.as,a=m(p,i.crossOrigin);o.d.L(c,p,{crossOrigin:a,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},Y.preloadModule=function(c,i){if(typeof c=="string")if(i){var p=m(i.as,i.crossOrigin);o.d.m(c,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else o.d.m(c)},Y.requestFormReset=function(c){o.d.r(c)},Y.unstable_batchedUpdates=function(c,i){return c(i)},Y.useFormState=function(c,i,p){return f.H.useFormState(c,i,p)},Y.useFormStatus=function(){return f.H.useHostTransitionStatus()},Y.version="19.1.1",Y}var q={};/**
120
+ * @license React
121
+ * react-dom.development.js
122
+ *
123
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
124
+ *
125
+ * This source code is licensed under the MIT license found in the
126
+ * LICENSE file in the root directory of this source tree.
127
+ */var zr;function es(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function r(a){return""+a}function t(a,n,d){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(g);var y=!1}catch{y=!0}return y&&(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&&g[Symbol.toStringTag]||g.constructor.name||"Object"),r(g)),{$$typeof:i,key:g==null?null:""+g,children:a,containerInfo:n,implementation:d}}function o(a,n){if(a==="font")return"";if(typeof n=="string")return n==="use-credentials"?n:""}function s(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":'something with type "'+typeof a+'"'}function l(a){return a===null?"`null`":a===void 0?"`undefined`":a===""?"an empty string":typeof a=="string"?JSON.stringify(a):typeof a=="number"?"`"+a+"`":'something with type "'+typeof a+'"'}function f(){var a=p.H;return a===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:
128
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
129
+ 2. You might be breaking the Rules of Hooks
130
+ 3. You might have more than one copy of React in the same app
131
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=E,c={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},i=Symbol.for("react.portal"),p=m.__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"),q.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,q.createPortal=function(a,n){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)throw Error("Target container is not a DOM element.");return t(a,n,null,d)},q.flushSync=function(a){var n=p.T,d=c.p;try{if(p.T=null,c.p=2,a)return a()}finally{p.T=n,c.p=d,c.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.")}},q.preconnect=function(a,n){typeof a=="string"&&a?n!=null&&typeof n!="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.",l(n)):n!=null&&typeof n.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(n.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a)),typeof a=="string"&&(n?(n=n.crossOrigin,n=typeof n=="string"?n==="use-credentials"?n:"":void 0):n=null,c.d.C(a,n))},q.prefetchDNS=function(a){if(typeof a!="string"||!a)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a));else if(1<arguments.length){var n=arguments[1];typeof n=="object"&&n.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`.",l(n)):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`.",l(n))}typeof a=="string"&&c.d.D(a)},q.preinit=function(a,n){if(typeof a=="string"&&a?n==null||typeof n!="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.",l(n)):n.as!=="style"&&n.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".',l(n.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",s(a)),typeof a=="string"&&n&&typeof n.as=="string"){var d=n.as,g=o(d,n.crossOrigin),y=typeof n.integrity=="string"?n.integrity:void 0,O=typeof n.fetchPriority=="string"?n.fetchPriority:void 0;d==="style"?c.d.S(a,typeof n.precedence=="string"?n.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:O}):d==="script"&&c.d.X(a,{crossOrigin:g,integrity:y,fetchPriority:O,nonce:typeof n.nonce=="string"?n.nonce:void 0})}},q.preinitModule=function(a,n){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n!==void 0&&typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":n&&"as"in n&&n.as!=="script"&&(d+=" The `as` option encountered was "+l(n.as)+"."),d)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",d);else switch(d=n&&typeof n.as=="string"?n.as:"script",d){case"script":break;default:d=l(d),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)',d,a)}typeof a=="string"&&(typeof n=="object"&&n!==null?(n.as==null||n.as==="script")&&(d=o(n.as,n.crossOrigin),c.d.M(a,{crossOrigin:d,integrity:typeof n.integrity=="string"?n.integrity:void 0,nonce:typeof n.nonce=="string"?n.nonce:void 0})):n==null&&c.d.M(a))},q.preload=function(a,n){var d="";if(typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n==null||typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":typeof n.as=="string"&&n.as||(d+=" The `as` option encountered was "+s(n.as)+"."),d&&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',d),typeof a=="string"&&typeof n=="object"&&n!==null&&typeof n.as=="string"){d=n.as;var g=o(d,n.crossOrigin);c.d.L(a,d,{crossOrigin:g,integrity:typeof n.integrity=="string"?n.integrity:void 0,nonce:typeof n.nonce=="string"?n.nonce:void 0,type:typeof n.type=="string"?n.type:void 0,fetchPriority:typeof n.fetchPriority=="string"?n.fetchPriority:void 0,referrerPolicy:typeof n.referrerPolicy=="string"?n.referrerPolicy:void 0,imageSrcSet:typeof n.imageSrcSet=="string"?n.imageSrcSet:void 0,imageSizes:typeof n.imageSizes=="string"?n.imageSizes:void 0,media:typeof n.media=="string"?n.media:void 0})}},q.preloadModule=function(a,n){var d="";typeof a=="string"&&a||(d+=" The `href` argument encountered was "+s(a)+"."),n!==void 0&&typeof n!="object"?d+=" The `options` argument encountered was "+s(n)+".":n&&"as"in n&&typeof n.as!="string"&&(d+=" The `as` option encountered was "+s(n.as)+"."),d&&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',d),typeof a=="string"&&(n?(d=o(n.as,n.crossOrigin),c.d.m(a,{as:typeof n.as=="string"&&n.as!=="script"?n.as:void 0,crossOrigin:d,integrity:typeof n.integrity=="string"?n.integrity:void 0})):c.d.m(a))},q.requestFormReset=function(a){c.d.r(a)},q.unstable_batchedUpdates=function(a,n){return a(n)},q.useFormState=function(a,n,d){return f().useFormState(a,n,d)},q.useFormStatus=function(){return f().useHostTransitionStatus()},q.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),q}var Ur;function ts(){if(Ur)return We.exports;Ur=1;function e(){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(e)}catch(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(e(),We.exports=Qo()):We.exports=es(),We.exports}var rs=ts();function ns(e,r,t={},o={}){S.useEffect(()=>{if(!e.current||o.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([l])=>{r(l)},t);return s.observe(e.current),()=>{s.disconnect()}},[r,t,o.disabled,e])}function os(e){const r=S.useRef(null);return S.useImperativeHandle(e,()=>r.current,[]),r}function ss(e,r){const t=Mr(),[o,s]=S.useState(!1),l=S.useRef(!1),f=os(r),{activeProps:m,inactiveProps:c,activeOptions:i,to:p,preload:a,preloadDelay:n,hashScrollIntoView:d,replace:g,startTransition:y,resetScroll:O,viewTransition:N,children:V,target:C,disabled:T,style:z,className:D,onClick:M,onFocus:_,onMouseEnter:W,onMouseLeave:le,onTouchStart:ee,ignoreBlocker:ne,params:ve,search:oe,hash:re,state:X,mask:te,reloadDocument:w,unsafeRelative:fe,from:u,_fromLocation:h,...x}=e,k=Vr({select:U=>U.location.search,structuralSharing:!0}),j=e.from,L=S.useMemo(()=>({...e,from:j}),[t,k,j,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),F=S.useMemo(()=>t.buildLocation({...L}),[t,L]),P=S.useMemo(()=>{if(T)return;let U=F.maskedLocation?F.maskedLocation.url:F.url,K=!1;return t.origin&&(U.startsWith(t.origin)?U=U.replace(t.origin,"")||"/":K=!0),{href:U,external:K}},[T,F.maskedLocation,F.url,t.origin]),R=S.useMemo(()=>{if(P?.external)return P.href;try{return new URL(p),p}catch{}},[p,P]),$=e.reloadDocument||R?!1:a??t.options.defaultPreload,J=n??t.options.defaultPreloadDelay??0,ie=Vr({select:U=>{if(R)return!1;if(i?.exact){if(!Uo(U.location.pathname,F.pathname,t.basepath))return!1}else{const K=Ge(U.location.pathname,t.basepath),ae=Ge(F.pathname,t.basepath);if(!(K.startsWith(ae)&&(K.length===ae.length||K[ae.length]==="/")))return!1}return(i?.includeSearch??!0)&&!$e(U.location.search,F.search,{partial:!i?.exact,ignoreUndefined:!i?.explicitUndefined})?!1:i?.includeHash?U.location.hash===F.hash:!0}}),se=S.useCallback(()=>{t.preloadRoute({...L}).catch(U=>{console.warn(U),console.warn($o)})},[t,L]),ws=S.useCallback(U=>{U?.isIntersecting&&se()},[se]);ns(f,ws,us,{disabled:!!T||$!=="viewport"}),S.useEffect(()=>{l.current||!T&&$==="render"&&(se(),l.current=!0)},[T,se,$]);const xs=U=>{const K=U.currentTarget.target,ae=C!==void 0?C:K;if(!T&&!fs(U)&&!U.defaultPrevented&&(!ae||ae==="_self")&&U.button===0){U.preventDefault(),rs.flushSync(()=>{s(!0)});const Yr=t.subscribe("onResolved",()=>{Yr(),s(!1)});t.navigate({...L,replace:g,resetScroll:O,hashScrollIntoView:d,startTransition:y,viewTransition:N,ignoreBlocker:ne})}};if(R)return{...x,ref:f,href:R,...V&&{children:V},...C&&{target:C},...T&&{disabled:T},...z&&{style:z},...D&&{className:D},...M&&{onClick:M},..._&&{onFocus:_},...W&&{onMouseEnter:W},...le&&{onMouseLeave:le},...ee&&{onTouchStart:ee}};const Wr=U=>{T||$&&se()},Es=Wr,ks=U=>{if(!(T||!$))if(!J)se();else{const K=U.target;if(Re.has(K))return;const ae=setTimeout(()=>{Re.delete(K),se()},J);Re.set(K,ae)}},Ts=U=>{if(T||!$||!J)return;const K=U.target,ae=Re.get(K);ae&&(clearTimeout(ae),Re.delete(K))},Ke=ie?wr(m,{})??is:yt,Be=ie?yt:wr(c,{})??yt,Kr=[D,Ke.className,Be.className].filter(Boolean).join(" "),Br=(z||Ke.style||Be.style)&&{...z,...Ke.style,...Be.style};return{...x,...Ke,...Be,href:P?.href,ref:f,onClick:Ne([M,xs]),onFocus:Ne([_,Wr]),onMouseEnter:Ne([W,ks]),onMouseLeave:Ne([le,Ts]),onTouchStart:Ne([ee,Es]),disabled:!!T,target:C,...Br&&{style:Br},...Kr&&{className:Kr},...T&&as,...ie&&ls,...o&&cs}}const yt={},is={className:"active"},as={role:"link","aria-disabled":!0},ls={"data-status":"active","aria-current":"page"},cs={"data-transitioning":"transitioning"},Re=new WeakMap,us={rootMargin:"100px"},Ne=e=>r=>{for(const t of e)if(t){if(r.defaultPrevented)return;t(r)}},ds=S.forwardRef((e,r)=>{const{_asChild:t,...o}=e,{type:s,ref:l,...f}=ss(o,r),m=typeof o.children=="function"?o.children({isActive:f["data-status"]==="active"}):o.children;return t===void 0&&delete f.disabled,S.createElement(t||"a",{...f,ref:l},m)});function fs(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}/**
132
+ * @license lucide-react v0.544.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const ps=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ms=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,o)=>o?o.toUpperCase():t.toLowerCase()),$r=e=>{const r=ms(e);return r.charAt(0).toUpperCase()+r.slice(1)},Gr=(...e)=>e.filter((r,t,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===t).join(" ").trim(),gs=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
137
+ * @license lucide-react v0.544.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */var ys={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
142
+ * @license lucide-react v0.544.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const hs=E.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:s="",children:l,iconNode:f,...m},c)=>E.createElement("svg",{ref:c,...ys,width:r,height:r,stroke:e,strokeWidth:o?Number(t)*24/Number(r):t,className:Gr("lucide",s),...!l&&!gs(m)&&{"aria-hidden":"true"},...m},[...f.map(([i,p])=>E.createElement(i,p)),...Array.isArray(l)?l:[l]]));/**
147
+ * @license lucide-react v0.544.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const Fr=(e,r)=>{const t=E.forwardRef(({className:o,...s},l)=>E.createElement(hs,{ref:l,iconNode:r,className:Gr(`lucide-${ps($r(e))}`,`lucide-${e}`,o),...s}));return t.displayName=$r(e),t};/**
152
+ * @license lucide-react v0.544.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const vs=Fr("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
157
+ * @license lucide-react v0.544.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const bs=Fr("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);function _s(e){const[r,t]=E.useState(!1);return I.jsx("div",{className:"flex flex-col gap-6",children:I.jsxs(uo,{children:[I.jsxs(fo,{children:[I.jsx(po,{className:"text-2xl",children:e.loginFormTitle}),I.jsx(mo,{children:e.loginFormDescription})]}),I.jsx(go,{children:I.jsx(Co,{...e.form,children:I.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:I.jsxs("div",{className:"flex flex-col gap-6",children:[I.jsxs("div",{className:"grid gap-2",children:[I.jsx(mr,{htmlFor:"email",children:e.emailLabel}),I.jsx(yr,{control:e.form.control,name:"email",render:({field:o})=>I.jsx(vr,{children:I.jsx(br,{children:I.jsx(_r,{id:"email",type:"email",placeholder:"m@example.com",required:!0,...o})})})})]}),I.jsxs("div",{className:"grid gap-2",children:[I.jsxs("div",{className:"flex items-center",children:[I.jsx(mr,{htmlFor:"password",children:e.passwordLabel}),I.jsx(ds,{className:"ml-auto inline-block text-sm underline-offset-4 hover:underline",to:"/auth/start-reset-password",children:e.forgotPasswordMessage})]}),I.jsx(yr,{control:e.form.control,name:"password",render:({field:o})=>I.jsx(vr,{children:I.jsx(br,{className:"relative",children:I.jsxs("div",{className:"relative",children:[r?I.jsx(vs,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!1)}}):I.jsx(bs,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!0)}}),I.jsx(_r,{type:r?"text":"password",placeholder:"********",...o,className:"pr-10"})]})})})})]}),I.jsx(co,{type:"submit",className:"w-full",children:e.submitButtonLabel})]})})})})]})})}const ht="Authorization",Hr=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),he=new ut(Hr()),Os=new ye({fn:()=>!!he.state.user?.roles.find(e=>e.name==="admin"),deps:[he]});class Ss{accountStore;httpClient;constructor(r){this.httpClient=r,this.accountStore=he}initAuthData(){const r=localStorage.getItem("token");r&&(this.httpClient.defaults.headers.common[ht]=r)}async load(){try{const{data:r}=await this.httpClient.get("/api/auth/account/me");he.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}catch{he.setState(r=>({...r,isLoaded:!0}))}}async login(r){const t=await this.httpClient.post("/api/auth/account/login",r),{user:o,access_token:s}=t.data;return o.is_active&&this._initUserData({user:o,access_token:s}),o}register(r){return this.httpClient.post("/api/auth/account/register",r)}async activate(r){const t=await this.httpClient.post("/api/auth/account/activate",r);this._initUserData(t.data)}logout(){he.setState(()=>({...Hr(),isLoaded:!0})),this._clearAuthData()}startResetPassword(r){return this.httpClient.post("/api/auth/account/start-reset-password",r)}async resetPassword(r){const t=await this.httpClient.post("/api/auth/account/reset-password",r);this._initUserData(t.data)}_initUserData({user:r,access_token:t}){this._setAuthData(t),he.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(r){localStorage.setItem("token",r),this.httpClient.defaults.headers.common[ht]=r}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[ht]}}ce.Auth=Ss,ce.LoginForm=_s,ce.isAdmin=Os,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@service_laboratory/auth",
3
- "version": "1.0.8",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@service_laboratory/ui": "0.0.5",
23
+ "@service_laboratory/ui": "1.0.1",
24
24
  "@tanstack/react-router": "^1.132.0",
25
25
  "@tanstack/store": "^0.7.4",
26
26
  "axios": "^1.11.0",