@univerjs-pro/sheets-shape 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/adapters/sheet-shape-host.adapter.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1991(){const _0x45df22=['COMMAND','getAdjustNames','SheetInterceptorService','onCommandExecute','shapeType','defineProperty','getDrawingByParam','position','data','rotateEnabled','borderEnabled','keys','getConnectionSiteList','stringify','DEFAULT_SHAPE_WIDTH','9327032aGaHsZ','DRAWING_SHAPE','UpdateLineShapeResizeCommand','interceptCommand','dispose','cos','toPrimitive','18819SCmcdt','Tools','params','sheet.command.set-shape-drawing-data','hidden','_disposed','UpdateSheetsShapeTypeMutation','originals','getShapeData','formulaBinding','visible','_ensureShapeModelManager','setShapeType','_addLineRerouteUpdates','_initCommandInterceptor','ShapeModel','Inject','ensureSkeleton','UNIVER_SHEET','from','createFormulaLastValueMutation','deletes','sheet.command.toggle-shape-flip','_drawingManagerService','bringForward','left','default','sheet.command.update-line-shape-resize','computeConnectorRouteLayout','add','getSheetCommandTarget','shapeData','UniverShapePlugin','_shapeService','set','shapeChanged$','IUndoRedoService','_initCommands','range','decorate','429hUvFUL','createUniqueShapeName','forward','RemoveSheetDrawingCommand','isConnectorShape','_groupIds','command','pluginName','generateRandomId','flipX','_applyUpdate','_shapes','skeleton','_resolveBinding','adjustValues','parse','pushUndoRedo','transformToAxisAlignPosition','transform','UniverLicensePlugin','SetSheetDrawingCommand','@univerjs/sheets','getBasicShapeRotateBound','removeShape','getShapeDisplayNames','top','ICommandService','getUnit','UniverInstanceType','_sheetSkeletonService','sequenceExecute','shapeId','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getDrawingData','@univerjs-pro/engine-shape','setShapeData','has','UpdateSheetsShapeDataMutation','mode','ArrangeTypeEnum','flatMap','_instanceService','clear','object','_sheetsShapeService','registerPluginResource','length','204YDpGhK','DependentOn','preRedos','resolveConnectorRoutePoints','MUTATION','UniverProSheetsShape','SheetDrawingTransformPlanService','version','getEndConnectInfo','backward','worldRect','getStartConnectInfo','front','get','_shapeHostAdapterRegistry','4588208EDtVKo','routeConnectorLineShape','getLineShapeRelation','DEFAULT_SHAPE_HEIGHT','isLineShape','DrawingApplyType','sheet.mutation.insert-shape','height','UPDATE','IDrawingManagerService','@univerjs/sheets-drawing','selectable','push','_deserializeShapeForUnit','relation','type','INSERT','_resourcesManagerService','getBasicShapeRelation','name','getShapeTypeById','updates','iterator','_shapeAdapter','ClearSheetDrawingTransformerOperation','_toSnapshot','startY','SetSheetsShapeTextVerticalToggleCommand','sheet.command.insert-shape','string','resolveShapeConnectionPoint','1kyRMru','angle','getShapeModel','_getConnectPointInfo','width','getShapeRelation','IUniverInstanceService','addShape','isHorizontal','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeType','values','rotation','_serializeShapeForUnit','merge','redos','Both','getSheets','UniverDrawing','forEach','toJSON','unitId','insertShape','UniverSheets','listShapes','createShape','getBatchAddOp','buildConnectorEndpointUpdate','484730XHXCiq','sheet.mutation.update-shape-data','REMOVE','onStarting','SheetsShapeService','_commandService','preUndos','sendToBack','function','map','_drawingService','_planDeletes','_injector','result','SheetSkeletonService','hasShape','503682OsfcPD','getName','IShapeHostAdapterRegistry','lineShapeId','Disposable','description','bringToFront','UniverCore','_arrange','UniverSheetsDrawing','cxnIndex','updateShape','getShapeDataById','@univerjs-pro/sheets-shape','back','onCommandExecuted','UniverDrawingPlugin','drawingId','getBasicShapeType','18ZvAVjA','_initSnapshot','undos','Injector','SetDrawingApplyMutation','_configService','216610pSpghF','DrawingTypeEnum','79932dXoYNB','getSkeleton','7NObuIb','sheet.command.update-connector-relation','fill','sheet.mutation.update-shape-type','getAdjustValueByName','_sheetInterceptorService','resizeEnabled','getBatchUpdateOp','lineType','syncExecuteCommand','_config','ISheetDrawingService','InsertSheetsShapeMutation','getShapeTextData','SHEET_SHAPE_PLUGIN','_linesIds','getOwnPropertyDescriptor','sheet.command.set-shape-rotate','_shapeModelManagerMap','register','shapeName','delete','getId','deepClone','hostType','drawingType','fromJSON','symbol','InsertShapeCommand','CommandType','sheet.mutation.remove-shape','disposeWithMe','point','toStringTag','touchDependencies','sheet.command.set-shape-text-vertical-toggle','getShape','transformToDrawingPosition','_addLineFollowShapeUpdates','5DVyhgd','UniverProEngineShape','call','subUnitId','flipY','startX','IConfigService','isFrom','refresh','RemoveSheetsShapeMutation','sendBackward','createFreeConnectorPointInfo'];_0x1991=function(){return _0x45df22;};return _0x1991();}function _0x46ce(_0x48cbeb,_0x424cfa){_0x48cbeb=_0x48cbeb-0x134;const _0x1991fc=_0x1991();let _0x46cee8=_0x1991fc[_0x48cbeb];return _0x46cee8;}(function(_0x565815,_0x1f8ef7){const _0x4273ef=_0x46ce,_0x24e283=_0x565815();while(!![]){try{const _0x400c83=parseInt(_0x4273ef(0x191))/0x1*(-parseInt(_0x4273ef(0x1d6))/0x2)+parseInt(_0x4273ef(0x223))/0x3*(parseInt(_0x4273ef(0x163))/0x4)+-parseInt(_0x4273ef(0x201))/0x5*(parseInt(_0x4273ef(0x1bd))/0x6)+parseInt(_0x4273ef(0x1da))/0x7*(parseInt(_0x4273ef(0x172))/0x8)+parseInt(_0x4273ef(0x1d0))/0x9*(parseInt(_0x4273ef(0x1ad))/0xa)+parseInt(_0x4273ef(0x24b))/0xb*(parseInt(_0x4273ef(0x1d8))/0xc)+-parseInt(_0x4273ef(0x21c))/0xd;if(_0x400c83===_0x1f8ef7)break;else _0x24e283['push'](_0x24e283['shift']());}catch(_0x1cf6b0){_0x24e283['push'](_0x24e283['shift']());}}}(_0x1991,0x531ea),function(_0x732f3a,_0x1b4674){const _0x7faefd=_0x46ce;typeof exports==_0x7faefd(0x15f)&&typeof module<'u'?_0x1b4674(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==_0x7faefd(0x1b5)&&define['amd']?define(['exports',_0x7faefd(0x156),'@univerjs/core',_0x7faefd(0x148),_0x7faefd(0x17c),'@univerjs-pro/license','@univerjs/drawing'],_0x1b4674):(_0x732f3a=typeof globalThis<'u'?globalThis:_0x732f3a||self,_0x1b4674(_0x732f3a[_0x7faefd(0x168)]={},_0x732f3a[_0x7faefd(0x202)],_0x732f3a[_0x7faefd(0x1c4)],_0x732f3a[_0x7faefd(0x1a8)],_0x732f3a[_0x7faefd(0x1c6)],_0x732f3a['UniverProLicense'],_0x732f3a[_0x7faefd(0x1a3)]));}(this,function(_0x2ae183,_0x5c42ed,_0x3d49bf,_0x48a4c3,_0x1933ae,_0x20e5fb,_0x4c491c){const _0x48e84b=_0x46ce;Object[_0x48e84b(0x212)](_0x2ae183,Symbol[_0x48e84b(0x1fb)],{'value':'Module'});function _0x312e79(_0x57a862){'@babel/helpers - typeof';const _0x4f4776=_0x48e84b;return _0x312e79=typeof Symbol==_0x4f4776(0x1b5)&&typeof Symbol[_0x4f4776(0x188)]==_0x4f4776(0x1f5)?function(_0x45fc74){return typeof _0x45fc74;}:function(_0x2afbdc){const _0x42e68f=_0x4f4776;return _0x2afbdc&&typeof Symbol==_0x42e68f(0x1b5)&&_0x2afbdc['constructor']===Symbol&&_0x2afbdc!==Symbol['prototype']?_0x42e68f(0x1f5):typeof _0x2afbdc;},_0x312e79(_0x57a862);}function _0x5f0994(_0x3f7620,_0xe5f3d0){const _0x4b00cb=_0x48e84b;if(_0x312e79(_0x3f7620)!=_0x4b00cb(0x15f)||!_0x3f7620)return _0x3f7620;var _0x60a95d=_0x3f7620[Symbol[_0x4b00cb(0x222)]];if(_0x60a95d!==void 0x0){var _0x3c9861=_0x60a95d[_0x4b00cb(0x203)](_0x3f7620,_0xe5f3d0||_0x4b00cb(0x23d));if(_0x312e79(_0x3c9861)!=_0x4b00cb(0x15f))return _0x3c9861;throw TypeError(_0x4b00cb(0x154));}return(_0xe5f3d0===_0x4b00cb(0x18f)?String:Number)(_0x3f7620);}function _0x498c47(_0x38b519){const _0x2610d6=_0x48e84b;var _0xbe3d6e=_0x5f0994(_0x38b519,_0x2610d6(0x18f));return _0x312e79(_0xbe3d6e)==_0x2610d6(0x1f5)?_0xbe3d6e:_0xbe3d6e+'';}function _0x33e1cb(_0x10f96c,_0x3ff75a,_0x36f581){const _0x2786a0=_0x48e84b;return(_0x3ff75a=_0x498c47(_0x3ff75a))in _0x10f96c?Object[_0x2786a0(0x212)](_0x10f96c,_0x3ff75a,{'value':_0x36f581,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10f96c[_0x3ff75a]=_0x36f581,_0x10f96c;}var _0x7d392f=class extends _0x3d49bf[_0x48e84b(0x1c1)]{constructor(){const _0x506874=_0x48e84b;super(),_0x33e1cb(this,_0x506874(0x13e),new Map()),_0x33e1cb(this,_0x506874(0x1e9),new Set()),_0x33e1cb(this,_0x506874(0x138),new Set());}[_0x48e84b(0x198)](_0xf9e7,_0x194f5a,_0x51632f,_0x12a869){const _0x275dcb=_0x48e84b;let _0x57035c=new _0x5c42ed[(_0x275dcb(0x232))](_0xf9e7,_0x194f5a,_0x51632f,_0x12a869);return this[_0x275dcb(0x13e)]['set'](_0x194f5a,_0x57035c),(0x0,_0x5c42ed[_0x275dcb(0x137)])(_0xf9e7)&&this[_0x275dcb(0x1e9)][_0x275dcb(0x240)](_0x194f5a),_0x57035c;}['getBasicShapeRelation'](_0x2772ab){const _0x3522d5=_0x48e84b;let _0x4a7d33=[];for(let _0x4282c2 of this[_0x3522d5(0x1e9)]){let _0x2a9365=this['_shapes'][_0x3522d5(0x170)](_0x4282c2);if(_0x2a9365){let _0x2ec6d1=_0x2a9365[_0x3522d5(0x196)]();if(_0x2ec6d1){var _0x5b070b,_0x3924af;((_0x5b070b=_0x2ec6d1[_0x3522d5(0x236)])==null?void 0x0:_0x5b070b['shapeId'])===_0x2772ab&&_0x4a7d33[_0x3522d5(0x17e)]({..._0x2ec6d1['from'],'lineShapeId':_0x4282c2,'isFrom':!0x0}),((_0x3924af=_0x2ec6d1['to'])==null?void 0x0:_0x3924af[_0x3522d5(0x152)])===_0x2772ab&&_0x4a7d33[_0x3522d5(0x17e)]({..._0x2ec6d1['to'],'lineShapeId':_0x4282c2,'isFrom':!0x1});}}}return _0x4a7d33;}[_0x48e84b(0x174)](_0x53b0a9){const _0x2f3131=_0x48e84b;let _0x5248fc=this[_0x2f3131(0x13e)][_0x2f3131(0x170)](_0x53b0a9);if(_0x5248fc)return _0x5248fc[_0x2f3131(0x196)]();}[_0x48e84b(0x19b)](_0x51fbf9){const _0x3ed1e7=_0x48e84b;let _0x3e90d6=this[_0x3ed1e7(0x13e)][_0x3ed1e7(0x170)](_0x51fbf9);if(_0x3e90d6)return _0x3e90d6[_0x3ed1e7(0x19b)]();}[_0x48e84b(0x1bc)](_0x3f8825){const _0x288673=_0x48e84b;return this[_0x288673(0x13e)][_0x288673(0x158)](_0x3f8825);}[_0x48e84b(0x14b)](){const _0x3c1c09=_0x48e84b;return Array['from'](this['_shapes'][_0x3c1c09(0x19c)]())[_0x3c1c09(0x1b6)](_0x1c0db9=>_0x1c0db9['getName']()||_0x1c0db9[_0x3c1c09(0x1f0)]());}[_0x48e84b(0x14a)](_0x7efee9){const _0x3980f0=_0x48e84b;let _0x56733d=this[_0x3980f0(0x13e)][_0x3980f0(0x170)](_0x7efee9);_0x56733d&&((0x0,_0x5c42ed['isConnectorShape'])(_0x56733d[_0x3980f0(0x19b)]())&&this[_0x3980f0(0x1e9)]['delete'](_0x7efee9),this[_0x3980f0(0x13e)][_0x3980f0(0x1ef)](_0x7efee9));}[_0x48e84b(0x1a5)](){const _0x537a92=_0x48e84b;let _0x31860e=[];return this[_0x537a92(0x13e)]['forEach'](_0x1b1d2f=>{const _0x4bcd46=_0x537a92;_0x31860e[_0x4bcd46(0x17e)](_0x1b1d2f[_0x4bcd46(0x1a5)]());}),_0x31860e;}['fromJSON'](_0x352746){const _0x48c83d=_0x48e84b;for(let _0x1b8de7 of _0x352746){let {id:_0x1a86e6,shapeType:_0x2987ad,name:_0x12fc5f}=_0x1b8de7,_0x400902=this[_0x48c83d(0x198)](_0x2987ad,_0x1a86e6,_0x1b8de7[_0x48c83d(0x242)],_0x12fc5f);_0x400902&&_0x400902[_0x48c83d(0x176)]()&&this[_0x48c83d(0x1e9)][_0x48c83d(0x240)](_0x1a86e6);}}[_0x48e84b(0x220)](){const _0xd5a2cd=_0x48e84b;this[_0xd5a2cd(0x228)]||(this[_0xd5a2cd(0x13e)][_0xd5a2cd(0x1a4)](_0x2c5494=>{const _0x293841=_0xd5a2cd;_0x2c5494[_0x293841(0x220)]();}),this[_0xd5a2cd(0x13e)][_0xd5a2cd(0x15e)](),this[_0xd5a2cd(0x1e9)][_0xd5a2cd(0x15e)](),this[_0xd5a2cd(0x138)][_0xd5a2cd(0x15e)](),super[_0xd5a2cd(0x220)]());}};function _0x32f80e(_0xd6f308,_0x425110){return function(_0x4646ef,_0x28e6bb){_0x425110(_0x4646ef,_0x28e6bb,_0xd6f308);};}function _0x1424dc(_0x3ae33c,_0x1d2143,_0xa0bbd7,_0x30c730){const _0x5014f9=_0x48e84b;var _0x3fd292=arguments[_0x5014f9(0x162)],_0x38d711=_0x3fd292<0x3?_0x1d2143:_0x30c730===null?_0x30c730=Object[_0x5014f9(0x1ea)](_0x1d2143,_0xa0bbd7):_0x30c730,_0x4e7a08;if(typeof Reflect=='object'&&typeof Reflect[_0x5014f9(0x24a)]==_0x5014f9(0x1b5))_0x38d711=Reflect[_0x5014f9(0x24a)](_0x3ae33c,_0x1d2143,_0xa0bbd7,_0x30c730);else{for(var _0x2cc930=_0x3ae33c[_0x5014f9(0x162)]-0x1;_0x2cc930>=0x0;_0x2cc930--)(_0x4e7a08=_0x3ae33c[_0x2cc930])&&(_0x38d711=(_0x3fd292<0x3?_0x4e7a08(_0x38d711):_0x3fd292>0x3?_0x4e7a08(_0x1d2143,_0xa0bbd7,_0x38d711):_0x4e7a08(_0x1d2143,_0xa0bbd7))||_0x38d711);}return _0x3fd292>0x3&&_0x38d711&&Object[_0x5014f9(0x212)](_0x1d2143,_0xa0bbd7,_0x38d711),_0x38d711;}let _0x2446f4=class extends _0x3d49bf[_0x48e84b(0x1c1)]{constructor(_0x27ab5d){const _0xbe660e=_0x48e84b;super(),this[_0xbe660e(0x183)]=_0x27ab5d,_0x33e1cb(this,_0xbe660e(0x1ec),new Map()),this[_0xbe660e(0x1d1)]();}[_0x48e84b(0x22e)](_0x4dda91,_0x3fc1a9){const _0x18d354=_0x48e84b;let _0x50871c=this[_0x18d354(0x1ec)][_0x18d354(0x170)](_0x4dda91);_0x50871c||(_0x50871c=new Map(),this[_0x18d354(0x1ec)]['set'](_0x4dda91,_0x50871c));let _0xb90bec=_0x50871c[_0x18d354(0x170)](_0x3fc1a9);return _0xb90bec||(_0xb90bec=new _0x7d392f(),_0x50871c['set'](_0x3fc1a9,_0xb90bec)),_0xb90bec;}['insertShape'](_0x3abbc2,_0x1c53fa,_0x4e9758,_0x496594,_0x3b3b17,_0x5b9d73){const _0x838bb7=_0x48e84b;this[_0x838bb7(0x22e)](_0x3abbc2,_0x1c53fa)[_0x838bb7(0x198)](_0x4e9758,_0x496594,_0x3b3b17,_0x5b9d73);}['removeShape'](_0x1e0004,_0x322d8c,_0x3dfe6f){const _0x4ef23b=_0x48e84b;this[_0x4ef23b(0x22e)](_0x1e0004,_0x322d8c)[_0x4ef23b(0x14a)](_0x3dfe6f);}[_0x48e84b(0x1cf)](_0x1a32ee,_0x1b8165,_0x3248ae){const _0x5b57f2=_0x48e84b;return this[_0x5b57f2(0x22e)](_0x1a32ee,_0x1b8165)[_0x5b57f2(0x19b)](_0x3248ae);}[_0x48e84b(0x19b)](_0x7a854f,_0x22bf86,_0x370b8c){const _0x4f139e=_0x48e84b;return this[_0x4f139e(0x22e)](_0x7a854f,_0x22bf86)[_0x4f139e(0x19b)](_0x370b8c);}['hasShape'](_0x369240,_0x4b490d,_0x1d8cd5){return this['_ensureShapeModelManager'](_0x369240,_0x4b490d)['hasShape'](_0x1d8cd5);}[_0x48e84b(0x186)](_0x2606ba,_0x242b9c,_0x49ed38){const _0x69455=_0x48e84b;return this[_0x69455(0x22e)](_0x2606ba,_0x242b9c)[_0x69455(0x19b)](_0x49ed38);}['getShapeDataById'](_0x2a4008,_0x5592f8,_0x57803a){const _0x225e6d=_0x48e84b;let _0x47b177=this[_0x225e6d(0x22e)](_0x2a4008,_0x5592f8);if(!_0x47b177[_0x225e6d(0x19b)](_0x57803a))return;let _0x41e7a3=_0x47b177[_0x225e6d(0x13e)][_0x225e6d(0x170)](_0x57803a);if(_0x41e7a3)return _0x41e7a3[_0x225e6d(0x22b)]();}[_0x48e84b(0x14b)](_0xebd40,_0x4095bd){const _0x326ff3=_0x48e84b;return this[_0x326ff3(0x22e)](_0xebd40,_0x4095bd)[_0x326ff3(0x14b)]();}[_0x48e84b(0x193)](_0x247a97,_0x2d566b,_0x4e1d7f){const _0x46aa9b=_0x48e84b;return this['_ensureShapeModelManager'](_0x247a97,_0x2d566b)[_0x46aa9b(0x13e)][_0x46aa9b(0x170)](_0x4e1d7f);}[_0x48e84b(0x184)](_0x310631,_0x12a8f7,_0x518b6a){const _0x37c5a2=_0x48e84b;return this[_0x37c5a2(0x22e)](_0x310631,_0x12a8f7)[_0x37c5a2(0x184)](_0x518b6a);}['getLineShapeRelation'](_0x401b58,_0x3468fd,_0x42b23b){const _0xc988c=_0x48e84b;let _0x1e9442=this['_ensureShapeModelManager'](_0x401b58,_0x3468fd)['_shapes']['get'](_0x42b23b);if(_0x1e9442)return _0x1e9442[_0xc988c(0x196)]();}[_0x48e84b(0x22f)](){}[_0x48e84b(0x19e)](_0x32018e){const _0x2ba2b9=_0x48e84b;let _0x188cad={},_0x386bec=this[_0x2ba2b9(0x1ec)][_0x2ba2b9(0x170)](_0x32018e);return _0x386bec&&_0x386bec['forEach']((_0x3d0067,_0x8aa226)=>{const _0x5ad891=_0x2ba2b9;let _0x18f317=_0x3d0067[_0x5ad891(0x1a5)]();_0x18f317[_0x5ad891(0x162)]>0x0&&(_0x188cad[_0x8aa226]=_0x18f317);}),JSON[_0x2ba2b9(0x21a)](_0x188cad);}[_0x48e84b(0x17f)](_0x1eeace,_0x49c4c5){const _0x3740aa=_0x48e84b;Object[_0x3740aa(0x218)](_0x49c4c5)[_0x3740aa(0x1a4)](_0x1c86cd=>{this['_ensureShapeModelManager'](_0x1eeace,_0x1c86cd)['fromJSON'](_0x49c4c5[_0x1c86cd]);});}[_0x48e84b(0x1a5)](){const _0x578ae8=_0x48e84b;let _0x1de8ba={};return this[_0x578ae8(0x1ec)]['forEach']((_0x8b6f8c,_0x3d713f)=>{const _0x346c18=_0x578ae8;_0x1de8ba[_0x3d713f]={},_0x8b6f8c[_0x346c18(0x1a4)]((_0x53e202,_0xa02897)=>{const _0x3c6e35=_0x346c18;_0x1de8ba[_0x3d713f][_0xa02897]=_0x53e202[_0x3c6e35(0x1a5)]();});}),_0x1de8ba;}[_0x48e84b(0x1f4)](_0x3bb8ab){const _0xd4e81f=_0x48e84b;Object[_0xd4e81f(0x218)](_0x3bb8ab)['forEach'](_0x21f6d2=>{const _0x55925e=_0xd4e81f;let _0x1187d4=_0x3bb8ab[_0x21f6d2];Object[_0x55925e(0x218)](_0x1187d4)['forEach'](_0x1c188f=>{const _0x553f9a=_0x55925e;this['_ensureShapeModelManager'](_0x21f6d2,_0x1c188f)[_0x553f9a(0x1f4)](_0x1187d4[_0x1c188f]);});});}[_0x48e84b(0x1d1)](){const _0x3dde5e=_0x48e84b;this['_resourcesManagerService'][_0x3dde5e(0x161)]({'pluginName':_0x3dde5e(0x1e8),'businesses':[_0x3d49bf[_0x3dde5e(0x14f)]['UNIVER_SHEET']],'toJson':_0x2dad4b=>this['_serializeShapeForUnit'](_0x2dad4b),'parseJson':_0x8c768d=>JSON[_0x3dde5e(0x142)](_0x8c768d),'onLoad':(_0x416fca,_0x1add1c)=>{const _0x46090f=_0x3dde5e;this[_0x46090f(0x17f)](_0x416fca,_0x1add1c);},'onUnLoad':_0xf3013a=>{const _0x21c0a8=_0x3dde5e;let _0x176dbe=this[_0x21c0a8(0x1ec)][_0x21c0a8(0x170)](_0xf3013a);_0x176dbe&&(_0x176dbe[_0x21c0a8(0x1a4)](_0x4d4f9c=>{_0x4d4f9c['dispose']();}),this['_shapeModelManagerMap'][_0x21c0a8(0x1ef)](_0xf3013a));}});}[_0x48e84b(0x220)](){const _0x388103=_0x48e84b;this[_0x388103(0x1ec)][_0x388103(0x1a4)](_0x34689b=>{_0x34689b['forEach'](_0x4e3a05=>{const _0x57e2fd=_0x46ce;_0x4e3a05[_0x57e2fd(0x220)]();});});}};_0x2446f4=_0x1424dc([_0x32f80e(0x0,_0x3d49bf['IResourceManagerService'])],_0x2446f4);let _0x4b1ab6={'id':_0x48e84b(0x178),'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x167)],'handler':(_0x5aa882,_0xa3c626)=>{const _0x432ad5=_0x48e84b;let {unitId:_0x437572,subUnitId:_0x6e6eb,shapeType:_0x447c63,shapeId:_0x18cbef,shapeName:_0x5d7508,shapeData:_0x52f445}=_0xa3c626;return _0x5aa882[_0x432ad5(0x170)](_0x2446f4)[_0x432ad5(0x1a7)](_0x437572,_0x6e6eb,_0x447c63,_0x18cbef,_0x3d49bf[_0x432ad5(0x224)][_0x432ad5(0x1f1)](_0x52f445),_0x5d7508),!0x0;}},_0x5f28b5={'id':_0x48e84b(0x1f8),'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x167)],'handler':(_0x3f1b82,_0x1d09a5)=>{const _0x401f9b=_0x48e84b;let {unitId:_0x35d0a4,subUnitId:_0x92e494,shapeId:_0x361b83}=_0x1d09a5;return _0x3f1b82[_0x401f9b(0x170)](_0x2446f4)[_0x401f9b(0x14a)](_0x35d0a4,_0x92e494,_0x361b83),!0x0;}},_0x4a8d40={'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x20d)],'id':_0x48e84b(0x18e),'handler':(_0x56040d,_0x5954f2)=>{const _0xdeb576=_0x48e84b;let _0x1b1aed=(0x0,_0x48a4c3[_0xdeb576(0x241)])(_0x56040d[_0xdeb576(0x170)](_0x3d49bf['IUniverInstanceService']),_0x5954f2);if(!_0x1b1aed)return!0x1;let _0x4bf52d=_0x56040d[_0xdeb576(0x170)](_0x48a4c3[_0xdeb576(0x1bb)]),{unitId:_0x6f1c8b,subUnitId:_0x4fde45}=_0x1b1aed,_0x5d7551=_0x4bf52d[_0xdeb576(0x234)](_0x6f1c8b,_0x4fde45);if(!_0x5d7551)return!0x1;let _0x5e0a16=_0x56040d[_0xdeb576(0x170)](_0x3d49bf['ICommandService']),_0x314d69=_0x56040d['get'](_0x3d49bf[_0xdeb576(0x247)]),_0x7b3eb3=_0x56040d[_0xdeb576(0x170)](_0x48a4c3[_0xdeb576(0x20f)]),_0x4d27a2=_0x56040d[_0xdeb576(0x170)](_0x1933ae[_0xdeb576(0x1e5)]),_0x1d2c4d=_0x56040d[_0xdeb576(0x170)](_0x2446f4),{shapeType:_0x54fa20,shapeData:_0x284c0a}=_0x5954f2,_0x2dbcf0=_0x5954f2['shapeId']||(0x0,_0x3d49bf[_0xdeb576(0x13b)])(),_0x554be4={'unitId':_0x6f1c8b,'subUnitId':_0x4fde45,'shapeId':_0x2dbcf0,'shapeName':_0x5954f2[_0xdeb576(0x1ee)]??(0x0,_0x5c42ed[_0xdeb576(0x134)])(_0x54fa20,_0x1d2c4d[_0xdeb576(0x14b)](_0x6f1c8b,_0x4fde45)),'shapeType':_0x54fa20,'shapeData':_0x284c0a},_0x4aefcf=_0x5954f2['width']||0xc8,_0x5c742a=_0x5954f2[_0xdeb576(0x179)]||0xc8,_0x5eff17=0x0,_0x1d04c=0x0;if(_0x5954f2[_0xdeb576(0x214)]){let {x:_0x602170,y:_0x198d5d}=_0x5954f2[_0xdeb576(0x214)];_0x5eff17=_0x602170,_0x1d04c=_0x198d5d;}else{if(_0x5954f2['range']){let {startRow:_0x4692ce,startColumn:_0x1f9eeb}=_0x5954f2[_0xdeb576(0x249)],_0x35f469=_0x5d7551['getCellWithCoordByIndex'](_0x4692ce,_0x1f9eeb);_0x5eff17=_0x35f469[_0xdeb576(0x206)]+0xa,_0x1d04c=_0x35f469[_0xdeb576(0x18c)]+0xa;}}let _0x50c1c1={'left':_0x5eff17,'top':_0x1d04c,'width':_0x4aefcf,'height':_0x5c742a,'angle':_0x5954f2[_0xdeb576(0x19d)]??0x0,'flipX':_0x5954f2[_0xdeb576(0x13c)]??!0x1,'flipY':_0x5954f2[_0xdeb576(0x205)]??!0x1},_0x300fc9=(0x0,_0x1933ae[_0xdeb576(0x1ff)])(_0x50c1c1,_0x5d7551),_0x184ac2=(0x0,_0x1933ae[_0xdeb576(0x144)])(_0x50c1c1,_0x5d7551),_0x4477e7={'unitId':_0x6f1c8b,'subUnitId':_0x4fde45,'drawingId':_0x2dbcf0,'drawingType':_0x3d49bf[_0xdeb576(0x1d7)][_0xdeb576(0x21d)],'anchorType':_0x1933ae['SheetDrawingAnchorType'][_0xdeb576(0x1a1)],'name':_0x5954f2['name'],'description':_0x5954f2[_0xdeb576(0x1c2)],'sheetTransform':_0x300fc9,'transform':_0x50c1c1,'data':{'shapeType':_0x54fa20,'shapeData':_0x284c0a},'axisAlignSheetTransform':_0x184ac2,'allowTransform':!0x0,'hidden':_0x5954f2[_0xdeb576(0x22d)]===!0x1,'selectable':_0x5954f2[_0xdeb576(0x17d)]??!0x0};(0x0,_0x5c42ed[_0xdeb576(0x137)])(_0x54fa20)&&(_0x4477e7['data'][_0xdeb576(0x1dc)]=!0x1,_0x4477e7[_0xdeb576(0x215)][_0xdeb576(0x216)]=!0x1,_0x4477e7[_0xdeb576(0x215)][_0xdeb576(0x1e0)]=!0x1,_0x4477e7['data'][_0xdeb576(0x217)]=!0x1,_0x4477e7[_0xdeb576(0x145)]['rotateEnabled']=!0x1,_0x4477e7[_0xdeb576(0x145)][_0xdeb576(0x1e0)]=!0x1,_0x4477e7['transform'][_0xdeb576(0x217)]=!0x1);let {undo:_0x48bd10,redo:_0x5a4643,objects:_0x451e5f}=_0x4d27a2[_0xdeb576(0x1ab)]([_0x4477e7]),_0x476d7d=_0x7b3eb3[_0xdeb576(0x210)]({'id':_0x1933ae['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x6f1c8b,'drawings':[_0x4477e7]}}),_0x341b9c=[..._0x476d7d[_0xdeb576(0x165)]??[],{'id':_0x1933ae['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x6f1c8b,'subUnitId':_0x4fde45,'op':_0x5a4643,'objects':_0x451e5f,'type':_0x1933ae[_0xdeb576(0x177)][_0xdeb576(0x182)]}},{'id':_0x1933ae[_0xdeb576(0x18a)]['id'],'params':[_0x6f1c8b]},..._0x476d7d[_0xdeb576(0x1a0)],{'id':_0x4b1ab6['id'],'params':_0x554be4}],_0x4bd58b=[{'id':_0x5f28b5['id'],'params':{'unitId':_0x6f1c8b,'subUnitId':_0x4fde45,'shapeId':_0x2dbcf0}},..._0x476d7d[_0xdeb576(0x1b3)]??[],{'id':_0x1933ae[_0xdeb576(0x1d4)]['id'],'params':{'unitId':_0x6f1c8b,'subUnitId':_0x4fde45,'op':_0x48bd10,'objects':_0x451e5f,'type':_0x1933ae[_0xdeb576(0x177)][_0xdeb576(0x1af)]}},{'id':_0x1933ae[_0xdeb576(0x18a)]['id'],'params':[_0x6f1c8b]},..._0x476d7d[_0xdeb576(0x1d2)]];return(0x0,_0x3d49bf[_0xdeb576(0x151)])(_0x341b9c,_0x5e0a16)['result']?(_0x314d69['pushUndoRedo']({'unitID':_0x6f1c8b,'undoMutations':_0x4bd58b,'redoMutations':_0x341b9c}),!0x0):!0x1;}},_0x5d54d0={'id':_0x48e84b(0x1ae),'type':_0x3d49bf[_0x48e84b(0x1f7)]['MUTATION'],'handler':(_0x62e176,_0x9f51c7)=>{const _0x12990f=_0x48e84b;let {unitId:_0x4fa46d,subUnitId:_0x4b094a,shapeType:_0xff4a20,shapeId:_0x55381b,shapeData:_0x49bd96,replace:_0x45b6c3,formulaLastValueGuard:_0x261890}=_0x9f51c7,_0x44598a=_0x62e176[_0x12990f(0x170)](_0x2446f4)[_0x12990f(0x193)](_0x4fa46d,_0x4b094a,_0x55381b);if(_0x44598a){var _0xe40bc3;if(!(0x0,_0x5c42ed['canApplyShapeFormulaLastValue'])(_0x62e176,{'hostType':_0x3d49bf[_0x12990f(0x14f)][_0x12990f(0x235)],'unitId':_0x4fa46d,'subUnitId':_0x4b094a,'shapeId':_0x55381b},(_0xe40bc3=_0x44598a[_0x12990f(0x22b)]()[_0x12990f(0x22c)])==null?void 0x0:_0xe40bc3['formula'],_0x261890))return!0x0;_0xff4a20!==void 0x0&&_0x44598a[_0x12990f(0x22f)](_0xff4a20),_0x49bd96&&(_0x44598a==null||_0x44598a[_0x12990f(0x157)](_0x3d49bf['Tools'][_0x12990f(0x1f1)](_0x49bd96),!_0x45b6c3));}return!0x0;}},_0x4de397={'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x20d)],'id':_0x48e84b(0x226),'handler':(_0x55a220,_0x27bf11)=>{const _0x24bdf3=_0x48e84b;let _0x5d16e7=(0x0,_0x48a4c3['getSheetCommandTarget'])(_0x55a220[_0x24bdf3(0x170)](_0x3d49bf[_0x24bdf3(0x197)]),_0x27bf11);if(!_0x5d16e7)return!0x1;let _0x354345=_0x55a220[_0x24bdf3(0x170)](_0x48a4c3[_0x24bdf3(0x1bb)]),{unitId:_0x3cfd6e,subUnitId:_0x412c9c}=_0x5d16e7,_0x32e234=_0x354345[_0x24bdf3(0x234)](_0x3cfd6e,_0x412c9c);if(!_0x32e234)return!0x1;let _0x40c672=_0x55a220[_0x24bdf3(0x170)](_0x2446f4),{shapeId:_0x546c60,shapeType:_0x57faf4,shapeData:_0x1d8c5d,position:_0x21b874,width:_0x4a8113,height:_0x34438a}=_0x27bf11,_0x4496c4=_0x40c672[_0x24bdf3(0x193)](_0x3cfd6e,_0x412c9c,_0x546c60);if(!_0x4496c4)return!0x1;let _0x67c0b7=_0x55a220['get'](_0x3d49bf[_0x24bdf3(0x14d)]),_0xe00f98=_0x55a220[_0x24bdf3(0x170)](_0x3d49bf[_0x24bdf3(0x247)]),_0x54fb99=_0x55a220[_0x24bdf3(0x170)](_0x48a4c3['SheetInterceptorService']),_0x219562=_0x55a220[_0x24bdf3(0x170)](_0x1933ae[_0x24bdf3(0x1e5)]),_0x19bc4c={'unitId':_0x3cfd6e,'subUnitId':_0x412c9c,'shapeId':_0x546c60,'shapeType':_0x57faf4,'shapeData':_0x1d8c5d,'replace':!0x0},_0x1844dc=_0x4496c4[_0x24bdf3(0x19b)](),_0x1c34fa=_0x4496c4[_0x24bdf3(0x22b)](),{x:_0x5065a6,y:_0x794027}=_0x21b874,_0x42045c={'left':_0x5065a6,'top':_0x794027,'width':_0x4a8113,'height':_0x34438a,'angle':_0x27bf11[_0x24bdf3(0x19d)]??0x0,'flipX':_0x27bf11['flipX']??!0x1,'flipY':_0x27bf11[_0x24bdf3(0x205)]??!0x1},_0x334efa=(0x0,_0x1933ae[_0x24bdf3(0x1ff)])(_0x42045c,_0x32e234),_0x101095=(0x0,_0x1933ae['transformToAxisAlignPosition'])(_0x42045c,_0x32e234),_0x38b543={'unitId':_0x3cfd6e,'subUnitId':_0x412c9c,'drawingId':_0x546c60,'drawingType':_0x3d49bf[_0x24bdf3(0x1d7)]['DRAWING_SHAPE'],'name':_0x27bf11[_0x24bdf3(0x185)],'description':_0x27bf11[_0x24bdf3(0x1c2)],'sheetTransform':_0x334efa,'transform':_0x42045c,'data':{'shapeType':_0x57faf4,'shapeData':_0x1d8c5d},'axisAlignSheetTransform':_0x101095,'allowTransform':!0x0,'hidden':!_0x27bf11[_0x24bdf3(0x22d)],'selectable':_0x27bf11[_0x24bdf3(0x17d)]};(0x0,_0x5c42ed[_0x24bdf3(0x137)])(_0x57faf4)&&(_0x38b543[_0x24bdf3(0x215)][_0x24bdf3(0x1dc)]=!0x1,_0x38b543[_0x24bdf3(0x215)]['rotateEnabled']=!0x1,_0x38b543[_0x24bdf3(0x215)][_0x24bdf3(0x1e0)]=!0x1,_0x38b543['data'][_0x24bdf3(0x217)]=!0x1,_0x38b543[_0x24bdf3(0x145)][_0x24bdf3(0x216)]=!0x1,_0x38b543[_0x24bdf3(0x145)][_0x24bdf3(0x1e0)]=!0x1,_0x38b543[_0x24bdf3(0x145)]['borderEnabled']=!0x1);let {undo:_0x38ba53,redo:_0xb2aaf6,objects:_0x5903a1}=_0x219562[_0x24bdf3(0x1e1)]([_0x38b543]),_0x94c8bc=_0x54fb99[_0x24bdf3(0x210)]({'id':_0x1933ae[_0x24bdf3(0x147)]['id'],'params':{'unitId':_0x3cfd6e,'drawings':[_0x38b543]}}),_0x3f3335=[..._0x94c8bc['preRedos']??[],{'id':_0x1933ae[_0x24bdf3(0x1d4)]['id'],'params':{'unitId':_0x3cfd6e,'subUnitId':_0x412c9c,'op':_0xb2aaf6,'objects':_0x5903a1,'type':_0x1933ae[_0x24bdf3(0x177)][_0x24bdf3(0x17a)]}},{'id':_0x1933ae[_0x24bdf3(0x18a)]['id'],'params':[_0x3cfd6e]},..._0x94c8bc[_0x24bdf3(0x1a0)],{'id':_0x5d54d0['id'],'params':_0x19bc4c}],_0x4cd659=[..._0x94c8bc['preUndos']??[],{'id':_0x1933ae[_0x24bdf3(0x1d4)]['id'],'params':{'unitId':_0x3cfd6e,'subUnitId':_0x412c9c,'op':_0x38ba53,'objects':_0x5903a1,'type':_0x1933ae[_0x24bdf3(0x177)][_0x24bdf3(0x17a)]}},{'id':_0x1933ae[_0x24bdf3(0x18a)]['id'],'params':[_0x3cfd6e]},..._0x94c8bc[_0x24bdf3(0x1d2)],{'id':_0x5d54d0['id'],'params':{'unitId':_0x3cfd6e,'subUnitId':_0x412c9c,'shapeType':_0x1844dc,'shapeId':_0x546c60,'shapeData':_0x1c34fa,'replace':!0x0}}];return(0x0,_0x3d49bf[_0x24bdf3(0x151)])(_0x3f3335,_0x67c0b7)[_0x24bdf3(0x1ba)]?(_0xe00f98[_0x24bdf3(0x143)]({'unitID':_0x3cfd6e,'undoMutations':_0x4cd659,'redoMutations':_0x3f3335}),!0x0):!0x1;}},_0x125d3d={'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x20d)],'id':_0x48e84b(0x239),'handler':(_0x34d775,_0x33c52a)=>{const _0x560d36=_0x48e84b;let _0x33e611=(0x0,_0x48a4c3[_0x560d36(0x241)])(_0x34d775['get'](_0x3d49bf[_0x560d36(0x197)]),_0x33c52a);if(!_0x33e611)return!0x1;let _0x39a0c8=_0x34d775[_0x560d36(0x170)](_0x48a4c3[_0x560d36(0x1bb)]),{unitId:_0x51b9f2,subUnitId:_0x5eb50a}=_0x33e611,_0x7e6273=_0x39a0c8['getSkeleton'](_0x51b9f2,_0x5eb50a);if(!_0x7e6273)return!0x1;let _0x42c22a=_0x34d775[_0x560d36(0x170)](_0x1933ae[_0x560d36(0x1e5)]),{shapeId:_0x10e593,flipH:_0x434224,flipV:_0x4c0a45}=_0x33c52a,_0x60445c=_0x42c22a['getDrawingByParam']({'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'drawingId':_0x10e593});if(!_0x60445c)return!0x1;let _0xdae5e7=_0x34d775[_0x560d36(0x170)](_0x2446f4)[_0x560d36(0x193)](_0x51b9f2,_0x5eb50a,_0x10e593);if(!_0xdae5e7)return!0x1;let _0x26105d=_0x34d775['get'](_0x3d49bf[_0x560d36(0x14d)]),_0x5e612f=_0x34d775[_0x560d36(0x170)](_0x3d49bf[_0x560d36(0x247)]),_0x188688=_0x34d775[_0x560d36(0x170)](_0x48a4c3[_0x560d36(0x20f)]),_0x326bfe={..._0x60445c[_0x560d36(0x145)]};_0x434224!==void 0x0&&(_0x326bfe[_0x560d36(0x13c)]=!_0x326bfe[_0x560d36(0x13c)]),_0x4c0a45!==void 0x0&&(_0x326bfe[_0x560d36(0x205)]=!_0x326bfe[_0x560d36(0x205)]);let _0xd02434=(0x0,_0x1933ae[_0x560d36(0x1ff)])(_0x326bfe,_0x7e6273),_0x1de02d=(0x0,_0x1933ae['transformToAxisAlignPosition'])(_0x326bfe,_0x7e6273),_0x385d95=_0xdae5e7['getShapeType'](),_0x1913b5=_0xdae5e7[_0x560d36(0x22b)](),_0x230bf5={'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'drawingId':_0x10e593,'drawingType':_0x3d49bf[_0x560d36(0x1d7)][_0x560d36(0x21d)],'sheetTransform':_0xd02434,'transform':_0x326bfe,'data':{'shapeType':_0x385d95,'shapeData':_0x1913b5},'axisAlignSheetTransform':_0x1de02d,'allowTransform':!0x0},{undo:_0x4b58e8,redo:_0x5f1e99,objects:_0x25cf2c}=_0x42c22a[_0x560d36(0x1e1)]([_0x230bf5]),_0x1ac1cb=_0x188688[_0x560d36(0x210)]({'id':_0x1933ae[_0x560d36(0x147)]['id'],'params':{'unitId':_0x51b9f2,'drawings':[_0x230bf5]}}),_0xa91a6c=[..._0x1ac1cb[_0x560d36(0x165)]??[],{'id':_0x1933ae[_0x560d36(0x1d4)]['id'],'params':{'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'op':_0x5f1e99,'objects':_0x25cf2c,'type':_0x1933ae['DrawingApplyType'][_0x560d36(0x17a)]}},{'id':_0x1933ae[_0x560d36(0x18a)]['id'],'params':[_0x51b9f2]},..._0x1ac1cb[_0x560d36(0x1a0)]],_0x1067bc=[..._0x1ac1cb[_0x560d36(0x1b3)]??[],{'id':_0x1933ae[_0x560d36(0x1d4)]['id'],'params':{'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'op':_0x4b58e8,'objects':_0x25cf2c,'type':_0x1933ae['DrawingApplyType'][_0x560d36(0x17a)]}},{'id':_0x1933ae[_0x560d36(0x18a)]['id'],'params':[_0x51b9f2]},..._0x1ac1cb[_0x560d36(0x1d2)]];if((0x0,_0x5c42ed[_0x560d36(0x137)])(_0x385d95)){let _0x4ea501=_0xdae5e7[_0x560d36(0x196)]();if(_0x4ea501){let _0x1f17dc={..._0x4ea501};_0x1f17dc[_0x560d36(0x236)]=void 0x0,_0x1f17dc['to']=void 0x0,_0xa91a6c[_0x560d36(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'shapeId':_0x10e593,'shapeType':_0x385d95,'shapeData':{'relation':_0x1f17dc}}}),_0x1067bc['push']({'id':_0x5d54d0['id'],'params':{'unitId':_0x51b9f2,'subUnitId':_0x5eb50a,'shapeId':_0x10e593,'shapeType':_0x385d95,'shapeData':{'relation':_0x4ea501}}});}}return(0x0,_0x3d49bf['sequenceExecute'])(_0xa91a6c,_0x26105d)[_0x560d36(0x1ba)]?(_0x5e612f[_0x560d36(0x143)]({'unitID':_0x51b9f2,'undoMutations':_0x1067bc,'redoMutations':_0xa91a6c}),!0x0):!0x1;}},_0x3c707e={'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x20d)],'id':_0x48e84b(0x1eb),'handler':(_0x55fbe4,_0x1901ae)=>{const _0x5123bb=_0x48e84b;let _0x4303cd=(0x0,_0x48a4c3['getSheetCommandTarget'])(_0x55fbe4[_0x5123bb(0x170)](_0x3d49bf['IUniverInstanceService']),_0x1901ae);if(!_0x4303cd)return!0x1;let _0x1befbe=_0x55fbe4[_0x5123bb(0x170)](_0x48a4c3['SheetSkeletonService']),{unitId:_0x3ccc69,subUnitId:_0x4cb659}=_0x4303cd,_0x1cb5d3=_0x1befbe[_0x5123bb(0x1d9)](_0x3ccc69,_0x4cb659);if(!_0x1cb5d3)return!0x1;let _0x49f1ff=_0x55fbe4[_0x5123bb(0x170)](_0x1933ae['ISheetDrawingService']),{shapeId:_0x201c29,rotate:_0x1254c3}=_0x1901ae,_0x5e11dd=_0x49f1ff[_0x5123bb(0x213)]({'unitId':_0x3ccc69,'subUnitId':_0x4cb659,'drawingId':_0x201c29});if(!_0x5e11dd)return!0x1;let _0x258651=_0x55fbe4[_0x5123bb(0x170)](_0x2446f4)['getShapeModel'](_0x3ccc69,_0x4cb659,_0x201c29);if(!_0x258651)return!0x1;let _0x468fc=_0x55fbe4[_0x5123bb(0x170)](_0x3d49bf['ICommandService']),_0x98e269=_0x55fbe4[_0x5123bb(0x170)](_0x3d49bf[_0x5123bb(0x247)]),_0x15e8fa=_0x55fbe4[_0x5123bb(0x170)](_0x48a4c3[_0x5123bb(0x20f)]),_0x2cf17e={..._0x5e11dd['transform']};_0x1254c3!==void 0x0&&(_0x2cf17e[_0x5123bb(0x192)]=(_0x2cf17e[_0x5123bb(0x192)]||0x0)+_0x1254c3);let _0x344d49=(0x0,_0x1933ae[_0x5123bb(0x1ff)])(_0x2cf17e,_0x1cb5d3),_0x5e48eb=(0x0,_0x1933ae[_0x5123bb(0x144)])(_0x2cf17e,_0x1cb5d3),_0x26e076=_0x258651['getShapeType'](),_0x56f3c8=_0x258651[_0x5123bb(0x22b)](),_0x25e14={'unitId':_0x3ccc69,'subUnitId':_0x4cb659,'drawingId':_0x201c29,'drawingType':_0x3d49bf[_0x5123bb(0x1d7)][_0x5123bb(0x21d)],'sheetTransform':_0x344d49,'transform':_0x2cf17e,'data':{'shapeType':_0x26e076,'shapeData':_0x56f3c8},'axisAlignSheetTransform':_0x5e48eb,'allowTransform':!0x0},{undo:_0x160b5c,redo:_0x3b0cf7,objects:_0x561770}=_0x49f1ff[_0x5123bb(0x1e1)]([_0x25e14]),_0x3479ff=_0x15e8fa[_0x5123bb(0x210)]({'id':_0x1933ae[_0x5123bb(0x147)]['id'],'params':{'unitId':_0x3ccc69,'drawings':[_0x25e14]}}),_0x397ebb=[..._0x3479ff[_0x5123bb(0x165)]??[],{'id':_0x1933ae[_0x5123bb(0x1d4)]['id'],'params':{'unitId':_0x3ccc69,'subUnitId':_0x4cb659,'op':_0x3b0cf7,'objects':_0x561770,'type':_0x1933ae[_0x5123bb(0x177)][_0x5123bb(0x17a)]}},{'id':_0x1933ae[_0x5123bb(0x18a)]['id'],'params':[_0x3ccc69]},..._0x3479ff[_0x5123bb(0x1a0)]],_0x3320aa=[..._0x3479ff[_0x5123bb(0x1b3)]??[],{'id':_0x1933ae[_0x5123bb(0x1d4)]['id'],'params':{'unitId':_0x3ccc69,'subUnitId':_0x4cb659,'op':_0x160b5c,'objects':_0x561770,'type':_0x1933ae[_0x5123bb(0x177)][_0x5123bb(0x17a)]}},{'id':_0x1933ae[_0x5123bb(0x18a)]['id'],'params':[_0x3ccc69]},..._0x3479ff[_0x5123bb(0x1d2)]];return(0x0,_0x3d49bf[_0x5123bb(0x151)])(_0x397ebb,_0x468fc)[_0x5123bb(0x1ba)]?(_0x98e269[_0x5123bb(0x143)]({'unitID':_0x3ccc69,'undoMutations':_0x3320aa,'redoMutations':_0x397ebb}),!0x0):!0x1;}},_0x22241e={'type':_0x3d49bf['CommandType'][_0x48e84b(0x20d)],'id':_0x48e84b(0x1fd),'handler':(_0x5c9760,_0x7c94c)=>{const _0x1207aa=_0x48e84b;let _0x419973=(0x0,_0x48a4c3['getSheetCommandTarget'])(_0x5c9760[_0x1207aa(0x170)](_0x3d49bf[_0x1207aa(0x197)]),_0x7c94c);if(!_0x419973)return!0x1;let {unitId:_0x27adff,subUnitId:_0x69f63c}=_0x419973,{shapeId:_0x219692}=_0x7c94c,_0x3d1fd7=_0x5c9760[_0x1207aa(0x170)](_0x2446f4)[_0x1207aa(0x193)](_0x27adff,_0x69f63c,_0x219692);if(!_0x3d1fd7)return!0x1;let _0xbfd32f=_0x3d1fd7[_0x1207aa(0x1e7)](),_0x26357c=(_0xbfd32f==null?void 0x0:_0xbfd32f[_0x1207aa(0x199)])??!0x0,_0x6393a0=!_0x26357c,_0xda8c69=_0x5c9760[_0x1207aa(0x170)](_0x3d49bf['ICommandService']),_0x33959d=_0x5c9760['get'](_0x3d49bf[_0x1207aa(0x247)]),_0x2ae5fd={'unitId':_0x27adff,'subUnitId':_0x69f63c,'shapeId':_0x219692,'shapeData':{'shapeText':{'isHorizontal':_0x6393a0}}},_0x3a7845={'unitId':_0x27adff,'subUnitId':_0x69f63c,'shapeId':_0x219692,'shapeData':{'shapeText':{'isHorizontal':_0x26357c}}},_0x3c61dd=[{'id':_0x5d54d0['id'],'params':_0x2ae5fd}],_0x37a33c=[{'id':_0x5d54d0['id'],'params':_0x3a7845}];return(0x0,_0x3d49bf[_0x1207aa(0x151)])(_0x3c61dd,_0xda8c69)['result']?(_0x33959d[_0x1207aa(0x143)]({'unitID':_0x27adff,'undoMutations':_0x37a33c,'redoMutations':_0x3c61dd}),!0x0):!0x1;}},_0x2e4920={'type':_0x3d49bf[_0x48e84b(0x1f7)]['COMMAND'],'id':_0x48e84b(0x1db),'handler':(_0x19dd04,_0x942bdc)=>{const _0x267c54=_0x48e84b;var _0x48e223;let _0x596c68=(0x0,_0x48a4c3[_0x267c54(0x241)])(_0x19dd04[_0x267c54(0x170)](_0x3d49bf['IUniverInstanceService']),_0x942bdc);if(!_0x596c68)return!0x1;let _0x1245aa=_0x19dd04[_0x267c54(0x170)](_0x48a4c3[_0x267c54(0x1bb)]),{unitId:_0x33da13,subUnitId:_0x1816e0}=_0x596c68,_0xedc995=_0x1245aa[_0x267c54(0x1d9)](_0x33da13,_0x1816e0);if(!_0xedc995)return!0x1;let _0xc84e43=_0x19dd04[_0x267c54(0x170)](_0x1933ae[_0x267c54(0x1e5)]),{connectorShapeId:_0x40211b,width:_0x55ebd3,height:_0x1fc724,left:_0x4d424c,top:_0x31db68,flipX:_0x57789d,flipY:_0x40091b,rotation:_0x550fb4,oldAdjustValues:_0x1f0eb7,newAdjustValues:_0x1cc811,oldLineType:_0x7d8a45,newLineType:_0x12d8a2,oldRelation:_0x14c7a0,newRelation:_0x291037}=_0x942bdc,_0x1c552a=_0xc84e43[_0x267c54(0x213)]({'unitId':_0x33da13,'subUnitId':_0x1816e0,'drawingId':_0x40211b});if(!_0x1c552a)return!0x1;let _0x5f4523=_0x19dd04[_0x267c54(0x170)](_0x2446f4)[_0x267c54(0x193)](_0x33da13,_0x1816e0,_0x40211b);if(!_0x5f4523)return!0x1;let _0x162313=_0x19dd04[_0x267c54(0x170)](_0x3d49bf[_0x267c54(0x14d)]),_0x274114=_0x19dd04[_0x267c54(0x170)](_0x3d49bf[_0x267c54(0x247)]),_0x5c4803=_0x19dd04[_0x267c54(0x170)](_0x48a4c3[_0x267c54(0x20f)]),_0x12b01e={..._0x1c552a[_0x267c54(0x145)],'width':_0x55ebd3,'height':_0x1fc724,'left':_0x4d424c,'top':_0x31db68,'flipX':_0x57789d,'flipY':_0x40091b,'angle':_0x550fb4??((_0x48e223=_0x1c552a[_0x267c54(0x145)])==null?void 0x0:_0x48e223['angle'])??0x0},_0x424f5b=(0x0,_0x1933ae[_0x267c54(0x1ff)])(_0x12b01e,_0xedc995),_0x42dc92=(0x0,_0x1933ae[_0x267c54(0x144)])(_0x12b01e,_0xedc995),_0x483954=_0x5f4523['getShapeType'](),_0x36d2ff=_0x5f4523[_0x267c54(0x22b)](),_0x5da33a={'unitId':_0x33da13,'subUnitId':_0x1816e0,'drawingId':_0x40211b,'drawingType':_0x3d49bf['DrawingTypeEnum'][_0x267c54(0x21d)],'sheetTransform':_0x424f5b,'transform':_0x12b01e,'data':{'shapeType':_0x12d8a2||_0x7d8a45||_0x483954,'shapeData':{..._0x36d2ff,'adjustValues':_0x1cc811||_0x1f0eb7||(_0x36d2ff==null?void 0x0:_0x36d2ff[_0x267c54(0x141)]),'relation':_0x291037||_0x14c7a0||(_0x36d2ff==null?void 0x0:_0x36d2ff[_0x267c54(0x180)])}},'axisAlignSheetTransform':_0x42dc92,'allowTransform':!0x0},{undo:_0x409124,redo:_0x39c85f,objects:_0x5971f6}=_0xc84e43[_0x267c54(0x1e1)]([_0x5da33a]),_0x30f76d=_0x5c4803[_0x267c54(0x210)]({'id':_0x1933ae[_0x267c54(0x147)]['id'],'params':{'unitId':_0x33da13,'drawings':[_0x5da33a]}}),_0x5057dc=[..._0x30f76d[_0x267c54(0x165)]??[],{'id':_0x1933ae[_0x267c54(0x1d4)]['id'],'params':{'unitId':_0x33da13,'subUnitId':_0x1816e0,'op':_0x39c85f,'objects':_0x5971f6,'type':_0x1933ae[_0x267c54(0x177)][_0x267c54(0x17a)]}},{'id':_0x1933ae['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x33da13]},..._0x30f76d[_0x267c54(0x1a0)],{'id':_0x5d54d0['id'],'params':{'unitId':_0x33da13,'subUnitId':_0x1816e0,'shapeId':_0x40211b,'shapeType':_0x12d8a2,'shapeData':{'adjustValues':_0x1cc811,'relation':_0x291037}}}],_0xc6ef18=[..._0x30f76d['preUndos']??[],{'id':_0x1933ae[_0x267c54(0x1d4)]['id'],'params':{'unitId':_0x33da13,'subUnitId':_0x1816e0,'op':_0x409124,'objects':_0x5971f6,'type':_0x1933ae[_0x267c54(0x177)]['UPDATE']}},{'id':_0x1933ae[_0x267c54(0x18a)]['id'],'params':[_0x33da13]},..._0x30f76d[_0x267c54(0x1d2)],{'id':_0x5d54d0['id'],'params':{'unitId':_0x33da13,'subUnitId':_0x1816e0,'shapeId':_0x40211b,'shapeType':_0x483954,'shapeData':{..._0x36d2ff,'adjustValues':_0x1f0eb7||(_0x36d2ff==null?void 0x0:_0x36d2ff[_0x267c54(0x141)]),'relation':_0x14c7a0||(_0x36d2ff==null?void 0x0:_0x36d2ff[_0x267c54(0x180)])}}}];return(0x0,_0x3d49bf[_0x267c54(0x151)])(_0x5057dc,_0x162313)[_0x267c54(0x1ba)]?(_0x274114[_0x267c54(0x143)]({'unitID':_0x33da13,'undoMutations':_0xc6ef18,'redoMutations':_0x5057dc}),!0x0):!0x1;}},_0x1e6cd7={'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x20d)],'id':_0x48e84b(0x23e),'handler':(_0x4f17d7,_0x8856a9)=>{const _0x1c5773=_0x48e84b;let _0x4d6d3f=(0x0,_0x48a4c3[_0x1c5773(0x241)])(_0x4f17d7[_0x1c5773(0x170)](_0x3d49bf[_0x1c5773(0x197)]),_0x8856a9);if(!_0x4d6d3f)return!0x1;let _0x390c26=_0x4f17d7[_0x1c5773(0x170)](_0x48a4c3[_0x1c5773(0x1bb)]),{unitId:_0x241001,subUnitId:_0x15fb47}=_0x4d6d3f,_0x67ac9a=_0x390c26['getSkeleton'](_0x241001,_0x15fb47);if(!_0x67ac9a)return!0x1;let _0x201d36=_0x4f17d7[_0x1c5773(0x170)](_0x1933ae[_0x1c5773(0x1e5)]),{shapeId:_0xad26af,width:_0x211474,height:_0x347f4c,left:_0x599ccf,top:_0x3eb71f,flipX:_0x18bf0f,flipY:_0x4d19f2,angle:_0x539ea5,oldAdjustValues:_0xcb6dbc,newAdjustValues:_0x19754e,oldLineType:_0x1a31e8,newLineType:_0x27cb5f}=_0x8856a9,_0x5413cb=_0x201d36[_0x1c5773(0x213)]({'unitId':_0x241001,'subUnitId':_0x15fb47,'drawingId':_0xad26af});if(!_0x5413cb)return!0x1;let _0x215de3=_0x4f17d7['get'](_0x2446f4)[_0x1c5773(0x193)](_0x241001,_0x15fb47,_0xad26af);if(!_0x215de3)return!0x1;let _0x2d3649=_0x4f17d7[_0x1c5773(0x170)](_0x3d49bf['ICommandService']),_0x4f61d9=_0x4f17d7[_0x1c5773(0x170)](_0x3d49bf[_0x1c5773(0x247)]),_0x22d0f5=_0x4f17d7[_0x1c5773(0x170)](_0x48a4c3['SheetInterceptorService']),_0x2c83df={..._0x5413cb[_0x1c5773(0x145)],'width':_0x211474,'height':_0x347f4c,'left':_0x599ccf,'top':_0x3eb71f,'flipX':_0x18bf0f,'flipY':_0x4d19f2,'angle':_0x539ea5},_0x4996e5=(0x0,_0x1933ae[_0x1c5773(0x1ff)])(_0x2c83df,_0x67ac9a),_0x3f9d75=(0x0,_0x1933ae['transformToAxisAlignPosition'])(_0x2c83df,_0x67ac9a),_0x3eb3ad=_0x215de3[_0x1c5773(0x19b)](),_0x507dee=_0x215de3[_0x1c5773(0x22b)](),_0x237806={'unitId':_0x241001,'subUnitId':_0x15fb47,'drawingId':_0xad26af,'drawingType':_0x3d49bf[_0x1c5773(0x1d7)][_0x1c5773(0x21d)],'sheetTransform':_0x4996e5,'transform':_0x2c83df,'data':{'shapeType':_0x27cb5f||_0x1a31e8||_0x3eb3ad,'shapeData':{..._0x507dee,'adjustValues':_0x19754e||_0xcb6dbc||(_0x507dee==null?void 0x0:_0x507dee[_0x1c5773(0x141)])}},'axisAlignSheetTransform':_0x3f9d75,'allowTransform':!0x0},{undo:_0x5ea309,redo:_0x5ab1f2,objects:_0x1a131b}=_0x201d36[_0x1c5773(0x1e1)]([_0x237806]),_0x30e88e=_0x22d0f5['onCommandExecute']({'id':_0x1933ae[_0x1c5773(0x147)]['id'],'params':{'unitId':_0x241001,'drawings':[_0x237806]}}),_0x5ed574=[..._0x30e88e[_0x1c5773(0x165)]??[],{'id':_0x1933ae[_0x1c5773(0x1d4)]['id'],'params':{'unitId':_0x241001,'subUnitId':_0x15fb47,'op':_0x5ab1f2,'objects':_0x1a131b,'type':_0x1933ae[_0x1c5773(0x177)]['UPDATE']}},{'id':_0x1933ae[_0x1c5773(0x18a)]['id'],'params':[_0x241001]},..._0x30e88e[_0x1c5773(0x1a0)],{'id':_0x5d54d0['id'],'params':{'unitId':_0x241001,'subUnitId':_0x15fb47,'shapeId':_0xad26af,'shapeType':_0x27cb5f,'shapeData':{'adjustValues':_0x19754e}}}],_0x1de4d4=[..._0x30e88e[_0x1c5773(0x1b3)]??[],{'id':_0x1933ae['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x241001,'subUnitId':_0x15fb47,'op':_0x5ea309,'objects':_0x1a131b,'type':_0x1933ae[_0x1c5773(0x177)]['UPDATE']}},{'id':_0x1933ae[_0x1c5773(0x18a)]['id'],'params':[_0x241001]},..._0x30e88e[_0x1c5773(0x1d2)],{'id':_0x5d54d0['id'],'params':{'unitId':_0x241001,'subUnitId':_0x15fb47,'shapeId':_0xad26af,'shapeType':_0x3eb3ad,'shapeData':{..._0x507dee,'adjustValues':_0xcb6dbc||(_0x507dee==null?void 0x0:_0x507dee['adjustValues'])}}}];return(0x0,_0x3d49bf[_0x1c5773(0x151)])(_0x5ed574,_0x2d3649)[_0x1c5773(0x1ba)]?(_0x4f61d9[_0x1c5773(0x143)]({'unitID':_0x241001,'undoMutations':_0x1de4d4,'redoMutations':_0x5ed574}),!0x0):!0x1;}},_0x3bb17a={'id':_0x48e84b(0x1dd),'type':_0x3d49bf[_0x48e84b(0x1f7)][_0x48e84b(0x167)],'handler':(_0x53443c,_0x3347a4)=>{const _0x1729fd=_0x48e84b;let {unitId:_0x10a9cf,subUnitId:_0x1d7812,shapeType:_0x1dc0a4,shapeId:_0xceee51,shapeData:_0x534b0e}=_0x3347a4,_0x1b5844=_0x53443c[_0x1729fd(0x170)](_0x2446f4)[_0x1729fd(0x193)](_0x10a9cf,_0x1d7812,_0xceee51);return _0x1b5844&&(_0x1b5844[_0x1729fd(0x22f)](_0x1dc0a4),_0x534b0e&&(_0x1b5844==null||_0x1b5844[_0x1729fd(0x157)](_0x534b0e))),!0x0;}};var _0x3cbe00=_0x48e84b(0x1ca),_0x114f0d='1.0.0-insiders.20260809-70eefdd';function _0x3f6130(_0x50b371){const _0x33e26a=_0x48e84b;var _0x21090a,_0x59ddcd,_0x1b222b,_0x42fba4,_0x45f709,_0x1344d0,_0x35de61;return{'left':((_0x21090a=_0x50b371['transform'])==null?void 0x0:_0x21090a[_0x33e26a(0x23c)])??0x0,'top':((_0x59ddcd=_0x50b371[_0x33e26a(0x145)])==null?void 0x0:_0x59ddcd[_0x33e26a(0x14c)])??0x0,'width':((_0x1b222b=_0x50b371[_0x33e26a(0x145)])==null?void 0x0:_0x1b222b[_0x33e26a(0x195)])??0xc8,'height':((_0x42fba4=_0x50b371[_0x33e26a(0x145)])==null?void 0x0:_0x42fba4[_0x33e26a(0x179)])??0xc8,'rotation':((_0x45f709=_0x50b371[_0x33e26a(0x145)])==null?void 0x0:_0x45f709[_0x33e26a(0x19d)])??0x0,'flipX':((_0x1344d0=_0x50b371[_0x33e26a(0x145)])==null?void 0x0:_0x1344d0[_0x33e26a(0x13c)])??!0x1,'flipY':((_0x35de61=_0x50b371['transform'])==null?void 0x0:_0x35de61[_0x33e26a(0x205)])??!0x1};}let _0x5b99e6=class{constructor(_0x4d2209,_0x45ce79,_0x3fe172,_0x28b198){const _0x3df566=_0x48e84b;this[_0x3df566(0x1b2)]=_0x4d2209,this['_shapeService']=_0x45ce79,this[_0x3df566(0x1b7)]=_0x3fe172,this[_0x3df566(0x15d)]=_0x28b198,_0x33e1cb(this,_0x3df566(0x1f2),_0x3d49bf[_0x3df566(0x14f)][_0x3df566(0x235)]);}get[_0x48e84b(0x246)](){return{'subscribe':_0x5edc38=>{const _0x2d0d39=_0x46ce;let _0x3e4eda=this[_0x2d0d39(0x1b2)][_0x2d0d39(0x1cc)](_0x2ff6cd=>{const _0x1e4220=_0x2d0d39;(_0x2ff6cd['id']===_0x4b1ab6['id']||_0x2ff6cd['id']===_0x5f28b5['id']||_0x2ff6cd['id']===_0x5d54d0['id']||_0x2ff6cd['id']===_0x3bb17a['id'])&&_0x5edc38({'unitId':_0x2ff6cd['params'][_0x1e4220(0x1a6)]});});return{'unsubscribe':()=>_0x3e4eda[_0x2d0d39(0x220)]()};}};}[_0x48e84b(0x1fe)](_0x491e14){const _0x3468e9=_0x48e84b;var _0x36da1d;let _0x74b593=(_0x36da1d=this[_0x3468e9(0x1b7)][_0x3468e9(0x155)](_0x491e14['unitId'],_0x491e14['subUnitId']))==null?void 0x0:_0x36da1d[_0x491e14[_0x3468e9(0x152)]],_0x23039a=this['_shapeService'][_0x3468e9(0x19b)](_0x491e14[_0x3468e9(0x1a6)],_0x491e14['subUnitId'],_0x491e14[_0x3468e9(0x152)]);if(!_0x74b593||_0x74b593[_0x3468e9(0x1f3)]!==_0x3d49bf['DrawingTypeEnum']['DRAWING_SHAPE']||!_0x23039a)return null;let _0x331fcc=_0x74b593[_0x3468e9(0x145)];return{..._0x491e14,'shapeType':_0x23039a,'shapeData':_0x3d49bf['Tools']['deepClone'](this['_shapeService'][_0x3468e9(0x1c9)](_0x491e14[_0x3468e9(0x1a6)],_0x491e14[_0x3468e9(0x204)],_0x491e14[_0x3468e9(0x152)])??{}),'name':_0x74b593['name'],'description':_0x74b593[_0x3468e9(0x1c2)],'visible':_0x74b593[_0x3468e9(0x227)]!==!0x0,'selectable':_0x74b593[_0x3468e9(0x17d)]!==!0x1,'transform':{'left':(_0x331fcc==null?void 0x0:_0x331fcc['left'])??0x0,'top':(_0x331fcc==null?void 0x0:_0x331fcc['top'])??0x0,'width':(_0x331fcc==null?void 0x0:_0x331fcc[_0x3468e9(0x195)])??0xc8,'height':(_0x331fcc==null?void 0x0:_0x331fcc[_0x3468e9(0x179)])??0xc8,'rotation':(_0x331fcc==null?void 0x0:_0x331fcc['angle'])??0x0,'flipX':(_0x331fcc==null?void 0x0:_0x331fcc['flipX'])??!0x1,'flipY':(_0x331fcc==null?void 0x0:_0x331fcc['flipY'])??!0x1}};}['listShapes'](_0x2288df){const _0x1e32d0=_0x48e84b;let _0x36b9be=this['_drawingService'][_0x1e32d0(0x155)](_0x2288df[_0x1e32d0(0x1a6)],_0x2288df[_0x1e32d0(0x204)])??{};return Object[_0x1e32d0(0x19c)](_0x36b9be)[_0x1e32d0(0x153)](_0x3f53d6=>(_0x3f53d6==null?void 0x0:_0x3f53d6[_0x1e32d0(0x1f3)])===_0x3d49bf[_0x1e32d0(0x1d7)][_0x1e32d0(0x21d)])['map'](_0x922b10=>this['getShape']({..._0x2288df,'shapeId':_0x922b10[_0x1e32d0(0x1ce)]}))[_0x1e32d0(0x153)](_0x214cbc=>!!_0x214cbc);}['listShapesInUnit'](_0x56618d){const _0x2370c5=_0x48e84b;let _0x27e8fb=this[_0x2370c5(0x15d)][_0x2370c5(0x14e)](_0x56618d,_0x3d49bf[_0x2370c5(0x14f)]['UNIVER_SHEET']);return(_0x27e8fb==null?void 0x0:_0x27e8fb[_0x2370c5(0x1a2)]()[_0x2370c5(0x15c)](_0x1d8ea0=>this[_0x2370c5(0x1a9)]({'hostType':this[_0x2370c5(0x1f2)],'unitId':_0x56618d,'subUnitId':_0x1d8ea0['getSheetId']()})))??[];}[_0x48e84b(0x1aa)](_0x26fcdd,_0x1f2b23){const _0xf45ee1=_0x48e84b;let _0x2eb64c=(0x0,_0x3d49bf[_0xf45ee1(0x13b)])(),_0x52d0aa=_0x3f6130(_0x1f2b23);return this[_0xf45ee1(0x1b2)]['syncExecuteCommand'](_0x4a8d40['id'],{'unitId':_0x26fcdd['unitId'],'subUnitId':_0x26fcdd[_0xf45ee1(0x204)],'shapeId':_0x2eb64c,'shapeType':_0x1f2b23[_0xf45ee1(0x211)],'shapeData':_0x1f2b23['shapeData'],'name':_0x1f2b23[_0xf45ee1(0x185)],'description':_0x1f2b23[_0xf45ee1(0x1c2)],'position':{'x':_0x52d0aa['left'],'y':_0x52d0aa[_0xf45ee1(0x14c)]},'width':_0x52d0aa[_0xf45ee1(0x195)],'height':_0x52d0aa[_0xf45ee1(0x179)],'rotation':_0x52d0aa['rotation'],'flipX':_0x52d0aa[_0xf45ee1(0x13c)],'flipY':_0x52d0aa[_0xf45ee1(0x205)],'visible':_0x1f2b23[_0xf45ee1(0x22d)]??!0x0,'selectable':_0x1f2b23['selectable']??!0x0})?{..._0x26fcdd,'shapeId':_0x2eb64c,'shapeType':_0x1f2b23[_0xf45ee1(0x211)],'shapeData':_0x3d49bf['Tools'][_0xf45ee1(0x1f1)](_0x1f2b23[_0xf45ee1(0x242)]??{}),'name':_0x1f2b23[_0xf45ee1(0x185)],'description':_0x1f2b23['description'],'visible':_0x1f2b23['visible']??!0x0,'selectable':_0x1f2b23[_0xf45ee1(0x17d)]??!0x0,'transform':_0x52d0aa}:null;}[_0x48e84b(0x1c8)](_0x56311b,_0x387dab){const _0x56cfde=_0x48e84b;var _0x5beb3f;let _0x561b71=this[_0x56cfde(0x1fe)](_0x56311b);if(!_0x561b71)return!0x1;let _0x595d80={..._0x561b71['transform'],..._0x387dab['transform']};return this['_commandService'][_0x56cfde(0x1e3)](_0x4de397['id'],{'unitId':_0x56311b[_0x56cfde(0x1a6)],'subUnitId':_0x56311b[_0x56cfde(0x204)],'shapeId':_0x56311b[_0x56cfde(0x152)],'shapeType':_0x387dab[_0x56cfde(0x211)]??((_0x5beb3f=_0x387dab[_0x56cfde(0x242)])==null?void 0x0:_0x5beb3f['shapeType'])??_0x561b71[_0x56cfde(0x211)],'shapeData':_0x387dab[_0x56cfde(0x242)]??_0x561b71[_0x56cfde(0x242)],'position':{'x':_0x595d80[_0x56cfde(0x23c)],'y':_0x595d80[_0x56cfde(0x14c)]},'width':_0x595d80[_0x56cfde(0x195)],'height':_0x595d80[_0x56cfde(0x179)],'rotation':_0x595d80[_0x56cfde(0x19d)],'flipX':_0x595d80['flipX'],'flipY':_0x595d80[_0x56cfde(0x205)],'name':_0x56cfde(0x185)in _0x387dab?_0x387dab[_0x56cfde(0x185)]:_0x561b71[_0x56cfde(0x185)],'description':'description'in _0x387dab?_0x387dab[_0x56cfde(0x1c2)]:_0x561b71[_0x56cfde(0x1c2)],'visible':_0x387dab[_0x56cfde(0x22d)]??_0x561b71[_0x56cfde(0x22d)],'selectable':_0x387dab[_0x56cfde(0x17d)]??_0x561b71[_0x56cfde(0x17d)]});}[_0x48e84b(0x237)](_0x25470c,_0x8fe543,_0x1ac2a6){const _0x2c8bb7=_0x48e84b;let _0x4333f2=this[_0x2c8bb7(0x1fe)](_0x25470c),_0x36680a=_0x4333f2==null?void 0x0:_0x4333f2[_0x2c8bb7(0x242)][_0x2c8bb7(0x22c)];return!_0x4333f2||!_0x36680a?null:{'id':_0x5d54d0['id'],'params':{'unitId':_0x25470c[_0x2c8bb7(0x1a6)],'subUnitId':_0x25470c['subUnitId'],'shapeId':_0x25470c[_0x2c8bb7(0x152)],'shapeData':{..._0x4333f2['shapeData'],'formulaBinding':{..._0x36680a,'lastValue':_0x3d49bf[_0x2c8bb7(0x224)][_0x2c8bb7(0x1f1)](_0x1ac2a6)}},'replace':!0x0,'formulaLastValueGuard':_0x8fe543}};}['removeShape'](_0x4c422b){const _0x41d24f=_0x48e84b;return this[_0x41d24f(0x1b2)]['syncExecuteCommand'](_0x1933ae[_0x41d24f(0x136)]['id'],{'unitId':_0x4c422b[_0x41d24f(0x1a6)],'drawings':[{'unitId':_0x4c422b[_0x41d24f(0x1a6)],'subUnitId':_0x4c422b['subUnitId'],'drawingId':_0x4c422b[_0x41d24f(0x152)],'drawingType':_0x3d49bf['DrawingTypeEnum'][_0x41d24f(0x21d)]}]});}[_0x48e84b(0x1c3)](_0x4d294d){const _0xed5364=_0x48e84b;return this[_0xed5364(0x1c5)](_0x4d294d,_0x3d49bf[_0xed5364(0x15b)][_0xed5364(0x16f)]);}[_0x48e84b(0x23b)](_0x307592){const _0x1435b1=_0x48e84b;return this[_0x1435b1(0x1c5)](_0x307592,_0x3d49bf['ArrangeTypeEnum'][_0x1435b1(0x135)]);}[_0x48e84b(0x20b)](_0xe87660){const _0x5ed1ae=_0x48e84b;return this['_arrange'](_0xe87660,_0x3d49bf[_0x5ed1ae(0x15b)][_0x5ed1ae(0x16c)]);}[_0x48e84b(0x1b4)](_0x385062){const _0x37fbe1=_0x48e84b;return this[_0x37fbe1(0x1c5)](_0x385062,_0x3d49bf[_0x37fbe1(0x15b)][_0x37fbe1(0x1cb)]);}[_0x48e84b(0x1c5)](_0x4db72f,_0xa66a3d){const _0x262951=_0x48e84b;return this['_commandService']['syncExecuteCommand'](_0x1933ae['SetDrawingArrangeCommand']['id'],{'unitId':_0x4db72f[_0x262951(0x1a6)],'subUnitId':_0x4db72f['subUnitId'],'drawingIds':[_0x4db72f[_0x262951(0x152)]],'arrangeType':_0xa66a3d});}};_0x5b99e6=_0x1424dc([_0x32f80e(0x0,_0x3d49bf[_0x48e84b(0x14d)]),_0x32f80e(0x1,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x2446f4)),_0x32f80e(0x2,_0x1933ae[_0x48e84b(0x1e5)]),_0x32f80e(0x3,_0x3d49bf[_0x48e84b(0x197)])],_0x5b99e6);let _0x1fc6a5={},_0x5c611e=class extends _0x3d49bf[_0x48e84b(0x1c1)]{constructor(_0x2200e9,_0x24eb7f,_0x59d020,_0x205a04,_0x40a475,_0x5760f5,_0xace08b){const _0x5bbb37=_0x48e84b;super(),this[_0x5bbb37(0x1b2)]=_0x2200e9,this[_0x5bbb37(0x1df)]=_0x24eb7f,this[_0x5bbb37(0x150)]=_0x59d020,this[_0x5bbb37(0x160)]=_0x205a04,this[_0x5bbb37(0x23a)]=_0x40a475,this[_0x5bbb37(0x171)]=_0x5760f5,this[_0x5bbb37(0x248)](),this[_0x5bbb37(0x231)](),this['disposeWithMe'](this[_0x5bbb37(0x171)]['register'](_0xace08b));}['_initCommands'](){const _0x2313a1=_0x48e84b;[_0x4a8d40,_0x4de397,_0x125d3d,_0x3c707e,_0x22241e,_0x2e4920,_0x1e6cd7,_0x4b1ab6,_0x5f28b5,_0x3bb17a,_0x5d54d0][_0x2313a1(0x1a4)](_0x398a81=>this[_0x2313a1(0x1f9)](this[_0x2313a1(0x1b2)]['registerCommand'](_0x398a81)));}['_initCommandInterceptor'](){const _0x5847ba=_0x48e84b;this[_0x5847ba(0x1f9)](this[_0x5847ba(0x1df)][_0x5847ba(0x21f)]({'getMutations':_0x152849=>{const _0x5314c4=_0x5847ba;if(_0x152849['id']===_0x1933ae['RemoveSheetDrawingCommand']['id']){let {drawings:_0xc67e56}=_0x152849[_0x5314c4(0x225)],_0x35f08c=_0xc67e56[_0x5314c4(0x153)](_0x16494a=>_0x16494a['drawingType']===_0x3d49bf[_0x5314c4(0x1d7)][_0x5314c4(0x21d)]);if(_0x35f08c[_0x5314c4(0x162)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x241b95=[],_0x2bd537=[];return _0x35f08c[_0x5314c4(0x1a4)](_0x2848f7=>{const _0x54e416=_0x5314c4;let {unitId:_0x559aaa,subUnitId:_0x1d75a4,drawingId:_0x457433}=_0x2848f7,_0x5a51d8=this[_0x54e416(0x160)]['getShapeModel'](_0x559aaa,_0x1d75a4,_0x457433);if(!_0x5a51d8)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x5a51d8);_0x241b95[_0x54e416(0x17e)]({'id':_0x5f28b5['id'],'params':{'unitId':_0x559aaa,'subUnitId':_0x1d75a4,'shapeId':_0x457433}}),_0x2bd537['push']({'id':_0x4b1ab6['id'],'params':{'unitId':_0x559aaa,'subUnitId':_0x1d75a4,'shapeId':_0x457433,'shapeType':_0x5a51d8[_0x54e416(0x19b)](),'shapeData':_0x5a51d8[_0x54e416(0x22b)]()}});let _0x42d351=this[_0x54e416(0x160)][_0x54e416(0x184)](_0x559aaa,_0x1d75a4,_0x457433);if(_0x42d351)for(let _0x26d910 of _0x42d351){let _0x4e8b48=_0x26d910[_0x54e416(0x1c0)],_0xe4d617=_0x26d910[_0x54e416(0x208)],_0x23d1e2=_0xe4d617?{'from':void 0x0}:{'to':void 0x0},_0x573579=_0xe4d617?{'from':{'shapeId':_0x26d910[_0x54e416(0x152)],'cxnIndex':_0x26d910[_0x54e416(0x1c7)]}}:{'to':{'shapeId':_0x26d910[_0x54e416(0x152)],'cxnIndex':_0x26d910[_0x54e416(0x1c7)]}};_0x241b95['push']({'id':_0x5d54d0['id'],'params':{'unitId':_0x559aaa,'subUnitId':_0x1d75a4,'shapeId':_0x4e8b48,'shapeData':{'relation':_0x23d1e2}}}),_0x2bd537[_0x54e416(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x559aaa,'subUnitId':_0x1d75a4,'shapeId':_0x4e8b48,'shapeData':{'relation':_0x573579}}});}}),{'preRedos':_0x241b95,'redos':[],'preUndos':[],'undos':_0x2bd537};}if(_0x152849['id']===_0x1933ae['SetSheetDrawingCommand']['id']){let {drawings:_0x12b4cf}=_0x152849['params'],_0x25eddd=_0x12b4cf[_0x5314c4(0x153)](_0x2a50ed=>_0x2a50ed[_0x5314c4(0x1f3)]===_0x3d49bf[_0x5314c4(0x1d7)][_0x5314c4(0x21d)]);if(_0x25eddd[_0x5314c4(0x162)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0xe02078=[],_0x472952=[];for(let _0x3c3369 of _0x25eddd){let {unitId:_0x365f7a,subUnitId:_0x21c1c4,drawingId:_0x2c545e,transform:_0x8bbad2}=_0x3c3369;if(!_0x365f7a||!_0x21c1c4||!_0x2c545e||!_0x8bbad2)continue;let _0x2699e3=this['_sheetsShapeService'][_0x5314c4(0x193)](_0x365f7a,_0x21c1c4,_0x2c545e);if(!_0x2699e3)throw TypeError(_0x5314c4(0x19a)+_0x2699e3);if((0x0,_0x5c42ed[_0x5314c4(0x137)])(_0x2699e3['getShapeType']())){let _0x4cd1a8=this[_0x5314c4(0x160)]['getLineShapeRelation'](_0x365f7a,_0x21c1c4,_0x2c545e);_0x4cd1a8&&(_0xe02078[_0x5314c4(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x365f7a,'subUnitId':_0x21c1c4,'shapeId':_0x2c545e,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x472952[_0x5314c4(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x365f7a,'subUnitId':_0x21c1c4,'shapeId':_0x2c545e,'shapeData':{'relation':_0x4cd1a8}}}));}else{let _0x33bb2c=this[_0x5314c4(0x160)][_0x5314c4(0x184)](_0x365f7a,_0x21c1c4,_0x2c545e);if(_0x33bb2c&&_0x33bb2c[_0x5314c4(0x162)]>0x0)for(let _0x60cc54 of _0x33bb2c){let _0x4d9a0e=_0x60cc54[_0x5314c4(0x1c0)],_0xc9b4df=_0x60cc54[_0x5314c4(0x208)],_0x441e94=this[_0x5314c4(0x160)][_0x5314c4(0x193)](_0x365f7a,_0x21c1c4,_0x4d9a0e);if(!_0x441e94)continue;let _0x1db889=_0x441e94[_0x5314c4(0x16e)](),_0x57ea5f=_0x441e94[_0x5314c4(0x16b)]();_0x1db889&&_0x57ea5f?this[_0x5314c4(0x230)](_0x365f7a,_0x21c1c4,_0x4d9a0e,_0x441e94,_0x1db889,_0x57ea5f,_0xe02078,_0x472952,_0x2c545e,_0x8bbad2):this[_0x5314c4(0x200)](_0x365f7a,_0x21c1c4,_0x4d9a0e,_0x441e94,_0xc9b4df?_0x1db889:_0x57ea5f,_0xc9b4df,_0xe02078,_0x472952,_0x2c545e,_0x8bbad2);}}}return{'preRedos':[],'redos':_0xe02078,'preUndos':_0x472952,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x48e84b(0x194)](_0x4edf05,_0x488434,_0x1b8bff,_0x2b89a2,_0x5b80bb){const _0x26eb1c=_0x48e84b;if(!_0x488434||!_0x1b8bff)return null;let {shapeId:_0x56e3e6,cxnIndex:_0x1d3af6}=_0x4edf05,_0x4a6b53=this[_0x26eb1c(0x160)]['getShapeModel'](_0x488434,_0x1b8bff,_0x56e3e6);if(!_0x4a6b53)return null;let _0x301914=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x488434,'subUnitId':_0x1b8bff,'drawingId':_0x56e3e6});if(!(_0x301914!=null&&_0x301914[_0x26eb1c(0x145)]))return null;let {left:_0x596f2d=0x0,top:_0xcd21be=0x0,width:_0x30ca43=0x0,height:_0x1deb29=0x0,flipX:_0x211e26=!0x1,flipY:_0x5a32f8=!0x1,angle:_0x4f7d4a}=_0x301914['transform'];_0x5b80bb&&_0x2b89a2===_0x56e3e6&&(_0x596f2d=_0x5b80bb['left']??_0x596f2d,_0xcd21be=_0x5b80bb[_0x26eb1c(0x14c)]??_0xcd21be,_0x30ca43=_0x5b80bb[_0x26eb1c(0x195)]??_0x30ca43,_0x1deb29=_0x5b80bb[_0x26eb1c(0x179)]??_0x1deb29,_0x211e26=_0x5b80bb[_0x26eb1c(0x13c)]??_0x211e26,_0x5a32f8=_0x5b80bb[_0x26eb1c(0x205)]??_0x5a32f8,_0x4f7d4a=_0x5b80bb[_0x26eb1c(0x192)]??_0x4f7d4a),_0x4a6b53['updateContext']({'width':_0x30ca43,'height':_0x1deb29});let _0x54e43c=_0x4a6b53[_0x26eb1c(0x219)]()['find'](_0x41710f=>_0x41710f['index']===_0x1d3af6);if(!_0x54e43c)return null;let _0x29e52f=_0x211e26?_0x30ca43-_0x54e43c['x']:_0x54e43c['x'],_0x5ab6a1=_0x5a32f8?_0x1deb29-_0x54e43c['y']:_0x54e43c['y'];if(_0x4f7d4a!==0x0&&_0x4f7d4a!=null){let _0x531aa1=_0x4f7d4a*Math['PI']/0xb4,_0x2eb421=Math[_0x26eb1c(0x221)](_0x531aa1),_0x716d91=Math['sin'](_0x531aa1),_0xc68ae6=_0x30ca43/0x2,_0x369962=_0x1deb29/0x2,_0x2b402b=_0x29e52f-_0xc68ae6,_0x17fa7d=_0x5ab6a1-_0x369962;_0x29e52f=_0xc68ae6+_0x2b402b*_0x2eb421-_0x17fa7d*_0x716d91,_0x5ab6a1=_0x369962+_0x2b402b*_0x716d91+_0x17fa7d*_0x2eb421;}_0x29e52f+=_0x596f2d,_0x5ab6a1+=_0xcd21be;let _0x90a68=_0x54e43c['ang']/0xea60;_0x211e26&&(_0x90a68=0xb4-_0x90a68),_0x5a32f8&&(_0x90a68=-_0x90a68),_0x90a68+=_0x4f7d4a||0x0,_0x90a68=(_0x90a68%0x168+0x168)%0x168;let _0x40110d=(0x0,_0x5c42ed[_0x26eb1c(0x149)])({'left':_0x596f2d,'top':_0xcd21be,'width':_0x30ca43,'height':_0x1deb29},_0x4f7d4a||0x0);return{'point':{'x':_0x29e52f,'y':_0x5ab6a1},'angle':_0x90a68,'bounds':_0x40110d};}['_addLineRerouteUpdates'](_0x3c79f6,_0x276e4b,_0x3d55d3,_0x227802,_0x5b7713,_0x182764,_0x2dcaf2,_0x5317e9,_0x5736e0,_0x5af43d){const _0x1f2e45=_0x48e84b;let _0x2a321b=this[_0x1f2e45(0x150)][_0x1f2e45(0x1d9)](_0x3c79f6,_0x276e4b);if(!_0x2a321b)return;let _0xf67485=_0x227802[_0x1f2e45(0x196)](),_0x1656e0=_0x227802[_0x1f2e45(0x20e)](),_0x47fa7c={},_0x183e44={};_0x1656e0['forEach'](_0x59c7f3=>{const _0x31e609=_0x1f2e45;let _0x55b8a9=_0x227802[_0x31e609(0x1de)](_0x59c7f3);_0x183e44[_0x59c7f3]=_0x55b8a9??0x0;});let _0x2c94f9=this[_0x1f2e45(0x194)](_0x5b7713,_0x3c79f6,_0x276e4b,_0x5736e0,_0x5af43d),_0x72bdd1=this[_0x1f2e45(0x194)](_0x182764,_0x3c79f6,_0x276e4b,_0x5736e0,_0x5af43d);if(_0x2c94f9&&_0x72bdd1){let _0x4e366a=_0x227802[_0x1f2e45(0x19b)](),_0x6050ae=(0x0,_0x5c42ed[_0x1f2e45(0x173)])(_0x2c94f9,_0x72bdd1,_0x4e366a),_0x34d0d9=_0x4e366a;if(_0x6050ae){let _0x5c4609=(0x0,_0x5c42ed[_0x1f2e45(0x23f)])(_0x6050ae,_0x227802[_0x1f2e45(0x19b)]()),_0x1d931f=this[_0x1f2e45(0x23a)][_0x1f2e45(0x155)](_0x3c79f6,_0x276e4b);if(_0x1d931f&&_0x1d931f[_0x3d55d3]){let _0x4db183=_0x1d931f[_0x3d55d3];_0x34d0d9=_0x5c4609[_0x1f2e45(0x1e2)];for(let [_0x10ca7e,_0x4f981d]of Object['entries'](_0x5c4609[_0x1f2e45(0x141)]))_0x47fa7c[_0x10ca7e]=_0x4f981d;let _0x4b1210={..._0x4db183[_0x1f2e45(0x145)],'width':_0x5c4609[_0x1f2e45(0x16d)][_0x1f2e45(0x195)],'height':_0x5c4609['worldRect']['height'],'left':_0x5c4609[_0x1f2e45(0x16d)]['left'],'top':_0x5c4609['worldRect'][_0x1f2e45(0x14c)],'flipX':_0x5c4609[_0x1f2e45(0x16d)][_0x1f2e45(0x13c)],'flipY':_0x5c4609['worldRect'][_0x1f2e45(0x205)],'angle':_0x5c4609[_0x1f2e45(0x19d)]},_0x4f3088=(0x0,_0x1933ae[_0x1f2e45(0x1ff)])(_0x4b1210,_0x2a321b),_0x46fd92=(0x0,_0x1933ae[_0x1f2e45(0x144)])(_0x4b1210,_0x2a321b),_0x269c75={'unitId':_0x3c79f6,'subUnitId':_0x276e4b,'drawingType':_0x3d49bf[_0x1f2e45(0x1d7)][_0x1f2e45(0x21d)],'drawingId':_0x3d55d3,'transform':_0x4b1210,'sheetTransform':_0x4f3088,'axisAlignSheetTransform':_0x46fd92},{unitId:_0x4dc74e,subUnitId:_0x3f614c,undo:_0x55fba4,redo:_0x1df977,objects:_0x5f23be}=this['_drawingManagerService']['getBatchUpdateOp']([_0x269c75]);_0x2dcaf2[_0x1f2e45(0x17e)]({'id':_0x1933ae[_0x1f2e45(0x1d4)]['id'],'params':{'unitId':_0x4dc74e,'subUnitId':_0x3f614c,'op':_0x1df977,'objects':_0x5f23be,'type':_0x1933ae[_0x1f2e45(0x177)]['UPDATE']}}),_0x5317e9[_0x1f2e45(0x17e)]({'id':_0x1933ae['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4dc74e,'subUnitId':_0x3f614c,'op':_0x55fba4,'objects':_0x5f23be,'type':_0x1933ae[_0x1f2e45(0x177)][_0x1f2e45(0x17a)]}});}_0x227802['removeLinePoints']();}_0x2dcaf2[_0x1f2e45(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x3c79f6,'subUnitId':_0x276e4b,'shapeId':_0x3d55d3,'shapeType':_0x34d0d9,'shapeData':{'adjustValues':_0x47fa7c,'relation':_0xf67485}}}),_0x5317e9['push']({'id':_0x5d54d0['id'],'params':{'unitId':_0x3c79f6,'subUnitId':_0x276e4b,'shapeId':_0x3d55d3,'shapeType':_0x4e366a,'shapeData':{'adjustValues':_0x183e44,'relation':_0xf67485}}});}}[_0x48e84b(0x200)](_0x652673,_0xbb551d,_0x456de6,_0x495e04,_0x37371b,_0x377eb4,_0x49e13c,_0x46b04b,_0xeda0dc,_0x3d5497){const _0x3ddaef=_0x48e84b;var _0x1b4b75;if(!_0x37371b)return;let _0x1e80af=this[_0x3ddaef(0x150)]['getSkeleton'](_0x652673,_0xbb551d);if(!_0x1e80af)return;let _0x1de3cb=(_0x1b4b75=this[_0x3ddaef(0x23a)]['getDrawingByParam']({'unitId':_0x652673,'subUnitId':_0xbb551d,'drawingId':_0xeda0dc}))==null?void 0x0:_0x1b4b75[_0x3ddaef(0x145)];if(!_0x1de3cb)return;let _0x1e3e42=_0x1de3cb['left']!==_0x3d5497[_0x3ddaef(0x23c)]||_0x1de3cb[_0x3ddaef(0x14c)]!==_0x3d5497['top'],_0x1d2a9e=_0x1de3cb[_0x3ddaef(0x195)]!==_0x3d5497[_0x3ddaef(0x195)]||_0x1de3cb[_0x3ddaef(0x179)]!==_0x3d5497[_0x3ddaef(0x179)],_0x2cb317=_0x1de3cb[_0x3ddaef(0x13c)]!==_0x3d5497[_0x3ddaef(0x13c)]||_0x1de3cb[_0x3ddaef(0x205)]!==_0x3d5497[_0x3ddaef(0x205)],_0x1860ad=_0x1de3cb[_0x3ddaef(0x192)]!==_0x3d5497[_0x3ddaef(0x192)];if(_0x1e3e42&&!_0x1d2a9e&&!_0x2cb317&&!_0x1860ad){let _0x23cca8=(_0x3d5497[_0x3ddaef(0x23c)]??0x0)-(_0x1de3cb[_0x3ddaef(0x23c)]??0x0),_0x228c5d=(_0x3d5497[_0x3ddaef(0x14c)]??0x0)-(_0x1de3cb[_0x3ddaef(0x14c)]??0x0),_0x3a33e3=this[_0x3ddaef(0x23a)][_0x3ddaef(0x155)](_0x652673,_0xbb551d);if(_0x3a33e3&&_0x3a33e3[_0x456de6]){var _0x3a8dd5,_0x4d18ed;let _0x58f88d=_0x3a33e3[_0x456de6],_0x57d811={..._0x58f88d[_0x3ddaef(0x145)],'left':(((_0x3a8dd5=_0x58f88d[_0x3ddaef(0x145)])==null?void 0x0:_0x3a8dd5[_0x3ddaef(0x23c)])??0x0)+_0x23cca8,'top':(((_0x4d18ed=_0x58f88d[_0x3ddaef(0x145)])==null?void 0x0:_0x4d18ed['top'])??0x0)+_0x228c5d},_0x231e50=(0x0,_0x1933ae[_0x3ddaef(0x1ff)])(_0x57d811,_0x1e80af),_0x5b7163=(0x0,_0x1933ae[_0x3ddaef(0x144)])(_0x57d811,_0x1e80af),_0x4e41cb={'unitId':_0x652673,'subUnitId':_0xbb551d,'drawingType':_0x3d49bf['DrawingTypeEnum'][_0x3ddaef(0x21d)],'drawingId':_0x456de6,'transform':_0x57d811,'sheetTransform':_0x231e50,'axisAlignSheetTransform':_0x5b7163},{unitId:_0x288a99,subUnitId:_0x2e4389,undo:_0x16a0e4,redo:_0x224106,objects:_0x54fda9}=this[_0x3ddaef(0x23a)][_0x3ddaef(0x1e1)]([_0x4e41cb]);_0x49e13c[_0x3ddaef(0x17e)]({'id':_0x1933ae[_0x3ddaef(0x1d4)]['id'],'params':{'unitId':_0x288a99,'subUnitId':_0x2e4389,'op':_0x224106,'objects':_0x54fda9,'type':_0x1933ae['DrawingApplyType'][_0x3ddaef(0x17a)]}}),_0x46b04b[_0x3ddaef(0x17e)]({'id':_0x1933ae[_0x3ddaef(0x1d4)]['id'],'params':{'unitId':_0x288a99,'subUnitId':_0x2e4389,'op':_0x16a0e4,'objects':_0x54fda9,'type':_0x1933ae['DrawingApplyType'][_0x3ddaef(0x17a)]}});}}else{let _0x219e3b=_0x495e04[_0x3ddaef(0x16e)](),_0xa54d7b=_0x495e04[_0x3ddaef(0x16b)]();this[_0x3ddaef(0x230)](_0x652673,_0xbb551d,_0x456de6,_0x495e04,_0x219e3b,_0xa54d7b,_0x49e13c,_0x46b04b,_0xeda0dc,_0x3d5497);}}};_0x5c611e=_0x1424dc([_0x32f80e(0x0,_0x3d49bf[_0x48e84b(0x14d)]),_0x32f80e(0x1,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x48a4c3['SheetInterceptorService'])),_0x32f80e(0x2,(0x0,_0x3d49bf['Inject'])(_0x48a4c3[_0x48e84b(0x1bb)])),_0x32f80e(0x3,(0x0,_0x3d49bf['Inject'])(_0x2446f4)),_0x32f80e(0x4,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x4c491c[_0x48e84b(0x17b)])),_0x32f80e(0x5,(0x0,_0x3d49bf['Inject'])(_0x5c42ed[_0x48e84b(0x1bf)])),_0x32f80e(0x6,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x5b99e6))],_0x5c611e);let _0xa5451a=class extends _0x3d49bf[_0x48e84b(0x1c1)]{constructor(_0x2f67ee,_0x40c65d,_0x4759d1){const _0x588c6a=_0x48e84b;super(),this[_0x588c6a(0x244)]=_0x2f67ee,this['_shapeAdapter']=_0x40c65d,this['disposeWithMe'](_0x4759d1[_0x588c6a(0x1ed)](this));}[_0x48e84b(0x145)](_0xec4c7a){const _0x545159=_0x48e84b;let _0x425112={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x545159(0x1b8)](_0xec4c7a,_0x425112);for(let [_0x400b61,_0x2b3a94]of _0xec4c7a[_0x545159(0x22a)])this['_planConnector'](_0xec4c7a,_0x400b61,_0x2b3a94,_0x425112);return _0x425112;}['_planDeletes'](_0x3f9452,_0x48fc36){const _0x1301af=_0x48e84b;if(_0x3f9452[_0x1301af(0x15a)]===_0x1301af(0x139))for(let _0x1d2a8b of _0x3f9452[_0x1301af(0x238)]){let _0x3134b6=_0x3f9452[_0x1301af(0x22a)]['get'](_0x1d2a8b),_0x90021b=this['_shapeService'][_0x1301af(0x193)](_0x3f9452[_0x1301af(0x1a6)],_0x3f9452[_0x1301af(0x204)],_0x1d2a8b);(_0x3134b6==null?void 0x0:_0x3134b6['drawingType'])!==_0x3d49bf[_0x1301af(0x1d7)][_0x1301af(0x21d)]||!_0x90021b||(_0x48fc36[_0x1301af(0x165)][_0x1301af(0x17e)]({'id':_0x5f28b5['id'],'params':{'unitId':_0x3f9452[_0x1301af(0x1a6)],'subUnitId':_0x3f9452[_0x1301af(0x204)],'shapeId':_0x1d2a8b}}),_0x48fc36['undos'][_0x1301af(0x17e)]({'id':_0x4b1ab6['id'],'params':{'unitId':_0x3f9452[_0x1301af(0x1a6)],'subUnitId':_0x3f9452[_0x1301af(0x204)],'shapeId':_0x1d2a8b,'shapeName':_0x90021b[_0x1301af(0x1be)](),'shapeType':_0x90021b[_0x1301af(0x19b)](),'shapeData':_0x3d49bf[_0x1301af(0x224)][_0x1301af(0x1f1)](_0x90021b[_0x1301af(0x22b)]())}}));}}['_planConnector'](_0x4f7236,_0x2f368b,_0x5593ec,_0x4d1706){const _0x52899a=_0x48e84b;if(_0x5593ec['drawingType']!==_0x3d49bf[_0x52899a(0x1d7)]['DRAWING_SHAPE']||_0x4f7236[_0x52899a(0x238)][_0x52899a(0x158)](_0x2f368b))return;let _0x492df4=this[_0x52899a(0x244)][_0x52899a(0x193)](_0x4f7236[_0x52899a(0x1a6)],_0x4f7236[_0x52899a(0x204)],_0x2f368b);if(!_0x492df4||!(0x0,_0x5c42ed['isConnectorShape'])(_0x492df4[_0x52899a(0x19b)]()))return;let _0x2315e0=_0x492df4['getShapeRelation']();if(!(_0x4f7236[_0x52899a(0x187)]['has'](_0x2f368b)||_0x2315e0!=null&&_0x2315e0[_0x52899a(0x236)]&&(_0x4f7236[_0x52899a(0x187)][_0x52899a(0x158)](_0x2315e0[_0x52899a(0x236)][_0x52899a(0x152)])||_0x4f7236[_0x52899a(0x238)][_0x52899a(0x158)](_0x2315e0[_0x52899a(0x236)][_0x52899a(0x152)]))||_0x2315e0!=null&&_0x2315e0['to']&&(_0x4f7236['updates'][_0x52899a(0x158)](_0x2315e0['to'][_0x52899a(0x152)])||_0x4f7236[_0x52899a(0x238)][_0x52899a(0x158)](_0x2315e0['to'][_0x52899a(0x152)]))))return;let _0xb0a283=_0x4f7236[_0x52899a(0x187)][_0x52899a(0x170)](_0x2f368b)??_0x5593ec,_0x3c9b4b=this[_0x52899a(0x18b)](_0x4f7236,_0xb0a283);if(!_0x3c9b4b)return;let _0x398142=(0x0,_0x5c42ed[_0x52899a(0x166)])(_0x3c9b4b);if(_0x398142[_0x52899a(0x162)]<0x2)return;let _0x1c362b=_0x3d49bf[_0x52899a(0x224)][_0x52899a(0x1f1)](_0x2315e0??{}),_0x6242a0=_0x1c362b[_0x52899a(0x236)]&&this[_0x52899a(0x140)](_0x4f7236,_0x1c362b['from'][_0x52899a(0x152)],_0x1c362b[_0x52899a(0x236)][_0x52899a(0x1c7)]),_0x5cc43e=_0x1c362b['to']&&this[_0x52899a(0x140)](_0x4f7236,_0x1c362b['to'][_0x52899a(0x152)],_0x1c362b['to'][_0x52899a(0x1c7)]);_0x1c362b['from']&&!_0x6242a0&&delete _0x1c362b[_0x52899a(0x236)],_0x1c362b['to']&&!_0x5cc43e&&delete _0x1c362b['to'];let _0x3ba9a8=(0x0,_0x5c42ed[_0x52899a(0x1ac)])(_0x3c9b4b,_0x6242a0||(0x0,_0x5c42ed[_0x52899a(0x20c)])((_0x5cc43e==null?void 0x0:_0x5cc43e[_0x52899a(0x1fa)])??_0x398142[_0x398142[_0x52899a(0x162)]-0x1],_0x398142[0x0]),_0x5cc43e||(0x0,_0x5c42ed[_0x52899a(0x20c)])((_0x6242a0==null?void 0x0:_0x6242a0[_0x52899a(0x1fa)])??_0x398142[0x0],_0x398142[_0x398142[_0x52899a(0x162)]-0x1]),_0x1c362b);if(!(!(_0x3ba9a8!=null&&_0x3ba9a8[_0x52899a(0x145)])||!_0x3ba9a8[_0x52899a(0x211)]||!_0x3ba9a8[_0x52899a(0x242)])){if(this[_0x52899a(0x13d)](_0x4f7236,_0xb0a283,_0x3ba9a8),_0x4f7236['mode']===_0x52899a(0x209)){_0x492df4[_0x52899a(0x22f)](_0x3ba9a8[_0x52899a(0x211)]),_0x492df4[_0x52899a(0x157)](_0x3d49bf['Tools'][_0x52899a(0x1f1)](_0x3ba9a8[_0x52899a(0x242)]),!0x1);return;}_0x4d1706['redos'][_0x52899a(0x17e)]({'id':_0x5d54d0['id'],'params':{'unitId':_0x4f7236[_0x52899a(0x1a6)],'subUnitId':_0x4f7236[_0x52899a(0x204)],'shapeId':_0x2f368b,'shapeType':_0x3ba9a8[_0x52899a(0x211)],'shapeData':_0x3d49bf[_0x52899a(0x224)][_0x52899a(0x1f1)](_0x3ba9a8[_0x52899a(0x242)]),'replace':!0x0}}),_0x4d1706[_0x52899a(0x1d2)]['push']({'id':_0x5d54d0['id'],'params':{'unitId':_0x4f7236[_0x52899a(0x1a6)],'subUnitId':_0x4f7236[_0x52899a(0x204)],'shapeId':_0x2f368b,'shapeType':_0x492df4[_0x52899a(0x19b)](),'shapeData':_0x3d49bf[_0x52899a(0x224)][_0x52899a(0x1f1)](_0x492df4[_0x52899a(0x22b)]()),'replace':!0x0}});}}[_0x48e84b(0x140)](_0x5d01b4,_0x550cf9,_0x236544){const _0x2a404c=_0x48e84b;if(_0x5d01b4[_0x2a404c(0x238)][_0x2a404c(0x158)](_0x550cf9))return null;let _0x132c6f=_0x5d01b4[_0x2a404c(0x187)]['get'](_0x550cf9)??_0x5d01b4['originals']['get'](_0x550cf9);if(!_0x132c6f)return null;let _0x4b0e07=this[_0x2a404c(0x18b)](_0x5d01b4,_0x132c6f);return _0x4b0e07?(0x0,_0x5c42ed[_0x2a404c(0x190)])(_0x4b0e07,_0x236544):null;}[_0x48e84b(0x18b)](_0x286239,_0x47b923){const _0x5cdf12=_0x48e84b;let _0x1e182e={'hostType':_0x3d49bf['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x286239['unitId'],'subUnitId':_0x286239['subUnitId'],'shapeId':_0x47b923[_0x5cdf12(0x1ce)]},_0xfa3fc1=this[_0x5cdf12(0x189)][_0x5cdf12(0x1fe)](_0x1e182e);return!_0xfa3fc1||!_0x47b923[_0x5cdf12(0x145)]?null:{..._0xfa3fc1,'transform':{'left':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x23c)]??0x0,'top':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x14c)]??0x0,'width':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x195)]??0x0,'height':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x179)]??0x0,'rotation':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x192)]??0x0,'flipX':_0x47b923[_0x5cdf12(0x145)][_0x5cdf12(0x13c)]??!0x1,'flipY':_0x47b923['transform']['flipY']??!0x1}};}[_0x48e84b(0x13d)](_0x4b5c84,_0x1b634f,_0x41ae47){const _0x1522c3=_0x48e84b;let _0x557ec8=_0x1b634f,_0x277cf4={..._0x1b634f[_0x1522c3(0x145)],'left':_0x41ae47[_0x1522c3(0x145)]['left'],'top':_0x41ae47[_0x1522c3(0x145)]['top'],'width':_0x41ae47['transform']['width'],'height':_0x41ae47[_0x1522c3(0x145)]['height'],'angle':_0x41ae47[_0x1522c3(0x145)][_0x1522c3(0x19d)],'flipX':_0x41ae47[_0x1522c3(0x145)][_0x1522c3(0x13c)],'flipY':_0x41ae47[_0x1522c3(0x145)][_0x1522c3(0x205)]},_0x350453={..._0x557ec8,'transform':_0x277cf4,'sheetTransform':(0x0,_0x1933ae[_0x1522c3(0x1ff)])(_0x277cf4,_0x4b5c84[_0x1522c3(0x13f)]),'axisAlignSheetTransform':(0x0,_0x1933ae[_0x1522c3(0x144)])(_0x277cf4,_0x4b5c84['skeleton']),'data':{..._0x557ec8[_0x1522c3(0x215)],'shapeType':_0x41ae47[_0x1522c3(0x211)],'shapeData':_0x3d49bf[_0x1522c3(0x224)][_0x1522c3(0x1f1)](_0x41ae47[_0x1522c3(0x242)])}};_0x4b5c84['updates'][_0x1522c3(0x245)](_0x1b634f[_0x1522c3(0x1ce)],_0x350453);}};_0xa5451a=_0x1424dc([_0x32f80e(0x0,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x2446f4)),_0x32f80e(0x1,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x5b99e6)),_0x32f80e(0x2,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x1933ae[_0x48e84b(0x169)]))],_0xa5451a);let _0x1e962c=class extends _0x3d49bf['Plugin']{constructor(_0x258a25=_0x1fc6a5,_0x1c5e46,_0x1a0157){const _0x317a33=_0x48e84b;super(),this[_0x317a33(0x1e4)]=_0x258a25,this[_0x317a33(0x1b9)]=_0x1c5e46,this[_0x317a33(0x1d5)]=_0x1a0157;let {..._0xec8ed6}=(0x0,_0x3d49bf[_0x317a33(0x19f)])({},_0x1fc6a5,this[_0x317a33(0x1e4)]);this[_0x317a33(0x1d5)]['setConfig']('sheets-shape.config',_0xec8ed6);}[_0x48e84b(0x1b0)](){const _0xee9596=_0x48e84b;let _0x431700=this['_injector'];[[_0x7d392f],[_0x2446f4],[_0x5b99e6],[_0xa5451a],[_0x5c611e]][_0xee9596(0x1a4)](_0x5e8161=>_0x431700[_0xee9596(0x240)](_0x5e8161)),(0x0,_0x3d49bf[_0xee9596(0x1fc)])(_0x431700,[[_0x2446f4],[_0xa5451a],[_0x5c611e]]);}};_0x33e1cb(_0x1e962c,_0x48e84b(0x181),_0x3d49bf['UniverInstanceType'][_0x48e84b(0x235)]),_0x33e1cb(_0x1e962c,_0x48e84b(0x13a),_0x48e84b(0x1e8)),_0x33e1cb(_0x1e962c,'packageName',_0x3cbe00),_0x33e1cb(_0x1e962c,_0x48e84b(0x16a),_0x114f0d),_0x1e962c=_0x1424dc([(0x0,_0x3d49bf[_0x48e84b(0x164)])(_0x20e5fb[_0x48e84b(0x146)],_0x4c491c[_0x48e84b(0x1cd)],_0x5c42ed[_0x48e84b(0x243)],_0x48a4c3['UniverSheetsPlugin'],_0x1933ae['UniverSheetsDrawingPlugin']),_0x32f80e(0x1,(0x0,_0x3d49bf[_0x48e84b(0x233)])(_0x3d49bf[_0x48e84b(0x1d3)])),_0x32f80e(0x2,_0x3d49bf[_0x48e84b(0x207)])],_0x1e962c),_0x2ae183[_0x48e84b(0x175)]=0xc8,_0x2ae183[_0x48e84b(0x21b)]=0xc8,_0x2ae183[_0x48e84b(0x1f6)]=_0x4a8d40,_0x2ae183[_0x48e84b(0x1e6)]=_0x4b1ab6,_0x2ae183[_0x48e84b(0x20a)]=_0x5f28b5,_0x2ae183['SetShapeDrawingDataCommand']=_0x4de397,_0x2ae183['SetSheetsShapeRotateCommand']=_0x3c707e,_0x2ae183[_0x48e84b(0x18d)]=_0x22241e,Object[_0x48e84b(0x212)](_0x2ae183,_0x48e84b(0x1b1),{'enumerable':!0x0,'get':function(){return _0x2446f4;}}),_0x2ae183['ToggleSheetsShapeFlipCommand']=_0x125d3d,Object['defineProperty'](_0x2ae183,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0x1e962c;}}),_0x2ae183['UpdateConnectorRelationCommand']=_0x2e4920,_0x2ae183[_0x48e84b(0x21e)]=_0x1e6cd7,_0x2ae183[_0x48e84b(0x159)]=_0x5d54d0,_0x2ae183[_0x48e84b(0x229)]=_0x3bb17a;}));
|
|
1
|
+
function _0x3f84(_0x4961f5,_0x2902fa){_0x4961f5=_0x4961f5-0xd3;const _0x1e6842=_0x1e68();let _0x3f8453=_0x1e6842[_0x4961f5];return _0x3f8453;}(function(_0x15be41,_0x4b2eae){const _0x59d0a8=_0x3f84,_0x853f8a=_0x15be41();while(!![]){try{const _0x57ef00=-parseInt(_0x59d0a8(0x133))/0x1*(-parseInt(_0x59d0a8(0xd4))/0x2)+parseInt(_0x59d0a8(0x13f))/0x3+-parseInt(_0x59d0a8(0x15b))/0x4+-parseInt(_0x59d0a8(0x152))/0x5*(-parseInt(_0x59d0a8(0x175))/0x6)+-parseInt(_0x59d0a8(0x14f))/0x7*(parseInt(_0x59d0a8(0x1a4))/0x8)+-parseInt(_0x59d0a8(0x1c7))/0x9*(parseInt(_0x59d0a8(0x197))/0xa)+parseInt(_0x59d0a8(0xda))/0xb*(parseInt(_0x59d0a8(0xe3))/0xc);if(_0x57ef00===_0x4b2eae)break;else _0x853f8a['push'](_0x853f8a['shift']());}catch(_0x7f062a){_0x853f8a['push'](_0x853f8a['shift']());}}}(_0x1e68,0xe8fad),function(_0x3e4c37,_0x44c1d9){const _0x31d904=_0x3f84;typeof exports==_0x31d904(0x184)&&typeof module<'u'?_0x44c1d9(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==_0x31d904(0x162)&&define['amd']?define([_0x31d904(0x19d),_0x31d904(0x10e),_0x31d904(0xf0),_0x31d904(0x19e),'@univerjs/sheets-drawing',_0x31d904(0x1d2),'@univerjs/drawing'],_0x44c1d9):(_0x3e4c37=typeof globalThis<'u'?globalThis:_0x3e4c37||self,_0x44c1d9(_0x3e4c37[_0x31d904(0x105)]={},_0x3e4c37[_0x31d904(0xe0)],_0x3e4c37['UniverCore'],_0x3e4c37['UniverSheets'],_0x3e4c37[_0x31d904(0x106)],_0x3e4c37[_0x31d904(0x15f)],_0x3e4c37[_0x31d904(0x116)]));}(this,function(_0x1a712f,_0x13ff20,_0x59240f,_0x3b5464,_0x43a085,_0x42b016,_0x11fd09){const _0xc3989b=_0x3f84;Object[_0xc3989b(0x104)](_0x1a712f,Symbol[_0xc3989b(0x185)],{'value':'Module'});function _0x221881(_0x599baa){'@babel/helpers - typeof';const _0x19c9ad=_0xc3989b;return _0x221881=typeof Symbol==_0x19c9ad(0x162)&&typeof Symbol[_0x19c9ad(0x137)]==_0x19c9ad(0x169)?function(_0x5d472c){return typeof _0x5d472c;}:function(_0x4e2931){const _0x28761c=_0x19c9ad;return _0x4e2931&&typeof Symbol==_0x28761c(0x162)&&_0x4e2931[_0x28761c(0x1b4)]===Symbol&&_0x4e2931!==Symbol[_0x28761c(0x1b6)]?_0x28761c(0x169):typeof _0x4e2931;},_0x221881(_0x599baa);}function _0x1c2fa6(_0x964644,_0x3ca6cc){const _0x49ab60=_0xc3989b;if(_0x221881(_0x964644)!=_0x49ab60(0x184)||!_0x964644)return _0x964644;var _0x5e644a=_0x964644[Symbol[_0x49ab60(0x123)]];if(_0x5e644a!==void 0x0){var _0x3c2a7f=_0x5e644a['call'](_0x964644,_0x3ca6cc||_0x49ab60(0x108));if(_0x221881(_0x3c2a7f)!=_0x49ab60(0x184))return _0x3c2a7f;throw TypeError(_0x49ab60(0xec));}return(_0x3ca6cc===_0x49ab60(0x113)?String:Number)(_0x964644);}function _0x7f4e63(_0xbd4384){const _0x52d3a5=_0xc3989b;var _0x58b489=_0x1c2fa6(_0xbd4384,_0x52d3a5(0x113));return _0x221881(_0x58b489)==_0x52d3a5(0x169)?_0x58b489:_0x58b489+'';}function _0x7318f0(_0x1fe170,_0x1c060f,_0x3ea9b6){const _0x5c89c7=_0xc3989b;return(_0x1c060f=_0x7f4e63(_0x1c060f))in _0x1fe170?Object[_0x5c89c7(0x104)](_0x1fe170,_0x1c060f,{'value':_0x3ea9b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1fe170[_0x1c060f]=_0x3ea9b6,_0x1fe170;}var _0x4c6fe2=class extends _0x59240f[_0xc3989b(0x182)]{constructor(){const _0x557ac1=_0xc3989b;super(),_0x7318f0(this,_0x557ac1(0xd7),new Map()),_0x7318f0(this,_0x557ac1(0x146),new Set()),_0x7318f0(this,_0x557ac1(0x14c),new Set());}[_0xc3989b(0xf3)](_0x528612,_0x4975f0,_0xd107ad,_0x522f76){const _0x2d35bf=_0xc3989b;let _0x450a5b=new _0x13ff20[(_0x2d35bf(0x142))](_0x528612,_0x4975f0,_0xd107ad,_0x522f76);return this[_0x2d35bf(0xd7)][_0x2d35bf(0x10c)](_0x4975f0,_0x450a5b),(0x0,_0x13ff20[_0x2d35bf(0x198)])(_0x528612)&&this[_0x2d35bf(0x146)][_0x2d35bf(0x1e5)](_0x4975f0),_0x450a5b;}[_0xc3989b(0x1d7)](_0x35b738){const _0x1e6566=_0xc3989b;let _0x51f729=[];for(let _0x4f29d5 of this['_linesIds']){let _0x9f4a92=this[_0x1e6566(0xd7)]['get'](_0x4f29d5);if(_0x9f4a92){let _0x915329=_0x9f4a92[_0x1e6566(0x147)]();if(_0x915329){var _0x5ccbe9,_0x354e70;((_0x5ccbe9=_0x915329[_0x1e6566(0x15a)])==null?void 0x0:_0x5ccbe9[_0x1e6566(0x103)])===_0x35b738&&_0x51f729['push']({..._0x915329[_0x1e6566(0x15a)],'lineShapeId':_0x4f29d5,'isFrom':!0x0}),((_0x354e70=_0x915329['to'])==null?void 0x0:_0x354e70[_0x1e6566(0x103)])===_0x35b738&&_0x51f729['push']({..._0x915329['to'],'lineShapeId':_0x4f29d5,'isFrom':!0x1});}}}return _0x51f729;}[_0xc3989b(0x1dc)](_0x280b49){const _0xdbb75c=_0xc3989b;let _0x450b25=this['_shapes'][_0xdbb75c(0xd9)](_0x280b49);if(_0x450b25)return _0x450b25[_0xdbb75c(0x147)]();}['getShapeType'](_0x3e90d2){const _0x515fbd=_0xc3989b;let _0x50ff72=this[_0x515fbd(0xd7)][_0x515fbd(0xd9)](_0x3e90d2);if(_0x50ff72)return _0x50ff72[_0x515fbd(0x173)]();}[_0xc3989b(0xf7)](_0x47ff38){const _0x1c2d4c=_0xc3989b;return this[_0x1c2d4c(0xd7)][_0x1c2d4c(0x148)](_0x47ff38);}[_0xc3989b(0x1a6)](){const _0x395f15=_0xc3989b;return Array[_0x395f15(0x15a)](this[_0x395f15(0xd7)]['values']())[_0x395f15(0x1c0)](_0x3072d0=>_0x3072d0[_0x395f15(0x11a)]()||_0x3072d0[_0x395f15(0x1e6)]());}[_0xc3989b(0x1a0)](_0xf7532d){const _0x7f7793=_0xc3989b;let _0x2478a2=this[_0x7f7793(0xd7)]['get'](_0xf7532d);_0x2478a2&&((0x0,_0x13ff20[_0x7f7793(0x198)])(_0x2478a2[_0x7f7793(0x173)]())&&this['_linesIds']['delete'](_0xf7532d),this['_shapes'][_0x7f7793(0x136)](_0xf7532d));}[_0xc3989b(0x1cf)](){let _0x5d6771=[];return this['_shapes']['forEach'](_0x944167=>{const _0x496c9a=_0x3f84;_0x5d6771[_0x496c9a(0xdb)](_0x944167[_0x496c9a(0x1cf)]());}),_0x5d6771;}[_0xc3989b(0x1db)](_0x496407){const _0x2a5af6=_0xc3989b;for(let _0x17d24a of _0x496407){let {id:_0x406465,shapeType:_0x253b42,name:_0x5a8969}=_0x17d24a,_0xf5a745=this[_0x2a5af6(0xf3)](_0x253b42,_0x406465,_0x17d24a[_0x2a5af6(0x1b0)],_0x5a8969);_0xf5a745&&_0xf5a745['isLineShape']()&&this['_linesIds']['add'](_0x406465);}}[_0xc3989b(0x1ce)](){const _0x34c98b=_0xc3989b;this['_disposed']||(this[_0x34c98b(0xd7)]['forEach'](_0x691515=>{const _0x31d4dd=_0x34c98b;_0x691515[_0x31d4dd(0x1ce)]();}),this[_0x34c98b(0xd7)][_0x34c98b(0x10f)](),this[_0x34c98b(0x146)][_0x34c98b(0x10f)](),this['_groupIds'][_0x34c98b(0x10f)](),super[_0x34c98b(0x1ce)]());}};function _0x4cea80(_0x6c7527,_0x1d3ab8){return function(_0x37c876,_0x4dd537){_0x1d3ab8(_0x37c876,_0x4dd537,_0x6c7527);};}function _0x4bde66(_0xb29651,_0x4be108,_0x5b40e3,_0x2a4905){const _0x3031c5=_0xc3989b;var _0x2e85c6=arguments['length'],_0x3af451=_0x2e85c6<0x3?_0x4be108:_0x2a4905===null?_0x2a4905=Object[_0x3031c5(0x171)](_0x4be108,_0x5b40e3):_0x2a4905,_0x218347;if(typeof Reflect==_0x3031c5(0x184)&&typeof Reflect['decorate']==_0x3031c5(0x162))_0x3af451=Reflect[_0x3031c5(0x109)](_0xb29651,_0x4be108,_0x5b40e3,_0x2a4905);else{for(var _0x39d5fa=_0xb29651[_0x3031c5(0x1a1)]-0x1;_0x39d5fa>=0x0;_0x39d5fa--)(_0x218347=_0xb29651[_0x39d5fa])&&(_0x3af451=(_0x2e85c6<0x3?_0x218347(_0x3af451):_0x2e85c6>0x3?_0x218347(_0x4be108,_0x5b40e3,_0x3af451):_0x218347(_0x4be108,_0x5b40e3))||_0x3af451);}return _0x2e85c6>0x3&&_0x3af451&&Object[_0x3031c5(0x104)](_0x4be108,_0x5b40e3,_0x3af451),_0x3af451;}let _0x13c298=class extends _0x59240f['Disposable']{constructor(_0x28c8e5){const _0x2f53e4=_0xc3989b;super(),this['_resourcesManagerService']=_0x28c8e5,_0x7318f0(this,_0x2f53e4(0x13a),new Map()),this[_0x2f53e4(0xf8)]();}[_0xc3989b(0x165)](_0x4868de,_0x1b3d4b){const _0x59ca09=_0xc3989b;let _0x48f45e=this[_0x59ca09(0x13a)][_0x59ca09(0xd9)](_0x4868de);_0x48f45e||(_0x48f45e=new Map(),this[_0x59ca09(0x13a)][_0x59ca09(0x10c)](_0x4868de,_0x48f45e));let _0x29c8bd=_0x48f45e[_0x59ca09(0xd9)](_0x1b3d4b);return _0x29c8bd||(_0x29c8bd=new _0x4c6fe2(),_0x48f45e[_0x59ca09(0x10c)](_0x1b3d4b,_0x29c8bd)),_0x29c8bd;}[_0xc3989b(0x19f)](_0x1e3bb3,_0x64eaf2,_0x40a4d5,_0x428f16,_0x54b6ef,_0x34c755){const _0x591751=_0xc3989b;this['_ensureShapeModelManager'](_0x1e3bb3,_0x64eaf2)[_0x591751(0xf3)](_0x40a4d5,_0x428f16,_0x54b6ef,_0x34c755);}[_0xc3989b(0x1a0)](_0xe96578,_0x35a743,_0x58ac68){const _0x38b1a6=_0xc3989b;this[_0x38b1a6(0x165)](_0xe96578,_0x35a743)[_0x38b1a6(0x1a0)](_0x58ac68);}[_0xc3989b(0x186)](_0x24c958,_0x574d23,_0x5a20d2){const _0x50e738=_0xc3989b;return this[_0x50e738(0x165)](_0x24c958,_0x574d23)[_0x50e738(0x173)](_0x5a20d2);}[_0xc3989b(0x173)](_0x4f18f6,_0x2824b4,_0x49d401){const _0x13b78c=_0xc3989b;return this['_ensureShapeModelManager'](_0x4f18f6,_0x2824b4)[_0x13b78c(0x173)](_0x49d401);}[_0xc3989b(0xf7)](_0x80d838,_0x396e19,_0x36f451){const _0x47636b=_0xc3989b;return this[_0x47636b(0x165)](_0x80d838,_0x396e19)['hasShape'](_0x36f451);}[_0xc3989b(0x139)](_0x2a7111,_0x122c98,_0x3ef3bc){const _0x501306=_0xc3989b;return this[_0x501306(0x165)](_0x2a7111,_0x122c98)[_0x501306(0x173)](_0x3ef3bc);}['getShapeDataById'](_0xd80b83,_0x284350,_0x16bae0){const _0x1b2aa0=_0xc3989b;let _0x3aaf4b=this['_ensureShapeModelManager'](_0xd80b83,_0x284350);if(!_0x3aaf4b['getShapeType'](_0x16bae0))return;let _0x8ee55e=_0x3aaf4b[_0x1b2aa0(0xd7)][_0x1b2aa0(0xd9)](_0x16bae0);if(_0x8ee55e)return _0x8ee55e[_0x1b2aa0(0x1bd)]();}[_0xc3989b(0x1a6)](_0x2bcfc3,_0x4e4f5a){const _0xa28400=_0xc3989b;return this['_ensureShapeModelManager'](_0x2bcfc3,_0x4e4f5a)[_0xa28400(0x1a6)]();}[_0xc3989b(0x128)](_0x9bba01,_0x57d666,_0x24a2e7){const _0x42520e=_0xc3989b;return this[_0x42520e(0x165)](_0x9bba01,_0x57d666)[_0x42520e(0xd7)]['get'](_0x24a2e7);}['getBasicShapeRelation'](_0x4631cf,_0xda0902,_0x28e993){const _0x5be110=_0xc3989b;return this[_0x5be110(0x165)](_0x4631cf,_0xda0902)[_0x5be110(0x1d7)](_0x28e993);}[_0xc3989b(0x1dc)](_0x523e9c,_0x12109f,_0x1505b6){const _0x451670=_0xc3989b;let _0x58bf1a=this['_ensureShapeModelManager'](_0x523e9c,_0x12109f)[_0x451670(0xd7)][_0x451670(0xd9)](_0x1505b6);if(_0x58bf1a)return _0x58bf1a['getShapeRelation']();}[_0xc3989b(0x121)](){}[_0xc3989b(0x174)](_0x15e7af){const _0x452a43=_0xc3989b;let _0x59b8df={},_0x5a0426=this['_shapeModelManagerMap'][_0x452a43(0xd9)](_0x15e7af);return _0x5a0426&&_0x5a0426['forEach']((_0x2c533f,_0x3a9190)=>{const _0x7bdb8a=_0x452a43;let _0x2be08a=_0x2c533f[_0x7bdb8a(0x1cf)]();_0x2be08a[_0x7bdb8a(0x1a1)]>0x0&&(_0x59b8df[_0x3a9190]=_0x2be08a);}),JSON[_0x452a43(0x1b1)](_0x59b8df);}[_0xc3989b(0x16c)](_0x2d8cf5,_0x1ecd44){const _0x25416f=_0xc3989b;Object[_0x25416f(0xee)](_0x1ecd44)[_0x25416f(0x196)](_0x91be6a=>{const _0x1916db=_0x25416f;this[_0x1916db(0x165)](_0x2d8cf5,_0x91be6a)[_0x1916db(0x1db)](_0x1ecd44[_0x91be6a]);});}[_0xc3989b(0x1cf)](){const _0x333fa8=_0xc3989b;let _0x274c9e={};return this[_0x333fa8(0x13a)][_0x333fa8(0x196)]((_0x3835ab,_0x349731)=>{const _0x583f79=_0x333fa8;_0x274c9e[_0x349731]={},_0x3835ab[_0x583f79(0x196)]((_0x1023ba,_0x393382)=>{const _0x4c08ba=_0x583f79;_0x274c9e[_0x349731][_0x393382]=_0x1023ba[_0x4c08ba(0x1cf)]();});}),_0x274c9e;}[_0xc3989b(0x1db)](_0x2629a5){const _0x3dd250=_0xc3989b;Object[_0x3dd250(0xee)](_0x2629a5)['forEach'](_0x4d7c66=>{const _0x2d9b0e=_0x3dd250;let _0x4d9762=_0x2629a5[_0x4d7c66];Object['keys'](_0x4d9762)[_0x2d9b0e(0x196)](_0x143a8b=>{const _0x281ed0=_0x2d9b0e;this['_ensureShapeModelManager'](_0x4d7c66,_0x143a8b)[_0x281ed0(0x1db)](_0x4d9762[_0x143a8b]);});});}[_0xc3989b(0xf8)](){const _0x102684=_0xc3989b;this[_0x102684(0x16b)][_0x102684(0xf2)]({'pluginName':_0x102684(0x1ad),'businesses':[_0x59240f[_0x102684(0x10d)][_0x102684(0x149)]],'toJson':_0x758cb4=>this['_serializeShapeForUnit'](_0x758cb4),'parseJson':_0x368087=>JSON[_0x102684(0xe2)](_0x368087),'onLoad':(_0x42b414,_0x1fd640)=>{const _0x4d3a56=_0x102684;this[_0x4d3a56(0x16c)](_0x42b414,_0x1fd640);},'onUnLoad':_0xb18f26=>{const _0xb1d112=_0x102684;let _0x2aa4d2=this[_0xb1d112(0x13a)]['get'](_0xb18f26);_0x2aa4d2&&(_0x2aa4d2[_0xb1d112(0x196)](_0x175e8c=>{const _0x28fded=_0xb1d112;_0x175e8c[_0x28fded(0x1ce)]();}),this[_0xb1d112(0x13a)][_0xb1d112(0x136)](_0xb18f26));}});}[_0xc3989b(0x1ce)](){const _0x510d4a=_0xc3989b;this[_0x510d4a(0x13a)][_0x510d4a(0x196)](_0x44996d=>{_0x44996d['forEach'](_0x5bd0b1=>{const _0x5443de=_0x3f84;_0x5bd0b1[_0x5443de(0x1ce)]();});});}};_0x13c298=_0x4bde66([_0x4cea80(0x0,_0x59240f[_0xc3989b(0x17a)])],_0x13c298);let _0x3a2754={'id':_0xc3989b(0xfc),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x241254,_0x19efc3)=>{const _0x474b83=_0xc3989b;let {unitId:_0x5bfdee,subUnitId:_0x167a5d,shapeType:_0x4caad1,shapeId:_0x59e01f,shapeName:_0x5a2e57,shapeData:_0x2c6153}=_0x19efc3;return _0x241254[_0x474b83(0xd9)](_0x13c298)[_0x474b83(0x19f)](_0x5bfdee,_0x167a5d,_0x4caad1,_0x59e01f,_0x59240f[_0x474b83(0x13c)][_0x474b83(0x170)](_0x2c6153),_0x5a2e57),!0x0;}},_0x3b0254={'id':_0xc3989b(0x163),'type':_0x59240f[_0xc3989b(0x1a9)]['MUTATION'],'handler':(_0x448add,_0x295aa3)=>{const _0xce6c4a=_0xc3989b;let {unitId:_0x1b3928,subUnitId:_0x41e6dd,shapeId:_0x150fef}=_0x295aa3;return _0x448add[_0xce6c4a(0xd9)](_0x13c298)[_0xce6c4a(0x1a0)](_0x1b3928,_0x41e6dd,_0x150fef),!0x0;}},_0x32a208={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':_0xc3989b(0x1be),'handler':(_0x32292d,_0x526afb)=>{const _0x13c07b=_0xc3989b;let _0xe38c06=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x32292d[_0x13c07b(0xd9)](_0x59240f['IUniverInstanceService']),_0x526afb);if(!_0xe38c06)return!0x1;let _0x5d1987=_0x32292d[_0x13c07b(0xd9)](_0x3b5464[_0x13c07b(0x13b)]),{unitId:_0x10b496,subUnitId:_0x1735b7}=_0xe38c06,_0x35fc96=_0x5d1987[_0x13c07b(0x1af)](_0x10b496,_0x1735b7);if(!_0x35fc96)return!0x1;let _0x4966d9=_0x32292d[_0x13c07b(0xd9)](_0x59240f[_0x13c07b(0x1a5)]),_0x521fcf=_0x32292d[_0x13c07b(0xd9)](_0x59240f[_0x13c07b(0x138)]),_0x213324=_0x32292d[_0x13c07b(0xd9)](_0x3b5464[_0x13c07b(0x15c)]),_0x1f121f=_0x32292d[_0x13c07b(0xd9)](_0x43a085[_0x13c07b(0xf4)]),_0x30d34f=_0x32292d[_0x13c07b(0xd9)](_0x13c298),{shapeType:_0x3d6c7b}=_0x526afb,_0x3c1dad=_0x526afb[_0x13c07b(0x1b0)]??(0x0,_0x13ff20[_0x13c07b(0x18c)])(_0x3d6c7b),_0x28d62e=_0x526afb[_0x13c07b(0x103)]||(0x0,_0x59240f['generateRandomId'])(),_0x1e5ada={'unitId':_0x10b496,'subUnitId':_0x1735b7,'shapeId':_0x28d62e,'shapeName':_0x526afb[_0x13c07b(0x120)]??(0x0,_0x13ff20['createUniqueShapeName'])(_0x3d6c7b,_0x30d34f[_0x13c07b(0x1a6)](_0x10b496,_0x1735b7)),'shapeType':_0x3d6c7b,'shapeData':_0x3c1dad},_0x5e9963=_0x526afb[_0x13c07b(0xef)]||0xc8,_0x3b6787=_0x526afb[_0x13c07b(0x180)]||0xc8,_0x256373=0x0,_0x5ea323=0x0;if(_0x526afb[_0x13c07b(0x1ab)]){let {x:_0x5316f5,y:_0x4644f3}=_0x526afb['position'];_0x256373=_0x5316f5,_0x5ea323=_0x4644f3;}else{if(_0x526afb[_0x13c07b(0x17d)]){let {startRow:_0x22815b,startColumn:_0x116c29}=_0x526afb[_0x13c07b(0x17d)],_0x53f87f=_0x35fc96[_0x13c07b(0x101)](_0x22815b,_0x116c29);_0x256373=_0x53f87f[_0x13c07b(0x12e)]+0xa,_0x5ea323=_0x53f87f[_0x13c07b(0x192)]+0xa;}}let _0x19be42={'left':_0x256373,'top':_0x5ea323,'width':_0x5e9963,'height':_0x3b6787,'angle':_0x526afb['rotation']??0x0,'flipX':_0x526afb[_0x13c07b(0x150)]??!0x1,'flipY':_0x526afb[_0x13c07b(0x12f)]??!0x1},_0x4d637f=(0x0,_0x43a085[_0x13c07b(0x1c9)])(_0x19be42,_0x35fc96),_0x25caa3=(0x0,_0x43a085[_0x13c07b(0x1d6)])(_0x19be42,_0x35fc96),_0xb4e4a6={'unitId':_0x10b496,'subUnitId':_0x1735b7,'drawingId':_0x28d62e,'drawingType':_0x59240f[_0x13c07b(0x1de)][_0x13c07b(0xe5)],'anchorType':_0x43a085[_0x13c07b(0x141)][_0x13c07b(0x10a)],'name':_0x526afb[_0x13c07b(0x1e8)],'description':_0x526afb['description'],'sheetTransform':_0x4d637f,'transform':_0x19be42,'data':{'shapeType':_0x3d6c7b,'shapeData':_0x3c1dad},'axisAlignSheetTransform':_0x25caa3,'allowTransform':!0x0,'hidden':_0x526afb[_0x13c07b(0x1ac)]===!0x1,'selectable':_0x526afb[_0x13c07b(0x1df)]??!0x0};(0x0,_0x13ff20[_0x13c07b(0x198)])(_0x3d6c7b)&&(_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x168)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x1bc)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x110)]=!0x1,_0xb4e4a6[_0x13c07b(0x135)][_0x13c07b(0x140)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x1bc)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x110)]=!0x1,_0xb4e4a6[_0x13c07b(0x190)][_0x13c07b(0x140)]=!0x1);let {undo:_0x4be868,redo:_0x3ab3b4,objects:_0x253fa9}=_0x1f121f['getBatchAddOp']([_0xb4e4a6]),_0x302197=_0x213324['onCommandExecute']({'id':_0x43a085[_0x13c07b(0xdc)]['id'],'params':{'unitId':_0x10b496,'drawings':[_0xb4e4a6]}}),_0x340c39=[..._0x302197[_0x13c07b(0x161)]??[],{'id':_0x43a085[_0x13c07b(0x17f)]['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'op':_0x3ab3b4,'objects':_0x253fa9,'type':_0x43a085[_0x13c07b(0x132)][_0x13c07b(0x194)]}},{'id':_0x43a085[_0x13c07b(0x126)]['id'],'params':[_0x10b496]},..._0x302197[_0x13c07b(0x187)],{'id':_0x3a2754['id'],'params':_0x1e5ada}],_0x7cf6c8=[{'id':_0x3b0254['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'shapeId':_0x28d62e}},..._0x302197[_0x13c07b(0x102)]??[],{'id':_0x43a085['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x10b496,'subUnitId':_0x1735b7,'op':_0x4be868,'objects':_0x253fa9,'type':_0x43a085[_0x13c07b(0x132)][_0x13c07b(0x195)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x10b496]},..._0x302197['undos']];return(0x0,_0x59240f['sequenceExecute'])(_0x340c39,_0x4966d9)[_0x13c07b(0x164)]?(_0x521fcf[_0x13c07b(0x127)]({'unitID':_0x10b496,'undoMutations':_0x7cf6c8,'redoMutations':_0x340c39}),!0x0):!0x1;}},_0x958308={'id':_0xc3989b(0xfe),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x5542be,_0x4a9fc6)=>{const _0x228442=_0xc3989b;let {unitId:_0x1adb1b,subUnitId:_0x29660b,shapeType:_0xb2c54e,shapeId:_0x4eb6fa,shapeData:_0x47ad15,replace:_0xbd2c2e,formulaLastValueGuard:_0x2224c8}=_0x4a9fc6,_0x49c1a7=_0x5542be[_0x228442(0xd9)](_0x13c298)[_0x228442(0x128)](_0x1adb1b,_0x29660b,_0x4eb6fa);if(_0x49c1a7){var _0x2e1a56;if(!(0x0,_0x13ff20['canApplyShapeFormulaLastValue'])(_0x5542be,{'hostType':_0x59240f[_0x228442(0x10d)][_0x228442(0x149)],'unitId':_0x1adb1b,'subUnitId':_0x29660b,'shapeId':_0x4eb6fa},(_0x2e1a56=_0x49c1a7['getShapeData']()[_0x228442(0x1c2)])==null?void 0x0:_0x2e1a56['formula'],_0x2224c8))return!0x0;_0xb2c54e!==void 0x0&&_0x49c1a7[_0x228442(0x121)](_0xb2c54e),_0x47ad15&&(_0x49c1a7==null||_0x49c1a7['setShapeData'](_0x59240f[_0x228442(0x13c)][_0x228442(0x170)](_0x47ad15),!_0xbd2c2e));}return!0x0;}},_0x2f1170={'type':_0x59240f[_0xc3989b(0x1a9)]['COMMAND'],'id':_0xc3989b(0x1aa),'handler':(_0x3236c6,_0x33ba43)=>{const _0x381272=_0xc3989b;let _0x48b1c1=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x3236c6[_0x381272(0xd9)](_0x59240f[_0x381272(0x16f)]),_0x33ba43);if(!_0x48b1c1)return!0x1;let _0x1ce0de=_0x3236c6['get'](_0x3b5464[_0x381272(0x13b)]),{unitId:_0x282e89,subUnitId:_0x442697}=_0x48b1c1,_0x11eef2=_0x1ce0de[_0x381272(0x1af)](_0x282e89,_0x442697);if(!_0x11eef2)return!0x1;let _0x574a05=_0x3236c6[_0x381272(0xd9)](_0x13c298),{shapeId:_0x5b0281,shapeType:_0x2d726b,shapeData:_0x27fdd7,position:_0x2807a6,width:_0x22e0fc,height:_0xe155f1}=_0x33ba43,_0x529dd5=_0x574a05[_0x381272(0x128)](_0x282e89,_0x442697,_0x5b0281);if(!_0x529dd5)return!0x1;let _0x5086b7=_0x3236c6[_0x381272(0xd9)](_0x59240f[_0x381272(0x1a5)]),_0x4f2b44=_0x3236c6[_0x381272(0xd9)](_0x59240f['IUndoRedoService']),_0x1f28cb=_0x3236c6[_0x381272(0xd9)](_0x3b5464['SheetInterceptorService']),_0x3c890b=_0x3236c6[_0x381272(0xd9)](_0x43a085[_0x381272(0xf4)]),_0x5ce546={'unitId':_0x282e89,'subUnitId':_0x442697,'shapeId':_0x5b0281,'shapeType':_0x2d726b,'shapeData':_0x27fdd7,'replace':!0x0},_0x38d413=_0x529dd5[_0x381272(0x173)](),_0x3230ea=_0x529dd5[_0x381272(0x1bd)](),{x:_0x4ade49,y:_0xcfba01}=_0x2807a6,_0x1b4669={'left':_0x4ade49,'top':_0xcfba01,'width':_0x22e0fc,'height':_0xe155f1,'angle':_0x33ba43[_0x381272(0xfa)]??0x0,'flipX':_0x33ba43[_0x381272(0x150)]??!0x1,'flipY':_0x33ba43['flipY']??!0x1},_0x20311e=(0x0,_0x43a085[_0x381272(0x1c9)])(_0x1b4669,_0x11eef2),_0x9a39f8=(0x0,_0x43a085[_0x381272(0x1d6)])(_0x1b4669,_0x11eef2),_0x570958={'unitId':_0x282e89,'subUnitId':_0x442697,'drawingId':_0x5b0281,'drawingType':_0x59240f[_0x381272(0x1de)]['DRAWING_SHAPE'],'name':_0x33ba43[_0x381272(0x1e8)],'description':_0x33ba43[_0x381272(0xed)],'sheetTransform':_0x20311e,'transform':_0x1b4669,'data':{'shapeType':_0x2d726b,'shapeData':_0x27fdd7},'axisAlignSheetTransform':_0x9a39f8,'allowTransform':!0x0,'hidden':!_0x33ba43[_0x381272(0x1ac)],'selectable':_0x33ba43[_0x381272(0x1df)]};(0x0,_0x13ff20['isConnectorShape'])(_0x2d726b)&&(_0x570958[_0x381272(0x135)][_0x381272(0x168)]=!0x1,_0x570958['data'][_0x381272(0x1bc)]=!0x1,_0x570958[_0x381272(0x135)][_0x381272(0x110)]=!0x1,_0x570958['data'][_0x381272(0x140)]=!0x1,_0x570958[_0x381272(0x190)][_0x381272(0x1bc)]=!0x1,_0x570958[_0x381272(0x190)]['resizeEnabled']=!0x1,_0x570958[_0x381272(0x190)][_0x381272(0x140)]=!0x1);let {undo:_0x45bde9,redo:_0x1136b3,objects:_0x1c693a}=_0x3c890b[_0x381272(0x1a7)]([_0x570958]),_0x380e28=_0x1f28cb[_0x381272(0xe1)]({'id':_0x43a085[_0x381272(0x151)]['id'],'params':{'unitId':_0x282e89,'drawings':[_0x570958]}}),_0x5b8eeb=[..._0x380e28[_0x381272(0x161)]??[],{'id':_0x43a085[_0x381272(0x17f)]['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'op':_0x1136b3,'objects':_0x1c693a,'type':_0x43a085[_0x381272(0x132)][_0x381272(0x1cd)]}},{'id':_0x43a085[_0x381272(0x126)]['id'],'params':[_0x282e89]},..._0x380e28[_0x381272(0x187)],{'id':_0x958308['id'],'params':_0x5ce546}],_0x35919f=[..._0x380e28['preUndos']??[],{'id':_0x43a085[_0x381272(0x17f)]['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'op':_0x45bde9,'objects':_0x1c693a,'type':_0x43a085[_0x381272(0x132)][_0x381272(0x1cd)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x282e89]},..._0x380e28[_0x381272(0x12c)],{'id':_0x958308['id'],'params':{'unitId':_0x282e89,'subUnitId':_0x442697,'shapeType':_0x38d413,'shapeId':_0x5b0281,'shapeData':_0x3230ea,'replace':!0x0}}];return(0x0,_0x59240f[_0x381272(0x16d)])(_0x5b8eeb,_0x5086b7)['result']?(_0x4f2b44['pushUndoRedo']({'unitID':_0x282e89,'undoMutations':_0x35919f,'redoMutations':_0x5b8eeb}),!0x0):!0x1;}},_0x137a5c={'type':_0x59240f[_0xc3989b(0x1a9)]['COMMAND'],'id':_0xc3989b(0x153),'handler':(_0x4de213,_0x57f60a)=>{const _0x55a0b6=_0xc3989b;let _0xbd11d=(0x0,_0x3b5464[_0x55a0b6(0x179)])(_0x4de213[_0x55a0b6(0xd9)](_0x59240f[_0x55a0b6(0x16f)]),_0x57f60a);if(!_0xbd11d)return!0x1;let _0x2078e0=_0x4de213[_0x55a0b6(0xd9)](_0x3b5464[_0x55a0b6(0x13b)]),{unitId:_0x26f543,subUnitId:_0x2a6632}=_0xbd11d,_0x100f5f=_0x2078e0[_0x55a0b6(0x1b9)](_0x26f543,_0x2a6632);if(!_0x100f5f)return!0x1;let _0x1a384c=_0x4de213['get'](_0x43a085[_0x55a0b6(0xf4)]),{shapeId:_0x48232b,flipH:_0x3acc73,flipV:_0x281e4c}=_0x57f60a,_0x16acce=_0x1a384c[_0x55a0b6(0xdd)]({'unitId':_0x26f543,'subUnitId':_0x2a6632,'drawingId':_0x48232b});if(!_0x16acce)return!0x1;let _0x4d537f=_0x4de213[_0x55a0b6(0xd9)](_0x13c298)[_0x55a0b6(0x128)](_0x26f543,_0x2a6632,_0x48232b);if(!_0x4d537f)return!0x1;let _0x18d6b8=_0x4de213[_0x55a0b6(0xd9)](_0x59240f['ICommandService']),_0x5b62f9=_0x4de213[_0x55a0b6(0xd9)](_0x59240f[_0x55a0b6(0x138)]),_0x3dc788=_0x4de213[_0x55a0b6(0xd9)](_0x3b5464[_0x55a0b6(0x15c)]),_0x116ae2={..._0x16acce[_0x55a0b6(0x190)]};_0x3acc73!==void 0x0&&(_0x116ae2['flipX']=!_0x116ae2[_0x55a0b6(0x150)]),_0x281e4c!==void 0x0&&(_0x116ae2[_0x55a0b6(0x12f)]=!_0x116ae2[_0x55a0b6(0x12f)]);let _0x1b094f=(0x0,_0x43a085[_0x55a0b6(0x1c9)])(_0x116ae2,_0x100f5f),_0x1ee51d=(0x0,_0x43a085[_0x55a0b6(0x1d6)])(_0x116ae2,_0x100f5f),_0xca6a6b=_0x4d537f['getShapeType'](),_0xb10ce5=_0x4d537f[_0x55a0b6(0x1bd)](),_0x516759={'unitId':_0x26f543,'subUnitId':_0x2a6632,'drawingId':_0x48232b,'drawingType':_0x59240f['DrawingTypeEnum'][_0x55a0b6(0xe5)],'sheetTransform':_0x1b094f,'transform':_0x116ae2,'data':{'shapeType':_0xca6a6b,'shapeData':_0xb10ce5},'axisAlignSheetTransform':_0x1ee51d,'allowTransform':!0x0},{undo:_0x38c21f,redo:_0x1a31f7,objects:_0x544f70}=_0x1a384c[_0x55a0b6(0x1a7)]([_0x516759]),_0x2b168e=_0x3dc788[_0x55a0b6(0xe1)]({'id':_0x43a085['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x26f543,'drawings':[_0x516759]}}),_0x2e523d=[..._0x2b168e[_0x55a0b6(0x161)]??[],{'id':_0x43a085[_0x55a0b6(0x17f)]['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'op':_0x1a31f7,'objects':_0x544f70,'type':_0x43a085[_0x55a0b6(0x132)][_0x55a0b6(0x1cd)]}},{'id':_0x43a085['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x26f543]},..._0x2b168e[_0x55a0b6(0x187)]],_0x12a057=[..._0x2b168e[_0x55a0b6(0x102)]??[],{'id':_0x43a085[_0x55a0b6(0x17f)]['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'op':_0x38c21f,'objects':_0x544f70,'type':_0x43a085[_0x55a0b6(0x132)]['UPDATE']}},{'id':_0x43a085[_0x55a0b6(0x126)]['id'],'params':[_0x26f543]},..._0x2b168e['undos']];if((0x0,_0x13ff20[_0x55a0b6(0x198)])(_0xca6a6b)){let _0x382e2e=_0x4d537f[_0x55a0b6(0x147)]();if(_0x382e2e){let _0x422725={..._0x382e2e};_0x422725[_0x55a0b6(0x15a)]=void 0x0,_0x422725['to']=void 0x0,_0x2e523d[_0x55a0b6(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'shapeId':_0x48232b,'shapeType':_0xca6a6b,'shapeData':{'relation':_0x422725}}}),_0x12a057[_0x55a0b6(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x26f543,'subUnitId':_0x2a6632,'shapeId':_0x48232b,'shapeType':_0xca6a6b,'shapeData':{'relation':_0x382e2e}}});}}return(0x0,_0x59240f[_0x55a0b6(0x16d)])(_0x2e523d,_0x18d6b8)['result']?(_0x5b62f9['pushUndoRedo']({'unitID':_0x26f543,'undoMutations':_0x12a057,'redoMutations':_0x2e523d}),!0x0):!0x1;}},_0x1f04c5={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':_0xc3989b(0xd6),'handler':(_0x4bfab5,_0x2e3d53)=>{const _0x5d6b57=_0xc3989b;let _0x591024=(0x0,_0x3b5464[_0x5d6b57(0x179)])(_0x4bfab5[_0x5d6b57(0xd9)](_0x59240f['IUniverInstanceService']),_0x2e3d53);if(!_0x591024)return!0x1;let _0x3b1723=_0x4bfab5['get'](_0x3b5464[_0x5d6b57(0x13b)]),{unitId:_0x49e22a,subUnitId:_0x5a5544}=_0x591024,_0x5cddd2=_0x3b1723[_0x5d6b57(0x1b9)](_0x49e22a,_0x5a5544);if(!_0x5cddd2)return!0x1;let _0x2e858f=_0x4bfab5[_0x5d6b57(0xd9)](_0x43a085['ISheetDrawingService']),{shapeId:_0x4b21cd,rotate:_0x18b97c}=_0x2e3d53,_0x29d5e9=_0x2e858f[_0x5d6b57(0xdd)]({'unitId':_0x49e22a,'subUnitId':_0x5a5544,'drawingId':_0x4b21cd});if(!_0x29d5e9)return!0x1;let _0x131ce9=_0x4bfab5[_0x5d6b57(0xd9)](_0x13c298)[_0x5d6b57(0x128)](_0x49e22a,_0x5a5544,_0x4b21cd);if(!_0x131ce9)return!0x1;let _0x371b2e=_0x4bfab5['get'](_0x59240f['ICommandService']),_0x7a4abf=_0x4bfab5[_0x5d6b57(0xd9)](_0x59240f[_0x5d6b57(0x138)]),_0x50ac9e=_0x4bfab5[_0x5d6b57(0xd9)](_0x3b5464['SheetInterceptorService']),_0x434755={..._0x29d5e9['transform']};_0x18b97c!==void 0x0&&(_0x434755[_0x5d6b57(0x1c3)]=(_0x434755['angle']||0x0)+_0x18b97c);let _0x44a936=(0x0,_0x43a085[_0x5d6b57(0x1c9)])(_0x434755,_0x5cddd2),_0x1c8d44=(0x0,_0x43a085[_0x5d6b57(0x1d6)])(_0x434755,_0x5cddd2),_0x56aedf=_0x131ce9[_0x5d6b57(0x173)](),_0x471f37=_0x131ce9[_0x5d6b57(0x1bd)](),_0x25a736={'unitId':_0x49e22a,'subUnitId':_0x5a5544,'drawingId':_0x4b21cd,'drawingType':_0x59240f[_0x5d6b57(0x1de)][_0x5d6b57(0xe5)],'sheetTransform':_0x44a936,'transform':_0x434755,'data':{'shapeType':_0x56aedf,'shapeData':_0x471f37},'axisAlignSheetTransform':_0x1c8d44,'allowTransform':!0x0},{undo:_0x2a98a8,redo:_0x1f08ac,objects:_0x56475c}=_0x2e858f[_0x5d6b57(0x1a7)]([_0x25a736]),_0x433040=_0x50ac9e['onCommandExecute']({'id':_0x43a085['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x49e22a,'drawings':[_0x25a736]}}),_0x312c2d=[..._0x433040[_0x5d6b57(0x161)]??[],{'id':_0x43a085['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x49e22a,'subUnitId':_0x5a5544,'op':_0x1f08ac,'objects':_0x56475c,'type':_0x43a085[_0x5d6b57(0x132)][_0x5d6b57(0x1cd)]}},{'id':_0x43a085[_0x5d6b57(0x126)]['id'],'params':[_0x49e22a]},..._0x433040['redos']],_0x2414c5=[..._0x433040[_0x5d6b57(0x102)]??[],{'id':_0x43a085[_0x5d6b57(0x17f)]['id'],'params':{'unitId':_0x49e22a,'subUnitId':_0x5a5544,'op':_0x2a98a8,'objects':_0x56475c,'type':_0x43a085[_0x5d6b57(0x132)]['UPDATE']}},{'id':_0x43a085[_0x5d6b57(0x126)]['id'],'params':[_0x49e22a]},..._0x433040[_0x5d6b57(0x12c)]];return(0x0,_0x59240f[_0x5d6b57(0x16d)])(_0x312c2d,_0x371b2e)[_0x5d6b57(0x164)]?(_0x7a4abf[_0x5d6b57(0x127)]({'unitID':_0x49e22a,'undoMutations':_0x2414c5,'redoMutations':_0x312c2d}),!0x0):!0x1;}},_0x4fe46e={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x5f38e0,_0x4bfb1e)=>{const _0x30684a=_0xc3989b;let _0x501c8b=(0x0,_0x3b5464['getSheetCommandTarget'])(_0x5f38e0[_0x30684a(0xd9)](_0x59240f[_0x30684a(0x16f)]),_0x4bfb1e);if(!_0x501c8b)return!0x1;let {unitId:_0x297990,subUnitId:_0x470a21}=_0x501c8b,{shapeId:_0x37b11f}=_0x4bfb1e,_0x514fd7=_0x5f38e0['get'](_0x13c298)['getShapeModel'](_0x297990,_0x470a21,_0x37b11f);if(!_0x514fd7)return!0x1;let _0x538450=_0x514fd7[_0x30684a(0x1bf)](),_0x4bf0a2=(_0x538450==null?void 0x0:_0x538450['isHorizontal'])??!0x0,_0x540ae6=!_0x4bf0a2,_0x37661a=_0x5f38e0[_0x30684a(0xd9)](_0x59240f[_0x30684a(0x1a5)]),_0x582276=_0x5f38e0['get'](_0x59240f[_0x30684a(0x138)]),_0xc0419={'unitId':_0x297990,'subUnitId':_0x470a21,'shapeId':_0x37b11f,'shapeData':{'shapeText':{'isHorizontal':_0x540ae6}}},_0x322936={'unitId':_0x297990,'subUnitId':_0x470a21,'shapeId':_0x37b11f,'shapeData':{'shapeText':{'isHorizontal':_0x4bf0a2}}},_0x97823=[{'id':_0x958308['id'],'params':_0xc0419}],_0x207f5d=[{'id':_0x958308['id'],'params':_0x322936}];return(0x0,_0x59240f['sequenceExecute'])(_0x97823,_0x37661a)['result']?(_0x582276[_0x30684a(0x127)]({'unitID':_0x297990,'undoMutations':_0x207f5d,'redoMutations':_0x97823}),!0x0):!0x1;}},_0x61905a={'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x1ae)],'id':'sheet.command.update-connector-relation','handler':(_0x22243a,_0x735199)=>{const _0x1750b7=_0xc3989b;var _0x5ea625;let _0x39c538=(0x0,_0x3b5464[_0x1750b7(0x179)])(_0x22243a[_0x1750b7(0xd9)](_0x59240f[_0x1750b7(0x16f)]),_0x735199);if(!_0x39c538)return!0x1;let _0x50ee3b=_0x22243a[_0x1750b7(0xd9)](_0x3b5464['SheetSkeletonService']),{unitId:_0x41d3af,subUnitId:_0x4a9029}=_0x39c538,_0x4122b7=_0x50ee3b[_0x1750b7(0x1b9)](_0x41d3af,_0x4a9029);if(!_0x4122b7)return!0x1;let _0x25cb7c=_0x22243a[_0x1750b7(0xd9)](_0x43a085[_0x1750b7(0xf4)]),{connectorShapeId:_0x1100e3,width:_0x4de542,height:_0x426c63,left:_0xb0e3d8,top:_0x2d9855,flipX:_0x3123dd,flipY:_0x550dcf,rotation:_0x254963,oldAdjustValues:_0x39ea76,newAdjustValues:_0x647440,oldLineType:_0x7a5a8a,newLineType:_0x222ed5,oldRelation:_0x41ca3e,newRelation:_0x1e8d30}=_0x735199,_0x5d7068=_0x25cb7c['getDrawingByParam']({'unitId':_0x41d3af,'subUnitId':_0x4a9029,'drawingId':_0x1100e3});if(!_0x5d7068)return!0x1;let _0x502249=_0x22243a[_0x1750b7(0xd9)](_0x13c298)[_0x1750b7(0x128)](_0x41d3af,_0x4a9029,_0x1100e3);if(!_0x502249)return!0x1;let _0x30b0cd=_0x22243a[_0x1750b7(0xd9)](_0x59240f['ICommandService']),_0x4bc87f=_0x22243a['get'](_0x59240f[_0x1750b7(0x138)]),_0x435b00=_0x22243a['get'](_0x3b5464['SheetInterceptorService']),_0x58c831={..._0x5d7068[_0x1750b7(0x190)],'width':_0x4de542,'height':_0x426c63,'left':_0xb0e3d8,'top':_0x2d9855,'flipX':_0x3123dd,'flipY':_0x550dcf,'angle':_0x254963??((_0x5ea625=_0x5d7068[_0x1750b7(0x190)])==null?void 0x0:_0x5ea625[_0x1750b7(0x1c3)])??0x0},_0x32353d=(0x0,_0x43a085[_0x1750b7(0x1c9)])(_0x58c831,_0x4122b7),_0xd8854c=(0x0,_0x43a085[_0x1750b7(0x1d6)])(_0x58c831,_0x4122b7),_0x47d161=_0x502249[_0x1750b7(0x173)](),_0x379387=_0x502249['getShapeData'](),_0x519ae7={'unitId':_0x41d3af,'subUnitId':_0x4a9029,'drawingId':_0x1100e3,'drawingType':_0x59240f['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x32353d,'transform':_0x58c831,'data':{'shapeType':_0x222ed5||_0x7a5a8a||_0x47d161,'shapeData':{..._0x379387,'adjustValues':_0x647440||_0x39ea76||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0xea)]),'relation':_0x1e8d30||_0x41ca3e||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0x189)])}},'axisAlignSheetTransform':_0xd8854c,'allowTransform':!0x0},{undo:_0x32dc63,redo:_0x5d4c11,objects:_0x338296}=_0x25cb7c['getBatchUpdateOp']([_0x519ae7]),_0xb2fb9e=_0x435b00[_0x1750b7(0xe1)]({'id':_0x43a085[_0x1750b7(0x151)]['id'],'params':{'unitId':_0x41d3af,'drawings':[_0x519ae7]}}),_0x358dc6=[..._0xb2fb9e[_0x1750b7(0x161)]??[],{'id':_0x43a085[_0x1750b7(0x17f)]['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'op':_0x5d4c11,'objects':_0x338296,'type':_0x43a085['DrawingApplyType'][_0x1750b7(0x1cd)]}},{'id':_0x43a085[_0x1750b7(0x126)]['id'],'params':[_0x41d3af]},..._0xb2fb9e[_0x1750b7(0x187)],{'id':_0x958308['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'shapeId':_0x1100e3,'shapeType':_0x222ed5,'shapeData':{'adjustValues':_0x647440,'relation':_0x1e8d30}}}],_0x50cf1e=[..._0xb2fb9e[_0x1750b7(0x102)]??[],{'id':_0x43a085[_0x1750b7(0x17f)]['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'op':_0x32dc63,'objects':_0x338296,'type':_0x43a085['DrawingApplyType'][_0x1750b7(0x1cd)]}},{'id':_0x43a085[_0x1750b7(0x126)]['id'],'params':[_0x41d3af]},..._0xb2fb9e['undos'],{'id':_0x958308['id'],'params':{'unitId':_0x41d3af,'subUnitId':_0x4a9029,'shapeId':_0x1100e3,'shapeType':_0x47d161,'shapeData':{..._0x379387,'adjustValues':_0x39ea76||(_0x379387==null?void 0x0:_0x379387[_0x1750b7(0xea)]),'relation':_0x41ca3e||(_0x379387==null?void 0x0:_0x379387['relation'])}}}];return(0x0,_0x59240f['sequenceExecute'])(_0x358dc6,_0x30b0cd)[_0x1750b7(0x164)]?(_0x4bc87f['pushUndoRedo']({'unitID':_0x41d3af,'undoMutations':_0x50cf1e,'redoMutations':_0x358dc6}),!0x0):!0x1;}},_0x5782d1={'type':_0x59240f['CommandType'][_0xc3989b(0x1ae)],'id':'sheet.command.update-line-shape-resize','handler':(_0x46b02b,_0x589f8c)=>{const _0x46107a=_0xc3989b;let _0x276e89=(0x0,_0x3b5464[_0x46107a(0x179)])(_0x46b02b[_0x46107a(0xd9)](_0x59240f[_0x46107a(0x16f)]),_0x589f8c);if(!_0x276e89)return!0x1;let _0x59b788=_0x46b02b[_0x46107a(0xd9)](_0x3b5464[_0x46107a(0x13b)]),{unitId:_0x350e13,subUnitId:_0x294eef}=_0x276e89,_0x4472e7=_0x59b788[_0x46107a(0x1b9)](_0x350e13,_0x294eef);if(!_0x4472e7)return!0x1;let _0x331dbd=_0x46b02b['get'](_0x43a085['ISheetDrawingService']),{shapeId:_0x852eac,width:_0x5b662b,height:_0xc2a8df,left:_0x86cecb,top:_0x122ec2,flipX:_0x148484,flipY:_0x5ad845,angle:_0x11cda0,oldAdjustValues:_0x8d3c7e,newAdjustValues:_0x385af1,oldLineType:_0x22b900,newLineType:_0xca5163}=_0x589f8c,_0x5dc2ca=_0x331dbd['getDrawingByParam']({'unitId':_0x350e13,'subUnitId':_0x294eef,'drawingId':_0x852eac});if(!_0x5dc2ca)return!0x1;let _0x33ffde=_0x46b02b[_0x46107a(0xd9)](_0x13c298)[_0x46107a(0x128)](_0x350e13,_0x294eef,_0x852eac);if(!_0x33ffde)return!0x1;let _0x2a9ec0=_0x46b02b['get'](_0x59240f[_0x46107a(0x1a5)]),_0xf5dd63=_0x46b02b[_0x46107a(0xd9)](_0x59240f[_0x46107a(0x138)]),_0x155179=_0x46b02b[_0x46107a(0xd9)](_0x3b5464[_0x46107a(0x15c)]),_0x1aae12={..._0x5dc2ca[_0x46107a(0x190)],'width':_0x5b662b,'height':_0xc2a8df,'left':_0x86cecb,'top':_0x122ec2,'flipX':_0x148484,'flipY':_0x5ad845,'angle':_0x11cda0},_0x3faaae=(0x0,_0x43a085['transformToDrawingPosition'])(_0x1aae12,_0x4472e7),_0x300923=(0x0,_0x43a085[_0x46107a(0x1d6)])(_0x1aae12,_0x4472e7),_0x3918ba=_0x33ffde[_0x46107a(0x173)](),_0x2e1055=_0x33ffde['getShapeData'](),_0x5df398={'unitId':_0x350e13,'subUnitId':_0x294eef,'drawingId':_0x852eac,'drawingType':_0x59240f[_0x46107a(0x1de)][_0x46107a(0xe5)],'sheetTransform':_0x3faaae,'transform':_0x1aae12,'data':{'shapeType':_0xca5163||_0x22b900||_0x3918ba,'shapeData':{..._0x2e1055,'adjustValues':_0x385af1||_0x8d3c7e||(_0x2e1055==null?void 0x0:_0x2e1055['adjustValues'])}},'axisAlignSheetTransform':_0x300923,'allowTransform':!0x0},{undo:_0x1c874e,redo:_0x16202c,objects:_0x115c06}=_0x331dbd['getBatchUpdateOp']([_0x5df398]),_0xea83e2=_0x155179[_0x46107a(0xe1)]({'id':_0x43a085[_0x46107a(0x151)]['id'],'params':{'unitId':_0x350e13,'drawings':[_0x5df398]}}),_0x392a38=[..._0xea83e2[_0x46107a(0x161)]??[],{'id':_0x43a085[_0x46107a(0x17f)]['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'op':_0x16202c,'objects':_0x115c06,'type':_0x43a085[_0x46107a(0x132)][_0x46107a(0x1cd)]}},{'id':_0x43a085[_0x46107a(0x126)]['id'],'params':[_0x350e13]},..._0xea83e2[_0x46107a(0x187)],{'id':_0x958308['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'shapeId':_0x852eac,'shapeType':_0xca5163,'shapeData':{'adjustValues':_0x385af1}}}],_0x12a192=[..._0xea83e2['preUndos']??[],{'id':_0x43a085[_0x46107a(0x17f)]['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'op':_0x1c874e,'objects':_0x115c06,'type':_0x43a085[_0x46107a(0x132)][_0x46107a(0x1cd)]}},{'id':_0x43a085[_0x46107a(0x126)]['id'],'params':[_0x350e13]},..._0xea83e2[_0x46107a(0x12c)],{'id':_0x958308['id'],'params':{'unitId':_0x350e13,'subUnitId':_0x294eef,'shapeId':_0x852eac,'shapeType':_0x3918ba,'shapeData':{..._0x2e1055,'adjustValues':_0x8d3c7e||(_0x2e1055==null?void 0x0:_0x2e1055[_0x46107a(0xea)])}}}];return(0x0,_0x59240f[_0x46107a(0x16d)])(_0x392a38,_0x2a9ec0)['result']?(_0xf5dd63[_0x46107a(0x127)]({'unitID':_0x350e13,'undoMutations':_0x12a192,'redoMutations':_0x392a38}),!0x0):!0x1;}},_0x9a3bab={'id':_0xc3989b(0xe6),'type':_0x59240f[_0xc3989b(0x1a9)][_0xc3989b(0x12b)],'handler':(_0x3dbef3,_0x4ba698)=>{const _0x5a0d50=_0xc3989b;let {unitId:_0xa40e9f,subUnitId:_0x125b60,shapeType:_0x36fb47,shapeId:_0x5111d9,shapeData:_0x2bb51e}=_0x4ba698,_0x6d13ab=_0x3dbef3[_0x5a0d50(0xd9)](_0x13c298)[_0x5a0d50(0x128)](_0xa40e9f,_0x125b60,_0x5111d9);return _0x6d13ab&&(_0x6d13ab['setShapeType'](_0x36fb47),_0x2bb51e&&(_0x6d13ab==null||_0x6d13ab[_0x5a0d50(0xf5)](_0x2bb51e))),!0x0;}};var _0x133b87=_0xc3989b(0xf1),_0x3d51b=_0xc3989b(0x13d);function _0x38e8ef(_0x15444b){const _0x2dda01=_0xc3989b;var _0x467235,_0x4118aa,_0x5962c0,_0x588e73,_0x525fd4,_0x885767,_0x425fa0;return{'left':((_0x467235=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x467235[_0x2dda01(0x18a)])??0x0,'top':((_0x4118aa=_0x15444b['transform'])==null?void 0x0:_0x4118aa[_0x2dda01(0x14e)])??0x0,'width':((_0x5962c0=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x5962c0[_0x2dda01(0xef)])??0xc8,'height':((_0x588e73=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x588e73[_0x2dda01(0x180)])??0xc8,'rotation':((_0x525fd4=_0x15444b[_0x2dda01(0x190)])==null?void 0x0:_0x525fd4[_0x2dda01(0xfa)])??0x0,'flipX':((_0x885767=_0x15444b['transform'])==null?void 0x0:_0x885767['flipX'])??!0x1,'flipY':((_0x425fa0=_0x15444b['transform'])==null?void 0x0:_0x425fa0[_0x2dda01(0x12f)])??!0x1};}let _0x359b2e=class{constructor(_0x218722,_0x37c870,_0x330e0d,_0x4efb17){const _0x45e1fb=_0xc3989b;this[_0x45e1fb(0xeb)]=_0x218722,this[_0x45e1fb(0x18f)]=_0x37c870,this[_0x45e1fb(0x1d1)]=_0x330e0d,this[_0x45e1fb(0x1d0)]=_0x4efb17,_0x7318f0(this,'hostType',_0x59240f['UniverInstanceType'][_0x45e1fb(0x149)]);}get[_0xc3989b(0x1b3)](){return{'subscribe':_0xbf2c19=>{const _0x25b22b=_0x3f84;let _0x1503a0=this[_0x25b22b(0xeb)][_0x25b22b(0x157)](_0x1f582a=>{const _0x2d4bca=_0x25b22b;(_0x1f582a['id']===_0x3a2754['id']||_0x1f582a['id']===_0x3b0254['id']||_0x1f582a['id']===_0x958308['id']||_0x1f582a['id']===_0x9a3bab['id'])&&_0xbf2c19({'unitId':_0x1f582a[_0x2d4bca(0x130)][_0x2d4bca(0x1a8)]});});return{'unsubscribe':()=>_0x1503a0[_0x25b22b(0x1ce)]()};}};}[_0xc3989b(0x12d)](_0x1a7737){const _0x2bcafa=_0xc3989b;var _0x401e36;let _0x8fd05e=(_0x401e36=this['_drawingService'][_0x2bcafa(0x11e)](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)]))==null?void 0x0:_0x401e36[_0x1a7737['shapeId']],_0x47a1f1=this[_0x2bcafa(0x18f)]['getShapeType'](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)],_0x1a7737[_0x2bcafa(0x103)]);if(!_0x8fd05e||_0x8fd05e[_0x2bcafa(0x166)]!==_0x59240f[_0x2bcafa(0x1de)]['DRAWING_SHAPE']||!_0x47a1f1)return null;let _0x569902=_0x8fd05e[_0x2bcafa(0x190)];return{..._0x1a7737,'shapeType':_0x47a1f1,'shapeData':_0x59240f[_0x2bcafa(0x13c)]['deepClone'](this[_0x2bcafa(0x18f)]['getShapeDataById'](_0x1a7737[_0x2bcafa(0x1a8)],_0x1a7737[_0x2bcafa(0x1e7)],_0x1a7737[_0x2bcafa(0x103)])??{}),'name':_0x8fd05e[_0x2bcafa(0x1e8)],'description':_0x8fd05e['description'],'visible':_0x8fd05e['hidden']!==!0x0,'selectable':_0x8fd05e[_0x2bcafa(0x1df)]!==!0x1,'transform':{'left':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x18a)])??0x0,'top':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x14e)])??0x0,'width':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0xef)])??0xc8,'height':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x180)])??0xc8,'rotation':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x1c3)])??0x0,'flipX':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x150)])??!0x1,'flipY':(_0x569902==null?void 0x0:_0x569902[_0x2bcafa(0x12f)])??!0x1}};}[_0xc3989b(0xfd)](_0x1adbf6){const _0x3d4f52=_0xc3989b;let _0x54f7d0=this['_drawingService'][_0x3d4f52(0x11e)](_0x1adbf6[_0x3d4f52(0x1a8)],_0x1adbf6[_0x3d4f52(0x1e7)])??{};return Object['values'](_0x54f7d0)[_0x3d4f52(0x1c5)](_0x2840ec=>(_0x2840ec==null?void 0x0:_0x2840ec[_0x3d4f52(0x166)])===_0x59240f['DrawingTypeEnum']['DRAWING_SHAPE'])[_0x3d4f52(0x1c0)](_0xfb4285=>this['getShape']({..._0x1adbf6,'shapeId':_0xfb4285['drawingId']}))[_0x3d4f52(0x1c5)](_0x2efd45=>!!_0x2efd45);}[_0xc3989b(0x1d8)](_0x872e1c){const _0x3003f3=_0xc3989b;let _0x64e470=this[_0x3003f3(0x1d0)]['getUnit'](_0x872e1c,_0x59240f['UniverInstanceType'][_0x3003f3(0x149)]);return(_0x64e470==null?void 0x0:_0x64e470[_0x3003f3(0x12a)]()['flatMap'](_0x1bb029=>this[_0x3003f3(0xfd)]({'hostType':this[_0x3003f3(0x10b)],'unitId':_0x872e1c,'subUnitId':_0x1bb029[_0x3003f3(0x119)]()})))??[];}[_0xc3989b(0x1d9)](_0x1ce1f3,_0x45a2d7){const _0x81dfa7=_0xc3989b;let _0xabae58=(0x0,_0x59240f[_0x81dfa7(0x193)])(),_0x34714c=_0x38e8ef(_0x45a2d7),_0x161a92=_0x59240f[_0x81dfa7(0x13c)][_0x81dfa7(0x170)](_0x45a2d7[_0x81dfa7(0x1b0)]??(0x0,_0x13ff20[_0x81dfa7(0x18c)])(_0x45a2d7['shapeType']));return this[_0x81dfa7(0xeb)][_0x81dfa7(0x17b)](_0x32a208['id'],{'unitId':_0x1ce1f3[_0x81dfa7(0x1a8)],'subUnitId':_0x1ce1f3[_0x81dfa7(0x1e7)],'shapeId':_0xabae58,'shapeType':_0x45a2d7[_0x81dfa7(0xf9)],'shapeData':_0x161a92,'name':_0x45a2d7['name'],'description':_0x45a2d7[_0x81dfa7(0xed)],'position':{'x':_0x34714c['left'],'y':_0x34714c[_0x81dfa7(0x14e)]},'width':_0x34714c[_0x81dfa7(0xef)],'height':_0x34714c[_0x81dfa7(0x180)],'rotation':_0x34714c[_0x81dfa7(0xfa)],'flipX':_0x34714c[_0x81dfa7(0x150)],'flipY':_0x34714c[_0x81dfa7(0x12f)],'visible':_0x45a2d7[_0x81dfa7(0x1ac)]??!0x0,'selectable':_0x45a2d7[_0x81dfa7(0x1df)]??!0x0})?{..._0x1ce1f3,'shapeId':_0xabae58,'shapeType':_0x45a2d7[_0x81dfa7(0xf9)],'shapeData':_0x161a92,'name':_0x45a2d7[_0x81dfa7(0x1e8)],'description':_0x45a2d7[_0x81dfa7(0xed)],'visible':_0x45a2d7['visible']??!0x0,'selectable':_0x45a2d7[_0x81dfa7(0x1df)]??!0x0,'transform':_0x34714c}:null;}[_0xc3989b(0x19b)](_0x226a50,_0xe56431){const _0x31e646=_0xc3989b;var _0x45a6bb;let _0x3e5b65=this[_0x31e646(0x12d)](_0x226a50);if(!_0x3e5b65)return!0x1;let _0x2249d5={..._0x3e5b65[_0x31e646(0x190)],..._0xe56431['transform']};return this['_commandService']['syncExecuteCommand'](_0x2f1170['id'],{'unitId':_0x226a50[_0x31e646(0x1a8)],'subUnitId':_0x226a50[_0x31e646(0x1e7)],'shapeId':_0x226a50['shapeId'],'shapeType':_0xe56431[_0x31e646(0xf9)]??((_0x45a6bb=_0xe56431[_0x31e646(0x1b0)])==null?void 0x0:_0x45a6bb[_0x31e646(0xf9)])??_0x3e5b65['shapeType'],'shapeData':_0xe56431[_0x31e646(0x1b0)]??_0x3e5b65[_0x31e646(0x1b0)],'position':{'x':_0x2249d5[_0x31e646(0x18a)],'y':_0x2249d5[_0x31e646(0x14e)]},'width':_0x2249d5[_0x31e646(0xef)],'height':_0x2249d5[_0x31e646(0x180)],'rotation':_0x2249d5[_0x31e646(0xfa)],'flipX':_0x2249d5[_0x31e646(0x150)],'flipY':_0x2249d5['flipY'],'name':_0x31e646(0x1e8)in _0xe56431?_0xe56431['name']:_0x3e5b65['name'],'description':_0x31e646(0xed)in _0xe56431?_0xe56431[_0x31e646(0xed)]:_0x3e5b65['description'],'visible':_0xe56431[_0x31e646(0x1ac)]??_0x3e5b65[_0x31e646(0x1ac)],'selectable':_0xe56431[_0x31e646(0x1df)]??_0x3e5b65[_0x31e646(0x1df)]});}[_0xc3989b(0x14a)](_0xd5ad44,_0x525a5a,_0x39bfdd){const _0x33cf67=_0xc3989b;let _0x211ce4=this[_0x33cf67(0x12d)](_0xd5ad44),_0x48d065=_0x211ce4==null?void 0x0:_0x211ce4[_0x33cf67(0x1b0)][_0x33cf67(0x1c2)];return!_0x211ce4||!_0x48d065?null:{'id':_0x958308['id'],'params':{'unitId':_0xd5ad44[_0x33cf67(0x1a8)],'subUnitId':_0xd5ad44['subUnitId'],'shapeId':_0xd5ad44['shapeId'],'shapeData':{..._0x211ce4[_0x33cf67(0x1b0)],'formulaBinding':{..._0x48d065,'lastValue':_0x59240f['Tools'][_0x33cf67(0x170)](_0x39bfdd)}},'replace':!0x0,'formulaLastValueGuard':_0x525a5a}};}[_0xc3989b(0x1a0)](_0x41e08b){const _0x5c718f=_0xc3989b;return this['_commandService'][_0x5c718f(0x17b)](_0x43a085[_0x5c718f(0x181)]['id'],{'unitId':_0x41e08b[_0x5c718f(0x1a8)],'drawings':[{'unitId':_0x41e08b[_0x5c718f(0x1a8)],'subUnitId':_0x41e08b[_0x5c718f(0x1e7)],'drawingId':_0x41e08b[_0x5c718f(0x103)],'drawingType':_0x59240f[_0x5c718f(0x1de)][_0x5c718f(0xe5)]}]});}[_0xc3989b(0x117)](_0x4285ef){const _0x6bd8a7=_0xc3989b;return this[_0x6bd8a7(0x1c6)](_0x4285ef,_0x59240f['ArrangeTypeEnum']['front']);}[_0xc3989b(0x1bb)](_0x2c94cc){const _0x352077=_0xc3989b;return this[_0x352077(0x1c6)](_0x2c94cc,_0x59240f[_0x352077(0x145)]['forward']);}[_0xc3989b(0x11f)](_0x567300){const _0x1c87fd=_0xc3989b;return this[_0x1c87fd(0x1c6)](_0x567300,_0x59240f[_0x1c87fd(0x145)]['backward']);}['sendToBack'](_0x6d48c1){const _0x3d04dd=_0xc3989b;return this[_0x3d04dd(0x1c6)](_0x6d48c1,_0x59240f[_0x3d04dd(0x145)][_0x3d04dd(0x112)]);}['setZOrder'](_0x40aa54,_0x74cd2a){const _0x2f3dab=_0xc3989b;return this['_commandService'][_0x2f3dab(0x17b)](_0x43a085[_0x2f3dab(0xd8)]['id'],{'unitId':_0x40aa54['unitId'],'subUnitId':_0x40aa54[_0x2f3dab(0x1e7)],'drawingIds':[_0x40aa54[_0x2f3dab(0x103)]],'zOrder':_0x74cd2a});}[_0xc3989b(0x1c6)](_0x2f52db,_0x19b1ff){const _0x56e589=_0xc3989b;return this[_0x56e589(0xeb)][_0x56e589(0x17b)](_0x43a085[_0x56e589(0xd8)]['id'],{'unitId':_0x2f52db['unitId'],'subUnitId':_0x2f52db[_0x56e589(0x1e7)],'drawingIds':[_0x2f52db['shapeId']],'arrangeType':_0x19b1ff});}};_0x359b2e=_0x4bde66([_0x4cea80(0x0,_0x59240f['ICommandService']),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x2,_0x43a085[_0xc3989b(0xf4)]),_0x4cea80(0x3,_0x59240f[_0xc3989b(0x16f)])],_0x359b2e);let _0x57bb8e={},_0xf242ae=class extends _0x59240f[_0xc3989b(0x182)]{constructor(_0x559455,_0x10077f,_0x296d64,_0x2d2300,_0x432172,_0x2f8d06,_0x3e28c6){const _0x372cbd=_0xc3989b;super(),this['_commandService']=_0x559455,this[_0x372cbd(0x1b8)]=_0x10077f,this[_0x372cbd(0x188)]=_0x296d64,this[_0x372cbd(0x144)]=_0x2d2300,this[_0x372cbd(0x111)]=_0x432172,this[_0x372cbd(0x14d)]=_0x2f8d06,this[_0x372cbd(0x125)](),this[_0x372cbd(0x1cb)](),this[_0x372cbd(0x167)](this['_shapeHostAdapterRegistry'][_0x372cbd(0x1c4)](_0x3e28c6));}[_0xc3989b(0x125)](){const _0x4dc9b2=_0xc3989b;[_0x32a208,_0x2f1170,_0x137a5c,_0x1f04c5,_0x4fe46e,_0x61905a,_0x5782d1,_0x3a2754,_0x3b0254,_0x9a3bab,_0x958308][_0x4dc9b2(0x196)](_0x20cad1=>this[_0x4dc9b2(0x167)](this[_0x4dc9b2(0xeb)]['registerCommand'](_0x20cad1)));}['_initCommandInterceptor'](){const _0x290f36=_0xc3989b;this[_0x290f36(0x167)](this[_0x290f36(0x1b8)][_0x290f36(0x1e3)]({'getMutations':_0x50a2a8=>{const _0x583b0f=_0x290f36;if(_0x50a2a8['id']===_0x43a085[_0x583b0f(0x181)]['id']){let {drawings:_0x59c870}=_0x50a2a8['params'],_0x570035=_0x59c870[_0x583b0f(0x1c5)](_0x3d2bc0=>_0x3d2bc0[_0x583b0f(0x166)]===_0x59240f[_0x583b0f(0x1de)][_0x583b0f(0xe5)]);if(_0x570035['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x136fa6=[],_0x4a62b6=[];return _0x570035[_0x583b0f(0x196)](_0x4bc26b=>{const _0x22790f=_0x583b0f;let {unitId:_0x87119d,subUnitId:_0x5c0913,drawingId:_0x56aeda}=_0x4bc26b,_0x927d3e=this[_0x22790f(0x144)][_0x22790f(0x128)](_0x87119d,_0x5c0913,_0x56aeda);if(!_0x927d3e)throw TypeError(_0x22790f(0x122)+_0x927d3e);_0x136fa6[_0x22790f(0xdb)]({'id':_0x3b0254['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x56aeda}}),_0x4a62b6[_0x22790f(0xdb)]({'id':_0x3a2754['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x56aeda,'shapeType':_0x927d3e['getShapeType'](),'shapeData':_0x927d3e[_0x22790f(0x1bd)]()}});let _0x3e2467=this[_0x22790f(0x144)][_0x22790f(0x1d7)](_0x87119d,_0x5c0913,_0x56aeda);if(_0x3e2467)for(let _0x153b72 of _0x3e2467){let _0x1e9312=_0x153b72['lineShapeId'],_0x298a7c=_0x153b72[_0x22790f(0xdf)],_0x4cf788=_0x298a7c?{'from':void 0x0}:{'to':void 0x0},_0x45523f=_0x298a7c?{'from':{'shapeId':_0x153b72[_0x22790f(0x103)],'cxnIndex':_0x153b72['cxnIndex']}}:{'to':{'shapeId':_0x153b72['shapeId'],'cxnIndex':_0x153b72[_0x22790f(0x1dd)]}};_0x136fa6[_0x22790f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x1e9312,'shapeData':{'relation':_0x4cf788}}}),_0x4a62b6['push']({'id':_0x958308['id'],'params':{'unitId':_0x87119d,'subUnitId':_0x5c0913,'shapeId':_0x1e9312,'shapeData':{'relation':_0x45523f}}});}}),{'preRedos':_0x136fa6,'redos':[],'preUndos':[],'undos':_0x4a62b6};}if(_0x50a2a8['id']===_0x43a085[_0x583b0f(0x151)]['id']){let {drawings:_0x5c85d3}=_0x50a2a8[_0x583b0f(0x130)],_0x941795=_0x5c85d3[_0x583b0f(0x1c5)](_0x176023=>_0x176023[_0x583b0f(0x166)]===_0x59240f[_0x583b0f(0x1de)][_0x583b0f(0xe5)]);if(_0x941795[_0x583b0f(0x1a1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1aba85=[],_0x4b52de=[];for(let _0x290b60 of _0x941795){let {unitId:_0x825461,subUnitId:_0x9c5c08,drawingId:_0x2d7d99,transform:_0x58f79b}=_0x290b60;if(!_0x825461||!_0x9c5c08||!_0x2d7d99||!_0x58f79b)continue;let _0x291ad3=this['_sheetsShapeService'][_0x583b0f(0x128)](_0x825461,_0x9c5c08,_0x2d7d99);if(!_0x291ad3)throw TypeError(_0x583b0f(0x122)+_0x291ad3);if((0x0,_0x13ff20['isConnectorShape'])(_0x291ad3[_0x583b0f(0x173)]())){let _0x127b78=this['_sheetsShapeService'][_0x583b0f(0x1dc)](_0x825461,_0x9c5c08,_0x2d7d99);_0x127b78&&(_0x1aba85[_0x583b0f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x825461,'subUnitId':_0x9c5c08,'shapeId':_0x2d7d99,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4b52de[_0x583b0f(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x825461,'subUnitId':_0x9c5c08,'shapeId':_0x2d7d99,'shapeData':{'relation':_0x127b78}}}));}else{let _0x52f8cb=this['_sheetsShapeService'][_0x583b0f(0x1d7)](_0x825461,_0x9c5c08,_0x2d7d99);if(_0x52f8cb&&_0x52f8cb['length']>0x0)for(let _0x4a3ea9 of _0x52f8cb){let _0x118215=_0x4a3ea9['lineShapeId'],_0x240df3=_0x4a3ea9[_0x583b0f(0xdf)],_0x4380ae=this[_0x583b0f(0x144)][_0x583b0f(0x128)](_0x825461,_0x9c5c08,_0x118215);if(!_0x4380ae)continue;let _0x459e1e=_0x4380ae['getStartConnectInfo'](),_0x166cbb=_0x4380ae['getEndConnectInfo']();_0x459e1e&&_0x166cbb?this[_0x583b0f(0x118)](_0x825461,_0x9c5c08,_0x118215,_0x4380ae,_0x459e1e,_0x166cbb,_0x1aba85,_0x4b52de,_0x2d7d99,_0x58f79b):this[_0x583b0f(0x18d)](_0x825461,_0x9c5c08,_0x118215,_0x4380ae,_0x240df3?_0x459e1e:_0x166cbb,_0x240df3,_0x1aba85,_0x4b52de,_0x2d7d99,_0x58f79b);}}}return{'preRedos':[],'redos':_0x1aba85,'preUndos':_0x4b52de,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0xc3989b(0x155)](_0x594c76,_0x25a3c8,_0x3485b2,_0x32eb7c,_0x5ed3ae){const _0x2e0eef=_0xc3989b;if(!_0x25a3c8||!_0x3485b2)return null;let {shapeId:_0x5a4cd2,cxnIndex:_0x15ff01}=_0x594c76,_0xc14862=this[_0x2e0eef(0x144)]['getShapeModel'](_0x25a3c8,_0x3485b2,_0x5a4cd2);if(!_0xc14862)return null;let _0x27e2d3=this['_drawingManagerService'][_0x2e0eef(0xdd)]({'unitId':_0x25a3c8,'subUnitId':_0x3485b2,'drawingId':_0x5a4cd2});if(!(_0x27e2d3!=null&&_0x27e2d3[_0x2e0eef(0x190)]))return null;let {left:_0xa452e5=0x0,top:_0x11120d=0x0,width:_0x1500e2=0x0,height:_0x5048d1=0x0,flipX:_0x533111=!0x1,flipY:_0x4dae35=!0x1,angle:_0x22a8e2}=_0x27e2d3['transform'];_0x5ed3ae&&_0x32eb7c===_0x5a4cd2&&(_0xa452e5=_0x5ed3ae[_0x2e0eef(0x18a)]??_0xa452e5,_0x11120d=_0x5ed3ae['top']??_0x11120d,_0x1500e2=_0x5ed3ae['width']??_0x1500e2,_0x5048d1=_0x5ed3ae[_0x2e0eef(0x180)]??_0x5048d1,_0x533111=_0x5ed3ae[_0x2e0eef(0x150)]??_0x533111,_0x4dae35=_0x5ed3ae[_0x2e0eef(0x12f)]??_0x4dae35,_0x22a8e2=_0x5ed3ae['angle']??_0x22a8e2),_0xc14862['updateContext']({'width':_0x1500e2,'height':_0x5048d1});let _0x3c303f=_0xc14862[_0x2e0eef(0x134)]()[_0x2e0eef(0x1da)](_0x2f7030=>_0x2f7030[_0x2e0eef(0x154)]===_0x15ff01);if(!_0x3c303f)return null;let _0x4107d9=_0x533111?_0x1500e2-_0x3c303f['x']:_0x3c303f['x'],_0x142743=_0x4dae35?_0x5048d1-_0x3c303f['y']:_0x3c303f['y'];if(_0x22a8e2!==0x0&&_0x22a8e2!=null){let _0x3c30fe=_0x22a8e2*Math['PI']/0xb4,_0x515b31=Math[_0x2e0eef(0xe4)](_0x3c30fe),_0x16a6eb=Math[_0x2e0eef(0x1cc)](_0x3c30fe),_0x58b5f4=_0x1500e2/0x2,_0x48d999=_0x5048d1/0x2,_0x5a2ba7=_0x4107d9-_0x58b5f4,_0x3c7c61=_0x142743-_0x48d999;_0x4107d9=_0x58b5f4+_0x5a2ba7*_0x515b31-_0x3c7c61*_0x16a6eb,_0x142743=_0x48d999+_0x5a2ba7*_0x16a6eb+_0x3c7c61*_0x515b31;}_0x4107d9+=_0xa452e5,_0x142743+=_0x11120d;let _0x11fe2f=_0x3c303f[_0x2e0eef(0xe9)]/0xea60;_0x533111&&(_0x11fe2f=0xb4-_0x11fe2f),_0x4dae35&&(_0x11fe2f=-_0x11fe2f),_0x11fe2f+=_0x22a8e2||0x0,_0x11fe2f=(_0x11fe2f%0x168+0x168)%0x168;let _0x5c462e=(0x0,_0x13ff20[_0x2e0eef(0x177)])({'left':_0xa452e5,'top':_0x11120d,'width':_0x1500e2,'height':_0x5048d1},_0x22a8e2||0x0);return{'point':{'x':_0x4107d9,'y':_0x142743},'angle':_0x11fe2f,'bounds':_0x5c462e};}[_0xc3989b(0x118)](_0x2b5cc3,_0x58aea1,_0x3d4f35,_0x4b2fbd,_0x584a97,_0x4ff6d7,_0x32b05c,_0x43bafa,_0x446083,_0x402291){const _0x55d361=_0xc3989b;let _0x32c917=this[_0x55d361(0x188)]['getSkeleton'](_0x2b5cc3,_0x58aea1);if(!_0x32c917)return;let _0x3f38bb=_0x4b2fbd[_0x55d361(0x147)](),_0x15e3a9=_0x4b2fbd[_0x55d361(0x107)](),_0x393bf0={},_0xac81aa={};_0x15e3a9[_0x55d361(0x196)](_0x2b8c57=>{let _0x245b98=_0x4b2fbd['getAdjustValueByName'](_0x2b8c57);_0xac81aa[_0x2b8c57]=_0x245b98??0x0;});let _0x1959ab=this[_0x55d361(0x155)](_0x584a97,_0x2b5cc3,_0x58aea1,_0x446083,_0x402291),_0x37e30f=this[_0x55d361(0x155)](_0x4ff6d7,_0x2b5cc3,_0x58aea1,_0x446083,_0x402291);if(_0x1959ab&&_0x37e30f){let _0x10e90b=_0x4b2fbd[_0x55d361(0x173)](),_0x2dffbe=(0x0,_0x13ff20['routeConnectorLineShape'])(_0x1959ab,_0x37e30f,_0x10e90b),_0x1ab691=_0x10e90b;if(_0x2dffbe){let _0x5e86c8=(0x0,_0x13ff20[_0x55d361(0x15e)])(_0x2dffbe,_0x4b2fbd['getShapeType']()),_0x4f0727=this[_0x55d361(0x111)]['getDrawingData'](_0x2b5cc3,_0x58aea1);if(_0x4f0727&&_0x4f0727[_0x3d4f35]){let _0x12ffbe=_0x4f0727[_0x3d4f35];_0x1ab691=_0x5e86c8['lineType'];for(let [_0x13e2ae,_0xaf1753]of Object['entries'](_0x5e86c8[_0x55d361(0xea)]))_0x393bf0[_0x13e2ae]=_0xaf1753;let _0x4f926b={..._0x12ffbe[_0x55d361(0x190)],'width':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0xef)],'height':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x180)],'left':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x18a)],'top':_0x5e86c8[_0x55d361(0x159)]['top'],'flipX':_0x5e86c8[_0x55d361(0x159)]['flipX'],'flipY':_0x5e86c8[_0x55d361(0x159)][_0x55d361(0x12f)],'angle':_0x5e86c8['rotation']},_0x159e81=(0x0,_0x43a085[_0x55d361(0x1c9)])(_0x4f926b,_0x32c917),_0x332fca=(0x0,_0x43a085[_0x55d361(0x1d6)])(_0x4f926b,_0x32c917),_0x259fe0={'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'drawingType':_0x59240f[_0x55d361(0x1de)][_0x55d361(0xe5)],'drawingId':_0x3d4f35,'transform':_0x4f926b,'sheetTransform':_0x159e81,'axisAlignSheetTransform':_0x332fca},{unitId:_0x3e6348,subUnitId:_0x4d91d1,undo:_0x46cd46,redo:_0x43ae18,objects:_0x353dd0}=this[_0x55d361(0x111)]['getBatchUpdateOp']([_0x259fe0]);_0x32b05c['push']({'id':_0x43a085[_0x55d361(0x17f)]['id'],'params':{'unitId':_0x3e6348,'subUnitId':_0x4d91d1,'op':_0x43ae18,'objects':_0x353dd0,'type':_0x43a085[_0x55d361(0x132)][_0x55d361(0x1cd)]}}),_0x43bafa[_0x55d361(0xdb)]({'id':_0x43a085[_0x55d361(0x17f)]['id'],'params':{'unitId':_0x3e6348,'subUnitId':_0x4d91d1,'op':_0x46cd46,'objects':_0x353dd0,'type':_0x43a085[_0x55d361(0x132)]['UPDATE']}});}_0x4b2fbd[_0x55d361(0x160)]();}_0x32b05c[_0x55d361(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'shapeId':_0x3d4f35,'shapeType':_0x1ab691,'shapeData':{'adjustValues':_0x393bf0,'relation':_0x3f38bb}}}),_0x43bafa[_0x55d361(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x2b5cc3,'subUnitId':_0x58aea1,'shapeId':_0x3d4f35,'shapeType':_0x10e90b,'shapeData':{'adjustValues':_0xac81aa,'relation':_0x3f38bb}}});}}[_0xc3989b(0x18d)](_0x148ba6,_0x2fe32f,_0x54e600,_0x42a554,_0x5c8da5,_0x363b44,_0x52f793,_0x46d5fc,_0x55a752,_0x512758){const _0x4ac8e3=_0xc3989b;var _0x2fa9b1;if(!_0x5c8da5)return;let _0x286989=this[_0x4ac8e3(0x188)][_0x4ac8e3(0x1b9)](_0x148ba6,_0x2fe32f);if(!_0x286989)return;let _0x222dcd=(_0x2fa9b1=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x148ba6,'subUnitId':_0x2fe32f,'drawingId':_0x55a752}))==null?void 0x0:_0x2fa9b1[_0x4ac8e3(0x190)];if(!_0x222dcd)return;let _0x205e3c=_0x222dcd[_0x4ac8e3(0x18a)]!==_0x512758[_0x4ac8e3(0x18a)]||_0x222dcd[_0x4ac8e3(0x14e)]!==_0x512758[_0x4ac8e3(0x14e)],_0x13fd67=_0x222dcd[_0x4ac8e3(0xef)]!==_0x512758['width']||_0x222dcd[_0x4ac8e3(0x180)]!==_0x512758['height'],_0x187127=_0x222dcd[_0x4ac8e3(0x150)]!==_0x512758['flipX']||_0x222dcd[_0x4ac8e3(0x12f)]!==_0x512758['flipY'],_0x475ce2=_0x222dcd[_0x4ac8e3(0x1c3)]!==_0x512758[_0x4ac8e3(0x1c3)];if(_0x205e3c&&!_0x13fd67&&!_0x187127&&!_0x475ce2){let _0x4bdffb=(_0x512758[_0x4ac8e3(0x18a)]??0x0)-(_0x222dcd[_0x4ac8e3(0x18a)]??0x0),_0x3da5f5=(_0x512758[_0x4ac8e3(0x14e)]??0x0)-(_0x222dcd[_0x4ac8e3(0x14e)]??0x0),_0x51d4da=this[_0x4ac8e3(0x111)][_0x4ac8e3(0x11e)](_0x148ba6,_0x2fe32f);if(_0x51d4da&&_0x51d4da[_0x54e600]){var _0x3781cb,_0x2a153e;let _0x563402=_0x51d4da[_0x54e600],_0x5f16f7={..._0x563402[_0x4ac8e3(0x190)],'left':(((_0x3781cb=_0x563402[_0x4ac8e3(0x190)])==null?void 0x0:_0x3781cb[_0x4ac8e3(0x18a)])??0x0)+_0x4bdffb,'top':(((_0x2a153e=_0x563402[_0x4ac8e3(0x190)])==null?void 0x0:_0x2a153e[_0x4ac8e3(0x14e)])??0x0)+_0x3da5f5},_0x150bdf=(0x0,_0x43a085[_0x4ac8e3(0x1c9)])(_0x5f16f7,_0x286989),_0x41d676=(0x0,_0x43a085[_0x4ac8e3(0x1d6)])(_0x5f16f7,_0x286989),_0x5f2175={'unitId':_0x148ba6,'subUnitId':_0x2fe32f,'drawingType':_0x59240f[_0x4ac8e3(0x1de)][_0x4ac8e3(0xe5)],'drawingId':_0x54e600,'transform':_0x5f16f7,'sheetTransform':_0x150bdf,'axisAlignSheetTransform':_0x41d676},{unitId:_0x48fe5c,subUnitId:_0x1e88d7,undo:_0x1f1a8c,redo:_0xcff36d,objects:_0x45b782}=this[_0x4ac8e3(0x111)][_0x4ac8e3(0x1a7)]([_0x5f2175]);_0x52f793['push']({'id':_0x43a085[_0x4ac8e3(0x17f)]['id'],'params':{'unitId':_0x48fe5c,'subUnitId':_0x1e88d7,'op':_0xcff36d,'objects':_0x45b782,'type':_0x43a085[_0x4ac8e3(0x132)][_0x4ac8e3(0x1cd)]}}),_0x46d5fc[_0x4ac8e3(0xdb)]({'id':_0x43a085[_0x4ac8e3(0x17f)]['id'],'params':{'unitId':_0x48fe5c,'subUnitId':_0x1e88d7,'op':_0x1f1a8c,'objects':_0x45b782,'type':_0x43a085[_0x4ac8e3(0x132)]['UPDATE']}});}}else{let _0x294383=_0x42a554[_0x4ac8e3(0x11d)](),_0x1f86a5=_0x42a554[_0x4ac8e3(0x1e2)]();this['_addLineRerouteUpdates'](_0x148ba6,_0x2fe32f,_0x54e600,_0x42a554,_0x294383,_0x1f86a5,_0x52f793,_0x46d5fc,_0x55a752,_0x512758);}}};_0xf242ae=_0x4bde66([_0x4cea80(0x0,_0x59240f[_0xc3989b(0x1a5)]),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x3b5464[_0xc3989b(0x15c)])),_0x4cea80(0x2,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x3b5464['SheetSkeletonService'])),_0x4cea80(0x3,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x4,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x11fd09['IDrawingManagerService'])),_0x4cea80(0x5,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13ff20[_0xc3989b(0xfb)])),_0x4cea80(0x6,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x359b2e))],_0xf242ae);let _0x1d27ef=class extends _0x59240f[_0xc3989b(0x182)]{constructor(_0x5166d1,_0x232a91,_0x269fff){const _0xb646dc=_0xc3989b;super(),this[_0xb646dc(0x18f)]=_0x5166d1,this[_0xb646dc(0x19a)]=_0x232a91,this[_0xb646dc(0x167)](_0x269fff[_0xb646dc(0x1c4)](this));}[_0xc3989b(0x190)](_0x354e6e){const _0x326187=_0xc3989b;let _0x1ee2c4={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0x326187(0xe7)](_0x354e6e,_0x1ee2c4);for(let [_0x3b44f3,_0x491e4c]of _0x354e6e[_0x326187(0x191)])this['_planConnector'](_0x354e6e,_0x3b44f3,_0x491e4c,_0x1ee2c4);return _0x1ee2c4;}[_0xc3989b(0xe7)](_0x373373,_0x165e06){const _0x321676=_0xc3989b;if(_0x373373[_0x321676(0x17e)]===_0x321676(0x19c))for(let _0x53d672 of _0x373373[_0x321676(0x15d)]){let _0x5a8b71=_0x373373['originals'][_0x321676(0xd9)](_0x53d672),_0x4b06c9=this[_0x321676(0x18f)][_0x321676(0x128)](_0x373373[_0x321676(0x1a8)],_0x373373[_0x321676(0x1e7)],_0x53d672);(_0x5a8b71==null?void 0x0:_0x5a8b71[_0x321676(0x166)])!==_0x59240f[_0x321676(0x1de)][_0x321676(0xe5)]||!_0x4b06c9||(_0x165e06['preRedos'][_0x321676(0xdb)]({'id':_0x3b0254['id'],'params':{'unitId':_0x373373['unitId'],'subUnitId':_0x373373['subUnitId'],'shapeId':_0x53d672}}),_0x165e06[_0x321676(0x12c)][_0x321676(0xdb)]({'id':_0x3a2754['id'],'params':{'unitId':_0x373373[_0x321676(0x1a8)],'subUnitId':_0x373373[_0x321676(0x1e7)],'shapeId':_0x53d672,'shapeName':_0x4b06c9[_0x321676(0x11a)](),'shapeType':_0x4b06c9[_0x321676(0x173)](),'shapeData':_0x59240f[_0x321676(0x13c)][_0x321676(0x170)](_0x4b06c9[_0x321676(0x1bd)]())}}));}}[_0xc3989b(0x1e4)](_0x4a71e2,_0x41cd37,_0x5b9f2d,_0x172cf6){const _0x5b20c0=_0xc3989b;if(_0x5b9f2d['drawingType']!==_0x59240f[_0x5b20c0(0x1de)][_0x5b20c0(0xe5)]||_0x4a71e2['deletes'][_0x5b20c0(0x148)](_0x41cd37))return;let _0x50cb9e=this['_shapeService'][_0x5b20c0(0x128)](_0x4a71e2[_0x5b20c0(0x1a8)],_0x4a71e2['subUnitId'],_0x41cd37);if(!_0x50cb9e||!(0x0,_0x13ff20[_0x5b20c0(0x198)])(_0x50cb9e[_0x5b20c0(0x173)]()))return;let _0x8341db=_0x50cb9e[_0x5b20c0(0x147)]();if(!(_0x4a71e2['updates'][_0x5b20c0(0x148)](_0x41cd37)||_0x8341db!=null&&_0x8341db['from']&&(_0x4a71e2['updates'][_0x5b20c0(0x148)](_0x8341db[_0x5b20c0(0x15a)]['shapeId'])||_0x4a71e2[_0x5b20c0(0x15d)][_0x5b20c0(0x148)](_0x8341db['from'][_0x5b20c0(0x103)]))||_0x8341db!=null&&_0x8341db['to']&&(_0x4a71e2[_0x5b20c0(0x156)]['has'](_0x8341db['to'][_0x5b20c0(0x103)])||_0x4a71e2[_0x5b20c0(0x15d)][_0x5b20c0(0x148)](_0x8341db['to']['shapeId']))))return;let _0x13f1f1=_0x4a71e2[_0x5b20c0(0x156)][_0x5b20c0(0xd9)](_0x41cd37)??_0x5b9f2d,_0x52be8a=this[_0x5b20c0(0x1d4)](_0x4a71e2,_0x13f1f1);if(!_0x52be8a)return;let _0x4e704a=(0x0,_0x13ff20['resolveConnectorRoutePoints'])(_0x52be8a);if(_0x4e704a[_0x5b20c0(0x1a1)]<0x2)return;let _0x1a5096=_0x59240f[_0x5b20c0(0x13c)]['deepClone'](_0x8341db??{}),_0x424ffc=_0x1a5096[_0x5b20c0(0x15a)]&&this[_0x5b20c0(0x176)](_0x4a71e2,_0x1a5096[_0x5b20c0(0x15a)][_0x5b20c0(0x103)],_0x1a5096['from']['cxnIndex']),_0x3045c6=_0x1a5096['to']&&this[_0x5b20c0(0x176)](_0x4a71e2,_0x1a5096['to'][_0x5b20c0(0x103)],_0x1a5096['to']['cxnIndex']);_0x1a5096[_0x5b20c0(0x15a)]&&!_0x424ffc&&delete _0x1a5096[_0x5b20c0(0x15a)],_0x1a5096['to']&&!_0x3045c6&&delete _0x1a5096['to'];let _0x442afa=(0x0,_0x13ff20[_0x5b20c0(0x131)])(_0x52be8a,_0x424ffc||(0x0,_0x13ff20[_0x5b20c0(0x1ca)])((_0x3045c6==null?void 0x0:_0x3045c6[_0x5b20c0(0x1b7)])??_0x4e704a[_0x4e704a[_0x5b20c0(0x1a1)]-0x1],_0x4e704a[0x0]),_0x3045c6||(0x0,_0x13ff20[_0x5b20c0(0x1ca)])((_0x424ffc==null?void 0x0:_0x424ffc[_0x5b20c0(0x1b7)])??_0x4e704a[0x0],_0x4e704a[_0x4e704a[_0x5b20c0(0x1a1)]-0x1]),_0x1a5096);if(!(!(_0x442afa!=null&&_0x442afa[_0x5b20c0(0x190)])||!_0x442afa[_0x5b20c0(0xf9)]||!_0x442afa[_0x5b20c0(0x1b0)])){if(this[_0x5b20c0(0x1a2)](_0x4a71e2,_0x13f1f1,_0x442afa),_0x4a71e2[_0x5b20c0(0x17e)]===_0x5b20c0(0x183)){_0x50cb9e['setShapeType'](_0x442afa[_0x5b20c0(0xf9)]),_0x50cb9e[_0x5b20c0(0xf5)](_0x59240f[_0x5b20c0(0x13c)][_0x5b20c0(0x170)](_0x442afa[_0x5b20c0(0x1b0)]),!0x1);return;}_0x172cf6['redos'][_0x5b20c0(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x4a71e2[_0x5b20c0(0x1a8)],'subUnitId':_0x4a71e2[_0x5b20c0(0x1e7)],'shapeId':_0x41cd37,'shapeType':_0x442afa[_0x5b20c0(0xf9)],'shapeData':_0x59240f['Tools'][_0x5b20c0(0x170)](_0x442afa[_0x5b20c0(0x1b0)]),'replace':!0x0}}),_0x172cf6['undos'][_0x5b20c0(0xdb)]({'id':_0x958308['id'],'params':{'unitId':_0x4a71e2[_0x5b20c0(0x1a8)],'subUnitId':_0x4a71e2[_0x5b20c0(0x1e7)],'shapeId':_0x41cd37,'shapeType':_0x50cb9e[_0x5b20c0(0x173)](),'shapeData':_0x59240f[_0x5b20c0(0x13c)][_0x5b20c0(0x170)](_0x50cb9e[_0x5b20c0(0x1bd)]()),'replace':!0x0}});}}[_0xc3989b(0x176)](_0x1cc5e3,_0x21851c,_0x55fa1d){const _0x11951d=_0xc3989b;if(_0x1cc5e3[_0x11951d(0x15d)]['has'](_0x21851c))return null;let _0x294039=_0x1cc5e3['updates']['get'](_0x21851c)??_0x1cc5e3[_0x11951d(0x191)][_0x11951d(0xd9)](_0x21851c);if(!_0x294039)return null;let _0x27945d=this[_0x11951d(0x1d4)](_0x1cc5e3,_0x294039);return _0x27945d?(0x0,_0x13ff20[_0x11951d(0x18b)])(_0x27945d,_0x55fa1d):null;}[_0xc3989b(0x1d4)](_0x52d40b,_0x4fea41){const _0x9c2f3=_0xc3989b;let _0x170e99={'hostType':_0x59240f['UniverInstanceType']['UNIVER_SHEET'],'unitId':_0x52d40b['unitId'],'subUnitId':_0x52d40b['subUnitId'],'shapeId':_0x4fea41[_0x9c2f3(0x115)]},_0xf42dcd=this['_shapeAdapter']['getShape'](_0x170e99);return!_0xf42dcd||!_0x4fea41[_0x9c2f3(0x190)]?null:{..._0xf42dcd,'transform':{'left':_0x4fea41['transform']['left']??0x0,'top':_0x4fea41['transform'][_0x9c2f3(0x14e)]??0x0,'width':_0x4fea41[_0x9c2f3(0x190)]['width']??0x0,'height':_0x4fea41[_0x9c2f3(0x190)]['height']??0x0,'rotation':_0x4fea41[_0x9c2f3(0x190)]['angle']??0x0,'flipX':_0x4fea41[_0x9c2f3(0x190)][_0x9c2f3(0x150)]??!0x1,'flipY':_0x4fea41[_0x9c2f3(0x190)][_0x9c2f3(0x12f)]??!0x1}};}[_0xc3989b(0x1a2)](_0x3d1180,_0x54c4e1,_0x347f20){const _0x2f3c60=_0xc3989b;let _0x2f246b=_0x54c4e1,_0x4a14f7={..._0x54c4e1[_0x2f3c60(0x190)],'left':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x18a)],'top':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x14e)],'width':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0xef)],'height':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x180)],'angle':_0x347f20['transform']['rotation'],'flipX':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x150)],'flipY':_0x347f20[_0x2f3c60(0x190)][_0x2f3c60(0x12f)]},_0x5ce955={..._0x2f246b,'transform':_0x4a14f7,'sheetTransform':(0x0,_0x43a085['transformToDrawingPosition'])(_0x4a14f7,_0x3d1180[_0x2f3c60(0x178)]),'axisAlignSheetTransform':(0x0,_0x43a085['transformToAxisAlignPosition'])(_0x4a14f7,_0x3d1180[_0x2f3c60(0x178)]),'data':{..._0x2f246b['data'],'shapeType':_0x347f20['shapeType'],'shapeData':_0x59240f[_0x2f3c60(0x13c)]['deepClone'](_0x347f20[_0x2f3c60(0x1b0)])}};_0x3d1180[_0x2f3c60(0x156)][_0x2f3c60(0x10c)](_0x54c4e1[_0x2f3c60(0x115)],_0x5ce955);}};_0x1d27ef=_0x4bde66([_0x4cea80(0x0,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x13c298)),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x359b2e)),_0x4cea80(0x2,(0x0,_0x59240f['Inject'])(_0x43a085[_0xc3989b(0x1b5)]))],_0x1d27ef);let _0x21c86e=class extends _0x59240f[_0xc3989b(0x1b2)]{constructor(_0x2c9436=_0x57bb8e,_0x3cbcd8,_0x2cf59f){const _0x2a4b83=_0xc3989b;super(),this[_0x2a4b83(0x100)]=_0x2c9436,this[_0x2a4b83(0x16a)]=_0x3cbcd8,this[_0x2a4b83(0xe8)]=_0x2cf59f;let {..._0x5b0653}=(0x0,_0x59240f[_0x2a4b83(0x16e)])({},_0x57bb8e,this[_0x2a4b83(0x100)]);this[_0x2a4b83(0xe8)][_0x2a4b83(0xf6)](_0x2a4b83(0x199),_0x5b0653);}[_0xc3989b(0x143)](){const _0x325ba1=_0xc3989b;let _0x965269=this['_injector'];[[_0x4c6fe2],[_0x13c298],[_0x359b2e],[_0x1d27ef],[_0xf242ae]][_0x325ba1(0x196)](_0x2aef43=>_0x965269[_0x325ba1(0x1e5)](_0x2aef43)),(0x0,_0x59240f['touchDependencies'])(_0x965269,[[_0x13c298],[_0x1d27ef],[_0xf242ae]]);}};_0x7318f0(_0x21c86e,'type',_0x59240f['UniverInstanceType']['UNIVER_SHEET']),_0x7318f0(_0x21c86e,_0xc3989b(0x172),_0xc3989b(0x1ad)),_0x7318f0(_0x21c86e,_0xc3989b(0x158),_0x133b87),_0x7318f0(_0x21c86e,_0xc3989b(0x11c),_0x3d51b),_0x21c86e=_0x4bde66([(0x0,_0x59240f[_0xc3989b(0x1a3)])(_0x42b016[_0xc3989b(0x11b)],_0x11fd09[_0xc3989b(0x1d5)],_0x13ff20[_0xc3989b(0x124)],_0x3b5464[_0xc3989b(0x1c1)],_0x43a085['UniverSheetsDrawingPlugin']),_0x4cea80(0x1,(0x0,_0x59240f[_0xc3989b(0x18e)])(_0x59240f[_0xc3989b(0x114)])),_0x4cea80(0x2,_0x59240f[_0xc3989b(0x1e0)])],_0x21c86e),_0x1a712f[_0xc3989b(0xd5)]=0xc8,_0x1a712f[_0xc3989b(0x1d3)]=0xc8,_0x1a712f[_0xc3989b(0xd3)]=_0x32a208,_0x1a712f[_0xc3989b(0x1ba)]=_0x3a2754,_0x1a712f[_0xc3989b(0x13e)]=_0x3b0254,_0x1a712f['SetShapeDrawingDataCommand']=_0x2f1170,_0x1a712f['SetSheetsShapeRotateCommand']=_0x1f04c5,_0x1a712f[_0xc3989b(0x1c8)]=_0x4fe46e,Object[_0xc3989b(0x104)](_0x1a712f,_0xc3989b(0x14b),{'enumerable':!0x0,'get':function(){return _0x13c298;}}),_0x1a712f['ToggleSheetsShapeFlipCommand']=_0x137a5c,Object[_0xc3989b(0x104)](_0x1a712f,_0xc3989b(0x1e1),{'enumerable':!0x0,'get':function(){return _0x21c86e;}}),_0x1a712f[_0xc3989b(0xde)]=_0x61905a,_0x1a712f[_0xc3989b(0x129)]=_0x5782d1,_0x1a712f[_0xc3989b(0x17c)]=_0x958308,_0x1a712f[_0xc3989b(0xff)]=_0x9a3bab;}));function _0x1e68(){const _0x2ba644=['startX','flipY','params','buildConnectorEndpointUpdate','DrawingApplyType','17117MQdGrM','getConnectionSiteList','data','delete','iterator','IUndoRedoService','getShapeTypeById','_shapeModelManagerMap','SheetSkeletonService','Tools','1.0.0-rc.0','RemoveSheetsShapeMutation','3701466RkhGvS','borderEnabled','SheetDrawingAnchorType','ShapeModel','onStarting','_sheetsShapeService','ArrangeTypeEnum','_linesIds','getShapeRelation','has','UNIVER_SHEET','createFormulaLastValueMutation','SheetsShapeService','_groupIds','_shapeHostAdapterRegistry','top','266MePNWR','flipX','SetSheetDrawingCommand','292405CYOvfp','sheet.command.toggle-shape-flip','index','_getConnectPointInfo','updates','onCommandExecuted','packageName','worldRect','from','517628gsqtCM','SheetInterceptorService','deletes','computeConnectorRouteLayout','UniverProLicense','removeLinePoints','preRedos','function','sheet.mutation.remove-shape','result','_ensureShapeModelManager','drawingType','disposeWithMe','fill','symbol','_injector','_resourcesManagerService','_deserializeShapeForUnit','sequenceExecute','merge','IUniverInstanceService','deepClone','getOwnPropertyDescriptor','pluginName','getShapeType','_serializeShapeForUnit','102jTvPvK','_resolveBinding','getBasicShapeRotateBound','skeleton','getSheetCommandTarget','IResourceManagerService','syncExecuteCommand','UpdateSheetsShapeDataMutation','range','mode','SetDrawingApplyMutation','height','RemoveSheetDrawingCommand','Disposable','refresh','object','toStringTag','getBasicShapeType','redos','_sheetSkeletonService','relation','left','resolveShapeConnectionPoint','createDefaultInsertedShapeData','_addLineFollowShapeUpdates','Inject','_shapeService','transform','originals','startY','generateRandomId','INSERT','REMOVE','forEach','13765990YDShfo','isConnectorShape','sheets-shape.config','_shapeAdapter','updateShape','command','exports','@univerjs/sheets','insertShape','removeShape','length','_applyUpdate','DependentOn','366384eRPBAZ','ICommandService','getShapeDisplayNames','getBatchUpdateOp','unitId','CommandType','sheet.command.set-shape-drawing-data','position','visible','SHEET_SHAPE_PLUGIN','COMMAND','ensureSkeleton','shapeData','stringify','Plugin','shapeChanged$','constructor','SheetDrawingTransformPlanService','prototype','point','_sheetInterceptorService','getSkeleton','InsertSheetsShapeMutation','bringForward','rotateEnabled','getShapeData','sheet.command.insert-shape','getShapeTextData','map','UniverSheetsPlugin','formulaBinding','angle','register','filter','_arrange','9bgMvBE','SetSheetsShapeTextVerticalToggleCommand','transformToDrawingPosition','createFreeConnectorPointInfo','_initCommandInterceptor','sin','UPDATE','dispose','toJSON','_instanceService','_drawingService','@univerjs-pro/license','DEFAULT_SHAPE_WIDTH','_toSnapshot','UniverDrawingPlugin','transformToAxisAlignPosition','getBasicShapeRelation','listShapesInUnit','createShape','find','fromJSON','getLineShapeRelation','cxnIndex','DrawingTypeEnum','selectable','IConfigService','UniverSheetsShapePlugin','getEndConnectInfo','interceptCommand','_planConnector','add','getId','subUnitId','name','InsertShapeCommand','142rxFdki','DEFAULT_SHAPE_HEIGHT','sheet.command.set-shape-rotate','_shapes','SetDrawingArrangeCommand','get','8330399GLflce','push','InsertSheetDrawingCommand','getDrawingByParam','UpdateConnectorRelationCommand','isFrom','UniverProEngineShape','onCommandExecute','parse','12HvxEqJ','cos','DRAWING_SHAPE','sheet.mutation.update-shape-type','_planDeletes','_configService','ang','adjustValues','_commandService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','description','keys','width','@univerjs/core','@univerjs-pro/sheets-shape','registerPluginResource','addShape','ISheetDrawingService','setShapeData','setConfig','hasShape','_initSnapshot','shapeType','rotation','IShapeHostAdapterRegistry','sheet.mutation.insert-shape','listShapes','sheet.mutation.update-shape-data','UpdateSheetsShapeTypeMutation','_config','getCellWithCoordByIndex','preUndos','shapeId','defineProperty','UniverProSheetsShape','UniverSheetsDrawing','getAdjustNames','default','decorate','Both','hostType','set','UniverInstanceType','@univerjs-pro/engine-shape','clear','resizeEnabled','_drawingManagerService','back','string','Injector','drawingId','UniverDrawing','bringToFront','_addLineRerouteUpdates','getSheetId','getName','UniverLicensePlugin','version','getStartConnectInfo','getDrawingData','sendBackward','shapeName','setShapeType','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','toPrimitive','UniverShapePlugin','_initCommands','ClearSheetDrawingTransformerOperation','pushUndoRedo','getShapeModel','UpdateLineShapeResizeCommand','getSheets','MUTATION','undos','getShape'];_0x1e68=function(){return _0x2ba644;};return _0x1e68();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shape and drawing model integration for Univer Sheets.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"homepage": "https://univer.ai",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/dream-num/univer"
|
|
14
|
+
"url": "https://github.com/dream-num/univer-pro"
|
|
15
15
|
},
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/dream-num/univer/issues"
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/
|
|
62
|
-
"@univerjs-pro/
|
|
63
|
-
"@univerjs/core": "1.0.0-
|
|
64
|
-
"@univerjs/drawing": "1.0.0-
|
|
65
|
-
"@univerjs/sheets": "1.0.0-
|
|
66
|
-
"@univerjs/sheets-drawing": "1.0.0-
|
|
61
|
+
"@univerjs-pro/engine-shape": "1.0.0-rc.0",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-rc.0",
|
|
63
|
+
"@univerjs/core": "1.0.0-rc.0",
|
|
64
|
+
"@univerjs/drawing": "1.0.0-rc.0",
|
|
65
|
+
"@univerjs/sheets": "1.0.0-rc.0",
|
|
66
|
+
"@univerjs/sheets-drawing": "1.0.0-rc.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-rc.0",
|
|
70
|
+
"@univerjs/engine-render": "1.0.0-rc.0",
|
|
69
71
|
"typescript": "^6.0.3",
|
|
70
|
-
"vitest": "^4.1.
|
|
71
|
-
"@univerjs-infra/shared": "1.0.0-beta.0",
|
|
72
|
-
"@univerjs/engine-render": "1.0.0-insiders.20260809-70eefdd"
|
|
72
|
+
"vitest": "^4.1.11"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"test": "vitest run",
|