@swisspost/internet-header 10.8.0 → 10.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DV0YNR6p.js → package-B_v8dSM6.js} +1 -1
- package/dist/cjs/{package-DAEQGHsE.js → package-kgRYEtTJ.js} +1 -1
- package/dist/cjs/post-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/post-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +1 -1
- package/dist/cjs/post-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/post-banner.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-closebutton.cjs.entry.js +1 -1
- package/dist/cjs/post-date-picker.cjs.entry.js +6 -5
- package/dist/cjs/post-footer.cjs.entry.js +2 -2
- package/dist/cjs/post-header.cjs.entry.js +71 -10
- package/dist/cjs/post-icon.cjs.entry.js +2 -3
- package/dist/cjs/post-language-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-language-menu.cjs.entry.js +1 -1
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/post-mainnavigation.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-megadropdown.cjs.entry.js +2 -2
- package/dist/cjs/post-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/post-menu_2.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +1 -1
- package/dist/cjs/post-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/post-progressbar.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper-item.cjs.entry.js +2 -2
- package/dist/cjs/post-stepper.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +32 -4
- package/dist/cjs/post-togglebutton.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +12 -7
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +9 -3
- package/dist/cjs/swisspost-internet-header.cjs.js +1 -1
- package/dist/collection/assets/config/test-configuration.json +32 -12
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +11 -6
- package/dist/collection/components/post-internet-header/post-internet-header.js +27 -2
- package/dist/collection/services/alternate-link.service.js +2 -1
- package/dist/components/package.js +1 -1
- package/dist/components/package2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer2.js +1 -1
- package/dist/components/post-header2.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo2.js +1 -1
- package/dist/components/post-mainnavigation2.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/swisspost-internet-footer.js +1 -1
- package/dist/components/swisspost-internet-header.js +1 -1
- package/dist/docs.json +30 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-BdiQsTQm.js → package-CAL337jJ.js} +1 -1
- package/dist/esm/{package--a_K3g1E.js → package-h2MHUaQn.js} +1 -1
- package/dist/esm/post-accordion_4.entry.js +1 -1
- package/dist/esm/post-autocomplete.entry.js +1 -1
- package/dist/esm/post-avatar.entry.js +1 -1
- package/dist/esm/post-back-to-top.entry.js +1 -1
- package/dist/esm/post-banner.entry.js +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm/post-breadcrumbs.entry.js +1 -1
- package/dist/esm/post-closebutton.entry.js +1 -1
- package/dist/esm/post-date-picker.entry.js +6 -5
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-header.entry.js +71 -10
- package/dist/esm/post-icon.entry.js +2 -3
- package/dist/esm/post-language-menu-item.entry.js +1 -1
- package/dist/esm/post-language-menu.entry.js +1 -1
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +3 -3
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/post-mainnavigation.entry.js +3 -3
- package/dist/esm/post-megadropdown-trigger.entry.js +3 -3
- package/dist/esm/post-megadropdown.entry.js +2 -2
- package/dist/esm/post-menu-item.entry.js +1 -1
- package/dist/esm/post-menu_2.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +1 -1
- package/dist/esm/post-popover-trigger.entry.js +2 -2
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/post-progressbar.entry.js +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-side-navigation-trigger.entry.js +2 -2
- package/dist/esm/post-side-navigation.entry.js +2 -2
- package/dist/esm/post-stepper-item.entry.js +2 -2
- package/dist/esm/post-stepper.entry.js +2 -2
- package/dist/esm/post-tab-item.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +32 -4
- package/dist/esm/post-togglebutton.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/esm/swisspost-internet-footer.entry.js +12 -7
- package/dist/esm/swisspost-internet-header.entry.js +9 -3
- package/dist/esm/swisspost-internet-header.js +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/package-CAL337jJ.js +1 -0
- package/dist/esm-es5/{package--a_K3g1E.js → package-h2MHUaQn.js} +1 -1
- package/dist/esm-es5/post-accordion_4.entry.js +1 -1
- package/dist/esm-es5/post-autocomplete.entry.js +1 -1
- package/dist/esm-es5/post-avatar.entry.js +1 -1
- package/dist/esm-es5/post-back-to-top.entry.js +1 -1
- package/dist/esm-es5/post-banner.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumb-item.entry.js +1 -1
- package/dist/esm-es5/post-breadcrumbs.entry.js +1 -1
- package/dist/esm-es5/post-closebutton.entry.js +1 -1
- package/dist/esm-es5/post-date-picker.entry.js +1 -1
- package/dist/esm-es5/post-footer.entry.js +1 -1
- package/dist/esm-es5/post-header.entry.js +1 -1
- package/dist/esm-es5/post-icon.entry.js +1 -1
- package/dist/esm-es5/post-language-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-language-menu.entry.js +1 -1
- package/dist/esm-es5/post-linkarea.entry.js +1 -1
- package/dist/esm-es5/post-listbox-option.entry.js +1 -1
- package/dist/esm-es5/post-listbox.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-mainnavigation.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown-trigger.entry.js +1 -1
- package/dist/esm-es5/post-megadropdown.entry.js +1 -1
- package/dist/esm-es5/post-menu-item.entry.js +1 -1
- package/dist/esm-es5/post-menu_2.entry.js +1 -1
- package/dist/esm-es5/post-number-input.entry.js +1 -1
- package/dist/esm-es5/post-pagination.entry.js +1 -1
- package/dist/esm-es5/post-popover-trigger.entry.js +1 -1
- package/dist/esm-es5/post-popover.entry.js +1 -1
- package/dist/esm-es5/post-popovercontainer.entry.js +1 -1
- package/dist/esm-es5/post-progressbar.entry.js +1 -1
- package/dist/esm-es5/post-rating.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation-trigger.entry.js +1 -1
- package/dist/esm-es5/post-side-navigation.entry.js +1 -1
- package/dist/esm-es5/post-stepper-item.entry.js +1 -1
- package/dist/esm-es5/post-stepper.entry.js +1 -1
- package/dist/esm-es5/post-tab-item.entry.js +1 -1
- package/dist/esm-es5/post-tab-panel.entry.js +1 -1
- package/dist/esm-es5/post-tabs.entry.js +1 -1
- package/dist/esm-es5/post-togglebutton.entry.js +1 -1
- package/dist/esm-es5/post-tooltip-trigger.entry.js +1 -1
- package/dist/esm-es5/post-tooltip.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.js +1 -1
- package/dist/swisspost-internet-header/assets/config/test-configuration.json +32 -12
- package/dist/swisspost-internet-header/index.esm.js +1 -1
- package/dist/swisspost-internet-header/{p-3124582e.system.entry.js → p-01bad942.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6c284cd6.system.entry.js → p-02b29b77.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4d94cb9d.entry.js → p-03103f05.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1d145a3d.entry.js → p-0589e5c6.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-07c129bc.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-45398826.entry.js → p-0bbb5c31.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0bedd5e7.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-851c2112.system.entry.js → p-0c59b247.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-0df8cfb2.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a1237171.system.entry.js → p-1104f44a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-45d989e5.system.entry.js → p-155bc3d9.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-3995eead.system.entry.js → p-17c93eba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d390eac9.system.entry.js → p-180b541b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5aa3e212.system.entry.js → p-185db23a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-f78ac8af.system.entry.js → p-1868ed70.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5550933f.entry.js → p-1a128c9a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-94c7624f.entry.js → p-23cfa957.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-94aae5c3.entry.js → p-25d097c2.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1df3d147.entry.js → p-2bee008a.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-148cfacf.entry.js → p-330495e7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-61e37660.entry.js → p-386284d7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7a8d9175.system.entry.js → p-38b49f7e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8ff4691a.entry.js → p-3bd877a7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a1ed3c1d.system.entry.js → p-3d2f922d.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bf861c95.entry.js → p-3f0368c7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-80ce5ec8.entry.js → p-4c742645.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5a929d5c.entry.js → p-501e3ecd.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-5a9034d3.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-dcc3e62f.entry.js → p-5c7fd6f4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-5ac46ce3.system.entry.js → p-5ceb7a51.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-5d1b5b3a.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-f2794080.system.entry.js → p-5fe96d1a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-174e2b92.entry.js → p-64be5876.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-dae00825.system.entry.js → p-65c27c7e.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d28a58ec.entry.js → p-6aed8ac4.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-629dfdba.entry.js → p-6cd8c6b0.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-6dbd75fe.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-6e842506.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-fb0e4425.system.entry.js → p-70c79c55.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-785ab999.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-3ef5a7c0.entry.js → p-7f46e6e7.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-62b7473b.entry.js → p-7f8ba8b5.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-de1eae9a.entry.js → p-80f1da9d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4466ee14.entry.js → p-8173229d.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-62a14cc2.system.entry.js → p-822603ec.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-83120625.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-925203fb.system.entry.js → p-8780dd5c.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-57b73dd7.entry.js → p-87c738a0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1b2b7af5.entry.js → p-8a3118d3.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-2d56ef1f.entry.js → p-8a4141ba.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4b39fa0b.system.entry.js → p-8ce359ad.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-8ed8d9c8.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-ac9d7b3f.system.entry.js → p-9183ebfa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a00eb4a0.entry.js → p-96402eea.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-74b8b73a.system.entry.js → p-9883a70b.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-ef4aec35.system.entry.js → p-99b5e4db.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-a12be1fd.system.entry.js → p-99c241aa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-745c3c76.system.entry.js → p-9b0e0fe8.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-9e0f1730.system.entry.js +1 -0
- package/dist/swisspost-internet-header/p-CAL337jJ.js +1 -0
- package/dist/swisspost-internet-header/{p-BXoqlxOG.js → p-CdUTW0zV.js} +1 -1
- package/dist/swisspost-internet-header/{p-B1oFB_zk.system.js → p-CgnycKPl.system.js} +1 -1
- package/dist/swisspost-internet-header/{p-CYBchhbg.system.js → p-DaxTM5LF.system.js} +1 -1
- package/dist/swisspost-internet-header/p-R-F1E1j0.system.js +1 -0
- package/dist/swisspost-internet-header/p-R5BnOD0U.system.js +1 -1
- package/dist/swisspost-internet-header/p-a4bd564c.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a9045c62.system.entry.js → p-a706901f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-22da79ea.entry.js → p-a7e33875.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-36232387.system.entry.js → p-aac0bcd3.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d8384d86.system.entry.js → p-b00a20d4.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-b3aef8a6.system.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-c36c9d88.entry.js → p-b95f2edd.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-381ac502.entry.js → p-bff994e9.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-0c6839cd.entry.js → p-c1dfc933.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bc0fcd50.entry.js → p-c5a5c0d6.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-518f5952.entry.js → p-c6f3e4b0.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-8b90f7d2.system.entry.js → p-cc2fc16f.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-d7df13be.system.entry.js → p-ce5265e7.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fd8106f1.system.entry.js → p-cfe2d854.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-6f0c2a5c.system.entry.js → p-d2fd6e63.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-4ab5590e.system.entry.js → p-d51872e2.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-fea21512.entry.js → p-d94d5319.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-bc30850c.system.entry.js → p-daf5c078.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/p-dfe34af2.entry.js +1 -0
- package/dist/swisspost-internet-header/{p-a4bfe46c.entry.js → p-e5d55394.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-26ac0464.entry.js → p-e5fd9f44.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-1617517b.entry.js → p-e6c6a342.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-79dc7e1b.system.entry.js → p-ee0ad3ba.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-7f953da2.system.entry.js → p-fbb944aa.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/{p-9ac136f3.system.entry.js → p-fe677b2a.system.entry.js} +1 -1
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/components/post-internet-footer/post-internet-footer.d.ts +1 -0
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +4 -0
- package/dist/types/components.d.ts +11 -0
- package/package.json +19 -19
- package/readme.md +1 -1
- package/dist/esm-es5/package-BdiQsTQm.js +0 -1
- package/dist/swisspost-internet-header/p-1ab10b94.entry.js +0 -1
- package/dist/swisspost-internet-header/p-238c919d.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-3afac939.entry.js +0 -1
- package/dist/swisspost-internet-header/p-42fe4c65.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-49c132a1.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-546f0429.entry.js +0 -1
- package/dist/swisspost-internet-header/p-576e3b55.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-5e112c81.entry.js +0 -1
- package/dist/swisspost-internet-header/p-65fb1a64.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-BdiQsTQm.js +0 -1
- package/dist/swisspost-internet-header/p-Ctf1S46w.system.js +0 -1
- package/dist/swisspost-internet-header/p-a21c305f.entry.js +0 -1
- package/dist/swisspost-internet-header/p-cd3f5447.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d1eab2a3.entry.js +0 -1
- package/dist/swisspost-internet-header/p-d52b2e2e.system.entry.js +0 -1
- package/dist/swisspost-internet-header/p-f8f292cf.system.entry.js +0 -1
package/dist/swisspost-internet-header/{p-62a14cc2.system.entry.js → p-822603ec.system.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)i[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++){if(e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a]))i[r[a]]=t[r[a]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-B1oFB_zk.system.js","./p-Bzy18UgU.system.js","./p-BIAUtR0M.system.js","./p-DaxAbTyB.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js"],(function(t,e){"use strict";var i,r,a,n,o,s,c,u,d,l,h;return{setters:[function(t){i=t.r;r=t.h;a=t.H;n=t.g},function(t){o=t.v},function(t){s=t.g},function(t){c=t.a},function(t){u=t.c;d=t.g},function(t){l=t.R},function(t){h=t.T},null],execute:function(){var f;function p(){return u({priority:1,blocking:false,run:function(t,e){var i=d(t,e),r=i.value,a=i.showError;var n=typeof r==="string"&&!Number.isNaN(new Date(r).getTime());if(!n){a("must be a valid date string");return false}return true}})}function v(t){var e=/^\d{1,4}-\d{2}-\d{2}$/;if(!e.test(t))return false;var i=t.split("-");var r="".concat(i[0].padStart(4,"0"),"-").concat(i[1],"-").concat(i[2]);var a=new Date("".concat(r,"T00:00"));if(Number.isNaN(a.getTime()))return false;var n=a.getFullYear();var o=String(a.getMonth()+1).padStart(2,"0");var s=String(a.getDate()).padStart(2,"0");return"".concat(n,"-").concat(o,"-").concat(s)===t}function b(){return u({priority:1,blocking:false,run:function(t,e){var i=d(t,e),r=i.value,a=i.showError;if(!v(String(r))){a("must be in ISO format (YYYY-MM-DD)");return false}return true}})}var k="en";var m=543;var g=["th","th-TH"];var y={ltr:"",rtl:"",pop:""};function w(t){return(new Date).toLocaleDateString(t).includes(y.rtl)?"rtl":"ltr"}function x(t){if(!t)return false;try{return Intl.DateTimeFormat.supportedLocalesOf(t).length>0}catch(t){console.log(t);return false}}function A(t){return typeof t==="string"||t instanceof String}function D(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function _(t,e){if(Array.isArray(e))return _(t,(function(t,i){return e.includes(i)}));return Object.entries(t).reduce((function(t,i){var r=i[0],a=i[1];if(e(a,r))t[r]=a;return t}),{})}var F={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function j(t){switch(t){case F.LEFT:return F.FORCE_LEFT;case F.RIGHT:return F.FORCE_RIGHT;default:return t}}function C(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function O(t,e){if(e===t)return true;var i=Array.isArray(e),r=Array.isArray(t);var a;if(i&&r){if(e.length!=t.length)return false;for(a=0;a<e.length;a++)if(!O(e[a],t[a]))return false;return true}if(i!=r)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){var n=e instanceof Date,o=t instanceof Date;if(n&&o)return e.getTime()==t.getTime();if(n!=o)return false;var s=e instanceof RegExp,c=t instanceof RegExp;if(s&&c)return e.toString()==t.toString();if(s!=c)return false;var u=Object.keys(e);for(a=0;a<u.length;a++)if(!Object.prototype.hasOwnProperty.call(t,u[a]))return false;for(a=0;a<u.length;a++)if(!O(t[u[a]],e[u[a]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}var B=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return F.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?F.RIGHT:F.LEFT},enumerable:false,configurable:true});return t}();function E(t,e){return new E.InputMask(t,e)}function z(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return E.MaskedRegExp;if(A(t))return E.MaskedPattern;if(t===Date)return E.MaskedDate;if(t===Number)return E.MaskedNumber;if(Array.isArray(t)||t===Array)return E.MaskedDynamic;if(E.Masked&&t.prototype instanceof E.Masked)return t;if(E.Masked&&t instanceof E.Masked)return t.constructor;if(t instanceof Function)return E.MaskedFunction;console.warn("Mask not found for mask",t);return E.Masked}function S(t){if(!t)throw new Error("Options in not defined");if(E.Masked){if(t.prototype instanceof E.Masked)return{mask:t};var e=t instanceof E.Masked?{mask:t}:D(t)&&t.mask instanceof E.Masked?t:{},i=e.mask,r=i===void 0?undefined:i,a=__rest(e,["mask"]);if(r){var n=r.mask;return __assign(__assign(__assign({},_(r,(function(t,e){return!e.startsWith("_")}))),{mask:r.constructor,_mask:n}),a)}}if(!D(t))return{mask:t};return __assign({},t)}function M(t){if(E.Masked&&t instanceof E.Masked)return t;var e=S(t);var i=z(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}E.createMask=M;var T=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();E.MaskElement=T;var N=90;var H=89;var I=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.input=e;i._onKeydown=i._onKeydown.bind(i);i._onInput=i._onInput.bind(i);i._onBeforeinput=i._onBeforeinput.bind(i);i._onCompositionEnd=i._onCompositionEnd.bind(i);return i}Object.defineProperty(e.prototype,"rootElement",{get:function(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});e.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};e.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===N&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===H&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===N&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};e.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};e.prototype._onCompositionEnd=function(t){this._handlers.input(t)};e.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};e.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return e}(T);E.HTMLMaskElement=I;var V=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;i.input=e;return i}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){this.input.setSelectionRange(t,e)};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return e}(I);E.HTMLMaskElement=I;var R=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i<r){return i}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i>r){return i}return r},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){if(!this.rootElement.createRange)return;var i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);var r=this.rootElement;var a=r.getSelection&&r.getSelection();if(a){a.removeAllRanges();a.addRange(i)}};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return e}(I);E.HTMLContenteditableMaskElement=R;var P=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(e){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(e);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();P.MAX_LENGTH=100;var L=function(){function t(t,e){this.el=t instanceof T?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new R(t):new V(t);this.masked=M(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new P;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}t.prototype.maskEquals=function(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof E.Masked)&&this.masked.constructor===z(t)){this.masked.updateOptions({mask:t});return}var e=t instanceof E.Masked?t:M({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,e){var i=this._listeners[t];if(!i)return;i.forEach((function(t){return t(e)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var e=this.masked.unmaskedValue;var i=this.masked.value;var r=this.masked.rawInputValue;var a=this.displayValue;var n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==r;this._unmaskedValue=e;this._value=i;this._rawInputValue=r;if(this.el.value!==a)this.el.value=a;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var e=t.mask,i=__rest(t,["mask"]);var r=!this.maskEquals(e);var a=this.masked.optionsIsChanged(i);if(r)this.mask=e;if(a)this.masked.updateOptions(i);if(r||a)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var e=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!e.el)return;e.cursorPos=e._changingCursorPos;e._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,F.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this};t.prototype.off=function(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}var i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var e=new B({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var i=this.masked.rawInputValue;var r=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;var a=i===this.masked.rawInputValue?e.removeDirection:F.NONE;var n=this.masked.nearestInputPos(e.startChangePos+r,a);if(a!==F.NONE)n=this.masked.nearestInputPos(n,F.NONE);this.updateControl(n);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();E.InputMask=L;var U=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(e){return Array.isArray(e)?e:[e,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();E.ChangeDetails=U;var Y=function(){function t(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var e=this.value[0];this.value=this.value.slice(1);return e};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var q=function(){function t(e){this._value="";this._update(__assign(__assign({},t.DEFAULTS),e));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,e){return t};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)};t.prototype.extractTail=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new Y(this.extractInput(t,e),t)};t.prototype.appendTail=function(t){if(A(t))t=new Y(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,e){if(!t)return new U;this._value+=t;return new U({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,e,i){var r;if(e===void 0){e={}}var a=this.state;var n;r=this.doPrepareChar(t,e),t=r[0],n=r[1];if(t){n=n.aggregate(this._appendCharRaw(t,e));if(!n.rawInserted&&this.autofix==="pad"){var o=this.state;this.state=a;var s=this.pad(e);var c=this._appendCharRaw(t,e);s=s.aggregate(c);if(c.rawInserted||s.equals(n)){n=s}else{this.state=o}}}if(n.inserted){var u=void 0;var d=this.doValidate(e)!==false;if(d&&i!=null){var l=this.state;if(this.overwrite===true){u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.unshift(this.displayValue.length-n.tailShift)}}var f=this.appendTail(i);d=f.rawInserted.length===i.toString().length;if(!(d&&f.inserted)&&this.overwrite==="shift"){this.state=l;u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.shift()}f=this.appendTail(i);d=f.rawInserted.length===i.toString().length}if(d&&f.inserted)this.state=l}if(!d){n=new U;this.state=a;if(i&&u)i.state=u}}return n};t.prototype._appendPlaceholder=function(){return new U};t.prototype._appendEager=function(){return new U};t.prototype.append=function(t,e,i){var r;if(!A(t))throw new Error("value should be string");var a=A(i)?new Y(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;var n;r=this.doPrepare(t,e),t=r[0],n=r[1];for(var o=0;o<t.length;++o){var s=this._appendChar(t[o],e,a);if(!s.rawInserted&&!this.doSkipInvalid(t[o],e,a))break;n.aggregate(s)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){n.aggregate(this._appendEager())}if(a!=null){n.tailShift+=this.appendTail(a).tailShift}return n};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new U};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var e=this.rawInputValue;var i=this.value;var r=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return r};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var e=this.state;var i=t(this);this.state=e;delete this._isolated;return i};t.prototype.doSkipInvalid=function(t,e,i){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,e){if(e===void 0){e={}}return U.normalize(this.prepare?this.prepare(t,this,e):t)};t.prototype.doPrepareChar=function(t,e){if(e===void 0){e={}}return U.normalize(this.prepareChar?this.prepareChar(t,this,e):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,e,i,r,a){if(i===void 0){i=""}if(r===void 0){r=F.NONE}if(a===void 0){a={input:true}}var n=t+e;var o=this.extractTail(n);var s=this.eager===true||this.eager==="remove";var c;if(s){r=j(r);c=this.extractInput(0,n,{raw:true})}var u=t;var d=new U;if(r!==F.NONE){u=this.nearestInputPos(t,e>1&&t!==0&&!s?F.NONE:r);d.tailShift=u-t}d.aggregate(this.remove(u));if(s&&r!==F.NONE&&c===this.rawInputValue){if(r===F.FORCE_LEFT){var l=void 0;while(c===this.rawInputValue&&(l=this.displayValue.length)){d.aggregate(new U({tailShift:-1})).aggregate(this.remove(l-1))}}else if(r===F.FORCE_RIGHT){o.unshift()}}return d.aggregate(this.append(i,a,o))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!O(this,t)};t.prototype.typedValueEquals=function(e){var i=this.typedValue;return e===i||t.EMPTY_VALUES.includes(e)&&t.EMPTY_VALUES.includes(i)||(this.format?this.format(e,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new U};return t}();q.DEFAULTS={skipInvalid:true};q.EMPTY_VALUES=[undefined,null,""];E.Masked=q;var G=function(){function t(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(e){if(!String(e))return;e=A(e)?new Y(String(e)):e;var i=this.chunks[this.chunks.length-1];var r=i&&(i.stop===e.stop||e.stop==null)&&e.from===i.from+i.toString().length;if(e instanceof Y){if(r){i.extend(e.toString())}else{this.chunks.push(e)}}else if(e instanceof t){if(e.stop==null){var a=void 0;while(e.chunks.length&&e.chunks[0].stop==null){a=e.chunks.shift();a.from+=e.from;this.extend(a)}}if(e.toString()){e.stop=e.blockIndex;this.chunks.push(e)}}};t.prototype.appendTo=function(e){if(!(e instanceof E.MaskedPattern)){var i=new Y(this.toString());return i.appendTo(e)}var r=new U;for(var a=0;a<this.chunks.length;++a){var n=this.chunks[a];var o=e._mapPosToBlock(e.displayValue.length);var s=n.stop;var c=void 0;if(s!=null&&(!o||o.index<=s)){if(n instanceof t||e._stops.indexOf(s)>=0){r.aggregate(e._appendPlaceholder(s))}c=n instanceof t&&e._blocks[s]}if(c){var u=c.appendTail(n);r.aggregate(u);var d=n.toString().slice(u.rawInserted.length);if(d)r.aggregate(e.append(d,{tail:true}))}else{r.aggregate(e.append(n.toString(),{tail:true}))}}return r};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var i=e.chunks,r=__rest(e,["chunks"]);Object.assign(this,r);this.chunks=i.map((function(e){var i="chunks"in e?new t:new Y;i.state=e;return i}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var e=t!=null?t-this.from:t;var i=0;while(i<this.chunks.length){var r=this.chunks[i];var a=r.unshift(e);if(r.toString()){if(!a)break;++i}else{this.chunks.splice(i,1)}if(a)return a}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var e=this.chunks[t];var i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""};return t}();var $=function(){function t(t,e){this.masked=t;this._log=[];var i=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),r=i.offset,a=i.index;this.offset=r;this.index=a;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,F.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,F.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.NONE);return true}))};return t}();var K=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new U};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}var i=0;var r=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return i;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return r}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new U;var i=this.eager===true||this.eager==="append";var r=this.char===t;var a=r&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;var n=new U({inserted:this.char,rawInserted:a?this.char:""});this._value=this.char;this._isRawInput=a&&(e.raw||e.input);return n};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new U;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new Y("")};t.prototype.appendTail=function(t){if(A(t))t=new Y(String(t));return t.appendTo(this)};t.prototype.append=function(t,e,i){var r=this._appendChar(t[0],e);if(i!=null){r.tailShift+=this.appendTail(i).tailShift}return r};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var X=function(){function t(t){var e=t.parent,i=t.isOptional,r=t.placeholderChar,a=t.displayChar,n=t.lazy,o=t.eager,s=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=M(s);Object.assign(this,{parent:e,isOptional:i,placeholderChar:r,displayChar:a,lazy:n,eager:o})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new U};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new U;var i=this.masked.state;var r=this.masked._appendChar(t,this.currentMaskFlags(e));if(r.inserted&&this.doValidate(e)===false){r=new U;this.masked.state=i}if(!r.inserted&&!this.isOptional&&!this.lazy&&!e.input){r.inserted=this.placeholderChar}r.skip=!r.inserted&&!this.isOptional;this.isFilled=Boolean(r.inserted);return r};t.prototype.append=function(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new U;this.isFilled=true;return new U({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new U};t.prototype.extractTail=function(t,e){return this.masked.extractTail(t,e)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}var i=0;var r=this.value.length;var a=Math.min(Math.max(t,i),r);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?a:i;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?a:r;case F.NONE:default:return a}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var e;return __assign(__assign({},t),{_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new U};return t}();X.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.mask;if(i)e.validate=function(t){return t.search(i)>=0};t.prototype._update.call(this,e)};return e}(q);E.MaskedRegExp=W;var Q=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign(__assign({},e.DEFAULTS),i),{definitions:Object.assign({},X.DEFAULT_DEFINITIONS,i==null?void 0:i.definitions)}))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){e.definitions=Object.assign({},this.definitions,e.definitions);t.prototype._update.call(this,e);this._rebuildMask()};e.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var i=this.mask;if(!i||!t)return;var r=false;var a=false;var n=function(n){if(o.blocks){var c=i.slice(n);var u=Object.keys(o.blocks).filter((function(t){return c.indexOf(t)===0}));u.sort((function(t,e){return e.length-t.length}));var d=u[0];if(d){var l=S(o.blocks[d]),h=l.expose,f=l.repeat,p=__rest(l,["expose","repeat"]);var v=__assign(__assign({lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar,overwrite:o.overwrite,autofix:o.autofix},p),{repeat:f,parent:o});var b=f!=null?new E.RepeatBlock(v):M(v);if(b){o._blocks.push(b);if(h)o.exposeBlock=b;if(!o._maskedBlocks[d])o._maskedBlocks[d]=[];o._maskedBlocks[d].push(o._blocks.length-1)}n+=d.length-1;return s=n,"continue"}}var k=i[n];var m=k in t;if(k===e.STOP_CHAR){o._stops.push(o._blocks.length);return s=n,"continue"}if(k==="{"||k==="}"){r=!r;return s=n,"continue"}if(k==="["||k==="]"){a=!a;return s=n,"continue"}if(k===e.ESCAPE_CHAR){++n;k=i[n];if(!k)return s=n,"break";m=false}var g=m?new X(__assign(__assign({isOptional:a,lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar},S(t[k])),{parent:o})):new K({char:k,eager:o.eager,isUnmasking:r});o._blocks.push(g);s=n};var o=this,s;for(var c=0;c<i.length;++c){var u=n(c);c=s;if(u==="break")break}};Object.defineProperty(e.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(e){if(!e){this.reset();return}var i=e._blocks,r=__rest(e,["_blocks"]);this._blocks.forEach((function(t,e){return t.state=i[e]}));t.prototype.state=r},enumerable:false,configurable:true});e.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});e.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,e){return t+=e.unmaskedValue}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,e){return t+=e.value}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e;this.appendTail(i);this.doCommit()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.typedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,e){return t+=e.displayValue}),"")},enumerable:false,configurable:true});e.prototype.appendTail=function(e){return t.prototype.appendTail.call(this,e).aggregate(this._appendPlaceholder())};e.prototype._appendEager=function(){var t;var e=new U;var i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(var r=i;r<this._blocks.length;++r){var a=this._blocks[r]._appendEager();if(!a.inserted)break;e.aggregate(a)}return e};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._mapPosToBlock(this.displayValue.length);var r=new U;if(!i)return r;for(var a=i.index,n=void 0;n=this._blocks[a];++a){var o;var s=n._appendChar(t,__assign(__assign({},e),{_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}));r.aggregate(s);if(s.consumed)break}return r};e.prototype.extractTail=function(t,e){var i=this;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var r=new G;if(t===e)return r;this._forEachBlocksInRange(t,e,(function(t,e,a,n){var o=t.extractTail(a,n);o.stop=i._findStopBefore(e);o.from=i._blockStartPos(e);if(o instanceof G)o.blockIndex=e;r.extend(o)}));return r};e.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";var r="";this._forEachBlocksInRange(t,e,(function(t,e,a,n){r+=t.extractInput(a,n,i)}));return r};e.prototype._findStopBefore=function(t){var e;for(var i=0;i<this._stops.length;++i){var r=this._stops[i];if(r<=t)e=r;else break}return e};e.prototype._appendPlaceholder=function(t){var e=new U;if(this.lazy&&t==null)return e;var i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;var r=i.index;var a=t!=null?t:this._blocks.length;this._blocks.slice(r,a).forEach((function(i){if(!i.lazy||t!=null){var r;e.aggregate(i._appendPlaceholder((r=i._blocks)==null?void 0:r.length))}}));return e};e.prototype._mapPosToBlock=function(t){var e="";for(var i=0;i<this._blocks.length;++i){var r=this._blocks[i];var a=e.length;e+=r.displayValue;if(t<=e.length){return{index:i,offset:t-a}}}};e.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,e){return t+=e.displayValue.length}),0)};e.prototype._forEachBlocksInRange=function(t,e,i){if(e===void 0){e=this.displayValue.length}var r=this._mapPosToBlock(t);if(r){var a=this._mapPosToBlock(e);var n=a&&r.index===a.index;var o=r.offset;var s=a&&n?a.offset:this._blocks[r.index].displayValue.length;i(this._blocks[r.index],r.index,o,s);if(a&&!n){for(var c=r.index+1;c<a.index;++c){i(this._blocks[c],c,0,this._blocks[c].displayValue.length)}i(this._blocks[a.index],a.index,0,a.offset)}}};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._forEachBlocksInRange(e,i,(function(t,e,i,a){r.aggregate(t.remove(i,a))}));return r};e.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}if(!this._blocks.length)return 0;var i=new $(this,t);if(e===F.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===F.LEFT||e===F.FORCE_LEFT){if(e===F.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===F.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===F.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===F.RIGHT||e===F.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===F.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,F.LEFT)}return t};e.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var i=0;this._forEachBlocksInRange(t,e,(function(t,e,r,a){i+=t.totalInputPositions(r,a)}));return i};e.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};e.prototype.maskedBlocks=function(t){var e=this;var i=this._maskedBlocks[t];if(!i)return[];return i.map((function(t){return e._blocks[t]}))};e.prototype.pad=function(t){var e=new U;this._forEachBlocksInRange(0,this.displayValue.length,(function(i){return e.aggregate(i.pad(t))}));return e};return e}(q);Q.DEFAULTS=__assign(__assign({},q.DEFAULTS),{lazy:true,placeholderChar:"_"});Q.STOP_CHAR="`";Q.ESCAPE_CHAR="\\";Q.InputDefinition=X;Q.FixedDefinition=K;E.MaskedPattern=Q;var Z=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.to,r=i===void 0?this.to||0:i,a=e.from,n=a===void 0?this.from||0:a,o=e.maxLength,s=o===void 0?this.maxLength||0:o,c=e.autofix,u=c===void 0?this.autofix:c,d=__rest(e,["to","from","maxLength","autofix"]);this.to=r;this.from=n;this.maxLength=Math.max(String(r).length,s);this.autofix=u;var l=String(this.from).padStart(this.maxLength,"0");var h=String(this.to).padStart(this.maxLength,"0");var f=0;while(f<h.length&&h[f]===l[f])++f;d.mask=h.slice(0,f).replace(/0/g,"\\0")+"0".repeat(this.maxLength-f);t.prototype._update.call(this,d)};Object.defineProperty(e.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});e.prototype.boundaries=function(t){var e="";var i="";var r=t.match(/^(\D*)(\d*)(\D*)/)||[],a=r[1],n=r[2];if(n){e="0".repeat(a.length)+n;i="9".repeat(a.length)+n}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a;r=t.prototype.doPrepareChar.call(this,e.replace(/\D/g,""),i),e=r[0],a=r[1];if(!e)a.skip=!this.isComplete;return[e,a]};e.prototype._appendCharRaw=function(e,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,e,i);var r=String(this.from).padStart(this.maxLength,"0");var a=String(this.to).padStart(this.maxLength,"0");var n=this.boundaries(this.value+e),o=n[0],s=n[1];if(Number(s)<this.from)return t.prototype._appendCharRaw.call(this,r[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,r[this.value.length],i).aggregate(this._appendCharRaw(e,i))}return t.prototype._appendCharRaw.call(this,a[this.value.length],i)}return t.prototype._appendCharRaw.call(this,e,i)};e.prototype.doValidate=function(e){var i=this.value;var r=i.search(/[^0]/);if(r===-1&&i.length<=this._matchFrom)return true;var a=this.boundaries(i),n=a[0],o=a[1];return this.from<=Number(o)&&Number(n)<=this.to&&t.prototype.doValidate.call(this,e)};e.prototype.pad=function(e){var i=this;var r=new U;if(this.value.length===this.maxLength)return r;var a=this.value;var n=this.maxLength-this.value.length;if(n){this.reset();for(var o=0;o<n;++o){r.aggregate(t.prototype._appendCharRaw.call(this,"0",e))}a.split("").forEach((function(t){return i._appendCharRaw(t)}))}return r};return e}(Q);E.MaskedRange=Z;var J="d{.}`m{.}`Y";var tt=function(t){__extends(e,t);function e(i){return t.call(this,e.extractPatternOptions(__assign(__assign({},e.DEFAULTS),i)))||this}e.extractPatternOptions=function(t){var e=t.mask,i=t.pattern,r=__rest(t,["mask","pattern"]);return __assign(__assign({},r),{mask:A(e)?e:i})};e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(i){var r=__assign(__assign({},e.DEFAULTS),i),a=r.mask,n=r.pattern,o=r.blocks,s=__rest(r,["mask","pattern","blocks"]);var c=Object.assign({},e.GET_DEFAULT_BLOCKS());if(i.min)c.Y.from=i.min.getFullYear();if(i.max)c.Y.to=i.max.getFullYear();if(i.min&&i.max&&c.Y.from===c.Y.to){c.m.from=i.min.getMonth()+1;c.m.to=i.max.getMonth()+1;if(c.m.from===c.m.to){c.d.from=i.min.getDate();c.d.to=i.max.getDate()}}Object.assign(c,this.blocks,o);t.prototype._update.call(this,__assign(__assign({},s),{mask:A(a)?a:n,blocks:c}))};e.prototype.doValidate=function(e){var i=this.date;return t.prototype.doValidate.call(this,e)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))};e.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(e.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(e){t.prototype.typedValue=e},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return e===Date||t.prototype.maskEquals.call(this,e)};e.prototype.optionsIsChanged=function(i){return t.prototype.optionsIsChanged.call(this,e.extractPatternOptions(i))};return e}(Q);tt.GET_DEFAULT_BLOCKS=function(){return{d:{mask:Z,from:1,to:31,maxLength:2},m:{mask:Z,from:1,to:12,maxLength:2},Y:{mask:Z,from:1900,to:9999}}};tt.DEFAULTS=__assign(__assign({},Q.DEFAULTS),{mask:Date,pattern:J,format:function(t,e){if(!t)return"";var i=String(t.getDate()).padStart(2,"0");var r=String(t.getMonth()+1).padStart(2,"0");var a=t.getFullYear();return[i,r,a].join(".")},parse:function(t,e){var i=t.split(".").map(Number),r=i[0],a=i[1],n=i[2];return new Date(n,a-1,r)}});E.MaskedDate=tt;var et=function(t){__extends(e,t);function e(i){var r=t.call(this,__assign(__assign({},e.DEFAULTS),i))||this;r.currentMask=undefined;return r}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=this;t.prototype._update.call(this,e);if("mask"in e){this.exposeMask=undefined;this.compiledMasks=Array.isArray(e.mask)?e.mask.map((function(t){var e=S(t),r=e.expose,a=__rest(e,["expose"]);var n=M(__assign({overwrite:i._overwrite,eager:i._eager,skipInvalid:i._skipInvalid},a));if(r)i.exposeMask=n;return n})):[]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i};e.prototype._applyDispatch=function(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}var r=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;var a=this.rawInputValue;var n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:a;var o=a.slice(n.length);var s=this.currentMask;var c=new U;var u=s==null?void 0:s.state;this.currentMask=this.doDispatch(t,__assign({},e),i);if(this.currentMask){if(this.currentMask!==s){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});c.tailShift=this.currentMask.value.length-r.length}if(o){c.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(u){this.currentMask.state=u}}return c};e.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};e.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};e.prototype.appendTail=function(e){var i=new U;if(e)i.aggregate(this._applyDispatch("",{},e));return i.aggregate(this.currentMask?this.currentMask.appendTail(e):t.prototype.appendTail.call(this,e))};e.prototype.currentMaskFlags=function(t){var e,i;return __assign(__assign({},t),{_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState})};e.prototype.doDispatch=function(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)};e.prototype.doValidate=function(e){return t.prototype.doValidate.call(this,e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))};e.prototype.doPrepare=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepare.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepare.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepareChar.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepareChar.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(e){if(this.exposeMask){this.exposeMask.value=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(e){if(this.exposeMask){this.exposeMask.unmaskedValue=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});e.prototype.remove=function(t,e){var i=new U;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i};Object.defineProperty(e.prototype,"state",{get:function(){var e;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state})},set:function(e){var i=e.compiledMasks,r=e.currentMaskRef,a=e.currentMask,n=__rest(e,["compiledMasks","currentMaskRef","currentMask"]);if(i)this.compiledMasks.forEach((function(t,e){return t.state=i[e]}));if(r!=null){this.currentMask=r;this.currentMask.state=a}t.prototype.state=n},enumerable:false,configurable:true});e.prototype.extractInput=function(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""};e.prototype.extractTail=function(e,i){return this.currentMask?this.currentMask.extractTail(e,i):t.prototype.extractTail.call(this,e,i)};e.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};e.prototype.nearestInputPos=function(e,i){return this.currentMask?this.currentMask.nearestInputPos(e,i):t.prototype.nearestInputPos.call(this,e,i)};Object.defineProperty(e.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return Array.isArray(e)?this.compiledMasks.every((function(t,i){if(!e[i])return;var r=e[i],a=r.mask,n=__rest(r,["mask"]);return O(t,n)&&t.maskEquals(a)})):t.prototype.maskEquals.call(this,e)};e.prototype.typedValueEquals=function(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))};return e}(q);et.DEFAULTS=__assign(__assign({},q.DEFAULTS),{dispatch:function(t,e,i,r){if(!e.compiledMasks.length)return;var a=e.rawInputValue;var n=e.compiledMasks.map((function(n,o){var s=e.currentMask===n;var c=s?n.displayValue.length:n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT);if(n.rawInputValue!==a){n.reset();n.append(a,{raw:true})}else if(!s){n.remove(c)}n.append(t,e.currentMaskFlags(i));n.appendTail(r);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(c,n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT)))}}));n.sort((function(t,e){return e.weight-t.weight||e.totalInputPositions-t.totalInputPositions}));return e.compiledMasks[n[0].index]}});E.MaskedDynamic=et;var it=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.enum,r=__rest(e,["enum"]);if(i){var a=i.map((function(t){return t.length}));var n=Math.min.apply(Math,a);var o=Math.max.apply(Math,a)-n;r.mask="*".repeat(n);if(o)r.mask+="["+"*".repeat(o)+"]";this.enum=i}t.prototype._update.call(this,r)};e.prototype._appendCharRaw=function(e,i){var r=this;if(i===void 0){i={}}var a=Math.min(this.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);var n=this.enum.filter((function(t){return r.matchValue(t,r.unmaskedValue+e,a)}));if(n.length){if(n.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,e){var a=n[0][e];if(e>=r.value.length||a===t.value)return;t.reset();t._appendChar(a,i)}))}var o=t.prototype._appendCharRaw.call(this,n[0][this.value.length],i);if(n.length===1){n[0].slice(this.unmaskedValue.length).split("").forEach((function(e){return o.aggregate(t.prototype._appendCharRaw.call(r,e))}))}return o}return new U({skip:!this.isComplete})};e.prototype.extractTail=function(t,e){if(t===void 0){t=0}return new Y("",t)};e.prototype.remove=function(e,i){var r=this;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}if(e===i)return new U;var a=Math.min(t.prototype.nearestInputPos.call(this,0,F.FORCE_RIGHT),this.value.length);var n;for(n=e;n>=0;--n){var o=this.enum.filter((function(t){return r.matchValue(t,r.value.slice(a,n),a)}));if(o.length>1)break}var s=t.prototype.remove.call(this,n,i);s.tailShift+=n-e;return s};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return e}(Q);it.DEFAULTS=__assign(__assign({},Q.DEFAULTS),{matchValue:function(t,e,i){return t.indexOf(e,i)===i}});E.MaskedEnum=it;var rt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,__assign(__assign({},e),{validate:e.mask}))};return e}(q);E.MaskedFunction=rt;var at;var nt=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,e);this._updateRegExps()};e.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var e="\\d*";var i=(this.scale?"("+C(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(C).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(C(this.thousandsSeparator),"g")};e.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};e.prototype._insertThousandsSeparators=function(t){var e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)};e.prototype.doPrepareChar=function(e,i){if(i===void 0){i={}}var r=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),i),a=r[0],n=r[1];if(e&&!a)n.skip=true;if(a&&!this.allowPositive&&!this.value&&a!=="-")n.aggregate(this._appendChar("-"));return[a,n]};e.prototype._separatorsCount=function(t,e){if(e===void 0){e=false}var i=0;for(var r=0;r<t;++r){if(this._value.indexOf(this.thousandsSeparator,r)===r){++i;if(e)t+=this.thousandsSeparator.length}}return i};e.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};e.prototype.extractInput=function(e,i,r){var a;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}a=this._adjustRangeWithSeparators(e,i),e=a[0],i=a[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,e,i,r))};e.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var r=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var a=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);var n=this._value;this._value+=t;var o=this.number;var s=!isNaN(o);var c=false;if(s){var u=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)u=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)u=this.max;if(u!=null){if(this.autofix){this._value=this.format(u,this).replace(e.UNMASKED_RADIX,this.radix);c||(c=n===this._value&&!i.tail)}else{s=false}}s&&(s=Boolean(this._value.match(this._numberRegExp)))}var d;if(!s){this._value=n;d=new U}else{d=new U({inserted:this._value.slice(n.length),rawInserted:c?"":t,skip:c})}this._value=this._insertThousandsSeparators(this._value);var l=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var h=this._separatorsCountFromSlice(l);d.tailShift+=(h-a)*this.thousandsSeparator.length;return d};e.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1;var i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1};e.prototype._adjustRangeWithSeparators=function(t,e){var i=this._findSeparatorAround(t);if(i>=0)t=i;var r=this._findSeparatorAround(e);if(r>=0)e=r+this.thousandsSeparator.length;return[t,e]};e.prototype.remove=function(t,e){var i;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}i=this._adjustRangeWithSeparators(t,e),t=i[0],e=i[1];var r=this.value.slice(0,t);var a=this.value.slice(e);var n=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+a));var o=this._separatorsCountFromSlice(r);return new U({tailShift:(o-n)*this.thousandsSeparator.length})};e.prototype.nearestInputPos=function(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:{var i=this._findSeparatorAround(t-1);if(i>=0){var r=i+this.thousandsSeparator.length;if(t<r||this.value.length<=r||e===F.FORCE_LEFT){return i}}break}case F.RIGHT:case F.FORCE_RIGHT:{var a=this._findSeparatorAround(t);if(a>=0){return a+this.thousandsSeparator.length}}}return t};e.prototype.doCommit=function(){if(this.value){var e=this.number;var i=e;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==e)this.unmaskedValue=this.format(i,this);var r=this.value;if(this.normalizeZeros)r=this._normalizeZeros(r);if(this.padFractionalZeros&&this.scale>0)r=this._padFractionalZeros(r);this._value=r}t.prototype.doCommit.call(this)};e.prototype._normalizeZeros=function(t){var e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,i,r){return e+r}));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))};e.prototype._padFractionalZeros=function(t){if(!t)return t;var e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)};e.prototype.doSkipInvalid=function(i,r,a){if(r===void 0){r={}}var n=this.scale===0&&i!==this.thousandsSeparator&&(i===this.radix||i===e.UNMASKED_RADIX||this.mapToRadix.includes(i));return t.prototype.doSkipInvalid.call(this,i,r,a)&&!n};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)},set:function(e){t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});e.prototype.typedValueEquals=function(i){return(t.prototype.typedValueEquals.call(this,i)||e.EMPTY_VALUES.includes(i)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(i===0&&this.value==="")};return e}(q);at=nt;nt.UNMASKED_RADIX=".";nt.EMPTY_VALUES=__spreadArray(__spreadArray([],q.EMPTY_VALUES,true),[0],false);nt.DEFAULTS=__assign(__assign({},q.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[at.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});E.MaskedNumber=nt;var ot={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function st(t,e,i){if(e===void 0){e=ot.MASKED}if(i===void 0){i=ot.MASKED}var r=M(t);return function(t){return r.runIsolated((function(r){r[e]=t;return r[i]}))}}function ct(t,e,i,r){return st(e,i,r)(t)}E.PIPE_TYPE=ot;E.createPipe=st;E.pipe=ct;var ut=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i,r,a;var n=S(e),o=n.repeat,s=__rest(n,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,s);var c=M(this._blockOpts);this.repeat=(i=(r=o!=null?o:c.repeat)!=null?r:this.repeat)!=null?i:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:c},eager:c.eager,overwrite:c.overwrite,skipInvalid:c.skipInvalid,lazy:c.lazy,placeholderChar:c.placeholderChar,displayChar:c.displayChar})};e.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=new U;for(var r=(o=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?o:Math.max(this._blocks.length-1,0),a=void 0,n=void 0;a=(c=this._blocks[r])!=null?c:n=!n&&this._allocateBlock(r);++r){var o,s,c,u;var d=a._appendChar(t,__assign(__assign({},e),{_beforeTailState:(u=e._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));if(d.skip&&n){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(d);if(d.consumed)break}return i};e.prototype._trimEmptyTail=function(t,e){var i,r;if(t===void 0){t=0}var a=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);var n;if(e!=null)n=(r=this._mapPosToBlock(e))==null?void 0:r.index;if(n==null)n=this._blocks.length-1;var o=0;for(var s=n;a<=s;--s,++o){if(this._blocks[s].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}};e.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._trimEmptyTail(e,i);return r};e.prototype.totalInputPositions=function(e,i){if(e===void 0){e=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,e,i)};Object.defineProperty(e.prototype,"state",{get:function(){return t.prototype.state},set:function(e){this._blocks.length=e._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=e},enumerable:false,configurable:true});return e}(Q);E.RepeatBlock=ut;try{globalThis.IMask=E}catch(t){}var dt;function lt(){dt!==null&&dt!==void 0?dt:dt=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");return dt}var ht=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.allowEvents=false;e._inputEventSuppressor=function(t){if(e.allowEvents)return;if(!t.isTrusted)t.stopImmediatePropagation()};return e}Object.defineProperty(e.prototype,"value",{get:function(){return lt().get.call(this.input)},set:function(t){lt().set.call(this.input,t)},enumerable:false,configurable:true});e.prototype.bindEvents=function(e){this.input.addEventListener("input",this._inputEventSuppressor,true);t.prototype.bindEvents.call(this,e)};e.prototype.unbindEvents=function(){this.input.removeEventListener("input",this._inputEventSuppressor,true);t.prototype.unbindEvents.call(this)};return e}(V);function ft(t){return lt().get.call(t)}var pt={exports:{}};var vt=pt.exports;var bt;function kt(){if(bt)return pt.exports;bt=1;(function(t,e){!function(e,i){t.exports=i()}(vt,(function(){return function(){var t;var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:true,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},i={};e.d(i,{default:function(){return U}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},a={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?e.querySelector(t):t}function o(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.tagName,r=i===void 0?"div":i,a=e.className,n=a===void 0?"":a,o=e.innerHtml,c=o===void 0?"":o,u=e.id,d=u===void 0?"":u,l=e.attrs,h=l===void 0?{}:l,f=document.createElement(r);return n&&(t=f.classList).add.apply(t,n.split(" ")),d&&(f.id=d),c&&(f.innerHTML=c),h&&s(f,h),f}function s(t,e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];void 0!==o&&t.setAttribute(n,o)}return t}function c(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var e=t.getHours(),i=d(e),r=i.hours,a=i.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:e,fullHours:l(e),hours12:r,dayPeriod:a,fullHours12:l(r),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function d(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function l(t){return t<10?"0"+t:t}function h(t){var e=10*Math.floor(t.getFullYear()/10);return[e,e+9]}function f(){var t=[];for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return i.forEach((function(e){if("object"==typeof e)for(var i in e)e[i]&&t.push(i);else e&&t.push(e)})),t.join(" ")}function p(t,e){var i;var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.days;if(!t||!e)return false;var n=u(t),o=u(e);return(i={},i[r.days]=n.date===o.date&&n.month===o.month&&n.year===o.year,i[r.months]=n.month===o.month&&n.year===o.year,i[r.years]=n.year===o.year,i)[a]}function v(t,e,i){var r=k(t,false).getTime(),a=k(e,false).getTime();return i?r>=a:r>a}function b(t,e){return!v(t,e,true)}function k(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Date(t.getTime());return"boolean"!=typeof e||e||function(t){t.setHours(0,0,0,0)}(i),i}function m(t,e,i){t.length?t.forEach((function(t){t.addEventListener(e,i)})):t.addEventListener(e,i)}function g(t,e){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(e)?t:g(t.parentNode,e))}function y(t,e,i){return t>i?i:t<e?e:t}function w(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.filter((function(t){return t})).forEach((function(e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];if(void 0!==o&&"[object Object]"===o.toString()){var s=void 0!==t[n]?t[n].toString():void 0,c=o.toString(),u=Array.isArray(o)?[]:{};t[n]=t[n]?s!==c?u:t[n]:u,w(t[n],o)}else t[n]=o}})),t}function x(t){var e=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),e=new Date(t)),isNaN(e.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),e=false),e}function A(t){var e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+t+")($|<|"+e+")","g")}function D(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var _=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.type,r=e.date,a=e.dp,n=e.opts,o=e.body;D(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),D(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),D(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),D(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),D(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),D(this,"onChangeFocusDate",(function(e){if(!e)return void(t.focused&&t.removeFocus());var i=p(e,t.date,t.type);i?t.focus():!i&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),D(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=i,this.singleType=this.type.slice(0,-1),this.date=r,this.dp=a,this.opts=n,this.body=o,this.customData=false,this.init()}t.prototype.init=function(){var t,e;var i=this.opts.onRenderCell;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(e=this.customData)||void 0===e?void 0:e.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var e=u(this.date),i=e.year,r=e.month,a=e.fullMonth,n=e.date,s=e.fullDate,c=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=o({attrs:__assign({"data-year":i,"data-month":r,"data-date":n,"data-iso-date":"".concat(i,"-").concat(a,"-").concat(s)},c)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var e=new Date,i=this.opts,a=i.selectOtherMonths,n=i.selectOtherYears,o=this.dp,s=o.minDate,c=o.maxDate,d=o.isDateDisabled,l=u(this.date).day,h=this._isOutOfMinMaxRange(),v=d(this.date),b=f("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":p(e,this.date,this.type),"-min-date-":s&&p(s,this.date,this.type),"-max-date-":c&&p(c,this.date,this.type)}),k="";switch(this.type){case r.days:k=f({"-weekend-":this.dp.isWeekend(l),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!a||h||v});break;case r.months:k=f({"-disabled-":h});break;case r.years:k=f({"-other-decade-":this.isOtherDecade,"-disabled-":h||this.isOtherDecade&&!n})}return f(b,k,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var e=u(this.date),i=e.year,a=e.month,n=e.date,o=this.opts,s=o.showOtherMonths,c=o.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case r.days:return!s&&this.isOtherMonth?"":n;case r.months:return this.dp.locale[this.opts.monthsField][a];case r.years:return!c&&this.isOtherDecade?"":i}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,e=t.minDate,i=t.maxDate,a=this,n=a.type,o=a.date,s=u(o),c=s.month,d=s.year,l=s.date,h=n===r.days,f=n===r.years,p=!!e&&new Date(d,f?e.getMonth():c,h?l:e.getDate()),k=!!i&&new Date(d,f?i.getMonth():c,h?l:i.getDate());return e&&i?b(p,e)||v(k,i):e?b(p,e):i?v(k,i):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var e=this.dp,i=e.selectedDates,r=e.focusDate,a=e.rangeDateTo,n=e.rangeDateFrom,o=i.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!o)return;var s=n,c=a;if(1===o&&r){var u=v(r,i[0]);s=u?i[0]:r,c=u?r:i[0]}var d=f({"-in-range-":s&&c&&(l=this.date,h=s,k=c,v(l,h)&&b(l,k)),"-range-from-":s&&p(this.date,s,this.type),"-range-to-":c&&p(this.date,c,this.type)});var l,h,k;d&&(t=this.$cell.classList).add.apply(t,d.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){p(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function F(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var j=(t={},t[r.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),t[r.months]='<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),t[r.years]='<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>'),t);var C=".air-datepicker-cell";var O=function(){function t(t){var e=this;var i=t.dp,a=t.type,n=t.opts;F(this,"handleClick",(function(t){var i=t.target.closest(C).adpCell;if(i.isDisabled)return;if(!e.dp.isMinViewReached)return void e.dp.down();var r=e.dp._checkIfDateIsSelected(i.date,i.type);r?e.dp._handleAlreadySelectedDates(r,i.date):e.dp.selectDate(i.date)})),F(this,"handleDayNameClick",(function(t){var i=t.target.getAttribute("data-day-index");e.opts.onClickDayName({dayIndex:Number(i),datepicker:e.dp})})),F(this,"onChangeCurrentView",(function(t){t!==e.type?e.hide():(e.show(),e.render())})),F(this,"onMouseOverCell",(function(t){var i=g(t.target,C);e.dp.setFocusDate(!!i&&i.adpCell.date)})),F(this,"onMouseOutCell",(function(){e.dp.setFocusDate(false)})),F(this,"onClickBody",(function(t){var i=e.opts.onClickDayName,r=t.target;r.closest(C)&&e.handleClick(t),i&&r.closest(".air-datepicker-body--day-name")&&e.handleDayNameClick(t)})),F(this,"onMouseDown",(function(t){e.pressed=true;var i=g(t.target,C),r=i&&i.adpCell;p(r.date,e.dp.rangeDateFrom)&&(e.rangeFromFocused=true),p(r.date,e.dp.rangeDateTo)&&(e.rangeToFocused=true)})),F(this,"onMouseMove",(function(t){if(!e.pressed||!e.dp.isMinViewReached)return;t.preventDefault();var i=g(t.target,C),r=i&&i.adpCell,a=e.dp,n=a.selectedDates,o=a.rangeDateTo,s=a.rangeDateFrom;if(!r||r.isDisabled)return;var c=r.date;if(2===n.length){if(e.rangeFromFocused&&!v(c,o)){var d=u(s),l=d.hours,h=d.minutes;c.setHours(l),c.setMinutes(h),e.dp.rangeDateFrom=c,e.dp.replaceDate(s,c)}if(e.rangeToFocused&&!b(c,s)){var f=u(o),p=f.hours,k=f.minutes;c.setHours(p),c.setMinutes(k),e.dp.rangeDateTo=c,e.dp.replaceDate(o,c)}}})),F(this,"onMouseUp",(function(){e.pressed=false,e.rangeFromFocused=false,e.rangeToFocused=false})),F(this,"onChangeViewDate",(function(t,i){if(!e.isVisible)return;var a=h(t),n=h(i);switch(e.dp.currentView){case r.days:if(p(t,i,r.months))return;break;case r.months:if(p(t,i,r.years))return;break;case r.years:if(a[0]===n[0]&&a[1]===n[1])return}e.render()})),F(this,"render",(function(){e.destroyCells(),e._generateCells(),e.cells.forEach((function(t){e.$cells.appendChild(t.render())}))})),this.dp=i,this.type=a,this.opts=n,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,e=t.range,i=t.dynamicRange;m(this.$el,"mouseover",this.onMouseOverCell),m(this.$el,"mouseout",this.onMouseOutCell),m(this.$el,"click",this.onClickBody),e&&i&&(m(this.$el,"mousedown",this.onMouseDown),m(this.$el,"mousemove",this.onMouseMove),m(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=o({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:j[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,i="",a=this.dp.isWeekend,n=this.opts.onClickDayName,o=e,s=0;for(;s<7;){var c=o%7;i+='<div class="'.concat(f("air-datepicker-body--day-name",(t={},t[r.cssClassWeekend]=a(c),t["-clickable-"]=!!n,t)),"\" data-day-index='").concat(c,"'>").concat(this.dp.locale.daysMin[c],"</div>"),s++,o++}return i};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var e=this,i=e.type,r=e.dp,a=e.opts;return new _({type:i,dp:r,opts:a,date:t,body:this})};t.prototype._generateCells=function(){var e=this;t.getDatesFunction(this.type)(this.dp,(function(t){e.cells.push(e._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,e){var i=t.viewDate,r=t.opts.fixedHeight,a=t.locale.firstDay,n=c(i),o=u(i),s=o.year,d=o.month,l=new Date(s,d,1),h=new Date(s,d,n),f=l.getDay()-a,p=6-h.getDay()+a;f=f<0?f+7:f,p=p>6?p-7:p;var v=function(t,e){var i=u(t),r=i.year,a=i.month,n=i.date;return new Date(r,a,n-e)}(l,f),b=n+f+p,k=v.getDate(),m=u(v),g=m.year,y=m.month,w=0;r&&(b=42);var x=[];for(;w<b;){var A=new Date(g,y,k+w);e&&e(A),x.push(A),w++}return x};t.getMonthsDates=function(t,e){var i=t.parsedViewDate.year,r=0,a=[];for(;r<12;){var n=new Date(i,r);a.push(n),e&&e(n),r++}return a};t.getYearsDates=function(t,e){var i=h(t.viewDate),r=i[0]-1,a=i[1]+1,n=r,o=[];for(;n<=a;){var s=new Date(n,0);o.push(s),e&&e(s),n++}return o};t.getDatesFunction=function(){var e;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return(e={},e[r.days]=t.getDaysDates,e[r.months]=t.getMonthsDates,e[r.years]=t.getYearsDates,e)[i]};return t}();function B(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var E=function(){function t(t){var e=this;var i=t.dp,r=t.opts;B(this,"onClickNav",(function(t){var i=g(t.target,".air-datepicker-nav--action");if(!i)return;var r=i.dataset.action;e.dp[r]()})),B(this,"onChangeViewDate",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),B(this,"onChangeCurrentView",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),B(this,"onClickNavTitle",(function(){e.dp.isFinalView||e.dp.up()})),B(this,"update",(function(){var t=e.opts,i=t.prevHtml,r=t.nextHtml;e.$prev.innerHTML=i,e.$next.innerHTML=r,e._resetNavStatus(),e.render(),e.handleNavStatus()})),B(this,"renderDelay",(function(){setTimeout(e.render)})),B(this,"render",(function(){e.$title.innerHTML=e._getTitle(),function(t,e){for(var i in e)e[i]?t.classList.add(i):t.classList.remove(i)}(e.$title,{"-disabled-":e.dp.isFinalView})})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=o({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,e=t.dp,i=t.opts,r=i.navTitles[e.currentView];return"function"==typeof r?r(e):e.formatDate(e.viewDate,r)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,e=this.dp,i=e.minDate,a=e.maxDate;if(!i&&!a||!t)return;var n=this.dp.parsedViewDate,o=n.year,s=n.month,c=!!i&&u(i),d=!!a&&u(a);switch(this.dp.currentView){case r.days:i&&c.month>=s&&c.year>=o&&this._disableNav("prev"),a&&d.month<=s&&d.year<=o&&this._disableNav("next");break;case r.months:i&&c.year>=o&&this._disableNav("prev"),a&&d.year<=o&&this._disableNav("next");break;case r.years:{var l=h(this.dp.viewDate);i&&c.year>=l[0]&&this._disableNav("prev"),a&&d.year<=l[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){n('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t.length?t.forEach((function(t){var e;(e=t.classList).remove.apply(e,r)})):(e=t.classList).remove.apply(e,r)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,e=t.prevHtml,i=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(e,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(i,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(e){return"function"==typeof t[e]}))},enumerable:false,configurable:true});return t}();var z={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var S=function(){function t(t){var e=t.dp,i=t.opts;this.dp=e,this.opts=i,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=o({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var e=this.opts.buttons;Array.isArray(e)||(e=[e]),e.forEach((function(e){var i=e;"string"==typeof e&&z[e]&&(i=z[e]);var r=t.createButton(i);i.onClick&&t.attachEventToButton(r,i.onClick),t.$el.appendChild(r)}))};t.prototype.attachEventToButton=function(t,e){var i=this;t.addEventListener("click",(function(){e(i.dp)}))};t.prototype.createButton=function(t){var e=t.content,i=t.className,r=t.tagName,a=r===void 0?"button":r,n=t.attrs,s=n===void 0?{}:n;return o({tagName:a,innerHtml:"<span tabindex='-1'>".concat("function"==typeof e?e(this.dp):e,"</span>"),className:f("air-datepicker-button",i),attrs:s})};t.prototype.render=function(){this.generateButtons()};return t}();function M(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var T=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.opts,a=e.dp;M(this,"toggleTimepickerIsActive",(function(e){t.dp.timepickerIsActive=e})),M(this,"onChangeSelectedDate",(function(e){var i=e.date,r=e.updateTime,a=r===void 0?false:r;i&&(t.setMinMaxTime(i),t.setCurrentTime(!!a&&i),t.addTimeToDate(i))})),M(this,"onChangeLastSelectedDate",(function(e){e&&(t.setTime(e),t.render())})),M(this,"onChangeInputRange",(function(e){var i=e.target;t[i.getAttribute("name")]=i.value,t.updateText(),t.dp.trigger(r.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),M(this,"onMouseEnterLeave",(function(e){var i=e.target.getAttribute("name"),r=t.$minutesText;"hours"===i&&(r=t.$hoursText),r.classList.toggle("-focus-")})),M(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),M(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=i,this.dp=a;var n=this.dp.locale.timeFormat;n&&(n.match(A("h"))||n.match(A("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),m(this.$ranges,t,this.onChangeInputRange),m(this.$ranges,"mouseenter",this.onMouseEnterLeave),m(this.$ranges,"mouseleave",this.onMouseEnterLeave),m(this.$ranges,"focus",this.onFocus),m(this.$ranges,"mousedown",this.onFocus),m(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=o({className:f("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,e=t.ampm,i=t.hours,r=t.displayHours,a=t.minutes,n=t.minHours,o=t.minMinutes,s=t.maxHours,c=t.maxMinutes,u=t.dayPeriod,d=t.opts,h=d.hoursStep,f=d.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(l(r),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(l(a),"</span> ")+(e?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(i,'" min="').concat(n,'" max="').concat(s,'" step="').concat(h,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(a,'" min="').concat(o,'" max="').concat(c,'" step="').concat(f,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var e=function(e){return n(e,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var e=this.dp,i=e.minDate,r=e.maxDate;i&&p(t,i)&&this.setMinTimeFromMinDate(i),r&&p(t,r)&&this.setMaxTimeFromMaxDate(r)}};t.prototype.setCurrentTime=function(t){var e=t?u(t):this,i=e.hours,r=e.minutes;this.hours=y(i,this.minHours,this.maxHours),this.minutes=y(r,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,e=t.minHours,i=t.minMinutes,r=t.maxHours,a=t.maxMinutes;this.minHours=y(e,0,23),this.minMinutes=y(i,0,59),this.maxHours=y(r,0,23),this.maxMinutes=y(a,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var e=this.dp.lastSelectedDate;this.minHours=t.getHours(),e&&e.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var e=this.dp.lastSelectedDate;this.maxHours=t.getHours(),e&&e.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=l(this.displayHours),this.$minutesText.innerHTML=l(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var e=d(t),i=e.hours,r=e.dayPeriod;this.displayHours=this.ampm?i:t,this.dayPeriod=r},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function N(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var H=function(){function t(t){var e=this;var i=t.dp,r=t.opts;N(this,"pressedKeys",new Set),N(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,e){return e.up()}]])),N(this,"handleHotKey",(function(t){var i=e.hotKeys.get(t),r=u(e.getInitialFocusDate());i(r,e.dp);var a=r.year,n=r.month,o=r.date,s=c(new Date(a,n));s<o&&(o=s);var d=e.dp.getClampedDate(new Date(a,n,o));e.dp.setFocusDate(d,{viewDateTransition:true})})),N(this,"isHotKeyPressed",(function(){var t=false,i=e.pressedKeys.size,r=function(t){return e.pressedKeys.has(t)};var a=function(e){if(t)return"break";if(Array.isArray(e[0]))e.forEach((function(a){t||i!==a.length||(t=a.every(r)&&e)}));else{if(i!==e.length)return"continue";t=e.every(r)&&e}};for(var n=0,o=e.hotKeys;n<o.length;n++){var s=o[n][0];var c=a(s);if(c==="break")break}return t})),N(this,"isArrow",(function(t){return t>=37&&t<=40})),N(this,"onKeyDown",(function(t){if(!e.dp.visible&&!e.dp.treatAsInline)return;var i=t.key,r=t.which,a=e,n=a.dp,o=a.dp.focusDate,s=a.opts;e.registerKey(i);var c=e.isHotKeyPressed();if(c)return t.preventDefault(),void e.handleHotKey(c);if(e.isArrow(r))return t.preventDefault(),void e.focusNextCell(i);if("Enter"===i){if(n.currentView!==s.minView)return void n.down();if(o){var u=n._checkIfDateIsSelected(o);return void(u?n._handleAlreadySelectedDates(u,o):n.selectDate(o))}}"Escape"===i&&e.dp.hide()})),N(this,"onKeyUp",(function(t){e.removeKey(t.key)})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,e=t.focusDate,i=t.currentView,a=t.selectedDates,n=t.parsedViewDate,o=n.year,s=n.month,c=e||a[a.length-1];if(!c)switch(i){case r.days:c=new Date(o,s,(new Date).getDate());break;case r.months:c=new Date(o,s,1);break;case r.years:c=new Date(o,0,1)}return c};t.prototype.focusNextCell=function(t){var e=this.getInitialFocusDate(),i=this.dp.currentView,a=r.days,n=r.months,o=r.years,s=u(e),c=s.year,d=s.month,l=s.date;switch(t){case"ArrowLeft":i===a&&(l-=1),i===n&&(d-=1),i===o&&(c-=1);break;case"ArrowUp":i===a&&(l-=7),i===n&&(d-=3),i===o&&(c-=4);break;case"ArrowRight":i===a&&(l+=1),i===n&&(d+=1),i===o&&(c+=1);break;case"ArrowDown":i===a&&(l+=7),i===n&&(d+=3),i===o&&(c+=4)}var h=this.dp.getClampedDate(new Date(c,d,l));this.dp.setFocusDate(h,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var I={on:function(t,e){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(e):this.__events[t]=[e]},off:function(t,e){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==e})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,i)}))}};function V(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var R="",P="",L=false;var U=function(){function t(t,e){var i=this;var s=this;if(V(this,"viewIndexes",[r.days,r.months,r.years]),V(this,"next",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a+1,1));break;case r.months:i.setViewDate(new Date(e+1,a,1));break;case r.years:i.setViewDate(new Date(e+10,0,1))}})),V(this,"prev",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a-1,1));break;case r.months:i.setViewDate(new Date(e-1,a,1));break;case r.years:i.setViewDate(new Date(e-10,0,1))}})),V(this,"_finishHide",(function(){i.hideAnimation=false,i._destroyComponents(),i.$container.removeChild(i.$datepicker)})),V(this,"setPosition",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||s.opts.position))return void(s.customHide=t({$datepicker:s.$datepicker,$target:s.$el,$pointer:s.$pointer,isViewChange:e,done:s._finishHide}));var i,r,a=s.opts.isMobile,n=s.$el.getBoundingClientRect(),o=s.$el.getBoundingClientRect(),c=s.$datepicker.offsetParent,u=s.$el.offsetParent,d=s.$datepicker.getBoundingClientRect(),l=t.split(" "),h=window.scrollY,f=window.scrollX,p=s.opts.offset,v=l[0],b=l[1];if(a)s.$datepicker.style.cssText="left: 50%; top: 50%";else{if(c===u&&c!==document.body&&(o={top:s.$el.offsetTop,left:s.$el.offsetLeft,width:n.width,height:s.$el.offsetHeight},h=0,f=0),c!==u&&c!==document.body){var k=c.getBoundingClientRect();o={top:n.top-k.top,left:n.left-k.left,width:n.width,height:n.height},h=0,f=0}switch(v){case"top":i=o.top-d.height-p;break;case"right":r=o.left+o.width+p;break;case"bottom":i=o.top+o.height+p;break;case"left":r=o.left-d.width-p}switch(b){case"top":i=o.top;break;case"right":r=o.left+o.width-d.width;break;case"bottom":i=o.top+o.height-d.height;break;case"left":r=o.left;break;case"center":/left|right/.test(v)?i=o.top+o.height/2-d.height/2:r=o.left+o.width/2-d.width/2}s.$datepicker.style.cssText="left: ".concat(r+f,"px; top: ").concat(i+h,"px")}})),V(this,"_setInputValue",(function(){var t=i,e=t.opts,r=t.$altField,a=t.locale.dateFormat,n=e.altFieldDateFormat,o=e.altField;o&&r&&(r.value=i._getInputValue(n)),i.$el.value=i._getInputValue(a),i.$el.dispatchEvent(new Event("change"))})),V(this,"_getInputValue",(function(t){var e=i,r=e.selectedDates,a=e.opts,n=a.multipleDates,o=a.multipleDatesSeparator;if(!r.length)return"";var s="function"==typeof t,c=s?t(n?r:r[0]):r.map((function(e){return i.formatDate(e,t)}));return c=s?c:c.join(o),c})),V(this,"_checkIfDateIsSelected",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.days,i=false;return s.selectedDates.some((function(r){var a=p(t,r,e);return i=a&&r,a})),i})),V(this,"_scheduleCallAfterTransition",(function(t){i._cancelScheduledCall(),t&&t(false),i._onTransitionEnd=function(){t&&t(true)},i.$datepicker.addEventListener("transitionend",i._onTransitionEnd,{once:true})})),V(this,"_cancelScheduledCall",(function(){i.$datepicker.removeEventListener("transitionend",i._onTransitionEnd)})),V(this,"setViewDate",(function(t){if(!((t=x(t))instanceof Date))return;if(p(t,i.viewDate))return;var e=i.viewDate;i.viewDate=t;var a=i.opts.onChangeViewDate;if(a){var n=i.parsedViewDate,o=n.month,s=n.year;a({month:o,year:s,decade:i.curDecade})}i.trigger(r.eventChangeViewDate,t,e)})),V(this,"setFocusDate",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=x(t))instanceof Date)&&(s.focusDate=t,s.trigger(r.eventChangeFocusDate,t,e))})),V(this,"setCurrentView",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.viewIndexes.includes(t)){if(s.currentView=t,s.elIsInput&&s.visible&&s.setPosition(void 0,true),s.trigger(r.eventChangeCurrentView,t),!s.views[t]){var i=s.views[t]=new O({dp:s,opts:s.opts,type:t});s.shouldUpdateDOM&&s.$content.appendChild(i.$el)}s.opts.onChangeView&&!e.silent&&s.opts.onChangeView(t)}})),V(this,"_updateLastSelectedDate",(function(t){i.lastSelectedDate=t,i.trigger(r.eventChangeLastSelectedDate,t)})),V(this,"destroy",(function(){if(i.isDestroyed)return;var t=i.opts,e=t.showEvent,r=t.isMobile,a=i.$datepicker.parentNode;a&&a.removeChild(i.$datepicker),i.$el.removeEventListener(e,i._onFocus),i.$el.removeEventListener("blur",i._onBlur),window.removeEventListener("resize",i._onResize),r&&i._removeMobileAttributes(),i.keyboardNav&&i.keyboardNav.destroy(),i.views=null,i.nav=null,i.$datepicker=null,i.opts={},i.$customContainer=null,i.viewDate=null,i.focusDate=null,i.selectedDates=[],i.rangeDateFrom=null,i.rangeDateTo=null,i.isDestroyed=true})),V(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=w({},s.opts),a=e.silent;w(s.opts,t);var n=s.opts,o=n.timepicker,c=n.buttons,u=n.range,d=n.selectedDates,l=n.isMobile,h=s.visible||s.treatAsInline;s._createMinMaxDates(),s._limitViewDateByMaxMinDates(),s._handleLocale(),d&&(s.selectedDates=[],s.selectDate(d,{silent:a})),t.view&&s.setCurrentView(t.view,{silent:a}),s._setInputValue(),i.range&&!u?(s.rangeDateTo=false,s.rangeDateFrom=false):!i.range&&u&&s.selectedDates.length&&(s.rangeDateFrom=s.selectedDates[0],s.rangeDateTo=s.selectedDates[1]),i.timepicker&&!o?(h&&s.timepicker.destroy(),s.timepicker=false,s.$timepicker.parentNode.removeChild(s.$timepicker)):!i.timepicker&&o&&s._addTimepicker(),!i.buttons&&c?s._addButtons():i.buttons&&!c?(s.buttons.destroy(),s.$buttons.parentNode.removeChild(s.$buttons)):h&&i.buttons&&c&&s.buttons.clearHtml().render(),!i.isMobile&&l?(s.treatAsInline||P||s._createMobileOverlay(),s._addMobileAttributes(),s.visible&&s._showMobileOverlay()):i.isMobile&&!l&&(s._removeMobileAttributes(),s.visible&&(P.classList.remove("-active-"),"function"!=typeof s.opts.position&&s.setPosition())),h&&(s.nav.update(),s.views[s.currentView].render(),s.currentView===r.days&&s.views[s.currentView].renderDayNames())})),V(this,"disableDate",(function(t,e){(Array.isArray(t)?t:[t]).forEach((function(t){var r=x(t);if(!r)return;var a=e?"delete":"add";i.disabledDates[a](i.formatDate(r,"yyyy-MM-dd"));var n=i.getCell(r,i.currentViewSingular);n&&n.adpCell.render()}),[])})),V(this,"enableDate",(function(t){i.disableDate(t,true)})),V(this,"isDateDisabled",(function(t){var e=x(t);return i.disabledDates.has(i.formatDate(e,"yyyy-MM-dd"))})),V(this,"isOtherMonth",(function(t){var e=u(t).month;return e!==i.parsedViewDate.month})),V(this,"isOtherYear",(function(t){var e=u(t).year;return e!==i.parsedViewDate.year})),V(this,"isOtherDecade",(function(t){var e=u(t).year,r=h(i.viewDate),a=r[0],n=r[1];return e<a||e>n})),V(this,"_onChangeSelectedDate",(function(t){var e=t.silent;setTimeout((function(){i._setInputValue(),i.opts.onSelect&&!e&&i._triggerOnSelect()}))})),V(this,"_onChangeFocusedDate",(function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var i=false;e&&(i=s.isOtherMonth(t)||s.isOtherYear(t)||s.isOtherDecade(t)),i&&s.setViewDate(t),s.opts.onFocus&&s.opts.onFocus({datepicker:s,date:t})})),V(this,"_onChangeTime",(function(t){var e=t.hours,r=t.minutes,a=new Date,n=i,o=n.lastSelectedDate,s=n.opts.onSelect,c=o;o||(c=a);var u=i.getCell(c,i.currentViewSingular),d=u&&u.adpCell;d&&d.isDisabled||(c.setHours(e),c.setMinutes(r),o?(i._setInputValue(),s&&i._triggerOnSelect()):i.selectDate(c))})),V(this,"_onFocus",(function(t){i.visible||i.show()})),V(this,"_onBlur",(function(t){i.inFocus||!i.visible||i.opts.isMobile||i.hide()})),V(this,"_onMouseDown",(function(t){i.inFocus=true})),V(this,"_onMouseUp",(function(t){i.inFocus=false,i.$el.focus()})),V(this,"_onResize",(function(){i.visible&&"function"!=typeof i.opts.position&&i.setPosition()})),V(this,"_onClickOverlay",(function(){i.visible&&i.hide()})),V(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return O.getDatesFunction(t)(s)})),V(this,"isWeekend",(function(t){return i.opts.weekends.includes(t)})),V(this,"getClampedDate",(function(t){var e=i,r=e.minDate,a=e.maxDate,n=t;return a&&v(t,a)?n=a:r&&b(t,r)&&(n=r),n})),this.$el=n(t),!this.$el)return;this.$datepicker=o({className:"air-datepicker"}),this.opts=w({},a,e),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||false);var c=this.opts,d=c.view,l=c.startDate;l||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=x(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=d,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){L=true,R=o({className:t,id:t}),n("body").appendChild(R)};t.prototype.init=function(){var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,o=a.inline,s=a.isMobile,c=a.selectedDates,u=a.keyboardNav,d=a.onlyTimepicker,l=n("body");(!L||L&&R&&!l.contains(R))&&!o&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!s||P||r||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(o||this._bindEvents(),u&&!d&&(this.keyboardNav=new H({dp:this,opts:i}))),c&&this.selectDate(c,{silent:true}),this.opts.visible&&!r&&this.show(),s&&!r&&this.$el.setAttribute("readonly",true),r&&this._createComponents()};t.prototype._createMobileOverlay=function(){P=o({className:"air-datepicker-overlay"}),R.appendChild(P)};t.prototype._createComponents=function(){var t;var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,n=a.inline,o=a.buttons,s=a.timepicker,c=a.position,u=a.classes,d=a.onlyTimepicker,l=a.isMobile;this._buildBaseHtml(),this.elIsInput&&(n||this._setPositionClasses(c)),!n&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),d&&this.$datepicker.classList.add("-only-timepicker-"),l&&!r&&this._addMobileAttributes(),this.views[this.currentView]=new O({dp:this,type:this.currentView,opts:i}),this.nav=new E({dp:this,opts:i}),s&&this._addTimepicker(),o&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){P.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){P.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,e=t.minDate,i=t.maxDate;this.minDate=!!e&&x(e),this.maxDate=!!i&&x(i)};t.prototype._addTimepicker=function(){this.$timepicker=o({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new T({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=o({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new S({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var e,i;this.elIsInput?t?(e=this.$datepicker,(i=this.$el).parentNode.insertBefore(e,i.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,e=t.locale,i=t.dateFormat,r=t.firstDay,a=t.timepicker,n=t.onlyTimepicker,o=t.timeFormat,s=t.dateTimeSeparator;var c;this.locale=(c=e,JSON.parse(JSON.stringify(c))),i&&(this.locale.dateFormat=i),void 0!==o&&""!==o&&(this.locale.timeFormat=o);var u=this.locale.timeFormat;if(""!==r&&(this.locale.firstDay=r),a&&"function"!=typeof i){var d=u?s:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(d)}n&&"function"!=typeof i&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var e;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var i=(t=t.split(" "))[0],r="air-datepicker -".concat(i,"-").concat(t[1],"- -from-").concat(i,"-");(e=this.$datepicker.classList).add.apply(e,r.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,e=t.viewDate,i=t.minDate,r=t.maxDate;r&&v(e,r)&&this.setViewDate(r),i&&b(e,i)&&this.setViewDate(i)};t.prototype.formatDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=x(e),!(e instanceof Date))return;var r=i,a=this.locale,n=u(e),o=n.dayPeriod,s=h(e),c=t.replacer,d={T:e.getTime(),m:n.minutes,mm:n.fullMinutes,h:n.hours12,hh:n.fullHours12,H:n.hours,HH:n.fullHours,aa:o,AA:o.toUpperCase(),E:a.daysShort[n.day],EEEE:a.days[n.day],d:n.date,dd:n.fullDate,M:n.month+1,MM:n.fullMonth,MMM:a.monthsShort[n.month],MMMM:a.months[n.month],yy:n.year.toString().slice(-2),yyyy:n.year,yyyy1:s[0],yyyy2:s[1]};for(var l=0,f=Object.entries(d);l<f.length;l++){var p=f[l],v=p[0],b=p[1];r=c(r,A(v),b)}return r};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var e=this;var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,o=n.currentView,s=n.parsedViewDate,c=n.selectedDates,u=a.updateTime,d=a.silent,l=this.opts,h=l.moveToOtherMonthsOnSelect,f=l.moveToOtherYearsOnSelect,p=l.multipleDates,b=l.range,k=l.autoClose,m=l.onBeforeSelect,g=c.length;if(Array.isArray(t))return t.forEach((function(t){e.selectDate(t,a)})),new Promise((function(t){setTimeout(t)}));if((t=x(t))instanceof Date){if(m&&!d&&!m({date:t,datepicker:this}))return Promise.resolve();if(o===r.days&&t.getMonth()!==s.month&&h&&(i=new Date(t.getFullYear(),t.getMonth(),1)),o===r.years&&t.getFullYear()!==s.year&&f&&(i=new Date(t.getFullYear(),0,1)),i&&this.setViewDate(i),p&&!b){if(g===p)return;this._checkIfDateIsSelected(t)||c.push(t)}else if(b)switch(g){case 1:c.push(t),this.rangeDateTo||(this.rangeDateTo=t),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:null==a?void 0:a.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),k&&!this.timepickerIsActive&&this.visible&&(p||b?b&&1===g&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var e=this;var i=this.selectedDates,a=this;if((t=x(t))instanceof Date)return i.some((function(n,o){if(p(n,t))return i.splice(o,1),a.selectedDates.length?(a.rangeDateTo="",a.rangeDateFrom=i[0],a._updateLastSelectedDate(a.selectedDates[a.selectedDates.length-1])):(a.rangeDateFrom="",a.rangeDateTo="",a._updateLastSelectedDate(false)),e.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,e){var i=this;var a=this.selectedDates.find((function(e){return p(e,t,i.currentView)})),n=this.selectedDates.indexOf(a);n<0||p(this.selectedDates[n],e,this.currentView)||(this.selectedDates[n]=e,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:e,updateTime:true}),this._updateLastSelectedDate(e))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,e=t.onShow,i=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var e=this.opts,i=e.onHide,r=e.isMobile,a=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(e){!t.customHide&&(e&&a||!e&&!a)&&t._finishHide(),i&&i(e)})),r&&P.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var e=[],i=[],r=this,a=r.selectedDates,n=r.locale,o=r.opts,s=o.onSelect,c=o.multipleDates,u=o.range,d=c||u,l="function"==typeof n.dateFormat;a.length&&(e=a.map(k),i=l?c?n.dateFormat(e):e.map((function(t){return n.dateFormat(t)})):e.map((function(e){return t.formatDate(e,n.dateFormat)}))),s({date:d?e:e[0],formattedDate:d?i:i[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,e){var i=this,r=i.selectedDates,a=i.rangeDateFrom,n=i.rangeDateTo,o=this.opts,s=o.range,c=o.toggleSelected,u=r.length,d="function"==typeof c?c({datepicker:this,date:e}):c,l=Boolean(s&&1===u&&t),h=l?k(e):e;s&&!d&&(2!==u&&this.selectDate(h),2===u&&p(a,n))||(d?this.unselectDate(h):this._updateLastSelectedDate(l?h:t))};t.prototype._handleUpDownActions=function(t,e){if(!((t=x(t||this.focusDate||this.viewDate))instanceof Date))return;var i="up"===e?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[i])};t.prototype.getCell=function(t){var e;var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.day;if(!((t=x(t))instanceof Date))return;var a=u(t),n=a.year,o=a.month,s=a.date,c='[data-year="'.concat(n,'"]'),d='[data-month="'.concat(o,'"]'),l=(e={},e[r.day]="".concat(c).concat(d,'[data-date="').concat(s,'"]'),e[r.month]="".concat(c).concat(d),e[r.year]="".concat(c),e);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(l[i]):void 0};t.prototype._showMobileOverlay=function(){P.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,e){return parseFloat(e)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return h(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===r.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===r.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||R},enumerable:false,configurable:true});t.replacer=function(t,e,i){return t.replace(e,(function(t,e,r,a){return e+i+a}))};return t}();var Y;return V(U,"defaults",a),V(U,"version","3.6.0"),V(U,"defaultGlobalContainerId","air-datepicker-global-container"),Y=U.prototype,Object.assign(Y,I),i.default}()}))})(pt);return pt.exports}var mt=kt();var gt=s(mt);function yt(t,e){var i=t.date,r=t.cellType;if(r==="day"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}}else if(r==="month"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric",month:"long"})}}}else if(r==="year"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric"})}}}}function wt(t,e){if(!t)return e;if(!e)return t;return __assign(__assign({},t),{classes:[t.classes,e.classes].filter(Boolean).join(" "),disabled:e.disabled||t.disabled})}var xt={ar:function(){return e.import("./p-CADoVT5-.system.js").then((function(t){return t.a}))},bg:function(){return e.import("./p-u0jzgGDa.system.js").then((function(t){return t.b}))},ca:function(){return e.import("./p-DCyIQfZ2.system.js").then((function(t){return t.c}))},cs:function(){return e.import("./p-Cc7IsiYa.system.js").then((function(t){return t.c}))},da:function(){return e.import("./p-DC5_ck-0.system.js").then((function(t){return t.d}))},de:function(){return e.import("./p-DiYoqWHh.system.js").then((function(t){return t.d}))},el:function(){return e.import("./p-CkyG9hlM.system.js").then((function(t){return t.e}))},en:function(){return e.import("./p-DtANKl_H.system.js").then((function(t){return t.e}))},es:function(){return e.import("./p-DeDqpA-c.system.js").then((function(t){return t.e}))},eu:function(){return e.import("./p-DWXd2GX-.system.js").then((function(t){return t.e}))},fi:function(){return e.import("./p-DPR1GhBu.system.js").then((function(t){return t.f}))},fr:function(){return e.import("./p-i0lB-o1h.system.js").then((function(t){return t.f}))},hr:function(){return e.import("./p-1jKm5Gii.system.js").then((function(t){return t.h}))},hu:function(){return e.import("./p-DPFNFi0H.system.js").then((function(t){return t.h}))},id:function(){return e.import("./p-V3SCivhq.system.js").then((function(t){return t.i}))},it:function(){return e.import("./p-BpIOvyQ5.system.js").then((function(t){return t.i}))},ja:function(){return e.import("./p-oqI6maRP.system.js").then((function(t){return t.j}))},ko:function(){return e.import("./p-qsCJzdGu.system.js").then((function(t){return t.k}))},nb:function(){return e.import("./p-DHzcjw9T.system.js").then((function(t){return t.n}))},nl:function(){return e.import("./p-DAh_7RzL.system.js").then((function(t){return t.n}))},pl:function(){return e.import("./p-BayPSiTy.system.js").then((function(t){return t.p}))},pt:function(){return e.import("./p-DLha4BpQ.system.js").then((function(t){return t.p}))},ro:function(){return e.import("./p-CQ_qts4t.system.js").then((function(t){return t.r}))},ru:function(){return e.import("./p-Bw0TBI7D.system.js").then((function(t){return t.r}))},si:function(){return e.import("./p-nkh1tem5.system.js").then((function(t){return t.s}))},sk:function(){return e.import("./p-6zNP6ghZ.system.js").then((function(t){return t.s}))},sl:function(){return e.import("./p-D6qSFhdu.system.js").then((function(t){return t.s}))},sv:function(){return e.import("./p-B-8pFQ5m.system.js").then((function(t){return t.s}))},th:function(){return e.import("./p-Dj9sWsqU.system.js").then((function(t){return t.t}))},tr:function(){return e.import("./p-mkWktU-n.system.js").then((function(t){return t.t}))},uk:function(){return e.import("./p-BpMc1tlF.system.js").then((function(t){return t.u}))},zh:function(){return e.import("./p-kC_vSmNI.system.js").then((function(t){return t.z}))}};var At="".concat(y.ltr).concat(y.rtl).concat(y.pop);var Dt=new RegExp("[".concat(At,"]"),"g");var _t=" - ";var Ft={y:"3333",m:"11",d:"22"};var jt=Object.keys(Ft);var Ct=new RegExp("[^".concat(jt.join(""),"]"),"g");var Ot=new RegExp("[^".concat(jt.join("")).concat(At,"]+"),"g");var Bt={day:"2-digit",month:"2-digit",year:"numeric"};function Et(t){var e=t.split("-");return"".concat(e[0].padStart(4,"0"),"-").concat(e[1],"-").concat(e[2])}function zt(t){return new Date("".concat(Et(t),"T00:00"))}function St(t){return t.toLocaleDateString("sv",Bt)}function Mt(t,e){var i=t.toLocaleDateString(e,Bt);var r=t.getFullYear().toString();if(r.length<4){return i.replace(r,r.padStart(4,"0"))}return i}function Tt(t,e,i){var r=e.match(Ot)[0];var a=t.replace(Dt,"").split(r).map((function(t){return t.replaceAll(/[^\d]/g,"")}));var n=e.replace(Ct,"").split("");var o=jt.reduce((function(t,e){var i;return __assign(__assign({},t),(i={},i[e]=a[n.indexOf(e)],i))}),{}),s=o.y,c=o.m,u=o.d;var d=i?(Number(s)-m).toString():s;return zt([d,c,u].join("-"))}function Nt(t,e){var i=new Date(Object.values(Ft).join("-"));var r=i.toLocaleDateString(t,Bt);for(var a=0,n=Object.entries(Ft);a<n.length;a++){var o=n[a],s=o[0],c=o[1];r=r.replace(e&&c.length===4?(Number(c)+m).toString():c,s)}return r}function Ht(t){return t instanceof Date&&!Number.isNaN(t.getTime())&&t.getFullYear()>=1e3}var It=function(){return'.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{-webkit-transition:all var(--adp-transition-duration) var(--adp-transition-ease);transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7, var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1;text-align:center;text-transform:uppercase;font-size:.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3, 1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, 1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);-webkit-box-sizing:content-box;box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:-ms-inline-flexbox;display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255, 255, 255, 0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr;grid-column-gap:12px;-ms-flex-align:center;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;-ms-flex-item-align:end;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:11px;height:17px;background:-webkit-gradient(linear, left top, right top, from(var(--adp-time-track-color)), to(var(--adp-time-track-color))) left 50%/100% var(--adp-time-track-height) no-repeat;background:linear-gradient(to right, var(--adp-time-track-color), var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;-ms-flex:1;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size)/2*-1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0, 0, 0, 0)}.air-datepicker{--adp-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92, 196, 239, .1);--adp-background-color-in-range-focused:rgba(92, 196, 239, .2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92, 196, 239, 0.1);--adp-cell-background-color-in-range-hover:rgba(92, 196, 239, 0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0, 0, 0, .3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);-webkit-box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border-radius:var(--adp-border-radius);-webkit-box-sizing:content-box;box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4, -webkit-max-content);grid-template-rows:repeat(4, max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;-webkit-transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{-webkit-transform:translateY(calc(var(--adp-transition-offset) * -1));transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{-webkit-transform:translateX(var(--adp-transition-offset));transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{-webkit-transform:translateY(var(--adp-transition-offset));transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{-webkit-transform:translateX(calc(var(--adp-transition-offset) * -1));transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.air-datepicker.-active-.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);-webkit-box-shadow:none;box-shadow:none;position:static;left:auto;right:auto;opacity:1;-webkit-transform:none;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){-webkit-transform:translate(-50%, calc(-50% + var(--adp-transition-offset)));transform:translate(-50%, calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.air-datepicker.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);-webkit-box-sizing:border-box;box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{-webkit-transform:rotate(225deg);transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{-webkit-transform:rotate(315deg);transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size)/2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size)/2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{-webkit-box-sizing:content-box;box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;-webkit-transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-cell-background-color-in-range:unset;--adp-hover-color:unset;--adp-cell-border-width:2px;--adp-background-color:var(--post-scheme-color-surface-accent1-bg);font-family:inherit;font-size:var(--post-device-font-size-8);width:var(--post-core-dimension-296);border-radius:var(--post-device-border-radius-1);-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);font-weight:700;border:none}.air-datepicker.-inline-{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}.air-datepicker *{font-family:inherit}.air-datepicker .air-datepicker--navigation{border-start-start-radius:inherit;border-start-end-radius:inherit}.air-datepicker .air-datepicker--navigation .air-datepicker-nav{border-start-start-radius:inherit;border-start-end-radius:inherit;-webkit-border-after:none;border-block-end:none;background:var(--post-scheme-color-datepicker-header-bg);padding:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:auto;margin-inline-end:auto;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 0 0 var(--post-device-spacing-padding-15);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title.-disabled-:hover{color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:has(button:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;border-radius:var(--post-device-border-radius-1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-3);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title .placeholder{-ms-flex-positive:2;flex-grow:2;pointer-events:none}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action[data-action=next]{-webkit-margin-start:var(--post-device-spacing-gap-inline-4);margin-inline-start:var(--post-device-spacing-gap-inline-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:has(:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4);border-radius:var(--post-device-border-radius-round);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content{padding:0 !important}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names{background:var(--post-scheme-color-datepicker-header-bg);margin:0;-webkit-padding-before:var(--post-device-spacing-padding-13);padding-block-start:var(--post-device-spacing-padding-13);-webkit-padding-after:var(--post-device-spacing-padding-5);padding-block-end:var(--post-device-spacing-padding-5);padding-inline:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names .air-datepicker-body--day-name{text-transform:capitalize;font-size:inherit;color:var(--post-scheme-color-surface-default-fg)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells{min-height:var(--post-core-dimension-182);padding:var(--post-device-spacing-padding-15);background:var(--post-scheme-color-surface-accent1-bg);row-gap:var(--post-device-spacing-gap-2);border-radius:var(--post-device-border-radius-1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .a11y-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--post-core-dimension-40));grid-auto-rows:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell>*{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::after{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-{width:var(--post-core-dimension-40);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-other-month-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:empty{pointer-events:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty).-current-{color:var(--post-scheme-color-interactive-primary-hover-fg1);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background:var(--post-scheme-color-interactive-primary-selected-bg4)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-):not(.-range-from-):not(.-range-to-,.-other-month-){border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-disabled-:not(.-other-month-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);width:var(--post-core-dimension-38);height:var(--post-core-dimension-38);outline:none;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:center}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty){border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-{background:var(--post-scheme-color-interactive-primary-selected-bg4);color:var(--post-scheme-color-interactive-primary-selected-fg3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, var(--post-core-dimension-64));grid-auto-rows:var(--post-core-dimension-40);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-other-decade-{display:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-disabled-:not(.-day-.-other-decade-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months-{grid-template-columns:repeat(4, var(--post-core-dimension-64));padding:var(--post-device-spacing-padding-15);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8);min-height:var(--post-core-dimension-182);text-transform:uppercase}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-other-decade-{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-disabled-{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell.-focus-:hover{background:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-{position:relative;border:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{content:"";position:absolute;inset:0;display:block;width:var(--post-core-dimension-40);height:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1)}@media (-webkit-min-device-pixel-ratio: 1.25)and (-webkit-max-device-pixel-ratio: 1.5), (min-resolution: 1.25dppx)and (max-resolution: 1.4999dppx){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1 - .5)}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::after{inset:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before{z-index:-2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{z-index:-1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-radius:var(--post-device-border-radius-round);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{border:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-selected-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{forced-color-adjust:none;border-color:Highlight}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-{background-color:rgba(0,0,0,0);z-index:2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):hover::after{background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{background-color:var(--post-scheme-color-surface-accent1-bg);border-radius:var(--post-device-border-radius-round);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-){z-index:1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-).-selected-:not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-).-selected-:not(.-disabled-):hover{border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{background:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{border-radius:var(--post-device-border-radius-round);background:var(--post-scheme-color-interactive-primary-selected-bg4)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-start:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-end:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-range-from-:hover::before{background:none;border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-):not(.-selected-)::after{content:unset}.calendar-input,.calendar-input-range{position:relative}.calendar-input button,.calendar-input-range button{z-index:1;padding:0;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--post-device-border-radius-focus);-webkit-transition:opacity .2s ease,visibility .2s ease,fill .2s ease;transition:opacity .2s ease,visibility .2s ease,fill .2s ease;color:var(--post-scheme-color-interactive-input-enabled-fg);right:var(--post-core-dimension-14);top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--post-scheme-color-interactive-input-enabled-fg);inset-inline-end:var(--post-core-dimension-14);inset-inline-start:auto}.calendar-input button post-icon,.calendar-input-range button post-icon{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}.calendar-input button:not([disabled]),.calendar-input-range button:not([disabled]){cursor:pointer}.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:var(--post-scheme-color-interactive-input-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:Highlight}}.calendar-input button[disabled],.calendar-input-range button[disabled]{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}.calendar-input button:focus-visible,.calendar-input-range button:focus-visible{outline-offset:4px !important;outline-style:solid !important;outline-width:var(--post-device-border-width-focus) !important;outline-color:var(--post-scheme-color-interactive-focus-stroke) !important}.calendar-input ::slotted(input),.calendar-input-range ::slotted(input){-webkit-padding-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important;padding-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host{display:block;width:100%;--post-form-floating-validation-icon-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-sizing-notification-1) + var(--post-device-spacing-gap-inline-8) );--post-form-floating-validation-icon-block-start:calc( var(--post-device-sizing-interactive-button-height-6) / 2 )}:host ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% right calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host [dir=rtl] .air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(:dir(rtl)) ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% left calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var Vt=undefined&&undefined.__decorate||function(t,e,i,r){var a=arguments.length,n=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(o=t[s])n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n;return a>3&&n&&Object.defineProperty(e,i,n),n};var Rt=t("post_date_picker",(f=function(){function t(t){var e=this;i(this,t);this.locale=this.systemLocale;this.range=false;this.inline=false;this.inputDisabled=false;this.today=new Date;this.startDate=new Date;this.currentViewType="days";this._isInternalUpdate=false;this._lastInputValue=null;this.isPointerDownOnInput=false;this.skipOnSelectCount=0;this.skipFocusOnNextRender=false;this.pendingFocusDate=null;this.handleInputBlur=function(){if(e.range){var t=e.inputMask.value.split(e.dateFormatRangeSeparator);var i=e.stringToDate(t[0]);var r=e.stringToDate(t[1]);var a=Ht(i);var n=Ht(r);if(a&&n){var o=i>r;e.skipOnSelectCount=o?0:2;e.dpInstance.selectDate([i,r]);e.dpInstance.setViewDate(i)}else if(a&&!n){e.dpInstance.clear();e.dpInstance.selectDate(i);e.dpInstance.setViewDate(i)}else{e.resetSelection()}}else{var s=e.stringToDate(e.inputMask.value);if(Ht(s)){e.skipOnSelectCount=1;e.dpInstance.selectDate(s);e.dpInstance.setViewDate(s)}else{e.resetSelection()}}e.emitInputEvents();if(e.hasFloatingLabel())e.setMaskLazy(true)};this.handleInputPointerDown=function(){e.isPointerDownOnInput=true};this.handleInputFocus=function(){if(e.hasFloatingLabel())e.setMaskLazy(false);if(!e.isPointerDownOnInput){requestAnimationFrame((function(){return e.dpInput.setSelectionRange(0,0)}))}e.isPointerDownOnInput=false};this.handlePrevNextClick=function(){e.skipFocusOnNextRender=true};this.handleTab=function(t){var i;if(e.inline||t.key!=="Tab"&&t.key!=="Escape")return;if(t.key==="Escape"){(i=e.popoverRef)===null||i===void 0?void 0:i.hide();e.dpInput.focus();return}var r=c(e.dpContainer);if(r.length===0)return;var a=e.host.shadowRoot.activeElement;var n=r.indexOf(a);if(n===-1)return;t.preventDefault();var o=t.shiftKey?(n-1+r.length)%r.length:(n+1)%r.length;r[o].focus()};this.handleGridKeydown=function(t){var i=t.key;var r=e.startDate;if(!r)return;if(i==="Enter"||i===" "){t.preventDefault();var a=e.getCells().find((function(t){return t.tabIndex===0}));if(a){a.click()}return}var n=new Date(r);var o={ArrowLeft:{days:function(){return n.setDate(r.getDate()-1)},months:function(){return n.setMonth(r.getMonth()-1)},years:function(){return n.setFullYear(r.getFullYear()-1)}},ArrowRight:{days:function(){return n.setDate(r.getDate()+1)},months:function(){return n.setMonth(r.getMonth()+1)},years:function(){return n.setFullYear(r.getFullYear()+1)}},ArrowUp:{days:function(){return n.setDate(r.getDate()-7)},months:function(){return n.setMonth(r.getMonth()-4)},years:function(){return n.setFullYear(r.getFullYear()-4)}},ArrowDown:{days:function(){return n.setDate(r.getDate()+7)},months:function(){return n.setMonth(r.getMonth()+4)},years:function(){return n.setFullYear(r.getFullYear()+4)}},Home:{days:function(){return n.setDate(1)},months:function(){return n.setMonth(0)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10)}},End:{days:function(){return n.setMonth(r.getMonth()+1,0)},months:function(){return n.setMonth(11)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10+9)}},PageUp:{days:function(){return n.setMonth(r.getMonth()-1)},months:function(){return n.setFullYear(r.getFullYear()-1)},years:function(){return n.setFullYear(r.getFullYear()-10)}},PageDown:{days:function(){return n.setMonth(r.getMonth()+1)},months:function(){return n.setFullYear(r.getFullYear()+1)},years:function(){return n.setFullYear(r.getFullYear()+10)}}};if(!o[i]||!o[i][e.currentViewType])return;t.preventDefault();o[i][e.currentViewType]();var s=r.getMonth()!==n.getMonth()||r.getFullYear()!==n.getFullYear();if(s){e.pendingFocusDate=n;e.skipFocusOnNextRender=false;e.dpInstance.setViewDate(n);requestAnimationFrame((function(){e.setActiveCell(n,true);requestAnimationFrame((function(){if(e.pendingFocusDate===n){e.pendingFocusDate=null}}))}))}else{e.setActiveCell(n,true)}};this.handleInputEvent=function(t){if(e.maskElement.allowEvents)return;var i=e.serializeIsoValue();if(i===e._lastInputValue){t.stopImmediatePropagation();return}e._lastInputValue=i};this.forceTitleClickToYear=function(){if(e.dpInstance){e.dpInstance.setCurrentView("years")}}}t.prototype.validateLocale=function(){if(!x(this.locale)){console.error('The prop `locale` of the `post-date-picker` component must be a valid localeCode (e.g. `en`, `en-GB`, etc.), based on <a href="https://www.rfc-editor.org/info/bcp47">BCP 47 (RFC 5646)</a> standard.')}};t.prototype.updateLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.airLocale()];case 1:t=i.sent();(e=this.dpInstance)===null||e===void 0?void 0:e.update({locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay});this.updateMask();return[2]}}))}))};t.prototype.updateRange=function(){var t,e;(t=this.dpInstance)===null||t===void 0?void 0:t.update({range:this.range});this.updateMask();if(this.range&&((e=this.dpInstance)===null||e===void 0?void 0:e.selectedDates.length)>0){var i=this.dpInstance.selectedDates[0];this.dpInstance.clear();this.dpInstance.selectDate(i)}else{this.syncInputToDp()}};t.prototype.updateMin=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({minDate:this.min?zt(this.min):false})};t.prototype.updateMax=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({maxDate:this.max?zt(this.max):false})};t.prototype.validateInline=function(){if(!this.dpInput){console.error("The date picker must contain one input element")}};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];(t=this.dpInstance)===null||t===void 0?void 0:t.setCurrentView("days");return[4,this.popoverRef.show(this.dpInput)];case 1:e.sent();this.enhanceAccessibility();this.host.shadowRoot.removeEventListener("keydown",this.handleTab,true);this.host.shadowRoot.addEventListener("keydown",this.handleTab,true);return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};Object.defineProperty(t.prototype,"systemLocale",{get:function(){var t,e;var i=(t=this.host.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang");return(e=i!==null&&i!==void 0?i:navigator.language)!==null&&e!==void 0?e:k},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"localeCode",{get:function(){var t;var e=(t=this.locale)!==null&&t!==void 0?t:k;return x(e)?e:k},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"languageCode",{get:function(){return this.localeCode.split("-")[0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormat",{get:function(){return Nt(this.localeCode,this.isBuddhistCalendar)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"textDirection",{get:function(){return w(this.localeCode)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormatRangeSeparator",{get:function(){return this.textDirection==="rtl"?"".concat(y.rtl).concat(_t).concat(y.pop):_t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isBuddhistCalendar",{get:function(){return g.includes(this.localeCode)},enumerable:false,configurable:true});t.prototype.airLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i;return __generator(this,(function(r){switch(r.label){case 0:t=k;if(xt[this.languageCode]){t=this.languageCode}else{console.warn('Post Date Picker: Locale module "'.concat(this.localeCode,'" not found! Falling back to "').concat(k,'".'))}return[4,(i=xt[t])===null||i===void 0?void 0:i.call(xt)];case 1:e=r.sent();return[2,e.default]}}))}))};t.prototype.dateToString=function(t){return Mt(t,this.localeCode)};t.prototype.stringToDate=function(t){return Tt(t,this.dateFormat,this.isBuddhistCalendar)};t.prototype.setupInputObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;if(!this.dpInput)return;if(this.inputObserver){this.inputObserver.disconnect()}this.inputObserver=new MutationObserver((function(){t.syncDatePickerState()}));this.inputObserver.observe(this.dpInput,{attributes:true,attributeFilter:["disabled"]})};t.prototype.getCells=function(){if(!this.dpContainer)return[];var t="";switch(this.currentViewType){case"days":t=".air-datepicker-cell.-day-";break;case"months":t=".air-datepicker-cell.-month-";break;case"years":t=".air-datepicker-cell.-year-";break}return Array.from(this.dpContainer.querySelectorAll(t))};t.prototype.setActiveCell=function(t,e){if(e===void 0){e=true}var i=this.getCells();if(i.length===0)return;var r;if(this.currentViewType==="days"){r=i.find((function(e){return Number(e.dataset.date)===t.getDate()&&Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()&&!e.classList.contains("-other-month-")}));if(!r){var a=new Date(this.currentViewYear,this.currentViewMonth,1);r=i.find((function(t){return Number(t.dataset.date)===1&&Number(t.dataset.month)===a.getMonth()&&Number(t.dataset.year)===a.getFullYear()&&!t.classList.contains("-other-month-")}))}}else if(this.currentViewType==="months"){r=i.find((function(e){return Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-year-")}))}}else{r=i.find((function(e){return Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-decade-")}))}}if(!r){r=i.at(-1)}i.forEach((function(t){return t.tabIndex=-1}));r.tabIndex=0;if(e){r.focus()}this.startDate=new Date(Number(r.dataset.year),Number(r.dataset.month),Number(r.dataset.date))};t.prototype.reorderNavigation=function(){var t;var e=(t=this.dpContainer)===null||t===void 0?void 0:t.querySelector(".air-datepicker-nav");if(!e)return;var i=this.host.shadowRoot.querySelector('[data-action="prev"]');var r=this.host.shadowRoot.querySelector(".air-datepicker-nav--title");if(i&&r){e.insertBefore(r,i)}};Object.defineProperty(t.prototype,"prevBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="prev"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="next"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"titleBtn",{get:function(){return this.host.shadowRoot.querySelector(".air-datepicker-nav--title button")},enumerable:false,configurable:true});t.prototype.hasFloatingLabel=function(){return!!this.host.classList.contains("form-floating")};t.prototype.updateNavigationButtonLabels=function(){var t,e,i,r,a,n;if(this.currentViewType==="months"){(t=this.prevBtn)===null||t===void 0?void 0:t.setAttribute("aria-label",this.textPreviousYear);(e=this.nextBtn)===null||e===void 0?void 0:e.setAttribute("aria-label",this.textNextYear)}else if(this.currentViewType==="years"){(i=this.prevBtn)===null||i===void 0?void 0:i.setAttribute("aria-label",this.textPreviousDecade);(r=this.nextBtn)===null||r===void 0?void 0:r.setAttribute("aria-label",this.textNextDecade)}else{(a=this.prevBtn)===null||a===void 0?void 0:a.setAttribute("aria-label",this.textPreviousMonth);(n=this.nextBtn)===null||n===void 0?void 0:n.setAttribute("aria-label",this.textNextMonth)}};t.prototype.wrapCellsInRows=function(t){var e;(e=this.gridObserver)===null||e===void 0?void 0:e.disconnect();t.querySelectorAll(':scope > [role="row"]').forEach((function(e){while(e.firstChild)t.insertBefore(e.firstChild,e);e.remove()}));var i=Array.from(t.children).filter((function(t){return t.classList.contains("air-datepicker-cell")}));var r=Rt.COLUMNS_BY_VIEW[this.currentViewType];for(var a=0;a<i.length;a+=r){var n=document.createElement("div");n.setAttribute("role","row");n.classList.add("a11y-row");t.insertBefore(n,i[a]);for(var o=a;o<a+r&&o<i.length;o++){n.append(i[o])}}this.gridObserver.observe(t,{childList:true,subtree:false})};t.prototype.enhanceAccessibility=function(t){if(t===void 0){t=true}var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(this.currentViewType==="months"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-months-")}else if(this.currentViewType==="years"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-years-")}if(!e)return;e.setAttribute("role","grid");this.wrapCellsInRows(e);this.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false");if(t.classList.contains("-current-")){t.setAttribute("aria-current","date")}}));e.removeEventListener("keydown",this.handleGridKeydown);e.addEventListener("keydown",this.handleGridKeydown);var i=this.getIsoDates();var r=i[0]?zt(i[0]):null;var a=this.pendingFocusDate||r||this.today;this.setActiveCell(a,t)};t.prototype.setUpMask=function(){var t;var e=(t=this.dateFormat)===null||t===void 0?void 0:t.replace(Ot,(function(t){return"".concat(t,"`")}));var i={mask:Date,pattern:e,format:this.dateToString.bind(this),parse:this.stringToDate.bind(this),blocks:{y:{mask:E.MaskedRange,from:1e3,to:9999,maxLength:4,placeholderChar:Object.keys(Ft)[0]},m:{mask:E.MaskedRange,from:1,to:12,placeholderChar:Object.keys(Ft)[1]},d:{mask:E.MaskedRange,from:1,to:31,placeholderChar:Object.keys(Ft)[2]}},min:this.min?new Date("".concat(Et(this.min),"T00:00")):null,max:this.max?new Date("".concat(Et(this.max),"T00:00")):null,autofix:true,eager:true};this.singleMaskOptions=__assign(__assign({},i),{lazy:this.hasFloatingLabel(),overwrite:true});this.rangeMaskOptions={mask:"from`".concat(this.dateFormatRangeSeparator,"to"),blocks:{from:__assign({},i),to:__assign({},i)},lazy:this.hasFloatingLabel(),overwrite:true};this.maskElement=new ht(this.dpInput);this.inputMask=E(this.maskElement,this.range?this.rangeMaskOptions:this.singleMaskOptions)};t.prototype.setMaskLazy=function(t){var e;var i=this.range?this.rangeMaskOptions:this.singleMaskOptions;(e=this.inputMask)===null||e===void 0?void 0:e.updateOptions(__assign(__assign({},i),{lazy:t}))};t.prototype.updateMask=function(){if(!this.inline){var t=document.activeElement===this.dpInput;this.inputMask.destroy();this.setUpMask();this.setupValueOverride();if(this.dpInstance.selectedDates.length>0){this.inputMask.value=this.formatDatesForMask(this.dpInstance.selectedDates)}if(t&&this.hasFloatingLabel()){this.setMaskLazy(false)}}};t.prototype.setupValueOverride=function(){if(!this.dpInput)return;Object.defineProperty(this.dpInput,"value",{get:this.getInputIsoValue.bind(this),set:this.setInputIsoValue.bind(this),configurable:true,enumerable:true})};t.prototype.getIsoDates=function(){var t,e,i,r,a,n;var o=ft(this.dpInput);var s=8;if(!this.range){var c=(t=o===null||o===void 0?void 0:o.replaceAll(/\D/g,""))!==null&&t!==void 0?t:"";if(c.length<s)return[];var u=this.stringToDate(o);return u&&Ht(u)?[St(u)]:[]}var d=(e=o===null||o===void 0?void 0:o.split(this.dateFormatRangeSeparator))!==null&&e!==void 0?e:[];var l=(r=(i=d[0])===null||i===void 0?void 0:i.replaceAll(/\D/g,""))!==null&&r!==void 0?r:"";var h=(n=(a=d[1])===null||a===void 0?void 0:a.replaceAll(/\D/g,""))!==null&&n!==void 0?n:"";var f=l.length>=s?this.stringToDate(d[0]):null;var p=h.length>=s?this.stringToDate(d[1]):null;var v=[];if(f&&Ht(f))v.push(St(f));if(p&&Ht(p))v.push(St(p));return v};t.prototype.getInputIsoValue=function(){var t;var e=this.getIsoDates();if(!this.range){return(t=e[0])!==null&&t!==void 0?t:""}return e};t.prototype.serializeIsoValue=function(){return JSON.stringify(this.getIsoDates())};t.prototype.setInputIsoValue=function(t){var e,i,r,a;if(this._isInternalUpdate)return;this._isInternalUpdate=true;try{var n=void 0;if(Array.isArray(t)){n=t}else{n=t?t.split(",").map((function(t){return t.trim()})):[]}var o=n.filter(Boolean).map((function(t){return zt(t)})).filter((function(t){return t&&Ht(t)}));if(o.length===0){this.inputMask.value="";(e=this.dpInstance)===null||e===void 0?void 0:e.clear();return}this.inputMask.value=this.formatDatesForMask(o);(i=this.dpInstance)===null||i===void 0?void 0:i.clear();(r=this.dpInstance)===null||r===void 0?void 0:r.selectDate(this.range?o:o[0]);(a=this.dpInstance)===null||a===void 0?void 0:a.setViewDate(o[0])}finally{this._isInternalUpdate=false}};t.prototype.configDatePicker=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;var a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.airLocale()];case 1:t=o.sent();this.dpInput=this.host.querySelector("input");if(!this.dpInput){console.error("The post-date-picker component requires a slotted <input> element.");return[2]}if(this.inline){this.dpInput.type="hidden"}else{this.dpInput.type="text";this.dpInput.inputMode="numeric"}if(!this.inline&&!this.dpInput.hasAttribute("placeholder")){this.dpInput.placeholder=" "}e=this.dpInput.value;this.dpInput.value="";this.setUpMask();this.setupValueOverride();if(e){this.setInputIsoValue(e)}this.dpContainer=this.host.shadowRoot.querySelector(".datepicker-container");if(this.dpContainer){i={navTitles:{days:'<button><strong>MMMM yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>'),months:'<button><strong>yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>')},prevHtml:'<button><post-icon name="chevronleft" ></post-icon></button>',nextHtml:'<button><post-icon name="chevronright" ></post-icon></button>',range:this.range,inline:true,autoClose:true,showOtherYears:true,selectOtherYears:true,showOtherMonths:false,moveToOtherMonthsOnSelect:true,startDate:this.startDate,minDate:this.min?zt(this.min):undefined,maxDate:this.max?zt(this.max):undefined,locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay,view:"days",onChangeView:function(t){r.currentViewType=t;requestAnimationFrame((function(){r.enhanceAccessibility()}))},onChangeViewDate:function(t){var e=t.month,i=t.year;r.currentViewYear=i;r.currentViewMonth=e;r.updateNavigationButtonLabels()},onSelect:function(t){var e;var i=t.date;if(!i||Array.isArray(i)&&i.length===0){if(r._isInternalUpdate)return;r.inputMask.value="";r.emitInputEvents();return}r.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false")}));if(r.skipOnSelectCount>0){r.skipOnSelectCount--;return}if(r._isInternalUpdate)return;var a=Array.isArray(i)?i:[i];var n=r.range&&a.length===1;r.inputMask.value=r.formatDatesForMask(a);r.emitInputEvents();if(n){return}if(!r.inline){(e=r.popoverRef)===null||e===void 0?void 0:e.hide();requestAnimationFrame((function(){return r.dpTrigger.focus()}))}},onShow:function(){r.enhanceAccessibility()},onRenderCell:function(t){var e;var i=yt(t,r.localeCode);var a=(e=r.cellConfig)===null||e===void 0?void 0:e.call(r,t.date,t.cellType);return wt(i,a)}};this.dpInstance=new gt(this.dpContainer,i);this.reorderNavigation();(a=this.prevBtn)===null||a===void 0?void 0:a.addEventListener("click",this.handlePrevNextClick);(n=this.nextBtn)===null||n===void 0?void 0:n.addEventListener("click",this.handlePrevNextClick);this.syncInputToDp()}return[2]}}))}))};t.prototype.emitInputEvents=function(){this.inputMask.updateValue();var t=this.serializeIsoValue();if(t===this._lastInputValue){return}this._lastInputValue=t;this.maskElement.allowEvents=true;this.dpInput.dispatchEvent(new InputEvent("input",{bubbles:true}));this.dpInput.dispatchEvent(new InputEvent("change",{bubbles:true}));this.maskElement.allowEvents=false};t.prototype.formatDatesForMask=function(t){var e=this;if(t.length===0)return"";if(this.range){return t.map((function(t){return e.dateToString(t)})).join(this.dateFormatRangeSeparator)}return this.dateToString(t[0])};t.prototype.syncInputToDp=function(){var t=this.getIsoDates();if(t.length===0)return;var e=t.map((function(t){return zt(t)})).filter((function(t){return t&&Ht(t)}));if(e.length>0){this.dpInstance.selectDate(this.range?e:e[0]);this.dpInstance.setViewDate(e[0])}};t.prototype.attachTitleBtnListener=function(){var t=this;requestAnimationFrame((function(){if(!t.titleBtn)return;t.titleBtn.onclick=null;t.titleBtn.removeEventListener("click",t.forceTitleClickToYear);t.titleBtn.addEventListener("click",t.forceTitleClickToYear,{capture:true})}))};t.prototype.setupNavObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-nav");if(!e)return;if(this.navObserver){this.navObserver.disconnect()}this.updateNavigationButtonLabels();this.attachTitleBtnListener();this.navObserver=new MutationObserver((function(){t.updateNavigationButtonLabels();t.attachTitleBtnListener()}));this.navObserver.observe(e,{childList:true,subtree:true})};t.prototype.setupGridObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(!e)return;if(this.gridObserver){this.gridObserver.disconnect()}this.gridObserver=new MutationObserver((function(e){var i=e.some((function(t){return t.type==="childList"}));if(!i)return;requestAnimationFrame((function(){t.enhanceAccessibility(!t.skipFocusOnNextRender);t.skipFocusOnNextRender=false}))}));this.gridObserver.observe(e,{childList:true,subtree:false})};t.prototype.addInputListener=function(){this._lastInputValue=this.serializeIsoValue();if(!this.inline){this.dpInput.addEventListener("blur",this.handleInputBlur);this.dpInput.addEventListener("focus",this.handleInputFocus);this.dpInput.addEventListener("pointerdown",this.handleInputPointerDown)}this.dpInput.addEventListener("input",this.handleInputEvent)};t.prototype.resetSelection=function(){this.skipOnSelectCount=0;this.dpInstance.clear();this.dpInstance.setViewDate(this.today)};t.prototype.syncDatePickerState=function(){this.inputDisabled=this.dpInput.disabled};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.configDatePicker()];case 1:e.sent();this.setupGridObserver();this.setupNavObserver();this.setupInputObserver();this.validateLocale();this.validateInline();this.addInputListener();this.syncDatePickerState();if(this.inline){requestAnimationFrame((function(){return t.enhanceAccessibility(false)}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){var t,e,i,r,a,n,o,s,c,u,d,l;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("keydown",this.handleTab,true);(e=this.titleBtn)===null||e===void 0?void 0:e.removeEventListener("click",this.forceTitleClickToYear);var h=(i=this.dpContainer)===null||i===void 0?void 0:i.querySelector(".air-datepicker-body--cells");h===null||h===void 0?void 0:h.removeEventListener("keydown",this.handleGridKeydown);(r=this.prevBtn)===null||r===void 0?void 0:r.removeEventListener("click",this.handlePrevNextClick);(a=this.nextBtn)===null||a===void 0?void 0:a.removeEventListener("click",this.handlePrevNextClick);(n=this.dpInput)===null||n===void 0?void 0:n.removeEventListener("focus",this.handleInputFocus);(o=this.dpInput)===null||o===void 0?void 0:o.removeEventListener("blur",this.handleInputBlur);(s=this.dpInput)===null||s===void 0?void 0:s.removeEventListener("pointerdown",this.handleInputPointerDown);(c=this.dpInput)===null||c===void 0?void 0:c.removeEventListener("input",this.handleInputEvent);(u=this.gridObserver)===null||u===void 0?void 0:u.disconnect();(d=this.navObserver)===null||d===void 0?void 0:d.disconnect();(l=this.inputObserver)===null||l===void 0?void 0:l.disconnect();if(this.dpInstance){this.dpInstance.destroy();this.dpInstance=null}};t.prototype.render=function(){var t=this;return r(a,{key:"a1e7f1919a7ba88d369b9e278eac72342d21443b","data-version":o},this.inline&&r("div",{key:"059f1f31b68489c2898d63bab5d769d2255e888f",dir:this.textDirection},r("slot",{key:"328e336df7a840c3fc08187c74e0fc47bee0b8b0"}),r("div",{key:"099492dd47c7a5e1f0e3825320d3dc05a38280fe",class:"datepicker-container"})),!this.inline&&r("div",{key:"d2e2c4a81ee6c9e02cc81b905f30c60d3a0f6a2f",dir:this.textDirection},r("div",{key:"6d12430c0c2740d8e05e9989339cc31515462c0d",class:{"calendar-input":!this.range,"calendar-input-range":this.range,disabled:this.inputDisabled}},r("slot",{key:"9db632b6ff60aa277f3fd19042fae6bf30984c0b"}),r("button",{key:"61fbbf0640068ffc6008582a0feb19733be29b6e",onClick:function(){return t.show()},"aria-haspopup":"true","aria-label":this.textToggleCalendar,disabled:this.inputDisabled,ref:function(e){return t.dpTrigger=e}},r("post-icon",{key:"1997e23ca717bf90e548a1cd67dc6493b74123ec",name:"calendar"}))),r("post-popovercontainer",{key:"36de41a42a0262825461d862a7da2662c7a73804",placement:"bottom-end",offset:Rt.FLYOUT_OFFSET,ref:function(e){return t.popoverRef=e}},r("div",{key:"b5e5fd1ed11be788afe95ba0ae25c9baf635c8bb",class:"datepicker-container"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],min:[{updateMin:0}],max:[{updateMax:0}],inline:[{validateInline:0}]}},enumerable:false,configurable:true});return t}(),function(){f.FLYOUT_OFFSET=4}(),function(){f.COLUMNS_BY_VIEW={days:7,months:4,years:4}}(),f));Vt([p(),b()],Rt.prototype,"min",void 0);Vt([p(),b()],Rt.prototype,"max",void 0);Vt([l(),h("string")],Rt.prototype,"textNextMonth",void 0);Vt([l(),h("string")],Rt.prototype,"textNextYear",void 0);Vt([l(),h("string")],Rt.prototype,"textNextDecade",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousMonth",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousYear",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousDecade",void 0);Vt([l(),h("string")],Rt.prototype,"textSwitchYear",void 0);Vt([l({when:"inline",truthy:false}),h("string")],Rt.prototype,"textToggleCalendar",void 0);Rt.style=It()}}}));
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))t[a]=e[a]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function o(t){try{c(r.next(t))}catch(t){n(t)}}function s(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(o,s)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["return"]=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var i={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0)i[r]=t[r];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++){if(e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a]))i[r[a]]=t[r[a]]}return i};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};System.register(["./p-CN_0KCBp.system.js","./p-CgnycKPl.system.js","./p-Bzy18UgU.system.js","./p-BIAUtR0M.system.js","./p-DaxAbTyB.system.js","./p-D4wq7hIE.system.js","./p-BMZcKRx0.system.js","./p-qFxyG4GI.system.js"],(function(t,e){"use strict";var i,r,a,n,o,s,c,u,d,l,h;return{setters:[function(t){i=t.r;r=t.h;a=t.H;n=t.g},function(t){o=t.v},function(t){s=t.g},function(t){c=t.a},function(t){u=t.c;d=t.g},function(t){l=t.R},function(t){h=t.T},null],execute:function(){var f;function p(){return u({priority:1,blocking:false,run:function(t,e){var i=d(t,e),r=i.value,a=i.showError;var n=typeof r==="string"&&!Number.isNaN(new Date(r).getTime());if(!n){a("must be a valid date string");return false}return true}})}function v(t){var e=/^\d{1,4}-\d{2}-\d{2}$/;if(!e.test(t))return false;var i=t.split("-");var r="".concat(i[0].padStart(4,"0"),"-").concat(i[1],"-").concat(i[2]);var a=new Date("".concat(r,"T00:00"));if(Number.isNaN(a.getTime()))return false;var n=a.getFullYear();var o=String(a.getMonth()+1).padStart(2,"0");var s=String(a.getDate()).padStart(2,"0");return"".concat(n,"-").concat(o,"-").concat(s)===t}function b(){return u({priority:1,blocking:false,run:function(t,e){var i=d(t,e),r=i.value,a=i.showError;if(!v(String(r))){a("must be in ISO format (YYYY-MM-DD)");return false}return true}})}var k="en";var m=543;var g=["th","th-TH"];var y={ltr:"",rtl:"",pop:""};function w(t){return(new Date).toLocaleDateString(t).includes(y.rtl)?"rtl":"ltr"}function x(t){if(!t)return false;try{return Intl.DateTimeFormat.supportedLocalesOf(t).length>0}catch(t){console.log(t);return false}}function A(t){return typeof t==="string"||t instanceof String}function D(t){var e;return typeof t==="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function _(t,e){if(Array.isArray(e))return _(t,(function(t,i){return e.includes(i)}));return Object.entries(t).reduce((function(t,i){var r=i[0],a=i[1];if(e(a,r))t[r]=a;return t}),{})}var F={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function j(t){switch(t){case F.LEFT:return F.FORCE_LEFT;case F.RIGHT:return F.FORCE_RIGHT;default:return t}}function C(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function O(t,e){if(e===t)return true;var i=Array.isArray(e),r=Array.isArray(t);var a;if(i&&r){if(e.length!=t.length)return false;for(a=0;a<e.length;a++)if(!O(e[a],t[a]))return false;return true}if(i!=r)return false;if(e&&t&&typeof e==="object"&&typeof t==="object"){var n=e instanceof Date,o=t instanceof Date;if(n&&o)return e.getTime()==t.getTime();if(n!=o)return false;var s=e instanceof RegExp,c=t instanceof RegExp;if(s&&c)return e.toString()==t.toString();if(s!=c)return false;var u=Object.keys(e);for(a=0;a<u.length;a++)if(!Object.prototype.hasOwnProperty.call(t,u[a]))return false;for(a=0;a<u.length;a++)if(!O(t[u[a]],e[u[a]]))return false;return true}else if(e&&t&&typeof e==="function"&&typeof t==="function"){return e.toString()===t.toString()}return false}var B=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return F.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?F.RIGHT:F.LEFT},enumerable:false,configurable:true});return t}();function E(t,e){return new E.InputMask(t,e)}function z(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return E.MaskedRegExp;if(A(t))return E.MaskedPattern;if(t===Date)return E.MaskedDate;if(t===Number)return E.MaskedNumber;if(Array.isArray(t)||t===Array)return E.MaskedDynamic;if(E.Masked&&t.prototype instanceof E.Masked)return t;if(E.Masked&&t instanceof E.Masked)return t.constructor;if(t instanceof Function)return E.MaskedFunction;console.warn("Mask not found for mask",t);return E.Masked}function S(t){if(!t)throw new Error("Options in not defined");if(E.Masked){if(t.prototype instanceof E.Masked)return{mask:t};var e=t instanceof E.Masked?{mask:t}:D(t)&&t.mask instanceof E.Masked?t:{},i=e.mask,r=i===void 0?undefined:i,a=__rest(e,["mask"]);if(r){var n=r.mask;return __assign(__assign(__assign({},_(r,(function(t,e){return!e.startsWith("_")}))),{mask:r.constructor,_mask:n}),a)}}if(!D(t))return{mask:t};return __assign({},t)}function M(t){if(E.Masked&&t instanceof E.Masked)return t;var e=S(t);var i=z(e.mask);if(!i)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");if(e.mask===i)delete e.mask;if(e._mask){e.mask=e._mask;delete e._mask}return new i(e)}E.createMask=M;var T=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,e){if(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd)return;try{this._unsafeSelect(t,e)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();E.MaskElement=T;var N=90;var H=89;var I=function(t){__extends(e,t);function e(e){var i=t.call(this)||this;i.input=e;i._onKeydown=i._onKeydown.bind(i);i._onInput=i._onInput.bind(i);i._onBeforeinput=i._onBeforeinput.bind(i);i._onCompositionEnd=i._onCompositionEnd.bind(i);return i}Object.defineProperty(e.prototype,"rootElement",{get:function(){var t,e,i;return(t=(e=(i=this.input).getRootNode)==null?void 0:e.call(i))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});e.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};e.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===N&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===H&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===N&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};e.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};e.prototype._onCompositionEnd=function(t){this._handlers.input(t)};e.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};e.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return e}(T);E.HTMLMaskElement=I;var V=function(t){__extends(e,t);function e(e){var i=t.call(this,e)||this;i.input=e;return i}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){this.input.setSelectionRange(t,e)};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return e}(I);E.HTMLMaskElement=I;var R=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i<r){return i}return r},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var e=t.getSelection&&t.getSelection();var i=e&&e.anchorOffset;var r=e&&e.focusOffset;if(r==null||i==null||i>r){return i}return r},enumerable:false,configurable:true});e.prototype._unsafeSelect=function(t,e){if(!this.rootElement.createRange)return;var i=this.rootElement.createRange();i.setStart(this.input.firstChild||this.input,t);i.setEnd(this.input.lastChild||this.input,e);var r=this.rootElement;var a=r.getSelection&&r.getSelection();if(a){a.removeAllRanges();a.addRange(i)}};Object.defineProperty(e.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return e}(I);E.HTMLContenteditableMaskElement=R;var P=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(e){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(e);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();P.MAX_LENGTH=100;var L=function(){function t(t,e){this.el=t instanceof T?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new R(t):new V(t);this.masked=M(e);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new P;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}t.prototype.maskEquals=function(t){var e;return t==null||((e=this.masked)==null?void 0:e.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof E.Masked)&&this.masked.constructor===z(t)){this.masked.updateOptions({mask:t});return}var e=t instanceof E.Masked?t:M({mask:t});e.unmaskedValue=this.masked.unmaskedValue;this.masked=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,e){var i=this._listeners[t];if(!i)return;i.forEach((function(t){return t(e)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var e=this.masked.unmaskedValue;var i=this.masked.value;var r=this.masked.rawInputValue;var a=this.displayValue;var n=this.unmaskedValue!==e||this.value!==i||this._rawInputValue!==r;this._unmaskedValue=e;this._value=i;this._rawInputValue=r;if(this.el.value!==a)this.el.value=a;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(n)this._fireChangeEvents();if(!this._historyChanging&&(n||this.history.isEmpty))this.history.push({unmaskedValue:e,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var e=t.mask,i=__rest(t,["mask"]);var r=!this.maskEquals(e);var a=this.masked.optionsIsChanged(i);if(r)this.mask=e;if(a)this.masked.updateOptions(i);if(r||a)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var e=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!e.el)return;e.cursorPos=e._changingCursorPos;e._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,F.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,e){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(e);return this};t.prototype.off=function(t,e){if(!this._listeners[t])return this;if(!e){delete this._listeners[t];return this}var i=this._listeners[t].indexOf(e);if(i>=0)this._listeners[t].splice(i,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var e=new B({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var i=this.masked.rawInputValue;var r=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:true,raw:true}).offset;var a=i===this.masked.rawInputValue?e.removeDirection:F.NONE;var n=this.masked.nearestInputPos(e.startChangePos+r,a);if(a!==F.NONE)n=this.masked.nearestInputPos(n,F.NONE);this.updateControl(n);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();E.InputMask=L;var U=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(e){return Array.isArray(e)?e:[e,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();E.ChangeDetails=U;var Y=function(){function t(t,e,i){if(t===void 0){t=""}if(e===void 0){e=0}this.value=t;this.from=e;this.stop=i}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var e=this.value[0];this.value=this.value.slice(1);return e};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var q=function(){function t(e){this._value="";this._update(__assign(__assign({},t.DEFAULTS),e));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,e){if(e===void 0){e={input:true}}this.reset();this.append(t,e,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,e){return t};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return Math.min(this.displayValue.length,e-t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return this.displayValue.slice(t,e)};t.prototype.extractTail=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}return new Y(this.extractInput(t,e),t)};t.prototype.appendTail=function(t){if(A(t))t=new Y(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,e){if(!t)return new U;this._value+=t;return new U({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,e,i){var r;if(e===void 0){e={}}var a=this.state;var n;r=this.doPrepareChar(t,e),t=r[0],n=r[1];if(t){n=n.aggregate(this._appendCharRaw(t,e));if(!n.rawInserted&&this.autofix==="pad"){var o=this.state;this.state=a;var s=this.pad(e);var c=this._appendCharRaw(t,e);s=s.aggregate(c);if(c.rawInserted||s.equals(n)){n=s}else{this.state=o}}}if(n.inserted){var u=void 0;var d=this.doValidate(e)!==false;if(d&&i!=null){var l=this.state;if(this.overwrite===true){u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.unshift(this.displayValue.length-n.tailShift)}}var f=this.appendTail(i);d=f.rawInserted.length===i.toString().length;if(!(d&&f.inserted)&&this.overwrite==="shift"){this.state=l;u=i.state;for(var h=0;h<n.rawInserted.length;++h){i.shift()}f=this.appendTail(i);d=f.rawInserted.length===i.toString().length}if(d&&f.inserted)this.state=l}if(!d){n=new U;this.state=a;if(i&&u)i.state=u}}return n};t.prototype._appendPlaceholder=function(){return new U};t.prototype._appendEager=function(){return new U};t.prototype.append=function(t,e,i){var r;if(!A(t))throw new Error("value should be string");var a=A(i)?new Y(String(i)):i;if(e!=null&&e.tail)e._beforeTailState=this.state;var n;r=this.doPrepare(t,e),t=r[0],n=r[1];for(var o=0;o<t.length;++o){var s=this._appendChar(t[o],e,a);if(!s.rawInserted&&!this.doSkipInvalid(t[o],e,a))break;n.aggregate(s)}if((this.eager===true||this.eager==="append")&&e!=null&&e.input&&t){n.aggregate(this._appendEager())}if(a!=null){n.tailShift+=this.appendTail(a).tailShift}return n};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(e);return new U};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var e=this.rawInputValue;var i=this.value;var r=t();this.rawInputValue=e;if(this.value&&this.value!==i&&i.indexOf(this.value)===0){this.append(i.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return r};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var e=this.state;var i=t(this);this.state=e;delete this._isolated;return i};t.prototype.doSkipInvalid=function(t,e,i){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,e){if(e===void 0){e={}}return U.normalize(this.prepare?this.prepare(t,this,e):t)};t.prototype.doPrepareChar=function(t,e){if(e===void 0){e={}}return U.normalize(this.prepareChar?this.prepareChar(t,this,e):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,e,i,r,a){if(i===void 0){i=""}if(r===void 0){r=F.NONE}if(a===void 0){a={input:true}}var n=t+e;var o=this.extractTail(n);var s=this.eager===true||this.eager==="remove";var c;if(s){r=j(r);c=this.extractInput(0,n,{raw:true})}var u=t;var d=new U;if(r!==F.NONE){u=this.nearestInputPos(t,e>1&&t!==0&&!s?F.NONE:r);d.tailShift=u-t}d.aggregate(this.remove(u));if(s&&r!==F.NONE&&c===this.rawInputValue){if(r===F.FORCE_LEFT){var l=void 0;while(c===this.rawInputValue&&(l=this.displayValue.length)){d.aggregate(new U({tailShift:-1})).aggregate(this.remove(l-1))}}else if(r===F.FORCE_RIGHT){o.unshift()}}return d.aggregate(this.append(i,a,o))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!O(this,t)};t.prototype.typedValueEquals=function(e){var i=this.typedValue;return e===i||t.EMPTY_VALUES.includes(e)&&t.EMPTY_VALUES.includes(i)||(this.format?this.format(e,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new U};return t}();q.DEFAULTS={skipInvalid:true};q.EMPTY_VALUES=[undefined,null,""];E.Masked=q;var G=function(){function t(t,e){if(t===void 0){t=[]}if(e===void 0){e=0}this.chunks=t;this.from=e}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(e){if(!String(e))return;e=A(e)?new Y(String(e)):e;var i=this.chunks[this.chunks.length-1];var r=i&&(i.stop===e.stop||e.stop==null)&&e.from===i.from+i.toString().length;if(e instanceof Y){if(r){i.extend(e.toString())}else{this.chunks.push(e)}}else if(e instanceof t){if(e.stop==null){var a=void 0;while(e.chunks.length&&e.chunks[0].stop==null){a=e.chunks.shift();a.from+=e.from;this.extend(a)}}if(e.toString()){e.stop=e.blockIndex;this.chunks.push(e)}}};t.prototype.appendTo=function(e){if(!(e instanceof E.MaskedPattern)){var i=new Y(this.toString());return i.appendTo(e)}var r=new U;for(var a=0;a<this.chunks.length;++a){var n=this.chunks[a];var o=e._mapPosToBlock(e.displayValue.length);var s=n.stop;var c=void 0;if(s!=null&&(!o||o.index<=s)){if(n instanceof t||e._stops.indexOf(s)>=0){r.aggregate(e._appendPlaceholder(s))}c=n instanceof t&&e._blocks[s]}if(c){var u=c.appendTail(n);r.aggregate(u);var d=n.toString().slice(u.rawInserted.length);if(d)r.aggregate(e.append(d,{tail:true}))}else{r.aggregate(e.append(n.toString(),{tail:true}))}}return r};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(e){var i=e.chunks,r=__rest(e,["chunks"]);Object.assign(this,r);this.chunks=i.map((function(e){var i="chunks"in e?new t:new Y;i.state=e;return i}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var e=t!=null?t-this.from:t;var i=0;while(i<this.chunks.length){var r=this.chunks[i];var a=r.unshift(e);if(r.toString()){if(!a)break;++i}else{this.chunks.splice(i,1)}if(a)return a}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var e=this.chunks[t];var i=e.shift();if(e.toString()){if(!i)break;--t}else{this.chunks.splice(t,1)}if(i)return i}return""};return t}();var K=function(){function t(t,e){this.masked=t;this._log=[];var i=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),r=i.offset,a=i.index;this.offset=r;this.index=a;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)==null?void 0:e.displayValue.length)||0){var e;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,F.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,F.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,F.NONE);return true}))};return t}();var $=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(e);if(!this._value)this._isRawInput=false;return new U};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}var i=0;var r=this._value.length;switch(e){case F.LEFT:case F.FORCE_LEFT:return i;case F.NONE:case F.RIGHT:case F.FORCE_RIGHT:default:return r}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this._value.length}return this._isRawInput?e-t:0};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this._value.length}if(i===void 0){i={}}return i.raw&&this._isRawInput&&this._value.slice(t,e)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new U;var i=this.eager===true||this.eager==="append";var r=this.char===t;var a=r&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!i)&&!e.tail;var n=new U({inserted:this.char,rawInserted:a?this.char:""});this._value=this.char;this._isRawInput=a&&(e.raw||e.input);return n};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new U;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new Y("")};t.prototype.appendTail=function(t){if(A(t))t=new Y(String(t));return t.appendTo(this)};t.prototype.append=function(t,e,i){var r=this._appendChar(t[0],e);if(i!=null){r.tailShift+=this.appendTail(i).tailShift}return r};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var X=function(){function t(t){var e=t.parent,i=t.isOptional,r=t.placeholderChar,a=t.displayChar,n=t.lazy,o=t.eager,s=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=M(s);Object.assign(this,{parent:e,isOptional:i,placeholderChar:r,displayChar:a,lazy:n,eager:o})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}if(t===0&&e>=1){this.isFilled=false;return this.masked.remove(t,e)}return new U};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,e){if(e===void 0){e={}}if(this.isFilled)return new U;var i=this.masked.state;var r=this.masked._appendChar(t,this.currentMaskFlags(e));if(r.inserted&&this.doValidate(e)===false){r=new U;this.masked.state=i}if(!r.inserted&&!this.isOptional&&!this.lazy&&!e.input){r.inserted=this.placeholderChar}r.skip=!r.inserted&&!this.isOptional;this.isFilled=Boolean(r.inserted);return r};t.prototype.append=function(t,e,i){return this.masked.append(t,this.currentMaskFlags(e),i)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new U;this.isFilled=true;return new U({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new U};t.prototype.extractTail=function(t,e){return this.masked.extractTail(t,e)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.masked.extractInput(t,e,i)};t.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}var i=0;var r=this.value.length;var a=Math.min(Math.max(t,i),r);switch(e){case F.LEFT:case F.FORCE_LEFT:return this.isComplete?a:i;case F.RIGHT:case F.FORCE_RIGHT:return this.isComplete?a:r;case F.NONE:default:return a}};t.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.value.length}return this.value.slice(t,e).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var e;return __assign(__assign({},t),{_beforeTailState:(t==null||(e=t._beforeTailState)==null?void 0:e.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new U};return t}();X.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.mask;if(i)e.validate=function(t){return t.search(i)>=0};t.prototype._update.call(this,e)};return e}(q);E.MaskedRegExp=W;var Q=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign(__assign({},e.DEFAULTS),i),{definitions:Object.assign({},X.DEFAULT_DEFINITIONS,i==null?void 0:i.definitions)}))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){e.definitions=Object.assign({},this.definitions,e.definitions);t.prototype._update.call(this,e);this._rebuildMask()};e.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var i=this.mask;if(!i||!t)return;var r=false;var a=false;var n=function(n){if(o.blocks){var c=i.slice(n);var u=Object.keys(o.blocks).filter((function(t){return c.indexOf(t)===0}));u.sort((function(t,e){return e.length-t.length}));var d=u[0];if(d){var l=S(o.blocks[d]),h=l.expose,f=l.repeat,p=__rest(l,["expose","repeat"]);var v=__assign(__assign({lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar,overwrite:o.overwrite,autofix:o.autofix},p),{repeat:f,parent:o});var b=f!=null?new E.RepeatBlock(v):M(v);if(b){o._blocks.push(b);if(h)o.exposeBlock=b;if(!o._maskedBlocks[d])o._maskedBlocks[d]=[];o._maskedBlocks[d].push(o._blocks.length-1)}n+=d.length-1;return s=n,"continue"}}var k=i[n];var m=k in t;if(k===e.STOP_CHAR){o._stops.push(o._blocks.length);return s=n,"continue"}if(k==="{"||k==="}"){r=!r;return s=n,"continue"}if(k==="["||k==="]"){a=!a;return s=n,"continue"}if(k===e.ESCAPE_CHAR){++n;k=i[n];if(!k)return s=n,"break";m=false}var g=m?new X(__assign(__assign({isOptional:a,lazy:o.lazy,eager:o.eager,placeholderChar:o.placeholderChar,displayChar:o.displayChar},S(t[k])),{parent:o})):new $({char:k,eager:o.eager,isUnmasking:r});o._blocks.push(g);s=n};var o=this,s;for(var c=0;c<i.length;++c){var u=n(c);c=s;if(u==="break")break}};Object.defineProperty(e.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(e){if(!e){this.reset();return}var i=e._blocks,r=__rest(e,["_blocks"]);this._blocks.forEach((function(t,e){return t.state=i[e]}));t.prototype.state=r},enumerable:false,configurable:true});e.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});e.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,e){return t+=e.unmaskedValue}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,e){return t+=e.value}),"")},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e;this.appendTail(i);this.doCommit()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(e){if(this.exposeBlock){var i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e;this.appendTail(i);this.doCommit()}else t.prototype.typedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,e){return t+=e.displayValue}),"")},enumerable:false,configurable:true});e.prototype.appendTail=function(e){return t.prototype.appendTail.call(this,e).aggregate(this._appendPlaceholder())};e.prototype._appendEager=function(){var t;var e=new U;var i=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(i==null)return e;if(this._blocks[i].isFilled)++i;for(var r=i;r<this._blocks.length;++r){var a=this._blocks[r]._appendEager();if(!a.inserted)break;e.aggregate(a)}return e};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._mapPosToBlock(this.displayValue.length);var r=new U;if(!i)return r;for(var a=i.index,n=void 0;n=this._blocks[a];++a){var o;var s=n._appendChar(t,__assign(__assign({},e),{_beforeTailState:(o=e._beforeTailState)==null||(o=o._blocks)==null?void 0:o[a]}));r.aggregate(s);if(s.consumed)break}return r};e.prototype.extractTail=function(t,e){var i=this;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var r=new G;if(t===e)return r;this._forEachBlocksInRange(t,e,(function(t,e,a,n){var o=t.extractTail(a,n);o.stop=i._findStopBefore(e);o.from=i._blockStartPos(e);if(o instanceof G)o.blockIndex=e;r.extend(o)}));return r};e.prototype.extractInput=function(t,e,i){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}if(i===void 0){i={}}if(t===e)return"";var r="";this._forEachBlocksInRange(t,e,(function(t,e,a,n){r+=t.extractInput(a,n,i)}));return r};e.prototype._findStopBefore=function(t){var e;for(var i=0;i<this._stops.length;++i){var r=this._stops[i];if(r<=t)e=r;else break}return e};e.prototype._appendPlaceholder=function(t){var e=new U;if(this.lazy&&t==null)return e;var i=this._mapPosToBlock(this.displayValue.length);if(!i)return e;var r=i.index;var a=t!=null?t:this._blocks.length;this._blocks.slice(r,a).forEach((function(i){if(!i.lazy||t!=null){var r;e.aggregate(i._appendPlaceholder((r=i._blocks)==null?void 0:r.length))}}));return e};e.prototype._mapPosToBlock=function(t){var e="";for(var i=0;i<this._blocks.length;++i){var r=this._blocks[i];var a=e.length;e+=r.displayValue;if(t<=e.length){return{index:i,offset:t-a}}}};e.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,e){return t+=e.displayValue.length}),0)};e.prototype._forEachBlocksInRange=function(t,e,i){if(e===void 0){e=this.displayValue.length}var r=this._mapPosToBlock(t);if(r){var a=this._mapPosToBlock(e);var n=a&&r.index===a.index;var o=r.offset;var s=a&&n?a.offset:this._blocks[r.index].displayValue.length;i(this._blocks[r.index],r.index,o,s);if(a&&!n){for(var c=r.index+1;c<a.index;++c){i(this._blocks[c],c,0,this._blocks[c].displayValue.length)}i(this._blocks[a.index],a.index,0,a.offset)}}};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._forEachBlocksInRange(e,i,(function(t,e,i,a){r.aggregate(t.remove(i,a))}));return r};e.prototype.nearestInputPos=function(t,e){if(e===void 0){e=F.NONE}if(!this._blocks.length)return 0;var i=new K(this,t);if(e===F.NONE){if(i.pushRightBeforeInput())return i.pos;i.popState();if(i.pushLeftBeforeInput())return i.pos;return this.displayValue.length}if(e===F.LEFT||e===F.FORCE_LEFT){if(e===F.LEFT){i.pushRightBeforeFilled();if(i.ok&&i.pos===t)return t;i.popState()}i.pushLeftBeforeInput();i.pushLeftBeforeRequired();i.pushLeftBeforeFilled();if(e===F.LEFT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.ok&&i.pos<=t)return i.pos;i.popState();if(i.ok&&i.pos<=t)return i.pos;i.popState()}if(i.ok)return i.pos;if(e===F.FORCE_LEFT)return 0;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return 0}if(e===F.RIGHT||e===F.FORCE_RIGHT){i.pushRightBeforeInput();i.pushRightBeforeRequired();if(i.pushRightBeforeFilled())return i.pos;if(e===F.FORCE_RIGHT)return this.displayValue.length;i.popState();if(i.ok)return i.pos;i.popState();if(i.ok)return i.pos;return this.nearestInputPos(t,F.LEFT)}return t};e.prototype.totalInputPositions=function(t,e){if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}var i=0;this._forEachBlocksInRange(t,e,(function(t,e,r,a){i+=t.totalInputPositions(r,a)}));return i};e.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};e.prototype.maskedBlocks=function(t){var e=this;var i=this._maskedBlocks[t];if(!i)return[];return i.map((function(t){return e._blocks[t]}))};e.prototype.pad=function(t){var e=new U;this._forEachBlocksInRange(0,this.displayValue.length,(function(i){return e.aggregate(i.pad(t))}));return e};return e}(q);Q.DEFAULTS=__assign(__assign({},q.DEFAULTS),{lazy:true,placeholderChar:"_"});Q.STOP_CHAR="`";Q.ESCAPE_CHAR="\\";Q.InputDefinition=X;Q.FixedDefinition=$;E.MaskedPattern=Q;var Z=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.to,r=i===void 0?this.to||0:i,a=e.from,n=a===void 0?this.from||0:a,o=e.maxLength,s=o===void 0?this.maxLength||0:o,c=e.autofix,u=c===void 0?this.autofix:c,d=__rest(e,["to","from","maxLength","autofix"]);this.to=r;this.from=n;this.maxLength=Math.max(String(r).length,s);this.autofix=u;var l=String(this.from).padStart(this.maxLength,"0");var h=String(this.to).padStart(this.maxLength,"0");var f=0;while(f<h.length&&h[f]===l[f])++f;d.mask=h.slice(0,f).replace(/0/g,"\\0")+"0".repeat(this.maxLength-f);t.prototype._update.call(this,d)};Object.defineProperty(e.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});e.prototype.boundaries=function(t){var e="";var i="";var r=t.match(/^(\D*)(\d*)(\D*)/)||[],a=r[1],n=r[2];if(n){e="0".repeat(a.length)+n;i="9".repeat(a.length)+n}e=e.padEnd(this.maxLength,"0");i=i.padEnd(this.maxLength,"9");return[e,i]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a;r=t.prototype.doPrepareChar.call(this,e.replace(/\D/g,""),i),e=r[0],a=r[1];if(!e)a.skip=!this.isComplete;return[e,a]};e.prototype._appendCharRaw=function(e,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,e,i);var r=String(this.from).padStart(this.maxLength,"0");var a=String(this.to).padStart(this.maxLength,"0");var n=this.boundaries(this.value+e),o=n[0],s=n[1];if(Number(s)<this.from)return t.prototype._appendCharRaw.call(this,r[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,r[this.value.length],i).aggregate(this._appendCharRaw(e,i))}return t.prototype._appendCharRaw.call(this,a[this.value.length],i)}return t.prototype._appendCharRaw.call(this,e,i)};e.prototype.doValidate=function(e){var i=this.value;var r=i.search(/[^0]/);if(r===-1&&i.length<=this._matchFrom)return true;var a=this.boundaries(i),n=a[0],o=a[1];return this.from<=Number(o)&&Number(n)<=this.to&&t.prototype.doValidate.call(this,e)};e.prototype.pad=function(e){var i=this;var r=new U;if(this.value.length===this.maxLength)return r;var a=this.value;var n=this.maxLength-this.value.length;if(n){this.reset();for(var o=0;o<n;++o){r.aggregate(t.prototype._appendCharRaw.call(this,"0",e))}a.split("").forEach((function(t){return i._appendCharRaw(t)}))}return r};return e}(Q);E.MaskedRange=Z;var J="d{.}`m{.}`Y";var tt=function(t){__extends(e,t);function e(i){return t.call(this,e.extractPatternOptions(__assign(__assign({},e.DEFAULTS),i)))||this}e.extractPatternOptions=function(t){var e=t.mask,i=t.pattern,r=__rest(t,["mask","pattern"]);return __assign(__assign({},r),{mask:A(e)?e:i})};e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(i){var r=__assign(__assign({},e.DEFAULTS),i),a=r.mask,n=r.pattern,o=r.blocks,s=__rest(r,["mask","pattern","blocks"]);var c=Object.assign({},e.GET_DEFAULT_BLOCKS());if(i.min)c.Y.from=i.min.getFullYear();if(i.max)c.Y.to=i.max.getFullYear();if(i.min&&i.max&&c.Y.from===c.Y.to){c.m.from=i.min.getMonth()+1;c.m.to=i.max.getMonth()+1;if(c.m.from===c.m.to){c.d.from=i.min.getDate();c.d.to=i.max.getDate()}}Object.assign(c,this.blocks,o);t.prototype._update.call(this,__assign(__assign({},s),{mask:A(a)?a:n,blocks:c}))};e.prototype.doValidate=function(e){var i=this.date;return t.prototype.doValidate.call(this,e)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))};e.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(e.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(e){t.prototype.typedValue=e},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return e===Date||t.prototype.maskEquals.call(this,e)};e.prototype.optionsIsChanged=function(i){return t.prototype.optionsIsChanged.call(this,e.extractPatternOptions(i))};return e}(Q);tt.GET_DEFAULT_BLOCKS=function(){return{d:{mask:Z,from:1,to:31,maxLength:2},m:{mask:Z,from:1,to:12,maxLength:2},Y:{mask:Z,from:1900,to:9999}}};tt.DEFAULTS=__assign(__assign({},Q.DEFAULTS),{mask:Date,pattern:J,format:function(t,e){if(!t)return"";var i=String(t.getDate()).padStart(2,"0");var r=String(t.getMonth()+1).padStart(2,"0");var a=t.getFullYear();return[i,r,a].join(".")},parse:function(t,e){var i=t.split(".").map(Number),r=i[0],a=i[1],n=i[2];return new Date(n,a-1,r)}});E.MaskedDate=tt;var et=function(t){__extends(e,t);function e(i){var r=t.call(this,__assign(__assign({},e.DEFAULTS),i))||this;r.currentMask=undefined;return r}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=this;t.prototype._update.call(this,e);if("mask"in e){this.exposeMask=undefined;this.compiledMasks=Array.isArray(e.mask)?e.mask.map((function(t){var e=S(t),r=e.expose,a=__rest(e,["expose"]);var n=M(__assign({overwrite:i._overwrite,eager:i._eager,skipInvalid:i._skipInvalid},a));if(r)i.exposeMask=n;return n})):[]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=this._applyDispatch(t,e);if(this.currentMask){i.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e)))}return i};e.prototype._applyDispatch=function(t,e,i){if(t===void 0){t=""}if(e===void 0){e={}}if(i===void 0){i=""}var r=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value;var a=this.rawInputValue;var n=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:a;var o=a.slice(n.length);var s=this.currentMask;var c=new U;var u=s==null?void 0:s.state;this.currentMask=this.doDispatch(t,__assign({},e),i);if(this.currentMask){if(this.currentMask!==s){this.currentMask.reset();if(n){this.currentMask.append(n,{raw:true});c.tailShift=this.currentMask.value.length-r.length}if(o){c.tailShift+=this.currentMask.append(o,{raw:true,tail:true}).tailShift}}else if(u){this.currentMask.state=u}}return c};e.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};e.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};e.prototype.appendTail=function(e){var i=new U;if(e)i.aggregate(this._applyDispatch("",{},e));return i.aggregate(this.currentMask?this.currentMask.appendTail(e):t.prototype.appendTail.call(this,e))};e.prototype.currentMaskFlags=function(t){var e,i;return __assign(__assign({},t),{_beforeTailState:((e=t._beforeTailState)==null?void 0:e.currentMaskRef)===this.currentMask&&((i=t._beforeTailState)==null?void 0:i.currentMask)||t._beforeTailState})};e.prototype.doDispatch=function(t,e,i){if(e===void 0){e={}}if(i===void 0){i=""}return this.dispatch(t,this,e,i)};e.prototype.doValidate=function(e){return t.prototype.doValidate.call(this,e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))};e.prototype.doPrepare=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepare.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepare.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.doPrepareChar=function(e,i){var r;if(i===void 0){i={}}var a=t.prototype.doPrepareChar.call(this,e,i),n=a[0],o=a[1];if(this.currentMask){var s=void 0;r=t.prototype.doPrepareChar.call(this,n,this.currentMaskFlags(i)),n=r[0],s=r[1];o=o.aggregate(s)}return[n,o]};e.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(e.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(e){if(this.exposeMask){this.exposeMask.value=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(e){if(this.exposeMask){this.exposeMask.unmaskedValue=e;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var e=String(t);if(this.currentMask){this.currentMask.typedValue=t;e=this.currentMask.unmaskedValue}this.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});e.prototype.remove=function(t,e){var i=new U;if(this.currentMask){i.aggregate(this.currentMask.remove(t,e)).aggregate(this._applyDispatch())}return i};Object.defineProperty(e.prototype,"state",{get:function(){var e;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state})},set:function(e){var i=e.compiledMasks,r=e.currentMaskRef,a=e.currentMask,n=__rest(e,["compiledMasks","currentMaskRef","currentMask"]);if(i)this.compiledMasks.forEach((function(t,e){return t.state=i[e]}));if(r!=null){this.currentMask=r;this.currentMask.state=a}t.prototype.state=n},enumerable:false,configurable:true});e.prototype.extractInput=function(t,e,i){return this.currentMask?this.currentMask.extractInput(t,e,i):""};e.prototype.extractTail=function(e,i){return this.currentMask?this.currentMask.extractTail(e,i):t.prototype.extractTail.call(this,e,i)};e.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};e.prototype.nearestInputPos=function(e,i){return this.currentMask?this.currentMask.nearestInputPos(e,i):t.prototype.nearestInputPos.call(this,e,i)};Object.defineProperty(e.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});e.prototype.maskEquals=function(e){return Array.isArray(e)?this.compiledMasks.every((function(t,i){if(!e[i])return;var r=e[i],a=r.mask,n=__rest(r,["mask"]);return O(t,n)&&t.maskEquals(a)})):t.prototype.maskEquals.call(this,e)};e.prototype.typedValueEquals=function(t){var e;return Boolean((e=this.currentMask)==null?void 0:e.typedValueEquals(t))};return e}(q);et.DEFAULTS=__assign(__assign({},q.DEFAULTS),{dispatch:function(t,e,i,r){if(!e.compiledMasks.length)return;var a=e.rawInputValue;var n=e.compiledMasks.map((function(n,o){var s=e.currentMask===n;var c=s?n.displayValue.length:n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT);if(n.rawInputValue!==a){n.reset();n.append(a,{raw:true})}else if(!s){n.remove(c)}n.append(t,e.currentMaskFlags(i));n.appendTail(r);return{index:o,weight:n.rawInputValue.length,totalInputPositions:n.totalInputPositions(0,Math.max(c,n.nearestInputPos(n.displayValue.length,F.FORCE_LEFT)))}}));n.sort((function(t,e){return e.weight-t.weight||e.totalInputPositions-t.totalInputPositions}));return e.compiledMasks[n[0].index]}});E.MaskedDynamic=et;var it=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i=e.enum,r=__rest(e,["enum"]);if(i){var a=i.map((function(t){return t.length}));var n=Math.min.apply(Math,a);var o=Math.max.apply(Math,a)-n;r.mask="*".repeat(n);if(o)r.mask+="["+"*".repeat(o)+"]";this.enum=i}t.prototype._update.call(this,r)};e.prototype._appendCharRaw=function(e,i){var r=this;if(i===void 0){i={}}var a=Math.min(this.nearestInputPos(0,F.FORCE_RIGHT),this.value.length);var n=this.enum.filter((function(t){return r.matchValue(t,r.unmaskedValue+e,a)}));if(n.length){if(n.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,e){var a=n[0][e];if(e>=r.value.length||a===t.value)return;t.reset();t._appendChar(a,i)}))}var o=t.prototype._appendCharRaw.call(this,n[0][this.value.length],i);if(n.length===1){n[0].slice(this.unmaskedValue.length).split("").forEach((function(e){return o.aggregate(t.prototype._appendCharRaw.call(r,e))}))}return o}return new U({skip:!this.isComplete})};e.prototype.extractTail=function(t,e){if(t===void 0){t=0}return new Y("",t)};e.prototype.remove=function(e,i){var r=this;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}if(e===i)return new U;var a=Math.min(t.prototype.nearestInputPos.call(this,0,F.FORCE_RIGHT),this.value.length);var n;for(n=e;n>=0;--n){var o=this.enum.filter((function(t){return r.matchValue(t,r.value.slice(a,n),a)}));if(o.length>1)break}var s=t.prototype.remove.call(this,n,i);s.tailShift+=n-e;return s};Object.defineProperty(e.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return e}(Q);it.DEFAULTS=__assign(__assign({},Q.DEFAULTS),{matchValue:function(t,e,i){return t.indexOf(e,i)===i}});E.MaskedEnum=it;var rt=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,__assign(__assign({},e),{validate:e.mask}))};return e}(q);E.MaskedFunction=rt;var at;var nt=function(t){__extends(e,t);function e(i){return t.call(this,__assign(__assign({},e.DEFAULTS),i))||this}e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){t.prototype._update.call(this,e);this._updateRegExps()};e.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var e="\\d*";var i=(this.scale?"("+C(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+e+i);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(C).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(C(this.thousandsSeparator),"g")};e.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};e.prototype._insertThousandsSeparators=function(t){var e=t.split(this.radix);e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return e.join(this.radix)};e.prototype.doPrepareChar=function(e,i){if(i===void 0){i={}}var r=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),i),a=r[0],n=r[1];if(e&&!a)n.skip=true;if(a&&!this.allowPositive&&!this.value&&a!=="-")n.aggregate(this._appendChar("-"));return[a,n]};e.prototype._separatorsCount=function(t,e){if(e===void 0){e=false}var i=0;for(var r=0;r<t;++r){if(this._value.indexOf(this.thousandsSeparator,r)===r){++i;if(e)t+=this.thousandsSeparator.length}}return i};e.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};e.prototype.extractInput=function(e,i,r){var a;if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}a=this._adjustRangeWithSeparators(e,i),e=a[0],i=a[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,e,i,r))};e.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var r=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var a=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);var n=this._value;this._value+=t;var o=this.number;var s=!isNaN(o);var c=false;if(s){var u=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)u=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)u=this.max;if(u!=null){if(this.autofix){this._value=this.format(u,this).replace(e.UNMASKED_RADIX,this.radix);c||(c=n===this._value&&!i.tail)}else{s=false}}s&&(s=Boolean(this._value.match(this._numberRegExp)))}var d;if(!s){this._value=n;d=new U}else{d=new U({inserted:this._value.slice(n.length),rawInserted:c?"":t,skip:c})}this._value=this._insertThousandsSeparators(this._value);var l=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;var h=this._separatorsCountFromSlice(l);d.tailShift+=(h-a)*this.thousandsSeparator.length;return d};e.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var e=t-this.thousandsSeparator.length+1;var i=this.value.indexOf(this.thousandsSeparator,e);if(i<=t)return i}return-1};e.prototype._adjustRangeWithSeparators=function(t,e){var i=this._findSeparatorAround(t);if(i>=0)t=i;var r=this._findSeparatorAround(e);if(r>=0)e=r+this.thousandsSeparator.length;return[t,e]};e.prototype.remove=function(t,e){var i;if(t===void 0){t=0}if(e===void 0){e=this.displayValue.length}i=this._adjustRangeWithSeparators(t,e),t=i[0],e=i[1];var r=this.value.slice(0,t);var a=this.value.slice(e);var n=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+a));var o=this._separatorsCountFromSlice(r);return new U({tailShift:(o-n)*this.thousandsSeparator.length})};e.prototype.nearestInputPos=function(t,e){if(!this.thousandsSeparator)return t;switch(e){case F.NONE:case F.LEFT:case F.FORCE_LEFT:{var i=this._findSeparatorAround(t-1);if(i>=0){var r=i+this.thousandsSeparator.length;if(t<r||this.value.length<=r||e===F.FORCE_LEFT){return i}}break}case F.RIGHT:case F.FORCE_RIGHT:{var a=this._findSeparatorAround(t);if(a>=0){return a+this.thousandsSeparator.length}}}return t};e.prototype.doCommit=function(){if(this.value){var e=this.number;var i=e;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==e)this.unmaskedValue=this.format(i,this);var r=this.value;if(this.normalizeZeros)r=this._normalizeZeros(r);if(this.padFractionalZeros&&this.scale>0)r=this._padFractionalZeros(r);this._value=r}t.prototype.doCommit.call(this)};e.prototype._normalizeZeros=function(t){var e=this._removeThousandsSeparators(t).split(this.radix);e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(function(t,e,i,r){return e+r}));if(t.length&&!/\d$/.test(e[0]))e[0]=e[0]+"0";if(e.length>1){e[1]=e[1].replace(/0*$/,"");if(!e[1].length)e.length=1}return this._insertThousandsSeparators(e.join(this.radix))};e.prototype._padFractionalZeros=function(t){if(!t)return t;var e=t.split(this.radix);if(e.length<2)e.push("");e[1]=e[1].padEnd(this.scale,"0");return e.join(this.radix)};e.prototype.doSkipInvalid=function(i,r,a){if(r===void 0){r={}}var n=this.scale===0&&i!==this.thousandsSeparator&&(i===this.radix||i===e.UNMASKED_RADIX||this.mapToRadix.includes(i));return t.prototype.doSkipInvalid.call(this,i,r,a)&&!n};Object.defineProperty(e.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,e.UNMASKED_RADIX)},set:function(e){t.prototype.unmaskedValue=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(e.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});e.prototype.typedValueEquals=function(i){return(t.prototype.typedValueEquals.call(this,i)||e.EMPTY_VALUES.includes(i)&&e.EMPTY_VALUES.includes(this.typedValue))&&!(i===0&&this.value==="")};return e}(q);at=nt;nt.UNMASKED_RADIX=".";nt.EMPTY_VALUES=__spreadArray(__spreadArray([],q.EMPTY_VALUES,true),[0],false);nt.DEFAULTS=__assign(__assign({},q.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[at.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});E.MaskedNumber=nt;var ot={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function st(t,e,i){if(e===void 0){e=ot.MASKED}if(i===void 0){i=ot.MASKED}var r=M(t);return function(t){return r.runIsolated((function(r){r[e]=t;return r[i]}))}}function ct(t,e,i,r){return st(e,i,r)(t)}E.PIPE_TYPE=ot;E.createPipe=st;E.pipe=ct;var ut=function(t){__extends(e,t);function e(e){return t.call(this,e)||this}Object.defineProperty(e.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});e.prototype.updateOptions=function(e){t.prototype.updateOptions.call(this,e)};e.prototype._update=function(e){var i,r,a;var n=S(e),o=n.repeat,s=__rest(n,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,s);var c=M(this._blockOpts);this.repeat=(i=(r=o!=null?o:c.repeat)!=null?r:this.repeat)!=null?i:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:c},eager:c.eager,overwrite:c.overwrite,skipInvalid:c.skipInvalid,lazy:c.lazy,placeholderChar:c.placeholderChar,displayChar:c.displayChar})};e.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(M(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};e.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var i=new U;for(var r=(o=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?o:Math.max(this._blocks.length-1,0),a=void 0,n=void 0;a=(c=this._blocks[r])!=null?c:n=!n&&this._allocateBlock(r);++r){var o,s,c,u;var d=a._appendChar(t,__assign(__assign({},e),{_beforeTailState:(u=e._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));if(d.skip&&n){this._blocks.pop();this.mask=this.mask.slice(1);break}i.aggregate(d);if(d.consumed)break}return i};e.prototype._trimEmptyTail=function(t,e){var i,r;if(t===void 0){t=0}var a=Math.max(((i=this._mapPosToBlock(t))==null?void 0:i.index)||0,this.repeatFrom,0);var n;if(e!=null)n=(r=this._mapPosToBlock(e))==null?void 0:r.index;if(n==null)n=this._blocks.length-1;var o=0;for(var s=n;a<=s;--s,++o){if(this._blocks[s].unmaskedValue)break}if(o){this._blocks.splice(n-o+1,o);this.mask=this.mask.slice(o)}};e.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};e.prototype.remove=function(e,i){if(e===void 0){e=0}if(i===void 0){i=this.displayValue.length}var r=t.prototype.remove.call(this,e,i);this._trimEmptyTail(e,i);return r};e.prototype.totalInputPositions=function(e,i){if(e===void 0){e=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,e,i)};Object.defineProperty(e.prototype,"state",{get:function(){return t.prototype.state},set:function(e){this._blocks.length=e._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=e},enumerable:false,configurable:true});return e}(Q);E.RepeatBlock=ut;try{globalThis.IMask=E}catch(t){}var dt;function lt(){dt!==null&&dt!==void 0?dt:dt=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");return dt}var ht=function(t){__extends(e,t);function e(){var e=t.apply(this,arguments)||this;e.allowEvents=false;e._inputEventSuppressor=function(t){if(e.allowEvents)return;if(!t.isTrusted)t.stopImmediatePropagation()};return e}Object.defineProperty(e.prototype,"value",{get:function(){return lt().get.call(this.input)},set:function(t){lt().set.call(this.input,t)},enumerable:false,configurable:true});e.prototype.bindEvents=function(e){this.input.addEventListener("input",this._inputEventSuppressor,true);t.prototype.bindEvents.call(this,e)};e.prototype.unbindEvents=function(){this.input.removeEventListener("input",this._inputEventSuppressor,true);t.prototype.unbindEvents.call(this)};return e}(V);function ft(t){return lt().get.call(t)}var pt={exports:{}};var vt=pt.exports;var bt;function kt(){if(bt)return pt.exports;bt=1;(function(t,e){!function(e,i){t.exports=i()}(vt,(function(){return function(){var t;var e={d:function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:true,get:i[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},i={};e.d(i,{default:function(){return U}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},a={classes:"",inline:false,locale:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:true,keyboardNav:true,selectedDates:false,container:"",isMobile:false,visible:false,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:true,selectOtherMonths:true,moveToOtherMonthsOnSelect:true,showOtherYears:true,selectOtherYears:true,moveToOtherYearsOnSelect:true,minDate:"",maxDate:"",disableNavWhenOutOfRange:true,multipleDates:false,multipleDatesSeparator:", ",range:false,dynamicRange:true,buttons:false,monthsField:"monthsShort",showEvent:"focus",autoClose:false,fixedHeight:false,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:false,onlyTimepicker:false,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:false,onChangeViewDate:false,onChangeView:false,onRenderCell:false,onShow:false,onHide:false,onClickDayName:false};function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return"string"==typeof t?e.querySelector(t):t}function o(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.tagName,r=i===void 0?"div":i,a=e.className,n=a===void 0?"":a,o=e.innerHtml,c=o===void 0?"":o,u=e.id,d=u===void 0?"":u,l=e.attrs,h=l===void 0?{}:l,f=document.createElement(r);return n&&(t=f.classList).add.apply(t,n.split(" ")),d&&(f.id=d),c&&(f.innerHTML=c),h&&s(f,h),f}function s(t,e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];void 0!==o&&t.setAttribute(n,o)}return t}function c(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function u(t){var e=t.getHours(),i=d(e),r=i.hours,a=i.dayPeriod;return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:e,fullHours:l(e),hours12:r,dayPeriod:a,fullHours12:l(r),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}}function d(t){return{dayPeriod:t>11?"pm":"am",hours:t%12==0?12:t%12}}function l(t){return t<10?"0"+t:t}function h(t){var e=10*Math.floor(t.getFullYear()/10);return[e,e+9]}function f(){var t=[];for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return i.forEach((function(e){if("object"==typeof e)for(var i in e)e[i]&&t.push(i);else e&&t.push(e)})),t.join(" ")}function p(t,e){var i;var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.days;if(!t||!e)return false;var n=u(t),o=u(e);return(i={},i[r.days]=n.date===o.date&&n.month===o.month&&n.year===o.year,i[r.months]=n.month===o.month&&n.year===o.year,i[r.years]=n.year===o.year,i)[a]}function v(t,e,i){var r=k(t,false).getTime(),a=k(e,false).getTime();return i?r>=a:r>a}function b(t,e){return!v(t,e,true)}function k(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=new Date(t.getTime());return"boolean"!=typeof e||e||function(t){t.setHours(0,0,0,0)}(i),i}function m(t,e,i){t.length?t.forEach((function(t){t.addEventListener(e,i)})):t.addEventListener(e,i)}function g(t,e){return!(!t||t===document||t instanceof DocumentFragment)&&(t.matches(e)?t:g(t.parentNode,e))}function y(t,e,i){return t>i?i:t<e?e:t}function w(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.filter((function(t){return t})).forEach((function(e){for(var i=0,r=Object.entries(e);i<r.length;i++){var a=r[i],n=a[0],o=a[1];if(void 0!==o&&"[object Object]"===o.toString()){var s=void 0!==t[n]?t[n].toString():void 0,c=o.toString(),u=Array.isArray(o)?[]:{};t[n]=t[n]?s!==c?u:t[n]:u,w(t[n],o)}else t[n]=o}})),t}function x(t){var e=t;return t instanceof Date||("string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t)&&(t+="T00:00:00"),e=new Date(t)),isNaN(e.getTime())&&(console.log('Unable to convert value "'.concat(t,'" to Date object')),e=false),e}function A(t){var e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+t+")($|<|"+e+")","g")}function D(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var _=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.type,r=e.date,a=e.dp,n=e.opts,o=e.body;D(this,"focus",(function(){t.$cell.classList.add("-focus-"),t.focused=true})),D(this,"removeFocus",(function(){t.$cell.classList.remove("-focus-"),t.focused=false})),D(this,"select",(function(){t.$cell.classList.add("-selected-"),t.selected=true})),D(this,"removeSelect",(function(){t.$cell.classList.remove("-selected-","-range-from-","-range-to-"),t.selected=false})),D(this,"onChangeSelectedDate",(function(){t.isDisabled||(t._handleSelectedStatus(),t.opts.range&&t._handleRangeStatus())})),D(this,"onChangeFocusDate",(function(e){if(!e)return void(t.focused&&t.removeFocus());var i=p(e,t.date,t.type);i?t.focus():!i&&t.focused&&t.removeFocus(),t.opts.range&&t._handleRangeStatus()})),D(this,"render",(function(){return t.$cell.innerHTML=t._getHtml(),t._handleClasses(),t.$cell})),this.type=i,this.singleType=this.type.slice(0,-1),this.date=r,this.dp=a,this.opts=n,this.body=o,this.customData=false,this.init()}t.prototype.init=function(){var t,e;var i=this.opts.onRenderCell;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),null!==(t=this.customData)&&void 0!==t&&t.disabled?this.dp.disableDate(this.date):false===(null===(e=this.customData)||void 0===e?void 0:e.disabled)&&this.dp.enableDate(this.date)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype.unbindDatepickerEvents=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)};t.prototype._createElement=function(){var t;var e=u(this.date),i=e.year,r=e.month,a=e.fullMonth,n=e.date,s=e.fullDate,c=(null===(t=this.customData)||void 0===t?void 0:t.attrs)||{};this.$cell=o({attrs:__assign({"data-year":i,"data-month":r,"data-date":n,"data-iso-date":"".concat(i,"-").concat(a,"-").concat(s)},c)}),this.$cell.adpCell=this};t.prototype._getClassName=function(){var t;var e=new Date,i=this.opts,a=i.selectOtherMonths,n=i.selectOtherYears,o=this.dp,s=o.minDate,c=o.maxDate,d=o.isDateDisabled,l=u(this.date).day,h=this._isOutOfMinMaxRange(),v=d(this.date),b=f("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":p(e,this.date,this.type),"-min-date-":s&&p(s,this.date,this.type),"-max-date-":c&&p(c,this.date,this.type)}),k="";switch(this.type){case r.days:k=f({"-weekend-":this.dp.isWeekend(l),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!a||h||v});break;case r.months:k=f({"-disabled-":h});break;case r.years:k=f({"-other-decade-":this.isOtherDecade,"-disabled-":h||this.isOtherDecade&&!n})}return f(b,k,null===(t=this.customData)||void 0===t?void 0:t.classes).split(" ")};t.prototype._getHtml=function(){var t;var e=u(this.date),i=e.year,a=e.month,n=e.date,o=this.opts,s=o.showOtherMonths,c=o.showOtherYears;if(null!==(t=this.customData)&&void 0!==t&&t.html)return this.customData.html;switch(this.type){case r.days:return!s&&this.isOtherMonth?"":n;case r.months:return this.dp.locale[this.opts.monthsField][a];case r.years:return!c&&this.isOtherDecade?"":i}};t.prototype._isOutOfMinMaxRange=function(){var t=this.dp,e=t.minDate,i=t.maxDate,a=this,n=a.type,o=a.date,s=u(o),c=s.month,d=s.year,l=s.date,h=n===r.days,f=n===r.years,p=!!e&&new Date(d,f?e.getMonth():c,h?l:e.getDate()),k=!!i&&new Date(d,f?i.getMonth():c,h?l:i.getDate());return e&&i?b(p,e)||v(k,i):e?b(p,e):i?v(k,i):void 0};t.prototype.destroy=function(){this.unbindDatepickerEvents()};t.prototype._handleRangeStatus=function(){var t;var e=this.dp,i=e.selectedDates,r=e.focusDate,a=e.rangeDateTo,n=e.rangeDateFrom,o=i.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!o)return;var s=n,c=a;if(1===o&&r){var u=v(r,i[0]);s=u?i[0]:r,c=u?r:i[0]}var d=f({"-in-range-":s&&c&&(l=this.date,h=s,k=c,v(l,h)&&b(l,k)),"-range-from-":s&&p(this.date,s,this.type),"-range-to-":c&&p(this.date,c,this.type)});var l,h,k;d&&(t=this.$cell.classList).add.apply(t,d.split(" "))};t.prototype._handleSelectedStatus=function(){var t=this.dp._checkIfDateIsSelected(this.date,this.type);t?this.select():!t&&this.selected&&this.removeSelect()};t.prototype._handleInitialFocusStatus=function(){p(this.dp.focusDate,this.date,this.type)&&this.focus()};t.prototype._handleClasses=function(){var t;this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),(t=this.$cell.classList).add.apply(t,this._getClassName())};Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.$cell.matches(".-disabled-")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherMonth",{get:function(){return this.dp.isOtherMonth(this.date)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOtherDecade",{get:function(){return this.dp.isOtherDecade(this.date)},enumerable:false,configurable:true});return t}();function F(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var j=(t={},t[r.days]='<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),t[r.months]='<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),t[r.years]='<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>'),t);var C=".air-datepicker-cell";var O=function(){function t(t){var e=this;var i=t.dp,a=t.type,n=t.opts;F(this,"handleClick",(function(t){var i=t.target.closest(C).adpCell;if(i.isDisabled)return;if(!e.dp.isMinViewReached)return void e.dp.down();var r=e.dp._checkIfDateIsSelected(i.date,i.type);r?e.dp._handleAlreadySelectedDates(r,i.date):e.dp.selectDate(i.date)})),F(this,"handleDayNameClick",(function(t){var i=t.target.getAttribute("data-day-index");e.opts.onClickDayName({dayIndex:Number(i),datepicker:e.dp})})),F(this,"onChangeCurrentView",(function(t){t!==e.type?e.hide():(e.show(),e.render())})),F(this,"onMouseOverCell",(function(t){var i=g(t.target,C);e.dp.setFocusDate(!!i&&i.adpCell.date)})),F(this,"onMouseOutCell",(function(){e.dp.setFocusDate(false)})),F(this,"onClickBody",(function(t){var i=e.opts.onClickDayName,r=t.target;r.closest(C)&&e.handleClick(t),i&&r.closest(".air-datepicker-body--day-name")&&e.handleDayNameClick(t)})),F(this,"onMouseDown",(function(t){e.pressed=true;var i=g(t.target,C),r=i&&i.adpCell;p(r.date,e.dp.rangeDateFrom)&&(e.rangeFromFocused=true),p(r.date,e.dp.rangeDateTo)&&(e.rangeToFocused=true)})),F(this,"onMouseMove",(function(t){if(!e.pressed||!e.dp.isMinViewReached)return;t.preventDefault();var i=g(t.target,C),r=i&&i.adpCell,a=e.dp,n=a.selectedDates,o=a.rangeDateTo,s=a.rangeDateFrom;if(!r||r.isDisabled)return;var c=r.date;if(2===n.length){if(e.rangeFromFocused&&!v(c,o)){var d=u(s),l=d.hours,h=d.minutes;c.setHours(l),c.setMinutes(h),e.dp.rangeDateFrom=c,e.dp.replaceDate(s,c)}if(e.rangeToFocused&&!b(c,s)){var f=u(o),p=f.hours,k=f.minutes;c.setHours(p),c.setMinutes(k),e.dp.rangeDateTo=c,e.dp.replaceDate(o,c)}}})),F(this,"onMouseUp",(function(){e.pressed=false,e.rangeFromFocused=false,e.rangeToFocused=false})),F(this,"onChangeViewDate",(function(t,i){if(!e.isVisible)return;var a=h(t),n=h(i);switch(e.dp.currentView){case r.days:if(p(t,i,r.months))return;break;case r.months:if(p(t,i,r.years))return;break;case r.years:if(a[0]===n[0]&&a[1]===n[1])return}e.render()})),F(this,"render",(function(){e.destroyCells(),e._generateCells(),e.cells.forEach((function(t){e.$cells.appendChild(t.render())}))})),this.dp=i,this.type=a,this.opts=n,this.cells=[],this.$el="",this.pressed=false,this.isVisible=true,this.init()}t.prototype.init=function(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._bindEvents=function(){var t=this.opts,e=t.range,i=t.dynamicRange;m(this.$el,"mouseover",this.onMouseOverCell),m(this.$el,"mouseout",this.onMouseOutCell),m(this.$el,"click",this.onClickBody),e&&i&&(m(this.$el,"mousedown",this.onMouseDown),m(this.$el,"mousemove",this.onMouseMove),m(window.document,"mouseup",this.onMouseUp))};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)};t.prototype._buildBaseHtml=function(){this.$el=o({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:j[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)};t.prototype._getDayNamesHtml=function(){var t;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dp.locale.firstDay,i="",a=this.dp.isWeekend,n=this.opts.onClickDayName,o=e,s=0;for(;s<7;){var c=o%7;i+='<div class="'.concat(f("air-datepicker-body--day-name",(t={},t[r.cssClassWeekend]=a(c),t["-clickable-"]=!!n,t)),"\" data-day-index='").concat(c,"'>").concat(this.dp.locale.daysMin[c],"</div>"),s++,o++}return i};t.prototype.renderDayNames=function(){this.$names.innerHTML=this._getDayNamesHtml()};t.prototype._generateCell=function(t){var e=this,i=e.type,r=e.dp,a=e.opts;return new _({type:i,dp:r,opts:a,date:t,body:this})};t.prototype._generateCells=function(){var e=this;t.getDatesFunction(this.type)(this.dp,(function(t){e.cells.push(e._generateCell(t))}))};t.prototype.show=function(){this.isVisible=true,this.$el.classList.remove("-hidden-")};t.prototype.hide=function(){this.isVisible=false,this.$el.classList.add("-hidden-")};t.prototype.destroyCells=function(){this.cells.forEach((function(t){return t.destroy()})),this.cells=[],this.$cells.innerHTML=""};t.prototype.destroy=function(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)};t.getDaysDates=function(t,e){var i=t.viewDate,r=t.opts.fixedHeight,a=t.locale.firstDay,n=c(i),o=u(i),s=o.year,d=o.month,l=new Date(s,d,1),h=new Date(s,d,n),f=l.getDay()-a,p=6-h.getDay()+a;f=f<0?f+7:f,p=p>6?p-7:p;var v=function(t,e){var i=u(t),r=i.year,a=i.month,n=i.date;return new Date(r,a,n-e)}(l,f),b=n+f+p,k=v.getDate(),m=u(v),g=m.year,y=m.month,w=0;r&&(b=42);var x=[];for(;w<b;){var A=new Date(g,y,k+w);e&&e(A),x.push(A),w++}return x};t.getMonthsDates=function(t,e){var i=t.parsedViewDate.year,r=0,a=[];for(;r<12;){var n=new Date(i,r);a.push(n),e&&e(n),r++}return a};t.getYearsDates=function(t,e){var i=h(t.viewDate),r=i[0]-1,a=i[1]+1,n=r,o=[];for(;n<=a;){var s=new Date(n,0);o.push(s),e&&e(s),n++}return o};t.getDatesFunction=function(){var e;var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return(e={},e[r.days]=t.getDaysDates,e[r.months]=t.getMonthsDates,e[r.years]=t.getYearsDates,e)[i]};return t}();function B(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var E=function(){function t(t){var e=this;var i=t.dp,r=t.opts;B(this,"onClickNav",(function(t){var i=g(t.target,".air-datepicker-nav--action");if(!i)return;var r=i.dataset.action;e.dp[r]()})),B(this,"onChangeViewDate",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),B(this,"onChangeCurrentView",(function(){e.render(),e._resetNavStatus(),e.handleNavStatus()})),B(this,"onClickNavTitle",(function(){e.dp.isFinalView||e.dp.up()})),B(this,"update",(function(){var t=e.opts,i=t.prevHtml,r=t.nextHtml;e.$prev.innerHTML=i,e.$next.innerHTML=r,e._resetNavStatus(),e.render(),e.handleNavStatus()})),B(this,"renderDelay",(function(){setTimeout(e.render)})),B(this,"render",(function(){e.$title.innerHTML=e._getTitle(),function(t,e){for(var i in e)e[i]?t.classList.add(i):t.classList.remove(i)}(e.$title,{"-disabled-":e.dp.isFinalView})})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()};t.prototype._defineDOM=function(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)};t.prototype._bindEvents=function(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)};t.prototype._bindDatepickerEvents=function(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))};t.prototype.destroy=function(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))};t.prototype._createElement=function(){this.$el=o({tagName:"nav",className:"air-datepicker-nav"})};t.prototype._getTitle=function(){var t=this,e=t.dp,i=t.opts,r=i.navTitles[e.currentView];return"function"==typeof r?r(e):e.formatDate(e.viewDate,r)};t.prototype.handleNavStatus=function(){var t=this.opts.disableNavWhenOutOfRange,e=this.dp,i=e.minDate,a=e.maxDate;if(!i&&!a||!t)return;var n=this.dp.parsedViewDate,o=n.year,s=n.month,c=!!i&&u(i),d=!!a&&u(a);switch(this.dp.currentView){case r.days:i&&c.month>=s&&c.year>=o&&this._disableNav("prev"),a&&d.month<=s&&d.year<=o&&this._disableNav("next");break;case r.months:i&&c.year>=o&&this._disableNav("prev"),a&&d.year<=o&&this._disableNav("next");break;case r.years:{var l=h(this.dp.viewDate);i&&c.year>=l[0]&&this._disableNav("prev"),a&&d.year<=l[1]&&this._disableNav("next");break}}};t.prototype._disableNav=function(t){n('[data-action="'+t+'"]',this.$el).classList.add("-disabled-")};t.prototype._resetNavStatus=function(){!function(t){var e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];t.length?t.forEach((function(t){var e;(e=t.classList).remove.apply(e,r)})):(e=t.classList).remove.apply(e,r)}(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")};t.prototype._buildBaseHtml=function(){var t=this.opts,e=t.prevHtml,i=t.nextHtml;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(e,'</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">').concat(i,"</div>")};Object.defineProperty(t.prototype,"isNavIsFunction",{get:function(){var t=this.opts.navTitles;return Object.keys(t).find((function(e){return"function"==typeof t[e]}))},enumerable:false,configurable:true});return t}();var z={today:{content:function(t){return t.locale.today},onClick:function(t){return t.setViewDate(new Date)}},clear:{content:function(t){return t.locale.clear},onClick:function(t){return t.clear()}}};var S=function(){function t(t){var e=t.dp,i=t.opts;this.dp=e,this.opts=i,this.init()}t.prototype.init=function(){this.createElement(),this.render()};t.prototype.createElement=function(){this.$el=o({className:"air-datepicker-buttons"})};t.prototype.destroy=function(){this.$el.parentNode.removeChild(this.$el)};t.prototype.clearHtml=function(){return this.$el.innerHTML="",this};t.prototype.generateButtons=function(){var t=this;var e=this.opts.buttons;Array.isArray(e)||(e=[e]),e.forEach((function(e){var i=e;"string"==typeof e&&z[e]&&(i=z[e]);var r=t.createButton(i);i.onClick&&t.attachEventToButton(r,i.onClick),t.$el.appendChild(r)}))};t.prototype.attachEventToButton=function(t,e){var i=this;t.addEventListener("click",(function(){e(i.dp)}))};t.prototype.createButton=function(t){var e=t.content,i=t.className,r=t.tagName,a=r===void 0?"button":r,n=t.attrs,s=n===void 0?{}:n;return o({tagName:a,innerHtml:"<span tabindex='-1'>".concat("function"==typeof e?e(this.dp):e,"</span>"),className:f("air-datepicker-button",i),attrs:s})};t.prototype.render=function(){this.generateButtons()};return t}();function M(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var T=function(){function t(){var t=this;var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.opts,a=e.dp;M(this,"toggleTimepickerIsActive",(function(e){t.dp.timepickerIsActive=e})),M(this,"onChangeSelectedDate",(function(e){var i=e.date,r=e.updateTime,a=r===void 0?false:r;i&&(t.setMinMaxTime(i),t.setCurrentTime(!!a&&i),t.addTimeToDate(i))})),M(this,"onChangeLastSelectedDate",(function(e){e&&(t.setTime(e),t.render())})),M(this,"onChangeInputRange",(function(e){var i=e.target;t[i.getAttribute("name")]=i.value,t.updateText(),t.dp.trigger(r.eventChangeTime,{hours:t.hours,minutes:t.minutes})})),M(this,"onMouseEnterLeave",(function(e){var i=e.target.getAttribute("name"),r=t.$minutesText;"hours"===i&&(r=t.$hoursText),r.classList.toggle("-focus-")})),M(this,"onFocus",(function(){t.toggleTimepickerIsActive(true)})),M(this,"onBlur",(function(){t.toggleTimepickerIsActive(false)})),this.opts=i,this.dp=a;var n=this.dp.locale.timeFormat;n&&(n.match(A("h"))||n.match(A("hh")))&&(this.ampm=true),this.init()}t.prototype.init=function(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()};t.prototype.bindDatepickerEvents=function(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)};t.prototype.bindDOMEvents=function(){var t="input";navigator.userAgent.match(/trident/gi)&&(t="change"),m(this.$ranges,t,this.onChangeInputRange),m(this.$ranges,"mouseenter",this.onMouseEnterLeave),m(this.$ranges,"mouseleave",this.onMouseEnterLeave),m(this.$ranges,"focus",this.onFocus),m(this.$ranges,"mousedown",this.onFocus),m(this.$ranges,"blur",this.onBlur)};t.prototype.createElement=function(){this.$el=o({className:f("air-datepicker-time",{"-am-pm-":this.dp.ampm})})};t.prototype.destroy=function(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)};t.prototype.buildHtml=function(){var t=this,e=t.ampm,i=t.hours,r=t.displayHours,a=t.minutes,n=t.minHours,o=t.minMinutes,s=t.maxHours,c=t.maxMinutes,u=t.dayPeriod,d=t.opts,h=d.hoursStep,f=d.minutesStep;this.$el.innerHTML='<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">'.concat(l(r),'</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">').concat(l(a),"</span> ")+(e?"<span class='air-datepicker-time--current-ampm'>".concat(u,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(i,'" min="').concat(n,'" max="').concat(s,'" step="').concat(h,'"/> </div> <div class="air-datepicker-time--row">')+' <input type="range" name="minutes" value="'.concat(a,'" min="').concat(o,'" max="').concat(c,'" step="').concat(f,'"/> </div></div>')};t.prototype.defineDOM=function(){var t=this;var e=function(e){return n(e,t.$el)};this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")};t.prototype.setTime=function(t){this.setMinMaxTime(t),this.setCurrentTime(t)};t.prototype.addTimeToDate=function(t){t&&(t.setHours(this.hours),t.setMinutes(this.minutes))};t.prototype.setMinMaxTime=function(t){if(this.setMinMaxTimeFromOptions(),t){var e=this.dp,i=e.minDate,r=e.maxDate;i&&p(t,i)&&this.setMinTimeFromMinDate(i),r&&p(t,r)&&this.setMaxTimeFromMaxDate(r)}};t.prototype.setCurrentTime=function(t){var e=t?u(t):this,i=e.hours,r=e.minutes;this.hours=y(i,this.minHours,this.maxHours),this.minutes=y(r,this.minMinutes,this.maxMinutes)};t.prototype.setMinMaxTimeFromOptions=function(){var t=this.opts,e=t.minHours,i=t.minMinutes,r=t.maxHours,a=t.maxMinutes;this.minHours=y(e,0,23),this.minMinutes=y(i,0,59),this.maxHours=y(r,0,23),this.maxMinutes=y(a,0,59)};t.prototype.setMinTimeFromMinDate=function(t){var e=this.dp.lastSelectedDate;this.minHours=t.getHours(),e&&e.getHours()>t.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=t.getMinutes()};t.prototype.setMaxTimeFromMaxDate=function(t){var e=this.dp.lastSelectedDate;this.maxHours=t.getHours(),e&&e.getHours()<t.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=t.getMinutes()};t.prototype.updateSliders=function(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes};t.prototype.updateText=function(){this.$hoursText.innerHTML=l(this.displayHours),this.$minutesText.innerHTML=l(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)};Object.defineProperty(t.prototype,"hours",{get:function(){return this._hours},set:function(t){this._hours=t;var e=d(t),i=e.hours,r=e.dayPeriod;this.displayHours=this.ampm?i:t,this.dayPeriod=r},enumerable:false,configurable:true});t.prototype.render=function(){this.updateSliders(),this.updateText()};return t}();function N(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var H=function(){function t(t){var e=this;var i=t.dp,r=t.opts;N(this,"pressedKeys",new Set),N(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],function(t){return t.month++}],[[["Control","ArrowLeft"],["Control","ArrowDown"]],function(t){return t.month--}],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],function(t){return t.year++}],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],function(t){return t.year--}],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],function(t){return t.year+=10}],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],function(t){return t.year-=10}],[["Control","Shift","ArrowUp"],function(t,e){return e.up()}]])),N(this,"handleHotKey",(function(t){var i=e.hotKeys.get(t),r=u(e.getInitialFocusDate());i(r,e.dp);var a=r.year,n=r.month,o=r.date,s=c(new Date(a,n));s<o&&(o=s);var d=e.dp.getClampedDate(new Date(a,n,o));e.dp.setFocusDate(d,{viewDateTransition:true})})),N(this,"isHotKeyPressed",(function(){var t=false,i=e.pressedKeys.size,r=function(t){return e.pressedKeys.has(t)};var a=function(e){if(t)return"break";if(Array.isArray(e[0]))e.forEach((function(a){t||i!==a.length||(t=a.every(r)&&e)}));else{if(i!==e.length)return"continue";t=e.every(r)&&e}};for(var n=0,o=e.hotKeys;n<o.length;n++){var s=o[n][0];var c=a(s);if(c==="break")break}return t})),N(this,"isArrow",(function(t){return t>=37&&t<=40})),N(this,"onKeyDown",(function(t){if(!e.dp.visible&&!e.dp.treatAsInline)return;var i=t.key,r=t.which,a=e,n=a.dp,o=a.dp.focusDate,s=a.opts;e.registerKey(i);var c=e.isHotKeyPressed();if(c)return t.preventDefault(),void e.handleHotKey(c);if(e.isArrow(r))return t.preventDefault(),void e.focusNextCell(i);if("Enter"===i){if(n.currentView!==s.minView)return void n.down();if(o){var u=n._checkIfDateIsSelected(o);return void(u?n._handleAlreadySelectedDates(u,o):n.selectDate(o))}}"Escape"===i&&e.dp.hide()})),N(this,"onKeyUp",(function(t){e.removeKey(t.key)})),this.dp=i,this.opts=r,this.init()}t.prototype.init=function(){this.bindKeyboardEvents()};t.prototype.bindKeyboardEvents=function(){var t=this.dp.$el;t.addEventListener("keydown",this.onKeyDown),t.addEventListener("keyup",this.onKeyUp)};t.prototype.destroy=function(){var t=this.dp.$el;t.removeEventListener("keydown",this.onKeyDown),t.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null};t.prototype.getInitialFocusDate=function(){var t=this.dp,e=t.focusDate,i=t.currentView,a=t.selectedDates,n=t.parsedViewDate,o=n.year,s=n.month,c=e||a[a.length-1];if(!c)switch(i){case r.days:c=new Date(o,s,(new Date).getDate());break;case r.months:c=new Date(o,s,1);break;case r.years:c=new Date(o,0,1)}return c};t.prototype.focusNextCell=function(t){var e=this.getInitialFocusDate(),i=this.dp.currentView,a=r.days,n=r.months,o=r.years,s=u(e),c=s.year,d=s.month,l=s.date;switch(t){case"ArrowLeft":i===a&&(l-=1),i===n&&(d-=1),i===o&&(c-=1);break;case"ArrowUp":i===a&&(l-=7),i===n&&(d-=3),i===o&&(c-=4);break;case"ArrowRight":i===a&&(l+=1),i===n&&(d+=1),i===o&&(c+=1);break;case"ArrowDown":i===a&&(l+=7),i===n&&(d+=3),i===o&&(c+=4)}var h=this.dp.getClampedDate(new Date(c,d,l));this.dp.setFocusDate(h,{viewDateTransition:true})};t.prototype.registerKey=function(t){this.pressedKeys.add(t)};t.prototype.removeKey=function(t){this.pressedKeys.delete(t)};return t}();var I={on:function(t,e){this.__events||(this.__events={}),this.__events[t]?this.__events[t].push(e):this.__events[t]=[e]},off:function(t,e){this.__events&&this.__events[t]&&(this.__events[t]=this.__events[t].filter((function(t){return t!==e})))},removeAllEvents:function(){this.__events={}},trigger:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];this.__events&&this.__events[t]&&this.__events[t].forEach((function(t){t.apply(void 0,i)}))}};function V(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true}):t[e]=i,t}var R="",P="",L=false;var U=function(){function t(t,e){var i=this;var s=this;if(V(this,"viewIndexes",[r.days,r.months,r.years]),V(this,"next",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a+1,1));break;case r.months:i.setViewDate(new Date(e+1,a,1));break;case r.years:i.setViewDate(new Date(e+10,0,1))}})),V(this,"prev",(function(){var t=i.parsedViewDate,e=t.year,a=t.month;switch(i.currentView){case r.days:i.setViewDate(new Date(e,a-1,1));break;case r.months:i.setViewDate(new Date(e-1,a,1));break;case r.years:i.setViewDate(new Date(e-10,0,1))}})),V(this,"_finishHide",(function(){i.hideAnimation=false,i._destroyComponents(),i.$container.removeChild(i.$datepicker)})),V(this,"setPosition",(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("function"==typeof(t=t||s.opts.position))return void(s.customHide=t({$datepicker:s.$datepicker,$target:s.$el,$pointer:s.$pointer,isViewChange:e,done:s._finishHide}));var i,r,a=s.opts.isMobile,n=s.$el.getBoundingClientRect(),o=s.$el.getBoundingClientRect(),c=s.$datepicker.offsetParent,u=s.$el.offsetParent,d=s.$datepicker.getBoundingClientRect(),l=t.split(" "),h=window.scrollY,f=window.scrollX,p=s.opts.offset,v=l[0],b=l[1];if(a)s.$datepicker.style.cssText="left: 50%; top: 50%";else{if(c===u&&c!==document.body&&(o={top:s.$el.offsetTop,left:s.$el.offsetLeft,width:n.width,height:s.$el.offsetHeight},h=0,f=0),c!==u&&c!==document.body){var k=c.getBoundingClientRect();o={top:n.top-k.top,left:n.left-k.left,width:n.width,height:n.height},h=0,f=0}switch(v){case"top":i=o.top-d.height-p;break;case"right":r=o.left+o.width+p;break;case"bottom":i=o.top+o.height+p;break;case"left":r=o.left-d.width-p}switch(b){case"top":i=o.top;break;case"right":r=o.left+o.width-d.width;break;case"bottom":i=o.top+o.height-d.height;break;case"left":r=o.left;break;case"center":/left|right/.test(v)?i=o.top+o.height/2-d.height/2:r=o.left+o.width/2-d.width/2}s.$datepicker.style.cssText="left: ".concat(r+f,"px; top: ").concat(i+h,"px")}})),V(this,"_setInputValue",(function(){var t=i,e=t.opts,r=t.$altField,a=t.locale.dateFormat,n=e.altFieldDateFormat,o=e.altField;o&&r&&(r.value=i._getInputValue(n)),i.$el.value=i._getInputValue(a),i.$el.dispatchEvent(new Event("change"))})),V(this,"_getInputValue",(function(t){var e=i,r=e.selectedDates,a=e.opts,n=a.multipleDates,o=a.multipleDatesSeparator;if(!r.length)return"";var s="function"==typeof t,c=s?t(n?r:r[0]):r.map((function(e){return i.formatDate(e,t)}));return c=s?c:c.join(o),c})),V(this,"_checkIfDateIsSelected",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.days,i=false;return s.selectedDates.some((function(r){var a=p(t,r,e);return i=a&&r,a})),i})),V(this,"_scheduleCallAfterTransition",(function(t){i._cancelScheduledCall(),t&&t(false),i._onTransitionEnd=function(){t&&t(true)},i.$datepicker.addEventListener("transitionend",i._onTransitionEnd,{once:true})})),V(this,"_cancelScheduledCall",(function(){i.$datepicker.removeEventListener("transitionend",i._onTransitionEnd)})),V(this,"setViewDate",(function(t){if(!((t=x(t))instanceof Date))return;if(p(t,i.viewDate))return;var e=i.viewDate;i.viewDate=t;var a=i.opts.onChangeViewDate;if(a){var n=i.parsedViewDate,o=n.month,s=n.year;a({month:o,year:s,decade:i.curDecade})}i.trigger(r.eventChangeViewDate,t,e)})),V(this,"setFocusDate",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(!t||(t=x(t))instanceof Date)&&(s.focusDate=t,s.trigger(r.eventChangeFocusDate,t,e))})),V(this,"setCurrentView",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.viewIndexes.includes(t)){if(s.currentView=t,s.elIsInput&&s.visible&&s.setPosition(void 0,true),s.trigger(r.eventChangeCurrentView,t),!s.views[t]){var i=s.views[t]=new O({dp:s,opts:s.opts,type:t});s.shouldUpdateDOM&&s.$content.appendChild(i.$el)}s.opts.onChangeView&&!e.silent&&s.opts.onChangeView(t)}})),V(this,"_updateLastSelectedDate",(function(t){i.lastSelectedDate=t,i.trigger(r.eventChangeLastSelectedDate,t)})),V(this,"destroy",(function(){if(i.isDestroyed)return;var t=i.opts,e=t.showEvent,r=t.isMobile,a=i.$datepicker.parentNode;a&&a.removeChild(i.$datepicker),i.$el.removeEventListener(e,i._onFocus),i.$el.removeEventListener("blur",i._onBlur),window.removeEventListener("resize",i._onResize),r&&i._removeMobileAttributes(),i.keyboardNav&&i.keyboardNav.destroy(),i.views=null,i.nav=null,i.$datepicker=null,i.opts={},i.$customContainer=null,i.viewDate=null,i.focusDate=null,i.selectedDates=[],i.rangeDateFrom=null,i.rangeDateTo=null,i.isDestroyed=true})),V(this,"update",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=w({},s.opts),a=e.silent;w(s.opts,t);var n=s.opts,o=n.timepicker,c=n.buttons,u=n.range,d=n.selectedDates,l=n.isMobile,h=s.visible||s.treatAsInline;s._createMinMaxDates(),s._limitViewDateByMaxMinDates(),s._handleLocale(),d&&(s.selectedDates=[],s.selectDate(d,{silent:a})),t.view&&s.setCurrentView(t.view,{silent:a}),s._setInputValue(),i.range&&!u?(s.rangeDateTo=false,s.rangeDateFrom=false):!i.range&&u&&s.selectedDates.length&&(s.rangeDateFrom=s.selectedDates[0],s.rangeDateTo=s.selectedDates[1]),i.timepicker&&!o?(h&&s.timepicker.destroy(),s.timepicker=false,s.$timepicker.parentNode.removeChild(s.$timepicker)):!i.timepicker&&o&&s._addTimepicker(),!i.buttons&&c?s._addButtons():i.buttons&&!c?(s.buttons.destroy(),s.$buttons.parentNode.removeChild(s.$buttons)):h&&i.buttons&&c&&s.buttons.clearHtml().render(),!i.isMobile&&l?(s.treatAsInline||P||s._createMobileOverlay(),s._addMobileAttributes(),s.visible&&s._showMobileOverlay()):i.isMobile&&!l&&(s._removeMobileAttributes(),s.visible&&(P.classList.remove("-active-"),"function"!=typeof s.opts.position&&s.setPosition())),h&&(s.nav.update(),s.views[s.currentView].render(),s.currentView===r.days&&s.views[s.currentView].renderDayNames())})),V(this,"disableDate",(function(t,e){(Array.isArray(t)?t:[t]).forEach((function(t){var r=x(t);if(!r)return;var a=e?"delete":"add";i.disabledDates[a](i.formatDate(r,"yyyy-MM-dd"));var n=i.getCell(r,i.currentViewSingular);n&&n.adpCell.render()}),[])})),V(this,"enableDate",(function(t){i.disableDate(t,true)})),V(this,"isDateDisabled",(function(t){var e=x(t);return i.disabledDates.has(i.formatDate(e,"yyyy-MM-dd"))})),V(this,"isOtherMonth",(function(t){var e=u(t).month;return e!==i.parsedViewDate.month})),V(this,"isOtherYear",(function(t){var e=u(t).year;return e!==i.parsedViewDate.year})),V(this,"isOtherDecade",(function(t){var e=u(t).year,r=h(i.viewDate),a=r[0],n=r[1];return e<a||e>n})),V(this,"_onChangeSelectedDate",(function(t){var e=t.silent;setTimeout((function(){i._setInputValue(),i.opts.onSelect&&!e&&i._triggerOnSelect()}))})),V(this,"_onChangeFocusedDate",(function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).viewDateTransition;if(!t)return;var i=false;e&&(i=s.isOtherMonth(t)||s.isOtherYear(t)||s.isOtherDecade(t)),i&&s.setViewDate(t),s.opts.onFocus&&s.opts.onFocus({datepicker:s,date:t})})),V(this,"_onChangeTime",(function(t){var e=t.hours,r=t.minutes,a=new Date,n=i,o=n.lastSelectedDate,s=n.opts.onSelect,c=o;o||(c=a);var u=i.getCell(c,i.currentViewSingular),d=u&&u.adpCell;d&&d.isDisabled||(c.setHours(e),c.setMinutes(r),o?(i._setInputValue(),s&&i._triggerOnSelect()):i.selectDate(c))})),V(this,"_onFocus",(function(t){i.visible||i.show()})),V(this,"_onBlur",(function(t){i.inFocus||!i.visible||i.opts.isMobile||i.hide()})),V(this,"_onMouseDown",(function(t){i.inFocus=true})),V(this,"_onMouseUp",(function(t){i.inFocus=false,i.$el.focus()})),V(this,"_onResize",(function(){i.visible&&"function"!=typeof i.opts.position&&i.setPosition()})),V(this,"_onClickOverlay",(function(){i.visible&&i.hide()})),V(this,"getViewDates",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.days;return O.getDatesFunction(t)(s)})),V(this,"isWeekend",(function(t){return i.opts.weekends.includes(t)})),V(this,"getClampedDate",(function(t){var e=i,r=e.minDate,a=e.maxDate,n=t;return a&&v(t,a)?n=a:r&&b(t,r)&&(n=r),n})),this.$el=n(t),!this.$el)return;this.$datepicker=o({className:"air-datepicker"}),this.opts=w({},a,e),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||false);var c=this.opts,d=c.view,l=c.startDate;l||(this.opts.startDate=new Date),"INPUT"===this.$el.nodeName&&(this.elIsInput=true),this.inited=false,this.visible=false,this.viewDate=x(this.opts.startDate),this.focusDate=false,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=false,this.currentView=d,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=false,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=false,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}t.buildGlobalContainer=function(t){L=true,R=o({className:t,id:t}),n("body").appendChild(R)};t.prototype.init=function(){var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,o=a.inline,s=a.isMobile,c=a.selectedDates,u=a.keyboardNav,d=a.onlyTimepicker,l=n("body");(!L||L&&R&&!l.contains(R))&&!o&&this.elIsInput&&!this.$customContainer&&t.buildGlobalContainer(t.defaultGlobalContainerId),!s||P||r||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(o||this._bindEvents(),u&&!d&&(this.keyboardNav=new H({dp:this,opts:i}))),c&&this.selectDate(c,{silent:true}),this.opts.visible&&!r&&this.show(),s&&!r&&this.$el.setAttribute("readonly",true),r&&this._createComponents()};t.prototype._createMobileOverlay=function(){P=o({className:"air-datepicker-overlay"}),R.appendChild(P)};t.prototype._createComponents=function(){var t;var e=this,i=e.opts,r=e.treatAsInline,a=e.opts,n=a.inline,o=a.buttons,s=a.timepicker,c=a.position,u=a.classes,d=a.onlyTimepicker,l=a.isMobile;this._buildBaseHtml(),this.elIsInput&&(n||this._setPositionClasses(c)),!n&&this.elIsInput||this.$datepicker.classList.add("-inline-"),u&&(t=this.$datepicker.classList).add.apply(t,u.split(" ")),d&&this.$datepicker.classList.add("-only-timepicker-"),l&&!r&&this._addMobileAttributes(),this.views[this.currentView]=new O({dp:this,type:this.currentView,opts:i}),this.nav=new E({dp:this,opts:i}),s&&this._addTimepicker(),o&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)};t.prototype._destroyComponents=function(){for(var t in this.views)this.views[t].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()};t.prototype._addMobileAttributes=function(){P.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",true)};t.prototype._removeMobileAttributes=function(){P.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||""===this.initialReadonly||this.$el.removeAttribute("readonly")};t.prototype._createMinMaxDates=function(){var t=this.opts,e=t.minDate,i=t.maxDate;this.minDate=!!e&&x(e),this.maxDate=!!i&&x(i)};t.prototype._addTimepicker=function(){this.$timepicker=o({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new T({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)};t.prototype._addButtons=function(){this.$buttons=o({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new S({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)};t.prototype._bindSubEvents=function(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)};t.prototype._buildBaseHtml=function(){var t=this.opts.inline;var e,i;this.elIsInput?t?(e=this.$datepicker,(i=this.$el).parentNode.insertBefore(e,i.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)};t.prototype._handleLocale=function(){var t=this.opts,e=t.locale,i=t.dateFormat,r=t.firstDay,a=t.timepicker,n=t.onlyTimepicker,o=t.timeFormat,s=t.dateTimeSeparator;var c;this.locale=(c=e,JSON.parse(JSON.stringify(c))),i&&(this.locale.dateFormat=i),void 0!==o&&""!==o&&(this.locale.timeFormat=o);var u=this.locale.timeFormat;if(""!==r&&(this.locale.firstDay=r),a&&"function"!=typeof i){var d=u?s:"";this.locale.dateFormat=[this.locale.dateFormat,u||""].join(d)}n&&"function"!=typeof i&&(this.locale.dateFormat=this.locale.timeFormat)};t.prototype._setPositionClasses=function(t){var e;if("function"==typeof t)return void this.$datepicker.classList.add("-custom-position-");var i=(t=t.split(" "))[0],r="air-datepicker -".concat(i,"-").concat(t[1],"- -from-").concat(i,"-");(e=this.$datepicker.classList).add.apply(e,r.split(" "))};t.prototype._bindEvents=function(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)};t.prototype._limitViewDateByMaxMinDates=function(){var t=this,e=t.viewDate,i=t.minDate,r=t.maxDate;r&&v(e,r)&&this.setViewDate(r),i&&b(e,i)&&this.setViewDate(i)};t.prototype.formatDate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=x(e),!(e instanceof Date))return;var r=i,a=this.locale,n=u(e),o=n.dayPeriod,s=h(e),c=t.replacer,d={T:e.getTime(),m:n.minutes,mm:n.fullMinutes,h:n.hours12,hh:n.fullHours12,H:n.hours,HH:n.fullHours,aa:o,AA:o.toUpperCase(),E:a.daysShort[n.day],EEEE:a.days[n.day],d:n.date,dd:n.fullDate,M:n.month+1,MM:n.fullMonth,MMM:a.monthsShort[n.month],MMMM:a.months[n.month],yy:n.year.toString().slice(-2),yyyy:n.year,yyyy1:s[0],yyyy2:s[1]};for(var l=0,f=Object.entries(d);l<f.length;l++){var p=f[l],v=p[0],b=p[1];r=c(r,A(v),b)}return r};t.prototype.down=function(t){this._handleUpDownActions(t,"down")};t.prototype.up=function(t){this._handleUpDownActions(t,"up")};t.prototype.selectDate=function(t){var e=this;var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this,o=n.currentView,s=n.parsedViewDate,c=n.selectedDates,u=a.updateTime,d=a.silent,l=this.opts,h=l.moveToOtherMonthsOnSelect,f=l.moveToOtherYearsOnSelect,p=l.multipleDates,b=l.range,k=l.autoClose,m=l.onBeforeSelect,g=c.length;if(Array.isArray(t))return t.forEach((function(t){e.selectDate(t,a)})),new Promise((function(t){setTimeout(t)}));if((t=x(t))instanceof Date){if(m&&!d&&!m({date:t,datepicker:this}))return Promise.resolve();if(o===r.days&&t.getMonth()!==s.month&&h&&(i=new Date(t.getFullYear(),t.getMonth(),1)),o===r.years&&t.getFullYear()!==s.year&&f&&(i=new Date(t.getFullYear(),0,1)),i&&this.setViewDate(i),p&&!b){if(g===p)return;this._checkIfDateIsSelected(t)||c.push(t)}else if(b)switch(g){case 1:c.push(t),this.rangeDateTo||(this.rangeDateTo=t),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=t),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[t],this.rangeDateFrom=t,this.rangeDateTo="";break;default:this.selectedDates=[t],this.rangeDateFrom=t}else this.selectedDates=[t];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:null==a?void 0:a.silent,date:t,updateTime:u}),this._updateLastSelectedDate(t),k&&!this.timepickerIsActive&&this.visible&&(p||b?b&&1===g&&this.hide():this.hide()),new Promise((function(t){setTimeout(t)}))}};t.prototype.unselectDate=function(t){var e=this;var i=this.selectedDates,a=this;if((t=x(t))instanceof Date)return i.some((function(n,o){if(p(n,t))return i.splice(o,1),a.selectedDates.length?(a.rangeDateTo="",a.rangeDateFrom=i[0],a._updateLastSelectedDate(a.selectedDates[a.selectedDates.length-1])):(a.rangeDateFrom="",a.rangeDateTo="",a._updateLastSelectedDate(false)),e.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:t}),true}))};t.prototype.replaceDate=function(t,e){var i=this;var a=this.selectedDates.find((function(e){return p(e,t,i.currentView)})),n=this.selectedDates.indexOf(a);n<0||p(this.selectedDates[n],e,this.currentView)||(this.selectedDates[n]=e,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:e,updateTime:true}),this._updateLastSelectedDate(e))};t.prototype.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=false,this.rangeDateTo=false,this.lastSelectedDate=false,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:t.silent}),new Promise((function(t){setTimeout(t)}))};t.prototype.show=function(){var t=this.opts,e=t.onShow,i=t.isMobile;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=true,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()};t.prototype.hide=function(){var t=this;var e=this.opts,i=e.onHide,r=e.isMobile,a=this._hasTransition();this.visible=false,this.hideAnimation=true,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((function(e){!t.customHide&&(e&&a||!e&&!a)&&t._finishHide(),i&&i(e)})),r&&P.classList.remove("-active-")};t.prototype._triggerOnSelect=function(){var t=this;var e=[],i=[],r=this,a=r.selectedDates,n=r.locale,o=r.opts,s=o.onSelect,c=o.multipleDates,u=o.range,d=c||u,l="function"==typeof n.dateFormat;a.length&&(e=a.map(k),i=l?c?n.dateFormat(e):e.map((function(t){return n.dateFormat(t)})):e.map((function(e){return t.formatDate(e,n.dateFormat)}))),s({date:d?e:e[0],formattedDate:d?i:i[0],datepicker:this})};t.prototype._handleAlreadySelectedDates=function(t,e){var i=this,r=i.selectedDates,a=i.rangeDateFrom,n=i.rangeDateTo,o=this.opts,s=o.range,c=o.toggleSelected,u=r.length,d="function"==typeof c?c({datepicker:this,date:e}):c,l=Boolean(s&&1===u&&t),h=l?k(e):e;s&&!d&&(2!==u&&this.selectDate(h),2===u&&p(a,n))||(d?this.unselectDate(h):this._updateLastSelectedDate(l?h:t))};t.prototype._handleUpDownActions=function(t,e){if(!((t=x(t||this.focusDate||this.viewDate))instanceof Date))return;var i="up"===e?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.setViewDate(new Date(t.getFullYear(),t.getMonth(),1)),this.setCurrentView(this.viewIndexes[i])};t.prototype.getCell=function(t){var e;var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.day;if(!((t=x(t))instanceof Date))return;var a=u(t),n=a.year,o=a.month,s=a.date,c='[data-year="'.concat(n,'"]'),d='[data-month="'.concat(o,'"]'),l=(e={},e[r.day]="".concat(c).concat(d,'[data-date="').concat(s,'"]'),e[r.month]="".concat(c).concat(d),e[r.year]="".concat(c),e);return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(l[i]):void 0};t.prototype._showMobileOverlay=function(){P.classList.add("-active-")};t.prototype._hasTransition=function(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((function(t,e){return parseFloat(e)+t}),0)>0};Object.defineProperty(t.prototype,"shouldUpdateDOM",{get:function(){return this.visible||this.treatAsInline},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"parsedViewDate",{get:function(){return u(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"currentViewSingular",{get:function(){return this.currentView.slice(0,-1)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"curDecade",{get:function(){return h(this.viewDate)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"viewIndex",{get:function(){return this.viewIndexes.indexOf(this.currentView)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinalView",{get:function(){return this.currentView===r.years},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"hasSelectedDates",{get:function(){return this.selectedDates.length>0},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isMinViewReached",{get:function(){return this.currentView===this.opts.minView||this.currentView===r.days},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"$container",{get:function(){return this.$customContainer||R},enumerable:false,configurable:true});t.replacer=function(t,e,i){return t.replace(e,(function(t,e,r,a){return e+i+a}))};return t}();var Y;return V(U,"defaults",a),V(U,"version","3.6.0"),V(U,"defaultGlobalContainerId","air-datepicker-global-container"),Y=U.prototype,Object.assign(Y,I),i.default}()}))})(pt);return pt.exports}var mt=kt();var gt=s(mt);function yt(t,e){var i=t.date,r=t.cellType;if(r==="day"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}}}else if(r==="month"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric",month:"long"})}}}else if(r==="year"){return{attrs:{role:"gridcell","aria-label":i.toLocaleDateString(e,{year:"numeric"})}}}}function wt(t,e){if(!t)return e;if(!e)return t;return __assign(__assign({},t),{classes:[t.classes,e.classes].filter(Boolean).join(" "),disabled:e.disabled||t.disabled})}var xt={ar:function(){return e.import("./p-CADoVT5-.system.js").then((function(t){return t.a}))},bg:function(){return e.import("./p-u0jzgGDa.system.js").then((function(t){return t.b}))},ca:function(){return e.import("./p-DCyIQfZ2.system.js").then((function(t){return t.c}))},cs:function(){return e.import("./p-Cc7IsiYa.system.js").then((function(t){return t.c}))},da:function(){return e.import("./p-DC5_ck-0.system.js").then((function(t){return t.d}))},de:function(){return e.import("./p-DiYoqWHh.system.js").then((function(t){return t.d}))},el:function(){return e.import("./p-CkyG9hlM.system.js").then((function(t){return t.e}))},en:function(){return e.import("./p-DtANKl_H.system.js").then((function(t){return t.e}))},es:function(){return e.import("./p-DeDqpA-c.system.js").then((function(t){return t.e}))},eu:function(){return e.import("./p-DWXd2GX-.system.js").then((function(t){return t.e}))},fi:function(){return e.import("./p-DPR1GhBu.system.js").then((function(t){return t.f}))},fr:function(){return e.import("./p-i0lB-o1h.system.js").then((function(t){return t.f}))},hr:function(){return e.import("./p-1jKm5Gii.system.js").then((function(t){return t.h}))},hu:function(){return e.import("./p-DPFNFi0H.system.js").then((function(t){return t.h}))},id:function(){return e.import("./p-V3SCivhq.system.js").then((function(t){return t.i}))},it:function(){return e.import("./p-BpIOvyQ5.system.js").then((function(t){return t.i}))},ja:function(){return e.import("./p-oqI6maRP.system.js").then((function(t){return t.j}))},ko:function(){return e.import("./p-qsCJzdGu.system.js").then((function(t){return t.k}))},nb:function(){return e.import("./p-DHzcjw9T.system.js").then((function(t){return t.n}))},nl:function(){return e.import("./p-DAh_7RzL.system.js").then((function(t){return t.n}))},pl:function(){return e.import("./p-BayPSiTy.system.js").then((function(t){return t.p}))},pt:function(){return e.import("./p-DLha4BpQ.system.js").then((function(t){return t.p}))},ro:function(){return e.import("./p-CQ_qts4t.system.js").then((function(t){return t.r}))},ru:function(){return e.import("./p-Bw0TBI7D.system.js").then((function(t){return t.r}))},si:function(){return e.import("./p-nkh1tem5.system.js").then((function(t){return t.s}))},sk:function(){return e.import("./p-6zNP6ghZ.system.js").then((function(t){return t.s}))},sl:function(){return e.import("./p-D6qSFhdu.system.js").then((function(t){return t.s}))},sv:function(){return e.import("./p-B-8pFQ5m.system.js").then((function(t){return t.s}))},th:function(){return e.import("./p-Dj9sWsqU.system.js").then((function(t){return t.t}))},tr:function(){return e.import("./p-mkWktU-n.system.js").then((function(t){return t.t}))},uk:function(){return e.import("./p-BpMc1tlF.system.js").then((function(t){return t.u}))},zh:function(){return e.import("./p-kC_vSmNI.system.js").then((function(t){return t.z}))}};var At="".concat(y.ltr).concat(y.rtl).concat(y.pop);var Dt=new RegExp("[".concat(At,"]"),"g");var _t=" - ";var Ft={y:"3333",m:"11",d:"22"};var jt=Object.keys(Ft);var Ct=new RegExp("[^".concat(jt.join(""),"]"),"g");var Ot=new RegExp("[^".concat(jt.join("")).concat(At,"]+"),"g");var Bt={day:"2-digit",month:"2-digit",year:"numeric"};function Et(t){var e=t.split("-");return"".concat(e[0].padStart(4,"0"),"-").concat(e[1],"-").concat(e[2])}function zt(t){return new Date("".concat(Et(t),"T00:00"))}function St(t){return t.toLocaleDateString("sv",Bt)}function Mt(t,e){var i=t.toLocaleDateString(e,Bt);var r=t.getFullYear().toString();if(r.length<4){return i.replace(r,r.padStart(4,"0"))}return i}function Tt(t,e,i){var r=e.match(Ot)[0];var a=t.replace(Dt,"").split(r).map((function(t){return t.replaceAll(/[^\d]/g,"")}));var n=e.replace(Ct,"").split("");var o=jt.reduce((function(t,e){var i;return __assign(__assign({},t),(i={},i[e]=a[n.indexOf(e)],i))}),{}),s=o.y,c=o.m,u=o.d;var d=i?(Number(s)-m).toString():s;return zt([d,c,u].join("-"))}function Nt(t,e){var i=new Date(Object.values(Ft).join("-"));var r=i.toLocaleDateString(t,Bt);for(var a=0,n=Object.entries(Ft);a<n.length;a++){var o=n[a],s=o[0],c=o[1];r=r.replace(e&&c.length===4?(Number(c)+m).toString():c,s)}return r}function Ht(t){return t instanceof Date&&!Number.isNaN(t.getTime())&&t.getFullYear()>=1e3}var It=function(){return'.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{-webkit-transition:all var(--adp-transition-duration) var(--adp-transition-ease);transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7, var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex:1;flex:1;text-align:center;text-transform:uppercase;font-size:.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3, 1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, 1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);-webkit-box-sizing:content-box;box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:-ms-inline-flexbox;display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255, 255, 255, 0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr;grid-column-gap:12px;-ms-flex-align:center;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;-ms-flex-item-align:end;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:11px;height:17px;background:-webkit-gradient(linear, left top, right top, from(var(--adp-time-track-color)), to(var(--adp-time-track-color))) left 50%/100% var(--adp-time-track-height) no-repeat;background:linear-gradient(to right, var(--adp-time-track-color), var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;-ms-flex:1;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-box-sizing:border-box;box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size)/2*-1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0, 0, 0, 0);background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0, 0, 0, 0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0, 0, 0, 0)}.air-datepicker{--adp-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92, 196, 239, .1);--adp-background-color-in-range-focused:rgba(92, 196, 239, .2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92, 196, 239, 0.1);--adp-cell-background-color-in-range-hover:rgba(92, 196, 239, 0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0, 0, 0, .3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);-webkit-box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border-radius:var(--adp-border-radius);-webkit-box-sizing:content-box;box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4, -webkit-max-content);grid-template-rows:repeat(4, max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;-webkit-transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease),-webkit-transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{-webkit-transform:translateY(calc(var(--adp-transition-offset) * -1));transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{-webkit-transform:translateX(var(--adp-transition-offset));transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{-webkit-transform:translateY(var(--adp-transition-offset));transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{-webkit-transform:translateX(calc(var(--adp-transition-offset) * -1));transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){-webkit-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.air-datepicker.-active-.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);-webkit-box-shadow:none;box-shadow:none;position:static;left:auto;right:auto;opacity:1;-webkit-transform:none;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){-webkit-transform:translate(-50%, calc(-50% + var(--adp-transition-offset)));transform:translate(-50%, calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.air-datepicker.-custom-position-{-webkit-transition:none;transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);-webkit-box-sizing:border-box;box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{-webkit-transform:rotate(225deg);transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{-webkit-transform:rotate(315deg);transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size)/2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size)/2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{-webkit-box-sizing:content-box;box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;-webkit-transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;-webkit-transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-cell-background-color-in-range:unset;--adp-hover-color:unset;--adp-cell-border-width:2px;--adp-background-color:var(--post-scheme-color-surface-accent1-bg);font-family:inherit;font-size:var(--post-device-font-size-8);width:var(--post-core-dimension-296);border-radius:var(--post-device-border-radius-1);-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300);font-weight:700;border:none}.air-datepicker.-inline-{-webkit-box-shadow:var(--post-device-elevation-300);box-shadow:var(--post-device-elevation-300)}.air-datepicker *{font-family:inherit}.air-datepicker .air-datepicker--navigation{border-start-start-radius:inherit;border-start-end-radius:inherit}.air-datepicker .air-datepicker--navigation .air-datepicker-nav{border-start-start-radius:inherit;border-start-end-radius:inherit;-webkit-border-after:none;border-block-end:none;background:var(--post-scheme-color-datepicker-header-bg);padding:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:auto;margin-inline-end:auto;-ms-flex-pack:start;justify-content:flex-start;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0 0 0 var(--post-device-spacing-padding-15);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title.-disabled-:hover{color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title:has(button:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;border-radius:var(--post-device-border-radius-1);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--post-device-spacing-gap-3);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--title .placeholder{-ms-flex-positive:2;flex-grow:2;pointer-events:none}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action[data-action=next]{-webkit-margin-start:var(--post-device-spacing-gap-inline-4);margin-inline-start:var(--post-device-spacing-gap-inline-4)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:hover{background:unset;color:var(--post-scheme-color-interactive-button-tertiary-hover-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action:has(:disabled){color:var(--post-scheme-color-interactive-button-tertiary-disabled-fg)}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:button;-moz-appearance:button;appearance:button;height:var(--post-device-sizing-interactive-button-height-4);width:var(--post-device-sizing-interactive-button-height-4);border-radius:var(--post-device-border-radius-round);color:inherit;cursor:inherit}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button{background-color:ButtonFace !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:hover{background-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action button:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content{padding:0 !important}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names{background:var(--post-scheme-color-datepicker-header-bg);margin:0;-webkit-padding-before:var(--post-device-spacing-padding-13);padding-block-start:var(--post-device-spacing-padding-13);-webkit-padding-after:var(--post-device-spacing-padding-5);padding-block-end:var(--post-device-spacing-padding-5);padding-inline:var(--post-device-spacing-padding-15)}.air-datepicker .air-datepicker--content .air-datepicker-body--day-names .air-datepicker-body--day-name{text-transform:capitalize;font-size:inherit;color:var(--post-scheme-color-surface-default-fg)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells{min-height:var(--post-core-dimension-182);padding:var(--post-device-spacing-padding-15);background:var(--post-scheme-color-surface-accent1-bg);row-gap:var(--post-device-spacing-gap-2);border-radius:var(--post-device-border-radius-1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .a11y-row{display:grid;grid-column:1/-1;grid-template-columns:subgrid}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days-{grid-template-columns:repeat(7, var(--post-core-dimension-40));grid-auto-rows:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell>*{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell::after{-webkit-box-sizing:border-box;box-sizing:border-box}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-{width:var(--post-core-dimension-40);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-other-month-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:empty{pointer-events:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-:hover:not(.-disabled-,.-other-month-,.-in-range-,.-range-from-,.-range-to-):not(:empty).-current-{color:var(--post-scheme-color-interactive-primary-hover-fg1);border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background:var(--post-scheme-color-interactive-primary-selected-bg4)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-):not(.-range-from-):not(.-range-to-,.-other-month-){border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-selected-:not(.-other-month-){background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-disabled-:not(.-other-month-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);width:var(--post-core-dimension-38);height:var(--post-core-dimension-38);outline:none;display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:center}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty){border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-{background:var(--post-scheme-color-interactive-primary-selected-bg4);color:var(--post-scheme-color-interactive-primary-selected-fg3);border-color:var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-days- .air-datepicker-cell.-day-.-current-:not(.-disabled-,.-other-month-):not(:empty).-selected-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2);color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years-{grid-template-columns:repeat(4, var(--post-core-dimension-64));grid-auto-rows:var(--post-core-dimension-40);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-other-decade-{visibility:hidden}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-disabled-:not(.-day-.-other-decade-){-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-years- .air-datepicker-cell.-year-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months-{grid-template-columns:repeat(4, var(--post-core-dimension-64));padding:var(--post-device-spacing-padding-15);-webkit-column-gap:var(--post-device-spacing-gap-inline-8);-moz-column-gap:var(--post-device-spacing-gap-inline-8);column-gap:var(--post-device-spacing-gap-inline-8);min-height:var(--post-core-dimension-182);text-transform:uppercase}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-{width:var(--post-core-dimension-64);height:var(--post-core-dimension-40);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-in-range-{background-color:rgba(0,0,0,0)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-other-decade-{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-:hover:not(.-disabled-):not(.-current-){background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-selected-:not(.-selected-~.-selected-){color:var(--post-scheme-color-interactive-primary-selected-fg3);background-color:var(--post-scheme-color-interactive-primary-selected-bg4);border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-disabled-{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);border:var(--adp-cell-border-width) dashed var(--post-scheme-color-interactive-primary-disabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-{border:var(--adp-cell-border-width) solid var(--post-scheme-color-interactive-primary-enabled-stroke)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells.-months- .air-datepicker-cell.-month-.-current-:hover{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;-ms-flex-direction:column;flex-direction:column;color:var(--post-scheme-color-interactive-primary-enabled-fg1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell.-focus-:hover{background:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-{position:relative;border:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{content:"";position:absolute;inset:0;display:block;width:var(--post-core-dimension-40);height:var(--post-core-dimension-40)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1)}@media (-webkit-min-device-pixel-ratio: 1.25)and (-webkit-max-device-pixel-ratio: 1.5), (min-resolution: 1.25dppx)and (max-resolution: 1.4999dppx){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-::after{inset:calc(var(--adp-cell-border-width)*-1 - .5)}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-.-selected-:hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-.-selected-:hover::after{inset:0}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::before{z-index:-2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-::after{z-index:-1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-){color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-radius:var(--post-device-border-radius-round);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:hover:not(.-current-,.-disabled-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:hover:not(.-current-,.-disabled-)::after{border:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1);border-radius:var(--post-device-border-radius-round);color:var(--post-scheme-color-interactive-primary-selected-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-)::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-)::after{forced-color-adjust:none;border-color:Highlight}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-.-current-:not(.-disabled-,.-other-month-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-current-:not(.-disabled-,.-other-month-):hover::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke);color:var(--post-scheme-color-interactive-primary-hover-fg3);background:var(--post-scheme-color-interactive-primary-hover-bg2)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-{background-color:rgba(0,0,0,0);z-index:2}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-){outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):focus-visible{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):focus-visible{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-).pretend-focus{outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-).pretend-focus{outline-color:Highlight !important}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):has(:focus-visible){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):has(:focus-visible){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;z-index:3}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-disabled-):hover::after{background-color:ButtonFace;color:ButtonText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-:not(.-other-month-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-){color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{background-color:var(--post-scheme-color-surface-accent1-bg);border-radius:var(--post-device-border-radius-round);border:var(--post-device-border-width-default) dashed var(--post-scheme-color-interactive-primary-disabled-stroke);color:var(--post-scheme-color-interactive-primary-disabled-fg1) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-in-range-.-disabled-:not(.-other-month-)::after{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-),.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-){z-index:1}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-).-selected-:not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-).-selected-:not(.-disabled-):hover{border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{background:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-)::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{border-radius:var(--post-device-border-radius-round);background:var(--post-scheme-color-interactive-primary-selected-bg4)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-).-selected-::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-).-selected-::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover{color:var(--post-scheme-color-interactive-primary-hover-fg3)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::before{forced-color-adjust:none}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background:var(--post-scheme-color-interactive-primary-hover-bg2);border-color:var(--post-scheme-color-interactive-primary-hover-bg2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-):not(.-disabled-):hover::after,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-):not(.-disabled-):hover::after{background-color:Highlight;color:HighlightText}}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-from-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-start:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-):hover::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-:not(.-other-month-,.-disabled-).-selected-::before{inset-inline-end:auto;width:50%;background-color:var(--post-scheme-color-interactive-primary-selected-bg3);border-block:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-selected-stroke1)}.air-datepicker .air-datepicker--content .air-datepicker-body--cells .air-datepicker-cell:not(.-year-,.-month-).-range-to-.-range-from-:hover::before{background:none;border:none}.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-)::before,.air-datepicker .air-datepicker--content .air-datepicker-body--cells:not(:has(.-selected-.-range-from-):has(.-selected-.-range-to-)):not(:hover) .air-datepicker-cell:is(.-in-range-,.-range-from-,.-range-to-):not(.-selected-)::after{content:unset}.calendar-input,.calendar-input-range{position:relative}.calendar-input button,.calendar-input-range button{z-index:1;padding:0;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:none;border:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:var(--post-device-border-radius-focus);-webkit-transition:opacity .2s ease,visibility .2s ease,fill .2s ease;transition:opacity .2s ease,visibility .2s ease,fill .2s ease;color:var(--post-scheme-color-interactive-input-enabled-fg);right:var(--post-core-dimension-14);top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--post-scheme-color-interactive-input-enabled-fg);inset-inline-end:var(--post-core-dimension-14);inset-inline-start:auto}.calendar-input button post-icon,.calendar-input-range button post-icon{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}.calendar-input button:not([disabled]),.calendar-input-range button:not([disabled]){cursor:pointer}.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:var(--post-scheme-color-interactive-input-hover-fg)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.calendar-input button:not([disabled]) :where(:hover>*) post-icon,.calendar-input-range button:not([disabled]) :where(:hover>*) post-icon{color:Highlight}}.calendar-input button[disabled],.calendar-input-range button[disabled]{color:var(--post-scheme-color-interactive-primary-disabled-fg1)}.calendar-input button:focus-visible,.calendar-input-range button:focus-visible{outline-offset:4px !important;outline-style:solid !important;outline-width:var(--post-device-border-width-focus) !important;outline-color:var(--post-scheme-color-interactive-focus-stroke) !important}.calendar-input ::slotted(input),.calendar-input-range ::slotted(input){-webkit-padding-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important;padding-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host{display:block;width:100%;--post-form-floating-validation-icon-inline-end:calc( var(--post-core-dimension-14) + var(--post-device-sizing-notification-1) + var(--post-device-spacing-gap-inline-8) );--post-form-floating-validation-icon-block-start:calc( var(--post-device-sizing-interactive-button-height-6) / 2 )}:host ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% right calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}:host [dir=rtl] .air-datepicker .air-datepicker--navigation .air-datepicker-nav .air-datepicker-nav--action{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(:dir(rtl)) ::slotted(input.form-control:is(.is-invalid,.is-valid):not(:disabled)){background-position:top 50% left calc( var(--post-core-dimension-14) + var(--post-device-spacing-gap-inline-8) + var(--post-device-sizing-notification-1) ) !important}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}'};var Vt=undefined&&undefined.__decorate||function(t,e,i,r){var a=arguments.length,n=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,o;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")n=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)if(o=t[s])n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n;return a>3&&n&&Object.defineProperty(e,i,n),n};var Rt=t("post_date_picker",(f=function(){function t(t){var e=this;i(this,t);this.locale=this.systemLocale;this.range=false;this.inline=false;this.inputDisabled=false;this.today=new Date;this.startDate=new Date;this.currentViewType="days";this._isInternalUpdate=false;this._lastInputValue=null;this.isPointerDownOnInput=false;this.skipOnSelectCount=0;this.skipFocusOnNextRender=false;this.pendingFocusDate=null;this.handleInputBlur=function(){if(e.range){var t=e.inputMask.value.split(e.dateFormatRangeSeparator);var i=e.stringToDate(t[0]);var r=e.stringToDate(t[1]);var a=Ht(i);var n=Ht(r);if(a&&n){var o=i>r;e.skipOnSelectCount=o?0:2;e.dpInstance.selectDate([i,r]);e.dpInstance.setViewDate(i)}else if(a&&!n){e.dpInstance.clear();e.dpInstance.selectDate(i);e.dpInstance.setViewDate(i)}else{e.resetSelection()}}else{var s=e.stringToDate(e.inputMask.value);if(Ht(s)){e.skipOnSelectCount=1;e.dpInstance.selectDate(s);e.dpInstance.setViewDate(s)}else{e.resetSelection()}}e.emitInputEvents();if(e.hasFloatingLabel())e.setMaskLazy(true)};this.handleInputPointerDown=function(){e.isPointerDownOnInput=true};this.handleInputFocus=function(){if(e.hasFloatingLabel())e.setMaskLazy(false);if(!e.isPointerDownOnInput){requestAnimationFrame((function(){return e.dpInput.setSelectionRange(0,0)}))}e.isPointerDownOnInput=false};this.handlePrevNextClick=function(){e.skipFocusOnNextRender=true};this.handleTab=function(t){var i;if(e.inline||t.key!=="Tab"&&t.key!=="Escape")return;if(t.key==="Escape"){(i=e.popoverRef)===null||i===void 0?void 0:i.hide();e.dpInput.focus();return}var r=c(e.dpContainer);if(r.length===0)return;var a=e.host.shadowRoot.activeElement;var n=r.indexOf(a);if(n===-1)return;t.preventDefault();var o=t.shiftKey?(n-1+r.length)%r.length:(n+1)%r.length;r[o].focus()};this.handleGridKeydown=function(t){var i=t.key;var r=e.startDate;if(!r)return;if(i==="Enter"||i===" "){t.preventDefault();var a=e.getCells().find((function(t){return t.tabIndex===0}));if(a){a.click()}return}var n=new Date(r);var o={ArrowLeft:{days:function(){return n.setDate(r.getDate()-1)},months:function(){return n.setMonth(r.getMonth()-1)},years:function(){return n.setFullYear(r.getFullYear()-1)}},ArrowRight:{days:function(){return n.setDate(r.getDate()+1)},months:function(){return n.setMonth(r.getMonth()+1)},years:function(){return n.setFullYear(r.getFullYear()+1)}},ArrowUp:{days:function(){return n.setDate(r.getDate()-7)},months:function(){return n.setMonth(r.getMonth()-4)},years:function(){return n.setFullYear(r.getFullYear()-4)}},ArrowDown:{days:function(){return n.setDate(r.getDate()+7)},months:function(){return n.setMonth(r.getMonth()+4)},years:function(){return n.setFullYear(r.getFullYear()+4)}},Home:{days:function(){return n.setDate(1)},months:function(){return n.setMonth(0)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10)}},End:{days:function(){return n.setMonth(r.getMonth()+1,0)},months:function(){return n.setMonth(11)},years:function(){return n.setFullYear(r.getFullYear()-r.getFullYear()%10+9)}},PageUp:{days:function(){return n.setMonth(r.getMonth()-1)},months:function(){return n.setFullYear(r.getFullYear()-1)},years:function(){return n.setFullYear(r.getFullYear()-10)}},PageDown:{days:function(){return n.setMonth(r.getMonth()+1)},months:function(){return n.setFullYear(r.getFullYear()+1)},years:function(){return n.setFullYear(r.getFullYear()+10)}}};if(!o[i]||!o[i][e.currentViewType])return;t.preventDefault();o[i][e.currentViewType]();var s=r.getMonth()!==n.getMonth()||r.getFullYear()!==n.getFullYear();if(s){e.pendingFocusDate=n;e.skipFocusOnNextRender=false;e.dpInstance.setViewDate(n);requestAnimationFrame((function(){e.setActiveCell(n,true);requestAnimationFrame((function(){if(e.pendingFocusDate===n){e.pendingFocusDate=null}}))}))}else{e.setActiveCell(n,true)}};this.handleInputEvent=function(t){if(e.maskElement.allowEvents)return;var i=e.serializeIsoValue();if(i===e._lastInputValue){t.stopImmediatePropagation();return}e._lastInputValue=i};this.forceTitleClickToYear=function(){if(e.dpInstance){e.dpInstance.setCurrentView("years")}}}t.prototype.validateLocale=function(){if(!x(this.locale)){console.error('The prop `locale` of the `post-date-picker` component must be a valid localeCode (e.g. `en`, `en-GB`, etc.), based on <a href="https://www.rfc-editor.org/info/bcp47">BCP 47 (RFC 5646)</a> standard.')}};t.prototype.updateLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.airLocale()];case 1:t=i.sent();(e=this.dpInstance)===null||e===void 0?void 0:e.update({locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay});this.updateMask();return[2]}}))}))};t.prototype.updateRange=function(){var t,e;(t=this.dpInstance)===null||t===void 0?void 0:t.update({range:this.range});this.updateMask();if(this.range&&((e=this.dpInstance)===null||e===void 0?void 0:e.selectedDates.length)>0){var i=this.dpInstance.selectedDates[0];this.dpInstance.clear();this.dpInstance.selectDate(i)}else{this.syncInputToDp()}};t.prototype.updateMin=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({minDate:this.min?zt(this.min):false})};t.prototype.updateMax=function(){var t;(t=this.dpInstance)===null||t===void 0?void 0:t.update({maxDate:this.max?zt(this.max):false})};t.prototype.validateInline=function(){if(!this.dpInput){console.error("The date picker must contain one input element")}};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!this.popoverRef)return[3,2];(t=this.dpInstance)===null||t===void 0?void 0:t.setCurrentView("days");return[4,this.popoverRef.show(this.dpInput)];case 1:e.sent();this.enhanceAccessibility();this.host.shadowRoot.removeEventListener("keydown",this.handleTab,true);this.host.shadowRoot.addEventListener("keydown",this.handleTab,true);return[3,3];case 2:console.error("show: popoverRef is null or undefined");e.label=3;case 3:return[2]}}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.popoverRef)return[3,2];return[4,this.popoverRef.hide()];case 1:t.sent();return[3,3];case 2:console.error("hide: popoverRef is null or undefined");t.label=3;case 3:return[2]}}))}))};Object.defineProperty(t.prototype,"systemLocale",{get:function(){var t,e;var i=(t=this.host.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang");return(e=i!==null&&i!==void 0?i:navigator.language)!==null&&e!==void 0?e:k},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"localeCode",{get:function(){var t;var e=(t=this.locale)!==null&&t!==void 0?t:k;return x(e)?e:k},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"languageCode",{get:function(){return this.localeCode.split("-")[0]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormat",{get:function(){return Nt(this.localeCode,this.isBuddhistCalendar)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"textDirection",{get:function(){return w(this.localeCode)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"dateFormatRangeSeparator",{get:function(){return this.textDirection==="rtl"?"".concat(y.rtl).concat(_t).concat(y.pop):_t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isBuddhistCalendar",{get:function(){return g.includes(this.localeCode)},enumerable:false,configurable:true});t.prototype.airLocale=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i;return __generator(this,(function(r){switch(r.label){case 0:t=k;if(xt[this.languageCode]){t=this.languageCode}else{console.warn('Post Date Picker: Locale module "'.concat(this.localeCode,'" not found! Falling back to "').concat(k,'".'))}return[4,(i=xt[t])===null||i===void 0?void 0:i.call(xt)];case 1:e=r.sent();return[2,e.default]}}))}))};t.prototype.dateToString=function(t){return Mt(t,this.localeCode)};t.prototype.stringToDate=function(t){return Tt(t,this.dateFormat,this.isBuddhistCalendar)};t.prototype.setupInputObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;if(!this.dpInput)return;if(this.inputObserver){this.inputObserver.disconnect()}this.inputObserver=new MutationObserver((function(){t.syncDatePickerState()}));this.inputObserver.observe(this.dpInput,{attributes:true,attributeFilter:["disabled"]})};t.prototype.getCells=function(){if(!this.dpContainer)return[];var t="";switch(this.currentViewType){case"days":t=".air-datepicker-cell.-day-";break;case"months":t=".air-datepicker-cell.-month-";break;case"years":t=".air-datepicker-cell.-year-";break}return Array.from(this.dpContainer.querySelectorAll(t))};t.prototype.setActiveCell=function(t,e){if(e===void 0){e=true}var i=this.getCells();if(i.length===0)return;var r;if(this.currentViewType==="days"){r=i.find((function(e){return Number(e.dataset.date)===t.getDate()&&Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()&&!e.classList.contains("-other-month-")}));if(!r){var a=new Date(this.currentViewYear,this.currentViewMonth,1);r=i.find((function(t){return Number(t.dataset.date)===1&&Number(t.dataset.month)===a.getMonth()&&Number(t.dataset.year)===a.getFullYear()&&!t.classList.contains("-other-month-")}))}}else if(this.currentViewType==="months"){r=i.find((function(e){return Number(e.dataset.month)===t.getMonth()&&Number(e.dataset.year)===t.getFullYear()}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-year-")}))}}else{r=i.find((function(e){return Number(e.dataset.year)===t.getFullYear()&&!e.classList.contains("-other-decade-")}));if(!r){r=i.find((function(t){return!t.classList.contains("-other-decade-")}))}}if(!r){r=i.at(-1)}i.forEach((function(t){return t.tabIndex=-1}));r.tabIndex=0;if(e){r.focus()}this.startDate=new Date(Number(r.dataset.year),Number(r.dataset.month),Number(r.dataset.date))};t.prototype.reorderNavigation=function(){var t;var e=(t=this.dpContainer)===null||t===void 0?void 0:t.querySelector(".air-datepicker-nav");if(!e)return;var i=this.host.shadowRoot.querySelector('[data-action="prev"]');var r=this.host.shadowRoot.querySelector(".air-datepicker-nav--title");if(i&&r){e.insertBefore(r,i)}};Object.defineProperty(t.prototype,"prevBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="prev"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"nextBtn",{get:function(){return this.host.shadowRoot.querySelector('[data-action="next"] button')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"titleBtn",{get:function(){return this.host.shadowRoot.querySelector(".air-datepicker-nav--title button")},enumerable:false,configurable:true});t.prototype.hasFloatingLabel=function(){return!!this.host.classList.contains("form-floating")};t.prototype.updateNavigationButtonLabels=function(){var t,e,i,r,a,n;if(this.currentViewType==="months"){(t=this.prevBtn)===null||t===void 0?void 0:t.setAttribute("aria-label",this.textPreviousYear);(e=this.nextBtn)===null||e===void 0?void 0:e.setAttribute("aria-label",this.textNextYear)}else if(this.currentViewType==="years"){(i=this.prevBtn)===null||i===void 0?void 0:i.setAttribute("aria-label",this.textPreviousDecade);(r=this.nextBtn)===null||r===void 0?void 0:r.setAttribute("aria-label",this.textNextDecade)}else{(a=this.prevBtn)===null||a===void 0?void 0:a.setAttribute("aria-label",this.textPreviousMonth);(n=this.nextBtn)===null||n===void 0?void 0:n.setAttribute("aria-label",this.textNextMonth)}};t.prototype.wrapCellsInRows=function(t){var e;(e=this.gridObserver)===null||e===void 0?void 0:e.disconnect();t.querySelectorAll(':scope > [role="row"]').forEach((function(e){while(e.firstChild)t.insertBefore(e.firstChild,e);e.remove()}));var i=Array.from(t.children).filter((function(t){return t.classList.contains("air-datepicker-cell")}));var r=Rt.COLUMNS_BY_VIEW[this.currentViewType];for(var a=0;a<i.length;a+=r){var n=document.createElement("div");n.setAttribute("role","row");n.classList.add("a11y-row");t.insertBefore(n,i[a]);for(var o=a;o<a+r&&o<i.length;o++){n.append(i[o])}}this.gridObserver.observe(t,{childList:true,subtree:false})};t.prototype.enhanceAccessibility=function(t){if(t===void 0){t=true}var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(this.currentViewType==="months"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-months-")}else if(this.currentViewType==="years"){e=this.dpContainer.querySelector(".air-datepicker-body--cells.-years-")}if(!e)return;e.setAttribute("role","grid");this.wrapCellsInRows(e);this.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false");if(t.classList.contains("-current-")){t.setAttribute("aria-current","date")}}));e.removeEventListener("keydown",this.handleGridKeydown);e.addEventListener("keydown",this.handleGridKeydown);var i=this.getIsoDates();var r=i[0]?zt(i[0]):null;var a=this.pendingFocusDate||r||this.today;this.setActiveCell(a,t)};t.prototype.setUpMask=function(){var t;var e=(t=this.dateFormat)===null||t===void 0?void 0:t.replace(Ot,(function(t){return"".concat(t,"`")}));var i={mask:Date,pattern:e,format:this.dateToString.bind(this),parse:this.stringToDate.bind(this),blocks:{y:{mask:E.MaskedRange,from:1e3,to:9999,maxLength:4,placeholderChar:Object.keys(Ft)[0]},m:{mask:E.MaskedRange,from:1,to:12,placeholderChar:Object.keys(Ft)[1]},d:{mask:E.MaskedRange,from:1,to:31,placeholderChar:Object.keys(Ft)[2]}},min:this.min?new Date("".concat(Et(this.min),"T00:00")):null,max:this.max?new Date("".concat(Et(this.max),"T00:00")):null,autofix:true,eager:true};this.singleMaskOptions=__assign(__assign({},i),{lazy:this.hasFloatingLabel(),overwrite:true});this.rangeMaskOptions={mask:"from`".concat(this.dateFormatRangeSeparator,"to"),blocks:{from:__assign({},i),to:__assign({},i)},lazy:this.hasFloatingLabel(),overwrite:true};this.maskElement=new ht(this.dpInput);this.inputMask=E(this.maskElement,this.range?this.rangeMaskOptions:this.singleMaskOptions)};t.prototype.setMaskLazy=function(t){var e;var i=this.range?this.rangeMaskOptions:this.singleMaskOptions;(e=this.inputMask)===null||e===void 0?void 0:e.updateOptions(__assign(__assign({},i),{lazy:t}))};t.prototype.updateMask=function(){if(!this.inline){var t=document.activeElement===this.dpInput;this.inputMask.destroy();this.setUpMask();this.setupValueOverride();if(this.dpInstance.selectedDates.length>0){this.inputMask.value=this.formatDatesForMask(this.dpInstance.selectedDates)}if(t&&this.hasFloatingLabel()){this.setMaskLazy(false)}}};t.prototype.setupValueOverride=function(){if(!this.dpInput)return;Object.defineProperty(this.dpInput,"value",{get:this.getInputIsoValue.bind(this),set:this.setInputIsoValue.bind(this),configurable:true,enumerable:true})};t.prototype.getIsoDates=function(){var t,e,i,r,a,n;var o=ft(this.dpInput);var s=8;if(!this.range){var c=(t=o===null||o===void 0?void 0:o.replaceAll(/\D/g,""))!==null&&t!==void 0?t:"";if(c.length<s)return[];var u=this.stringToDate(o);return u&&Ht(u)?[St(u)]:[]}var d=(e=o===null||o===void 0?void 0:o.split(this.dateFormatRangeSeparator))!==null&&e!==void 0?e:[];var l=(r=(i=d[0])===null||i===void 0?void 0:i.replaceAll(/\D/g,""))!==null&&r!==void 0?r:"";var h=(n=(a=d[1])===null||a===void 0?void 0:a.replaceAll(/\D/g,""))!==null&&n!==void 0?n:"";var f=l.length>=s?this.stringToDate(d[0]):null;var p=h.length>=s?this.stringToDate(d[1]):null;var v=[];if(f&&Ht(f))v.push(St(f));if(p&&Ht(p))v.push(St(p));return v};t.prototype.getInputIsoValue=function(){var t;var e=this.getIsoDates();if(!this.range){return(t=e[0])!==null&&t!==void 0?t:""}return e};t.prototype.serializeIsoValue=function(){return JSON.stringify(this.getIsoDates())};t.prototype.setInputIsoValue=function(t){var e,i,r,a;if(this._isInternalUpdate)return;this._isInternalUpdate=true;try{var n=void 0;if(Array.isArray(t)){n=t}else{n=t?t.split(",").map((function(t){return t.trim()})):[]}var o=n.filter(Boolean).map((function(t){return zt(t)})).filter((function(t){return t&&Ht(t)}));if(o.length===0){this.inputMask.value="";(e=this.dpInstance)===null||e===void 0?void 0:e.clear();return}this.inputMask.value=this.formatDatesForMask(o);(i=this.dpInstance)===null||i===void 0?void 0:i.clear();(r=this.dpInstance)===null||r===void 0?void 0:r.selectDate(this.range?o:o[0]);(a=this.dpInstance)===null||a===void 0?void 0:a.setViewDate(o[0])}finally{this._isInternalUpdate=false}};t.prototype.configDatePicker=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;var a,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.airLocale()];case 1:t=o.sent();this.dpInput=this.host.querySelector("input");if(!this.dpInput){console.error("The post-date-picker component requires a slotted <input> element.");return[2]}if(this.inline){this.dpInput.type="hidden"}else{this.dpInput.type="text";this.dpInput.inputMode="numeric"}if(!this.inline&&!this.dpInput.hasAttribute("placeholder")){this.dpInput.placeholder=" "}e=this.dpInput.value;this.dpInput.value="";this.setUpMask();this.setupValueOverride();if(e){this.setInputIsoValue(e)}this.dpContainer=this.host.shadowRoot.querySelector(".datepicker-container");if(this.dpContainer){i={navTitles:{days:'<button><strong>MMMM yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>'),months:'<button><strong>yyyy</strong><span class="visually-hidden">, '.concat(this.textSwitchYear,'</span><post-icon name="chevrondown"></post-icon></button>')},prevHtml:'<button><post-icon name="chevronleft" ></post-icon></button>',nextHtml:'<button><post-icon name="chevronright" ></post-icon></button>',range:this.range,inline:true,autoClose:true,showOtherYears:true,selectOtherYears:true,showOtherMonths:false,moveToOtherMonthsOnSelect:true,startDate:this.startDate,minDate:this.min?zt(this.min):undefined,maxDate:this.max?zt(this.max):undefined,locale:t,dateFormat:t.dateFormat,firstDay:t.firstDay,view:"days",onChangeView:function(t){r.currentViewType=t;requestAnimationFrame((function(){r.enhanceAccessibility()}))},onChangeViewDate:function(t){var e=t.month,i=t.year;r.currentViewYear=i;r.currentViewMonth=e;r.updateNavigationButtonLabels()},onSelect:function(t){var e;var i=t.date;if(!i||Array.isArray(i)&&i.length===0){if(r._isInternalUpdate)return;r.inputMask.value="";r.emitInputEvents();return}r.getCells().forEach((function(t){t.setAttribute("aria-selected",t.classList.contains("-selected-")?"true":"false")}));if(r.skipOnSelectCount>0){r.skipOnSelectCount--;return}if(r._isInternalUpdate)return;var a=Array.isArray(i)?i:[i];var n=r.range&&a.length===1;r.inputMask.value=r.formatDatesForMask(a);r.emitInputEvents();if(n){return}if(!r.inline){(e=r.popoverRef)===null||e===void 0?void 0:e.hide();requestAnimationFrame((function(){return r.dpTrigger.focus()}))}},onShow:function(){r.enhanceAccessibility()},onRenderCell:function(t){var e;var i=yt(t,r.localeCode);var a=(e=r.cellConfig)===null||e===void 0?void 0:e.call(r,t.date,t.cellType);return wt(i,a)}};this.dpInstance=new gt(this.dpContainer,i);this.reorderNavigation();(a=this.prevBtn)===null||a===void 0?void 0:a.addEventListener("click",this.handlePrevNextClick);(n=this.nextBtn)===null||n===void 0?void 0:n.addEventListener("click",this.handlePrevNextClick);this.syncInputToDp()}return[2]}}))}))};t.prototype.emitInputEvents=function(){this.inputMask.updateValue();var t=this.serializeIsoValue();if(t===this._lastInputValue){return}this._lastInputValue=t;this.maskElement.allowEvents=true;this.dpInput.dispatchEvent(new InputEvent("input",{bubbles:true}));this.dpInput.dispatchEvent(new InputEvent("change",{bubbles:true}));this.maskElement.allowEvents=false};t.prototype.formatDatesForMask=function(t){var e=this;if(t.length===0)return"";if(this.range){return t.map((function(t){return e.dateToString(t)})).join(this.dateFormatRangeSeparator)}return this.dateToString(t[0])};t.prototype.syncInputToDp=function(){var t=this.getIsoDates();if(t.length===0)return;var e=t.map((function(t){return zt(t)})).filter((function(t){return t&&Ht(t)}));if(e.length>0){this.dpInstance.selectDate(this.range?e:e[0]);this.dpInstance.setViewDate(e[0])}};t.prototype.attachTitleBtnListener=function(){var t=this;requestAnimationFrame((function(){if(!t.titleBtn)return;t.titleBtn.onclick=null;t.titleBtn.removeEventListener("click",t.forceTitleClickToYear);t.titleBtn.addEventListener("click",t.forceTitleClickToYear,{capture:true})}))};t.prototype.setupNavObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-nav");if(!e)return;if(this.navObserver){this.navObserver.disconnect()}this.updateNavigationButtonLabels();this.attachTitleBtnListener();this.navObserver=new MutationObserver((function(){t.updateNavigationButtonLabels();t.attachTitleBtnListener()}));this.navObserver.observe(e,{childList:true,subtree:true})};t.prototype.setupGridObserver=function(){var t=this;if(typeof MutationObserver==="undefined")return;var e=this.dpContainer.querySelector(".air-datepicker-body--cells");if(!e)return;if(this.gridObserver){this.gridObserver.disconnect()}this.gridObserver=new MutationObserver((function(e){var i=e.some((function(t){return t.type==="childList"}));if(!i)return;requestAnimationFrame((function(){t.enhanceAccessibility(!t.skipFocusOnNextRender);t.skipFocusOnNextRender=false}))}));this.gridObserver.observe(e,{childList:true,subtree:false})};t.prototype.addInputListener=function(){this._lastInputValue=this.serializeIsoValue();if(!this.inline){this.dpInput.addEventListener("blur",this.handleInputBlur);this.dpInput.addEventListener("focus",this.handleInputFocus);this.dpInput.addEventListener("pointerdown",this.handleInputPointerDown)}this.dpInput.addEventListener("input",this.handleInputEvent)};t.prototype.resetSelection=function(){this.skipOnSelectCount=0;this.dpInstance.clear();this.dpInstance.setViewDate(this.today)};t.prototype.syncDatePickerState=function(){this.inputDisabled=this.dpInput.disabled};t.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:return[4,this.configDatePicker()];case 1:e.sent();this.setupGridObserver();this.setupNavObserver();this.setupInputObserver();this.validateLocale();this.validateInline();this.addInputListener();this.syncDatePickerState();if(this.inline){requestAnimationFrame((function(){return t.enhanceAccessibility(false)}))}return[2]}}))}))};t.prototype.disconnectedCallback=function(){var t,e,i,r,a,n,o,s,c,u,d,l;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("keydown",this.handleTab,true);(e=this.titleBtn)===null||e===void 0?void 0:e.removeEventListener("click",this.forceTitleClickToYear);var h=(i=this.dpContainer)===null||i===void 0?void 0:i.querySelector(".air-datepicker-body--cells");h===null||h===void 0?void 0:h.removeEventListener("keydown",this.handleGridKeydown);(r=this.prevBtn)===null||r===void 0?void 0:r.removeEventListener("click",this.handlePrevNextClick);(a=this.nextBtn)===null||a===void 0?void 0:a.removeEventListener("click",this.handlePrevNextClick);(n=this.dpInput)===null||n===void 0?void 0:n.removeEventListener("focus",this.handleInputFocus);(o=this.dpInput)===null||o===void 0?void 0:o.removeEventListener("blur",this.handleInputBlur);(s=this.dpInput)===null||s===void 0?void 0:s.removeEventListener("pointerdown",this.handleInputPointerDown);(c=this.dpInput)===null||c===void 0?void 0:c.removeEventListener("input",this.handleInputEvent);(u=this.gridObserver)===null||u===void 0?void 0:u.disconnect();(d=this.navObserver)===null||d===void 0?void 0:d.disconnect();(l=this.inputObserver)===null||l===void 0?void 0:l.disconnect();if(this.dpInstance){this.dpInstance.destroy();this.dpInstance=null}};t.prototype.render=function(){var t=this;return r(a,{key:"293a82ed807ffe0443317a5534bc4e2ca11f676c","data-version":o},this.inline&&r("div",{key:"13503d5121c39ce307b35a97ef3410524568cdf6",dir:this.textDirection},r("slot",{key:"0152826611c79e882b5f1f5053b739ed1f452f05"}),r("div",{key:"11cd2af34d7cf6802553ceb9930f41d0e5dafa36",class:"datepicker-container"})),!this.inline&&r("div",{key:"8280d8fa31cd29c4737566b18bd3a8c851f6a3b3",dir:this.textDirection},r("div",{key:"5713fcf1ccd43fa76e9baec6e2d93974b695330a",class:{"calendar-input":!this.range,"calendar-input-range":this.range,disabled:this.inputDisabled}},r("slot",{key:"7de3f76b97673ca346dd576201f796d9094a71b6"}),r("button",{key:"156264741b3ae07aa40bb34fc5035ffac323615f",onClick:function(){return t.show()},"aria-haspopup":"true","aria-label":this.textToggleCalendar,disabled:this.inputDisabled,ref:function(e){return t.dpTrigger=e}},r("post-icon",{key:"3a22345a894f264965caac4dbbeb15f3ac18b7ec",name:"calendar"}))),r("post-popovercontainer",{key:"53ebbbade8e86372c8c35e4f7b96de9f485bd670",placement:"bottom-end",offset:Rt.FLYOUT_OFFSET,ref:function(e){return t.popoverRef=e}},r("div",{key:"b56936cef7488616ad8fdace9f642c0fe66105e9",class:"datepicker-container"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],min:[{updateMin:0}],max:[{updateMax:0}],inline:[{validateInline:0}]}},enumerable:false,configurable:true});return t}(),function(){f.FLYOUT_OFFSET=4}(),function(){f.COLUMNS_BY_VIEW={days:7,months:4,years:4}}(),f));Vt([p(),b()],Rt.prototype,"min",void 0);Vt([p(),b()],Rt.prototype,"max",void 0);Vt([l(),h("string")],Rt.prototype,"textNextMonth",void 0);Vt([l(),h("string")],Rt.prototype,"textNextYear",void 0);Vt([l(),h("string")],Rt.prototype,"textNextDecade",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousMonth",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousYear",void 0);Vt([l(),h("string")],Rt.prototype,"textPreviousDecade",void 0);Vt([l(),h("string")],Rt.prototype,"textSwitchYear",void 0);Vt([l({when:"inline",truthy:false}),h("string")],Rt.prototype,"textToggleCalendar",void 0);Rt.style=It()}}}));
|