gt-react 10.5.0-alpha.2 → 10.5.0
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 +17 -0
- package/dist/client.cjs.min.cjs +3 -3
- package/dist/client.d.ts +3 -2
- package/dist/client.esm.min.mjs +2 -2
- package/dist/dictionaries/getDictionaryEntry.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.esm.min.mjs +3 -3
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.d.ts +2 -1
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +3 -3
- package/dist/provider/hooks/translation/useCreateInternalUseTranslationsFunction.d.ts.map +1 -1
- package/dist/translation/hooks/useMessages.d.ts +2 -1
- package/dist/translation/hooks/useMessages.d.ts.map +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var r=e.lib.BlockCipherMode.extend();function t(e){
|
|
|
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 r=e,t=r.lib,n=t.WordArray,i=t.Hasher,o=r.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]),l=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]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,r){for(var t=0;t<16;t++){var n=r+t,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,b,x,m,w,B,k,S,O,A,j=this._hash.words,E=f.words,H=u.words,C=a.words,z=s.words,D=c.words,R=l.words;for(w=o=j[0],B=h=j[1],k=b=j[2],S=x=j[3],O=m=j[4],t=0;t<80;t+=1)A=o+e[r+C[t]]|0,A+=t<16?p(h,b,x)+E[0]:t<32?d(h,b,x)+E[1]:t<48?v(h,b,x)+E[2]:t<64?y(h,b,x)+E[3]:g(h,b,x)+E[4],A=(A=_(A|=0,D[t]))+m|0,o=m,m=x,x=_(b,10),b=h,h=A,A=w+e[r+z[t]]|0,A+=t<16?g(B,k,S)+H[0]:t<32?y(B,k,S)+H[1]:t<48?v(B,k,S)+H[2]:t<64?d(B,k,S)+H[3]:p(B,k,S)+H[4],A=(A=_(A|=0,R[t]))+O|0,w=O,O=S,S=_(k,10),k=B,B=A;A=j[1]+b+S|0,j[1]=j[2]+x+O|0,j[2]=j[3]+m+w|0,j[3]=j[4]+o+B|0,j[4]=j[0]+h+k|0,j[0]=A},_doFinalize:function(){var e=this._data,r=e.words,t=8*this._nDataBytes,n=8*e.sigBytes;r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),e.sigBytes=4*(r.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,r,t){return e^r^t}function d(e,r,t){return e&r|~e&t}function v(e,r,t){return(e|~r)^t}function y(e,r,t){return e&t|r&~t}function g(e,r,t){return e^(r|~t)}function _(e,r){return e<<r|e>>>32-r}r.RIPEMD160=i._createHelper(h),r.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160)),ee.exports;var e}(),ne(),function(){return ie||(ie=1,oe.exports=(c=_(),T(),ne(),r=(e=c).lib,t=r.Base,n=r.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=t.extend({cfg:t.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,r){for(var t=this.cfg,i=a.create(t.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,f=t.keySize,u=t.iterations;c.length<f;){var h=i.update(r).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<u;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(h),l[0]++}return o.sigBytes=4*f,o}}),e.PBKDF2=function(e,r,t){return s.create(t).compute(e,r)},c.PBKDF2)),oe.exports;var e,r,t,n,i,o,a,s,c}(),ce(),ue(),de(),ge(),xe(),Be(),function(){return ke?Se.exports:(ke=1,Se.exports=(r=_(),ue(),r.mode.ECB=((e=r.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,r){this._cipher.encryptBlock(e,r)}}),e.Decryptor=e.extend({processBlock:function(e,r){this._cipher.decryptBlock(e,r)}}),e),r.mode.ECB));var e,r}(),function(){return Oe?Ae.exports:(Oe=1,Ae.exports=(e=_(),ue(),e.pad.AnsiX923={pad:function(e,r){var t=e.sigBytes,n=4*r,i=n-t%n,o=t+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}},e.pad.Ansix923));var e}(),function(){return je?Ee.exports:(je=1,Ee.exports=(e=_(),ue(),e.pad.Iso10126={pad:function(r,t){var n=4*t,i=n-r.sigBytes%n;r.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}},e.pad.Iso10126));var e}(),function(){return He?Ce.exports:(He=1,Ce.exports=(e=_(),ue(),e.pad.Iso97971={pad:function(r,t){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,t)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971));var e}(),function(){return ze||(ze=1,De.exports=(e=_(),ue(),e.pad.ZeroPadding={pad:function(e,r){var t=4*r;e.clamp(),e.sigBytes+=t-(e.sigBytes%t||t)},unpad:function(e){var r=e.words,t=e.sigBytes-1;for(t=e.sigBytes-1;t>=0;t--)if(r[t>>>2]>>>24-t%4*8&255){e.sigBytes=t+1;break}}},e.pad.ZeroPadding)),De.exports;var e}(),function(){return Re?Me.exports:(Re=1,Me.exports=(e=_(),ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Pe?Fe.exports:(Pe=1,Fe.exports=(n=_(),ue(),r=(e=n).lib.CipherParams,t=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(t)},parse:function(e){var n=t.parse(e);return r.create({ciphertext:n})}},n.format.Hex));var e,r,t,n}(),function(){return Ve||(Ve=1,Ne.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.BlockCipher,n=r.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var e=[],r=0;r<256;r++)e[r]=r<128?r<<1:r<<1^283;var t=0,n=0;for(r=0;r<256;r++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[t]=d,o[d]=t;var v=e[t],y=e[v],g=e[y],_=257*e[d]^16843008*d;a[t]=_<<24|_>>>8,s[t]=_<<16|_>>>16,c[t]=_<<8|_>>>24,l[t]=_,_=16843009*g^65537*y^257*v^16843008*t,f[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,t?(t=v^e[e[e[g^v]]],n^=e[e[n]]):t=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,r=e.words,t=e.sigBytes/4,n=4*((this._nRounds=t+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<t?o[a]=r[a]:(l=o[a-1],a%t?t>6&&a%t==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/t|0]<<24),o[a]=o[a-t]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:f[i[l>>>24]]^u[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(e,r){this._doCryptBlock(e,r,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,r){var t=e[r+1];e[r+1]=e[r+3],e[r+3]=t,this._doCryptBlock(e,r,this._invKeySchedule,f,u,h,p,o),t=e[r+1],e[r+1]=e[r+3],e[r+3]=t},_doCryptBlock:function(e,r,t,n,i,o,a,s){for(var c=this._nRounds,l=e[r]^t[0],f=e[r+1]^t[1],u=e[r+2]^t[2],h=e[r+3]^t[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&h]^t[p++],y=n[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&l]^t[p++],g=n[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&f]^t[p++],_=n[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&u]^t[p++];l=v,f=y,u=g,h=_}v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^t[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^t[p++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^t[p++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^t[p++],e[r]=v,e[r+1]=y,e[r+2]=g,e[r+3]=_},keySize:8});r.AES=t._createHelper(v)}(),e.AES)),Ne.exports;var e}(),Te(),function(){return Ue||(Ue=1,Ke.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,r=e.words,t=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%t,s=r[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,r){e[r]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,r=this._i,t=this._j,n=0,i=0;i<4;i++){t=(t+e[r=(r+1)%256])%256;var o=e[r];e[r]=e[t],e[t]=o,n|=e[(e[r]+e[t])%256]<<24-8*i}return this._i=r,this._j=t,n}r.RC4=t._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});r.RC4Drop=t._createHelper(a)}(),e.RC4)),Ke.exports;var e}(),function(){return Le||(Le=1,$e.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,r=this.cfg.iv,t=0;t<4;t++)e[t]=16711935&(e[t]<<8|e[t]>>>24)|4278255360&(e[t]<<24|e[t]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,t=0;t<4;t++)c.call(this);for(t=0;t<8;t++)i[t]^=n[t+4&7];if(r){var o=r.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(i[0]^=l,i[1]^=u,i[2]^=f,i[3]^=h,i[4]^=l,i[5]^=u,i[6]^=f,i[7]^=h,t=0;t<4;t++)c.call(this)}},_doProcessBlock:function(e,r){var t=this._X;c.call(this),i[0]=t[0]^t[5]>>>16^t[3]<<16,i[1]=t[2]^t[7]>>>16^t[5]<<16,i[2]=t[4]^t[1]>>>16^t[7]<<16,i[3]=t[6]^t[3]>>>16^t[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,r=this._C,t=0;t<8;t++)o[t]=r[t];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,t=0;t<8;t++){var n=e[t]+r[t],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[t]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=t._createHelper(s)}(),e.Rabbit)),$e.exports;var e}(),function(){return Xe||(Xe=1,Je.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,r=this.cfg.iv,t=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=t[i+4&7];if(r){var o=r.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(n[0]^=l,n[1]^=u,n[2]^=f,n[3]^=h,n[4]^=l,n[5]^=u,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,r){var t=this._X;c.call(this),i[0]=t[0]^t[5]>>>16^t[3]<<16,i[1]=t[2]^t[7]>>>16^t[5]<<16,i[2]=t[4]^t[1]>>>16^t[7]<<16,i[3]=t[6]^t[3]>>>16^t[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,r=this._C,t=0;t<8;t++)o[t]=r[t];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,t=0;t<8;t++){var n=e[t]+r[t],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[t]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=t._createHelper(s)}(),e.RabbitLegacy)),Je.exports;var e}(),Ge())),d.exports),ar=f(or),sr="en",cr=["singular","plural","dual","zero","one","two","few","many","other"];var lr=new(function(){function e(){this.cache=new Map}return e.prototype._generateKey=function(e,r,t){void 0===t&&(t={});var n=Array.isArray(r)?r.join(","):r,i=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(e,":").concat(n,":").concat(i)},e.prototype.get=function(e,r,t){void 0===t&&(t={});var n=this._generateKey(e,r,t);if(!this.cache.has(n)){var i=new Intl[e](r,t);this.cache.set(n,i)}return this.cache.get(n)},e}());function fr(e){var r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){var t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}var ur={variable:"v",number:"n",datetime:"d",currency:"c"};function hr(e){return ur[e]}"function"==typeof SuppressedError&&SuppressedError;const pr={variable:"value",number:"n",datetime:"date",currency:"cost"};function dr(e={},r){var t;if(e.name)return e.name;return`_gt_${pr[r]||"value"}_${null===(t=e["data-_gt"])||void 0===t?void 0:t.id}`}var vr={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const yr=e=>{var r;if(!e)return"";const{type:t,props:n}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:n.href?"a":(null===(r=n["data-_gt"])||void 0===r?void 0:r.id)?`C${n["data-_gt"].id}`:"function"},gr=e=>{const{props:r}=e,t={t:yr(e)};if(r["data-_gt"]){const e=r["data-_gt"],n=e.transformation;if("variable"===n){const t=e.variableType||"variable",n=dr(r,t),i=hr(t);return{i:e.id,k:n,v:i}}t.i=e.id,t.d=((e,r,t)=>{let n=Object.entries(vr).reduce((e,[t,n])=>(r[n]&&(e[t]=r[n]),e),{});if("plural"===e&&t){const e={};Object.entries(t).forEach(([r,t])=>{e[r]=br(t)}),n=Object.assign(Object.assign({},n),{b:e,t:"p"})}if("branch"===e&&t){const e={};Object.entries(t).forEach(([r,t])=>{e[r]=br(t)}),n=Object.assign(Object.assign({},n),{b:e,t:"b"})}return Object.keys(n).length?n:void 0})(n,r,e.branches);let i=Object.entries(vr).reduce((e,[t,n])=>(r[n]&&(e[t]=r[n]),e),{});if("plural"===n&&e.branches){const r={};Object.entries(e.branches).forEach(([e,t])=>{r[e]=br(t)}),i=Object.assign(Object.assign({},i),{b:r,t:"p"})}if("branch"===n&&e.branches){const r={};Object.entries(e.branches).forEach(([e,t])=>{r[e]=br(t)}),i=Object.assign(Object.assign({},i),{b:r,t:"b"})}t.d=Object.keys(i).length?i:void 0}return r.children&&(t.c=br(r.children)),t},_r=r=>{return t=r,e.isValidElement(t)?gr(r):"number"==typeof r?r.toString():r;var t};function br(e){return Array.isArray(e)?e.map(_r):_r(e)}function xr(e,r,t){let n="",i=null;return"number"==typeof e&&!i&&t&&(n=function(e,r,t){void 0===r&&(r=cr),void 0===t&&(t=["en"]);var n=lr.get("PluralRules",t).select(e),i=Math.abs(e);if(0===i&&r.includes("zero"))return"zero";if(1===i){if(r.includes("singular"))return"singular";if(r.includes("one"))return"one"}if("one"===n&&r.includes("singular"))return"singular";if(2===i){if(r.includes("dual"))return"dual";if(r.includes("two"))return"two"}return"two"===n&&r.includes("dual")?"dual":r.includes(n)?n:"two"===n&&r.includes("dual")?"dual":"two"===n&&r.includes("plural")?"plural":"two"===n&&r.includes("other")?"other":"few"===n&&r.includes("plural")?"plural":"few"===n&&r.includes("other")?"other":"many"===n&&r.includes("plural")?"plural":"many"===n&&r.includes("other")?"other":"other"===n&&r.includes("plural")?"plural":""}(e,Object.keys(t),r)),n&&!i&&(i=t[n]),i}function mr(e){var r;return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===(null===(r=e["data-_gt"])||void 0===r?void 0:r.transformation)}function wr(e){var r;const t=(null===(r=e["data-_gt"])||void 0===r?void 0:r.variableType)||"variable";return{variableName:dr(e,t),variableType:hr(t),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const r=Object.assign(Object.assign({},void 0!==e.currency&&{currency:e.currency}),void 0!==e.options&&e.options);return Object.keys(r).length?r:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function Br(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function kr({children:r,defaultLocale:t=sr,renderVariable:n}){const i=r=>e.isValidElement(r)?(r=>{const i=Br(r);if(mr(r.props)){const{variableType:e,variableValue:i,variableOptions:o}=wr(r.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[t]})}if("plural"===(null==i?void 0:i.transformation)){const e=i.branches||{};return o(xr(r.props.n,[t],e)||r.props.children)}if("branch"===(null==i?void 0:i.transformation)){let e=r.props,{children:t,branch:n,"data-_gt":s}=e,c=a(e,["children","branch","data-_gt"]);return c=i.branches||{},o(void 0!==c[n]?c[n]:t)}return"fragment"===(null==i?void 0:i.transformation)?e.createElement(e.Fragment,{key:r.props.key,children:o(r.props.children)}):r.props.children?e.cloneElement(r,Object.assign(Object.assign({},r.props),{"data-_gt":void 0,children:o(r.props.children)})):e.cloneElement(r,Object.assign(Object.assign({},r.props),{"data-_gt":void 0}))})(r):r,o=r=>Array.isArray(r)?e.Children.map(r,i):i(r);return o(r)}function Sr({sourceElement:r,targetElement:t,locales:n=[sr],renderVariable:i}){var o,a;const{props:s}=r,c=s["data-_gt"],l=null==c?void 0:c.transformation,f=t.d,u={};if(f&&Object.entries(vr).forEach(([e,r])=>{f[e]&&(u[r]=f[e])}),"plural"===l){const e=r.props.n;return Or({source:xr(e,n,c.branches||{})||r.props.children,target:xr(e,n,(null===(o=t.d)||void 0===o?void 0:o.b)||{})||t.c,locales:n,renderVariable:i})}if("branch"===l){const{branch:e,children:r}=s;return Or({source:(c.branches||{})[e]||r,target:((null===(a=t.d)||void 0===a?void 0:a.b)||{})[e]||t.c,locales:n,renderVariable:i})}return"fragment"===l&&t.c?e.createElement(e.Fragment,{key:r.props.key,children:Or({source:s.children,target:t.c,locales:n,renderVariable:i})}):(null==s?void 0:s.children)&&(null==t?void 0:t.c)?e.cloneElement(r,Object.assign(Object.assign(Object.assign({},s),u),{"data-_gt":void 0,children:Or({source:s.children,target:t.c,locales:n,renderVariable:i})})):kr({children:r,defaultLocale:n[0],renderVariable:i})}function Or({source:t,target:n,locales:i=[sr],renderVariable:o}){if(null==n&&t)return kr({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const a={},s={},c=t.filter(r=>{if(e.isValidElement(r)){if(!mr(r.props))return!0;{const{variableName:e,variableValue:t,variableOptions:n}=wr(r.props);a[e]=t,s[e]=n}}return!1}),l=e=>c.find(r=>{const t=Br(r);if(void 0!==(null==t?void 0:t.id)){return t.id===e.i}return!1})||c.shift();return n.map((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(fr(t))return r.jsx(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i})},`var_${n}`);const c=l(t);return c?r.jsx(e.Fragment,{children:Sr({sourceElement:c,targetElement:t,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=fr(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Sr({sourceElement:t,targetElement:n,locales:i,renderVariable:o});if(mr(t.props)){const{variableValue:e,variableOptions:r,variableType:n}=wr(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i})}}}return kr({children:t,defaultLocale:i[0],renderVariable:o})}const Ar={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};var jr=function(){return jr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},jr.apply(this,arguments)};function Er(e){return ar.SHA256(e).toString(ar.enc.Hex).slice(0,16)}"function"==typeof SuppressedError&&SuppressedError;var Hr=function(e){if(e&&"object"==typeof e){var r={};if("c"in e&&e.c&&(r.c=Cr(e.c)),"d"in e){var t=null==e?void 0:e.d;(null==t?void 0:t.b)&&(r.b=Object.fromEntries(Object.entries(t.b).map(function(e){return[e[0],Cr(e[1])]}))),(null==t?void 0:t.t)&&(r.t=t.t)}return function(e){var r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){var t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}(e)?jr({k:e.k},e.v&&{v:e.v}):r}return e};function Cr(e){return Array.isArray(e)?e.map(Hr):Hr(e)}const zr=e=>"string"==typeof e||Array.isArray(e),Dr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);const Rr="function"==typeof i.use;exports.addGTIdentifier=function r(t,n=0){let i=n;const o=e=>{const{type:t,props:n}=e;i+=1;const o={id:i};let s;try{s="function"==typeof t&&t._gtt||""}catch(e){}if(s){const e=s.split("-");if("translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=(null==e?void 0:e[1])||"variable"),"plural"===e[0]){const e=Object.entries(n).reduce((e,[t,n])=>(function(e){return cr.includes(e)}(t)&&(e[t]=r(n,i)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:t}=n,s=a(n,["children","branch"]),c=Object.entries(s).reduce((e,[t,n])=>(e[t]=r(n,i),e),{});Object.keys(c).length&&(o.branches=c)}o.transformation=e[0]}return o};function s(r){return e.isValidElement(r)?function(r){const{props:t}=r,n=o(r),i=Object.assign(Object.assign({},t),{"data-_gt":n});return t.children&&!n.variableType&&(i.children=c(t.children)),r.type===e.Fragment&&(i["data-_gt"].transformation="fragment"),e.cloneElement(r,i)}(r):r}function c(r){return Array.isArray(r)?e.Children.map(r,s):s(r)}return c(t)},exports.decodeMsg=function(e){return e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e},exports.decodeOptions=function(e){if(-1===e.lastIndexOf(":"))return null;const r=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(Buffer.from(r,"base64").toString())}catch(e){return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.defaultRenderSettings=Ar,exports.flattenDictionary=function e(r,t=""){const n={};for(const i in r)if(r.hasOwnProperty(i)){const a=t?`${t}.${i}`:i;if("object"!=typeof r[i]||null===r[i]||Array.isArray(r[i])){if(n.hasOwnProperty(a))throw new Error(o(a));n[a]=r[i]}else{const t=e(r[i],a);for(const e in t){if(n.hasOwnProperty(e))throw new Error(o(e));n[e]=t[e]}}}return n},exports.getDictionaryEntry=function(r,t){let n=r;const i=t.split(".");for(const r of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[r]}return n},exports.getEntryAndMetadata=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}},exports.getPluralBranch=xr,exports.getVariableName=dr,exports.getVariableProps=wr,exports.isValidDictionaryEntry=function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const r=null==e?void 0:e[1];if(void 0===r)return!0;if(r&&"object"==typeof r)return!0}return!1},exports.isVariableObject=function(e){const r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){const e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1},exports.mergeDictionaries=function e(r,t){const n=Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([,e])=>zr(e)))),Object.fromEntries(Object.entries(t).filter(([,e])=>zr(e)))),i=Object.entries(r).filter(([,e])=>Dr(e)).map(([e])=>e),o=Object.entries(t).filter(([,e])=>Dr(e)).map(([e])=>e),a=new Set([...i,...o]);for(const i of a)n[i]=e(r[i]||{},t[i]||{});return n},exports.msg=function(e,r){const n=(null==r?void 0:r.$_hash)||function(e,r){var t=e.source,n=e.context,i=e.id,o=e.dataFormat;void 0===r&&(r=Er);var a={};return a.source="JSX"===o?Cr(t):t,a=jr(jr(jr(jr({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),r(p(a))}(Object.assign(Object.assign(Object.assign({source:e},(null==r?void 0:r.$context)&&{context:r.$context}),(null==r?void 0:r.$id)&&{id:r.$id}),{dataFormat:"ICU"}));r?(r.$_hash=n,r.$_source=e):r={$_hash:n,$_source:e};const i=Buffer.from(JSON.stringify(r)).toString("base64");let o=e;(function(e){let r=0,t=!1;for(;r<e.length;){const n=e[r];if("'"!==n){if(!t&&"{"===n){let t=r+1,n="";for(;t<e.length&&"}"!==e[t];)n+=e[t],t++;if(t<e.length&&n.trim().length>0)return!0;r=t<e.length?t+1:t;continue}r++}else{if(r+1<e.length&&"'"===e[r+1]){r+=2;continue}t=!t,r++}}return!1})(e)&&Object.keys(r||{}).length>2&&(o=t.formatMessage(e,{locales:[sr],variables:r}));let a=o;return i&&(a+=`:${i}`),a},exports.reactHasUse=Rr,exports.renderDefaultChildren=kr,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Or,exports.writeChildrenAsObjects=br;
|
|
18
|
+
function(){var r=e,t=r.lib,n=t.WordArray,i=t.Hasher,o=r.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]),l=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]),f=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,r){for(var t=0;t<16;t++){var n=r+t,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,b,x,m,w,B,k,S,O,A,j=this._hash.words,E=f.words,H=u.words,C=a.words,z=s.words,D=c.words,R=l.words;for(w=o=j[0],B=h=j[1],k=b=j[2],S=x=j[3],O=m=j[4],t=0;t<80;t+=1)A=o+e[r+C[t]]|0,A+=t<16?p(h,b,x)+E[0]:t<32?d(h,b,x)+E[1]:t<48?v(h,b,x)+E[2]:t<64?y(h,b,x)+E[3]:g(h,b,x)+E[4],A=(A=_(A|=0,D[t]))+m|0,o=m,m=x,x=_(b,10),b=h,h=A,A=w+e[r+z[t]]|0,A+=t<16?g(B,k,S)+H[0]:t<32?y(B,k,S)+H[1]:t<48?v(B,k,S)+H[2]:t<64?d(B,k,S)+H[3]:p(B,k,S)+H[4],A=(A=_(A|=0,R[t]))+O|0,w=O,O=S,S=_(k,10),k=B,B=A;A=j[1]+b+S|0,j[1]=j[2]+x+O|0,j[2]=j[3]+m+w|0,j[3]=j[4]+o+B|0,j[4]=j[0]+h+k|0,j[0]=A},_doFinalize:function(){var e=this._data,r=e.words,t=8*this._nDataBytes,n=8*e.sigBytes;r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),e.sigBytes=4*(r.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,r,t){return e^r^t}function d(e,r,t){return e&r|~e&t}function v(e,r,t){return(e|~r)^t}function y(e,r,t){return e&t|r&~t}function g(e,r,t){return e^(r|~t)}function _(e,r){return e<<r|e>>>32-r}r.RIPEMD160=i._createHelper(h),r.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160)),ee.exports;var e}(),ne(),function(){return ie||(ie=1,oe.exports=(c=_(),T(),ne(),r=(e=c).lib,t=r.Base,n=r.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=t.extend({cfg:t.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,r){for(var t=this.cfg,i=a.create(t.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,f=t.keySize,u=t.iterations;c.length<f;){var h=i.update(r).finalize(s);i.reset();for(var p=h.words,d=p.length,v=h,y=1;y<u;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(h),l[0]++}return o.sigBytes=4*f,o}}),e.PBKDF2=function(e,r,t){return s.create(t).compute(e,r)},c.PBKDF2)),oe.exports;var e,r,t,n,i,o,a,s,c}(),ce(),ue(),de(),ge(),xe(),Be(),function(){return ke?Se.exports:(ke=1,Se.exports=(r=_(),ue(),r.mode.ECB=((e=r.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,r){this._cipher.encryptBlock(e,r)}}),e.Decryptor=e.extend({processBlock:function(e,r){this._cipher.decryptBlock(e,r)}}),e),r.mode.ECB));var e,r}(),function(){return Oe?Ae.exports:(Oe=1,Ae.exports=(e=_(),ue(),e.pad.AnsiX923={pad:function(e,r){var t=e.sigBytes,n=4*r,i=n-t%n,o=t+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}},e.pad.Ansix923));var e}(),function(){return je?Ee.exports:(je=1,Ee.exports=(e=_(),ue(),e.pad.Iso10126={pad:function(r,t){var n=4*t,i=n-r.sigBytes%n;r.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}},e.pad.Iso10126));var e}(),function(){return He?Ce.exports:(He=1,Ce.exports=(e=_(),ue(),e.pad.Iso97971={pad:function(r,t){r.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(r,t)},unpad:function(r){e.pad.ZeroPadding.unpad(r),r.sigBytes--}},e.pad.Iso97971));var e}(),function(){return ze||(ze=1,De.exports=(e=_(),ue(),e.pad.ZeroPadding={pad:function(e,r){var t=4*r;e.clamp(),e.sigBytes+=t-(e.sigBytes%t||t)},unpad:function(e){var r=e.words,t=e.sigBytes-1;for(t=e.sigBytes-1;t>=0;t--)if(r[t>>>2]>>>24-t%4*8&255){e.sigBytes=t+1;break}}},e.pad.ZeroPadding)),De.exports;var e}(),function(){return Re?Me.exports:(Re=1,Me.exports=(e=_(),ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Pe?Fe.exports:(Pe=1,Fe.exports=(n=_(),ue(),r=(e=n).lib.CipherParams,t=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(t)},parse:function(e){var n=t.parse(e);return r.create({ciphertext:n})}},n.format.Hex));var e,r,t,n}(),function(){return Ve||(Ve=1,Ne.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.BlockCipher,n=r.algo,i=[],o=[],a=[],s=[],c=[],l=[],f=[],u=[],h=[],p=[];!function(){for(var e=[],r=0;r<256;r++)e[r]=r<128?r<<1:r<<1^283;var t=0,n=0;for(r=0;r<256;r++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[t]=d,o[d]=t;var v=e[t],y=e[v],g=e[y],_=257*e[d]^16843008*d;a[t]=_<<24|_>>>8,s[t]=_<<16|_>>>16,c[t]=_<<8|_>>>24,l[t]=_,_=16843009*g^65537*y^257*v^16843008*t,f[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,h[d]=_<<8|_>>>24,p[d]=_,t?(t=v^e[e[e[g^v]]],n^=e[e[n]]):t=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,r=e.words,t=e.sigBytes/4,n=4*((this._nRounds=t+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<t?o[a]=r[a]:(l=o[a-1],a%t?t>6&&a%t==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=d[a/t|0]<<24),o[a]=o[a-t]^l);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:f[i[l>>>24]]^u[i[l>>>16&255]]^h[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(e,r){this._doCryptBlock(e,r,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,r){var t=e[r+1];e[r+1]=e[r+3],e[r+3]=t,this._doCryptBlock(e,r,this._invKeySchedule,f,u,h,p,o),t=e[r+1],e[r+1]=e[r+3],e[r+3]=t},_doCryptBlock:function(e,r,t,n,i,o,a,s){for(var c=this._nRounds,l=e[r]^t[0],f=e[r+1]^t[1],u=e[r+2]^t[2],h=e[r+3]^t[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&h]^t[p++],y=n[f>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&l]^t[p++],g=n[u>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&f]^t[p++],_=n[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&u]^t[p++];l=v,f=y,u=g,h=_}v=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^t[p++],y=(s[f>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^t[p++],g=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^t[p++],_=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&u])^t[p++],e[r]=v,e[r+1]=y,e[r+2]=g,e[r+3]=_},keySize:8});r.AES=t._createHelper(v)}(),e.AES)),Ne.exports;var e}(),Te(),function(){return Ue||(Ue=1,Ke.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,r=e.words,t=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%t,s=r[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,r){e[r]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,r=this._i,t=this._j,n=0,i=0;i<4;i++){t=(t+e[r=(r+1)%256])%256;var o=e[r];e[r]=e[t],e[t]=o,n|=e[(e[r]+e[t])%256]<<24-8*i}return this._i=r,this._j=t,n}r.RC4=t._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});r.RC4Drop=t._createHelper(a)}(),e.RC4)),Ke.exports;var e}(),function(){return Le||(Le=1,$e.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,r=this.cfg.iv,t=0;t<4;t++)e[t]=16711935&(e[t]<<8|e[t]>>>24)|4278255360&(e[t]<<24|e[t]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,t=0;t<4;t++)c.call(this);for(t=0;t<8;t++)i[t]^=n[t+4&7];if(r){var o=r.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(i[0]^=l,i[1]^=u,i[2]^=f,i[3]^=h,i[4]^=l,i[5]^=u,i[6]^=f,i[7]^=h,t=0;t<4;t++)c.call(this)}},_doProcessBlock:function(e,r){var t=this._X;c.call(this),i[0]=t[0]^t[5]>>>16^t[3]<<16,i[1]=t[2]^t[7]>>>16^t[5]<<16,i[2]=t[4]^t[1]>>>16^t[7]<<16,i[3]=t[6]^t[3]>>>16^t[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,r=this._C,t=0;t<8;t++)o[t]=r[t];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,t=0;t<8;t++){var n=e[t]+r[t],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[t]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.Rabbit=t._createHelper(s)}(),e.Rabbit)),$e.exports;var e}(),function(){return Xe||(Xe=1,Je.exports=(e=_(),H(),P(),ce(),ue(),function(){var r=e,t=r.lib.StreamCipher,n=r.algo,i=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,r=this.cfg.iv,t=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=t[i+4&7];if(r){var o=r.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=l>>>16|4294901760&f,h=f<<16|65535&l;for(n[0]^=l,n[1]^=u,n[2]^=f,n[3]^=h,n[4]^=l,n[5]^=u,n[6]^=f,n[7]^=h,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,r){var t=this._X;c.call(this),i[0]=t[0]^t[5]>>>16^t[3]<<16,i[1]=t[2]^t[7]>>>16^t[5]<<16,i[2]=t[4]^t[1]>>>16^t[7]<<16,i[3]=t[6]^t[3]>>>16^t[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,r=this._C,t=0;t<8;t++)o[t]=r[t];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<o[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<o[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<o[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<o[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<o[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<o[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<o[6]>>>0?1:0)|0,this._b=r[7]>>>0<o[7]>>>0?1:0,t=0;t<8;t++){var n=e[t]+r[t],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[t]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}r.RabbitLegacy=t._createHelper(s)}(),e.RabbitLegacy)),Je.exports;var e}(),Ge())),d.exports),ar=f(or),sr="en",cr=["singular","plural","dual","zero","one","two","few","many","other"];var lr=new(function(){function e(){this.cache=new Map}return e.prototype._generateKey=function(e,r,t){void 0===t&&(t={});var n=Array.isArray(r)?r.join(","):r,i=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(e,":").concat(n,":").concat(i)},e.prototype.get=function(e,r,t){void 0===t&&(t={});var n=this._generateKey(e,r,t);if(!this.cache.has(n)){var i=new Intl[e](r,t);this.cache.set(n,i)}return this.cache.get(n)},e}());function fr(e){var r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){var t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}var ur={variable:"v",number:"n",datetime:"d",currency:"c"};function hr(e){return ur[e]}"function"==typeof SuppressedError&&SuppressedError;const pr={variable:"value",number:"n",datetime:"date",currency:"cost"};function dr(e={},r){var t;if(e.name)return e.name;return`_gt_${pr[r]||"value"}_${null===(t=e["data-_gt"])||void 0===t?void 0:t.id}`}var vr={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const yr=e=>{var r;if(!e)return"";const{type:t,props:n}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:n.href?"a":(null===(r=n["data-_gt"])||void 0===r?void 0:r.id)?`C${n["data-_gt"].id}`:"function"},gr=e=>{const{props:r}=e,t={t:yr(e)};if(r["data-_gt"]){const e=r["data-_gt"],n=e.transformation;if("variable"===n){const t=e.variableType||"variable",n=dr(r,t),i=hr(t);return{i:e.id,k:n,v:i}}t.i=e.id,t.d=((e,r,t)=>{let n=Object.entries(vr).reduce((e,[t,n])=>(r[n]&&(e[t]=r[n]),e),{});if("plural"===e&&t){const e={};Object.entries(t).forEach(([r,t])=>{e[r]=br(t)}),n=Object.assign(Object.assign({},n),{b:e,t:"p"})}if("branch"===e&&t){const e={};Object.entries(t).forEach(([r,t])=>{e[r]=br(t)}),n=Object.assign(Object.assign({},n),{b:e,t:"b"})}return Object.keys(n).length?n:void 0})(n,r,e.branches);let i=Object.entries(vr).reduce((e,[t,n])=>(r[n]&&(e[t]=r[n]),e),{});if("plural"===n&&e.branches){const r={};Object.entries(e.branches).forEach(([e,t])=>{r[e]=br(t)}),i=Object.assign(Object.assign({},i),{b:r,t:"p"})}if("branch"===n&&e.branches){const r={};Object.entries(e.branches).forEach(([e,t])=>{r[e]=br(t)}),i=Object.assign(Object.assign({},i),{b:r,t:"b"})}t.d=Object.keys(i).length?i:void 0}return r.children&&(t.c=br(r.children)),t},_r=r=>{return t=r,e.isValidElement(t)?gr(r):"number"==typeof r?r.toString():r;var t};function br(e){return Array.isArray(e)?e.map(_r):_r(e)}function xr(e,r,t){let n="",i=null;return"number"==typeof e&&!i&&t&&(n=function(e,r,t){void 0===r&&(r=cr),void 0===t&&(t=["en"]);var n=lr.get("PluralRules",t).select(e),i=Math.abs(e);if(0===i&&r.includes("zero"))return"zero";if(1===i){if(r.includes("singular"))return"singular";if(r.includes("one"))return"one"}if("one"===n&&r.includes("singular"))return"singular";if(2===i){if(r.includes("dual"))return"dual";if(r.includes("two"))return"two"}return"two"===n&&r.includes("dual")?"dual":r.includes(n)?n:"two"===n&&r.includes("dual")?"dual":"two"===n&&r.includes("plural")?"plural":"two"===n&&r.includes("other")?"other":"few"===n&&r.includes("plural")?"plural":"few"===n&&r.includes("other")?"other":"many"===n&&r.includes("plural")?"plural":"many"===n&&r.includes("other")?"other":"other"===n&&r.includes("plural")?"plural":""}(e,Object.keys(t),r)),n&&!i&&(i=t[n]),i}function mr(e){var r;return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===(null===(r=e["data-_gt"])||void 0===r?void 0:r.transformation)}function wr(e){var r;const t=(null===(r=e["data-_gt"])||void 0===r?void 0:r.variableType)||"variable";return{variableName:dr(e,t),variableType:hr(t),variableValue:void 0!==e.value?e.value:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const r=Object.assign(Object.assign({},void 0!==e.currency&&{currency:e.currency}),void 0!==e.options&&e.options);return Object.keys(r).length?r:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function Br(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function kr({children:r,defaultLocale:t=sr,renderVariable:n}){const i=r=>e.isValidElement(r)?(r=>{const i=Br(r);if(mr(r.props)){const{variableType:e,variableValue:i,variableOptions:o}=wr(r.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[t]})}if("plural"===(null==i?void 0:i.transformation)){const e=i.branches||{};return o(xr(r.props.n,[t],e)||r.props.children)}if("branch"===(null==i?void 0:i.transformation)){let e=r.props,{children:t,branch:n,"data-_gt":s}=e,c=a(e,["children","branch","data-_gt"]);return c=i.branches||{},o(void 0!==c[n]?c[n]:t)}return"fragment"===(null==i?void 0:i.transformation)?e.createElement(e.Fragment,{key:r.props.key,children:o(r.props.children)}):r.props.children?e.cloneElement(r,Object.assign(Object.assign({},r.props),{"data-_gt":void 0,children:o(r.props.children)})):e.cloneElement(r,Object.assign(Object.assign({},r.props),{"data-_gt":void 0}))})(r):r,o=r=>Array.isArray(r)?e.Children.map(r,i):i(r);return o(r)}function Sr({sourceElement:r,targetElement:t,locales:n=[sr],renderVariable:i}){var o,a;const{props:s}=r,c=s["data-_gt"],l=null==c?void 0:c.transformation,f=t.d,u={};if(f&&Object.entries(vr).forEach(([e,r])=>{f[e]&&(u[r]=f[e])}),"plural"===l){const e=r.props.n;return Or({source:xr(e,n,c.branches||{})||r.props.children,target:xr(e,n,(null===(o=t.d)||void 0===o?void 0:o.b)||{})||t.c,locales:n,renderVariable:i})}if("branch"===l){const{branch:e,children:r}=s;return Or({source:(c.branches||{})[e]||r,target:((null===(a=t.d)||void 0===a?void 0:a.b)||{})[e]||t.c,locales:n,renderVariable:i})}return"fragment"===l&&t.c?e.createElement(e.Fragment,{key:r.props.key,children:Or({source:s.children,target:t.c,locales:n,renderVariable:i})}):(null==s?void 0:s.children)&&(null==t?void 0:t.c)?e.cloneElement(r,Object.assign(Object.assign(Object.assign({},s),u),{"data-_gt":void 0,children:Or({source:s.children,target:t.c,locales:n,renderVariable:i})})):kr({children:r,defaultLocale:n[0],renderVariable:i})}function Or({source:t,target:n,locales:i=[sr],renderVariable:o}){if(null==n&&t)return kr({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const a={},s={},c=t.filter(r=>{if(e.isValidElement(r)){if(!mr(r.props))return!0;{const{variableName:e,variableValue:t,variableOptions:n}=wr(r.props);a[e]=t,s[e]=n}}return!1}),l=e=>c.find(r=>{const t=Br(r);if(void 0!==(null==t?void 0:t.id)){return t.id===e.i}return!1})||c.shift();return n.map((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(fr(t))return r.jsx(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i})},`var_${n}`);const c=l(t);return c?r.jsx(e.Fragment,{children:Sr({sourceElement:c,targetElement:t,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=fr(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Sr({sourceElement:t,targetElement:n,locales:i,renderVariable:o});if(mr(t.props)){const{variableValue:e,variableOptions:r,variableType:n}=wr(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i})}}}return kr({children:t,defaultLocale:i[0],renderVariable:o})}const Ar={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};var jr=function(){return jr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},jr.apply(this,arguments)};function Er(e){return ar.SHA256(e).toString(ar.enc.Hex).slice(0,16)}"function"==typeof SuppressedError&&SuppressedError;var Hr=function(e){if(e&&"object"==typeof e){var r={};if("c"in e&&e.c&&(r.c=Cr(e.c)),"d"in e){var t=null==e?void 0:e.d;(null==t?void 0:t.b)&&(r.b=Object.fromEntries(Object.entries(t.b).map(function(e){return[e[0],Cr(e[1])]}))),(null==t?void 0:t.t)&&(r.t=t.t)}return function(e){var r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){var t=Object.keys(r);if(1===t.length)return!0;if(2===t.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===t.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1}(e)?jr({k:e.k},e.v&&{v:e.v}):r}return e};function Cr(e){return Array.isArray(e)?e.map(Hr):Hr(e)}const zr=e=>"string"==typeof e||Array.isArray(e),Dr=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);const Rr="function"==typeof i.use;exports.addGTIdentifier=function r(t,n=0){let i=n;const o=e=>{const{type:t,props:n}=e;i+=1;const o={id:i};let s;try{s="function"==typeof t&&t._gtt||""}catch(e){}if(s){const e=s.split("-");if("translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=(null==e?void 0:e[1])||"variable"),"plural"===e[0]){const e=Object.entries(n).reduce((e,[t,n])=>(function(e){return cr.includes(e)}(t)&&(e[t]=r(n,i)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:t}=n,s=a(n,["children","branch"]),c=Object.entries(s).reduce((e,[t,n])=>(e[t]=r(n,i),e),{});Object.keys(c).length&&(o.branches=c)}o.transformation=e[0]}return o};function s(r){return e.isValidElement(r)?function(r){const{props:t}=r,n=o(r),i=Object.assign(Object.assign({},t),{"data-_gt":n});return t.children&&!n.variableType&&(i.children=c(t.children)),r.type===e.Fragment&&(i["data-_gt"].transformation="fragment"),e.cloneElement(r,i)}(r):r}function c(r){return Array.isArray(r)?e.Children.map(r,s):s(r)}return c(t)},exports.decodeMsg=function(e){return e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e},exports.decodeOptions=function(e){if(-1===e.lastIndexOf(":"))return null;const r=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(Buffer.from(r,"base64").toString())}catch(e){return null}},exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.defaultRenderSettings=Ar,exports.flattenDictionary=function e(r,t=""){const n={};for(const i in r)if(r.hasOwnProperty(i)){const a=t?`${t}.${i}`:i;if("object"!=typeof r[i]||null===r[i]||Array.isArray(r[i])){if(n.hasOwnProperty(a))throw new Error(o(a));n[a]=r[i]}else{const t=e(r[i],a);for(const e in t){if(n.hasOwnProperty(e))throw new Error(o(e));n[e]=t[e]}}}return n},exports.getDictionaryEntry=function(e,r){let t=e;const n=r.split(".");for(const e of n){if("object"!=typeof t&&!Array.isArray(t))return;t=t[e]}return t},exports.getEntryAndMetadata=function(e){if(Array.isArray(e)){if(1===e.length)return{entry:e[0]};if(2===e.length)return{entry:e[0],metadata:e[1]}}return{entry:e}},exports.getPluralBranch=xr,exports.getVariableName=dr,exports.getVariableProps=wr,exports.isValidDictionaryEntry=function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const r=null==e?void 0:e[1];if(void 0===r)return!0;if(r&&"object"==typeof r)return!0}return!1},exports.isVariableObject=function(e){const r=e;if(r&&"object"==typeof r&&"string"==typeof r.k){const e=Object.keys(r);if(1===e.length)return!0;if(2===e.length){if("number"==typeof r.i)return!0;if("string"==typeof r.v)return!0}if(3===e.length&&"string"==typeof r.v&&"number"==typeof r.i)return!0}return!1},exports.mergeDictionaries=function e(r,t){const n=Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([,e])=>zr(e)))),Object.fromEntries(Object.entries(t).filter(([,e])=>zr(e)))),i=Object.entries(r).filter(([,e])=>Dr(e)).map(([e])=>e),o=Object.entries(t).filter(([,e])=>Dr(e)).map(([e])=>e),a=new Set([...i,...o]);for(const i of a)n[i]=e(r[i]||{},t[i]||{});return n},exports.msg=function(e,r){const n=(null==r?void 0:r.$_hash)||function(e,r){var t=e.source,n=e.context,i=e.id,o=e.dataFormat;void 0===r&&(r=Er);var a={};return a.source="JSX"===o?Cr(t):t,a=jr(jr(jr(jr({},a),i&&{id:i}),n&&{context:n}),o&&{dataFormat:o}),r(p(a))}(Object.assign(Object.assign(Object.assign({source:e},(null==r?void 0:r.$context)&&{context:r.$context}),(null==r?void 0:r.$id)&&{id:r.$id}),{dataFormat:"ICU"}));r?(r.$_hash=n,r.$_source=e):r={$_hash:n,$_source:e};const i=Buffer.from(JSON.stringify(r)).toString("base64");let o=e;(function(e){let r=0,t=!1;for(;r<e.length;){const n=e[r];if("'"!==n){if(!t&&"{"===n){let t=r+1,n="";for(;t<e.length&&"}"!==e[t];)n+=e[t],t++;if(t<e.length&&n.trim().length>0)return!0;r=t<e.length?t+1:t;continue}r++}else{if(r+1<e.length&&"'"===e[r+1]){r+=2;continue}t=!t,r++}}return!1})(e)&&Object.keys(r||{}).length>2&&(o=t.formatMessage(e,{locales:[sr],variables:r}));let a=o;return i&&(a+=`:${i}`),a},exports.reactHasUse=Rr,exports.renderDefaultChildren=kr,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Or,exports.writeChildrenAsObjects=br;
|
package/dist/internal.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import renderTranslatedChildren from './rendering/renderTranslatedChildren';
|
|
|
12
12
|
import { defaultRenderSettings } from './rendering/defaultRenderSettings';
|
|
13
13
|
import renderSkeleton from './rendering/renderSkeleton';
|
|
14
14
|
import { msg, decodeMsg, decodeOptions } from './messages/messages';
|
|
15
|
+
import { MFunctionType, TFunctionType } from './types/types';
|
|
15
16
|
import { Dictionary, RenderMethod, TranslatedChildren, Translations, RenderVariable, VariableProps, DictionaryEntry, FlattenedDictionary, MetaEntry, Entry, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, LocalesDictionary, DictionaryContent, DictionaryObject, CustomLoader, _Message, _Messages } from './types/types';
|
|
16
17
|
import { GTContextType } from './types/context';
|
|
17
18
|
import { ClientProviderProps } from './types/config';
|
|
@@ -19,5 +20,5 @@ import { defaultLocaleCookieName, defaultRegionCookieName } from './utils/cookie
|
|
|
19
20
|
import mergeDictionaries from './dictionaries/mergeDictionaries';
|
|
20
21
|
import { GTProp } from 'generaltranslation/types';
|
|
21
22
|
import { reactHasUse } from './promises/reactHasUse';
|
|
22
|
-
export { addGTIdentifier, writeChildrenAsObjects, isVariableObject, Dictionary, flattenDictionary, getDictionaryEntry, isValidDictionaryEntry, getVariableProps, DictionaryEntry, FlattenedDictionary, MetaEntry as Metadata, getPluralBranch, getEntryAndMetadata, getVariableName, renderDefaultChildren, renderTranslatedChildren, renderSkeleton, RenderMethod, defaultRenderSettings, GTProp, Entry, TranslatedChildren, Translations, GTContextType, ClientProviderProps, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, DictionaryContent, DictionaryObject, LocalesDictionary, CustomLoader, RenderVariable, VariableProps, defaultLocaleCookieName, defaultRegionCookieName, mergeDictionaries, _Message, _Messages, reactHasUse, msg, decodeMsg, decodeOptions, };
|
|
23
|
+
export { addGTIdentifier, writeChildrenAsObjects, isVariableObject, Dictionary, flattenDictionary, getDictionaryEntry, isValidDictionaryEntry, getVariableProps, DictionaryEntry, FlattenedDictionary, MetaEntry as Metadata, getPluralBranch, getEntryAndMetadata, getVariableName, renderDefaultChildren, renderTranslatedChildren, renderSkeleton, RenderMethod, defaultRenderSettings, GTProp, Entry, TranslatedChildren, Translations, GTContextType, ClientProviderProps, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, DictionaryContent, DictionaryObject, LocalesDictionary, CustomLoader, RenderVariable, VariableProps, defaultLocaleCookieName, defaultRegionCookieName, mergeDictionaries, _Message, _Messages, reactHasUse, msg, decodeMsg, decodeOptions, MFunctionType, TFunctionType, };
|
|
23
24
|
//# sourceMappingURL=internal.d.ts.map
|
package/dist/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,SAAS,IAAI,QAAQ,EACrB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,MAAM,EACN,KAAK,EACL,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,WAAW,EACX,GAAG,EACH,SAAS,EACT,aAAa,GACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAC5D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EACL,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,SAAS,IAAI,QAAQ,EACrB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,MAAM,EACN,KAAK,EACL,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,WAAW,EACX,GAAG,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,aAAa,GACd,CAAC"}
|