import{__exports as r}from"../../../_virtual/es.string.match.mjs";import{__require as e}from"../internals/function-call.mjs";import{__require as t}from"../internals/function-uncurry-this.mjs";import{__require as i}from"../internals/fix-regexp-well-known-symbol-logic.mjs";import{__require as n}from"../internals/an-object.mjs";import{__require as s}from"../internals/is-object.mjs";import{__require as a}from"../internals/to-length.mjs";import{__require as o}from"../internals/to-string.mjs";import{__require as m}from"../internals/require-object-coercible.mjs";import{__require as u}from"../internals/get-method.mjs";import{__require as l}from"../internals/advance-string-index.mjs";import{__require as _}from"../internals/regexp-get-flags.mjs";import{__require as f}from"../internals/regexp-exec-abstract.mjs";var c;function p(){if(c)return r;c=1;var p=e(),j=t(),q=i(),g=n(),x=s(),v=a(),d=o(),h=m(),b=u(),w=l(),I=_(),y=f(),k=j("".indexOf);return q("match",function(r,e,t){return[function(e){var t=h(this),i=x(e)?b(e,r):void 0;return i?p(i,e,t):new RegExp(e)[r](d(t))},function(r){var i=g(this),n=d(r),s=t(e,i,n);if(s.done)return s.value;var a=d(I(i));if(-1===k(a,"g"))return y(i,n);var o=-1!==k(a,"u");i.lastIndex=0;for(var m,u=[],l=0;null!==(m=y(i,n));){var _=d(m[0]);u[l]=_,""===_&&(i.lastIndex=w(n,v(i.lastIndex),o)),l++}return 0===l?null:u}]}),r}export{p as __require};