@worktango/ai-assistant 0.0.78 → 0.0.79

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 (174) hide show
  1. package/dist/{Absenteeism-Dg_fZ7i9.mjs → Absenteeism-DrYkfVDa.mjs} +1 -1
  2. package/dist/{ActivityFeed-COglRa5J.mjs → ActivityFeed-DJ8OjLA7.mjs} +1 -1
  3. package/dist/{AddUser-C_Jk9oVr.mjs → AddUser-DucS94pZ.mjs} +1 -1
  4. package/dist/{Admin-CBmbQnQj.mjs → Admin-BXyoMTZe.mjs} +1 -1
  5. package/dist/{Admin-BAc35Bxb.mjs → Admin-BueKjTmm.mjs} +1 -1
  6. package/dist/{AiGeneral-ujs5GRM4.mjs → AiGeneral-q7shlU8u.mjs} +1 -1
  7. package/dist/{AiScoring-CCCaSBS7.mjs → AiScoring-CCmuxplE.mjs} +1 -1
  8. package/dist/{AiText-DOq0Gi5M.mjs → AiText-B4rYJFTU.mjs} +1 -1
  9. package/dist/{Anniversary-BCAYOp-N.mjs → Anniversary-BGRwADTI.mjs} +1 -1
  10. package/dist/{Appreciation-CrMYQzXb.mjs → Appreciation-CcIok45P.mjs} +1 -1
  11. package/dist/{ArrowDown-NjBh6s4d.mjs → ArrowDown-9JnN0-Qn.mjs} +1 -1
  12. package/dist/{ArrowLeft-BZN75uZi.mjs → ArrowLeft-DfkP2no1.mjs} +1 -1
  13. package/dist/{ArrowRight-DvVzz_m0.mjs → ArrowRight-DoeI3YMY.mjs} +1 -1
  14. package/dist/{ArrowUp-C_lGH_cM.mjs → ArrowUp-80IXew0t.mjs} +1 -1
  15. package/dist/{Attachment-BHh2Bfu9.mjs → Attachment-v0JVp4Rl.mjs} +1 -1
  16. package/dist/{BeQuickDontHurry-CIJLyx3e.mjs → BeQuickDontHurry-BTlAoPej.mjs} +1 -1
  17. package/dist/{Birthday-B9efQbxm.mjs → Birthday-ya9zRCvd.mjs} +1 -1
  18. package/dist/{BrandPromise-WMOUjGn0.mjs → BrandPromise-D9VbOoUm.mjs} +1 -1
  19. package/dist/{BrandVision-wgobxBdt.mjs → BrandVision-CMiyDvz_.mjs} +1 -1
  20. package/dist/{Calendar-CGEj1cY3.mjs → Calendar-DJ289Iqu.mjs} +1 -1
  21. package/dist/{CaretDn--pt2j_S9.mjs → CaretDn-CsPUcE8Q.mjs} +1 -1
  22. package/dist/{CaretDown-DY43ly6K.mjs → CaretDown-BPRmgCEo.mjs} +1 -1
  23. package/dist/{CaretLeft-ClrmxO1U.mjs → CaretLeft-7xbsvHbB.mjs} +1 -1
  24. package/dist/{CaretRight-BRtiZQ6R.mjs → CaretRight-Dc6mGjVG.mjs} +1 -1
  25. package/dist/{CaretUp-Erk6PB00.mjs → CaretUp-CfkM54Y8.mjs} +1 -1
  26. package/dist/{ChallengeAccepted-7WMilDyX.mjs → ChallengeAccepted-TAoP_IT9.mjs} +1 -1
  27. package/dist/{CheckIn-mVnDFqcp.mjs → CheckIn-C2v0-qnA.mjs} +1 -1
  28. package/dist/{CheckIns-DorJKxj2.mjs → CheckIns-CHDn8I3L.mjs} +1 -1
  29. package/dist/{CheckSeal-pDZIiC2p.mjs → CheckSeal-DIIgJldv.mjs} +1 -1
  30. package/dist/{Checkmark-oglu61he.mjs → Checkmark-mKXRqDqz.mjs} +1 -1
  31. package/dist/{Clock-D5frF50A.mjs → Clock-Vk_fVfHY.mjs} +1 -1
  32. package/dist/{Close-BhQAXGW3.mjs → Close-CdsLScrm.mjs} +1 -1
  33. package/dist/{CloudDownload-DuplUdGa.mjs → CloudDownload-n0QjiMG5.mjs} +1 -1
  34. package/dist/{Comment-CZKpAZK6.mjs → Comment-CaSaCq2u.mjs} +1 -1
  35. package/dist/{Comments-BpAKEt0g.mjs → Comments-DisRECR4.mjs} +1 -1
  36. package/dist/{Connections-Dwly4uP0.mjs → Connections-mxEjTuXh.mjs} +1 -1
  37. package/dist/{Copy-5QHxWSjr.mjs → Copy-lsVtAcFQ.mjs} +1 -1
  38. package/dist/{CustomQuestion-9urd2GbP.mjs → CustomQuestion-CyhpGFUV.mjs} +1 -1
  39. package/dist/{CustomerSuccess-BJgu-LRO.mjs → CustomerSuccess-BlNb2M4r.mjs} +1 -1
  40. package/dist/{DatePicker-K0mLiaYS.mjs → DatePicker-wPsq0h9y.mjs} +594 -592
  41. package/dist/{Dot-CBCT3uoR.mjs → Dot-OWWp8SDU.mjs} +1 -1
  42. package/dist/{Download-HjWN9wYK.mjs → Download-Ci2eQ_uW.mjs} +1 -1
  43. package/dist/{Drag-BNnQRIFu.mjs → Drag-CqQEdtSg.mjs} +1 -1
  44. package/dist/{Earn-B5QPgn9R.mjs → Earn-CqCsGHSp.mjs} +1 -1
  45. package/dist/{Email-CKqdUi26.mjs → Email-HMgCHMpS.mjs} +1 -1
  46. package/dist/{EmojiDisplay-FAd03kt8.mjs → EmojiDisplay-rZXLQzfQ.mjs} +2 -2
  47. package/dist/{EmojiPicker-CuljGd8G.mjs → EmojiPicker-C2Xc7kMB.mjs} +2 -2
  48. package/dist/{EnpsSurvey-CTJkfmm5.mjs → EnpsSurvey-CUbME4_B.mjs} +1 -1
  49. package/dist/{Expired-BhQmdLA6.mjs → Expired--Hra3ftj.mjs} +1 -1
  50. package/dist/{Eye-C6PG0Ln_.mjs → Eye-Dul-UcbW.mjs} +1 -1
  51. package/dist/{Feedback-DaZSxBpY.mjs → Feedback-Bp9Yqd_g.mjs} +1 -1
  52. package/dist/{Feedback-B8B95aVb.mjs → Feedback-C3hoUYLF.mjs} +1 -1
  53. package/dist/{Filter-pIyUBZrb.mjs → Filter-CQi-IFnF.mjs} +1 -1
  54. package/dist/{Flag-DhcMNGbf.mjs → Flag-T5CXMbE_.mjs} +1 -1
  55. package/dist/{Giphy-DR-mZYL_.mjs → Giphy-Dqm6MVUX.mjs} +1 -1
  56. package/dist/{GoalCount-VQNJ1o3s.mjs → GoalCount--51BMf9n.mjs} +1 -1
  57. package/dist/{GoalPercent-7P6eAiaL.mjs → GoalPercent-Q5smB5jA.mjs} +1 -1
  58. package/dist/{GoalTask-CoMqB8-f.mjs → GoalTask-BLRYSwnG.mjs} +1 -1
  59. package/dist/{GoalTask--H0Mqvpc.mjs → GoalTask-DfZqK-5M.mjs} +1 -1
  60. package/dist/{Goals-Dh3gkvtr.mjs → Goals-B1YZcSpm.mjs} +1 -1
  61. package/dist/{Goals-C6qLW_fc.mjs → Goals-BTX_OO2e.mjs} +1 -1
  62. package/dist/{Growth-Bb_4scKB.mjs → Growth-BmT2r2su.mjs} +1 -1
  63. package/dist/{Hamburger-h31oRxTk.mjs → Hamburger-C7JW0-fw.mjs} +1 -1
  64. package/dist/{Help-SzkbH4x6.mjs → Help-telSj8qe.mjs} +1 -1
  65. package/dist/{HighFive-DND39sz2.mjs → HighFive-DcUpcp9y.mjs} +1 -1
  66. package/dist/{HighFive-C6qwgba-.mjs → HighFive-EsZKI_-V.mjs} +1 -1
  67. package/dist/{Home-DV4oWmBC.mjs → Home-CCVGlpyt.mjs} +1 -1
  68. package/dist/{Home-DsqYYkMX.mjs → Home-kmfZJmsK.mjs} +1 -1
  69. package/dist/{HorizontalLine-BZknYtuo.mjs → HorizontalLine-B7mx-fy5.mjs} +1 -1
  70. package/dist/{Hourglass-CXGpV9Wi.mjs → Hourglass-D01jDALK.mjs} +1 -1
  71. package/dist/{Image-BcwiHn7_.mjs → Image-Bw9_T0I5.mjs} +1 -1
  72. package/dist/{ImageFile-Cg2vbsqp.mjs → ImageFile-CUQe2a01.mjs} +1 -1
  73. package/dist/{InGoodCompany-CFWpXtL9.mjs → InGoodCompany-C4HpD4MZ.mjs} +1 -1
  74. package/dist/{Incentives-CvaJdp6S.mjs → Incentives-BPkrBak8.mjs} +1 -1
  75. package/dist/{Info-S2-Xsz77.mjs → Info-DHJBYsLd.mjs} +1 -1
  76. package/dist/{Insights-C-1Y3_5f.mjs → Insights-Cm2iweNL.mjs} +1 -1
  77. package/dist/{Insights-DyFHAZ35.mjs → Insights-Dg3tQhZJ.mjs} +1 -1
  78. package/dist/{Integrations-Bu7yoMdB.mjs → Integrations-7zF2pef1.mjs} +1 -1
  79. package/dist/{KazooLogo-BpkAaLt7.mjs → KazooLogo-CPwrz_U2.mjs} +1 -1
  80. package/dist/{KnowYourAudience-BDHg_AAT.mjs → KnowYourAudience-CHu8cdCt.mjs} +1 -1
  81. package/dist/{Launch-CjOSX8FG.mjs → Launch-CaqCKJv_.mjs} +1 -1
  82. package/dist/{Link-9RXb39Iu.mjs → Link-D7jOYEv0.mjs} +1 -1
  83. package/dist/{LinkArrow-BDA30NxB.mjs → LinkArrow-CDagRNfc.mjs} +1 -1
  84. package/dist/{Loading-DBdXeimW.mjs → Loading-Dm3LktEr.mjs} +1 -1
  85. package/dist/{Lock-CCpTlwqo.mjs → Lock-DmE2M-mA.mjs} +1 -1
  86. package/dist/{Management-B3M5x9pU.mjs → Management-CW8KJ8Sz.mjs} +1 -1
  87. package/dist/{MeatballMenu-B_ssXQSU.mjs → MeatballMenu-B5cjClSa.mjs} +1 -1
  88. package/dist/{Messages-DzFY-bQO.mjs → Messages-DBjIACKX.mjs} +1 -1
  89. package/dist/{Microphone-BS8pNLgX.mjs → Microphone-D4nAW6EV.mjs} +1 -1
  90. package/dist/{Mobile-CW9PZcrz.mjs → Mobile-DyfUwrd8.mjs} +1 -1
  91. package/dist/{Nomination-1UcYiDIA.mjs → Nomination-Banwavrf.mjs} +1 -1
  92. package/dist/{NominationsAndAwards-BQjJAATI.mjs → NominationsAndAwards-BQUYuEgm.mjs} +1 -1
  93. package/dist/{Notification-B0Rekjvr.mjs → Notification-CluQUlRT.mjs} +1 -1
  94. package/dist/{Okrs-CTwE45Oe.mjs → Okrs-B1R3soIm.mjs} +1 -1
  95. package/dist/{Pause-D5u019N6.mjs → Pause-B5PrJBBP.mjs} +1 -1
  96. package/dist/{PeerToPeer-Ct5Ipwve.mjs → PeerToPeer-BcAgI7Tm.mjs} +1 -1
  97. package/dist/{Pencil-MbTfFzwM.mjs → Pencil-BM8Du6ej.mjs} +1 -1
  98. package/dist/{People-BUNKaptO.mjs → People-CNglLCgn.mjs} +1 -1
  99. package/dist/{PerformanceManagement-BCkpvGbN.mjs → PerformanceManagement-BtlgnxHc.mjs} +1 -1
  100. package/dist/{Pin-GaR2G49w.mjs → Pin-CxwXPFgR.mjs} +1 -1
  101. package/dist/{PinnedIconAward-BhcQC9tq.mjs → PinnedIconAward-C2qWDe01.mjs} +1 -1
  102. package/dist/{PinnedIconBrightIdea-wQDrL8va.mjs → PinnedIconBrightIdea-BLmufHOx.mjs} +1 -1
  103. package/dist/{PinnedIconBullseye-BsCsZU5f.mjs → PinnedIconBullseye-CIt1Hcl8.mjs} +1 -1
  104. package/dist/{PinnedIconChampagne-Bv2spMcw.mjs → PinnedIconChampagne-CNNxkTIY.mjs} +1 -1
  105. package/dist/{PinnedIconCheer-Dgv2y4nx.mjs → PinnedIconCheer-_LbS4pea.mjs} +1 -1
  106. package/dist/{PinnedIconCrown-BBXNEDd5.mjs → PinnedIconCrown-E_-9qywu.mjs} +1 -1
  107. package/dist/{PinnedIconDiamond-KVo5_OXC.mjs → PinnedIconDiamond-DgNKfOnm.mjs} +1 -1
  108. package/dist/{PinnedIconHoleInOne-CYDROEq0.mjs → PinnedIconHoleInOne-BIy2It99.mjs} +1 -1
  109. package/dist/{PinnedIconMedal-ROvYkTWc.mjs → PinnedIconMedal-ZA43MX0m.mjs} +1 -1
  110. package/dist/{PinnedIconMetrics-xpzWoyey.mjs → PinnedIconMetrics-Bq4LQPko.mjs} +1 -1
  111. package/dist/{PinnedIconPin-Dd8gLkrc.mjs → PinnedIconPin-epYJ2eJg.mjs} +1 -1
  112. package/dist/{PinnedIconRockAndRoll-DfL7a4tQ.mjs → PinnedIconRockAndRoll-BUby7Tr8.mjs} +1 -1
  113. package/dist/{PinnedIconRocket-BtVceYBh.mjs → PinnedIconRocket-Bgs86Up_.mjs} +1 -1
  114. package/dist/{PinnedIconStrength-BKC1q3R4.mjs → PinnedIconStrength-B7KleGS-.mjs} +1 -1
  115. package/dist/{PinnedIconTeddyBear-BLZNgZYW.mjs → PinnedIconTeddyBear-BrLQa6BU.mjs} +1 -1
  116. package/dist/{PlatformLogo-DEG2Kn5W.mjs → PlatformLogo-BNgDM6Es.mjs} +1 -1
  117. package/dist/{Plus-D-Cvsgsx.mjs → Plus-Do9L2HeS.mjs} +1 -1
  118. package/dist/{Popper-BI-9DNPC.mjs → Popper-DtxAMIzm.mjs} +1 -1
  119. package/dist/{PrivateEye-nbcg_7WN.mjs → PrivateEye-CY57N-Ab.mjs} +1 -1
  120. package/dist/{PrivatePushPin-BcGCrWCF.mjs → PrivatePushPin-guwTGe5t.mjs} +1 -1
  121. package/dist/{Processing-CRPh9Jon.mjs → Processing-GffFx6fx.mjs} +1 -1
  122. package/dist/{Productivity-CQYxW4Xl.mjs → Productivity-B4W4pqhe.mjs} +1 -1
  123. package/dist/{ProgressCircle-i7I0bAya.mjs → ProgressCircle-Dd3roh5I.mjs} +1 -1
  124. package/dist/{PulseSurvey-QnxdZLEQ.mjs → PulseSurvey-sy1hiiLI.mjs} +1 -1
  125. package/dist/{PushPin-DlKBE_cG.mjs → PushPin-CHfZ0wEg.mjs} +1 -1
  126. package/dist/{Recognition-BNlXiutO.mjs → Recognition-B6vNRC53.mjs} +1 -1
  127. package/dist/{Recognition-B2Py-VKk.mjs → Recognition-BEqO3J-J.mjs} +1 -1
  128. package/dist/{Retention-DluxNRWW.mjs → Retention-xaiayWLA.mjs} +1 -1
  129. package/dist/{Rewards-B3a1WfKb.mjs → Rewards-CcBcy6pI.mjs} +1 -1
  130. package/dist/{Rewards-DJja8jfV.mjs → Rewards-DfGkbNRT.mjs} +1 -1
  131. package/dist/{RewardsCatalog-BflVT1EC.mjs → RewardsCatalog-Bjx4woxP.mjs} +1 -1
  132. package/dist/{Roadmap-C-lG3GIZ.mjs → Roadmap-0hBVgfWU.mjs} +1 -1
  133. package/dist/{Search-B1BB0eqb.mjs → Search-TTI8LwPH.mjs} +1 -1
  134. package/dist/{Security-BQPu4FlK.mjs → Security-DlnR0kp3.mjs} +1 -1
  135. package/dist/{SendRecognition-BHQSFqMq.mjs → SendRecognition-C32fHeo3.mjs} +1 -1
  136. package/dist/{ShareLink-Dx_wrcxy.mjs → ShareLink-ZDng2ley.mjs} +1 -1
  137. package/dist/{Skill-DtZSSa1W.mjs → Skill-Z9Ws-4Q1.mjs} +1 -1
  138. package/dist/{Skills-DjwD6x93.mjs → Skills-HUTpPuMO.mjs} +1 -1
  139. package/dist/{Smiley-on0k6YPH.mjs → Smiley-DZNrsQH4.mjs} +1 -1
  140. package/dist/{Stop-D0K80Qce.mjs → Stop-BsQFXtBK.mjs} +1 -1
  141. package/dist/{Survey-c3E0tP1i.mjs → Survey-C49Fp58P.mjs} +1 -1
  142. package/dist/{Surveys-Bxnsggib.mjs → Surveys-BceZ8rFM.mjs} +1 -1
  143. package/dist/{SyncUps-CIRVgYQ-.mjs → SyncUps-SeqSaFS-.mjs} +1 -1
  144. package/dist/{Syncs-CLx--iZE.mjs → Syncs-B3A251hQ.mjs} +1 -1
  145. package/dist/{TalentReview-4Y_QuqoG.mjs → TalentReview-D3KEd7m9.mjs} +1 -1
  146. package/dist/{TalentReview-CCg_JSXn.mjs → TalentReview-IFxm1gmj.mjs} +1 -1
  147. package/dist/{TalentReviewInsights-q_OZU7W2.mjs → TalentReviewInsights-DLlM5RBW.mjs} +1 -1
  148. package/dist/{TaskCompleted-BvaN492J.mjs → TaskCompleted-s2d2bOUy.mjs} +1 -1
  149. package/dist/{Team-DFOLY8M9.mjs → Team--tTDnlu6.mjs} +1 -1
  150. package/dist/{Teams-C0fGA9KV.mjs → Teams-Dnlv2F9v.mjs} +1 -1
  151. package/dist/{TextBold-CRDnyQLz.mjs → TextBold-IqmAGMEz.mjs} +1 -1
  152. package/dist/{TextBulletList-DWrlrLq5.mjs → TextBulletList-V9AH2Ccz.mjs} +1 -1
  153. package/dist/{TextInput-CeCIjH8S.mjs → TextInput-BYTslFHQ.mjs} +1 -1
  154. package/dist/{TextItalic-CrIxANss.mjs → TextItalic-CNGZl8Oq.mjs} +1 -1
  155. package/dist/{TextNumberList-kCGOjvPX.mjs → TextNumberList-BEbgUf2r.mjs} +1 -1
  156. package/dist/{TextUnderline-Dq22dFeX.mjs → TextUnderline-BymqhFVz.mjs} +1 -1
  157. package/dist/{Toggle-RMcXyVrD.mjs → Toggle-CG5TIZxV.mjs} +1 -1
  158. package/dist/{Translate-BphFX0t3.mjs → Translate-BcS8Vhnc.mjs} +1 -1
  159. package/dist/{Trash-CHDqG8FY.mjs → Trash-YsH2ApuD.mjs} +1 -1
  160. package/dist/{TrendDown-CYlBvASH.mjs → TrendDown-DQd_uGhS.mjs} +1 -1
  161. package/dist/{TrendUp-ChkZAWJ4.mjs → TrendUp-UxM-sYJt.mjs} +1 -1
  162. package/dist/{Undo-CkUmBxq_.mjs → Undo-CVnsoD6E.mjs} +1 -1
  163. package/dist/{Unplugged-BUaVDlnN.mjs → Unplugged-C1S4eFTD.mjs} +1 -1
  164. package/dist/{UpDownCaret-ybEfKCZv.mjs → UpDownCaret-BBaPCKLF.mjs} +1 -1
  165. package/dist/{VerticalLine-CsBpV6Oo.mjs → VerticalLine-ChgN6O4K.mjs} +1 -1
  166. package/dist/{Warning-nDCEhwU1.mjs → Warning-DM9IbguY.mjs} +1 -1
  167. package/dist/{WarningNoOutline-D9uaKW9Y.mjs → WarningNoOutline-iCb2sMt0.mjs} +1 -1
  168. package/dist/{YesAnd-Bk67vjC3.mjs → YesAnd-IRm0h59w.mjs} +1 -1
  169. package/dist/{emoji-CN2teL9N.mjs → emoji-5moCccH8.mjs} +1 -1
  170. package/dist/{react-apexcharts.min-DFEe__UE.mjs → react-apexcharts.min-DvYVek0y.mjs} +1 -1
  171. package/dist/react.es.js +1 -1
  172. package/dist/react.umd.js +148 -148
  173. package/dist/{reactComponent-DEnE0Fkn.mjs → reactComponent-KwH4KPa1.mjs} +190 -190
  174. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { j as ae, r as zn, g as $n, a as xe, i as _e, b as Pe, C as Zn, I as cn } from "./reactComponent-DEnE0Fkn.mjs";
1
+ import { j as ie, r as zn, g as $n, a as xe, i as _e, b as Pe, C as Zn, I as cn } from "./reactComponent-KwH4KPa1.mjs";
2
2
  import Ae, { useMemo as dn, useRef as pn, useImperativeHandle as Xn, useEffect as Qn, useCallback as gn } from "react";
3
3
  var qe = [
4
4
  "onChange",
@@ -13,7 +13,7 @@ var qe = [
13
13
  "onValueUpdate",
14
14
  "onYearChange",
15
15
  "onPreCalendarPosition"
16
- ], be = {
16
+ ], De = {
17
17
  _disable: [],
18
18
  allowInput: !1,
19
19
  allowInvalidPreload: !1,
@@ -145,9 +145,9 @@ var qe = [
145
145
  hourAriaLabel: "Hour",
146
146
  minuteAriaLabel: "Minute",
147
147
  time_24hr: !1
148
- }, $ = function(a, i) {
148
+ }, Z = function(a, i) {
149
149
  return i === void 0 && (i = 2), ("000" + a).slice(i * -1);
150
- }, re = function(a) {
150
+ }, oe = function(a) {
151
151
  return a === !0 ? 1 : 0;
152
152
  };
153
153
  function mn(a, i) {
@@ -162,12 +162,12 @@ function mn(a, i) {
162
162
  var Ke = function(a) {
163
163
  return a instanceof Array ? a : [a];
164
164
  };
165
- function G(a, i, e) {
165
+ function V(a, i, e) {
166
166
  if (e === !0)
167
167
  return a.classList.add(i);
168
168
  a.classList.remove(i);
169
169
  }
170
- function F(a, i, e) {
170
+ function j(a, i, e) {
171
171
  var s = window.document.createElement(a);
172
172
  return i = i || "", e = e || "", s.className = i, e !== void 0 && (s.textContent = e), s;
173
173
  }
@@ -182,13 +182,13 @@ function Cn(a, i) {
182
182
  return Cn(a.parentNode, i);
183
183
  }
184
184
  function je(a, i) {
185
- var e = F("div", "numInputWrapper"), s = F("input", "numInput " + a), f = F("span", "arrowUp"), p = F("span", "arrowDown");
185
+ var e = j("div", "numInputWrapper"), s = j("input", "numInput " + a), f = j("span", "arrowUp"), p = j("span", "arrowDown");
186
186
  if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? s.type = "number" : (s.type = "text", s.pattern = "\\d*"), i !== void 0)
187
- for (var b in i)
188
- s.setAttribute(b, i[b]);
187
+ for (var D in i)
188
+ s.setAttribute(D, i[D]);
189
189
  return e.appendChild(s), e.appendChild(f), e.appendChild(p), e;
190
190
  }
191
- function Q(a) {
191
+ function ne(a) {
192
192
  try {
193
193
  if (typeof a.composedPath == "function") {
194
194
  var i = a.composedPath();
@@ -217,7 +217,7 @@ var Ue = function() {
217
217
  a.setDate(parseFloat(i));
218
218
  },
219
219
  K: function(a, i, e) {
220
- a.setHours(a.getHours() % 12 + 12 * re(new RegExp(e.amPM[1], "i").test(i)));
220
+ a.setHours(a.getHours() % 12 + 12 * oe(new RegExp(e.amPM[1], "i").test(i)));
221
221
  },
222
222
  M: function(a, i, e) {
223
223
  a.setMonth(e.months.shorthand.indexOf(i));
@@ -267,7 +267,7 @@ var Ue = function() {
267
267
  y: function(a, i) {
268
268
  a.setFullYear(2e3 + parseFloat(i));
269
269
  }
270
- }, he = {
270
+ }, ve = {
271
271
  D: "",
272
272
  F: "",
273
273
  G: "(\\d\\d|\\d)",
@@ -302,22 +302,22 @@ var Ue = function() {
302
302
  return Ye(Ee.n(a, i, e) - 1, !1, i);
303
303
  },
304
304
  G: function(a, i, e) {
305
- return $(Ee.h(a, i, e));
305
+ return Z(Ee.h(a, i, e));
306
306
  },
307
307
  H: function(a) {
308
- return $(a.getHours());
308
+ return Z(a.getHours());
309
309
  },
310
310
  J: function(a, i) {
311
311
  return i.ordinal !== void 0 ? a.getDate() + i.ordinal(a.getDate()) : a.getDate();
312
312
  },
313
313
  K: function(a, i) {
314
- return i.amPM[re(a.getHours() > 11)];
314
+ return i.amPM[oe(a.getHours() > 11)];
315
315
  },
316
316
  M: function(a, i) {
317
317
  return Ye(a.getMonth(), !0, i);
318
318
  },
319
319
  S: function(a) {
320
- return $(a.getSeconds());
320
+ return Z(a.getSeconds());
321
321
  },
322
322
  U: function(a) {
323
323
  return a.getTime() / 1e3;
@@ -326,16 +326,16 @@ var Ue = function() {
326
326
  return e.getWeek(a);
327
327
  },
328
328
  Y: function(a) {
329
- return $(a.getFullYear(), 4);
329
+ return Z(a.getFullYear(), 4);
330
330
  },
331
331
  d: function(a) {
332
- return $(a.getDate());
332
+ return Z(a.getDate());
333
333
  },
334
334
  h: function(a) {
335
335
  return a.getHours() % 12 ? a.getHours() % 12 : 12;
336
336
  },
337
337
  i: function(a) {
338
- return $(a.getMinutes());
338
+ return Z(a.getMinutes());
339
339
  },
340
340
  j: function(a) {
341
341
  return a.getDate();
@@ -344,7 +344,7 @@ var Ue = function() {
344
344
  return i.weekdays.longhand[a.getDay()];
345
345
  },
346
346
  m: function(a) {
347
- return $(a.getMonth() + 1);
347
+ return Z(a.getMonth() + 1);
348
348
  },
349
349
  n: function(a) {
350
350
  return a.getMonth() + 1;
@@ -362,46 +362,46 @@ var Ue = function() {
362
362
  return String(a.getFullYear()).substring(2);
363
363
  }
364
364
  }, Mn = function(a) {
365
- var i = a.config, e = i === void 0 ? be : i, s = a.l10n, f = s === void 0 ? Te : s, p = a.isMobile, b = p === void 0 ? !1 : p;
366
- return function(M, j, S) {
367
- var y = S || f;
368
- return e.formatDate !== void 0 && !b ? e.formatDate(M, j, y) : j.split("").map(function(H, L, O) {
369
- return Ee[H] && O[L - 1] !== "\\" ? Ee[H](M, y, e) : H !== "\\" ? H : "";
365
+ var i = a.config, e = i === void 0 ? De : i, s = a.l10n, f = s === void 0 ? Te : s, p = a.isMobile, D = p === void 0 ? !1 : p;
366
+ return function(M, F, _) {
367
+ var y = _ || f;
368
+ return e.formatDate !== void 0 && !D ? e.formatDate(M, F, y) : F.split("").map(function(H, L, I) {
369
+ return Ee[H] && I[L - 1] !== "\\" ? Ee[H](M, y, e) : H !== "\\" ? H : "";
370
370
  }).join("");
371
371
  };
372
372
  }, Xe = function(a) {
373
- var i = a.config, e = i === void 0 ? be : i, s = a.l10n, f = s === void 0 ? Te : s;
374
- return function(p, b, M, j) {
373
+ var i = a.config, e = i === void 0 ? De : i, s = a.l10n, f = s === void 0 ? Te : s;
374
+ return function(p, D, M, F) {
375
375
  if (!(p !== 0 && !p)) {
376
- var S = j || f, y, H = p;
376
+ var _ = F || f, y, H = p;
377
377
  if (p instanceof Date)
378
378
  y = new Date(p.getTime());
379
379
  else if (typeof p != "string" && p.toFixed !== void 0)
380
380
  y = new Date(p);
381
381
  else if (typeof p == "string") {
382
- var L = b || (e || be).dateFormat, O = String(p).trim();
383
- if (O === "today")
382
+ var L = D || (e || De).dateFormat, I = String(p).trim();
383
+ if (I === "today")
384
384
  y = /* @__PURE__ */ new Date(), M = !0;
385
385
  else if (e && e.parseDate)
386
386
  y = e.parseDate(p, L);
387
- else if (/Z$/.test(O) || /GMT$/.test(O))
387
+ else if (/Z$/.test(I) || /GMT$/.test(I))
388
388
  y = new Date(p);
389
389
  else {
390
- for (var R = void 0, v = [], U = 0, V = 0, q = ""; U < L.length; U++) {
391
- var ie = L[U], fe = ie === "\\", ge = L[U - 1] === "\\" || fe;
392
- if (he[ie] && !ge) {
393
- q += he[ie];
394
- var oe = new RegExp(q).exec(p);
395
- oe && (R = !0) && v[ie !== "Y" ? "push" : "unshift"]({
396
- fn: et[ie],
397
- val: oe[++V]
390
+ for (var W = void 0, v = [], U = 0, ae = 0, B = ""; U < L.length; U++) {
391
+ var z = L[U], fe = z === "\\", pe = L[U - 1] === "\\" || fe;
392
+ if (ve[z] && !pe) {
393
+ B += ve[z];
394
+ var ue = new RegExp(B).exec(p);
395
+ ue && (W = !0) && v[z !== "Y" ? "push" : "unshift"]({
396
+ fn: et[z],
397
+ val: ue[++ae]
398
398
  });
399
- } else fe || (q += ".");
399
+ } else fe || (B += ".");
400
400
  }
401
- y = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), v.forEach(function(ue) {
402
- var se = ue.fn, pe = ue.val;
403
- return y = se(y, pe, S) || y;
404
- }), y = R ? y : void 0;
401
+ y = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), v.forEach(function(se) {
402
+ var le = se.fn, ge = se.val;
403
+ return y = le(y, ge, _) || y;
404
+ }), y = W ? y : void 0;
405
405
  }
406
406
  }
407
407
  if (!(y instanceof Date && !isNaN(y.getTime()))) {
@@ -412,7 +412,7 @@ var Ue = function() {
412
412
  }
413
413
  };
414
414
  };
415
- function ee(a, i, e) {
415
+ function te(a, i, e) {
416
416
  return e === void 0 && (e = !0), e !== !1 ? new Date(a.getTime()).setHours(0, 0, 0, 0) - new Date(i.getTime()).setHours(0, 0, 0, 0) : a.getTime() - i.getTime();
417
417
  }
418
418
  var nt = function(a, i, e) {
@@ -428,12 +428,12 @@ var nt = function(a, i, e) {
428
428
  function Ve(a) {
429
429
  var i = a.defaultHour, e = a.defaultMinute, s = a.defaultSeconds;
430
430
  if (a.minDate !== void 0) {
431
- var f = a.minDate.getHours(), p = a.minDate.getMinutes(), b = a.minDate.getSeconds();
432
- i < f && (i = f), i === f && e < p && (e = p), i === f && e === p && s < b && (s = a.minDate.getSeconds());
431
+ var f = a.minDate.getHours(), p = a.minDate.getMinutes(), D = a.minDate.getSeconds();
432
+ i < f && (i = f), i === f && e < p && (e = p), i === f && e === p && s < D && (s = a.minDate.getSeconds());
433
433
  }
434
434
  if (a.maxDate !== void 0) {
435
- var M = a.maxDate.getHours(), j = a.maxDate.getMinutes();
436
- i = Math.min(i, M), i === M && (e = Math.min(j, e)), i === M && e === j && (s = a.maxDate.getSeconds());
435
+ var M = a.maxDate.getHours(), F = a.maxDate.getMinutes();
436
+ i = Math.min(i, M), i === M && (e = Math.min(F, e)), i === M && e === F && (s = a.maxDate.getSeconds());
437
437
  }
438
438
  return { hours: i, minutes: e, seconds: s };
439
439
  }
@@ -443,12 +443,12 @@ typeof Object.assign != "function" && (Object.assign = function(a) {
443
443
  if (!a)
444
444
  throw TypeError("Cannot convert undefined or null to object");
445
445
  for (var s = function(M) {
446
- M && Object.keys(M).forEach(function(j) {
447
- return a[j] = M[j];
446
+ M && Object.keys(M).forEach(function(F) {
447
+ return a[F] = M[F];
448
448
  });
449
449
  }, f = 0, p = i; f < p.length; f++) {
450
- var b = p[f];
451
- s(b);
450
+ var D = p[f];
451
+ s(D);
452
452
  }
453
453
  return a;
454
454
  });
@@ -463,16 +463,16 @@ var J = function() {
463
463
  }, hn = function() {
464
464
  for (var a = 0, i = 0, e = arguments.length; i < e; i++) a += arguments[i].length;
465
465
  for (var s = Array(a), f = 0, i = 0; i < e; i++)
466
- for (var p = arguments[i], b = 0, M = p.length; b < M; b++, f++)
467
- s[f] = p[b];
466
+ for (var p = arguments[i], D = 0, M = p.length; D < M; D++, f++)
467
+ s[f] = p[D];
468
468
  return s;
469
469
  }, rt = 300;
470
470
  function it(a, i) {
471
471
  var e = {
472
- config: J(J({}, be), K.defaultConfig),
472
+ config: J(J({}, De), K.defaultConfig),
473
473
  l10n: Te
474
474
  };
475
- e.parseDate = Xe({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = L, e._positionCalendar = Oe, e.changeMonth = P, e.changeYear = te, e.clear = _, e.close = w, e.onMouseOver = ke, e._createElement = F, e.createDay = oe, e.destroy = T, e.isEnabled = Z, e.jumpToDate = q, e.updateValue = de, e.open = kn, e.redraw = on, e.set = _n, e.setDate = Pn, e.toggle = Nn;
475
+ e.parseDate = Xe({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = L, e._positionCalendar = Oe, e.changeMonth = A, e.changeYear = re, e.clear = P, e.close = E, e.onMouseOver = ke, e._createElement = j, e.createDay = ue, e.destroy = T, e.isEnabled = Q, e.jumpToDate = B, e.updateValue = de, e.open = kn, e.redraw = on, e.set = _n, e.setDate = Pn, e.toggle = Nn;
476
476
  function s() {
477
477
  e.utils = {
478
478
  getDaysInMonth: function(n, t) {
@@ -481,15 +481,15 @@ function it(a, i) {
481
481
  };
482
482
  }
483
483
  function f() {
484
- e.element = e.input = a, e.isOpen = !1, On(), rn(), Fn(), An(), s(), e.isMobile || ge(), V(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && L(e.config.noCalendar ? e.latestSelectedDateObj : void 0), de(!1)), M();
484
+ e.element = e.input = a, e.isOpen = !1, On(), rn(), Fn(), An(), s(), e.isMobile || pe(), ae(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && L(e.config.noCalendar ? e.latestSelectedDateObj : void 0), de(!1)), M();
485
485
  var n = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
486
- !e.isMobile && n && Oe(), B("onReady");
486
+ !e.isMobile && n && Oe(), R("onReady");
487
487
  }
488
488
  function p() {
489
489
  var n;
490
490
  return ((n = e.calendarContainer) === null || n === void 0 ? void 0 : n.getRootNode()).activeElement || document.activeElement;
491
491
  }
492
- function b(n) {
492
+ function D(n) {
493
493
  return n.bind(e);
494
494
  }
495
495
  function M() {
@@ -501,17 +501,17 @@ function it(a, i) {
501
501
  }
502
502
  });
503
503
  }
504
- function j(n) {
504
+ function F(n) {
505
505
  if (e.selectedDates.length === 0) {
506
- var t = e.config.minDate === void 0 || ee(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), r = Ve(e.config);
506
+ var t = e.config.minDate === void 0 || te(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), r = Ve(e.config);
507
507
  t.setHours(r.hours, r.minutes, r.seconds, t.getMilliseconds()), e.selectedDates = [t], e.latestSelectedDateObj = t;
508
508
  }
509
509
  n !== void 0 && n.type !== "blur" && Ln(n);
510
510
  var o = e._input.value;
511
511
  H(), de(), e._input.value !== o && e._debouncedChange();
512
512
  }
513
- function S(n, t) {
514
- return n % 12 + 12 * re(t === e.l10n.amPM[1]);
513
+ function _(n, t) {
514
+ return n % 12 + 12 * oe(t === e.l10n.amPM[1]);
515
515
  }
516
516
  function y(n) {
517
517
  switch (n % 24) {
@@ -525,16 +525,16 @@ function it(a, i) {
525
525
  function H() {
526
526
  if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
527
527
  var n = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, t = (parseInt(e.minuteElement.value, 10) || 0) % 60, r = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
528
- e.amPM !== void 0 && (n = S(n, e.amPM.textContent));
529
- var o = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && ee(e.latestSelectedDateObj, e.config.minDate, !0) === 0, l = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && ee(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
528
+ e.amPM !== void 0 && (n = _(n, e.amPM.textContent));
529
+ var o = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && te(e.latestSelectedDateObj, e.config.minDate, !0) === 0, u = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && te(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
530
530
  if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
531
- var c = Je(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), D = Je(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), g = Je(n, t, r);
532
- if (g > D && g < c) {
531
+ var c = Je(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), b = Je(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), g = Je(n, t, r);
532
+ if (g > b && g < c) {
533
533
  var C = tt(c);
534
534
  n = C[0], t = C[1], r = C[2];
535
535
  }
536
536
  } else {
537
- if (l) {
537
+ if (u) {
538
538
  var d = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
539
539
  n = Math.min(n, d.getHours()), n === d.getHours() && (t = Math.min(t, d.getMinutes())), t === d.getMinutes() && (r = Math.min(r, d.getSeconds()));
540
540
  }
@@ -543,28 +543,28 @@ function it(a, i) {
543
543
  n = Math.max(n, h.getHours()), n === h.getHours() && t < h.getMinutes() && (t = h.getMinutes()), t === h.getMinutes() && (r = Math.max(r, h.getSeconds()));
544
544
  }
545
545
  }
546
- O(n, t, r);
546
+ I(n, t, r);
547
547
  }
548
548
  }
549
549
  function L(n) {
550
550
  var t = n || e.latestSelectedDateObj;
551
- t && t instanceof Date && O(t.getHours(), t.getMinutes(), t.getSeconds());
551
+ t && t instanceof Date && I(t.getHours(), t.getMinutes(), t.getSeconds());
552
552
  }
553
- function O(n, t, r) {
554
- e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(n % 24, t, r || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = $(e.config.time_24hr ? n : (12 + n) % 12 + 12 * re(n % 12 === 0)), e.minuteElement.value = $(t), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[re(n >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = $(r)));
553
+ function I(n, t, r) {
554
+ e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(n % 24, t, r || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Z(e.config.time_24hr ? n : (12 + n) % 12 + 12 * oe(n % 12 === 0)), e.minuteElement.value = Z(t), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[oe(n >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Z(r)));
555
555
  }
556
- function R(n) {
557
- var t = Q(n), r = parseInt(t.value) + (n.delta || 0);
558
- (r / 1e3 > 1 || n.key === "Enter" && !/[^\d]/.test(r.toString())) && te(r);
556
+ function W(n) {
557
+ var t = ne(n), r = parseInt(t.value) + (n.delta || 0);
558
+ (r / 1e3 > 1 || n.key === "Enter" && !/[^\d]/.test(r.toString())) && re(r);
559
559
  }
560
560
  function v(n, t, r, o) {
561
561
  if (t instanceof Array)
562
- return t.forEach(function(l) {
563
- return v(n, l, r, o);
562
+ return t.forEach(function(u) {
563
+ return v(n, u, r, o);
564
564
  });
565
565
  if (n instanceof Array)
566
- return n.forEach(function(l) {
567
- return v(l, t, r, o);
566
+ return n.forEach(function(u) {
567
+ return v(u, t, r, o);
568
568
  });
569
569
  n.addEventListener(t, r, o), e._handlers.push({
570
570
  remove: function() {
@@ -573,9 +573,9 @@ function it(a, i) {
573
573
  });
574
574
  }
575
575
  function U() {
576
- B("onChange");
576
+ R("onChange");
577
577
  }
578
- function V() {
578
+ function ae() {
579
579
  if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(r) {
580
580
  Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + r + "]"), function(o) {
581
581
  return v(o, "click", e[r]);
@@ -586,102 +586,102 @@ function it(a, i) {
586
586
  }
587
587
  var n = mn(Tn, 50);
588
588
  if (e._debouncedChange = mn(U, rt), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && v(e.daysContainer, "mouseover", function(r) {
589
- e.config.mode === "range" && ke(Q(r));
590
- }), v(e._input, "keydown", nn), e.calendarContainer !== void 0 && v(e.calendarContainer, "keydown", nn), !e.config.inline && !e.config.static && v(window, "resize", n), window.ontouchstart !== void 0 ? v(window.document, "touchstart", N) : v(window.document, "mousedown", N), v(window.document, "focus", N, { capture: !0 }), e.config.clickOpens === !0 && (v(e._input, "focus", e.open), v(e._input, "click", e.open)), e.daysContainer !== void 0 && (v(e.monthNav, "click", Hn), v(e.monthNav, ["keyup", "increment"], R), v(e.daysContainer, "click", un)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
589
+ e.config.mode === "range" && ke(ne(r));
590
+ }), v(e._input, "keydown", nn), e.calendarContainer !== void 0 && v(e.calendarContainer, "keydown", nn), !e.config.inline && !e.config.static && v(window, "resize", n), window.ontouchstart !== void 0 ? v(window.document, "touchstart", N) : v(window.document, "mousedown", N), v(window.document, "focus", N, { capture: !0 }), e.config.clickOpens === !0 && (v(e._input, "focus", e.open), v(e._input, "click", e.open)), e.daysContainer !== void 0 && (v(e.monthNav, "click", Hn), v(e.monthNav, ["keyup", "increment"], W), v(e.daysContainer, "click", un)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
591
591
  var t = function(r) {
592
- return Q(r).select();
592
+ return ne(r).select();
593
593
  };
594
- v(e.timeContainer, ["increment"], j), v(e.timeContainer, "blur", j, { capture: !0 }), v(e.timeContainer, "click", ie), v([e.hourElement, e.minuteElement], ["focus", "click"], t), e.secondElement !== void 0 && v(e.secondElement, "focus", function() {
594
+ v(e.timeContainer, ["increment"], F), v(e.timeContainer, "blur", F, { capture: !0 }), v(e.timeContainer, "click", z), v([e.hourElement, e.minuteElement], ["focus", "click"], t), e.secondElement !== void 0 && v(e.secondElement, "focus", function() {
595
595
  return e.secondElement && e.secondElement.select();
596
596
  }), e.amPM !== void 0 && v(e.amPM, "click", function(r) {
597
- j(r);
597
+ F(r);
598
598
  });
599
599
  }
600
600
  e.config.allowInput && v(e._input, "blur", En);
601
601
  }
602
- function q(n, t) {
603
- var r = n !== void 0 ? e.parseDate(n) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), o = e.currentYear, l = e.currentMonth;
602
+ function B(n, t) {
603
+ var r = n !== void 0 ? e.parseDate(n) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), o = e.currentYear, u = e.currentMonth;
604
604
  try {
605
605
  r !== void 0 && (e.currentYear = r.getFullYear(), e.currentMonth = r.getMonth());
606
606
  } catch (c) {
607
607
  c.message = "Invalid date supplied: " + r, e.config.errorHandler(c);
608
608
  }
609
- t && e.currentYear !== o && (B("onYearChange"), le()), t && (e.currentYear !== o || e.currentMonth !== l) && B("onMonthChange"), e.redraw();
609
+ t && e.currentYear !== o && (R("onYearChange"), q()), t && (e.currentYear !== o || e.currentMonth !== u) && R("onMonthChange"), e.redraw();
610
610
  }
611
- function ie(n) {
612
- var t = Q(n);
611
+ function z(n) {
612
+ var t = ne(n);
613
613
  ~t.className.indexOf("arrow") && fe(n, t.classList.contains("arrowUp") ? 1 : -1);
614
614
  }
615
615
  function fe(n, t, r) {
616
- var o = n && Q(n), l = r || o && o.parentNode && o.parentNode.firstChild, c = Le("increment");
617
- c.delta = t, l && l.dispatchEvent(c);
616
+ var o = n && ne(n), u = r || o && o.parentNode && o.parentNode.firstChild, c = Le("increment");
617
+ c.delta = t, u && u.dispatchEvent(c);
618
618
  }
619
- function ge() {
619
+ function pe() {
620
620
  var n = window.document.createDocumentFragment();
621
- if (e.calendarContainer = F("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
622
- if (n.appendChild(u()), e.innerContainer = F("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
623
- var t = E(), r = t.weekWrapper, o = t.weekNumbers;
621
+ if (e.calendarContainer = j("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
622
+ if (n.appendChild(l()), e.innerContainer = j("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
623
+ var t = w(), r = t.weekWrapper, o = t.weekNumbers;
624
624
  e.innerContainer.appendChild(r), e.weekNumbers = o, e.weekWrapper = r;
625
625
  }
626
- e.rContainer = F("div", "flatpickr-rContainer"), e.rContainer.appendChild(I()), e.daysContainer || (e.daysContainer = F("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), W(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), n.appendChild(e.innerContainer);
626
+ e.rContainer = j("div", "flatpickr-rContainer"), e.rContainer.appendChild(S()), e.daysContainer || (e.daysContainer = j("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), $(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), n.appendChild(e.innerContainer);
627
627
  }
628
- e.config.enableTime && n.appendChild(m()), G(e.calendarContainer, "rangeMode", e.config.mode === "range"), G(e.calendarContainer, "animate", e.config.animate === !0), G(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(n);
629
- var l = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
630
- if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!l && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
631
- var c = F("div", "flatpickr-wrapper");
628
+ e.config.enableTime && n.appendChild(m()), V(e.calendarContainer, "rangeMode", e.config.mode === "range"), V(e.calendarContainer, "animate", e.config.animate === !0), V(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(n);
629
+ var u = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
630
+ if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!u && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
631
+ var c = j("div", "flatpickr-wrapper");
632
632
  e.element.parentNode && e.element.parentNode.insertBefore(c, e.element), c.appendChild(e.element), e.altInput && c.appendChild(e.altInput), c.appendChild(e.calendarContainer);
633
633
  }
634
634
  !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
635
635
  }
636
- function oe(n, t, r, o) {
637
- var l = Z(t, !0), c = F("span", n, t.getDate().toString());
638
- return c.dateObj = t, c.$i = o, c.setAttribute("aria-label", e.formatDate(t, e.config.ariaDateFormat)), n.indexOf("hidden") === -1 && ee(t, e.now) === 0 && (e.todayDateElem = c, c.classList.add("today"), c.setAttribute("aria-current", "date")), l ? (c.tabIndex = -1, We(t) && (c.classList.add("selected"), e.selectedDateElem = c, e.config.mode === "range" && (G(c, "startRange", e.selectedDates[0] && ee(t, e.selectedDates[0], !0) === 0), G(c, "endRange", e.selectedDates[1] && ee(t, e.selectedDates[1], !0) === 0), n === "nextMonthDay" && c.classList.add("inRange")))) : c.classList.add("flatpickr-disabled"), e.config.mode === "range" && Yn(t) && !We(t) && c.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && n !== "prevMonthDay" && o % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(t) + "</span>"), B("onDayCreate", c), c;
636
+ function ue(n, t, r, o) {
637
+ var u = Q(t, !0), c = j("span", n, t.getDate().toString());
638
+ return c.dateObj = t, c.$i = o, c.setAttribute("aria-label", e.formatDate(t, e.config.ariaDateFormat)), n.indexOf("hidden") === -1 && te(t, e.now) === 0 && (e.todayDateElem = c, c.classList.add("today"), c.setAttribute("aria-current", "date")), u ? (c.tabIndex = -1, We(t) && (c.classList.add("selected"), e.selectedDateElem = c, e.config.mode === "range" && (V(c, "startRange", e.selectedDates[0] && te(t, e.selectedDates[0], !0) === 0), V(c, "endRange", e.selectedDates[1] && te(t, e.selectedDates[1], !0) === 0), n === "nextMonthDay" && c.classList.add("inRange")))) : c.classList.add("flatpickr-disabled"), e.config.mode === "range" && Yn(t) && !We(t) && c.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && n !== "prevMonthDay" && o % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(t) + "</span>"), R("onDayCreate", c), c;
639
639
  }
640
- function ue(n) {
640
+ function se(n) {
641
641
  n.focus(), e.config.mode === "range" && ke(n);
642
642
  }
643
- function se(n) {
643
+ function le(n) {
644
644
  for (var t = n > 0 ? 0 : e.config.showMonths - 1, r = n > 0 ? e.config.showMonths : -1, o = t; o != r; o += n)
645
- for (var l = e.daysContainer.children[o], c = n > 0 ? 0 : l.children.length - 1, D = n > 0 ? l.children.length : -1, g = c; g != D; g += n) {
646
- var C = l.children[g];
647
- if (C.className.indexOf("hidden") === -1 && Z(C.dateObj))
645
+ for (var u = e.daysContainer.children[o], c = n > 0 ? 0 : u.children.length - 1, b = n > 0 ? u.children.length : -1, g = c; g != b; g += n) {
646
+ var C = u.children[g];
647
+ if (C.className.indexOf("hidden") === -1 && Q(C.dateObj))
648
648
  return C;
649
649
  }
650
650
  }
651
- function pe(n, t) {
652
- for (var r = n.className.indexOf("Month") === -1 ? n.dateObj.getMonth() : e.currentMonth, o = t > 0 ? e.config.showMonths : -1, l = t > 0 ? 1 : -1, c = r - e.currentMonth; c != o; c += l)
653
- for (var D = e.daysContainer.children[c], g = r - e.currentMonth === c ? n.$i + t : t < 0 ? D.children.length - 1 : 0, C = D.children.length, d = g; d >= 0 && d < C && d != (t > 0 ? C : -1); d += l) {
654
- var h = D.children[d];
655
- if (h.className.indexOf("hidden") === -1 && Z(h.dateObj) && Math.abs(n.$i - d) >= Math.abs(t))
656
- return ue(h);
651
+ function ge(n, t) {
652
+ for (var r = n.className.indexOf("Month") === -1 ? n.dateObj.getMonth() : e.currentMonth, o = t > 0 ? e.config.showMonths : -1, u = t > 0 ? 1 : -1, c = r - e.currentMonth; c != o; c += u)
653
+ for (var b = e.daysContainer.children[c], g = r - e.currentMonth === c ? n.$i + t : t < 0 ? b.children.length - 1 : 0, C = b.children.length, d = g; d >= 0 && d < C && d != (t > 0 ? C : -1); d += u) {
654
+ var h = b.children[d];
655
+ if (h.className.indexOf("hidden") === -1 && Q(h.dateObj) && Math.abs(n.$i - d) >= Math.abs(t))
656
+ return se(h);
657
657
  }
658
- e.changeMonth(l), ne(se(l), 0);
659
- }
660
- function ne(n, t) {
661
- var r = p(), o = me(r || document.body), l = n !== void 0 ? n : o ? r : e.selectedDateElem !== void 0 && me(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && me(e.todayDateElem) ? e.todayDateElem : se(t > 0 ? 1 : -1);
662
- l === void 0 ? e._input.focus() : o ? pe(l, t) : ue(l);
663
- }
664
- function Ce(n, t) {
665
- for (var r = (new Date(n, t, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, o = e.utils.getDaysInMonth((t - 1 + 12) % 12, n), l = e.utils.getDaysInMonth(t, n), c = window.document.createDocumentFragment(), D = e.config.showMonths > 1, g = D ? "prevMonthDay hidden" : "prevMonthDay", C = D ? "nextMonthDay hidden" : "nextMonthDay", d = o + 1 - r, h = 0; d <= o; d++, h++)
666
- c.appendChild(oe("flatpickr-day " + g, new Date(n, t - 1, d), d, h));
667
- for (d = 1; d <= l; d++, h++)
668
- c.appendChild(oe("flatpickr-day", new Date(n, t, d), d, h));
669
- for (var Y = l + 1; Y <= 42 - r && (e.config.showMonths === 1 || h % 7 !== 0); Y++, h++)
670
- c.appendChild(oe("flatpickr-day " + C, new Date(n, t + 1, Y % l), Y, h));
671
- var ce = F("div", "dayContainer");
658
+ e.changeMonth(u), X(le(u), 0);
659
+ }
660
+ function X(n, t) {
661
+ var r = p(), o = he(r || document.body), u = n !== void 0 ? n : o ? r : e.selectedDateElem !== void 0 && he(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && he(e.todayDateElem) ? e.todayDateElem : le(t > 0 ? 1 : -1);
662
+ u === void 0 ? e._input.focus() : o ? ge(u, t) : se(u);
663
+ }
664
+ function we(n, t) {
665
+ for (var r = (new Date(n, t, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, o = e.utils.getDaysInMonth((t - 1 + 12) % 12, n), u = e.utils.getDaysInMonth(t, n), c = window.document.createDocumentFragment(), b = e.config.showMonths > 1, g = b ? "prevMonthDay hidden" : "prevMonthDay", C = b ? "nextMonthDay hidden" : "nextMonthDay", d = o + 1 - r, h = 0; d <= o; d++, h++)
666
+ c.appendChild(ue("flatpickr-day " + g, new Date(n, t - 1, d), d, h));
667
+ for (d = 1; d <= u; d++, h++)
668
+ c.appendChild(ue("flatpickr-day", new Date(n, t, d), d, h));
669
+ for (var Y = u + 1; Y <= 42 - r && (e.config.showMonths === 1 || h % 7 !== 0); Y++, h++)
670
+ c.appendChild(ue("flatpickr-day " + C, new Date(n, t + 1, Y % u), Y, h));
671
+ var ce = j("div", "dayContainer");
672
672
  return ce.appendChild(c), ce;
673
673
  }
674
- function W() {
674
+ function $() {
675
675
  if (e.daysContainer !== void 0) {
676
676
  Fe(e.daysContainer), e.weekNumbers && Fe(e.weekNumbers);
677
677
  for (var n = document.createDocumentFragment(), t = 0; t < e.config.showMonths; t++) {
678
678
  var r = new Date(e.currentYear, e.currentMonth, 1);
679
- r.setMonth(e.currentMonth + t), n.appendChild(Ce(r.getFullYear(), r.getMonth()));
679
+ r.setMonth(e.currentMonth + t), n.appendChild(we(r.getFullYear(), r.getMonth()));
680
680
  }
681
681
  e.daysContainer.appendChild(n), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && ke();
682
682
  }
683
683
  }
684
- function le() {
684
+ function q() {
685
685
  if (!(e.config.showMonths > 1 || e.config.monthSelectorType !== "dropdown")) {
686
686
  var n = function(o) {
687
687
  return e.config.minDate !== void 0 && e.currentYear === e.config.minDate.getFullYear() && o < e.config.minDate.getMonth() ? !1 : !(e.config.maxDate !== void 0 && e.currentYear === e.config.maxDate.getFullYear() && o > e.config.maxDate.getMonth());
@@ -689,73 +689,73 @@ function it(a, i) {
689
689
  e.monthsDropdownContainer.tabIndex = -1, e.monthsDropdownContainer.innerHTML = "";
690
690
  for (var t = 0; t < 12; t++)
691
691
  if (n(t)) {
692
- var r = F("option", "flatpickr-monthDropdown-month");
692
+ var r = j("option", "flatpickr-monthDropdown-month");
693
693
  r.value = new Date(e.currentYear, t).getMonth().toString(), r.textContent = Ye(t, e.config.shorthandCurrentMonth, e.l10n), r.tabIndex = -1, e.currentMonth === t && (r.selected = !0), e.monthsDropdownContainer.appendChild(r);
694
694
  }
695
695
  }
696
696
  }
697
- function ve() {
698
- var n = F("div", "flatpickr-month"), t = window.document.createDocumentFragment(), r;
699
- e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? r = F("span", "cur-month") : (e.monthsDropdownContainer = F("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), v(e.monthsDropdownContainer, "change", function(D) {
700
- var g = Q(D), C = parseInt(g.value, 10);
701
- e.changeMonth(C - e.currentMonth), B("onMonthChange");
702
- }), le(), r = e.monthsDropdownContainer);
703
- var o = je("cur-year", { tabindex: "-1" }), l = o.getElementsByTagName("input")[0];
704
- l.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && l.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (l.setAttribute("max", e.config.maxDate.getFullYear().toString()), l.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
705
- var c = F("div", "flatpickr-current-month");
697
+ function Ce() {
698
+ var n = j("div", "flatpickr-month"), t = window.document.createDocumentFragment(), r;
699
+ e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? r = j("span", "cur-month") : (e.monthsDropdownContainer = j("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), v(e.monthsDropdownContainer, "change", function(b) {
700
+ var g = ne(b), C = parseInt(g.value, 10);
701
+ e.changeMonth(C - e.currentMonth), R("onMonthChange");
702
+ }), q(), r = e.monthsDropdownContainer);
703
+ var o = je("cur-year", { tabindex: "-1" }), u = o.getElementsByTagName("input")[0];
704
+ u.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && u.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (u.setAttribute("max", e.config.maxDate.getFullYear().toString()), u.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
705
+ var c = j("div", "flatpickr-current-month");
706
706
  return c.appendChild(r), c.appendChild(o), t.appendChild(c), n.appendChild(t), {
707
707
  container: n,
708
- yearElement: l,
708
+ yearElement: u,
709
709
  monthElement: r
710
710
  };
711
711
  }
712
- function ye() {
712
+ function me() {
713
713
  Fe(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
714
714
  for (var n = e.config.showMonths; n--; ) {
715
- var t = ve();
715
+ var t = Ce();
716
716
  e.yearElements.push(t.yearElement), e.monthElements.push(t.monthElement), e.monthNav.appendChild(t.container);
717
717
  }
718
718
  e.monthNav.appendChild(e.nextMonthNav);
719
719
  }
720
- function u() {
721
- return e.monthNav = F("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = F("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = F("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, ye(), Object.defineProperty(e, "_hidePrevMonthArrow", {
720
+ function l() {
721
+ return e.monthNav = j("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = j("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = j("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, me(), Object.defineProperty(e, "_hidePrevMonthArrow", {
722
722
  get: function() {
723
723
  return e.__hidePrevMonthArrow;
724
724
  },
725
725
  set: function(n) {
726
- e.__hidePrevMonthArrow !== n && (G(e.prevMonthNav, "flatpickr-disabled", n), e.__hidePrevMonthArrow = n);
726
+ e.__hidePrevMonthArrow !== n && (V(e.prevMonthNav, "flatpickr-disabled", n), e.__hidePrevMonthArrow = n);
727
727
  }
728
728
  }), Object.defineProperty(e, "_hideNextMonthArrow", {
729
729
  get: function() {
730
730
  return e.__hideNextMonthArrow;
731
731
  },
732
732
  set: function(n) {
733
- e.__hideNextMonthArrow !== n && (G(e.nextMonthNav, "flatpickr-disabled", n), e.__hideNextMonthArrow = n);
733
+ e.__hideNextMonthArrow !== n && (V(e.nextMonthNav, "flatpickr-disabled", n), e.__hideNextMonthArrow = n);
734
734
  }
735
735
  }), e.currentYearElement = e.yearElements[0], Se(), e.monthNav;
736
736
  }
737
737
  function m() {
738
738
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
739
739
  var n = Ve(e.config);
740
- e.timeContainer = F("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
741
- var t = F("span", "flatpickr-time-separator", ":"), r = je("flatpickr-hour", {
740
+ e.timeContainer = j("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
741
+ var t = j("span", "flatpickr-time-separator", ":"), r = je("flatpickr-hour", {
742
742
  "aria-label": e.l10n.hourAriaLabel
743
743
  });
744
744
  e.hourElement = r.getElementsByTagName("input")[0];
745
745
  var o = je("flatpickr-minute", {
746
746
  "aria-label": e.l10n.minuteAriaLabel
747
747
  });
748
- if (e.minuteElement = o.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = $(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? n.hours : y(n.hours)), e.minuteElement.value = $(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : n.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(r), e.timeContainer.appendChild(t), e.timeContainer.appendChild(o), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
748
+ if (e.minuteElement = o.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Z(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? n.hours : y(n.hours)), e.minuteElement.value = Z(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : n.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(r), e.timeContainer.appendChild(t), e.timeContainer.appendChild(o), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
749
749
  e.timeContainer.classList.add("hasSeconds");
750
- var l = je("flatpickr-second");
751
- e.secondElement = l.getElementsByTagName("input")[0], e.secondElement.value = $(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : n.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(F("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(l);
750
+ var u = je("flatpickr-second");
751
+ e.secondElement = u.getElementsByTagName("input")[0], e.secondElement.value = Z(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : n.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(j("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(u);
752
752
  }
753
- return e.config.time_24hr || (e.amPM = F("span", "flatpickr-am-pm", e.l10n.amPM[re((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
753
+ return e.config.time_24hr || (e.amPM = j("span", "flatpickr-am-pm", e.l10n.amPM[oe((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
754
754
  }
755
- function I() {
756
- e.weekdayContainer ? Fe(e.weekdayContainer) : e.weekdayContainer = F("div", "flatpickr-weekdays");
755
+ function S() {
756
+ e.weekdayContainer ? Fe(e.weekdayContainer) : e.weekdayContainer = j("div", "flatpickr-weekdays");
757
757
  for (var n = e.config.showMonths; n--; ) {
758
- var t = F("div", "flatpickr-weekdaycontainer");
758
+ var t = j("div", "flatpickr-weekdaycontainer");
759
759
  e.weekdayContainer.appendChild(t);
760
760
  }
761
761
  return x(), e.weekdayContainer;
@@ -772,33 +772,33 @@ function it(a, i) {
772
772
  `;
773
773
  }
774
774
  }
775
- function E() {
775
+ function w() {
776
776
  e.calendarContainer.classList.add("hasWeeks");
777
- var n = F("div", "flatpickr-weekwrapper");
778
- n.appendChild(F("span", "flatpickr-weekday", e.l10n.weekAbbreviation));
779
- var t = F("div", "flatpickr-weeks");
777
+ var n = j("div", "flatpickr-weekwrapper");
778
+ n.appendChild(j("span", "flatpickr-weekday", e.l10n.weekAbbreviation));
779
+ var t = j("div", "flatpickr-weeks");
780
780
  return n.appendChild(t), {
781
781
  weekWrapper: n,
782
782
  weekNumbers: t
783
783
  };
784
784
  }
785
- function P(n, t) {
785
+ function A(n, t) {
786
786
  t === void 0 && (t = !0);
787
787
  var r = t ? n : n - e.currentMonth;
788
- r < 0 && e._hidePrevMonthArrow === !0 || r > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += r, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, B("onYearChange"), le()), W(), B("onMonthChange"), Se());
788
+ r < 0 && e._hidePrevMonthArrow === !0 || r > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += r, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, R("onYearChange"), q()), $(), R("onMonthChange"), Se());
789
789
  }
790
- function _(n, t) {
790
+ function P(n, t) {
791
791
  if (n === void 0 && (n = !0), t === void 0 && (t = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, t === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
792
- var r = Ve(e.config), o = r.hours, l = r.minutes, c = r.seconds;
793
- O(o, l, c);
792
+ var r = Ve(e.config), o = r.hours, u = r.minutes, c = r.seconds;
793
+ I(o, u, c);
794
794
  }
795
- e.redraw(), n && B("onChange");
795
+ e.redraw(), n && R("onChange");
796
796
  }
797
- function w() {
798
- e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), B("onClose");
797
+ function E() {
798
+ e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), R("onClose");
799
799
  }
800
800
  function T() {
801
- e.config !== void 0 && B("onDestroy");
801
+ e.config !== void 0 && R("onDestroy");
802
802
  for (var n = e._handlers.length; n--; )
803
803
  e._handlers[n].remove();
804
804
  if (e._handlers = [], e.mobileInput)
@@ -850,64 +850,64 @@ function it(a, i) {
850
850
  }
851
851
  });
852
852
  }
853
- function A(n) {
853
+ function k(n) {
854
854
  return e.calendarContainer.contains(n);
855
855
  }
856
856
  function N(n) {
857
857
  if (e.isOpen && !e.config.inline) {
858
- var t = Q(n), r = A(t), o = t === e.input || t === e.altInput || e.element.contains(t) || n.path && n.path.indexOf && (~n.path.indexOf(e.input) || ~n.path.indexOf(e.altInput)), l = !o && !r && !A(n.relatedTarget), c = !e.config.ignoredFocusElements.some(function(D) {
859
- return D.contains(t);
858
+ var t = ne(n), r = k(t), o = t === e.input || t === e.altInput || e.element.contains(t) || n.path && n.path.indexOf && (~n.path.indexOf(e.input) || ~n.path.indexOf(e.altInput)), u = !o && !r && !k(n.relatedTarget), c = !e.config.ignoredFocusElements.some(function(b) {
859
+ return b.contains(t);
860
860
  });
861
- l && c && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && j(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
861
+ u && c && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && F(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
862
862
  }
863
863
  }
864
- function te(n) {
864
+ function re(n) {
865
865
  if (!(!n || e.config.minDate && n < e.config.minDate.getFullYear() || e.config.maxDate && n > e.config.maxDate.getFullYear())) {
866
866
  var t = n, r = e.currentYear !== t;
867
- e.currentYear = t || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), r && (e.redraw(), B("onYearChange"), le());
867
+ e.currentYear = t || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), r && (e.redraw(), R("onYearChange"), q());
868
868
  }
869
869
  }
870
- function Z(n, t) {
870
+ function Q(n, t) {
871
871
  var r;
872
872
  t === void 0 && (t = !0);
873
873
  var o = e.parseDate(n, void 0, t);
874
- if (e.config.minDate && o && ee(o, e.config.minDate, t !== void 0 ? t : !e.minDateHasTime) < 0 || e.config.maxDate && o && ee(o, e.config.maxDate, t !== void 0 ? t : !e.maxDateHasTime) > 0)
874
+ if (e.config.minDate && o && te(o, e.config.minDate, t !== void 0 ? t : !e.minDateHasTime) < 0 || e.config.maxDate && o && te(o, e.config.maxDate, t !== void 0 ? t : !e.maxDateHasTime) > 0)
875
875
  return !1;
876
876
  if (!e.config.enable && e.config.disable.length === 0)
877
877
  return !0;
878
878
  if (o === void 0)
879
879
  return !1;
880
- for (var l = !!e.config.enable, c = (r = e.config.enable) !== null && r !== void 0 ? r : e.config.disable, D = 0, g = void 0; D < c.length; D++) {
881
- if (g = c[D], typeof g == "function" && g(o))
882
- return l;
880
+ for (var u = !!e.config.enable, c = (r = e.config.enable) !== null && r !== void 0 ? r : e.config.disable, b = 0, g = void 0; b < c.length; b++) {
881
+ if (g = c[b], typeof g == "function" && g(o))
882
+ return u;
883
883
  if (g instanceof Date && o !== void 0 && g.getTime() === o.getTime())
884
- return l;
884
+ return u;
885
885
  if (typeof g == "string") {
886
886
  var C = e.parseDate(g, void 0, !0);
887
- return C && C.getTime() === o.getTime() ? l : !l;
887
+ return C && C.getTime() === o.getTime() ? u : !u;
888
888
  } else if (typeof g == "object" && o !== void 0 && g.from && g.to && o.getTime() >= g.from.getTime() && o.getTime() <= g.to.getTime())
889
- return l;
889
+ return u;
890
890
  }
891
- return !l;
891
+ return !u;
892
892
  }
893
- function me(n) {
893
+ function he(n) {
894
894
  return e.daysContainer !== void 0 ? n.className.indexOf("hidden") === -1 && n.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(n) : !1;
895
895
  }
896
896
  function En(n) {
897
897
  var t = n.target === e._input, r = e._input.value.trimEnd() !== Re();
898
- t && r && !(n.relatedTarget && A(n.relatedTarget)) && e.setDate(e._input.value, !0, n.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
898
+ t && r && !(n.relatedTarget && k(n.relatedTarget)) && e.setDate(e._input.value, !0, n.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
899
899
  }
900
900
  function nn(n) {
901
- var t = Q(n), r = e.config.wrap ? a.contains(t) : t === e._input, o = e.config.allowInput, l = e.isOpen && (!o || !r), c = e.config.inline && r && !o;
901
+ var t = ne(n), r = e.config.wrap ? a.contains(t) : t === e._input, o = e.config.allowInput, u = e.isOpen && (!o || !r), c = e.config.inline && r && !o;
902
902
  if (n.keyCode === 13 && r) {
903
903
  if (o)
904
904
  return e.setDate(e._input.value, !0, t === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), t.blur();
905
905
  e.open();
906
- } else if (A(t) || l || c) {
907
- var D = !!e.timeContainer && e.timeContainer.contains(t);
906
+ } else if (k(t) || u || c) {
907
+ var b = !!e.timeContainer && e.timeContainer.contains(t);
908
908
  switch (n.keyCode) {
909
909
  case 13:
910
- D ? (n.preventDefault(), j(), He()) : un(n);
910
+ b ? (n.preventDefault(), F(), He()) : un(n);
911
911
  break;
912
912
  case 27:
913
913
  n.preventDefault(), He();
@@ -918,12 +918,12 @@ function it(a, i) {
918
918
  break;
919
919
  case 37:
920
920
  case 39:
921
- if (!D && !r) {
921
+ if (!b && !r) {
922
922
  n.preventDefault();
923
923
  var g = p();
924
- if (e.daysContainer !== void 0 && (o === !1 || g && me(g))) {
924
+ if (e.daysContainer !== void 0 && (o === !1 || g && he(g))) {
925
925
  var C = n.keyCode === 39 ? 1 : -1;
926
- n.ctrlKey ? (n.stopPropagation(), P(C), ne(se(1), 0)) : ne(void 0, C);
926
+ n.ctrlKey ? (n.stopPropagation(), A(C), X(le(1), 0)) : X(void 0, C);
927
927
  }
928
928
  } else e.hourElement && e.hourElement.focus();
929
929
  break;
@@ -931,17 +931,17 @@ function it(a, i) {
931
931
  case 40:
932
932
  n.preventDefault();
933
933
  var d = n.keyCode === 40 ? 1 : -1;
934
- e.daysContainer && t.$i !== void 0 || t === e.input || t === e.altInput ? n.ctrlKey ? (n.stopPropagation(), te(e.currentYear - d), ne(se(1), 0)) : D || ne(void 0, d * 7) : t === e.currentYearElement ? te(e.currentYear - d) : e.config.enableTime && (!D && e.hourElement && e.hourElement.focus(), j(n), e._debouncedChange());
934
+ e.daysContainer && t.$i !== void 0 || t === e.input || t === e.altInput ? n.ctrlKey ? (n.stopPropagation(), re(e.currentYear - d), X(le(1), 0)) : b || X(void 0, d * 7) : t === e.currentYearElement ? re(e.currentYear - d) : e.config.enableTime && (!b && e.hourElement && e.hourElement.focus(), F(n), e._debouncedChange());
935
935
  break;
936
936
  case 9:
937
- if (D) {
937
+ if (b) {
938
938
  var h = [
939
939
  e.hourElement,
940
940
  e.minuteElement,
941
941
  e.secondElement,
942
942
  e.amPM
943
- ].concat(e.pluginElements).filter(function(X) {
944
- return X;
943
+ ].concat(e.pluginElements).filter(function(ee) {
944
+ return ee;
945
945
  }), Y = h.indexOf(t);
946
946
  if (Y !== -1) {
947
947
  var ce = h[Y + (n.shiftKey ? -1 : 1)];
@@ -962,25 +962,25 @@ function it(a, i) {
962
962
  e.amPM.textContent = e.l10n.amPM[1], H(), de();
963
963
  break;
964
964
  }
965
- (r || A(t)) && B("onKeyDown", n);
965
+ (r || k(t)) && R("onKeyDown", n);
966
966
  }
967
967
  function ke(n, t) {
968
968
  if (t === void 0 && (t = "flatpickr-day"), !(e.selectedDates.length !== 1 || n && (!n.classList.contains(t) || n.classList.contains("flatpickr-disabled")))) {
969
- for (var r = n ? n.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), o = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), l = Math.min(r, e.selectedDates[0].getTime()), c = Math.max(r, e.selectedDates[0].getTime()), D = !1, g = 0, C = 0, d = l; d < c; d += at.DAY)
970
- Z(new Date(d), !0) || (D = D || d > l && d < c, d < o && (!g || d > g) ? g = d : d > o && (!C || d < C) && (C = d));
969
+ for (var r = n ? n.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), o = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), u = Math.min(r, e.selectedDates[0].getTime()), c = Math.max(r, e.selectedDates[0].getTime()), b = !1, g = 0, C = 0, d = u; d < c; d += at.DAY)
970
+ Q(new Date(d), !0) || (b = b || d > u && d < c, d < o && (!g || d > g) ? g = d : d > o && (!C || d < C) && (C = d));
971
971
  var h = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + t));
972
972
  h.forEach(function(Y) {
973
- var ce = Y.dateObj, X = ce.getTime(), Me = g > 0 && X < g || C > 0 && X > C;
973
+ var ce = Y.dateObj, ee = ce.getTime(), Me = g > 0 && ee < g || C > 0 && ee > C;
974
974
  if (Me) {
975
- Y.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(De) {
976
- Y.classList.remove(De);
975
+ Y.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(ye) {
976
+ Y.classList.remove(ye);
977
977
  });
978
978
  return;
979
- } else if (D && !Me)
979
+ } else if (b && !Me)
980
980
  return;
981
- ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(De) {
982
- Y.classList.remove(De);
983
- }), n !== void 0 && (n.classList.add(r <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), o < r && X === o ? Y.classList.add("startRange") : o > r && X === o && Y.classList.add("endRange"), X >= g && (C === 0 || X <= C) && nt(X, o, r) && Y.classList.add("inRange"));
981
+ ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(ye) {
982
+ Y.classList.remove(ye);
983
+ }), n !== void 0 && (n.classList.add(r <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), o < r && ee === o ? Y.classList.add("startRange") : o > r && ee === o && Y.classList.add("endRange"), ee >= g && (C === 0 || ee <= C) && nt(ee, o, r) && Y.classList.add("inRange"));
984
984
  });
985
985
  }
986
986
  }
@@ -991,23 +991,23 @@ function it(a, i) {
991
991
  if (t === void 0 && (t = e._positionElement), e.isMobile === !0) {
992
992
  if (n) {
993
993
  n.preventDefault();
994
- var r = Q(n);
994
+ var r = ne(n);
995
995
  r && r.blur();
996
996
  }
997
- e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), B("onOpen");
997
+ e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), R("onOpen");
998
998
  return;
999
999
  } else if (e._input.disabled || e.config.inline)
1000
1000
  return;
1001
1001
  var o = e.isOpen;
1002
- e.isOpen = !0, o || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), B("onOpen"), Oe(t)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (n === void 0 || !e.timeContainer.contains(n.relatedTarget)) && setTimeout(function() {
1002
+ e.isOpen = !0, o || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), R("onOpen"), Oe(t)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (n === void 0 || !e.timeContainer.contains(n.relatedTarget)) && setTimeout(function() {
1003
1003
  return e.hourElement.select();
1004
1004
  }, 50);
1005
1005
  }
1006
1006
  function tn(n) {
1007
1007
  return function(t) {
1008
1008
  var r = e.config["_" + n + "Date"] = e.parseDate(t, e.config.dateFormat), o = e.config["_" + (n === "min" ? "max" : "min") + "Date"];
1009
- r !== void 0 && (e[n === "min" ? "minDateHasTime" : "maxDateHasTime"] = r.getHours() > 0 || r.getMinutes() > 0 || r.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(l) {
1010
- return Z(l);
1009
+ r !== void 0 && (e[n === "min" ? "minDateHasTime" : "maxDateHasTime"] = r.getHours() > 0 || r.getMinutes() > 0 || r.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(u) {
1010
+ return Q(u);
1011
1011
  }), !e.selectedDates.length && n === "min" && L(r), de()), e.daysContainer && (on(), r !== void 0 ? e.currentYearElement[n] = r.getFullYear().toString() : e.currentYearElement.removeAttribute(n), e.currentYearElement.disabled = !!o && r !== void 0 && o.getFullYear() === r.getFullYear());
1012
1012
  };
1013
1013
  }
@@ -1045,11 +1045,11 @@ function it(a, i) {
1045
1045
  });
1046
1046
  var o = t.mode === "time";
1047
1047
  if (!t.dateFormat && (t.enableTime || o)) {
1048
- var l = K.defaultConfig.dateFormat || be.dateFormat;
1049
- r.dateFormat = t.noCalendar || o ? "H:i" + (t.enableSeconds ? ":S" : "") : l + " H:i" + (t.enableSeconds ? ":S" : "");
1048
+ var u = K.defaultConfig.dateFormat || De.dateFormat;
1049
+ r.dateFormat = t.noCalendar || o ? "H:i" + (t.enableSeconds ? ":S" : "") : u + " H:i" + (t.enableSeconds ? ":S" : "");
1050
1050
  }
1051
1051
  if (t.altInput && (t.enableTime || o) && !t.altFormat) {
1052
- var c = K.defaultConfig.altFormat || be.altFormat;
1052
+ var c = K.defaultConfig.altFormat || De.altFormat;
1053
1053
  r.altFormat = t.noCalendar || o ? "h:i" + (t.enableSeconds ? ":S K" : " K") : c + (" h:i" + (t.enableSeconds ? ":S" : "") + " K");
1054
1054
  }
1055
1055
  Object.defineProperty(e.config, "minDate", {
@@ -1063,7 +1063,7 @@ function it(a, i) {
1063
1063
  },
1064
1064
  set: tn("max")
1065
1065
  });
1066
- var D = function(h) {
1066
+ var b = function(h) {
1067
1067
  return function(Y) {
1068
1068
  e.config[h === "min" ? "_minTime" : "_maxTime"] = e.parseDate(Y, "H:i:S");
1069
1069
  };
@@ -1072,32 +1072,32 @@ function it(a, i) {
1072
1072
  get: function() {
1073
1073
  return e.config._minTime;
1074
1074
  },
1075
- set: D("min")
1075
+ set: b("min")
1076
1076
  }), Object.defineProperty(e.config, "maxTime", {
1077
1077
  get: function() {
1078
1078
  return e.config._maxTime;
1079
1079
  },
1080
- set: D("max")
1080
+ set: b("max")
1081
1081
  }), t.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, r, t);
1082
1082
  for (var g = 0; g < n.length; g++)
1083
1083
  e.config[n[g]] = e.config[n[g]] === !0 || e.config[n[g]] === "true";
1084
1084
  qe.filter(function(h) {
1085
1085
  return e.config[h] !== void 0;
1086
1086
  }).forEach(function(h) {
1087
- e.config[h] = Ke(e.config[h] || []).map(b);
1087
+ e.config[h] = Ke(e.config[h] || []).map(D);
1088
1088
  }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1089
1089
  for (var g = 0; g < e.config.plugins.length; g++) {
1090
1090
  var C = e.config.plugins[g](e) || {};
1091
1091
  for (var d in C)
1092
- qe.indexOf(d) > -1 ? e.config[d] = Ke(C[d]).map(b).concat(e.config[d]) : typeof t[d] > "u" && (e.config[d] = C[d]);
1092
+ qe.indexOf(d) > -1 ? e.config[d] = Ke(C[d]).map(D).concat(e.config[d]) : typeof t[d] > "u" && (e.config[d] = C[d]);
1093
1093
  }
1094
- t.altInputClass || (e.config.altInputClass = an().className + " " + e.config.altInputClass), B("onParseConfig");
1094
+ t.altInputClass || (e.config.altInputClass = an().className + " " + e.config.altInputClass), R("onParseConfig");
1095
1095
  }
1096
1096
  function an() {
1097
1097
  return e.config.wrap ? a.querySelector("[data-input]") : a;
1098
1098
  }
1099
1099
  function rn() {
1100
- typeof e.config.locale != "object" && typeof K.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = J(J({}, K.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? K.l10ns[e.config.locale] : void 0), he.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", he.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", he.M = "(" + e.l10n.months.shorthand.join("|") + ")", he.F = "(" + e.l10n.months.longhand.join("|") + ")", he.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
1100
+ typeof e.config.locale != "object" && typeof K.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = J(J({}, K.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? K.l10ns[e.config.locale] : void 0), ve.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", ve.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", ve.M = "(" + e.l10n.months.shorthand.join("|") + ")", ve.F = "(" + e.l10n.months.longhand.join("|") + ")", ve.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
1101
1101
  var n = J(J({}, i), JSON.parse(JSON.stringify(a.dataset || {})));
1102
1102
  n.time_24hr === void 0 && K.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = Mn(e), e.parseDate = Xe({ config: e.config, l10n: e.l10n });
1103
1103
  }
@@ -1105,16 +1105,16 @@ function it(a, i) {
1105
1105
  if (typeof e.config.position == "function")
1106
1106
  return void e.config.position(e, n);
1107
1107
  if (e.calendarContainer !== void 0) {
1108
- B("onPreCalendarPosition");
1108
+ R("onPreCalendarPosition");
1109
1109
  var t = n || e._positionElement, r = Array.prototype.reduce.call(e.calendarContainer.children, function(Vn, Gn) {
1110
1110
  return Vn + Gn.offsetHeight;
1111
- }, 0), o = e.calendarContainer.offsetWidth, l = e.config.position.split(" "), c = l[0], D = l.length > 1 ? l[1] : null, g = t.getBoundingClientRect(), C = window.innerHeight - g.bottom, d = c === "above" || c !== "below" && C < r && g.top > r, h = window.pageYOffset + g.top + (d ? -r - 2 : t.offsetHeight + 2);
1112
- if (G(e.calendarContainer, "arrowTop", !d), G(e.calendarContainer, "arrowBottom", d), !e.config.inline) {
1113
- var Y = window.pageXOffset + g.left, ce = !1, X = !1;
1114
- D === "center" ? (Y -= (o - g.width) / 2, ce = !0) : D === "right" && (Y -= o - g.width, X = !0), G(e.calendarContainer, "arrowLeft", !ce && !X), G(e.calendarContainer, "arrowCenter", ce), G(e.calendarContainer, "arrowRight", X);
1115
- var Me = window.document.body.offsetWidth - (window.pageXOffset + g.right), De = Y + o > window.document.body.offsetWidth, Wn = Me + o > window.document.body.offsetWidth;
1116
- if (G(e.calendarContainer, "rightMost", De), !e.config.static)
1117
- if (e.calendarContainer.style.top = h + "px", !De)
1111
+ }, 0), o = e.calendarContainer.offsetWidth, u = e.config.position.split(" "), c = u[0], b = u.length > 1 ? u[1] : null, g = t.getBoundingClientRect(), C = window.innerHeight - g.bottom, d = c === "above" || c !== "below" && C < r && g.top > r, h = window.pageYOffset + g.top + (d ? -r - 2 : t.offsetHeight + 2);
1112
+ if (V(e.calendarContainer, "arrowTop", !d), V(e.calendarContainer, "arrowBottom", d), !e.config.inline) {
1113
+ var Y = window.pageXOffset + g.left, ce = !1, ee = !1;
1114
+ b === "center" ? (Y -= (o - g.width) / 2, ce = !0) : b === "right" && (Y -= o - g.width, ee = !0), V(e.calendarContainer, "arrowLeft", !ce && !ee), V(e.calendarContainer, "arrowCenter", ce), V(e.calendarContainer, "arrowRight", ee);
1115
+ var Me = window.document.body.offsetWidth - (window.pageXOffset + g.right), ye = Y + o > window.document.body.offsetWidth, Wn = Me + o > window.document.body.offsetWidth;
1116
+ if (V(e.calendarContainer, "rightMost", ye), !e.config.static)
1117
+ if (e.calendarContainer.style.top = h + "px", !ye)
1118
1118
  e.calendarContainer.style.left = Y + "px", e.calendarContainer.style.right = "auto";
1119
1119
  else if (!Wn)
1120
1120
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Me + "px";
@@ -1123,7 +1123,7 @@ function it(a, i) {
1123
1123
  if (Be === void 0)
1124
1124
  return;
1125
1125
  var Rn = window.document.body.offsetWidth, Bn = Math.max(0, Rn / 2 - o / 2), qn = ".flatpickr-calendar.centerMost:before", Kn = ".flatpickr-calendar.centerMost:after", Un = Be.cssRules.length, Jn = "{left:" + g.left + "px;right:auto;}";
1126
- G(e.calendarContainer, "rightMost", !1), G(e.calendarContainer, "centerMost", !0), Be.insertRule(qn + "," + Kn + Jn, Un), e.calendarContainer.style.left = Bn + "px", e.calendarContainer.style.right = "auto";
1126
+ V(e.calendarContainer, "rightMost", !1), V(e.calendarContainer, "centerMost", !0), Be.insertRule(qn + "," + Kn + Jn, Un), e.calendarContainer.style.left = Bn + "px", e.calendarContainer.style.right = "auto";
1127
1127
  }
1128
1128
  }
1129
1129
  }
@@ -1148,7 +1148,7 @@ function it(a, i) {
1148
1148
  return document.head.appendChild(n), n.sheet;
1149
1149
  }
1150
1150
  function on() {
1151
- e.config.noCalendar || e.isMobile || (le(), Se(), W());
1151
+ e.config.noCalendar || e.isMobile || (q(), Se(), $());
1152
1152
  }
1153
1153
  function He() {
1154
1154
  e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
@@ -1157,22 +1157,22 @@ function it(a, i) {
1157
1157
  n.preventDefault(), n.stopPropagation();
1158
1158
  var t = function(h) {
1159
1159
  return h.classList && h.classList.contains("flatpickr-day") && !h.classList.contains("flatpickr-disabled") && !h.classList.contains("notAllowed");
1160
- }, r = Cn(Q(n), t);
1160
+ }, r = Cn(ne(n), t);
1161
1161
  if (r !== void 0) {
1162
- var o = r, l = e.latestSelectedDateObj = new Date(o.dateObj.getTime()), c = (l.getMonth() < e.currentMonth || l.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
1162
+ var o = r, u = e.latestSelectedDateObj = new Date(o.dateObj.getTime()), c = (u.getMonth() < e.currentMonth || u.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
1163
1163
  if (e.selectedDateElem = o, e.config.mode === "single")
1164
- e.selectedDates = [l];
1164
+ e.selectedDates = [u];
1165
1165
  else if (e.config.mode === "multiple") {
1166
- var D = We(l);
1167
- D ? e.selectedDates.splice(parseInt(D), 1) : e.selectedDates.push(l);
1168
- } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = l, e.selectedDates.push(l), ee(l, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(h, Y) {
1166
+ var b = We(u);
1167
+ b ? e.selectedDates.splice(parseInt(b), 1) : e.selectedDates.push(u);
1168
+ } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = u, e.selectedDates.push(u), te(u, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(h, Y) {
1169
1169
  return h.getTime() - Y.getTime();
1170
1170
  }));
1171
1171
  if (H(), c) {
1172
- var g = e.currentYear !== l.getFullYear();
1173
- e.currentYear = l.getFullYear(), e.currentMonth = l.getMonth(), g && (B("onYearChange"), le()), B("onMonthChange");
1172
+ var g = e.currentYear !== u.getFullYear();
1173
+ e.currentYear = u.getFullYear(), e.currentMonth = u.getMonth(), g && (R("onYearChange"), q()), R("onMonthChange");
1174
1174
  }
1175
- if (Se(), W(), de(), !c && e.config.mode !== "range" && e.config.showMonths === 1 ? ue(o) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
1175
+ if (Se(), $(), de(), !c && e.config.mode !== "range" && e.config.showMonths === 1 ? se(o) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
1176
1176
  var C = e.config.mode === "single" && !e.config.enableTime, d = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
1177
1177
  (C || d) && He();
1178
1178
  }
@@ -1181,9 +1181,9 @@ function it(a, i) {
1181
1181
  }
1182
1182
  var Ie = {
1183
1183
  locale: [rn, x],
1184
- showMonths: [ye, M, I],
1185
- minDate: [q],
1186
- maxDate: [q],
1184
+ showMonths: [me, M, S],
1185
+ minDate: [B],
1186
+ maxDate: [B],
1187
1187
  positionElement: [sn],
1188
1188
  clickOpens: [
1189
1189
  function() {
@@ -1232,15 +1232,15 @@ function it(a, i) {
1232
1232
  else
1233
1233
  e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(n)));
1234
1234
  e.selectedDates = e.config.allowInvalidPreload ? r : r.filter(function(o) {
1235
- return o instanceof Date && Z(o, !1);
1236
- }), e.config.mode === "range" && e.selectedDates.sort(function(o, l) {
1237
- return o.getTime() - l.getTime();
1235
+ return o instanceof Date && Q(o, !1);
1236
+ }), e.config.mode === "range" && e.selectedDates.sort(function(o, u) {
1237
+ return o.getTime() - u.getTime();
1238
1238
  });
1239
1239
  }
1240
1240
  function Pn(n, t, r) {
1241
1241
  if (t === void 0 && (t = !1), r === void 0 && (r = e.config.dateFormat), n !== 0 && !n || n instanceof Array && n.length === 0)
1242
1242
  return e.clear(t);
1243
- ln(n, r), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), q(void 0, t), L(), e.selectedDates.length === 0 && e.clear(!1), de(t), t && B("onChange");
1243
+ ln(n, r), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), B(void 0, t), L(), e.selectedDates.length === 0 && e.clear(!1), de(t), t && R("onChange");
1244
1244
  }
1245
1245
  function fn(n) {
1246
1246
  return n.slice().map(function(t) {
@@ -1262,20 +1262,20 @@ function it(a, i) {
1262
1262
  e.config.errorHandler(new Error("Invalid input element specified"));
1263
1263
  return;
1264
1264
  }
1265
- e.input._type = e.input.type, e.input.type = "text", e.input.classList.add("flatpickr-input"), e._input = e.input, e.config.altInput && (e.altInput = F(e.input.nodeName, e.config.altInputClass), e._input = e.altInput, e.altInput.placeholder = e.input.placeholder, e.altInput.disabled = e.input.disabled, e.altInput.required = e.input.required, e.altInput.tabIndex = e.input.tabIndex, e.altInput.type = "text", e.input.setAttribute("type", "hidden"), !e.config.static && e.input.parentNode && e.input.parentNode.insertBefore(e.altInput, e.input.nextSibling)), e.config.allowInput || e._input.setAttribute("readonly", "readonly"), sn();
1265
+ e.input._type = e.input.type, e.input.type = "text", e.input.classList.add("flatpickr-input"), e._input = e.input, e.config.altInput && (e.altInput = j(e.input.nodeName, e.config.altInputClass), e._input = e.altInput, e.altInput.placeholder = e.input.placeholder, e.altInput.disabled = e.input.disabled, e.altInput.required = e.input.required, e.altInput.tabIndex = e.input.tabIndex, e.altInput.type = "text", e.input.setAttribute("type", "hidden"), !e.config.static && e.input.parentNode && e.input.parentNode.insertBefore(e.altInput, e.input.nextSibling)), e.config.allowInput || e._input.setAttribute("readonly", "readonly"), sn();
1266
1266
  }
1267
1267
  function sn() {
1268
1268
  e._positionElement = e.config.positionElement || e._input;
1269
1269
  }
1270
1270
  function jn() {
1271
1271
  var n = e.config.enableTime ? e.config.noCalendar ? "time" : "datetime-local" : "date";
1272
- e.mobileInput = F("input", e.input.className + " flatpickr-mobile"), e.mobileInput.tabIndex = 1, e.mobileInput.type = n, e.mobileInput.disabled = e.input.disabled, e.mobileInput.required = e.input.required, e.mobileInput.placeholder = e.input.placeholder, e.mobileFormatStr = n === "datetime-local" ? "Y-m-d\\TH:i:S" : n === "date" ? "Y-m-d" : "H:i:S", e.selectedDates.length > 0 && (e.mobileInput.defaultValue = e.mobileInput.value = e.formatDate(e.selectedDates[0], e.mobileFormatStr)), e.config.minDate && (e.mobileInput.min = e.formatDate(e.config.minDate, "Y-m-d")), e.config.maxDate && (e.mobileInput.max = e.formatDate(e.config.maxDate, "Y-m-d")), e.input.getAttribute("step") && (e.mobileInput.step = String(e.input.getAttribute("step"))), e.input.type = "hidden", e.altInput !== void 0 && (e.altInput.type = "hidden");
1272
+ e.mobileInput = j("input", e.input.className + " flatpickr-mobile"), e.mobileInput.tabIndex = 1, e.mobileInput.type = n, e.mobileInput.disabled = e.input.disabled, e.mobileInput.required = e.input.required, e.mobileInput.placeholder = e.input.placeholder, e.mobileFormatStr = n === "datetime-local" ? "Y-m-d\\TH:i:S" : n === "date" ? "Y-m-d" : "H:i:S", e.selectedDates.length > 0 && (e.mobileInput.defaultValue = e.mobileInput.value = e.formatDate(e.selectedDates[0], e.mobileFormatStr)), e.config.minDate && (e.mobileInput.min = e.formatDate(e.config.minDate, "Y-m-d")), e.config.maxDate && (e.mobileInput.max = e.formatDate(e.config.maxDate, "Y-m-d")), e.input.getAttribute("step") && (e.mobileInput.step = String(e.input.getAttribute("step"))), e.input.type = "hidden", e.altInput !== void 0 && (e.altInput.type = "hidden");
1273
1273
  try {
1274
1274
  e.input.parentNode && e.input.parentNode.insertBefore(e.mobileInput, e.input.nextSibling);
1275
1275
  } catch {
1276
1276
  }
1277
1277
  v(e.mobileInput, "change", function(t) {
1278
- e.setDate(Q(t).value, !1, e.mobileFormatStr), B("onChange"), B("onClose");
1278
+ e.setDate(ne(t).value, !1, e.mobileFormatStr), R("onChange"), R("onClose");
1279
1279
  });
1280
1280
  }
1281
1281
  function Nn(n) {
@@ -1283,7 +1283,7 @@ function it(a, i) {
1283
1283
  return e.close();
1284
1284
  e.open(n);
1285
1285
  }
1286
- function B(n, t) {
1286
+ function R(n, t) {
1287
1287
  if (e.config !== void 0) {
1288
1288
  var r = e.config[n];
1289
1289
  if (r !== void 0 && r.length > 0)
@@ -1299,13 +1299,13 @@ function it(a, i) {
1299
1299
  function We(n) {
1300
1300
  for (var t = 0; t < e.selectedDates.length; t++) {
1301
1301
  var r = e.selectedDates[t];
1302
- if (r instanceof Date && ee(r, n) === 0)
1302
+ if (r instanceof Date && te(r, n) === 0)
1303
1303
  return "" + t;
1304
1304
  }
1305
1305
  return !1;
1306
1306
  }
1307
1307
  function Yn(n) {
1308
- return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : ee(n, e.selectedDates[0]) >= 0 && ee(n, e.selectedDates[1]) <= 0;
1308
+ return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : te(n, e.selectedDates[0]) >= 0 && te(n, e.selectedDates[1]) <= 0;
1309
1309
  }
1310
1310
  function Se() {
1311
1311
  e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(n, t) {
@@ -1317,51 +1317,51 @@ function it(a, i) {
1317
1317
  var t = n || (e.config.altInput ? e.config.altFormat : e.config.dateFormat);
1318
1318
  return e.selectedDates.map(function(r) {
1319
1319
  return e.formatDate(r, t);
1320
- }).filter(function(r, o, l) {
1321
- return e.config.mode !== "range" || e.config.enableTime || l.indexOf(r) === o;
1320
+ }).filter(function(r, o, u) {
1321
+ return e.config.mode !== "range" || e.config.enableTime || u.indexOf(r) === o;
1322
1322
  }).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
1323
1323
  }
1324
1324
  function de(n) {
1325
- n === void 0 && (n = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = Re(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = Re(e.config.altFormat)), n !== !1 && B("onValueUpdate");
1325
+ n === void 0 && (n = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = Re(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = Re(e.config.altFormat)), n !== !1 && R("onValueUpdate");
1326
1326
  }
1327
1327
  function Hn(n) {
1328
- var t = Q(n), r = e.prevMonthNav.contains(t), o = e.nextMonthNav.contains(t);
1329
- r || o ? P(r ? -1 : 1) : e.yearElements.indexOf(t) >= 0 ? t.select() : t.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : t.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
1328
+ var t = ne(n), r = e.prevMonthNav.contains(t), o = e.nextMonthNav.contains(t);
1329
+ r || o ? A(r ? -1 : 1) : e.yearElements.indexOf(t) >= 0 ? t.select() : t.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : t.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
1330
1330
  }
1331
1331
  function Ln(n) {
1332
1332
  n.preventDefault();
1333
- var t = n.type === "keydown", r = Q(n), o = r;
1334
- e.amPM !== void 0 && r === e.amPM && (e.amPM.textContent = e.l10n.amPM[re(e.amPM.textContent === e.l10n.amPM[0])]);
1335
- var l = parseFloat(o.getAttribute("min")), c = parseFloat(o.getAttribute("max")), D = parseFloat(o.getAttribute("step")), g = parseInt(o.value, 10), C = n.delta || (t ? n.which === 38 ? 1 : -1 : 0), d = g + D * C;
1333
+ var t = n.type === "keydown", r = ne(n), o = r;
1334
+ e.amPM !== void 0 && r === e.amPM && (e.amPM.textContent = e.l10n.amPM[oe(e.amPM.textContent === e.l10n.amPM[0])]);
1335
+ var u = parseFloat(o.getAttribute("min")), c = parseFloat(o.getAttribute("max")), b = parseFloat(o.getAttribute("step")), g = parseInt(o.value, 10), C = n.delta || (t ? n.which === 38 ? 1 : -1 : 0), d = g + b * C;
1336
1336
  if (typeof o.value < "u" && o.value.length === 2) {
1337
1337
  var h = o === e.hourElement, Y = o === e.minuteElement;
1338
- d < l ? (d = c + d + re(!h) + (re(h) && re(!e.amPM)), Y && fe(void 0, -1, e.hourElement)) : d > c && (d = o === e.hourElement ? d - c - re(!e.amPM) : l, Y && fe(void 0, 1, e.hourElement)), e.amPM && h && (D === 1 ? d + g === 23 : Math.abs(d - g) > D) && (e.amPM.textContent = e.l10n.amPM[re(e.amPM.textContent === e.l10n.amPM[0])]), o.value = $(d);
1338
+ d < u ? (d = c + d + oe(!h) + (oe(h) && oe(!e.amPM)), Y && fe(void 0, -1, e.hourElement)) : d > c && (d = o === e.hourElement ? d - c - oe(!e.amPM) : u, Y && fe(void 0, 1, e.hourElement)), e.amPM && h && (b === 1 ? d + g === 23 : Math.abs(d - g) > b) && (e.amPM.textContent = e.l10n.amPM[oe(e.amPM.textContent === e.l10n.amPM[0])]), o.value = Z(d);
1339
1339
  }
1340
1340
  }
1341
1341
  return f(), e;
1342
1342
  }
1343
- function we(a, i) {
1344
- for (var e = Array.prototype.slice.call(a).filter(function(b) {
1345
- return b instanceof HTMLElement;
1343
+ function be(a, i) {
1344
+ for (var e = Array.prototype.slice.call(a).filter(function(D) {
1345
+ return D instanceof HTMLElement;
1346
1346
  }), s = [], f = 0; f < e.length; f++) {
1347
1347
  var p = e[f];
1348
1348
  try {
1349
1349
  if (p.getAttribute("data-fp-omit") !== null)
1350
1350
  continue;
1351
1351
  p._flatpickr !== void 0 && (p._flatpickr.destroy(), p._flatpickr = void 0), p._flatpickr = it(p, i || {}), s.push(p._flatpickr);
1352
- } catch (b) {
1353
- console.error(b);
1352
+ } catch (D) {
1353
+ console.error(D);
1354
1354
  }
1355
1355
  }
1356
1356
  return s.length === 1 ? s[0] : s;
1357
1357
  }
1358
1358
  typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u" && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(a) {
1359
- return we(this, a);
1359
+ return be(this, a);
1360
1360
  }, HTMLElement.prototype.flatpickr = function(a) {
1361
- return we([this], a);
1361
+ return be([this], a);
1362
1362
  });
1363
1363
  var K = function(a, i) {
1364
- return typeof a == "string" ? we(window.document.querySelectorAll(a), i) : a instanceof Node ? we([a], i) : we(a, i);
1364
+ return typeof a == "string" ? be(window.document.querySelectorAll(a), i) : a instanceof Node ? be([a], i) : be(a, i);
1365
1365
  };
1366
1366
  K.defaultConfig = {};
1367
1367
  K.l10ns = {
@@ -1376,9 +1376,9 @@ K.setDefaults = function(a) {
1376
1376
  };
1377
1377
  K.parseDate = Xe({});
1378
1378
  K.formatDate = Mn({});
1379
- K.compareDates = ee;
1379
+ K.compareDates = te;
1380
1380
  typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(a) {
1381
- return we(this, a);
1381
+ return be(this, a);
1382
1382
  });
1383
1383
  Date.prototype.fp_incr = function(a) {
1384
1384
  return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof a == "string" ? parseInt(a, 10) : a));
@@ -1405,52 +1405,52 @@ const ot = ["onCreate", "onDestroy"], Qe = [
1405
1405
  }), ot.forEach((e) => {
1406
1406
  delete i[e];
1407
1407
  }), a), lt = (a) => {
1408
- const i = dn(() => ({ ...a }), [a]), { defaultValue: e, options: s = {}, value: f, children: p, render: b } = i, M = dn(() => ut(s, i), [s, i]), j = pn(null), S = pn(void 0);
1408
+ const i = dn(() => ({ ...a }), [a]), { defaultValue: e, options: s = {}, value: f, children: p, render: D } = i, M = dn(() => ut(s, i), [s, i]), F = pn(null), _ = pn(void 0);
1409
1409
  Xn(
1410
1410
  a.ref,
1411
1411
  () => ({
1412
1412
  get flatpickr() {
1413
- return S.current;
1413
+ return _.current;
1414
1414
  }
1415
1415
  }),
1416
1416
  []
1417
1417
  ), Qn(() => {
1418
1418
  var L;
1419
- const O = () => {
1419
+ const I = () => {
1420
1420
  var v;
1421
1421
  M.onClose = M.onClose || (() => {
1422
1422
  var U;
1423
- (U = j.current) != null && U.blur && j.current.blur();
1424
- }), S.current = (((v = K) == null ? void 0 : v.default) || K)(j.current, M), S.current && f !== void 0 && S.current.setDate(f, !1), a.onCreate && a.onCreate(S.current);
1425
- }, R = () => {
1426
- a.onDestroy && a.onDestroy(S.current), S.current && S.current.destroy(), S.current = void 0;
1423
+ (U = F.current) != null && U.blur && F.current.blur();
1424
+ }), _.current = (((v = K) == null ? void 0 : v.default) || K)(F.current, M), _.current && f !== void 0 && _.current.setDate(f, !1), a.onCreate && a.onCreate(_.current);
1425
+ }, W = () => {
1426
+ a.onDestroy && a.onDestroy(_.current), _.current && _.current.destroy(), _.current = void 0;
1427
1427
  };
1428
- if (O(), S.current) {
1428
+ if (I(), _.current) {
1429
1429
  const v = Object.getOwnPropertyNames(M);
1430
1430
  for (let U = v.length - 1; U >= 0; U--) {
1431
- const V = v[U];
1432
- let q = M[V];
1433
- (q == null ? void 0 : q.toString()) !== ((L = S.current.config[V]) == null ? void 0 : L.toString()) && (Qe.includes(V) && !Array.isArray(q) && (q = [q]), S.current.set(V, q));
1431
+ const ae = v[U];
1432
+ let B = M[ae];
1433
+ (B == null ? void 0 : B.toString()) !== ((L = _.current.config[ae]) == null ? void 0 : L.toString()) && (Qe.includes(ae) && !Array.isArray(B) && (B = [B]), _.current.set(ae, B));
1434
1434
  }
1435
- f !== void 0 && f !== S.current.input.value && S.current.setDate(f, !1);
1435
+ f !== void 0 && f !== _.current.input.value && _.current.setDate(f, !1);
1436
1436
  }
1437
1437
  return () => {
1438
- R();
1438
+ W();
1439
1439
  };
1440
1440
  }, [M, s, i, f, a]);
1441
1441
  const y = gn((L) => {
1442
- j.current = L;
1442
+ F.current = L;
1443
1443
  }, []);
1444
- if (b)
1445
- return b({ ...i, defaultValue: e, value: f }, y);
1444
+ if (D)
1445
+ return D({ ...i, defaultValue: e, value: f }, y);
1446
1446
  const H = gn(
1447
1447
  (L) => {
1448
- var O, R;
1449
- a && a.onChange && (Array.isArray(a == null ? void 0 : a.onChange) ? (O = a == null ? void 0 : a.onChange) == null || O.forEach(() => [new Date(L.target.value)], (f == null ? void 0 : f.toString()) || "") : typeof a.onChange == "function" && ((R = a == null ? void 0 : a.onChange) == null || R.call(a, [new Date(L.target.value)], (f == null ? void 0 : f.toString()) || "", S.current)));
1448
+ var I, W;
1449
+ a && a.onChange && (Array.isArray(a == null ? void 0 : a.onChange) ? (I = a == null ? void 0 : a.onChange) == null || I.forEach(() => [new Date(L.target.value)], (f == null ? void 0 : f.toString()) || "") : typeof a.onChange == "function" && ((W = a == null ? void 0 : a.onChange) == null || W.call(a, [new Date(L.target.value)], (f == null ? void 0 : f.toString()) || "", _.current)));
1450
1450
  },
1451
1451
  [a, f]
1452
1452
  );
1453
- return s.wrap ? /* @__PURE__ */ ae.jsx("div", { className: "flatpickr", ref: y, children: p }) : /* @__PURE__ */ ae.jsx(
1453
+ return s.wrap ? /* @__PURE__ */ ie.jsx("div", { className: "flatpickr", ref: y, children: p }) : /* @__PURE__ */ ie.jsx(
1454
1454
  "input",
1455
1455
  {
1456
1456
  onChange: H,
@@ -1485,29 +1485,29 @@ function ft() {
1485
1485
  }
1486
1486
  };
1487
1487
  }
1488
- function s(f, p, b, M, j) {
1488
+ function s(f, p, D, M, F) {
1489
1489
  if (process.env.NODE_ENV !== "production") {
1490
- for (var S in f)
1491
- if (f.hasOwnProperty(S)) {
1490
+ for (var _ in f)
1491
+ if (f.hasOwnProperty(_)) {
1492
1492
  var y;
1493
1493
  try {
1494
- if (typeof f[S] != "function") {
1494
+ if (typeof f[_] != "function") {
1495
1495
  var H = Error(
1496
- (M || "React class") + ": " + b + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[S] + "`."
1496
+ (M || "React class") + ": " + D + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[_] + "`."
1497
1497
  );
1498
1498
  throw H.name = "Invariant Violation", H;
1499
1499
  }
1500
- y = f[S](p, S, M, b, null, i);
1501
- } catch (O) {
1502
- y = O;
1500
+ y = f[_](p, _, M, D, null, i);
1501
+ } catch (I) {
1502
+ y = I;
1503
1503
  }
1504
1504
  if (y && !(y instanceof Error) && a(
1505
- (M || "React class") + ": type specification of " + b + " `" + S + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1505
+ (M || "React class") + ": type specification of " + D + " `" + _ + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1506
1506
  ), y instanceof Error && !(y.message in e)) {
1507
1507
  e[y.message] = !0;
1508
- var L = j ? j() : "";
1508
+ var L = F ? F() : "";
1509
1509
  a(
1510
- "Failed " + b + " type: " + y.message + (L ?? "")
1510
+ "Failed " + D + " type: " + y.message + (L ?? "")
1511
1511
  );
1512
1512
  }
1513
1513
  }
@@ -1522,20 +1522,20 @@ function st() {
1522
1522
  var a = zn(), i = en(), e = ft(), s = function() {
1523
1523
  };
1524
1524
  process.env.NODE_ENV !== "production" && (s = function(p) {
1525
- var b = "Warning: " + p;
1526
- typeof console < "u" && console.error(b);
1525
+ var D = "Warning: " + p;
1526
+ typeof console < "u" && console.error(D);
1527
1527
  try {
1528
- throw new Error(b);
1528
+ throw new Error(D);
1529
1529
  } catch {
1530
1530
  }
1531
1531
  });
1532
1532
  function f() {
1533
1533
  return null;
1534
1534
  }
1535
- return $e = function(p, b) {
1536
- var M = typeof Symbol == "function" && Symbol.iterator, j = "@@iterator";
1537
- function S(u) {
1538
- var m = u && (M && u[M] || u[j]);
1535
+ return $e = function(p, D) {
1536
+ var M = typeof Symbol == "function" && Symbol.iterator, F = "@@iterator";
1537
+ function _(l) {
1538
+ var m = l && (M && l[M] || l[F]);
1539
1539
  if (typeof m == "function")
1540
1540
  return m;
1541
1541
  }
@@ -1548,216 +1548,216 @@ function st() {
1548
1548
  string: v("string"),
1549
1549
  symbol: v("symbol"),
1550
1550
  any: U(),
1551
- arrayOf: V,
1552
- element: q(),
1553
- instanceOf: ie,
1554
- node: ue(),
1555
- objectOf: ge,
1551
+ arrayOf: ae,
1552
+ element: B(),
1553
+ instanceOf: z,
1554
+ node: se(),
1555
+ objectOf: pe,
1556
1556
  oneOf: fe,
1557
- oneOfType: oe,
1558
- shape: se,
1559
- exact: pe
1557
+ oneOfType: ue,
1558
+ shape: le,
1559
+ exact: ge
1560
1560
  };
1561
- function L(u, m) {
1562
- return u === m ? u !== 0 || 1 / u === 1 / m : u !== u && m !== m;
1561
+ function L(l, m) {
1562
+ return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
1563
1563
  }
1564
- function O(u) {
1565
- this.message = u, this.stack = "";
1564
+ function I(l) {
1565
+ this.message = l, this.stack = "";
1566
1566
  }
1567
- O.prototype = Error.prototype;
1568
- function R(u) {
1567
+ I.prototype = Error.prototype;
1568
+ function W(l) {
1569
1569
  if (process.env.NODE_ENV !== "production")
1570
- var m = {}, I = 0;
1571
- function x(P, _, w, T, A, N, te) {
1572
- if (T = T || y, N = N || w, te !== i) {
1573
- if (b) {
1574
- var Z = new Error(
1570
+ var m = {}, S = 0;
1571
+ function x(A, P, E, T, k, N, re) {
1572
+ if (T = T || y, N = N || E, re !== i) {
1573
+ if (D) {
1574
+ var Q = new Error(
1575
1575
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1576
1576
  );
1577
- throw Z.name = "Invariant Violation", Z;
1577
+ throw Q.name = "Invariant Violation", Q;
1578
1578
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1579
- var me = T + ":" + w;
1580
- !m[me] && // Avoid spamming the console because they are often not actionable except for lib authors
1581
- I < 3 && (s(
1579
+ var he = T + ":" + E;
1580
+ !m[he] && // Avoid spamming the console because they are often not actionable except for lib authors
1581
+ S < 3 && (s(
1582
1582
  "You are manually calling a React.PropTypes validation function for the `" + N + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1583
- ), m[me] = !0, I++);
1583
+ ), m[he] = !0, S++);
1584
1584
  }
1585
1585
  }
1586
- return _[w] == null ? P ? _[w] === null ? new O("The " + A + " `" + N + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new O("The " + A + " `" + N + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : u(_, w, T, A, N);
1586
+ return P[E] == null ? A ? P[E] === null ? new I("The " + k + " `" + N + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new I("The " + k + " `" + N + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : l(P, E, T, k, N);
1587
1587
  }
1588
- var E = x.bind(null, !1);
1589
- return E.isRequired = x.bind(null, !0), E;
1590
- }
1591
- function v(u) {
1592
- function m(I, x, E, P, _, w) {
1593
- var T = I[x], A = W(T);
1594
- if (A !== u) {
1595
- var N = le(T);
1596
- return new O("Invalid " + P + " `" + _ + "` of type " + ("`" + N + "` supplied to `" + E + "`, expected ") + ("`" + u + "`."));
1588
+ var w = x.bind(null, !1);
1589
+ return w.isRequired = x.bind(null, !0), w;
1590
+ }
1591
+ function v(l) {
1592
+ function m(S, x, w, A, P, E) {
1593
+ var T = S[x], k = $(T);
1594
+ if (k !== l) {
1595
+ var N = q(T);
1596
+ return new I("Invalid " + A + " `" + P + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected ") + ("`" + l + "`."));
1597
1597
  }
1598
1598
  return null;
1599
1599
  }
1600
- return R(m);
1600
+ return W(m);
1601
1601
  }
1602
1602
  function U() {
1603
- return R(f);
1604
- }
1605
- function V(u) {
1606
- function m(I, x, E, P, _) {
1607
- if (typeof u != "function")
1608
- return new O("Property `" + _ + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
1609
- var w = I[x];
1610
- if (!Array.isArray(w)) {
1611
- var T = W(w);
1612
- return new O("Invalid " + P + " `" + _ + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected an array."));
1603
+ return W(f);
1604
+ }
1605
+ function ae(l) {
1606
+ function m(S, x, w, A, P) {
1607
+ if (typeof l != "function")
1608
+ return new I("Property `" + P + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
1609
+ var E = S[x];
1610
+ if (!Array.isArray(E)) {
1611
+ var T = $(E);
1612
+ return new I("Invalid " + A + " `" + P + "` of type " + ("`" + T + "` supplied to `" + w + "`, expected an array."));
1613
1613
  }
1614
- for (var A = 0; A < w.length; A++) {
1615
- var N = u(w, A, E, P, _ + "[" + A + "]", i);
1614
+ for (var k = 0; k < E.length; k++) {
1615
+ var N = l(E, k, w, A, P + "[" + k + "]", i);
1616
1616
  if (N instanceof Error)
1617
1617
  return N;
1618
1618
  }
1619
1619
  return null;
1620
1620
  }
1621
- return R(m);
1622
- }
1623
- function q() {
1624
- function u(m, I, x, E, P) {
1625
- var _ = m[I];
1626
- if (!p(_)) {
1627
- var w = W(_);
1628
- return new O("Invalid " + E + " `" + P + "` of type " + ("`" + w + "` supplied to `" + x + "`, expected a single ReactElement."));
1621
+ return W(m);
1622
+ }
1623
+ function B() {
1624
+ function l(m, S, x, w, A) {
1625
+ var P = m[S];
1626
+ if (!p(P)) {
1627
+ var E = $(P);
1628
+ return new I("Invalid " + w + " `" + A + "` of type " + ("`" + E + "` supplied to `" + x + "`, expected a single ReactElement."));
1629
1629
  }
1630
1630
  return null;
1631
1631
  }
1632
- return R(u);
1632
+ return W(l);
1633
1633
  }
1634
- function ie(u) {
1635
- function m(I, x, E, P, _) {
1636
- if (!(I[x] instanceof u)) {
1637
- var w = u.name || y, T = ye(I[x]);
1638
- return new O("Invalid " + P + " `" + _ + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected ") + ("instance of `" + w + "`."));
1634
+ function z(l) {
1635
+ function m(S, x, w, A, P) {
1636
+ if (!(S[x] instanceof l)) {
1637
+ var E = l.name || y, T = me(S[x]);
1638
+ return new I("Invalid " + A + " `" + P + "` of type " + ("`" + T + "` supplied to `" + w + "`, expected ") + ("instance of `" + E + "`."));
1639
1639
  }
1640
1640
  return null;
1641
1641
  }
1642
- return R(m);
1642
+ return W(m);
1643
1643
  }
1644
- function fe(u) {
1645
- if (!Array.isArray(u))
1644
+ function fe(l) {
1645
+ if (!Array.isArray(l))
1646
1646
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOf, expected an instance of array."), f;
1647
- function m(I, x, E, P, _) {
1648
- for (var w = I[x], T = 0; T < u.length; T++)
1649
- if (L(w, u[T]))
1647
+ function m(S, x, w, A, P) {
1648
+ for (var E = S[x], T = 0; T < l.length; T++)
1649
+ if (L(E, l[T]))
1650
1650
  return null;
1651
- var A = JSON.stringify(u);
1652
- return new O("Invalid " + P + " `" + _ + "` of value `" + w + "` " + ("supplied to `" + E + "`, expected one of " + A + "."));
1651
+ var k = JSON.stringify(l);
1652
+ return new I("Invalid " + A + " `" + P + "` of value `" + E + "` " + ("supplied to `" + w + "`, expected one of " + k + "."));
1653
1653
  }
1654
- return R(m);
1654
+ return W(m);
1655
1655
  }
1656
- function ge(u) {
1657
- function m(I, x, E, P, _) {
1658
- if (typeof u != "function")
1659
- return new O("Property `" + _ + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
1660
- var w = I[x], T = W(w);
1656
+ function pe(l) {
1657
+ function m(S, x, w, A, P) {
1658
+ if (typeof l != "function")
1659
+ return new I("Property `" + P + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
1660
+ var E = S[x], T = $(E);
1661
1661
  if (T !== "object")
1662
- return new O("Invalid " + P + " `" + _ + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected an object."));
1663
- for (var A in w)
1664
- if (w.hasOwnProperty(A)) {
1665
- var N = u(w, A, E, P, _ + "." + A, i);
1662
+ return new I("Invalid " + A + " `" + P + "` of type " + ("`" + T + "` supplied to `" + w + "`, expected an object."));
1663
+ for (var k in E)
1664
+ if (E.hasOwnProperty(k)) {
1665
+ var N = l(E, k, w, A, P + "." + k, i);
1666
1666
  if (N instanceof Error)
1667
1667
  return N;
1668
1668
  }
1669
1669
  return null;
1670
1670
  }
1671
- return R(m);
1671
+ return W(m);
1672
1672
  }
1673
- function oe(u) {
1674
- if (!Array.isArray(u))
1673
+ function ue(l) {
1674
+ if (!Array.isArray(l))
1675
1675
  return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), f;
1676
- for (var m = 0; m < u.length; m++) {
1677
- var I = u[m];
1678
- if (typeof I != "function")
1676
+ for (var m = 0; m < l.length; m++) {
1677
+ var S = l[m];
1678
+ if (typeof S != "function")
1679
1679
  return s(
1680
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(I) + " at index " + m + "."
1680
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ce(S) + " at index " + m + "."
1681
1681
  ), f;
1682
1682
  }
1683
- function x(E, P, _, w, T) {
1684
- for (var A = 0; A < u.length; A++) {
1685
- var N = u[A];
1686
- if (N(E, P, _, w, T, i) == null)
1683
+ function x(w, A, P, E, T) {
1684
+ for (var k = 0; k < l.length; k++) {
1685
+ var N = l[k];
1686
+ if (N(w, A, P, E, T, i) == null)
1687
1687
  return null;
1688
1688
  }
1689
- return new O("Invalid " + w + " `" + T + "` supplied to " + ("`" + _ + "`."));
1689
+ return new I("Invalid " + E + " `" + T + "` supplied to " + ("`" + P + "`."));
1690
1690
  }
1691
- return R(x);
1691
+ return W(x);
1692
1692
  }
1693
- function ue() {
1694
- function u(m, I, x, E, P) {
1695
- return ne(m[I]) ? null : new O("Invalid " + E + " `" + P + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
1693
+ function se() {
1694
+ function l(m, S, x, w, A) {
1695
+ return X(m[S]) ? null : new I("Invalid " + w + " `" + A + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
1696
1696
  }
1697
- return R(u);
1697
+ return W(l);
1698
1698
  }
1699
- function se(u) {
1700
- function m(I, x, E, P, _) {
1701
- var w = I[x], T = W(w);
1699
+ function le(l) {
1700
+ function m(S, x, w, A, P) {
1701
+ var E = S[x], T = $(E);
1702
1702
  if (T !== "object")
1703
- return new O("Invalid " + P + " `" + _ + "` of type `" + T + "` " + ("supplied to `" + E + "`, expected `object`."));
1704
- for (var A in u) {
1705
- var N = u[A];
1703
+ return new I("Invalid " + A + " `" + P + "` of type `" + T + "` " + ("supplied to `" + w + "`, expected `object`."));
1704
+ for (var k in l) {
1705
+ var N = l[k];
1706
1706
  if (N) {
1707
- var te = N(w, A, E, P, _ + "." + A, i);
1708
- if (te)
1709
- return te;
1707
+ var re = N(E, k, w, A, P + "." + k, i);
1708
+ if (re)
1709
+ return re;
1710
1710
  }
1711
1711
  }
1712
1712
  return null;
1713
1713
  }
1714
- return R(m);
1714
+ return W(m);
1715
1715
  }
1716
- function pe(u) {
1717
- function m(I, x, E, P, _) {
1718
- var w = I[x], T = W(w);
1716
+ function ge(l) {
1717
+ function m(S, x, w, A, P) {
1718
+ var E = S[x], T = $(E);
1719
1719
  if (T !== "object")
1720
- return new O("Invalid " + P + " `" + _ + "` of type `" + T + "` " + ("supplied to `" + E + "`, expected `object`."));
1721
- var A = a({}, I[x], u);
1722
- for (var N in A) {
1723
- var te = u[N];
1724
- if (!te)
1725
- return new O(
1726
- "Invalid " + P + " `" + _ + "` key `" + N + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(I[x], null, " ") + `
1727
- Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1720
+ return new I("Invalid " + A + " `" + P + "` of type `" + T + "` " + ("supplied to `" + w + "`, expected `object`."));
1721
+ var k = a({}, S[x], l);
1722
+ for (var N in k) {
1723
+ var re = l[N];
1724
+ if (!re)
1725
+ return new I(
1726
+ "Invalid " + A + " `" + P + "` key `" + N + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(S[x], null, " ") + `
1727
+ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1728
1728
  );
1729
- var Z = te(w, N, E, P, _ + "." + N, i);
1730
- if (Z)
1731
- return Z;
1729
+ var Q = re(E, N, w, A, P + "." + N, i);
1730
+ if (Q)
1731
+ return Q;
1732
1732
  }
1733
1733
  return null;
1734
1734
  }
1735
- return R(m);
1735
+ return W(m);
1736
1736
  }
1737
- function ne(u) {
1738
- switch (typeof u) {
1737
+ function X(l) {
1738
+ switch (typeof l) {
1739
1739
  case "number":
1740
1740
  case "string":
1741
1741
  case "undefined":
1742
1742
  return !0;
1743
1743
  case "boolean":
1744
- return !u;
1744
+ return !l;
1745
1745
  case "object":
1746
- if (Array.isArray(u))
1747
- return u.every(ne);
1748
- if (u === null || p(u))
1746
+ if (Array.isArray(l))
1747
+ return l.every(X);
1748
+ if (l === null || p(l))
1749
1749
  return !0;
1750
- var m = S(u);
1750
+ var m = _(l);
1751
1751
  if (m) {
1752
- var I = m.call(u), x;
1753
- if (m !== u.entries) {
1754
- for (; !(x = I.next()).done; )
1755
- if (!ne(x.value))
1752
+ var S = m.call(l), x;
1753
+ if (m !== l.entries) {
1754
+ for (; !(x = S.next()).done; )
1755
+ if (!X(x.value))
1756
1756
  return !1;
1757
1757
  } else
1758
- for (; !(x = I.next()).done; ) {
1759
- var E = x.value;
1760
- if (E && !ne(E[1]))
1758
+ for (; !(x = S.next()).done; ) {
1759
+ var w = x.value;
1760
+ if (w && !X(w[1]))
1761
1761
  return !1;
1762
1762
  }
1763
1763
  } else
@@ -1767,27 +1767,27 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1767
1767
  return !1;
1768
1768
  }
1769
1769
  }
1770
- function Ce(u, m) {
1771
- return u === "symbol" || m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol;
1770
+ function we(l, m) {
1771
+ return l === "symbol" || m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol;
1772
1772
  }
1773
- function W(u) {
1774
- var m = typeof u;
1775
- return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : Ce(m, u) ? "symbol" : m;
1773
+ function $(l) {
1774
+ var m = typeof l;
1775
+ return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : we(m, l) ? "symbol" : m;
1776
1776
  }
1777
- function le(u) {
1778
- if (typeof u > "u" || u === null)
1779
- return "" + u;
1780
- var m = W(u);
1777
+ function q(l) {
1778
+ if (typeof l > "u" || l === null)
1779
+ return "" + l;
1780
+ var m = $(l);
1781
1781
  if (m === "object") {
1782
- if (u instanceof Date)
1782
+ if (l instanceof Date)
1783
1783
  return "date";
1784
- if (u instanceof RegExp)
1784
+ if (l instanceof RegExp)
1785
1785
  return "regexp";
1786
1786
  }
1787
1787
  return m;
1788
1788
  }
1789
- function ve(u) {
1790
- var m = le(u);
1789
+ function Ce(l) {
1790
+ var m = q(l);
1791
1791
  switch (m) {
1792
1792
  case "array":
1793
1793
  case "object":
@@ -1800,8 +1800,8 @@ Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
1800
1800
  return m;
1801
1801
  }
1802
1802
  }
1803
- function ye(u) {
1804
- return !u.constructor || !u.constructor.name ? y : u.constructor.name;
1803
+ function me(l) {
1804
+ return !l.constructor || !l.constructor.name ? y : l.constructor.name;
1805
1805
  }
1806
1806
  return H.checkPropTypes = e, H.PropTypes = H, H;
1807
1807
  }, $e;
@@ -1814,7 +1814,7 @@ function ct() {
1814
1814
  function i() {
1815
1815
  }
1816
1816
  return Ze = function() {
1817
- function e(p, b, M, j, S, y) {
1817
+ function e(p, D, M, F, _, y) {
1818
1818
  if (y !== a) {
1819
1819
  var H = new Error(
1820
1820
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
@@ -1861,7 +1861,7 @@ function dt() {
1861
1861
  return Ne.exports;
1862
1862
  }
1863
1863
  var pt = dt();
1864
- const k = /* @__PURE__ */ $n(pt), gt = "#949494", mt = "DatePicker-module_inputMaxWidthSmall_cRYaK", ht = "DatePicker-module_inputMaxWidthDefault_GbIO-", vt = "DatePicker-module_inputMaxWidthLarge_fZKFi", yt = "DatePicker-module_input_3VHte", Dt = "DatePicker-module_inputWrapper_aqoyL", bt = "DatePicker-module_inputWrapperCompact_-7CrL", wt = "DatePicker-module_iconButton_19a6e", Ct = "DatePicker-module_clearButton_O1D31", z = {
1864
+ const O = /* @__PURE__ */ $n(pt), gt = "#949494", mt = "DatePicker-module_inputMaxWidthSmall_cRYaK", ht = "DatePicker-module_inputMaxWidthDefault_GbIO-", vt = "DatePicker-module_inputMaxWidthLarge_fZKFi", yt = "DatePicker-module_input_3VHte", Dt = "DatePicker-module_inputWrapper_aqoyL", bt = "DatePicker-module_inputWrapperCompact_-7CrL", wt = "DatePicker-module_iconButton_19a6e", Ct = "DatePicker-module_clearButton_O1D31", G = {
1865
1865
  systemGray3: gt,
1866
1866
  inputMaxWidthSmall: mt,
1867
1867
  inputMaxWidthDefault: ht,
@@ -1877,156 +1877,158 @@ const k = /* @__PURE__ */ $n(pt), gt = "#949494", mt = "DatePicker-module_inputM
1877
1877
  let Mt = 0;
1878
1878
  function xn({
1879
1879
  attachTo: a,
1880
- compact: i,
1881
- inputMaxWidth: e,
1882
- defaultDate: s,
1883
- disabled: f,
1884
- error: p,
1885
- fullWidth: b,
1886
- id: M,
1887
- helperText: j,
1888
- optionalLabelText: S,
1889
- label: y,
1890
- mode: H,
1891
- onChange: L,
1892
- onOpen: O,
1893
- onClose: R,
1894
- showClearButton: v,
1895
- showIcon: U,
1896
- firstSelectableDate: V,
1897
- lastSelectableDate: q,
1898
- dateFormat: ie = "F j, Y",
1899
- allowInput: fe,
1900
- tooltip: ge,
1901
- "data-testid": oe,
1902
- flatpickrRef: ue,
1903
- placeholder: se,
1904
- calendarContainerClass: pe,
1905
- plugins: ne = [],
1906
- value: Ce
1880
+ position: i,
1881
+ compact: e,
1882
+ inputMaxWidth: s,
1883
+ defaultDate: f,
1884
+ disabled: p,
1885
+ error: D,
1886
+ fullWidth: M,
1887
+ id: F,
1888
+ helperText: _,
1889
+ optionalLabelText: y,
1890
+ label: H,
1891
+ mode: L,
1892
+ onChange: I,
1893
+ onOpen: W,
1894
+ onClose: v,
1895
+ showClearButton: U,
1896
+ showIcon: ae,
1897
+ firstSelectableDate: B,
1898
+ lastSelectableDate: z,
1899
+ dateFormat: fe = "F j, Y",
1900
+ allowInput: pe,
1901
+ tooltip: ue,
1902
+ "data-testid": se,
1903
+ flatpickrRef: le,
1904
+ placeholder: ge,
1905
+ calendarContainerClass: X,
1906
+ plugins: we = [],
1907
+ value: $
1907
1908
  }) {
1908
- var m, I;
1909
- const W = Ae.useRef(), le = !!((I = (m = W == null ? void 0 : W.current) == null ? void 0 : m.input) != null && I.value), ve = xe(
1910
- xe(_e.input, z.input, {
1911
- [_e["input--compact"]]: i,
1912
- [_e["input--disabled"]]: f,
1913
- [_e["input--error"]]: p
1909
+ var S, x;
1910
+ const q = Ae.useRef(), Ce = !!((x = (S = q == null ? void 0 : q.current) == null ? void 0 : S.input) != null && x.value), me = xe(
1911
+ xe(_e.input, G.input, {
1912
+ [_e["input--compact"]]: e,
1913
+ [_e["input--disabled"]]: p,
1914
+ [_e["input--error"]]: D
1914
1915
  })
1915
1916
  );
1916
1917
  Ae.useEffect(() => {
1917
- W.current && (W.current.input.nextSibling.id = M, W.current.input.nextSibling.autocomplete = "off", ue && (ue.current = W.current));
1918
+ q.current && (q.current.input.nextSibling.id = F, q.current.input.nextSibling.autocomplete = "off", le && (le.current = q.current));
1918
1919
  }, []), Ae.useEffect(() => {
1919
- W.current.input.nextSibling.className = ve;
1920
- }, [i, f, p, f]);
1921
- const ye = Ae.useMemo(() => {
1922
- if (!V && !q)
1920
+ q.current.input.nextSibling.className = me;
1921
+ }, [e, p, D, p]);
1922
+ const l = Ae.useMemo(() => {
1923
+ if (!B && !z)
1923
1924
  return;
1924
- const x = Pe(V), E = Pe(q), P = Pe(s);
1925
- return (_) => {
1926
- const w = Pe(_);
1927
- if (w.isSame(P, "day"))
1925
+ const w = Pe(B), A = Pe(z), P = Pe(f);
1926
+ return (E) => {
1927
+ const T = Pe(E);
1928
+ if (T.isSame(P, "day"))
1928
1929
  return !1;
1929
- let T = !0;
1930
- return V && w.isBefore(x, "day") && (T = !1), q && w.isAfter(E, "day") && (T = !1), !T;
1930
+ let k = !0;
1931
+ return B && T.isBefore(w, "day") && (k = !1), z && T.isAfter(A, "day") && (k = !1), !k;
1931
1932
  };
1932
- }, [s, V, q]);
1933
- let u;
1934
- switch (e) {
1933
+ }, [f, B, z]);
1934
+ let m;
1935
+ switch (s) {
1935
1936
  case "small":
1936
- u = z.inputMaxWidthSmall;
1937
+ m = G.inputMaxWidthSmall;
1937
1938
  break;
1938
1939
  case "large":
1939
- u = z.inputMaxWidthLarge;
1940
+ m = G.inputMaxWidthLarge;
1940
1941
  break;
1941
1942
  default:
1942
- u = z.inputMaxWidthDefault;
1943
+ m = G.inputMaxWidthDefault;
1943
1944
  }
1944
- return /* @__PURE__ */ ae.jsx(
1945
+ return /* @__PURE__ */ ie.jsx(
1945
1946
  Zn,
1946
1947
  {
1947
- tooltip: ge,
1948
+ tooltip: ue,
1948
1949
  wrapperClassNames: xe({
1949
- [u]: !b
1950
+ [m]: !M
1950
1951
  }),
1951
- label: y,
1952
- helperText: j,
1953
- optionalLabelText: S,
1954
- disabled: f,
1955
- error: p,
1956
- inputId: M,
1957
- fullWidth: b,
1958
- renderControl: () => /* @__PURE__ */ ae.jsx(
1952
+ label: H,
1953
+ helperText: _,
1954
+ optionalLabelText: y,
1955
+ disabled: p,
1956
+ error: D,
1957
+ inputId: F,
1958
+ fullWidth: M,
1959
+ renderControl: () => /* @__PURE__ */ ie.jsx(
1959
1960
  lt,
1960
1961
  {
1961
1962
  options: {
1962
- allowInput: fe,
1963
- altFormat: ie,
1963
+ allowInput: pe,
1964
+ altFormat: fe,
1964
1965
  altInput: !0,
1965
- altInputClass: ve,
1966
+ altInputClass: me,
1966
1967
  appendTo: a || void 0,
1968
+ position: i || "auto",
1967
1969
  dateFormat: "Z",
1968
- mode: H,
1970
+ mode: L,
1969
1971
  wrap: !0,
1970
- defaultDate: s,
1971
- disable: [ye],
1972
- plugins: ne
1972
+ defaultDate: f,
1973
+ disable: [l],
1974
+ plugins: we
1973
1975
  },
1974
- onCreate: (x) => {
1975
- W.current = x, pe && (W.current.calendarContainer.className = xe(
1976
- W.current.calendarContainer.className,
1977
- pe
1976
+ onCreate: (w) => {
1977
+ q.current = w, X && (q.current.calendarContainer.className = xe(
1978
+ q.current.calendarContainer.className,
1979
+ X
1978
1980
  ));
1979
1981
  },
1980
- onChange: L,
1981
- onOpen: O,
1982
- onClose: R,
1983
- value: Ce,
1984
- children: /* @__PURE__ */ ae.jsxs(
1982
+ onChange: I,
1983
+ onOpen: W,
1984
+ onClose: v,
1985
+ value: $,
1986
+ children: /* @__PURE__ */ ie.jsxs(
1985
1987
  "div",
1986
1988
  {
1987
- "data-testid": oe,
1988
- className: xe(z.inputWrapper, {
1989
- [z["inputWrapper--error"]]: p,
1990
- [z["inputWrapper--disabled"]]: f,
1991
- [z.inputWrapperCompact]: i
1989
+ "data-testid": se,
1990
+ className: xe(G.inputWrapper, {
1991
+ [G["inputWrapper--error"]]: D,
1992
+ [G["inputWrapper--disabled"]]: p,
1993
+ [G.inputWrapperCompact]: e
1992
1994
  }),
1993
1995
  children: [
1994
- /* @__PURE__ */ ae.jsx(
1996
+ /* @__PURE__ */ ie.jsx(
1995
1997
  "input",
1996
1998
  {
1997
- className: z.inputElement,
1999
+ className: G.inputElement,
1998
2000
  "data-input": !0,
1999
- defaultValue: s,
2001
+ defaultValue: f,
2000
2002
  "data-testid": "date-picker-input",
2001
- placeholder: se
2003
+ placeholder: ge
2002
2004
  }
2003
2005
  ),
2004
- U && /* @__PURE__ */ ae.jsx("div", { className: z.iconButton, "data-toggle": !0, children: /* @__PURE__ */ ae.jsx("div", { className: z.iconWrapper, children: /* @__PURE__ */ ae.jsx(
2006
+ ae && /* @__PURE__ */ ie.jsx("div", { className: G.iconButton, "data-toggle": !0, children: /* @__PURE__ */ ie.jsx("div", { className: G.iconWrapper, children: /* @__PURE__ */ ie.jsx(
2005
2007
  cn,
2006
2008
  {
2007
2009
  icon: "calendar",
2008
2010
  variant: "thin",
2009
2011
  size: 24,
2010
- color: z.systemGray3
2012
+ color: G.systemGray3
2011
2013
  }
2012
2014
  ) }) }),
2013
2015
  // istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
2014
- v && le && /* @__PURE__ */ ae.jsx(
2016
+ U && Ce && /* @__PURE__ */ ie.jsx(
2015
2017
  "button",
2016
2018
  {
2017
- className: z.clearButton,
2019
+ className: G.clearButton,
2018
2020
  onClick: () => {
2019
- W.current.clear();
2021
+ q.current.clear();
2020
2022
  },
2021
2023
  "data-testid": "data-picker-clear-button",
2022
2024
  title: "Clear",
2023
- children: /* @__PURE__ */ ae.jsx("div", { className: z.iconWrapper, children: /* @__PURE__ */ ae.jsx(
2025
+ children: /* @__PURE__ */ ie.jsx("div", { className: G.iconWrapper, children: /* @__PURE__ */ ie.jsx(
2024
2026
  cn,
2025
2027
  {
2026
2028
  icon: "close",
2027
2029
  variant: "thin",
2028
2030
  size: 12,
2029
- color: z.systemGray3
2031
+ color: G.systemGray3
2030
2032
  }
2031
2033
  ) })
2032
2034
  }
@@ -2040,42 +2042,42 @@ function xn({
2040
2042
  );
2041
2043
  }
2042
2044
  xn.propTypes = {
2043
- attachTo: k.node,
2044
- allowInput: k.bool,
2045
- inputMaxWidth: k.oneOf(["small", "default", "large"]),
2046
- compact: k.bool,
2047
- disabled: k.bool,
2048
- defaultDate: k.oneOfType([
2049
- k.instanceOf(Date),
2050
- k.arrayOf(k.instanceOf(Date)),
2051
- k.string
2045
+ attachTo: O.node,
2046
+ allowInput: O.bool,
2047
+ inputMaxWidth: O.oneOf(["small", "default", "large"]),
2048
+ compact: O.bool,
2049
+ disabled: O.bool,
2050
+ defaultDate: O.oneOfType([
2051
+ O.instanceOf(Date),
2052
+ O.arrayOf(O.instanceOf(Date)),
2053
+ O.string
2052
2054
  ]),
2053
- error: k.oneOfType([k.string, k.bool]),
2054
- fullWidth: k.bool,
2055
- id: k.string,
2056
- firstSelectableDate: k.oneOfType([
2057
- k.instanceOf(Date),
2058
- k.string
2055
+ error: O.oneOfType([O.string, O.bool]),
2056
+ fullWidth: O.bool,
2057
+ id: O.string,
2058
+ firstSelectableDate: O.oneOfType([
2059
+ O.instanceOf(Date),
2060
+ O.string
2059
2061
  ]),
2060
- helperText: k.string,
2061
- optionalLabelText: k.string,
2062
- label: k.string,
2063
- lastSelectableDate: k.oneOfType([
2064
- k.instanceOf(Date),
2065
- k.string
2062
+ helperText: O.string,
2063
+ optionalLabelText: O.string,
2064
+ label: O.string,
2065
+ lastSelectableDate: O.oneOfType([
2066
+ O.instanceOf(Date),
2067
+ O.string
2066
2068
  ]),
2067
- mode: k.oneOf(["single", "multiple", "range"]),
2068
- onChange: k.func.isRequired,
2069
- onOpen: k.func,
2070
- onClose: k.func,
2071
- showClearButton: k.bool,
2072
- showIcon: k.bool,
2073
- dateFormat: k.string,
2074
- tooltip: k.node,
2075
- flatpickrRef: k.object,
2076
- "data-testid": k.string,
2077
- placeholder: k.string,
2078
- plugins: k.array
2069
+ mode: O.oneOf(["single", "multiple", "range"]),
2070
+ onChange: O.func.isRequired,
2071
+ onOpen: O.func,
2072
+ onClose: O.func,
2073
+ showClearButton: O.bool,
2074
+ showIcon: O.bool,
2075
+ dateFormat: O.string,
2076
+ tooltip: O.node,
2077
+ flatpickrRef: O.object,
2078
+ "data-testid": O.string,
2079
+ placeholder: O.string,
2080
+ plugins: O.array
2079
2081
  };
2080
2082
  xn.defaultProps = {
2081
2083
  attachTo: null,