var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var e=0;e<n.length;e+=1)r[e+t.length]=n[e];return r},e=function(t,n){for(var r=[],o=n||0,e=0;o<t.length;o+=1,e+=1)r[e]=t[o];return r},i=function(t,n){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=n);return r},p=function(p){var u=this;if("function"!=typeof u||"[object Function]"!==n.apply(u))throw new TypeError(t+u);for(var a,f=e(arguments,1),c=function(){if(this instanceof a){var t=u.apply(this,o(f,arguments));return Object(t)===t?t:this}return u.apply(p,o(f,arguments))},l=r(0,u.length-f.length),h=[],y=0;y<l;y++)h[y]="$"+y;if(a=Function("binder","return function ("+i(h,",")+"){ return binder.apply(this,arguments); }")(c),u.prototype){var g=function(){};g.prototype=u.prototype,a.prototype=new g,g.prototype=null}return a},u=Function.prototype.bind||p;export{u as f};
