import{__exports as r}from"../../../_virtual/web.url.can-parse.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/get-built-in.mjs";import{__require as n}from"../internals/fails.mjs";import{__require as i}from"../internals/validate-arguments-length.mjs";import{__require as a}from"../internals/to-string.mjs";import{__require as s}from"../internals/url-constructor-detection.mjs";var o;function m(){if(o)return r;o=1;var m=t(),u=e(),_=n(),l=i(),c=a(),f=s(),p=u("URL"),g=f&&_(function(){p.canParse()}),j=_(function(){return 1!==p.canParse.length});return m({target:"URL",stat:!0,forced:!g||j},{canParse:function(r){var t=l(arguments.length,1),e=c(r),n=t<2||void 0===arguments[1]?void 0:c(arguments[1]);try{return!!new p(e,n)}catch(r){return!1}}}),r}export{m as __require};