@everymatrix/player-account-controller-nd 1.76.11 → 1.76.13

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.
Files changed (115) hide show
  1. package/components/{GeneralLogout-BKUfd8BJ.js → GeneralLogout-dSNkr9qy.js} +13 -13
  2. package/components/{GeneralLogout-oSYhP-Iy.js → GeneralLogout-s6i5nP1v.js} +22 -22
  3. package/components/{PlayerAccountBettingHistory-BlbdV8eE.js → PlayerAccountBettingHistory-BMTnjDLI.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-BgDQMawM.js → PlayerAccountBettingHistory-Celbge9I.js} +9 -9
  5. package/components/{PlayerAccountBiometrics-wy6pz2CT.js → PlayerAccountBiometrics-010GfCpn.js} +9 -9
  6. package/components/{PlayerAccountBiometrics-DG8PwDTf.js → PlayerAccountBiometrics-DL8HjVPq.js} +1 -1
  7. package/components/{PlayerAccountClosureNd-Cp7kk_QC.js → PlayerAccountClosureNd-BpSVjzeC.js} +10 -10
  8. package/components/{PlayerAccountClosureNd-BMxbB-XD.js → PlayerAccountClosureNd-CuTXtaL_.js} +1 -1
  9. package/components/PlayerAccountControllerNd-BWmlVOZ9.cjs +1 -0
  10. package/components/PlayerAccountControllerNd-COvjGhtz.js +7696 -0
  11. package/components/PlayerAccountControllerNd-CyDnIT5U.js +7679 -0
  12. package/components/{PlayerAccountGamingLimits-DxJATH5L.js → PlayerAccountGamingLimits-B956aETJ.js} +2 -2
  13. package/components/{PlayerAccountGamingLimits-BgxS4Frr.js → PlayerAccountGamingLimits-h4KzQKm5.js} +11 -11
  14. package/components/{PlayerAccountGamingLimitsConfirmationModal-CvyHjYBX.js → PlayerAccountGamingLimitsConfirmationModal-DWEisliv.js} +16 -16
  15. package/components/{PlayerAccountGamingLimitsConfirmationModal-CFwNex1C.js → PlayerAccountGamingLimitsConfirmationModal-LRJkF-V1.js} +7 -7
  16. package/components/{PlayerAccountGamingLimitsGroupEdit-8LGyrjL0.js → PlayerAccountGamingLimitsGroupEdit-CfN_TjEL.js} +4 -4
  17. package/components/{PlayerAccountGamingLimitsGroupEdit-KwKmUGcw.js → PlayerAccountGamingLimitsGroupEdit-DeUtnkXI.js} +14 -14
  18. package/components/{PlayerAccountGamingLimitsHistory2Nd-Zl35hP7C.js → PlayerAccountGamingLimitsHistory2Nd-DZP1wtac.js} +22 -22
  19. package/components/{PlayerAccountGamingLimitsHistory2Nd-C5iI6zPo.js → PlayerAccountGamingLimitsHistory2Nd-lMZuyAH2.js} +75 -75
  20. package/components/{PlayerAccountGamingLimitsInfoCard-C5NKAWiQ.js → PlayerAccountGamingLimitsInfoCard-CyPPX8EB.js} +34 -34
  21. package/components/{PlayerAccountGamingLimitsInfoCard-CSDRi3f-.js → PlayerAccountGamingLimitsInfoCard-DEfLjjm2.js} +41 -41
  22. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CI6wdAlF.js → PlayerAccountGamingLimitsPage2Gm16Nd-C7ToWixd.js} +1 -1
  23. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-n7MSFJ5X.js → PlayerAccountGamingLimitsPage2Gm16Nd-DD_CbDBc.js} +9 -9
  24. package/components/{PlayerAccountGamingLimitsPopup-DCN31S-r.js → PlayerAccountGamingLimitsPopup-B-KdPoAT.js} +7 -7
  25. package/components/{PlayerAccountGamingLimitsPopup-DrJTQvtg.js → PlayerAccountGamingLimitsPopup-DZ0jMnry.js} +14 -14
  26. package/components/{PlayerAccountGamingLimitsWrapper2Nd-CzlysnRt.js → PlayerAccountGamingLimitsWrapper2Nd-Bj6N5bd0.js} +19 -19
  27. package/components/{PlayerAccountGamingLimitsWrapper2Nd-BRvRy17J.js → PlayerAccountGamingLimitsWrapper2Nd-nDPVU6kj.js} +23 -23
  28. package/components/{PlayerAccountGeneralConfirmationModal-BVL5axI_.js → PlayerAccountGeneralConfirmationModal-CEuFm9vT.js} +14 -14
  29. package/components/{PlayerAccountGeneralConfirmationModal-DiAHffly.js → PlayerAccountGeneralConfirmationModal-xCulOwxs.js} +23 -23
  30. package/components/{PlayerAccountMenuNd-CrAZDSaS.js → PlayerAccountMenuNd-Dqh10tkk.js} +11 -11
  31. package/components/{PlayerAccountMenuNd-Bu9ZxduC.js → PlayerAccountMenuNd-Dv_2hbpS.js} +17 -17
  32. package/components/{PlayerAccountModal-YdQXeL8A.js → PlayerAccountModal-4ia1vrmW.js} +14 -14
  33. package/components/{PlayerAccountModal-DAf18_Du.js → PlayerAccountModal-lUFdmubS.js} +6 -6
  34. package/components/{PlayerAccountNotifications-5zu1lBMx.js → PlayerAccountNotifications-Bcs-6GrU.js} +23 -23
  35. package/components/{PlayerAccountNotifications-vIvTXRgY.js → PlayerAccountNotifications-TTMnePHN.js} +12 -12
  36. package/components/{PlayerAccountProductRestriction-NKfmZJkc.js → PlayerAccountProductRestriction-C7mOboHb.js} +3 -3
  37. package/components/{PlayerAccountProductRestriction-Bar4NcYU.js → PlayerAccountProductRestriction-DbeFYa2T.js} +12 -12
  38. package/components/{PlayerAccountSelfExclusionNd-BvJslFrO.js → PlayerAccountSelfExclusionNd-5ruDGJCk.js} +12 -12
  39. package/components/{PlayerAccountSelfExclusionNd-CjYPOuPa.js → PlayerAccountSelfExclusionNd-BzgB2_TL.js} +3 -3
  40. package/components/{PlayerAccountTimeout-DAktNGuK.js → PlayerAccountTimeout-C2EU8O0h.js} +35 -35
  41. package/components/{PlayerAccountTimeout-CmXE7ioD.js → PlayerAccountTimeout-DnD1czcc.js} +44 -44
  42. package/components/PlayerAccountTransactionsHistory-BNm7evPh.cjs +4 -0
  43. package/components/PlayerAccountTransactionsHistory-Bn61qKxb.js +2392 -0
  44. package/components/PlayerAccountTransactionsHistory-DTuE0TqI.js +2340 -0
  45. package/components/{PlayerActiveBonuses-CUt0pP-6.js → PlayerActiveBonuses-Swmsd47K.js} +23 -23
  46. package/components/{PlayerActiveBonuses-CBQUmv1B.js → PlayerActiveBonuses-UgBopPpg.js} +17 -17
  47. package/components/{PlayerBonusCard-DPmKzmhw.js → PlayerBonusCard-Bl6RzSkT.js} +2 -2
  48. package/components/{PlayerBonusCard-Bq3pVRnf.js → PlayerBonusCard-sjGednTo.js} +50 -50
  49. package/components/{PlayerBonusHistory-L8i2yDsO.js → PlayerBonusHistory-2Tb-ZC62.js} +48 -48
  50. package/components/{PlayerBonusHistory-B3m_bRHM.js → PlayerBonusHistory-B9op2qbA.js} +43 -43
  51. package/components/{PlayerChangePasswordNd-CTV_CCcj.js → PlayerChangePasswordNd-mK2SV6iZ.js} +10 -10
  52. package/components/{PlayerChangePasswordNd-BJdk4OhW.js → PlayerChangePasswordNd-xiIU0CkG.js} +1 -1
  53. package/components/{PlayerDeposit-syo0F-Bg.js → PlayerDeposit-CXnYzggi.js} +10 -10
  54. package/components/{PlayerDeposit-D5ykTYYS.js → PlayerDeposit-CY_KtStW.js} +1 -1
  55. package/components/{PlayerGamingHistory-oeBhXzaH.js → PlayerGamingHistory-BwBrfXoe.js} +15 -15
  56. package/components/{PlayerGamingHistory-D5jFwmtL.js → PlayerGamingHistory-CNeEEZp3.js} +4 -4
  57. package/components/{PlayerPendingWithdrawals-i7OozfVP.js → PlayerPendingWithdrawals-BMCh4kqc.js} +1 -1
  58. package/components/{PlayerPendingWithdrawals-C0wYmh2S.js → PlayerPendingWithdrawals-CR0RmG4b.js} +10 -10
  59. package/components/{PlayerProfileInfo-DiCsTYSd.js → PlayerProfileInfo-DHmMxnP0.js} +9 -9
  60. package/components/{PlayerProfileInfo-D5V5FYyI.js → PlayerProfileInfo-wahUO8Jv.js} +1 -1
  61. package/components/{PlayerRealityCheck-Cjp4DHJi.js → PlayerRealityCheck-CxwBBwx6.js} +23 -23
  62. package/components/{PlayerRealityCheck-BIebwdRX.js → PlayerRealityCheck-VlWgseJS.js} +35 -35
  63. package/components/{PlayerTransactionHistory-DjQdwT5r.js → PlayerTransactionHistory-BqFDYMWB.js} +1 -1
  64. package/components/{PlayerTransactionHistory-NAh_DclU.js → PlayerTransactionHistory-D0pTvVnb.js} +10 -10
  65. package/components/{PlayerWithdrawal-DrYfLVwI.js → PlayerWithdrawal-B1eHDyeZ.js} +10 -10
  66. package/components/{PlayerWithdrawal-CIKlBfKQ.js → PlayerWithdrawal-BaTYrmSw.js} +1 -1
  67. package/es2015/player-account-controller-nd.cjs +1 -1
  68. package/es2015/player-account-controller-nd.js +1 -1
  69. package/esnext/player-account-controller-nd.js +1 -1
  70. package/package.json +1 -1
  71. package/stencil/{checkbox-group-input_15-CVl9H62A.cjs → checkbox-group-input_15-Buh7j8OA.cjs} +2 -2
  72. package/stencil/{checkbox-group-input_15-DXY-kI7k.js → checkbox-group-input_15-yetAlCaW.js} +12 -5
  73. package/stencil/{checkbox-group-input_15-DGGG6iYN.js → checkbox-group-input_15-zx0_Xnfn.js} +12 -5
  74. package/stencil/{index-1ef3a64c-HE2lDlEL.js → index-1ef3a64c-C8t8X5Jh.js} +29 -28
  75. package/stencil/{index-1ef3a64c-zEGNB-u8.js → index-1ef3a64c-CjIOg5Rp.js} +29 -28
  76. package/stencil/index-1ef3a64c-X09zlliQ.cjs +1 -0
  77. package/stencil/{index-6e523641-OpXLaWRw.cjs → index-6e523641-2wbisIJD.cjs} +1 -1
  78. package/stencil/{index-6e523641-COh-N1ey.js → index-6e523641-BWba88pC.js} +4 -3
  79. package/stencil/{index-6e523641-DBd81xql.js → index-6e523641-DIHvHPjz.js} +4 -3
  80. package/stencil/{index-9c0f6c58-CWsaYxOT.js → index-9c0f6c58-B-YBNnyx.js} +5 -4
  81. package/stencil/{index-9c0f6c58-ntq_iYNK.js → index-9c0f6c58-BizOIqHH.js} +5 -4
  82. package/stencil/index-9c0f6c58-Cm9RJu9f.cjs +1 -0
  83. package/stencil/{index-c666b6e6-BY_K3C_7.js → index-c666b6e6-9HJq1F49.js} +4 -3
  84. package/stencil/{index-c666b6e6-C48tHrD1.js → index-c666b6e6-Cue-j3AZ.js} +4 -3
  85. package/stencil/{index-c666b6e6-BIe1NzeE.cjs → index-c666b6e6-Dn9JzZw8.cjs} +1 -1
  86. package/stencil/{pam-change-password-9aef79f2-CsK27sme.js → pam-change-password-9aef79f2-BR-oQrHD.js} +1 -1
  87. package/stencil/{pam-change-password-9aef79f2-DeF5Y7BW.cjs → pam-change-password-9aef79f2-BjFbIET5.cjs} +1 -1
  88. package/stencil/{pam-change-password-9aef79f2-D63Jvv3h.js → pam-change-password-9aef79f2-CIZ7ge9K.js} +1 -1
  89. package/stencil/pam-change-password-CiDcoUPB.cjs +1 -0
  90. package/stencil/{pam-change-password-DLWn2kf0.js → pam-change-password-DLWRvzpe.js} +5 -1
  91. package/stencil/{pam-change-password-P0s58SQf.js → pam-change-password-Dx3S4Rdf.js} +5 -1
  92. package/stencil/{player-kyc-verification-sZ9OAQ8Z.js → player-kyc-verification-Cjl7_CaV.js} +24 -16
  93. package/stencil/player-kyc-verification-Cya58qTL.cjs +181 -0
  94. package/stencil/{player-kyc-verification-jOo_qPpq.js → player-kyc-verification-stNODsaO.js} +23 -15
  95. package/stencil/{user-deposit-withdrawal-DdJYJeX1.js → user-deposit-withdrawal-C9S6HmcW.js} +152 -144
  96. package/stencil/user-deposit-withdrawal-CNWFXWkq.cjs +72 -0
  97. package/stencil/{user-deposit-withdrawal-Cr0-V-2c.js → user-deposit-withdrawal-DALp-8F9.js} +159 -151
  98. package/stencil/user-transaction-history-BR6RM-4Z.cjs +1 -0
  99. package/stencil/{user-transaction-history-2mD0Z_m9.js → user-transaction-history-BrMDikmq.js} +8 -4
  100. package/stencil/{user-transaction-history-Cbwj1zxN.js → user-transaction-history-teNuX6Js.js} +13 -9
  101. package/stencil/{user-transaction-history_2-DFq1loux.cjs → user-transaction-history_2-CAf2JeC_.cjs} +1 -1
  102. package/stencil/{user-transaction-history_2-5iEvwYQ_.js → user-transaction-history_2-UU5W7Q9z.js} +1 -1
  103. package/stencil/{user-transaction-history_2-iFJTk4xV.js → user-transaction-history_2-iteBUvSg.js} +1 -1
  104. package/components/PlayerAccountControllerNd-B0Pafm6F.cjs +0 -1
  105. package/components/PlayerAccountControllerNd-CntoA6_W.js +0 -8943
  106. package/components/PlayerAccountControllerNd-MAddWwhT.js +0 -8960
  107. package/components/PlayerAccountTransactionsHistory-B7ny86Q3.js +0 -1956
  108. package/components/PlayerAccountTransactionsHistory-BB4-JbcJ.cjs +0 -4
  109. package/components/PlayerAccountTransactionsHistory-Bpm1cyw9.js +0 -1925
  110. package/stencil/index-1ef3a64c-DR7bpfUj.cjs +0 -1
  111. package/stencil/index-9c0f6c58-Cv5Mos03.cjs +0 -1
  112. package/stencil/pam-change-password-BlwzbI9Z.cjs +0 -1
  113. package/stencil/player-kyc-verification-BOxNJ6x_.cjs +0 -181
  114. package/stencil/user-deposit-withdrawal-BuFBx-hr.cjs +0 -72
  115. package/stencil/user-transaction-history-Cc_nxVuF.cjs +0 -1
@@ -1,25 +1,29 @@
1
- var o = (e, r, i) => new Promise((s, l) => {
1
+ var l = (e, r, a) => new Promise((s, o) => {
2
2
  var p = (t) => {
3
3
  try {
4
- a(i.next(t));
4
+ i(a.next(t));
5
5
  } catch (n) {
6
- l(n);
6
+ o(n);
7
7
  }
8
8
  }, c = (t) => {
9
9
  try {
10
- a(i.throw(t));
10
+ i(a.throw(t));
11
11
  } catch (n) {
12
- l(n);
12
+ o(n);
13
13
  }
14
- }, a = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(p, c);
15
- a((i = i.apply(e, r)).next());
14
+ }, i = (t) => t.done ? s(t.value) : Promise.resolve(t.value).then(p, c);
15
+ i((a = a.apply(e, r)).next());
16
16
  });
17
- import { b as g, p as u } from "./index-6e523641-DBd81xql.js";
17
+ import { b as g, p as u } from "./index-6e523641-DIHvHPjz.js";
18
+ import { s as b } from "./index-6e523641-DIHvHPjz.js";
18
19
  import { d as h } from "./app-globals-0f993ce5-DzSE6TtH.js";
19
20
  var m = () => {
20
21
  const e = import.meta.url, r = {};
21
22
  return e !== "" && (r.resourcesUrl = new URL(".", e).href), u(r);
22
23
  };
23
- m().then((e) => o(void 0, null, function* () {
24
+ m().then((e) => l(void 0, null, function* () {
24
25
  return yield h(), g([["user-transaction-history_2", [[1, "user-transaction-history", { endpoint: [513], session: [513], language: [513], userId: [513, "user-id"], translationUrl: [513, "translation-url"], mobile: [516], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], mbSource: [513, "mb-source"], dateFormat: [513, "date-format"], page: [32], pageSize: [32], showMobileFilter: [32], to: [32], from: [32], type: [32], transactions: [32], showLoader: [32] }, [[9, "resize", "getComponentHeight"]], { page: ["watchMultiple"], type: ["watchMultiple"], session: ["watchMultiple"], userId: ["watchMultiple"], pageSize: ["watchMultiple"], clientStyling: ["handleClientStylingChange"], clientStylingUrl: ["handleClientStylingUrlChange"], showMobileFilter: ["getComponentHeight"] }], [0, "user-transaction-history-filter", { from: [513], to: [513], language: [513], dateformat: [513], startDate: [32], endDate: [32] }]]]], e);
25
26
  }));
27
+ export {
28
+ b as setNonce
29
+ };
@@ -1,4 +1,4 @@
1
- "use strict";var Vt=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-OpXLaWRw.cjs"),As={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const i=yield t.text();throw new Error(i)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,i;const a=I.getAvaliableLanguages(t);return((i=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||i===void 0?void 0:i[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=As;const Ps=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(o){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(o)}function V(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function Is(o){return V(1,arguments),o instanceof Date||_e(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function K(o){V(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||_e(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ss(o){if(V(1,arguments),!Is(o)&&typeof o!="number")return!1;var e=K(o);return!isNaN(Number(e))}function Q(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ds(o,e){V(2,arguments);var t=K(o).getTime(),r=Q(e);return new Date(t+r)}function ga(o,e){V(2,arguments);var t=Q(e);return Ds(o,-t)}var Os=864e5;function Ms(o){V(1,arguments);var e=K(o),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/Os)+1}function qe(o){V(1,arguments);var e=1,t=K(o),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ba(o){V(1,arguments);var e=K(o),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function zs(o){V(1,arguments);var e=ba(o),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ns=6048e5;function ya(o){V(1,arguments);var e=K(o),t=qe(e).getTime()-zs(e).getTime();return Math.round(t/Ns)+1}var Ls={};function Xe(){return Ls}function De(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(o),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=K(o),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Fs(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(o,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Bs=6048e5;function wa(o,e){V(1,arguments);var t=K(o),r=De(t,e).getTime()-Fs(t,e).getTime();return Math.round(r/Bs)+1}function M(o,e){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<e;)r="0"+r;return t+r}var Vs={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return M(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,t.length)}};const be=Vs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,i){var a=gi(e,i),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ba(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=wa(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var i=ya(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var i=Ms(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Fe.noon:i===0?a=Fe.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Fe.evening:i>=12?a=Fe.afternoon:i>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,i){var a=i._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(o,e){var t=o>0?"-":"+",r=Math.abs(o),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var n=e;return t+String(i)+n+M(a,2)}function mo(o,e){if(o%60===0){var t=o>0?"-":"+";return t+M(Math.abs(o)/60,2)}return Te(o,e)}function Te(o,e){var t=e||"",r=o>0?"-":"+",i=Math.abs(o),a=M(Math.floor(i/60),2),n=M(i%60,2);return r+a+t+n}const $s=Rs;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xa=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hs=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(i,t)).replace("{{time}}",xa(a,t))},Us={p:xa,P:Hs};const qr=Us;function Ca(o){var e=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return e.setUTCFullYear(o.getFullYear()),o.getTime()-e.getTime()}var Ws=["D","DD"],qs=["YY","YYYY"];function ka(o){return Ws.indexOf(o)!==-1}function Ea(o){return qs.indexOf(o)!==-1}function Qt(o,e,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ys={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},js=function(e,t,r){var i,a=Ys[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Gs=js;function Ir(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Ks={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Js={date:Ir({formats:Ks,defaultWidth:"full"}),time:Ir({formats:Xs,defaultWidth:"full"}),dateTime:Ir({formats:Qs,defaultWidth:"full"})};const Zs=Js;var el={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tl=function(e,t,r,i){return el[e]};const rl=tl;function ot(o){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;i=o.formattingValues[n]||o.formattingValues[a]}else{var s=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;i=o.values[l]||o.values[s]}var d=o.argumentCallback?o.argumentCallback(e):e;return i[d]}}var il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},al={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ll={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dl=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cl={ordinalNumber:dl,era:ot({values:il,defaultWidth:"wide"}),quarter:ot({values:ol,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:al,defaultWidth:"wide"}),day:ot({values:nl,defaultWidth:"wide"}),dayPeriod:ot({values:sl,defaultWidth:"wide",formattingValues:ll,defaultFormattingWidth:"wide"})};const hl=cl;function at(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=e.match(i);if(!a)return null;var n=a[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(s)?pl(s,function(h){return h.test(n)}):ul(s,function(h){return h.test(n)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ul(o,e){for(var t in o)if(o.hasOwnProperty(t)&&e(o[t]))return t}function pl(o,e){for(var t=0;t<o.length;t++)if(e(o[t]))return t}function ml(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var i=r[0],a=e.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(i.length);return{value:n,rest:s}}}var fl=/^(\d+)(th|st|nd|rd)?/i,_l=/\d+/i,vl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gl={any:[/^b/i,/^(a|c)/i]},bl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yl={any:[/1/i,/2/i,/3/i,/4/i]},wl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},El={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Tl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Al={ordinalNumber:ml({matchPattern:fl,parsePattern:_l,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:gl,defaultParseWidth:"any"}),quarter:at({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any"}),day:at({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:El,defaultMatchWidth:"any",parsePatterns:Tl,defaultParseWidth:"any"})};const Pl=Al;var Il={code:"en-US",formatDistance:Gs,formatLong:Zs,formatRelative:rl,localize:hl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ta=Il;var Sl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,Ml=/''/g,zl=/[a-zA-Z]/;function Ie(o,e,t){var r,i,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(i=void 0)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:Ta,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(o);if(!Ss(ge))throw new RangeError("Invalid time value");var et=Ca(ge),tt=ga(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Dl).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Sl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Nl(j);var ke=$s[ee];if(ke)return Ea(j)&&Qt(j,e,String(o)),ka(j)&&Qt(j,e,String(o)),ke(tt,j,U.localize,rt);if(ee.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Nl(o){var e=o.match(Ol);return e?e[1].replace(Ml,"'"):o}class Aa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${i}`}}class Pa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(i){}return r}}const Ll=o=>m.h("div",{class:"data-transaction"},m.h("p",null,o.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:o.status.toLowerCase()},o.status)),m.h("p",{class:"date"},o.transId," | ",Aa.dateToFormatedString(new Date(o.created),o.dateformat)),m.h("p",{class:"text-style"},Pa.format(o.currency,o.realAmount)," ")),Fl=o=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",o.language)),o.pageSizes.map(e=>m.h("button",{class:o.currentPageSize===e?"active":"",onClick:()=>o.changePageSize(e)},e))),Bl=({source:o,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(i=>m.h("th",null,i.name)))),m.h("tbody",null,o.map(i=>m.h("tr",null,m.h("td",null,i.transId),m.h("td",null,Aa.dateToFormatedString(new Date(i.created),t)),m.h("td",null,Pa.format(i.currency,i.realAmount)," "),m.h("td",null,i.productType),m.h("td",null,m.h("span",{class:i.status.toLowerCase()},i.status))))))};function _o(o,e){if(o){const t=document.createElement("style");t.innerHTML=e,o.appendChild(t)}}function vo(o,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,o&&o.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vl(o,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,o&&o.appendChild(r)})}}function go(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rl(o,e){if(o){if(typeof o=="string")return go(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(o,e):void 0}}function bo(o,e){var t=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Rl(o))||e){t&&(o=t);var r=0,i=function(){};return{s:i,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ "use strict";var Vt=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-6e523641-2wbisIJD.cjs"),As={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities",transactionTitle:"Transaction History"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu",transactionTitle:"Povijest transakcija"}};class I{constructor(){}static loadCustomTranslations(e){return Vt(this,null,function*(){try{const t=yield fetch(e,{headers:{"Content-Type":"application/json"}});if(!t.ok){const i=yield t.text();throw new Error(i)}const r=yield t.json();I.updateTranslations(r)}catch(t){console.error(`Failed to load translations ${e}. ${t.message}`)}})}static translate(e,t){var r,i;const a=I.getAvaliableLanguages(t);return((i=(r=I.customTranslation)===null||r===void 0?void 0:r[a.customLanguage])===null||i===void 0?void 0:i[e])||I.defaultTranslation[a.predefinedLanguage][e]}static getAvaliableLanguages(e){var t;const r=!((t=I.customLanguages)===null||t===void 0)&&t.includes(e)?e:I.defaultLanguage;return{predefinedLanguage:I.supportedLanguages.includes(e)?e:I.defaultLanguage,customLanguage:r}}static updateTranslations(e){I.customLanguages=Array.from(new Set([...I.supportedLanguages,...Object.keys(e).map(t=>t.toLowerCase())])),I.customTranslation=e}}I.defaultLanguage="en";I.supportedLanguages=["en"];I.defaultTranslation=As;const Ps=()=>m.h("div",{class:"loader"},m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null),m.h("div",null));function _e(o){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(o)}function V(o,e){if(e.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+e.length+" present")}function Is(o){return V(1,arguments),o instanceof Date||_e(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}function K(o){V(1,arguments);var e=Object.prototype.toString.call(o);return o instanceof Date||_e(o)==="object"&&e==="[object Date]"?new Date(o.getTime()):typeof o=="number"||e==="[object Number]"?new Date(o):((typeof o=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ss(o){if(V(1,arguments),!Is(o)&&typeof o!="number")return!1;var e=K(o);return!isNaN(Number(e))}function Q(o){if(o===null||o===!0||o===!1)return NaN;var e=Number(o);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ds(o,e){V(2,arguments);var t=K(o).getTime(),r=Q(e);return new Date(t+r)}function ga(o,e){V(2,arguments);var t=Q(e);return Ds(o,-t)}var Os=864e5;function Ms(o){V(1,arguments);var e=K(o),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/Os)+1}function qe(o){V(1,arguments);var e=1,t=K(o),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}function ba(o){V(1,arguments);var e=K(o),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=qe(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=qe(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function zs(o){V(1,arguments);var e=ba(o),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=qe(t);return r}var Ns=6048e5;function ya(o){V(1,arguments);var e=K(o),t=qe(e).getTime()-zs(e).getTime();return Math.round(t/Ns)+1}var Ls={};function Xe(){return Ls}function De(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=K(o),p=u.getUTCDay(),b=(p<h?7:0)+p-h;return u.setUTCDate(u.getUTCDate()-b),u.setUTCHours(0,0,0,0),u}function gi(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=K(o),h=c.getUTCFullYear(),u=Xe(),p=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,p),b.setUTCHours(0,0,0,0);var N=De(b,e),D=new Date(0);D.setUTCFullYear(h,0,p),D.setUTCHours(0,0,0,0);var O=De(D,e);return c.getTime()>=N.getTime()?h+1:c.getTime()>=O.getTime()?h:h-1}function Fs(o,e){var t,r,i,a,n,s,l,d;V(1,arguments);var c=Xe(),h=Q((t=(r=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),u=gi(o,e),p=new Date(0);p.setUTCFullYear(u,0,h),p.setUTCHours(0,0,0,0);var b=De(p,e);return b}var Bs=6048e5;function wa(o,e){V(1,arguments);var t=K(o),r=De(t,e).getTime()-Fs(t,e).getTime();return Math.round(r/Bs)+1}function M(o,e){for(var t=o<0?"-":"",r=Math.abs(o).toString();r.length<e;)r="0"+r;return t+r}var Vs={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return M(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):M(r+1,2)},d:function(e,t){return M(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return M(e.getUTCHours()%12||12,t.length)},H:function(e,t){return M(e.getUTCHours(),t.length)},m:function(e,t){return M(e.getUTCMinutes(),t.length)},s:function(e,t){return M(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return M(a,t.length)}};const be=Vs;var Fe={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Rs={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return be.y(e,t)},Y:function(e,t,r,i){var a=gi(e,i),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return M(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):M(n,t.length)},R:function(e,t){var r=ba(e);return M(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return M(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return M(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return M(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return be.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return M(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=wa(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):M(a,t.length)},I:function(e,t,r){var i=ya(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):M(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):be.d(e,t)},D:function(e,t,r){var i=Ms(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):M(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return M(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),n=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return M(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return M(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Fe.noon:i===0?a=Fe.midnight:a=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Fe.evening:i>=12?a=Fe.afternoon:i>=4?a=Fe.morning:a=Fe.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return be.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):be.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):M(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):be.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):be.s(e,t)},S:function(e,t){return be.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return mo(n);case"XXXX":case"XX":return Te(n);case"XXXXX":case"XXX":default:return Te(n,":")}},x:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return mo(n);case"xxxx":case"xx":return Te(n);case"xxxxx":case"xxx":default:return Te(n,":")}},O:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+po(n,":");case"OOOO":default:return"GMT"+Te(n,":")}},z:function(e,t,r,i){var a=i._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+po(n,":");case"zzzz":default:return"GMT"+Te(n,":")}},t:function(e,t,r,i){var a=i._originalDate||e,n=Math.floor(a.getTime()/1e3);return M(n,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,n=a.getTime();return M(n,t.length)}};function po(o,e){var t=o>0?"-":"+",r=Math.abs(o),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var n=e;return t+String(i)+n+M(a,2)}function mo(o,e){if(o%60===0){var t=o>0?"-":"+";return t+M(Math.abs(o)/60,2)}return Te(o,e)}function Te(o,e){var t=e||"",r=o>0?"-":"+",i=Math.abs(o),a=M(Math.floor(i/60),2),n=M(i%60,2);return r+a+t+n}const $s=Rs;var fo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},xa=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hs=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return fo(e,t);var n;switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",fo(i,t)).replace("{{time}}",xa(a,t))},Us={p:xa,P:Hs};const qr=Us;function Ca(o){var e=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return e.setUTCFullYear(o.getFullYear()),o.getTime()-e.getTime()}var Ws=["D","DD"],qs=["YY","YYYY"];function ka(o){return Ws.indexOf(o)!==-1}function Ea(o){return qs.indexOf(o)!==-1}function Qt(o,e,t){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ys={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},js=function(e,t,r){var i,a=Ys[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const Gs=js;function Ir(o){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):o.defaultWidth,r=o.formats[t]||o.formats[o.defaultWidth];return r}}var Ks={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xs={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Js={date:Ir({formats:Ks,defaultWidth:"full"}),time:Ir({formats:Xs,defaultWidth:"full"}),dateTime:Ir({formats:Qs,defaultWidth:"full"})};const Zs=Js;var el={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tl=function(e,t,r,i){return el[e]};const rl=tl;function ot(o){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&o.formattingValues){var a=o.defaultFormattingWidth||o.defaultWidth,n=t!=null&&t.width?String(t.width):a;i=o.formattingValues[n]||o.formattingValues[a]}else{var s=o.defaultWidth,l=t!=null&&t.width?String(t.width):o.defaultWidth;i=o.values[l]||o.values[s]}var d=o.argumentCallback?o.argumentCallback(e):e;return i[d]}}var il={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},al={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ll={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dl=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},cl={ordinalNumber:dl,era:ot({values:il,defaultWidth:"wide"}),quarter:ot({values:ol,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ot({values:al,defaultWidth:"wide"}),day:ot({values:nl,defaultWidth:"wide"}),dayPeriod:ot({values:sl,defaultWidth:"wide",formattingValues:ll,defaultFormattingWidth:"wide"})};const hl=cl;function at(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],a=e.match(i);if(!a)return null;var n=a[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],l=Array.isArray(s)?pl(s,function(h){return h.test(n)}):ul(s,function(h){return h.test(n)}),d;d=o.valueCallback?o.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var c=e.slice(n.length);return{value:d,rest:c}}}function ul(o,e){for(var t in o)if(o.hasOwnProperty(t)&&e(o[t]))return t}function pl(o,e){for(var t=0;t<o.length;t++)if(e(o[t]))return t}function ml(o){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(o.matchPattern);if(!r)return null;var i=r[0],a=e.match(o.parsePattern);if(!a)return null;var n=o.valueCallback?o.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(i.length);return{value:n,rest:s}}}var fl=/^(\d+)(th|st|nd|rd)?/i,_l=/\d+/i,vl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gl={any:[/^b/i,/^(a|c)/i]},bl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yl={any:[/1/i,/2/i,/3/i,/4/i]},wl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Cl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},El={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Tl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Al={ordinalNumber:ml({matchPattern:fl,parsePattern:_l,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:vl,defaultMatchWidth:"wide",parsePatterns:gl,defaultParseWidth:"any"}),quarter:at({matchPatterns:bl,defaultMatchWidth:"wide",parsePatterns:yl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:wl,defaultMatchWidth:"wide",parsePatterns:xl,defaultParseWidth:"any"}),day:at({matchPatterns:Cl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:El,defaultMatchWidth:"any",parsePatterns:Tl,defaultParseWidth:"any"})};const Pl=Al;var Il={code:"en-US",formatDistance:Gs,formatLong:Zs,formatRelative:rl,localize:hl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ta=Il;var Sl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,Ml=/''/g,zl=/[a-zA-Z]/;function Ie(o,e,t){var r,i,a,n,s,l,d,c,h,u,p,b,N,D;V(2,arguments);var O=String(e),A=Xe(),U=(r=(i=void 0)!==null&&i!==void 0?i:A.locale)!==null&&r!==void 0?r:Ta,W=Q((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:A.firstWeekContainsDate)!==null&&n!==void 0?n:(d=A.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=Q((h=(u=(p=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&p!==void 0?p:A.weekStartsOn)!==null&&u!==void 0?u:(N=A.locale)===null||N===void 0||(D=N.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&h!==void 0?h:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!U.localize)throw new RangeError("locale must contain localize property");if(!U.formatLong)throw new RangeError("locale must contain formatLong property");var ge=K(o);if(!Ss(ge))throw new RangeError("Invalid time value");var et=Ca(ge),tt=ga(ge,et),rt={firstWeekContainsDate:W,weekStartsOn:ne,locale:U,_originalDate:ge},Tr=O.match(Dl).map(function(j){var ee=j[0];if(ee==="p"||ee==="P"){var ke=qr[ee];return ke(j,U.formatLong)}return j}).join("").match(Sl).map(function(j){if(j==="''")return"'";var ee=j[0];if(ee==="'")return Nl(j);var ke=$s[ee];if(ke)return Ea(j)&&Qt(j,e,String(o)),ka(j)&&Qt(j,e,String(o)),ke(tt,j,U.localize,rt);if(ee.match(zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return j}).join("");return Tr}function Nl(o){var e=o.match(Ol);return e?e[1].replace(Ml,"'"):o}class Aa{constructor(){}static dateToFormatedString(e,t){const r=t?Ie(e,t):e.toLocaleDateString("en-gb"),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${r}, ${i}`}}class Pa{constructor(){}static format(e,t){let r=`${t} ${e}`;try{r=new Intl.NumberFormat("en-US",{style:"currency",currency:e}).format(t)}catch(i){}return r}}const Ll=o=>m.h("div",{class:"data-transaction"},m.h("p",null,o.productType),m.h("p",{class:"text-style text-style-status"},m.h("span",{class:o.status.toLowerCase()},o.status)),m.h("p",{class:"date"},o.transId," | ",Aa.dateToFormatedString(new Date(o.created),o.dateformat)),m.h("p",{class:"text-style"},Pa.format(o.currency,o.realAmount)," ")),Fl=o=>m.h("div",{class:"page-size"},m.h("span",null,I.translate("show",o.language)),o.pageSizes.map(e=>m.h("button",{class:o.currentPageSize===e?"active":"",onClick:()=>o.changePageSize(e)},e))),Bl=({source:o,language:e,dateformat:t})=>{const r=[{name:I.translate("transactionId",e)},{name:I.translate("date",e)},{name:I.translate("amount",e)},{name:I.translate("productType",e)},{name:I.translate("status",e)}];return m.h("table",null,m.h("thead",null,m.h("tr",null,r.map(i=>m.h("th",null,i.name)))),m.h("tbody",null,o.map(i=>m.h("tr",null,m.h("td",null,i.transId),m.h("td",null,Aa.dateToFormatedString(new Date(i.created),t)),m.h("td",null,Pa.format(i.currency,i.realAmount)," "),m.h("td",null,i.productType),m.h("td",null,m.h("span",{class:i.status.toLowerCase()},i.status))))))};function _o(o,e){if(o){const t=document.createElement("style");t.innerHTML=e,o.appendChild(t)}}function vo(o,e){const t=new URL(e);fetch(t.href).then(r=>r.text()).then(r=>{const i=document.createElement("style");i.innerHTML=r,o&&o.appendChild(i)}).catch(r=>{console.error("There was an error while trying to load client styling from URL",r)})}function Vl(o,e,t){if(window.emMessageBus){const r=document.createElement("style");window.emMessageBus.subscribe(e,i=>{r.innerHTML=i,o&&o.appendChild(r)})}}function go(o,e){(e==null||e>o.length)&&(e=o.length);for(var t=0,r=Array(e);t<e;t++)r[t]=o[t];return r}function Rl(o,e){if(o){if(typeof o=="string")return go(o,e);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?go(o,e):void 0}}function bo(o,e){var t=typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!t){if(Array.isArray(o)||(t=Rl(o))||e){t&&(o=t);var r=0,i=function(){};return{s:i,n:function(){return r>=o.length?{done:!0}:{done:!1,value:o[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(o)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function $l(o,e){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t]);return o}function v(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function Yr(o,e){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Yr(o,e)}function E(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&Yr(o,e)}function Jt(o){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jt(o)}function Ia(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ia=function(){return!!o})()}function Hl(o,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(o)}function T(o){var e=Ia();return function(){var t,r=Jt(o);if(e){var i=Jt(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Hl(this,t)}}function w(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function Ul(o,e){if(_e(o)!="object"||!o)return o;var t=o[Symbol.toPrimitive];if(t!==void 0){var r=t.call(o,e);if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function Sa(o){var e=Ul(o,"string");return _e(e)=="symbol"?e:e+""}function Wl(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,Sa(r.key),r)}}function x(o,e,t){return e&&Wl(o.prototype,e),Object.defineProperty(o,"prototype",{writable:!1}),o}function _(o,e,t){return(e=Sa(e))in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var ql=10,Da=function(){function o(){w(this,o),_(this,"priority",void 0),_(this,"subPriority",0)}return x(o,[{key:"validate",value:function(t,r){return!0}}]),o}(),Yl=function(o){E(t,o);var e=T(t);function t(r,i,a,n,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=i,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,n){return this.setValue(i,a,this.value,n)}}]),t}(Da),jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",ql),_(v(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var n=new Date(0);return n.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),n.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),n}}]),t}(Da),S=function(){function o(){w(this,o),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return x(o,[{key:"run",value:function(t,r,i,a){var n=this.parse(t,r,i,a);return n?{setter:new Yl(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,i){return!0}}]),o}(),Gl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",140),_(v(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})||n.era(i,{width:"abbreviated"})||n.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,n){return a.era=n,i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Kl=6e4,Xl=36e5,Ql=1e3,R={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},de={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function $(o,e){return o&&{value:e(o.value),rest:o.rest}}function F(o,e){var t=e.match(o);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function ce(o,e){var t=e.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(i*Xl+a*Kl+n*Ql),rest:e.slice(t[0].length)}}function Oa(o){return F(R.anyDigitsSigned,o)}function B(o,e){switch(o){case 1:return F(R.singleDigit,e);case 2:return F(R.twoDigits,e);case 3:return F(R.threeDigits,e);case 4:return F(R.fourDigits,e);default:return F(new RegExp("^\\d{1,"+o+"}"),e)}}function Zt(o,e){switch(o){case 1:return F(R.singleDigitSigned,e);case 2:return F(R.twoDigitsSigned,e);case 3:return F(R.threeDigitsSigned,e);case 4:return F(R.fourDigitsSigned,e);default:return F(new RegExp("^-?\\d{1,"+o+"}"),e)}}function bi(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ma(o,e){var t=e>0,r=t?e:1-e,i;if(r<=50)i=o||100;else{var a=r+50,n=Math.floor(a/100)*100,s=o>=a%100;i=o+n-(s?100:0)}return t?i:1-i}function za(o){return o%400===0||o%4===0&&o%100!==0}var Jl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return $(B(4,i),s);case"yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n){var s=i.getUTCFullYear();if(n.isTwoDigitYear){var l=Ma(n.year,s);return i.setUTCFullYear(l,0,1),i.setUTCHours(0,0,0,0),i}var d=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(d,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),Zl=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return $(B(4,i),s);case"Yo":return $(n.ordinalNumber(i,{unit:"year"}),s);default:return $(B(a.length,i),s)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,n,s){var l=gi(i,s);if(n.isTwoDigitYear){var d=Ma(n.year,l);return i.setUTCFullYear(d,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}var c=!("era"in a)||a.era===1?n.year:1-n.year;return i.setUTCFullYear(c,0,s.firstWeekContainsDate),i.setUTCHours(0,0,0,0),De(i,s)}}]),t}(S),ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),qe(s)}}]),t}(S),td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",130),_(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a){return Zt(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,n){return i.setUTCFullYear(n,0,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),rd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"Q":case"QQ":return B(a.length,i);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})||n.quarter(i,{width:"abbreviated",context:"formatting"})||n.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",120),_(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"q":case"qq":return B(a.length,i);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})||n.quarter(i,{width:"abbreviated",context:"standalone"})||n.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,n){return i.setUTCMonth((n-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(v(r),"priority",110),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"M":return $(F(R.month,i),s);case"MM":return $(B(2,i),s);case"Mo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})||n.month(i,{width:"abbreviated",context:"formatting"})||n.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S),ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",110),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d-1};switch(a){case"L":return $(F(R.month,i),s);case"LL":return $(B(2,i),s);case"Lo":return $(n.ordinalNumber(i,{unit:"month"}),s);case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})||n.month(i,{width:"abbreviated",context:"standalone"})||n.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){return i.setUTCMonth(n,1),i.setUTCHours(0,0,0,0),i}}]),t}(S);function nd(o,e,t){V(2,arguments);var r=K(o),i=Q(e),a=wa(r,t)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"w":return F(R.week,i);case"wo":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n,s){return De(nd(i,n,s),s)}}]),t}(S);function ld(o,e){V(2,arguments);var t=K(o),r=Q(e),i=ya(t)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}var dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",100),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"I":return F(R.week,i);case"Io":return n.ordinalNumber(i,{unit:"week"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,n){return qe(ld(i,n))}}]),t}(S),cd=[31,28,31,30,31,30,31,31,30,31,30,31],hd=[31,29,31,30,31,30,31,31,30,31,30,31],ud=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subPriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"d":return F(R.date,i);case"do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n),l=i.getUTCMonth();return s?a>=1&&a<=hd[l]:a>=1&&a<=cd[l]}},{key:"set",value:function(i,a,n){return i.setUTCDate(n),i.setUTCHours(0,0,0,0),i}}]),t}(S),pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"subpriority",1),_(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"D":case"DD":return F(R.dayOfYear,i);case"Do":return n.ordinalNumber(i,{unit:"date"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){var n=i.getUTCFullYear(),s=za(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,n){return i.setUTCMonth(0,n),i.setUTCHours(0,0,0,0),i}}]),t}(S);function yi(o,e,t){var r,i,a,n,s,l,d,c;V(2,arguments);var h=Xe(),u=Q((r=(i=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&i!==void 0?i:(d=h.locale)===null||d===void 0||(c=d.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=K(o),b=Q(e),N=p.getUTCDay(),D=b%7,O=(D+7)%7,A=(O<u?7:0)+b-N;return p.setUTCDate(p.getUTCDate()+A),p}var md=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),fd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return $(B(a.length,i),l);case"eo":return $(n.ordinalNumber(i,{unit:"day"}),l);case"eee":return n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S),_d=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n,s){var l=function(c){var h=Math.floor((c-1)/7)*7;return(c+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return $(B(a.length,i),l);case"co":return $(n.ordinalNumber(i,{unit:"day"}),l);case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})||n.day(i,{width:"abbreviated",context:"standalone"})||n.day(i,{width:"short",context:"standalone"})||n.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,n,s){return i=yi(i,n,s),i.setUTCHours(0,0,0,0),i}}]),t}(S);function vd(o,e){V(2,arguments);var t=Q(e);t%7===0&&(t=t-7);var r=1,i=K(o),a=i.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return i.setUTCDate(i.getUTCDate()+l),i}var gd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",90),_(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return B(a.length,i);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return $(n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiii":return $(n.day(i,{width:"narrow",context:"formatting"}),s);case"iiiiii":return $(n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s);case"iiii":default:return $(n.day(i,{width:"wide",context:"formatting"})||n.day(i,{width:"abbreviated",context:"formatting"})||n.day(i,{width:"short",context:"formatting"})||n.day(i,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,n){return i=vd(i,n),i.setUTCHours(0,0,0,0),i}}]),t}(S),bd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),yd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),wd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",80),_(v(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})||n.dayPeriod(i,{width:"abbreviated",context:"formatting"})||n.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,n){return i.setUTCHours(bi(n),0,0,0),i}}]),t}(S),xd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"h":return F(R.hour12h,i);case"ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):!s&&n===12?i.setUTCHours(0,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Cd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"H":return F(R.hour23h,i);case"Ho":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,n){return i.setUTCHours(n,0,0,0),i}}]),t}(S),kd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"K":return F(R.hour11h,i);case"Ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,n){var s=i.getUTCHours()>=12;return s&&n<12?i.setUTCHours(n+12,0,0,0):i.setUTCHours(n,0,0,0),i}}]),t}(S),Ed=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",70),_(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"k":return F(R.hour24h,i);case"ko":return n.ordinalNumber(i,{unit:"hour"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,n){var s=n<=24?n%24:n;return i.setUTCHours(s,0,0,0),i}}]),t}(S),Td=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",60),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"m":return F(R.minute,i);case"mo":return n.ordinalNumber(i,{unit:"minute"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCMinutes(n,0,0),i}}]),t}(S),Ad=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",50),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a,n){switch(a){case"s":return F(R.second,i);case"so":return n.ordinalNumber(i,{unit:"second"});default:return B(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,n){return i.setUTCSeconds(n,0),i}}]),t}(S),Pd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",30),_(v(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(i,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return $(B(a.length,i),n)}},{key:"set",value:function(i,a,n){return i.setUTCMilliseconds(n),i}}]),t}(S),Id=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"X":return ce(de.basicOptionalMinutes,i);case"XX":return ce(de.basic,i);case"XXXX":return ce(de.basicOptionalSeconds,i);case"XXXXX":return ce(de.extendedOptionalSeconds,i);case"XXX":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Sd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",10),_(v(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(i,a){switch(a){case"x":return ce(de.basicOptionalMinutes,i);case"xx":return ce(de.basic,i);case"xxxx":return ce(de.basicOptionalSeconds,i);case"xxxxx":return ce(de.extendedOptionalSeconds,i);case"xxx":default:return ce(de.extended,i)}}},{key:"set",value:function(i,a,n){return a.timestampIsSet?i:new Date(i.getTime()-n)}}]),t}(S),Dd=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",40),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(S),Od=function(o){E(t,o);var e=T(t);function t(){var r;w(this,t);for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),_(v(r),"priority",20),_(v(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(i){return Oa(i)}},{key:"set",value:function(i,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(S),Md={G:new Gl,y:new Jl,Y:new Zl,R:new ed,u:new td,Q:new rd,q:new id,M:new od,L:new ad,w:new sd,I:new dd,d:new ud,D:new pd,E:new md,e:new fd,c:new _d,i:new gd,a:new bd,b:new yd,B:new wd,h:new xd,H:new Cd,K:new kd,k:new Ed,m:new Td,s:new Ad,S:new Pd,X:new Id,x:new Sd,t:new Dd,T:new Od},zd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ld=/^'([^]*?)'?$/,Fd=/''/g,Bd=/\S/,Vd=/[a-zA-Z]/;function Na(o,e,t,r){var i,a,n,s,l,d,c,h,u,p,b,N,D,O;V(3,arguments);var A=String(o),U=String(e),W=Xe(),ne=(i=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&i!==void 0?i:Ta;if(!ne.match)throw new RangeError("locale must contain match property");var ge=Q((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(c=W.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var et=Q((u=(p=(b=(N=void 0)!==null&&N!==void 0?N:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&p!==void 0?p:(D=W.locale)===null||D===void 0||(O=D.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&u!==void 0?u:0);if(!(et>=0&&et<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(U==="")return A===""?K(t):new Date(NaN);var tt={firstWeekContainsDate:ge,weekStartsOn:et,locale:ne},rt=[new jl],Tr=U.match(Nd).map(function(q){var L=q[0];if(L in qr){var ae=qr[L];return ae(q,ne.formatLong)}return q}).join("").match(zd),j=[],ee=bo(Tr),ke;try{var Es=function(){var L=ke.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Ea(L)&&Qt(L,U,o),!(r!=null&&r.useAdditionalDayOfYearTokens)&&ka(L)&&Qt(L,U,o);var ae=L[0],Bt=Md[ae];if(Bt){var co=Bt.incompatibleTokens;if(Array.isArray(co)){var ho=j.find(function(uo){return co.includes(uo.token)||uo.token===ae});if(ho)throw new RangeError("The format string mustn't contain `".concat(ho.fullToken,"` and `").concat(L,"` at the same time"))}else if(Bt.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(L,"` and any other token at the same time"));j.push({token:ae,fullToken:L});var Pr=Bt.run(A,L,ne.match,tt);if(!Pr)return{v:new Date(NaN)};rt.push(Pr.setter),A=Pr.rest}else{if(ae.match(Vd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ae+"`");if(L==="''"?L="'":ae==="'"&&(L=Rd(L)),A.indexOf(L)===0)A=A.slice(L.length);else return{v:new Date(NaN)}}};for(ee.s();!(ke=ee.n()).done;){var ao=Es();if(_e(ao)==="object")return ao.v}}catch(q){ee.e(q)}finally{ee.f()}if(A.length>0&&Bd.test(A))return new Date(NaN);var Ts=rt.map(function(q){return q.priority}).sort(function(q,L){return L-q}).filter(function(q,L,ae){return ae.indexOf(q)===L}).map(function(q){return rt.filter(function(L){return L.priority===q}).sort(function(L,ae){return ae.subPriority-L.subPriority})}).map(function(q){return q[0]}),Ar=K(t);if(isNaN(Ar.getTime()))return new Date(NaN);var it=ga(Ar,Ca(Ar)),no={},Lt=bo(Ts),so;try{for(Lt.s();!(so=Lt.n()).done;){var lo=so.value;if(!lo.validate(it,tt))return new Date(NaN);var Ft=lo.set(it,no,tt);Array.isArray(Ft)?(it=Ft[0],$l(no,Ft[1])):it=Ft}}catch(q){Lt.e(q)}finally{Lt.f()}return it}function Rd(o){return o.match(Ld)[1].replace(Fd,"'")}function $d(o,e){V(2,arguments);var t=K(o),r=Q(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return i>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),i),t)}function Hd(o,e){V(2,arguments);var t=Q(e);return $d(o,-t)}const Ud=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}.MenuReturnButton{font:inherit;color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MenuReturnButton h2.TransactionTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}',Wd=Ud,La=class{constructor(o){m.registerInstance(this,o),this.pageSizes=[10,25,50],this.pagination=null,this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.mobile},window.location.href)},this.endpoint=void 0,this.session=void 0,this.language=I.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.dateFormat="",this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(o,e){o!=e&&_o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(o,e){o!=e&&this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Vt(this,null,function*(){this.translationUrl&&(yield I.loadCustomTranslations(this.translationUrl)),this.to=Ie(new Date,`${this.dateFormat||"yyyy-MM-dd"}`),this.from=Ie(Hd(new Date,1),`${this.dateFormat||"yyyy-MM-dd"}`),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Vl(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&_o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vo(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var o;if(this.mobile){let e=this.el.getBoundingClientRect().height-((o=this.el.shadowRoot.querySelector(".table"))===null||o===void 0?void 0:o.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",e+"px")}}setHeightTableProperty(){let o=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",o+"px")}changeTransactionsType(o){this.type=o}changePageSize(o){this.pageSize=o}prev(){var o;!((o=this.pagination)===null||o===void 0)&&o.previous&&this.page--}next(){var o;!((o=this.pagination)===null||o===void 0)&&o.next&&this.page++}applyFilters(o,e){this.from=o,this.to=e,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var o;const e=m.getAssetPath("../assets/filter.svg"),t=m.getAssetPath("../assets/warning.svg");return m.h(m.Host,{key:"395328866f9fbae0a79d1dcf9dc5e9fd6e321406"},this.showLoader?m.h(Ps,null):"",m.h("div",{key:"fcb0efc2b0c9f2daa3df8c6c1d541dabe76c8126",class:"wrapper",ref:r=>this.stylingContainer=r},this.mobile?m.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},m.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},m.h("defs",null),m.h("g",{transform:"translate(-20 -158)"},m.h("g",{transform:"translate(20 158)"},m.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),m.h("h2",{class:"TransactionTitleMobile"},I.translate("transactionTitle",this.language))):m.h("h2",{class:"TransactionTitle"},I.translate("transactionTitle",this.language)),m.h("div",{key:"3fcb0ac0f3bc81ce2c3e298e53649a7050a53cb2",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},m.h("button",{key:"1fcfd5dbf9857488bd0594f5b908e845a66f0d05",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},I.translate("deposit",this.language)),m.h("button",{key:"58c6707975e3854e8a4afcf270a11dacd3c15947",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},I.translate("withdrawals",this.language))),this.mobile?"":m.h(Fl,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:r=>this.changePageSize(r)}),this.mobile?m.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},m.h("img",{src:e,alt:"Filter"}),I.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?m.h("user-transaction-history-filter",{language:this.language,onApplyFilters:({detail:{from:r,to:i}})=>this.applyFilters(r,i),from:this.from,to:this.to,dateformat:this.dateFormat}):"",((o=this.transactions)===null||o===void 0?void 0:o.length)>0?m.h("div",{class:"table"},this.mobile?m.h("div",{class:"mobile-table"},this.transactions.map(r=>m.h(Ll,Object.assign({},r,{dateformat:this.dateFormat})))):m.h(Bl,{source:this.transactions,language:this.language,dateformat:this.dateFormat})):m.h("div",{class:"noData"},m.h("img",{src:t,alt:"Warning"}),m.h("span",null,I.translate("noData",this.language))),m.h("div",{key:"a58ec540ecc0d4162bb32eae5bd453e37cf7fed1",class:"pagination"},m.h("button",{key:"f21b01b72d7a4470e1cbbefdec50169e6e5bc222",onClick:()=>this.prev()},"<"),m.h("button",{key:"d14d057b3620a30ae3c11a5f22640913c0a1d32e",onClick:()=>this.next()},">"))))}loadTransactions(){return Vt(this,null,function*(){this.showLoader=!0;try{const o=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,e=yield fetch(o,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!e.ok){const r=yield e.text();throw new Error(r)}const t=yield e.json();this.pagination=t.pagination,this.transactions=t.transactions}catch(o){console.error(o)}finally{this.showLoader=!1}})}formatDateForApi(o){const e=Na(o,`${this.dateFormat||"yyyy-MM-dd"}`,new Date);return Ie(e,"yyyy-MM-dd")}getParams(){const o=(this.page*this.pageSize).toString(),e=this.formatDateForApi(this.from),t=this.formatDateForApi(this.to);return`offset=${o}&endDate=${t}&startDate=${e}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return m.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};La.style=Wd;var qd=Object.defineProperty,Yd=Object.defineProperties,jd=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Kd=Object.prototype.propertyIsEnumerable,jr=(o,e,t)=>e in o?qd(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,er=(o,e)=>{for(var t in e||(e={}))Gd.call(e,t)&&jr(o,t,e[t]);if(yo)for(var t of yo(e))Kd.call(e,t)&&jr(o,t,e[t]);return o},Fa=(o,e)=>Yd(o,jd(e)),X=(o,e,t)=>(jr(o,typeof e!="symbol"?e+"":e,t),t),tr=(o,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(d){i(d)}},n=l=>{try{s(t.throw(l))}catch(d){i(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(o,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1,4 +1,4 @@
1
- import { r as ga, g as uo, h as m, H as As, a as Ps, c as Is } from "./index-6e523641-COh-N1ey.js";
1
+ import { r as ga, g as uo, h as m, H as As, a as Ps, c as Is } from "./index-6e523641-BWba88pC.js";
2
2
  const Ss = {
3
3
  en: {
4
4
  deposit: "Deposit",
@@ -14,7 +14,7 @@ var Vt = (o, e, t) => new Promise((r, i) => {
14
14
  }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, n);
15
15
  s((t = t.apply(o, e)).next());
16
16
  });
17
- import { r as ba, g as po, h as m, H as Ps, a as Is, c as Ss } from "./index-6e523641-DBd81xql.js";
17
+ import { r as ba, g as po, h as m, H as Ps, a as Is, c as Ss } from "./index-6e523641-DIHvHPjz.js";
18
18
  const Ds = {
19
19
  en: {
20
20
  deposit: "Deposit",