html-crush 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -5
- package/dist/html-crush.esm.js +2 -2
- package/dist/html-crush.umd.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -34,6 +34,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
34
34
|
|
|
35
35
|
- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
|
|
36
36
|
|
|
37
|
+
## 6.2.1 (2026-08-19)
|
|
38
|
+
|
|
39
|
+
### Performance Improvements
|
|
40
|
+
|
|
41
|
+
- Recorded a 3,440.01% higher normalized benchmark score than v6.1.3 (4.209022369707907 → 149).
|
|
42
|
+
|
|
37
43
|
## 6.2.0 (2026-08-19)
|
|
38
44
|
|
|
39
45
|
### Bug Fixes
|
|
@@ -50,11 +56,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
50
56
|
- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
|
|
51
57
|
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
52
58
|
|
|
53
|
-
### Reverts
|
|
54
|
-
|
|
55
|
-
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
56
|
-
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
57
|
-
|
|
58
59
|
## 6.0.0 (2022-12-01)
|
|
59
60
|
|
|
60
61
|
### BREAKING CHANGES
|
|
@@ -67,12 +68,52 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
67
68
|
|
|
68
69
|
- export Opts and Res types ([a91c313](https://github.com/codsen/codsen/commit/a91c31378be43a93a51893d3383a3b53cb2bc5f0))
|
|
69
70
|
|
|
71
|
+
### Performance Improvements
|
|
72
|
+
|
|
73
|
+
- Recorded a 74.74% higher normalized benchmark score than v5.0.21 (4.961380484122148 → 8.66929113024107).
|
|
74
|
+
|
|
75
|
+
## 5.0.19 (2022-07-05)
|
|
76
|
+
|
|
77
|
+
### Performance Improvements
|
|
78
|
+
|
|
79
|
+
- Recorded a 73.35% higher normalized benchmark score than v5.0.18 (7.006415294859441 → 12.145485913370925).
|
|
80
|
+
|
|
81
|
+
## 5.0.18 (2022-05-04)
|
|
82
|
+
|
|
83
|
+
### Performance Improvements
|
|
84
|
+
|
|
85
|
+
- Recorded a 76.45% higher normalized benchmark score than v5.0.16 (3.9706987428986844 → 7.006415294859441).
|
|
86
|
+
|
|
70
87
|
## 5.0.16 (2022-04-18)
|
|
71
88
|
|
|
72
89
|
### Fixed
|
|
73
90
|
|
|
74
91
|
- tweak types ([104a64a](https://github.com/codsen/codsen/commit/104a64ab783c05af4ae8bd3eb653742eb95d0cd2))
|
|
75
92
|
|
|
93
|
+
## 5.0.15 (2022-04-17)
|
|
94
|
+
|
|
95
|
+
### Performance Improvements
|
|
96
|
+
|
|
97
|
+
- Recorded a 40.42% higher normalized benchmark score than v5.0.14 (4.349890317664265 → 6.108300966767633).
|
|
98
|
+
|
|
99
|
+
## 5.0.10 (2021-12-24)
|
|
100
|
+
|
|
101
|
+
### Performance Improvements
|
|
102
|
+
|
|
103
|
+
- Recorded a 29.01% higher normalized benchmark score than v5.0.9 (4.936752654741147 → 6.36902994522682).
|
|
104
|
+
|
|
105
|
+
## 5.0.9 (2021-12-24)
|
|
106
|
+
|
|
107
|
+
### Performance Improvements
|
|
108
|
+
|
|
109
|
+
- Recorded a 2.77% higher normalized benchmark score than v5.0.8 (4.803840859907383 → 4.936752654741147).
|
|
110
|
+
|
|
111
|
+
## 5.0.7 (2021-11-30)
|
|
112
|
+
|
|
113
|
+
### Performance Improvements
|
|
114
|
+
|
|
115
|
+
- Recorded a 29.15% higher normalized benchmark score than v5.0.5 (6.773020416495399 → 8.747356153811113).
|
|
116
|
+
|
|
76
117
|
## 5.0.0 (2021-09-09)
|
|
77
118
|
|
|
78
119
|
### Fixed
|
package/dist/html-crush.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name html-crush
|
|
3
3
|
* @fileoverview Minify email templates
|
|
4
|
-
* @version 6.3.
|
|
4
|
+
* @version 6.3.2
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/html-crush/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{formatDiagnosticValue as z,isLetter as De,isPlainObject as Oe,isStr as N,isWhitespaceChar as L}from"codsen-utils";import{Ranges as Ce}from"ranges-push";import{left as Z,right as V}from"string-left-right";import{matchLeft as Ve,matchRight as Ae,matchRightIncl as ye}from"string-match-left-right";import{expander as ee}from"string-range-expander";var me="6.3.
|
|
10
|
+
import{formatDiagnosticValue as z,isLetter as De,isPlainObject as Oe,isStr as N,isWhitespaceChar as L}from"codsen-utils";import{Ranges as Ce}from"ranges-push";import{left as Z,right as V}from"string-left-right";import{matchLeft as Ve,matchRight as Ae,matchRightIncl as ye}from"string-match-left-right";import{expander as ee}from"string-range-expander";var me="6.3.2";function ae(n,g){if(g<0||g>=n.length)return;let E=n.charCodeAt(g),b=n.charCodeAt(g+1);if(E>=55296&&E<=56319&&b>=56320&&b<=57343)return n.slice(g,g+2);let i=n.charCodeAt(g-1);return E>=56320&&E<=57343&&i>=55296&&i<=56319?n.slice(g-1,g+1):n[g]}var Re=me;function ne(n){return n>96&&n<123||n>64&&n<91||n>47&&n<58||n===95}function J(n){return n!==void 0&&ne(n.charCodeAt(0))}function ce(n){return n!==void 0&&(ne(n.charCodeAt(0))||":-.".includes(n))}function ge(n){if(/^[\x00-\x7f]*$/.test(n))return n.length;let g=0;for(let E=0;E<n.length;E++){let b=n.charCodeAt(E);if(b<=127)g+=1;else if(b<=2047)g+=2;else if(b>=55296&&b<=56319&&E+1<n.length){let i=n.charCodeAt(E+1);i>=56320&&i<=57343?(g+=4,E+=1):g+=3}else g+=3}return g}function Ne(n,g,E){let b="",i=0;for(let l=0,I=g.length;l<I;l++){E&&E(l/I*100);let O=g[l];b+=`${n.slice(i,O[0])}${O[2]??""}`,i=O[1]}return E&&E(100),b+n.slice(i)}var be={lineLengthLimit:500,removeIndentations:!0,removeLineBreaks:!1,removeHTMLComments:!1,removeCSSComments:!0,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,breakToTheLeftOf:["</td","<html","</html","<head","</head","<meta","<link","<table","<script","</script","<!DOCTYPE","<style","</style","<title","<body","@media","</body","<!--[if","<!--<![endif","<![endif]"],mindTheInlineTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]};function Be(n,g){let E=Date.now();if(!N(n))throw n===void 0?new Error("html-crush/crush(): [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`html-crush/crush(): [THROW_ID_02] the first input argument must be string! It was given as "${typeof n}", equal to:
|
|
11
11
|
${z(n,4)}`);if(g&&!Oe(g))throw new Error(`html-crush/crush(): [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof g}, equal to ${z(g,4)}`);let b=g;if(b&&Array.isArray(b.breakToTheLeftOf)&&b.breakToTheLeftOf.length){for(let s=0,e=b.breakToTheLeftOf.length;s<e;s++)if(!N(b.breakToTheLeftOf[s]))throw new TypeError(`html-crush/crush(): [THROW_ID_04] the resolvedOpts.breakToTheLeftOf array contains non-string elements! For example, element at index ${s} is of a type "${typeof b.breakToTheLeftOf[s]}" and is equal to:
|
|
12
12
|
${z(b.breakToTheLeftOf[s],4)}`)}let i=new Ce({limitToBeAddedWhitespace:!0}),l={...be,...b,reportProgressFunc:typeof b?.reportProgressFunc=="function"?b.reportProgressFunc:null,breakToTheLeftOf:b?.breakToTheLeftOf===void 0?be.breakToTheLeftOf:Array.isArray(b.breakToTheLeftOf)?b.breakToTheLeftOf:[]};typeof l.removeHTMLComments=="boolean"&&(l.removeHTMLComments=l.removeHTMLComments?1:0);let I="";Array.isArray(l.breakToTheLeftOf)&&l.breakToTheLeftOf.length&&(I=[...new Set(l.breakToTheLeftOf.map(s=>s[0]))].join(""));let O={removeHTMLComments:!1,removeCSSComments:!1},Y=Array.isArray(l.mindTheInlineTags)?l.mindTheInlineTags:[],W=new Set(Y),fe=!!Y.length&&Y.every(s=>N(s)&&!!s.length&&![...s].some(e=>!J(e))),X=new Map,te=Array.isArray(l.breakToTheLeftOf)&&!!l.breakToTheLeftOf.length&&l.breakToTheLeftOf.every(N)&&!(l.breakToTheLeftOf.length===1&&!l.breakToTheLeftOf[0].trim());if(te)for(let s of l.breakToTheLeftOf){if(!s.length)continue;let e=X.get(s[0]);e?e.push(s):X.set(s[0],[s])}function le(s){if(!te)return!!ye(n,s,l.breakToTheLeftOf);let e=X.get(n[s]);if(e===void 0)return!1;for(let a=0,t=e.length;a<t;a++)if(n.startsWith(e[a],s))return!0;return!1}function H(s,e){if(!fe)return!!Ae(n,s,l.mindTheInlineTags,{...e?{trimCharsBeforeMatching:"/"}:{},cb:c=>!c||!J(c)});let a=s+1;if(e)for(;n[a]==="/";)a++;let t=a;for(;t<h&&ne(n.charCodeAt(t));)t++;return t>a&&W.has(n.slice(a,t))}function he(s){let e=s-1;for(;e>=0&&L(n[e]);)e--;if(n[e]!=="=")return null;let a=e,t=e-1;for(;t>=0&&L(n[t]);)t--,a--;for(;t>=0&&ce(n[t]);)t--;return t+1<a?n.slice(t+1,a).toLowerCase():null}function y(s,e,a){if(n[s]!=="<")return!1;let t=s+1;if(a){if(n[t]!=="/")return!1;t++}else if(n[t]==="/")return!1;for(let c=0;c<e.length;c++){let C=n.charCodeAt(t+c);if(C>64&&C<91&&(C+=32),C!==e.charCodeAt(c))return!1}return!ce(n[t+e.length])&&!De(ae(n,t+e.length))}function de(s,e){let a=n.indexOf("<",s);for(;a!==-1;){if(y(a,e,!0))return a;a=n.indexOf("<",a+1)}return-1}let P=null,$=null,w=!1,r=0,G=0,T=!1,k=!1,f=null,U=null,M=null,S=null,v=null,q=null,u,o=null,m=null,d=null,D=null,A=null,j=null,R=">};",B="<",Te="!",Ee=">",pe="<",oe="{},:;<>~+",K=oe,Q=oe,F=!0,h=n.length;function ie(s,e=!1){let a=s.length,t=Math.max(h-a,0),c=ge(n),C=e?c:ge(s),re=Math.max(c-C,0);return{timeTakenInMilliseconds:Date.now()-E,originalLength:h,cleanedLength:a,bytesSaved:t,percentageReducedOfOriginal:h?Math.round(t*100/h):0,originalLengthInCodeUnits:h,cleanedLengthInCodeUnits:a,codeUnitsSaved:t,percentageReducedOfOriginalInCodeUnits:h?Math.round(t*100/h):0,originalLengthInUtf8Bytes:c,cleanedLengthInUtf8Bytes:C,utf8BytesSaved:re,percentageReducedOfOriginalInUtf8Bytes:c?Math.round(re*100/c):0}}let _=0;for(;_<h&&L(n[_]);)_++;let Se=Math.floor(h/2),se=.01,$e=1-se,ue=null;function x(s){if(!l.reportProgressFunc||h<=1e3)return;let e=Math.max(0,Math.min(s,1)),a=Math.floor(l.reportProgressFuncFrom+(l.reportProgressFuncTo-l.reportProgressFuncFrom)*e);a!==ue&&(ue=a,l.reportProgressFunc(a))}let p=`
|
|
13
13
|
`;if(n.includes(`\r
|
package/dist/html-crush.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name html-crush
|
|
3
3
|
* @fileoverview Minify email templates
|
|
4
|
-
* @version 6.3.
|
|
4
|
+
* @version 6.3.2
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/html-crush/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var htmlCrush=(()=>{var ue=Object.defineProperty,$t=Object.defineProperties,bt=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertyNames,We=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable;var Te=(e,n,t)=>n in e?ue(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,U=(e,n)=>{for(var t in n||(n={}))He.call(n,t)&&Te(e,t,n[t]);if(We)for(var t of We(n))St.call(n,t)&&Te(e,t,n[t]);return e},le=(e,n)=>$t(e,Tt(n));var Et=(e,n)=>{for(var t in n)ue(e,t,{get:n[t],enumerable:!0})},Ct=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of yt(n))!He.call(e,l)&&l!==t&&ue(e,l,{get:()=>n[l],enumerable:!(r=bt(n,l))||r.enumerable});return e};var At=e=>Ct(ue({},"__esModule",{value:!0}),e);var oe=(e,n,t)=>Te(e,typeof n!="symbol"?n+"":n,t);var Yt={};Et(Yt,{crush:()=>Kt,defaults:()=>ve,version:()=>zt});function Ot(){let e=[],n=0,t=!1;return{append(r){return t?!1:n+r.length>1999?(e.push("\u2026"),n+=1,t=!0,!1):(e.push(r),n+=r.length,!0)},result(){return e.join("")},stopped(){return t}}}function wt(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function fe(e,n){if(e.append('"')){for(let t=0;t<n.length&&!e.stopped();t+=1){let r=n.charCodeAt(t);r===34?e.append('\\"'):r===92?e.append("\\\\"):r===8?e.append("\\b"):r===9?e.append("\\t"):r===10?e.append("\\n"):r===12?e.append("\\f"):r===13?e.append("\\r"):r<32||r===8232||r===8233||r>=55296&&r<=57343?e.append(wt(r)):e.append(n[t])}e.append('"')}}function Lt(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function Fe(e,n){e.append("Symbol(");let t=String(n);t.length>8&&fe(e,t.slice(7,-1)),e.append(")")}function je(e,n){typeof n=="symbol"?Fe(e,n):fe(e,String(n))}function g(e,n=0){let t=Ot(),r=n===4?4:0,l=new WeakSet,i=0;function s(f){r&&t.append(" ".repeat(f*r))}function u(f,C){f&&t.append(","),r&&(t.append("\n"),s(C+1))}function c(f,C,d){r&&C&&(t.append("\n"),s(d)),t.append(f)}function h(f,C){Object.prototype.hasOwnProperty.call(f,"value")?N(f.value,C):t.append(Lt(f))}function E(f,C){let d;try{d=Reflect.getOwnPropertyDescriptor(f,"length")}catch(a){t.append("[Uninspectable]");return}let b=d==null?void 0:d.value;if(!Number.isSafeInteger(b)||b<0){t.append("[Uninspectable]");return}t.append("[");let m=!1;for(let a=0;a<b&&!t.stopped();a+=1){if(u(m,C),m=!0,i>=50){t.append("[MaxEntries]");break}i+=1;let R;try{R=Reflect.getOwnPropertyDescriptor(f,String(a))}catch($){t.append("[Uninspectable]");continue}R!=null&&R.enumerable?h(R,C+1):t.append("[Empty]")}c("]",m,C)}function A(f,C){let d;try{d=Reflect.ownKeys(f)}catch(m){t.append("[Uninspectable]");return}t.append("{");let b=!1;for(let m of d){if(t.stopped())break;if(i>=50){u(b,C),b=!0,fe(t,"\u2026"),t.append(r?": ":":"),t.append("[MaxEntries]");break}i+=1;let a;try{a=Reflect.getOwnPropertyDescriptor(f,m)}catch(R){u(b,C),b=!0,je(t,m),t.append(r?": ":":"),t.append("[Uninspectable]");continue}a!=null&&a.enumerable&&(u(b,C),b=!0,je(t,m),t.append(r?": ":":"),h(a,C+1))}c("}",b,C)}function p(f,C){if(l.has(f)){t.append("[Circular]");return}if(C>=5){t.append("[MaxDepth]");return}let d;try{d=Array.isArray(f)}catch(b){t.append("[Uninspectable]");return}l.add(f);try{d?E(f,C):A(f,C)}finally{l.delete(f)}}function N(f,C){f===null?t.append("null"):typeof f=="string"?fe(t,f):typeof f=="number"?t.append(Object.is(f,-0)?"-0":String(f)):typeof f=="boolean"?t.append(f?"true":"false"):typeof f>"u"?t.append("undefined"):typeof f=="bigint"?t.append("".concat(f,"n")):typeof f=="symbol"?Fe(t,f):typeof f=="function"?t.append("[Function]"):p(f,C)}try{return N(e,0),t.result()}catch(f){return"[Uninspectable]"}}var vt=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_7_1_2_1_m_1_f_3_0_q_2_1_1_2_1_u_0_4_7_1_2_1_m_1_","9_1_4_3_0_u_2_1_1_f_1_h_8_1_2_1_14_2_0_g_0_5_2_8_2_o_5_5_h_3_n_1_8_1_0_2_6_1m_1b_1_1_c_6_1m_1_1_0_1_","4_1_n_1_0_1_9_1_1_9_0_2_4_1_0_l_3_w_0_1r_7_1_z_r_4_37_16_k_0_g_5_4_3_3_0_3_1_7_2_4_c_c_0_h_11_1_0_5_","0_2_16_1_98_1_3_2_6_1_0_1_3_2_14_1_3_2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_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),ye=vt.slice(1).split("_"),Se=[],Be=127;for(let e=0;e<ye.length;e+=2){let n=Be+1+Number.parseInt(ye[e],36),t=n+Number.parseInt(ye[e+1],36);Se.push([n,t]),Be=t}function It(e){if(Number.isNaN(e)||e<128||e>1114111)return!1;let n=0,t=Se.length-1;for(;n<=t;){let r=n+t>>1,l=Se[r];if(e<l[0])t=r-1;else if(e>l[1])n=r+1;else return!0}return!1}var en=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),Dt=Object.prototype.hasOwnProperty,Ge=Function.prototype.toString,Rt=Ge.call(Object);var tn=Map.prototype.entries,nn=Set.prototype.values;var Ue,rn=(Ue=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:Ue.get,qe,_n=(qe=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:qe.get,Je,ln=(Je=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:Je.get,ze,on=(ze=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:ze.get,sn=RegExp.prototype.test;function xt(e){if(e.length===1){let n=e.charCodeAt(0);return n<55296||n>57343?n:-1}if(e.length===2){let n=e.charCodeAt(0),t=e.charCodeAt(1);if(n>=55296&&n<=56319&&t>=56320&&t<=57343)return(n-55296)*1024+t-56320+65536}return-1}function Ke(e){if(!L(e)||e.length===0||e.length>2)return!1;let n=e.charCodeAt(0);return e.length===1&&n<128?n>64&&n<91||n>96&&n<123:It(xt(e))}function H(e){if(!L(e)||!e)return!1;let n=e.charCodeAt(0);return n<128?n===32||n>8&&n<14:!e[0].trim()}function F(e){var r;if(e==null||typeof e!="object")return!1;let n=Object.getPrototypeOf(e);if(n===null||n===Object.prototype)return!0;let t=Object.getOwnPropertyDescriptor(n,"constructor");return!t||!("value"in t)||typeof t.value!="function"?!1:((r=Object.getOwnPropertyDescriptor(t.value,"prototype"))==null?void 0:r.value)===n&&Ge.call(t.value)===Rt}function L(e){return typeof e=="string"}function Ee(e){return Number.isFinite(e)}function K(e){return Number.isSafeInteger(e)&&e>=0}var an=Date.prototype.getTime;function ce(e){return e!=null}function Ye(e,n){return e!=null&&Dt.call(e,n)}function he(e,n=1){let t="\xA0";function r(i){return i.length<2?i:Array.from(i).reverse().join("")}function l(i,s,u){let c=u?"\n":"\r",h=u?"\r":"\n";if(!i)return i;let E=0,A="";for(let p=0,N=i.length;p<N;p++)(i[p]===c||i[p]===h&&i[p-1]!==c)&&E++,"\r\n".includes(i[p])||i[p]===t?i[p]===t?A+=i[p]:i[p]===c?E<=s&&(A+=i[p],i[p+1]===h&&(A+=i[p+1],p++)):i[p]===h&&(i==null?void 0:i[p-1])!==c&&E<=s&&(A+=i[p]):!i[p+1]&&!E&&(A+=" ");return A}if(typeof e=="string"&&e.length){let i=e.trim();if(i.length===e.length)return e;let s=1;typeof n=="number"&&Number.isInteger(n)&&n>=0&&(s=n);let u="",c="";if(!i)u=e;else if(!e[0].trim()){for(let E=0,A=e.length;E<A;E++)if(e[E].trim()){u=e.slice(0,E);break}}let h=e[e.length-1];if(i&&(h.trim()===""||h===t)){for(let E=e.length;E--;)if(e[E].trim()){c=e.slice(E+1);break}}return"".concat(l(u,s,!1)).concat(i).concat(r(l(r(c),s,!0)))}return e}var Qe={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Nt(e,n){let t,r=0;for(;r<e.length;){let l=r+1;for(;l<e.length&&e[r][0]===e[l][0]&&e[r][1]===e[l][1];)l+=1;if(l-r>1){t||(t=new Map(n.map((u,c)=>[u,c])));let i=t,s=e.slice(r,l).sort((u,c)=>i.get(u)-i.get(c));e.splice(r,s.length,...s)}r=l}return e}function Ce(e,n){var u;if(!Array.isArray(e)||!e.length)return e;let t=n===void 0?!0:F(n);if(n!==void 0&&t&&(n==null?void 0:n.strictlyTwoElementsInRangeArrays)===!0)for(let c=0;c<e.length;c+=1){let h=e[c];if(!Array.isArray(h)||h.length!==2)throw new TypeError("ranges-sort/rSort(): [THROW_ID_01] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") is ").concat(Array.isArray(h)?"an array with ".concat(h.length," elements"):"not an array","!"));if(!Number.isInteger(h[0])||h[0]<0||!Number.isInteger(h[1])||h[1]<0)throw new TypeError("ranges-sort/rSort(): [THROW_ID_02] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") does not consist of only natural numbers!"))}else for(let c=0;c<e.length;c+=1){let h=e[c];if(!Array.isArray(h)||!Number.isInteger(h[0])||h[0]<0||!Number.isInteger(h[1])||h[1]<0)throw new TypeError("ranges-sort/rSort(): [THROW_ID_02] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") does not consist of only natural numbers!"))}if(n!==void 0&&!t)throw new TypeError("ranges-sort/rSort(): [THROW_ID_03] The second argument must be a plain options object; received ".concat(g(n,4)," (type ").concat(typeof n,")!"));let r=Qe.progressFn;if(n!==void 0){let c=n.strictlyTwoElementsInRangeArrays;if(c!==void 0&&typeof c!="boolean")throw new TypeError("ranges-sort/rSort(): [THROW_ID_04] opts.strictlyTwoElementsInRangeArrays must be a boolean; received ".concat(g(c,4)," (type ").concat(typeof c,")!"));if(r=(u=n.progressFn)!=null?u:Qe.progressFn,r!==!1&&r!==null&&typeof r!="function")throw new TypeError("ranges-sort/rSort(): [THROW_ID_05] opts.progressFn must be a function, false, null, or undefined; received ".concat(g(r,4)," (type ").concat(typeof r,")!"))}let l,i;if(r){let c=e.length**2,h=0,E;i=A=>{A!==E&&(E=A,r(A))},l=Array.from(e).sort((A,p)=>(h+=1,i==null||i(Math.min(99,Math.floor(h*100/c))),A[0]===p[0]?A[1]<p[1]?-1:A[1]>p[1]?1:0:A[0]<p[0]?-1:1))}else l=Array.from(e).sort((c,h)=>c[0]===h[0]?c[1]<h[1]?-1:c[1]>h[1]?1:0:c[0]<h[0]?-1:1);let s=l.length>10?Nt(l,e):l;return i==null||i(100),s}var Ae={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function Xe(e,n,t){return n===void 0||e===null?e:n===null?null:e===void 0||t?n:e+n}function kt(e,n){var f,C,d;function t(b){return!!b&&typeof b=="object"&&!Array.isArray(b)}if(!Array.isArray(e)||!e.length)return null;if(n&&!t(n))throw new TypeError("ranges-push/rMerge(): [THROW_ID_07] the second input argument must be a plain object. It was given as:\n".concat(g(n,4)," (type ").concat(typeof n,")"));let r=(f=n==null?void 0:n.progressFn)!=null?f:Ae.progressFn,l=(C=n==null?void 0:n.mergeType)!=null?C:Ae.mergeType,i=(d=n==null?void 0:n.joinRangesThatTouchEdges)!=null?d:Ae.joinRangesThatTouchEdges;if(r&&t(r)&&!Object.keys(r).length)r=null;else if(r&&typeof r!="function")throw new TypeError('ranges-push/rMerge(): [THROW_ID_08] resolvedOpts.progressFn must be a function! It was given of a type: "'.concat(typeof r,'", equal to ').concat(g(r,4)));if(l!==1&&l!==2&&l!=="1"&&l!=="2")throw new TypeError('ranges-push/rMerge(): [THROW_ID_09] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "'.concat(typeof l,'", equal to ').concat(g(l,4)));if(typeof i!="boolean")throw new TypeError('ranges-push/rMerge(): [THROW_ID_10] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "'.concat(typeof i,'", equal to ').concat(g(i,4)));let s=[];for(let b of e)Array.isArray(b)&&(b[2]!==void 0||b[0]!==b[1])&&s.push([...b]);let u,c,h;r?u=Ce(s,{progressFn:b=>{h=Math.floor(b/5),h!==c&&(c=h,r==null||r(h))}}):u=Ce(s);let E=u.length-1,A=+l==2,p=u.length;for(let b=E;b>=0;b--){let m=u[b];for(r&&b<E&&(h=Math.floor((1-(b+1)/E)*78)+21,h!==c&&h>c&&(c=h,r(h)));p<u.length;){let a=u[p],R=a[0]===m[0];if(!R&&(i?a[0]>m[1]:a[0]>=m[1]))break;let $=a[1]>=m[1];$&&(m[1]=a[1]),a[2]===null?m[2]=null:a[2]!==void 0&&(R||$)&&(m[2]=Xe(m[2],a[2],A&&R)),p+=1}p-=1,u[p]=m}let N=u.length-p;for(let b=0;b<N;b++)u[b]=u[p+b];return u.length=N,u.length?u:null}var ge=Object.freeze({limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1});function Y(e){if(K(e))return e;if(typeof e=="string"&&/^\d+$/.test(e)){let n=Number(e);return K(n)?n:null}return null}function Ze(e){if(!Array.isArray(e))return"a ranges batch must contain only range arrays; received ".concat(g(e,4));if(e.length>3)return"a range must contain at most three values; received ".concat(g(e,4));let[n,t,r]=e;if(n==null&&t==null)return;if(n!=null&&t==null)return"the first index is set (".concat(g(n),") but the second index is not (").concat(g(t),")");if(n==null&&t!=null)return"the second index is set (".concat(g(t),") but the first index is not (").concat(g(n),")");let l=Y(n),i=Y(t);if(l===null)return"the first index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(n,4)," (type ").concat(typeof n,")");if(i===null)return"the second index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(t,4)," (type ").concat(typeof t,")");if(ce(r)&&!L(r)&&!Ee(r))return"the third value must be a string, number, null, or undefined; received ".concat(g(r,4)," (type ").concat(typeof r,")");if(l>i)return"the first index (".concat(l,") must not be greater than the second index (").concat(i,")")}function Vt(e){if(e.length>3)return{error:"expected at most three arguments but received ".concat(e.length),ranges:[]};if(e.length<=1&&Array.isArray(e[0])){let t=e[0];if(!t.length)return{ranges:[]};e=Array.isArray(t[0])?t:[t]}else e=[e];let n=[];for(let t of e){let r=Ze(t);if(r)return{error:r,ranges:[]};let[l,i,s]=t;if(l==null&&i==null)continue;let u=Y(l),c=Y(i);n.push(s!==void 0&&!(L(s)&&!s.length)?[u,c,s]:[u,c])}return{ranges:n}}function Mt(e){return e[2]===void 0&&e[0]===e[1]}function Pt(e){let n=-1;for(let t=0,r=e.length;t<r;t++){let l=e[t];if(Array.isArray(l)){if(l[0]<n)return!1;n=l[0]}}return!0}var et=class{constructor(e){oe(this,"ranges");oe(this,"opts");oe(this,"currentCache",null);if(e!=null&&!F(e))throw new TypeError("ranges-push/Ranges/constructor(): [THROW_ID_01] The options argument must be a plain object. It was given as ".concat(g(e,4)," (type ").concat(typeof e,")."));if(e===void 0){this.opts=ge,this.ranges=[];return}let n=e,t=n.limitToBeAddedWhitespace===void 0?ge.limitToBeAddedWhitespace:n.limitToBeAddedWhitespace,r=n.limitLinebreaksCount===void 0?ge.limitLinebreaksCount:n.limitLinebreaksCount,l=n.mergeType===void 0?ge.mergeType:n.mergeType,i=l==="1"?1:l==="2"?2:l,s;if(typeof t!="boolean"?s="opts.limitToBeAddedWhitespace must be a boolean; received ".concat(g(t,4)," (type ").concat(typeof t,")"):K(r)?i!==1&&i!==2&&(s='opts.mergeType must be 1, 2, "1", or "2"; received '.concat(g(l,4)," (type ").concat(typeof l,")")):s="opts.limitLinebreaksCount must be a natural number or zero; received ".concat(g(r,4)," (type ").concat(typeof r,")"),s)throw new TypeError("ranges-push/Ranges/constructor(): [THROW_ID_02] ".concat(s,"."));let u=Object.freeze({limitToBeAddedWhitespace:t,limitLinebreaksCount:r,mergeType:i});this.opts=u,this.ranges=[]}rangeListsMatch(e,n){if(!Array.isArray(e))return n===null;if(!Array.isArray(n)||e.length!==n[0])return!1;let t=1;for(let r=0,l=e.length;r<l;r++){let i=e[r];if(!Array.isArray(i)){if(n[t++]!==-1||i!==n[t++])return!1;continue}if(i.length!==n[t++])return!1;for(let s=0;s<i.length;s++)if(i[s]!==n[t++])return!1}return t===n.length}snapshotRanges(e){if(!Array.isArray(e))return null;let n=new Array(1+e.length*4);n[0]=e.length;let t=1;for(let r=0,l=e.length;r<l;r++){let i=e[r];if(Array.isArray(i)){n[t++]=i.length;for(let s=0;s<i.length;s++)n[t++]=i[s]}else n[t++]=-1,n[t++]=i}return n.length=t,n}currentStateMatchesSnapshot(){let e=this.currentCache;return e!==null&&this.rangeListsMatch(this.ranges,e.rangesSnapshot)&&this.rangeListsMatch(e.result,e.resultSnapshot)}recordCurrentSnapshot(e){let n=this.snapshotRanges(this.ranges);this.currentCache={rangesSnapshot:n,result:e,resultSnapshot:e===this.ranges?n:this.snapshotRanges(e)}}invalidateCurrentCache(){this.currentCache=null}addValidated(e,n,t){this.invalidateCurrentCache();let r=this.last();if(ce(this.ranges)&&Array.isArray(r)&&e===r[1]){if(r[1]=n,t!==void 0&&!(L(t)&&!t.length)){let i=Xe(r[2],t,this.opts.mergeType===2&&r[0]===e);this.opts.limitToBeAddedWhitespace&&typeof i=="string"&&(i=he(i,this.opts.limitLinebreaksCount)),L(i)&&!i.length||(r[2]=i)}return}this.ranges||(this.ranges=[]);let l=t!==void 0?[e,n,typeof t=="string"&&this.opts.limitToBeAddedWhitespace?he(t,this.opts.limitLinebreaksCount):t]:[e,n];this.ranges.push(l)}add(e,n,t){let r=arguments.length,l;if(r>3)l="expected at most three arguments but received ".concat(r);else if(r===1&&Array.isArray(e)){let i=Array.isArray(e[0])?e:[e];for(let s=0,u=i.length;s<u&&(l=Ze(i[s]),!l);s++);if(!l)for(let s=0,u=i.length;s<u;s++){let[c,h,E]=i[s];c==null&&h==null||this.addValidated(Y(c),Y(h),L(E)&&!E.length?void 0:E)}}else{if(e==null&&n==null)return;if(e!=null&&n==null)l="the first index is set (".concat(g(e),") but the second index is not (").concat(g(n),")");else if(e==null&&n!=null)l="the second index is set (".concat(g(n),") but the first index is not (").concat(g(e),")");else{let i=Y(e),s=Y(n);i===null?l="the first index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(e,4)," (type ").concat(typeof e,")"):s===null?l="the second index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(n,4)," (type ").concat(typeof n,")"):ce(t)&&!L(t)&&!Ee(t)?l="the third value must be a string, number, null, or undefined; received ".concat(g(t,4)," (type ").concat(typeof t,")"):i>s?l="the first index (".concat(i,") must not be greater than the second index (").concat(s,")"):this.addValidated(i,s,L(t)&&!t.length?void 0:t)}}if(l)throw new TypeError("ranges-push/Ranges/add(): [THROW_ID_03] ".concat(l,"."))}push(e,n,t){this.add.apply(this,arguments)}current(){var e,n;if(this.currentStateMatchesSnapshot())return(n=(e=this.currentCache)==null?void 0:e.result)!=null?n:null;if(Array.isArray(this.ranges)&&this.ranges.length){this.ranges=kt(this.ranges,this.opts.mergeType===1?void 0:{mergeType:2});let t=this.ranges;return t&&this.opts.limitToBeAddedWhitespace&&(t=t.map(r=>typeof r[2]=="string"?[r[0],r[1],he(r[2],this.opts.limitLinebreaksCount)]:r)),this.recordCurrentSnapshot(t),t}return this.recordCurrentSnapshot(null),null}firstCovers(e){if(!K(e))throw new TypeError("ranges-push/Ranges/firstCovers(): [THROW_ID_04] the input argument must be a natural number or zero! It was given as ".concat(g(e,4)," (type ").concat(typeof e,")"));if(!Array.isArray(this.ranges)||!this.ranges.length)return!1;let n=Pt(this.ranges)?this.ranges:this.ranges.filter(r=>Array.isArray(r)).slice().sort((r,l)=>r[0]-l[0]||r[1]-l[1]),t=null;for(let r=0,l=n.length;r<l;r++){let i=n[r];if(!(!Array.isArray(i)||Mt(i))){if(t===null){if(i[0]!==0)return!1;t=i[1]}else{if(i[0]>t)break;i[1]>t&&(t=i[1])}if(t>=e)return!0}}return t!==null&&t>=e}wipe(){this.ranges=[],this.invalidateCurrentCache()}replace(e){if(Array.isArray(e)&&e.length)if(Array.isArray(e[0])){let n=Vt([e]);if(n.error)throw new TypeError("ranges-push/Ranges/replace(): [THROW_ID_06] ".concat(n.error,"."));this.ranges=n.ranges,this.invalidateCurrentCache()}else throw new Error("ranges-push/Ranges/replace(): [THROW_ID_05] Single range was given but we expected array of arrays! The first element, ".concat(g(e[0],4)," should be an array."));else this.ranges=[],this.invalidateCurrentCache()}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};function Z(e){return e===32||e>=9&&e<=13||e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function tt(e,n){return n==null?0:typeof n!="number"||!Number.isInteger(n)||n<0?null:n>e?e:n}function Wt(e,n){return n===-1?-1:tt(e,n)}function q(e,n=0){if(typeof e!="string"||!e.length)return null;let t=Wt(e.length,n);if(t===null||t+1>=e.length)return null;let r=t+1;if(!Z(e.charCodeAt(r)))return r;if(r+=1,r>=e.length)return null;if(!Z(e.charCodeAt(r)))return r;for(r+=1;r<e.length;r++)if(!Z(e.charCodeAt(r)))return r;return null}function me(e,n=0){if(typeof e!="string"||!e.length)return null;let t=tt(e.length,n);if(t===null||t<1)return null;let r=t-1;if(!Z(e.charCodeAt(r)))return r;if(r-=1,r<0)return null;if(!Z(e.charCodeAt(r)))return r;for(r-=1;r>=0;r--)if(!Z(e.charCodeAt(r)))return r;return null}function nt(e){return typeof e!="string"?e:e.length?[e]:[]}var rt={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},it=e=>e+1,Ht=e=>e-1;function jt(e,n,t,r,l=()=>!1,i=!1,s=it){if(+n<0&&i&&t==="EOL")return t;if(n>=e.length&&!i)return!1;let u=i?1:t.length,c=0,h=!1,E=!1,A=!1,p=Math.min(r.maxMismatches,e.length+t.length),N=p,f=n,C=!1,d=!1,b=!1;function m(){return c===1&&N<p-1}for(;e[f];){let a=s(f);if(r.trimBeforeMatching&&e[f].trim()===""){if(!e[a]&&i&&t==="EOL")return!0;f=s(f);continue}if(l(e[f])){if(i&&t==="EOL"&&!e[a])return!0;f=s(f);continue}if(i)return!1;let R=a>f?t[t.length-u]:t[u-1];if(!r.i&&e[f]===R||r.i&&R!==void 0&&e[f].toLowerCase()===R.toLowerCase()){if(C||(C=!0),A||(A=!0),u===t.length){if(d=!0,N!==p)return!1}else u===1&&(b=!0);if(u-=1,c++,m())return!1;if(!u)return c!==t.length||N===p||!h?f:!1}else if(!h&&!c&&(h=!0),p&&N&&f){N-=1;for(let $=0;$<=N;$++){let M=a>f?t[t.length-u+1+$]:t[u-2-$],y=e[s(f)];if(M&&(!r.i&&e[f]===M||r.i&&e[f].toLowerCase()===M.toLowerCase())&&(!r.firstMustMatch||u!==t.length)){if(c++,m())return!1;u-=2,C=!0;break}else if(y&&M&&(!r.i&&y===M||r.i&&y.toLowerCase()===M.toLowerCase())&&(!r.firstMustMatch||u!==t.length)){if(!c&&!r.hungry)return!1;u-=1,C=!0;break}else if(M===void 0&&N>=0&&C&&(!r.firstMustMatch||d)&&(!r.lastMustMatch||b))return f}C||(E=f)}else return f===0&&u===1&&p>0&&N>0&&(!r.firstMustMatch||d)&&!r.lastMustMatch&&A?0:!1;if(E!==!1&&E!==f&&(E=!1),u<1)return f;f=s(f)}if(u>0)return i&&t==="EOL"?!0:r&&p>=u&&A?E||0:!1}function Oe(e,n,t,r,l){var f,C,d,b;if(F(l)&&Ye(l,"trimBeforeMatching")&&l&&typeof l.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(l.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let i=U(U({},rt),l);if(i.maxMismatches=(f=l==null?void 0:l.maxMismatches)!=null?f:rt.maxMismatches,Ft(i.maxMismatches,e),typeof i.trimCharsBeforeMatching=="string"&&(i.trimCharsBeforeMatching=nt(i.trimCharsBeforeMatching)),i.trimCharsBeforeMatching=i.trimCharsBeforeMatching.map(m=>L(m)?m:String(m)),!L(n)||!n.length)return!1;if(!Number.isInteger(t)||t<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof t,", equal to:\n").concat(g(t,4)));let s,u;if(L(r))s=[r];else if(Array.isArray(r))s=r;else if(!r)s=r;else if(typeof r=="function")s=[],s.push(r);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof r,", equal to:\n").concat(g(r,4)));if(Bt(s,e),l&&!F(l))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof l,'", and equal to:\n').concat(g(l,4)));let c=0,h="";if((C=i==null?void 0:i.trimCharsBeforeMatching)!=null&&C.some((m,a)=>m.length>1?(c=a,h=m,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(c," is longer than 1 character, ").concat(h.length," (equals to ").concat(h,"). Please split it into separate characters and put into array as separate elements."));if(t>=n.length)return!1;let E=i.i?i.trimCharsBeforeMatching.map(m=>m.toLowerCase()):i.trimCharsBeforeMatching,A=i.i?m=>E.includes(m.toLowerCase()):m=>E.includes(m);if(!s||!Array.isArray(s)||Array.isArray(s)&&!s.length||Array.isArray(s)&&s.length===1&&L(s[0])&&!s[0].trim()){if(typeof i.cb=="function"){let a,R=t;if((e==="matchLeftIncl"||e==="matchRight")&&(R+=1),e[5]==="L")for(let y=R;y--;){let V=n[y];if((!i.trimBeforeMatching||i.trimBeforeMatching&&(V!=null&&V.trim()))&&(!((d=i.trimCharsBeforeMatching)!=null&&d.length)||V!==void 0&&!A(V))){a=y;break}}else if(e.startsWith("matchRight"))for(let y=R;y<n.length;y++){let V=n[y];if((!i.trimBeforeMatching||i.trimBeforeMatching&&V.trim())&&(!((b=i.trimCharsBeforeMatching)!=null&&b.length)||!A(V))){a=y;break}}if(a===void 0)return!1;let $=n[a],M=e[5]==="L"?n.slice(0,a+1):n.slice(a);return e[5],i.cb($,M,a)}let m="";throw l||(m=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_06] 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!').concat(m))}if(!i.cb&&!i.i&&!i.trimBeforeMatching&&!i.trimCharsBeforeMatching.length&&i.maxMismatches===0&&!i.firstMustMatch&&!i.lastMustMatch&&!i.hungry&&s.every(L)){for(let m of s){if(!m.length)continue;let a=t;if(e==="matchRight"?a+=1:e==="matchLeft"?a-=m.length:e==="matchLeftIncl"&&(a-=m.length-1),a>=0&&n.startsWith(m,a))return m}return!1}let p=t;e==="matchRight"?p+=1:e==="matchLeft"&&(p-=1);let N=e[5]==="L"?Ht:it;for(let m=0,a=s.length;m<a;m++){u=typeof s[m]=="function";let R=s[m],$=typeof R=="function"?R():R;if(u&&$!=="EOL")throw new Error("string-match-left-right/".concat(e,'(): [THROW_ID_09] EOL marker functions must return "EOL". The function at index ').concat(m," returned:\n").concat(g($,4)));if(u&&e.endsWith("Incl"))continue;let M,y,V="",D=jt(n,p,$,i,A,u,N);if(D&&u)return!i.cb||i.cb(M,V,y)?$:!1;if(Number.isInteger(D)&&(y=e.startsWith("matchLeft")?D-1:D+1,e[5]==="L"?V=n.slice(0,D):V=n.slice(y)),y<0&&(y=void 0),n[y]&&(M=n[y]),Number.isInteger(D)&&(!i.cb||i.cb(M,V,y)))return $}return!1}function Ft(e,n){if(!Number.isSafeInteger(e)||e<0)throw new Error("string-match-left-right/".concat(n,"(): [THROW_ID_07] opts.maxMismatches must be a non-negative safe integer. Currently it's of a type: ").concat(typeof e,", equal to:\n").concat(g(e,4)))}function Bt(e,n){if(e)for(let t=0;t<e.length;t+=1){let r=e[t];if(typeof r!="string"&&typeof r!="function")throw new Error("string-match-left-right/".concat(n,"(): [THROW_ID_08] matcher alternatives must be strings or EOL marker functions. The value at index ").concat(t," is of a type: ").concat(typeof r,", equal to:\n").concat(g(r,4)))}}function _t(e,n,t,r){return Oe("matchLeft",e,n,t,r)}function lt(e,n,t,r){return Oe("matchRightIncl",e,n,t,r)}function ot(e,n,t,r){return Oe("matchRight",e,n,t,r)}var Ut=["_16_0_7_1_1_0_3_1_1_2_1_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1","_11_2_0_6_14_1z_q_4_3_19_16_l_9_4_1_1_2q_1_0_f_1_7_e_2_0_g_0_1_t_t_2g_b_0_e_16_9_1_4_0_5_l_4_0_9_0_3","_0_n_o_7_a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_4_9_1_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_4_b_2_5_2_","0_8_5_4_1_2_l_1_6_1_1_1_1_1_1_v_3_1_0_7_9_2_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_4_9_9_0_b_7_2_1_2_","l_1_6_1_1_1_4_3_0_u_1_1_2_4_9_1_6_b_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_l_c_i_7_1_2_1_m_1_f_3_","0_q_2_1_1_2_1_4_9_8_6_1_0_4_7_1_2_1_m_1_9_1_4_3_0_u_2_1_1_4_9_1_1_h_8_1_2_1_14_2_0_g_0_5_2_1_9_4_i_1","_5_5_h_3_n_1_8_1_0_2_6_v_9_h_1b_1_1_c_6_9_9_13_1_1_0_1_4_1_n_1_0_1_9_1_1_9_0_2_4_1_0_9_9_2_3_w_0_v_j","_c_7_1_z_r_4_37_16_k_a_6_5_4_3_3_0_3_1_7_2_4_c_c_0_1_9_6_11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_386_9_152_j_c_j_30_o_3r_2c_1_1y_1_","1_2_0_2_1_2_3_1_b_1_0_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_","1_u_1_o_1_7_2_1d_1ds_u_6_5_79_1p_42_18_a_6_2_9_4_0_8x_t_i_17_4_9_d2_r_4_9_5y_t_2_a_5h_u_1_2_1_1_1_6_","2_4_9_1_68_6_1_3_1_1_1_e_1_5g_2_8_1c_1v_7_0_4_9_lz_1m_1_2_1_3_24_18_1_e_5e_3_1_q_1_1_1_0_2_0_1_9_1_3","_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4","_1_g_g4_c_25f_9_sm_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),we=Ut.slice(1).split("_"),Le=[],st=127;for(let e=0;e<we.length;e+=2){let n=st+1+Number.parseInt(we[e],36),t=n+Number.parseInt(we[e+1],36);Le.push([n,t]),st=t}function qt(e){if(Number.isNaN(e)||e<128||e>1114111)return!1;let n=0,t=Le.length-1;for(;n<=t;){let r=n+t>>1,l=Le[r];if(e<l[0])t=r-1;else if(e>l[1])n=r+1;else return!0}return!1}function W(e,n,t){let r=n[t];if(!e||!r||!e.includes(r))return!1;let l=r.charCodeAt(0),i=t,s=t+1;if(!(l>=55296&&l<=56319&&n.charCodeAt(s)>=56320&&n.charCodeAt(s)<=57343))if(l>=56320&&l<=57343&&n.charCodeAt(t-1)>=55296&&n.charCodeAt(t-1)<=56319)i=t-1,s=t;else return e.includes(n[t]);let u=n.charCodeAt(i),c=n.charCodeAt(s);for(let h=0;h<e.length-1;h++)if(e.charCodeAt(h)===u&&e.charCodeAt(h+1)===c)return!0;return!1}function at(e,n){let t=e.charCodeAt(n);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)return!0;let r=t;return t>=55296&&t<=56319&&e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343?r=(t-55296)*1024+(e.charCodeAt(n+1)-56320)+65536:t>=56320&&t<=57343&&e.charCodeAt(n-1)>=55296&&e.charCodeAt(n-1)<=56319&&(r=(e.charCodeAt(n-1)-55296)*1024+(t-56320)+65536),qt(r)}var G={str:"",from:0,to:0,ifLeftSideIncludesThisThenCropTightly:"",ifLeftSideIncludesThisCropItToo:"",ifRightSideIncludesThisThenCropTightly:"",ifRightSideIncludesThisCropItToo:"",extendToOneSide:!1,wipeAllWhitespaceOnLeft:!1,wipeAllWhitespaceOnRight:!1,addSingleSpaceToPreventAccidentalConcatenation:!1};function de(e){var s,u,c,h,E,A,p,N,f,C;function n(d){return L(d)&&!d.trim()}if(F(e)){if(!Object.keys(e).length)throw new Error('string-range-expander/expander(): [THROW_ID_02] Input must be a plain object with the required "str", "from", and "to" keys, but it was given without any keys.')}else{let d;throw e===void 0?d="but it is missing completely.":e===null?d="but it was given as null.":d="but it was given as ".concat(typeof e,", equal to:\n").concat(g(e,4),"."),new Error("string-range-expander/expander(): [THROW_ID_01] Input must be a plain object ".concat(d))}if(!L(e.str))throw new Error('string-range-expander/expander(): [THROW_ID_03] The input\'s "str" value must be a string! It was given as '.concat(typeof e.str,", equal to ").concat(g(e.str)));if(!K(e.from)||e.from<0)throw new Error('string-range-expander/expander(): [THROW_ID_04] The input\'s "from" value must be a non-negative integer! It was given as '.concat(typeof e.from,", equal to ").concat(g(e.from)));if(!K(e.to)||e.to<0)throw new Error('string-range-expander/expander(): [THROW_ID_05] The input\'s "to" value must be a non-negative integer! It was given as '.concat(typeof e.to,", equal to ").concat(g(e.to)));if(e.from>e.str.length)throw new Error('string-range-expander/expander(): [THROW_ID_06] The input\'s "from" value ('.concat(e.from,") must not exceed the string length (").concat(e.str.length,")."));if(e.to>e.str.length)throw new Error('string-range-expander/expander(): [THROW_ID_07] The input\'s "to" value ('.concat(e.to,") must not exceed the string length (").concat(e.str.length,")."));if(e.from>e.to)throw new Error('string-range-expander/expander(): [THROW_ID_08] The input\'s "from" value ('.concat(e.from,') must not exceed its "to" value (').concat(e.to,")."));if(e.extendToOneSide!==void 0&&e.extendToOneSide!==!1&&e.extendToOneSide!=="left"&&e.extendToOneSide!=="right")throw new Error('string-range-expander/expander(): [THROW_ID_09] The options value "extendToOneSide" is not recognisable! It\'s set to: "'.concat(e.extendToOneSide,'" (').concat(typeof e.extendToOneSide,'). It has to be either Boolean "false" or one of strings: "left" or "right"'));if(e.ifLeftSideIncludesThisThenCropTightly!==void 0&&!L(e.ifLeftSideIncludesThisThenCropTightly))throw new Error('string-range-expander/expander(): [THROW_ID_10] The option "ifLeftSideIncludesThisThenCropTightly", is not a string! It\'s been given as '.concat(typeof e.ifLeftSideIncludesThisThenCropTightly,", equal to ").concat(g(e.ifLeftSideIncludesThisThenCropTightly)));if(e.ifLeftSideIncludesThisCropItToo!==void 0&&!L(e.ifLeftSideIncludesThisCropItToo))throw new Error('string-range-expander/expander(): [THROW_ID_11] The option "ifLeftSideIncludesThisCropItToo", is not a string! It\'s been given as '.concat(typeof e.ifLeftSideIncludesThisCropItToo,", equal to ").concat(g(e.ifLeftSideIncludesThisCropItToo)));if(e.ifRightSideIncludesThisThenCropTightly!==void 0&&!L(e.ifRightSideIncludesThisThenCropTightly))throw new Error('string-range-expander/expander(): [THROW_ID_12] The option "ifRightSideIncludesThisThenCropTightly", is not a string! It\'s been given as '.concat(typeof e.ifRightSideIncludesThisThenCropTightly,", equal to ").concat(g(e.ifRightSideIncludesThisThenCropTightly)));if(e.ifRightSideIncludesThisCropItToo!==void 0&&!L(e.ifRightSideIncludesThisCropItToo))throw new Error('string-range-expander/expander(): [THROW_ID_13] The option "ifRightSideIncludesThisCropItToo", is not a string! It\'s been given as '.concat(typeof e.ifRightSideIncludesThisCropItToo,", equal to ").concat(g(e.ifRightSideIncludesThisCropItToo)));if(e.wipeAllWhitespaceOnLeft!==void 0&&typeof e.wipeAllWhitespaceOnLeft!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_14] The option "wipeAllWhitespaceOnLeft" must be a Boolean! It was given as '.concat(typeof e.wipeAllWhitespaceOnLeft,", equal to ").concat(g(e.wipeAllWhitespaceOnLeft)));if(e.wipeAllWhitespaceOnRight!==void 0&&typeof e.wipeAllWhitespaceOnRight!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_15] The option "wipeAllWhitespaceOnRight" must be a Boolean! It was given as '.concat(typeof e.wipeAllWhitespaceOnRight,", equal to ").concat(g(e.wipeAllWhitespaceOnRight)));if(e.addSingleSpaceToPreventAccidentalConcatenation!==void 0&&typeof e.addSingleSpaceToPreventAccidentalConcatenation!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_16] The option "addSingleSpaceToPreventAccidentalConcatenation" must be a Boolean! It was given as '.concat(typeof e.addSingleSpaceToPreventAccidentalConcatenation,", equal to ").concat(g(e.addSingleSpaceToPreventAccidentalConcatenation)));let t=le(U(U({},G),e),{ifLeftSideIncludesThisThenCropTightly:(s=e.ifLeftSideIncludesThisThenCropTightly)!=null?s:G.ifLeftSideIncludesThisThenCropTightly,ifLeftSideIncludesThisCropItToo:(u=e.ifLeftSideIncludesThisCropItToo)!=null?u:G.ifLeftSideIncludesThisCropItToo,ifRightSideIncludesThisThenCropTightly:(c=e.ifRightSideIncludesThisThenCropTightly)!=null?c:G.ifRightSideIncludesThisThenCropTightly,ifRightSideIncludesThisCropItToo:(h=e.ifRightSideIncludesThisCropItToo)!=null?h:G.ifRightSideIncludesThisCropItToo,extendToOneSide:(E=e.extendToOneSide)!=null?E:G.extendToOneSide,wipeAllWhitespaceOnLeft:(A=e.wipeAllWhitespaceOnLeft)!=null?A:G.wipeAllWhitespaceOnLeft,wipeAllWhitespaceOnRight:(p=e.wipeAllWhitespaceOnRight)!=null?p:G.wipeAllWhitespaceOnRight,addSingleSpaceToPreventAccidentalConcatenation:(N=e.addSingleSpaceToPreventAccidentalConcatenation)!=null?N:G.addSingleSpaceToPreventAccidentalConcatenation}),r=t.str,l=t.from,i=t.to;if(t.extendToOneSide!=="right"&&(n(r[l-1])&&(n(r[l-2])||W(t.ifLeftSideIncludesThisCropItToo,r,l-2))||r[l-1]&&W(t.ifLeftSideIncludesThisCropItToo,r,l-1)||t.wipeAllWhitespaceOnLeft&&n(r[l-1]))){for(let d=l;d--;)if(!W(t.ifLeftSideIncludesThisCropItToo,r,d)){if(r[d].trim()){t.wipeAllWhitespaceOnLeft||W(t.ifLeftSideIncludesThisCropItToo,r,d+1)?l=d+1:l=d+2;break}else if(d===0){t.wipeAllWhitespaceOnLeft?l=0:l=1;break}}}if(t.extendToOneSide!=="left"&&(n(r[i])&&(t.wipeAllWhitespaceOnRight||n(r[i+1])||W(t.ifRightSideIncludesThisCropItToo,r,i+1))||W(t.ifRightSideIncludesThisCropItToo,r,i))){for(let d=i,b=r.length;d<b;d++)if(!W(t.ifRightSideIncludesThisCropItToo,r,d)){if(r[d].trim()){t.wipeAllWhitespaceOnRight||W(t.ifRightSideIncludesThisCropItToo,r,d-1)?i=d:i=d-1;break}else if(d===r.length-1){t.wipeAllWhitespaceOnRight?i=r.length:i=r.length-1;break}}}return(t.extendToOneSide!=="right"&&L(t.ifLeftSideIncludesThisThenCropTightly)&&t.ifLeftSideIncludesThisThenCropTightly&&(r[l-2]&&W(t.ifLeftSideIncludesThisThenCropTightly,r,l-2)||r[l-1]&&W(t.ifLeftSideIncludesThisThenCropTightly,r,l-1))||t.extendToOneSide!=="left"&&L(t.ifRightSideIncludesThisThenCropTightly)&&t.ifRightSideIncludesThisThenCropTightly&&(r[i+1]&&W(t.ifRightSideIncludesThisThenCropTightly,r,i+1)||r[i]&&W(t.ifRightSideIncludesThisThenCropTightly,r,i)))&&(t.extendToOneSide!=="right"&&n(r[l-1])&&!t.wipeAllWhitespaceOnLeft&&(l-=1),t.extendToOneSide!=="left"&&n(r[i])&&!t.wipeAllWhitespaceOnRight&&(i+=1)),t.addSingleSpaceToPreventAccidentalConcatenation&&((f=r[l-1])!=null&&f.trim())&&((C=r[i])!=null&&C.trim())&&(!t.ifLeftSideIncludesThisThenCropTightly&&!t.ifRightSideIncludesThisThenCropTightly||!((!t.ifLeftSideIncludesThisThenCropTightly||W(t.ifLeftSideIncludesThisThenCropTightly,r,l-1))&&(!t.ifRightSideIncludesThisThenCropTightly||r[i]&&W(t.ifRightSideIncludesThisThenCropTightly,r,i))))&&(at(r,l-1)||at(r,i))?[l,i," "]:[l,i]}var ut="6.3.1";function ft(e,n){if(n<0||n>=e.length)return;let t=e.charCodeAt(n),r=e.charCodeAt(n+1);if(t>=55296&&t<=56319&&r>=56320&&r<=57343)return e.slice(n,n+2);let l=e.charCodeAt(n-1);return t>=56320&&t<=57343&&l>=55296&&l<=56319?e.slice(n-1,n+1):e[n]}var zt=ut;function Ie(e){return e>96&&e<123||e>64&&e<91||e>47&&e<58||e===95}function se(e){return e!==void 0&&Ie(e.charCodeAt(0))}function ct(e){return e!==void 0&&(Ie(e.charCodeAt(0))||":-.".includes(e))}function ht(e){if(/^[\x00-\x7f]*$/.test(e))return e.length;let n=0;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<=127)n+=1;else if(r<=2047)n+=2;else if(r>=55296&&r<=56319&&t+1<e.length){let l=e.charCodeAt(t+1);l>=56320&&l<=57343?(n+=4,t+=1):n+=3}else n+=3}return n}function Gt(e,n,t){var i;let r="",l=0;for(let s=0,u=n.length;s<u;s++){t&&t(s/u*100);let c=n[s];r+="".concat(e.slice(l,c[0])).concat((i=c[2])!=null?i:""),l=c[1]}return t&&t(100),r+e.slice(l)}var ve={lineLengthLimit:500,removeIndentations:!0,removeLineBreaks:!1,removeHTMLComments:!1,removeCSSComments:!0,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,breakToTheLeftOf:["</td","<html","</html","<head","</head","<meta","<link","<table","<script","<\/script","<!DOCTYPE","<style","</style","<title","<body","@media","</body","<!--[if","<!--<![endif","<![endif]"],mindTheInlineTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]};function Kt(e,n){var Ve,Me;let t=Date.now();if(!L(e))throw e===void 0?new Error("html-crush/crush(): [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error('html-crush/crush(): [THROW_ID_02] the first input argument must be string! It was given as "'.concat(typeof e,'", equal to:\n').concat(g(e,4)));if(n&&!F(n))throw new Error("html-crush/crush(): [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ".concat(typeof n,", equal to ").concat(g(n,4)));let r=n;if(r&&Array.isArray(r.breakToTheLeftOf)&&r.breakToTheLeftOf.length){for(let S=0,_=r.breakToTheLeftOf.length;S<_;S++)if(!L(r.breakToTheLeftOf[S]))throw new TypeError("html-crush/crush(): [THROW_ID_04] the resolvedOpts.breakToTheLeftOf array contains non-string elements! For example, element at index ".concat(S,' is of a type "').concat(typeof r.breakToTheLeftOf[S],'" and is equal to:\n').concat(g(r.breakToTheLeftOf[S],4)))}let l=new et({limitToBeAddedWhitespace:!0}),i=le(U(U({},ve),r),{reportProgressFunc:typeof(r==null?void 0:r.reportProgressFunc)=="function"?r.reportProgressFunc:null,breakToTheLeftOf:(r==null?void 0:r.breakToTheLeftOf)===void 0?ve.breakToTheLeftOf:Array.isArray(r.breakToTheLeftOf)?r.breakToTheLeftOf:[]});typeof i.removeHTMLComments=="boolean"&&(i.removeHTMLComments=i.removeHTMLComments?1:0);let s="";Array.isArray(i.breakToTheLeftOf)&&i.breakToTheLeftOf.length&&(s=[...new Set(i.breakToTheLeftOf.map(S=>S[0]))].join(""));let u={removeHTMLComments:!1,removeCSSComments:!1},c=Array.isArray(i.mindTheInlineTags)?i.mindTheInlineTags:[],h=new Set(c),E=!!c.length&&c.every(S=>L(S)&&!!S.length&&![...S].some(_=>!se(_))),A=new Map,p=Array.isArray(i.breakToTheLeftOf)&&!!i.breakToTheLeftOf.length&&i.breakToTheLeftOf.every(L)&&!(i.breakToTheLeftOf.length===1&&!i.breakToTheLeftOf[0].trim());if(p)for(let S of i.breakToTheLeftOf){if(!S.length)continue;let _=A.get(S[0]);_?_.push(S):A.set(S[0],[S])}function N(S){if(!p)return!!lt(e,S,i.breakToTheLeftOf);let _=A.get(e[S]);if(_===void 0)return!1;for(let v=0,o=_.length;v<o;v++)if(e.startsWith(_[v],S))return!0;return!1}function f(S,_){if(!E)return!!ot(e,S,i.mindTheInlineTags,le(U({},_?{trimCharsBeforeMatching:"/"}:{}),{cb:I=>!I||!se(I)}));let v=S+1;if(_)for(;e[v]==="/";)v++;let o=v;for(;o<k&&Ie(e.charCodeAt(o));)o++;return o>v&&h.has(e.slice(v,o))}function C(S){let _=S-1;for(;_>=0&&H(e[_]);)_--;if(e[_]!=="=")return null;let v=_,o=_-1;for(;o>=0&&H(e[o]);)o--,v--;for(;o>=0&&ct(e[o]);)o--;return o+1<v?e.slice(o+1,v).toLowerCase():null}function d(S,_,v){if(e[S]!=="<")return!1;let o=S+1;if(v){if(e[o]!=="/")return!1;o++}else if(e[o]==="/")return!1;for(let I=0;I<_.length;I++){let J=e.charCodeAt(o+I);if(J>64&&J<91&&(J+=32),J!==_.charCodeAt(I))return!1}return!ct(e[o+_.length])&&!Ke(ft(e,o+_.length))}function b(S,_){let v=e.indexOf("<",S);for(;v!==-1;){if(d(v,_,!0))return v;v=e.indexOf("<",v+1)}return-1}let m=null,a=null,R=!1,$=0,M=0,y=!1,V=!1,D=null,ee=null,te=null,j=null,Q=null,pe=null,O,T=null,w=null,x=null,B=null,z=null,ae=null,ne=">};",re="<",gt="!",mt=">",dt="<",De="{},:;<>~+",$e=De,be=De,X=!0,k=e.length;function Re(S,_=!1){let v=S.length,o=Math.max(k-v,0),I=ht(e),J=_?I:ht(S),Pe=Math.max(I-J,0);return{timeTakenInMilliseconds:Date.now()-t,originalLength:k,cleanedLength:v,bytesSaved:o,percentageReducedOfOriginal:k?Math.round(o*100/k):0,originalLengthInCodeUnits:k,cleanedLengthInCodeUnits:v,codeUnitsSaved:o,percentageReducedOfOriginalInCodeUnits:k?Math.round(o*100/k):0,originalLengthInUtf8Bytes:I,cleanedLengthInUtf8Bytes:J,utf8BytesSaved:Pe,percentageReducedOfOriginalInUtf8Bytes:I?Math.round(Pe*100/I):0}}let ie=0;for(;ie<k&&H(e[ie]);)ie++;let pt=Math.floor(k/2),xe=.01,Ne=1-xe,ke=null;function _e(S){if(!i.reportProgressFunc||k<=1e3)return;let _=Math.max(0,Math.min(S,1)),v=Math.floor(i.reportProgressFuncFrom+(i.reportProgressFuncTo-i.reportProgressFuncFrom)*_);v!==ke&&(ke=v,i.reportProgressFunc(v))}let P="\n";if(e.includes("\r\n")?P="\r\n":e.includes("\r")&&(P="\r"),k){for(let _=0;_<k;_++){if(i.reportProgressFunc&&(k>1e3&&k<2e3?_===pt&&_e(.5):k>=2e3&&_e(_/k*Ne)),M++,!O&&y&&e[_]==="}"&&e[_-1]==="}"&&($+1>=i.lineLengthLimit?(l.push(_,_,P),$=0):(T=_,w=_,x=" ")),O&&typeof O=="number"&&_>=O&&(O=void 0),pe!==null&&d(_,"script",!0)){if((i.removeIndentations||i.removeLineBreaks)&&_>0&&e[~-_]&&H(e[~-_])){for(let o=_;o--;)if(e[o]==="\n"||e[o]==="\r"||!H(e[o])){o+1<_&&l.push(o+1,_);break}}pe=null,O=!1,_+=8;continue}if(!O&&!y&&d(_,"script",!1)){pe=_,O=!0;let o="";(i.removeLineBreaks||i.removeIndentations)&&a!==null&&(a>0&&(o=P),l.push(a,_,o)),a=null,m=null}if(!O&&ee!==null){i.removeLineBreaks&&($="\r\n".includes(e[_])?0:$+1),_>ee&&e[_]===e[ee]&&(ee=null);continue}if(!O&&z!==null&&!D&&"\"'".includes(e[_])){let o=C(_);if(o==="style")D=_;else if(o!==null){ee=_,i.removeLineBreaks&&($+=1);continue}}if(!O&&te!==null){if(i.removeLineBreaks&&($="\r\n".includes(e[_])?0:$+1),_>te&&e[_]===e[te]){let o=0;for(let I=_;I>0&&e[I-1]==="\\";I--)o++;o%2===0&&(te=null)}continue}if(!O&&(y||D)&&(D||z===null)&&"\"'".includes(e[_])&&!(D&&e[_]===e[D])){te=_,i.removeLineBreaks&&($+=1);continue}if(z!==null&&B===null&&!se(e[_])){B=e.slice(z,_);let o=q(e,~-_),I=q(e,_);if(typeof o=="number"&&e[o]===">"&&H(e[_])&&I)l.push(_,I);else if(o&&e[o]==="/"&&e[q(e,o)]===">"){H(e[_])&&I&&l.push(_,I);let J=q(e,o+1);e[o+1]!==">"&&J&&l.push(o+1,J)}}if(!O&&!y&&!D&&e[~-_]==="<"&&z===null)if(se(e[_]))z=_;else{let o=q(e,~-_),I=q(e,o);e[o]==="/"&&se(e[I]||"")&&(z=I)}if(!O&&(y||D)&&j!==null&&e[_]==="*"&&e[_+1]==="/"&&([T,w]=de({str:e,from:j,to:_+2,ifLeftSideIncludesThisThenCropTightly:$e||"",ifRightSideIncludesThisThenCropTightly:be||""}),j=null,T!=null?l.push(T,w):($+=1,_+=1),O=_+2),!O&&(y||D)&&j===null&&e[_]==="/"&&e[_+1]==="*"&&(u.removeCSSComments||(u.removeCSSComments=!0),i.removeCSSComments&&(j=_)),V&&e.startsWith("![endif",_+1)&&(V=!1),!O&&!y&&!D&&Q!==null){let o;e.startsWith("-->",_)?o=3:e[_]===">"&&e[_-1]==="]"&&(o=1),o&&([T,w]=de({str:e,from:Q,to:_+o}),Q=null,T!=null?i.removeLineBreaks&&i.lineLengthLimit&&M-(w-T)>=i.lineLengthLimit?(l.push(T,w,P),M=-o):(l.push(T,w),M-=w-T):($+=o-1,_+=o-1),O=_+o)}if(!O&&!y&&!D&&e[_]==="<"&&(e.startsWith("<!--",_)||e.startsWith("<![endif",_))&&Q===null&&(e.startsWith("<![endif",_)?i.removeHTMLComments===2&&(Q=_):e.startsWith("[if",_+4)?(V||(V=!0),i.removeHTMLComments===2&&(Q=_)):i.removeHTMLComments&&(!V||i.removeHTMLComments===2)&&(Q=_),u.removeHTMLComments||(u.removeHTMLComments=!0)),!O&&y&&j===null&&d(_,"style",!0)?y=!1:!O&&!y&&j===null&&d(_,"style",!1)&&(y=!0,(i.removeLineBreaks||i.removeIndentations)&&i.breakToTheLeftOf.includes("<style")&&e.startsWith(' type="text/css">',_+6)&&e[_+24]&&l.push(_+23,_+23,P)),!O&&!D&&"\"'".includes(e[_])&&e.endsWith("style=",_)&&(D=_),!O&&H(e[_]))a===null&&(a=_);else if(!O&&!((y||D)&&j!==null)){if(a!==null){if(i.removeLineBreaks&&($+=1),X)X=!1,(i.removeIndentations||i.removeLineBreaks)&&l.push(0,_);else if(i.removeIndentations&&!i.removeLineBreaks&&(!R&&m!==null&&_>m?l.push(m+1,_):a+1<_&&(e.endsWith("]>",a)||e.endsWith("-->",a)||e.startsWith("<![",_)||e.startsWith("<!--<![",_)?l.push(a,_):e[a]===" "?l.push(a+1,_):e[~-_]===" "?l.push(a,~-_):l.push(a,_," "))),i.removeLineBreaks||D){if(s.includes(e[_])&&N(_)){!("\r\n".includes(e[~-_])&&a===~-_)&&!(e[~-_]==="\n"&&e[_-2]==="\r"&&a===_-2)&&l.push(a,_,P),T=null,w=null,x=null,a=null,$=1;continue}let o=" ";if(!(e[_]==="<"&&f(_,!1))){if(e[~-a]&&mt.includes(e[~-a])&&dt.includes(e[_])||(y||D)&&j===null&&($e.includes(e[~-a])||be.includes(e[_]))||e[_]==="!"&&e.startsWith("!important",_)&&!V||D&&(e[~-a]==="'"||e[~-a]==='"')||e[~-a]==="}"&&e.startsWith("</style",_)||e[_]===">"&&("'\"".includes(e[me(e,_)])||e[q(e,_)]==="<")||e[_]==="/"&&e[q(e,_)]===">"){o="";let I=e[_]==="/"&&e[_+1]===">"?q(e,_):null;I&&I>_+1&&(l.push(_+1,I),$-=I-_+1)}}y&&e[_]==="}"&&a&&e[a-1]==="}"&&(o=" "),o!=null&&o.length&&($+=1),i.lineLengthLimit?$>=i.lineLengthLimit||!e[_+1]||e[_]===">"||e[_]==="/"&&e[_+1]===">"?(($>i.lineLengthLimit||$===i.lineLengthLimit&&((Ve=e[_+1])!=null&&Ve.trim())&&!ne.includes(e[_])&&!re.includes(e[_+1]))&&(o=P,$=1),($>i.lineLengthLimit||!(o===" "&&_===a+1))&&(l.push(a,_,o),m=null),T=null,w=null,x=null):(T===null||a<T)&&(T=a,w=_,x=o):_===a+1&&o===" "||l.push(a,_,o)}a=null,R||(R=!0)}else X&&(X=!1),i.removeLineBreaks&&($+=1);R||(R=!0)}if(!O&&!X&&_!==0&&i.removeLineBreaks&&(i.lineLengthLimit||s)&&!(e[_]==="<"&&e.startsWith("</a",_))){if(s&&N(_)&&ie<_&&(e[_]!=="<"||!e.startsWith("<![endif]",_)||!_t(e,_,"<!--"))){l.push(_,_,P),T=null,w=null,x=null,$=1;continue}else if(i.lineLengthLimit&&$<=i.lineLengthLimit){if(!e[_+1]||re.includes(e[_])&&!gt.includes(e[_])||ne.includes(e[_])||H(e[_])){if(T!==null&&w!==null&&(T!==w||x!=null&&x.length)){let o=x;!H(e[_])&&((Me=e[_+1])!=null&&Me.trim())&&$+(x?x.length:0)>i.lineLengthLimit&&(o=P),($+(o?o.length:0)>i.lineLengthLimit||!(o===" "&&w===T+1&&e[T]===" "))&&(e[~-T]==="}"&&e[w]==="{"||(l.push(T,w,o),m=null))}!H(e[_])&&(re.includes(e[_])||e[~-_]&&ne.includes(e[~-_]))&&L(ae)&&(!B||!h.has(B))&&!(e[_]==="<"&&f(_,!1))&&!(e[_]==="<"&&f(_,!0))?(T=_,w=_,x=null):j===null&&T!==null&&(D||!i.mindTheInlineTags||!Array.isArray(i.mindTheInlineTags)||Array.isArray(i.mindTheInlineTags.length)&&!i.mindTheInlineTags.length||!L(B)||Array.isArray(i.mindTheInlineTags)&&i.mindTheInlineTags.length&&L(B)&&!h.has(B))&&!(e[_]==="<"&&f(_,!0))&&(T=null,w=null,x=null)}}else if(i.lineLengthLimit)if(re.includes(e[_])&&!(e[_]==="<"&&f(_,!0)))if(T!==null&&w!==null&&(T!==w||x!=null&&x.length)){let o=x!=null&&x.length?x.length:0;$-(w-T-o)-1>i.lineLengthLimit||(l.push(T,w,x),$-(w-T-o)-1===i.lineLengthLimit&&(l.push(_,_,P),$=0),T=null,w=null,x=null)}else l.push(_,_,P),$=0;else e[_+1]&&ne.includes(e[_])&&L(B)&&Array.isArray(i.mindTheInlineTags)&&i.mindTheInlineTags.length&&!h.has(B)?T!==null&&w!==null&&(T!==w||x!=null&&x.length)||(l.push(_+1,_+1,P),$=0):H(e[_])||e[_+1]||T!==null&&w!==null&&(T!==w||x!=null&&x.length)&&l.push(T,w,P)}if(!O&&!X&&i.removeLineBreaks&&i.lineLengthLimit&&$>=i.lineLengthLimit&&T!==null&&w!==null&&!ne.includes(e[_])&&!re.includes(e[_])&&!"/".includes(e[_])&&!($===i.lineLengthLimit&&e[_+1]&&!e[_+1].trim())){let o=P;e[_+1]&&!e[_+1].trim()&&$===i.lineLengthLimit&&(o=x),o===P&&!e[~-T].trim()&&me(e,T)&&(T=me(e,T)+1),l.push(T,w,o),$=_-w,e[_].length&&($+=1),T=null,w=null,x=null}if((!O&&e[_]==="\n"||e[_]==="\r"&&(!e[_+1]||e[_+1]&&e[_+1]!=="\n"))&&(m=_,R&&(R=!1),!i.removeLineBreaks&&a!==null&&a<_&&e[_+1]&&e[_+1]!=="\r"&&e[_+1]!=="\n"&&l.push(a,_)),!e[_+1]){if((y||D)&&j!==null)l.push([...de({str:e,from:j,to:_+1,ifLeftSideIncludesThisThenCropTightly:$e||"",ifRightSideIncludesThisThenCropTightly:be||""})]);else if(a!==null&&(ie<k||i.removeIndentations||i.removeLineBreaks)){let o=e.endsWith("\r\n")?k-2:e.endsWith("\n")||e.endsWith("\r")?k-1:k;a<o&&l.push(a,o)}}if(!O&&D&&D<_&&e[D]===e[_]&&(D=null),!O&&!y&&e[_]==="<"){let o=null;if(d(_,"pre",!1)?o="pre":d(_,"code",!1)?o="code":d(_,"textarea",!1)&&(o="textarea"),o!==null){let I=b(_+2,o);O=I===-1?k:I}}if(!O&&e[_]==="<"&&e.startsWith("<![CDATA[",_)){let o=e.indexOf("]]>",_+9);o>0&&(O=o)}if(!O&&!y&&!D&&z!==null&&e[_]===">"&&(e[q(e,_)]==="<"&&(ae=B),z=null,B=null),e[_]==="<"&&ae!==null&&(ae=null),!O&&y&&e[_]==="{"&&e[_+1]==="{"){let o=e.indexOf("}}",_+2);o!==-1&&(O=o+2)}let v=!0}let S=l.current();if(S){let _=i.reportProgressFunc&&k>=2e3?o=>{_e(Ne+xe*(o/100))}:void 0,v=Gt(e,S,_);return _e(1),{log:Re(v),ranges:S,applicableOpts:u,result:v}}}return _e(1),{log:Re(e,!0),applicableOpts:u,ranges:null,result:e}}return At(Yt);})();
|
|
10
|
+
"use strict";var htmlCrush=(()=>{var ue=Object.defineProperty,$t=Object.defineProperties,bt=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertyNames,We=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable;var Te=(e,n,t)=>n in e?ue(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,U=(e,n)=>{for(var t in n||(n={}))He.call(n,t)&&Te(e,t,n[t]);if(We)for(var t of We(n))St.call(n,t)&&Te(e,t,n[t]);return e},le=(e,n)=>$t(e,Tt(n));var Et=(e,n)=>{for(var t in n)ue(e,t,{get:n[t],enumerable:!0})},Ct=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of yt(n))!He.call(e,l)&&l!==t&&ue(e,l,{get:()=>n[l],enumerable:!(r=bt(n,l))||r.enumerable});return e};var At=e=>Ct(ue({},"__esModule",{value:!0}),e);var oe=(e,n,t)=>Te(e,typeof n!="symbol"?n+"":n,t);var Yt={};Et(Yt,{crush:()=>Kt,defaults:()=>ve,version:()=>zt});function Ot(){let e=[],n=0,t=!1;return{append(r){return t?!1:n+r.length>1999?(e.push("\u2026"),n+=1,t=!0,!1):(e.push(r),n+=r.length,!0)},result(){return e.join("")},stopped(){return t}}}function wt(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function fe(e,n){if(e.append('"')){for(let t=0;t<n.length&&!e.stopped();t+=1){let r=n.charCodeAt(t);r===34?e.append('\\"'):r===92?e.append("\\\\"):r===8?e.append("\\b"):r===9?e.append("\\t"):r===10?e.append("\\n"):r===12?e.append("\\f"):r===13?e.append("\\r"):r<32||r===8232||r===8233||r>=55296&&r<=57343?e.append(wt(r)):e.append(n[t])}e.append('"')}}function Lt(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function Fe(e,n){e.append("Symbol(");let t=String(n);t.length>8&&fe(e,t.slice(7,-1)),e.append(")")}function je(e,n){typeof n=="symbol"?Fe(e,n):fe(e,String(n))}function g(e,n=0){let t=Ot(),r=n===4?4:0,l=new WeakSet,i=0;function s(f){r&&t.append(" ".repeat(f*r))}function u(f,C){f&&t.append(","),r&&(t.append("\n"),s(C+1))}function c(f,C,m){r&&C&&(t.append("\n"),s(m)),t.append(f)}function h(f,C){Object.prototype.hasOwnProperty.call(f,"value")?N(f.value,C):t.append(Lt(f))}function E(f,C){let m;try{m=Reflect.getOwnPropertyDescriptor(f,"length")}catch(a){t.append("[Uninspectable]");return}let b=m==null?void 0:m.value;if(!Number.isSafeInteger(b)||b<0){t.append("[Uninspectable]");return}t.append("[");let d=!1;for(let a=0;a<b&&!t.stopped();a+=1){if(u(d,C),d=!0,i>=50){t.append("[MaxEntries]");break}i+=1;let R;try{R=Reflect.getOwnPropertyDescriptor(f,String(a))}catch($){t.append("[Uninspectable]");continue}R!=null&&R.enumerable?h(R,C+1):t.append("[Empty]")}c("]",d,C)}function A(f,C){let m;try{m=Reflect.ownKeys(f)}catch(d){t.append("[Uninspectable]");return}t.append("{");let b=!1;for(let d of m){if(t.stopped())break;if(i>=50){u(b,C),b=!0,fe(t,"\u2026"),t.append(r?": ":":"),t.append("[MaxEntries]");break}i+=1;let a;try{a=Reflect.getOwnPropertyDescriptor(f,d)}catch(R){u(b,C),b=!0,je(t,d),t.append(r?": ":":"),t.append("[Uninspectable]");continue}a!=null&&a.enumerable&&(u(b,C),b=!0,je(t,d),t.append(r?": ":":"),h(a,C+1))}c("}",b,C)}function p(f,C){if(l.has(f)){t.append("[Circular]");return}if(C>=5){t.append("[MaxDepth]");return}let m;try{m=Array.isArray(f)}catch(b){t.append("[Uninspectable]");return}l.add(f);try{m?E(f,C):A(f,C)}finally{l.delete(f)}}function N(f,C){f===null?t.append("null"):typeof f=="string"?fe(t,f):typeof f=="number"?t.append(Object.is(f,-0)?"-0":String(f)):typeof f=="boolean"?t.append(f?"true":"false"):typeof f>"u"?t.append("undefined"):typeof f=="bigint"?t.append("".concat(f,"n")):typeof f=="symbol"?Fe(t,f):typeof f=="function"?t.append("[Function]"):p(f,C)}try{return N(e,0),t.result()}catch(f){return"[Uninspectable]"}}var vt=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_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3_8_7_9_4me_2c_1_1y_1_1_2_0_2_1_2_3_1_b_1_0","_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_u_1_o_1_7_1f8_u_6_5","_79_1p_42_18_a_6_g_0_8x_t_i_17_dg_r_6c_t_2_0_5r_u_1_2_1_1_1_6_2_4_9_1_68_6_1_3_1_1_1_e_1_5g_1n_1v_7_","0_xg_3_1_q_1_1_1_0_2_0_1_9_1_3_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),ye=vt.slice(1).split("_"),Se=[],Be=127;for(let e=0;e<ye.length;e+=2){let n=Be+1+Number.parseInt(ye[e],36),t=n+Number.parseInt(ye[e+1],36);Se.push([n,t]),Be=t}function It(e){if(Number.isNaN(e)||e<128||e>1114111)return!1;let n=0,t=Se.length-1;for(;n<=t;){let r=n+t>>1,l=Se[r];if(e<l[0])t=r-1;else if(e>l[1])n=r+1;else return!0}return!1}var en=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]),Dt=Object.prototype.hasOwnProperty,Ge=Function.prototype.toString,Rt=Ge.call(Object);var tn=Map.prototype.entries,nn=Set.prototype.values;var Ue,rn=(Ue=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:Ue.get,qe,_n=(qe=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:qe.get,Je,ln=(Je=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:Je.get,ze,on=(ze=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:ze.get,sn=RegExp.prototype.test;function xt(e){if(e.length===1){let n=e.charCodeAt(0);return n<55296||n>57343?n:-1}if(e.length===2){let n=e.charCodeAt(0),t=e.charCodeAt(1);if(n>=55296&&n<=56319&&t>=56320&&t<=57343)return(n-55296)*1024+t-56320+65536}return-1}function Ke(e){if(!L(e)||e.length===0||e.length>2)return!1;let n=e.charCodeAt(0);return e.length===1&&n<128?n>64&&n<91||n>96&&n<123:It(xt(e))}function H(e){if(!L(e)||!e)return!1;let n=e.charCodeAt(0);return n<128?n===32||n>8&&n<14:!e[0].trim()}function F(e){var r;if(e==null||typeof e!="object")return!1;let n=Object.getPrototypeOf(e);if(n===null||n===Object.prototype)return!0;let t=Object.getOwnPropertyDescriptor(n,"constructor");return!t||!("value"in t)||typeof t.value!="function"?!1:((r=Object.getOwnPropertyDescriptor(t.value,"prototype"))==null?void 0:r.value)===n&&Ge.call(t.value)===Rt}function L(e){return typeof e=="string"}function Ee(e){return Number.isFinite(e)}function K(e){return Number.isSafeInteger(e)&&e>=0}var an=Date.prototype.getTime;function ce(e){return e!=null}function Ye(e,n){return e!=null&&Dt.call(e,n)}function he(e,n=1){let t="\xA0";function r(i){return i.length<2?i:Array.from(i).reverse().join("")}function l(i,s,u){let c=u?"\n":"\r",h=u?"\r":"\n";if(!i)return i;let E=0,A="";for(let p=0,N=i.length;p<N;p++)(i[p]===c||i[p]===h&&i[p-1]!==c)&&E++,"\r\n".includes(i[p])||i[p]===t?i[p]===t?A+=i[p]:i[p]===c?E<=s&&(A+=i[p],i[p+1]===h&&(A+=i[p+1],p++)):i[p]===h&&(i==null?void 0:i[p-1])!==c&&E<=s&&(A+=i[p]):!i[p+1]&&!E&&(A+=" ");return A}if(typeof e=="string"&&e.length){let i=e.trim();if(i.length===e.length)return e;let s=1;typeof n=="number"&&Number.isInteger(n)&&n>=0&&(s=n);let u="",c="";if(!i)u=e;else if(!e[0].trim()){for(let E=0,A=e.length;E<A;E++)if(e[E].trim()){u=e.slice(0,E);break}}let h=e[e.length-1];if(i&&(h.trim()===""||h===t)){for(let E=e.length;E--;)if(e[E].trim()){c=e.slice(E+1);break}}return"".concat(l(u,s,!1)).concat(i).concat(r(l(r(c),s,!0)))}return e}var Qe={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function Nt(e,n){let t,r=0;for(;r<e.length;){let l=r+1;for(;l<e.length&&e[r][0]===e[l][0]&&e[r][1]===e[l][1];)l+=1;if(l-r>1){t||(t=new Map(n.map((u,c)=>[u,c])));let i=t,s=e.slice(r,l).sort((u,c)=>i.get(u)-i.get(c));e.splice(r,s.length,...s)}r=l}return e}function Ce(e,n){var u;if(!Array.isArray(e)||!e.length)return e;let t=n===void 0?!0:F(n);if(n!==void 0&&t&&(n==null?void 0:n.strictlyTwoElementsInRangeArrays)===!0)for(let c=0;c<e.length;c+=1){let h=e[c];if(!Array.isArray(h)||h.length!==2)throw new TypeError("ranges-sort/rSort(): [THROW_ID_01] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") is ").concat(Array.isArray(h)?"an array with ".concat(h.length," elements"):"not an array","!"));if(!Number.isInteger(h[0])||h[0]<0||!Number.isInteger(h[1])||h[1]<0)throw new TypeError("ranges-sort/rSort(): [THROW_ID_02] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") does not consist of only natural numbers!"))}else for(let c=0;c<e.length;c+=1){let h=e[c];if(!Array.isArray(h)||!Number.isInteger(h[0])||h[0]<0||!Number.isInteger(h[1])||h[1]<0)throw new TypeError("ranges-sort/rSort(): [THROW_ID_02] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, range at index ".concat(c," (").concat(g(h,4),") does not consist of only natural numbers!"))}if(n!==void 0&&!t)throw new TypeError("ranges-sort/rSort(): [THROW_ID_03] The second argument must be a plain options object; received ".concat(g(n,4)," (type ").concat(typeof n,")!"));let r=Qe.progressFn;if(n!==void 0){let c=n.strictlyTwoElementsInRangeArrays;if(c!==void 0&&typeof c!="boolean")throw new TypeError("ranges-sort/rSort(): [THROW_ID_04] opts.strictlyTwoElementsInRangeArrays must be a boolean; received ".concat(g(c,4)," (type ").concat(typeof c,")!"));if(r=(u=n.progressFn)!=null?u:Qe.progressFn,r!==!1&&r!==null&&typeof r!="function")throw new TypeError("ranges-sort/rSort(): [THROW_ID_05] opts.progressFn must be a function, false, null, or undefined; received ".concat(g(r,4)," (type ").concat(typeof r,")!"))}let l,i;if(r){let c=e.length**2,h=0,E;i=A=>{A!==E&&(E=A,r(A))},l=Array.from(e).sort((A,p)=>(h+=1,i==null||i(Math.min(99,Math.floor(h*100/c))),A[0]===p[0]?A[1]<p[1]?-1:A[1]>p[1]?1:0:A[0]<p[0]?-1:1))}else l=Array.from(e).sort((c,h)=>c[0]===h[0]?c[1]<h[1]?-1:c[1]>h[1]?1:0:c[0]<h[0]?-1:1);let s=l.length>10?Nt(l,e):l;return i==null||i(100),s}var Ae={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function Xe(e,n,t){return n===void 0||e===null?e:n===null?null:e===void 0||t?n:e+n}function kt(e,n){var f,C,m;function t(b){return!!b&&typeof b=="object"&&!Array.isArray(b)}if(!Array.isArray(e)||!e.length)return null;if(n&&!t(n))throw new TypeError("ranges-push/rMerge(): [THROW_ID_07] the second input argument must be a plain object. It was given as:\n".concat(g(n,4)," (type ").concat(typeof n,")"));let r=(f=n==null?void 0:n.progressFn)!=null?f:Ae.progressFn,l=(C=n==null?void 0:n.mergeType)!=null?C:Ae.mergeType,i=(m=n==null?void 0:n.joinRangesThatTouchEdges)!=null?m:Ae.joinRangesThatTouchEdges;if(r&&t(r)&&!Object.keys(r).length)r=null;else if(r&&typeof r!="function")throw new TypeError('ranges-push/rMerge(): [THROW_ID_08] resolvedOpts.progressFn must be a function! It was given of a type: "'.concat(typeof r,'", equal to ').concat(g(r,4)));if(l!==1&&l!==2&&l!=="1"&&l!=="2")throw new TypeError('ranges-push/rMerge(): [THROW_ID_09] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "'.concat(typeof l,'", equal to ').concat(g(l,4)));if(typeof i!="boolean")throw new TypeError('ranges-push/rMerge(): [THROW_ID_10] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "'.concat(typeof i,'", equal to ').concat(g(i,4)));let s=[];for(let b of e)Array.isArray(b)&&(b[2]!==void 0||b[0]!==b[1])&&s.push([...b]);let u,c,h;r?u=Ce(s,{progressFn:b=>{h=Math.floor(b/5),h!==c&&(c=h,r==null||r(h))}}):u=Ce(s);let E=u.length-1,A=+l==2,p=u.length;for(let b=E;b>=0;b--){let d=u[b];for(r&&b<E&&(h=Math.floor((1-(b+1)/E)*78)+21,h!==c&&h>c&&(c=h,r(h)));p<u.length;){let a=u[p],R=a[0]===d[0];if(!R&&(i?a[0]>d[1]:a[0]>=d[1]))break;let $=a[1]>=d[1];$&&(d[1]=a[1]),a[2]===null?d[2]=null:a[2]!==void 0&&(R||$)&&(d[2]=Xe(d[2],a[2],A&&R)),p+=1}p-=1,u[p]=d}let N=u.length-p;for(let b=0;b<N;b++)u[b]=u[p+b];return u.length=N,u.length?u:null}var ge=Object.freeze({limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1});function Y(e){if(K(e))return e;if(typeof e=="string"&&/^\d+$/.test(e)){let n=Number(e);return K(n)?n:null}return null}function Ze(e){if(!Array.isArray(e))return"a ranges batch must contain only range arrays; received ".concat(g(e,4));if(e.length>3)return"a range must contain at most three values; received ".concat(g(e,4));let[n,t,r]=e;if(n==null&&t==null)return;if(n!=null&&t==null)return"the first index is set (".concat(g(n),") but the second index is not (").concat(g(t),")");if(n==null&&t!=null)return"the second index is set (".concat(g(t),") but the first index is not (").concat(g(n),")");let l=Y(n),i=Y(t);if(l===null)return"the first index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(n,4)," (type ").concat(typeof n,")");if(i===null)return"the second index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(t,4)," (type ").concat(typeof t,")");if(ce(r)&&!L(r)&&!Ee(r))return"the third value must be a string, number, null, or undefined; received ".concat(g(r,4)," (type ").concat(typeof r,")");if(l>i)return"the first index (".concat(l,") must not be greater than the second index (").concat(i,")")}function Vt(e){if(e.length>3)return{error:"expected at most three arguments but received ".concat(e.length),ranges:[]};if(e.length<=1&&Array.isArray(e[0])){let t=e[0];if(!t.length)return{ranges:[]};e=Array.isArray(t[0])?t:[t]}else e=[e];let n=[];for(let t of e){let r=Ze(t);if(r)return{error:r,ranges:[]};let[l,i,s]=t;if(l==null&&i==null)continue;let u=Y(l),c=Y(i);n.push(s!==void 0&&!(L(s)&&!s.length)?[u,c,s]:[u,c])}return{ranges:n}}function Mt(e){return e[2]===void 0&&e[0]===e[1]}function Pt(e){let n=-1;for(let t=0,r=e.length;t<r;t++){let l=e[t];if(Array.isArray(l)){if(l[0]<n)return!1;n=l[0]}}return!0}var et=class{constructor(e){oe(this,"ranges");oe(this,"opts");oe(this,"currentCache",null);if(e!=null&&!F(e))throw new TypeError("ranges-push/Ranges/constructor(): [THROW_ID_01] The options argument must be a plain object. It was given as ".concat(g(e,4)," (type ").concat(typeof e,")."));if(e===void 0){this.opts=ge,this.ranges=[];return}let n=e,t=n.limitToBeAddedWhitespace===void 0?ge.limitToBeAddedWhitespace:n.limitToBeAddedWhitespace,r=n.limitLinebreaksCount===void 0?ge.limitLinebreaksCount:n.limitLinebreaksCount,l=n.mergeType===void 0?ge.mergeType:n.mergeType,i=l==="1"?1:l==="2"?2:l,s;if(typeof t!="boolean"?s="opts.limitToBeAddedWhitespace must be a boolean; received ".concat(g(t,4)," (type ").concat(typeof t,")"):K(r)?i!==1&&i!==2&&(s='opts.mergeType must be 1, 2, "1", or "2"; received '.concat(g(l,4)," (type ").concat(typeof l,")")):s="opts.limitLinebreaksCount must be a natural number or zero; received ".concat(g(r,4)," (type ").concat(typeof r,")"),s)throw new TypeError("ranges-push/Ranges/constructor(): [THROW_ID_02] ".concat(s,"."));let u=Object.freeze({limitToBeAddedWhitespace:t,limitLinebreaksCount:r,mergeType:i});this.opts=u,this.ranges=[]}rangeListsMatch(e,n){if(!Array.isArray(e))return n===null;if(!Array.isArray(n)||e.length!==n[0])return!1;let t=1;for(let r=0,l=e.length;r<l;r++){let i=e[r];if(!Array.isArray(i)){if(n[t++]!==-1||i!==n[t++])return!1;continue}if(i.length!==n[t++])return!1;for(let s=0;s<i.length;s++)if(i[s]!==n[t++])return!1}return t===n.length}snapshotRanges(e){if(!Array.isArray(e))return null;let n=new Array(1+e.length*4);n[0]=e.length;let t=1;for(let r=0,l=e.length;r<l;r++){let i=e[r];if(Array.isArray(i)){n[t++]=i.length;for(let s=0;s<i.length;s++)n[t++]=i[s]}else n[t++]=-1,n[t++]=i}return n.length=t,n}currentStateMatchesSnapshot(){let e=this.currentCache;return e!==null&&this.rangeListsMatch(this.ranges,e.rangesSnapshot)&&this.rangeListsMatch(e.result,e.resultSnapshot)}recordCurrentSnapshot(e){let n=this.snapshotRanges(this.ranges);this.currentCache={rangesSnapshot:n,result:e,resultSnapshot:e===this.ranges?n:this.snapshotRanges(e)}}invalidateCurrentCache(){this.currentCache=null}addValidated(e,n,t){this.invalidateCurrentCache();let r=this.last();if(ce(this.ranges)&&Array.isArray(r)&&e===r[1]){if(r[1]=n,t!==void 0&&!(L(t)&&!t.length)){let i=Xe(r[2],t,this.opts.mergeType===2&&r[0]===e);this.opts.limitToBeAddedWhitespace&&typeof i=="string"&&(i=he(i,this.opts.limitLinebreaksCount)),L(i)&&!i.length||(r[2]=i)}return}this.ranges||(this.ranges=[]);let l=t!==void 0?[e,n,typeof t=="string"&&this.opts.limitToBeAddedWhitespace?he(t,this.opts.limitLinebreaksCount):t]:[e,n];this.ranges.push(l)}add(e,n,t){let r=arguments.length,l;if(r>3)l="expected at most three arguments but received ".concat(r);else if(r===1&&Array.isArray(e)){let i=Array.isArray(e[0])?e:[e];for(let s=0,u=i.length;s<u&&(l=Ze(i[s]),!l);s++);if(!l)for(let s=0,u=i.length;s<u;s++){let[c,h,E]=i[s];c==null&&h==null||this.addValidated(Y(c),Y(h),L(E)&&!E.length?void 0:E)}}else{if(e==null&&n==null)return;if(e!=null&&n==null)l="the first index is set (".concat(g(e),") but the second index is not (").concat(g(n),")");else if(e==null&&n!=null)l="the second index is set (".concat(g(n),") but the first index is not (").concat(g(e),")");else{let i=Y(e),s=Y(n);i===null?l="the first index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(e,4)," (type ").concat(typeof e,")"):s===null?l="the second index must be a natural number, zero, or a digit-only numeric string; received ".concat(g(n,4)," (type ").concat(typeof n,")"):ce(t)&&!L(t)&&!Ee(t)?l="the third value must be a string, number, null, or undefined; received ".concat(g(t,4)," (type ").concat(typeof t,")"):i>s?l="the first index (".concat(i,") must not be greater than the second index (").concat(s,")"):this.addValidated(i,s,L(t)&&!t.length?void 0:t)}}if(l)throw new TypeError("ranges-push/Ranges/add(): [THROW_ID_03] ".concat(l,"."))}push(e,n,t){this.add.apply(this,arguments)}current(){var e,n;if(this.currentStateMatchesSnapshot())return(n=(e=this.currentCache)==null?void 0:e.result)!=null?n:null;if(Array.isArray(this.ranges)&&this.ranges.length){this.ranges=kt(this.ranges,this.opts.mergeType===1?void 0:{mergeType:2});let t=this.ranges;return t&&this.opts.limitToBeAddedWhitespace&&(t=t.map(r=>typeof r[2]=="string"?[r[0],r[1],he(r[2],this.opts.limitLinebreaksCount)]:r)),this.recordCurrentSnapshot(t),t}return this.recordCurrentSnapshot(null),null}firstCovers(e){if(!K(e))throw new TypeError("ranges-push/Ranges/firstCovers(): [THROW_ID_04] the input argument must be a natural number or zero! It was given as ".concat(g(e,4)," (type ").concat(typeof e,")"));if(!Array.isArray(this.ranges)||!this.ranges.length)return!1;let n=Pt(this.ranges)?this.ranges:this.ranges.filter(r=>Array.isArray(r)).slice().sort((r,l)=>r[0]-l[0]||r[1]-l[1]),t=null;for(let r=0,l=n.length;r<l;r++){let i=n[r];if(!(!Array.isArray(i)||Mt(i))){if(t===null){if(i[0]!==0)return!1;t=i[1]}else{if(i[0]>t)break;i[1]>t&&(t=i[1])}if(t>=e)return!0}}return t!==null&&t>=e}wipe(){this.ranges=[],this.invalidateCurrentCache()}replace(e){if(Array.isArray(e)&&e.length)if(Array.isArray(e[0])){let n=Vt([e]);if(n.error)throw new TypeError("ranges-push/Ranges/replace(): [THROW_ID_06] ".concat(n.error,"."));this.ranges=n.ranges,this.invalidateCurrentCache()}else throw new Error("ranges-push/Ranges/replace(): [THROW_ID_05] Single range was given but we expected array of arrays! The first element, ".concat(g(e[0],4)," should be an array."));else this.ranges=[],this.invalidateCurrentCache()}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};function Z(e){return e===32||e>=9&&e<=13||e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function tt(e,n){return n==null?0:typeof n!="number"||!Number.isInteger(n)||n<0?null:n>e?e:n}function Wt(e,n){return n===-1?-1:tt(e,n)}function q(e,n=0){if(typeof e!="string"||!e.length)return null;let t=Wt(e.length,n);if(t===null||t+1>=e.length)return null;let r=t+1;if(!Z(e.charCodeAt(r)))return r;if(r+=1,r>=e.length)return null;if(!Z(e.charCodeAt(r)))return r;for(r+=1;r<e.length;r++)if(!Z(e.charCodeAt(r)))return r;return null}function me(e,n=0){if(typeof e!="string"||!e.length)return null;let t=tt(e.length,n);if(t===null||t<1)return null;let r=t-1;if(!Z(e.charCodeAt(r)))return r;if(r-=1,r<0)return null;if(!Z(e.charCodeAt(r)))return r;for(r-=1;r>=0;r--)if(!Z(e.charCodeAt(r)))return r;return null}function nt(e){return typeof e!="string"?e:e.length?[e]:[]}var rt={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},it=e=>e+1,Ht=e=>e-1;function jt(e,n,t,r,l=()=>!1,i=!1,s=it){if(+n<0&&i&&t==="EOL")return t;if(n>=e.length&&!i)return!1;let u=i?1:t.length,c=0,h=!1,E=!1,A=!1,p=Math.min(r.maxMismatches,e.length+t.length),N=p,f=n,C=!1,m=!1,b=!1;function d(){return c===1&&N<p-1}for(;e[f];){let a=s(f);if(r.trimBeforeMatching&&e[f].trim()===""){if(!e[a]&&i&&t==="EOL")return!0;f=s(f);continue}if(l(e[f])){if(i&&t==="EOL"&&!e[a])return!0;f=s(f);continue}if(i)return!1;let R=a>f?t[t.length-u]:t[u-1];if(!r.i&&e[f]===R||r.i&&R!==void 0&&e[f].toLowerCase()===R.toLowerCase()){if(C||(C=!0),A||(A=!0),u===t.length){if(m=!0,N!==p)return!1}else u===1&&(b=!0);if(u-=1,c++,d())return!1;if(!u)return c!==t.length||N===p||!h?f:!1}else if(!h&&!c&&(h=!0),p&&N&&f){N-=1;for(let $=0;$<=N;$++){let M=a>f?t[t.length-u+1+$]:t[u-2-$],y=e[s(f)];if(M&&(!r.i&&e[f]===M||r.i&&e[f].toLowerCase()===M.toLowerCase())&&(!r.firstMustMatch||u!==t.length)){if(c++,d())return!1;u-=2,C=!0;break}else if(y&&M&&(!r.i&&y===M||r.i&&y.toLowerCase()===M.toLowerCase())&&(!r.firstMustMatch||u!==t.length)){if(!c&&!r.hungry)return!1;u-=1,C=!0;break}else if(M===void 0&&N>=0&&C&&(!r.firstMustMatch||m)&&(!r.lastMustMatch||b))return f}C||(E=f)}else return f===0&&u===1&&p>0&&N>0&&(!r.firstMustMatch||m)&&!r.lastMustMatch&&A?0:!1;if(E!==!1&&E!==f&&(E=!1),u<1)return f;f=s(f)}if(u>0)return i&&t==="EOL"?!0:r&&p>=u&&A?E||0:!1}function Oe(e,n,t,r,l){var f,C,m,b;if(F(l)&&Ye(l,"trimBeforeMatching")&&l&&typeof l.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_01] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(l.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let i=U(U({},rt),l);if(i.maxMismatches=(f=l==null?void 0:l.maxMismatches)!=null?f:rt.maxMismatches,Ft(i.maxMismatches,e),typeof i.trimCharsBeforeMatching=="string"&&(i.trimCharsBeforeMatching=nt(i.trimCharsBeforeMatching)),i.trimCharsBeforeMatching=i.trimCharsBeforeMatching.map(d=>L(d)?d:String(d)),!L(n)||!n.length)return!1;if(!Number.isInteger(t)||t<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_02] the second argument should be a natural number. Currently it's of a type: ").concat(typeof t,", equal to:\n").concat(g(t,4)));let s,u;if(L(r))s=[r];else if(Array.isArray(r))s=r;else if(!r)s=r;else if(typeof r=="function")s=[],s.push(r);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof r,", equal to:\n").concat(g(r,4)));if(Bt(s,e),l&&!F(l))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_04] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof l,'", and equal to:\n').concat(g(l,4)));let c=0,h="";if((C=i==null?void 0:i.trimCharsBeforeMatching)!=null&&C.some((d,a)=>d.length>1?(c=a,h=d,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(c," is longer than 1 character, ").concat(h.length," (equals to ").concat(h,"). Please split it into separate characters and put into array as separate elements."));if(t>=n.length)return!1;let E=i.i?i.trimCharsBeforeMatching.map(d=>d.toLowerCase()):i.trimCharsBeforeMatching,A=i.i?d=>E.includes(d.toLowerCase()):d=>E.includes(d);if(!s||!Array.isArray(s)||Array.isArray(s)&&!s.length||Array.isArray(s)&&s.length===1&&L(s[0])&&!s[0].trim()){if(typeof i.cb=="function"){let a,R=t;if((e==="matchLeftIncl"||e==="matchRight")&&(R+=1),e[5]==="L")for(let y=R;y--;){let V=n[y];if((!i.trimBeforeMatching||i.trimBeforeMatching&&(V!=null&&V.trim()))&&(!((m=i.trimCharsBeforeMatching)!=null&&m.length)||V!==void 0&&!A(V))){a=y;break}}else if(e.startsWith("matchRight"))for(let y=R;y<n.length;y++){let V=n[y];if((!i.trimBeforeMatching||i.trimBeforeMatching&&V.trim())&&(!((b=i.trimCharsBeforeMatching)!=null&&b.length)||!A(V))){a=y;break}}if(a===void 0)return!1;let $=n[a],M=e[5]==="L"?n.slice(0,a+1):n.slice(a);return e[5],i.cb($,M,a)}let d="";throw l||(d=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_06] 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!').concat(d))}if(!i.cb&&!i.i&&!i.trimBeforeMatching&&!i.trimCharsBeforeMatching.length&&i.maxMismatches===0&&!i.firstMustMatch&&!i.lastMustMatch&&!i.hungry&&s.every(L)){for(let d of s){if(!d.length)continue;let a=t;if(e==="matchRight"?a+=1:e==="matchLeft"?a-=d.length:e==="matchLeftIncl"&&(a-=d.length-1),a>=0&&n.startsWith(d,a))return d}return!1}let p=t;e==="matchRight"?p+=1:e==="matchLeft"&&(p-=1);let N=e[5]==="L"?Ht:it;for(let d=0,a=s.length;d<a;d++){u=typeof s[d]=="function";let R=s[d],$=typeof R=="function"?R():R;if(u&&$!=="EOL")throw new Error("string-match-left-right/".concat(e,'(): [THROW_ID_09] EOL marker functions must return "EOL". The function at index ').concat(d," returned:\n").concat(g($,4)));if(u&&e.endsWith("Incl"))continue;let M,y,V="",D=jt(n,p,$,i,A,u,N);if(D&&u)return!i.cb||i.cb(M,V,y)?$:!1;if(Number.isInteger(D)&&(y=e.startsWith("matchLeft")?D-1:D+1,e[5]==="L"?V=n.slice(0,D):V=n.slice(y)),y<0&&(y=void 0),n[y]&&(M=n[y]),Number.isInteger(D)&&(!i.cb||i.cb(M,V,y)))return $}return!1}function Ft(e,n){if(!Number.isSafeInteger(e)||e<0)throw new Error("string-match-left-right/".concat(n,"(): [THROW_ID_07] opts.maxMismatches must be a non-negative safe integer. Currently it's of a type: ").concat(typeof e,", equal to:\n").concat(g(e,4)))}function Bt(e,n){if(e)for(let t=0;t<e.length;t+=1){let r=e[t];if(typeof r!="string"&&typeof r!="function")throw new Error("string-match-left-right/".concat(n,"(): [THROW_ID_08] matcher alternatives must be strings or EOL marker functions. The value at index ").concat(t," is of a type: ").concat(typeof r,", equal to:\n").concat(g(r,4)))}}function _t(e,n,t,r){return Oe("matchLeft",e,n,t,r)}function lt(e,n,t,r){return Oe("matchRightIncl",e,n,t,r)}function ot(e,n,t,r){return Oe("matchRight",e,n,t,r)}var Ut=["_16_0_7_1_1_0_3_1_1_2_1_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1","_11_2_0_6_14_1z_q_4_3_19_16_l_9_4_1_1_2q_1_0_f_1_7_e_2_0_g_0_1_t_t_2g_b_0_e_16_9_1_4_0_5_l_4_0_9_0_3","_0_n_o_7_a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_4_9_1_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_4_b_2_5_2_","0_8_5_4_1_2_l_1_6_1_1_1_1_1_1_v_3_1_0_7_9_2_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_4_9_9_0_b_7_2_1_2_","l_1_6_1_1_1_4_3_0_u_1_1_2_4_9_1_6_b_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m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6_5_1_1_1_v_e_0_7_9_6_17_4_9","_6u_i_f_0_1_c_1_x_s_9_2e_0_f_k_17_pl_2u_32_h_5f_218_2o_f_tr_h_5_p_32y_5_g6_5a1_t_i_9_1c6_fs_7_u_1_9_","6_26_1_9_6_t_i_1b_g_3_c_9_1_6_1_k_5_i_c0_18_3_9_5i_2e_9_o_2_o_18_22_5_0_1u_c_1s_1_1_0_e_4_9_5p1_15_v","_2p_36_6pp_3_1_6_1_1_1_82_f_0_t_2_2_0_e_3_8_az_1s4_2y_5_c_3_8_7_9_386_9_152_j_c_j_30_o_3r_2c_1_1y_1_","1_2_0_2_1_2_3_1_b_1_0_1_6_1_1s_1_3_2_7_1_6_1_r_1_3_1_4_1_0_3_6_1_9f_2_o_1_o_1_u_1_o_1_u_1_o_1_u_1_o_","1_u_1_o_1_7_2_1d_1ds_u_6_5_79_1p_42_18_a_6_2_9_4_0_8x_t_i_17_4_9_d2_r_4_9_5y_t_2_a_5h_u_1_2_1_1_1_6_","2_4_9_1_68_6_1_3_1_1_1_e_1_5g_2_8_1c_1v_7_0_4_9_lz_1m_1_2_1_3_24_18_1_e_5e_3_1_q_1_1_1_0_2_0_1_9_1_3","_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4","_1_g_g4_c_25f_9_sm_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),we=Ut.slice(1).split("_"),Le=[],st=127;for(let e=0;e<we.length;e+=2){let n=st+1+Number.parseInt(we[e],36),t=n+Number.parseInt(we[e+1],36);Le.push([n,t]),st=t}function qt(e){if(Number.isNaN(e)||e<128||e>1114111)return!1;let n=0,t=Le.length-1;for(;n<=t;){let r=n+t>>1,l=Le[r];if(e<l[0])t=r-1;else if(e>l[1])n=r+1;else return!0}return!1}function W(e,n,t){let r=n[t];if(!e||!r||!e.includes(r))return!1;let l=r.charCodeAt(0),i=t,s=t+1;if(!(l>=55296&&l<=56319&&n.charCodeAt(s)>=56320&&n.charCodeAt(s)<=57343))if(l>=56320&&l<=57343&&n.charCodeAt(t-1)>=55296&&n.charCodeAt(t-1)<=56319)i=t-1,s=t;else return e.includes(n[t]);let u=n.charCodeAt(i),c=n.charCodeAt(s);for(let h=0;h<e.length-1;h++)if(e.charCodeAt(h)===u&&e.charCodeAt(h+1)===c)return!0;return!1}function at(e,n){let t=e.charCodeAt(n);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)return!0;let r=t;return t>=55296&&t<=56319&&e.charCodeAt(n+1)>=56320&&e.charCodeAt(n+1)<=57343?r=(t-55296)*1024+(e.charCodeAt(n+1)-56320)+65536:t>=56320&&t<=57343&&e.charCodeAt(n-1)>=55296&&e.charCodeAt(n-1)<=56319&&(r=(e.charCodeAt(n-1)-55296)*1024+(t-56320)+65536),qt(r)}var G={str:"",from:0,to:0,ifLeftSideIncludesThisThenCropTightly:"",ifLeftSideIncludesThisCropItToo:"",ifRightSideIncludesThisThenCropTightly:"",ifRightSideIncludesThisCropItToo:"",extendToOneSide:!1,wipeAllWhitespaceOnLeft:!1,wipeAllWhitespaceOnRight:!1,addSingleSpaceToPreventAccidentalConcatenation:!1};function de(e){var s,u,c,h,E,A,p,N,f,C;function n(m){return L(m)&&!m.trim()}if(F(e)){if(!Object.keys(e).length)throw new Error('string-range-expander/expander(): [THROW_ID_02] Input must be a plain object with the required "str", "from", and "to" keys, but it was given without any keys.')}else{let m;throw e===void 0?m="but it is missing completely.":e===null?m="but it was given as null.":m="but it was given as ".concat(typeof e,", equal to:\n").concat(g(e,4),"."),new Error("string-range-expander/expander(): [THROW_ID_01] Input must be a plain object ".concat(m))}if(!L(e.str))throw new Error('string-range-expander/expander(): [THROW_ID_03] The input\'s "str" value must be a string! It was given as '.concat(typeof e.str,", equal to ").concat(g(e.str)));if(!K(e.from)||e.from<0)throw new Error('string-range-expander/expander(): [THROW_ID_04] The input\'s "from" value must be a non-negative integer! It was given as '.concat(typeof e.from,", equal to ").concat(g(e.from)));if(!K(e.to)||e.to<0)throw new Error('string-range-expander/expander(): [THROW_ID_05] The input\'s "to" value must be a non-negative integer! It was given as '.concat(typeof e.to,", equal to ").concat(g(e.to)));if(e.from>e.str.length)throw new Error('string-range-expander/expander(): [THROW_ID_06] The input\'s "from" value ('.concat(e.from,") must not exceed the string length (").concat(e.str.length,")."));if(e.to>e.str.length)throw new Error('string-range-expander/expander(): [THROW_ID_07] The input\'s "to" value ('.concat(e.to,") must not exceed the string length (").concat(e.str.length,")."));if(e.from>e.to)throw new Error('string-range-expander/expander(): [THROW_ID_08] The input\'s "from" value ('.concat(e.from,') must not exceed its "to" value (').concat(e.to,")."));if(e.extendToOneSide!==void 0&&e.extendToOneSide!==!1&&e.extendToOneSide!=="left"&&e.extendToOneSide!=="right")throw new Error('string-range-expander/expander(): [THROW_ID_09] The options value "extendToOneSide" is not recognisable! It\'s set to: '.concat(g(e.extendToOneSide)," (").concat(typeof e.extendToOneSide,'). It has to be either Boolean "false" or one of strings: "left" or "right"'));if(e.ifLeftSideIncludesThisThenCropTightly!==void 0&&!L(e.ifLeftSideIncludesThisThenCropTightly))throw new Error('string-range-expander/expander(): [THROW_ID_10] The option "ifLeftSideIncludesThisThenCropTightly", is not a string! It\'s been given as '.concat(typeof e.ifLeftSideIncludesThisThenCropTightly,", equal to ").concat(g(e.ifLeftSideIncludesThisThenCropTightly)));if(e.ifLeftSideIncludesThisCropItToo!==void 0&&!L(e.ifLeftSideIncludesThisCropItToo))throw new Error('string-range-expander/expander(): [THROW_ID_11] The option "ifLeftSideIncludesThisCropItToo", is not a string! It\'s been given as '.concat(typeof e.ifLeftSideIncludesThisCropItToo,", equal to ").concat(g(e.ifLeftSideIncludesThisCropItToo)));if(e.ifRightSideIncludesThisThenCropTightly!==void 0&&!L(e.ifRightSideIncludesThisThenCropTightly))throw new Error('string-range-expander/expander(): [THROW_ID_12] The option "ifRightSideIncludesThisThenCropTightly", is not a string! It\'s been given as '.concat(typeof e.ifRightSideIncludesThisThenCropTightly,", equal to ").concat(g(e.ifRightSideIncludesThisThenCropTightly)));if(e.ifRightSideIncludesThisCropItToo!==void 0&&!L(e.ifRightSideIncludesThisCropItToo))throw new Error('string-range-expander/expander(): [THROW_ID_13] The option "ifRightSideIncludesThisCropItToo", is not a string! It\'s been given as '.concat(typeof e.ifRightSideIncludesThisCropItToo,", equal to ").concat(g(e.ifRightSideIncludesThisCropItToo)));if(e.wipeAllWhitespaceOnLeft!==void 0&&typeof e.wipeAllWhitespaceOnLeft!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_14] The option "wipeAllWhitespaceOnLeft" must be a Boolean! It was given as '.concat(typeof e.wipeAllWhitespaceOnLeft,", equal to ").concat(g(e.wipeAllWhitespaceOnLeft)));if(e.wipeAllWhitespaceOnRight!==void 0&&typeof e.wipeAllWhitespaceOnRight!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_15] The option "wipeAllWhitespaceOnRight" must be a Boolean! It was given as '.concat(typeof e.wipeAllWhitespaceOnRight,", equal to ").concat(g(e.wipeAllWhitespaceOnRight)));if(e.addSingleSpaceToPreventAccidentalConcatenation!==void 0&&typeof e.addSingleSpaceToPreventAccidentalConcatenation!="boolean")throw new Error('string-range-expander/expander(): [THROW_ID_16] The option "addSingleSpaceToPreventAccidentalConcatenation" must be a Boolean! It was given as '.concat(typeof e.addSingleSpaceToPreventAccidentalConcatenation,", equal to ").concat(g(e.addSingleSpaceToPreventAccidentalConcatenation)));let t=le(U(U({},G),e),{ifLeftSideIncludesThisThenCropTightly:(s=e.ifLeftSideIncludesThisThenCropTightly)!=null?s:G.ifLeftSideIncludesThisThenCropTightly,ifLeftSideIncludesThisCropItToo:(u=e.ifLeftSideIncludesThisCropItToo)!=null?u:G.ifLeftSideIncludesThisCropItToo,ifRightSideIncludesThisThenCropTightly:(c=e.ifRightSideIncludesThisThenCropTightly)!=null?c:G.ifRightSideIncludesThisThenCropTightly,ifRightSideIncludesThisCropItToo:(h=e.ifRightSideIncludesThisCropItToo)!=null?h:G.ifRightSideIncludesThisCropItToo,extendToOneSide:(E=e.extendToOneSide)!=null?E:G.extendToOneSide,wipeAllWhitespaceOnLeft:(A=e.wipeAllWhitespaceOnLeft)!=null?A:G.wipeAllWhitespaceOnLeft,wipeAllWhitespaceOnRight:(p=e.wipeAllWhitespaceOnRight)!=null?p:G.wipeAllWhitespaceOnRight,addSingleSpaceToPreventAccidentalConcatenation:(N=e.addSingleSpaceToPreventAccidentalConcatenation)!=null?N:G.addSingleSpaceToPreventAccidentalConcatenation}),r=t.str,l=t.from,i=t.to;if(t.extendToOneSide!=="right"&&(n(r[l-1])&&(n(r[l-2])||W(t.ifLeftSideIncludesThisCropItToo,r,l-2))||r[l-1]&&W(t.ifLeftSideIncludesThisCropItToo,r,l-1)||t.wipeAllWhitespaceOnLeft&&n(r[l-1]))){for(let m=l;m--;)if(W(t.ifLeftSideIncludesThisCropItToo,r,m))m===0&&(l=0);else if(r[m].trim()){t.wipeAllWhitespaceOnLeft||W(t.ifLeftSideIncludesThisCropItToo,r,m+1)?l=m+1:l=m+2;break}else if(m===0){t.wipeAllWhitespaceOnLeft?l=0:l=1;break}}if(t.extendToOneSide!=="left"&&(n(r[i])&&(t.wipeAllWhitespaceOnRight||n(r[i+1])||W(t.ifRightSideIncludesThisCropItToo,r,i+1))||W(t.ifRightSideIncludesThisCropItToo,r,i))){for(let m=i,b=r.length;m<b;m++)if(W(t.ifRightSideIncludesThisCropItToo,r,m))m===b-1&&(i=b);else if(r[m].trim()){t.wipeAllWhitespaceOnRight||W(t.ifRightSideIncludesThisCropItToo,r,m-1)?i=m:i=m-1;break}else if(m===r.length-1){t.wipeAllWhitespaceOnRight?i=r.length:i=r.length-1;break}}return(t.extendToOneSide!=="right"&&L(t.ifLeftSideIncludesThisThenCropTightly)&&t.ifLeftSideIncludesThisThenCropTightly&&(n(r[l-1])&&W(t.ifLeftSideIncludesThisThenCropTightly,r,l-2)||r[l-1]&&W(t.ifLeftSideIncludesThisThenCropTightly,r,l-1))||t.extendToOneSide!=="left"&&L(t.ifRightSideIncludesThisThenCropTightly)&&t.ifRightSideIncludesThisThenCropTightly&&(n(r[i])&&W(t.ifRightSideIncludesThisThenCropTightly,r,i+1)||r[i]&&W(t.ifRightSideIncludesThisThenCropTightly,r,i)))&&(t.extendToOneSide!=="right"&&n(r[l-1])&&!t.wipeAllWhitespaceOnLeft&&(l-=1),t.extendToOneSide!=="left"&&n(r[i])&&!t.wipeAllWhitespaceOnRight&&(i+=1)),t.addSingleSpaceToPreventAccidentalConcatenation&&l<i&&((f=r[l-1])!=null&&f.trim())&&((C=r[i])!=null&&C.trim())&&(!t.ifLeftSideIncludesThisThenCropTightly&&!t.ifRightSideIncludesThisThenCropTightly||!((!t.ifLeftSideIncludesThisThenCropTightly||W(t.ifLeftSideIncludesThisThenCropTightly,r,l-1))&&(!t.ifRightSideIncludesThisThenCropTightly||r[i]&&W(t.ifRightSideIncludesThisThenCropTightly,r,i))))&&(at(r,l-1)||at(r,i))?[l,i," "]:[l,i]}var ut="6.3.2";function ft(e,n){if(n<0||n>=e.length)return;let t=e.charCodeAt(n),r=e.charCodeAt(n+1);if(t>=55296&&t<=56319&&r>=56320&&r<=57343)return e.slice(n,n+2);let l=e.charCodeAt(n-1);return t>=56320&&t<=57343&&l>=55296&&l<=56319?e.slice(n-1,n+1):e[n]}var zt=ut;function Ie(e){return e>96&&e<123||e>64&&e<91||e>47&&e<58||e===95}function se(e){return e!==void 0&&Ie(e.charCodeAt(0))}function ct(e){return e!==void 0&&(Ie(e.charCodeAt(0))||":-.".includes(e))}function ht(e){if(/^[\x00-\x7f]*$/.test(e))return e.length;let n=0;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<=127)n+=1;else if(r<=2047)n+=2;else if(r>=55296&&r<=56319&&t+1<e.length){let l=e.charCodeAt(t+1);l>=56320&&l<=57343?(n+=4,t+=1):n+=3}else n+=3}return n}function Gt(e,n,t){var i;let r="",l=0;for(let s=0,u=n.length;s<u;s++){t&&t(s/u*100);let c=n[s];r+="".concat(e.slice(l,c[0])).concat((i=c[2])!=null?i:""),l=c[1]}return t&&t(100),r+e.slice(l)}var ve={lineLengthLimit:500,removeIndentations:!0,removeLineBreaks:!1,removeHTMLComments:!1,removeCSSComments:!0,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,breakToTheLeftOf:["</td","<html","</html","<head","</head","<meta","<link","<table","<script","<\/script","<!DOCTYPE","<style","</style","<title","<body","@media","</body","<!--[if","<!--<![endif","<![endif]"],mindTheInlineTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]};function Kt(e,n){var Ve,Me;let t=Date.now();if(!L(e))throw e===void 0?new Error("html-crush/crush(): [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error('html-crush/crush(): [THROW_ID_02] the first input argument must be string! It was given as "'.concat(typeof e,'", equal to:\n').concat(g(e,4)));if(n&&!F(n))throw new Error("html-crush/crush(): [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ".concat(typeof n,", equal to ").concat(g(n,4)));let r=n;if(r&&Array.isArray(r.breakToTheLeftOf)&&r.breakToTheLeftOf.length){for(let S=0,_=r.breakToTheLeftOf.length;S<_;S++)if(!L(r.breakToTheLeftOf[S]))throw new TypeError("html-crush/crush(): [THROW_ID_04] the resolvedOpts.breakToTheLeftOf array contains non-string elements! For example, element at index ".concat(S,' is of a type "').concat(typeof r.breakToTheLeftOf[S],'" and is equal to:\n').concat(g(r.breakToTheLeftOf[S],4)))}let l=new et({limitToBeAddedWhitespace:!0}),i=le(U(U({},ve),r),{reportProgressFunc:typeof(r==null?void 0:r.reportProgressFunc)=="function"?r.reportProgressFunc:null,breakToTheLeftOf:(r==null?void 0:r.breakToTheLeftOf)===void 0?ve.breakToTheLeftOf:Array.isArray(r.breakToTheLeftOf)?r.breakToTheLeftOf:[]});typeof i.removeHTMLComments=="boolean"&&(i.removeHTMLComments=i.removeHTMLComments?1:0);let s="";Array.isArray(i.breakToTheLeftOf)&&i.breakToTheLeftOf.length&&(s=[...new Set(i.breakToTheLeftOf.map(S=>S[0]))].join(""));let u={removeHTMLComments:!1,removeCSSComments:!1},c=Array.isArray(i.mindTheInlineTags)?i.mindTheInlineTags:[],h=new Set(c),E=!!c.length&&c.every(S=>L(S)&&!!S.length&&![...S].some(_=>!se(_))),A=new Map,p=Array.isArray(i.breakToTheLeftOf)&&!!i.breakToTheLeftOf.length&&i.breakToTheLeftOf.every(L)&&!(i.breakToTheLeftOf.length===1&&!i.breakToTheLeftOf[0].trim());if(p)for(let S of i.breakToTheLeftOf){if(!S.length)continue;let _=A.get(S[0]);_?_.push(S):A.set(S[0],[S])}function N(S){if(!p)return!!lt(e,S,i.breakToTheLeftOf);let _=A.get(e[S]);if(_===void 0)return!1;for(let v=0,o=_.length;v<o;v++)if(e.startsWith(_[v],S))return!0;return!1}function f(S,_){if(!E)return!!ot(e,S,i.mindTheInlineTags,le(U({},_?{trimCharsBeforeMatching:"/"}:{}),{cb:I=>!I||!se(I)}));let v=S+1;if(_)for(;e[v]==="/";)v++;let o=v;for(;o<k&&Ie(e.charCodeAt(o));)o++;return o>v&&h.has(e.slice(v,o))}function C(S){let _=S-1;for(;_>=0&&H(e[_]);)_--;if(e[_]!=="=")return null;let v=_,o=_-1;for(;o>=0&&H(e[o]);)o--,v--;for(;o>=0&&ct(e[o]);)o--;return o+1<v?e.slice(o+1,v).toLowerCase():null}function m(S,_,v){if(e[S]!=="<")return!1;let o=S+1;if(v){if(e[o]!=="/")return!1;o++}else if(e[o]==="/")return!1;for(let I=0;I<_.length;I++){let J=e.charCodeAt(o+I);if(J>64&&J<91&&(J+=32),J!==_.charCodeAt(I))return!1}return!ct(e[o+_.length])&&!Ke(ft(e,o+_.length))}function b(S,_){let v=e.indexOf("<",S);for(;v!==-1;){if(m(v,_,!0))return v;v=e.indexOf("<",v+1)}return-1}let d=null,a=null,R=!1,$=0,M=0,y=!1,V=!1,D=null,ee=null,te=null,j=null,Q=null,pe=null,O,T=null,w=null,x=null,B=null,z=null,ae=null,ne=">};",re="<",gt="!",mt=">",dt="<",De="{},:;<>~+",$e=De,be=De,X=!0,k=e.length;function Re(S,_=!1){let v=S.length,o=Math.max(k-v,0),I=ht(e),J=_?I:ht(S),Pe=Math.max(I-J,0);return{timeTakenInMilliseconds:Date.now()-t,originalLength:k,cleanedLength:v,bytesSaved:o,percentageReducedOfOriginal:k?Math.round(o*100/k):0,originalLengthInCodeUnits:k,cleanedLengthInCodeUnits:v,codeUnitsSaved:o,percentageReducedOfOriginalInCodeUnits:k?Math.round(o*100/k):0,originalLengthInUtf8Bytes:I,cleanedLengthInUtf8Bytes:J,utf8BytesSaved:Pe,percentageReducedOfOriginalInUtf8Bytes:I?Math.round(Pe*100/I):0}}let ie=0;for(;ie<k&&H(e[ie]);)ie++;let pt=Math.floor(k/2),xe=.01,Ne=1-xe,ke=null;function _e(S){if(!i.reportProgressFunc||k<=1e3)return;let _=Math.max(0,Math.min(S,1)),v=Math.floor(i.reportProgressFuncFrom+(i.reportProgressFuncTo-i.reportProgressFuncFrom)*_);v!==ke&&(ke=v,i.reportProgressFunc(v))}let P="\n";if(e.includes("\r\n")?P="\r\n":e.includes("\r")&&(P="\r"),k){for(let _=0;_<k;_++){if(i.reportProgressFunc&&(k>1e3&&k<2e3?_===pt&&_e(.5):k>=2e3&&_e(_/k*Ne)),M++,!O&&y&&e[_]==="}"&&e[_-1]==="}"&&($+1>=i.lineLengthLimit?(l.push(_,_,P),$=0):(T=_,w=_,x=" ")),O&&typeof O=="number"&&_>=O&&(O=void 0),pe!==null&&m(_,"script",!0)){if((i.removeIndentations||i.removeLineBreaks)&&_>0&&e[~-_]&&H(e[~-_])){for(let o=_;o--;)if(e[o]==="\n"||e[o]==="\r"||!H(e[o])){o+1<_&&l.push(o+1,_);break}}pe=null,O=!1,_+=8;continue}if(!O&&!y&&m(_,"script",!1)){pe=_,O=!0;let o="";(i.removeLineBreaks||i.removeIndentations)&&a!==null&&(a>0&&(o=P),l.push(a,_,o)),a=null,d=null}if(!O&&ee!==null){i.removeLineBreaks&&($="\r\n".includes(e[_])?0:$+1),_>ee&&e[_]===e[ee]&&(ee=null);continue}if(!O&&z!==null&&!D&&"\"'".includes(e[_])){let o=C(_);if(o==="style")D=_;else if(o!==null){ee=_,i.removeLineBreaks&&($+=1);continue}}if(!O&&te!==null){if(i.removeLineBreaks&&($="\r\n".includes(e[_])?0:$+1),_>te&&e[_]===e[te]){let o=0;for(let I=_;I>0&&e[I-1]==="\\";I--)o++;o%2===0&&(te=null)}continue}if(!O&&(y||D)&&(D||z===null)&&"\"'".includes(e[_])&&!(D&&e[_]===e[D])){te=_,i.removeLineBreaks&&($+=1);continue}if(z!==null&&B===null&&!se(e[_])){B=e.slice(z,_);let o=q(e,~-_),I=q(e,_);if(typeof o=="number"&&e[o]===">"&&H(e[_])&&I)l.push(_,I);else if(o&&e[o]==="/"&&e[q(e,o)]===">"){H(e[_])&&I&&l.push(_,I);let J=q(e,o+1);e[o+1]!==">"&&J&&l.push(o+1,J)}}if(!O&&!y&&!D&&e[~-_]==="<"&&z===null)if(se(e[_]))z=_;else{let o=q(e,~-_),I=q(e,o);e[o]==="/"&&se(e[I]||"")&&(z=I)}if(!O&&(y||D)&&j!==null&&e[_]==="*"&&e[_+1]==="/"&&([T,w]=de({str:e,from:j,to:_+2,ifLeftSideIncludesThisThenCropTightly:$e||"",ifRightSideIncludesThisThenCropTightly:be||""}),j=null,T!=null?l.push(T,w):($+=1,_+=1),O=_+2),!O&&(y||D)&&j===null&&e[_]==="/"&&e[_+1]==="*"&&(u.removeCSSComments||(u.removeCSSComments=!0),i.removeCSSComments&&(j=_)),V&&e.startsWith("![endif",_+1)&&(V=!1),!O&&!y&&!D&&Q!==null){let o;e.startsWith("-->",_)?o=3:e[_]===">"&&e[_-1]==="]"&&(o=1),o&&([T,w]=de({str:e,from:Q,to:_+o}),Q=null,T!=null?i.removeLineBreaks&&i.lineLengthLimit&&M-(w-T)>=i.lineLengthLimit?(l.push(T,w,P),M=-o):(l.push(T,w),M-=w-T):($+=o-1,_+=o-1),O=_+o)}if(!O&&!y&&!D&&e[_]==="<"&&(e.startsWith("<!--",_)||e.startsWith("<![endif",_))&&Q===null&&(e.startsWith("<![endif",_)?i.removeHTMLComments===2&&(Q=_):e.startsWith("[if",_+4)?(V||(V=!0),i.removeHTMLComments===2&&(Q=_)):i.removeHTMLComments&&(!V||i.removeHTMLComments===2)&&(Q=_),u.removeHTMLComments||(u.removeHTMLComments=!0)),!O&&y&&j===null&&m(_,"style",!0)?y=!1:!O&&!y&&j===null&&m(_,"style",!1)&&(y=!0,(i.removeLineBreaks||i.removeIndentations)&&i.breakToTheLeftOf.includes("<style")&&e.startsWith(' type="text/css">',_+6)&&e[_+24]&&l.push(_+23,_+23,P)),!O&&!D&&"\"'".includes(e[_])&&e.endsWith("style=",_)&&(D=_),!O&&H(e[_]))a===null&&(a=_);else if(!O&&!((y||D)&&j!==null)){if(a!==null){if(i.removeLineBreaks&&($+=1),X)X=!1,(i.removeIndentations||i.removeLineBreaks)&&l.push(0,_);else if(i.removeIndentations&&!i.removeLineBreaks&&(!R&&d!==null&&_>d?l.push(d+1,_):a+1<_&&(e.endsWith("]>",a)||e.endsWith("-->",a)||e.startsWith("<![",_)||e.startsWith("<!--<![",_)?l.push(a,_):e[a]===" "?l.push(a+1,_):e[~-_]===" "?l.push(a,~-_):l.push(a,_," "))),i.removeLineBreaks||D){if(s.includes(e[_])&&N(_)){!("\r\n".includes(e[~-_])&&a===~-_)&&!(e[~-_]==="\n"&&e[_-2]==="\r"&&a===_-2)&&l.push(a,_,P),T=null,w=null,x=null,a=null,$=1;continue}let o=" ";if(!(e[_]==="<"&&f(_,!1))){if(e[~-a]&&mt.includes(e[~-a])&&dt.includes(e[_])||(y||D)&&j===null&&($e.includes(e[~-a])||be.includes(e[_]))||e[_]==="!"&&e.startsWith("!important",_)&&!V||D&&(e[~-a]==="'"||e[~-a]==='"')||e[~-a]==="}"&&e.startsWith("</style",_)||e[_]===">"&&("'\"".includes(e[me(e,_)])||e[q(e,_)]==="<")||e[_]==="/"&&e[q(e,_)]===">"){o="";let I=e[_]==="/"&&e[_+1]===">"?q(e,_):null;I&&I>_+1&&(l.push(_+1,I),$-=I-_+1)}}y&&e[_]==="}"&&a&&e[a-1]==="}"&&(o=" "),o!=null&&o.length&&($+=1),i.lineLengthLimit?$>=i.lineLengthLimit||!e[_+1]||e[_]===">"||e[_]==="/"&&e[_+1]===">"?(($>i.lineLengthLimit||$===i.lineLengthLimit&&((Ve=e[_+1])!=null&&Ve.trim())&&!ne.includes(e[_])&&!re.includes(e[_+1]))&&(o=P,$=1),($>i.lineLengthLimit||!(o===" "&&_===a+1))&&(l.push(a,_,o),d=null),T=null,w=null,x=null):(T===null||a<T)&&(T=a,w=_,x=o):_===a+1&&o===" "||l.push(a,_,o)}a=null,R||(R=!0)}else X&&(X=!1),i.removeLineBreaks&&($+=1);R||(R=!0)}if(!O&&!X&&_!==0&&i.removeLineBreaks&&(i.lineLengthLimit||s)&&!(e[_]==="<"&&e.startsWith("</a",_))){if(s&&N(_)&&ie<_&&(e[_]!=="<"||!e.startsWith("<![endif]",_)||!_t(e,_,"<!--"))){l.push(_,_,P),T=null,w=null,x=null,$=1;continue}else if(i.lineLengthLimit&&$<=i.lineLengthLimit){if(!e[_+1]||re.includes(e[_])&&!gt.includes(e[_])||ne.includes(e[_])||H(e[_])){if(T!==null&&w!==null&&(T!==w||x!=null&&x.length)){let o=x;!H(e[_])&&((Me=e[_+1])!=null&&Me.trim())&&$+(x?x.length:0)>i.lineLengthLimit&&(o=P),($+(o?o.length:0)>i.lineLengthLimit||!(o===" "&&w===T+1&&e[T]===" "))&&(e[~-T]==="}"&&e[w]==="{"||(l.push(T,w,o),d=null))}!H(e[_])&&(re.includes(e[_])||e[~-_]&&ne.includes(e[~-_]))&&L(ae)&&(!B||!h.has(B))&&!(e[_]==="<"&&f(_,!1))&&!(e[_]==="<"&&f(_,!0))?(T=_,w=_,x=null):j===null&&T!==null&&(D||!i.mindTheInlineTags||!Array.isArray(i.mindTheInlineTags)||Array.isArray(i.mindTheInlineTags.length)&&!i.mindTheInlineTags.length||!L(B)||Array.isArray(i.mindTheInlineTags)&&i.mindTheInlineTags.length&&L(B)&&!h.has(B))&&!(e[_]==="<"&&f(_,!0))&&(T=null,w=null,x=null)}}else if(i.lineLengthLimit)if(re.includes(e[_])&&!(e[_]==="<"&&f(_,!0)))if(T!==null&&w!==null&&(T!==w||x!=null&&x.length)){let o=x!=null&&x.length?x.length:0;$-(w-T-o)-1>i.lineLengthLimit||(l.push(T,w,x),$-(w-T-o)-1===i.lineLengthLimit&&(l.push(_,_,P),$=0),T=null,w=null,x=null)}else l.push(_,_,P),$=0;else e[_+1]&&ne.includes(e[_])&&L(B)&&Array.isArray(i.mindTheInlineTags)&&i.mindTheInlineTags.length&&!h.has(B)?T!==null&&w!==null&&(T!==w||x!=null&&x.length)||(l.push(_+1,_+1,P),$=0):H(e[_])||e[_+1]||T!==null&&w!==null&&(T!==w||x!=null&&x.length)&&l.push(T,w,P)}if(!O&&!X&&i.removeLineBreaks&&i.lineLengthLimit&&$>=i.lineLengthLimit&&T!==null&&w!==null&&!ne.includes(e[_])&&!re.includes(e[_])&&!"/".includes(e[_])&&!($===i.lineLengthLimit&&e[_+1]&&!e[_+1].trim())){let o=P;e[_+1]&&!e[_+1].trim()&&$===i.lineLengthLimit&&(o=x),o===P&&!e[~-T].trim()&&me(e,T)&&(T=me(e,T)+1),l.push(T,w,o),$=_-w,e[_].length&&($+=1),T=null,w=null,x=null}if((!O&&e[_]==="\n"||e[_]==="\r"&&(!e[_+1]||e[_+1]&&e[_+1]!=="\n"))&&(d=_,R&&(R=!1),!i.removeLineBreaks&&a!==null&&a<_&&e[_+1]&&e[_+1]!=="\r"&&e[_+1]!=="\n"&&l.push(a,_)),!e[_+1]){if((y||D)&&j!==null)l.push([...de({str:e,from:j,to:_+1,ifLeftSideIncludesThisThenCropTightly:$e||"",ifRightSideIncludesThisThenCropTightly:be||""})]);else if(a!==null&&(ie<k||i.removeIndentations||i.removeLineBreaks)){let o=e.endsWith("\r\n")?k-2:e.endsWith("\n")||e.endsWith("\r")?k-1:k;a<o&&l.push(a,o)}}if(!O&&D&&D<_&&e[D]===e[_]&&(D=null),!O&&!y&&e[_]==="<"){let o=null;if(m(_,"pre",!1)?o="pre":m(_,"code",!1)?o="code":m(_,"textarea",!1)&&(o="textarea"),o!==null){let I=b(_+2,o);O=I===-1?k:I}}if(!O&&e[_]==="<"&&e.startsWith("<![CDATA[",_)){let o=e.indexOf("]]>",_+9);o>0&&(O=o)}if(!O&&!y&&!D&&z!==null&&e[_]===">"&&(e[q(e,_)]==="<"&&(ae=B),z=null,B=null),e[_]==="<"&&ae!==null&&(ae=null),!O&&y&&e[_]==="{"&&e[_+1]==="{"){let o=e.indexOf("}}",_+2);o!==-1&&(O=o+2)}let v=!0}let S=l.current();if(S){let _=i.reportProgressFunc&&k>=2e3?o=>{_e(Ne+xe*(o/100))}:void 0,v=Gt(e,S,_);return _e(1),{log:Re(v),ranges:S,applicableOpts:u,result:v}}}return _e(1),{log:Re(e,!0),applicableOpts:u,ranges:null,result:e}}return At(Yt);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-format-diagnostic-value
|
|
13
13
|
* @fileoverview Safely format untrusted JavaScript values for diagnostics
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
/**
|
|
76
76
|
* @name string-range-expander
|
|
77
77
|
* @fileoverview Expands string index ranges within whitespace boundaries until letters are met
|
|
78
|
-
* @version 4.2.
|
|
78
|
+
* @version 4.2.4
|
|
79
79
|
* @author Roy Revelt
|
|
80
80
|
* @license MIT
|
|
81
81
|
* {@link https://codsen.com/os/string-range-expander/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-crush",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.2",
|
|
4
4
|
"description": "Minify email templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"breaks",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"ranges-push": "^7.3.1",
|
|
81
81
|
"string-left-right": "^6.2.3",
|
|
82
82
|
"string-match-left-right": "^9.2.4",
|
|
83
|
-
"string-range-expander": "^4.2.
|
|
83
|
+
"string-range-expander": "^4.2.4"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"test-mixer": "^4.4.1"
|