function e(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function t(t,n,r){let i=e(n,r);return typeof i==`boolean`?i:Math.floor(t.getYear(n)/10)===Math.floor(t.getYear(r)/10)}function n(t,n,r){let i=e(n,r);return typeof i==`boolean`?i:t.getYear(n)===t.getYear(r)}function r(e,t){return Math.floor(e.getMonth(t)/3)+1}function i(t,i,a){let o=e(i,a);return typeof o==`boolean`?o:n(t,i,a)&&r(t,i)===r(t,a)}function a(t,r,i){let a=e(r,i);return typeof a==`boolean`?a:n(t,r,i)&&t.getMonth(r)===t.getMonth(i)}function o(t,n,r){let i=e(n,r);return typeof i==`boolean`?i:t.getYear(n)===t.getYear(r)&&t.getMonth(n)===t.getMonth(r)&&t.getDate(n)===t.getDate(r)}function s(t,n,r){let i=e(n,r);return typeof i==`boolean`?i:t.getHour(n)===t.getHour(r)&&t.getMinute(n)===t.getMinute(r)&&t.getSecond(n)===t.getSecond(r)}function c(t,n,r,i){let a=e(r,i);return typeof a==`boolean`?a:t.locale.getWeek(n,r)===t.locale.getWeek(n,i)}function l(e,t,n){return o(e,t,n)&&s(e,t,n)}function u(e,t,n,r){return!t||!n||!r?!1:!o(e,t,r)&&!o(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function d(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function f(e,t,n,r=1){switch(t){case`year`:return n.addYear(e,r*10);case`quarter`:case`month`:return n.addYear(e,r);default:return n.addMonth(e,r)}}function p(e,{generateConfig:t,locale:n,format:r}){return typeof r==`function`?r(e):t.locale.format(n.locale,e,r)}function m(e,{generateConfig:t,locale:n,formatList:r}){return!e||typeof r[0]==`function`?null:t.locale.parse(n.locale,e,r)}function h({cellDate:e,mode:t,disabledDate:n,generateConfig:r}){if(!n)return!1;let i=(t,i,a)=>{let o=i;for(;o<=a;){let i;switch(t){case`date`:if(i=r.setDate(e,o),!n(i))return!1;break;case`month`:if(i=r.setMonth(e,o),!h({cellDate:i,mode:`month`,generateConfig:r,disabledDate:n}))return!1;break;case`year`:if(i=r.setYear(e,o),!h({cellDate:i,mode:`year`,generateConfig:r,disabledDate:n}))return!1;break}o+=1}return!0};switch(t){case`date`:case`week`:return n(e);case`month`:return i(`date`,1,r.getDate(r.getEndDate(e)));case`quarter`:{let t=Math.floor(r.getMonth(e)/3)*3;return i(`month`,t,t+2)}case`year`:return i(`month`,0,11);case`decade`:{let t=r.getYear(e),n=Math.floor(t/10)*10;return i(`year`,n,n+10-1)}}}exports.formatValue=p,exports.getCellDateDisabled=h,exports.getClosingViewDate=f,exports.getQuarter=r,exports.getWeekStartDate=d,exports.isEqual=l,exports.isInRange=u,exports.isNullEqual=e,exports.isSameDate=o,exports.isSameDecade=t,exports.isSameMonth=a,exports.isSameQuarter=i,exports.isSameTime=s,exports.isSameWeek=c,exports.isSameYear=n,exports.parseValue=m;