import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{a as t,o as n}from"./vendor-motion-COLzAB1Q.js";import{F as r,I as i,L as a,R as o,z as s}from"./vendor-ui-Cuqtliu0.js";import{h as c,p as l}from"./index-DLFWvoW-.js";import{c as u,l as d,n as f,o as p,r as m,s as h,t as g}from"./en-US-CPzBC6zl.js";var _=c(`RotateCcw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),v=c(`ShieldCheck`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),y=c(`UserCog`,[[`circle`,{cx:`18`,cy:`15`,r:`3`,key:`gjjjvw`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`path`,{d:`M10 15H6a4 4 0 0 0-4 4v2`,key:`1nfge6`}],[`path`,{d:`m21.7 16.4-.9-.3`,key:`12j9ji`}],[`path`,{d:`m15.2 13.9-.9-.3`,key:`1fdjdi`}],[`path`,{d:`m16.6 18.7.3-.9`,key:`heedtr`}],[`path`,{d:`m19.1 12.2.3-.9`,key:`1af3ki`}],[`path`,{d:`m19.6 18.7-.4-1`,key:`1x9vze`}],[`path`,{d:`m16.8 12.3-.4-1`,key:`vqeiwj`}],[`path`,{d:`m14.3 16.6 1-.4`,key:`1qlj63`}],[`path`,{d:`m20.7 13.8 1-.4`,key:`1v5t8k`}]]),b=c(`UserPlus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),x=e(n(),1),S=t(),C=x.forwardRef(({className:e,children:t,...n},a)=>(0,S.jsxs)(i,{ref:a,className:l(`relative overflow-hidden`,e),...n,children:[(0,S.jsx)(s,{className:`h-full w-full rounded-[inherit]`,children:t}),(0,S.jsx)(w,{}),(0,S.jsx)(r,{})]}));C.displayName=i.displayName;var w=x.forwardRef(({className:e,orientation:t=`vertical`,...n},r)=>(0,S.jsx)(a,{ref:r,orientation:t,className:l(`flex touch-none select-none transition-colors`,t===`vertical`&&`h-full w-2.5 border-l border-l-transparent p-[1px]`,t===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent p-[1px]`,e),...n,children:(0,S.jsx)(o,{className:`relative flex-1 rounded-full bg-border`})}));w.displayName=a.displayName;function T(e,t){let n=d(e),r=d(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function E(e){return u(e,Date.now())}function D(e,t){let n=d(e),r=d(t),i=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return i*12+a}function O(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function k(e,t){return d(e)-+d(t)}function A(e){let t=d(e);return t.setHours(23,59,59,999),t}function j(e){let t=d(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function M(e){let t=d(e);return+A(t)==+j(t)}function N(e,t){let n=d(e),r=d(t),i=T(n,r),a=Math.abs(D(n,r)),o;if(a<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*a);let t=T(n,r)===-i;M(d(e))&&a===1&&T(e,r)===1&&(t=!1),o=i*(a-Number(t))}return o===0?0:o}function P(e,t,n){let r=k(e,t)/1e3;return O(n?.roundingMethod)(r)}function F(e,t,n){let r=m(),i=n?.locale??r.locale??g,a=T(e,t);if(isNaN(a))throw RangeError(`Invalid time value`);let o=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:a}),s,c;a>0?(s=d(t),c=d(e)):(s=d(e),c=d(t));let l=P(c,s),u=(f(c)-f(s))/1e3,_=Math.round((l-u)/60),v;if(_<2)return n?.includeSeconds?l<5?i.formatDistance(`lessThanXSeconds`,5,o):l<10?i.formatDistance(`lessThanXSeconds`,10,o):l<20?i.formatDistance(`lessThanXSeconds`,20,o):l<40?i.formatDistance(`halfAMinute`,0,o):l<60?i.formatDistance(`lessThanXMinutes`,1,o):i.formatDistance(`xMinutes`,1,o):_===0?i.formatDistance(`lessThanXMinutes`,1,o):i.formatDistance(`xMinutes`,_,o);if(_<45)return i.formatDistance(`xMinutes`,_,o);if(_<90)return i.formatDistance(`aboutXHours`,1,o);if(_<1440){let e=Math.round(_/60);return i.formatDistance(`aboutXHours`,e,o)}else if(_<2520)return i.formatDistance(`xDays`,1,o);else if(_<43200){let e=Math.round(_/p);return i.formatDistance(`xDays`,e,o)}else if(_<43200*2)return v=Math.round(_/h),i.formatDistance(`aboutXMonths`,v,o);if(v=N(c,s),v<12){let e=Math.round(_/h);return i.formatDistance(`xMonths`,e,o)}else{let e=v%12,t=Math.trunc(v/12);return e<3?i.formatDistance(`aboutXYears`,t,o):e<9?i.formatDistance(`overXYears`,t,o):i.formatDistance(`almostXYears`,t+1,o)}}function I(e,t){return F(e,E(e),t)}export{v as a,y as i,C as n,_ as o,b as r,I as t};