import{__exports as r}from"../../../_virtual/es.array.to-sorted.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/function-uncurry-this.mjs";import{__require as o}from"../internals/a-callable.mjs";import{__require as i}from"../internals/to-indexed-object.mjs";import{__require as a}from"../internals/array-from-constructor-and-list.mjs";import{__require as s}from"../internals/get-built-in-prototype-method.mjs";import{__require as n}from"../internals/add-to-unscopables.mjs";var m;function u(){if(m)return r;m=1;var u=t(),_=e(),p=o(),l=i(),f=a(),d=s(),c=n(),j=Array,q=_(d("Array","sort"));return u({target:"Array",proto:!0},{toSorted:function(r){void 0!==r&&p(r);var t=l(this),e=f(j,t);return q(e,r)}}),c("toSorted"),r}export{u as __require};