string-convert-indexes 5.1.0 → 5.1.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
CHANGED
|
@@ -79,41 +79,41 @@ Complete rewrite. Dropping options, now program always throws if requested index
|
|
|
79
79
|
|
|
80
80
|
## 1.9.0 (2019-01-20)
|
|
81
81
|
|
|
82
|
-
-
|
|
83
|
-
-
|
|
82
|
+
- Various documentation and setup tweaks after we migrated to monorepo
|
|
83
|
+
- Setup refresh: updated dependencies and all config files using automated tools
|
|
84
84
|
|
|
85
85
|
## 1.6.0 (2018-10-25)
|
|
86
86
|
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
87
|
+
- Update all dependencies
|
|
88
|
+
- Restore coveralls.io reporting
|
|
89
|
+
- Restore unit test linting
|
|
90
90
|
|
|
91
91
|
## 1.5.0 (2018-08-19)
|
|
92
92
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
93
|
+
- Rebase code to remove any `if (DEBUG)` statements - now `console.log` comments can be left in place - they will be removed during non-dev Rollup builds
|
|
94
|
+
- Refresh the setup - temporarily remove `nyc` and update all dependencies
|
|
95
95
|
|
|
96
96
|
## 1.4.0 (2018-06-29)
|
|
97
97
|
|
|
98
|
-
-
|
|
98
|
+
- Set up Rollup to remove comments from the code
|
|
99
99
|
|
|
100
100
|
## 1.3.0 (2018-06-16)
|
|
101
101
|
|
|
102
102
|
GitHub sold us out. In the meantime, we:
|
|
103
103
|
|
|
104
|
-
-
|
|
105
|
-
-
|
|
104
|
+
- Migrate to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
|
|
105
|
+
- Drop BitHound (RIP) and Travis
|
|
106
106
|
|
|
107
107
|
## 1.2.0 (2018-05-10)
|
|
108
108
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
109
|
+
- Set up [Prettier](https://prettier.io)
|
|
110
|
+
- Remove `package.lock` and `.editorconfig`
|
|
111
|
+
- Wire up Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — Rollup will remove from production code.
|
|
112
|
+
- Point the unit tests at the _ES modules_ build, which means that code coverage is correct now, without Babel functions being missed
|
|
113
113
|
|
|
114
114
|
## 1.1.0 (2017-12-27)
|
|
115
115
|
|
|
116
|
-
-
|
|
116
|
+
- Now, this library can convert the next index, right outside of the last character.
|
|
117
117
|
|
|
118
118
|
Imagine, you have a string, astral character `\uD834\uDF06`. Now describe its contents in terms of `String.slice()` range. That would be `[0, 2]`. Now, this index \#2 is outside of the string character indexes range! We have only `\uD834` at \#0 and `\uDF06` at \#1. There's no \#2!
|
|
119
119
|
|
|
@@ -123,4 +123,4 @@ Practically, this is very important feature, it means we now can convert the ran
|
|
|
123
123
|
|
|
124
124
|
## 1.0.0 (2017-12-25)
|
|
125
125
|
|
|
126
|
-
-
|
|
126
|
+
- First public release
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name string-convert-indexes
|
|
3
3
|
* @fileoverview Convert between native JS string character indexes and grapheme-count-based indexes
|
|
4
|
-
* @version 5.1.
|
|
4
|
+
* @version 5.1.2
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-convert-indexes/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{traverse as g}from"ast-monkey-traverse";import h from"grapheme-splitter";var d="5.1.
|
|
10
|
+
import{traverse as g}from"ast-monkey-traverse";import h from"grapheme-splitter";var d="5.1.2";var E=d;function f(o,i,t){function a(r){return!(!["string","number"].includes(typeof r)||typeof r=="string"&&!/^\d*$/.test(r)||typeof r=="number"&&(!Number.isInteger(r)||r<0))}function l(r,n){let u=0,e=0;for(let c=0,y=r.length;c<y;c++){if(e+=r[c].length,n>=u&&n<e)return c;u+=r[c].length}throw new Error(`string-convert-indexes: [THROW_ID_05] the "indexes" value, ${t}, is not covered by graphemes length!`)}function p(r,n){if(n>=r.length)throw new Error(`string-convert-indexes: [THROW_ID_06] the index to convert, ${n}, is not covered by graphemes length!`);return r.slice(0,n).join("").length}if(typeof i!="string"||!i)throw new TypeError(`string-convert-indexes: [THROW_ID_01] the first input argument, input string, must be a non-zero-length string! Currently it's: ${typeof i}, equal to:
|
|
11
11
|
${i}`);if(t===0)return 0;if(t==="0")return"0";let s=new h().splitGraphemes(i);if(["string","number"].includes(typeof t)){if(a(t))return o==="u"?typeof t=="string"?String(p(s,+t)):p(s,+t):typeof t=="string"?String(l(s,+t)):l(s,+t);throw new Error(`string-convert-indexes: [THROW_ID_02] the second input argument, "indexes" is not suitable to describe string index - it was given as ${JSON.stringify(t,null,4)} (${typeof t})`)}else{if(t&&typeof t=="object")return o==="u"?g(t,(r,n,u)=>{let e=n!==void 0?n:r;if(["string","number"].includes(typeof e)){if(a(e))return typeof e=="string"?String(p(s,+e)):p(s,+e);throw new Error(`string-convert-indexes: [THROW_ID_03] bad value was encountered, ${JSON.stringify(e,null,4)}, its path is ${u.path}`)}return e}):g(t,(r,n,u)=>{let e=n!==void 0?n:r;if(["string","number"].includes(typeof e)){if(a(e))return typeof e=="string"?String(l(s,+e)):l(s,+e);throw new Error(`string-convert-indexes: [THROW_ID_04] bad value was encountered, ${JSON.stringify(e,null,4)}, its path is ${u.path}`)}return e});throw new Error(`string-convert-indexes: [THROW_ID_07] the first input argument, a source string should be a string but it was given as ${i}, type ${typeof i}`)}}function I(o,i){return f("n",o,i)}function T(o,i){return f("u",o,i)}export{I as nativeToUnicode,T as unicodeToNative,E as version};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
2
|
* @name string-convert-indexes
|
|
3
3
|
* @fileoverview Convert between native JS string character indexes and grapheme-count-based indexes
|
|
4
|
-
* @version 5.1.
|
|
4
|
+
* @version 5.1.2
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/string-convert-indexes/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var stringConvertIndexes=(()=>{var Ix=Object.create;var M=Object.defineProperty,$x=Object.defineProperties,Px=Object.getOwnPropertyDescriptor,Rx=Object.getOwnPropertyDescriptors,Nx=Object.getOwnPropertyNames,w0=Object.getOwnPropertySymbols,Gx=Object.getPrototypeOf,T0=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable;var O0=(t,r,n)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,$=(t,r)=>{for(var n in r||(r={}))T0.call(r,n)&&O0(t,n,r[n]);if(w0)for(var n of w0(r))Mx.call(r,n)&&O0(t,n,r[n]);return t},k=(t,r)=>$x(t,Rx(r));var x0=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),kx=(t,r)=>{for(var n in r)M(t,n,{get:r[n],enumerable:!0})},S0=(t,r,n,C)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Nx(r))!T0.call(t,i)&&i!==n&&M(t,i,{get:()=>r[i],enumerable:!(C=Px(r,i))||C.enumerable});return t};var t0=(t,r,n)=>(n=t!=null?Ix(Gx(t)):{},S0(r||!t||!t.__esModule?M(n,"default",{value:t,enumerable:!0}):n,t)),Hx=t=>S0(M({},"__esModule",{value:!0}),t);var lx=x0((H,P)=>{var Lx=200,U0="__lodash_hash_undefined__",V0=9007199254740991,a0="[object Arguments]",Ux="[object Array]",K0="[object Boolean]",W0="[object Date]",Vx="[object Error]",F0="[object Function]",J0="[object GeneratorFunction]",K="[object Map]",Z0="[object Number]",u0="[object Object]",j0="[object Promise]",q0="[object RegExp]",W="[object Set]",X0="[object String]",Y0="[object Symbol]",n0="[object WeakMap]",Q0="[object ArrayBuffer]",J="[object DataView]",z0="[object Float32Array]",e0="[object Float64Array]",o0="[object Int8Array]",c0="[object Int16Array]",d0="[object Int32Array]",xx="[object Uint8Array]",tx="[object Uint8ClampedArray]",rx="[object Uint16Array]",nx="[object Uint32Array]",Kx=/[\\^$.*+?()[\]{}|]/g,Wx=/\w*$/,Jx=/^\[object .+?Constructor\]$/,Zx=/^(?:0|[1-9]\d*)$/,p={};p[a0]=p[Ux]=p[Q0]=p[J]=p[K0]=p[W0]=p[z0]=p[e0]=p[o0]=p[c0]=p[d0]=p[K]=p[Z0]=p[u0]=p[q0]=p[W]=p[X0]=p[Y0]=p[xx]=p[tx]=p[rx]=p[nx]=!0;p[Vx]=p[F0]=p[n0]=!1;var qx=typeof global=="object"&&global&&global.Object===Object&&global,Xx=typeof self=="object"&&self&&self.Object===Object&&self,w=qx||Xx||Function("return this")(),Cx=typeof H=="object"&&H&&!H.nodeType&&H,I0=Cx&&typeof P=="object"&&P&&!P.nodeType&&P,Yx=I0&&I0.exports===Cx;function Qx(t,r){return t.set(r[0],r[1]),t}function zx(t,r){return t.add(r),t}function ex(t,r){for(var n=-1,C=t?t.length:0;++n<C&&r(t[n],n,t)!==!1;);return t}function ox(t,r){for(var n=-1,C=r.length,i=t.length;++n<C;)t[i+n]=r[n];return t}function Bx(t,r,n,C){var i=-1,E=t?t.length:0;for(C&&E&&(n=t[++i]);++i<E;)n=r(n,t[i],i,t);return n}function cx(t,r){for(var n=-1,C=Array(t);++n<t;)C[n]=r(n);return C}function dx(t,r){return t==null?void 0:t[r]}function Dx(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(n){}return r}function $0(t){var r=-1,n=Array(t.size);return t.forEach(function(C,i){n[++r]=[i,C]}),n}function s0(t,r){return function(n){return t(r(n))}}function P0(t){var r=-1,n=Array(t.size);return t.forEach(function(C){n[++r]=C}),n}var x1=Array.prototype,t1=Function.prototype,Z=Object.prototype,r0=w["__core-js_shared__"],R0=function(){var t=/[^.]+$/.exec(r0&&r0.keys&&r0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ix=t1.toString,T=Z.hasOwnProperty,q=Z.toString,r1=RegExp("^"+ix.call(T).replace(Kx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=Yx?w.Buffer:void 0,G0=w.Symbol,M0=w.Uint8Array,n1=s0(Object.getPrototypeOf,Object),C1=Object.create,B1=Z.propertyIsEnumerable,D1=x1.splice,k0=Object.getOwnPropertySymbols,i1=N0?N0.isBuffer:void 0,A1=s0(Object.keys,Object),C0=G(w,"DataView"),L=G(w,"Map"),B0=G(w,"Promise"),D0=G(w,"Set"),i0=G(w,"WeakMap"),U=G(Object,"create"),a1=I(C0),F1=I(L),u1=I(B0),s1=I(D0),f1=I(i0),H0=G0?G0.prototype:void 0,L0=H0?H0.valueOf:void 0;function j(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function E1(){this.__data__=U?U(null):{}}function l1(t){return this.has(t)&&delete this.__data__[t]}function p1(t){var r=this.__data__;if(U){var n=r[t];return n===U0?void 0:n}return T.call(r,t)?r[t]:void 0}function h1(t){var r=this.__data__;return U?r[t]!==void 0:T.call(r,t)}function g1(t,r){var n=this.__data__;return n[t]=U&&r===void 0?U0:r,this}j.prototype.clear=E1;j.prototype.delete=l1;j.prototype.get=p1;j.prototype.has=h1;j.prototype.set=g1;function O(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function y1(){this.__data__=[]}function b1(t){var r=this.__data__,n=X(r,t);if(n<0)return!1;var C=r.length-1;return n==C?r.pop():D1.call(r,n,1),!0}function v1(t){var r=this.__data__,n=X(r,t);return n<0?void 0:r[n][1]}function _1(t){return X(this.__data__,t)>-1}function m1(t,r){var n=this.__data__,C=X(n,t);return C<0?n.push([t,r]):n[C][1]=r,this}O.prototype.clear=y1;O.prototype.delete=b1;O.prototype.get=v1;O.prototype.has=_1;O.prototype.set=m1;function R(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function w1(){this.__data__={hash:new j,map:new(L||O),string:new j}}function O1(t){return Y(this,t).delete(t)}function T1(t){return Y(this,t).get(t)}function S1(t){return Y(this,t).has(t)}function j1(t,r){return Y(this,t).set(t,r),this}R.prototype.clear=w1;R.prototype.delete=O1;R.prototype.get=T1;R.prototype.has=S1;R.prototype.set=j1;function N(t){this.__data__=new O(t)}function I1(){this.__data__=new O}function $1(t){return this.__data__.delete(t)}function P1(t){return this.__data__.get(t)}function R1(t){return this.__data__.has(t)}function N1(t,r){var n=this.__data__;if(n instanceof O){var C=n.__data__;if(!L||C.length<Lx-1)return C.push([t,r]),this;n=this.__data__=new R(C)}return n.set(t,r),this}N.prototype.clear=I1;N.prototype.delete=$1;N.prototype.get=P1;N.prototype.has=R1;N.prototype.set=N1;function G1(t,r){var n=E0(t)||Ct(t)?cx(t.length,String):[],C=n.length,i=!!C;for(var E in t)(r||T.call(t,E))&&!(i&&(E=="length"||xt(E,C)))&&n.push(E);return n}function Ax(t,r,n){var C=t[r];(!(T.call(t,r)&&sx(C,n))||n===void 0&&!(r in t))&&(t[r]=n)}function X(t,r){for(var n=t.length;n--;)if(sx(t[n][0],r))return n;return-1}function M1(t,r){return t&&ax(r,l0(r),t)}function A0(t,r,n,C,i,E,g){var a;if(C&&(a=E?C(t,i,E,g):C(t)),a!==void 0)return a;if(!Q(t))return t;var D=E0(t);if(D){if(a=o1(t),!r)return Q1(t,a)}else{var s=S(t),u=s==F0||s==J0;if(Dt(t))return K1(t,r);if(s==u0||s==a0||u&&!E){if(Dx(t))return E?t:{};if(a=c1(u?{}:t),!r)return z1(t,M1(a,t))}else{if(!p[s])return E?t:{};a=d1(t,s,A0,r)}}g||(g=new N);var B=g.get(t);if(B)return B;if(g.set(t,a),!D)var y=n?e1(t):l0(t);return ex(y||t,function(b,_){y&&(_=b,b=t[_]),Ax(a,_,A0(b,r,n,C,_,t,g))}),a}function k1(t){return Q(t)?C1(t):{}}function H1(t,r,n){var C=r(t);return E0(t)?C:ox(C,n(t))}function L1(t){return q.call(t)}function U1(t){if(!Q(t)||rt(t))return!1;var r=Ex(t)||Dx(t)?r1:Jx;return r.test(I(t))}function V1(t){if(!ux(t))return A1(t);var r=[];for(var n in Object(t))T.call(t,n)&&n!="constructor"&&r.push(n);return r}function K1(t,r){if(r)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function f0(t){var r=new t.constructor(t.byteLength);return new M0(r).set(new M0(t)),r}function W1(t,r){var n=r?f0(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function J1(t,r,n){var C=r?n($0(t),!0):$0(t);return Bx(C,Qx,new t.constructor)}function Z1(t){var r=new t.constructor(t.source,Wx.exec(t));return r.lastIndex=t.lastIndex,r}function q1(t,r,n){var C=r?n(P0(t),!0):P0(t);return Bx(C,zx,new t.constructor)}function X1(t){return L0?Object(L0.call(t)):{}}function Y1(t,r){var n=r?f0(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Q1(t,r){var n=-1,C=t.length;for(r||(r=Array(C));++n<C;)r[n]=t[n];return r}function ax(t,r,n,C){n||(n={});for(var i=-1,E=r.length;++i<E;){var g=r[i],a=C?C(n[g],t[g],g,n,t):void 0;Ax(n,g,a===void 0?t[g]:a)}return n}function z1(t,r){return ax(t,Fx(t),r)}function e1(t){return H1(t,l0,Fx)}function Y(t,r){var n=t.__data__;return tt(r)?n[typeof r=="string"?"string":"hash"]:n.map}function G(t,r){var n=dx(t,r);return U1(n)?n:void 0}var Fx=k0?s0(k0,Object):at,S=L1;(C0&&S(new C0(new ArrayBuffer(1)))!=J||L&&S(new L)!=K||B0&&S(B0.resolve())!=j0||D0&&S(new D0)!=W||i0&&S(new i0)!=n0)&&(S=function(t){var r=q.call(t),n=r==u0?t.constructor:void 0,C=n?I(n):void 0;if(C)switch(C){case a1:return J;case F1:return K;case u1:return j0;case s1:return W;case f1:return n0}return r});function o1(t){var r=t.length,n=t.constructor(r);return r&&typeof t[0]=="string"&&T.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function c1(t){return typeof t.constructor=="function"&&!ux(t)?k1(n1(t)):{}}function d1(t,r,n,C){var i=t.constructor;switch(r){case Q0:return f0(t);case K0:case W0:return new i(+t);case J:return W1(t,C);case z0:case e0:case o0:case c0:case d0:case xx:case tx:case rx:case nx:return Y1(t,C);case K:return J1(t,C,n);case Z0:case X0:return new i(t);case q0:return Z1(t);case W:return q1(t,C,n);case Y0:return X1(t)}}function xt(t,r){return r=r==null?V0:r,!!r&&(typeof t=="number"||Zx.test(t))&&t>-1&&t%1==0&&t<r}function tt(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function rt(t){return!!R0&&R0 in t}function ux(t){var r=t&&t.constructor,n=typeof r=="function"&&r.prototype||Z;return t===n}function I(t){if(t!=null){try{return ix.call(t)}catch(r){}try{return t+""}catch(r){}}return""}function nt(t){return A0(t,!0,!0)}function sx(t,r){return t===r||t!==t&&r!==r}function Ct(t){return Bt(t)&&T.call(t,"callee")&&(!B1.call(t,"callee")||q.call(t)==a0)}var E0=Array.isArray;function fx(t){return t!=null&&it(t.length)&&!Ex(t)}function Bt(t){return At(t)&&fx(t)}var Dt=i1||Ft;function Ex(t){var r=Q(t)?q.call(t):"";return r==F0||r==J0}function it(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=V0}function Q(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function At(t){return!!t&&typeof t=="object"}function l0(t){return fx(t)?G1(t):V1(t)}function at(){return[]}function Ft(){return!1}P.exports=nt});var yx=x0((It,gx)=>{var ut="[object Object]";function st(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(n){}return r}function ft(t,r){return function(n){return t(r(n))}}var Et=Function.prototype,px=Object.prototype,hx=Et.toString,lt=px.hasOwnProperty,pt=hx.call(Object),ht=px.toString,gt=ft(Object.getPrototypeOf,Object);function yt(t){return!!t&&typeof t=="object"}function bt(t){if(!yt(t)||ht.call(t)!=ut||st(t))return!1;var r=gt(t);if(r===null)return!0;var n=lt.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&hx.call(n)==pt}gx.exports=bt});var vx=x0((Nt,e)=>{function _t(){var t=0,r=1,n=2,C=3,i=4,E=5,g=6,a=7,D=8,s=9,u=10,B=11,y=12,b=13,_=14,o=15,g0=16,V=17,v=0,c=1,d=2,Ox=3,Tx=4;function Sx(x,A){return 55296<=x.charCodeAt(A)&&x.charCodeAt(A)<=56319&&56320<=x.charCodeAt(A+1)&&x.charCodeAt(A+1)<=57343}function y0(x,A){A===void 0&&(A=0);var l=x.charCodeAt(A);if(55296<=l&&l<=56319&&A<x.length-1){var F=l,f=x.charCodeAt(A+1);return 56320<=f&&f<=57343?(F-55296)*1024+(f-56320)+65536:F}if(56320<=l&&l<=57343&&A>=1){var F=x.charCodeAt(A-1),f=l;return 55296<=F&&F<=56319?(F-55296)*1024+(f-56320)+65536:f}return l}function jx(x,A,l){var F=[x].concat(A).concat([l]),f=F[F.length-2],h=l,v0=F.lastIndexOf(_);if(v0>1&&F.slice(1,v0).every(function(m){return m==C})&&[C,b,V].indexOf(x)==-1)return d;var _0=F.lastIndexOf(i);if(_0>0&&F.slice(1,_0).every(function(m){return m==i})&&[y,i].indexOf(f)==-1)return F.filter(function(m){return m==i}).length%2==1?Ox:Tx;if(f==t&&h==r)return v;if(f==n||f==t||f==r)return h==_&&A.every(function(m){return m==C})?d:c;if(h==n||h==t||h==r)return c;if(f==g&&(h==g||h==a||h==s||h==u))return v;if((f==s||f==a)&&(h==a||h==D))return v;if((f==u||f==D)&&h==D)return v;if(h==C||h==o)return v;if(h==E)return v;if(f==y)return v;var m0=F.indexOf(C)!=-1?F.lastIndexOf(C)-1:F.length-2;return[b,V].indexOf(F[m0])!=-1&&F.slice(m0+1,-1).every(function(m){return m==C})&&h==_||f==o&&[g0,V].indexOf(h)!=-1?v:A.indexOf(i)!=-1?d:f==i&&h==i?v:c}this.nextBreak=function(x,A){if(A===void 0&&(A=0),A<0)return 0;if(A>=x.length-1)return x.length;for(var l=b0(y0(x,A)),F=[],f=A+1;f<x.length;f++)if(!Sx(x,f-1)){var h=b0(y0(x,f));if(jx(l,F,h))return f;F.push(h)}return x.length},this.splitGraphemes=function(x){for(var A=[],l=0,F;(F=this.nextBreak(x,l))<x.length;)A.push(x.slice(l,F)),l=F;return l<x.length&&A.push(x.slice(l)),A},this.iterateGraphemes=function(x){var A=0,l={next:function(){var F,f;return(f=this.nextBreak(x,A))<x.length?(F=x.slice(A,f),A=f,{value:F,done:!1}):A<x.length?(F=x.slice(A),A=x.length,{value:F,done:!1}):{value:void 0,done:!0}}.bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(l[Symbol.iterator]=function(){return l}),l},this.countGraphemes=function(x){for(var A=0,l=0,F;(F=this.nextBreak(x,l))<x.length;)l=F,A++;return l<x.length&&A++,A};function b0(x){return 1536<=x&&x<=1541||x==1757||x==1807||x==2274||x==3406||x==69821||70082<=x&&x<=70083||x==72250||72326<=x&&x<=72329||x==73030?y:x==13?t:x==10?r:0<=x&&x<=9||11<=x&&x<=12||14<=x&&x<=31||127<=x&&x<=159||x==173||x==1564||x==6158||x==8203||8206<=x&&x<=8207||x==8232||x==8233||8234<=x&&x<=8238||8288<=x&&x<=8292||x==8293||8294<=x&&x<=8303||55296<=x&&x<=57343||x==65279||65520<=x&&x<=65528||65529<=x&&x<=65531||113824<=x&&x<=113827||119155<=x&&x<=119162||x==917504||x==917505||917506<=x&&x<=917535||917632<=x&&x<=917759||918e3<=x&&x<=921599?n:768<=x&&x<=879||1155<=x&&x<=1159||1160<=x&&x<=1161||1425<=x&&x<=1469||x==1471||1473<=x&&x<=1474||1476<=x&&x<=1477||x==1479||1552<=x&&x<=1562||1611<=x&&x<=1631||x==1648||1750<=x&&x<=1756||1759<=x&&x<=1764||1767<=x&&x<=1768||1770<=x&&x<=1773||x==1809||1840<=x&&x<=1866||1958<=x&&x<=1968||2027<=x&&x<=2035||2070<=x&&x<=2073||2075<=x&&x<=2083||2085<=x&&x<=2087||2089<=x&&x<=2093||2137<=x&&x<=2139||2260<=x&&x<=2273||2275<=x&&x<=2306||x==2362||x==2364||2369<=x&&x<=2376||x==2381||2385<=x&&x<=2391||2402<=x&&x<=2403||x==2433||x==2492||x==2494||2497<=x&&x<=2500||x==2509||x==2519||2530<=x&&x<=2531||2561<=x&&x<=2562||x==2620||2625<=x&&x<=2626||2631<=x&&x<=2632||2635<=x&&x<=2637||x==2641||2672<=x&&x<=2673||x==2677||2689<=x&&x<=2690||x==2748||2753<=x&&x<=2757||2759<=x&&x<=2760||x==2765||2786<=x&&x<=2787||2810<=x&&x<=2815||x==2817||x==2876||x==2878||x==2879||2881<=x&&x<=2884||x==2893||x==2902||x==2903||2914<=x&&x<=2915||x==2946||x==3006||x==3008||x==3021||x==3031||x==3072||3134<=x&&x<=3136||3142<=x&&x<=3144||3146<=x&&x<=3149||3157<=x&&x<=3158||3170<=x&&x<=3171||x==3201||x==3260||x==3263||x==3266||x==3270||3276<=x&&x<=3277||3285<=x&&x<=3286||3298<=x&&x<=3299||3328<=x&&x<=3329||3387<=x&&x<=3388||x==3390||3393<=x&&x<=3396||x==3405||x==3415||3426<=x&&x<=3427||x==3530||x==3535||3538<=x&&x<=3540||x==3542||x==3551||x==3633||3636<=x&&x<=3642||3655<=x&&x<=3662||x==3761||3764<=x&&x<=3769||3771<=x&&x<=3772||3784<=x&&x<=3789||3864<=x&&x<=3865||x==3893||x==3895||x==3897||3953<=x&&x<=3966||3968<=x&&x<=3972||3974<=x&&x<=3975||3981<=x&&x<=3991||3993<=x&&x<=4028||x==4038||4141<=x&&x<=4144||4146<=x&&x<=4151||4153<=x&&x<=4154||4157<=x&&x<=4158||4184<=x&&x<=4185||4190<=x&&x<=4192||4209<=x&&x<=4212||x==4226||4229<=x&&x<=4230||x==4237||x==4253||4957<=x&&x<=4959||5906<=x&&x<=5908||5938<=x&&x<=5940||5970<=x&&x<=5971||6002<=x&&x<=6003||6068<=x&&x<=6069||6071<=x&&x<=6077||x==6086||6089<=x&&x<=6099||x==6109||6155<=x&&x<=6157||6277<=x&&x<=6278||x==6313||6432<=x&&x<=6434||6439<=x&&x<=6440||x==6450||6457<=x&&x<=6459||6679<=x&&x<=6680||x==6683||x==6742||6744<=x&&x<=6750||x==6752||x==6754||6757<=x&&x<=6764||6771<=x&&x<=6780||x==6783||6832<=x&&x<=6845||x==6846||6912<=x&&x<=6915||x==6964||6966<=x&&x<=6970||x==6972||x==6978||7019<=x&&x<=7027||7040<=x&&x<=7041||7074<=x&&x<=7077||7080<=x&&x<=7081||7083<=x&&x<=7085||x==7142||7144<=x&&x<=7145||x==7149||7151<=x&&x<=7153||7212<=x&&x<=7219||7222<=x&&x<=7223||7376<=x&&x<=7378||7380<=x&&x<=7392||7394<=x&&x<=7400||x==7405||x==7412||7416<=x&&x<=7417||7616<=x&&x<=7673||7675<=x&&x<=7679||x==8204||8400<=x&&x<=8412||8413<=x&&x<=8416||x==8417||8418<=x&&x<=8420||8421<=x&&x<=8432||11503<=x&&x<=11505||x==11647||11744<=x&&x<=11775||12330<=x&&x<=12333||12334<=x&&x<=12335||12441<=x&&x<=12442||x==42607||42608<=x&&x<=42610||42612<=x&&x<=42621||42654<=x&&x<=42655||42736<=x&&x<=42737||x==43010||x==43014||x==43019||43045<=x&&x<=43046||43204<=x&&x<=43205||43232<=x&&x<=43249||43302<=x&&x<=43309||43335<=x&&x<=43345||43392<=x&&x<=43394||x==43443||43446<=x&&x<=43449||x==43452||x==43493||43561<=x&&x<=43566||43569<=x&&x<=43570||43573<=x&&x<=43574||x==43587||x==43596||x==43644||x==43696||43698<=x&&x<=43700||43703<=x&&x<=43704||43710<=x&&x<=43711||x==43713||43756<=x&&x<=43757||x==43766||x==44005||x==44008||x==44013||x==64286||65024<=x&&x<=65039||65056<=x&&x<=65071||65438<=x&&x<=65439||x==66045||x==66272||66422<=x&&x<=66426||68097<=x&&x<=68099||68101<=x&&x<=68102||68108<=x&&x<=68111||68152<=x&&x<=68154||x==68159||68325<=x&&x<=68326||x==69633||69688<=x&&x<=69702||69759<=x&&x<=69761||69811<=x&&x<=69814||69817<=x&&x<=69818||69888<=x&&x<=69890||69927<=x&&x<=69931||69933<=x&&x<=69940||x==70003||70016<=x&&x<=70017||70070<=x&&x<=70078||70090<=x&&x<=70092||70191<=x&&x<=70193||x==70196||70198<=x&&x<=70199||x==70206||x==70367||70371<=x&&x<=70378||70400<=x&&x<=70401||x==70460||x==70462||x==70464||x==70487||70502<=x&&x<=70508||70512<=x&&x<=70516||70712<=x&&x<=70719||70722<=x&&x<=70724||x==70726||x==70832||70835<=x&&x<=70840||x==70842||x==70845||70847<=x&&x<=70848||70850<=x&&x<=70851||x==71087||71090<=x&&x<=71093||71100<=x&&x<=71101||71103<=x&&x<=71104||71132<=x&&x<=71133||71219<=x&&x<=71226||x==71229||71231<=x&&x<=71232||x==71339||x==71341||71344<=x&&x<=71349||x==71351||71453<=x&&x<=71455||71458<=x&&x<=71461||71463<=x&&x<=71467||72193<=x&&x<=72198||72201<=x&&x<=72202||72243<=x&&x<=72248||72251<=x&&x<=72254||x==72263||72273<=x&&x<=72278||72281<=x&&x<=72283||72330<=x&&x<=72342||72344<=x&&x<=72345||72752<=x&&x<=72758||72760<=x&&x<=72765||x==72767||72850<=x&&x<=72871||72874<=x&&x<=72880||72882<=x&&x<=72883||72885<=x&&x<=72886||73009<=x&&x<=73014||x==73018||73020<=x&&x<=73021||73023<=x&&x<=73029||x==73031||92912<=x&&x<=92916||92976<=x&&x<=92982||94095<=x&&x<=94098||113821<=x&&x<=113822||x==119141||119143<=x&&x<=119145||119150<=x&&x<=119154||119163<=x&&x<=119170||119173<=x&&x<=119179||119210<=x&&x<=119213||119362<=x&&x<=119364||121344<=x&&x<=121398||121403<=x&&x<=121452||x==121461||x==121476||121499<=x&&x<=121503||121505<=x&&x<=121519||122880<=x&&x<=122886||122888<=x&&x<=122904||122907<=x&&x<=122913||122915<=x&&x<=122916||122918<=x&&x<=122922||125136<=x&&x<=125142||125252<=x&&x<=125258||917536<=x&&x<=917631||917760<=x&&x<=917999?C:127462<=x&&x<=127487?i:x==2307||x==2363||2366<=x&&x<=2368||2377<=x&&x<=2380||2382<=x&&x<=2383||2434<=x&&x<=2435||2495<=x&&x<=2496||2503<=x&&x<=2504||2507<=x&&x<=2508||x==2563||2622<=x&&x<=2624||x==2691||2750<=x&&x<=2752||x==2761||2763<=x&&x<=2764||2818<=x&&x<=2819||x==2880||2887<=x&&x<=2888||2891<=x&&x<=2892||x==3007||3009<=x&&x<=3010||3014<=x&&x<=3016||3018<=x&&x<=3020||3073<=x&&x<=3075||3137<=x&&x<=3140||3202<=x&&x<=3203||x==3262||3264<=x&&x<=3265||3267<=x&&x<=3268||3271<=x&&x<=3272||3274<=x&&x<=3275||3330<=x&&x<=3331||3391<=x&&x<=3392||3398<=x&&x<=3400||3402<=x&&x<=3404||3458<=x&&x<=3459||3536<=x&&x<=3537||3544<=x&&x<=3550||3570<=x&&x<=3571||x==3635||x==3763||3902<=x&&x<=3903||x==3967||x==4145||4155<=x&&x<=4156||4182<=x&&x<=4183||x==4228||x==6070||6078<=x&&x<=6085||6087<=x&&x<=6088||6435<=x&&x<=6438||6441<=x&&x<=6443||6448<=x&&x<=6449||6451<=x&&x<=6456||6681<=x&&x<=6682||x==6741||x==6743||6765<=x&&x<=6770||x==6916||x==6965||x==6971||6973<=x&&x<=6977||6979<=x&&x<=6980||x==7042||x==7073||7078<=x&&x<=7079||x==7082||x==7143||7146<=x&&x<=7148||x==7150||7154<=x&&x<=7155||7204<=x&&x<=7211||7220<=x&&x<=7221||x==7393||7410<=x&&x<=7411||x==7415||43043<=x&&x<=43044||x==43047||43136<=x&&x<=43137||43188<=x&&x<=43203||43346<=x&&x<=43347||x==43395||43444<=x&&x<=43445||43450<=x&&x<=43451||43453<=x&&x<=43456||43567<=x&&x<=43568||43571<=x&&x<=43572||x==43597||x==43755||43758<=x&&x<=43759||x==43765||44003<=x&&x<=44004||44006<=x&&x<=44007||44009<=x&&x<=44010||x==44012||x==69632||x==69634||x==69762||69808<=x&&x<=69810||69815<=x&&x<=69816||x==69932||x==70018||70067<=x&&x<=70069||70079<=x&&x<=70080||70188<=x&&x<=70190||70194<=x&&x<=70195||x==70197||70368<=x&&x<=70370||70402<=x&&x<=70403||x==70463||70465<=x&&x<=70468||70471<=x&&x<=70472||70475<=x&&x<=70477||70498<=x&&x<=70499||70709<=x&&x<=70711||70720<=x&&x<=70721||x==70725||70833<=x&&x<=70834||x==70841||70843<=x&&x<=70844||x==70846||x==70849||71088<=x&&x<=71089||71096<=x&&x<=71099||x==71102||71216<=x&&x<=71218||71227<=x&&x<=71228||x==71230||x==71340||71342<=x&&x<=71343||x==71350||71456<=x&&x<=71457||x==71462||72199<=x&&x<=72200||x==72249||72279<=x&&x<=72280||x==72343||x==72751||x==72766||x==72873||x==72881||x==72884||94033<=x&&x<=94078||x==119142||x==119149?E:4352<=x&&x<=4447||43360<=x&&x<=43388?g:4448<=x&&x<=4519||55216<=x&&x<=55238?a:4520<=x&&x<=4607||55243<=x&&x<=55291?D:x==44032||x==44060||x==44088||x==44116||x==44144||x==44172||x==44200||x==44228||x==44256||x==44284||x==44312||x==44340||x==44368||x==44396||x==44424||x==44452||x==44480||x==44508||x==44536||x==44564||x==44592||x==44620||x==44648||x==44676||x==44704||x==44732||x==44760||x==44788||x==44816||x==44844||x==44872||x==44900||x==44928||x==44956||x==44984||x==45012||x==45040||x==45068||x==45096||x==45124||x==45152||x==45180||x==45208||x==45236||x==45264||x==45292||x==45320||x==45348||x==45376||x==45404||x==45432||x==45460||x==45488||x==45516||x==45544||x==45572||x==45600||x==45628||x==45656||x==45684||x==45712||x==45740||x==45768||x==45796||x==45824||x==45852||x==45880||x==45908||x==45936||x==45964||x==45992||x==46020||x==46048||x==46076||x==46104||x==46132||x==46160||x==46188||x==46216||x==46244||x==46272||x==46300||x==46328||x==46356||x==46384||x==46412||x==46440||x==46468||x==46496||x==46524||x==46552||x==46580||x==46608||x==46636||x==46664||x==46692||x==46720||x==46748||x==46776||x==46804||x==46832||x==46860||x==46888||x==46916||x==46944||x==46972||x==47e3||x==47028||x==47056||x==47084||x==47112||x==47140||x==47168||x==47196||x==47224||x==47252||x==47280||x==47308||x==47336||x==47364||x==47392||x==47420||x==47448||x==47476||x==47504||x==47532||x==47560||x==47588||x==47616||x==47644||x==47672||x==47700||x==47728||x==47756||x==47784||x==47812||x==47840||x==47868||x==47896||x==47924||x==47952||x==47980||x==48008||x==48036||x==48064||x==48092||x==48120||x==48148||x==48176||x==48204||x==48232||x==48260||x==48288||x==48316||x==48344||x==48372||x==48400||x==48428||x==48456||x==48484||x==48512||x==48540||x==48568||x==48596||x==48624||x==48652||x==48680||x==48708||x==48736||x==48764||x==48792||x==48820||x==48848||x==48876||x==48904||x==48932||x==48960||x==48988||x==49016||x==49044||x==49072||x==49100||x==49128||x==49156||x==49184||x==49212||x==49240||x==49268||x==49296||x==49324||x==49352||x==49380||x==49408||x==49436||x==49464||x==49492||x==49520||x==49548||x==49576||x==49604||x==49632||x==49660||x==49688||x==49716||x==49744||x==49772||x==49800||x==49828||x==49856||x==49884||x==49912||x==49940||x==49968||x==49996||x==50024||x==50052||x==50080||x==50108||x==50136||x==50164||x==50192||x==50220||x==50248||x==50276||x==50304||x==50332||x==50360||x==50388||x==50416||x==50444||x==50472||x==50500||x==50528||x==50556||x==50584||x==50612||x==50640||x==50668||x==50696||x==50724||x==50752||x==50780||x==50808||x==50836||x==50864||x==50892||x==50920||x==50948||x==50976||x==51004||x==51032||x==51060||x==51088||x==51116||x==51144||x==51172||x==51200||x==51228||x==51256||x==51284||x==51312||x==51340||x==51368||x==51396||x==51424||x==51452||x==51480||x==51508||x==51536||x==51564||x==51592||x==51620||x==51648||x==51676||x==51704||x==51732||x==51760||x==51788||x==51816||x==51844||x==51872||x==51900||x==51928||x==51956||x==51984||x==52012||x==52040||x==52068||x==52096||x==52124||x==52152||x==52180||x==52208||x==52236||x==52264||x==52292||x==52320||x==52348||x==52376||x==52404||x==52432||x==52460||x==52488||x==52516||x==52544||x==52572||x==52600||x==52628||x==52656||x==52684||x==52712||x==52740||x==52768||x==52796||x==52824||x==52852||x==52880||x==52908||x==52936||x==52964||x==52992||x==53020||x==53048||x==53076||x==53104||x==53132||x==53160||x==53188||x==53216||x==53244||x==53272||x==53300||x==53328||x==53356||x==53384||x==53412||x==53440||x==53468||x==53496||x==53524||x==53552||x==53580||x==53608||x==53636||x==53664||x==53692||x==53720||x==53748||x==53776||x==53804||x==53832||x==53860||x==53888||x==53916||x==53944||x==53972||x==54e3||x==54028||x==54056||x==54084||x==54112||x==54140||x==54168||x==54196||x==54224||x==54252||x==54280||x==54308||x==54336||x==54364||x==54392||x==54420||x==54448||x==54476||x==54504||x==54532||x==54560||x==54588||x==54616||x==54644||x==54672||x==54700||x==54728||x==54756||x==54784||x==54812||x==54840||x==54868||x==54896||x==54924||x==54952||x==54980||x==55008||x==55036||x==55064||x==55092||x==55120||x==55148||x==55176?s:44033<=x&&x<=44059||44061<=x&&x<=44087||44089<=x&&x<=44115||44117<=x&&x<=44143||44145<=x&&x<=44171||44173<=x&&x<=44199||44201<=x&&x<=44227||44229<=x&&x<=44255||44257<=x&&x<=44283||44285<=x&&x<=44311||44313<=x&&x<=44339||44341<=x&&x<=44367||44369<=x&&x<=44395||44397<=x&&x<=44423||44425<=x&&x<=44451||44453<=x&&x<=44479||44481<=x&&x<=44507||44509<=x&&x<=44535||44537<=x&&x<=44563||44565<=x&&x<=44591||44593<=x&&x<=44619||44621<=x&&x<=44647||44649<=x&&x<=44675||44677<=x&&x<=44703||44705<=x&&x<=44731||44733<=x&&x<=44759||44761<=x&&x<=44787||44789<=x&&x<=44815||44817<=x&&x<=44843||44845<=x&&x<=44871||44873<=x&&x<=44899||44901<=x&&x<=44927||44929<=x&&x<=44955||44957<=x&&x<=44983||44985<=x&&x<=45011||45013<=x&&x<=45039||45041<=x&&x<=45067||45069<=x&&x<=45095||45097<=x&&x<=45123||45125<=x&&x<=45151||45153<=x&&x<=45179||45181<=x&&x<=45207||45209<=x&&x<=45235||45237<=x&&x<=45263||45265<=x&&x<=45291||45293<=x&&x<=45319||45321<=x&&x<=45347||45349<=x&&x<=45375||45377<=x&&x<=45403||45405<=x&&x<=45431||45433<=x&&x<=45459||45461<=x&&x<=45487||45489<=x&&x<=45515||45517<=x&&x<=45543||45545<=x&&x<=45571||45573<=x&&x<=45599||45601<=x&&x<=45627||45629<=x&&x<=45655||45657<=x&&x<=45683||45685<=x&&x<=45711||45713<=x&&x<=45739||45741<=x&&x<=45767||45769<=x&&x<=45795||45797<=x&&x<=45823||45825<=x&&x<=45851||45853<=x&&x<=45879||45881<=x&&x<=45907||45909<=x&&x<=45935||45937<=x&&x<=45963||45965<=x&&x<=45991||45993<=x&&x<=46019||46021<=x&&x<=46047||46049<=x&&x<=46075||46077<=x&&x<=46103||46105<=x&&x<=46131||46133<=x&&x<=46159||46161<=x&&x<=46187||46189<=x&&x<=46215||46217<=x&&x<=46243||46245<=x&&x<=46271||46273<=x&&x<=46299||46301<=x&&x<=46327||46329<=x&&x<=46355||46357<=x&&x<=46383||46385<=x&&x<=46411||46413<=x&&x<=46439||46441<=x&&x<=46467||46469<=x&&x<=46495||46497<=x&&x<=46523||46525<=x&&x<=46551||46553<=x&&x<=46579||46581<=x&&x<=46607||46609<=x&&x<=46635||46637<=x&&x<=46663||46665<=x&&x<=46691||46693<=x&&x<=46719||46721<=x&&x<=46747||46749<=x&&x<=46775||46777<=x&&x<=46803||46805<=x&&x<=46831||46833<=x&&x<=46859||46861<=x&&x<=46887||46889<=x&&x<=46915||46917<=x&&x<=46943||46945<=x&&x<=46971||46973<=x&&x<=46999||47001<=x&&x<=47027||47029<=x&&x<=47055||47057<=x&&x<=47083||47085<=x&&x<=47111||47113<=x&&x<=47139||47141<=x&&x<=47167||47169<=x&&x<=47195||47197<=x&&x<=47223||47225<=x&&x<=47251||47253<=x&&x<=47279||47281<=x&&x<=47307||47309<=x&&x<=47335||47337<=x&&x<=47363||47365<=x&&x<=47391||47393<=x&&x<=47419||47421<=x&&x<=47447||47449<=x&&x<=47475||47477<=x&&x<=47503||47505<=x&&x<=47531||47533<=x&&x<=47559||47561<=x&&x<=47587||47589<=x&&x<=47615||47617<=x&&x<=47643||47645<=x&&x<=47671||47673<=x&&x<=47699||47701<=x&&x<=47727||47729<=x&&x<=47755||47757<=x&&x<=47783||47785<=x&&x<=47811||47813<=x&&x<=47839||47841<=x&&x<=47867||47869<=x&&x<=47895||47897<=x&&x<=47923||47925<=x&&x<=47951||47953<=x&&x<=47979||47981<=x&&x<=48007||48009<=x&&x<=48035||48037<=x&&x<=48063||48065<=x&&x<=48091||48093<=x&&x<=48119||48121<=x&&x<=48147||48149<=x&&x<=48175||48177<=x&&x<=48203||48205<=x&&x<=48231||48233<=x&&x<=48259||48261<=x&&x<=48287||48289<=x&&x<=48315||48317<=x&&x<=48343||48345<=x&&x<=48371||48373<=x&&x<=48399||48401<=x&&x<=48427||48429<=x&&x<=48455||48457<=x&&x<=48483||48485<=x&&x<=48511||48513<=x&&x<=48539||48541<=x&&x<=48567||48569<=x&&x<=48595||48597<=x&&x<=48623||48625<=x&&x<=48651||48653<=x&&x<=48679||48681<=x&&x<=48707||48709<=x&&x<=48735||48737<=x&&x<=48763||48765<=x&&x<=48791||48793<=x&&x<=48819||48821<=x&&x<=48847||48849<=x&&x<=48875||48877<=x&&x<=48903||48905<=x&&x<=48931||48933<=x&&x<=48959||48961<=x&&x<=48987||48989<=x&&x<=49015||49017<=x&&x<=49043||49045<=x&&x<=49071||49073<=x&&x<=49099||49101<=x&&x<=49127||49129<=x&&x<=49155||49157<=x&&x<=49183||49185<=x&&x<=49211||49213<=x&&x<=49239||49241<=x&&x<=49267||49269<=x&&x<=49295||49297<=x&&x<=49323||49325<=x&&x<=49351||49353<=x&&x<=49379||49381<=x&&x<=49407||49409<=x&&x<=49435||49437<=x&&x<=49463||49465<=x&&x<=49491||49493<=x&&x<=49519||49521<=x&&x<=49547||49549<=x&&x<=49575||49577<=x&&x<=49603||49605<=x&&x<=49631||49633<=x&&x<=49659||49661<=x&&x<=49687||49689<=x&&x<=49715||49717<=x&&x<=49743||49745<=x&&x<=49771||49773<=x&&x<=49799||49801<=x&&x<=49827||49829<=x&&x<=49855||49857<=x&&x<=49883||49885<=x&&x<=49911||49913<=x&&x<=49939||49941<=x&&x<=49967||49969<=x&&x<=49995||49997<=x&&x<=50023||50025<=x&&x<=50051||50053<=x&&x<=50079||50081<=x&&x<=50107||50109<=x&&x<=50135||50137<=x&&x<=50163||50165<=x&&x<=50191||50193<=x&&x<=50219||50221<=x&&x<=50247||50249<=x&&x<=50275||50277<=x&&x<=50303||50305<=x&&x<=50331||50333<=x&&x<=50359||50361<=x&&x<=50387||50389<=x&&x<=50415||50417<=x&&x<=50443||50445<=x&&x<=50471||50473<=x&&x<=50499||50501<=x&&x<=50527||50529<=x&&x<=50555||50557<=x&&x<=50583||50585<=x&&x<=50611||50613<=x&&x<=50639||50641<=x&&x<=50667||50669<=x&&x<=50695||50697<=x&&x<=50723||50725<=x&&x<=50751||50753<=x&&x<=50779||50781<=x&&x<=50807||50809<=x&&x<=50835||50837<=x&&x<=50863||50865<=x&&x<=50891||50893<=x&&x<=50919||50921<=x&&x<=50947||50949<=x&&x<=50975||50977<=x&&x<=51003||51005<=x&&x<=51031||51033<=x&&x<=51059||51061<=x&&x<=51087||51089<=x&&x<=51115||51117<=x&&x<=51143||51145<=x&&x<=51171||51173<=x&&x<=51199||51201<=x&&x<=51227||51229<=x&&x<=51255||51257<=x&&x<=51283||51285<=x&&x<=51311||51313<=x&&x<=51339||51341<=x&&x<=51367||51369<=x&&x<=51395||51397<=x&&x<=51423||51425<=x&&x<=51451||51453<=x&&x<=51479||51481<=x&&x<=51507||51509<=x&&x<=51535||51537<=x&&x<=51563||51565<=x&&x<=51591||51593<=x&&x<=51619||51621<=x&&x<=51647||51649<=x&&x<=51675||51677<=x&&x<=51703||51705<=x&&x<=51731||51733<=x&&x<=51759||51761<=x&&x<=51787||51789<=x&&x<=51815||51817<=x&&x<=51843||51845<=x&&x<=51871||51873<=x&&x<=51899||51901<=x&&x<=51927||51929<=x&&x<=51955||51957<=x&&x<=51983||51985<=x&&x<=52011||52013<=x&&x<=52039||52041<=x&&x<=52067||52069<=x&&x<=52095||52097<=x&&x<=52123||52125<=x&&x<=52151||52153<=x&&x<=52179||52181<=x&&x<=52207||52209<=x&&x<=52235||52237<=x&&x<=52263||52265<=x&&x<=52291||52293<=x&&x<=52319||52321<=x&&x<=52347||52349<=x&&x<=52375||52377<=x&&x<=52403||52405<=x&&x<=52431||52433<=x&&x<=52459||52461<=x&&x<=52487||52489<=x&&x<=52515||52517<=x&&x<=52543||52545<=x&&x<=52571||52573<=x&&x<=52599||52601<=x&&x<=52627||52629<=x&&x<=52655||52657<=x&&x<=52683||52685<=x&&x<=52711||52713<=x&&x<=52739||52741<=x&&x<=52767||52769<=x&&x<=52795||52797<=x&&x<=52823||52825<=x&&x<=52851||52853<=x&&x<=52879||52881<=x&&x<=52907||52909<=x&&x<=52935||52937<=x&&x<=52963||52965<=x&&x<=52991||52993<=x&&x<=53019||53021<=x&&x<=53047||53049<=x&&x<=53075||53077<=x&&x<=53103||53105<=x&&x<=53131||53133<=x&&x<=53159||53161<=x&&x<=53187||53189<=x&&x<=53215||53217<=x&&x<=53243||53245<=x&&x<=53271||53273<=x&&x<=53299||53301<=x&&x<=53327||53329<=x&&x<=53355||53357<=x&&x<=53383||53385<=x&&x<=53411||53413<=x&&x<=53439||53441<=x&&x<=53467||53469<=x&&x<=53495||53497<=x&&x<=53523||53525<=x&&x<=53551||53553<=x&&x<=53579||53581<=x&&x<=53607||53609<=x&&x<=53635||53637<=x&&x<=53663||53665<=x&&x<=53691||53693<=x&&x<=53719||53721<=x&&x<=53747||53749<=x&&x<=53775||53777<=x&&x<=53803||53805<=x&&x<=53831||53833<=x&&x<=53859||53861<=x&&x<=53887||53889<=x&&x<=53915||53917<=x&&x<=53943||53945<=x&&x<=53971||53973<=x&&x<=53999||54001<=x&&x<=54027||54029<=x&&x<=54055||54057<=x&&x<=54083||54085<=x&&x<=54111||54113<=x&&x<=54139||54141<=x&&x<=54167||54169<=x&&x<=54195||54197<=x&&x<=54223||54225<=x&&x<=54251||54253<=x&&x<=54279||54281<=x&&x<=54307||54309<=x&&x<=54335||54337<=x&&x<=54363||54365<=x&&x<=54391||54393<=x&&x<=54419||54421<=x&&x<=54447||54449<=x&&x<=54475||54477<=x&&x<=54503||54505<=x&&x<=54531||54533<=x&&x<=54559||54561<=x&&x<=54587||54589<=x&&x<=54615||54617<=x&&x<=54643||54645<=x&&x<=54671||54673<=x&&x<=54699||54701<=x&&x<=54727||54729<=x&&x<=54755||54757<=x&&x<=54783||54785<=x&&x<=54811||54813<=x&&x<=54839||54841<=x&&x<=54867||54869<=x&&x<=54895||54897<=x&&x<=54923||54925<=x&&x<=54951||54953<=x&&x<=54979||54981<=x&&x<=55007||55009<=x&&x<=55035||55037<=x&&x<=55063||55065<=x&&x<=55091||55093<=x&&x<=55119||55121<=x&&x<=55147||55149<=x&&x<=55175||55177<=x&&x<=55203?u:x==9757||x==9977||9994<=x&&x<=9997||x==127877||127938<=x&&x<=127940||x==127943||127946<=x&&x<=127948||128066<=x&&x<=128067||128070<=x&&x<=128080||x==128110||128112<=x&&x<=128120||x==128124||128129<=x&&x<=128131||128133<=x&&x<=128135||x==128170||128372<=x&&x<=128373||x==128378||x==128400||128405<=x&&x<=128406||128581<=x&&x<=128583||128587<=x&&x<=128591||x==128675||128692<=x&&x<=128694||x==128704||x==128716||129304<=x&&x<=129308||129310<=x&&x<=129311||x==129318||129328<=x&&x<=129337||129341<=x&&x<=129342||129489<=x&&x<=129501?b:127995<=x&&x<=127999?_:x==8205?o:x==9792||x==9794||9877<=x&&x<=9878||x==9992||x==10084||x==127752||x==127806||x==127859||x==127891||x==127908||x==127912||x==127979||x==127981||x==128139||128187<=x&&x<=128188||x==128295||x==128300||x==128488||x==128640||x==128658?g0:128102<=x&&x<=128105?V:B}return this}typeof e<"u"&&e.exports&&(e.exports=_t)});var St={};kx(St,{nativeToUnicode:()=>Ot,unicodeToNative:()=>Tt,version:()=>wt});var z=t0(lx(),1),bx=t0(yx(),1);function vt(t){if(t.includes(".")){let r=t.lastIndexOf(".");if(!t.slice(0,r).includes("."))return t.slice(0,r);for(let n=r-1;n--;)if(t[n]===".")return t.slice(n+1,r)}return null}var p0=vt;function h0(t,r){let n={now:!1};function C(i,E,g,a){let D=(0,z.default)(i),s,u=$({depth:-1,path:""},g);if(u.depth+=1,Array.isArray(D))for(let B=0,y=D.length;B<y&&!a.now;B++){let b=u.path?`${u.path}.${B}`:`${B}`;D[B]!==void 0?(u.parent=(0,z.default)(D),u.parentType="array",u.parentKey=p0(b),s=C(E(D[B],void 0,k($({},u),{path:b}),a),E,k($({},u),{path:b}),a),Number.isNaN(s)&&B<D.length?(D.splice(B,1),B-=1):D[B]=s):D.splice(B,1)}else if((0,bx.default)(D))for(let B in D){if(a.now&&B!=null)break;let y=u.path?`${u.path}.${B}`:B;u.depth===0&&B!=null&&(u.topmostKey=B),u.parent=(0,z.default)(D),u.parentType="object",u.parentKey=p0(y),s=C(E(B,D[B],k($({},u),{path:y}),a),E,k($({},u),{path:y}),a),Number.isNaN(s)?delete D[B]:D[B]=s}return D}return C(t,r,{},n)}var mx=t0(vx(),1);var _x="5.1.0";var wt=_x;function wx(t,r,n){function C(D){return!(!["string","number"].includes(typeof D)||typeof D=="string"&&!/^\d*$/.test(D)||typeof D=="number"&&(!Number.isInteger(D)||D<0))}function i(D,s){let u=0,B=0;for(let y=0,b=D.length;y<b;y++){if(B+=D[y].length,s>=u&&s<B)return y;u+=D[y].length}throw new Error(`string-convert-indexes: [THROW_ID_05] the "indexes" value, ${n}, is not covered by graphemes length!`)}function E(D,s){if(s>=D.length)throw new Error(`string-convert-indexes: [THROW_ID_06] the index to convert, ${s}, is not covered by graphemes length!`);return D.slice(0,s).join("").length}if(typeof r!="string"||!r)throw new TypeError(`string-convert-indexes: [THROW_ID_01] the first input argument, input string, must be a non-zero-length string! Currently it's: ${typeof r}, equal to:
|
|
10
|
+
"use strict";var stringConvertIndexes=(()=>{var Ix=Object.create;var M=Object.defineProperty,$x=Object.defineProperties,Px=Object.getOwnPropertyDescriptor,Rx=Object.getOwnPropertyDescriptors,Nx=Object.getOwnPropertyNames,w0=Object.getOwnPropertySymbols,Gx=Object.getPrototypeOf,T0=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable;var O0=(t,r,n)=>r in t?M(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,$=(t,r)=>{for(var n in r||(r={}))T0.call(r,n)&&O0(t,n,r[n]);if(w0)for(var n of w0(r))Mx.call(r,n)&&O0(t,n,r[n]);return t},k=(t,r)=>$x(t,Rx(r));var x0=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),kx=(t,r)=>{for(var n in r)M(t,n,{get:r[n],enumerable:!0})},S0=(t,r,n,C)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Nx(r))!T0.call(t,i)&&i!==n&&M(t,i,{get:()=>r[i],enumerable:!(C=Px(r,i))||C.enumerable});return t};var t0=(t,r,n)=>(n=t!=null?Ix(Gx(t)):{},S0(r||!t||!t.__esModule?M(n,"default",{value:t,enumerable:!0}):n,t)),Hx=t=>S0(M({},"__esModule",{value:!0}),t);var lx=x0((H,P)=>{var Lx=200,U0="__lodash_hash_undefined__",V0=9007199254740991,a0="[object Arguments]",Ux="[object Array]",K0="[object Boolean]",W0="[object Date]",Vx="[object Error]",F0="[object Function]",J0="[object GeneratorFunction]",K="[object Map]",Z0="[object Number]",u0="[object Object]",j0="[object Promise]",q0="[object RegExp]",W="[object Set]",X0="[object String]",Y0="[object Symbol]",n0="[object WeakMap]",Q0="[object ArrayBuffer]",J="[object DataView]",z0="[object Float32Array]",e0="[object Float64Array]",o0="[object Int8Array]",c0="[object Int16Array]",d0="[object Int32Array]",xx="[object Uint8Array]",tx="[object Uint8ClampedArray]",rx="[object Uint16Array]",nx="[object Uint32Array]",Kx=/[\\^$.*+?()[\]{}|]/g,Wx=/\w*$/,Jx=/^\[object .+?Constructor\]$/,Zx=/^(?:0|[1-9]\d*)$/,p={};p[a0]=p[Ux]=p[Q0]=p[J]=p[K0]=p[W0]=p[z0]=p[e0]=p[o0]=p[c0]=p[d0]=p[K]=p[Z0]=p[u0]=p[q0]=p[W]=p[X0]=p[Y0]=p[xx]=p[tx]=p[rx]=p[nx]=!0;p[Vx]=p[F0]=p[n0]=!1;var qx=typeof global=="object"&&global&&global.Object===Object&&global,Xx=typeof self=="object"&&self&&self.Object===Object&&self,w=qx||Xx||Function("return this")(),Cx=typeof H=="object"&&H&&!H.nodeType&&H,I0=Cx&&typeof P=="object"&&P&&!P.nodeType&&P,Yx=I0&&I0.exports===Cx;function Qx(t,r){return t.set(r[0],r[1]),t}function zx(t,r){return t.add(r),t}function ex(t,r){for(var n=-1,C=t?t.length:0;++n<C&&r(t[n],n,t)!==!1;);return t}function ox(t,r){for(var n=-1,C=r.length,i=t.length;++n<C;)t[i+n]=r[n];return t}function Bx(t,r,n,C){var i=-1,E=t?t.length:0;for(C&&E&&(n=t[++i]);++i<E;)n=r(n,t[i],i,t);return n}function cx(t,r){for(var n=-1,C=Array(t);++n<t;)C[n]=r(n);return C}function dx(t,r){return t==null?void 0:t[r]}function Dx(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(n){}return r}function $0(t){var r=-1,n=Array(t.size);return t.forEach(function(C,i){n[++r]=[i,C]}),n}function s0(t,r){return function(n){return t(r(n))}}function P0(t){var r=-1,n=Array(t.size);return t.forEach(function(C){n[++r]=C}),n}var x1=Array.prototype,t1=Function.prototype,Z=Object.prototype,r0=w["__core-js_shared__"],R0=function(){var t=/[^.]+$/.exec(r0&&r0.keys&&r0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ix=t1.toString,T=Z.hasOwnProperty,q=Z.toString,r1=RegExp("^"+ix.call(T).replace(Kx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N0=Yx?w.Buffer:void 0,G0=w.Symbol,M0=w.Uint8Array,n1=s0(Object.getPrototypeOf,Object),C1=Object.create,B1=Z.propertyIsEnumerable,D1=x1.splice,k0=Object.getOwnPropertySymbols,i1=N0?N0.isBuffer:void 0,A1=s0(Object.keys,Object),C0=G(w,"DataView"),L=G(w,"Map"),B0=G(w,"Promise"),D0=G(w,"Set"),i0=G(w,"WeakMap"),U=G(Object,"create"),a1=I(C0),F1=I(L),u1=I(B0),s1=I(D0),f1=I(i0),H0=G0?G0.prototype:void 0,L0=H0?H0.valueOf:void 0;function j(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function E1(){this.__data__=U?U(null):{}}function l1(t){return this.has(t)&&delete this.__data__[t]}function p1(t){var r=this.__data__;if(U){var n=r[t];return n===U0?void 0:n}return T.call(r,t)?r[t]:void 0}function h1(t){var r=this.__data__;return U?r[t]!==void 0:T.call(r,t)}function g1(t,r){var n=this.__data__;return n[t]=U&&r===void 0?U0:r,this}j.prototype.clear=E1;j.prototype.delete=l1;j.prototype.get=p1;j.prototype.has=h1;j.prototype.set=g1;function O(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function y1(){this.__data__=[]}function b1(t){var r=this.__data__,n=X(r,t);if(n<0)return!1;var C=r.length-1;return n==C?r.pop():D1.call(r,n,1),!0}function v1(t){var r=this.__data__,n=X(r,t);return n<0?void 0:r[n][1]}function _1(t){return X(this.__data__,t)>-1}function m1(t,r){var n=this.__data__,C=X(n,t);return C<0?n.push([t,r]):n[C][1]=r,this}O.prototype.clear=y1;O.prototype.delete=b1;O.prototype.get=v1;O.prototype.has=_1;O.prototype.set=m1;function R(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var C=t[r];this.set(C[0],C[1])}}function w1(){this.__data__={hash:new j,map:new(L||O),string:new j}}function O1(t){return Y(this,t).delete(t)}function T1(t){return Y(this,t).get(t)}function S1(t){return Y(this,t).has(t)}function j1(t,r){return Y(this,t).set(t,r),this}R.prototype.clear=w1;R.prototype.delete=O1;R.prototype.get=T1;R.prototype.has=S1;R.prototype.set=j1;function N(t){this.__data__=new O(t)}function I1(){this.__data__=new O}function $1(t){return this.__data__.delete(t)}function P1(t){return this.__data__.get(t)}function R1(t){return this.__data__.has(t)}function N1(t,r){var n=this.__data__;if(n instanceof O){var C=n.__data__;if(!L||C.length<Lx-1)return C.push([t,r]),this;n=this.__data__=new R(C)}return n.set(t,r),this}N.prototype.clear=I1;N.prototype.delete=$1;N.prototype.get=P1;N.prototype.has=R1;N.prototype.set=N1;function G1(t,r){var n=E0(t)||Ct(t)?cx(t.length,String):[],C=n.length,i=!!C;for(var E in t)(r||T.call(t,E))&&!(i&&(E=="length"||xt(E,C)))&&n.push(E);return n}function Ax(t,r,n){var C=t[r];(!(T.call(t,r)&&sx(C,n))||n===void 0&&!(r in t))&&(t[r]=n)}function X(t,r){for(var n=t.length;n--;)if(sx(t[n][0],r))return n;return-1}function M1(t,r){return t&&ax(r,l0(r),t)}function A0(t,r,n,C,i,E,g){var a;if(C&&(a=E?C(t,i,E,g):C(t)),a!==void 0)return a;if(!Q(t))return t;var D=E0(t);if(D){if(a=o1(t),!r)return Q1(t,a)}else{var s=S(t),u=s==F0||s==J0;if(Dt(t))return K1(t,r);if(s==u0||s==a0||u&&!E){if(Dx(t))return E?t:{};if(a=c1(u?{}:t),!r)return z1(t,M1(a,t))}else{if(!p[s])return E?t:{};a=d1(t,s,A0,r)}}g||(g=new N);var B=g.get(t);if(B)return B;if(g.set(t,a),!D)var y=n?e1(t):l0(t);return ex(y||t,function(b,_){y&&(_=b,b=t[_]),Ax(a,_,A0(b,r,n,C,_,t,g))}),a}function k1(t){return Q(t)?C1(t):{}}function H1(t,r,n){var C=r(t);return E0(t)?C:ox(C,n(t))}function L1(t){return q.call(t)}function U1(t){if(!Q(t)||rt(t))return!1;var r=Ex(t)||Dx(t)?r1:Jx;return r.test(I(t))}function V1(t){if(!ux(t))return A1(t);var r=[];for(var n in Object(t))T.call(t,n)&&n!="constructor"&&r.push(n);return r}function K1(t,r){if(r)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function f0(t){var r=new t.constructor(t.byteLength);return new M0(r).set(new M0(t)),r}function W1(t,r){var n=r?f0(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function J1(t,r,n){var C=r?n($0(t),!0):$0(t);return Bx(C,Qx,new t.constructor)}function Z1(t){var r=new t.constructor(t.source,Wx.exec(t));return r.lastIndex=t.lastIndex,r}function q1(t,r,n){var C=r?n(P0(t),!0):P0(t);return Bx(C,zx,new t.constructor)}function X1(t){return L0?Object(L0.call(t)):{}}function Y1(t,r){var n=r?f0(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Q1(t,r){var n=-1,C=t.length;for(r||(r=Array(C));++n<C;)r[n]=t[n];return r}function ax(t,r,n,C){n||(n={});for(var i=-1,E=r.length;++i<E;){var g=r[i],a=C?C(n[g],t[g],g,n,t):void 0;Ax(n,g,a===void 0?t[g]:a)}return n}function z1(t,r){return ax(t,Fx(t),r)}function e1(t){return H1(t,l0,Fx)}function Y(t,r){var n=t.__data__;return tt(r)?n[typeof r=="string"?"string":"hash"]:n.map}function G(t,r){var n=dx(t,r);return U1(n)?n:void 0}var Fx=k0?s0(k0,Object):at,S=L1;(C0&&S(new C0(new ArrayBuffer(1)))!=J||L&&S(new L)!=K||B0&&S(B0.resolve())!=j0||D0&&S(new D0)!=W||i0&&S(new i0)!=n0)&&(S=function(t){var r=q.call(t),n=r==u0?t.constructor:void 0,C=n?I(n):void 0;if(C)switch(C){case a1:return J;case F1:return K;case u1:return j0;case s1:return W;case f1:return n0}return r});function o1(t){var r=t.length,n=t.constructor(r);return r&&typeof t[0]=="string"&&T.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function c1(t){return typeof t.constructor=="function"&&!ux(t)?k1(n1(t)):{}}function d1(t,r,n,C){var i=t.constructor;switch(r){case Q0:return f0(t);case K0:case W0:return new i(+t);case J:return W1(t,C);case z0:case e0:case o0:case c0:case d0:case xx:case tx:case rx:case nx:return Y1(t,C);case K:return J1(t,C,n);case Z0:case X0:return new i(t);case q0:return Z1(t);case W:return q1(t,C,n);case Y0:return X1(t)}}function xt(t,r){return r=r==null?V0:r,!!r&&(typeof t=="number"||Zx.test(t))&&t>-1&&t%1==0&&t<r}function tt(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function rt(t){return!!R0&&R0 in t}function ux(t){var r=t&&t.constructor,n=typeof r=="function"&&r.prototype||Z;return t===n}function I(t){if(t!=null){try{return ix.call(t)}catch(r){}try{return t+""}catch(r){}}return""}function nt(t){return A0(t,!0,!0)}function sx(t,r){return t===r||t!==t&&r!==r}function Ct(t){return Bt(t)&&T.call(t,"callee")&&(!B1.call(t,"callee")||q.call(t)==a0)}var E0=Array.isArray;function fx(t){return t!=null&&it(t.length)&&!Ex(t)}function Bt(t){return At(t)&&fx(t)}var Dt=i1||Ft;function Ex(t){var r=Q(t)?q.call(t):"";return r==F0||r==J0}function it(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=V0}function Q(t){var r=typeof t;return!!t&&(r=="object"||r=="function")}function At(t){return!!t&&typeof t=="object"}function l0(t){return fx(t)?G1(t):V1(t)}function at(){return[]}function Ft(){return!1}P.exports=nt});var yx=x0((It,gx)=>{var ut="[object Object]";function st(t){var r=!1;if(t!=null&&typeof t.toString!="function")try{r=!!(t+"")}catch(n){}return r}function ft(t,r){return function(n){return t(r(n))}}var Et=Function.prototype,px=Object.prototype,hx=Et.toString,lt=px.hasOwnProperty,pt=hx.call(Object),ht=px.toString,gt=ft(Object.getPrototypeOf,Object);function yt(t){return!!t&&typeof t=="object"}function bt(t){if(!yt(t)||ht.call(t)!=ut||st(t))return!1;var r=gt(t);if(r===null)return!0;var n=lt.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&hx.call(n)==pt}gx.exports=bt});var vx=x0((Gt,e)=>{function _t(){var t=0,r=1,n=2,C=3,i=4,E=5,g=6,a=7,D=8,s=9,u=10,B=11,y=12,b=13,_=14,o=15,g0=16,V=17,v=0,c=1,d=2,Ox=3,Tx=4;function Sx(x,A){return 55296<=x.charCodeAt(A)&&x.charCodeAt(A)<=56319&&56320<=x.charCodeAt(A+1)&&x.charCodeAt(A+1)<=57343}function y0(x,A){A===void 0&&(A=0);var l=x.charCodeAt(A);if(55296<=l&&l<=56319&&A<x.length-1){var F=l,f=x.charCodeAt(A+1);return 56320<=f&&f<=57343?(F-55296)*1024+(f-56320)+65536:F}if(56320<=l&&l<=57343&&A>=1){var F=x.charCodeAt(A-1),f=l;return 55296<=F&&F<=56319?(F-55296)*1024+(f-56320)+65536:f}return l}function jx(x,A,l){var F=[x].concat(A).concat([l]),f=F[F.length-2],h=l,v0=F.lastIndexOf(_);if(v0>1&&F.slice(1,v0).every(function(m){return m==C})&&[C,b,V].indexOf(x)==-1)return d;var _0=F.lastIndexOf(i);if(_0>0&&F.slice(1,_0).every(function(m){return m==i})&&[y,i].indexOf(f)==-1)return F.filter(function(m){return m==i}).length%2==1?Ox:Tx;if(f==t&&h==r)return v;if(f==n||f==t||f==r)return h==_&&A.every(function(m){return m==C})?d:c;if(h==n||h==t||h==r)return c;if(f==g&&(h==g||h==a||h==s||h==u))return v;if((f==s||f==a)&&(h==a||h==D))return v;if((f==u||f==D)&&h==D)return v;if(h==C||h==o)return v;if(h==E)return v;if(f==y)return v;var m0=F.indexOf(C)!=-1?F.lastIndexOf(C)-1:F.length-2;return[b,V].indexOf(F[m0])!=-1&&F.slice(m0+1,-1).every(function(m){return m==C})&&h==_||f==o&&[g0,V].indexOf(h)!=-1?v:A.indexOf(i)!=-1?d:f==i&&h==i?v:c}this.nextBreak=function(x,A){if(A===void 0&&(A=0),A<0)return 0;if(A>=x.length-1)return x.length;for(var l=b0(y0(x,A)),F=[],f=A+1;f<x.length;f++)if(!Sx(x,f-1)){var h=b0(y0(x,f));if(jx(l,F,h))return f;F.push(h)}return x.length},this.splitGraphemes=function(x){for(var A=[],l=0,F;(F=this.nextBreak(x,l))<x.length;)A.push(x.slice(l,F)),l=F;return l<x.length&&A.push(x.slice(l)),A},this.iterateGraphemes=function(x){var A=0,l={next:function(){var F,f;return(f=this.nextBreak(x,A))<x.length?(F=x.slice(A,f),A=f,{value:F,done:!1}):A<x.length?(F=x.slice(A),A=x.length,{value:F,done:!1}):{value:void 0,done:!0}}.bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(l[Symbol.iterator]=function(){return l}),l},this.countGraphemes=function(x){for(var A=0,l=0,F;(F=this.nextBreak(x,l))<x.length;)l=F,A++;return l<x.length&&A++,A};function b0(x){return 1536<=x&&x<=1541||x==1757||x==1807||x==2274||x==3406||x==69821||70082<=x&&x<=70083||x==72250||72326<=x&&x<=72329||x==73030?y:x==13?t:x==10?r:0<=x&&x<=9||11<=x&&x<=12||14<=x&&x<=31||127<=x&&x<=159||x==173||x==1564||x==6158||x==8203||8206<=x&&x<=8207||x==8232||x==8233||8234<=x&&x<=8238||8288<=x&&x<=8292||x==8293||8294<=x&&x<=8303||55296<=x&&x<=57343||x==65279||65520<=x&&x<=65528||65529<=x&&x<=65531||113824<=x&&x<=113827||119155<=x&&x<=119162||x==917504||x==917505||917506<=x&&x<=917535||917632<=x&&x<=917759||918e3<=x&&x<=921599?n:768<=x&&x<=879||1155<=x&&x<=1159||1160<=x&&x<=1161||1425<=x&&x<=1469||x==1471||1473<=x&&x<=1474||1476<=x&&x<=1477||x==1479||1552<=x&&x<=1562||1611<=x&&x<=1631||x==1648||1750<=x&&x<=1756||1759<=x&&x<=1764||1767<=x&&x<=1768||1770<=x&&x<=1773||x==1809||1840<=x&&x<=1866||1958<=x&&x<=1968||2027<=x&&x<=2035||2070<=x&&x<=2073||2075<=x&&x<=2083||2085<=x&&x<=2087||2089<=x&&x<=2093||2137<=x&&x<=2139||2260<=x&&x<=2273||2275<=x&&x<=2306||x==2362||x==2364||2369<=x&&x<=2376||x==2381||2385<=x&&x<=2391||2402<=x&&x<=2403||x==2433||x==2492||x==2494||2497<=x&&x<=2500||x==2509||x==2519||2530<=x&&x<=2531||2561<=x&&x<=2562||x==2620||2625<=x&&x<=2626||2631<=x&&x<=2632||2635<=x&&x<=2637||x==2641||2672<=x&&x<=2673||x==2677||2689<=x&&x<=2690||x==2748||2753<=x&&x<=2757||2759<=x&&x<=2760||x==2765||2786<=x&&x<=2787||2810<=x&&x<=2815||x==2817||x==2876||x==2878||x==2879||2881<=x&&x<=2884||x==2893||x==2902||x==2903||2914<=x&&x<=2915||x==2946||x==3006||x==3008||x==3021||x==3031||x==3072||3134<=x&&x<=3136||3142<=x&&x<=3144||3146<=x&&x<=3149||3157<=x&&x<=3158||3170<=x&&x<=3171||x==3201||x==3260||x==3263||x==3266||x==3270||3276<=x&&x<=3277||3285<=x&&x<=3286||3298<=x&&x<=3299||3328<=x&&x<=3329||3387<=x&&x<=3388||x==3390||3393<=x&&x<=3396||x==3405||x==3415||3426<=x&&x<=3427||x==3530||x==3535||3538<=x&&x<=3540||x==3542||x==3551||x==3633||3636<=x&&x<=3642||3655<=x&&x<=3662||x==3761||3764<=x&&x<=3769||3771<=x&&x<=3772||3784<=x&&x<=3789||3864<=x&&x<=3865||x==3893||x==3895||x==3897||3953<=x&&x<=3966||3968<=x&&x<=3972||3974<=x&&x<=3975||3981<=x&&x<=3991||3993<=x&&x<=4028||x==4038||4141<=x&&x<=4144||4146<=x&&x<=4151||4153<=x&&x<=4154||4157<=x&&x<=4158||4184<=x&&x<=4185||4190<=x&&x<=4192||4209<=x&&x<=4212||x==4226||4229<=x&&x<=4230||x==4237||x==4253||4957<=x&&x<=4959||5906<=x&&x<=5908||5938<=x&&x<=5940||5970<=x&&x<=5971||6002<=x&&x<=6003||6068<=x&&x<=6069||6071<=x&&x<=6077||x==6086||6089<=x&&x<=6099||x==6109||6155<=x&&x<=6157||6277<=x&&x<=6278||x==6313||6432<=x&&x<=6434||6439<=x&&x<=6440||x==6450||6457<=x&&x<=6459||6679<=x&&x<=6680||x==6683||x==6742||6744<=x&&x<=6750||x==6752||x==6754||6757<=x&&x<=6764||6771<=x&&x<=6780||x==6783||6832<=x&&x<=6845||x==6846||6912<=x&&x<=6915||x==6964||6966<=x&&x<=6970||x==6972||x==6978||7019<=x&&x<=7027||7040<=x&&x<=7041||7074<=x&&x<=7077||7080<=x&&x<=7081||7083<=x&&x<=7085||x==7142||7144<=x&&x<=7145||x==7149||7151<=x&&x<=7153||7212<=x&&x<=7219||7222<=x&&x<=7223||7376<=x&&x<=7378||7380<=x&&x<=7392||7394<=x&&x<=7400||x==7405||x==7412||7416<=x&&x<=7417||7616<=x&&x<=7673||7675<=x&&x<=7679||x==8204||8400<=x&&x<=8412||8413<=x&&x<=8416||x==8417||8418<=x&&x<=8420||8421<=x&&x<=8432||11503<=x&&x<=11505||x==11647||11744<=x&&x<=11775||12330<=x&&x<=12333||12334<=x&&x<=12335||12441<=x&&x<=12442||x==42607||42608<=x&&x<=42610||42612<=x&&x<=42621||42654<=x&&x<=42655||42736<=x&&x<=42737||x==43010||x==43014||x==43019||43045<=x&&x<=43046||43204<=x&&x<=43205||43232<=x&&x<=43249||43302<=x&&x<=43309||43335<=x&&x<=43345||43392<=x&&x<=43394||x==43443||43446<=x&&x<=43449||x==43452||x==43493||43561<=x&&x<=43566||43569<=x&&x<=43570||43573<=x&&x<=43574||x==43587||x==43596||x==43644||x==43696||43698<=x&&x<=43700||43703<=x&&x<=43704||43710<=x&&x<=43711||x==43713||43756<=x&&x<=43757||x==43766||x==44005||x==44008||x==44013||x==64286||65024<=x&&x<=65039||65056<=x&&x<=65071||65438<=x&&x<=65439||x==66045||x==66272||66422<=x&&x<=66426||68097<=x&&x<=68099||68101<=x&&x<=68102||68108<=x&&x<=68111||68152<=x&&x<=68154||x==68159||68325<=x&&x<=68326||x==69633||69688<=x&&x<=69702||69759<=x&&x<=69761||69811<=x&&x<=69814||69817<=x&&x<=69818||69888<=x&&x<=69890||69927<=x&&x<=69931||69933<=x&&x<=69940||x==70003||70016<=x&&x<=70017||70070<=x&&x<=70078||70090<=x&&x<=70092||70191<=x&&x<=70193||x==70196||70198<=x&&x<=70199||x==70206||x==70367||70371<=x&&x<=70378||70400<=x&&x<=70401||x==70460||x==70462||x==70464||x==70487||70502<=x&&x<=70508||70512<=x&&x<=70516||70712<=x&&x<=70719||70722<=x&&x<=70724||x==70726||x==70832||70835<=x&&x<=70840||x==70842||x==70845||70847<=x&&x<=70848||70850<=x&&x<=70851||x==71087||71090<=x&&x<=71093||71100<=x&&x<=71101||71103<=x&&x<=71104||71132<=x&&x<=71133||71219<=x&&x<=71226||x==71229||71231<=x&&x<=71232||x==71339||x==71341||71344<=x&&x<=71349||x==71351||71453<=x&&x<=71455||71458<=x&&x<=71461||71463<=x&&x<=71467||72193<=x&&x<=72198||72201<=x&&x<=72202||72243<=x&&x<=72248||72251<=x&&x<=72254||x==72263||72273<=x&&x<=72278||72281<=x&&x<=72283||72330<=x&&x<=72342||72344<=x&&x<=72345||72752<=x&&x<=72758||72760<=x&&x<=72765||x==72767||72850<=x&&x<=72871||72874<=x&&x<=72880||72882<=x&&x<=72883||72885<=x&&x<=72886||73009<=x&&x<=73014||x==73018||73020<=x&&x<=73021||73023<=x&&x<=73029||x==73031||92912<=x&&x<=92916||92976<=x&&x<=92982||94095<=x&&x<=94098||113821<=x&&x<=113822||x==119141||119143<=x&&x<=119145||119150<=x&&x<=119154||119163<=x&&x<=119170||119173<=x&&x<=119179||119210<=x&&x<=119213||119362<=x&&x<=119364||121344<=x&&x<=121398||121403<=x&&x<=121452||x==121461||x==121476||121499<=x&&x<=121503||121505<=x&&x<=121519||122880<=x&&x<=122886||122888<=x&&x<=122904||122907<=x&&x<=122913||122915<=x&&x<=122916||122918<=x&&x<=122922||125136<=x&&x<=125142||125252<=x&&x<=125258||917536<=x&&x<=917631||917760<=x&&x<=917999?C:127462<=x&&x<=127487?i:x==2307||x==2363||2366<=x&&x<=2368||2377<=x&&x<=2380||2382<=x&&x<=2383||2434<=x&&x<=2435||2495<=x&&x<=2496||2503<=x&&x<=2504||2507<=x&&x<=2508||x==2563||2622<=x&&x<=2624||x==2691||2750<=x&&x<=2752||x==2761||2763<=x&&x<=2764||2818<=x&&x<=2819||x==2880||2887<=x&&x<=2888||2891<=x&&x<=2892||x==3007||3009<=x&&x<=3010||3014<=x&&x<=3016||3018<=x&&x<=3020||3073<=x&&x<=3075||3137<=x&&x<=3140||3202<=x&&x<=3203||x==3262||3264<=x&&x<=3265||3267<=x&&x<=3268||3271<=x&&x<=3272||3274<=x&&x<=3275||3330<=x&&x<=3331||3391<=x&&x<=3392||3398<=x&&x<=3400||3402<=x&&x<=3404||3458<=x&&x<=3459||3536<=x&&x<=3537||3544<=x&&x<=3550||3570<=x&&x<=3571||x==3635||x==3763||3902<=x&&x<=3903||x==3967||x==4145||4155<=x&&x<=4156||4182<=x&&x<=4183||x==4228||x==6070||6078<=x&&x<=6085||6087<=x&&x<=6088||6435<=x&&x<=6438||6441<=x&&x<=6443||6448<=x&&x<=6449||6451<=x&&x<=6456||6681<=x&&x<=6682||x==6741||x==6743||6765<=x&&x<=6770||x==6916||x==6965||x==6971||6973<=x&&x<=6977||6979<=x&&x<=6980||x==7042||x==7073||7078<=x&&x<=7079||x==7082||x==7143||7146<=x&&x<=7148||x==7150||7154<=x&&x<=7155||7204<=x&&x<=7211||7220<=x&&x<=7221||x==7393||7410<=x&&x<=7411||x==7415||43043<=x&&x<=43044||x==43047||43136<=x&&x<=43137||43188<=x&&x<=43203||43346<=x&&x<=43347||x==43395||43444<=x&&x<=43445||43450<=x&&x<=43451||43453<=x&&x<=43456||43567<=x&&x<=43568||43571<=x&&x<=43572||x==43597||x==43755||43758<=x&&x<=43759||x==43765||44003<=x&&x<=44004||44006<=x&&x<=44007||44009<=x&&x<=44010||x==44012||x==69632||x==69634||x==69762||69808<=x&&x<=69810||69815<=x&&x<=69816||x==69932||x==70018||70067<=x&&x<=70069||70079<=x&&x<=70080||70188<=x&&x<=70190||70194<=x&&x<=70195||x==70197||70368<=x&&x<=70370||70402<=x&&x<=70403||x==70463||70465<=x&&x<=70468||70471<=x&&x<=70472||70475<=x&&x<=70477||70498<=x&&x<=70499||70709<=x&&x<=70711||70720<=x&&x<=70721||x==70725||70833<=x&&x<=70834||x==70841||70843<=x&&x<=70844||x==70846||x==70849||71088<=x&&x<=71089||71096<=x&&x<=71099||x==71102||71216<=x&&x<=71218||71227<=x&&x<=71228||x==71230||x==71340||71342<=x&&x<=71343||x==71350||71456<=x&&x<=71457||x==71462||72199<=x&&x<=72200||x==72249||72279<=x&&x<=72280||x==72343||x==72751||x==72766||x==72873||x==72881||x==72884||94033<=x&&x<=94078||x==119142||x==119149?E:4352<=x&&x<=4447||43360<=x&&x<=43388?g:4448<=x&&x<=4519||55216<=x&&x<=55238?a:4520<=x&&x<=4607||55243<=x&&x<=55291?D:x==44032||x==44060||x==44088||x==44116||x==44144||x==44172||x==44200||x==44228||x==44256||x==44284||x==44312||x==44340||x==44368||x==44396||x==44424||x==44452||x==44480||x==44508||x==44536||x==44564||x==44592||x==44620||x==44648||x==44676||x==44704||x==44732||x==44760||x==44788||x==44816||x==44844||x==44872||x==44900||x==44928||x==44956||x==44984||x==45012||x==45040||x==45068||x==45096||x==45124||x==45152||x==45180||x==45208||x==45236||x==45264||x==45292||x==45320||x==45348||x==45376||x==45404||x==45432||x==45460||x==45488||x==45516||x==45544||x==45572||x==45600||x==45628||x==45656||x==45684||x==45712||x==45740||x==45768||x==45796||x==45824||x==45852||x==45880||x==45908||x==45936||x==45964||x==45992||x==46020||x==46048||x==46076||x==46104||x==46132||x==46160||x==46188||x==46216||x==46244||x==46272||x==46300||x==46328||x==46356||x==46384||x==46412||x==46440||x==46468||x==46496||x==46524||x==46552||x==46580||x==46608||x==46636||x==46664||x==46692||x==46720||x==46748||x==46776||x==46804||x==46832||x==46860||x==46888||x==46916||x==46944||x==46972||x==47e3||x==47028||x==47056||x==47084||x==47112||x==47140||x==47168||x==47196||x==47224||x==47252||x==47280||x==47308||x==47336||x==47364||x==47392||x==47420||x==47448||x==47476||x==47504||x==47532||x==47560||x==47588||x==47616||x==47644||x==47672||x==47700||x==47728||x==47756||x==47784||x==47812||x==47840||x==47868||x==47896||x==47924||x==47952||x==47980||x==48008||x==48036||x==48064||x==48092||x==48120||x==48148||x==48176||x==48204||x==48232||x==48260||x==48288||x==48316||x==48344||x==48372||x==48400||x==48428||x==48456||x==48484||x==48512||x==48540||x==48568||x==48596||x==48624||x==48652||x==48680||x==48708||x==48736||x==48764||x==48792||x==48820||x==48848||x==48876||x==48904||x==48932||x==48960||x==48988||x==49016||x==49044||x==49072||x==49100||x==49128||x==49156||x==49184||x==49212||x==49240||x==49268||x==49296||x==49324||x==49352||x==49380||x==49408||x==49436||x==49464||x==49492||x==49520||x==49548||x==49576||x==49604||x==49632||x==49660||x==49688||x==49716||x==49744||x==49772||x==49800||x==49828||x==49856||x==49884||x==49912||x==49940||x==49968||x==49996||x==50024||x==50052||x==50080||x==50108||x==50136||x==50164||x==50192||x==50220||x==50248||x==50276||x==50304||x==50332||x==50360||x==50388||x==50416||x==50444||x==50472||x==50500||x==50528||x==50556||x==50584||x==50612||x==50640||x==50668||x==50696||x==50724||x==50752||x==50780||x==50808||x==50836||x==50864||x==50892||x==50920||x==50948||x==50976||x==51004||x==51032||x==51060||x==51088||x==51116||x==51144||x==51172||x==51200||x==51228||x==51256||x==51284||x==51312||x==51340||x==51368||x==51396||x==51424||x==51452||x==51480||x==51508||x==51536||x==51564||x==51592||x==51620||x==51648||x==51676||x==51704||x==51732||x==51760||x==51788||x==51816||x==51844||x==51872||x==51900||x==51928||x==51956||x==51984||x==52012||x==52040||x==52068||x==52096||x==52124||x==52152||x==52180||x==52208||x==52236||x==52264||x==52292||x==52320||x==52348||x==52376||x==52404||x==52432||x==52460||x==52488||x==52516||x==52544||x==52572||x==52600||x==52628||x==52656||x==52684||x==52712||x==52740||x==52768||x==52796||x==52824||x==52852||x==52880||x==52908||x==52936||x==52964||x==52992||x==53020||x==53048||x==53076||x==53104||x==53132||x==53160||x==53188||x==53216||x==53244||x==53272||x==53300||x==53328||x==53356||x==53384||x==53412||x==53440||x==53468||x==53496||x==53524||x==53552||x==53580||x==53608||x==53636||x==53664||x==53692||x==53720||x==53748||x==53776||x==53804||x==53832||x==53860||x==53888||x==53916||x==53944||x==53972||x==54e3||x==54028||x==54056||x==54084||x==54112||x==54140||x==54168||x==54196||x==54224||x==54252||x==54280||x==54308||x==54336||x==54364||x==54392||x==54420||x==54448||x==54476||x==54504||x==54532||x==54560||x==54588||x==54616||x==54644||x==54672||x==54700||x==54728||x==54756||x==54784||x==54812||x==54840||x==54868||x==54896||x==54924||x==54952||x==54980||x==55008||x==55036||x==55064||x==55092||x==55120||x==55148||x==55176?s:44033<=x&&x<=44059||44061<=x&&x<=44087||44089<=x&&x<=44115||44117<=x&&x<=44143||44145<=x&&x<=44171||44173<=x&&x<=44199||44201<=x&&x<=44227||44229<=x&&x<=44255||44257<=x&&x<=44283||44285<=x&&x<=44311||44313<=x&&x<=44339||44341<=x&&x<=44367||44369<=x&&x<=44395||44397<=x&&x<=44423||44425<=x&&x<=44451||44453<=x&&x<=44479||44481<=x&&x<=44507||44509<=x&&x<=44535||44537<=x&&x<=44563||44565<=x&&x<=44591||44593<=x&&x<=44619||44621<=x&&x<=44647||44649<=x&&x<=44675||44677<=x&&x<=44703||44705<=x&&x<=44731||44733<=x&&x<=44759||44761<=x&&x<=44787||44789<=x&&x<=44815||44817<=x&&x<=44843||44845<=x&&x<=44871||44873<=x&&x<=44899||44901<=x&&x<=44927||44929<=x&&x<=44955||44957<=x&&x<=44983||44985<=x&&x<=45011||45013<=x&&x<=45039||45041<=x&&x<=45067||45069<=x&&x<=45095||45097<=x&&x<=45123||45125<=x&&x<=45151||45153<=x&&x<=45179||45181<=x&&x<=45207||45209<=x&&x<=45235||45237<=x&&x<=45263||45265<=x&&x<=45291||45293<=x&&x<=45319||45321<=x&&x<=45347||45349<=x&&x<=45375||45377<=x&&x<=45403||45405<=x&&x<=45431||45433<=x&&x<=45459||45461<=x&&x<=45487||45489<=x&&x<=45515||45517<=x&&x<=45543||45545<=x&&x<=45571||45573<=x&&x<=45599||45601<=x&&x<=45627||45629<=x&&x<=45655||45657<=x&&x<=45683||45685<=x&&x<=45711||45713<=x&&x<=45739||45741<=x&&x<=45767||45769<=x&&x<=45795||45797<=x&&x<=45823||45825<=x&&x<=45851||45853<=x&&x<=45879||45881<=x&&x<=45907||45909<=x&&x<=45935||45937<=x&&x<=45963||45965<=x&&x<=45991||45993<=x&&x<=46019||46021<=x&&x<=46047||46049<=x&&x<=46075||46077<=x&&x<=46103||46105<=x&&x<=46131||46133<=x&&x<=46159||46161<=x&&x<=46187||46189<=x&&x<=46215||46217<=x&&x<=46243||46245<=x&&x<=46271||46273<=x&&x<=46299||46301<=x&&x<=46327||46329<=x&&x<=46355||46357<=x&&x<=46383||46385<=x&&x<=46411||46413<=x&&x<=46439||46441<=x&&x<=46467||46469<=x&&x<=46495||46497<=x&&x<=46523||46525<=x&&x<=46551||46553<=x&&x<=46579||46581<=x&&x<=46607||46609<=x&&x<=46635||46637<=x&&x<=46663||46665<=x&&x<=46691||46693<=x&&x<=46719||46721<=x&&x<=46747||46749<=x&&x<=46775||46777<=x&&x<=46803||46805<=x&&x<=46831||46833<=x&&x<=46859||46861<=x&&x<=46887||46889<=x&&x<=46915||46917<=x&&x<=46943||46945<=x&&x<=46971||46973<=x&&x<=46999||47001<=x&&x<=47027||47029<=x&&x<=47055||47057<=x&&x<=47083||47085<=x&&x<=47111||47113<=x&&x<=47139||47141<=x&&x<=47167||47169<=x&&x<=47195||47197<=x&&x<=47223||47225<=x&&x<=47251||47253<=x&&x<=47279||47281<=x&&x<=47307||47309<=x&&x<=47335||47337<=x&&x<=47363||47365<=x&&x<=47391||47393<=x&&x<=47419||47421<=x&&x<=47447||47449<=x&&x<=47475||47477<=x&&x<=47503||47505<=x&&x<=47531||47533<=x&&x<=47559||47561<=x&&x<=47587||47589<=x&&x<=47615||47617<=x&&x<=47643||47645<=x&&x<=47671||47673<=x&&x<=47699||47701<=x&&x<=47727||47729<=x&&x<=47755||47757<=x&&x<=47783||47785<=x&&x<=47811||47813<=x&&x<=47839||47841<=x&&x<=47867||47869<=x&&x<=47895||47897<=x&&x<=47923||47925<=x&&x<=47951||47953<=x&&x<=47979||47981<=x&&x<=48007||48009<=x&&x<=48035||48037<=x&&x<=48063||48065<=x&&x<=48091||48093<=x&&x<=48119||48121<=x&&x<=48147||48149<=x&&x<=48175||48177<=x&&x<=48203||48205<=x&&x<=48231||48233<=x&&x<=48259||48261<=x&&x<=48287||48289<=x&&x<=48315||48317<=x&&x<=48343||48345<=x&&x<=48371||48373<=x&&x<=48399||48401<=x&&x<=48427||48429<=x&&x<=48455||48457<=x&&x<=48483||48485<=x&&x<=48511||48513<=x&&x<=48539||48541<=x&&x<=48567||48569<=x&&x<=48595||48597<=x&&x<=48623||48625<=x&&x<=48651||48653<=x&&x<=48679||48681<=x&&x<=48707||48709<=x&&x<=48735||48737<=x&&x<=48763||48765<=x&&x<=48791||48793<=x&&x<=48819||48821<=x&&x<=48847||48849<=x&&x<=48875||48877<=x&&x<=48903||48905<=x&&x<=48931||48933<=x&&x<=48959||48961<=x&&x<=48987||48989<=x&&x<=49015||49017<=x&&x<=49043||49045<=x&&x<=49071||49073<=x&&x<=49099||49101<=x&&x<=49127||49129<=x&&x<=49155||49157<=x&&x<=49183||49185<=x&&x<=49211||49213<=x&&x<=49239||49241<=x&&x<=49267||49269<=x&&x<=49295||49297<=x&&x<=49323||49325<=x&&x<=49351||49353<=x&&x<=49379||49381<=x&&x<=49407||49409<=x&&x<=49435||49437<=x&&x<=49463||49465<=x&&x<=49491||49493<=x&&x<=49519||49521<=x&&x<=49547||49549<=x&&x<=49575||49577<=x&&x<=49603||49605<=x&&x<=49631||49633<=x&&x<=49659||49661<=x&&x<=49687||49689<=x&&x<=49715||49717<=x&&x<=49743||49745<=x&&x<=49771||49773<=x&&x<=49799||49801<=x&&x<=49827||49829<=x&&x<=49855||49857<=x&&x<=49883||49885<=x&&x<=49911||49913<=x&&x<=49939||49941<=x&&x<=49967||49969<=x&&x<=49995||49997<=x&&x<=50023||50025<=x&&x<=50051||50053<=x&&x<=50079||50081<=x&&x<=50107||50109<=x&&x<=50135||50137<=x&&x<=50163||50165<=x&&x<=50191||50193<=x&&x<=50219||50221<=x&&x<=50247||50249<=x&&x<=50275||50277<=x&&x<=50303||50305<=x&&x<=50331||50333<=x&&x<=50359||50361<=x&&x<=50387||50389<=x&&x<=50415||50417<=x&&x<=50443||50445<=x&&x<=50471||50473<=x&&x<=50499||50501<=x&&x<=50527||50529<=x&&x<=50555||50557<=x&&x<=50583||50585<=x&&x<=50611||50613<=x&&x<=50639||50641<=x&&x<=50667||50669<=x&&x<=50695||50697<=x&&x<=50723||50725<=x&&x<=50751||50753<=x&&x<=50779||50781<=x&&x<=50807||50809<=x&&x<=50835||50837<=x&&x<=50863||50865<=x&&x<=50891||50893<=x&&x<=50919||50921<=x&&x<=50947||50949<=x&&x<=50975||50977<=x&&x<=51003||51005<=x&&x<=51031||51033<=x&&x<=51059||51061<=x&&x<=51087||51089<=x&&x<=51115||51117<=x&&x<=51143||51145<=x&&x<=51171||51173<=x&&x<=51199||51201<=x&&x<=51227||51229<=x&&x<=51255||51257<=x&&x<=51283||51285<=x&&x<=51311||51313<=x&&x<=51339||51341<=x&&x<=51367||51369<=x&&x<=51395||51397<=x&&x<=51423||51425<=x&&x<=51451||51453<=x&&x<=51479||51481<=x&&x<=51507||51509<=x&&x<=51535||51537<=x&&x<=51563||51565<=x&&x<=51591||51593<=x&&x<=51619||51621<=x&&x<=51647||51649<=x&&x<=51675||51677<=x&&x<=51703||51705<=x&&x<=51731||51733<=x&&x<=51759||51761<=x&&x<=51787||51789<=x&&x<=51815||51817<=x&&x<=51843||51845<=x&&x<=51871||51873<=x&&x<=51899||51901<=x&&x<=51927||51929<=x&&x<=51955||51957<=x&&x<=51983||51985<=x&&x<=52011||52013<=x&&x<=52039||52041<=x&&x<=52067||52069<=x&&x<=52095||52097<=x&&x<=52123||52125<=x&&x<=52151||52153<=x&&x<=52179||52181<=x&&x<=52207||52209<=x&&x<=52235||52237<=x&&x<=52263||52265<=x&&x<=52291||52293<=x&&x<=52319||52321<=x&&x<=52347||52349<=x&&x<=52375||52377<=x&&x<=52403||52405<=x&&x<=52431||52433<=x&&x<=52459||52461<=x&&x<=52487||52489<=x&&x<=52515||52517<=x&&x<=52543||52545<=x&&x<=52571||52573<=x&&x<=52599||52601<=x&&x<=52627||52629<=x&&x<=52655||52657<=x&&x<=52683||52685<=x&&x<=52711||52713<=x&&x<=52739||52741<=x&&x<=52767||52769<=x&&x<=52795||52797<=x&&x<=52823||52825<=x&&x<=52851||52853<=x&&x<=52879||52881<=x&&x<=52907||52909<=x&&x<=52935||52937<=x&&x<=52963||52965<=x&&x<=52991||52993<=x&&x<=53019||53021<=x&&x<=53047||53049<=x&&x<=53075||53077<=x&&x<=53103||53105<=x&&x<=53131||53133<=x&&x<=53159||53161<=x&&x<=53187||53189<=x&&x<=53215||53217<=x&&x<=53243||53245<=x&&x<=53271||53273<=x&&x<=53299||53301<=x&&x<=53327||53329<=x&&x<=53355||53357<=x&&x<=53383||53385<=x&&x<=53411||53413<=x&&x<=53439||53441<=x&&x<=53467||53469<=x&&x<=53495||53497<=x&&x<=53523||53525<=x&&x<=53551||53553<=x&&x<=53579||53581<=x&&x<=53607||53609<=x&&x<=53635||53637<=x&&x<=53663||53665<=x&&x<=53691||53693<=x&&x<=53719||53721<=x&&x<=53747||53749<=x&&x<=53775||53777<=x&&x<=53803||53805<=x&&x<=53831||53833<=x&&x<=53859||53861<=x&&x<=53887||53889<=x&&x<=53915||53917<=x&&x<=53943||53945<=x&&x<=53971||53973<=x&&x<=53999||54001<=x&&x<=54027||54029<=x&&x<=54055||54057<=x&&x<=54083||54085<=x&&x<=54111||54113<=x&&x<=54139||54141<=x&&x<=54167||54169<=x&&x<=54195||54197<=x&&x<=54223||54225<=x&&x<=54251||54253<=x&&x<=54279||54281<=x&&x<=54307||54309<=x&&x<=54335||54337<=x&&x<=54363||54365<=x&&x<=54391||54393<=x&&x<=54419||54421<=x&&x<=54447||54449<=x&&x<=54475||54477<=x&&x<=54503||54505<=x&&x<=54531||54533<=x&&x<=54559||54561<=x&&x<=54587||54589<=x&&x<=54615||54617<=x&&x<=54643||54645<=x&&x<=54671||54673<=x&&x<=54699||54701<=x&&x<=54727||54729<=x&&x<=54755||54757<=x&&x<=54783||54785<=x&&x<=54811||54813<=x&&x<=54839||54841<=x&&x<=54867||54869<=x&&x<=54895||54897<=x&&x<=54923||54925<=x&&x<=54951||54953<=x&&x<=54979||54981<=x&&x<=55007||55009<=x&&x<=55035||55037<=x&&x<=55063||55065<=x&&x<=55091||55093<=x&&x<=55119||55121<=x&&x<=55147||55149<=x&&x<=55175||55177<=x&&x<=55203?u:x==9757||x==9977||9994<=x&&x<=9997||x==127877||127938<=x&&x<=127940||x==127943||127946<=x&&x<=127948||128066<=x&&x<=128067||128070<=x&&x<=128080||x==128110||128112<=x&&x<=128120||x==128124||128129<=x&&x<=128131||128133<=x&&x<=128135||x==128170||128372<=x&&x<=128373||x==128378||x==128400||128405<=x&&x<=128406||128581<=x&&x<=128583||128587<=x&&x<=128591||x==128675||128692<=x&&x<=128694||x==128704||x==128716||129304<=x&&x<=129308||129310<=x&&x<=129311||x==129318||129328<=x&&x<=129337||129341<=x&&x<=129342||129489<=x&&x<=129501?b:127995<=x&&x<=127999?_:x==8205?o:x==9792||x==9794||9877<=x&&x<=9878||x==9992||x==10084||x==127752||x==127806||x==127859||x==127891||x==127908||x==127912||x==127979||x==127981||x==128139||128187<=x&&x<=128188||x==128295||x==128300||x==128488||x==128640||x==128658?g0:128102<=x&&x<=128105?V:B}return this}typeof e<"u"&&e.exports&&(e.exports=_t)});var St={};kx(St,{nativeToUnicode:()=>Ot,unicodeToNative:()=>Tt,version:()=>wt});var z=t0(lx(),1),bx=t0(yx(),1);function vt(t){if(t.includes(".")){let r=t.lastIndexOf(".");if(!t.slice(0,r).includes("."))return t.slice(0,r);for(let n=r-1;n--;)if(t[n]===".")return t.slice(n+1,r)}return null}var p0=vt;function h0(t,r){let n={now:!1};function C(i,E,g,a){let D=(0,z.default)(i),s,u=$({depth:-1,path:""},g);if(u.depth+=1,Array.isArray(D))for(let B=0,y=D.length;B<y&&!a.now;B++){let b=u.path?`${u.path}.${B}`:`${B}`;D[B]!==void 0?(u.parent=(0,z.default)(D),u.parentType="array",u.parentKey=p0(b),s=C(E(D[B],void 0,k($({},u),{path:b}),a),E,k($({},u),{path:b}),a),Number.isNaN(s)&&B<D.length?(D.splice(B,1),B-=1):D[B]=s):D.splice(B,1)}else if((0,bx.default)(D))for(let B in D){if(a.now&&B!=null)break;let y=u.path?`${u.path}.${B}`:B;u.depth===0&&B!=null&&(u.topmostKey=B),u.parent=(0,z.default)(D),u.parentType="object",u.parentKey=p0(y),s=C(E(B,D[B],k($({},u),{path:y}),a),E,k($({},u),{path:y}),a),Number.isNaN(s)?delete D[B]:D[B]=s}return D}return C(t,r,{},n)}var mx=t0(vx(),1);var _x="5.1.2";var wt=_x;function wx(t,r,n){function C(D){return!(!["string","number"].includes(typeof D)||typeof D=="string"&&!/^\d*$/.test(D)||typeof D=="number"&&(!Number.isInteger(D)||D<0))}function i(D,s){let u=0,B=0;for(let y=0,b=D.length;y<b;y++){if(B+=D[y].length,s>=u&&s<B)return y;u+=D[y].length}throw new Error(`string-convert-indexes: [THROW_ID_05] the "indexes" value, ${n}, is not covered by graphemes length!`)}function E(D,s){if(s>=D.length)throw new Error(`string-convert-indexes: [THROW_ID_06] the index to convert, ${s}, is not covered by graphemes length!`);return D.slice(0,s).join("").length}if(typeof r!="string"||!r)throw new TypeError(`string-convert-indexes: [THROW_ID_01] the first input argument, input string, must be a non-zero-length string! Currently it's: ${typeof r}, equal to:
|
|
11
11
|
${r}`);if(n===0)return 0;if(n==="0")return"0";let a=new mx.default().splitGraphemes(r);if(["string","number"].includes(typeof n)){if(C(n))return t==="u"?typeof n=="string"?String(E(a,+n)):E(a,+n):typeof n=="string"?String(i(a,+n)):i(a,+n);throw new Error(`string-convert-indexes: [THROW_ID_02] the second input argument, "indexes" is not suitable to describe string index - it was given as ${JSON.stringify(n,null,4)} (${typeof n})`)}else{if(n&&typeof n=="object")return t==="u"?h0(n,(D,s,u)=>{let B=s!==void 0?s:D;if(["string","number"].includes(typeof B)){if(C(B))return typeof B=="string"?String(E(a,+B)):E(a,+B);throw new Error(`string-convert-indexes: [THROW_ID_03] bad value was encountered, ${JSON.stringify(B,null,4)}, its path is ${u.path}`)}return B}):h0(n,(D,s,u)=>{let B=s!==void 0?s:D;if(["string","number"].includes(typeof B)){if(C(B))return typeof B=="string"?String(i(a,+B)):i(a,+B);throw new Error(`string-convert-indexes: [THROW_ID_04] bad value was encountered, ${JSON.stringify(B,null,4)}, its path is ${u.path}`)}return B});throw new Error(`string-convert-indexes: [THROW_ID_07] the first input argument, a source string should be a string but it was given as ${r}, type ${typeof r}`)}}function Ot(t,r){return wx("n",t,r)}function Tt(t,r){return wx("u",t,r)}return Hx(St);})();
|
|
12
12
|
/**
|
|
13
13
|
* @name ast-monkey-traverse
|
|
14
14
|
* @fileoverview Utility library to traverse AST
|
|
15
|
-
* @version 3.1.
|
|
15
|
+
* @version 3.1.2
|
|
16
16
|
* @author Roy Revelt, Codsen Ltd
|
|
17
17
|
* @license MIT
|
|
18
18
|
* {@link https://codsen.com/os/ast-monkey-traverse/}
|
|
@@ -20,7 +20,7 @@ ${r}`);if(n===0)return 0;if(n==="0")return"0";let a=new mx.default().splitGraphe
|
|
|
20
20
|
/**
|
|
21
21
|
* @name ast-monkey-util
|
|
22
22
|
* @fileoverview Utility library of AST helper functions
|
|
23
|
-
* @version 2.1.
|
|
23
|
+
* @version 2.1.2
|
|
24
24
|
* @author Roy Revelt, Codsen Ltd
|
|
25
25
|
* @license MIT
|
|
26
26
|
* {@link https://codsen.com/os/ast-monkey-util/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "string-convert-indexes",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Convert between native JS string character indexes and grapheme-count-based indexes",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astral",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"string",
|
|
14
14
|
"unicode"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://codsen.com/os/string-convert-indexes
|
|
16
|
+
"homepage": "https://codsen.com/os/string-convert-indexes",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/codsen/codsen.git",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"various": {}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"ast-monkey-traverse": "^3.1.
|
|
71
|
+
"ast-monkey-traverse": "^3.1.2",
|
|
72
72
|
"grapheme-splitter": "^1.0.4"
|
|
73
73
|
}
|
|
74
74
|
}
|