function e(e,n){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:e.lastIndex;return n=n||"",(e=new RegExp(e.source,(n.includes("g")||e.global?"g":"")+(n.includes("i")||e.ignoreCase?"i":"")+(n.includes("m")||e.multiline?"m":"")+(n.includes("u")||e.unicode?"u":"")+(n.includes("y")||e.sticky?"y":"")+(n.includes("s")||e.dotAll?"s":""))).lastIndex=t,e}var u=function(){function n(e,t,r){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),this.regex=c("string"==typeof e?new RegExp(e):c(e),t||"",r)}var t,r,u;return t=n,(r=[{key:"forEach",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=c(this.regex,"g"),i=0;null!==(t=l.exec(e));)r=t.splice(0,1),n.apply(u,t.concat(i++,r));return this}},{key:"some",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=c(this.regex,"g"),i=0;null!==(t=l.exec(e));)if(r=t.splice(0,1),n.apply(u,t.concat(i++,r)))return!0;return!1}},{key:"every",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=c(this.regex,"g"),i=0;null!==(t=l.exec(e));)if(r=t.splice(0,1),!n.apply(u,t.concat(i++,r)))return!1;return!0}},{key:"map",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=[],i=c(this.regex,"g"),o=0;null!==(t=i.exec(e));)r=t.splice(0,1),l.push(n.apply(u,t.concat(o++,r)));return l}},{key:"filter",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=0,i=[],o=c(this.regex,"g");null!==(t=o.exec(e));)r=t.splice(0,1),t=t.concat(l++,r),n.apply(u,t)&&i.push(r[0]);return i}},{key:"reduce",value:function(e,n,t){var r,u,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=0,o=c(this.regex,"g");for(t||null!==(r=o.exec(e))&&(u=r.splice(0,1),t=n.apply(l,[""].concat(r.concat(i++,u))));null!==(r=o.exec(e));)u=r.splice(0,1),t=n.apply(l,[t].concat(r.concat(i++,u)));return t}},{key:"reduceRight",value:function(e,n,t,r){var u,l,i,o=r,a=t,p=[],s=c(this.regex,"g");for(o=o||null;null!==(u=s.exec(e));)p.push(u);if(!(i=p.length)){if(arguments.length<3)throw new TypeError("reduce of empty matches array with no initial value");return a}return a||(u=p.splice(-1)[0],l=u.splice(0,1),a=n.apply(o,[""].concat(u.concat(i--,l)))),p.reduceRight((function(e,t){return l=t.splice(0,1),a=n.apply(o,[a].concat(t.concat(i--,l))),e}),p),a}},{key:"find",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=0,i=c(this.regex,"g");null!==(t=i.exec(e));)if(r=t.splice(0,1),n.apply(u,t.concat(l++,r)))return r[0];return!1}},{key:"findIndex",value:function(e,n){for(var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=c(this.regex,"g"),l=0;null!==(t=u.exec(e));){var i=t.splice(0,1),o=n.apply(r,t.concat(l++,i));if(o)return l-1}return-1}},{key:"findExec",value:function(e,n){for(var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=c(this.regex,"g"),l=0;null!==(t=u.exec(e));){var i=t.splice(0,1),o=n.apply(r,t.concat(l++,i));if(o)return t}return!1}},{key:"filterExec",value:function(e,n){for(var t,r,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=0,i=[],o=c(this.regex,"g");null!==(t=o.exec(e));)r=t.splice(0,1),t.push(l++,r[0]),n.apply(u,t)&&i.push(t);return i}}])&&e(t.prototype,r),u&&e(t,u),n}(),l=u;(u=function(){for(var e=arguments.length,n=new Array(e),t=0;t