@univer-cli/content-execution 1.3.1 → 1.5.2
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/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3a8a6b=_0x1312;(function(_0x7c1d16,_0x45b18e){const _0x4bd286=_0x1312,_0x3e0a53=_0x7c1d16();while(!![]){try{const _0x340035=parseInt(_0x4bd286(0x1d7))/0x1+-parseInt(_0x4bd286(0x1df))/0x2+-parseInt(_0x4bd286(0x1db))/0x3+parseInt(_0x4bd286(0x1dd))/0x4+-parseInt(_0x4bd286(0x1f3))/0x5*(-parseInt(_0x4bd286(0x1f6))/0x6)+parseInt(_0x4bd286(0x1e6))/0x7*(-parseInt(_0x4bd286(0x1f5))/0x8)+parseInt(_0x4bd286(0x1d9))/0x9*(-parseInt(_0x4bd286(0x1da))/0xa);if(_0x340035===_0x45b18e)break;else _0x3e0a53['push'](_0x3e0a53['shift']());}catch(_0x122c32){_0x3e0a53['push'](_0x3e0a53['shift']());}}}(_0x5f32,0xd3207));var e=class extends Error{['code'];[_0x3a8a6b(0x1e0)];constructor(_0x1ad74c,_0x5c3ec3,_0x494704){const _0x177fee=_0x3a8a6b;super(_0x5c3ec3),this[_0x177fee(0x1e7)]=_0x1ad74c,this['details']=_0x494704,this['name']=_0x177fee(0x1cb);}},t=[_0x3a8a6b(0x1f2),_0x3a8a6b(0x1d1),_0x3a8a6b(0x1ee),_0x3a8a6b(0x1f9),_0x3a8a6b(0x1d3)];function n(_0x3d6757){const _0x1ce47e=_0x3a8a6b;if(typeof _0x3d6757[_0x1ce47e(0x1e7)]!=_0x1ce47e(0x1cc))throw new e(_0x1ce47e(0x1d8),_0x1ce47e(0x1f4));if(typeof _0x3d6757[_0x1ce47e(0x1d5)]!=_0x1ce47e(0x1cc)||_0x3d6757[_0x1ce47e(0x1d5)]['trim']()[_0x1ce47e(0x1e8)]===0x0)throw new e(_0x1ce47e(0x1d8),_0x1ce47e(0x1cf),{'unitId':_0x3d6757[_0x1ce47e(0x1d5)]});if(!c(_0x3d6757['unitType']))throw new e('CONTENT_EXECUTION_UNIT_TYPE_UNSUPPORTED','Content\x20execution\x20does\x20not\x20support\x20Unit\x20type\x20'+String(_0x3d6757[_0x1ce47e(0x1fa)]),{'supportedUnitTypes':t,'unitType':_0x3d6757['unitType']});let _0x37a784=i(_0x3d6757[_0x1ce47e(0x1fa)]);return o(_0x3d6757[_0x1ce47e(0x1e7)],_0x3d6757['unitType'],_0x37a784),r(_0x3d6757[_0x1ce47e(0x1fa)],_0x3d6757[_0x1ce47e(0x1d5)])+'\x0a'+_0x3d6757['code'];}function r(_0x5036ca,_0x5bbd7b){const _0x496f3f=_0x3a8a6b;let _0x4b2800=JSON[_0x496f3f(0x1e4)](_0x5bbd7b);return _0x5036ca===_0x496f3f(0x1f2)?[_0x496f3f(0x1c9),_0x496f3f(0x1e9)+_0x4b2800+');','if\x20(!workbook)\x20throw\x20new\x20Error('+JSON['stringify'](_0x496f3f(0x1f1)+_0x5bbd7b)+');'][_0x496f3f(0x1f8)]('\x0a'):_0x5036ca===_0x496f3f(0x1d1)?[_0x496f3f(0x1c9),_0x496f3f(0x1ec)+_0x4b2800+');',_0x496f3f(0x1f0)+JSON['stringify'](_0x496f3f(0x1dc)+_0x5bbd7b)+');'][_0x496f3f(0x1f8)]('\x0a'):_0x5036ca===_0x496f3f(0x1ee)?[_0x496f3f(0x1c9),_0x496f3f(0x1d2)+_0x4b2800+');',_0x496f3f(0x1d6)+JSON[_0x496f3f(0x1e4)](_0x496f3f(0x1cd)+_0x5bbd7b)+');'][_0x496f3f(0x1f8)]('\x0a'):_0x5036ca===_0x496f3f(0x1f9)?[_0x496f3f(0x1c9),'const\x20base\x20=\x20api.getBase('+_0x4b2800+');',_0x496f3f(0x1e3)+JSON['stringify'](_0x496f3f(0x1e5)+_0x5bbd7b)+');'][_0x496f3f(0x1f8)]('\x0a'):_0x5036ca==='board'?[_0x496f3f(0x1c9),_0x496f3f(0x1e2)+_0x4b2800+');',_0x496f3f(0x1d0)+JSON['stringify'](_0x496f3f(0x1ce)+_0x5bbd7b)+');']['join']('\x0a'):a(_0x5036ca);}function i(_0x2f6897){const _0xf3dc2c=_0x3a8a6b;return _0x2f6897===_0xf3dc2c(0x1f2)?['univerAPI','api',_0xf3dc2c(0x1ea)]:_0x2f6897===_0xf3dc2c(0x1d1)?['univerAPI',_0xf3dc2c(0x1e1),_0xf3dc2c(0x1d1)]:_0x2f6897==='slide'?[_0xf3dc2c(0x1de),'api','presentation']:_0x2f6897===_0xf3dc2c(0x1f9)?['univerAPI','api','base']:_0x2f6897===_0xf3dc2c(0x1d3)?['univerAPI',_0xf3dc2c(0x1e1),_0xf3dc2c(0x1d3)]:a(_0x2f6897);}function a(_0xa17f92){const _0x3a55cf=_0x3a8a6b;throw Error(_0x3a55cf(0x1eb)+String(_0xa17f92));}function _0x5f32(){const _0x2678f6=['\x20content\x20execution\x20prelude','if\x20(!doc)\x20throw\x20new\x20Error(','Cannot\x20find\x20workbook\x20','sheet','5ngZWte','Content\x20execution\x20code\x20must\x20be\x20a\x20string','424Chcmdq','6993858CEylJa','some','join','base','unitType','const\x20api\x20=\x20univerAPI;','\x20=\x20undefined;\x0a','ContentExecutionError','string','Cannot\x20find\x20presentation\x20','Cannot\x20find\x20board\x20','Content\x20execution\x20Unit\x20ID\x20must\x20not\x20be\x20empty','if\x20(!board)\x20throw\x20new\x20Error(','doc','const\x20presentation\x20=\x20api.getPresentation(','board','const\x20','unitId','if\x20(!presentation)\x20throw\x20new\x20Error(','1639621yrXcrV','CONTENT_EXECUTION_INVALID_INPUT','333bjIIaF','124790KLiUvU','2486814fcGurV','Cannot\x20find\x20doc\x20','6502152EeAtsn','univerAPI','2633086JvuYBT','details','api','const\x20board\x20=\x20api.getBoard(','if\x20(!base)\x20throw\x20new\x20Error(','stringify','Cannot\x20find\x20base\x20','126637DSMXtT','code','length','const\x20workbook\x20=\x20api.getWorkbook(','workbook','Unexpected\x20content\x20execution\x20Unit\x20type:\x20','const\x20doc\x20=\x20api.getDocument(','`\x20is\x20reserved\x20by\x20the\x20','slide'];_0x5f32=function(){return _0x2678f6;};return _0x5f32();}function o(_0x2d1276,_0x4e1121,_0x51dbc5){const _0x502d9c=_0x3a8a6b;if(s(_0x2d1276)){for(let _0x50d069 of _0x51dbc5)if(!s(_0x502d9c(0x1d4)+_0x50d069+_0x502d9c(0x1ca)+_0x2d1276))throw new e('CONTENT_EXECUTION_RESERVED_BINDING','`'+_0x50d069+_0x502d9c(0x1ed)+_0x4e1121+_0x502d9c(0x1ef),{'binding':_0x50d069,'reservedBindings':_0x51dbc5,'unitType':_0x4e1121});}}function s(_0x18f4c0){const _0x1e6e6e=_0x3a8a6b;try{return Function(_0x1e6e6e(0x1de),'return\x20(async\x20()\x20=>\x20{\x20'+_0x18f4c0+'\x0a})();'),!0x0;}catch{return!0x1;}}function c(_0x50e2f7){const _0x400ec8=_0x3a8a6b;return t[_0x400ec8(0x1f7)](_0x2fdfb8=>_0x2fdfb8===_0x50e2f7);}function _0x1312(_0x248b87,_0x44dbce){_0x248b87=_0x248b87-0x1c9;const _0x5f32a9=_0x5f32();let _0x13127b=_0x5f32a9[_0x248b87];return _0x13127b;}export{e as ContentExecutionError,n as prepareContentExecutionProgram};
|