@unotest/viewer 0.32.0 → 0.35.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 _0x335c93=_0x29b9;(function(_0x5d8b93,_0x3a81e6){const _0x303ae9={_0x224f90:0xa1,_0x531e7b:0xa8,_0x453db3:0x9d,_0x2bfbae:0xa9,_0x1f39b7:0xab,_0x31db95:0x97},_0x2f40cf=_0x29b9,_0x2c595f=_0x5d8b93();while(!![]){try{const _0xf10a98=-parseInt(_0x2f40cf(_0x303ae9._0x224f90))/0x1*(-parseInt(_0x2f40cf(_0x303ae9._0x531e7b))/0x2)+parseInt(_0x2f40cf(_0x303ae9._0x453db3))/0x3+-parseInt(_0x2f40cf(_0x303ae9._0x2bfbae))/0x4*(parseInt(_0x2f40cf(_0x303ae9._0x1f39b7))/0x5)+-parseInt(_0x2f40cf(0xaf))/0x6*(-parseInt(_0x2f40cf(0x99))/0x7)+-parseInt(_0x2f40cf(_0x303ae9._0x31db95))/0x8*(parseInt(_0x2f40cf(0x96))/0x9)+parseInt(_0x2f40cf(0x98))/0xa+-parseInt(_0x2f40cf(0xa2))/0xb;if(_0xf10a98===_0x3a81e6)break;else _0x2c595f['push'](_0x2c595f['shift']());}catch(_0x26498d){_0x2c595f['push'](_0x2c595f['shift']());}}}(_0x1506,0x37ec4));var __defProp=Object['defineProperty'],__name=(_0x2f6c65,_0x4bcfd1)=>__defProp(_0x2f6c65,_0x335c93(0x92),{'value':_0x4bcfd1,'configurable':!![]}),FULL_CAPABILITIES={'canRun':!![],'canEditFiles':!![],'canTerminal':!![],'canBrowseFs':!![]},STANDALONE_SESSION={'capabilities':FULL_CAPABILITIES,'identity':null},VIEWER_SESSION_HEADER='x-unotest-viewer-session';function encodeViewerSession(_0x2f0d0f){const _0x16922c={_0x1f6907:0x9c,_0x2ad987:0xae},_0x169b0f=_0x335c93;return Buffer[_0x169b0f(0x91)](JSON[_0x169b0f(_0x16922c._0x1f6907)](_0x2f0d0f),_0x169b0f(0xa0))[_0x169b0f(_0x16922c._0x2ad987)](_0x169b0f(0xa3));}__name(encodeViewerSession,_0x335c93(0x9b));function decodeViewerSession(_0x142ab0){const _0x7667e8={_0x4342f3:0xa4},_0x5c1472=_0x335c93;if(_0x142ab0===void 0x0||_0x142ab0==='')return null;let _0x4babae;try{_0x4babae=JSON['parse'](Buffer['from'](_0x142ab0,_0x5c1472(0xa3))['toString']('utf8'));}catch{return null;}if(typeof _0x4babae!==_0x5c1472(_0x7667e8._0x4342f3)||_0x4babae===null)return null;const {capabilities:_0x1cf5a6,identity:_0x565c08}=_0x4babae,_0x4f302b=readCapabilities(_0x1cf5a6);if(_0x4f302b===null)return null;return{'capabilities':_0x4f302b,'identity':readIdentity(_0x565c08)};}__name(decodeViewerSession,_0x335c93(0xad));function _0x1506(){const _0x47c3aa=['nda0mJG5r0HXvejg','ntzQA2L5sM0','mtu0nJyXmhrhtefPDq','n3fyuurdqG','y2fWywjPBgL0AwvZt2y','zw5JB2rLvMLLD2vYu2vZC2LVBG','C3rYAw5NAwz5','mJaYmdi2u3zqr0rY','y2fUqNjVD3nLrNm','CMvHzeLKzw50Axr5','DxrMoa','mty4mdfSCLzPq2u','mJi3mJmYnxvyufvAsW','yMfZzty0DxjS','B2jQzwn0','y2fUuNvU','zw52','C3DPDgnOrw52vxjS','ndjvrhHvt3G','nZi0nZz3DNnrENK','zMXHzW','nZvxDvz6rLi','y2fUrwrPDezPBgvZ','zgvJB2rLvMLLD2vYu2vZC2LVBG','Dg9tDhjPBMC','mJy4mJi1ogfNEvD5qq','B3b0Aw9UywXtDhjPBMC','Bg9NB3v0vxjS','y2fWywjPBgL0AwvZ','zNjVBq','BMfTzq','zw52AxjVBM1LBNrZvxjS','C3rYAw5N','CMvHzenHCgfIAwXPDgLLCW'];_0x1506=function(){return _0x47c3aa;};return _0x1506();}function readCapabilities(_0x20b89d){const _0x54a325={_0x4909ec:0xa4,_0x250351:0xaa,_0x113a3f:0xac},_0xfe4e3f=_0x335c93;if(typeof _0x20b89d!==_0xfe4e3f(_0x54a325._0x4909ec)||_0x20b89d===null)return null;const _0x3c8162=_0x20b89d,_0x3e4781=__name(_0x44ed9e=>_0x3c8162[_0x44ed9e]===!![],_0xfe4e3f(_0x54a325._0x250351));return{'canRun':_0x3e4781(_0xfe4e3f(0xa5)),'canEditFiles':_0x3e4781(_0xfe4e3f(_0x54a325._0x113a3f)),'canTerminal':_0x3e4781('canTerminal'),'canBrowseFs':_0x3e4781(_0xfe4e3f(0x9e))};}__name(readCapabilities,_0x335c93(0x95));function readIdentity(_0x17ae33){const _0x1403ae={_0x35ba56:0xa4,_0x5c7b92:0x94,_0x14df2d:0xa6,_0x31c118:0xb1,_0x1ecc68:0x93},_0x478e1b=_0x335c93;if(typeof _0x17ae33!==_0x478e1b(_0x1403ae._0x35ba56)||_0x17ae33===null)return null;const _0x3a2439=_0x17ae33,{user:_0x8650ef,role:_0x1b5c66}=_0x3a2439;if(typeof _0x8650ef!==_0x478e1b(0x94)||typeof _0x1b5c66!==_0x478e1b(_0x1403ae._0x5c7b92))return null;return{'user':_0x8650ef,'role':_0x1b5c66,...optionalString(_0x3a2439,_0x478e1b(_0x1403ae._0x14df2d)),...optionalString(_0x3a2439,_0x478e1b(_0x1403ae._0x31c118)),...optionalString(_0x3a2439,_0x478e1b(_0x1403ae._0x1ecc68)),...optionalString(_0x3a2439,_0x478e1b(0xa7))};}__name(readIdentity,_0x335c93(0x9f));function optionalString(_0xd2c412,_0x1fc538){const _0x33c297=_0x335c93,_0x51b042=_0xd2c412[_0x1fc538];return typeof _0x51b042===_0x33c297(0x94)?{[_0x1fc538]:_0x51b042}:{};}__name(optionalString,_0x335c93(0xb0));function capabilitiesOf(_0x533075){const _0x13aab4={_0x1ec74d:0x90},_0xe712f5=_0x335c93;return decodeViewerSession(_0x533075)?.[_0xe712f5(_0x13aab4._0x1ec74d)]??FULL_CAPABILITIES;}function _0x29b9(_0x18bb66,_0x4d9121){_0x18bb66=_0x18bb66-0x90;const _0x150691=_0x1506();let _0x29b9ce=_0x150691[_0x18bb66];if(_0x29b9['HRaPMO']===undefined){var _0x4ce17b=function(_0x380f78){const _0x20e1b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f6c65='',_0x4bcfd1='';for(let _0x2f0d0f=0x0,_0x142ab0,_0x4babae,_0x1cf5a6=0x0;_0x4babae=_0x380f78['charAt'](_0x1cf5a6++);~_0x4babae&&(_0x142ab0=_0x2f0d0f%0x4?_0x142ab0*0x40+_0x4babae:_0x4babae,_0x2f0d0f++%0x4)?_0x2f6c65+=String['fromCharCode'](0xff&_0x142ab0>>(-0x2*_0x2f0d0f&0x6)):0x0){_0x4babae=_0x20e1b4['indexOf'](_0x4babae);}for(let _0x565c08=0x0,_0x4f302b=_0x2f6c65['length'];_0x565c08<_0x4f302b;_0x565c08++){_0x4bcfd1+='%'+('00'+_0x2f6c65['charCodeAt'](_0x565c08)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bcfd1);};_0x29b9['DpjEYc']=_0x4ce17b,_0x29b9['DUxrMs']={},_0x29b9['HRaPMO']=!![];}const _0x14031a=_0x150691[0x0],_0x29f7c6=_0x18bb66+_0x14031a,_0x2c33ca=_0x29b9['DUxrMs'][_0x29f7c6];return!_0x2c33ca?(_0x29b9ce=_0x29b9['DpjEYc'](_0x29b9ce),_0x29b9['DUxrMs'][_0x29f7c6]=_0x29b9ce):_0x29b9ce=_0x2c33ca,_0x29b9ce;}__name(capabilitiesOf,_0x335c93(0x9a));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
+ function _0x2a91(_0x3c37d6,_0x1ea557){_0x3c37d6=_0x3c37d6-0x1b3;var _0x32af1a=_0x32af();var _0x2a91e3=_0x32af1a[_0x3c37d6];if(_0x2a91['vhtrdk']===undefined){var _0x42bb44=function(_0x5da09f){var _0x518c87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x20e508='',_0x31b0b6='';for(var _0x2e3180=0x0,_0x577608,_0x445fd4,_0x5c5ae7=0x0;_0x445fd4=_0x5da09f['charAt'](_0x5c5ae7++);~_0x445fd4&&(_0x577608=_0x2e3180%0x4?_0x577608*0x40+_0x445fd4:_0x445fd4,_0x2e3180++%0x4)?_0x20e508+=String['fromCharCode'](0xff&_0x577608>>(-0x2*_0x2e3180&0x6)):0x0){_0x445fd4=_0x518c87['indexOf'](_0x445fd4);}for(var _0x2f4497=0x0,_0x53c217=_0x20e508['length'];_0x2f4497<_0x53c217;_0x2f4497++){_0x31b0b6+='%'+('00'+_0x20e508['charCodeAt'](_0x2f4497)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31b0b6);};_0x2a91['IgQEzH']=_0x42bb44,_0x2a91['PaXxwy']={},_0x2a91['vhtrdk']=!![];}var _0x24fca7=_0x32af1a[0x0],_0x4bfecc=_0x3c37d6+_0x24fca7,_0x376543=_0x2a91['PaXxwy'][_0x4bfecc];return!_0x376543?(_0x2a91e3=_0x2a91['IgQEzH'](_0x2a91e3),_0x2a91['PaXxwy'][_0x4bfecc]=_0x2a91e3):_0x2a91e3=_0x376543,_0x2a91e3;}var _0x3e5192=_0x2a91;(function(_0x354764,_0x2ebebc){var _0xcdcf70={_0x4fa882:0x1bf,_0x1d8979:0x1ba,_0x31ecda:0x1b9,_0x4f54f0:0x1c0},_0xa00ad1=_0x2a91,_0x4186d6=_0x354764();while(!![]){try{var _0x2e7050=parseInt(_0xa00ad1(_0xcdcf70._0x4fa882))/0x1+-parseInt(_0xa00ad1(_0xcdcf70._0x1d8979))/0x2+parseInt(_0xa00ad1(0x1b5))/0x3+-parseInt(_0xa00ad1(0x1be))/0x4*(-parseInt(_0xa00ad1(_0xcdcf70._0x31ecda))/0x5)+parseInt(_0xa00ad1(0x1b7))/0x6+parseInt(_0xa00ad1(0x1bc))/0x7*(-parseInt(_0xa00ad1(0x1bd))/0x8)+-parseInt(_0xa00ad1(0x1bb))/0x9*(parseInt(_0xa00ad1(_0xcdcf70._0x4f54f0))/0xa);if(_0x2e7050===_0x2ebebc)break;else _0x4186d6['push'](_0x4186d6['shift']());}catch(_0x2fa7c5){_0x4186d6['push'](_0x4186d6['shift']());}}}(_0x32af,0xb5f14));var __defProp=Object[_0x3e5192(0x1b6)],__name=(_0x20e508,_0x31b0b6)=>__defProp(_0x20e508,'name',{'value':_0x31b0b6,'configurable':!![]});import{unzipSync}from'fflate';var SnapshotZipError=class extends Error{static{__name(this,_0x3e5192(0x1b4));}constructor(_0x2e3180){var _0x3b2dce=_0x3e5192;super(_0x2e3180),this['name']=_0x3b2dce(0x1b4);}};function readSnapshotEntries(_0x577608){var _0x370293=_0x3e5192;try{return unzipSync(_0x577608);}catch{throw new SnapshotZipError(_0x370293(0x1b8));}}__name(readSnapshotEntries,_0x3e5192(0x1b3));export{SnapshotZipError,readSnapshotEntries};function _0x32af(){var _0x54feb9=['zgvMAw5LuhjVCgvYDhK','nJy4nJu3nhnkwvzPEq','BM90igeGDMfSAwqGlNPPCcaOy29YCNvWDgvKig9YihDYB25NigzPBguP','odvJD2nSqLC','mJyYotryAKjiDvi','ndKWotu0nuLnreXHDW','ndG1nJi1n3r6A0PQwa','ohrrt3HVva','mti3mZGWz1rcswzl','mtm5nJmWnwLyCeDera','ntbby3H0vM0','CMvHzfnUyxbZAg90rw50CMLLCW','u25HChnOB3rAAxbfCNjVCG','mZm4mJy4mevAzer1rq'];_0x32af=function(){return _0x54feb9;};return _0x32af();}
@@ -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
+ var _0x4534a7=_0x1496;(function(_0x25a931,_0x583037){var _0x197aad={_0x3763a9:0x124,_0x4d84ce:0x128,_0x241697:0x11f,_0x4026c1:0x11c,_0x2a9020:0x12a,_0xead6fc:0x130},_0x924475=_0x1496,_0x45ebc5=_0x25a931();while(!![]){try{var _0x4e3788=parseInt(_0x924475(0x116))/0x1+parseInt(_0x924475(_0x197aad._0x3763a9))/0x2*(-parseInt(_0x924475(_0x197aad._0x4d84ce))/0x3)+-parseInt(_0x924475(_0x197aad._0x241697))/0x4*(-parseInt(_0x924475(0x115))/0x5)+parseInt(_0x924475(_0x197aad._0x4026c1))/0x6+parseInt(_0x924475(_0x197aad._0x2a9020))/0x7+-parseInt(_0x924475(0x127))/0x8+-parseInt(_0x924475(_0x197aad._0xead6fc))/0x9;if(_0x4e3788===_0x583037)break;else _0x45ebc5['push'](_0x45ebc5['shift']());}catch(_0x38d6e9){_0x45ebc5['push'](_0x45ebc5['shift']());}}}(_0x4864,0xc5558));var __defProp=Object[_0x4534a7(0x122)],__name=(_0x2ebce6,_0x1751d3)=>__defProp(_0x2ebce6,_0x4534a7(0x123),{'value':_0x1751d3,'configurable':!![]}),SNAPSHOT_FORMAT='unotest-snapshot@1';function declaredZipPaths(_0x3152dc){var _0x2237bd={_0x518783:0x12b,_0x10f330:0x12d,_0x561610:0x12e},_0x5098e5=_0x4534a7;return[...Object[_0x5098e5(_0x2237bd._0x518783)](_0x3152dc[_0x5098e5(_0x2237bd._0x10f330)]??{}),..._0x3152dc[_0x5098e5(_0x2237bd._0x561610)]??[]];}function _0x4864(){var _0x1f6bbd=['mtuYnJGXmxbHtg9QsW','C3rKzxjYlMXVzW','C3rHCNrZv2L0Aa','C3rLChmUANnVBMW','zMfPBhvYzs5QC29U','CMvWBgfJzq','ndaYmtG5nLjKzw1Huq','BMv0D29YAY5QC29U','C291CMnLCY5QC29U','odKWmZq4tgHJv290','lNvUB3rLC3qUEMLW','y29UC29Szs5QC29U','zgvMAw5LuhjVCgvYDhK','BMfTzq','mti5ntjIrvrSs1G','C25HChnOB3rgAwXLtMfTzq','C3rKB3v0lMXVzW','odK4nZu3nMLTyurvsG','ntm0EwL1Cezi','C25HChnOB3qUANnVBG','nJi3odKXnNzss2rrAa','DMfSDwvZ','AxntDxbWB3j0zwrtBMfWC2HVDezVCM1HDa','zMLSzxm','C2nYzwvUC2HVDhm','zgvJBgfYzwrAAxbqyxrOCW','nda5mZuWnLDgqLjnBG','mtb2yLvVBKi'];_0x4864=function(){return _0x1f6bbd;};return _0x4864();}__name(declaredZipPaths,_0x4534a7(0x12f));var SNAPSHOT_ASSETS={'steps':_0x4534a7(0x119),'runtime':'runtime.json','sources':_0x4534a7(0x11e),'failure':_0x4534a7(0x11a),'console':_0x4534a7(0x121),'network':_0x4534a7(0x11d),'domSnapshot':_0x4534a7(0x129),'outline':'outline.txt','screenshot':'screenshot.png','page':'page.html','stdout':_0x4534a7(0x126),'stderr':_0x4534a7(0x117)};function snapshotFileName(_0x87c8e3,_0x263097){var _0xbe6475=_0x4534a7;const _0x526b33=__name(_0x2198b2=>_0x2198b2[_0xbe6475(0x11b)](/[^a-zA-Z0-9._-]+/g,'-')[_0xbe6475(0x11b)](/^-+|-+$/g,''),'safe'),_0x307fa7=_0x526b33(_0x87c8e3),_0x7feacd=_0x526b33(_0x263097),_0x1e0078=!_0x307fa7||_0x7feacd[_0xbe6475(0x118)](_0x307fa7)?_0x7feacd:_0x307fa7+'-'+_0x7feacd;return(_0x1e0078||'snapshot')+_0xbe6475(0x120);}__name(snapshotFileName,_0x4534a7(0x125));function isSupportedSnapshotFormat(_0x2f4a83){return _0x2f4a83===SNAPSHOT_FORMAT;}__name(isSupportedSnapshotFormat,_0x4534a7(0x12c));function _0x1496(_0x2ab71b,_0x502002){_0x2ab71b=_0x2ab71b-0x115;var _0x4864e7=_0x4864();var _0x14968f=_0x4864e7[_0x2ab71b];if(_0x1496['PlMgRF']===undefined){var _0x123a80=function(_0x26df2c){var _0x39407a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2ebce6='',_0x1751d3='';for(var _0x3152dc=0x0,_0x87c8e3,_0x263097,_0x526b33=0x0;_0x263097=_0x26df2c['charAt'](_0x526b33++);~_0x263097&&(_0x87c8e3=_0x3152dc%0x4?_0x87c8e3*0x40+_0x263097:_0x263097,_0x3152dc++%0x4)?_0x2ebce6+=String['fromCharCode'](0xff&_0x87c8e3>>(-0x2*_0x3152dc&0x6)):0x0){_0x263097=_0x39407a['indexOf'](_0x263097);}for(var _0x307fa7=0x0,_0x7feacd=_0x2ebce6['length'];_0x307fa7<_0x7feacd;_0x307fa7++){_0x1751d3+='%'+('00'+_0x2ebce6['charCodeAt'](_0x307fa7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1751d3);};_0x1496['HynAij']=_0x123a80,_0x1496['difIbb']={},_0x1496['PlMgRF']=!![];}var _0x578483=_0x4864e7[0x0],_0x123d0a=_0x2ab71b+_0x578483,_0x25d243=_0x1496['difIbb'][_0x123d0a];return!_0x25d243?(_0x14968f=_0x1496['HynAij'](_0x14968f),_0x1496['difIbb'][_0x123d0a]=_0x14968f):_0x14968f=_0x25d243,_0x14968f;}export{SNAPSHOT_ASSETS,SNAPSHOT_FORMAT,declaredZipPaths,isSupportedSnapshotFormat,snapshotFileName};