(function(r,o){typeof exports=="object"&&typeof module<"u"?o(exports):typeof define=="function"&&define.amd?define(["exports"],o):(r=typeof globalThis<"u"?globalThis:r||self,o(r["ez-common-ts"]={}))})(this,function(r){"use strict";var o=(e=>(e[e.delete=2]="delete",e[e.reset=1]="reset",e))(o||{});const I=e=>({clear:function(n=2){n===1?Object.keys(e).forEach(t=>{e[t]=void 0}):n===2&&Object.keys(e).forEach(t=>{delete e[t]})},replace:function(n){this.clear(2),Object.assign(e,n)}});function x(...e){let n=e??[];return{test:function(t){if(n.length<=1)return n.length===1?n[0]:[];let u=t??function(i,s){return i===s};return n.reduce((i,s)=>(s&&s.length>0&&(i.length===0?i.push(...s):s.forEach(l=>{i.some(f=>u(f,l))||i.push(l)})),i),[])},path:function(...t){return this.test((u,i)=>t.every(s=>u[s]===i[s]))}}}function b(e,n,t){const u=n,i=t||n;return function(s){const l=[],c=s.matchAll(e);let f=0;for(const a of c){const m=s.slice(f,a.index);m&&l.push(i(m,!1)),l.push(u(a[0],!0)),f=a.index+a[0].length}return f{for(let t=0;te.replaceAll(/[\u4e00-\u9fa5]/g,"--").length,E=(e,n,t=" ")=>{const u=n-(d(e)-e.length);return e.padEnd(u,t)};function O(e){const n=e.lastIndexOf(".");return n===-1?"":e.substring(n+1)}function h(e){let n=e.lastIndexOf("/");return n===-1&&(n=e.lastIndexOf("\\"),n===-1)?e:e.substring(n+1)}function F(e){const n=h(e),t=n.lastIndexOf(".");return t===-1?n:n.substring(0,t)}function N(e,n="win32"){const t=n==="win32"?"\\":"/";let u,i,s,l;const c=e.lastIndexOf(t);c===-1?(u="",i=e):(u=e.substring(0,c+1),i=e.substring(c+1));const f=i.lastIndexOf(".");return f===-1?(s="",l=i):(s=i.substring(f+1),l=i.substring(0,f)),{fileName:i,fileNameNoExt:l,fileExtName:s,fullPath:e,pathOnly:u}}r.RecordClearMode=o,r.assignRecords=x,r.equalsIgnoreCase=g,r.getFileExt=O,r.getFileInfo=N,r.getFileName=h,r.getFileNameWithoutExt=F,r.includeIgnoreCase=y,r.strLength=d,r.strMonospacePad=E,r.stringTokenizer=b,r.withRecord=I,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}); //# sourceMappingURL=index.umd.js.map