import{__exports as r}from"../../../_virtual/es.typed-array.sort.mjs";import{__require as e}from"../internals/global-this.mjs";import{__require as n}from"../internals/function-uncurry-this-clause.mjs";import{__require as i}from"../internals/fails.mjs";import{__require as t}from"../internals/a-callable.mjs";import{__require as o}from"../internals/array-sort.mjs";import{__require as s}from"../internals/array-buffer-view-core.mjs";import{__require as a}from"../internals/environment-ff-version.mjs";import{__require as m}from"../internals/environment-is-ie-or-edge.mjs";import{__require as u}from"../internals/environment-v8-version.mjs";import{__require as f}from"../internals/environment-webkit-version.mjs";var _;function l(){if(_)return r;_=1;var l=e(),p=n(),v=i(),c=t(),y=o(),j=s(),q=a(),d=m(),h=u(),w=f(),b=j.aTypedArray,A=j.exportTypedArrayMethod,x=l.Uint16Array,g=x&&p(x.prototype.sort),T=!(!g||v(function(){g(new x(2),null)})&&v(function(){g(new x(2),{})})),k=!!g&&!v(function(){if(h)return h<74;if(q)return q<67;if(d)return!0;if(w)return w<602;var r,e,n=new x(516),i=Array(516);for(r=0;r<516;r++)e=r%4,n[r]=515-r,i[r]=r-2*e+3;for(g(n,function(r,e){return(r/4|0)-(e/4|0)}),r=0;r<516;r++)if(n[r]!==i[r])return!0});return A("sort",function(r){return void 0!==r&&c(r),k?g(this,r):y(b(this),function(r){return function(e,n){return void 0!==r?+r(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(r))},!k||T),r}export{l as __require};