gt-react 9.2.2-alpha.1 → 9.2.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(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 t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],A=(A=_(A|=0,P[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+j[0]:r<32?g(k,B,S)+j[1]:r<48?v(k,B,S)+j[2]:r<64?p(k,B,S)+j[3]:h(k,B,S)+j[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),he.exports;var e}(),ge(),function(){return ye||(ye=1,_e.exports=(c=C(),te(),ge(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),_e.exports;var e,t,r,n,i,o,a,s,c}(),xe(),Be(),Ae(),je(),Pe(),De(),function(){return Fe?Ie.exports:(Fe=1,Ie.exports=(t=C(),Be(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Le?Me.exports:(Le=1,Me.exports=(e=C(),Be(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ne?Ue.exports:(Ne=1,Ue.exports=(e=C(),Be(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return $e?Ve.exports:($e=1,Ve.exports=(e=C(),Be(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return We||(We=1,Ge.exports=(e=C(),Be(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Ge.exports;var e}(),function(){return Ke?Je.exports:(Ke=1,Je.exports=(e=C(),Be(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return qe?Xe.exports:(qe=1,Xe.exports=(n=C(),Be(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Ye||(Ye=1,Ze.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Ze.exports;var e}(),tt(),function(){return rt||(rt=1,nt.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),nt.exports;var e}(),function(){return it||(it=1,ot.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),ot.exports;var e}(),function(){return at||(at=1,st.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),st.exports;var e}(),ut())),A.exports),bt=k(_t),mt=function(){return mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mt.apply(this,arguments)};function xt(e){return bt.SHA256(e).toString(bt.enc.Hex)}function wt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=xt),t(O(mt(mt({source:Bt(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var kt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Bt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Bt(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return mt({key:e.key},e.variable&&{variable:e.variable})}return e};function Bt(e){return Array.isArray(e)?e.map(kt):kt(e)}function St(r,n,i,o,a,s,c,l){return e.useCallback(((e,u={})=>{if(!e||"string"!=typeof e)return"";const d=t.splitStringToContent(e),f=(e,r)=>t.renderContentToString(e,r,u.variables,u.variablesOptions);if(!o)return f(d,[i]);const h=wt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==r?void 0:r[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,i]):"error"===(null==p?void 0:p.state)?f(d,[i]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[i]):"skeleton"===l.method?"":a?f(d,[i]):""):f(d,[i])}),[r,n,i,o,s,c,a])}function Ot({dictionary:t,_internalUseGTFunction:r}){return e.useCallback(((n,i={})=>{const o=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[t,r])}function At(e){var{children:t,name:n="branch",branch:i}=e,o=a(e,["children","name","branch"]);const{"data-_gt":s}=o,c=a(o,["data-_gt"]),l=(i=null==i?void 0:i.toString())&&void 0!==c[i]?c[i]:t;return r.jsx("span",{"data-_gt":s,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Et(t,n=0){let i=n;const o=e=>{const{type:t,props:r}=e;i+=1;let n,o={id:i};try{n="function"==typeof t&&t.gtTransformation||""}catch(e){n=""}if(n){const t=n.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return p.includes(e)}(t)&&(e[t]=Et(r,i)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=a(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Et(r,i),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function s(t){return e.isValidElement(t)?function(t){const{props:n}=t;if(n["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let i=o(t),a=Object.assign(Object.assign({},n),{"data-_gt":i});if(n.children&&!i.variableType&&(a.children=c(n.children)),t.type===e.Fragment)return a["data-_gt"].transformation,r.jsx("span",Object.assign({style:{all:"unset",display:"contents"}},a));return e.cloneElement(t,a)}(t):t}function c(t){return Array.isArray(t)?e.Children.map(t,s):s(t)}return c(t)}At.gtTransformation="branch";const Tt={variable:"value",number:"n",datetime:"date",currency:"cost"};function jt(e="variable"){return Tt[e]||"variable"}const Ct="_gt_";function Ht(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${Ct}${Tt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Pt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},zt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Pt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Ht(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=Rt(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function Rt(e){return Array.isArray(e)?e.map(zt):zt(e)}function Dt(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=p),void 0===r&&(r=[f]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!i&&(i=r[n]),i}function Ft(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Ht(e,r),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 t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},e.options));return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function It(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function Lt(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Mt({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=f,renderVariable:o}){const s=t=>e.isValidElement(t)?(t=>{const s=Lt(t);if("variable"===(null==s?void 0:s.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=Ft(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(Ct)){const e=jt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==s?void 0:s.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=s.branches||{};return c(Dt(e,[i],n)||t.props.children)}if("branch"===(null==s?void 0:s.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":l}=e,u=a(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],u=s.branches||{},c(void 0!==u[o]?u[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:c(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,c=t=>Array.isArray(t)?e.Children.map(t,s):s(t);return c(t)}function Nt({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[f],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=Dt(e,o,l.branches||{})||t.props.children,c=Dt(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),Ut({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return Ut({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:Ut({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):Mt({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function Ut({source:t,target:n,variables:i={},variablesOptions:o={},locales:a=[f],renderVariable:s}){if(null==n&&t)return Mt({children:t,variables:i,variablesOptions:o,defaultLocale:a[0],renderVariable:s});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const c=t.filter((t=>{if(e.isValidElement(t)){const e=Lt(t);if(Ft(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:n,variableType:a}=Ft(t.props);void 0===i[e]&&(i[e]=r);const s=jt(a);void 0===i[s]&&(i[s]=r),o[e]=Object.assign(Object.assign({},o[e]),n)}}})),l=e=>c.find((t=>{var r,n;const i=Lt(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return n.map(((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(It(t)){const c=t.key,l=t.variable||"variable",u=(()=>{if(void 0!==i[t.key])return i[t.key];if(c.startsWith(Ct)){const e=jt(l);if(void 0!==i[e])return i[e]}})();return r.jsx(e.Fragment,{children:s({variableType:l,variableName:c,variableValue:u,variableOptions:o[t.key],locales:a})},`var_${n}`)}const c=l(t);return c?r.jsx(e.Fragment,{children:Nt({sourceElement:c,targetElement:t,variables:i,variablesOptions:o,locales:a,renderVariable:s})},`element_${n}`):void 0}))}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=It(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Nt({sourceElement:t,targetElement:n,variables:i,variablesOptions:o,locales:a,renderVariable:s});const e=Lt(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:n}=Ft(t.props);void 0===i[e]&&(i[e]=r),o[e]=Object.assign(Object.assign({},o[e]),n)}}if("variable"===r){const e=n,t=e.key,r=e.variable||"variable",c=(()=>{if(void 0!==i[e.key])return i[e.key];if(t.startsWith(Ct)){const e=jt(r);if(void 0!==i[e])return i[e]}})();return s({variableType:r,variableName:t,variableValue:c,variableOptions:o[e.key]||{},locales:a})}}return Mt({children:t,variables:i,variablesOptions:o,defaultLocale:a[0],renderVariable:s})}const $t={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function Vt(t){var{children:n,n:o,locale:s}=t,c=a(t,["children","n","locale"]);const{"data-_gt":l}=c,u=a(c,["data-_gt"]),d=e.useContext(i);let h;d&&(s||(s=d.locale),h||(h=d.defaultLocale));const p=[...s?[s]:[],h||f];if("number"!=typeof o)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const v=Dt(o,p,u)||n;return r.jsx("span",{"data-_gt":l,"data-_gt-n":o,style:{display:"contents"},children:v})}function Wt(){return o("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function Gt({children:t,id:n,context:i}){if(!t)return;const{translations:a,translationRequired:s,runtimeTranslationEnabled:c,dialectTranslationRequired:l,registerJsxForTranslation:u,renderSettings:d,locale:f,defaultLocale:h}=o("<T> used on the client-side outside of <GTProvider>"),p=e.useMemo((()=>Et(t)),[t]),[v,g]=e.useMemo((()=>{if(s){const e=Rt(p);return[e,wt(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,p,s,t]),y=null==a?void 0:a[g];e.useEffect((()=>{c&&s&&a&&f&&!y&&u({source:v,targetLocale:f,metadata:{id:n,hash:g,context:i}})}),[c,a,y,s,n,g,i,f,t]);const _=()=>Mt({children:p,defaultLocale:h,renderVariable:b});if(!s||a&&!y&&!c||"error"===(null==y?void 0:y.state))return r.jsx(r.Fragment,{children:_()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===d.method?"":"replace"===d.method||l?_():"",r.jsx(r.Fragment,{children:e})}return r.jsx(r.Fragment,{children:(m=y.target,Ut({source:p,target:m,locales:[f,h],renderVariable:b}))});var m}function Kt(){return o("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}Vt.gtTransformation="plural",Gt.gtTransformation="translate-client",exports.Branch=At,exports.ClientProvider=function({children:n,dictionary:o,initialTranslations:a,locale:s,_versionId:c,defaultLocale:u,translationRequired:d,dialectTranslationRequired:f,locales:p=[],renderSettings:v,projectId:g,devApiKey:y,runtimeUrl:_,runtimeTranslationEnabled:b,onLocaleChange:m=()=>{},cookieName:x=h}){const[w,k]=e.useState(y?null:a),[B,S]=e.useState(s&&t.determineLocale(s,p)||"");e.useEffect((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${x}=`))))||void 0===e?void 0:e.split("=")[1];B&&t&&t!==B&&(document.cookie=`${x}=${B};path=/`)}),[B]),e.useEffect((()=>{k((e=>Object.assign(Object.assign({},a),e)))}),[a]);const{registerContentForTranslation:O,registerJsxForTranslation:A}=l({locale:B,versionId:c,projectId:g,devApiKey:y,runtimeUrl:_,setTranslations:k,defaultLocale:u,renderSettings:v,runtimeTranslationEnabled:b}),E=St(w,B,u,d,f,b,O,v),T=Ot({dictionary:o,_internalUseGTFunction:E}),j=!(d&&!w)&&B;return r.jsx(i.Provider,{value:{registerContentForTranslation:O,registerJsxForTranslation:A,setLocale:e=>{e=t.determineLocale(e,p)||B||u,document.cookie=`${x}=${e};path=/`,S(e),m(),window.location.reload()},_internalUseGTFunction:E,_internalUseDictFunction:T,locale:B,locales:p,defaultLocale:u,translations:w,translationRequired:d,dialectTranslationRequired:f,renderSettings:v,runtimeTranslationEnabled:b},children:j&&n})},exports.Currency=y,exports.DateTime=_,exports.GTContext=i,exports.GTProvider=function(o){var{children:c,projectId:p="",devApiKey:v,dictionary:g={},locales:y=[],defaultLocale:_=f,locale:b,cacheUrl:m=u,runtimeUrl:x=d,renderSettings:w=$t,loadTranslation:k,_versionId:B}=o,S=a(o,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:O,devApiKey:A}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||process.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY||process.env.REDWOOD_ENV_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(p,v);console.log("projectId:",O),y=e.useMemo((()=>(y.unshift(_),Array.from(new Set(y)))),[_,y]);const[E,T]=function({locale:r="",defaultLocale:n=f,locales:i=[],cookieName:o=h}){const[a,s]=e.useState(r&&t.determineLocale(r,i)||"");return e.useEffect((()=>{var e;if(r&&r===a&&t.determineLocale(r,i)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${o}=`))))||void 0===e?void 0:e.split("=")[1],u=t.determineLocale([...r?[r]:[],...l?[l]:[],...c],i)||n;l&&l!==u&&(document.cookie=`${o}=${u};path=/`),s(u)}),[n,i]),[a,e=>{const r=t.determineLocale(e,i)||a||n;r!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(r,e)),s(r),document.cookie=`${o}=${r};path=/`}]}({defaultLocale:_,locales:y,locale:b}),j=!!(O&&x&&A&&"development"===process.env.NODE_ENV),C=(k?"custom":m&&"default")||"disabled";e.useMemo((()=>{if("production"===process.env.NODE_ENV&&A)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===C||!m&&!x||O||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),O&&x&&"custom"!==C&&!A&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),x===d||m===u&&"default"===C){const e=(y||y).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:r}=t.getLocaleProperties(e);return`${e} (${r})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,A,C,m,x,O,y]);const[H,P]=e.useMemo((()=>{const e=t.requiresTranslation(_,E,y);return[e,e&&t.isSameLanguage(_,E)]}),[_,E,y]),[z,R]=e.useState(H?null:{});e.useEffect((()=>R(H?null:{})),[E]);const{registerContentForTranslation:D,registerJsxForTranslation:F}=l(Object.assign({locale:E,versionId:B,projectId:O,runtimeTranslationEnabled:j,defaultLocale:_,devApiKey:A,runtimeUrl:x,renderSettings:w,setTranslations:R},S));e.useEffect((()=>{if(z||!H)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){try{let t;switch(C){case"custom":k&&(t=yield k(E));break;case"default":t=yield function(e){return s(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:m,projectId:O,locale:E,versionId:B});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&R(r)}catch(t){console.error(t),e&&R({})}}))})(),()=>{e=!1}}),[z,H,C,m,O,E,B]);const I=St(z,E,_,H,P,j,D,w),L=Ot({dictionary:g,_internalUseGTFunction:I}),M=!(H&&!z||!E);return r.jsx(i.Provider,{value:{registerContentForTranslation:D,registerJsxForTranslation:F,_internalUseGTFunction:I,_internalUseDictFunction:L,runtimeTranslationEnabled:j,locale:E,locales:y,setLocale:T,defaultLocale:_,translations:z,translationRequired:H,dialectTranslationRequired:P,projectId:O,renderSettings:w},children:M&&c})},exports.LocaleSelector=function(e){var{locales:n=Kt(),compare:i=(e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode)}=e,s=a(e,["locales","compare"]);const c=Wt(),l=function(){const{setLocale:e}=o("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}();return n&&0!==n.length&&l?(n.sort(i),r.jsxs("select",Object.assign({},s,{value:c||"",onChange:e=>l(e.target.value),children:[!c&&r.jsx("option",{value:""}),n.map((e=>{return r.jsx("option",{value:e,suppressHydrationWarning:!0,children:(n=t.getLocaleProperties(e).nativeNameWithRegionCode,n?n.charAt(0).toUpperCase()+(n.length>1?n.slice(1):""):"")},e);var n}))]}))):null},exports.Num=v,exports.Plural=Vt,exports.T=Gt,exports.Var=g,exports.renderVariable=b,exports.useDefaultLocale=function(){return o("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=o(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=o("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Wt,exports.useRuntimeTranslation=l;
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?g(f,b,m)+T[3]:y(f,b,m)+T[4],A=(A=_(A|=0,P[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+j[0]:r<32?g(k,B,S)+j[1]:r<48?v(k,B,S)+j[2]:r<64?p(k,B,S)+j[3]:h(k,B,S)+j[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),he.exports;var e}(),ge(),function(){return ye||(ye=1,_e.exports=(c=C(),te(),ge(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),_e.exports;var e,t,r,n,i,o,a,s,c}(),xe(),Be(),Ae(),je(),Pe(),De(),function(){return Fe?Ie.exports:(Fe=1,Ie.exports=(t=C(),Be(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Le?Me.exports:(Le=1,Me.exports=(e=C(),Be(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ne?Ue.exports:(Ne=1,Ue.exports=(e=C(),Be(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return $e?Ve.exports:($e=1,Ve.exports=(e=C(),Be(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return We||(We=1,Ge.exports=(e=C(),Be(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Ge.exports;var e}(),function(){return Ke?Je.exports:(Ke=1,Je.exports=(e=C(),Be(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return qe?Xe.exports:(qe=1,Xe.exports=(n=C(),Be(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Ye||(Ye=1,Ze.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Ze.exports;var e}(),tt(),function(){return rt||(rt=1,nt.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),nt.exports;var e}(),function(){return it||(it=1,ot.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),ot.exports;var e}(),function(){return at||(at=1,st.exports=(e=C(),$(),q(),xe(),Be(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),st.exports;var e}(),ut())),A.exports),bt=k(_t),mt=function(){return mt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mt.apply(this,arguments)};function xt(e){return bt.SHA256(e).toString(bt.enc.Hex)}function wt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=xt),t(O(mt(mt({source:Bt(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var kt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Bt(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Bt(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return mt({key:e.key},e.variable&&{variable:e.variable})}return e};function Bt(e){return Array.isArray(e)?e.map(kt):kt(e)}function St(r,n,i,o,a,s,c,l){return e.useCallback(((e,u={})=>{if(!e||"string"!=typeof e)return"";const d=t.splitStringToContent(e),f=(e,r)=>t.renderContentToString(e,r,u.variables,u.variablesOptions);if(!o)return f(d,[i]);const h=wt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==r?void 0:r[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,i]):"error"===(null==p?void 0:p.state)?f(d,[i]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[i]):"skeleton"===l.method?"":a?f(d,[i]):""):f(d,[i])}),[r,n,i,o,s,c,a])}function Ot({dictionary:t,_internalUseGTFunction:r}){return e.useCallback(((n,i={})=>{const o=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[t,r])}function At(e){var{children:t,name:n="branch",branch:i}=e,o=a(e,["children","name","branch"]);const{"data-_gt":s}=o,c=a(o,["data-_gt"]),l=(i=null==i?void 0:i.toString())&&void 0!==c[i]?c[i]:t;return r.jsx("span",{"data-_gt":s,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Et(t,n=0){let i=n;const o=e=>{const{type:t,props:r}=e;i+=1;let n,o={id:i};try{n="function"==typeof t&&t.gtTransformation||""}catch(e){n=""}if(n){const t=n.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return p.includes(e)}(t)&&(e[t]=Et(r,i)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=a(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Et(r,i),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function s(t){return e.isValidElement(t)?function(t){const{props:n}=t;if(n["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let i=o(t),a=Object.assign(Object.assign({},n),{"data-_gt":i});if(n.children&&!i.variableType&&(a.children=c(n.children)),t.type===e.Fragment)return a["data-_gt"].transformation,r.jsx("span",Object.assign({style:{all:"unset",display:"contents"}},a));return e.cloneElement(t,a)}(t):t}function c(t){return Array.isArray(t)?e.Children.map(t,s):s(t)}return c(t)}At.gtTransformation="branch";const Tt={variable:"value",number:"n",datetime:"date",currency:"cost"};function jt(e="variable"){return Tt[e]||"variable"}const Ct="_gt_";function Ht(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${Ct}${Tt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Pt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},zt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Pt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Ht(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=Rt(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=Rt(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function Rt(e){return Array.isArray(e)?e.map(zt):zt(e)}function Dt(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=p),void 0===r&&(r=[f]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!i&&(i=r[n]),i}function Ft(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Ht(e,r),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 t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},e.options));return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function It(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function Lt(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Mt({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=f,renderVariable:o}){const s=t=>e.isValidElement(t)?(t=>{const s=Lt(t);if("variable"===(null==s?void 0:s.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=Ft(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(Ct)){const e=jt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==s?void 0:s.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=s.branches||{};return c(Dt(e,[i],n)||t.props.children)}if("branch"===(null==s?void 0:s.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":l}=e,u=a(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],u=s.branches||{},c(void 0!==u[o]?u[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:c(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,c=t=>Array.isArray(t)?e.Children.map(t,s):s(t);return c(t)}function Nt({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[f],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=Dt(e,o,l.branches||{})||t.props.children,c=Dt(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),Ut({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return Ut({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:Ut({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):Mt({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function Ut({source:t,target:n,variables:i={},variablesOptions:o={},locales:a=[f],renderVariable:s}){if(null==n&&t)return Mt({children:t,variables:i,variablesOptions:o,defaultLocale:a[0],renderVariable:s});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const c=t.filter((t=>{if(e.isValidElement(t)){const e=Lt(t);if(Ft(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:n,variableType:a}=Ft(t.props);void 0===i[e]&&(i[e]=r);const s=jt(a);void 0===i[s]&&(i[s]=r),o[e]=Object.assign(Object.assign({},o[e]),n)}}})),l=e=>c.find((t=>{var r,n;const i=Lt(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return n.map(((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(It(t)){const c=t.key,l=t.variable||"variable",u=(()=>{if(void 0!==i[t.key])return i[t.key];if(c.startsWith(Ct)){const e=jt(l);if(void 0!==i[e])return i[e]}})();return r.jsx(e.Fragment,{children:s({variableType:l,variableName:c,variableValue:u,variableOptions:o[t.key],locales:a})},`var_${n}`)}const c=l(t);return c?r.jsx(e.Fragment,{children:Nt({sourceElement:c,targetElement:t,variables:i,variablesOptions:o,locales:a,renderVariable:s})},`element_${n}`):void 0}))}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=It(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Nt({sourceElement:t,targetElement:n,variables:i,variablesOptions:o,locales:a,renderVariable:s});const e=Lt(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:n}=Ft(t.props);void 0===i[e]&&(i[e]=r),o[e]=Object.assign(Object.assign({},o[e]),n)}}if("variable"===r){const e=n,t=e.key,r=e.variable||"variable",c=(()=>{if(void 0!==i[e.key])return i[e.key];if(t.startsWith(Ct)){const e=jt(r);if(void 0!==i[e])return i[e]}})();return s({variableType:r,variableName:t,variableValue:c,variableOptions:o[e.key]||{},locales:a})}}return Mt({children:t,variables:i,variablesOptions:o,defaultLocale:a[0],renderVariable:s})}const $t={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function Vt(t){var{children:n,n:o,locale:s}=t,c=a(t,["children","n","locale"]);const{"data-_gt":l}=c,u=a(c,["data-_gt"]),d=e.useContext(i);let h;d&&(s||(s=d.locale),h||(h=d.defaultLocale));const p=[...s?[s]:[],h||f];if("number"!=typeof o)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const v=Dt(o,p,u)||n;return r.jsx("span",{"data-_gt":l,"data-_gt-n":o,style:{display:"contents"},children:v})}function Wt(){return o("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function Gt({children:t,id:n,context:i}){if(!t)return;const{translations:a,translationRequired:s,runtimeTranslationEnabled:c,dialectTranslationRequired:l,registerJsxForTranslation:u,renderSettings:d,locale:f,defaultLocale:h}=o("<T> used on the client-side outside of <GTProvider>"),p=e.useMemo((()=>Et(t)),[t]),[v,g]=e.useMemo((()=>{if(s){const e=Rt(p);return[e,wt(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,p,s,t]),y=null==a?void 0:a[g];e.useEffect((()=>{c&&s&&a&&f&&!y&&u({source:v,targetLocale:f,metadata:{id:n,hash:g,context:i}})}),[c,a,y,s,n,g,i,f,t]);const _=()=>Mt({children:p,defaultLocale:h,renderVariable:b});if(!s||a&&!y&&!c||"error"===(null==y?void 0:y.state))return r.jsx(r.Fragment,{children:_()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===d.method?"":"replace"===d.method||l?_():"",r.jsx(r.Fragment,{children:e})}return r.jsx(r.Fragment,{children:(m=y.target,Ut({source:p,target:m,locales:[f,h],renderVariable:b}))});var m}function Kt(){return o("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}Vt.gtTransformation="plural",Gt.gtTransformation="translate-client",exports.Branch=At,exports.ClientProvider=function({children:n,dictionary:o,initialTranslations:a,locale:s,_versionId:c,defaultLocale:u,translationRequired:d,dialectTranslationRequired:f,locales:p=[],renderSettings:v,projectId:g,devApiKey:y,runtimeUrl:_,runtimeTranslationEnabled:b,onLocaleChange:m=()=>{},cookieName:x=h}){const[w,k]=e.useState(y?null:a),[B,S]=e.useState(s&&t.determineLocale(s,p)||"");e.useEffect((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${x}=`))))||void 0===e?void 0:e.split("=")[1];B&&t&&t!==B&&(document.cookie=`${x}=${B};path=/`)}),[B]),e.useEffect((()=>{k((e=>Object.assign(Object.assign({},a),e)))}),[a]);const{registerContentForTranslation:O,registerJsxForTranslation:A}=l({locale:B,versionId:c,projectId:g,devApiKey:y,runtimeUrl:_,setTranslations:k,defaultLocale:u,renderSettings:v,runtimeTranslationEnabled:b}),E=St(w,B,u,d,f,b,O,v),T=Ot({dictionary:o,_internalUseGTFunction:E}),j=!(d&&!w)&&B;return r.jsx(i.Provider,{value:{registerContentForTranslation:O,registerJsxForTranslation:A,setLocale:e=>{e=t.determineLocale(e,p)||B||u,document.cookie=`${x}=${e};path=/`,S(e),m(),window.location.reload()},_internalUseGTFunction:E,_internalUseDictFunction:T,locale:B,locales:p,defaultLocale:u,translations:w,translationRequired:d,dialectTranslationRequired:f,renderSettings:v,runtimeTranslationEnabled:b},children:j&&n})},exports.Currency=y,exports.DateTime=_,exports.GTContext=i,exports.GTProvider=function(o){var{children:c,projectId:p="",devApiKey:v,dictionary:g={},locales:y=[],defaultLocale:_=f,locale:b,cacheUrl:m=u,runtimeUrl:x=d,renderSettings:w=$t,loadTranslation:k,_versionId:B}=o,S=a(o,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:O,devApiKey:A}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(p,v);console.log("projectId:",O),y=e.useMemo((()=>(y.unshift(_),Array.from(new Set(y)))),[_,y]);const[E,T]=function({locale:r="",defaultLocale:n=f,locales:i=[],cookieName:o=h}){const[a,s]=e.useState(r&&t.determineLocale(r,i)||"");return e.useEffect((()=>{var e;if(r&&r===a&&t.determineLocale(r,i)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${o}=`))))||void 0===e?void 0:e.split("=")[1],u=t.determineLocale([...r?[r]:[],...l?[l]:[],...c],i)||n;l&&l!==u&&(document.cookie=`${o}=${u};path=/`),s(u)}),[n,i]),[a,e=>{const r=t.determineLocale(e,i)||a||n;r!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(r,e)),s(r),document.cookie=`${o}=${r};path=/`}]}({defaultLocale:_,locales:y,locale:b}),j=!!(O&&x&&A&&"development"===process.env.NODE_ENV),C=(k?"custom":m&&"default")||"disabled";e.useMemo((()=>{if("production"===process.env.NODE_ENV&&A)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===C||!m&&!x||O||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),O&&x&&"custom"!==C&&!A&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),x===d||m===u&&"default"===C){const e=(y||y).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:r}=t.getLocaleProperties(e);return`${e} (${r})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,A,C,m,x,O,y]);const[H,P]=e.useMemo((()=>{const e=t.requiresTranslation(_,E,y);return[e,e&&t.isSameLanguage(_,E)]}),[_,E,y]),[z,R]=e.useState(H?null:{});e.useEffect((()=>R(H?null:{})),[E]);const{registerContentForTranslation:D,registerJsxForTranslation:F}=l(Object.assign({locale:E,versionId:B,projectId:O,runtimeTranslationEnabled:j,defaultLocale:_,devApiKey:A,runtimeUrl:x,renderSettings:w,setTranslations:R},S));e.useEffect((()=>{if(z||!H)return;let e=!0;return(()=>{s(this,void 0,void 0,(function*(){try{let t;switch(C){case"custom":k&&(t=yield k(E));break;case"default":t=yield function(e){return s(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:m,projectId:O,locale:E,versionId:B});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&R(r)}catch(t){console.error(t),e&&R({})}}))})(),()=>{e=!1}}),[z,H,C,m,O,E,B]);const I=St(z,E,_,H,P,j,D,w),L=Ot({dictionary:g,_internalUseGTFunction:I}),M=!(H&&!z||!E);return r.jsx(i.Provider,{value:{registerContentForTranslation:D,registerJsxForTranslation:F,_internalUseGTFunction:I,_internalUseDictFunction:L,runtimeTranslationEnabled:j,locale:E,locales:y,setLocale:T,defaultLocale:_,translations:z,translationRequired:H,dialectTranslationRequired:P,projectId:O,renderSettings:w},children:M&&c})},exports.LocaleSelector=function(e){var{locales:n=Kt(),compare:i=(e,r)=>(new Intl.Collator).compare(t.getLocaleProperties(e).nativeNameWithRegionCode,t.getLocaleProperties(r).nativeNameWithRegionCode)}=e,s=a(e,["locales","compare"]);const c=Wt(),l=function(){const{setLocale:e}=o("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}();return n&&0!==n.length&&l?(n.sort(i),r.jsxs("select",Object.assign({},s,{value:c||"",onChange:e=>l(e.target.value),children:[!c&&r.jsx("option",{value:""}),n.map((e=>{return r.jsx("option",{value:e,suppressHydrationWarning:!0,children:(n=t.getLocaleProperties(e).nativeNameWithRegionCode,n?n.charAt(0).toUpperCase()+(n.length>1?n.slice(1):""):"")},e);var n}))]}))):null},exports.Num=v,exports.Plural=Vt,exports.T=Gt,exports.Var=g,exports.renderVariable=b,exports.useDefaultLocale=function(){return o("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=o(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=o("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Wt,exports.useRuntimeTranslation=l;
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(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 t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ce.exports;var e}(),Pe(),function(){return Re||(Re=1,De.exports=(c=X(),be(),Pe(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),De.exports;var e,t,r,n,i,o,a,s,c}(),Ne(),Ue(),Ve(),Je(),Ye(),et(),function(){return tt?rt.exports:(tt=1,rt.exports=(t=X(),Ue(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return nt?it.exports:(nt=1,it.exports=(e=X(),Ue(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return ot?at.exports:(ot=1,at.exports=(e=X(),Ue(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=X(),Ue(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lt||(lt=1,ut.exports=(e=X(),Ue(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),ut.exports;var e}(),function(){return dt?ft.exports:(dt=1,ft.exports=(e=X(),Ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return ht?pt.exports:(ht=1,pt.exports=(n=X(),Ue(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return vt||(vt=1,yt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),yt.exports;var e}(),bt(),function(){return mt||(mt=1,xt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),xt.exports;var e}(),function(){return wt||(wt=1,kt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),kt.exports;var e}(),function(){return Bt||(Bt=1,Ot.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Ot.exports;var e}(),Et())),V.exports),It=M(Dt),Ft=function(){return Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ft.apply(this,arguments)};function Nt(e){return It.SHA256(e).toString(It.enc.Hex)}function Lt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Nt),t(W(Ft(Ft({source:Ut(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var Mt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ut(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ut(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Ft({key:e.key},e.variable&&{variable:e.variable})}return e};function Ut(e){return Array.isArray(e)?e.map(Mt):Mt(e)}function $t(e,t,r,n,i,o,a,c){return s(((s,l={})=>{if(!s||"string"!=typeof s)return"";const u=h(s),d=(e,t)=>p(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=Lt(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),v=null==e?void 0:e[f];return"success"===(null==v?void 0:v.state)?d(v.target,[t,r]):"error"===(null==v?void 0:v.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===c.method?d(u,[r]):"skeleton"===c.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}function Wt({dictionary:t,_internalUseGTFunction:r}){return s(((n,i={})=>{const o=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[t,r])}function Vt({children:e,dictionary:t,initialTranslations:r,locale:i,_versionId:a,defaultLocale:s,translationRequired:c,dialectTranslationRequired:l,locales:u=[],renderSettings:d,projectId:f,devApiKey:h,runtimeUrl:p,runtimeTranslationEnabled:y,onLocaleChange:g=()=>{},cookieName:b=C}){const[m,x]=n(h?null:r),[k,B]=n(i&&v(i,u)||"");o((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${b}=`))))||void 0===e?void 0:e.split("=")[1];k&&t&&t!==k&&(document.cookie=`${b}=${k};path=/`)}),[k]);o((()=>{x((e=>Object.assign(Object.assign({},r),e)))}),[r]);const{registerContentForTranslation:O,registerJsxForTranslation:S}=A({locale:k,versionId:a,projectId:f,devApiKey:h,runtimeUrl:p,setTranslations:x,defaultLocale:s,renderSettings:d,runtimeTranslationEnabled:y}),E=$t(m,k,s,c,l,y,O,d),T=Wt({dictionary:t,_internalUseGTFunction:E}),j=!(c&&!m)&&k;return _(w.Provider,{value:{registerContentForTranslation:O,registerJsxForTranslation:S,setLocale:e=>{e=v(e,u)||k||s,document.cookie=`${b}=${e};path=/`,B(e),g(),window.location.reload()},_internalUseGTFunction:E,_internalUseDictFunction:T,locale:k,locales:u,defaultLocale:s,translations:m,translationRequired:c,dialectTranslationRequired:l,renderSettings:d,runtimeTranslationEnabled:y},children:j&&e})}function Gt(e){var{children:t,name:r="branch",branch:n}=e,i=B(e,["children","name","branch"]);const{"data-_gt":o}=i,a=B(i,["data-_gt"]),s=(n=null==n?void 0:n.toString())&&void 0!==a[n]?a[n]:t;return _("span",{"data-_gt":o,"data-_gt-branch-name":n,"data-_gt-name":r||"branch",style:{display:"contents"},children:s})}function Kt(t,r=0){let n=r;const i=e=>{const{type:t,props:r}=e;n+=1;let i,o={id:n};try{i="function"==typeof t&&t.gtTransformation||""}catch(e){i=""}if(i){const t=i.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return H.includes(e)}(t)&&(e[t]=Kt(r,n)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=B(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Kt(r,n),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function o(t){return c(t)?function(t){const{props:r}=t;if(r["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let n=i(t),o=Object.assign(Object.assign({},r),{"data-_gt":n});if(r.children&&!n.variableType&&(o.children=a(r.children)),t.type===e.Fragment)return o["data-_gt"].transformation,_("span",Object.assign({style:{all:"unset",display:"contents"}},o));return e.cloneElement(t,o)}(t):t}function a(t){return Array.isArray(t)?e.Children.map(t,o):o(t)}return a(t)}Gt.gtTransformation="branch";const Jt={variable:"value",number:"n",datetime:"date",currency:"cost"};function Xt(e="variable"){return Jt[e]||"variable"}const qt="_gt_";function Yt(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${qt}${Jt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Zt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},Qt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Zt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Yt(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=er(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function er(e){return Array.isArray(e)?e.map(Qt):Qt(e)}function tr(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=H),void 0===r&&(r=[j]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!i&&(i=r[n]),i}function rr(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Yt(e,r),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 t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},e.options));return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function nr(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function ir(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function or({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=j,renderVariable:o}){const a=t=>e.isValidElement(t)?(t=>{const a=ir(t);if("variable"===(null==a?void 0:a.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=rr(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(qt)){const e=Xt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==a?void 0:a.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=a.branches||{};return s(tr(e,[i],n)||t.props.children)}if("branch"===(null==a?void 0:a.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":c}=e,l=B(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],l=a.branches||{},s(void 0!==l[o]?l[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:s(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,s=t=>Array.isArray(t)?e.Children.map(t,a):a(t);return s(t)}function ar({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=tr(e,o,l.branches||{})||t.props.children,c=tr(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),sr({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return sr({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:sr({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function sr({source:t,target:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){if(null==r&&t)return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const s=t.filter((t=>{if(e.isValidElement(t)){const e=ir(t);if(rr(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:o,variableType:a}=rr(t.props);void 0===n[e]&&(n[e]=r);const s=Xt(a);void 0===n[s]&&(n[s]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}})),c=e=>s.find((t=>{var r,n;const i=ir(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return r.map(((t,r)=>{if("string"==typeof t)return _(e.Fragment,{children:t},`string_${r}`);if(nr(t)){const s=t.key,c=t.variable||"variable",l=(()=>{if(void 0!==n[t.key])return n[t.key];if(s.startsWith(qt)){const e=Xt(c);if(void 0!==n[e])return n[e]}})();return _(e.Fragment,{children:a({variableType:c,variableName:s,variableValue:l,variableOptions:i[t.key],locales:o})},`var_${r}`)}const s=c(t);return s?_(e.Fragment,{children:ar({sourceElement:s,targetElement:t,variables:n,variablesOptions:i,locales:o,renderVariable:a})},`element_${r}`):void 0}))}if(r&&"object"==typeof r&&!Array.isArray(r)){const s=nr(r)?"variable":"element";if(e.isValidElement(t)){if("element"===s)return ar({sourceElement:t,targetElement:r,variables:n,variablesOptions:i,locales:o,renderVariable:a});const e=ir(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:o}=rr(t.props);void 0===n[e]&&(n[e]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}if("variable"===s){const e=r,t=e.key,s=e.variable||"variable",c=(()=>{if(void 0!==n[e.key])return n[e.key];if(t.startsWith(qt)){const e=Xt(s);if(void 0!==n[e])return n[e]}})();return a({variableType:s,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:o})}}return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}const cr={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function lr(e){var{children:t,n:n,locale:i}=e,o=B(e,["children","n","locale"]);const{"data-_gt":a}=o,s=B(o,["data-_gt"]),c=r(w);let l;c&&(i||(i=c.locale),l||(l=c.defaultLocale));const u=[...i?[i]:[],l||j];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(t));const d=tr(n,u,s)||t;return _("span",{"data-_gt":a,"data-_gt-n":n,style:{display:"contents"},children:d})}function ur(){const{_internalUseGTFunction:e}=k("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function dr(){return k("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function fr(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=k(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function hr(){return k("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function pr({children:e,id:t,context:r}){if(!e)return;const{translations:n,translationRequired:i,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=k("<T> used on the client-side outside of <GTProvider>"),h=a((()=>Kt(e)),[e]),[p,v]=a((()=>{if(i){const e=er(h);return[e,Lt(Object.assign(Object.assign({source:e},r&&{context:r}),t&&{id:t}))]}return[void 0,""]}),[r,h,i,e]),y=null==n?void 0:n[v];o((()=>{s&&i&&n&&d&&!y&&l({source:p,targetLocale:d,metadata:{id:t,hash:v,context:r}})}),[s,n,y,i,t,v,r,d,e]);const g=()=>or({children:h,defaultLocale:f,renderVariable:I});if(!i||n&&!y&&!s||"error"===(null==y?void 0:y.state))return _(b,{children:g()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===u.method?"":"replace"===u.method||c?g():"",_(b,{children:e})}return _(b,{children:(m=y.target,sr({source:h,target:m,locales:[d,f],renderVariable:I}))});var m}function vr(){return k("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function yr(e){var{locales:t=vr(),compare:r=(e,t)=>(new Intl.Collator).compare(l(e).nativeNameWithRegionCode,l(t).nativeNameWithRegionCode)}=e,n=B(e,["locales","compare"]);const i=hr(),o=function(){const{setLocale:e}=k("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}();return t&&0!==t.length&&o?(t.sort(r),m("select",Object.assign({},n,{value:i||"",onChange:e=>o(e.target.value),children:[!i&&_("option",{value:""}),t.map((e=>{return _("option",{value:e,suppressHydrationWarning:!0,children:(t=l(e).nativeNameWithRegionCode,t?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"")},e);var t}))]}))):null}function gr(e){var{children:t,projectId:r="",devApiKey:i,dictionary:s={},locales:c=[],defaultLocale:u=j,locale:d,cacheUrl:f=E,runtimeUrl:h=T,renderSettings:p=cr,loadTranslation:b,_versionId:m}=e,k=B(e,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:S,devApiKey:H}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||process.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY||process.env.REDWOOD_ENV_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(r,i);console.log("projectId:",S),c=a((()=>(c.unshift(u),Array.from(new Set(c)))),[u,c]);const[z,P]=function({locale:e="",defaultLocale:t=j,locales:r=[],cookieName:i=C}){const[a,s]=n(e&&v(e,r)||"");return o((()=>{var n;if(e&&e===a&&v(e,r)===a)return;const o=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(n=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===n?void 0:n.split("=")[1],l=v([...e?[e]:[],...c?[c]:[],...o],r)||t;c&&c!==l&&(document.cookie=`${i}=${l};path=/`),s(l)}),[t,r]),[a,e=>{const n=v(e,r)||a||t;n!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(n,e)),s(n),document.cookie=`${i}=${n};path=/`}]}({defaultLocale:u,locales:c,locale:d}),R=!!(S&&h&&H&&"development"===process.env.NODE_ENV),D=(b?"custom":f&&"default")||"disabled";a((()=>{if("production"===process.env.NODE_ENV&&H)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===D||!f&&!h||S||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),S&&h&&"custom"!==D&&!H&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),h===T||f===E&&"default"===D){const e=(c||c).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=l(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,H,D,f,h,S,c]);const[I,F]=a((()=>{const e=y(u,z,c);return[e,e&&g(u,z)]}),[u,z,c]),[N,L]=n(I?null:{});o((()=>L(I?null:{})),[z]);const{registerContentForTranslation:M,registerJsxForTranslation:U}=A(Object.assign({locale:z,versionId:m,projectId:S,runtimeTranslationEnabled:R,defaultLocale:u,devApiKey:H,runtimeUrl:h,renderSettings:p,setTranslations:L},k));o((()=>{if(N||!I)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){try{let t;switch(D){case"custom":b&&(t=yield b(z));break;case"default":t=yield function(e){return O(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:f,projectId:S,locale:z,versionId:m});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&L(r)}catch(t){console.error(t),e&&L({})}}))})(),()=>{e=!1}}),[N,I,D,f,S,z,m]);const $=$t(N,z,u,I,F,R,M,p),W=Wt({dictionary:s,_internalUseGTFunction:$}),V=!(I&&!N||!z);return _(w.Provider,{value:{registerContentForTranslation:M,registerJsxForTranslation:U,_internalUseGTFunction:$,_internalUseDictFunction:W,runtimeTranslationEnabled:R,locale:z,locales:c,setLocale:P,defaultLocale:u,translations:N,translationRequired:I,dialectTranslationRequired:F,projectId:S,renderSettings:p},children:V&&t})}lr.gtTransformation="plural",pr.gtTransformation="translate-client";export{Gt as Branch,Vt as ClientProvider,R as Currency,D as DateTime,w as GTContext,gr as GTProvider,yr as LocaleSelector,z as Num,lr as Plural,pr as T,P as Var,I as renderVariable,dr as useDefaultLocale,fr as useDict,ur as useGT,hr as useLocale,A as useRuntimeTranslation};
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ce.exports;var e}(),Pe(),function(){return Re||(Re=1,De.exports=(c=X(),be(),Pe(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),De.exports;var e,t,r,n,i,o,a,s,c}(),Ne(),Ue(),Ve(),Je(),Ye(),et(),function(){return tt?rt.exports:(tt=1,rt.exports=(t=X(),Ue(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return nt?it.exports:(nt=1,it.exports=(e=X(),Ue(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return ot?at.exports:(ot=1,at.exports=(e=X(),Ue(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=X(),Ue(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return lt||(lt=1,ut.exports=(e=X(),Ue(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),ut.exports;var e}(),function(){return dt?ft.exports:(dt=1,ft.exports=(e=X(),Ue(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return ht?pt.exports:(ht=1,pt.exports=(n=X(),Ue(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return vt||(vt=1,yt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),yt.exports;var e}(),bt(),function(){return mt||(mt=1,xt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),xt.exports;var e}(),function(){return wt||(wt=1,kt.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),kt.exports;var e}(),function(){return Bt||(Bt=1,Ot.exports=(e=X(),se(),he(),Ne(),Ue(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Ot.exports;var e}(),Et())),V.exports),It=M(Dt),Ft=function(){return Ft=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ft.apply(this,arguments)};function Nt(e){return It.SHA256(e).toString(It.enc.Hex)}function Lt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Nt),t(W(Ft(Ft({source:Ut(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var Mt=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ut(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ut(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Ft({key:e.key},e.variable&&{variable:e.variable})}return e};function Ut(e){return Array.isArray(e)?e.map(Mt):Mt(e)}function $t(e,t,r,n,i,o,a,c){return s(((s,l={})=>{if(!s||"string"!=typeof s)return"";const u=h(s),d=(e,t)=>p(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=Lt(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),v=null==e?void 0:e[f];return"success"===(null==v?void 0:v.state)?d(v.target,[t,r]):"error"===(null==v?void 0:v.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===c.method?d(u,[r]):"skeleton"===c.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}function Wt({dictionary:t,_internalUseGTFunction:r}){return s(((n,i={})=>{const o=function(t,r){let n=t,i=r.split(".");for(const t of i){if("object"!=typeof n||Array.isArray(n)||e.isValidElement(n))return;n=n[t]}return n}(t,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[t,r])}function Vt({children:e,dictionary:t,initialTranslations:r,locale:i,_versionId:a,defaultLocale:s,translationRequired:c,dialectTranslationRequired:l,locales:u=[],renderSettings:d,projectId:f,devApiKey:h,runtimeUrl:p,runtimeTranslationEnabled:y,onLocaleChange:g=()=>{},cookieName:b=C}){const[m,x]=n(h?null:r),[k,B]=n(i&&v(i,u)||"");o((()=>{var e;const t=null===(e=document.cookie.split("; ").find((e=>e.startsWith(`${b}=`))))||void 0===e?void 0:e.split("=")[1];k&&t&&t!==k&&(document.cookie=`${b}=${k};path=/`)}),[k]);o((()=>{x((e=>Object.assign(Object.assign({},r),e)))}),[r]);const{registerContentForTranslation:O,registerJsxForTranslation:S}=A({locale:k,versionId:a,projectId:f,devApiKey:h,runtimeUrl:p,setTranslations:x,defaultLocale:s,renderSettings:d,runtimeTranslationEnabled:y}),E=$t(m,k,s,c,l,y,O,d),T=Wt({dictionary:t,_internalUseGTFunction:E}),j=!(c&&!m)&&k;return _(w.Provider,{value:{registerContentForTranslation:O,registerJsxForTranslation:S,setLocale:e=>{e=v(e,u)||k||s,document.cookie=`${b}=${e};path=/`,B(e),g(),window.location.reload()},_internalUseGTFunction:E,_internalUseDictFunction:T,locale:k,locales:u,defaultLocale:s,translations:m,translationRequired:c,dialectTranslationRequired:l,renderSettings:d,runtimeTranslationEnabled:y},children:j&&e})}function Gt(e){var{children:t,name:r="branch",branch:n}=e,i=B(e,["children","name","branch"]);const{"data-_gt":o}=i,a=B(i,["data-_gt"]),s=(n=null==n?void 0:n.toString())&&void 0!==a[n]?a[n]:t;return _("span",{"data-_gt":o,"data-_gt-branch-name":n,"data-_gt-name":r||"branch",style:{display:"contents"},children:s})}function Kt(t,r=0){let n=r;const i=e=>{const{type:t,props:r}=e;n+=1;let i,o={id:n};try{i="function"==typeof t&&t.gtTransformation||""}catch(e){i=""}if(i){const t=i.split("-");if("translate"===t[0])throw new Error((e=>{var t;return`General Translation: Nested <T> components. The inner <T> has the id: "${null===(t=null==e?void 0:e.props)||void 0===t?void 0:t.id}".`})(e));if("variable"===t[0]&&(o.variableType=(null==t?void 0:t[1])||"variable"),"plural"===t[0]){const e=Object.entries(r).reduce(((e,[t,r])=>(function(e){return H.includes(e)}(t)&&(e[t]=Kt(r,n)),e)),{});Object.keys(e).length&&(o.branches=e)}if("branch"===t[0]){const e=B(r,["children","branch"]),t=Object.entries(e).reduce(((e,[t,r])=>(e[t]=Kt(r,n),e)),{});Object.keys(t).length&&(o.branches=t)}o.transformation=t[0]}return o};function o(t){return c(t)?function(t){const{props:r}=t;if(r["data-_gt"])throw new Error((e=>`General Translation already in use on child with props: ${e.props}. This usually occurs when you nest <T> components within the same file. Remove one of the <T> components to continue.`)(t));let n=i(t),o=Object.assign(Object.assign({},r),{"data-_gt":n});if(r.children&&!n.variableType&&(o.children=a(r.children)),t.type===e.Fragment)return o["data-_gt"].transformation,_("span",Object.assign({style:{all:"unset",display:"contents"}},o));return e.cloneElement(t,o)}(t):t}function a(t){return Array.isArray(t)?e.Children.map(t,o):o(t)}return a(t)}Gt.gtTransformation="branch";const Jt={variable:"value",number:"n",datetime:"date",currency:"cost"};function Xt(e="variable"){return Jt[e]||"variable"}const qt="_gt_";function Yt(e={},t){var r;if(e.name)return e.name;if(e["data-_gt-variable-name"])return e["data-_gt-variable-name"];return`${qt}${Jt[t]||"value"}_${null===(r=e["data-_gt"])||void 0===r?void 0:r.id}`}const Zt=e=>{var t;if(!e)return"";const{type:r,props:n}=e;if(r&&"function"==typeof r){if("displayName"in r&&"string"==typeof r.displayName&&r.displayName)return r.displayName;if("name"in r&&"string"==typeof r.name&&r.name)return r.name}return r&&"string"==typeof r?r:n.href?"a":(null===(t=n["data-_gt"])||void 0===t?void 0:t.id)?`C${n["data-_gt"].id}`:"function"},Qt=t=>{return r=t,e.isValidElement(r)?(e=>{const{type:t,props:r}=e;let n={type:Zt(e),props:{}};if(r["data-_gt"]){const e=r["data-_gt"];let t=Object.assign({},e);const i=e.transformation;if("variable"===i){const t=e.variableType||"variable";return{variable:t,key:Yt(r,t),id:e.id}}if("plural"===i&&e.branches){n.type="Plural";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}if("branch"===i&&e.branches){n.type="Branch";let r={};Object.entries(e.branches).forEach((([e,t])=>{r[e]=er(t)})),t=Object.assign(Object.assign({},t),{branches:r})}n.props["data-_gt"]=t}return r.children&&(n.props.children=er(r.children)),n})(t):"number"==typeof t?t.toString():t;var r};function er(e){return Array.isArray(e)?e.map(Qt):Qt(e)}function tr(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=H),void 0===r&&(r=[j]);var n=new Intl.PluralRules(r).select(e),i=Math.abs(e);if(0===i&&t.includes("zero"))return"zero";if(1===i){if(t.includes("singular"))return"singular";if(t.includes("one"))return"one"}if("one"===n&&t.includes("singular"))return"singular";if(2===i){if(t.includes("dual"))return"dual";if(t.includes("two"))return"two"}return"two"===n&&t.includes("dual")?"dual":t.includes(n)?n:"two"===n&&t.includes("dual")?"dual":"two"===n&&t.includes("plural")?"plural":"two"===n&&t.includes("other")?"other":"few"===n&&t.includes("plural")?"plural":"few"===n&&t.includes("other")?"other":"many"===n&&t.includes("plural")?"plural":"many"===n&&t.includes("other")?"other":"other"===n&&t.includes("plural")?"plural":""}(e,Object.keys(r),t)),n&&!i&&(i=r[n]),i}function rr(e){var t;const r=(null===(t=e["data-_gt"])||void 0===t?void 0:t.variableType)||"variable";return{variableType:r,variableName:Yt(e,r),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 t=Object.assign(Object.assign({},e.currency&&{currency:e.currency}),e.options&&Object.assign({},e.options));return Object.keys(t).length?t:"string"==typeof e["data-_gt-variable-options"]?JSON.parse(e["data-_gt-variable-options"]):e["data-_gt-variable-options"]||void 0})()}}function nr(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.key){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.id)return!0;if("string"==typeof t.variable)return!0}if(3===e.length&&"string"==typeof t.variable&&"number"==typeof t.id)return!0}return!1}function ir(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function or({children:t,variables:r={},variablesOptions:n={},defaultLocale:i=j,renderVariable:o}){const a=t=>e.isValidElement(t)?(t=>{const a=ir(t);if("variable"===(null==a?void 0:a.transformation)){let{variableName:e,variableType:a,variableValue:s,variableOptions:c}=rr(t.props);return s=(()=>{if(void 0!==r[e])return r[e];if(void 0!==s)return s;if(e.startsWith(qt)){const e=Xt(a);if(void 0!==r[e])return r[e]}})(),c=Object.assign(Object.assign({},n[e]),c),o({variableName:e,variableType:a,variableValue:s,variableOptions:c,locales:[i]})}if("plural"===(null==a?void 0:a.transformation)){const e="number"==typeof r.n?r.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"];"number"==typeof e&&void 0===r.n&&(r.n=e);const n=a.branches||{};return s(tr(e,[i],n)||t.props.children)}if("branch"===(null==a?void 0:a.transformation)){let e=t.props,{children:n,name:i,branch:o,"data-_gt":c}=e,l=B(e,["children","name","branch","data-_gt"]);return i=i||t.props["data-_gt-name"]||"branch",o=r[i]||o||t.props["data-_gt-branch-name"],l=a.branches||{},s(void 0!==l[o]?l[o]:n)}return t.props.children?e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0,children:s(t.props.children)})):e.cloneElement(t,Object.assign(Object.assign({},t.props),{"data-_gt":void 0}))})(t):t,s=t=>Array.isArray(t)?e.Children.map(t,a):a(t);return s(t)}function ar({sourceElement:t,targetElement:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){var s;const{props:c}=t,l=c["data-_gt"],u=null==l?void 0:l.transformation;if("plural"===u){const e="number"==typeof n.n?n.n:"number"==typeof t.props.n?t.props.n:t.props["data-_gt-n"],s=tr(e,o,l.branches||{})||t.props.children,c=tr(e,o,r.props["data-_gt"].branches||{})||r.props.children;return"number"==typeof e&&void 0===n.n&&(n.n=e),sr({source:s,target:c,variables:n,variablesOptions:i,locales:o,renderVariable:a})}if("branch"===u){let{name:e,branch:s,children:u}=c;e=e||t.props["data-_gt-name"]||"branch",s=n[e]||s||t.props["data-_gt-branch-name"];return sr({source:(l.branches||{})[s]||u,target:(r.props["data-_gt"].branches||{})[s]||r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})}return(null==c?void 0:c.children)&&(null===(s=r.props)||void 0===s?void 0:s.children)?e.cloneElement(t,Object.assign(Object.assign({},c),{"data-_gt":void 0,children:sr({source:c.children,target:r.props.children,variables:n,variablesOptions:i,locales:o,renderVariable:a})})):or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}function sr({source:t,target:r,variables:n={},variablesOptions:i={},locales:o=[j],renderVariable:a}){if(null==r&&t)return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const s=t.filter((t=>{if(e.isValidElement(t)){const e=ir(t);if(rr(t.props),"variable"!==(null==e?void 0:e.transformation))return!0;{let{variableName:e,variableValue:r,variableOptions:o,variableType:a}=rr(t.props);void 0===n[e]&&(n[e]=r);const s=Xt(a);void 0===n[s]&&(n[s]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}})),c=e=>s.find((t=>{var r,n;const i=ir(t);if(void 0!==(null==i?void 0:i.id)){return i.id===(null===(n=null===(r=null==e?void 0:e.props)||void 0===r?void 0:r["data-_gt"])||void 0===n?void 0:n.id)}return!1}));return r.map(((t,r)=>{if("string"==typeof t)return _(e.Fragment,{children:t},`string_${r}`);if(nr(t)){const s=t.key,c=t.variable||"variable",l=(()=>{if(void 0!==n[t.key])return n[t.key];if(s.startsWith(qt)){const e=Xt(c);if(void 0!==n[e])return n[e]}})();return _(e.Fragment,{children:a({variableType:c,variableName:s,variableValue:l,variableOptions:i[t.key],locales:o})},`var_${r}`)}const s=c(t);return s?_(e.Fragment,{children:ar({sourceElement:s,targetElement:t,variables:n,variablesOptions:i,locales:o,renderVariable:a})},`element_${r}`):void 0}))}if(r&&"object"==typeof r&&!Array.isArray(r)){const s=nr(r)?"variable":"element";if(e.isValidElement(t)){if("element"===s)return ar({sourceElement:t,targetElement:r,variables:n,variablesOptions:i,locales:o,renderVariable:a});const e=ir(t);if("variable"===(null==e?void 0:e.transformation)){let{variableName:e,variableValue:r,variableOptions:o}=rr(t.props);void 0===n[e]&&(n[e]=r),i[e]=Object.assign(Object.assign({},i[e]),o)}}if("variable"===s){const e=r,t=e.key,s=e.variable||"variable",c=(()=>{if(void 0!==n[e.key])return n[e.key];if(t.startsWith(qt)){const e=Xt(s);if(void 0!==n[e])return n[e]}})();return a({variableType:s,variableName:t,variableValue:c,variableOptions:i[e.key]||{},locales:o})}}return or({children:t,variables:n,variablesOptions:i,defaultLocale:o[0],renderVariable:a})}const cr={method:"default",timeout:"undefined"!=typeof process&&"development"!==process.env.NODE_ENV?8e3:12e3};function lr(e){var{children:t,n:n,locale:i}=e,o=B(e,["children","n","locale"]);const{"data-_gt":a}=o,s=B(o,["data-_gt"]),c=r(w);let l;c&&(i||(i=c.locale),l||(l=c.defaultLocale));const u=[...i?[i]:[],l||j];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(t));const d=tr(n,u,s)||t;return _("span",{"data-_gt":a,"data-_gt-n":n,style:{display:"contents"},children:d})}function ur(){const{_internalUseGTFunction:e}=k("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function dr(){return k("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function fr(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=k(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function hr(){return k("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}function pr({children:e,id:t,context:r}){if(!e)return;const{translations:n,translationRequired:i,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=k("<T> used on the client-side outside of <GTProvider>"),h=a((()=>Kt(e)),[e]),[p,v]=a((()=>{if(i){const e=er(h);return[e,Lt(Object.assign(Object.assign({source:e},r&&{context:r}),t&&{id:t}))]}return[void 0,""]}),[r,h,i,e]),y=null==n?void 0:n[v];o((()=>{s&&i&&n&&d&&!y&&l({source:p,targetLocale:d,metadata:{id:t,hash:v,context:r}})}),[s,n,y,i,t,v,r,d,e]);const g=()=>or({children:h,defaultLocale:f,renderVariable:I});if(!i||n&&!y&&!s||"error"===(null==y?void 0:y.state))return _(b,{children:g()});if(!y||"loading"===(null==y?void 0:y.state)){let e;return e="skeleton"===u.method?"":"replace"===u.method||c?g():"",_(b,{children:e})}return _(b,{children:(m=y.target,sr({source:h,target:m,locales:[d,f],renderVariable:I}))});var m}function vr(){return k("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function yr(e){var{locales:t=vr(),compare:r=(e,t)=>(new Intl.Collator).compare(l(e).nativeNameWithRegionCode,l(t).nativeNameWithRegionCode)}=e,n=B(e,["locales","compare"]);const i=hr(),o=function(){const{setLocale:e}=k("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}();return t&&0!==t.length&&o?(t.sort(r),m("select",Object.assign({},n,{value:i||"",onChange:e=>o(e.target.value),children:[!i&&_("option",{value:""}),t.map((e=>{return _("option",{value:e,suppressHydrationWarning:!0,children:(t=l(e).nativeNameWithRegionCode,t?t.charAt(0).toUpperCase()+(t.length>1?t.slice(1):""):"")},e);var t}))]}))):null}function gr(e){var{children:t,projectId:r="",devApiKey:i,dictionary:s={},locales:c=[],defaultLocale:u=j,locale:d,cacheUrl:f=E,runtimeUrl:h=T,renderSettings:p=cr,loadTranslation:b,_versionId:m}=e,k=B(e,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:S,devApiKey:H}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(r,i);console.log("projectId:",S),c=a((()=>(c.unshift(u),Array.from(new Set(c)))),[u,c]);const[z,P]=function({locale:e="",defaultLocale:t=j,locales:r=[],cookieName:i=C}){const[a,s]=n(e&&v(e,r)||"");return o((()=>{var n;if(e&&e===a&&v(e,r)===a)return;const o=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(n=document.cookie.split("; ").find((e=>e.startsWith(`${i}=`))))||void 0===n?void 0:n.split("=")[1],l=v([...e?[e]:[],...c?[c]:[],...o],r)||t;c&&c!==l&&(document.cookie=`${i}=${l};path=/`),s(l)}),[t,r]),[a,e=>{const n=v(e,r)||a||t;n!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(n,e)),s(n),document.cookie=`${i}=${n};path=/`}]}({defaultLocale:u,locales:c,locale:d}),R=!!(S&&h&&H&&"development"===process.env.NODE_ENV),D=(b?"custom":f&&"default")||"disabled";a((()=>{if("production"===process.env.NODE_ENV&&H)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===D||!f&&!h||S||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),S&&h&&"custom"!==D&&!H&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),h===T||f===E&&"default"===D){const e=(c||c).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=l(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,H,D,f,h,S,c]);const[I,F]=a((()=>{const e=y(u,z,c);return[e,e&&g(u,z)]}),[u,z,c]),[N,L]=n(I?null:{});o((()=>L(I?null:{})),[z]);const{registerContentForTranslation:M,registerJsxForTranslation:U}=A(Object.assign({locale:z,versionId:m,projectId:S,runtimeTranslationEnabled:R,defaultLocale:u,devApiKey:H,runtimeUrl:h,renderSettings:p,setTranslations:L},k));o((()=>{if(N||!I)return;let e=!0;return(()=>{O(this,void 0,void 0,(function*(){try{let t;switch(D){case"custom":b&&(t=yield b(z));break;case"default":t=yield function(e){return O(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:f,projectId:S,locale:z,versionId:m});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&L(r)}catch(t){console.error(t),e&&L({})}}))})(),()=>{e=!1}}),[N,I,D,f,S,z,m]);const $=$t(N,z,u,I,F,R,M,p),W=Wt({dictionary:s,_internalUseGTFunction:$}),V=!(I&&!N||!z);return _(w.Provider,{value:{registerContentForTranslation:M,registerJsxForTranslation:U,_internalUseGTFunction:$,_internalUseDictFunction:W,runtimeTranslationEnabled:R,locale:z,locales:c,setLocale:P,defaultLocale:u,translations:N,translationRequired:I,dialectTranslationRequired:F,projectId:S,renderSettings:p},children:V&&t})}lr.gtTransformation="plural",pr.gtTransformation="translate-client";export{Gt as Branch,Vt as ClientProvider,R as Currency,D as DateTime,w as GTContext,gr as GTProvider,yr as LocaleSelector,z as Num,lr as Plural,pr as T,P as Var,I as renderVariable,dr as useDefaultLocale,fr as useDict,ur as useGT,hr as useLocale,A as useRuntimeTranslation};
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(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 t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,j=u.words,T=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+j[0]:r<32?p(f,b,m)+j[1]:r<48?v(f,b,m)+j[2]:r<64?g(f,b,m)+j[3]:y(f,b,m)+j[4],A=(A=_(A|=0,P[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+T[0]:r<32?g(k,B,S)+T[1]:r<48?v(k,B,S)+T[2]:r<64?p(k,B,S)+T[3]:h(k,B,S)+T[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ae.exports;var e}(),Te(),function(){return Ce||(Ce=1,He.exports=(c=$(),ve(),Te(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),He.exports;var e,t,r,n,i,o,a,s,c}(),De(),Fe(),Ne(),We(),Ke(),qe(),function(){return Ye?Ze.exports:(Ye=1,Ze.exports=(t=$(),Fe(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Qe?et.exports:(Qe=1,et.exports=(e=$(),Fe(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return tt?rt.exports:(tt=1,rt.exports=(e=$(),Fe(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return nt?it.exports:(nt=1,it.exports=(e=$(),Fe(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return ot||(ot=1,at.exports=(e=$(),Fe(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),at.exports;var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=$(),Fe(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return lt?ut.exports:(lt=1,ut.exports=(n=$(),Fe(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return dt||(dt=1,ft.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),ft.exports;var e}(),vt(),function(){return gt||(gt=1,yt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),yt.exports;var e}(),function(){return _t||(_t=1,bt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),bt.exports;var e}(),function(){return mt||(mt=1,xt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),xt.exports;var e}(),Bt())),N.exports),Pt=I(Ht),zt=function(){return zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zt.apply(this,arguments)};function Dt(e){return Pt.SHA256(e).toString(Pt.enc.Hex)}function Rt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Dt),t(M(zt(zt({source:Ft(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var It=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ft(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ft(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return zt({key:e.key},e.variable&&{variable:e.variable})}return e};function Ft(e){return Array.isArray(e)?e.map(It):It(e)}function Lt({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=E("<T> used on the client-side outside of <GTProvider>"),h=t.useMemo((()=>b(r)),[r]),[p,v]=t.useMemo((()=>{if(a){const e=w(h);return[e,Rt(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,h,a,r]),g=null==o?void 0:o[v];t.useEffect((()=>{s&&a&&o&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:n,hash:v,context:i}})}),[s,o,g,a,n,v,i,d,r]);const _=()=>y({children:h,defaultLocale:f,renderVariable:P});if(!a||o&&!g&&!s||"error"===(null==g?void 0:g.state))return e.jsx(e.Fragment,{children:_()});if(!g||"loading"===(null==g?void 0:g.state)){let t;return t="skeleton"===u.method?"":"replace"===u.method||c?_():"",e.jsx(e.Fragment,{children:t})}return e.jsx(e.Fragment,{children:(m=g.target,S({source:h,target:m,locales:[d,f],renderVariable:P}))});var m}function Mt(){return E("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}Lt.gtTransformation="translate-client";function Nt({dictionary:e,_internalUseGTFunction:r}){return t.useCallback(((n,i={})=>{const o=function(e,r){let n=e,i=r.split(".");for(const e of i){if("object"!=typeof n||Array.isArray(n)||t.isValidElement(n))return;n=n[e]}return n}(e,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[e,r])}function Ut(r){var{children:n,n:o,locale:a}=r,s=i(r,["children","n","locale"]);const{"data-_gt":c}=s,l=i(s,["data-_gt"]),u=t.useContext(A);let d;u&&(a||(a=u.locale),d||(d=u.defaultLocale));const f=[...a?[a]:[],d||p];if("number"!=typeof o)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const h=g(o,f,l)||n;return e.jsx("span",{"data-_gt":c,"data-_gt-n":o,style:{display:"contents"},children:h})}function Vt(t){var{children:r,name:n="branch",branch:o}=t,a=i(t,["children","name","branch"]);const{"data-_gt":s}=a,c=i(a,["data-_gt"]),l=(o=null==o?void 0:o.toString())&&void 0!==c[o]?c[o]:r;return e.jsx("span",{"data-_gt":s,"data-_gt-branch-name":o,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Wt(){return E("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function $t(){const{setLocale:e}=E("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}Ut.gtTransformation="plural",Vt.gtTransformation="branch",exports.Branch=Vt,exports.Currency=C,exports.DateTime=H,exports.GTProvider=function(a){var{children:s,projectId:c="",devApiKey:l,dictionary:u={},locales:d=[],defaultLocale:v=p,locale:g,cacheUrl:y=f,runtimeUrl:b=h,renderSettings:m=O,loadTranslation:x,_versionId:w}=a,k=i(a,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:B,devApiKey:S}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||process.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY||process.env.REDWOOD_ENV_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(c,l);console.log("projectId:",B),d=t.useMemo((()=>(d.unshift(v),Array.from(new Set(d)))),[v,d]);const[E,j]=function({locale:e="",defaultLocale:n=p,locales:i=[],cookieName:o="generaltranslation.locale"}){const[a,s]=t.useState(e&&r.determineLocale(e,i)||"");return t.useEffect((()=>{var t;if(e&&e===a&&r.determineLocale(e,i)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(t=document.cookie.split("; ").find((e=>e.startsWith(`${o}=`))))||void 0===t?void 0:t.split("=")[1],u=r.determineLocale([...e?[e]:[],...l?[l]:[],...c],i)||n;l&&l!==u&&(document.cookie=`${o}=${u};path=/`),s(u)}),[n,i]),[a,e=>{const t=r.determineLocale(e,i)||a||n;t!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(t,e)),s(t),document.cookie=`${o}=${t};path=/`}]}({defaultLocale:v,locales:d,locale:g}),T=!!(B&&b&&S&&"development"===process.env.NODE_ENV),C=(x?"custom":y&&"default")||"disabled";t.useMemo((()=>{if("production"===process.env.NODE_ENV&&S)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===C||!y&&!b||B||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),B&&b&&"custom"!==C&&!S&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),b===h||y===f&&"default"===C){const e=(d||d).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=r.getLocaleProperties(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,S,C,y,b,B,d]);const[H,P]=t.useMemo((()=>{const e=r.requiresTranslation(v,E,d);return[e,e&&r.isSameLanguage(v,E)]}),[v,E,d]),[z,D]=t.useState(H?null:{});t.useEffect((()=>D(H?null:{})),[E]);const{registerContentForTranslation:R,registerJsxForTranslation:I}=function(e){var{projectId:r,devApiKey:n,locale:a,versionId:s,defaultLocale:c,runtimeUrl:l,renderSettings:u,setTranslations:d,runtimeTranslationEnabled:f}=e,h=i(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!f)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};h=Object.assign(Object.assign({},h),{projectId:r,sourceLocale:c});const[p,v]=t.useState(0),g=t.useRef(new Map),y=t.useRef(new Map);t.useEffect((()=>{g.current.forEach((e=>e.resolve())),g.current.clear()}),[a]);const[b,m]=t.useMemo((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=y.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{g.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{y.current.delete(r)}));return y.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),x=t.useCallback(((e,t)=>o(this,void 0,void 0,(function*(){if(0===g.current.size)return{};v((e=>e+1));const i=Array.from(e.values()),a={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});d((e=>Object.assign(Object.assign({},e||{}),c)));const f=(e,t,r)=>o(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),p=yield f(`${l}/v1/runtime/${r}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},n&&{"x-gt-dev-api-key":n}),body:JSON.stringify({requests:i,targetLocale:t,metadata:h,versionId:s})},u.timeout);if(!p.ok)throw new Error(yield p.text());(yield p.json()).forEach(((e,t)=>{const r=i[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;a[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(_(r.metadata.id,r.metadata.hash),e.error),void(a[n]={state:"error",error:e.error,code:e.code});console.error(_(r.metadata.id,r.metadata.hash),e),a[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),i.forEach((e=>{a[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return v((e=>e-1)),i.forEach((e=>e.resolve(a[e.metadata.hash]))),a}}))),[l,r,n,h,s,u.timeout]),w=t.useRef(p);return t.useEffect((()=>{w.current=p}),[p]),t.useEffect((()=>{let e=!0;const t=setInterval((()=>{if(g.current.size>0&&w.current<100){const t=Math.min(25,g.current.size),r=new Map(Array.from(g.current.entries()).slice(0,t));(()=>{o(this,void 0,void 0,(function*(){const t=yield x(r,a);e&&d((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>g.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[a]),{registerContentForTranslation:b,registerJsxForTranslation:m}}(Object.assign({locale:E,versionId:w,projectId:B,runtimeTranslationEnabled:T,defaultLocale:v,devApiKey:S,runtimeUrl:b,renderSettings:m,setTranslations:D},k));t.useEffect((()=>{if(z||!H)return;let e=!0;return(()=>{o(this,void 0,void 0,(function*(){try{let t;switch(C){case"custom":x&&(t=yield x(E));break;case"default":t=yield function(e){return o(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:y,projectId:B,locale:E,versionId:w});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&D(r)}catch(t){console.error(t),e&&D({})}}))})(),()=>{e=!1}}),[z,H,C,y,B,E,w]);const F=function(e,n,i,o,a,s,c,l){return t.useCallback(((t,u={})=>{if(!t||"string"!=typeof t)return"";const d=r.splitStringToContent(t),f=(e,t)=>r.renderContentToString(e,t,u.variables,u.variablesOptions);if(!o)return f(d,[i]);const h=Rt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==e?void 0:e[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,i]):"error"===(null==p?void 0:p.state)?f(d,[i]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[i]):"skeleton"===l.method?"":a?f(d,[i]):""):f(d,[i])}),[e,n,i,o,s,c,a])}(z,E,v,H,P,T,R,m),L=Nt({dictionary:u,_internalUseGTFunction:F}),M=!(H&&!z||!E);return e.jsx(A.Provider,{value:{registerContentForTranslation:R,registerJsxForTranslation:I,_internalUseGTFunction:F,_internalUseDictFunction:L,runtimeTranslationEnabled:T,locale:E,locales:d,setLocale:j,defaultLocale:v,translations:z,translationRequired:H,dialectTranslationRequired:P,projectId:B,renderSettings:m},children:M&&s})},exports.LocaleSelector=function(t){var{locales:n=Wt(),compare:o=(e,t)=>(new Intl.Collator).compare(r.getLocaleProperties(e).nativeNameWithRegionCode,r.getLocaleProperties(t).nativeNameWithRegionCode)}=t,a=i(t,["locales","compare"]);const s=Mt(),c=$t();return n&&0!==n.length&&c?(n.sort(o),e.jsxs("select",Object.assign({},a,{value:s||"",onChange:e=>c(e.target.value),children:[!s&&e.jsx("option",{value:""}),n.map((t=>{return e.jsx("option",{value:t,suppressHydrationWarning:!0,children:(n=r.getLocaleProperties(t).nativeNameWithRegionCode,n?n.charAt(0).toUpperCase()+(n.length>1?n.slice(1):""):"")},t);var n}))]}))):null},exports.Num=j,exports.Plural=Ut,exports.T=Lt,exports.Var=T,exports.useDefaultLocale=function(){return E("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=E(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=E("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Mt,exports.useLocales=Wt,exports.useSetLocale=$t;
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,S,O,A,E=this._hash.words,j=u.words,T=d.words,C=a.words,H=s.words,P=c.words,z=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],S=m=E[3],O=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+j[0]:r<32?p(f,b,m)+j[1]:r<48?v(f,b,m)+j[2]:r<64?g(f,b,m)+j[3]:y(f,b,m)+j[4],A=(A=_(A|=0,P[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?y(k,B,S)+T[0]:r<32?g(k,B,S)+T[1]:r<48?v(k,B,S)+T[2]:r<64?p(k,B,S)+T[3]:h(k,B,S)+T[4],A=(A=_(A|=0,z[r]))+O|0,w=O,O=S,S=_(B,10),B=k,k=A;A=E[1]+b+S|0,E[1]=E[2]+m+O|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),Ae.exports;var e}(),Te(),function(){return Ce||(Ce=1,He.exports=(c=$(),ve(),Te(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,g=1;g<d;g++){v=i.finalize(v),i.reset();for(var y=v.words,_=0;_<p;_++)h[_]^=y[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),He.exports;var e,t,r,n,i,o,a,s,c}(),De(),Fe(),Ne(),We(),Ke(),qe(),function(){return Ye?Ze.exports:(Ye=1,Ze.exports=(t=$(),Fe(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Qe?et.exports:(Qe=1,et.exports=(e=$(),Fe(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return tt?rt.exports:(tt=1,rt.exports=(e=$(),Fe(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return nt?it.exports:(nt=1,it.exports=(e=$(),Fe(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return ot||(ot=1,at.exports=(e=$(),Fe(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),at.exports;var e}(),function(){return st?ct.exports:(st=1,ct.exports=(e=$(),Fe(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return lt?ut.exports:(lt=1,ut.exports=(n=$(),Fe(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return dt||(dt=1,ft.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],g=e[v],y=e[g],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*y^65537*g^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[y^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],g=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],y=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=g,d=y,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],y=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),ft.exports;var e}(),vt(),function(){return gt||(gt=1,yt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),yt.exports;var e}(),function(){return _t||(_t=1,bt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),bt.exports;var e}(),function(){return mt||(mt=1,xt.exports=(e=$(),ne(),le(),De(),Fe(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),xt.exports;var e}(),Bt())),N.exports),Pt=I(Ht),zt=function(){return zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zt.apply(this,arguments)};function Dt(e){return Pt.SHA256(e).toString(Pt.enc.Hex)}function Rt(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Dt),t(M(zt(zt({source:Ft(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var It=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],Ft(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=Ft(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return zt({key:e.key},e.variable&&{variable:e.variable})}return e};function Ft(e){return Array.isArray(e)?e.map(It):It(e)}function Lt({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:s,dialectTranslationRequired:c,registerJsxForTranslation:l,renderSettings:u,locale:d,defaultLocale:f}=E("<T> used on the client-side outside of <GTProvider>"),h=t.useMemo((()=>b(r)),[r]),[p,v]=t.useMemo((()=>{if(a){const e=w(h);return[e,Rt(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,h,a,r]),g=null==o?void 0:o[v];t.useEffect((()=>{s&&a&&o&&d&&!g&&l({source:p,targetLocale:d,metadata:{id:n,hash:v,context:i}})}),[s,o,g,a,n,v,i,d,r]);const _=()=>y({children:h,defaultLocale:f,renderVariable:P});if(!a||o&&!g&&!s||"error"===(null==g?void 0:g.state))return e.jsx(e.Fragment,{children:_()});if(!g||"loading"===(null==g?void 0:g.state)){let t;return t="skeleton"===u.method?"":"replace"===u.method||c?_():"",e.jsx(e.Fragment,{children:t})}return e.jsx(e.Fragment,{children:(m=g.target,S({source:h,target:m,locales:[d,f],renderVariable:P}))});var m}function Mt(){return E("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}Lt.gtTransformation="translate-client";function Nt({dictionary:e,_internalUseGTFunction:r}){return t.useCallback(((n,i={})=>{const o=function(e,r){let n=e,i=r.split(".");for(const e of i){if("object"!=typeof n||Array.isArray(n)||t.isValidElement(n))return;n=n[e]}return n}(e,n);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(n)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(n)),"";const{entry:a,metadata:s}=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}}(o);return r(a,Object.assign(Object.assign(Object.assign({},s),i),{id:n}))}),[e,r])}function Ut(r){var{children:n,n:o,locale:a}=r,s=i(r,["children","n","locale"]);const{"data-_gt":c}=s,l=i(s,["data-_gt"]),u=t.useContext(A);let d;u&&(a||(a=u.locale),d||(d=u.defaultLocale));const f=[...a?[a]:[],d||p];if("number"!=typeof o)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(n));const h=g(o,f,l)||n;return e.jsx("span",{"data-_gt":c,"data-_gt-n":o,style:{display:"contents"},children:h})}function Vt(t){var{children:r,name:n="branch",branch:o}=t,a=i(t,["children","name","branch"]);const{"data-_gt":s}=a,c=i(a,["data-_gt"]),l=(o=null==o?void 0:o.toString())&&void 0!==c[o]?c[o]:r;return e.jsx("span",{"data-_gt":s,"data-_gt-branch-name":o,"data-_gt-name":n||"branch",style:{display:"contents"},children:l})}function Wt(){return E("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function $t(){const{setLocale:e}=E("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}Ut.gtTransformation="plural",Vt.gtTransformation="branch",exports.Branch=Vt,exports.Currency=C,exports.DateTime=H,exports.GTProvider=function(a){var{children:s,projectId:c="",devApiKey:l,dictionary:u={},locales:d=[],defaultLocale:v=p,locale:g,cacheUrl:y=f,runtimeUrl:b=h,renderSettings:m=O,loadTranslation:x,_versionId:w}=a,k=i(a,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:B,devApiKey:S}=function(e,t){try{return{projectId:e||(void 0).VITE_GT_PROJECT_ID||(void 0).REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||(void 0).VITE_GT_API_KEY||(void 0).REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(c,l);console.log("projectId:",B),d=t.useMemo((()=>(d.unshift(v),Array.from(new Set(d)))),[v,d]);const[E,j]=function({locale:e="",defaultLocale:n=p,locales:i=[],cookieName:o="generaltranslation.locale"}){const[a,s]=t.useState(e&&r.determineLocale(e,i)||"");return t.useEffect((()=>{var t;if(e&&e===a&&r.determineLocale(e,i)===a)return;const c=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[n],l=null===(t=document.cookie.split("; ").find((e=>e.startsWith(`${o}=`))))||void 0===t?void 0:t.split("=")[1],u=r.determineLocale([...e?[e]:[],...l?[l]:[],...c],i)||n;l&&l!==u&&(document.cookie=`${o}=${u};path=/`),s(u)}),[n,i]),[a,e=>{const t=r.determineLocale(e,i)||a||n;t!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(t,e)),s(t),document.cookie=`${o}=${t};path=/`}]}({defaultLocale:v,locales:d,locale:g}),T=!!(B&&b&&S&&"development"===process.env.NODE_ENV),C=(x?"custom":y&&"default")||"disabled";t.useMemo((()=>{if("production"===process.env.NODE_ENV&&S)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===C||!y&&!b||B||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),B&&b&&"custom"!==C&&!S&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),b===h||y===f&&"default"===C){const e=(d||d).filter((e=>!n.getSupportedLocale(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=r.getLocaleProperties(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,S,C,y,b,B,d]);const[H,P]=t.useMemo((()=>{const e=r.requiresTranslation(v,E,d);return[e,e&&r.isSameLanguage(v,E)]}),[v,E,d]),[z,D]=t.useState(H?null:{});t.useEffect((()=>D(H?null:{})),[E]);const{registerContentForTranslation:R,registerJsxForTranslation:I}=function(e){var{projectId:r,devApiKey:n,locale:a,versionId:s,defaultLocale:c,runtimeUrl:l,renderSettings:u,setTranslations:d,runtimeTranslationEnabled:f}=e,h=i(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!f)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};h=Object.assign(Object.assign({},h),{projectId:r,sourceLocale:c});const[p,v]=t.useState(0),g=t.useRef(new Map),y=t.useRef(new Map);t.useEffect((()=>{g.current.forEach((e=>e.resolve())),g.current.clear()}),[a]);const[b,m]=t.useMemo((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=y.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{g.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{y.current.delete(r)}));return y.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),x=t.useCallback(((e,t)=>o(this,void 0,void 0,(function*(){if(0===g.current.size)return{};v((e=>e+1));const i=Array.from(e.values()),a={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});d((e=>Object.assign(Object.assign({},e||{}),c)));const f=(e,t,r)=>o(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),p=yield f(`${l}/v1/runtime/${r}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},n&&{"x-gt-dev-api-key":n}),body:JSON.stringify({requests:i,targetLocale:t,metadata:h,versionId:s})},u.timeout);if(!p.ok)throw new Error(yield p.text());(yield p.json()).forEach(((e,t)=>{const r=i[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;a[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(_(r.metadata.id,r.metadata.hash),e.error),void(a[n]={state:"error",error:e.error,code:e.code});console.error(_(r.metadata.id,r.metadata.hash),e),a[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),i.forEach((e=>{a[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return v((e=>e-1)),i.forEach((e=>e.resolve(a[e.metadata.hash]))),a}}))),[l,r,n,h,s,u.timeout]),w=t.useRef(p);return t.useEffect((()=>{w.current=p}),[p]),t.useEffect((()=>{let e=!0;const t=setInterval((()=>{if(g.current.size>0&&w.current<100){const t=Math.min(25,g.current.size),r=new Map(Array.from(g.current.entries()).slice(0,t));(()=>{o(this,void 0,void 0,(function*(){const t=yield x(r,a);e&&d((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>g.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[a]),{registerContentForTranslation:b,registerJsxForTranslation:m}}(Object.assign({locale:E,versionId:w,projectId:B,runtimeTranslationEnabled:T,defaultLocale:v,devApiKey:S,runtimeUrl:b,renderSettings:m,setTranslations:D},k));t.useEffect((()=>{if(z||!H)return;let e=!0;return(()=>{o(this,void 0,void 0,(function*(){try{let t;switch(C){case"custom":x&&(t=yield x(E));break;case"default":t=yield function(e){return o(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:y,projectId:B,locale:E,versionId:w});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&D(r)}catch(t){console.error(t),e&&D({})}}))})(),()=>{e=!1}}),[z,H,C,y,B,E,w]);const F=function(e,n,i,o,a,s,c,l){return t.useCallback(((t,u={})=>{if(!t||"string"!=typeof t)return"";const d=r.splitStringToContent(t),f=(e,t)=>r.renderContentToString(e,t,u.variables,u.variablesOptions);if(!o)return f(d,[i]);const h=Rt(Object.assign(Object.assign({source:d},(null==u?void 0:u.context)&&{context:u.context}),(null==u?void 0:u.id)&&{id:u.id})),p=null==e?void 0:e[h];return"success"===(null==p?void 0:p.state)?f(p.target,[n,i]):"error"===(null==p?void 0:p.state)?f(d,[i]):s?(c({source:d,targetLocale:n,metadata:Object.assign(Object.assign({},(null==u?void 0:u.context)&&{context:u.context}),{id:null==u?void 0:u.id,hash:h})}),"replace"===l.method?f(d,[i]):"skeleton"===l.method?"":a?f(d,[i]):""):f(d,[i])}),[e,n,i,o,s,c,a])}(z,E,v,H,P,T,R,m),L=Nt({dictionary:u,_internalUseGTFunction:F}),M=!(H&&!z||!E);return e.jsx(A.Provider,{value:{registerContentForTranslation:R,registerJsxForTranslation:I,_internalUseGTFunction:F,_internalUseDictFunction:L,runtimeTranslationEnabled:T,locale:E,locales:d,setLocale:j,defaultLocale:v,translations:z,translationRequired:H,dialectTranslationRequired:P,projectId:B,renderSettings:m},children:M&&s})},exports.LocaleSelector=function(t){var{locales:n=Wt(),compare:o=(e,t)=>(new Intl.Collator).compare(r.getLocaleProperties(e).nativeNameWithRegionCode,r.getLocaleProperties(t).nativeNameWithRegionCode)}=t,a=i(t,["locales","compare"]);const s=Mt(),c=$t();return n&&0!==n.length&&c?(n.sort(o),e.jsxs("select",Object.assign({},a,{value:s||"",onChange:e=>c(e.target.value),children:[!s&&e.jsx("option",{value:""}),n.map((t=>{return e.jsx("option",{value:t,suppressHydrationWarning:!0,children:(n=r.getLocaleProperties(t).nativeNameWithRegionCode,n?n.charAt(0).toUpperCase()+(n.length>1?n.slice(1):""):"")},t);var n}))]}))):null},exports.Num=j,exports.Plural=Ut,exports.T=Lt,exports.Var=T,exports.useDefaultLocale=function(){return E("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale},exports.useDict=function(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=E(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}},exports.useGT=function(){const{_internalUseGTFunction:e}=E("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}},exports.useLocale=Mt,exports.useLocales=Wt,exports.useSetLocale=$t;
@@ -15,4 +15,4 @@ e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(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 t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),$e.exports;var e}(),Je(),function(){return Xe||(Xe=1,Ye.exports=(c=le(),ze(),Je(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),Ye.exports;var e,t,r,n,i,o,a,s,c}(),Qe(),rt(),ot(),ct(),dt(),pt(),function(){return vt?yt.exports:(vt=1,yt.exports=(t=le(),rt(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return gt?_t.exports:(gt=1,_t.exports=(e=le(),rt(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return bt?mt.exports:(bt=1,mt.exports=(e=le(),rt(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return xt?wt.exports:(xt=1,wt.exports=(e=le(),rt(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return kt||(kt=1,Bt.exports=(e=le(),rt(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Bt.exports;var e}(),function(){return Ot?St.exports:(Ot=1,St.exports=(e=le(),rt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return At?Et.exports:(At=1,Et.exports=(n=le(),rt(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Tt||(Tt=1,jt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),jt.exports;var e}(),zt(),function(){return Pt||(Pt=1,Dt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),Dt.exports;var e}(),function(){return Rt||(Rt=1,It.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),It.exports;var e}(),function(){return Ft||(Ft=1,Nt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Nt.exports;var e}(),Ut())),oe.exports),qt=te(Yt),Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zt.apply(this,arguments)};function Qt(e){return qt.SHA256(e).toString(qt.enc.Hex)}function er(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Qt),t(ie(Zt(Zt({source:rr(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var tr=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],rr(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=rr(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Zt({key:e.key},e.variable&&{variable:e.variable})}return e};function rr(e){return Array.isArray(e)?e.map(tr):tr(e)}function nr({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:l,dialectTranslationRequired:u,registerJsxForTranslation:d,renderSettings:f,locale:h,defaultLocale:p}=G("<T> used on the client-side outside of <GTProvider>"),v=s((()=>I(r)),[r]),[y,g]=s((()=>{if(a){const e=M(v);return[e,er(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,v,a,r]),_=null==o?void 0:o[g];c((()=>{l&&a&&o&&h&&!_&&d({source:y,targetLocale:h,metadata:{id:n,hash:g,context:i}})}),[l,o,_,a,n,g,i,h,r]);const b=()=>D({children:v,defaultLocale:p,renderVariable:q});if(!a||o&&!_&&!l||"error"===(null==_?void 0:_.state))return e(t,{children:b()});if(!_||"loading"===(null==_?void 0:_.state)){let r;return r="skeleton"===f.method?"":"replace"===f.method||u?b():"",e(t,{children:r})}return e(t,{children:(m=_.target,W({source:v,target:m,locales:[h,p],renderVariable:q}))});var m}function ir(){const{_internalUseGTFunction:e}=G("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function or(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=G(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function ar(){return G("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function sr(){return G("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}nr.gtTransformation="translate-client";function cr({dictionary:e,_internalUseGTFunction:t}){return d(((r,i={})=>{const o=function(e,t){let r=e,i=t.split(".");for(const e of i){if("object"!=typeof r||Array.isArray(r)||n.isValidElement(r))return;r=r[e]}return r}(e,r);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(r)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(r)),"";const{entry:a,metadata:s}=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}}(o);return t(a,Object.assign(Object.assign(Object.assign({},s),i),{id:r}))}),[e,t])}function lr(t){var{children:r,projectId:n="",devApiKey:i,dictionary:o={},locales:a=[],defaultLocale:h=H,locale:p,cacheUrl:v=j,runtimeUrl:B=C,renderSettings:O=V,loadTranslation:S,_versionId:A}=t,E=w(t,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:T,devApiKey:z}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||process.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY||process.env.REDWOOD_ENV_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(n,i);console.log("projectId:",T),a=s((()=>(a.unshift(h),Array.from(new Set(a)))),[h,a]);const[P,D]=function({locale:e="",defaultLocale:t=H,locales:r=[],cookieName:n="generaltranslation.locale"}){const[i,o]=l(e&&y(e,r)||"");return c((()=>{var a;if(e&&e===i&&y(e,r)===i)return;const s=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(a=document.cookie.split("; ").find((e=>e.startsWith(`${n}=`))))||void 0===a?void 0:a.split("=")[1],l=y([...e?[e]:[],...c?[c]:[],...s],r)||t;c&&c!==l&&(document.cookie=`${n}=${l};path=/`),o(l)}),[t,r]),[i,e=>{const a=y(e,r)||i||t;a!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(a,e)),o(a),document.cookie=`${n}=${a};path=/`}]}({defaultLocale:h,locales:a,locale:p}),I=!!(T&&B&&z&&"development"===process.env.NODE_ENV),F=(S?"custom":v&&"default")||"disabled";s((()=>{if("production"===process.env.NODE_ENV&&z)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===F||!v&&!B||T||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),T&&B&&"custom"!==F&&!z&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),B===C||v===j&&"default"===F){const e=(a||a).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=f(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,z,F,v,B,T,a]);const[N,M]=s((()=>{const e=b(h,P,a);return[e,e&&m(h,P)]}),[h,P,a]),[L,U]=l(N?null:{});c((()=>U(N?null:{})),[P]);const{registerContentForTranslation:W,registerJsxForTranslation:G}=function(e){var{projectId:t,devApiKey:r,locale:n,versionId:i,defaultLocale:o,runtimeUrl:a,renderSettings:f,setTranslations:h,runtimeTranslationEnabled:p}=e,v=w(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!p)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};v=Object.assign(Object.assign({},v),{projectId:t,sourceLocale:o});const[y,g]=l(0),_=u(new Map),b=u(new Map);c((()=>{_.current.forEach((e=>e.resolve())),_.current.clear()}),[n]);const[m,x]=s((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=b.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{_.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{b.current.delete(r)}));return b.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),B=d(((e,n)=>k(this,void 0,void 0,(function*(){if(0===_.current.size)return{};g((e=>e+1));const o=Array.from(e.values()),s={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});h((e=>Object.assign(Object.assign({},e||{}),c)));const l=(e,t,r)=>k(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),u=yield l(`${a}/v1/runtime/${t}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},r&&{"x-gt-dev-api-key":r}),body:JSON.stringify({requests:o,targetLocale:n,metadata:v,versionId:i})},f.timeout);if(!u.ok)throw new Error(yield u.text());(yield u.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;s[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(R(r.metadata.id,r.metadata.hash),e.error),void(s[n]={state:"error",error:e.error,code:e.code});console.error(R(r.metadata.id,r.metadata.hash),e),s[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{s[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return g((e=>e-1)),o.forEach((e=>e.resolve(s[e.metadata.hash]))),s}}))),[a,t,r,v,i,f.timeout]),O=u(y);return c((()=>{O.current=y}),[y]),c((()=>{let e=!0;const t=setInterval((()=>{if(_.current.size>0&&O.current<100){const t=Math.min(25,_.current.size),r=new Map(Array.from(_.current.entries()).slice(0,t));(()=>{k(this,void 0,void 0,(function*(){const t=yield B(r,n);e&&h((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>_.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[n]),{registerContentForTranslation:m,registerJsxForTranslation:x}}(Object.assign({locale:P,versionId:A,projectId:T,runtimeTranslationEnabled:I,defaultLocale:h,devApiKey:z,runtimeUrl:B,renderSettings:O,setTranslations:U},E));c((()=>{if(L||!N)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){try{let t;switch(F){case"custom":S&&(t=yield S(P));break;case"default":t=yield function(e){return k(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:v,projectId:T,locale:P,versionId:A});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&U(r)}catch(t){console.error(t),e&&U({})}}))})(),()=>{e=!1}}),[L,N,F,v,T,P,A]);const K=function(e,t,r,n,i,o,a,s){return d(((c,l={})=>{if(!c||"string"!=typeof c)return"";const u=g(c),d=(e,t)=>_(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=er(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),h=null==e?void 0:e[f];return"success"===(null==h?void 0:h.state)?d(h.target,[t,r]):"error"===(null==h?void 0:h.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===s.method?d(u,[r]):"skeleton"===s.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}(L,P,h,N,M,I,W,O),J=cr({dictionary:o,_internalUseGTFunction:K}),X=!(N&&!L||!P);return e($.Provider,{value:{registerContentForTranslation:W,registerJsxForTranslation:G,_internalUseGTFunction:K,_internalUseDictFunction:J,runtimeTranslationEnabled:I,locale:P,locales:a,setLocale:D,defaultLocale:h,translations:L,translationRequired:N,dialectTranslationRequired:M,projectId:T,renderSettings:O},children:X&&r})}function ur(t){var{children:r,n:n,locale:i}=t,o=w(t,["children","n","locale"]);const{"data-_gt":s}=o,c=w(o,["data-_gt"]),l=a($);let u;l&&(i||(i=l.locale),u||(u=l.defaultLocale));const d=[...i?[i]:[],u||H];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(r));const f=P(n,d,c)||r;return e("span",{"data-_gt":s,"data-_gt-n":n,style:{display:"contents"},children:f})}function dr(t){var{children:r,name:n="branch",branch:i}=t,o=w(t,["children","name","branch"]);const{"data-_gt":a}=o,s=w(o,["data-_gt"]),c=(i=null==i?void 0:i.toString())&&void 0!==s[i]?s[i]:r;return e("span",{"data-_gt":a,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:c})}function fr(){return G("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function hr(){const{setLocale:e}=G("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function pr(t){var{locales:n=fr(),compare:i=(e,t)=>(new Intl.Collator).compare(f(e).nativeNameWithRegionCode,f(t).nativeNameWithRegionCode)}=t,o=w(t,["locales","compare"]);const a=sr(),s=hr();return n&&0!==n.length&&s?(n.sort(i),r("select",Object.assign({},o,{value:a||"",onChange:e=>s(e.target.value),children:[!a&&e("option",{value:""}),n.map((t=>{return e("option",{value:t,suppressHydrationWarning:!0,children:(r=f(t).nativeNameWithRegionCode,r?r.charAt(0).toUpperCase()+(r.length>1?r.slice(1):""):"")},t);var r}))]}))):null}ur.gtTransformation="plural",dr.gtTransformation="branch";export{dr as Branch,X as Currency,Y as DateTime,lr as GTProvider,pr as LocaleSelector,K as Num,ur as Plural,nr as T,J as Var,ar as useDefaultLocale,or as useDict,ir as useGT,sr as useLocale,fr as useLocales,hr as useSetLocale};
18
+ function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.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]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),d=n.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,x,w,k,B,O,S,A,E=this._hash.words,T=u.words,j=d.words,C=a.words,H=s.words,z=c.words,P=l.words;for(w=o=E[0],k=f=E[1],B=b=E[2],O=m=E[3],S=x=E[4],r=0;r<80;r+=1)A=o+e[t+C[r]]|0,A+=r<16?h(f,b,m)+T[0]:r<32?p(f,b,m)+T[1]:r<48?v(f,b,m)+T[2]:r<64?y(f,b,m)+T[3]:g(f,b,m)+T[4],A=(A=_(A|=0,z[r]))+x|0,o=x,x=m,m=_(b,10),b=f,f=A,A=w+e[t+H[r]]|0,A+=r<16?g(k,B,O)+j[0]:r<32?y(k,B,O)+j[1]:r<48?v(k,B,O)+j[2]:r<64?p(k,B,O)+j[3]:h(k,B,O)+j[4],A=(A=_(A|=0,P[r]))+S|0,w=S,S=O,O=_(B,10),B=k,k=A;A=E[1]+b+O|0,E[1]=E[2]+m+S|0,E[2]=E[3]+x+w|0,E[3]=E[4]+o+k|0,E[4]=E[0]+f+B|0,E[0]=A},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.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 h(e,t,r){return e^t^r}function p(e,t,r){return e&t|~e&r}function v(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function g(e,t,r){return e^(t|~r)}function _(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160)),$e.exports;var e}(),Je(),function(){return Xe||(Xe=1,Ye.exports=(c=le(),ze(),Je(),t=(e=c).lib,r=t.Base,n=t.WordArray,i=e.algo,o=i.SHA256,a=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=a.create(r.hasher,e),o=n.create(),s=n.create([1]),c=o.words,l=s.words,u=r.keySize,d=r.iterations;c.length<u;){var f=i.update(t).finalize(s);i.reset();for(var h=f.words,p=h.length,v=f,y=1;y<d;y++){v=i.finalize(v),i.reset();for(var g=v.words,_=0;_<p;_++)h[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,r){return s.create(r).compute(e,t)},c.PBKDF2)),Ye.exports;var e,t,r,n,i,o,a,s,c}(),Qe(),rt(),ot(),ct(),dt(),pt(),function(){return vt?yt.exports:(vt=1,yt.exports=(t=le(),rt(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return gt?_t.exports:(gt=1,_t.exports=(e=le(),rt(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return bt?mt.exports:(bt=1,mt.exports=(e=le(),rt(),e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return xt?wt.exports:(xt=1,wt.exports=(e=le(),rt(),e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return kt||(kt=1,Bt.exports=(e=le(),rt(),e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.ZeroPadding)),Bt.exports;var e}(),function(){return Ot?St.exports:(Ot=1,St.exports=(e=le(),rt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return At?Et.exports:(At=1,Et.exports=(n=le(),rt(),t=(e=n).lib.CipherParams,r=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var n=r.parse(e);return t.create({ciphertext:n})}},n.format.Hex));var e,t,r,n}(),function(){return Tt||(Tt=1,jt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var v=e[r],y=e[v],g=e[y],_=257*e[p]^16843008*p;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[p]=_<<24|_>>>8,d[p]=_<<16|_>>>16,f[p]=_<<8|_>>>24,h[p]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[n]]):r=n=1}}();var p=[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 e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=t[a]:(l=o[a-1],a%r?r>6&&a%r==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^=p[a/r|0]<<24),o[a]=o[a-r]^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:u[i[l>>>24]]^d[i[l>>>16&255]]^f[i[l>>>8&255]]^h[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,l=e[t]^r[0],u=e[t+1]^r[1],d=e[t+2]^r[2],f=e[t+3]^r[3],h=4,p=1;p<c;p++){var v=n[l>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&f]^r[h++],y=n[u>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++],g=n[d>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&d]^r[h++];l=v,u=y,d=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^r[h++],y=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++],g=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^r[h++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),jt.exports;var e}(),zt(),function(){return Pt||(Pt=1,Dt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=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%r,s=t[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,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._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)}});t.RC4Drop=r._createHelper(a)}(),e.RC4)),Dt.exports;var e}(),function(){return Rt||(Rt=1,It.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>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,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.Rabbit=r._createHelper(s)}(),e.Rabbit)),It.exports;var e}(),function(){return Ft||(Ft=1,Nt.exports=(e=le(),xe(),Ae(),Qe(),rt(),function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=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]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=d,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=d,n[6]^=u,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[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[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],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[r]=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}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy)),Nt.exports;var e}(),Ut())),oe.exports),qt=te(Yt),Zt=function(){return Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Zt.apply(this,arguments)};function Qt(e){return qt.SHA256(e).toString(qt.enc.Hex)}function er(e,t){var r=e.source,n=e.context,i=e.id;return void 0===t&&(t=Qt),t(ie(Zt(Zt({source:rr(r)},i&&{id:i}),n&&{context:n})))}"function"==typeof SuppressedError&&SuppressedError;var tr=function(e){var t,r,n,i;if(e&&"object"==typeof e){if("props"in e){var o={},a=null===(t=null==e?void 0:e.props)||void 0===t?void 0:t["data-_gt"];return(null==a?void 0:a.branches)&&(o.branches=Object.fromEntries(Object.entries(a.branches).map((function(e){return[e[0],rr(e[1])]})))),(null===(r=null==e?void 0:e.props)||void 0===r?void 0:r.children)&&(o.children=rr(e.props.children)),(null===(i=null===(n=null==e?void 0:e.props)||void 0===n?void 0:n["data-_gt"])||void 0===i?void 0:i.transformation)&&(o.transformation=e.props["data-_gt"].transformation),o}if("key"in e)return Zt({key:e.key},e.variable&&{variable:e.variable})}return e};function rr(e){return Array.isArray(e)?e.map(tr):tr(e)}function nr({children:r,id:n,context:i}){if(!r)return;const{translations:o,translationRequired:a,runtimeTranslationEnabled:l,dialectTranslationRequired:u,registerJsxForTranslation:d,renderSettings:f,locale:h,defaultLocale:p}=G("<T> used on the client-side outside of <GTProvider>"),v=s((()=>I(r)),[r]),[y,g]=s((()=>{if(a){const e=M(v);return[e,er(Object.assign(Object.assign({source:e},i&&{context:i}),n&&{id:n}))]}return[void 0,""]}),[i,v,a,r]),_=null==o?void 0:o[g];c((()=>{l&&a&&o&&h&&!_&&d({source:y,targetLocale:h,metadata:{id:n,hash:g,context:i}})}),[l,o,_,a,n,g,i,h,r]);const b=()=>D({children:v,defaultLocale:p,renderVariable:q});if(!a||o&&!_&&!l||"error"===(null==_?void 0:_.state))return e(t,{children:b()});if(!_||"loading"===(null==_?void 0:_.state)){let r;return r="skeleton"===f.method?"":"replace"===f.method||u?b():"",e(t,{children:r})}return e(t,{children:(m=_.target,W({source:v,target:m,locales:[h,p],renderVariable:q}))});var m}function ir(){const{_internalUseGTFunction:e}=G("useGT(): No context provided. You're trying to get the t() function from the useGT() hook, which can be invoked within a <GTProvider>.");return function(t,r={}){return e(t,r)}}function or(e){const t=t=>e?`${e}.${t}`:t,{_internalUseDictFunction:r}=G(`useGT('${e}'): No context provided. You're trying to get the t() function on the client, which can only be done inside a <GTProvider>.`);return function(e,n={}){const i=t(e);return r(i,n)}}function ar(){return G("useDefaultLocale(): Unable to access default locale outside of a <GTProvider>").defaultLocale}function sr(){return G("useLocale(): Unable to access user's locale outside of a <GTProvider>").locale}nr.gtTransformation="translate-client";function cr({dictionary:e,_internalUseGTFunction:t}){return d(((r,i={})=>{const o=function(e,t){let r=e,i=t.split(".");for(const e of i){if("object"!=typeof r||Array.isArray(r)||n.isValidElement(r))return;r=r[e]}return r}(e,r);if(!o)return console.warn((e=>`No valid dictionary entry found for id: "${e}"`)(r)),"";if(!function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof(null==e?void 0:e[0]))return!1;const t=null==e?void 0:e[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1}(o))return console.warn((e=>`Invalid dictionary entry found for id: "${e}"`)(r)),"";const{entry:a,metadata:s}=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}}(o);return t(a,Object.assign(Object.assign(Object.assign({},s),i),{id:r}))}),[e,t])}function lr(t){var{children:r,projectId:n="",devApiKey:i,dictionary:o={},locales:a=[],defaultLocale:h=H,locale:p,cacheUrl:v=j,runtimeUrl:B=C,renderSettings:O=V,loadTranslation:S,_versionId:A}=t,E=w(t,["children","projectId","devApiKey","dictionary","locales","defaultLocale","locale","cacheUrl","runtimeUrl","renderSettings","loadTranslation","_versionId"]);const{projectId:T,devApiKey:z}=function(e,t){try{return{projectId:e||import.meta.env.VITE_GT_PROJECT_ID||import.meta.env.REDWOOD_ENV_GT_PROJECT_ID||"",devApiKey:t||import.meta.env.VITE_GT_API_KEY||import.meta.env.REDWOOD_ENV_GT_API_KEY}}catch(e){}try{if("undefined"!=typeof process)return{projectId:e||process.env.GT_PROJECT_ID||process.env.REACT_APP_GT_PROJECT_ID||process.env.NEXT_PUBLIC_GT_PROJECT_ID||process.env.GATSBY_GT_PROJECT_ID||"",devApiKey:t||process.env.GT_API_KEY||process.env.REACT_APP_GT_API_KEY||process.env.NEXT_PUBLIC_GT_API_KEY||process.env.GATSBY_GT_API_KEY}}catch(e){console.error(e)}return{projectId:"",devApiKey:""}}(n,i);console.log("projectId:",T),a=s((()=>(a.unshift(h),Array.from(new Set(a)))),[h,a]);const[P,D]=function({locale:e="",defaultLocale:t=H,locales:r=[],cookieName:n="generaltranslation.locale"}){const[i,o]=l(e&&y(e,r)||"");return c((()=>{var a;if(e&&e===i&&y(e,r)===i)return;const s=(null===navigator||void 0===navigator?void 0:navigator.languages)?navigator.languages:(null===navigator||void 0===navigator?void 0:navigator.language)?[navigator.language]:(null===navigator||void 0===navigator?void 0:navigator.userLanguage)?[null===navigator||void 0===navigator?void 0:navigator.userLanguage]:[t],c=null===(a=document.cookie.split("; ").find((e=>e.startsWith(`${n}=`))))||void 0===a?void 0:a.split("=")[1],l=y([...e?[e]:[],...c?[c]:[],...s],r)||t;c&&c!==l&&(document.cookie=`${n}=${l};path=/`),o(l)}),[t,r]),[i,e=>{const a=y(e,r)||i||t;a!==e&&console.warn(((e,t)=>`You are trying to switch to "${t}" which is not supported. Update the list of supported locales through your dashboard or your gt.config.json file if you are using a config file. Falling back to "${e}".`)(a,e)),o(a),document.cookie=`${n}=${a};path=/`}]}({defaultLocale:h,locales:a,locale:p}),I=!!(T&&B&&z&&"development"===process.env.NODE_ENV),F=(S?"custom":v&&"default")||"disabled";s((()=>{if("production"===process.env.NODE_ENV&&z)throw new Error("gt-react Error: Production environments cannot include a development api key.");if("custom"===F||!v&&!B||T||"development"!==process.env.NODE_ENV||console.warn("gt-react: Translation cloud services require a project ID! Find yours at generaltranslation.com/dashboard."),T&&B&&"custom"!==F&&!z&&"development"===process.env.NODE_ENV&&console.warn("gt-react: An Development API key is required for runtime translation! Find your Development API key: generaltranslation.com/dashboard. (Or, disable this warning message by setting runtimeUrl to an empty string which disables runtime translation.)"),B===C||v===j&&"default"===F){const e=(a||a).filter((e=>!x(e)));e.length&&console.warn((e=>`gt-react: The following locales are currently unsupported by our service: ${e.map((e=>{const{name:t}=f(e);return`${e} (${t})`})).join(", ")}`)(e))}}),[process.env.NODE_ENV,z,F,v,B,T,a]);const[N,M]=s((()=>{const e=b(h,P,a);return[e,e&&m(h,P)]}),[h,P,a]),[L,U]=l(N?null:{});c((()=>U(N?null:{})),[P]);const{registerContentForTranslation:W,registerJsxForTranslation:G}=function(e){var{projectId:t,devApiKey:r,locale:n,versionId:i,defaultLocale:o,runtimeUrl:a,renderSettings:f,setTranslations:h,runtimeTranslationEnabled:p}=e,v=w(e,["projectId","devApiKey","locale","versionId","defaultLocale","runtimeUrl","renderSettings","setTranslations","runtimeTranslationEnabled"]);if(!p)return{registerContentForTranslation:()=>Promise.reject(new Error("registerContentForTranslation() failed because translation is disabled")),registerJsxForTranslation:()=>Promise.reject(new Error("registerJsxForTranslation() failed because translation is disabled"))};v=Object.assign(Object.assign({},v),{projectId:t,sourceLocale:o});const[y,g]=l(0),_=u(new Map),b=u(new Map);c((()=>{_.current.forEach((e=>e.resolve())),_.current.clear()}),[n]);const[m,x]=s((()=>{const e=e=>t=>{const r=`${t.metadata.hash}:${t.targetLocale}`,n=b.current.get(r);if(n)return n;const i=new Promise(((n,i)=>{_.current.set(r,{type:e,source:t.source,metadata:t.metadata,resolve:n,reject:i})})).catch((e=>{throw e})).finally((()=>{b.current.delete(r)}));return b.current.set(r,i),i};return[e("content"),e("jsx")]}),[]),B=d(((e,n)=>k(this,void 0,void 0,(function*(){if(0===_.current.size)return{};g((e=>e+1));const o=Array.from(e.values()),s={};try{const c=Object.entries(e).reduce(((e,[t,r])=>(e[r.metadata.hash]={state:"loading"},e)),{});h((e=>Object.assign(Object.assign({},e||{}),c)));const l=(e,t,r)=>k(this,void 0,void 0,(function*(){const n=new AbortController,i=void 0===r?void 0:setTimeout((()=>n.abort()),r);try{return yield fetch(e,Object.assign(Object.assign({},t),{signal:n.signal}))}finally{void 0!==i&&clearTimeout(i)}})),u=yield l(`${a}/v1/runtime/${t}/client`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},r&&{"x-gt-dev-api-key":r}),body:JSON.stringify({requests:o,targetLocale:n,metadata:v,versionId:i})},f.timeout);if(!u.ok)throw new Error(yield u.text());(yield u.json()).forEach(((e,t)=>{const r=o[t],n=r.metadata.hash;if("translation"in e&&e.translation&&e.reference){const{translation:t}=e;s[n]={state:"success",target:t}}else{if(void 0!==e.error&&null!==e.error&&void 0!==e.code&&null!==e.code)return console.error(R(r.metadata.id,r.metadata.hash),e.error),void(s[n]={state:"error",error:e.error,code:e.code});console.error(R(r.metadata.id,r.metadata.hash),e),s[n]={state:"error",error:"An error occurred.",code:500}}}))}catch(e){e instanceof Error&&"AbortError"===e.name?console.warn("gt-react: Runtime translation timed out."):console.error("Error fetching batched translations:",e),o.forEach((e=>{s[e.metadata.hash]={state:"error",error:"An error occurred.",code:500}}))}finally{return g((e=>e-1)),o.forEach((e=>e.resolve(s[e.metadata.hash]))),s}}))),[a,t,r,v,i,f.timeout]),O=u(y);return c((()=>{O.current=y}),[y]),c((()=>{let e=!0;const t=setInterval((()=>{if(_.current.size>0&&O.current<100){const t=Math.min(25,_.current.size),r=new Map(Array.from(_.current.entries()).slice(0,t));(()=>{k(this,void 0,void 0,(function*(){const t=yield B(r,n);e&&h((e=>Object.assign(Object.assign({},e||{}),t)))}))})(),r.forEach(((e,t)=>_.current.delete(t)))}}),50);return()=>{e=!1,clearInterval(t)}}),[n]),{registerContentForTranslation:m,registerJsxForTranslation:x}}(Object.assign({locale:P,versionId:A,projectId:T,runtimeTranslationEnabled:I,defaultLocale:h,devApiKey:z,runtimeUrl:B,renderSettings:O,setTranslations:U},E));c((()=>{if(L||!N)return;let e=!0;return(()=>{k(this,void 0,void 0,(function*(){try{let t;switch(F){case"custom":S&&(t=yield S(P));break;case"default":t=yield function(e){return k(this,arguments,void 0,(function*({cacheUrl:e,projectId:t,locale:r,versionId:n}){if(!t||!e||!r)return{};const i=yield fetch(n?`${e}/${t}/${r}/${n}`:`${e}/${t}/${r}`);return yield i.json()}))}({cacheUrl:v,projectId:T,locale:P,versionId:A});break;default:t={}}const r=Object.entries(t).reduce(((e,[t,r])=>(e[t]={state:"success",target:r},e)),{});e&&U(r)}catch(t){console.error(t),e&&U({})}}))})(),()=>{e=!1}}),[L,N,F,v,T,P,A]);const K=function(e,t,r,n,i,o,a,s){return d(((c,l={})=>{if(!c||"string"!=typeof c)return"";const u=g(c),d=(e,t)=>_(e,t,l.variables,l.variablesOptions);if(!n)return d(u,[r]);const f=er(Object.assign(Object.assign({source:u},(null==l?void 0:l.context)&&{context:l.context}),(null==l?void 0:l.id)&&{id:l.id})),h=null==e?void 0:e[f];return"success"===(null==h?void 0:h.state)?d(h.target,[t,r]):"error"===(null==h?void 0:h.state)?d(u,[r]):o?(a({source:u,targetLocale:t,metadata:Object.assign(Object.assign({},(null==l?void 0:l.context)&&{context:l.context}),{id:null==l?void 0:l.id,hash:f})}),"replace"===s.method?d(u,[r]):"skeleton"===s.method?"":i?d(u,[r]):""):d(u,[r])}),[e,t,r,n,o,a,i])}(L,P,h,N,M,I,W,O),J=cr({dictionary:o,_internalUseGTFunction:K}),X=!(N&&!L||!P);return e($.Provider,{value:{registerContentForTranslation:W,registerJsxForTranslation:G,_internalUseGTFunction:K,_internalUseDictFunction:J,runtimeTranslationEnabled:I,locale:P,locales:a,setLocale:D,defaultLocale:h,translations:L,translationRequired:N,dialectTranslationRequired:M,projectId:T,renderSettings:O},children:X&&r})}function ur(t){var{children:r,n:n,locale:i}=t,o=w(t,["children","n","locale"]);const{"data-_gt":s}=o,c=w(o,["data-_gt"]),l=a($);let u;l&&(i||(i=l.locale),u||(u=l.defaultLocale));const d=[...i?[i]:[],u||H];if("number"!=typeof n)throw new Error((e=>`<Plural> component with children "${e}" requires "n" option.`)(r));const f=P(n,d,c)||r;return e("span",{"data-_gt":s,"data-_gt-n":n,style:{display:"contents"},children:f})}function dr(t){var{children:r,name:n="branch",branch:i}=t,o=w(t,["children","name","branch"]);const{"data-_gt":a}=o,s=w(o,["data-_gt"]),c=(i=null==i?void 0:i.toString())&&void 0!==s[i]?s[i]:r;return e("span",{"data-_gt":a,"data-_gt-branch-name":i,"data-_gt-name":n||"branch",style:{display:"contents"},children:c})}function fr(){return G("useLocales(): Unable to access user's locale outside of a <GTProvider>").locales}function hr(){const{setLocale:e}=G("setLocale(): Unable to access user's locale outside of a <GTProvider>");return e}function pr(t){var{locales:n=fr(),compare:i=(e,t)=>(new Intl.Collator).compare(f(e).nativeNameWithRegionCode,f(t).nativeNameWithRegionCode)}=t,o=w(t,["locales","compare"]);const a=sr(),s=hr();return n&&0!==n.length&&s?(n.sort(i),r("select",Object.assign({},o,{value:a||"",onChange:e=>s(e.target.value),children:[!a&&e("option",{value:""}),n.map((t=>{return e("option",{value:t,suppressHydrationWarning:!0,children:(r=f(t).nativeNameWithRegionCode,r?r.charAt(0).toUpperCase()+(r.length>1?r.slice(1):""):"")},t);var r}))]}))):null}ur.gtTransformation="plural",dr.gtTransformation="branch";export{dr as Branch,X as Currency,Y as DateTime,lr as GTProvider,pr as LocaleSelector,K as Num,ur as Plural,nr as T,J as Var,ar as useDefaultLocale,or as useDict,ir as useGT,sr as useLocale,fr as useLocales,hr as useSetLocale};
@@ -1 +1 @@
1
- {"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAgBlE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,QAAQ,EACR,SAAS,EAAE,UAAe,EAC1B,SAAS,EAAE,UAAU,EACrB,UAAe,EACf,OAAY,EACZ,aAAoC,EACpC,MAAM,EAAE,OAAO,EACf,QAA0B,EAC1B,UAAiC,EACjC,cAAsC,EACtC,eAAe,EACf,UAAU,EACV,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8PpB"}
1
+ {"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAelE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,QAAQ,EACR,SAAS,EAAE,UAAe,EAC1B,SAAS,EAAE,UAAU,EACrB,UAAe,EACf,OAAY,EACZ,aAAoC,EACpC,MAAM,EAAE,OAAO,EACf,QAA0B,EAC1B,UAAiC,EACjC,cAAsC,EACtC,eAAe,EACf,UAAU,EACV,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8PpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,aAAa,CAE7E;AAED,wBAAgB,eAAe,CAC7B,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAiCA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAExB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,aAAa,CAE7E;AAED,wBAAgB,eAAe,CAC7B,SAAS,CAAC,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CA+BA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "9.2.2-alpha.1",
3
+ "version": "9.2.2-alpha.2",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "./dist/index.cjs.min.cjs",
6
6
  "module": "./dist/index.esm.min.mjs",