@univerjs-pro/sheets-shape 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +7 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x505d(){const _0x3feeed=['DRAWING_SHAPE','Injector','_serializeShapeForUnit','26012PZlTNu','prototype','clear','sheet.mutation.insert-shape','left','getBasicShapeRelation','call','@univerjs/drawing','params','ShapeModel','@univerjs-pro/sheets-shape','89392brCJgQ','getShapeRelation','result','version','MUTATION','disposeWithMe','DrawingApplyType','onCommandExecute','@univerjs/sheets','getLineShapeRelation','96CwBtwJ','RemoveSheetsShapeMutation','getShapeData','_initCommands','UniverSheetsDrawing','sheet.command.set-shape-drawing-data','InsertSheetsShapeMutation','set','UpdateSheetsShapeTypeMutation','_addLineFollowShapeUpdates','lineShapeId','getConnectionSiteList','ToggleSheetsShapeFlipCommand','function','has','updateContext','flipX','shapeId','_groupIds','removeShape','worldRect','getEndConnectInfo','registerPluginResource','SetDrawingApplyMutation','_shapes','sheet.command.update-shape-type','@univerjs-pro/engine-shape','INSERT','267850DKrett','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','type','getSkeleton','interceptCommand','getShapeModel','Plugin','get','addShape','preRedos','getBatchUpdateOp','_configService','pluginName','top','UniverCore','ang','REMOVE','position','_resourcesManagerService','getDrawingData','setConfig','data','_initCommandInterceptor','getShapeType','iterator','_sheetInterceptorService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_initSnapshot','453768JAVuSV','sequenceExecute','setShapeData','object','SHEET_SHAPE_PLUGIN','sin','stringify','SheetsShapeService','borderEnabled','sheet.command.insert-shape','drawingType','Inject','transformToAxisAlignPosition','IResourceManagerService','getDrawingByParam','sheet.command.set-shape-text-vertical-toggle','_disposed','sheet.mutation.remove-shape','symbol','ensureSkeleton','touchDependencies','filter','getShapeTypeById','_config','@univerjs-pro/license','_sheetSkeletonService','hasShape','range','find','length','merge','23065TzElpM','_shapeModelManagerMap','Disposable','redos','transformToDrawingPosition','values','CommandType','rotateEnabled','undos','exports','_addLineRerouteUpdates','InsertShapeCommand','_injector','43069LEsmwR','IConfigService','@univerjs/sheets-drawing','from','DrawingTypeEnum','_deserializeShapeForUnit','syncExecuteCommand','removeLinePoints','index','resizeEnabled','IUniverInstanceService','@univerjs/core','getBasicShapeRotateBound','keys','getOwnPropertyDescriptor','add','onStarting','toJSON','lineType','SetShapeDrawingDataCommand','ClearSheetDrawingTransformerOperation','push','adjustValues','_commandService','SetSheetDrawingCommand','COMMAND','_ensureShapeModelManager','forEach','DEFAULT_SHAPE_HEIGHT','defineProperty','flipY','transform','DEFAULT_SHAPE_WIDTH','startY','string','height','UniverLicensePlugin','getBatchAddOp','UniverSheetsShapePlugin','UpdateLineShapeResizeCommand','delete','registerCommand','_sheetsShapeService','getCellIndexAndOffsetByPosition','getShapeTextData','UniverProSheetsShape','IDrawingManagerService','preUndos','getShapeDisplayNames','getStartConnectInfo','decorate','getId','UniverProLicense','default','_drawingManagerService','isHorizontal','routeConnectorLineShape','computeConnectorRouteLayout','ISheetDrawingService','dispose','getSheetCommandTarget','_linesIds','_getConnectPointInfo','setShapeType','every','angle','assign','SetSheetsShapeRotateCommand','pushUndoRedo','SheetInterceptorService','UniverSheets','fill','fromJSON','IUndoRedoService','UniverProEngineShape','rotation','constructor','UniverInstanceType','isFrom','amd','map','width','isConnectorShape','UniverDrawing','shapeName','366936ZFdwcc','getAdjustValueByName','cxnIndex','UPDATE','ICommandService','SheetSkeletonService','UNIVER_SHEET','parse','UpdateSheetsShapeTypeCommand'];_0x505d=function(){return _0x3feeed;};return _0x505d();}function _0x28b0(_0x1ceae2,_0x177d5c){_0x1ceae2=_0x1ceae2-0x1d1;const _0x505de4=_0x505d();let _0x28b0d9=_0x505de4[_0x1ceae2];return _0x28b0d9;}(function(_0x1366c4,_0x4b2baf){const _0x808e22=_0x28b0,_0xb78bd6=_0x1366c4();while(!![]){try{const _0x399ce3=-parseInt(_0x808e22(0x287))/0x1+-parseInt(_0x808e22(0x202))/0x2+-parseInt(_0x808e22(0x223))/0x3*(-parseInt(_0x808e22(0x20e))/0x4)+parseInt(_0x808e22(0x23f))/0x5+parseInt(_0x808e22(0x25b))/0x6+parseInt(_0x808e22(0x27a))/0x7+parseInt(_0x808e22(0x219))/0x8;if(_0x399ce3===_0x4b2baf)break;else _0xb78bd6['push'](_0xb78bd6['shift']());}catch(_0x584f84){_0xb78bd6['push'](_0xb78bd6['shift']());}}}(_0x505d,0x1e92a),function(_0x2263c8,_0x2c39fd){const _0x63e559=_0x28b0;typeof exports==_0x63e559(0x25e)&&typeof module<'u'?_0x2c39fd(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x63e559(0x230)&&define[_0x63e559(0x1fc)]?define([_0x63e559(0x283),_0x63e559(0x23d),_0x63e559(0x292),_0x63e559(0x221),_0x63e559(0x289),_0x63e559(0x273),_0x63e559(0x215)],_0x2c39fd):(_0x2263c8=typeof globalThis<'u'?globalThis:_0x2263c8||self,_0x2c39fd(_0x2263c8[_0x63e559(0x1da)]={},_0x2263c8[_0x63e559(0x1f7)],_0x2263c8[_0x63e559(0x24d)],_0x2263c8[_0x63e559(0x1f3)],_0x2263c8[_0x63e559(0x227)],_0x2263c8[_0x63e559(0x1e1)],_0x2263c8[_0x63e559(0x200)]));}(this,function(_0x4937cb,_0x2a5118,_0x1d6eec,_0x5c5201,_0x49fa79,_0x27dcb2,_0x1c64e2){const _0x171b41=_0x28b0;Object[_0x171b41(0x2a4)](_0x4937cb,Symbol['toStringTag'],{'value':'Module'});function _0x928f21(_0x2349b7){'@babel/helpers - typeof';const _0x37cbdf=_0x171b41;return _0x928f21=typeof Symbol==_0x37cbdf(0x230)&&typeof Symbol[_0x37cbdf(0x257)]=='symbol'?function(_0x27f630){return typeof _0x27f630;}:function(_0x15cb1c){const _0x55c6c7=_0x37cbdf;return _0x15cb1c&&typeof Symbol=='function'&&_0x15cb1c[_0x55c6c7(0x1f9)]===Symbol&&_0x15cb1c!==Symbol[_0x55c6c7(0x20f)]?_0x55c6c7(0x26d):typeof _0x15cb1c;},_0x928f21(_0x2349b7);}function _0x56bfd0(_0x57047e,_0xc9e55c){const _0x37379d=_0x171b41;if(_0x928f21(_0x57047e)!=_0x37379d(0x25e)||!_0x57047e)return _0x57047e;var _0xb4664f=_0x57047e[Symbol['toPrimitive']];if(_0xb4664f!==void 0x0){var _0x2d4b14=_0xb4664f[_0x37379d(0x214)](_0x57047e,_0xc9e55c||_0x37379d(0x1e2));if(_0x928f21(_0x2d4b14)!='object')return _0x2d4b14;throw TypeError(_0x37379d(0x240));}return(_0xc9e55c===_0x37379d(0x2a9)?String:Number)(_0x57047e);}function _0x3cd237(_0x5d0f00){const _0x31c818=_0x171b41;var _0x41cf8b=_0x56bfd0(_0x5d0f00,_0x31c818(0x2a9));return _0x928f21(_0x41cf8b)=='symbol'?_0x41cf8b:_0x41cf8b+'';}function _0x238d30(_0x160e07,_0x329e31,_0x539063){const _0x3efdba=_0x171b41;return(_0x329e31=_0x3cd237(_0x329e31))in _0x160e07?Object[_0x3efdba(0x2a4)](_0x160e07,_0x329e31,{'value':_0x539063,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x160e07[_0x329e31]=_0x539063,_0x160e07;}var _0x20a5e7=class extends _0x1d6eec['Disposable']{constructor(){const _0x1cb334=_0x171b41;super(),_0x238d30(this,_0x1cb334(0x23b),new Map()),_0x238d30(this,'_linesIds',new Set()),_0x238d30(this,_0x1cb334(0x235),new Set());}[_0x171b41(0x247)](_0x1e04a3,_0x3ead01,_0x3aed1a,_0x1ce6fa){const _0x323fa8=_0x171b41;let _0x531582=new _0x2a5118[(_0x323fa8(0x217))](_0x1e04a3,_0x3ead01,_0x3aed1a,_0x1ce6fa);return this[_0x323fa8(0x23b)][_0x323fa8(0x22a)](_0x3ead01,_0x531582),(0x0,_0x2a5118[_0x323fa8(0x1ff)])(_0x1e04a3)&&this[_0x323fa8(0x1ea)][_0x323fa8(0x296)](_0x3ead01),_0x531582;}[_0x171b41(0x213)](_0x55ba2a){const _0x6eb55c=_0x171b41;let _0x15afa6=[];for(let _0x2212b2 of this[_0x6eb55c(0x1ea)]){let _0x169563=this[_0x6eb55c(0x23b)][_0x6eb55c(0x246)](_0x2212b2);if(_0x169563){let _0x45ac47=_0x169563[_0x6eb55c(0x21a)]();if(_0x45ac47){var _0x2a62bb,_0xd76f3b;((_0x2a62bb=_0x45ac47[_0x6eb55c(0x28a)])==null?void 0x0:_0x2a62bb['shapeId'])===_0x55ba2a&&_0x15afa6['push']({..._0x45ac47[_0x6eb55c(0x28a)],'lineShapeId':_0x2212b2,'isFrom':!0x0}),((_0xd76f3b=_0x45ac47['to'])==null?void 0x0:_0xd76f3b[_0x6eb55c(0x234)])===_0x55ba2a&&_0x15afa6['push']({..._0x45ac47['to'],'lineShapeId':_0x2212b2,'isFrom':!0x1});}}}return _0x15afa6;}[_0x171b41(0x222)](_0x3f6062){const _0x1479bb=_0x171b41;let _0x4bbe6d=this[_0x1479bb(0x23b)][_0x1479bb(0x246)](_0x3f6062);if(_0x4bbe6d)return _0x4bbe6d[_0x1479bb(0x21a)]();}[_0x171b41(0x256)](_0x25da9f){let _0x4f3f78=this['_shapes']['get'](_0x25da9f);if(_0x4f3f78)return _0x4f3f78['getShapeType']();}[_0x171b41(0x275)](_0x55906c){const _0x408c5a=_0x171b41;return this[_0x408c5a(0x23b)][_0x408c5a(0x231)](_0x55906c);}[_0x171b41(0x1dd)](){const _0x1b258b=_0x171b41;return Array[_0x1b258b(0x28a)](this[_0x1b258b(0x23b)][_0x1b258b(0x27f)]())[_0x1b258b(0x1fd)](_0x34235c=>_0x34235c['getName']()||_0x34235c[_0x1b258b(0x1e0)]());}['removeShape'](_0x32a0b0){const _0x37bd60=_0x171b41;let _0x8234ee=this[_0x37bd60(0x23b)][_0x37bd60(0x246)](_0x32a0b0);_0x8234ee&&((0x0,_0x2a5118[_0x37bd60(0x1ff)])(_0x8234ee[_0x37bd60(0x256)]())&&this['_linesIds']['delete'](_0x32a0b0),this[_0x37bd60(0x23b)][_0x37bd60(0x1d5)](_0x32a0b0));}[_0x171b41(0x298)](){const _0x11d519=_0x171b41;let _0x8feeca=[];return this['_shapes'][_0x11d519(0x2a2)](_0x3e419b=>{const _0x4cbe25=_0x11d519;_0x8feeca[_0x4cbe25(0x29c)](_0x3e419b[_0x4cbe25(0x298)]());}),_0x8feeca;}[_0x171b41(0x1f5)](_0x963ed4){const _0x3abc04=_0x171b41;for(let _0x1163e4 of _0x963ed4){let {id:_0x1ed53c,shapeType:_0x390ee1,name:_0x36134e}=_0x1163e4,_0x1527f3=this['addShape'](_0x390ee1,_0x1ed53c,_0x1163e4['shapeData'],_0x36134e);_0x1527f3&&_0x1527f3['isLineShape']()&&this['_linesIds'][_0x3abc04(0x296)](_0x1ed53c);}}['dispose'](){const _0x18cfe3=_0x171b41;this[_0x18cfe3(0x26b)]||(this[_0x18cfe3(0x23b)][_0x18cfe3(0x2a2)](_0x4c50a1=>{_0x4c50a1['dispose']();}),this[_0x18cfe3(0x23b)][_0x18cfe3(0x210)](),this[_0x18cfe3(0x1ea)][_0x18cfe3(0x210)](),this['_groupIds'][_0x18cfe3(0x210)](),super[_0x18cfe3(0x1e8)]());}};function _0x3b59bc(_0x3bcdd8,_0x1daf71){return function(_0x2bbda2,_0x8ba482){_0x1daf71(_0x2bbda2,_0x8ba482,_0x3bcdd8);};}function _0x3af845(_0x8acc32,_0xc4f0ed,_0x4eb3d2,_0x221c41){const _0x35f9c4=_0x171b41;var _0x141127=arguments[_0x35f9c4(0x278)],_0x14d46a=_0x141127<0x3?_0xc4f0ed:_0x221c41===null?_0x221c41=Object[_0x35f9c4(0x295)](_0xc4f0ed,_0x4eb3d2):_0x221c41,_0x38c882;if(typeof Reflect==_0x35f9c4(0x25e)&&typeof Reflect[_0x35f9c4(0x1df)]=='function')_0x14d46a=Reflect[_0x35f9c4(0x1df)](_0x8acc32,_0xc4f0ed,_0x4eb3d2,_0x221c41);else{for(var _0x5417ae=_0x8acc32[_0x35f9c4(0x278)]-0x1;_0x5417ae>=0x0;_0x5417ae--)(_0x38c882=_0x8acc32[_0x5417ae])&&(_0x14d46a=(_0x141127<0x3?_0x38c882(_0x14d46a):_0x141127>0x3?_0x38c882(_0xc4f0ed,_0x4eb3d2,_0x14d46a):_0x38c882(_0xc4f0ed,_0x4eb3d2))||_0x14d46a);}return _0x141127>0x3&&_0x14d46a&&Object[_0x35f9c4(0x2a4)](_0xc4f0ed,_0x4eb3d2,_0x14d46a),_0x14d46a;}let _0x53616c=class extends _0x1d6eec[_0x171b41(0x27c)]{constructor(_0xecba54){const _0x5517a2=_0x171b41;super(),this[_0x5517a2(0x251)]=_0xecba54,_0x238d30(this,_0x5517a2(0x27b),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x2524f8,_0x535abf){const _0x4d9ec5=_0x171b41;let _0x57046c=this[_0x4d9ec5(0x27b)][_0x4d9ec5(0x246)](_0x2524f8);_0x57046c||(_0x57046c=new Map(),this[_0x4d9ec5(0x27b)][_0x4d9ec5(0x22a)](_0x2524f8,_0x57046c));let _0x442f8c=_0x57046c[_0x4d9ec5(0x246)](_0x535abf);return _0x442f8c||(_0x442f8c=new _0x20a5e7(),_0x57046c['set'](_0x535abf,_0x442f8c)),_0x442f8c;}['insertShape'](_0x4078b9,_0x10ea89,_0x4424d8,_0x1fdf1f,_0x55d516,_0x2da7e5){this['_ensureShapeModelManager'](_0x4078b9,_0x10ea89)['addShape'](_0x4424d8,_0x1fdf1f,_0x55d516,_0x2da7e5);}['removeShape'](_0x5291bb,_0x44929a,_0x28cb63){const _0x31f16f=_0x171b41;this[_0x31f16f(0x2a1)](_0x5291bb,_0x44929a)['removeShape'](_0x28cb63);}['getBasicShapeType'](_0xaa5997,_0x2867c5,_0x5d7de9){const _0x413c92=_0x171b41;return this[_0x413c92(0x2a1)](_0xaa5997,_0x2867c5)[_0x413c92(0x256)](_0x5d7de9);}[_0x171b41(0x256)](_0x395c87,_0x56e1d8,_0x18a395){const _0x1b47c4=_0x171b41;return this[_0x1b47c4(0x2a1)](_0x395c87,_0x56e1d8)[_0x1b47c4(0x256)](_0x18a395);}['hasShape'](_0x1f70d4,_0x36e739,_0x5b5afa){const _0xb2b956=_0x171b41;return this[_0xb2b956(0x2a1)](_0x1f70d4,_0x36e739)[_0xb2b956(0x275)](_0x5b5afa);}[_0x171b41(0x271)](_0x5e6758,_0x3b457a,_0x1c34e2){const _0x31c08b=_0x171b41;return this[_0x31c08b(0x2a1)](_0x5e6758,_0x3b457a)[_0x31c08b(0x256)](_0x1c34e2);}['getShapeDataById'](_0x242b71,_0x2eabc4,_0x107ebc){const _0xfad6d5=_0x171b41;let _0x298282=this[_0xfad6d5(0x2a1)](_0x242b71,_0x2eabc4);if(!_0x298282[_0xfad6d5(0x256)](_0x107ebc))return;let _0x5c82c3=_0x298282[_0xfad6d5(0x23b)][_0xfad6d5(0x246)](_0x107ebc);if(_0x5c82c3)return _0x5c82c3[_0xfad6d5(0x225)]();}[_0x171b41(0x1dd)](_0x1cb07d,_0x4fe0dc){const _0x546008=_0x171b41;return this[_0x546008(0x2a1)](_0x1cb07d,_0x4fe0dc)['getShapeDisplayNames']();}[_0x171b41(0x244)](_0x4a17ea,_0x2b8cea,_0xf7f980){const _0x4bc1b7=_0x171b41;return this[_0x4bc1b7(0x2a1)](_0x4a17ea,_0x2b8cea)['_shapes'][_0x4bc1b7(0x246)](_0xf7f980);}[_0x171b41(0x213)](_0x2d4501,_0x482e4a,_0x3386c4){const _0x26b1fd=_0x171b41;return this[_0x26b1fd(0x2a1)](_0x2d4501,_0x482e4a)['getBasicShapeRelation'](_0x3386c4);}[_0x171b41(0x222)](_0x25793b,_0x41c97a,_0x259cf3){const _0x512ece=_0x171b41;let _0x13e190=this[_0x512ece(0x2a1)](_0x25793b,_0x41c97a)[_0x512ece(0x23b)][_0x512ece(0x246)](_0x259cf3);if(_0x13e190)return _0x13e190[_0x512ece(0x21a)]();}[_0x171b41(0x1ec)](){}[_0x171b41(0x20d)](_0x1f49e5){const _0x3e1174=_0x171b41;let _0x1c72f7={},_0x22f432=this['_shapeModelManagerMap'][_0x3e1174(0x246)](_0x1f49e5);return _0x22f432&&_0x22f432['forEach']((_0x58160f,_0x321396)=>{const _0x2489c5=_0x3e1174;let _0x31051c=_0x58160f[_0x2489c5(0x298)]();_0x31051c[_0x2489c5(0x278)]>0x0&&(_0x1c72f7[_0x321396]=_0x31051c);}),JSON[_0x3e1174(0x261)](_0x1c72f7);}[_0x171b41(0x28c)](_0x33482f,_0x3660a5){const _0x515d32=_0x171b41;Object['keys'](_0x3660a5)[_0x515d32(0x2a2)](_0x282f01=>{const _0x57de56=_0x515d32;this[_0x57de56(0x2a1)](_0x33482f,_0x282f01)['fromJSON'](_0x3660a5[_0x282f01]);});}[_0x171b41(0x298)](){const _0x30cef6=_0x171b41;let _0x44493d={};return this[_0x30cef6(0x27b)]['forEach']((_0x1707b8,_0x313188)=>{const _0x192eb4=_0x30cef6;_0x44493d[_0x313188]={},_0x1707b8[_0x192eb4(0x2a2)]((_0x2d4ad8,_0x3419f8)=>{_0x44493d[_0x313188][_0x3419f8]=_0x2d4ad8['toJSON']();});}),_0x44493d;}[_0x171b41(0x1f5)](_0x220bd3){Object['keys'](_0x220bd3)['forEach'](_0x369d4f=>{const _0xaf3946=_0x28b0;let _0x5680a6=_0x220bd3[_0x369d4f];Object[_0xaf3946(0x294)](_0x5680a6)[_0xaf3946(0x2a2)](_0x268d71=>{const _0x50f6d2=_0xaf3946;this[_0x50f6d2(0x2a1)](_0x369d4f,_0x268d71)['fromJSON'](_0x5680a6[_0x268d71]);});});}[_0x171b41(0x25a)](){const _0x3cf35e=_0x171b41;this[_0x3cf35e(0x251)][_0x3cf35e(0x239)]({'pluginName':_0x3cf35e(0x25f),'businesses':[_0x1d6eec[_0x3cf35e(0x1fa)][_0x3cf35e(0x208)]],'toJson':_0x340580=>this['_serializeShapeForUnit'](_0x340580),'parseJson':_0x203d3b=>JSON[_0x3cf35e(0x209)](_0x203d3b),'onLoad':(_0x2860b7,_0x39d125)=>{const _0x56d1df=_0x3cf35e;this[_0x56d1df(0x28c)](_0x2860b7,_0x39d125);},'onUnLoad':_0x5009c3=>{const _0x51555c=_0x3cf35e;let _0x2fdde4=this[_0x51555c(0x27b)][_0x51555c(0x246)](_0x5009c3);_0x2fdde4&&(_0x2fdde4['forEach'](_0x25c52b=>{const _0x2e96aa=_0x51555c;_0x25c52b[_0x2e96aa(0x1e8)]();}),this['_shapeModelManagerMap'][_0x51555c(0x1d5)](_0x5009c3));}});}[_0x171b41(0x1e8)](){const _0x14f49c=_0x171b41;this[_0x14f49c(0x27b)]['forEach'](_0x9ad99b=>{_0x9ad99b['forEach'](_0x3117e1=>{const _0x40140f=_0x28b0;_0x3117e1[_0x40140f(0x1e8)]();});});}};_0x53616c=_0x3af845([_0x3b59bc(0x0,_0x1d6eec[_0x171b41(0x268)])],_0x53616c);let _0x22202d={'id':_0x171b41(0x211),'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x21d)],'handler':(_0x533560,_0x36278f)=>{let {unitId:_0x470796,subUnitId:_0x304b27,shapeType:_0x4e0356,shapeId:_0x8baa21,shapeName:_0x1a7a3b,shapeData:_0xc05734}=_0x36278f;return _0x533560['get'](_0x53616c)['insertShape'](_0x470796,_0x304b27,_0x4e0356,_0x8baa21,_0xc05734,_0x1a7a3b),!0x0;}},_0x5db064={'id':_0x171b41(0x26c),'type':_0x1d6eec['CommandType']['MUTATION'],'handler':(_0x55064d,_0x4982ba)=>{const _0xa4972c=_0x171b41;let {unitId:_0x2eb814,subUnitId:_0xa29478,shapeId:_0xd6f3e9}=_0x4982ba;return _0x55064d[_0xa4972c(0x246)](_0x53616c)[_0xa4972c(0x236)](_0x2eb814,_0xa29478,_0xd6f3e9),!0x0;}},_0x1dc333={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':_0x171b41(0x264),'handler':(_0x5534c5,_0x2a089e)=>{const _0x46624e=_0x171b41;var _0x4858b8,_0x5643a6,_0x281a80;let _0x58f244=(0x0,_0x5c5201[_0x46624e(0x1e9)])(_0x5534c5[_0x46624e(0x246)](_0x1d6eec[_0x46624e(0x291)]),_0x2a089e);if(!_0x58f244)return!0x1;let _0x48ed7e=_0x5534c5[_0x46624e(0x246)](_0x5c5201[_0x46624e(0x207)]),{unitId:_0x295e49,subUnitId:_0x398c43}=_0x58f244,_0x27a6c8=_0x48ed7e['ensureSkeleton'](_0x295e49,_0x398c43);if(!_0x27a6c8)return!0x1;let _0x40775a=_0x5534c5['get'](_0x1d6eec[_0x46624e(0x206)]),_0x17ce30=_0x5534c5[_0x46624e(0x246)](_0x1d6eec[_0x46624e(0x1f6)]),_0xa9a527=_0x5534c5[_0x46624e(0x246)](_0x5c5201['SheetInterceptorService']),_0x5cbcc2=_0x5534c5['get'](_0x49fa79[_0x46624e(0x1e7)]),_0x451169=_0x5534c5[_0x46624e(0x246)](_0x53616c),{shapeType:_0x57f1e7,shapeData:_0x60c3}=_0x2a089e,_0x5f4432=_0x2a089e[_0x46624e(0x234)]||(0x0,_0x1d6eec['generateRandomId'])(),_0x397dd6={'unitId':_0x295e49,'subUnitId':_0x398c43,'shapeId':_0x5f4432,'shapeName':(_0x4858b8=_0x2a089e[_0x46624e(0x201)])==null?(0x0,_0x2a5118['createUniqueShapeName'])(_0x57f1e7,_0x451169[_0x46624e(0x1dd)](_0x295e49,_0x398c43)):_0x4858b8,'shapeType':_0x57f1e7,'shapeData':_0x60c3},_0x1fb6ce=_0x2a089e[_0x46624e(0x1fe)]||0xc8,_0x175b08=_0x2a089e[_0x46624e(0x2aa)]||0xc8,_0x20eaba=0x0,_0x4c20da=0x0,_0x2d010e={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3547c0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x2a089e['position']){let {x:_0x8f4dfa,y:_0x3cf2c4}=_0x2a089e[_0x46624e(0x250)];_0x20eaba=_0x8f4dfa,_0x4c20da=_0x3cf2c4,_0x2d010e=_0x27a6c8[_0x46624e(0x1d8)](_0x8f4dfa,_0x3cf2c4),_0x3547c0=_0x27a6c8['getCellIndexAndOffsetByPosition'](_0x8f4dfa+_0x1fb6ce,_0x3cf2c4+_0x175b08);}else{if(_0x2a089e['range']){let {startRow:_0x224f4c,startColumn:_0x4dd39f}=_0x2a089e[_0x46624e(0x276)];_0x2d010e={'row':_0x224f4c,'rowOffset':0xa,'column':_0x4dd39f,'columnOffset':0xa};let _0x5e9f82=_0x27a6c8['getCellWithCoordByIndex'](_0x224f4c,_0x4dd39f);_0x20eaba=_0x5e9f82['startX']+0xa,_0x4c20da=_0x5e9f82[_0x46624e(0x2a8)]+0xa,_0x3547c0=_0x27a6c8[_0x46624e(0x1d8)](_0x20eaba+_0x1fb6ce,_0x4c20da+_0x175b08);}}let _0x236076={'from':_0x2d010e,'to':_0x3547c0},_0x3ef278={'unitId':_0x295e49,'subUnitId':_0x398c43,'drawingId':_0x5f4432,'drawingType':_0x1d6eec[_0x46624e(0x28b)][_0x46624e(0x20b)],'sheetTransform':_0x236076,'transform':{'left':_0x20eaba,'top':_0x4c20da,'width':_0x1fb6ce,'height':_0x175b08},'data':{'shapeType':_0x57f1e7,'shapeData':_0x60c3},'axisAlignSheetTransform':_0x236076,'allowTransform':!0x0};(0x0,_0x2a5118[_0x46624e(0x1ff)])(_0x57f1e7)&&(_0x3ef278[_0x46624e(0x254)][_0x46624e(0x1f4)]=!0x1,_0x3ef278['data'][_0x46624e(0x281)]=!0x1,_0x3ef278['data']['resizeEnabled']=!0x1,_0x3ef278[_0x46624e(0x254)][_0x46624e(0x263)]=!0x1,_0x3ef278[_0x46624e(0x2a6)][_0x46624e(0x281)]=!0x1,_0x3ef278[_0x46624e(0x2a6)][_0x46624e(0x290)]=!0x1,_0x3ef278['transform'][_0x46624e(0x263)]=!0x1);let {undo:_0x4e51cc,redo:_0x598beb,objects:_0x3f659c}=_0x5cbcc2[_0x46624e(0x1d2)]([_0x3ef278]),_0x3493a6=_0xa9a527['onCommandExecute']({'id':_0x49fa79['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x295e49,'drawings':[_0x3ef278]}}),_0x399780=[...(_0x5643a6=_0x3493a6[_0x46624e(0x248)])==null?[]:_0x5643a6,{'id':_0x49fa79[_0x46624e(0x23a)]['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'op':_0x598beb,'objects':_0x3f659c,'type':_0x49fa79[_0x46624e(0x21f)][_0x46624e(0x23e)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x295e49]},..._0x3493a6[_0x46624e(0x27d)],{'id':_0x22202d['id'],'params':_0x397dd6}],_0x580df8=[{'id':_0x5db064['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'shapeId':_0x5f4432}},...(_0x281a80=_0x3493a6[_0x46624e(0x1dc)])==null?[]:_0x281a80,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x295e49,'subUnitId':_0x398c43,'op':_0x4e51cc,'objects':_0x3f659c,'type':_0x49fa79['DrawingApplyType'][_0x46624e(0x24f)]}},{'id':_0x49fa79[_0x46624e(0x29b)]['id'],'params':[_0x295e49]},..._0x3493a6[_0x46624e(0x282)]];return(0x0,_0x1d6eec[_0x46624e(0x25c)])(_0x399780,_0x40775a)[_0x46624e(0x21b)]?(_0x17ce30[_0x46624e(0x1f1)]({'unitID':_0x295e49,'undoMutations':_0x580df8,'redoMutations':_0x399780}),!0x0):!0x1;}},_0x593f51={'id':'sheet.mutation.update-shape-data','type':_0x1d6eec['CommandType'][_0x171b41(0x21d)],'handler':(_0xd297de,_0xf8ea9d)=>{const _0x2f7d9=_0x171b41;let {unitId:_0x2b05ea,subUnitId:_0x1eb4f3,shapeType:_0x11a3de,shapeId:_0x364677,shapeData:_0x173977}=_0xf8ea9d,_0x475ef2=_0xd297de[_0x2f7d9(0x246)](_0x53616c)[_0x2f7d9(0x244)](_0x2b05ea,_0x1eb4f3,_0x364677);return _0x475ef2&&(_0x11a3de!==void 0x0&&_0x475ef2[_0x2f7d9(0x1ec)](_0x11a3de),_0x173977&&(_0x475ef2==null||_0x475ef2['setShapeData'](_0x173977,!0x0))),!0x0;}},_0x1bfdad={'type':_0x1d6eec[_0x171b41(0x280)]['COMMAND'],'id':_0x171b41(0x228),'handler':(_0x463ee8,_0x17fcb0)=>{const _0x3fa915=_0x171b41;var _0x289888,_0x21ef2f;let _0x33837c=(0x0,_0x5c5201[_0x3fa915(0x1e9)])(_0x463ee8[_0x3fa915(0x246)](_0x1d6eec[_0x3fa915(0x291)]),_0x17fcb0);if(!_0x33837c)return!0x1;let _0x10690d=_0x463ee8[_0x3fa915(0x246)](_0x5c5201[_0x3fa915(0x207)]),{unitId:_0x19ef8a,subUnitId:_0x28673e}=_0x33837c,_0x5e934a=_0x10690d[_0x3fa915(0x26e)](_0x19ef8a,_0x28673e);if(!_0x5e934a)return!0x1;let _0x49839e=_0x463ee8['get'](_0x53616c),{shapeId:_0x3e3523,shapeType:_0x534684,shapeData:_0x311779,position:_0x768582,width:_0x5f5200,height:_0xd5ab42}=_0x17fcb0,_0x1d8f83=_0x49839e['getShapeModel'](_0x19ef8a,_0x28673e,_0x3e3523);if(!_0x1d8f83)return!0x1;let _0x5ef73d=_0x463ee8['get'](_0x1d6eec[_0x3fa915(0x206)]),_0x548899=_0x463ee8[_0x3fa915(0x246)](_0x1d6eec[_0x3fa915(0x1f6)]),_0x4d4182=_0x463ee8[_0x3fa915(0x246)](_0x5c5201[_0x3fa915(0x1f2)]),_0x2cc60e=_0x463ee8[_0x3fa915(0x246)](_0x49fa79[_0x3fa915(0x1e7)]),_0x5376f0={'unitId':_0x19ef8a,'subUnitId':_0x28673e,'shapeId':_0x3e3523,'shapeType':_0x534684,'shapeData':_0x311779},_0x1a52e5=_0x1d8f83[_0x3fa915(0x256)](),_0x9939cd=_0x1d8f83[_0x3fa915(0x225)](),{x:_0x272699,y:_0x524cf8}=_0x768582,_0x2390d7={'from':_0x5e934a[_0x3fa915(0x1d8)](_0x272699,_0x524cf8),'to':_0x5e934a[_0x3fa915(0x1d8)](_0x272699+_0x5f5200,_0x524cf8+_0xd5ab42)},_0xc306c8={'unitId':_0x19ef8a,'subUnitId':_0x28673e,'drawingId':_0x3e3523,'drawingType':_0x1d6eec['DrawingTypeEnum'][_0x3fa915(0x20b)],'sheetTransform':_0x2390d7,'transform':{'left':_0x272699,'top':_0x524cf8,'width':_0x5f5200,'height':_0xd5ab42},'data':{'shapeType':_0x534684,'shapeData':_0x311779},'axisAlignSheetTransform':_0x2390d7,'allowTransform':!0x0};(0x0,_0x2a5118[_0x3fa915(0x1ff)])(_0x534684)&&(_0xc306c8[_0x3fa915(0x254)]['fill']=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x281)]=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x290)]=!0x1,_0xc306c8[_0x3fa915(0x254)][_0x3fa915(0x263)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)][_0x3fa915(0x281)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)][_0x3fa915(0x290)]=!0x1,_0xc306c8[_0x3fa915(0x2a6)]['borderEnabled']=!0x1);let {undo:_0x2eb723,redo:_0x43c128,objects:_0x49f3ef}=_0x2cc60e[_0x3fa915(0x249)]([_0xc306c8]),_0x285146=_0x4d4182[_0x3fa915(0x220)]({'id':_0x49fa79[_0x3fa915(0x29f)]['id'],'params':{'unitId':_0x19ef8a,'drawings':[_0xc306c8]}}),_0x3961a4=[...(_0x289888=_0x285146[_0x3fa915(0x248)])==null?[]:_0x289888,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'op':_0x43c128,'objects':_0x49f3ef,'type':_0x49fa79[_0x3fa915(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x3fa915(0x29b)]['id'],'params':[_0x19ef8a]},..._0x285146[_0x3fa915(0x27d)],{'id':_0x593f51['id'],'params':_0x5376f0}],_0x5e0614=[...(_0x21ef2f=_0x285146[_0x3fa915(0x1dc)])==null?[]:_0x21ef2f,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'op':_0x2eb723,'objects':_0x49f3ef,'type':_0x49fa79[_0x3fa915(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x3fa915(0x29b)]['id'],'params':[_0x19ef8a]},..._0x285146[_0x3fa915(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x19ef8a,'subUnitId':_0x28673e,'shapeType':_0x1a52e5,'shapeId':_0x3e3523,'shapeData':_0x9939cd}}];return(0x0,_0x1d6eec[_0x3fa915(0x25c)])(_0x3961a4,_0x5ef73d)[_0x3fa915(0x21b)]?(_0x548899[_0x3fa915(0x1f1)]({'unitID':_0x19ef8a,'undoMutations':_0x5e0614,'redoMutations':_0x3961a4}),!0x0):!0x1;}},_0x1e11f0={'type':_0x1d6eec['CommandType']['COMMAND'],'id':'sheet.command.toggle-shape-flip','handler':(_0x581541,_0x4ab215)=>{const _0x58af87=_0x171b41;var _0x1cf8c1,_0x239f0d;let _0xd9930e=(0x0,_0x5c5201[_0x58af87(0x1e9)])(_0x581541[_0x58af87(0x246)](_0x1d6eec[_0x58af87(0x291)]),_0x4ab215);if(!_0xd9930e)return!0x1;let _0x253d11=_0x581541[_0x58af87(0x246)](_0x5c5201[_0x58af87(0x207)]),{unitId:_0x489d41,subUnitId:_0x39a071}=_0xd9930e,_0x754ffb=_0x253d11[_0x58af87(0x242)](_0x489d41,_0x39a071);if(!_0x754ffb)return!0x1;let _0x1eab93=_0x581541[_0x58af87(0x246)](_0x49fa79[_0x58af87(0x1e7)]),{shapeId:_0x11fb71,flipH:_0x5f497c,flipV:_0x57fa7a}=_0x4ab215,_0x5596c3=_0x1eab93['getDrawingByParam']({'unitId':_0x489d41,'subUnitId':_0x39a071,'drawingId':_0x11fb71});if(!_0x5596c3)return!0x1;let _0x2f7326=_0x581541['get'](_0x53616c)[_0x58af87(0x244)](_0x489d41,_0x39a071,_0x11fb71);if(!_0x2f7326)return!0x1;let _0x53ae75=_0x581541[_0x58af87(0x246)](_0x1d6eec[_0x58af87(0x206)]),_0x49f13d=_0x581541['get'](_0x1d6eec[_0x58af87(0x1f6)]),_0x5e7304=_0x581541['get'](_0x5c5201['SheetInterceptorService']),_0x3217a3={..._0x5596c3[_0x58af87(0x2a6)]};_0x5f497c!==void 0x0&&(_0x3217a3[_0x58af87(0x233)]=!_0x3217a3[_0x58af87(0x233)]),_0x57fa7a!==void 0x0&&(_0x3217a3[_0x58af87(0x2a5)]=!_0x3217a3[_0x58af87(0x2a5)]);let _0xbe2e88=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x3217a3,_0x754ffb),_0x587567=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x3217a3,_0x754ffb),_0x11251a=_0x2f7326[_0x58af87(0x256)](),_0x3ad5d4=_0x2f7326[_0x58af87(0x225)](),_0x495b27={'unitId':_0x489d41,'subUnitId':_0x39a071,'drawingId':_0x11fb71,'drawingType':_0x1d6eec['DrawingTypeEnum'][_0x58af87(0x20b)],'sheetTransform':_0xbe2e88,'transform':_0x3217a3,'data':{'shapeType':_0x11251a,'shapeData':_0x3ad5d4},'axisAlignSheetTransform':_0x587567,'allowTransform':!0x0},{undo:_0x4b672f,redo:_0x254243,objects:_0x268879}=_0x1eab93[_0x58af87(0x249)]([_0x495b27]),_0x2239ec=_0x5e7304[_0x58af87(0x220)]({'id':_0x49fa79[_0x58af87(0x29f)]['id'],'params':{'unitId':_0x489d41,'drawings':[_0x495b27]}}),_0x3b302e=[...(_0x1cf8c1=_0x2239ec[_0x58af87(0x248)])==null?[]:_0x1cf8c1,{'id':_0x49fa79[_0x58af87(0x23a)]['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'op':_0x254243,'objects':_0x268879,'type':_0x49fa79[_0x58af87(0x21f)]['UPDATE']}},{'id':_0x49fa79[_0x58af87(0x29b)]['id'],'params':[_0x489d41]},..._0x2239ec[_0x58af87(0x27d)]],_0x3049e6=[...(_0x239f0d=_0x2239ec['preUndos'])==null?[]:_0x239f0d,{'id':_0x49fa79[_0x58af87(0x23a)]['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'op':_0x4b672f,'objects':_0x268879,'type':_0x49fa79['DrawingApplyType'][_0x58af87(0x205)]}},{'id':_0x49fa79[_0x58af87(0x29b)]['id'],'params':[_0x489d41]},..._0x2239ec[_0x58af87(0x282)]];if((0x0,_0x2a5118[_0x58af87(0x1ff)])(_0x11251a)){let _0x3e8fac=_0x2f7326[_0x58af87(0x21a)]();if(_0x3e8fac){let _0x5e7cf7={..._0x3e8fac};_0x5e7cf7[_0x58af87(0x28a)]=void 0x0,_0x5e7cf7['to']=void 0x0,_0x3b302e[_0x58af87(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'shapeId':_0x11fb71,'shapeType':_0x11251a,'shapeData':{'relation':_0x5e7cf7}}}),_0x3049e6[_0x58af87(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x489d41,'subUnitId':_0x39a071,'shapeId':_0x11fb71,'shapeType':_0x11251a,'shapeData':{'relation':_0x3e8fac}}});}}return(0x0,_0x1d6eec[_0x58af87(0x25c)])(_0x3b302e,_0x53ae75)[_0x58af87(0x21b)]?(_0x49f13d[_0x58af87(0x1f1)]({'unitID':_0x489d41,'undoMutations':_0x3049e6,'redoMutations':_0x3b302e}),!0x0):!0x1;}},_0x420359={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':'sheet.command.set-shape-rotate','handler':(_0x3a3e5f,_0x30c249)=>{const _0xea48fc=_0x171b41;var _0x20efba,_0x1fbec1;let _0x3891b4=(0x0,_0x5c5201[_0xea48fc(0x1e9)])(_0x3a3e5f[_0xea48fc(0x246)](_0x1d6eec[_0xea48fc(0x291)]),_0x30c249);if(!_0x3891b4)return!0x1;let _0x14eb88=_0x3a3e5f['get'](_0x5c5201['SheetSkeletonService']),{unitId:_0x4e6dcc,subUnitId:_0xb47d3a}=_0x3891b4,_0x2f32d6=_0x14eb88[_0xea48fc(0x242)](_0x4e6dcc,_0xb47d3a);if(!_0x2f32d6)return!0x1;let _0x5b966e=_0x3a3e5f[_0xea48fc(0x246)](_0x49fa79[_0xea48fc(0x1e7)]),{shapeId:_0x47b77a,rotate:_0x3a1fb1}=_0x30c249,_0x181f1f=_0x5b966e[_0xea48fc(0x269)]({'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'drawingId':_0x47b77a});if(!_0x181f1f)return!0x1;let _0x33f349=_0x3a3e5f[_0xea48fc(0x246)](_0x53616c)[_0xea48fc(0x244)](_0x4e6dcc,_0xb47d3a,_0x47b77a);if(!_0x33f349)return!0x1;let _0x563001=_0x3a3e5f['get'](_0x1d6eec['ICommandService']),_0x47e229=_0x3a3e5f[_0xea48fc(0x246)](_0x1d6eec[_0xea48fc(0x1f6)]),_0x4ee747=_0x3a3e5f[_0xea48fc(0x246)](_0x5c5201['SheetInterceptorService']),_0x176628={..._0x181f1f['transform']};_0x3a1fb1!==void 0x0&&(_0x176628[_0xea48fc(0x1ee)]=(_0x176628[_0xea48fc(0x1ee)]||0x0)+_0x3a1fb1);let _0x6e5741=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x176628,_0x2f32d6),_0x38075b=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x176628,_0x2f32d6),_0x5b8605=_0x33f349[_0xea48fc(0x256)](),_0x119ea9=_0x33f349[_0xea48fc(0x225)](),_0x2d8425={'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'drawingId':_0x47b77a,'drawingType':_0x1d6eec[_0xea48fc(0x28b)][_0xea48fc(0x20b)],'sheetTransform':_0x6e5741,'transform':_0x176628,'data':{'shapeType':_0x5b8605,'shapeData':_0x119ea9},'axisAlignSheetTransform':_0x38075b,'allowTransform':!0x0},{undo:_0x426f1e,redo:_0x36a11d,objects:_0x30d07f}=_0x5b966e[_0xea48fc(0x249)]([_0x2d8425]),_0x1b62f8=_0x4ee747[_0xea48fc(0x220)]({'id':_0x49fa79[_0xea48fc(0x29f)]['id'],'params':{'unitId':_0x4e6dcc,'drawings':[_0x2d8425]}}),_0x19fcda=[...(_0x20efba=_0x1b62f8['preRedos'])==null?[]:_0x20efba,{'id':_0x49fa79[_0xea48fc(0x23a)]['id'],'params':{'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'op':_0x36a11d,'objects':_0x30d07f,'type':_0x49fa79[_0xea48fc(0x21f)][_0xea48fc(0x205)]}},{'id':_0x49fa79[_0xea48fc(0x29b)]['id'],'params':[_0x4e6dcc]},..._0x1b62f8[_0xea48fc(0x27d)]],_0x465140=[...(_0x1fbec1=_0x1b62f8[_0xea48fc(0x1dc)])==null?[]:_0x1fbec1,{'id':_0x49fa79[_0xea48fc(0x23a)]['id'],'params':{'unitId':_0x4e6dcc,'subUnitId':_0xb47d3a,'op':_0x426f1e,'objects':_0x30d07f,'type':_0x49fa79[_0xea48fc(0x21f)][_0xea48fc(0x205)]}},{'id':_0x49fa79[_0xea48fc(0x29b)]['id'],'params':[_0x4e6dcc]},..._0x1b62f8[_0xea48fc(0x282)]];return(0x0,_0x1d6eec[_0xea48fc(0x25c)])(_0x19fcda,_0x563001)['result']?(_0x47e229['pushUndoRedo']({'unitID':_0x4e6dcc,'undoMutations':_0x465140,'redoMutations':_0x19fcda}),!0x0):!0x1;}},_0x32e2da={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':_0x171b41(0x26a),'handler':(_0x4c60e1,_0x2e9fd0)=>{const _0x1e61ce=_0x171b41;var _0x4cc1de;let _0x553297=(0x0,_0x5c5201[_0x1e61ce(0x1e9)])(_0x4c60e1[_0x1e61ce(0x246)](_0x1d6eec[_0x1e61ce(0x291)]),_0x2e9fd0);if(!_0x553297)return!0x1;let {unitId:_0x10b6a6,subUnitId:_0x366ee}=_0x553297,{shapeId:_0x1ffee1}=_0x2e9fd0,_0x3c3103=_0x4c60e1[_0x1e61ce(0x246)](_0x53616c)[_0x1e61ce(0x244)](_0x10b6a6,_0x366ee,_0x1ffee1);if(!_0x3c3103)return!0x1;let _0x482442=_0x3c3103[_0x1e61ce(0x1d9)](),_0x57d8bb=(_0x4cc1de=_0x482442==null?void 0x0:_0x482442[_0x1e61ce(0x1e4)])==null?!0x0:_0x4cc1de,_0x571e16=!_0x57d8bb,_0x59ae4c=_0x4c60e1['get'](_0x1d6eec['ICommandService']),_0x579268=_0x4c60e1[_0x1e61ce(0x246)](_0x1d6eec[_0x1e61ce(0x1f6)]),_0x159f9e={'unitId':_0x10b6a6,'subUnitId':_0x366ee,'shapeId':_0x1ffee1,'shapeData':{'shapeText':{'isHorizontal':_0x571e16}}},_0x536ad0={'unitId':_0x10b6a6,'subUnitId':_0x366ee,'shapeId':_0x1ffee1,'shapeData':{'shapeText':{'isHorizontal':_0x57d8bb}}},_0x4921c9=[{'id':_0x593f51['id'],'params':_0x159f9e}],_0x2db3b6=[{'id':_0x593f51['id'],'params':_0x536ad0}];return(0x0,_0x1d6eec[_0x1e61ce(0x25c)])(_0x4921c9,_0x59ae4c)[_0x1e61ce(0x21b)]?(_0x579268['pushUndoRedo']({'unitID':_0x10b6a6,'undoMutations':_0x2db3b6,'redoMutations':_0x4921c9}),!0x0):!0x1;}},_0x271aa8={'type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x2a0)],'id':'sheet.command.update-connector-relation','handler':(_0x57e54d,_0x35c2b5)=>{const _0x2f73de=_0x171b41;var _0x56b5b1,_0x4fde85,_0x1402c3,_0x589aef;let _0xf6b2ca=(0x0,_0x5c5201['getSheetCommandTarget'])(_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x291)]),_0x35c2b5);if(!_0xf6b2ca)return!0x1;let _0x6132d1=_0x57e54d[_0x2f73de(0x246)](_0x5c5201['SheetSkeletonService']),{unitId:_0x540d0a,subUnitId:_0x15e71a}=_0xf6b2ca,_0x4edd02=_0x6132d1['getSkeleton'](_0x540d0a,_0x15e71a);if(!_0x4edd02)return!0x1;let _0x4f0d0f=_0x57e54d[_0x2f73de(0x246)](_0x49fa79[_0x2f73de(0x1e7)]),{connectorShapeId:_0xaa6954,width:_0x5a4f9,height:_0x59fbe7,left:_0x29938c,top:_0x2c439c,flipX:_0x34dd62,flipY:_0x3746fe,rotation:_0x70e229,oldAdjustValues:_0x3a4d19,newAdjustValues:_0x2458a0,oldLineType:_0x48f13f,newLineType:_0x77fba8,oldRelation:_0x36ba12,newRelation:_0x675567}=_0x35c2b5,_0x5ca8bd=_0x4f0d0f[_0x2f73de(0x269)]({'unitId':_0x540d0a,'subUnitId':_0x15e71a,'drawingId':_0xaa6954});if(!_0x5ca8bd)return!0x1;let _0x2fc5db=_0x57e54d[_0x2f73de(0x246)](_0x53616c)[_0x2f73de(0x244)](_0x540d0a,_0x15e71a,_0xaa6954);if(!_0x2fc5db)return!0x1;let _0x5b7bc5=_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x206)]),_0x146be2=_0x57e54d[_0x2f73de(0x246)](_0x1d6eec[_0x2f73de(0x1f6)]),_0x585dde=_0x57e54d[_0x2f73de(0x246)](_0x5c5201['SheetInterceptorService']),_0x3bedb3={..._0x5ca8bd[_0x2f73de(0x2a6)],'width':_0x5a4f9,'height':_0x59fbe7,'left':_0x29938c,'top':_0x2c439c,'flipX':_0x34dd62,'flipY':_0x3746fe,'angle':(_0x56b5b1=_0x70e229==null?(_0x4fde85=_0x5ca8bd[_0x2f73de(0x2a6)])==null?void 0x0:_0x4fde85[_0x2f73de(0x1ee)]:_0x70e229)==null?0x0:_0x56b5b1},_0x1652ba=(0x0,_0x49fa79[_0x2f73de(0x27e)])(_0x3bedb3,_0x4edd02),_0x3eff4b=(0x0,_0x49fa79[_0x2f73de(0x267)])(_0x3bedb3,_0x4edd02),_0x4fda82=_0x2fc5db[_0x2f73de(0x256)](),_0x91d4a6=_0x2fc5db[_0x2f73de(0x225)](),_0x130215={'unitId':_0x540d0a,'subUnitId':_0x15e71a,'drawingId':_0xaa6954,'drawingType':_0x1d6eec[_0x2f73de(0x28b)][_0x2f73de(0x20b)],'sheetTransform':_0x1652ba,'transform':_0x3bedb3,'data':{'shapeType':_0x77fba8||_0x48f13f||_0x4fda82,'shapeData':{..._0x91d4a6,'adjustValues':_0x2458a0||_0x3a4d19||(_0x91d4a6==null?void 0x0:_0x91d4a6[_0x2f73de(0x29d)]),'relation':_0x675567||_0x36ba12||(_0x91d4a6==null?void 0x0:_0x91d4a6['relation'])}},'axisAlignSheetTransform':_0x3eff4b,'allowTransform':!0x0},{undo:_0x24259d,redo:_0x4b2d66,objects:_0x1df71d}=_0x4f0d0f[_0x2f73de(0x249)]([_0x130215]),_0x3cc0eb=_0x585dde[_0x2f73de(0x220)]({'id':_0x49fa79[_0x2f73de(0x29f)]['id'],'params':{'unitId':_0x540d0a,'drawings':[_0x130215]}}),_0x22d70a=[...(_0x1402c3=_0x3cc0eb[_0x2f73de(0x248)])==null?[]:_0x1402c3,{'id':_0x49fa79[_0x2f73de(0x23a)]['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'op':_0x4b2d66,'objects':_0x1df71d,'type':_0x49fa79[_0x2f73de(0x21f)][_0x2f73de(0x205)]}},{'id':_0x49fa79[_0x2f73de(0x29b)]['id'],'params':[_0x540d0a]},..._0x3cc0eb['redos'],{'id':_0x593f51['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'shapeId':_0xaa6954,'shapeType':_0x77fba8,'shapeData':{'adjustValues':_0x2458a0,'relation':_0x675567}}}],_0x5f5dcd=[...(_0x589aef=_0x3cc0eb['preUndos'])==null?[]:_0x589aef,{'id':_0x49fa79[_0x2f73de(0x23a)]['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'op':_0x24259d,'objects':_0x1df71d,'type':_0x49fa79[_0x2f73de(0x21f)][_0x2f73de(0x205)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x540d0a]},..._0x3cc0eb[_0x2f73de(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x540d0a,'subUnitId':_0x15e71a,'shapeId':_0xaa6954,'shapeType':_0x4fda82,'shapeData':{..._0x91d4a6,'adjustValues':_0x3a4d19||(_0x91d4a6==null?void 0x0:_0x91d4a6[_0x2f73de(0x29d)]),'relation':_0x36ba12||(_0x91d4a6==null?void 0x0:_0x91d4a6['relation'])}}}];return(0x0,_0x1d6eec[_0x2f73de(0x25c)])(_0x22d70a,_0x5b7bc5)[_0x2f73de(0x21b)]?(_0x146be2[_0x2f73de(0x1f1)]({'unitID':_0x540d0a,'undoMutations':_0x5f5dcd,'redoMutations':_0x22d70a}),!0x0):!0x1;}},_0x50afbf={'type':_0x1d6eec['CommandType'][_0x171b41(0x2a0)],'id':'sheet.command.update-line-shape-resize','handler':(_0x1a5df4,_0x265403)=>{const _0x10eb14=_0x171b41;var _0x4ac53a,_0x37cc0d;let _0x15ab2a=(0x0,_0x5c5201[_0x10eb14(0x1e9)])(_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x291)]),_0x265403);if(!_0x15ab2a)return!0x1;let _0x2195ea=_0x1a5df4[_0x10eb14(0x246)](_0x5c5201['SheetSkeletonService']),{unitId:_0x1de9ba,subUnitId:_0x2df6bc}=_0x15ab2a,_0x4de13a=_0x2195ea[_0x10eb14(0x242)](_0x1de9ba,_0x2df6bc);if(!_0x4de13a)return!0x1;let _0xfd49a6=_0x1a5df4['get'](_0x49fa79[_0x10eb14(0x1e7)]),{shapeId:_0x1c81c3,width:_0x2c0b46,height:_0x4c2385,left:_0x459abc,top:_0x407734,flipX:_0x8e38c0,flipY:_0x174a27,angle:_0x58b593,oldAdjustValues:_0x24ffc0,newAdjustValues:_0x3b68c8,oldLineType:_0x226fa6,newLineType:_0x3436a7}=_0x265403,_0x35aaa0=_0xfd49a6[_0x10eb14(0x269)]({'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'drawingId':_0x1c81c3});if(!_0x35aaa0)return!0x1;let _0x55be2f=_0x1a5df4[_0x10eb14(0x246)](_0x53616c)[_0x10eb14(0x244)](_0x1de9ba,_0x2df6bc,_0x1c81c3);if(!_0x55be2f)return!0x1;let _0x1162a6=_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x206)]),_0x5cb9c4=_0x1a5df4[_0x10eb14(0x246)](_0x1d6eec[_0x10eb14(0x1f6)]),_0x42caf7=_0x1a5df4[_0x10eb14(0x246)](_0x5c5201[_0x10eb14(0x1f2)]),_0x1aad82={..._0x35aaa0[_0x10eb14(0x2a6)],'width':_0x2c0b46,'height':_0x4c2385,'left':_0x459abc,'top':_0x407734,'flipX':_0x8e38c0,'flipY':_0x174a27,'angle':_0x58b593},_0x7af93a=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x1aad82,_0x4de13a),_0x165e2e=(0x0,_0x49fa79[_0x10eb14(0x267)])(_0x1aad82,_0x4de13a),_0x1d092f=_0x55be2f['getShapeType'](),_0x4c805a=_0x55be2f[_0x10eb14(0x225)](),_0x32391e={'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'drawingId':_0x1c81c3,'drawingType':_0x1d6eec[_0x10eb14(0x28b)]['DRAWING_SHAPE'],'sheetTransform':_0x7af93a,'transform':_0x1aad82,'data':{'shapeType':_0x3436a7||_0x226fa6||_0x1d092f,'shapeData':{..._0x4c805a,'adjustValues':_0x3b68c8||_0x24ffc0||(_0x4c805a==null?void 0x0:_0x4c805a[_0x10eb14(0x29d)])}},'axisAlignSheetTransform':_0x165e2e,'allowTransform':!0x0},{undo:_0x3ddabc,redo:_0x5bfda1,objects:_0x49cfaa}=_0xfd49a6[_0x10eb14(0x249)]([_0x32391e]),_0x1f6603=_0x42caf7[_0x10eb14(0x220)]({'id':_0x49fa79['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1de9ba,'drawings':[_0x32391e]}}),_0x97caf1=[...(_0x4ac53a=_0x1f6603[_0x10eb14(0x248)])==null?[]:_0x4ac53a,{'id':_0x49fa79['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'op':_0x5bfda1,'objects':_0x49cfaa,'type':_0x49fa79[_0x10eb14(0x21f)][_0x10eb14(0x205)]}},{'id':_0x49fa79[_0x10eb14(0x29b)]['id'],'params':[_0x1de9ba]},..._0x1f6603[_0x10eb14(0x27d)],{'id':_0x593f51['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'shapeId':_0x1c81c3,'shapeType':_0x3436a7,'shapeData':{'adjustValues':_0x3b68c8}}}],_0x294ae8=[...(_0x37cc0d=_0x1f6603[_0x10eb14(0x1dc)])==null?[]:_0x37cc0d,{'id':_0x49fa79[_0x10eb14(0x23a)]['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'op':_0x3ddabc,'objects':_0x49cfaa,'type':_0x49fa79[_0x10eb14(0x21f)][_0x10eb14(0x205)]}},{'id':_0x49fa79['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1de9ba]},..._0x1f6603[_0x10eb14(0x282)],{'id':_0x593f51['id'],'params':{'unitId':_0x1de9ba,'subUnitId':_0x2df6bc,'shapeId':_0x1c81c3,'shapeType':_0x1d092f,'shapeData':{..._0x4c805a,'adjustValues':_0x24ffc0||(_0x4c805a==null?void 0x0:_0x4c805a[_0x10eb14(0x29d)])}}}];return(0x0,_0x1d6eec[_0x10eb14(0x25c)])(_0x97caf1,_0x1162a6)['result']?(_0x5cb9c4[_0x10eb14(0x1f1)]({'unitID':_0x1de9ba,'undoMutations':_0x294ae8,'redoMutations':_0x97caf1}),!0x0):!0x1;}},_0x4d077d={'id':'sheet.mutation.update-shape-type','type':_0x1d6eec[_0x171b41(0x280)][_0x171b41(0x21d)],'handler':(_0x39cef5,_0x436b5b)=>{const _0x357c3f=_0x171b41;let {unitId:_0x549612,subUnitId:_0x2482be,shapeType:_0x3d1db7,shapeId:_0xfe6343,shapeData:_0x41f50f}=_0x436b5b,_0x2d71b7=_0x39cef5['get'](_0x53616c)['getShapeModel'](_0x549612,_0x2482be,_0xfe6343);return _0x2d71b7&&(_0x2d71b7['setShapeType'](_0x3d1db7),_0x41f50f&&(_0x2d71b7==null||_0x2d71b7[_0x357c3f(0x25d)](_0x41f50f))),!0x0;}},_0x27d210={'id':_0x171b41(0x23c),'type':_0x1d6eec['CommandType'][_0x171b41(0x2a0)],'handler':(_0x2a5501,_0x3c0526)=>{const _0x2f8f79=_0x171b41;if(!_0x3c0526)return!0x1;let _0x4fb7ed=_0x2a5501['get'](_0x1d6eec[_0x2f8f79(0x206)]),_0x114182=_0x2a5501['get'](_0x53616c),_0x24c16c=_0x2a5501[_0x2f8f79(0x246)](_0x1d6eec[_0x2f8f79(0x1f6)]),_0x3165e9=[],_0x4ca5dd=[],{unitId:_0x15564e,subUnitId:_0x5c16c7,shapeId:_0x5c86c9,shapeType:_0x3b61aa,shapeData:_0x2a83b2}=_0x3c0526,_0x4ee503=_0x114182[_0x2f8f79(0x244)](_0x15564e,_0x5c16c7,_0x5c86c9);if(_0x4ee503){let _0x43ddbf=_0x4ee503[_0x2f8f79(0x256)](),_0x188734=Object[_0x2f8f79(0x1ef)]({},_0x4ee503[_0x2f8f79(0x225)]()),_0x193acb={'unitId':_0x15564e,'subUnitId':_0x5c16c7,'shapeId':_0x5c86c9,'shapeType':_0x3b61aa,'shapeData':_0x2a83b2},_0x3e590a={'unitId':_0x15564e,'subUnitId':_0x5c16c7,'shapeId':_0x5c86c9,'shapeType':_0x43ddbf,'shapeData':_0x188734};return _0x3165e9[_0x2f8f79(0x29c)]({'id':_0x4d077d['id'],'params':_0x193acb}),_0x4ca5dd['push']({'id':_0x4d077d['id'],'params':_0x3e590a}),_0x3165e9[_0x2f8f79(0x1ed)](_0x1a778f=>_0x4fb7ed[_0x2f8f79(0x28d)](_0x1a778f['id'],_0x1a778f[_0x2f8f79(0x216)]))&&_0x24c16c[_0x2f8f79(0x1f1)]({'unitID':_0x15564e,'redoMutations':[..._0x3165e9],'undoMutations':[..._0x4ca5dd]}),!0x0;}return!0x1;}};var _0x5d8380=_0x171b41(0x218),_0xc6280e='1.0.0-alpha.2';let _0x4cb829={},_0x512919=class extends _0x1d6eec[_0x171b41(0x27c)]{constructor(_0x59ea16,_0x8c9823,_0x29630d,_0x4af5b2,_0x114c11){const _0x3329ba=_0x171b41;super(),this[_0x3329ba(0x29e)]=_0x59ea16,this[_0x3329ba(0x258)]=_0x8c9823,this[_0x3329ba(0x274)]=_0x29630d,this[_0x3329ba(0x1d7)]=_0x4af5b2,this['_drawingManagerService']=_0x114c11,this[_0x3329ba(0x226)](),this['_initCommandInterceptor']();}[_0x171b41(0x226)](){const _0x43f98d=_0x171b41;[_0x1dc333,_0x1bfdad,_0x1e11f0,_0x420359,_0x32e2da,_0x271aa8,_0x50afbf,_0x22202d,_0x5db064,_0x4d077d,_0x593f51][_0x43f98d(0x2a2)](_0x29e618=>this['disposeWithMe'](this[_0x43f98d(0x29e)][_0x43f98d(0x1d6)](_0x29e618)));}[_0x171b41(0x255)](){const _0x4ee763=_0x171b41;this[_0x4ee763(0x21e)](this[_0x4ee763(0x258)][_0x4ee763(0x243)]({'getMutations':_0x5cd0d2=>{const _0x51c271=_0x4ee763;if(_0x5cd0d2['id']===_0x49fa79['RemoveSheetDrawingCommand']['id']){let {drawings:_0x231039}=_0x5cd0d2[_0x51c271(0x216)],_0x202707=_0x231039[_0x51c271(0x270)](_0x15f9d6=>_0x15f9d6[_0x51c271(0x265)]===_0x1d6eec[_0x51c271(0x28b)][_0x51c271(0x20b)]);if(_0x202707['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2fccf2=[],_0x399055=[];return _0x202707[_0x51c271(0x2a2)](_0xb91080=>{const _0x2d0769=_0x51c271;let {unitId:_0x1c904e,subUnitId:_0x322124,drawingId:_0x3f3916}=_0xb91080,_0x440ae4=this[_0x2d0769(0x1d7)][_0x2d0769(0x244)](_0x1c904e,_0x322124,_0x3f3916);if(!_0x440ae4)throw TypeError(_0x2d0769(0x259)+_0x440ae4);_0x2fccf2[_0x2d0769(0x29c)]({'id':_0x5db064['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x3f3916}}),_0x399055[_0x2d0769(0x29c)]({'id':_0x22202d['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x3f3916,'shapeType':_0x440ae4[_0x2d0769(0x256)](),'shapeData':_0x440ae4[_0x2d0769(0x225)]()}});let _0x8f4b51=this[_0x2d0769(0x1d7)][_0x2d0769(0x213)](_0x1c904e,_0x322124,_0x3f3916);if(_0x8f4b51)for(let _0x1d2c0d of _0x8f4b51){let _0x44aa6f=_0x1d2c0d[_0x2d0769(0x22d)],_0x4e51ef=_0x1d2c0d['isFrom'],_0xb7ea6f=_0x4e51ef?{'from':void 0x0}:{'to':void 0x0},_0x19c8f9=_0x4e51ef?{'from':{'shapeId':_0x1d2c0d[_0x2d0769(0x234)],'cxnIndex':_0x1d2c0d[_0x2d0769(0x204)]}}:{'to':{'shapeId':_0x1d2c0d[_0x2d0769(0x234)],'cxnIndex':_0x1d2c0d['cxnIndex']}};_0x2fccf2[_0x2d0769(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x44aa6f,'shapeData':{'relation':_0xb7ea6f}}}),_0x399055[_0x2d0769(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x1c904e,'subUnitId':_0x322124,'shapeId':_0x44aa6f,'shapeData':{'relation':_0x19c8f9}}});}}),{'preRedos':_0x2fccf2,'redos':[],'preUndos':[],'undos':_0x399055};}if(_0x5cd0d2['id']===_0x49fa79[_0x51c271(0x29f)]['id']){let {drawings:_0x160849}=_0x5cd0d2[_0x51c271(0x216)],_0x3b9cc5=_0x160849[_0x51c271(0x270)](_0x2fa2b9=>_0x2fa2b9[_0x51c271(0x265)]===_0x1d6eec[_0x51c271(0x28b)][_0x51c271(0x20b)]);if(_0x3b9cc5[_0x51c271(0x278)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d001a=[],_0x386369=[];for(let _0x9c1585 of _0x3b9cc5){let {unitId:_0x3f2fc7,subUnitId:_0x537f4f,drawingId:_0x1f9098,transform:_0x3bb8b2}=_0x9c1585;if(!_0x3f2fc7||!_0x537f4f||!_0x1f9098||!_0x3bb8b2)continue;let _0x14c628=this[_0x51c271(0x1d7)][_0x51c271(0x244)](_0x3f2fc7,_0x537f4f,_0x1f9098);if(!_0x14c628)throw TypeError(_0x51c271(0x259)+_0x14c628);if((0x0,_0x2a5118[_0x51c271(0x1ff)])(_0x14c628['getShapeType']())){let _0x22c545=this[_0x51c271(0x1d7)][_0x51c271(0x222)](_0x3f2fc7,_0x537f4f,_0x1f9098);_0x22c545&&(_0x4d001a['push']({'id':_0x593f51['id'],'params':{'unitId':_0x3f2fc7,'subUnitId':_0x537f4f,'shapeId':_0x1f9098,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x386369['push']({'id':_0x593f51['id'],'params':{'unitId':_0x3f2fc7,'subUnitId':_0x537f4f,'shapeId':_0x1f9098,'shapeData':{'relation':_0x22c545}}}));}else{let _0x3fe54a=this[_0x51c271(0x1d7)][_0x51c271(0x213)](_0x3f2fc7,_0x537f4f,_0x1f9098);if(_0x3fe54a&&_0x3fe54a[_0x51c271(0x278)]>0x0)for(let _0x42b1f9 of _0x3fe54a){let _0x35c1da=_0x42b1f9[_0x51c271(0x22d)],_0x4fb51a=_0x42b1f9[_0x51c271(0x1fb)],_0x4b9164=this[_0x51c271(0x1d7)][_0x51c271(0x244)](_0x3f2fc7,_0x537f4f,_0x35c1da);if(!_0x4b9164)continue;let _0x121a73=_0x4b9164[_0x51c271(0x1de)](),_0xa35282=_0x4b9164[_0x51c271(0x238)]();_0x121a73&&_0xa35282?this['_addLineRerouteUpdates'](_0x3f2fc7,_0x537f4f,_0x35c1da,_0x4b9164,_0x121a73,_0xa35282,_0x4d001a,_0x386369,_0x1f9098,_0x3bb8b2):this[_0x51c271(0x22c)](_0x3f2fc7,_0x537f4f,_0x35c1da,_0x4b9164,_0x4fb51a?_0x121a73:_0xa35282,_0x4fb51a,_0x4d001a,_0x386369,_0x1f9098,_0x3bb8b2);}}}return{'preRedos':[],'redos':_0x4d001a,'preUndos':_0x386369,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x171b41(0x1eb)](_0x4fc7da,_0x3d60c2,_0x40b5cf,_0x67eabb,_0x4d274c){const _0x3e796f=_0x171b41;if(!_0x3d60c2||!_0x40b5cf)return null;let {shapeId:_0x474aec,cxnIndex:_0x371c3c}=_0x4fc7da,_0x3c1b22=this[_0x3e796f(0x1d7)][_0x3e796f(0x244)](_0x3d60c2,_0x40b5cf,_0x474aec);if(!_0x3c1b22)return null;let _0x353906=this[_0x3e796f(0x1e3)][_0x3e796f(0x269)]({'unitId':_0x3d60c2,'subUnitId':_0x40b5cf,'drawingId':_0x474aec});if(!(_0x353906!=null&&_0x353906[_0x3e796f(0x2a6)]))return null;let {left:_0x3222f8=0x0,top:_0xb39b20=0x0,width:_0x1adb8a=0x0,height:_0x4468fe=0x0,flipX:_0x2296a6=!0x1,flipY:_0x133224=!0x1,angle:_0x14541b}=_0x353906['transform'];if(_0x4d274c&&_0x67eabb===_0x474aec){var _0x33c808,_0x39efa0,_0xb782f4,_0x3464d2,_0x4f06e4,_0x225ea2,_0x24dc03;_0x3222f8=(_0x33c808=_0x4d274c['left'])==null?_0x3222f8:_0x33c808,_0xb39b20=(_0x39efa0=_0x4d274c[_0x3e796f(0x24c)])==null?_0xb39b20:_0x39efa0,_0x1adb8a=(_0xb782f4=_0x4d274c['width'])==null?_0x1adb8a:_0xb782f4,_0x4468fe=(_0x3464d2=_0x4d274c[_0x3e796f(0x2aa)])==null?_0x4468fe:_0x3464d2,_0x2296a6=(_0x4f06e4=_0x4d274c[_0x3e796f(0x233)])==null?_0x2296a6:_0x4f06e4,_0x133224=(_0x225ea2=_0x4d274c['flipY'])==null?_0x133224:_0x225ea2,_0x14541b=(_0x24dc03=_0x4d274c['angle'])==null?_0x14541b:_0x24dc03;}_0x3c1b22[_0x3e796f(0x232)]({'width':_0x1adb8a,'height':_0x4468fe});let _0x1250b0=_0x3c1b22[_0x3e796f(0x22e)]()[_0x3e796f(0x277)](_0x462c59=>_0x462c59[_0x3e796f(0x28f)]===_0x371c3c);if(!_0x1250b0)return null;let _0x551e05=_0x2296a6?_0x1adb8a-_0x1250b0['x']:_0x1250b0['x'],_0x28e19d=_0x133224?_0x4468fe-_0x1250b0['y']:_0x1250b0['y'];if(_0x14541b!==0x0&&_0x14541b!=null){let _0x5421a3=_0x14541b*Math['PI']/0xb4,_0x1c7b1=Math['cos'](_0x5421a3),_0x578521=Math[_0x3e796f(0x260)](_0x5421a3),_0x4dce39=_0x1adb8a/0x2,_0x3fb739=_0x4468fe/0x2,_0x1c0617=_0x551e05-_0x4dce39,_0x5b4c01=_0x28e19d-_0x3fb739;_0x551e05=_0x4dce39+_0x1c0617*_0x1c7b1-_0x5b4c01*_0x578521,_0x28e19d=_0x3fb739+_0x1c0617*_0x578521+_0x5b4c01*_0x1c7b1;}_0x551e05+=_0x3222f8,_0x28e19d+=_0xb39b20;let _0x4ead88=_0x1250b0[_0x3e796f(0x24e)]/0xea60;_0x2296a6&&(_0x4ead88=0xb4-_0x4ead88),_0x133224&&(_0x4ead88=-_0x4ead88),_0x4ead88+=_0x14541b||0x0,_0x4ead88=(_0x4ead88%0x168+0x168)%0x168;let _0x443b73=(0x0,_0x2a5118[_0x3e796f(0x293)])({'left':_0x3222f8,'top':_0xb39b20,'width':_0x1adb8a,'height':_0x4468fe},_0x14541b||0x0);return{'point':{'x':_0x551e05,'y':_0x28e19d},'angle':_0x4ead88,'bounds':_0x443b73};}[_0x171b41(0x284)](_0x38831c,_0x2c89d6,_0x585e41,_0x576ee4,_0x29262b,_0x1b9f95,_0x419602,_0x3dac90,_0x3509da,_0x41c45c){const _0x2719a9=_0x171b41;let _0x250ed0=this[_0x2719a9(0x274)]['getSkeleton'](_0x38831c,_0x2c89d6);if(!_0x250ed0)return;let _0x3fbf67=_0x576ee4['getShapeRelation'](),_0x2f8090=_0x576ee4['getAdjustNames'](),_0x32f6eb={},_0x4cdec6={};_0x2f8090[_0x2719a9(0x2a2)](_0x5b9a33=>{const _0x124f4d=_0x2719a9;let _0x5dbf6b=_0x576ee4[_0x124f4d(0x203)](_0x5b9a33);_0x4cdec6[_0x5b9a33]=_0x5dbf6b==null?0x0:_0x5dbf6b;});let _0x2b6cd5=this['_getConnectPointInfo'](_0x29262b,_0x38831c,_0x2c89d6,_0x3509da,_0x41c45c),_0xd0bfb1=this[_0x2719a9(0x1eb)](_0x1b9f95,_0x38831c,_0x2c89d6,_0x3509da,_0x41c45c);if(_0x2b6cd5&&_0xd0bfb1){let _0x5ab5db=_0x576ee4['getShapeType'](),_0x8c1259=(0x0,_0x2a5118[_0x2719a9(0x1e5)])(_0x2b6cd5,_0xd0bfb1,_0x5ab5db),_0x5507a7=_0x5ab5db;if(_0x8c1259){let _0x519c70=(0x0,_0x2a5118[_0x2719a9(0x1e6)])(_0x8c1259,_0x576ee4['getShapeType']()),_0x1770bb=this[_0x2719a9(0x1e3)][_0x2719a9(0x252)](_0x38831c,_0x2c89d6);if(_0x1770bb&&_0x1770bb[_0x585e41]){let _0x5d9e6f=_0x1770bb[_0x585e41];_0x5507a7=_0x519c70[_0x2719a9(0x299)];for(let [_0x22377a,_0x4316b5]of Object['entries'](_0x519c70[_0x2719a9(0x29d)]))_0x32f6eb[_0x22377a]=_0x4316b5;let _0x5ca92b={..._0x5d9e6f['transform'],'width':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x1fe)],'height':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x2aa)],'left':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x212)],'top':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x24c)],'flipX':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x233)],'flipY':_0x519c70[_0x2719a9(0x237)][_0x2719a9(0x2a5)],'angle':_0x519c70[_0x2719a9(0x1f8)]},_0x45a85a=(0x0,_0x49fa79['transformToDrawingPosition'])(_0x5ca92b,_0x250ed0),_0x30133e=(0x0,_0x49fa79['transformToAxisAlignPosition'])(_0x5ca92b,_0x250ed0),_0x113176={'unitId':_0x38831c,'subUnitId':_0x2c89d6,'drawingType':_0x1d6eec[_0x2719a9(0x28b)]['DRAWING_SHAPE'],'drawingId':_0x585e41,'transform':_0x5ca92b,'sheetTransform':_0x45a85a,'axisAlignSheetTransform':_0x30133e},{unitId:_0x15c2a3,subUnitId:_0x152e1a,undo:_0x5aca30,redo:_0xf00e5b,objects:_0x1ea2ba}=this[_0x2719a9(0x1e3)][_0x2719a9(0x249)]([_0x113176]);_0x419602['push']({'id':_0x49fa79[_0x2719a9(0x23a)]['id'],'params':{'unitId':_0x15c2a3,'subUnitId':_0x152e1a,'op':_0xf00e5b,'objects':_0x1ea2ba,'type':_0x49fa79[_0x2719a9(0x21f)][_0x2719a9(0x205)]}}),_0x3dac90[_0x2719a9(0x29c)]({'id':_0x49fa79[_0x2719a9(0x23a)]['id'],'params':{'unitId':_0x15c2a3,'subUnitId':_0x152e1a,'op':_0x5aca30,'objects':_0x1ea2ba,'type':_0x49fa79[_0x2719a9(0x21f)]['UPDATE']}});}_0x576ee4[_0x2719a9(0x28e)]();}_0x419602[_0x2719a9(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x38831c,'subUnitId':_0x2c89d6,'shapeId':_0x585e41,'shapeType':_0x5507a7,'shapeData':{'adjustValues':_0x32f6eb,'relation':_0x3fbf67}}}),_0x3dac90[_0x2719a9(0x29c)]({'id':_0x593f51['id'],'params':{'unitId':_0x38831c,'subUnitId':_0x2c89d6,'shapeId':_0x585e41,'shapeType':_0x5ab5db,'shapeData':{'adjustValues':_0x4cdec6,'relation':_0x3fbf67}}});}}[_0x171b41(0x22c)](_0x5ceee9,_0x31a137,_0x2ba6d5,_0x3e0ee8,_0x8b5836,_0x1e71bd,_0x2418f8,_0x54395e,_0x2d07b7,_0x18a00f){const _0x51188c=_0x171b41;var _0x1750b2;if(!_0x8b5836)return;let _0x4e6eb0=this[_0x51188c(0x274)][_0x51188c(0x242)](_0x5ceee9,_0x31a137);if(!_0x4e6eb0)return;let _0x293fe1=(_0x1750b2=this[_0x51188c(0x1e3)][_0x51188c(0x269)]({'unitId':_0x5ceee9,'subUnitId':_0x31a137,'drawingId':_0x2d07b7}))==null?void 0x0:_0x1750b2['transform'];if(!_0x293fe1)return;let _0x486b7a=_0x293fe1[_0x51188c(0x212)]!==_0x18a00f[_0x51188c(0x212)]||_0x293fe1[_0x51188c(0x24c)]!==_0x18a00f['top'],_0x12ae1b=_0x293fe1[_0x51188c(0x1fe)]!==_0x18a00f[_0x51188c(0x1fe)]||_0x293fe1[_0x51188c(0x2aa)]!==_0x18a00f[_0x51188c(0x2aa)],_0x4872df=_0x293fe1[_0x51188c(0x233)]!==_0x18a00f[_0x51188c(0x233)]||_0x293fe1[_0x51188c(0x2a5)]!==_0x18a00f[_0x51188c(0x2a5)],_0x3f6888=_0x293fe1[_0x51188c(0x1ee)]!==_0x18a00f[_0x51188c(0x1ee)];if(_0x486b7a&&!_0x12ae1b&&!_0x4872df&&!_0x3f6888){var _0x42ebab,_0x1ddc20,_0x400e2b,_0x278dfa;let _0x71b34d=((_0x42ebab=_0x18a00f[_0x51188c(0x212)])==null?0x0:_0x42ebab)-((_0x1ddc20=_0x293fe1[_0x51188c(0x212)])==null?0x0:_0x1ddc20),_0x100b6d=((_0x400e2b=_0x18a00f[_0x51188c(0x24c)])==null?0x0:_0x400e2b)-((_0x278dfa=_0x293fe1[_0x51188c(0x24c)])==null?0x0:_0x278dfa),_0x2130c7=this['_drawingManagerService'][_0x51188c(0x252)](_0x5ceee9,_0x31a137);if(_0x2130c7&&_0x2130c7[_0x2ba6d5]){var _0x4dfcf6,_0xf2a10f,_0x44d78d,_0x57e13c;let _0x1b6043=_0x2130c7[_0x2ba6d5],_0x5a8718={..._0x1b6043[_0x51188c(0x2a6)],'left':((_0x4dfcf6=(_0xf2a10f=_0x1b6043['transform'])==null?void 0x0:_0xf2a10f[_0x51188c(0x212)])==null?0x0:_0x4dfcf6)+_0x71b34d,'top':((_0x44d78d=(_0x57e13c=_0x1b6043['transform'])==null?void 0x0:_0x57e13c[_0x51188c(0x24c)])==null?0x0:_0x44d78d)+_0x100b6d},_0xb4ea51=(0x0,_0x49fa79[_0x51188c(0x27e)])(_0x5a8718,_0x4e6eb0),_0x13806c=(0x0,_0x49fa79[_0x51188c(0x267)])(_0x5a8718,_0x4e6eb0),_0x4f0df1={'unitId':_0x5ceee9,'subUnitId':_0x31a137,'drawingType':_0x1d6eec[_0x51188c(0x28b)]['DRAWING_SHAPE'],'drawingId':_0x2ba6d5,'transform':_0x5a8718,'sheetTransform':_0xb4ea51,'axisAlignSheetTransform':_0x13806c},{unitId:_0x126090,subUnitId:_0x79dd6d,undo:_0xa9897a,redo:_0x19aaf4,objects:_0x2a1d46}=this[_0x51188c(0x1e3)][_0x51188c(0x249)]([_0x4f0df1]);_0x2418f8[_0x51188c(0x29c)]({'id':_0x49fa79[_0x51188c(0x23a)]['id'],'params':{'unitId':_0x126090,'subUnitId':_0x79dd6d,'op':_0x19aaf4,'objects':_0x2a1d46,'type':_0x49fa79[_0x51188c(0x21f)][_0x51188c(0x205)]}}),_0x54395e[_0x51188c(0x29c)]({'id':_0x49fa79[_0x51188c(0x23a)]['id'],'params':{'unitId':_0x126090,'subUnitId':_0x79dd6d,'op':_0xa9897a,'objects':_0x2a1d46,'type':_0x49fa79['DrawingApplyType'][_0x51188c(0x205)]}});}}else{let _0x33b4aa=_0x3e0ee8[_0x51188c(0x1de)](),_0x198f14=_0x3e0ee8[_0x51188c(0x238)]();this[_0x51188c(0x284)](_0x5ceee9,_0x31a137,_0x2ba6d5,_0x3e0ee8,_0x33b4aa,_0x198f14,_0x2418f8,_0x54395e,_0x2d07b7,_0x18a00f);}}};_0x512919=_0x3af845([_0x3b59bc(0x0,_0x1d6eec[_0x171b41(0x206)]),_0x3b59bc(0x1,(0x0,_0x1d6eec['Inject'])(_0x5c5201['SheetInterceptorService'])),_0x3b59bc(0x2,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x5c5201['SheetSkeletonService'])),_0x3b59bc(0x3,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x53616c)),_0x3b59bc(0x4,(0x0,_0x1d6eec[_0x171b41(0x266)])(_0x1c64e2[_0x171b41(0x1db)]))],_0x512919);let _0x1d79a0=class extends _0x1d6eec[_0x171b41(0x245)]{constructor(_0x520fe2=_0x4cb829,_0x1d607c,_0x2a8833,_0x1a56c0){const _0x575b90=_0x171b41;super(),this[_0x575b90(0x272)]=_0x520fe2,this[_0x575b90(0x286)]=_0x1d607c,this[_0x575b90(0x29e)]=_0x2a8833,this[_0x575b90(0x24a)]=_0x1a56c0;let {..._0x4299c5}=(0x0,_0x1d6eec[_0x575b90(0x279)])({},_0x4cb829,this['_config']);this[_0x575b90(0x24a)][_0x575b90(0x253)]('sheets-shape.config',_0x4299c5);}[_0x171b41(0x297)](){const _0x3193a4=_0x171b41;let _0x26b23f=this[_0x3193a4(0x286)];[[_0x20a5e7],[_0x53616c],[_0x512919]][_0x3193a4(0x2a2)](_0x1d2d18=>_0x26b23f[_0x3193a4(0x296)](_0x1d2d18)),(0x0,_0x1d6eec[_0x3193a4(0x26f)])(_0x26b23f,[[_0x53616c],[_0x512919]]);}};_0x238d30(_0x1d79a0,_0x171b41(0x241),_0x1d6eec[_0x171b41(0x1fa)][_0x171b41(0x208)]),_0x238d30(_0x1d79a0,_0x171b41(0x24b),_0x171b41(0x25f)),_0x238d30(_0x1d79a0,'packageName',_0x5d8380),_0x238d30(_0x1d79a0,_0x171b41(0x21c),_0xc6280e),_0x1d79a0=_0x3af845([(0x0,_0x1d6eec['DependentOn'])(_0x27dcb2[_0x171b41(0x1d1)]),_0x3b59bc(0x1,(0x0,_0x1d6eec['Inject'])(_0x1d6eec[_0x171b41(0x20c)])),_0x3b59bc(0x2,_0x1d6eec[_0x171b41(0x206)]),_0x3b59bc(0x3,_0x1d6eec[_0x171b41(0x288)])],_0x1d79a0),_0x4937cb[_0x171b41(0x2a3)]=0xc8,_0x4937cb[_0x171b41(0x2a7)]=0xc8,_0x4937cb[_0x171b41(0x285)]=_0x1dc333,_0x4937cb[_0x171b41(0x229)]=_0x22202d,_0x4937cb[_0x171b41(0x224)]=_0x5db064,_0x4937cb[_0x171b41(0x29a)]=_0x1bfdad,_0x4937cb[_0x171b41(0x1f0)]=_0x420359,_0x4937cb['SetSheetsShapeTextVerticalToggleCommand']=_0x32e2da,Object[_0x171b41(0x2a4)](_0x4937cb,_0x171b41(0x262),{'enumerable':!0x0,'get':function(){return _0x53616c;}}),_0x4937cb[_0x171b41(0x22f)]=_0x1e11f0,Object[_0x171b41(0x2a4)](_0x4937cb,_0x171b41(0x1d3),{'enumerable':!0x0,'get':function(){return _0x1d79a0;}}),_0x4937cb['UpdateConnectorRelationCommand']=_0x271aa8,_0x4937cb[_0x171b41(0x1d4)]=_0x50afbf,_0x4937cb['UpdateSheetsShapeDataMutation']=_0x593f51,_0x4937cb[_0x171b41(0x20a)]=_0x27d210,_0x4937cb[_0x171b41(0x22b)]=_0x4d077d;}));
|
|
1
|
+
function _0x53b2(_0x2590ac,_0x3d0df9){_0x2590ac=_0x2590ac-0xb1;const _0x556d70=_0x556d();let _0x53b2a5=_0x556d70[_0x2590ac];return _0x53b2a5;}function _0x556d(){const _0x1b8aa=['shapeData','_ensureShapeModelManager','has','_commandService','touchDependencies','sheet.command.set-shape-rotate','UPDATE','getSheetCommandTarget','borderEnabled','push','SetSheetsShapeTextVerticalToggleCommand','height','disposeWithMe','Injector','IResourceManagerService','generateRandomId','symbol','getCellWithCoordByIndex','isFrom','parse','ICommandService','getShapeType','Inject','_deserializeShapeForUnit','getBatchUpdateOp','setShapeData','flipX','@univerjs/sheets-drawing','transformToDrawingPosition','IUniverInstanceService','getShapeRelation','SetSheetDrawingCommand','removeLinePoints','getBasicShapeRelation','transformToAxisAlignPosition','91zzgCLe','getDrawingByParam','@univerjs/core','ToggleSheetsShapeFlipCommand','UniverSheets','InsertSheetsShapeMutation','_injector','2449287VxZuws','sequenceExecute','_initCommandInterceptor','hasShape','940794pTzTTl','getSkeleton','_shapes','shapeName','setConfig','getShapeModel','isHorizontal','interceptCommand','drawingType','DRAWING_SHAPE','getShapeTypeById','version','3PkMVeN','adjustValues','forEach','22884460POTzHp','getEndConnectInfo','_sheetInterceptorService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','defineProperty','Plugin','shapeId','sheet.mutation.update-shape-type','getCellIndexAndOffsetByPosition','INSERT','_initCommands','setShapeType','sheet.command.update-connector-relation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','576042wjZXZB','lineType','left','_sheetSkeletonService','insertShape','9jzRVnz','_serializeShapeForUnit','lineShapeId','InsertShapeCommand','rotateEnabled','getConnectionSiteList','index','sheet.command.update-line-shape-resize','prototype','updateContext','sheet.mutation.insert-shape','angle','cos','redos','UniverSheetsDrawing','getBatchAddOp','decorate','DEFAULT_SHAPE_HEIGHT','ang','createUniqueShapeName','onStarting','getShapeDisplayNames','merge','getAdjustValueByName','sheet.command.insert-shape','_resourcesManagerService','add','1714912oVYnCW','iterator','IUndoRedoService','keys','worldRect','getBasicShapeRotateBound','constructor','7555995lcRuNl','@univerjs-pro/license','MUTATION','set','width','UniverInstanceType','UpdateLineShapeResizeCommand','UpdateSheetsShapeDataMutation','@univerjs-pro/sheets-shape','flipY','COMMAND','object','toPrimitive','DrawingTypeEnum','removeShape','delete','_linesIds','_getConnectPointInfo','Disposable','@univerjs-pro/engine-shape','_drawingManagerService','undos','getDrawingData','getShapeDataById','pushUndoRedo','position','SHEET_SHAPE_PLUGIN','getShapeTextData','result','filter','function','preUndos','_addLineRerouteUpdates','6707172DTDkiL','routeConnectorLineShape','ClearSheetDrawingTransformerOperation','stringify','getId','ensureSkeleton','DEFAULT_SHAPE_WIDTH','transform','getLineShapeRelation','resizeEnabled','CommandType','isConnectorShape','_config','_groupIds','UniverCore','UpdateConnectorRelationCommand','sheet.mutation.update-shape-data','SetDrawingApplyMutation','entries','startY','sheet.mutation.remove-shape','exports','@univerjs/drawing','_configService','get','map','default','from','range','isLineShape','_shapeModelManagerMap','DrawingApplyType','getShapeData','fill','_sheetsShapeService','data','DependentOn','SheetInterceptorService','length','SetSheetsShapeRotateCommand','_addLineFollowShapeUpdates','top','onCommandExecute','rotation','find','toJSON','IDrawingManagerService','SheetsShapeService','UniverProSheetsShape','getStartConnectInfo','ISheetDrawingService','SheetSkeletonService','clear','relation','@univerjs/sheets','UNIVER_SHEET','registerPluginResource','preRedos','fromJSON','sheet.command.set-shape-text-vertical-toggle','InsertSheetDrawingCommand','SetShapeDrawingDataCommand','addShape','dispose','ShapeModel','params','sheet.command.toggle-shape-flip','call'];_0x556d=function(){return _0x1b8aa;};return _0x556d();}(function(_0x15c37f,_0x552dc0){const _0x2dce32=_0x53b2,_0x2edb01=_0x15c37f();while(!![]){try{const _0x279077=-parseInt(_0x2dce32(0xef))/0x1*(parseInt(_0x2dce32(0xe3))/0x2)+-parseInt(_0x2dce32(0xdf))/0x3+-parseInt(_0x2dce32(0x148))/0x4+parseInt(_0x2dce32(0x127))/0x5+-parseInt(_0x2dce32(0x100))/0x6*(-parseInt(_0x2dce32(0xd8))/0x7)+-parseInt(_0x2dce32(0x120))/0x8+parseInt(_0x2dce32(0x105))/0x9*(parseInt(_0x2dce32(0xf2))/0xa);if(_0x279077===_0x552dc0)break;else _0x2edb01['push'](_0x2edb01['shift']());}catch(_0x5bcef4){_0x2edb01['push'](_0x2edb01['shift']());}}}(_0x556d,0xe2cbf),function(_0x73ad9a,_0x32d64e){const _0x4bf868=_0x53b2;typeof exports=='object'&&typeof module<'u'?_0x32d64e(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x4bf868(0x145)&&define['amd']?define([_0x4bf868(0x15d),_0x4bf868(0x13a),_0x4bf868(0xda),_0x4bf868(0x17e),_0x4bf868(0xd0),_0x4bf868(0x128),_0x4bf868(0x15e)],_0x32d64e):(_0x73ad9a=typeof globalThis<'u'?globalThis:_0x73ad9a||self,_0x32d64e(_0x73ad9a[_0x4bf868(0x178)]={},_0x73ad9a['UniverProEngineShape'],_0x73ad9a[_0x4bf868(0x156)],_0x73ad9a[_0x4bf868(0xdc)],_0x73ad9a[_0x4bf868(0x113)],_0x73ad9a['UniverProLicense'],_0x73ad9a['UniverDrawing']));}(this,function(_0x4150a6,_0x4dff1c,_0x2caac2,_0x3fa06b,_0x4b87f8,_0x2c98ae,_0x389f2d){const _0x43d32e=_0x53b2;Object[_0x43d32e(0xf6)](_0x4150a6,Symbol['toStringTag'],{'value':'Module'});function _0x3a46d2(_0x4cef81){'@babel/helpers - typeof';const _0x46defd=_0x43d32e;return _0x3a46d2=typeof Symbol==_0x46defd(0x145)&&typeof Symbol[_0x46defd(0x121)]=='symbol'?function(_0x5efc63){return typeof _0x5efc63;}:function(_0x6e8c0c){const _0x5289fb=_0x46defd;return _0x6e8c0c&&typeof Symbol==_0x5289fb(0x145)&&_0x6e8c0c[_0x5289fb(0x126)]===Symbol&&_0x6e8c0c!==Symbol[_0x5289fb(0x10d)]?_0x5289fb(0xc5):typeof _0x6e8c0c;},_0x3a46d2(_0x4cef81);}function _0x412cee(_0x1e10a0,_0x449dc8){const _0x2dc4d1=_0x43d32e;if(_0x3a46d2(_0x1e10a0)!=_0x2dc4d1(0x132)||!_0x1e10a0)return _0x1e10a0;var _0x1f4a3d=_0x1e10a0[Symbol[_0x2dc4d1(0x133)]];if(_0x1f4a3d!==void 0x0){var _0x324449=_0x1f4a3d[_0x2dc4d1(0xb4)](_0x1e10a0,_0x449dc8||_0x2dc4d1(0x162));if(_0x3a46d2(_0x324449)!='object')return _0x324449;throw TypeError(_0x2dc4d1(0xff));}return(_0x449dc8==='string'?String:Number)(_0x1e10a0);}function _0x4dcad4(_0x5ef7bd){const _0x1ad557=_0x43d32e;var _0x3aef46=_0x412cee(_0x5ef7bd,'string');return _0x3a46d2(_0x3aef46)==_0x1ad557(0xc5)?_0x3aef46:_0x3aef46+'';}function _0x3392e6(_0x3edddf,_0x3fbfa2,_0x369dd7){const _0x52eb41=_0x43d32e;return(_0x3fbfa2=_0x4dcad4(_0x3fbfa2))in _0x3edddf?Object[_0x52eb41(0xf6)](_0x3edddf,_0x3fbfa2,{'value':_0x369dd7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3edddf[_0x3fbfa2]=_0x369dd7,_0x3edddf;}var _0x46a501=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(){const _0x49273d=_0x43d32e;super(),_0x3392e6(this,_0x49273d(0xe5),new Map()),_0x3392e6(this,_0x49273d(0x137),new Set()),_0x3392e6(this,_0x49273d(0x155),new Set());}[_0x43d32e(0x186)](_0x49e3a0,_0x461da1,_0x4a5c48,_0xcdd4ed){const _0x44be9f=_0x43d32e;let _0x45c9a7=new _0x4dff1c[(_0x44be9f(0xb1))](_0x49e3a0,_0x461da1,_0x4a5c48,_0xcdd4ed);return this[_0x44be9f(0xe5)][_0x44be9f(0x12a)](_0x461da1,_0x45c9a7),(0x0,_0x4dff1c[_0x44be9f(0x153)])(_0x49e3a0)&&this[_0x44be9f(0x137)][_0x44be9f(0x11f)](_0x461da1),_0x45c9a7;}['getBasicShapeRelation'](_0x557073){const _0x573910=_0x43d32e;let _0x58850a=[];for(let _0x1997d3 of this['_linesIds']){let _0x7c5f8a=this[_0x573910(0xe5)]['get'](_0x1997d3);if(_0x7c5f8a){let _0x1647c5=_0x7c5f8a[_0x573910(0xd3)]();if(_0x1647c5){var _0x158b24,_0x16b06c;((_0x158b24=_0x1647c5[_0x573910(0x163)])==null?void 0x0:_0x158b24[_0x573910(0xf8)])===_0x557073&&_0x58850a[_0x573910(0xbe)]({..._0x1647c5[_0x573910(0x163)],'lineShapeId':_0x1997d3,'isFrom':!0x0}),((_0x16b06c=_0x1647c5['to'])==null?void 0x0:_0x16b06c[_0x573910(0xf8)])===_0x557073&&_0x58850a['push']({..._0x1647c5['to'],'lineShapeId':_0x1997d3,'isFrom':!0x1});}}}return _0x58850a;}[_0x43d32e(0x150)](_0x56775c){const _0x55187b=_0x43d32e;let _0x60510e=this[_0x55187b(0xe5)][_0x55187b(0x160)](_0x56775c);if(_0x60510e)return _0x60510e[_0x55187b(0xd3)]();}[_0x43d32e(0xca)](_0x1cc2d6){const _0x4bc61e=_0x43d32e;let _0x509f45=this['_shapes'][_0x4bc61e(0x160)](_0x1cc2d6);if(_0x509f45)return _0x509f45[_0x4bc61e(0xca)]();}[_0x43d32e(0xe2)](_0x3af6b1){const _0x986fee=_0x43d32e;return this['_shapes'][_0x986fee(0xb7)](_0x3af6b1);}[_0x43d32e(0x11a)](){const _0x47733d=_0x43d32e;return Array['from'](this[_0x47733d(0xe5)]['values']())[_0x47733d(0x161)](_0x5a1d8c=>_0x5a1d8c['getName']()||_0x5a1d8c[_0x47733d(0x14c)]());}[_0x43d32e(0x135)](_0x5aa894){const _0x6da3bf=_0x43d32e;let _0x1de7b5=this[_0x6da3bf(0xe5)][_0x6da3bf(0x160)](_0x5aa894);_0x1de7b5&&((0x0,_0x4dff1c[_0x6da3bf(0x153)])(_0x1de7b5[_0x6da3bf(0xca)]())&&this[_0x6da3bf(0x137)][_0x6da3bf(0x136)](_0x5aa894),this[_0x6da3bf(0xe5)][_0x6da3bf(0x136)](_0x5aa894));}[_0x43d32e(0x175)](){const _0x3bb7f7=_0x43d32e;let _0x5652dc=[];return this['_shapes'][_0x3bb7f7(0xf1)](_0x3b2d09=>{const _0x238265=_0x3bb7f7;_0x5652dc[_0x238265(0xbe)](_0x3b2d09[_0x238265(0x175)]());}),_0x5652dc;}['fromJSON'](_0x17de4a){const _0x263711=_0x43d32e;for(let _0x48e26b of _0x17de4a){let {id:_0x5e26b4,shapeType:_0xb98a78,name:_0x42f80b}=_0x48e26b,_0xc3253c=this[_0x263711(0x186)](_0xb98a78,_0x5e26b4,_0x48e26b[_0x263711(0xb5)],_0x42f80b);_0xc3253c&&_0xc3253c[_0x263711(0x165)]()&&this[_0x263711(0x137)]['add'](_0x5e26b4);}}[_0x43d32e(0x187)](){const _0x125f42=_0x43d32e;this['_disposed']||(this[_0x125f42(0xe5)][_0x125f42(0xf1)](_0x5c189d=>{const _0xafa7c2=_0x125f42;_0x5c189d[_0xafa7c2(0x187)]();}),this['_shapes'][_0x125f42(0x17c)](),this[_0x125f42(0x137)][_0x125f42(0x17c)](),this[_0x125f42(0x155)][_0x125f42(0x17c)](),super['dispose']());}};function _0x13c296(_0x4f8e46,_0x2f028c){return function(_0x2ffe72,_0x3aa221){_0x2f028c(_0x2ffe72,_0x3aa221,_0x4f8e46);};}function _0x2d9122(_0x22974b,_0x28bd9e,_0x3f96a1,_0xe1ddb8){const _0x439e57=_0x43d32e;var _0x54f952=arguments[_0x439e57(0x16e)],_0x1fa1fc=_0x54f952<0x3?_0x28bd9e:_0xe1ddb8===null?_0xe1ddb8=Object['getOwnPropertyDescriptor'](_0x28bd9e,_0x3f96a1):_0xe1ddb8,_0x379ec3;if(typeof Reflect=='object'&&typeof Reflect[_0x439e57(0x115)]==_0x439e57(0x145))_0x1fa1fc=Reflect['decorate'](_0x22974b,_0x28bd9e,_0x3f96a1,_0xe1ddb8);else{for(var _0x36e180=_0x22974b[_0x439e57(0x16e)]-0x1;_0x36e180>=0x0;_0x36e180--)(_0x379ec3=_0x22974b[_0x36e180])&&(_0x1fa1fc=(_0x54f952<0x3?_0x379ec3(_0x1fa1fc):_0x54f952>0x3?_0x379ec3(_0x28bd9e,_0x3f96a1,_0x1fa1fc):_0x379ec3(_0x28bd9e,_0x3f96a1))||_0x1fa1fc);}return _0x54f952>0x3&&_0x1fa1fc&&Object[_0x439e57(0xf6)](_0x28bd9e,_0x3f96a1,_0x1fa1fc),_0x1fa1fc;}let _0x296bdb=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(_0x5a81b0){const _0x33ff0f=_0x43d32e;super(),this['_resourcesManagerService']=_0x5a81b0,_0x3392e6(this,_0x33ff0f(0x166),new Map()),this['_initSnapshot']();}[_0x43d32e(0xb6)](_0x63ebfc,_0x135e77){const _0x6f3fa3=_0x43d32e;let _0x3c03b4=this[_0x6f3fa3(0x166)][_0x6f3fa3(0x160)](_0x63ebfc);_0x3c03b4||(_0x3c03b4=new Map(),this[_0x6f3fa3(0x166)][_0x6f3fa3(0x12a)](_0x63ebfc,_0x3c03b4));let _0x5e38b5=_0x3c03b4[_0x6f3fa3(0x160)](_0x135e77);return _0x5e38b5||(_0x5e38b5=new _0x46a501(),_0x3c03b4[_0x6f3fa3(0x12a)](_0x135e77,_0x5e38b5)),_0x5e38b5;}[_0x43d32e(0x104)](_0x13bb5f,_0x5ece7c,_0x1e00dd,_0x552d3d,_0x4e0dd4,_0x440516){const _0x4f15cb=_0x43d32e;this[_0x4f15cb(0xb6)](_0x13bb5f,_0x5ece7c)[_0x4f15cb(0x186)](_0x1e00dd,_0x552d3d,_0x4e0dd4,_0x440516);}[_0x43d32e(0x135)](_0x33a246,_0x19c7e6,_0x2f685b){const _0x345f45=_0x43d32e;this[_0x345f45(0xb6)](_0x33a246,_0x19c7e6)[_0x345f45(0x135)](_0x2f685b);}['getBasicShapeType'](_0x2fcc4b,_0x2abc21,_0x112818){const _0x3f7528=_0x43d32e;return this[_0x3f7528(0xb6)](_0x2fcc4b,_0x2abc21)[_0x3f7528(0xca)](_0x112818);}['getShapeType'](_0x11cacc,_0x1e28a1,_0x546dd1){const _0x19851f=_0x43d32e;return this[_0x19851f(0xb6)](_0x11cacc,_0x1e28a1)['getShapeType'](_0x546dd1);}[_0x43d32e(0xe2)](_0x2c3fc7,_0x12471d,_0x1ac293){const _0x11bf42=_0x43d32e;return this[_0x11bf42(0xb6)](_0x2c3fc7,_0x12471d)[_0x11bf42(0xe2)](_0x1ac293);}[_0x43d32e(0xed)](_0x38c962,_0x1055c1,_0x3e3c4b){return this['_ensureShapeModelManager'](_0x38c962,_0x1055c1)['getShapeType'](_0x3e3c4b);}[_0x43d32e(0x13e)](_0x817c30,_0x18842c,_0x49bbcc){const _0x8dbaa0=_0x43d32e;let _0x300040=this[_0x8dbaa0(0xb6)](_0x817c30,_0x18842c);if(!_0x300040[_0x8dbaa0(0xca)](_0x49bbcc))return;let _0x4552bd=_0x300040[_0x8dbaa0(0xe5)][_0x8dbaa0(0x160)](_0x49bbcc);if(_0x4552bd)return _0x4552bd[_0x8dbaa0(0x168)]();}[_0x43d32e(0x11a)](_0x41359d,_0x208fc4){const _0x39b9f8=_0x43d32e;return this['_ensureShapeModelManager'](_0x41359d,_0x208fc4)[_0x39b9f8(0x11a)]();}[_0x43d32e(0xe8)](_0x2679e6,_0x11fb97,_0x138bfa){const _0xb9872c=_0x43d32e;return this[_0xb9872c(0xb6)](_0x2679e6,_0x11fb97)[_0xb9872c(0xe5)][_0xb9872c(0x160)](_0x138bfa);}[_0x43d32e(0xd6)](_0x16280a,_0x2db134,_0x5ec33c){const _0xc7d659=_0x43d32e;return this[_0xc7d659(0xb6)](_0x16280a,_0x2db134)[_0xc7d659(0xd6)](_0x5ec33c);}[_0x43d32e(0x150)](_0x21fbb6,_0x39d4e7,_0x32164a){const _0x3fb90a=_0x43d32e;let _0x4f8f75=this[_0x3fb90a(0xb6)](_0x21fbb6,_0x39d4e7)['_shapes'][_0x3fb90a(0x160)](_0x32164a);if(_0x4f8f75)return _0x4f8f75[_0x3fb90a(0xd3)]();}[_0x43d32e(0xfd)](){}[_0x43d32e(0x106)](_0x58510f){const _0x39cd58=_0x43d32e;let _0x412a35={},_0x1265ca=this[_0x39cd58(0x166)][_0x39cd58(0x160)](_0x58510f);return _0x1265ca&&_0x1265ca[_0x39cd58(0xf1)]((_0x1047ca,_0x30547c)=>{const _0x4119bf=_0x39cd58;let _0x465f37=_0x1047ca[_0x4119bf(0x175)]();_0x465f37[_0x4119bf(0x16e)]>0x0&&(_0x412a35[_0x30547c]=_0x465f37);}),JSON[_0x39cd58(0x14b)](_0x412a35);}[_0x43d32e(0xcc)](_0x3a3c28,_0x56151d){const _0x636817=_0x43d32e;Object[_0x636817(0x123)](_0x56151d)[_0x636817(0xf1)](_0x56a05a=>{const _0x1526f5=_0x636817;this['_ensureShapeModelManager'](_0x3a3c28,_0x56a05a)[_0x1526f5(0x182)](_0x56151d[_0x56a05a]);});}['toJSON'](){const _0x238f26=_0x43d32e;let _0x3c3947={};return this['_shapeModelManagerMap'][_0x238f26(0xf1)]((_0x58228e,_0x54d702)=>{_0x3c3947[_0x54d702]={},_0x58228e['forEach']((_0x1338d6,_0x19bc11)=>{_0x3c3947[_0x54d702][_0x19bc11]=_0x1338d6['toJSON']();});}),_0x3c3947;}[_0x43d32e(0x182)](_0x18c26a){const _0x413989=_0x43d32e;Object['keys'](_0x18c26a)[_0x413989(0xf1)](_0x53753b=>{const _0x43eae6=_0x413989;let _0x5cafe6=_0x18c26a[_0x53753b];Object[_0x43eae6(0x123)](_0x5cafe6)[_0x43eae6(0xf1)](_0x2dffc4=>{const _0x39a63c=_0x43eae6;this[_0x39a63c(0xb6)](_0x53753b,_0x2dffc4)[_0x39a63c(0x182)](_0x5cafe6[_0x2dffc4]);});});}['_initSnapshot'](){const _0x5a1bdc=_0x43d32e;this[_0x5a1bdc(0x11e)][_0x5a1bdc(0x180)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x2caac2[_0x5a1bdc(0x12c)][_0x5a1bdc(0x17f)]],'toJson':_0x96364f=>this[_0x5a1bdc(0x106)](_0x96364f),'parseJson':_0xdfad8c=>JSON[_0x5a1bdc(0xc8)](_0xdfad8c),'onLoad':(_0x1fa7c5,_0x2b190b)=>{const _0x1990aa=_0x5a1bdc;this[_0x1990aa(0xcc)](_0x1fa7c5,_0x2b190b);},'onUnLoad':_0x3c07a7=>{const _0x1e45f8=_0x5a1bdc;let _0x58a93e=this['_shapeModelManagerMap'][_0x1e45f8(0x160)](_0x3c07a7);_0x58a93e&&(_0x58a93e[_0x1e45f8(0xf1)](_0x21f65a=>{const _0xba95c8=_0x1e45f8;_0x21f65a[_0xba95c8(0x187)]();}),this[_0x1e45f8(0x166)][_0x1e45f8(0x136)](_0x3c07a7));}});}[_0x43d32e(0x187)](){this['_shapeModelManagerMap']['forEach'](_0x3b30c2=>{const _0x4e7785=_0x53b2;_0x3b30c2[_0x4e7785(0xf1)](_0x3ffb6b=>{const _0x58d27e=_0x4e7785;_0x3ffb6b[_0x58d27e(0x187)]();});});}};_0x296bdb=_0x2d9122([_0x13c296(0x0,_0x2caac2[_0x43d32e(0xc3)])],_0x296bdb);let _0x5d1e10={'id':_0x43d32e(0x10f),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x2fb73c,_0x347ce9)=>{const _0x256479=_0x43d32e;let {unitId:_0x417580,subUnitId:_0x41a716,shapeType:_0x1c54ea,shapeId:_0x292e9c,shapeName:_0x11487a,shapeData:_0x812b1b}=_0x347ce9;return _0x2fb73c['get'](_0x296bdb)[_0x256479(0x104)](_0x417580,_0x41a716,_0x1c54ea,_0x292e9c,_0x812b1b,_0x11487a),!0x0;}},_0x3bb77b={'id':_0x43d32e(0x15c),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x232043,_0x242f96)=>{const _0x4f7c14=_0x43d32e;let {unitId:_0x502dcc,subUnitId:_0x3a9416,shapeId:_0x520c15}=_0x242f96;return _0x232043[_0x4f7c14(0x160)](_0x296bdb)[_0x4f7c14(0x135)](_0x502dcc,_0x3a9416,_0x520c15),!0x0;}},_0x315436={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x11d),'handler':(_0x410644,_0x871d67)=>{const _0x939c16=_0x43d32e;var _0xf43670,_0x29d167,_0x6bec23;let _0xf9d01c=(0x0,_0x3fa06b[_0x939c16(0xbc)])(_0x410644['get'](_0x2caac2[_0x939c16(0xd2)]),_0x871d67);if(!_0xf9d01c)return!0x1;let _0x490943=_0x410644[_0x939c16(0x160)](_0x3fa06b[_0x939c16(0x17b)]),{unitId:_0x560401,subUnitId:_0x5babfb}=_0xf9d01c,_0x27e6ff=_0x490943[_0x939c16(0x14d)](_0x560401,_0x5babfb);if(!_0x27e6ff)return!0x1;let _0x4cab8c=_0x410644[_0x939c16(0x160)](_0x2caac2[_0x939c16(0xc9)]),_0x4da959=_0x410644[_0x939c16(0x160)](_0x2caac2[_0x939c16(0x122)]),_0x5303dd=_0x410644['get'](_0x3fa06b['SheetInterceptorService']),_0x234909=_0x410644[_0x939c16(0x160)](_0x4b87f8[_0x939c16(0x17a)]),_0x2b00f9=_0x410644[_0x939c16(0x160)](_0x296bdb),{shapeType:_0x40da1c,shapeData:_0x53d50a}=_0x871d67,_0x3bea9d=_0x871d67[_0x939c16(0xf8)]||(0x0,_0x2caac2[_0x939c16(0xc4)])(),_0x581edc={'unitId':_0x560401,'subUnitId':_0x5babfb,'shapeId':_0x3bea9d,'shapeName':(_0xf43670=_0x871d67[_0x939c16(0xe6)])==null?(0x0,_0x4dff1c[_0x939c16(0x118)])(_0x40da1c,_0x2b00f9[_0x939c16(0x11a)](_0x560401,_0x5babfb)):_0xf43670,'shapeType':_0x40da1c,'shapeData':_0x53d50a},_0x1fee8b=_0x871d67[_0x939c16(0x12b)]||0xc8,_0x173456=_0x871d67['height']||0xc8,_0x9ed1a3=0x0,_0x5ee9f2=0x0,_0x19ad49={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3f5749={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x871d67[_0x939c16(0x140)]){let {x:_0x482365,y:_0x5619b4}=_0x871d67[_0x939c16(0x140)];_0x9ed1a3=_0x482365,_0x5ee9f2=_0x5619b4,_0x19ad49=_0x27e6ff[_0x939c16(0xfa)](_0x482365,_0x5619b4),_0x3f5749=_0x27e6ff[_0x939c16(0xfa)](_0x482365+_0x1fee8b,_0x5619b4+_0x173456);}else{if(_0x871d67[_0x939c16(0x164)]){let {startRow:_0x45cbde,startColumn:_0x468b9e}=_0x871d67['range'];_0x19ad49={'row':_0x45cbde,'rowOffset':0xa,'column':_0x468b9e,'columnOffset':0xa};let _0x14dc15=_0x27e6ff[_0x939c16(0xc6)](_0x45cbde,_0x468b9e);_0x9ed1a3=_0x14dc15['startX']+0xa,_0x5ee9f2=_0x14dc15[_0x939c16(0x15b)]+0xa,_0x3f5749=_0x27e6ff[_0x939c16(0xfa)](_0x9ed1a3+_0x1fee8b,_0x5ee9f2+_0x173456);}}let _0x4b3887={'from':_0x19ad49,'to':_0x3f5749},_0x46ecf6={'unitId':_0x560401,'subUnitId':_0x5babfb,'drawingId':_0x3bea9d,'drawingType':_0x2caac2[_0x939c16(0x134)][_0x939c16(0xec)],'sheetTransform':_0x4b3887,'transform':{'left':_0x9ed1a3,'top':_0x5ee9f2,'width':_0x1fee8b,'height':_0x173456},'data':{'shapeType':_0x40da1c,'shapeData':_0x53d50a},'axisAlignSheetTransform':_0x4b3887,'allowTransform':!0x0};(0x0,_0x4dff1c[_0x939c16(0x153)])(_0x40da1c)&&(_0x46ecf6['data'][_0x939c16(0x169)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0x109)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0x151)]=!0x1,_0x46ecf6[_0x939c16(0x16b)][_0x939c16(0xbd)]=!0x1,_0x46ecf6['transform'][_0x939c16(0x109)]=!0x1,_0x46ecf6[_0x939c16(0x14f)]['resizeEnabled']=!0x1,_0x46ecf6[_0x939c16(0x14f)][_0x939c16(0xbd)]=!0x1);let {undo:_0x5a2719,redo:_0x4bae4a,objects:_0x533538}=_0x234909[_0x939c16(0x114)]([_0x46ecf6]),_0x4d702f=_0x5303dd['onCommandExecute']({'id':_0x4b87f8[_0x939c16(0x184)]['id'],'params':{'unitId':_0x560401,'drawings':[_0x46ecf6]}}),_0x383b3c=[...(_0x29d167=_0x4d702f[_0x939c16(0x181)])==null?[]:_0x29d167,{'id':_0x4b87f8[_0x939c16(0x159)]['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'op':_0x4bae4a,'objects':_0x533538,'type':_0x4b87f8[_0x939c16(0x167)][_0x939c16(0xfb)]}},{'id':_0x4b87f8[_0x939c16(0x14a)]['id'],'params':[_0x560401]},..._0x4d702f[_0x939c16(0x112)],{'id':_0x5d1e10['id'],'params':_0x581edc}],_0x2e8622=[{'id':_0x3bb77b['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'shapeId':_0x3bea9d}},...(_0x6bec23=_0x4d702f[_0x939c16(0x146)])==null?[]:_0x6bec23,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x560401,'subUnitId':_0x5babfb,'op':_0x5a2719,'objects':_0x533538,'type':_0x4b87f8[_0x939c16(0x167)]['REMOVE']}},{'id':_0x4b87f8[_0x939c16(0x14a)]['id'],'params':[_0x560401]},..._0x4d702f[_0x939c16(0x13c)]];return(0x0,_0x2caac2['sequenceExecute'])(_0x383b3c,_0x4cab8c)[_0x939c16(0x143)]?(_0x4da959['pushUndoRedo']({'unitID':_0x560401,'undoMutations':_0x2e8622,'redoMutations':_0x383b3c}),!0x0):!0x1;}},_0x4e0b3c={'id':_0x43d32e(0x158),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x37a9b4,_0x4732ba)=>{const _0x37a8da=_0x43d32e;let {unitId:_0x27098b,subUnitId:_0x49b520,shapeType:_0x3f1cf3,shapeId:_0x39b864,shapeData:_0x433aae}=_0x4732ba,_0xc8f204=_0x37a9b4[_0x37a8da(0x160)](_0x296bdb)[_0x37a8da(0xe8)](_0x27098b,_0x49b520,_0x39b864);return _0xc8f204&&(_0x3f1cf3!==void 0x0&&_0xc8f204[_0x37a8da(0xfd)](_0x3f1cf3),_0x433aae&&(_0xc8f204==null||_0xc8f204['setShapeData'](_0x433aae,!0x0))),!0x0;}},_0x396023={'type':_0x2caac2[_0x43d32e(0x152)]['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x1af84e,_0x20396c)=>{const _0x44bce8=_0x43d32e;var _0x3bf396,_0x150c2e;let _0x236c2c=(0x0,_0x3fa06b[_0x44bce8(0xbc)])(_0x1af84e['get'](_0x2caac2[_0x44bce8(0xd2)]),_0x20396c);if(!_0x236c2c)return!0x1;let _0x13b97a=_0x1af84e[_0x44bce8(0x160)](_0x3fa06b['SheetSkeletonService']),{unitId:_0x1d195f,subUnitId:_0x384e87}=_0x236c2c,_0x5cf3cc=_0x13b97a[_0x44bce8(0x14d)](_0x1d195f,_0x384e87);if(!_0x5cf3cc)return!0x1;let _0x435b80=_0x1af84e[_0x44bce8(0x160)](_0x296bdb),{shapeId:_0x30ba2b,shapeType:_0x2b7e17,shapeData:_0x4195be,position:_0x2289fe,width:_0x1feb45,height:_0x4819c8}=_0x20396c,_0x1df446=_0x435b80[_0x44bce8(0xe8)](_0x1d195f,_0x384e87,_0x30ba2b);if(!_0x1df446)return!0x1;let _0x1b8369=_0x1af84e['get'](_0x2caac2[_0x44bce8(0xc9)]),_0x34d49a=_0x1af84e[_0x44bce8(0x160)](_0x2caac2[_0x44bce8(0x122)]),_0x382170=_0x1af84e[_0x44bce8(0x160)](_0x3fa06b[_0x44bce8(0x16d)]),_0xea0de4=_0x1af84e['get'](_0x4b87f8['ISheetDrawingService']),_0x329937={'unitId':_0x1d195f,'subUnitId':_0x384e87,'shapeId':_0x30ba2b,'shapeType':_0x2b7e17,'shapeData':_0x4195be},_0x4ee8f4=_0x1df446['getShapeType'](),_0x40ae14=_0x1df446[_0x44bce8(0x168)](),{x:_0x2cee9f,y:_0x576193}=_0x2289fe,_0x2b75d1={'from':_0x5cf3cc[_0x44bce8(0xfa)](_0x2cee9f,_0x576193),'to':_0x5cf3cc[_0x44bce8(0xfa)](_0x2cee9f+_0x1feb45,_0x576193+_0x4819c8)},_0x489281={'unitId':_0x1d195f,'subUnitId':_0x384e87,'drawingId':_0x30ba2b,'drawingType':_0x2caac2['DrawingTypeEnum'][_0x44bce8(0xec)],'sheetTransform':_0x2b75d1,'transform':{'left':_0x2cee9f,'top':_0x576193,'width':_0x1feb45,'height':_0x4819c8},'data':{'shapeType':_0x2b7e17,'shapeData':_0x4195be},'axisAlignSheetTransform':_0x2b75d1,'allowTransform':!0x0};(0x0,_0x4dff1c[_0x44bce8(0x153)])(_0x2b7e17)&&(_0x489281['data'][_0x44bce8(0x169)]=!0x1,_0x489281[_0x44bce8(0x16b)]['rotateEnabled']=!0x1,_0x489281[_0x44bce8(0x16b)]['resizeEnabled']=!0x1,_0x489281[_0x44bce8(0x16b)][_0x44bce8(0xbd)]=!0x1,_0x489281['transform']['rotateEnabled']=!0x1,_0x489281[_0x44bce8(0x14f)][_0x44bce8(0x151)]=!0x1,_0x489281[_0x44bce8(0x14f)][_0x44bce8(0xbd)]=!0x1);let {undo:_0x3145b7,redo:_0x280f30,objects:_0x1ad915}=_0xea0de4['getBatchUpdateOp']([_0x489281]),_0x49828a=_0x382170[_0x44bce8(0x172)]({'id':_0x4b87f8[_0x44bce8(0xd4)]['id'],'params':{'unitId':_0x1d195f,'drawings':[_0x489281]}}),_0x3a90c4=[...(_0x3bf396=_0x49828a[_0x44bce8(0x181)])==null?[]:_0x3bf396,{'id':_0x4b87f8[_0x44bce8(0x159)]['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'op':_0x280f30,'objects':_0x1ad915,'type':_0x4b87f8[_0x44bce8(0x167)]['UPDATE']}},{'id':_0x4b87f8[_0x44bce8(0x14a)]['id'],'params':[_0x1d195f]},..._0x49828a[_0x44bce8(0x112)],{'id':_0x4e0b3c['id'],'params':_0x329937}],_0x1f5d23=[...(_0x150c2e=_0x49828a[_0x44bce8(0x146)])==null?[]:_0x150c2e,{'id':_0x4b87f8[_0x44bce8(0x159)]['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'op':_0x3145b7,'objects':_0x1ad915,'type':_0x4b87f8[_0x44bce8(0x167)][_0x44bce8(0xbb)]}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1d195f]},..._0x49828a[_0x44bce8(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x1d195f,'subUnitId':_0x384e87,'shapeType':_0x4ee8f4,'shapeId':_0x30ba2b,'shapeData':_0x40ae14}}];return(0x0,_0x2caac2[_0x44bce8(0xe0)])(_0x3a90c4,_0x1b8369)['result']?(_0x34d49a[_0x44bce8(0x13f)]({'unitID':_0x1d195f,'undoMutations':_0x1f5d23,'redoMutations':_0x3a90c4}),!0x0):!0x1;}},_0x5a3889={'type':_0x2caac2['CommandType'][_0x43d32e(0x131)],'id':_0x43d32e(0xb3),'handler':(_0x58fa97,_0x9dd952)=>{const _0x6afcda=_0x43d32e;var _0x599122,_0x3f1463;let _0x5bccd3=(0x0,_0x3fa06b[_0x6afcda(0xbc)])(_0x58fa97['get'](_0x2caac2['IUniverInstanceService']),_0x9dd952);if(!_0x5bccd3)return!0x1;let _0x565607=_0x58fa97['get'](_0x3fa06b[_0x6afcda(0x17b)]),{unitId:_0x4f02e5,subUnitId:_0x501f15}=_0x5bccd3,_0x8dcb40=_0x565607[_0x6afcda(0xe4)](_0x4f02e5,_0x501f15);if(!_0x8dcb40)return!0x1;let _0x4d156e=_0x58fa97[_0x6afcda(0x160)](_0x4b87f8['ISheetDrawingService']),{shapeId:_0x4748f1,flipH:_0x392e0d,flipV:_0x4e059f}=_0x9dd952,_0x55cd43=_0x4d156e[_0x6afcda(0xd9)]({'unitId':_0x4f02e5,'subUnitId':_0x501f15,'drawingId':_0x4748f1});if(!_0x55cd43)return!0x1;let _0x1611d6=_0x58fa97['get'](_0x296bdb)[_0x6afcda(0xe8)](_0x4f02e5,_0x501f15,_0x4748f1);if(!_0x1611d6)return!0x1;let _0x358687=_0x58fa97['get'](_0x2caac2[_0x6afcda(0xc9)]),_0x449299=_0x58fa97[_0x6afcda(0x160)](_0x2caac2['IUndoRedoService']),_0x5f49f4=_0x58fa97[_0x6afcda(0x160)](_0x3fa06b[_0x6afcda(0x16d)]),_0x5cad9f={..._0x55cd43[_0x6afcda(0x14f)]};_0x392e0d!==void 0x0&&(_0x5cad9f['flipX']=!_0x5cad9f[_0x6afcda(0xcf)]),_0x4e059f!==void 0x0&&(_0x5cad9f[_0x6afcda(0x130)]=!_0x5cad9f[_0x6afcda(0x130)]);let _0x954ab4=(0x0,_0x4b87f8[_0x6afcda(0xd1)])(_0x5cad9f,_0x8dcb40),_0x33fbb8=(0x0,_0x4b87f8[_0x6afcda(0xd7)])(_0x5cad9f,_0x8dcb40),_0x19a4f6=_0x1611d6[_0x6afcda(0xca)](),_0x3b78a5=_0x1611d6[_0x6afcda(0x168)](),_0x4ef99f={'unitId':_0x4f02e5,'subUnitId':_0x501f15,'drawingId':_0x4748f1,'drawingType':_0x2caac2['DrawingTypeEnum'][_0x6afcda(0xec)],'sheetTransform':_0x954ab4,'transform':_0x5cad9f,'data':{'shapeType':_0x19a4f6,'shapeData':_0x3b78a5},'axisAlignSheetTransform':_0x33fbb8,'allowTransform':!0x0},{undo:_0x13b0f7,redo:_0x1298dc,objects:_0x542590}=_0x4d156e[_0x6afcda(0xcd)]([_0x4ef99f]),_0x22c1f3=_0x5f49f4['onCommandExecute']({'id':_0x4b87f8[_0x6afcda(0xd4)]['id'],'params':{'unitId':_0x4f02e5,'drawings':[_0x4ef99f]}}),_0x2efc79=[...(_0x599122=_0x22c1f3[_0x6afcda(0x181)])==null?[]:_0x599122,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'op':_0x1298dc,'objects':_0x542590,'type':_0x4b87f8['DrawingApplyType'][_0x6afcda(0xbb)]}},{'id':_0x4b87f8[_0x6afcda(0x14a)]['id'],'params':[_0x4f02e5]},..._0x22c1f3['redos']],_0x160277=[...(_0x3f1463=_0x22c1f3[_0x6afcda(0x146)])==null?[]:_0x3f1463,{'id':_0x4b87f8['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'op':_0x13b0f7,'objects':_0x542590,'type':_0x4b87f8[_0x6afcda(0x167)][_0x6afcda(0xbb)]}},{'id':_0x4b87f8[_0x6afcda(0x14a)]['id'],'params':[_0x4f02e5]},..._0x22c1f3[_0x6afcda(0x13c)]];if((0x0,_0x4dff1c['isConnectorShape'])(_0x19a4f6)){let _0x476ff0=_0x1611d6[_0x6afcda(0xd3)]();if(_0x476ff0){let _0x46f2b3={..._0x476ff0};_0x46f2b3[_0x6afcda(0x163)]=void 0x0,_0x46f2b3['to']=void 0x0,_0x2efc79[_0x6afcda(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'shapeId':_0x4748f1,'shapeType':_0x19a4f6,'shapeData':{'relation':_0x46f2b3}}}),_0x160277[_0x6afcda(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x4f02e5,'subUnitId':_0x501f15,'shapeId':_0x4748f1,'shapeType':_0x19a4f6,'shapeData':{'relation':_0x476ff0}}});}}return(0x0,_0x2caac2[_0x6afcda(0xe0)])(_0x2efc79,_0x358687)[_0x6afcda(0x143)]?(_0x449299['pushUndoRedo']({'unitID':_0x4f02e5,'undoMutations':_0x160277,'redoMutations':_0x2efc79}),!0x0):!0x1;}},_0x1cd7c7={'type':_0x2caac2['CommandType'][_0x43d32e(0x131)],'id':_0x43d32e(0xba),'handler':(_0x319038,_0x5daf54)=>{const _0x310db3=_0x43d32e;var _0x1e99ec,_0x30b531;let _0x46cb3a=(0x0,_0x3fa06b[_0x310db3(0xbc)])(_0x319038[_0x310db3(0x160)](_0x2caac2[_0x310db3(0xd2)]),_0x5daf54);if(!_0x46cb3a)return!0x1;let _0x5278ae=_0x319038['get'](_0x3fa06b[_0x310db3(0x17b)]),{unitId:_0x5e0196,subUnitId:_0x46a903}=_0x46cb3a,_0x4898a1=_0x5278ae['getSkeleton'](_0x5e0196,_0x46a903);if(!_0x4898a1)return!0x1;let _0x4ef71e=_0x319038[_0x310db3(0x160)](_0x4b87f8['ISheetDrawingService']),{shapeId:_0x3f12a8,rotate:_0x3c574c}=_0x5daf54,_0x3bee6d=_0x4ef71e[_0x310db3(0xd9)]({'unitId':_0x5e0196,'subUnitId':_0x46a903,'drawingId':_0x3f12a8});if(!_0x3bee6d)return!0x1;let _0x25191a=_0x319038['get'](_0x296bdb)[_0x310db3(0xe8)](_0x5e0196,_0x46a903,_0x3f12a8);if(!_0x25191a)return!0x1;let _0x2efc8f=_0x319038[_0x310db3(0x160)](_0x2caac2['ICommandService']),_0x2659b1=_0x319038[_0x310db3(0x160)](_0x2caac2['IUndoRedoService']),_0x1bc587=_0x319038[_0x310db3(0x160)](_0x3fa06b[_0x310db3(0x16d)]),_0x1939dc={..._0x3bee6d[_0x310db3(0x14f)]};_0x3c574c!==void 0x0&&(_0x1939dc[_0x310db3(0x110)]=(_0x1939dc[_0x310db3(0x110)]||0x0)+_0x3c574c);let _0x399db1=(0x0,_0x4b87f8['transformToDrawingPosition'])(_0x1939dc,_0x4898a1),_0x8cccc9=(0x0,_0x4b87f8[_0x310db3(0xd7)])(_0x1939dc,_0x4898a1),_0x32bdd7=_0x25191a[_0x310db3(0xca)](),_0xf66cb3=_0x25191a[_0x310db3(0x168)](),_0x3acc70={'unitId':_0x5e0196,'subUnitId':_0x46a903,'drawingId':_0x3f12a8,'drawingType':_0x2caac2[_0x310db3(0x134)][_0x310db3(0xec)],'sheetTransform':_0x399db1,'transform':_0x1939dc,'data':{'shapeType':_0x32bdd7,'shapeData':_0xf66cb3},'axisAlignSheetTransform':_0x8cccc9,'allowTransform':!0x0},{undo:_0x1f061a,redo:_0x1c077e,objects:_0x46e5b9}=_0x4ef71e['getBatchUpdateOp']([_0x3acc70]),_0x357f57=_0x1bc587[_0x310db3(0x172)]({'id':_0x4b87f8[_0x310db3(0xd4)]['id'],'params':{'unitId':_0x5e0196,'drawings':[_0x3acc70]}}),_0x1335ba=[...(_0x1e99ec=_0x357f57[_0x310db3(0x181)])==null?[]:_0x1e99ec,{'id':_0x4b87f8[_0x310db3(0x159)]['id'],'params':{'unitId':_0x5e0196,'subUnitId':_0x46a903,'op':_0x1c077e,'objects':_0x46e5b9,'type':_0x4b87f8[_0x310db3(0x167)]['UPDATE']}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5e0196]},..._0x357f57['redos']],_0x4eccdf=[...(_0x30b531=_0x357f57['preUndos'])==null?[]:_0x30b531,{'id':_0x4b87f8[_0x310db3(0x159)]['id'],'params':{'unitId':_0x5e0196,'subUnitId':_0x46a903,'op':_0x1f061a,'objects':_0x46e5b9,'type':_0x4b87f8[_0x310db3(0x167)][_0x310db3(0xbb)]}},{'id':_0x4b87f8[_0x310db3(0x14a)]['id'],'params':[_0x5e0196]},..._0x357f57[_0x310db3(0x13c)]];return(0x0,_0x2caac2['sequenceExecute'])(_0x1335ba,_0x2efc8f)[_0x310db3(0x143)]?(_0x2659b1[_0x310db3(0x13f)]({'unitID':_0x5e0196,'undoMutations':_0x4eccdf,'redoMutations':_0x1335ba}),!0x0):!0x1;}},_0x27b1b6={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x183),'handler':(_0x2ba117,_0x241b42)=>{const _0x307cf0=_0x43d32e;var _0x1876da;let _0x307e8f=(0x0,_0x3fa06b['getSheetCommandTarget'])(_0x2ba117[_0x307cf0(0x160)](_0x2caac2[_0x307cf0(0xd2)]),_0x241b42);if(!_0x307e8f)return!0x1;let {unitId:_0x3f9f64,subUnitId:_0x282036}=_0x307e8f,{shapeId:_0x39dc0f}=_0x241b42,_0x1246de=_0x2ba117[_0x307cf0(0x160)](_0x296bdb)[_0x307cf0(0xe8)](_0x3f9f64,_0x282036,_0x39dc0f);if(!_0x1246de)return!0x1;let _0x2c9ce8=_0x1246de[_0x307cf0(0x142)](),_0x189da7=(_0x1876da=_0x2c9ce8==null?void 0x0:_0x2c9ce8[_0x307cf0(0xe9)])==null?!0x0:_0x1876da,_0x2e6e08=!_0x189da7,_0x165e3c=_0x2ba117[_0x307cf0(0x160)](_0x2caac2['ICommandService']),_0x401331=_0x2ba117['get'](_0x2caac2['IUndoRedoService']),_0x57b05e={'unitId':_0x3f9f64,'subUnitId':_0x282036,'shapeId':_0x39dc0f,'shapeData':{'shapeText':{'isHorizontal':_0x2e6e08}}},_0x49d063={'unitId':_0x3f9f64,'subUnitId':_0x282036,'shapeId':_0x39dc0f,'shapeData':{'shapeText':{'isHorizontal':_0x189da7}}},_0x4828a5=[{'id':_0x4e0b3c['id'],'params':_0x57b05e}],_0x4d8b54=[{'id':_0x4e0b3c['id'],'params':_0x49d063}];return(0x0,_0x2caac2[_0x307cf0(0xe0)])(_0x4828a5,_0x165e3c)[_0x307cf0(0x143)]?(_0x401331[_0x307cf0(0x13f)]({'unitID':_0x3f9f64,'undoMutations':_0x4d8b54,'redoMutations':_0x4828a5}),!0x0):!0x1;}},_0x492f51={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0xfe),'handler':(_0x859d55,_0x3d30db)=>{const _0x4a932a=_0x43d32e;var _0x4c81a4,_0xac4b85,_0x17e7bd,_0xac2825;let _0x2535e6=(0x0,_0x3fa06b[_0x4a932a(0xbc)])(_0x859d55[_0x4a932a(0x160)](_0x2caac2[_0x4a932a(0xd2)]),_0x3d30db);if(!_0x2535e6)return!0x1;let _0x128b5c=_0x859d55['get'](_0x3fa06b[_0x4a932a(0x17b)]),{unitId:_0x52b959,subUnitId:_0x311341}=_0x2535e6,_0x4397ca=_0x128b5c[_0x4a932a(0xe4)](_0x52b959,_0x311341);if(!_0x4397ca)return!0x1;let _0x2ed403=_0x859d55[_0x4a932a(0x160)](_0x4b87f8[_0x4a932a(0x17a)]),{connectorShapeId:_0x52d756,width:_0x5b7b0c,height:_0x35ae58,left:_0x22e673,top:_0x4c45dc,flipX:_0x10ee40,flipY:_0x57cdad,rotation:_0x234e65,oldAdjustValues:_0x37450f,newAdjustValues:_0x39c8e2,oldLineType:_0x9e2a25,newLineType:_0xca8104,oldRelation:_0x555bb0,newRelation:_0x11a821}=_0x3d30db,_0x3105ed=_0x2ed403['getDrawingByParam']({'unitId':_0x52b959,'subUnitId':_0x311341,'drawingId':_0x52d756});if(!_0x3105ed)return!0x1;let _0x243230=_0x859d55[_0x4a932a(0x160)](_0x296bdb)[_0x4a932a(0xe8)](_0x52b959,_0x311341,_0x52d756);if(!_0x243230)return!0x1;let _0x27e297=_0x859d55[_0x4a932a(0x160)](_0x2caac2[_0x4a932a(0xc9)]),_0x3cd520=_0x859d55[_0x4a932a(0x160)](_0x2caac2['IUndoRedoService']),_0x36286e=_0x859d55['get'](_0x3fa06b['SheetInterceptorService']),_0x2f5fda={..._0x3105ed[_0x4a932a(0x14f)],'width':_0x5b7b0c,'height':_0x35ae58,'left':_0x22e673,'top':_0x4c45dc,'flipX':_0x10ee40,'flipY':_0x57cdad,'angle':(_0x4c81a4=_0x234e65==null?(_0xac4b85=_0x3105ed[_0x4a932a(0x14f)])==null?void 0x0:_0xac4b85[_0x4a932a(0x110)]:_0x234e65)==null?0x0:_0x4c81a4},_0x383467=(0x0,_0x4b87f8[_0x4a932a(0xd1)])(_0x2f5fda,_0x4397ca),_0x3fca36=(0x0,_0x4b87f8['transformToAxisAlignPosition'])(_0x2f5fda,_0x4397ca),_0x1130c5=_0x243230['getShapeType'](),_0x4d46c6=_0x243230[_0x4a932a(0x168)](),_0x31770f={'unitId':_0x52b959,'subUnitId':_0x311341,'drawingId':_0x52d756,'drawingType':_0x2caac2[_0x4a932a(0x134)][_0x4a932a(0xec)],'sheetTransform':_0x383467,'transform':_0x2f5fda,'data':{'shapeType':_0xca8104||_0x9e2a25||_0x1130c5,'shapeData':{..._0x4d46c6,'adjustValues':_0x39c8e2||_0x37450f||(_0x4d46c6==null?void 0x0:_0x4d46c6['adjustValues']),'relation':_0x11a821||_0x555bb0||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0x17d)])}},'axisAlignSheetTransform':_0x3fca36,'allowTransform':!0x0},{undo:_0x4cde3c,redo:_0x44a98e,objects:_0x3c46fb}=_0x2ed403[_0x4a932a(0xcd)]([_0x31770f]),_0x4ca421=_0x36286e[_0x4a932a(0x172)]({'id':_0x4b87f8[_0x4a932a(0xd4)]['id'],'params':{'unitId':_0x52b959,'drawings':[_0x31770f]}}),_0x41378d=[...(_0x17e7bd=_0x4ca421[_0x4a932a(0x181)])==null?[]:_0x17e7bd,{'id':_0x4b87f8[_0x4a932a(0x159)]['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'op':_0x44a98e,'objects':_0x3c46fb,'type':_0x4b87f8[_0x4a932a(0x167)][_0x4a932a(0xbb)]}},{'id':_0x4b87f8[_0x4a932a(0x14a)]['id'],'params':[_0x52b959]},..._0x4ca421['redos'],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'shapeId':_0x52d756,'shapeType':_0xca8104,'shapeData':{'adjustValues':_0x39c8e2,'relation':_0x11a821}}}],_0x2a2197=[...(_0xac2825=_0x4ca421[_0x4a932a(0x146)])==null?[]:_0xac2825,{'id':_0x4b87f8[_0x4a932a(0x159)]['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'op':_0x4cde3c,'objects':_0x3c46fb,'type':_0x4b87f8[_0x4a932a(0x167)]['UPDATE']}},{'id':_0x4b87f8['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x52b959]},..._0x4ca421[_0x4a932a(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x52b959,'subUnitId':_0x311341,'shapeId':_0x52d756,'shapeType':_0x1130c5,'shapeData':{..._0x4d46c6,'adjustValues':_0x37450f||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0xf0)]),'relation':_0x555bb0||(_0x4d46c6==null?void 0x0:_0x4d46c6[_0x4a932a(0x17d)])}}}];return(0x0,_0x2caac2[_0x4a932a(0xe0)])(_0x41378d,_0x27e297)[_0x4a932a(0x143)]?(_0x3cd520['pushUndoRedo']({'unitID':_0x52b959,'undoMutations':_0x2a2197,'redoMutations':_0x41378d}),!0x0):!0x1;}},_0x3ac1a9={'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x131)],'id':_0x43d32e(0x10c),'handler':(_0x3f5ddd,_0x38d962)=>{const _0x1b7cfd=_0x43d32e;var _0x3fc083,_0x325660;let _0x363500=(0x0,_0x3fa06b['getSheetCommandTarget'])(_0x3f5ddd[_0x1b7cfd(0x160)](_0x2caac2[_0x1b7cfd(0xd2)]),_0x38d962);if(!_0x363500)return!0x1;let _0x28cc7b=_0x3f5ddd[_0x1b7cfd(0x160)](_0x3fa06b[_0x1b7cfd(0x17b)]),{unitId:_0x5820e3,subUnitId:_0x3627c1}=_0x363500,_0x6df13=_0x28cc7b[_0x1b7cfd(0xe4)](_0x5820e3,_0x3627c1);if(!_0x6df13)return!0x1;let _0x2b8e66=_0x3f5ddd[_0x1b7cfd(0x160)](_0x4b87f8[_0x1b7cfd(0x17a)]),{shapeId:_0x6ec8d0,width:_0x160abd,height:_0xd6e9d8,left:_0xc66edd,top:_0x4ad524,flipX:_0xff417a,flipY:_0x251326,angle:_0x2becaf,oldAdjustValues:_0x26f20b,newAdjustValues:_0x19ca89,oldLineType:_0x3072d1,newLineType:_0x5d974a}=_0x38d962,_0x59d7f6=_0x2b8e66[_0x1b7cfd(0xd9)]({'unitId':_0x5820e3,'subUnitId':_0x3627c1,'drawingId':_0x6ec8d0});if(!_0x59d7f6)return!0x1;let _0x5cdbe6=_0x3f5ddd['get'](_0x296bdb)['getShapeModel'](_0x5820e3,_0x3627c1,_0x6ec8d0);if(!_0x5cdbe6)return!0x1;let _0x3722e7=_0x3f5ddd[_0x1b7cfd(0x160)](_0x2caac2[_0x1b7cfd(0xc9)]),_0x10cc4a=_0x3f5ddd['get'](_0x2caac2[_0x1b7cfd(0x122)]),_0x10c031=_0x3f5ddd[_0x1b7cfd(0x160)](_0x3fa06b['SheetInterceptorService']),_0x14ced0={..._0x59d7f6[_0x1b7cfd(0x14f)],'width':_0x160abd,'height':_0xd6e9d8,'left':_0xc66edd,'top':_0x4ad524,'flipX':_0xff417a,'flipY':_0x251326,'angle':_0x2becaf},_0x2f085f=(0x0,_0x4b87f8[_0x1b7cfd(0xd1)])(_0x14ced0,_0x6df13),_0x13f276=(0x0,_0x4b87f8[_0x1b7cfd(0xd7)])(_0x14ced0,_0x6df13),_0x457e37=_0x5cdbe6[_0x1b7cfd(0xca)](),_0x3b75b9=_0x5cdbe6[_0x1b7cfd(0x168)](),_0x4244af={'unitId':_0x5820e3,'subUnitId':_0x3627c1,'drawingId':_0x6ec8d0,'drawingType':_0x2caac2[_0x1b7cfd(0x134)][_0x1b7cfd(0xec)],'sheetTransform':_0x2f085f,'transform':_0x14ced0,'data':{'shapeType':_0x5d974a||_0x3072d1||_0x457e37,'shapeData':{..._0x3b75b9,'adjustValues':_0x19ca89||_0x26f20b||(_0x3b75b9==null?void 0x0:_0x3b75b9['adjustValues'])}},'axisAlignSheetTransform':_0x13f276,'allowTransform':!0x0},{undo:_0xe7a6d7,redo:_0x560284,objects:_0x491e61}=_0x2b8e66[_0x1b7cfd(0xcd)]([_0x4244af]),_0x4a45ae=_0x10c031['onCommandExecute']({'id':_0x4b87f8[_0x1b7cfd(0xd4)]['id'],'params':{'unitId':_0x5820e3,'drawings':[_0x4244af]}}),_0x40c9e8=[...(_0x3fc083=_0x4a45ae['preRedos'])==null?[]:_0x3fc083,{'id':_0x4b87f8[_0x1b7cfd(0x159)]['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'op':_0x560284,'objects':_0x491e61,'type':_0x4b87f8[_0x1b7cfd(0x167)][_0x1b7cfd(0xbb)]}},{'id':_0x4b87f8[_0x1b7cfd(0x14a)]['id'],'params':[_0x5820e3]},..._0x4a45ae[_0x1b7cfd(0x112)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'shapeId':_0x6ec8d0,'shapeType':_0x5d974a,'shapeData':{'adjustValues':_0x19ca89}}}],_0xca4c49=[...(_0x325660=_0x4a45ae['preUndos'])==null?[]:_0x325660,{'id':_0x4b87f8[_0x1b7cfd(0x159)]['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'op':_0xe7a6d7,'objects':_0x491e61,'type':_0x4b87f8[_0x1b7cfd(0x167)]['UPDATE']}},{'id':_0x4b87f8[_0x1b7cfd(0x14a)]['id'],'params':[_0x5820e3]},..._0x4a45ae[_0x1b7cfd(0x13c)],{'id':_0x4e0b3c['id'],'params':{'unitId':_0x5820e3,'subUnitId':_0x3627c1,'shapeId':_0x6ec8d0,'shapeType':_0x457e37,'shapeData':{..._0x3b75b9,'adjustValues':_0x26f20b||(_0x3b75b9==null?void 0x0:_0x3b75b9['adjustValues'])}}}];return(0x0,_0x2caac2['sequenceExecute'])(_0x40c9e8,_0x3722e7)['result']?(_0x10cc4a[_0x1b7cfd(0x13f)]({'unitID':_0x5820e3,'undoMutations':_0xca4c49,'redoMutations':_0x40c9e8}),!0x0):!0x1;}},_0x15594d={'id':_0x43d32e(0xf9),'type':_0x2caac2[_0x43d32e(0x152)][_0x43d32e(0x129)],'handler':(_0x1bec3b,_0x3b43af)=>{const _0x144792=_0x43d32e;let {unitId:_0x4bb096,subUnitId:_0x472589,shapeType:_0x45754f,shapeId:_0x4e842a,shapeData:_0x1445d8}=_0x3b43af,_0x3cfed9=_0x1bec3b[_0x144792(0x160)](_0x296bdb)[_0x144792(0xe8)](_0x4bb096,_0x472589,_0x4e842a);return _0x3cfed9&&(_0x3cfed9[_0x144792(0xfd)](_0x45754f),_0x1445d8&&(_0x3cfed9==null||_0x3cfed9[_0x144792(0xce)](_0x1445d8))),!0x0;}};var _0x1dad2b=_0x43d32e(0x12f),_0xbd8317='1.0.0-alpha.3';let _0x1e919c={},_0x4a7bac=class extends _0x2caac2[_0x43d32e(0x139)]{constructor(_0x258c1e,_0x7e68de,_0x4f85e5,_0x4f8f11,_0x49af12){const _0x3a6be4=_0x43d32e;super(),this['_commandService']=_0x258c1e,this[_0x3a6be4(0xf4)]=_0x7e68de,this['_sheetSkeletonService']=_0x4f85e5,this[_0x3a6be4(0x16a)]=_0x4f8f11,this['_drawingManagerService']=_0x49af12,this[_0x3a6be4(0xfc)](),this[_0x3a6be4(0xe1)]();}[_0x43d32e(0xfc)](){const _0x767a0b=_0x43d32e;[_0x315436,_0x396023,_0x5a3889,_0x1cd7c7,_0x27b1b6,_0x492f51,_0x3ac1a9,_0x5d1e10,_0x3bb77b,_0x15594d,_0x4e0b3c][_0x767a0b(0xf1)](_0x40c00b=>this[_0x767a0b(0xc1)](this[_0x767a0b(0xb8)]['registerCommand'](_0x40c00b)));}[_0x43d32e(0xe1)](){const _0x3cf4fe=_0x43d32e;this[_0x3cf4fe(0xc1)](this['_sheetInterceptorService'][_0x3cf4fe(0xea)]({'getMutations':_0x208854=>{const _0x1d4360=_0x3cf4fe;if(_0x208854['id']===_0x4b87f8['RemoveSheetDrawingCommand']['id']){let {drawings:_0x16f80e}=_0x208854[_0x1d4360(0xb2)],_0x291bd8=_0x16f80e['filter'](_0x12331e=>_0x12331e[_0x1d4360(0xeb)]===_0x2caac2[_0x1d4360(0x134)]['DRAWING_SHAPE']);if(_0x291bd8[_0x1d4360(0x16e)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4837b7=[],_0x4af1d4=[];return _0x291bd8['forEach'](_0x3b8350=>{const _0x16583c=_0x1d4360;let {unitId:_0x568290,subUnitId:_0xe73597,drawingId:_0x16df53}=_0x3b8350,_0x1e8e80=this[_0x16583c(0x16a)]['getShapeModel'](_0x568290,_0xe73597,_0x16df53);if(!_0x1e8e80)throw TypeError(_0x16583c(0xf5)+_0x1e8e80);_0x4837b7[_0x16583c(0xbe)]({'id':_0x3bb77b['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x16df53}}),_0x4af1d4['push']({'id':_0x5d1e10['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x16df53,'shapeType':_0x1e8e80['getShapeType'](),'shapeData':_0x1e8e80['getShapeData']()}});let _0x49fa7f=this[_0x16583c(0x16a)][_0x16583c(0xd6)](_0x568290,_0xe73597,_0x16df53);if(_0x49fa7f)for(let _0x361b4e of _0x49fa7f){let _0x5c2a02=_0x361b4e[_0x16583c(0x107)],_0x293a9a=_0x361b4e['isFrom'],_0x107331=_0x293a9a?{'from':void 0x0}:{'to':void 0x0},_0x349f60=_0x293a9a?{'from':{'shapeId':_0x361b4e[_0x16583c(0xf8)],'cxnIndex':_0x361b4e['cxnIndex']}}:{'to':{'shapeId':_0x361b4e[_0x16583c(0xf8)],'cxnIndex':_0x361b4e['cxnIndex']}};_0x4837b7[_0x16583c(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x5c2a02,'shapeData':{'relation':_0x107331}}}),_0x4af1d4['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x568290,'subUnitId':_0xe73597,'shapeId':_0x5c2a02,'shapeData':{'relation':_0x349f60}}});}}),{'preRedos':_0x4837b7,'redos':[],'preUndos':[],'undos':_0x4af1d4};}if(_0x208854['id']===_0x4b87f8[_0x1d4360(0xd4)]['id']){let {drawings:_0x5aaaaf}=_0x208854[_0x1d4360(0xb2)],_0x4a667f=_0x5aaaaf[_0x1d4360(0x144)](_0x43af89=>_0x43af89['drawingType']===_0x2caac2[_0x1d4360(0x134)][_0x1d4360(0xec)]);if(_0x4a667f['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x47a5e4=[],_0x29ca31=[];for(let _0x3f467b of _0x4a667f){let {unitId:_0x127cae,subUnitId:_0x54fcd3,drawingId:_0x5c4472,transform:_0x2bb4ff}=_0x3f467b;if(!_0x127cae||!_0x54fcd3||!_0x5c4472||!_0x2bb4ff)continue;let _0xee311c=this[_0x1d4360(0x16a)][_0x1d4360(0xe8)](_0x127cae,_0x54fcd3,_0x5c4472);if(!_0xee311c)throw TypeError(_0x1d4360(0xf5)+_0xee311c);if((0x0,_0x4dff1c[_0x1d4360(0x153)])(_0xee311c[_0x1d4360(0xca)]())){let _0x48576a=this[_0x1d4360(0x16a)]['getLineShapeRelation'](_0x127cae,_0x54fcd3,_0x5c4472);_0x48576a&&(_0x47a5e4[_0x1d4360(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x127cae,'subUnitId':_0x54fcd3,'shapeId':_0x5c4472,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x29ca31[_0x1d4360(0xbe)]({'id':_0x4e0b3c['id'],'params':{'unitId':_0x127cae,'subUnitId':_0x54fcd3,'shapeId':_0x5c4472,'shapeData':{'relation':_0x48576a}}}));}else{let _0x1e37ec=this['_sheetsShapeService'][_0x1d4360(0xd6)](_0x127cae,_0x54fcd3,_0x5c4472);if(_0x1e37ec&&_0x1e37ec[_0x1d4360(0x16e)]>0x0)for(let _0x33253d of _0x1e37ec){let _0x9c0808=_0x33253d['lineShapeId'],_0x540369=_0x33253d[_0x1d4360(0xc7)],_0x22c395=this[_0x1d4360(0x16a)][_0x1d4360(0xe8)](_0x127cae,_0x54fcd3,_0x9c0808);if(!_0x22c395)continue;let _0x3a2666=_0x22c395[_0x1d4360(0x179)](),_0x2d73a3=_0x22c395[_0x1d4360(0xf3)]();_0x3a2666&&_0x2d73a3?this[_0x1d4360(0x147)](_0x127cae,_0x54fcd3,_0x9c0808,_0x22c395,_0x3a2666,_0x2d73a3,_0x47a5e4,_0x29ca31,_0x5c4472,_0x2bb4ff):this[_0x1d4360(0x170)](_0x127cae,_0x54fcd3,_0x9c0808,_0x22c395,_0x540369?_0x3a2666:_0x2d73a3,_0x540369,_0x47a5e4,_0x29ca31,_0x5c4472,_0x2bb4ff);}}}return{'preRedos':[],'redos':_0x47a5e4,'preUndos':_0x29ca31,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x43d32e(0x138)](_0x2b4a47,_0x8d6e0f,_0x241fb5,_0x1e9da9,_0xa6ec9e){const _0x398190=_0x43d32e;if(!_0x8d6e0f||!_0x241fb5)return null;let {shapeId:_0x5c6ece,cxnIndex:_0x288fcb}=_0x2b4a47,_0x499d4a=this[_0x398190(0x16a)]['getShapeModel'](_0x8d6e0f,_0x241fb5,_0x5c6ece);if(!_0x499d4a)return null;let _0xafb349=this[_0x398190(0x13b)][_0x398190(0xd9)]({'unitId':_0x8d6e0f,'subUnitId':_0x241fb5,'drawingId':_0x5c6ece});if(!(_0xafb349!=null&&_0xafb349[_0x398190(0x14f)]))return null;let {left:_0x26058e=0x0,top:_0x447b55=0x0,width:_0x485a58=0x0,height:_0xf0da5e=0x0,flipX:_0x206616=!0x1,flipY:_0x18e11e=!0x1,angle:_0x52dc38}=_0xafb349[_0x398190(0x14f)];if(_0xa6ec9e&&_0x1e9da9===_0x5c6ece){var _0x5a190e,_0x537147,_0x256db8,_0x51fee8,_0x4cef19,_0x41bd02,_0x572eee;_0x26058e=(_0x5a190e=_0xa6ec9e['left'])==null?_0x26058e:_0x5a190e,_0x447b55=(_0x537147=_0xa6ec9e[_0x398190(0x171)])==null?_0x447b55:_0x537147,_0x485a58=(_0x256db8=_0xa6ec9e[_0x398190(0x12b)])==null?_0x485a58:_0x256db8,_0xf0da5e=(_0x51fee8=_0xa6ec9e[_0x398190(0xc0)])==null?_0xf0da5e:_0x51fee8,_0x206616=(_0x4cef19=_0xa6ec9e[_0x398190(0xcf)])==null?_0x206616:_0x4cef19,_0x18e11e=(_0x41bd02=_0xa6ec9e['flipY'])==null?_0x18e11e:_0x41bd02,_0x52dc38=(_0x572eee=_0xa6ec9e[_0x398190(0x110)])==null?_0x52dc38:_0x572eee;}_0x499d4a[_0x398190(0x10e)]({'width':_0x485a58,'height':_0xf0da5e});let _0x3f6de5=_0x499d4a[_0x398190(0x10a)]()[_0x398190(0x174)](_0x2dba9d=>_0x2dba9d[_0x398190(0x10b)]===_0x288fcb);if(!_0x3f6de5)return null;let _0x337d4b=_0x206616?_0x485a58-_0x3f6de5['x']:_0x3f6de5['x'],_0x18c43b=_0x18e11e?_0xf0da5e-_0x3f6de5['y']:_0x3f6de5['y'];if(_0x52dc38!==0x0&&_0x52dc38!=null){let _0x3d3104=_0x52dc38*Math['PI']/0xb4,_0x3a35f4=Math[_0x398190(0x111)](_0x3d3104),_0x3f3778=Math['sin'](_0x3d3104),_0x4f042e=_0x485a58/0x2,_0x145095=_0xf0da5e/0x2,_0x2e94c2=_0x337d4b-_0x4f042e,_0x2cdf4a=_0x18c43b-_0x145095;_0x337d4b=_0x4f042e+_0x2e94c2*_0x3a35f4-_0x2cdf4a*_0x3f3778,_0x18c43b=_0x145095+_0x2e94c2*_0x3f3778+_0x2cdf4a*_0x3a35f4;}_0x337d4b+=_0x26058e,_0x18c43b+=_0x447b55;let _0x18a7ee=_0x3f6de5[_0x398190(0x117)]/0xea60;_0x206616&&(_0x18a7ee=0xb4-_0x18a7ee),_0x18e11e&&(_0x18a7ee=-_0x18a7ee),_0x18a7ee+=_0x52dc38||0x0,_0x18a7ee=(_0x18a7ee%0x168+0x168)%0x168;let _0x4206db=(0x0,_0x4dff1c[_0x398190(0x125)])({'left':_0x26058e,'top':_0x447b55,'width':_0x485a58,'height':_0xf0da5e},_0x52dc38||0x0);return{'point':{'x':_0x337d4b,'y':_0x18c43b},'angle':_0x18a7ee,'bounds':_0x4206db};}[_0x43d32e(0x147)](_0x5d6711,_0x542705,_0xe247b2,_0x1dbc96,_0x3c0b65,_0x1da5c3,_0x595304,_0x390c39,_0x509a0b,_0x20e95c){const _0x2d56d3=_0x43d32e;let _0x29a99c=this[_0x2d56d3(0x103)][_0x2d56d3(0xe4)](_0x5d6711,_0x542705);if(!_0x29a99c)return;let _0x5eb74a=_0x1dbc96[_0x2d56d3(0xd3)](),_0xc68b4e=_0x1dbc96['getAdjustNames'](),_0x2260ad={},_0x527d24={};_0xc68b4e[_0x2d56d3(0xf1)](_0x2e426f=>{const _0x7416ed=_0x2d56d3;let _0x44a761=_0x1dbc96[_0x7416ed(0x11c)](_0x2e426f);_0x527d24[_0x2e426f]=_0x44a761==null?0x0:_0x44a761;});let _0x3ef5f6=this[_0x2d56d3(0x138)](_0x3c0b65,_0x5d6711,_0x542705,_0x509a0b,_0x20e95c),_0x4f4907=this['_getConnectPointInfo'](_0x1da5c3,_0x5d6711,_0x542705,_0x509a0b,_0x20e95c);if(_0x3ef5f6&&_0x4f4907){let _0x2ca722=_0x1dbc96[_0x2d56d3(0xca)](),_0x5d8e35=(0x0,_0x4dff1c[_0x2d56d3(0x149)])(_0x3ef5f6,_0x4f4907,_0x2ca722),_0x6ba678=_0x2ca722;if(_0x5d8e35){let _0x111395=(0x0,_0x4dff1c['computeConnectorRouteLayout'])(_0x5d8e35,_0x1dbc96[_0x2d56d3(0xca)]()),_0x4886e0=this[_0x2d56d3(0x13b)][_0x2d56d3(0x13d)](_0x5d6711,_0x542705);if(_0x4886e0&&_0x4886e0[_0xe247b2]){let _0x55434e=_0x4886e0[_0xe247b2];_0x6ba678=_0x111395[_0x2d56d3(0x101)];for(let [_0x33a6e8,_0x8bf130]of Object[_0x2d56d3(0x15a)](_0x111395[_0x2d56d3(0xf0)]))_0x2260ad[_0x33a6e8]=_0x8bf130;let _0x160107={..._0x55434e[_0x2d56d3(0x14f)],'width':_0x111395['worldRect'][_0x2d56d3(0x12b)],'height':_0x111395['worldRect']['height'],'left':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x102)],'top':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x171)],'flipX':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0xcf)],'flipY':_0x111395[_0x2d56d3(0x124)][_0x2d56d3(0x130)],'angle':_0x111395[_0x2d56d3(0x173)]},_0xc8aef9=(0x0,_0x4b87f8[_0x2d56d3(0xd1)])(_0x160107,_0x29a99c),_0x317e0e=(0x0,_0x4b87f8[_0x2d56d3(0xd7)])(_0x160107,_0x29a99c),_0x52bf5e={'unitId':_0x5d6711,'subUnitId':_0x542705,'drawingType':_0x2caac2[_0x2d56d3(0x134)][_0x2d56d3(0xec)],'drawingId':_0xe247b2,'transform':_0x160107,'sheetTransform':_0xc8aef9,'axisAlignSheetTransform':_0x317e0e},{unitId:_0x4920fa,subUnitId:_0x4dbf24,undo:_0x44920b,redo:_0x340abe,objects:_0x11d157}=this[_0x2d56d3(0x13b)][_0x2d56d3(0xcd)]([_0x52bf5e]);_0x595304['push']({'id':_0x4b87f8[_0x2d56d3(0x159)]['id'],'params':{'unitId':_0x4920fa,'subUnitId':_0x4dbf24,'op':_0x340abe,'objects':_0x11d157,'type':_0x4b87f8[_0x2d56d3(0x167)][_0x2d56d3(0xbb)]}}),_0x390c39['push']({'id':_0x4b87f8[_0x2d56d3(0x159)]['id'],'params':{'unitId':_0x4920fa,'subUnitId':_0x4dbf24,'op':_0x44920b,'objects':_0x11d157,'type':_0x4b87f8[_0x2d56d3(0x167)][_0x2d56d3(0xbb)]}});}_0x1dbc96[_0x2d56d3(0xd5)]();}_0x595304['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x5d6711,'subUnitId':_0x542705,'shapeId':_0xe247b2,'shapeType':_0x6ba678,'shapeData':{'adjustValues':_0x2260ad,'relation':_0x5eb74a}}}),_0x390c39['push']({'id':_0x4e0b3c['id'],'params':{'unitId':_0x5d6711,'subUnitId':_0x542705,'shapeId':_0xe247b2,'shapeType':_0x2ca722,'shapeData':{'adjustValues':_0x527d24,'relation':_0x5eb74a}}});}}['_addLineFollowShapeUpdates'](_0x23484b,_0x4c9c3b,_0x2345df,_0x3c764f,_0x18e170,_0x274e28,_0x4f1041,_0x87d5cc,_0x3a1449,_0x33442b){const _0x5c2f4f=_0x43d32e;var _0x5fbe6e;if(!_0x18e170)return;let _0x11fdb0=this['_sheetSkeletonService'][_0x5c2f4f(0xe4)](_0x23484b,_0x4c9c3b);if(!_0x11fdb0)return;let _0x2ef667=(_0x5fbe6e=this[_0x5c2f4f(0x13b)][_0x5c2f4f(0xd9)]({'unitId':_0x23484b,'subUnitId':_0x4c9c3b,'drawingId':_0x3a1449}))==null?void 0x0:_0x5fbe6e[_0x5c2f4f(0x14f)];if(!_0x2ef667)return;let _0x4e59bd=_0x2ef667[_0x5c2f4f(0x102)]!==_0x33442b[_0x5c2f4f(0x102)]||_0x2ef667[_0x5c2f4f(0x171)]!==_0x33442b[_0x5c2f4f(0x171)],_0xfce9aa=_0x2ef667[_0x5c2f4f(0x12b)]!==_0x33442b['width']||_0x2ef667[_0x5c2f4f(0xc0)]!==_0x33442b[_0x5c2f4f(0xc0)],_0x2181a2=_0x2ef667[_0x5c2f4f(0xcf)]!==_0x33442b['flipX']||_0x2ef667[_0x5c2f4f(0x130)]!==_0x33442b['flipY'],_0x58b319=_0x2ef667[_0x5c2f4f(0x110)]!==_0x33442b['angle'];if(_0x4e59bd&&!_0xfce9aa&&!_0x2181a2&&!_0x58b319){var _0x1d09cc,_0x2a465e,_0x16d46d,_0x2eff34;let _0x2f7370=((_0x1d09cc=_0x33442b[_0x5c2f4f(0x102)])==null?0x0:_0x1d09cc)-((_0x2a465e=_0x2ef667[_0x5c2f4f(0x102)])==null?0x0:_0x2a465e),_0x18ecba=((_0x16d46d=_0x33442b[_0x5c2f4f(0x171)])==null?0x0:_0x16d46d)-((_0x2eff34=_0x2ef667[_0x5c2f4f(0x171)])==null?0x0:_0x2eff34),_0x11c560=this[_0x5c2f4f(0x13b)][_0x5c2f4f(0x13d)](_0x23484b,_0x4c9c3b);if(_0x11c560&&_0x11c560[_0x2345df]){var _0x43fe16,_0x473a4c,_0x43e664,_0x53843e;let _0x4ba0df=_0x11c560[_0x2345df],_0x2d7d51={..._0x4ba0df[_0x5c2f4f(0x14f)],'left':((_0x43fe16=(_0x473a4c=_0x4ba0df[_0x5c2f4f(0x14f)])==null?void 0x0:_0x473a4c[_0x5c2f4f(0x102)])==null?0x0:_0x43fe16)+_0x2f7370,'top':((_0x43e664=(_0x53843e=_0x4ba0df['transform'])==null?void 0x0:_0x53843e[_0x5c2f4f(0x171)])==null?0x0:_0x43e664)+_0x18ecba},_0x2fd0ba=(0x0,_0x4b87f8[_0x5c2f4f(0xd1)])(_0x2d7d51,_0x11fdb0),_0xdd10d=(0x0,_0x4b87f8[_0x5c2f4f(0xd7)])(_0x2d7d51,_0x11fdb0),_0x525bb3={'unitId':_0x23484b,'subUnitId':_0x4c9c3b,'drawingType':_0x2caac2[_0x5c2f4f(0x134)][_0x5c2f4f(0xec)],'drawingId':_0x2345df,'transform':_0x2d7d51,'sheetTransform':_0x2fd0ba,'axisAlignSheetTransform':_0xdd10d},{unitId:_0x4aca1f,subUnitId:_0x195cac,undo:_0x6641fe,redo:_0x27c819,objects:_0x67e482}=this['_drawingManagerService']['getBatchUpdateOp']([_0x525bb3]);_0x4f1041[_0x5c2f4f(0xbe)]({'id':_0x4b87f8[_0x5c2f4f(0x159)]['id'],'params':{'unitId':_0x4aca1f,'subUnitId':_0x195cac,'op':_0x27c819,'objects':_0x67e482,'type':_0x4b87f8[_0x5c2f4f(0x167)][_0x5c2f4f(0xbb)]}}),_0x87d5cc[_0x5c2f4f(0xbe)]({'id':_0x4b87f8[_0x5c2f4f(0x159)]['id'],'params':{'unitId':_0x4aca1f,'subUnitId':_0x195cac,'op':_0x6641fe,'objects':_0x67e482,'type':_0x4b87f8['DrawingApplyType'][_0x5c2f4f(0xbb)]}});}}else{let _0x78e241=_0x3c764f[_0x5c2f4f(0x179)](),_0x13969b=_0x3c764f[_0x5c2f4f(0xf3)]();this['_addLineRerouteUpdates'](_0x23484b,_0x4c9c3b,_0x2345df,_0x3c764f,_0x78e241,_0x13969b,_0x4f1041,_0x87d5cc,_0x3a1449,_0x33442b);}}};_0x4a7bac=_0x2d9122([_0x13c296(0x0,_0x2caac2[_0x43d32e(0xc9)]),_0x13c296(0x1,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x3fa06b[_0x43d32e(0x16d)])),_0x13c296(0x2,(0x0,_0x2caac2['Inject'])(_0x3fa06b[_0x43d32e(0x17b)])),_0x13c296(0x3,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x296bdb)),_0x13c296(0x4,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x389f2d[_0x43d32e(0x176)]))],_0x4a7bac);let _0x33980f=class extends _0x2caac2[_0x43d32e(0xf7)]{constructor(_0x24b89c=_0x1e919c,_0x1d81d6,_0x4ce353,_0x5b61e2){const _0x9fdecc=_0x43d32e;super(),this[_0x9fdecc(0x154)]=_0x24b89c,this[_0x9fdecc(0xde)]=_0x1d81d6,this[_0x9fdecc(0xb8)]=_0x4ce353,this[_0x9fdecc(0x15f)]=_0x5b61e2;let {..._0x2e4948}=(0x0,_0x2caac2[_0x9fdecc(0x11b)])({},_0x1e919c,this[_0x9fdecc(0x154)]);this['_configService'][_0x9fdecc(0xe7)]('sheets-shape.config',_0x2e4948);}[_0x43d32e(0x119)](){const _0x4d8b7c=_0x43d32e;let _0x4da8b0=this[_0x4d8b7c(0xde)];[[_0x46a501],[_0x296bdb],[_0x4a7bac]][_0x4d8b7c(0xf1)](_0x1d3944=>_0x4da8b0[_0x4d8b7c(0x11f)](_0x1d3944)),(0x0,_0x2caac2[_0x4d8b7c(0xb9)])(_0x4da8b0,[[_0x296bdb],[_0x4a7bac]]);}};_0x3392e6(_0x33980f,'type',_0x2caac2['UniverInstanceType']['UNIVER_SHEET']),_0x3392e6(_0x33980f,'pluginName',_0x43d32e(0x141)),_0x3392e6(_0x33980f,'packageName',_0x1dad2b),_0x3392e6(_0x33980f,_0x43d32e(0xee),_0xbd8317),_0x33980f=_0x2d9122([(0x0,_0x2caac2[_0x43d32e(0x16c)])(_0x2c98ae['UniverLicensePlugin']),_0x13c296(0x1,(0x0,_0x2caac2[_0x43d32e(0xcb)])(_0x2caac2[_0x43d32e(0xc2)])),_0x13c296(0x2,_0x2caac2[_0x43d32e(0xc9)]),_0x13c296(0x3,_0x2caac2['IConfigService'])],_0x33980f),_0x4150a6[_0x43d32e(0x116)]=0xc8,_0x4150a6[_0x43d32e(0x14e)]=0xc8,_0x4150a6[_0x43d32e(0x108)]=_0x315436,_0x4150a6[_0x43d32e(0xdd)]=_0x5d1e10,_0x4150a6['RemoveSheetsShapeMutation']=_0x3bb77b,_0x4150a6[_0x43d32e(0x185)]=_0x396023,_0x4150a6[_0x43d32e(0x16f)]=_0x1cd7c7,_0x4150a6[_0x43d32e(0xbf)]=_0x27b1b6,Object['defineProperty'](_0x4150a6,_0x43d32e(0x177),{'enumerable':!0x0,'get':function(){return _0x296bdb;}}),_0x4150a6[_0x43d32e(0xdb)]=_0x5a3889,Object[_0x43d32e(0xf6)](_0x4150a6,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0x33980f;}}),_0x4150a6[_0x43d32e(0x157)]=_0x492f51,_0x4150a6[_0x43d32e(0x12d)]=_0x3ac1a9,_0x4150a6[_0x43d32e(0x12e)]=_0x4e0b3c,_0x4150a6['UpdateSheetsShapeTypeMutation']=_0x15594d;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shape and drawing model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets": "1.0.0-alpha.
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.3",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-alpha.3",
|
|
63
|
+
"@univerjs/core": "1.0.0-alpha.3",
|
|
64
|
+
"@univerjs/drawing": "1.0.0-alpha.3",
|
|
65
|
+
"@univerjs/sheets": "1.0.0-alpha.3",
|
|
66
|
+
"@univerjs/sheets-drawing": "1.0.0-alpha.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"typescript": "^6.0.3",
|
|
70
|
-
"vitest": "^4.1.
|
|
71
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
70
|
+
"vitest": "^4.1.10",
|
|
71
|
+
"@univerjs-infra/shared": "1.0.0-alpha.3"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"test": "vitest run",
|