import{__exports as r}from"../../../_virtual/web.url-search-params.has.mjs";import{__require as e}from"../internals/define-built-in.mjs";import{__require as a}from"../internals/function-uncurry-this.mjs";import{__require as t}from"../internals/to-string.mjs";import{__require as i}from"../internals/validate-arguments-length.mjs";var n;function s(){if(n)return r;n=1;var s=e(),o=a(),u=t(),m=i(),f=URLSearchParams,l=f.prototype,h=o(l.getAll),_=o(l.has),p=new f("a=1");return!p.has("a",2)&&p.has("a",void 0)||s(l,"has",function(r){var e=arguments.length,a=e<2?void 0:arguments[1];if(e&&void 0===a)return _(this,r);var t=h(this,r);m(e,1);for(var i=u(a),n=0;n<t.length;)if(t[n++]===i)return!0;return!1},{enumerable:!0,unsafe:!0}),r}export{s as __require};