From 36cdfa2e558e04131dc91ea9a508ea8ef6659203 Mon Sep 17 00:00:00 2001 From: Rello Date: Thu, 15 Oct 2026 21:41:40 +0200 Subject: [PATCH] Update bundled Moment.js to 2.31.0 Signed-off-by: Rello Assisted-by: Codex:GPT-5 --- CHANGELOG.md | 1 + js/3rdParty/moment.min.js | 10 ++++++---- sbom.cdx.json | 12 ++++++------ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e963100fb..99ac70634 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased ### Fixed +- Update bundled Moment.js to 2.31.0, which includes the fix for CVE-2026-17495. - Update bundled PhpSpreadsheet to 5.10.0 to address known spreadsheet processing vulnerabilities. - Restore report tiles for recipients of shared panoramas. - Replace the report folder icon with a downward arrow when expanded and remove redundant trailing folder arrows. diff --git a/js/3rdParty/moment.min.js b/js/3rdParty/moment.min.js index b04d04d93..84fc563c8 100644 --- a/js/3rdParty/moment.min.js +++ b/js/3rdParty/moment.min.js @@ -1,7 +1,9 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var H;function _(){return H.apply(null,arguments)}function y(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function g(e){return void 0===e}function w(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i>>0,s=0;sWe(e)?(r=e+1,t-We(e)):(r=e,t);return{year:r,dayOfYear:n}}function Be(e,t,n){var s,i,r=qe(e.year(),t,n),r=Math.floor((e.dayOfYear()-r-1)/7)+1;return r<1?s=r+N(i=e.year()-1,t,n):r>N(e.year(),t,n)?(s=r-N(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function N(e,t,n){var s=qe(e,t,n),t=qe(e+1,t,n);return(We(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),h("w",n,u),h("ww",n,t),h("W",n,u),h("WW",n,t),Oe(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=M(e)});function Je(e,t){return e.slice(t,7).concat(e.slice(0,t))}s("d",0,"do","day"),s("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),s("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),s("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),s("e",0,0,"weekday"),s("E",0,0,"isoWeekday"),h("d",n),h("e",n),h("E",n),h("dd",function(e,t){return t.weekdaysMinRegex(e)}),h("ddd",function(e,t){return t.weekdaysShortRegex(e)}),h("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,n,s){s=n._locale.weekdaysParse(e,s,n._strict);null!=s?t.d=s:p(n).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,n,s){t[s]=M(e)});var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=i,tt=i,nt=i;function st(){function e(e,t){return t.length-e.length}for(var t,n,s,i=[],r=[],a=[],o=[],u=0;u<7;u++)s=l([2e3,1]).day(u),t=f(this.weekdaysMin(s,"")),n=f(this.weekdaysShort(s,"")),s=f(this.weekdays(s,"")),i.push(t),r.push(n),a.push(s),o.push(t),o.push(n),o.push(s);i.sort(e),r.sort(e),a.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function rt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function at(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,it),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+it.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),rt("a",!0),rt("A",!1),h("a",at),h("A",at),h("H",n,d),h("h",n,u),h("k",n,u),h("HH",n,t),h("hh",n,t),h("kk",n,t),h("hmm",me),h("hmmss",_e),h("Hmm",me),h("Hmmss",_e),v(["H","HH"],O),v(["k","kk"],function(e,t,n){e=M(e);t[O]=24===e?0:e}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),v(["h","hh"],function(e,t,n){t[O]=M(e),p(n).bigHour=!0}),v("hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s)),p(n).bigHour=!0}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i)),p(n).bigHour=!0}),v("Hmm",function(e,t,n){var s=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s))}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[O]=M(e.substr(0,s)),t[b]=M(e.substr(s,2)),t[T]=M(e.substr(i))});i=Re("Hours",!0);var ot,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Fe,monthsShort:Le,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Ke,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},W={},lt={};function dt(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,s,i,r=0;r=t&&function(e,t){for(var n=Math.min(e.length,t.length),s=0;s=t-1)break;t--}r++}return ot}function ct(t){var e,n;if(void 0===W[t]&&"undefined"!=typeof module&&module&&module.exports&&(n=t)&&n.match("^[^/\\\\]*$"))try{e=ot._abbr,require("./locale/"+t),ft(e)}catch(e){W[t]=null}return W[t]}function ft(e,t){return e&&((t=g(t)?P(e):mt(e,t))?ot=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function mt(e,t){if(null===t)return delete W[e],null;var n,s=ut;if(t.abbr=e,null!=W[e])Q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=W[e]._config;else if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return W[e]=new K(X(s,t)),lt[e]&<[e].forEach(function(e){mt(e.name,e.config)}),ft(e),W[e]}function P(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ot;if(!y(e)){if(t=ct(e))return t;e=[e]}return ht(e)}function _t(e){var t=e._a;return t&&-2===p(e).overflow&&(t=t[Y]<0||11He(t[D],t[Y])?S:t[O]<0||24N(r,u,l)?p(s)._overflowWeeks=!0:null!=d?p(s)._overflowWeekday=!0:(h=$e(r,a,o,u,l),s._a[D]=h.year,s._dayOfYear=h.dayOfYear)),null!=e._dayOfYear&&(i=bt(e._a[D],n[D]),(e._dayOfYear>We(i)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),d=ze(i,0,e._dayOfYear),e._a[Y]=d.getUTCMonth(),e._a[S]=d.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=n[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[O]&&0===e._a[b]&&0===e._a[T]&&0===e._a[Te]&&(e._nextDay=!0,e._a[O]=0),e._d=(e._useUTC?ze:Ze).apply(null,c),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[O]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(p(e).weekdayMismatch=!0)}}function xt(e){if(e._f===_.ISO_8601)Yt(e);else if(e._f===_.RFC_2822)Ot(e);else{e._a=[],p(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=ae(e._f,e._locale).match(te)||[],d=l.length,h=0;he.valueOf():e.valueOf()"}),u.toJSON=function(){return this.isValid()?this.toISOString():null},u.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},u.unix=function(){return Math.floor(this.valueOf()/1e3)},u.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},u.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},u.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},u.isLocal=function(){return!!this.isValid()&&!this._isUTC},u.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},u.isUtc=At,u.isUTC=At,u.zoneAbbr=function(){return this._isUTC?"UTC":""},u.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},u.dates=e("dates accessor is deprecated. Use date instead.",ge),u.months=e("months accessor is deprecated. Use month instead",Ie),u.years=e("years accessor is deprecated. Use year instead",Pe),u.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),u.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return g(this._isDSTShifted)&&(q(e={},this),(e=Nt(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()})(this,function(){var U;function y(){return U.apply(null,arguments)}function g(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(c(e,t))return;return 1}function w(e){return void 0===e}function p(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function V(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function G(e,t){for(var n=[],s=e.length,i=0;i>>0,s=0;s{for(var e,i=s.match(ee),t=0,r=i.length;tbe(e)?(r=e+1,t-be(e)):(r=e,t);return{year:r,dayOfYear:n}}function at(e,t,n,s){var i,r,a=it(e,n,s),t=Math.floor((t-a-1)/7)+1;return t<1?i=t+P(r=e-1,n,s):t>P(e,n,s)?(i=t-P(e,n,s),r=e+1):(r=e,i=t),{week:i,year:r}}function ot(e,t,n){return at(e.year(),e.dayOfYear(),t,n)}function ut(e,t,n,s,i){return at(e,Math.round((st(e,t,n)-st(e,0,1))/864e5)+1,s,i)}function P(e,t,n){var s=it(e,t,n),t=it(e+1,t,n);return(be(e)-s+t)/7}s("w",["ww",2],"wo","week"),s("W",["WW",2],"Wo","isoWeek"),d("w",n,o),d("ww",n,t),d("W",n,o),d("WW",n,t),De(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=_(e)});function lt(){return this.hours()%12||12}function dt(e,t){s(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ht(e,t){return t._meridiemParse}s("H",["HH",2],0,"hour"),s("h",["hh",2],0,lt),s("k",["kk",2],0,function(){return this.hours()||24}),s("hmm",0,0,function(){return""+lt.apply(this)+r(this.minutes(),2)}),s("hmmss",0,0,function(){return""+lt.apply(this)+r(this.minutes(),2)+r(this.seconds(),2)}),s("Hmm",0,0,function(){return""+this.hours()+r(this.minutes(),2)}),s("Hmmss",0,0,function(){return""+this.hours()+r(this.minutes(),2)+r(this.seconds(),2)}),dt("a",!0),dt("A",!1),d("a",ht),d("A",ht),d("H",n,u),d("h",n,o),d("k",n,o),d("HH",n,t),d("hh",n,t),d("kk",n,t),d("hmm",de),d("hmmss",he),d("Hmm",de),d("Hmmss",he),v(["H","HH"],b),v(["k","kk"],function(e,t,n){e=_(e);t[b]=24===e?0:e}),v(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),v(["h","hh"],function(e,t,n){t[b]=_(e),M(n).bigHour=!0}),v("hmm",function(e,t,n){var s=e.length-2;t[b]=_(e.substr(0,s)),t[x]=_(e.substr(s)),M(n).bigHour=!0}),v("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[b]=_(e.substr(0,s)),t[x]=_(e.substr(s,2)),t[T]=_(e.substr(i)),M(n).bigHour=!0}),v("Hmm",function(e,t,n){var s=e.length-2;t[b]=_(e.substr(0,s)),t[x]=_(e.substr(s))}),v("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[b]=_(e.substr(0,s)),t[x]=_(e.substr(s,2)),t[T]=_(e.substr(i))});i=Te("Hours",!0);var ct,ft={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Re,monthsShort:Ce,week:{dow:0,doy:6},weekdays:Ie,weekdaysMin:ze,weekdaysShort:je,meridiemParse:/[ap]\.?m?\.?/i},W={},mt={};function _t(e){return e&&e.toLowerCase().replace("_","-")}function yt(e){for(var t,n,s,i,r=0;r=t&&((e,t)=>{for(var n=Math.min(e.length,t.length),s=0;s=t-1)break;t--}r++}return ct}function gt(t){var e,n;if(c(W,t))return W[t];if(t=_t(t),c(W,t))return W[t];if("undefined"!=typeof module&&module&&module.exports&&"string"==typeof(n=t)&&/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(n))try{e=ct._abbr,require("./locale/"+t),wt(e)}catch(e){W[t]=null}return c(W,t)?W[t]:void 0}function wt(e,t){return e&&((t=w(t)?kt(e):pt(e,t))?ct=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ct._abbr}function pt(e,t){if(null===t)return delete W[e],null;var n,s=ft;if(t.abbr=e,null!=W[e])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=W[e]._config;else if(null!=t.parentLocale)if(null!=W[t.parentLocale])s=W[t.parentLocale]._config;else{if(null==(n=gt(t.parentLocale)))return mt[t.parentLocale]||(mt[t.parentLocale]=[]),mt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return W[e]=new Xe(Qe(s,t)),mt[e]&&mt[e].forEach(function(e){pt(e.name,e.config)}),wt(e),W[e]}function kt(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return ct;if(!g(e)){if(t=gt(e))return t;e=[e]}return yt(e)}function Mt(e){var t=e._a;return t&&-2===M(e).overflow&&(t=t[Y]<0||11We(t[S],t[Y])?O:t[b]<0||24(e=parseInt(e,10))<=49?2e3+e:e<=999?1900+e:e)(e),Ce.indexOf(t),parseInt(n,10),parseInt(s,10),parseInt(i,10)];return r&&e.push(parseInt(r,10)),e}function Wt(e){var t,n,s=xt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=Pt(s[4],s[3],s[2],s[5],s[6],s[7]),((e,t,n)=>{if(!e||je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay())return 1;M(n).weekdayMismatch=!0,n._isValid=!1})(s[1],t,e)&&(e._a=t,e._tzm=(t=s[8],n=s[9],s=s[10],t?Tt[t]:n?0:60*(((t=parseInt(s,10))-(n=t%100))/100)+n),e._d=st.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0)):e._isValid=!1}function Rt(e,t,n){return null!=e?e:null!=t?t:n}function Ct(e,t,n){var s=Object.prototype.hasOwnProperty.call(e,"_isDefaultDatePartsForWeek"),i=e._isDefaultDatePartsForWeek;e._isDefaultDatePartsForWeek=!!n;try{return y._getDefaultDateParts(e,t,n)}finally{s?e._isDefaultDatePartsForWeek=i:delete e._isDefaultDatePartsForWeek}}function Ht(e){var t,n,s,i,r,a,o,u,l,d,h,c,f=[];if(!e._d){for(null!=e._a[S]&&null!=e._a[Y]&&null!=e._a[O]||(n=Ct(s=e,s=(s=s._defaultDatePartsNow)?(s.hasValue||(s.value=y.now(),s.hasValue=!0),s.value):y.now())),e._w&&null==e._a[O]&&null==e._a[Y]&&(r=Ct(i=e,s,!0),null!=(a=i._w).GG||null!=a.W||null!=a.E?(d=1,h=4,o=Rt(a.GG,i._a[S],ut(r[S],r[Y],r[O],1,4).year),u=Rt(a.W,1),((l=Rt(a.E,1))<1||7P(o,d,h)?M(i)._overflowWeeks=!0:null!=c?M(i)._overflowWeekday=!0:(r=rt(o,u,l,d,h),i._a[S]=r.year,i._dayOfYear=r.dayOfYear)),null!=e._dayOfYear&&(a=(null!=e._a[S]?e._a:n)[S],(e._dayOfYear>be(a)||0===e._dayOfYear)&&(M(e)._overflowDayOfYear=!0),c=st(a,0,e._dayOfYear),e._a[Y]=c.getUTCMonth(),e._a[O]=c.getUTCDate()),o=null==e._a[S]||null==e._a[Y]||null==e._a[O],t=0;t<3&&null==e._a[t];++t)e._a[t]=f[t]=n[t];for(;t<7;t++)e._a[t]=f[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[b]&&0===e._a[x]&&0===e._a[T]&&0===e._a[Se]&&(e._nextDay=!0,e._a[b]=0),e._d=(e._useUTC?st:nt).apply(null,f),u=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[b]=24),e._w&&void 0!==e._w.d&&!o&&e._w.d!==u&&(M(e).weekdayMismatch=!0)}}function Ut(e){if(e._f===y.ISO_8601)Nt(e);else if(e._f===y.RFC_2822)Wt(e);else{e._a=[],M(e).empty=!0;for(var t,n,s,i,r,a=""+e._i,o=a.length,u=0,l=re(e._f,e._locale).match(ee)||[],d=l.length,h=0;hnull==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((e=e.isPM(n))&&t<12&&(t+=12),t=e||12!==t?t:0):t)(e._locale,e._a[b],e._meridiem),null!==(o=M(e).era)&&(e._a[S]=e._locale.erasConvertYear(o,e._a[S])),Ht(e),Mt(e)}}function Ft(e){var t,n,s,i=e._i,r=e._f;if(e._locale=e._locale||kt(e._l),null===i||void 0===r&&""===i)return A({nullInput:!0});if("string"==typeof i&&(e._i=i=e._locale.preparse(i)),D(i))return new $(Mt(i));if(V(i))e._d=i;else if(g(r)){var a,o,u,l,d,h,c=e,f=!1,m={},_=c._f.length;if(0===_)M(c).invalidFormat=!0,c._d=new Date(NaN);else{for(l=0;l<_;l++)d=0,h=!1,a=Z({},c),null!=c._useUTC&&(a._useUTC=c._useUTC),a._defaultDatePartsNow=m,a._f=c._f[l],Ut(a),E(a)&&(h=!0),d=(d+=M(a).charsLeftOver)+10*M(a).unusedTokens.length,M(a).score=d,f?d{var t,n,s=!1,i=Gt.length;for(t in e)if(c(e,t)&&(-1===N.call(Gt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n{var n;return e.isValid()&&t.isValid()?(t=$t(t,e),e.isBefore(t)?n=Kt(e,t):((n=Kt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}})(R(s.from),R(s.to)),(s={}).ms=t.milliseconds,s.M=t.months),n=new Et(s),At(e)&&c(e,"_locale")&&(n._locale=e._locale),At(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n}function Xt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(s,i){return function(e,t){var n;return null===t||isNaN(+t)||(J(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=e,e=t,t=n),tn(this,C(e,t),s),this}}function tn(e,t,n,s){var i=t._milliseconds,r=It(t._days),t=It(t._months);e.isValid()&&(s=null==s||s,t&&Ve(e,Ne(e,"Month")+t*n),r&&Pe(e,"Date",Ne(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s)&&y.updateOffset(e,r||t)}C.fn=Et.prototype,C.invalid=function(){return C(NaN)};Re=en(1,"add"),Ie=en(-1,"subtract");function nn(e){return"string"==typeof e||e instanceof String}function sn(e){return D(e)||V(e)||nn(e)||p(e)||(t=>{var e=g(t),n=!1;return e&&(n=0===t.filter(function(e){return!p(e)&&nn(t)}).length),e&&n})(e)||(e=>{var t,n,s=F(e)&&!L(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t{for(var t=F(e)&&!L(e),n=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;ie.valueOf():e.valueOf(){var t,n=[];for(t in e)c(e,t)&&n.push({unit:t,priority:K[t]});return n.sort(function(e,t){return e.priority-t.priority}),n})(e=X(e)),s=n.length,i=0;i"}),o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},o.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},o.eraName=function(){for(var e,t=this.localeData().eras(),n=0,s=t.length;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},o.isLocal=function(){return!!this.isValid()&&!this._isUTC},o.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},o.isUtc=Bt,o.isUTC=Bt,o.zoneAbbr=function(){return this._isUTC?"UTC":""},o.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},o.dates=e("dates accessor is deprecated. Use date instead.",fe),o.months=e("months accessor is deprecated. Use month instead",Ge),o.years=e("years accessor is deprecated. Use year instead",xe),o.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),o.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){var e,t;return w(this._isDSTShifted)&&(Z(e={},this),(e=Ft(e))._a?(t=(e._isUTC?l:R)(e._a),this._isDSTShifted=this.isValid()&&0<((e,t)=>{for(var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,r=0;r