import{__require as r}from"./global-this.mjs";import{__require as e}from"./function-apply.mjs";import{__require as i}from"./is-callable.mjs";import{__require as t}from"./environment.mjs";import{__require as n}from"./environment-user-agent.mjs";import{__require as o}from"./array-slice.mjs";import{__require as m}from"./validate-arguments-length.mjs";var s,a;function u(){if(a)return s;a=1;var u,_=r(),f=e(),l=i(),p=t(),c=n(),q=o(),v=m(),j=_.Function,g=/MSIE .\./.test(c)||"BUN"===p&&((u=_.Bun.version.split(".")).length<3||"0"===u[0]&&(u[1]<3||"3"===u[1]&&"0"===u[2]));return s=function(r,e){var i=e?2:1;return g?function(t,n){var o=v(arguments.length,1)>i,m=l(t)?t:j(t),s=o?q(arguments,i):[],a=o?function(){f(m,this,s)}:m;return e?r(a,n):r(a)}:r},s}export{u as __require};