@generaltranslation/react-core 1.5.8 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs.min.cjs +1 -1
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +3 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +3 -3
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/variables/Derive.d.ts +52 -0
- package/dist/variables/Derive.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/variables/Static.d.ts +0 -27
- package/dist/variables/Static.d.ts.map +0 -1
|
@@ -15,5 +15,5 @@ t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){
|
|
|
15
15
|
|
|
16
16
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
17
17
|
*/
|
|
18
|
-
function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=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(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,E,B,w,S,H,A,x,T=this._hash.words,O=l.words,P=u.words,C=a.words,k=s.words,R=c.words,I=h.words;for(B=o=T[0],w=f=T[1],S=b=T[2],H=m=T[3],A=E=T[4],r=0;r<80;r+=1)x=o+t[e+C[r]]|0,x+=r<16?p(f,b,m)+O[0]:r<32?d(f,b,m)+O[1]:r<48?v(f,b,m)+O[2]:r<64?y(f,b,m)+O[3]:g(f,b,m)+O[4],x=(x=_(x|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=x,x=B+t[e+k[r]]|0,x+=r<16?g(w,S,H)+P[0]:r<32?y(w,S,H)+P[1]:r<48?v(w,S,H)+P[2]:r<64?d(w,S,H)+P[3]:p(w,S,H)+P[4],x=(x=_(x|=0,I[r]))+A|0,B=A,A=H,H=_(S,10),S=w,w=x;x=T[1]+b+H|0,T[1]=T[2]+m+A|0,T[2]=T[3]+E+B|0,T[3]=T[4]+o+w|0,T[4]=T[0]+f+S|0,T[0]=x},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var 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 t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(),t.RIPEMD160)),je.exports;var t}(),Ge(),function(){return ze||(ze=1,Ve.exports=(t=ne(),xe(),Ge(),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,h=a.words,l=r.keySize,u=r.iterations;c.length<l;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<u;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),h[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ve.exports;var t}(),Xe(),Ze(),Qe(),rr(),or(),cr(),function(){return hr?lr.exports:(hr=1,lr.exports=(e=ne(),Ze(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return ur?fr.exports:(ur=1,fr.exports=(t=ne(),Ze(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return pr?dr.exports:(pr=1,dr.exports=(t=ne(),Ze(),t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=ne(),Ze(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return gr||(gr=1,_r.exports=(t=ne(),Ze(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),_r.exports;var t}(),function(){return br?mr.exports:(br=1,mr.exports=(t=ne(),Ze(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Er||(Er=1,Br.exports=(t=ne(),Ze(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),Br.exports;var t}(),function(){return wr||(wr=1,Sr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],h=[],l=[],u=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],y=t[v],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,h[r]=_,_=16843009*g^65537*y^257*v^16843008*r,l[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(h=o[a-1],a%r?r>6&&a%r==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=d[a/r|0]<<24),o[a]=o[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=o[a];else h=o[a-4];s[c]=c<4||a<=4?h:l[i[h>>>24]]^u[i[h>>>16&255]]^f[i[h>>>8&255]]^p[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,u,f,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],u=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++],y=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],g=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[p++],_=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++];h=v,l=y,u=g,f=_}v=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],y=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[p++],_=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Sr.exports;var t}(),xr(),function(){return Tr||(Tr=1,Or.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.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=e[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(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Or.exports;var t}(),function(){return Pr||(Pr=1,Cr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(i[0]^=h,i[1]^=u,i[2]^=l,i[3]^=f,i[4]^=h,i[5]^=u,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Cr.exports;var t}(),function(){return kr||(kr=1,Rr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(n[0]^=h,n[1]^=u,n[2]^=l,n[3]^=f,n[4]^=h,n[5]^=u,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Rr.exports;var t}(),Lr())),Qt.exports),Ur=jt(jr),Fr="en",Gr=["singular","plural","dual","zero","one","two","few","many","other"];"function"==typeof SuppressedError&&SuppressedError;var zr,Vr,$r="ellipsis",Kr="DEFAULT_TERMINATOR_KEY",Xr={ellipsis:(zr={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},zr[Kr]={terminator:"…",separator:void 0},zr),none:(Vr={},Vr[Kr]={terminator:void 0,separator:void 0},Vr)},Wr=function(){function t(t,e){var r,n,i,o,a,s,c,h,l;void 0===e&&(e={});try{var u=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[Fr],f=Intl.getCanonicalLocales(u);this.locale=f.length?f[0]:Fr}catch(t){this.locale=Fr}if(!Xr[null!==(r=e.style)&&void 0!==r?r:$r])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:$r));if(void 0!==e.maxChars){h=null!==(i=e.style)&&void 0!==i?i:$r;var p=new Intl.Locale(this.locale).language;l=Xr[h][p]||Xr[h][Kr]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==l?void 0:l.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==v?void 0:v.length)&&void 0!==c?c:0),void 0!==e.maxChars&&Math.abs(e.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:e.maxChars,style:h,terminator:d,separator:v}}return t.prototype.format=function(t){return this.formatToParts(t).join("")},t.prototype.formatToParts=function(t){var e=this.options,r=e.maxChars,n=e.terminator,i=e.separator,o=void 0===r||Math.abs(r)>=t.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?t.slice(0,o):t.slice(o);return null==r||null==o||0===o||null==n||t.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},t.prototype.resolvedOptions=function(){return this.options},t}(),Yr={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:Wr},Zr=function(){function t(){this.cache={}}return t.prototype._generateKey=function(t,e){void 0===e&&(e={});var r=t?Array.isArray(t)?t.map(function(t){return String(t)}).join(","):String(t):"undefined",n=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n)},t.prototype.get=function(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],a=void 0===o?Fr:o,s=n[1],c=void 0===s?{}:s,h=this._generateKey(a,c),l=null===(r=this.cache[t])||void 0===r?void 0:r[h];return void 0===l&&(l=new((e=Yr[t]).bind.apply(e,function(t,e,r){if(2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}([void 0],n,!1))),this.cache[t]||(this.cache[t]={}),this.cache[t][h]=l),l},t}(),Jr=new Zr;function qr(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}var Qr={variable:"v",number:"n",datetime:"d",currency:"c"};function tn(t){return Qr[t]}function en(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}function rn(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,i=t.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(t,e){void 0===e&&(e={}),e=l({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new kt(t,e).parse();if(r.err){var n=SyntaxError(V[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Nt(r.val),r.val}(e,s);return h(c),c;function h(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===$.select||t.type===$.plural?Object.values(t.options).map(function(t){return t.value}).map(h):t.type===$.tag&&h(t.children))}}var nn="_gt_",on=new RegExp("^".concat(nn,"\\d+$")),an=new RegExp("^".concat(nn,"$"));function sn(t){var e;return t.type===$t.TYPE.select&&on.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===$t.TYPE.literal)}function cn(t){var e;return t.type===$t.TYPE.select&&an.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===$t.TYPE.literal)}function hn(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var i=-1,o=e.length-1;o>=0;o--)if(r.test(e[o])){i=o;break}return e.slice(0,n)+"'"+e.slice(n,i+1)+"'"+e.slice(i+1)}function ln(t){if(!t.includes(nn))return t;var e=[];rn({icuString:t,shouldVisit:cn,visitor:function(t){var r,n,i,o,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<e.length;i++){var o=e[i],a=o.start,s=o.end,c=o.otherStart,h=o.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(i+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}const un={variable:"value",number:"n",datetime:"date",currency:"cost"};function fn(t={},e){if(t.name)return t.name;return`_gt_${un[e]||"value"}_${t["data-_gt"]?.id}`}const pn="@generaltranslation/react-core";var dn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const vn=t=>{if(!t)return"";const{type:e,props:r}=t;if(e&&"function"==typeof e){if("displayName"in e&&"string"==typeof e.displayName&&e.displayName)return e.displayName;if("name"in e&&"string"==typeof e.name&&e.name)return e.name}return e&&"string"==typeof e?e:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},yn=t=>{const{props:e}=t,r={t:vn(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=fn(e,r),i=tn(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(dn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=_n(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=_n(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(dn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=_n(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=_n(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=_n(e.children)),r},gn=e=>{return r=e,t.isValidElement(r)?yn(e):"number"==typeof e?e.toString():e;var r};function _n(t){return Array.isArray(t)?t.map(gn):gn(t)}function bn(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Gr),void 0===r&&(r=[Fr]);var n=Jr.get("PluralRules",r).select(t),i=Math.abs(t);if(0===i&&e.includes("zero"))return"zero";if(1===i){if(e.includes("singular"))return"singular";if(e.includes("one"))return"one"}if("one"===n&&e.includes("singular"))return"singular";if(2===i){if(e.includes("dual"))return"dual";if(e.includes("two"))return"two"}return"two"===n&&e.includes("dual")?"dual":e.includes(n)?n:"two"===n&&e.includes("dual")?"dual":"two"===n&&e.includes("plural")?"plural":"two"===n&&e.includes("other")?"other":"few"===n&&e.includes("plural")?"plural":"few"===n&&e.includes("other")?"other":"many"===n&&e.includes("plural")?"plural":"many"===n&&e.includes("other")?"other":"other"===n&&e.includes("plural")?"plural":""}(t,Object.keys(r),e)),n&&!i&&(i=r[n]),i}function mn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,t)}return r}function En(t){if(Array.isArray(t)){if(1===t.length)return{entry:t[0]};if(2===t.length)return{entry:t[0],metadata:t[1]}}return{entry:t}}function Bn(t){return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===t["data-_gt"]?.transformation}function wn(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:fn(t,e),variableType:tn(e),variableValue:void 0!==t.value?t.value:void 0!==t["data-_gt-unformatted-value"]?t["data-_gt-unformatted-value"]:void 0!==t.children?t.children:void 0,variableOptions:(()=>{const e={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(e).length?e:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function Sn(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Hn({children:e,defaultLocale:r=Fr,renderVariable:n}){const i=e=>t.isValidElement(e)?(e=>{const i=Sn(e);if(Bn(e.props)){const{variableType:t,variableValue:i,variableOptions:o}=wn(e.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===i?.transformation){const t=i.branches||{};return o(bn(e.props.n,[r],t)||e.props.children)}if("branch"===i?.transformation){let{children:t,branch:r,"data-_gt":n,...a}=e.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:t)}return"fragment"===i?.transformation?t.createElement(t.Fragment,{key:e.props.key,children:o(e.props.children)}):e.props.children?t.cloneElement(e,{...e.props,"data-_gt":void 0,children:o(e.props.children)}):t.cloneElement(e,{...e.props,"data-_gt":void 0})})(e):e,o=e=>Array.isArray(e)?t.Children.map(e,i):i(e);return o(e)}function An({sourceElement:e,targetElement:r,locales:n=[Fr],renderVariable:i}){const{props:o}=e,a=o["data-_gt"],s=a?.transformation,c=r.d,h={};if(c&&Object.entries(dn).forEach(([t,e])=>{c[t]&&(h[e]=c[t])}),"plural"===s){const t=e.props.n;return xn({source:bn(t,n,a.branches||{})||e.props.children,target:bn(t,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return xn({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:xn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?t.cloneElement(e,{...o,...h,"data-_gt":void 0,children:xn({source:o.children,target:r.c,locales:n,renderVariable:i})}):Hn({children:e,defaultLocale:n[0],renderVariable:i})}function xn({source:r,target:n,locales:i=[Fr],renderVariable:o}){if(null==n&&r)return Hn({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(n)){const a={},s={},c=r.filter(e=>{if(t.isValidElement(e)){if(!Bn(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n}=wn(e.props);a[t]=r,s[t]=n}}return!1}),h=t=>c.find(e=>{const r=Sn(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return n.map((r,n)=>{if("string"==typeof r)return e.jsx(t.Fragment,{children:r},`string_${n}`);if(qr(r))return e.jsx(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${n}`);const c=h(r);return c?e.jsx(t.Fragment,{children:An({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const e=qr(n)?"variable":"element";if(t.isValidElement(r)){if("element"===e)return An({sourceElement:r,targetElement:n,locales:i,renderVariable:o});if(Bn(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=wn(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return Hn({children:r,defaultLocale:i[0],renderVariable:o})}function Tn(t){return void 0!==t&&("string"==typeof t||!!Array.isArray(t)&&((1===t.length||2===t.length)&&("string"==typeof t[0]&&(2!==t.length||"object"==typeof t[1]&&null!==t[1]&&("$context"in t[1]||"$maxChars"in t[1]||"$_hash"in t[1])))))}const On=t=>"string"==typeof t||Array.isArray(t),Pn=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Cn(t,e){if(Array.isArray(t))return t.map((t,r)=>Tn(t)?e[r]:Cn(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>On(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>On(t)))},n=Object.entries(t).filter(([,t])=>Pn(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>Pn(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)r[n]=Cn(o(t,n)||{},o(e,n)||{});return r}const kn="function"==typeof i.use;function Rn({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=o(r,t);return r}const In=["constructor","prototype","__proto__"];function Mn(t,e,r,n){if(Tn(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!In.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==o(e,t)&&a(e,t,Array.isArray(o(n,t))?[]:{}),e=o(e,t),n=o(n,t);a(e,i[i.length-1],t)}var Ln=function(){return Ln=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ln.apply(this,arguments)};function Nn(t){return Ur.SHA256(t).toString(Ur.enc.Hex).slice(0,16)}function Dn(t,e){var r=t.source,n=t.context,i=t.id,o=t.maxChars,a=t.dataFormat;void 0===e&&(e=Nn);var s={dataFormat:a};return s.source="JSX"===a?Un(r):r,s=Ln(Ln(Ln(Ln({},s),i&&{id:i}),n&&{context:n}),null!=o&&{maxChars:Math.abs(o)}),e(qt(s))}"function"==typeof SuppressedError&&SuppressedError;var jn=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Un(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],Un(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Ln({k:t.k},t.v&&{v:t.v}):e}return t};function Un(t){return Array.isArray(t)?t.map(jn):jn(t)}const Fn=t=>`${pn} Error: Dictionary subtree not found for id: "${t}"`;var Gn=function(t,e){return Gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Gn(t,e)},zn=function(){return zn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},zn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Vn,$n;function Kn(t,e){return Dn(zn(zn(zn(zn({source:ln(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(Vn||(Vn={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}($n||($n={})),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Gn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]}}(function(){});var Xn=function(){return Xn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Xn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Wn=function(t){console.warn(t)},Yn="String interpolation failed.";function Zn(t,e){var n;if(!t)return t;var i=e.$_fallback,o=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e);try{var a=function(t){if(!t.includes(nn))return{};var e=1,r={};return rn({icuString:t,shouldVisit:cn,visitor:function(t){var n;r[t.value+e]=t.options.other.value.length?null===(n=t.options.other.value[0])||void 0===n?void 0:n.value:"",e+=1},options:{recurseIntoVisited:!1}}),r}(i||""),s=function(t,e){try{return r.formatMessage(t,{variables:e})}catch(e){return Wn(Yn+" Error: "+e),t}}(Object.keys(a).length?function(t){if(!t.includes(nn))return t;var e=rn({icuString:t,shouldVisit:sn,visitor:function(t){t.type=$t.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return Zt.printAST(e)}(t):t,Xn(Xn(Xn({},o),a),((n={})[nn]="other",n)));return r.formatCutoff(s,{maxChars:e.$maxChars})}catch(n){return Wn(Yn),null!=i?Zn(i,Xn(Xn({},e),{$_fallback:void 0})):r.formatCutoff(t,{maxChars:e.$maxChars})}}var Jn=function(t,e){return void 0===e&&(e={}),Zn(t,e)};exports.Static=function({children:t}){return t},exports.addGTIdentifier=function e(r,n=0){let i=n;const o=t=>{const{type:r,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof r&&r._gtt||""}catch{}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[r,n])=>(function(t){return Gr.includes(t)}(r)&&(t[r]=e(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:r,...a}=n,s=Object.fromEntries(Object.entries(a).filter(([t])=>!t.startsWith("data-"))),c=Object.entries(s).reduce((t,[r,n])=>(t[r]=e(n,i),t),{});Object.keys(c).length&&(o.branches=c)}o.transformation=t[0]}return o};function a(e){return t.isValidElement(e)?function(e){const{props:r}=e,n=o(e),i={...r,"data-_gt":n};return r.children&&!n.variableType&&(i.children=s(r.children)),e.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(e,i)}(e):e}function s(e){return Array.isArray(e)?t.Children.map(e,a):a(e)}return s(r)},exports.collectUntranslatedEntries=function t(e,r,n=""){const i=[];return Object.entries(e).forEach(([e,a])=>{const s=n?`${n}.${e}`:e;if(Tn(a)){const{entry:t,metadata:n}=En(a);o(r,e)||i.push({source:t,metadata:{$id:s,$context:n?.$context,$maxChars:n?.$maxChars,$_hash:n?.$_hash||""}})}else i.push(...t(a,o(r,e)||(Array.isArray(a)?[]:{}),s))}),i},exports.declareStatic=function(t){return t},exports.declareVar=function(t,e){var r=hn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=hn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(nn,", select,").concat(n).concat(i,"}")},exports.decodeMsg=function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(en(e))}catch(t){return null}},exports.decodeVars=function(t){if(!t.includes(nn))return t;var e=[];rn({icuString:t,shouldVisit:cn,visitor:function(t){var r,n,i,o;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<e.length;i++)n.push(t.slice(r,e[i].start)),n.push(e[i].value),r=e[i].end;return r<t.length&&n.push(t.slice(r)),n.join("")},exports.defaultEnableI18nCookieName="generaltranslation.enable-i18n",exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.flattenDictionary=function t(e,r=""){const n={};for(const i in e)if(e.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(e,i)||null===o(e,i)||Array.isArray(o(e,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(e,i)}else{const r=t(o(e,i),a);for(const t in r){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=r[t]}}}return n},exports.getDefaultRenderSettings=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3}),exports.getDictionaryEntry=mn,exports.getEntryAndMetadata=En,exports.getPluralBranch=bn,exports.getSubtree=Rn,exports.getSubtreeWithCreation=function({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,s=e.split(".");for(const t of s)void 0===o(n,t)&&(Array.isArray(o(i,t))?a(n,t,[]):a(n,t,{})),n=o(n,t);return n},exports.getVariableName=fn,exports.getVariableProps=wn,exports.gtFallback=Jn,exports.injectAndMerge=function(t,e,r){const n=Rn({dictionary:t,id:r});if(!n)throw new Error(Fn(r));if(Tn(n))throw new Error(`${pn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=mn(t,r);if(!n)throw new Error(Fn(r));if(Tn(n))throw new Error(`${pn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),s=i.slice(0,-1),c=i[i.length-1];let h=t;return s.forEach(t=>{h=o(h,t)}),a(h,c,e),t}(t,Cn(n,e),r)},exports.injectEntry=Mn,exports.injectFallbacks=function(t,e,r,n=""){const i=n?n.split("."):[];return r.forEach(({source:r,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=mn(e,a);let c;Tn(s)&&(c=En(s).entry);Mn(c||r,e,a,t)}),e},exports.injectHashes=function t(e,r=""){let n=!1;return Object.entries(e).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(Tn(o)){let{entry:t,metadata:r}=En(o);r?.$_hash||(r||={},r.$_hash=Dn({source:ln(t),...r?.$context&&{context:r.$context},...null!=r?.$maxChars&&{maxChars:Math.abs(r.$maxChars)},id:s,dataFormat:"ICU"}),a(e,i,[t,r]),n=!0)}else{const{updateDictionary:e}=t(o,s);n=n||e}}),{dictionary:e,updateDictionary:n}},exports.injectTranslations=function(t,e,r,n,i=""){let o=!1;const a=i?i.split("."):[];return n.forEach(({metadata:n})=>{const{$_hash:i,$id:s}=n,c=a.length>0?s.split(".").slice(a.length).join("."):s,h=mn(e,c);let l;Tn(h)&&(l=En(h).entry);const u=r[i]||l;u&&(Mn(u,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}},exports.isDictionaryEntry=Tn,exports.isValidDictionaryEntry=function(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const e=t?.[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1},exports.isVariableObject=function(t){const e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){const t=Object.keys(e);if(1===t.length)return!0;if(2===t.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===t.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1},exports.mFallback=function(t,e){var r;if(void 0===e&&(e={}),!t)return t;var n=null!==(r=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(en(e))}catch(t){return null}}(t))&&void 0!==r?r:{};return function(t){return!(!t.$_hash||!t.$_source)}(n)?function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}(t):Jn(t,e)},exports.mergeDictionaries=Cn,exports.msg=function t(e,n){var i;if("string"!=typeof e)return n?e.map(function(e,r){return t(e,zn(zn({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):e;if(!n)return e;var o=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(n),a=e;try{a=r.formatMessage(e,{locales:[Fr],variables:zn(zn({},o),(i={},i[nn]="other",i))})}catch(n){return function(t){console.warn(t)}("String interpolation failed. Error: "+n),e}var s=e,c=n.$_hash||Kn(e,n),h=zn(zn({},n),{$_source:s,$_hash:c}),l=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(h));return"".concat(a,":").concat(l)},exports.reactHasUse=kn,exports.renderDefaultChildren=Hn,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=xn,exports.stripMetadataFromEntries=function t(e){let r={};return Array.isArray(e)&&(r=[]),Object.entries(e).forEach(([e,n])=>{if(Tn(n)){const{entry:t}=En(n);a(r,e,t)}else a(r,e,t(n))}),r},exports.writeChildrenAsObjects=_n;
|
|
18
|
+
function(){var e=t,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,a=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=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(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,b,m,E,B,w,S,H,A,x,T=this._hash.words,O=l.words,P=u.words,C=a.words,k=s.words,R=c.words,I=h.words;for(B=o=T[0],w=f=T[1],S=b=T[2],H=m=T[3],A=E=T[4],r=0;r<80;r+=1)x=o+t[e+C[r]]|0,x+=r<16?p(f,b,m)+O[0]:r<32?d(f,b,m)+O[1]:r<48?v(f,b,m)+O[2]:r<64?y(f,b,m)+O[3]:g(f,b,m)+O[4],x=(x=_(x|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=x,x=B+t[e+k[r]]|0,x+=r<16?g(w,S,H)+P[0]:r<32?y(w,S,H)+P[1]:r<48?v(w,S,H)+P[2]:r<64?d(w,S,H)+P[3]:p(w,S,H)+P[4],x=(x=_(x|=0,I[r]))+A|0,B=A,A=H,H=_(S,10),S=w,w=x;x=T[1]+b+H|0,T[1]=T[2]+m+A|0,T[2]=T[3]+E+B|0,T[3]=T[4]+o+w|0,T[4]=T[0]+f+S|0,T[0]=x},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var 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 t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function _(t,e){return t<<e|t>>>32-e}e.RIPEMD160=i._createHelper(f),e.HmacRIPEMD160=i._createHmacHelper(f)}(),t.RIPEMD160)),je.exports;var t}(),Ge(),function(){return ze||(ze=1,Ve.exports=(t=ne(),xe(),Ge(),function(){var e=t,r=e.lib,n=r.Base,i=r.WordArray,o=e.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=s.create(r.hasher,t),o=i.create(),a=i.create([1]),c=o.words,h=a.words,l=r.keySize,u=r.iterations;c.length<l;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<u;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),h[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Ve.exports;var t}(),Xe(),Ze(),Qe(),rr(),or(),cr(),function(){return hr?lr.exports:(hr=1,lr.exports=(e=ne(),Ze(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return ur?fr.exports:(ur=1,fr.exports=(t=ne(),Ze(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return pr?dr.exports:(pr=1,dr.exports=(t=ne(),Ze(),t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return vr?yr.exports:(vr=1,yr.exports=(t=ne(),Ze(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return gr||(gr=1,_r.exports=(t=ne(),Ze(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding)),_r.exports;var t}(),function(){return br?mr.exports:(br=1,mr.exports=(t=ne(),Ze(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Er||(Er=1,Br.exports=(t=ne(),Ze(),function(){var e=t,r=e.lib.CipherParams,n=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var e=n.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex)),Br.exports;var t}(),function(){return wr||(wr=1,Sr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],h=[],l=[],u=[],f=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=t[r],y=t[v],g=t[y],_=257*t[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,h[r]=_,_=16843009*g^65537*y^257*v^16843008*r,l[d]=_<<24|_>>>8,u[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^t[t[t[g^v]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(h=o[a-1],a%r?r>6&&a%r==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=d[a/r|0]<<24),o[a]=o[a-r]^h);for(var s=this._invKeySchedule=[],c=0;c<n;c++){if(a=n-c,c%4)var h=o[a];else h=o[a-4];s[c]=c<4||a<=4?h:l[i[h>>>24]]^u[i[h>>>16&255]]^f[i[h>>>8&255]]^p[i[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,h,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,u,f,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],u=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[h>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[p++],y=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&h]^r[p++],g=n[u>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&l]^r[p++],_=n[f>>>24]^i[h>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++];h=v,l=y,u=g,f=_}v=(s[h>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[p++],y=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^r[p++],g=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&l])^r[p++],_=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],t[e]=v,t[e+1]=y,t[e+2]=g,t[e+3]=_},keySize:8});e.AES=r._createHelper(v)}(),t.AES)),Sr.exports;var t}(),xr(),function(){return Tr||(Tr=1,Or.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.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=e[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(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(a)}(),t.RC4)),Or.exports;var t}(),function(){return Pr||(Pr=1,Cr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(i[0]^=h,i[1]^=u,i[2]^=l,i[3]^=f,i[4]^=h,i[5]^=u,i[6]^=l,i[7]^=f,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=r._createHelper(s)}(),t.Rabbit)),Cr.exports;var t}(),function(){return kr||(kr=1,Rr.exports=(t=ne(),ve(),Ee(),Xe(),Ze(),function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=h>>>16|4294901760&l,f=l<<16|65535&h;for(n[0]^=h,n[1]^=u,n[2]^=l,n[3]^=f,n[4]^=h,n[5]^=u,n[6]^=l,n[7]^=f,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(t,e){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),t[e+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,h=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^h}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=r._createHelper(s)}(),t.RabbitLegacy)),Rr.exports;var t}(),Lr())),Qt.exports),Ur=jt(jr),Fr="en",Gr=["singular","plural","dual","zero","one","two","few","many","other"];"function"==typeof SuppressedError&&SuppressedError;var zr,Vr,$r="ellipsis",Kr="DEFAULT_TERMINATOR_KEY",Xr={ellipsis:(zr={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},zr[Kr]={terminator:"…",separator:void 0},zr),none:(Vr={},Vr[Kr]={terminator:void 0,separator:void 0},Vr)},Wr=function(){function t(t,e){var r,n,i,o,a,s,c,h,l;void 0===e&&(e={});try{var u=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[Fr],f=Intl.getCanonicalLocales(u);this.locale=f.length?f[0]:Fr}catch(t){this.locale=Fr}if(!Xr[null!==(r=e.style)&&void 0!==r?r:$r])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:$r));if(void 0!==e.maxChars){h=null!==(i=e.style)&&void 0!==i?i:$r;var p=new Intl.Locale(this.locale).language;l=Xr[h][p]||Xr[h][Kr]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==l?void 0:l.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==l?void 0:l.separator:void 0;this.additionLength=(null!==(s=null==d?void 0:d.length)&&void 0!==s?s:0)+(null!==(c=null==v?void 0:v.length)&&void 0!==c?c:0),void 0!==e.maxChars&&Math.abs(e.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:e.maxChars,style:h,terminator:d,separator:v}}return t.prototype.format=function(t){return this.formatToParts(t).join("")},t.prototype.formatToParts=function(t){var e=this.options,r=e.maxChars,n=e.terminator,i=e.separator,o=void 0===r||Math.abs(r)>=t.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?t.slice(0,o):t.slice(o);return null==r||null==o||0===o||null==n||t.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},t.prototype.resolvedOptions=function(){return this.options},t}(),Yr={Collator:Intl.Collator,DateTimeFormat:Intl.DateTimeFormat,DisplayNames:Intl.DisplayNames,ListFormat:Intl.ListFormat,Locale:Intl.Locale,NumberFormat:Intl.NumberFormat,PluralRules:Intl.PluralRules,RelativeTimeFormat:Intl.RelativeTimeFormat,Segmenter:Intl.Segmenter,CutoffFormat:Wr},Zr=function(){function t(){this.cache={}}return t.prototype._generateKey=function(t,e){void 0===e&&(e={});var r=t?Array.isArray(t)?t.map(function(t){return String(t)}).join(","):String(t):"undefined",n=e?JSON.stringify(e,Object.keys(e).sort()):"{}";return"".concat(r,":").concat(n)},t.prototype.get=function(t){for(var e,r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=n[0],a=void 0===o?Fr:o,s=n[1],c=void 0===s?{}:s,h=this._generateKey(a,c),l=null===(r=this.cache[t])||void 0===r?void 0:r[h];return void 0===l&&(l=new((e=Yr[t]).bind.apply(e,function(t,e,r){if(2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}([void 0],n,!1))),this.cache[t]||(this.cache[t]={}),this.cache[t][h]=l),l},t}(),Jr=new Zr;function qr(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}var Qr={variable:"v",number:"n",datetime:"d",currency:"c"};function tn(t){return Qr[t]}function en(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"base64").toString("utf8");for(var e=atob(t),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return(new TextDecoder).decode(r)}function rn(t){var e=t.icuString,r=t.shouldVisit,n=t.visitor,i=t.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(t,e){void 0===e&&(e={}),e=l({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new kt(t,e).parse();if(r.err){var n=SyntaxError(V[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Nt(r.val),r.val}(e,s);return h(c),c;function h(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===$.select||t.type===$.plural?Object.values(t.options).map(function(t){return t.value}).map(h):t.type===$.tag&&h(t.children))}}var nn="_gt_",on=new RegExp("^".concat(nn,"\\d+$")),an=new RegExp("^".concat(nn,"$"));function sn(t){var e;return t.type===$t.TYPE.select&&on.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===$t.TYPE.literal)}function cn(t){var e;return t.type===$t.TYPE.select&&an.test(t.value)&&!!t.options.other&&(0===t.options.other.value.length||t.options.other.value.length>0&&(null===(e=t.options.other.value[0])||void 0===e?void 0:e.type)===$t.TYPE.literal)}function hn(t){var e=t.replace(/['\']/g,"''"),r=/[{}<>]/,n=e.search(r);if(-1===n)return e;for(var i=-1,o=e.length-1;o>=0;o--)if(r.test(e[o])){i=o;break}return e.slice(0,n)+"'"+e.slice(n,i+1)+"'"+e.slice(i+1)}function ln(t){return t}var un=ln;function fn(t){if(!t.includes(nn))return t;var e=[];rn({icuString:t,shouldVisit:cn,visitor:function(t){var r,n,i,o,a,s,c,h;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=t.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(h=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==h?h:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<e.length;i++){var o=e[i],a=o.start,s=o.end,c=o.otherStart,h=o.otherEnd;r.push(t.slice(n,a)),r.push(t.slice(a,a+4+1)),r.push(String(i+1)),r.push(t.slice(a+4+1,c)),r.push("{}"),r.push(t.slice(h,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}const pn={variable:"value",number:"n",datetime:"date",currency:"cost"};function dn(t={},e){if(t.name)return t.name;return`_gt_${pn[e]||"value"}_${t["data-_gt"]?.id}`}const vn="@generaltranslation/react-core";var yn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const gn=t=>{if(!t)return"";const{type:e,props:r}=t;if(e&&"function"==typeof e){if("displayName"in e&&"string"==typeof e.displayName&&e.displayName)return e.displayName;if("name"in e&&"string"==typeof e.name&&e.name)return e.name}return e&&"string"==typeof e?e:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},_n=t=>{const{props:e}=t,r={t:gn(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=dn(e,r),i=tn(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(yn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=mn(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=mn(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(yn).reduce((t,[r,n])=>(e[n]&&(t[r]=e[n]),t),{});if("plural"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=mn(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=mn(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=mn(e.children)),r},bn=e=>{return r=e,t.isValidElement(r)?_n(e):"number"==typeof e?e.toString():e;var r};function mn(t){return Array.isArray(t)?t.map(bn):bn(t)}function En(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Gr),void 0===r&&(r=[Fr]);var n=Jr.get("PluralRules",r).select(t),i=Math.abs(t);if(0===i&&e.includes("zero"))return"zero";if(1===i){if(e.includes("singular"))return"singular";if(e.includes("one"))return"one"}if("one"===n&&e.includes("singular"))return"singular";if(2===i){if(e.includes("dual"))return"dual";if(e.includes("two"))return"two"}return"two"===n&&e.includes("dual")?"dual":e.includes(n)?n:"two"===n&&e.includes("dual")?"dual":"two"===n&&e.includes("plural")?"plural":"two"===n&&e.includes("other")?"other":"few"===n&&e.includes("plural")?"plural":"few"===n&&e.includes("other")?"other":"many"===n&&e.includes("plural")?"plural":"many"===n&&e.includes("other")?"other":"other"===n&&e.includes("plural")?"plural":""}(t,Object.keys(r),e)),n&&!i&&(i=r[n]),i}function Bn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,t)}return r}function wn(t){if(Array.isArray(t)){if(1===t.length)return{entry:t[0]};if(2===t.length)return{entry:t[0],metadata:t[1]}}return{entry:t}}function Sn(t){return"object"==typeof t&&!!t&&"data-_gt"in t&&"object"==typeof t["data-_gt"]&&!!t["data-_gt"]&&"transformation"in t["data-_gt"]&&"variable"===t["data-_gt"]?.transformation}function Hn(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:dn(t,e),variableType:tn(e),variableValue:void 0!==t.value?t.value:void 0!==t["data-_gt-unformatted-value"]?t["data-_gt-unformatted-value"]:void 0!==t.children?t.children:void 0,variableOptions:(()=>{const e={...void 0!==t.currency&&{currency:t.currency},...void 0!==t.options&&t.options};return Object.keys(e).length?e:"string"==typeof t["data-_gt-variable-options"]?JSON.parse(t["data-_gt-variable-options"]):t["data-_gt-variable-options"]||void 0})()}}function An(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function xn({children:e,defaultLocale:r=Fr,renderVariable:n}){const i=e=>t.isValidElement(e)?(e=>{const i=An(e);if(Sn(e.props)){const{variableType:t,variableValue:i,variableOptions:o}=Hn(e.props);return n({variableType:t,variableValue:i,variableOptions:o,locales:[r]})}if("plural"===i?.transformation){const t=i.branches||{};return o(En(e.props.n,[r],t)||e.props.children)}if("branch"===i?.transformation){let{children:t,branch:r,"data-_gt":n,...a}=e.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:t)}return"fragment"===i?.transformation?t.createElement(t.Fragment,{key:e.props.key,children:o(e.props.children)}):e.props.children?t.cloneElement(e,{...e.props,"data-_gt":void 0,children:o(e.props.children)}):t.cloneElement(e,{...e.props,"data-_gt":void 0})})(e):e,o=e=>Array.isArray(e)?t.Children.map(e,i):i(e);return o(e)}function Tn({sourceElement:e,targetElement:r,locales:n=[Fr],renderVariable:i}){const{props:o}=e,a=o["data-_gt"],s=a?.transformation,c=r.d,h={};if(c&&Object.entries(yn).forEach(([t,e])=>{c[t]&&(h[e]=c[t])}),"plural"===s){const t=e.props.n;return On({source:En(t,n,a.branches||{})||e.props.children,target:En(t,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return On({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?t.createElement(t.Fragment,{key:e.props.key,children:On({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?t.cloneElement(e,{...o,...h,"data-_gt":void 0,children:On({source:o.children,target:r.c,locales:n,renderVariable:i})}):xn({children:e,defaultLocale:n[0],renderVariable:i})}function On({source:r,target:n,locales:i=[Fr],renderVariable:o}){if(null==n&&r)return xn({children:r,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(r)&&r&&(r=[r]),Array.isArray(r)&&Array.isArray(n)){const a={},s={},c=r.filter(e=>{if(t.isValidElement(e)){if(!Sn(e.props))return!0;{const{variableName:t,variableValue:r,variableOptions:n}=Hn(e.props);a[t]=r,s[t]=n}}return!1}),h=t=>c.find(e=>{const r=An(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return n.map((r,n)=>{if("string"==typeof r)return e.jsx(t.Fragment,{children:r},`string_${n}`);if(qr(r))return e.jsx(t.Fragment,{children:o({variableType:r.v||"v",variableValue:a[r.k],variableOptions:s[r.k],locales:i})},`var_${n}`);const c=h(r);return c?e.jsx(t.Fragment,{children:Tn({sourceElement:c,targetElement:r,locales:i,renderVariable:o})},`element_${n}`):void 0})}if(n&&"object"==typeof n&&!Array.isArray(n)){const e=qr(n)?"variable":"element";if(t.isValidElement(r)){if("element"===e)return Tn({sourceElement:r,targetElement:n,locales:i,renderVariable:o});if(Sn(r.props)){const{variableValue:t,variableOptions:e,variableType:n}=Hn(r.props);return o({variableType:n,variableValue:t,variableOptions:e,locales:i})}}}return xn({children:r,defaultLocale:i[0],renderVariable:o})}function Pn(t){return void 0!==t&&("string"==typeof t||!!Array.isArray(t)&&((1===t.length||2===t.length)&&("string"==typeof t[0]&&(2!==t.length||"object"==typeof t[1]&&null!==t[1]&&("$context"in t[1]||"$maxChars"in t[1]||"$_hash"in t[1])))))}const Cn=t=>"string"==typeof t||Array.isArray(t),kn=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function Rn(t,e){if(Array.isArray(t))return t.map((t,r)=>Pn(t)?e[r]:Rn(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>Cn(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>Cn(t)))},n=Object.entries(t).filter(([,t])=>kn(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>kn(t)).map(([t])=>t),a=new Set([...n,...i]);for(const n of a)r[n]=Rn(o(t,n)||{},o(e,n)||{});return r}const In="function"==typeof i.use;function Mn({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=o(r,t);return r}const Ln=["constructor","prototype","__proto__"];function Nn(t,e,r,n){if(Pn(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!Ln.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==o(e,t)&&a(e,t,Array.isArray(o(n,t))?[]:{}),e=o(e,t),n=o(n,t);a(e,i[i.length-1],t)}var Dn=function(){return Dn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Dn.apply(this,arguments)};function jn(t){return Ur.SHA256(t).toString(Ur.enc.Hex).slice(0,16)}function Un(t,e){var r=t.source,n=t.context,i=t.id,o=t.maxChars,a=t.dataFormat;void 0===e&&(e=jn);var s={dataFormat:a};return s.source="JSX"===a?Gn(r):r,s=Dn(Dn(Dn(Dn({},s),i&&{id:i}),n&&{context:n}),null!=o&&{maxChars:Math.abs(o)}),e(qt(s))}"function"==typeof SuppressedError&&SuppressedError;var Fn=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=Gn(t.c)),"d"in t){var r=null==t?void 0:t.d;(null==r?void 0:r.b)&&(e.b=Object.fromEntries(Object.entries(r.b).map(function(t){return[t[0],Gn(t[1])]}))),(null==r?void 0:r.t)&&(e.t=r.t)}return function(t){var e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){var r=Object.keys(e);if(1===r.length)return!0;if(2===r.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===r.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1}(t)?Dn({k:t.k},t.v&&{v:t.v}):e}return t};function Gn(t){return Array.isArray(t)?t.map(Fn):Fn(t)}const zn=t=>`${vn} Error: Dictionary subtree not found for id: "${t}"`;var Vn=function(t,e){return Vn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Vn(t,e)},$n=function(){return $n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$n.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Kn,Xn;function Wn(t,e){return Un($n($n($n($n({source:fn(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),null!=(null==e?void 0:e.$maxChars)&&{maxChars:Math.abs(e.$maxChars)}),{dataFormat:"ICU"}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(Kn||(Kn={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(Xn||(Xn={})),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="fallback-storage-adapter",e.storage={},e}(function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Vn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.getItem=function(t){return this.storage[t]},e.prototype.setItem=function(t,e){this.storage[t]=e},e.prototype.removeItem=function(t){delete this.storage[t]}}(function(){});function Yn({children:t}){return t}const Zn=Yn;var Jn=function(){return Jn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Jn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var qn=function(t){console.warn(t)},Qn=function(t){return'String interpolation failed for message: "'.concat(t,'".')};function ti(t,e){var n;if(!t)return t;var i=e.$_fallback,o=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(e);try{var a=function(t){if(!t.includes(nn))return{};var e=1,r={};return rn({icuString:t,shouldVisit:cn,visitor:function(t){var n;r[t.value+e]=t.options.other.value.length?null===(n=t.options.other.value[0])||void 0===n?void 0:n.value:"",e+=1},options:{recurseIntoVisited:!1}}),r}(i||""),s=function(t,e){try{return r.formatMessage(t,{variables:e})}catch(e){return qn(Qn(t)),t}}(Object.keys(a).length?function(t){if(!t.includes(nn))return t;var e=rn({icuString:t,shouldVisit:sn,visitor:function(t){t.type=$t.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return Zt.printAST(e)}(t):t,Jn(Jn(Jn({},o),a),((n={})[nn]="other",n)));return r.formatCutoff(s,{maxChars:e.$maxChars})}catch(n){return qn(Qn(t)),null!=i?ti(i,Jn(Jn({},e),{$_fallback:void 0})):r.formatCutoff(t,{maxChars:e.$maxChars})}}exports.Derive=Yn,exports.Static=Zn,exports.addGTIdentifier=function e(r,n=0){let i=n;const o=t=>{const{type:r,props:n}=t;i+=1;const o={id:i};let a;try{a="function"==typeof r&&r._gtt||""}catch{}if(a){const t=a.split("-");if("translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(o.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(n).reduce((t,[r,n])=>(function(t){return Gr.includes(t)}(r)&&(t[r]=e(n,i)),t),{});Object.keys(t).length&&(o.branches=t)}if("branch"===t[0]){const{children:t,branch:r,...a}=n,s=Object.fromEntries(Object.entries(a).filter(([t])=>!t.startsWith("data-"))),c=Object.entries(s).reduce((t,[r,n])=>(t[r]=e(n,i),t),{});Object.keys(c).length&&(o.branches=c)}o.transformation=t[0]}return o};function a(e){return t.isValidElement(e)?function(e){const{props:r}=e,n=o(e),i={...r,"data-_gt":n};return r.children&&!n.variableType&&(i.children=s(r.children)),e.type===t.Fragment&&(i["data-_gt"].transformation="fragment"),t.cloneElement(e,i)}(e):e}function s(e){return Array.isArray(e)?t.Children.map(e,a):a(e)}return s(r)},exports.collectUntranslatedEntries=function t(e,r,n=""){const i=[];return Object.entries(e).forEach(([e,a])=>{const s=n?`${n}.${e}`:e;if(Pn(a)){const{entry:t,metadata:n}=wn(a);o(r,e)||i.push({source:t,metadata:{$id:s,$context:n?.$context,$maxChars:n?.$maxChars,$_hash:n?.$_hash||""}})}else i.push(...t(a,o(r,e)||(Array.isArray(a)?[]:{}),s))}),i},exports.declareStatic=un,exports.declareVar=function(t,e){var r=hn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=hn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(nn,", select,").concat(n).concat(i,"}")},exports.decodeMsg=function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t},exports.decodeOptions=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(en(e))}catch(t){return null}},exports.decodeVars=function(t){if(!t.includes(nn))return t;var e=[];rn({icuString:t,shouldVisit:cn,visitor:function(t){var r,n,i,o;e.push({start:null!==(n=null===(r=t.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=t.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:t.options.other.value.length>0?t.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<e.length;i++)n.push(t.slice(r,e[i].start)),n.push(e[i].value),r=e[i].end;return r<t.length&&n.push(t.slice(r)),n.join("")},exports.defaultEnableI18nCookieName="generaltranslation.enable-i18n",exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.derive=ln,exports.flattenDictionary=function t(e,r=""){const n={};for(const i in e)if(e.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(e,i)||null===o(e,i)||Array.isArray(o(e,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(e,i)}else{const r=t(o(e,i),a);for(const t in r){if(n.hasOwnProperty(t))throw new Error(s(t));n[t]=r[t]}}}return n},exports.getDefaultRenderSettings=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3}),exports.getDictionaryEntry=Bn,exports.getEntryAndMetadata=wn,exports.getPluralBranch=En,exports.getSubtree=Mn,exports.getSubtreeWithCreation=function({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,s=e.split(".");for(const t of s)void 0===o(n,t)&&(Array.isArray(o(i,t))?a(n,t,[]):a(n,t,{})),n=o(n,t);return n},exports.getVariableName=dn,exports.getVariableProps=Hn,exports.gtFallback=function(t,e){return void 0===e&&(e={}),ti(t,e)},exports.injectAndMerge=function(t,e,r){const n=Mn({dictionary:t,id:r});if(!n)throw new Error(zn(r));if(Pn(n))throw new Error(`${vn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=Bn(t,r);if(!n)throw new Error(zn(r));if(Pn(n))throw new Error(`${vn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),s=i.slice(0,-1),c=i[i.length-1];let h=t;return s.forEach(t=>{h=o(h,t)}),a(h,c,e),t}(t,Rn(n,e),r)},exports.injectEntry=Nn,exports.injectFallbacks=function(t,e,r,n=""){const i=n?n.split("."):[];return r.forEach(({source:r,metadata:n})=>{const{$id:o}=n,a=i.length>0?o.split(".").slice(i.length).join("."):o,s=Bn(e,a);let c;Pn(s)&&(c=wn(s).entry);Nn(c||r,e,a,t)}),e},exports.injectHashes=function t(e,r=""){let n=!1;return Object.entries(e).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(Pn(o)){let{entry:t,metadata:r}=wn(o);r?.$_hash||(r||={},r.$_hash=Un({source:fn(t),...r?.$context&&{context:r.$context},...null!=r?.$maxChars&&{maxChars:Math.abs(r.$maxChars)},id:s,dataFormat:"ICU"}),a(e,i,[t,r]),n=!0)}else{const{updateDictionary:e}=t(o,s);n=n||e}}),{dictionary:e,updateDictionary:n}},exports.injectTranslations=function(t,e,r,n,i=""){let o=!1;const a=i?i.split("."):[];return n.forEach(({metadata:n})=>{const{$_hash:i,$id:s}=n,c=a.length>0?s.split(".").slice(a.length).join("."):s,h=Bn(e,c);let l;Pn(h)&&(l=wn(h).entry);const u=r[i]||l;u&&(Nn(u,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}},exports.isDictionaryEntry=Pn,exports.isValidDictionaryEntry=function(t){if("string"==typeof t)return!0;if(Array.isArray(t)){if("string"!=typeof t?.[0])return!1;const e=t?.[1];if(void 0===e)return!0;if(e&&"object"==typeof e)return!0}return!1},exports.isVariableObject=function(t){const e=t;if(e&&"object"==typeof e&&"string"==typeof e.k){const t=Object.keys(e);if(1===t.length)return!0;if(2===t.length){if("number"==typeof e.i)return!0;if("string"==typeof e.v)return!0}if(3===t.length&&"string"==typeof e.v&&"number"==typeof e.i)return!0}return!1},exports.mFallback=function(t,e){var r;if(void 0===e&&(e={}),!t)return t;var n=null!==(r=function(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(en(e))}catch(t){return null}}(t))&&void 0!==r?r:{};return function(t){return!(!t.$_hash||!t.$_source)}(n)?function(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}(t):ti(t,e)},exports.mergeDictionaries=Rn,exports.msg=function t(e,n){var i;if("string"!=typeof e)return n?e.map(function(e,r){return t(e,$n($n({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):e;if(!n)return e;var o=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e}))}(n),a=e;try{a=r.formatMessage(e,{locales:[Fr],variables:$n($n({},o),(i={},i[nn]="other",i))})}catch(n){return function(t){console.warn(t)}(function(t){return'String interpolation failed for message: "'.concat(t,'".')}(e)),e}var s=e,c=n.$_hash||Wn(e,n),h=$n($n({},n),{$_source:s,$_hash:c}),l=function(t){if("undefined"!=typeof Buffer)return Buffer.from(t,"utf8").toString("base64");for(var e=(new TextEncoder).encode(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}(JSON.stringify(h));return"".concat(a,":").concat(l)},exports.reactHasUse=In,exports.renderDefaultChildren=xn,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=On,exports.stripMetadataFromEntries=function t(e){let r={};return Array.isArray(e)&&(r=[]),Object.entries(e).forEach(([e,n])=>{if(Pn(n)){const{entry:t}=wn(n);a(r,e,t)}else a(r,e,t(n))}),r},exports.writeChildrenAsObjects=mn;
|
|
19
19
|
//# sourceMappingURL=internal.cjs.min.cjs.map
|