import{a as h,r as a,s as y,X as p,R as d,Y as S}from"./index.5272cfcf.js";const D=h(a.exports.createElement("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}));function g(e,t){t===void 0&&(t=0);var n=a.exports.useRef(!1),r=a.exports.useRef(),i=a.exports.useRef(e),l=a.exports.useCallback(function(){return n.current},[]),c=a.exports.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=a.exports.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return a.exports.useEffect(function(){i.current=e},[e]),a.exports.useEffect(function(){return c(),o},[t]),[l,o,c]}function A(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=g(e,t),i=r[0],l=r[1],c=r[2];return a.exports.useEffect(c,n),[i,l]}const k=e=>Number(e)===e&&e%1!==0,v=y.a`
  color: ${({theme:e})=>e.font};
`,x=({href:e,...t})=>{const n=p(e);return d.createElement(v,{...t,href:e,target:"_blank",onClick:n})},E=e=>{const t=S(e);if(t instanceof URL){const n=t.toString();return d.createElement(x,{title:n,href:n},n)}return e},R=(e,t,n)=>e===t?0:e===null?1:t===null?-1:e>t?n?1:-1:n?-1:1,T=(e,t)=>{const n="2-digit",o={timeZone:t,year:"numeric",day:n,month:n,hour:n,hour12:!1,minute:n,second:n,fractionalSecondDigits:3};return e%1e3||delete o.fractionalSecondDigits,e%864e5||(delete o.second,delete o.minute,delete o.hour),new Intl.DateTimeFormat("en-ZA",o).format(e).replaceAll("/","-").replace(", "," ").replace(",",".")},b=(()=>{const e="2-digit";let t="en-ZA";return(c,o,m)=>{const f=Math.abs(o-m);let u={timeZone:c,hour12:!1},s={timeZone:c,hour12:!1};return o%864e5===0&&m%864e5===0?(u=null,s={year:"numeric",month:e,day:e},t="en-CA"):f<1e3?(u={year:"numeric",day:e,month:e},s={hour:e,minute:e,second:e,fractionalSecondDigits:3},t="en-ZA"):f<6e4?(u={year:"numeric",day:e,month:e,hour:e,minute:e},s={second:e,fractionalSecondDigits:3},t="en-ZA"):f<36e5?(u={year:"numeric",day:e,month:e},s={hour:e,minute:e,second:e},t="en-ZA"):(u=null,s={year:"numeric",month:e,day:e,hour:e,minute:e,second:e},t="en-ZA"),[u?new Intl.DateTimeFormat(t,u):null,new Intl.DateTimeFormat(t,s)]}})();export{D as A,x as E,R as a,T as f,b as g,k as i,E as p,A as u};
