text: (function(u,t){typeof exports=="object"&&typeof module!="undefined"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(u=typeof globalThis!="undefined"?globalThis:u||self,t(u["reading-time-estimator"]={}))})(this,function(u){"use strict";const l={en:{less:"less than a minute read",default:"min read"},fr:{less:"moins d'une minute de lecture",default:"min de lecture"},es:{less:"menos de un minuto leyendo",default:"min de lectura"},cn:{less:"\u5C0F\u4E8E\u4E00\u5206\u949F",default:"\u5206\u949F"},ja:{less:"1\u5206\u672A\u6E80\u306E\u8AAD\u307F\u53D6\u308A",default:"\u6700\u5C0F\u8AAD\u307F\u53D6\u308A"}},d=e=>{var n;return(n=e.match(/[\w\d\s,.\u00C0-\u024F]+/giu))!==null&&n!==void 0?n:[]},a=e=>{var n;return(n=e.match(/[\u4E00-\u9FA5]/gu))!==null&&n!==void 0?n:[]},c=e=>{var n;return(n=e.match(/[\u3041-\u3096]/gu))!==null&&n!==void 0?n:[]},m=e=>d(e).reduce((n,s)=>n+(s.trim().length?s.trim().split(/\s+/u).length:0),0)+a(e).length+c(e).length,i=e=>e<1+Number.EPSILON,f=(e,n="en")=>l[n][i(e)?"less":"default"],g=(e,n=300,s="en")=>{const r=m(e!=null?e:""),o=+Math.round(r/n).toFixed(2);return{minutes:o,words:r,text:`${i(o)?"":o} ${f(o,s)}`.trimStart()}};u.readingTime=g,Object.defineProperty(u,"__esModule",{value:!0}),u[Symbol.toStringTag]="Module"});
  