@unotest/viewer 0.32.0 → 0.33.0

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.
@@ -12,7 +12,13 @@ import { BoxReadEnvironment } from '@unotest/protocol';
12
12
  *
13
13
  * Capabilities are coarse and role-free on purpose. A proxy that invents
14
14
  * new roles maps them onto these flags; the viewer never learns the word
15
- * "admin" and needs no change when the role set grows (OCP). */
15
+ * "admin" and needs no change when the role set grows (OCP).
16
+ *
17
+ * One more use, and the only one that touches data: a caller who may not
18
+ * edit variables is not shown credential-shaped values or the project's
19
+ * absolute path ({@link CREDENTIAL_NAME}). That is display-masking by
20
+ * capability, not authorization — the proxy still refuses every write,
21
+ * and a forged header can only hide more. */
16
22
  interface ViewerCapabilities {
17
23
  /** Start / abort runs, drive the debugger, control the app-under-test. */
18
24
  readonly canRun: boolean;
@@ -74,5 +80,8 @@ declare function encodeViewerSession(session: ViewerSession): string;
74
80
  * truncated, forged. The caller then falls back to standalone defaults:
75
81
  * a broken header must not lock a local user out of their own viewer. */
76
82
  declare function decodeViewerSession(raw: string | undefined): ViewerSession | null;
83
+ /** What the caller of this request may do: the proxy's word when it
84
+ * stamped one, everything when nothing fronts the viewer. */
85
+ declare function capabilitiesOf(raw: string | undefined): ViewerCapabilities;
77
86
 
78
- export { FULL_CAPABILITIES, STANDALONE_SESSION, VIEWER_SESSION_HEADER, type ViewerCapabilities, type ViewerEnvOption, type ViewerIdentity, type ViewerSession, decodeViewerSession, encodeViewerSession };
87
+ export { FULL_CAPABILITIES, STANDALONE_SESSION, VIEWER_SESSION_HEADER, type ViewerCapabilities, type ViewerEnvOption, type ViewerIdentity, type ViewerSession, capabilitiesOf, decodeViewerSession, encodeViewerSession };
@@ -1 +1 @@
1
- const _0x54f390=_0x3438;(function(_0x2e7116,_0xf9f171){const _0x288a59={_0x257f98:0xee,_0x4238bd:0xf6,_0x418e5f:0xe9},_0x5131c6=_0x3438,_0xad4919=_0x2e7116();while(!![]){try{const _0x115f61=-parseInt(_0x5131c6(0xea))/0x1*(-parseInt(_0x5131c6(0xdf))/0x2)+-parseInt(_0x5131c6(0xde))/0x3*(-parseInt(_0x5131c6(_0x288a59._0x257f98))/0x4)+parseInt(_0x5131c6(0xf8))/0x5+-parseInt(_0x5131c6(0xfa))/0x6*(-parseInt(_0x5131c6(_0x288a59._0x4238bd))/0x7)+-parseInt(_0x5131c6(0xf7))/0x8+-parseInt(_0x5131c6(0xf3))/0x9*(-parseInt(_0x5131c6(_0x288a59._0x418e5f))/0xa)+-parseInt(_0x5131c6(0xe6))/0xb;if(_0x115f61===_0xf9f171)break;else _0xad4919['push'](_0xad4919['shift']());}catch(_0x581d8e){_0xad4919['push'](_0xad4919['shift']());}}}(_0x6e20,0xa11e8));var __defProp=Object[_0x54f390(0xec)],__name=(_0x41ed3c,_0x202808)=>__defProp(_0x41ed3c,_0x54f390(0xe8),{'value':_0x202808,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER='x-unotest-viewer-session';function _0x6e20(){const _0x4461ce=['mJaZnJiYwuL4yLDb','ndzPvhrfqwe','CMvHzenHCgfIAwXPDgLLCW','zNjVBq','zw5JB2rLvMLLD2vYu2vZC2LVBG','Dg9tDhjPBMC','C3rYAw5NAwz5','y2fUvgvYBwLUywW','mZe1otq4mdvbC09XzNm','C3rYAw5N','BMfTzq','mtC3nteXmezLvhrQzW','mZm5nKXPz3PqCW','C3DPDgnOrw52vxjS','zgvMAw5LuhjVCgvYDhK','zw52','nZjHDhf6DMS','Bg9NB3v0vxjS','y2fUuNvU','DxrMoa','y2fUrwrPDezPBgvZ','ndvxs0jcBNK','CgfYC2u','B2jQzwn0','otiYoty1nhnZvuTVwq','ntq5mte2oefkA2z5vW','mZu2mZm5mhfVve9ArW','yMfZzty0DxjS','nNPez1fcEG'];_0x6e20=function(){return _0x4461ce;};return _0x6e20();}function encodeViewerSession(_0x388f19){const _0xc5b776={_0x41cc98:0xe4,_0x5ce523:0xf9},_0x4f5826=_0x54f390;return Buffer['from'](JSON[_0x4f5826(_0xc5b776._0x41cc98)](_0x388f19),_0x4f5826(0xf1))[_0x4f5826(0xe3)](_0x4f5826(_0xc5b776._0x5ce523));}__name(encodeViewerSession,_0x54f390(0xe2));function decodeViewerSession(_0x742e00){const _0x12128e={_0x412c65:0xf4,_0x40c2dc:0xe3,_0x2e7018:0xf5},_0x227ba3=_0x54f390;if(_0x742e00===void 0x0||_0x742e00==='')return null;let _0x3d6b39;try{_0x3d6b39=JSON[_0x227ba3(_0x12128e._0x412c65)](Buffer[_0x227ba3(0xe1)](_0x742e00,_0x227ba3(0xf9))[_0x227ba3(_0x12128e._0x40c2dc)]('utf8'));}catch{return null;}if(typeof _0x3d6b39!==_0x227ba3(_0x12128e._0x2e7018)||_0x3d6b39===null)return null;const {capabilities:_0x22a485,identity:_0x1fa680}=_0x3d6b39,_0xbb5892=readCapabilities(_0x22a485);if(_0xbb5892===null)return null;return{'capabilities':_0xbb5892,'identity':readIdentity(_0x1fa680)};}__name(decodeViewerSession,'decodeViewerSession');function _0x3438(_0x1aff23,_0x5505c8){_0x1aff23=_0x1aff23-0xde;const _0x6e20d2=_0x6e20();let _0x343802=_0x6e20d2[_0x1aff23];if(_0x3438['xwyscC']===undefined){var _0x380dfb=function(_0x2409b4){const _0x7d4dbb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41ed3c='',_0x202808='';for(let _0x388f19=0x0,_0x742e00,_0x3d6b39,_0x22a485=0x0;_0x3d6b39=_0x2409b4['charAt'](_0x22a485++);~_0x3d6b39&&(_0x742e00=_0x388f19%0x4?_0x742e00*0x40+_0x3d6b39:_0x3d6b39,_0x388f19++%0x4)?_0x41ed3c+=String['fromCharCode'](0xff&_0x742e00>>(-0x2*_0x388f19&0x6)):0x0){_0x3d6b39=_0x7d4dbb['indexOf'](_0x3d6b39);}for(let _0x1fa680=0x0,_0xbb5892=_0x41ed3c['length'];_0x1fa680<_0xbb5892;_0x1fa680++){_0x202808+='%'+('00'+_0x41ed3c['charCodeAt'](_0x1fa680)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x202808);};_0x3438['lUGEnn']=_0x380dfb,_0x3438['xaMRmr']={},_0x3438['xwyscC']=!![];}const _0x5c3979=_0x6e20d2[0x0],_0x5f0a5f=_0x1aff23+_0x5c3979,_0x3048ff=_0x3438['xaMRmr'][_0x5f0a5f];return!_0x3048ff?(_0x343802=_0x3438['lUGEnn'](_0x343802),_0x3438['xaMRmr'][_0x5f0a5f]=_0x343802):_0x343802=_0x3048ff,_0x343802;}function readCapabilities(_0x48d038){const _0x41ba5f={_0x24e2de:0xf0,_0x3e034a:0xf2,_0x7e519c:0xe5},_0x48dee6=_0x54f390;if(typeof _0x48d038!=='object'||_0x48d038===null)return null;const _0x4523b9=_0x48d038,_0xf37448=__name(_0x1423df=>_0x4523b9[_0x1423df]===!![],'flag');return{'canRun':_0xf37448(_0x48dee6(_0x41ba5f._0x24e2de)),'canEditFiles':_0xf37448(_0x48dee6(_0x41ba5f._0x3e034a)),'canTerminal':_0xf37448(_0x48dee6(_0x41ba5f._0x7e519c)),'canBrowseFs':_0xf37448('canBrowseFs')};}__name(readCapabilities,_0x54f390(0xe0));function readIdentity(_0x19ee00){const _0x4dfa76={_0x44266b:0xe7,_0x5e86bb:0xed,_0x1531db:0xeb},_0x303410=_0x54f390;if(typeof _0x19ee00!=='object'||_0x19ee00===null)return null;const _0x13221c=_0x19ee00,{user:_0x3f3ea3,role:_0x143c37}=_0x13221c;if(typeof _0x3f3ea3!==_0x303410(0xe7)||typeof _0x143c37!==_0x303410(_0x4dfa76._0x44266b))return null;return{'user':_0x3f3ea3,'role':_0x143c37,...optionalString(_0x13221c,_0x303410(_0x4dfa76._0x5e86bb)),...optionalString(_0x13221c,_0x303410(0xef)),...optionalString(_0x13221c,'environmentsUrl'),...optionalString(_0x13221c,_0x303410(_0x4dfa76._0x1531db))};}__name(readIdentity,'readIdentity');function optionalString(_0x2f2da5,_0xef8198){const _0x260e27=_0x54f390,_0x488f19=_0x2f2da5[_0xef8198];return typeof _0x488f19===_0x260e27(0xe7)?{[_0xef8198]:_0x488f19}:{};}__name(optionalString,'optionalString');export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,decodeViewerSession,encodeViewerSession};
1
+ const _0x23116c=_0x5ebd;function _0x5ebd(_0x15ac29,_0xa8b31c){_0x15ac29=_0x15ac29-0x198;const _0x576d3a=_0x576d();let _0x5ebdfc=_0x576d3a[_0x15ac29];if(_0x5ebd['fxrOoM']===undefined){var _0x42bf16=function(_0x46c169){const _0x831250='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d1e5a='',_0x38ce73='';for(let _0x404ac3=0x0,_0x1be4bf,_0x253ac2,_0x23258b=0x0;_0x253ac2=_0x46c169['charAt'](_0x23258b++);~_0x253ac2&&(_0x1be4bf=_0x404ac3%0x4?_0x1be4bf*0x40+_0x253ac2:_0x253ac2,_0x404ac3++%0x4)?_0x5d1e5a+=String['fromCharCode'](0xff&_0x1be4bf>>(-0x2*_0x404ac3&0x6)):0x0){_0x253ac2=_0x831250['indexOf'](_0x253ac2);}for(let _0x3cb501=0x0,_0xef5a7c=_0x5d1e5a['length'];_0x3cb501<_0xef5a7c;_0x3cb501++){_0x38ce73+='%'+('00'+_0x5d1e5a['charCodeAt'](_0x3cb501)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38ce73);};_0x5ebd['IMCVDP']=_0x42bf16,_0x5ebd['zsaXft']={},_0x5ebd['fxrOoM']=!![];}const _0x3375ca=_0x576d3a[0x0],_0x328b1f=_0x15ac29+_0x3375ca,_0x370a05=_0x5ebd['zsaXft'][_0x328b1f];return!_0x370a05?(_0x5ebdfc=_0x5ebd['IMCVDP'](_0x5ebdfc),_0x5ebd['zsaXft'][_0x328b1f]=_0x5ebdfc):_0x5ebdfc=_0x370a05,_0x5ebdfc;}(function(_0x2629d7,_0x8adc1){const _0x4c3c5b={_0x592259:0x1ae,_0x5d347a:0x1b6,_0x4445c7:0x1b7,_0x2e42ca:0x1a4},_0x3ca6ae=_0x5ebd,_0x3ca564=_0x2629d7();while(!![]){try{const _0x3e8d10=-parseInt(_0x3ca6ae(0x1b1))/0x1+-parseInt(_0x3ca6ae(0x1b5))/0x2+-parseInt(_0x3ca6ae(_0x4c3c5b._0x592259))/0x3*(-parseInt(_0x3ca6ae(0x19e))/0x4)+parseInt(_0x3ca6ae(0x19d))/0x5+-parseInt(_0x3ca6ae(0x1a3))/0x6*(-parseInt(_0x3ca6ae(_0x4c3c5b._0x5d347a))/0x7)+-parseInt(_0x3ca6ae(_0x4c3c5b._0x4445c7))/0x8*(-parseInt(_0x3ca6ae(0x19f))/0x9)+-parseInt(_0x3ca6ae(_0x4c3c5b._0x2e42ca))/0xa*(-parseInt(_0x3ca6ae(0x1af))/0xb);if(_0x3e8d10===_0x8adc1)break;else _0x3ca564['push'](_0x3ca564['shift']());}catch(_0x29d2dd){_0x3ca564['push'](_0x3ca564['shift']());}}}(_0x576d,0x9fb6c));var __defProp=Object[_0x23116c(0x1b3)],__name=(_0x5d1e5a,_0x38ce73)=>__defProp(_0x5d1e5a,_0x23116c(0x1b4),{'value':_0x38ce73,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER=_0x23116c(0x1aa);function encodeViewerSession(_0x404ac3){const _0x3d44b5={_0x2d6f5e:0x1a5,_0x482d50:0x199,_0x22a492:0x19a},_0x457bcd=_0x23116c;return Buffer[_0x457bcd(_0x3d44b5._0x2d6f5e)](JSON[_0x457bcd(_0x3d44b5._0x482d50)](_0x404ac3),'utf8')[_0x457bcd(_0x3d44b5._0x22a492)]('base64url');}__name(encodeViewerSession,_0x23116c(0x1a7));function decodeViewerSession(_0x1be4bf){const _0x4d26f1={_0x411d87:0x1a5,_0x31713b:0x198,_0x179946:0x19a,_0x45cfd9:0x1a1},_0x2a9368=_0x23116c;if(_0x1be4bf===void 0x0||_0x1be4bf==='')return null;let _0x253ac2;try{_0x253ac2=JSON['parse'](Buffer[_0x2a9368(_0x4d26f1._0x411d87)](_0x1be4bf,_0x2a9368(_0x4d26f1._0x31713b))[_0x2a9368(_0x4d26f1._0x179946)](_0x2a9368(0x19c)));}catch{return null;}if(typeof _0x253ac2!==_0x2a9368(_0x4d26f1._0x45cfd9)||_0x253ac2===null)return null;const {capabilities:_0x23258b,identity:_0x3cb501}=_0x253ac2,_0xef5a7c=readCapabilities(_0x23258b);if(_0xef5a7c===null)return null;return{'capabilities':_0xef5a7c,'identity':readIdentity(_0x3cb501)};}__name(decodeViewerSession,_0x23116c(0x1a8));function readCapabilities(_0x1ef77d){const _0x592b76={_0xd23d2d:0x1ab,_0x518fda:0x1a9},_0x1b6ddf=_0x23116c;if(typeof _0x1ef77d!==_0x1b6ddf(0x1a1)||_0x1ef77d===null)return null;const _0xe9397a=_0x1ef77d,_0x3306d2=__name(_0x45a05b=>_0xe9397a[_0x45a05b]===!![],_0x1b6ddf(_0x592b76._0xd23d2d));return{'canRun':_0x3306d2('canRun'),'canEditFiles':_0x3306d2(_0x1b6ddf(0x1a0)),'canTerminal':_0x3306d2(_0x1b6ddf(_0x592b76._0x518fda)),'canBrowseFs':_0x3306d2(_0x1b6ddf(0x1a2))};}__name(readCapabilities,_0x23116c(0x19b));function readIdentity(_0x321f08){const _0x1605f6={_0x59d1a9:0x1b2,_0x5e2071:0x1ac,_0x5aecc9:0x1b0},_0x1eda63=_0x23116c;if(typeof _0x321f08!=='object'||_0x321f08===null)return null;const _0x4f2396=_0x321f08,{user:_0x3ccc93,role:_0x4471db}=_0x4f2396;if(typeof _0x3ccc93!==_0x1eda63(_0x1605f6._0x59d1a9)||typeof _0x4471db!==_0x1eda63(0x1b2))return null;return{'user':_0x3ccc93,'role':_0x4471db,...optionalString(_0x4f2396,_0x1eda63(_0x1605f6._0x5e2071)),...optionalString(_0x4f2396,'logoutUrl'),...optionalString(_0x4f2396,'environmentsUrl'),...optionalString(_0x4f2396,_0x1eda63(_0x1605f6._0x5aecc9))};}__name(readIdentity,_0x23116c(0x1ad));function optionalString(_0x499533,_0x4b3284){const _0x9985b7=_0x23116c,_0x177d7e=_0x499533[_0x4b3284];return typeof _0x177d7e===_0x9985b7(0x1b2)?{[_0x4b3284]:_0x177d7e}:{};}__name(optionalString,_0x23116c(0x1a6));function capabilitiesOf(_0x4d16d1){return decodeViewerSession(_0x4d16d1)?.['capabilities']??FULL_CAPABILITIES;}__name(capabilitiesOf,'capabilitiesOf');function _0x576d(){const _0x2e7165=['DxrMoa','mtGWmZu1mhPuExvKsW','mtjSsuPXDMi','nJG0ouzdDfDiua','y2fUrwrPDezPBgvZ','B2jQzwn0','y2fUqNjVD3nLrNm','mJKYmJe4zNnXy1nv','mti0nJm0mZbrv2rLq3y','zNjVBq','B3b0Aw9UywXtDhjPBMC','zw5JB2rLvMLLD2vYu2vZC2LVBG','zgvJB2rLvMLLD2vYu2vZC2LVBG','y2fUvgvYBwLUywW','Ec11BM90zxn0lxzPzxDLCI1ZzxnZAw9U','zMXHzW','zw52','CMvHzeLKzw50Axr5','odu2ndC5swDhsgDx','mtfXAvDjAwK','C3DPDgnOrw52vxjS','mte3ndqZm3H6uhPssG','C3rYAw5N','zgvMAw5LuhjVCgvYDhK','BMfTzq','mJiZnJi4ofruyvjtvW','mtr1vMHjBhy','nda1nKXXC2PbEG','yMfZzty0DxjS','C3rYAw5NAwz5','Dg9tDhjPBMC','CMvHzenHCgfIAwXPDgLLCW'];_0x576d=function(){return _0x2e7165;};return _0x576d();}export{FULL_CAPABILITIES,STANDALONE_SESSION,VIEWER_SESSION_HEADER,capabilitiesOf,decodeViewerSession,encodeViewerSession};
@@ -1 +1 @@
1
- var _0x1ee50f=_0xb2b0;(function(_0x48995b,_0xc99b84){var _0x4b8a7d={_0x2b723d:0xcb,_0x5ec258:0xbd,_0x4fe384:0xc9,_0x11e612:0xc5},_0x55d6fa=_0xb2b0,_0x44d6f4=_0x48995b();while(!![]){try{var _0x4da5b6=-parseInt(_0x55d6fa(0xc1))/0x1*(parseInt(_0x55d6fa(0xca))/0x2)+parseInt(_0x55d6fa(0xc2))/0x3*(parseInt(_0x55d6fa(0xbe))/0x4)+parseInt(_0x55d6fa(0xc0))/0x5*(parseInt(_0x55d6fa(_0x4b8a7d._0x2b723d))/0x6)+parseInt(_0x55d6fa(_0x4b8a7d._0x5ec258))/0x7*(parseInt(_0x55d6fa(0xc6))/0x8)+parseInt(_0x55d6fa(0xc8))/0x9+parseInt(_0x55d6fa(0xc7))/0xa+parseInt(_0x55d6fa(_0x4b8a7d._0x4fe384))/0xb*(-parseInt(_0x55d6fa(_0x4b8a7d._0x11e612))/0xc);if(_0x4da5b6===_0xc99b84)break;else _0x44d6f4['push'](_0x44d6f4['shift']());}catch(_0x195cae){_0x44d6f4['push'](_0x44d6f4['shift']());}}}(_0x5083,0x69542));var __defProp=Object['defineProperty'],__name=(_0x437a14,_0x29e853)=>__defProp(_0x437a14,_0x1ee50f(0xbf),{'value':_0x29e853,'configurable':!![]});function _0xb2b0(_0x5142af,_0x373ec2){_0x5142af=_0x5142af-0xbd;var _0x508380=_0x5083();var _0xb2b095=_0x508380[_0x5142af];if(_0xb2b0['tSCINi']===undefined){var _0x90da8c=function(_0x4af54e){var _0x3ff9f4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x437a14='',_0x29e853='';for(var _0x4b9646=0x0,_0x3b7d92,_0x23200d,_0xcb4ee7=0x0;_0x23200d=_0x4af54e['charAt'](_0xcb4ee7++);~_0x23200d&&(_0x3b7d92=_0x4b9646%0x4?_0x3b7d92*0x40+_0x23200d:_0x23200d,_0x4b9646++%0x4)?_0x437a14+=String['fromCharCode'](0xff&_0x3b7d92>>(-0x2*_0x4b9646&0x6)):0x0){_0x23200d=_0x3ff9f4['indexOf'](_0x23200d);}for(var _0x3ac871=0x0,_0x3a7115=_0x437a14['length'];_0x3ac871<_0x3a7115;_0x3ac871++){_0x29e853+='%'+('00'+_0x437a14['charCodeAt'](_0x3ac871)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29e853);};_0xb2b0['MRNMgG']=_0x90da8c,_0xb2b0['iPQTBY']={},_0xb2b0['tSCINi']=!![];}var _0x22a860=_0x508380[0x0],_0x3fcfe9=_0x5142af+_0x22a860,_0x172cdb=_0xb2b0['iPQTBY'][_0x3fcfe9];return!_0x172cdb?(_0xb2b095=_0xb2b0['MRNMgG'](_0xb2b095),_0xb2b0['iPQTBY'][_0x3fcfe9]=_0xb2b095):_0xb2b095=_0x172cdb,_0xb2b095;}import{unzipSync}from'fflate';function _0x5083(){var _0x382e1a=['otCZEvHmEhvN','odaZmte2DxfvBM1b','BMfTzq','otCZmde1BwTjBuDs','m3Phyw9LEq','m3jjvhHIBW','CMvHzfnUyxbZAg90rw50CMLLCW','u25HChnOB3rAAxbfCNjVCG','mtm0otC3mNH4s1rHCG','mtyYnJrPuMfNqNm','nta1odmYmeDbtw1XBG','mtK2mZiZm0Lht1bhrW','mZn6D3fIt2O','ndiYmdq2AufsD1HP','nLDLrLLpCW'];_0x5083=function(){return _0x382e1a;};return _0x5083();}var SnapshotZipError=class extends Error{static{__name(this,'SnapshotZipError');}constructor(_0x4b9646){var _0x3f9be7={_0x1d5947:0xbf,_0xcd0941:0xc4},_0x288aa1=_0x1ee50f;super(_0x4b9646),this[_0x288aa1(_0x3f9be7._0x1d5947)]=_0x288aa1(_0x3f9be7._0xcd0941);}};function readSnapshotEntries(_0x3b7d92){try{return unzipSync(_0x3b7d92);}catch{throw new SnapshotZipError('not\x20a\x20valid\x20.zip\x20(corrupted\x20or\x20wrong\x20file)');}}__name(readSnapshotEntries,_0x1ee50f(0xc3));export{SnapshotZipError,readSnapshotEntries};
1
+ var _0x125c44=_0x428d;(function(_0x2a938a,_0x480de2){var _0x4e14a5={_0x29c0bf:0x1aa,_0x25dcf6:0x1a4,_0x39da12:0x1ae,_0x5b8bde:0x1b1,_0x54529c:0x1a8},_0x44bb23=_0x428d,_0x4e5d79=_0x2a938a();while(!![]){try{var _0x2cc890=-parseInt(_0x44bb23(_0x4e14a5._0x29c0bf))/0x1+parseInt(_0x44bb23(0x1ad))/0x2+parseInt(_0x44bb23(_0x4e14a5._0x25dcf6))/0x3*(parseInt(_0x44bb23(_0x4e14a5._0x39da12))/0x4)+-parseInt(_0x44bb23(_0x4e14a5._0x5b8bde))/0x5*(-parseInt(_0x44bb23(0x1a9))/0x6)+-parseInt(_0x44bb23(0x1b0))/0x7*(parseInt(_0x44bb23(0x1a5))/0x8)+-parseInt(_0x44bb23(0x1a7))/0x9*(-parseInt(_0x44bb23(_0x4e14a5._0x54529c))/0xa)+-parseInt(_0x44bb23(0x1af))/0xb;if(_0x2cc890===_0x480de2)break;else _0x4e5d79['push'](_0x4e5d79['shift']());}catch(_0x2dbf7d){_0x4e5d79['push'](_0x4e5d79['shift']());}}}(_0x5308,0x6160b));var __defProp=Object[_0x125c44(0x1a6)],__name=(_0x238bb,_0xc5b364)=>__defProp(_0x238bb,_0x125c44(0x1b2),{'value':_0xc5b364,'configurable':!![]});import{unzipSync}from'fflate';var SnapshotZipError=class extends Error{static{__name(this,_0x125c44(0x1ac));}constructor(_0x5dca6b){var _0x1dfcf0={_0x12c417:0x1b2},_0x4843ec=_0x125c44;super(_0x5dca6b),this[_0x4843ec(_0x1dfcf0._0x12c417)]=_0x4843ec(0x1ac);}};function readSnapshotEntries(_0x5228dd){var _0x25507c={_0x1cd85f:0x1ab},_0x4d55a0=_0x125c44;try{return unzipSync(_0x5228dd);}catch{throw new SnapshotZipError(_0x4d55a0(_0x25507c._0x1cd85f));}}__name(readSnapshotEntries,'readSnapshotEntries');function _0x428d(_0x4284d7,_0x2aebed){_0x4284d7=_0x4284d7-0x1a4;var _0x5308e0=_0x5308();var _0x428dd0=_0x5308e0[_0x4284d7];if(_0x428d['EmSyFq']===undefined){var _0x322a05=function(_0x49aa21){var _0x112f9a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x238bb='',_0xc5b364='';for(var _0x5dca6b=0x0,_0x5228dd,_0x1facb3,_0x1f009e=0x0;_0x1facb3=_0x49aa21['charAt'](_0x1f009e++);~_0x1facb3&&(_0x5228dd=_0x5dca6b%0x4?_0x5228dd*0x40+_0x1facb3:_0x1facb3,_0x5dca6b++%0x4)?_0x238bb+=String['fromCharCode'](0xff&_0x5228dd>>(-0x2*_0x5dca6b&0x6)):0x0){_0x1facb3=_0x112f9a['indexOf'](_0x1facb3);}for(var _0x41017b=0x0,_0x4e8370=_0x238bb['length'];_0x41017b<_0x4e8370;_0x41017b++){_0xc5b364+='%'+('00'+_0x238bb['charCodeAt'](_0x41017b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc5b364);};_0x428d['GmsxAH']=_0x322a05,_0x428d['sbfxus']={},_0x428d['EmSyFq']=!![];}var _0x2ca569=_0x5308e0[0x0],_0x44a978=_0x4284d7+_0x2ca569,_0xc54081=_0x428d['sbfxus'][_0x44a978];return!_0xc54081?(_0x428dd0=_0x428d['GmsxAH'](_0x428dd0),_0x428d['sbfxus'][_0x44a978]=_0x428dd0):_0x428dd0=_0xc54081,_0x428dd0;}function _0x5308(){var _0x369027=['ntC5ndC0wg5PCMHY','mJa2mJKZnLLzqwPVwG','mZe3nZCYnffIv0vNuq','mJGYmdy4nvjuquL0vW','mtu0ntvnuwjZAeG','BMfTzq','m2LRCeTdqG','ohbnA3vetq','zgvMAw5LuhjVCgvYDhK','ow5qrLHeza','mZi5ndG2mg9TBxz6uW','ndu2DgnXrurQ','mJC5mtC1rMfwA3bK','BM90igeGDMfSAwqGlNPPCcaOy29YCNvWDgvKig9YihDYB25NigzPBguP','u25HChnOB3rAAxbfCNjVCG'];_0x5308=function(){return _0x369027;};return _0x5308();}export{SnapshotZipError,readSnapshotEntries};
@@ -1 +1 @@
1
- var _0x459c38=_0x47e1;(function(_0x2a3f3c,_0x503e50){var _0x38a464={_0xd58a0c:0x191,_0x39dc6e:0x1a0,_0x21d1d3:0x19e,_0x327374:0x1a6},_0x5d8d85=_0x47e1,_0x1599a4=_0x2a3f3c();while(!![]){try{var _0x1a7274=parseInt(_0x5d8d85(_0x38a464._0xd58a0c))/0x1+-parseInt(_0x5d8d85(_0x38a464._0x39dc6e))/0x2+parseInt(_0x5d8d85(_0x38a464._0x21d1d3))/0x3*(parseInt(_0x5d8d85(0x1a7))/0x4)+-parseInt(_0x5d8d85(_0x38a464._0x327374))/0x5+-parseInt(_0x5d8d85(0x1a8))/0x6+parseInt(_0x5d8d85(0x195))/0x7*(parseInt(_0x5d8d85(0x199))/0x8)+parseInt(_0x5d8d85(0x1a4))/0x9;if(_0x1a7274===_0x503e50)break;else _0x1599a4['push'](_0x1599a4['shift']());}catch(_0x591b8c){_0x1599a4['push'](_0x1599a4['shift']());}}}(_0x3287,0xee27b));var __defProp=Object[_0x459c38(0x1a5)],__name=(_0x335262,_0x6f76e5)=>__defProp(_0x335262,_0x459c38(0x19c),{'value':_0x6f76e5,'configurable':!![]}),SNAPSHOT_FORMAT='unotest-snapshot@1';function _0x3287(){var _0x37f135=['zMfPBhvYzs5QC29U','mta3oti2m05HAK5Rwa','C25HChnOB3qUANnVBG','C2nYzwvUC2HVDhm','C3rKzxjYlMXVzW','mJe5nJa0vNnPEfH2','AxntDxbWB3j0zwrtBMfWC2HVDezVCM1HDa','C25HChnOB3q','CgfNzs5ODg1S','mtzACuLRCLe','C3rLChmUANnVBMW','C2fMzq','BMfTzq','C25HChnOB3rgAwXLtMfTzq','mtyZmJiXovbzBgP2ua','y29UC29Szs5QC29U','mJC3nty1nNPxrxjcrG','BMv0D29YAY5QC29U','zgvJBgfYzwrAAxbqyxrOCW','CMvWBgfJzq','mtGXnZuZmtfsDfvnu1K','zgvMAw5LuhjVCgvYDhK','mZa0nZi4mgPqsNrvra','mtjHuvjfDeC','mta5mJu2mJHfy3Hrt2K','C291CMnLCY5QC29U','B3v0BgLUzs50Ehq'];_0x3287=function(){return _0x37f135;};return _0x3287();}function declaredZipPaths(_0x44bd25){var _0x4a67dc={_0x47b432:0x193},_0x18252f=_0x459c38;return[...Object['values'](_0x44bd25['files']??{}),..._0x44bd25[_0x18252f(_0x4a67dc._0x47b432)]??[]];}function _0x47e1(_0x1d36c6,_0x341e79){_0x1d36c6=_0x1d36c6-0x18e;var _0x3287fc=_0x3287();var _0x47e188=_0x3287fc[_0x1d36c6];if(_0x47e1['KxWBEj']===undefined){var _0x3a6819=function(_0x146713){var _0xca5b46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x335262='',_0x6f76e5='';for(var _0x44bd25=0x0,_0x479f7a,_0x2a1043,_0x2eff9b=0x0;_0x2a1043=_0x146713['charAt'](_0x2eff9b++);~_0x2a1043&&(_0x479f7a=_0x44bd25%0x4?_0x479f7a*0x40+_0x2a1043:_0x2a1043,_0x44bd25++%0x4)?_0x335262+=String['fromCharCode'](0xff&_0x479f7a>>(-0x2*_0x44bd25&0x6)):0x0){_0x2a1043=_0xca5b46['indexOf'](_0x2a1043);}for(var _0x285a30=0x0,_0x5e7398=_0x335262['length'];_0x285a30<_0x5e7398;_0x285a30++){_0x6f76e5+='%'+('00'+_0x335262['charCodeAt'](_0x285a30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6f76e5);};_0x47e1['UnMdgR']=_0x3a6819,_0x47e1['EbIkqG']={},_0x47e1['KxWBEj']=!![];}var _0x499706=_0x3287fc[0x0],_0x4beb6c=_0x1d36c6+_0x499706,_0x4f22bc=_0x47e1['EbIkqG'][_0x4beb6c];return!_0x4f22bc?(_0x47e188=_0x47e1['UnMdgR'](_0x47e188),_0x47e1['EbIkqG'][_0x4beb6c]=_0x47e188):_0x47e188=_0x4f22bc,_0x47e188;}__name(declaredZipPaths,_0x459c38(0x1a2));var SNAPSHOT_ASSETS={'steps':_0x459c38(0x19a),'runtime':'runtime.json','sources':_0x459c38(0x18e),'failure':_0x459c38(0x190),'console':_0x459c38(0x19f),'network':_0x459c38(0x1a1),'domSnapshot':_0x459c38(0x192),'outline':_0x459c38(0x18f),'screenshot':'screenshot.png','page':_0x459c38(0x198),'stdout':'stdout.log','stderr':_0x459c38(0x194)};function snapshotFileName(_0x479f7a,_0x2a1043){var _0x3863b4={_0x57b4a0:0x19b},_0x3ab185=_0x459c38;const _0x2eff9b=__name(_0x5036fd=>_0x5036fd[_0x3ab185(0x1a3)](/[^a-zA-Z0-9._-]+/g,'-')[_0x3ab185(0x1a3)](/^-+|-+$/g,''),_0x3ab185(_0x3863b4._0x57b4a0)),_0x285a30=_0x2eff9b(_0x479f7a),_0x5e7398=_0x2eff9b(_0x2a1043),_0x2cdb19=!_0x285a30||_0x5e7398['startsWith'](_0x285a30)?_0x5e7398:_0x285a30+'-'+_0x5e7398;return(_0x2cdb19||_0x3ab185(0x197))+'.unotest.zip';}__name(snapshotFileName,_0x459c38(0x19d));function isSupportedSnapshotFormat(_0x28dd75){return _0x28dd75===SNAPSHOT_FORMAT;}__name(isSupportedSnapshotFormat,_0x459c38(0x196));export{SNAPSHOT_ASSETS,SNAPSHOT_FORMAT,declaredZipPaths,isSupportedSnapshotFormat,snapshotFileName};
1
+ function _0x3712(_0x33fff1,_0x8bcfd6){_0x33fff1=_0x33fff1-0x15b;var _0x108543=_0x1085();var _0x3712ec=_0x108543[_0x33fff1];if(_0x3712['jeXXNU']===undefined){var _0x7cec4=function(_0xeae353){var _0x21f1d9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x10f0f6='',_0x5e2b59='';for(var _0x524c3f=0x0,_0x2ca950,_0x15d473,_0x13eca2=0x0;_0x15d473=_0xeae353['charAt'](_0x13eca2++);~_0x15d473&&(_0x2ca950=_0x524c3f%0x4?_0x2ca950*0x40+_0x15d473:_0x15d473,_0x524c3f++%0x4)?_0x10f0f6+=String['fromCharCode'](0xff&_0x2ca950>>(-0x2*_0x524c3f&0x6)):0x0){_0x15d473=_0x21f1d9['indexOf'](_0x15d473);}for(var _0x565b46=0x0,_0x46c6d7=_0x10f0f6['length'];_0x565b46<_0x46c6d7;_0x565b46++){_0x5e2b59+='%'+('00'+_0x10f0f6['charCodeAt'](_0x565b46)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e2b59);};_0x3712['gKUopz']=_0x7cec4,_0x3712['cLysgz']={},_0x3712['jeXXNU']=!![];}var _0x4b56de=_0x108543[0x0],_0x438889=_0x33fff1+_0x4b56de,_0x3f9739=_0x3712['cLysgz'][_0x438889];return!_0x3f9739?(_0x3712ec=_0x3712['gKUopz'](_0x3712ec),_0x3712['cLysgz'][_0x438889]=_0x3712ec):_0x3712ec=_0x3f9739,_0x3712ec;}var _0x482ee9=_0x3712;(function(_0x587979,_0x58c551){var _0x378370={_0x10ee34:0x16d,_0x301b37:0x172,_0x475f31:0x16f,_0x580747:0x15e,_0x151b15:0x167,_0x3532f6:0x161},_0xdadb54=_0x3712,_0x577116=_0x587979();while(!![]){try{var _0x506237=-parseInt(_0xdadb54(_0x378370._0x10ee34))/0x1+parseInt(_0xdadb54(_0x378370._0x301b37))/0x2+-parseInt(_0xdadb54(_0x378370._0x475f31))/0x3+parseInt(_0xdadb54(_0x378370._0x580747))/0x4+parseInt(_0xdadb54(_0x378370._0x151b15))/0x5+parseInt(_0xdadb54(_0x378370._0x3532f6))/0x6*(-parseInt(_0xdadb54(0x16a))/0x7)+parseInt(_0xdadb54(0x15f))/0x8*(parseInt(_0xdadb54(0x16b))/0x9);if(_0x506237===_0x58c551)break;else _0x577116['push'](_0x577116['shift']());}catch(_0x54814a){_0x577116['push'](_0x577116['shift']());}}}(_0x1085,0x2d8bd));var __defProp=Object[_0x482ee9(0x164)],__name=(_0x10f0f6,_0x5e2b59)=>__defProp(_0x10f0f6,_0x482ee9(0x15b),{'value':_0x5e2b59,'configurable':!![]}),SNAPSHOT_FORMAT=_0x482ee9(0x15d);function declaredZipPaths(_0x524c3f){var _0x32ca09=_0x482ee9;return[...Object['values'](_0x524c3f['files']??{}),..._0x524c3f[_0x32ca09(0x174)]??[]];}__name(declaredZipPaths,_0x482ee9(0x16c));var SNAPSHOT_ASSETS={'steps':'steps.jsonl','runtime':'runtime.json','sources':_0x482ee9(0x160),'failure':_0x482ee9(0x173),'console':_0x482ee9(0x163),'network':_0x482ee9(0x16e),'domSnapshot':_0x482ee9(0x168),'outline':_0x482ee9(0x170),'screenshot':_0x482ee9(0x166),'page':'page.html','stdout':_0x482ee9(0x171),'stderr':'stderr.log'};function snapshotFileName(_0x2ca950,_0x15d473){var _0x1aa717={_0x504ec1:0x175,_0x219106:0x15c},_0x379226=_0x482ee9;const _0x13eca2=__name(_0x56b605=>_0x56b605[_0x379226(0x169)](/[^a-zA-Z0-9._-]+/g,'-')['replace'](/^-+|-+$/g,''),_0x379226(_0x1aa717._0x504ec1)),_0x565b46=_0x13eca2(_0x2ca950),_0x46c6d7=_0x13eca2(_0x15d473),_0x5d6619=!_0x565b46||_0x46c6d7[_0x379226(_0x1aa717._0x219106)](_0x565b46)?_0x46c6d7:_0x565b46+'-'+_0x46c6d7;return(_0x5d6619||'snapshot')+'.unotest.zip';}__name(snapshotFileName,_0x482ee9(0x165));function isSupportedSnapshotFormat(_0x1e59a3){return _0x1e59a3===SNAPSHOT_FORMAT;}__name(isSupportedSnapshotFormat,_0x482ee9(0x162));function _0x1085(){var _0x5b025f=['zgvMAw5LuhjVCgvYDhK','C25HChnOB3rgAwXLtMfTzq','C2nYzwvUC2HVDc5WBMC','nJuYntm1Bwz6EvHy','C25HChnOB3qUANnVBG','CMvWBgfJzq','mZvwuw1RAgm','mtqYnZe5m2fmt0Tcyq','zgvJBgfYzwrAAxbqyxrOCW','mJK4mtK0u3HhEK5u','BMv0D29YAY5QC29U','mZiXoteYqK5zAM5s','B3v0BgLUzs50Ehq','C3rKB3v0lMXVzW','ndi1otmYufzHCwzI','zMfPBhvYzs5QC29U','C2nYzwvUC2HVDhm','C2fMzq','BMfTzq','C3rHCNrZv2L0Aa','Dw5VDgvZDc1ZBMfWC2HVDeaX','mtiWody5mNzwDgrWCq','mtzTuxbqBMy','C291CMnLCY5QC29U','ndq0odK0shLVDKzg','AxntDxbWB3j0zwrtBMfWC2HVDezVCM1HDa','y29UC29Szs5QC29U'];_0x1085=function(){return _0x5b025f;};return _0x1085();}export{SNAPSHOT_ASSETS,SNAPSHOT_FORMAT,declaredZipPaths,isSupportedSnapshotFormat,snapshotFileName};