gt-node 0.3.4 → 0.3.5
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
package/dist/index.cjs.min.cjs
CHANGED
|
@@ -15,5 +15,5 @@ t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){
|
|
|
15
15
|
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
17
|
*/
|
|
18
|
-
function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),l=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,E,B,w,S,T,H,A,x=this._hash.words,P=u.words,C=l.words,O=a.words,L=s.words,M=c.words,k=h.words;for(B=i=x[0],w=f=x[1],S=b=x[2],T=m=x[3],H=E=x[4],r=0;r<80;r+=1)A=i+t[e+O[r]]|0,A+=r<16?p(f,b,m)+P[0]:r<32?d(f,b,m)+P[1]:r<48?v(f,b,m)+P[2]:r<64?y(f,b,m)+P[3]:g(f,b,m)+P[4],A=(A=_(A|=0,M[r]))+E|0,i=E,E=m,m=_(b,10),b=f,f=A,A=B+t[e+L[r]]|0,A+=r<16?g(w,S,T)+C[0]:r<32?y(w,S,T)+C[1]:r<48?v(w,S,T)+C[2]:r<64?d(w,S,T)+C[3]:p(w,S,T)+C[4],A=(A=_(A|=0,k[r]))+H|0,B=H,H=T,T=_(S,10),S=w,w=A;A=x[1]+b+T|0,x[1]=x[2]+m+H|0,x[2]=x[3]+E+B|0,x[3]=x[4]+i+w|0,x[4]=x[0]+f+S|0,x[0]=A},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(),t.RIPEMD160)),Ie.exports;var t}(),De(),function(){return Ue||(Ue=1,Ge.exports=(t=Qt(),we(),De(),function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.SHA256,s=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),i=o.create(),a=o.create([1]),c=i.words,h=a.words,u=r.keySize,l=r.iterations;c.length<u;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<l;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}i.concat(f),h[0]++}return i.sigBytes=4*u,i}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ge.exports;var t}(),ze(),Ve(),$e(),Je(),er(),or(),function(){return ir?ar.exports:(ir=1,ar.exports=(e=Qt(),Ve(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return sr?cr.exports:(sr=1,cr.exports=(t=Qt(),Ve(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,o=n-r%n,i=r+o-1;t.clamp(),t.words[i>>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return hr?ur.exports:(hr=1,ur.exports=(t=Qt(),Ve(),t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return lr?fr.exports:(lr=1,fr.exports=(t=Qt(),Ve(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return pr||(pr=1,dr.exports=(t=Qt(),Ve(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),dr.exports;var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=Qt(),Ve(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return gr||(gr=1,_r.exports=(t=Qt(),Ve(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),_r.exports;var t}(),function(){return br||(br=1,mr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],s=[],c=[],h=[],u=[],l=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,o[r]=d,i[d]=r;var v=t[r],y=t[v],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,h[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,l[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=e[a]:(h=i[a-1],a%r?r>6&&a%r==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=o[(h=h<<8|h>>>24)>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=d[a/r|0]<<24),i[a]=i[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=i[a];else h=i[a-4];s[c]=c<4||a<=4?h:u[o[h>>>24]]^l[o[h>>>16&255]]^f[o[h>>>8&255]]^p[o[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,o)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,u,l,f,p,i),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,s){for(var c=this._nRounds,h=t[e]^r[0],u=t[e+1]^r[1],l=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],g=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++];h=v,u=y,l=g,f=_}v=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),mr.exports;var t}(),wr(),function(){return Sr||(Sr=1,Tr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=e[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var t=this._S,e=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+t[e=(e+1)%256])%256;var i=t[e];t[e]=t[r],t[r]=i,n|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,n}e.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)i.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Tr.exports;var t}(),function(){return Hr||(Hr=1,Ar.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],s=i[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=h>>>16|4294901760&u,f=u<<16|65535&h;for(o[0]^=h,o[1]^=l,o[2]^=u,o[3]^=f,o[4]^=h,o[5]^=l,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),t[e+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)i[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Ar.exports;var t}(),function(){return xr||(xr=1,Pr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(e){var i=e.words,a=i[0],s=i[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=h>>>16|4294901760&u,f=u<<16|65535&h;for(n[0]^=h,n[1]^=l,n[2]^=u,n[3]^=f,n[4]^=h,n[5]^=l,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),t[e+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)i[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Pr.exports;var t}(),Lr())),Zt.exports),Rr=Nt(Ir),Nr="https://cdn.gtx.dev",Dr="en";"function"==typeof SuppressedError&&SuppressedError;var Ur="DEFAULT_TERMINATOR_KEY";function Gr(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,o=t.options,a=o.recurseIntoVisited,s=void 0===a||a,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(o,["recurseIntoVisited"]),h=function(t,e){void 0===e&&(e={}),e=i({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Ct(t,e).parse();if(r.err){var n=SyntaxError(j[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||It(r.val),r.val}(e,c);return u(h),h;function u(t){t.map(l)}function l(t){var e=!1;r(t)&&(n(t),e=!0),e&&!s||(t.type===F.select||t.type===F.plural?Object.values(t.options).map(function(t){return t.value}).map(u):t.type===F.tag&&u(t.children))}}var jr="_gt_",Fr=new RegExp("^".concat(jr,"$"));function zr(t){var e;return t.type===Xt.TYPE.select&&Fr.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function Kr(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var o=-1,i=e.length-1;i>=0;i--)if(r.test(e[i])){o=i;break}return e.slice(0,n)+"'"+e.slice(n,o+1)+"'"+e.slice(o+1)}function Xr(t){return t}var Vr=Xr;function Wr(t){if(!t.includes(jr))return t;var e=[];Gr({icuString:t,shouldVisit:zr,visitor:function(t){var r,n,o,i,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,o=0;o<e.length;o++){var i=e[o],a=i.start,s=i.end,c=i.otherStart,h=i.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(o+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}var Yr=function(){return Yr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yr.apply(this,arguments)};function $r(t){return Rr.SHA256(t).toString(Rr.enc.Hex).slice(0,16)}function Zr(t,e){var r=t.source,n=t.context,o=t.id,i=t.maxChars,a=t.dataFormat;void 0===e&&(e=$r);var s={dataFormat:a};return s.source="JSX"===a?Jr(r):r,s=Yr(Yr(Yr(Yr({},s),o&&{id:o}),n&&{context:n}),null!=i&&{maxChars:Math.abs(i)}),e($t(s))}"function"==typeof SuppressedError&&SuppressedError;var qr=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Jr(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],Jr(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Yr({k:t.k},t.v&&{v:t.v}):e}return t};function Jr(t){return Array.isArray(t)?t.map(qr):qr(t)}var Qr=function(t,e){return Qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Qr(t,e)},tn=function(){return tn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tn.apply(this,arguments)};function en(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function rn(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function nn(t,e,r){for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var on,an=function(t){console.warn(t)},sn=function(t){console.error(t)};function cn(t){return t.loadTranslations?on.CUSTOM:t.cacheUrl?on.REMOTE:void 0!==t.cacheUrl&&t.cacheUrl!==Nr||!t.projectId?on.DISABLED:on.GT_REMOTE}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(on||(on={}));var hn,un=function(){function t(t){var e;this.cache=new Map,this.resolvedCache=new Map,this.translationEntryTTL=null===t.cacheExpiryTime?-1:null!==(e=t.cacheExpiryTime)&&void 0!==e?e:6e4;var n=function(t){var e=cn(t);switch(e===on.DISABLED&&an("I18nManager: No translation loader found. No translations will be loaded."),e){case on.REMOTE:case on.GT_REMOTE:return function(t){var e=this,n=function(t){var e=t.cacheUrl,r=void 0===e?Nr:e,n=t.projectId,o=t._versionId,i=t._branchId,a=o?"/".concat(o):"",s=i?"?branchId=".concat(i):"";return"".concat(r,"/").concat(n,"/[locale]")+a+s}(t);return function(o){return en(e,void 0,void 0,function(){var e,i;return rn(this,function(a){switch(a.label){case 0:return o=r.resolveCanonicalLocale(o,t.customMapping),e=n.replace("[locale]",o),[4,fetch(e)];case 1:if(!(i=a.sent()).ok)throw new Error("Failed to load translations from ".concat(e));return[4,i.json()];case 2:return[2,a.sent()]}})})}}({cacheUrl:t.cacheUrl,projectId:t.projectId,_versionId:t._versionId,_branchId:t._branchId,customMapping:t.customMapping});case on.CUSTOM:return t.loadTranslations;case on.DISABLED:return function(){var t=this;return function(e){return en(t,void 0,void 0,function(){return rn(this,function(t){return[2,{}]})})}}()}}(t);this.translationLoader=this.attachResolveCaptureToTranslationLoader(this.protectTranslationLoader(n))}return t.prototype.protectTranslationLoader=function(t){var e=this;return function(r){return en(e,void 0,void 0,function(){var e;return rn(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(r)];case 1:return[2,n.sent()||{}];case 2:return e=n.sent(),sn("Failed to load translations "+e),this.cache.delete(r),[2,{}];case 3:return[2]}})})}},t.prototype.attachResolveCaptureToTranslationLoader=function(t){var e=this;return function(r){return en(e,void 0,void 0,function(){var e;return rn(this,function(n){switch(n.label){case 0:return[4,t(r)];case 1:return e=n.sent(),this.resolvedCache.set(r,e),[2,e]}})})}},t.prototype.handleCacheMiss=function(t){return en(this,void 0,void 0,function(){var e,r,n;return rn(this,function(o){return e=this.translationLoader(t),r=this.translationEntryTTL<0?this.translationEntryTTL:Date.now()+this.translationEntryTTL,n={promise:e,expiresAt:r},this.cache.set(t,n),[2,e]})})},t.prototype.isCacheHit=function(t){if(!this.cache.has(t))return!1;var e=this.cache.get(t).expiresAt;return e<0||e>Date.now()},t.prototype.getTranslations=function(t){return en(this,void 0,void 0,function(){return rn(this,function(e){return this.isCacheHit(t)?[2,this.cache.get(t).promise]:[2,this.handleCacheMiss(t)]})})},t.prototype.getTranslationsSync=function(t){return this.resolvedCache.get(t)},t.prototype.getTranslationLoader=function(){return this.translationLoader},t}();function ln(t){return void 0!==t.runtimeUrl&&"https://runtime2.gtx.dev"!==t.runtimeUrl||!t.projectId||!t.devApiKey&&!t.apiKey?t.runtimeUrl?hn.CUSTOM:hn.DISABLED:hn.GT}function fn(t){return cn(t)===on.GT_REMOTE||ln(t)===hn.GT}!function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(hn||(hn={}));var pn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Qr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]},e}(function(){});function dn(t,e){return Zr(tn(tn(tn(tn({source:Wr(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}var vn=function(){function t(t){var e,n,o,i,a=this;this.resolveTranslationSync=function(t,e){var r=a.getLocale(),n=a.translationsManager.getTranslationsSync(r);if(n)return n[dn(t,e)]},function(t,e,r){if(void 0===r&&(r=!0),t.forEach(function(t){switch(t.type){case"error":sn(e+t.message);break;case"warning":an(e+t.message)}}),r&&t.some(function(t){return"error"===t.type}))throw new Error("Validation errors occurred")}(function(t){var e=[];return e.push.apply(e,function(t){var e=[],r=t.projectId,n=t.loadTranslations;switch(cn(t)){case on.REMOTE:case on.GT_REMOTE:r||e.push({type:"warning",message:"projectId is required when loading translations from a remote store"});break;case on.CUSTOM:n||e.push({type:"error",message:"loadTranslations is required when loading translations from a custom loader"});case on.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];switch(ln(t)){case hn.CUSTOM:case hn.GT:t.projectId||e.push({type:"warning",message:"projectId is required"}),t.devApiKey||t.apiKey||e.push({type:"warning",message:"devApiKey or apiKey is required"});case hn.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];if(!fn(t))return e;var n=t.defaultLocale,o=t.locales,i=t.customMapping;return new Set(nn(nn([],n?[n]:[]),o||[])).forEach(function(t){r.isValidLocale(t,i)||e.push({type:"error",message:"Invalid locale: ".concat(t)})}),e}(t)),e}(t),"I18nManager: "),this.config=(o=fn(n=t),i=function(t){var e=t.defaultLocale,r=t.locales,n=t.customMapping;return{defaultLocale:e,locales:Array.from(new Set(nn([e],r))),customMapping:n||{}}}({defaultLocale:n.defaultLocale||Dr,locales:n.locales||[Dr],customMapping:n.customMapping}),tn({enableI18n:void 0===n.enableI18n||n.enableI18n,projectId:n.projectId,devApiKey:n.devApiKey,apiKey:n.apiKey,runtimeUrl:n.runtimeUrl},o?function(t){var e=r.standardizeLocale(t.defaultLocale),n=t.locales.map(function(e){var n,o,i,a;return("string"==typeof(null===(n=t.customMapping)||void 0===n?void 0:n[e])?null===(o=t.customMapping)||void 0===o?void 0:o[e]:null===(a=null===(i=t.customMapping)||void 0===i?void 0:i[e])||void 0===a?void 0:a.code)?e:r.standardizeLocale(e)}),o=Object.fromEntries(Object.entries(t.customMapping||{}).map(function(t){var e=t[0],n=t[1];return[e,"string"==typeof n?r.standardizeLocale(n):tn(tn({},n),n.code?{code:r.standardizeLocale(n.code)}:{})]}));return{defaultLocale:e,locales:n,customMapping:o}}(i):i)),this.storeAdapter=null!==(e=t.storeAdapter)&&void 0!==e?e:new pn,this.translationsManager=new un(t)}return t.prototype.getAdapterType=function(){return this.storeAdapter.type},t.prototype.getLocale=function(){return this.storeAdapter.getItem("locale")||(an("getLocale() invoked outside of translation context, falling back to default locale"),this.config.defaultLocale)},t.prototype.setLocale=function(t){this.storeAdapter.setItem("locale",t)},t.prototype.getDefaultLocale=function(){return this.config.defaultLocale},t.prototype.getLocales=function(){return this.config.locales},t.prototype.getGTClass=function(){return new r.GT({sourceLocale:this.config.defaultLocale,targetLocale:this.getLocale(),locales:this.config.locales,customMapping:this.config.customMapping,projectId:this.config.projectId,baseUrl:this.config.runtimeUrl||void 0,apiKey:this.config.apiKey,devApiKey:this.config.devApiKey})},t.prototype.isTranslationEnabled=function(){return this.config.enableI18n},t.prototype.getTranslationLoader=function(){return this.translationsManager.getTranslationLoader()},t.prototype.getTranslations=function(){return en(this,arguments,void 0,function(t){return void 0===t&&(t=this.getLocale()),rn(this,function(e){if(!this.config.locales.includes(t))throw new Error("Locale ".concat(t," not found in config"));return[2,this.translationsManager.getTranslations(t)]})})},t.prototype.getTranslationResolver=function(){return en(this,arguments,void 0,function(t){var e;return void 0===t&&(t=this.getLocale()),rn(this,function(r){switch(r.label){case 0:return!1===this.config.enableI18n||t===this.config.defaultLocale?[2,function(t){return t}]:[4,this.translationsManager.getTranslations(t)];case 1:return e=r.sent(),[2,function(t,r){var n=dn(t,r);return e[n]}]}})})},t.prototype.requiresTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass(),n=this.getLocales();return this.config.enableI18n&&r.requiresTranslation(e,t,n)},t.prototype.requiresDialectTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass();return this.requiresTranslation(t)&&r.isSameLanguage(e,t)},t}(),yn=void 0;function gn(){return yn||(an("getI18nManager(): Translation failed because I18nManager not initialized."),yn=new vn({defaultLocale:Dr,locales:[Dr]})),yn}Object.defineProperty(exports,"getGT",{enumerable:!0,get:function(){return t.getGT}}),Object.defineProperty(exports,"getMessages",{enumerable:!0,get:function(){return t.getMessages}}),exports.declareStatic=Vr,exports.declareVar=function(t,e){var r=Kr(String(null!=t?t:"")),n=" other {".concat(r,"}"),o="";if(null==e?void 0:e.$name){var i=Kr(e.$name);o=" ".concat("_gt_var_name"," {").concat(i,"}")}return"{".concat(jr,", select,").concat(n).concat(o,"}")},exports.decodeMsg=function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}(e))}catch(t){return null}},exports.decodeVars=function(t){if(!t.includes(jr))return t;var e=[];Gr({icuString:t,shouldVisit:zr,visitor:function(t){var r,n,o,i;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],o=0;o<e.length;o++)n.push(t.slice(r,e[o].start)),n.push(e[o].value),r=e[o].end;return r<t.length&&n.push(t.slice(r)),n.join("")},exports.derive=Xr,exports.getDefaultLocale=function(){return gn().getDefaultLocale()},exports.getLocale=function(){return gn().getLocale()},exports.getLocaleProperties=function(t){return gn().getGTClass().getLocaleProperties(t)},exports.getLocales=function(){return gn().getLocales()},exports.initializeGT=function(e){!function(e){t.setI18nManager(e)}(new K(i(i({},e),{storeAdapter:new V})))},exports.msg=function t(e,n){var o;if("string"!=typeof e)return n?e.map(function(e,r){return t(e,tn(tn({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):e;if(!n)return e;var i=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(n),a=e;try{a=r.formatMessage(e,{locales:[Dr],variables:tn(tn({},i),(o={},o[jr]="other",o))})}catch(n){return an("String interpolation failed. Error: "+n),e}var s=e,c=n.$_hash||dn(e,n),h=tn(tn({},n),{$_source:s,$_hash:c}),u=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(h));return"".concat(a,":").concat(u)},exports.withGT=function(e,r){var n=t.getI18nManager();if(!function(t){return t.getAdapterType()===X&&"run"in t&&"function"==typeof t.run}(n))throw new Error("I18nManager not initialized. Invoke configGT() to initialize.");return n.run(e,r)};
|
|
18
|
+
function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),l=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=i.RIPEMD160=o.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,f,b,m,E,B,w,S,T,H,A,x=this._hash.words,P=u.words,C=l.words,O=a.words,L=s.words,M=c.words,k=h.words;for(B=i=x[0],w=f=x[1],S=b=x[2],T=m=x[3],H=E=x[4],r=0;r<80;r+=1)A=i+t[e+O[r]]|0,A+=r<16?p(f,b,m)+P[0]:r<32?d(f,b,m)+P[1]:r<48?v(f,b,m)+P[2]:r<64?y(f,b,m)+P[3]:g(f,b,m)+P[4],A=(A=_(A|=0,M[r]))+E|0,i=E,E=m,m=_(b,10),b=f,f=A,A=B+t[e+L[r]]|0,A+=r<16?g(w,S,T)+C[0]:r<32?y(w,S,T)+C[1]:r<48?v(w,S,T)+C[2]:r<64?d(w,S,T)+C[3]:p(w,S,T)+C[4],A=(A=_(A|=0,k[r]))+H|0,B=H,H=T,T=_(S,10),S=w,w=A;A=x[1]+b+T|0,x[1]=x[2]+m+H|0,x[2]=x[3]+E+B|0,x[3]=x[4]+i+w|0,x[4]=x[0]+f+S|0,x[0]=A},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(f),e.HmacRIPEMD160=o._createHmacHelper(f)}(),t.RIPEMD160)),Ie.exports;var t}(),De(),function(){return Ue||(Ue=1,Ge.exports=(t=Qt(),we(),De(),function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.SHA256,s=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),i=o.create(),a=o.create([1]),c=i.words,h=a.words,u=r.keySize,l=r.iterations;c.length<u;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<l;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}i.concat(f),h[0]++}return i.sigBytes=4*u,i}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ge.exports;var t}(),ze(),Ve(),$e(),Je(),er(),or(),function(){return ir?ar.exports:(ir=1,ar.exports=(e=Qt(),Ve(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return sr?cr.exports:(sr=1,cr.exports=(t=Qt(),Ve(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,o=n-r%n,i=r+o-1;t.clamp(),t.words[i>>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return hr?ur.exports:(hr=1,ur.exports=(t=Qt(),Ve(),t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return lr?fr.exports:(lr=1,fr.exports=(t=Qt(),Ve(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return pr||(pr=1,dr.exports=(t=Qt(),Ve(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),dr.exports;var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=Qt(),Ve(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return gr||(gr=1,_r.exports=(t=Qt(),Ve(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),_r.exports;var t}(),function(){return br||(br=1,mr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,o=[],i=[],a=[],s=[],c=[],h=[],u=[],l=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,o[r]=d,i[d]=r;var v=t[r],y=t[v],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,h[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,l[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],a=0;a<n;a++)a<r?i[a]=e[a]:(h=i[a-1],a%r?r>6&&a%r==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=o[(h=h<<8|h>>>24)>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=d[a/r|0]<<24),i[a]=i[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=i[a];else h=i[a-4];s[c]=c<4||a<=4?h:u[o[h>>>24]]^l[o[h>>>16&255]]^f[o[h>>>8&255]]^p[o[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,o)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,u,l,f,p,i),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,s){for(var c=this._nRounds,h=t[e]^r[0],u=t[e+1]^r[1],l=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],g=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++];h=v,u=y,l=g,f=_}v=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),mr.exports;var t}(),wr(),function(){return Sr||(Sr=1,Tr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,s=e[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+s)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var t=this._S,e=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+t[e=(e+1)%256])%256;var i=t[e];t[e]=t[r],t[r]=i,n|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,n}e.RC4=r._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)i.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Tr.exports;var t}(),function(){return Hr||(Hr=1,Ar.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],s=i[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=h>>>16|4294901760&u,f=u<<16|65535&h;for(o[0]^=h,o[1]^=l,o[2]^=u,o[3]^=f,o[4]^=h,o[5]^=l,o[6]^=u,o[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),t[e+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)i[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Ar.exports;var t}(),function(){return xr||(xr=1,Pr.exports=(t=Qt(),le(),ge(),ze(),Ve(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,o=[],i=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(e){var i=e.words,a=i[0],s=i[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=h>>>16|4294901760&u,f=u<<16|65535&h;for(n[0]^=h,n[1]^=l,n[2]^=u,n[3]^=f,n[4]^=h,n[5]^=l,n[6]^=u,n[7]^=f,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),t[e+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)i[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<i[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<i[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<i[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<i[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<i[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<i[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<i[6]>>>0?1:0)|0,this._b=e[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Pr.exports;var t}(),Lr())),Zt.exports),Rr=Nt(Ir),Nr="https://cdn.gtx.dev",Dr="en";"function"==typeof SuppressedError&&SuppressedError;var Ur="DEFAULT_TERMINATOR_KEY";function Gr(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,o=t.options,a=o.recurseIntoVisited,s=void 0===a||a,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(o,["recurseIntoVisited"]),h=function(t,e){void 0===e&&(e={}),e=i({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Ct(t,e).parse();if(r.err){var n=SyntaxError(j[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||It(r.val),r.val}(e,c);return u(h),h;function u(t){t.map(l)}function l(t){var e=!1;r(t)&&(n(t),e=!0),e&&!s||(t.type===F.select||t.type===F.plural?Object.values(t.options).map(function(t){return t.value}).map(u):t.type===F.tag&&u(t.children))}}var jr="_gt_",Fr=new RegExp("^".concat(jr,"$"));function zr(t){var e;return t.type===Xt.TYPE.select&&Fr.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===Xt.TYPE.literal)}function Kr(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var o=-1,i=e.length-1;i>=0;i--)if(r.test(e[i])){o=i;break}return e.slice(0,n)+"'"+e.slice(n,o+1)+"'"+e.slice(o+1)}function Xr(t){return t}var Vr=Xr;function Wr(t){if(!t.includes(jr))return t;var e=[];Gr({icuString:t,shouldVisit:zr,visitor:function(t){var r,n,o,i,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,o=0;o<e.length;o++){var i=e[o],a=i.start,s=i.end,c=i.otherStart,h=i.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(o+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}var Yr=function(){return Yr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yr.apply(this,arguments)};function $r(t){return Rr.SHA256(t).toString(Rr.enc.Hex).slice(0,16)}function Zr(t,e){var r=t.source,n=t.context,o=t.id,i=t.maxChars,a=t.dataFormat;void 0===e&&(e=$r);var s={dataFormat:a};return s.source="JSX"===a?Jr(r):r,s=Yr(Yr(Yr(Yr({},s),o&&{id:o}),n&&{context:n}),null!=i&&{maxChars:Math.abs(i)}),e($t(s))}"function"==typeof SuppressedError&&SuppressedError;var qr=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Jr(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],Jr(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Yr({k:t.k},t.v&&{v:t.v}):e}return t};function Jr(t){return Array.isArray(t)?t.map(qr):qr(t)}var Qr=function(t,e){return Qr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Qr(t,e)},tn=function(){return tn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tn.apply(this,arguments)};function en(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,s)}c((n=n.apply(t,e||[])).next())})}function rn(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function nn(t,e,r){for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var on,an=function(t){console.warn(t)},sn=function(t){console.error(t)};function cn(t){return t.loadTranslations?on.CUSTOM:t.cacheUrl?on.REMOTE:void 0!==t.cacheUrl&&t.cacheUrl!==Nr||!t.projectId?on.DISABLED:on.GT_REMOTE}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(on||(on={}));var hn,un=function(){function t(t){var e;this.cache=new Map,this.resolvedCache=new Map,this.translationEntryTTL=null===t.cacheExpiryTime?-1:null!==(e=t.cacheExpiryTime)&&void 0!==e?e:6e4;var n=function(t){var e=cn(t);switch(e===on.DISABLED&&an("I18nManager: No translation loader found. No translations will be loaded."),e){case on.REMOTE:case on.GT_REMOTE:return function(t){var e=this,n=function(t){var e=t.cacheUrl,r=void 0===e?Nr:e,n=t.projectId,o=t._versionId,i=t._branchId,a=o?"/".concat(o):"",s=i?"?branchId=".concat(i):"";return"".concat(r,"/").concat(n,"/[locale]")+a+s}(t);return function(o){return en(e,void 0,void 0,function(){var e,i;return rn(this,function(a){switch(a.label){case 0:return o=r.resolveCanonicalLocale(o,t.customMapping),e=n.replace("[locale]",o),[4,fetch(e)];case 1:if(!(i=a.sent()).ok)throw new Error("Failed to load translations from ".concat(e));return[4,i.json()];case 2:return[2,a.sent()]}})})}}({cacheUrl:t.cacheUrl,projectId:t.projectId,_versionId:t._versionId,_branchId:t._branchId,customMapping:t.customMapping});case on.CUSTOM:return t.loadTranslations;case on.DISABLED:return function(){var t=this;return function(e){return en(t,void 0,void 0,function(){return rn(this,function(t){return[2,{}]})})}}()}}(t);this.translationLoader=this.attachResolveCaptureToTranslationLoader(this.protectTranslationLoader(n))}return t.prototype.protectTranslationLoader=function(t){var e=this;return function(r){return en(e,void 0,void 0,function(){var e;return rn(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(r)];case 1:return[2,n.sent()||{}];case 2:return e=n.sent(),sn("Failed to load translations "+e),this.cache.delete(r),[2,{}];case 3:return[2]}})})}},t.prototype.attachResolveCaptureToTranslationLoader=function(t){var e=this;return function(r){return en(e,void 0,void 0,function(){var e;return rn(this,function(n){switch(n.label){case 0:return[4,t(r)];case 1:return e=n.sent(),this.resolvedCache.set(r,e),[2,e]}})})}},t.prototype.handleCacheMiss=function(t){return en(this,void 0,void 0,function(){var e,r,n;return rn(this,function(o){return e=this.translationLoader(t),r=this.translationEntryTTL<0?this.translationEntryTTL:Date.now()+this.translationEntryTTL,n={promise:e,expiresAt:r},this.cache.set(t,n),[2,e]})})},t.prototype.isCacheHit=function(t){if(!this.cache.has(t))return!1;var e=this.cache.get(t).expiresAt;return e<0||e>Date.now()},t.prototype.getTranslations=function(t){return en(this,void 0,void 0,function(){return rn(this,function(e){return this.isCacheHit(t)?[2,this.cache.get(t).promise]:[2,this.handleCacheMiss(t)]})})},t.prototype.getTranslationsSync=function(t){return this.resolvedCache.get(t)},t.prototype.getTranslationLoader=function(){return this.translationLoader},t}();function ln(t){return void 0!==t.runtimeUrl&&"https://runtime2.gtx.dev"!==t.runtimeUrl||!t.projectId||!t.devApiKey&&!t.apiKey?t.runtimeUrl?hn.CUSTOM:hn.DISABLED:hn.GT}function fn(t){return cn(t)===on.GT_REMOTE||ln(t)===hn.GT}!function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(hn||(hn={}));var pn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Qr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]},e}(function(){});function dn(t,e){return Zr(tn(tn(tn(tn({source:Wr(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}var vn=function(){function t(t){var e,n,o,i,a=this;this.resolveTranslationSync=function(t,e){var r=a.getLocale(),n=a.translationsManager.getTranslationsSync(r);if(n)return n[dn(t,e)]},function(t,e,r){if(void 0===r&&(r=!0),t.forEach(function(t){switch(t.type){case"error":sn(e+t.message);break;case"warning":an(e+t.message)}}),r&&t.some(function(t){return"error"===t.type}))throw new Error("Validation errors occurred")}(function(t){var e=[];return e.push.apply(e,function(t){var e=[],r=t.projectId,n=t.loadTranslations;switch(cn(t)){case on.REMOTE:case on.GT_REMOTE:r||e.push({type:"warning",message:"projectId is required when loading translations from a remote store"});break;case on.CUSTOM:n||e.push({type:"error",message:"loadTranslations is required when loading translations from a custom loader"});case on.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];switch(ln(t)){case hn.CUSTOM:case hn.GT:t.projectId||e.push({type:"warning",message:"projectId is required"}),t.devApiKey||t.apiKey||e.push({type:"warning",message:"devApiKey or apiKey is required"});case hn.DISABLED:}return e}(t)),e.push.apply(e,function(t){var e=[];if(!fn(t))return e;var n=t.defaultLocale,o=t.locales,i=t.customMapping;return new Set(nn(nn([],n?[n]:[]),o||[])).forEach(function(t){r.isValidLocale(t,i)||e.push({type:"error",message:"Invalid locale: ".concat(t)})}),e}(t)),e}(t),"I18nManager: "),this.config=(o=fn(n=t),i=function(t){var e=t.defaultLocale,r=t.locales,n=t.customMapping;return{defaultLocale:e,locales:Array.from(new Set(nn([e],r))),customMapping:n||{}}}({defaultLocale:n.defaultLocale||Dr,locales:n.locales||[Dr],customMapping:n.customMapping}),tn({enableI18n:void 0===n.enableI18n||n.enableI18n,projectId:n.projectId,devApiKey:n.devApiKey,apiKey:n.apiKey,runtimeUrl:n.runtimeUrl},o?function(t){var e=r.standardizeLocale(t.defaultLocale),n=t.locales.map(function(e){var n,o,i,a;return("string"==typeof(null===(n=t.customMapping)||void 0===n?void 0:n[e])?null===(o=t.customMapping)||void 0===o?void 0:o[e]:null===(a=null===(i=t.customMapping)||void 0===i?void 0:i[e])||void 0===a?void 0:a.code)?e:r.standardizeLocale(e)}),o=Object.fromEntries(Object.entries(t.customMapping||{}).map(function(t){var e=t[0],n=t[1];return[e,"string"==typeof n?r.standardizeLocale(n):tn(tn({},n),n.code?{code:r.standardizeLocale(n.code)}:{})]}));return{defaultLocale:e,locales:n,customMapping:o}}(i):i)),this.storeAdapter=null!==(e=t.storeAdapter)&&void 0!==e?e:new pn,this.translationsManager=new un(t)}return t.prototype.getAdapterType=function(){return this.storeAdapter.type},t.prototype.getLocale=function(){return this.storeAdapter.getItem("locale")||(an("getLocale() invoked outside of translation context, falling back to default locale"),this.config.defaultLocale)},t.prototype.setLocale=function(t){this.storeAdapter.setItem("locale",t)},t.prototype.getDefaultLocale=function(){return this.config.defaultLocale},t.prototype.getLocales=function(){return this.config.locales},t.prototype.getGTClass=function(){return new r.GT({sourceLocale:this.config.defaultLocale,targetLocale:this.getLocale(),locales:this.config.locales,customMapping:this.config.customMapping,projectId:this.config.projectId,baseUrl:this.config.runtimeUrl||void 0,apiKey:this.config.apiKey,devApiKey:this.config.devApiKey})},t.prototype.isTranslationEnabled=function(){return this.config.enableI18n},t.prototype.getTranslationLoader=function(){return this.translationsManager.getTranslationLoader()},t.prototype.getTranslations=function(){return en(this,arguments,void 0,function(t){return void 0===t&&(t=this.getLocale()),rn(this,function(e){if(!this.config.locales.includes(t))throw new Error("Locale ".concat(t," not found in config"));return[2,this.translationsManager.getTranslations(t)]})})},t.prototype.getTranslationResolver=function(){return en(this,arguments,void 0,function(t){var e;return void 0===t&&(t=this.getLocale()),rn(this,function(r){switch(r.label){case 0:return!1===this.config.enableI18n||t===this.config.defaultLocale?[2,function(t){return t}]:[4,this.translationsManager.getTranslations(t)];case 1:return e=r.sent(),[2,function(t,r){var n=dn(t,r);return e[n]}]}})})},t.prototype.requiresTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass(),n=this.getLocales();return this.config.enableI18n&&r.requiresTranslation(e,t,n)},t.prototype.requiresDialectTranslation=function(t){void 0===t&&(t=this.getLocale());var e=this.getDefaultLocale(),r=this.getGTClass();return this.requiresTranslation(t)&&r.isSameLanguage(e,t)},t}(),yn=void 0;function gn(){return yn||(an("getI18nManager(): Translation failed because I18nManager not initialized."),yn=new vn({defaultLocale:Dr,locales:[Dr]})),yn}Object.defineProperty(exports,"getGT",{enumerable:!0,get:function(){return t.getGT}}),Object.defineProperty(exports,"getMessages",{enumerable:!0,get:function(){return t.getMessages}}),exports.declareStatic=Vr,exports.declareVar=function(t,e){var r=Kr(String(null!=t?t:"")),n=" other {".concat(r,"}"),o="";if(null==e?void 0:e.$name){var i=Kr(e.$name);o=" ".concat("_gt_var_name"," {").concat(i,"}")}return"{".concat(jr,", select,").concat(n).concat(o,"}")},exports.decodeMsg=function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}(e))}catch(t){return null}},exports.decodeVars=function(t){if(!t.includes(jr))return t;var e=[];Gr({icuString:t,shouldVisit:zr,visitor:function(t){var r,n,o,i;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(i=null===(o=t.location)||void 0===o?void 0:o.end.offset)&&void 0!==i?i:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],o=0;o<e.length;o++)n.push(t.slice(r,e[o].start)),n.push(e[o].value),r=e[o].end;return r<t.length&&n.push(t.slice(r)),n.join("")},exports.derive=Xr,exports.getDefaultLocale=function(){return gn().getDefaultLocale()},exports.getLocale=function(){return gn().getLocale()},exports.getLocaleProperties=function(t){return gn().getGTClass().getLocaleProperties(t)},exports.getLocales=function(){return gn().getLocales()},exports.initializeGT=function(e){!function(e){t.setI18nManager(e)}(new K(i(i({},e),{storeAdapter:new V})))},exports.msg=function t(e,n){var o;if("string"!=typeof e)return n?e.map(function(e,r){return t(e,tn(tn({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):e;if(!n)return e;var i=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(n),a=e;try{a=r.formatMessage(e,{locales:[Dr],variables:tn(tn({},i),(o={},o[jr]="other",o))})}catch(n){return an(function(t){return'String interpolation failed for message: "'.concat(t,'".')}(e)),e}var s=e,c=n.$_hash||dn(e,n),h=tn(tn({},n),{$_source:s,$_hash:c}),u=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(h));return"".concat(a,":").concat(u)},exports.withGT=function(e,r){var n=t.getI18nManager();if(!function(t){return t.getAdapterType()===X&&"run"in t&&"function"==typeof t.run}(n))throw new Error("I18nManager not initialized. Invoke configGT() to initialize.");return n.run(e,r)};
|
|
19
19
|
//# sourceMappingURL=index.cjs.min.cjs.map
|