import{V as p,dv as m,ai as D}from"./index-Ef5HIHwv.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O=p("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F=p("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);function R(t,e){const n=y(t);let r;if(n.date){const i=k(n.date,2);r=M(i.restDateString,i.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const s=r.getTime();let o=0,c;if(n.time&&(o=U(n.time),isNaN(o)))return new Date(NaN);if(n.timezone){if(c=w(n.timezone),isNaN(c))return new Date(NaN)}else{const i=new Date(s+o),u=new Date(0);return u.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),u.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),u}return new Date(s+o+c)}const l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},N=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,g=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,T=/^([+-])(\d{2})(?::?(\d{2}))?$/;function y(t){const e={},a=t.split(l.dateTimeDelimiter);let n;if(a.length>2)return e;if(/:/.test(a[0])?n=a[0]:(e.date=a[0],n=a[1],l.timeZoneDelimiter.test(e.date)&&(e.date=t.split(l.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){const r=l.timezone.exec(n);r?(e.time=n.replace(r[1],""),e.timezone=r[1]):e.time=n}return e}function k(t,e){const a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(a);if(!n)return{year:NaN,restDateString:""};const r=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?r:s*100,restDateString:t.slice((n[1]||n[2]).length)}}function M(t,e){if(e===null)return new Date(NaN);const a=t.match(N);if(!a)return new Date(NaN);const n=!!a[4],r=d(a[1]),s=d(a[2])-1,o=d(a[3]),c=d(a[4]),i=d(a[5])-1;if(n)return Y(e,c,i)?C(e,c,i):new Date(NaN);{const u=new Date(0);return!v(e,s,o)||!x(e,r)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(r,o)),u)}}function d(t){return t?parseInt(t):1}function U(t){const e=t.match(g);if(!e)return NaN;const a=f(e[1]),n=f(e[2]),r=f(e[3]);return z(a,n,r)?a*m+n*D+r*1e3:NaN}function f(t){return t&&parseFloat(t.replace(",","."))||0}function w(t){if(t==="Z")return 0;const e=t.match(T);if(!e)return 0;const a=e[1]==="+"?-1:1,n=parseInt(e[2]),r=e[3]&&parseInt(e[3])||0;return H(n,r)?a*(n*m+r*D):NaN}function C(t,e,a){const n=new Date(0);n.setUTCFullYear(t,0,4);const r=n.getUTCDay()||7,s=(e-1)*7+a+1-r;return n.setUTCDate(n.getUTCDate()+s),n}const I=[31,null,31,30,31,30,31,31,30,31,30,31];function h(t){return t%400===0||t%4===0&&t%100!==0}function v(t,e,a){return e>=0&&e<=11&&a>=1&&a<=(I[e]||(h(t)?29:28))}function x(t,e){return e>=1&&e<=(h(t)?366:365)}function Y(t,e,a){return e>=1&&e<=53&&a>=0&&a<=6}function z(t,e,a){return t===24?e===0&&a===0:a>=0&&a<60&&e>=0&&e<60&&t>=0&&t<25}function H(t,e){return e>=0&&e<=59}export{O as B,F as H,R as p};
