@zeniai/web-cockpit-ui 1.0.55-dev → 1.0.55-prod

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.
@@ -14355,7 +14355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
14355
14355
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
14356
14356
  * derived from CryptoJS.mode.CTR
14357
14357
  * Jan Hruby jhruby.web@gmail.com
14358
- */return V.mode.CTRGladman=function(){var K=V.lib.BlockCipherMode.extend();function ee(ne){if((ne>>24&255)===255){var ae=ne>>16&255,ie=ne>>8&255,oe=ne&255;ae===255?(ae=0,ie===255?(ie=0,oe===255?oe=0:++oe):++ie):++ae,ne=0,ne+=ae<<16,ne+=ie<<8,ne+=oe}else ne+=1<<24;return ne}function te(ne){return(ne[0]=ee(ne[0]))===0&&(ne[1]=ee(ne[1])),ne}var re=K.Encryptor=K.extend({processBlock:function(ne,ae){var ie=this._cipher,oe=ie.blockSize,se=this._iv,le=this._counter;se&&(le=this._counter=se.slice(0),this._iv=void 0),te(le);var ue=le.slice(0);ie.encryptBlock(ue,0);for(var ce=0;ce<oe;ce++)ne[ae+ce]^=ue[ce]}});return K.Decryptor=re,K}(),V.mode.CTRGladman})})(modeCtrGladman);var modeOfb={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.mode.OFB=function(){var K=V.lib.BlockCipherMode.extend(),ee=K.Encryptor=K.extend({processBlock:function(te,re){var ne=this._cipher,ae=ne.blockSize,ie=this._iv,oe=this._keystream;ie&&(oe=this._keystream=ie.slice(0),this._iv=void 0),ne.encryptBlock(oe,0);for(var se=0;se<ae;se++)te[re+se]^=oe[se]}});return K.Decryptor=ee,K}(),V.mode.OFB})})(modeOfb);var modeEcb={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.mode.ECB=function(){var K=V.lib.BlockCipherMode.extend();return K.Encryptor=K.extend({processBlock:function(ee,te){this._cipher.encryptBlock(ee,te)}}),K.Decryptor=K.extend({processBlock:function(ee,te){this._cipher.decryptBlock(ee,te)}}),K}(),V.mode.ECB})})(modeEcb);var padAnsix923={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.AnsiX923={pad:function(K,ee){var te=K.sigBytes,re=ee*4,ne=re-te%re,ae=te+ne-1;K.clamp(),K.words[ae>>>2]|=ne<<24-ae%4*8,K.sigBytes+=ne},unpad:function(K){var ee=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=ee}},V.pad.Ansix923})})(padAnsix923);var padIso10126={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.Iso10126={pad:function(K,ee){var te=ee*4,re=te-K.sigBytes%te;K.concat(V.lib.WordArray.random(re-1)).concat(V.lib.WordArray.create([re<<24],1))},unpad:function(K){var ee=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=ee}},V.pad.Iso10126})})(padIso10126);var padIso97971={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.Iso97971={pad:function(K,ee){K.concat(V.lib.WordArray.create([2147483648],1)),V.pad.ZeroPadding.pad(K,ee)},unpad:function(K){V.pad.ZeroPadding.unpad(K),K.sigBytes--}},V.pad.Iso97971})})(padIso97971);var padZeropadding={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.ZeroPadding={pad:function(K,ee){var te=ee*4;K.clamp(),K.sigBytes+=te-(K.sigBytes%te||te)},unpad:function(K){for(var ee=K.words,te=K.sigBytes-1,te=K.sigBytes-1;te>=0;te--)if(ee[te>>>2]>>>24-te%4*8&255){K.sigBytes=te+1;break}}},V.pad.ZeroPadding})})(padZeropadding);var padNopadding={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.NoPadding={pad:function(){},unpad:function(){}},V.pad.NoPadding})})(padNopadding);var formatHex={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(K){var ee=V,te=ee.lib,re=te.CipherParams,ne=ee.enc,ae=ne.Hex,ie=ee.format;ie.Hex={stringify:function(oe){return oe.ciphertext.toString(ae)},parse:function(oe){var se=ae.parse(oe);return re.create({ciphertext:se})}}}(),V.format.Hex})})(formatHex);var aes={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.BlockCipher,re=K.algo,ne=[],ae=[],ie=[],oe=[],se=[],le=[],ue=[],ce=[],de=[],pe=[];(function(){for(var ge=[],me=0;me<256;me++)me<128?ge[me]=me<<1:ge[me]=me<<1^283;for(var we=0,_e=0,me=0;me<256;me++){var Ce=_e^_e<<1^_e<<2^_e<<3^_e<<4;Ce=Ce>>>8^Ce&255^99,ne[we]=Ce,ae[Ce]=we;var Oe=ge[we],Se=ge[Oe],Ee=ge[Se],Ie=ge[Ce]*257^Ce*16843008;ie[we]=Ie<<24|Ie>>>8,oe[we]=Ie<<16|Ie>>>16,se[we]=Ie<<8|Ie>>>24,le[we]=Ie;var Ie=Ee*16843009^Se*65537^Oe*257^we*16843008;ue[Ce]=Ie<<24|Ie>>>8,ce[Ce]=Ie<<16|Ie>>>16,de[Ce]=Ie<<8|Ie>>>24,pe[Ce]=Ie,we?(we=Oe^ge[ge[ge[Ee^Oe]]],_e^=ge[ge[_e]]):we=_e=1}})();var ve=[0,1,2,4,8,16,32,64,128,27,54],he=re.AES=te.extend({_doReset:function(){var ge;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var me=this._keyPriorReset=this._key,we=me.words,_e=me.sigBytes/4,Ce=this._nRounds=_e+6,Oe=(Ce+1)*4,Se=this._keySchedule=[],Ee=0;Ee<Oe;Ee++)Ee<_e?Se[Ee]=we[Ee]:(ge=Se[Ee-1],Ee%_e?_e>6&&Ee%_e==4&&(ge=ne[ge>>>24]<<24|ne[ge>>>16&255]<<16|ne[ge>>>8&255]<<8|ne[ge&255]):(ge=ge<<8|ge>>>24,ge=ne[ge>>>24]<<24|ne[ge>>>16&255]<<16|ne[ge>>>8&255]<<8|ne[ge&255],ge^=ve[Ee/_e|0]<<24),Se[Ee]=Se[Ee-_e]^ge);for(var Ie=this._invKeySchedule=[],Me=0;Me<Oe;Me++){var Ee=Oe-Me;if(Me%4)var ge=Se[Ee];else var ge=Se[Ee-4];Me<4||Ee<=4?Ie[Me]=ge:Ie[Me]=ue[ne[ge>>>24]]^ce[ne[ge>>>16&255]]^de[ne[ge>>>8&255]]^pe[ne[ge&255]]}}},encryptBlock:function(ge,me){this._doCryptBlock(ge,me,this._keySchedule,ie,oe,se,le,ne)},decryptBlock:function(ge,me){var we=ge[me+1];ge[me+1]=ge[me+3],ge[me+3]=we,this._doCryptBlock(ge,me,this._invKeySchedule,ue,ce,de,pe,ae);var we=ge[me+1];ge[me+1]=ge[me+3],ge[me+3]=we},_doCryptBlock:function(ge,me,we,_e,Ce,Oe,Se,Ee){for(var Ie=this._nRounds,Me=ge[me]^we[0],$e=ge[me+1]^we[1],be=ge[me+2]^we[2],Pe=ge[me+3]^we[3],De=4,Te=1;Te<Ie;Te++){var Re=_e[Me>>>24]^Ce[$e>>>16&255]^Oe[be>>>8&255]^Se[Pe&255]^we[De++],Be=_e[$e>>>24]^Ce[be>>>16&255]^Oe[Pe>>>8&255]^Se[Me&255]^we[De++],ke=_e[be>>>24]^Ce[Pe>>>16&255]^Oe[Me>>>8&255]^Se[$e&255]^we[De++],Fe=_e[Pe>>>24]^Ce[Me>>>16&255]^Oe[$e>>>8&255]^Se[be&255]^we[De++];Me=Re,$e=Be,be=ke,Pe=Fe}var Re=(Ee[Me>>>24]<<24|Ee[$e>>>16&255]<<16|Ee[be>>>8&255]<<8|Ee[Pe&255])^we[De++],Be=(Ee[$e>>>24]<<24|Ee[be>>>16&255]<<16|Ee[Pe>>>8&255]<<8|Ee[Me&255])^we[De++],ke=(Ee[be>>>24]<<24|Ee[Pe>>>16&255]<<16|Ee[Me>>>8&255]<<8|Ee[$e&255])^we[De++],Fe=(Ee[Pe>>>24]<<24|Ee[Me>>>16&255]<<16|Ee[$e>>>8&255]<<8|Ee[be&255])^we[De++];ge[me]=Re,ge[me+1]=Be,ge[me+2]=ke,ge[me+3]=Fe},keySize:256/32});K.AES=te._createHelper(he)}(),V.AES})})(aes);var tripledes={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.WordArray,re=ee.BlockCipher,ne=K.algo,ae=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],ie=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],oe=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],se=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],le=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],ue=ne.DES=re.extend({_doReset:function(){for(var ve=this._key,he=ve.words,ge=[],me=0;me<56;me++){var we=ae[me]-1;ge[me]=he[we>>>5]>>>31-we%32&1}for(var _e=this._subKeys=[],Ce=0;Ce<16;Ce++){for(var Oe=_e[Ce]=[],Se=oe[Ce],me=0;me<24;me++)Oe[me/6|0]|=ge[(ie[me]-1+Se)%28]<<31-me%6,Oe[4+(me/6|0)]|=ge[28+(ie[me+24]-1+Se)%28]<<31-me%6;Oe[0]=Oe[0]<<1|Oe[0]>>>31;for(var me=1;me<7;me++)Oe[me]=Oe[me]>>>(me-1)*4+3;Oe[7]=Oe[7]<<5|Oe[7]>>>27}for(var Ee=this._invSubKeys=[],me=0;me<16;me++)Ee[me]=_e[15-me]},encryptBlock:function(ve,he){this._doCryptBlock(ve,he,this._subKeys)},decryptBlock:function(ve,he){this._doCryptBlock(ve,he,this._invSubKeys)},_doCryptBlock:function(ve,he,ge){this._lBlock=ve[he],this._rBlock=ve[he+1],ce.call(this,4,252645135),ce.call(this,16,65535),de.call(this,2,858993459),de.call(this,8,16711935),ce.call(this,1,1431655765);for(var me=0;me<16;me++){for(var we=ge[me],_e=this._lBlock,Ce=this._rBlock,Oe=0,Se=0;Se<8;Se++)Oe|=se[Se][((Ce^we[Se])&le[Se])>>>0];this._lBlock=Ce,this._rBlock=_e^Oe}var Ee=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Ee,ce.call(this,1,1431655765),de.call(this,8,16711935),de.call(this,2,858993459),ce.call(this,16,65535),ce.call(this,4,252645135),ve[he]=this._lBlock,ve[he+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function ce(ve,he){var ge=(this._lBlock>>>ve^this._rBlock)&he;this._rBlock^=ge,this._lBlock^=ge<<ve}function de(ve,he){var ge=(this._rBlock>>>ve^this._lBlock)&he;this._lBlock^=ge,this._rBlock^=ge<<ve}K.DES=re._createHelper(ue);var pe=ne.TripleDES=re.extend({_doReset:function(){var ve=this._key,he=ve.words;if(he.length!==2&&he.length!==4&&he.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var ge=he.slice(0,2),me=he.length<4?he.slice(0,2):he.slice(2,4),we=he.length<6?he.slice(0,2):he.slice(4,6);this._des1=ue.createEncryptor(te.create(ge)),this._des2=ue.createEncryptor(te.create(me)),this._des3=ue.createEncryptor(te.create(we))},encryptBlock:function(ve,he){this._des1.encryptBlock(ve,he),this._des2.decryptBlock(ve,he),this._des3.encryptBlock(ve,he)},decryptBlock:function(ve,he){this._des3.decryptBlock(ve,he),this._des2.encryptBlock(ve,he),this._des1.decryptBlock(ve,he)},keySize:192/32,ivSize:64/32,blockSize:64/32});K.TripleDES=re._createHelper(pe)}(),V.TripleDES})})(tripledes);var rc4={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=re.RC4=te.extend({_doReset:function(){for(var oe=this._key,se=oe.words,le=oe.sigBytes,ue=this._S=[],ce=0;ce<256;ce++)ue[ce]=ce;for(var ce=0,de=0;ce<256;ce++){var pe=ce%le,ve=se[pe>>>2]>>>24-pe%4*8&255;de=(de+ue[ce]+ve)%256;var he=ue[ce];ue[ce]=ue[de],ue[de]=he}this._i=this._j=0},_doProcessBlock:function(oe,se){oe[se]^=ae.call(this)},keySize:256/32,ivSize:0});function ae(){for(var oe=this._S,se=this._i,le=this._j,ue=0,ce=0;ce<4;ce++){se=(se+1)%256,le=(le+oe[se])%256;var de=oe[se];oe[se]=oe[le],oe[le]=de,ue|=oe[(oe[se]+oe[le])%256]<<24-ce*8}return this._i=se,this._j=le,ue}K.RC4=te._createHelper(ne);var ie=re.RC4Drop=ne.extend({cfg:ne.cfg.extend({drop:192}),_doReset:function(){ne._doReset.call(this);for(var oe=this.cfg.drop;oe>0;oe--)ae.call(this)}});K.RC4Drop=te._createHelper(ie)}(),V.RC4})})(rc4);var rabbit={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=[],ae=[],ie=[],oe=re.Rabbit=te.extend({_doReset:function(){for(var le=this._key.words,ue=this.cfg.iv,ce=0;ce<4;ce++)le[ce]=(le[ce]<<8|le[ce]>>>24)&16711935|(le[ce]<<24|le[ce]>>>8)&4278255360;var de=this._X=[le[0],le[3]<<16|le[2]>>>16,le[1],le[0]<<16|le[3]>>>16,le[2],le[1]<<16|le[0]>>>16,le[3],le[2]<<16|le[1]>>>16],pe=this._C=[le[2]<<16|le[2]>>>16,le[0]&4294901760|le[1]&65535,le[3]<<16|le[3]>>>16,le[1]&4294901760|le[2]&65535,le[0]<<16|le[0]>>>16,le[2]&4294901760|le[3]&65535,le[1]<<16|le[1]>>>16,le[3]&4294901760|le[0]&65535];this._b=0;for(var ce=0;ce<4;ce++)se.call(this);for(var ce=0;ce<8;ce++)pe[ce]^=de[ce+4&7];if(ue){var ve=ue.words,he=ve[0],ge=ve[1],me=(he<<8|he>>>24)&16711935|(he<<24|he>>>8)&4278255360,we=(ge<<8|ge>>>24)&16711935|(ge<<24|ge>>>8)&4278255360,_e=me>>>16|we&4294901760,Ce=we<<16|me&65535;pe[0]^=me,pe[1]^=_e,pe[2]^=we,pe[3]^=Ce,pe[4]^=me,pe[5]^=_e,pe[6]^=we,pe[7]^=Ce;for(var ce=0;ce<4;ce++)se.call(this)}},_doProcessBlock:function(le,ue){var ce=this._X;se.call(this),ne[0]=ce[0]^ce[5]>>>16^ce[3]<<16,ne[1]=ce[2]^ce[7]>>>16^ce[5]<<16,ne[2]=ce[4]^ce[1]>>>16^ce[7]<<16,ne[3]=ce[6]^ce[3]>>>16^ce[1]<<16;for(var de=0;de<4;de++)ne[de]=(ne[de]<<8|ne[de]>>>24)&16711935|(ne[de]<<24|ne[de]>>>8)&4278255360,le[ue+de]^=ne[de]},blockSize:128/32,ivSize:64/32});function se(){for(var le=this._X,ue=this._C,ce=0;ce<8;ce++)ae[ce]=ue[ce];ue[0]=ue[0]+1295307597+this._b|0,ue[1]=ue[1]+3545052371+(ue[0]>>>0<ae[0]>>>0?1:0)|0,ue[2]=ue[2]+886263092+(ue[1]>>>0<ae[1]>>>0?1:0)|0,ue[3]=ue[3]+1295307597+(ue[2]>>>0<ae[2]>>>0?1:0)|0,ue[4]=ue[4]+3545052371+(ue[3]>>>0<ae[3]>>>0?1:0)|0,ue[5]=ue[5]+886263092+(ue[4]>>>0<ae[4]>>>0?1:0)|0,ue[6]=ue[6]+1295307597+(ue[5]>>>0<ae[5]>>>0?1:0)|0,ue[7]=ue[7]+3545052371+(ue[6]>>>0<ae[6]>>>0?1:0)|0,this._b=ue[7]>>>0<ae[7]>>>0?1:0;for(var ce=0;ce<8;ce++){var de=le[ce]+ue[ce],pe=de&65535,ve=de>>>16,he=((pe*pe>>>17)+pe*ve>>>15)+ve*ve,ge=((de&4294901760)*de|0)+((de&65535)*de|0);ie[ce]=he^ge}le[0]=ie[0]+(ie[7]<<16|ie[7]>>>16)+(ie[6]<<16|ie[6]>>>16)|0,le[1]=ie[1]+(ie[0]<<8|ie[0]>>>24)+ie[7]|0,le[2]=ie[2]+(ie[1]<<16|ie[1]>>>16)+(ie[0]<<16|ie[0]>>>16)|0,le[3]=ie[3]+(ie[2]<<8|ie[2]>>>24)+ie[1]|0,le[4]=ie[4]+(ie[3]<<16|ie[3]>>>16)+(ie[2]<<16|ie[2]>>>16)|0,le[5]=ie[5]+(ie[4]<<8|ie[4]>>>24)+ie[3]|0,le[6]=ie[6]+(ie[5]<<16|ie[5]>>>16)+(ie[4]<<16|ie[4]>>>16)|0,le[7]=ie[7]+(ie[6]<<8|ie[6]>>>24)+ie[5]|0}K.Rabbit=te._createHelper(oe)}(),V.Rabbit})})(rabbit);var rabbitLegacy={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=[],ae=[],ie=[],oe=re.RabbitLegacy=te.extend({_doReset:function(){var le=this._key.words,ue=this.cfg.iv,ce=this._X=[le[0],le[3]<<16|le[2]>>>16,le[1],le[0]<<16|le[3]>>>16,le[2],le[1]<<16|le[0]>>>16,le[3],le[2]<<16|le[1]>>>16],de=this._C=[le[2]<<16|le[2]>>>16,le[0]&4294901760|le[1]&65535,le[3]<<16|le[3]>>>16,le[1]&4294901760|le[2]&65535,le[0]<<16|le[0]>>>16,le[2]&4294901760|le[3]&65535,le[1]<<16|le[1]>>>16,le[3]&4294901760|le[0]&65535];this._b=0;for(var pe=0;pe<4;pe++)se.call(this);for(var pe=0;pe<8;pe++)de[pe]^=ce[pe+4&7];if(ue){var ve=ue.words,he=ve[0],ge=ve[1],me=(he<<8|he>>>24)&16711935|(he<<24|he>>>8)&4278255360,we=(ge<<8|ge>>>24)&16711935|(ge<<24|ge>>>8)&4278255360,_e=me>>>16|we&4294901760,Ce=we<<16|me&65535;de[0]^=me,de[1]^=_e,de[2]^=we,de[3]^=Ce,de[4]^=me,de[5]^=_e,de[6]^=we,de[7]^=Ce;for(var pe=0;pe<4;pe++)se.call(this)}},_doProcessBlock:function(le,ue){var ce=this._X;se.call(this),ne[0]=ce[0]^ce[5]>>>16^ce[3]<<16,ne[1]=ce[2]^ce[7]>>>16^ce[5]<<16,ne[2]=ce[4]^ce[1]>>>16^ce[7]<<16,ne[3]=ce[6]^ce[3]>>>16^ce[1]<<16;for(var de=0;de<4;de++)ne[de]=(ne[de]<<8|ne[de]>>>24)&16711935|(ne[de]<<24|ne[de]>>>8)&4278255360,le[ue+de]^=ne[de]},blockSize:128/32,ivSize:64/32});function se(){for(var le=this._X,ue=this._C,ce=0;ce<8;ce++)ae[ce]=ue[ce];ue[0]=ue[0]+1295307597+this._b|0,ue[1]=ue[1]+3545052371+(ue[0]>>>0<ae[0]>>>0?1:0)|0,ue[2]=ue[2]+886263092+(ue[1]>>>0<ae[1]>>>0?1:0)|0,ue[3]=ue[3]+1295307597+(ue[2]>>>0<ae[2]>>>0?1:0)|0,ue[4]=ue[4]+3545052371+(ue[3]>>>0<ae[3]>>>0?1:0)|0,ue[5]=ue[5]+886263092+(ue[4]>>>0<ae[4]>>>0?1:0)|0,ue[6]=ue[6]+1295307597+(ue[5]>>>0<ae[5]>>>0?1:0)|0,ue[7]=ue[7]+3545052371+(ue[6]>>>0<ae[6]>>>0?1:0)|0,this._b=ue[7]>>>0<ae[7]>>>0?1:0;for(var ce=0;ce<8;ce++){var de=le[ce]+ue[ce],pe=de&65535,ve=de>>>16,he=((pe*pe>>>17)+pe*ve>>>15)+ve*ve,ge=((de&4294901760)*de|0)+((de&65535)*de|0);ie[ce]=he^ge}le[0]=ie[0]+(ie[7]<<16|ie[7]>>>16)+(ie[6]<<16|ie[6]>>>16)|0,le[1]=ie[1]+(ie[0]<<8|ie[0]>>>24)+ie[7]|0,le[2]=ie[2]+(ie[1]<<16|ie[1]>>>16)+(ie[0]<<16|ie[0]>>>16)|0,le[3]=ie[3]+(ie[2]<<8|ie[2]>>>24)+ie[1]|0,le[4]=ie[4]+(ie[3]<<16|ie[3]>>>16)+(ie[2]<<16|ie[2]>>>16)|0,le[5]=ie[5]+(ie[4]<<8|ie[4]>>>24)+ie[3]|0,le[6]=ie[6]+(ie[5]<<16|ie[5]>>>16)+(ie[4]<<16|ie[4]>>>16)|0,le[7]=ie[7]+(ie[6]<<8|ie[6]>>>24)+ie[5]|0}K.RabbitLegacy=te._createHelper(oe)}(),V.RabbitLegacy})})(rabbitLegacy);(function($,T){(function(V,K,ee){$.exports=K(core.exports,x64Core.exports,libTypedarrays.exports,encUtf16.exports,encBase64.exports,encBase64url.exports,md5.exports,sha1.exports,sha256.exports,sha224.exports,sha512.exports,sha384.exports,sha3.exports,ripemd160.exports,hmac.exports,pbkdf2.exports,evpkdf.exports,cipherCore.exports,modeCfb.exports,modeCtr.exports,modeCtrGladman.exports,modeOfb.exports,modeEcb.exports,padAnsix923.exports,padIso10126.exports,padIso97971.exports,padZeropadding.exports,padNopadding.exports,formatHex.exports,aes.exports,tripledes.exports,rc4.exports,rabbit.exports,rabbitLegacy.exports)})(commonjsGlobal$1,function(V){return V})})(cryptoJs);var CryptoJS=cryptoJs.exports;class ZeniLocalStorage{constructor(){Zf(this,"ZENI_SESSION_ID","ZENI_SESSION_ID");Zf(this,"ZENI_SIGNED_IN_USER","ZENI_SIGNED_IN_USER");Zf(this,"ZENI_SIGNED_IN_USER_TENANTS","ZENI_SIGNED_IN_USER_TENANTS");Zf(this,"ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS","ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS");Zf(this,"ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF","ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF");Zf(this,"ZENI_THEME","ZENI_THEME");Zf(this,"ALL_IDs",[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME])}getSignedInUser(){const T=window.localStorage.getItem(this.ZENI_SESSION_ID),V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(V!=null&&T!=null)return JSON.parse(this.decrypt(V,T))}getShowNegativeAmountInParenthesis(){const T=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),V=window.localStorage.getItem(this.ZENI_SESSION_ID);return T!=null&&V!=null?JSON.parse(this.decrypt(T,V)):!1}getShowNegativeAmountInParenthesisPDF(){const T=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),V=window.localStorage.getItem(this.ZENI_SESSION_ID);return T!=null&&V!=null?JSON.parse(this.decrypt(T,V)):!0}getSignedInUserTenant(T){const V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),K=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null&&K!=null)return JSON.parse(this.decrypt(V,K)).find(te=>te.tenantEmailDomain===T)}getSignedInUserTenantWithId(T){const V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),K=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null&&K!=null)return JSON.parse(this.decrypt(V,K)).find(te=>te.tenantId===T)}saveSignedInUserWithSession(T,V){if(T==null||V==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,V),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(T),V))}saveSignedInUserTenants(T,V){const K=V!=null?V:window.localStorage.getItem(this.ZENI_SESSION_ID);K!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(T),K)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(T),V));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(T),V));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(V=>window.localStorage.getItem(V)!=null).reduce((V,K)=>V&&K)}clearAll(){this.ALL_IDs.forEach(T=>window.localStorage.removeItem(T))}setTheme(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);V!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(T,V))}getTheme(){const T=window.localStorage.getItem(this.ZENI_THEME),V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(T!=null&&V!==null)return this.decrypt(T,V)}encrypt(T,V){return CryptoJS.AES.encrypt(T,V).toString()}decrypt(T,V){return CryptoJS.AES.decrypt(T,V).toString(CryptoJS.enc.Utf8)}}const zeniLocalStorage=new ZeniLocalStorage;var _jsxFileName$b="/Users/jkzeni/Desktop/projects/zeni-web-cockpit-ui/src/ThemeContext.tsx";const defaultContextData={dark:!0,toggle:()=>{}},ThemeContext=react.exports.createContext(defaultContextData),useCustomTheme=()=>react.exports.useContext(ThemeContext),CustomThemeProvider=({children:$})=>{const T=useMediaQuery("(prefers-color-scheme: dark)"),[V,K]=react.exports.useState({dark:T});react.exports.useEffect(()=>{const re=zeniLocalStorage.getTheme()==null?T:zeniLocalStorage.getTheme()==="dark";V.dark!==re&&K({dark:re})},[V,T]);const ee=()=>{const re=!V.dark;zeniLocalStorage.setTheme(re?"dark":"light"),K(af(ys({},V),{dark:re}))},te=V.dark?darkTheme():lightTheme();return jsxDevRuntime.exports.jsxDEV(ThemeProvider$1,{theme:te,children:jsxDevRuntime.exports.jsxDEV(ThemeProvider,{theme:te,children:jsxDevRuntime.exports.jsxDEV(ThemeContext.Provider,{value:{dark:V.dark,toggle:ee},children:$},void 0,!1,{fileName:_jsxFileName$b,lineNumber:55,columnNumber:9},globalThis)},void 0,!1,{fileName:_jsxFileName$b,lineNumber:54,columnNumber:7},globalThis)},void 0,!1,{fileName:_jsxFileName$b,lineNumber:53,columnNumber:5},globalThis)},devEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis-dev.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis-dev.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis-dev.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis-dev.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis-dev.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis-dev.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis-dev.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis-dev.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis-dev.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis-dev.appspot.com"},qaEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis-qa.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis-qa.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis-qa.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis-qa.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis-qa.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis-qa.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis-qa.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis-qa.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis-qa.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis-qa.appspot.com"},prodEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis.appspot.com"},nextEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis.appspot.com"},apiEndPoints={DEV:devEndPoints,QA:qaEndPoints,PROD:prodEndPoints,NEXT:nextEndPoints},googleClientIds={DEV:"572937102766-sm70s8ldeavj4qbiqt8n23n3n78r6dql.apps.googleusercontent.com",QA:"959399103964-88rlp8mp2pn9hrckr84kuahc6tfhqpvk.apps.googleusercontent.com",PROD:"875428342208-83894brfgtr7apkoenjrgf2r1e9ptalb.apps.googleusercontent.com",NEXT:"875428342208-83894brfgtr7apkoenjrgf2r1e9ptalb.apps.googleusercontent.com"},microsoftClientIds={DEV:"28f8525d-6785-44ca-b47f-373ede4d68ce",QA:"36335217-24c8-4139-b36e-38e7578d887b",PROD:"86da2de1-a7b2-4c4c-b001-63cdff1cdc13",NEXT:"86da2de1-a7b2-4c4c-b001-63cdff1cdc13"},mixpanelTokens={DEV:"63d3a2406505a5737a2b4debdb513f20",QA:"ed1936cb971f6aad4104ddbe708f812c",PROD:"a9cfa638c9c62aa82fb38cd66d7f717e",NEXT:"a9cfa638c9c62aa82fb38cd66d7f717e"},ALL_ZENI_ENV_TYPES=["DEV","QA","PROD","NEXT"],toZeniEnv=$=>lib$5.stringToUnion($,ALL_ZENI_ENV_TYPES),currentZeniEnv=toZeniEnv("DEV"),isSandboxEnv=()=>currentZeniEnv==="DEV"||currentZeniEnv==="QA",apiEndPoint=apiEndPoints[currentZeniEnv],googleClientId=googleClientIds[currentZeniEnv],microsoftClientId=microsoftClientIds[currentZeniEnv],mixpanelToken=mixpanelTokens[currentZeniEnv];var _jsxFileName$a="/Users/jkzeni/Desktop/projects/zeni-web-cockpit-ui/src/screens/common/NotFoundScreen.tsx";function mapDispatchToProps$5($,T){return{onGoBack:()=>{T.navigate(-1)},onGoHome:()=>{T.navigate("/")}}}const NotFoundScreenConnected=connect(null,mapDispatchToProps$5)(NotFoundPage);function NotFoundScreen(){const $=useNavigate();return jsxDevRuntime.exports.jsxDEV(NotFoundScreenConnected,{navigate:$},void 0,!1,{fileName:_jsxFileName$a,lineNumber:28,columnNumber:10},this)}const DefaultKey="init-enter";function ScrollRestoration({location:$,visitedUrl:T}){const{pathname:V}=$;return react.exports.useLayoutEffect(()=>{const K=T.get(V||DefaultKey);scrollTo(K!==void 0?K:0)}),null}var ScrollRestoration$1=react.exports.memo(ScrollRestoration,($,T)=>{const{location:V,visitedUrl:K}=$,{location:ee}=T,te=V.pathname||DefaultKey,re=getScrollPage();return K.set(te,re),!((ee.pathname!==V.pathname||ee.search!==V.search)&&ee.hash==="")});const scrollTo=($=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,$)}),getScrollPage=()=>{let $=0;return document!=null&&document.documentElement!==null&&($=document.documentElement.scrollTop),window.pageYOffset||$};var Config={DEBUG:!1,LIB_VERSION:"2.42.1"},window$1;if(typeof window=="undefined"){var loc={hostname:""};window$1={navigator:{userAgent:""},document:{location:loc,referrer:""},screen:{width:0,height:0},location:loc}}else window$1=window;var ArrayProto=Array.prototype,FuncProto=Function.prototype,ObjProto=Object.prototype,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,windowConsole=window$1.console,navigator$1=window$1.navigator,document$1=window$1.document,windowOpera=window$1.opera,screen=window$1.screen,userAgent=navigator$1.userAgent,nativeBind=FuncProto.bind,nativeForEach=ArrayProto.forEach,nativeIndexOf=ArrayProto.indexOf,nativeMap=ArrayProto.map,nativeIsArray=Array.isArray,breaker={},_={trim:function($){return $.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},console$1={log:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole)try{windowConsole.log.apply(windowConsole,arguments)}catch{_.each(arguments,function(T){windowConsole.log(T)})}},warn:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel warning:"].concat(_.toArray(arguments));try{windowConsole.warn.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.warn(V)})}}},error:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.error(V)})}}},critical:function(){if(!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.error(V)})}}}},log_func_with_prefix=function($,T){return function(){return arguments[0]="["+T+"] "+arguments[0],$.apply(console$1,arguments)}},console_with_prefix=function($){return{log:log_func_with_prefix(console$1.log,$),error:log_func_with_prefix(console$1.error,$),critical:log_func_with_prefix(console$1.critical,$)}};_.bind=function($,T){var V,K;if(nativeBind&&$.bind===nativeBind)return nativeBind.apply($,slice.call(arguments,1));if(!_.isFunction($))throw new TypeError;return V=slice.call(arguments,2),K=function(){if(!(this instanceof K))return $.apply(T,V.concat(slice.call(arguments)));var ee={};ee.prototype=$.prototype;var te=new ee;ee.prototype=null;var re=$.apply(te,V.concat(slice.call(arguments)));return Object(re)===re?re:te},K};_.bind_instance_methods=function($){for(var T in $)typeof $[T]=="function"&&($[T]=_.bind($[T],$))};_.each=function($,T,V){if($!=null){if(nativeForEach&&$.forEach===nativeForEach)$.forEach(T,V);else if($.length===+$.length){for(var K=0,ee=$.length;K<ee;K++)if(K in $&&T.call(V,$[K],K,$)===breaker)return}else for(var te in $)if(hasOwnProperty.call($,te)&&T.call(V,$[te],te,$)===breaker)return}};_.escapeHTML=function($){var T=$;return T&&_.isString(T)&&(T=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),T};_.extend=function($){return _.each(slice.call(arguments,1),function(T){for(var V in T)T[V]!==void 0&&($[V]=T[V])}),$};_.isArray=nativeIsArray||function($){return toString.call($)==="[object Array]"};_.isFunction=function($){try{return/^\s*\bfunction\b/.test($)}catch{return!1}};_.isArguments=function($){return!!($&&hasOwnProperty.call($,"callee"))};_.toArray=function($){return $?$.toArray?$.toArray():_.isArray($)||_.isArguments($)?slice.call($):_.values($):[]};_.map=function($,T,V){if(nativeMap&&$.map===nativeMap)return $.map(T,V);var K=[];return _.each($,function(ee){K.push(T.call(V,ee))}),K};_.keys=function($){var T=[];return $===null||_.each($,function(V,K){T[T.length]=K}),T};_.values=function($){var T=[];return $===null||_.each($,function(V){T[T.length]=V}),T};_.include=function($,T){var V=!1;return $===null?V:nativeIndexOf&&$.indexOf===nativeIndexOf?$.indexOf(T)!=-1:(_.each($,function(K){if(V||(V=K===T))return breaker}),V)};_.includes=function($,T){return $.indexOf(T)!==-1};_.inherit=function($,T){return $.prototype=new T,$.prototype.constructor=$,$.superclass=T.prototype,$};_.isObject=function($){return $===Object($)&&!_.isArray($)};_.isEmptyObject=function($){if(_.isObject($)){for(var T in $)if(hasOwnProperty.call($,T))return!1;return!0}return!1};_.isUndefined=function($){return $===void 0};_.isString=function($){return toString.call($)=="[object String]"};_.isDate=function($){return toString.call($)=="[object Date]"};_.isNumber=function($){return toString.call($)=="[object Number]"};_.isElement=function($){return!!($&&$.nodeType===1)};_.encodeDates=function($){return _.each($,function(T,V){_.isDate(T)?$[V]=_.formatDate(T):_.isObject(T)&&($[V]=_.encodeDates(T))}),$};_.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};_.formatDate=function($){function T(V){return V<10?"0"+V:V}return $.getUTCFullYear()+"-"+T($.getUTCMonth()+1)+"-"+T($.getUTCDate())+"T"+T($.getUTCHours())+":"+T($.getUTCMinutes())+":"+T($.getUTCSeconds())};_.safewrap=function($){return function(){try{return $.apply(this,arguments)}catch(T){console$1.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Config.DEBUG&&console$1.critical(T)}}};_.safewrap_class=function($,T){for(var V=0;V<T.length;V++)$.prototype[T[V]]=_.safewrap($.prototype[T[V]])};_.safewrap_instance_methods=function($){for(var T in $)typeof $[T]=="function"&&($[T]=_.safewrap($[T]))};_.strip_empty_properties=function($){var T={};return _.each($,function(V,K){_.isString(V)&&V.length>0&&(T[K]=V)}),T};_.truncate=function($,T){var V;return typeof $=="string"?V=$.slice(0,T):_.isArray($)?(V=[],_.each($,function(K){V.push(_.truncate(K,T))})):_.isObject($)?(V={},_.each($,function(K,ee){V[ee]=_.truncate(K,T)})):V=$,V};_.JSONEncode=function(){return function($){var T=$,V=function(ee){var te=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,re={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return te.lastIndex=0,te.test(ee)?'"'+ee.replace(te,function(ne){var ae=re[ne];return typeof ae=="string"?ae:"\\u"+("0000"+ne.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ee+'"'},K=function(ee,te){var re="",ne=" ",ae=0,ie="",oe="",se=0,le=re,ue=[],ce=te[ee];switch(ce&&typeof ce=="object"&&typeof ce.toJSON=="function"&&(ce=ce.toJSON(ee)),typeof ce){case"string":return V(ce);case"number":return isFinite(ce)?String(ce):"null";case"boolean":case"null":return String(ce);case"object":if(!ce)return"null";if(re+=ne,ue=[],toString.apply(ce)==="[object Array]"){for(se=ce.length,ae=0;ae<se;ae+=1)ue[ae]=K(ae,ce)||"null";return oe=ue.length===0?"[]":re?`[
14358
+ */return V.mode.CTRGladman=function(){var K=V.lib.BlockCipherMode.extend();function ee(ne){if((ne>>24&255)===255){var ae=ne>>16&255,ie=ne>>8&255,oe=ne&255;ae===255?(ae=0,ie===255?(ie=0,oe===255?oe=0:++oe):++ie):++ae,ne=0,ne+=ae<<16,ne+=ie<<8,ne+=oe}else ne+=1<<24;return ne}function te(ne){return(ne[0]=ee(ne[0]))===0&&(ne[1]=ee(ne[1])),ne}var re=K.Encryptor=K.extend({processBlock:function(ne,ae){var ie=this._cipher,oe=ie.blockSize,se=this._iv,le=this._counter;se&&(le=this._counter=se.slice(0),this._iv=void 0),te(le);var ue=le.slice(0);ie.encryptBlock(ue,0);for(var ce=0;ce<oe;ce++)ne[ae+ce]^=ue[ce]}});return K.Decryptor=re,K}(),V.mode.CTRGladman})})(modeCtrGladman);var modeOfb={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.mode.OFB=function(){var K=V.lib.BlockCipherMode.extend(),ee=K.Encryptor=K.extend({processBlock:function(te,re){var ne=this._cipher,ae=ne.blockSize,ie=this._iv,oe=this._keystream;ie&&(oe=this._keystream=ie.slice(0),this._iv=void 0),ne.encryptBlock(oe,0);for(var se=0;se<ae;se++)te[re+se]^=oe[se]}});return K.Decryptor=ee,K}(),V.mode.OFB})})(modeOfb);var modeEcb={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.mode.ECB=function(){var K=V.lib.BlockCipherMode.extend();return K.Encryptor=K.extend({processBlock:function(ee,te){this._cipher.encryptBlock(ee,te)}}),K.Decryptor=K.extend({processBlock:function(ee,te){this._cipher.decryptBlock(ee,te)}}),K}(),V.mode.ECB})})(modeEcb);var padAnsix923={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.AnsiX923={pad:function(K,ee){var te=K.sigBytes,re=ee*4,ne=re-te%re,ae=te+ne-1;K.clamp(),K.words[ae>>>2]|=ne<<24-ae%4*8,K.sigBytes+=ne},unpad:function(K){var ee=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=ee}},V.pad.Ansix923})})(padAnsix923);var padIso10126={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.Iso10126={pad:function(K,ee){var te=ee*4,re=te-K.sigBytes%te;K.concat(V.lib.WordArray.random(re-1)).concat(V.lib.WordArray.create([re<<24],1))},unpad:function(K){var ee=K.words[K.sigBytes-1>>>2]&255;K.sigBytes-=ee}},V.pad.Iso10126})})(padIso10126);var padIso97971={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.Iso97971={pad:function(K,ee){K.concat(V.lib.WordArray.create([2147483648],1)),V.pad.ZeroPadding.pad(K,ee)},unpad:function(K){V.pad.ZeroPadding.unpad(K),K.sigBytes--}},V.pad.Iso97971})})(padIso97971);var padZeropadding={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.ZeroPadding={pad:function(K,ee){var te=ee*4;K.clamp(),K.sigBytes+=te-(K.sigBytes%te||te)},unpad:function(K){for(var ee=K.words,te=K.sigBytes-1,te=K.sigBytes-1;te>=0;te--)if(ee[te>>>2]>>>24-te%4*8&255){K.sigBytes=te+1;break}}},V.pad.ZeroPadding})})(padZeropadding);var padNopadding={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return V.pad.NoPadding={pad:function(){},unpad:function(){}},V.pad.NoPadding})})(padNopadding);var formatHex={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(K){var ee=V,te=ee.lib,re=te.CipherParams,ne=ee.enc,ae=ne.Hex,ie=ee.format;ie.Hex={stringify:function(oe){return oe.ciphertext.toString(ae)},parse:function(oe){var se=ae.parse(oe);return re.create({ciphertext:se})}}}(),V.format.Hex})})(formatHex);var aes={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.BlockCipher,re=K.algo,ne=[],ae=[],ie=[],oe=[],se=[],le=[],ue=[],ce=[],de=[],pe=[];(function(){for(var ge=[],me=0;me<256;me++)me<128?ge[me]=me<<1:ge[me]=me<<1^283;for(var we=0,_e=0,me=0;me<256;me++){var Ce=_e^_e<<1^_e<<2^_e<<3^_e<<4;Ce=Ce>>>8^Ce&255^99,ne[we]=Ce,ae[Ce]=we;var Oe=ge[we],Se=ge[Oe],Ee=ge[Se],Ie=ge[Ce]*257^Ce*16843008;ie[we]=Ie<<24|Ie>>>8,oe[we]=Ie<<16|Ie>>>16,se[we]=Ie<<8|Ie>>>24,le[we]=Ie;var Ie=Ee*16843009^Se*65537^Oe*257^we*16843008;ue[Ce]=Ie<<24|Ie>>>8,ce[Ce]=Ie<<16|Ie>>>16,de[Ce]=Ie<<8|Ie>>>24,pe[Ce]=Ie,we?(we=Oe^ge[ge[ge[Ee^Oe]]],_e^=ge[ge[_e]]):we=_e=1}})();var ve=[0,1,2,4,8,16,32,64,128,27,54],he=re.AES=te.extend({_doReset:function(){var ge;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var me=this._keyPriorReset=this._key,we=me.words,_e=me.sigBytes/4,Ce=this._nRounds=_e+6,Oe=(Ce+1)*4,Se=this._keySchedule=[],Ee=0;Ee<Oe;Ee++)Ee<_e?Se[Ee]=we[Ee]:(ge=Se[Ee-1],Ee%_e?_e>6&&Ee%_e==4&&(ge=ne[ge>>>24]<<24|ne[ge>>>16&255]<<16|ne[ge>>>8&255]<<8|ne[ge&255]):(ge=ge<<8|ge>>>24,ge=ne[ge>>>24]<<24|ne[ge>>>16&255]<<16|ne[ge>>>8&255]<<8|ne[ge&255],ge^=ve[Ee/_e|0]<<24),Se[Ee]=Se[Ee-_e]^ge);for(var Ie=this._invKeySchedule=[],Me=0;Me<Oe;Me++){var Ee=Oe-Me;if(Me%4)var ge=Se[Ee];else var ge=Se[Ee-4];Me<4||Ee<=4?Ie[Me]=ge:Ie[Me]=ue[ne[ge>>>24]]^ce[ne[ge>>>16&255]]^de[ne[ge>>>8&255]]^pe[ne[ge&255]]}}},encryptBlock:function(ge,me){this._doCryptBlock(ge,me,this._keySchedule,ie,oe,se,le,ne)},decryptBlock:function(ge,me){var we=ge[me+1];ge[me+1]=ge[me+3],ge[me+3]=we,this._doCryptBlock(ge,me,this._invKeySchedule,ue,ce,de,pe,ae);var we=ge[me+1];ge[me+1]=ge[me+3],ge[me+3]=we},_doCryptBlock:function(ge,me,we,_e,Ce,Oe,Se,Ee){for(var Ie=this._nRounds,Me=ge[me]^we[0],$e=ge[me+1]^we[1],be=ge[me+2]^we[2],Pe=ge[me+3]^we[3],De=4,Te=1;Te<Ie;Te++){var Re=_e[Me>>>24]^Ce[$e>>>16&255]^Oe[be>>>8&255]^Se[Pe&255]^we[De++],Be=_e[$e>>>24]^Ce[be>>>16&255]^Oe[Pe>>>8&255]^Se[Me&255]^we[De++],ke=_e[be>>>24]^Ce[Pe>>>16&255]^Oe[Me>>>8&255]^Se[$e&255]^we[De++],Fe=_e[Pe>>>24]^Ce[Me>>>16&255]^Oe[$e>>>8&255]^Se[be&255]^we[De++];Me=Re,$e=Be,be=ke,Pe=Fe}var Re=(Ee[Me>>>24]<<24|Ee[$e>>>16&255]<<16|Ee[be>>>8&255]<<8|Ee[Pe&255])^we[De++],Be=(Ee[$e>>>24]<<24|Ee[be>>>16&255]<<16|Ee[Pe>>>8&255]<<8|Ee[Me&255])^we[De++],ke=(Ee[be>>>24]<<24|Ee[Pe>>>16&255]<<16|Ee[Me>>>8&255]<<8|Ee[$e&255])^we[De++],Fe=(Ee[Pe>>>24]<<24|Ee[Me>>>16&255]<<16|Ee[$e>>>8&255]<<8|Ee[be&255])^we[De++];ge[me]=Re,ge[me+1]=Be,ge[me+2]=ke,ge[me+3]=Fe},keySize:256/32});K.AES=te._createHelper(he)}(),V.AES})})(aes);var tripledes={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.WordArray,re=ee.BlockCipher,ne=K.algo,ae=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],ie=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],oe=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],se=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],le=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],ue=ne.DES=re.extend({_doReset:function(){for(var ve=this._key,he=ve.words,ge=[],me=0;me<56;me++){var we=ae[me]-1;ge[me]=he[we>>>5]>>>31-we%32&1}for(var _e=this._subKeys=[],Ce=0;Ce<16;Ce++){for(var Oe=_e[Ce]=[],Se=oe[Ce],me=0;me<24;me++)Oe[me/6|0]|=ge[(ie[me]-1+Se)%28]<<31-me%6,Oe[4+(me/6|0)]|=ge[28+(ie[me+24]-1+Se)%28]<<31-me%6;Oe[0]=Oe[0]<<1|Oe[0]>>>31;for(var me=1;me<7;me++)Oe[me]=Oe[me]>>>(me-1)*4+3;Oe[7]=Oe[7]<<5|Oe[7]>>>27}for(var Ee=this._invSubKeys=[],me=0;me<16;me++)Ee[me]=_e[15-me]},encryptBlock:function(ve,he){this._doCryptBlock(ve,he,this._subKeys)},decryptBlock:function(ve,he){this._doCryptBlock(ve,he,this._invSubKeys)},_doCryptBlock:function(ve,he,ge){this._lBlock=ve[he],this._rBlock=ve[he+1],ce.call(this,4,252645135),ce.call(this,16,65535),de.call(this,2,858993459),de.call(this,8,16711935),ce.call(this,1,1431655765);for(var me=0;me<16;me++){for(var we=ge[me],_e=this._lBlock,Ce=this._rBlock,Oe=0,Se=0;Se<8;Se++)Oe|=se[Se][((Ce^we[Se])&le[Se])>>>0];this._lBlock=Ce,this._rBlock=_e^Oe}var Ee=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Ee,ce.call(this,1,1431655765),de.call(this,8,16711935),de.call(this,2,858993459),ce.call(this,16,65535),ce.call(this,4,252645135),ve[he]=this._lBlock,ve[he+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function ce(ve,he){var ge=(this._lBlock>>>ve^this._rBlock)&he;this._rBlock^=ge,this._lBlock^=ge<<ve}function de(ve,he){var ge=(this._rBlock>>>ve^this._lBlock)&he;this._lBlock^=ge,this._rBlock^=ge<<ve}K.DES=re._createHelper(ue);var pe=ne.TripleDES=re.extend({_doReset:function(){var ve=this._key,he=ve.words;if(he.length!==2&&he.length!==4&&he.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var ge=he.slice(0,2),me=he.length<4?he.slice(0,2):he.slice(2,4),we=he.length<6?he.slice(0,2):he.slice(4,6);this._des1=ue.createEncryptor(te.create(ge)),this._des2=ue.createEncryptor(te.create(me)),this._des3=ue.createEncryptor(te.create(we))},encryptBlock:function(ve,he){this._des1.encryptBlock(ve,he),this._des2.decryptBlock(ve,he),this._des3.encryptBlock(ve,he)},decryptBlock:function(ve,he){this._des3.decryptBlock(ve,he),this._des2.encryptBlock(ve,he),this._des1.decryptBlock(ve,he)},keySize:192/32,ivSize:64/32,blockSize:64/32});K.TripleDES=re._createHelper(pe)}(),V.TripleDES})})(tripledes);var rc4={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=re.RC4=te.extend({_doReset:function(){for(var oe=this._key,se=oe.words,le=oe.sigBytes,ue=this._S=[],ce=0;ce<256;ce++)ue[ce]=ce;for(var ce=0,de=0;ce<256;ce++){var pe=ce%le,ve=se[pe>>>2]>>>24-pe%4*8&255;de=(de+ue[ce]+ve)%256;var he=ue[ce];ue[ce]=ue[de],ue[de]=he}this._i=this._j=0},_doProcessBlock:function(oe,se){oe[se]^=ae.call(this)},keySize:256/32,ivSize:0});function ae(){for(var oe=this._S,se=this._i,le=this._j,ue=0,ce=0;ce<4;ce++){se=(se+1)%256,le=(le+oe[se])%256;var de=oe[se];oe[se]=oe[le],oe[le]=de,ue|=oe[(oe[se]+oe[le])%256]<<24-ce*8}return this._i=se,this._j=le,ue}K.RC4=te._createHelper(ne);var ie=re.RC4Drop=ne.extend({cfg:ne.cfg.extend({drop:192}),_doReset:function(){ne._doReset.call(this);for(var oe=this.cfg.drop;oe>0;oe--)ae.call(this)}});K.RC4Drop=te._createHelper(ie)}(),V.RC4})})(rc4);var rabbit={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=[],ae=[],ie=[],oe=re.Rabbit=te.extend({_doReset:function(){for(var le=this._key.words,ue=this.cfg.iv,ce=0;ce<4;ce++)le[ce]=(le[ce]<<8|le[ce]>>>24)&16711935|(le[ce]<<24|le[ce]>>>8)&4278255360;var de=this._X=[le[0],le[3]<<16|le[2]>>>16,le[1],le[0]<<16|le[3]>>>16,le[2],le[1]<<16|le[0]>>>16,le[3],le[2]<<16|le[1]>>>16],pe=this._C=[le[2]<<16|le[2]>>>16,le[0]&4294901760|le[1]&65535,le[3]<<16|le[3]>>>16,le[1]&4294901760|le[2]&65535,le[0]<<16|le[0]>>>16,le[2]&4294901760|le[3]&65535,le[1]<<16|le[1]>>>16,le[3]&4294901760|le[0]&65535];this._b=0;for(var ce=0;ce<4;ce++)se.call(this);for(var ce=0;ce<8;ce++)pe[ce]^=de[ce+4&7];if(ue){var ve=ue.words,he=ve[0],ge=ve[1],me=(he<<8|he>>>24)&16711935|(he<<24|he>>>8)&4278255360,we=(ge<<8|ge>>>24)&16711935|(ge<<24|ge>>>8)&4278255360,_e=me>>>16|we&4294901760,Ce=we<<16|me&65535;pe[0]^=me,pe[1]^=_e,pe[2]^=we,pe[3]^=Ce,pe[4]^=me,pe[5]^=_e,pe[6]^=we,pe[7]^=Ce;for(var ce=0;ce<4;ce++)se.call(this)}},_doProcessBlock:function(le,ue){var ce=this._X;se.call(this),ne[0]=ce[0]^ce[5]>>>16^ce[3]<<16,ne[1]=ce[2]^ce[7]>>>16^ce[5]<<16,ne[2]=ce[4]^ce[1]>>>16^ce[7]<<16,ne[3]=ce[6]^ce[3]>>>16^ce[1]<<16;for(var de=0;de<4;de++)ne[de]=(ne[de]<<8|ne[de]>>>24)&16711935|(ne[de]<<24|ne[de]>>>8)&4278255360,le[ue+de]^=ne[de]},blockSize:128/32,ivSize:64/32});function se(){for(var le=this._X,ue=this._C,ce=0;ce<8;ce++)ae[ce]=ue[ce];ue[0]=ue[0]+1295307597+this._b|0,ue[1]=ue[1]+3545052371+(ue[0]>>>0<ae[0]>>>0?1:0)|0,ue[2]=ue[2]+886263092+(ue[1]>>>0<ae[1]>>>0?1:0)|0,ue[3]=ue[3]+1295307597+(ue[2]>>>0<ae[2]>>>0?1:0)|0,ue[4]=ue[4]+3545052371+(ue[3]>>>0<ae[3]>>>0?1:0)|0,ue[5]=ue[5]+886263092+(ue[4]>>>0<ae[4]>>>0?1:0)|0,ue[6]=ue[6]+1295307597+(ue[5]>>>0<ae[5]>>>0?1:0)|0,ue[7]=ue[7]+3545052371+(ue[6]>>>0<ae[6]>>>0?1:0)|0,this._b=ue[7]>>>0<ae[7]>>>0?1:0;for(var ce=0;ce<8;ce++){var de=le[ce]+ue[ce],pe=de&65535,ve=de>>>16,he=((pe*pe>>>17)+pe*ve>>>15)+ve*ve,ge=((de&4294901760)*de|0)+((de&65535)*de|0);ie[ce]=he^ge}le[0]=ie[0]+(ie[7]<<16|ie[7]>>>16)+(ie[6]<<16|ie[6]>>>16)|0,le[1]=ie[1]+(ie[0]<<8|ie[0]>>>24)+ie[7]|0,le[2]=ie[2]+(ie[1]<<16|ie[1]>>>16)+(ie[0]<<16|ie[0]>>>16)|0,le[3]=ie[3]+(ie[2]<<8|ie[2]>>>24)+ie[1]|0,le[4]=ie[4]+(ie[3]<<16|ie[3]>>>16)+(ie[2]<<16|ie[2]>>>16)|0,le[5]=ie[5]+(ie[4]<<8|ie[4]>>>24)+ie[3]|0,le[6]=ie[6]+(ie[5]<<16|ie[5]>>>16)+(ie[4]<<16|ie[4]>>>16)|0,le[7]=ie[7]+(ie[6]<<8|ie[6]>>>24)+ie[5]|0}K.Rabbit=te._createHelper(oe)}(),V.Rabbit})})(rabbit);var rabbitLegacy={exports:{}};(function($,T){(function(V,K,ee){$.exports=K(core.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal$1,function(V){return function(){var K=V,ee=K.lib,te=ee.StreamCipher,re=K.algo,ne=[],ae=[],ie=[],oe=re.RabbitLegacy=te.extend({_doReset:function(){var le=this._key.words,ue=this.cfg.iv,ce=this._X=[le[0],le[3]<<16|le[2]>>>16,le[1],le[0]<<16|le[3]>>>16,le[2],le[1]<<16|le[0]>>>16,le[3],le[2]<<16|le[1]>>>16],de=this._C=[le[2]<<16|le[2]>>>16,le[0]&4294901760|le[1]&65535,le[3]<<16|le[3]>>>16,le[1]&4294901760|le[2]&65535,le[0]<<16|le[0]>>>16,le[2]&4294901760|le[3]&65535,le[1]<<16|le[1]>>>16,le[3]&4294901760|le[0]&65535];this._b=0;for(var pe=0;pe<4;pe++)se.call(this);for(var pe=0;pe<8;pe++)de[pe]^=ce[pe+4&7];if(ue){var ve=ue.words,he=ve[0],ge=ve[1],me=(he<<8|he>>>24)&16711935|(he<<24|he>>>8)&4278255360,we=(ge<<8|ge>>>24)&16711935|(ge<<24|ge>>>8)&4278255360,_e=me>>>16|we&4294901760,Ce=we<<16|me&65535;de[0]^=me,de[1]^=_e,de[2]^=we,de[3]^=Ce,de[4]^=me,de[5]^=_e,de[6]^=we,de[7]^=Ce;for(var pe=0;pe<4;pe++)se.call(this)}},_doProcessBlock:function(le,ue){var ce=this._X;se.call(this),ne[0]=ce[0]^ce[5]>>>16^ce[3]<<16,ne[1]=ce[2]^ce[7]>>>16^ce[5]<<16,ne[2]=ce[4]^ce[1]>>>16^ce[7]<<16,ne[3]=ce[6]^ce[3]>>>16^ce[1]<<16;for(var de=0;de<4;de++)ne[de]=(ne[de]<<8|ne[de]>>>24)&16711935|(ne[de]<<24|ne[de]>>>8)&4278255360,le[ue+de]^=ne[de]},blockSize:128/32,ivSize:64/32});function se(){for(var le=this._X,ue=this._C,ce=0;ce<8;ce++)ae[ce]=ue[ce];ue[0]=ue[0]+1295307597+this._b|0,ue[1]=ue[1]+3545052371+(ue[0]>>>0<ae[0]>>>0?1:0)|0,ue[2]=ue[2]+886263092+(ue[1]>>>0<ae[1]>>>0?1:0)|0,ue[3]=ue[3]+1295307597+(ue[2]>>>0<ae[2]>>>0?1:0)|0,ue[4]=ue[4]+3545052371+(ue[3]>>>0<ae[3]>>>0?1:0)|0,ue[5]=ue[5]+886263092+(ue[4]>>>0<ae[4]>>>0?1:0)|0,ue[6]=ue[6]+1295307597+(ue[5]>>>0<ae[5]>>>0?1:0)|0,ue[7]=ue[7]+3545052371+(ue[6]>>>0<ae[6]>>>0?1:0)|0,this._b=ue[7]>>>0<ae[7]>>>0?1:0;for(var ce=0;ce<8;ce++){var de=le[ce]+ue[ce],pe=de&65535,ve=de>>>16,he=((pe*pe>>>17)+pe*ve>>>15)+ve*ve,ge=((de&4294901760)*de|0)+((de&65535)*de|0);ie[ce]=he^ge}le[0]=ie[0]+(ie[7]<<16|ie[7]>>>16)+(ie[6]<<16|ie[6]>>>16)|0,le[1]=ie[1]+(ie[0]<<8|ie[0]>>>24)+ie[7]|0,le[2]=ie[2]+(ie[1]<<16|ie[1]>>>16)+(ie[0]<<16|ie[0]>>>16)|0,le[3]=ie[3]+(ie[2]<<8|ie[2]>>>24)+ie[1]|0,le[4]=ie[4]+(ie[3]<<16|ie[3]>>>16)+(ie[2]<<16|ie[2]>>>16)|0,le[5]=ie[5]+(ie[4]<<8|ie[4]>>>24)+ie[3]|0,le[6]=ie[6]+(ie[5]<<16|ie[5]>>>16)+(ie[4]<<16|ie[4]>>>16)|0,le[7]=ie[7]+(ie[6]<<8|ie[6]>>>24)+ie[5]|0}K.RabbitLegacy=te._createHelper(oe)}(),V.RabbitLegacy})})(rabbitLegacy);(function($,T){(function(V,K,ee){$.exports=K(core.exports,x64Core.exports,libTypedarrays.exports,encUtf16.exports,encBase64.exports,encBase64url.exports,md5.exports,sha1.exports,sha256.exports,sha224.exports,sha512.exports,sha384.exports,sha3.exports,ripemd160.exports,hmac.exports,pbkdf2.exports,evpkdf.exports,cipherCore.exports,modeCfb.exports,modeCtr.exports,modeCtrGladman.exports,modeOfb.exports,modeEcb.exports,padAnsix923.exports,padIso10126.exports,padIso97971.exports,padZeropadding.exports,padNopadding.exports,formatHex.exports,aes.exports,tripledes.exports,rc4.exports,rabbit.exports,rabbitLegacy.exports)})(commonjsGlobal$1,function(V){return V})})(cryptoJs);var CryptoJS=cryptoJs.exports;class ZeniLocalStorage{constructor(){Zf(this,"ZENI_SESSION_ID","ZENI_SESSION_ID");Zf(this,"ZENI_SIGNED_IN_USER","ZENI_SIGNED_IN_USER");Zf(this,"ZENI_SIGNED_IN_USER_TENANTS","ZENI_SIGNED_IN_USER_TENANTS");Zf(this,"ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS","ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS");Zf(this,"ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF","ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF");Zf(this,"ZENI_THEME","ZENI_THEME");Zf(this,"ALL_IDs",[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.ZENI_SIGNED_IN_USER_TENANTS,this.ZENI_THEME])}getSignedInUser(){const T=window.localStorage.getItem(this.ZENI_SESSION_ID),V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER);if(V!=null&&T!=null)return JSON.parse(this.decrypt(V,T))}getShowNegativeAmountInParenthesis(){const T=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS),V=window.localStorage.getItem(this.ZENI_SESSION_ID);return T!=null&&V!=null?JSON.parse(this.decrypt(T,V)):!1}getShowNegativeAmountInParenthesisPDF(){const T=window.localStorage.getItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF),V=window.localStorage.getItem(this.ZENI_SESSION_ID);return T!=null&&V!=null?JSON.parse(this.decrypt(T,V)):!0}getSignedInUserTenant(T){const V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),K=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null&&K!=null)return JSON.parse(this.decrypt(V,K)).find(te=>te.tenantEmailDomain===T)}getSignedInUserTenantWithId(T){const V=window.localStorage.getItem(this.ZENI_SIGNED_IN_USER_TENANTS),K=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null&&K!=null)return JSON.parse(this.decrypt(V,K)).find(te=>te.tenantId===T)}saveSignedInUserWithSession(T,V){if(T==null||V==null)throw new Error("Can't accept nil for user or session Id");window.localStorage.setItem(this.ZENI_SESSION_ID,V),window.localStorage.setItem(this.ZENI_SIGNED_IN_USER,this.encrypt(JSON.stringify(T),V))}saveSignedInUserTenants(T,V){const K=V!=null?V:window.localStorage.getItem(this.ZENI_SESSION_ID);K!=null?window.localStorage.setItem(this.ZENI_SIGNED_IN_USER_TENANTS,this.encrypt(JSON.stringify(T),K)):console.warn("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesis(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS,this.encrypt(JSON.stringify(T),V));else throw new Error("Can't update the setting when the user is logged out!")}saveShowNegativeAmountInParenthesisPDF(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(V!=null)window.localStorage.setItem(this.ZENI_SHOW_NEGATIVE_AMOUNT_IN_PARENTHESIS_PDF,this.encrypt(JSON.stringify(T),V));else throw new Error("Can't update the setting when the user is logged out!")}isSignedIn(){return[this.ZENI_SESSION_ID,this.ZENI_SIGNED_IN_USER].map(V=>window.localStorage.getItem(V)!=null).reduce((V,K)=>V&&K)}clearAll(){this.ALL_IDs.forEach(T=>window.localStorage.removeItem(T))}setTheme(T){const V=window.localStorage.getItem(this.ZENI_SESSION_ID);V!=null&&window.localStorage.setItem(this.ZENI_THEME,this.encrypt(T,V))}getTheme(){const T=window.localStorage.getItem(this.ZENI_THEME),V=window.localStorage.getItem(this.ZENI_SESSION_ID);if(T!=null&&V!==null)return this.decrypt(T,V)}encrypt(T,V){return CryptoJS.AES.encrypt(T,V).toString()}decrypt(T,V){return CryptoJS.AES.decrypt(T,V).toString(CryptoJS.enc.Utf8)}}const zeniLocalStorage=new ZeniLocalStorage;var _jsxFileName$b="/Users/jkzeni/Desktop/projects/zeni-web-cockpit-ui/src/ThemeContext.tsx";const defaultContextData={dark:!0,toggle:()=>{}},ThemeContext=react.exports.createContext(defaultContextData),useCustomTheme=()=>react.exports.useContext(ThemeContext),CustomThemeProvider=({children:$})=>{const T=useMediaQuery("(prefers-color-scheme: dark)"),[V,K]=react.exports.useState({dark:T});react.exports.useEffect(()=>{const re=zeniLocalStorage.getTheme()==null?T:zeniLocalStorage.getTheme()==="dark";V.dark!==re&&K({dark:re})},[V,T]);const ee=()=>{const re=!V.dark;zeniLocalStorage.setTheme(re?"dark":"light"),K(af(ys({},V),{dark:re}))},te=V.dark?darkTheme():lightTheme();return jsxDevRuntime.exports.jsxDEV(ThemeProvider$1,{theme:te,children:jsxDevRuntime.exports.jsxDEV(ThemeProvider,{theme:te,children:jsxDevRuntime.exports.jsxDEV(ThemeContext.Provider,{value:{dark:V.dark,toggle:ee},children:$},void 0,!1,{fileName:_jsxFileName$b,lineNumber:55,columnNumber:9},globalThis)},void 0,!1,{fileName:_jsxFileName$b,lineNumber:54,columnNumber:7},globalThis)},void 0,!1,{fileName:_jsxFileName$b,lineNumber:53,columnNumber:5},globalThis)},devEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis-dev.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis-dev.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis-dev.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis-dev.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis-dev.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis-dev.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis-dev.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis-dev.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis-dev.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis-dev.appspot.com"},qaEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis-qa.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis-qa.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis-qa.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis-qa.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis-qa.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis-qa.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis-qa.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis-qa.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis-qa.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis-qa.appspot.com"},prodEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis.appspot.com"},nextEndPoints={authMicroServiceBaseUrl:"https://auth-dot-zeni-apis.appspot.com",noAuthMicroServiceBaseUrl:"https://noauth-dot-zeni-apis.appspot.com",tenantMicroServiceBaseUrl:"https://tenant-dot-zeni-apis.appspot.com",accountMicroServiceBaseUrl:"https://accounting-dot-zeni-apis.appspot.com",insightsMicroServiceBaseUrl:"https://insights-dot-zeni-apis.appspot.com",searchMicroServiceBaseUrl:"https://search-dot-zeni-apis.appspot.com",payMicroServiceBaseUrl:"https://pay-dot-zeni-apis.appspot.com",fileMicroServiceBaseUrl:"https://files-dot-zeni-apis.appspot.com",documentAIMicroServiceBaseUrl:"https://document-ai-dot-zeni-apis.uc.r.appspot.com",approvalMicroServiceBaseUrl:"https://approval-dot-zeni-apis.appspot.com"},apiEndPoints={DEV:devEndPoints,QA:qaEndPoints,PROD:prodEndPoints,NEXT:nextEndPoints},googleClientIds={DEV:"572937102766-sm70s8ldeavj4qbiqt8n23n3n78r6dql.apps.googleusercontent.com",QA:"959399103964-88rlp8mp2pn9hrckr84kuahc6tfhqpvk.apps.googleusercontent.com",PROD:"875428342208-83894brfgtr7apkoenjrgf2r1e9ptalb.apps.googleusercontent.com",NEXT:"875428342208-83894brfgtr7apkoenjrgf2r1e9ptalb.apps.googleusercontent.com"},microsoftClientIds={DEV:"28f8525d-6785-44ca-b47f-373ede4d68ce",QA:"36335217-24c8-4139-b36e-38e7578d887b",PROD:"86da2de1-a7b2-4c4c-b001-63cdff1cdc13",NEXT:"86da2de1-a7b2-4c4c-b001-63cdff1cdc13"},mixpanelTokens={DEV:"63d3a2406505a5737a2b4debdb513f20",QA:"ed1936cb971f6aad4104ddbe708f812c",PROD:"a9cfa638c9c62aa82fb38cd66d7f717e",NEXT:"a9cfa638c9c62aa82fb38cd66d7f717e"},ALL_ZENI_ENV_TYPES=["DEV","QA","PROD","NEXT"],toZeniEnv=$=>lib$5.stringToUnion($,ALL_ZENI_ENV_TYPES),currentZeniEnv=toZeniEnv("PROD"),isSandboxEnv=()=>currentZeniEnv==="DEV"||currentZeniEnv==="QA",apiEndPoint=apiEndPoints[currentZeniEnv],googleClientId=googleClientIds[currentZeniEnv],microsoftClientId=microsoftClientIds[currentZeniEnv],mixpanelToken=mixpanelTokens[currentZeniEnv];var _jsxFileName$a="/Users/jkzeni/Desktop/projects/zeni-web-cockpit-ui/src/screens/common/NotFoundScreen.tsx";function mapDispatchToProps$5($,T){return{onGoBack:()=>{T.navigate(-1)},onGoHome:()=>{T.navigate("/")}}}const NotFoundScreenConnected=connect(null,mapDispatchToProps$5)(NotFoundPage);function NotFoundScreen(){const $=useNavigate();return jsxDevRuntime.exports.jsxDEV(NotFoundScreenConnected,{navigate:$},void 0,!1,{fileName:_jsxFileName$a,lineNumber:28,columnNumber:10},this)}const DefaultKey="init-enter";function ScrollRestoration({location:$,visitedUrl:T}){const{pathname:V}=$;return react.exports.useLayoutEffect(()=>{const K=T.get(V||DefaultKey);scrollTo(K!==void 0?K:0)}),null}var ScrollRestoration$1=react.exports.memo(ScrollRestoration,($,T)=>{const{location:V,visitedUrl:K}=$,{location:ee}=T,te=V.pathname||DefaultKey,re=getScrollPage();return K.set(te,re),!((ee.pathname!==V.pathname||ee.search!==V.search)&&ee.hash==="")});const scrollTo=($=0)=>window.requestAnimationFrame(()=>{window.scrollTo(0,$)}),getScrollPage=()=>{let $=0;return document!=null&&document.documentElement!==null&&($=document.documentElement.scrollTop),window.pageYOffset||$};var Config={DEBUG:!1,LIB_VERSION:"2.42.1"},window$1;if(typeof window=="undefined"){var loc={hostname:""};window$1={navigator:{userAgent:""},document:{location:loc,referrer:""},screen:{width:0,height:0},location:loc}}else window$1=window;var ArrayProto=Array.prototype,FuncProto=Function.prototype,ObjProto=Object.prototype,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,windowConsole=window$1.console,navigator$1=window$1.navigator,document$1=window$1.document,windowOpera=window$1.opera,screen=window$1.screen,userAgent=navigator$1.userAgent,nativeBind=FuncProto.bind,nativeForEach=ArrayProto.forEach,nativeIndexOf=ArrayProto.indexOf,nativeMap=ArrayProto.map,nativeIsArray=Array.isArray,breaker={},_={trim:function($){return $.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},console$1={log:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole)try{windowConsole.log.apply(windowConsole,arguments)}catch{_.each(arguments,function(T){windowConsole.log(T)})}},warn:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel warning:"].concat(_.toArray(arguments));try{windowConsole.warn.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.warn(V)})}}},error:function(){if(Config.DEBUG&&!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.error(V)})}}},critical:function(){if(!_.isUndefined(windowConsole)&&windowConsole){var $=["Mixpanel error:"].concat(_.toArray(arguments));try{windowConsole.error.apply(windowConsole,$)}catch{_.each($,function(V){windowConsole.error(V)})}}}},log_func_with_prefix=function($,T){return function(){return arguments[0]="["+T+"] "+arguments[0],$.apply(console$1,arguments)}},console_with_prefix=function($){return{log:log_func_with_prefix(console$1.log,$),error:log_func_with_prefix(console$1.error,$),critical:log_func_with_prefix(console$1.critical,$)}};_.bind=function($,T){var V,K;if(nativeBind&&$.bind===nativeBind)return nativeBind.apply($,slice.call(arguments,1));if(!_.isFunction($))throw new TypeError;return V=slice.call(arguments,2),K=function(){if(!(this instanceof K))return $.apply(T,V.concat(slice.call(arguments)));var ee={};ee.prototype=$.prototype;var te=new ee;ee.prototype=null;var re=$.apply(te,V.concat(slice.call(arguments)));return Object(re)===re?re:te},K};_.bind_instance_methods=function($){for(var T in $)typeof $[T]=="function"&&($[T]=_.bind($[T],$))};_.each=function($,T,V){if($!=null){if(nativeForEach&&$.forEach===nativeForEach)$.forEach(T,V);else if($.length===+$.length){for(var K=0,ee=$.length;K<ee;K++)if(K in $&&T.call(V,$[K],K,$)===breaker)return}else for(var te in $)if(hasOwnProperty.call($,te)&&T.call(V,$[te],te,$)===breaker)return}};_.escapeHTML=function($){var T=$;return T&&_.isString(T)&&(T=T.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")),T};_.extend=function($){return _.each(slice.call(arguments,1),function(T){for(var V in T)T[V]!==void 0&&($[V]=T[V])}),$};_.isArray=nativeIsArray||function($){return toString.call($)==="[object Array]"};_.isFunction=function($){try{return/^\s*\bfunction\b/.test($)}catch{return!1}};_.isArguments=function($){return!!($&&hasOwnProperty.call($,"callee"))};_.toArray=function($){return $?$.toArray?$.toArray():_.isArray($)||_.isArguments($)?slice.call($):_.values($):[]};_.map=function($,T,V){if(nativeMap&&$.map===nativeMap)return $.map(T,V);var K=[];return _.each($,function(ee){K.push(T.call(V,ee))}),K};_.keys=function($){var T=[];return $===null||_.each($,function(V,K){T[T.length]=K}),T};_.values=function($){var T=[];return $===null||_.each($,function(V){T[T.length]=V}),T};_.include=function($,T){var V=!1;return $===null?V:nativeIndexOf&&$.indexOf===nativeIndexOf?$.indexOf(T)!=-1:(_.each($,function(K){if(V||(V=K===T))return breaker}),V)};_.includes=function($,T){return $.indexOf(T)!==-1};_.inherit=function($,T){return $.prototype=new T,$.prototype.constructor=$,$.superclass=T.prototype,$};_.isObject=function($){return $===Object($)&&!_.isArray($)};_.isEmptyObject=function($){if(_.isObject($)){for(var T in $)if(hasOwnProperty.call($,T))return!1;return!0}return!1};_.isUndefined=function($){return $===void 0};_.isString=function($){return toString.call($)=="[object String]"};_.isDate=function($){return toString.call($)=="[object Date]"};_.isNumber=function($){return toString.call($)=="[object Number]"};_.isElement=function($){return!!($&&$.nodeType===1)};_.encodeDates=function($){return _.each($,function(T,V){_.isDate(T)?$[V]=_.formatDate(T):_.isObject(T)&&($[V]=_.encodeDates(T))}),$};_.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};_.formatDate=function($){function T(V){return V<10?"0"+V:V}return $.getUTCFullYear()+"-"+T($.getUTCMonth()+1)+"-"+T($.getUTCDate())+"T"+T($.getUTCHours())+":"+T($.getUTCMinutes())+":"+T($.getUTCSeconds())};_.safewrap=function($){return function(){try{return $.apply(this,arguments)}catch(T){console$1.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Config.DEBUG&&console$1.critical(T)}}};_.safewrap_class=function($,T){for(var V=0;V<T.length;V++)$.prototype[T[V]]=_.safewrap($.prototype[T[V]])};_.safewrap_instance_methods=function($){for(var T in $)typeof $[T]=="function"&&($[T]=_.safewrap($[T]))};_.strip_empty_properties=function($){var T={};return _.each($,function(V,K){_.isString(V)&&V.length>0&&(T[K]=V)}),T};_.truncate=function($,T){var V;return typeof $=="string"?V=$.slice(0,T):_.isArray($)?(V=[],_.each($,function(K){V.push(_.truncate(K,T))})):_.isObject($)?(V={},_.each($,function(K,ee){V[ee]=_.truncate(K,T)})):V=$,V};_.JSONEncode=function(){return function($){var T=$,V=function(ee){var te=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,re={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return te.lastIndex=0,te.test(ee)?'"'+ee.replace(te,function(ne){var ae=re[ne];return typeof ae=="string"?ae:"\\u"+("0000"+ne.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ee+'"'},K=function(ee,te){var re="",ne=" ",ae=0,ie="",oe="",se=0,le=re,ue=[],ce=te[ee];switch(ce&&typeof ce=="object"&&typeof ce.toJSON=="function"&&(ce=ce.toJSON(ee)),typeof ce){case"string":return V(ce);case"number":return isFinite(ce)?String(ce):"null";case"boolean":case"null":return String(ce);case"object":if(!ce)return"null";if(re+=ne,ue=[],toString.apply(ce)==="[object Array]"){for(se=ce.length,ae=0;ae<se;ae+=1)ue[ae]=K(ae,ce)||"null";return oe=ue.length===0?"[]":re?`[
14359
14359
  `+re+ue.join(`,
14360
14360
  `+re)+`
14361
14361
  `+le+"]":"["+ue.join(",")+"]",re=le,oe}for(ie in ce)hasOwnProperty.call(ce,ie)&&(oe=K(ie,ce),oe&&ue.push(V(ie)+(re?": ":":")+oe));return oe=ue.length===0?"{}":re?"{"+ue.join(",")+le+"}":"{"+ue.join(",")+"}",re=le,oe}};return K("",{"":T})}}();_.JSONDecode=function(){var $,T,V={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/assets/favicon.ef7fdf3d.ico" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Zeni - Modern Finance Team For Startups</title>
8
- <script type="module" crossorigin src="/assets/index.32b3a138.js"></script>
8
+ <script type="module" crossorigin src="/assets/index.533dae0e.js"></script>
9
9
  <link rel="stylesheet" href="/assets/index.73a12ea1.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-cockpit-ui",
3
- "version": "1.0.55-dev",
3
+ "version": "1.0.55-prod",
4
4
  "files": [
5
5
  "dist/**/*"
6
6
  ],
@@ -63,9 +63,9 @@
63
63
  "author": "Zeni Team",
64
64
  "license": "UNLICENSED",
65
65
  "scripts": {
66
- "start": "vite --mode DEV",
67
- "build": "tsc && vite build --mode DEV",
68
- "preview": "vite preview --mode DEV --host",
66
+ "start": "vite --mode PROD",
67
+ "build": "tsc && vite build --mode PROD",
68
+ "preview": "vite preview --mode PROD --host",
69
69
  "start_dev": "vite --mode DEV",
70
70
  "build_dev": "tsc && vite build --mode DEV",
71
71
  "preview_dev": "vite preview --mode DEV --host",