@gyramais/gyra-design 0.2.37 → 0.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/components/Filter/index.js +1 -1
  2. package/dist/components/Filter/index.js.map +1 -1
  3. package/dist/components/Information/index.js +1 -1
  4. package/dist/components/Information/index.js.map +1 -1
  5. package/dist/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  6. package/dist/components/RuleSearchPicker/index.js +7 -7
  7. package/dist/components/RuleSearchPicker/index.js.map +1 -1
  8. package/dist/components/SegmentedToggle/index.js +7 -0
  9. package/dist/components/SegmentedToggle/index.js.map +1 -0
  10. package/dist/components/Select/index.js +45 -0
  11. package/dist/components/Select/index.js.map +1 -0
  12. package/dist/components/SelectTree/index.js +50 -0
  13. package/dist/components/SelectTree/index.js.map +1 -0
  14. package/dist/components/Selector/index.js +7 -0
  15. package/dist/components/Selector/index.js.map +1 -0
  16. package/dist/components/StatusTag/index.js +7 -0
  17. package/dist/components/StatusTag/index.js.map +1 -0
  18. package/dist/components/Stepper/index.js +7 -0
  19. package/dist/components/Stepper/index.js.map +1 -0
  20. package/dist/components/Switch/index.js +7 -0
  21. package/dist/components/Switch/index.js.map +1 -0
  22. package/dist/components/SyncChip/index.js +45 -0
  23. package/dist/components/SyncChip/index.js.map +1 -0
  24. package/dist/components/Table/index.js +45 -0
  25. package/dist/components/Table/index.js.map +1 -0
  26. package/dist/components/Tabs/index.js +7 -0
  27. package/dist/components/Tabs/index.js.map +1 -0
  28. package/dist/components/Tag/index.js +7 -0
  29. package/dist/components/Tag/index.js.map +1 -0
  30. package/dist/components/Toast/index.js +2 -0
  31. package/dist/components/Toast/index.js.map +1 -0
  32. package/dist/components/Tooltip/Tooltip.d.ts +2 -3
  33. package/dist/components/Tooltip/index.js +7 -0
  34. package/dist/components/Tooltip/index.js.map +1 -0
  35. package/dist/components/TourGuide/index.js +7 -0
  36. package/dist/components/TourGuide/index.js.map +1 -0
  37. package/dist/components/Waypoint/index.js +24 -0
  38. package/dist/components/Waypoint/index.js.map +1 -0
  39. package/dist/emails/balance-sheet-finalized/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  40. package/dist/emails/balance-sheet-finalized/components/Tooltip/Tooltip.d.ts +2 -3
  41. package/dist/emails/email/components/RuleSearchPicker/RuleSearchPicker.d.ts +3 -0
  42. package/dist/emails/email/components/Tooltip/Tooltip.d.ts +2 -3
  43. package/dist/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  44. package/dist/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  45. package/dist/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  46. package/dist/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  47. package/dist/fonts/Inter-Variable-latin-ext.woff2 +0 -0
  48. package/dist/fonts/Inter-Variable-latin.woff2 +0 -0
  49. package/dist/fonts/Lexend-Variable-latin-ext.woff2 +0 -0
  50. package/dist/fonts/Lexend-Variable-latin.woff2 +0 -0
  51. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use client";import t,{forwardRef as e,useEffect as n,useRef as o,useLayoutEffect as s,useReducer as a,useState as r,isValidElement as i,cloneElement as l}from"react";function c(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=c(t[e]))&&(o&&(o+=" "),o+=n);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}function u(){for(var t,e,n=0,o="";n<arguments.length;)(t=arguments[n++])&&(e=c(t))&&(o&&(o+=" "),o+=e);return o}const d=t=>"number"==typeof t&&!isNaN(t),p=t=>"string"==typeof t,m=t=>"function"==typeof t,f=t=>p(t)||m(t)?t:null,g=t=>i(t)||p(t)||m(t)||d(t);function h(e){let{enter:a,exit:r,appendPosition:i=!1,collapse:l=!0,collapseDuration:c=300}=e;return function(e){let{children:u,position:d,preventExitTransition:p,done:m,nodeRef:f,isIn:g}=e;const h=i?`${a}--${d}`:a,y=i?`${r}--${d}`:r,v=o(0);return s(()=>{const t=f.current,e=h.split(" "),n=o=>{o.target===f.current&&(t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",n),t.removeEventListener("animationcancel",n),0===v.current&&"animationcancel"!==o.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",n),t.addEventListener("animationcancel",n)},[]),n(()=>{const t=f.current,e=()=>{t.removeEventListener("animationend",e),l?function(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=t;requestAnimationFrame(()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(e,n)})})}(t,m,c):m()};g||(p?e():(v.current=1,t.className+=` ${y}`,t.addEventListener("animationend",e)))},[g]),t.createElement(t.Fragment,null,u)}}function y(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const v={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(t=>t!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},T=e=>{let{theme:n,type:o,...s}=e;return t.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${o})`,...s})},E={info:function(e){return t.createElement(T,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(T,{...e},t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(T,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(T,{...e},t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function C(t){const[,e]=a(t=>t+1,0),[s,c]=r([]),u=o(null),h=o(new Map).current,T=t=>-1!==s.indexOf(t),C=o({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:T,getToast:t=>h.get(t)}).current;function b(t){let{containerId:e}=t;const{limit:n}=C.props;!n||e&&C.containerId!==e||(C.count-=C.queue.length,C.queue=[])}function I(t){c(e=>null==t?[]:e.filter(e=>e!==t))}function _(){const{toastContent:t,toastProps:e,staleId:n}=C.queue.shift();O(t,e,n)}function L(t,n){let{delay:o,staleId:s,...a}=n;if(!g(t)||function(t){return!u.current||C.props.enableMultiContainer&&t.containerId!==C.props.containerId||h.has(t.toastId)&&null==t.updateId}(a))return;const{toastId:r,updateId:c,data:T}=a,{props:b}=C,L=()=>I(r),N=null==c;N&&C.count++;const M={...b,style:b.toastStyle,key:C.toastKey++,...Object.fromEntries(Object.entries(a).filter(t=>{let[e,n]=t;return null!=n})),toastId:r,updateId:c,data:T,closeToast:L,isIn:!1,className:f(a.className||b.toastClassName),bodyClassName:f(a.bodyClassName||b.bodyClassName),progressClassName:f(a.progressClassName||b.progressClassName),autoClose:!a.isLoading&&(R=a.autoClose,w=b.autoClose,!1===R||d(R)&&R>0?R:w),deleteToast(){const t=y(h.get(r),"removed");h.delete(r),v.emit(4,t);const n=C.queue.length;if(C.count=null==r?C.count-C.displayedToast:C.count-1,C.count<0&&(C.count=0),n>0){const t=null==r?C.props.limit:1;if(1===n||1===t)C.displayedToast++,_();else{const e=t>n?n:t;C.displayedToast=e;for(let t=0;t<e;t++)_()}}else e()}};var R,w;M.iconOut=function(t){let{theme:e,type:n,isLoading:o,icon:s}=t,a=null;const r={theme:e,type:n};return!1===s||(m(s)?a=s(r):i(s)?a=l(s,r):p(s)||d(s)?a=s:o?a=E.spinner():(t=>t in E)(n)&&(a=E[n](r))),a}(M),m(a.onOpen)&&(M.onOpen=a.onOpen),m(a.onClose)&&(M.onClose=a.onClose),M.closeButton=b.closeButton,!1===a.closeButton||g(a.closeButton)?M.closeButton=a.closeButton:!0===a.closeButton&&(M.closeButton=!g(b.closeButton)||b.closeButton);let x=t;i(t)&&!p(t.type)?x=l(t,{closeToast:L,toastProps:M,data:T}):m(t)&&(x=t({closeToast:L,toastProps:M,data:T})),b.limit&&b.limit>0&&C.count>b.limit&&N?C.queue.push({toastContent:x,toastProps:M,staleId:s}):d(o)?setTimeout(()=>{O(x,M,s)},o):O(x,M,s)}function O(t,e,n){const{toastId:o}=e;n&&h.delete(n);const s={content:t,props:e};h.set(o,s),c(t=>[...t,o].filter(t=>t!==n)),v.emit(4,y(s,null==s.props.updateId?"added":"updated"))}return n(()=>(C.containerId=t.containerId,v.cancelEmit(3).on(0,L).on(1,t=>u.current&&I(t)).on(5,b).emit(2,C),()=>{h.clear(),v.emit(3,C)}),[]),n(()=>{C.props=t,C.isToastActive=T,C.displayedToast=s.length}),{getToastToRender:function(e){const n=new Map,o=Array.from(h.values());return t.newestOnTop&&o.reverse(),o.forEach(t=>{const{position:e}=t.props;n.has(e)||n.set(e,[]),n.get(e).push(t)}),Array.from(n,t=>e(t[0],t[1]))},containerRef:u,isToastActive:T}}function b(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function I(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function _(t){const[e,s]=r(!1),[a,l]=r(!1),c=o(null),u=o({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=o(t),{autoClose:p,pauseOnHover:f,closeToast:g,onClick:h,closeOnClick:y}=t;function v(e){if(t.draggable){"touchstart"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",_),document.addEventListener("mouseup",L),document.addEventListener("touchmove",_),document.addEventListener("touchend",L);const n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=b(e.nativeEvent),u.y=I(e.nativeEvent),"x"===t.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function T(e){if(u.boundingRect){const{top:n,bottom:o,left:s,right:a}=u.boundingRect;"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&u.x>=s&&u.x<=a&&u.y>=n&&u.y<=o?C():E()}}function E(){s(!0)}function C(){s(!1)}function _(n){const o=c.current;u.canDrag&&o&&(u.didMove=!0,e&&C(),u.x=b(n),u.y=I(n),u.delta="x"===t.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),o.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,o.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function L(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",L),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",L);const e=c.current;if(u.canDrag&&u.didMove&&e){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return l(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity="1"}}n(()=>{d.current=t}),n(()=>(c.current&&c.current.addEventListener("d",E,{once:!0}),m(t.onOpen)&&t.onOpen(i(t.children)&&t.children.props),()=>{const t=d.current;m(t.onClose)&&t.onClose(i(t.children)&&t.children.props)}),[]),n(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener("focus",E),window.addEventListener("blur",C)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",E),window.removeEventListener("blur",C))}),[t.pauseOnFocusLoss]);const O={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return p&&f&&(O.onMouseEnter=C,O.onMouseLeave=E),y&&(O.onClick=t=>{h&&h(t),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:C,isRunning:e,preventExitTransition:a,toastRef:c,eventHandlers:O}}function L(e){let{closeToast:n,theme:o,ariaLabel:s="close"}=e;return t.createElement("button",{className:`Toastify__close-button Toastify__close-button--${o}`,type:"button",onClick:t=>{t.stopPropagation(),n(t)},"aria-label":s},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(e){let{delay:n,isRunning:o,closeToast:s,type:a="default",hide:r,className:i,style:l,controlledProgress:c,progress:d,rtl:p,isIn:f,theme:g}=e;const h=r||c&&0===d,y={...l,animationDuration:`${n}ms`,animationPlayState:o?"running":"paused",opacity:h?0:1};c&&(y.transform=`scaleX(${d})`);const v=u("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),T=m(i)?i({rtl:p,type:a,defaultClassName:v}):u(v,i);return t.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{f&&s()}})}const N=e=>{const{isRunning:n,preventExitTransition:o,toastRef:s,eventHandlers:a}=_(e),{closeButton:r,children:c,autoClose:d,onClick:p,type:f,hideProgressBar:g,closeToast:h,transition:y,position:v,className:T,style:E,bodyClassName:C,bodyStyle:b,progressClassName:I,progressStyle:N,updateId:M,role:R,progress:w,rtl:x,toastId:$,deleteToast:k,isIn:P,isLoading:B,iconOut:A,closeOnClick:D,theme:z}=e,F=u("Toastify__toast",`Toastify__toast-theme--${z}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":D}),H=m(T)?T({rtl:x,position:v,type:f,defaultClassName:F}):u(F,T),S=!!w||!d,q={closeToast:h,type:f,theme:z};let Q=null;return!1===r||(Q=m(r)?r(q):i(r)?l(r,q):L(q)),t.createElement(y,{isIn:P,done:k,position:v,preventExitTransition:o,nodeRef:s},t.createElement("div",{id:$,onClick:p,className:H,...a,style:E,ref:s},t.createElement("div",{...P&&{role:R},className:m(C)?C({type:f}):u("Toastify__toast-body",C),style:b},null!=A&&t.createElement("div",{className:u("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},A),t.createElement("div",null,c)),Q,t.createElement(O,{...M&&!S?{key:`pb-${M}`}:{},rtl:x,theme:z,delay:d,isRunning:n,isIn:P,closeToast:h,hide:g,type:f,style:N,className:I,controlledProgress:S,progress:w||0})))},M=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},R=h(M("bounce",!0));h(M("slide",!0)),h(M("zoom")),h(M("flip"));const w=e((e,o)=>{const{getToastToRender:s,containerRef:a,isToastActive:r}=C(e),{className:i,style:l,rtl:c,containerId:d}=e;function p(t){const e=u("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":c});return m(i)?i({position:t,rtl:c,defaultClassName:e}):u(e,f(i))}return n(()=>{o&&(o.current=a.current)},[]),t.createElement("div",{ref:a,className:"Toastify",id:d},s((e,n)=>{const o=n.length?{...l}:{...l,pointerEvents:"none"};return t.createElement("div",{className:p(e),style:o,key:`container-${e}`},n.map((e,o)=>{let{content:s,props:a}=e;return t.createElement(N,{...a,isIn:r(a.toastId),style:{...a.style,"--nth":o+1,"--len":n.length},key:`toast-${a.key}`},s)}))}))});w.displayName="ToastContainer",w.defaultProps={position:"top-right",transition:R,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,$=new Map,k=[],P=1;function B(){return""+P++}function A(t){return t&&(p(t.toastId)||d(t.toastId))?t.toastId:B()}function D(t,e){return $.size>0?v.emit(0,t,e):k.push({content:t,options:e}),e.toastId}function z(t,e){return{...e,type:e&&e.type||t,toastId:A(e)}}function F(t){return(e,n)=>D(e,z(t,n))}function H(t,e){return D(t,z("default",e))}function S(){return t.createElement(w,null)}H.loading=(t,e)=>D(t,z("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),H.promise=function(t,e,n){let o,{pending:s,error:a,success:r}=e;s&&(o=p(s)?H.loading(s,n):H.loading(s.render,{...n,...s}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(t,e,s)=>{if(null==e)return void H.dismiss(o);const a={type:t,...i,...n,data:s},r=p(e)?{render:e}:e;return o?H.update(o,{...a,...r}):H(r.render,{...a,...r}),s},c=m(t)?t():t;return c.then(t=>l("success",r,t)).catch(t=>l("error",a,t)),c},H.success=F("success"),H.info=F("info"),H.error=F("error"),H.warning=F("warning"),H.warn=H.warning,H.dark=(t,e)=>D(t,z("default",{theme:"dark",...e})),H.dismiss=t=>{$.size>0?v.emit(1,t):k=k.filter(e=>null!=t&&e.options.toastId!==t)},H.clearWaitingQueue=function(t){return void 0===t&&(t={}),v.emit(5,t)},H.isActive=t=>{let e=!1;return $.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},H.update=function(t,e){void 0===e&&(e={}),setTimeout(()=>{const n=function(t,e){let{containerId:n}=e;const o=$.get(n||x);return o&&o.getToast(t)}(t,e);if(n){const{props:o,content:s}=n,a={delay:100,...o,...e,toastId:e.toastId||t,updateId:B()};a.toastId!==t&&(a.staleId=t);const r=a.render||s;delete a.render,D(r,a)}},0)},H.done=t=>{H.update(t,{progress:1})},H.onChange=t=>(v.on(4,t),()=>{v.off(4,t)}),H.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},H.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},v.on(2,t=>{x=t.containerId||t,$.set(x,t),k.forEach(t=>{v.emit(0,t.content,t.options)}),k=[]}).on(3,t=>{$.delete(t.containerId||t),0===$.size&&v.off(0).off(1).off(5)});export{S as ToastContainer,H as toast};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../node_modules/react-toastify/node_modules/clsx/dist/clsx.m.js","../../../node_modules/react-toastify/dist/react-toastify.esm.mjs","../../../src/components/Toast/Toast.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","'use client';\nimport t,{isValidElement as e,useRef as n,useLayoutEffect as o,useEffect as s,cloneElement as a,useReducer as r,useState as i,forwardRef as l}from\"react\";import c from\"clsx\";const u=t=>\"number\"==typeof t&&!isNaN(t),d=t=>\"string\"==typeof t,p=t=>\"function\"==typeof t,m=t=>d(t)||p(t)?t:null,f=t=>e(t)||d(t)||p(t)||u(t);function g(t,e,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=t;requestAnimationFrame(()=>{s.minHeight=\"initial\",s.height=o+\"px\",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height=\"0\",s.padding=\"0\",s.margin=\"0\",setTimeout(e,n)})})}function h(e){let{enter:a,exit:r,appendPosition:i=!1,collapse:l=!0,collapseDuration:c=300}=e;return function(e){let{children:u,position:d,preventExitTransition:p,done:m,nodeRef:f,isIn:h}=e;const y=i?`${a}--${d}`:a,v=i?`${r}--${d}`:r,T=n(0);return o(()=>{const t=f.current,e=y.split(\" \"),n=o=>{o.target===f.current&&(t.dispatchEvent(new Event(\"d\")),t.removeEventListener(\"animationend\",n),t.removeEventListener(\"animationcancel\",n),0===T.current&&\"animationcancel\"!==o.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener(\"animationend\",n),t.addEventListener(\"animationcancel\",n)},[]),s(()=>{const t=f.current,e=()=>{t.removeEventListener(\"animationend\",e),l?g(t,m,c):m()};h||(p?e():(T.current=1,t.className+=` ${v}`,t.addEventListener(\"animationend\",e)))},[h]),t.createElement(t.Fragment,null,u)}}function y(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const v={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const n=this.list.get(t).filter(t=>t!==e);return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const n=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(n)})}},T=e=>{let{theme:n,type:o,...s}=e;return t.createElement(\"svg\",{viewBox:\"0 0 24 24\",width:\"100%\",height:\"100%\",fill:\"colored\"===n?\"currentColor\":`var(--toastify-icon-color-${o})`,...s})},E={info:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z\"}))},warning:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z\"}))},success:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z\"}))},error:function(e){return t.createElement(T,{...e},t.createElement(\"path\",{d:\"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z\"}))},spinner:function(){return t.createElement(\"div\",{className:\"Toastify__spinner\"})}};function C(t){const[,o]=r(t=>t+1,0),[l,c]=i([]),g=n(null),h=n(new Map).current,T=t=>-1!==l.indexOf(t),C=n({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:T,getToast:t=>h.get(t)}).current;function b(t){let{containerId:e}=t;const{limit:n}=C.props;!n||e&&C.containerId!==e||(C.count-=C.queue.length,C.queue=[])}function I(t){c(e=>null==t?[]:e.filter(e=>e!==t))}function _(){const{toastContent:t,toastProps:e,staleId:n}=C.queue.shift();O(t,e,n)}function L(t,n){let{delay:s,staleId:r,...i}=n;if(!f(t)||function(t){return!g.current||C.props.enableMultiContainer&&t.containerId!==C.props.containerId||h.has(t.toastId)&&null==t.updateId}(i))return;const{toastId:l,updateId:c,data:T}=i,{props:b}=C,L=()=>I(l),N=null==c;N&&C.count++;const M={...b,style:b.toastStyle,key:C.toastKey++,...Object.fromEntries(Object.entries(i).filter(t=>{let[e,n]=t;return null!=n})),toastId:l,updateId:c,data:T,closeToast:L,isIn:!1,className:m(i.className||b.toastClassName),bodyClassName:m(i.bodyClassName||b.bodyClassName),progressClassName:m(i.progressClassName||b.progressClassName),autoClose:!i.isLoading&&(R=i.autoClose,w=b.autoClose,!1===R||u(R)&&R>0?R:w),deleteToast(){const t=y(h.get(l),\"removed\");h.delete(l),v.emit(4,t);const e=C.queue.length;if(C.count=null==l?C.count-C.displayedToast:C.count-1,C.count<0&&(C.count=0),e>0){const t=null==l?C.props.limit:1;if(1===e||1===t)C.displayedToast++,_();else{const n=t>e?e:t;C.displayedToast=n;for(let t=0;t<n;t++)_()}}else o()}};var R,w;M.iconOut=function(t){let{theme:n,type:o,isLoading:s,icon:r}=t,i=null;const l={theme:n,type:o};return!1===r||(p(r)?i=r(l):e(r)?i=a(r,l):d(r)||u(r)?i=r:s?i=E.spinner():(t=>t in E)(o)&&(i=E[o](l))),i}(M),p(i.onOpen)&&(M.onOpen=i.onOpen),p(i.onClose)&&(M.onClose=i.onClose),M.closeButton=b.closeButton,!1===i.closeButton||f(i.closeButton)?M.closeButton=i.closeButton:!0===i.closeButton&&(M.closeButton=!f(b.closeButton)||b.closeButton);let x=t;e(t)&&!d(t.type)?x=a(t,{closeToast:L,toastProps:M,data:T}):p(t)&&(x=t({closeToast:L,toastProps:M,data:T})),b.limit&&b.limit>0&&C.count>b.limit&&N?C.queue.push({toastContent:x,toastProps:M,staleId:r}):u(s)?setTimeout(()=>{O(x,M,r)},s):O(x,M,r)}function O(t,e,n){const{toastId:o}=e;n&&h.delete(n);const s={content:t,props:e};h.set(o,s),c(t=>[...t,o].filter(t=>t!==n)),v.emit(4,y(s,null==s.props.updateId?\"added\":\"updated\"))}return s(()=>(C.containerId=t.containerId,v.cancelEmit(3).on(0,L).on(1,t=>g.current&&I(t)).on(5,b).emit(2,C),()=>{h.clear(),v.emit(3,C)}),[]),s(()=>{C.props=t,C.isToastActive=T,C.displayedToast=l.length}),{getToastToRender:function(e){const n=new Map,o=Array.from(h.values());return t.newestOnTop&&o.reverse(),o.forEach(t=>{const{position:e}=t.props;n.has(e)||n.set(e,[]),n.get(e).push(t)}),Array.from(n,t=>e(t[0],t[1]))},containerRef:g,isToastActive:T}}function b(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function I(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function _(t){const[o,a]=i(!1),[r,l]=i(!1),c=n(null),u=n({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,d=n(t),{autoClose:m,pauseOnHover:f,closeToast:g,onClick:h,closeOnClick:y}=t;function v(e){if(t.draggable){\"touchstart\"===e.nativeEvent.type&&e.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener(\"mousemove\",_),document.addEventListener(\"mouseup\",L),document.addEventListener(\"touchmove\",_),document.addEventListener(\"touchend\",L);const n=c.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition=\"\",u.x=b(e.nativeEvent),u.y=I(e.nativeEvent),\"x\"===t.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(t.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent/100))}}function T(e){if(u.boundingRect){const{top:n,bottom:o,left:s,right:a}=u.boundingRect;\"touchend\"!==e.nativeEvent.type&&t.pauseOnHover&&u.x>=s&&u.x<=a&&u.y>=n&&u.y<=o?C():E()}}function E(){a(!0)}function C(){a(!1)}function _(e){const n=c.current;u.canDrag&&n&&(u.didMove=!0,o&&C(),u.x=b(e),u.y=I(e),u.delta=\"x\"===t.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform=`translate${t.draggableDirection}(${u.delta}px)`,n.style.opacity=\"\"+(1-Math.abs(u.delta/u.removalDistance)))}function L(){document.removeEventListener(\"mousemove\",_),document.removeEventListener(\"mouseup\",L),document.removeEventListener(\"touchmove\",_),document.removeEventListener(\"touchend\",L);const e=c.current;if(u.canDrag&&u.didMove&&e){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return l(!0),void t.closeToast();e.style.transition=\"transform 0.2s, opacity 0.2s\",e.style.transform=`translate${t.draggableDirection}(0)`,e.style.opacity=\"1\"}}s(()=>{d.current=t}),s(()=>(c.current&&c.current.addEventListener(\"d\",E,{once:!0}),p(t.onOpen)&&t.onOpen(e(t.children)&&t.children.props),()=>{const t=d.current;p(t.onClose)&&t.onClose(e(t.children)&&t.children.props)}),[]),s(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||C(),window.addEventListener(\"focus\",E),window.addEventListener(\"blur\",C)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener(\"focus\",E),window.removeEventListener(\"blur\",C))}),[t.pauseOnFocusLoss]);const O={onMouseDown:v,onTouchStart:v,onMouseUp:T,onTouchEnd:T};return m&&f&&(O.onMouseEnter=C,O.onMouseLeave=E),y&&(O.onClick=t=>{h&&h(t),u.canCloseOnClick&&g()}),{playToast:E,pauseToast:C,isRunning:o,preventExitTransition:r,toastRef:c,eventHandlers:O}}function L(e){let{closeToast:n,theme:o,ariaLabel:s=\"close\"}=e;return t.createElement(\"button\",{className:`Toastify__close-button Toastify__close-button--${o}`,type:\"button\",onClick:t=>{t.stopPropagation(),n(t)},\"aria-label\":s},t.createElement(\"svg\",{\"aria-hidden\":\"true\",viewBox:\"0 0 14 16\"},t.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z\"})))}function O(e){let{delay:n,isRunning:o,closeToast:s,type:a=\"default\",hide:r,className:i,style:l,controlledProgress:u,progress:d,rtl:m,isIn:f,theme:g}=e;const h=r||u&&0===d,y={...l,animationDuration:`${n}ms`,animationPlayState:o?\"running\":\"paused\",opacity:h?0:1};u&&(y.transform=`scaleX(${d})`);const v=c(\"Toastify__progress-bar\",u?\"Toastify__progress-bar--controlled\":\"Toastify__progress-bar--animated\",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{\"Toastify__progress-bar--rtl\":m}),T=p(i)?i({rtl:m,type:a,defaultClassName:v}):c(v,i);return t.createElement(\"div\",{role:\"progressbar\",\"aria-hidden\":h?\"true\":\"false\",\"aria-label\":\"notification timer\",className:T,style:y,[u&&d>=1?\"onTransitionEnd\":\"onAnimationEnd\"]:u&&d<1?null:()=>{f&&s()}})}const N=n=>{const{isRunning:o,preventExitTransition:s,toastRef:r,eventHandlers:i}=_(n),{closeButton:l,children:u,autoClose:d,onClick:m,type:f,hideProgressBar:g,closeToast:h,transition:y,position:v,className:T,style:E,bodyClassName:C,bodyStyle:b,progressClassName:I,progressStyle:N,updateId:M,role:R,progress:w,rtl:x,toastId:$,deleteToast:k,isIn:P,isLoading:B,iconOut:D,closeOnClick:A,theme:z}=n,F=c(\"Toastify__toast\",`Toastify__toast-theme--${z}`,`Toastify__toast--${f}`,{\"Toastify__toast--rtl\":x},{\"Toastify__toast--close-on-click\":A}),H=p(T)?T({rtl:x,position:v,type:f,defaultClassName:F}):c(F,T),S=!!w||!d,q={closeToast:h,type:f,theme:z};let Q=null;return!1===l||(Q=p(l)?l(q):e(l)?a(l,q):L(q)),t.createElement(y,{isIn:P,done:k,position:v,preventExitTransition:s,nodeRef:r},t.createElement(\"div\",{id:$,onClick:m,className:H,...i,style:E,ref:r},t.createElement(\"div\",{...P&&{role:R},className:p(C)?C({type:f}):c(\"Toastify__toast-body\",C),style:b},null!=D&&t.createElement(\"div\",{className:c(\"Toastify__toast-icon\",{\"Toastify--animate-icon Toastify__zoom-enter\":!B})},D),t.createElement(\"div\",null,u)),Q,t.createElement(O,{...M&&!S?{key:`pb-${M}`}:{},rtl:x,theme:z,delay:d,isRunning:o,isIn:P,closeToast:h,hide:g,type:f,style:N,className:I,controlledProgress:S,progress:w||0})))},M=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},R=h(M(\"bounce\",!0)),w=h(M(\"slide\",!0)),x=h(M(\"zoom\")),$=h(M(\"flip\")),k=l((e,n)=>{const{getToastToRender:o,containerRef:a,isToastActive:r}=C(e),{className:i,style:l,rtl:u,containerId:d}=e;function f(t){const e=c(\"Toastify__toast-container\",`Toastify__toast-container--${t}`,{\"Toastify__toast-container--rtl\":u});return p(i)?i({position:t,rtl:u,defaultClassName:e}):c(e,m(i))}return s(()=>{n&&(n.current=a.current)},[]),t.createElement(\"div\",{ref:a,className:\"Toastify\",id:d},o((e,n)=>{const o=n.length?{...l}:{...l,pointerEvents:\"none\"};return t.createElement(\"div\",{className:f(e),style:o,key:`container-${e}`},n.map((e,o)=>{let{content:s,props:a}=e;return t.createElement(N,{...a,isIn:r(a.toastId),style:{...a.style,\"--nth\":o+1,\"--len\":n.length},key:`toast-${a.key}`},s)}))}))});k.displayName=\"ToastContainer\",k.defaultProps={position:\"top-right\",transition:R,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:\"x\",role:\"alert\",theme:\"light\"};let P,B=new Map,D=[],A=1;function z(){return\"\"+A++}function F(t){return t&&(d(t.toastId)||u(t.toastId))?t.toastId:z()}function H(t,e){return B.size>0?v.emit(0,t,e):D.push({content:t,options:e}),e.toastId}function S(t,e){return{...e,type:e&&e.type||t,toastId:F(e)}}function q(t){return(e,n)=>H(e,S(t,n))}function Q(t,e){return H(t,S(\"default\",e))}Q.loading=(t,e)=>H(t,S(\"default\",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Q.promise=function(t,e,n){let o,{pending:s,error:a,success:r}=e;s&&(o=d(s)?Q.loading(s,n):Q.loading(s.render,{...n,...s}));const i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(t,e,s)=>{if(null==e)return void Q.dismiss(o);const a={type:t,...i,...n,data:s},r=d(e)?{render:e}:e;return o?Q.update(o,{...a,...r}):Q(r.render,{...a,...r}),s},c=p(t)?t():t;return c.then(t=>l(\"success\",r,t)).catch(t=>l(\"error\",a,t)),c},Q.success=q(\"success\"),Q.info=q(\"info\"),Q.error=q(\"error\"),Q.warning=q(\"warning\"),Q.warn=Q.warning,Q.dark=(t,e)=>H(t,S(\"default\",{theme:\"dark\",...e})),Q.dismiss=t=>{B.size>0?v.emit(1,t):D=D.filter(e=>null!=t&&e.options.toastId!==t)},Q.clearWaitingQueue=function(t){return void 0===t&&(t={}),v.emit(5,t)},Q.isActive=t=>{let e=!1;return B.forEach(n=>{n.isToastActive&&n.isToastActive(t)&&(e=!0)}),e},Q.update=function(t,e){void 0===e&&(e={}),setTimeout(()=>{const n=function(t,e){let{containerId:n}=e;const o=B.get(n||P);return o&&o.getToast(t)}(t,e);if(n){const{props:o,content:s}=n,a={delay:100,...o,...e,toastId:e.toastId||t,updateId:z()};a.toastId!==t&&(a.staleId=t);const r=a.render||s;delete a.render,H(r,a)}},0)},Q.done=t=>{Q.update(t,{progress:1})},Q.onChange=t=>(v.on(4,t),()=>{v.off(4,t)}),Q.POSITION={TOP_LEFT:\"top-left\",TOP_RIGHT:\"top-right\",TOP_CENTER:\"top-center\",BOTTOM_LEFT:\"bottom-left\",BOTTOM_RIGHT:\"bottom-right\",BOTTOM_CENTER:\"bottom-center\"},Q.TYPE={INFO:\"info\",SUCCESS:\"success\",WARNING:\"warning\",ERROR:\"error\",DEFAULT:\"default\"},v.on(2,t=>{P=t.containerId||t,B.set(P,t),D.forEach(t=>{v.emit(0,t.content,t.options)}),D=[]}).on(3,t=>{B.delete(t.containerId||t),0===B.size&&v.off(0).off(1).off(5)});export{R as Bounce,$ as Flip,E as Icons,w as Slide,k as ToastContainer,x as Zoom,g as collapseToast,h as cssTransition,Q as toast,_ as useToast,C as useToastContainer};\n//# sourceMappingURL=react-toastify.esm.mjs.map\n","import React from 'react';\nimport { ToastContainer as TC, toast } from \"react-toastify\";\n\nfunction ToastContainer() {\n return (\n <TC />\n );\n}\n\nexport {\n toast,\n ToastContainer,\n}"],"names":["r","e","t","f","n","Array","isArray","length","clsx","arguments","u","isNaN","d","p","m","h","enter","a","exit","appendPosition","i","collapse","l","collapseDuration","c","children","position","preventExitTransition","done","nodeRef","isIn","y","v","T","o","current","split","target","dispatchEvent","Event","removeEventListener","type","classList","remove","add","addEventListener","s","scrollHeight","style","requestAnimationFrame","minHeight","height","transition","padding","margin","setTimeout","g","className","createElement","Fragment","content","containerId","props","id","toastId","theme","data","isLoading","icon","status","list","Map","emitQueue","on","this","has","set","get","push","off","filter","delete","cancelEmit","forEach","clearTimeout","emit","slice","call","viewBox","width","fill","E","info","warning","success","error","spinner","C","indexOf","toastKey","displayedToast","count","queue","isToastActive","getToast","b","limit","I","_","toastContent","toastProps","staleId","shift","O","L","delay","enableMultiContainer","updateId","N","M","toastStyle","key","Object","fromEntries","entries","closeToast","toastClassName","bodyClassName","progressClassName","autoClose","R","w","deleteToast","iconOut","onOpen","onClose","closeButton","x","clear","getToastToRender","from","values","newestOnTop","reverse","containerRef","targetTouches","clientX","clientY","start","delta","removalDistance","canCloseOnClick","canDrag","boundingRect","didMove","pauseOnHover","onClick","closeOnClick","draggable","nativeEvent","preventDefault","document","getBoundingClientRect","draggableDirection","offsetWidth","draggablePercent","offsetHeight","top","bottom","left","right","transform","opacity","Math","abs","once","pauseOnFocusLoss","hasFocus","window","onMouseDown","onTouchStart","onMouseUp","onTouchEnd","onMouseEnter","onMouseLeave","playToast","pauseToast","isRunning","toastRef","eventHandlers","ariaLabel","stopPropagation","fillRule","hide","controlledProgress","progress","rtl","animationDuration","animationPlayState","defaultClassName","role","hideProgressBar","bodyStyle","progressStyle","$","k","P","B","D","A","z","F","H","S","q","Q","ref","pointerEvents","map","displayName","defaultProps","size","options","ToastContainer","React","TC","loading","promise","pending","render","dismiss","update","then","catch","warn","dark","clearWaitingQueue","isActive","onChange","POSITION","TOP_LEFT","TOP_RIGHT","TOP_CENTER","BOTTOM_LEFT","BOTTOM_RIGHT","BOTTOM_CENTER","TYPE","INFO","SUCCESS","WARNING","ERROR","DEFAULT"],"mappings":"uKAAA,SAASA,EAAEC,GAAG,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAG,iBAAiBH,GAAG,iBAAiBA,EAAEG,GAAGH,OAAO,GAAG,iBAAiBA,EAAE,GAAGI,MAAMC,QAAQL,GAAG,IAAIC,EAAE,EAAEA,EAAED,EAAEM,OAAOL,IAAID,EAAEC,KAAKC,EAAEH,EAAEC,EAAEC,OAAOE,IAAIA,GAAG,KAAKA,GAAGD,QAAQ,IAAID,KAAKD,EAAEA,EAAEC,KAAKE,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CAAQ,SAASI,IAAO,IAAI,IAAIP,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGD,EAAEM,UAAUF,SAASN,EAAEQ,UAAUN,QAAQD,EAAEF,EAAEC,MAAMG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC,CCCnL,MAAMM,EAAER,GAAG,iBAAiBA,IAAIS,MAAMT,GAAGU,EAAEV,GAAG,iBAAiBA,EAAEW,EAAEX,GAAG,mBAAmBA,EAAEY,EAAEZ,GAAGU,EAAEV,IAAIW,EAAEX,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ACC,KAAK,OAAOC,QAAQ,UAAUC,QAAQ,UAAUC,MAAM,QAAQC,QAAQ,WAAW3N,EAAEyC,GAAG,EAAEvE,IAAI4M,EAAE5M,EAAE2D,aAAa3D,EAAE6M,EAAEnI,IAAIkI,EAAE5M,GAAG8M,EAAE7H,QAAQjF,IAAI8B,EAAEqD,KAAK,EAAEnF,EAAE0D,QAAQ1D,EAAE4N,WAAWd,EAAE,KAAKvI,GAAG,EAAEvE,IAAI6M,EAAE9H,OAAO/E,EAAE2D,aAAa3D,GAAG,IAAI6M,EAAEc,MAAM7L,EAAE+C,IAAI,GAAGA,IAAI,GAAGA,IAAI","x_google_ignoreList":[0,1]}
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import "./index.css";
3
- type TooltipProps = {
3
+ declare const Tooltip: React.ForwardRefExoticComponent<{
4
4
  id?: string;
5
5
  className?: string;
6
6
  align?: "start" | "center" | "end";
@@ -11,6 +11,5 @@ type TooltipProps = {
11
11
  width?: string | number;
12
12
  delayDuration?: number;
13
13
  children?: React.ReactNode;
14
- };
15
- declare const Tooltip: ({ id, className, align, side, sideOffset, visible, content, width, delayDuration, children, }: TooltipProps) => React.JSX.Element;
14
+ } & Omit<React.HTMLAttributes<HTMLElement>, "children" | "id" | "content"> & React.RefAttributes<HTMLButtonElement>>;
16
15
  export { Tooltip };
@@ -0,0 +1,7 @@
1
+ "use client";import*as e from"react";import t,{useLayoutEffect as n,useState as r,useEffect as o}from"react";import{jsx as i,Fragment as s,jsxs as l}from"react/jsx-runtime";import*as a from"react-dom";function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d,u={exports:{}};
2
+ /*!
3
+ Copyright (c) 2018 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */d=u,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}d.exports?(t.default=t,d.exports=t):window.classNames=t}();var f=c(u.exports);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return t=>{let n=!1;const r=e.map(e=>{const r=m(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():m(e[t],null)}}}}function g(...t){return e.useCallback(h(...t),t)}function b(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const s=e.createContext(o),l=r.length;r=[...r,o];const a=n=>{const{scope:r,children:o,...a}=n,c=r?.[t]?.[l]||s,d=e.useMemo(()=>a,Object.values(a));return i(c.Provider,{value:d,children:o})};return a.displayName=n+"Provider",[a,function(r,i){const a=i?.[t]?.[l]||s,c=e.useContext(a);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},y(o,...n)]}function y(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function v(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?h(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var w=Symbol("radix.slottable");function x(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===w}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=function(t){const n=v(t),r=e.forwardRef((t,r)=>{const{children:o,...s}=t,l=e.Children.toArray(o),a=l.find(x);if(a){const t=a.props.children,o=l.map(n=>n===a?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return i(n,{...s,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return i(n,{...s,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...s}=e,l=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),i(l,{...s,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function C(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var R,k="dismissableLayer.update",O="dismissableLayer.pointerDownOutside",P="dismissableLayer.focusOutside",T=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:a,onDismiss:c,...d}=t,u=e.useContext(T),[f,m]=e.useState(null),h=f?.ownerDocument??globalThis?.document,[,b]=e.useState({}),y=g(n,e=>m(e)),v=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(w),S=f?v.indexOf(f):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,L=S>=x,z=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){N(O,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));L&&!n&&(s?.(e),a?.(e),e.defaultPrevented||c?.())},h),M=function(t,n=globalThis?.document){const r=C(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){N(P,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(l?.(e),a?.(e),e.defaultPrevented||c?.())},h);return function(t,n=globalThis?.document){const r=C(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{S===u.layers.size-1&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},h),e.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),D(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=R)}},[f,h,r,u]),e.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),D())},[f,u]),e.useEffect(()=>{const e=()=>b({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),i(E.div,{...d,ref:y,style:{pointerEvents:A?L?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,M.onFocusCapture),onBlurCapture:p(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,z.onPointerDownCapture)})});S.displayName="DismissableLayer";function D(){const e=new CustomEvent(k);document.dispatchEvent(e)}function N(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}(o,i):o.dispatchEvent(i)}e.forwardRef((t,n)=>{const r=e.useContext(T),o=e.useRef(null),s=g(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),i(E.div,{...t,ref:s})}).displayName="DismissableLayerBranch";var A=globalThis?.document?e.useLayoutEffect:()=>{},L=e[" useId ".trim().toString()]||(()=>{}),z=0;const M=["top","right","bottom","left"],_=Math.min,I=Math.max,W=Math.round,j=Math.floor,$=e=>({x:e,y:e}),F={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e,t,n){return I(e,_(t,n))}function B(e,t){return"function"==typeof e?e(t):e}function G(e){return e.split("-")[0]}function V(e){return e.split("-")[1]}function U(e){return"x"===e?"y":"x"}function Y(e){return"y"===e?"height":"width"}function X(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function q(e){return U(X(e))}function K(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Z=["left","right"],J=["right","left"],Q=["top","bottom"],ee=["bottom","top"];function te(e,t,n,r){const o=V(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?J:Z:t?Z:J;case"left":case"right":return t?Q:ee;default:return[]}}(G(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(K)))),i}function ne(e){const t=G(e);return F[t]+e.slice(t.length)}function re(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function oe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ie(e,t,n){let{reference:r,floating:o}=e;const i=X(t),s=q(t),l=Y(s),a=G(t),c="y"===i,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(a){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(V(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1)}return p}async function se(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=B(t,e),m=re(p),h=l[f?"floating"===u?"reference":"floating":u],g=oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:a})),b="floating"===u?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:y,strategy:a}):b);return{top:(g.top-w.top+m.top)/v.y,bottom:(w.bottom-g.bottom+m.bottom)/v.y,left:(g.left-w.left+m.left)/v.x,right:(w.right-g.right+m.right)/v.x}}function le(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ae(e){return M.some(t=>e[t]>=0)}const ce=new Set(["left","top"]);function de(){return"undefined"!=typeof window}function ue(e){return me(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function pe(e){var t;return null==(t=(me(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function me(e){return!!de()&&(e instanceof Node||e instanceof fe(e).Node)}function he(e){return!!de()&&(e instanceof Element||e instanceof fe(e).Element)}function ge(e){return!!de()&&(e instanceof HTMLElement||e instanceof fe(e).HTMLElement)}function be(e){return!(!de()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot)}function ye(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ve(e){return/^(table|td|th)$/.test(ue(e))}function we(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const xe=/transform|translate|scale|rotate|perspective|filter/,Ee=/paint|layout|strict|content/,Ce=e=>!!e&&"none"!==e;let Re;function ke(e){const t=he(e)?Te(e):e;return Ce(t.transform)||Ce(t.translate)||Ce(t.scale)||Ce(t.rotate)||Ce(t.perspective)||!Oe()&&(Ce(t.backdropFilter)||Ce(t.filter))||xe.test(t.willChange||"")||Ee.test(t.contain||"")}function Oe(){return null==Re&&(Re="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Re}function Pe(e){return/^(html|body|#document)$/.test(ue(e))}function Te(e){return fe(e).getComputedStyle(e)}function Se(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if("html"===ue(e))return e;const t=e.assignedSlot||e.parentNode||be(e)&&e.host||pe(e);return be(t)?t.host:t}function Ne(e){const t=De(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:ge(t)&&ye(t)?t:Ne(t)}function Ae(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Ne(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=fe(o);if(i){const e=Le(s);return t.concat(s,s.visualViewport||[],ye(o)?o:[],e&&n?Ae(e):[])}return t.concat(o,Ae(o,[],n))}function Le(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ze(e){const t=Te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ge(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=W(n)!==i||W(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function Me(e){return he(e)?e:e.contextElement}function _e(e){const t=Me(e);if(!ge(t))return $(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ze(t);let s=(i?W(n.width):n.width)/r,l=(i?W(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const Ie=$(0);function We(e){const t=fe(e);return Oe()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ie}function je(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Me(e);let s=$(1);t&&(r?he(r)&&(s=_e(r)):s=_e(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==fe(e))&&t}(i,n,r)?We(i):$(0);let a=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const e=fe(i),t=r&&he(r)?fe(r):r;let n=e,o=Le(n);for(;o&&r&&t!==n;){const e=_e(o),t=o.getBoundingClientRect(),r=Te(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;a*=e.x,c*=e.y,d*=e.x,u*=e.y,a+=i,c+=s,n=fe(o),o=Le(n)}}return oe({width:d,height:u,x:a,y:c})}function $e(e,t){const n=Se(e).scrollLeft;return t?t.left+n:je(pe(e)).left+n}function Fe(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-$e(e,n),y:n.top+t.scrollTop}}function He(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=fe(e),r=pe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const e=Oe();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,a=o.offsetTop)}const c=$e(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-o);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:l,y:a}}(e,n);else if("document"===t)r=function(e){const t=pe(e),n=Se(e),r=e.ownerDocument.body,o=I(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=I(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$e(e);const l=-n.scrollTop;return"rtl"===Te(r).direction&&(s+=I(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}(pe(e));else if(he(t))r=function(e,t){const n=je(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ge(e)?_e(e):$(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=We(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return oe(r)}function Be(e,t){const n=De(e);return!(n===t||!he(n)||Pe(n))&&("fixed"===Te(n).position||Be(n,t))}function Ge(e,t,n){const r=ge(t),o=pe(t),i="fixed"===n,s=je(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=$(0);function c(){a.x=$e(o)}if(r||!r&&!i)if(("body"!==ue(t)||ye(o))&&(l=Se(t)),r){const e=je(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=!o||r||i?$(0):Fe(o,l);return{x:s.left+l.scrollLeft-a.x-d.x,y:s.top+l.scrollTop-a.y-d.y,width:s.width,height:s.height}}function Ve(e){return"static"===Te(e).position}function Ue(e,t){if(!ge(e)||"fixed"===Te(e).position)return null;if(t)return t(e);let n=e.offsetParent;return pe(e)===n&&(n=n.ownerDocument.body),n}function Ye(e,t){const n=fe(e);if(we(e))return n;if(!ge(e)){let t=De(e);for(;t&&!Pe(t);){if(he(t)&&!Ve(t))return t;t=De(t)}return n}let r=Ue(e,t);for(;r&&ve(r)&&Ve(r);)r=Ue(r,t);return r&&Pe(r)&&Ve(r)&&!ke(r)?n:r||function(e){let t=De(e);for(;ge(t)&&!Pe(t);){if(ke(t))return t;if(we(t))return null;t=De(t)}return null}(e)||n}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=pe(r),l=!!t&&we(t.floating);if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},c=$(1);const d=$(0),u=ge(r);if((u||!u&&!i)&&(("body"!==ue(r)||ye(s))&&(a=Se(r)),u)){const e=je(r);c=_e(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!s||u||i?$(0):Fe(s,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-a.scrollTop*c.y+d.y+f.y}},getDocumentElement:pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?we(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ae(e,[],!1).filter(e=>he(e)&&"body"!==ue(e)),o=null;const i="fixed"===Te(e).position;let s=i?De(e):e;for(;he(s)&&!Pe(s);){const t=Te(s),n=ke(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||ye(s)&&!n&&Be(e,s))?r=r.filter(e=>e!==s):o=t,s=De(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=He(t,i[0],o);let l=s.top,a=s.right,c=s.bottom,d=s.left;for(let e=1;e<i.length;e++){const n=He(t,i[e],o);l=I(n.top,l),a=_(n.right,a),c=_(n.bottom,c),d=I(n.left,d)}return{width:a-d,height:c-l,x:d,y:l}},getOffsetParent:Ye,getElementRects:async function(e){const t=this.getOffsetParent||Ye,n=this.getDimensions,r=await n(e.floating);return{reference:Ge(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ze(e);return{width:t,height:n}},getScale:_e,isElement:he,isRTL:function(e){return"rtl"===Te(e).direction}};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ke(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:a=!1}=r,c=Me(e),d=o||i?[...c?Ae(c):[],...t?Ae(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const u=c&&l?function(e,t){let n,r=null;const o=pe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(l,a){void 0===l&&(l=!1),void 0===a&&(a=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(l||t(),!f||!p)return;const m={rootMargin:-j(u)+"px "+-j(o.clientWidth-(d+f))+"px "+-j(o.clientHeight-(u+p))+"px "+-j(d)+"px",threshold:I(0,_(1,a))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==a){if(!h)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||qe(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!a&&m.observe(c),t&&m.observe(t));let h=a?je(e):null;return a&&function t(){const r=je(e);h&&!qe(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,a&&cancelAnimationFrame(f)}}const Ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=G(n),l=V(n),a="y"===X(n),c=ce.has(s)?-1:1,d=i&&a?-1:1,u=B(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),a?{x:p*d,y:f*c}:{x:f*c,y:p*d}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Je=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=B(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),f=X(G(o)),p=U(f);let m=d[p],h=d[f];if(s){const e="y"===p?"bottom":"right";m=H(m+u["y"===p?"top":"left"],m,m-u[e])}if(l){const e="y"===f?"bottom":"right";h=H(h+u["y"===f?"top":"left"],h,h-u[e])}const g=a.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:s,[f]:l}}}}}},Qe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=B(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=G(o),y=X(l),v=G(l)===l,w=await(null==a.isRTL?void 0:a.isRTL(c.floating)),x=f||(v||!h?[ne(l)]:function(e){const t=ne(e);return[K(e),t,K(t)]}(l)),E="none"!==m;!f&&E&&x.push(...te(l,h,m,w));const C=[l,...x],R=await a.detectOverflow(t,g),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&k.push(R[b]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=V(e),o=q(e),i=Y(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ne(s)),[s,ne(s)]}(o,s,w);k.push(R[e[0]],R[e[1]])}if(O=[...O,{placement:o,overflows:k}],!k.every(e=>e<=0)){var P,T;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=C[e];if(t){if(!("alignment"===u&&y!==X(t))||O.every(e=>X(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:O},reset:{placement:t}}}let n=null==(T=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var S;const e=null==(S=O.filter(e=>{if(E){const t=X(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},et=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...c}=B(e,t),d=await s.detectOverflow(t,c),u=G(o),f=V(o),p="y"===X(o),{width:m,height:h}=i.floating;let g,b;"top"===u||"bottom"===u?(g=u,b=f===(await(null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(b=u,g="end"===f?"top":"bottom");const y=h-d.top-d.bottom,v=m-d.left-d.right,w=_(h-d[g],y),x=_(m-d[b],v),E=!t.middlewareData.shift;let C=w,R=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(R=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!f){const e=I(d.left,0),t=I(d.right,0),n=I(d.top,0),r=I(d.bottom,0);p?R=m-2*(0!==e||0!==t?e+t:I(d.left,d.right)):C=h-2*(0!==n||0!==r?n+r:I(d.top,d.bottom))}await a({...t,availableWidth:R,availableHeight:C});const k=await s.getDimensions(l.floating);return m!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}},tt=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=B(e,t);switch(o){case"referenceHidden":{const e=le(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ae(e)}}}case"escaped":{const e=le(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ae(e)}}}default:return{}}}}},nt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:c,padding:d=0}=B(e,t)||{};if(null==c)return{};const u=re(d),f={x:n,y:r},p=q(o),m=Y(p),h=await s.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=E?E[v]:0;C&&await(null==s.isElement?void 0:s.isElement(E))||(C=l.floating[v]||i.floating[m]);const R=w/2-x/2,k=C/2-h[m]/2-1,O=_(u[b],k),P=_(u[y],k),T=O,S=C-h[m]-P,D=C/2-h[m]/2+R,N=H(T,D,S),A=!a.arrow&&null!=V(o)&&D!==N&&i.reference[m]/2-(D<T?O:P)-h[m]/2<0,L=A?D<T?D-T:D-S:0;return{[p]:f[p]+L,data:{[p]:N,centerOffset:D-N-L,...A&&{alignmentOffset:L}},reset:A}}}),rt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:c=!0}=B(e,t),d={x:n,y:r},u=X(o),f=U(u);let p=d[f],m=d[u];const h=B(l,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(a){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===f?"width":"height",t=ce.has(G(o)),n=i.reference[u]-i.floating[e]+(t&&(null==(b=s.offset)?void 0:b[u])||0)+(t?0:g.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(y=s.offset)?void 0:y[u])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[u]:m}}}},ot=(e,t,n)=>{const r=new Map,o={platform:Xe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=s.detectOverflow?s:{...s,detectOverflow:se},a=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=ie(c,r,a),f=r,p=0;const m={};for(let n=0;n<i.length;n++){const h=i[n];if(!h)continue;const{name:g,fn:b}=h,{x:y,y:v,data:w,reset:x}=await b({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=v?v:u,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:d,y:u}=ie(c,f,a))),n=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var it="undefined"!=typeof document?n:function(){};function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!st(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!st(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function lt(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function at(e,t){const n=lt(e);return Math.round(t*n)/n}function ct(t){const n=e.useRef(t);return it(()=>{n.current=t}),n}const dt=(e,t)=>{const n=Ze(e);return{name:n.name,fn:n.fn,options:[e,t]}},ut=(e,t)=>{const n=Je(e);return{name:n.name,fn:n.fn,options:[e,t]}},ft=(e,t)=>{const n=Qe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pt=(e,t)=>{const n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},mt=(e,t)=>{const n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},ht=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?nt({element:n.current,padding:r}).fn(t):{}:n?nt({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return i(E.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:i("polygon",{points:"0,0 30,0 15,10"})})});gt.displayName="Arrow";var bt=gt;var yt="Popper",[vt,wt]=b(yt),[xt,Et]=vt(yt),Ct=t=>{const{__scopePopper:n,children:r}=t,[o,s]=e.useState(null);return i(xt,{scope:n,anchor:o,onAnchorChange:s,children:r})};Ct.displayName=yt;var Rt="PopperAnchor",kt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...s}=t,l=Et(Rt,r),a=e.useRef(null),c=g(n,a),d=e.useRef(null);return e.useEffect(()=>{const e=d.current;d.current=o?.current||a.current,e!==d.current&&l.onAnchorChange(d.current)}),o?null:i(E.div,{...s,ref:c})});kt.displayName=Rt;var Ot="PopperContent",[Pt,Tt]=vt(Ot),St=e.forwardRef((t,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:s=0,align:l="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:u=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:b="optimized",onPlaced:y,...v}=t,w=Et(Ot,r),[x,R]=e.useState(null),k=g(n,e=>R(e)),[O,P]=e.useState(null),T=function(t){const[n,r]=e.useState(void 0);return A(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}(O),S=T?.width??0,D=T?.height??0,N=o+("center"!==l?"-"+l:""),L="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},z=Array.isArray(f)?f:[f],M=z.length>0,_={padding:L,boundary:z.filter(Lt),altBoundary:M},{refs:I,floatingStyles:W,placement:j,isPositioned:$,middlewareData:F}=function(t){void 0===t&&(t={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:u}=t,[f,p]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(o);st(m,o)||h(o);const[g,b]=e.useState(null),[y,v]=e.useState(null),w=e.useCallback(e=>{e!==R.current&&(R.current=e,b(e))},[]),x=e.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),E=s||g,C=l||y,R=e.useRef(null),k=e.useRef(null),O=e.useRef(f),P=null!=d,T=ct(d),S=ct(i),D=ct(u),N=e.useCallback(()=>{if(!R.current||!k.current)return;const e={placement:n,strategy:r,middleware:m};S.current&&(e.platform=S.current),ot(R.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==D.current};A.current&&!st(O.current,t)&&(O.current=t,a.flushSync(()=>{p(t)}))})},[m,n,r,S,D]);it(()=>{!1===u&&O.current.isPositioned&&(O.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const A=e.useRef(!1);it(()=>(A.current=!0,()=>{A.current=!1}),[]),it(()=>{if(E&&(R.current=E),C&&(k.current=C),E&&C){if(T.current)return T.current(E,C,N);N()}},[E,C,N,T,P]);const L=e.useMemo(()=>({reference:R,floating:k,setReference:w,setFloating:x}),[w,x]),z=e.useMemo(()=>({reference:E,floating:C}),[E,C]),M=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!z.floating)return e;const t=at(z.floating,f.x),n=at(z.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+n+"px)",...lt(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,c,z.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:N,refs:L,elements:z,floatingStyles:M}),[f,N,L,z,M])}({strategy:"fixed",placement:N,whileElementsMounted:(...e)=>Ke(...e,{animationFrame:"always"===b}),elements:{reference:w.anchor},middleware:[dt({mainAxis:s+D,alignmentAxis:c}),u&&ut({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?{fn:rt(H).fn,options:[H,B]}:void 0,..._}),u&&ft({..._}),pt({..._,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),O&&ht({element:O,padding:d}),zt({arrowWidth:S,arrowHeight:D}),h&&mt({strategy:"referenceHidden",..._})]});var H,B;const[G,V]=Mt(j),U=C(y);A(()=>{$&&U?.()},[$,U]);const Y=F.arrow?.x,X=F.arrow?.y,q=0!==F.arrow?.centerOffset,[K,Z]=e.useState();return A(()=>{x&&Z(window.getComputedStyle(x).zIndex)},[x]),i("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:$?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i(Pt,{scope:r,placedSide:G,onArrowChange:P,arrowX:Y,arrowY:X,shouldHideArrow:q,children:i(E.div,{"data-side":G,"data-align":V,...v,ref:k,style:{...v.style,animation:$?void 0:"none"}})})})});St.displayName=Ot;var Dt="PopperArrow",Nt={top:"bottom",right:"left",bottom:"top",left:"right"},At=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Tt(Dt,n),s=Nt[o.placedSide];return i("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:i(bt,{...r,ref:t,style:{...r.style,display:"block"}})})});function Lt(e){return null!==e}At.displayName=Dt;var zt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[a,c]=Mt(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(o.arrow?.x??0)+s/2,f=(o.arrow?.y??0)+l/2;let p="",m="";return"bottom"===a?(p=i?d:`${u}px`,m=-l+"px"):"top"===a?(p=i?d:`${u}px`,m=`${r.floating.height+l}px`):"right"===a?(p=-l+"px",m=i?d:`${f}px`):"left"===a&&(p=`${r.floating.width+l}px`,m=i?d:`${f}px`),{data:{x:p,y:m}}}});function Mt(e){const[t,n="center"]=e.split("-");return[t,n]}var _t=Ct,It=kt,Wt=St,jt=At;var $t=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),s=e.useRef("none"),l=t?"mounted":"unmounted",[a,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=Ft(o.current);s.current="mounted"===a?e:"none"},[a]),A(()=>{const e=o.current,n=i.current;if(n!==t){const r=s.current,o=Ft(e);if(t)c("MOUNT");else if("none"===o||"none"===e?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,c]),A(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const s=Ft(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&s&&(c("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},l=e=>{e.target===n&&(s.current=Ft(o.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),s=g(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:s}):null};function Ft(e){return e?.animationName||"none"}$t.displayName="Presence";var Ht=e[" useInsertionEffect ".trim().toString()]||A;function Bt({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,s,l]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),s=e.useRef(n);return Ht(()=>{s.current=n},[n]),e.useEffect(()=>{i.current!==r&&(s.current?.(r),i.current=r)},[r,i]),[r,o,s]}({defaultProp:n,onChange:r}),a=void 0!==t,c=a?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==a){const t=e?"controlled":"uncontrolled",n=a?"controlled":"uncontrolled";console.warn(`${o} is changing from ${t} to ${n}. 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.`)}n.current=a},[a,o])}const d=e.useCallback(e=>{if(a){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&l.current?.(n)}else s(e)},[a,t,s,l]);return[c,d]}var Gt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vt=e.forwardRef((e,t)=>i(E.span,{...e,ref:t,style:{...Gt,...e.style}}));Vt.displayName="VisuallyHidden";var Ut=Vt,[Yt]=b("Tooltip",[wt]),Xt=wt(),qt="TooltipProvider",Kt=700,Zt="tooltip.open",[Jt,Qt]=Yt(qt),en=t=>{const{__scopeTooltip:n,delayDuration:r=Kt,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:l}=t,a=e.useRef(!0),c=e.useRef(!1),d=e.useRef(0);return e.useEffect(()=>{const e=d.current;return()=>window.clearTimeout(e)},[]),i(Jt,{scope:n,isOpenDelayedRef:a,delayDuration:r,onOpen:e.useCallback(()=>{window.clearTimeout(d.current),a.current=!1},[]),onClose:e.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:e.useCallback(e=>{c.current=e},[]),disableHoverableContent:s,children:l})};en.displayName=qt;var tn="Tooltip",[nn,rn]=Yt(tn),on=t=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:s,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=t,d=Qt(tn,t.__scopeTooltip),u=Xt(n),[f,p]=e.useState(null),m=function(t){const[n,r]=e.useState(L());return A(()=>{r(e=>e??String(z++))},[t]),n?`radix-${n}`:""}(),h=e.useRef(0),g=a??d.disableHoverableContent,b=c??d.delayDuration,y=e.useRef(!1),[v,w]=Bt({prop:o,defaultProp:s??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(Zt))):d.onClose(),l?.(e)},caller:tn}),x=e.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y.current=!1,w(!0)},[w]),C=e.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),R=e.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0),h.current=0},b)},[b,w]);return e.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),i(_t,{...u,children:i(nn,{scope:n,contentId:m,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:e.useCallback(()=>{d.isOpenDelayedRef.current?R():E()},[d.isOpenDelayedRef,R,E]),onTriggerLeave:e.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:E,onClose:C,disableHoverableContent:g,children:r})})};on.displayName=tn;var sn="TooltipTrigger",ln=e.forwardRef((t,n)=>{const{__scopeTooltip:r,...o}=t,s=rn(sn,r),l=Qt(sn,r),a=Xt(r),c=g(n,e.useRef(null),s.onTriggerChange),d=e.useRef(!1),u=e.useRef(!1),f=e.useCallback(()=>d.current=!1,[]);return e.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),i(It,{asChild:!0,...a,children:i(E.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:c,onPointerMove:p(t.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),u.current=!0))}),onPointerLeave:p(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:p(t.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:p(t.onFocus,()=>{d.current||s.onOpen()}),onBlur:p(t.onBlur,s.onClose),onClick:p(t.onClick,s.onClose)})})});ln.displayName=sn;var[an,cn]=Yt("TooltipPortal",{forceMount:void 0}),dn="TooltipContent",un=e.forwardRef((e,t)=>{const n=cn(dn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,l=rn(dn,e.__scopeTooltip);return i($t,{present:r||l.open,children:l.disableHoverableContent?i(gn,{side:o,...s,ref:t}):i(fn,{side:o,...s,ref:t})})}),fn=e.forwardRef((t,n)=>{const r=rn(dn,t.__scopeTooltip),o=Qt(dn,t.__scopeTooltip),s=e.useRef(null),l=g(n,s),[a,c]=e.useState(null),{trigger:d,onClose:u}=r,f=s.current,{onPointerInTransitChange:p}=o,m=e.useCallback(()=>{c(null),p(!1)},[p]),h=e.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(i),p(!0)},[p]);return e.useEffect(()=>()=>m(),[m]),e.useEffect(()=>{if(d&&f){const e=e=>h(e,f),t=e=>h(e,d);return d.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[d,f,h,m]),e.useEffect(()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=d?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],l=t[i],a=s.x,c=s.y,d=l.x,u=l.y;c>r!=u>r&&n<(d-a)*(r-c)/(u-c)+a&&(o=!o)}return o}(n,a);r?m():o&&(m(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,f,a,u,m]),i(gn,{...t,ref:l})}),[pn,mn]=Yt(tn,{isInside:!1}),hn=function(e){const t=({children:e})=>i(s,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=w,t}("TooltipContent"),gn=e.forwardRef((t,n)=>{const{__scopeTooltip:r,children:o,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:c,...d}=t,u=rn(dn,r),f=Xt(r),{onClose:p}=u;return e.useEffect(()=>(document.addEventListener(Zt,p),()=>document.removeEventListener(Zt,p)),[p]),e.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,p]),i(S,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:l(Wt,{"data-state":u.stateAttribute,...f,...d,ref:n,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i(hn,{children:o}),i(pn,{scope:r,isInside:!0,children:i(Ut,{id:u.contentId,role:"tooltip",children:s||o})})]})})});un.displayName=dn;var bn="TooltipArrow";e.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Xt(n);return mn(bn,n).isInside?null:i(jt,{...o,...r,ref:t})}).displayName=bn;var yn=en,vn=on,wn=ln,xn=un;function En(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=En(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Cn=e=>{const t=Pn(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Rn(n,t)||On(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},Rn=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rn(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find(({validator:e})=>e(i))?.classGroupId},kn=/^\[(.+)\]$/,On=e=>{if(kn.test(e)){const t=kn.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Pn=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Nn(Object.entries(e.classGroups),n).forEach(([e,n])=>{Tn(n,r,e,t)}),r},Tn=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:Sn(t,e)).classGroupId=n)}if("function"==typeof e)return Dn(e)?void Tn(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{Tn(o,Sn(t,e),n,r)})})},Sn=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Dn=e=>e.isThemeGetter,Nn=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,An=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},Ln=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],i=t.length,s=e=>{const n=[];let s,l=0,a=0;for(let c=0;c<e.length;c++){let d=e[c];if(0===l){if(d===o&&(r||e.slice(c,c+i)===t)){n.push(e.slice(a,c)),a=c+i;continue}if("/"===d){s=c;continue}}"["===d?l++:"]"===d&&l--}const c=0===n.length?e:e.substring(a),d=c.startsWith("!");return{modifiers:n,hasImportantModifier:d,baseClassName:d?c.substring(1):c,maybePostfixModifierPosition:s&&s>a?s-a:void 0}};return n?e=>n({className:e,parseClassName:s}):s},zn=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},Mn=/\s+/;function _n(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=In(e))&&(r&&(r+=" "),r+=t);return r}const In=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=In(e[r]))&&(n&&(n+=" "),n+=t);return n};function Wn(e,...t){let n,r,o,i=function(l){const a=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:An(e.cacheSize),parseClassName:Ln(e),...Cn(e)}))(a),r=n.cache.get,o=n.cache.set,i=s,s(l)};function s(e){const t=r(e);if(t)return t;const i=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Mn);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=n(t);let f=Boolean(u),p=r(f?d.substring(0,u):d);if(!p){if(!f){l=t+(l.length>0?" "+l:l);continue}if(p=r(d),!p){l=t+(l.length>0?" "+l:l);continue}f=!1}const m=zn(a).join(":"),h=c?m+"!":m,g=h+p;if(i.includes(g))continue;i.push(g);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(h+t)}l=t+(l.length>0?" "+l:l)}return l})(e,n);return o(e,i),i}return function(){return i(_n.apply(null,arguments))}}const jn=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},$n=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fn=/^\d+\/\d+$/,Hn=new Set(["px","full","screen"]),Bn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gn=/\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$/,Vn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Un=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xn=e=>Kn(e)||Hn.has(e)||Fn.test(e),qn=e=>cr(e,"length",dr),Kn=e=>Boolean(e)&&!Number.isNaN(Number(e)),Zn=e=>cr(e,"number",Kn),Jn=e=>Boolean(e)&&Number.isInteger(Number(e)),Qn=e=>e.endsWith("%")&&Kn(e.slice(0,-1)),er=e=>$n.test(e),tr=e=>Bn.test(e),nr=new Set(["length","size","percentage"]),rr=e=>cr(e,nr,ur),or=e=>cr(e,"position",ur),ir=new Set(["image","url"]),sr=e=>cr(e,ir,pr),lr=e=>cr(e,"",fr),ar=()=>!0,cr=(e,t,n)=>{const r=$n.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},dr=e=>Gn.test(e)&&!Vn.test(e),ur=()=>!1,fr=e=>Un.test(e),pr=e=>Yn.test(e),mr=Wn(()=>{const e=jn("colors"),t=jn("spacing"),n=jn("blur"),r=jn("brightness"),o=jn("borderColor"),i=jn("borderRadius"),s=jn("borderSpacing"),l=jn("borderWidth"),a=jn("contrast"),c=jn("grayscale"),d=jn("hueRotate"),u=jn("invert"),f=jn("gap"),p=jn("gradientColorStops"),m=jn("gradientColorStopPositions"),h=jn("inset"),g=jn("margin"),b=jn("opacity"),y=jn("padding"),v=jn("saturate"),w=jn("scale"),x=jn("sepia"),E=jn("skew"),C=jn("space"),R=jn("translate"),k=()=>["auto",er,t],O=()=>[er,t],P=()=>["",Xn,qn],T=()=>["auto",Kn,er],S=()=>["","0",er],D=()=>[Kn,er];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[Xn,qn],blur:["none","",tr,er],brightness:D(),borderColor:[e],borderRadius:["none","","full",tr,er],borderSpacing:O(),borderWidth:P(),contrast:D(),grayscale:S(),hueRotate:D(),invert:S(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Qn,qn],inset:k(),margin:k(),opacity:D(),padding:O(),saturate:D(),scale:D(),sepia:S(),skew:D(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",er]}],container:["container"],columns:[{columns:[tr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",er]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],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",Jn,er]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",er]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Jn,er]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",Jn,er]},er]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[Jn,er]},er]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",er]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",er]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",er,t]}],"min-w":[{"min-w":[er,t,"min","max","fit"]}],"max-w":[{"max-w":[er,t,"none","full","min","max","fit","prose",{screen:[tr]},tr]}],h:[{h:[er,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[er,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[er,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tr,qn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zn]}],"font-family":[{font:[ar]}],"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",er]}],"line-clamp":[{"line-clamp":["none",Kn,Zn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xn,er]}],"list-image":[{"list-image":["none",er]}],"list-style-type":[{list:["none","disc","decimal",er]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xn,qn]}],"underline-offset":[{"underline-offset":["auto",Xn,er]}],"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",er]}],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",er]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",or]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},sr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Xn,er]}],"outline-w":[{outline:[Xn,qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Xn,qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tr,lr]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",tr,er]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"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",er]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",er]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",er]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Jn,er]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",er]}],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",er]}],"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",er]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xn,qn,Zn]}],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 hr(...e){return mr(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=En(e))&&(r&&(r+=" "),r+=t);return r}(e))}const gr=yn,br=vn,yr=wn,vr=e.forwardRef(({className:t,sideOffset:n=4,...r},o)=>e.createElement(xn,{ref:o,sideOffset:n,className:hr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));vr.displayName=xn.displayName;const wr=t.forwardRef(({id:e,className:n,align:i,side:s,sideOffset:l=8,visible:a,content:c,width:d,delayDuration:u=100,children:p,...m},h)=>{const[g,b]=r(!1);return o(()=>{g&&setTimeout(()=>b(!1),2e3)},[g]),t.createElement(gr,null,t.createElement(br,{open:a,delayDuration:u},t.createElement(yr,{asChild:!0,ref:h,...m},p),t.createElement(vr,{id:e,className:f("gyramais-tooltip-container",n),align:i,side:s,sideOffset:l,style:{maxWidth:d||"auto"},onClick:()=>{"string"==typeof c&&(navigator.clipboard.writeText(c),b(!0))}},"string"==typeof c?t.createElement("div",{className:f("gyramais-tooltip-content",n)},g?"Copiado!":c):c)))});wr.displayName="Tooltip";export{wr as Tooltip};
7
+ //# sourceMappingURL=index.js.map