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