@paperless/core 2.22.0-alpha.27 → 2.22.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/build/index.esm.js +1 -1
  2. package/dist/{paperless/p-84c43a3d.entry.js → build/p-1c17ee9b.entry.js} +1 -1
  3. package/dist/build/p-25961586.entry.js +1 -0
  4. package/dist/{paperless/p-9f51b9dc.entry.js → build/p-260a97c9.entry.js} +1 -1
  5. package/dist/build/{p-44da0b12.entry.js → p-2a37b400.entry.js} +1 -1
  6. package/dist/build/{p-fff6fa7a.entry.js → p-31399606.entry.js} +1 -1
  7. package/dist/build/{p-fa519af0.js → p-5f422b65.js} +1 -1
  8. package/dist/build/p-60923e39.entry.js +1 -0
  9. package/dist/{paperless/p-d24f045f.entry.js → build/p-6aa93bf9.entry.js} +1 -1
  10. package/dist/build/{p-e51c1cd6.entry.js → p-70974f53.entry.js} +1 -1
  11. package/dist/build/p-75ba802e.entry.js +3 -0
  12. package/dist/build/{p-b781e8db.entry.js → p-8c1bf7ea.entry.js} +1 -1
  13. package/dist/{paperless/p-7d018d4d.entry.js → build/p-9e06356b.entry.js} +1 -1
  14. package/dist/build/p-B_lDCj8j.js +1 -0
  15. package/dist/build/p-CeBIrPPx.js +1 -0
  16. package/dist/build/{p-78b15121.entry.js → p-a6369294.entry.js} +1 -1
  17. package/dist/build/p-a9c0aab3.entry.js +1 -0
  18. package/dist/build/p-b85ee4b7.entry.js +1 -0
  19. package/dist/build/{p-76f83633.entry.js → p-ba7ccf80.entry.js} +1 -1
  20. package/dist/build/{p-524eb1cb.entry.js → p-c16870f5.entry.js} +1 -1
  21. package/dist/build/{p-17e598ac.entry.js → p-cf436a7d.entry.js} +1 -1
  22. package/dist/build/{p-0d6f3aa3.entry.js → p-cfbd02e6.entry.js} +1 -1
  23. package/dist/build/{p-cbeb58ba.entry.js → p-e907c9d3.entry.js} +1 -1
  24. package/dist/build/{p-d9b3ace4.entry.js → p-ee7858e4.entry.js} +1 -1
  25. package/dist/build/{p-23cc6b6b.entry.js → p-f1c6f25b.entry.js} +1 -1
  26. package/dist/{paperless/p-5abcc8d2.entry.js → build/p-f5be155f.entry.js} +1 -1
  27. package/dist/build/p-xs4N_Y-0.js +1 -0
  28. package/dist/build/paperless.esm.js +1 -1
  29. package/dist/cjs/{cn-BGmLaIp8.js → cn-Cd68UVBT.js} +30 -274
  30. package/dist/cjs/{floating-ui.dom-33QlkSyu.js → floating-ui.dom-DEq7yeQK.js} +91 -50
  31. package/dist/cjs/index.cjs.js +1 -1
  32. package/dist/cjs/locale-BIZDGOk_.js +75117 -0
  33. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  34. package/dist/cjs/p-attachment.cjs.entry.js +1 -1
  35. package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
  36. package/dist/cjs/p-button_3.cjs.entry.js +6 -6
  37. package/dist/cjs/p-calendar.cjs.entry.js +75 -302
  38. package/dist/cjs/p-card-container.cjs.entry.js +1 -1
  39. package/dist/cjs/p-checkbox_3.cjs.entry.js +2 -2
  40. package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
  41. package/dist/cjs/p-cropper.cjs.entry.js +88 -32
  42. package/dist/cjs/p-datepicker.cjs.entry.js +41 -2891
  43. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +1 -1
  45. package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -18
  46. package/dist/cjs/p-field_3.cjs.entry.js +1 -1
  47. package/dist/cjs/p-illustration.cjs.entry.js +1 -1
  48. package/dist/cjs/p-label.cjs.entry.js +1 -1
  49. package/dist/cjs/p-listing.cjs.entry.js +1 -1
  50. package/dist/cjs/p-navigation-item.cjs.entry.js +1 -1
  51. package/dist/cjs/p-pagination_3.cjs.entry.js +2 -2
  52. package/dist/cjs/p-select.cjs.entry.js +1 -1
  53. package/dist/cjs/p-table.cjs.entry.js +1 -1
  54. package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
  55. package/dist/collection/components/atoms/loader/loader.component.js +1 -1
  56. package/dist/collection/components/molecules/button/button.component.js +8 -7
  57. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -2
  58. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  59. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/{p-BtuWYjfq.js → p--JDhF4GL.js} +1 -1
  62. package/dist/components/{p-DW-MndqD.js → p-0y7dmBHx.js} +1 -1
  63. package/dist/components/{p-DxmwiGc9.js → p-B4tCVctO.js} +1 -1
  64. package/dist/components/{p-LfH4pSix.js → p-BA1QFuzs.js} +1 -1
  65. package/dist/components/{p-Bno5n2sV.js → p-BBmuctek.js} +1 -1
  66. package/dist/components/p-BE2DRulM.js +1 -0
  67. package/dist/components/{p-Dbt4VuQm.js → p-BPP8ZYwN.js} +1 -1
  68. package/dist/components/{p-BeiMfpUZ.js → p-BV-h5ALt.js} +1 -1
  69. package/dist/components/{p-C_dax2wr.js → p-BX8yg_1a.js} +1 -1
  70. package/dist/components/{p-CjI4hMLv.js → p-BaXKEl7X.js} +1 -1
  71. package/dist/components/{p-BfJQbKrn.js → p-CCvROjOe.js} +1 -1
  72. package/dist/components/p-CHydrUrt.js +1 -0
  73. package/dist/components/{p-Bi6PK1YV.js → p-CccN0jY7.js} +1 -1
  74. package/dist/components/p-CeBIrPPx.js +1 -0
  75. package/dist/components/{p-BMb-TnTI.js → p-Coxruux_.js} +1 -1
  76. package/dist/components/{p-B9n8mzrj.js → p-DAuzJ_qL.js} +1 -1
  77. package/dist/components/{p-BAIZ48ms.js → p-DZjr9R4d.js} +1 -1
  78. package/dist/components/{p-BBNOzE00.js → p-Djf2rBRX.js} +1 -1
  79. package/dist/components/p-Dl4hxOHI.js +1 -0
  80. package/dist/components/{p-BIQLsxW1.js → p-DuYGcgJi.js} +1 -1
  81. package/dist/components/{p-CFu8cH3m.js → p-DxNTB_Qq.js} +1 -1
  82. package/dist/components/{p-CgOKCXab.js → p-JhZXmipA.js} +1 -1
  83. package/dist/components/{p-ChfXIxTQ.js → p-KuL1SNit.js} +1 -1
  84. package/dist/components/p-accordion.js +1 -1
  85. package/dist/components/p-attachment.js +1 -1
  86. package/dist/components/p-button.js +1 -1
  87. package/dist/components/p-calendar.js +1 -1
  88. package/dist/components/p-card-container.js +1 -1
  89. package/dist/components/p-card-header.js +1 -1
  90. package/dist/components/p-content-slider.js +1 -1
  91. package/dist/components/p-cropper.js +2 -2
  92. package/dist/components/p-datepicker.js +1 -1
  93. package/dist/components/p-divider.js +1 -1
  94. package/dist/components/p-drawer-header.js +1 -1
  95. package/dist/components/p-drawer.js +1 -1
  96. package/dist/components/p-dropdown-menu-item.js +1 -1
  97. package/dist/components/p-dropdown.js +1 -1
  98. package/dist/components/p-empty-state.js +1 -1
  99. package/dist/components/p-field-container.js +1 -1
  100. package/dist/components/p-field.js +1 -1
  101. package/dist/components/p-floating-menu-container.js +1 -1
  102. package/dist/components/p-helper.js +1 -1
  103. package/dist/components/p-illustration.js +1 -1
  104. package/dist/components/p-label.js +1 -1
  105. package/dist/components/p-listing.js +1 -1
  106. package/dist/components/p-modal-footer.js +1 -1
  107. package/dist/components/p-modal-header.js +1 -1
  108. package/dist/components/p-modal.js +1 -1
  109. package/dist/components/p-navbar.js +1 -1
  110. package/dist/components/p-navigation-item.js +1 -1
  111. package/dist/components/p-pagination-pages.js +1 -1
  112. package/dist/components/p-pagination-size.js +1 -1
  113. package/dist/components/p-pagination.js +1 -1
  114. package/dist/components/{p-PFAC3Kay.js → p-prb4IQlb.js} +1 -1
  115. package/dist/components/p-profile.js +1 -1
  116. package/dist/components/p-segment-item.js +1 -1
  117. package/dist/components/p-select.js +1 -1
  118. package/dist/components/{p-CCOwunss.js → p-swqKzLDH.js} +1 -1
  119. package/dist/components/p-tab-container.js +1 -1
  120. package/dist/components/p-table-cell.js +1 -1
  121. package/dist/components/p-table-footer.js +1 -1
  122. package/dist/components/p-table-header.js +1 -1
  123. package/dist/components/p-table-row-actions-container.js +1 -1
  124. package/dist/components/p-table-row.js +1 -1
  125. package/dist/components/p-table.js +1 -1
  126. package/dist/components/p-tooltip.js +1 -1
  127. package/dist/components/p-xs4N_Y-0.js +1 -0
  128. package/dist/esm/{cn-BniKgfyU.js → cn-CsNqHcjL.js} +30 -274
  129. package/dist/esm/{floating-ui.dom-DGLCmOXW.js → floating-ui.dom-CeBIrPPx.js} +91 -50
  130. package/dist/esm/index.js +1 -1
  131. package/dist/esm/locale-B_lDCj8j.js +75114 -0
  132. package/dist/esm/p-accordion.entry.js +1 -1
  133. package/dist/esm/p-attachment.entry.js +1 -1
  134. package/dist/esm/p-badge_3.entry.js +1 -1
  135. package/dist/esm/p-button_3.entry.js +6 -6
  136. package/dist/esm/p-calendar.entry.js +63 -290
  137. package/dist/esm/p-card-container.entry.js +1 -1
  138. package/dist/esm/p-checkbox_3.entry.js +2 -2
  139. package/dist/esm/p-content-slider.entry.js +1 -1
  140. package/dist/esm/p-cropper.entry.js +88 -32
  141. package/dist/esm/p-datepicker.entry.js +37 -2887
  142. package/dist/esm/p-divider.entry.js +1 -1
  143. package/dist/esm/p-dropdown-menu-item_2.entry.js +1 -1
  144. package/dist/esm/p-empty-state_8.entry.js +12 -18
  145. package/dist/esm/p-field_3.entry.js +1 -1
  146. package/dist/esm/p-illustration.entry.js +1 -1
  147. package/dist/esm/p-label.entry.js +1 -1
  148. package/dist/esm/p-listing.entry.js +1 -1
  149. package/dist/esm/p-navigation-item.entry.js +1 -1
  150. package/dist/esm/p-pagination_3.entry.js +2 -2
  151. package/dist/esm/p-select.entry.js +1 -1
  152. package/dist/esm/p-table.entry.js +1 -1
  153. package/dist/esm/p-tooltip.entry.js +1 -1
  154. package/dist/index.html +1 -1
  155. package/dist/paperless/index.esm.js +1 -1
  156. package/dist/{build/p-84c43a3d.entry.js → paperless/p-1c17ee9b.entry.js} +1 -1
  157. package/dist/paperless/p-25961586.entry.js +1 -0
  158. package/dist/{build/p-9f51b9dc.entry.js → paperless/p-260a97c9.entry.js} +1 -1
  159. package/dist/paperless/{p-44da0b12.entry.js → p-2a37b400.entry.js} +1 -1
  160. package/dist/paperless/{p-fff6fa7a.entry.js → p-31399606.entry.js} +1 -1
  161. package/dist/paperless/p-60923e39.entry.js +1 -0
  162. package/dist/{build/p-d24f045f.entry.js → paperless/p-6aa93bf9.entry.js} +1 -1
  163. package/dist/paperless/{p-e51c1cd6.entry.js → p-70974f53.entry.js} +1 -1
  164. package/dist/paperless/p-75ba802e.entry.js +3 -0
  165. package/dist/paperless/{p-b781e8db.entry.js → p-8c1bf7ea.entry.js} +1 -1
  166. package/dist/{build/p-7d018d4d.entry.js → paperless/p-9e06356b.entry.js} +1 -1
  167. package/dist/paperless/p-B_lDCj8j.js +1 -0
  168. package/dist/paperless/p-CeBIrPPx.js +1 -0
  169. package/dist/paperless/{p-78b15121.entry.js → p-a6369294.entry.js} +1 -1
  170. package/dist/paperless/p-a9c0aab3.entry.js +1 -0
  171. package/dist/paperless/p-b85ee4b7.entry.js +1 -0
  172. package/dist/paperless/{p-76f83633.entry.js → p-ba7ccf80.entry.js} +1 -1
  173. package/dist/paperless/{p-524eb1cb.entry.js → p-c16870f5.entry.js} +1 -1
  174. package/dist/paperless/{p-17e598ac.entry.js → p-cf436a7d.entry.js} +1 -1
  175. package/dist/paperless/{p-0d6f3aa3.entry.js → p-cfbd02e6.entry.js} +1 -1
  176. package/dist/paperless/{p-cbeb58ba.entry.js → p-e907c9d3.entry.js} +1 -1
  177. package/dist/paperless/{p-d9b3ace4.entry.js → p-ee7858e4.entry.js} +1 -1
  178. package/dist/paperless/{p-23cc6b6b.entry.js → p-f1c6f25b.entry.js} +1 -1
  179. package/dist/{build/p-5abcc8d2.entry.js → paperless/p-f5be155f.entry.js} +1 -1
  180. package/dist/paperless/p-xs4N_Y-0.js +1 -0
  181. package/dist/paperless/paperless.esm.js +1 -1
  182. package/dist/sw.js +1 -1
  183. package/dist/sw.js.map +1 -1
  184. package/dist/types/components/molecules/button/button.component.d.ts +1 -1
  185. package/dist/types/components.d.ts +3 -1
  186. package/dist/workbox-d13932f0.js +1 -1
  187. package/dist/workbox-d13932f0.js.map +1 -1
  188. package/hydrate/index.js +75313 -6268
  189. package/hydrate/index.mjs +75313 -6268
  190. package/package.json +10 -11
  191. package/dist/build/p-1f7ab568.entry.js +0 -1
  192. package/dist/build/p-20077155.entry.js +0 -1
  193. package/dist/build/p-3452b2f5.entry.js +0 -3
  194. package/dist/build/p-CT54OXR2.js +0 -1
  195. package/dist/build/p-DGLCmOXW.js +0 -1
  196. package/dist/build/p-KEbntKvf.js +0 -1
  197. package/dist/build/p-b090e928.entry.js +0 -1
  198. package/dist/build/p-bafe9297.entry.js +0 -1
  199. package/dist/cjs/index-DG6V15XP.js +0 -2871
  200. package/dist/components/p-CPpl-J0y.js +0 -1
  201. package/dist/components/p-CT54OXR2.js +0 -1
  202. package/dist/components/p-D4bALv5t.js +0 -1
  203. package/dist/components/p-DGLCmOXW.js +0 -1
  204. package/dist/components/p-DeSgaQxj.js +0 -1
  205. package/dist/esm/index-KEbntKvf.js +0 -2839
  206. package/dist/paperless/p-1f7ab568.entry.js +0 -1
  207. package/dist/paperless/p-20077155.entry.js +0 -1
  208. package/dist/paperless/p-3452b2f5.entry.js +0 -3
  209. package/dist/paperless/p-CT54OXR2.js +0 -1
  210. package/dist/paperless/p-DGLCmOXW.js +0 -1
  211. package/dist/paperless/p-KEbntKvf.js +0 -1
  212. package/dist/paperless/p-b090e928.entry.js +0 -1
  213. package/dist/paperless/p-bafe9297.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,a as e,d as r,h as n}from"./p-BDccsg1s.js";import{s as i}from"./p-Jt5e0RAn.js";import{c as a}from"./p-TyZ7uPES.js";import{i as o}from"./p-DPc49L2n.js";import{a as u}from"./p-C5CTp9IA.js";import{r as s,t as c,_ as l,g as f,s as h,a as d,b as v,c as w,d as y,e as p,l as b,f as m,h as k,i as g,j as x,k as T,m as D,n as M,o as A,p as E,q as I,u as q,v as R,w as L,x as Q,y as j,z as _,A as B,B as S,C as O}from"./p-KEbntKvf.js";function Y(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function N(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return C(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(t,e):void 0}}(t))||e){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function G(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X(t,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},X(t,e)}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X(t,e)}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function K(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(K=function(){return!!t})()}function z(t){var e=K();return function(){var r,n=H(t);if(e){var i=H(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return G(t)}(this,r)}}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function F(t,e){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function V(t,e,r){return(e=Z(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $=function(){function t(){W(this,t),V(this,"priority",void 0),V(this,"subPriority",0)}return F(t,[{key:"validate",value:function(){return!0}}]),t}(),J=function(){P(e,$);var t=z(e);function e(r,n,i,a,o){var u;return W(this,e),(u=t.call(this)).value=r,u.validateValue=n,u.setValue=i,u.priority=a,o&&(u.subPriority=o),u}return F(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,r){return this.setValue(t,e,this.value,r)}}]),e}(),U=function(){P(e,$);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",10),V(G(r),"subPriority",-1),r}return F(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var r=new Date(0);return r.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),r.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),r}}]),e}(),tt=function(){function t(){W(this,t),V(this,"incompatibleTokens",void 0),V(this,"priority",void 0),V(this,"subPriority",void 0)}return F(t,[{key:"run",value:function(t,e,r,n){var i=this.parse(t,e,r,n);return i?{setter:new J(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),et=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",140),V(G(r),"incompatibleTokens",["R","u","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,r){return e.era=r,t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),rt=/^(1[0-2]|0?\d)/,nt=/^(3[0-1]|[0-2]?\d)/,it=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,at=/^(5[0-3]|[0-4]?\d)/,ot=/^(2[0-3]|[0-1]?\d)/,ut=/^(2[0-4]|[0-1]?\d)/,st=/^(1[0-1]|0?\d)/,ct=/^(1[0-2]|0?\d)/,lt=/^[0-5]?\d/,ft=/^[0-5]?\d/,ht=/^\d/,dt=/^\d{1,2}/,vt=/^\d{1,3}/,wt=/^\d{1,4}/,yt=/^-?\d+/,pt=/^-?\d/,bt=/^-?\d{1,2}/,mt=/^-?\d{1,3}/,kt=/^-?\d{1,4}/,gt=/^([+-])(\d{2})(\d{2})?|Z/,xt=/^([+-])(\d{2})(\d{2})|Z/,Tt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Dt=/^([+-])(\d{2}):(\d{2})|Z/,Mt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function At(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Et(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function It(t,e){var r=e.match(t);return r?"Z"===r[0]?{value:0,rest:e.slice(1)}:{value:("+"===r[1]?1:-1)*(36e5*(r[2]?parseInt(r[2],10):0)+6e4*(r[3]?parseInt(r[3],10):0)+1e3*(r[5]?parseInt(r[5],10):0)),rest:e.slice(r[0].length)}:null}function qt(t){return Et(yt,t)}function Rt(t,e){switch(t){case 1:return Et(ht,e);case 2:return Et(dt,e);case 3:return Et(vt,e);case 4:return Et(wt,e);default:return Et(new RegExp("^\\d{1,"+t+"}"),e)}}function Lt(t,e){switch(t){case 1:return Et(pt,e);case 2:return Et(bt,e);case 3:return Et(mt,e);case 4:return Et(kt,e);default:return Et(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Qt(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function jt(t,e){var r,n=e>0,i=n?e:1-e;if(i<=50)r=t||100;else{var a=i+50;r=t+100*Math.floor(a/100)-(t>=a%100?100:0)}return n?r:1-r}function _t(t){return t%400==0||t%4==0&&t%100!=0}var Bt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",130),V(G(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return At(Rt(4,t),n);case"yo":return At(r.ordinalNumber(t,{unit:"year"}),n);default:return At(Rt(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r){var n=t.getUTCFullYear();if(r.isTwoDigitYear){var i=jt(r.year,n);return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-r.year:r.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),St=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",130),V(G(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return At(Rt(4,t),n);case"Yo":return At(r.ordinalNumber(t,{unit:"year"}),n);default:return At(Rt(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,r,n){var i=f(t,n);if(r.isTwoDigitYear){var a=jt(r.year,i);return t.setUTCFullYear(a,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),h(t,n)}return t.setUTCFullYear("era"in e&&1!==e.era?1-r.year:r.year,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),h(t,n)}}]),e}(),Ot=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",130),V(G(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e){return Lt("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),d(n)}}]),e}(),Yt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",130),V(G(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e){return Lt("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,r){return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ct=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",120),V(G(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"Q":case"QQ":return Rt(e.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),Nt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",120),V(G(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"q":case"qq":return Rt(e.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,r){return t.setUTCMonth(3*(r-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),Gt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),V(G(r),"priority",110),r}return F(e,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"M":return At(Et(rt,t),n);case"MM":return At(Rt(2,t),n);case"Mo":return At(r.ordinalNumber(t,{unit:"month"}),n);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Xt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",110),V(G(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){var n=function(t){return t-1};switch(e){case"L":return At(Et(rt,t),n);case"LL":return At(Rt(2,t),n);case"Lo":return At(r.ordinalNumber(t,{unit:"month"}),n);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){return t.setUTCMonth(r,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Pt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",100),V(G(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"w":return Et(at,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r,n){return h(function(t,e,r){s(2,arguments);var n=c(t),i=w(e),a=v(n,r)-i;return n.setUTCDate(n.getUTCDate()-7*a),n}(t,r,n),n)}}]),e}(),Ht=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",100),V(G(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"I":return Et(at,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,r){return d(function(t,e){s(2,arguments);var r=c(t),n=w(e),i=y(r)-n;return r.setUTCDate(r.getUTCDate()-7*i),r}(t,r))}}]),e}(),Kt=[31,28,31,30,31,30,31,31,30,31,30,31],zt=[31,29,31,30,31,30,31,31,30,31,30,31],Wt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"subPriority",1),V(G(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"d":return Et(nt,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){var r=_t(t.getUTCFullYear()),n=t.getUTCMonth();return r?e>=1&&e<=zt[n]:e>=1&&e<=Kt[n]}},{key:"set",value:function(t,e,r){return t.setUTCDate(r),t.setUTCHours(0,0,0,0),t}}]),e}(),Zt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"subpriority",1),V(G(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"D":case"DD":return Et(it,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return _t(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,r){return t.setUTCMonth(0,r),t.setUTCHours(0,0,0,0),t}}]),e}();function Ft(t,e,r){var n,i,a,o,u,l,f,h;s(2,arguments);var d=p(),v=w(null!==(n=null!==(i=null!==(a=null!==(o=null==r?void 0:r.weekStartsOn)&&void 0!==o?o:null==r||null===(u=r.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:d.weekStartsOn)&&void 0!==i?i:null===(f=d.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=c(t),b=w(e),m=((b%7+7)%7<v?7:0)+b-y.getUTCDay();return y.setUTCDate(y.getUTCDate()+m),y}var Vt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Ft(t,r,n)).setUTCHours(0,0,0,0),t}}]),e}(),$t=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r,n){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return At(Rt(e.length,t),i);case"eo":return At(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Ft(t,r,n)).setUTCHours(0,0,0,0),t}}]),e}(),Jt=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r,n){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return At(Rt(e.length,t),i);case"co":return At(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,r,n){return(t=Ft(t,r,n)).setUTCHours(0,0,0,0),t}}]),e}(),Ut=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",90),V(G(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Rt(e.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return At(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return At(r.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return At(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n);default:return At(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,r){return t=function(t,e){s(2,arguments);var r=w(e);r%7==0&&(r-=7);var n=c(t),i=((r%7+7)%7<1?7:0)+r-n.getUTCDay();return n.setUTCDate(n.getUTCDate()+i),n}(t,r),t.setUTCHours(0,0,0,0),t}}]),e}(),te=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",80),V(G(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(Qt(r),0,0,0),t}}]),e}(),ee=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",80),V(G(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(Qt(r),0,0,0),t}}]),e}(),re=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",80),V(G(r),"incompatibleTokens",["a","b","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,r){return t.setUTCHours(Qt(r),0,0,0),t}}]),e}(),ne=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",70),V(G(r),"incompatibleTokens",["H","K","k","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"h":return Et(ct,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,r){var n=t.getUTCHours()>=12;return t.setUTCHours(n&&r<12?r+12:n||12!==r?r:0,0,0,0),t}}]),e}(),ie=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",70),V(G(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"H":return Et(ot,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,r){return t.setUTCHours(r,0,0,0),t}}]),e}(),ae=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",70),V(G(r),"incompatibleTokens",["h","H","k","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"K":return Et(st,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,r){var n=t.getUTCHours()>=12;return t.setUTCHours(n&&r<12?r+12:r,0,0,0),t}}]),e}(),oe=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",70),V(G(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"k":return Et(ut,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,r){return t.setUTCHours(r<=24?r%24:r,0,0,0),t}}]),e}(),ue=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",60),V(G(r),"incompatibleTokens",["t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"m":return Et(lt,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCMinutes(r,0,0),t}}]),e}(),se=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",50),V(G(r),"incompatibleTokens",["t","T"]),r}return F(e,[{key:"parse",value:function(t,e,r){switch(e){case"s":return Et(ft,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return Rt(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,r){return t.setUTCSeconds(r,0),t}}]),e}(),ce=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",30),V(G(r),"incompatibleTokens",["t","T"]),r}return F(e,[{key:"parse",value:function(t,e){return At(Rt(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,r){return t.setUTCMilliseconds(r),t}}]),e}(),le=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",10),V(G(r),"incompatibleTokens",["t","T","x"]),r}return F(e,[{key:"parse",value:function(t,e){switch(e){case"X":return It(gt,t);case"XX":return It(xt,t);case"XXXX":return It(Tt,t);case"XXXXX":return It(Mt,t);default:return It(Dt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),e}(),fe=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",10),V(G(r),"incompatibleTokens",["t","T","X"]),r}return F(e,[{key:"parse",value:function(t,e){switch(e){case"x":return It(gt,t);case"xx":return It(xt,t);case"xxxx":return It(Tt,t);case"xxxxx":return It(Mt,t);default:return It(Dt,t)}}},{key:"set",value:function(t,e,r){return e.timestampIsSet?t:new Date(t.getTime()-r)}}]),e}(),he=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",40),V(G(r),"incompatibleTokens","*"),r}return F(e,[{key:"parse",value:function(t){return qt(t)}},{key:"set",value:function(t,e,r){return[new Date(1e3*r),{timestampIsSet:!0}]}}]),e}(),de=function(){P(e,tt);var t=z(e);function e(){var r;W(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return V(G(r=t.call.apply(t,[this].concat(i))),"priority",20),V(G(r),"incompatibleTokens","*"),r}return F(e,[{key:"parse",value:function(t){return qt(t)}},{key:"set",value:function(t,e,r){return[new Date(r),{timestampIsSet:!0}]}}]),e}(),ve={G:new et,y:new Bt,Y:new St,R:new Ot,u:new Yt,Q:new Ct,q:new Nt,M:new Gt,L:new Xt,w:new Pt,I:new Ht,d:new Wt,D:new Zt,E:new Vt,e:new $t,c:new Jt,i:new Ut,a:new te,b:new ee,B:new re,h:new ne,H:new ie,K:new ae,k:new oe,m:new ue,s:new se,S:new ce,X:new le,x:new fe,t:new he,T:new de},we=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ye=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pe=/^'([^]*?)'?$/,be=/''/g,me=/\S/,ke=/[a-zA-Z]/;function ge(t,e,r,n){var i,a,o,u,f,h,d,v,y;s(3,arguments);var M=String(t),A=String(e),E=p(),I=null!==(i=E.locale)&&void 0!==i?i:b;if(!I.match)throw new RangeError("locale must contain match property");var q=w(null!==(a=null!==(o=E.firstWeekContainsDate)&&void 0!==o?o:null===(u=E.locale)||void 0===u||null===(f=u.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==a?a:1);if(!(q>=1&&q<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=w(null!==(h=null!==(d=E.weekStartsOn)&&void 0!==d?d:null===(v=E.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==h?h:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===A)return""===M?c(r):new Date(NaN);var L,Q={firstWeekContainsDate:q,weekStartsOn:R,locale:I},j=[new U],_=A.match(ye).map((function(t){var e=t[0];return e in m?(0,m[e])(t,I.formatLong):t})).join("").match(we),B=[],S=N(_);try{var O=function(){var e=L.value;x(e)&&T(e,A,t),D(e)&&T(e,A,t);var r=e[0],n=ve[r];if(n){var i=n.incompatibleTokens;if(Array.isArray(i)){var a=B.find((function(t){return i.includes(t.token)||t.token===r}));if(a)throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===n.incompatibleTokens&&B.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));B.push({token:r,fullToken:e});var o=n.run(M,e,I.match,Q);if(!o)return{v:new Date(NaN)};j.push(o.setter),M=o.rest}else{if(r.match(ke))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");if("''"===e?e="'":"'"===r&&(e=e.match(pe)[1].replace(be,"'")),0!==M.indexOf(e))return{v:new Date(NaN)};M=M.slice(e.length)}};for(S.s();!(L=S.n()).done;){var C=O();if("object"===l(C))return C.v}}catch(t){S.e(t)}finally{S.f()}if(M.length>0&&me.test(M))return new Date(NaN);var G=j.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,r){return r.indexOf(t)===e})).map((function(t){return j.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),X=c(r);if(isNaN(X.getTime()))return new Date(NaN);var P,H=k(X,g(X)),K={},z=N(G);try{for(z.s();!(P=z.n()).done;){var W=P.value;if(!W.validate(H,Q))return new Date(NaN);var Z=W.set(H,K,Q);Array.isArray(Z)?(H=Z[0],Y(K,Z[1])):H=Z}}catch(t){z.e(t)}finally{z.f()}return H}const xe=class{constructor(r){t(this,r),this.valueChange=e(this,"valueChange",3),r.$hostElement$["s-ei"]?this._internals=r.$hostElement$["s-ei"]:(this._internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this._internals)}placeholder;value;preselectToday=!1;enableNativePicker=!0;disabledDates;minDate=null;maxDate=null;disableWeekends=!1;enableToday=!0;todayText="today";mode="day";valueChange;format="dd-MM-yyyy";hideIconWhenFilled=!1;size="base";prefix;label;loading=!1;helper;required;showOptional=!0;error;disabled=!1;strategy="absolute";placement="bottom-start";get _el(){return r(this)}_showDropdown=!1;_value;_minDate;_maxDate;_disabledDates=[];_isMobileBrowser=!1;_internals;_onInputTimeout;_inputRef;_dateInputRef;_defaultFormats={year:"yyyy",month:"LLLL, yyyy",day:"dd-MM-yyyy",dayNoDashes:"ddMMyyyy"};parseValue(t){!t&&this.preselectToday&&(t=new Date),"string"==typeof t&&(t=new Date(t)),this._setValue(t)}parseMinDate(t){null!==t&&""!==t?("string"==typeof t&&(t=new Date(t)),E(t)&&(this._minDate=t,I(this._value,this._minDate)&&this._setValue(null))):this.minDate=new Date(M(A(new Date,100)),0,1)}parseMaxDate(t){null!==t&&""!==t?("string"==typeof t&&(t=new Date(t)),E(t)&&(this._maxDate=t,q(this._value,this._maxDate)&&this._setValue(null))):this.maxDate=this._getAutomaticMax()}parseDisabledDates(t){"string"==typeof t&&(t=JSON.parse(t)),t&&Array.isArray(t)&&(this._disabledDates=t.map((t=>"string"==typeof t?new Date(t):t)).filter((t=>E(t))),this._isDisabledDay(this._value)&&this._setValue(null))}formResetCallback(){this._setValue(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}componentWillLoad(){this.disabledDates&&this.parseDisabledDates(this.disabledDates),this.parseMinDate(this.minDate),this.parseMaxDate(this.maxDate),"day"!==this.mode&&this.format===this._defaultFormats.day&&(this.format=this._defaultFormats[this.mode]),this._isMobileBrowser=o(),this.parseValue(this.value)}render(){return n("p-dropdown",{key:"a01a3bf86a26c0b909a777941c002f8db1963210",allowOverflow:!0,strategy:this.strategy,placement:this.placement,disableTriggerClick:!0,applyMaxWidth:!1,applyFullWidth:!1,insideClick:!0,show:this._showDropdown,isDatepicker:!0},n("p-field",{key:"66141e393236efcc4ce8deb36ea3083eb8f1cbe8",slot:"trigger",icon:this.hideIconWhenFilled&&this._value?null:"calendar-multi",iconPosition:"start",size:this.size,prefix:this.prefix,label:this.label,loading:this.loading,helper:this.helper,required:u(this.required),showOptional:u(this.showOptional),error:this.error,forceShowTooltip:!!this.error?.length&&!this._showDropdown,autoShowError:!1,disabled:u(this.disabled),focused:this._showDropdown,value:this._getFormattedDate(),placeholder:this.placeholder,onFocus:()=>this._onFocus(),onBlur:t=>this._onBlur(t),onValueChange:t=>this._onValueChange(t.detail),onInputRefChange:t=>this._inputRef=t.detail}),this.enableNativePicker&&this._isMobileBrowser&&n("input",{key:"6c7d01a5c298b42d089ae18d06c6acb2659031cb",slot:"trigger",type:"day"===this.mode?"date":"month",class:"pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0",onInput:t=>this._onNativeInput(t),ref:t=>this._dateInputRef=t,value:this._value&&R(this._value,"yyyy-MM-dd",{locale:"nl"===i.locale?L:b}),min:this._minDate&&R(new Date(this._minDate),"yyyy-MM-dd",{locale:"nl"===i.locale?L:b}),max:this.maxDate&&R(new Date(this.maxDate),"yyyy-MM-dd",{locale:"nl"===i.locale?L:b})}),n("div",{key:"d5a32388cee9bb272905deb090816da8217e9a41",tabIndex:-1,slot:"items"},n("p-calendar",{key:"dce8bdd282632e2c38ebf13b3b07db561b27dffb",variant:"embedded",value:this._value,onValueChange:({detail:t})=>this.value=t,preselectToday:this.preselectToday,disabledDates:this.disabledDates,minDate:this.minDate,maxDate:this.maxDate,disableWeekends:this.disableWeekends,enableToday:this.enableToday,todayText:this.todayText,mode:this.mode})))}documentClickHandler({target:t}){this._showDropdown&&!a(t,this._el)&&(this._showDropdown=!1)}_onFocus(){if(this._isMobileBrowser&&this._dateInputRef)return this._dateInputRef.focus(),this._dateInputRef.showPicker(),void this._inputRef.blur();this._showDropdown=!0}_onBlur(t,e=this.format){if(this._isMobileBrowser&&this._dateInputRef)return;t.relatedTarget&&!a(t.relatedTarget,this._el)&&(this._showDropdown=!1);const r=this._inputRef;if(null===r.value)return;const n=ge(r.value,e,new Date);if(n===this._value)return;const i=E(n);if(!i&&e===this.format&&"day"===this.mode)return this._onBlur(t,this._defaultFormats.dayNoDashes);i&&!this._isDisabledDay(n)?this._setValue(n,!1):r.value=this._getFormattedDate()}_onValueChange(t,e=this.format){this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{if(0===t.length){if(null===this._value)return;return void this._setValue(null)}const r=ge(t,e,new Date);E(r)&&R(r,e,{locale:"nl"===i.locale?L:b})===t?this._setValue(r,!1):"day"===this.mode&&this._onValueChange(t,this._defaultFormats.dayNoDashes)}),300)}_onNativeInput(t){t.target&&(this._onInputTimeout&&(clearTimeout(this._onInputTimeout),this._onInputTimeout=null),this._onInputTimeout=setTimeout((()=>{this._setValue(""===t.target.value?null:new Date(t.target.value),!1)})))}_setValue(t,e=!0){if(null===t)return this._value=null,void this.valueChange.emit(null);E(t)&&(this._isDisabledDay(t)?this._dateInputRef?.value&&(this._dateInputRef.value=this._value?R(this._value,"yyyy-MM-dd",{locale:"nl"===i.locale?L:b}):null):(t="day"===this.mode?Q(t):"month"===this.mode?j(t):function(t){s(1,arguments);var e=c(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t),_(t,this._value)||(e&&(this._showDropdown=!1),this._value=t,this.valueChange.emit(t))))}_isDisabledDay(t){return this.disableWeekends&&B(t)||I(t,this._minDate)&&!_(t,this._minDate)||q(t,this._maxDate)&&!_(t,this._maxDate)||this._disabledDates.some((e=>_(e,t)))}_getFormattedDate(){return this._value?R(this._value,this.format,{locale:"nl"===i.locale?L:b}):""}_getAutomaticMax(){const t=S(new Date,50);let e=M(t);return e=10*Math.ceil(e/10),O(t,e)}static get formAssociated(){return!0}static get watchers(){return{value:[{parseValue:0}],minDate:[{parseMinDate:0}],maxDate:[{parseMaxDate:0}],disabledDates:[{parseDisabledDates:0}]}}};xe.style="*{box-sizing:border-box}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.left-0{left:0}.top-0{top:0}.z-\\[-10\\]{z-index:-10}.overflow-hidden{overflow:hidden}.opacity-0{opacity:0}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}";export{xe as p_datepicker}