60p82u21t54k 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/60p82u21t54k.es.js +242 -106
- package/dist/60p82u21t54k.umd.js +1 -1
- package/dist/api/api.d.ts +0 -1
- package/dist/api/type.d.ts +0 -1
- package/dist/model/addBankCard/getAddBankCardResponse.d.ts +0 -1
- package/dist/model/addBankCard/type.d.ts +0 -1
- package/dist/model/agTransferCreditReport/getAgTransferCreditReportResponse.d.ts +0 -1
- package/dist/model/announcement/getAnnouncementResponse.d.ts +0 -1
- package/dist/model/applyGoldEgg/getApplyGoldEggResponse.d.ts +0 -1
- package/dist/model/applyPromo/getApplyPromoResponse.d.ts +0 -1
- package/dist/model/applyRedPacket/getApplyRedPacketResponse.d.ts +0 -1
- package/dist/model/applyRedPacket/type.d.ts +0 -1
- package/dist/model/applyReliefFund/getApplyReliefFundResponse.d.ts +0 -1
- package/dist/model/applySignIn/getApplySignInResponse.d.ts +0 -1
- package/dist/model/applyVipBonus/getApplyVipBonusResponse.d.ts +0 -1
- package/dist/model/applyWeekCard/getApplyWeekCardResponse.d.ts +0 -1
- package/dist/model/autoRegister/autoRegisterApi.d.ts +0 -1
- package/dist/model/betReport/getBetReportResponse.d.ts +0 -1
- package/dist/model/changePassword/getChangePasswordResponse.d.ts +0 -1
- package/dist/model/changeWithdrawalCode/getChangeWithdrawalCodeResponse.d.ts +0 -1
- package/dist/model/changeWithdrawalCode/type.d.ts +0 -1
- package/dist/model/checkGoldEggToken/getCheckGoldEggTokenResponse.d.ts +0 -1
- package/dist/model/checkGoldEggValidate/getCheckGoldEggValidateResponse.d.ts +0 -1
- package/dist/model/checkRedPacketToken/getCheckRedPacketTokenResponse.d.ts +0 -1
- package/dist/model/checkRedPacketValidate/getCheckRedPacketValidateResponse.d.ts +0 -1
- package/dist/model/checkTransferCredit/getCheckTransferCreditResponse.d.ts +0 -1
- package/dist/model/checkTransferCredit/type.d.ts +0 -1
- package/dist/model/claimIncentiveRebate/getClaimIncentiveRebateResponse.d.ts +0 -1
- package/dist/model/cmsList/getCmsListResponse.d.ts +0 -1
- package/dist/model/commissionWithdraw/getCommissionWithdrawResponse.d.ts +0 -1
- package/dist/model/commissionWithdraw/type.d.ts +0 -1
- package/dist/model/deposit/getDepositResponse.d.ts +0 -1
- package/dist/model/fishGameList/getFishGameListResponse.d.ts +0 -1
- package/dist/model/fishGameList/modifyFishGameListRequest.d.ts +0 -1
- package/dist/model/fishGameList/modifyFishGameListResponse.d.ts +0 -1
- package/dist/model/fishGameList/modifyFishGameListResponse.d.ts.map +1 -1
- package/dist/model/friendList/getFriendListResponse.d.ts +0 -1
- package/dist/model/friendListEdit/getFriendListEditResponse.d.ts +0 -1
- package/dist/model/friendListEdit/type.d.ts +0 -1
- package/dist/model/gameList/getGameListResponse.d.ts +0 -1
- package/dist/model/gameList/modifyGameListRequest.d.ts +0 -1
- package/dist/model/gameList/modifyGameListResponse.d.ts +0 -1
- package/dist/model/getASCMatchCount/getGetASCMatchCountResponse.d.ts +0 -1
- package/dist/model/getAccumulateDepositClaim/getGetAccumulateDepositClaimResponse.d.ts +0 -1
- package/dist/model/getAccumulateDepositData/getGetAccumulateDepositDataResponse.d.ts +0 -1
- package/dist/model/getActivePP/getGetActivePPResponse.d.ts +0 -1
- package/dist/model/getActiveProduct/getGetActiveProductResponse.d.ts +0 -1
- package/dist/model/getBankCardData/getGetBankCardDataResponse.d.ts +0 -1
- package/dist/model/getCompany/getGetCompanyResponse.d.ts +0 -1
- package/dist/model/getCompany/modifyGetCompanyResponse.d.ts +0 -1
- package/dist/model/getCountry/getGetCountryResponse.d.ts +0 -1
- package/dist/model/getCountryMobile/getGetCountryMobileResponse.d.ts +0 -1
- package/dist/model/getCryptoAddress/getGetCryptoAddressResponse.d.ts +0 -1
- package/dist/model/getCryptoList/getGetCryptoListResponse.d.ts +0 -1
- package/dist/model/getDepositPromotion/getGetDepositPromotionResponse.d.ts +0 -1
- package/dist/model/getEventList/getGetEventListResponse.d.ts +0 -1
- package/dist/model/getEventToken/getGetEventTokenReponse.d.ts +0 -1
- package/dist/model/getExtraGame/getGetExtraGameResponse.d.ts +0 -1
- package/dist/model/getFavouriteGame/getGetFavouriteGameResponse.d.ts +0 -1
- package/dist/model/getFavouriteGame/modifyGetFavouriteGameRequest.d.ts +0 -1
- package/dist/model/getFavouriteGame/modifyGetFavouriteGameResponse.d.ts +0 -1
- package/dist/model/getFourDimensionData/getGetFourDimensionDataResponse.d.ts +0 -1
- package/dist/model/getFourDimensionData/modifyGetFourDimensionDataRequest.d.ts +0 -1
- package/dist/model/getGoldEggData/getGoldEggDataResponse.d.ts +0 -1
- package/dist/model/getImage/getGetImageResponse.d.ts +0 -1
- package/dist/model/getIncentiveData/getGetIncentiveDataResponse.d.ts +0 -1
- package/dist/model/getIncentiveData/modifyGetIncentiveDataRequest.d.ts +0 -1
- package/dist/model/getIncentiveData/modifyGetIncentiveDataResponse.d.ts +0 -1
- package/dist/model/getIncentiveRebate/getGetIncentiveRebateResponse.d.ts +0 -1
- package/dist/model/getInviteRewardClaim/getGetInviteRewardClaimResponse.d.ts +0 -1
- package/dist/model/getInviteRewardClaim/type.d.ts +0 -1
- package/dist/model/getInviteRewardData/getGetInviteRewardDataResponse.d.ts +0 -1
- package/dist/model/getInviteRewardReport/getGetInviteRewardReportResponse.d.ts +0 -1
- package/dist/model/getInviteRewardSetting/getGetInviteRewardSettingResponse.d.ts +0 -1
- package/dist/model/getLanguageSetting/getGetLanguageSettingResponse.d.ts +0 -1
- package/dist/model/getMaintenanceMode/getMaintenanceModeApi.d.ts +0 -1
- package/dist/model/getMissionClaim/getGetMissionClaimResponse.d.ts +0 -1
- package/dist/model/getMissionData/getGetMissionDataResponse.d.ts +0 -1
- package/dist/model/getNewbieMissionClaim/getGetNewbieMissionClaimResponse.d.ts +0 -1
- package/dist/model/getNewbieMissionData/getGetNewbieMissionDataResponse.d.ts +0 -1
- package/dist/model/getPlatformTurnoverRate/getGetPlatformTurnoverRateResponse.d.ts +0 -1
- package/dist/model/getPopoutItem/getGetPopoutItemResponse.d.ts +0 -1
- package/dist/model/getReliefFundData/getGetReliefFundDataResponse.d.ts +0 -1
- package/dist/model/getReliefFundReport/getGetReliefFundReportResponse.d.ts +0 -1
- package/dist/model/getRewardReferral/getGetRewardReferralResponse.d.ts +0 -1
- package/dist/model/getRewardReferral/modifyGetRewardReferralRequest.d.ts +0 -1
- package/dist/model/getRewardReferral/modifyGetRewardReferralResponse.d.ts +0 -1
- package/dist/model/getRewardReferral/type.d.ts +0 -1
- package/dist/model/getSetting/getGetSettingResponse.d.ts +2 -1
- package/dist/model/getSetting/getGetSettingResponse.d.ts.map +1 -1
- package/dist/model/getSetting/type.d.ts +5 -1
- package/dist/model/getSetting/type.d.ts.map +1 -1
- package/dist/model/getTopUpRewardClaim/getGetTopUpRewardClaimResponse.d.ts +0 -1
- package/dist/model/getTopUpRewardClaim/type.d.ts +0 -1
- package/dist/model/getTopUpRewardSetting/getGetTopUpRewardSettingResponse.d.ts +0 -1
- package/dist/model/getTopupRewardData/getGetTopupRewardDataResponse.d.ts +0 -1
- package/dist/model/getTopupRewardReport/getGetTopupRewardReportResponse.d.ts +0 -1
- package/dist/model/getTurnOverRewardClaim/getGetTurnOverRewardClaimResponse.d.ts +0 -1
- package/dist/model/getTurnOverRewardClaim/type.d.ts +0 -1
- package/dist/model/getTurnOverRewardData/getGetTurnOverRewardDataResponse.d.ts +0 -1
- package/dist/model/getTurnOverRewardReport/getGetTurnOverRewardReportResponse.d.ts +0 -1
- package/dist/model/getTurnOverRewardSetting/getGetTurnOverRewardSettingResponse.d.ts +0 -1
- package/dist/model/getTurnOverRewardSettingMult/getGetTurnOverRewardSettingMultResponse.d.ts +0 -1
- package/dist/model/getTwoFactorAuthenticate/getGetTwoFactorAuthenticateResponse.d.ts +0 -1
- package/dist/model/getUserDeviceList/getGetUserDeviceListResponse.d.ts +0 -1
- package/dist/model/getUserProfile/getGetUserProfileResponse.d.ts +0 -1
- package/dist/model/getUsernameByRefer/getGetUsernameByReferResponse.d.ts +0 -1
- package/dist/model/getValidate/getGetValidateResponse.d.ts +0 -1
- package/dist/model/getVerifyPromo/getGetVerifyPromoResponse.d.ts +0 -1
- package/dist/model/getWeekCardAllData/getGetWeekCardAllDataResponse.d.ts +0 -1
- package/dist/model/getWeekCardClaim/getGetWeekCardClaimResponse.d.ts +0 -1
- package/dist/model/getWeekCardData/getGetWeekCardDataResponse.d.ts +0 -1
- package/dist/model/getWheelData/getGetWheelDataResponse.d.ts +0 -1
- package/dist/model/getWheelReport/getGetWheelReportResponse.d.ts +0 -1
- package/dist/model/getWheelTicket/getGetWheelTicketResponse.d.ts +0 -1
- package/dist/model/interestIndex/getInterestIndexResponse.d.ts +0 -1
- package/dist/model/interestTransactionList/getInterestTransactionListResponse.d.ts +0 -1
- package/dist/model/interestTransferIn/getInterestTransferInResponse.d.ts +0 -1
- package/dist/model/interestTransferOut/getInterestTransferOutResponse.d.ts +0 -1
- package/dist/model/interestWalletInfo/getInterestWalletInfoResponse.d.ts +0 -1
- package/dist/model/jackpotData/jackpotDataApi.d.ts +0 -1
- package/dist/model/loadMatch/loadMatchApi.d.ts +0 -1
- package/dist/model/login/loginApi.d.ts +0 -1
- package/dist/model/logout/logoutApi.d.ts +0 -1
- package/dist/model/mailBox/getMailBoxResponse.d.ts +0 -1
- package/dist/model/mainWallet/getMainWalletResponse.d.ts +0 -1
- package/dist/model/paymentsProvider/getPaymentsProviderResponse.d.ts +0 -1
- package/dist/model/paymentsProvider/modifyPaymentsProviderRequest.d.ts +0 -1
- package/dist/model/paymentsProvider/modifyPaymentsProviderResponse.d.ts +0 -1
- package/dist/model/playGame/getPlayGameResponse.d.ts +0 -1
- package/dist/model/promotion/getPromotionResponse.d.ts +0 -1
- package/dist/model/readMail/getReadMailResponse.d.ts +0 -1
- package/dist/model/rebateRefundSetting/getRebateRefundSettingResponse.d.ts +0 -1
- package/dist/model/referralMemberProfile/getReferralMemberProfileResponse.d.ts +0 -1
- package/dist/model/referralProfile/getReferralProfileResponse.d.ts +0 -1
- package/dist/model/registerAction/getRegisterActionResponse.d.ts +0 -1
- package/dist/model/registerForm/getRegisterFormResponse.d.ts +0 -1
- package/dist/model/rename/renameApi.d.ts +0 -1
- package/dist/model/requestForgetPassword/getRequestForgetPasswordResponse.d.ts +0 -1
- package/dist/model/requestForgetPassword/type.d.ts +0 -1
- package/dist/model/requestForgetUsername/getRequestForgetUsernameResponse.d.ts +0 -1
- package/dist/model/requestForgetUsername/type.d.ts +0 -1
- package/dist/model/requestTacCode/getRequestTacCodeResponse.d.ts +0 -1
- package/dist/model/requestTacCode/type.d.ts +0 -1
- package/dist/model/requestTransferMoney/getRequestTransferMoneyResponse.d.ts +0 -1
- package/dist/model/requestTransferMoney/type.d.ts +0 -1
- package/dist/model/requestUpdateMobileTacCode/getRequestUpdateMobileTacCodeResponse.d.ts +0 -1
- package/dist/model/requestWithdrawTac/getRequestWithdrawTacResponse.d.ts +0 -1
- package/dist/model/requestWithdrawTac/type.d.ts +0 -1
- package/dist/model/requestWithdrawalCode/getRequestWithdrawalCodeResponse.d.ts +0 -1
- package/dist/model/requestWithdrawalCode/type.d.ts +0 -1
- package/dist/model/searchByDate/getSearchByDateResponse.d.ts +0 -1
- package/dist/model/searchByDate/modifySearchByDateRequest.d.ts +0 -1
- package/dist/model/searchGameByName/getSearchGameByNameResponse.d.ts +0 -1
- package/dist/model/searchGameByName/modifySearchGameByNameRequest.d.ts +0 -1
- package/dist/model/searchGameByName/modifySearchGameByNameResponse.d.ts +0 -1
- package/dist/model/searchHot/getSearchHotResponse.d.ts +0 -1
- package/dist/model/searchHot/modifySearchHotRequest.d.ts +0 -1
- package/dist/model/searchNumberHistory/getSearchNumberHistoryResponse.d.ts +0 -1
- package/dist/model/searchNumberHistory/modifySearchNumberHistoryRequest.d.ts +0 -1
- package/dist/model/searchResultDate/getSearchResultDateResponse.d.ts +0 -1
- package/dist/model/setLocale/setLocaleApi.d.ts +0 -1
- package/dist/model/signInRecord/getSignInRecordResponse.d.ts +0 -1
- package/dist/model/signInViewInfo/getSignInViewInfoResponse.d.ts +0 -1
- package/dist/model/slotGameList/getSlotGameListResponse.d.ts +0 -1
- package/dist/model/spinWheel/getSpinWheelResponse.d.ts +0 -1
- package/dist/model/submitCryptoAccount/getSubmitCryptoAccountResponse.d.ts +0 -1
- package/dist/model/submitCryptoAccount/type.d.ts +0 -1
- package/dist/model/submitForgetPassword/getSubmitForgetPasswordResponse.d.ts +0 -1
- package/dist/model/submitForgetPassword/type.d.ts +0 -1
- package/dist/model/submitForgetUsername/getSubmitForgetUsernameResponse.d.ts +0 -1
- package/dist/model/submitGiftCode/getSubmitGiftCodeResponse.d.ts +0 -1
- package/dist/model/submitGiftCode/type.d.ts +0 -1
- package/dist/model/submitTransferMoney/getSubmitTransferMoneyResponse.d.ts +0 -1
- package/dist/model/submitTransferMoney/type.d.ts +0 -1
- package/dist/model/submitTwoFactorAuthenticate/getSubmitTwoFactorAuthenticateResponse.d.ts +0 -1
- package/dist/model/submitTwoFactorAuthenticate/type.d.ts +0 -1
- package/dist/model/submitUpdateMobileTacCode/getSubmitUpdateMobileTacCodeResponse.d.ts +0 -1
- package/dist/model/submitUpdateMobileTacCode/type.d.ts +0 -1
- package/dist/model/submitValidate/getSubmitValidateResponse.d.ts +0 -1
- package/dist/model/submitWithdrawalAlipay/getSubmitWithdrawalAlipayResponse.d.ts +0 -1
- package/dist/model/submitWithdrawalAlipay/type.d.ts +0 -1
- package/dist/model/submitWithdrawalCode/getSubmitWithdrawalCodeResponse.d.ts +0 -1
- package/dist/model/submitWithdrawalCode/type.d.ts +0 -1
- package/dist/model/telegramLogin/telegramLoginApi.d.ts +0 -1
- package/dist/model/transactionReport/getTransactionReportResponse.d.ts +0 -1
- package/dist/model/transfer/getTransferResponse.d.ts +0 -1
- package/dist/model/transfer/type.d.ts +0 -1
- package/dist/model/transferProcess/getTransferProcessResponse.d.ts +0 -1
- package/dist/model/transferProcess/type.d.ts +0 -1
- package/dist/model/transferReport/getTransferReportResponse.d.ts +0 -1
- package/dist/model/transferSetting/getTransferSettingResponse.d.ts +0 -1
- package/dist/model/transferToMain/getTransferToMainResponse.d.ts +0 -1
- package/dist/model/transferToMain/type.d.ts +0 -1
- package/dist/model/unbindUserDevice/getUnbindUserDeviceResponse.d.ts +0 -1
- package/dist/model/unbindUserDevice/type.d.ts +0 -1
- package/dist/model/upcomingMatches/getUpcomingMatchesResponse.d.ts +0 -1
- package/dist/model/updateDeviceToken/getUpdateDeviceTokenResponse.d.ts +0 -1
- package/dist/model/updateFavouriteGame/getUpdateFavouriteGameResponse.d.ts +0 -1
- package/dist/model/updateFavouriteGame/type.d.ts +0 -1
- package/dist/model/updateProfilePicture/getUpdateProfilePictureResponse.d.ts +0 -1
- package/dist/model/updateProfilePicture/type.d.ts +0 -1
- package/dist/model/vipBonus/getVipBonusResponse.d.ts +0 -1
- package/dist/model/vipFieldStatus/getVipFieldStatusResponse.d.ts +0 -1
- package/dist/model/vipList/getVipListResponse.d.ts +0 -1
- package/dist/model/vipList/modifyVipListRequest.d.ts +0 -1
- package/dist/model/vipList/modifyVipListResponse.d.ts +0 -1
- package/dist/model/vipList/type.d.ts +0 -1
- package/dist/model/vipStatus/getVipStatusResponse.d.ts +0 -1
- package/dist/model/wallet/getWalletResponse.d.ts +0 -1
- package/dist/model/withdraw/getWithdrawResponse.d.ts +0 -1
- package/dist/model/withdraw/type.d.ts +0 -1
- package/dist/model/withdrawalGet/getWithdrawalGetResponse.d.ts +0 -1
- package/dist/util/baseResponse/method.d.ts +0 -1
- package/package.json +1 -1
package/dist/60p82u21t54k.es.js
CHANGED
|
@@ -76,9 +76,9 @@ const Ta = (e) => {
|
|
|
76
76
|
__proto__: null,
|
|
77
77
|
getConfig: $e,
|
|
78
78
|
setConfig: Ta
|
|
79
|
-
}, Symbol.toStringTag, { value: "Module" })), ea = 6048e5, va = 864e5, wa = 6e4, Ra = 36e5, Da = 1e3,
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" })), ea = 6048e5, va = 864e5, wa = 6e4, Ra = 36e5, Da = 1e3, kt = Symbol.for("constructDateFrom");
|
|
80
80
|
function I(e, a) {
|
|
81
|
-
return typeof e == "function" ? e(a) : e && typeof e == "object" &&
|
|
81
|
+
return typeof e == "function" ? e(a) : e && typeof e == "object" && kt in e ? e[kt](a) : e instanceof Date ? new e.constructor(a) : new Date(a);
|
|
82
82
|
}
|
|
83
83
|
function S(e, a) {
|
|
84
84
|
return I(a || e, e);
|
|
@@ -128,19 +128,19 @@ function xa(e, ...a) {
|
|
|
128
128
|
);
|
|
129
129
|
return a.map(t);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Ot(e, a) {
|
|
132
132
|
const t = S(e, a == null ? void 0 : a.in);
|
|
133
133
|
return t.setHours(0, 0, 0, 0), t;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ka(e, a, t) {
|
|
136
136
|
const [n, r] = xa(
|
|
137
137
|
t == null ? void 0 : t.in,
|
|
138
138
|
e,
|
|
139
139
|
a
|
|
140
|
-
), s =
|
|
140
|
+
), s = Ot(n), o = Ot(r), l = +s - de(s), m = +o - de(o);
|
|
141
141
|
return Math.round((l - m) / va);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Oa(e, a) {
|
|
144
144
|
const t = aa(e, a), n = I(e, 0);
|
|
145
145
|
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), K(n);
|
|
146
146
|
}
|
|
@@ -587,10 +587,10 @@ const Za = /^(\d+)(th|st|nd|rd)?/i, Ja = /\d+/i, Ka = {
|
|
|
587
587
|
};
|
|
588
588
|
function dn(e, a) {
|
|
589
589
|
const t = S(e, a == null ? void 0 : a.in);
|
|
590
|
-
return
|
|
590
|
+
return ka(t, Ia(t)) + 1;
|
|
591
591
|
}
|
|
592
592
|
function ra(e, a) {
|
|
593
|
-
const t = S(e, a == null ? void 0 : a.in), n = +K(t) - +
|
|
593
|
+
const t = S(e, a == null ? void 0 : a.in), n = +K(t) - +Oa(t);
|
|
594
594
|
return Math.round(n / ea) + 1;
|
|
595
595
|
}
|
|
596
596
|
function Ge(e, a) {
|
|
@@ -670,8 +670,6 @@ const B = {
|
|
|
670
670
|
return w(r, a.length);
|
|
671
671
|
}
|
|
672
672
|
}, X = {
|
|
673
|
-
am: "am",
|
|
674
|
-
pm: "pm",
|
|
675
673
|
midnight: "midnight",
|
|
676
674
|
noon: "noon",
|
|
677
675
|
morning: "morning",
|
|
@@ -683,12 +681,15 @@ const B = {
|
|
|
683
681
|
G: function(e, a, t) {
|
|
684
682
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
685
683
|
switch (a) {
|
|
684
|
+
// AD, BC
|
|
686
685
|
case "G":
|
|
687
686
|
case "GG":
|
|
688
687
|
case "GGG":
|
|
689
688
|
return t.era(n, { width: "abbreviated" });
|
|
689
|
+
// A, B
|
|
690
690
|
case "GGGGG":
|
|
691
691
|
return t.era(n, { width: "narrow" });
|
|
692
|
+
// Anno Domini, Before Christ
|
|
692
693
|
case "GGGG":
|
|
693
694
|
default:
|
|
694
695
|
return t.era(n, { width: "wide" });
|
|
@@ -733,22 +734,28 @@ const B = {
|
|
|
733
734
|
Q: function(e, a, t) {
|
|
734
735
|
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
735
736
|
switch (a) {
|
|
737
|
+
// 1, 2, 3, 4
|
|
736
738
|
case "Q":
|
|
737
739
|
return String(n);
|
|
740
|
+
// 01, 02, 03, 04
|
|
738
741
|
case "QQ":
|
|
739
742
|
return w(n, 2);
|
|
743
|
+
// 1st, 2nd, 3rd, 4th
|
|
740
744
|
case "Qo":
|
|
741
745
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
746
|
+
// Q1, Q2, Q3, Q4
|
|
742
747
|
case "QQQ":
|
|
743
748
|
return t.quarter(n, {
|
|
744
749
|
width: "abbreviated",
|
|
745
750
|
context: "formatting"
|
|
746
751
|
});
|
|
752
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
747
753
|
case "QQQQQ":
|
|
748
754
|
return t.quarter(n, {
|
|
749
755
|
width: "narrow",
|
|
750
756
|
context: "formatting"
|
|
751
757
|
});
|
|
758
|
+
// 1st quarter, 2nd quarter, ...
|
|
752
759
|
case "QQQQ":
|
|
753
760
|
default:
|
|
754
761
|
return t.quarter(n, {
|
|
@@ -761,22 +768,28 @@ const B = {
|
|
|
761
768
|
q: function(e, a, t) {
|
|
762
769
|
const n = Math.ceil((e.getMonth() + 1) / 3);
|
|
763
770
|
switch (a) {
|
|
771
|
+
// 1, 2, 3, 4
|
|
764
772
|
case "q":
|
|
765
773
|
return String(n);
|
|
774
|
+
// 01, 02, 03, 04
|
|
766
775
|
case "qq":
|
|
767
776
|
return w(n, 2);
|
|
777
|
+
// 1st, 2nd, 3rd, 4th
|
|
768
778
|
case "qo":
|
|
769
779
|
return t.ordinalNumber(n, { unit: "quarter" });
|
|
780
|
+
// Q1, Q2, Q3, Q4
|
|
770
781
|
case "qqq":
|
|
771
782
|
return t.quarter(n, {
|
|
772
783
|
width: "abbreviated",
|
|
773
784
|
context: "standalone"
|
|
774
785
|
});
|
|
786
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
775
787
|
case "qqqqq":
|
|
776
788
|
return t.quarter(n, {
|
|
777
789
|
width: "narrow",
|
|
778
790
|
context: "standalone"
|
|
779
791
|
});
|
|
792
|
+
// 1st quarter, 2nd quarter, ...
|
|
780
793
|
case "qqqq":
|
|
781
794
|
default:
|
|
782
795
|
return t.quarter(n, {
|
|
@@ -792,18 +805,22 @@ const B = {
|
|
|
792
805
|
case "M":
|
|
793
806
|
case "MM":
|
|
794
807
|
return B.M(e, a);
|
|
808
|
+
// 1st, 2nd, ..., 12th
|
|
795
809
|
case "Mo":
|
|
796
810
|
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
811
|
+
// Jan, Feb, ..., Dec
|
|
797
812
|
case "MMM":
|
|
798
813
|
return t.month(n, {
|
|
799
814
|
width: "abbreviated",
|
|
800
815
|
context: "formatting"
|
|
801
816
|
});
|
|
817
|
+
// J, F, ..., D
|
|
802
818
|
case "MMMMM":
|
|
803
819
|
return t.month(n, {
|
|
804
820
|
width: "narrow",
|
|
805
821
|
context: "formatting"
|
|
806
822
|
});
|
|
823
|
+
// January, February, ..., December
|
|
807
824
|
case "MMMM":
|
|
808
825
|
default:
|
|
809
826
|
return t.month(n, { width: "wide", context: "formatting" });
|
|
@@ -813,22 +830,28 @@ const B = {
|
|
|
813
830
|
L: function(e, a, t) {
|
|
814
831
|
const n = e.getMonth();
|
|
815
832
|
switch (a) {
|
|
833
|
+
// 1, 2, ..., 12
|
|
816
834
|
case "L":
|
|
817
835
|
return String(n + 1);
|
|
836
|
+
// 01, 02, ..., 12
|
|
818
837
|
case "LL":
|
|
819
838
|
return w(n + 1, 2);
|
|
839
|
+
// 1st, 2nd, ..., 12th
|
|
820
840
|
case "Lo":
|
|
821
841
|
return t.ordinalNumber(n + 1, { unit: "month" });
|
|
842
|
+
// Jan, Feb, ..., Dec
|
|
822
843
|
case "LLL":
|
|
823
844
|
return t.month(n, {
|
|
824
845
|
width: "abbreviated",
|
|
825
846
|
context: "standalone"
|
|
826
847
|
});
|
|
848
|
+
// J, F, ..., D
|
|
827
849
|
case "LLLLL":
|
|
828
850
|
return t.month(n, {
|
|
829
851
|
width: "narrow",
|
|
830
852
|
context: "standalone"
|
|
831
853
|
});
|
|
854
|
+
// January, February, ..., December
|
|
832
855
|
case "LLLL":
|
|
833
856
|
default:
|
|
834
857
|
return t.month(n, { width: "wide", context: "standalone" });
|
|
@@ -857,6 +880,7 @@ const B = {
|
|
|
857
880
|
E: function(e, a, t) {
|
|
858
881
|
const n = e.getDay();
|
|
859
882
|
switch (a) {
|
|
883
|
+
// Tue
|
|
860
884
|
case "E":
|
|
861
885
|
case "EE":
|
|
862
886
|
case "EEE":
|
|
@@ -864,16 +888,19 @@ const B = {
|
|
|
864
888
|
width: "abbreviated",
|
|
865
889
|
context: "formatting"
|
|
866
890
|
});
|
|
891
|
+
// T
|
|
867
892
|
case "EEEEE":
|
|
868
893
|
return t.day(n, {
|
|
869
894
|
width: "narrow",
|
|
870
895
|
context: "formatting"
|
|
871
896
|
});
|
|
897
|
+
// Tu
|
|
872
898
|
case "EEEEEE":
|
|
873
899
|
return t.day(n, {
|
|
874
900
|
width: "short",
|
|
875
901
|
context: "formatting"
|
|
876
902
|
});
|
|
903
|
+
// Tuesday
|
|
877
904
|
case "EEEE":
|
|
878
905
|
default:
|
|
879
906
|
return t.day(n, {
|
|
@@ -886,10 +913,13 @@ const B = {
|
|
|
886
913
|
e: function(e, a, t, n) {
|
|
887
914
|
const r = e.getDay(), s = (r - n.weekStartsOn + 8) % 7 || 7;
|
|
888
915
|
switch (a) {
|
|
916
|
+
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
889
917
|
case "e":
|
|
890
918
|
return String(s);
|
|
919
|
+
// Padded numerical value
|
|
891
920
|
case "ee":
|
|
892
921
|
return w(s, 2);
|
|
922
|
+
// 1st, 2nd, ..., 7th
|
|
893
923
|
case "eo":
|
|
894
924
|
return t.ordinalNumber(s, { unit: "day" });
|
|
895
925
|
case "eee":
|
|
@@ -897,16 +927,19 @@ const B = {
|
|
|
897
927
|
width: "abbreviated",
|
|
898
928
|
context: "formatting"
|
|
899
929
|
});
|
|
930
|
+
// T
|
|
900
931
|
case "eeeee":
|
|
901
932
|
return t.day(r, {
|
|
902
933
|
width: "narrow",
|
|
903
934
|
context: "formatting"
|
|
904
935
|
});
|
|
936
|
+
// Tu
|
|
905
937
|
case "eeeeee":
|
|
906
938
|
return t.day(r, {
|
|
907
939
|
width: "short",
|
|
908
940
|
context: "formatting"
|
|
909
941
|
});
|
|
942
|
+
// Tuesday
|
|
910
943
|
case "eeee":
|
|
911
944
|
default:
|
|
912
945
|
return t.day(r, {
|
|
@@ -919,10 +952,13 @@ const B = {
|
|
|
919
952
|
c: function(e, a, t, n) {
|
|
920
953
|
const r = e.getDay(), s = (r - n.weekStartsOn + 8) % 7 || 7;
|
|
921
954
|
switch (a) {
|
|
955
|
+
// Numerical value (same as in `e`)
|
|
922
956
|
case "c":
|
|
923
957
|
return String(s);
|
|
958
|
+
// Padded numerical value
|
|
924
959
|
case "cc":
|
|
925
960
|
return w(s, a.length);
|
|
961
|
+
// 1st, 2nd, ..., 7th
|
|
926
962
|
case "co":
|
|
927
963
|
return t.ordinalNumber(s, { unit: "day" });
|
|
928
964
|
case "ccc":
|
|
@@ -930,16 +966,19 @@ const B = {
|
|
|
930
966
|
width: "abbreviated",
|
|
931
967
|
context: "standalone"
|
|
932
968
|
});
|
|
969
|
+
// T
|
|
933
970
|
case "ccccc":
|
|
934
971
|
return t.day(r, {
|
|
935
972
|
width: "narrow",
|
|
936
973
|
context: "standalone"
|
|
937
974
|
});
|
|
975
|
+
// Tu
|
|
938
976
|
case "cccccc":
|
|
939
977
|
return t.day(r, {
|
|
940
978
|
width: "short",
|
|
941
979
|
context: "standalone"
|
|
942
980
|
});
|
|
981
|
+
// Tuesday
|
|
943
982
|
case "cccc":
|
|
944
983
|
default:
|
|
945
984
|
return t.day(r, {
|
|
@@ -952,27 +991,34 @@ const B = {
|
|
|
952
991
|
i: function(e, a, t) {
|
|
953
992
|
const n = e.getDay(), r = n === 0 ? 7 : n;
|
|
954
993
|
switch (a) {
|
|
994
|
+
// 2
|
|
955
995
|
case "i":
|
|
956
996
|
return String(r);
|
|
997
|
+
// 02
|
|
957
998
|
case "ii":
|
|
958
999
|
return w(r, a.length);
|
|
1000
|
+
// 2nd
|
|
959
1001
|
case "io":
|
|
960
1002
|
return t.ordinalNumber(r, { unit: "day" });
|
|
1003
|
+
// Tue
|
|
961
1004
|
case "iii":
|
|
962
1005
|
return t.day(n, {
|
|
963
1006
|
width: "abbreviated",
|
|
964
1007
|
context: "formatting"
|
|
965
1008
|
});
|
|
1009
|
+
// T
|
|
966
1010
|
case "iiiii":
|
|
967
1011
|
return t.day(n, {
|
|
968
1012
|
width: "narrow",
|
|
969
1013
|
context: "formatting"
|
|
970
1014
|
});
|
|
1015
|
+
// Tu
|
|
971
1016
|
case "iiiiii":
|
|
972
1017
|
return t.day(n, {
|
|
973
1018
|
width: "short",
|
|
974
1019
|
context: "formatting"
|
|
975
1020
|
});
|
|
1021
|
+
// Tuesday
|
|
976
1022
|
case "iiii":
|
|
977
1023
|
default:
|
|
978
1024
|
return t.day(n, {
|
|
@@ -1103,13 +1149,21 @@ const B = {
|
|
|
1103
1149
|
if (n === 0)
|
|
1104
1150
|
return "Z";
|
|
1105
1151
|
switch (a) {
|
|
1152
|
+
// Hours and optional minutes
|
|
1106
1153
|
case "X":
|
|
1107
1154
|
return It(n);
|
|
1155
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1156
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1157
|
+
// so this token always has the same output as `XX`
|
|
1108
1158
|
case "XXXX":
|
|
1109
1159
|
case "XX":
|
|
1110
1160
|
return V(n);
|
|
1161
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
1162
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1163
|
+
// so this token always has the same output as `XXX`
|
|
1111
1164
|
case "XXXXX":
|
|
1112
1165
|
case "XXX":
|
|
1166
|
+
// Hours and minutes with `:` delimiter
|
|
1113
1167
|
default:
|
|
1114
1168
|
return V(n, ":");
|
|
1115
1169
|
}
|
|
@@ -1118,13 +1172,21 @@ const B = {
|
|
|
1118
1172
|
x: function(e, a, t) {
|
|
1119
1173
|
const n = e.getTimezoneOffset();
|
|
1120
1174
|
switch (a) {
|
|
1175
|
+
// Hours and optional minutes
|
|
1121
1176
|
case "x":
|
|
1122
1177
|
return It(n);
|
|
1178
|
+
// Hours, minutes and optional seconds without `:` delimiter
|
|
1179
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1180
|
+
// so this token always has the same output as `xx`
|
|
1123
1181
|
case "xxxx":
|
|
1124
1182
|
case "xx":
|
|
1125
1183
|
return V(n);
|
|
1184
|
+
// Hours, minutes and optional seconds with `:` delimiter
|
|
1185
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1186
|
+
// so this token always has the same output as `xxx`
|
|
1126
1187
|
case "xxxxx":
|
|
1127
1188
|
case "xxx":
|
|
1189
|
+
// Hours and minutes with `:` delimiter
|
|
1128
1190
|
default:
|
|
1129
1191
|
return V(n, ":");
|
|
1130
1192
|
}
|
|
@@ -1133,10 +1195,12 @@ const B = {
|
|
|
1133
1195
|
O: function(e, a, t) {
|
|
1134
1196
|
const n = e.getTimezoneOffset();
|
|
1135
1197
|
switch (a) {
|
|
1198
|
+
// Short
|
|
1136
1199
|
case "O":
|
|
1137
1200
|
case "OO":
|
|
1138
1201
|
case "OOO":
|
|
1139
1202
|
return "GMT" + St(n, ":");
|
|
1203
|
+
// Long
|
|
1140
1204
|
case "OOOO":
|
|
1141
1205
|
default:
|
|
1142
1206
|
return "GMT" + V(n, ":");
|
|
@@ -1146,10 +1210,12 @@ const B = {
|
|
|
1146
1210
|
z: function(e, a, t) {
|
|
1147
1211
|
const n = e.getTimezoneOffset();
|
|
1148
1212
|
switch (a) {
|
|
1213
|
+
// Short
|
|
1149
1214
|
case "z":
|
|
1150
1215
|
case "zz":
|
|
1151
1216
|
case "zzz":
|
|
1152
1217
|
return "GMT" + St(n, ":");
|
|
1218
|
+
// Long
|
|
1153
1219
|
case "zzzz":
|
|
1154
1220
|
default:
|
|
1155
1221
|
return "GMT" + V(n, ":");
|
|
@@ -1292,7 +1358,7 @@ function Pn(e, a) {
|
|
|
1292
1358
|
return t === 0 ? 7 : t;
|
|
1293
1359
|
}
|
|
1294
1360
|
function xn(e, a) {
|
|
1295
|
-
const t =
|
|
1361
|
+
const t = kn(a) ? new a(0) : I(a, 0);
|
|
1296
1362
|
return t.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), t.setHours(
|
|
1297
1363
|
e.getHours(),
|
|
1298
1364
|
e.getMinutes(),
|
|
@@ -1300,11 +1366,11 @@ function xn(e, a) {
|
|
|
1300
1366
|
e.getMilliseconds()
|
|
1301
1367
|
), t;
|
|
1302
1368
|
}
|
|
1303
|
-
function
|
|
1369
|
+
function kn(e) {
|
|
1304
1370
|
var a;
|
|
1305
1371
|
return typeof e == "function" && ((a = e.prototype) == null ? void 0 : a.constructor) === e;
|
|
1306
1372
|
}
|
|
1307
|
-
const
|
|
1373
|
+
const On = 10;
|
|
1308
1374
|
class la {
|
|
1309
1375
|
constructor() {
|
|
1310
1376
|
f(this, "subPriority", 0);
|
|
@@ -1327,7 +1393,7 @@ class Mn extends la {
|
|
|
1327
1393
|
class Sn extends la {
|
|
1328
1394
|
constructor(t, n) {
|
|
1329
1395
|
super();
|
|
1330
|
-
f(this, "priority",
|
|
1396
|
+
f(this, "priority", On);
|
|
1331
1397
|
f(this, "subPriority", -1);
|
|
1332
1398
|
this.context = t || ((r) => I(n, r));
|
|
1333
1399
|
}
|
|
@@ -1361,12 +1427,15 @@ class In extends T {
|
|
|
1361
1427
|
}
|
|
1362
1428
|
parse(t, n, r) {
|
|
1363
1429
|
switch (n) {
|
|
1430
|
+
// AD, BC
|
|
1364
1431
|
case "G":
|
|
1365
1432
|
case "GG":
|
|
1366
1433
|
case "GGG":
|
|
1367
1434
|
return r.era(t, { width: "abbreviated" }) || r.era(t, { width: "narrow" });
|
|
1435
|
+
// A, B
|
|
1368
1436
|
case "GGGGG":
|
|
1369
1437
|
return r.era(t, { width: "narrow" });
|
|
1438
|
+
// Anno Domini, Before Christ
|
|
1370
1439
|
case "GGGG":
|
|
1371
1440
|
default:
|
|
1372
1441
|
return r.era(t, { width: "wide" }) || r.era(t, { width: "abbreviated" }) || r.era(t, { width: "narrow" });
|
|
@@ -1376,7 +1445,7 @@ class In extends T {
|
|
|
1376
1445
|
return n.era = r, t.setFullYear(r, 0, 1), t.setHours(0, 0, 0, 0), t;
|
|
1377
1446
|
}
|
|
1378
1447
|
}
|
|
1379
|
-
const
|
|
1448
|
+
const O = {
|
|
1380
1449
|
month: /^(1[0-2]|0?\d)/,
|
|
1381
1450
|
// 0 to 12
|
|
1382
1451
|
date: /^(3[0-1]|[0-2]?\d)/,
|
|
@@ -1450,18 +1519,18 @@ function z(e, a) {
|
|
|
1450
1519
|
};
|
|
1451
1520
|
}
|
|
1452
1521
|
function da(e) {
|
|
1453
|
-
return x(
|
|
1522
|
+
return x(O.anyDigitsSigned, e);
|
|
1454
1523
|
}
|
|
1455
|
-
function
|
|
1524
|
+
function k(e, a) {
|
|
1456
1525
|
switch (e) {
|
|
1457
1526
|
case 1:
|
|
1458
|
-
return x(
|
|
1527
|
+
return x(O.singleDigit, a);
|
|
1459
1528
|
case 2:
|
|
1460
|
-
return x(
|
|
1529
|
+
return x(O.twoDigits, a);
|
|
1461
1530
|
case 3:
|
|
1462
|
-
return x(
|
|
1531
|
+
return x(O.threeDigits, a);
|
|
1463
1532
|
case 4:
|
|
1464
|
-
return x(
|
|
1533
|
+
return x(O.fourDigits, a);
|
|
1465
1534
|
default:
|
|
1466
1535
|
return x(new RegExp("^\\d{1," + e + "}"), a);
|
|
1467
1536
|
}
|
|
@@ -1469,13 +1538,13 @@ function O(e, a) {
|
|
|
1469
1538
|
function me(e, a) {
|
|
1470
1539
|
switch (e) {
|
|
1471
1540
|
case 1:
|
|
1472
|
-
return x(
|
|
1541
|
+
return x(O.singleDigitSigned, a);
|
|
1473
1542
|
case 2:
|
|
1474
|
-
return x(
|
|
1543
|
+
return x(O.twoDigitsSigned, a);
|
|
1475
1544
|
case 3:
|
|
1476
|
-
return x(
|
|
1545
|
+
return x(O.threeDigitsSigned, a);
|
|
1477
1546
|
case 4:
|
|
1478
|
-
return x(
|
|
1547
|
+
return x(O.fourDigitsSigned, a);
|
|
1479
1548
|
default:
|
|
1480
1549
|
return x(new RegExp("^-?\\d{1," + e + "}"), a);
|
|
1481
1550
|
}
|
|
@@ -1524,7 +1593,7 @@ class jn extends T {
|
|
|
1524
1593
|
});
|
|
1525
1594
|
switch (n) {
|
|
1526
1595
|
case "y":
|
|
1527
|
-
return M(
|
|
1596
|
+
return M(k(4, t), s);
|
|
1528
1597
|
case "yo":
|
|
1529
1598
|
return M(
|
|
1530
1599
|
r.ordinalNumber(t, {
|
|
@@ -1533,7 +1602,7 @@ class jn extends T {
|
|
|
1533
1602
|
s
|
|
1534
1603
|
);
|
|
1535
1604
|
default:
|
|
1536
|
-
return M(
|
|
1605
|
+
return M(k(n.length, t), s);
|
|
1537
1606
|
}
|
|
1538
1607
|
}
|
|
1539
1608
|
validate(t, n) {
|
|
@@ -1579,7 +1648,7 @@ class Cn extends T {
|
|
|
1579
1648
|
});
|
|
1580
1649
|
switch (n) {
|
|
1581
1650
|
case "Y":
|
|
1582
|
-
return M(
|
|
1651
|
+
return M(k(4, t), s);
|
|
1583
1652
|
case "Yo":
|
|
1584
1653
|
return M(
|
|
1585
1654
|
r.ordinalNumber(t, {
|
|
@@ -1588,7 +1657,7 @@ class Cn extends T {
|
|
|
1588
1657
|
s
|
|
1589
1658
|
);
|
|
1590
1659
|
default:
|
|
1591
|
-
return M(
|
|
1660
|
+
return M(k(n.length, t), s);
|
|
1592
1661
|
}
|
|
1593
1662
|
}
|
|
1594
1663
|
validate(t, n) {
|
|
@@ -1677,11 +1746,14 @@ class $n extends T {
|
|
|
1677
1746
|
}
|
|
1678
1747
|
parse(t, n, r) {
|
|
1679
1748
|
switch (n) {
|
|
1749
|
+
// 1, 2, 3, 4
|
|
1680
1750
|
case "Q":
|
|
1681
1751
|
case "QQ":
|
|
1682
|
-
return
|
|
1752
|
+
return k(n.length, t);
|
|
1753
|
+
// 1st, 2nd, 3rd, 4th
|
|
1683
1754
|
case "Qo":
|
|
1684
1755
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
1756
|
+
// Q1, Q2, Q3, Q4
|
|
1685
1757
|
case "QQQ":
|
|
1686
1758
|
return r.quarter(t, {
|
|
1687
1759
|
width: "abbreviated",
|
|
@@ -1690,11 +1762,13 @@ class $n extends T {
|
|
|
1690
1762
|
width: "narrow",
|
|
1691
1763
|
context: "formatting"
|
|
1692
1764
|
});
|
|
1765
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1693
1766
|
case "QQQQQ":
|
|
1694
1767
|
return r.quarter(t, {
|
|
1695
1768
|
width: "narrow",
|
|
1696
1769
|
context: "formatting"
|
|
1697
1770
|
});
|
|
1771
|
+
// 1st quarter, 2nd quarter, ...
|
|
1698
1772
|
case "QQQQ":
|
|
1699
1773
|
default:
|
|
1700
1774
|
return r.quarter(t, {
|
|
@@ -1739,11 +1813,14 @@ class Gn extends T {
|
|
|
1739
1813
|
}
|
|
1740
1814
|
parse(t, n, r) {
|
|
1741
1815
|
switch (n) {
|
|
1816
|
+
// 1, 2, 3, 4
|
|
1742
1817
|
case "q":
|
|
1743
1818
|
case "qq":
|
|
1744
|
-
return
|
|
1819
|
+
return k(n.length, t);
|
|
1820
|
+
// 1st, 2nd, 3rd, 4th
|
|
1745
1821
|
case "qo":
|
|
1746
1822
|
return r.ordinalNumber(t, { unit: "quarter" });
|
|
1823
|
+
// Q1, Q2, Q3, Q4
|
|
1747
1824
|
case "qqq":
|
|
1748
1825
|
return r.quarter(t, {
|
|
1749
1826
|
width: "abbreviated",
|
|
@@ -1752,11 +1829,13 @@ class Gn extends T {
|
|
|
1752
1829
|
width: "narrow",
|
|
1753
1830
|
context: "standalone"
|
|
1754
1831
|
});
|
|
1832
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1755
1833
|
case "qqqqq":
|
|
1756
1834
|
return r.quarter(t, {
|
|
1757
1835
|
width: "narrow",
|
|
1758
1836
|
context: "standalone"
|
|
1759
1837
|
});
|
|
1838
|
+
// 1st quarter, 2nd quarter, ...
|
|
1760
1839
|
case "qqqq":
|
|
1761
1840
|
default:
|
|
1762
1841
|
return r.quarter(t, {
|
|
@@ -1801,13 +1880,16 @@ class Fn extends T {
|
|
|
1801
1880
|
parse(t, n, r) {
|
|
1802
1881
|
const s = (o) => o - 1;
|
|
1803
1882
|
switch (n) {
|
|
1883
|
+
// 1, 2, ..., 12
|
|
1804
1884
|
case "M":
|
|
1805
1885
|
return M(
|
|
1806
|
-
x(
|
|
1886
|
+
x(O.month, t),
|
|
1807
1887
|
s
|
|
1808
1888
|
);
|
|
1889
|
+
// 01, 02, ..., 12
|
|
1809
1890
|
case "MM":
|
|
1810
|
-
return M(
|
|
1891
|
+
return M(k(2, t), s);
|
|
1892
|
+
// 1st, 2nd, ..., 12th
|
|
1811
1893
|
case "Mo":
|
|
1812
1894
|
return M(
|
|
1813
1895
|
r.ordinalNumber(t, {
|
|
@@ -1815,16 +1897,19 @@ class Fn extends T {
|
|
|
1815
1897
|
}),
|
|
1816
1898
|
s
|
|
1817
1899
|
);
|
|
1900
|
+
// Jan, Feb, ..., Dec
|
|
1818
1901
|
case "MMM":
|
|
1819
1902
|
return r.month(t, {
|
|
1820
1903
|
width: "abbreviated",
|
|
1821
1904
|
context: "formatting"
|
|
1822
1905
|
}) || r.month(t, { width: "narrow", context: "formatting" });
|
|
1906
|
+
// J, F, ..., D
|
|
1823
1907
|
case "MMMMM":
|
|
1824
1908
|
return r.month(t, {
|
|
1825
1909
|
width: "narrow",
|
|
1826
1910
|
context: "formatting"
|
|
1827
1911
|
});
|
|
1912
|
+
// January, February, ..., December
|
|
1828
1913
|
case "MMMM":
|
|
1829
1914
|
default:
|
|
1830
1915
|
return r.month(t, { width: "wide", context: "formatting" }) || r.month(t, {
|
|
@@ -1863,13 +1948,16 @@ class zn extends T {
|
|
|
1863
1948
|
parse(t, n, r) {
|
|
1864
1949
|
const s = (o) => o - 1;
|
|
1865
1950
|
switch (n) {
|
|
1951
|
+
// 1, 2, ..., 12
|
|
1866
1952
|
case "L":
|
|
1867
1953
|
return M(
|
|
1868
|
-
x(
|
|
1954
|
+
x(O.month, t),
|
|
1869
1955
|
s
|
|
1870
1956
|
);
|
|
1957
|
+
// 01, 02, ..., 12
|
|
1871
1958
|
case "LL":
|
|
1872
|
-
return M(
|
|
1959
|
+
return M(k(2, t), s);
|
|
1960
|
+
// 1st, 2nd, ..., 12th
|
|
1873
1961
|
case "Lo":
|
|
1874
1962
|
return M(
|
|
1875
1963
|
r.ordinalNumber(t, {
|
|
@@ -1877,16 +1965,19 @@ class zn extends T {
|
|
|
1877
1965
|
}),
|
|
1878
1966
|
s
|
|
1879
1967
|
);
|
|
1968
|
+
// Jan, Feb, ..., Dec
|
|
1880
1969
|
case "LLL":
|
|
1881
1970
|
return r.month(t, {
|
|
1882
1971
|
width: "abbreviated",
|
|
1883
1972
|
context: "standalone"
|
|
1884
1973
|
}) || r.month(t, { width: "narrow", context: "standalone" });
|
|
1974
|
+
// J, F, ..., D
|
|
1885
1975
|
case "LLLLL":
|
|
1886
1976
|
return r.month(t, {
|
|
1887
1977
|
width: "narrow",
|
|
1888
1978
|
context: "standalone"
|
|
1889
1979
|
});
|
|
1980
|
+
// January, February, ..., December
|
|
1890
1981
|
case "LLLL":
|
|
1891
1982
|
default:
|
|
1892
1983
|
return r.month(t, { width: "wide", context: "standalone" }) || r.month(t, {
|
|
@@ -1929,11 +2020,11 @@ class En extends T {
|
|
|
1929
2020
|
parse(t, n, r) {
|
|
1930
2021
|
switch (n) {
|
|
1931
2022
|
case "w":
|
|
1932
|
-
return x(
|
|
2023
|
+
return x(O.week, t);
|
|
1933
2024
|
case "wo":
|
|
1934
2025
|
return r.ordinalNumber(t, { unit: "week" });
|
|
1935
2026
|
default:
|
|
1936
|
-
return
|
|
2027
|
+
return k(n.length, t);
|
|
1937
2028
|
}
|
|
1938
2029
|
}
|
|
1939
2030
|
validate(t, n) {
|
|
@@ -1971,11 +2062,11 @@ class Hn extends T {
|
|
|
1971
2062
|
parse(t, n, r) {
|
|
1972
2063
|
switch (n) {
|
|
1973
2064
|
case "I":
|
|
1974
|
-
return x(
|
|
2065
|
+
return x(O.week, t);
|
|
1975
2066
|
case "Io":
|
|
1976
2067
|
return r.ordinalNumber(t, { unit: "week" });
|
|
1977
2068
|
default:
|
|
1978
|
-
return
|
|
2069
|
+
return k(n.length, t);
|
|
1979
2070
|
}
|
|
1980
2071
|
}
|
|
1981
2072
|
validate(t, n) {
|
|
@@ -2022,11 +2113,11 @@ class qn extends T {
|
|
|
2022
2113
|
parse(t, n, r) {
|
|
2023
2114
|
switch (n) {
|
|
2024
2115
|
case "d":
|
|
2025
|
-
return x(
|
|
2116
|
+
return x(O.date, t);
|
|
2026
2117
|
case "do":
|
|
2027
2118
|
return r.ordinalNumber(t, { unit: "date" });
|
|
2028
2119
|
default:
|
|
2029
|
-
return
|
|
2120
|
+
return k(n.length, t);
|
|
2030
2121
|
}
|
|
2031
2122
|
}
|
|
2032
2123
|
validate(t, n) {
|
|
@@ -2064,11 +2155,11 @@ class Vn extends T {
|
|
|
2064
2155
|
switch (n) {
|
|
2065
2156
|
case "D":
|
|
2066
2157
|
case "DD":
|
|
2067
|
-
return x(
|
|
2158
|
+
return x(O.dayOfYear, t);
|
|
2068
2159
|
case "Do":
|
|
2069
2160
|
return r.ordinalNumber(t, { unit: "date" });
|
|
2070
2161
|
default:
|
|
2071
|
-
return
|
|
2162
|
+
return k(n.length, t);
|
|
2072
2163
|
}
|
|
2073
2164
|
}
|
|
2074
2165
|
validate(t, n) {
|
|
@@ -2092,6 +2183,7 @@ class An extends T {
|
|
|
2092
2183
|
}
|
|
2093
2184
|
parse(t, n, r) {
|
|
2094
2185
|
switch (n) {
|
|
2186
|
+
// Tue
|
|
2095
2187
|
case "E":
|
|
2096
2188
|
case "EE":
|
|
2097
2189
|
case "EEE":
|
|
@@ -2099,13 +2191,16 @@ class An extends T {
|
|
|
2099
2191
|
width: "abbreviated",
|
|
2100
2192
|
context: "formatting"
|
|
2101
2193
|
}) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
2194
|
+
// T
|
|
2102
2195
|
case "EEEEE":
|
|
2103
2196
|
return r.day(t, {
|
|
2104
2197
|
width: "narrow",
|
|
2105
2198
|
context: "formatting"
|
|
2106
2199
|
});
|
|
2200
|
+
// Tu
|
|
2107
2201
|
case "EEEEEE":
|
|
2108
2202
|
return r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
2203
|
+
// Tuesday
|
|
2109
2204
|
case "EEEE":
|
|
2110
2205
|
default:
|
|
2111
2206
|
return r.day(t, { width: "wide", context: "formatting" }) || r.day(t, {
|
|
@@ -2149,9 +2244,11 @@ class Qn extends T {
|
|
|
2149
2244
|
return (l + s.weekStartsOn + 6) % 7 + m;
|
|
2150
2245
|
};
|
|
2151
2246
|
switch (n) {
|
|
2247
|
+
// 3
|
|
2152
2248
|
case "e":
|
|
2153
2249
|
case "ee":
|
|
2154
|
-
return M(
|
|
2250
|
+
return M(k(n.length, t), o);
|
|
2251
|
+
// 3rd
|
|
2155
2252
|
case "eo":
|
|
2156
2253
|
return M(
|
|
2157
2254
|
r.ordinalNumber(t, {
|
|
@@ -2159,18 +2256,22 @@ class Qn extends T {
|
|
|
2159
2256
|
}),
|
|
2160
2257
|
o
|
|
2161
2258
|
);
|
|
2259
|
+
// Tue
|
|
2162
2260
|
case "eee":
|
|
2163
2261
|
return r.day(t, {
|
|
2164
2262
|
width: "abbreviated",
|
|
2165
2263
|
context: "formatting"
|
|
2166
2264
|
}) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
2265
|
+
// T
|
|
2167
2266
|
case "eeeee":
|
|
2168
2267
|
return r.day(t, {
|
|
2169
2268
|
width: "narrow",
|
|
2170
2269
|
context: "formatting"
|
|
2171
2270
|
});
|
|
2271
|
+
// Tu
|
|
2172
2272
|
case "eeeeee":
|
|
2173
2273
|
return r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
2274
|
+
// Tuesday
|
|
2174
2275
|
case "eeee":
|
|
2175
2276
|
default:
|
|
2176
2277
|
return r.day(t, { width: "wide", context: "formatting" }) || r.day(t, {
|
|
@@ -2214,9 +2315,11 @@ class Xn extends T {
|
|
|
2214
2315
|
return (l + s.weekStartsOn + 6) % 7 + m;
|
|
2215
2316
|
};
|
|
2216
2317
|
switch (n) {
|
|
2318
|
+
// 3
|
|
2217
2319
|
case "c":
|
|
2218
2320
|
case "cc":
|
|
2219
|
-
return M(
|
|
2321
|
+
return M(k(n.length, t), o);
|
|
2322
|
+
// 3rd
|
|
2220
2323
|
case "co":
|
|
2221
2324
|
return M(
|
|
2222
2325
|
r.ordinalNumber(t, {
|
|
@@ -2224,18 +2327,22 @@ class Xn extends T {
|
|
|
2224
2327
|
}),
|
|
2225
2328
|
o
|
|
2226
2329
|
);
|
|
2330
|
+
// Tue
|
|
2227
2331
|
case "ccc":
|
|
2228
2332
|
return r.day(t, {
|
|
2229
2333
|
width: "abbreviated",
|
|
2230
2334
|
context: "standalone"
|
|
2231
2335
|
}) || r.day(t, { width: "short", context: "standalone" }) || r.day(t, { width: "narrow", context: "standalone" });
|
|
2336
|
+
// T
|
|
2232
2337
|
case "ccccc":
|
|
2233
2338
|
return r.day(t, {
|
|
2234
2339
|
width: "narrow",
|
|
2235
2340
|
context: "standalone"
|
|
2236
2341
|
});
|
|
2342
|
+
// Tu
|
|
2237
2343
|
case "cccccc":
|
|
2238
2344
|
return r.day(t, { width: "short", context: "standalone" }) || r.day(t, { width: "narrow", context: "standalone" });
|
|
2345
|
+
// Tuesday
|
|
2239
2346
|
case "cccc":
|
|
2240
2347
|
default:
|
|
2241
2348
|
return r.day(t, { width: "wide", context: "standalone" }) || r.day(t, {
|
|
@@ -2280,11 +2387,14 @@ class Jn extends T {
|
|
|
2280
2387
|
parse(t, n, r) {
|
|
2281
2388
|
const s = (o) => o === 0 ? 7 : o;
|
|
2282
2389
|
switch (n) {
|
|
2390
|
+
// 2
|
|
2283
2391
|
case "i":
|
|
2284
2392
|
case "ii":
|
|
2285
|
-
return
|
|
2393
|
+
return k(n.length, t);
|
|
2394
|
+
// 2nd
|
|
2286
2395
|
case "io":
|
|
2287
2396
|
return r.ordinalNumber(t, { unit: "day" });
|
|
2397
|
+
// Tue
|
|
2288
2398
|
case "iii":
|
|
2289
2399
|
return M(
|
|
2290
2400
|
r.day(t, {
|
|
@@ -2299,6 +2409,7 @@ class Jn extends T {
|
|
|
2299
2409
|
}),
|
|
2300
2410
|
s
|
|
2301
2411
|
);
|
|
2412
|
+
// T
|
|
2302
2413
|
case "iiiii":
|
|
2303
2414
|
return M(
|
|
2304
2415
|
r.day(t, {
|
|
@@ -2307,6 +2418,7 @@ class Jn extends T {
|
|
|
2307
2418
|
}),
|
|
2308
2419
|
s
|
|
2309
2420
|
);
|
|
2421
|
+
// Tu
|
|
2310
2422
|
case "iiiiii":
|
|
2311
2423
|
return M(
|
|
2312
2424
|
r.day(t, {
|
|
@@ -2318,6 +2430,7 @@ class Jn extends T {
|
|
|
2318
2430
|
}),
|
|
2319
2431
|
s
|
|
2320
2432
|
);
|
|
2433
|
+
// Tuesday
|
|
2321
2434
|
case "iiii":
|
|
2322
2435
|
default:
|
|
2323
2436
|
return M(
|
|
@@ -2477,11 +2590,11 @@ class ar extends T {
|
|
|
2477
2590
|
parse(t, n, r) {
|
|
2478
2591
|
switch (n) {
|
|
2479
2592
|
case "h":
|
|
2480
|
-
return x(
|
|
2593
|
+
return x(O.hour12h, t);
|
|
2481
2594
|
case "ho":
|
|
2482
2595
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2483
2596
|
default:
|
|
2484
|
-
return
|
|
2597
|
+
return k(n.length, t);
|
|
2485
2598
|
}
|
|
2486
2599
|
}
|
|
2487
2600
|
validate(t, n) {
|
|
@@ -2501,11 +2614,11 @@ class nr extends T {
|
|
|
2501
2614
|
parse(t, n, r) {
|
|
2502
2615
|
switch (n) {
|
|
2503
2616
|
case "H":
|
|
2504
|
-
return x(
|
|
2617
|
+
return x(O.hour23h, t);
|
|
2505
2618
|
case "Ho":
|
|
2506
2619
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2507
2620
|
default:
|
|
2508
|
-
return
|
|
2621
|
+
return k(n.length, t);
|
|
2509
2622
|
}
|
|
2510
2623
|
}
|
|
2511
2624
|
validate(t, n) {
|
|
@@ -2524,11 +2637,11 @@ class rr extends T {
|
|
|
2524
2637
|
parse(t, n, r) {
|
|
2525
2638
|
switch (n) {
|
|
2526
2639
|
case "K":
|
|
2527
|
-
return x(
|
|
2640
|
+
return x(O.hour11h, t);
|
|
2528
2641
|
case "Ko":
|
|
2529
2642
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2530
2643
|
default:
|
|
2531
|
-
return
|
|
2644
|
+
return k(n.length, t);
|
|
2532
2645
|
}
|
|
2533
2646
|
}
|
|
2534
2647
|
validate(t, n) {
|
|
@@ -2547,11 +2660,11 @@ class sr extends T {
|
|
|
2547
2660
|
parse(t, n, r) {
|
|
2548
2661
|
switch (n) {
|
|
2549
2662
|
case "k":
|
|
2550
|
-
return x(
|
|
2663
|
+
return x(O.hour24h, t);
|
|
2551
2664
|
case "ko":
|
|
2552
2665
|
return r.ordinalNumber(t, { unit: "hour" });
|
|
2553
2666
|
default:
|
|
2554
|
-
return
|
|
2667
|
+
return k(n.length, t);
|
|
2555
2668
|
}
|
|
2556
2669
|
}
|
|
2557
2670
|
validate(t, n) {
|
|
@@ -2571,11 +2684,11 @@ class or extends T {
|
|
|
2571
2684
|
parse(t, n, r) {
|
|
2572
2685
|
switch (n) {
|
|
2573
2686
|
case "m":
|
|
2574
|
-
return x(
|
|
2687
|
+
return x(O.minute, t);
|
|
2575
2688
|
case "mo":
|
|
2576
2689
|
return r.ordinalNumber(t, { unit: "minute" });
|
|
2577
2690
|
default:
|
|
2578
|
-
return
|
|
2691
|
+
return k(n.length, t);
|
|
2579
2692
|
}
|
|
2580
2693
|
}
|
|
2581
2694
|
validate(t, n) {
|
|
@@ -2594,11 +2707,11 @@ class ir extends T {
|
|
|
2594
2707
|
parse(t, n, r) {
|
|
2595
2708
|
switch (n) {
|
|
2596
2709
|
case "s":
|
|
2597
|
-
return x(
|
|
2710
|
+
return x(O.second, t);
|
|
2598
2711
|
case "so":
|
|
2599
2712
|
return r.ordinalNumber(t, { unit: "second" });
|
|
2600
2713
|
default:
|
|
2601
|
-
return
|
|
2714
|
+
return k(n.length, t);
|
|
2602
2715
|
}
|
|
2603
2716
|
}
|
|
2604
2717
|
validate(t, n) {
|
|
@@ -2616,7 +2729,7 @@ class ur extends T {
|
|
|
2616
2729
|
}
|
|
2617
2730
|
parse(t, n) {
|
|
2618
2731
|
const r = (s) => Math.trunc(s * Math.pow(10, -n.length + 3));
|
|
2619
|
-
return M(
|
|
2732
|
+
return M(k(n.length, t), r);
|
|
2620
2733
|
}
|
|
2621
2734
|
set(t, n, r) {
|
|
2622
2735
|
return t.setMilliseconds(r), t;
|
|
@@ -2848,7 +2961,7 @@ function Dr(e, a, t) {
|
|
|
2848
2961
|
}
|
|
2849
2962
|
function Pr(e, a) {
|
|
2850
2963
|
const t = Sr(a);
|
|
2851
|
-
return "formatToParts" in t ?
|
|
2964
|
+
return "formatToParts" in t ? kr(t, e) : Or(t, e);
|
|
2852
2965
|
}
|
|
2853
2966
|
const xr = {
|
|
2854
2967
|
year: 0,
|
|
@@ -2858,7 +2971,7 @@ const xr = {
|
|
|
2858
2971
|
minute: 4,
|
|
2859
2972
|
second: 5
|
|
2860
2973
|
};
|
|
2861
|
-
function
|
|
2974
|
+
function kr(e, a) {
|
|
2862
2975
|
try {
|
|
2863
2976
|
const t = e.formatToParts(a), n = [];
|
|
2864
2977
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -2872,7 +2985,7 @@ function Or(e, a) {
|
|
|
2872
2985
|
throw t;
|
|
2873
2986
|
}
|
|
2874
2987
|
}
|
|
2875
|
-
function
|
|
2988
|
+
function Or(e, a) {
|
|
2876
2989
|
const t = e.format(a), n = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);
|
|
2877
2990
|
return [
|
|
2878
2991
|
parseInt(n[3], 10),
|
|
@@ -2919,7 +3032,6 @@ function We(e, a, t, n, r, s, o) {
|
|
|
2919
3032
|
return l.setUTCFullYear(e, a, t), l.setUTCHours(n, r, s, o), l;
|
|
2920
3033
|
}
|
|
2921
3034
|
const Lt = 36e5, Ir = 6e4, xe = {
|
|
2922
|
-
timezone: /([Z+-].*)$/,
|
|
2923
3035
|
timezoneZ: /^(Z)$/,
|
|
2924
3036
|
timezoneHH: /^([+-]\d{2})$/,
|
|
2925
3037
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -2979,44 +3091,62 @@ function Nr(e) {
|
|
|
2979
3091
|
const Lr = 60 * 1e3, $r = {
|
|
2980
3092
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2981
3093
|
X: function(e, a, t) {
|
|
2982
|
-
const n =
|
|
3094
|
+
const n = ke(t.timeZone, e);
|
|
2983
3095
|
if (n === 0)
|
|
2984
3096
|
return "Z";
|
|
2985
3097
|
switch (a) {
|
|
3098
|
+
// Hours and optional minutes
|
|
2986
3099
|
case "X":
|
|
2987
3100
|
return Ft(n);
|
|
3101
|
+
// Hours, minutes and optional seconds without `:` delimeter
|
|
3102
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3103
|
+
// so this token always has the same output as `XX`
|
|
2988
3104
|
case "XXXX":
|
|
2989
3105
|
case "XX":
|
|
2990
3106
|
return Z(n);
|
|
3107
|
+
// Hours, minutes and optional seconds with `:` delimeter
|
|
3108
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3109
|
+
// so this token always has the same output as `XXX`
|
|
2991
3110
|
case "XXXXX":
|
|
2992
3111
|
case "XXX":
|
|
3112
|
+
// Hours and minutes with `:` delimeter
|
|
2993
3113
|
default:
|
|
2994
3114
|
return Z(n, ":");
|
|
2995
3115
|
}
|
|
2996
3116
|
},
|
|
2997
3117
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2998
3118
|
x: function(e, a, t) {
|
|
2999
|
-
const n =
|
|
3119
|
+
const n = ke(t.timeZone, e);
|
|
3000
3120
|
switch (a) {
|
|
3121
|
+
// Hours and optional minutes
|
|
3001
3122
|
case "x":
|
|
3002
3123
|
return Ft(n);
|
|
3124
|
+
// Hours, minutes and optional seconds without `:` delimeter
|
|
3125
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3126
|
+
// so this token always has the same output as `xx`
|
|
3003
3127
|
case "xxxx":
|
|
3004
3128
|
case "xx":
|
|
3005
3129
|
return Z(n);
|
|
3130
|
+
// Hours, minutes and optional seconds with `:` delimeter
|
|
3131
|
+
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
3132
|
+
// so this token always has the same output as `xxx`
|
|
3006
3133
|
case "xxxxx":
|
|
3007
3134
|
case "xxx":
|
|
3135
|
+
// Hours and minutes with `:` delimeter
|
|
3008
3136
|
default:
|
|
3009
3137
|
return Z(n, ":");
|
|
3010
3138
|
}
|
|
3011
3139
|
},
|
|
3012
3140
|
// Timezone (GMT)
|
|
3013
3141
|
O: function(e, a, t) {
|
|
3014
|
-
const n =
|
|
3142
|
+
const n = ke(t.timeZone, e);
|
|
3015
3143
|
switch (a) {
|
|
3144
|
+
// Short
|
|
3016
3145
|
case "O":
|
|
3017
3146
|
case "OO":
|
|
3018
3147
|
case "OOO":
|
|
3019
3148
|
return "GMT" + Gr(n, ":");
|
|
3149
|
+
// Long
|
|
3020
3150
|
case "OOOO":
|
|
3021
3151
|
default:
|
|
3022
3152
|
return "GMT" + Z(n, ":");
|
|
@@ -3025,17 +3155,19 @@ const Lr = 60 * 1e3, $r = {
|
|
|
3025
3155
|
// Timezone (specific non-location)
|
|
3026
3156
|
z: function(e, a, t) {
|
|
3027
3157
|
switch (a) {
|
|
3158
|
+
// Short
|
|
3028
3159
|
case "z":
|
|
3029
3160
|
case "zz":
|
|
3030
3161
|
case "zzz":
|
|
3031
3162
|
return Ct("short", e, t);
|
|
3163
|
+
// Long
|
|
3032
3164
|
case "zzzz":
|
|
3033
3165
|
default:
|
|
3034
3166
|
return Ct("long", e, t);
|
|
3035
3167
|
}
|
|
3036
3168
|
}
|
|
3037
3169
|
};
|
|
3038
|
-
function
|
|
3170
|
+
function ke(e, a) {
|
|
3039
3171
|
const t = e ? he(e, a, !0) / Lr : (a == null ? void 0 : a.getTimezoneOffset()) ?? 0;
|
|
3040
3172
|
if (Number.isNaN(t))
|
|
3041
3173
|
throw new RangeError("Invalid time zone specified: " + e);
|
|
@@ -3063,10 +3195,9 @@ function zt(e) {
|
|
|
3063
3195
|
const a = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
3064
3196
|
return a.setUTCFullYear(e.getFullYear()), +e - +a;
|
|
3065
3197
|
}
|
|
3066
|
-
const fa = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
|
|
3198
|
+
const fa = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Oe = 36e5, Wt = 6e4, Fr = 2, N = {
|
|
3067
3199
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
3068
3200
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
3069
|
-
plainTime: /:/,
|
|
3070
3201
|
// year tokens
|
|
3071
3202
|
YY: /^(\d{2})$/,
|
|
3072
3203
|
YYY: [
|
|
@@ -3192,13 +3323,13 @@ function Er(e, a) {
|
|
|
3192
3323
|
function Yr(e) {
|
|
3193
3324
|
let a, t, n = N.HH.exec(e);
|
|
3194
3325
|
if (n)
|
|
3195
|
-
return a = parseFloat(n[1].replace(",", ".")), Me(a) ? a % 24 *
|
|
3326
|
+
return a = parseFloat(n[1].replace(",", ".")), Me(a) ? a % 24 * Oe : NaN;
|
|
3196
3327
|
if (n = N.HHMM.exec(e), n)
|
|
3197
|
-
return a = parseInt(n[1], 10), t = parseFloat(n[2].replace(",", ".")), Me(a, t) ? a % 24 *
|
|
3328
|
+
return a = parseInt(n[1], 10), t = parseFloat(n[2].replace(",", ".")), Me(a, t) ? a % 24 * Oe + t * Wt : NaN;
|
|
3198
3329
|
if (n = N.HHMMSS.exec(e), n) {
|
|
3199
3330
|
a = parseInt(n[1], 10), t = parseInt(n[2], 10);
|
|
3200
3331
|
const r = parseFloat(n[3].replace(",", "."));
|
|
3201
|
-
return Me(a, t, r) ? a % 24 *
|
|
3332
|
+
return Me(a, t, r) ? a % 24 * Oe + t * Wt + r * 1e3 : NaN;
|
|
3202
3333
|
}
|
|
3203
3334
|
return null;
|
|
3204
3335
|
}
|
|
@@ -4020,7 +4151,9 @@ const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4020
4151
|
website: ((i = e.contact_us_setting) == null ? void 0 : i.website) ?? "",
|
|
4021
4152
|
youtube: ((c = e.contact_us_setting) == null ? void 0 : c.youtube) ?? ""
|
|
4022
4153
|
},
|
|
4023
|
-
facebookPixelId: e.facebookpixelid ?? ""
|
|
4154
|
+
facebookPixelId: e.facebookpixelid ?? "",
|
|
4155
|
+
facebookPixelIdArr: e.facebook_pixel_id_arr ?? [],
|
|
4156
|
+
googleAnalyticArr: e.google_analytic_arr ?? []
|
|
4024
4157
|
};
|
|
4025
4158
|
}, xs = (e) => {
|
|
4026
4159
|
var a, t, n, r, s, o;
|
|
@@ -4047,7 +4180,7 @@ const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4047
4180
|
content: l.content
|
|
4048
4181
|
}))) ?? []
|
|
4049
4182
|
};
|
|
4050
|
-
},
|
|
4183
|
+
}, ks = (e) => {
|
|
4051
4184
|
var a;
|
|
4052
4185
|
return ((a = e.data) == null ? void 0 : a.filter((t) => t.status == "1").map((t) => ({
|
|
4053
4186
|
code: t.area_code,
|
|
@@ -4056,7 +4189,7 @@ const Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4056
4189
|
minLength: t.minlength,
|
|
4057
4190
|
maxLength: t.maxlength
|
|
4058
4191
|
}))) ?? [];
|
|
4059
|
-
},
|
|
4192
|
+
}, Os = (e) => e, Ms = (e) => {
|
|
4060
4193
|
let a = null;
|
|
4061
4194
|
return e ? e.status != 1 ? a = 0 : a = e.mainwallet : a = 0, {
|
|
4062
4195
|
amount: a
|
|
@@ -4677,7 +4810,7 @@ const $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4677
4810
|
message: e.status == 1 ? e.message ?? "" : e.errormessage ?? "",
|
|
4678
4811
|
dayStreak: ((a = e.data) == null ? void 0 : a.continuousDay) ?? 0
|
|
4679
4812
|
};
|
|
4680
|
-
},
|
|
4813
|
+
}, ko = (e) => {
|
|
4681
4814
|
var a;
|
|
4682
4815
|
return {
|
|
4683
4816
|
status: e.status == 1,
|
|
@@ -4695,7 +4828,7 @@ const $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4695
4828
|
};
|
|
4696
4829
|
})) ?? []
|
|
4697
4830
|
};
|
|
4698
|
-
},
|
|
4831
|
+
}, Oo = (e) => ({
|
|
4699
4832
|
status: e.status == 1,
|
|
4700
4833
|
message: e.msg ?? ""
|
|
4701
4834
|
}), Mo = (e) => ({
|
|
@@ -5133,7 +5266,7 @@ var A = /* @__PURE__ */ ((e) => (e.inProgress = "inProgress", e.collectable = "c
|
|
|
5133
5266
|
const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5134
5267
|
__proto__: null,
|
|
5135
5268
|
AccumulateDepositStatus: A
|
|
5136
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5269
|
+
}, Symbol.toStringTag, { value: "Module" })), ki = (e) => {
|
|
5137
5270
|
if (e.status == 0)
|
|
5138
5271
|
return {
|
|
5139
5272
|
status: !1,
|
|
@@ -5166,7 +5299,7 @@ const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5166
5299
|
message: e.msg ?? "",
|
|
5167
5300
|
data: a
|
|
5168
5301
|
};
|
|
5169
|
-
},
|
|
5302
|
+
}, Oi = (e) => ({
|
|
5170
5303
|
status: e.status == 1,
|
|
5171
5304
|
message: e.msg ?? ""
|
|
5172
5305
|
}), Mi = (e) => {
|
|
@@ -5501,7 +5634,7 @@ const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5501
5634
|
promoAmount: e.data.promo_amount ?? "0"
|
|
5502
5635
|
}
|
|
5503
5636
|
};
|
|
5504
|
-
var ue = /* @__PURE__ */ ((e) => (e.vipcalculation = "vipcalculation", e.livechat = "livechat", e.extralivechat = "extralivechat", e.mobilevalidate = "mobilevalidate", e.withdrawtac = "withdrawtac", e.imageDomain = "imagedomain", e.withdrawalCode = "withdrawalcode", e.withdrawAlipay = "withdrawalipay", e.crypto = "crypto", e.loginCaptcha = "logincaptcha", e.registerCaptcha = "registercaptcha", e.telegramAuthDomain = "telegramauthdomain", e.telegramBotId = "telegrambotid", e.registerwa = "registerwa", e.forgetUser = "forgetuser", e.contactUsSetting = "contact_us_setting", e.facebookPixelId = "facebookpixelid", e))(ue || {});
|
|
5637
|
+
var ue = /* @__PURE__ */ ((e) => (e.vipcalculation = "vipcalculation", e.livechat = "livechat", e.extralivechat = "extralivechat", e.mobilevalidate = "mobilevalidate", e.withdrawtac = "withdrawtac", e.imageDomain = "imagedomain", e.withdrawalCode = "withdrawalcode", e.withdrawAlipay = "withdrawalipay", e.crypto = "crypto", e.loginCaptcha = "logincaptcha", e.registerCaptcha = "registercaptcha", e.telegramAuthDomain = "telegramauthdomain", e.telegramBotId = "telegrambotid", e.registerwa = "registerwa", e.forgetUser = "forgetuser", e.contactUsSetting = "contact_us_setting", e.facebookPixelId = "facebookpixelid", e.facebookPixelIdArr = "facebook_pixel_id_arr", e.googleAnalyticArr = "google_analytic_arr", e))(ue || {});
|
|
5505
5638
|
const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5506
5639
|
__proto__: null,
|
|
5507
5640
|
SettingCategory: ue
|
|
@@ -5888,17 +6021,20 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5888
6021
|
}, gu = (e) => {
|
|
5889
6022
|
if (u.fishGameList in e && (e != null && e.fishGameList)) {
|
|
5890
6023
|
const a = e.fishGameList;
|
|
5891
|
-
if (u.getPlatformTurnoverRate in e && (e != null && e.getPlatformTurnoverRate)) {
|
|
5892
|
-
const t = e.getPlatformTurnoverRate
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
(s) => s.id === n.platformId
|
|
6024
|
+
if (console.log("=>", a), u.getPlatformTurnoverRate in e && (e != null && e.getPlatformTurnoverRate)) {
|
|
6025
|
+
const t = e.getPlatformTurnoverRate, n = a.data.map((r) => {
|
|
6026
|
+
const s = t.find(
|
|
6027
|
+
(o) => o.id === r.platformId
|
|
5896
6028
|
);
|
|
5897
6029
|
return {
|
|
5898
|
-
...
|
|
5899
|
-
rate: (
|
|
6030
|
+
...r,
|
|
6031
|
+
rate: (s == null ? void 0 : s.percentage) ?? "0.00"
|
|
5900
6032
|
};
|
|
5901
|
-
})
|
|
6033
|
+
});
|
|
6034
|
+
e.fishGameList = {
|
|
6035
|
+
...a,
|
|
6036
|
+
data: n
|
|
6037
|
+
}, delete e.getPlatformTurnoverRate;
|
|
5902
6038
|
}
|
|
5903
6039
|
}
|
|
5904
6040
|
return e;
|
|
@@ -6074,12 +6210,12 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6074
6210
|
o.result[i] = Ps(c);
|
|
6075
6211
|
break;
|
|
6076
6212
|
case u.getCountryMobile:
|
|
6077
|
-
o.result[i] =
|
|
6213
|
+
o.result[i] = ks(
|
|
6078
6214
|
c
|
|
6079
6215
|
);
|
|
6080
6216
|
break;
|
|
6081
6217
|
case u.getPlatformTurnoverRate:
|
|
6082
|
-
o.result[i] =
|
|
6218
|
+
o.result[i] = Os(
|
|
6083
6219
|
c
|
|
6084
6220
|
);
|
|
6085
6221
|
break;
|
|
@@ -6290,10 +6426,10 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6290
6426
|
o.result[i] = xo(c);
|
|
6291
6427
|
break;
|
|
6292
6428
|
case u.getCountry:
|
|
6293
|
-
o.result[i] =
|
|
6429
|
+
o.result[i] = ko(c);
|
|
6294
6430
|
break;
|
|
6295
6431
|
case u.submitGiftCode:
|
|
6296
|
-
o.result[i] =
|
|
6432
|
+
o.result[i] = Oo(c);
|
|
6297
6433
|
break;
|
|
6298
6434
|
case u.playGame:
|
|
6299
6435
|
o.result[i] = Mo(c);
|
|
@@ -6532,12 +6668,12 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6532
6668
|
);
|
|
6533
6669
|
break;
|
|
6534
6670
|
case u.getAccumulateDepositData:
|
|
6535
|
-
o.result[i] =
|
|
6671
|
+
o.result[i] = ki(
|
|
6536
6672
|
c
|
|
6537
6673
|
);
|
|
6538
6674
|
break;
|
|
6539
6675
|
case u.getAccumulateDepositClaim:
|
|
6540
|
-
o.result[i] =
|
|
6676
|
+
o.result[i] = Oi(
|
|
6541
6677
|
c
|
|
6542
6678
|
);
|
|
6543
6679
|
break;
|
|
@@ -6762,7 +6898,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6762
6898
|
accountId: 0
|
|
6763
6899
|
}
|
|
6764
6900
|
}
|
|
6765
|
-
},
|
|
6901
|
+
}, ku = async () => {
|
|
6766
6902
|
let e = {
|
|
6767
6903
|
status: 200,
|
|
6768
6904
|
message: "",
|
|
@@ -6789,13 +6925,13 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6789
6925
|
return e;
|
|
6790
6926
|
}, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6791
6927
|
__proto__: null,
|
|
6792
|
-
call:
|
|
6928
|
+
call: ku
|
|
6793
6929
|
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
6794
6930
|
data: {
|
|
6795
6931
|
status: !1,
|
|
6796
6932
|
message: ""
|
|
6797
6933
|
}
|
|
6798
|
-
},
|
|
6934
|
+
}, Ou = async (e, a) => {
|
|
6799
6935
|
let t = {
|
|
6800
6936
|
status: 200,
|
|
6801
6937
|
message: "",
|
|
@@ -6822,7 +6958,7 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6822
6958
|
return t;
|
|
6823
6959
|
}, Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6824
6960
|
__proto__: null,
|
|
6825
|
-
call:
|
|
6961
|
+
call: Ou
|
|
6826
6962
|
}, Symbol.toStringTag, { value: "Module" })), Mu = async (e, a, t, n, r) => {
|
|
6827
6963
|
let s = {
|
|
6828
6964
|
status: 200,
|
|
@@ -6959,10 +7095,10 @@ const Hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6959
7095
|
__proto__: null
|
|
6960
7096
|
}, Symbol.toStringTag, { value: "Module" })), xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6961
7097
|
__proto__: null
|
|
6962
|
-
}, Symbol.toStringTag, { value: "Module" })), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6963
|
-
__proto__: null
|
|
6964
7098
|
}, Symbol.toStringTag, { value: "Module" })), kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6965
7099
|
__proto__: null
|
|
7100
|
+
}, Symbol.toStringTag, { value: "Module" })), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7101
|
+
__proto__: null
|
|
6966
7102
|
}, Symbol.toStringTag, { value: "Module" })), Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6967
7103
|
__proto__: null
|
|
6968
7104
|
}, Symbol.toStringTag, { value: "Module" })), Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7070,10 +7206,10 @@ const Ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7070
7206
|
__proto__: null
|
|
7071
7207
|
}, Symbol.toStringTag, { value: "Module" })), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7072
7208
|
__proto__: null
|
|
7073
|
-
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7074
|
-
__proto__: null
|
|
7075
7209
|
}, Symbol.toStringTag, { value: "Module" })), kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7076
7210
|
__proto__: null
|
|
7211
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7212
|
+
__proto__: null
|
|
7077
7213
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7078
7214
|
__proto__: null
|
|
7079
7215
|
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -7172,7 +7308,7 @@ export {
|
|
|
7172
7308
|
xl as changeWithdrawalCodeType,
|
|
7173
7309
|
ld as checkGoldEggTokenType,
|
|
7174
7310
|
dd as checkGoldEggValidateType,
|
|
7175
|
-
|
|
7311
|
+
kl as checkRedPacketTokenType,
|
|
7176
7312
|
Uc as checkRedPacketValidateType,
|
|
7177
7313
|
al as checkTransferCreditType,
|
|
7178
7314
|
Gl as claimIncentiveRebate,
|
|
@@ -7192,7 +7328,7 @@ export {
|
|
|
7192
7328
|
Jc as getCountryType,
|
|
7193
7329
|
Zl as getCryptoAddressType,
|
|
7194
7330
|
Xl as getCryptoListType,
|
|
7195
|
-
|
|
7331
|
+
kc as getDepositPromotionType,
|
|
7196
7332
|
fc as getEventListType,
|
|
7197
7333
|
pc as getEventTokenType,
|
|
7198
7334
|
yc as getExtraGameType,
|
|
@@ -7201,7 +7337,7 @@ export {
|
|
|
7201
7337
|
Ec as getImageType,
|
|
7202
7338
|
Fl as getIncentiveData,
|
|
7203
7339
|
zl as getIncentiveRebate,
|
|
7204
|
-
|
|
7340
|
+
Oc as getInviteRewardClaimType,
|
|
7205
7341
|
wc as getInviteRewardDataType,
|
|
7206
7342
|
Rc as getInviteRewardReportType,
|
|
7207
7343
|
Ic as getInviteRewardSettingType,
|
|
@@ -7282,7 +7418,7 @@ export {
|
|
|
7282
7418
|
wl as submitTwoFactorAuthenticateType,
|
|
7283
7419
|
zc as submitUpdateMobileTacCode,
|
|
7284
7420
|
tl as submitValidateType,
|
|
7285
|
-
|
|
7421
|
+
Ol as submitWithdrawalAlipayType,
|
|
7286
7422
|
ll as submitWithdrawalCodeType,
|
|
7287
7423
|
Uu as telegramLoginApi,
|
|
7288
7424
|
$u as transactionReportType,
|