import{__exports as r}from"../../../_virtual/es.array.sort.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-uncurry-this.mjs";import{__require as i}from"../internals/a-callable.mjs";import{__require as o}from"../internals/to-object.mjs";import{__require as n}from"../internals/length-of-array-like.mjs";import{__require as s}from"../internals/delete-property-or-throw.mjs";import{__require as a}from"../internals/to-string.mjs";import{__require as m}from"../internals/fails.mjs";import{__require as f}from"../internals/array-sort.mjs";import{__require as u}from"../internals/array-method-is-strict.mjs";import{__require as _}from"../internals/environment-ff-version.mjs";import{__require as l}from"../internals/environment-is-ie-or-edge.mjs";import{__require as c}from"../internals/environment-v8-version.mjs";import{__require as p}from"../internals/environment-webkit-version.mjs";var v;function j(){if(v)return r;v=1;var j=e(),q=t(),h=i(),d=o(),g=n(),y=s(),k=a(),b=m(),A=f(),w=u(),x=_(),C=l(),B=c(),D=p(),E=[],F=q(E.sort),G=q(E.push),H=b(function(){E.sort(void 0)}),I=b(function(){E.sort(null)}),J=w("sort"),K=!b(function(){if(B)return B<70;if(!(x&&x>3)){if(C)return!0;if(D)return D<603;var r,e,t,i,o="";for(r=65;r<76;r++){switch(e=String.fromCharCode(r),r){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(i=0;i<47;i++)E.push({k:e+i,v:t})}for(E.sort(function(r,e){return e.v-r.v}),i=0;i<E.length;i++)e=E[i].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});return j({target:"Array",proto:!0,forced:H||!I||!J||!K},{sort:function(r){void 0!==r&&h(r);var e=d(this);if(K)return void 0===r?F(e):F(e,r);var t,i,o=[],n=g(e);for(i=0;i<n;i++)i in e&&G(o,e[i]);for(A(o,function(r){return function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:k(e)>k(t)?1:-1}}(r)),t=g(o),i=0;i<t;)e[i]=o[i++];for(;i<n;)y(e,i++);return e}}),r}export{j as __require};