@nubjs/nub-linux-x64 0.0.7 → 0.0.9

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 (387) hide show
  1. package/bin/nub +0 -0
  2. package/package.json +1 -1
  3. package/runtime/addons/nub-native.node +0 -0
  4. package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  5. package/runtime/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  6. package/runtime/node_modules/@js-temporal/polyfill/README.md +90 -0
  7. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  8. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +1 -0
  9. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  10. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +1 -0
  11. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  12. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +1 -0
  13. package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +1215 -0
  14. package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +1215 -0
  15. package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  16. package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  17. package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  18. package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  19. package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  20. package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +93 -0
  21. package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  22. package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  23. package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  24. package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  25. package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +242 -0
  26. package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  27. package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  28. package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  29. package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  30. package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  31. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  32. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  33. package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  34. package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  35. package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  36. package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  37. package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  38. package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  39. package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  40. package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  41. package/runtime/node_modules/@js-temporal/polyfill/package.json +143 -0
  42. package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +88 -0
  43. package/runtime/node_modules/@oxc-project/runtime/LICENSE +22 -0
  44. package/runtime/node_modules/@oxc-project/runtime/README.md +5 -0
  45. package/runtime/node_modules/@oxc-project/runtime/package.json +1066 -0
  46. package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +4 -0
  47. package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +4 -0
  48. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +9 -0
  49. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +236 -0
  50. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +184 -0
  51. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +191 -0
  52. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +222 -0
  53. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +133 -0
  54. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +124 -0
  55. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +6 -0
  56. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +4 -0
  57. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +5 -0
  58. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +5 -0
  59. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +5 -0
  60. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +24 -0
  61. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +45 -0
  62. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +26 -0
  63. package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +5 -0
  64. package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +7 -0
  65. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +6 -0
  66. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +4 -0
  67. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +10 -0
  68. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +4 -0
  69. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +7 -0
  70. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +4 -0
  71. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +5 -0
  72. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
  73. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +5 -0
  74. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +4 -0
  75. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +7 -0
  76. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +7 -0
  77. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +5 -0
  78. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +5 -0
  79. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +5 -0
  80. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +5 -0
  81. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +7 -0
  82. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +5 -0
  83. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +5 -0
  84. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +5 -0
  85. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +5 -0
  86. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +4 -0
  87. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +5 -0
  88. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
  89. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +7 -0
  90. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +7 -0
  91. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +5 -0
  92. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +4 -0
  93. package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +10 -0
  94. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +13 -0
  95. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +50 -0
  96. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +19 -0
  97. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +16 -0
  98. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +23 -0
  99. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +9 -0
  100. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +11 -0
  101. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +9 -0
  102. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +8 -0
  103. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +12 -0
  104. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +10 -0
  105. package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +28 -0
  106. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +4 -0
  107. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +4 -0
  108. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +9 -0
  109. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +236 -0
  110. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +184 -0
  111. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +191 -0
  112. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +222 -0
  113. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +133 -0
  114. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +124 -0
  115. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +6 -0
  116. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +4 -0
  117. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +5 -0
  118. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +5 -0
  119. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +5 -0
  120. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +24 -0
  121. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +45 -0
  122. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +26 -0
  123. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +5 -0
  124. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +7 -0
  125. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +6 -0
  126. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +4 -0
  127. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
  128. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +4 -0
  129. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +7 -0
  130. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +4 -0
  131. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  132. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
  133. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +5 -0
  134. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +4 -0
  135. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
  136. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +7 -0
  137. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +5 -0
  138. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  139. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +5 -0
  140. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +5 -0
  141. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +7 -0
  142. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +5 -0
  143. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +5 -0
  144. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +5 -0
  145. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  146. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +4 -0
  147. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +5 -0
  148. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
  149. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
  150. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
  151. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  152. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +4 -0
  153. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +10 -0
  154. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +13 -0
  155. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +50 -0
  156. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
  157. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +16 -0
  158. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +21 -0
  159. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +7 -0
  160. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +9 -0
  161. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +9 -0
  162. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +8 -0
  163. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +12 -0
  164. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +10 -0
  165. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +28 -0
  166. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +10 -0
  167. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +11 -0
  168. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +6 -0
  169. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +4 -0
  170. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +27 -0
  171. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +14 -0
  172. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +5 -0
  173. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +9 -0
  174. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +4 -0
  175. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +4 -0
  176. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +6 -0
  177. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +27 -0
  178. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +8 -0
  179. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +9 -0
  180. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +4 -0
  181. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +28 -0
  182. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +22 -0
  183. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +9 -0
  184. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +4 -0
  185. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +4 -0
  186. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +4 -0
  187. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +4 -0
  188. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +4 -0
  189. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +14 -0
  190. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +23 -0
  191. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +13 -0
  192. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  193. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +3 -0
  194. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +8 -0
  195. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +4 -0
  196. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +304 -0
  197. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +22 -0
  198. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +12 -0
  199. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +6 -0
  200. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +7 -0
  201. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +8 -0
  202. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +6 -0
  203. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +9 -0
  204. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +6 -0
  205. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +8 -0
  206. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
  207. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +4 -0
  208. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +6 -0
  209. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +2 -0
  210. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +8 -0
  211. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +8 -0
  212. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +12 -0
  213. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +7 -0
  214. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +10 -0
  215. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +10 -0
  216. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +9 -0
  217. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +12 -0
  218. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +59 -0
  219. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +69 -0
  220. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +27 -0
  221. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +51 -0
  222. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +4 -0
  223. package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +10 -0
  224. package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +11 -0
  225. package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +6 -0
  226. package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +4 -0
  227. package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +27 -0
  228. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +14 -0
  229. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +5 -0
  230. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +9 -0
  231. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +4 -0
  232. package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +4 -0
  233. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +6 -0
  234. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +27 -0
  235. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +8 -0
  236. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +9 -0
  237. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +4 -0
  238. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +28 -0
  239. package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +22 -0
  240. package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +9 -0
  241. package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +4 -0
  242. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +4 -0
  243. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +4 -0
  244. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +4 -0
  245. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +4 -0
  246. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +14 -0
  247. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +23 -0
  248. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +13 -0
  249. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +10 -0
  250. package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +8 -0
  251. package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +4 -0
  252. package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +304 -0
  253. package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +22 -0
  254. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +12 -0
  255. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +6 -0
  256. package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +7 -0
  257. package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +8 -0
  258. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +6 -0
  259. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +9 -0
  260. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +6 -0
  261. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +8 -0
  262. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +4 -0
  263. package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +4 -0
  264. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +6 -0
  265. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +2 -0
  266. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +8 -0
  267. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +8 -0
  268. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +12 -0
  269. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +7 -0
  270. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +10 -0
  271. package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +10 -0
  272. package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +9 -0
  273. package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +12 -0
  274. package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +59 -0
  275. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +69 -0
  276. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +27 -0
  277. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +51 -0
  278. package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +4 -0
  279. package/runtime/node_modules/@oxc-project/types/LICENSE +22 -0
  280. package/runtime/node_modules/@oxc-project/types/README.md +3 -0
  281. package/runtime/node_modules/@oxc-project/types/package.json +26 -0
  282. package/runtime/node_modules/@oxc-project/types/types.d.ts +1912 -0
  283. package/runtime/node_modules/@petamoriken/float16/LICENSE +21 -0
  284. package/runtime/node_modules/@petamoriken/float16/README.md +413 -0
  285. package/runtime/node_modules/@petamoriken/float16/browser/float16.js +1340 -0
  286. package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +1325 -0
  287. package/runtime/node_modules/@petamoriken/float16/index.d.ts +546 -0
  288. package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +546 -0
  289. package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +555 -0
  290. package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +25 -0
  291. package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +23 -0
  292. package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +16 -0
  293. package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +690 -0
  294. package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +52 -0
  295. package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +27 -0
  296. package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +111 -0
  297. package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +78 -0
  298. package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +18 -0
  299. package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +150 -0
  300. package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +84 -0
  301. package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +10 -0
  302. package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +16 -0
  303. package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +11 -0
  304. package/runtime/node_modules/@petamoriken/float16/package.json +115 -0
  305. package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +35 -0
  306. package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +1194 -0
  307. package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +86 -0
  308. package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +31 -0
  309. package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +173 -0
  310. package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +151 -0
  311. package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +22 -0
  312. package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +254 -0
  313. package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +137 -0
  314. package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +10 -0
  315. package/runtime/node_modules/@petamoriken/float16/src/index.mjs +7 -0
  316. package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +10 -0
  317. package/runtime/node_modules/get-tsconfig/LICENSE +21 -0
  318. package/runtime/node_modules/get-tsconfig/README.md +268 -0
  319. package/runtime/node_modules/get-tsconfig/dist/index.cjs +7 -0
  320. package/runtime/node_modules/get-tsconfig/dist/index.d.cts +2116 -0
  321. package/runtime/node_modules/get-tsconfig/dist/index.d.mts +2116 -0
  322. package/runtime/node_modules/get-tsconfig/dist/index.mjs +7 -0
  323. package/runtime/node_modules/get-tsconfig/package.json +46 -0
  324. package/runtime/node_modules/jsbi/LICENSE +176 -0
  325. package/runtime/node_modules/jsbi/README.md +173 -0
  326. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  327. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +1 -0
  328. package/runtime/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  329. package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +1 -0
  330. package/runtime/node_modules/jsbi/dist/jsbi.mjs +2 -0
  331. package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +1 -0
  332. package/runtime/node_modules/jsbi/jsbi.d.ts +43 -0
  333. package/runtime/node_modules/jsbi/package.json +35 -0
  334. package/runtime/node_modules/oxc-parser/LICENSE +22 -0
  335. package/runtime/node_modules/oxc-parser/README.md +167 -0
  336. package/runtime/node_modules/oxc-parser/package.json +153 -0
  337. package/runtime/node_modules/oxc-parser/src-js/bindings.js +601 -0
  338. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +105 -0
  339. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +5862 -0
  340. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +6403 -0
  341. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +6154 -0
  342. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +6723 -0
  343. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +13875 -0
  344. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +191 -0
  345. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +5810 -0
  346. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +220 -0
  347. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +177 -0
  348. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +387 -0
  349. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +2455 -0
  350. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +312 -0
  351. package/runtime/node_modules/oxc-parser/src-js/index.js +108 -0
  352. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +301 -0
  353. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +255 -0
  354. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +11 -0
  355. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +162 -0
  356. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +365 -0
  357. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +52 -0
  358. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +127 -0
  359. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +41 -0
  360. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +405 -0
  361. package/runtime/node_modules/oxc-parser/src-js/wasm.js +13 -0
  362. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +21 -0
  363. package/runtime/node_modules/oxc-parser/src-js/wrap.js +57 -0
  364. package/runtime/node_modules/oxc-transform/LICENSE +22 -0
  365. package/runtime/node_modules/oxc-transform/README.md +84 -0
  366. package/runtime/node_modules/oxc-transform/browser.js +1 -0
  367. package/runtime/node_modules/oxc-transform/index.d.ts +658 -0
  368. package/runtime/node_modules/oxc-transform/index.js +598 -0
  369. package/runtime/node_modules/oxc-transform/package.json +114 -0
  370. package/runtime/node_modules/oxc-transform/webcontainer-fallback.cjs +21 -0
  371. package/runtime/node_modules/resolve-pkg-maps/LICENSE +21 -0
  372. package/runtime/node_modules/resolve-pkg-maps/README.md +216 -0
  373. package/runtime/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
  374. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
  375. package/runtime/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
  376. package/runtime/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
  377. package/runtime/node_modules/resolve-pkg-maps/package.json +42 -0
  378. package/runtime/node_modules/urlpattern-polyfill/LICENSE +19 -0
  379. package/runtime/node_modules/urlpattern-polyfill/README.md +242 -0
  380. package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +9 -0
  381. package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +49 -0
  382. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +1 -0
  383. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +1 -0
  384. package/runtime/node_modules/urlpattern-polyfill/index.cjs +7 -0
  385. package/runtime/node_modules/urlpattern-polyfill/index.js +7 -0
  386. package/runtime/node_modules/urlpattern-polyfill/package.json +149 -0
  387. package/runtime/version.mjs +1 -1
@@ -0,0 +1,1340 @@
1
+ /*! @petamoriken/float16 v3.9.3 | MIT License - https://github.com/petamoriken/float16 */
2
+
3
+ var float16 = (function (exports) {
4
+ 'use strict';
5
+
6
+ const THIS_IS_NOT_AN_OBJECT = "This is not an object";
7
+ const THIS_IS_NOT_A_FLOAT16ARRAY_OBJECT = "This is not a Float16Array object";
8
+ const THIS_CONSTRUCTOR_IS_NOT_A_SUBCLASS_OF_FLOAT16ARRAY =
9
+ "This constructor is not a subclass of Float16Array";
10
+ const THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT =
11
+ "The constructor property value is not an object";
12
+ const SPECIES_CONSTRUCTOR_DIDNT_RETURN_TYPEDARRAY_OBJECT =
13
+ "Species constructor didn't return TypedArray object";
14
+ const DERIVED_CONSTRUCTOR_CREATED_TYPEDARRAY_OBJECT_WHICH_WAS_TOO_SMALL_LENGTH =
15
+ "Derived constructor created TypedArray object which was too small length";
16
+ const ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER =
17
+ "Attempting to access detached ArrayBuffer";
18
+ const CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT =
19
+ "Cannot convert undefined or null to object";
20
+ const CANNOT_MIX_BIGINT_AND_OTHER_TYPES =
21
+ "Cannot mix BigInt and other types, use explicit conversions";
22
+ const ITERATOR_PROPERTY_IS_NOT_CALLABLE = "@@iterator property is not callable";
23
+ const REDUCE_OF_EMPTY_ARRAY_WITH_NO_INITIAL_VALUE =
24
+ "Reduce of empty array with no initial value";
25
+ const THE_COMPARISON_FUNCTION_MUST_BE_EITHER_A_FUNCTION_OR_UNDEFINED =
26
+ "The comparison function must be either a function or undefined";
27
+ const OFFSET_IS_OUT_OF_BOUNDS = "Offset is out of bounds";
28
+
29
+ function uncurryThis(target) {
30
+ return (thisArg, ...args) => {
31
+ return ReflectApply(target, thisArg, args);
32
+ };
33
+ }
34
+ function uncurryThisGetter(target, key) {
35
+ return uncurryThis(
36
+ ReflectGetOwnPropertyDescriptor(
37
+ target,
38
+ key
39
+ ).get
40
+ );
41
+ }
42
+ const {
43
+ apply: ReflectApply,
44
+ construct: ReflectConstruct,
45
+ defineProperty: ReflectDefineProperty,
46
+ get: ReflectGet,
47
+ getOwnPropertyDescriptor: ReflectGetOwnPropertyDescriptor,
48
+ getPrototypeOf: ReflectGetPrototypeOf,
49
+ has: ReflectHas,
50
+ ownKeys: ReflectOwnKeys,
51
+ set: ReflectSet,
52
+ setPrototypeOf: ReflectSetPrototypeOf,
53
+ } = Reflect;
54
+ const NativeProxy = Proxy;
55
+ const {
56
+ EPSILON,
57
+ MAX_SAFE_INTEGER,
58
+ isFinite: NumberIsFinite,
59
+ isNaN: NumberIsNaN,
60
+ } = Number;
61
+ const {
62
+ iterator: SymbolIterator,
63
+ species: SymbolSpecies,
64
+ toStringTag: SymbolToStringTag,
65
+ for: SymbolFor,
66
+ } = Symbol;
67
+ const NativeObject = Object;
68
+ const {
69
+ create: ObjectCreate,
70
+ defineProperty: ObjectDefineProperty,
71
+ freeze: ObjectFreeze,
72
+ is: ObjectIs,
73
+ } = NativeObject;
74
+ const ObjectPrototype = NativeObject.prototype;
75
+ const ObjectPrototype__lookupGetter__ = (ObjectPrototype).__lookupGetter__
76
+ ? uncurryThis( (ObjectPrototype).__lookupGetter__)
77
+ : (object, key) => {
78
+ if (object == null) {
79
+ throw NativeTypeError(
80
+ CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT
81
+ );
82
+ }
83
+ let target = NativeObject(object);
84
+ do {
85
+ const descriptor = ReflectGetOwnPropertyDescriptor(target, key);
86
+ if (descriptor !== undefined) {
87
+ if (ObjectHasOwn(descriptor, "get")) {
88
+ return descriptor.get;
89
+ }
90
+ return;
91
+ }
92
+ } while ((target = ReflectGetPrototypeOf(target)) !== null);
93
+ };
94
+ const ObjectHasOwn = (NativeObject).hasOwn ||
95
+ uncurryThis(ObjectPrototype.hasOwnProperty);
96
+ const NativeArray = Array;
97
+ const ArrayIsArray = NativeArray.isArray;
98
+ const ArrayPrototype = NativeArray.prototype;
99
+ const ArrayPrototypeJoin = uncurryThis(ArrayPrototype.join);
100
+ const ArrayPrototypePush = uncurryThis(ArrayPrototype.push);
101
+ const ArrayPrototypeToLocaleString = uncurryThis(
102
+ ArrayPrototype.toLocaleString
103
+ );
104
+ const NativeArrayPrototypeSymbolIterator = ArrayPrototype[SymbolIterator];
105
+ const ArrayPrototypeSymbolIterator = uncurryThis(NativeArrayPrototypeSymbolIterator);
106
+ const {
107
+ abs: MathAbs,
108
+ trunc: MathTrunc,
109
+ } = Math;
110
+ const NativeArrayBuffer = ArrayBuffer;
111
+ const ArrayBufferIsView = NativeArrayBuffer.isView;
112
+ const ArrayBufferPrototype = NativeArrayBuffer.prototype;
113
+ const ArrayBufferPrototypeSlice = uncurryThis(ArrayBufferPrototype.slice);
114
+ const ArrayBufferPrototypeGetByteLength = uncurryThisGetter(ArrayBufferPrototype, "byteLength");
115
+ const NativeSharedArrayBuffer = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : null;
116
+ const SharedArrayBufferPrototypeGetByteLength = NativeSharedArrayBuffer
117
+ && uncurryThisGetter(NativeSharedArrayBuffer.prototype, "byteLength");
118
+ const TypedArray = ReflectGetPrototypeOf(Uint8Array);
119
+ const TypedArrayFrom = TypedArray.from;
120
+ const TypedArrayPrototype = TypedArray.prototype;
121
+ const NativeTypedArrayPrototypeSymbolIterator = TypedArrayPrototype[SymbolIterator];
122
+ const TypedArrayPrototypeKeys = uncurryThis(TypedArrayPrototype.keys);
123
+ const TypedArrayPrototypeValues = uncurryThis(
124
+ TypedArrayPrototype.values
125
+ );
126
+ const TypedArrayPrototypeEntries = uncurryThis(
127
+ TypedArrayPrototype.entries
128
+ );
129
+ const TypedArrayPrototypeSet = uncurryThis(TypedArrayPrototype.set);
130
+ const TypedArrayPrototypeReverse = uncurryThis(
131
+ TypedArrayPrototype.reverse
132
+ );
133
+ const TypedArrayPrototypeFill = uncurryThis(TypedArrayPrototype.fill);
134
+ const TypedArrayPrototypeCopyWithin = uncurryThis(
135
+ TypedArrayPrototype.copyWithin
136
+ );
137
+ const TypedArrayPrototypeSort = uncurryThis(TypedArrayPrototype.sort);
138
+ const TypedArrayPrototypeSlice = uncurryThis(TypedArrayPrototype.slice);
139
+ const TypedArrayPrototypeSubarray = uncurryThis(
140
+ TypedArrayPrototype.subarray
141
+ );
142
+ const TypedArrayPrototypeGetBuffer = uncurryThisGetter(
143
+ TypedArrayPrototype,
144
+ "buffer"
145
+ );
146
+ const TypedArrayPrototypeGetByteOffset = uncurryThisGetter(
147
+ TypedArrayPrototype,
148
+ "byteOffset"
149
+ );
150
+ const TypedArrayPrototypeGetLength = uncurryThisGetter(
151
+ TypedArrayPrototype,
152
+ "length"
153
+ );
154
+ const TypedArrayPrototypeGetSymbolToStringTag = uncurryThisGetter(
155
+ TypedArrayPrototype,
156
+ SymbolToStringTag
157
+ );
158
+ const NativeUint8Array = Uint8Array;
159
+ const NativeUint16Array = Uint16Array;
160
+ const Uint16ArrayFrom = (...args) => {
161
+ return ReflectApply(TypedArrayFrom, NativeUint16Array, args);
162
+ };
163
+ const NativeUint32Array = Uint32Array;
164
+ const NativeFloat32Array = Float32Array;
165
+ const ArrayIteratorPrototype = ReflectGetPrototypeOf([][SymbolIterator]());
166
+ const ArrayIteratorPrototypeNext = uncurryThis(ArrayIteratorPrototype.next);
167
+ const GeneratorPrototypeNext = uncurryThis((function* () {})().next);
168
+ const IteratorPrototype = ReflectGetPrototypeOf(ArrayIteratorPrototype);
169
+ const DataViewPrototype = DataView.prototype;
170
+ const DataViewPrototypeGetUint16 = uncurryThis(
171
+ DataViewPrototype.getUint16
172
+ );
173
+ const DataViewPrototypeSetUint16 = uncurryThis(
174
+ DataViewPrototype.setUint16
175
+ );
176
+ const NativeTypeError = TypeError;
177
+ const NativeRangeError = RangeError;
178
+ const NativeWeakSet = WeakSet;
179
+ const WeakSetPrototype = NativeWeakSet.prototype;
180
+ const WeakSetPrototypeAdd = uncurryThis(WeakSetPrototype.add);
181
+ const WeakSetPrototypeHas = uncurryThis(WeakSetPrototype.has);
182
+ const NativeWeakMap = WeakMap;
183
+ const WeakMapPrototype = NativeWeakMap.prototype;
184
+ const WeakMapPrototypeGet = uncurryThis(WeakMapPrototype.get);
185
+ const WeakMapPrototypeHas = uncurryThis(WeakMapPrototype.has);
186
+ const WeakMapPrototypeSet = uncurryThis(WeakMapPrototype.set);
187
+
188
+ const arrayIterators = new NativeWeakMap();
189
+ const SafeIteratorPrototype = ObjectCreate(null, {
190
+ next: {
191
+ value: function next() {
192
+ const arrayIterator = WeakMapPrototypeGet(arrayIterators, this);
193
+ return ArrayIteratorPrototypeNext(arrayIterator);
194
+ },
195
+ },
196
+ [SymbolIterator]: {
197
+ value: function values() {
198
+ return this;
199
+ },
200
+ },
201
+ });
202
+ function safeIfNeeded(array) {
203
+ if (
204
+ array[SymbolIterator] === NativeArrayPrototypeSymbolIterator &&
205
+ ArrayIteratorPrototype.next === ArrayIteratorPrototypeNext
206
+ ) {
207
+ return array;
208
+ }
209
+ const safe = ObjectCreate(SafeIteratorPrototype);
210
+ WeakMapPrototypeSet(arrayIterators, safe, ArrayPrototypeSymbolIterator(array));
211
+ return safe;
212
+ }
213
+ const generators = new NativeWeakMap();
214
+ const DummyArrayIteratorPrototype = ObjectCreate(IteratorPrototype, {
215
+ next: {
216
+ value: function next() {
217
+ const generator = WeakMapPrototypeGet(generators, this);
218
+ return GeneratorPrototypeNext(generator);
219
+ },
220
+ writable: true,
221
+ configurable: true,
222
+ },
223
+ });
224
+ for (const key of ReflectOwnKeys(ArrayIteratorPrototype)) {
225
+ if (key === "next") {
226
+ continue;
227
+ }
228
+ ObjectDefineProperty(DummyArrayIteratorPrototype, key, ReflectGetOwnPropertyDescriptor(ArrayIteratorPrototype, key));
229
+ }
230
+ function wrap(generator) {
231
+ const dummy = ObjectCreate(DummyArrayIteratorPrototype);
232
+ WeakMapPrototypeSet(generators, dummy, generator);
233
+ return dummy;
234
+ }
235
+
236
+ function isObject(value) {
237
+ return (
238
+ (value !== null && typeof value === "object") ||
239
+ typeof value === "function"
240
+ );
241
+ }
242
+ function isObjectLike(value) {
243
+ return value !== null && typeof value === "object";
244
+ }
245
+ function isNativeTypedArray(value) {
246
+ return TypedArrayPrototypeGetSymbolToStringTag(value) !== undefined;
247
+ }
248
+ function isNativeBigIntTypedArray(value) {
249
+ const typedArrayName = TypedArrayPrototypeGetSymbolToStringTag(value);
250
+ return (
251
+ typedArrayName === "BigInt64Array" ||
252
+ typedArrayName === "BigUint64Array"
253
+ );
254
+ }
255
+ function isArrayBuffer(value) {
256
+ try {
257
+ if (ArrayIsArray(value)) {
258
+ return false;
259
+ }
260
+ ArrayBufferPrototypeGetByteLength( (value));
261
+ return true;
262
+ } catch (e) {
263
+ return false;
264
+ }
265
+ }
266
+ function isSharedArrayBuffer(value) {
267
+ if (NativeSharedArrayBuffer === null) {
268
+ return false;
269
+ }
270
+ try {
271
+ SharedArrayBufferPrototypeGetByteLength( (value));
272
+ return true;
273
+ } catch (e) {
274
+ return false;
275
+ }
276
+ }
277
+ function isAnyArrayBuffer(value) {
278
+ return isArrayBuffer(value) || isSharedArrayBuffer(value);
279
+ }
280
+ function isOrdinaryArray(value) {
281
+ if (!ArrayIsArray(value)) {
282
+ return false;
283
+ }
284
+ return (
285
+ value[SymbolIterator] === NativeArrayPrototypeSymbolIterator &&
286
+ ArrayIteratorPrototype.next === ArrayIteratorPrototypeNext
287
+ );
288
+ }
289
+ function isOrdinaryNativeTypedArray(value) {
290
+ if (!isNativeTypedArray(value)) {
291
+ return false;
292
+ }
293
+ return (
294
+ value[SymbolIterator] === NativeTypedArrayPrototypeSymbolIterator &&
295
+ ArrayIteratorPrototype.next === ArrayIteratorPrototypeNext
296
+ );
297
+ }
298
+ function isCanonicalIntegerIndexString(value) {
299
+ if (typeof value !== "string") {
300
+ return false;
301
+ }
302
+ const number = +value;
303
+ if (value !== number + "") {
304
+ return false;
305
+ }
306
+ if (!NumberIsFinite(number)) {
307
+ return false;
308
+ }
309
+ return number === MathTrunc(number);
310
+ }
311
+
312
+ const brand = SymbolFor("__Float16Array__");
313
+ function hasFloat16ArrayBrand(target) {
314
+ if (!isObjectLike(target)) {
315
+ return false;
316
+ }
317
+ const prototype = ReflectGetPrototypeOf(target);
318
+ if (!isObjectLike(prototype)) {
319
+ return false;
320
+ }
321
+ const constructor = prototype.constructor;
322
+ if (constructor === undefined) {
323
+ return false;
324
+ }
325
+ if (!isObject(constructor)) {
326
+ throw NativeTypeError(THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
327
+ }
328
+ return ReflectHas(constructor, brand);
329
+ }
330
+
331
+ const INVERSE_OF_EPSILON = 1 / EPSILON;
332
+ function roundTiesToEven(num) {
333
+ return (num + INVERSE_OF_EPSILON) - INVERSE_OF_EPSILON;
334
+ }
335
+ const FLOAT16_MIN_VALUE = 6.103515625e-05;
336
+ const FLOAT16_MAX_VALUE = 65504;
337
+ const FLOAT16_EPSILON = 0.0009765625;
338
+ const FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE = FLOAT16_EPSILON * FLOAT16_MIN_VALUE;
339
+ const FLOAT16_EPSILON_DEVIDED_BY_EPSILON = FLOAT16_EPSILON * INVERSE_OF_EPSILON;
340
+ function roundToFloat16(num) {
341
+ const number = +num;
342
+ if (!NumberIsFinite(number) || number === 0) {
343
+ return number;
344
+ }
345
+ const sign = number > 0 ? 1 : -1;
346
+ const absolute = MathAbs(number);
347
+ if (absolute < FLOAT16_MIN_VALUE) {
348
+ return sign * roundTiesToEven(absolute / FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE) * FLOAT16_EPSILON_MULTIPLIED_BY_FLOAT16_MIN_VALUE;
349
+ }
350
+ const temp = (1 + FLOAT16_EPSILON_DEVIDED_BY_EPSILON) * absolute;
351
+ const result = temp - (temp - absolute);
352
+ if (result > FLOAT16_MAX_VALUE || NumberIsNaN(result)) {
353
+ return sign * Infinity;
354
+ }
355
+ return sign * result;
356
+ }
357
+ const buffer = new NativeArrayBuffer(4);
358
+ const floatView = new NativeFloat32Array(buffer);
359
+ const uint32View = new NativeUint32Array(buffer);
360
+ const baseTable = new NativeUint16Array(512);
361
+ const shiftTable = new NativeUint8Array(512);
362
+ for (let i = 0; i < 256; ++i) {
363
+ const e = i - 127;
364
+ if (e < -24) {
365
+ baseTable[i] = 0x0000;
366
+ baseTable[i | 0x100] = 0x8000;
367
+ shiftTable[i] = 24;
368
+ shiftTable[i | 0x100] = 24;
369
+ } else if (e < -14) {
370
+ baseTable[i] = 0x0400 >> (-e - 14);
371
+ baseTable[i | 0x100] = (0x0400 >> (-e - 14)) | 0x8000;
372
+ shiftTable[i] = -e - 1;
373
+ shiftTable[i | 0x100] = -e - 1;
374
+ } else if (e <= 15) {
375
+ baseTable[i] = (e + 15) << 10;
376
+ baseTable[i | 0x100] = ((e + 15) << 10) | 0x8000;
377
+ shiftTable[i] = 13;
378
+ shiftTable[i | 0x100] = 13;
379
+ } else if (e < 128) {
380
+ baseTable[i] = 0x7c00;
381
+ baseTable[i | 0x100] = 0xfc00;
382
+ shiftTable[i] = 24;
383
+ shiftTable[i | 0x100] = 24;
384
+ } else {
385
+ baseTable[i] = 0x7c00;
386
+ baseTable[i | 0x100] = 0xfc00;
387
+ shiftTable[i] = 13;
388
+ shiftTable[i | 0x100] = 13;
389
+ }
390
+ }
391
+ function roundToFloat16Bits(num) {
392
+ floatView[0] = roundToFloat16(num);
393
+ const f = uint32View[0];
394
+ const e = (f >> 23) & 0x1ff;
395
+ return baseTable[e] + ((f & 0x007fffff) >> shiftTable[e]);
396
+ }
397
+ const mantissaTable = new NativeUint32Array(2048);
398
+ for (let i = 1; i < 1024; ++i) {
399
+ let m = i << 13;
400
+ let e = 0;
401
+ while ((m & 0x00800000) === 0) {
402
+ m <<= 1;
403
+ e -= 0x00800000;
404
+ }
405
+ m &= -8388609;
406
+ e += 0x38800000;
407
+ mantissaTable[i] = m | e;
408
+ }
409
+ for (let i = 1024; i < 2048; ++i) {
410
+ mantissaTable[i] = 0x38000000 + ((i - 1024) << 13);
411
+ }
412
+ const exponentTable = new NativeUint32Array(64);
413
+ for (let i = 1; i < 31; ++i) {
414
+ exponentTable[i] = i << 23;
415
+ }
416
+ exponentTable[31] = 0x47800000;
417
+ exponentTable[32] = 0x80000000;
418
+ for (let i = 33; i < 63; ++i) {
419
+ exponentTable[i] = 0x80000000 + ((i - 32) << 23);
420
+ }
421
+ exponentTable[63] = 0xc7800000;
422
+ const offsetTable = new NativeUint16Array(64);
423
+ for (let i = 1; i < 64; ++i) {
424
+ if (i !== 32) {
425
+ offsetTable[i] = 1024;
426
+ }
427
+ }
428
+ function convertToNumber(float16bits) {
429
+ const i = float16bits >> 10;
430
+ uint32View[0] = mantissaTable[offsetTable[i] + (float16bits & 0x3ff)] + exponentTable[i];
431
+ return floatView[0];
432
+ }
433
+
434
+ function ToIntegerOrInfinity(target) {
435
+ const number = +target;
436
+ if (NumberIsNaN(number) || number === 0) {
437
+ return 0;
438
+ }
439
+ return MathTrunc(number);
440
+ }
441
+ function ToLength(target) {
442
+ const length = ToIntegerOrInfinity(target);
443
+ if (length < 0) {
444
+ return 0;
445
+ }
446
+ return length < MAX_SAFE_INTEGER
447
+ ? length
448
+ : MAX_SAFE_INTEGER;
449
+ }
450
+ function SpeciesConstructor(target, defaultConstructor) {
451
+ if (!isObject(target)) {
452
+ throw NativeTypeError(THIS_IS_NOT_AN_OBJECT);
453
+ }
454
+ const constructor = target.constructor;
455
+ if (constructor === undefined) {
456
+ return defaultConstructor;
457
+ }
458
+ if (!isObject(constructor)) {
459
+ throw NativeTypeError(THE_CONSTRUCTOR_PROPERTY_VALUE_IS_NOT_AN_OBJECT);
460
+ }
461
+ const species = constructor[SymbolSpecies];
462
+ if (species == null) {
463
+ return defaultConstructor;
464
+ }
465
+ return species;
466
+ }
467
+ function IsDetachedBuffer(buffer) {
468
+ if (isSharedArrayBuffer(buffer)) {
469
+ return false;
470
+ }
471
+ try {
472
+ ArrayBufferPrototypeSlice(buffer, 0, 0);
473
+ return false;
474
+ } catch (e) {}
475
+ return true;
476
+ }
477
+ function defaultCompare(x, y) {
478
+ const isXNaN = NumberIsNaN(x);
479
+ const isYNaN = NumberIsNaN(y);
480
+ if (isXNaN && isYNaN) {
481
+ return 0;
482
+ }
483
+ if (isXNaN) {
484
+ return 1;
485
+ }
486
+ if (isYNaN) {
487
+ return -1;
488
+ }
489
+ if (x < y) {
490
+ return -1;
491
+ }
492
+ if (x > y) {
493
+ return 1;
494
+ }
495
+ if (x === 0 && y === 0) {
496
+ const isXPlusZero = ObjectIs(x, 0);
497
+ const isYPlusZero = ObjectIs(y, 0);
498
+ if (!isXPlusZero && isYPlusZero) {
499
+ return -1;
500
+ }
501
+ if (isXPlusZero && !isYPlusZero) {
502
+ return 1;
503
+ }
504
+ }
505
+ return 0;
506
+ }
507
+
508
+ const BYTES_PER_ELEMENT = 2;
509
+ const float16bitsArrays = new NativeWeakMap();
510
+ function isFloat16Array(target) {
511
+ return WeakMapPrototypeHas(float16bitsArrays, target) ||
512
+ (!ArrayBufferIsView(target) && hasFloat16ArrayBrand(target));
513
+ }
514
+ function assertFloat16Array(target) {
515
+ if (!isFloat16Array(target)) {
516
+ throw NativeTypeError(THIS_IS_NOT_A_FLOAT16ARRAY_OBJECT);
517
+ }
518
+ }
519
+ function assertSpeciesTypedArray(target, count) {
520
+ const isTargetFloat16Array = isFloat16Array(target);
521
+ const isTargetTypedArray = isNativeTypedArray(target);
522
+ if (!isTargetFloat16Array && !isTargetTypedArray) {
523
+ throw NativeTypeError(SPECIES_CONSTRUCTOR_DIDNT_RETURN_TYPEDARRAY_OBJECT);
524
+ }
525
+ if (typeof count === "number") {
526
+ let length;
527
+ if (isTargetFloat16Array) {
528
+ const float16bitsArray = getFloat16BitsArray(target);
529
+ length = TypedArrayPrototypeGetLength(float16bitsArray);
530
+ } else {
531
+ length = TypedArrayPrototypeGetLength(target);
532
+ }
533
+ if (length < count) {
534
+ throw NativeTypeError(
535
+ DERIVED_CONSTRUCTOR_CREATED_TYPEDARRAY_OBJECT_WHICH_WAS_TOO_SMALL_LENGTH
536
+ );
537
+ }
538
+ }
539
+ if (isNativeBigIntTypedArray(target)) {
540
+ throw NativeTypeError(CANNOT_MIX_BIGINT_AND_OTHER_TYPES);
541
+ }
542
+ }
543
+ function getFloat16BitsArray(float16) {
544
+ const float16bitsArray = WeakMapPrototypeGet(float16bitsArrays, float16);
545
+ if (float16bitsArray !== undefined) {
546
+ const buffer = TypedArrayPrototypeGetBuffer(float16bitsArray);
547
+ if (IsDetachedBuffer(buffer)) {
548
+ throw NativeTypeError(ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER);
549
+ }
550
+ return float16bitsArray;
551
+ }
552
+ const buffer = (float16).buffer;
553
+ if (IsDetachedBuffer(buffer)) {
554
+ throw NativeTypeError(ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER);
555
+ }
556
+ const cloned = ReflectConstruct(Float16Array, [
557
+ buffer,
558
+ (float16).byteOffset,
559
+ (float16).length,
560
+ ], float16.constructor);
561
+ return WeakMapPrototypeGet(float16bitsArrays, cloned);
562
+ }
563
+ function copyToArray(float16bitsArray) {
564
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
565
+ const array = [];
566
+ for (let i = 0; i < length; ++i) {
567
+ array[i] = convertToNumber(float16bitsArray[i]);
568
+ }
569
+ return array;
570
+ }
571
+ const TypedArrayPrototypeGetters = new NativeWeakSet();
572
+ for (const key of ReflectOwnKeys(TypedArrayPrototype)) {
573
+ if (key === SymbolToStringTag) {
574
+ continue;
575
+ }
576
+ const descriptor = ReflectGetOwnPropertyDescriptor(TypedArrayPrototype, key);
577
+ if (ObjectHasOwn(descriptor, "get") && typeof descriptor.get === "function") {
578
+ WeakSetPrototypeAdd(TypedArrayPrototypeGetters, descriptor.get);
579
+ }
580
+ }
581
+ const handler = ObjectFreeze( ({
582
+ get(target, key, receiver) {
583
+ if (isCanonicalIntegerIndexString(key) && ObjectHasOwn(target, key)) {
584
+ return convertToNumber(ReflectGet(target, key));
585
+ }
586
+ if (WeakSetPrototypeHas(TypedArrayPrototypeGetters, ObjectPrototype__lookupGetter__(target, key))) {
587
+ return ReflectGet(target, key);
588
+ }
589
+ return ReflectGet(target, key, receiver);
590
+ },
591
+ set(target, key, value, receiver) {
592
+ if (isCanonicalIntegerIndexString(key) && ObjectHasOwn(target, key)) {
593
+ return ReflectSet(target, key, roundToFloat16Bits(value));
594
+ }
595
+ return ReflectSet(target, key, value, receiver);
596
+ },
597
+ getOwnPropertyDescriptor(target, key) {
598
+ if (isCanonicalIntegerIndexString(key) && ObjectHasOwn(target, key)) {
599
+ const descriptor = ReflectGetOwnPropertyDescriptor(target, key);
600
+ descriptor.value = convertToNumber(descriptor.value);
601
+ return descriptor;
602
+ }
603
+ return ReflectGetOwnPropertyDescriptor(target, key);
604
+ },
605
+ defineProperty(target, key, descriptor) {
606
+ if (
607
+ isCanonicalIntegerIndexString(key) &&
608
+ ObjectHasOwn(target, key) &&
609
+ ObjectHasOwn(descriptor, "value")
610
+ ) {
611
+ descriptor.value = roundToFloat16Bits(descriptor.value);
612
+ return ReflectDefineProperty(target, key, descriptor);
613
+ }
614
+ return ReflectDefineProperty(target, key, descriptor);
615
+ },
616
+ }));
617
+ class Float16Array {
618
+ constructor(input, _byteOffset, _length) {
619
+ let float16bitsArray;
620
+ if (isFloat16Array(input)) {
621
+ float16bitsArray = ReflectConstruct(NativeUint16Array, [getFloat16BitsArray(input)], new.target);
622
+ } else if (isObject(input) && !isAnyArrayBuffer(input)) {
623
+ let list;
624
+ let length;
625
+ if (isNativeTypedArray(input)) {
626
+ list = input;
627
+ length = TypedArrayPrototypeGetLength(input);
628
+ const buffer = TypedArrayPrototypeGetBuffer(input);
629
+ if (IsDetachedBuffer(buffer)) {
630
+ throw NativeTypeError(ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER);
631
+ }
632
+ if (isNativeBigIntTypedArray(input)) {
633
+ throw NativeTypeError(CANNOT_MIX_BIGINT_AND_OTHER_TYPES);
634
+ }
635
+ const data = new NativeArrayBuffer(
636
+ length * BYTES_PER_ELEMENT
637
+ );
638
+ float16bitsArray = ReflectConstruct(NativeUint16Array, [data], new.target);
639
+ } else {
640
+ const iterator = input[SymbolIterator];
641
+ if (iterator != null && typeof iterator !== "function") {
642
+ throw NativeTypeError(ITERATOR_PROPERTY_IS_NOT_CALLABLE);
643
+ }
644
+ if (iterator != null) {
645
+ if (isOrdinaryArray(input)) {
646
+ list = input;
647
+ length = input.length;
648
+ } else {
649
+ list = [... (input)];
650
+ length = list.length;
651
+ }
652
+ } else {
653
+ list = (input);
654
+ length = ToLength(list.length);
655
+ }
656
+ float16bitsArray = ReflectConstruct(NativeUint16Array, [length], new.target);
657
+ }
658
+ for (let i = 0; i < length; ++i) {
659
+ float16bitsArray[i] = roundToFloat16Bits(list[i]);
660
+ }
661
+ } else {
662
+ float16bitsArray = ReflectConstruct(NativeUint16Array, arguments, new.target);
663
+ }
664
+ const proxy = (new NativeProxy(float16bitsArray, handler));
665
+ WeakMapPrototypeSet(float16bitsArrays, proxy, float16bitsArray);
666
+ return proxy;
667
+ }
668
+ static from(src, ...opts) {
669
+ const Constructor = this;
670
+ if (!ReflectHas(Constructor, brand)) {
671
+ throw NativeTypeError(
672
+ THIS_CONSTRUCTOR_IS_NOT_A_SUBCLASS_OF_FLOAT16ARRAY
673
+ );
674
+ }
675
+ if (Constructor === Float16Array) {
676
+ if (isFloat16Array(src) && opts.length === 0) {
677
+ const float16bitsArray = getFloat16BitsArray(src);
678
+ const uint16 = new NativeUint16Array(
679
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
680
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
681
+ TypedArrayPrototypeGetLength(float16bitsArray)
682
+ );
683
+ return new Float16Array(
684
+ TypedArrayPrototypeGetBuffer(TypedArrayPrototypeSlice(uint16))
685
+ );
686
+ }
687
+ if (opts.length === 0) {
688
+ return new Float16Array(
689
+ TypedArrayPrototypeGetBuffer(
690
+ Uint16ArrayFrom(src, roundToFloat16Bits)
691
+ )
692
+ );
693
+ }
694
+ const mapFunc = opts[0];
695
+ const thisArg = opts[1];
696
+ return new Float16Array(
697
+ TypedArrayPrototypeGetBuffer(
698
+ Uint16ArrayFrom(src, function (val, ...args) {
699
+ return roundToFloat16Bits(
700
+ ReflectApply(mapFunc, this, [val, ...safeIfNeeded(args)])
701
+ );
702
+ }, thisArg)
703
+ )
704
+ );
705
+ }
706
+ let list;
707
+ let length;
708
+ const iterator = src[SymbolIterator];
709
+ if (iterator != null && typeof iterator !== "function") {
710
+ throw NativeTypeError(ITERATOR_PROPERTY_IS_NOT_CALLABLE);
711
+ }
712
+ if (iterator != null) {
713
+ if (isOrdinaryArray(src)) {
714
+ list = src;
715
+ length = src.length;
716
+ } else if (isOrdinaryNativeTypedArray(src)) {
717
+ list = src;
718
+ length = TypedArrayPrototypeGetLength(src);
719
+ } else {
720
+ list = [...src];
721
+ length = list.length;
722
+ }
723
+ } else {
724
+ if (src == null) {
725
+ throw NativeTypeError(
726
+ CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT
727
+ );
728
+ }
729
+ list = NativeObject(src);
730
+ length = ToLength(list.length);
731
+ }
732
+ const array = new Constructor(length);
733
+ if (opts.length === 0) {
734
+ for (let i = 0; i < length; ++i) {
735
+ array[i] = (list[i]);
736
+ }
737
+ } else {
738
+ const mapFunc = opts[0];
739
+ const thisArg = opts[1];
740
+ for (let i = 0; i < length; ++i) {
741
+ array[i] = ReflectApply(mapFunc, thisArg, [list[i], i]);
742
+ }
743
+ }
744
+ return array;
745
+ }
746
+ static of(...items) {
747
+ const Constructor = this;
748
+ if (!ReflectHas(Constructor, brand)) {
749
+ throw NativeTypeError(
750
+ THIS_CONSTRUCTOR_IS_NOT_A_SUBCLASS_OF_FLOAT16ARRAY
751
+ );
752
+ }
753
+ const length = items.length;
754
+ if (Constructor === Float16Array) {
755
+ const proxy = new Float16Array(length);
756
+ const float16bitsArray = getFloat16BitsArray(proxy);
757
+ for (let i = 0; i < length; ++i) {
758
+ float16bitsArray[i] = roundToFloat16Bits(items[i]);
759
+ }
760
+ return proxy;
761
+ }
762
+ const array = new Constructor(length);
763
+ for (let i = 0; i < length; ++i) {
764
+ array[i] = items[i];
765
+ }
766
+ return array;
767
+ }
768
+ keys() {
769
+ assertFloat16Array(this);
770
+ const float16bitsArray = getFloat16BitsArray(this);
771
+ return TypedArrayPrototypeKeys(float16bitsArray);
772
+ }
773
+ values() {
774
+ assertFloat16Array(this);
775
+ const float16bitsArray = getFloat16BitsArray(this);
776
+ return wrap((function* () {
777
+ for (const val of TypedArrayPrototypeValues(float16bitsArray)) {
778
+ yield convertToNumber(val);
779
+ }
780
+ })());
781
+ }
782
+ entries() {
783
+ assertFloat16Array(this);
784
+ const float16bitsArray = getFloat16BitsArray(this);
785
+ return wrap((function* () {
786
+ for (const [i, val] of TypedArrayPrototypeEntries(float16bitsArray)) {
787
+ yield ([i, convertToNumber(val)]);
788
+ }
789
+ })());
790
+ }
791
+ at(index) {
792
+ assertFloat16Array(this);
793
+ const float16bitsArray = getFloat16BitsArray(this);
794
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
795
+ const relativeIndex = ToIntegerOrInfinity(index);
796
+ const k = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
797
+ if (k < 0 || k >= length) {
798
+ return;
799
+ }
800
+ return convertToNumber(float16bitsArray[k]);
801
+ }
802
+ with(index, value) {
803
+ assertFloat16Array(this);
804
+ const float16bitsArray = getFloat16BitsArray(this);
805
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
806
+ const relativeIndex = ToIntegerOrInfinity(index);
807
+ const k = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
808
+ const number = +value;
809
+ if (k < 0 || k >= length) {
810
+ throw NativeRangeError(OFFSET_IS_OUT_OF_BOUNDS);
811
+ }
812
+ const uint16 = new NativeUint16Array(
813
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
814
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
815
+ TypedArrayPrototypeGetLength(float16bitsArray)
816
+ );
817
+ const cloned = new Float16Array(
818
+ TypedArrayPrototypeGetBuffer(
819
+ TypedArrayPrototypeSlice(uint16)
820
+ )
821
+ );
822
+ const array = getFloat16BitsArray(cloned);
823
+ array[k] = roundToFloat16Bits(number);
824
+ return cloned;
825
+ }
826
+ map(callback, ...opts) {
827
+ assertFloat16Array(this);
828
+ const float16bitsArray = getFloat16BitsArray(this);
829
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
830
+ const thisArg = opts[0];
831
+ const Constructor = SpeciesConstructor(float16bitsArray, Float16Array);
832
+ if (Constructor === Float16Array) {
833
+ const proxy = new Float16Array(length);
834
+ const array = getFloat16BitsArray(proxy);
835
+ for (let i = 0; i < length; ++i) {
836
+ const val = convertToNumber(float16bitsArray[i]);
837
+ array[i] = roundToFloat16Bits(
838
+ ReflectApply(callback, thisArg, [val, i, this])
839
+ );
840
+ }
841
+ return proxy;
842
+ }
843
+ const array = new Constructor(length);
844
+ assertSpeciesTypedArray(array, length);
845
+ for (let i = 0; i < length; ++i) {
846
+ const val = convertToNumber(float16bitsArray[i]);
847
+ array[i] = ReflectApply(callback, thisArg, [val, i, this]);
848
+ }
849
+ return (array);
850
+ }
851
+ filter(callback, ...opts) {
852
+ assertFloat16Array(this);
853
+ const float16bitsArray = getFloat16BitsArray(this);
854
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
855
+ const thisArg = opts[0];
856
+ const kept = [];
857
+ for (let i = 0; i < length; ++i) {
858
+ const val = convertToNumber(float16bitsArray[i]);
859
+ if (ReflectApply(callback, thisArg, [val, i, this])) {
860
+ ArrayPrototypePush(kept, val);
861
+ }
862
+ }
863
+ const Constructor = SpeciesConstructor(float16bitsArray, Float16Array);
864
+ const array = new Constructor(kept);
865
+ assertSpeciesTypedArray(array);
866
+ return (array);
867
+ }
868
+ reduce(callback, ...opts) {
869
+ assertFloat16Array(this);
870
+ const float16bitsArray = getFloat16BitsArray(this);
871
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
872
+ if (length === 0 && opts.length === 0) {
873
+ throw NativeTypeError(REDUCE_OF_EMPTY_ARRAY_WITH_NO_INITIAL_VALUE);
874
+ }
875
+ let accumulator, start;
876
+ if (opts.length === 0) {
877
+ accumulator = convertToNumber(float16bitsArray[0]);
878
+ start = 1;
879
+ } else {
880
+ accumulator = opts[0];
881
+ start = 0;
882
+ }
883
+ for (let i = start; i < length; ++i) {
884
+ accumulator = callback(
885
+ accumulator,
886
+ convertToNumber(float16bitsArray[i]),
887
+ i,
888
+ this
889
+ );
890
+ }
891
+ return accumulator;
892
+ }
893
+ reduceRight(callback, ...opts) {
894
+ assertFloat16Array(this);
895
+ const float16bitsArray = getFloat16BitsArray(this);
896
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
897
+ if (length === 0 && opts.length === 0) {
898
+ throw NativeTypeError(REDUCE_OF_EMPTY_ARRAY_WITH_NO_INITIAL_VALUE);
899
+ }
900
+ let accumulator, start;
901
+ if (opts.length === 0) {
902
+ accumulator = convertToNumber(float16bitsArray[length - 1]);
903
+ start = length - 2;
904
+ } else {
905
+ accumulator = opts[0];
906
+ start = length - 1;
907
+ }
908
+ for (let i = start; i >= 0; --i) {
909
+ accumulator = callback(
910
+ accumulator,
911
+ convertToNumber(float16bitsArray[i]),
912
+ i,
913
+ this
914
+ );
915
+ }
916
+ return accumulator;
917
+ }
918
+ forEach(callback, ...opts) {
919
+ assertFloat16Array(this);
920
+ const float16bitsArray = getFloat16BitsArray(this);
921
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
922
+ const thisArg = opts[0];
923
+ for (let i = 0; i < length; ++i) {
924
+ ReflectApply(callback, thisArg, [
925
+ convertToNumber(float16bitsArray[i]),
926
+ i,
927
+ this,
928
+ ]);
929
+ }
930
+ }
931
+ find(callback, ...opts) {
932
+ assertFloat16Array(this);
933
+ const float16bitsArray = getFloat16BitsArray(this);
934
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
935
+ const thisArg = opts[0];
936
+ for (let i = 0; i < length; ++i) {
937
+ const value = convertToNumber(float16bitsArray[i]);
938
+ if (ReflectApply(callback, thisArg, [value, i, this])) {
939
+ return value;
940
+ }
941
+ }
942
+ }
943
+ findIndex(callback, ...opts) {
944
+ assertFloat16Array(this);
945
+ const float16bitsArray = getFloat16BitsArray(this);
946
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
947
+ const thisArg = opts[0];
948
+ for (let i = 0; i < length; ++i) {
949
+ const value = convertToNumber(float16bitsArray[i]);
950
+ if (ReflectApply(callback, thisArg, [value, i, this])) {
951
+ return i;
952
+ }
953
+ }
954
+ return -1;
955
+ }
956
+ findLast(callback, ...opts) {
957
+ assertFloat16Array(this);
958
+ const float16bitsArray = getFloat16BitsArray(this);
959
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
960
+ const thisArg = opts[0];
961
+ for (let i = length - 1; i >= 0; --i) {
962
+ const value = convertToNumber(float16bitsArray[i]);
963
+ if (ReflectApply(callback, thisArg, [value, i, this])) {
964
+ return value;
965
+ }
966
+ }
967
+ }
968
+ findLastIndex(callback, ...opts) {
969
+ assertFloat16Array(this);
970
+ const float16bitsArray = getFloat16BitsArray(this);
971
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
972
+ const thisArg = opts[0];
973
+ for (let i = length - 1; i >= 0; --i) {
974
+ const value = convertToNumber(float16bitsArray[i]);
975
+ if (ReflectApply(callback, thisArg, [value, i, this])) {
976
+ return i;
977
+ }
978
+ }
979
+ return -1;
980
+ }
981
+ every(callback, ...opts) {
982
+ assertFloat16Array(this);
983
+ const float16bitsArray = getFloat16BitsArray(this);
984
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
985
+ const thisArg = opts[0];
986
+ for (let i = 0; i < length; ++i) {
987
+ if (
988
+ !ReflectApply(callback, thisArg, [
989
+ convertToNumber(float16bitsArray[i]),
990
+ i,
991
+ this,
992
+ ])
993
+ ) {
994
+ return false;
995
+ }
996
+ }
997
+ return true;
998
+ }
999
+ some(callback, ...opts) {
1000
+ assertFloat16Array(this);
1001
+ const float16bitsArray = getFloat16BitsArray(this);
1002
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
1003
+ const thisArg = opts[0];
1004
+ for (let i = 0; i < length; ++i) {
1005
+ if (
1006
+ ReflectApply(callback, thisArg, [
1007
+ convertToNumber(float16bitsArray[i]),
1008
+ i,
1009
+ this,
1010
+ ])
1011
+ ) {
1012
+ return true;
1013
+ }
1014
+ }
1015
+ return false;
1016
+ }
1017
+ set(input, ...opts) {
1018
+ assertFloat16Array(this);
1019
+ const float16bitsArray = getFloat16BitsArray(this);
1020
+ const targetOffset = ToIntegerOrInfinity(opts[0]);
1021
+ if (targetOffset < 0) {
1022
+ throw NativeRangeError(OFFSET_IS_OUT_OF_BOUNDS);
1023
+ }
1024
+ if (input == null) {
1025
+ throw NativeTypeError(
1026
+ CANNOT_CONVERT_UNDEFINED_OR_NULL_TO_OBJECT
1027
+ );
1028
+ }
1029
+ if (isNativeBigIntTypedArray(input)) {
1030
+ throw NativeTypeError(
1031
+ CANNOT_MIX_BIGINT_AND_OTHER_TYPES
1032
+ );
1033
+ }
1034
+ if (isFloat16Array(input)) {
1035
+ return TypedArrayPrototypeSet(
1036
+ getFloat16BitsArray(this),
1037
+ getFloat16BitsArray(input),
1038
+ targetOffset
1039
+ );
1040
+ }
1041
+ if (isNativeTypedArray(input)) {
1042
+ const buffer = TypedArrayPrototypeGetBuffer(input);
1043
+ if (IsDetachedBuffer(buffer)) {
1044
+ throw NativeTypeError(ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER);
1045
+ }
1046
+ }
1047
+ const targetLength = TypedArrayPrototypeGetLength(float16bitsArray);
1048
+ const src = NativeObject(input);
1049
+ const srcLength = ToLength(src.length);
1050
+ if (targetOffset === Infinity || srcLength + targetOffset > targetLength) {
1051
+ throw NativeRangeError(OFFSET_IS_OUT_OF_BOUNDS);
1052
+ }
1053
+ for (let i = 0; i < srcLength; ++i) {
1054
+ float16bitsArray[i + targetOffset] = roundToFloat16Bits(src[i]);
1055
+ }
1056
+ }
1057
+ reverse() {
1058
+ assertFloat16Array(this);
1059
+ const float16bitsArray = getFloat16BitsArray(this);
1060
+ TypedArrayPrototypeReverse(float16bitsArray);
1061
+ return this;
1062
+ }
1063
+ toReversed() {
1064
+ assertFloat16Array(this);
1065
+ const float16bitsArray = getFloat16BitsArray(this);
1066
+ const uint16 = new NativeUint16Array(
1067
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
1068
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
1069
+ TypedArrayPrototypeGetLength(float16bitsArray)
1070
+ );
1071
+ const cloned = new Float16Array(
1072
+ TypedArrayPrototypeGetBuffer(
1073
+ TypedArrayPrototypeSlice(uint16)
1074
+ )
1075
+ );
1076
+ const clonedFloat16bitsArray = getFloat16BitsArray(cloned);
1077
+ TypedArrayPrototypeReverse(clonedFloat16bitsArray);
1078
+ return cloned;
1079
+ }
1080
+ fill(value, ...opts) {
1081
+ assertFloat16Array(this);
1082
+ const float16bitsArray = getFloat16BitsArray(this);
1083
+ TypedArrayPrototypeFill(
1084
+ float16bitsArray,
1085
+ roundToFloat16Bits(value),
1086
+ ...safeIfNeeded(opts)
1087
+ );
1088
+ return this;
1089
+ }
1090
+ copyWithin(target, start, ...opts) {
1091
+ assertFloat16Array(this);
1092
+ const float16bitsArray = getFloat16BitsArray(this);
1093
+ TypedArrayPrototypeCopyWithin(float16bitsArray, target, start, ...safeIfNeeded(opts));
1094
+ return this;
1095
+ }
1096
+ sort(compareFn) {
1097
+ assertFloat16Array(this);
1098
+ const float16bitsArray = getFloat16BitsArray(this);
1099
+ const sortCompare = compareFn !== undefined ? compareFn : defaultCompare;
1100
+ TypedArrayPrototypeSort(float16bitsArray, (x, y) => {
1101
+ return sortCompare(convertToNumber(x), convertToNumber(y));
1102
+ });
1103
+ return this;
1104
+ }
1105
+ toSorted(compareFn) {
1106
+ assertFloat16Array(this);
1107
+ const float16bitsArray = getFloat16BitsArray(this);
1108
+ if (compareFn !== undefined && typeof compareFn !== "function") {
1109
+ throw new NativeTypeError(THE_COMPARISON_FUNCTION_MUST_BE_EITHER_A_FUNCTION_OR_UNDEFINED);
1110
+ }
1111
+ const sortCompare = compareFn !== undefined ? compareFn : defaultCompare;
1112
+ const uint16 = new NativeUint16Array(
1113
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
1114
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
1115
+ TypedArrayPrototypeGetLength(float16bitsArray)
1116
+ );
1117
+ const cloned = new Float16Array(
1118
+ TypedArrayPrototypeGetBuffer(
1119
+ TypedArrayPrototypeSlice(uint16)
1120
+ )
1121
+ );
1122
+ const clonedFloat16bitsArray = getFloat16BitsArray(cloned);
1123
+ TypedArrayPrototypeSort(clonedFloat16bitsArray, (x, y) => {
1124
+ return sortCompare(convertToNumber(x), convertToNumber(y));
1125
+ });
1126
+ return cloned;
1127
+ }
1128
+ slice(start, end) {
1129
+ assertFloat16Array(this);
1130
+ const float16bitsArray = getFloat16BitsArray(this);
1131
+ const Constructor = SpeciesConstructor(float16bitsArray, Float16Array);
1132
+ if (Constructor === Float16Array) {
1133
+ const uint16 = new NativeUint16Array(
1134
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
1135
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
1136
+ TypedArrayPrototypeGetLength(float16bitsArray)
1137
+ );
1138
+ return new Float16Array(
1139
+ TypedArrayPrototypeGetBuffer(
1140
+ TypedArrayPrototypeSlice(uint16, start, end)
1141
+ )
1142
+ );
1143
+ }
1144
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
1145
+ const relativeStart = ToIntegerOrInfinity(start);
1146
+ const relativeEnd = end === undefined ? length : ToIntegerOrInfinity(end);
1147
+ let k;
1148
+ if (relativeStart === -Infinity) {
1149
+ k = 0;
1150
+ } else if (relativeStart < 0) {
1151
+ k = length + relativeStart > 0 ? length + relativeStart : 0;
1152
+ } else {
1153
+ k = length < relativeStart ? length : relativeStart;
1154
+ }
1155
+ let final;
1156
+ if (relativeEnd === -Infinity) {
1157
+ final = 0;
1158
+ } else if (relativeEnd < 0) {
1159
+ final = length + relativeEnd > 0 ? length + relativeEnd : 0;
1160
+ } else {
1161
+ final = length < relativeEnd ? length : relativeEnd;
1162
+ }
1163
+ const count = final - k > 0 ? final - k : 0;
1164
+ const array = new Constructor(count);
1165
+ assertSpeciesTypedArray(array, count);
1166
+ if (count === 0) {
1167
+ return array;
1168
+ }
1169
+ const buffer = TypedArrayPrototypeGetBuffer(float16bitsArray);
1170
+ if (IsDetachedBuffer(buffer)) {
1171
+ throw NativeTypeError(ATTEMPTING_TO_ACCESS_DETACHED_ARRAYBUFFER);
1172
+ }
1173
+ let n = 0;
1174
+ while (k < final) {
1175
+ array[n] = convertToNumber(float16bitsArray[k]);
1176
+ ++k;
1177
+ ++n;
1178
+ }
1179
+ return (array);
1180
+ }
1181
+ subarray(begin, end) {
1182
+ assertFloat16Array(this);
1183
+ const float16bitsArray = getFloat16BitsArray(this);
1184
+ const Constructor = SpeciesConstructor(float16bitsArray, Float16Array);
1185
+ const uint16 = new NativeUint16Array(
1186
+ TypedArrayPrototypeGetBuffer(float16bitsArray),
1187
+ TypedArrayPrototypeGetByteOffset(float16bitsArray),
1188
+ TypedArrayPrototypeGetLength(float16bitsArray)
1189
+ );
1190
+ const uint16Subarray = TypedArrayPrototypeSubarray(uint16, begin, end);
1191
+ const array = new Constructor(
1192
+ TypedArrayPrototypeGetBuffer(uint16Subarray),
1193
+ TypedArrayPrototypeGetByteOffset(uint16Subarray),
1194
+ TypedArrayPrototypeGetLength(uint16Subarray)
1195
+ );
1196
+ assertSpeciesTypedArray(array);
1197
+ return (array);
1198
+ }
1199
+ indexOf(element, ...opts) {
1200
+ assertFloat16Array(this);
1201
+ const float16bitsArray = getFloat16BitsArray(this);
1202
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
1203
+ let from = ToIntegerOrInfinity(opts[0]);
1204
+ if (from === Infinity) {
1205
+ return -1;
1206
+ }
1207
+ if (from < 0) {
1208
+ from += length;
1209
+ if (from < 0) {
1210
+ from = 0;
1211
+ }
1212
+ }
1213
+ for (let i = from; i < length; ++i) {
1214
+ if (
1215
+ ObjectHasOwn(float16bitsArray, i) &&
1216
+ convertToNumber(float16bitsArray[i]) === element
1217
+ ) {
1218
+ return i;
1219
+ }
1220
+ }
1221
+ return -1;
1222
+ }
1223
+ lastIndexOf(element, ...opts) {
1224
+ assertFloat16Array(this);
1225
+ const float16bitsArray = getFloat16BitsArray(this);
1226
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
1227
+ let from = opts.length >= 1 ? ToIntegerOrInfinity(opts[0]) : length - 1;
1228
+ if (from === -Infinity) {
1229
+ return -1;
1230
+ }
1231
+ if (from >= 0) {
1232
+ from = from < length - 1 ? from : length - 1;
1233
+ } else {
1234
+ from += length;
1235
+ }
1236
+ for (let i = from; i >= 0; --i) {
1237
+ if (
1238
+ ObjectHasOwn(float16bitsArray, i) &&
1239
+ convertToNumber(float16bitsArray[i]) === element
1240
+ ) {
1241
+ return i;
1242
+ }
1243
+ }
1244
+ return -1;
1245
+ }
1246
+ includes(element, ...opts) {
1247
+ assertFloat16Array(this);
1248
+ const float16bitsArray = getFloat16BitsArray(this);
1249
+ const length = TypedArrayPrototypeGetLength(float16bitsArray);
1250
+ let from = ToIntegerOrInfinity(opts[0]);
1251
+ if (from === Infinity) {
1252
+ return false;
1253
+ }
1254
+ if (from < 0) {
1255
+ from += length;
1256
+ if (from < 0) {
1257
+ from = 0;
1258
+ }
1259
+ }
1260
+ const isNaN = NumberIsNaN(element);
1261
+ for (let i = from; i < length; ++i) {
1262
+ const value = convertToNumber(float16bitsArray[i]);
1263
+ if (isNaN && NumberIsNaN(value)) {
1264
+ return true;
1265
+ }
1266
+ if (value === element) {
1267
+ return true;
1268
+ }
1269
+ }
1270
+ return false;
1271
+ }
1272
+ join(separator) {
1273
+ assertFloat16Array(this);
1274
+ const float16bitsArray = getFloat16BitsArray(this);
1275
+ const array = copyToArray(float16bitsArray);
1276
+ return ArrayPrototypeJoin(array, separator);
1277
+ }
1278
+ toLocaleString(...opts) {
1279
+ assertFloat16Array(this);
1280
+ const float16bitsArray = getFloat16BitsArray(this);
1281
+ const array = copyToArray(float16bitsArray);
1282
+ return ArrayPrototypeToLocaleString(array, ...safeIfNeeded(opts));
1283
+ }
1284
+ get [SymbolToStringTag]() {
1285
+ if (isFloat16Array(this)) {
1286
+ return ("Float16Array");
1287
+ }
1288
+ }
1289
+ }
1290
+ ObjectDefineProperty(Float16Array, "BYTES_PER_ELEMENT", {
1291
+ value: BYTES_PER_ELEMENT,
1292
+ });
1293
+ ObjectDefineProperty(Float16Array, brand, {});
1294
+ ReflectSetPrototypeOf(Float16Array, TypedArray);
1295
+ const Float16ArrayPrototype = Float16Array.prototype;
1296
+ ObjectDefineProperty(Float16ArrayPrototype, "BYTES_PER_ELEMENT", {
1297
+ value: BYTES_PER_ELEMENT,
1298
+ });
1299
+ ObjectDefineProperty(Float16ArrayPrototype, SymbolIterator, {
1300
+ value: Float16ArrayPrototype.values,
1301
+ writable: true,
1302
+ configurable: true,
1303
+ });
1304
+ ReflectSetPrototypeOf(Float16ArrayPrototype, TypedArrayPrototype);
1305
+
1306
+ function isTypedArray(target) {
1307
+ return isNativeTypedArray(target) || isFloat16Array(target);
1308
+ }
1309
+
1310
+ function getFloat16(dataView, byteOffset, ...opts) {
1311
+ return convertToNumber(
1312
+ DataViewPrototypeGetUint16(dataView, byteOffset, ...safeIfNeeded(opts))
1313
+ );
1314
+ }
1315
+ function setFloat16(dataView, byteOffset, value, ...opts) {
1316
+ return DataViewPrototypeSetUint16(
1317
+ dataView,
1318
+ byteOffset,
1319
+ roundToFloat16Bits(value),
1320
+ ...safeIfNeeded(opts)
1321
+ );
1322
+ }
1323
+
1324
+ function f16round(x) {
1325
+ return roundToFloat16(x);
1326
+ }
1327
+
1328
+ exports.Float16Array = Float16Array;
1329
+ exports.f16round = f16round;
1330
+ exports.getFloat16 = getFloat16;
1331
+ exports.hfround = f16round;
1332
+ exports.isFloat16Array = isFloat16Array;
1333
+ exports.isTypedArray = isTypedArray;
1334
+ exports.setFloat16 = setFloat16;
1335
+
1336
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1337
+
1338
+ return exports;
1339
+
1340
+ })({});