@nubjs/nub-darwin-x64 0.2.3 → 0.2.4

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 (348) hide show
  1. package/bin/nub +0 -0
  2. package/bin/nubx +0 -0
  3. package/package.json +2 -3
  4. package/runtime/addons/nub-native.node +0 -0
  5. package/runtime/cache-evict.mjs +0 -69
  6. package/runtime/compile-cache-restore.mjs +0 -21
  7. package/runtime/floor-builtin.mjs +0 -57
  8. package/runtime/navigator-locks.mjs +0 -242
  9. package/runtime/navigator-shim.mjs +0 -144
  10. package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +0 -453
  11. package/runtime/node_modules/@js-temporal/polyfill/LICENSE +0 -13
  12. package/runtime/node_modules/@js-temporal/polyfill/README.md +0 -90
  13. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +0 -2
  14. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +0 -1
  15. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +0 -2
  16. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +0 -1
  17. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +0 -2
  18. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +0 -1
  19. package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +0 -1215
  20. package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +0 -1215
  21. package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +0 -8
  22. package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +0 -39
  23. package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +0 -2424
  24. package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +0 -7
  25. package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +0 -438
  26. package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +0 -93
  27. package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +0 -4973
  28. package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +0 -34
  29. package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +0 -43
  30. package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +0 -138
  31. package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +0 -242
  32. package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +0 -758
  33. package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +0 -162
  34. package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +0 -17
  35. package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +0 -96
  36. package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +0 -48
  37. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +0 -212
  38. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +0 -274
  39. package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +0 -110
  40. package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +0 -154
  41. package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +0 -157
  42. package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +0 -59
  43. package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +0 -341
  44. package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +0 -10
  45. package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +0 -149
  46. package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +0 -492
  47. package/runtime/node_modules/@js-temporal/polyfill/package.json +0 -143
  48. package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +0 -88
  49. package/runtime/node_modules/@oxc-project/runtime/LICENSE +0 -22
  50. package/runtime/node_modules/@oxc-project/runtime/README.md +0 -5
  51. package/runtime/node_modules/@oxc-project/runtime/package.json +0 -1066
  52. package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +0 -4
  53. package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +0 -4
  54. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +0 -9
  55. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +0 -236
  56. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +0 -184
  57. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +0 -191
  58. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +0 -222
  59. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +0 -133
  60. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +0 -124
  61. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +0 -6
  62. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +0 -4
  63. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +0 -5
  64. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +0 -5
  65. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +0 -5
  66. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +0 -24
  67. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +0 -45
  68. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +0 -26
  69. package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +0 -5
  70. package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +0 -7
  71. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +0 -6
  72. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +0 -4
  73. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +0 -10
  74. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +0 -4
  75. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +0 -7
  76. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +0 -4
  77. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +0 -5
  78. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
  79. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +0 -5
  80. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +0 -4
  81. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +0 -7
  82. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +0 -7
  83. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +0 -5
  84. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +0 -5
  85. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +0 -5
  86. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +0 -5
  87. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +0 -7
  88. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +0 -5
  89. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +0 -5
  90. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +0 -5
  91. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +0 -5
  92. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +0 -4
  93. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +0 -5
  94. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
  95. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +0 -7
  96. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +0 -7
  97. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +0 -5
  98. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +0 -4
  99. package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +0 -10
  100. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +0 -13
  101. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +0 -50
  102. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +0 -19
  103. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +0 -16
  104. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +0 -23
  105. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +0 -9
  106. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +0 -11
  107. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +0 -9
  108. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +0 -8
  109. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +0 -12
  110. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +0 -10
  111. package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +0 -28
  112. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +0 -4
  113. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +0 -4
  114. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +0 -9
  115. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +0 -236
  116. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +0 -184
  117. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +0 -191
  118. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +0 -222
  119. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +0 -133
  120. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +0 -124
  121. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +0 -6
  122. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +0 -4
  123. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +0 -5
  124. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +0 -5
  125. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +0 -5
  126. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +0 -24
  127. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +0 -45
  128. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +0 -26
  129. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +0 -5
  130. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +0 -7
  131. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +0 -6
  132. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +0 -4
  133. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
  134. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +0 -4
  135. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +0 -7
  136. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +0 -4
  137. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
  138. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
  139. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +0 -5
  140. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +0 -4
  141. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
  142. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +0 -7
  143. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +0 -5
  144. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +0 -5
  145. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +0 -5
  146. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +0 -5
  147. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +0 -7
  148. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +0 -5
  149. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +0 -5
  150. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +0 -5
  151. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +0 -5
  152. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +0 -4
  153. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +0 -5
  154. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
  155. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
  156. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
  157. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +0 -5
  158. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +0 -4
  159. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +0 -10
  160. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +0 -13
  161. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +0 -50
  162. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
  163. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +0 -16
  164. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +0 -21
  165. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +0 -7
  166. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +0 -9
  167. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +0 -9
  168. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +0 -8
  169. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +0 -12
  170. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +0 -10
  171. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +0 -28
  172. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +0 -10
  173. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +0 -11
  174. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +0 -6
  175. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +0 -4
  176. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +0 -27
  177. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +0 -14
  178. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +0 -5
  179. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +0 -9
  180. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +0 -4
  181. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +0 -4
  182. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +0 -6
  183. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +0 -27
  184. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +0 -8
  185. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +0 -9
  186. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +0 -4
  187. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +0 -28
  188. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +0 -22
  189. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +0 -9
  190. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +0 -4
  191. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +0 -4
  192. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +0 -4
  193. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +0 -4
  194. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +0 -4
  195. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +0 -14
  196. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +0 -23
  197. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +0 -13
  198. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
  199. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +0 -3
  200. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +0 -8
  201. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +0 -4
  202. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +0 -304
  203. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +0 -22
  204. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +0 -12
  205. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +0 -6
  206. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +0 -7
  207. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +0 -8
  208. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +0 -6
  209. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +0 -9
  210. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +0 -6
  211. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +0 -8
  212. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
  213. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +0 -4
  214. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +0 -6
  215. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +0 -2
  216. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +0 -8
  217. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +0 -8
  218. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +0 -12
  219. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +0 -7
  220. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +0 -10
  221. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +0 -10
  222. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +0 -9
  223. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +0 -12
  224. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +0 -59
  225. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +0 -69
  226. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +0 -27
  227. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +0 -51
  228. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +0 -4
  229. package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +0 -10
  230. package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +0 -11
  231. package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +0 -6
  232. package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +0 -4
  233. package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +0 -27
  234. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +0 -14
  235. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +0 -5
  236. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +0 -9
  237. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +0 -4
  238. package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +0 -4
  239. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +0 -6
  240. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +0 -27
  241. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +0 -8
  242. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +0 -9
  243. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +0 -4
  244. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +0 -28
  245. package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +0 -22
  246. package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +0 -9
  247. package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +0 -4
  248. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +0 -4
  249. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +0 -4
  250. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +0 -4
  251. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +0 -4
  252. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +0 -14
  253. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +0 -23
  254. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +0 -13
  255. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +0 -10
  256. package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +0 -8
  257. package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +0 -4
  258. package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +0 -304
  259. package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +0 -22
  260. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +0 -12
  261. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +0 -6
  262. package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +0 -7
  263. package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +0 -8
  264. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +0 -6
  265. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +0 -9
  266. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +0 -6
  267. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +0 -8
  268. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +0 -4
  269. package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +0 -4
  270. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +0 -6
  271. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +0 -2
  272. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +0 -8
  273. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +0 -8
  274. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +0 -12
  275. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +0 -7
  276. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +0 -10
  277. package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +0 -10
  278. package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +0 -9
  279. package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +0 -12
  280. package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +0 -59
  281. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +0 -69
  282. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +0 -27
  283. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +0 -51
  284. package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +0 -4
  285. package/runtime/node_modules/@petamoriken/float16/LICENSE +0 -21
  286. package/runtime/node_modules/@petamoriken/float16/README.md +0 -413
  287. package/runtime/node_modules/@petamoriken/float16/browser/float16.js +0 -1340
  288. package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +0 -1325
  289. package/runtime/node_modules/@petamoriken/float16/index.d.ts +0 -546
  290. package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +0 -546
  291. package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +0 -555
  292. package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +0 -25
  293. package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +0 -23
  294. package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +0 -16
  295. package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +0 -690
  296. package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +0 -52
  297. package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +0 -27
  298. package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +0 -111
  299. package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +0 -78
  300. package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +0 -18
  301. package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +0 -150
  302. package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +0 -84
  303. package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +0 -10
  304. package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +0 -16
  305. package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +0 -11
  306. package/runtime/node_modules/@petamoriken/float16/package.json +0 -115
  307. package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +0 -35
  308. package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +0 -1194
  309. package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +0 -86
  310. package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +0 -31
  311. package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +0 -173
  312. package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +0 -151
  313. package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +0 -22
  314. package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +0 -254
  315. package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +0 -137
  316. package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +0 -10
  317. package/runtime/node_modules/@petamoriken/float16/src/index.mjs +0 -7
  318. package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +0 -10
  319. package/runtime/node_modules/jsbi/LICENSE +0 -176
  320. package/runtime/node_modules/jsbi/README.md +0 -173
  321. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +0 -2
  322. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +0 -1
  323. package/runtime/node_modules/jsbi/dist/jsbi-umd.js +0 -2
  324. package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +0 -1
  325. package/runtime/node_modules/jsbi/dist/jsbi.mjs +0 -2
  326. package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +0 -1
  327. package/runtime/node_modules/jsbi/jsbi.d.ts +0 -43
  328. package/runtime/node_modules/jsbi/package.json +0 -35
  329. package/runtime/node_modules/urlpattern-polyfill/LICENSE +0 -19
  330. package/runtime/node_modules/urlpattern-polyfill/README.md +0 -242
  331. package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +0 -9
  332. package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +0 -49
  333. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +0 -1
  334. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +0 -1
  335. package/runtime/node_modules/urlpattern-polyfill/index.cjs +0 -7
  336. package/runtime/node_modules/urlpattern-polyfill/index.js +0 -7
  337. package/runtime/node_modules/urlpattern-polyfill/package.json +0 -149
  338. package/runtime/pnp-bin-run.cjs +0 -91
  339. package/runtime/pnp-util.cjs +0 -62
  340. package/runtime/polyfills.cjs +0 -816
  341. package/runtime/preload-async-hooks.mjs +0 -110
  342. package/runtime/preload-common.cjs +0 -1096
  343. package/runtime/preload.cjs +0 -313
  344. package/runtime/preload.mjs +0 -149
  345. package/runtime/transform-core.mjs +0 -756
  346. package/runtime/version.mjs +0 -12
  347. package/runtime/worker-blob-url.cjs +0 -116
  348. package/runtime/worker-polyfill.mjs +0 -541
@@ -1,274 +0,0 @@
1
- import * as ES from './ecmascript';
2
- import { MakeIntrinsicClass } from './intrinsicclass';
3
-
4
- import { CALENDAR, GetSlot, ISO_DATE_TIME } from './slots';
5
- import type { Temporal } from '..';
6
- import { DateTimeFormat } from './intl';
7
- import type { CalendarDateRecord, PlainDateTimeParams as Params, PlainDateTimeReturn as Return } from './internaltypes';
8
-
9
- export class PlainDateTime implements Temporal.PlainDateTime {
10
- constructor(
11
- isoYear: Params['constructor'][0],
12
- isoMonth: Params['constructor'][1],
13
- isoDay: Params['constructor'][2],
14
- hourParam: Params['constructor'][3] = 0,
15
- minuteParam: Params['constructor'][4] = 0,
16
- secondParam: Params['constructor'][5] = 0,
17
- millisecondParam: Params['constructor'][6] = 0,
18
- microsecondParam: Params['constructor'][7] = 0,
19
- nanosecondParam: Params['constructor'][8] = 0,
20
- calendarParam: Params['constructor'][9] = 'iso8601'
21
- ) {
22
- const year = ES.ToIntegerWithTruncation(isoYear);
23
- const month = ES.ToIntegerWithTruncation(isoMonth);
24
- const day = ES.ToIntegerWithTruncation(isoDay);
25
- const hour = hourParam === undefined ? 0 : ES.ToIntegerWithTruncation(hourParam);
26
- const minute = minuteParam === undefined ? 0 : ES.ToIntegerWithTruncation(minuteParam);
27
- const second = secondParam === undefined ? 0 : ES.ToIntegerWithTruncation(secondParam);
28
- const millisecond = millisecondParam === undefined ? 0 : ES.ToIntegerWithTruncation(millisecondParam);
29
- const microsecond = microsecondParam === undefined ? 0 : ES.ToIntegerWithTruncation(microsecondParam);
30
- const nanosecond = nanosecondParam === undefined ? 0 : ES.ToIntegerWithTruncation(nanosecondParam);
31
- const calendar = ES.CanonicalizeCalendar(calendarParam === undefined ? 'iso8601' : ES.RequireString(calendarParam));
32
-
33
- ES.RejectDateTime(year, month, day, hour, minute, second, millisecond, microsecond, nanosecond);
34
-
35
- ES.CreateTemporalDateTimeSlots(
36
- this,
37
- { isoDate: { year, month, day }, time: { hour, minute, second, millisecond, microsecond, nanosecond } },
38
- calendar
39
- );
40
- }
41
- get calendarId(): Return['calendarId'] {
42
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
43
- return GetSlot(this, CALENDAR);
44
- }
45
- get year(): Return['year'] {
46
- return getCalendarProperty(this, 'year');
47
- }
48
- get month(): Return['month'] {
49
- return getCalendarProperty(this, 'month');
50
- }
51
- get monthCode(): Return['monthCode'] {
52
- return getCalendarProperty(this, 'monthCode');
53
- }
54
- get day(): Return['day'] {
55
- return getCalendarProperty(this, 'day');
56
- }
57
- get hour(): Return['hour'] {
58
- return getTimeProperty(this, 'hour');
59
- }
60
- get minute(): Return['minute'] {
61
- return getTimeProperty(this, 'minute');
62
- }
63
- get second(): Return['second'] {
64
- return getTimeProperty(this, 'second');
65
- }
66
- get millisecond(): Return['millisecond'] {
67
- return getTimeProperty(this, 'millisecond');
68
- }
69
- get microsecond(): Return['microsecond'] {
70
- return getTimeProperty(this, 'microsecond');
71
- }
72
- get nanosecond(): Return['nanosecond'] {
73
- return getTimeProperty(this, 'nanosecond');
74
- }
75
- get era(): Return['era'] {
76
- return getCalendarProperty(this, 'era');
77
- }
78
- get eraYear(): Return['eraYear'] {
79
- return getCalendarProperty(this, 'eraYear');
80
- }
81
- get dayOfWeek(): Return['dayOfWeek'] {
82
- return getCalendarProperty(this, 'dayOfWeek');
83
- }
84
- get dayOfYear(): Return['dayOfYear'] {
85
- return getCalendarProperty(this, 'dayOfYear');
86
- }
87
- get weekOfYear(): Return['weekOfYear'] {
88
- return getCalendarProperty(this, 'weekOfYear')?.week;
89
- }
90
- get yearOfWeek(): Return['yearOfWeek'] {
91
- return getCalendarProperty(this, 'weekOfYear')?.year;
92
- }
93
- get daysInWeek(): Return['daysInWeek'] {
94
- return getCalendarProperty(this, 'daysInWeek');
95
- }
96
- get daysInYear(): Return['daysInYear'] {
97
- return getCalendarProperty(this, 'daysInYear');
98
- }
99
- get daysInMonth(): Return['daysInMonth'] {
100
- return getCalendarProperty(this, 'daysInMonth');
101
- }
102
- get monthsInYear(): Return['monthsInYear'] {
103
- return getCalendarProperty(this, 'monthsInYear');
104
- }
105
- get inLeapYear(): Return['inLeapYear'] {
106
- return getCalendarProperty(this, 'inLeapYear');
107
- }
108
- with(temporalDateTimeLike: Params['with'][0], options: Params['with'][1] = undefined): Return['with'] {
109
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
110
- if (!ES.IsObject(temporalDateTimeLike)) {
111
- throw new TypeError('invalid argument');
112
- }
113
- ES.RejectTemporalLikeObject(temporalDateTimeLike);
114
-
115
- const calendar = GetSlot(this, CALENDAR);
116
- const isoDateTime = GetSlot(this, ISO_DATE_TIME);
117
- let fields = {
118
- ...ES.ISODateToFields(calendar, isoDateTime.isoDate),
119
- ...isoDateTime.time
120
- };
121
- const partialDateTime = ES.PrepareCalendarFields(
122
- calendar,
123
- temporalDateTimeLike,
124
- ['year', 'month', 'monthCode', 'day'],
125
- ['hour', 'minute', 'second', 'millisecond', 'microsecond', 'nanosecond'],
126
- 'partial'
127
- );
128
- fields = ES.CalendarMergeFields(calendar, fields, partialDateTime);
129
-
130
- const overflow = ES.GetTemporalOverflowOption(ES.GetOptionsObject(options));
131
- const newDateTime = ES.InterpretTemporalDateTimeFields(calendar, fields, overflow);
132
- return ES.CreateTemporalDateTime(newDateTime, calendar);
133
- }
134
- withPlainTime(temporalTime: Params['withPlainTime'][0] = undefined): Return['withPlainTime'] {
135
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
136
- const time = ES.ToTimeRecordOrMidnight(temporalTime);
137
- const isoDateTime = ES.CombineISODateAndTimeRecord(GetSlot(this, ISO_DATE_TIME).isoDate, time);
138
- return ES.CreateTemporalDateTime(isoDateTime, GetSlot(this, CALENDAR));
139
- }
140
- withCalendar(calendarParam: Params['withCalendar'][0]): Return['withCalendar'] {
141
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
142
- const calendar = ES.ToTemporalCalendarIdentifier(calendarParam);
143
- return ES.CreateTemporalDateTime(GetSlot(this, ISO_DATE_TIME), calendar);
144
- }
145
- add(temporalDurationLike: Params['add'][0], options: Params['add'][1] = undefined): Return['add'] {
146
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
147
- return ES.AddDurationToDateTime('add', this, temporalDurationLike, options);
148
- }
149
- subtract(
150
- temporalDurationLike: Params['subtract'][0],
151
- options: Params['subtract'][1] = undefined
152
- ): Return['subtract'] {
153
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
154
- return ES.AddDurationToDateTime('subtract', this, temporalDurationLike, options);
155
- }
156
- until(other: Params['until'][0], options: Params['until'][1] = undefined): Return['until'] {
157
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
158
- return ES.DifferenceTemporalPlainDateTime('until', this, other, options);
159
- }
160
- since(other: Params['since'][0], options: Params['since'][1] = undefined): Return['since'] {
161
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
162
- return ES.DifferenceTemporalPlainDateTime('since', this, other, options);
163
- }
164
- round(roundToParam: Params['round'][0]): Return['round'] {
165
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
166
- if (roundToParam === undefined) throw new TypeError('options parameter is required');
167
- const roundTo =
168
- typeof roundToParam === 'string'
169
- ? (ES.CreateOnePropObject('smallestUnit', roundToParam) as Exclude<typeof roundToParam, string>)
170
- : ES.GetOptionsObject(roundToParam);
171
- const roundingIncrement = ES.GetTemporalRoundingIncrementOption(roundTo);
172
- const roundingMode = ES.GetRoundingModeOption(roundTo, 'halfExpand');
173
- const smallestUnit = ES.GetTemporalUnitValuedOption(roundTo, 'smallestUnit', 'time', ES.REQUIRED, ['day']);
174
- const maximumIncrements = {
175
- day: 1,
176
- hour: 24,
177
- minute: 60,
178
- second: 60,
179
- millisecond: 1000,
180
- microsecond: 1000,
181
- nanosecond: 1000
182
- };
183
- const maximum = maximumIncrements[smallestUnit];
184
- const inclusive = maximum === 1;
185
- ES.ValidateTemporalRoundingIncrement(roundingIncrement, maximum, inclusive);
186
-
187
- const isoDateTime = GetSlot(this, ISO_DATE_TIME);
188
- if (roundingIncrement === 1 && smallestUnit === 'nanosecond') {
189
- return ES.CreateTemporalDateTime(isoDateTime, GetSlot(this, CALENDAR));
190
- }
191
- const result = ES.RoundISODateTime(isoDateTime, roundingIncrement, smallestUnit, roundingMode);
192
-
193
- return ES.CreateTemporalDateTime(result, GetSlot(this, CALENDAR));
194
- }
195
- equals(otherParam: Params['equals'][0]): Return['equals'] {
196
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
197
- const other = ES.ToTemporalDateTime(otherParam);
198
- if (ES.CompareISODateTime(GetSlot(this, ISO_DATE_TIME), GetSlot(other, ISO_DATE_TIME)) !== 0) return false;
199
- return ES.CalendarEquals(GetSlot(this, CALENDAR), GetSlot(other, CALENDAR));
200
- }
201
- toString(options: Params['toString'][0] = undefined): string {
202
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
203
- const resolvedOptions = ES.GetOptionsObject(options);
204
- const showCalendar = ES.GetTemporalShowCalendarNameOption(resolvedOptions);
205
- const digits = ES.GetTemporalFractionalSecondDigitsOption(resolvedOptions);
206
- const roundingMode = ES.GetRoundingModeOption(resolvedOptions, 'trunc');
207
- const smallestUnit = ES.GetTemporalUnitValuedOption(resolvedOptions, 'smallestUnit', 'time', undefined);
208
- if (smallestUnit === 'hour') throw new RangeError('smallestUnit must be a time unit other than "hour"');
209
- const { precision, unit, increment } = ES.ToSecondsStringPrecisionRecord(smallestUnit, digits);
210
- const result = ES.RoundISODateTime(GetSlot(this, ISO_DATE_TIME), increment, unit, roundingMode);
211
- ES.RejectDateTimeRange(result);
212
- return ES.ISODateTimeToString(result, GetSlot(this, CALENDAR), precision, showCalendar);
213
- }
214
- toJSON(): Return['toJSON'] {
215
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
216
- return ES.ISODateTimeToString(GetSlot(this, ISO_DATE_TIME), GetSlot(this, CALENDAR), 'auto');
217
- }
218
- toLocaleString(
219
- locales: Params['toLocaleString'][0] = undefined,
220
- options: Params['toLocaleString'][1] = undefined
221
- ): string {
222
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
223
- return new DateTimeFormat(locales, options).format(this);
224
- }
225
- valueOf(): never {
226
- ES.ValueOfThrows('PlainDateTime');
227
- }
228
-
229
- toZonedDateTime(
230
- temporalTimeZoneLike: Params['toZonedDateTime'][0],
231
- options: Params['toZonedDateTime'][1] = undefined
232
- ): Return['toZonedDateTime'] {
233
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
234
- const timeZone = ES.ToTemporalTimeZoneIdentifier(temporalTimeZoneLike);
235
- const resolvedOptions = ES.GetOptionsObject(options);
236
- const disambiguation = ES.GetTemporalDisambiguationOption(resolvedOptions);
237
- const epochNs = ES.GetEpochNanosecondsFor(timeZone, GetSlot(this, ISO_DATE_TIME), disambiguation);
238
- return ES.CreateTemporalZonedDateTime(epochNs, timeZone, GetSlot(this, CALENDAR));
239
- }
240
- toPlainDate(): Return['toPlainDate'] {
241
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
242
- return ES.CreateTemporalDate(GetSlot(this, ISO_DATE_TIME).isoDate, GetSlot(this, CALENDAR));
243
- }
244
- toPlainTime(): Return['toPlainTime'] {
245
- ES.CheckReceiver(this, ES.IsTemporalDateTime);
246
- return ES.CreateTemporalTime(GetSlot(this, ISO_DATE_TIME).time);
247
- }
248
-
249
- static from(item: Params['from'][0], options: Params['from'][1] = undefined): Return['from'] {
250
- return ES.ToTemporalDateTime(item, options);
251
- }
252
- static compare(oneParam: Params['compare'][0], twoParam: Params['compare'][1]): Return['compare'] {
253
- const one = ES.ToTemporalDateTime(oneParam);
254
- const two = ES.ToTemporalDateTime(twoParam);
255
- return ES.CompareISODateTime(GetSlot(one, ISO_DATE_TIME), GetSlot(two, ISO_DATE_TIME));
256
- }
257
- [Symbol.toStringTag]!: 'Temporal.PlainDateTime';
258
- }
259
-
260
- MakeIntrinsicClass(PlainDateTime, 'Temporal.PlainDateTime');
261
-
262
- function getCalendarProperty<P extends keyof CalendarDateRecord>(
263
- dt: Temporal.PlainDateTime,
264
- prop: P
265
- ): CalendarDateRecord[P] {
266
- ES.CheckReceiver(dt, ES.IsTemporalDateTime);
267
- const isoDate = GetSlot(dt, ISO_DATE_TIME).isoDate;
268
- return ES.calendarImplForObj(dt).isoToDate(isoDate, { [prop]: true })[prop];
269
- }
270
-
271
- function getTimeProperty(dt: Temporal.PlainDateTime, prop: Temporal.TimeUnit) {
272
- ES.CheckReceiver(dt, ES.IsTemporalDateTime);
273
- return GetSlot(dt, ISO_DATE_TIME).time[prop];
274
- }
@@ -1,110 +0,0 @@
1
- import * as ES from './ecmascript';
2
- import { MakeIntrinsicClass } from './intrinsicclass';
3
- import { CALENDAR, GetSlot, ISO_DATE } from './slots';
4
- import type { Temporal } from '..';
5
- import { DateTimeFormat } from './intl';
6
- import type { CalendarDateRecord, PlainMonthDayParams as Params, PlainMonthDayReturn as Return } from './internaltypes';
7
-
8
- export class PlainMonthDay implements Temporal.PlainMonthDay {
9
- constructor(
10
- isoMonth: Params['constructor'][0],
11
- isoDay: Params['constructor'][0],
12
- calendarParam = 'iso8601',
13
- referenceISOYear = 1972
14
- ) {
15
- const month = ES.ToIntegerWithTruncation(isoMonth);
16
- const day = ES.ToIntegerWithTruncation(isoDay);
17
- const calendar = ES.CanonicalizeCalendar(calendarParam === undefined ? 'iso8601' : ES.RequireString(calendarParam));
18
- const year = ES.ToIntegerWithTruncation(referenceISOYear);
19
-
20
- ES.RejectISODate(year, month, day);
21
- ES.CreateTemporalMonthDaySlots(this, { year, month, day }, calendar);
22
- }
23
-
24
- get monthCode(): Return['monthCode'] {
25
- return getCalendarProperty(this, 'monthCode');
26
- }
27
- get day(): Return['day'] {
28
- return getCalendarProperty(this, 'day');
29
- }
30
- get calendarId(): Return['calendarId'] {
31
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
32
- return GetSlot(this, CALENDAR);
33
- }
34
-
35
- with(temporalMonthDayLike: Params['with'][0], options: Params['with'][1] = undefined): Return['with'] {
36
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
37
- if (!ES.IsObject(temporalMonthDayLike)) {
38
- throw new TypeError('invalid argument');
39
- }
40
- ES.RejectTemporalLikeObject(temporalMonthDayLike);
41
-
42
- const calendar = GetSlot(this, CALENDAR);
43
- let fields = ES.ISODateToFields(calendar, GetSlot(this, ISO_DATE), 'month-day');
44
- const partialMonthDay = ES.PrepareCalendarFields(
45
- calendar,
46
- temporalMonthDayLike,
47
- ['year', 'month', 'monthCode', 'day'],
48
- [],
49
- 'partial'
50
- );
51
- fields = ES.CalendarMergeFields(calendar, fields, partialMonthDay);
52
-
53
- const overflow = ES.GetTemporalOverflowOption(ES.GetOptionsObject(options));
54
- const isoDate = ES.CalendarMonthDayFromFields(calendar, fields, overflow);
55
- return ES.CreateTemporalMonthDay(isoDate, calendar);
56
- }
57
- equals(otherParam: Params['equals'][0]): Return['equals'] {
58
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
59
- const other = ES.ToTemporalMonthDay(otherParam);
60
- if (ES.CompareISODate(GetSlot(this, ISO_DATE), GetSlot(other, ISO_DATE)) !== 0) return false;
61
- return ES.CalendarEquals(GetSlot(this, CALENDAR), GetSlot(other, CALENDAR));
62
- }
63
- toString(options: Params['toString'][0] = undefined): string {
64
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
65
- const resolvedOptions = ES.GetOptionsObject(options);
66
- const showCalendar = ES.GetTemporalShowCalendarNameOption(resolvedOptions);
67
- return ES.TemporalMonthDayToString(this, showCalendar);
68
- }
69
- toJSON(): Return['toJSON'] {
70
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
71
- return ES.TemporalMonthDayToString(this);
72
- }
73
- toLocaleString(
74
- locales: Params['toLocaleString'][0] = undefined,
75
- options: Params['toLocaleString'][1] = undefined
76
- ): string {
77
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
78
- return new DateTimeFormat(locales, options).format(this);
79
- }
80
- valueOf(): never {
81
- ES.ValueOfThrows('PlainMonthDay');
82
- }
83
- toPlainDate(item: Params['toPlainDate'][0]): Return['toPlainDate'] {
84
- ES.CheckReceiver(this, ES.IsTemporalMonthDay);
85
- if (!ES.IsObject(item)) throw new TypeError('argument should be an object');
86
- const calendar = GetSlot(this, CALENDAR);
87
-
88
- const fields = ES.ISODateToFields(calendar, GetSlot(this, ISO_DATE), 'month-day');
89
- const inputFields = ES.PrepareCalendarFields(calendar, item, ['year'], [], []);
90
- let mergedFields = ES.CalendarMergeFields(calendar, fields, inputFields);
91
- const isoDate = ES.CalendarDateFromFields(calendar, mergedFields, 'constrain');
92
- return ES.CreateTemporalDate(isoDate, calendar);
93
- }
94
-
95
- static from(item: Params['from'][0], options: Params['from'][1] = undefined): Return['from'] {
96
- return ES.ToTemporalMonthDay(item, options);
97
- }
98
- [Symbol.toStringTag]!: 'Temporal.PlainMonthDay';
99
- }
100
-
101
- MakeIntrinsicClass(PlainMonthDay, 'Temporal.PlainMonthDay');
102
-
103
- function getCalendarProperty<P extends keyof CalendarDateRecord>(
104
- md: Temporal.PlainMonthDay,
105
- prop: P
106
- ): CalendarDateRecord[P] {
107
- ES.CheckReceiver(md, ES.IsTemporalMonthDay);
108
- const isoDate = GetSlot(md, ISO_DATE);
109
- return ES.calendarImplForObj(md).isoToDate(isoDate, { [prop]: true })[prop];
110
- }
@@ -1,154 +0,0 @@
1
- import * as ES from './ecmascript';
2
- import { MakeIntrinsicClass } from './intrinsicclass';
3
-
4
- import { GetSlot, TIME } from './slots';
5
- import type { Temporal } from '..';
6
- import { DateTimeFormat } from './intl';
7
- import type { PlainTimeParams as Params, PlainTimeReturn as Return } from './internaltypes';
8
-
9
- export class PlainTime implements Temporal.PlainTime {
10
- constructor(isoHour = 0, isoMinute = 0, isoSecond = 0, isoMillisecond = 0, isoMicrosecond = 0, isoNanosecond = 0) {
11
- const hour = isoHour === undefined ? 0 : ES.ToIntegerWithTruncation(isoHour);
12
- const minute = isoMinute === undefined ? 0 : ES.ToIntegerWithTruncation(isoMinute);
13
- const second = isoSecond === undefined ? 0 : ES.ToIntegerWithTruncation(isoSecond);
14
- const millisecond = isoMillisecond === undefined ? 0 : ES.ToIntegerWithTruncation(isoMillisecond);
15
- const microsecond = isoMicrosecond === undefined ? 0 : ES.ToIntegerWithTruncation(isoMicrosecond);
16
- const nanosecond = isoNanosecond === undefined ? 0 : ES.ToIntegerWithTruncation(isoNanosecond);
17
-
18
- ES.RejectTime(hour, minute, second, millisecond, microsecond, nanosecond);
19
- const time = { hour, minute, second, millisecond, microsecond, nanosecond };
20
-
21
- ES.CreateTemporalTimeSlots(this, time);
22
- }
23
-
24
- get hour(): Return['hour'] {
25
- ES.CheckReceiver(this, ES.IsTemporalTime);
26
- return GetSlot(this, TIME).hour;
27
- }
28
- get minute(): Return['minute'] {
29
- ES.CheckReceiver(this, ES.IsTemporalTime);
30
- return GetSlot(this, TIME).minute;
31
- }
32
- get second(): Return['second'] {
33
- ES.CheckReceiver(this, ES.IsTemporalTime);
34
- return GetSlot(this, TIME).second;
35
- }
36
- get millisecond(): Return['millisecond'] {
37
- ES.CheckReceiver(this, ES.IsTemporalTime);
38
- return GetSlot(this, TIME).millisecond;
39
- }
40
- get microsecond(): Return['microsecond'] {
41
- ES.CheckReceiver(this, ES.IsTemporalTime);
42
- return GetSlot(this, TIME).microsecond;
43
- }
44
- get nanosecond(): Return['nanosecond'] {
45
- ES.CheckReceiver(this, ES.IsTemporalTime);
46
- return GetSlot(this, TIME).nanosecond;
47
- }
48
-
49
- with(temporalTimeLike: Params['with'][0], options: Params['with'][1] = undefined): Return['with'] {
50
- ES.CheckReceiver(this, ES.IsTemporalTime);
51
- if (!ES.IsObject(temporalTimeLike)) {
52
- throw new TypeError('invalid argument');
53
- }
54
- ES.RejectTemporalLikeObject(temporalTimeLike);
55
-
56
- const partialTime = ES.ToTemporalTimeRecord(temporalTimeLike, 'partial');
57
-
58
- const fields = ES.ToTemporalTimeRecord(this);
59
- let { hour, minute, second, millisecond, microsecond, nanosecond } = Object.assign(fields, partialTime);
60
- const overflow = ES.GetTemporalOverflowOption(ES.GetOptionsObject(options));
61
- ({ hour, minute, second, millisecond, microsecond, nanosecond } = ES.RegulateTime(
62
- hour,
63
- minute,
64
- second,
65
- millisecond,
66
- microsecond,
67
- nanosecond,
68
- overflow
69
- ));
70
- return new PlainTime(hour, minute, second, millisecond, microsecond, nanosecond);
71
- }
72
- add(temporalDurationLike: Params['add'][0]): Return['add'] {
73
- ES.CheckReceiver(this, ES.IsTemporalTime);
74
- return ES.AddDurationToTime('add', this, temporalDurationLike);
75
- }
76
- subtract(temporalDurationLike: Params['subtract'][0]): Return['subtract'] {
77
- ES.CheckReceiver(this, ES.IsTemporalTime);
78
- return ES.AddDurationToTime('subtract', this, temporalDurationLike);
79
- }
80
- until(other: Params['until'][0], options: Params['until'][1] = undefined): Return['until'] {
81
- ES.CheckReceiver(this, ES.IsTemporalTime);
82
- return ES.DifferenceTemporalPlainTime('until', this, other, options);
83
- }
84
- since(other: Params['since'][0], options: Params['since'][1] = undefined): Return['since'] {
85
- ES.CheckReceiver(this, ES.IsTemporalTime);
86
- return ES.DifferenceTemporalPlainTime('since', this, other, options);
87
- }
88
- round(roundToParam: Params['round'][0]): Return['round'] {
89
- ES.CheckReceiver(this, ES.IsTemporalTime);
90
- if (roundToParam === undefined) throw new TypeError('options parameter is required');
91
- const roundTo =
92
- typeof roundToParam === 'string'
93
- ? (ES.CreateOnePropObject('smallestUnit', roundToParam) as Exclude<typeof roundToParam, string>)
94
- : ES.GetOptionsObject(roundToParam);
95
- const roundingIncrement = ES.GetTemporalRoundingIncrementOption(roundTo);
96
- const roundingMode = ES.GetRoundingModeOption(roundTo, 'halfExpand');
97
- const smallestUnit = ES.GetTemporalUnitValuedOption(roundTo, 'smallestUnit', 'time', ES.REQUIRED);
98
- const MAX_INCREMENTS = {
99
- hour: 24,
100
- minute: 60,
101
- second: 60,
102
- millisecond: 1000,
103
- microsecond: 1000,
104
- nanosecond: 1000
105
- };
106
- ES.ValidateTemporalRoundingIncrement(roundingIncrement, MAX_INCREMENTS[smallestUnit], false);
107
-
108
- const time = ES.RoundTime(GetSlot(this, TIME), roundingIncrement, smallestUnit, roundingMode);
109
- return ES.CreateTemporalTime(time);
110
- }
111
- equals(otherParam: Params['equals'][0]): Return['equals'] {
112
- ES.CheckReceiver(this, ES.IsTemporalTime);
113
- const other = ES.ToTemporalTime(otherParam);
114
- return ES.CompareTimeRecord(GetSlot(this, TIME), GetSlot(other, TIME)) === 0;
115
- }
116
-
117
- toString(options: Params['toString'][0] = undefined): string {
118
- ES.CheckReceiver(this, ES.IsTemporalTime);
119
- const resolvedOptions = ES.GetOptionsObject(options);
120
- const digits = ES.GetTemporalFractionalSecondDigitsOption(resolvedOptions);
121
- const roundingMode = ES.GetRoundingModeOption(resolvedOptions, 'trunc');
122
- const smallestUnit = ES.GetTemporalUnitValuedOption(resolvedOptions, 'smallestUnit', 'time', undefined);
123
- if (smallestUnit === 'hour') throw new RangeError('smallestUnit must be a time unit other than "hour"');
124
- const { precision, unit, increment } = ES.ToSecondsStringPrecisionRecord(smallestUnit, digits);
125
- const time = ES.RoundTime(GetSlot(this, TIME), increment, unit, roundingMode);
126
- return ES.TimeRecordToString(time, precision);
127
- }
128
- toJSON(): Return['toJSON'] {
129
- ES.CheckReceiver(this, ES.IsTemporalTime);
130
- return ES.TimeRecordToString(GetSlot(this, TIME), 'auto');
131
- }
132
- toLocaleString(
133
- locales: Params['toLocaleString'][0] = undefined,
134
- options: Params['toLocaleString'][1] = undefined
135
- ): string {
136
- ES.CheckReceiver(this, ES.IsTemporalTime);
137
- return new DateTimeFormat(locales, options).format(this);
138
- }
139
- valueOf(): never {
140
- ES.ValueOfThrows('PlainTime');
141
- }
142
-
143
- static from(item: Params['from'][0], options: Params['from'][1] = undefined): Return['from'] {
144
- return ES.ToTemporalTime(item, options);
145
- }
146
- static compare(oneParam: Params['compare'][0], twoParam: Params['compare'][1]): Return['compare'] {
147
- const one = ES.ToTemporalTime(oneParam);
148
- const two = ES.ToTemporalTime(twoParam);
149
- return ES.CompareTimeRecord(GetSlot(one, TIME), GetSlot(two, TIME));
150
- }
151
- [Symbol.toStringTag]!: 'Temporal.PlainTime';
152
- }
153
-
154
- MakeIntrinsicClass(PlainTime, 'Temporal.PlainTime');