From a0d561bdbede140ef165ce6a9d0c34692b19765a Mon Sep 17 00:00:00 2001 From: CircleCI Automated Commit Date: Wed, 14 Feb 2024 13:48:09 -0500 Subject: [PATCH] build: automated generation of dist/ --- CHANGELOG.md | 7 ++++++- dist/moment-javaformat.js | 2 +- dist/moment-javaformat.min.js | 2 +- dist/node.js | 2 +- dist/node.min.js | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 409605ab..3d7472e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -## [2.0.7](https://github.com/RangerRick/moment-javaformat/compare/v2.0.6...v2.0.7) (2024-02-12) +## [2.0.7](https://github.com/RangerRick/moment-javaformat/compare/v2.0.6...v2.0.7) (2024-02-14) + + +### Bug Fixes + +* don't log the entire moment.js object ([de573cd](https://github.com/RangerRick/moment-javaformat/commit/de573cd40117463530aa7fb48a21f3531e0a4323)), closes [#1453](https://github.com/RangerRick/moment-javaformat/issues/1453) diff --git a/dist/moment-javaformat.js b/dist/moment-javaformat.js index 205de58e..d56dd0cf 100644 --- a/dist/moment-javaformat.js +++ b/dist/moment-javaformat.js @@ -66,7 +66,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**********************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DateTimeFormatter: () => (/* reexport safe */ _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]),\n/* harmony export */ SimpleDateFormat: () => (/* reexport safe */ _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ register: () => (/* binding */ register)\n/* harmony export */ });\n/* harmony import */ var _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formats/SimpleDateFormat */ \"./src/formats/SimpleDateFormat.ts\");\n/* harmony import */ var _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formats/DateTimeFormatter */ \"./src/formats/DateTimeFormatter.ts\");\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\n\n\nconst register = function (moment) {\n let fatal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (moment && moment.fn.zoneAbbr) {\n console.log(\"register:\", moment, fatal);\n if (moment.tz) {\n console.log(\"Moment.js with timezone support detected; attaching Java format methods.\");\n } else {\n console.warn(\"Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.\");\n }\n const sdf = new _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n const dtf = new _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n moment.fn.formatJavaSDF = function (formatString) {\n return sdf.format(this, formatString);\n };\n moment.fn.formatJavaDTF = function (formatString) {\n return dtf.format(this, formatString);\n };\n return moment;\n } else {\n console.error(\"Unable to attach Java format methods. Moment.js object was invalid.\");\n if (fatal) {\n throw new Error(\"Moment.js object was invalid.\");\n }\n }\n return undefined;\n};\n\n/*\n Attempt to register with global Moment.js object if it's found,\n preferring `moment-timezone` over `moment`.\n*/\n\nif (typeof window !== \"undefined\" && window?.moment) {\n register(window.moment, false);\n} else if (typeof __webpack_require__.g !== \"undefined\" && __webpack_require__.g?.moment) {\n register(__webpack_require__.g.moment, false);\n} else if (typeof window !== \"undefined\" && window) {\n try {\n const moment = __webpack_require__(/*! moment-timezone */ \"moment-timezone\");\n window.moment = register(moment, false);\n } catch (err) {\n console.warn(\"Failed to load moment-timezone. Attempting fallback to moment.\");\n try {\n const moment = __webpack_require__(/*! moment */ \"moment\");\n window.moment = register(moment, false);\n } catch (subErr) {\n console.warn(\"Failed to load moment. User will have to manually register.\");\n }\n }\n}\nlet m = undefined;\nif (typeof window !== \"undefined\") {\n m = window?.moment;\n}\nif (typeof m === \"undefined\" && typeof __webpack_require__.g !== \"undefined\") {\n m = __webpack_require__.g?.moment;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (m);\n\n\n//# sourceURL=webpack://@rangerrick/moment-javaformat/./src/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DateTimeFormatter: () => (/* reexport safe */ _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]),\n/* harmony export */ SimpleDateFormat: () => (/* reexport safe */ _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ register: () => (/* binding */ register)\n/* harmony export */ });\n/* harmony import */ var _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formats/SimpleDateFormat */ \"./src/formats/SimpleDateFormat.ts\");\n/* harmony import */ var _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formats/DateTimeFormatter */ \"./src/formats/DateTimeFormatter.ts\");\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\n\n\nconst register = function (moment) {\n let fatal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (moment && moment.fn.zoneAbbr) {\n console.log(\"register: moment=%s, fatal=%s\", typeof moment, fatal);\n if (moment.tz) {\n console.log(\"Moment.js with timezone support detected; attaching Java format methods.\");\n } else {\n console.warn(\"Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.\");\n }\n const sdf = new _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n const dtf = new _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n moment.fn.formatJavaSDF = function (formatString) {\n return sdf.format(this, formatString);\n };\n moment.fn.formatJavaDTF = function (formatString) {\n return dtf.format(this, formatString);\n };\n return moment;\n } else {\n console.error(\"Unable to attach Java format methods. Moment.js object was invalid.\");\n if (fatal) {\n throw new Error(\"Moment.js object was invalid.\");\n }\n }\n return undefined;\n};\n\n/*\n Attempt to register with global Moment.js object if it's found,\n preferring `moment-timezone` over `moment`.\n*/\n\nif (typeof window !== \"undefined\" && window?.moment) {\n register(window.moment, false);\n} else if (typeof __webpack_require__.g !== \"undefined\" && __webpack_require__.g?.moment) {\n register(__webpack_require__.g.moment, false);\n} else if (typeof window !== \"undefined\" && window) {\n try {\n const moment = __webpack_require__(/*! moment-timezone */ \"moment-timezone\");\n window.moment = register(moment, false);\n } catch (err) {\n console.warn(\"Failed to load moment-timezone. Attempting fallback to moment.\");\n try {\n const moment = __webpack_require__(/*! moment */ \"moment\");\n window.moment = register(moment, false);\n } catch (subErr) {\n console.warn(\"Failed to load moment. User will have to manually register.\");\n }\n }\n}\nlet m = undefined;\nif (typeof window !== \"undefined\") {\n m = window?.moment;\n}\nif (typeof m === \"undefined\" && typeof __webpack_require__.g !== \"undefined\") {\n m = __webpack_require__.g?.moment;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (m);\n\n\n//# sourceURL=webpack://@rangerrick/moment-javaformat/./src/index.js?"); /***/ }), diff --git a/dist/moment-javaformat.min.js b/dist/moment-javaformat.min.js index 67adc228..bb862a4c 100644 --- a/dist/moment-javaformat.min.js +++ b/dist/moment-javaformat.min.js @@ -1,2 +1,2 @@ -!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(function(){try{return require("moment-timezone")}catch(e){}}(),function(){try{return require("moment")}catch(e){}}());else if("function"==typeof define&&define.amd)define(["moment-timezone","moment"],t);else{var a="object"==typeof exports?t(function(){try{return require("moment-timezone")}catch(e){}}(),function(){try{return require("moment")}catch(e){}}()):t(e["moment-timezone"],e.moment);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,((e,t)=>(()=>{"use strict";var a={272:e=>{if(void 0===t){var a=new Error("Cannot find module 'moment'");throw a.code="MODULE_NOT_FOUND",a}e.exports=t},216:t=>{if(void 0===e){var a=new Error("Cannot find module 'moment-timezone'");throw a.code="MODULE_NOT_FOUND",a}t.exports=e}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var T=r[e]={exports:{}};return a[e](T,T.exports,n),T.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var T={};return(()=>{n.d(T,{default:()=>w});const e={"-720":["AoE","Y"],"-660":["NUT","SST","X"],"-600":["HST","CKT","TAHT","W"],"-570":["MART"],"-540":["AKST","HDT","GAMT","V"],"-480":["PST","AKDT","U","PT"],"-420":["MST","PDT","T","MT","PT"],"-360":["CST","MDT","EAST","GALT","S","CT","MT"],"-300":["EST","CDT","ACT","CIST","COT","CST","EASST","ECT","PET","R","ET","CT"],"-240":["EDT","AST","AMT","BOT","CIDST","CLT","FKT","GYT","VET","Q","AT","ET"],"-210":["NST"],"-180":["UYT","ADT","AMST","ART","BRT","CLST","FKST","GFT","PMST","ROTT","SRT","UYT","WARST","WGT","P","AT"],"-150":["NDT"],"-120":["GST","BRST","FNT","GST","PMDT","UYST","WGST","O"],"-60":["CVT","AZOT","CVT","EGT","N"],0:["UTC","GMT","AZOST","EGST","WET","Z","WT"],60:["CET","BST","WAT","WEST","WST","A"],120:["CAT","CEST","EET","SAST","WAST","B"],180:["EAT","EEST","FET","MSK","SYOT","TRT","C"],210:["IRST"],240:["GET","AZT","KUYT","MSD","MUT","RET","SAMT","SCT","D"],270:["AFT","IRDT"],300:["UZT","AQTT","AZST","MAWT","MVT","ORAT","PKT","TFT","TJT","TMT","YEKT","E"],330:["IST"],345:["NPT"],360:["BTT","ALMT","BTT","IOT","KGT","OMST","QYZT","VOST","YEKST","F"],390:["MMT","CCT"],420:["ICT","CXT","DAVT","HOVT","KRAT","NOVST","NOVT","OMSST","WIB","G"],480:["HKT","AWST","BNT","CAST","CHOT","HOVST","IRKT","KRAST","MYT","PHT","SGT","ULAT","WITA","H"],510:["PYT"],525:["ACWST"],540:["JST","AWDT","CHOST","IRKST","KST","PWT","TLT","ULAST","WIT","YAKT","I"],570:["ACST","ACT"],600:["PGT","AEST","CHUT","ChST","DDUT","VLAT","YAKST","YAPT","K","AET"],630:["ACDT","LHST","ACT"],660:["VUT","AEDT","KOST","LHDT","MAGT","NCT","NFT","PONT","SAKT","SBT","SRET","VLAST","L","AET"],720:["FJT","ANAST","ANAT","GILT","MAGST","MHT","NFDT","NRT","NZST","PETST","PETT","TVT","WAKT","WFT","M"],765:["CHAST"],780:["TOT","FJST","NZDT","PHOT","TKT","TOT"],825:["CHADT"],840:["LINT","TOST","WST"]},t={A:"Alpha Time Zone",ACDT:"Australian Central Daylight Time",ACST:"Australian Central Standard Time",ACT:"Australian Central Time",ACWST:"Australian Central Western Standard Time",ADT:"Atlantic Daylight Time",ADST:"Atlantic Daylight Saving Time",AEDT:"Australian Eastern Daylight Time",AEST:"Australian Eastern Standard Time",AET:"Australian Eastern Time",AFT:"Afghanistan Time",AKDT:"Alaska Daylight Time",AKST:"Alaska Standard Time",ALMT:"Alma-Ata Time",AMDT:"Armenia Daylight Time",AMST:"Amazon Summer Time",AMT:"Amazon Time",ANAST:"Anadyr Summer Time",ANAT:"Anadyr Time",AQTT:"Aqtobe Time",ART:"Argentina Time",AST:"Atlantic Standard Time",AT:"Atlantic Time",AWDT:"Australian Western Daylight Time",AWST:"Australian Western Standard Time",AZODT:"Azores Daylight Time",AZOST:"Azores Summer Time",AZOT:"Azores Time",AZST:"Azerbaijan Summer Time",AZT:"Azerbaijan Time",AoE:"Anywhere on Earth",B:"Bravo Time Zone",BDST:"British Daylight Saving Time",BDT:"Brunei Time",BNT:"Brunei Darussalam Time",BOT:"Bolivia Time",BRST:"Brasília Summer Time",BRT:"Brasília Time",BST:"British Summer Time",BT:"Brazil Time",BTT:"Bhutan Time",C:"Charlie Time Zone",CAST:"Casey Time",CAT:"Central Africa Time",CCT:"Cocos Islands Time",CDT:"Central Daylight Time",CDST:"Central Daylight Savings Time",CEDT:"Central European Daylight Time",CEST:"Central European Summer Time",CET:"Central European Time",CHADT:"Chatham Island Daylight Time",CHAST:"Chatham Island Standard Time",CHODT:"Choibalsan Daylight Time",CHODST:"Choibalsan Daylight Saving Time",CHOST:"Choibalsan Summer Time",CHOT:"Choibalsan Time",CHUT:"Chuuk Time",CIDST:"Cayman Islands Daylight Saving Time",CIST:"Cayman Islands Standard Time",CIT:"Cayman Islands Time",CKT:"Cook Island Time",CLDT:"Chile Daylight Time",CLST:"Chile Summer Time",CLT:"Chile Standard Time",COT:"Colombia Time",CST:"Central Standard Time",CT:"Central Time",CVT:"Cape Verde Time",CXT:"Christmas Island Time",ChST:"Chamorro Standard Time",D:"Delta Time Zone",DAVT:"Davis Time",DDUT:"Dumont-d'Urville Time",E:"Echo Time Zone",EADT:"Easter Island Daylight Time",EASST:"Easter Island Summer Time",EAST:"Easter Island Standard Time",EAT:"Eastern Africa Time",ECST:"European Central Summer Time",ECT:"Ecuador Time",EDT:"Eastern Daylight Time",EDST:"Eastern Daylight Saving Time",EEDT:"Eastern European Daylight Time",EEST:"Eastern European Summer Time",EET:"Eastern European Time",EFATE:"Efate Time",EGST:"Eastern Greenland Summer Time",EGT:"East Greenland Time",EST:"Eastern Standard Time",ET:"Eastern Time",F:"Foxtrot Time Zone",FET:"Further-Eastern European Time",FJDT:"Fiji Daylight Time",FJST:"Fiji Summer Time",FJT:"Fiji Time",FKDT:"Falkland Island Daylight Time",FKST:"Falkland Islands Summer Time",FKT:"Falkland Island Time",FNT:"Fernando de Noronha Time",G:"Golf Time Zone",GALT:"Galapagos Time",GAMT:"Gambier Time",GET:"Georgia Standard Time",GFT:"French Guiana Time",GILT:"Gilbert Island Time",GMT:"Greenwich Mean Time",GST:"South Georgia Time",GT:"Greenwich Time",GYT:"Guyana Time",H:"Hotel Time Zone",HAA:"Heure Avancée de l'Atlantique",HAC:"Heure Avancée du Centre",HADT:"Hawaii Daylight Time",HAE:"Heure Avancée de l'Est",HAP:"Heure Avancée du Pacifique",HAST:"Hawaii-Aleutian Standard Time",HAR:"Heure Avancée des Rocheuses",HAT:"Heure Avancée de Terre-Neuve",HDT:"Hawaii-Aleutian Daylight Time",HLV:"Hora Legal de Venezuela",HNA:"Heure Normale de l'Atlantique",HNC:"Heure Normale du Centre",HNE:"Heure Normale de l'Est",HNP:"Heure Normale du Pacifique",HNR:"Heure Normale des Rocheuses",HNT:"Heure Normale de Terre-Neuve",HKT:"Hong Kong Time",HOVDT:"Hovd Daylight Time",HOVDST:"Hovd Daylight Saving Time",HOVST:"Hovd Summer Time",HOVT:"Hovd Time",HST:"Hawaii Standard Time",I:"India Time Zone",ICT:"Indochina Time",IDT:"Israel Daylight Time",IOT:"Indian Chagos Time",IRDT:"Iran Daylight Time",IRKST:"Irkutsk Summer Time",IRKT:"Irkutsk Time",IRST:"Iran Standard Time",IST:"India Standard Time",JST:"Japan Standard Time",K:"Kilo Time Zone",KGT:"Kyrgyzstan Time",KIT:"Kerguelen (Islands) Time",KOST:"Kosrae Time",KRAST:"Krasnoyarsk Summer Time",KRAT:"Krasnoyarsk Time",KST:"Korea Standard Time",KT:"Korea Time",KUYT:"Kuybyshev Time",L:"Lima Time Zone",LHDT:"Lord Howe Daylight Time",LHST:"Lord Howe Standard Time",LINT:"Line Islands Time",M:"Mike Time Zone",MAGST:"Magadan Summer Time",MAGT:"Magadan Time",MART:"Marquesas Time",MAWT:"Mawson Time",MCK:"Moscow Time",MDST:"Mountain Daylight Saving Time",MDT:"Mountain Daylight Time",MESZ:"Mitteleuropäische Sommerzeit",MEZ:"Mitteleuropäische Zeit",MHT:"Marshall Islands Time",MMT:"Myanmar Time",MST:"Mountain Standard Time",MSK:"Moscow Standard Time",MT:"Mountain Time",MUT:"Mauritius Time",MVT:"Maldives Time",MYT:"Malaysia Time",N:"November Time Zone",NACDT:"North American Central Daylight Time",NACST:"North American Central Standard Time",NAEDT:"North American Eastern Daylight Time",NAEST:"North American Eastern Standard Time",NAMDT:"North American Mountain Daylight Time",NAMST:"North American Mountain Standard Time",NAPDT:"North American Pacific Daylight Time",NAPST:"North American Pacific Standard Time",NCT:"New Caledonia Time",NDT:"Newfoundland Daylight Time",NFDT:"Norfolk Daylight Time",NFT:"Norfolk Time",NOVST:"Novosibirsk Summer Time",NOVT:"Novosibirsk Time",NPT:"Nepal Time",NRT:"Nauru Time",NST:"Newfoundland Standard Time",NUT:"Niue Time",NZDT:"New Zealand Daylight Time",NZST:"New Zealand Standard Time",O:"Oscar Time Zone",OESZ:"Osteuropäische Sommerzeit",OEZ:"Osteuropäische Zeit",OMSST:"Omsk Summer Time",OMST:"Omsk Standard Time",ORAT:"Oral Time",P:"Papa Time Zone",PDT:"Pacific Daylight Time",PDST:"Pacific Daylight Saving Time",PET:"Peru Time",PETST:"Kamchatka Summer Time",PETT:"Kamchatka Time",PGT:"Papua New Guinea Time",PHOT:"Phoenix Island Time",PHT:"Philippine Time",PKT:"Pakistan Standard Time",PMDT:"Pierre & Miquelon Daylight Time",PMST:"Pierre & Miquelon Standard Time",PONT:"Pohnpei Standard Time",PST:"Pacific Standard Time",PT:"Pacific Time",PWT:"Palau Time",PYST:"Pyongyang Standard Time",PYT:"Pyongyang Time",Q:"Quebec Time Zone",QYZT:"Qyzylorda Time",R:"Romeo Time Zone",RET:"Reunion Time",ROTT:"Rothera Time",S:"Sierra Time Zone",SAKT:"Sakhalin Time",SAMT:"Samara Time",SAMST:"Samara Summer Time",SAST:"South Africa Standard Time",SBT:"Solomon Islands Time",SCT:"Seychelles Time",SGT:"Singapore Time",SRET:"Srednekolymsk Time",SRT:"Suriname Time",SST:"Samoa Standard Time",SYOT:"Syowa Time",T:"Tango Time Zone",TAHT:"Tahiti Time",TFT:"French Southern and Antarctic Time",TJT:"Tajikistan Time",TKT:"Tokelau Time",TLT:"East Timor Time",TMT:"Turkmenistan Time",TOST:"Tonga Summer Time",TOT:"Tonga Time",TRT:"Turkey Time",tVT:"Tuvalu Time",U:"Uniform Time Zone",ULAST:"Ulaanbaatar Summer Time",ULAT:"Ulaanbaatar Time",UTC:"Coordinated Universal Time",UYST:"Uruguay Summer Time",UYT:"Uruguay Time",UZT:"Uzbekistan Time",V:"Victor Time Zone",VET:"Venezuelan Standard Time",VLAST:"Vladivostok Summer Time",VLAT:"Vladivostok Time",VOST:"Vostok Time",VUT:"Vanuatu Time",W:"Whiskey Time Zone",WAKT:"Wake Time",WARST:"Western Argentine Summer Time",WAST:"West Africa Summer Time",WAT:"West Africa Time",WDT:"Western Daylight Time",WEDT:"Western European Daylight Time",WEST:"Western European Summer Time",WESZ:"Westeuropäische Sommerzeit",WET:"Western European Time",WEZ:"Westeuropäische Zeit",WFT:"Wallis and Futuna Time",WGST:"Western Greenland Summer Time",WGT:"West Greenland Time",WIB:"Western Indonesian Time",WIT:"Eastern Indonesian Time",WITA:"Central Indonesian Time",WST:"Western Standard Time",WT:"Western Sahara Standard Time",X:"X-ray Time Zone",Y:"Yankee Time Zone",YAKST:"Yakutsk Summer Time",YAKT:"Yakutsk Time",YAPT:"Yap Time",YEKST:"Yekaterinburg Summer Time",YEKT:"Yekaterinburg Time",Z:"Zulu Time Zone"},a={},r=e=>t[e]?t[e]:null,i=t=>{const r=moment(t).utcOffset();if(!a[r]){const t=(t=>{if(!moment.tz)return null;const a=moment.tz.guess(),r=a?moment.tz(a).format("z"):null,n=e[String(t)];return n?n.indexOf(r)>=0?r:n[0]:null})(r);t?a[r]=t:console.warn("- unhandled offset: "+r)}return a[r]||null},o=e=>Number.isInteger(e)?String(Math.abs(e)):e.replace(/^-/,""),m=(e,t)=>{const a=o(e);return a.length>=t?String(e):(a!==e?"-":"")+("0".repeat(t)+a).substr(0-t)};class s{count=0;constructor(e,t){if(1!=e.length)throw new Error("You must provide a single character when creating a token!");this.token=e,this.count=void 0===t?1:t}increment(){return this.count++,this.count}equals(e){return this.token===e.token&&this.count===e.count}toString(){return this.token.repeat(this.count)}}class u{}const l=/[A-Za-z]/,S=e=>e.year()>0?"AD":"BC",d=e=>{let t=e.zoneAbbr();const a=e.zoneName();if(e.tz)return a&&""!==a?"UTC"===t&&0!==e.utcOffset()?null:{abbr:t,name:a,description:r(t)}:null;if(t=i(e),t){const e=r(t);if(e)return{abbr:t,name:a,description:e}}return null},f={G:S,GG:S,GGG:S,GGGG:S,GGGGG:S,GGGGGG:S,y:e=>o(e.format("Y")),yy:e=>o(e.format("YY")),yyy:e=>m(o(e.format("YYYY")),3),yyyy:e=>o(e.format("YYYY")),yyyyy:e=>m(o(e.format("YYYY")),5),yyyyyy:e=>m(o(e.format("YYYY")),6),Y:"gggg",YY:"gg",YYY:e=>m(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>m(e.format("gggg"),5),YYYYYY:e=>m(e.format("gggg"),6),M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:"MMMM",MMMMMM:"MMMM",w:e=>m(e.format("w"),1),ww:e=>m(e.format("w"),2),www:e=>m(e.format("w"),3),wwww:e=>m(e.format("w"),4),wwwww:e=>m(e.format("w"),5),wwwwww:e=>m(e.format("w"),6),W:null,WW:null,WWW:null,WWWW:null,D:"DDD",DD:e=>m(e.format("DDD"),2),DDD:e=>m(e.format("DDD"),3),DDDD:e=>m(e.format("DDD"),4),DDDDD:e=>m(e.format("DDD"),5),DDDDDD:e=>m(e.format("DDD"),6),d:"D",dd:"DD",ddd:e=>m(e.format("D"),3),dddd:e=>m(e.format("D"),4),ddddd:e=>m(e.format("D"),5),dddddd:e=>m(e.format("D"),6),F:null,FF:null,FFF:null,FFFF:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:"dddd",EEEEEE:"dddd",u:"E",uu:e=>m(e.format("E"),2),uuu:e=>m(e.format("E"),3),uuuu:e=>m(e.format("E"),4),uuuuu:e=>m(e.format("E"),5),uuuuuu:e=>m(e.format("E"),6),a:"A",aa:"A",aaa:"A",aaaa:"A",aaaaa:"A",aaaaaa:"A",H:"H",HH:"HH",HHH:e=>m(e.format("H"),3),HHHH:e=>m(e.format("H"),4),HHHHH:e=>m(e.format("H"),5),HHHHHH:e=>m(e.format("H"),6),k:"k",kk:"kk",kkk:e=>m(e.format("k"),3),kkkk:e=>m(e.format("k"),4),kkkkk:e=>m(e.format("k"),5),kkkkkk:e=>m(e.format("k"),6),K:e=>{const t=parseInt(e.format("h"),10);return o(t%12)},KK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),2)},KKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),3)},KKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),4)},KKKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),5)},KKKKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),6)},h:"h",hh:"hh",hhh:e=>m(e.format("h"),3),hhhh:e=>m(e.format("h"),4),hhhhh:e=>m(e.format("h"),5),hhhhhh:e=>m(e.format("h"),6),m:"m",mm:"mm",mmm:e=>m(e.format("m"),3),mmmm:e=>m(e.format("m"),4),mmmmm:e=>m(e.format("m"),5),mmmmmm:e=>m(e.format("m"),6),s:"s",ss:"ss",sss:e=>m(e.format("s"),3),ssss:e=>m(e.format("s"),4),sssss:e=>m(e.format("s"),5),ssssss:e=>m(e.format("s"),6),S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>m(e.format("SSSS"),5),SSSSSS:e=>m(e.format("SSSS"),6),z:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},Z:"ZZ",ZZ:"ZZ",ZZZ:"ZZ",ZZZZ:"ZZ",ZZZZZ:"ZZ",ZZZZZZ:"ZZ",X:e=>0===e.utcOffset()?"Z":e.format("Z").substr(0,3),XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z")};class c extends u{tokenize(e){const t=[],a=e.length;let r=!1,n=0,T=null,i=null;const o=(e,a)=>{const r=f[e];if(null===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; token is not implemented`);if(void 0===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; unknown token`);t.push(new s(e,a))},m=e=>{t[t.length-1]instanceof s?t.push(e):t[t.length-1]+=e};for(let t=0;te.year()>0?"AD":"BC",E=e=>{const t=e.zoneAbbr();return"UTC"===t&&0!=e.utcOffset()?null:t},g={G:D,GG:D,GGG:D,GGGG:e=>e.year()>0?"Anno Domini":"Before Christ",GGGGG:e=>D(e).substring(0,1),u:e=>m(e.format("YYYY"),1),uu:e=>m(o(e.format("YY")),2),uuu:e=>m(e.format("YYYY"),3),uuuu:"YYYY",uuuuu:e=>m(e.format("YYYY"),5),uuuuuu:e=>m(e.format("YYYY"),6),y:e=>o(e.format("Y")),yy:e=>o(e.format("YY")),yyy:e=>m(o(e.format("YYYY")),3),yyyy:e=>o(e.format("YYYY")),yyyyy:e=>m(o(e.format("YYYY")),5),yyyyyy:e=>m(o(e.format("YYYY")),6),D:"DDD",DD:e=>{const t=e.format("DDD");if(t.length>2)throw new Error("Field DayOfYear cannot be printed as the value "+t+" exceeds the maximum print width of 2");return m(t,2)},DDD:"DDDD",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:e=>e.format("MMMM").substring(0,1),L:"M",LL:"MM",LLL:"M",LLLL:"M",LLLLL:"M",d:"D",dd:"DD",Q:"Q",QQ:e=>m(e.format("Q"),2),QQQ:e=>"Q"+e.format("Q"),QQQQ:e=>e.format("Qo")+" quarter",QQQQQ:"Q",q:"Q",qq:e=>m(e.format("Q"),2),qqq:"Q",qqqq:"Q",qqqqq:"Q",Y:e=>m(e.format("gggg"),1),YY:"gg",YYY:e=>m(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>m(e.format("gggg"),5),YYYYYY:e=>m(e.format("gggg"),6),w:"w",ww:"ww",W:null,WW:null,WWW:null,WWWW:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:e=>e.format("dddd").substring(0,1),e:"d",ee:e=>m(e.format("d"),2),eee:"ddd",eeee:"dddd",eeeee:e=>e.format("dddd").substring(0,1),c:"d",ccc:"ddd",cccc:"dddd",ccccc:e=>String(parseInt(e.format("d"),10)-1),a:"A",h:"h",hh:"hh",K:e=>o(e.hour()%12),KK:e=>{const t=o(e.hour()%12);return m(t,2)},k:"k",kk:"kk",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>m(e.format("SSSS"),5),SSSSSS:e=>m(e.format("SSSS"),6),A:e=>m(e.valueOf()-e.clone().startOf("day").valueOf(),1),AA:e=>e.isSame(e.clone().startOf("day"))?"00":null,AAA:e=>e.isSame(e.clone().startOf("day"))?"000":null,AAAA:e=>e.isSame(e.clone().startOf("day"))?"0000":null,AAAAA:e=>e.isSame(e.clone().startOf("day"))?"00000":null,AAAAAA:e=>e.isSame(e.clone().startOf("day"))?"000000":null,VV:e=>{if(0===e.utcOffset())return"Z";const t=e.tz();return t&&t.length>0?t:e.format("Z")},z:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zz:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zzz:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zzzz:e=>{if(0===e.utcOffset())return"Z";const t=E(e);return t?r(t):e.format("Z")},O:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z").replace(h,"").replace(/^([+-])0/,"$1"),OOOO:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z"),X:e=>{if(0===e.utcOffset())return"Z";const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z"),XXXX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXXXX:e=>0===e.utcOffset()?"Z":e.format("Z"),x:e=>{const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},xx:"ZZ",xxx:"Z",xxxx:"ZZ",xxxxx:"Z",Z:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZZ:e=>0===e.utcOffset()?"GMT":"GMT"+e.format("Z"),ZZZZZ:e=>0===e.utcOffset()?"Z":e.format("Z")};class M extends s{constructor(e,t,a,r){super(a,r),this.padding=e,this.padChar=t}format(e){if(e.length>this.padding)throw new Error(`Cannot format padding as formatted string "${e}" exceeds pad width of ${this.padding}.`);return(this.padChar.repeat(this.padding)+e).substr(0-this.padding)}}class Z extends u{tokenize(e){let t=0,a=" ";const r=[];for(let n=0;n0?(r.push(new M(t,a,T,o)),t=0,a=" "):r.push(new s(T,o)),n--}else if("'"===T){const t=n++;for(;n=e.length)throw new Error(`Pattern ends with an incomplete string literal: ${e}`);const a=e.substring(t+1,n);0==a.length?r.push("'"):r.push(a.replace("''","'"))}else{if("["===T)throw new Error(`Optional patterns are not supported: ${T}`);if("]"===T)throw new Error(`Optional patterns are not supported: ${T}`);if("{"===T||"}"===T||"#"===T)throw new Error(`Pattern includes reserved character: '${T}'`);r[r.length-1]instanceof s?r.push(T):r[r.length-1]+=T}}return r}format(e,t){const a=this.tokenize(t),r=[];for(const t of a)if(t instanceof s){const a=t.toString(),n=g[a];if(void 0===n)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);if("function"==typeof n){const t=n(e,a);if(null===t)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);r.push(t)}else r.push(e.format(n))}else r.push(t);return r.join("")}}const y=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.fn.zoneAbbr){console.log("register:",e,t),e.tz?console.log("Moment.js with timezone support detected; attaching Java format methods."):console.warn("Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.");const a=new c,r=new Z;return e.fn.formatJavaSDF=function(e){return a.format(this,e)},e.fn.formatJavaDTF=function(e){return r.format(this,e)},e}if(console.error("Unable to attach Java format methods. Moment.js object was invalid."),t)throw new Error("Moment.js object was invalid.")};if("undefined"!=typeof window&&window?.moment)y(window.moment,!1);else if(void 0!==n.g&&n.g?.moment)y(n.g.moment,!1);else if("undefined"!=typeof window&&window)try{const e=n(216);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment-timezone. Attempting fallback to moment.");try{const e=n(272);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment. User will have to manually register.")}}let Y;"undefined"!=typeof window&&(Y=window?.moment),void 0===Y&&void 0!==n.g&&(Y=n.g?.moment);const w=Y})(),T.default})())); +!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(function(){try{return require("moment-timezone")}catch(e){}}(),function(){try{return require("moment")}catch(e){}}());else if("function"==typeof define&&define.amd)define(["moment-timezone","moment"],t);else{var a="object"==typeof exports?t(function(){try{return require("moment-timezone")}catch(e){}}(),function(){try{return require("moment")}catch(e){}}()):t(e["moment-timezone"],e.moment);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(this,((e,t)=>(()=>{"use strict";var a={272:e=>{if(void 0===t){var a=new Error("Cannot find module 'moment'");throw a.code="MODULE_NOT_FOUND",a}e.exports=t},216:t=>{if(void 0===e){var a=new Error("Cannot find module 'moment-timezone'");throw a.code="MODULE_NOT_FOUND",a}t.exports=e}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var T=r[e]={exports:{}};return a[e](T,T.exports,n),T.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var T={};return(()=>{n.d(T,{default:()=>w});const e={"-720":["AoE","Y"],"-660":["NUT","SST","X"],"-600":["HST","CKT","TAHT","W"],"-570":["MART"],"-540":["AKST","HDT","GAMT","V"],"-480":["PST","AKDT","U","PT"],"-420":["MST","PDT","T","MT","PT"],"-360":["CST","MDT","EAST","GALT","S","CT","MT"],"-300":["EST","CDT","ACT","CIST","COT","CST","EASST","ECT","PET","R","ET","CT"],"-240":["EDT","AST","AMT","BOT","CIDST","CLT","FKT","GYT","VET","Q","AT","ET"],"-210":["NST"],"-180":["UYT","ADT","AMST","ART","BRT","CLST","FKST","GFT","PMST","ROTT","SRT","UYT","WARST","WGT","P","AT"],"-150":["NDT"],"-120":["GST","BRST","FNT","GST","PMDT","UYST","WGST","O"],"-60":["CVT","AZOT","CVT","EGT","N"],0:["UTC","GMT","AZOST","EGST","WET","Z","WT"],60:["CET","BST","WAT","WEST","WST","A"],120:["CAT","CEST","EET","SAST","WAST","B"],180:["EAT","EEST","FET","MSK","SYOT","TRT","C"],210:["IRST"],240:["GET","AZT","KUYT","MSD","MUT","RET","SAMT","SCT","D"],270:["AFT","IRDT"],300:["UZT","AQTT","AZST","MAWT","MVT","ORAT","PKT","TFT","TJT","TMT","YEKT","E"],330:["IST"],345:["NPT"],360:["BTT","ALMT","BTT","IOT","KGT","OMST","QYZT","VOST","YEKST","F"],390:["MMT","CCT"],420:["ICT","CXT","DAVT","HOVT","KRAT","NOVST","NOVT","OMSST","WIB","G"],480:["HKT","AWST","BNT","CAST","CHOT","HOVST","IRKT","KRAST","MYT","PHT","SGT","ULAT","WITA","H"],510:["PYT"],525:["ACWST"],540:["JST","AWDT","CHOST","IRKST","KST","PWT","TLT","ULAST","WIT","YAKT","I"],570:["ACST","ACT"],600:["PGT","AEST","CHUT","ChST","DDUT","VLAT","YAKST","YAPT","K","AET"],630:["ACDT","LHST","ACT"],660:["VUT","AEDT","KOST","LHDT","MAGT","NCT","NFT","PONT","SAKT","SBT","SRET","VLAST","L","AET"],720:["FJT","ANAST","ANAT","GILT","MAGST","MHT","NFDT","NRT","NZST","PETST","PETT","TVT","WAKT","WFT","M"],765:["CHAST"],780:["TOT","FJST","NZDT","PHOT","TKT","TOT"],825:["CHADT"],840:["LINT","TOST","WST"]},t={A:"Alpha Time Zone",ACDT:"Australian Central Daylight Time",ACST:"Australian Central Standard Time",ACT:"Australian Central Time",ACWST:"Australian Central Western Standard Time",ADT:"Atlantic Daylight Time",ADST:"Atlantic Daylight Saving Time",AEDT:"Australian Eastern Daylight Time",AEST:"Australian Eastern Standard Time",AET:"Australian Eastern Time",AFT:"Afghanistan Time",AKDT:"Alaska Daylight Time",AKST:"Alaska Standard Time",ALMT:"Alma-Ata Time",AMDT:"Armenia Daylight Time",AMST:"Amazon Summer Time",AMT:"Amazon Time",ANAST:"Anadyr Summer Time",ANAT:"Anadyr Time",AQTT:"Aqtobe Time",ART:"Argentina Time",AST:"Atlantic Standard Time",AT:"Atlantic Time",AWDT:"Australian Western Daylight Time",AWST:"Australian Western Standard Time",AZODT:"Azores Daylight Time",AZOST:"Azores Summer Time",AZOT:"Azores Time",AZST:"Azerbaijan Summer Time",AZT:"Azerbaijan Time",AoE:"Anywhere on Earth",B:"Bravo Time Zone",BDST:"British Daylight Saving Time",BDT:"Brunei Time",BNT:"Brunei Darussalam Time",BOT:"Bolivia Time",BRST:"Brasília Summer Time",BRT:"Brasília Time",BST:"British Summer Time",BT:"Brazil Time",BTT:"Bhutan Time",C:"Charlie Time Zone",CAST:"Casey Time",CAT:"Central Africa Time",CCT:"Cocos Islands Time",CDT:"Central Daylight Time",CDST:"Central Daylight Savings Time",CEDT:"Central European Daylight Time",CEST:"Central European Summer Time",CET:"Central European Time",CHADT:"Chatham Island Daylight Time",CHAST:"Chatham Island Standard Time",CHODT:"Choibalsan Daylight Time",CHODST:"Choibalsan Daylight Saving Time",CHOST:"Choibalsan Summer Time",CHOT:"Choibalsan Time",CHUT:"Chuuk Time",CIDST:"Cayman Islands Daylight Saving Time",CIST:"Cayman Islands Standard Time",CIT:"Cayman Islands Time",CKT:"Cook Island Time",CLDT:"Chile Daylight Time",CLST:"Chile Summer Time",CLT:"Chile Standard Time",COT:"Colombia Time",CST:"Central Standard Time",CT:"Central Time",CVT:"Cape Verde Time",CXT:"Christmas Island Time",ChST:"Chamorro Standard Time",D:"Delta Time Zone",DAVT:"Davis Time",DDUT:"Dumont-d'Urville Time",E:"Echo Time Zone",EADT:"Easter Island Daylight Time",EASST:"Easter Island Summer Time",EAST:"Easter Island Standard Time",EAT:"Eastern Africa Time",ECST:"European Central Summer Time",ECT:"Ecuador Time",EDT:"Eastern Daylight Time",EDST:"Eastern Daylight Saving Time",EEDT:"Eastern European Daylight Time",EEST:"Eastern European Summer Time",EET:"Eastern European Time",EFATE:"Efate Time",EGST:"Eastern Greenland Summer Time",EGT:"East Greenland Time",EST:"Eastern Standard Time",ET:"Eastern Time",F:"Foxtrot Time Zone",FET:"Further-Eastern European Time",FJDT:"Fiji Daylight Time",FJST:"Fiji Summer Time",FJT:"Fiji Time",FKDT:"Falkland Island Daylight Time",FKST:"Falkland Islands Summer Time",FKT:"Falkland Island Time",FNT:"Fernando de Noronha Time",G:"Golf Time Zone",GALT:"Galapagos Time",GAMT:"Gambier Time",GET:"Georgia Standard Time",GFT:"French Guiana Time",GILT:"Gilbert Island Time",GMT:"Greenwich Mean Time",GST:"South Georgia Time",GT:"Greenwich Time",GYT:"Guyana Time",H:"Hotel Time Zone",HAA:"Heure Avancée de l'Atlantique",HAC:"Heure Avancée du Centre",HADT:"Hawaii Daylight Time",HAE:"Heure Avancée de l'Est",HAP:"Heure Avancée du Pacifique",HAST:"Hawaii-Aleutian Standard Time",HAR:"Heure Avancée des Rocheuses",HAT:"Heure Avancée de Terre-Neuve",HDT:"Hawaii-Aleutian Daylight Time",HLV:"Hora Legal de Venezuela",HNA:"Heure Normale de l'Atlantique",HNC:"Heure Normale du Centre",HNE:"Heure Normale de l'Est",HNP:"Heure Normale du Pacifique",HNR:"Heure Normale des Rocheuses",HNT:"Heure Normale de Terre-Neuve",HKT:"Hong Kong Time",HOVDT:"Hovd Daylight Time",HOVDST:"Hovd Daylight Saving Time",HOVST:"Hovd Summer Time",HOVT:"Hovd Time",HST:"Hawaii Standard Time",I:"India Time Zone",ICT:"Indochina Time",IDT:"Israel Daylight Time",IOT:"Indian Chagos Time",IRDT:"Iran Daylight Time",IRKST:"Irkutsk Summer Time",IRKT:"Irkutsk Time",IRST:"Iran Standard Time",IST:"India Standard Time",JST:"Japan Standard Time",K:"Kilo Time Zone",KGT:"Kyrgyzstan Time",KIT:"Kerguelen (Islands) Time",KOST:"Kosrae Time",KRAST:"Krasnoyarsk Summer Time",KRAT:"Krasnoyarsk Time",KST:"Korea Standard Time",KT:"Korea Time",KUYT:"Kuybyshev Time",L:"Lima Time Zone",LHDT:"Lord Howe Daylight Time",LHST:"Lord Howe Standard Time",LINT:"Line Islands Time",M:"Mike Time Zone",MAGST:"Magadan Summer Time",MAGT:"Magadan Time",MART:"Marquesas Time",MAWT:"Mawson Time",MCK:"Moscow Time",MDST:"Mountain Daylight Saving Time",MDT:"Mountain Daylight Time",MESZ:"Mitteleuropäische Sommerzeit",MEZ:"Mitteleuropäische Zeit",MHT:"Marshall Islands Time",MMT:"Myanmar Time",MST:"Mountain Standard Time",MSK:"Moscow Standard Time",MT:"Mountain Time",MUT:"Mauritius Time",MVT:"Maldives Time",MYT:"Malaysia Time",N:"November Time Zone",NACDT:"North American Central Daylight Time",NACST:"North American Central Standard Time",NAEDT:"North American Eastern Daylight Time",NAEST:"North American Eastern Standard Time",NAMDT:"North American Mountain Daylight Time",NAMST:"North American Mountain Standard Time",NAPDT:"North American Pacific Daylight Time",NAPST:"North American Pacific Standard Time",NCT:"New Caledonia Time",NDT:"Newfoundland Daylight Time",NFDT:"Norfolk Daylight Time",NFT:"Norfolk Time",NOVST:"Novosibirsk Summer Time",NOVT:"Novosibirsk Time",NPT:"Nepal Time",NRT:"Nauru Time",NST:"Newfoundland Standard Time",NUT:"Niue Time",NZDT:"New Zealand Daylight Time",NZST:"New Zealand Standard Time",O:"Oscar Time Zone",OESZ:"Osteuropäische Sommerzeit",OEZ:"Osteuropäische Zeit",OMSST:"Omsk Summer Time",OMST:"Omsk Standard Time",ORAT:"Oral Time",P:"Papa Time Zone",PDT:"Pacific Daylight Time",PDST:"Pacific Daylight Saving Time",PET:"Peru Time",PETST:"Kamchatka Summer Time",PETT:"Kamchatka Time",PGT:"Papua New Guinea Time",PHOT:"Phoenix Island Time",PHT:"Philippine Time",PKT:"Pakistan Standard Time",PMDT:"Pierre & Miquelon Daylight Time",PMST:"Pierre & Miquelon Standard Time",PONT:"Pohnpei Standard Time",PST:"Pacific Standard Time",PT:"Pacific Time",PWT:"Palau Time",PYST:"Pyongyang Standard Time",PYT:"Pyongyang Time",Q:"Quebec Time Zone",QYZT:"Qyzylorda Time",R:"Romeo Time Zone",RET:"Reunion Time",ROTT:"Rothera Time",S:"Sierra Time Zone",SAKT:"Sakhalin Time",SAMT:"Samara Time",SAMST:"Samara Summer Time",SAST:"South Africa Standard Time",SBT:"Solomon Islands Time",SCT:"Seychelles Time",SGT:"Singapore Time",SRET:"Srednekolymsk Time",SRT:"Suriname Time",SST:"Samoa Standard Time",SYOT:"Syowa Time",T:"Tango Time Zone",TAHT:"Tahiti Time",TFT:"French Southern and Antarctic Time",TJT:"Tajikistan Time",TKT:"Tokelau Time",TLT:"East Timor Time",TMT:"Turkmenistan Time",TOST:"Tonga Summer Time",TOT:"Tonga Time",TRT:"Turkey Time",tVT:"Tuvalu Time",U:"Uniform Time Zone",ULAST:"Ulaanbaatar Summer Time",ULAT:"Ulaanbaatar Time",UTC:"Coordinated Universal Time",UYST:"Uruguay Summer Time",UYT:"Uruguay Time",UZT:"Uzbekistan Time",V:"Victor Time Zone",VET:"Venezuelan Standard Time",VLAST:"Vladivostok Summer Time",VLAT:"Vladivostok Time",VOST:"Vostok Time",VUT:"Vanuatu Time",W:"Whiskey Time Zone",WAKT:"Wake Time",WARST:"Western Argentine Summer Time",WAST:"West Africa Summer Time",WAT:"West Africa Time",WDT:"Western Daylight Time",WEDT:"Western European Daylight Time",WEST:"Western European Summer Time",WESZ:"Westeuropäische Sommerzeit",WET:"Western European Time",WEZ:"Westeuropäische Zeit",WFT:"Wallis and Futuna Time",WGST:"Western Greenland Summer Time",WGT:"West Greenland Time",WIB:"Western Indonesian Time",WIT:"Eastern Indonesian Time",WITA:"Central Indonesian Time",WST:"Western Standard Time",WT:"Western Sahara Standard Time",X:"X-ray Time Zone",Y:"Yankee Time Zone",YAKST:"Yakutsk Summer Time",YAKT:"Yakutsk Time",YAPT:"Yap Time",YEKST:"Yekaterinburg Summer Time",YEKT:"Yekaterinburg Time",Z:"Zulu Time Zone"},a={},r=e=>t[e]?t[e]:null,i=t=>{const r=moment(t).utcOffset();if(!a[r]){const t=(t=>{if(!moment.tz)return null;const a=moment.tz.guess(),r=a?moment.tz(a).format("z"):null,n=e[String(t)];return n?n.indexOf(r)>=0?r:n[0]:null})(r);t?a[r]=t:console.warn("- unhandled offset: "+r)}return a[r]||null},o=e=>Number.isInteger(e)?String(Math.abs(e)):e.replace(/^-/,""),m=(e,t)=>{const a=o(e);return a.length>=t?String(e):(a!==e?"-":"")+("0".repeat(t)+a).substr(0-t)};class s{count=0;constructor(e,t){if(1!=e.length)throw new Error("You must provide a single character when creating a token!");this.token=e,this.count=void 0===t?1:t}increment(){return this.count++,this.count}equals(e){return this.token===e.token&&this.count===e.count}toString(){return this.token.repeat(this.count)}}class u{}const l=/[A-Za-z]/,S=e=>e.year()>0?"AD":"BC",d=e=>{let t=e.zoneAbbr();const a=e.zoneName();if(e.tz)return a&&""!==a?"UTC"===t&&0!==e.utcOffset()?null:{abbr:t,name:a,description:r(t)}:null;if(t=i(e),t){const e=r(t);if(e)return{abbr:t,name:a,description:e}}return null},f={G:S,GG:S,GGG:S,GGGG:S,GGGGG:S,GGGGGG:S,y:e=>o(e.format("Y")),yy:e=>o(e.format("YY")),yyy:e=>m(o(e.format("YYYY")),3),yyyy:e=>o(e.format("YYYY")),yyyyy:e=>m(o(e.format("YYYY")),5),yyyyyy:e=>m(o(e.format("YYYY")),6),Y:"gggg",YY:"gg",YYY:e=>m(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>m(e.format("gggg"),5),YYYYYY:e=>m(e.format("gggg"),6),M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:"MMMM",MMMMMM:"MMMM",w:e=>m(e.format("w"),1),ww:e=>m(e.format("w"),2),www:e=>m(e.format("w"),3),wwww:e=>m(e.format("w"),4),wwwww:e=>m(e.format("w"),5),wwwwww:e=>m(e.format("w"),6),W:null,WW:null,WWW:null,WWWW:null,D:"DDD",DD:e=>m(e.format("DDD"),2),DDD:e=>m(e.format("DDD"),3),DDDD:e=>m(e.format("DDD"),4),DDDDD:e=>m(e.format("DDD"),5),DDDDDD:e=>m(e.format("DDD"),6),d:"D",dd:"DD",ddd:e=>m(e.format("D"),3),dddd:e=>m(e.format("D"),4),ddddd:e=>m(e.format("D"),5),dddddd:e=>m(e.format("D"),6),F:null,FF:null,FFF:null,FFFF:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:"dddd",EEEEEE:"dddd",u:"E",uu:e=>m(e.format("E"),2),uuu:e=>m(e.format("E"),3),uuuu:e=>m(e.format("E"),4),uuuuu:e=>m(e.format("E"),5),uuuuuu:e=>m(e.format("E"),6),a:"A",aa:"A",aaa:"A",aaaa:"A",aaaaa:"A",aaaaaa:"A",H:"H",HH:"HH",HHH:e=>m(e.format("H"),3),HHHH:e=>m(e.format("H"),4),HHHHH:e=>m(e.format("H"),5),HHHHHH:e=>m(e.format("H"),6),k:"k",kk:"kk",kkk:e=>m(e.format("k"),3),kkkk:e=>m(e.format("k"),4),kkkkk:e=>m(e.format("k"),5),kkkkkk:e=>m(e.format("k"),6),K:e=>{const t=parseInt(e.format("h"),10);return o(t%12)},KK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),2)},KKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),3)},KKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),4)},KKKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),5)},KKKKKK:e=>{const t=parseInt(e.format("h"),10);return m(o(t%12),6)},h:"h",hh:"hh",hhh:e=>m(e.format("h"),3),hhhh:e=>m(e.format("h"),4),hhhhh:e=>m(e.format("h"),5),hhhhhh:e=>m(e.format("h"),6),m:"m",mm:"mm",mmm:e=>m(e.format("m"),3),mmmm:e=>m(e.format("m"),4),mmmmm:e=>m(e.format("m"),5),mmmmmm:e=>m(e.format("m"),6),s:"s",ss:"ss",sss:e=>m(e.format("s"),3),ssss:e=>m(e.format("s"),4),sssss:e=>m(e.format("s"),5),ssssss:e=>m(e.format("s"),6),S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>m(e.format("SSSS"),5),SSSSSS:e=>m(e.format("SSSS"),6),z:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},Z:"ZZ",ZZ:"ZZ",ZZZ:"ZZ",ZZZZ:"ZZ",ZZZZZ:"ZZ",ZZZZZZ:"ZZ",X:e=>0===e.utcOffset()?"Z":e.format("Z").substr(0,3),XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z")};class c extends u{tokenize(e){const t=[],a=e.length;let r=!1,n=0,T=null,i=null;const o=(e,a)=>{const r=f[e];if(null===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; token is not implemented`);if(void 0===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; unknown token`);t.push(new s(e,a))},m=e=>{t[t.length-1]instanceof s?t.push(e):t[t.length-1]+=e};for(let t=0;te.year()>0?"AD":"BC",E=e=>{const t=e.zoneAbbr();return"UTC"===t&&0!=e.utcOffset()?null:t},g={G:D,GG:D,GGG:D,GGGG:e=>e.year()>0?"Anno Domini":"Before Christ",GGGGG:e=>D(e).substring(0,1),u:e=>m(e.format("YYYY"),1),uu:e=>m(o(e.format("YY")),2),uuu:e=>m(e.format("YYYY"),3),uuuu:"YYYY",uuuuu:e=>m(e.format("YYYY"),5),uuuuuu:e=>m(e.format("YYYY"),6),y:e=>o(e.format("Y")),yy:e=>o(e.format("YY")),yyy:e=>m(o(e.format("YYYY")),3),yyyy:e=>o(e.format("YYYY")),yyyyy:e=>m(o(e.format("YYYY")),5),yyyyyy:e=>m(o(e.format("YYYY")),6),D:"DDD",DD:e=>{const t=e.format("DDD");if(t.length>2)throw new Error("Field DayOfYear cannot be printed as the value "+t+" exceeds the maximum print width of 2");return m(t,2)},DDD:"DDDD",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:e=>e.format("MMMM").substring(0,1),L:"M",LL:"MM",LLL:"M",LLLL:"M",LLLLL:"M",d:"D",dd:"DD",Q:"Q",QQ:e=>m(e.format("Q"),2),QQQ:e=>"Q"+e.format("Q"),QQQQ:e=>e.format("Qo")+" quarter",QQQQQ:"Q",q:"Q",qq:e=>m(e.format("Q"),2),qqq:"Q",qqqq:"Q",qqqqq:"Q",Y:e=>m(e.format("gggg"),1),YY:"gg",YYY:e=>m(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>m(e.format("gggg"),5),YYYYYY:e=>m(e.format("gggg"),6),w:"w",ww:"ww",W:null,WW:null,WWW:null,WWWW:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:e=>e.format("dddd").substring(0,1),e:"d",ee:e=>m(e.format("d"),2),eee:"ddd",eeee:"dddd",eeeee:e=>e.format("dddd").substring(0,1),c:"d",ccc:"ddd",cccc:"dddd",ccccc:e=>String(parseInt(e.format("d"),10)-1),a:"A",h:"h",hh:"hh",K:e=>o(e.hour()%12),KK:e=>{const t=o(e.hour()%12);return m(t,2)},k:"k",kk:"kk",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>m(e.format("SSSS"),5),SSSSSS:e=>m(e.format("SSSS"),6),A:e=>m(e.valueOf()-e.clone().startOf("day").valueOf(),1),AA:e=>e.isSame(e.clone().startOf("day"))?"00":null,AAA:e=>e.isSame(e.clone().startOf("day"))?"000":null,AAAA:e=>e.isSame(e.clone().startOf("day"))?"0000":null,AAAAA:e=>e.isSame(e.clone().startOf("day"))?"00000":null,AAAAAA:e=>e.isSame(e.clone().startOf("day"))?"000000":null,VV:e=>{if(0===e.utcOffset())return"Z";const t=e.tz();return t&&t.length>0?t:e.format("Z")},z:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zz:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zzz:e=>{if(0===e.utcOffset())return"Z";return E(e)||e.format("Z")},zzzz:e=>{if(0===e.utcOffset())return"Z";const t=E(e);return t?r(t):e.format("Z")},O:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z").replace(h,"").replace(/^([+-])0/,"$1"),OOOO:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z"),X:e=>{if(0===e.utcOffset())return"Z";const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z"),XXXX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXXXX:e=>0===e.utcOffset()?"Z":e.format("Z"),x:e=>{const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},xx:"ZZ",xxx:"Z",xxxx:"ZZ",xxxxx:"Z",Z:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZZ:e=>0===e.utcOffset()?"GMT":"GMT"+e.format("Z"),ZZZZZ:e=>0===e.utcOffset()?"Z":e.format("Z")};class M extends s{constructor(e,t,a,r){super(a,r),this.padding=e,this.padChar=t}format(e){if(e.length>this.padding)throw new Error(`Cannot format padding as formatted string "${e}" exceeds pad width of ${this.padding}.`);return(this.padChar.repeat(this.padding)+e).substr(0-this.padding)}}class Z extends u{tokenize(e){let t=0,a=" ";const r=[];for(let n=0;n0?(r.push(new M(t,a,T,o)),t=0,a=" "):r.push(new s(T,o)),n--}else if("'"===T){const t=n++;for(;n=e.length)throw new Error(`Pattern ends with an incomplete string literal: ${e}`);const a=e.substring(t+1,n);0==a.length?r.push("'"):r.push(a.replace("''","'"))}else{if("["===T)throw new Error(`Optional patterns are not supported: ${T}`);if("]"===T)throw new Error(`Optional patterns are not supported: ${T}`);if("{"===T||"}"===T||"#"===T)throw new Error(`Pattern includes reserved character: '${T}'`);r[r.length-1]instanceof s?r.push(T):r[r.length-1]+=T}}return r}format(e,t){const a=this.tokenize(t),r=[];for(const t of a)if(t instanceof s){const a=t.toString(),n=g[a];if(void 0===n)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);if("function"==typeof n){const t=n(e,a);if(null===t)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);r.push(t)}else r.push(e.format(n))}else r.push(t);return r.join("")}}const y=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.fn.zoneAbbr){console.log("register: moment=%s, fatal=%s",typeof e,t),e.tz?console.log("Moment.js with timezone support detected; attaching Java format methods."):console.warn("Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.");const a=new c,r=new Z;return e.fn.formatJavaSDF=function(e){return a.format(this,e)},e.fn.formatJavaDTF=function(e){return r.format(this,e)},e}if(console.error("Unable to attach Java format methods. Moment.js object was invalid."),t)throw new Error("Moment.js object was invalid.")};if("undefined"!=typeof window&&window?.moment)y(window.moment,!1);else if(void 0!==n.g&&n.g?.moment)y(n.g.moment,!1);else if("undefined"!=typeof window&&window)try{const e=n(216);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment-timezone. Attempting fallback to moment.");try{const e=n(272);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment. User will have to manually register.")}}let Y;"undefined"!=typeof window&&(Y=window?.moment),void 0===Y&&void 0!==n.g&&(Y=n.g?.moment);const w=Y})(),T.default})())); //# sourceMappingURL=moment-javaformat.min.js.map \ No newline at end of file diff --git a/dist/node.js b/dist/node.js index d70aacd6..24f4412a 100644 --- a/dist/node.js +++ b/dist/node.js @@ -66,7 +66,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \**********************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DateTimeFormatter: () => (/* reexport safe */ _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]),\n/* harmony export */ SimpleDateFormat: () => (/* reexport safe */ _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ register: () => (/* binding */ register)\n/* harmony export */ });\n/* harmony import */ var _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formats/SimpleDateFormat */ \"./src/formats/SimpleDateFormat.ts\");\n/* harmony import */ var _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formats/DateTimeFormatter */ \"./src/formats/DateTimeFormatter.ts\");\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\n\n\nconst register = function (moment) {\n let fatal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (moment && moment.fn.zoneAbbr) {\n console.log(\"register:\", moment, fatal);\n if (moment.tz) {\n console.log(\"Moment.js with timezone support detected; attaching Java format methods.\");\n } else {\n console.warn(\"Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.\");\n }\n const sdf = new _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n const dtf = new _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n moment.fn.formatJavaSDF = function (formatString) {\n return sdf.format(this, formatString);\n };\n moment.fn.formatJavaDTF = function (formatString) {\n return dtf.format(this, formatString);\n };\n return moment;\n } else {\n console.error(\"Unable to attach Java format methods. Moment.js object was invalid.\");\n if (fatal) {\n throw new Error(\"Moment.js object was invalid.\");\n }\n }\n return undefined;\n};\n\n/*\n Attempt to register with global Moment.js object if it's found,\n preferring `moment-timezone` over `moment`.\n*/\n\nif (typeof window !== \"undefined\" && window?.moment) {\n register(window.moment, false);\n} else if (typeof global !== \"undefined\" && global?.moment) {\n register(global.moment, false);\n} else if (typeof window !== \"undefined\" && window) {\n try {\n const moment = __webpack_require__(/*! moment-timezone */ \"moment-timezone\");\n window.moment = register(moment, false);\n } catch (err) {\n console.warn(\"Failed to load moment-timezone. Attempting fallback to moment.\");\n try {\n const moment = __webpack_require__(/*! moment */ \"moment\");\n window.moment = register(moment, false);\n } catch (subErr) {\n console.warn(\"Failed to load moment. User will have to manually register.\");\n }\n }\n}\nlet m = undefined;\nif (typeof window !== \"undefined\") {\n m = window?.moment;\n}\nif (typeof m === \"undefined\" && typeof global !== \"undefined\") {\n m = global?.moment;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (m);\n\n\n//# sourceURL=webpack://@rangerrick/moment-javaformat/./src/index.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ DateTimeFormatter: () => (/* reexport safe */ _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]),\n/* harmony export */ SimpleDateFormat: () => (/* reexport safe */ _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ register: () => (/* binding */ register)\n/* harmony export */ });\n/* harmony import */ var _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formats/SimpleDateFormat */ \"./src/formats/SimpleDateFormat.ts\");\n/* harmony import */ var _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formats/DateTimeFormatter */ \"./src/formats/DateTimeFormatter.ts\");\n/* eslint-disable @typescript-eslint/no-var-requires */\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\n\n\nconst register = function (moment) {\n let fatal = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (moment && moment.fn.zoneAbbr) {\n console.log(\"register: moment=%s, fatal=%s\", typeof moment, fatal);\n if (moment.tz) {\n console.log(\"Moment.js with timezone support detected; attaching Java format methods.\");\n } else {\n console.warn(\"Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.\");\n }\n const sdf = new _formats_SimpleDateFormat__WEBPACK_IMPORTED_MODULE_0__[\"default\"]();\n const dtf = new _formats_DateTimeFormatter__WEBPACK_IMPORTED_MODULE_1__[\"default\"]();\n moment.fn.formatJavaSDF = function (formatString) {\n return sdf.format(this, formatString);\n };\n moment.fn.formatJavaDTF = function (formatString) {\n return dtf.format(this, formatString);\n };\n return moment;\n } else {\n console.error(\"Unable to attach Java format methods. Moment.js object was invalid.\");\n if (fatal) {\n throw new Error(\"Moment.js object was invalid.\");\n }\n }\n return undefined;\n};\n\n/*\n Attempt to register with global Moment.js object if it's found,\n preferring `moment-timezone` over `moment`.\n*/\n\nif (typeof window !== \"undefined\" && window?.moment) {\n register(window.moment, false);\n} else if (typeof global !== \"undefined\" && global?.moment) {\n register(global.moment, false);\n} else if (typeof window !== \"undefined\" && window) {\n try {\n const moment = __webpack_require__(/*! moment-timezone */ \"moment-timezone\");\n window.moment = register(moment, false);\n } catch (err) {\n console.warn(\"Failed to load moment-timezone. Attempting fallback to moment.\");\n try {\n const moment = __webpack_require__(/*! moment */ \"moment\");\n window.moment = register(moment, false);\n } catch (subErr) {\n console.warn(\"Failed to load moment. User will have to manually register.\");\n }\n }\n}\nlet m = undefined;\nif (typeof window !== \"undefined\") {\n m = window?.moment;\n}\nif (typeof m === \"undefined\" && typeof global !== \"undefined\") {\n m = global?.moment;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (m);\n\n\n//# sourceURL=webpack://@rangerrick/moment-javaformat/./src/index.js?"); /***/ }), diff --git a/dist/node.min.js b/dist/node.min.js index 149c84b7..149e7c7c 100644 --- a/dist/node.min.js +++ b/dist/node.min.js @@ -1,2 +1,2 @@ -!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(global,(()=>(()=>{"use strict";var e={72:e=>{e.exports=require("moment")},754:e=>{e.exports=require("moment-timezone")}},t={};function a(r){var T=t[r];if(void 0!==T)return T.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{a.d(r,{default:()=>C});const e={"-720":["AoE","Y"],"-660":["NUT","SST","X"],"-600":["HST","CKT","TAHT","W"],"-570":["MART"],"-540":["AKST","HDT","GAMT","V"],"-480":["PST","AKDT","U","PT"],"-420":["MST","PDT","T","MT","PT"],"-360":["CST","MDT","EAST","GALT","S","CT","MT"],"-300":["EST","CDT","ACT","CIST","COT","CST","EASST","ECT","PET","R","ET","CT"],"-240":["EDT","AST","AMT","BOT","CIDST","CLT","FKT","GYT","VET","Q","AT","ET"],"-210":["NST"],"-180":["UYT","ADT","AMST","ART","BRT","CLST","FKST","GFT","PMST","ROTT","SRT","UYT","WARST","WGT","P","AT"],"-150":["NDT"],"-120":["GST","BRST","FNT","GST","PMDT","UYST","WGST","O"],"-60":["CVT","AZOT","CVT","EGT","N"],0:["UTC","GMT","AZOST","EGST","WET","Z","WT"],60:["CET","BST","WAT","WEST","WST","A"],120:["CAT","CEST","EET","SAST","WAST","B"],180:["EAT","EEST","FET","MSK","SYOT","TRT","C"],210:["IRST"],240:["GET","AZT","KUYT","MSD","MUT","RET","SAMT","SCT","D"],270:["AFT","IRDT"],300:["UZT","AQTT","AZST","MAWT","MVT","ORAT","PKT","TFT","TJT","TMT","YEKT","E"],330:["IST"],345:["NPT"],360:["BTT","ALMT","BTT","IOT","KGT","OMST","QYZT","VOST","YEKST","F"],390:["MMT","CCT"],420:["ICT","CXT","DAVT","HOVT","KRAT","NOVST","NOVT","OMSST","WIB","G"],480:["HKT","AWST","BNT","CAST","CHOT","HOVST","IRKT","KRAST","MYT","PHT","SGT","ULAT","WITA","H"],510:["PYT"],525:["ACWST"],540:["JST","AWDT","CHOST","IRKST","KST","PWT","TLT","ULAST","WIT","YAKT","I"],570:["ACST","ACT"],600:["PGT","AEST","CHUT","ChST","DDUT","VLAT","YAKST","YAPT","K","AET"],630:["ACDT","LHST","ACT"],660:["VUT","AEDT","KOST","LHDT","MAGT","NCT","NFT","PONT","SAKT","SBT","SRET","VLAST","L","AET"],720:["FJT","ANAST","ANAT","GILT","MAGST","MHT","NFDT","NRT","NZST","PETST","PETT","TVT","WAKT","WFT","M"],765:["CHAST"],780:["TOT","FJST","NZDT","PHOT","TKT","TOT"],825:["CHADT"],840:["LINT","TOST","WST"]},t={A:"Alpha Time Zone",ACDT:"Australian Central Daylight Time",ACST:"Australian Central Standard Time",ACT:"Australian Central Time",ACWST:"Australian Central Western Standard Time",ADT:"Atlantic Daylight Time",ADST:"Atlantic Daylight Saving Time",AEDT:"Australian Eastern Daylight Time",AEST:"Australian Eastern Standard Time",AET:"Australian Eastern Time",AFT:"Afghanistan Time",AKDT:"Alaska Daylight Time",AKST:"Alaska Standard Time",ALMT:"Alma-Ata Time",AMDT:"Armenia Daylight Time",AMST:"Amazon Summer Time",AMT:"Amazon Time",ANAST:"Anadyr Summer Time",ANAT:"Anadyr Time",AQTT:"Aqtobe Time",ART:"Argentina Time",AST:"Atlantic Standard Time",AT:"Atlantic Time",AWDT:"Australian Western Daylight Time",AWST:"Australian Western Standard Time",AZODT:"Azores Daylight Time",AZOST:"Azores Summer Time",AZOT:"Azores Time",AZST:"Azerbaijan Summer Time",AZT:"Azerbaijan Time",AoE:"Anywhere on Earth",B:"Bravo Time Zone",BDST:"British Daylight Saving Time",BDT:"Brunei Time",BNT:"Brunei Darussalam Time",BOT:"Bolivia Time",BRST:"Brasília Summer Time",BRT:"Brasília Time",BST:"British Summer Time",BT:"Brazil Time",BTT:"Bhutan Time",C:"Charlie Time Zone",CAST:"Casey Time",CAT:"Central Africa Time",CCT:"Cocos Islands Time",CDT:"Central Daylight Time",CDST:"Central Daylight Savings Time",CEDT:"Central European Daylight Time",CEST:"Central European Summer Time",CET:"Central European Time",CHADT:"Chatham Island Daylight Time",CHAST:"Chatham Island Standard Time",CHODT:"Choibalsan Daylight Time",CHODST:"Choibalsan Daylight Saving Time",CHOST:"Choibalsan Summer Time",CHOT:"Choibalsan Time",CHUT:"Chuuk Time",CIDST:"Cayman Islands Daylight Saving Time",CIST:"Cayman Islands Standard Time",CIT:"Cayman Islands Time",CKT:"Cook Island Time",CLDT:"Chile Daylight Time",CLST:"Chile Summer Time",CLT:"Chile Standard Time",COT:"Colombia Time",CST:"Central Standard Time",CT:"Central Time",CVT:"Cape Verde Time",CXT:"Christmas Island Time",ChST:"Chamorro Standard Time",D:"Delta Time Zone",DAVT:"Davis Time",DDUT:"Dumont-d'Urville Time",E:"Echo Time Zone",EADT:"Easter Island Daylight Time",EASST:"Easter Island Summer Time",EAST:"Easter Island Standard Time",EAT:"Eastern Africa Time",ECST:"European Central Summer Time",ECT:"Ecuador Time",EDT:"Eastern Daylight Time",EDST:"Eastern Daylight Saving Time",EEDT:"Eastern European Daylight Time",EEST:"Eastern European Summer Time",EET:"Eastern European Time",EFATE:"Efate Time",EGST:"Eastern Greenland Summer Time",EGT:"East Greenland Time",EST:"Eastern Standard Time",ET:"Eastern Time",F:"Foxtrot Time Zone",FET:"Further-Eastern European Time",FJDT:"Fiji Daylight Time",FJST:"Fiji Summer Time",FJT:"Fiji Time",FKDT:"Falkland Island Daylight Time",FKST:"Falkland Islands Summer Time",FKT:"Falkland Island Time",FNT:"Fernando de Noronha Time",G:"Golf Time Zone",GALT:"Galapagos Time",GAMT:"Gambier Time",GET:"Georgia Standard Time",GFT:"French Guiana Time",GILT:"Gilbert Island Time",GMT:"Greenwich Mean Time",GST:"South Georgia Time",GT:"Greenwich Time",GYT:"Guyana Time",H:"Hotel Time Zone",HAA:"Heure Avancée de l'Atlantique",HAC:"Heure Avancée du Centre",HADT:"Hawaii Daylight Time",HAE:"Heure Avancée de l'Est",HAP:"Heure Avancée du Pacifique",HAST:"Hawaii-Aleutian Standard Time",HAR:"Heure Avancée des Rocheuses",HAT:"Heure Avancée de Terre-Neuve",HDT:"Hawaii-Aleutian Daylight Time",HLV:"Hora Legal de Venezuela",HNA:"Heure Normale de l'Atlantique",HNC:"Heure Normale du Centre",HNE:"Heure Normale de l'Est",HNP:"Heure Normale du Pacifique",HNR:"Heure Normale des Rocheuses",HNT:"Heure Normale de Terre-Neuve",HKT:"Hong Kong Time",HOVDT:"Hovd Daylight Time",HOVDST:"Hovd Daylight Saving Time",HOVST:"Hovd Summer Time",HOVT:"Hovd Time",HST:"Hawaii Standard Time",I:"India Time Zone",ICT:"Indochina Time",IDT:"Israel Daylight Time",IOT:"Indian Chagos Time",IRDT:"Iran Daylight Time",IRKST:"Irkutsk Summer Time",IRKT:"Irkutsk Time",IRST:"Iran Standard Time",IST:"India Standard Time",JST:"Japan Standard Time",K:"Kilo Time Zone",KGT:"Kyrgyzstan Time",KIT:"Kerguelen (Islands) Time",KOST:"Kosrae Time",KRAST:"Krasnoyarsk Summer Time",KRAT:"Krasnoyarsk Time",KST:"Korea Standard Time",KT:"Korea Time",KUYT:"Kuybyshev Time",L:"Lima Time Zone",LHDT:"Lord Howe Daylight Time",LHST:"Lord Howe Standard Time",LINT:"Line Islands Time",M:"Mike Time Zone",MAGST:"Magadan Summer Time",MAGT:"Magadan Time",MART:"Marquesas Time",MAWT:"Mawson Time",MCK:"Moscow Time",MDST:"Mountain Daylight Saving Time",MDT:"Mountain Daylight Time",MESZ:"Mitteleuropäische Sommerzeit",MEZ:"Mitteleuropäische Zeit",MHT:"Marshall Islands Time",MMT:"Myanmar Time",MST:"Mountain Standard Time",MSK:"Moscow Standard Time",MT:"Mountain Time",MUT:"Mauritius Time",MVT:"Maldives Time",MYT:"Malaysia Time",N:"November Time Zone",NACDT:"North American Central Daylight Time",NACST:"North American Central Standard Time",NAEDT:"North American Eastern Daylight Time",NAEST:"North American Eastern Standard Time",NAMDT:"North American Mountain Daylight Time",NAMST:"North American Mountain Standard Time",NAPDT:"North American Pacific Daylight Time",NAPST:"North American Pacific Standard Time",NCT:"New Caledonia Time",NDT:"Newfoundland Daylight Time",NFDT:"Norfolk Daylight Time",NFT:"Norfolk Time",NOVST:"Novosibirsk Summer Time",NOVT:"Novosibirsk Time",NPT:"Nepal Time",NRT:"Nauru Time",NST:"Newfoundland Standard Time",NUT:"Niue Time",NZDT:"New Zealand Daylight Time",NZST:"New Zealand Standard Time",O:"Oscar Time Zone",OESZ:"Osteuropäische Sommerzeit",OEZ:"Osteuropäische Zeit",OMSST:"Omsk Summer Time",OMST:"Omsk Standard Time",ORAT:"Oral Time",P:"Papa Time Zone",PDT:"Pacific Daylight Time",PDST:"Pacific Daylight Saving Time",PET:"Peru Time",PETST:"Kamchatka Summer Time",PETT:"Kamchatka Time",PGT:"Papua New Guinea Time",PHOT:"Phoenix Island Time",PHT:"Philippine Time",PKT:"Pakistan Standard Time",PMDT:"Pierre & Miquelon Daylight Time",PMST:"Pierre & Miquelon Standard Time",PONT:"Pohnpei Standard Time",PST:"Pacific Standard Time",PT:"Pacific Time",PWT:"Palau Time",PYST:"Pyongyang Standard Time",PYT:"Pyongyang Time",Q:"Quebec Time Zone",QYZT:"Qyzylorda Time",R:"Romeo Time Zone",RET:"Reunion Time",ROTT:"Rothera Time",S:"Sierra Time Zone",SAKT:"Sakhalin Time",SAMT:"Samara Time",SAMST:"Samara Summer Time",SAST:"South Africa Standard Time",SBT:"Solomon Islands Time",SCT:"Seychelles Time",SGT:"Singapore Time",SRET:"Srednekolymsk Time",SRT:"Suriname Time",SST:"Samoa Standard Time",SYOT:"Syowa Time",T:"Tango Time Zone",TAHT:"Tahiti Time",TFT:"French Southern and Antarctic Time",TJT:"Tajikistan Time",TKT:"Tokelau Time",TLT:"East Timor Time",TMT:"Turkmenistan Time",TOST:"Tonga Summer Time",TOT:"Tonga Time",TRT:"Turkey Time",tVT:"Tuvalu Time",U:"Uniform Time Zone",ULAST:"Ulaanbaatar Summer Time",ULAT:"Ulaanbaatar Time",UTC:"Coordinated Universal Time",UYST:"Uruguay Summer Time",UYT:"Uruguay Time",UZT:"Uzbekistan Time",V:"Victor Time Zone",VET:"Venezuelan Standard Time",VLAST:"Vladivostok Summer Time",VLAT:"Vladivostok Time",VOST:"Vostok Time",VUT:"Vanuatu Time",W:"Whiskey Time Zone",WAKT:"Wake Time",WARST:"Western Argentine Summer Time",WAST:"West Africa Summer Time",WAT:"West Africa Time",WDT:"Western Daylight Time",WEDT:"Western European Daylight Time",WEST:"Western European Summer Time",WESZ:"Westeuropäische Sommerzeit",WET:"Western European Time",WEZ:"Westeuropäische Zeit",WFT:"Wallis and Futuna Time",WGST:"Western Greenland Summer Time",WGT:"West Greenland Time",WIB:"Western Indonesian Time",WIT:"Eastern Indonesian Time",WITA:"Central Indonesian Time",WST:"Western Standard Time",WT:"Western Sahara Standard Time",X:"X-ray Time Zone",Y:"Yankee Time Zone",YAKST:"Yakutsk Summer Time",YAKT:"Yakutsk Time",YAPT:"Yap Time",YEKST:"Yekaterinburg Summer Time",YEKT:"Yekaterinburg Time",Z:"Zulu Time Zone"},T={},n=e=>t[e]?t[e]:null,i=t=>{const a=moment(t).utcOffset();if(!T[a]){const t=(t=>{if(!moment.tz)return null;const a=moment.tz.guess(),r=a?moment.tz(a).format("z"):null,T=e[String(t)];return T?T.indexOf(r)>=0?r:T[0]:null})(a);t?T[a]=t:console.warn("- unhandled offset: "+a)}return T[a]||null},m=e=>Number.isInteger(e)?String(Math.abs(e)):e.replace(/^-/,""),o=(e,t)=>{const a=m(e);return a.length>=t?String(e):(a!==e?"-":"")+("0".repeat(t)+a).substr(0-t)};class s{count=0;constructor(e,t){if(1!=e.length)throw new Error("You must provide a single character when creating a token!");this.token=e,this.count=void 0===t?1:t}increment(){return this.count++,this.count}equals(e){return this.token===e.token&&this.count===e.count}toString(){return this.token.repeat(this.count)}}class l{}const u=/[A-Za-z]/,S=e=>e.year()>0?"AD":"BC",d=e=>{let t=e.zoneAbbr();const a=e.zoneName();if(e.tz)return a&&""!==a?"UTC"===t&&0!==e.utcOffset()?null:{abbr:t,name:a,description:n(t)}:null;if(t=i(e),t){const e=n(t);if(e)return{abbr:t,name:a,description:e}}return null},f={G:S,GG:S,GGG:S,GGGG:S,GGGGG:S,GGGGGG:S,y:e=>m(e.format("Y")),yy:e=>m(e.format("YY")),yyy:e=>o(m(e.format("YYYY")),3),yyyy:e=>m(e.format("YYYY")),yyyyy:e=>o(m(e.format("YYYY")),5),yyyyyy:e=>o(m(e.format("YYYY")),6),Y:"gggg",YY:"gg",YYY:e=>o(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>o(e.format("gggg"),5),YYYYYY:e=>o(e.format("gggg"),6),M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:"MMMM",MMMMMM:"MMMM",w:e=>o(e.format("w"),1),ww:e=>o(e.format("w"),2),www:e=>o(e.format("w"),3),wwww:e=>o(e.format("w"),4),wwwww:e=>o(e.format("w"),5),wwwwww:e=>o(e.format("w"),6),W:null,WW:null,WWW:null,WWWW:null,D:"DDD",DD:e=>o(e.format("DDD"),2),DDD:e=>o(e.format("DDD"),3),DDDD:e=>o(e.format("DDD"),4),DDDDD:e=>o(e.format("DDD"),5),DDDDDD:e=>o(e.format("DDD"),6),d:"D",dd:"DD",ddd:e=>o(e.format("D"),3),dddd:e=>o(e.format("D"),4),ddddd:e=>o(e.format("D"),5),dddddd:e=>o(e.format("D"),6),F:null,FF:null,FFF:null,FFFF:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:"dddd",EEEEEE:"dddd",u:"E",uu:e=>o(e.format("E"),2),uuu:e=>o(e.format("E"),3),uuuu:e=>o(e.format("E"),4),uuuuu:e=>o(e.format("E"),5),uuuuuu:e=>o(e.format("E"),6),a:"A",aa:"A",aaa:"A",aaaa:"A",aaaaa:"A",aaaaaa:"A",H:"H",HH:"HH",HHH:e=>o(e.format("H"),3),HHHH:e=>o(e.format("H"),4),HHHHH:e=>o(e.format("H"),5),HHHHHH:e=>o(e.format("H"),6),k:"k",kk:"kk",kkk:e=>o(e.format("k"),3),kkkk:e=>o(e.format("k"),4),kkkkk:e=>o(e.format("k"),5),kkkkkk:e=>o(e.format("k"),6),K:e=>{const t=parseInt(e.format("h"),10);return m(t%12)},KK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),2)},KKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),3)},KKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),4)},KKKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),5)},KKKKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),6)},h:"h",hh:"hh",hhh:e=>o(e.format("h"),3),hhhh:e=>o(e.format("h"),4),hhhhh:e=>o(e.format("h"),5),hhhhhh:e=>o(e.format("h"),6),m:"m",mm:"mm",mmm:e=>o(e.format("m"),3),mmmm:e=>o(e.format("m"),4),mmmmm:e=>o(e.format("m"),5),mmmmmm:e=>o(e.format("m"),6),s:"s",ss:"ss",sss:e=>o(e.format("s"),3),ssss:e=>o(e.format("s"),4),sssss:e=>o(e.format("s"),5),ssssss:e=>o(e.format("s"),6),S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>o(e.format("SSSS"),5),SSSSSS:e=>o(e.format("SSSS"),6),z:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},Z:"ZZ",ZZ:"ZZ",ZZZ:"ZZ",ZZZZ:"ZZ",ZZZZZ:"ZZ",ZZZZZZ:"ZZ",X:e=>0===e.utcOffset()?"Z":e.format("Z").substr(0,3),XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z")};class c extends l{tokenize(e){const t=[],a=e.length;let r=!1,T=0,n=null,i=null;const m=(e,a)=>{const r=f[e];if(null===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; token is not implemented`);if(void 0===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; unknown token`);t.push(new s(e,a))},o=e=>{t[t.length-1]instanceof s?t.push(e):t[t.length-1]+=e};for(let t=0;te.year()>0?"AD":"BC",g=e=>{const t=e.zoneAbbr();return"UTC"===t&&0!=e.utcOffset()?null:t},E={G:D,GG:D,GGG:D,GGGG:e=>e.year()>0?"Anno Domini":"Before Christ",GGGGG:e=>D(e).substring(0,1),u:e=>o(e.format("YYYY"),1),uu:e=>o(m(e.format("YY")),2),uuu:e=>o(e.format("YYYY"),3),uuuu:"YYYY",uuuuu:e=>o(e.format("YYYY"),5),uuuuuu:e=>o(e.format("YYYY"),6),y:e=>m(e.format("Y")),yy:e=>m(e.format("YY")),yyy:e=>o(m(e.format("YYYY")),3),yyyy:e=>m(e.format("YYYY")),yyyyy:e=>o(m(e.format("YYYY")),5),yyyyyy:e=>o(m(e.format("YYYY")),6),D:"DDD",DD:e=>{const t=e.format("DDD");if(t.length>2)throw new Error("Field DayOfYear cannot be printed as the value "+t+" exceeds the maximum print width of 2");return o(t,2)},DDD:"DDDD",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:e=>e.format("MMMM").substring(0,1),L:"M",LL:"MM",LLL:"M",LLLL:"M",LLLLL:"M",d:"D",dd:"DD",Q:"Q",QQ:e=>o(e.format("Q"),2),QQQ:e=>"Q"+e.format("Q"),QQQQ:e=>e.format("Qo")+" quarter",QQQQQ:"Q",q:"Q",qq:e=>o(e.format("Q"),2),qqq:"Q",qqqq:"Q",qqqqq:"Q",Y:e=>o(e.format("gggg"),1),YY:"gg",YYY:e=>o(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>o(e.format("gggg"),5),YYYYYY:e=>o(e.format("gggg"),6),w:"w",ww:"ww",W:null,WW:null,WWW:null,WWWW:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:e=>e.format("dddd").substring(0,1),e:"d",ee:e=>o(e.format("d"),2),eee:"ddd",eeee:"dddd",eeeee:e=>e.format("dddd").substring(0,1),c:"d",ccc:"ddd",cccc:"dddd",ccccc:e=>String(parseInt(e.format("d"),10)-1),a:"A",h:"h",hh:"hh",K:e=>m(e.hour()%12),KK:e=>{const t=m(e.hour()%12);return o(t,2)},k:"k",kk:"kk",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>o(e.format("SSSS"),5),SSSSSS:e=>o(e.format("SSSS"),6),A:e=>o(e.valueOf()-e.clone().startOf("day").valueOf(),1),AA:e=>e.isSame(e.clone().startOf("day"))?"00":null,AAA:e=>e.isSame(e.clone().startOf("day"))?"000":null,AAAA:e=>e.isSame(e.clone().startOf("day"))?"0000":null,AAAAA:e=>e.isSame(e.clone().startOf("day"))?"00000":null,AAAAAA:e=>e.isSame(e.clone().startOf("day"))?"000000":null,VV:e=>{if(0===e.utcOffset())return"Z";const t=e.tz();return t&&t.length>0?t:e.format("Z")},z:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zz:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zzz:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zzzz:e=>{if(0===e.utcOffset())return"Z";const t=g(e);return t?n(t):e.format("Z")},O:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z").replace(h,"").replace(/^([+-])0/,"$1"),OOOO:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z"),X:e=>{if(0===e.utcOffset())return"Z";const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z"),XXXX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXXXX:e=>0===e.utcOffset()?"Z":e.format("Z"),x:e=>{const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},xx:"ZZ",xxx:"Z",xxxx:"ZZ",xxxxx:"Z",Z:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZZ:e=>0===e.utcOffset()?"GMT":"GMT"+e.format("Z"),ZZZZZ:e=>0===e.utcOffset()?"Z":e.format("Z")};class M extends s{constructor(e,t,a,r){super(a,r),this.padding=e,this.padChar=t}format(e){if(e.length>this.padding)throw new Error(`Cannot format padding as formatted string "${e}" exceeds pad width of ${this.padding}.`);return(this.padChar.repeat(this.padding)+e).substr(0-this.padding)}}class Z extends l{tokenize(e){let t=0,a=" ";const r=[];for(let T=0;T0?(r.push(new M(t,a,n,m)),t=0,a=" "):r.push(new s(n,m)),T--}else if("'"===n){const t=T++;for(;T=e.length)throw new Error(`Pattern ends with an incomplete string literal: ${e}`);const a=e.substring(t+1,T);0==a.length?r.push("'"):r.push(a.replace("''","'"))}else{if("["===n)throw new Error(`Optional patterns are not supported: ${n}`);if("]"===n)throw new Error(`Optional patterns are not supported: ${n}`);if("{"===n||"}"===n||"#"===n)throw new Error(`Pattern includes reserved character: '${n}'`);r[r.length-1]instanceof s?r.push(n):r[r.length-1]+=n}}return r}format(e,t){const a=this.tokenize(t),r=[];for(const t of a)if(t instanceof s){const a=t.toString(),T=E[a];if(void 0===T)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);if("function"==typeof T){const t=T(e,a);if(null===t)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);r.push(t)}else r.push(e.format(T))}else r.push(t);return r.join("")}}const y=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.fn.zoneAbbr){console.log("register:",e,t),e.tz?console.log("Moment.js with timezone support detected; attaching Java format methods."):console.warn("Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.");const a=new c,r=new Z;return e.fn.formatJavaSDF=function(e){return a.format(this,e)},e.fn.formatJavaDTF=function(e){return r.format(this,e)},e}if(console.error("Unable to attach Java format methods. Moment.js object was invalid."),t)throw new Error("Moment.js object was invalid.")};if("undefined"!=typeof window&&window?.moment)y(window.moment,!1);else if("undefined"!=typeof global&&global?.moment)y(global.moment,!1);else if("undefined"!=typeof window&&window)try{const e=a(754);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment-timezone. Attempting fallback to moment.");try{const e=a(72);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment. User will have to manually register.")}}let Y;"undefined"!=typeof window&&(Y=window?.moment),void 0===Y&&"undefined"!=typeof global&&(Y=global?.moment);const C=Y})(),r.default})())); +!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(global,(()=>(()=>{"use strict";var e={72:e=>{e.exports=require("moment")},754:e=>{e.exports=require("moment-timezone")}},t={};function a(r){var T=t[r];if(void 0!==T)return T.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{a.d(r,{default:()=>C});const e={"-720":["AoE","Y"],"-660":["NUT","SST","X"],"-600":["HST","CKT","TAHT","W"],"-570":["MART"],"-540":["AKST","HDT","GAMT","V"],"-480":["PST","AKDT","U","PT"],"-420":["MST","PDT","T","MT","PT"],"-360":["CST","MDT","EAST","GALT","S","CT","MT"],"-300":["EST","CDT","ACT","CIST","COT","CST","EASST","ECT","PET","R","ET","CT"],"-240":["EDT","AST","AMT","BOT","CIDST","CLT","FKT","GYT","VET","Q","AT","ET"],"-210":["NST"],"-180":["UYT","ADT","AMST","ART","BRT","CLST","FKST","GFT","PMST","ROTT","SRT","UYT","WARST","WGT","P","AT"],"-150":["NDT"],"-120":["GST","BRST","FNT","GST","PMDT","UYST","WGST","O"],"-60":["CVT","AZOT","CVT","EGT","N"],0:["UTC","GMT","AZOST","EGST","WET","Z","WT"],60:["CET","BST","WAT","WEST","WST","A"],120:["CAT","CEST","EET","SAST","WAST","B"],180:["EAT","EEST","FET","MSK","SYOT","TRT","C"],210:["IRST"],240:["GET","AZT","KUYT","MSD","MUT","RET","SAMT","SCT","D"],270:["AFT","IRDT"],300:["UZT","AQTT","AZST","MAWT","MVT","ORAT","PKT","TFT","TJT","TMT","YEKT","E"],330:["IST"],345:["NPT"],360:["BTT","ALMT","BTT","IOT","KGT","OMST","QYZT","VOST","YEKST","F"],390:["MMT","CCT"],420:["ICT","CXT","DAVT","HOVT","KRAT","NOVST","NOVT","OMSST","WIB","G"],480:["HKT","AWST","BNT","CAST","CHOT","HOVST","IRKT","KRAST","MYT","PHT","SGT","ULAT","WITA","H"],510:["PYT"],525:["ACWST"],540:["JST","AWDT","CHOST","IRKST","KST","PWT","TLT","ULAST","WIT","YAKT","I"],570:["ACST","ACT"],600:["PGT","AEST","CHUT","ChST","DDUT","VLAT","YAKST","YAPT","K","AET"],630:["ACDT","LHST","ACT"],660:["VUT","AEDT","KOST","LHDT","MAGT","NCT","NFT","PONT","SAKT","SBT","SRET","VLAST","L","AET"],720:["FJT","ANAST","ANAT","GILT","MAGST","MHT","NFDT","NRT","NZST","PETST","PETT","TVT","WAKT","WFT","M"],765:["CHAST"],780:["TOT","FJST","NZDT","PHOT","TKT","TOT"],825:["CHADT"],840:["LINT","TOST","WST"]},t={A:"Alpha Time Zone",ACDT:"Australian Central Daylight Time",ACST:"Australian Central Standard Time",ACT:"Australian Central Time",ACWST:"Australian Central Western Standard Time",ADT:"Atlantic Daylight Time",ADST:"Atlantic Daylight Saving Time",AEDT:"Australian Eastern Daylight Time",AEST:"Australian Eastern Standard Time",AET:"Australian Eastern Time",AFT:"Afghanistan Time",AKDT:"Alaska Daylight Time",AKST:"Alaska Standard Time",ALMT:"Alma-Ata Time",AMDT:"Armenia Daylight Time",AMST:"Amazon Summer Time",AMT:"Amazon Time",ANAST:"Anadyr Summer Time",ANAT:"Anadyr Time",AQTT:"Aqtobe Time",ART:"Argentina Time",AST:"Atlantic Standard Time",AT:"Atlantic Time",AWDT:"Australian Western Daylight Time",AWST:"Australian Western Standard Time",AZODT:"Azores Daylight Time",AZOST:"Azores Summer Time",AZOT:"Azores Time",AZST:"Azerbaijan Summer Time",AZT:"Azerbaijan Time",AoE:"Anywhere on Earth",B:"Bravo Time Zone",BDST:"British Daylight Saving Time",BDT:"Brunei Time",BNT:"Brunei Darussalam Time",BOT:"Bolivia Time",BRST:"Brasília Summer Time",BRT:"Brasília Time",BST:"British Summer Time",BT:"Brazil Time",BTT:"Bhutan Time",C:"Charlie Time Zone",CAST:"Casey Time",CAT:"Central Africa Time",CCT:"Cocos Islands Time",CDT:"Central Daylight Time",CDST:"Central Daylight Savings Time",CEDT:"Central European Daylight Time",CEST:"Central European Summer Time",CET:"Central European Time",CHADT:"Chatham Island Daylight Time",CHAST:"Chatham Island Standard Time",CHODT:"Choibalsan Daylight Time",CHODST:"Choibalsan Daylight Saving Time",CHOST:"Choibalsan Summer Time",CHOT:"Choibalsan Time",CHUT:"Chuuk Time",CIDST:"Cayman Islands Daylight Saving Time",CIST:"Cayman Islands Standard Time",CIT:"Cayman Islands Time",CKT:"Cook Island Time",CLDT:"Chile Daylight Time",CLST:"Chile Summer Time",CLT:"Chile Standard Time",COT:"Colombia Time",CST:"Central Standard Time",CT:"Central Time",CVT:"Cape Verde Time",CXT:"Christmas Island Time",ChST:"Chamorro Standard Time",D:"Delta Time Zone",DAVT:"Davis Time",DDUT:"Dumont-d'Urville Time",E:"Echo Time Zone",EADT:"Easter Island Daylight Time",EASST:"Easter Island Summer Time",EAST:"Easter Island Standard Time",EAT:"Eastern Africa Time",ECST:"European Central Summer Time",ECT:"Ecuador Time",EDT:"Eastern Daylight Time",EDST:"Eastern Daylight Saving Time",EEDT:"Eastern European Daylight Time",EEST:"Eastern European Summer Time",EET:"Eastern European Time",EFATE:"Efate Time",EGST:"Eastern Greenland Summer Time",EGT:"East Greenland Time",EST:"Eastern Standard Time",ET:"Eastern Time",F:"Foxtrot Time Zone",FET:"Further-Eastern European Time",FJDT:"Fiji Daylight Time",FJST:"Fiji Summer Time",FJT:"Fiji Time",FKDT:"Falkland Island Daylight Time",FKST:"Falkland Islands Summer Time",FKT:"Falkland Island Time",FNT:"Fernando de Noronha Time",G:"Golf Time Zone",GALT:"Galapagos Time",GAMT:"Gambier Time",GET:"Georgia Standard Time",GFT:"French Guiana Time",GILT:"Gilbert Island Time",GMT:"Greenwich Mean Time",GST:"South Georgia Time",GT:"Greenwich Time",GYT:"Guyana Time",H:"Hotel Time Zone",HAA:"Heure Avancée de l'Atlantique",HAC:"Heure Avancée du Centre",HADT:"Hawaii Daylight Time",HAE:"Heure Avancée de l'Est",HAP:"Heure Avancée du Pacifique",HAST:"Hawaii-Aleutian Standard Time",HAR:"Heure Avancée des Rocheuses",HAT:"Heure Avancée de Terre-Neuve",HDT:"Hawaii-Aleutian Daylight Time",HLV:"Hora Legal de Venezuela",HNA:"Heure Normale de l'Atlantique",HNC:"Heure Normale du Centre",HNE:"Heure Normale de l'Est",HNP:"Heure Normale du Pacifique",HNR:"Heure Normale des Rocheuses",HNT:"Heure Normale de Terre-Neuve",HKT:"Hong Kong Time",HOVDT:"Hovd Daylight Time",HOVDST:"Hovd Daylight Saving Time",HOVST:"Hovd Summer Time",HOVT:"Hovd Time",HST:"Hawaii Standard Time",I:"India Time Zone",ICT:"Indochina Time",IDT:"Israel Daylight Time",IOT:"Indian Chagos Time",IRDT:"Iran Daylight Time",IRKST:"Irkutsk Summer Time",IRKT:"Irkutsk Time",IRST:"Iran Standard Time",IST:"India Standard Time",JST:"Japan Standard Time",K:"Kilo Time Zone",KGT:"Kyrgyzstan Time",KIT:"Kerguelen (Islands) Time",KOST:"Kosrae Time",KRAST:"Krasnoyarsk Summer Time",KRAT:"Krasnoyarsk Time",KST:"Korea Standard Time",KT:"Korea Time",KUYT:"Kuybyshev Time",L:"Lima Time Zone",LHDT:"Lord Howe Daylight Time",LHST:"Lord Howe Standard Time",LINT:"Line Islands Time",M:"Mike Time Zone",MAGST:"Magadan Summer Time",MAGT:"Magadan Time",MART:"Marquesas Time",MAWT:"Mawson Time",MCK:"Moscow Time",MDST:"Mountain Daylight Saving Time",MDT:"Mountain Daylight Time",MESZ:"Mitteleuropäische Sommerzeit",MEZ:"Mitteleuropäische Zeit",MHT:"Marshall Islands Time",MMT:"Myanmar Time",MST:"Mountain Standard Time",MSK:"Moscow Standard Time",MT:"Mountain Time",MUT:"Mauritius Time",MVT:"Maldives Time",MYT:"Malaysia Time",N:"November Time Zone",NACDT:"North American Central Daylight Time",NACST:"North American Central Standard Time",NAEDT:"North American Eastern Daylight Time",NAEST:"North American Eastern Standard Time",NAMDT:"North American Mountain Daylight Time",NAMST:"North American Mountain Standard Time",NAPDT:"North American Pacific Daylight Time",NAPST:"North American Pacific Standard Time",NCT:"New Caledonia Time",NDT:"Newfoundland Daylight Time",NFDT:"Norfolk Daylight Time",NFT:"Norfolk Time",NOVST:"Novosibirsk Summer Time",NOVT:"Novosibirsk Time",NPT:"Nepal Time",NRT:"Nauru Time",NST:"Newfoundland Standard Time",NUT:"Niue Time",NZDT:"New Zealand Daylight Time",NZST:"New Zealand Standard Time",O:"Oscar Time Zone",OESZ:"Osteuropäische Sommerzeit",OEZ:"Osteuropäische Zeit",OMSST:"Omsk Summer Time",OMST:"Omsk Standard Time",ORAT:"Oral Time",P:"Papa Time Zone",PDT:"Pacific Daylight Time",PDST:"Pacific Daylight Saving Time",PET:"Peru Time",PETST:"Kamchatka Summer Time",PETT:"Kamchatka Time",PGT:"Papua New Guinea Time",PHOT:"Phoenix Island Time",PHT:"Philippine Time",PKT:"Pakistan Standard Time",PMDT:"Pierre & Miquelon Daylight Time",PMST:"Pierre & Miquelon Standard Time",PONT:"Pohnpei Standard Time",PST:"Pacific Standard Time",PT:"Pacific Time",PWT:"Palau Time",PYST:"Pyongyang Standard Time",PYT:"Pyongyang Time",Q:"Quebec Time Zone",QYZT:"Qyzylorda Time",R:"Romeo Time Zone",RET:"Reunion Time",ROTT:"Rothera Time",S:"Sierra Time Zone",SAKT:"Sakhalin Time",SAMT:"Samara Time",SAMST:"Samara Summer Time",SAST:"South Africa Standard Time",SBT:"Solomon Islands Time",SCT:"Seychelles Time",SGT:"Singapore Time",SRET:"Srednekolymsk Time",SRT:"Suriname Time",SST:"Samoa Standard Time",SYOT:"Syowa Time",T:"Tango Time Zone",TAHT:"Tahiti Time",TFT:"French Southern and Antarctic Time",TJT:"Tajikistan Time",TKT:"Tokelau Time",TLT:"East Timor Time",TMT:"Turkmenistan Time",TOST:"Tonga Summer Time",TOT:"Tonga Time",TRT:"Turkey Time",tVT:"Tuvalu Time",U:"Uniform Time Zone",ULAST:"Ulaanbaatar Summer Time",ULAT:"Ulaanbaatar Time",UTC:"Coordinated Universal Time",UYST:"Uruguay Summer Time",UYT:"Uruguay Time",UZT:"Uzbekistan Time",V:"Victor Time Zone",VET:"Venezuelan Standard Time",VLAST:"Vladivostok Summer Time",VLAT:"Vladivostok Time",VOST:"Vostok Time",VUT:"Vanuatu Time",W:"Whiskey Time Zone",WAKT:"Wake Time",WARST:"Western Argentine Summer Time",WAST:"West Africa Summer Time",WAT:"West Africa Time",WDT:"Western Daylight Time",WEDT:"Western European Daylight Time",WEST:"Western European Summer Time",WESZ:"Westeuropäische Sommerzeit",WET:"Western European Time",WEZ:"Westeuropäische Zeit",WFT:"Wallis and Futuna Time",WGST:"Western Greenland Summer Time",WGT:"West Greenland Time",WIB:"Western Indonesian Time",WIT:"Eastern Indonesian Time",WITA:"Central Indonesian Time",WST:"Western Standard Time",WT:"Western Sahara Standard Time",X:"X-ray Time Zone",Y:"Yankee Time Zone",YAKST:"Yakutsk Summer Time",YAKT:"Yakutsk Time",YAPT:"Yap Time",YEKST:"Yekaterinburg Summer Time",YEKT:"Yekaterinburg Time",Z:"Zulu Time Zone"},T={},n=e=>t[e]?t[e]:null,i=t=>{const a=moment(t).utcOffset();if(!T[a]){const t=(t=>{if(!moment.tz)return null;const a=moment.tz.guess(),r=a?moment.tz(a).format("z"):null,T=e[String(t)];return T?T.indexOf(r)>=0?r:T[0]:null})(a);t?T[a]=t:console.warn("- unhandled offset: "+a)}return T[a]||null},m=e=>Number.isInteger(e)?String(Math.abs(e)):e.replace(/^-/,""),o=(e,t)=>{const a=m(e);return a.length>=t?String(e):(a!==e?"-":"")+("0".repeat(t)+a).substr(0-t)};class s{count=0;constructor(e,t){if(1!=e.length)throw new Error("You must provide a single character when creating a token!");this.token=e,this.count=void 0===t?1:t}increment(){return this.count++,this.count}equals(e){return this.token===e.token&&this.count===e.count}toString(){return this.token.repeat(this.count)}}class l{}const u=/[A-Za-z]/,S=e=>e.year()>0?"AD":"BC",d=e=>{let t=e.zoneAbbr();const a=e.zoneName();if(e.tz)return a&&""!==a?"UTC"===t&&0!==e.utcOffset()?null:{abbr:t,name:a,description:n(t)}:null;if(t=i(e),t){const e=n(t);if(e)return{abbr:t,name:a,description:e}}return null},f={G:S,GG:S,GGG:S,GGGG:S,GGGGG:S,GGGGGG:S,y:e=>m(e.format("Y")),yy:e=>m(e.format("YY")),yyy:e=>o(m(e.format("YYYY")),3),yyyy:e=>m(e.format("YYYY")),yyyyy:e=>o(m(e.format("YYYY")),5),yyyyyy:e=>o(m(e.format("YYYY")),6),Y:"gggg",YY:"gg",YYY:e=>o(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>o(e.format("gggg"),5),YYYYYY:e=>o(e.format("gggg"),6),M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:"MMMM",MMMMMM:"MMMM",w:e=>o(e.format("w"),1),ww:e=>o(e.format("w"),2),www:e=>o(e.format("w"),3),wwww:e=>o(e.format("w"),4),wwwww:e=>o(e.format("w"),5),wwwwww:e=>o(e.format("w"),6),W:null,WW:null,WWW:null,WWWW:null,D:"DDD",DD:e=>o(e.format("DDD"),2),DDD:e=>o(e.format("DDD"),3),DDDD:e=>o(e.format("DDD"),4),DDDDD:e=>o(e.format("DDD"),5),DDDDDD:e=>o(e.format("DDD"),6),d:"D",dd:"DD",ddd:e=>o(e.format("D"),3),dddd:e=>o(e.format("D"),4),ddddd:e=>o(e.format("D"),5),dddddd:e=>o(e.format("D"),6),F:null,FF:null,FFF:null,FFFF:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:"dddd",EEEEEE:"dddd",u:"E",uu:e=>o(e.format("E"),2),uuu:e=>o(e.format("E"),3),uuuu:e=>o(e.format("E"),4),uuuuu:e=>o(e.format("E"),5),uuuuuu:e=>o(e.format("E"),6),a:"A",aa:"A",aaa:"A",aaaa:"A",aaaaa:"A",aaaaaa:"A",H:"H",HH:"HH",HHH:e=>o(e.format("H"),3),HHHH:e=>o(e.format("H"),4),HHHHH:e=>o(e.format("H"),5),HHHHHH:e=>o(e.format("H"),6),k:"k",kk:"kk",kkk:e=>o(e.format("k"),3),kkkk:e=>o(e.format("k"),4),kkkkk:e=>o(e.format("k"),5),kkkkkk:e=>o(e.format("k"),6),K:e=>{const t=parseInt(e.format("h"),10);return m(t%12)},KK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),2)},KKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),3)},KKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),4)},KKKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),5)},KKKKKK:e=>{const t=parseInt(e.format("h"),10);return o(m(t%12),6)},h:"h",hh:"hh",hhh:e=>o(e.format("h"),3),hhhh:e=>o(e.format("h"),4),hhhhh:e=>o(e.format("h"),5),hhhhhh:e=>o(e.format("h"),6),m:"m",mm:"mm",mmm:e=>o(e.format("m"),3),mmmm:e=>o(e.format("m"),4),mmmmm:e=>o(e.format("m"),5),mmmmmm:e=>o(e.format("m"),6),s:"s",ss:"ss",sss:e=>o(e.format("s"),3),ssss:e=>o(e.format("s"),4),sssss:e=>o(e.format("s"),5),ssssss:e=>o(e.format("s"),6),S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>o(e.format("SSSS"),5),SSSSSS:e=>o(e.format("SSSS"),6),z:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzz:e=>{const t=d(e);return t?t.abbr:"GMT"+e.format("Z")},zzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},zzzzzz:e=>{const t=d(e);return t?t.description:"GMT"+e.format("Z")},Z:"ZZ",ZZ:"ZZ",ZZZ:"ZZ",ZZZZ:"ZZ",ZZZZZ:"ZZ",ZZZZZZ:"ZZ",X:e=>0===e.utcOffset()?"Z":e.format("Z").substr(0,3),XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z")};class c extends l{tokenize(e){const t=[],a=e.length;let r=!1,T=0,n=null,i=null;const m=(e,a)=>{const r=f[e];if(null===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; token is not implemented`);if(void 0===r)throw new Error(`'${e.repeat(a)}' cannot be converted to a moment format token; unknown token`);t.push(new s(e,a))},o=e=>{t[t.length-1]instanceof s?t.push(e):t[t.length-1]+=e};for(let t=0;te.year()>0?"AD":"BC",g=e=>{const t=e.zoneAbbr();return"UTC"===t&&0!=e.utcOffset()?null:t},E={G:D,GG:D,GGG:D,GGGG:e=>e.year()>0?"Anno Domini":"Before Christ",GGGGG:e=>D(e).substring(0,1),u:e=>o(e.format("YYYY"),1),uu:e=>o(m(e.format("YY")),2),uuu:e=>o(e.format("YYYY"),3),uuuu:"YYYY",uuuuu:e=>o(e.format("YYYY"),5),uuuuuu:e=>o(e.format("YYYY"),6),y:e=>m(e.format("Y")),yy:e=>m(e.format("YY")),yyy:e=>o(m(e.format("YYYY")),3),yyyy:e=>m(e.format("YYYY")),yyyyy:e=>o(m(e.format("YYYY")),5),yyyyyy:e=>o(m(e.format("YYYY")),6),D:"DDD",DD:e=>{const t=e.format("DDD");if(t.length>2)throw new Error("Field DayOfYear cannot be printed as the value "+t+" exceeds the maximum print width of 2");return o(t,2)},DDD:"DDDD",M:"M",MM:"MM",MMM:"MMM",MMMM:"MMMM",MMMMM:e=>e.format("MMMM").substring(0,1),L:"M",LL:"MM",LLL:"M",LLLL:"M",LLLLL:"M",d:"D",dd:"DD",Q:"Q",QQ:e=>o(e.format("Q"),2),QQQ:e=>"Q"+e.format("Q"),QQQQ:e=>e.format("Qo")+" quarter",QQQQQ:"Q",q:"Q",qq:e=>o(e.format("Q"),2),qqq:"Q",qqqq:"Q",qqqqq:"Q",Y:e=>o(e.format("gggg"),1),YY:"gg",YYY:e=>o(e.format("gggg"),3),YYYY:"gggg",YYYYY:e=>o(e.format("gggg"),5),YYYYYY:e=>o(e.format("gggg"),6),w:"w",ww:"ww",W:null,WW:null,WWW:null,WWWW:null,E:"ddd",EE:"ddd",EEE:"ddd",EEEE:"dddd",EEEEE:e=>e.format("dddd").substring(0,1),e:"d",ee:e=>o(e.format("d"),2),eee:"ddd",eeee:"dddd",eeeee:e=>e.format("dddd").substring(0,1),c:"d",ccc:"ddd",cccc:"dddd",ccccc:e=>String(parseInt(e.format("d"),10)-1),a:"A",h:"h",hh:"hh",K:e=>m(e.hour()%12),KK:e=>{const t=m(e.hour()%12);return o(t,2)},k:"k",kk:"kk",H:"H",HH:"HH",m:"m",mm:"mm",s:"s",ss:"ss",S:"S",SS:"SS",SSS:"SSS",SSSS:"SSSS",SSSSS:e=>o(e.format("SSSS"),5),SSSSSS:e=>o(e.format("SSSS"),6),A:e=>o(e.valueOf()-e.clone().startOf("day").valueOf(),1),AA:e=>e.isSame(e.clone().startOf("day"))?"00":null,AAA:e=>e.isSame(e.clone().startOf("day"))?"000":null,AAAA:e=>e.isSame(e.clone().startOf("day"))?"0000":null,AAAAA:e=>e.isSame(e.clone().startOf("day"))?"00000":null,AAAAAA:e=>e.isSame(e.clone().startOf("day"))?"000000":null,VV:e=>{if(0===e.utcOffset())return"Z";const t=e.tz();return t&&t.length>0?t:e.format("Z")},z:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zz:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zzz:e=>{if(0===e.utcOffset())return"Z";return g(e)||e.format("Z")},zzzz:e=>{if(0===e.utcOffset())return"Z";const t=g(e);return t?n(t):e.format("Z")},O:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z").replace(h,"").replace(/^([+-])0/,"$1"),OOOO:e=>0==e.utcOffset()/60?"GMT":"GMT"+e.format("Z"),X:e=>{if(0===e.utcOffset())return"Z";const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},XX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXX:e=>0===e.utcOffset()?"Z":e.format("Z"),XXXX:e=>0===e.utcOffset()?"Z":e.format("ZZ"),XXXXX:e=>0===e.utcOffset()?"Z":e.format("Z"),x:e=>{const t=e.format("ZZ");return t.match(h)?t.substr(0,3):t},xx:"ZZ",xxx:"Z",xxxx:"ZZ",xxxxx:"Z",Z:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZ:e=>0===e.utcOffset()?"+0000":e.format("ZZ"),ZZZZ:e=>0===e.utcOffset()?"GMT":"GMT"+e.format("Z"),ZZZZZ:e=>0===e.utcOffset()?"Z":e.format("Z")};class M extends s{constructor(e,t,a,r){super(a,r),this.padding=e,this.padChar=t}format(e){if(e.length>this.padding)throw new Error(`Cannot format padding as formatted string "${e}" exceeds pad width of ${this.padding}.`);return(this.padChar.repeat(this.padding)+e).substr(0-this.padding)}}class Z extends l{tokenize(e){let t=0,a=" ";const r=[];for(let T=0;T0?(r.push(new M(t,a,n,m)),t=0,a=" "):r.push(new s(n,m)),T--}else if("'"===n){const t=T++;for(;T=e.length)throw new Error(`Pattern ends with an incomplete string literal: ${e}`);const a=e.substring(t+1,T);0==a.length?r.push("'"):r.push(a.replace("''","'"))}else{if("["===n)throw new Error(`Optional patterns are not supported: ${n}`);if("]"===n)throw new Error(`Optional patterns are not supported: ${n}`);if("{"===n||"}"===n||"#"===n)throw new Error(`Pattern includes reserved character: '${n}'`);r[r.length-1]instanceof s?r.push(n):r[r.length-1]+=n}}return r}format(e,t){const a=this.tokenize(t),r=[];for(const t of a)if(t instanceof s){const a=t.toString(),T=E[a];if(void 0===T)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);if("function"==typeof T){const t=T(e,a);if(null===t)throw new Error(`'${a}' cannot be converted to a moment format token; bailing`);r.push(t)}else r.push(e.format(T))}else r.push(t);return r.join("")}}const y=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&e.fn.zoneAbbr){console.log("register: moment=%s, fatal=%s",typeof e,t),e.tz?console.log("Moment.js with timezone support detected; attaching Java format methods."):console.warn("Moment.js detected, but timezone support is missing. Some Java formatting features may not work as expected.");const a=new c,r=new Z;return e.fn.formatJavaSDF=function(e){return a.format(this,e)},e.fn.formatJavaDTF=function(e){return r.format(this,e)},e}if(console.error("Unable to attach Java format methods. Moment.js object was invalid."),t)throw new Error("Moment.js object was invalid.")};if("undefined"!=typeof window&&window?.moment)y(window.moment,!1);else if("undefined"!=typeof global&&global?.moment)y(global.moment,!1);else if("undefined"!=typeof window&&window)try{const e=a(754);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment-timezone. Attempting fallback to moment.");try{const e=a(72);window.moment=y(e,!1)}catch(e){console.warn("Failed to load moment. User will have to manually register.")}}let Y;"undefined"!=typeof window&&(Y=window?.moment),void 0===Y&&"undefined"!=typeof global&&(Y=global?.moment);const C=Y})(),r.default})())); //# sourceMappingURL=node.min.js.map \ No newline at end of file