@redocly/replay 0.15.0-next.5 → 0.15.0-next.6
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/dist/{replay-index-BMTPFdt6.js → replay-index-0fogrFuM.js} +2 -2
- package/dist/{replay-index-BjBQjvUm.js → replay-index-DaZiYU0k.js} +2 -2
- package/dist/{replay-tauri-path-BvmNlW_D.js → replay-tauri-path-CF8RINRB.js} +1 -1
- package/dist/{replay-tauri-path-C3Vbqpem.js → replay-tauri-path-kqbHKWSa.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +2 -2
|
@@ -9621,7 +9621,7 @@ function Sg() {
|
|
|
9621
9621
|
}
|
|
9622
9622
|
const Mi = class Mi {
|
|
9623
9623
|
static async getUtils() {
|
|
9624
|
-
return Mi.utils || (Mi.utils = Sg() ? await import("./replay-tauri-path-
|
|
9624
|
+
return Mi.utils || (Mi.utils = Sg() ? await import("./replay-tauri-path-kqbHKWSa.js") : await Promise.resolve().then(() => JL)), Mi.utils;
|
|
9625
9625
|
}
|
|
9626
9626
|
static async join(...e) {
|
|
9627
9627
|
return (await Mi.getUtils()).join(...e);
|
|
@@ -42759,7 +42759,7 @@ const Kg = $r({});
|
|
|
42759
42759
|
function rw() {
|
|
42760
42760
|
return yn(Kg) || {};
|
|
42761
42761
|
}
|
|
42762
|
-
const doe = "0.15.0-next.
|
|
42762
|
+
const doe = "0.15.0-next.6", hoe = {
|
|
42763
42763
|
version: doe
|
|
42764
42764
|
};
|
|
42765
42765
|
class poe {
|
|
@@ -152,7 +152,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
152
152
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
153
153
|
* derived from CryptoJS.mode.CTR
|
|
154
154
|
* Jan Hruby jhruby.web@gmail.com
|
|
155
|
-
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),o(h);var d=h.slice(0);c.encryptBlock(d,0);for(var g=0;g<u;g++)a[l+g]^=d[g]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(Z0)),Z0.exports}var X0={exports:{}},_w;function qB(){return _w||(_w=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var f=0;f<l;f++)o[s+f]^=u[f]}});return r.Decryptor=i,r}(),n.mode.OFB})}(X0)),X0.exports}var U0={exports:{}},jw;function JB(){return jw||(jw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(U0)),U0.exports}var G0={exports:{}},Rw;function KB(){return Rw||(Rw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,a=s-o%s,l=o+a-1;r.clamp(),r.words[l>>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(G0)),G0.exports}var Y0={exports:{}},Dw;function eQ(){return Dw||(Dw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(Y0)),Y0.exports}var H0={exports:{}},$w;function tQ(){return $w||($w=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(H0)),H0.exports}var q0={exports:{}},Mw;function nQ(){return Mw||(Mw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(q0)),q0.exports}var J0={exports:{}},Nw;function rQ(){return Nw||(Nw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(J0)),J0.exports}var K0={exports:{}},Bw;function iQ(){return Bw||(Bw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,a=i.enc,l=a.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return s.create({ciphertext:f})}}}(),n.format.Hex})}(K0)),K0.exports}var em={exports:{}},Qw;function oQ(){return Qw||(Qw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,a=[],l=[],c=[],u=[],f=[],h=[],d=[],g=[],p=[],v=[];(function(){for(var O=[],S=0;S<256;S++)S<128?O[S]=S<<1:O[S]=S<<1^283;for(var b=0,w=0,S=0;S<256;S++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,a[b]=C,l[C]=b;var I=O[b],A=O[I],T=O[A],_=O[C]*257^C*16843008;c[b]=_<<24|_>>>8,u[b]=_<<16|_>>>16,f[b]=_<<8|_>>>24,h[b]=_;var _=T*16843009^A*65537^I*257^b*16843008;d[C]=_<<24|_>>>8,g[C]=_<<16|_>>>16,p[C]=_<<8|_>>>24,v[C]=_,b?(b=I^O[O[O[T^I]]],w^=O[O[w]]):b=w=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var O;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,b=S.words,w=S.sigBytes/4,C=this._nRounds=w+6,I=(C+1)*4,A=this._keySchedule=[],T=0;T<I;T++)T<w?A[T]=b[T]:(O=A[T-1],T%w?w>6&&T%w==4&&(O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255]):(O=O<<8|O>>>24,O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255],O^=y[T/w|0]<<24),A[T]=A[T-w]^O);for(var _=this._invKeySchedule=[],E=0;E<I;E++){var T=I-E;if(E%4)var O=A[T];else var O=A[T-4];E<4||T<=4?_[E]=O:_[E]=d[a[O>>>24]]^g[a[O>>>16&255]]^p[a[O>>>8&255]]^v[a[O&255]]}}},encryptBlock:function(O,S){this._doCryptBlock(O,S,this._keySchedule,c,u,f,h,a)},decryptBlock:function(O,S){var b=O[S+1];O[S+1]=O[S+3],O[S+3]=b,this._doCryptBlock(O,S,this._invKeySchedule,d,g,p,v,l);var b=O[S+1];O[S+1]=O[S+3],O[S+3]=b},_doCryptBlock:function(O,S,b,w,C,I,A,T){for(var _=this._nRounds,E=O[S]^b[0],$=O[S+1]^b[1],k=O[S+2]^b[2],L=O[S+3]^b[3],Z=4,X=1;X<_;X++){var q=w[E>>>24]^C[$>>>16&255]^I[k>>>8&255]^A[L&255]^b[Z++],Y=w[$>>>24]^C[k>>>16&255]^I[L>>>8&255]^A[E&255]^b[Z++],z=w[k>>>24]^C[L>>>16&255]^I[E>>>8&255]^A[$&255]^b[Z++],M=w[L>>>24]^C[E>>>16&255]^I[$>>>8&255]^A[k&255]^b[Z++];E=q,$=Y,k=z,L=M}var q=(T[E>>>24]<<24|T[$>>>16&255]<<16|T[k>>>8&255]<<8|T[L&255])^b[Z++],Y=(T[$>>>24]<<24|T[k>>>16&255]<<16|T[L>>>8&255]<<8|T[E&255])^b[Z++],z=(T[k>>>24]<<24|T[L>>>16&255]<<16|T[E>>>8&255]<<8|T[$&255])^b[Z++],M=(T[L>>>24]<<24|T[E>>>16&255]<<16|T[$>>>8&255]<<8|T[k&255])^b[Z++];O[S]=q,O[S+1]=Y,O[S+2]=z,O[S+3]=M},keySize:256/32});r.AES=o._createHelper(x)}(),n.AES})}(em)),em.exports}var tm={exports:{}},Lw;function sQ(){return Lw||(Lw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,a=r.algo,l=[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],c=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=s.extend({_doReset:function(){for(var y=this._key,x=y.words,O=[],S=0;S<56;S++){var b=l[S]-1;O[S]=x[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var I=w[C]=[],A=u[C],S=0;S<24;S++)I[S/6|0]|=O[(c[S]-1+A)%28]<<31-S%6,I[4+(S/6|0)]|=O[28+(c[S+24]-1+A)%28]<<31-S%6;I[0]=I[0]<<1|I[0]>>>31;for(var S=1;S<7;S++)I[S]=I[S]>>>(S-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var T=this._invSubKeys=[],S=0;S<16;S++)T[S]=w[15-S]},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._subKeys)},decryptBlock:function(y,x){this._doCryptBlock(y,x,this._invSubKeys)},_doCryptBlock:function(y,x,O){this._lBlock=y[x],this._rBlock=y[x+1],g.call(this,4,252645135),g.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),g.call(this,1,1431655765);for(var S=0;S<16;S++){for(var b=O[S],w=this._lBlock,C=this._rBlock,I=0,A=0;A<8;A++)I|=f[A][((C^b[A])&h[A])>>>0];this._lBlock=C,this._rBlock=w^I}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,g.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),y[x]=this._lBlock,y[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(y,x){var O=(this._lBlock>>>y^this._rBlock)&x;this._rBlock^=O,this._lBlock^=O<<y}function p(y,x){var O=(this._rBlock>>>y^this._lBlock)&x;this._lBlock^=O,this._rBlock^=O<<y}r.DES=s._createHelper(d);var v=a.TripleDES=s.extend({_doReset:function(){var y=this._key,x=y.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var O=x.slice(0,2),S=x.length<4?x.slice(0,2):x.slice(2,4),b=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=d.createEncryptor(o.create(O)),this._des2=d.createEncryptor(o.create(S)),this._des3=d.createEncryptor(o.create(b))},encryptBlock:function(y,x){this._des1.encryptBlock(y,x),this._des2.decryptBlock(y,x),this._des3.encryptBlock(y,x)},decryptBlock:function(y,x){this._des3.decryptBlock(y,x),this._des2.encryptBlock(y,x),this._des1.decryptBlock(y,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(v)}(),n.TripleDES})}(tm)),tm.exports}var nm={exports:{}},Fw;function aQ(){return Fw||(Fw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=s.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,h=u.sigBytes,d=this._S=[],g=0;g<256;g++)d[g]=g;for(var g=0,p=0;g<256;g++){var v=g%h,y=f[v>>>2]>>>24-v%4*8&255;p=(p+d[g]+y)%256;var x=d[g];d[g]=d[p],d[p]=x}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,h=this._j,d=0,g=0;g<4;g++){f=(f+1)%256,h=(h+u[f])%256;var p=u[f];u[f]=u[h],u[h]=p,d|=u[(u[f]+u[h])%256]<<24-g*8}return this._i=f,this._j=h,d}r.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(nm)),nm.exports}var rm={exports:{}},zw;function lQ(){return zw||(zw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,d=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)v[g]^=p[g+4&7];if(d){var y=d.words,x=y[0],O=y[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;v[0]^=S,v[1]^=w,v[2]^=b,v[3]^=C,v[4]^=S,v[5]^=w,v[6]^=b,v[7]^=C;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(h,d){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var p=0;p<4;p++)a[p]=(a[p]<<8|a[p]>>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360,h[d+p]^=a[p]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,g=0;g<8;g++)l[g]=d[g];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var p=h[g]+d[g],v=p&65535,y=p>>>16,x=((v*v>>>17)+v*y>>>15)+y*y,O=((p&4294901760)*p|0)+((p&65535)*p|0);c[g]=x^O}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(rm)),rm.exports}var im={exports:{}},Vw;function cQ(){return Vw||(Vw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,d=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)p[v]^=g[v+4&7];if(d){var y=d.words,x=y[0],O=y[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;p[0]^=S,p[1]^=w,p[2]^=b,p[3]^=C,p[4]^=S,p[5]^=w,p[6]^=b,p[7]^=C;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(h,d){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var p=0;p<4;p++)a[p]=(a[p]<<8|a[p]>>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360,h[d+p]^=a[p]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,g=0;g<8;g++)l[g]=d[g];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var p=h[g]+d[g],v=p&65535,y=p>>>16,x=((v*v>>>17)+v*y>>>15)+y*y,O=((p&4294901760)*p|0)+((p&65535)*p|0);c[g]=x^O}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}(im)),im.exports}var om={exports:{}},Ww;function uQ(){return Ww||(Ww=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(v,y){let x=y>>24&255,O=y>>16&255,S=y>>8&255,b=y&255,w=v.sbox[0][x]+v.sbox[1][O];return w=w^v.sbox[2][S],w=w+v.sbox[3][b],w}function h(v,y,x){let O=y,S=x,b;for(let w=0;w<a;++w)O=O^v.pbox[w],S=f(v,O)^S,b=O,O=S,S=b;return b=O,O=S,S=b,S=S^v.pbox[a],O=O^v.pbox[a+1],{left:O,right:S}}function d(v,y,x){let O=y,S=x,b;for(let w=a+1;w>1;--w)O=O^v.pbox[w],S=f(v,O)^S,b=O,O=S,S=b;return b=O,O=S,S=b,S=S^v.pbox[1],O=O^v.pbox[0],{left:O,right:S}}function g(v,y,x){for(let C=0;C<4;C++){v.sbox[C]=[];for(let I=0;I<256;I++)v.sbox[C][I]=c[C][I]}let O=0;for(let C=0;C<a+2;C++)v.pbox[C]=l[C]^y[O],O++,O>=x&&(O=0);let S=0,b=0,w=0;for(let C=0;C<a+2;C+=2)w=h(v,S,b),S=w.left,b=w.right,v.pbox[C]=S,v.pbox[C+1]=b;for(let C=0;C<4;C++)for(let I=0;I<256;I+=2)w=h(v,S,b),S=w.left,b=w.right,v.sbox[C][I]=S,v.sbox[C][I+1]=b;return!0}var p=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,y=v.words,x=v.sigBytes/4;g(u,y,x)}},encryptBlock:function(v,y){var x=h(u,v[y],v[y+1]);v[y]=x.left,v[y+1]=x.right},decryptBlock:function(v,y){var x=d(u,v[y],v[y+1]);v[y]=x.left,v[y+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(p)}(),n.Blowfish})}(om)),om.exports}(function(t,e){(function(n,r,i){t.exports=r(tt(),Gp(),LB(),FB(),ea(),zB(),ta(),TI(),qx(),VB(),_I(),WB(),ZB(),XB(),Jx(),UB(),ss(),hn(),GB(),YB(),HB(),qB(),JB(),KB(),eQ(),tQ(),nQ(),rQ(),iQ(),oQ(),sQ(),aQ(),lQ(),cQ(),uQ())})(je,function(n){return n})})(II);var r1=II.exports;function di(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Zw(t,e){for(var n="",r=0,i=-1,o=0,s,a=0;a<=t.length;++a){if(a<t.length)s=t.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function fQ(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Ya={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),di(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=Zw(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(di(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Zw(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return di(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];di(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ya.normalize(e)},relative:function(e,n){if(di(e),di(n),e===n||(e=Ya.resolve(e),n=Ya.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,l=a-s,c=o<l?o:l,u=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>c&&(e.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var h=e.charCodeAt(r+f),d=n.charCodeAt(s+f);if(h!==d)break;h===47&&(u=f)}var g="";for(f=r+u+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(di(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');di(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){di(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return fQ("/",e)},parse:function(e){di(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,f=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(a,l)):(a===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(a,s),n.base=e.slice(a,l)),n.ext=e.slice(s,l)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Ya.posix=Ya;var jI=Ya;const i1=Vi(jI),dQ=B$({__proto__:null,default:i1},[jI]);class Xw{constructor(e){this.baseDir=e}async ls(e=""){const n=this.makeKey(e);return Object.keys(localStorage).filter(r=>r.startsWith(n)).map(r=>r.replace(n,""))}async get(e){const n=this.makeKey(e);return localStorage.getItem(n)??null}async set(e,n){const r=this.makeKey(e);localStorage.setItem(r,n)}async remove(e){const n=this.makeKey(e);localStorage.removeItem(n)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function ti(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var yl;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(yl||(yl={}));async function hQ(){return ti("plugin:path|resolve_directory",{directory:yl.AppData})}async function pQ(){return ti("plugin:path|resolve_directory",{directory:yl.Desktop})}function RI(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function gQ(...t){return ti("plugin:path|resolve",{paths:t})}async function Gc(...t){return ti("plugin:path|join",{paths:t})}async function mQ(t){return ti("plugin:path|is_absolute",{path:t})}var Uw;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Uw||(Uw={}));async function Gw(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function vQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ti("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function yQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ti("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function xQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function OQ(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:n})}function Yp(){return!!(window!=null&&window.__TAURI__)}const Si=class Si{static async getUtils(){return Si.utils||(Si.utils=Yp()?await Promise.resolve().then(()=>require("./replay-tauri-path-BvmNlW_D.js")):await Promise.resolve().then(()=>dQ)),Si.utils}static async join(...e){return(await Si.getUtils()).join(...e)}static async resolve(e){return(await Si.getUtils()).resolve(e)}static async isAbsolute(e){return(await Si.getUtils()).isAbsolute(e)}static async relative(e,n){return(await Si.getUtils()).relative(e,n)}};me(Si,"utils",null);let no=Si;class Yw{constructor(e,n){this.baseDir=e,this.baseDirOption=n,this.initializeDirectory()}async initializeDirectory(e){try{await Gw(e??"/",{baseDir:this.baseDirOption,recursive:!0})}catch(n){if(n instanceof Error&&n.message.includes("already exists"))return;throw n}}async ls(e){const n=await this.getFullPath(e);return this.getDirEntryFilesRecursively(n)}async getDirEntryFilesRecursively(e){try{const n=[],r=await vQ(e,{baseDir:this.baseDirOption});for(const i of r)if(i.isDirectory){const o=await Gc(e,i.name),s=await this.getDirEntryFilesRecursively(o);n.push(...s)}else{const o=await Gc(e,i.name),s=await no.relative(this.baseDir,o);n.push(s)}return n}catch(n){return n.includes("forbidden path")||console.error(n),[]}}async get(e){const n=await this.getFullPath(e);try{return await yQ(n,{baseDir:this.baseDirOption})}catch(r){return!r.includes("No such file or directory")&&!r.includes("forbidden path")&&console.error(r),null}}async set(e,n){const r=await this.getFullPath(e),i=RI(),o=r.split(i).slice(0,-1).join(i);await Gw(o,{baseDir:this.baseDirOption,recursive:!0}),await OQ(r,n,{baseDir:this.baseDirOption})}async remove(e){const n=await this.getFullPath(e);try{await xQ(n,{baseDir:this.baseDirOption})}catch(r){if(r instanceof Error&&r.message.includes("not found"))return;throw r}}async getFullPath(e){return await Gc(this.baseDir,e??"")}}class bQ{constructor(){me(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,n){}async remove(e){}}class SQ{constructor(e,n){me(this,"default",L5);this.storage=e,this.localStorageSecretsProvider=n}async read(){const e=await this.storage.get("replay-environments.yaml"),n=await this.localStorageSecretsProvider.get();let r=null,i=null;if(!e)return this.default;try{r=vl.load(e),i=n?JSON.parse(n):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return r?Object.keys(r).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(r[a].inputs).map(([l,c])=>{var f;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((f=i==null?void 0:i[a])==null?void 0:f[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(r[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,f])=>({name:u,value:f}))})),state:Je.Normal})):this.default}async write(e){const n=await this.localStorageSecretsProvider.get(),r=n?JSON.parse(n):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&r?(r[s.name]||(r[s.name]={}),r[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(r)),i&&this.storage.set("replay-environments.yaml",vl.dump(i))}}var wQ=Object.prototype.hasOwnProperty,CQ=Object.prototype.toString,kQ=function(e,n,r){if(CQ.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)n.call(r,e[o],o,e);else for(var s in e)wQ.call(e,s)&&n.call(r,e[s],s,e)},AQ=kQ,EQ=Ct;function Ct(t,e,n){if(arguments.length===3)return Ct.set(t,e,n);if(arguments.length===2)return Ct.get(t,e);var r=Ct.bind(Ct,t);for(var i in Ct)Ct.hasOwnProperty(i)&&(r[i]=Ct[i].bind(r,t));return r}Ct.get=function(e,n){for(var r=Array.isArray(n)?n:Ct.parse(n),i=0;i<r.length;++i){var o=r[i];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e};Ct.set=function(e,n,r){var i=Array.isArray(n)?n:Ct.parse(n),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=r,this};Ct.remove=function(t,e){var n=Array.isArray(e)?e:Ct.parse(e),r=n[n.length-1];if(r===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var i=Ct.get(t,n.slice(0,-1));if(Array.isArray(i)){var o=+r;if(r===""&&isNaN(o))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(i,o,1)}else delete i[r]};Ct.dict=function(e,n){var r={};return Ct.walk(e,function(i,o){r[o]=i},n),r};Ct.walk=function(e,n,r){var i=[];r=r||function(o){var s=Object.prototype.toString.call(o);return s==="[object Object]"||s==="[object Array]"},function o(s){AQ(s,function(a,l){i.push(String(l)),r(a)?o(a):n(a,Ct.compile(i)),i.pop()})}(e)};Ct.has=function(e,n){try{Ct.get(e,n)}catch{return!1}return!0};Ct.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Ct.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};Ct.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Ct.unescape)};Ct.compile=function(e){return e.length===0?"":"/"+e.map(Ct.escape).join("/")};const DI=Vi(EQ);var vr=(t=>(t.Query="Query",t.Header="Header",t.Cookie="Cookie",t))(vr||{}),le=(t=>(t.NoAuth="No Auth",t.BasicAuth="Basic Auth",t.DigestAuth="Digest Auth",t.JWT="JWT",t.APIKey="API key",t.OAuth2="OAuth 2.0",t.OpenIDConnect="OpenID Connect",t))(le||{}),fe=(t=>(t.ClientCredentials="Client Credentials",t.ClientCredentialsWithJwtAssertion="Client Credentials with JWT Assertion",t.AuthorizationCode="Authorization Code",t.AuthorizationCodeWithPkce="Authorization Code with PKCE",t.Implicit="Implicit",t.Password="Password",t))(fe||{}),Dn=(t=>(t.Body="Body",t.Header="Header",t.URL="URL",t))(Dn||{}),Qn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(Qn||{});const Kx={active:!0,key:"",value:""},$I="{",eO="}",Vl="^\\$inputs\\.([^}\\s]+)$|\\{\\$inputs\\.([^}\\s]+)\\}";function PQ({content:t}){return m.jsx(IQ,{"data-testid":"arazzo-expression",children:t})}const IQ=R.span`
|
|
155
|
+
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var l=a>>16&255,c=a>>8&255,u=a&255;l===255?(l=0,c===255?(c=0,u===255?u=0:++u):++c):++l,a=0,a+=l<<16,a+=c<<8,a+=u}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=r.Encryptor=r.extend({processBlock:function(a,l){var c=this._cipher,u=c.blockSize,f=this._iv,h=this._counter;f&&(h=this._counter=f.slice(0),this._iv=void 0),o(h);var d=h.slice(0);c.encryptBlock(d,0);for(var g=0;g<u;g++)a[l+g]^=d[g]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(Z0)),Z0.exports}var X0={exports:{}},_w;function qB(){return _w||(_w=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var a=this._cipher,l=a.blockSize,c=this._iv,u=this._keystream;c&&(u=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var f=0;f<l;f++)o[s+f]^=u[f]}});return r.Decryptor=i,r}(),n.mode.OFB})}(X0)),X0.exports}var U0={exports:{}},jw;function JB(){return jw||(jw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(U0)),U0.exports}var G0={exports:{}},Rw;function KB(){return Rw||(Rw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,a=s-o%s,l=o+a-1;r.clamp(),r.words[l>>>2]|=a<<24-l%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(G0)),G0.exports}var Y0={exports:{}},Dw;function eQ(){return Dw||(Dw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(Y0)),Y0.exports}var H0={exports:{}},$w;function tQ(){return $w||($w=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(H0)),H0.exports}var q0={exports:{}},Mw;function nQ(){return Mw||(Mw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(q0)),q0.exports}var J0={exports:{}},Nw;function rQ(){return Nw||(Nw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(J0)),J0.exports}var K0={exports:{}},Bw;function iQ(){return Bw||(Bw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),hn())})(je,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,a=i.enc,l=a.Hex,c=i.format;c.Hex={stringify:function(u){return u.ciphertext.toString(l)},parse:function(u){var f=l.parse(u);return s.create({ciphertext:f})}}}(),n.format.Hex})}(K0)),K0.exports}var em={exports:{}},Qw;function oQ(){return Qw||(Qw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,a=[],l=[],c=[],u=[],f=[],h=[],d=[],g=[],p=[],v=[];(function(){for(var O=[],S=0;S<256;S++)S<128?O[S]=S<<1:O[S]=S<<1^283;for(var b=0,w=0,S=0;S<256;S++){var C=w^w<<1^w<<2^w<<3^w<<4;C=C>>>8^C&255^99,a[b]=C,l[C]=b;var I=O[b],A=O[I],T=O[A],_=O[C]*257^C*16843008;c[b]=_<<24|_>>>8,u[b]=_<<16|_>>>16,f[b]=_<<8|_>>>24,h[b]=_;var _=T*16843009^A*65537^I*257^b*16843008;d[C]=_<<24|_>>>8,g[C]=_<<16|_>>>16,p[C]=_<<8|_>>>24,v[C]=_,b?(b=I^O[O[O[T^I]]],w^=O[O[w]]):b=w=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=o.extend({_doReset:function(){var O;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,b=S.words,w=S.sigBytes/4,C=this._nRounds=w+6,I=(C+1)*4,A=this._keySchedule=[],T=0;T<I;T++)T<w?A[T]=b[T]:(O=A[T-1],T%w?w>6&&T%w==4&&(O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255]):(O=O<<8|O>>>24,O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255],O^=y[T/w|0]<<24),A[T]=A[T-w]^O);for(var _=this._invKeySchedule=[],E=0;E<I;E++){var T=I-E;if(E%4)var O=A[T];else var O=A[T-4];E<4||T<=4?_[E]=O:_[E]=d[a[O>>>24]]^g[a[O>>>16&255]]^p[a[O>>>8&255]]^v[a[O&255]]}}},encryptBlock:function(O,S){this._doCryptBlock(O,S,this._keySchedule,c,u,f,h,a)},decryptBlock:function(O,S){var b=O[S+1];O[S+1]=O[S+3],O[S+3]=b,this._doCryptBlock(O,S,this._invKeySchedule,d,g,p,v,l);var b=O[S+1];O[S+1]=O[S+3],O[S+3]=b},_doCryptBlock:function(O,S,b,w,C,I,A,T){for(var _=this._nRounds,E=O[S]^b[0],$=O[S+1]^b[1],k=O[S+2]^b[2],L=O[S+3]^b[3],Z=4,X=1;X<_;X++){var q=w[E>>>24]^C[$>>>16&255]^I[k>>>8&255]^A[L&255]^b[Z++],Y=w[$>>>24]^C[k>>>16&255]^I[L>>>8&255]^A[E&255]^b[Z++],z=w[k>>>24]^C[L>>>16&255]^I[E>>>8&255]^A[$&255]^b[Z++],M=w[L>>>24]^C[E>>>16&255]^I[$>>>8&255]^A[k&255]^b[Z++];E=q,$=Y,k=z,L=M}var q=(T[E>>>24]<<24|T[$>>>16&255]<<16|T[k>>>8&255]<<8|T[L&255])^b[Z++],Y=(T[$>>>24]<<24|T[k>>>16&255]<<16|T[L>>>8&255]<<8|T[E&255])^b[Z++],z=(T[k>>>24]<<24|T[L>>>16&255]<<16|T[E>>>8&255]<<8|T[$&255])^b[Z++],M=(T[L>>>24]<<24|T[E>>>16&255]<<16|T[$>>>8&255]<<8|T[k&255])^b[Z++];O[S]=q,O[S+1]=Y,O[S+2]=z,O[S+3]=M},keySize:256/32});r.AES=o._createHelper(x)}(),n.AES})}(em)),em.exports}var tm={exports:{}},Lw;function sQ(){return Lw||(Lw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,a=r.algo,l=[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],c=[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],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=s.extend({_doReset:function(){for(var y=this._key,x=y.words,O=[],S=0;S<56;S++){var b=l[S]-1;O[S]=x[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],C=0;C<16;C++){for(var I=w[C]=[],A=u[C],S=0;S<24;S++)I[S/6|0]|=O[(c[S]-1+A)%28]<<31-S%6,I[4+(S/6|0)]|=O[28+(c[S+24]-1+A)%28]<<31-S%6;I[0]=I[0]<<1|I[0]>>>31;for(var S=1;S<7;S++)I[S]=I[S]>>>(S-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var T=this._invSubKeys=[],S=0;S<16;S++)T[S]=w[15-S]},encryptBlock:function(y,x){this._doCryptBlock(y,x,this._subKeys)},decryptBlock:function(y,x){this._doCryptBlock(y,x,this._invSubKeys)},_doCryptBlock:function(y,x,O){this._lBlock=y[x],this._rBlock=y[x+1],g.call(this,4,252645135),g.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),g.call(this,1,1431655765);for(var S=0;S<16;S++){for(var b=O[S],w=this._lBlock,C=this._rBlock,I=0,A=0;A<8;A++)I|=f[A][((C^b[A])&h[A])>>>0];this._lBlock=C,this._rBlock=w^I}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,g.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),y[x]=this._lBlock,y[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(y,x){var O=(this._lBlock>>>y^this._rBlock)&x;this._rBlock^=O,this._lBlock^=O<<y}function p(y,x){var O=(this._rBlock>>>y^this._lBlock)&x;this._lBlock^=O,this._rBlock^=O<<y}r.DES=s._createHelper(d);var v=a.TripleDES=s.extend({_doReset:function(){var y=this._key,x=y.words;if(x.length!==2&&x.length!==4&&x.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var O=x.slice(0,2),S=x.length<4?x.slice(0,2):x.slice(2,4),b=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=d.createEncryptor(o.create(O)),this._des2=d.createEncryptor(o.create(S)),this._des3=d.createEncryptor(o.create(b))},encryptBlock:function(y,x){this._des1.encryptBlock(y,x),this._des2.decryptBlock(y,x),this._des3.encryptBlock(y,x)},decryptBlock:function(y,x){this._des3.decryptBlock(y,x),this._des2.encryptBlock(y,x),this._des1.decryptBlock(y,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(v)}(),n.TripleDES})}(tm)),tm.exports}var nm={exports:{}},Fw;function aQ(){return Fw||(Fw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=s.RC4=o.extend({_doReset:function(){for(var u=this._key,f=u.words,h=u.sigBytes,d=this._S=[],g=0;g<256;g++)d[g]=g;for(var g=0,p=0;g<256;g++){var v=g%h,y=f[v>>>2]>>>24-v%4*8&255;p=(p+d[g]+y)%256;var x=d[g];d[g]=d[p],d[p]=x}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var u=this._S,f=this._i,h=this._j,d=0,g=0;g<4;g++){f=(f+1)%256,h=(h+u[f])%256;var p=u[f];u[f]=u[h],u[h]=p,d|=u[(u[f]+u[h])%256]<<24-g*8}return this._i=f,this._j=h,d}r.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)l.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(nm)),nm.exports}var rm={exports:{}},zw;function lQ(){return zw||(zw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,d=this.cfg.iv,g=0;g<4;g++)h[g]=(h[g]<<8|h[g]>>>24)&16711935|(h[g]<<24|h[g]>>>8)&4278255360;var p=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var g=0;g<4;g++)f.call(this);for(var g=0;g<8;g++)v[g]^=p[g+4&7];if(d){var y=d.words,x=y[0],O=y[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;v[0]^=S,v[1]^=w,v[2]^=b,v[3]^=C,v[4]^=S,v[5]^=w,v[6]^=b,v[7]^=C;for(var g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(h,d){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var p=0;p<4;p++)a[p]=(a[p]<<8|a[p]>>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360,h[d+p]^=a[p]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,g=0;g<8;g++)l[g]=d[g];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var p=h[g]+d[g],v=p&65535,y=p>>>16,x=((v*v>>>17)+v*y>>>15)+y*y,O=((p&4294901760)*p|0)+((p&65535)*p|0);c[g]=x^O}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(u)}(),n.Rabbit})}(rm)),rm.exports}var im={exports:{}},Vw;function cQ(){return Vw||(Vw=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,a=[],l=[],c=[],u=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,d=this.cfg.iv,g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],p=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)f.call(this);for(var v=0;v<8;v++)p[v]^=g[v+4&7];if(d){var y=d.words,x=y[0],O=y[1],S=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,b=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,w=S>>>16|b&4294901760,C=b<<16|S&65535;p[0]^=S,p[1]^=w,p[2]^=b,p[3]^=C,p[4]^=S,p[5]^=w,p[6]^=b,p[7]^=C;for(var v=0;v<4;v++)f.call(this)}},_doProcessBlock:function(h,d){var g=this._X;f.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var p=0;p<4;p++)a[p]=(a[p]<<8|a[p]>>>24)&16711935|(a[p]<<24|a[p]>>>8)&4278255360,h[d+p]^=a[p]},blockSize:128/32,ivSize:64/32});function f(){for(var h=this._X,d=this._C,g=0;g<8;g++)l[g]=d[g];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<l[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<l[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<l[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<l[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<l[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<l[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<l[6]>>>0?1:0)|0,this._b=d[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var p=h[g]+d[g],v=p&65535,y=p>>>16,x=((v*v>>>17)+v*y>>>15)+y*y,O=((p&4294901760)*p|0)+((p&65535)*p|0);c[g]=x^O}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(u)}(),n.RabbitLegacy})}(im)),im.exports}var om={exports:{}},Ww;function uQ(){return Ww||(Ww=1,function(t,e){(function(n,r,i){t.exports=r(tt(),ea(),ta(),ss(),hn())})(je,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const a=16,l=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function f(v,y){let x=y>>24&255,O=y>>16&255,S=y>>8&255,b=y&255,w=v.sbox[0][x]+v.sbox[1][O];return w=w^v.sbox[2][S],w=w+v.sbox[3][b],w}function h(v,y,x){let O=y,S=x,b;for(let w=0;w<a;++w)O=O^v.pbox[w],S=f(v,O)^S,b=O,O=S,S=b;return b=O,O=S,S=b,S=S^v.pbox[a],O=O^v.pbox[a+1],{left:O,right:S}}function d(v,y,x){let O=y,S=x,b;for(let w=a+1;w>1;--w)O=O^v.pbox[w],S=f(v,O)^S,b=O,O=S,S=b;return b=O,O=S,S=b,S=S^v.pbox[1],O=O^v.pbox[0],{left:O,right:S}}function g(v,y,x){for(let C=0;C<4;C++){v.sbox[C]=[];for(let I=0;I<256;I++)v.sbox[C][I]=c[C][I]}let O=0;for(let C=0;C<a+2;C++)v.pbox[C]=l[C]^y[O],O++,O>=x&&(O=0);let S=0,b=0,w=0;for(let C=0;C<a+2;C+=2)w=h(v,S,b),S=w.left,b=w.right,v.pbox[C]=S,v.pbox[C+1]=b;for(let C=0;C<4;C++)for(let I=0;I<256;I+=2)w=h(v,S,b),S=w.left,b=w.right,v.sbox[C][I]=S,v.sbox[C][I+1]=b;return!0}var p=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,y=v.words,x=v.sigBytes/4;g(u,y,x)}},encryptBlock:function(v,y){var x=h(u,v[y],v[y+1]);v[y]=x.left,v[y+1]=x.right},decryptBlock:function(v,y){var x=d(u,v[y],v[y+1]);v[y]=x.left,v[y+1]=x.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(p)}(),n.Blowfish})}(om)),om.exports}(function(t,e){(function(n,r,i){t.exports=r(tt(),Gp(),LB(),FB(),ea(),zB(),ta(),TI(),qx(),VB(),_I(),WB(),ZB(),XB(),Jx(),UB(),ss(),hn(),GB(),YB(),HB(),qB(),JB(),KB(),eQ(),tQ(),nQ(),rQ(),iQ(),oQ(),sQ(),aQ(),lQ(),cQ(),uQ())})(je,function(n){return n})})(II);var r1=II.exports;function di(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Zw(t,e){for(var n="",r=0,i=-1,o=0,s,a=0;a<=t.length;++a){if(a<t.length)s=t.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}function fQ(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Ya={resolve:function(){for(var e="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var o;i>=0?o=arguments[i]:(r===void 0&&(r=process.cwd()),o=r),di(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=Zw(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(di(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Zw(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return di(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n<arguments.length;++n){var r=arguments[n];di(r),r.length>0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Ya.normalize(e)},relative:function(e,n){if(di(e),di(n),e===n||(e=Ya.resolve(e),n=Ya.resolve(n),e===n))return"";for(var r=1;r<e.length&&e.charCodeAt(r)===47;++r);for(var i=e.length,o=i-r,s=1;s<n.length&&n.charCodeAt(s)===47;++s);for(var a=n.length,l=a-s,c=o<l?o:l,u=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(n.charCodeAt(s+f)===47)return n.slice(s+f+1);if(f===0)return n.slice(s+f)}else o>c&&(e.charCodeAt(r+f)===47?u=f:f===0&&(u=0));break}var h=e.charCodeAt(r+f),d=n.charCodeAt(s+f);if(h!==d)break;h===47&&(u=f)}var g="";for(f=r+u+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(g.length===0?g+="..":g+="/..");return g.length>0?g+n.slice(s+u):(s+=u,n.charCodeAt(s)===47&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(di(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,i=-1,o=!0,s=e.length-1;s>=1;--s)if(n=e.charCodeAt(s),n===47){if(!o){i=s;break}}else o=!1;return i===-1?r?"/":".":r&&i===1?"//":e.slice(0,i)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');di(e);var r=0,i=-1,o=!0,s;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(c===47){if(!o){r=s+1;break}}else l===-1&&(o=!1,l=s+1),a>=0&&(c===n.charCodeAt(a)?--a===-1&&(i=s):(a=-1,i=l))}return r===i?i=l:i===-1&&(i=e.length),e.slice(r,i)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){r=s+1;break}}else i===-1&&(o=!1,i=s+1);return i===-1?"":e.slice(r,i)}},extname:function(e){di(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!o){r=a+1;break}continue}i===-1&&(o=!1,i=a+1),l===46?n===-1?n=a:s!==1&&(s=1):n!==-1&&(s=-1)}return n===-1||i===-1||s===0||s===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return fQ("/",e)},parse:function(e){di(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),i=r===47,o;i?(n.root="/",o=1):o=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,f=0;u>=o;--u){if(r=e.charCodeAt(u),r===47){if(!c){a=u+1;break}continue}l===-1&&(c=!1,l=u+1),r===46?s===-1?s=u:f!==1&&(f=1):s!==-1&&(f=-1)}return s===-1||l===-1||f===0||f===1&&s===l-1&&s===a+1?l!==-1&&(a===0&&i?n.base=n.name=e.slice(1,l):n.base=n.name=e.slice(a,l)):(a===0&&i?(n.name=e.slice(1,s),n.base=e.slice(1,l)):(n.name=e.slice(a,s),n.base=e.slice(a,l)),n.ext=e.slice(s,l)),a>0?n.dir=e.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Ya.posix=Ya;var jI=Ya;const i1=Vi(jI),dQ=B$({__proto__:null,default:i1},[jI]);class Xw{constructor(e){this.baseDir=e}async ls(e=""){const n=this.makeKey(e);return Object.keys(localStorage).filter(r=>r.startsWith(n)).map(r=>r.replace(n,""))}async get(e){const n=this.makeKey(e);return localStorage.getItem(n)??null}async set(e,n){const r=this.makeKey(e);localStorage.setItem(r,n)}async remove(e){const n=this.makeKey(e);localStorage.removeItem(n)}makeKey(e){return`replay:fs:${this.baseDir}/${e}`}}async function ti(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}var yl;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(yl||(yl={}));async function hQ(){return ti("plugin:path|resolve_directory",{directory:yl.AppData})}async function pQ(){return ti("plugin:path|resolve_directory",{directory:yl.Desktop})}function RI(){return window.__TAURI_INTERNALS__.plugins.path.sep}async function gQ(...t){return ti("plugin:path|resolve",{paths:t})}async function Gc(...t){return ti("plugin:path|join",{paths:t})}async function mQ(t){return ti("plugin:path|is_absolute",{path:t})}var Uw;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Uw||(Uw={}));async function Gw(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function vQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ti("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function yQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ti("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e})}async function xQ(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function OQ(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ti("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:n})}function Yp(){return!!(window!=null&&window.__TAURI__)}const Si=class Si{static async getUtils(){return Si.utils||(Si.utils=Yp()?await Promise.resolve().then(()=>require("./replay-tauri-path-CF8RINRB.js")):await Promise.resolve().then(()=>dQ)),Si.utils}static async join(...e){return(await Si.getUtils()).join(...e)}static async resolve(e){return(await Si.getUtils()).resolve(e)}static async isAbsolute(e){return(await Si.getUtils()).isAbsolute(e)}static async relative(e,n){return(await Si.getUtils()).relative(e,n)}};me(Si,"utils",null);let no=Si;class Yw{constructor(e,n){this.baseDir=e,this.baseDirOption=n,this.initializeDirectory()}async initializeDirectory(e){try{await Gw(e??"/",{baseDir:this.baseDirOption,recursive:!0})}catch(n){if(n instanceof Error&&n.message.includes("already exists"))return;throw n}}async ls(e){const n=await this.getFullPath(e);return this.getDirEntryFilesRecursively(n)}async getDirEntryFilesRecursively(e){try{const n=[],r=await vQ(e,{baseDir:this.baseDirOption});for(const i of r)if(i.isDirectory){const o=await Gc(e,i.name),s=await this.getDirEntryFilesRecursively(o);n.push(...s)}else{const o=await Gc(e,i.name),s=await no.relative(this.baseDir,o);n.push(s)}return n}catch(n){return n.includes("forbidden path")||console.error(n),[]}}async get(e){const n=await this.getFullPath(e);try{return await yQ(n,{baseDir:this.baseDirOption})}catch(r){return!r.includes("No such file or directory")&&!r.includes("forbidden path")&&console.error(r),null}}async set(e,n){const r=await this.getFullPath(e),i=RI(),o=r.split(i).slice(0,-1).join(i);await Gw(o,{baseDir:this.baseDirOption,recursive:!0}),await OQ(r,n,{baseDir:this.baseDirOption})}async remove(e){const n=await this.getFullPath(e);try{await xQ(n,{baseDir:this.baseDirOption})}catch(r){if(r instanceof Error&&r.message.includes("not found"))return;throw r}}async getFullPath(e){return await Gc(this.baseDir,e??"")}}class bQ{constructor(){me(this,"baseDir","")}async ls(e=""){return[]}async get(e){return null}async set(e,n){}async remove(e){}}class SQ{constructor(e,n){me(this,"default",L5);this.storage=e,this.localStorageSecretsProvider=n}async read(){const e=await this.storage.get("replay-environments.yaml"),n=await this.localStorageSecretsProvider.get();let r=null,i=null;if(!e)return this.default;try{r=vl.load(e),i=n?JSON.parse(n):null}catch(a){return console.error("Failed to parse environments file",a),this.default}return r?Object.keys(r).filter(a=>a!=="version").map(a=>({name:a,inputs:Object.entries(r[a].inputs).map(([l,c])=>{var f;if(typeof c=="string")return{name:l,value:c,isSecret:!1};const u=((f=i==null?void 0:i[a])==null?void 0:f[l])??"";return{name:l,value:u,isSecret:!0}}),servers:Object.entries(r[a].servers).map(([l,c])=>({apiId:l,value:c.value,variables:Object.entries(c.variables||{}).map(([u,f])=>({name:u,value:f}))})),state:Je.Normal})):this.default}async write(e){const n=await this.localStorageSecretsProvider.get(),r=n?JSON.parse(n):{},i=e.reduce((o,s)=>(s.name&&(o[s.name]={inputs:s.inputs.reduce((a,l)=>(l.isSecret&&r?(r[s.name]||(r[s.name]={}),r[s.name][l.name]=l.value,a[l.name]={provider:"local"}):a[l.name]=l.value,a),{}),servers:s.servers.reduce((a,l)=>(a[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},a),{})}),o),{});this.localStorageSecretsProvider.set(JSON.stringify(r)),i&&this.storage.set("replay-environments.yaml",vl.dump(i))}}var wQ=Object.prototype.hasOwnProperty,CQ=Object.prototype.toString,kQ=function(e,n,r){if(CQ.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var o=0;o<i;o++)n.call(r,e[o],o,e);else for(var s in e)wQ.call(e,s)&&n.call(r,e[s],s,e)},AQ=kQ,EQ=Ct;function Ct(t,e,n){if(arguments.length===3)return Ct.set(t,e,n);if(arguments.length===2)return Ct.get(t,e);var r=Ct.bind(Ct,t);for(var i in Ct)Ct.hasOwnProperty(i)&&(r[i]=Ct[i].bind(r,t));return r}Ct.get=function(e,n){for(var r=Array.isArray(n)?n:Ct.parse(n),i=0;i<r.length;++i){var o=r[i];if(!(typeof e=="object"&&o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e};Ct.set=function(e,n,r){var i=Array.isArray(n)?n:Ct.parse(n),o=i[0];if(i.length===0)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];typeof a!="string"&&typeof a!="number"&&(a=String(a)),!(a==="__proto__"||a==="constructor"||a==="prototype")&&(a==="-"&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return o==="-"&&Array.isArray(e)&&(o=e.length),e[o]=r,this};Ct.remove=function(t,e){var n=Array.isArray(e)?e:Ct.parse(e),r=n[n.length-1];if(r===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var i=Ct.get(t,n.slice(0,-1));if(Array.isArray(i)){var o=+r;if(r===""&&isNaN(o))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(i,o,1)}else delete i[r]};Ct.dict=function(e,n){var r={};return Ct.walk(e,function(i,o){r[o]=i},n),r};Ct.walk=function(e,n,r){var i=[];r=r||function(o){var s=Object.prototype.toString.call(o);return s==="[object Object]"||s==="[object Array]"},function o(s){AQ(s,function(a,l){i.push(String(l)),r(a)?o(a):n(a,Ct.compile(i)),i.pop()})}(e)};Ct.has=function(e,n){try{Ct.get(e,n)}catch{return!1}return!0};Ct.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Ct.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};Ct.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Ct.unescape)};Ct.compile=function(e){return e.length===0?"":"/"+e.map(Ct.escape).join("/")};const DI=Vi(EQ);var vr=(t=>(t.Query="Query",t.Header="Header",t.Cookie="Cookie",t))(vr||{}),le=(t=>(t.NoAuth="No Auth",t.BasicAuth="Basic Auth",t.DigestAuth="Digest Auth",t.JWT="JWT",t.APIKey="API key",t.OAuth2="OAuth 2.0",t.OpenIDConnect="OpenID Connect",t))(le||{}),fe=(t=>(t.ClientCredentials="Client Credentials",t.ClientCredentialsWithJwtAssertion="Client Credentials with JWT Assertion",t.AuthorizationCode="Authorization Code",t.AuthorizationCodeWithPkce="Authorization Code with PKCE",t.Implicit="Implicit",t.Password="Password",t))(fe||{}),Dn=(t=>(t.Body="Body",t.Header="Header",t.URL="URL",t))(Dn||{}),Qn=(t=>(t.SIMPLE="simple",t.REGEX="regex",t.JSONPATH="jsonpath",t.XPATH="xpath",t))(Qn||{});const Kx={active:!0,key:"",value:""},$I="{",eO="}",Vl="^\\$inputs\\.([^}\\s]+)$|\\{\\$inputs\\.([^}\\s]+)\\}";function PQ({content:t}){return m.jsx(IQ,{"data-testid":"arazzo-expression",children:t})}const IQ=R.span`
|
|
156
156
|
display: inline-flex;
|
|
157
157
|
align-items: center;
|
|
158
158
|
width: fit-content;
|
|
@@ -317,7 +317,7 @@ html body {
|
|
|
317
317
|
align-self: flex-end;
|
|
318
318
|
padding-top: var(--spacing-xxs);
|
|
319
319
|
gap: var(--spacing-xs);
|
|
320
|
-
`;function rf({input:t,onSave:e,onCancel:n,...r}){const[i,o]=D.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(z9,{variable:t,onSave:s,onCancel:n,...r,children:m.jsx(Jy,{children:m.jsx(qK,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}var iee=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Ds="1.9.0",bE=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function oee(t){var e=new Set([t]),n=new Set,r=t.match(bE);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return n.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(n.has(l))return!1;var c=l.match(bE);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var see=oee(Ds),aee=Ds.split(".")[0],Nu=Symbol.for("opentelemetry.js.api."+aee),Bu=iee;function Og(t,e,n,r){var i;r===void 0&&(r=!1);var o=Bu[Nu]=(i=Bu[Nu])!==null&&i!==void 0?i:{version:Ds};if(!r&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(o.version!==Ds){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Ds);return n.error(s.stack||s.message),!1}return o[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+Ds+"."),!0}function Dl(t){var e,n,r=(e=Bu[Nu])===null||e===void 0?void 0:e.version;if(!(!r||!see(r)))return(n=Bu[Nu])===null||n===void 0?void 0:n[t]}function bg(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Ds+".");var n=Bu[Nu];n&&delete n[t]}var lee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},cee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},uee=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("verbose",this._namespace,e)},t}();function Sc(t,e,n){var r=Dl("diag");if(r)return n.unshift(e),r[t].apply(r,cee([],lee(n),!1))}var hr;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(hr||(hr={}));function fee(t,e){t<hr.NONE?t=hr.NONE:t>hr.ALL&&(t=hr.ALL),e=e||{};function n(r,i){var o=e[r];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:n("error",hr.ERROR),warn:n("warn",hr.WARN),info:n("info",hr.INFO),debug:n("debug",hr.DEBUG),verbose:n("verbose",hr.VERBOSE)}}var dee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},hee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},pee="diag",ts=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Dl("diag");if(a)return a[i].apply(a,hee([],dee(o),!1))}}var n=this,r=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:hr.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=Dl("diag"),f=fee((a=o.logLevel)!==null&&a!==void 0?a:hr.INFO,i);if(u&&!o.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),f.warn("Current logger will overwrite one already registered from "+h)}return Og("diag",f,n,!0)};n.setLogger=r,n.disable=function(){bg(pee,n)},n.createComponentLogger=function(i){return new uee(i)},n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),gee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},mee=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vee=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var n=this._entries.get(e);if(n)return Object.assign({},n)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var n=gee(e,2),r=n[0],i=n[1];return[r,i]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new t(this._entries);try{for(var s=mee(r),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t}(),yee=Symbol("BaggageEntryMetadata"),xee=ts.instance();function Oee(t){return t===void 0&&(t={}),new vee(new Map(Object.entries(t)))}function bee(t){return typeof t!="string"&&(xee.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:yee,toString:function(){return t}}}function db(t){return Symbol.for(t)}var See=function(){function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new t(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new t(n._currentContext);return i._currentContext.delete(r),i}}return t}(),Ma=new See,wee={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},Cee={set:function(t,e,n){t!=null&&(t[e]=n)}},kee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Aee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Eee=function(){function t(){}return t.prototype.active=function(){return Ma},t.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,Aee([r],kee(i),!1))},t.prototype.bind=function(e,n){return n},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),Pee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Iee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Ym="context",Tee=new Eee,Sg=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Og(Ym,e,ts.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,n,r){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,Iee([e,n,r],Pee(o),!1))},t.prototype.bind=function(e,n){return this._getContextManager().bind(e,n)},t.prototype._getContextManager=function(){return Dl(Ym)||Tee},t.prototype.disable=function(){this._getContextManager().disable(),bg(Ym,ts.instance())},t}(),yo;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(yo||(yo={}));var V9="0000000000000000",W9="00000000000000000000000000000000",Z9={traceId:W9,spanId:V9,traceFlags:yo.NONE},ou=function(){function t(e){e===void 0&&(e=Z9),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,n){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,n){},t}(),hb=db("OpenTelemetry Context Key SPAN");function pb(t){return t.getValue(hb)||void 0}function _ee(){return pb(Sg.getInstance().active())}function gb(t,e){return t.setValue(hb,e)}function jee(t){return t.deleteValue(hb)}function Ree(t,e){return gb(t,new ou(e))}function X9(t){var e;return(e=pb(t))===null||e===void 0?void 0:e.spanContext()}var Dee=/^([0-9a-f]{32})$/i,$ee=/^[0-9a-f]{16}$/i;function U9(t){return Dee.test(t)&&t!==W9}function Mee(t){return $ee.test(t)&&t!==V9}function wg(t){return U9(t.traceId)&&Mee(t.spanId)}function Nee(t){return new ou(t)}var Hm=Sg.getInstance(),G9=function(){function t(){}return t.prototype.startSpan=function(e,n,r){r===void 0&&(r=Hm.active());var i=!!(n!=null&&n.root);if(i)return new ou;var o=r&&X9(r);return Bee(o)&&wg(o)?new ou(o):new ou},t.prototype.startActiveSpan=function(e,n,r,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);var l=s??Hm.active(),c=this.startSpan(e,o,l),u=gb(l,c);return Hm.with(u,a,void 0,c)}},t}();function Bee(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var Qee=new G9,Lee=function(){function t(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}return t.prototype.startSpan=function(e,n,r){return this._getTracer().startSpan(e,n,r)},t.prototype.startActiveSpan=function(e,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Qee},t}(),Fee=function(){function t(){}return t.prototype.getTracer=function(e,n,r){return new G9},t}(),zee=new Fee,SE=function(){function t(){}return t.prototype.getTracer=function(e,n,r){var i;return(i=this.getDelegateTracer(e,n,r))!==null&&i!==void 0?i:new Lee(this,e,n,r)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:zee},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,n,r)},t}(),hp;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(hp||(hp={}));var Ky;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(Ky||(Ky={}));var ex;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(ex||(ex={}));var Zo=Sg.getInstance(),lt=ts.instance(),Vee=function(){function t(){}return t.prototype.inject=function(e,n){},t.prototype.extract=function(e,n){return e},t.prototype.fields=function(){return[]},t}(),mb=db("OpenTelemetry Baggage Key");function Y9(t){return t.getValue(mb)||void 0}function Wee(){return Y9(Sg.getInstance().active())}function Zee(t,e){return t.setValue(mb,e)}function Xee(t){return t.deleteValue(mb)}var qm="propagation",Uee=new Vee,Gee=function(){function t(){this.createBaggage=Oee,this.getBaggage=Y9,this.getActiveBaggage=Wee,this.setBaggage=Zee,this.deleteBaggage=Xee}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Og(qm,e,ts.instance())},t.prototype.inject=function(e,n,r){return r===void 0&&(r=Cee),this._getGlobalPropagator().inject(e,n,r)},t.prototype.extract=function(e,n,r){return r===void 0&&(r=wee),this._getGlobalPropagator().extract(e,n,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){bg(qm,ts.instance())},t.prototype._getGlobalPropagator=function(){return Dl(qm)||Uee},t}(),su=Gee.getInstance(),Jm="trace",Yee=function(){function t(){this._proxyTracerProvider=new SE,this.wrapSpanContext=Nee,this.isSpanContextValid=wg,this.deleteSpan=jee,this.getSpan=pb,this.getActiveSpan=_ee,this.getSpanContext=X9,this.setSpan=gb,this.setSpanContext=Ree}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var n=Og(Jm,this._proxyTracerProvider,ts.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},t.prototype.getTracerProvider=function(){return Dl(Jm)||this._proxyTracerProvider},t.prototype.getTracer=function(e,n){return this.getTracerProvider().getTracer(e,n)},t.prototype.disable=function(){bg(Jm,ts.instance()),this._proxyTracerProvider=new SE},t}(),Ur=Yee.getInstance();const H9=db("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Hee(t){return t.setValue(H9,!0)}function vb(t){return t.getValue(H9)===!0}const qee="=",tx=";",nx=",",Km="baggage",Jee=180,Kee=4096,ete=8192;function tte(t){return t.reduce((e,n)=>{const r=`${e}${e!==""?nx:""}${n}`;return r.length>ete?e:r},"")}function nte(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=tx+n.metadata.toString()),r})}function rte(t){const e=t.split(tx);if(e.length<=0)return;const n=e.shift();if(!n)return;const r=n.indexOf(qee);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let s;return e.length>0&&(s=bee(e.join(tx))),{key:i,value:o,metadata:s}}class ite{inject(e,n,r){const i=su.getBaggage(e);if(!i||vb(e))return;const o=nte(i).filter(a=>a.length<=Kee).slice(0,Jee),s=tte(o);s.length>0&&r.set(n,Km,s)}extract(e,n,r){const i=r.get(n,Km),o=Array.isArray(i)?i.join(nx):i;if(!o)return e;const s={};return o.length===0||(o.split(nx).forEach(l=>{const c=rte(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:su.setBaggage(e,su.createBaggage(s))}fields(){return[Km]}}function Gd(t){const e={};if(typeof t!="object"||t==null)return e;for(const[n,r]of Object.entries(t)){if(!ote(n)){lt.warn(`Invalid attribute key: ${n}`);continue}if(!q9(r)){lt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}function ote(t){return typeof t=="string"&&t.length>0}function q9(t){return t==null?!0:Array.isArray(t)?ste(t):J9(t)}function ste(t){let e;for(const n of t)if(n!=null){if(!e){if(J9(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function J9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function ate(){return t=>{lt.error(lte(t))}}function lte(t){return typeof t=="string"?t:JSON.stringify(cte(t))}function cte(t){const e={};let n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;const i=n[r];i&&(e[r]=String(i))}),n=Object.getPrototypeOf(n);return e}let ute=ate();function $l(t){try{ute(t)}catch{}}const al=performance,fte="2.0.1",ev="exception.message",dte="exception.stacktrace",tv="exception.type",K9="service.name",hte="service.version",rx="telemetry.sdk.language",pte="webjs",ix="telemetry.sdk.name",ox="telemetry.sdk.version",gte="process.runtime.name",nv={[ix]:"opentelemetry",[gte]:"browser",[rx]:pte,[ox]:fte};const mte=9,vte=6,yte=Math.pow(10,vte),pp=Math.pow(10,mte);function Xa(t){const e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*yte);return[n,r]}function e8(){let t=al.timeOrigin;if(typeof t!="number"){const e=al;t=e.timing&&e.timing.fetchStart}return t}function xte(t){const e=Xa(e8()),n=Xa(typeof t=="number"?t:al.now());return n8(e,n)}function Ote(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=pp),[n,r]}function bte(t){return t[0]*pp+t[1]}function t8(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function wE(t){return t8(t)||typeof t=="number"||t instanceof Date}function n8(t,e){const n=[t[0]+e[0],t[1]+e[1]];return n[1]>=pp&&(n[1]-=pp,n[0]+=1),n}var wi;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(wi||(wi={}));class Ste{constructor(e={}){me(this,"_propagators");me(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(const i of this._propagators)try{i.inject(e,n,r)}catch(o){lt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(s){lt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const sx="[_0-9a-z-*/]",wte=`[a-z]${sx}{0,255}`,Cte=`[a-z0-9]${sx}{0,240}@[a-z]${sx}{0,13}`,kte=new RegExp(`^(?:${wte}|${Cte})$`),Ate=/^[ -~]{0,255}[!-~]$/,Ete=/,|=/;function Pte(t){return kte.test(t)}function Ite(t){return Ate.test(t)&&!Ete.test(t)}const CE=32,Tte=512,kE=",",AE="=";class yb{constructor(e){me(this,"_internalState",new Map);e&&this._parse(e)}set(e,n){const r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){const n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+AE+this.get(n)),e),[]).join(kE)}_parse(e){e.length>Tte||(this._internalState=e.split(kE).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(AE);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,r.length);Pte(s)&&Ite(a)&&n.set(s,a)}return n},new Map),this._internalState.size>CE&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,CE))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new yb;return e._internalState=new Map(this._internalState),e}}const rv="traceparent",iv="tracestate",_te="00",jte="(?!ff)[\\da-f]{2}",Rte="(?![0]{32})[\\da-f]{32}",Dte="(?![0]{16})[\\da-f]{16}",$te="[\\da-f]{2}",Mte=new RegExp(`^\\s?(${jte})-(${Rte})-(${Dte})-(${$te})(-.*)?\\s?$`);function Nte(t){const e=Mte.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Bte{inject(e,n,r){const i=Ur.getSpanContext(e);if(!i||vb(e)||!wg(i))return;const o=`${_te}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||yo.NONE).toString(16)}`;r.set(n,rv,o),i.traceState&&r.set(n,iv,i.traceState.serialize())}extract(e,n,r){const i=r.get(n,rv);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nte(o);if(!s)return e;s.isRemote=!0;const a=r.get(n,iv);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new yb(typeof l=="string"?l:void 0)}return Ur.setSpanContext(e,s)}fields(){return[rv,iv]}}const Qte="[object Object]",Lte="[object Null]",Fte="[object Undefined]",zte=Function.prototype,r8=zte.toString,Vte=r8.call(Object),Wte=Object.getPrototypeOf,i8=Object.prototype,o8=i8.hasOwnProperty,Is=Symbol?Symbol.toStringTag:void 0,s8=i8.toString;function EE(t){if(!Zte(t)||Xte(t)!==Qte)return!1;const e=Wte(t);if(e===null)return!0;const n=o8.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&r8.call(n)===Vte}function Zte(t){return t!=null&&typeof t=="object"}function Xte(t){return t==null?t===void 0?Fte:Lte:Is&&Is in Object(t)?Ute(t):Gte(t)}function Ute(t){const e=o8.call(t,Is),n=t[Is];let r=!1;try{t[Is]=void 0,r=!0}catch{}const i=s8.call(t);return r&&(e?t[Is]=n:delete t[Is]),i}function Gte(t){return s8.call(t)}const Yte=20;function Hte(...t){let e=t.shift();const n=new WeakMap;for(;t.length>0;)e=a8(e,t.shift(),0,n);return e}function ov(t){return gp(t)?t.slice():t}function a8(t,e,n=0,r){let i;if(!(n>Yte)){if(n++,Yd(t)||Yd(e)||l8(e))i=ov(e);else if(gp(t)){if(i=t.slice(),gp(e))for(let o=0,s=e.length;o<s;o++)i.push(ov(e[o]));else if(wc(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=ov(e[l])}}}else if(wc(t))if(wc(e)){if(!qte(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(Yd(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],f=c;if(PE(t,l,r)||PE(e,l,r))delete i[l];else{if(wc(u)&&wc(f)){const h=r.get(u)||[],d=r.get(f)||[];h.push({obj:t,key:l}),d.push({obj:e,key:l}),r.set(u,h),r.set(f,d)}i[l]=a8(i[l],c,n,r)}}}}else i=e;return i}}function PE(t,e,n){const r=n.get(t[e])||[];for(let i=0,o=r.length;i<o;i++){const s=r[i];if(s.key===e&&s.obj===t)return!0}return!1}function gp(t){return Array.isArray(t)}function l8(t){return typeof t=="function"}function wc(t){return!Yd(t)&&!gp(t)&&!l8(t)&&typeof t=="object"}function Yd(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function qte(t,e){return!(!EE(t)||!EE(e))}class Jte{constructor(){me(this,"_promise");me(this,"_resolve");me(this,"_reject");this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Kte{constructor(e,n){me(this,"_callback");me(this,"_that");me(this,"_isCalled",!1);me(this,"_deferred",new Jte);this._callback=e,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function ene(){return"unknown_service"}const Fc=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class mp{constructor(e){me(this,"_rawAttributes");me(this,"_asyncAttributesPending",!1);me(this,"_memoizedAttributes");const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Fc(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=IE(this._rawAttributes)}static FromAttributeList(e){const n=new mp({});return n._rawAttributes=IE(e),n._asyncAttributesPending=e.filter(([r,i])=>Fc(i)).length>0,n}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,Fc(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&<.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[n,r]of this._rawAttributes){if(Fc(r)){lt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??(e[n]=r))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:mp.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function c8(t){return mp.FromAttributeList(Object.entries(t))}function tne(){return c8({[K9]:ene(),[rx]:nv[rx],[ix]:nv[ix],[ox]:nv[ox]})}function IE(t){return t.map(([e,n])=>Fc(n)?[e,n.catch(r=>{lt.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}const nne="exception";class rne{constructor(e){me(this,"_spanContext");me(this,"kind");me(this,"parentSpanContext");me(this,"attributes",{});me(this,"links",[]);me(this,"events",[]);me(this,"startTime");me(this,"resource");me(this,"instrumentationScope");me(this,"_droppedAttributesCount",0);me(this,"_droppedEventsCount",0);me(this,"_droppedLinksCount",0);me(this,"name");me(this,"status",{code:ex.UNSET});me(this,"endTime",[0,0]);me(this,"_ended",!1);me(this,"_duration",[-1,-1]);me(this,"_spanProcessor");me(this,"_spanLimits");me(this,"_attributeValueLengthLimit");me(this,"_performanceStartTime");me(this,"_performanceOffset");me(this,"_startTimeProvided");const n=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=al.now(),this._performanceOffset=n-(this._performanceStartTime+e8()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return lt.warn(`Invalid attribute key: ${e}`),this;if(!q9(n))return lt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this)}setAttributes(e){for(const[n,r]of Object.entries(e))this.setAttribute(n,r);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return lt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&<.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),wE(n)&&(wE(r)||(r=n),n=void 0);const o=Gd(n);return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(lt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){lt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Ote(this.startTime,this.endTime),this._duration[0]<0&&(lt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&<.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=al.now())return xte(e+this._performanceOffset);if(typeof e=="number")return Xa(e);if(e instanceof Date)return Xa(e.getTime());if(t8(e))return e;if(this._startTimeProvided)return Xa(Date.now());const n=al.now()-this._performanceStartTime;return n8(this.startTime,Xa(n))}isRecording(){return this._ended===!1}recordException(e,n){const r={};typeof e=="string"?r[ev]=e:e&&(e.code?r[tv]=e.code.toString():e.name&&(r[tv]=e.name),e.message&&(r[ev]=e.message),e.stack&&(r[dte]=e.stack)),r[tv]||r[ev]?this.addEvent(nne,r,n):lt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);lt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){const n=this._attributeValueLengthLimit;return n<=0?(lt.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}}var Ml;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ml||(Ml={}));class vp{shouldSample(){return{decision:Ml.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ll{shouldSample(){return{decision:Ml.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class ud{constructor(e){me(this,"_root");me(this,"_remoteParentSampled");me(this,"_remoteParentNotSampled");me(this,"_localParentSampled");me(this,"_localParentNotSampled");this._root=e.root,this._root||($l(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ll),this._remoteParentSampled=e.remoteParentSampled??new ll,this._remoteParentNotSampled=e.remoteParentNotSampled??new vp,this._localParentSampled=e.localParentSampled??new ll,this._localParentNotSampled=e.localParentNotSampled??new vp}shouldSample(e,n,r,i,o,s){const a=Ur.getSpanContext(e);return!a||!wg(a)?this._root.shouldSample(e,n,r,i,o,s):a.isRemote?a.traceFlags&yo.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,s):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,s):a.traceFlags&yo.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,s):this._localParentNotSampled.shouldSample(e,n,r,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class TE{constructor(e=0){me(this,"_ratio");me(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:U9(n)&&this._accumulate(n)<this._upperBound?Ml.RECORD_AND_SAMPLED:Ml.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let r=0;r<e.length/8;r++){const i=r*8,o=parseInt(e.slice(i,i+8),16);n=(n^o)>>>0}return n}}const _E=1;function u8(){return{sampler:f8(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function f8(){const t="parentbased_always_on";switch(t){case"always_on":return new ll;case"always_off":return new vp;case"parentbased_always_on":return new ud({root:new ll});case"parentbased_always_off":return new ud({root:new vp});case"traceidratio":return new TE(jE());case"parentbased_traceidratio":return new ud({root:new TE(jE())});default:return lt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new ud({root:new ll})}}function jE(){return lt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${_E}.`),_E}const ine=128,one=1/0;function sne(t){const e={sampler:f8()},n=u8(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}function ane(t){var n,r,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((n=t.spanLimits)==null?void 0:n.attributeCountLimit)??((r=t.generalLimits)==null?void 0:r.attributeCountLimit)??void 0??void 0??ine,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??one,Object.assign({},t,{spanLimits:e})}class lne{constructor(e,n){me(this,"_exporter");me(this,"_maxExportBatchSize");me(this,"_maxQueueSize");me(this,"_scheduledDelayMillis");me(this,"_exportTimeoutMillis");me(this,"_isExporting",!1);me(this,"_finishedSpans",[]);me(this,"_timer");me(this,"_shutdownOnce");me(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new Kte(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(lt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&yo.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&<.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(lt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,n)=>{const r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Zo.with(Hee(Zo.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(r),a.code===wi.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{$l(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,$l(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class cne extends lne{constructor(n,r){super(n,r);me(this,"_visibilityChangeListener");me(this,"_pageHideListener");this.onInit(r)}onInit(n){(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{$l(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{$l(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const une=8,fne=16;class dne{constructor(){me(this,"generateTraceId",RE(fne));me(this,"generateSpanId",RE(une))}}const fd=Array(32);function RE(t){return function(){for(let n=0;n<t*2;n++)fd[n]=Math.floor(Math.random()*16)+48,fd[n]>=58&&(fd[n]+=39);return String.fromCharCode.apply(null,fd.slice(0,t*2))}}class hne{constructor(e,n,r,i){me(this,"_sampler");me(this,"_generalLimits");me(this,"_spanLimits");me(this,"_idGenerator");me(this,"instrumentationScope");me(this,"_resource");me(this,"_spanProcessor");const o=sne(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new dne,this._resource=r,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,n={},r=Zo.active()){n.root&&(r=Ur.deleteSpan(r));const i=Ur.getSpan(r);if(vb(r))return lt.debug("Instrumentation suppressed, returning Noop Span"),Ur.wrapSpanContext(Z9);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Ur.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=n.kind??Ky.INTERNAL,f=(n.links??[]).map(x=>({context:x.context,attributes:Gd(x.attributes)})),h=Gd(n.attributes),d=this._sampler.shouldSample(r,l,e,u,h,f);c=d.traceState??c;const g=d.decision===hp.RECORD_AND_SAMPLED?yo.SAMPLED:yo.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(d.decision===hp.NOT_RECORD)return lt.debug("Recording is off, propagating context in a non-recording span"),Ur.wrapSpanContext(p);const v=Gd(Object.assign(h,d.attributes));return new rne({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:p,name:e,kind:u,links:f,parentSpanContext:a,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,n,r,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);const l=s??Zo.active(),c=this.startSpan(e,o,l),u=Ur.setSpan(l,c);return Zo.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class pne{constructor(e){me(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{$l(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(const r of this._spanProcessors)r.onStart(e,n)}onEnd(e){for(const n of this._spanProcessors)n.onEnd(e)}shutdown(){const e=[];for(const n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}}var Ts;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ts||(Ts={}));class gne{constructor(e={}){me(this,"_config");me(this,"_tracers",new Map);me(this,"_resource");me(this,"_activeSpanProcessor");var i;const n=Hte({},u8(),ane(e));this._resource=n.resource??tne(),this._config=Object.assign({},n,{resource:this._resource});const r=[];(i=e.spanProcessors)!=null&&i.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new pne(r)}getTracer(e,n,r){const i=`${e}@${n||""}:${(r==null?void 0:r.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new hne({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=Ts.timeout},e);r.forceFlush().then(()=>{clearTimeout(s),o!==Ts.timeout&&(o=Ts.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ts.error,i(a)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const s=o.filter(a=>a!==Ts.resolved);s.length>0?i(s):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class mne{constructor(){me(this,"_enabled",!1);me(this,"_currentContext",Ma)}_bindFunction(e=Ma,n){const r=this,i=function(...o){return r.with(e,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n}disable(){return this._currentContext=Ma,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ma,this)}with(e,n,r,...i){const o=this._currentContext;this._currentContext=e||Ma;try{return n.call(r,...i)}finally{this._currentContext=o}}}function vne(t){if(t!==null){if(t===void 0){const e=new mne;e.enable(),Zo.setGlobalContextManager(e);return}t.enable(),Zo.setGlobalContextManager(t)}}function yne(t){if(t!==null){if(t===void 0){su.setGlobalPropagator(new Ste({propagators:[new Bte,new ite]}));return}su.setGlobalPropagator(t)}}class xne extends gne{constructor(e={}){super(e)}register(e={}){Ur.setGlobalTracerProvider(this),yne(e.propagator),vne(e.contextManager)}}class One{constructor(e){me(this,"_delegate");this._delegate=e}export(e,n){this._delegate.export(e,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class DE extends Error{constructor(n,r,i){super(n);me(this,"code");me(this,"name","OTLPExporterError");me(this,"data");this.data=i,this.code=r}}function bne(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Sne(t){if(t!=null)return()=>t}function wne(t,e,n){return{timeoutMillis:bne(t.timeoutMillis??e.timeoutMillis??n.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??n.concurrencyLimit,compression:t.compression??e.compression??n.compression}}function Cne(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class kne{constructor(e){me(this,"_concurrencyLimit");me(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const n=()=>{const r=this._sendingPromises.indexOf(e);this._sendingPromises.splice(r,1)};e.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Ane(t){return new kne(t.concurrencyLimit)}function Ene(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Pne(){return{handleResponse(t){t==null||!Ene(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||lt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Ine{constructor(e,n,r,i,o){me(this,"_transport");me(this,"_serializer");me(this,"_responseHandler");me(this,"_promiseQueue");me(this,"_timeout");me(this,"_diagLogger");this._transport=e,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=lt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,n){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:wi.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(e);if(r==null){n({code:wi.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:wi.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:wi.FAILED,error:i.error});return}else i.status==="retryable"?n({code:wi.FAILED,error:new DE("Export failed with retryable status")}):n({code:wi.FAILED,error:new DE("Export failed with unknown error")})},i=>n({code:wi.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Tne(t,e){return new Ine(t.transport,t.serializer,Pne(),t.promiseHandler,e.timeout)}function d8(t,e,n){return Tne({transport:n,serializer:e,promiseHandler:Ane(t)},{timeout:t.timeoutMillis})}function $E(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function h8(t){const e=new Uint8Array(t.length/2);let n=0;for(let r=0;r<t.length;r+=2){const i=$E(t.charCodeAt(r)),o=$E(t.charCodeAt(r+1));e[n++]=i<<4|o}return e}function p8(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function _ne(t){const e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function jne(t){const e=p8(t);return _ne(e)}function Rne(t){return p8(t).toString()}const Dne=typeof BigInt<"u"?Rne:bte;function ME(t){return t}function $ne(t){if(t!==void 0)return h8(t)}const Mne={encodeHrTime:jne,encodeSpanContext:h8,encodeOptionalSpanContext:$ne};function Nne(t){return t===void 0?Mne:{encodeHrTime:Dne,encodeSpanContext:ME,encodeOptionalSpanContext:ME}}function Bne(t){return{attributes:Cg(t.attributes),droppedAttributesCount:0}}function Qne(t){return{name:t.name,version:t.version}}function Cg(t){return Object.keys(t).map(e=>g8(e,t[e]))}function g8(t,e){return{key:t,value:m8(e)}}function m8(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(m8)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([n,r])=>g8(n,r))}}:{}}function Lne(t,e){var o,s,a;const n=t.spanContext(),r=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:i,traceState:(a=n.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Cg(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>zne(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:r.code,message:r.message},links:t.links.map(l=>Fne(l,e)),droppedLinksCount:t.droppedLinksCount}}function Fne(t,e){var n;return{attributes:t.attributes?Cg(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function zne(t,e){return{attributes:t.attributes?Cg(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Vne(t,e){const n=Nne(e);return{resourceSpans:Zne(t,n)}}function Wne(t){const e=new Map;for(const n of t){let r=e.get(n.resource);r||(r=new Map,e.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return e}function Zne(t,e){const n=Wne(t),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const h=u.value;if(h.length>0){const d=h.map(g=>Lne(g,e));l.push({scope:Qne(h[0].instrumentationScope),spans:d,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=c.next()}const f={resource:Bne(s),scopeSpans:l,schemaUrl:void 0};r.push(f),o=i.next()}return r}const Xne={serializeRequest:t=>{const e=Vne(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},Une=5,Gne=1e3,Yne=5e3,Hne=1.5,NE=.2;function qne(){return Math.random()*(2*NE)-NE}class Jne{constructor(e){me(this,"_transport");this._transport=e}retry(e,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,n).then(i,o)},r)})}async send(e,n){const r=Date.now()+n;let i=await this._transport.send(e,n),o=Une,s=Gne;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Yne)+qne(),0);s=s*Hne;const l=i.retryInMillis??a,c=r-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function v8(t){return new Jne(t.transport)}function Kne(t){return[429,502,503,504].includes(t)}function ere(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const n=new Date(t).getTime()-Date.now();return n>=0?n:0}class tre{constructor(e){me(this,"_parameters");this._parameters=e}send(e,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(lt.debug("XHR success"),r({status:"success"})):i.status&&Kne(i.status)?r({status:"retryable",retryInMillis:ere(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function nre(t){return new tre(t)}class rre{constructor(e){me(this,"_params");this._params=e}send(e){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(lt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function ire(t){return new rre(t)}function ore(t,e){return d8(t,e,v8({transport:nre(t)}))}function sre(t,e){return d8(t,e,v8({transport:ire({url:t.url,blobType:t.headers()["Content-Type"]})}))}function are(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([n,r])=>{typeof r<"u"?e[n]=String(r):lt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),e}}function lre(t,e,n){const r={...n()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,r))}function cre(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function ure(t,e,n){return{...wne(t,e,n),headers:lre(are(t.headers),e.headers,n.headers),url:cre(t.url)??e.url??n.url,agentOptions:t.agentOptions??e.agentOptions??n.agentOptions}}function fre(t,e){return{...Cne(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function dre(t,e,n){return ure({url:t.url,timeoutMillis:t.timeoutMillis,headers:Sne(t.headers),concurrencyLimit:t.concurrencyLimit},{},fre(n,e))}function hre(t,e,n,r){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=dre(t,n,r);return i?ore(o,e):sre(o,e)}class pre extends One{constructor(e={}){super(hre(e,Xne,"v1/traces",{"Content-Type":"application/json"}))}}function Hd(t){var e=new Error(t);return e.source="ulid",e}var xb="0123456789ABCDEFGHJKMNPQRSTVWXYZ",au=xb.length,BE=Math.pow(2,48)-1,gre=10,mre=16;function vre(t){var e=Math.floor(t()*au);return e===au&&(e=au-1),xb.charAt(e)}function yre(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>BE)throw Hd("cannot encode time greater than "+BE);if(t<0)throw Hd("time must be positive");if(Number.isInteger(t)===!1)throw Hd("time must be an integer");for(var n=void 0,r="";e>0;e--)n=t%au,r=xb.charAt(n)+r,t=(t-n)/au;return r}function xre(t,e){for(var n="";t>0;t--)n=vre(e)+n;return n}function Ore(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Hd("secure crypto unusable, insecure Math.random not allowed")}function bre(t){return t||(t=Ore()),function(n){return isNaN(n)&&(n=Date.now()),yre(n,gre)+xre(mre,t)}}var Cc=bre();class Sre{constructor(){me(this,"config",null);me(this,"tracerProvider",null);me(this,"tracer",null);me(this,"useCloudEventData");me(this,"updateCloudEventData",e=>{this.useCloudEventData=e});me(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase());this.useCloudEventData=()=>({"cloudevents.organization.id":"","cloudevents.organization.slug":"","cloudevents.project.id":"","cloudevents.project.slug":"","cloudevents.product_type":"","cloudevents.source_details.user":"Anonymous","cloudevents.source_details.object":"user","cloudevents.source_details.uri":window.location.href,"cloudevents.request.source":location.pathname})}init(e){if(!e.collectorUrl||!e.serviceName||!e.serviceVersion)return;this.useCloudEventData=()=>({"cloudevents.organization.id":"","cloudevents.organization.slug":"","cloudevents.project.id":"","cloudevents.project.slug":"","cloudevents.product_type":"","cloudevents.source_details.user":"Anonymous","cloudevents.source_details.object":"user","cloudevents.source_details.uri":window.location.href,"cloudevents.request.source":location.pathname}),this.config=e;const n=`ses_${Cc()}`;this.tracerProvider=new xne({resource:c8({[K9]:this.config.serviceName,[hte]:this.config.serviceVersion,session_id:n}),spanProcessors:[new cne(new pre({url:`${this.config.collectorUrl}/v1/traces`,headers:{}}))]}),this.tracerProvider.register(),this.tracer=this.tracerProvider.getTracer(this.config.tracerName)}send(e,n){var r,i;try{if(!this.tracer||!this.config)return;const o=new Date,s=Cc(),a=this.useCloudEventData(),l=this.tracer.startSpan(`event.${e}`,{attributes:{"cloudevents.event_id":s,"cloudevents.page.uri":location.href,"cloudevents.event_version":(r=this.config)==null?void 0:r.version,"cloudevents.event_spec_version":"1.0","cloudevents.event_data_content_type":"application/json; charset=utf-8","cloudevents.event_origin":"ui","cloudevents.event_time":new Date().toISOString(),"cloudevents.event_source_details.id":Cc(),"cloudevents.event_type":`event.${e}`},startTime:o});Object.entries(a).forEach(([c,u])=>{l.setAttribute(c,u)}),Object.entries(n).forEach(([c,u])=>{const f=c.replace(/([A-Z])/g,"_$1").toLowerCase();u!==void 0&&l.setAttribute(`cloudevents.event_data.${f}`,u)}),l.end(o)}catch(o){(i=this.config)!=null&&i.isProd||console.error("Event reporting failed:",o)}}processAttributes(e,n,r=!0){var a;const i=Cc(),o=this.useCloudEventData(),s={"cloudevents.event_id":i,"cloudevents.event_type":e,"cloudevents.event_version":(a=this.config)==null?void 0:a.version,"cloudevents.event_object":"event","cloudevents.event_spec_version":"1.0","cloudevents.event_data_content_type":"application/json; charset=utf-8","cloudevents.event_origin":"ui","cloudevents.event_time":new Date().toISOString(),"cloudevents.event_source_details.id":Cc()};return r&&Object.entries(o).forEach(([l,c])=>{s[l]=c}),Object.entries(n).forEach(([l,c])=>{const u=l.replace(/([A-Z])/g,"_$1").toLowerCase();c!==void 0&&(s[`cloudevents.event_data.${u}`]=c)}),s}startSpan(e,n,r){var i;try{if(!this.tracer)return;let o;const s=this.tracer.startSpan(e,{attributes:this.processAttributes(e,n,!r),root:!r},r);return r||(o=Ur.setSpan(Zo.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:o}}catch(o){(i=this.config)!=null&&i.isProd||console.error("Event reporting failed:",o)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}}function wre(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Cre=wre(),kre=D.createContext(Cre);function ri(){const t=D.useContext(kre);return M5(t)}function Are(t,e){const{apps:{apiId:n}}=ut(),{corsProxyUrl:r,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=ri();r.set((t==null?void 0:t.corsProxyUrl)??QQ),o.set(t==null?void 0:t.mockServer),n.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),D.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const kg=D.createContext({});function Ob(){return D.useContext(kg)||{}}const Ere="0.15.0-next.5",Pre={version:Ere};class Ire{constructor(){me(this,"client");me(this,"_isInitialized",!1);this.client=new Sre}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:Pre.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({...r,...e}),this._isInitialized=!0}sendEvent(e,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,n)}catch(r){console.error("Failed to send telemetry event:",r)}}}const sv=new Ire;function it(){const{telemetry:t}=Ob();return sv.isInitialized||sv.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,n)=>{sv.sendEvent(e,n)}}}const Zn=800;var Tre=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _re(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,f=t.onMenuClose,h=t.onMenuOpen,d=t.value,g=br(t,Tre),p=D.useState(a!==void 0?a:n),v=Fe(p,2),y=v[0],x=v[1],O=D.useState(l!==void 0?l:i),S=Fe(O,2),b=S[0],w=S[1],C=D.useState(d!==void 0?d:s),I=Fe(C,2),A=I[0],T=I[1],_=D.useCallback(function(q,Y){typeof c=="function"&&c(q,Y),T(q)},[c]),E=D.useCallback(function(q,Y){var z;typeof u=="function"&&(z=u(q,Y)),x(z!==void 0?z:q)},[u]),$=D.useCallback(function(){typeof h=="function"&&h(),w(!0)},[h]),k=D.useCallback(function(){typeof f=="function"&&f(),w(!1)},[f]),L=a!==void 0?a:y,Z=l!==void 0?l:b,X=d!==void 0?d:A;return ye(ye({},g),{},{inputValue:L,menuIsOpen:Z,onChange:_,onInputChange:E,onMenuClose:k,onMenuOpen:$,value:X})}function jre(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Rre(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Dre=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rre(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
320
|
+
`;function rf({input:t,onSave:e,onCancel:n,...r}){const[i,o]=D.useState(!!t.isSecret),s=({name:a,value:l})=>{e({...t,name:a,value:l,isSecret:i})};return m.jsx(z9,{variable:t,onSave:s,onCancel:n,...r,children:m.jsx(Jy,{children:m.jsx(qK,{value:i,onChange:a=>o(a),title:"Make it secret"})})})}var iee=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Ds="1.9.0",bE=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function oee(t){var e=new Set([t]),n=new Set,r=t.match(bE);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(l){return l===t};function o(a){return n.add(a),!1}function s(a){return e.add(a),!0}return function(l){if(e.has(l))return!0;if(n.has(l))return!1;var c=l.match(bE);if(!c)return o(l);var u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||i.major!==u.major?o(l):i.major===0?i.minor===u.minor&&i.patch<=u.patch?s(l):o(l):i.minor<=u.minor?s(l):o(l)}}var see=oee(Ds),aee=Ds.split(".")[0],Nu=Symbol.for("opentelemetry.js.api."+aee),Bu=iee;function Og(t,e,n,r){var i;r===void 0&&(r=!1);var o=Bu[Nu]=(i=Bu[Nu])!==null&&i!==void 0?i:{version:Ds};if(!r&&o[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(o.version!==Ds){var s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+t+" does not match previously registered API v"+Ds);return n.error(s.stack||s.message),!1}return o[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+Ds+"."),!0}function Dl(t){var e,n,r=(e=Bu[Nu])===null||e===void 0?void 0:e.version;if(!(!r||!see(r)))return(n=Bu[Nu])===null||n===void 0?void 0:n[t]}function bg(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+Ds+".");var n=Bu[Nu];n&&delete n[t]}var lee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},cee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},uee=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Sc("verbose",this._namespace,e)},t}();function Sc(t,e,n){var r=Dl("diag");if(r)return n.unshift(e),r[t].apply(r,cee([],lee(n),!1))}var hr;(function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})(hr||(hr={}));function fee(t,e){t<hr.NONE?t=hr.NONE:t>hr.ALL&&(t=hr.ALL),e=e||{};function n(r,i){var o=e[r];return typeof o=="function"&&t>=i?o.bind(e):function(){}}return{error:n("error",hr.ERROR),warn:n("warn",hr.WARN),info:n("info",hr.INFO),debug:n("debug",hr.DEBUG),verbose:n("verbose",hr.VERBOSE)}}var dee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},hee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},pee="diag",ts=function(){function t(){function e(i){return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=Dl("diag");if(a)return a[i].apply(a,hee([],dee(o),!1))}}var n=this,r=function(i,o){var s,a,l;if(o===void 0&&(o={logLevel:hr.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((s=c.stack)!==null&&s!==void 0?s:c.message),!1}typeof o=="number"&&(o={logLevel:o});var u=Dl("diag"),f=fee((a=o.logLevel)!==null&&a!==void 0?a:hr.INFO,i);if(u&&!o.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),f.warn("Current logger will overwrite one already registered from "+h)}return Og("diag",f,n,!0)};n.setLogger=r,n.disable=function(){bg(pee,n)},n.createComponentLogger=function(i){return new uee(i)},n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),gee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},mee=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vee=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var n=this._entries.get(e);if(n)return Object.assign({},n)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var n=gee(e,2),r=n[0],i=n[1];return[r,i]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new t(this._entries);try{for(var s=mee(r),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){e={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o},t.prototype.clear=function(){return new t},t}(),yee=Symbol("BaggageEntryMetadata"),xee=ts.instance();function Oee(t){return t===void 0&&(t={}),new vee(new Map(Object.entries(t)))}function bee(t){return typeof t!="string"&&(xee.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:yee,toString:function(){return t}}}function db(t){return Symbol.for(t)}var See=function(){function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var o=new t(n._currentContext);return o._currentContext.set(r,i),o},n.deleteValue=function(r){var i=new t(n._currentContext);return i._currentContext.delete(r),i}}return t}(),Ma=new See,wee={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},Cee={set:function(t,e,n){t!=null&&(t[e]=n)}},kee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Aee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Eee=function(){function t(){}return t.prototype.active=function(){return Ma},t.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,Aee([r],kee(i),!1))},t.prototype.bind=function(e,n){return n},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),Pee=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Iee=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},Ym="context",Tee=new Eee,Sg=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return Og(Ym,e,ts.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,n,r){for(var i,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];return(i=this._getContextManager()).with.apply(i,Iee([e,n,r],Pee(o),!1))},t.prototype.bind=function(e,n){return this._getContextManager().bind(e,n)},t.prototype._getContextManager=function(){return Dl(Ym)||Tee},t.prototype.disable=function(){this._getContextManager().disable(),bg(Ym,ts.instance())},t}(),yo;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(yo||(yo={}));var V9="0000000000000000",W9="00000000000000000000000000000000",Z9={traceId:W9,spanId:V9,traceFlags:yo.NONE},ou=function(){function t(e){e===void 0&&(e=Z9),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,n){return this},t.prototype.addLink=function(e){return this},t.prototype.addLinks=function(e){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,n){},t}(),hb=db("OpenTelemetry Context Key SPAN");function pb(t){return t.getValue(hb)||void 0}function _ee(){return pb(Sg.getInstance().active())}function gb(t,e){return t.setValue(hb,e)}function jee(t){return t.deleteValue(hb)}function Ree(t,e){return gb(t,new ou(e))}function X9(t){var e;return(e=pb(t))===null||e===void 0?void 0:e.spanContext()}var Dee=/^([0-9a-f]{32})$/i,$ee=/^[0-9a-f]{16}$/i;function U9(t){return Dee.test(t)&&t!==W9}function Mee(t){return $ee.test(t)&&t!==V9}function wg(t){return U9(t.traceId)&&Mee(t.spanId)}function Nee(t){return new ou(t)}var Hm=Sg.getInstance(),G9=function(){function t(){}return t.prototype.startSpan=function(e,n,r){r===void 0&&(r=Hm.active());var i=!!(n!=null&&n.root);if(i)return new ou;var o=r&&X9(r);return Bee(o)&&wg(o)?new ou(o):new ou},t.prototype.startActiveSpan=function(e,n,r,i){var o,s,a;if(!(arguments.length<2)){arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);var l=s??Hm.active(),c=this.startSpan(e,o,l),u=gb(l,c);return Hm.with(u,a,void 0,c)}},t}();function Bee(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var Qee=new G9,Lee=function(){function t(e,n,r,i){this._provider=e,this.name=n,this.version=r,this.options=i}return t.prototype.startSpan=function(e,n,r){return this._getTracer().startSpan(e,n,r)},t.prototype.startActiveSpan=function(e,n,r,i){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Qee},t}(),Fee=function(){function t(){}return t.prototype.getTracer=function(e,n,r){return new G9},t}(),zee=new Fee,SE=function(){function t(){}return t.prototype.getTracer=function(e,n,r){var i;return(i=this.getDelegateTracer(e,n,r))!==null&&i!==void 0?i:new Lee(this,e,n,r)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:zee},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(e,n,r)},t}(),hp;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(hp||(hp={}));var Ky;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})(Ky||(Ky={}));var ex;(function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})(ex||(ex={}));var Zo=Sg.getInstance(),lt=ts.instance(),Vee=function(){function t(){}return t.prototype.inject=function(e,n){},t.prototype.extract=function(e,n){return e},t.prototype.fields=function(){return[]},t}(),mb=db("OpenTelemetry Baggage Key");function Y9(t){return t.getValue(mb)||void 0}function Wee(){return Y9(Sg.getInstance().active())}function Zee(t,e){return t.setValue(mb,e)}function Xee(t){return t.deleteValue(mb)}var qm="propagation",Uee=new Vee,Gee=function(){function t(){this.createBaggage=Oee,this.getBaggage=Y9,this.getActiveBaggage=Wee,this.setBaggage=Zee,this.deleteBaggage=Xee}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return Og(qm,e,ts.instance())},t.prototype.inject=function(e,n,r){return r===void 0&&(r=Cee),this._getGlobalPropagator().inject(e,n,r)},t.prototype.extract=function(e,n,r){return r===void 0&&(r=wee),this._getGlobalPropagator().extract(e,n,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){bg(qm,ts.instance())},t.prototype._getGlobalPropagator=function(){return Dl(qm)||Uee},t}(),su=Gee.getInstance(),Jm="trace",Yee=function(){function t(){this._proxyTracerProvider=new SE,this.wrapSpanContext=Nee,this.isSpanContextValid=wg,this.deleteSpan=jee,this.getSpan=pb,this.getActiveSpan=_ee,this.getSpanContext=X9,this.setSpan=gb,this.setSpanContext=Ree}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var n=Og(Jm,this._proxyTracerProvider,ts.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},t.prototype.getTracerProvider=function(){return Dl(Jm)||this._proxyTracerProvider},t.prototype.getTracer=function(e,n){return this.getTracerProvider().getTracer(e,n)},t.prototype.disable=function(){bg(Jm,ts.instance()),this._proxyTracerProvider=new SE},t}(),Ur=Yee.getInstance();const H9=db("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Hee(t){return t.setValue(H9,!0)}function vb(t){return t.getValue(H9)===!0}const qee="=",tx=";",nx=",",Km="baggage",Jee=180,Kee=4096,ete=8192;function tte(t){return t.reduce((e,n)=>{const r=`${e}${e!==""?nx:""}${n}`;return r.length>ete?e:r},"")}function nte(t){return t.getAllEntries().map(([e,n])=>{let r=`${encodeURIComponent(e)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=tx+n.metadata.toString()),r})}function rte(t){const e=t.split(tx);if(e.length<=0)return;const n=e.shift();if(!n)return;const r=n.indexOf(qee);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),o=decodeURIComponent(n.substring(r+1).trim());let s;return e.length>0&&(s=bee(e.join(tx))),{key:i,value:o,metadata:s}}class ite{inject(e,n,r){const i=su.getBaggage(e);if(!i||vb(e))return;const o=nte(i).filter(a=>a.length<=Kee).slice(0,Jee),s=tte(o);s.length>0&&r.set(n,Km,s)}extract(e,n,r){const i=r.get(n,Km),o=Array.isArray(i)?i.join(nx):i;if(!o)return e;const s={};return o.length===0||(o.split(nx).forEach(l=>{const c=rte(l);if(c){const u={value:c.value};c.metadata&&(u.metadata=c.metadata),s[c.key]=u}}),Object.entries(s).length===0)?e:su.setBaggage(e,su.createBaggage(s))}fields(){return[Km]}}function Gd(t){const e={};if(typeof t!="object"||t==null)return e;for(const[n,r]of Object.entries(t)){if(!ote(n)){lt.warn(`Invalid attribute key: ${n}`);continue}if(!q9(r)){lt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?e[n]=r.slice():e[n]=r}return e}function ote(t){return typeof t=="string"&&t.length>0}function q9(t){return t==null?!0:Array.isArray(t)?ste(t):J9(t)}function ste(t){let e;for(const n of t)if(n!=null){if(!e){if(J9(n)){e=typeof n;continue}return!1}if(typeof n!==e)return!1}return!0}function J9(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function ate(){return t=>{lt.error(lte(t))}}function lte(t){return typeof t=="string"?t:JSON.stringify(cte(t))}function cte(t){const e={};let n=t;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(e[r])return;const i=n[r];i&&(e[r]=String(i))}),n=Object.getPrototypeOf(n);return e}let ute=ate();function $l(t){try{ute(t)}catch{}}const al=performance,fte="2.0.1",ev="exception.message",dte="exception.stacktrace",tv="exception.type",K9="service.name",hte="service.version",rx="telemetry.sdk.language",pte="webjs",ix="telemetry.sdk.name",ox="telemetry.sdk.version",gte="process.runtime.name",nv={[ix]:"opentelemetry",[gte]:"browser",[rx]:pte,[ox]:fte};const mte=9,vte=6,yte=Math.pow(10,vte),pp=Math.pow(10,mte);function Xa(t){const e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*yte);return[n,r]}function e8(){let t=al.timeOrigin;if(typeof t!="number"){const e=al;t=e.timing&&e.timing.fetchStart}return t}function xte(t){const e=Xa(e8()),n=Xa(typeof t=="number"?t:al.now());return n8(e,n)}function Ote(t,e){let n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=pp),[n,r]}function bte(t){return t[0]*pp+t[1]}function t8(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function wE(t){return t8(t)||typeof t=="number"||t instanceof Date}function n8(t,e){const n=[t[0]+e[0],t[1]+e[1]];return n[1]>=pp&&(n[1]-=pp,n[0]+=1),n}var wi;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(wi||(wi={}));class Ste{constructor(e={}){me(this,"_propagators");me(this,"_fields");this._propagators=e.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(e,n,r){for(const i of this._propagators)try{i.inject(e,n,r)}catch(o){lt.warn(`Failed to inject with ${i.constructor.name}. Err: ${o.message}`)}}extract(e,n,r){return this._propagators.reduce((i,o)=>{try{return o.extract(i,n,r)}catch(s){lt.warn(`Failed to extract with ${o.constructor.name}. Err: ${s.message}`)}return i},e)}fields(){return this._fields.slice()}}const sx="[_0-9a-z-*/]",wte=`[a-z]${sx}{0,255}`,Cte=`[a-z0-9]${sx}{0,240}@[a-z]${sx}{0,13}`,kte=new RegExp(`^(?:${wte}|${Cte})$`),Ate=/^[ -~]{0,255}[!-~]$/,Ete=/,|=/;function Pte(t){return kte.test(t)}function Ite(t){return Ate.test(t)&&!Ete.test(t)}const CE=32,Tte=512,kE=",",AE="=";class yb{constructor(e){me(this,"_internalState",new Map);e&&this._parse(e)}set(e,n){const r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r}unset(e){const n=this._clone();return n._internalState.delete(e),n}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,n)=>(e.push(n+AE+this.get(n)),e),[]).join(kE)}_parse(e){e.length>Tte||(this._internalState=e.split(kE).reverse().reduce((n,r)=>{const i=r.trim(),o=i.indexOf(AE);if(o!==-1){const s=i.slice(0,o),a=i.slice(o+1,r.length);Pte(s)&&Ite(a)&&n.set(s,a)}return n},new Map),this._internalState.size>CE&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,CE))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const e=new yb;return e._internalState=new Map(this._internalState),e}}const rv="traceparent",iv="tracestate",_te="00",jte="(?!ff)[\\da-f]{2}",Rte="(?![0]{32})[\\da-f]{32}",Dte="(?![0]{16})[\\da-f]{16}",$te="[\\da-f]{2}",Mte=new RegExp(`^\\s?(${jte})-(${Rte})-(${Dte})-(${$te})(-.*)?\\s?$`);function Nte(t){const e=Mte.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}class Bte{inject(e,n,r){const i=Ur.getSpanContext(e);if(!i||vb(e)||!wg(i))return;const o=`${_te}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||yo.NONE).toString(16)}`;r.set(n,rv,o),i.traceState&&r.set(n,iv,i.traceState.serialize())}extract(e,n,r){const i=r.get(n,rv);if(!i)return e;const o=Array.isArray(i)?i[0]:i;if(typeof o!="string")return e;const s=Nte(o);if(!s)return e;s.isRemote=!0;const a=r.get(n,iv);if(a){const l=Array.isArray(a)?a.join(","):a;s.traceState=new yb(typeof l=="string"?l:void 0)}return Ur.setSpanContext(e,s)}fields(){return[rv,iv]}}const Qte="[object Object]",Lte="[object Null]",Fte="[object Undefined]",zte=Function.prototype,r8=zte.toString,Vte=r8.call(Object),Wte=Object.getPrototypeOf,i8=Object.prototype,o8=i8.hasOwnProperty,Is=Symbol?Symbol.toStringTag:void 0,s8=i8.toString;function EE(t){if(!Zte(t)||Xte(t)!==Qte)return!1;const e=Wte(t);if(e===null)return!0;const n=o8.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&r8.call(n)===Vte}function Zte(t){return t!=null&&typeof t=="object"}function Xte(t){return t==null?t===void 0?Fte:Lte:Is&&Is in Object(t)?Ute(t):Gte(t)}function Ute(t){const e=o8.call(t,Is),n=t[Is];let r=!1;try{t[Is]=void 0,r=!0}catch{}const i=s8.call(t);return r&&(e?t[Is]=n:delete t[Is]),i}function Gte(t){return s8.call(t)}const Yte=20;function Hte(...t){let e=t.shift();const n=new WeakMap;for(;t.length>0;)e=a8(e,t.shift(),0,n);return e}function ov(t){return gp(t)?t.slice():t}function a8(t,e,n=0,r){let i;if(!(n>Yte)){if(n++,Yd(t)||Yd(e)||l8(e))i=ov(e);else if(gp(t)){if(i=t.slice(),gp(e))for(let o=0,s=e.length;o<s;o++)i.push(ov(e[o]));else if(wc(e)){const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s];i[l]=ov(e[l])}}}else if(wc(t))if(wc(e)){if(!qte(t,e))return e;i=Object.assign({},t);const o=Object.keys(e);for(let s=0,a=o.length;s<a;s++){const l=o[s],c=e[l];if(Yd(c))typeof c>"u"?delete i[l]:i[l]=c;else{const u=i[l],f=c;if(PE(t,l,r)||PE(e,l,r))delete i[l];else{if(wc(u)&&wc(f)){const h=r.get(u)||[],d=r.get(f)||[];h.push({obj:t,key:l}),d.push({obj:e,key:l}),r.set(u,h),r.set(f,d)}i[l]=a8(i[l],c,n,r)}}}}else i=e;return i}}function PE(t,e,n){const r=n.get(t[e])||[];for(let i=0,o=r.length;i<o;i++){const s=r[i];if(s.key===e&&s.obj===t)return!0}return!1}function gp(t){return Array.isArray(t)}function l8(t){return typeof t=="function"}function wc(t){return!Yd(t)&&!gp(t)&&!l8(t)&&typeof t=="object"}function Yd(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function qte(t,e){return!(!EE(t)||!EE(e))}class Jte{constructor(){me(this,"_promise");me(this,"_resolve");me(this,"_reject");this._promise=new Promise((e,n)=>{this._resolve=e,this._reject=n})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class Kte{constructor(e,n){me(this,"_callback");me(this,"_that");me(this,"_isCalled",!1);me(this,"_deferred",new Jte);this._callback=e,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function ene(){return"unknown_service"}const Fc=t=>t!==null&&typeof t=="object"&&typeof t.then=="function";class mp{constructor(e){me(this,"_rawAttributes");me(this,"_asyncAttributesPending",!1);me(this,"_memoizedAttributes");const n=e.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Fc(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=IE(this._rawAttributes)}static FromAttributeList(e){const n=new mp({});return n._rawAttributes=IE(e),n._asyncAttributesPending=e.filter(([r,i])=>Fc(i)).length>0,n}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){const[n,r]=this._rawAttributes[e];this._rawAttributes[e]=[n,Fc(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&<.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const e={};for(const[n,r]of this._rawAttributes){if(Fc(r)){lt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(e[n]??(e[n]=r))}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return e==null?this:mp.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function c8(t){return mp.FromAttributeList(Object.entries(t))}function tne(){return c8({[K9]:ene(),[rx]:nv[rx],[ix]:nv[ix],[ox]:nv[ox]})}function IE(t){return t.map(([e,n])=>Fc(n)?[e,n.catch(r=>{lt.debug("promise rejection for resource attribute: %s - %s",e,r)})]:[e,n])}const nne="exception";class rne{constructor(e){me(this,"_spanContext");me(this,"kind");me(this,"parentSpanContext");me(this,"attributes",{});me(this,"links",[]);me(this,"events",[]);me(this,"startTime");me(this,"resource");me(this,"instrumentationScope");me(this,"_droppedAttributesCount",0);me(this,"_droppedEventsCount",0);me(this,"_droppedLinksCount",0);me(this,"name");me(this,"status",{code:ex.UNSET});me(this,"endTime",[0,0]);me(this,"_ended",!1);me(this,"_duration",[-1,-1]);me(this,"_spanProcessor");me(this,"_spanLimits");me(this,"_attributeValueLengthLimit");me(this,"_performanceStartTime");me(this,"_performanceOffset");me(this,"_startTimeProvided");const n=Date.now();this._spanContext=e.spanContext,this._performanceStartTime=al.now(),this._performanceOffset=n-(this._performanceStartTime+e8()),this._startTimeProvided=e.startTime!=null,this._spanLimits=e.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=e.spanProcessor,this.name=e.name,this.parentSpanContext=e.parentSpanContext,this.kind=e.kind,this.links=e.links||[],this.startTime=this._getTime(e.startTime??n),this.resource=e.resource,this.instrumentationScope=e.scope,e.attributes!=null&&this.setAttributes(e.attributes),this._spanProcessor.onStart(this,e.context)}spanContext(){return this._spanContext}setAttribute(e,n){if(n==null||this._isSpanEnded())return this;if(e.length===0)return lt.warn(`Invalid attribute key: ${e}`),this;if(!q9(n))return lt.warn(`Invalid attribute value set for key: ${e}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this)}setAttributes(e){for(const[n,r]of Object.entries(e))this.setAttribute(n,r);return this}addEvent(e,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return lt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&<.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),wE(n)&&(wE(r)||(r=n),n=void 0);const o=Gd(n);return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(e){return this.links.push(e),this}addLinks(e){return this.links.push(...e),this}setStatus(e){return this._isSpanEnded()?this:(this.status={...e},this.status.message!=null&&typeof e.message!="string"&&(lt.warn(`Dropping invalid status.message of type '${typeof e.message}', expected 'string'`),delete this.status.message),this)}updateName(e){return this._isSpanEnded()?this:(this.name=e,this)}end(e){if(this._isSpanEnded()){lt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Ote(this.startTime,this.endTime),this._duration[0]<0&&(lt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&<.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(e){if(typeof e=="number"&&e<=al.now())return xte(e+this._performanceOffset);if(typeof e=="number")return Xa(e);if(e instanceof Date)return Xa(e.getTime());if(t8(e))return e;if(this._startTimeProvided)return Xa(Date.now());const n=al.now()-this._performanceStartTime;return n8(this.startTime,Xa(n))}isRecording(){return this._ended===!1}recordException(e,n){const r={};typeof e=="string"?r[ev]=e:e&&(e.code?r[tv]=e.code.toString():e.name&&(r[tv]=e.name),e.message&&(r[ev]=e.message),e.stack&&(r[dte]=e.stack)),r[tv]||r[ev]?this.addEvent(nne,r,n):lt.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const e=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);lt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,e)}return this._ended}_truncateToLimitUtil(e,n){return e.length<=n?e:e.substring(0,n)}_truncateToSize(e){const n=this._attributeValueLengthLimit;return n<=0?(lt.warn(`Attribute value limit must be positive, got ${n}`),e):typeof e=="string"?this._truncateToLimitUtil(e,n):Array.isArray(e)?e.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):e}}var Ml;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ml||(Ml={}));class vp{shouldSample(){return{decision:Ml.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class ll{shouldSample(){return{decision:Ml.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class ud{constructor(e){me(this,"_root");me(this,"_remoteParentSampled");me(this,"_remoteParentNotSampled");me(this,"_localParentSampled");me(this,"_localParentNotSampled");this._root=e.root,this._root||($l(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ll),this._remoteParentSampled=e.remoteParentSampled??new ll,this._remoteParentNotSampled=e.remoteParentNotSampled??new vp,this._localParentSampled=e.localParentSampled??new ll,this._localParentNotSampled=e.localParentNotSampled??new vp}shouldSample(e,n,r,i,o,s){const a=Ur.getSpanContext(e);return!a||!wg(a)?this._root.shouldSample(e,n,r,i,o,s):a.isRemote?a.traceFlags&yo.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,s):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,s):a.traceFlags&yo.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,s):this._localParentNotSampled.shouldSample(e,n,r,i,o,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class TE{constructor(e=0){me(this,"_ratio");me(this,"_upperBound");this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(e,n){return{decision:U9(n)&&this._accumulate(n)<this._upperBound?Ml.RECORD_AND_SAMPLED:Ml.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let n=0;for(let r=0;r<e.length/8;r++){const i=r*8,o=parseInt(e.slice(i,i+8),16);n=(n^o)>>>0}return n}}const _E=1;function u8(){return{sampler:f8(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function f8(){const t="parentbased_always_on";switch(t){case"always_on":return new ll;case"always_off":return new vp;case"parentbased_always_on":return new ud({root:new ll});case"parentbased_always_off":return new ud({root:new vp});case"traceidratio":return new TE(jE());case"parentbased_traceidratio":return new ud({root:new TE(jE())});default:return lt.error(`OTEL_TRACES_SAMPLER value "${t}" invalid, defaulting to "parentbased_always_on".`),new ud({root:new ll})}}function jE(){return lt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${_E}.`),_E}const ine=128,one=1/0;function sne(t){const e={sampler:f8()},n=u8(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}function ane(t){var n,r,i,o;const e=Object.assign({},t.spanLimits);return e.attributeCountLimit=((n=t.spanLimits)==null?void 0:n.attributeCountLimit)??((r=t.generalLimits)==null?void 0:r.attributeCountLimit)??void 0??void 0??ine,e.attributeValueLengthLimit=((i=t.spanLimits)==null?void 0:i.attributeValueLengthLimit)??((o=t.generalLimits)==null?void 0:o.attributeValueLengthLimit)??void 0??void 0??one,Object.assign({},t,{spanLimits:e})}class lne{constructor(e,n){me(this,"_exporter");me(this,"_maxExportBatchSize");me(this,"_maxQueueSize");me(this,"_scheduledDelayMillis");me(this,"_exportTimeoutMillis");me(this,"_isExporting",!1);me(this,"_finishedSpans",[]);me(this,"_timer");me(this,"_shutdownOnce");me(this,"_droppedSpansCount",0);this._exporter=e,this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:512,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:2048,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:3e4,this._shutdownOnce=new Kte(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(lt.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(e,n){}onEnd(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&yo.SAMPLED&&this._addToBuffer(e)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&<.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(lt.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()}_flushAll(){return new Promise((e,n)=>{const r=[],i=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let o=0,s=i;o<s;o++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(n)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((e,n)=>{const r=setTimeout(()=>{n(new Error("Timeout"))},this._exportTimeoutMillis);Zo.with(Hee(Zo.active()),()=>{let i;this._finishedSpans.length<=this._maxExportBatchSize?(i=this._finishedSpans,this._finishedSpans=[]):i=this._finishedSpans.splice(0,this._maxExportBatchSize);const o=()=>this._exporter.export(i,a=>{clearTimeout(r),a.code===wi.SUCCESS?e():n(a.error??new Error("BatchSpanProcessor: span export failed"))});let s=null;for(let a=0,l=i.length;a<l;a++){const c=i[a];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(s??(s=[]),s.push(c.resource.waitForAsyncAttributes()))}s===null?o():Promise.all(s).then(o,a=>{$l(a),n(a)})})})}_maybeStartTimer(){if(this._isExporting)return;const e=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(n=>{this._isExporting=!1,$l(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();this._timer===void 0&&(this._timer=setTimeout(()=>e(),this._scheduledDelayMillis),this._timer,void 0)}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class cne extends lne{constructor(n,r){super(n,r);me(this,"_visibilityChangeListener");me(this,"_pageHideListener");this.onInit(r)}onInit(n){(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{$l(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{$l(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const une=8,fne=16;class dne{constructor(){me(this,"generateTraceId",RE(fne));me(this,"generateSpanId",RE(une))}}const fd=Array(32);function RE(t){return function(){for(let n=0;n<t*2;n++)fd[n]=Math.floor(Math.random()*16)+48,fd[n]>=58&&(fd[n]+=39);return String.fromCharCode.apply(null,fd.slice(0,t*2))}}class hne{constructor(e,n,r,i){me(this,"_sampler");me(this,"_generalLimits");me(this,"_spanLimits");me(this,"_idGenerator");me(this,"instrumentationScope");me(this,"_resource");me(this,"_spanProcessor");const o=sne(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new dne,this._resource=r,this._spanProcessor=i,this.instrumentationScope=e}startSpan(e,n={},r=Zo.active()){n.root&&(r=Ur.deleteSpan(r));const i=Ur.getSpan(r);if(vb(r))return lt.debug("Instrumentation suppressed, returning Noop Span"),Ur.wrapSpanContext(Z9);const o=i==null?void 0:i.spanContext(),s=this._idGenerator.generateSpanId();let a,l,c;!o||!Ur.isSpanContextValid(o)?l=this._idGenerator.generateTraceId():(l=o.traceId,c=o.traceState,a=o);const u=n.kind??Ky.INTERNAL,f=(n.links??[]).map(x=>({context:x.context,attributes:Gd(x.attributes)})),h=Gd(n.attributes),d=this._sampler.shouldSample(r,l,e,u,h,f);c=d.traceState??c;const g=d.decision===hp.RECORD_AND_SAMPLED?yo.SAMPLED:yo.NONE,p={traceId:l,spanId:s,traceFlags:g,traceState:c};if(d.decision===hp.NOT_RECORD)return lt.debug("Recording is off, propagating context in a non-recording span"),Ur.wrapSpanContext(p);const v=Gd(Object.assign(h,d.attributes));return new rne({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:p,name:e,kind:u,links:f,parentSpanContext:a,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(e,n,r,i){let o,s,a;if(arguments.length<2)return;arguments.length===2?a=n:arguments.length===3?(o=n,a=r):(o=n,s=r,a=i);const l=s??Zo.active(),c=this.startSpan(e,o,l),u=Ur.setSpan(l,c);return Zo.with(u,a,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class pne{constructor(e){me(this,"_spanProcessors");this._spanProcessors=e}forceFlush(){const e=[];for(const n of this._spanProcessors)e.push(n.forceFlush());return new Promise(n=>{Promise.all(e).then(()=>{n()}).catch(r=>{$l(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(e,n){for(const r of this._spanProcessors)r.onStart(e,n)}onEnd(e){for(const n of this._spanProcessors)n.onEnd(e)}shutdown(){const e=[];for(const n of this._spanProcessors)e.push(n.shutdown());return new Promise((n,r)=>{Promise.all(e).then(()=>{n()},r)})}}var Ts;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ts||(Ts={}));class gne{constructor(e={}){me(this,"_config");me(this,"_tracers",new Map);me(this,"_resource");me(this,"_activeSpanProcessor");var i;const n=Hte({},u8(),ane(e));this._resource=n.resource??tne(),this._config=Object.assign({},n,{resource:this._resource});const r=[];(i=e.spanProcessors)!=null&&i.length&&r.push(...e.spanProcessors),this._activeSpanProcessor=new pne(r)}getTracer(e,n,r){const i=`${e}@${n||""}:${(r==null?void 0:r.schemaUrl)||""}`;return this._tracers.has(i)||this._tracers.set(i,new hne({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const e=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let o;const s=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${e} ms`)),o=Ts.timeout},e);r.forceFlush().then(()=>{clearTimeout(s),o!==Ts.timeout&&(o=Ts.resolved,i(o))}).catch(a=>{clearTimeout(s),o=Ts.error,i(a)})}));return new Promise((r,i)=>{Promise.all(n).then(o=>{const s=o.filter(a=>a!==Ts.resolved);s.length>0?i(s):r()}).catch(o=>i([o]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class mne{constructor(){me(this,"_enabled",!1);me(this,"_currentContext",Ma)}_bindFunction(e=Ma,n){const r=this,i=function(...o){return r.with(e,()=>n.apply(this,o))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n}disable(){return this._currentContext=Ma,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Ma,this)}with(e,n,r,...i){const o=this._currentContext;this._currentContext=e||Ma;try{return n.call(r,...i)}finally{this._currentContext=o}}}function vne(t){if(t!==null){if(t===void 0){const e=new mne;e.enable(),Zo.setGlobalContextManager(e);return}t.enable(),Zo.setGlobalContextManager(t)}}function yne(t){if(t!==null){if(t===void 0){su.setGlobalPropagator(new Ste({propagators:[new Bte,new ite]}));return}su.setGlobalPropagator(t)}}class xne extends gne{constructor(e={}){super(e)}register(e={}){Ur.setGlobalTracerProvider(this),yne(e.propagator),vne(e.contextManager)}}class One{constructor(e){me(this,"_delegate");this._delegate=e}export(e,n){this._delegate.export(e,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class DE extends Error{constructor(n,r,i){super(n);me(this,"code");me(this,"name","OTLPExporterError");me(this,"data");this.data=i,this.code=r}}function bne(t){if(Number.isFinite(t)&&t>0)return t;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${t}')`)}function Sne(t){if(t!=null)return()=>t}function wne(t,e,n){return{timeoutMillis:bne(t.timeoutMillis??e.timeoutMillis??n.timeoutMillis),concurrencyLimit:t.concurrencyLimit??e.concurrencyLimit??n.concurrencyLimit,compression:t.compression??e.compression??n.compression}}function Cne(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class kne{constructor(e){me(this,"_concurrencyLimit");me(this,"_sendingPromises",[]);this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);const n=()=>{const r=this._sendingPromises.indexOf(e);this._sendingPromises.splice(r,1)};e.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Ane(t){return new kne(t.concurrencyLimit)}function Ene(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function Pne(){return{handleResponse(t){t==null||!Ene(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||lt.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}class Ine{constructor(e,n,r,i,o){me(this,"_transport");me(this,"_serializer");me(this,"_responseHandler");me(this,"_promiseQueue");me(this,"_timeout");me(this,"_diagLogger");this._transport=e,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=o,this._diagLogger=lt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,n){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:wi.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(e);if(r==null){n({code:wi.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(o){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,i.data)}n({code:wi.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:wi.FAILED,error:i.error});return}else i.status==="retryable"?n({code:wi.FAILED,error:new DE("Export failed with retryable status")}):n({code:wi.FAILED,error:new DE("Export failed with unknown error")})},i=>n({code:wi.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Tne(t,e){return new Ine(t.transport,t.serializer,Pne(),t.promiseHandler,e.timeout)}function d8(t,e,n){return Tne({transport:n,serializer:e,promiseHandler:Ane(t)},{timeout:t.timeoutMillis})}function $E(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function h8(t){const e=new Uint8Array(t.length/2);let n=0;for(let r=0;r<t.length;r+=2){const i=$E(t.charCodeAt(r)),o=$E(t.charCodeAt(r+1));e[n++]=i<<4|o}return e}function p8(t){const e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function _ne(t){const e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function jne(t){const e=p8(t);return _ne(e)}function Rne(t){return p8(t).toString()}const Dne=typeof BigInt<"u"?Rne:bte;function ME(t){return t}function $ne(t){if(t!==void 0)return h8(t)}const Mne={encodeHrTime:jne,encodeSpanContext:h8,encodeOptionalSpanContext:$ne};function Nne(t){return t===void 0?Mne:{encodeHrTime:Dne,encodeSpanContext:ME,encodeOptionalSpanContext:ME}}function Bne(t){return{attributes:Cg(t.attributes),droppedAttributesCount:0}}function Qne(t){return{name:t.name,version:t.version}}function Cg(t){return Object.keys(t).map(e=>g8(e,t[e]))}function g8(t,e){return{key:t,value:m8(e)}}function m8(t){const e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(m8)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(([n,r])=>g8(n,r))}}:{}}function Lne(t,e){var o,s,a;const n=t.spanContext(),r=t.status,i=(o=t.parentSpanContext)!=null&&o.spanId?e.encodeSpanContext((s=t.parentSpanContext)==null?void 0:s.spanId):void 0;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:i,traceState:(a=n.traceState)==null?void 0:a.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Cg(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(l=>zne(l,e)),droppedEventsCount:t.droppedEventsCount,status:{code:r.code,message:r.message},links:t.links.map(l=>Fne(l,e)),droppedLinksCount:t.droppedLinksCount}}function Fne(t,e){var n;return{attributes:t.attributes?Cg(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)==null?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function zne(t,e){return{attributes:t.attributes?Cg(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Vne(t,e){const n=Nne(e);return{resourceSpans:Zne(t,n)}}function Wne(t){const e=new Map;for(const n of t){let r=e.get(n.resource);r||(r=new Map,e.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let o=r.get(i);o||(o=[],r.set(i,o)),o.push(n)}return e}function Zne(t,e){const n=Wne(t),r=[],i=n.entries();let o=i.next();for(;!o.done;){const[s,a]=o.value,l=[],c=a.values();let u=c.next();for(;!u.done;){const h=u.value;if(h.length>0){const d=h.map(g=>Lne(g,e));l.push({scope:Qne(h[0].instrumentationScope),spans:d,schemaUrl:h[0].instrumentationScope.schemaUrl})}u=c.next()}const f={resource:Bne(s),scopeSpans:l,schemaUrl:void 0};r.push(f),o=i.next()}return r}const Xne={serializeRequest:t=>{const e=Vne(t,{});return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:t=>{if(t.length===0)return{};const e=new TextDecoder;return JSON.parse(e.decode(t))}},Une=5,Gne=1e3,Yne=5e3,Hne=1.5,NE=.2;function qne(){return Math.random()*(2*NE)-NE}class Jne{constructor(e){me(this,"_transport");this._transport=e}retry(e,n,r){return new Promise((i,o)=>{setTimeout(()=>{this._transport.send(e,n).then(i,o)},r)})}async send(e,n){const r=Date.now()+n;let i=await this._transport.send(e,n),o=Une,s=Gne;for(;i.status==="retryable"&&o>0;){o--;const a=Math.max(Math.min(s,Yne)+qne(),0);s=s*Hne;const l=i.retryInMillis??a,c=r-Date.now();if(l>c)return i;i=await this.retry(e,c,l)}return i}shutdown(){return this._transport.shutdown()}}function v8(t){return new Jne(t.transport)}function Kne(t){return[429,502,503,504].includes(t)}function ere(t){if(t==null)return;const e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;const n=new Date(t).getTime()-Date.now();return n>=0?n:0}class tre{constructor(e){me(this,"_parameters");this._parameters=e}send(e,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const o=this._parameters.headers();Object.entries(o).forEach(([s,a])=>{i.setRequestHeader(s,a)}),i.ontimeout=s=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(lt.debug("XHR success"),r({status:"success"})):i.status&&Kne(i.status)?r({status:"retryable",retryInMillis:ere(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(e)})}shutdown(){}}function nre(t){return new tre(t)}class rre{constructor(e){me(this,"_params");this._params=e}send(e){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(lt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function ire(t){return new rre(t)}function ore(t,e){return d8(t,e,v8({transport:nre(t)}))}function sre(t,e){return d8(t,e,v8({transport:ire({url:t.url,blobType:t.headers()["Content-Type"]})}))}function are(t){return()=>{const e={};return Object.entries((t==null?void 0:t())??{}).forEach(([n,r])=>{typeof r<"u"?e[n]=String(r):lt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),e}}function lre(t,e,n){const r={...n()},i={};return()=>(e!=null&&Object.assign(i,e()),t!=null&&Object.assign(i,t()),Object.assign(i,r))}function cre(t){if(t!=null)try{return new URL(t),t}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${t}'`)}}function ure(t,e,n){return{...wne(t,e,n),headers:lre(are(t.headers),e.headers,n.headers),url:cre(t.url)??e.url??n.url,agentOptions:t.agentOptions??e.agentOptions??n.agentOptions}}function fre(t,e){return{...Cne(),headers:()=>t,url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}}}function dre(t,e,n){return ure({url:t.url,timeoutMillis:t.timeoutMillis,headers:Sne(t.headers),concurrencyLimit:t.concurrencyLimit},{},fre(n,e))}function hre(t,e,n,r){const i=!!t.headers||typeof navigator.sendBeacon!="function",o=dre(t,n,r);return i?ore(o,e):sre(o,e)}class pre extends One{constructor(e={}){super(hre(e,Xne,"v1/traces",{"Content-Type":"application/json"}))}}function Hd(t){var e=new Error(t);return e.source="ulid",e}var xb="0123456789ABCDEFGHJKMNPQRSTVWXYZ",au=xb.length,BE=Math.pow(2,48)-1,gre=10,mre=16;function vre(t){var e=Math.floor(t()*au);return e===au&&(e=au-1),xb.charAt(e)}function yre(t,e){if(isNaN(t))throw new Error(t+" must be a number");if(t>BE)throw Hd("cannot encode time greater than "+BE);if(t<0)throw Hd("time must be positive");if(Number.isInteger(t)===!1)throw Hd("time must be an integer");for(var n=void 0,r="";e>0;e--)n=t%au,r=xb.charAt(n)+r,t=(t-n)/au;return r}function xre(t,e){for(var n="";t>0;t--)n=vre(e)+n;return n}function Ore(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments[1];e||(e=typeof window<"u"?window:null);var n=e&&(e.crypto||e.msCrypto);if(n)return function(){var i=new Uint8Array(1);return n.getRandomValues(i),i[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(t){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw Hd("secure crypto unusable, insecure Math.random not allowed")}function bre(t){return t||(t=Ore()),function(n){return isNaN(n)&&(n=Date.now()),yre(n,gre)+xre(mre,t)}}var Cc=bre();class Sre{constructor(){me(this,"config",null);me(this,"tracerProvider",null);me(this,"tracer",null);me(this,"useCloudEventData");me(this,"updateCloudEventData",e=>{this.useCloudEventData=e});me(this,"getKeySnakeValue",e=>e.replace(/([A-Z])/g,"_$1").toLowerCase());this.useCloudEventData=()=>({"cloudevents.organization.id":"","cloudevents.organization.slug":"","cloudevents.project.id":"","cloudevents.project.slug":"","cloudevents.product_type":"","cloudevents.source_details.user":"Anonymous","cloudevents.source_details.object":"user","cloudevents.source_details.uri":window.location.href,"cloudevents.request.source":location.pathname})}init(e){if(!e.collectorUrl||!e.serviceName||!e.serviceVersion)return;this.useCloudEventData=()=>({"cloudevents.organization.id":"","cloudevents.organization.slug":"","cloudevents.project.id":"","cloudevents.project.slug":"","cloudevents.product_type":"","cloudevents.source_details.user":"Anonymous","cloudevents.source_details.object":"user","cloudevents.source_details.uri":window.location.href,"cloudevents.request.source":location.pathname}),this.config=e;const n=`ses_${Cc()}`;this.tracerProvider=new xne({resource:c8({[K9]:this.config.serviceName,[hte]:this.config.serviceVersion,session_id:n}),spanProcessors:[new cne(new pre({url:`${this.config.collectorUrl}/v1/traces`,headers:{}}))]}),this.tracerProvider.register(),this.tracer=this.tracerProvider.getTracer(this.config.tracerName)}send(e,n){var r,i;try{if(!this.tracer||!this.config)return;const o=new Date,s=Cc(),a=this.useCloudEventData(),l=this.tracer.startSpan(`event.${e}`,{attributes:{"cloudevents.event_id":s,"cloudevents.page.uri":location.href,"cloudevents.event_version":(r=this.config)==null?void 0:r.version,"cloudevents.event_spec_version":"1.0","cloudevents.event_data_content_type":"application/json; charset=utf-8","cloudevents.event_origin":"ui","cloudevents.event_time":new Date().toISOString(),"cloudevents.event_source_details.id":Cc(),"cloudevents.event_type":`event.${e}`},startTime:o});Object.entries(a).forEach(([c,u])=>{l.setAttribute(c,u)}),Object.entries(n).forEach(([c,u])=>{const f=c.replace(/([A-Z])/g,"_$1").toLowerCase();u!==void 0&&l.setAttribute(`cloudevents.event_data.${f}`,u)}),l.end(o)}catch(o){(i=this.config)!=null&&i.isProd||console.error("Event reporting failed:",o)}}processAttributes(e,n,r=!0){var a;const i=Cc(),o=this.useCloudEventData(),s={"cloudevents.event_id":i,"cloudevents.event_type":e,"cloudevents.event_version":(a=this.config)==null?void 0:a.version,"cloudevents.event_object":"event","cloudevents.event_spec_version":"1.0","cloudevents.event_data_content_type":"application/json; charset=utf-8","cloudevents.event_origin":"ui","cloudevents.event_time":new Date().toISOString(),"cloudevents.event_source_details.id":Cc()};return r&&Object.entries(o).forEach(([l,c])=>{s[l]=c}),Object.entries(n).forEach(([l,c])=>{const u=l.replace(/([A-Z])/g,"_$1").toLowerCase();c!==void 0&&(s[`cloudevents.event_data.${u}`]=c)}),s}startSpan(e,n,r){var i;try{if(!this.tracer)return;let o;const s=this.tracer.startSpan(e,{attributes:this.processAttributes(e,n,!r),root:!r},r);return r||(o=Ur.setSpan(Zo.active(),s)),{end:()=>s.end(),setAttribute:(a,l)=>{s.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(a)}`,l)},setStatus:(a,l)=>s.setStatus({code:a,message:l}),parentCtx:o}}catch(o){(i=this.config)!=null&&i.isProd||console.error("Event reporting failed:",o)}}forceFlush(){var e;(e=this.tracerProvider)==null||e.forceFlush()}sendTabChangeMessage(e){this.send("tab.change",e)}sendButtonClickMessage(e){this.send("button.click",e)}sendChangeMessage(e){this.send("change",e)}sendContentCopyMessage(e){this.send("content.copy",e)}sendUrlClickMessage(e){this.send("url.click",e)}sendRequestSendMessage(e){this.send("request.send",e)}sendTokenGenerateMessage(e){this.send("token.generate",e)}sendAppLifecycleMessage(e){this.send("app.lifecycle",e)}sendEnvironmentManagementMessage(e){this.send("environment.management",e)}sendInputManagementMessage(e){this.send("input.management",e)}sendNodeManagementMessage(e){this.send("node.management",e)}sendHistoryManagementMessage(e){this.send("history.management",e)}sendCredentialManagementMessage(e){this.send("credential.management",e)}sendPanelToggleMessage(e){this.send("panel.toggle",e)}}function wre(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const Cre=wre(),kre=D.createContext(Cre);function ri(){const t=D.useContext(kre);return M5(t)}function Are(t,e){const{apps:{apiId:n}}=ut(),{corsProxyUrl:r,disableCollectionsTab:i,mockServer:o,oAuth2RedirectURI:s,certificates:a,storageKey:l,isApiBased:c}=ri();r.set((t==null?void 0:t.corsProxyUrl)??QQ),o.set(t==null?void 0:t.mockServer),n.set(t==null?void 0:t.apiId),s.set(t==null?void 0:t.oAuth2RedirectURI),i.set(!!(t!=null&&t.disableCollectionsTab)),l.set(t==null?void 0:t.storageKey),c.set(!!e),D.useEffect(()=>{a.set((t==null?void 0:t.certificates)||[])},[t==null?void 0:t.certificates])}const kg=D.createContext({});function Ob(){return D.useContext(kg)||{}}const Ere="0.15.0-next.6",Pre={version:Ere};class Ire{constructor(){me(this,"client");me(this,"_isInitialized",!1);this.client=new Sre}get isInitialized(){return this._isInitialized}init(e){if(this.isInitialized)return;const r={serviceName:"replay",serviceVersion:Pre.version,version:"1.0.0",tracerName:(e==null?void 0:e.tracerName)||"desktop",collectorUrl:(e==null?void 0:e.collectorUrl)||"",isProd:!0};this.client.init({...r,...e}),this._isInitialized=!0}sendEvent(e,n){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(e,n)}catch(r){console.error("Failed to send telemetry event:",r)}}}const sv=new Ire;function it(){const{telemetry:t}=Ob();return sv.isInitialized||sv.init({tracerName:t==null?void 0:t.tracerName,collectorUrl:t==null?void 0:t.collectorUrl}),{sendEvent:(e,n)=>{sv.sendEvent(e,n)}}}const Zn=800;var Tre=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _re(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,i=r===void 0?!1:r,o=t.defaultValue,s=o===void 0?null:o,a=t.inputValue,l=t.menuIsOpen,c=t.onChange,u=t.onInputChange,f=t.onMenuClose,h=t.onMenuOpen,d=t.value,g=br(t,Tre),p=D.useState(a!==void 0?a:n),v=Fe(p,2),y=v[0],x=v[1],O=D.useState(l!==void 0?l:i),S=Fe(O,2),b=S[0],w=S[1],C=D.useState(d!==void 0?d:s),I=Fe(C,2),A=I[0],T=I[1],_=D.useCallback(function(q,Y){typeof c=="function"&&c(q,Y),T(q)},[c]),E=D.useCallback(function(q,Y){var z;typeof u=="function"&&(z=u(q,Y)),x(z!==void 0?z:q)},[u]),$=D.useCallback(function(){typeof h=="function"&&h(),w(!0)},[h]),k=D.useCallback(function(){typeof f=="function"&&f(),w(!1)},[f]),L=a!==void 0?a:y,Z=l!==void 0?l:b,X=d!==void 0?d:A;return ye(ye({},g),{},{inputValue:L,menuIsOpen:Z,onChange:_,onInputChange:E,onMenuClose:k,onMenuOpen:$,value:X})}function jre(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Rre(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Dre=function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Rre(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
321
321
|
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=jre(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},t}(),Pn="-ms-",yp="-moz-",at="-webkit-",bb="comm",Sb="rule",wb="decl",$re="@import",y8="@keyframes",Mre=Math.abs,Ag=String.fromCharCode,Nre=Object.assign;function Bre(t,e){return bn(t,0)^45?(((e<<2^bn(t,0))<<2^bn(t,1))<<2^bn(t,2))<<2^bn(t,3):0}function x8(t){return t.trim()}function Qre(t,e){return(t=e.exec(t))?t[0]:t}function gt(t,e,n){return t.replace(e,n)}function ax(t,e){return t.indexOf(e)}function bn(t,e){return t.charCodeAt(e)|0}function Qu(t,e,n){return t.slice(e,n)}function ki(t){return t.length}function Cb(t){return t.length}function dd(t,e){return e.push(t),t}function Lre(t,e){return t.map(e).join("")}var Eg=1,Nl=1,O8=0,or=0,Yt=0,ec="";function Pg(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Eg,column:Nl,length:s,return:""}}function kc(t,e){return Nre(Pg("",null,null,"",null,null,0),t,{length:-t.length},e)}function Fre(){return Yt}function zre(){return Yt=or>0?bn(ec,--or):0,Nl--,Yt===10&&(Nl=1,Eg--),Yt}function Or(){return Yt=or<O8?bn(ec,or++):0,Nl++,Yt===10&&(Nl=1,Eg++),Yt}function Li(){return bn(ec,or)}function qd(){return or}function of(t,e){return Qu(ec,t,e)}function Lu(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function b8(t){return Eg=Nl=1,O8=ki(ec=t),or=0,[]}function S8(t){return ec="",t}function Jd(t){return x8(of(or-1,lx(t===91?t+2:t===40?t+1:t)))}function Vre(t){for(;(Yt=Li())&&Yt<33;)Or();return Lu(t)>2||Lu(Yt)>3?"":" "}function Wre(t,e){for(;--e&&Or()&&!(Yt<48||Yt>102||Yt>57&&Yt<65||Yt>70&&Yt<97););return of(t,qd()+(e<6&&Li()==32&&Or()==32))}function lx(t){for(;Or();)switch(Yt){case t:return or;case 34:case 39:t!==34&&t!==39&&lx(Yt);break;case 40:t===41&&lx(t);break;case 92:Or();break}return or}function Zre(t,e){for(;Or()&&t+Yt!==57;)if(t+Yt===84&&Li()===47)break;return"/*"+of(e,or-1)+"*"+Ag(t===47?t:Or())}function Xre(t){for(;!Lu(Li());)Or();return of(t,or)}function Ure(t){return S8(Kd("",null,null,null,[""],t=b8(t),0,[0],t))}function Kd(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,f=s,h=0,d=0,g=0,p=1,v=1,y=1,x=0,O="",S=i,b=o,w=r,C=O;v;)switch(g=x,x=Or()){case 40:if(g!=108&&bn(C,f-1)==58){ax(C+=gt(Jd(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=Jd(x);break;case 9:case 10:case 13:case 32:C+=Vre(g);break;case 92:C+=Wre(qd()-1,7);continue;case 47:switch(Li()){case 42:case 47:dd(Gre(Zre(Or(),qd()),e,n),l);break;default:C+="/"}break;case 123*p:a[c++]=ki(C)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+u:d>0&&ki(C)-f&&dd(d>32?LE(C+";",r,n,f-1):LE(gt(C," ","")+";",r,n,f-2),l);break;case 59:C+=";";default:if(dd(w=QE(C,e,n,c,u,i,a,O,S=[],b=[],f),o),x===123)if(u===0)Kd(C,e,w,w,S,o,f,a,b);else switch(h===99&&bn(C,3)===110?100:h){case 100:case 109:case 115:Kd(t,w,w,r&&dd(QE(t,w,w,0,0,i,a,O,i,S=[],f),b),i,b,f,a,r?S:b);break;default:Kd(C,w,w,w,[""],b,0,a,b)}}c=u=d=0,p=y=1,O=C="",f=s;break;case 58:f=1+ki(C),d=g;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&zre()==125)continue}switch(C+=Ag(x),x*p){case 38:y=u>0?1:(C+="\f",-1);break;case 44:a[c++]=(ki(C)-1)*y,y=1;break;case 64:Li()===45&&(C+=Jd(Or())),h=Li(),u=f=ki(O=C+=Xre(qd())),x++;break;case 45:g===45&&ki(C)==2&&(p=0)}}return o}function QE(t,e,n,r,i,o,s,a,l,c,u){for(var f=i-1,h=i===0?o:[""],d=Cb(h),g=0,p=0,v=0;g<r;++g)for(var y=0,x=Qu(t,f+1,f=Mre(p=s[g])),O=t;y<d;++y)(O=x8(p>0?h[y]+" "+x:gt(x,/&\f/g,h[y])))&&(l[v++]=O);return Pg(t,e,n,i===0?Sb:a,l,c,u)}function Gre(t,e,n){return Pg(t,e,n,bb,Ag(Fre()),Qu(t,2,-2),0)}function LE(t,e,n,r){return Pg(t,e,n,wb,Qu(t,0,r),Qu(t,r+1,-1),r)}function cl(t,e){for(var n="",r=Cb(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Yre(t,e,n,r){switch(t.type){case $re:case wb:return t.return=t.return||t.value;case bb:return"";case y8:return t.return=t.value+"{"+cl(t.children,r)+"}";case Sb:t.value=t.props.join(",")}return ki(n=cl(t.children,r))?t.return=t.value+"{"+n+"}":""}function Hre(t){var e=Cb(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function qre(t){return function(e){e.root||(e=e.return)&&t(e)}}function Jre(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Kre=function(e,n,r){for(var i=0,o=0;i=o,o=Li(),i===38&&o===12&&(n[r]=1),!Lu(o);)Or();return of(e,or)},eie=function(e,n){var r=-1,i=44;do switch(Lu(i)){case 0:i===38&&Li()===12&&(n[r]=1),e[r]+=Kre(or-1,n,r);break;case 2:e[r]+=Jd(i);break;case 4:if(i===44){e[++r]=Li()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ag(i)}while(i=Or());return e},tie=function(e,n){return S8(eie(b8(e),n))},FE=new WeakMap,nie=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!FE.get(r))&&!i){FE.set(e,!0);for(var o=[],s=tie(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},rie=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}},iie="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",oie=function(e){return e.type==="comm"&&e.children.indexOf(iie)>-1},sie=function(e){return function(n,r,i){if(!(n.type!=="rule"||e.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=n.parent===i[0],a=s?i[0].children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<n.line)break;if(c.column<n.column){if(oie(c))return;break}}o.forEach(function(u){console.error('The pseudo class "'+u+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+u.split("-child")[0]+'-of-type".')})}}}},w8=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},aie=function(e,n){for(var r=e-1;r>=0;r--)if(!w8(n[r]))return!0;return!1},zE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},lie=function(e,n,r){w8(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),zE(e)):aie(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),zE(e)))};function C8(t,e){switch(Bre(t,e)){case 5103:return at+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return at+t+yp+t+Pn+t+t;case 6828:case 4268:return at+t+Pn+t+t;case 6165:return at+t+Pn+"flex-"+t+t;case 5187:return at+t+gt(t,/(\w+).+(:[^]+)/,at+"box-$1$2"+Pn+"flex-$1$2")+t;case 5443:return at+t+Pn+"flex-item-"+gt(t,/flex-|-self/,"")+t;case 4675:return at+t+Pn+"flex-line-pack"+gt(t,/align-content|flex-|-self/,"")+t;case 5548:return at+t+Pn+gt(t,"shrink","negative")+t;case 5292:return at+t+Pn+gt(t,"basis","preferred-size")+t;case 6060:return at+"box-"+gt(t,"-grow","")+at+t+Pn+gt(t,"grow","positive")+t;case 4554:return at+gt(t,/([^-])(transform)/g,"$1"+at+"$2")+t;case 6187:return gt(gt(gt(t,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),t,"")+t;case 5495:case 3959:return gt(t,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return gt(gt(t,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+Pn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+t+t;case 4095:case 3583:case 4068:case 2532:return gt(t,/(.+)-inline(.+)/,at+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ki(t)-1-e>6)switch(bn(t,e+1)){case 109:if(bn(t,e+4)!==45)break;case 102:return gt(t,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+yp+(bn(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~ax(t,"stretch")?C8(gt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(bn(t,e+1)!==115)break;case 6444:switch(bn(t,ki(t)-3-(~ax(t,"!important")&&10))){case 107:return gt(t,":",":"+at)+t;case 101:return gt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(bn(t,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+Pn+"$2box$3")+t}break;case 5936:switch(bn(t,e+11)){case 114:return at+t+Pn+gt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return at+t+Pn+gt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return at+t+Pn+gt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return at+t+Pn+t+t}return t}var cie=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case wb:e.return=C8(e.value,e.length);break;case y8:return cl([kc(e,{value:gt(e.value,"@","@"+at)})],i);case Sb:if(e.length)return Lre(e.props,function(o){switch(Qre(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cl([kc(e,{props:[gt(o,/:(read-\w+)/,":"+yp+"$1")]})],i);case"::placeholder":return cl([kc(e,{props:[gt(o,/:(plac\w+)/,":"+at+"input-$1")]}),kc(e,{props:[gt(o,/:(plac\w+)/,":"+yp+"$1")]}),kc(e,{props:[gt(o,/:(plac\w+)/,Pn+"input-$1")]})],i)}return""})}},uie=[cie],fie=function(e){var n=e.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
322
322
|
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||uie;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;a.push(p)});var l,c=[nie,rie];process.env.NODE_ENV!=="production"&&c.push(sie({get compat(){return g.compat}}),lie);{var u,f=[Yre,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?u.insert(p.return):p.value&&p.type!==bb&&u.insert(p.value+"{}"))}:qre(function(p){u.insert(p)})],h=Hre(c.concat(i,f)),d=function(v){return cl(Ure(v),h)};l=function(v,y,x,O){u=x,process.env.NODE_ENV!=="production"&&y.map!==void 0&&(u={insert:function(b){x.insert(b+y.map)}}),d(v?v+"{"+y.styles+"}":y.styles),O&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Dre({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},die=!0;function k8(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):r+=i+" "}),r}var kb=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||die===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Ab=function(e,n,r){kb(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function hie(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var pie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VE=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
323
323
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-DaZiYU0k.js");async function v(i,l){const t=e.sep(),a=await e.resolve(i),c=await e.resolve(l),r=a.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),n=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),p=Math.min(r.length,n.length);let s=0;for(let o=0;o<p&&r[o]===n[o];o++)s++;const f=r.slice(s).map(()=>".."),g=n.slice(s);return[...f,...g].join(t)}exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.relative=v;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as h, r } from "./replay-index-
|
|
2
|
-
import { i as j, j as u } from "./replay-index-
|
|
1
|
+
import { s as h, r } from "./replay-index-0fogrFuM.js";
|
|
2
|
+
import { i as j, j as u } from "./replay-index-0fogrFuM.js";
|
|
3
3
|
async function x(s, i) {
|
|
4
4
|
const t = h(), l = await r(s), c = await r(i), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), a = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), p = Math.min(o.length, a.length);
|
|
5
5
|
let n = 0;
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-DaZiYU0k.js");exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;exports.utils=e.utils;
|
package/dist/replay.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.15.0-next.
|
|
3
|
+
"version": "0.15.0-next.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-dom": "^19.1.0",
|
|
20
20
|
"react-router-dom": "^6.21.1",
|
|
21
21
|
"styled-components": "^5.3.11",
|
|
22
|
-
"@redocly/theme": "0.56.0-next.
|
|
22
|
+
"@redocly/theme": "0.56.0-next.3"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@codemirror/autocomplete": "^6.15.0",
|