@generaltranslation/react-core 1.7.2 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/index.cjs.min.cjs +1 -1
- package/dist/index.cjs.min.cjs.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.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/rendering/renderVariable.d.ts.map +1 -1
- package/dist/types-dir/types.d.ts +5 -4
- package/dist/types-dir/types.d.ts.map +1 -1
- package/dist/types.d.ts +5 -4
- package/package.json +2 -2
|
@@ -15,5 +15,5 @@ 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]),h=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,E,B,w,S,x,H,A,T=this._hash.words,O=u.words,C=h.words,P=a.words,k=s.words,R=c.words,L=l.words;for(B=o=T[0],w=f=T[1],S=b=T[2],x=m=T[3],H=E=T[4],r=0;r<80;r+=1)A=o+e[t+P[r]]|0,A+=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],A=(A=_(A|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=A,A=B+e[t+k[r]]|0,A+=r<16?g(w,S,x)+C[0]:r<32?y(w,S,x)+C[1]:r<48?v(w,S,x)+C[2]:r<64?d(w,S,x)+C[3]:p(w,S,x)+C[4],A=(A=_(A|=0,L[r]))+H|0,B=H,H=x,x=_(S,10),S=w,w=A;A=T[1]+b+x|0,T[1]=T[2]+m+H|0,T[2]=T[3]+E+B|0,T[3]=T[4]+o+w|0,T[4]=T[0]+f+S|0,T[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 p(e,t,r){return e^t^r}function d(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)),jt.exports;var e}(),Gt(),function(){return zt||(zt=1,$t.exports=(e=nt(),At(),Gt(),function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=s.create(r.hasher,e),o=i.create(),a=i.create([1]),c=o.words,l=a.words,u=r.keySize,h=r.iterations;c.length<u;){var f=n.update(t).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<h;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)}}(),e.PBKDF2)),$t.exports;var e}(),Xt(),Zt(),Qt(),rr(),or(),cr(),function(){return lr?ur.exports:(lr=1,ur.exports=(t=nt(),Zt(),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 hr?fr.exports:(hr=1,fr.exports=(e=nt(),Zt(),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 pr?dr.exports:(pr=1,dr.exports=(e=nt(),Zt(),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 vr?yr.exports:(vr=1,yr.exports=(e=nt(),Zt(),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 gr||(gr=1,_r.exports=(e=nt(),Zt(),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)),_r.exports;var e}(),function(){return br?mr.exports:(br=1,mr.exports=(e=nt(),Zt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Er||(Er=1,Br.exports=(e=nt(),Zt(),function(){var t=e,r=t.lib.CipherParams,n=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex)),Br.exports;var e}(),function(){return wr||(wr=1,Sr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],f=[],p=[];!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 d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=e[r],y=e[v],g=e[y],_=257*e[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,h[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[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 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^=d[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]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^p[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,h,f,p,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],h=e[t+2]^r[2],f=e[t+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^i[h>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[p++];l=v,u=y,h=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[p++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[p++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Sr.exports;var e}(),Ar(),function(){return Tr||(Tr=1,Or.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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)),Or.exports;var e}(),function(){return Cr||(Cr=1,Pr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,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)),Pr.exports;var e}(),function(){return kr||(kr=1,Rr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=h,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=h,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)),Rr.exports;var e}(),Ir())),Qe.exports),Ur=je(jr),Fr="en",Gr=["singular","plural","dual","zero","one","two","few","many","other"];function zr(e){return Gr.includes(e)}"function"==typeof SuppressedError&&SuppressedError;var $r,Vr,Kr="ellipsis",Xr="DEFAULT_TERMINATOR_KEY",Wr={ellipsis:($r={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},$r[Xr]={terminator:"…",separator:void 0},$r),none:(Vr={},Vr[Xr]={terminator:void 0,separator:void 0},Vr)},Yr=function(){function e(e,t){var r,n,i,o,a,s,c,l,u;void 0===t&&(t={});try{var h=e?Array.isArray(e)?e.map(function(e){return String(e)}):[String(e)]:[Fr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Fr}catch(e){this.locale=Fr}if(!Wr[null!==(r=t.style)&&void 0!==r?r:Kr])throw new Error(function(e){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(e,".")}(null!==(n=t.style)&&void 0!==n?n:Kr));if(void 0!==t.maxChars){l=null!==(i=t.style)&&void 0!==i?i:Kr;var p=new Intl.Locale(this.locale).language;u=Wr[l][p]||Wr[l][Xr]}var d=null!==(o=t.terminator)&&void 0!==o?o:null==u?void 0:u.terminator,v=null!=d?null!==(a=t.separator)&&void 0!==a?a:null==u?void 0:u.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!==t.maxChars&&Math.abs(t.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:t.maxChars,style:l,terminator:d,separator:v}}return e.prototype.format=function(e){return this.formatToParts(e).join("")},e.prototype.formatToParts=function(e){var t=this.options,r=t.maxChars,n=t.terminator,i=t.separator,o=void 0===r||Math.abs(r)>=e.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?e.slice(0,o):e.slice(o);return null==r||null==o||0===o||null==n||e.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},e.prototype.resolvedOptions=function(){return this.options},e}(),Zr={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:Yr},Jr=function(){function e(){this.cache={}}return e.prototype._generateKey=function(e,t){void 0===t&&(t={});var r=e?Array.isArray(e)?e.map(function(e){return String(e)}).join(","):String(e):"undefined",n=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(r,":").concat(n)},e.prototype.get=function(e){for(var t,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,l=this._generateKey(a,c),u=null===(r=this.cache[e])||void 0===r?void 0:r[l];return void 0===u&&(u=new((t=Zr[e]).bind.apply(t,function(e,t,r){if(2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([void 0],n,!1))),this.cache[e]||(this.cache[e]={}),this.cache[e][l]=u),u},e}(),qr=new Jr;function Qr(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var en={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function tn(e){return en[e]}function rn(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");for(var t=atob(e),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return(new TextDecoder).decode(r)}function nn(e){var t=e.icuString,r=e.shouldVisit,n=e.visitor,i=e.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(e,t){void 0===t&&(t={}),t=u({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ke(e,t).parse();if(r.err){var n=SyntaxError($[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ne(r.val),r.val}(t,s);return l(c),c;function l(e){e.map(h)}function h(e){var t=!1;r(e)&&(n(e),t=!0),t&&!a||(e.type===V.select||e.type===V.plural?Object.values(e.options).map(function(e){return e.value}).map(l):e.type===V.tag&&l(e.children))}}var on="_gt_",an=new RegExp("^".concat(on,"\\d+$")),sn=new RegExp("^".concat(on,"$"));function cn(e){var t;return e.type===Ve.TYPE.select&&an.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===Ve.TYPE.literal)}function ln(e){var t;return e.type===Ve.TYPE.select&&sn.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===Ve.TYPE.literal)}function un(e){var t=e.replace(/['\']/g,"''"),r=/[{}<>]/,n=t.search(r);if(-1===n)return t;for(var i=-1,o=t.length-1;o>=0;o--)if(r.test(t[o])){i=o;break}return t.slice(0,n)+"'"+t.slice(n,i+1)+"'"+t.slice(i+1)}function hn(e){return e}var fn=hn;function pn(e){if(!e.includes(on))return e;var t=[];nn({icuString:e,shouldVisit:ln,visitor:function(e){var r,n,i,o,a,s,c,l;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=e.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=e.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(l=null===(c=e.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==l?l:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<t.length;i++){var o=t[i],a=o.start,s=o.end,c=o.otherStart,l=o.otherEnd;r.push(e.slice(n,a)),r.push(e.slice(a,a+4+1)),r.push(String(i+1)),r.push(e.slice(a+4+1,c)),r.push("{}"),r.push(e.slice(l,s)),n=s}return r.push(e.slice(n,e.length)),r.join("")}const dn="@generaltranslation/react-core",vn=e=>`${dn} Error: Dictionary subtree not found for id: "${e}"`,yn=`${dn} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;function gn(t,r){const{type:n,props:i}=t,o=function(e){const t="function"==typeof e&&"_gtt"in e?e._gtt:void 0;if(null==t||"string"!=typeof t)return;const r=t.split("-"),n=r[0],i="automatic"===r[1]||"automatic"===r[2]?"automatic":"manual";return{componentType:n,injectionType:i}}(n);if("object"!=typeof i||null===i)return t;if(o){const{componentType:n,injectionType:a}=o;if("variable"===n)return t;if("branch"===n){const n=Object.entries(i).reduce((e,[t,n])=>("branch"===t||t.startsWith("data-")?e[t]=n:e[t]=_n(n,r),e),{});return e.cloneElement(t,{...n})}if("plural"===n){const n=Object.entries(i).reduce((e,[t,n])=>(zr(t)||"children"===t?e[t]=_n(n,r):e[t]=n,e),{});return e.cloneElement(t,{...n})}if("derive"===n)return e.cloneElement(t,{...i,..."children"in i&&{children:bn(i.children,r+1)}});if("translate"===n&&"automatic"===a&&r>0)return"children"in i?bn(i.children,r):void 0;"translate"===n&&"automatic"===a&&console.warn(yn)}return e.cloneElement(t,{...i,..."children"in i&&{children:bn(i.children,r)}})}function _n(t,r){return e.isValidElement(t)?gn(t,r):t}function bn(t,r){return Array.isArray(t)?e.Children.map(t,e=>_n(e,r)):_n(t,r)}const mn={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function En(e={},t){if(e.name)return e.name;return`_gt_${mn[t]||"value"}_${e["data-_gt"]?.id}`}var Bn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const wn=e=>{if(!e)return"";const{type:t,props:r}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},Sn=e=>{const{props:t}=e,r={t:wn(e)};if(t["data-_gt"]){const e=t["data-_gt"],n=e.transformation;if("variable"===n){const r=e.variableType||"variable",n=En(t,r),i=tn(r);return{i:e.id,k:n,v:i}}r.i=e.id,r.d=((e,t,r)=>{let n=Object.entries(Bn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Hn(r)}),n={...n,b:e,t:"p"}}if("branch"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Hn(r)}),n={...n,b:e,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,e.branches);let i=Object.entries(Bn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Hn(r)}),i={...i,b:t,t:"p"}}if("branch"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Hn(r)}),i={...i,b:t,t:"b"}}r.d=Object.keys(i).length?i:void 0}return t.children&&(r.c=Hn(t.children)),r},xn=t=>{return r=t,e.isValidElement(r)?Sn(t):"number"==typeof t?t.toString():t;var r};function Hn(e){return Array.isArray(e)?e.map(xn):xn(e)}function An(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=Gr),void 0===r&&(r=[Fr]);var n=qr.get("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 Tn(e,t){let r=e;const n=t.split(".");for(const e of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,e)}return r}function On(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}}function Cn(e){return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===e["data-_gt"]?.transformation}function Pn(e){const t=e["data-_gt"]?.variableType||"variable";return{variableName:En(e,t),variableType:tn(t),injectionType:e["data-_gt"]?.injectionType||"manual",variableValue:void 0!==e.value?e.value:void 0!==e.date?e.date:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t={...void 0!==e.currency&&{currency:e.currency},...void 0!==e.unit&&{unit:e.unit},...void 0!==e.baseDate&&{baseDate:e.baseDate},...void 0!==e.options&&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 kn(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Rn({children:t,defaultLocale:r=Fr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=kn(t);if(Cn(t.props)){const{variableType:e,variableValue:i,variableOptions:o,injectionType:a}=Pn(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r],injectionType:a})}if("plural"===i?.transformation){const e=i.branches||{};return o(An(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function Ln({sourceElement:t,targetElement:r,locales:n=[Fr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,l={};if(c&&Object.entries(Bn).forEach(([e,t])=>{c[e]&&(l[t]=c[e])}),"plural"===s){const e=t.props.n;return Mn({source:An(e,n,a.branches||{})||t.props.children,target:An(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:e,children:t}=o;return Mn({source:(a.branches||{})[e]||t,target:(r.d?.b||{})[e]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...l,"data-_gt":void 0,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):Rn({children:t,defaultLocale:n[0],renderVariable:i})}function Mn({source:t,target:n,locales:i=[Fr],renderVariable:o}){if(null==n&&t)return Rn({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const a={},s={},c={},l=t.filter(t=>{if(e.isValidElement(t)){if(!Cn(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n,injectionType:i}=Pn(t.props);a[e]=r,s[e]=n,c[e]=i}}return!1}),u=e=>l.find(t=>{const r=kn(t);if(void 0!==r?.id){return r.id===e.i}return!1})||l.shift();return n.map((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(Qr(t))return r.jsx(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i,injectionType:c[t.k]||"manual"})},`var_${n}`);const l=u(t);return l?r.jsx(e.Fragment,{children:Ln({sourceElement:l,targetElement:t,locales:i,renderVariable:o})},`element_${n}`):null})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=Qr(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Ln({sourceElement:t,targetElement:n,locales:i,renderVariable:o});if(Cn(t.props)){const{variableValue:e,variableOptions:r,variableType:n,injectionType:a}=Pn(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i,injectionType:a})}}}return Rn({children:t,defaultLocale:i[0],renderVariable:o})}function In(e){return void 0!==e&&("string"==typeof e||!!Array.isArray(e)&&((1===e.length||2===e.length)&&("string"==typeof e[0]&&(2!==e.length||"object"==typeof e[1]&&null!==e[1]&&("$context"in e[1]||"$maxChars"in e[1]||"$_hash"in e[1])))))}const Nn=e=>"string"==typeof e||Array.isArray(e),Dn=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function jn(e,t){if(Array.isArray(e))return e.map((e,r)=>In(e)?t[r]:jn(e,t[r]));const r={...Object.fromEntries(Object.entries(e).filter(([,e])=>Nn(e))),...Object.fromEntries(Object.entries(t).filter(([,e])=>Nn(e)))},n=Object.entries(e).filter(([,e])=>Dn(e)).map(([e])=>e),i=Object.entries(t).filter(([,e])=>Dn(e)).map(([e])=>e),a=new Set([...n,...i]);for(const n of a)r[n]=jn(o(e,n)||{},o(t,n)||{});return r}const Un="function"==typeof i.use;function Fn({dictionary:e,id:t}){if(""===t)return e;let r=e;const n=t.split(".");for(const e of n)r=o(r,e);return r}const Gn=["constructor","prototype","__proto__"];function zn(e,t,r,n){if(In(t))return e;const i=r.split(".");i.forEach(e=>{if(function(e){return!!Gn.includes(e)}(e))throw new Error(`Invalid key: ${e}`)}),t||={};for(const e of i.slice(0,-1))null==o(t,e)&&a(t,e,Array.isArray(o(n,e))?[]:{}),t=o(t,e),n=o(n,e);a(t,i[i.length-1],e)}var $n=function(){return $n=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},$n.apply(this,arguments)};function Vn(e){return Ur.SHA256(e).toString(Ur.enc.Hex).slice(0,16)}function Kn(e,t){var r,n=e.source,i=e.context,o=e.id,a=e.maxChars,s=e.dataFormat;void 0===t&&(t=Vn),r="JSX"===s?Wn(n):n;var c=$n($n($n($n({source:r},o&&{id:o}),i&&{context:i}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s});return t(qe(c))}"function"==typeof SuppressedError&&SuppressedError;var Xn=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=Wn(e.c)),"d"in e){var r=null==e?void 0:e.d;(null==r?void 0:r.b)&&(t.b=Object.fromEntries(Object.entries(r.b).map(function(e){return[e[0],Wn(e[1])]}))),(null==r?void 0:r.t)&&(t.t=r.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?$n({k:e.k},e.v&&{v:e.v}):t}return e};function Wn(e){return Array.isArray(e)?e.map(Xn):Xn(e)}var Yn=function(e,t){return Yn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Yn(e,t)},Zn=function(){return Zn=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},Zn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Jn,qn;function Qn(e,t){return Kn(Zn(Zn(Zn(Zn({source:"JSX"===t.$format?e:pn(e)},(null==t?void 0:t.$context)&&{context:t.$context}),(null==t?void 0:t.$id)&&{id:t.$id}),"$maxChars"in t&&null!=t.$maxChars&&{$maxChars:Math.abs(t.$maxChars)}),{dataFormat:t.$format}))}!function(e){e.GT_REMOTE="gt-remote",e.REMOTE="remote",e.CUSTOM="custom",e.DISABLED="disabled"}(Jn||(Jn={})),function(e){e.GT="gt",e.CUSTOM="custom",e.DISABLED="disabled"}(qn||(qn={})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="fallback-storage-adapter",t.storage={},t}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Yn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t){this.storage[e]=t},t.prototype.removeItem=function(e){delete this.storage[e]}}(function(){});function ei({children:e}){return e}function ti(e){return ei(e)}ei._gtt="derive",ti._gtt="derive";const ri=e.createContext(void 0);function ni({children:n,locales:i,options:o={}}){const a=e.useContext(ri);if(null==n)return null;const s=a?.gt||new t.GT;let c="string"==typeof n?parseFloat(n):n;return"number"==typeof c&&(i||(i||=[],a?.locale&&i.push(a.locale),a?.defaultLocale&&i.push(a.defaultLocale)),c=s.formatNum(c,{locales:i,...o})),r.jsx(r.Fragment,{children:c})}function ii({children:e}){return r.jsx(r.Fragment,{children:e})}function oi({children:n,currency:i="USD",locales:o,options:a={}}){const s=e.useContext(ri);if(null==n)return null;const c=s?.gt||new t.GT;let l="string"==typeof n?parseFloat(n):n;return"number"==typeof l&&(o||(o||=[],s?.locale&&o.push(s.locale),s?.defaultLocale&&o.push(s.defaultLocale)),l=c.formatCurrency(l,i,{locales:o,...a})),r.jsx(r.Fragment,{children:l})}function ai({children:n,locales:i,options:o={}}){const a=e.useContext(ri);if(null==n)return null;const s=a?.gt||new t.GT;i||(i=[],a?.locale&&i.push(a.locale),a?.defaultLocale&&i.push(a.defaultLocale));const c=s.formatDateTime(n,{locales:i,...o}).replace(/[\u200F\u202B\u202E]/g,"");return r.jsx(r.Fragment,{children:c})}function si({date:n,children:i,value:o,unit:a,baseDate:s,locales:c,options:l={}}){const u=e.useContext(ri),h=u?.gt||new t.GT;c||(c=[],u?.locale&&c.push(u.locale),u?.defaultLocale&&c.push(u.defaultLocale));const f=n??i;let p;if("development"!==process.env.NODE_ENV||void 0===o||a||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==o&&a)p=h.formatRelativeTime(o,a,{locales:c,numeric:l.numeric,style:l.style,localeMatcher:l.localeMatcher});else{if(null==f)return null;p=h.formatRelativeTimeFromDate(f,{locales:c,baseDate:s??new Date,numeric:l.numeric,style:l.style,localeMatcher:l.localeMatcher})}return r.jsx(r.Fragment,{children:p})}ni._gtt="variable-number",ii._gtt="variable-variable",oi._gtt="variable-currency",ai._gtt="variable-datetime",si._gtt="variable-relative-time";var ci=function(){return ci=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},ci.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var li=function(e){console.warn(e)},ui=function(e){return'String interpolation failed for message: "'.concat(e,'".')};function hi(e,r){var n;if(!e)return e;var i=r.$_fallback,o=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=e[0];return"$id"!==t&&"$context"!==t&&"$maxChars"!==t&&"$hash"!==t&&"$_hash"!==t&&"$_source"!==t&&"$_fallback"!==t&&"$format"!==t&&"$_locales"!==t}))}(r);try{var a=function(e){if(!e.includes(on))return{};var t=1,r={};return nn({icuString:e,shouldVisit:ln,visitor:function(e){var n;r[e.value+t]=e.options.other.value.length?null===(n=e.options.other.value[0])||void 0===n?void 0:n.value:"",t+=1},options:{recurseIntoVisited:!1}}),r}(i||""),s=function(e,r,n,i){try{return t.formatMessage(e,{variables:r,locales:n,dataFormat:i})}catch(t){return li(ui(e)),e}}(Object.keys(a).length?function(e){if(!e.includes(on))return e;var t=nn({icuString:e,shouldVisit:cn,visitor:function(e){e.type=Ve.TYPE.argument,delete e.options},options:{recurseIntoVisited:!1}});return Ze.printAST(t)}(e):e,ci(ci(ci({},o),a),((n={})[on]="other",n)),r.$_locales,r.$format);return t.formatCutoff(s,{maxChars:r.$maxChars})}catch(n){return li(ui(e)),null!=i?hi(i,ci(ci({},r),{$_fallback:void 0})):t.formatCutoff(e,{maxChars:r.$maxChars})}}exports.Derive=ei,exports.Static=ti,exports.addGTIdentifier=function t(r,n=0){let i=n;function o(r){const{props:n}=r,o=(e=>{const{type:r,props:n}=e;i+=1;const o={id:i,injectionType:"manual"};let a;try{a="function"==typeof r&&r._gtt||""}catch{}if(a){const e=a.split("-");if("automatic"!==e[1]&&"automatic"!==e[2]||(o.injectionType="automatic"),"translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=e?.[1]||"variable"),"plural"===e[0]){const e=Object.entries(n).reduce((e,[r,n])=>(zr(r)&&(e[r]=t(n,i)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:r,...a}=n,s=Object.fromEntries(Object.entries(a).filter(([e])=>!e.startsWith("data-"))),c=Object.entries(s).reduce((e,[r,n])=>(e[r]=t(n,i),e),{});Object.keys(c).length&&(o.branches=c)}o.transformation=e[0]}return o})(r),a={...n,"data-_gt":o};return n.children&&!o.variableType&&(a.children=s(n.children)),r.type===e.Fragment&&(a["data-_gt"].transformation="fragment"),e.cloneElement(r,a)}function a(t){return e.isValidElement(t)?o(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(r)},exports.collectUntranslatedEntries=function e(t,r,n=""){const i=[];return Object.entries(t).forEach(([t,a])=>{const s=n?`${n}.${t}`:t;if(In(a)){const{entry:e,metadata:n}=On(a);o(r,t)||i.push({source:e,metadata:{$id:s,$context:n?.$context,$maxChars:n?.$maxChars,$_hash:n?.$_hash||""}})}else i.push(...e(a,o(r,t)||(Array.isArray(a)?[]:{}),s))}),i},exports.declareStatic=fn,exports.declareVar=function(e,t){var r=un(String(null!=e?e:"")),n=" other {".concat(r,"}"),i="";if(null==t?void 0:t.$name){var o=un(t.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(on,", select,").concat(n).concat(i,"}")},exports.decodeMsg=function(e){return"string"==typeof e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e},exports.decodeOptions=function(e){if(-1===e.lastIndexOf(":"))return null;var t=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(rn(t))}catch(e){return null}},exports.decodeVars=function(e){if(!e.includes(on))return e;var t=[];nn({icuString:e,shouldVisit:ln,visitor:function(e){var r,n,i,o;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=e.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:e.options.other.value.length>0?e.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<t.length;i++)n.push(e.slice(r,t[i].start)),n.push(t[i].value),r=t[i].end;return r<e.length&&n.push(e.slice(r)),n.join("")},exports.defaultEnableI18nCookieName="generaltranslation.enable-i18n",exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.derive=hn,exports.flattenDictionary=function e(t,r=""){const n={};for(const i in t)if(t.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(t,i)||null===o(t,i)||Array.isArray(o(t,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(t,i)}else{const r=e(o(t,i),a);for(const e in r){if(n.hasOwnProperty(e))throw new Error(s(e));n[e]=r[e]}}}return n},exports.getDefaultRenderSettings=(e="production")=>({method:"default",timeout:"development"===e?8e3:12e3}),exports.getDictionaryEntry=Tn,exports.getEntryAndMetadata=On,exports.getPluralBranch=An,exports.getSubtree=Fn,exports.getSubtreeWithCreation=function({dictionary:e,id:t,sourceDictionary:r}){if(""===t)return e;let n=e;const i=r,s=t.split(".");for(const e of s)void 0===o(n,e)&&(Array.isArray(o(i,e))?a(n,e,[]):a(n,e,{})),n=o(n,e);return n},exports.getVariableName=En,exports.getVariableProps=Pn,exports.gtFallback=function(e,t){return void 0===t&&(t={}),hi(e,t)},exports.injectAndMerge=function(e,t,r){const n=Fn({dictionary:e,id:r});if(!n)throw new Error(vn(r));if(In(n))throw new Error(`${dn} Error: Cannot inject and merge a dictionary entry`);return function(e,t,r){const n=Tn(e,r);if(!n)throw new Error(vn(r));if(In(n))throw new Error(`${dn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=e;return s.forEach(e=>{l=o(l,e)}),a(l,c,t),e}(e,jn(n,t),r)},exports.injectEntry=zn,exports.injectFallbacks=function(e,t,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=Tn(t,a);let c;In(s)&&(c=On(s).entry);zn(c||r,t,a,e)}),t},exports.injectHashes=function e(t,r=""){let n=!1;return Object.entries(t).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(In(o)){let{entry:e,metadata:r}=On(o);r?.$_hash||(r||={},r.$_hash=Kn({source:pn(e),...r?.$context&&{context:r.$context},...null!=r?.$maxChars&&{maxChars:Math.abs(r.$maxChars)},id:s,dataFormat:"ICU"}),a(t,i,[e,r]),n=!0)}else{const{updateDictionary:t}=e(o,s);n=n||t}}),{dictionary:t,updateDictionary:n}},exports.injectTranslations=function(e,t,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,l=Tn(t,c);let u;In(l)&&(u=On(l).entry);const h=r[i]||u;h&&(zn(h,t,c,e),o=!0)}),{dictionary:t,updateDictionary:o}},exports.isDictionaryEntry=In,exports.isValidDictionaryEntry=function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof e?.[0])return!1;const t=e?.[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1},exports.isVariableObject=function(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1},exports.mFallback=function(e,t){var r;if(void 0===t&&(t={}),!e)return e;var n=null!==(r=function(e){if(-1===e.lastIndexOf(":"))return null;var t=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(rn(t))}catch(e){return null}}(e))&&void 0!==r?r:{};return function(e){return!(!e.$_hash||!e.$_source)}(n)?function(e){return"string"==typeof e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e}(e):hi(e,t)},exports.mergeDictionaries=jn,exports.msg=function e(r,n){var i;if("string"!=typeof r)return n?r.map(function(t,r){return e(t,Zn(Zn({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):r;if(!n)return r;var o=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=e[0];return"$id"!==t&&"$context"!==t&&"$maxChars"!==t&&"$hash"!==t&&"$_hash"!==t&&"$_source"!==t&&"$_fallback"!==t&&"$format"!==t&&"$_locales"!==t}))}(n),a=r;try{a=t.formatMessage(r,{locales:[Fr],variables:Zn(Zn({},o),(i={},i[on]="other",i))})}catch(n){return function(e){console.warn(e)}(function(e){return'String interpolation failed for message: "'.concat(e,'".')}(r)),r}var s=r,c=n.$_hash||Qn(r,Zn({$format:"ICU"},n)),l=Zn(Zn({},n),{$_source:s,$_hash:c}),u=function(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64");for(var t=(new TextEncoder).encode(e),r="",n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}(JSON.stringify(l));return"".concat(a,":").concat(u)},exports.reactHasUse=Un,exports.removeInjectedT=function(e){return bn(e,0)},exports.renderDefaultChildren=Rn,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Mn,exports.renderVariable=({variableType:e,variableValue:t,variableOptions:n})=>{if("n"===e)return r.jsx(ni,{options:n,children:t});if("d"===e)return r.jsx(ai,{options:n,children:t});if("c"===e)return r.jsx(oi,{options:n,children:t});if("rt"===e){if("number"==typeof t&&n?.unit)return r.jsx(si,{value:t,unit:n.unit,baseDate:n?.baseDate,options:n});const e=t instanceof Date?t:"string"==typeof t||"number"==typeof t?new Date(t):void 0;return r.jsx(si,{date:e&&!isNaN(e.getTime())?e:void 0,baseDate:n?.baseDate,options:n})}return r.jsx(ii,{children:t})},exports.stripMetadataFromEntries=function e(t){let r={};return Array.isArray(t)&&(r=[]),Object.entries(t).forEach(([t,n])=>{if(In(n)){const{entry:e}=On(n);a(r,t,e)}else a(r,t,e(n))}),r},exports.writeChildrenAsObjects=Hn;
|
|
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]),h=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,E,B,w,S,x,H,A,T=this._hash.words,O=u.words,C=h.words,P=a.words,k=s.words,R=c.words,L=l.words;for(B=o=T[0],w=f=T[1],S=b=T[2],x=m=T[3],H=E=T[4],r=0;r<80;r+=1)A=o+e[t+P[r]]|0,A+=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],A=(A=_(A|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=A,A=B+e[t+k[r]]|0,A+=r<16?g(w,S,x)+C[0]:r<32?y(w,S,x)+C[1]:r<48?v(w,S,x)+C[2]:r<64?d(w,S,x)+C[3]:p(w,S,x)+C[4],A=(A=_(A|=0,L[r]))+H|0,B=H,H=x,x=_(S,10),S=w,w=A;A=T[1]+b+x|0,T[1]=T[2]+m+H|0,T[2]=T[3]+E+B|0,T[3]=T[4]+o+w|0,T[4]=T[0]+f+S|0,T[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 p(e,t,r){return e^t^r}function d(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)),jt.exports;var e}(),Gt(),function(){return zt||(zt=1,$t.exports=(e=nt(),At(),Gt(),function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.SHA256,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=s.create(r.hasher,e),o=i.create(),a=i.create([1]),c=o.words,l=a.words,u=r.keySize,h=r.iterations;c.length<u;){var f=n.update(t).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<h;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)}}(),e.PBKDF2)),$t.exports;var e}(),Xt(),Zt(),Qt(),rr(),or(),cr(),function(){return lr?ur.exports:(lr=1,ur.exports=(t=nt(),Zt(),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 hr?fr.exports:(hr=1,fr.exports=(e=nt(),Zt(),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 pr?dr.exports:(pr=1,dr.exports=(e=nt(),Zt(),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 vr?yr.exports:(vr=1,yr.exports=(e=nt(),Zt(),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 gr||(gr=1,_r.exports=(e=nt(),Zt(),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)),_r.exports;var e}(),function(){return br?mr.exports:(br=1,mr.exports=(e=nt(),Zt(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return Er||(Er=1,Br.exports=(e=nt(),Zt(),function(){var t=e,r=t.lib.CipherParams,n=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex)),Br.exports;var e}(),function(){return wr||(wr=1,Sr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],f=[],p=[];!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 d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var v=e[r],y=e[v],g=e[y],_=257*e[d]^16843008*d;a[r]=_<<24|_>>>8,s[r]=_<<16|_>>>16,c[r]=_<<8|_>>>24,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,h[d]=_<<16|_>>>16,f[d]=_<<8|_>>>24,p[d]=_,r?(r=v^e[e[e[g^v]]],n^=e[e[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 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^=d[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]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^p[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,h,f,p,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],h=e[t+2]^r[2],f=e[t+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^i[h>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[p++];l=v,u=y,h=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[p++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^r[p++],e[t]=v,e[t+1]=y,e[t+2]=g,e[t+3]=_},keySize:8});t.AES=r._createHelper(v)}(),e.AES)),Sr.exports;var e}(),Ar(),function(){return Tr||(Tr=1,Or.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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)),Or.exports;var e}(),function(){return Cr||(Cr=1,Pr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,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)),Pr.exports;var e}(),function(){return kr||(kr=1,Rr.exports=(e=nt(),vt(),Et(),Xt(),Zt(),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),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=h,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=h,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)),Rr.exports;var e}(),Ir())),Qe.exports),Ur=je(jr),Fr="en",Gr=["singular","plural","dual","zero","one","two","few","many","other"];function zr(e){return Gr.includes(e)}"function"==typeof SuppressedError&&SuppressedError;var $r,Vr,Kr="ellipsis",Xr="DEFAULT_TERMINATOR_KEY",Wr={ellipsis:($r={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},$r[Xr]={terminator:"…",separator:void 0},$r),none:(Vr={},Vr[Xr]={terminator:void 0,separator:void 0},Vr)},Yr=function(){function e(e,t){var r,n,i,o,a,s,c,l,u;void 0===t&&(t={});try{var h=e?Array.isArray(e)?e.map(function(e){return String(e)}):[String(e)]:[Fr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Fr}catch(e){this.locale=Fr}if(!Wr[null!==(r=t.style)&&void 0!==r?r:Kr])throw new Error(function(e){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(e,".")}(null!==(n=t.style)&&void 0!==n?n:Kr));if(void 0!==t.maxChars){l=null!==(i=t.style)&&void 0!==i?i:Kr;var p=new Intl.Locale(this.locale).language;u=Wr[l][p]||Wr[l][Xr]}var d=null!==(o=t.terminator)&&void 0!==o?o:null==u?void 0:u.terminator,v=null!=d?null!==(a=t.separator)&&void 0!==a?a:null==u?void 0:u.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!==t.maxChars&&Math.abs(t.maxChars)<this.additionLength&&(d=void 0,v=void 0),this.options={maxChars:t.maxChars,style:l,terminator:d,separator:v}}return e.prototype.format=function(e){return this.formatToParts(e).join("")},e.prototype.formatToParts=function(e){var t=this.options,r=t.maxChars,n=t.terminator,i=t.separator,o=void 0===r||Math.abs(r)>=e.length?r:r>=0?Math.max(0,r-this.additionLength):Math.min(0,r+this.additionLength),a=void 0!==o&&o>-1?e.slice(0,o):e.slice(o);return null==r||null==o||0===o||null==n||e.length<=Math.abs(r)?[a]:o>0?null!=i?[a,i,n]:[a,n]:null!=i?[n,i,a]:[n,a]},e.prototype.resolvedOptions=function(){return this.options},e}(),Zr={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:Yr},Jr=function(){function e(){this.cache={}}return e.prototype._generateKey=function(e,t){void 0===t&&(t={});var r=e?Array.isArray(e)?e.map(function(e){return String(e)}).join(","):String(e):"undefined",n=t?JSON.stringify(t,Object.keys(t).sort()):"{}";return"".concat(r,":").concat(n)},e.prototype.get=function(e){for(var t,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,l=this._generateKey(a,c),u=null===(r=this.cache[e])||void 0===r?void 0:r[l];return void 0===u&&(u=new((t=Zr[e]).bind.apply(t,function(e,t,r){if(2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([void 0],n,!1))),this.cache[e]||(this.cache[e]={}),this.cache[e][l]=u),u},e}(),qr=new Jr;function Qr(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}var en={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function tn(e){return en[e]}function rn(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf8");for(var t=atob(e),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return(new TextDecoder).decode(r)}function nn(e){var t=e.icuString,r=e.shouldVisit,n=e.visitor,i=e.options,o=i.recurseIntoVisited,a=void 0===o||o,s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(i,["recurseIntoVisited"]),c=function(e,t){void 0===t&&(t={}),t=u({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ke(e,t).parse();if(r.err){var n=SyntaxError($[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||Ne(r.val),r.val}(t,s);return l(c),c;function l(e){e.map(h)}function h(e){var t=!1;r(e)&&(n(e),t=!0),t&&!a||(e.type===V.select||e.type===V.plural?Object.values(e.options).map(function(e){return e.value}).map(l):e.type===V.tag&&l(e.children))}}var on="_gt_",an=new RegExp("^".concat(on,"\\d+$")),sn=new RegExp("^".concat(on,"$"));function cn(e){var t;return e.type===Ve.TYPE.select&&an.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===Ve.TYPE.literal)}function ln(e){var t;return e.type===Ve.TYPE.select&&sn.test(e.value)&&!!e.options.other&&(0===e.options.other.value.length||e.options.other.value.length>0&&(null===(t=e.options.other.value[0])||void 0===t?void 0:t.type)===Ve.TYPE.literal)}function un(e){var t=e.replace(/['\']/g,"''"),r=/[{}<>]/,n=t.search(r);if(-1===n)return t;for(var i=-1,o=t.length-1;o>=0;o--)if(r.test(t[o])){i=o;break}return t.slice(0,n)+"'"+t.slice(n,i+1)+"'"+t.slice(i+1)}function hn(e){return e}var fn=hn;function pn(e){if(!e.includes(on))return e;var t=[];nn({icuString:e,shouldVisit:ln,visitor:function(e){var r,n,i,o,a,s,c,l;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=e.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,otherStart:null!==(s=null===(a=e.options.other.location)||void 0===a?void 0:a.start.offset)&&void 0!==s?s:0,otherEnd:null!==(l=null===(c=e.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==l?l:0})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=[],n=0,i=0;i<t.length;i++){var o=t[i],a=o.start,s=o.end,c=o.otherStart,l=o.otherEnd;r.push(e.slice(n,a)),r.push(e.slice(a,a+4+1)),r.push(String(i+1)),r.push(e.slice(a+4+1,c)),r.push("{}"),r.push(e.slice(l,s)),n=s}return r.push(e.slice(n,e.length)),r.join("")}const dn="@generaltranslation/react-core",vn=e=>`${dn} Error: Dictionary subtree not found for id: "${e}"`,yn=`${dn} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;function gn(t,r){const{type:n,props:i}=t,o=function(e){const t="function"==typeof e&&"_gtt"in e?e._gtt:void 0;if(null==t||"string"!=typeof t)return;const r=t.split("-"),n=r[0],i="automatic"===r[1]||"automatic"===r[2]?"automatic":"manual";return{componentType:n,injectionType:i}}(n);if("object"!=typeof i||null===i)return t;if(o){const{componentType:n,injectionType:a}=o;if("variable"===n)return t;if("branch"===n){const n=Object.entries(i).reduce((e,[t,n])=>("branch"===t||t.startsWith("data-")?e[t]=n:e[t]=_n(n,r),e),{});return e.cloneElement(t,{...n})}if("plural"===n){const n=Object.entries(i).reduce((e,[t,n])=>(zr(t)||"children"===t?e[t]=_n(n,r):e[t]=n,e),{});return e.cloneElement(t,{...n})}if("derive"===n)return e.cloneElement(t,{...i,..."children"in i&&{children:bn(i.children,r+1)}});if("translate"===n&&"automatic"===a&&r>0)return"children"in i?bn(i.children,r):void 0;"translate"===n&&"automatic"===a&&console.warn(yn)}return e.cloneElement(t,{...i,..."children"in i&&{children:bn(i.children,r)}})}function _n(t,r){return e.isValidElement(t)?gn(t,r):t}function bn(t,r){return Array.isArray(t)?e.Children.map(t,e=>_n(e,r)):_n(t,r)}const mn={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function En(e={},t){if(e.name)return e.name;return`_gt_${mn[t]||"value"}_${e["data-_gt"]?.id}`}var Bn={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const wn=e=>{if(!e)return"";const{type:t,props:r}=e;if(t&&"function"==typeof t){if("displayName"in t&&"string"==typeof t.displayName&&t.displayName)return t.displayName;if("name"in t&&"string"==typeof t.name&&t.name)return t.name}return t&&"string"==typeof t?t:r.href?"a":r["data-_gt"]?.id?`C${r["data-_gt"].id}`:"function"},Sn=e=>{const{props:t}=e,r={t:wn(e)};if(t["data-_gt"]){const e=t["data-_gt"],n=e.transformation;if("variable"===n){const r=e.variableType||"variable",n=En(t,r),i=tn(r);return{i:e.id,k:n,v:i}}r.i=e.id,r.d=((e,t,r)=>{let n=Object.entries(Bn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Hn(r)}),n={...n,b:e,t:"p"}}if("branch"===e&&r){const e={};Object.entries(r).forEach(([t,r])=>{e[t]=Hn(r)}),n={...n,b:e,t:"b"}}return Object.keys(n).length?n:void 0})(n,t,e.branches);let i=Object.entries(Bn).reduce((e,[r,n])=>(t[n]&&(e[r]=t[n]),e),{});if("plural"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Hn(r)}),i={...i,b:t,t:"p"}}if("branch"===n&&e.branches){const t={};Object.entries(e.branches).forEach(([e,r])=>{t[e]=Hn(r)}),i={...i,b:t,t:"b"}}r.d=Object.keys(i).length?i:void 0}return t.children&&(r.c=Hn(t.children)),r},xn=t=>{return r=t,e.isValidElement(r)?Sn(t):"number"==typeof t?t.toString():t;var r};function Hn(e){return Array.isArray(e)?e.map(xn):xn(e)}function An(e,t,r){let n="",i=null;return"number"==typeof e&&!i&&r&&(n=function(e,t,r){void 0===t&&(t=Gr),void 0===r&&(r=[Fr]);var n=qr.get("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 Tn(e,t){let r=e;const n=t.split(".");for(const e of n){if("object"!=typeof r&&!Array.isArray(r))return;r=o(r,e)}return r}function On(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}}function Cn(e){return"object"==typeof e&&!!e&&"data-_gt"in e&&"object"==typeof e["data-_gt"]&&!!e["data-_gt"]&&"transformation"in e["data-_gt"]&&"variable"===e["data-_gt"]?.transformation}function Pn(e){const t=e["data-_gt"]?.variableType||"variable";return{variableName:En(e,t),variableType:tn(t),injectionType:e["data-_gt"]?.injectionType||"manual",variableValue:void 0!==e.value?e.value:void 0!==e.date?e.date:void 0!==e["data-_gt-unformatted-value"]?e["data-_gt-unformatted-value"]:void 0!==e.children?e.children:void 0,variableOptions:(()=>{const t={...void 0!==e.currency&&{currency:e.currency},...void 0!==e.unit&&{unit:e.unit},...void 0!==e.baseDate&&{baseDate:e.baseDate},...void 0!==e.options&&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 kn(e){return e&&e.props&&e.props["data-_gt"]?e.props["data-_gt"]:null}function Rn({children:t,defaultLocale:r=Fr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=kn(t);if(Cn(t.props)){const{variableType:e,variableValue:i,variableOptions:o,injectionType:a}=Pn(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r],injectionType:a})}if("plural"===i?.transformation){const e=i.branches||{};return o(An(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function Ln({sourceElement:t,targetElement:r,locales:n=[Fr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,l={};if(c&&Object.entries(Bn).forEach(([e,t])=>{c[e]&&(l[t]=c[e])}),"plural"===s){const e=t.props.n;return Mn({source:An(e,n,a.branches||{})||t.props.children,target:An(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:e,children:t}=o;return Mn({source:(a.branches||{})[e]||t,target:(r.d?.b||{})[e]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...l,"data-_gt":void 0,children:Mn({source:o.children,target:r.c,locales:n,renderVariable:i})}):Rn({children:t,defaultLocale:n[0],renderVariable:i})}function Mn({source:t,target:n,locales:i=[Fr],renderVariable:o}){if(null==n&&t)return Rn({children:t,defaultLocale:i[0],renderVariable:o});if("string"==typeof n)return n;if(Array.isArray(n)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(n)){const a={},s={},c={},l=t.filter(t=>{if(e.isValidElement(t)){if(!Cn(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n,injectionType:i}=Pn(t.props);a[e]=r,s[e]=n,c[e]=i}}return!1}),u=e=>l.find(t=>{const r=kn(t);if(void 0!==r?.id){return r.id===e.i}return!1})||l.shift();return n.map((t,n)=>{if("string"==typeof t)return r.jsx(e.Fragment,{children:t},`string_${n}`);if(Qr(t))return r.jsx(e.Fragment,{children:o({variableType:t.v||"v",variableValue:a[t.k],variableOptions:s[t.k],locales:i,injectionType:c[t.k]||"manual"})},`var_${n}`);const l=u(t);return l?r.jsx(e.Fragment,{children:Ln({sourceElement:l,targetElement:t,locales:i,renderVariable:o})},`element_${n}`):null})}if(n&&"object"==typeof n&&!Array.isArray(n)){const r=Qr(n)?"variable":"element";if(e.isValidElement(t)){if("element"===r)return Ln({sourceElement:t,targetElement:n,locales:i,renderVariable:o});if(Cn(t.props)){const{variableValue:e,variableOptions:r,variableType:n,injectionType:a}=Pn(t.props);return o({variableType:n,variableValue:e,variableOptions:r,locales:i,injectionType:a})}}}return Rn({children:t,defaultLocale:i[0],renderVariable:o})}function In(e){return void 0!==e&&("string"==typeof e||!!Array.isArray(e)&&((1===e.length||2===e.length)&&("string"==typeof e[0]&&(2!==e.length||"object"==typeof e[1]&&null!==e[1]&&("$context"in e[1]||"$maxChars"in e[1]||"$_hash"in e[1])))))}const Nn=e=>"string"==typeof e||Array.isArray(e),Dn=e=>"object"==typeof e&&null!==e&&!Array.isArray(e);function jn(e,t){if(Array.isArray(e))return e.map((e,r)=>In(e)?t[r]:jn(e,t[r]));const r={...Object.fromEntries(Object.entries(e).filter(([,e])=>Nn(e))),...Object.fromEntries(Object.entries(t).filter(([,e])=>Nn(e)))},n=Object.entries(e).filter(([,e])=>Dn(e)).map(([e])=>e),i=Object.entries(t).filter(([,e])=>Dn(e)).map(([e])=>e),a=new Set([...n,...i]);for(const n of a)r[n]=jn(o(e,n)||{},o(t,n)||{});return r}const Un="function"==typeof i.use;function Fn({dictionary:e,id:t}){if(""===t)return e;let r=e;const n=t.split(".");for(const e of n)r=o(r,e);return r}const Gn=["constructor","prototype","__proto__"];function zn(e,t,r,n){if(In(t))return e;const i=r.split(".");i.forEach(e=>{if(function(e){return!!Gn.includes(e)}(e))throw new Error(`Invalid key: ${e}`)}),t||={};for(const e of i.slice(0,-1))null==o(t,e)&&a(t,e,Array.isArray(o(n,e))?[]:{}),t=o(t,e),n=o(n,e);a(t,i[i.length-1],e)}var $n=function(){return $n=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},$n.apply(this,arguments)};function Vn(e){return Ur.SHA256(e).toString(Ur.enc.Hex).slice(0,16)}function Kn(e,t){var r,n=e.source,i=e.context,o=e.id,a=e.maxChars,s=e.dataFormat;void 0===t&&(t=Vn),r="JSX"===s?Wn(n):n;var c=$n($n($n($n({source:r},o&&{id:o}),i&&{context:i}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s});return t(qe(c))}"function"==typeof SuppressedError&&SuppressedError;var Xn=function(e){if(e&&"object"==typeof e){var t={};if("c"in e&&e.c&&(t.c=Wn(e.c)),"d"in e){var r=null==e?void 0:e.d;(null==r?void 0:r.b)&&(t.b=Object.fromEntries(Object.entries(r.b).map(function(e){return[e[0],Wn(e[1])]}))),(null==r?void 0:r.t)&&(t.t=r.t)}return function(e){var t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){var r=Object.keys(t);if(1===r.length)return!0;if(2===r.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===r.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1}(e)?$n({k:e.k},e.v&&{v:e.v}):t}return e};function Wn(e){return Array.isArray(e)?e.map(Xn):Xn(e)}var Yn=function(e,t){return Yn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Yn(e,t)},Zn=function(){return Zn=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},Zn.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Jn,qn;function Qn(e,t){return Kn(Zn(Zn(Zn(Zn({source:"JSX"===t.$format?e:pn(e)},(null==t?void 0:t.$context)&&{context:t.$context}),(null==t?void 0:t.$id)&&{id:t.$id}),"$maxChars"in t&&null!=t.$maxChars&&{$maxChars:Math.abs(t.$maxChars)}),{dataFormat:t.$format}))}!function(e){e.GT_REMOTE="gt-remote",e.REMOTE="remote",e.CUSTOM="custom",e.DISABLED="disabled"}(Jn||(Jn={})),function(e){e.GT="gt",e.CUSTOM="custom",e.DISABLED="disabled"}(qn||(qn={})),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="fallback-storage-adapter",t.storage={},t}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Yn(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.getItem=function(e){return this.storage[e]},t.prototype.setItem=function(e,t){this.storage[e]=t},t.prototype.removeItem=function(e){delete this.storage[e]}}(function(){});function ei({children:e}){return e}function ti(e){return ei(e)}ei._gtt="derive",ti._gtt="derive";const ri=e.createContext(void 0);function ni({children:n,locales:i,options:o={}}){const a=e.useContext(ri);if(null==n)return null;const s=a?.gt||new t.GT;let c="string"==typeof n?parseFloat(n):n;return"number"==typeof c&&(i||(i||=[],a?.locale&&i.push(a.locale),a?.defaultLocale&&i.push(a.defaultLocale)),c=s.formatNum(c,{locales:i,...o})),r.jsx(r.Fragment,{children:c})}function ii({children:e}){return r.jsx(r.Fragment,{children:e})}function oi({children:n,currency:i="USD",locales:o,options:a={}}){const s=e.useContext(ri);if(null==n)return null;const c=s?.gt||new t.GT;let l="string"==typeof n?parseFloat(n):n;return"number"==typeof l&&(o||(o||=[],s?.locale&&o.push(s.locale),s?.defaultLocale&&o.push(s.defaultLocale)),l=c.formatCurrency(l,i,{locales:o,...a})),r.jsx(r.Fragment,{children:l})}function ai({children:n,locales:i,options:o={}}){const a=e.useContext(ri);if(null==n)return null;const s=a?.gt||new t.GT;i||(i=[],a?.locale&&i.push(a.locale),a?.defaultLocale&&i.push(a.defaultLocale));const c=s.formatDateTime(n,{locales:i,...o}).replace(/[\u200F\u202B\u202E]/g,"");return r.jsx(r.Fragment,{children:c})}function si({date:n,children:i,value:o,unit:a,baseDate:s,locales:c,options:l={}}){const u=e.useContext(ri),h=u?.gt||new t.GT;c||(c=[],u?.locale&&c.push(u.locale),u?.defaultLocale&&c.push(u.defaultLocale));const f=n??i;let p;if("development"!==process.env.NODE_ENV||void 0===o||a||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==o&&a)p=h.formatRelativeTime(o,a,{locales:c,numeric:l.numeric,style:l.style,localeMatcher:l.localeMatcher});else{if(null==f)return null;p=h.formatRelativeTimeFromDate(f,{locales:c,baseDate:s??new Date,numeric:l.numeric,style:l.style,localeMatcher:l.localeMatcher})}return r.jsx(r.Fragment,{children:p})}ni._gtt="variable-number",ii._gtt="variable-variable",oi._gtt="variable-currency",ai._gtt="variable-datetime",si._gtt="variable-relative-time";var ci=function(){return ci=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},ci.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var li=function(e){console.warn(e)},ui=function(e){return'String interpolation failed for message: "'.concat(e,'".')};function hi(e,r){var n;if(!e)return e;var i=r.$_fallback,o=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=e[0];return"$id"!==t&&"$context"!==t&&"$maxChars"!==t&&"$hash"!==t&&"$_hash"!==t&&"$_source"!==t&&"$_fallback"!==t&&"$format"!==t&&"$_locales"!==t}))}(r);try{var a=function(e){if(!e.includes(on))return{};var t=1,r={};return nn({icuString:e,shouldVisit:ln,visitor:function(e){var n;r[e.value+t]=e.options.other.value.length?null===(n=e.options.other.value[0])||void 0===n?void 0:n.value:"",t+=1},options:{recurseIntoVisited:!1}}),r}(i||""),s=function(e,r,n,i){try{return t.formatMessage(e,{variables:r,locales:n,dataFormat:i})}catch(t){return li(ui(e)),e}}(Object.keys(a).length?function(e){if(!e.includes(on))return e;var t=nn({icuString:e,shouldVisit:cn,visitor:function(e){e.type=Ve.TYPE.argument,delete e.options},options:{recurseIntoVisited:!1}});return Ze.printAST(t)}(e):e,ci(ci(ci({},o),a),((n={})[on]="other",n)),r.$_locales,r.$format);return t.formatCutoff(s,{maxChars:r.$maxChars})}catch(n){return li(ui(e)),null!=i?hi(i,ci(ci({},r),{$_fallback:void 0})):t.formatCutoff(e,{maxChars:r.$maxChars})}}exports.Derive=ei,exports.Static=ti,exports.addGTIdentifier=function t(r,n=0){let i=n;function o(r){const{props:n}=r,o=(e=>{const{type:r,props:n}=e;i+=1;const o={id:i,injectionType:"manual"};let a;try{a="function"==typeof r&&r._gtt||""}catch{}if(a){const e=a.split("-");if("automatic"!==e[1]&&"automatic"!==e[2]||(o.injectionType="automatic"),"translate"===e[0]&&(e[0]="fragment"),"variable"===e[0]&&(o.variableType=e?.[1]||"variable"),"plural"===e[0]){const e=Object.entries(n).reduce((e,[r,n])=>(zr(r)&&(e[r]=t(n,i)),e),{});Object.keys(e).length&&(o.branches=e)}if("branch"===e[0]){const{children:e,branch:r,...a}=n,s=Object.fromEntries(Object.entries(a).filter(([e])=>!e.startsWith("data-"))),c=Object.entries(s).reduce((e,[r,n])=>(e[r]=t(n,i),e),{});Object.keys(c).length&&(o.branches=c)}o.transformation=e[0]}return o})(r),a={...n,"data-_gt":o};return n.children&&!o.variableType&&(a.children=s(n.children)),r.type===e.Fragment&&(a["data-_gt"].transformation="fragment"),e.cloneElement(r,a)}function a(t){return e.isValidElement(t)?o(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(r)},exports.collectUntranslatedEntries=function e(t,r,n=""){const i=[];return Object.entries(t).forEach(([t,a])=>{const s=n?`${n}.${t}`:t;if(In(a)){const{entry:e,metadata:n}=On(a);o(r,t)||i.push({source:e,metadata:{$id:s,$context:n?.$context,$maxChars:n?.$maxChars,$_hash:n?.$_hash||""}})}else i.push(...e(a,o(r,t)||(Array.isArray(a)?[]:{}),s))}),i},exports.declareStatic=fn,exports.declareVar=function(e,t){var r=un(String(null!=e?e:"")),n=" other {".concat(r,"}"),i="";if(null==t?void 0:t.$name){var o=un(t.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(on,", select,").concat(n).concat(i,"}")},exports.decodeMsg=function(e){return"string"==typeof e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e},exports.decodeOptions=function(e){if(-1===e.lastIndexOf(":"))return null;var t=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(rn(t))}catch(e){return null}},exports.decodeVars=function(e){if(!e.includes(on))return e;var t=[];nn({icuString:e,shouldVisit:ln,visitor:function(e){var r,n,i,o;t.push({start:null!==(n=null===(r=e.location)||void 0===r?void 0:r.start.offset)&&void 0!==n?n:0,end:null!==(o=null===(i=e.location)||void 0===i?void 0:i.end.offset)&&void 0!==o?o:0,value:e.options.other.value.length>0?e.options.other.value[0].value:""})},options:{recurseIntoVisited:!1,captureLocation:!0}});for(var r=0,n=[],i=0;i<t.length;i++)n.push(e.slice(r,t[i].start)),n.push(t[i].value),r=t[i].end;return r<e.length&&n.push(e.slice(r)),n.join("")},exports.defaultEnableI18nCookieName="generaltranslation.enable-i18n",exports.defaultLocaleCookieName="generaltranslation.locale",exports.defaultRegionCookieName="generaltranslation.region",exports.derive=hn,exports.flattenDictionary=function e(t,r=""){const n={};for(const i in t)if(t.hasOwnProperty(i)){const a=r?`${r}.${i}`:i;if("object"!=typeof o(t,i)||null===o(t,i)||Array.isArray(o(t,i))){if(n.hasOwnProperty(a))throw new Error(s(a));n[a]=o(t,i)}else{const r=e(o(t,i),a);for(const e in r){if(n.hasOwnProperty(e))throw new Error(s(e));n[e]=r[e]}}}return n},exports.getDefaultRenderSettings=(e="production")=>({method:"default",timeout:"development"===e?8e3:12e3}),exports.getDictionaryEntry=Tn,exports.getEntryAndMetadata=On,exports.getPluralBranch=An,exports.getSubtree=Fn,exports.getSubtreeWithCreation=function({dictionary:e,id:t,sourceDictionary:r}){if(""===t)return e;let n=e;const i=r,s=t.split(".");for(const e of s)void 0===o(n,e)&&(Array.isArray(o(i,e))?a(n,e,[]):a(n,e,{})),n=o(n,e);return n},exports.getVariableName=En,exports.getVariableProps=Pn,exports.gtFallback=function(e,t){return void 0===t&&(t={}),hi(e,t)},exports.injectAndMerge=function(e,t,r){const n=Fn({dictionary:e,id:r});if(!n)throw new Error(vn(r));if(In(n))throw new Error(`${dn} Error: Cannot inject and merge a dictionary entry`);return function(e,t,r){const n=Tn(e,r);if(!n)throw new Error(vn(r));if(In(n))throw new Error(`${dn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),s=i.slice(0,-1),c=i[i.length-1];let l=e;return s.forEach(e=>{l=o(l,e)}),a(l,c,t),e}(e,jn(n,t),r)},exports.injectEntry=zn,exports.injectFallbacks=function(e,t,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=Tn(t,a);let c;In(s)&&(c=On(s).entry);zn(c||r,t,a,e)}),t},exports.injectHashes=function e(t,r=""){let n=!1;return Object.entries(t).forEach(([i,o])=>{const s=r?`${r}.${i}`:i;if(In(o)){let{entry:e,metadata:r}=On(o);r?.$_hash||(r||={},r.$_hash=Kn({source:pn(e),...r?.$context&&{context:r.$context},...null!=r?.$maxChars&&{maxChars:Math.abs(r.$maxChars)},id:s,dataFormat:"ICU"}),a(t,i,[e,r]),n=!0)}else{const{updateDictionary:t}=e(o,s);n=n||t}}),{dictionary:t,updateDictionary:n}},exports.injectTranslations=function(e,t,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,l=Tn(t,c);let u;In(l)&&(u=On(l).entry);const h=r[i]||u;h&&(zn(h,t,c,e),o=!0)}),{dictionary:t,updateDictionary:o}},exports.isDictionaryEntry=In,exports.isValidDictionaryEntry=function(e){if("string"==typeof e)return!0;if(Array.isArray(e)){if("string"!=typeof e?.[0])return!1;const t=e?.[1];if(void 0===t)return!0;if(t&&"object"==typeof t)return!0}return!1},exports.isVariableObject=function(e){const t=e;if(t&&"object"==typeof t&&"string"==typeof t.k){const e=Object.keys(t);if(1===e.length)return!0;if(2===e.length){if("number"==typeof t.i)return!0;if("string"==typeof t.v)return!0}if(3===e.length&&"string"==typeof t.v&&"number"==typeof t.i)return!0}return!1},exports.mFallback=function(e,t){var r;if(void 0===t&&(t={}),!e)return e;var n=null!==(r=function(e){if(-1===e.lastIndexOf(":"))return null;var t=e.slice(e.lastIndexOf(":")+1);try{return JSON.parse(rn(t))}catch(e){return null}}(e))&&void 0!==r?r:{};return function(e){return!(!e.$_hash||!e.$_source)}(n)?function(e){return"string"==typeof e&&-1!==e.lastIndexOf(":")?e.slice(0,e.lastIndexOf(":")):e}(e):hi(e,t)},exports.mergeDictionaries=jn,exports.msg=function e(r,n){var i;if("string"!=typeof r)return n?r.map(function(t,r){return e(t,Zn(Zn({},n),n.$id&&{$id:"".concat(n.$id,".").concat(r)}))}):r;if(!n)return r;var o=function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var t=e[0];return"$id"!==t&&"$context"!==t&&"$maxChars"!==t&&"$hash"!==t&&"$_hash"!==t&&"$_source"!==t&&"$_fallback"!==t&&"$format"!==t&&"$_locales"!==t}))}(n),a=r;try{a=t.formatMessage(r,{locales:[Fr],variables:Zn(Zn({},o),(i={},i[on]="other",i))})}catch(n){return function(e){console.warn(e)}(function(e){return'String interpolation failed for message: "'.concat(e,'".')}(r)),r}var s=r,c=n.$_hash||Qn(r,Zn({$format:"ICU"},n)),l=Zn(Zn({},n),{$_source:s,$_hash:c}),u=function(e){if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64");for(var t=(new TextEncoder).encode(e),r="",n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}(JSON.stringify(l));return"".concat(a,":").concat(u)},exports.reactHasUse=Un,exports.removeInjectedT=function(e){return bn(e,0)},exports.renderDefaultChildren=Rn,exports.renderSkeleton=function(){return""},exports.renderTranslatedChildren=Mn,exports.renderVariable=({variableType:e,variableValue:t,variableOptions:n})=>{if("n"===e){const e=n;return r.jsx(ni,{options:e,children:t})}if("d"===e){const e=n;return r.jsx(ai,{options:e,children:t})}if("c"===e){const e=n;return r.jsx(oi,{options:e,children:t})}if("rt"===e){const e=n;if("number"==typeof t&&e?.unit)return r.jsx(si,{value:t,unit:e.unit,baseDate:e?.baseDate,options:e});const i=t instanceof Date?t:"string"==typeof t||"number"==typeof t?new Date(t):void 0;return r.jsx(si,{date:i&&!isNaN(i.getTime())?i:void 0,baseDate:e?.baseDate,options:e})}return r.jsx(ii,{children:t})},exports.stripMetadataFromEntries=function e(t){let r={};return Array.isArray(t)&&(r=[]),Object.entries(t).forEach(([t,n])=>{if(In(n)){const{entry:e}=On(n);a(r,t,e)}else a(r,t,e(n))}),r},exports.writeChildrenAsObjects=Hn;
|
|
19
19
|
//# sourceMappingURL=internal.cjs.min.cjs.map
|
|
@@ -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]),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]),h=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,T,x=this._hash.words,O=u.words,P=h.words,C=a.words,k=s.words,R=c.words,L=l.words;for(B=o=x[0],w=f=x[1],S=b=x[2],H=m=x[3],A=E=x[4],r=0;r<80;r+=1)T=o+t[e+C[r]]|0,T+=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],T=(T=_(T|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=T,T=B+t[e+k[r]]|0,T+=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],T=(T=_(T|=0,L[r]))+A|0,B=A,A=H,H=_(S,10),S=w,w=T;T=x[1]+b+H|0,x[1]=x[2]+m+A|0,x[2]=x[3]+E+B|0,x[3]=x[4]+o+w|0,x[4]=x[0]+f+S|0,x[0]=T},_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)),Xe.exports;var t}(),Ze(),function(){return Je||(Je=1,Qe.exports=(t=he(),Me(),Ze(),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,l=a.words,u=r.keySize,h=r.iterations;c.length<u;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<h;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Qe.exports;var t}(),er(),ir(),sr(),ur(),pr(),yr(),function(){return gr?_r.exports:(gr=1,_r.exports=(e=he(),ir(),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 br?mr.exports:(br=1,mr.exports=(t=he(),ir(),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 Er?Br.exports:(Er=1,Br.exports=(t=he(),ir(),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 wr?Sr.exports:(wr=1,Sr.exports=(t=he(),ir(),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 Hr||(Hr=1,Ar.exports=(t=he(),ir(),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)),Ar.exports;var t}(),function(){return Tr?xr.exports:(Tr=1,xr.exports=(t=he(),ir(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Or||(Or=1,Pr.exports=(t=he(),ir(),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)),Pr.exports;var t}(),function(){return Cr||(Cr=1,kr.exports=(t=he(),we(),Oe(),er(),ir(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],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,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,h[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]:(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^=d[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]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,l,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,u,h,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,l=t[e]^r[0],u=t[e+1]^r[1],h=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^i[h>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[p++];l=v,u=y,h=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[p++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^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)),kr.exports;var t}(),Mr(),function(){return Ir||(Ir=1,Nr.exports=(t=he(),we(),Oe(),er(),ir(),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)),Nr.exports;var t}(),function(){return Dr||(Dr=1,jr.exports=(t=he(),we(),Oe(),er(),ir(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=u,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}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)),jr.exports;var t}(),function(){return Ur||(Ur=1,Fr.exports=(t=he(),we(),Oe(),er(),ir(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=h,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=h,n[6]^=u,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}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)),Fr.exports;var t}(),$r())),se.exports),Wr=Xt(Xr),Yr="en",Zr=["singular","plural","dual","zero","one","two","few","many","other"];function Jr(t){return Zr.includes(t)}"function"==typeof SuppressedError&&SuppressedError;var Qr,qr,tn="ellipsis",en="DEFAULT_TERMINATOR_KEY",rn={ellipsis:(Qr={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},Qr[en]={terminator:"…",separator:void 0},Qr),none:(qr={},qr[en]={terminator:void 0,separator:void 0},qr)},nn=function(){function t(t,e){var r,n,i,o,a,s,c,l,u;void 0===e&&(e={});try{var h=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[Yr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Yr}catch(t){this.locale=Yr}if(!rn[null!==(r=e.style)&&void 0!==r?r:tn])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:tn));if(void 0!==e.maxChars){l=null!==(i=e.style)&&void 0!==i?i:tn;var p=new Intl.Locale(this.locale).language;u=rn[l][p]||rn[l][en]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==u?void 0:u.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==u?void 0:u.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:l,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}(),on={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:nn},an=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?Yr:o,s=n[1],c=void 0===s?{}:s,l=this._generateKey(a,c),u=null===(r=this.cache[t])||void 0===r?void 0:r[l];return void 0===u&&(u=new((e=on[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][l]=u),u},t}(),sn=new an;function cn(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 ln={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function un(t){return ln[t]}function hn(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 fn(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=_({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Ut(t,e).parse();if(r.err){var n=SyntaxError(Q[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Vt(r.val),r.val}(e,s);return l(c),c;function l(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===q.select||t.type===q.plural?Object.values(t.options).map(function(t){return t.value}).map(l):t.type===q.tag&&l(t.children))}}var pn="_gt_",dn=new RegExp("^".concat(pn,"\\d+$")),vn=new RegExp("^".concat(pn,"$"));function yn(t){var e;return t.type===qt.TYPE.select&&dn.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)===qt.TYPE.literal)}function gn(t){var e;return t.type===qt.TYPE.select&&vn.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)===qt.TYPE.literal)}function _n(t){if(!t.includes(pn))return t;var e=[];fn({icuString:t,shouldVisit:gn,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("")}function bn(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 mn(t,e){var r=bn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=bn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(pn,", select,").concat(n).concat(i,"}")}function En(t){return t}var Bn=En;function wn(t){if(!t.includes(pn))return t;var e=[];fn({icuString:t,shouldVisit:gn,visitor:function(t){var r,n,i,o,a,s,c,l;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!==(l=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==l?l: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,l=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(l,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}function Sn(t,n=0){let i=n;function o(t){const{props:r}=t,n=(t=>{const{type:e,props:r}=t;i+=1;const n={id:i,injectionType:"manual"};let o;try{o="function"==typeof e&&e._gtt||""}catch{}if(o){const t=o.split("-");if("automatic"!==t[1]&&"automatic"!==t[2]||(n.injectionType="automatic"),"translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(n.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(r).reduce((t,[e,r])=>(Jr(e)&&(t[e]=Sn(r,i)),t),{});Object.keys(t).length&&(n.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...o}=r,a=Object.fromEntries(Object.entries(o).filter(([t])=>!t.startsWith("data-"))),s=Object.entries(a).reduce((t,[e,r])=>(t[e]=Sn(r,i),t),{});Object.keys(s).length&&(n.branches=s)}n.transformation=t[0]}return n})(t),o={...r,"data-_gt":n};return r.children&&!n.variableType&&(o.children=s(r.children)),t.type===e.Fragment&&(o["data-_gt"].transformation="fragment"),e.cloneElement(t,o)}function a(t){return r(t)?o(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(t)}const Hn="@generaltranslation/react-core",An=t=>`${Hn} Error: Dictionary subtree not found for id: "${t}"`,Tn=`${Hn} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;function xn(t){return Cn(t,0)}function On(t,e){const{type:r,props:n}=t,o=function(t){const e="function"==typeof t&&"_gtt"in t?t._gtt:void 0;if(null==e||"string"!=typeof e)return;const r=e.split("-"),n=r[0],i="automatic"===r[1]||"automatic"===r[2]?"automatic":"manual";return{componentType:n,injectionType:i}}(r);if("object"!=typeof n||null===n)return t;if(o){const{componentType:r,injectionType:a}=o;if("variable"===r)return t;if("branch"===r){const r=Object.entries(n).reduce((t,[r,n])=>("branch"===r||r.startsWith("data-")?t[r]=n:t[r]=Pn(n,e),t),{});return i(t,{...r})}if("plural"===r){const r=Object.entries(n).reduce((t,[r,n])=>(Jr(r)||"children"===r?t[r]=Pn(n,e):t[r]=n,t),{});return i(t,{...r})}if("derive"===r)return i(t,{...n,..."children"in n&&{children:Cn(n.children,e+1)}});if("translate"===r&&"automatic"===a&&e>0)return"children"in n?Cn(n.children,e):void 0;"translate"===r&&"automatic"===a&&console.warn(Tn)}return i(t,{...n,..."children"in n&&{children:Cn(n.children,e)}})}function Pn(t,e){return r(t)?On(t,e):t}function Cn(t,e){return Array.isArray(t)?n.map(t,t=>Pn(t,e)):Pn(t,e)}const kn={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function Rn(t={},e){if(t.name)return t.name;return`_gt_${kn[e]||"value"}_${t["data-_gt"]?.id}`}var Ln={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const Mn=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"},In=t=>{const{props:e}=t,r={t:Mn(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=Rn(e,r),i=un(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(Ln).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]=Dn(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Dn(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(Ln).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]=Dn(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Dn(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=Dn(e.children)),r},Nn=t=>{return r=t,e.isValidElement(r)?In(t):"number"==typeof t?t.toString():t;var r};function Dn(t){return Array.isArray(t)?t.map(Nn):Nn(t)}function jn(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Zr),void 0===r&&(r=[Yr]);var n=sn.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 Un(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}function Fn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=f(r,t)}return r}function Gn(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 zn(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 $n(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:Rn(t,e),variableType:un(e),injectionType:t["data-_gt"]?.injectionType||"manual",variableValue:void 0!==t.value?t.value:void 0!==t.date?t.date: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.unit&&{unit:t.unit},...void 0!==t.baseDate&&{baseDate:t.baseDate},...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 Vn(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}function Kn(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Xn({children:t,defaultLocale:r=Yr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=Kn(t);if(zn(t.props)){const{variableType:e,variableValue:i,variableOptions:o,injectionType:a}=$n(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r],injectionType:a})}if("plural"===i?.transformation){const e=i.branches||{};return o(jn(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function Wn({sourceElement:t,targetElement:r,locales:n=[Yr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,l={};if(c&&Object.entries(Ln).forEach(([t,e])=>{c[t]&&(l[e]=c[t])}),"plural"===s){const e=t.props.n;return Yn({source:jn(e,n,a.branches||{})||t.props.children,target:jn(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return Yn({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Yn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...l,"data-_gt":void 0,children:Yn({source:o.children,target:r.c,locales:n,renderVariable:i})}):Xn({children:t,defaultLocale:n[0],renderVariable:i})}function Yn({source:t,target:r,locales:n=[Yr],renderVariable:i}){if(null==r&&t)return Xn({children:t,defaultLocale:n[0],renderVariable:i});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const o={},a={},s={},c=t.filter(t=>{if(e.isValidElement(t)){if(!zn(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n,injectionType:i}=$n(t.props);o[e]=r,a[e]=n,s[e]=i}}return!1}),l=t=>c.find(e=>{const r=Kn(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return r.map((t,r)=>{if("string"==typeof t)return u(e.Fragment,{children:t},`string_${r}`);if(cn(t))return u(e.Fragment,{children:i({variableType:t.v||"v",variableValue:o[t.k],variableOptions:a[t.k],locales:n,injectionType:s[t.k]||"manual"})},`var_${r}`);const c=l(t);return c?u(e.Fragment,{children:Wn({sourceElement:c,targetElement:t,locales:n,renderVariable:i})},`element_${r}`):null})}if(r&&"object"==typeof r&&!Array.isArray(r)){const o=cn(r)?"variable":"element";if(e.isValidElement(t)){if("element"===o)return Wn({sourceElement:t,targetElement:r,locales:n,renderVariable:i});if(zn(t.props)){const{variableValue:e,variableOptions:r,variableType:o,injectionType:a}=$n(t.props);return i({variableType:o,variableValue:e,variableOptions:r,locales:n,injectionType:a})}}}return Xn({children:t,defaultLocale:n[0],renderVariable:i})}const Zn=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3});function Jn(){return""}const Qn="generaltranslation.locale",qn="generaltranslation.region",ti="generaltranslation.enable-i18n";function ei(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 ri=t=>"string"==typeof t||Array.isArray(t),ni=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function ii(t,e){if(Array.isArray(t))return t.map((t,r)=>ei(t)?e[r]:ii(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>ri(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>ri(t)))},n=Object.entries(t).filter(([,t])=>ni(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>ni(t)).map(([t])=>t),o=new Set([...n,...i]);for(const n of o)r[n]=ii(f(t,n)||{},f(e,n)||{});return r}const oi="function"==typeof t.use;function ai({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=f(r,t);return r}function si({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,o=e.split(".");for(const t of o)void 0===f(n,t)&&(Array.isArray(f(i,t))?p(n,t,[]):p(n,t,{})),n=f(n,t);return n}const ci=["constructor","prototype","__proto__"];function li(t,e,r,n){if(ei(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!ci.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==f(e,t)&&p(e,t,Array.isArray(f(n,t))?[]:{}),e=f(e,t),n=f(n,t);p(e,i[i.length-1],t)}function ui(t){let e={};return Array.isArray(t)&&(e=[]),Object.entries(t).forEach(([t,r])=>{if(ei(r)){const{entry:n}=Gn(r);p(e,t,n)}else p(e,t,ui(r))}),e}var hi=function(){return hi=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},hi.apply(this,arguments)};function fi(t){return Wr.SHA256(t).toString(Wr.enc.Hex).slice(0,16)}function pi(t,e){var r,n=t.source,i=t.context,o=t.id,a=t.maxChars,s=t.dataFormat;void 0===e&&(e=fi),r="JSX"===s?vi(n):n;var c=hi(hi(hi(hi({source:r},o&&{id:o}),i&&{context:i}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s});return e(ae(c))}"function"==typeof SuppressedError&&SuppressedError;var di=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=vi(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],vi(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)?hi({k:t.k},t.v&&{v:t.v}):e}return t};function vi(t){return Array.isArray(t)?t.map(di):di(t)}function yi(t,e=""){let r=!1;return Object.entries(t).forEach(([n,i])=>{const o=e?`${e}.${n}`:n;if(ei(i)){let{entry:e,metadata:a}=Gn(i);a?.$_hash||(a||={},a.$_hash=pi({source:wn(e),...a?.$context&&{context:a.$context},...null!=a?.$maxChars&&{maxChars:Math.abs(a.$maxChars)},id:o,dataFormat:"ICU"}),p(t,n,[e,a]),r=!0)}else{const{updateDictionary:t}=yi(i,o);r=r||t}}),{dictionary:t,updateDictionary:r}}function gi(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,l=Fn(e,c);let u;ei(l)&&(u=Gn(l).entry);const h=r[i]||u;h&&(li(h,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}}function _i(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=Fn(e,a);let c;ei(s)&&(c=Gn(s).entry);li(c||r,e,a,t)}),e}function bi(t,e,r){const n=ai({dictionary:t,id:r});if(!n)throw new Error(An(r));if(ei(n))throw new Error(`${Hn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=Fn(t,r);if(!n)throw new Error(An(r));if(ei(n))throw new Error(`${Hn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),o=i.slice(0,-1),a=i[i.length-1];let s=t;return o.forEach(t=>{s=f(s,t)}),p(s,a,e),t}(t,ii(n,e),r)}function mi(t,e,r=""){const n=[];return Object.entries(t).forEach(([t,i])=>{const o=r?`${r}.${t}`:t;if(ei(i)){const{entry:r,metadata:a}=Gn(i);f(e,t)||n.push({source:r,metadata:{$id:o,$context:a?.$context,$maxChars:a?.$maxChars,$_hash:a?.$_hash||""}})}else n.push(...mi(i,f(e,t)||(Array.isArray(i)?[]:{}),o))}),n}var Ei=function(t,e){return Ei=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])},Ei(t,e)},Bi=function(){return Bi=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},Bi.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var wi,Si;function Hi(t,e){return pi(Bi(Bi(Bi(Bi({source:"JSX"===e.$format?t:wn(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),"$maxChars"in e&&null!=e.$maxChars&&{$maxChars:Math.abs(e.$maxChars)}),{dataFormat:e.$format}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(wi||(wi={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(Si||(Si={})),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}Ei(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 Ai(t,e){var r;if("string"!=typeof t)return e?t.map(function(t,r){return Ai(t,Bi(Bi({},e),e.$id&&{$id:"".concat(e.$id,".").concat(r)}))}):t;if(!e)return t;var n=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&&"$format"!==e&&"$_locales"!==e}))}(e),i=t;try{i=s(t,{locales:[Yr],variables:Bi(Bi({},n),(r={},r[pn]="other",r))})}catch(e){return function(t){console.warn(t)}(function(t){return'String interpolation failed for message: "'.concat(t,'".')}(t)),t}var o=t,a=e.$_hash||Hi(t,Bi({$format:"ICU"},e)),c=Bi(Bi({},e),{$_source:o,$_hash:a}),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(c));return"".concat(i,":").concat(l)}function Ti(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}function xi(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(hn(e))}catch(t){return null}}function Oi({children:t}){return t}function Pi(t){return Oi(t)}Oi._gtt="derive",Pi._gtt="derive";const Ci=o(void 0);function ki({children:t,locales:e,options:r={}}){const n=a(Ci);if(null==t)return null;const i=n?.gt||new c;let o="string"==typeof t?parseFloat(t):t;return"number"==typeof o&&(e||(e||=[],n?.locale&&e.push(n.locale),n?.defaultLocale&&e.push(n.defaultLocale)),o=i.formatNum(o,{locales:e,...r})),u(h,{children:o})}function Ri({children:t}){return u(h,{children:t})}function Li({children:t,currency:e="USD",locales:r,options:n={}}){const i=a(Ci);if(null==t)return null;const o=i?.gt||new c;let s="string"==typeof t?parseFloat(t):t;return"number"==typeof s&&(r||(r||=[],i?.locale&&r.push(i.locale),i?.defaultLocale&&r.push(i.defaultLocale)),s=o.formatCurrency(s,e,{locales:r,...n})),u(h,{children:s})}function Mi({children:t,locales:e,options:r={}}){const n=a(Ci);if(null==t)return null;const i=n?.gt||new c;e||(e=[],n?.locale&&e.push(n.locale),n?.defaultLocale&&e.push(n.defaultLocale));const o=i.formatDateTime(t,{locales:e,...r}).replace(/[\u200F\u202B\u202E]/g,"");return u(h,{children:o})}function Ii({date:t,children:e,value:r,unit:n,baseDate:i,locales:o,options:s={}}){const l=a(Ci),f=l?.gt||new c;o||(o=[],l?.locale&&o.push(l.locale),l?.defaultLocale&&o.push(l.defaultLocale));const p=t??e;let d;if("development"!==process.env.NODE_ENV||void 0===r||n||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==r&&n)d=f.formatRelativeTime(r,n,{locales:o,numeric:s.numeric,style:s.style,localeMatcher:s.localeMatcher});else{if(null==p)return null;d=f.formatRelativeTimeFromDate(p,{locales:o,baseDate:i??new Date,numeric:s.numeric,style:s.style,localeMatcher:s.localeMatcher})}return u(h,{children:d})}ki._gtt="variable-number",Ri._gtt="variable-variable",Li._gtt="variable-currency",Mi._gtt="variable-datetime",Ii._gtt="variable-relative-time";const Ni=({variableType:t,variableValue:e,variableOptions:r})=>{if("n"===t)return u(ki,{options:r,children:e});if("d"===t)return u(Mi,{options:r,children:e});if("c"===t)return u(Li,{options:r,children:e});if("rt"===t){if("number"==typeof e&&r?.unit)return u(Ii,{value:e,unit:r.unit,baseDate:r?.baseDate,options:r});const t=e instanceof Date?e:"string"==typeof e||"number"==typeof e?new Date(e):void 0;return u(Ii,{date:t&&!isNaN(t.getTime())?t:void 0,baseDate:r?.baseDate,options:r})}return u(Ri,{children:e})};var Di=function(){return Di=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},Di.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ji=function(t){console.warn(t)},Ui=function(t){return'String interpolation failed for message: "'.concat(t,'".')};function Fi(t,e){var r;if(!t)return t;var n=e.$_fallback,i=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e&&"$format"!==e&&"$_locales"!==e}))}(e);try{var o=function(t){if(!t.includes(pn))return{};var e=1,r={};return fn({icuString:t,shouldVisit:gn,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}(n||""),a=function(t,e,r,n){try{return s(t,{variables:e,locales:r,dataFormat:n})}catch(e){return ji(Ui(t)),t}}(Object.keys(o).length?function(t){if(!t.includes(pn))return t;var e=fn({icuString:t,shouldVisit:yn,visitor:function(t){t.type=qt.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return ie.printAST(e)}(t):t,Di(Di(Di({},i),o),((r={})[pn]="other",r)),e.$_locales,e.$format);return l(a,{maxChars:e.$maxChars})}catch(r){return ji(Ui(t)),null!=n?Fi(n,Di(Di({},e),{$_fallback:void 0})):l(t,{maxChars:e.$maxChars})}}var Gi=function(t,e){return void 0===e&&(e={}),Fi(t,e)},zi=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(hn(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):Fi(t,e)};export{Oi as Derive,Pi as Static,Sn as addGTIdentifier,mi as collectUntranslatedEntries,Bn as declareStatic,mn as declareVar,Ti as decodeMsg,xi as decodeOptions,_n as decodeVars,ti as defaultEnableI18nCookieName,Qn as defaultLocaleCookieName,qn as defaultRegionCookieName,En as derive,v as flattenDictionary,Zn as getDefaultRenderSettings,Fn as getDictionaryEntry,Gn as getEntryAndMetadata,jn as getPluralBranch,ai as getSubtree,si as getSubtreeWithCreation,Rn as getVariableName,$n as getVariableProps,Gi as gtFallback,bi as injectAndMerge,li as injectEntry,_i as injectFallbacks,yi as injectHashes,gi as injectTranslations,ei as isDictionaryEntry,Un as isValidDictionaryEntry,Vn as isVariableObject,zi as mFallback,ii as mergeDictionaries,Ai as msg,oi as reactHasUse,xn as removeInjectedT,Xn as renderDefaultChildren,Jn as renderSkeleton,Yn as renderTranslatedChildren,Ni as renderVariable,ui as stripMetadataFromEntries,Dn as writeChildrenAsObjects};
|
|
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]),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]),h=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,T,x=this._hash.words,O=u.words,P=h.words,C=a.words,k=s.words,R=c.words,L=l.words;for(B=o=x[0],w=f=x[1],S=b=x[2],H=m=x[3],A=E=x[4],r=0;r<80;r+=1)T=o+t[e+C[r]]|0,T+=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],T=(T=_(T|=0,R[r]))+E|0,o=E,E=m,m=_(b,10),b=f,f=T,T=B+t[e+k[r]]|0,T+=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],T=(T=_(T|=0,L[r]))+A|0,B=A,A=H,H=_(S,10),S=w,w=T;T=x[1]+b+H|0,x[1]=x[2]+m+A|0,x[2]=x[3]+E+B|0,x[3]=x[4]+o+w|0,x[4]=x[0]+f+S|0,x[0]=T},_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)),Xe.exports;var t}(),Ze(),function(){return Je||(Je=1,Qe.exports=(t=he(),Me(),Ze(),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,l=a.words,u=r.keySize,h=r.iterations;c.length<u;){var f=n.update(e).finalize(a);n.reset();for(var p=f.words,d=p.length,v=f,y=1;y<h;y++){v=n.finalize(v),n.reset();for(var g=v.words,_=0;_<d;_++)p[_]^=g[_]}o.concat(f),l[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,r){return c.create(r).compute(t,e)}}(),t.PBKDF2)),Qe.exports;var t}(),er(),ir(),sr(),ur(),pr(),yr(),function(){return gr?_r.exports:(gr=1,_r.exports=(e=he(),ir(),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 br?mr.exports:(br=1,mr.exports=(t=he(),ir(),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 Er?Br.exports:(Er=1,Br.exports=(t=he(),ir(),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 wr?Sr.exports:(wr=1,Sr.exports=(t=he(),ir(),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 Hr||(Hr=1,Ar.exports=(t=he(),ir(),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)),Ar.exports;var t}(),function(){return Tr?xr.exports:(Tr=1,xr.exports=(t=he(),ir(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Or||(Or=1,Pr.exports=(t=he(),ir(),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)),Pr.exports;var t}(),function(){return Cr||(Cr=1,kr.exports=(t=he(),we(),Oe(),er(),ir(),function(){var e=t,r=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],h=[],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,l[r]=_,_=16843009*g^65537*y^257*v^16843008*r,u[d]=_<<24|_>>>8,h[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]:(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^=d[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]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,c,l,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,u,h,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,l=t[e]^r[0],u=t[e+1]^r[1],h=t[e+2]^r[2],f=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=n[l>>>24]^i[u>>>16&255]^o[h>>>8&255]^a[255&f]^r[p++],y=n[u>>>24]^i[h>>>16&255]^o[f>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&u]^r[p++],_=n[f>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&h]^r[p++];l=v,u=y,h=g,f=_}v=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^r[p++],y=(s[u>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[p++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[p++],_=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&h])^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)),kr.exports;var t}(),Mr(),function(){return Ir||(Ir=1,Nr.exports=(t=he(),we(),Oe(),er(),ir(),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)),Nr.exports;var t}(),function(){return Dr||(Dr=1,jr.exports=(t=he(),we(),Oe(),er(),ir(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=u,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}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)),jr.exports;var t}(),function(){return Ur||(Ur=1,Fr.exports=(t=he(),we(),Oe(),er(),ir(),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],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&u,f=u<<16|65535&l;for(n[0]^=l,n[1]^=h,n[2]^=u,n[3]^=f,n[4]^=l,n[5]^=h,n[6]^=u,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,l=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^l}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)),Fr.exports;var t}(),$r())),se.exports),Wr=Xt(Xr),Yr="en",Zr=["singular","plural","dual","zero","one","two","few","many","other"];function Jr(t){return Zr.includes(t)}"function"==typeof SuppressedError&&SuppressedError;var Qr,qr,tn="ellipsis",en="DEFAULT_TERMINATOR_KEY",rn={ellipsis:(Qr={fr:{terminator:"…",separator:" "},zh:{terminator:"……",separator:void 0},ja:{terminator:"……",separator:void 0}},Qr[en]={terminator:"…",separator:void 0},Qr),none:(qr={},qr[en]={terminator:void 0,separator:void 0},qr)},nn=function(){function t(t,e){var r,n,i,o,a,s,c,l,u;void 0===e&&(e={});try{var h=t?Array.isArray(t)?t.map(function(t){return String(t)}):[String(t)]:[Yr],f=Intl.getCanonicalLocales(h);this.locale=f.length?f[0]:Yr}catch(t){this.locale=Yr}if(!rn[null!==(r=e.style)&&void 0!==r?r:tn])throw new Error(function(t){return"generaltranslation Formatting Error: Invalid cutoff style: ".concat(t,".")}(null!==(n=e.style)&&void 0!==n?n:tn));if(void 0!==e.maxChars){l=null!==(i=e.style)&&void 0!==i?i:tn;var p=new Intl.Locale(this.locale).language;u=rn[l][p]||rn[l][en]}var d=null!==(o=e.terminator)&&void 0!==o?o:null==u?void 0:u.terminator,v=null!=d?null!==(a=e.separator)&&void 0!==a?a:null==u?void 0:u.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:l,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}(),on={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:nn},an=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?Yr:o,s=n[1],c=void 0===s?{}:s,l=this._generateKey(a,c),u=null===(r=this.cache[t])||void 0===r?void 0:r[l];return void 0===u&&(u=new((e=on[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][l]=u),u},t}(),sn=new an;function cn(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 ln={variable:"v",number:"n",datetime:"d",currency:"c","relative-time":"rt"};function un(t){return ln[t]}function hn(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 fn(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=_({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new Ut(t,e).parse();if(r.err){var n=SyntaxError(Q[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||Vt(r.val),r.val}(e,s);return l(c),c;function l(t){t.map(u)}function u(t){var e=!1;r(t)&&(n(t),e=!0),e&&!a||(t.type===q.select||t.type===q.plural?Object.values(t.options).map(function(t){return t.value}).map(l):t.type===q.tag&&l(t.children))}}var pn="_gt_",dn=new RegExp("^".concat(pn,"\\d+$")),vn=new RegExp("^".concat(pn,"$"));function yn(t){var e;return t.type===qt.TYPE.select&&dn.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)===qt.TYPE.literal)}function gn(t){var e;return t.type===qt.TYPE.select&&vn.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)===qt.TYPE.literal)}function _n(t){if(!t.includes(pn))return t;var e=[];fn({icuString:t,shouldVisit:gn,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("")}function bn(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 mn(t,e){var r=bn(String(null!=t?t:"")),n=" other {".concat(r,"}"),i="";if(null==e?void 0:e.$name){var o=bn(e.$name);i=" ".concat("_gt_var_name"," {").concat(o,"}")}return"{".concat(pn,", select,").concat(n).concat(i,"}")}function En(t){return t}var Bn=En;function wn(t){if(!t.includes(pn))return t;var e=[];fn({icuString:t,shouldVisit:gn,visitor:function(t){var r,n,i,o,a,s,c,l;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!==(l=null===(c=t.options.other.location)||void 0===c?void 0:c.end.offset)&&void 0!==l?l: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,l=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(l,s)),n=s}return r.push(t.slice(n,t.length)),r.join("")}function Sn(t,n=0){let i=n;function o(t){const{props:r}=t,n=(t=>{const{type:e,props:r}=t;i+=1;const n={id:i,injectionType:"manual"};let o;try{o="function"==typeof e&&e._gtt||""}catch{}if(o){const t=o.split("-");if("automatic"!==t[1]&&"automatic"!==t[2]||(n.injectionType="automatic"),"translate"===t[0]&&(t[0]="fragment"),"variable"===t[0]&&(n.variableType=t?.[1]||"variable"),"plural"===t[0]){const t=Object.entries(r).reduce((t,[e,r])=>(Jr(e)&&(t[e]=Sn(r,i)),t),{});Object.keys(t).length&&(n.branches=t)}if("branch"===t[0]){const{children:t,branch:e,...o}=r,a=Object.fromEntries(Object.entries(o).filter(([t])=>!t.startsWith("data-"))),s=Object.entries(a).reduce((t,[e,r])=>(t[e]=Sn(r,i),t),{});Object.keys(s).length&&(n.branches=s)}n.transformation=t[0]}return n})(t),o={...r,"data-_gt":n};return r.children&&!n.variableType&&(o.children=s(r.children)),t.type===e.Fragment&&(o["data-_gt"].transformation="fragment"),e.cloneElement(t,o)}function a(t){return r(t)?o(t):t}function s(t){return Array.isArray(t)?e.Children.map(t,a):a(t)}return s(t)}const Hn="@generaltranslation/react-core",An=t=>`${Hn} Error: Dictionary subtree not found for id: "${t}"`,Tn=`${Hn} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;function xn(t){return Cn(t,0)}function On(t,e){const{type:r,props:n}=t,o=function(t){const e="function"==typeof t&&"_gtt"in t?t._gtt:void 0;if(null==e||"string"!=typeof e)return;const r=e.split("-"),n=r[0],i="automatic"===r[1]||"automatic"===r[2]?"automatic":"manual";return{componentType:n,injectionType:i}}(r);if("object"!=typeof n||null===n)return t;if(o){const{componentType:r,injectionType:a}=o;if("variable"===r)return t;if("branch"===r){const r=Object.entries(n).reduce((t,[r,n])=>("branch"===r||r.startsWith("data-")?t[r]=n:t[r]=Pn(n,e),t),{});return i(t,{...r})}if("plural"===r){const r=Object.entries(n).reduce((t,[r,n])=>(Jr(r)||"children"===r?t[r]=Pn(n,e):t[r]=n,t),{});return i(t,{...r})}if("derive"===r)return i(t,{...n,..."children"in n&&{children:Cn(n.children,e+1)}});if("translate"===r&&"automatic"===a&&e>0)return"children"in n?Cn(n.children,e):void 0;"translate"===r&&"automatic"===a&&console.warn(Tn)}return i(t,{...n,..."children"in n&&{children:Cn(n.children,e)}})}function Pn(t,e){return r(t)?On(t,e):t}function Cn(t,e){return Array.isArray(t)?n.map(t,t=>Pn(t,e)):Pn(t,e)}const kn={variable:"value",number:"n",datetime:"date",currency:"cost","relative-time":"time"};function Rn(t={},e){if(t.name)return t.name;return`_gt_${kn[e]||"value"}_${t["data-_gt"]?.id}`}var Ln={pl:"placeholder",ti:"title",alt:"alt",arl:"aria-label",arb:"aria-labelledby",ard:"aria-describedby"};const Mn=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"},In=t=>{const{props:e}=t,r={t:Mn(t)};if(e["data-_gt"]){const t=e["data-_gt"],n=t.transformation;if("variable"===n){const r=t.variableType||"variable",n=Rn(e,r),i=un(r);return{i:t.id,k:n,v:i}}r.i=t.id,r.d=((t,e,r)=>{let n=Object.entries(Ln).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]=Dn(r)}),n={...n,b:t,t:"p"}}if("branch"===t&&r){const t={};Object.entries(r).forEach(([e,r])=>{t[e]=Dn(r)}),n={...n,b:t,t:"b"}}return Object.keys(n).length?n:void 0})(n,e,t.branches);let i=Object.entries(Ln).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]=Dn(r)}),i={...i,b:e,t:"p"}}if("branch"===n&&t.branches){const e={};Object.entries(t.branches).forEach(([t,r])=>{e[t]=Dn(r)}),i={...i,b:e,t:"b"}}r.d=Object.keys(i).length?i:void 0}return e.children&&(r.c=Dn(e.children)),r},Nn=t=>{return r=t,e.isValidElement(r)?In(t):"number"==typeof t?t.toString():t;var r};function Dn(t){return Array.isArray(t)?t.map(Nn):Nn(t)}function jn(t,e,r){let n="",i=null;return"number"==typeof t&&!i&&r&&(n=function(t,e,r){void 0===e&&(e=Zr),void 0===r&&(r=[Yr]);var n=sn.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 Un(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}function Fn(t,e){let r=t;const n=e.split(".");for(const t of n){if("object"!=typeof r&&!Array.isArray(r))return;r=f(r,t)}return r}function Gn(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 zn(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 $n(t){const e=t["data-_gt"]?.variableType||"variable";return{variableName:Rn(t,e),variableType:un(e),injectionType:t["data-_gt"]?.injectionType||"manual",variableValue:void 0!==t.value?t.value:void 0!==t.date?t.date: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.unit&&{unit:t.unit},...void 0!==t.baseDate&&{baseDate:t.baseDate},...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 Vn(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}function Kn(t){return t&&t.props&&t.props["data-_gt"]?t.props["data-_gt"]:null}function Xn({children:t,defaultLocale:r=Yr,renderVariable:n}){const i=t=>e.isValidElement(t)?(t=>{const i=Kn(t);if(zn(t.props)){const{variableType:e,variableValue:i,variableOptions:o,injectionType:a}=$n(t.props);return n({variableType:e,variableValue:i,variableOptions:o,locales:[r],injectionType:a})}if("plural"===i?.transformation){const e=i.branches||{};return o(jn(t.props.n,[r],e)||t.props.children)}if("branch"===i?.transformation){let{children:e,branch:r,"data-_gt":n,...a}=t.props;return a=i.branches||{},o(void 0!==a[r]?a[r]:e)}return"fragment"===i?.transformation?e.createElement(e.Fragment,{key:t.props.key,children:o(t.props.children)}):t.props.children?e.cloneElement(t,{...t.props,"data-_gt":void 0,children:o(t.props.children)}):e.cloneElement(t,{...t.props,"data-_gt":void 0})})(t):t,o=t=>Array.isArray(t)?e.Children.map(t,i):i(t);return o(t)}function Wn({sourceElement:t,targetElement:r,locales:n=[Yr],renderVariable:i}){const{props:o}=t,a=o["data-_gt"],s=a?.transformation,c=r.d,l={};if(c&&Object.entries(Ln).forEach(([t,e])=>{c[t]&&(l[e]=c[t])}),"plural"===s){const e=t.props.n;return Yn({source:jn(e,n,a.branches||{})||t.props.children,target:jn(e,n,r.d?.b||{})||r.c,locales:n,renderVariable:i})}if("branch"===s){const{branch:t,children:e}=o;return Yn({source:(a.branches||{})[t]||e,target:(r.d?.b||{})[t]||r.c,locales:n,renderVariable:i})}return"fragment"===s&&r.c?e.createElement(e.Fragment,{key:t.props.key,children:Yn({source:o.children,target:r.c,locales:n,renderVariable:i})}):o?.children&&r?.c?e.cloneElement(t,{...o,...l,"data-_gt":void 0,children:Yn({source:o.children,target:r.c,locales:n,renderVariable:i})}):Xn({children:t,defaultLocale:n[0],renderVariable:i})}function Yn({source:t,target:r,locales:n=[Yr],renderVariable:i}){if(null==r&&t)return Xn({children:t,defaultLocale:n[0],renderVariable:i});if("string"==typeof r)return r;if(Array.isArray(r)&&!Array.isArray(t)&&t&&(t=[t]),Array.isArray(t)&&Array.isArray(r)){const o={},a={},s={},c=t.filter(t=>{if(e.isValidElement(t)){if(!zn(t.props))return!0;{const{variableName:e,variableValue:r,variableOptions:n,injectionType:i}=$n(t.props);o[e]=r,a[e]=n,s[e]=i}}return!1}),l=t=>c.find(e=>{const r=Kn(e);if(void 0!==r?.id){return r.id===t.i}return!1})||c.shift();return r.map((t,r)=>{if("string"==typeof t)return u(e.Fragment,{children:t},`string_${r}`);if(cn(t))return u(e.Fragment,{children:i({variableType:t.v||"v",variableValue:o[t.k],variableOptions:a[t.k],locales:n,injectionType:s[t.k]||"manual"})},`var_${r}`);const c=l(t);return c?u(e.Fragment,{children:Wn({sourceElement:c,targetElement:t,locales:n,renderVariable:i})},`element_${r}`):null})}if(r&&"object"==typeof r&&!Array.isArray(r)){const o=cn(r)?"variable":"element";if(e.isValidElement(t)){if("element"===o)return Wn({sourceElement:t,targetElement:r,locales:n,renderVariable:i});if(zn(t.props)){const{variableValue:e,variableOptions:r,variableType:o,injectionType:a}=$n(t.props);return i({variableType:o,variableValue:e,variableOptions:r,locales:n,injectionType:a})}}}return Xn({children:t,defaultLocale:n[0],renderVariable:i})}const Zn=(t="production")=>({method:"default",timeout:"development"===t?8e3:12e3});function Jn(){return""}const Qn="generaltranslation.locale",qn="generaltranslation.region",ti="generaltranslation.enable-i18n";function ei(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 ri=t=>"string"==typeof t||Array.isArray(t),ni=t=>"object"==typeof t&&null!==t&&!Array.isArray(t);function ii(t,e){if(Array.isArray(t))return t.map((t,r)=>ei(t)?e[r]:ii(t,e[r]));const r={...Object.fromEntries(Object.entries(t).filter(([,t])=>ri(t))),...Object.fromEntries(Object.entries(e).filter(([,t])=>ri(t)))},n=Object.entries(t).filter(([,t])=>ni(t)).map(([t])=>t),i=Object.entries(e).filter(([,t])=>ni(t)).map(([t])=>t),o=new Set([...n,...i]);for(const n of o)r[n]=ii(f(t,n)||{},f(e,n)||{});return r}const oi="function"==typeof t.use;function ai({dictionary:t,id:e}){if(""===e)return t;let r=t;const n=e.split(".");for(const t of n)r=f(r,t);return r}function si({dictionary:t,id:e,sourceDictionary:r}){if(""===e)return t;let n=t;const i=r,o=e.split(".");for(const t of o)void 0===f(n,t)&&(Array.isArray(f(i,t))?p(n,t,[]):p(n,t,{})),n=f(n,t);return n}const ci=["constructor","prototype","__proto__"];function li(t,e,r,n){if(ei(e))return t;const i=r.split(".");i.forEach(t=>{if(function(t){return!!ci.includes(t)}(t))throw new Error(`Invalid key: ${t}`)}),e||={};for(const t of i.slice(0,-1))null==f(e,t)&&p(e,t,Array.isArray(f(n,t))?[]:{}),e=f(e,t),n=f(n,t);p(e,i[i.length-1],t)}function ui(t){let e={};return Array.isArray(t)&&(e=[]),Object.entries(t).forEach(([t,r])=>{if(ei(r)){const{entry:n}=Gn(r);p(e,t,n)}else p(e,t,ui(r))}),e}var hi=function(){return hi=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},hi.apply(this,arguments)};function fi(t){return Wr.SHA256(t).toString(Wr.enc.Hex).slice(0,16)}function pi(t,e){var r,n=t.source,i=t.context,o=t.id,a=t.maxChars,s=t.dataFormat;void 0===e&&(e=fi),r="JSX"===s?vi(n):n;var c=hi(hi(hi(hi({source:r},o&&{id:o}),i&&{context:i}),null!=a&&{maxChars:Math.abs(a)}),s&&{dataFormat:s});return e(ae(c))}"function"==typeof SuppressedError&&SuppressedError;var di=function(t){if(t&&"object"==typeof t){var e={};if("c"in t&&t.c&&(e.c=vi(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],vi(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)?hi({k:t.k},t.v&&{v:t.v}):e}return t};function vi(t){return Array.isArray(t)?t.map(di):di(t)}function yi(t,e=""){let r=!1;return Object.entries(t).forEach(([n,i])=>{const o=e?`${e}.${n}`:n;if(ei(i)){let{entry:e,metadata:a}=Gn(i);a?.$_hash||(a||={},a.$_hash=pi({source:wn(e),...a?.$context&&{context:a.$context},...null!=a?.$maxChars&&{maxChars:Math.abs(a.$maxChars)},id:o,dataFormat:"ICU"}),p(t,n,[e,a]),r=!0)}else{const{updateDictionary:t}=yi(i,o);r=r||t}}),{dictionary:t,updateDictionary:r}}function gi(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,l=Fn(e,c);let u;ei(l)&&(u=Gn(l).entry);const h=r[i]||u;h&&(li(h,e,c,t),o=!0)}),{dictionary:e,updateDictionary:o}}function _i(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=Fn(e,a);let c;ei(s)&&(c=Gn(s).entry);li(c||r,e,a,t)}),e}function bi(t,e,r){const n=ai({dictionary:t,id:r});if(!n)throw new Error(An(r));if(ei(n))throw new Error(`${Hn} Error: Cannot inject and merge a dictionary entry`);return function(t,e,r){const n=Fn(t,r);if(!n)throw new Error(An(r));if(ei(n))throw new Error(`${Hn} Error: Cannot inject and merge a dictionary entry`);const i=r.split("."),o=i.slice(0,-1),a=i[i.length-1];let s=t;return o.forEach(t=>{s=f(s,t)}),p(s,a,e),t}(t,ii(n,e),r)}function mi(t,e,r=""){const n=[];return Object.entries(t).forEach(([t,i])=>{const o=r?`${r}.${t}`:t;if(ei(i)){const{entry:r,metadata:a}=Gn(i);f(e,t)||n.push({source:r,metadata:{$id:o,$context:a?.$context,$maxChars:a?.$maxChars,$_hash:a?.$_hash||""}})}else n.push(...mi(i,f(e,t)||(Array.isArray(i)?[]:{}),o))}),n}var Ei=function(t,e){return Ei=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])},Ei(t,e)},Bi=function(){return Bi=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},Bi.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var wi,Si;function Hi(t,e){return pi(Bi(Bi(Bi(Bi({source:"JSX"===e.$format?t:wn(t)},(null==e?void 0:e.$context)&&{context:e.$context}),(null==e?void 0:e.$id)&&{id:e.$id}),"$maxChars"in e&&null!=e.$maxChars&&{$maxChars:Math.abs(e.$maxChars)}),{dataFormat:e.$format}))}!function(t){t.GT_REMOTE="gt-remote",t.REMOTE="remote",t.CUSTOM="custom",t.DISABLED="disabled"}(wi||(wi={})),function(t){t.GT="gt",t.CUSTOM="custom",t.DISABLED="disabled"}(Si||(Si={})),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}Ei(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 Ai(t,e){var r;if("string"!=typeof t)return e?t.map(function(t,r){return Ai(t,Bi(Bi({},e),e.$id&&{$id:"".concat(e.$id,".").concat(r)}))}):t;if(!e)return t;var n=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&&"$format"!==e&&"$_locales"!==e}))}(e),i=t;try{i=s(t,{locales:[Yr],variables:Bi(Bi({},n),(r={},r[pn]="other",r))})}catch(e){return function(t){console.warn(t)}(function(t){return'String interpolation failed for message: "'.concat(t,'".')}(t)),t}var o=t,a=e.$_hash||Hi(t,Bi({$format:"ICU"},e)),c=Bi(Bi({},e),{$_source:o,$_hash:a}),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(c));return"".concat(i,":").concat(l)}function Ti(t){return"string"==typeof t&&-1!==t.lastIndexOf(":")?t.slice(0,t.lastIndexOf(":")):t}function xi(t){if(-1===t.lastIndexOf(":"))return null;var e=t.slice(t.lastIndexOf(":")+1);try{return JSON.parse(hn(e))}catch(t){return null}}function Oi({children:t}){return t}function Pi(t){return Oi(t)}Oi._gtt="derive",Pi._gtt="derive";const Ci=o(void 0);function ki({children:t,locales:e,options:r={}}){const n=a(Ci);if(null==t)return null;const i=n?.gt||new c;let o="string"==typeof t?parseFloat(t):t;return"number"==typeof o&&(e||(e||=[],n?.locale&&e.push(n.locale),n?.defaultLocale&&e.push(n.defaultLocale)),o=i.formatNum(o,{locales:e,...r})),u(h,{children:o})}function Ri({children:t}){return u(h,{children:t})}function Li({children:t,currency:e="USD",locales:r,options:n={}}){const i=a(Ci);if(null==t)return null;const o=i?.gt||new c;let s="string"==typeof t?parseFloat(t):t;return"number"==typeof s&&(r||(r||=[],i?.locale&&r.push(i.locale),i?.defaultLocale&&r.push(i.defaultLocale)),s=o.formatCurrency(s,e,{locales:r,...n})),u(h,{children:s})}function Mi({children:t,locales:e,options:r={}}){const n=a(Ci);if(null==t)return null;const i=n?.gt||new c;e||(e=[],n?.locale&&e.push(n.locale),n?.defaultLocale&&e.push(n.defaultLocale));const o=i.formatDateTime(t,{locales:e,...r}).replace(/[\u200F\u202B\u202E]/g,"");return u(h,{children:o})}function Ii({date:t,children:e,value:r,unit:n,baseDate:i,locales:o,options:s={}}){const l=a(Ci),f=l?.gt||new c;o||(o=[],l?.locale&&o.push(l.locale),l?.defaultLocale&&o.push(l.defaultLocale));const p=t??e;let d;if("development"!==process.env.NODE_ENV||void 0===r||n||console.warn("<RelativeTime>: `value` was provided without `unit`. The `value` prop will be ignored."),void 0!==r&&n)d=f.formatRelativeTime(r,n,{locales:o,numeric:s.numeric,style:s.style,localeMatcher:s.localeMatcher});else{if(null==p)return null;d=f.formatRelativeTimeFromDate(p,{locales:o,baseDate:i??new Date,numeric:s.numeric,style:s.style,localeMatcher:s.localeMatcher})}return u(h,{children:d})}ki._gtt="variable-number",Ri._gtt="variable-variable",Li._gtt="variable-currency",Mi._gtt="variable-datetime",Ii._gtt="variable-relative-time";const Ni=({variableType:t,variableValue:e,variableOptions:r})=>{if("n"===t){return u(ki,{options:r,children:e})}if("d"===t){return u(Mi,{options:r,children:e})}if("c"===t){return u(Li,{options:r,children:e})}if("rt"===t){const t=r;if("number"==typeof e&&t?.unit)return u(Ii,{value:e,unit:t.unit,baseDate:t?.baseDate,options:t});const n=e instanceof Date?e:"string"==typeof e||"number"==typeof e?new Date(e):void 0;return u(Ii,{date:n&&!isNaN(n.getTime())?n:void 0,baseDate:t?.baseDate,options:t})}return u(Ri,{children:e})};var Di=function(){return Di=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},Di.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var ji=function(t){console.warn(t)},Ui=function(t){return'String interpolation failed for message: "'.concat(t,'".')};function Fi(t,e){var r;if(!t)return t;var n=e.$_fallback,i=function(t){return Object.fromEntries(Object.entries(t).filter(function(t){var e=t[0];return"$id"!==e&&"$context"!==e&&"$maxChars"!==e&&"$hash"!==e&&"$_hash"!==e&&"$_source"!==e&&"$_fallback"!==e&&"$format"!==e&&"$_locales"!==e}))}(e);try{var o=function(t){if(!t.includes(pn))return{};var e=1,r={};return fn({icuString:t,shouldVisit:gn,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}(n||""),a=function(t,e,r,n){try{return s(t,{variables:e,locales:r,dataFormat:n})}catch(e){return ji(Ui(t)),t}}(Object.keys(o).length?function(t){if(!t.includes(pn))return t;var e=fn({icuString:t,shouldVisit:yn,visitor:function(t){t.type=qt.TYPE.argument,delete t.options},options:{recurseIntoVisited:!1}});return ie.printAST(e)}(t):t,Di(Di(Di({},i),o),((r={})[pn]="other",r)),e.$_locales,e.$format);return l(a,{maxChars:e.$maxChars})}catch(r){return ji(Ui(t)),null!=n?Fi(n,Di(Di({},e),{$_fallback:void 0})):l(t,{maxChars:e.$maxChars})}}var Gi=function(t,e){return void 0===e&&(e={}),Fi(t,e)},zi=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(hn(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):Fi(t,e)};export{Oi as Derive,Pi as Static,Sn as addGTIdentifier,mi as collectUntranslatedEntries,Bn as declareStatic,mn as declareVar,Ti as decodeMsg,xi as decodeOptions,_n as decodeVars,ti as defaultEnableI18nCookieName,Qn as defaultLocaleCookieName,qn as defaultRegionCookieName,En as derive,v as flattenDictionary,Zn as getDefaultRenderSettings,Fn as getDictionaryEntry,Gn as getEntryAndMetadata,jn as getPluralBranch,ai as getSubtree,si as getSubtreeWithCreation,Rn as getVariableName,$n as getVariableProps,Gi as gtFallback,bi as injectAndMerge,li as injectEntry,_i as injectFallbacks,yi as injectHashes,gi as injectTranslations,ei as isDictionaryEntry,Un as isValidDictionaryEntry,Vn as isVariableObject,zi as mFallback,ii as mergeDictionaries,Ai as msg,oi as reactHasUse,xn as removeInjectedT,Xn as renderDefaultChildren,Jn as renderSkeleton,Yn as renderTranslatedChildren,Ni as renderVariable,ui as stripMetadataFromEntries,Dn as writeChildrenAsObjects};
|
|
19
19
|
//# sourceMappingURL=internal.esm.min.mjs.map
|