import{__exports as r}from"../../../_virtual/es.typed-array.subarray.mjs";import{__require as e}from"../internals/array-buffer-view-core.mjs";import{__require as t}from"../internals/to-length.mjs";import{__require as a}from"../internals/to-absolute-index.mjs";var o;function s(){if(o)return r;o=1;var s=e(),i=t(),n=a(),u=s.aTypedArray,f=s.getTypedArrayConstructor;return(0,s.exportTypedArrayMethod)("subarray",function(r,e){var t=u(this),a=t.length,o=n(r,a);return new(f(t))(t.buffer,t.byteOffset+o*t.BYTES_PER_ELEMENT,i((void 0===e?a:n(e,a))-o))}),r}export{s as __require};