"use strict";(globalThis.webpackChunksugar_calendar_bookings_scheduling_appointments=globalThis.webpackChunksugar_calendar_bookings_scheduling_appointments||[]).push([[5737],{8141(t,e,n){n.d(e,{BB:()=>u}),Symbol.for("constructDateFrom");const o={},i={};function s(t,e){try{const n=(o[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return n in i?i[n]:a(n,n.split(":"))}catch{if(t in i)return i[t];const e=t?.match(r);return e?a(t,e.slice(1)):NaN}}const r=/([+-]\d\d):?(\d\d)?/;function a(t,e){const n=+(e[0]||0),o=+(e[1]||0),s=+(e[2]||0)/60;return i[t]=60*n+o>0?60*n+o+s:60*n-o-s}class l extends Date{constructor(...t){super(),t.length>1&&"string"==typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(s(this.timeZone,this))?this.setTime(NaN):t.length?"number"==typeof t[0]&&(1===t.length||2===t.length&&"number"!=typeof t[1])?this.setTime(t[0]):"string"==typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),p(this),h(this)):this.setTime(Date.now())}static tz(t,...e){return e.length?new l(...e,t):new l(Date.now(),t)}withTimeZone(t){return new l(+this,t)}getTimezoneOffset(){const t=-s(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),h(this),+this}[Symbol.for("constructDateFrom")](t){return new l(+new Date(t),this.timeZone)}}const c=/^(get|set)(?!UTC)/;function h(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(60*-s(t.timeZone,t)))}function p(t){const e=s(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),o=new Date(+t);o.setUTCHours(o.getUTCHours()-1);const i=-new Date(+t).getTimezoneOffset(),r=i- -new Date(+o).getTimezoneOffset(),a=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();r&&a&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+r);const l=i-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const c=new Date(+t);c.setUTCSeconds(0);const h=i>0?c.getSeconds():(c.getSeconds()-60)%60,p=Math.round(-60*s(t.timeZone,t))%60;(p||h)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+p),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+p+h));const u=s(t.timeZone,t),m=u>0?Math.floor(u):Math.ceil(u),g=-new Date(+t).getTimezoneOffset()-m-l;if(m!==n&&g){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+g);const e=s(t.timeZone,t),n=m-(e>0?Math.floor(e):Math.ceil(e));n&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach((t=>{if(!c.test(t))return;const e=t.replace(c,"$1UTC");l.prototype[e]&&(t.startsWith("get")?l.prototype[t]=function(){return this.internal[e]()}:(l.prototype[t]=function(){var t;return Date.prototype[e].apply(this.internal,arguments),t=this,Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),p(t),+this},l.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),h(this),+this}))}));class u extends l{static tz(t,...e){return e.length?new u(...e,t):new u(Date.now(),t)}toISOString(){const[t,e,n]=this.tzComponents(),o=`${t}${e}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,e,n,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${n} ${e} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[e,n,o]=this.tzComponents();return`${t} GMT${e}${n}${o} (${function(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(t,e){return Date.prototype.toLocaleString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}toLocaleDateString(t,e){return Date.prototype.toLocaleDateString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}toLocaleTimeString(t,e){return Date.prototype.toLocaleTimeString.call(this,t,{...e,timeZone:e?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset();return[t>0?"-":"+",String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),String(Math.abs(t)%60).padStart(2,"0")]}withTimeZone(t){return new u(+this,t)}[Symbol.for("constructDateFrom")](t){return new u(+new Date(t),this.timeZone)}}},1501(t,e,n){n.d(e,{Cg:()=>s,_P:()=>r,my:()=>o,w4:()=>i}),Math.pow(10,8);const o=6048e5,i=864e5,s=6e4,r=Symbol.for("constructDateFrom")}}]);