string-remove-widows
Advanced tools
Comparing version 4.0.4 to 4.0.5
/** | ||
* @name string-remove-widows | ||
* @fileoverview Helps to prevent widow words in a text | ||
* @version 4.0.4 | ||
* @version 4.0.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,3 +10,3 @@ * @license MIT | ||
import{matchRightIncl as Q}from"string-match-left-right";import{left as T,right as D}from"string-left-right";import{Ranges as X}from"ranges-push";import{rApply as q}from"ranges-apply";import{rawNbsp as w,rawNDash as ee,rawMDash as te}from"codsen-utils";var R="4.0.4";var f=" ",E="\\00A0",S="\\u00A0",j="–",M="\\2013",J="\\u2013",U="—",k="\\2014",I="\\u2014",C=[{heads:"{{",tails:"}}"},{heads:["{% if","{%- if"],tails:["{% endif","{%- endif"]},{heads:["{% for","{%- for"],tails:["{% endfor","{%- endfor"]},{heads:["{%","{%-"],tails:["%}","-%}"]},{heads:"{#",tails:"#}"}],B=[{heads:"{{",tails:"}}"}],P=[{heads:["<%","<%=","<%-"],tails:["%>","=%>","-%>"]}],_=["abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"];var ce=R,oe={removeWidowPreventionMeasures:!1,convertEntities:!0,targetLanguage:"html",UKPostcodes:!1,hyphens:!0,minWordCount:4,minCharCount:5,ignore:[],reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,tagRanges:[]};function me(t,h){let G=Date.now();if(typeof t!="string")throw t===void 0?new Error("string-remove-widows: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`string-remove-widows: [THROW_ID_02] the first input argument must be string! It was given as "${typeof t}", equal to: | ||
import{matchRightIncl as Q}from"string-match-left-right";import{left as T,right as D}from"string-left-right";import{Ranges as X}from"ranges-push";import{rApply as q}from"ranges-apply";import{rawNbsp as w,rawNDash as ee,rawMDash as te}from"codsen-utils";var R="4.0.5";var f=" ",E="\\00A0",S="\\u00A0",j="–",M="\\2013",J="\\u2013",U="—",k="\\2014",I="\\u2014",C=[{heads:"{{",tails:"}}"},{heads:["{% if","{%- if"],tails:["{% endif","{%- endif"]},{heads:["{% for","{%- for"],tails:["{% endfor","{%- endfor"]},{heads:["{%","{%-"],tails:["%}","-%}"]},{heads:"{#",tails:"#}"}],B=[{heads:"{{",tails:"}}"}],P=[{heads:["<%","<%=","<%-"],tails:["%>","=%>","-%>"]}],_=["abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"];var ce=R,oe={removeWidowPreventionMeasures:!1,convertEntities:!0,targetLanguage:"html",UKPostcodes:!1,hyphens:!0,minWordCount:4,minCharCount:5,ignore:[],reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,tagRanges:[]};function me(t,h){let G=Date.now();if(typeof t!="string")throw t===void 0?new Error("string-remove-widows: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`string-remove-widows: [THROW_ID_02] the first input argument must be string! It was given as "${typeof t}", equal to: | ||
${JSON.stringify(t,null,4)}`);if(h&&typeof h!="object")throw new Error(`string-remove-widows: [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof h}, equal to ${JSON.stringify(h,null,4)}`);let b=Array.isArray,L=t.length,a=new X({mergeType:2}),K=["."],Z=/[A-Z]{1,2}[0-9][0-9A-Z]?$/,Y=/^[0-9][A-Z]{2}/,V=.06,$,A=0,g=0,W=0,y,N,d,c,r,l,s,p,o={...oe,...h},m={removeWidows:!1,convertEntities:!1};if(!o.ignore||!b(o.ignore)&&typeof o.ignore!="string")o.ignore=[];else if(typeof o.ignore=="string"&&(o.ignore=[o.ignore]),o.ignore.includes("all"))o.ignore=o.ignore.concat(C.concat(P));else if(o.ignore.some(e=>typeof e=="string")){let e=[];o.ignore=o.ignore.filter(i=>typeof i=="string"&&i.length?(["nunjucks","jinja","liquid"].includes(i.trim().toLowerCase())?e=e.concat(C):["hugo"].includes(i.trim().toLowerCase())?e=e.concat(B):["hexo"].includes(i.trim().toLowerCase())&&(e=e.concat(P)),!1):typeof i=="object"),e.length&&(o.ignore=o.ignore.concat(e))}let x;o.reportProgressFunc&&(x=Math.floor(o.reportProgressFuncTo-(o.reportProgressFuncTo-o.reportProgressFuncFrom)*V-o.reportProgressFuncFrom));function v(e,i){let n=w;o.removeWidowPreventionMeasures?n=" ":o.convertEntities&&(n=f,typeof o.targetLanguage=="string"&&(o.targetLanguage.trim().toLowerCase()==="css"?n=E:o.targetLanguage.trim().toLowerCase()==="js"&&(n=S))),t.slice(e,i)!==n&&a.push(e,i,n)}function O(){g=0,W=0,y=void 0,N=void 0,d=void 0,c=void 0,r=void 0,l=void 0}O();for(let e=0;e<=L;e++){if(!s&&b(o.ignore)&&o.ignore.length&&o.ignore.some((n,u)=>{if(b(n.heads)&&n.heads.some(H=>t.startsWith(H,e))||typeof n.heads=="string"&&t.startsWith(n.heads,e))return g+=1,s=o.ignore[u].tails,!0}),!s&&p&&p===e&&(g+=1,p=void 0),typeof o.reportProgressFunc=="function"&&($=o.reportProgressFuncFrom+Math.floor(e/L*(x||1)),$!==A&&(A=$,o.reportProgressFunc($))),!s&&e&&t[e]&&t[e].trim()&&(!t[e-1]||t[e-1]&&!t[e-1].trim())&&(c=e),!s&&t[e]&&t[e].trim()&&(W+=1),!s&&o.hyphens&&(`-${te}${ee}`.includes(t[e])||t.startsWith(j,e)||t.startsWith(M,e)||t.startsWith(J,e)||t.startsWith(U,e)||t.startsWith(k,e)||t.startsWith(I,e))&&t[e+1]&&(!t[e+1].trim()||t[e]==="&")&&t[e-1]&&!t[e-1].trim()&&t[T(t,e)]&&(v(T(t,e)+1,e),m.removeWidows=!0),!s&&(t.startsWith(" ",e)||t.startsWith(" ",e))&&(r=e,l=e+6,t[e+6]&&t[e+6].trim()&&(p=e+6),o.convertEntities?(o.targetLanguage==="css"||o.targetLanguage==="js")&&(a.push(e,e+6,o.targetLanguage==="css"?E:S),m.convertEntities=!0):(a.push(e,e+6,w),m.convertEntities=!0)),!s&&t[e+4]&&t[e]==="\\"&&t[e+1]==="0"&&t[e+2]==="0"&&t[e+3].toUpperCase()==="A"&&t[e+4]==="0"&&(r=e,l=e+5,t[e+5]&&t[e+5].trim()&&(p=e+5),o.convertEntities?(o.targetLanguage==="html"||o.targetLanguage==="js")&&(a.push(e,e+5,o.targetLanguage==="html"?f:S),m.convertEntities=!0):(a.push(e,e+5,w),m.convertEntities=!0)),!s&&t[e]==="\\"&&t[e+1]&&t[e+1].toLowerCase()==="u"&&t[e+2]==="0"&&t[e+3]==="0"&&t[e+4]&&t[e+4].toUpperCase()==="A"&&t[e+5]==="0"&&(r=e,l=e+6,t[e+6]&&t[e+6].trim()&&(p=e+6),o.convertEntities?(o.targetLanguage==="html"||o.targetLanguage==="css")&&a.push(e,e+6,o.targetLanguage==="html"?f:E):a.push(e,e+6,w)),!s&&t[e]===w&&(r=e,l=e+1,o.convertEntities&&a.push(e,e+1,o.targetLanguage==="css"?E:o.targetLanguage==="js"?S:f)),!s&&t[e]&&t[e].trim()&&(!t[e-1]||!t[e-1].trim())&&(g+=1),!s&&(!t[e]||`\r | ||
@@ -13,0 +13,0 @@ `.includes(t[e])||(t[e]===` |
/** | ||
* @name string-remove-widows | ||
* @fileoverview Helps to prevent widow words in a text | ||
* @version 4.0.4 | ||
* @version 4.0.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,6 +10,6 @@ * @license MIT | ||
"use strict";var stringRemoveWidows=(()=>{var Qt=Object.create;var U=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames,Le=Object.getOwnPropertySymbols,Xt=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var ge=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&ge(e,r,t[r]);if(Le)for(var r of Le(t))zt.call(t,r)&&ge(e,r,t[r]);return e};var er=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tr=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},He=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Yt(t))!je.call(e,l)&&l!==r&&U(e,l,{get:()=>t[l],enumerable:!(n=Zt(t,l))||n.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Qt(Xt(e)):{},He(t||!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),nr=e=>He(U({},"__esModule",{value:!0}),e);var fe=(e,t,r)=>(ge(e,typeof t!="symbol"?t+"":t,r),r);var xt=er((q,F)=>{var ar=200,rt="__lodash_hash_undefined__",nt=9007199254740991,we="[object Arguments]",lr="[object Array]",ot="[object Boolean]",st="[object Date]",ur="[object Error]",Ee="[object Function]",it="[object GeneratorFunction]",te="[object Map]",at="[object Number]",Te="[object Object]",Ue="[object Promise]",lt="[object RegExp]",re="[object Set]",ut="[object String]",ct="[object Symbol]",he="[object WeakMap]",gt="[object ArrayBuffer]",ne="[object DataView]",ft="[object Float32Array]",dt="[object Float64Array]",ht="[object Int8Array]",pt="[object Int16Array]",mt="[object Int32Array]",$t="[object Uint8Array]",bt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",cr=/[\\^$.*+?()[\]{}|]/g,gr=/\w*$/,fr=/^\[object .+?Constructor\]$/,dr=/^(?:0|[1-9]\d*)$/,T={};T[we]=T[lr]=T[gt]=T[ne]=T[ot]=T[st]=T[ft]=T[dt]=T[ht]=T[pt]=T[mt]=T[te]=T[at]=T[Te]=T[lt]=T[re]=T[ut]=T[ct]=T[$t]=T[bt]=T[yt]=T[wt]=!0;T[ur]=T[Ee]=T[he]=!1;var hr=typeof global=="object"&&global&&global.Object===Object&&global,pr=typeof self=="object"&&self&&self.Object===Object&&self,D=hr||pr||Function("return this")(),Et=typeof q=="object"&&q&&!q.nodeType&&q,qe=Et&&typeof F=="object"&&F&&!F.nodeType&&F,mr=qe&&qe.exports===Et;function $r(e,t){return e.set(t[0],t[1]),e}function br(e,t){return e.add(t),e}function yr(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function wr(e,t){for(var r=-1,n=t.length,l=e.length;++r<n;)e[l+r]=t[r];return e}function Tt(e,t,r,n){var l=-1,o=e?e.length:0;for(n&&o&&(r=e[++l]);++l<o;)r=t(r,e[l],l,e);return r}function Er(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Tr(e,t){return e==null?void 0:e[t]}function At(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function Ge(e){var t=-1,r=Array(e.size);return e.forEach(function(n,l){r[++t]=[l,n]}),r}function Ae(e,t){return function(r){return e(t(r))}}function Ke(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ar=Array.prototype,vr=Function.prototype,oe=Object.prototype,de=D["__core-js_shared__"],Qe=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vt=vr.toString,x=oe.hasOwnProperty,se=oe.toString,Sr=RegExp("^"+vt.call(x).replace(cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=mr?D.Buffer:void 0,Ye=D.Symbol,Xe=D.Uint8Array,_r=Ae(Object.getPrototypeOf,Object),Cr=Object.create,Nr=oe.propertyIsEnumerable,Or=Ar.splice,ze=Object.getOwnPropertySymbols,Dr=Ze?Ze.isBuffer:void 0,Wr=Ae(Object.keys,Object),pe=J(D,"DataView"),G=J(D,"Map"),me=J(D,"Promise"),$e=J(D,"Set"),be=J(D,"WeakMap"),K=J(Object,"create"),xr=j(pe),Rr=j(G),Ir=j(me),Mr=j($e),Lr=j(be),et=Ye?Ye.prototype:void 0,tt=et?et.valueOf:void 0;function L(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jr(){this.__data__=K?K(null):{}}function Hr(e){return this.has(e)&&delete this.__data__[e]}function Fr(e){var t=this.__data__;if(K){var r=t[e];return r===rt?void 0:r}return x.call(t,e)?t[e]:void 0}function Vr(e){var t=this.__data__;return K?t[e]!==void 0:x.call(t,e)}function Pr(e,t){var r=this.__data__;return r[e]=K&&t===void 0?rt:t,this}L.prototype.clear=jr;L.prototype.delete=Hr;L.prototype.get=Fr;L.prototype.has=Vr;L.prototype.set=Pr;function W(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jr(){this.__data__=[]}function Br(e){var t=this.__data__,r=ie(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Or.call(t,r,1),!0}function kr(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]}function Ur(e){return ie(this.__data__,e)>-1}function qr(e,t){var r=this.__data__,n=ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}W.prototype.clear=Jr;W.prototype.delete=Br;W.prototype.get=kr;W.prototype.has=Ur;W.prototype.set=qr;function V(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(){this.__data__={hash:new L,map:new(G||W),string:new L}}function Kr(e){return ae(this,e).delete(e)}function Qr(e){return ae(this,e).get(e)}function Zr(e){return ae(this,e).has(e)}function Yr(e,t){return ae(this,e).set(e,t),this}V.prototype.clear=Gr;V.prototype.delete=Kr;V.prototype.get=Qr;V.prototype.has=Zr;V.prototype.set=Yr;function P(e){this.__data__=new W(e)}function Xr(){this.__data__=new W}function zr(e){return this.__data__.delete(e)}function en(e){return this.__data__.get(e)}function tn(e){return this.__data__.has(e)}function rn(e,t){var r=this.__data__;if(r instanceof W){var n=r.__data__;if(!G||n.length<ar-1)return n.push([e,t]),this;r=this.__data__=new V(n)}return r.set(e,t),this}P.prototype.clear=Xr;P.prototype.delete=zr;P.prototype.get=en;P.prototype.has=tn;P.prototype.set=rn;function nn(e,t){var r=Se(e)||Nn(e)?Er(e.length,String):[],n=r.length,l=!!n;for(var o in e)(t||x.call(e,o))&&!(l&&(o=="length"||vn(o,n)))&&r.push(o);return r}function St(e,t,r){var n=e[t];(!(x.call(e,t)&&Ot(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function ie(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function on(e,t){return e&&_t(t,_e(t),e)}function ye(e,t,r,n,l,o,u){var a;if(n&&(a=o?n(e,l,o,u):n(e)),a!==void 0)return a;if(!le(e))return e;var g=Se(e);if(g){if(a=En(e),!t)return bn(e,a)}else{var i=M(e),h=i==Ee||i==it;if(Dn(e))return gn(e,t);if(i==Te||i==we||h&&!o){if(At(e))return o?e:{};if(a=Tn(h?{}:e),!t)return yn(e,on(a,e))}else{if(!T[i])return o?e:{};a=An(e,i,ye,t)}}u||(u=new P);var $=u.get(e);if($)return $;if(u.set(e,a),!g)var p=r?wn(e):_e(e);return yr(p||e,function(f,d){p&&(d=f,f=e[d]),St(a,d,ye(f,t,r,n,d,e,u))}),a}function sn(e){return le(e)?Cr(e):{}}function an(e,t,r){var n=t(e);return Se(e)?n:wr(n,r(e))}function ln(e){return se.call(e)}function un(e){if(!le(e)||_n(e))return!1;var t=Wt(e)||At(e)?Sr:fr;return t.test(j(e))}function cn(e){if(!Nt(e))return Wr(e);var t=[];for(var r in Object(e))x.call(e,r)&&r!="constructor"&&t.push(r);return t}function gn(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function ve(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}function fn(e,t){var r=t?ve(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function dn(e,t,r){var n=t?r(Ge(e),!0):Ge(e);return Tt(n,$r,new e.constructor)}function hn(e){var t=new e.constructor(e.source,gr.exec(e));return t.lastIndex=e.lastIndex,t}function pn(e,t,r){var n=t?r(Ke(e),!0):Ke(e);return Tt(n,br,new e.constructor)}function mn(e){return tt?Object(tt.call(e)):{}}function $n(e,t){var r=t?ve(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function bn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function _t(e,t,r,n){r||(r={});for(var l=-1,o=t.length;++l<o;){var u=t[l],a=n?n(r[u],e[u],u,r,e):void 0;St(r,u,a===void 0?e[u]:a)}return r}function yn(e,t){return _t(e,Ct(e),t)}function wn(e){return an(e,_e,Ct)}function ae(e,t){var r=e.__data__;return Sn(t)?r[typeof t=="string"?"string":"hash"]:r.map}function J(e,t){var r=Tr(e,t);return un(r)?r:void 0}var Ct=ze?Ae(ze,Object):Rn,M=ln;(pe&&M(new pe(new ArrayBuffer(1)))!=ne||G&&M(new G)!=te||me&&M(me.resolve())!=Ue||$e&&M(new $e)!=re||be&&M(new be)!=he)&&(M=function(e){var t=se.call(e),r=t==Te?e.constructor:void 0,n=r?j(r):void 0;if(n)switch(n){case xr:return ne;case Rr:return te;case Ir:return Ue;case Mr:return re;case Lr:return he}return t});function En(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&x.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Tn(e){return typeof e.constructor=="function"&&!Nt(e)?sn(_r(e)):{}}function An(e,t,r,n){var l=e.constructor;switch(t){case gt:return ve(e);case ot:case st:return new l(+e);case ne:return fn(e,n);case ft:case dt:case ht:case pt:case mt:case $t:case bt:case yt:case wt:return $n(e,n);case te:return dn(e,n,r);case at:case ut:return new l(e);case lt:return hn(e);case re:return pn(e,n,r);case ct:return mn(e)}}function vn(e,t){return t=t==null?nt:t,!!t&&(typeof e=="number"||dr.test(e))&&e>-1&&e%1==0&&e<t}function Sn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _n(e){return!!Qe&&Qe in e}function Nt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oe;return e===r}function j(e){if(e!=null){try{return vt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Cn(e){return ye(e,!0,!0)}function Ot(e,t){return e===t||e!==e&&t!==t}function Nn(e){return On(e)&&x.call(e,"callee")&&(!Nr.call(e,"callee")||se.call(e)==we)}var Se=Array.isArray;function Dt(e){return e!=null&&Wn(e.length)&&!Wt(e)}function On(e){return xn(e)&&Dt(e)}var Dn=Dr||In;function Wt(e){var t=le(e)?se.call(e):"";return t==Ee||t==it}function Wn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nt}function le(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function xn(e){return!!e&&typeof e=="object"}function _e(e){return Dt(e)?nn(e):cn(e)}function Rn(){return[]}function In(){return!1}F.exports=Cn});var qn={};tr(qn,{defaults:()=>Kt,removeWidows:()=>Un,version:()=>kn});function Fe(e){return typeof e!="string"?e:e.length?[e]:[]}function Ve(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ee(e){return typeof e=="string"}var Pe={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},or=e=>e+1;function sr(e,t,r,n,l=!1,o=or){let u=typeof r=="function"?r():r;if(+t<0&&l&&u==="EOL")return u;let a=A(A({},Pe),n);if(t>=e.length&&!l)return!1;let g=l?1:r.length,i=0,h=!1,$=!1,p=!1,f=a.maxMismatches,d=t,S=!1,y=!1,v=!1;function w(){return i===1&&f<a.maxMismatches-1}for(;e[d];){let b=o(d);if(a.trimBeforeMatching&&e[d].trim()===""){if(!e[b]&&l&&r==="EOL")return!0;d=o(d);continue}if(a&&!a.i&&a.trimCharsBeforeMatching&&a.trimCharsBeforeMatching.includes(e[d])||a!=null&&a.i&&a.trimCharsBeforeMatching&&a.trimCharsBeforeMatching.map(_=>_.toLowerCase()).includes(e[d].toLowerCase())){if(l&&r==="EOL"&&!e[b])return!0;d=o(d);continue}let E=b>d?r[r.length-g]:r[g-1];if(!a.i&&e[d]===E||a.i&&e[d].toLowerCase()===E.toLowerCase()){if(S||(S=!0),p||(p=!0),g===r.length){if(y=!0,f!==a.maxMismatches)return!1}else g===1&&(v=!0);if(g-=1,i++,w())return!1;if(!g)return i!==r.length||f===a.maxMismatches||!h?d:!1}else if(!h&&!i&&(h=!0),a.maxMismatches&&f&&d){f-=1;for(let _=0;_<=f;_++){let c=b>d?r[r.length-g+1+_]:r[g-2-_],N=e[o(d)];if(c&&(!a.i&&e[d]===c||a.i&&e[d].toLowerCase()===c.toLowerCase())&&(!a.firstMustMatch||g!==r.length)){if(i++,w())return!1;g-=2,S=!0;break}else if(N&&c&&(!a.i&&N===c||a.i&&N.toLowerCase()===c.toLowerCase())&&(!a.firstMustMatch||g!==r.length)){if(!i&&!a.hungry)return!1;g-=1,S=!0;break}else if(c===void 0&&f>=0&&S&&(!a.firstMustMatch||y)&&(!a.lastMustMatch||v))return d}S||($=d)}else return d===0&&g===1&&!a.lastMustMatch&&p?0:!1;if($!==!1&&$!==d&&($=!1),g<1)return d;d=o(d)}if(g>0)return l&&u==="EOL"?!0:a&&a.maxMismatches>=g&&p?$||0:!1}function ir(e,t,r,n,l){var h,$;if(Ve(l)&&Object.prototype.hasOwnProperty.call(l,"trimBeforeMatching")&&l&&typeof l.trimBeforeMatching!="boolean")throw new Error(`string-match-left-right/${e}(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!${Array.isArray(l.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""}`);let o=A(A({},Pe),l);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=Fe(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(p=>ee(p)?p:String(p)),!ee(t)||!t.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error(`string-match-left-right/${e}(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ${typeof r}, equal to: | ||
"use strict";var stringRemoveWidows=(()=>{var Qt=Object.create;var U=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames,Le=Object.getOwnPropertySymbols,Xt=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable;var ge=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,A=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&ge(e,r,t[r]);if(Le)for(var r of Le(t))zt.call(t,r)&&ge(e,r,t[r]);return e};var er=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tr=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},Fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Yt(t))!je.call(e,l)&&l!==r&&U(e,l,{get:()=>t[l],enumerable:!(n=Zt(t,l))||n.enumerable});return e};var rr=(e,t,r)=>(r=e!=null?Qt(Xt(e)):{},Fe(t||!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),nr=e=>Fe(U({},"__esModule",{value:!0}),e);var fe=(e,t,r)=>(ge(e,typeof t!="symbol"?t+"":t,r),r);var xt=er((q,H)=>{var ar=200,rt="__lodash_hash_undefined__",nt=9007199254740991,we="[object Arguments]",lr="[object Array]",ot="[object Boolean]",st="[object Date]",ur="[object Error]",Ee="[object Function]",it="[object GeneratorFunction]",te="[object Map]",at="[object Number]",Te="[object Object]",Ue="[object Promise]",lt="[object RegExp]",re="[object Set]",ut="[object String]",ct="[object Symbol]",he="[object WeakMap]",gt="[object ArrayBuffer]",ne="[object DataView]",ft="[object Float32Array]",dt="[object Float64Array]",ht="[object Int8Array]",pt="[object Int16Array]",mt="[object Int32Array]",$t="[object Uint8Array]",bt="[object Uint8ClampedArray]",yt="[object Uint16Array]",wt="[object Uint32Array]",cr=/[\\^$.*+?()[\]{}|]/g,gr=/\w*$/,fr=/^\[object .+?Constructor\]$/,dr=/^(?:0|[1-9]\d*)$/,T={};T[we]=T[lr]=T[gt]=T[ne]=T[ot]=T[st]=T[ft]=T[dt]=T[ht]=T[pt]=T[mt]=T[te]=T[at]=T[Te]=T[lt]=T[re]=T[ut]=T[ct]=T[$t]=T[bt]=T[yt]=T[wt]=!0;T[ur]=T[Ee]=T[he]=!1;var hr=typeof global=="object"&&global&&global.Object===Object&&global,pr=typeof self=="object"&&self&&self.Object===Object&&self,D=hr||pr||Function("return this")(),Et=typeof q=="object"&&q&&!q.nodeType&&q,qe=Et&&typeof H=="object"&&H&&!H.nodeType&&H,mr=qe&&qe.exports===Et;function $r(e,t){return e.set(t[0],t[1]),e}function br(e,t){return e.add(t),e}function yr(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function wr(e,t){for(var r=-1,n=t.length,l=e.length;++r<n;)e[l+r]=t[r];return e}function Tt(e,t,r,n){var l=-1,o=e?e.length:0;for(n&&o&&(r=e[++l]);++l<o;)r=t(r,e[l],l,e);return r}function Er(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Tr(e,t){return e==null?void 0:e[t]}function At(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function Ge(e){var t=-1,r=Array(e.size);return e.forEach(function(n,l){r[++t]=[l,n]}),r}function Ae(e,t){return function(r){return e(t(r))}}function Ke(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ar=Array.prototype,vr=Function.prototype,oe=Object.prototype,de=D["__core-js_shared__"],Qe=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),vt=vr.toString,x=oe.hasOwnProperty,se=oe.toString,Sr=RegExp("^"+vt.call(x).replace(cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=mr?D.Buffer:void 0,Ye=D.Symbol,Xe=D.Uint8Array,_r=Ae(Object.getPrototypeOf,Object),Cr=Object.create,Nr=oe.propertyIsEnumerable,Or=Ar.splice,ze=Object.getOwnPropertySymbols,Dr=Ze?Ze.isBuffer:void 0,Wr=Ae(Object.keys,Object),pe=J(D,"DataView"),G=J(D,"Map"),me=J(D,"Promise"),$e=J(D,"Set"),be=J(D,"WeakMap"),K=J(Object,"create"),xr=j(pe),Rr=j(G),Ir=j(me),Mr=j($e),Lr=j(be),et=Ye?Ye.prototype:void 0,tt=et?et.valueOf:void 0;function L(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function jr(){this.__data__=K?K(null):{}}function Fr(e){return this.has(e)&&delete this.__data__[e]}function Hr(e){var t=this.__data__;if(K){var r=t[e];return r===rt?void 0:r}return x.call(t,e)?t[e]:void 0}function Vr(e){var t=this.__data__;return K?t[e]!==void 0:x.call(t,e)}function Pr(e,t){var r=this.__data__;return r[e]=K&&t===void 0?rt:t,this}L.prototype.clear=jr;L.prototype.delete=Fr;L.prototype.get=Hr;L.prototype.has=Vr;L.prototype.set=Pr;function W(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Jr(){this.__data__=[]}function Br(e){var t=this.__data__,r=ie(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Or.call(t,r,1),!0}function kr(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]}function Ur(e){return ie(this.__data__,e)>-1}function qr(e,t){var r=this.__data__,n=ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}W.prototype.clear=Jr;W.prototype.delete=Br;W.prototype.get=kr;W.prototype.has=Ur;W.prototype.set=qr;function V(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(){this.__data__={hash:new L,map:new(G||W),string:new L}}function Kr(e){return ae(this,e).delete(e)}function Qr(e){return ae(this,e).get(e)}function Zr(e){return ae(this,e).has(e)}function Yr(e,t){return ae(this,e).set(e,t),this}V.prototype.clear=Gr;V.prototype.delete=Kr;V.prototype.get=Qr;V.prototype.has=Zr;V.prototype.set=Yr;function P(e){this.__data__=new W(e)}function Xr(){this.__data__=new W}function zr(e){return this.__data__.delete(e)}function en(e){return this.__data__.get(e)}function tn(e){return this.__data__.has(e)}function rn(e,t){var r=this.__data__;if(r instanceof W){var n=r.__data__;if(!G||n.length<ar-1)return n.push([e,t]),this;r=this.__data__=new V(n)}return r.set(e,t),this}P.prototype.clear=Xr;P.prototype.delete=zr;P.prototype.get=en;P.prototype.has=tn;P.prototype.set=rn;function nn(e,t){var r=Se(e)||Nn(e)?Er(e.length,String):[],n=r.length,l=!!n;for(var o in e)(t||x.call(e,o))&&!(l&&(o=="length"||vn(o,n)))&&r.push(o);return r}function St(e,t,r){var n=e[t];(!(x.call(e,t)&&Ot(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function ie(e,t){for(var r=e.length;r--;)if(Ot(e[r][0],t))return r;return-1}function on(e,t){return e&&_t(t,_e(t),e)}function ye(e,t,r,n,l,o,u){var a;if(n&&(a=o?n(e,l,o,u):n(e)),a!==void 0)return a;if(!le(e))return e;var g=Se(e);if(g){if(a=En(e),!t)return bn(e,a)}else{var i=M(e),h=i==Ee||i==it;if(Dn(e))return gn(e,t);if(i==Te||i==we||h&&!o){if(At(e))return o?e:{};if(a=Tn(h?{}:e),!t)return yn(e,on(a,e))}else{if(!T[i])return o?e:{};a=An(e,i,ye,t)}}u||(u=new P);var $=u.get(e);if($)return $;if(u.set(e,a),!g)var p=r?wn(e):_e(e);return yr(p||e,function(f,d){p&&(d=f,f=e[d]),St(a,d,ye(f,t,r,n,d,e,u))}),a}function sn(e){return le(e)?Cr(e):{}}function an(e,t,r){var n=t(e);return Se(e)?n:wr(n,r(e))}function ln(e){return se.call(e)}function un(e){if(!le(e)||_n(e))return!1;var t=Wt(e)||At(e)?Sr:fr;return t.test(j(e))}function cn(e){if(!Nt(e))return Wr(e);var t=[];for(var r in Object(e))x.call(e,r)&&r!="constructor"&&t.push(r);return t}function gn(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function ve(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}function fn(e,t){var r=t?ve(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function dn(e,t,r){var n=t?r(Ge(e),!0):Ge(e);return Tt(n,$r,new e.constructor)}function hn(e){var t=new e.constructor(e.source,gr.exec(e));return t.lastIndex=e.lastIndex,t}function pn(e,t,r){var n=t?r(Ke(e),!0):Ke(e);return Tt(n,br,new e.constructor)}function mn(e){return tt?Object(tt.call(e)):{}}function $n(e,t){var r=t?ve(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function bn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function _t(e,t,r,n){r||(r={});for(var l=-1,o=t.length;++l<o;){var u=t[l],a=n?n(r[u],e[u],u,r,e):void 0;St(r,u,a===void 0?e[u]:a)}return r}function yn(e,t){return _t(e,Ct(e),t)}function wn(e){return an(e,_e,Ct)}function ae(e,t){var r=e.__data__;return Sn(t)?r[typeof t=="string"?"string":"hash"]:r.map}function J(e,t){var r=Tr(e,t);return un(r)?r:void 0}var Ct=ze?Ae(ze,Object):Rn,M=ln;(pe&&M(new pe(new ArrayBuffer(1)))!=ne||G&&M(new G)!=te||me&&M(me.resolve())!=Ue||$e&&M(new $e)!=re||be&&M(new be)!=he)&&(M=function(e){var t=se.call(e),r=t==Te?e.constructor:void 0,n=r?j(r):void 0;if(n)switch(n){case xr:return ne;case Rr:return te;case Ir:return Ue;case Mr:return re;case Lr:return he}return t});function En(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&x.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Tn(e){return typeof e.constructor=="function"&&!Nt(e)?sn(_r(e)):{}}function An(e,t,r,n){var l=e.constructor;switch(t){case gt:return ve(e);case ot:case st:return new l(+e);case ne:return fn(e,n);case ft:case dt:case ht:case pt:case mt:case $t:case bt:case yt:case wt:return $n(e,n);case te:return dn(e,n,r);case at:case ut:return new l(e);case lt:return hn(e);case re:return pn(e,n,r);case ct:return mn(e)}}function vn(e,t){return t=t==null?nt:t,!!t&&(typeof e=="number"||dr.test(e))&&e>-1&&e%1==0&&e<t}function Sn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _n(e){return!!Qe&&Qe in e}function Nt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||oe;return e===r}function j(e){if(e!=null){try{return vt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Cn(e){return ye(e,!0,!0)}function Ot(e,t){return e===t||e!==e&&t!==t}function Nn(e){return On(e)&&x.call(e,"callee")&&(!Nr.call(e,"callee")||se.call(e)==we)}var Se=Array.isArray;function Dt(e){return e!=null&&Wn(e.length)&&!Wt(e)}function On(e){return xn(e)&&Dt(e)}var Dn=Dr||In;function Wt(e){var t=le(e)?se.call(e):"";return t==Ee||t==it}function Wn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nt}function le(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function xn(e){return!!e&&typeof e=="object"}function _e(e){return Dt(e)?nn(e):cn(e)}function Rn(){return[]}function In(){return!1}H.exports=Cn});var qn={};tr(qn,{defaults:()=>Kt,removeWidows:()=>Un,version:()=>kn});function He(e){return typeof e!="string"?e:e.length?[e]:[]}function Ve(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function ee(e){return typeof e=="string"}var Pe={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},or=e=>e+1;function sr(e,t,r,n,l=!1,o=or){let u=typeof r=="function"?r():r;if(+t<0&&l&&u==="EOL")return u;let a=A(A({},Pe),n);if(t>=e.length&&!l)return!1;let g=l?1:r.length,i=0,h=!1,$=!1,p=!1,f=a.maxMismatches,d=t,S=!1,y=!1,v=!1;function w(){return i===1&&f<a.maxMismatches-1}for(;e[d];){let b=o(d);if(a.trimBeforeMatching&&e[d].trim()===""){if(!e[b]&&l&&r==="EOL")return!0;d=o(d);continue}if(a&&!a.i&&a.trimCharsBeforeMatching&&a.trimCharsBeforeMatching.includes(e[d])||a!=null&&a.i&&a.trimCharsBeforeMatching&&a.trimCharsBeforeMatching.map(_=>_.toLowerCase()).includes(e[d].toLowerCase())){if(l&&r==="EOL"&&!e[b])return!0;d=o(d);continue}let E=b>d?r[r.length-g]:r[g-1];if(!a.i&&e[d]===E||a.i&&e[d].toLowerCase()===E.toLowerCase()){if(S||(S=!0),p||(p=!0),g===r.length){if(y=!0,f!==a.maxMismatches)return!1}else g===1&&(v=!0);if(g-=1,i++,w())return!1;if(!g)return i!==r.length||f===a.maxMismatches||!h?d:!1}else if(!h&&!i&&(h=!0),a.maxMismatches&&f&&d){f-=1;for(let _=0;_<=f;_++){let c=b>d?r[r.length-g+1+_]:r[g-2-_],N=e[o(d)];if(c&&(!a.i&&e[d]===c||a.i&&e[d].toLowerCase()===c.toLowerCase())&&(!a.firstMustMatch||g!==r.length)){if(i++,w())return!1;g-=2,S=!0;break}else if(N&&c&&(!a.i&&N===c||a.i&&N.toLowerCase()===c.toLowerCase())&&(!a.firstMustMatch||g!==r.length)){if(!i&&!a.hungry)return!1;g-=1,S=!0;break}else if(c===void 0&&f>=0&&S&&(!a.firstMustMatch||y)&&(!a.lastMustMatch||v))return d}S||($=d)}else return d===0&&g===1&&!a.lastMustMatch&&p?0:!1;if($!==!1&&$!==d&&($=!1),g<1)return d;d=o(d)}if(g>0)return l&&u==="EOL"?!0:a&&a.maxMismatches>=g&&p?$||0:!1}function ir(e,t,r,n,l){var h,$;if(Ve(l)&&Object.prototype.hasOwnProperty.call(l,"trimBeforeMatching")&&l&&typeof l.trimBeforeMatching!="boolean")throw new Error(`string-match-left-right/${e}(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!${Array.isArray(l.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""}`);let o=A(A({},Pe),l);if(typeof o.trimCharsBeforeMatching=="string"&&(o.trimCharsBeforeMatching=He(o.trimCharsBeforeMatching)),o.trimCharsBeforeMatching=o.trimCharsBeforeMatching.map(p=>ee(p)?p:String(p)),!ee(t)||!t.length)return!1;if(!Number.isInteger(r)||r<0)throw new Error(`string-match-left-right/${e}(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ${typeof r}, equal to: | ||
${JSON.stringify(r,null,4)}`);let u,a;if(ee(n))u=[n];else if(Array.isArray(n))u=n;else if(!n)u=n;else if(typeof n=="function")u=[],u.push(n);else throw new Error(`string-match-left-right/${e}(): [THROW_ID_05] the third argument, whatToMatch, is neither string nor array of strings! It's ${typeof n}, equal to: | ||
${JSON.stringify(n,null,4)}`);if(l&&!Ve(l))throw new Error(`string-match-left-right/${e}(): [THROW_ID_06] the fourth argument, options object, should be a plain object. Currently it's of a type "${typeof l}", and equal to: | ||
${JSON.stringify(l,null,4)}`);let g=0,i="";if(o!=null&&o.trimCharsBeforeMatching&&o.trimCharsBeforeMatching.some((p,f)=>p.length>1?(g=f,i=p,!0):!1))throw new Error(`string-match-left-right/${e}(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ${g} is longer than 1 character, ${i.length} (equals to ${i}). Please split it into separate characters and put into array as separate elements.`);if(!u||!Array.isArray(u)||Array.isArray(u)&&!u.length||Array.isArray(u)&&u.length===1&&ee(u[0])&&!u[0].trim()){if(typeof o.cb=="function"){let f,d=r;if((e==="matchLeftIncl"||e==="matchRight")&&(d+=1),e[5]==="L")for(let w=d;w--;){let b=t[w];if((!o.trimBeforeMatching||o.trimBeforeMatching&&b!==void 0&&b.trim())&&(!((h=o.trimCharsBeforeMatching)!=null&&h.length)||b!==void 0&&!o.trimCharsBeforeMatching.includes(b))){f=w;break}}else if(e.startsWith("matchRight"))for(let w=d;w<t.length;w++){let b=t[w];if((!o.trimBeforeMatching||o.trimBeforeMatching&&b.trim())&&(!(($=o.trimCharsBeforeMatching)!=null&&$.length)||!o.trimCharsBeforeMatching.includes(b))){f=w;break}}if(f===void 0)return!1;let S=t[f],y=f+1,v="";return y&&y>0&&(v=t.slice(0,y)),e[5]==="L"||f&&f>0&&(v=t.slice(f)),o.cb(S,v,f)}let p="";throw l||(p=" More so, the whole options object, the fourth input argument, is missing!"),new Error(`string-match-left-right/${e}(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!${p}`)}for(let p=0,f=u.length;p<f;p++){a=typeof u[p]=="function";let d=u[p],S,y,v="",w=r;e==="matchRight"?w+=1:e==="matchLeft"&&(w-=1);let b=sr(t,w,d,o,a,E=>e[5]==="L"?E-1:E+1);if(b&&a&&typeof d=="function"&&d()==="EOL")return d()&&(!o.cb||o.cb(S,v,y))?d():!1;if(Number.isInteger(b)&&(y=e.startsWith("matchLeft")?b-1:b+1,e[5]==="L"?v=t.slice(0,b):v=t.slice(y)),y<0&&(y=void 0),t[y]&&(S=t[y]),Number.isInteger(b)&&(!o.cb||o.cb(S,v,y)))return d}return!1}function Je(e,t,r,n){return ir("matchRightIncl",e,t,r,n)}var Be="\u2013",ke="\u2014",H="\xA0";var Mn=rr(xt(),1);var B="\xA0";function Ln({str:e,idx:t=0,stopAtNewlines:r=!1,stopAtRawNbsp:n=!1}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),!e[t+1]))return null;if(e[t+1]&&(e[t+1].trim()||r&&` | ||
${JSON.stringify(l,null,4)}`);let g=0,i="";if(o!=null&&o.trimCharsBeforeMatching&&o.trimCharsBeforeMatching.some((p,f)=>p.length>1?(g=f,i=p,!0):!1))throw new Error(`string-match-left-right/${e}(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ${g} is longer than 1 character, ${i.length} (equals to ${i}). Please split it into separate characters and put into array as separate elements.`);if(!u||!Array.isArray(u)||Array.isArray(u)&&!u.length||Array.isArray(u)&&u.length===1&&ee(u[0])&&!u[0].trim()){if(typeof o.cb=="function"){let f,d=r;if((e==="matchLeftIncl"||e==="matchRight")&&(d+=1),e[5]==="L")for(let w=d;w--;){let b=t[w];if((!o.trimBeforeMatching||o.trimBeforeMatching&&b!==void 0&&b.trim())&&(!((h=o.trimCharsBeforeMatching)!=null&&h.length)||b!==void 0&&!o.trimCharsBeforeMatching.includes(b))){f=w;break}}else if(e.startsWith("matchRight"))for(let w=d;w<t.length;w++){let b=t[w];if((!o.trimBeforeMatching||o.trimBeforeMatching&&b.trim())&&(!(($=o.trimCharsBeforeMatching)!=null&&$.length)||!o.trimCharsBeforeMatching.includes(b))){f=w;break}}if(f===void 0)return!1;let S=t[f],y=f+1,v="";return y&&y>0&&(v=t.slice(0,y)),e[5]==="L"||f&&f>0&&(v=t.slice(f)),o.cb(S,v,f)}let p="";throw l||(p=" More so, the whole options object, the fourth input argument, is missing!"),new Error(`string-match-left-right/${e}(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!${p}`)}for(let p=0,f=u.length;p<f;p++){a=typeof u[p]=="function";let d=u[p],S,y,v="",w=r;e==="matchRight"?w+=1:e==="matchLeft"&&(w-=1);let b=sr(t,w,d,o,a,E=>e[5]==="L"?E-1:E+1);if(b&&a&&typeof d=="function"&&d()==="EOL")return d()&&(!o.cb||o.cb(S,v,y))?d():!1;if(Number.isInteger(b)&&(y=e.startsWith("matchLeft")?b-1:b+1,e[5]==="L"?v=t.slice(0,b):v=t.slice(y)),y<0&&(y=void 0),t[y]&&(S=t[y]),Number.isInteger(b)&&(!o.cb||o.cb(S,v,y)))return d}return!1}function Je(e,t,r,n){return ir("matchRightIncl",e,t,r,n)}var Be="\u2013",ke="\u2014",F="\xA0";var Mn=rr(xt(),1);var B="\xA0";function Ln({str:e,idx:t=0,stopAtNewlines:r=!1,stopAtRawNbsp:n=!1}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),!e[t+1]))return null;if(e[t+1]&&(e[t+1].trim()||r&&` | ||
\r`.includes(e[t+1])||n&&e[t+1]===B))return t+1;if(e[t+2]&&(e[t+2].trim()||r&&` | ||
@@ -23,7 +23,7 @@ \r`.includes(e[t+2])||n&&e[t+2]===B))return t+2;for(let l=t+1,o=e.length;l<o;l++)if(e[l].trim()||r&&` | ||
`;if(!o)return o;let h=0,$=0,p="";for(let f=0,d=o.length;f<d;f++)(o[f]===g||o[f]===i&&o[f-1]!==g)&&$++,`\r | ||
`.includes(o[f])||o[f]===r?(h=0,o[f]===r?p+=o[f]:o[f]===g?$<=u&&(p+=o[f],o[f+1]===i&&(p+=o[f+1],f++)):o[f]===i&&(o==null?void 0:o[f-1])!==g&&$<=u&&(p+=o[f])):(h++,!o[f+1]&&!$&&(p+=" "));return p}if(typeof e=="string"&&e.length){let o=1;typeof+t=="number"&&Number.isInteger(+t)&&+t>=0&&(o=+t);let u="",a="";if(!e.trim())u=e;else if(!e[0].trim()){for(let g=0,i=e.length;g<i;g++)if(e[g].trim()){u=e.slice(0,g);break}}if(e.trim()&&(e.slice(-1).trim()===""||e.slice(-1)===r)){for(let g=e.length;g--;)if(e[g].trim()){a=e.slice(g+1);break}}return`${l(u,o,!1)}${e.trim()}${n(l(n(a),o,!0))}`}return e}var Hn={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Rt(e,t){if(!Array.isArray(e)||!e.length)return e;let r=A(A({},Hn),t),n,l;if(r.strictlyTwoElementsInRangeArrays&&!e.every((a,g)=>!Array.isArray(a)||a.length!==2?(n=g,l=a.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) has not two but ${l} elements!`);if(!e.every((a,g)=>!Array.isArray(a)||!Number.isInteger(a[0])||a[0]<0||!Number.isInteger(a[1])||a[1]<0?(n=g,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) does not consist of only natural numbers!`);let o=e.length**2,u=0;return Array.from(e).sort((a,g)=>(r.progressFn&&(u+=1,r.progressFn(Math.floor(u*100/o))),a[0]===g[0]?a[1]<g[1]?-1:a[1]>g[1]?1:0:a[0]<g[0]?-1:1))}var It={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function Fn(e,t){function r(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}if(!Array.isArray(e)||!e.length)return null;let n;if(t)if(r(t)){if(n=A(A({},It),t),n.progressFn&&r(n.progressFn)&&!Object.keys(n.progressFn).length)n.progressFn=null;else if(n.progressFn&&typeof n.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof n.progressFn}", equal to ${JSON.stringify(n.progressFn,null,4)}`);if(![1,2,"1","2"].includes(n.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof n.mergeType}", equal to ${JSON.stringify(n.mergeType,null,4)}`);if(typeof n.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof n.joinRangesThatTouchEdges}", equal to ${JSON.stringify(n.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as: | ||
`.includes(o[f])||o[f]===r?(h=0,o[f]===r?p+=o[f]:o[f]===g?$<=u&&(p+=o[f],o[f+1]===i&&(p+=o[f+1],f++)):o[f]===i&&(o==null?void 0:o[f-1])!==g&&$<=u&&(p+=o[f])):(h++,!o[f+1]&&!$&&(p+=" "));return p}if(typeof e=="string"&&e.length){let o=1;typeof+t=="number"&&Number.isInteger(+t)&&+t>=0&&(o=+t);let u="",a="";if(!e.trim())u=e;else if(!e[0].trim()){for(let g=0,i=e.length;g<i;g++)if(e[g].trim()){u=e.slice(0,g);break}}if(e.trim()&&(e.slice(-1).trim()===""||e.slice(-1)===r)){for(let g=e.length;g--;)if(e[g].trim()){a=e.slice(g+1);break}}return`${l(u,o,!1)}${e.trim()}${n(l(n(a),o,!0))}`}return e}var Fn={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Rt(e,t){if(!Array.isArray(e)||!e.length)return e;let r=A(A({},Fn),t),n,l;if(r.strictlyTwoElementsInRangeArrays&&!e.every((a,g)=>!Array.isArray(a)||a.length!==2?(n=g,l=a.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) has not two but ${l} elements!`);if(!e.every((a,g)=>!Array.isArray(a)||!Number.isInteger(a[0])||a[0]<0||!Number.isInteger(a[1])||a[1]<0?(n=g,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) does not consist of only natural numbers!`);let o=e.length**2,u=0;return Array.from(e).sort((a,g)=>(r.progressFn&&(u+=1,r.progressFn(Math.floor(u*100/o))),a[0]===g[0]?a[1]<g[1]?-1:a[1]>g[1]?1:0:a[0]<g[0]?-1:1))}var It={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function Hn(e,t){function r(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}if(!Array.isArray(e)||!e.length)return null;let n;if(t)if(r(t)){if(n=A(A({},It),t),n.progressFn&&r(n.progressFn)&&!Object.keys(n.progressFn).length)n.progressFn=null;else if(n.progressFn&&typeof n.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof n.progressFn}", equal to ${JSON.stringify(n.progressFn,null,4)}`);if(![1,2,"1","2"].includes(n.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof n.mergeType}", equal to ${JSON.stringify(n.mergeType,null,4)}`);if(typeof n.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof n.joinRangesThatTouchEdges}", equal to ${JSON.stringify(n.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as: | ||
${JSON.stringify(t,null,4)} (type ${typeof t})`);else n=A({},It);let l=e.filter(i=>Array.isArray(i)).map(i=>[...i]).filter(i=>i[2]!==void 0||i[0]!==i[1]),o,u,a;n.progressFn?o=Rt(l,{progressFn:i=>{a=Math.floor(i/5),a!==u&&(u=a,n.progressFn(a))}}):o=Rt(l);let g=o.length-1;for(let i=g;i>0;i--)n.progressFn&&(a=Math.floor((1-i/g)*78)+21,a!==u&&a>u&&(u=a,n.progressFn(a))),(o[i][0]<=o[i-1][0]||!n.joinRangesThatTouchEdges&&o[i][0]<o[i-1][1]||n.joinRangesThatTouchEdges&&o[i][0]<=o[i-1][1])&&(o[i-1][0]=Math.min(o[i][0],o[i-1][0]),o[i-1][1]=Math.max(o[i][1],o[i-1][1]),o[i][2]!==void 0&&(o[i-1][0]>=o[i][0]||o[i-1][1]<=o[i][1])&&o[i-1][2]!==null&&(o[i][2]===null&&o[i-1][2]!==null?o[i-1][2]=null:o[i-1][2]!=null?+n.mergeType==2&&o[i-1][0]===o[i][0]?o[i-1][2]=o[i][2]:o[i-1][2]+=o[i][2]:o[i-1][2]=o[i][2]),o.splice(i,1),i=o.length);return o.length?o:null}function R(e){return e!=null}function I(e){return Number.isInteger(e)&&e>=0}function Z(e){return typeof e=="string"}var Vn={limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1},Mt=class{constructor(e){fe(this,"ranges");fe(this,"opts");let t=A(A({},Vn),e);if(t.mergeType&&t.mergeType!==1&&t.mergeType!==2)if(Z(t.mergeType)&&t.mergeType.trim()==="1")t.mergeType=1;else if(Z(t.mergeType)&&t.mergeType.trim()==="2")t.mergeType=2;else throw new Error(`ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof t.mergeType}", equal to ${JSON.stringify(t.mergeType,null,4)}`);this.opts=t,this.ranges=[]}add(e,t,r){var o;if(e==null&&t==null)return;if(R(e)&&!R(t)){if(Array.isArray(e)){if(e.length){if(e.some(u=>Array.isArray(u))){e.forEach(u=>{Array.isArray(u)&&this.add(...u)});return}e.length&&I(+e[0])&&I(+e[1])&&this.add(...e)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(e,null,0)}) but second-one, "to" is not (${JSON.stringify(t,null,0)})`)}else if(!R(e)&&R(t))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(t,null,0)}) but first-one, "from" is not (${JSON.stringify(e,null,0)})`);let n=+e,l=+t;if(I(r)&&(r=String(r)),I(n)&&I(l)){if(R(r)&&!Z(r)&&!I(r))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof r}, equal to: | ||
${JSON.stringify(r,null,4)}`);if(R(this.ranges)&&Array.isArray(this.last())&&n===this.last()[1]){if(this.last()[1]=l,this.last()[2],this.last()[2]!==null&&R(r)){let u=this.last()[2]&&this.last()[2].length&&(!((o=this.opts)!=null&&o.mergeType)||this.opts.mergeType===1)?`${this.last()[2]}${r}`:r;this.opts.limitToBeAddedWhitespace&&(u=ue(u,this.opts.limitLinebreaksCount)),Z(u)&&!u.length||(this.last()[2]=u)}}else{this.ranges||(this.ranges=[]);let u=r!==void 0&&!(Z(r)&&!r.length)?[n,l,r&&this.opts.limitToBeAddedWhitespace?ue(r,this.opts.limitLinebreaksCount):r]:[n,l];this.ranges.push(u)}}else throw I(n)&&n>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof l}" equal to: ${JSON.stringify(l,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof n}" equal to: ${JSON.stringify(n,null,4)}`)}push(e,t,r){this.add(e,t,r)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=Fn(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(e=>R(e[2])?[e[0],e[1],ue(e[2],this.opts.limitLinebreaksCount)]:e):this.ranges):null}wipe(){this.ranges=[]}replace(e){if(Array.isArray(e)&&e.length)if(Array.isArray(e[0])&&I(e[0][0]))this.ranges=Array.from(e);else throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(e[0],null,4)} should be an array and its first element should be an integer, a string index.`);else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};var Pn={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Ce(e,t){if(!Array.isArray(e)||!e.length)return e;let r=A(A({},Pn),t),n,l;if(r.strictlyTwoElementsInRangeArrays&&!e.every((a,g)=>!Array.isArray(a)||a.length!==2?(n=g,l=a.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) has not two but ${l} elements!`);if(!e.every((a,g)=>!Array.isArray(a)||!Number.isInteger(a[0])||a[0]<0||!Number.isInteger(a[1])||a[1]<0?(n=g,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) does not consist of only natural numbers!`);let o=e.length**2,u=0;return Array.from(e).sort((a,g)=>(r.progressFn&&(u+=1,r.progressFn(Math.floor(u*100/o))),a[0]===g[0]?a[1]<g[1]?-1:a[1]>g[1]?1:0:a[0]<g[0]?-1:1))}var Lt={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function jt(e,t){function r(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}if(!Array.isArray(e)||!e.length)return null;let n;if(t)if(r(t)){if(n=A(A({},Lt),t),n.progressFn&&r(n.progressFn)&&!Object.keys(n.progressFn).length)n.progressFn=null;else if(n.progressFn&&typeof n.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "${typeof n.progressFn}", equal to ${JSON.stringify(n.progressFn,null,4)}`);if(![1,2,"1","2"].includes(n.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof n.mergeType}", equal to ${JSON.stringify(n.mergeType,null,4)}`);if(typeof n.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof n.joinRangesThatTouchEdges}", equal to ${JSON.stringify(n.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as: | ||
${JSON.stringify(t,null,4)} (type ${typeof t})`);else n=A({},Lt);let l=e.filter(i=>Array.isArray(i)).map(i=>[...i]).filter(i=>i[2]!==void 0||i[0]!==i[1]),o,u,a;n.progressFn?o=Ce(l,{progressFn:i=>{a=Math.floor(i/5),a!==u&&(u=a,n.progressFn(a))}}):o=Ce(l);let g=o.length-1;for(let i=g;i>0;i--)n.progressFn&&(a=Math.floor((1-i/g)*78)+21,a!==u&&a>u&&(u=a,n.progressFn(a))),(o[i][0]<=o[i-1][0]||!n.joinRangesThatTouchEdges&&o[i][0]<o[i-1][1]||n.joinRangesThatTouchEdges&&o[i][0]<=o[i-1][1])&&(o[i-1][0]=Math.min(o[i][0],o[i-1][0]),o[i-1][1]=Math.max(o[i][1],o[i-1][1]),o[i][2]!==void 0&&(o[i-1][0]>=o[i][0]||o[i-1][1]<=o[i][1])&&o[i-1][2]!==null&&(o[i][2]===null&&o[i-1][2]!==null?o[i-1][2]=null:o[i-1][2]!=null?+n.mergeType==2&&o[i-1][0]===o[i][0]?o[i-1][2]=o[i][2]:o[i-1][2]+=o[i][2]:o[i-1][2]=o[i][2]),o.splice(i,1),i=o.length);return o.length?o:null}var Jn=!0,Ne="Invariant failed";function Ht(e,t){if(!e){if(Jn)throw new Error(Ne);var r=typeof t=="function"?t():t,n=r?"".concat(Ne,": ").concat(r):Ne;throw new Error(n)}}function Oe(e,t,r){let n=0,l=0;if(arguments.length===0)throw new Error("ranges-apply: [THROW_ID_01] inputs missing!");if(typeof e!="string")throw new TypeError(`ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ${typeof e}, equal to: ${JSON.stringify(e,null,4)}`);if(t&&!Array.isArray(t))throw new TypeError(`ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ${typeof t}, equal to: ${JSON.stringify(t,null,4)}`);if(r&&typeof r!="function")throw new TypeError(`ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ${typeof r}, equal to: ${JSON.stringify(r,null,4)}`);if(!t||!t.filter(h=>h).length)return e;let o;Array.isArray(t)&&Number.isInteger(t[0])&&Number.isInteger(t[1])?o=[Array.from(t)]:o=Array.from(t);let u=o.length,a=0;o.filter(h=>h).forEach((h,$)=>{if(r&&(n=Math.floor(a/u*10),n!==l&&(l=n,r(n))),!Array.isArray(h))throw new TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${$}th element not an array: ${JSON.stringify(h,null,4)}, which is ${typeof h}`);if(!Number.isInteger(h[0])){if(!Number.isInteger(+h[0])||+h[0]<0)throw new TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${$}th element, array ${JSON.stringify(h,null,0)}. Its first element is not an integer, string index, but ${typeof h[0]}, equal to: ${JSON.stringify(h[0],null,4)}.`);o[$][0]=+o[$][0]}if(!Number.isInteger(h[1])){if(!Number.isInteger(+h[1])||+h[1]<0)throw new TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${$}th element, array ${JSON.stringify(h,null,0)}. Its second element is not an integer, string index, but ${typeof h[1]}, equal to: ${JSON.stringify(h[1],null,4)}.`);o[$][1]=+o[$][1]}a+=1});let g=jt(o,{progressFn:h=>{r&&(n=10+Math.floor(h/10),n!==l&&(l=n,r(n)))}});Ht(g);let i=g.length;if(i>0){let h=e.slice(g[i-1][1]);e=g.reduce(($,p,f,d)=>{r&&(n=20+Math.floor(f/i*80),n!==l&&(l=n,r(n)));let S=f===0?0:d[f-1][1],y=d[f][0];return`${$}${e.slice(S,y)}${d[f][2]||""}`},""),e+=h}return e}var Ft="4.0.4";var Y=" ",X="\\00A0",z="\\u00A0",Vt="–",Pt="\\2013",Jt="\\u2013",Bt="—",kt="\\2014",Ut="\\u2014",De=[{heads:"{{",tails:"}}"},{heads:["{% if","{%- if"],tails:["{% endif","{%- endif"]},{heads:["{% for","{%- for"],tails:["{% endfor","{%- endfor"]},{heads:["{%","{%-"],tails:["%}","-%}"]},{heads:"{#",tails:"#}"}],qt=[{heads:"{{",tails:"}}"}],We=[{heads:["<%","<%=","<%-"],tails:["%>","=%>","-%>"]}],Gt=["abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"];var kn=Ft,Kt={removeWidowPreventionMeasures:!1,convertEntities:!0,targetLanguage:"html",UKPostcodes:!1,hyphens:!0,minWordCount:4,minCharCount:5,ignore:[],reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,tagRanges:[]};function Un(e,t){let r=Date.now();if(typeof e!="string")throw e===void 0?new Error("string-remove-widows: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`string-remove-widows: [THROW_ID_02] the first input argument must be string! It was given as "${typeof e}", equal to: | ||
${JSON.stringify(e,null,4)}`);if(t&&typeof t!="object")throw new Error(`string-remove-widows: [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof t}, equal to ${JSON.stringify(t,null,4)}`);let n=Array.isArray,l=e.length,o=new Mt({mergeType:2}),u=["."],a=/[A-Z]{1,2}[0-9][0-9A-Z]?$/,g=/^[0-9][A-Z]{2}/,i=.06,h,$=0,p=0,f=0,d,S,y,v,w,b,E,_,c=A(A({},Kt),t),N={removeWidows:!1,convertEntities:!1};if(!c.ignore||!n(c.ignore)&&typeof c.ignore!="string")c.ignore=[];else if(typeof c.ignore=="string"&&(c.ignore=[c.ignore]),c.ignore.includes("all"))c.ignore=c.ignore.concat(De.concat(We));else if(c.ignore.some(s=>typeof s=="string")){let s=[];c.ignore=c.ignore.filter(C=>typeof C=="string"&&C.length?(["nunjucks","jinja","liquid"].includes(C.trim().toLowerCase())?s=s.concat(De):["hugo"].includes(C.trim().toLowerCase())?s=s.concat(qt):["hexo"].includes(C.trim().toLowerCase())&&(s=s.concat(We)),!1):typeof C=="object"),s.length&&(c.ignore=c.ignore.concat(s))}let xe;c.reportProgressFunc&&(xe=Math.floor(c.reportProgressFuncTo-(c.reportProgressFuncTo-c.reportProgressFuncFrom)*i-c.reportProgressFuncFrom));function ce(s,C){let m=H;c.removeWidowPreventionMeasures?m=" ":c.convertEntities&&(m=Y,typeof c.targetLanguage=="string"&&(c.targetLanguage.trim().toLowerCase()==="css"?m=X:c.targetLanguage.trim().toLowerCase()==="js"&&(m=z))),e.slice(s,C)!==m&&o.push(s,C,m)}function Re(){p=0,f=0,d=void 0,S=void 0,y=void 0,v=void 0,w=void 0,b=void 0}Re();for(let s=0;s<=l;s++){if(!E&&n(c.ignore)&&c.ignore.length&&c.ignore.some((m,O)=>{if(n(m.heads)&&m.heads.some(Ie=>e.startsWith(Ie,s))||typeof m.heads=="string"&&e.startsWith(m.heads,s))return p+=1,E=c.ignore[O].tails,!0}),!E&&_&&_===s&&(p+=1,_=void 0),typeof c.reportProgressFunc=="function"&&(h=c.reportProgressFuncFrom+Math.floor(s/l*(xe||1)),h!==$&&($=h,c.reportProgressFunc(h))),!E&&s&&e[s]&&e[s].trim()&&(!e[s-1]||e[s-1]&&!e[s-1].trim())&&(v=s),!E&&e[s]&&e[s].trim()&&(f+=1),!E&&c.hyphens&&(`-${ke}${Be}`.includes(e[s])||e.startsWith(Vt,s)||e.startsWith(Pt,s)||e.startsWith(Jt,s)||e.startsWith(Bt,s)||e.startsWith(kt,s)||e.startsWith(Ut,s))&&e[s+1]&&(!e[s+1].trim()||e[s]==="&")&&e[s-1]&&!e[s-1].trim()&&e[Q(e,s)]&&(ce(Q(e,s)+1,s),N.removeWidows=!0),!E&&(e.startsWith(" ",s)||e.startsWith(" ",s))&&(w=s,b=s+6,e[s+6]&&e[s+6].trim()&&(_=s+6),c.convertEntities?(c.targetLanguage==="css"||c.targetLanguage==="js")&&(o.push(s,s+6,c.targetLanguage==="css"?X:z),N.convertEntities=!0):(o.push(s,s+6,H),N.convertEntities=!0)),!E&&e[s+4]&&e[s]==="\\"&&e[s+1]==="0"&&e[s+2]==="0"&&e[s+3].toUpperCase()==="A"&&e[s+4]==="0"&&(w=s,b=s+5,e[s+5]&&e[s+5].trim()&&(_=s+5),c.convertEntities?(c.targetLanguage==="html"||c.targetLanguage==="js")&&(o.push(s,s+5,c.targetLanguage==="html"?Y:z),N.convertEntities=!0):(o.push(s,s+5,H),N.convertEntities=!0)),!E&&e[s]==="\\"&&e[s+1]&&e[s+1].toLowerCase()==="u"&&e[s+2]==="0"&&e[s+3]==="0"&&e[s+4]&&e[s+4].toUpperCase()==="A"&&e[s+5]==="0"&&(w=s,b=s+6,e[s+6]&&e[s+6].trim()&&(_=s+6),c.convertEntities?(c.targetLanguage==="html"||c.targetLanguage==="css")&&o.push(s,s+6,c.targetLanguage==="html"?Y:X):o.push(s,s+6,H)),!E&&e[s]===H&&(w=s,b=s+1,c.convertEntities&&o.push(s,s+1,c.targetLanguage==="css"?X:c.targetLanguage==="js"?z:Y)),!E&&e[s]&&e[s].trim()&&(!e[s-1]||!e[s-1].trim())&&(p+=1),!E&&(!e[s]||`\r | ||
${JSON.stringify(r,null,4)}`);if(R(this.ranges)&&Array.isArray(this.last())&&n===this.last()[1]){if(this.last()[1]=l,this.last()[2],this.last()[2]!==null&&R(r)){let u=this.last()[2]&&this.last()[2].length&&(!((o=this.opts)!=null&&o.mergeType)||this.opts.mergeType===1)?`${this.last()[2]}${r}`:r;this.opts.limitToBeAddedWhitespace&&(u=ue(u,this.opts.limitLinebreaksCount)),Z(u)&&!u.length||(this.last()[2]=u)}}else{this.ranges||(this.ranges=[]);let u=r!==void 0&&!(Z(r)&&!r.length)?[n,l,r&&this.opts.limitToBeAddedWhitespace?ue(r,this.opts.limitLinebreaksCount):r]:[n,l];this.ranges.push(u)}}else throw I(n)&&n>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof l}" equal to: ${JSON.stringify(l,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof n}" equal to: ${JSON.stringify(n,null,4)}`)}push(e,t,r){this.add(e,t,r)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=Hn(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(e=>R(e[2])?[e[0],e[1],ue(e[2],this.opts.limitLinebreaksCount)]:e):this.ranges):null}wipe(){this.ranges=[]}replace(e){if(Array.isArray(e)&&e.length)if(Array.isArray(e[0])&&I(e[0][0]))this.ranges=Array.from(e);else throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(e[0],null,4)} should be an array and its first element should be an integer, a string index.`);else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};var Pn={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Ce(e,t){if(!Array.isArray(e)||!e.length)return e;let r=A(A({},Pn),t),n,l;if(r.strictlyTwoElementsInRangeArrays&&!e.every((a,g)=>!Array.isArray(a)||a.length!==2?(n=g,l=a.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) has not two but ${l} elements!`);if(!e.every((a,g)=>!Array.isArray(a)||!Number.isInteger(a[0])||a[0]<0||!Number.isInteger(a[1])||a[1]<0?(n=g,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${n}th range (${JSON.stringify(e[n],null,4)}) does not consist of only natural numbers!`);let o=e.length**2,u=0;return Array.from(e).sort((a,g)=>(r.progressFn&&(u+=1,r.progressFn(Math.floor(u*100/o))),a[0]===g[0]?a[1]<g[1]?-1:a[1]>g[1]?1:0:a[0]<g[0]?-1:1))}var Lt={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function jt(e,t){function r(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}if(!Array.isArray(e)||!e.length)return null;let n;if(t)if(r(t)){if(n=A(A({},Lt),t),n.progressFn&&r(n.progressFn)&&!Object.keys(n.progressFn).length)n.progressFn=null;else if(n.progressFn&&typeof n.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] opts.progressFn must be a function! It was given of a type: "${typeof n.progressFn}", equal to ${JSON.stringify(n.progressFn,null,4)}`);if(![1,2,"1","2"].includes(n.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof n.mergeType}", equal to ${JSON.stringify(n.mergeType,null,4)}`);if(typeof n.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] opts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof n.joinRangesThatTouchEdges}", equal to ${JSON.stringify(n.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as: | ||
${JSON.stringify(t,null,4)} (type ${typeof t})`);else n=A({},Lt);let l=e.filter(i=>Array.isArray(i)).map(i=>[...i]).filter(i=>i[2]!==void 0||i[0]!==i[1]),o,u,a;n.progressFn?o=Ce(l,{progressFn:i=>{a=Math.floor(i/5),a!==u&&(u=a,n.progressFn(a))}}):o=Ce(l);let g=o.length-1;for(let i=g;i>0;i--)n.progressFn&&(a=Math.floor((1-i/g)*78)+21,a!==u&&a>u&&(u=a,n.progressFn(a))),(o[i][0]<=o[i-1][0]||!n.joinRangesThatTouchEdges&&o[i][0]<o[i-1][1]||n.joinRangesThatTouchEdges&&o[i][0]<=o[i-1][1])&&(o[i-1][0]=Math.min(o[i][0],o[i-1][0]),o[i-1][1]=Math.max(o[i][1],o[i-1][1]),o[i][2]!==void 0&&(o[i-1][0]>=o[i][0]||o[i-1][1]<=o[i][1])&&o[i-1][2]!==null&&(o[i][2]===null&&o[i-1][2]!==null?o[i-1][2]=null:o[i-1][2]!=null?+n.mergeType==2&&o[i-1][0]===o[i][0]?o[i-1][2]=o[i][2]:o[i-1][2]+=o[i][2]:o[i-1][2]=o[i][2]),o.splice(i,1),i=o.length);return o.length?o:null}var Jn=!0,Ne="Invariant failed";function Ft(e,t){if(!e){if(Jn)throw new Error(Ne);var r=typeof t=="function"?t():t,n=r?"".concat(Ne,": ").concat(r):Ne;throw new Error(n)}}function Oe(e,t,r){let n=0,l=0;if(arguments.length===0)throw new Error("ranges-apply: [THROW_ID_01] inputs missing!");if(typeof e!="string")throw new TypeError(`ranges-apply: [THROW_ID_02] first input argument must be a string! Currently it's: ${typeof e}, equal to: ${JSON.stringify(e,null,4)}`);if(t&&!Array.isArray(t))throw new TypeError(`ranges-apply: [THROW_ID_03] second input argument must be an array (or null)! Currently it's: ${typeof t}, equal to: ${JSON.stringify(t,null,4)}`);if(r&&typeof r!="function")throw new TypeError(`ranges-apply: [THROW_ID_04] the third input argument must be a function (or falsey)! Currently it's: ${typeof r}, equal to: ${JSON.stringify(r,null,4)}`);if(!t||!t.filter(h=>h).length)return e;let o;Array.isArray(t)&&Number.isInteger(t[0])&&Number.isInteger(t[1])?o=[Array.from(t)]:o=Array.from(t);let u=o.length,a=0;o.filter(h=>h).forEach((h,$)=>{if(r&&(n=Math.floor(a/u*10),n!==l&&(l=n,r(n))),!Array.isArray(h))throw new TypeError(`ranges-apply: [THROW_ID_05] ranges array, second input arg., has ${$}th element not an array: ${JSON.stringify(h,null,4)}, which is ${typeof h}`);if(!Number.isInteger(h[0])){if(!Number.isInteger(+h[0])||+h[0]<0)throw new TypeError(`ranges-apply: [THROW_ID_06] ranges array, second input arg. has ${$}th element, array ${JSON.stringify(h,null,0)}. Its first element is not an integer, string index, but ${typeof h[0]}, equal to: ${JSON.stringify(h[0],null,4)}.`);o[$][0]=+o[$][0]}if(!Number.isInteger(h[1])){if(!Number.isInteger(+h[1])||+h[1]<0)throw new TypeError(`ranges-apply: [THROW_ID_07] ranges array, second input arg. has ${$}th element, array ${JSON.stringify(h,null,0)}. Its second element is not an integer, string index, but ${typeof h[1]}, equal to: ${JSON.stringify(h[1],null,4)}.`);o[$][1]=+o[$][1]}a+=1});let g=jt(o,{progressFn:h=>{r&&(n=10+Math.floor(h/10),n!==l&&(l=n,r(n)))}});Ft(g);let i=g.length;if(i>0){let h=e.slice(g[i-1][1]);e=g.reduce(($,p,f,d)=>{r&&(n=20+Math.floor(f/i*80),n!==l&&(l=n,r(n)));let S=f===0?0:d[f-1][1],y=d[f][0];return`${$}${e.slice(S,y)}${d[f][2]||""}`},""),e+=h}return e}var Ht="4.0.5";var Y=" ",X="\\00A0",z="\\u00A0",Vt="–",Pt="\\2013",Jt="\\u2013",Bt="—",kt="\\2014",Ut="\\u2014",De=[{heads:"{{",tails:"}}"},{heads:["{% if","{%- if"],tails:["{% endif","{%- endif"]},{heads:["{% for","{%- for"],tails:["{% endfor","{%- endfor"]},{heads:["{%","{%-"],tails:["%}","-%}"]},{heads:"{#",tails:"#}"}],qt=[{heads:"{{",tails:"}}"}],We=[{heads:["<%","<%=","<%-"],tails:["%>","=%>","-%>"]}],Gt=["abbr","address","area","article","aside","audio","base","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","param","picture","pre","progress","rb","rp","rt","rtc","ruby","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","ul","var","video","wbr","xml"];var kn=Ht,Kt={removeWidowPreventionMeasures:!1,convertEntities:!0,targetLanguage:"html",UKPostcodes:!1,hyphens:!0,minWordCount:4,minCharCount:5,ignore:[],reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,tagRanges:[]};function Un(e,t){let r=Date.now();if(typeof e!="string")throw e===void 0?new Error("string-remove-widows: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`string-remove-widows: [THROW_ID_02] the first input argument must be string! It was given as "${typeof e}", equal to: | ||
${JSON.stringify(e,null,4)}`);if(t&&typeof t!="object")throw new Error(`string-remove-widows: [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof t}, equal to ${JSON.stringify(t,null,4)}`);let n=Array.isArray,l=e.length,o=new Mt({mergeType:2}),u=["."],a=/[A-Z]{1,2}[0-9][0-9A-Z]?$/,g=/^[0-9][A-Z]{2}/,i=.06,h,$=0,p=0,f=0,d,S,y,v,w,b,E,_,c=A(A({},Kt),t),N={removeWidows:!1,convertEntities:!1};if(!c.ignore||!n(c.ignore)&&typeof c.ignore!="string")c.ignore=[];else if(typeof c.ignore=="string"&&(c.ignore=[c.ignore]),c.ignore.includes("all"))c.ignore=c.ignore.concat(De.concat(We));else if(c.ignore.some(s=>typeof s=="string")){let s=[];c.ignore=c.ignore.filter(C=>typeof C=="string"&&C.length?(["nunjucks","jinja","liquid"].includes(C.trim().toLowerCase())?s=s.concat(De):["hugo"].includes(C.trim().toLowerCase())?s=s.concat(qt):["hexo"].includes(C.trim().toLowerCase())&&(s=s.concat(We)),!1):typeof C=="object"),s.length&&(c.ignore=c.ignore.concat(s))}let xe;c.reportProgressFunc&&(xe=Math.floor(c.reportProgressFuncTo-(c.reportProgressFuncTo-c.reportProgressFuncFrom)*i-c.reportProgressFuncFrom));function ce(s,C){let m=F;c.removeWidowPreventionMeasures?m=" ":c.convertEntities&&(m=Y,typeof c.targetLanguage=="string"&&(c.targetLanguage.trim().toLowerCase()==="css"?m=X:c.targetLanguage.trim().toLowerCase()==="js"&&(m=z))),e.slice(s,C)!==m&&o.push(s,C,m)}function Re(){p=0,f=0,d=void 0,S=void 0,y=void 0,v=void 0,w=void 0,b=void 0}Re();for(let s=0;s<=l;s++){if(!E&&n(c.ignore)&&c.ignore.length&&c.ignore.some((m,O)=>{if(n(m.heads)&&m.heads.some(Ie=>e.startsWith(Ie,s))||typeof m.heads=="string"&&e.startsWith(m.heads,s))return p+=1,E=c.ignore[O].tails,!0}),!E&&_&&_===s&&(p+=1,_=void 0),typeof c.reportProgressFunc=="function"&&(h=c.reportProgressFuncFrom+Math.floor(s/l*(xe||1)),h!==$&&($=h,c.reportProgressFunc(h))),!E&&s&&e[s]&&e[s].trim()&&(!e[s-1]||e[s-1]&&!e[s-1].trim())&&(v=s),!E&&e[s]&&e[s].trim()&&(f+=1),!E&&c.hyphens&&(`-${ke}${Be}`.includes(e[s])||e.startsWith(Vt,s)||e.startsWith(Pt,s)||e.startsWith(Jt,s)||e.startsWith(Bt,s)||e.startsWith(kt,s)||e.startsWith(Ut,s))&&e[s+1]&&(!e[s+1].trim()||e[s]==="&")&&e[s-1]&&!e[s-1].trim()&&e[Q(e,s)]&&(ce(Q(e,s)+1,s),N.removeWidows=!0),!E&&(e.startsWith(" ",s)||e.startsWith(" ",s))&&(w=s,b=s+6,e[s+6]&&e[s+6].trim()&&(_=s+6),c.convertEntities?(c.targetLanguage==="css"||c.targetLanguage==="js")&&(o.push(s,s+6,c.targetLanguage==="css"?X:z),N.convertEntities=!0):(o.push(s,s+6,F),N.convertEntities=!0)),!E&&e[s+4]&&e[s]==="\\"&&e[s+1]==="0"&&e[s+2]==="0"&&e[s+3].toUpperCase()==="A"&&e[s+4]==="0"&&(w=s,b=s+5,e[s+5]&&e[s+5].trim()&&(_=s+5),c.convertEntities?(c.targetLanguage==="html"||c.targetLanguage==="js")&&(o.push(s,s+5,c.targetLanguage==="html"?Y:z),N.convertEntities=!0):(o.push(s,s+5,F),N.convertEntities=!0)),!E&&e[s]==="\\"&&e[s+1]&&e[s+1].toLowerCase()==="u"&&e[s+2]==="0"&&e[s+3]==="0"&&e[s+4]&&e[s+4].toUpperCase()==="A"&&e[s+5]==="0"&&(w=s,b=s+6,e[s+6]&&e[s+6].trim()&&(_=s+6),c.convertEntities?(c.targetLanguage==="html"||c.targetLanguage==="css")&&o.push(s,s+6,c.targetLanguage==="html"?Y:X):o.push(s,s+6,F)),!E&&e[s]===F&&(w=s,b=s+1,c.convertEntities&&o.push(s,s+1,c.targetLanguage==="css"?X:c.targetLanguage==="js"?z:Y)),!E&&e[s]&&e[s].trim()&&(!e[s-1]||!e[s-1].trim())&&(p+=1),!E&&(!e[s]||`\r | ||
`.includes(e[s])||(e[s]===` | ||
@@ -44,3 +44,3 @@ `||e[s]==="\r"||e[s]==="\r"&&e[s+1]===` | ||
* @fileoverview Match substrings on the left or right of a given index, ignoring whitespace | ||
* @version 9.0.4 | ||
* @version 9.0.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -53,3 +53,3 @@ * @license MIT | ||
* @fileoverview Various utility functions | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -62,3 +62,3 @@ * @license MIT | ||
* @fileoverview Looks up the first non-whitespace character to the left/right of a given index | ||
* @version 6.0.4 | ||
* @version 6.0.5 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -65,0 +65,0 @@ * @license MIT |
{ | ||
"name": "string-remove-widows", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"description": "Helps to prevent widow words in a text", | ||
@@ -78,11 +78,11 @@ "keywords": [ | ||
"dependencies": { | ||
"codsen-utils": "^1.1.0", | ||
"codsen-utils": "^1.1.1", | ||
"ranges-apply": "^7.0.3", | ||
"ranges-push": "^7.0.3", | ||
"string-left-right": "^6.0.4", | ||
"string-match-left-right": "^9.0.4" | ||
"string-left-right": "^6.0.5", | ||
"string-match-left-right": "^9.0.5" | ||
}, | ||
"devDependencies": { | ||
"string-strip-html": "^13.0.4" | ||
"string-strip-html": "^13.0.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
Updatedcodsen-utils@^1.1.1
Updatedstring-left-right@^6.0.5