PageSourceSearch

https://wwws.betterment.com/build/assets/parse-D4MEqVvC.js

js betterment.com collected 2026-09-24 08:34:33 UTC 34,734 bytes, 3 lines download raw bytes

1import{n as e,r as t,t as n}from"./defineProperty-CqlHYGuI.js";import{t as r}from"./setPrototypeOf-DnvsA3Yi.js";import{t as i}from"./toInteger-B5uS0zNk.js";import{n as a,t as o}from"./toDate-BfgeFUp2.js";import{i as s,n as c,r as l,t as u}from"./assign-4NlcxbC5.js";function d(e,t){a(2,arguments);var n=o(e).getTime(),r=i(t);return new Date(n+r)}var f=365.2425,p=10**8*24*60*60*1e3,m=6e4,h=36e5,g=1e3;-p;var _=3600*24;_*7,_*f/12*3;function ee(e,t){return a(2,arguments),d(e,-i(t))}function v(e){a(1,arguments);var t=1,n=o(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function y(e){a(1,arguments);var t=o(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=v(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var c=v(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function b(e){a(1,arguments);var t=y(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),v(n)}var x=6048e5;function S(e){a(1,arguments);var t=o(e),n=v(t).getTime()-b(t).getTime();return Math.round(n/x)+1}function C(e,t){var n;a(1,arguments);var r=s(),c=i(t?.weekStartsOn??(t==null||(n=t.locale)==null?void 0:n.options?.weekStartsOn)??r.weekStartsOn??r.locale?.options?.weekStartsOn??0);if(!(c>=0&&c<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var l=o(e),u=l.getUTCDay(),d=(u<c?7:0)+u-c;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}function w(e,t){var n;a(1,arguments);var r=o(e),c=r.getUTCFullYear(),l=s(),u=i(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1);if(!(u>=1&&u<=7))throw RangeError(`firstWeekContainsDate must be between 1 and 7 inclusively`);var d=new Date(0);d.setUTCFullYear(c+1,0,u),d.setUTCHours(0,0,0,0);var f=C(d,t),p=new Date(0);p.setUTCFullYear(c,0,u),p.setUTCHours(0,0,0,0);var m=C(p,t);return r.getTime()>=f.getTime()?c+1:r.getTime()>=m.getTime()?c:c-1}function T(e,t){var n;a(1,arguments);var r=s(),o=i(t?.firstWeekContainsDate??(t==null||(n=t.locale)==null?void 0:n.options?.firstWeekContainsDate)??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1),c=w(e,t),l=new Date(0);return l.setUTCFullYear(c,0,o),l.setUTCHours(0,0,0,0),C(l,t)}var E=6048e5;function D(e,t){a(1,arguments);var n=o(e),r=C(n,t).getTime()-T(n,t).getTime();return Math.round(r/E)+1}var O=function(e,t){switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},k=function(e,t){switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},A={p:k,P:function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return O(e,t);var a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,O(r,t)).replace(`{{time}}`,k(i,t))}},j=[`D`,`DD`],M=[`YY`,`YYYY`];function te(e){return j.indexOf(e)!==-1}function ne(e){return M.indexOf(e)!==-1}function N(e,t,n){if(e===`YYYY`)throw RangeError(`Use \`yyyy\` instead of \`YYYY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`YY`)throw RangeError(`Use \`yy\` instead of \`YY\` (in \`${t}\`) for formatting years to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`D`)throw RangeError(`Use \`d\` instead of \`D\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(e===`DD`)throw RangeError(`Use \`dd\` instead of \`DD\` (in \`${t}\`) for formatting days of the month to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`)}function P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t){if(e){if(typeof e==`string`)return P(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function I(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];
1if(!n){if(Array.isArray(e)||(n=F(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function L(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function R(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function B(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B=function(){return!!e})()}function re(e,n){if(n&&(t(n)==`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return L(e)}function V(e){var t=B();return function(){var n,r=z(e);if(t){var i=z(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return re(this,n)}}function H(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function U(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,`value`in i&&(i.writable=!0),Object.defineProperty(t,e(i.key),i)}}function W(e,t,n){return t&&U(e.prototype,t),n&&U(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var ie=10,ae=function(){function e(){H(this,e),n(this,`priority`,void 0),n(this,`subPriority`,0)}return W(e,[{key:`validate`,value:function(e,t){return!0}}]),e}(),oe=function(e){R(n,e);var t=V(n);function n(e,r,i,a,o){var s;return H(this,n),s=t.call(this),s.value=e,s.validateValue=r,s.setValue=i,s.priority=a,o&&(s.subPriority=o),s}return W(n,[{key:`validate`,value:function(e,t){return this.validateValue(e,this.value,t)}},{key:`set`,value:function(e,t,n){return this.setValue(e,t,this.value,n)}}]),n}(ae),se=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,ie),n(L(e),`subPriority`,-1),e}return W(r,[{key:`set`,value:function(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}]),r}(ae),G=function(){function e(){H(this,e),n(this,`incompatibleTokens`,void 0),n(this,`priority`,void 0),n(this,`subPriority`,void 0)}return W(e,[{key:`run`,value:function(e,t,n,r){var i=this.parse(e,t,n,r);return i?{setter:new oe(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:`validate`,value:function(e,t,n){return!0}}]),e}(),ce=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,140),n(L(e),`incompatibleTokens`,[`R`,`u`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}},{key:`set`,value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),K={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/}
2,q={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function J(e,t){return e&&{value:t(e.value),rest:e.rest}}function Y(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function X(e,t){var n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};var r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*h+a*m+o*g),rest:t.slice(n[0].length)}}function le(e){return Y(K.anyDigitsSigned,e)}function Z(e,t){switch(e){case 1:return Y(K.singleDigit,t);case 2:return Y(K.twoDigits,t);case 3:return Y(K.threeDigits,t);case 4:return Y(K.fourDigits,t);default:return Y(RegExp(`^\\d{1,`+e+`}`),t)}}function ue(e,t){switch(e){case 1:return Y(K.singleDigitSigned,t);case 2:return Y(K.twoDigitsSigned,t);case 3:return Y(K.threeDigitsSigned,t);case 4:return Y(K.fourDigitsSigned,t);default:return Y(RegExp(`^-?\\d{1,`+e+`}`),t)}}function Q(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function de(e,t){var n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{var a=r+50,o=Math.floor(a/100)*100,s=e>=a%100;i=e+o-(s?100:0)}return n?i:1-i}function fe(e){return e%400==0||e%4==0&&e%100!=0}var pe=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,130),n(L(e),`incompatibleTokens`,[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`yy`}};switch(t){case`y`:return J(Z(4,e),r);case`yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var i=de(n.year,r);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),me=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,130),n(L(e),`incompatibleTokens`,[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:t===`YY`}};switch(t){case`Y`:return J(Z(4,e),r);case`Yo`:return J(n.ordinalNumber(e,{unit:`year`}),r);default:return J(Z(t.length,e),r)}}},{key:`validate`,value:function(e,t){return t.isTwoDigitYear||t.year>0}},{key:`set`,value:function(e,t,n,r){var i=w(e,r);if(n.isTwoDigitYear){var a=de(n.year,i);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),C(e,r)}var o=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),C(e,r)}}]),r}(G),he=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,130),n(L(e),`incompatibleTokens`,[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t){return ue(t===`R`?4:t.length,e)}},{key:`set`,value:function(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),v(r)}}]),r}(G),ge=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,130),n(L(e),`incompatibleTokens`,[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t){return ue(t===`u`?4:t.length,e)}},{key:`set`,value:function(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),_e=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,120),n(L(e),`incompatibleTokens`,[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`Q`:case`QQ`:return Z(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),ve=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,120),n(L(e),`incompatibleTokens`,[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`q`:case`qq`:return Z(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=1&&t<=4}},{key:`set`,value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),ye=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),n(L(e),`priority`,110),e}return W(r,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`M`:return J(Y(K.month,e),r);case`MM`:return J(Z(2,e),r);case`Mo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(G),be=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,110),n(L(e),`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){var r=function(e){return e-1};switch(t){case`L`:return J(Y(K.month,e),r);case`LL`:return J(Z(2,e),r);case`Lo`:return J(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}]),r}(G);function xe(e,t,n){a(2,arguments);var r=o(e),s=i(t),c=D(r,n)-s;return r.setUTCDate(r.getUTCDate()-c*7),r}var Se=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,100),n(L(e),`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`w`:return Y(K.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n,r){return C(xe(e,n,r),r)}}]),r}(G);function Ce(e,t){a(2,arguments);var n=o(e),r=i(t),s=S(n)-r;return n.setUTCDate(n.getUTCDate()-s*7),n}var we=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,100),n(L(e),`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`I`:return Y(K.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=53}},{key:`set`,value:function(e,t,n){return v(Ce(e,n))}}]),r}(G),Te=[31,28,31,30,31,30,31,31,30,31,30,31],Ee=[31,29,31,30,31,30,31,31,30,31,30,31],De=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`subPriority`,1),n(L(e),`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`d`:return Y(K.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){var n=fe(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=Ee[r]:t>=1&&t<=Te[r]}},{key:`set`,value:function(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}]),r}(G),Oe=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`subpriority`,1),n(L(e),`incompatibleTokens`,[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`D`:case`DD`:return Y(K.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return fe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}},{key:`set`,value:function(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}]),r}(G);function $(e,t,n){var r;a(2,arguments);var c=s(),l=i(n?.weekStartsOn??(n==null||(r=n.locale)==null?void 0:r.options?.weekStartsOn)??c.weekStartsOn??c.locale?.options?.weekStartsOn??0);if(!(l>=0&&l<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);var u=o(e),d=i(t),f=u.getUTCDay(),p=((d%7+7)%7<l?7:0)+d-f;return u.setUTCDate(u.getUTCDate()+p),u}var ke=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`incompatibleTokens`,[`D`,`i`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`E`:case`EE`:case`EEE`
2:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=$(e,n,r),e.setUTCHours(0,0,0,0),e}}]),r}(G),Ae=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return J(Z(t.length,e),i);case`eo`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=$(e,n,r),e.setUTCHours(0,0,0,0),e}}]),r}(G),je=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`incompatibleTokens`,[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n,r){var i=function(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return J(Z(t.length,e),i);case`co`:return J(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}},{key:`validate`,value:function(e,t){return t>=0&&t<=6}},{key:`set`,value:function(e,t,n,r){return e=$(e,n,r),e.setUTCHours(0,0,0,0),e}}]),r}(G);function Me(e,t){a(2,arguments);var n=i(t);n%7==0&&(n-=7);var r=1,s=o(e),c=s.getUTCDay(),l=((n%7+7)%7<r?7:0)+n-c;return s.setUTCDate(s.getUTCDate()+l),s}var Ne=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,90),n(L(e),`incompatibleTokens`,[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){var r=function(e){return e===0?7:e};switch(t){case`i`:case`ii`:return Z(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return J(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return J(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return J(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return J(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=7}},{key:`set`,value:function(e,t,n){return e=Me(e,n),e.setUTCHours(0,0,0,0),e}}]),r}(G),Pe=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,80),n(L(e),`incompatibleTokens`,[`b`,`B`,`H`,`k`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setUTCHours(Q(n),0,0,0),e}}]),r}(G),Fe=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,80),n(L(e),`incompatibleTokens`,[`a`,`B`,`H`,`k`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setUTCHours(Q(n),0,0,0),e}}]),r}(G),Ie=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,80),n(L(e),`incompatibleTokens`,[`a`,`b`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}},{key:`set`,value:function(e,t,n){return e.setUTCHours(Q(n),0,0,0),e}}]),r}(G),Le=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,70),n(L(e),`incompatibleTokens`,[`H`,`K`,`k`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`h`:return Y(K.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=12}},{key:`set`,value:function(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):!r&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(G),Re=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,70),n(L(e),`incompatibleTokens`,[`a`,`b`,`h`,`K`,`k`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`H`:return Y(K.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=23}},{key:`set`,value:function(e,t,n){return e.setUTCHours(n,0,0,0),e}}]),r}(G),ze=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,70),n(L(e),`incompatibleTokens`,[`h`,`H`,`k`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`K`:return Y(K.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=11}},{key:`set`,value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),r}(G),Be=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,70),n(L(e),`incompatibleTokens`,[`a`,`b`,`h`,`H`,`K`,`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`k`:return Y(K.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=1&&t<=24}},{key:`set`,value:function(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}}]),r}(G),Ve=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,60),n(L(e),`incompatibleTokens`,[`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`m`:return Y(K.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setUTCMinutes(n,0,0),e}}]),r}(G),He=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,50),n(L(e),`incompatibleTokens`,[`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t,n){switch(t){case`s`:return Y(K.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return Z(t.length,e)}}},{key:`validate`,value:function(e,t){return t>=0&&t<=59}},{key:`set`,value:function(e,t,n){return e.setUTCSeconds(n,0),e}}]),r}(G),Ue=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,30),n(L(e),`incompatibleTokens`,[`t`,`T`]),e}return W(r,[{key:`parse`,value:function(e,t){return J(Z(t.length,e),function(e){return Math.floor(e*10**(-t.length+3))})}},{key:`set`,value:function(e,t,n){return e.setUTCMilliseconds(n),e}}]),r}(G),We=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,10),n(L(e),`incompatibleTokens`,[`t`,`T`,`x`]),e}return W(r,[{key:`parse`,value:function(e,t){switch(t){case`X`:return X(q.basicOptionalMinutes,e);case`XX`:return X(q.basic,e);case`XXXX`:return X(q.basicOptionalSeconds,e);case`XXXXX`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(G),Ge=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,10),n(L(e),`incompatibleTokens`,[`t`,`T`,`X`]),e}return W(r,[{key:`parse`,value:function(e,t){switch(t){case`x`:return X(q.basicOptionalMinutes,e);case`xx`:return X(q.basic,e);case`xxxx`:return X(q.basicOptionalSeconds,e);case`xxxxx`:return X(q.extendedOptionalSeconds,e);default:return X(q.extended,e)}}},{key:`set`,value:function(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}}]),r}(G),Ke=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,40),n(L(e),`incompatibleTokens`,`*`),e}return W(r,[{key:`parse`,value:function(e){return le(e)}},{key:`set`,value:function(e,t,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),r}(G),qe=function(e){R(r,e);var t=V(r);function r(){var e;H(this,r);var i=[...arguments];return e=t.call.apply(t,[this].concat(i)),n(L(e),`priority`,20),n(L(e),`incompatibleTokens`,`*`),e}return W(r,[{key:`parse`,value:function(e){return le(e)}},{key:`set`,value:function(e,t,n){return[new Date(n),{timestampIsSet:!0}]}}]),r}
2(G),Je={G:new ce,y:new pe,Y:new me,R:new he,u:new ge,Q:new _e,q:new ve,M:new ye,L:new be,w:new Se,I:new we,d:new De,D:new Oe,E:new ke,e:new Ae,c:new je,i:new Ne,a:new Pe,b:new Fe,B:new Ie,h:new Le,H:new Re,K:new ze,k:new Be,m:new Ve,s:new He,S:new Ue,X:new We,x:new Ge,t:new Ke,T:new qe},Ye=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ze=/^'([^]*?)'?$/,Qe=/''/g,$e=/\S/,et=/[a-zA-Z]/;function tt(e,n,r,d){var f,p;a(3,arguments);var m=String(e),h=String(n),g=s(),_=d?.locale??g.locale??c;if(!_.match)throw RangeError(`locale must contain match property`);var v=i(d?.firstWeekContainsDate??(d==null||(f=d.locale)==null?void 0:f.options?.firstWeekContainsDate)??g.firstWeekContainsDate??g.locale?.options?.firstWeekContainsDate??1);if(!(v>=1&&v<=7))throw RangeError(`firstWeekContainsDate must be between 1 and 7 inclusively`);var y=i(d?.weekStartsOn??(d==null||(p=d.locale)==null?void 0:p.options?.weekStartsOn)??g.weekStartsOn??g.locale?.options?.weekStartsOn??0);if(!(y>=0&&y<=6))throw RangeError(`weekStartsOn must be between 0 and 6 inclusively`);if(h===``)return m===``?o(r):new Date(NaN);var b={firstWeekContainsDate:v,weekStartsOn:y,locale:_},x=[new se],S=h.match(Xe).map(function(e){var t=e[0];if(t in A){var n=A[t];return n(e,_.formatLong)}return e}).join(``).match(Ye),C=[],w=I(S),T;try{var E=function(){var t=T.value;!(d!=null&&d.useAdditionalWeekYearTokens)&&ne(t)&&N(t,h,e),!(d!=null&&d.useAdditionalDayOfYearTokens)&&te(t)&&N(t,h,e);var n=t[0],r=Je[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=C.find(function(e){return i.includes(e.token)||e.token===n});if(a)throw RangeError(`The format string mustn't contain \`${a.fullToken}\` and \`${t}\` at the same time`)}else if(r.incompatibleTokens===`*`&&C.length>0)throw RangeError(`The format string mustn't contain \`${t}\` and any other token at the same time`);C.push({token:n,fullToken:t});var o=r.run(m,t,_.match,b);if(!o)return{v:new Date(NaN)};x.push(o.setter),m=o.rest}else{if(n.match(et))throw RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");if(t===`''`?t=`'`:n===`'`&&(t=nt(t)),m.indexOf(t)===0)m=m.slice(t.length);else return{v:new Date(NaN)}}};for(w.s();!(T=w.n()).done;){var D=E();if(t(D)===`object`)return D.v}}catch(e){w.e(e)}finally{w.f()}if(m.length>0&&$e.test(m))return new Date(NaN);var O=x.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return x.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),k=o(r);if(isNaN(k.getTime()))return new Date(NaN);var j=ee(k,l(k)),M={},P=I(O),F;try{for(P.s();!(F=P.n()).done;){var L=F.value;if(!L.validate(j,b))return new Date(NaN);var R=L.set(j,M,b);Array.isArray(R)?(j=R[0],u(M,R[1])):j=R}}catch(e){P.e(e)}finally{P.f()}return j}function nt(e){return e.match(Ze)[1].replace(Qe,`'`)}export{A as a,S as c,h as d,m as f,N as i,y as l,te as n,D as o,ne as r,w as s,tt as t,ee as u};
3//# sourceMappingURL=parse-D4MEqVvC.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.