UNPKG

@canaia/ui-kit

Version:

Un kit de interfaz de usuario modular y personalizable basado en React y Chakra UI, con soporte para Storybook para la documentación y pruebas de componentes.

30 lines (28 loc) • 1.98 MB
(function(mA,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],M):(mA=typeof globalThis<"u"?globalThis:mA||self,M(mA.CanaiaUiKit={},mA.React,mA.ReactDOM))})(this,function(mA,M,Yr){"use strict";var JgA=Object.defineProperty;var PgA=(mA,M,Yr)=>M in mA?JgA(mA,M,{enumerable:!0,configurable:!0,writable:!0,value:Yr}):mA[M]=Yr;var hA=(mA,M,Yr)=>PgA(mA,typeof M!="symbol"?M+"":M,Yr);var YT,zT,OT,jT,XT,LT,_T,KT,qT,$T,Ab,eb,tb,nb,ib,rb,ob,pu;function ub(A){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const t in A)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(A,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>A[t]})}}return e.default=A,Object.freeze(e)}const SA=ub(M);var or=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Go(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var xu={exports:{}},Bs={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var uh;function Eb(){if(uh)return Bs;uh=1;var A=M,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function o(a,s,l){var c,g={},B=null,u=null;l!==void 0&&(B=""+l),s.key!==void 0&&(B=""+s.key),s.ref!==void 0&&(u=s.ref);for(c in s)n.call(s,c)&&!r.hasOwnProperty(c)&&(g[c]=s[c]);if(a&&a.defaultProps)for(c in s=a.defaultProps,s)g[c]===void 0&&(g[c]=s[c]);return{$$typeof:e,type:a,key:B,ref:u,props:g,_owner:i.current}}return Bs.Fragment=t,Bs.jsx=o,Bs.jsxs=o,Bs}var us={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Eh;function Ib(){return Eh||(Eh=1,process.env.NODE_ENV!=="production"&&function(){var A=M,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),E=Symbol.iterator,f="@@iterator";function d(y){if(y===null||typeof y!="object")return null;var aA=E&&y[E]||y[f];return typeof aA=="function"?aA:null}var Q=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(y){{for(var aA=arguments.length,FA=new Array(aA>1?aA-1:0),PA=1;PA<aA;PA++)FA[PA-1]=arguments[PA];C("error",y,FA)}}function C(y,aA,FA){{var PA=Q.ReactDebugCurrentFrame,_A=PA.getStackAddendum();_A!==""&&(aA+="%s",FA=FA.concat([_A]));var ae=FA.map(function(KA){return String(KA)});ae.unshift("Warning: "+aA),Function.prototype.apply.call(console[y],console,ae)}}var F=!1,U=!1,R=!1,D=!1,S=!1,V;V=Symbol.for("react.module.reference");function m(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===r||S||y===i||y===l||y===c||D||y===u||F||U||R||typeof y=="object"&&y!==null&&(y.$$typeof===B||y.$$typeof===g||y.$$typeof===o||y.$$typeof===a||y.$$typeof===s||y.$$typeof===V||y.getModuleId!==void 0))}function k(y,aA,FA){var PA=y.displayName;if(PA)return PA;var _A=aA.displayName||aA.name||"";return _A!==""?FA+"("+_A+")":FA}function z(y){return y.displayName||"Context"}function AA(y){if(y==null)return null;if(typeof y.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case n:return"Fragment";case t:return"Portal";case r:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case a:var aA=y;return z(aA)+".Consumer";case o:var FA=y;return z(FA._context)+".Provider";case s:return k(y,y.render,"ForwardRef");case g:var PA=y.displayName||null;return PA!==null?PA:AA(y.type)||"Memo";case B:{var _A=y,ae=_A._payload,KA=_A._init;try{return AA(KA(ae))}catch{return null}}}return null}var v=Object.assign,H=0,X,W,sA,oA,w,G,K;function p(){}p.__reactDisabledLog=!0;function P(){{if(H===0){X=console.log,W=console.info,sA=console.warn,oA=console.error,w=console.group,G=console.groupCollapsed,K=console.groupEnd;var y={configurable:!0,enumerable:!0,value:p,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}H++}}function x(){{if(H--,H===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:v({},y,{value:X}),info:v({},y,{value:W}),warn:v({},y,{value:sA}),error:v({},y,{value:oA}),group:v({},y,{value:w}),groupCollapsed:v({},y,{value:G}),groupEnd:v({},y,{value:K})})}H<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=Q.ReactCurrentDispatcher,iA;function nA(y,aA,FA){{if(iA===void 0)try{throw Error()}catch(_A){var PA=_A.stack.trim().match(/\n( *(at )?)/);iA=PA&&PA[1]||""}return` `+iA+y}}var dA=!1,EA;{var DA=typeof WeakMap=="function"?WeakMap:Map;EA=new DA}function q(y,aA){if(!y||dA)return"";{var FA=EA.get(y);if(FA!==void 0)return FA}var PA;dA=!0;var _A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=L.current,L.current=null,P();try{if(aA){var KA=function(){throw Error()};if(Object.defineProperty(KA.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(KA,[])}catch(RA){PA=RA}Reflect.construct(y,[],KA)}else{try{KA.call()}catch(RA){PA=RA}y.call(KA.prototype)}}else{try{throw Error()}catch(RA){PA=RA}y()}}catch(RA){if(RA&&PA&&typeof RA.stack=="string"){for(var qA=RA.stack.split(` `),nt=PA.stack.split(` `),Ye=qA.length-1,T=nt.length-1;Ye>=1&&T>=0&&qA[Ye]!==nt[T];)T--;for(;Ye>=1&&T>=0;Ye--,T--)if(qA[Ye]!==nt[T]){if(Ye!==1||T!==1)do if(Ye--,T--,T<0||qA[Ye]!==nt[T]){var O=` `+qA[Ye].replace(" at new "," at ");return y.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",y.displayName)),typeof y=="function"&&EA.set(y,O),O}while(Ye>=1&&T>=0);break}}}finally{dA=!1,L.current=ae,x(),Error.prepareStackTrace=_A}var tA=y?y.displayName||y.name:"",rA=tA?nA(tA):"";return typeof y=="function"&&EA.set(y,rA),rA}function WA(y,aA,FA){return q(y,!1)}function fA(y){var aA=y.prototype;return!!(aA&&aA.isReactComponent)}function Y(y,aA,FA){if(y==null)return"";if(typeof y=="function")return q(y,fA(y));if(typeof y=="string")return nA(y);switch(y){case l:return nA("Suspense");case c:return nA("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case s:return WA(y.render);case g:return Y(y.type,aA,FA);case B:{var PA=y,_A=PA._payload,ae=PA._init;try{return Y(ae(_A),aA,FA)}catch{}}}return""}var eA=Object.prototype.hasOwnProperty,cA={},pA=Q.ReactDebugCurrentFrame;function CA(y){if(y){var aA=y._owner,FA=Y(y.type,y._source,aA?aA.type:null);pA.setExtraStackFrame(FA)}else pA.setExtraStackFrame(null)}function UA(y,aA,FA,PA,_A){{var ae=Function.call.bind(eA);for(var KA in y)if(ae(y,KA)){var qA=void 0;try{if(typeof y[KA]!="function"){var nt=Error((PA||"React class")+": "+FA+" type `"+KA+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[KA]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}qA=y[KA](aA,KA,PA,FA,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ye){qA=Ye}qA&&!(qA instanceof Error)&&(CA(_A),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",PA||"React class",FA,KA,typeof qA),CA(null)),qA instanceof Error&&!(qA.message in cA)&&(cA[qA.message]=!0,CA(_A),h("Failed %s type: %s",FA,qA.message),CA(null))}}}var kA=Array.isArray;function jA(y){return kA(y)}function QA(y){{var aA=typeof Symbol=="function"&&Symbol.toStringTag,FA=aA&&y[Symbol.toStringTag]||y.constructor.name||"Object";return FA}}function $(y){try{return lA(y),!1}catch{return!0}}function lA(y){return""+y}function N(y){if($(y))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",QA(y)),lA(y)}var j=Q.ReactCurrentOwner,BA={key:!0,ref:!0,__self:!0,__source:!0},TA,vA;function ge(y){if(eA.call(y,"ref")){var aA=Object.getOwnPropertyDescriptor(y,"ref").get;if(aA&&aA.isReactWarning)return!1}return y.ref!==void 0}function Se(y){if(eA.call(y,"key")){var aA=Object.getOwnPropertyDescriptor(y,"key").get;if(aA&&aA.isReactWarning)return!1}return y.key!==void 0}function Pe(y,aA){typeof y.ref=="string"&&j.current}function re(y,aA){{var FA=function(){TA||(TA=!0,h("%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://reactjs.org/link/special-props)",aA))};FA.isReactWarning=!0,Object.defineProperty(y,"key",{get:FA,configurable:!0})}}function ve(y,aA){{var FA=function(){vA||(vA=!0,h("%s: `ref` 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://reactjs.org/link/special-props)",aA))};FA.isReactWarning=!0,Object.defineProperty(y,"ref",{get:FA,configurable:!0})}}var Re=function(y,aA,FA,PA,_A,ae,KA){var qA={$$typeof:e,type:y,key:aA,ref:FA,props:KA,_owner:ae};return qA._store={},Object.defineProperty(qA._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(qA,"_self",{configurable:!1,enumerable:!1,writable:!1,value:PA}),Object.defineProperty(qA,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_A}),Object.freeze&&(Object.freeze(qA.props),Object.freeze(qA)),qA};function ht(y,aA,FA,PA,_A){{var ae,KA={},qA=null,nt=null;FA!==void 0&&(N(FA),qA=""+FA),Se(aA)&&(N(aA.key),qA=""+aA.key),ge(aA)&&(nt=aA.ref,Pe(aA,_A));for(ae in aA)eA.call(aA,ae)&&!BA.hasOwnProperty(ae)&&(KA[ae]=aA[ae]);if(y&&y.defaultProps){var Ye=y.defaultProps;for(ae in Ye)KA[ae]===void 0&&(KA[ae]=Ye[ae])}if(qA||nt){var T=typeof y=="function"?y.displayName||y.name||"Unknown":y;qA&&re(KA,T),nt&&ve(KA,T)}return Re(y,qA,nt,_A,PA,j.current,KA)}}var We=Q.ReactCurrentOwner,Sn=Q.ReactDebugCurrentFrame;function Gn(y){if(y){var aA=y._owner,FA=Y(y.type,y._source,aA?aA.type:null);Sn.setExtraStackFrame(FA)}else Sn.setExtraStackFrame(null)}var Zn;Zn=!1;function vr(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function In(){{if(We.current){var y=AA(We.current.type);if(y)return` Check the render method of \``+y+"`."}return""}}function Wr(y){return""}var Jn={};function xn(y){{var aA=In();if(!aA){var FA=typeof y=="string"?y:y.displayName||y.name;FA&&(aA=` Check the top-level render call using <`+FA+">.")}return aA}}function No(y,aA){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var FA=xn(aA);if(Jn[FA])return;Jn[FA]=!0;var PA="";y&&y._owner&&y._owner!==We.current&&(PA=" It was passed a child from "+AA(y._owner.type)+"."),Gn(y),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',FA,PA),Gn(null)}}function tr(y,aA){{if(typeof y!="object")return;if(jA(y))for(var FA=0;FA<y.length;FA++){var PA=y[FA];vr(PA)&&No(PA,aA)}else if(vr(y))y._store&&(y._store.validated=!0);else if(y){var _A=d(y);if(typeof _A=="function"&&_A!==y.entries)for(var ae=_A.call(y),KA;!(KA=ae.next()).done;)vr(KA.value)&&No(KA.value,aA)}}}function nn(y){{var aA=y.type;if(aA==null||typeof aA=="string")return;var FA;if(typeof aA=="function")FA=aA.propTypes;else if(typeof aA=="object"&&(aA.$$typeof===s||aA.$$typeof===g))FA=aA.propTypes;else return;if(FA){var PA=AA(aA);UA(FA,y.props,"prop",PA,y)}else if(aA.PropTypes!==void 0&&!Zn){Zn=!0;var _A=AA(aA);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_A||"Unknown")}typeof aA.getDefaultProps=="function"&&!aA.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function is(y){{for(var aA=Object.keys(y.props),FA=0;FA<aA.length;FA++){var PA=aA[FA];if(PA!=="children"&&PA!=="key"){Gn(y),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",PA),Gn(null);break}}y.ref!==null&&(Gn(y),h("Invalid attribute `ref` supplied to `React.Fragment`."),Gn(null))}}var rs={};function nr(y,aA,FA,PA,_A,ae){{var KA=m(y);if(!KA){var qA="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(qA+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var nt=Wr();nt?qA+=nt:qA+=In();var Ye;y===null?Ye="null":jA(y)?Ye="array":y!==void 0&&y.$$typeof===e?(Ye="<"+(AA(y.type)||"Unknown")+" />",qA=" Did you accidentally export a JSX literal instead of a component?"):Ye=typeof y,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ye,qA)}var T=ht(y,aA,FA,_A,ae);if(T==null)return T;if(KA){var O=aA.children;if(O!==void 0)if(PA)if(jA(O)){for(var tA=0;tA<O.length;tA++)tr(O[tA],y);Object.freeze&&Object.freeze(O)}else h("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 tr(O,y)}if(eA.call(aA,"key")){var rA=AA(y),RA=Object.keys(aA).filter(function(Me){return Me!=="key"}),yA=RA.length>0?"{key: someKey, "+RA.join(": ..., ")+": ...}":"{key: someKey}";if(!rs[rA+yA]){var zA=RA.length>0?"{"+RA.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,yA,rA,zA,rA),rs[rA+yA]=!0}}return y===n?is(T):nn(T),T}}function Pn(y,aA,FA){return nr(y,aA,FA,!0)}function vo(y,aA,FA){return nr(y,aA,FA,!1)}var Yn=vo,os=Pn;us.Fragment=n,us.jsx=Yn,us.jsxs=os}()),us}process.env.NODE_ENV==="production"?xu.exports=Eb():xu.exports=Ib();var I=xu.exports;function Sc(A){return A!=null&&typeof A=="object"&&"nodeType"in A&&A.nodeType===Node.ELEMENT_NODE}function fb(){return!!(globalThis!=null&&globalThis.document)}function Ih(A){return A.parentElement&&Ih(A.parentElement)?!0:A.hidden}function db(A){const e=A.getAttribute("contenteditable");return e!=="false"&&e!=null}function Qb(A){return!!A.getAttribute("disabled")||!!A.getAttribute("aria-disabled")}function hb(A){var e;return((e=fh(A))==null?void 0:e.defaultView)??window}function fh(A){return Sc(A)?A.ownerDocument:document}function Cb(A){return fh(A).activeElement}function Ub(A,...e){if(A==null)throw new TypeError("Cannot convert undefined or null to object");const t={...A};for(const n of e)if(n!=null)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(i in t&&delete t[i],t[i]=n[i]);return t}const $A=A=>A?"":void 0,Tu=A=>A?!0:void 0;function bu(A){return Array.isArray(A)}function Ct(A){const e=typeof A;return A!=null&&(e==="object"||e==="function")&&!bu(A)}function Fb(A){const e=A==null?0:A.length;return e?A[e-1]:void 0}function Rb(A){const e=parseFloat(A.toString()),t=A.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}}function Vu(A){if(A==null)return A;const{unitless:e}=Rb(A);return e||typeof A=="number"?`${A}px`:A}const dh=(A,e)=>parseInt(A[1],10)>parseInt(e[1],10)?1:-1,yu=A=>Object.fromEntries(Object.entries(A).sort(dh));function Qh(A){const e=yu(A);return Object.assign(Object.values(e),e)}function Mb(A){const e=Object.keys(yu(A));return new Set(e)}function hh(A){if(!A)return A;A=Vu(A)??A;const e=-.02;return typeof A=="number"?`${A+e}`:A.replace(/(\d+\.?\d*)/u,t=>`${parseFloat(t)+e}`)}function Es(A,e){const t=["@media screen"];return A&&t.push("and",`(min-width: ${Vu(A)})`),e&&t.push("and",`(max-width: ${Vu(e)})`),t.join(" ")}function wb(A){if(!A)return null;A.base=A.base??"0px";const e=Qh(A),t=Object.entries(A).sort(dh).map(([r,o],a,s)=>{let[,l]=s[a+1]??[];return l=parseFloat(l)>0?hh(l):void 0,{_minW:hh(o),breakpoint:r,minW:o,maxW:l,maxWQuery:Es(null,l),minWQuery:Es(o),minMaxQuery:Es(o,l)}}),n=Mb(A),i=Array.from(n.values());return{keys:n,normalized:e,isResponsive(r){const o=Object.keys(r);return o.length>0&&o.every(a=>n.has(a))},asObject:yu(A),asArray:Qh(A),details:t,get(r){return t.find(o=>o.breakpoint===r)},media:[null,...e.map(r=>Es(r)).slice(1)],toArrayValue(r){if(!Ct(r))throw new Error("toArrayValue: value must be an object");const o=i.map(a=>r[a]??null);for(;Fb(o)===null;)o.pop();return o},toObjectValue(r){if(!Array.isArray(r))throw new Error("toObjectValue: value must be an array");return r.reduce((o,a,s)=>{const l=i[s];return l!=null&&a!=null&&(o[l]=a),o},{})}}}function Ch(...A){return function(...t){A.forEach(n=>n==null?void 0:n(...t))}}function ce(...A){return function(t){A.some(n=>(n==null||n(t),t==null?void 0:t.defaultPrevented))}}function ku(A){return M.Children.toArray(A).filter(e=>M.isValidElement(e))}function Is(A){const e=Object.assign({},A);for(let t in e)e[t]===void 0&&delete e[t];return e}function Db(A,e){return`${A} returned \`undefined\`. Seems you forgot to wrap component within ${e}`}function be(A={}){const{name:e,strict:t=!0,hookName:n="useContext",providerName:i="Provider",errorMessage:r,defaultValue:o}=A,a=M.createContext(o);a.displayName=e;function s(){var c;const l=M.useContext(a);if(!l&&t){const g=new Error(r??Db(n,i));throw g.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,g,s),g}return l}return[a.Provider,s,a]}const HA=(...A)=>A.filter(Boolean).join(" "),Uh=A=>A.hasAttribute("tabindex"),pb=A=>Uh(A)&&A.tabIndex===-1;function Fh(A){if(!Sc(A)||Ih(A)||Qb(A))return!1;const{localName:e}=A;if(["input","select","textarea","button"].indexOf(e)>=0)return!0;const n={a:()=>A.hasAttribute("href"),audio:()=>A.hasAttribute("controls"),video:()=>A.hasAttribute("controls")};return e in n?n[e]():db(A)?!0:Uh(A)}function mb(A){return A?Sc(A)&&Fh(A)&&!pb(A):!1}const Sb=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),xb=A=>A.offsetWidth>0&&A.offsetHeight>0;function Tb(A){const e=Array.from(A.querySelectorAll(Sb));return e.unshift(A),e.filter(t=>Fh(t)&&xb(t))}function Nu(A,e,t,n){const i=typeof e=="string"?e.split("."):[e];for(n=0;n<i.length&&A;n+=1)A=A[i[n]];return A===void 0?t:A}const Rh=(A=>{const e=new WeakMap;return(n,i,r,o)=>{if(typeof n>"u")return A(n,i,r);e.has(n)||e.set(n,new Map);const a=e.get(n);if(a.has(i))return a.get(i);const s=A(n,i,r,o);return a.set(i,s),s}})(Nu),bb=A=>A.default||A;function Vb(A){const{wasSelected:e,enabled:t,isSelected:n,mode:i="unmount"}=A;return!!(!t||n||i==="keepMounted"&&e)}function Zo(A,e=[]){const t=Object.assign({},A);for(const n of e)n in t&&delete t[n];return t}function Mh(A,e){const t={};for(const n of e)n in A&&(t[n]=A[n]);return t}const wh=Object.freeze(["base","sm","md","lg","xl","2xl"]);function yb(A,e){return Array.isArray(A)?A.map(t=>t===null?null:e(t)):Ct(A)?Object.keys(A).reduce((t,n)=>(t[n]=e(A[n]),t),{}):A!=null?e(A):null}function kb(A,e=wh){const t={};return A.forEach((n,i)=>{const r=e[i];n!=null&&(t[r]=n)}),t}const Nb=A=>typeof A=="function";function rn(A,...e){return Nb(A)?A(...e):A}function vb(A){const e=A.ownerDocument.defaultView||window,{overflow:t,overflowX:n,overflowY:i}=e.getComputedStyle(A);return/auto|scroll|overlay|hidden/.test(t+i+n)}function Wb(A){return A.localName==="html"?A:A.assignedSlot||A.parentElement||A.ownerDocument.documentElement}function Dh(A){return["html","body","#document"].includes(A.localName)?A.ownerDocument.body:Sc(A)&&vb(A)?A:Dh(Wb(A))}function Hb(A,e){const t={},n={};for(const[i,r]of Object.entries(A))e.includes(i)?t[i]=r:n[i]=r;return[t,n]}function Gb(A,...e){const t=Object.getOwnPropertyDescriptors(A),n=Object.keys(t),i=o=>{const a={};for(let s=0;s<o.length;s++){const l=o[s];t[l]&&(Object.defineProperty(a,l,t[l]),delete t[l])}return a},r=o=>i(Array.isArray(o)?o:n.filter(o));return e.map(r).concat(i(n))}function ph(A,e,t={}){const{stop:n,getKey:i}=t;function r(o,a=[]){if(Ct(o)||Array.isArray(o)){const s={};for(const[l,c]of Object.entries(o)){const g=(i==null?void 0:i(l))??l,B=[...a,g];if(n!=null&&n(o,B))return e(o,a);s[g]=r(c,B)}return s}return e(o,a)}return r(A)}const fs=A=>{const{condition:e,message:t}=A;e&&process.env.NODE_ENV!=="production"&&console.warn(t)};var xc={exports:{}};xc.exports,function(A,e){var t=200,n="__lodash_hash_undefined__",i=800,r=16,o=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",g="[object Date]",B="[object Error]",u="[object Function]",E="[object GeneratorFunction]",f="[object Map]",d="[object Number]",Q="[object Null]",h="[object Object]",C="[object Proxy]",F="[object RegExp]",U="[object Set]",R="[object String]",D="[object Undefined]",S="[object WeakMap]",V="[object ArrayBuffer]",m="[object DataView]",k="[object Float32Array]",z="[object Float64Array]",AA="[object Int8Array]",v="[object Int16Array]",H="[object Int32Array]",X="[object Uint8Array]",W="[object Uint8ClampedArray]",sA="[object Uint16Array]",oA="[object Uint32Array]",w=/[\\^$.*+?()[\]{}|]/g,G=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,p={};p[k]=p[z]=p[AA]=p[v]=p[H]=p[X]=p[W]=p[sA]=p[oA]=!0,p[a]=p[s]=p[V]=p[c]=p[m]=p[g]=p[B]=p[u]=p[f]=p[d]=p[h]=p[F]=p[U]=p[R]=p[S]=!1;var P=typeof or=="object"&&or&&or.Object===Object&&or,x=typeof self=="object"&&self&&self.Object===Object&&self,L=P||x||Function("return this")(),iA=e&&!e.nodeType&&e,nA=iA&&!0&&A&&!A.nodeType&&A,dA=nA&&nA.exports===iA,EA=dA&&P.process,DA=function(){try{var b=nA&&nA.require&&nA.require("util").types;return b||EA&&EA.binding&&EA.binding("util")}catch{}}(),q=DA&&DA.isTypedArray;function WA(b,J,_){switch(_.length){case 0:return b.call(J);case 1:return b.call(J,_[0]);case 2:return b.call(J,_[0],_[1]);case 3:return b.call(J,_[0],_[1],_[2])}return b.apply(J,_)}function fA(b,J){for(var _=-1,xA=Array(b);++_<b;)xA[_]=J(_);return xA}function Y(b){return function(J){return b(J)}}function eA(b,J){return b==null?void 0:b[J]}function cA(b,J){return function(_){return b(J(_))}}var pA=Array.prototype,CA=Function.prototype,UA=Object.prototype,kA=L["__core-js_shared__"],jA=CA.toString,QA=UA.hasOwnProperty,$=function(){var b=/[^.]+$/.exec(kA&&kA.keys&&kA.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),lA=UA.toString,N=jA.call(Object),j=RegExp("^"+jA.call(QA).replace(w,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BA=dA?L.Buffer:void 0,TA=L.Symbol,vA=L.Uint8Array;BA&&BA.allocUnsafe;var ge=cA(Object.getPrototypeOf,Object),Se=Object.create,Pe=UA.propertyIsEnumerable,re=pA.splice,ve=TA?TA.toStringTag:void 0,Re=function(){try{var b=Be(Object,"defineProperty");return b({},"",{}),b}catch{}}(),ht=BA?BA.isBuffer:void 0,We=Math.max,Sn=Date.now,Gn=Be(L,"Map"),Zn=Be(Object,"create"),vr=function(){function b(){}return function(J){if(!Ho(J))return{};if(Se)return Se(J);b.prototype=J;var _=new b;return b.prototype=void 0,_}}();function In(b){var J=-1,_=b==null?0:b.length;for(this.clear();++J<_;){var xA=b[J];this.set(xA[0],xA[1])}}function Wr(){this.__data__=Zn?Zn(null):{},this.size=0}function Jn(b){var J=this.has(b)&&delete this.__data__[b];return this.size-=J?1:0,J}function xn(b){var J=this.__data__;if(Zn){var _=J[b];return _===n?void 0:_}return QA.call(J,b)?J[b]:void 0}function No(b){var J=this.__data__;return Zn?J[b]!==void 0:QA.call(J,b)}function tr(b,J){var _=this.__data__;return this.size+=this.has(b)?0:1,_[b]=Zn&&J===void 0?n:J,this}In.prototype.clear=Wr,In.prototype.delete=Jn,In.prototype.get=xn,In.prototype.has=No,In.prototype.set=tr;function nn(b){var J=-1,_=b==null?0:b.length;for(this.clear();++J<_;){var xA=b[J];this.set(xA[0],xA[1])}}function is(){this.__data__=[],this.size=0}function rs(b){var J=this.__data__,_=rA(J,b);if(_<0)return!1;var xA=J.length-1;return _==xA?J.pop():re.call(J,_,1),--this.size,!0}function nr(b){var J=this.__data__,_=rA(J,b);return _<0?void 0:J[_][1]}function Pn(b){return rA(this.__data__,b)>-1}function vo(b,J){var _=this.__data__,xA=rA(_,b);return xA<0?(++this.size,_.push([b,J])):_[xA][1]=J,this}nn.prototype.clear=is,nn.prototype.delete=rs,nn.prototype.get=nr,nn.prototype.has=Pn,nn.prototype.set=vo;function Yn(b){var J=-1,_=b==null?0:b.length;for(this.clear();++J<_;){var xA=b[J];this.set(xA[0],xA[1])}}function os(){this.size=0,this.__data__={hash:new In,map:new(Gn||nn),string:new In}}function y(b){var J=Ee(this,b).delete(b);return this.size-=J?1:0,J}function aA(b){return Ee(this,b).get(b)}function FA(b){return Ee(this,b).has(b)}function PA(b,J){var _=Ee(this,b),xA=_.size;return _.set(b,J),this.size+=_.size==xA?0:1,this}Yn.prototype.clear=os,Yn.prototype.delete=y,Yn.prototype.get=aA,Yn.prototype.has=FA,Yn.prototype.set=PA;function _A(b){var J=this.__data__=new nn(b);this.size=J.size}function ae(){this.__data__=new nn,this.size=0}function KA(b){var J=this.__data__,_=J.delete(b);return this.size=J.size,_}function qA(b){return this.__data__.get(b)}function nt(b){return this.__data__.has(b)}function Ye(b,J){var _=this.__data__;if(_ instanceof nn){var xA=_.__data__;if(!Gn||xA.length<t-1)return xA.push([b,J]),this.size=++_.size,this;_=this.__data__=new Yn(xA)}return _.set(b,J),this.size=_.size,this}_A.prototype.clear=ae,_A.prototype.delete=KA,_A.prototype.get=qA,_A.prototype.has=nt,_A.prototype.set=Ye;function T(b,J){var _=Jr(b),xA=!_&&gs(b),le=!_&&!xA&&ab(b),Te=!_&&!xA&&!le&&lb(b),Xe=_||xA||le||Te,Ce=Xe?fA(b.length,String):[],Le=Ce.length;for(var On in b)Xe&&(On=="length"||le&&(On=="offset"||On=="parent")||Te&&(On=="buffer"||On=="byteLength"||On=="byteOffset")||Wo(On,Le))||Ce.push(On);return Ce}function O(b,J,_){(_!==void 0&&!rr(b[J],_)||_===void 0&&!(J in b))&&RA(b,J,_)}function tA(b,J,_){var xA=b[J];(!(QA.call(b,J)&&rr(xA,_))||_===void 0&&!(J in b))&&RA(b,J,_)}function rA(b,J){for(var _=b.length;_--;)if(rr(b[_][0],J))return _;return-1}function RA(b,J,_){J=="__proto__"&&Re?Re(b,J,{configurable:!0,enumerable:!0,value:_,writable:!0}):b[J]=_}var yA=lh();function zA(b){return b==null?b===void 0?D:Q:ve&&ve in Object(b)?wc(b):Zr(b)}function Me(b){return pc(b)&&zA(b)==a}function xe(b){if(!Ho(b)||Mi(b))return!1;var J=ch(b)?j:G;return J.test(cs(b))}function we(b){return pc(b)&&sb(b.length)&&!!p[zA(b)]}function se(b){if(!Ho(b))return as(b);var J=Gr(b),_=[];for(var xA in b)xA=="constructor"&&(J||!QA.call(b,xA))||_.push(xA);return _}function Pt(b,J,_,xA,le){b!==J&&yA(J,function(Te,Xe){if(le||(le=new _A),Ho(Te))It(b,J,Xe,_,Pt,xA,le);else{var Ce=xA?xA(ss(b,Xe),Te,Xe+"",b,J,le):void 0;Ce===void 0&&(Ce=Te),O(b,Xe,Ce)}},cb)}function It(b,J,_,xA,le,Te,Xe){var Ce=ss(b,_),Le=ss(J,_),On=Xe.get(Le);if(On){O(b,_,On);return}var dn=Te?Te(Ce,Le,_+"",b,J,Xe):void 0,mc=dn===void 0;if(mc){var gh=Jr(Le),Bh=!gh&&ab(Le),Bb=!gh&&!Bh&&lb(Le);dn=Le,gh||Bh||Bb?Jr(Ce)?dn=Ce:NgA(Ce)?dn=mu(Ce):Bh?(mc=!1,dn=fn(Le)):Bb?(mc=!1,dn=Ri(Le)):dn=[]:vgA(Le)||gs(Le)?(dn=Ce,gs(Ce)?dn=WgA(Ce):(!Ho(Ce)||ch(Ce))&&(dn=ir(Le))):mc=!1}mc&&(Xe.set(Le,dn),le(dn,Le,xA,Te,Xe),Xe.delete(Le)),O(b,_,dn)}function st(b,J){return ls(wi(b,J,gb),b+"")}var gt=Re?function(b,J){return Re(b,"toString",{configurable:!0,enumerable:!1,value:GgA(J),writable:!0})}:gb;function fn(b,J){return b.slice()}function Hr(b){var J=new b.constructor(b.byteLength);return new vA(J).set(new vA(b)),J}function Ri(b,J){var _=Hr(b.buffer);return new b.constructor(_,b.byteOffset,b.length)}function mu(b,J){var _=-1,xA=b.length;for(J||(J=Array(xA));++_<xA;)J[_]=b[_];return J}function Su(b,J,_,xA){var le=!_;_||(_={});for(var Te=-1,Xe=J.length;++Te<Xe;){var Ce=J[Te],Le=void 0;Le===void 0&&(Le=b[Ce]),le?RA(_,Ce,Le):tA(_,Ce,Le)}return _}function sh(b){return st(function(J,_){var xA=-1,le=_.length,Te=le>1?_[le-1]:void 0,Xe=le>2?_[2]:void 0;for(Te=b.length>3&&typeof Te=="function"?(le--,Te):void 0,Xe&&Yt(_[0],_[1],Xe)&&(Te=le<3?void 0:Te,le=1),J=Object(J);++xA<le;){var Ce=_[xA];Ce&&b(J,Ce,xA,Te)}return J})}function lh(b){return function(J,_,xA){for(var le=-1,Te=Object(J),Xe=xA(J),Ce=Xe.length;Ce--;){var Le=Xe[++le];if(_(Te[Le],Le,Te)===!1)break}return J}}function Ee(b,J){var _=b.__data__;return zn(J)?_[typeof J=="string"?"string":"hash"]:_.map}function Be(b,J){var _=eA(b,J);return xe(_)?_:void 0}function wc(b){var J=QA.call(b,ve),_=b[ve];try{b[ve]=void 0;var xA=!0}catch{}var le=lA.call(b);return xA&&(J?b[ve]=_:delete b[ve]),le}function ir(b){return typeof b.constructor=="function"&&!Gr(b)?vr(ge(b)):{}}function Wo(b,J){var _=typeof b;return J=J??o,!!J&&(_=="number"||_!="symbol"&&K.test(b))&&b>-1&&b%1==0&&b<J}function Yt(b,J,_){if(!Ho(_))return!1;var xA=typeof J;return(xA=="number"?Pr(_)&&Wo(J,_.length):xA=="string"&&J in _)?rr(_[J],b):!1}function zn(b){var J=typeof b;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?b!=="__proto__":b===null}function Mi(b){return!!$&&$ in b}function Gr(b){var J=b&&b.constructor,_=typeof J=="function"&&J.prototype||UA;return b===_}function as(b){var J=[];if(b!=null)for(var _ in Object(b))J.push(_);return J}function Zr(b){return lA.call(b)}function wi(b,J,_){return J=We(J===void 0?b.length-1:J,0),function(){for(var xA=arguments,le=-1,Te=We(xA.length-J,0),Xe=Array(Te);++le<Te;)Xe[le]=xA[J+le];le=-1;for(var Ce=Array(J+1);++le<J;)Ce[le]=xA[le];return Ce[J]=_(Xe),WA(b,this,Ce)}}function ss(b,J){if(!(J==="constructor"&&typeof b[J]=="function")&&J!="__proto__")return b[J]}var ls=Dc(gt);function Dc(b){var J=0,_=0;return function(){var xA=Sn(),le=r-(xA-_);if(_=xA,le>0){if(++J>=i)return arguments[0]}else J=0;return b.apply(void 0,arguments)}}function cs(b){if(b!=null){try{return jA.call(b)}catch{}try{return b+""}catch{}}return""}function rr(b,J){return b===J||b!==b&&J!==J}var gs=Me(function(){return arguments}())?Me:function(b){return pc(b)&&QA.call(b,"callee")&&!Pe.call(b,"callee")},Jr=Array.isArray;function Pr(b){return b!=null&&sb(b.length)&&!ch(b)}function NgA(b){return pc(b)&&Pr(b)}var ab=ht||ZgA;function ch(b){if(!Ho(b))return!1;var J=zA(b);return J==u||J==E||J==l||J==C}function sb(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=o}function Ho(b){var J=typeof b;return b!=null&&(J=="object"||J=="function")}function pc(b){return b!=null&&typeof b=="object"}function vgA(b){if(!pc(b)||zA(b)!=h)return!1;var J=ge(b);if(J===null)return!0;var _=QA.call(J,"constructor")&&J.constructor;return typeof _=="function"&&_ instanceof _&&jA.call(_)==N}var lb=q?Y(q):we;function WgA(b){return Su(b,cb(b))}function cb(b){return Pr(b)?T(b):se(b)}var HgA=sh(function(b,J,_,xA){Pt(b,J,_,xA)});function GgA(b){return function(){return b}}function gb(b){return b}function ZgA(){return!1}A.exports=HgA}(xc,xc.exports);var Zb=xc.exports;const Qn=Go(Zb);function Tn(A,e=[]){const t=M.useRef(A);return M.useEffect(()=>{t.current=A}),M.useCallback((...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},e)}function Tc(A,e,t,n){const i=Tn(t);return M.useEffect(()=>{const r=typeof A=="function"?A():A??document;if(!(!t||!r))return r.addEventListener(e,i,n),()=>{r.removeEventListener(e,i,n)}},[e,A,n,i,t]),()=>{const r=typeof A=="function"?A():A??document;r==null||r.removeEventListener(e,i,n)}}function Jb(A){const{isOpen:e,ref:t}=A,[n,i]=M.useState(e),[r,o]=M.useState(!1);return M.useEffect(()=>{r||(i(e),o(!0))},[e,r,n]),Tc(()=>t.current,"animationend",()=>{i(e)}),{present:!(e?!1:!n),onComplete(){var c;const s=hb(t.current),l=new s.CustomEvent("animationend",{bubbles:!0});(c=t.current)==null||c.dispatchEvent(l)}}}function mh(A){const{value:e,defaultValue:t,onChange:n,shouldUpdate:i=(B,u)=>B!==u}=A,r=Tn(n),o=Tn(i),[a,s]=M.useState(t),l=e!==void 0,c=l?e:a,g=Tn(B=>{const E=typeof B=="function"?B(c):B;o(c,E)&&(l||s(E),r(E))},[l,r,c,o]);return[c,g]}function Sh(A={}){const{onClose:e,onOpen:t,isOpen:n,id:i}=A,r=Tn(t),o=Tn(e),[a,s]=M.useState(A.defaultIsOpen||!1),l=n!==void 0?n:a,c=n!==void 0,g=M.useId(),B=i??`disclosure-${g}`,u=M.useCallback(()=>{c||s(!1),o==null||o()},[c,o]),E=M.useCallback(()=>{c||s(!0),r==null||r()},[c,r]),f=M.useCallback(()=>{l?u():E()},[l,E,u]);function d(h={}){return{...h,"aria-expanded":l,"aria-controls":B,onClick(C){var F;(F=h.onClick)==null||F.call(h,C),f()}}}function Q(h={}){return{...h,hidden:!l,id:B}}return{isOpen:l,onOpen:E,onClose:u,onToggle:f,isControlled:c,getButtonProps:d,getDisclosureProps:Q}}const ar=globalThis!=null&&globalThis.document?M.useLayoutEffect:M.useEffect,Jo=(A,e)=>{const t=M.useRef(!1),n=M.useRef(!1);M.useEffect(()=>{if(t.current&&n.current)return A();n.current=!0},e),M.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[])};function Pb(A){const e=A.current;if(!e)return!1;const t=Cb(e);return!t||e.contains(t)?!1:!!mb(t)}function Yb(A,e){const{visible:t,focusRef:n}=e,i=!t;Jo(()=>{if(!i||Pb(A))return;const r=(n==null?void 0:n.current)||A.current;let o;if(r)return o=requestAnimationFrame(()=>{r.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(o)}},[i,A,n])}function zb(A,e){const t=M.useId();return M.useMemo(()=>A||[e,t].filter(Boolean).join("-"),[A,e,t])}function Ob(A,...e){const t=zb(A);return M.useMemo(()=>e.map(n=>`${n}-${t}`),[t,e])}function jb(A,e){if(A!=null){if(typeof A=="function"){A(e);return}try{A.current=e}catch{throw new Error(`Cannot assign value '${e}' to ref '${A}'`)}}}function Ut(...A){return e=>{A.forEach(t=>{jb(t,e)})}}function Xb(...A){return M.useMemo(()=>Ut(...A),A)}function Lb(A){const{ref:e,handler:t,enabled:n=!0}=A,i=Tn(t),o=M.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;M.useEffect(()=>{if(!n)return;const a=g=>{vu(g,e)&&(o.isPointerDown=!0)},s=g=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&t&&vu(g,e)&&(o.isPointerDown=!1,i(g))},l=g=>{o.ignoreEmulatedMouseEvents=!0,t&&o.isPointerDown&&vu(g,e)&&(o.isPointerDown=!1,i(g))},c=xh(e.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",s,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",l,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",s,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",l,!0)}},[t,e,i,o,n])}function vu(A,e){var n,i;const t=((n=A.composedPath)==null?void 0:n.call(A)[0])??A.target;return t&&!xh(t).contains(t)?!1:!((i=e.current)!=null&&i.contains(t))}function xh(A){return(A==null?void 0:A.ownerDocument)??document}function _b(A,e){const t=Tn(A);M.useEffect(()=>{if(e==null)return;let n=null;return n=window.setTimeout(()=>{t()},e),()=>{n&&window.clearTimeout(n)}},[e,t])}const Bt={open:(A,e)=>`${A}[data-open], ${A}[open], ${A}[data-state=open] ${e}`,closed:(A,e)=>`${A}[data-closed], ${A}[data-state=closed] ${e}`,hover:(A,e)=>`${A}:hover ${e}, ${A}[data-hover] ${e}`,focus:(A,e)=>`${A}:focus ${e}, ${A}[data-focus] ${e}`,focusVisible:(A,e)=>`${A}:focus-visible ${e}`,focusWithin:(A,e)=>`${A}:focus-within ${e}`,active:(A,e)=>`${A}:active ${e}, ${A}[data-active] ${e}`,disabled:(A,e)=>`${A}:disabled ${e}, ${A}[data-disabled] ${e}`,invalid:(A,e)=>`${A}:invalid ${e}, ${A}[data-invalid] ${e}`,checked:(A,e)=>`${A}:checked ${e}, ${A}[data-checked] ${e}`,placeholderShown:(A,e)=>`${A}:placeholder-shown ${e}`},jn=A=>Th(e=>A(e,"&"),"[role=group]","[data-group]",".group"),Di=A=>Th(e=>A(e,"~ &"),"[data-peer]",".peer"),Th=(A,...e)=>e.map(A).join(", "),Po={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:jn(Bt.open),_groupClosed:jn(Bt.closed),_groupHover:jn(Bt.hover),_peerHover:Di(Bt.hover),_groupFocus:jn(Bt.focus),_peerFocus:Di(Bt.focus),_groupFocusVisible:jn(Bt.focusVisible),_peerFocusVisible:Di(Bt.focusVisible),_groupActive:jn(Bt.active),_peerActive:Di(Bt.active),_groupDisabled:jn(Bt.disabled),_peerDisabled:Di(Bt.disabled),_groupInvalid:jn(Bt.invalid),_peerInvalid:Di(Bt.invalid),_groupChecked:jn(Bt.checked),_peerChecked:Di(Bt.checked),_groupFocusWithin:jn(Bt.focusWithin),_peerFocusWithin:Di(Bt.focusWithin),_peerPlaceholderShown:Di(Bt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},bh=Object.keys(Po),Kb=A=>/!(important)?$/.test(A),Vh=A=>typeof A=="string"?A.replace(/!(important)?$/,"").trim():A,qb=(A,e)=>t=>{const n=String(e),i=Kb(n),r=Vh(n),o=A?`${A}.${r}`:r;let a=Ct(t.__cssMap)&&o in t.__cssMap?t.__cssMap[o].varRef:e;return a=Vh(a),i?`${a} !important`:a};function Wu(A){const{scale:e,transform:t,compose:n}=A;return(r,o)=>{const a=qb(e,r)(o);let s=(t==null?void 0:t(a,o))??a;return n&&(s=n(s,o)),s}}const bc=(...A)=>e=>A.reduce((t,n)=>n(t),e);function hn(A,e){return t=>{const n={property:t,scale:A};return n.transform=Wu({scale:A,transform:e}),n}}const $b=({rtl:A,ltr:e})=>t=>t.direction==="rtl"?A:e;function A4(A){const{property:e,scale:t,transform:n}=A;return{scale:t,property:$b(e),transform:t?Wu({scale:t,compose:n}):n}}const yh=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function e4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...yh].join(" ")}function t4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...yh].join(" ")}const n4={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},i4={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function r4(A){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":A,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const o4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Hu={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},a4=new Set(Object.values(Hu)),Gu=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),s4=A=>A.trim();function l4(A,e){if(A==null||Gu.has(A))return A;if(!(Zu(A)||Gu.has(A)))return`url('${A}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(A),r=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!r||!o)return A;const a=r.includes("-gradient")?r:`${r}-gradient`,[s,...l]=o.split(",").map(s4).filter(Boolean);if((l==null?void 0:l.length)===0)return A;const c=s in Hu?Hu[s]:s;l.unshift(c);const g=l.map(B=>{if(a4.has(B))return B;const u=B.indexOf(" "),[E,f]=u!==-1?[B.substr(0,u),B.substr(u+1)]:[B],d=Zu(f)?f:f&&f.split(" "),Q=`colors.${E}`,h=Q in e.__cssMap?e.__cssMap[Q].varRef:E;return d?[h,...Array.isArray(d)?d:[d]].join(" "):h});return`${a}(${g.join(", ")})`}const Zu=A=>typeof A=="string"&&A.includes("(")&&A.includes(")"),c4=(A,e)=>l4(A,e??{});function g4(A){return/^var\(--.+\)$/.test(A)}const B4=A=>{const e=parseFloat(A.toString()),t=A.toString().replace(String(e),"");return{unitless:!t,value:e,unit:t}},Xn=A=>e=>`${A}(${e})`,ie={filter(A){return A!=="auto"?A:n4},backdropFilter(A){return A!=="auto"?A:i4},ring(A){return r4(ie.px(A))},bgClip(A){return A==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:A}},transform(A){return A==="auto"?e4():A==="auto-gpu"?t4():A},vh(A){return A==="$100vh"?"var(--chakra-vh)":A},px(A){if(A==null)return A;const{unitless:e}=B4(A);return e||typeof A=="number"?`${A}px`:A},fraction(A){return typeof A!="number"||A>1?A:`${A*100}%`},float(A,e){const t={left:"right",right:"left"};return e.direction==="rtl"?t[A]:A},degree(A){if(g4(A)||A==null)return A;const e=typeof A=="string"&&!A.endsWith("deg");return typeof A=="number"||e?`${A}deg`:A},gradient:c4,blur:Xn("blur"),opacity:Xn("opacity"),brightness:Xn("brightness"),contrast:Xn("contrast"),dropShadow:Xn("drop-shadow"),grayscale:Xn("grayscale"),hueRotate:A=>Xn("hue-rotate")(ie.degree(A)),invert:Xn("invert"),saturate:Xn("saturate"),sepia:Xn("sepia"),bgImage(A){return A==null||Zu(A)||Gu.has(A)?A:`url(${A})`},outline(A){const e=String(A)==="0"||String(A)==="none";return A!==null&&e?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:A}},flexDirection(A){const{space:e,divide:t}=o4[A]??{},n={flexDirection:A};return e&&(n[e]=1),t&&(n[t]=1),n}},Z={borderWidths:hn("borderWidths"),borderStyles:hn("borderStyles"),colors:hn("colors"),borders:hn("borders"),gradients:hn("gradients",ie.gradient),radii:hn("radii",ie.px),space:hn("space",bc(ie.vh,ie.px)),spaceT:hn("space",bc(ie.vh,ie.px)),degreeT(A){return{property:A,transform:ie.degree}},prop(A,e,t){return{property:A,scale:e,...e&&{transform:Wu({scale:e,transform:t})}}},propT(A,e){return{property:A,transform:e}},sizes:hn("sizes",bc(ie.vh,ie.px)),sizesT:hn("sizes",bc(ie.vh,ie.fraction)),shadows:hn("shadows"),logical:A4,blur:hn("blur",ie.blur)},Vc={background:Z.colors("background"),backgroundColor:Z.colors("backgroundColor"),backgroundImage:Z.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ie.bgClip},bgSize:Z.prop("backgroundSize"),bgPosition:Z.prop("backgroundPosition"),bg:Z.colors("background"),bgColor:Z.colors("backgroundColor"),bgPos:Z.prop("backgroundPosition"),bgRepeat:Z.prop("backgroundRepeat"),bgAttachment:Z.prop("backgroundAttachment"),bgGradient:Z.gradients("backgroundImage"),bgClip:{transform:ie.bgClip}};Object.assign(Vc,{bgImage:Vc.backgroundImage,bgImg:Vc.backgroundImage});const Ie={border:Z.borders("border"),borderWidth:Z.borderWidths("borderWidth"),borderStyle:Z.borderStyles("borderStyle"),borderColor:Z.colors("borderColor"),borderRadius:Z.radii("borderRadius"),borderTop:Z.borders("borderTop"),borderBlockStart:Z.borders("borderBlockStart"),borderTopLeftRadius:Z.radii("borderTopLeftRadius"),borderStartStartRadius:Z.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:Z.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:Z.radii("borderTopRightRadius"),borderStartEndRadius:Z.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:Z.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:Z.borders("borderRight"),borderInlineEnd:Z.borders("borderInlineEnd"),borderBottom:Z.borders("borderBottom"),borderBlockEnd:Z.borders("borderBlockEnd"),borderBottomLeftRadius:Z.radii("borderBottomLeftRadius"),borderBottomRightRadius:Z.radii("borderBottomRightRadius"),borderLeft:Z.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:Z.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:Z.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:Z.borders(["borderLeft","borderRight"]),borderInline:Z.borders("borderInline"),borderY:Z.borders(["borderTop","borderBottom"]),borderBlock:Z.borders("borderBlock"),borderTopWidth:Z.borderWidths("borderTopWidth"),borderBlockStartWidth:Z.borderWidths("borderBlockStartWidth"),borderTopColor:Z.colors("borderTopColor"),borderBlockStartColor:Z.colors("borderBlockStartColor"),borderTopStyle:Z.borderStyles("borderTopStyle"),borderBlockStartStyle:Z.borderStyles("borderBlockStartStyle"),borderBottomWidth:Z.borderWidths("borderBottomWidth"),borderBlockEndWidth:Z.borderWidths("borderBlockEndWidth"),borderBottomColor:Z.colors("borderBottomColor"),borderBlockEndColor:Z.colors("borderBlockEndColor"),borderBottomStyle:Z.borderStyles("borderBottomStyle"),borderBlockEndStyle:Z.borderStyles("borderBlockEndStyle"),borderLeftWidth:Z.borderWidths("borderLeftWidth"),borderInlineStartWidth:Z.borderWidths("borderInlineStartWidth"),borderLeftColor:Z.colors("borderLeftColor"),borderInlineStartColor:Z.colors("borderInlineStartColor"),borderLeftStyle:Z.borderStyles("borderLeftStyle"),borderInlineStartStyle:Z.borderStyles("borderInlineStartStyle"),borderRightWidth:Z.borderWidths("borderRightWidth"),borderInlineEndWidth:Z.borderWidths("borderInlineEndWidth"),borderRightColor:Z.colors("borderRightColor"),borderInlineEndColor:Z.colors("borderInlineEndColor"),borderRightStyle:Z.borderStyles("borderRightStyle"),borderInlineEndStyle:Z.borderStyles("borderInlineEndStyle"),borderTopRadius:Z.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:Z.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:Z.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:Z.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ie,{rounded:Ie.borderRadius,roundedTop:Ie.borderTopRadius,roundedTopLeft:Ie.borderTopLeftRadius,roundedTopRight:Ie.borderTopRightRadius,roundedTopStart:Ie.borderStartStartRadius,roundedTopEnd:Ie.borderStartEndRadius,roundedBottom:Ie.borderBottomRadius,roundedBottomLeft:Ie.borderBottomLeftRadius,roundedBottomRight:Ie.borderBottomRightRadius,roundedBottomStart:Ie.borderEndStartRadius,roundedBottomEnd:Ie.borderEndEndRadius,roundedLeft:Ie.borderLeftRadius,roundedRight:Ie.borderRightRadius,roundedStart:Ie.borderInlineStartRadius,roundedEnd:Ie.borderInlineEndRadius,borderStart:Ie.borderInlineStart,borderE