import{__exports as r}from"../../../_virtual/es.string.ends-with.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-uncurry-this-clause.mjs";import{__require as i}from"../internals/object-get-own-property-descriptor.mjs";import{__require as s}from"../internals/to-length.mjs";import{__require as o}from"../internals/to-string.mjs";import{__require as n}from"../internals/not-a-regexp.mjs";import{__require as m}from"../internals/require-object-coercible.mjs";import{__require as a}from"../internals/correct-is-regexp-logic.mjs";import{__require as _}from"../internals/is-pure.mjs";var p;function u(){if(p)return r;p=1;var u,l=e(),f=t(),c=i().f,g=s(),j=o(),h=n(),q=m(),d=a(),v=_(),x=f("".slice),b=Math.min,w=d("endsWith");return l({target:"String",proto:!0,forced:!!(v||w||(u=c(String.prototype,"endsWith"),!u||u.writable))&&!w},{endsWith:function(r){var e=j(q(this));h(r);var t=arguments.length>1?arguments[1]:void 0,i=e.length,s=void 0===t?i:b(g(t),i),o=j(r);return x(e,s-o.length,s)===o}}),r}export{u as __require};