Liferay.Loader.define("@data-engine-taglib$babel/runtime@7.21.0/helpers/wrapRegExp",["module","exports","require","./typeof","./setPrototypeOf","./inherits"],(function(e,r,t){window;{var p=t("./typeof").default,o=t("./setPrototypeOf"),a=t("./inherits");function _wrapRegExp(){e.exports=_wrapRegExp=function _wrapRegExp(e,r){return new BabelRegExp(e,void 0,r)},e.exports.__esModule=!0,e.exports.default=e.exports;var r=RegExp.prototype,t=new WeakMap;function BabelRegExp(e,r,p){var a=new RegExp(e,r);return t.set(a,p||t.get(e)),o(a,BabelRegExp.prototype)}function buildGroups(e,r){var p=t.get(r);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var a=0;void 0===e[o[a]]&&a+1<o.length;)a++;r[t]=e[o[a]]}return r}),Object.create(null))}return a(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(e){var t=r.exec.call(this,e);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(e,o){if("string"==typeof o){var a=t.get(this);return r[Symbol.replace].call(this,e,o.replace(/\$<([^>]+)>/g,(function(e,r){var t=a[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof o){var n=this;return r[Symbol.replace].call(this,e,(function(){var e=arguments;return"object"!=p(e[e.length-1])&&(e=[].slice.call(e)).push(buildGroups(e,n)),o.apply(this,e)}))}return r[Symbol.replace].call(this,e,o)},_wrapRegExp.apply(this,arguments)}e.exports=_wrapRegExp,e.exports.__esModule=!0,e.exports.default=e.exports}}));
//# sourceMappingURL=wrapRegExp.js.map