react-ui-kit-priyen
Version:
Reusable Component library for Ui Design System
44 lines (41 loc) • 569 kB
JavaScript
(function(N,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("react"),require("react-dom"),require("react-hook-form")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","react-hook-form"],C):(N=typeof globalThis<"u"?globalThis:N||self,C(N.ReactUiKit={},N.React,N.ReactDOM,N.reactHookForm))})(this,function(N,C,qo,lr){"use strict";function Ku(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=Ku(C),Xo=Ku(qo);var zs={exports:{}},Vr={};/**
* @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 qu;function P1(){if(qu)return Vr;qu=1;var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,l,u){var f,p={},g=null,m=null;u!==void 0&&(g=""+u),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(m=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(p[f]=l[f]);if(i&&i.defaultProps)for(f in l=i.defaultProps,l)p[f]===void 0&&(p[f]=l[f]);return{$$typeof:t,type:i,key:g,ref:m,props:p,_owner:o.current}}return Vr.Fragment=n,Vr.jsx=s,Vr.jsxs=s,Vr}var Br={};/**
* @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 Xu;function N1(){return Xu||(Xu=1,process.env.NODE_ENV!=="production"&&function(){var e=C,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function x(M){if(M===null||typeof M!="object")return null;var ee=v&&M[v]||M[h];return typeof ee=="function"?ee:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(M){{for(var ee=arguments.length,ie=new Array(ee>1?ee-1:0),ve=1;ve<ee;ve++)ie[ve-1]=arguments[ve];y("error",M,ie)}}function y(M,ee,ie){{var ve=w.ReactDebugCurrentFrame,Ie=ve.getStackAddendum();Ie!==""&&(ee+="%s",ie=ie.concat([Ie]));var Le=ie.map(function(Ne){return String(Ne)});Le.unshift("Warning: "+ee),Function.prototype.apply.call(console[M],console,Le)}}var E=!1,P=!1,R=!1,S=!1,D=!1,_;_=Symbol.for("react.module.reference");function k(M){return!!(typeof M=="string"||typeof M=="function"||M===r||M===a||D||M===o||M===u||M===f||S||M===m||E||P||R||typeof M=="object"&&M!==null&&(M.$$typeof===g||M.$$typeof===p||M.$$typeof===s||M.$$typeof===i||M.$$typeof===l||M.$$typeof===_||M.getModuleId!==void 0))}function T(M,ee,ie){var ve=M.displayName;if(ve)return ve;var Ie=ee.displayName||ee.name||"";return Ie!==""?ie+"("+Ie+")":ie}function O(M){return M.displayName||"Context"}function U(M){if(M==null)return null;if(typeof M.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case i:var ee=M;return O(ee)+".Consumer";case s:var ie=M;return O(ie._context)+".Provider";case l:return T(M,M.render,"ForwardRef");case p:var ve=M.displayName||null;return ve!==null?ve:U(M.type)||"Memo";case g:{var Ie=M,Le=Ie._payload,Ne=Ie._init;try{return U(Ne(Le))}catch{return null}}}return null}var j=Object.assign,Y=0,W,z,F,V,ae,se,L;function $(){}$.__reactDisabledLog=!0;function B(){{if(Y===0){W=console.log,z=console.info,F=console.warn,V=console.error,ae=console.group,se=console.groupCollapsed,L=console.groupEnd;var M={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:M,log:M,warn:M,error:M,group:M,groupCollapsed:M,groupEnd:M})}Y++}}function H(){{if(Y--,Y===0){var M={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},M,{value:W}),info:j({},M,{value:z}),warn:j({},M,{value:F}),error:j({},M,{value:V}),group:j({},M,{value:ae}),groupCollapsed:j({},M,{value:se}),groupEnd:j({},M,{value:L})})}Y<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=w.ReactCurrentDispatcher,I;function K(M,ee,ie){{if(I===void 0)try{throw Error()}catch(Ie){var ve=Ie.stack.trim().match(/\n( *(at )?)/);I=ve&&ve[1]||""}return`
`+I+M}}var Q=!1,ne;{var re=typeof WeakMap=="function"?WeakMap:Map;ne=new re}function Z(M,ee){if(!M||Q)return"";{var ie=ne.get(M);if(ie!==void 0)return ie}var ve;Q=!0;var Ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Le;Le=X.current,X.current=null,B();try{if(ee){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(Rt){ve=Rt}Reflect.construct(M,[],Ne)}else{try{Ne.call()}catch(Rt){ve=Rt}M.call(Ne.prototype)}}else{try{throw Error()}catch(Rt){ve=Rt}M()}}catch(Rt){if(Rt&&ve&&typeof Rt.stack=="string"){for(var Pe=Rt.stack.split(`
`),vt=ve.stack.split(`
`),et=Pe.length-1,nt=vt.length-1;et>=1&&nt>=0&&Pe[et]!==vt[nt];)nt--;for(;et>=1&&nt>=0;et--,nt--)if(Pe[et]!==vt[nt]){if(et!==1||nt!==1)do if(et--,nt--,nt<0||Pe[et]!==vt[nt]){var $t=`
`+Pe[et].replace(" at new "," at ");return M.displayName&&$t.includes("<anonymous>")&&($t=$t.replace("<anonymous>",M.displayName)),typeof M=="function"&&ne.set(M,$t),$t}while(et>=1&&nt>=0);break}}}finally{Q=!1,X.current=Le,H(),Error.prepareStackTrace=Ie}var zr=M?M.displayName||M.name:"",ir=zr?K(zr):"";return typeof M=="function"&&ne.set(M,ir),ir}function q(M,ee,ie){return Z(M,!1)}function te(M){var ee=M.prototype;return!!(ee&&ee.isReactComponent)}function oe(M,ee,ie){if(M==null)return"";if(typeof M=="function")return Z(M,te(M));if(typeof M=="string")return K(M);switch(M){case u:return K("Suspense");case f:return K("SuspenseList")}if(typeof M=="object")switch(M.$$typeof){case l:return q(M.render);case p:return oe(M.type,ee,ie);case g:{var ve=M,Ie=ve._payload,Le=ve._init;try{return oe(Le(Ie),ee,ie)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,ye={},he=w.ReactDebugCurrentFrame;function de(M){if(M){var ee=M._owner,ie=oe(M.type,M._source,ee?ee.type:null);he.setExtraStackFrame(ie)}else he.setExtraStackFrame(null)}function Te(M,ee,ie,ve,Ie){{var Le=Function.call.bind(me);for(var Ne in M)if(Le(M,Ne)){var Pe=void 0;try{if(typeof M[Ne]!="function"){var vt=Error((ve||"React class")+": "+ie+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof M[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Pe=M[Ne](ee,Ne,ve,ie,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(et){Pe=et}Pe&&!(Pe instanceof Error)&&(de(Ie),b("%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).",ve||"React class",ie,Ne,typeof Pe),de(null)),Pe instanceof Error&&!(Pe.message in ye)&&(ye[Pe.message]=!0,de(Ie),b("Failed %s type: %s",ie,Pe.message),de(null))}}}var Ve=Array.isArray;function De(M){return Ve(M)}function Ge(M){{var ee=typeof Symbol=="function"&&Symbol.toStringTag,ie=ee&&M[Symbol.toStringTag]||M.constructor.name||"Object";return ie}}function at(M){try{return st(M),!1}catch{return!0}}function st(M){return""+M}function je(M){if(at(M))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(M)),st(M)}var We=w.ReactCurrentOwner,un={key:!0,ref:!0,__self:!0,__source:!0},St,it;function gt(M){if(me.call(M,"ref")){var ee=Object.getOwnPropertyDescriptor(M,"ref").get;if(ee&&ee.isReactWarning)return!1}return M.ref!==void 0}function Dt(M){if(me.call(M,"key")){var ee=Object.getOwnPropertyDescriptor(M,"key").get;if(ee&&ee.isReactWarning)return!1}return M.key!==void 0}function tt(M,ee){typeof M.ref=="string"&&We.current}function ft(M,ee){{var ie=function(){St||(St=!0,b("%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)",ee))};ie.isReactWarning=!0,Object.defineProperty(M,"key",{get:ie,configurable:!0})}}function dn(M,ee){{var ie=function(){it||(it=!0,b("%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)",ee))};ie.isReactWarning=!0,Object.defineProperty(M,"ref",{get:ie,configurable:!0})}}var Ot=function(M,ee,ie,ve,Ie,Le,Ne){var Pe={$$typeof:t,type:M,key:ee,ref:ie,props:Ne,_owner:Le};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function sr(M,ee,ie,ve,Ie){{var Le,Ne={},Pe=null,vt=null;ie!==void 0&&(je(ie),Pe=""+ie),Dt(ee)&&(je(ee.key),Pe=""+ee.key),gt(ee)&&(vt=ee.ref,tt(ee,Ie));for(Le in ee)me.call(ee,Le)&&!un.hasOwnProperty(Le)&&(Ne[Le]=ee[Le]);if(M&&M.defaultProps){var et=M.defaultProps;for(Le in et)Ne[Le]===void 0&&(Ne[Le]=et[Le])}if(Pe||vt){var nt=typeof M=="function"?M.displayName||M.name||"Unknown":M;Pe&&ft(Ne,nt),vt&&dn(Ne,nt)}return Ot(M,Pe,vt,Ie,ve,We.current,Ne)}}var ue=w.ReactCurrentOwner,Se=w.ReactDebugCurrentFrame;function Ee(M){if(M){var ee=M._owner,ie=oe(M.type,M._source,ee?ee.type:null);Se.setExtraStackFrame(ie)}else Se.setExtraStackFrame(null)}var _e;_e=!1;function Ce(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function $e(){{if(ue.current){var M=U(ue.current.type);if(M)return`
Check the render method of \``+M+"`."}return""}}function Qe(M){return""}var le={};function we(M){{var ee=$e();if(!ee){var ie=typeof M=="string"?M:M.displayName||M.name;ie&&(ee=`
Check the top-level render call using <`+ie+">.")}return ee}}function Re(M,ee){{if(!M._store||M._store.validated||M.key!=null)return;M._store.validated=!0;var ie=we(ee);if(le[ie])return;le[ie]=!0;var ve="";M&&M._owner&&M._owner!==ue.current&&(ve=" It was passed a child from "+U(M._owner.type)+"."),Ee(M),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ie,ve),Ee(null)}}function Ze(M,ee){{if(typeof M!="object")return;if(De(M))for(var ie=0;ie<M.length;ie++){var ve=M[ie];Ce(ve)&&Re(ve,ee)}else if(Ce(M))M._store&&(M._store.validated=!0);else if(M){var Ie=x(M);if(typeof Ie=="function"&&Ie!==M.entries)for(var Le=Ie.call(M),Ne;!(Ne=Le.next()).done;)Ce(Ne.value)&&Re(Ne.value,ee)}}}function Ke(M){{var ee=M.type;if(ee==null||typeof ee=="string")return;var ie;if(typeof ee=="function")ie=ee.propTypes;else if(typeof ee=="object"&&(ee.$$typeof===l||ee.$$typeof===p))ie=ee.propTypes;else return;if(ie){var ve=U(ee);Te(ie,M.props,"prop",ve,M)}else if(ee.PropTypes!==void 0&&!_e){_e=!0;var Ie=U(ee);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof ee.getDefaultProps=="function"&&!ee.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ht(M){{for(var ee=Object.keys(M.props),ie=0;ie<ee.length;ie++){var ve=ee[ie];if(ve!=="children"&&ve!=="key"){Ee(M),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Ee(null);break}}M.ref!==null&&(Ee(M),b("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var It={};function Et(M,ee,ie,ve,Ie,Le){{var Ne=k(M);if(!Ne){var Pe="";(M===void 0||typeof M=="object"&&M!==null&&Object.keys(M).length===0)&&(Pe+=" 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 vt=Qe();vt?Pe+=vt:Pe+=$e();var et;M===null?et="null":De(M)?et="array":M!==void 0&&M.$$typeof===t?(et="<"+(U(M.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):et=typeof M,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Pe)}var nt=sr(M,ee,ie,Ie,Le);if(nt==null)return nt;if(Ne){var $t=ee.children;if($t!==void 0)if(ve)if(De($t)){for(var zr=0;zr<$t.length;zr++)Ze($t[zr],M);Object.freeze&&Object.freeze($t)}else b("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 Ze($t,M)}if(me.call(ee,"key")){var ir=U(M),Rt=Object.keys(ee).filter(function(v5){return v5!=="key"}),Yu=Rt.length>0?"{key: someKey, "+Rt.join(": ..., ")+": ...}":"{key: someKey}";if(!It[ir+Yu]){var h5=Rt.length>0?"{"+Rt.join(": ..., ")+": ...}":"{}";b(`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} />`,Yu,ir,h5,ir),It[ir+Yu]=!0}}return M===r?ht(nt):Ke(nt),nt}}function fn(M,ee,ie){return Et(M,ee,ie,!0)}function p5(M,ee,ie){return Et(M,ee,ie,!1)}var m5=p5,g5=fn;Br.Fragment=r,Br.jsx=m5,Br.jsxs=g5}()),Br}process.env.NODE_ENV==="production"?zs.exports=P1():zs.exports=N1();var c=zs.exports;function Zu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Zu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ju(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Zu(e))&&(r&&(r+=" "),r+=t);return r}const Vs="-",M1=e=>{const t=T1(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const i=s.split(Vs);return i[0]===""&&i.length!==1&&i.shift(),Qu(i,t)||_1(s)},getConflictingClassGroupIds:(s,i)=>{const l=n[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},Qu=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Qu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Vs);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ed=/^\[(.+)\]$/,_1=e=>{if(ed.test(e)){const t=ed.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},T1=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return I1(Object.entries(e.classGroups),n).forEach(([a,s])=>{Bs(s,r,a,t)}),r},Bs=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:td(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(D1(o)){Bs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{Bs(s,td(t,a),n,r)})})},td=(e,t)=>{let n=e;return t.split(Vs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},D1=e=>e.isThemeGetter,I1=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[n,o]}):e,A1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,s)=>{n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}},nd="!",j1=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,s=i=>{const l=[];let u=0,f=0,p;for(let x=0;x<i.length;x++){let w=i[x];if(u===0){if(w===o&&(r||i.slice(x,x+a)===t)){l.push(i.slice(f,x)),f=x+a;continue}if(w==="/"){p=x;continue}}w==="["?u++:w==="]"&&u--}const g=l.length===0?i:i.substring(f),m=g.startsWith(nd),v=m?g.substring(1):g,h=p&&p>f?p-f:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:h}};return n?i=>n({className:i,parseClassName:s}):s},k1=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},O1=e=>({cache:A1(e.cacheSize),parseClassName:j1(e),...M1(e)}),$1=/\s+/,L1=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split($1);let i="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=n(u);let v=!!m,h=r(v?g.substring(0,m):g);if(!h){if(!v){i=u+(i.length>0?" "+i:i);continue}if(h=r(g),!h){i=u+(i.length>0?" "+i:i);continue}v=!1}const x=k1(f).join(":"),w=p?x+nd:x,b=w+h;if(a.includes(b))continue;a.push(b);const y=o(h,v);for(let E=0;E<y.length;++E){const P=y[E];a.push(w+P)}i=u+(i.length>0?" "+i:i)}return i};function F1(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rd(t))&&(r&&(r+=" "),r+=n);return r}const rd=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rd(e[r]))&&(n&&(n+=" "),n+=t);return n};function z1(e,...t){let n,r,o,a=s;function s(l){const u=t.reduce((f,p)=>p(f),e());return n=O1(u),r=n.cache.get,o=n.cache.set,a=i,i(l)}function i(l){const u=r(l);if(u)return u;const f=L1(l,n);return o(l,f),f}return function(){return a(F1.apply(null,arguments))}}const Be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},od=/^\[(?:([a-z-]+):)?(.+)\]$/i,V1=/^\d+\/\d+$/,B1=new Set(["px","full","screen"]),H1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G1=/\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$/,W1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,U1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pn=e=>cr(e)||B1.has(e)||V1.test(e),bn=e=>ur(e,"length",tC),cr=e=>!!e&&!Number.isNaN(Number(e)),Hs=e=>ur(e,"number",cr),Hr=e=>!!e&&Number.isInteger(Number(e)),K1=e=>e.endsWith("%")&&cr(e.slice(0,-1)),xe=e=>od.test(e),yn=e=>H1.test(e),q1=new Set(["length","size","percentage"]),X1=e=>ur(e,q1,ad),Z1=e=>ur(e,"position",ad),J1=new Set(["image","url"]),Q1=e=>ur(e,J1,rC),eC=e=>ur(e,"",nC),Gr=()=>!0,ur=(e,t,n)=>{const r=od.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},tC=e=>G1.test(e)&&!W1.test(e),ad=()=>!1,nC=e=>U1.test(e),rC=e=>Y1.test(e),oC=z1(()=>{const e=Be("colors"),t=Be("spacing"),n=Be("blur"),r=Be("brightness"),o=Be("borderColor"),a=Be("borderRadius"),s=Be("borderSpacing"),i=Be("borderWidth"),l=Be("contrast"),u=Be("grayscale"),f=Be("hueRotate"),p=Be("invert"),g=Be("gap"),m=Be("gradientColorStops"),v=Be("gradientColorStopPositions"),h=Be("inset"),x=Be("margin"),w=Be("opacity"),b=Be("padding"),y=Be("saturate"),E=Be("scale"),P=Be("sepia"),R=Be("skew"),S=Be("space"),D=Be("translate"),_=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",xe,t],O=()=>[xe,t],U=()=>["",pn,bn],j=()=>["auto",cr,xe],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",xe],ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[cr,xe];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[pn,bn],blur:["none","",yn,xe],brightness:se(),borderColor:[e],borderRadius:["none","","full",yn,xe],borderSpacing:O(),borderWidth:U(),contrast:se(),grayscale:V(),hueRotate:se(),invert:V(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[K1,bn],inset:T(),margin:T(),opacity:se(),padding:O(),saturate:se(),scale:se(),sepia:V(),skew:se(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",xe]}],container:["container"],columns:[{columns:[yn]}],"break-after":[{"break-after":ae()}],"break-before":[{"break-before":ae()}],"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"],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:[...Y(),xe]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hr,xe]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",xe]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",Hr,xe]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Hr,xe]},xe]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Hr,xe]},xe]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",xe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",xe]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...F()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...F(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...F(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],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":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",xe,t]}],"min-w":[{"min-w":[xe,t,"min","max","fit"]}],"max-w":[{"max-w":[xe,t,"none","full","min","max","fit","prose",{screen:[yn]},yn]}],h:[{h:[xe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[xe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[xe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[xe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hs]}],"font-family":[{font:[Gr]}],"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:["tighter","tight","normal","wide","wider","widest",xe]}],"line-clamp":[{"line-clamp":["none",cr,Hs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pn,xe]}],"list-image":[{"list-image":["none",xe]}],"list-style-type":[{list:["none","disc","decimal",xe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pn,bn]}],"underline-offset":[{"underline-offset":["auto",pn,xe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Z1]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X1]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Q1]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:W()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[pn,xe]}],"outline-w":[{outline:[pn,bn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[pn,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yn,eC]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",yn,xe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[y]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",xe]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",xe]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",xe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Hr,xe]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",xe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",xe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pn,bn,Hs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}});function A(...e){return oC(Ju(e))}const Zo=d.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:A("flex h-[48px] w-full text-black leading-5 text-[14px] font-normal rounded-lg border border-solid border-[#E8E9EB] bg-white pl-4 pr-3 py-3 text-sm placeholder:text-[#C7CBD1] focus-visible:outline-none disabled:cursor-not-allowed disabled:bg-[#F7F8FA]",e),ref:r,...n}));Zo.displayName="Input";function aC(e,t){const n=d.createContext(t),r=a=>{const{children:s,...i}=a,l=d.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(a){const s=d.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function Fe(e,t=[]){let n=[];function r(a,s){const i=d.createContext(s),l=n.length;n=[...n,s];const u=p=>{var w;const{scope:g,children:m,...v}=p,h=((w=g==null?void 0:g[e])==null?void 0:w[l])||i,x=d.useMemo(()=>v,Object.values(v));return c.jsx(h.Provider,{value:x,children:m})};u.displayName=a+"Provider";function f(p,g){var h;const m=((h=g==null?void 0:g[e])==null?void 0:h[l])||i,v=d.useContext(m);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=n.map(s=>d.createContext(s));return function(i){const l=(i==null?void 0:i[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,sC(o,...t)]}function sC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((i,{useScope:l,scopeName:u})=>{const p=l(a)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function sd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=sd(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():sd(e[o],null)}}}}function ce(...e){return d.useCallback(Zt(...e),e)}function Cn(e){const t=iC(e),n=d.forwardRef((r,o)=>{const{children:a,...s}=r,i=d.Children.toArray(a),l=i.find(lC);if(l){const u=l.props.children,f=i.map(p=>p===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return c.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...s,ref:o,children:a})});return n.displayName=`${e}.Slot`,n}var Gs=Cn("Slot");function iC(e){const t=d.forwardRef((n,r)=>{const{children:o,...a}=n;if(d.isValidElement(o)){const s=uC(o),i=cC(a,o.props);return o.type!==d.Fragment&&(i.ref=r?Zt(r,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var id=Symbol("radix.slottable");function ld(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=id,t}function lC(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===id}function cC(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...i)=>{const l=a(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function uC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Sn(e){const t=e+"CollectionProvider",[n,r]=Fe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:x,children:w}=h,b=C.useRef(null),y=C.useRef(new Map).current;return c.jsx(o,{scope:x,itemMap:y,collectionRef:b,children:w})};s.displayName=t;const i=e+"CollectionSlot",l=Cn(i),u=C.forwardRef((h,x)=>{const{scope:w,children:b}=h,y=a(i,w),E=ce(x,y.collectionRef);return c.jsx(l,{ref:E,children:b})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=Cn(f),m=C.forwardRef((h,x)=>{const{scope:w,children:b,...y}=h,E=C.useRef(null),P=ce(x,E),R=a(f,w);return C.useEffect(()=>(R.itemMap.set(E,{ref:E,...y}),()=>void R.itemMap.delete(E))),c.jsx(g,{[p]:"",ref:P,children:b})});m.displayName=f;function v(h){const x=a(e+"CollectionConsumer",h);return C.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((R,S)=>y.indexOf(R.ref.current)-y.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},v,r]}function G(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Ue=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},dC=d[" useInsertionEffect ".trim().toString()]||Ue;function He({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,s]=fC({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=d.useCallback(f=>{var p;if(i){const g=pC(f)?f(e):f;g!==e&&((p=s.current)==null||p.call(s,g))}else a(f)},[i,e,a,s]);return[l,u]}function fC({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),a=d.useRef(t);return dC(()=>{a.current=t},[t]),d.useEffect(()=>{var s;o.current!==n&&((s=a.current)==null||s.call(a,n),o.current=n)},[n,o]),[n,r,a]}function pC(e){return typeof e=="function"}var mC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=mC.reduce((e,t)=>{const n=Cn(`Primitive.${t}`),r=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Jo(e,t){e&&Xo.flushSync(()=>e.dispatchEvent(t))}function gC(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Ye=e=>{const{present:t,children:n}=e,r=hC(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),a=ce(r.ref,vC(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:a}):null};Ye.displayName="Presence";function hC(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,l]=gC(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=Qo(r.current);a.current=i==="mounted"?u:"none"},[i]),Ue(()=>{const u=r.current,f=o.current;if(f!==e){const g=a.current,m=Qo(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ue(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const h=Qo(r.current).includes(m.animationName);if(m.target===t&&h&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},g=m=>{m.target===t&&(a.current=Qo(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Qo(e){return(e==null?void 0:e.animationName)||"none"}function vC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wC=d[" useId ".trim().toString()]||(()=>{}),xC=0;function ke(e){const[t,n]=d.useState(wC());return Ue(()=>{n(r=>r??String(xC++))},[e]),e||(t?`radix-${t}`:"")}var ea="Collapsible",[bC,cd]=Fe(ea),[yC,Ws]=bC(ea),ud=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[l,u]=He({prop:r,defaultProp:o??!1,onChange:s,caller:ea});return c.jsx(yC,{scope:n,disabled:a,contentId:ke(),open:l,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:c.jsx(J.div,{"data-state":qs(l),"data-disabled":a?"":void 0,...i,ref:t})})});ud.displayName=ea;var dd="CollapsibleTrigger",Us=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Ws(dd,n);return c.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":qs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:G(e.onClick,o.onOpenToggle)})});Us.displayName=dd;var Ys="CollapsibleContent",Ks=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ws(Ys,e.__scopeCollapsible);return c.jsx(Ye,{present:n||o.open,children:({present:a})=>c.jsx(CC,{...r,ref:t,present:a})})});Ks.displayName=Ys;var CC=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...a}=e,s=Ws(Ys,n),[i,l]=d.useState(r),u=d.useRef(null),f=ce(t,u),p=d.useRef(0),g=p.current,m=d.useRef(0),v=m.current,h=s.open||i,x=d.useRef(h),w=d.useRef(void 0);return d.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),Ue(()=>{const b=u.current;if(b){w.current=w.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const y=b.getBoundingClientRect();p.current=y.height,m.current=y.width,x.current||(b.style.transitionDuration=w.current.transitionDuration,b.style.animationName=w.current.animationName),l(r)}},[s.open,r]),c.jsx(J.div,{"data-state":qs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!h,...a,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:h&&o})});function qs(e){return e?"open":"closed"}var fd=ud,SC=Us,EC=Ks,RC=d.createContext(void 0);function Lt(e){const t=d.useContext(RC);return e||t||"ltr"}var Ft="Accordion",PC=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Xs,NC,MC]=Sn(Ft),[ta,x5]=Fe(Ft,[MC,cd]),Zs=cd(),pd=C.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,a=r;return c.jsx(Xs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?c.jsx(IC,{...a,ref:t}):c.jsx(DC,{...o,ref:t})})});pd.displayName=Ft;var[md,_C]=ta(Ft),[gd,TC]=ta(Ft,{collapsible:!1}),DC=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,l]=He({prop:n,defaultProp:r??"",onChange:o,caller:Ft});return c.jsx(md,{scope:e.__scopeAccordion,value:C.useMemo(()=>i?[i]:[],[i]),onItemOpen:l,onItemClose:C.useCallback(()=>a&&l(""),[a,l]),children:c.jsx(gd,{scope:e.__scopeAccordion,collapsible:a,children:c.jsx(hd,{...s,ref:t})})})}),IC=C.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...a}=e,[s,i]=He({prop:n,defaultProp:r??[],onChange:o,caller:Ft}),l=C.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=C.useCallback(f=>i((p=[])=>p.filter(g=>g!==f)),[i]);return c.jsx(md,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:c.jsx(gd,{scope:e.__scopeAccordion,collapsible:!0,children:c.jsx(hd,{...a,ref:t})})})}),[AC,na]=ta(Ft),hd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:a="vertical",...s}=e,i=C.useRef(null),l=ce(i,t),u=NC(n),p=Lt(o)==="ltr",g=G(e.onKeyDown,m=>{var D;if(!PC.includes(m.key))return;const v=m.target,h=u().filter(_=>{var k;return!((k=_.ref.current)!=null&&k.disabled)}),x=h.findIndex(_=>_.ref.current===v),w=h.length;if(x===-1)return;m.preventDefault();let b=x;const y=0,E=w-1,P=()=>{b=x+1,b>E&&(b=y)},R=()=>{b=x-1,b<y&&(b=E)};switch(m.key){case"Home":b=y;break;case"End":b=E;break;case"ArrowRight":a==="horizontal"&&(p?P():R());break;case"ArrowDown":a==="vertical"&&P();break;case"ArrowLeft":a==="horizontal"&&(p?R():P());break;case"ArrowUp":a==="vertical"&&R();break}const S=b%w;(D=h[S].ref.current)==null||D.focus()});return c.jsx(AC,{scope:n,disabled:r,direction:o,orientation:a,children:c.jsx(Xs.Slot,{scope:n,children:c.jsx(J.div,{...s,"data-orientation":a,ref:l,onKeyDown:r?void 0:g})})})}),ra="AccordionItem",[jC,Js]=ta(ra),vd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,a=na(ra,n),s=_C(ra,n),i=Zs(n),l=ke(),u=r&&s.value.includes(r)||!1,f=a.disabled||e.disabled;return c.jsx(jC,{scope:n,open:u,disabled:f,triggerId:l,children:c.jsx(fd,{"data-orientation":a.orientation,"data-state":Sd(u),...i,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?s.onItemOpen(r):s.onItemClose(r)}})})});vd.displayName=ra;var wd="AccordionHeader",xd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=na(Ft,n),a=Js(wd,n);return c.jsx(J.h3,{"data-orientation":o.orientation,"data-state":Sd(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});xd.displayName=wd;var Qs="AccordionTrigger",bd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=na(Ft,n),a=Js(Qs,n),s=TC(Qs,n),i=Zs(n);return c.jsx(Xs.ItemSlot,{scope:n,children:c.jsx(SC,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...r,ref:t})})});bd.displayName=Qs;var yd="AccordionContent",Cd=C.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=na(Ft,n),a=Js(yd,n),s=Zs(n);return c.jsx(EC,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Cd.displayName=yd;function Sd(e){return e?"open":"closed"}var kC=pd,OC=vd,$C=xd,Ed=bd,Rd=Cd;/**
* @license lucide-react v0.377.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pd=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
* @license lucide-react v0.377.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var FC={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"};/**
* @license lucide-react v0.377.0 - ISC
*
* This source code is licensed under the ISC license.