/**
 * Minified by jsDelivr using Terser v5.48.0.
 * Original file: /npm/ts-regexp@0.3.0/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let p of __getOwnPropNames(t))__hasOwnProp.call(e,p)||p===r||__defProp(e,p,{get:()=>t[p],enumerable:!(o=__getOwnPropDesc(t,p))||o.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),index_exports={};__export(index_exports,{regex:()=>regex,typedRegExp:()=>typedRegExp}),module.exports=__toCommonJS(index_exports);var ternary=e=>(t,r)=>e?t:r,getPrototypeOf=e=>Object.getPrototypeOf(e),getOwnPropertyNames=e=>Object.getOwnPropertyNames(e),toPOJO=e=>Object.fromEntries(getOwnPropertyNames(getPrototypeOf(e)).map(t=>{const r=e[t];return[t,"function"==typeof r?r.bind(e):r]})),strIncludes=(e,t)=>e.includes(t),regex=(e,t)=>{const r=new RegExp(e,t),o=strIncludes(t??"","g"),p=(...e)=>{const[t,...o]=e;return t.replaceAll(r,...o)};var n;return{regExp:r,...toPOJO(r),matchIn:e=>e.match(r),replaceIn:(...e)=>{const[t,...o]=e;return t.replace(r,...o)},searchIn:(e,...t)=>e.search(r,...t),splitIn:(e,...t)=>e.split(r,...t),...(n=o,ternary(n)({matchAllIn:e=>e.matchAll(r),replaceAllIn:p},{}))}},typedRegExp=regex;
//# sourceMappingURL=/sm/e445c66ba52c7b4192a76a14495515a8b3335ac6e7e31dd2e51677d0fed055b7.map