genesys-spark-components 4.138.4 → 4.139.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.
Files changed (389) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-calendar-beta.cjs.entry.js +7 -2
  19. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-day-beta.cjs.entry.js +1 -2
  29. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +11 -2
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +10 -4
  33. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-modal-legacy.cjs.entry.js +2 -2
  65. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
  69. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-popover-beta.cjs.entry.js +7 -4
  75. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +2 -2
  95. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-toast.cjs.entry.js +2 -2
  113. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  115. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  117. package/dist/cjs/index.umd-57a066c7.js +5 -0
  118. package/dist/cjs/loader.cjs.js +1 -1
  119. package/dist/cjs/{usage-44465713.js → usage-b4888c7f.js} +2 -2
  120. package/dist/collection/components/beta/gux-popover-beta/gux-popover.js +27 -3
  121. package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +4 -4
  122. package/dist/collection/components/legacy/gux-modal-legacy/gux-modal-legacy.css +2 -24
  123. package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +8 -9
  124. package/dist/collection/components/legacy/gux-simple-toast-legacy/gux-simple-toast.css +7 -7
  125. package/dist/collection/components/legacy/gux-switch-legacy/gux-switch-item/gux-switch-item.css +9 -9
  126. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +9 -3
  127. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.js +10 -1
  128. package/dist/collection/components/stable/gux-toast/gux-toast.css +1 -0
  129. package/dist/esm/genesys-webcomponents.js +1 -1
  130. package/dist/esm/gux-accordion.entry.js +1 -1
  131. package/dist/esm/gux-action-button.entry.js +1 -1
  132. package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
  133. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  134. package/dist/esm/gux-announce-beta.entry.js +1 -1
  135. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  136. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  137. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  138. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  139. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  140. package/dist/esm/gux-badge.entry.js +1 -1
  141. package/dist/esm/gux-blank-state.entry.js +1 -1
  142. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  143. package/dist/esm/gux-button-multi.entry.js +1 -1
  144. package/dist/esm/gux-button-slot.entry.js +1 -1
  145. package/dist/esm/gux-button_2.entry.js +1 -1
  146. package/dist/esm/gux-calendar-beta.entry.js +7 -2
  147. package/dist/esm/gux-calendar.entry.js +1 -1
  148. package/dist/esm/gux-card.entry.js +1 -1
  149. package/dist/esm/gux-column-manager.entry.js +1 -1
  150. package/dist/esm/gux-content-search.entry.js +1 -1
  151. package/dist/esm/gux-context-menu.entry.js +1 -1
  152. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  153. package/dist/esm/gux-date-beta.entry.js +1 -1
  154. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  155. package/dist/esm/gux-datepicker.entry.js +1 -1
  156. package/dist/esm/gux-day-beta.entry.js +1 -2
  157. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  158. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  159. package/dist/esm/gux-dropdown-multi.entry.js +11 -2
  160. package/dist/esm/gux-dropdown_3.entry.js +10 -4
  161. package/dist/esm/gux-file-list-item.entry.js +1 -1
  162. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  163. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  164. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  165. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  166. package/dist/esm/gux-form-field-color.entry.js +1 -1
  167. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  168. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  169. package/dist/esm/gux-form-field-file.entry.js +1 -1
  170. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  171. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  172. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  173. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  174. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  175. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  176. package/dist/esm/gux-form-field-range.entry.js +1 -1
  177. package/dist/esm/gux-form-field-search.entry.js +1 -1
  178. package/dist/esm/gux-form-field-select.entry.js +1 -1
  179. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  180. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  181. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  182. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  183. package/dist/esm/gux-form-footer.entry.js +1 -1
  184. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  185. package/dist/esm/gux-icon.entry.js +1 -1
  186. package/dist/esm/gux-inline-alert.entry.js +1 -1
  187. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  188. package/dist/esm/gux-link-beta.entry.js +1 -1
  189. package/dist/esm/gux-list.entry.js +1 -1
  190. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  191. package/dist/esm/gux-loading-message.entry.js +1 -1
  192. package/dist/esm/gux-modal-legacy.entry.js +2 -2
  193. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  194. package/dist/esm/gux-modal.entry.js +1 -1
  195. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  196. package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
  197. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  198. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  199. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  200. package/dist/esm/gux-pagination.entry.js +1 -1
  201. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  202. package/dist/esm/gux-popover-beta.entry.js +7 -4
  203. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  204. package/dist/esm/gux-popover-list.entry.js +1 -1
  205. package/dist/esm/gux-radial-loading.entry.js +1 -1
  206. package/dist/esm/gux-radial-progress.entry.js +1 -1
  207. package/dist/esm/gux-rating.entry.js +1 -1
  208. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  209. package/dist/esm/gux-rich-style-list-item_3.entry.js +1 -1
  210. package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
  211. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
  212. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
  213. package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
  214. package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
  215. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  216. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  217. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  218. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  219. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  220. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  221. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  222. package/dist/esm/gux-simple-toast-legacy.entry.js +2 -2
  223. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  224. package/dist/esm/gux-sort-control.entry.js +1 -1
  225. package/dist/esm/gux-switch-item.entry.js +1 -1
  226. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  227. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  228. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  229. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  230. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  231. package/dist/esm/gux-table.entry.js +1 -1
  232. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  233. package/dist/esm/gux-tabs.entry.js +1 -1
  234. package/dist/esm/gux-tag.entry.js +1 -1
  235. package/dist/esm/gux-text-highlight.entry.js +1 -1
  236. package/dist/esm/gux-time-beta.entry.js +1 -1
  237. package/dist/esm/gux-time-picker.entry.js +1 -1
  238. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  239. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  240. package/dist/esm/gux-toast.entry.js +2 -2
  241. package/dist/esm/gux-toggle.entry.js +1 -1
  242. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  243. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  244. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  245. package/dist/esm/index.umd-ec35273e.js +3 -0
  246. package/dist/esm/loader.js +1 -1
  247. package/dist/esm/{usage-824390aa.js → usage-a92fed66.js} +2 -2
  248. package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
  249. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  250. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  251. package/dist/genesys-webcomponents/{p-b224b207.entry.js → p-0089df86.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-ee64819c.entry.js → p-01fa87f6.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-dcc8f269.entry.js → p-04b647b7.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-ddb81ce5.entry.js → p-05edb692.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-797c7c78.entry.js → p-0861a8b7.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-b1da26d9.entry.js → p-0884b848.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-51b21493.entry.js → p-0df51dab.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-6ac622ce.entry.js → p-0e5525f7.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-da78758e.entry.js → p-0fd84c4e.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-1e82aeb0.entry.js → p-120ff034.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/p-13a67141.entry.js +1 -0
  262. package/dist/genesys-webcomponents/p-13c7b514.entry.js +1 -0
  263. package/dist/genesys-webcomponents/{p-2f19d7e3.entry.js → p-1524406e.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-e948bc4a.entry.js → p-19bcfaff.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-a9f196ca.entry.js → p-21762ad7.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-55b6293d.entry.js → p-2257ccde.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-5a0242a4.entry.js → p-231d66ec.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-1a7e4c7c.entry.js → p-242982db.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-1f4f30b5.entry.js → p-2a0e7b5d.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-eea07895.entry.js → p-2d5e79ec.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-bb5f7658.entry.js → p-2f268fa4.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-107e61ff.entry.js → p-2fcf957a.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-afa1c646.entry.js → p-319f04a1.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-aee79d1f.entry.js → p-36112cec.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-9e30513e.entry.js → p-3869822f.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-f8eb6d38.entry.js → p-39faa356.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-1153742a.entry.js → p-3e3a3cd7.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-36ccda4d.entry.js → p-43aa6fef.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-661f4700.entry.js → p-44c9136a.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-6d30beaf.entry.js → p-45b5c99d.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/{p-483d6868.entry.js → p-4685c9d0.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-12eb2e05.entry.js → p-46d0aa2c.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-6f1847ad.entry.js → p-4b9b39d6.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-33065c15.entry.js → p-4f630660.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-cb33b806.entry.js → p-50ea232f.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-c03a68bd.entry.js → p-5238ec64.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-7ae6b1d2.entry.js → p-52d61a55.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-3cb2ab12.entry.js → p-5738bcd8.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-aa7992f2.entry.js → p-5d94adab.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/p-61b906b3.entry.js +1 -0
  291. package/dist/genesys-webcomponents/{p-b7a7837c.entry.js → p-658a238e.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-8080a4b1.entry.js → p-6615486d.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-00134486.entry.js → p-665edfa8.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-30681efb.entry.js → p-67307e16.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-17552b64.entry.js → p-68661820.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/p-6ab73548.entry.js +1 -0
  297. package/dist/genesys-webcomponents/p-6f6dc966.entry.js +1 -0
  298. package/dist/genesys-webcomponents/p-73bf1e03.entry.js +1 -0
  299. package/dist/genesys-webcomponents/{p-1187bca0.entry.js → p-778987c1.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-bbaa66f2.entry.js → p-78d5ad24.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-44efda7e.entry.js → p-791d11b5.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-ceefd706.entry.js → p-79d488e9.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-500ff032.entry.js → p-7a62b6c7.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-2b6e66b6.entry.js → p-7d5b4646.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-3650cb32.entry.js → p-7e1a4a93.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-c609d95e.entry.js → p-7f1e3f1e.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/p-836bf69d.js +1 -0
  308. package/dist/genesys-webcomponents/{p-783ad17d.entry.js → p-843516e2.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-40ccf97a.entry.js → p-84dfb446.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-c825e9c4.entry.js → p-8766e0b1.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-cf799ba1.entry.js → p-88057d54.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/p-889a3b01.entry.js +1 -0
  313. package/dist/genesys-webcomponents/{p-f70ae14a.entry.js → p-88aab2b0.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-8c036f3a.entry.js → p-899638ea.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-995592f3.entry.js → p-8c43c92b.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-9ffef377.entry.js → p-8d1f0df4.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/p-9034b7f9.entry.js +1 -0
  318. package/dist/genesys-webcomponents/{p-6f657d91.entry.js → p-908d67a3.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-37b6603a.entry.js → p-93c57e43.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-25a6b97e.entry.js → p-95478b0b.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/p-975b6d85.entry.js +1 -0
  322. package/dist/genesys-webcomponents/{p-176f5298.entry.js → p-9adfa8eb.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/p-9ce265cd.entry.js +1 -0
  324. package/dist/genesys-webcomponents/{p-5c692053.entry.js → p-9e8e6ad9.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-9b0f9f11.entry.js → p-a2b97ebe.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-82a822e4.entry.js → p-a5939f87.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-08527250.entry.js → p-a6525d13.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-55e7887c.entry.js → p-aeabc546.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-746d21b4.entry.js → p-af10ca0f.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-1dbaa2d8.entry.js → p-b08c9128.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-0532e7cc.entry.js → p-b1901446.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-1b419f1f.entry.js → p-b5074c28.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-82d47cc8.entry.js → p-b57b4ae3.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/{p-70d9fdc3.entry.js → p-b7119dc3.entry.js} +1 -1
  335. package/dist/genesys-webcomponents/{p-b52c3738.entry.js → p-b8101f77.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-3cd88672.entry.js → p-b8449365.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-3aaf5bb6.entry.js → p-b8c7ddda.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/p-bd24c72b.entry.js +1 -0
  339. package/dist/genesys-webcomponents/{p-66269c8d.entry.js → p-c15ef7b9.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-39aed2d2.entry.js → p-c208c21e.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-6891a5f2.entry.js → p-c32363b8.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/p-c401a953.entry.js +1 -0
  343. package/dist/genesys-webcomponents/{p-0625e2bd.entry.js → p-c5da8ef8.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-720e6587.entry.js → p-c6798a51.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-52b4b448.entry.js → p-cd04683e.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-176a279e.entry.js → p-d0d7e4c2.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-0b9d1b97.entry.js → p-d2d6084d.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-9e306c0d.entry.js → p-d3709bd1.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-7bb5cce8.entry.js → p-d52b2063.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-795b5d02.entry.js → p-d68f01eb.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/p-da9c7a78.entry.js +1 -0
  352. package/dist/genesys-webcomponents/{p-9d1bdc62.entry.js → p-dc10dfb7.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-b68c07b8.entry.js → p-e40672f0.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-d80b71e5.entry.js → p-e45c6915.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-711b1ad9.entry.js → p-e80923e7.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-b9a387a9.entry.js → p-ebba99f1.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-9c068189.entry.js → p-f17002ee.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-917225ef.entry.js → p-f1c39684.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-7109c05e.js → p-f24cbc4a.js} +1 -1
  360. package/dist/genesys-webcomponents/{p-389f8801.entry.js → p-f8afafc2.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/p-f943be97.entry.js +1 -0
  362. package/dist/genesys-webcomponents/{p-ddf1f408.entry.js → p-fbac612e.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-ab8fb64b.entry.js → p-fbb8a44c.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-7c7c732e.entry.js → p-fc1236eb.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-811d5ea4.entry.js → p-fd27d76e.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-0e6b49c5.entry.js → p-fdfbce70.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-787dfa9e.entry.js → p-ffe19e1d.entry.js} +1 -1
  368. package/dist/stencil-wrapper.js +1 -1
  369. package/dist/types/components/beta/gux-popover-beta/gux-popover.d.ts +1 -0
  370. package/dist/types/components.d.ts +1 -0
  371. package/dist/types/stencil-wrapper.d.ts +1 -1
  372. package/package.json +2 -2
  373. package/dist/cjs/index.umd-8731232d.js +0 -12
  374. package/dist/esm/index.umd-c10720d4.js +0 -10
  375. package/dist/genesys-webcomponents/p-067a620a.entry.js +0 -1
  376. package/dist/genesys-webcomponents/p-0e29bef4.entry.js +0 -1
  377. package/dist/genesys-webcomponents/p-0ee23f31.js +0 -1
  378. package/dist/genesys-webcomponents/p-134e3398.entry.js +0 -1
  379. package/dist/genesys-webcomponents/p-17386406.entry.js +0 -1
  380. package/dist/genesys-webcomponents/p-3678c8c1.entry.js +0 -1
  381. package/dist/genesys-webcomponents/p-3a74db79.entry.js +0 -1
  382. package/dist/genesys-webcomponents/p-4c0d8275.entry.js +0 -1
  383. package/dist/genesys-webcomponents/p-65d9b2a9.entry.js +0 -1
  384. package/dist/genesys-webcomponents/p-c6691d01.entry.js +0 -1
  385. package/dist/genesys-webcomponents/p-d08bfc87.entry.js +0 -1
  386. package/dist/genesys-webcomponents/p-d9a8d05d.entry.js +0 -1
  387. package/dist/genesys-webcomponents/p-db66942d.entry.js +0 -1
  388. package/dist/genesys-webcomponents/p-e777963f.entry.js +0 -1
  389. package/dist/genesys-webcomponents/p-ea5c14d1.entry.js +0 -1
@@ -1,10 +0,0 @@
1
- import { c as commonjsGlobal } from './_commonjsHelpers-c9e3b764.js';
2
-
3
- var index_umd = {exports: {}};
4
-
5
- (function (module, exports) {
6
- !function(e,t){t(exports);}(commonjsGlobal,(function(e){function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n);}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));}));}return e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n);}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,r){return (t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t);}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return !1}}function _construct(e,t,r){return _construct=_isNativeReflectConstruct()?Reflect.construct.bind():function _construct(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_setPrototypeOf(o,r.prototype),o},_construct.apply(null,arguments)}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function _wrapNativeSuper(e){if(null===e||!function _isNativeFunction(e){return -1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,Wrapper);}function Wrapper(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function _createSuperInternal(){var r,n=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o);}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function _get(e,t,r){var n=_superPropBase(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},_get.apply(this,arguments)}function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,l=[],s=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1;}else for(;!(s=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e;}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||_unsupportedIterableToArray(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_unsupportedIterableToArray(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return "Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,F=function(){};return {s:F,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:F}}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 o,a=!0,i=!1;return {s:function(){r=r.call(e);},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e;},f:function(){try{a||null==r.return||r.return();}finally{if(i)throw o}}}}function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:String(t)}var t=function(e){_inherits(JSBI,e);var t=_createSuper(JSBI);function JSBI(e,r){var n;if(_classCallCheck(this,JSBI),(n=t.call(this,e)).sign=r,Object.setPrototypeOf(_assertThisInitialized(n),JSBI.prototype),e>JSBI.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return _possibleConstructorReturn(n)}return _createClass(JSBI,[{key:"toDebugString",value:function toDebugString(){var e,t=["BigInt["],r=_createForOfIteratorHelper(this);try{for(r.s();!(e=r.n()).done;){var n=e.value;t.push((n?(n>>>0).toString(16):n)+", ");}}catch(e){r.e(e);}finally{r.f();}return t.push("]"),t.join("")}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?JSBI.__toStringBasePowerOfTwo(this,e):JSBI.__toStringGeneric(this,e,!1)}},{key:"valueOf",value:function valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}},{key:"__copy",value:function __copy(){for(var e=new JSBI(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function __trim(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function __initializeDigits(){for(var e=0;e<this.length;e++)this[e]=0;}},{key:"__clzmsd",value:function __clzmsd(){return JSBI.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function __inplaceMultiplyAdd(e,t,r){r>this.length&&(r=this.length);for(var n=32767&e,o=e>>>15,a=0,i=t,l=0;l<r;l++){var s=this.__digit(l),u=32767&s,d=s>>>15,c=JSBI.__imul(u,n),m=JSBI.__imul(u,o),h=JSBI.__imul(d,n),f=i+c+a;a=f>>>30,f&=1073741823,a+=(f+=((32767&m)<<15)+((32767&h)<<15))>>>30,i=JSBI.__imul(d,o)+(m>>>15)+(h>>>15),this.__setDigit(l,1073741823&f);}if(0!=a||0!==i)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function __inplaceAdd(e,t,r){for(var n=0,o=0;o<r;o++){var a=this.__halfDigit(t+o)+e.__halfDigit(o)+n;n=a>>>15,this.__setHalfDigit(t+o,32767&a);}return n}},{key:"__inplaceSub",value:function __inplaceSub(e,t,r){var n=0;if(1&t){t>>=1;for(var o=this.__digit(t),a=32767&o,i=0;i<r-1>>>1;i++){var l=e.__digit(i),s=(o>>>15)-(32767&l)-n;n=1&s>>>15,this.__setDigit(t+i,(32767&s)<<15|32767&a),n=1&(a=(32767&(o=this.__digit(t+i+1)))-(l>>>15)-n)>>>15;}var u=e.__digit(i),d=(o>>>15)-(32767&u)-n;if(n=1&d>>>15,this.__setDigit(t+i,(32767&d)<<15|32767&a),t+i+1>=this.length)throw new RangeError("out of bounds");0==(1&r)&&(n=1&(a=(32767&(o=this.__digit(t+i+1)))-(u>>>15)-n)>>>15,this.__setDigit(t+e.length,1073709056&o|32767&a));}else {t>>=1;for(var c=0;c<e.length-1;c++){var m=this.__digit(t+c),h=e.__digit(c),f=(32767&m)-(32767&h)-n,p=(m>>>15)-(h>>>15)-(n=1&f>>>15);n=1&p>>>15,this.__setDigit(t+c,(32767&p)<<15|32767&f);}var v=this.__digit(t+c),T=e.__digit(c),y=(32767&v)-(32767&T)-n;n=1&y>>>15;var g=0;0==(1&r)&&(n=1&(g=(v>>>15)-(T>>>15)-n)>>>15),this.__setDigit(t+c,(32767&g)<<15|32767&y);}return n}},{key:"__inplaceRightShift",value:function __inplaceRightShift(e){if(0!==e){for(var t=this.__digit(0)>>>e,r=this.length-1,n=0;n<r;n++){var o=this.__digit(n+1);this.__setDigit(n,1073741823&o<<30-e|t),t=o>>>e;}this.__setDigit(r,t);}}},{key:"__digit",value:function __digit(e){return this[e]}},{key:"__unsignedDigit",value:function __unsignedDigit(e){return this[e]>>>0}},{key:"__setDigit",value:function __setDigit(e,t){this[e]=0|t;}},{key:"__setDigitGrow",value:function __setDigitGrow(e,t){this[e]=0|t;}},{key:"__halfDigitLength",value:function __halfDigitLength(){var e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function __halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}},{key:"__setHalfDigit",value:function __setHalfDigit(e,t){var r=e>>>1,n=this.__digit(r),o=1&e?32767&n|t<<15:1073709056&n|32767&t;this.__setDigit(r,o);}}],[{key:"BigInt",value:function BigInt(e){var t=Math.floor,r=Number.isFinite;if("number"==typeof e){if(0===e)return JSBI.__zero();if(JSBI.__isOneDigitInt(e))return 0>e?JSBI.__oneDigit(-e,!0):JSBI.__oneDigit(e,!1);if(!r(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return JSBI.__fromDouble(e)}if("string"==typeof e){var n=JSBI.__fromString(e);if(null===n)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return n}if("boolean"==typeof e)return !0===e?JSBI.__oneDigit(1,!1):JSBI.__zero();if("object"==_typeof(e)){if(e.constructor===JSBI)return e;var o=JSBI.__toPrimitive(e);return JSBI.BigInt(o)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function toNumber(e){var t=e.length;if(0===t)return 0;if(1===t){var r=e.__unsignedDigit(0);return e.sign?-r:r}var n=e.__digit(t-1),o=JSBI.__clz30(n),a=30*t-o;if(1024<a)return e.sign?-1/0:1/0;var i=a-1,l=n,s=t-1,u=o+3,d=32===u?0:l<<u;d>>>=12;var c=u-12,m=12<=u?0:l<<20+u,h=20+u;for(0<c&&0<s&&(s--,d|=(l=e.__digit(s))>>>30-c,m=l<<c+2,h=c+2);0<h&&0<s;)s--,l=e.__digit(s),m|=30<=h?l<<h-30:l>>>30-h,h-=30;var f=JSBI.__decideRounding(e,h,s,l);if((1===f||0===f&&1==(1&m))&&(0===(m=m+1>>>0)&&(0!=++d>>>20&&(d=0,1023<++i))))return e.sign?-1/0:1/0;var p=e.sign?-2147483648:0;return i=i+1023<<20,JSBI.__kBitConversionInts[1]=p|i|d,JSBI.__kBitConversionInts[0]=m,JSBI.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function unaryMinus(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function bitwiseNot(e){return e.sign?JSBI.__absoluteSubOne(e).__trim():JSBI.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function exponentiate(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return JSBI.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?JSBI.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var r=t.__unsignedDigit(0);if(1===r)return e;if(r>=JSBI.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var n=1+(0|r/30),o=new JSBI(n,e.sign&&0!=(1&r));o.__initializeDigits();var a=1<<r%30;return o.__setDigit(n-1,a),o}var i=null,l=e;for(0!=(1&r)&&(i=e),r>>=1;0!==r;r>>=1)l=JSBI.multiply(l,l),0!=(1&r)&&(i=null===i?l:JSBI.multiply(i,l));return i}},{key:"multiply",value:function multiply(e,t){if(0===e.length)return e;if(0===t.length)return t;var r=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&r--;var n=new JSBI(r,e.sign!==t.sign);n.__initializeDigits();for(var o=0;o<e.length;o++)JSBI.__multiplyAccumulate(t,e.__digit(o),n,o);return n.__trim()}},{key:"divide",value:function divide(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>JSBI.__absoluteCompare(e,t))return JSBI.__zero();var r,n=e.sign!==t.sign,o=t.__unsignedDigit(0);if(1===t.length&&32767>=o){if(1===o)return n===e.sign?e:JSBI.unaryMinus(e);r=JSBI.__absoluteDivSmall(e,o,null);}else r=JSBI.__absoluteDivLarge(e,t,!0,!1);return r.sign=n,r.__trim()}},{key:"remainder",value:function remainder(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>JSBI.__absoluteCompare(e,t))return e;var r=t.__unsignedDigit(0);if(1===t.length&&32767>=r){if(1===r)return JSBI.__zero();var n=JSBI.__absoluteModSmall(e,r);return 0===n?JSBI.__zero():JSBI.__oneDigit(n,e.sign)}var o=JSBI.__absoluteDivLarge(e,t,!1,!0);return o.sign=e.sign,o.__trim()}},{key:"add",value:function add(e,t){var r=e.sign;return r===t.sign?JSBI.__absoluteAdd(e,t,r):0<=JSBI.__absoluteCompare(e,t)?JSBI.__absoluteSub(e,t,r):JSBI.__absoluteSub(t,e,!r)}},{key:"subtract",value:function subtract(e,t){var r=e.sign;return r===t.sign?0<=JSBI.__absoluteCompare(e,t)?JSBI.__absoluteSub(e,t,r):JSBI.__absoluteSub(t,e,!r):JSBI.__absoluteAdd(e,t,r)}},{key:"leftShift",value:function leftShift(e,t){return 0===t.length||0===e.length?e:t.sign?JSBI.__rightShiftByAbsolute(e,t):JSBI.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function signedRightShift(e,t){return 0===t.length||0===e.length?e:t.sign?JSBI.__leftShiftByAbsolute(e,t):JSBI.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function lessThan(e,t){return 0>JSBI.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function lessThanOrEqual(e,t){return 0>=JSBI.__compareToBigInt(e,t)}},{key:"greaterThan",value:function greaterThan(e,t){return 0<JSBI.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function greaterThanOrEqual(e,t){return 0<=JSBI.__compareToBigInt(e,t)}},{key:"equal",value:function equal(e,t){if(e.sign!==t.sign)return !1;if(e.length!==t.length)return !1;for(var r=0;r<e.length;r++)if(e.__digit(r)!==t.__digit(r))return !1;return !0}},{key:"notEqual",value:function notEqual(e,t){return !JSBI.equal(e,t)}},{key:"bitwiseAnd",value:function bitwiseAnd(e,t){var r,n=Math.max;if(!e.sign&&!t.sign)return JSBI.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var o=n(e.length,t.length)+1,a=JSBI.__absoluteSubOne(e,o),i=JSBI.__absoluteSubOne(t);return a=JSBI.__absoluteOr(a,i,a),JSBI.__absoluteAddOne(a,!0,a).__trim()}return e.sign&&(e=(r=[t,e])[0],t=r[1]),JSBI.__absoluteAndNot(e,JSBI.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function bitwiseXor(e,t){var r,n=Math.max;if(!e.sign&&!t.sign)return JSBI.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var o=n(e.length,t.length),a=JSBI.__absoluteSubOne(e,o),i=JSBI.__absoluteSubOne(t);return JSBI.__absoluteXor(a,i,a).__trim()}var l=n(e.length,t.length)+1;e.sign&&(e=(r=[t,e])[0],t=r[1]);var s=JSBI.__absoluteSubOne(t,l);return s=JSBI.__absoluteXor(s,e,s),JSBI.__absoluteAddOne(s,!0,s).__trim()}},{key:"bitwiseOr",value:function bitwiseOr(e,t){var r,n=(0, Math.max)(e.length,t.length);if(!e.sign&&!t.sign)return JSBI.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var o=JSBI.__absoluteSubOne(e,n),a=JSBI.__absoluteSubOne(t);return o=JSBI.__absoluteAnd(o,a,o),JSBI.__absoluteAddOne(o,!0,o).__trim()}e.sign&&(e=(r=[t,e])[0],t=r[1]);var i=JSBI.__absoluteSubOne(t,n);return i=JSBI.__absoluteAndNot(i,e,i),JSBI.__absoluteAddOne(i,!0,i).__trim()}},{key:"asIntN",value:function asIntN(e,t){var r=Math.floor;if(0===t.length)return t;if(0>(e=r(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return JSBI.__zero();if(e>=JSBI.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var o=t.__unsignedDigit(n-1),a=1<<(e-1)%30;if(t.length===n&&o<a)return t;if((o&a)!==a)return JSBI.__truncateToNBits(e,t);if(!t.sign)return JSBI.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(o&a-1)){for(var i=n-2;0<=i;i--)if(0!==t.__digit(i))return JSBI.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&o===a?t:JSBI.__truncateToNBits(e,t)}return JSBI.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function asUintN(e,t){var r=Math.floor;if(0===t.length)return t;if(0>(e=r(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return JSBI.__zero();if(t.sign){if(e>JSBI.__kMaxLengthBits)throw new RangeError("BigInt too big");return JSBI.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=JSBI.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var o=e%30;if(t.length==n){if(0===o)return t;if(0==t.__digit(n-1)>>>o)return t}return JSBI.__truncateToNBits(e,t)}},{key:"ADD",value:function ADD(e,t){if(e=JSBI.__toPrimitive(e),t=JSBI.__toPrimitive(t),"string"==typeof e)return "string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=JSBI.__toNumeric(e),t=JSBI.__toNumeric(t),JSBI.__isBigInt(e)&&JSBI.__isBigInt(t))return JSBI.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function LT(e,t){return JSBI.__compare(e,t,0)}},{key:"LE",value:function LE(e,t){return JSBI.__compare(e,t,1)}},{key:"GT",value:function GT(e,t){return JSBI.__compare(e,t,2)}},{key:"GE",value:function GE(e,t){return JSBI.__compare(e,t,3)}},{key:"EQ",value:function EQ(e,t){for(;;){if(JSBI.__isBigInt(e))return JSBI.__isBigInt(t)?JSBI.equal(e,t):JSBI.EQ(t,e);if("number"==typeof e){if(JSBI.__isBigInt(t))return JSBI.__equalToNumber(t,e);if("object"!=_typeof(t))return e==t;t=JSBI.__toPrimitive(t);}else if("string"==typeof e){if(JSBI.__isBigInt(t))return null!==(e=JSBI.__fromString(e))&&JSBI.equal(e,t);if("object"!=_typeof(t))return e==t;t=JSBI.__toPrimitive(t);}else if("boolean"==typeof e){if(JSBI.__isBigInt(t))return JSBI.__equalToNumber(t,+e);if("object"!=_typeof(t))return e==t;t=JSBI.__toPrimitive(t);}else if("symbol"==_typeof(e)){if(JSBI.__isBigInt(t))return !1;if("object"!=_typeof(t))return e==t;t=JSBI.__toPrimitive(t);}else {if("object"!=_typeof(e))return e==t;if("object"==_typeof(t)&&t.constructor!==JSBI)return e==t;e=JSBI.__toPrimitive(e);}}}},{key:"NE",value:function NE(e,t){return !JSBI.EQ(e,t)}},{key:"DataViewGetBigInt64",value:function DataViewGetBigInt64(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return JSBI.asIntN(64,JSBI.DataViewGetBigUint64(e,t,r))}},{key:"DataViewGetBigUint64",value:function DataViewGetBigUint64(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=r?[4,0]:[0,4],o=_slicedToArray(n,2),a=o[0],i=o[1],l=e.getUint32(t+a,r),s=e.getUint32(t+i,r),u=new JSBI(3,!1);return u.__setDigit(0,1073741823&s),u.__setDigit(1,(268435455&l)<<2|s>>>30),u.__setDigit(2,l>>>28),u.__trim()}},{key:"DataViewSetBigInt64",value:function DataViewSetBigInt64(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];JSBI.DataViewSetBigUint64(e,t,r,n);}},{key:"DataViewSetBigUint64",value:function DataViewSetBigUint64(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=0,a=0;if(0<(r=JSBI.asUintN(64,r)).length&&(a=r.__digit(0),1<r.length)){var i=r.__digit(1);a|=i<<30,o=i>>>2,2<r.length&&(o|=r.__digit(2)<<28);}var l=n?[4,0]:[0,4],s=_slicedToArray(l,2),u=s[0],d=s[1];e.setUint32(t+u,o,n),e.setUint32(t+d,a,n);}},{key:"__zero",value:function __zero(){return new JSBI(0,!1)}},{key:"__oneDigit",value:function __oneDigit(e,t){var r=new JSBI(1,t);return r.__setDigit(0,e),r}},{key:"__decideRounding",value:function __decideRounding(e,t,r,n){if(0<t)return -1;var o;if(0>t)o=-t-1;else {if(0===r)return -1;r--,n=e.__digit(r),o=29;}var a=1<<o;if(0==(n&a))return -1;if(0!=(n&(a-=1)))return 1;for(;0<r;)if(r--,0!==e.__digit(r))return 1;return 0}},{key:"__fromDouble",value:function __fromDouble(e){JSBI.__kBitConversionDouble[0]=e;var t,r=(2047&JSBI.__kBitConversionInts[1]>>>20)-1023,n=1+(0|r/30),o=new JSBI(n,0>e),a=1048575&JSBI.__kBitConversionInts[1]|1048576,i=JSBI.__kBitConversionInts[0],l=r%30,s=0;if(l<20){var u=20-l;s=u+32,t=a>>>u,a=a<<32-u|i>>>u,i<<=32-u;}else if(20===l)s=32,t=a,a=i,i=0;else {var d=l-20;s=32-d,t=a<<d|i>>>32-d,a=i<<d,i=0;}o.__setDigit(n-1,t);for(var c=n-2;0<=c;c--)0<s?(s-=30,t=a>>>2,a=a<<30|i>>>2,i<<=30):t=0,o.__setDigit(c,t);return o.__trim()}},{key:"__isWhitespace",value:function __isWhitespace(e){return !!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function __fromString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0,n=e.length,o=0;if(o===n)return JSBI.__zero();for(var a=e.charCodeAt(o);JSBI.__isWhitespace(a);){if(++o===n)return JSBI.__zero();a=e.charCodeAt(o);}if(43===a){if(++o===n)return null;a=e.charCodeAt(o),r=1;}else if(45===a){if(++o===n)return null;a=e.charCodeAt(o),r=-1;}if(0===t){if(t=10,48===a){if(++o===n)return JSBI.__zero();if(88===(a=e.charCodeAt(o))||120===a){if(t=16,++o===n)return null;a=e.charCodeAt(o);}else if(79===a||111===a){if(t=8,++o===n)return null;a=e.charCodeAt(o);}else if(66===a||98===a){if(t=2,++o===n)return null;a=e.charCodeAt(o);}}}else if(16===t&&48===a){if(++o===n)return JSBI.__zero();if(88===(a=e.charCodeAt(o))||120===a){if(++o===n)return null;a=e.charCodeAt(o);}}if(0!=r&&10!==t)return null;for(;48===a;){if(++o===n)return JSBI.__zero();a=e.charCodeAt(o);}var i=n-o,l=JSBI.__kMaxBitsPerChar[t],s=JSBI.__kBitsPerCharTableMultiplier-1;if(i>1073741824/l)return null;var u=l*i+s>>>JSBI.__kBitsPerCharTableShift,d=new JSBI(0|(u+29)/30,!1),c=10>t?t:10,m=10<t?t-10:0;if(0==(t&t-1)){l>>=JSBI.__kBitsPerCharTableShift;var h=[],f=[],p=!1;do{for(var v=0,T=0;;){var y=void 0;if(a-48>>>0<c)y=a-48;else {if(!((32|a)-97>>>0<m)){p=!0;break}y=(32|a)-87;}if(T+=l,v=v<<l|y,++o===n){p=!0;break}if(a=e.charCodeAt(o),30<T+l)break}h.push(v),f.push(T);}while(!p);JSBI.__fillFromParts(d,h,f);}else {d.__initializeDigits();var g=!1,D=0;do{for(var S=0,I=1;;){var w=void 0;if(a-48>>>0<c)w=a-48;else {if(!((32|a)-97>>>0<m)){g=!0;break}w=(32|a)-87;}var _=I*t;if(1073741823<_)break;if(I=_,S=S*t+w,D++,++o===n){g=!0;break}a=e.charCodeAt(o);}var C=0|(l*D+(s=30*JSBI.__kBitsPerCharTableMultiplier-1)>>>JSBI.__kBitsPerCharTableShift)/30;d.__inplaceMultiplyAdd(I,S,C);}while(!g)}if(o!==n){if(!JSBI.__isWhitespace(a))return null;for(o++;o<n;o++)if(a=e.charCodeAt(o),!JSBI.__isWhitespace(a))return null}return d.sign=-1==r,d.__trim()}},{key:"__fillFromParts",value:function __fillFromParts(e,t,r){for(var n=0,o=0,a=0,i=t.length-1;0<=i;i--){var l=t[i],s=r[i];o|=l<<a,30===(a+=s)?(e.__setDigit(n++,o),a=0,o=0):30<a&&(e.__setDigit(n++,1073741823&o),o=l>>>s-(a-=30));}if(0!==o){if(n>=e.length)throw new Error("implementation bug");e.__setDigit(n++,o);}for(;n<e.length;n++)e.__setDigit(n,0);}},{key:"__toStringBasePowerOfTwo",value:function __toStringBasePowerOfTwo(e,t){var r=e.length,n=t-1,o=n=(15&(n=(51&(n=(85&n>>>1)+(85&n))>>>2)+(51&n))>>>4)+(15&n),a=t-1,i=e.__digit(r-1),l=0|(30*r-JSBI.__clz30(i)+o-1)/o;if(e.sign&&l++,268435456<l)throw new Error("string too long");for(var s=Array(l),u=l-1,d=0,c=0,m=0;m<r-1;m++){var h=e.__digit(m),f=(d|h<<c)&a;s[u--]=JSBI.__kConversionChars[f];var p=o-c;for(d=h>>>p,c=30-p;c>=o;)s[u--]=JSBI.__kConversionChars[d&a],d>>>=o,c-=o;}var v=(d|i<<c)&a;for(s[u--]=JSBI.__kConversionChars[v],d=i>>>o-c;0!==d;)s[u--]=JSBI.__kConversionChars[d&a],d>>>=o;if(e.sign&&(s[u--]="-"),-1!=u)throw new Error("implementation bug");return s.join("")}},{key:"__toStringGeneric",value:function __toStringGeneric(e,t,r){var n=e.length;if(0===n)return "";if(1===n){var o=e.__unsignedDigit(0).toString(t);return !1===r&&e.sign&&(o="-"+o),o}var a,i,l=30*n-JSBI.__clz30(e.__digit(n-1)),s=JSBI.__kMaxBitsPerChar[t]-1,u=l*JSBI.__kBitsPerCharTableMultiplier,d=(u=0|(u+=s-1)/s)+1>>1,c=JSBI.exponentiate(JSBI.__oneDigit(t,!1),JSBI.__oneDigit(d,!1)),m=c.__unsignedDigit(0);if(1===c.length&&32767>=m){(a=new JSBI(e.length,!1)).__initializeDigits();for(var h=0,f=2*e.length-1;0<=f;f--){var p=h<<15|e.__halfDigit(f);a.__setHalfDigit(f,0|p/m),h=0|p%m;}i=h.toString(t);}else {var v=JSBI.__absoluteDivLarge(e,c,!0,!0);a=v.quotient;var T=v.remainder.__trim();i=JSBI.__toStringGeneric(T,t,!0);}a.__trim();for(var y=JSBI.__toStringGeneric(a,t,!0);i.length<d;)i="0"+i;return !1===r&&e.sign&&(y="-"+y),y+i}},{key:"__unequalSign",value:function __unequalSign(e){return e?-1:1}},{key:"__absoluteGreater",value:function __absoluteGreater(e){return e?-1:1}},{key:"__absoluteLess",value:function __absoluteLess(e){return e?1:-1}},{key:"__compareToBigInt",value:function __compareToBigInt(e,t){var r=e.sign;if(r!==t.sign)return JSBI.__unequalSign(r);var n=JSBI.__absoluteCompare(e,t);return 0<n?JSBI.__absoluteGreater(r):0>n?JSBI.__absoluteLess(r):0}},{key:"__compareToNumber",value:function __compareToNumber(e,t){if(JSBI.__isOneDigitInt(t)){var r=e.sign,n=0>t;if(r!==n)return JSBI.__unequalSign(r);if(0===e.length){if(n)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return JSBI.__absoluteGreater(r);var o=Math.abs(t),a=e.__unsignedDigit(0);return a>o?JSBI.__absoluteGreater(r):a<o?JSBI.__absoluteLess(r):0}return JSBI.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function __compareToDouble(e,t){if(t!=t)return t;if(t===1/0)return -1;if(t===-1/0)return 1;var r=e.sign;if(r!==0>t)return JSBI.__unequalSign(r);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return -1;JSBI.__kBitConversionDouble[0]=t;var n=2047&JSBI.__kBitConversionInts[1]>>>20;if(2047==n)throw new Error("implementation bug: handled elsewhere");var o=n-1023;if(0>o)return JSBI.__absoluteGreater(r);var a=e.length,i=e.__digit(a-1),l=JSBI.__clz30(i),s=30*a-l,u=o+1;if(s<u)return JSBI.__absoluteLess(r);if(s>u)return JSBI.__absoluteGreater(r);var d=1048576|1048575&JSBI.__kBitConversionInts[1],c=JSBI.__kBitConversionInts[0],m=29-l;if(m!==(0|(s-1)%30))throw new Error("implementation bug");var h,f=0;if(20>m){var p=20-m;f=p+32,h=d>>>p,d=d<<32-p|c>>>p,c<<=32-p;}else if(20===m)f=32,h=d,d=c,c=0;else {var v=m-20;f=32-v,h=d<<v|c>>>32-v,d=c<<v,c=0;}if((i>>>=0)>(h>>>=0))return JSBI.__absoluteGreater(r);if(i<h)return JSBI.__absoluteLess(r);for(var T=a-2;0<=T;T--){0<f?(f-=30,h=d>>>2,d=d<<30|c>>>2,c<<=30):h=0;var y=e.__unsignedDigit(T);if(y>h)return JSBI.__absoluteGreater(r);if(y<h)return JSBI.__absoluteLess(r)}if(0!==d||0!==c){if(0===f)throw new Error("implementation bug");return JSBI.__absoluteLess(r)}return 0}},{key:"__equalToNumber",value:function __equalToNumber(e,t){var r=Math.abs;return JSBI.__isOneDigitInt(t)?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===r(t):0===JSBI.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function __comparisonResultToBool(e,t){return 0===t?0>e:1===t?0>=e:2===t?0<e:3===t?0<=e:void 0}},{key:"__compare",value:function __compare(e,t,r){if(e=JSBI.__toPrimitive(e),t=JSBI.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(r){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(JSBI.__isBigInt(e)&&"string"==typeof t)return null!==(t=JSBI.__fromString(t))&&JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(e,t),r);if("string"==typeof e&&JSBI.__isBigInt(t))return null!==(e=JSBI.__fromString(e))&&JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(e,t),r);if(e=JSBI.__toNumeric(e),t=JSBI.__toNumeric(t),JSBI.__isBigInt(e)){if(JSBI.__isBigInt(t))return JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(e,t),r);if("number"!=typeof t)throw new Error("implementation bug");return JSBI.__comparisonResultToBool(JSBI.__compareToNumber(e,t),r)}if("number"!=typeof e)throw new Error("implementation bug");if(JSBI.__isBigInt(t))return JSBI.__comparisonResultToBool(JSBI.__compareToNumber(t,e),2^r);if("number"!=typeof t)throw new Error("implementation bug");return 0===r?e<t:1===r?e<=t:2===r?e>t:3===r?e>=t:void 0}},{key:"__absoluteAdd",value:function __absoluteAdd(e,t,r){if(e.length<t.length)return JSBI.__absoluteAdd(t,e,r);if(0===e.length)return e;if(0===t.length)return e.sign===r?e:JSBI.unaryMinus(e);var n=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&n++;for(var o=new JSBI(n,r),a=0,i=0;i<t.length;i++){var l=e.__digit(i)+t.__digit(i)+a;a=l>>>30,o.__setDigit(i,1073741823&l);}for(;i<e.length;i++){var s=e.__digit(i)+a;a=s>>>30,o.__setDigit(i,1073741823&s);}return i<o.length&&o.__setDigit(i,a),o.__trim()}},{key:"__absoluteSub",value:function __absoluteSub(e,t,r){if(0===e.length)return e;if(0===t.length)return e.sign===r?e:JSBI.unaryMinus(e);for(var n=new JSBI(e.length,r),o=0,a=0;a<t.length;a++){var i=e.__digit(a)-t.__digit(a)-o;o=1&i>>>30,n.__setDigit(a,1073741823&i);}for(;a<e.length;a++){var l=e.__digit(a)-o;o=1&l>>>30,n.__setDigit(a,1073741823&l);}return n.__trim()}},{key:"__absoluteAddOne",value:function __absoluteAddOne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length;null===r?r=new JSBI(n,t):r.sign=t;for(var o=1,a=0;a<n;a++){var i=e.__digit(a)+o;o=i>>>30,r.__setDigit(a,1073741823&i);}return 0!=o&&r.__setDigitGrow(n,1),r}},{key:"__absoluteSubOne",value:function __absoluteSubOne(e,t){for(var r=e.length,n=new JSBI(t=t||r,!1),o=1,a=0;a<r;a++){var i=e.__digit(a)-o;o=1&i>>>30,n.__setDigit(a,1073741823&i);}if(0!=o)throw new Error("implementation bug");for(var l=r;l<t;l++)n.__setDigit(l,0);return n}},{key:"__absoluteAnd",value:function __absoluteAnd(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,o=t.length,a=o;if(n<o){a=n;var i=e,l=n;e=t,n=o,t=i,o=l;}var s=a;null===r?r=new JSBI(s,!1):s=r.length;for(var u=0;u<a;u++)r.__setDigit(u,e.__digit(u)&t.__digit(u));for(;u<s;u++)r.__setDigit(u,0);return r}},{key:"__absoluteAndNot",value:function __absoluteAndNot(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,o=t.length,a=o;n<o&&(a=n);var i=n;null===r?r=new JSBI(i,!1):i=r.length;for(var l=0;l<a;l++)r.__setDigit(l,e.__digit(l)&~t.__digit(l));for(;l<n;l++)r.__setDigit(l,e.__digit(l));for(;l<i;l++)r.__setDigit(l,0);return r}},{key:"__absoluteOr",value:function __absoluteOr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,o=t.length,a=o;if(n<o){a=n;var i=e,l=n;e=t,n=o,t=i,o=l;}var s=n;null===r?r=new JSBI(s,!1):s=r.length;for(var u=0;u<a;u++)r.__setDigit(u,e.__digit(u)|t.__digit(u));for(;u<n;u++)r.__setDigit(u,e.__digit(u));for(;u<s;u++)r.__setDigit(u,0);return r}},{key:"__absoluteXor",value:function __absoluteXor(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.length,o=t.length,a=o;if(n<o){a=n;var i=e,l=n;e=t,n=o,t=i,o=l;}var s=n;null===r?r=new JSBI(s,!1):s=r.length;for(var u=0;u<a;u++)r.__setDigit(u,e.__digit(u)^t.__digit(u));for(;u<n;u++)r.__setDigit(u,e.__digit(u));for(;u<s;u++)r.__setDigit(u,0);return r}},{key:"__absoluteCompare",value:function __absoluteCompare(e,t){var r=e.length-t.length;if(0!=r)return r;for(var n=e.length-1;0<=n&&e.__digit(n)===t.__digit(n);)n--;return 0>n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}},{key:"__multiplyAccumulate",value:function __multiplyAccumulate(e,t,r,n){if(0!==t){for(var o,a=32767&t,i=t>>>15,l=0,s=0,u=0;u<e.length;u++,n++){o=r.__digit(n);var d=e.__digit(u),c=32767&d,m=d>>>15,h=JSBI.__imul(c,a),f=JSBI.__imul(c,i),p=JSBI.__imul(m,a);l=(o+=s+h+l)>>>30,o&=1073741823,l+=(o+=((32767&f)<<15)+((32767&p)<<15))>>>30,s=JSBI.__imul(m,i)+(f>>>15)+(p>>>15),r.__setDigit(n,1073741823&o);}for(;0!=l||0!==s;n++){var v=r.__digit(n);v+=l+s,s=0,l=v>>>30,r.__setDigit(n,1073741823&v);}}}},{key:"__internalMultiplyAdd",value:function __internalMultiplyAdd(e,t,r,n,o){for(var a=r,i=0,l=0;l<n;l++){var s=e.__digit(l),u=JSBI.__imul(32767&s,t),d=JSBI.__imul(s>>>15,t),c=u+((32767&d)<<15)+i+a;a=c>>>30,i=d>>>15,o.__setDigit(l,1073741823&c);}if(o.length>n)for(o.__setDigit(n++,a+i);n<o.length;)o.__setDigit(n++,0);else if(0!==a+i)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function __absoluteDivSmall(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null===r&&(r=new JSBI(e.length,!1));for(var n,o=0,a=2*e.length-1;0<=a;a-=2){var i=0|(n=(o<<15|e.__halfDigit(a))>>>0)/t,l=0|(n=((o=0|n%t)<<15|e.__halfDigit(a-1))>>>0)/t;o=0|n%t,r.__setDigit(a>>>1,i<<15|l);}return r}},{key:"__absoluteModSmall",value:function __absoluteModSmall(e,t){for(var r=0,n=2*e.length-1;0<=n;n--){r=0|((r<<15|e.__halfDigit(n))>>>0)%t;}return r}},{key:"__absoluteDivLarge",value:function __absoluteDivLarge(e,t,r,n){var o=t.__halfDigitLength(),a=t.length,i=e.__halfDigitLength()-o,l=null;r&&(l=new JSBI(i+2>>>1,!1)).__initializeDigits();var s=new JSBI(o+2>>>1,!1);s.__initializeDigits();var u=JSBI.__clz15(t.__halfDigit(o-1));0<u&&(t=JSBI.__specialLeftShift(t,u,0));for(var d,c=JSBI.__specialLeftShift(e,u,1),m=t.__halfDigit(o-1),h=0,f=i;0<=f;f--){d=32767;var p=c.__halfDigit(f+o);if(p!==m){var v=(p<<15|c.__halfDigit(f+o-1))>>>0;d=0|v/m;for(var T=0|v%m,y=t.__halfDigit(o-2),g=c.__halfDigit(f+o-2);JSBI.__imul(d,y)>>>0>(T<<16|g)>>>0&&(d--,!(32767<(T+=m))););}JSBI.__internalMultiplyAdd(t,d,0,a,s);var D=c.__inplaceSub(s,f,o+1);0!==D&&(D=c.__inplaceAdd(t,f,o),c.__setHalfDigit(f+o,32767&c.__halfDigit(f+o)+D),d--),r&&(1&f?h=d<<15:l.__setDigit(f>>>1,h|d));}if(n)return c.__inplaceRightShift(u),r?{quotient:l,remainder:c}:c;if(r)return l;throw new Error("unreachable")}},{key:"__clz15",value:function __clz15(e){return JSBI.__clz30(e)-15}},{key:"__specialLeftShift",value:function __specialLeftShift(e,t,r){var n=e.length,o=new JSBI(n+r,!1);if(0===t){for(var a=0;a<n;a++)o.__setDigit(a,e.__digit(a));return 0<r&&o.__setDigit(n,0),o}for(var i=0,l=0;l<n;l++){var s=e.__digit(l);o.__setDigit(l,1073741823&s<<t|i),i=s>>>30-t;}return 0<r&&o.__setDigit(n,i),o}},{key:"__leftShiftByAbsolute",value:function __leftShiftByAbsolute(e,t){var r=JSBI.__toShiftAmount(t);if(0>r)throw new RangeError("BigInt too big");var n=0|r/30,o=r%30,a=e.length,i=0!==o&&0!=e.__digit(a-1)>>>30-o,l=a+n+(i?1:0),s=new JSBI(l,e.sign);if(0===o){for(var u=0;u<n;u++)s.__setDigit(u,0);for(;u<l;u++)s.__setDigit(u,e.__digit(u-n));}else {for(var d=0,c=0;c<n;c++)s.__setDigit(c,0);for(var m=0;m<a;m++){var h=e.__digit(m);s.__setDigit(m+n,1073741823&h<<o|d),d=h>>>30-o;}if(i)s.__setDigit(a+n,d);else if(0!==d)throw new Error("implementation bug")}return s.__trim()}},{key:"__rightShiftByAbsolute",value:function __rightShiftByAbsolute(e,t){var r=e.length,n=e.sign,o=JSBI.__toShiftAmount(t);if(0>o)return JSBI.__rightShiftByMaximum(n);var a=0|o/30,i=o%30,l=r-a;if(0>=l)return JSBI.__rightShiftByMaximum(n);var s=!1;if(n)if(0!=(e.__digit(a)&(1<<i)-1))s=!0;else for(var u=0;u<a;u++)if(0!==e.__digit(u)){s=!0;break}s&&0===i&&(0==~e.__digit(r-1)&&l++);var d=new JSBI(l,n);if(0===i){d.__setDigit(l-1,0);for(var c=a;c<r;c++)d.__setDigit(c-a,e.__digit(c));}else {for(var m=e.__digit(a)>>>i,h=r-a-1,f=0;f<h;f++){var p=e.__digit(f+a+1);d.__setDigit(f,1073741823&p<<30-i|m),m=p>>>i;}d.__setDigit(h,m);}return s&&(d=JSBI.__absoluteAddOne(d,!0,d)),d.__trim()}},{key:"__rightShiftByMaximum",value:function __rightShiftByMaximum(e){return e?JSBI.__oneDigit(1,!0):JSBI.__zero()}},{key:"__toShiftAmount",value:function __toShiftAmount(e){if(1<e.length)return -1;var t=e.__unsignedDigit(0);return t>JSBI.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function __toPrimitive(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if("object"!=_typeof(e))return e;if(e.constructor===JSBI)return e;if("undefined"!=typeof Symbol&&"symbol"==_typeof(Symbol.toPrimitive)){var r=e[Symbol.toPrimitive];if(r){var n=r(t);if("object"!=_typeof(n))return n;throw new TypeError("Cannot convert object to primitive value")}}var o=e.valueOf;if(o){var a=o.call(e);if("object"!=_typeof(a))return a}var i=e.toString;if(i){var l=i.call(e);if("object"!=_typeof(l))return l}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function __toNumeric(e){return JSBI.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function __isBigInt(e){return "object"==_typeof(e)&&null!==e&&e.constructor===JSBI}},{key:"__truncateToNBits",value:function __truncateToNBits(e,t){for(var r=0|(e+29)/30,n=new JSBI(r,t.sign),o=r-1,a=0;a<o;a++)n.__setDigit(a,t.__digit(a));var i=t.__digit(o);if(0!=e%30){var l=32-e%30;i=i<<l>>>l;}return n.__setDigit(o,i),n.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function __truncateAndSubFromPowerOfTwo(e,t,r){for(var n=Math.min,o=0|(e+29)/30,a=new JSBI(o,r),i=0,l=o-1,s=0,u=n(l,t.length);i<u;i++){var d=0-t.__digit(i)-s;s=1&d>>>30,a.__setDigit(i,1073741823&d);}for(;i<l;i++)a.__setDigit(i,0|1073741823&-s);var c,m=l<t.length?t.__digit(l):0,h=e%30;if(0==h)c=0-m-s,c&=1073741823;else {var f=32-h,p=1<<32-f;c=p-(m=m<<f>>>f)-s,c&=p-1;}return a.__setDigit(l,c),a.__trim()}},{key:"__digitPow",value:function __digitPow(e,t){for(var r=1;0<t;)1&t&&(r*=e),t>>>=1,e*=e;return r}},{key:"__isOneDigitInt",value:function __isOneDigitInt(e){return (1073741823&e)===e}}]),JSBI}(_wrapNativeSuper(Array));t.__kMaxLength=33554432,t.__kMaxLengthBits=t.__kMaxLength<<5,t.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],t.__kBitsPerCharTableShift=5,t.__kBitsPerCharTableMultiplier=1<<t.__kBitsPerCharTableShift,t.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.__kBitConversionBuffer=new ArrayBuffer(8),t.__kBitConversionDouble=new Float64Array(t.__kBitConversionBuffer),t.__kBitConversionInts=new Int32Array(t.__kBitConversionBuffer),t.__clz30=Math.clz32?function(e){return Math.clz32(e)-2}:function(e){return 0===e?30:0|29-(0|Math.log(e>>>0)/Math.LN2)},t.__imul=Math.imul||function(e,t){return 0|e*t};var r,n,o={};function MakeIntrinsicClass(e,t){Object.defineProperty(e.prototype,Symbol.toStringTag,{value:t,writable:!1,enumerable:!1,configurable:!0});var r,n=_createForOfIteratorHelper(Object.getOwnPropertyNames(e));try{for(n.s();!(r=n.n()).done;){var o=r.value,a=Object.getOwnPropertyDescriptor(e,o);a.configurable&&a.enumerable&&(a.enumerable=!1,Object.defineProperty(e,o,a));}}catch(e){n.e(e);}finally{n.f();}var i,l=_createForOfIteratorHelper(Object.getOwnPropertyNames(e.prototype));try{for(l.s();!(i=l.n()).done;){var s=i.value,u=Object.getOwnPropertyDescriptor(e.prototype,s);u.configurable&&u.enumerable&&(u.enumerable=!1,Object.defineProperty(e.prototype,s,u));}}catch(e){l.e(e);}finally{l.f();}DefineIntrinsic(t,e),DefineIntrinsic("".concat(t,".prototype"),e.prototype);}function DefineIntrinsic(e,t){var r="%".concat(e,"%");if(void 0!==o[r])throw new Error("intrinsic ".concat(e," already exists"));o[r]=t;}function GetIntrinsic(e){return o[e]}_defineProperty({},"Temporal.Duration",(function TemporalDuration(e,t){var r=t.stylize("".concat(this[Symbol.toStringTag]," <").concat(this,">"),"special");if(e<1)return r;for(var n=[],o=0,a=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"];o<a.length;o++){var i=a[o];0!==this[i]&&n.push(" ".concat(i,": ").concat(t.stylize(this[i],"number")));}return r+" {\n"+n.join(",\n")+"\n}"}));var a="slot-epochNanoSeconds",i="slot-timezone-identifier",l="slot-year",s="slot-month",u="slot-day",d="slot-hour",c="slot-minute",m="slot-second",h="slot-millisecond",f="slot-microsecond",p="slot-nanosecond",v="slot-calendar",T="slot-date-brand",y="slot-year-month-brand",g="slot-month-day-brand",D="slot-cached-instant",S="slot-time-zone",I="slot-years",w="slot-months",_="slot-weeks",C="slot-days",G="slot-hours",b="slot-minutes",E="slot-seconds",B="slot-milliseconds",O="slot-microseconds",k="slot-nanoseconds",M="slot-calendar-identifier",A=new WeakMap;var R=Symbol.for("@@Temporal__GetSlots");(r=globalThis)[R]||(r[R]=function _GetSlots(e){return A.get(e)});var P=globalThis[R];var Y=Symbol.for("@@Temporal__CreateSlots");(n=globalThis)[Y]||(n[Y]=function _CreateSlots(e){A.set(e,Object.create(null));});var j=globalThis[Y];function HasSlot(e){if(!e||"object"!==_typeof(e))return !1;for(var t=P(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return !!t&&n.every((function(e){return e in t}))}function GetSlot(e,t){var r,n=null===(r=P(e))||void 0===r?void 0:r[t];if(void 0===n)throw new TypeError("Missing internal slot ".concat(t));return n}function SetSlot(e,t,r){var n=P(e);if(void 0===n)throw new TypeError("Missing slots for the given container");if(n[t])throw new TypeError("".concat(t," already has set"));n[t]=r;}var N=/\.[-A-Za-z_]|\.\.[-A-Za-z._]{1,12}|\.[-A-Za-z_][-A-Za-z._]{0,12}|[A-Za-z_][-A-Za-z._]{0,13}/,Z=new RegExp("(?:"+["(?:".concat(N.source,")(?:\\/(?:").concat(N.source,"))*"),"Etc/GMT(?:0|[-+]\\d{1,2})","GMT[-+]?0","EST5EDT","CST6CDT","MST7MDT","PST8PDT",/(?:[+\u2212-][0-2][0-9](?::?[0-5][0-9](?::?[0-5][0-9](?:[.,]\d{1,9})?)?)?)/.source].join("|")+")"),J=/(?:[+\u2212-]\d{6}|\d{4})/,L=/(?:0[1-9]|1[0-2])/,U=/(?:0[1-9]|[12]\d|3[01])/,H=new RegExp("(".concat(J.source,")(?:-(").concat(L.source,")-(").concat(U.source,")|(").concat(L.source,")(").concat(U.source,"))")),x=/(\d{2})(?::(\d{2})(?::(\d{2})(?:[.,](\d{1,9}))?)?|(\d{2})(?:(\d{2})(?:[.,](\d{1,9}))?)?)?/,q=/([+\u2212-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\d{1,9}))?)?)?/,W=new RegExp("([zZ])|".concat(q.source,"?")),z=/\[(!)?([a-z_][a-z0-9_-]*)=([A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)\]/g,V=new RegExp(["^".concat(H.source),"(?:(?:T|\\s+)".concat(x.source,"(?:").concat(W.source,")?)?"),"(?:\\[!?(".concat(Z.source,")\\])?"),"((?:".concat(z.source,")*)$")].join(""),"i"),K=new RegExp(["^T?".concat(x.source),"(?:".concat(W.source,")?"),"(?:\\[!?".concat(Z.source,"\\])?"),"((?:".concat(z.source,")*)$")].join(""),"i"),$=new RegExp("^(".concat(J.source,")-?(").concat(L.source,")(?:\\[!?").concat(Z.source,"\\])?((?:").concat(z.source,")*)$")),X=new RegExp("^(?:--)?(".concat(L.source,")-?(").concat(U.source,")(?:\\[!?").concat(Z.source,"\\])?((?:").concat(z.source,")*)$")),Q=/(\d+)(?:[.,](\d{1,9}))?/,ee=new RegExp("(?:".concat(Q.source,"H)?(?:").concat(Q.source,"M)?(?:").concat(Q.source,"S)?")),te=new RegExp("^([+−-])?P".concat(/(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?/.source,"(?:T(?!$)").concat(ee.source,")?$"),"i"),re=Array.prototype.includes,ne=Array.prototype.push,oe=globalThis.Intl.DateTimeFormat,ae=Math.min,ie=Math.max,le=Math.abs,se=Math.floor,ue=Math.sign,de=Math.trunc,ce=Number.isNaN,me=Number.isFinite,he=Number,fe=String,pe=Number.MAX_SAFE_INTEGER,ve=Object.create,Te=Object.getOwnPropertyDescriptor,ye=Reflect.apply,ge=Reflect.ownKeys,De=t.BigInt(0),Se=t.BigInt(1),Ie=t.BigInt(60),we=t.BigInt(24),_e=t.BigInt(1e3),Ce=t.BigInt(1e6),Ge=t.BigInt(1e9),be=t.BigInt(-1),Ee=t.multiply(t.BigInt(3600),Ge),Be=t.multiply(Ie,Ge),Oe=t.multiply(Ee,we),Fe=t.multiply(t.BigInt(-86400),t.BigInt(1e17)),ke=t.multiply(t.BigInt(86400),t.BigInt(1e17)),Me=-271821,Ae=275760,Re=t.multiply(t.BigInt(-388152),t.BigInt(1e13)),Pe=t.multiply(Oe,t.BigInt(3660)),Ye=t.multiply(Oe,t.BigInt(366)),je=t.multiply(Oe,t.BigInt(14)),Ne=["iso8601","hebrew","islamic","islamic-umalqura","islamic-tbla","islamic-civil","islamic-rgsa","islamicc","persian","ethiopic","ethioaa","coptic","chinese","dangi","roc","indian","buddhist","japanese","gregory"];function isZero(e){return t.equal(e,De)}function GetMethod(e,t){var r=e[t];if(void 0!==r)return r}function Call(e,t,r){var n=arguments.length>2?r:[];return ye(e,t,n)}function IsObject(e){return "object"===_typeof(e)&&null!==e||"function"==typeof e}function ToNumber(e){if("bigint"==typeof e)throw new TypeError("Cannot convert BigInt to number");return he(e)}function ToIntegerOrInfinity(e){var t=ToNumber(e);if(ce(t)||0===t)return 0;if(!me(t))return t;var r=se(le(t));return 0===r?0:ue(t)*r}function IsIntegralNumber(e){if("number"!=typeof e||ce(e)||!me(e))return !1;var t=le(e);return se(t)===t}function ToString(e){if("symbol"===_typeof(e))throw new TypeError("Cannot convert a Symbol value to a String");return fe(e)}function ToIntegerWithTruncation(e){var t=ToNumber(e);if(0===t)return 0;if(ce(t)||!me(t))throw new RangeError("invalid number value");var r=de(t);return 0===r?0:r}function ToPositiveIntegerWithTruncation(e,t){var r=ToIntegerWithTruncation(e);if(r<=0){if(void 0!==t)throw new RangeError("property '".concat(t,"' cannot be a a number less than one"));throw new RangeError("Cannot convert a number less than one to a positive integer")}return r}function ToIntegerIfIntegral(e){var t=ToNumber(e);if(!me(t))throw new RangeError("infinity is out of range");if(!IsIntegralNumber(t))throw new RangeError("unsupported fractional value ".concat(e));return 0===t?0:t}function divmod(e,r){return {quotient:t.divide(e,r),remainder:t.remainder(e,r)}}function isNegativeJSBI(e){return t.lessThan(e,De)}function signJSBI(e){return isZero(e)?0:isNegativeJSBI(e)?-1:1}function abs(e){return t.lessThan(e,De)?t.multiply(e,be):e}var Ze=new Map([["year",ToIntegerWithTruncation],["month",ToPositiveIntegerWithTruncation],["monthCode",ToString],["day",ToPositiveIntegerWithTruncation],["hour",ToIntegerWithTruncation],["minute",ToIntegerWithTruncation],["second",ToIntegerWithTruncation],["millisecond",ToIntegerWithTruncation],["microsecond",ToIntegerWithTruncation],["nanosecond",ToIntegerWithTruncation],["years",ToIntegerIfIntegral],["months",ToIntegerIfIntegral],["weeks",ToIntegerIfIntegral],["days",ToIntegerIfIntegral],["hours",ToIntegerIfIntegral],["minutes",ToIntegerIfIntegral],["seconds",ToIntegerIfIntegral],["milliseconds",ToIntegerIfIntegral],["microseconds",ToIntegerIfIntegral],["nanoseconds",ToIntegerIfIntegral],["era",ToString],["eraYear",ToIntegerOrInfinity],["offset",ToString]]),Je=new Map([["hour",0],["minute",0],["second",0],["millisecond",0],["microsecond",0],["nanosecond",0]]),Le=[["years","year","date"],["months","month","date"],["weeks","week","date"],["days","day","date"],["hours","hour","time"],["minutes","minute","time"],["seconds","second","time"],["milliseconds","millisecond","time"],["microseconds","microsecond","time"],["nanoseconds","nanosecond","time"]],Ue=new Map(Le.map((function(e){return [e[0],e[1]]}))),He=new Map(Le.map((function(e){var t=_slicedToArray(e,2),r=t[0];return [t[1],r]}))),xe=Le.map((function(e){return _slicedToArray(e,2)[1]})),qe=Array.from(Ue.keys()).sort(),We=new Map;function getIntlDateTimeFormatEnUsForTimeZone(e){var t=We.get(e);return void 0===t&&(t=new oe("en-us",{timeZone:fe(e),hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),We.set(e,t)),t}function ToObject(e){if(null==e)throw new TypeError("Expected object not ".concat(e));return Object(e)}function CopyDataProperties(e,t,r,n){if(null!=t){var o,a=_createForOfIteratorHelper(ge(t));try{var i=function _loop(){var a=o.value;if(r.some((function(e){return Object.is(e,a)})))return "continue";if(Object.prototype.propertyIsEnumerable.call(t,a)){var i=t[a];if(n&&n.some((function(e){return Object.is(e,i)})))return "continue";e[a]=i;}};for(a.s();!(o=a.n()).done;)i();}catch(e){a.e(e);}finally{a.f();}}}function IsTemporalInstant(e){return HasSlot(e,a)&&!HasSlot(e,S,v)}function IsTemporalTimeZone(e){return HasSlot(e,i)}function IsTemporalCalendar(e){return HasSlot(e,M)}function IsTemporalDuration(e){return HasSlot(e,I,w,C,G,b,E,B,O,k)}function IsTemporalDate(e){return HasSlot(e,T)}function IsTemporalTime(e){return HasSlot(e,d,c,m,h,f,p)&&!HasSlot(e,l,s,u)}function IsTemporalDateTime(e){return HasSlot(e,l,s,u,d,c,m,h,f,p)}function IsTemporalYearMonth(e){return HasSlot(e,y)}function IsTemporalMonthDay(e){return HasSlot(e,g)}function IsTemporalZonedDateTime(e){return HasSlot(e,a,S,v)}function RejectTemporalLikeObject(e){if(HasSlot(e,v)||HasSlot(e,S))throw new TypeError("with() does not support a calendar or timeZone property");if(IsTemporalTime(e))throw new TypeError("with() does not accept Temporal.PlainTime, use withPlainTime() instead");if(void 0!==e.calendar)throw new TypeError("with() does not support a calendar property");if(void 0!==e.timeZone)throw new TypeError("with() does not support a timeZone property")}function ParseTemporalTimeZone(e){var t=function ParseTemporalTimeZoneString(e){if(new RegExp("^".concat(Z.source,"$"),"i").test(e))return {ianaName:e};try{var t=ParseISODateTime(e);if(t.z||t.offset||t.ianaName)return t}catch(e){}throw new RangeError("Invalid time zone: ".concat(e))}(e),r=t.ianaName,n=t.offset,o=t.z;return r?GetCanonicalTimeZoneIdentifier(r):o?"UTC":FormatTimeZoneOffsetString(ParseTimeZoneOffsetString(n))}function MaybeFormatCalendarAnnotation(e,t){return "never"===t?"":FormatCalendarAnnotation(ToTemporalCalendarIdentifier(e),t)}function FormatCalendarAnnotation(e,t){return "never"===t||"auto"===t&&"iso8601"===e?"":"[".concat("critical"===t?"!":"","u-ca=").concat(e,"]")}function ParseISODateTime(e){var t=V.exec(e);if(!t)throw new RangeError("invalid ISO 8601 string: ".concat(e));var r=t[1];if("−"===r[0]&&(r="-".concat(r.slice(1))),"-000000"===r)throw new RangeError("invalid ISO 8601 string: ".concat(e));var n=ToIntegerOrInfinity(r),o=ToIntegerOrInfinity(t[2]||t[4]),a=ToIntegerOrInfinity(t[3]||t[5]),i=ToIntegerOrInfinity(t[6]),l=void 0!==t[6],s=ToIntegerOrInfinity(t[7]||t[10]),u=ToIntegerOrInfinity(t[8]||t[11]);60===u&&(u=59);var d,c=(t[9]||t[12])+"000000000",m=ToIntegerOrInfinity(c.slice(0,3)),h=ToIntegerOrInfinity(c.slice(3,6)),f=ToIntegerOrInfinity(c.slice(6,9)),p=!1;if(t[13])d=void 0,p=!0;else if(t[14]&&t[15]){var v="-"===t[14]||"−"===t[14]?"-":"+",T=t[15]||"00",y=t[16]||"00",g=t[17]||"00",D=t[18]||"0";if(d="".concat(v).concat(T,":").concat(y),+D){for(;D.endsWith("0");)D=D.slice(0,-1);d+=":".concat(g,".").concat(D);}else +g&&(d+=":".concat(g));"-00:00"===d&&(d="+00:00");}var S,I,w=t[19],_=_createForOfIteratorHelper(t[20].matchAll(z));try{for(_.s();!(I=_.n()).done;){var C=_slicedToArray(I.value,4),G=C[1],b=C[2],E=C[3];if("u-ca"===b)void 0===S&&(S=E);else if("!"===G)throw new RangeError("Unrecognized annotation: !".concat(b,"=").concat(E))}}catch(e){_.e(e);}finally{_.f();}return RejectDateTime(n,o,a,i,s,u,m,h,f),{year:n,month:o,day:a,hasTime:l,hour:i,minute:s,second:u,millisecond:m,microsecond:h,nanosecond:f,ianaName:w,offset:d,z:p,calendar:S}}function ParseTemporalTimeString(e){var t,r,n,o,a,i,l=K.exec(e);if(l){t=ToIntegerOrInfinity(l[1]),r=ToIntegerOrInfinity(l[2]||l[5]),60===(n=ToIntegerOrInfinity(l[3]||l[6]))&&(n=59);var s=(l[4]||l[7])+"000000000";o=ToIntegerOrInfinity(s.slice(0,3)),a=ToIntegerOrInfinity(s.slice(3,6)),i=ToIntegerOrInfinity(s.slice(6,9));var u,d=_createForOfIteratorHelper(l[14].matchAll(z));try{for(d.s();!(u=d.n()).done;){var c=_slicedToArray(u.value,4),m=c[1],h=c[2],f=c[3];if("u-ca"!==h&&"!"===m)throw new RangeError("Unrecognized annotation: !".concat(h,"=").concat(f))}}catch(e){d.e(e);}finally{d.f();}if(l[8])throw new RangeError("Z designator not supported for PlainTime")}else {var p,v,T=ParseISODateTime(e);if(v=T.hasTime,t=T.hour,r=T.minute,n=T.second,o=T.millisecond,a=T.microsecond,i=T.nanosecond,p=T.z,!v)throw new RangeError("time is missing in string: ".concat(e));if(p)throw new RangeError("Z designator not supported for PlainTime")}if(/[tT ][0-9][0-9]/.test(e))return {hour:t,minute:r,second:n,millisecond:o,microsecond:a,nanosecond:i};try{var y=ParseTemporalMonthDayString(e);RejectISODate(1972,y.month,y.day);}catch(l){try{var g=ParseTemporalYearMonthString(e);RejectISODate(g.year,g.month,1);}catch(e){return {hour:t,minute:r,second:n,millisecond:o,microsecond:a,nanosecond:i}}}throw new RangeError("invalid ISO 8601 time-only string ".concat(e,"; may need a T prefix"))}function ParseTemporalYearMonthString(e){var t,r,n,o,a=$.exec(e);if(a){var i=a[1];if("−"===i[0]&&(i="-".concat(i.slice(1))),"-000000"===i)throw new RangeError("invalid ISO 8601 string: ".concat(e));t=ToIntegerOrInfinity(i),r=ToIntegerOrInfinity(a[2]);var l,s=_createForOfIteratorHelper(a[3].matchAll(z));try{for(s.s();!(l=s.n()).done;){var u=_slicedToArray(l.value,4),d=u[1],c=u[2],m=u[3];if("u-ca"===c)void 0===n&&(n=m);else if("!"===d)throw new RangeError("Unrecognized annotation: !".concat(c,"=").concat(m))}}catch(e){s.e(e);}finally{s.f();}if(void 0!==n&&"iso8601"!==n)throw new RangeError("YYYY-MM format is only valid with iso8601 calendar")}else {var h=ParseISODateTime(e);if(t=h.year,r=h.month,n=h.calendar,o=h.day,h.z)throw new RangeError("Z designator not supported for PlainYearMonth")}return {year:t,month:r,calendar:n,referenceISODay:o}}function ParseTemporalMonthDayString(e){var t,r,n,o,a=X.exec(e);if(a){t=ToIntegerOrInfinity(a[1]),r=ToIntegerOrInfinity(a[2]);var i,l=_createForOfIteratorHelper(a[3].matchAll(z));try{for(l.s();!(i=l.n()).done;){var s=_slicedToArray(i.value,4),u=s[1],d=s[2],c=s[3];if("u-ca"===d)void 0===n&&(n=c);else if("!"===u)throw new RangeError("Unrecognized annotation: !".concat(d,"=").concat(c))}}catch(e){l.e(e);}finally{l.f();}if(void 0!==n&&"iso8601"!==n)throw new RangeError("MM-DD format is only valid with iso8601 calendar")}else {var m=ParseISODateTime(e);if(t=m.month,r=m.day,n=m.calendar,o=m.year,m.z)throw new RangeError("Z designator not supported for PlainMonthDay")}return {month:t,day:r,calendar:n,referenceISOYear:o}}function ParseTemporalInstant(e){var t=function ParseTemporalInstantString(e){var t=ParseISODateTime(e);if(!t.z&&!t.offset)throw new RangeError("Temporal.Instant requires a time zone offset");return t}(e),r=t.year,n=t.month,o=t.day,a=t.hour,i=t.minute,l=t.second,s=t.millisecond,u=t.microsecond,d=t.nanosecond,c=t.offset,m=t.z;if(!m&&!c)throw new RangeError("Temporal.Instant requires a time zone offset");var h=BalanceISODateTime(r,n,o,a,i,l,s,u,d-(m?0:ParseTimeZoneOffsetString(c))),f=GetUTCEpochNanoseconds(r=h.year,n=h.month,o=h.day,a=h.hour,i=h.minute,l=h.second,s=h.millisecond,u=h.microsecond,d=h.nanosecond);if(null===f)throw new RangeError("DateTime outside of supported range");return f}function RegulateISODate(e,t,r,n){var o=e,a=t,i=r;switch(n){case"reject":RejectISODate(o,a,i);break;case"constrain":var l=ConstrainISODate(o,a,i);o=l.year,a=l.month,i=l.day;}return {year:o,month:a,day:i}}function RegulateTime(e,t,r,n,o,a,i){var l=e,s=t,u=r,d=n,c=o,m=a;switch(i){case"reject":RejectTime(l,s,u,d,c,m);break;case"constrain":var h=function ConstrainTime(e,t,r,n,o,a){var i=ConstrainToRange(e,0,23),l=ConstrainToRange(t,0,59),s=ConstrainToRange(r,0,59),u=ConstrainToRange(n,0,999),d=ConstrainToRange(o,0,999),c=ConstrainToRange(a,0,999);return {hour:i,minute:l,second:s,millisecond:u,microsecond:d,nanosecond:c}}(l,s,u,d,c,m);l=h.hour,s=h.minute,u=h.second,d=h.millisecond,c=h.microsecond,m=h.nanosecond;}return {hour:l,minute:s,second:u,millisecond:d,microsecond:c,nanosecond:m}}function ToTemporalDurationRecord(e){if(!IsObject(e))return function ParseTemporalDurationString(e){var t=te.exec(e);if(!t)throw new RangeError("invalid duration: ".concat(e));if(t.slice(2).every((function(e){return void 0===e})))throw new RangeError("invalid duration: ".concat(e));var r="-"===t[1]||"−"===t[1]?-1:1,n=void 0===t[2]?0:ToIntegerWithTruncation(t[2])*r,o=void 0===t[3]?0:ToIntegerWithTruncation(t[3])*r,a=void 0===t[4]?0:ToIntegerWithTruncation(t[4])*r,i=void 0===t[5]?0:ToIntegerWithTruncation(t[5])*r,l=void 0===t[6]?0:ToIntegerWithTruncation(t[6])*r,s=t[7],u=t[8],d=t[9],c=t[10],m=t[11],h=0,f=0,p=0;if(void 0!==s){var v,T,y;if(null!==(v=null!==(T=null!==(y=null!=u?u:d)&&void 0!==y?y:c)&&void 0!==T?T:m)&&void 0!==v&&v)throw new RangeError("only the smallest unit can be fractional");p=3600*ToIntegerOrInfinity((s+"000000000").slice(0,9))*r;}else if(h=void 0===u?0:ToIntegerWithTruncation(u)*r,void 0!==d){var g;if(null!==(g=null!=c?c:m)&&void 0!==g&&g)throw new RangeError("only the smallest unit can be fractional");p=60*ToIntegerOrInfinity((d+"000000000").slice(0,9))*r;}else f=void 0===c?0:ToIntegerWithTruncation(c)*r,void 0!==m&&(p=ToIntegerOrInfinity((m+"000000000").slice(0,9))*r);var D=p%1e3,S=de(p/1e3)%1e3,I=de(p/1e6)%1e3;return f+=de(p/1e9)%60,RejectDuration(n,o,a,i,l,h+=de(p/6e10),f,I,S,D),{years:n,months:o,weeks:a,days:i,hours:l,minutes:h,seconds:f,milliseconds:I,microseconds:S,nanoseconds:D}}(ToString(e));if(IsTemporalDuration(e))return {years:GetSlot(e,I),months:GetSlot(e,w),weeks:GetSlot(e,_),days:GetSlot(e,C),hours:GetSlot(e,G),minutes:GetSlot(e,b),seconds:GetSlot(e,E),milliseconds:GetSlot(e,B),microseconds:GetSlot(e,O),nanoseconds:GetSlot(e,k)};var t,r={years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0},n=function ToTemporalPartialDurationRecord(e){if(!IsObject(e))throw new TypeError("invalid duration-like");var t,r={years:void 0,months:void 0,weeks:void 0,days:void 0,hours:void 0,minutes:void 0,seconds:void 0,milliseconds:void 0,microseconds:void 0,nanoseconds:void 0},n=!1,o=_createForOfIteratorHelper(qe);try{for(o.s();!(t=o.n()).done;){var a=t.value,i=e[a];void 0!==i&&(n=!0,r[a]=ToIntegerIfIntegral(i));}}catch(e){o.e(e);}finally{o.f();}if(!n)throw new TypeError("invalid duration-like");return r}(e),o=_createForOfIteratorHelper(qe);try{for(o.s();!(t=o.n()).done;){var a=t.value,i=n[a];void 0!==i&&(r[a]=i);}}catch(e){o.e(e);}finally{o.f();}var l=r.years,s=r.months,u=r.weeks,d=r.days,c=r.hours,m=r.minutes,h=r.seconds,f=r.milliseconds,p=r.microseconds,v=r.nanoseconds;return RejectDuration(l,s,u,d,c,m,h,f,p,v),{years:l,months:s,weeks:u,days:d,hours:c,minutes:m,seconds:h,milliseconds:f,microseconds:p,nanoseconds:v}}function ToTemporalOverflow(e){return void 0===e?"constrain":GetOption(e,"overflow",["constrain","reject"],"constrain")}function ToTemporalDisambiguation(e){return void 0===e?"compatible":GetOption(e,"disambiguation",["compatible","earlier","later","reject"],"compatible")}function ToTemporalRoundingMode(e,t){return GetOption(e,"roundingMode",["ceil","floor","expand","trunc","halfCeil","halfFloor","halfExpand","halfTrunc","halfEven"],t)}function ToTemporalOffset(e,t){return void 0===e?t:GetOption(e,"offset",["prefer","use","ignore","reject"],t)}function ToCalendarNameOption(e){return GetOption(e,"calendarName",["auto","always","never","critical"],"auto")}function ToTimeZoneNameOption(e){return GetOption(e,"timeZoneName",["auto","never","critical"],"auto")}function ToShowOffsetOption(e){return GetOption(e,"offset",["auto","never"],"auto")}function ToTemporalRoundingIncrement(e){var t=e.roundingIncrement;if(void 0===t)return 1;if(t=ToNumber(t),!me(t))throw new RangeError("roundingIncrement must be finite");var r=de(t);if(r<1||r>1e9)throw new RangeError("roundingIncrement must be at least 1 and at most 1e9, not ".concat(t));return r}function ValidateTemporalRoundingIncrement(e,t,r){var n=r?t:t-1;if(e>n)throw new RangeError("roundingIncrement must be at least 1 and less than ".concat(n,", not ").concat(e));if(t%e!=0)throw new RangeError("Rounding increment must divide evenly into ".concat(t))}function ToFractionalSecondDigits(e){var t=e.fractionalSecondDigits;if(void 0===t)return "auto";if("number"!=typeof t){if("auto"!==ToString(t))throw new RangeError("fractionalSecondDigits must be 'auto' or 0 through 9, not ".concat(t));return "auto"}var r=se(t);if(!me(r)||r<0||r>9)throw new RangeError("fractionalSecondDigits must be 'auto' or 0 through 9, not ".concat(t));return r}function ToSecondsStringPrecisionRecord(e,t){switch(e){case"minute":return {precision:"minute",unit:"minute",increment:1};case"second":return {precision:0,unit:"second",increment:1};case"millisecond":return {precision:3,unit:"millisecond",increment:1};case"microsecond":return {precision:6,unit:"microsecond",increment:1};case"nanosecond":return {precision:9,unit:"nanosecond",increment:1}}switch(t){case"auto":return {precision:t,unit:"nanosecond",increment:1};case 0:return {precision:t,unit:"second",increment:1};case 1:case 2:case 3:return {precision:t,unit:"millisecond",increment:Math.pow(10,3-t)};case 4:case 5:case 6:return {precision:t,unit:"microsecond",increment:Math.pow(10,6-t)};case 7:case 8:case 9:return {precision:t,unit:"nanosecond",increment:Math.pow(10,9-t)};default:throw new RangeError("fractionalSecondDigits must be 'auto' or 0 through 9, not ".concat(t))}}var ze=Symbol("~required~");function GetTemporalUnit(e,t,r,n){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=[],l=_createForOfIteratorHelper(Le);try{for(l.s();!(o=l.n()).done;){var s=_slicedToArray(o.value,3),u=s[1],d=s[2];"datetime"!==r&&r!==d||i.push(u);}}catch(e){l.e(e);}finally{l.f();}i.push.apply(i,_toConsumableArray(a));var c=n;c===ze?c=void 0:void 0!==c&&i.push(c);for(var m=[].concat(i),h=0,f=i;h<f.length;h++){var p=f[h],v=He.get(p);void 0!==v&&m.push(v);}var T=GetOption(e,t,m,c);if(void 0===T&&n===ze)throw new RangeError("".concat(t," is required"));return Ue.has(T)?Ue.get(T):T}function ToRelativeTemporalObject(e){var t=e.relativeTo;if(void 0===t)return t;var r,n,o,a,i,l,s,u,d,c,m,h,f="option",p=!1;if(IsObject(t)){if(IsTemporalZonedDateTime(t)||IsTemporalDate(t))return t;if(IsTemporalDateTime(t))return TemporalDateTimeToDate(t);var v=CalendarFields(c=GetTemporalCalendarSlotValueWithISODefault(t),["day","hour","microsecond","millisecond","minute","month","monthCode","nanosecond","second","year"]);v.push("timeZone","offset");var T=PrepareTemporalFields(t,v,[]),y=ve(null);y.overflow="constrain";var g=InterpretTemporalDateTimeFields(c,T,y);r=g.year,n=g.month,o=g.day,a=g.hour,i=g.minute,l=g.second,s=g.millisecond,u=g.microsecond,d=g.nanosecond,void 0===(h=T.offset)&&(f="wall"),void 0!==(m=T.timeZone)&&(m=ToTemporalTimeZoneSlotValue(m));}else {var D,S,I=ParseISODateTime(ToString(t));if(r=I.year,n=I.month,o=I.day,a=I.hour,i=I.minute,l=I.second,s=I.millisecond,u=I.microsecond,d=I.nanosecond,c=I.calendar,D=I.ianaName,h=I.offset,S=I.z,D)m=ToTemporalTimeZoneSlotValue(D),S?f="exact":h||(f="wall"),p=!0;else if(S)throw new RangeError("Z designator not supported for PlainDate relativeTo; either remove the Z or add a bracketed time zone");if(c||(c="iso8601"),!IsBuiltinCalendar(c))throw new RangeError("invalid calendar identifier ".concat(c));c=ASCIILowercase(c);}return void 0===m?CreateTemporalDate(r,n,o,c):CreateTemporalZonedDateTime(InterpretISODateTimeOffset(r,n,o,a,i,l,s,u,d,f,"option"===f?ParseTimeZoneOffsetString(h):0,m,"compatible","reject",p),m,c)}function DefaultTemporalLargestUnit(e,t,r,n,o,a,i,l,s,u){for(var d=0,c=[["years",e],["months",t],["weeks",r],["days",n],["hours",o],["minutes",a],["seconds",i],["milliseconds",l],["microseconds",s],["nanoseconds",u]];d<c.length;d++){var m=_slicedToArray(c[d],2),h=m[0];if(0!==m[1])return Ue.get(h)}return "nanosecond"}function LargerOfTwoTemporalUnits(e,t){return xe.indexOf(e)>xe.indexOf(t)?t:e}function PrepareTemporalFields(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{emptySourceErrorMessage:"no supported properties found"},o=n.emptySourceErrorMessage,a=ve(null),i=!1;t.sort();var l,s=_createForOfIteratorHelper(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=e[u];if(void 0!==d)i=!0,Ze.has(u)&&(d=Ze.get(u)(d)),a[u]=d;else if("partial"!==r){if(re.call(r,u))throw new TypeError("required property '".concat(u,"' missing or undefined"));d=Je.get(u),a[u]=d;}}}catch(e){s.e(e);}finally{s.f();}if("partial"===r&&!i)throw new TypeError(o);return a}function ToTemporalTimeRecord(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"complete",r=["hour","microsecond","millisecond","minute","nanosecond","second"],n=PrepareTemporalFields(e,r,"partial",{emptySourceErrorMessage:"invalid time-like"}),o={},a=0,i=r;a<i.length;a++){var l=i[a],s=Te(n,l);void 0!==s?o[l]=s.value:"complete"===t&&(o[l]=0);}return o}function ToTemporalDate(e,t){var r=e;if(IsObject(r)){if(IsTemporalDate(r))return r;if(IsTemporalZonedDateTime(r)&&(ToTemporalOverflow(t),r=GetPlainDateTimeFor(GetSlot(r,S),GetSlot(r,D),GetSlot(r,v))),IsTemporalDateTime(r))return ToTemporalOverflow(t),CreateTemporalDate(GetSlot(r,l),GetSlot(r,s),GetSlot(r,u),GetSlot(r,v));var n=GetTemporalCalendarSlotValueWithISODefault(r);return CalendarDateFromFields(n,PrepareTemporalFields(r,CalendarFields(n,["day","month","monthCode","year"]),[]),t)}ToTemporalOverflow(t);var o=function ParseTemporalDateString(e){return ParseISODateTime(e)}(ToString(r)),a=o.year,i=o.month,d=o.day,c=o.calendar;if(o.z)throw new RangeError("Z designator not supported for PlainDate");if(c||(c="iso8601"),!IsBuiltinCalendar(c))throw new RangeError("invalid calendar identifier ".concat(c));return CreateTemporalDate(a,i,d,c=ASCIILowercase(c))}function InterpretTemporalDateTimeFields(e,t,r){var n=ToTemporalTimeRecord(t),o=n.hour,a=n.minute,i=n.second,d=n.millisecond,c=n.microsecond,m=n.nanosecond,h=ToTemporalOverflow(r),f=CalendarDateFromFields(e,t,r),p=GetSlot(f,l),v=GetSlot(f,s),T=GetSlot(f,u),y=RegulateTime(o,a,i,d,c,m,h);return {year:p,month:v,day:T,hour:o=y.hour,minute:a=y.minute,second:i=y.second,millisecond:d=y.millisecond,microsecond:c=y.microsecond,nanosecond:m=y.nanosecond}}function ToTemporalDateTime(e,t){var r,n,o,a,i,d,c,m,h,f;if(IsObject(e)){if(IsTemporalDateTime(e))return e;if(IsTemporalZonedDateTime(e))return ToTemporalOverflow(t),GetPlainDateTimeFor(GetSlot(e,S),GetSlot(e,D),GetSlot(e,v));if(IsTemporalDate(e))return ToTemporalOverflow(t),CreateTemporalDateTime(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),0,0,0,0,0,0,GetSlot(e,v));var p=InterpretTemporalDateTimeFields(f=GetTemporalCalendarSlotValueWithISODefault(e),PrepareTemporalFields(e,CalendarFields(f,["day","hour","microsecond","millisecond","minute","month","monthCode","nanosecond","second","year"]),[]),t);r=p.year,n=p.month,o=p.day,a=p.hour,i=p.minute,d=p.second,c=p.millisecond,m=p.microsecond,h=p.nanosecond;}else {ToTemporalOverflow(t);var T=function ParseTemporalDateTimeString(e){return ParseISODateTime(e)}(ToString(e));if(r=T.year,n=T.month,o=T.day,a=T.hour,i=T.minute,d=T.second,c=T.millisecond,m=T.microsecond,h=T.nanosecond,f=T.calendar,T.z)throw new RangeError("Z designator not supported for PlainDateTime");if(RejectDateTime(r,n,o,a,i,d,c,m,h),f||(f="iso8601"),!IsBuiltinCalendar(f))throw new RangeError("invalid calendar identifier ".concat(f));f=ASCIILowercase(f);}return CreateTemporalDateTime(r,n,o,a,i,d,c,m,h,f)}function ToTemporalDuration(e){if(IsTemporalDuration(e))return e;var t=ToTemporalDurationRecord(e),r=t.years,n=t.months,o=t.weeks,a=t.days,i=t.hours,l=t.minutes,s=t.seconds,u=t.milliseconds,d=t.microseconds,c=t.nanoseconds;return new(GetIntrinsic("%Temporal.Duration%"))(r,n,o,a,i,l,s,u,d,c)}function ToTemporalInstant(e){if(IsTemporalInstant(e))return e;if(IsTemporalZonedDateTime(e))return new(GetIntrinsic("%Temporal.Instant%"))(GetSlot(e,a));var t=ParseTemporalInstant(ToString(e));return new(GetIntrinsic("%Temporal.Instant%"))(t)}function ToTemporalMonthDay(e,t){var r=e;if(IsObject(r)){if(IsTemporalMonthDay(r))return r;var n,o;if(HasSlot(r,v))n=GetSlot(r,v),o=!1;else {var a=r.calendar;o=void 0===a,void 0===a&&(a="iso8601"),n=ToTemporalCalendarSlotValue(a);}var i=PrepareTemporalFields(r,CalendarFields(n,["day","month","monthCode","year"]),[]);return o&&void 0!==i.month&&void 0===i.monthCode&&void 0===i.year&&(i.year=1972),CalendarMonthDayFromFields(n,i,t)}ToTemporalOverflow(t);var l=ParseTemporalMonthDayString(ToString(r)),s=l.month,u=l.day,d=l.referenceISOYear,c=l.calendar;if(void 0===c&&(c="iso8601"),!IsBuiltinCalendar(c))throw new RangeError("invalid calendar identifier ".concat(c));return c=ASCIILowercase(c),void 0===d?(RejectISODate(1972,s,u),CreateTemporalMonthDay(s,u,c)):CalendarMonthDayFromFields(c,CreateTemporalMonthDay(s,u,c,d))}function ToTemporalTime(e){var t,r,n,o,a,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"constrain",s=e;if(IsObject(s)){if(IsTemporalTime(s))return s;if(IsTemporalZonedDateTime(s)&&(s=GetPlainDateTimeFor(GetSlot(s,S),GetSlot(s,D),GetSlot(s,v))),IsTemporalDateTime(s)){var u=GetIntrinsic("%Temporal.PlainTime%");return new u(GetSlot(s,d),GetSlot(s,c),GetSlot(s,m),GetSlot(s,h),GetSlot(s,f),GetSlot(s,p))}var T=ToTemporalTimeRecord(s),y=RegulateTime(t=T.hour,r=T.minute,n=T.second,o=T.millisecond,a=T.microsecond,i=T.nanosecond,l);t=y.hour,r=y.minute,n=y.second,o=y.millisecond,a=y.microsecond,i=y.nanosecond;}else {var g=ParseTemporalTimeString(ToString(s));RejectTime(t=g.hour,r=g.minute,n=g.second,o=g.millisecond,a=g.microsecond,i=g.nanosecond);}var I=GetIntrinsic("%Temporal.PlainTime%");return new I(t,r,n,o,a,i)}function ToTemporalYearMonth(e,t){if(IsObject(e)){if(IsTemporalYearMonth(e))return e;var r=GetTemporalCalendarSlotValueWithISODefault(e);return CalendarYearMonthFromFields(r,PrepareTemporalFields(e,CalendarFields(r,["month","monthCode","year"]),[]),t)}ToTemporalOverflow(t);var n=ParseTemporalYearMonthString(ToString(e)),o=n.year,a=n.month,i=n.referenceISODay,l=n.calendar;if(void 0===l&&(l="iso8601"),!IsBuiltinCalendar(l))throw new RangeError("invalid calendar identifier ".concat(l));return l=ASCIILowercase(l),void 0===i?(RejectISODate(o,a,1),CreateTemporalYearMonth(o,a,l)):CalendarYearMonthFromFields(l,CreateTemporalYearMonth(o,a,l,i))}function InterpretISODateTimeOffset(e,r,n,o,l,s,u,d,c,m,h,f,p,v,T){var y=new(GetIntrinsic("%Temporal.PlainDateTime%"))(e,r,n,o,l,s,u,d,c);if("wall"===m||"ignore"===v)return GetSlot(GetInstantFor(f,y,p),a);if("exact"===m||"use"===v){var g=GetUTCEpochNanoseconds(e,r,n,o,l,s,u,d,c);if(null===g)throw new RangeError("ZonedDateTime outside of supported range");return t.subtract(g,t.BigInt(h))}var D,S=GetPossibleInstantsFor(f,y),I=_createForOfIteratorHelper(S);try{for(I.s();!(D=I.n()).done;){var w=D.value,_=GetOffsetNanosecondsFor(f,w),C=t.toNumber(RoundNumberToIncrement(t.BigInt(_),Be,"halfExpand"));if(_===h||T&&C===h)return GetSlot(w,a)}}catch(e){I.e(e);}finally{I.f();}if("reject"===v){var G=FormatTimeZoneOffsetString(h),b=IsTemporalTimeZone(f)?GetSlot(f,i):"time zone";throw new RangeError("Offset ".concat(G," is invalid for ").concat(y.toString()," in ").concat(b))}return GetSlot(DisambiguatePossibleInstants(S,f,y,p),a)}function ToTemporalZonedDateTime(e,t){var r,n,o,a,i,l,s,u,d,c,m,h,f,p,v=!1,T="option";if(IsObject(e)){if(IsTemporalZonedDateTime(e))return e;var y=CalendarFields(h=GetTemporalCalendarSlotValueWithISODefault(e),["day","hour","microsecond","millisecond","minute","month","monthCode","nanosecond","second","year"]);y.push("timeZone","offset");var g=PrepareTemporalFields(e,y,["timeZone"]);c=ToTemporalTimeZoneSlotValue(g.timeZone),void 0===(m=g.offset)&&(T="wall"),f=ToTemporalDisambiguation(t),p=ToTemporalOffset(t,"reject");var D=InterpretTemporalDateTimeFields(h,g,t);r=D.year,n=D.month,o=D.day,a=D.hour,i=D.minute,l=D.second,s=D.millisecond,u=D.microsecond,d=D.nanosecond;}else {var S,I,w=function ParseTemporalZonedDateTimeString(e){var t=ParseISODateTime(e);if(!t.ianaName)throw new RangeError("Temporal.ZonedDateTime requires a time zone ID in brackets");return t}(ToString(e));if(r=w.year,n=w.month,o=w.day,a=w.hour,i=w.minute,l=w.second,s=w.millisecond,u=w.microsecond,d=w.nanosecond,S=w.ianaName,m=w.offset,I=w.z,h=w.calendar,c=ToTemporalTimeZoneSlotValue(S),I?T="exact":m||(T="wall"),h||(h="iso8601"),!IsBuiltinCalendar(h))throw new RangeError("invalid calendar identifier ".concat(h));h=ASCIILowercase(h),v=!0,f=ToTemporalDisambiguation(t),p=ToTemporalOffset(t,"reject"),ToTemporalOverflow(t);}var _=0;return "option"===T&&(_=ParseTimeZoneOffsetString(m)),CreateTemporalZonedDateTime(InterpretISODateTimeOffset(r,n,o,a,i,l,s,u,d,T,_,c,f,p,v),c,h)}function CreateTemporalDateSlots(e,t,r,n,o){RejectISODate(t,r,n),RejectDateRange(t,r,n),j(e),SetSlot(e,l,t),SetSlot(e,s,r),SetSlot(e,u,n),SetSlot(e,v,o),SetSlot(e,T,!0);}function CreateTemporalDate(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iso8601",o=GetIntrinsic("%Temporal.PlainDate%"),a=ve(o.prototype);return CreateTemporalDateSlots(a,e,t,r,n),a}function CreateTemporalDateTimeSlots(e,t,r,n,o,a,i,T,y,g,D){RejectDateTime(t,r,n,o,a,i,T,y,g),RejectDateTimeRange(t,r,n,o,a,i,T,y,g),j(e),SetSlot(e,l,t),SetSlot(e,s,r),SetSlot(e,u,n),SetSlot(e,d,o),SetSlot(e,c,a),SetSlot(e,m,i),SetSlot(e,h,T),SetSlot(e,f,y),SetSlot(e,p,g),SetSlot(e,v,D);}function CreateTemporalDateTime(e,t,r,n,o,a,i,l,s){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"iso8601",d=GetIntrinsic("%Temporal.PlainDateTime%"),c=ve(d.prototype);return CreateTemporalDateTimeSlots(c,e,t,r,n,o,a,i,l,s,u),c}function CreateTemporalMonthDaySlots(e,t,r,n,o){RejectISODate(o,t,r),RejectDateRange(o,t,r),j(e),SetSlot(e,s,t),SetSlot(e,u,r),SetSlot(e,l,o),SetSlot(e,v,n),SetSlot(e,g,!0);}function CreateTemporalMonthDay(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1972,o=GetIntrinsic("%Temporal.PlainMonthDay%"),a=ve(o.prototype);return CreateTemporalMonthDaySlots(a,e,t,r,n),a}function CreateTemporalYearMonthSlots(e,t,r,n,o){RejectISODate(t,r,o),function RejectYearMonthRange(e,t){RejectToRange(e,Me,Ae),e===Me?RejectToRange(t,4,12):e===Ae&&RejectToRange(t,1,9);}(t,r),j(e),SetSlot(e,l,t),SetSlot(e,s,r),SetSlot(e,u,o),SetSlot(e,v,n),SetSlot(e,y,!0);}function CreateTemporalYearMonth(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=GetIntrinsic("%Temporal.PlainYearMonth%"),a=ve(o.prototype);return CreateTemporalYearMonthSlots(a,e,t,r,n),a}function CreateTemporalZonedDateTimeSlots(e,t,r,n){ValidateEpochNanoseconds(t),j(e),SetSlot(e,a,t),SetSlot(e,S,r),SetSlot(e,v,n);var o=new(GetIntrinsic("%Temporal.Instant%"))(GetSlot(e,a));SetSlot(e,D,o);}function CreateTemporalZonedDateTime(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601",n=GetIntrinsic("%Temporal.ZonedDateTime%"),o=ve(n.prototype);return CreateTemporalZonedDateTimeSlots(o,e,t,r),o}function CalendarFields(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.fields%"),r,[t])}var n,o=[],a=_createForOfIteratorHelper(Call(GetMethod(e,"fields"),e,[t]));try{for(a.s();!(n=a.n()).done;){var i=n.value;if("string"!=typeof i)throw new TypeError("bad return from calendar.fields()");ne.call(o,i);}}catch(e){a.e(e);}finally{a.f();}return o}function CalendarMergeFields(e,t,r){if("string"==typeof e){var n=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.mergeFields%"),n,[t,r])}var o=Call(GetMethod(e,"mergeFields"),e,[t,r]);if(!IsObject(o))throw new TypeError("bad return from calendar.mergeFields()");return o}function CalendarDateAdd(e,t,r,n,o){var a=o;if("string"==typeof e){var i=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.dateAdd%"),i,[t,r,n])}void 0===a&&(a=GetMethod(e,"dateAdd"));var l=ye(a,e,[t,r,n]);if(!IsTemporalDate(l))throw new TypeError("invalid result");return l}function CalendarDateUntil(e,t,r,n,o){var a=o;if("string"==typeof e){var i=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.dateUntil%"),i,[t,r,n])}void 0===a&&(a=GetMethod(e,"dateUntil"));var l=ye(a,e,[t,r,n]);if(!IsTemporalDuration(l))throw new TypeError("invalid result");return l}function CalendarYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.year%"),r,[t])}var n=Call(GetMethod(e,"year"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar year result must be an integer");if(!IsIntegralNumber(n))throw new RangeError("calendar year result must be an integer");return n}function CalendarMonth(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.month%"),r,[t])}var n=Call(GetMethod(e,"month"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar month result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar month result must be a positive integer");return n}function CalendarMonthCode(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.monthCode%"),r,[t])}var n=Call(GetMethod(e,"monthCode"),e,[t]);if("string"!=typeof n)throw new TypeError("calendar monthCode result must be a string");return n}function CalendarDay(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.day%"),r,[t])}var n=Call(GetMethod(e,"day"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar day result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar day result must be a positive integer");return n}function CalendarEra(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.era%"),r,[t])}var n=Call(GetMethod(e,"era"),e,[t]);if(void 0===n)return n;if("string"!=typeof n)throw new TypeError("calendar era result must be a string or undefined");return n}function CalendarEraYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.eraYear%"),r,[t])}var n=Call(GetMethod(e,"eraYear"),e,[t]);if(void 0===n)return n;if("number"!=typeof n)throw new TypeError("calendar eraYear result must be an integer or undefined");if(!IsIntegralNumber(n))throw new RangeError("calendar eraYear result must be an integer or undefined");return n}function CalendarDayOfWeek(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.dayOfWeek%"),r,[t])}var n=Call(GetMethod(e,"dayOfWeek"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar dayOfWeek result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar dayOfWeek result must be a positive integer");return n}function CalendarDayOfYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.dayOfYear%"),r,[t])}var n=Call(GetMethod(e,"dayOfYear"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar dayOfYear result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar dayOfYear result must be a positive integer");return n}function CalendarWeekOfYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.weekOfYear%"),r,[t])}var n=Call(GetMethod(e,"weekOfYear"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar weekOfYear result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar weekOfYear result must be a positive integer");return n}function CalendarYearOfWeek(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.yearOfWeek%"),r,[t])}var n=Call(GetMethod(e,"yearOfWeek"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar yearOfWeek result must be an integer");if(!IsIntegralNumber(n))throw new RangeError("calendar yearOfWeek result must be an integer");return n}function CalendarDaysInWeek(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.daysInWeek%"),r,[t])}var n=Call(GetMethod(e,"daysInWeek"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar daysInWeek result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar daysInWeek result must be a positive integer");return n}function CalendarDaysInMonth(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.daysInMonth%"),r,[t])}var n=Call(GetMethod(e,"daysInMonth"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar daysInMonth result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar daysInMonth result must be a positive integer");return n}function CalendarDaysInYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.daysInYear%"),r,[t])}var n=Call(GetMethod(e,"daysInYear"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar daysInYear result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar daysInYear result must be a positive integer");return n}function CalendarMonthsInYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.monthsInYear%"),r,[t])}var n=Call(GetMethod(e,"monthsInYear"),e,[t]);if("number"!=typeof n)throw new TypeError("calendar monthsInYear result must be a positive integer");if(!IsIntegralNumber(n)||n<1)throw new RangeError("calendar monthsInYear result must be a positive integer");return n}function CalendarInLeapYear(e,t){if("string"==typeof e){var r=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.inLeapYear%"),r,[t])}var n=Call(GetMethod(e,"inLeapYear"),e,[t]);if("boolean"!=typeof n)throw new TypeError("calendar inLeapYear result must be a boolean");return n}function ToTemporalCalendarSlotValue(e){if(IsObject(e)){if(HasSlot(e,v))return GetSlot(e,v);if(!function ObjectImplementsTemporalCalendarProtocol(e){return !!IsTemporalCalendar(e)||"dateAdd"in e&&"dateFromFields"in e&&"dateUntil"in e&&"day"in e&&"dayOfWeek"in e&&"dayOfYear"in e&&"daysInMonth"in e&&"daysInWeek"in e&&"daysInYear"in e&&"fields"in e&&"id"in e&&"inLeapYear"in e&&"mergeFields"in e&&"month"in e&&"monthCode"in e&&"monthDayFromFields"in e&&"monthsInYear"in e&&"weekOfYear"in e&&"year"in e&&"yearMonthFromFields"in e&&"yearOfWeek"in e}(e))throw new TypeError("expected a Temporal.Calendar or object implementing the Temporal.Calendar protocol");return e}var t,r=ToString(e);if(IsBuiltinCalendar(r))return ASCIILowercase(r);try{t=ParseISODateTime(r).calendar;}catch(e){try{t=ParseTemporalYearMonthString(r).calendar;}catch(e){t=ParseTemporalMonthDayString(r).calendar;}}if(t||(t="iso8601"),!IsBuiltinCalendar(t))throw new RangeError("invalid calendar identifier ".concat(t));return ASCIILowercase(t)}function GetTemporalCalendarSlotValueWithISODefault(e){if(HasSlot(e,v))return GetSlot(e,v);var t=e.calendar;return void 0===t?"iso8601":ToTemporalCalendarSlotValue(t)}function ToTemporalCalendarIdentifier(e){if("string"==typeof e)return e;var t=e.id;if("string"!=typeof t)throw new TypeError("calendar.id should be a string");return t}function ToTemporalCalendarObject(e){return IsObject(e)?e:new(GetIntrinsic("%Temporal.Calendar%"))(e)}function CalendarEquals(e,t){return e===t||ToTemporalCalendarIdentifier(e)===ToTemporalCalendarIdentifier(t)}function ThrowIfCalendarsNotEqual(e,t,r){if(e!==t){var n=ToTemporalCalendarIdentifier(e),o=ToTemporalCalendarIdentifier(t);if(n!==o)throw new RangeError("cannot ".concat(r," of ").concat(n," and ").concat(o," calendars"))}}function ConsolidateCalendars(e,t){if(e===t)return t;var r=ToTemporalCalendarIdentifier(e),n=ToTemporalCalendarIdentifier(t);if(r===n||"iso8601"===r)return t;if("iso8601"===n)return e;throw new RangeError("irreconcilable calendars")}function CalendarDateFromFields(e,t,r,n){if("string"==typeof e){var o=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.dateFromFields%"),o,[t,r])}var a=Call(null!=n?n:GetMethod(e,"dateFromFields"),e,[t,r]);if(!IsTemporalDate(a))throw new TypeError("invalid result");return a}function CalendarYearMonthFromFields(e,t,r){if("string"==typeof e){var n=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.yearMonthFromFields%"),n,[t,r])}var o=Call(GetMethod(e,"yearMonthFromFields"),e,[t,r]);if(!IsTemporalYearMonth(o))throw new TypeError("invalid result");return o}function CalendarMonthDayFromFields(e,t,r){if("string"==typeof e){var n=new(GetIntrinsic("%Temporal.Calendar%"))(e);return Call(GetIntrinsic("%Temporal.Calendar.prototype.monthDayFromFields%"),n,[t,r])}var o=Call(GetMethod(e,"monthDayFromFields"),e,[t,r]);if(!IsTemporalMonthDay(o))throw new TypeError("invalid result");return o}function ToTemporalTimeZoneSlotValue(e){if(IsObject(e)){if(IsTemporalZonedDateTime(e))return GetSlot(e,S);if(!function ObjectImplementsTemporalTimeZoneProtocol(e){return !!IsTemporalTimeZone(e)||"getOffsetNanosecondsFor"in e&&"getPossibleInstantsFor"in e&&"id"in e}(e))throw new TypeError("expected a Temporal.TimeZone or object implementing the Temporal.TimeZone protocol");return e}return ParseTemporalTimeZone(ToString(e))}function ToTemporalTimeZoneIdentifier(e){if("string"==typeof e)return e;var t=e.id;if("string"!=typeof t)throw new TypeError("timeZone.id should be a string");return t}function ToTemporalTimeZoneObject(e){return IsObject(e)?e:new(GetIntrinsic("%Temporal.TimeZone%"))(e)}function TimeZoneEquals(e,t){return e===t||ToTemporalTimeZoneIdentifier(e)===ToTemporalTimeZoneIdentifier(t)}function TemporalDateTimeToDate(e){return CreateTemporalDate(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),GetSlot(e,v))}function TemporalDateTimeToTime(e){return new(GetIntrinsic("%Temporal.PlainTime%"))(GetSlot(e,d),GetSlot(e,c),GetSlot(e,m),GetSlot(e,h),GetSlot(e,f),GetSlot(e,p))}function GetOffsetNanosecondsFor(e,t,r){if("string"==typeof e){var n=new(GetIntrinsic("%Temporal.TimeZone%"))(e);return Call(GetIntrinsic("%Temporal.TimeZone.prototype.getOffsetNanosecondsFor%"),n,[t])}var o=Call(null!=r?r:GetMethod(e,"getOffsetNanosecondsFor"),e,[t]);if("number"!=typeof o)throw new TypeError("bad return from getOffsetNanosecondsFor");if(!IsIntegralNumber(o)||le(o)>=864e11)throw new RangeError("out-of-range return from getOffsetNanosecondsFor");return o}function GetOffsetStringFor(e,t){return FormatTimeZoneOffsetString(GetOffsetNanosecondsFor(e,t))}function GetPlainDateTimeFor(e,t,r){var n=GetSlot(t,a),o=GetOffsetNanosecondsFor(e,t),i=GetISOPartsFromEpoch(n),l=i.year,s=i.month,u=i.day,d=i.hour,c=i.minute,m=i.second,h=i.millisecond,f=i.microsecond,p=i.nanosecond,v=BalanceISODateTime(l,s,u,d,c,m,h,f,p+o);return CreateTemporalDateTime(l=v.year,s=v.month,u=v.day,d=v.hour,c=v.minute,m=v.second,h=v.millisecond,f=v.microsecond,p=v.nanosecond,r)}function GetInstantFor(e,t,r){return DisambiguatePossibleInstants(GetPossibleInstantsFor(e,t),e,t,r)}function DisambiguatePossibleInstants(e,r,n,o){var a=GetIntrinsic("%Temporal.Instant%"),i=e.length;if(1===i)return e[0];if(i)switch(o){case"compatible":case"earlier":return e[0];case"later":return e[i-1];case"reject":throw new RangeError("multiple instants found")}var T=GetSlot(n,l),y=GetSlot(n,s),g=GetSlot(n,u),D=GetSlot(n,d),S=GetSlot(n,c),I=GetSlot(n,m),w=GetSlot(n,h),_=GetSlot(n,f),C=GetSlot(n,p),G=GetUTCEpochNanoseconds(T,y,g,D,S,I,w,_,C);if(null===G)throw new RangeError("DateTime outside of supported range");var b=new a(t.subtract(G,Oe)),E=new a(t.add(G,Oe)),B=GetOffsetNanosecondsFor(r,b),O=GetOffsetNanosecondsFor(r,E)-B;switch(o){case"earlier":var k=GetSlot(n,v),M=GetIntrinsic("%Temporal.PlainDateTime%"),A=AddDateTime(T,y,g,D,S,I,w,_,C,k,0,0,0,0,0,0,0,0,0,-O,void 0);return GetPossibleInstantsFor(r,new M(A.year,A.month,A.day,A.hour,A.minute,A.second,A.millisecond,A.microsecond,A.nanosecond,k))[0];case"compatible":case"later":var R=GetSlot(n,v),P=GetIntrinsic("%Temporal.PlainDateTime%"),Y=AddDateTime(T,y,g,D,S,I,w,_,C,R,0,0,0,0,0,0,0,0,0,O,void 0),j=GetPossibleInstantsFor(r,new P(Y.year,Y.month,Y.day,Y.hour,Y.minute,Y.second,Y.millisecond,Y.microsecond,Y.nanosecond,R));return j[j.length-1];case"reject":throw new RangeError("no such instant found")}}function GetPossibleInstantsFor(e,t,r){if("string"==typeof e){var n=new(GetIntrinsic("%Temporal.TimeZone%"))(e);return Call(GetIntrinsic("%Temporal.TimeZone.prototype.getPossibleInstantsFor%"),n,[t])}var o,a=[],i=_createForOfIteratorHelper(Call(null!=r?r:GetMethod(e,"getPossibleInstantsFor"),e,[t]));try{for(i.s();!(o=i.n()).done;){var l=o.value;if(!IsTemporalInstant(l))throw new TypeError("bad return from getPossibleInstantsFor");ne.call(a,l);}}catch(e){i.e(e);}finally{i.f();}return a}function ISOYearString(e){var t;if(e<0||e>9999){var r=e<0?"-":"+",n=le(e);t=r+"000000".concat(n).slice(-6);}else t="0000".concat(e).slice(-4);return t}function ISODateTimePartString(e){return "00".concat(e).slice(-2)}function FormatSecondsStringPart(e,t,r,n,o){if("minute"===o)return "";var a,i=":".concat(ISODateTimePartString(e)),l=1e6*t+1e3*r+n;if("auto"===o){if(0===l)return i;for(a="".concat(l).padStart(9,"0");"0"===a[a.length-1];)a=a.slice(0,-1);}else {if(0===o)return i;a="".concat(l).padStart(9,"0").slice(0,o);}return "".concat(i,".").concat(a)}function TemporalInstantToString(e,t,r){var n=t;void 0===n&&(n="UTC");var o=GetPlainDateTimeFor(n,e,"iso8601"),a=ISOYearString(GetSlot(o,l)),i=ISODateTimePartString(GetSlot(o,s)),v=ISODateTimePartString(GetSlot(o,u)),T=ISODateTimePartString(GetSlot(o,d)),y=ISODateTimePartString(GetSlot(o,c)),g=FormatSecondsStringPart(GetSlot(o,m),GetSlot(o,h),GetSlot(o,f),GetSlot(o,p),r),D="Z";void 0!==t&&(D=FormatISOTimeZoneOffsetString(GetOffsetNanosecondsFor(n,e)));return "".concat(a,"-").concat(i,"-").concat(v,"T").concat(T,":").concat(y).concat(g).concat(D)}function TemporalDurationToString(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;function formatNumber(e){return e<=pe?e.toString(10):t.BigInt(e).toString(10)}var o=GetSlot(e,I),a=GetSlot(e,w),i=GetSlot(e,_),l=GetSlot(e,C),s=GetSlot(e,G),u=GetSlot(e,b),d=GetSlot(e,E),c=GetSlot(e,B),m=GetSlot(e,O),h=GetSlot(e,k),f=DurationSign(o,a,i,l,s,u,d,c,m,h);if(n){var p=n.unit,v=n.increment,T=n.roundingMode,y=RoundDuration(0,0,0,0,0,0,d,c,m,h,v,p,T);d=y.seconds,c=y.milliseconds,m=y.microseconds,h=y.nanoseconds;}var g=[];o&&g.push("".concat(formatNumber(le(o)),"Y")),a&&g.push("".concat(formatNumber(le(a)),"M")),i&&g.push("".concat(formatNumber(le(i)),"W")),l&&g.push("".concat(formatNumber(le(l)),"D"));var D=[];s&&D.push("".concat(formatNumber(le(s)),"H")),u&&D.push("".concat(formatNumber(le(u)),"M"));var S,M,A,R,P=[],Y=TotalDurationNanoseconds(0,0,0,d,c,m,h,0),j=divmod(Y,_e);Y=j.quotient,S=j.remainder;var N=divmod(Y,_e);Y=N.quotient,M=N.remainder;var Z=divmod(Y,_e);R=Z.quotient,A=Z.remainder;var J,L=1e6*le(t.toNumber(A))+1e3*le(t.toNumber(M))+le(t.toNumber(S));if("auto"===r){if(0!==L)for(J="".concat(L).padStart(9,"0");"0"===J[J.length-1];)J=J.slice(0,-1);}else 0!==r&&(J="".concat(L).padStart(9,"0").slice(0,r));return J&&P.unshift(".",J),t.equal(R,De)&&!P.length&&"auto"===r||P.unshift(abs(R).toString()),P.length&&D.push("".concat(P.join(""),"S")),D.length&&D.unshift("T"),g.length||D.length?"".concat(f<0?"-":"","P").concat(g.join("")).concat(D.join("")):"PT0S"}function TemporalDateToString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=ISOYearString(GetSlot(e,l)),n=ISODateTimePartString(GetSlot(e,s)),o=ISODateTimePartString(GetSlot(e,u)),a=MaybeFormatCalendarAnnotation(GetSlot(e,v),t);return "".concat(r,"-").concat(n,"-").concat(o).concat(a)}function TemporalDateTimeToString(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=GetSlot(e,l),a=GetSlot(e,s),i=GetSlot(e,u),T=GetSlot(e,d),y=GetSlot(e,c),g=GetSlot(e,m),D=GetSlot(e,h),S=GetSlot(e,f),I=GetSlot(e,p);if(n){var w=n.unit,_=n.increment,C=n.roundingMode,G=RoundISODateTime(o,a,i,T,y,g,D,S,I,_,w,C);o=G.year,a=G.month,i=G.day,T=G.hour,y=G.minute,g=G.second,D=G.millisecond,S=G.microsecond,I=G.nanosecond;}var b=ISOYearString(o),E=ISODateTimePartString(a),B=ISODateTimePartString(i),O=ISODateTimePartString(T),k=ISODateTimePartString(y),M=FormatSecondsStringPart(g,D,S,I,t),A=MaybeFormatCalendarAnnotation(GetSlot(e,v),r);return "".concat(b,"-").concat(E,"-").concat(B,"T").concat(O,":").concat(k).concat(M).concat(A)}function TemporalMonthDayToString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=ISODateTimePartString(GetSlot(e,s)),n=ISODateTimePartString(GetSlot(e,u)),o="".concat(r,"-").concat(n),a=GetSlot(e,v),i=ToTemporalCalendarIdentifier(a);if("always"===t||"critical"===t||"iso8601"!==i){var d=ISOYearString(GetSlot(e,l));o="".concat(d,"-").concat(o);}var c=FormatCalendarAnnotation(i,t);return c&&(o+=c),o}function TemporalYearMonthToString(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=ISOYearString(GetSlot(e,l)),n=ISODateTimePartString(GetSlot(e,s)),o="".concat(r,"-").concat(n),a=GetSlot(e,v),i=ToTemporalCalendarIdentifier(a);if("always"===t||"critical"===t||"iso8601"!==i){var d=ISODateTimePartString(GetSlot(e,u));o+="-".concat(d);}var c=FormatCalendarAnnotation(i,t);return c&&(o+=c),o}function TemporalZonedDateTimeToString(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,T=GetSlot(e,D);if(i){var y=i.unit,g=i.increment,I=i.roundingMode,w=RoundInstant(GetSlot(e,a),g,y,I),_=GetIntrinsic("%Temporal.Instant%");T=new _(w);}var C=GetSlot(e,S),G=GetPlainDateTimeFor(C,T,"iso8601"),b=ISOYearString(GetSlot(G,l)),E=ISODateTimePartString(GetSlot(G,s)),B=ISODateTimePartString(GetSlot(G,u)),O=ISODateTimePartString(GetSlot(G,d)),k=ISODateTimePartString(GetSlot(G,c)),M=FormatSecondsStringPart(GetSlot(G,m),GetSlot(G,h),GetSlot(G,f),GetSlot(G,p),t),A="".concat(b,"-").concat(E,"-").concat(B,"T").concat(O,":").concat(k).concat(M);if("never"!==o){var R=GetOffsetNanosecondsFor(C,T);A+=FormatISOTimeZoneOffsetString(R);}if("never"!==n){var P=ToTemporalTimeZoneIdentifier(C),Y="critical"===n?"!":"";A+="[".concat(Y).concat(P,"]");}return A+=MaybeFormatCalendarAnnotation(GetSlot(e,v),r)}function IsTimeZoneOffsetString(e){return $e.test(fe(e))}function ParseTimeZoneOffsetString(e){var t=$e.exec(fe(e));if(!t)throw new RangeError("invalid time zone offset: ".concat(e));return ("-"===t[1]||"−"===t[1]?-1:1)*(1e9*(60*(60*+t[2]+ +(t[3]||0))+ +(t[4]||0))+ +((t[5]||0)+"000000000").slice(0,9))}function GetCanonicalTimeZoneIdentifier(e){return IsTimeZoneOffsetString(e)?FormatTimeZoneOffsetString(ParseTimeZoneOffsetString(e)):getIntlDateTimeFormatEnUsForTimeZone(fe(e)).resolvedOptions().timeZone}function GetNamedTimeZoneOffsetNanoseconds(e,r){var n=GetNamedTimeZoneDateTimeParts(e,r),o=n.year,a=n.month,i=n.day,l=n.hour,s=n.minute,u=n.second,d=n.millisecond,c=n.microsecond,m=n.nanosecond,h=o%400,f=(o-h)/400,p=t.multiply(t.BigInt(146097),Oe),v=GetUTCEpochNanoseconds(h,a,i,l,s,u,d,c,m),T=t.add(v,t.multiply(p,t.BigInt(f)));return t.toNumber(t.subtract(T,r))}function FormatTimeZoneOffsetString(e){var t=e<0?"-":"+",r=le(e),n=r%1e9,o=se(r/1e9)%60,a=se(r/6e10)%60,i=ISODateTimePartString(se(r/36e11)),l=ISODateTimePartString(a),s=ISODateTimePartString(o),u="";if(n){for(var d="".concat(n).padStart(9,"0");"0"===d[d.length-1];)d=d.slice(0,-1);u=":".concat(s,".").concat(d);}else o&&(u=":".concat(s));return "".concat(t).concat(i,":").concat(l).concat(u)}function FormatISOTimeZoneOffsetString(e){var r=t.toNumber(RoundNumberToIncrement(t.BigInt(e),Be,"halfExpand")),n=r<0?"-":"+",o=(r=le(r))/6e10%60,a=ISODateTimePartString(se(r/36e11)),i=ISODateTimePartString(o);return "".concat(n).concat(a,":").concat(i)}function GetUTCEpochNanoseconds(e,r,n,o,a,i,l,s,u){var d=new Date;d.setUTCHours(o,a,i,l),d.setUTCFullYear(e,r-1,n);var c=d.getTime();if(ce(c))return null;var m=t.multiply(t.BigInt(c),Ce);return m=t.add(m,t.multiply(t.BigInt(s),_e)),m=t.add(m,t.BigInt(u)),t.lessThan(m,Fe)||t.greaterThan(m,ke)?null:m}function GetISOPartsFromEpoch(e){var r=divmod(e,Ce),n=r.quotient,o=r.remainder,a=t.toNumber(n),i=t.toNumber(o);i<0&&(i+=1e6,a-=1);var l=se(i/1e3)%1e3,s=i%1e3,u=new Date(a);return {epochMilliseconds:a,year:u.getUTCFullYear(),month:u.getUTCMonth()+1,day:u.getUTCDate(),hour:u.getUTCHours(),minute:u.getUTCMinutes(),second:u.getUTCSeconds(),millisecond:u.getUTCMilliseconds(),microsecond:l,nanosecond:s}}function GetNamedTimeZoneDateTimeParts(e,t){var r=GetISOPartsFromEpoch(t),n=r.epochMilliseconds,o=r.millisecond,a=r.microsecond,i=r.nanosecond,l=function GetFormatterParts(e,t){var r=getIntlDateTimeFormatEnUsForTimeZone(e).format(new Date(t));return function parseFromEnUsFormat(e){var t=e.split(/[^\w]+/);if(7!==t.length)throw new RangeError('expected 7 parts in "'.concat(e));var r=+t[0],n=+t[1],o=+t[2],a=t[3].toUpperCase();if("B"===a||"BC"===a)o=1-o;else if("A"!==a&&"AD"!==a)throw new RangeError("Unknown era ".concat(a,' in "').concat(e));var i=+t[4];24===i&&(i=0);var l=+t[5],s=+t[6];if(!(me(o)&&me(r)&&me(n)&&me(i)&&me(l)&&me(s)))throw new RangeError('Invalid number in "'.concat(e));return {year:o,month:r,day:n,hour:i,minute:l,second:s}}(r)}(e,n);return BalanceISODateTime(l.year,l.month,l.day,l.hour,l.minute,l.second,o,a,i)}function maxJSBI(e,r){return t.lessThan(e,r)?r:e}function afterLatestPossibleTzdbRuleChange(){return t.add(Ke(),Pe)}function GetNamedTimeZoneNextTransition(e,r){if(t.lessThan(r,Re))return GetNamedTimeZoneNextTransition(e,Re);for(var n=t.add(r,Ye),o=maxJSBI(afterLatestPossibleTzdbRuleChange(),n),a=maxJSBI(Re,r),i=GetNamedTimeZoneOffsetNanoseconds(e,a),l=a,s=i;i===s&&t.lessThan(t.BigInt(a),o);){if(l=t.add(a,je),t.greaterThan(l,ke))return null;i===(s=GetNamedTimeZoneOffsetNanoseconds(e,l))&&(a=l);}return i===s?null:bisect((function(t){return GetNamedTimeZoneOffsetNanoseconds(e,t)}),a,l,i,s)}function GetNamedTimeZonePreviousTransition(e,r){var n=afterLatestPossibleTzdbRuleChange(),o=t.greaterThan(r,n),i=o?t.subtract(r,Ye):Re;if("Africa/Casablanca"===e||"Africa/El_Aaiun"===e){var l=GetSlot(ToTemporalInstant("2088-01-01T00Z"),a);if(t.lessThan(l,r))return GetNamedTimeZonePreviousTransition(e,l)}var s=t.subtract(r,Se);if(t.lessThan(s,Re))return null;for(var u=GetNamedTimeZoneOffsetNanoseconds(e,s),d=s,c=u;u===c&&t.greaterThan(s,i);){if(d=t.subtract(s,je),t.lessThan(d,Re))return null;u===(c=GetNamedTimeZoneOffsetNanoseconds(e,d))&&(s=d);}if(u===c){if(o){var m=t.subtract(n,Oe);return GetNamedTimeZonePreviousTransition(e,m)}return null}return bisect((function(t){return GetNamedTimeZoneOffsetNanoseconds(e,t)}),d,s,c,u)}function LeapYear(e){return void 0!==e&&(e%4==0&&(!(e%100==0)||e%400==0))}function ISODaysInMonth(e,t){return {standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]}[LeapYear(e)?"leapyear":"standard"][t-1]}function DayOfWeek(e,t,r){var n=t+(t<3?10:-2),o=e-(t<3?1:0),a=se(o/100),i=o-100*a,l=(r+se(2.6*n-.2)+(i+se(i/4))+(se(a/4)-2*a))%7;return l+(l<=0?7:0)}function DayOfYear(e,t,r){for(var n=r,o=t-1;o>0;o--)n+=ISODaysInMonth(e,o);return n}function WeekOfYear(e,t,r){var n=DayOfYear(e,t,r),o=DayOfWeek(e,t,r)||7,a=DayOfWeek(e,1,1),i=se((n-o+10)/7);return i<1?5===a||6===a&&LeapYear(e-1)?{week:53,year:e-1}:{week:52,year:e-1}:53===i&&(LeapYear(e)?366:365)-n<4-o?{week:1,year:e+1}:{week:i,year:e}}function DurationSign(e,t,r,n,o,a,i,l,s,u){for(var d=0,c=[e,t,r,n,o,a,i,l,s,u];d<c.length;d++){var m=c[d];if(0!==m)return m<0?-1:1}return 0}function BalanceISOYearMonth(e,t){var r=e,n=t;if(!me(r)||!me(n))throw new RangeError("infinity is out of range");return r+=se((n-=1)/12),(n%=12)<0&&(n+=12),{year:r,month:n+=1}}function BalanceISODate(e,t,r){var n=e,o=t,a=r;if(!me(a))throw new RangeError("infinity is out of range");var i=BalanceISOYearMonth(n,o);n=i.year,o=i.month;var l=146097;if(le(a)>l){var s=de(a/l);n+=400*s,a-=s*l;}for(var u=0,d=o>2?n:n-1;a<-(u=LeapYear(d)?366:365);)n-=1,d-=1,a+=u;for(d+=1;a>(u=LeapYear(d)?366:365);)n+=1,d+=1,a-=u;for(;a<1;){var c=BalanceISOYearMonth(n,o-1);a+=ISODaysInMonth(n=c.year,o=c.month);}for(;a>ISODaysInMonth(n,o);){a-=ISODaysInMonth(n,o);var m=BalanceISOYearMonth(n,o+1);n=m.year,o=m.month;}return {year:n,month:o,day:a}}function BalanceISODateTime(e,t,r,n,o,a,i,l,s){var u=BalanceTime(n,o,a,i,l,s),d=u.deltaDays,c=u.hour,m=u.minute,h=u.second,f=u.millisecond,p=u.microsecond,v=u.nanosecond,T=BalanceISODate(e,t,r+d);return {year:T.year,month:T.month,day:T.day,hour:c,minute:m,second:h,millisecond:f,microsecond:p,nanosecond:v}}function BalanceTime(e,r,n,o,a,i){var l,s=t.BigInt(e),u=t.BigInt(r),d=t.BigInt(n),c=t.BigInt(o),m=t.BigInt(a),h=t.BigInt(i),f=NonNegativeBigIntDivmod(h,_e);l=f.quotient,h=f.remainder;var p=NonNegativeBigIntDivmod(m=t.add(m,l),_e);l=p.quotient,m=p.remainder;var v=NonNegativeBigIntDivmod(c=t.add(c,l),_e);l=v.quotient,c=v.remainder;var T=NonNegativeBigIntDivmod(d=t.add(d,l),Ie);l=T.quotient,d=T.remainder;var y=NonNegativeBigIntDivmod(u=t.add(u,l),Ie);l=y.quotient,u=y.remainder;var g=NonNegativeBigIntDivmod(s=t.add(s,l),we);return l=g.quotient,s=g.remainder,{deltaDays:t.toNumber(l),hour:t.toNumber(s),minute:t.toNumber(u),second:t.toNumber(d),millisecond:t.toNumber(c),microsecond:t.toNumber(m),nanosecond:t.toNumber(h)}}function TotalDurationNanoseconds(e,r,n,o,a,i,l,s){var u=t.BigInt(e),d=t.BigInt(l);0!==e&&(d=t.subtract(t.BigInt(l),t.BigInt(s)));var c=t.add(t.BigInt(r),t.multiply(u,t.BigInt(24))),m=t.add(t.BigInt(n),t.multiply(c,Ie)),h=t.add(t.BigInt(o),t.multiply(m,Ie)),f=t.add(t.BigInt(a),t.multiply(h,_e)),p=t.add(t.BigInt(i),t.multiply(f,_e));return t.add(t.BigInt(d),t.multiply(p,_e))}function NanosecondsToDays(e,r){var n=GetIntrinsic("%Temporal.Instant%"),o=ue(t.toNumber(e)),i=t.BigInt(e),T=864e11;if(0===o)return {days:0,nanoseconds:De,dayLengthNs:T};if(!IsTemporalZonedDateTime(r)){var y,g=divmod(i,t.BigInt(T));return y=g.quotient,i=g.remainder,{days:t.toNumber(y),nanoseconds:i,dayLengthNs:T}}var I=GetSlot(r,a),w=GetSlot(r,D),_=t.add(I,i),C=new n(_),G=GetSlot(r,S),b=GetSlot(r,v),E=GetPlainDateTimeFor(G,w,b),B=GetPlainDateTimeFor(G,C,b),O=DifferenceISODateTime(GetSlot(E,l),GetSlot(E,s),GetSlot(E,u),GetSlot(E,d),GetSlot(E,c),GetSlot(E,m),GetSlot(E,h),GetSlot(E,f),GetSlot(E,p),GetSlot(B,l),GetSlot(B,s),GetSlot(B,u),GetSlot(B,d),GetSlot(B,c),GetSlot(B,m),GetSlot(B,h),GetSlot(B,f),GetSlot(B,p),b,"day",ve(null)).days,k=AddZonedDateTime(w,G,b,0,0,0,O,0,0,0,0,0,0),M=t.BigInt(O);if(1===o)for(;t.greaterThan(M,De)&&t.greaterThan(k,_);)M=t.subtract(M,Se),k=AddZonedDateTime(w,G,b,0,0,0,t.toNumber(M),0,0,0,0,0,0);i=t.subtract(_,k);var A=!1,R=new n(k);do{var P=AddZonedDateTime(R,G,b,0,0,0,o,0,0,0,0,0,0),Y=GetSlot(R,a);T=t.toNumber(t.subtract(P,Y)),(A=t.greaterThanOrEqual(t.multiply(t.subtract(i,t.BigInt(T)),t.BigInt(o)),De))&&(i=t.subtract(i,t.BigInt(T)),R=new n(P),M=t.add(M,t.BigInt(o)));}while(A);if(!isZero(M)&&signJSBI(M)!==o)throw new RangeError("Time zone or calendar converted nanoseconds into a number of days with the opposite sign");if(!isZero(i)&&signJSBI(i)!==o){if(isNegativeJSBI(i)&&1===o)throw new Error("assert not reached");throw new RangeError("Time zone or calendar ended up with a remainder of nanoseconds with the opposite sign")}if(t.greaterThanOrEqual(abs(i),abs(t.BigInt(T))))throw new Error("assert not reached");return {days:t.toNumber(M),nanoseconds:i,dayLengthNs:le(T)}}function BalanceDuration(e,t,r,n,o,a,i,l){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:void 0,u=BalancePossiblyInfiniteDuration(e,t,r,n,o,a,i,l,s);if("positive overflow"===u||"negative overflow"===u)throw new RangeError("Duration out of range");return u}function BalancePossiblyInfiniteDuration(e,r,n,o,i,l,s,u){var d,c,m,h,f,p,T=arguments.length>8&&void 0!==arguments[8]?arguments[8]:void 0,y=e;if(IsTemporalZonedDateTime(T)){var g=AddZonedDateTime(GetSlot(T,D),GetSlot(T,S),GetSlot(T,v),0,0,0,y,r,n,o,i,l,s),I=GetSlot(T,a);d=t.subtract(g,I);}else d=TotalDurationNanoseconds(y,r,n,o,i,l,s,0);if("year"===u||"month"===u||"week"===u||"day"===u){var w=NanosecondsToDays(d,T);y=w.days,d=w.nanoseconds;}else y=0;var _=t.lessThan(d,De)?-1:1;switch(d=abs(d),c=m=h=f=p=De,u){case"year":case"month":case"week":case"day":case"hour":var C=divmod(d,_e);c=C.quotient,d=C.remainder;var G=divmod(c,_e);m=G.quotient,c=G.remainder;var b=divmod(m,_e);h=b.quotient,m=b.remainder;var E=divmod(h,Ie);f=E.quotient,h=E.remainder;var B=divmod(f,Ie);p=B.quotient,f=B.remainder;break;case"minute":var O=divmod(d,_e);c=O.quotient,d=O.remainder;var k=divmod(c,_e);m=k.quotient,c=k.remainder;var M=divmod(m,_e);h=M.quotient,m=M.remainder;var A=divmod(h,Ie);f=A.quotient,h=A.remainder;break;case"second":var R=divmod(d,_e);c=R.quotient,d=R.remainder;var P=divmod(c,_e);m=P.quotient,c=P.remainder;var Y=divmod(m,_e);h=Y.quotient,m=Y.remainder;break;case"millisecond":var j=divmod(d,_e);c=j.quotient,d=j.remainder;var N=divmod(c,_e);m=N.quotient,c=N.remainder;break;case"microsecond":var Z=divmod(d,_e);c=Z.quotient,d=Z.remainder;break;case"nanosecond":break;default:throw new Error("assert not reached")}for(var J=t.toNumber(p)*_,L=t.toNumber(f)*_,U=t.toNumber(h)*_,H=t.toNumber(m)*_,x=t.toNumber(c)*_,q=t.toNumber(d)*_,W=0,z=[y,J,L,U,H,x,q];W<z.length;W++){var V=z[W];if(!me(V))return 1===_?"positive overflow":"negative overflow"}return {days:y,hours:J,minutes:L,seconds:U,milliseconds:H,microseconds:x,nanoseconds:q}}function UnbalanceDurationRelative(e,r,n,o,a,i){var l=GetIntrinsic("%Temporal.Duration%"),s=DurationSign(e,r,n,o,0,0,0,0,0,0);if(0===s)return {years:e,months:r,weeks:n,days:o};var u,d,c=t.BigInt(s),m=t.BigInt(e),h=t.BigInt(r),f=t.BigInt(n),p=t.BigInt(o);i&&(u=GetSlot(d=ToTemporalDate(i),v));var T=new l(s),y=new l(0,s),g=new l(0,0,s);switch(a){case"year":break;case"month":if(!u)throw new RangeError("a starting point is required for months balancing");var D,S;for("string"!=typeof u&&(D=GetMethod(u,"dateAdd"),S=GetMethod(u,"dateUntil"));!isZero(m);){var I=CalendarDateAdd(u,d,T,void 0,D),_=ve(null);_.largestUnit="month";var C=CalendarDateUntil(u,d,I,_,S),G=t.BigInt(GetSlot(C,w));d=I,h=t.add(h,G),m=t.subtract(m,c);}break;case"week":if(!u)throw new RangeError("a starting point is required for weeks balancing");for(var b="string"!=typeof u?GetMethod(u,"dateAdd"):void 0;!isZero(m);){var E,B=MoveRelativeDate(u,d,T,b);d=B.relativeTo,E=B.days,p=t.add(p,t.BigInt(E)),m=t.subtract(m,c);}for(;!isZero(h);){var O,k=MoveRelativeDate(u,d,y,b);d=k.relativeTo,O=k.days,p=t.add(p,t.BigInt(O)),h=t.subtract(h,c);}break;default:if(isZero(m)&&isZero(h)&&isZero(f))break;if(!u)throw new RangeError("a starting point is required for balancing calendar units");for(var M="string"!=typeof u?GetMethod(u,"dateAdd"):void 0;!isZero(m);){var A,R=MoveRelativeDate(u,d,T,M);d=R.relativeTo,A=R.days,p=t.add(p,t.BigInt(A)),m=t.subtract(m,c);}for(;!isZero(h);){var P,Y=MoveRelativeDate(u,d,y,M);d=Y.relativeTo,P=Y.days,p=t.add(p,t.BigInt(P)),h=t.subtract(h,c);}for(;!isZero(f);){var j,N=MoveRelativeDate(u,d,g,M);d=N.relativeTo,j=N.days,p=t.add(p,t.BigInt(j)),f=t.subtract(f,c);}}return {years:t.toNumber(m),months:t.toNumber(h),weeks:t.toNumber(f),days:t.toNumber(p)}}function CalculateOffsetShift(e,t,r,n,o){if(IsTemporalZonedDateTime(e)){var a=GetSlot(e,D),i=GetSlot(e,S),l=GetSlot(e,v),s=GetOffsetNanosecondsFor(i,a),u=AddZonedDateTime(a,i,l,t,r,n,o,0,0,0,0,0,0);return GetOffsetNanosecondsFor(i,new(GetIntrinsic("%Temporal.Instant%"))(u))-s}return 0}function CreateNegatedTemporalDuration(e){return new(GetIntrinsic("%Temporal.Duration%"))(-GetSlot(e,I),-GetSlot(e,w),-GetSlot(e,_),-GetSlot(e,C),-GetSlot(e,G),-GetSlot(e,b),-GetSlot(e,E),-GetSlot(e,B),-GetSlot(e,O),-GetSlot(e,k))}function ConstrainToRange(e,t,r){return ae(r,ie(t,e))}function ConstrainISODate(e,t,r){var n=ConstrainToRange(t,1,12);return {year:e,month:n,day:ConstrainToRange(r,1,ISODaysInMonth(e,n))}}function RejectToRange(e,t,r){if(e<t||e>r)throw new RangeError("value out of range: ".concat(t," <= ").concat(e," <= ").concat(r))}function RejectISODate(e,t,r){RejectToRange(t,1,12),RejectToRange(r,1,ISODaysInMonth(e,t));}function RejectDateRange(e,t,r){RejectDateTimeRange(e,t,r,12,0,0,0,0,0);}function RejectTime(e,t,r,n,o,a){RejectToRange(e,0,23),RejectToRange(t,0,59),RejectToRange(r,0,59),RejectToRange(n,0,999),RejectToRange(o,0,999),RejectToRange(a,0,999);}function RejectDateTime(e,t,r,n,o,a,i,l,s){RejectISODate(e,t,r),RejectTime(n,o,a,i,l,s);}function RejectDateTimeRange(e,t,r,n,o,a,i,l,s){if(RejectToRange(e,Me,Ae),e===Me&&null==GetUTCEpochNanoseconds(e,t,r+1,n,o,a,i,l,s-1)||e===Ae&&null==GetUTCEpochNanoseconds(e,t,r-1,n,o,a,i,l,s+1))throw new RangeError("DateTime outside of supported range")}function ValidateEpochNanoseconds(e){if(t.lessThan(e,Fe)||t.greaterThan(e,ke))throw new RangeError("Instant outside of supported range")}function RejectDuration(e,t,r,n,o,a,i,l,s,u){for(var d=DurationSign(e,t,r,n,o,a,i,l,s,u),c=0,m=[e,t,r,n,o,a,i,l,s,u];c<m.length;c++){var h=m[c];if(!me(h))throw new RangeError("infinite values not allowed as duration fields");var f=ue(h);if(0!==f&&f!==d)throw new RangeError("mixed-sign values not allowed as duration fields")}}function DifferenceISODate(e,t,r,n,o,a,i){switch(i){case"year":case"month":var l=-CompareISODate(e,t,r,n,o,a);if(0===l)return {years:0,months:0,weeks:0,days:0};var s={year:e,month:t,day:r},u={year:n,month:o,day:a},d=u.year-s.year,c=AddISODate(e,t,r,d,0,0,0,"constrain"),m=-CompareISODate(c.year,c.month,c.day,n,o,a);if(0===m)return "year"===i?{years:d,months:0,weeks:0,days:0}:{years:0,months:12*d,weeks:0,days:0};var h=u.month-s.month;if(m!==l&&(d-=l,h+=12*l),0===(m=-CompareISODate((c=AddISODate(e,t,r,d,h,0,0,"constrain")).year,c.month,c.day,n,o,a)))return "year"===i?{years:d,months:h,weeks:0,days:0}:{years:0,months:h+12*d,weeks:0,days:0};m!==l&&((h-=l)===-l&&(d-=l,h=11*l),c=AddISODate(e,t,r,d,h,0,0,"constrain"));return "month"===i&&(h+=12*d,d=0),{years:d,months:h,weeks:0,days:c.month===u.month?u.day-c.day:l<0?-c.day-(ISODaysInMonth(u.year,u.month)-u.day):u.day+(ISODaysInMonth(c.year,c.month)-c.day)};case"week":case"day":var f,p,v;CompareISODate(e,t,r,n,o,a)<0?(p={year:e,month:t,day:r},f={year:n,month:o,day:a},v=1):(p={year:n,month:o,day:a},f={year:e,month:t,day:r},v=-1);for(var T=DayOfYear(f.year,f.month,f.day)-DayOfYear(p.year,p.month,p.day),y=p.year;y<f.year;++y)T+=LeapYear(y)?366:365;var g=0;return "week"===i&&(g=se(T/7),T%=7),{years:0,months:0,weeks:g*=v,days:T*=v};default:throw new Error("assert not reached")}}function DifferenceTime(e,t,r,n,o,a,i,l,s,u,d,c){var m,h=i-e,f=l-t,p=s-r,v=u-n,T=d-o,y=c-a,g=DurationSign(0,0,0,0,h,f,p,v,T,y),D=BalanceTime(h*=g,f*=g,p*=g,v*=g,T*=g,y*=g);if(m=D.deltaDays,h=D.hour,f=D.minute,p=D.second,v=D.millisecond,T=D.microsecond,y=D.nanosecond,0!=m)throw new Error("assertion failure in DifferenceTime: _bt_.[[Days]] should be 0");return {hours:h*=g,minutes:f*=g,seconds:p*=g,milliseconds:v*=g,microseconds:T*=g,nanoseconds:y*=g}}function DifferenceInstant(e,r,n,o,a,i){var l=t.subtract(r,e),s=t.toNumber(t.remainder(l,_e)),u=t.toNumber(t.remainder(t.divide(l,_e),_e)),d=t.toNumber(t.remainder(t.divide(l,Ce),_e)),c=t.toNumber(t.divide(l,Ge)),m=RoundDuration(0,0,0,0,0,0,c,d,u,s,n,o,i);return BalanceDuration(0,m.hours,m.minutes,c=m.seconds,d=m.milliseconds,u=m.microseconds,s=m.nanoseconds,a)}function DifferenceISODateTime(e,t,r,n,o,a,i,l,s,u,d,c,m,h,f,p,v,T,y,g,D){var S=e,I=t,w=r,_=DifferenceTime(n,o,a,i,l,s,m,h,f,p,v,T),C=_.hours,G=_.minutes,b=_.seconds,E=_.milliseconds,B=_.microseconds,O=_.nanoseconds,k=DurationSign(0,0,0,0,C,G,b,E,B,O);if(CompareISODate(u,d,c,S,I,w)===-k){var M=BalanceISODate(S,I,w-k);S=M.year,I=M.month,w=M.day;var A=BalanceDuration(-k,C,G,b,E,B,O,g);C=A.hours,G=A.minutes,b=A.seconds,E=A.milliseconds,B=A.microseconds,O=A.nanoseconds;}var R=CreateTemporalDate(S,I,w,y),P=CreateTemporalDate(u,d,c,y),Y=LargerOfTwoTemporalUnits("day",g),j=CopyOptions(D);j.largestUnit=Y;var N=CalendarDateUntil(y,R,P,j),Z=N.years,J=N.months,L=N.weeks,U=N.days,H=BalanceDuration(U,C,G,b,E,B,O,g);return {years:Z,months:J,weeks:L,days:U=H.days,hours:C=H.hours,minutes:G=H.minutes,seconds:b=H.seconds,milliseconds:E=H.milliseconds,microseconds:B=H.microseconds,nanoseconds:O=H.nanoseconds}}function DifferenceZonedDateTime(e,r,n,o,a,i){var v=t.subtract(r,e);if(t.equal(v,De))return {years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};var T=GetIntrinsic("%Temporal.Instant%"),y=new T(e),g=new T(r),D=GetPlainDateTimeFor(n,y,o),S=GetPlainDateTimeFor(n,g,o),I=DifferenceISODateTime(GetSlot(D,l),GetSlot(D,s),GetSlot(D,u),GetSlot(D,d),GetSlot(D,c),GetSlot(D,m),GetSlot(D,h),GetSlot(D,f),GetSlot(D,p),GetSlot(S,l),GetSlot(S,s),GetSlot(S,u),GetSlot(S,d),GetSlot(S,c),GetSlot(S,m),GetSlot(S,h),GetSlot(S,f),GetSlot(S,p),o,a,i),w=I.years,_=I.months,C=I.weeks,G=I.days,b=AddZonedDateTime(y,n,o,w,_,C,0,0,0,0,0,0,0),E=t.subtract(r,b),B=NanosecondsToDays(E,CreateTemporalZonedDateTime(b,n,o));E=B.nanoseconds,G=B.days;var O=BalanceDuration(0,0,0,0,0,0,t.toNumber(E),"hour");return {years:w,months:_,weeks:C,days:G,hours:O.hours,minutes:O.minutes,seconds:O.seconds,milliseconds:O.milliseconds,microseconds:O.microseconds,nanoseconds:O.nanoseconds}}function GetDifferenceSettings(e,t,r,n,o,a){var i=Le.reduce((function(e,t){var o=t[0],a=t[1],i=t[2];return "datetime"!==r&&i!==r||n.includes(a)||e.push(a,o),e}),[]),l=GetTemporalUnit(t,"largestUnit",r,"auto");if(n.includes(l))throw new RangeError("largestUnit must be one of ".concat(i.join(", "),", not ").concat(l));var s=ToTemporalRoundingIncrement(t),u=ToTemporalRoundingMode(t,"trunc");"since"===e&&(u=function NegateTemporalRoundingMode(e){switch(e){case"ceil":return "floor";case"floor":return "ceil";case"halfCeil":return "halfFloor";case"halfFloor":return "halfCeil";default:return e}}(u));var d=GetTemporalUnit(t,"smallestUnit",r,o);if(n.includes(d))throw new RangeError("smallestUnit must be one of ".concat(i.join(", "),", not ").concat(d));var c=LargerOfTwoTemporalUnits(a,d);if("auto"===l&&(l=c),LargerOfTwoTemporalUnits(l,d)!==l)throw new RangeError("largestUnit ".concat(l," cannot be smaller than smallestUnit ").concat(d));var m={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[d];return void 0!==m&&ValidateTemporalRoundingIncrement(s,m,!1),{largestUnit:l,roundingIncrement:s,roundingMode:u,smallestUnit:d}}function DifferenceTemporalInstant(e,t,r,n){var o="since"===e?-1:1,i=ToTemporalInstant(r),l=GetDifferenceSettings(e,CopyOptions(n),"time",[],"nanosecond","second"),s=DifferenceInstant(GetSlot(t,a),GetSlot(i,a),l.roundingIncrement,l.smallestUnit,l.largestUnit,l.roundingMode),u=s.hours,d=s.minutes,c=s.seconds,m=s.milliseconds,h=s.microseconds,f=s.nanoseconds;return new(GetIntrinsic("%Temporal.Duration%"))(0,0,0,0,o*u,o*d,o*c,o*m,o*h,o*f)}function DifferenceTemporalPlainDate(e,t,r,n){var o="since"===e?-1:1,a=ToTemporalDate(r),i=GetSlot(t,v);ThrowIfCalendarsNotEqual(i,GetSlot(a,v),"compute difference between dates");var l=CopyOptions(n),s=GetDifferenceSettings(e,l,"date",[],"day","day");l.largestUnit=s.largestUnit;var u=CalendarDateUntil(i,t,a,l),d=u.years,c=u.months,m=u.weeks,h=u.days;if("day"!==s.smallestUnit||1!==s.roundingIncrement){var f=RoundDuration(d,c,m,h,0,0,0,0,0,0,s.roundingIncrement,s.smallestUnit,s.roundingMode,t);d=f.years,c=f.months,m=f.weeks,h=f.days;}return new(GetIntrinsic("%Temporal.Duration%"))(o*d,o*c,o*m,o*h,0,0,0,0,0,0)}function DifferenceTemporalPlainDateTime(e,t,r,n){var o="since"===e?-1:1,a=ToTemporalDateTime(r),i=GetSlot(t,v);ThrowIfCalendarsNotEqual(i,GetSlot(a,v),"compute difference between dates");var T=CopyOptions(n),y=GetDifferenceSettings(e,T,"datetime",[],"nanosecond","day"),g=DifferenceISODateTime(GetSlot(t,l),GetSlot(t,s),GetSlot(t,u),GetSlot(t,d),GetSlot(t,c),GetSlot(t,m),GetSlot(t,h),GetSlot(t,f),GetSlot(t,p),GetSlot(a,l),GetSlot(a,s),GetSlot(a,u),GetSlot(a,d),GetSlot(a,c),GetSlot(a,m),GetSlot(a,h),GetSlot(a,f),GetSlot(a,p),i,y.largestUnit,T),D=g.years,S=g.months,I=g.weeks,w=g.days,_=g.hours,C=g.minutes,G=g.seconds,b=g.milliseconds,E=g.microseconds,B=g.nanoseconds,O=TemporalDateTimeToDate(t),k=RoundDuration(D,S,I,w,_,C,G,b,E,B,y.roundingIncrement,y.smallestUnit,y.roundingMode,O);D=k.years,S=k.months,I=k.weeks;var M=BalanceDuration(w=k.days,_=k.hours,C=k.minutes,G=k.seconds,b=k.milliseconds,E=k.microseconds,B=k.nanoseconds,y.largestUnit);return w=M.days,_=M.hours,C=M.minutes,G=M.seconds,b=M.milliseconds,E=M.microseconds,B=M.nanoseconds,new(GetIntrinsic("%Temporal.Duration%"))(o*D,o*S,o*I,o*w,o*_,o*C,o*G,o*b,o*E,o*B)}function DifferenceTemporalPlainTime(e,t,r,n){var o="since"===e?-1:1,a=ToTemporalTime(r),i=GetDifferenceSettings(e,CopyOptions(n),"time",[],"nanosecond","hour"),l=DifferenceTime(GetSlot(t,d),GetSlot(t,c),GetSlot(t,m),GetSlot(t,h),GetSlot(t,f),GetSlot(t,p),GetSlot(a,d),GetSlot(a,c),GetSlot(a,m),GetSlot(a,h),GetSlot(a,f),GetSlot(a,p)),s=l.hours,u=l.minutes,v=l.seconds,T=l.milliseconds,y=l.microseconds,g=l.nanoseconds,D=RoundDuration(0,0,0,0,s,u,v,T,y,g,i.roundingIncrement,i.smallestUnit,i.roundingMode),S=BalanceDuration(0,s=D.hours,u=D.minutes,v=D.seconds,T=D.milliseconds,y=D.microseconds,g=D.nanoseconds,i.largestUnit);return s=S.hours,u=S.minutes,v=S.seconds,T=S.milliseconds,y=S.microseconds,g=S.nanoseconds,new(GetIntrinsic("%Temporal.Duration%"))(0,0,0,0,o*s,o*u,o*v,o*T,o*y,o*g)}function DifferenceTemporalPlainYearMonth(e,t,r,n){var o="since"===e?-1:1,a=ToTemporalYearMonth(r),i=GetSlot(t,v);ThrowIfCalendarsNotEqual(i,GetSlot(a,v),"compute difference between months");var l=CopyOptions(n),s=GetDifferenceSettings(e,l,"date",["week","day"],"month","year");l.largestUnit=s.largestUnit;var u=CalendarFields(i,["monthCode","year"]),d=PrepareTemporalFields(t,u,[]);d.day=1;var c=CalendarDateFromFields(i,d),m=PrepareTemporalFields(a,u,[]);m.day=1;var h=CalendarDateUntil(i,c,CalendarDateFromFields(i,m),l),f=h.years,p=h.months;if("month"!==s.smallestUnit||1!==s.roundingIncrement){var T=RoundDuration(f,p,0,0,0,0,0,0,0,0,s.roundingIncrement,s.smallestUnit,s.roundingMode,c);f=T.years,p=T.months;}return new(GetIntrinsic("%Temporal.Duration%"))(o*f,o*p,0,0,0,0,0,0,0,0)}function DifferenceTemporalZonedDateTime(e,t,r,n){var o="since"===e?-1:1,i=ToTemporalZonedDateTime(r),l=GetSlot(t,v);ThrowIfCalendarsNotEqual(l,GetSlot(i,v),"compute difference between dates");var s=CopyOptions(n),u=GetDifferenceSettings(e,s,"datetime",[],"nanosecond","hour");s.largestUnit=u.largestUnit;var d,c,m,h,f,p,T,y,g,D,I=GetSlot(t,a),w=GetSlot(i,a);if("year"!==u.largestUnit&&"month"!==u.largestUnit&&"week"!==u.largestUnit&&"day"!==u.largestUnit){d=0,c=0,m=0,h=0;var _=DifferenceInstant(I,w,u.roundingIncrement,u.smallestUnit,u.largestUnit,u.roundingMode);f=_.hours,p=_.minutes,T=_.seconds,y=_.milliseconds,g=_.microseconds,D=_.nanoseconds;}else {var C=GetSlot(t,S);if(!TimeZoneEquals(C,GetSlot(i,S)))throw new RangeError("When calculating difference between time zones, largestUnit must be 'hours' or smaller because day lengths can vary between time zones due to DST or time zone offset changes.");var G=DifferenceZonedDateTime(I,w,C,l,u.largestUnit,s),b=RoundDuration(d=G.years,c=G.months,m=G.weeks,h=G.days,f=G.hours,p=G.minutes,T=G.seconds,y=G.milliseconds,g=G.microseconds,D=G.nanoseconds,u.roundingIncrement,u.smallestUnit,u.roundingMode,t),E=AdjustRoundedDurationDays(d=b.years,c=b.months,m=b.weeks,h=b.days,f=b.hours,p=b.minutes,T=b.seconds,y=b.milliseconds,g=b.microseconds,D=b.nanoseconds,u.roundingIncrement,u.smallestUnit,u.roundingMode,t);d=E.years,c=E.months,m=E.weeks,h=E.days,f=E.hours,p=E.minutes,T=E.seconds,y=E.milliseconds,g=E.microseconds,D=E.nanoseconds;}return new(GetIntrinsic("%Temporal.Duration%"))(o*d,o*c,o*m,o*h,o*f,o*p,o*T,o*y,o*g,o*D)}function AddISODate(e,t,r,n,o,a,i,l){var s=e,u=t,d=r,c=a,m=i,h=BalanceISOYearMonth(s+=n,u+=o),f=RegulateISODate(s=h.year,u=h.month,d,l);s=f.year,u=f.month,d=f.day;var p=BalanceISODate(s,u,d+=m+=7*c);return {year:s=p.year,month:u=p.month,day:d=p.day}}function AddTime(e,t,r,n,o,a,i,l,s,u,d,c){var m=e,h=t,f=r,p=n,v=o,T=a,y=BalanceTime(m+=i,h+=l,f+=s,p+=u,v+=d,T+=c);return {deltaDays:y.deltaDays,hour:m=y.hour,minute:h=y.minute,second:f=y.second,millisecond:p=y.millisecond,microsecond:v=y.microsecond,nanosecond:T=y.nanosecond}}function AddDuration(e,r,n,o,i,l,s,u,d,c,m,h,f,p,T,y,g,I,w,_,C){var G,b,E,B,O,k,M,A,R,P,Y=LargerOfTwoTemporalUnits(DefaultTemporalLargestUnit(e,r,n,o,i,l,s,u,d,c),DefaultTemporalLargestUnit(m,h,f,p,T,y,g,I,w,_));if(C)if(IsTemporalDate(C)){var j=GetIntrinsic("%Temporal.Duration%"),N=GetSlot(C,v),Z=new j(e,r,n,o,0,0,0,0,0,0),J=new j(m,h,f,p,0,0,0,0,0,0),L="string"!=typeof N?GetMethod(N,"dateAdd"):void 0,U=CalendarDateAdd(N,C,Z,void 0,L),H=CalendarDateAdd(N,U,J,void 0,L),x=LargerOfTwoTemporalUnits("day",Y),q=ve(null);q.largestUnit=x;var W=CalendarDateUntil(N,C,H,q);G=W.years,b=W.months,E=W.weeks;var z=BalanceDuration(B=W.days,t.add(t.BigInt(i),t.BigInt(T)),t.add(t.BigInt(l),t.BigInt(y)),t.add(t.BigInt(s),t.BigInt(g)),t.add(t.BigInt(u),t.BigInt(I)),t.add(t.BigInt(d),t.BigInt(w)),t.add(t.BigInt(c),t.BigInt(_)),Y);B=z.days,O=z.hours,k=z.minutes,M=z.seconds,A=z.milliseconds,R=z.microseconds,P=z.nanoseconds;}else {var V=GetIntrinsic("%Temporal.Instant%"),K=GetSlot(C,S),$=GetSlot(C,v),X=AddZonedDateTime(GetSlot(C,D),K,$,e,r,n,o,i,l,s,u,d,c),Q=AddZonedDateTime(new V(X),K,$,m,h,f,p,T,y,g,I,w,_);if("year"!==Y&&"month"!==Y&&"week"!==Y&&"day"!==Y){G=0,b=0,E=0,B=0;var ee=DifferenceInstant(GetSlot(C,a),Q,1,"nanosecond",Y,"halfExpand");O=ee.hours,k=ee.minutes,M=ee.seconds,A=ee.milliseconds,R=ee.microseconds,P=ee.nanoseconds;}else {var te=DifferenceZonedDateTime(GetSlot(C,a),Q,K,$,Y,ve(null));G=te.years,b=te.months,E=te.weeks,B=te.days,O=te.hours,k=te.minutes,M=te.seconds,A=te.milliseconds,R=te.microseconds,P=te.nanoseconds;}}else {if("year"===Y||"month"===Y||"week"===Y)throw new RangeError("relativeTo is required for years, months, or weeks arithmetic");G=b=E=0;var re=BalanceDuration(o+p,t.add(t.BigInt(i),t.BigInt(T)),t.add(t.BigInt(l),t.BigInt(y)),t.add(t.BigInt(s),t.BigInt(g)),t.add(t.BigInt(u),t.BigInt(I)),t.add(t.BigInt(d),t.BigInt(w)),t.add(t.BigInt(c),t.BigInt(_)),Y);B=re.days,O=re.hours,k=re.minutes,M=re.seconds,A=re.milliseconds,R=re.microseconds,P=re.nanoseconds;}return RejectDuration(G,b,E,B,O,k,M,A,R,P),{years:G,months:b,weeks:E,days:B,hours:O,minutes:k,seconds:M,milliseconds:A,microseconds:R,nanoseconds:P}}function AddInstant(e,r,n,o,a,i,l){var s=De;s=t.add(s,t.BigInt(l)),s=t.add(s,t.multiply(t.BigInt(i),_e)),s=t.add(s,t.multiply(t.BigInt(a),Ce)),s=t.add(s,t.multiply(t.BigInt(o),Ge)),s=t.add(s,t.multiply(t.BigInt(n),t.BigInt(6e10))),s=t.add(s,t.multiply(t.BigInt(r),t.BigInt(36e11)));var u=t.add(e,s);return ValidateEpochNanoseconds(u),u}function AddDateTime(e,t,r,n,o,a,i,d,c,m,h,f,p,v,T,y,g,D,S,I,w){var _=v,C=AddTime(n,o,a,i,d,c,T,y,g,D,S,I),G=C.deltaDays,b=C.hour,E=C.minute,B=C.second,O=C.millisecond,k=C.microsecond,M=C.nanosecond;_+=G;var A=GetIntrinsic("%Temporal.Duration%"),R=CalendarDateAdd(m,CreateTemporalDate(e,t,r,m),new A(h,f,p,_,0,0,0,0,0,0),w);return {year:GetSlot(R,l),month:GetSlot(R,s),day:GetSlot(R,u),hour:b,minute:E,second:B,millisecond:O,microsecond:k,nanosecond:M}}function AddZonedDateTime(e,t,r,n,o,i,v,T,y,g,D,S,I,w){var _=GetIntrinsic("%Temporal.Duration%");if(0===DurationSign(n,o,i,v,0,0,0,0,0,0))return AddInstant(GetSlot(e,a),T,y,g,D,S,I);var C=GetPlainDateTimeFor(t,e,r),G=CalendarDateAdd(r,CreateTemporalDate(GetSlot(C,l),GetSlot(C,s),GetSlot(C,u),r),new _(n,o,i,v,0,0,0,0,0,0),w),b=CreateTemporalDateTime(GetSlot(G,l),GetSlot(G,s),GetSlot(G,u),GetSlot(C,d),GetSlot(C,c),GetSlot(C,m),GetSlot(C,h),GetSlot(C,f),GetSlot(C,p),r);return AddInstant(GetSlot(GetInstantFor(t,b,"compatible"),a),T,y,g,D,S,I)}function AddDurationToOrSubtractDurationFromDuration(e,t,r,n){var o="subtract"===e?-1:1,a=ToTemporalDurationRecord(r),i=a.years,l=a.months,s=a.weeks,u=a.days,d=a.hours,c=a.minutes,m=a.seconds,h=a.milliseconds,f=a.microseconds,p=a.nanoseconds,v=ToRelativeTemporalObject(GetOptionsObject(n)),T=AddDuration(GetSlot(t,I),GetSlot(t,w),GetSlot(t,_),GetSlot(t,C),GetSlot(t,G),GetSlot(t,b),GetSlot(t,E),GetSlot(t,B),GetSlot(t,O),GetSlot(t,k),o*i,o*l,o*s,o*u,o*d,o*c,o*m,o*h,o*f,o*p,v);return i=T.years,l=T.months,s=T.weeks,u=T.days,d=T.hours,c=T.minutes,m=T.seconds,h=T.milliseconds,f=T.microseconds,p=T.nanoseconds,new(GetIntrinsic("%Temporal.Duration%"))(i,l,s,u,d,c,m,h,f,p)}function AddDurationToOrSubtractDurationFromInstant(e,t,r){var n="subtract"===e?-1:1,o=function ToLimitedTemporalDuration(e,t){var r,n=ToTemporalDurationRecord(e),o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(0!==n[a])throw new RangeError("Duration field ".concat(a," not supported by Temporal.Instant. Try Temporal.ZonedDateTime instead."))}}catch(e){o.e(e);}finally{o.f();}return n}(r,["years","months","weeks","days"]),i=o.hours,l=o.minutes,s=o.seconds,u=o.milliseconds,d=o.microseconds,c=o.nanoseconds,m=AddInstant(GetSlot(t,a),n*i,n*l,n*s,n*u,n*d,n*c);return new(GetIntrinsic("%Temporal.Instant%"))(m)}function AddDurationToOrSubtractDurationFromPlainDateTime(e,t,r,n){var o="subtract"===e?-1:1,a=ToTemporalDurationRecord(r),i=a.years,T=a.months,y=a.weeks,g=a.days,D=a.hours,S=a.minutes,I=a.seconds,w=a.milliseconds,_=a.microseconds,C=a.nanoseconds,G=GetOptionsObject(n),b=GetSlot(t,v),E=AddDateTime(GetSlot(t,l),GetSlot(t,s),GetSlot(t,u),GetSlot(t,d),GetSlot(t,c),GetSlot(t,m),GetSlot(t,h),GetSlot(t,f),GetSlot(t,p),b,o*i,o*T,o*y,o*g,o*D,o*S,o*I,o*w,o*_,o*C,G);return CreateTemporalDateTime(E.year,E.month,E.day,E.hour,E.minute,E.second,E.millisecond,E.microsecond,E.nanosecond,b)}function AddDurationToOrSubtractDurationFromPlainTime(e,t,r){var n="subtract"===e?-1:1,o=ToTemporalDurationRecord(r),a=o.hours,i=o.minutes,l=o.seconds,s=o.milliseconds,u=o.microseconds,v=o.nanoseconds,T=AddTime(GetSlot(t,d),GetSlot(t,c),GetSlot(t,m),GetSlot(t,h),GetSlot(t,f),GetSlot(t,p),n*a,n*i,n*l,n*s,n*u,n*v),y=T.hour,g=T.minute,D=T.second,S=T.millisecond,I=T.microsecond,w=T.nanosecond,_=RegulateTime(y,g,D,S,I,w,"reject");return y=_.hour,g=_.minute,D=_.second,S=_.millisecond,I=_.microsecond,w=_.nanosecond,new(GetIntrinsic("%Temporal.PlainTime%"))(y,g,D,S,I,w)}function AddDurationToOrSubtractDurationFromPlainYearMonth(e,t,r,n){var o=ToTemporalDurationRecord(r);"subtract"===e&&(o={years:-o.years,months:-o.months,weeks:-o.weeks,days:-o.days,hours:-o.hours,minutes:-o.minutes,seconds:-o.seconds,milliseconds:-o.milliseconds,microseconds:-o.microseconds,nanoseconds:-o.nanoseconds});var a=o,i=a.years,l=a.months,s=a.weeks,u=a.days;u=BalanceDuration(u,a.hours,a.minutes,a.seconds,a.milliseconds,a.microseconds,a.nanoseconds,"day").days;var d=GetOptionsObject(n),c=GetSlot(t,v),m=CalendarFields(c,["monthCode","year"]),h=PrepareTemporalFields(t,m,[]),f=ve(null);CopyDataProperties(f,h,[]),h.day=1;var p=CalendarDateFromFields(c,h),T=DurationSign(i,l,s,u,0,0,0,0,0,0),y=GetMethod(c,"dateAdd"),g=GetIntrinsic("%Temporal.Duration%");if(T<0){var D=CalendarDateAdd(c,p,new g(0,1,0,0,0,0,0,0,0,0),void 0,y),S=CalendarDateAdd(c,D,new g(0,0,0,-1,0,0,0,0,0,0),void 0,y);f.day=CalendarDay(c,S),p=CalendarDateFromFields(c,f);}var I=new g(i,l,s,u,0,0,0,0,0,0),w=CopyOptions(d);return CalendarYearMonthFromFields(c,PrepareTemporalFields(CalendarDateAdd(c,p,I,d,y),m,[]),w)}function AddDurationToOrSubtractDurationFromZonedDateTime(e,t,r,n){var o="subtract"===e?-1:1,a=ToTemporalDurationRecord(r),i=a.years,l=a.months,s=a.weeks,u=a.days,d=a.hours,c=a.minutes,m=a.seconds,h=a.milliseconds,f=a.microseconds,p=a.nanoseconds,T=GetOptionsObject(n),y=GetSlot(t,S),g=GetSlot(t,v);return CreateTemporalZonedDateTime(AddZonedDateTime(GetSlot(t,D),y,g,o*i,o*l,o*s,o*u,o*d,o*c,o*m,o*h,o*f,o*p,T),y,g)}function RoundNumberToIncrement(e,r,n){if(t.equal(r,Se))return e;var o=divmod(e,r),a=o.quotient,i=o.remainder;if(t.equal(i,De))return e;var l=t.lessThan(i,De)?-1:1,s=abs(t.multiply(i,t.BigInt(2))),u=t.equal(s,r),d=t.greaterThan(s,r);switch(n){case"ceil":l>0&&(a=t.add(a,t.BigInt(l)));break;case"floor":l<0&&(a=t.add(a,t.BigInt(l)));break;case"expand":a=t.add(a,t.BigInt(l));break;case"trunc":break;case"halfCeil":(d||u&&l>0)&&(a=t.add(a,t.BigInt(l)));break;case"halfFloor":(d||u&&l<0)&&(a=t.add(a,t.BigInt(l)));break;case"halfExpand":(d||u)&&(a=t.add(a,t.BigInt(l)));break;case"halfTrunc":d&&(a=t.add(a,t.BigInt(l)));break;case"halfEven":(d||u&&1===t.toNumber(t.remainder(abs(a),t.BigInt(2))))&&(a=t.add(a,t.BigInt(l)));}return t.multiply(a,r)}function RoundInstant(e,r,n,o){var a=NonNegativeBigIntDivmod(e,Oe).remainder,i=t.subtract(e,a),l=RoundNumberToIncrement(a,t.BigInt(Xe[n]*r),o);return t.add(i,l)}function RoundISODateTime(e,t,r,n,o,a,i,l,s,u,d,c){var m=arguments.length>12&&void 0!==arguments[12]?arguments[12]:864e11,h=RoundTime(n,o,a,i,l,s,u,d,c,m),f=h.deltaDays,p=h.hour,v=h.minute,T=h.second,y=h.millisecond,g=h.microsecond,D=h.nanosecond,S=BalanceISODate(e,t,r+f),I=S.year,w=S.month,_=S.day;return {year:I,month:w,day:_,hour:p,minute:v,second:T,millisecond:y,microsecond:g,nanosecond:D}}function RoundTime(e,r,n,o,a,i,l,s,u){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:864e11,c=De;switch(s){case"day":case"hour":c=t.BigInt(e);case"minute":c=t.add(t.multiply(c,Ie),t.BigInt(r));case"second":c=t.add(t.multiply(c,Ie),t.BigInt(n));case"millisecond":c=t.add(t.multiply(c,_e),t.BigInt(o));case"microsecond":c=t.add(t.multiply(c,_e),t.BigInt(a));case"nanosecond":c=t.add(t.multiply(c,_e),t.BigInt(i));}var m="day"===s?d:Xe[s],h=RoundNumberToIncrement(c,t.BigInt(m*l),u),f=t.toNumber(t.divide(h,t.BigInt(m)));switch(s){case"day":return {deltaDays:f,hour:0,minute:0,second:0,millisecond:0,microsecond:0,nanosecond:0};case"hour":return BalanceTime(f,0,0,0,0,0);case"minute":return BalanceTime(e,f,0,0,0,0);case"second":return BalanceTime(e,r,f,0,0,0);case"millisecond":return BalanceTime(e,r,n,f,0,0);case"microsecond":return BalanceTime(e,r,n,o,f,0);case"nanosecond":return BalanceTime(e,r,n,o,a,f);default:throw new Error("Invalid unit ".concat(s))}}function DaysUntil(e,t){return DifferenceISODate(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),GetSlot(t,l),GetSlot(t,s),GetSlot(t,u),"day").days}function MoveRelativeDate(e,t,r,n){var o=CalendarDateAdd(e,t,r,void 0,n);return {relativeTo:o,days:DaysUntil(t,o)}}function MoveRelativeZonedDateTime(e,t,r,n,o){var a=GetSlot(e,S),i=GetSlot(e,v);return CreateTemporalZonedDateTime(AddZonedDateTime(GetSlot(e,D),a,i,t,r,n,o,0,0,0,0,0,0),a,i)}function AdjustRoundedDurationDays(e,r,n,o,a,i,l,s,u,d,c,m,h,f){var p=e,T=r,y=n,g=o,I=a,w=i,_=l,C=s,G=u,b=d;if(!IsTemporalZonedDateTime(f)||"year"===m||"month"===m||"week"===m||"day"===m||"nanosecond"===m&&1===c)return {years:p,months:T,weeks:y,days:g,hours:I,minutes:w,seconds:_,milliseconds:C,microseconds:G,nanoseconds:b};var E=TotalDurationNanoseconds(0,I,w,_,C,G,b,0),B=ue(t.toNumber(E)),O=GetSlot(f,S),k=GetSlot(f,v),M=AddZonedDateTime(GetSlot(f,D),O,k,p,T,y,g,0,0,0,0,0,0),A=AddZonedDateTime(new(GetIntrinsic("%Temporal.Instant%"))(M),O,k,0,0,0,B,0,0,0,0,0,0),R=t.subtract(A,M);if(t.greaterThanOrEqual(t.multiply(t.subtract(E,R),t.BigInt(B)),De)){var P=AddDuration(p,T,y,g,0,0,0,0,0,0,0,0,0,B,0,0,0,0,0,0,f);p=P.years,T=P.months,y=P.weeks,g=P.days,E=RoundInstant(t.subtract(E,R),c,m,h);var Y=BalanceDuration(0,0,0,0,0,0,t.toNumber(E),"hour");I=Y.hours,w=Y.minutes,_=Y.seconds,C=Y.milliseconds,G=Y.microseconds,b=Y.nanoseconds;}return {years:p,months:T,weeks:y,days:g,hours:I,minutes:w,seconds:_,milliseconds:C,microseconds:G,nanoseconds:b}}function RoundDuration(e,r,n,o,a,i,l,s,u,d,c,m,h){var f,p,T,y,g=arguments.length>13&&void 0!==arguments[13]?arguments[13]:void 0,D=e,S=r,I=n,w=o,_=a,C=i,G=l,b=s,E=u,B=t.BigInt(d),O=GetIntrinsic("%Temporal.Duration%"),k=g;if(k){if(IsTemporalZonedDateTime(k))p=k,k=ToTemporalDate(k);else if(!IsTemporalDate(k))throw new TypeError("starting point must be PlainDate or ZonedDateTime");f=GetSlot(k,v);}if("year"===m||"month"===m||"week"===m||"day"===m){var M,A,R;B=TotalDurationNanoseconds(0,_,C,G,b,E,d,0),p&&(M=MoveRelativeZonedDateTime(p,D,S,I,w));var P=NanosecondsToDays(B,M);A=P.days,B=P.nanoseconds,R=P.dayLengthNs,T=t.BigInt(R),w+=A,_=C=G=b=E=0;}switch(m){case"year":if(!f)throw new RangeError("A starting point is required for years rounding");var Y=new O(D),j="string"!=typeof f?GetMethod(f,"dateAdd"):void 0,N=CalendarDateAdd(f,k,Y,void 0,j),Z=new O(D,S,I),J=CalendarDateAdd(f,k,Z,void 0,j),L=DaysUntil(N,J);k=N;var U=new O(0,0,0,w+=L),H=CalendarDateAdd(f,k,U,void 0,j),x=ve(null);x.largestUnit="year";var q=CalendarDateUntil(f,k,H,x).years;D+=q;var W=k,z=new O(q),V=DaysUntil(W,k=CalendarDateAdd(f,k,z,void 0,j)),K=new O((w-=V)<0?-1:1),$=MoveRelativeDate(f,k,K,j),X=$.days;X=le(X);var Q=t.multiply(t.BigInt(X),T),ee=RoundNumberToIncrement(B=t.add(t.add(t.multiply(Q,t.BigInt(D)),t.multiply(t.BigInt(w),T)),B),t.multiply(Q,t.BigInt(c)),h);y=BigIntDivideToNumber(B,Q),D=t.toNumber(t.divide(ee,Q)),B=De,S=I=w=0;break;case"month":if(!f)throw new RangeError("A starting point is required for months rounding");var te=new O(D,S),re="string"!=typeof f?GetMethod(f,"dateAdd"):void 0,ne=CalendarDateAdd(f,k,te,void 0,re),oe=new O(D,S,I),ae=CalendarDateAdd(f,k,oe,void 0,re),ie=DaysUntil(ne,ae);k=ne;var se,de=ue(w+=ie),ce=new O(0,w<0?-1:1),me=MoveRelativeDate(f,k,ce,re);for(k=me.relativeTo,se=me.days;le(w)>=le(se);){S+=de,w-=se;var he=MoveRelativeDate(f,k,ce,re);k=he.relativeTo,se=he.days;}se=le(se);var fe=t.multiply(t.BigInt(se),T),pe=RoundNumberToIncrement(B=t.add(t.add(t.multiply(fe,t.BigInt(S)),t.multiply(t.BigInt(w),T)),B),t.multiply(fe,t.BigInt(c)),h);y=BigIntDivideToNumber(B,fe),S=t.toNumber(t.divide(pe,fe)),B=De,I=w=0;break;case"week":if(!f)throw new RangeError("A starting point is required for weeks rounding");var Te,ye=ue(w),ge=new O(0,0,w<0?-1:1),Se="string"!=typeof f?GetMethod(f,"dateAdd"):void 0,Ie=MoveRelativeDate(f,k,ge,Se);for(k=Ie.relativeTo,Te=Ie.days;le(w)>=le(Te);){I+=ye,w-=Te;var we=MoveRelativeDate(f,k,ge,Se);k=we.relativeTo,Te=we.days;}Te=le(Te);var be=t.multiply(t.BigInt(Te),T),Ee=RoundNumberToIncrement(B=t.add(t.add(t.multiply(be,t.BigInt(I)),t.multiply(t.BigInt(w),T)),B),t.multiply(be,t.BigInt(c)),h);y=BigIntDivideToNumber(B,be),I=t.toNumber(t.divide(Ee,be)),B=De,w=0;break;case"day":var Be=T,Oe=RoundNumberToIncrement(B=t.add(t.multiply(Be,t.BigInt(w)),B),t.multiply(Be,t.BigInt(c)),h);y=BigIntDivideToNumber(B,Be),w=t.toNumber(t.divide(Oe,Be)),B=De;break;case"hour":var Fe=36e11,ke=t.multiply(t.BigInt(_),t.BigInt(36e11));ke=t.add(ke,t.multiply(t.BigInt(C),t.BigInt(6e10))),ke=t.add(ke,t.multiply(t.BigInt(G),Ge)),ke=t.add(ke,t.multiply(t.BigInt(b),Ce)),ke=t.add(ke,t.multiply(t.BigInt(E),_e)),y=BigIntDivideToNumber(ke=t.add(ke,B),t.BigInt(Fe));var Me=RoundNumberToIncrement(ke,t.BigInt(Fe*c),h);_=t.toNumber(t.divide(Me,t.BigInt(Fe))),B=De,C=G=b=E=0;break;case"minute":var Ae=6e10,Re=t.multiply(t.BigInt(C),t.BigInt(6e10));Re=t.add(Re,t.multiply(t.BigInt(G),Ge)),Re=t.add(Re,t.multiply(t.BigInt(b),Ce)),Re=t.add(Re,t.multiply(t.BigInt(E),_e)),y=BigIntDivideToNumber(Re=t.add(Re,B),t.BigInt(Ae));var Pe=RoundNumberToIncrement(Re,t.BigInt(Ae*c),h);C=t.toNumber(t.divide(Pe,t.BigInt(Ae))),B=De,G=b=E=0;break;case"second":var Ye=1e9,je=t.multiply(t.BigInt(G),Ge);je=t.add(je,t.multiply(t.BigInt(b),Ce)),je=t.add(je,t.multiply(t.BigInt(E),_e)),y=BigIntDivideToNumber(je=t.add(je,B),t.BigInt(Ye));var Ne=RoundNumberToIncrement(je,t.BigInt(Ye*c),h);G=t.toNumber(t.divide(Ne,t.BigInt(Ye))),B=De,b=E=0;break;case"millisecond":var Ze=1e6,Je=t.multiply(t.BigInt(b),Ce);Je=t.add(Je,t.multiply(t.BigInt(E),_e)),y=BigIntDivideToNumber(Je=t.add(Je,B),t.BigInt(Ze));var Le=RoundNumberToIncrement(Je,t.BigInt(Ze*c),h);b=t.toNumber(t.divide(Le,t.BigInt(Ze))),B=De,E=0;break;case"microsecond":var Ue=1e3,He=t.multiply(t.BigInt(E),_e);y=BigIntDivideToNumber(He=t.add(He,B),t.BigInt(Ue));var xe=RoundNumberToIncrement(He,t.BigInt(Ue*c),h);E=t.toNumber(t.divide(xe,t.BigInt(Ue))),B=De;break;case"nanosecond":y=t.toNumber(B),B=RoundNumberToIncrement(t.BigInt(B),t.BigInt(c),h);}return {years:D,months:S,weeks:I,days:w,hours:_,minutes:C,seconds:G,milliseconds:b,microseconds:E,nanoseconds:t.toNumber(B),total:y}}function CompareISODate(e,t,r,n,o,a){for(var i=0,l=[[e,n],[t,o],[r,a]];i<l.length;i++){var s=_slicedToArray(l[i],2),u=s[0],d=s[1];if(u!==d)return ComparisonResult(u-d)}return 0}function NonNegativeBigIntDivmod(e,r){var n=divmod(e,r),o=n.quotient,a=n.remainder;return t.lessThan(a,De)&&(o=t.subtract(o,Se),a=t.add(a,r)),{quotient:o,remainder:a}}function BigIntFloorDiv(e,r){var n=divmod(e,r),o=n.quotient;return isZero(n.remainder)||!isNegativeJSBI(e)==!isNegativeJSBI(r)?o:t.subtract(o,Se)}function BigIntDivideToNumber(e,r){var n=divmod(e,r),o=n.quotient,a=n.remainder;return t.toNumber(o)+t.toNumber(a)/t.toNumber(r)}function ToBigIntExternal(e){var t=ToBigInt(e);return void 0!==globalThis.BigInt?globalThis.BigInt(t.toString(10)):t}function ToBigInt(e){var r=e;if("object"===_typeof(e)){var n=e[Symbol.toPrimitive];n&&"function"==typeof n&&(r=ye(n,e,["number"]));}if("number"==typeof r)throw new TypeError("cannot convert number to bigint");return "bigint"==typeof r?t.BigInt(r.toString(10)):t.BigInt(r)}var Ve,Ke=(Ve=t.BigInt(Date.now()%1e6),function(){var e=t.BigInt(Date.now()),r=t.add(t.multiply(e,Ce),Ve);return Ve=t.remainder(e,Ce),t.greaterThan(r,ke)?ke:t.lessThan(r,Fe)?Fe:r});function DefaultTimeZone(){return (new oe).resolvedOptions().timeZone}function ComparisonResult(e){return e<0?-1:e>0?1:e}function GetOptionsObject(e){if(void 0===e)return ve(null);if(IsObject(e)&&null!==e)return e;throw new TypeError("Options parameter must be an object, not ".concat(null===e?"null":"".concat(_typeof(e))))}function CreateOnePropObject(e,t){var r=ve(null);return r[e]=t,r}function CopyOptions(e){var t=ve(null);return CopyDataProperties(t,GetOptionsObject(e),[]),t}function GetOption(e,t,r,n){var o=e[t];if(void 0!==o){if(o=ToString(o),!r.includes(o))throw new RangeError("".concat(t," must be one of ").concat(r.join(", "),", not ").concat(o));return o}return n}function IsBuiltinCalendar(e){return Ne.includes(ASCIILowercase(e))}function ASCIILowercase(e){return e.replace(/[A-Z]/g,(function(e){var t=e.charCodeAt(0);return String.fromCharCode(t+32)}))}var $e=new RegExp("^".concat(q.source,"$"));function bisect(e,r,n){for(var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e(r),a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e(n),i=t.BigInt(r),l=t.BigInt(n),s=o,u=a;t.greaterThan(t.subtract(l,i),Se);){var d=t.divide(t.add(i,l),t.BigInt(2)),c=e(d);if(c===s)i=d,s=c;else {if(c!==u)throw new Error("invalid state in bisection ".concat(s," - ").concat(c," - ").concat(u));l=d,u=c;}}return l}var Xe={hour:36e11,minute:6e10,second:1e9,millisecond:1e6,microsecond:1e3,nanosecond:1},Qe=Symbol("date"),et=Symbol("ym"),tt=Symbol("md"),rt=Symbol("time"),nt=Symbol("datetime"),ot=Symbol("instant"),at=Symbol("original"),it=Symbol("timezone"),lt=Symbol("calendar-id"),st=Symbol("locale"),ut=Symbol("options"),dt=function descriptor(e){return {value:e,enumerable:!0,writable:!1,configurable:!0}},ct=globalThis.Intl.DateTimeFormat,mt=Object.assign,ht=Object.prototype.hasOwnProperty,ft=Reflect.apply;function getPropLazy(e,t){var r=e[t];return "function"==typeof r&&(r=new ct(e[st],r(e[ut])),e[t]=r),r}function DateTimeFormatImpl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof DateTimeFormatImpl))return new DateTimeFormatImpl(e,t);var r=void 0!==t,n=r?mt({},t):{},o=new ct(e,n),a=o.resolvedOptions();if(r){var i=mt({},a);for(var l in i)ft(ht,n,[l])||delete i[l];this[ut]=i;}else this[ut]=n;this[st]=a.locale,this[at]=o,this[it]=a.timeZone,this[lt]=a.calendar,this[Qe]=dateAmend,this[et]=yearMonthAmend,this[tt]=monthDayAmend,this[rt]=timeAmend,this[nt]=datetimeAmend,this[ot]=instantAmend;}Object.defineProperty(DateTimeFormatImpl,"name",{writable:!0,value:"DateTimeFormat"}),DateTimeFormatImpl.supportedLocalesOf=function(e,t){return ct.supportedLocalesOf(e,t)};var pt={resolvedOptions:dt((function resolvedOptions(){return this[at].resolvedOptions()})),format:dt((function format(e){var t,r=extractOverrides(e,this),n=r.instant,o=r.formatter;if(n&&o)return o.format(n.epochMilliseconds);for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];return (t=this[at]).format.apply(t,[e].concat(i))})),formatRange:dt((function formatRange(e,t){if(isTemporalObject(e)||isTemporalObject(t)){if(!sameTemporalType(e,t))throw new TypeError("Intl.DateTimeFormat.formatRange accepts two values of the same type");var r=extractOverrides(e,this),n=r.instant,o=r.formatter,a=extractOverrides(t,this),i=a.instant,l=a.formatter;if(n&&i&&o&&l&&o===l)return o.formatRange(n.epochMilliseconds,i.epochMilliseconds)}return this[at].formatRange(e,t)}))};"formatToParts"in ct.prototype&&(pt.formatToParts=dt((function formatToParts(e){var t,r=extractOverrides(e,this),n=r.instant,o=r.formatter;if(n&&o)return o.formatToParts(n.epochMilliseconds);for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l<a;l++)i[l-1]=arguments[l];return (t=this[at]).formatToParts.apply(t,[e].concat(i))}))),"formatRangeToParts"in ct.prototype&&(pt.formatRangeToParts=dt((function formatRangeToParts(e,t){if(isTemporalObject(e)||isTemporalObject(t)){if(!sameTemporalType(e,t))throw new TypeError("Intl.DateTimeFormat.formatRangeToParts accepts two values of the same type");var r=extractOverrides(e,this),n=r.instant,o=r.formatter,a=extractOverrides(t,this),i=a.instant,l=a.formatter;if(n&&i&&o&&l&&o===l)return o.formatRangeToParts(n.epochMilliseconds,i.epochMilliseconds)}return this[at].formatRangeToParts(e,t)}))),DateTimeFormatImpl.prototype=Object.create(ct.prototype,pt),Object.defineProperty(DateTimeFormatImpl,"prototype",{writable:!1,enumerable:!1,configurable:!1});var vt=DateTimeFormatImpl;function amend(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=mt({},e),n=0,o=["year","month","day","hour","minute","second","weekday","dayPeriod","timeZoneName","dateStyle","timeStyle"];n<o.length;n++){var a=o[n];r[a]=a in t?t[a]:r[a],!1!==r[a]&&void 0!==r[a]||delete r[a];}return r}function timeAmend(e){var t=amend(e,{year:!1,month:!1,day:!1,weekday:!1,timeZoneName:!1,dateStyle:!1});return hasTimeOptions(t)||(t=mt({},t,{hour:"numeric",minute:"numeric",second:"numeric"})),t}function yearMonthAmend(e){var t=amend(e,{day:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,dateStyle:!1,timeStyle:!1});return "year"in t||"month"in t||(t=mt(t,{year:"numeric",month:"numeric"})),t}function monthDayAmend(e){var t=amend(e,{year:!1,hour:!1,minute:!1,second:!1,weekday:!1,dayPeriod:!1,timeZoneName:!1,dateStyle:!1,timeStyle:!1});return "month"in t||"day"in t||(t=mt({},t,{month:"numeric",day:"numeric"})),t}function dateAmend(e){var t=amend(e,{hour:!1,minute:!1,second:!1,dayPeriod:!1,timeZoneName:!1,timeStyle:!1});return hasDateOptions(t)||(t=mt({},t,{year:"numeric",month:"numeric",day:"numeric"})),t}function datetimeAmend(e){var t=amend(e,{timeZoneName:!1});return hasTimeOptions(t)||hasDateOptions(t)||(t=mt({},t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),t}function instantAmend(e){var t=e;return hasTimeOptions(t)||hasDateOptions(t)||(t=mt({},t,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})),t}function hasDateOptions(e){return "year"in e||"month"in e||"day"in e||"weekday"in e||"dateStyle"in e}function hasTimeOptions(e){return "hour"in e||"minute"in e||"second"in e||"timeStyle"in e||"dayPeriod"in e}function isTemporalObject(e){return IsTemporalDate(e)||IsTemporalTime(e)||IsTemporalDateTime(e)||IsTemporalZonedDateTime(e)||IsTemporalYearMonth(e)||IsTemporalMonthDay(e)||IsTemporalInstant(e)}function sameTemporalType(e,t){return !(!isTemporalObject(e)||!isTemporalObject(t))&&(!(IsTemporalTime(e)&&!IsTemporalTime(t))&&(!(IsTemporalDate(e)&&!IsTemporalDate(t))&&(!(IsTemporalDateTime(e)&&!IsTemporalDateTime(t))&&(!(IsTemporalZonedDateTime(e)&&!IsTemporalZonedDateTime(t))&&(!(IsTemporalYearMonth(e)&&!IsTemporalYearMonth(t))&&(!(IsTemporalMonthDay(e)&&!IsTemporalMonthDay(t))&&!(IsTemporalInstant(e)&&!IsTemporalInstant(t))))))))}function extractOverrides(e,t){var r=GetIntrinsic("%Temporal.PlainDateTime%");if(IsTemporalTime(e)){var n=new r(1970,1,1,GetSlot(e,d),GetSlot(e,c),GetSlot(e,m),GetSlot(e,h),GetSlot(e,f),GetSlot(e,p),t[lt]);return {instant:GetInstantFor(t[it],n,"compatible"),formatter:getPropLazy(t,rt)}}if(IsTemporalYearMonth(e)){var o=GetSlot(e,l),a=GetSlot(e,s),i=GetSlot(e,u),T=ToTemporalCalendarIdentifier(GetSlot(e,v));if(T!==t[lt])throw new RangeError("cannot format PlainYearMonth with calendar ".concat(T," in locale with calendar ").concat(t[lt]));var y=new r(o,a,i,12,0,0,0,0,0,T);return {instant:GetInstantFor(t[it],y,"compatible"),formatter:getPropLazy(t,et)}}if(IsTemporalMonthDay(e)){var g=GetSlot(e,l),D=GetSlot(e,s),S=GetSlot(e,u),I=ToTemporalCalendarIdentifier(GetSlot(e,v));if(I!==t[lt])throw new RangeError("cannot format PlainMonthDay with calendar ".concat(I," in locale with calendar ").concat(t[lt]));var w=new r(g,D,S,12,0,0,0,0,0,I);return {instant:GetInstantFor(t[it],w,"compatible"),formatter:getPropLazy(t,tt)}}if(IsTemporalDate(e)){var _=GetSlot(e,l),C=GetSlot(e,s),G=GetSlot(e,u),b=ToTemporalCalendarIdentifier(GetSlot(e,v));if("iso8601"!==b&&b!==t[lt])throw new RangeError("cannot format PlainDate with calendar ".concat(b," in locale with calendar ").concat(t[lt]));var E=new r(_,C,G,12,0,0,0,0,0,t[lt]);return {instant:GetInstantFor(t[it],E,"compatible"),formatter:getPropLazy(t,Qe)}}if(IsTemporalDateTime(e)){var B=GetSlot(e,l),O=GetSlot(e,s),k=GetSlot(e,u),M=GetSlot(e,d),A=GetSlot(e,c),R=GetSlot(e,m),P=GetSlot(e,h),Y=GetSlot(e,f),j=GetSlot(e,p),N=ToTemporalCalendarIdentifier(GetSlot(e,v));if("iso8601"!==N&&N!==t[lt])throw new RangeError("cannot format PlainDateTime with calendar ".concat(N," in locale with calendar ").concat(t[lt]));var Z=e;return "iso8601"===N&&(Z=new r(B,O,k,M,A,R,P,Y,j,t[lt])),{instant:GetInstantFor(t[it],Z,"compatible"),formatter:getPropLazy(t,nt)}}if(IsTemporalZonedDateTime(e))throw new TypeError("Temporal.ZonedDateTime not supported in DateTimeFormat methods. Use toLocaleString() instead.");return IsTemporalInstant(e)?{instant:e,formatter:getPropLazy(t,ot)}:{}}var Tt=Object.freeze({__proto__:null,DateTimeFormat:vt}),yt=function(){function Instant(e){if(_classCallCheck(this,Instant),arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");var t=ToBigInt(e);ValidateEpochNanoseconds(t),j(this),SetSlot(this,a,t);}return _createClass(Instant,[{key:"epochSeconds",get:function get(){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");var e=GetSlot(this,a);return t.toNumber(BigIntFloorDiv(e,Ge))}},{key:"epochMilliseconds",get:function get(){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");var e=t.BigInt(GetSlot(this,a));return t.toNumber(BigIntFloorDiv(e,Ce))}},{key:"epochMicroseconds",get:function get(){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return ToBigIntExternal(BigIntFloorDiv(t.BigInt(GetSlot(this,a)),_e))}},{key:"epochNanoseconds",get:function get(){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return ToBigIntExternal(t.BigInt(GetSlot(this,a)))}},{key:"add",value:function add(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromInstant("add",this,e)}},{key:"subtract",value:function subtract(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromInstant("subtract",this,e)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return DifferenceTemporalInstant("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return DifferenceTemporalInstant("since",this,e,t)}},{key:"round",value:function round(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");if(void 0===e)throw new TypeError("options parameter is required");var t="string"==typeof e?CreateOnePropObject("smallestUnit",e):GetOptionsObject(e),r=ToTemporalRoundingIncrement(t),n=ToTemporalRoundingMode(t,"halfExpand"),o=GetTemporalUnit(t,"smallestUnit","time",ze);return ValidateTemporalRoundingIncrement(r,{hour:24,minute:1440,second:86400,millisecond:864e5,microsecond:864e8,nanosecond:864e11}[o],!0),new Instant(RoundInstant(GetSlot(this,a),r,o,n))}},{key:"equals",value:function equals(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");var r=ToTemporalInstant(e),n=GetSlot(this,a),o=GetSlot(r,a);return t.equal(t.BigInt(n),t.BigInt(o))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToFractionalSecondDigits(t),n=ToTemporalRoundingMode(t,"trunc"),o=GetTemporalUnit(t,"smallestUnit","time",void 0);if("hour"===o)throw new RangeError('smallestUnit must be a time unit other than "hour"');var i=t.timeZone;void 0!==i&&(i=ToTemporalTimeZoneSlotValue(i));var l=ToSecondsStringPrecisionRecord(o,r),s=l.precision,u=l.unit,d=l.increment,c=GetSlot(this,a),m=RoundInstant(c,d,u,n),h=new Instant(m);return TemporalInstantToString(h,i,s)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return TemporalInstantToString(this,void 0,"auto")}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.Instant")}},{key:"toZonedDateTime",value:function toZonedDateTime(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument in toZonedDateTime");var t=e.calendar;if(void 0===t)throw new TypeError("missing calendar property in toZonedDateTime");var r=ToTemporalCalendarSlotValue(t),n=e.timeZone;if(void 0===n)throw new TypeError("missing timeZone property in toZonedDateTime");var o=ToTemporalTimeZoneSlotValue(n);return CreateTemporalZonedDateTime(GetSlot(this,a),o,r)}},{key:"toZonedDateTimeISO",value:function toZonedDateTimeISO(e){if(!IsTemporalInstant(this))throw new TypeError("invalid receiver");var t=ToTemporalTimeZoneSlotValue(e);return CreateTemporalZonedDateTime(GetSlot(this,a),t,"iso8601")}}],[{key:"fromEpochSeconds",value:function fromEpochSeconds(e){var r=ToNumber(e),n=t.multiply(t.BigInt(r),Ge);return ValidateEpochNanoseconds(n),new Instant(n)}},{key:"fromEpochMilliseconds",value:function fromEpochMilliseconds(e){var r=ToNumber(e),n=t.multiply(t.BigInt(r),Ce);return ValidateEpochNanoseconds(n),new Instant(n)}},{key:"fromEpochMicroseconds",value:function fromEpochMicroseconds(e){var r=ToBigInt(e),n=t.multiply(r,_e);return ValidateEpochNanoseconds(n),new Instant(n)}},{key:"fromEpochNanoseconds",value:function fromEpochNanoseconds(e){var t=ToBigInt(e);return ValidateEpochNanoseconds(t),new Instant(t)}},{key:"from",value:function from(e){return IsTemporalInstant(e)?new Instant(GetSlot(e,a)):ToTemporalInstant(e)}},{key:"compare",value:function compare(e,r){var n=ToTemporalInstant(e),o=ToTemporalInstant(r),i=GetSlot(n,a),l=GetSlot(o,a);return t.lessThan(i,l)?-1:t.greaterThan(i,l)?1:0}}]),Instant}();MakeIntrinsicClass(yt,"Temporal.Instant");var gt=Array.prototype.includes,Dt=Array.prototype.push,St=globalThis.Intl.DateTimeFormat,It=Array.prototype.sort,wt=Math.abs,_t=Math.floor,Ct=Object.create,Gt=Object.entries,bt=Set,Et=Reflect.ownKeys,Bt=Set.prototype.add,Ot=Set.prototype.values,Ft={},kt=function(){function Calendar(e){if(_classCallCheck(this,Calendar),arguments.length<1)throw new RangeError("missing argument: id is required");var t=ToString(e);if(!IsBuiltinCalendar(t))throw new RangeError("invalid calendar identifier ".concat(t));j(this),SetSlot(this,M,ASCIILowercase(t));}return _createClass(Calendar,[{key:"id",get:function get(){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return GetSlot(this,M)}},{key:"dateFromFields",value:function dateFromFields(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid fields");var r=GetOptionsObject(t),n=GetSlot(this,M);return Ft[n].dateFromFields(e,r,n)}},{key:"yearMonthFromFields",value:function yearMonthFromFields(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid fields");var r=GetOptionsObject(t),n=GetSlot(this,M);return Ft[n].yearMonthFromFields(e,r,n)}},{key:"monthDayFromFields",value:function monthDayFromFields(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid fields");var r=GetOptionsObject(t),n=GetSlot(this,M);return Ft[n].monthDayFromFields(e,r,n)}},{key:"fields",value:function fields(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t,r=[],n=new Set(["year","month","monthCode","day","hour","minute","second","millisecond","microsecond","nanosecond"]),o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("string"!=typeof a)throw new TypeError("invalid fields");if(!n.has(a))throw new RangeError("invalid field name ".concat(a));n.delete(a),Dt.call(r,a);}}catch(e){o.e(e);}finally{o.f();}return Ft[GetSlot(this,M)].fields(r)}},{key:"mergeFields",value:function mergeFields(e,t){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var r=ToObject(e),n=Ct(null);CopyDataProperties(n,r,[],[void 0]);var o=ToObject(t),a=Ct(null);CopyDataProperties(a,o,[],[void 0]);var i,l=Et(a),s=Ft[GetSlot(this,M)].fieldKeysToIgnore(l),u=Ct(null),d=_createForOfIteratorHelper(Et(n));try{for(d.s();!(i=d.n()).done;){var c=i.value,m=void 0;void 0!==(m=Call(gt,s,[c])?a[c]:n[c])&&(u[c]=m);}}catch(e){d.e(e);}finally{d.f();}return CopyDataProperties(u,a,[]),u}},{key:"dateAdd",value:function dateAdd(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var n=ToTemporalDate(e),o=ToTemporalDuration(t),a=GetOptionsObject(r),i=ToTemporalOverflow(a),l=BalanceDuration(GetSlot(o,C),GetSlot(o,G),GetSlot(o,b),GetSlot(o,E),GetSlot(o,B),GetSlot(o,O),GetSlot(o,k),"day"),s=l.days,u=GetSlot(this,M);return Ft[u].dateAdd(n,GetSlot(o,I),GetSlot(o,w),GetSlot(o,_),s,i,u)}},{key:"dateUntil",value:function dateUntil(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var n=ToTemporalDate(e),o=ToTemporalDate(t),a=GetOptionsObject(r),i=GetTemporalUnit(a,"largestUnit","date","auto");"auto"===i&&(i="day");var l=Ft[GetSlot(this,M)].dateUntil(n,o,i),s=l.years,u=l.months,d=l.weeks,c=l.days,m=GetIntrinsic("%Temporal.Duration%");return new m(s,u,d,c,0,0,0,0,0,0)}},{key:"year",value:function year(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].year(t)}},{key:"month",value:function month(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");if(IsTemporalMonthDay(t))throw new TypeError("use monthCode on PlainMonthDay instead");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].month(t)}},{key:"monthCode",value:function monthCode(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||IsTemporalMonthDay(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].monthCode(t)}},{key:"day",value:function day(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalMonthDay(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].day(t)}},{key:"era",value:function era(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].era(t)}},{key:"eraYear",value:function eraYear(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].eraYear(t)}},{key:"dayOfWeek",value:function dayOfWeek(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e);return Ft[GetSlot(this,M)].dayOfWeek(t)}},{key:"dayOfYear",value:function dayOfYear(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e);return Ft[GetSlot(this,M)].dayOfYear(t)}},{key:"weekOfYear",value:function weekOfYear(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e);return Ft[GetSlot(this,M)].weekOfYear(t)}},{key:"yearOfWeek",value:function yearOfWeek(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e);return Ft[GetSlot(this,M)].yearOfWeek(t)}},{key:"daysInWeek",value:function daysInWeek(e){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e);return Ft[GetSlot(this,M)].daysInWeek(t)}},{key:"daysInMonth",value:function daysInMonth(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].daysInMonth(t)}},{key:"daysInYear",value:function daysInYear(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].daysInYear(t)}},{key:"monthsInYear",value:function monthsInYear(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].monthsInYear(t)}},{key:"inLeapYear",value:function inLeapYear(e){var t=e;if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return IsTemporalYearMonth(t)||(t=ToTemporalDate(t)),Ft[GetSlot(this,M)].inLeapYear(t)}},{key:"toString",value:function toString(){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return GetSlot(this,M)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalCalendar(this))throw new TypeError("invalid receiver");return GetSlot(this,M)}}],[{key:"from",value:function from(e){return ToTemporalCalendarObject(ToTemporalCalendarSlotValue(e))}}]),Calendar}();function monthCodeNumberPart(e){if(!e.startsWith("M"))throw new RangeError("Invalid month code: ".concat(e,". Month codes must start with M."));var t=+e.slice(1);if(isNaN(t))throw new RangeError("Invalid month code: ".concat(e));return t}function buildMonthCode(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return "M".concat(e.toString().padStart(2,"0")).concat(t?"L":"")}function resolveNonLunisolarMonth(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,n=e.month,o=e.monthCode;if(void 0===o){if(void 0===n)throw new TypeError("Either month or monthCode are required");"reject"===t&&RejectToRange(n,1,r),"constrain"===t&&(n=ConstrainToRange(n,1,r)),o=buildMonthCode(n);}else {var a=monthCodeNumberPart(o);if(void 0!==n&&n!==a)throw new RangeError("monthCode ".concat(o," and month ").concat(n," must match if both are present"));if(o!==buildMonthCode(a))throw new RangeError("Invalid month code: ".concat(o));if((n=a)<1||n>r)throw new RangeError("Invalid monthCode: ".concat(o))}return _objectSpread2(_objectSpread2({},e),{},{month:n,monthCode:o})}MakeIntrinsicClass(kt,"Temporal.Calendar"),DefineIntrinsic("Temporal.Calendar.from",kt.from),DefineIntrinsic("Temporal.Calendar.prototype.dateAdd",kt.prototype.dateAdd),DefineIntrinsic("Temporal.Calendar.prototype.dateFromFields",kt.prototype.dateFromFields),DefineIntrinsic("Temporal.Calendar.prototype.dateUntil",kt.prototype.dateUntil),DefineIntrinsic("Temporal.Calendar.prototype.day",kt.prototype.day),DefineIntrinsic("Temporal.Calendar.prototype.dayOfWeek",kt.prototype.dayOfWeek),DefineIntrinsic("Temporal.Calendar.prototype.dayOfYear",kt.prototype.dayOfYear),DefineIntrinsic("Temporal.Calendar.prototype.daysInMonth",kt.prototype.daysInMonth),DefineIntrinsic("Temporal.Calendar.prototype.daysInWeek",kt.prototype.daysInWeek),DefineIntrinsic("Temporal.Calendar.prototype.daysInYear",kt.prototype.daysInYear),DefineIntrinsic("Temporal.Calendar.prototype.era",kt.prototype.era),DefineIntrinsic("Temporal.Calendar.prototype.eraYear",kt.prototype.eraYear),DefineIntrinsic("Temporal.Calendar.prototype.fields",kt.prototype.fields),DefineIntrinsic("Temporal.Calendar.prototype.inLeapYear",kt.prototype.inLeapYear),DefineIntrinsic("Temporal.Calendar.prototype.mergeFields",kt.prototype.mergeFields),DefineIntrinsic("Temporal.Calendar.prototype.month",kt.prototype.month),DefineIntrinsic("Temporal.Calendar.prototype.monthCode",kt.prototype.monthCode),DefineIntrinsic("Temporal.Calendar.prototype.monthDayFromFields",kt.prototype.monthDayFromFields),DefineIntrinsic("Temporal.Calendar.prototype.monthsInYear",kt.prototype.monthsInYear),DefineIntrinsic("Temporal.Calendar.prototype.weekOfYear",kt.prototype.weekOfYear),DefineIntrinsic("Temporal.Calendar.prototype.year",kt.prototype.year),DefineIntrinsic("Temporal.Calendar.prototype.yearMonthFromFields",kt.prototype.yearMonthFromFields),DefineIntrinsic("Temporal.Calendar.prototype.yearOfWeek",kt.prototype.yearOfWeek),Ft.iso8601={dateFromFields:function dateFromFields(e,t,r){var n=PrepareTemporalFields(e,["day","month","monthCode","year"],["year","day"]),o=ToTemporalOverflow(t),a=n=resolveNonLunisolarMonth(n),i=a.year,l=a.month,s=a.day,u=RegulateISODate(i,l,s,o);return CreateTemporalDate(i=u.year,l=u.month,s=u.day,r)},yearMonthFromFields:function yearMonthFromFields(e,t,r){var n=PrepareTemporalFields(e,["month","monthCode","year"],["year"]),o=ToTemporalOverflow(t),a=n=resolveNonLunisolarMonth(n),i=a.year,l=a.month,s=function RegulateISOYearMonth(e,t,r){var n=e,o=t;switch(r){case"reject":RejectISODate(n,o,1);break;case"constrain":var a=ConstrainISODate(n,o);n=a.year,o=a.month;}return {year:n,month:o}}(i,l,o);return CreateTemporalYearMonth(i=s.year,l=s.month,r,1)},monthDayFromFields:function monthDayFromFields(e,t,r){var n=PrepareTemporalFields(e,["day","month","monthCode","year"],["day"]),o=ToTemporalOverflow(t);if(void 0!==n.month&&void 0===n.year&&void 0===n.monthCode)throw new TypeError("either year or monthCode required with month");var a=void 0===n.monthCode,i=n=resolveNonLunisolarMonth(n),l=i.month,s=i.day,u=i.year,d=RegulateISODate(a?u:1972,l,s,o);return CreateTemporalMonthDay(l=d.month,s=d.day,r,1972)},fields:function fields(e){return e},fieldKeysToIgnore:function fieldKeysToIgnore(e){for(var t=new bt,r=0;r<e.length;r++){var n=e[r];Call(Bt,t,[n]),"month"===n?Call(Bt,t,["monthCode"]):"monthCode"===n&&Call(Bt,t,["month"]);}return _toConsumableArray(Call(Ot,t,[]))},dateAdd:function dateAdd(e,t,r,n,o,a,i){var d=GetSlot(e,l),c=GetSlot(e,s),m=GetSlot(e,u),h=AddISODate(d,c,m,t,r,n,o,a);return CreateTemporalDate(d=h.year,c=h.month,m=h.day,i)},dateUntil:function dateUntil(e,t,r){return DifferenceISODate(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),GetSlot(t,l),GetSlot(t,s),GetSlot(t,u),r)},year:function year(e){return GetSlot(e,l)},era:function era(){},eraYear:function eraYear(){},month:function month(e){return GetSlot(e,s)},monthCode:function monthCode(e){return buildMonthCode(GetSlot(e,s))},day:function day(e){return GetSlot(e,u)},dayOfWeek:function dayOfWeek(e){return DayOfWeek(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u))},dayOfYear:function dayOfYear(e){return DayOfYear(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u))},weekOfYear:function weekOfYear(e){return WeekOfYear(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u)).week},yearOfWeek:function yearOfWeek(e){return WeekOfYear(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u)).year},daysInWeek:function daysInWeek(){return 7},daysInMonth:function daysInMonth(e){return ISODaysInMonth(GetSlot(e,l),GetSlot(e,s))},daysInYear:function daysInYear(e){var t=e;return HasSlot(t,l)||(t=ToTemporalDate(t)),LeapYear(GetSlot(t,l))?366:365},monthsInYear:function monthsInYear(){return 12},inLeapYear:function inLeapYear(e){var t=e;return HasSlot(t,l)||(t=ToTemporalDate(t)),LeapYear(GetSlot(t,l))}};var Mt=function(){function OneObjectCache(e){if(_classCallCheck(this,OneObjectCache),this.map=new Map,this.calls=0,this.hits=0,this.misses=0,this.now=globalThis.performance?globalThis.performance.now():Date.now(),void 0!==e){var t,r=0,n=_createForOfIteratorHelper(e.map.entries());try{for(n.s();!(t=n.n()).done;){var o,a=t.value;if(++r>OneObjectCache.MAX_CACHE_ENTRIES)break;(o=this.map).set.apply(o,_toConsumableArray(a));}}catch(e){n.e(e);}finally{n.f();}}}return _createClass(OneObjectCache,[{key:"get",value:function get(e){var t=this.map.get(e);return t&&(this.hits++,this.report()),this.calls++,t}},{key:"set",value:function set(e,t){this.map.set(e,t),this.misses++,this.report();}},{key:"report",value:function report(){}},{key:"setObject",value:function setObject(e){if(OneObjectCache.objectMap.get(e))throw new RangeError("object already cached");OneObjectCache.objectMap.set(e,this),this.report();}}],[{key:"getCacheForObject",value:function getCacheForObject(e){var t=OneObjectCache.objectMap.get(e);return t||(t=new OneObjectCache,OneObjectCache.objectMap.set(e,t)),t}}]),OneObjectCache}();function toUtcIsoDateString(e){var t=e.isoYear,r=e.isoMonth,n=e.isoDay,o=ISOYearString(t),a=ISODateTimePartString(r),i=ISODateTimePartString(n);return "".concat(o,"-").concat(a,"-").concat(i,"T00:00Z")}function simpleDateDiff(e,t){return {years:e.year-t.year,months:e.month-t.month,days:e.day-t.day}}Mt.objectMap=new WeakMap,Mt.MAX_CACHE_ENTRIES=1e3;var At=function(){function HelperBase(){_classCallCheck(this,HelperBase),this.eraLength="short",this.hasEra=!0,this.erasBeginMidYear=!1;}return _createClass(HelperBase,[{key:"getFormatter",value:function getFormatter(){return void 0===this.formatter&&(this.formatter=new St("en-US-u-ca-".concat(this.id),{day:"numeric",month:"numeric",year:"numeric",era:this.eraLength,timeZone:"UTC"})),this.formatter}},{key:"isoToCalendarDate",value:function isoToCalendarDate(e,t){var r=this,n=e.year,o=e.month,a=e.day,i=JSON.stringify({func:"isoToCalendarDate",isoYear:n,isoMonth:o,isoDay:a,id:this.id}),l=t.get(i);if(l)return l;var s,u,d=this.getFormatter();try{u=toUtcIsoDateString({isoYear:n,isoMonth:o,isoDay:a}),s=d.formatToParts(new Date(u));}catch(e){throw new RangeError("Invalid ISO date: ".concat(JSON.stringify({isoYear:n,isoMonth:o,isoDay:a})))}var c,m={},h=_createForOfIteratorHelper(s);try{for(h.s();!(c=h.n()).done;){var f=c.value,p=f.type,v=f.value;if("year"===p&&(m.eraYear=+v),"relatedYear"===p&&(m.eraYear=+v),"month"===p){var T=/^([0-9]*)(.*?)$/.exec(v);if(!T||3!=T.length||!T[1]&&!T[2])throw new RangeError("Unexpected month: ".concat(v));if(m.month=T[1]?+T[1]:1,m.month<1)throw new RangeError("Invalid month ".concat(v," from ").concat(u,"[u-ca-").concat(this.id,"]")+" (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10527)");if(m.month>13)throw new RangeError("Invalid month ".concat(v," from ").concat(u,"[u-ca-").concat(this.id,"]")+" (probably due to https://bugs.chromium.org/p/v8/issues/detail?id=10529)");T[2]&&(m.monthExtra=T[2]);}"day"===p&&(m.day=+v),this.hasEra&&"era"===p&&null!=v&&""!==v&&(v=v.split(" (")[0],m.era=v.normalize("NFD").replace(/(?:(?![ \x2D0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])[\s\S])/g,"").replace(" ","-").toLowerCase());}}catch(e){h.e(e);}finally{h.f();}if(void 0===m.eraYear)throw new RangeError("Intl.DateTimeFormat.formatToParts lacks relatedYear in ".concat(this.id," calendar. Try Node 14+ or modern browsers."));if(this.reviseIntlEra){var y=this.reviseIntlEra(m,e),g=y.era,D=y.eraYear;m.era=g,m.eraYear=D;}this.checkIcuBugs&&this.checkIcuBugs(e);var S=this.adjustCalendarDate(m,t,"constrain",!0);if(void 0===S.year)throw new RangeError("Missing year converting ".concat(JSON.stringify(e)));if(void 0===S.month)throw new RangeError("Missing month converting ".concat(JSON.stringify(e)));if(void 0===S.day)throw new RangeError("Missing day converting ".concat(JSON.stringify(e)));return t.set(i,S),["constrain","reject"].forEach((function(n){var o=JSON.stringify({func:"calendarToIsoDate",year:S.year,month:S.month,day:S.day,overflow:n,id:r.id});t.set(o,e);})),S}},{key:"validateCalendarDate",value:function validateCalendarDate(e){var t=e.era,r=e.month,n=e.year,o=e.day,a=e.eraYear,i=e.monthCode;if(void 0!==e.monthExtra)throw new RangeError("Unexpected `monthExtra` value");if(void 0===n&&void 0===a)throw new TypeError("year or eraYear is required");if(void 0===r&&void 0===i)throw new TypeError("month or monthCode is required");if(void 0===o)throw new RangeError("Missing day");if(void 0!==i){if("string"!=typeof i)throw new RangeError("monthCode must be a string, not ".concat(_typeof(i)));if(!/^M([01]?\d)(L?)$/.test(i))throw new RangeError("Invalid monthCode: ".concat(i))}if(this.constantEra){if(void 0!==t&&t!==this.constantEra)throw new RangeError("era must be ".concat(this.constantEra,", not ").concat(t));if(void 0!==a&&void 0!==n&&a!==n)throw new RangeError("eraYear ".concat(a," does not match year ").concat(n))}if(this.hasEra&&void 0===e.era!=(void 0===e.eraYear))throw new RangeError("properties 'era' and 'eraYear' must be provided together")}},{key:"adjustCalendarDate",value:function adjustCalendarDate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"constrain";if("lunisolar"===this.calendarType)throw new RangeError("Override required for lunisolar calendars");var n=e;if(this.validateCalendarDate(n),this.constantEra){var o=n,a=o.year,i=o.eraYear;n=_objectSpread2(_objectSpread2({},n),{},{era:this.constantEra,year:void 0!==a?a:i,eraYear:void 0!==i?i:a});}var l=this.monthsInYear(n,t),s=n,u=s.month,d=s.monthCode,c=resolveNonLunisolarMonth(n,r,l);return u=c.month,d=c.monthCode,_objectSpread2(_objectSpread2({},n),{},{month:u,monthCode:d})}},{key:"regulateMonthDayNaive",value:function regulateMonthDayNaive(e,t,r){var n=this.monthsInYear(e,r),o=e.month,a=e.day;return "reject"===t?(RejectToRange(o,1,n),RejectToRange(a,1,this.maximumMonthLength(e))):(o=ConstrainToRange(o,1,n),a=ConstrainToRange(a,1,this.maximumMonthLength(_objectSpread2(_objectSpread2({},e),{},{month:o})))),_objectSpread2(_objectSpread2({},e),{},{month:o,day:a})}},{key:"calendarToIsoDate",value:function calendarToIsoDate(e){var t,r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"constrain",o=arguments.length>2?arguments[2]:void 0,a=e,i=this.adjustCalendarDate(e,o,n,!1),l=i=this.regulateMonthDayNaive(i,n,o),s=l.year,u=l.month,d=l.day,c=JSON.stringify({func:"calendarToIsoDate",year:s,month:u,day:d,overflow:n,id:this.id}),m=o.get(c);if(m)return m;if(void 0!==a.year&&void 0!==a.month&&void 0!==a.day&&(a.year!==i.year||a.month!==i.month||a.day!==i.day)&&(t=JSON.stringify({func:"calendarToIsoDate",year:a.year,month:a.month,day:a.day,overflow:n,id:this.id}),m=o.get(t)))return m;var h=this.estimateIsoDate({year:s,month:u,day:d}),f=function calculateSameMonthResult(e){var t=r.addDaysIso(h,e);if(i.day>r.minimumMonthLength(i))for(var a=r.isoToCalendarDate(t,o);a.month!==u||a.year!==s;){if("reject"===n)throw new RangeError("day ".concat(d," does not exist in month ").concat(u," of year ").concat(s));t=r.addDaysIso(t,-1),a=r.isoToCalendarDate(t,o);}return t},p=0,v=this.isoToCalendarDate(h,o),T=simpleDateDiff(i,v);if(0!==T.years||0!==T.months||0!==T.days){var y=365*T.years+30*T.months+T.days;h=this.addDaysIso(h,y),v=this.isoToCalendarDate(h,o),0===(T=simpleDateDiff(i,v)).years&&0===T.months?h=f(T.days):p=this.compareCalendarDates(i,v);}for(var g=8;p;){h=this.addDaysIso(h,p*g);var D=v;v=this.isoToCalendarDate(h,o);var S=p;if(p=this.compareCalendarDates(i,v))if(0===(T=simpleDateDiff(i,v)).years&&0===T.months)h=f(T.days),p=0;else if(S&&p!==S)if(g>1)g/=2;else {if("reject"===n)throw new RangeError("Can't find ISO date from calendar date: ".concat(JSON.stringify(_objectSpread2({},a))));var I=this.compareCalendarDates(v,D);I>0&&(h=this.addDaysIso(h,-1)),p=0;}}if(o.set(c,h),t&&o.set(t,h),void 0===i.year||void 0===i.month||void 0===i.day||void 0===i.monthCode||this.hasEra&&(void 0===i.era||void 0===i.eraYear))throw new RangeError("Unexpected missing property");return h}},{key:"temporalToCalendarDate",value:function temporalToCalendarDate(e,t){var r={year:GetSlot(e,l),month:GetSlot(e,s),day:GetSlot(e,u)};return this.isoToCalendarDate(r,t)}},{key:"compareCalendarDates",value:function compareCalendarDates(e,t){var r=PrepareTemporalFields(e,["day","month","year"],["day","month","year"]),n=PrepareTemporalFields(t,["day","month","year"],["day","month","year"]);return r.year!==n.year?ComparisonResult(r.year-n.year):r.month!==n.month?ComparisonResult(r.month-n.month):r.day!==n.day?ComparisonResult(r.day-n.day):0}},{key:"regulateDate",value:function regulateDate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"constrain",r=arguments.length>2?arguments[2]:void 0,n=this.calendarToIsoDate(e,t,r);return this.isoToCalendarDate(n,r)}},{key:"addDaysIso",value:function addDaysIso(e,t){return AddISODate(e.year,e.month,e.day,0,0,0,t,"constrain")}},{key:"addDaysCalendar",value:function addDaysCalendar(e,t,r){var n=this.calendarToIsoDate(e,"constrain",r),o=this.addDaysIso(n,t);return this.isoToCalendarDate(o,r)}},{key:"addMonthsCalendar",value:function addMonthsCalendar(e,t,r,n){for(var o=e,a=o.day,i=0,l=wt(t);i<l;i++){var s=o.month,u=o,d=t<0?-Math.max(a,this.daysInPreviousMonth(o,n)):this.daysInMonth(o,n),c=this.calendarToIsoDate(o,"constrain",n),m=this.addDaysIso(c,d);if(o=this.isoToCalendarDate(m,n),t>0)for(var h=this.monthsInYear(u,n);o.month-1!=s%h;)m=this.addDaysIso(m,-1),o=this.isoToCalendarDate(m,n);o.day!==a&&(o=this.regulateDate(_objectSpread2(_objectSpread2({},o),{},{day:a}),"constrain",n));}if("reject"===r&&o.day!==a)throw new RangeError("Day ".concat(a," does not exist in resulting calendar month"));return o}},{key:"addCalendar",value:function addCalendar(e,t,r,n){var o=t.years,a=void 0===o?0:o,i=t.months,l=void 0===i?0:i,s=t.weeks,u=void 0===s?0:s,d=t.days,c=void 0===d?0:d,m=e.year,h=e.day,f=e.monthCode,p=this.adjustCalendarDate({year:m+a,monthCode:f,day:h},n),v=this.addMonthsCalendar(p,l,r,n),T=c+7*u;return this.addDaysCalendar(v,T,n)}},{key:"untilCalendar",value:function untilCalendar(e,t,r,n){var o=0,a=0,i=0,l=0;switch(r){case"day":o=this.calendarDaysUntil(e,t,n);break;case"week":var s=this.calendarDaysUntil(e,t,n);a=(s-(o=s%7))/7;break;case"month":case"year":var u=this.compareCalendarDates(t,e);if(!u)return {years:0,months:0,weeks:0,days:0};var d=t.year-e.year,c=t.day-e.day;if("year"===r&&d){var m=0;t.monthCode>e.monthCode&&(m=1),t.monthCode<e.monthCode&&(m=-1),m||(m=Math.sign(c)),l=m*u<0?d-u:d;}var h,f=l?this.addCalendar(e,{years:l},"constrain",n):e;do{i+=u,h=f,(f=this.addMonthsCalendar(h,u,"constrain",n)).day!==e.day&&(f=this.regulateDate(_objectSpread2(_objectSpread2({},f),{},{day:e.day}),"constrain",n));}while(this.compareCalendarDates(t,f)*u>=0);i-=u,o=this.calendarDaysUntil(h,t,n);}return {years:l,months:i,weeks:a,days:o}}},{key:"daysInMonth",value:function daysInMonth(e,t){var r=e.day,n=this.maximumMonthLength(e),o=this.minimumMonthLength(e);if(o===n)return o;var a=r<=n-o?n:o,i=this.calendarToIsoDate(e,"constrain",t),l=this.addDaysIso(i,a),s=this.isoToCalendarDate(l,t),u=this.addDaysIso(l,-s.day);return this.isoToCalendarDate(u,t).day}},{key:"daysInPreviousMonth",value:function daysInPreviousMonth(e,t){var r=e.day,n=e.month,o=e.year,a={year:n>1?o:o-1,month:n,day:1},i=n>1?n-1:this.monthsInYear(a,t);a=_objectSpread2(_objectSpread2({},a),{},{month:i});var l=this.minimumMonthLength(a),s=this.maximumMonthLength(a);if(l===s)return s;var u=this.calendarToIsoDate(e,"constrain",t),d=this.addDaysIso(u,-r);return this.isoToCalendarDate(d,t).day}},{key:"startOfCalendarYear",value:function startOfCalendarYear(e){return {year:e.year,month:1,monthCode:"M01",day:1}}},{key:"startOfCalendarMonth",value:function startOfCalendarMonth(e){return {year:e.year,month:e.month,day:1}}},{key:"calendarDaysUntil",value:function calendarDaysUntil(e,t,r){var n=this.calendarToIsoDate(e,"constrain",r),o=this.calendarToIsoDate(t,"constrain",r);return this.isoDaysUntil(n,o)}},{key:"isoDaysUntil",value:function isoDaysUntil(e,t){return DifferenceISODate(e.year,e.month,e.day,t.year,t.month,t.day,"day").days}},{key:"monthDayFromFields",value:function monthDayFromFields(e,t,r){var n,o,a,i,l,s=e.monthCode,u=e.day;if(void 0===s){var d=e.year,c=e.era,m=e.eraYear;if(void 0===d&&(void 0===c||void 0===m))throw new TypeError("when `monthCode` is omitted, `year` (or `era` and `eraYear`) and `month` are required");var h=this.isoToCalendarDate(this.calendarToIsoDate(e,t,r),r);s=h.monthCode,u=h.day;}for(var f=this.isoToCalendarDate({year:1972,month:12,day:31},r),p=f.monthCode>s||f.monthCode===s&&f.day>=u?f.year:f.year-1,v=0;v<100;v++){var T=this.adjustCalendarDate({day:u,monthCode:s,year:p-v},r),y=this.calendarToIsoDate(T,"constrain",r),g=this.isoToCalendarDate(y,r);if(n=y.year,o=y.month,a=y.day,g.monthCode===s&&g.day===u)return {month:o,day:a,year:n};"constrain"===t&&(void 0===i||g.monthCode===i.monthCode&&g.day>i.day)&&(i=g,l=y);}if("constrain"===t&&void 0!==l)return l;throw new RangeError("No recent ".concat(this.id," year with monthCode ").concat(s," and day ").concat(u))}}]),HelperBase}(),Rt=function(e){_inherits(HebrewHelper,e);var t=_createSuper(HebrewHelper);function HebrewHelper(){var e;return _classCallCheck(this,HebrewHelper),(e=t.apply(this,arguments)).id="hebrew",e.calendarType="lunisolar",e.months={Tishri:{leap:1,regular:1,monthCode:"M01",days:30},Heshvan:{leap:2,regular:2,monthCode:"M02",days:{min:29,max:30}},Kislev:{leap:3,regular:3,monthCode:"M03",days:{min:29,max:30}},Tevet:{leap:4,regular:4,monthCode:"M04",days:29},Shevat:{leap:5,regular:5,monthCode:"M05",days:30},Adar:{leap:void 0,regular:6,monthCode:"M06",days:29},"Adar I":{leap:6,regular:void 0,monthCode:"M05L",days:30},"Adar II":{leap:7,regular:void 0,monthCode:"M06",days:29},Nisan:{leap:8,regular:7,monthCode:"M07",days:30},Iyar:{leap:9,regular:8,monthCode:"M08",days:29},Sivan:{leap:10,regular:9,monthCode:"M09",days:30},Tamuz:{leap:11,regular:10,monthCode:"M10",days:29},Av:{leap:12,regular:11,monthCode:"M11",days:30},Elul:{leap:13,regular:12,monthCode:"M12",days:29}},e.hasEra=!1,e}return _createClass(HebrewHelper,[{key:"inLeapYear",value:function inLeapYear(e){return (7*e.year+1)%19<7}},{key:"monthsInYear",value:function monthsInYear(e){return this.inLeapYear(e)?13:12}},{key:"minimumMonthLength",value:function minimumMonthLength(e){return this.minMaxMonthLength(e,"min")}},{key:"maximumMonthLength",value:function maximumMonthLength(e){return this.minMaxMonthLength(e,"max")}},{key:"minMaxMonthLength",value:function minMaxMonthLength(e,t){var r=e.month,n=e.year,o=this.getMonthCode(n,r),a=Gt(this.months).find((function(e){return e[1].monthCode===o}));if(void 0===a)throw new RangeError("unmatched Hebrew month: ".concat(r));var i=a[1].days;return "number"==typeof i?i:i[t]}},{key:"estimateIsoDate",value:function estimateIsoDate(e){return {year:e.year-3760,month:1,day:1}}},{key:"getMonthCode",value:function getMonthCode(e,t){return this.inLeapYear({year:e})?6===t?buildMonthCode(5,!0):buildMonthCode(t<6?t:t-1):buildMonthCode(t)}},{key:"adjustCalendarDate",value:function adjustCalendarDate(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"constrain",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.year,a=e.eraYear,i=e.month,l=e.monthCode,s=e.day,u=e.monthExtra;if(void 0===o&&void 0!==a&&(o=a),void 0===a&&void 0!==o&&(a=o),n){if(u){var d=this.months[u];if(!d)throw new RangeError("Unrecognized month from formatToParts: ".concat(u));i=this.inLeapYear({year:o})?d.leap:d.regular;}var c={year:o,month:i,day:s,era:void 0,eraYear:a,monthCode:l=this.getMonthCode(o,i)};return c}if(this.validateCalendarDate(e),void 0===i)if(l.endsWith("L")){if("M05L"!==l)throw new RangeError("Hebrew leap month must have monthCode M05L, not ".concat(l));if(i=6,!this.inLeapYear({year:o})){if("reject"===r)throw new RangeError("Hebrew monthCode M05L is invalid in year ".concat(o," which is not a leap year"));i=6,l="M06";}}else {i=monthCodeNumberPart(l),this.inLeapYear({year:o})&&i>=6&&i++;var m=this.monthsInYear({year:o});if(i<1||i>m)throw new RangeError("Invalid monthCode: ".concat(l))}else if("reject"===r?(RejectToRange(i,1,this.monthsInYear({year:o})),RejectToRange(s,1,this.maximumMonthLength({year:o,month:i}))):(i=ConstrainToRange(i,1,this.monthsInYear({year:o})),s=ConstrainToRange(s,1,this.maximumMonthLength({year:o,month:i}))),void 0===l)l=this.getMonthCode(o,i);else {var h=this.getMonthCode(o,i);if(h!==l)throw new RangeError("monthCode ".concat(l," doesn't correspond to month ").concat(i," in Hebrew year ").concat(o))}return _objectSpread2(_objectSpread2({},e),{},{day:s,month:i,monthCode:l,year:o,eraYear:a})}}]),HebrewHelper}(At),Pt=function(e){_inherits(IslamicBaseHelper,e);var t=_createSuper(IslamicBaseHelper);function IslamicBaseHelper(){var e;return _classCallCheck(this,IslamicBaseHelper),(e=t.apply(this,arguments)).calendarType="lunar",e.DAYS_PER_ISLAMIC_YEAR=354+11/30,e.DAYS_PER_ISO_YEAR=365.2425,e.constantEra="ah",e}return _createClass(IslamicBaseHelper,[{key:"inLeapYear",value:function inLeapYear(e,t){return 30===this.daysInMonth({year:e.year,month:12,day:1},t)}},{key:"monthsInYear",value:function monthsInYear(){return 12}},{key:"minimumMonthLength",value:function minimumMonthLength(){return 29}},{key:"maximumMonthLength",value:function maximumMonthLength(){return 30}},{key:"estimateIsoDate",value:function estimateIsoDate(e){var t=this.adjustCalendarDate(e).year;return {year:_t(t*this.DAYS_PER_ISLAMIC_YEAR/this.DAYS_PER_ISO_YEAR)+622,month:1,day:1}}}]),IslamicBaseHelper}(At),Yt=function(e){_inherits(IslamicHelper,e);var t=_createSuper(IslamicHelper);function IslamicHelper(){var e;return _classCallCheck(this,IslamicHelper),(e=t.apply(this,arguments)).id="islamic",e}return _createClass(IslamicHelper)}(Pt),jt=function(e){_inherits(IslamicUmalquraHelper,e);var t=_createSuper(IslamicUmalquraHelper);function IslamicUmalquraHelper(){var e;return _classCallCheck(this,IslamicUmalquraHelper),(e=t.apply(this,arguments)).id="islamic-umalqura",e}return _createClass(IslamicUmalquraHelper)}(Pt),Nt=function(e){_inherits(IslamicTblaHelper,e);var t=_createSuper(IslamicTblaHelper);function IslamicTblaHelper(){var e;return _classCallCheck(this,IslamicTblaHelper),(e=t.apply(this,arguments)).id="islamic-tbla",e}return _createClass(IslamicTblaHelper)}(Pt),Zt=function(e){_inherits(IslamicCivilHelper,e);var t=_createSuper(IslamicCivilHelper);function IslamicCivilHelper(){var e;return _classCallCheck(this,IslamicCivilHelper),(e=t.apply(this,arguments)).id="islamic-civil",e}return _createClass(IslamicCivilHelper)}(Pt),Jt=function(e){_inherits(IslamicRgsaHelper,e);var t=_createSuper(IslamicRgsaHelper);function IslamicRgsaHelper(){var e;return _classCallCheck(this,IslamicRgsaHelper),(e=t.apply(this,arguments)).id="islamic-rgsa",e}return _createClass(IslamicRgsaHelper)}(Pt),Lt=function(e){_inherits(IslamicCcHelper,e);var t=_createSuper(IslamicCcHelper);function IslamicCcHelper(){var e;return _classCallCheck(this,IslamicCcHelper),(e=t.apply(this,arguments)).id="islamicc",e}return _createClass(IslamicCcHelper)}(Pt),Ut=function(e){_inherits(PersianHelper,e);var t=_createSuper(PersianHelper);function PersianHelper(){var e;return _classCallCheck(this,PersianHelper),(e=t.apply(this,arguments)).id="persian",e.calendarType="solar",e.constantEra="ap",e}return _createClass(PersianHelper,[{key:"inLeapYear",value:function inLeapYear(e,t){return Yt.prototype.inLeapYear.call(this,e,t)}},{key:"monthsInYear",value:function monthsInYear(){return 12}},{key:"minimumMonthLength",value:function minimumMonthLength(e){var t=e.month;return 12===t?29:t<=6?31:30}},{key:"maximumMonthLength",value:function maximumMonthLength(e){var t=e.month;return 12===t?30:t<=6?31:30}},{key:"estimateIsoDate",value:function estimateIsoDate(e){return {year:this.adjustCalendarDate(e).year+621,month:1,day:1}}}]),PersianHelper}(At),Ht=function(e){_inherits(IndianHelper,e);var t=_createSuper(IndianHelper);function IndianHelper(){var e;return _classCallCheck(this,IndianHelper),(e=t.apply(this,arguments)).id="indian",e.calendarType="solar",e.constantEra="saka",e.months={1:{length:30,month:3,day:22,leap:{length:31,month:3,day:21}},2:{length:31,month:4,day:21},3:{length:31,month:5,day:22},4:{length:31,month:6,day:22},5:{length:31,month:7,day:23},6:{length:31,month:8,day:23},7:{length:30,month:9,day:23},8:{length:30,month:10,day:23},9:{length:30,month:11,day:22},10:{length:30,month:12,day:22},11:{length:30,month:1,nextYear:!0,day:21},12:{length:30,month:2,nextYear:!0,day:20}},e.vulnerableToBceBug="10/11/-79 Saka"!==new Date("0000-01-01T00:00Z").toLocaleDateString("en-US-u-ca-indian",{timeZone:"UTC"}),e}return _createClass(IndianHelper,[{key:"inLeapYear",value:function inLeapYear(e){return isGregorianLeapYear(e.year+78)}},{key:"monthsInYear",value:function monthsInYear(){return 12}},{key:"minimumMonthLength",value:function minimumMonthLength(e){return this.getMonthInfo(e).length}},{key:"maximumMonthLength",value:function maximumMonthLength(e){return this.getMonthInfo(e).length}},{key:"getMonthInfo",value:function getMonthInfo(e){var t=e.month,r=this.months[t];if(void 0===r)throw new RangeError("Invalid month: ".concat(t));return this.inLeapYear(e)&&r.leap&&(r=r.leap),r}},{key:"estimateIsoDate",value:function estimateIsoDate(e){var t=this.adjustCalendarDate(e),r=this.getMonthInfo(t);return AddISODate(t.year+78+(r.nextYear?1:0),r.month,r.day,0,0,0,t.day-1,"constrain")}},{key:"checkIcuBugs",value:function checkIcuBugs(e){if(this.vulnerableToBceBug&&e.year<1)throw new RangeError("calendar '".concat(this.id,"' is broken for ISO dates before 0001-01-01")+" (see https://bugs.chromium.org/p/v8/issues/detail?id=10529)")}}]),IndianHelper}(At);function isGregorianLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}for(var xt=function(e){_inherits(GregorianBaseHelper,e);var t=_createSuper(GregorianBaseHelper);function GregorianBaseHelper(e,r){var n;_classCallCheck(this,GregorianBaseHelper),(n=t.call(this)).calendarType="solar",n.v8IsVulnerableToJulianBug=new Date("+001001-01-01T00:00Z").toLocaleDateString("en-US-u-ca-japanese",{timeZone:"UTC"}).startsWith("12"),n.calendarIsVulnerableToJulianBug=!1,n.id=e;var o=function adjustEras(e){var t,r=e;if(0===r.length)throw new RangeError("Invalid era data: eras are required");if(1===r.length&&r[0].reverseOf)throw new RangeError("Invalid era data: anchor era cannot count years backwards");if(1===r.length&&!r[0].name)throw new RangeError("Invalid era data: at least one named era is required");if(r.filter((function(e){return null!=e.reverseOf})).length>1)throw new RangeError("Invalid era data: only one era can count years backwards");r.forEach((function(e){if(e.isAnchor||!e.anchorEpoch&&!e.reverseOf){if(t)throw new RangeError("Invalid era data: cannot have multiple anchor eras");t=e,e.anchorEpoch={year:e.hasYearZero?0:1};}else if(!e.name)throw new RangeError("If era name is blank, it must be the anchor era")})),(r=r.filter((function(e){return e.name}))).forEach((function(e){var t=e.reverseOf;if(t){var n=r.find((function(e){return e.name===t}));if(void 0===n)throw new RangeError("Invalid era data: unmatched reverseOf era: ".concat(t));e.reverseOf=n,e.anchorEpoch=n.anchorEpoch,e.isoEpoch=n.isoEpoch;}void 0===e.anchorEpoch.month&&(e.anchorEpoch.month=1),void 0===e.anchorEpoch.day&&(e.anchorEpoch.day=1);})),It.call(r,(function(e,t){if(e.reverseOf)return 1;if(t.reverseOf)return -1;if(!e.isoEpoch||!t.isoEpoch)throw new RangeError("Invalid era data: missing ISO epoch");return t.isoEpoch.year-e.isoEpoch.year}));var n=r[r.length-1].reverseOf;if(n&&n!==r[r.length-2])throw new RangeError("Invalid era data: invalid reverse-sign era");return r.forEach((function(e,t){e.genericName="era".concat(r.length-1-t);})),{eras:r,anchorEra:t||r[0]}}(r),a=o.eras,i=o.anchorEra;return n.anchorEra=i,n.eras=a,n}return _createClass(GregorianBaseHelper,[{key:"inLeapYear",value:function inLeapYear(e){return isGregorianLeapYear(this.estimateIsoDate({month:1,day:1,year:e.year}).year)}},{key:"monthsInYear",value:function monthsInYear(){return 12}},{key:"minimumMonthLength",value:function minimumMonthLength(e){var t=e.month;return 2===t?this.inLeapYear(e)?29:28:[4,6,9,11].indexOf(t)>=0?30:31}},{key:"maximumMonthLength",value:function maximumMonthLength(e){return this.minimumMonthLength(e)}},{key:"completeEraYear",value:function completeEraYear(e){var t=this,r=function checkField(t,r){var n=e[t];if(null!=n&&n!=r)throw new RangeError("Input ".concat(t," ").concat(n," doesn't match calculated value ").concat(r))},n=function eraFromYear(r){var n,o=_objectSpread2(_objectSpread2({},e),{},{year:r}),a=t.eras.find((function(e,a){if(a===t.eras.length-1){if(e.reverseOf){if(r>0)throw new RangeError("Signed year ".concat(r," is invalid for era ").concat(e.name));return n=e.anchorEpoch.year-r,!0}return n=r-e.anchorEpoch.year+(e.hasYearZero?0:1),!0}return t.compareCalendarDates(o,e.anchorEpoch)>=0&&(n=r-e.anchorEpoch.year+(e.hasYearZero?0:1),!0)}));if(!a)throw new RangeError("Year ".concat(r," was not matched by any era"));return {eraYear:n,era:a.name}},o=e.year,a=e.eraYear,i=e.era;if(null!=o){var l=n(o);a=l.eraYear,r("era",i=l.era),r("eraYear",a);}else {if(null==a)throw new RangeError("Either `year` or `eraYear` and `era` are required");var s=void 0===i?void 0:this.eras.find((function(e){return e.name===i||e.genericName===i}));if(!s)throw new RangeError("Era ".concat(i," (ISO year ").concat(a,") was not matched by any era"));if(a<1&&s.reverseOf)throw new RangeError("Years in ".concat(i," era must be positive, not ").concat(o));r("year",o=s.reverseOf?s.anchorEpoch.year-a:a+s.anchorEpoch.year-(s.hasYearZero?0:1));var u=n(o);a=u.eraYear,i=u.era;}return _objectSpread2(_objectSpread2({},e),{},{year:o,eraYear:a,era:i})}},{key:"adjustCalendarDate",value:function adjustCalendarDate(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"constrain",n=e,o=n,a=o.month,i=o.monthCode;return void 0===a&&(n=_objectSpread2(_objectSpread2({},n),{},{month:monthCodeNumberPart(i)})),this.validateCalendarDate(n),n=this.completeEraYear(n),_get(_getPrototypeOf(GregorianBaseHelper.prototype),"adjustCalendarDate",this).call(this,n,t,r)}},{key:"estimateIsoDate",value:function estimateIsoDate(e){var t=this.adjustCalendarDate(e),r=t.year,n=t.month,o=t.day,a=this.anchorEra;return RegulateISODate(r+a.isoEpoch.year-(a.hasYearZero?0:1),n,o,"constrain")}},{key:"checkIcuBugs",value:function checkIcuBugs(e){if(this.calendarIsVulnerableToJulianBug&&this.v8IsVulnerableToJulianBug&&CompareISODate(e.year,e.month,e.day,1582,10,15)<0)throw new RangeError("calendar '".concat(this.id,"' is broken for ISO dates before 1582-10-15")+" (see https://bugs.chromium.org/p/chromium/issues/detail?id=1173158)")}}]),GregorianBaseHelper}(At),qt=function(e){_inherits(OrthodoxBaseHelper,e);var t=_createSuper(OrthodoxBaseHelper);function OrthodoxBaseHelper(e,r){return _classCallCheck(this,OrthodoxBaseHelper),t.call(this,e,r)}return _createClass(OrthodoxBaseHelper,[{key:"inLeapYear",value:function inLeapYear(e){return (e.year+1)%4==0}},{key:"monthsInYear",value:function monthsInYear(){return 13}},{key:"minimumMonthLength",value:function minimumMonthLength(e){return 13===e.month?this.inLeapYear(e)?6:5:30}},{key:"maximumMonthLength",value:function maximumMonthLength(e){return this.minimumMonthLength(e)}}]),OrthodoxBaseHelper}(xt),Wt=function(e){_inherits(EthioaaHelper,e);var t=_createSuper(EthioaaHelper);function EthioaaHelper(){return _classCallCheck(this,EthioaaHelper),t.call(this,"ethioaa",[{name:"era0",isoEpoch:{year:-5492,month:7,day:17}}])}return _createClass(EthioaaHelper)}(qt),zt=function(e){_inherits(CopticHelper,e);var t=_createSuper(CopticHelper);function CopticHelper(){return _classCallCheck(this,CopticHelper),t.call(this,"coptic",[{name:"era1",isoEpoch:{year:284,month:8,day:29}},{name:"era0",reverseOf:"era1"}])}return _createClass(CopticHelper)}(qt),Vt=function(e){_inherits(EthiopicHelper,e);var t=_createSuper(EthiopicHelper);function EthiopicHelper(){return _classCallCheck(this,EthiopicHelper),t.call(this,"ethiopic",[{name:"era0",isoEpoch:{year:-5492,month:7,day:17}},{name:"era1",isoEpoch:{year:8,month:8,day:27},anchorEpoch:{year:5501}}])}return _createClass(EthiopicHelper)}(qt),Kt=function(e){_inherits(RocHelper,e);var t=_createSuper(RocHelper);function RocHelper(){var e;return _classCallCheck(this,RocHelper),(e=t.call(this,"roc",[{name:"minguo",isoEpoch:{year:1912,month:1,day:1}},{name:"before-roc",reverseOf:"minguo"}])).calendarIsVulnerableToJulianBug=!0,e}return _createClass(RocHelper)}(xt),$t=function(e){_inherits(BuddhistHelper,e);var t=_createSuper(BuddhistHelper);function BuddhistHelper(){var e;return _classCallCheck(this,BuddhistHelper),(e=t.call(this,"buddhist",[{name:"be",hasYearZero:!0,isoEpoch:{year:-543,month:1,day:1}}])).calendarIsVulnerableToJulianBug=!0,e}return _createClass(BuddhistHelper)}(xt),Xt=function(e){_inherits(GregoryHelper,e);var t=_createSuper(GregoryHelper);function GregoryHelper(){return _classCallCheck(this,GregoryHelper),t.call(this,"gregory",[{name:"ce",isoEpoch:{year:1,month:1,day:1}},{name:"bce",reverseOf:"ce"}])}return _createClass(GregoryHelper,[{key:"reviseIntlEra",value:function reviseIntlEra(e){var t=e.era;return "bc"!==t&&"b"!==t||(t="bce"),"ad"!==t&&"a"!==t||(t="ce"),{era:t,eraYear:e.eraYear}}}]),GregoryHelper}(xt),Qt=function(e){_inherits(JapaneseHelper,e);var t=_createSuper(JapaneseHelper);function JapaneseHelper(){var e;return _classCallCheck(this,JapaneseHelper),(e=t.call(this,"japanese",[{name:"reiwa",isoEpoch:{year:2019,month:5,day:1},anchorEpoch:{year:2019,month:5,day:1}},{name:"heisei",isoEpoch:{year:1989,month:1,day:8},anchorEpoch:{year:1989,month:1,day:8}},{name:"showa",isoEpoch:{year:1926,month:12,day:25},anchorEpoch:{year:1926,month:12,day:25}},{name:"taisho",isoEpoch:{year:1912,month:7,day:30},anchorEpoch:{year:1912,month:7,day:30}},{name:"meiji",isoEpoch:{year:1868,month:9,day:8},anchorEpoch:{year:1868,month:9,day:8}},{name:"ce",isoEpoch:{year:1,month:1,day:1}},{name:"bce",reverseOf:"ce"}])).calendarIsVulnerableToJulianBug=!0,e.eraLength="long",e.erasBeginMidYear=!0,e}return _createClass(JapaneseHelper,[{key:"reviseIntlEra",value:function reviseIntlEra(e,t){var r=e.era,n=e.eraYear,o=t.year;return this.eras.find((function(e){return e.name===r}))?{era:r,eraYear:n}:o<1?{era:"bce",eraYear:1-o}:{era:"ce",eraYear:o}}}]),JapaneseHelper}(xt),er=function(e){_inherits(ChineseBaseHelper,e);var t=_createSuper(ChineseBaseHelper);function ChineseBaseHelper(){var e;return _classCallCheck(this,ChineseBaseHelper),(e=t.apply(this,arguments)).calendarType="lunisolar",e.hasEra=!1,e}return _createClass(ChineseBaseHelper,[{key:"inLeapYear",value:function inLeapYear(e,t){var r=this.getMonthList(e.year,t);return 13===Gt(r).length}},{key:"monthsInYear",value:function monthsInYear(e,t){return this.inLeapYear(e,t)?13:12}},{key:"minimumMonthLength",value:function minimumMonthLength(){return 29}},{key:"maximumMonthLength",value:function maximumMonthLength(){return 30}},{key:"getMonthList",value:function getMonthList(e,t){var r=this;if(void 0===e)throw new TypeError("Missing year");var n=JSON.stringify({func:"getMonthList",calendarYear:e,id:this.id}),o=t.get(n);if(o)return o;var a=this.getFormatter(),i=function getCalendarDate(e,t){var n=toUtcIsoDateString({isoYear:e,isoMonth:2,isoDay:1}),o=new Date(n);o.setUTCDate(t+1);var i=a.formatToParts(o),l=i.find((function(e){return "month"===e.type})).value,s=+i.find((function(e){return "day"===e.type})).value,u=i.find((function(e){return "relatedYear"===e.type}));if(void 0===u)throw new RangeError("Intl.DateTimeFormat.formatToParts lacks relatedYear in ".concat(r.id," calendar. Try Node 14+ or modern browsers."));return {calendarMonthString:l,calendarDay:s,calendarYearToVerify:u=+u.value}},l=17,s=i(e,l),u=s.calendarMonthString,d=s.calendarDay,c=s.calendarYearToVerify;if("1"!==u){var m=i(e,l+=29);u=m.calendarMonthString,d=m.calendarDay;}l-=d-5;var h,f,p={},v=1,T=!1;do{var y=i(e,l);u=y.calendarMonthString,d=y.calendarDay,c=y.calendarYearToVerify,h&&(p[f].daysInMonth=h+30-d),c!==e?T=!0:(p[u]={monthIndex:v++},l+=30),h=d,f=u;}while(!T);return p[f].daysInMonth=h+30-d,t.set(n,p),p}},{key:"estimateIsoDate",value:function estimateIsoDate(e){var t=e.year,r=e.month;return {year:t,month:r>=12?12:r+1,day:1}}},{key:"adjustCalendarDate",value:function adjustCalendarDate(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"constrain",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.year,a=e.month,i=e.monthExtra,l=e.day,s=e.monthCode,u=e.eraYear;if(n){if(o=u,i&&"bis"!==i)throw new RangeError("Unexpected leap month suffix: ".concat(i));var d=buildMonthCode(a,void 0!==i),c="".concat(a).concat(i||""),m=this.getMonthList(o,t),h=m[c];if(void 0===h)throw new RangeError("Unmatched month ".concat(c," in Chinese year ").concat(o));return {year:o,month:a=h.monthIndex,day:l,era:void 0,eraYear:u,monthCode:d}}if(this.validateCalendarDate(e),void 0===o&&(o=u),void 0===u&&(u=o),void 0===a){var f=this.getMonthList(o,t),p=s.replace("L","bis").slice(1);"0"===p[0]&&(p=p.slice(1));var v=f[p];if(void 0===(a=v&&v.monthIndex)&&s.endsWith("L")&&"M13L"!=s&&"constrain"===r){var T=s.slice(1,-1);"0"===T[0]&&(T=T.slice(1)),(v=f[T])&&(a=v.monthIndex,s=buildMonthCode(T));}if(void 0===a)throw new RangeError("Unmatched month ".concat(s," in Chinese year ").concat(o))}else if(void 0===s){var y=this.getMonthList(o,t),g=Gt(y),D=g.length;"reject"===r?(RejectToRange(a,1,D),RejectToRange(l,1,this.maximumMonthLength())):(a=ConstrainToRange(a,1,D),l=ConstrainToRange(l,1,this.maximumMonthLength()));var S=g.find((function(e){return _slicedToArray(e,2)[1].monthIndex===a}));if(void 0===S)throw new RangeError("Invalid month ".concat(a," in Chinese year ").concat(o));s=buildMonthCode(S[0].replace("bis",""),-1!==S[0].indexOf("bis"));}else {var I=this.getMonthList(o,t),w=s.replace("L","bis").slice(1);"0"===w[0]&&(w=w.slice(1));var _=I[w];if(!_)throw new RangeError("Unmatched monthCode ".concat(s," in Chinese year ").concat(o));if(a!==_.monthIndex)throw new RangeError("monthCode ".concat(s," doesn't correspond to month ").concat(a," in Chinese year ").concat(o))}return _objectSpread2(_objectSpread2({},e),{},{year:o,eraYear:u,month:a,monthCode:s,day:l})}}]),ChineseBaseHelper}(At),tr=function(e){_inherits(ChineseHelper,e);var t=_createSuper(ChineseHelper);function ChineseHelper(){var e;return _classCallCheck(this,ChineseHelper),(e=t.apply(this,arguments)).id="chinese",e}return _createClass(ChineseHelper)}(er),rr=function(e){_inherits(DangiHelper,e);var t=_createSuper(DangiHelper);function DangiHelper(){var e;return _classCallCheck(this,DangiHelper),(e=t.apply(this,arguments)).id="dangi",e}return _createClass(DangiHelper)}(er),nr=function(){function NonIsoCalendar(e){_classCallCheck(this,NonIsoCalendar),this.helper=e;}return _createClass(NonIsoCalendar,[{key:"dateFromFields",value:function dateFromFields(e,t,r){var n=new Mt,o=PrepareTemporalFields(e,this.fields(["day","month","monthCode","year"]),[]),a=ToTemporalOverflow(t),i=this.helper.calendarToIsoDate(o,a,n),l=CreateTemporalDate(i.year,i.month,i.day,r);return n.setObject(l),l}},{key:"yearMonthFromFields",value:function yearMonthFromFields(e,t,r){var n=new Mt,o=PrepareTemporalFields(e,this.fields(["month","monthCode","year"]),[]),a=ToTemporalOverflow(t),i=this.helper.calendarToIsoDate(_objectSpread2(_objectSpread2({},o),{},{day:1}),a,n),l=CreateTemporalYearMonth(i.year,i.month,r,i.day);return n.setObject(l),l}},{key:"monthDayFromFields",value:function monthDayFromFields(e,t,r){var n=new Mt,o=PrepareTemporalFields(e,this.fields(["day","month","monthCode","year"]),[]),a=ToTemporalOverflow(t),i=this.helper.monthDayFromFields(o,a,n),l=i.year,s=CreateTemporalMonthDay(i.month,i.day,r,l);return n.setObject(s),s}},{key:"fields",value:function fields(e){var fields=e;return gt.call(fields,"year")&&(fields=[].concat(_toConsumableArray(fields),["era","eraYear"])),fields}},{key:"fieldKeysToIgnore",value:function fieldKeysToIgnore(e){for(var t=new bt,r=0;r<e.length;r++){var n=e[r];switch(Call(Bt,t,[n]),n){case"era":Call(Bt,t,["eraYear"]),Call(Bt,t,["year"]);break;case"eraYear":Call(Bt,t,["era"]),Call(Bt,t,["year"]);break;case"year":Call(Bt,t,["era"]),Call(Bt,t,["eraYear"]);break;case"month":Call(Bt,t,["monthCode"]),this.helper.erasBeginMidYear&&(Call(Bt,t,["era"]),Call(Bt,t,["eraYear"]));break;case"monthCode":Call(Bt,t,["month"]),this.helper.erasBeginMidYear&&(Call(Bt,t,["era"]),Call(Bt,t,["eraYear"]));break;case"day":this.helper.erasBeginMidYear&&(Call(Bt,t,["era"]),Call(Bt,t,["eraYear"]));}}return _toConsumableArray(Call(Ot,t,[]))}},{key:"dateAdd",value:function dateAdd(e,t,r,n,o,a,i){var l=Mt.getCacheForObject(e),s=this.helper.temporalToCalendarDate(e,l),u=this.helper.addCalendar(s,{years:t,months:r,weeks:n,days:o},a,l),d=this.helper.calendarToIsoDate(u,"constrain",l),c=CreateTemporalDate(d.year,d.month,d.day,i);return new Mt(l).setObject(c),c}},{key:"dateUntil",value:function dateUntil(e,t,r){var n=Mt.getCacheForObject(e),o=Mt.getCacheForObject(t),a=this.helper.temporalToCalendarDate(e,n),i=this.helper.temporalToCalendarDate(t,o);return this.helper.untilCalendar(a,i,r,n)}},{key:"year",value:function year(e){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).year}},{key:"month",value:function month(e){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).month}},{key:"day",value:function day(e){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).day}},{key:"era",value:function era(e){if(this.helper.hasEra){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).era}}},{key:"eraYear",value:function eraYear(e){if(this.helper.hasEra){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).eraYear}}},{key:"monthCode",value:function monthCode(e){var t=Mt.getCacheForObject(e);return this.helper.temporalToCalendarDate(e,t).monthCode}},{key:"dayOfWeek",value:function dayOfWeek(e){return Ft.iso8601.dayOfWeek(e)}},{key:"dayOfYear",value:function dayOfYear(e){var t=Mt.getCacheForObject(e),r=this.helper.isoToCalendarDate(e,t),n=this.helper.startOfCalendarYear(r);return this.helper.calendarDaysUntil(n,r,t)+1}},{key:"weekOfYear",value:function weekOfYear(e){return Ft.iso8601.weekOfYear(e)}},{key:"yearOfWeek",value:function yearOfWeek(e){return Ft.iso8601.yearOfWeek(e)}},{key:"daysInWeek",value:function daysInWeek(e){return Ft.iso8601.daysInWeek(e)}},{key:"daysInMonth",value:function daysInMonth(e){var t=Mt.getCacheForObject(e),r=this.helper.temporalToCalendarDate(e,t),n=this.helper.maximumMonthLength(r);if(n===this.helper.minimumMonthLength(r))return n;var o=this.helper.startOfCalendarMonth(r),a=this.helper.addMonthsCalendar(o,1,"constrain",t);return this.helper.calendarDaysUntil(o,a,t)}},{key:"daysInYear",value:function daysInYear(e){var t=e;HasSlot(t,l)||(t=ToTemporalDate(t));var r=Mt.getCacheForObject(t),n=this.helper.temporalToCalendarDate(t,r),o=this.helper.startOfCalendarYear(n),a=this.helper.addCalendar(o,{years:1},"constrain",r);return this.helper.calendarDaysUntil(o,a,r)}},{key:"monthsInYear",value:function monthsInYear(e){var t=Mt.getCacheForObject(e),r=this.helper.temporalToCalendarDate(e,t);return this.helper.monthsInYear(r,t)}},{key:"inLeapYear",value:function inLeapYear(e){var t=e;HasSlot(t,l)||(t=ToTemporalDate(t));var r=Mt.getCacheForObject(t),n=this.helper.temporalToCalendarDate(t,r);return this.helper.inLeapYear(n,r)}}]),NonIsoCalendar}(),or=0,ar=[Rt,Ut,Vt,Wt,zt,tr,rr,Kt,Ht,$t,Xt,Qt,Yt,jt,Nt,Zt,Jt,Lt];or<ar.length;or++){var ir=new(ar[or]);Ft[ir.id]=new nr(ir);}var lr=function(){function PlainDate(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"iso8601";_classCallCheck(this,PlainDate);var o=ToIntegerWithTruncation(e),a=ToIntegerWithTruncation(t),i=ToIntegerWithTruncation(r),l=ToTemporalCalendarSlotValue(n);CreateTemporalDateSlots(this,o,a,i,l);}return _createClass(PlainDate,[{key:"calendarId",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return ToTemporalCalendarIdentifier(GetSlot(this,v))}},{key:"era",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarEra(GetSlot(this,v),this)}},{key:"eraYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarEraYear(GetSlot(this,v),this)}},{key:"year",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarYear(GetSlot(this,v),this)}},{key:"month",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarMonth(GetSlot(this,v),this)}},{key:"monthCode",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarMonthCode(GetSlot(this,v),this)}},{key:"day",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDay(GetSlot(this,v),this)}},{key:"dayOfWeek",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDayOfWeek(GetSlot(this,v),this)}},{key:"dayOfYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDayOfYear(GetSlot(this,v),this)}},{key:"weekOfYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarWeekOfYear(GetSlot(this,v),this)}},{key:"yearOfWeek",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarYearOfWeek(GetSlot(this,v),this)}},{key:"daysInWeek",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDaysInWeek(GetSlot(this,v),this)}},{key:"daysInMonth",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDaysInMonth(GetSlot(this,v),this)}},{key:"daysInYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarDaysInYear(GetSlot(this,v),this)}},{key:"monthsInYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarMonthsInYear(GetSlot(this,v),this)}},{key:"inLeapYear",get:function get(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return CalendarInLeapYear(GetSlot(this,v),this)}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=GetSlot(this,v),o=CalendarFields(n,["day","month","monthCode","year"]),a=PrepareTemporalFields(this,o,[]),i=PrepareTemporalFields(e,o,"partial");return CalendarDateFromFields(n,a=PrepareTemporalFields(a=CalendarMergeFields(n,a,i),o,[]),r)}},{key:"withCalendar",value:function withCalendar(e){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var t=ToTemporalCalendarSlotValue(e);return new PlainDate(GetSlot(this,l),GetSlot(this,s),GetSlot(this,u),t)}},{key:"add",value:function add(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var r=ToTemporalDuration(e),n=GetOptionsObject(t);return CalendarDateAdd(GetSlot(this,v),this,r,n)}},{key:"subtract",value:function subtract(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var r=CreateNegatedTemporalDuration(ToTemporalDuration(e)),n=GetOptionsObject(t);return CalendarDateAdd(GetSlot(this,v),this,r,n)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainDate("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainDate("since",this,e,t)}},{key:"equals",value:function equals(e){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");for(var t=ToTemporalDate(e),r=0,n=[l,s,u];r<n.length;r++){var o=n[r];if(GetSlot(this,o)!==GetSlot(t,o))return !1}return CalendarEquals(GetSlot(this,v),GetSlot(t,v))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToCalendarNameOption(t);return TemporalDateToString(this,r)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return TemporalDateToString(this)}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.PlainDate")}},{key:"toPlainDateTime",value:function toPlainDateTime(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var t=GetSlot(this,l),r=GetSlot(this,s),n=GetSlot(this,u),o=GetSlot(this,v);if(void 0===e)return CreateTemporalDateTime(t,r,n,0,0,0,0,0,0,o);var a=ToTemporalTime(e),i=GetSlot(a,d),T=GetSlot(a,c),y=GetSlot(a,m),g=GetSlot(a,h),D=GetSlot(a,f),S=GetSlot(a,p);return CreateTemporalDateTime(t,r,n,i,T,y,g,D,S,o)}},{key:"toZonedDateTime",value:function toZonedDateTime(e){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var t,r;if(IsObject(e))if(IsTemporalTimeZone(e))t=e;else {var n=e.timeZone;void 0===n?t=ToTemporalTimeZoneSlotValue(e):(t=ToTemporalTimeZoneSlotValue(n),r=e.plainTime);}else t=ToTemporalTimeZoneSlotValue(e);var o=GetSlot(this,l),i=GetSlot(this,s),T=GetSlot(this,u),y=GetSlot(this,v),g=0,D=0,S=0,I=0,w=0,_=0;return void 0!==r&&(g=GetSlot(r=ToTemporalTime(r),d),D=GetSlot(r,c),S=GetSlot(r,m),I=GetSlot(r,h),w=GetSlot(r,f),_=GetSlot(r,p)),CreateTemporalZonedDateTime(GetSlot(GetInstantFor(t,CreateTemporalDateTime(o,i,T,g,D,S,I,w,_,y),"compatible"),a),t,y)}},{key:"toPlainYearMonth",value:function toPlainYearMonth(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarYearMonthFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["monthCode","year"]),[]))}},{key:"toPlainMonthDay",value:function toPlainMonthDay(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarMonthDayFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["day","monthCode"]),[]))}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return {calendar:GetSlot(this,v),isoDay:GetSlot(this,u),isoMonth:GetSlot(this,s),isoYear:GetSlot(this,l)}}},{key:"getCalendar",value:function getCalendar(){if(!IsTemporalDate(this))throw new TypeError("invalid receiver");return ToTemporalCalendarObject(GetSlot(this,v))}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t);return IsTemporalDate(e)?(ToTemporalOverflow(r),CreateTemporalDate(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),GetSlot(e,v))):ToTemporalDate(e,r)}},{key:"compare",value:function compare(e,t){var r=ToTemporalDate(e),n=ToTemporalDate(t);return CompareISODate(GetSlot(r,l),GetSlot(r,s),GetSlot(r,u),GetSlot(n,l),GetSlot(n,s),GetSlot(n,u))}}]),PlainDate}();MakeIntrinsicClass(lr,"Temporal.PlainDate");var sr=function(){function PlainDateTime(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"iso8601";_classCallCheck(this,PlainDateTime);var d=ToIntegerWithTruncation(e),c=ToIntegerWithTruncation(t),m=ToIntegerWithTruncation(r),h=void 0===n?0:ToIntegerWithTruncation(n),f=void 0===o?0:ToIntegerWithTruncation(o),p=void 0===a?0:ToIntegerWithTruncation(a),v=void 0===i?0:ToIntegerWithTruncation(i),T=void 0===l?0:ToIntegerWithTruncation(l),y=void 0===s?0:ToIntegerWithTruncation(s),g=ToTemporalCalendarSlotValue(u);CreateTemporalDateTimeSlots(this,d,c,m,h,f,p,v,T,y,g);}return _createClass(PlainDateTime,[{key:"calendarId",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return ToTemporalCalendarIdentifier(GetSlot(this,v))}},{key:"year",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarYear(GetSlot(this,v),this)}},{key:"month",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarMonth(GetSlot(this,v),this)}},{key:"monthCode",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarMonthCode(GetSlot(this,v),this)}},{key:"day",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDay(GetSlot(this,v),this)}},{key:"hour",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,d)}},{key:"minute",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,c)}},{key:"second",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,m)}},{key:"millisecond",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,h)}},{key:"microsecond",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,f)}},{key:"nanosecond",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return GetSlot(this,p)}},{key:"era",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarEra(GetSlot(this,v),this)}},{key:"eraYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarEraYear(GetSlot(this,v),this)}},{key:"dayOfWeek",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDayOfWeek(GetSlot(this,v),this)}},{key:"dayOfYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDayOfYear(GetSlot(this,v),this)}},{key:"weekOfYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarWeekOfYear(GetSlot(this,v),this)}},{key:"yearOfWeek",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarYearOfWeek(GetSlot(this,v),this)}},{key:"daysInWeek",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInWeek(GetSlot(this,v),this)}},{key:"daysInYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInYear(GetSlot(this,v),this)}},{key:"daysInMonth",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInMonth(GetSlot(this,v),this)}},{key:"monthsInYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarMonthsInYear(GetSlot(this,v),this)}},{key:"inLeapYear",get:function get(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return CalendarInLeapYear(GetSlot(this,v),this)}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=GetSlot(this,v),o=CalendarFields(n,["day","hour","microsecond","millisecond","minute","month","monthCode","nanosecond","second","year"]),a=PrepareTemporalFields(this,o,[]),i=PrepareTemporalFields(e,o,"partial"),l=InterpretTemporalDateTimeFields(n,a=PrepareTemporalFields(a=CalendarMergeFields(n,a,i),o,[]),r),s=l.year,u=l.month,d=l.day,c=l.hour,m=l.minute,h=l.second,f=l.millisecond,p=l.microsecond,T=l.nanosecond;return CreateTemporalDateTime(s,u,d,c,m,h,f,p,T,n)}},{key:"withPlainTime",value:function withPlainTime(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var t=GetSlot(this,l),r=GetSlot(this,s),n=GetSlot(this,u),o=GetSlot(this,v);if(void 0===e)return CreateTemporalDateTime(t,r,n,0,0,0,0,0,0,o);var a=ToTemporalTime(e),i=GetSlot(a,d),T=GetSlot(a,c),y=GetSlot(a,m),g=GetSlot(a,h),D=GetSlot(a,f),S=GetSlot(a,p);return CreateTemporalDateTime(t,r,n,i,T,y,g,D,S,o)}},{key:"withPlainDate",value:function withPlainDate(e){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e),r=GetSlot(t,l),n=GetSlot(t,s),o=GetSlot(t,u),a=GetSlot(t,v);return CreateTemporalDateTime(r,n,o,GetSlot(this,d),GetSlot(this,c),GetSlot(this,m),GetSlot(this,h),GetSlot(this,f),GetSlot(this,p),a=ConsolidateCalendars(GetSlot(this,v),a))}},{key:"withCalendar",value:function withCalendar(e){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var t=ToTemporalCalendarSlotValue(e);return new PlainDateTime(GetSlot(this,l),GetSlot(this,s),GetSlot(this,u),GetSlot(this,d),GetSlot(this,c),GetSlot(this,m),GetSlot(this,h),GetSlot(this,f),GetSlot(this,p),t)}},{key:"add",value:function add(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainDateTime("add",this,e,t)}},{key:"subtract",value:function subtract(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainDateTime("subtract",this,e,t)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainDateTime("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainDateTime("since",this,e,t)}},{key:"round",value:function round(e){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");if(void 0===e)throw new TypeError("options parameter is required");var t="string"==typeof e?CreateOnePropObject("smallestUnit",e):GetOptionsObject(e),r=ToTemporalRoundingIncrement(t),n=ToTemporalRoundingMode(t,"halfExpand"),o=GetTemporalUnit(t,"smallestUnit","time",ze,["day"]),a={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[o];ValidateTemporalRoundingIncrement(r,a,1===a);var i=GetSlot(this,l),T=GetSlot(this,s),y=GetSlot(this,u),g=GetSlot(this,d),D=GetSlot(this,c),S=GetSlot(this,m),I=GetSlot(this,h),w=GetSlot(this,f),_=GetSlot(this,p),C=RoundISODateTime(i,T,y,g,D,S,I,w,_,r,o,n);return CreateTemporalDateTime(i=C.year,T=C.month,y=C.day,g=C.hour,D=C.minute,S=C.second,I=C.millisecond,w=C.microsecond,_=C.nanosecond,GetSlot(this,v))}},{key:"equals",value:function equals(e){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");for(var t=ToTemporalDateTime(e),r=0,n=[l,s,u,d,c,m,h,f,p];r<n.length;r++){var o=n[r];if(GetSlot(this,o)!==GetSlot(t,o))return !1}return CalendarEquals(GetSlot(this,v),GetSlot(t,v))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToCalendarNameOption(t),n=ToFractionalSecondDigits(t),o=ToTemporalRoundingMode(t,"trunc"),a=GetTemporalUnit(t,"smallestUnit","time",void 0);if("hour"===a)throw new RangeError('smallestUnit must be a time unit other than "hour"');var i=ToSecondsStringPrecisionRecord(a,n),l=i.precision,s=i.unit,u=i.increment;return TemporalDateTimeToString(this,l,r,{unit:s,increment:u,roundingMode:o})}},{key:"toJSON",value:function toJSON(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return TemporalDateTimeToString(this,"auto")}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.PlainDateTime")}},{key:"toZonedDateTime",value:function toZonedDateTime(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var r=ToTemporalTimeZoneSlotValue(e),n=GetOptionsObject(t),o=ToTemporalDisambiguation(n),i=GetInstantFor(r,this,o);return CreateTemporalZonedDateTime(GetSlot(i,a),r,GetSlot(this,v))}},{key:"toPlainDate",value:function toPlainDate(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return TemporalDateTimeToDate(this)}},{key:"toPlainYearMonth",value:function toPlainYearMonth(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarYearMonthFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["monthCode","year"]),[]))}},{key:"toPlainMonthDay",value:function toPlainMonthDay(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarMonthDayFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["day","monthCode"]),[]))}},{key:"toPlainTime",value:function toPlainTime(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return TemporalDateTimeToTime(this)}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return {calendar:GetSlot(this,v),isoDay:GetSlot(this,u),isoHour:GetSlot(this,d),isoMicrosecond:GetSlot(this,f),isoMillisecond:GetSlot(this,h),isoMinute:GetSlot(this,c),isoMonth:GetSlot(this,s),isoNanosecond:GetSlot(this,p),isoSecond:GetSlot(this,m),isoYear:GetSlot(this,l)}}},{key:"getCalendar",value:function getCalendar(){if(!IsTemporalDateTime(this))throw new TypeError("invalid receiver");return ToTemporalCalendarObject(GetSlot(this,v))}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t);return IsTemporalDateTime(e)?(ToTemporalOverflow(r),CreateTemporalDateTime(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),GetSlot(e,d),GetSlot(e,c),GetSlot(e,m),GetSlot(e,h),GetSlot(e,f),GetSlot(e,p),GetSlot(e,v))):ToTemporalDateTime(e,r)}},{key:"compare",value:function compare(e,t){for(var r=ToTemporalDateTime(e),n=ToTemporalDateTime(t),o=0,a=[l,s,u,d,c,m,h,f,p];o<a.length;o++){var i=a[o],v=GetSlot(r,i),T=GetSlot(n,i);if(v!==T)return ComparisonResult(v-T)}return 0}}]),PlainDateTime}();MakeIntrinsicClass(sr,"Temporal.PlainDateTime");var ur=function(){function Duration(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;_classCallCheck(this,Duration);var d=void 0===e?0:ToIntegerIfIntegral(e),c=void 0===t?0:ToIntegerIfIntegral(t),m=void 0===r?0:ToIntegerIfIntegral(r),h=void 0===n?0:ToIntegerIfIntegral(n),f=void 0===o?0:ToIntegerIfIntegral(o),p=void 0===a?0:ToIntegerIfIntegral(a),v=void 0===i?0:ToIntegerIfIntegral(i),T=void 0===l?0:ToIntegerIfIntegral(l),y=void 0===s?0:ToIntegerIfIntegral(s),g=void 0===u?0:ToIntegerIfIntegral(u);RejectDuration(d,c,m,h,f,p,v,T,y,g),j(this),SetSlot(this,I,d),SetSlot(this,w,c),SetSlot(this,_,m),SetSlot(this,C,h),SetSlot(this,G,f),SetSlot(this,b,p),SetSlot(this,E,v),SetSlot(this,B,T),SetSlot(this,O,y),SetSlot(this,k,g);}return _createClass(Duration,[{key:"years",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,I)}},{key:"months",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,w)}},{key:"weeks",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,_)}},{key:"days",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,C)}},{key:"hours",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,G)}},{key:"minutes",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,b)}},{key:"seconds",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,E)}},{key:"milliseconds",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,B)}},{key:"microseconds",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,O)}},{key:"nanoseconds",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return GetSlot(this,k)}},{key:"sign",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return DurationSign(GetSlot(this,I),GetSlot(this,w),GetSlot(this,_),GetSlot(this,C),GetSlot(this,G),GetSlot(this,b),GetSlot(this,E),GetSlot(this,B),GetSlot(this,O),GetSlot(this,k))}},{key:"blank",get:function get(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return 0===DurationSign(GetSlot(this,I),GetSlot(this,w),GetSlot(this,_),GetSlot(this,C),GetSlot(this,G),GetSlot(this,b),GetSlot(this,E),GetSlot(this,B),GetSlot(this,O),GetSlot(this,k))}},{key:"with",value:function _with(e){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");var t=PrepareTemporalFields(e,["days","hours","microseconds","milliseconds","minutes","months","nanoseconds","seconds","weeks","years"],"partial"),r=t.years,n=void 0===r?GetSlot(this,I):r,o=t.months,a=void 0===o?GetSlot(this,w):o,i=t.weeks,l=void 0===i?GetSlot(this,_):i,s=t.days,u=void 0===s?GetSlot(this,C):s,d=t.hours,c=void 0===d?GetSlot(this,G):d,m=t.minutes,h=void 0===m?GetSlot(this,b):m,f=t.seconds,p=void 0===f?GetSlot(this,E):f,v=t.milliseconds,T=void 0===v?GetSlot(this,B):v,y=t.microseconds,g=void 0===y?GetSlot(this,O):y,D=t.nanoseconds;return new Duration(n,a,l,u,c,h,p,T,g,void 0===D?GetSlot(this,k):D)}},{key:"negated",value:function negated(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return CreateNegatedTemporalDuration(this)}},{key:"abs",value:function abs(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return new Duration(Math.abs(GetSlot(this,I)),Math.abs(GetSlot(this,w)),Math.abs(GetSlot(this,_)),Math.abs(GetSlot(this,C)),Math.abs(GetSlot(this,G)),Math.abs(GetSlot(this,b)),Math.abs(GetSlot(this,E)),Math.abs(GetSlot(this,B)),Math.abs(GetSlot(this,O)),Math.abs(GetSlot(this,k)))}},{key:"add",value:function add(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromDuration("add",this,e,t)}},{key:"subtract",value:function subtract(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromDuration("subtract",this,e,t)}},{key:"round",value:function round(e){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");if(void 0===e)throw new TypeError("options parameter is required");var r=GetSlot(this,I),n=GetSlot(this,w),o=GetSlot(this,_),a=GetSlot(this,C),i=GetSlot(this,G),l=GetSlot(this,b),s=GetSlot(this,E),u=GetSlot(this,B),d=GetSlot(this,O),c=GetSlot(this,k),m=DefaultTemporalLargestUnit(r,n,o,a,i,l,s,u,d,c),h="string"==typeof e?CreateOnePropObject("smallestUnit",e):GetOptionsObject(e),f=GetTemporalUnit(h,"largestUnit","datetime",void 0,["auto"]),p=ToRelativeTemporalObject(h),T=ToTemporalRoundingIncrement(h),y=ToTemporalRoundingMode(h,"halfExpand"),g=GetTemporalUnit(h,"smallestUnit","datetime",void 0),D=!0;g||(D=!1,g="nanosecond"),m=LargerOfTwoTemporalUnits(m,g);var S=!0;if(f||(S=!1,f=m),"auto"===f&&(f=m),!D&&!S)throw new RangeError("at least one of smallestUnit or largestUnit is required");if(LargerOfTwoTemporalUnits(f,g)!==f)throw new RangeError("largestUnit ".concat(f," cannot be smaller than smallestUnit ").concat(g));var M={hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[g];void 0!==M&&ValidateTemporalRoundingIncrement(T,M,!1);var A=UnbalanceDurationRelative(r,n,o,a,f,p),R=RoundDuration(r=A.years,n=A.months,o=A.weeks,a=A.days,i,l,s,u,d,c,T,g,y,p),P=AdjustRoundedDurationDays(r=R.years,n=R.months,o=R.weeks,a=R.days,i=R.hours,l=R.minutes,s=R.seconds,u=R.milliseconds,d=R.microseconds,c=R.nanoseconds,T,g,y,p);r=P.years,n=P.months,o=P.weeks;var Y=BalanceDuration(a=P.days,i=P.hours,l=P.minutes,s=P.seconds,u=P.milliseconds,d=P.microseconds,c=P.nanoseconds,f,p);a=Y.days,i=Y.hours,l=Y.minutes,s=Y.seconds,u=Y.milliseconds,d=Y.microseconds,c=Y.nanoseconds;var j=function BalanceDurationRelative(e,r,n,o,a,i){var l=GetIntrinsic("%Temporal.Duration%"),s=DurationSign(e,r,n,o,0,0,0,0,0,0);if(0===s)return {years:e,months:r,weeks:n,days:o};var u,d,c=t.BigInt(s),m=t.BigInt(e),h=t.BigInt(r),f=t.BigInt(n),p=t.BigInt(o);i&&(u=GetSlot(d=ToTemporalDate(i),v));var T=new l(s),y=new l(0,s),g=new l(0,0,s);switch(a){case"year":if(!u)throw new RangeError("a starting point is required for years balancing");var D,S,I,_="string"!=typeof u?GetMethod(u,"dateAdd"):void 0,C=MoveRelativeDate(u,d,T,_);for(D=C.relativeTo,S=C.days;t.greaterThanOrEqual(abs(p),t.BigInt(le(S)));){p=t.subtract(p,t.BigInt(S)),m=t.add(m,c);var G=MoveRelativeDate(u,d=D,T,_);D=G.relativeTo,S=G.days;}var b=MoveRelativeDate(u,d,y,_);for(D=b.relativeTo,I=b.days;t.greaterThanOrEqual(abs(p),t.BigInt(le(I)));){p=t.subtract(p,t.BigInt(I)),h=t.add(h,c);var E=MoveRelativeDate(u,d=D,y,_);D=E.relativeTo,I=E.days;}D=CalendarDateAdd(u,d,T,void 0,_);var B="string"!=typeof u?GetMethod(u,"dateUntil"):void 0,O=ve(null);O.largestUnit="month";for(var k=CalendarDateUntil(u,d,D,O,B),M=GetSlot(k,w);t.greaterThanOrEqual(abs(h),t.BigInt(le(M)));){h=t.subtract(h,t.BigInt(M)),m=t.add(m,c),D=CalendarDateAdd(u,d=D,T,void 0,_);var A=ve(null);A.largestUnit="month",M=GetSlot(k=CalendarDateUntil(u,d,D,A,B),w);}break;case"month":if(!u)throw new RangeError("a starting point is required for months balancing");var R,P,Y="string"!=typeof u?GetMethod(u,"dateAdd"):void 0,j=MoveRelativeDate(u,d,y,Y);for(R=j.relativeTo,P=j.days;t.greaterThanOrEqual(abs(p),t.BigInt(le(P)));){p=t.subtract(p,t.BigInt(P)),h=t.add(h,c);var N=MoveRelativeDate(u,d=R,y,Y);R=N.relativeTo,P=N.days;}break;case"week":if(!u)throw new RangeError("a starting point is required for weeks balancing");var Z,J,L="string"!=typeof u?GetMethod(u,"dateAdd"):void 0,U=MoveRelativeDate(u,d,g,L);for(Z=U.relativeTo,J=U.days;t.greaterThanOrEqual(abs(p),t.BigInt(le(J)));){p=t.subtract(p,t.BigInt(J)),f=t.add(f,c);var H=MoveRelativeDate(u,d=Z,g,L);Z=H.relativeTo,J=H.days;}}return {years:t.toNumber(m),months:t.toNumber(h),weeks:t.toNumber(f),days:t.toNumber(p)}}(r,n,o,a,f,p);return new Duration(r=j.years,n=j.months,o=j.weeks,a=j.days,i,l,s,u,d,c)}},{key:"total",value:function total(e){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");var t=GetSlot(this,I),r=GetSlot(this,w),n=GetSlot(this,_),o=GetSlot(this,C),a=GetSlot(this,G),i=GetSlot(this,b),l=GetSlot(this,E),s=GetSlot(this,B),u=GetSlot(this,O),d=GetSlot(this,k);if(void 0===e)throw new TypeError("options argument is required");var c,m="string"==typeof e?CreateOnePropObject("unit",e):GetOptionsObject(e),h=ToRelativeTemporalObject(m),f=GetTemporalUnit(m,"unit","datetime",ze),p=UnbalanceDurationRelative(t,r,n,o,f,h);t=p.years,r=p.months,n=p.weeks,o=p.days,IsTemporalZonedDateTime(h)&&(c=MoveRelativeZonedDateTime(h,t,r,n,0));var v=BalancePossiblyInfiniteDuration(o,a,i,l,s,u,d,f,c);if("positive overflow"===v)return 1/0;if("negative overflow"===v)return -1/0;var total=RoundDuration(t,r,n,o=v.days,a=v.hours,i=v.minutes,l=v.seconds,s=v.milliseconds,u=v.microseconds,d=v.nanoseconds,1,f,"trunc",h).total;return total}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToFractionalSecondDigits(t),n=ToTemporalRoundingMode(t,"trunc"),o=GetTemporalUnit(t,"smallestUnit","time",void 0);if("hour"===o||"minute"===o)throw new RangeError('smallestUnit must be a time unit other than "hours" or "minutes"');var a=ToSecondsStringPrecisionRecord(o,r),i=a.precision,l=a.unit,s=a.increment;return TemporalDurationToString(this,i,{unit:l,increment:s,roundingMode:n})}},{key:"toJSON",value:function toJSON(){if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return TemporalDurationToString(this)}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalDuration(this))throw new TypeError("invalid receiver");return "undefined"!=typeof Intl&&void 0!==Intl.DurationFormat?new Intl.DurationFormat(e,t).format(this):(console.warn("Temporal.Duration.prototype.toLocaleString() requires Intl.DurationFormat."),TemporalDurationToString(this))}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() to compare Temporal.Duration")}}],[{key:"from",value:function from(e){return IsTemporalDuration(e)?new Duration(GetSlot(e,I),GetSlot(e,w),GetSlot(e,_),GetSlot(e,C),GetSlot(e,G),GetSlot(e,b),GetSlot(e,E),GetSlot(e,B),GetSlot(e,O),GetSlot(e,k)):ToTemporalDuration(e)}},{key:"compare",value:function compare(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=ToTemporalDuration(e),a=ToTemporalDuration(r),i=GetOptionsObject(n),l=ToRelativeTemporalObject(i),s=GetSlot(o,I),u=GetSlot(o,w),d=GetSlot(o,_),c=GetSlot(o,C),m=GetSlot(o,G),h=GetSlot(o,b),f=GetSlot(o,E),p=GetSlot(o,B),v=GetSlot(o,O),T=GetSlot(o,k),y=GetSlot(a,I),g=GetSlot(a,w),D=GetSlot(a,_),S=GetSlot(a,C),M=GetSlot(a,G),A=GetSlot(a,b),R=GetSlot(a,E),P=GetSlot(a,B),Y=GetSlot(a,O),j=GetSlot(a,k),N=CalculateOffsetShift(l,s,u,d,c),Z=CalculateOffsetShift(l,y,g,D,S);if(0!==s||0!==y||0!==u||0!==g||0!==d||0!==D){var J=UnbalanceDurationRelative(s,u,d,c,"day",l);c=J.days;var L=UnbalanceDurationRelative(y,g,D,S,"day",l);S=L.days;}var U=TotalDurationNanoseconds(c,m,h,f,p,v,T,N),H=TotalDurationNanoseconds(S,M,A,R,P,Y,j,Z);return ComparisonResult(t.toNumber(t.subtract(U,H)))}}]),Duration}();MakeIntrinsicClass(ur,"Temporal.Duration");var dr=Object.create,cr=function(){function PlainMonthDay(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1972;_classCallCheck(this,PlainMonthDay);var o=ToIntegerWithTruncation(e),a=ToIntegerWithTruncation(t),i=ToTemporalCalendarSlotValue(r),l=ToIntegerWithTruncation(n);CreateTemporalMonthDaySlots(this,o,a,i,l);}return _createClass(PlainMonthDay,[{key:"monthCode",get:function get(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return CalendarMonthCode(GetSlot(this,v),this)}},{key:"day",get:function get(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return CalendarDay(GetSlot(this,v),this)}},{key:"calendarId",get:function get(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return ToTemporalCalendarIdentifier(GetSlot(this,v))}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=GetSlot(this,v),o=CalendarFields(n,["day","month","monthCode","year"]),a=PrepareTemporalFields(this,o,[]),i=PrepareTemporalFields(e,o,"partial");return CalendarMonthDayFromFields(n,a=PrepareTemporalFields(a=CalendarMergeFields(n,a,i),o,[]),r)}},{key:"equals",value:function equals(e){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");for(var t=ToTemporalMonthDay(e),r=0,n=[s,u,l];r<n.length;r++){var o=n[r];if(GetSlot(this,o)!==GetSlot(t,o))return !1}return CalendarEquals(GetSlot(this,v),GetSlot(t,v))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToCalendarNameOption(t);return TemporalMonthDayToString(this,r)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return TemporalMonthDayToString(this)}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use equals() to compare Temporal.PlainMonthDay")}},{key:"toPlainDate",value:function toPlainDate(e){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("argument should be an object");var t=GetSlot(this,v),r=CalendarFields(t,["day","monthCode"]),n=PrepareTemporalFields(this,r,[]),o=CalendarFields(t,["year"]),a=CalendarMergeFields(t,n,PrepareTemporalFields(e,o,[]));a=PrepareTemporalFields(a,_toConsumableArray(new Set([].concat(_toConsumableArray(r),_toConsumableArray(o)))),[]);var i=dr(null);return i.overflow="reject",CalendarDateFromFields(t,a,i)}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return {calendar:GetSlot(this,v),isoDay:GetSlot(this,u),isoMonth:GetSlot(this,s),isoYear:GetSlot(this,l)}}},{key:"getCalendar",value:function getCalendar(){if(!IsTemporalMonthDay(this))throw new TypeError("invalid receiver");return ToTemporalCalendarObject(GetSlot(this,v))}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t);return IsTemporalMonthDay(e)?(ToTemporalOverflow(r),CreateTemporalMonthDay(GetSlot(e,s),GetSlot(e,u),GetSlot(e,v),GetSlot(e,l))):ToTemporalMonthDay(e,r)}}]),PlainMonthDay}();MakeIntrinsicClass(cr,"Temporal.PlainMonthDay");var mr=function instant(){return new(GetIntrinsic("%Temporal.Instant%"))(Ke())},hr=function plainDateTime(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DefaultTimeZone(),r=ToTemporalTimeZoneSlotValue(t),n=ToTemporalCalendarSlotValue(e),o=mr();return GetPlainDateTimeFor(r,o,n)},fr=function plainDateTimeISO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DefaultTimeZone(),t=ToTemporalTimeZoneSlotValue(e),r=mr();return GetPlainDateTimeFor(t,r,"iso8601")},pr=function zonedDateTime(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DefaultTimeZone(),r=ToTemporalTimeZoneSlotValue(t),n=ToTemporalCalendarSlotValue(e);return CreateTemporalZonedDateTime(Ke(),r,n)},vr=_defineProperty({instant:mr,plainDateTime:hr,plainDateTimeISO:fr,plainDate:function plainDate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DefaultTimeZone();return TemporalDateTimeToDate(hr(e,t))},plainDateISO:function plainDateISO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DefaultTimeZone();return TemporalDateTimeToDate(fr(e))},plainTimeISO:function plainTimeISO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DefaultTimeZone();return TemporalDateTimeToTime(fr(e))},timeZoneId:function timeZoneId(){return DefaultTimeZone()},zonedDateTime:pr,zonedDateTimeISO:function zonedDateTimeISO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:DefaultTimeZone();return pr("iso8601",e)}},Symbol.toStringTag,"Temporal.Now");Object.defineProperty(vr,Symbol.toStringTag,{value:"Temporal.Now",writable:!1,enumerable:!1,configurable:!0});var Tr=Object.assign;function TemporalTimeToString(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=GetSlot(e,d),o=GetSlot(e,c),a=GetSlot(e,m),i=GetSlot(e,h),l=GetSlot(e,f),s=GetSlot(e,p);if(r){var u=r.unit,v=r.increment,T=r.roundingMode,y=RoundTime(n,o,a,i,l,s,v,u,T);n=y.hour,o=y.minute,a=y.second,i=y.millisecond,l=y.microsecond,s=y.nanosecond;}var g=ISODateTimePartString(n),D=ISODateTimePartString(o),S=FormatSecondsStringPart(a,i,l,s,t);return "".concat(g,":").concat(D).concat(S)}var yr=function(){function PlainTime(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;_classCallCheck(this,PlainTime);var i=void 0===e?0:ToIntegerWithTruncation(e),l=void 0===t?0:ToIntegerWithTruncation(t),s=void 0===r?0:ToIntegerWithTruncation(r),u=void 0===n?0:ToIntegerWithTruncation(n),v=void 0===o?0:ToIntegerWithTruncation(o),T=void 0===a?0:ToIntegerWithTruncation(a);RejectTime(i,l,s,u,v,T),j(this),SetSlot(this,d,i),SetSlot(this,c,l),SetSlot(this,m,s),SetSlot(this,h,u),SetSlot(this,f,v),SetSlot(this,p,T);}return _createClass(PlainTime,[{key:"hour",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,d)}},{key:"minute",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,c)}},{key:"second",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,m)}},{key:"millisecond",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,h)}},{key:"microsecond",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,f)}},{key:"nanosecond",get:function get(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return GetSlot(this,p)}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalTime(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=ToTemporalOverflow(r),o=ToTemporalTimeRecord(e,"partial"),a=ToTemporalTimeRecord(this),i=Tr(a,o),l=i.hour,s=i.minute,u=i.second,d=i.millisecond,c=i.microsecond,m=i.nanosecond,h=RegulateTime(l,s,u,d,c,m,n);return new PlainTime(l=h.hour,s=h.minute,u=h.second,d=h.millisecond,c=h.microsecond,m=h.nanosecond)}},{key:"add",value:function add(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainTime("add",this,e)}},{key:"subtract",value:function subtract(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainTime("subtract",this,e)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainTime("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainTime("since",this,e,t)}},{key:"round",value:function round(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");if(void 0===e)throw new TypeError("options parameter is required");var t="string"==typeof e?CreateOnePropObject("smallestUnit",e):GetOptionsObject(e),r=ToTemporalRoundingIncrement(t),n=ToTemporalRoundingMode(t,"halfExpand"),o=GetTemporalUnit(t,"smallestUnit","time",ze);ValidateTemporalRoundingIncrement(r,{hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[o],!1);var a=GetSlot(this,d),i=GetSlot(this,c),l=GetSlot(this,m),s=GetSlot(this,h),u=GetSlot(this,f),v=GetSlot(this,p),T=RoundTime(a,i,l,s,u,v,r,o,n);return new PlainTime(a=T.hour,i=T.minute,l=T.second,s=T.millisecond,u=T.microsecond,v=T.nanosecond)}},{key:"equals",value:function equals(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");for(var t=ToTemporalTime(e),r=0,n=[d,c,m,h,f,p];r<n.length;r++){var o=n[r];if(GetSlot(this,o)!==GetSlot(t,o))return !1}return !0}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalTime(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToFractionalSecondDigits(t),n=ToTemporalRoundingMode(t,"trunc"),o=GetTemporalUnit(t,"smallestUnit","time",void 0);if("hour"===o)throw new RangeError('smallestUnit must be a time unit other than "hour"');var a=ToSecondsStringPrecisionRecord(o,r),i=a.precision,l=a.unit,s=a.increment;return TemporalTimeToString(this,i,{unit:l,increment:s,roundingMode:n})}},{key:"toJSON",value:function toJSON(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return TemporalTimeToString(this,"auto")}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.PlainTime")}},{key:"toPlainDateTime",value:function toPlainDateTime(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e),r=GetSlot(t,l),n=GetSlot(t,s),o=GetSlot(t,u),a=GetSlot(t,v);return CreateTemporalDateTime(r,n,o,GetSlot(this,d),GetSlot(this,c),GetSlot(this,m),GetSlot(this,h),GetSlot(this,f),GetSlot(this,p),a)}},{key:"toZonedDateTime",value:function toZonedDateTime(e){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");var t=e.plainDate;if(void 0===t)throw new TypeError("missing date property");var r=ToTemporalDate(t),n=e.timeZone;if(void 0===n)throw new TypeError("missing timeZone property");var o=ToTemporalTimeZoneSlotValue(n),i=GetSlot(r,l),T=GetSlot(r,s),y=GetSlot(r,u),g=GetSlot(r,v),D=GetSlot(this,d),S=GetSlot(this,c),I=GetSlot(this,m),w=GetSlot(this,h),_=GetSlot(this,f),C=GetSlot(this,p);return CreateTemporalZonedDateTime(GetSlot(GetInstantFor(o,new(GetIntrinsic("%Temporal.PlainDateTime%"))(i,T,y,D,S,I,w,_,C,g),"compatible"),a),o,g)}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalTime(this))throw new TypeError("invalid receiver");return {isoHour:GetSlot(this,d),isoMicrosecond:GetSlot(this,f),isoMillisecond:GetSlot(this,h),isoMinute:GetSlot(this,c),isoNanosecond:GetSlot(this,p),isoSecond:GetSlot(this,m)}}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t),n=ToTemporalOverflow(r);return IsTemporalTime(e)?new PlainTime(GetSlot(e,d),GetSlot(e,c),GetSlot(e,m),GetSlot(e,h),GetSlot(e,f),GetSlot(e,p)):ToTemporalTime(e,n)}},{key:"compare",value:function compare(e,t){for(var r=ToTemporalTime(e),n=ToTemporalTime(t),o=0,a=[d,c,m,h,f,p];o<a.length;o++){var i=a[o],l=GetSlot(r,i),s=GetSlot(n,i);if(l!==s)return ComparisonResult(l-s)}return 0}}]),PlainTime}();MakeIntrinsicClass(yr,"Temporal.PlainTime");var gr=function(){function TimeZone(e){if(_classCallCheck(this,TimeZone),arguments.length<1)throw new RangeError("missing argument: identifier is required");var t=GetCanonicalTimeZoneIdentifier(e);j(this),SetSlot(this,i,t);}return _createClass(TimeZone,[{key:"id",get:function get(){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");return GetSlot(this,i)}},{key:"getOffsetNanosecondsFor",value:function getOffsetNanosecondsFor(e){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var t=ToTemporalInstant(e),r=GetSlot(this,i);return IsTimeZoneOffsetString(r)?ParseTimeZoneOffsetString(r):GetNamedTimeZoneOffsetNanoseconds(r,GetSlot(t,a))}},{key:"getOffsetStringFor",value:function getOffsetStringFor(e){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");return GetOffsetStringFor(this,ToTemporalInstant(e))}},{key:"getPlainDateTimeFor",value:function getPlainDateTimeFor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"iso8601";if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var r=ToTemporalInstant(e),n=ToTemporalCalendarSlotValue(t);return GetPlainDateTimeFor(this,r,n)}},{key:"getInstantFor",value:function getInstantFor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var r=ToTemporalDateTime(e),n=GetOptionsObject(t),o=ToTemporalDisambiguation(n);return GetInstantFor(this,r,o)}},{key:"getPossibleInstantsFor",value:function getPossibleInstantsFor(e){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var r=ToTemporalDateTime(e),n=GetIntrinsic("%Temporal.Instant%"),o=GetSlot(this,i);if(IsTimeZoneOffsetString(o)){var a=GetUTCEpochNanoseconds(GetSlot(r,l),GetSlot(r,s),GetSlot(r,u),GetSlot(r,d),GetSlot(r,c),GetSlot(r,m),GetSlot(r,h),GetSlot(r,f),GetSlot(r,p));if(null===a)throw new RangeError("DateTime outside of supported range");var v=ParseTimeZoneOffsetString(o);return [new n(t.subtract(a,t.BigInt(v)))]}var T=function GetNamedTimeZoneEpochNanoseconds(e,r,n,o,a,i,l,s,u,d){var c=GetUTCEpochNanoseconds(r,n,o,a,i,l,s,u,d);if(null===c)throw new RangeError("DateTime outside of supported range");var m=t.subtract(c,Oe);t.lessThan(m,Fe)&&(m=c);var h=t.add(c,Oe);t.greaterThan(h,ke)&&(h=c);var f=GetNamedTimeZoneOffsetNanoseconds(e,m),p=GetNamedTimeZoneOffsetNanoseconds(e,h);return (f===p?[f]:[f,p]).map((function(m){var h=t.subtract(c,t.BigInt(m)),f=GetNamedTimeZoneDateTimeParts(e,h);if(r===f.year&&n===f.month&&o===f.day&&a===f.hour&&i===f.minute&&l===f.second&&s===f.millisecond&&u===f.microsecond&&d===f.nanosecond)return h})).filter((function(e){return void 0!==e}))}(o,GetSlot(r,l),GetSlot(r,s),GetSlot(r,u),GetSlot(r,d),GetSlot(r,c),GetSlot(r,m),GetSlot(r,h),GetSlot(r,f),GetSlot(r,p));return T.map((function(e){return new n(e)}))}},{key:"getNextTransition",value:function getNextTransition(e){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var t=ToTemporalInstant(e),r=GetSlot(this,i);if(IsTimeZoneOffsetString(r)||"UTC"===r)return null;var n=GetSlot(t,a),o=GetIntrinsic("%Temporal.Instant%");return null===(n=GetNamedTimeZoneNextTransition(r,n))?null:new o(n)}},{key:"getPreviousTransition",value:function getPreviousTransition(e){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");var t=ToTemporalInstant(e),r=GetSlot(this,i);if(IsTimeZoneOffsetString(r)||"UTC"===r)return null;var n=GetSlot(t,a),o=GetIntrinsic("%Temporal.Instant%");return null===(n=GetNamedTimeZonePreviousTransition(r,n))?null:new o(n)}},{key:"toString",value:function toString(){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");return GetSlot(this,i)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalTimeZone(this))throw new TypeError("invalid receiver");return GetSlot(this,i)}}],[{key:"from",value:function from(e){return ToTemporalTimeZoneObject(ToTemporalTimeZoneSlotValue(e))}}]),TimeZone}();MakeIntrinsicClass(gr,"Temporal.TimeZone"),DefineIntrinsic("Temporal.TimeZone.prototype.getOffsetNanosecondsFor",gr.prototype.getOffsetNanosecondsFor),DefineIntrinsic("Temporal.TimeZone.prototype.getPossibleInstantsFor",gr.prototype.getPossibleInstantsFor);var Dr=Object.create,Sr=function(){function PlainYearMonth(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;_classCallCheck(this,PlainYearMonth);var o=ToIntegerWithTruncation(e),a=ToIntegerWithTruncation(t),i=ToTemporalCalendarSlotValue(r),l=ToIntegerWithTruncation(n);CreateTemporalYearMonthSlots(this,o,a,i,l);}return _createClass(PlainYearMonth,[{key:"year",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarYear(GetSlot(this,v),this)}},{key:"month",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarMonth(GetSlot(this,v),this)}},{key:"monthCode",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarMonthCode(GetSlot(this,v),this)}},{key:"calendarId",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return ToTemporalCalendarIdentifier(GetSlot(this,v))}},{key:"era",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarEra(GetSlot(this,v),this)}},{key:"eraYear",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarEraYear(GetSlot(this,v),this)}},{key:"daysInMonth",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarDaysInMonth(GetSlot(this,v),this)}},{key:"daysInYear",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarDaysInYear(GetSlot(this,v),this)}},{key:"monthsInYear",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarMonthsInYear(GetSlot(this,v),this)}},{key:"inLeapYear",get:function get(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return CalendarInLeapYear(GetSlot(this,v),this)}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid argument");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=GetSlot(this,v),o=CalendarFields(n,["month","monthCode","year"]),a=PrepareTemporalFields(this,o,[]),i=PrepareTemporalFields(e,o,"partial");return CalendarYearMonthFromFields(n,a=PrepareTemporalFields(a=CalendarMergeFields(n,a,i),o,[]),r)}},{key:"add",value:function add(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainYearMonth("add",this,e,t)}},{key:"subtract",value:function subtract(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromPlainYearMonth("subtract",this,e,t)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainYearMonth("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return DifferenceTemporalPlainYearMonth("since",this,e,t)}},{key:"equals",value:function equals(e){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");for(var t=ToTemporalYearMonth(e),r=0,n=[l,s,u];r<n.length;r++){var o=n[r];if(GetSlot(this,o)!==GetSlot(t,o))return !1}return CalendarEquals(GetSlot(this,v),GetSlot(t,v))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToCalendarNameOption(t);return TemporalYearMonthToString(this,r)}},{key:"toJSON",value:function toJSON(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return TemporalYearMonthToString(this)}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return new vt(e,t).format(this)}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.PlainYearMonth")}},{key:"toPlainDate",value:function toPlainDate(e){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("argument should be an object");var t=GetSlot(this,v),r=CalendarFields(t,["monthCode","year"]),n=PrepareTemporalFields(this,r,[]),o=CalendarFields(t,["day"]),a=CalendarMergeFields(t,n,PrepareTemporalFields(e,o,[]));a=PrepareTemporalFields(a,_toConsumableArray(new Set([].concat(_toConsumableArray(r),_toConsumableArray(o)))),[]);var i=Dr(null);return i.overflow="reject",CalendarDateFromFields(t,a,i)}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return {calendar:GetSlot(this,v),isoDay:GetSlot(this,u),isoMonth:GetSlot(this,s),isoYear:GetSlot(this,l)}}},{key:"getCalendar",value:function getCalendar(){if(!IsTemporalYearMonth(this))throw new TypeError("invalid receiver");return ToTemporalCalendarObject(GetSlot(this,v))}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t);return IsTemporalYearMonth(e)?(ToTemporalOverflow(r),CreateTemporalYearMonth(GetSlot(e,l),GetSlot(e,s),GetSlot(e,v),GetSlot(e,u))):ToTemporalYearMonth(e,r)}},{key:"compare",value:function compare(e,t){var r=ToTemporalYearMonth(e),n=ToTemporalYearMonth(t);return CompareISODate(GetSlot(r,l),GetSlot(r,s),GetSlot(r,u),GetSlot(n,l),GetSlot(n,s),GetSlot(n,u))}}]),PlainYearMonth}();MakeIntrinsicClass(Sr,"Temporal.PlainYearMonth");var Ir=vt.prototype.resolvedOptions,wr=Object.create,_r=function(){function ZonedDateTime(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"iso8601";if(_classCallCheck(this,ZonedDateTime),arguments.length<1)throw new TypeError("missing argument: epochNanoseconds is required");var n=ToBigInt(e),o=ToTemporalTimeZoneSlotValue(t),a=ToTemporalCalendarSlotValue(r);CreateTemporalZonedDateTimeSlots(this,n,o,a);}return _createClass(ZonedDateTime,[{key:"calendarId",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToTemporalCalendarIdentifier(GetSlot(this,v))}},{key:"timeZoneId",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToTemporalTimeZoneIdentifier(GetSlot(this,S))}},{key:"year",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarYear(GetSlot(this,v),dateTime(this))}},{key:"month",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarMonth(GetSlot(this,v),dateTime(this))}},{key:"monthCode",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarMonthCode(GetSlot(this,v),dateTime(this))}},{key:"day",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDay(GetSlot(this,v),dateTime(this))}},{key:"hour",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),d)}},{key:"minute",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),c)}},{key:"second",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),m)}},{key:"millisecond",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),h)}},{key:"microsecond",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),f)}},{key:"nanosecond",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetSlot(dateTime(this),p)}},{key:"era",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarEra(GetSlot(this,v),dateTime(this))}},{key:"eraYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarEraYear(GetSlot(this,v),dateTime(this))}},{key:"epochSeconds",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,a);return t.toNumber(BigIntFloorDiv(e,Ge))}},{key:"epochMilliseconds",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,a);return t.toNumber(BigIntFloorDiv(e,Ce))}},{key:"epochMicroseconds",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToBigIntExternal(BigIntFloorDiv(GetSlot(this,a),_e))}},{key:"epochNanoseconds",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToBigIntExternal(GetSlot(this,a))}},{key:"dayOfWeek",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDayOfWeek(GetSlot(this,v),dateTime(this))}},{key:"dayOfYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDayOfYear(GetSlot(this,v),dateTime(this))}},{key:"weekOfYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarWeekOfYear(GetSlot(this,v),dateTime(this))}},{key:"yearOfWeek",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarYearOfWeek(GetSlot(this,v),dateTime(this))}},{key:"hoursInDay",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=dateTime(this),r=GetIntrinsic("%Temporal.PlainDateTime%"),n=GetSlot(e,l),o=GetSlot(e,s),i=GetSlot(e,u),d=new r(n,o,i,0,0,0,0,0,0),c=AddISODate(n,o,i,0,0,0,1,"reject"),m=new r(c.year,c.month,c.day,0,0,0,0,0,0),h=GetSlot(this,S),f=GetSlot(GetInstantFor(h,d,"compatible"),a),p=GetSlot(GetInstantFor(h,m,"compatible"),a);return BigIntDivideToNumber(t.subtract(p,f),Ee)}},{key:"daysInWeek",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInWeek(GetSlot(this,v),dateTime(this))}},{key:"daysInMonth",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInMonth(GetSlot(this,v),dateTime(this))}},{key:"daysInYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarDaysInYear(GetSlot(this,v),dateTime(this))}},{key:"monthsInYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarMonthsInYear(GetSlot(this,v),dateTime(this))}},{key:"inLeapYear",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return CalendarInLeapYear(GetSlot(this,v),dateTime(this))}},{key:"offset",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetOffsetStringFor(GetSlot(this,S),GetSlot(this,D))}},{key:"offsetNanoseconds",get:function get(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return GetOffsetNanosecondsFor(GetSlot(this,S),GetSlot(this,D))}},{key:"with",value:function _with(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");if(!IsObject(e))throw new TypeError("invalid zoned-date-time-like");RejectTemporalLikeObject(e);var r=GetOptionsObject(t),n=GetSlot(this,v),o=CalendarFields(n,["day","hour","microsecond","millisecond","minute","month","monthCode","nanosecond","second","year"]);o.push("offset");var a=PrepareTemporalFields(this,o,["offset"]),i=PrepareTemporalFields(e,o,"partial");a=PrepareTemporalFields(a=CalendarMergeFields(n,a,i),o,["offset"]);var l=ToTemporalDisambiguation(r),s=ToTemporalOffset(r,"prefer"),u=InterpretTemporalDateTimeFields(n,a,r),d=u.year,c=u.month,m=u.day,h=u.hour,f=u.minute,p=u.second,T=u.millisecond,y=u.microsecond,g=u.nanosecond,D=ParseTimeZoneOffsetString(a.offset),I=GetSlot(this,S),w=InterpretISODateTimeOffset(d,c,m,h,f,p,T,y,g,"option",D,I,l,s,!1);return CreateTemporalZonedDateTime(w,I,n)}},{key:"withPlainDate",value:function withPlainDate(e){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var t=ToTemporalDate(e),r=GetSlot(t,l),n=GetSlot(t,s),o=GetSlot(t,u),i=GetSlot(t,v),T=dateTime(this),y=GetSlot(T,d),g=GetSlot(T,c),D=GetSlot(T,m),I=GetSlot(T,h),w=GetSlot(T,f),_=GetSlot(T,p);i=ConsolidateCalendars(GetSlot(this,v),i);var C=GetSlot(this,S);return CreateTemporalZonedDateTime(GetSlot(GetInstantFor(C,new(GetIntrinsic("%Temporal.PlainDateTime%"))(r,n,o,y,g,D,I,w,_,i),"compatible"),a),C,i)}},{key:"withPlainTime",value:function withPlainTime(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var t=GetIntrinsic("%Temporal.PlainTime%"),r=void 0===e?new t:ToTemporalTime(e),n=dateTime(this),o=GetSlot(n,l),i=GetSlot(n,s),T=GetSlot(n,u),y=GetSlot(this,v),g=GetSlot(r,d),D=GetSlot(r,c),I=GetSlot(r,m),w=GetSlot(r,h),_=GetSlot(r,f),C=GetSlot(r,p),G=GetSlot(this,S),b=GetIntrinsic("%Temporal.PlainDateTime%"),E=new b(o,i,T,g,D,I,w,_,C,y),B=GetInstantFor(G,E,"compatible");return CreateTemporalZonedDateTime(GetSlot(B,a),G,y)}},{key:"withTimeZone",value:function withTimeZone(e){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var t=ToTemporalTimeZoneSlotValue(e);return CreateTemporalZonedDateTime(GetSlot(this,a),t,GetSlot(this,v))}},{key:"withCalendar",value:function withCalendar(e){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var t=ToTemporalCalendarSlotValue(e);return CreateTemporalZonedDateTime(GetSlot(this,a),GetSlot(this,S),t)}},{key:"add",value:function add(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromZonedDateTime("add",this,e,t)}},{key:"subtract",value:function subtract(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return AddDurationToOrSubtractDurationFromZonedDateTime("subtract",this,e,t)}},{key:"until",value:function until(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalZonedDateTime("until",this,e,t)}},{key:"since",value:function since(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return DifferenceTemporalZonedDateTime("since",this,e,t)}},{key:"round",value:function round(e){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");if(void 0===e)throw new TypeError("options parameter is required");var r="string"==typeof e?CreateOnePropObject("smallestUnit",e):GetOptionsObject(e),n=ToTemporalRoundingIncrement(r),o=ToTemporalRoundingMode(r,"halfExpand"),i=GetTemporalUnit(r,"smallestUnit","time",ze,["day"]),T={day:1,hour:24,minute:60,second:60,millisecond:1e3,microsecond:1e3,nanosecond:1e3}[i];ValidateTemporalRoundingIncrement(n,T,1===T);var y=dateTime(this),g=GetSlot(y,l),I=GetSlot(y,s),w=GetSlot(y,u),_=GetSlot(y,d),C=GetSlot(y,c),G=GetSlot(y,m),b=GetSlot(y,h),E=GetSlot(y,f),B=GetSlot(y,p),O=GetIntrinsic("%Temporal.PlainDateTime%"),k=GetSlot(this,S),M=GetSlot(this,v),A=GetInstantFor(k,new O(GetSlot(y,l),GetSlot(y,s),GetSlot(y,u),0,0,0,0,0,0),"compatible"),R=AddZonedDateTime(A,k,M,0,0,0,1,0,0,0,0,0,0),P=t.subtract(R,t.BigInt(GetSlot(A,a)));if(t.lessThanOrEqual(P,De))throw new RangeError("cannot round a ZonedDateTime in a calendar with zero or negative length days");var Y=RoundISODateTime(g,I,w,_,C,G,b,E,B,n,i,o,t.toNumber(P));return CreateTemporalZonedDateTime(InterpretISODateTimeOffset(g=Y.year,I=Y.month,w=Y.day,_=Y.hour,C=Y.minute,G=Y.second,b=Y.millisecond,E=Y.microsecond,B=Y.nanosecond,"option",GetOffsetNanosecondsFor(k,GetSlot(this,D)),k,"compatible","prefer",!1),k,GetSlot(this,v))}},{key:"equals",value:function equals(e){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var r=ToTemporalZonedDateTime(e),n=GetSlot(this,a),o=GetSlot(r,a);return !!t.equal(t.BigInt(n),t.BigInt(o))&&(!!TimeZoneEquals(GetSlot(this,S),GetSlot(r,S))&&CalendarEquals(GetSlot(this,v),GetSlot(r,v)))}},{key:"toString",value:function toString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var t=GetOptionsObject(e),r=ToCalendarNameOption(t),n=ToFractionalSecondDigits(t),o=ToShowOffsetOption(t),a=ToTemporalRoundingMode(t,"trunc"),i=GetTemporalUnit(t,"smallestUnit","time",void 0);if("hour"===i)throw new RangeError('smallestUnit must be a time unit other than "hour"');var l=ToTimeZoneNameOption(t),s=ToSecondsStringPrecisionRecord(i,n),u=s.precision,d=s.unit,c=s.increment;return TemporalZonedDateTimeToString(this,u,r,l,o,{unit:d,increment:c,roundingMode:a})}},{key:"toLocaleString",value:function toLocaleString(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var r=GetOptionsObject(t),n=wr(null);if(CopyDataProperties(n,r,["timeZone"]),void 0!==r.timeZone)throw new TypeError("ZonedDateTime toLocaleString does not accept a timeZone option");void 0===n.year&&void 0===n.month&&void 0===n.day&&void 0===n.weekday&&void 0===n.dateStyle&&void 0===n.hour&&void 0===n.minute&&void 0===n.second&&void 0===n.timeStyle&&void 0===n.dayPeriod&&void 0===n.timeZoneName&&(n.timeZoneName="short");var o=ToTemporalTimeZoneIdentifier(GetSlot(this,S));if(IsTimeZoneOffsetString(o))throw new RangeError("toLocaleString does not support offset string time zones");o=GetCanonicalTimeZoneIdentifier(o),n.timeZone=o;var a=new vt(e,n),i=Call(Ir,a,[]).calendar,l=ToTemporalCalendarIdentifier(GetSlot(this,v));if("iso8601"!==l&&"iso8601"!==i&&i!==l)throw new RangeError("cannot format ZonedDateTime with calendar ".concat(l)+" in locale with calendar ".concat(i));return a.format(GetSlot(this,D))}},{key:"toJSON",value:function toJSON(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return TemporalZonedDateTimeToString(this,"auto")}},{key:"valueOf",value:function valueOf(){throw new TypeError("use compare() or equals() to compare Temporal.ZonedDateTime")}},{key:"startOfDay",value:function startOfDay(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=dateTime(this),t=GetIntrinsic("%Temporal.PlainDateTime%"),r=GetSlot(this,v),n=new t(GetSlot(e,l),GetSlot(e,s),GetSlot(e,u),0,0,0,0,0,0,r),o=GetSlot(this,S);return CreateTemporalZonedDateTime(GetSlot(GetInstantFor(o,n,"compatible"),a),o,r)}},{key:"toInstant",value:function toInstant(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return new(GetIntrinsic("%Temporal.Instant%"))(GetSlot(this,a))}},{key:"toPlainDate",value:function toPlainDate(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return TemporalDateTimeToDate(dateTime(this))}},{key:"toPlainTime",value:function toPlainTime(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return TemporalDateTimeToTime(dateTime(this))}},{key:"toPlainDateTime",value:function toPlainDateTime(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return dateTime(this)}},{key:"toPlainYearMonth",value:function toPlainYearMonth(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarYearMonthFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["monthCode","year"]),[]))}},{key:"toPlainMonthDay",value:function toPlainMonthDay(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=GetSlot(this,v);return CalendarMonthDayFromFields(e,PrepareTemporalFields(this,CalendarFields(e,["day","monthCode"]),[]))}},{key:"getISOFields",value:function getISOFields(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");var e=dateTime(this),t=GetSlot(this,S);return {calendar:GetSlot(this,v),isoDay:GetSlot(e,u),isoHour:GetSlot(e,d),isoMicrosecond:GetSlot(e,f),isoMillisecond:GetSlot(e,h),isoMinute:GetSlot(e,c),isoMonth:GetSlot(e,s),isoNanosecond:GetSlot(e,p),isoSecond:GetSlot(e,m),isoYear:GetSlot(e,l),offset:GetOffsetStringFor(t,GetSlot(this,D)),timeZone:t}}},{key:"getCalendar",value:function getCalendar(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToTemporalCalendarObject(GetSlot(this,v))}},{key:"getTimeZone",value:function getTimeZone(){if(!IsTemporalZonedDateTime(this))throw new TypeError("invalid receiver");return ToTemporalTimeZoneObject(GetSlot(this,S))}}],[{key:"from",value:function from(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=GetOptionsObject(t);return IsTemporalZonedDateTime(e)?(ToTemporalDisambiguation(r),ToTemporalOffset(r,"reject"),ToTemporalOverflow(r),CreateTemporalZonedDateTime(GetSlot(e,a),GetSlot(e,S),GetSlot(e,v))):ToTemporalZonedDateTime(e,r)}},{key:"compare",value:function compare(e,r){var n=ToTemporalZonedDateTime(e),o=ToTemporalZonedDateTime(r),i=GetSlot(n,a),l=GetSlot(o,a);return t.lessThan(t.BigInt(i),t.BigInt(l))?-1:t.greaterThan(t.BigInt(i),t.BigInt(l))?1:0}}]),ZonedDateTime}();function dateTime(e){return GetPlainDateTimeFor(GetSlot(e,S),GetSlot(e,D),GetSlot(e,v))}MakeIntrinsicClass(_r,"Temporal.ZonedDateTime");var Cr=Object.freeze({__proto__:null,Calendar:kt,Duration:ur,Instant:yt,Now:vr,PlainDate:lr,PlainDateTime:sr,PlainMonthDay:cr,PlainTime:yr,PlainYearMonth:Sr,TimeZone:gr,ZonedDateTime:_r});for(var Gr=0,br=[yt,kt,lr,sr,ur,cr,yr,gr,Sr,_r];Gr<br.length;Gr++){var Er=br[Gr],Br=Object.getOwnPropertyDescriptor(Er,"prototype");(Br.configurable||Br.enumerable||Br.writable)&&(Br.configurable=!1,Br.enumerable=!1,Br.writable=!1,Object.defineProperty(Er,"prototype",Br));}e.Intl=Tt,e.Temporal=Cr,e.toTemporalInstant=function toTemporalInstant(){var e=t.multiply(t.BigInt(+this),Ce);return new yt(e)};}));
7
-
8
- }(index_umd, index_umd.exports));
9
-
10
- export { index_umd as i };