@univerjs-pro/sheets-shape 0.25.1 → 1.0.0-alpha.1

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x26c497=_0x48a4;(function(_0x3c1614,_0x8a4965){const _0x1a71b2=_0x48a4,_0x40a448=_0x3c1614();while(!![]){try{const _0x2b0243=parseInt(_0x1a71b2(0xd5))/0x1*(-parseInt(_0x1a71b2(0x144))/0x2)+parseInt(_0x1a71b2(0x12f))/0x3*(-parseInt(_0x1a71b2(0xfd))/0x4)+-parseInt(_0x1a71b2(0xeb))/0x5*(parseInt(_0x1a71b2(0x100))/0x6)+-parseInt(_0x1a71b2(0xed))/0x7*(-parseInt(_0x1a71b2(0x129))/0x8)+parseInt(_0x1a71b2(0x15e))/0x9*(parseInt(_0x1a71b2(0x148))/0xa)+parseInt(_0x1a71b2(0xec))/0xb+-parseInt(_0x1a71b2(0x11c))/0xc;if(_0x2b0243===_0x8a4965)break;else _0x40a448['push'](_0x40a448['shift']());}catch(_0x10a02f){_0x40a448['push'](_0x40a448['shift']());}}}(_0x1d94,0xa02cc));import{ShapeModel as _0x155cd2,computeConnectorRouteLayout as _0x1cd34f,getBasicShapeRotateBound as _0x420ab7,isConnectorShape as _0x45d4e8,routeConnectorLineShape as _0x37d66d}from'@univerjs-pro/engine-shape';function _0x1d94(){const _0x4b1f04=['forEach','getCellIndexAndOffsetByPosition','_serializeShapeForUnit','sheet.mutation.update-shape-type','push','getBatchUpdateOp','_shapes','2062xQYfHf','keys','getSkeleton','_initCommandInterceptor','10YfIQuU','fill','getDrawingByParam','_deserializeShapeForUnit','_groupIds','lineType','width','isFrom','_initCommands','getDrawingData','sheet.command.update-line-shape-resize','delete','stringify','adjustValues','onCommandExecute','iterator','_sheetSkeletonService','getBasicShapeType','has','sheet.command.insert-shape','getBatchAddOp','index','10060029FQDyBw','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','interceptCommand','MUTATION','lineShapeId','getShapeType','getConnectionSiteList','length','getAdjustNames','string','sheet.command.set-shape-rotate','_ensureShapeModelManager','defineProperty','sheet.mutation.update-shape-data','left','rotation','flipX','startX','shapeId','position','getLineShapeRelation','getBasicShapeRelation','sheet.command.set-shape-text-vertical-toggle','clear','parse','743CWebtX','_config','worldRect','insertShape','type','rotateEnabled','resizeEnabled','sheet.mutation.remove-shape','cos','syncExecuteCommand','UPDATE','get','getOwnPropertyDescriptor','setConfig','getShapeTextData','_sheetsShapeService','startY','getAdjustValueByName','decorate','removeLinePoints','pushUndoRedo','sheet.mutation.insert-shape','1525vjKUER','10459944JoDvpB','14XymoRz','UNIVER_SHEET','prototype','getShapeData','from','sheet.command.update-connector-relation','assign','_configService','COMMAND','_addLineFollowShapeUpdates','ang','default','getShapeRelation','redos','angle','sheet.command.toggle-shape-flip','124748ybGHOT','0.25.1','getCellWithCoordByIndex','3504mVMlAZ','transform','params','SHEET_SHAPE_PLUGIN','toJSON','set','_commandService','addShape','drawingType','_addLineRerouteUpdates','toPrimitive','_initSnapshot','add','top','result','filter','_drawingManagerService','height','function','relation','preUndos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','fromJSON','hasShape','data','cxnIndex','removeShape','17907612bYWPzA','_resourcesManagerService','registerPluginResource','setShapeType','sin','isLineShape','_getConnectPointInfo','disposeWithMe','object','constructor','_shapeModelManagerMap','_linesIds','ensureSkeleton','5218112aYRAbN','flipY','@univerjs-pro/sheets-shape','shapeData','call','setShapeData','27gHOgXi','DRAWING_SHAPE','preRedos','getStartConnectInfo','_sheetInterceptorService','range','INSERT','isHorizontal','borderEnabled','updateContext','symbol','undos','getShapeModel','dispose'];_0x1d94=function(){return _0x4b1f04;};return _0x1d94();}import{CommandType as _0x3e9504,DependentOn as _0x44491a,Disposable as _0x28b545,DrawingTypeEnum as _0x5e5e5b,ICommandService as _0x5b8310,IConfigService as _0x3ea937,IResourceManagerService as _0x54f492,IUndoRedoService as _0x4f939d,IUniverInstanceService as _0x70c7f6,Inject as _0x224b32,Injector as _0x5c089c,Plugin as _0x118c9a,UniverInstanceType as _0xd9deb1,generateRandomId as _0x15fabb,merge as _0x410777,sequenceExecute as _0x3a6f34,touchDependencies as _0x41ed94}from'@univerjs/core';import{SheetInterceptorService as _0x499171,SheetSkeletonService as _0xf2e92a,getSheetCommandTarget as _0x1d1d1e}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x286f04,DrawingApplyType as _0x5e6d34,ISheetDrawingService as _0x41f85d,InsertSheetDrawingCommand as _0xbe823c,RemoveSheetDrawingCommand as _0xd0523e,SetDrawingApplyMutation as _0x30ac56,SetSheetDrawingCommand as _0x238f6a,transformToAxisAlignPosition as _0x13d14d,transformToDrawingPosition as _0x4fa37c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1f94d7}from'@univerjs-pro/license';import{IDrawingManagerService as _0x531999}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x49f382){'@babel/helpers - typeof';const _0x2da745=_0x48a4;return R=typeof Symbol==_0x2da745(0x112)&&typeof Symbol[_0x2da745(0x157)]==_0x2da745(0x139)?function(_0x582e35){return typeof _0x582e35;}:function(_0x803fd4){const _0x271709=_0x2da745;return _0x803fd4&&typeof Symbol==_0x271709(0x112)&&_0x803fd4[_0x271709(0x125)]===Symbol&&_0x803fd4!==Symbol[_0x271709(0xef)]?_0x271709(0x139):typeof _0x803fd4;},R(_0x49f382);}function z(_0x5bc6a4,_0x26daa1){const _0x37233b=_0x48a4;if(R(_0x5bc6a4)!=_0x37233b(0x124)||!_0x5bc6a4)return _0x5bc6a4;var _0x256033=_0x5bc6a4[Symbol[_0x37233b(0x10a)]];if(_0x256033!==void 0x0){var _0xf8f055=_0x256033[_0x37233b(0x12d)](_0x5bc6a4,_0x26daa1||_0x37233b(0xf8));if(R(_0xf8f055)!=_0x37233b(0x124))return _0xf8f055;throw TypeError(_0x37233b(0x115));}return(_0x26daa1===_0x37233b(0x167)?String:Number)(_0x5bc6a4);}function B(_0x5cbab0){const _0x3f7bbf=_0x48a4;var _0x2503cb=z(_0x5cbab0,_0x3f7bbf(0x167));return R(_0x2503cb)==_0x3f7bbf(0x139)?_0x2503cb:_0x2503cb+'';}function V(_0x4f8cca,_0x565fdc,_0x5f57f7){const _0x3055d5=_0x48a4;return(_0x565fdc=B(_0x565fdc))in _0x4f8cca?Object[_0x3055d5(0x16a)](_0x4f8cca,_0x565fdc,{'value':_0x5f57f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f8cca[_0x565fdc]=_0x5f57f7,_0x4f8cca;}var H=class extends _0x28b545{constructor(){const _0x43f9e0=_0x48a4;super(),V(this,'_shapes',new Map()),V(this,'_linesIds',new Set()),V(this,_0x43f9e0(0x14c),new Set());}[_0x26c497(0x107)](_0xfcbee,_0x5538b8,_0x128938){const _0x1e767a=_0x26c497;let _0x17cd9a=new _0x155cd2(_0xfcbee,_0x5538b8,_0x128938);return this[_0x1e767a(0x143)][_0x1e767a(0x105)](_0x5538b8,_0x17cd9a),_0x45d4e8(_0xfcbee)&&this[_0x1e767a(0x127)][_0x1e767a(0x10c)](_0x5538b8),_0x17cd9a;}[_0x26c497(0xd1)](_0x3b6a43){const _0x1544f0=_0x26c497;let _0x42bfc8=[];for(let _0x172f5e of this[_0x1544f0(0x127)]){let _0x542e50=this[_0x1544f0(0x143)]['get'](_0x172f5e);if(_0x542e50){let _0x3c98c1=_0x542e50['getShapeRelation']();if(_0x3c98c1){var _0x11cad0,_0x4dc3cc;((_0x11cad0=_0x3c98c1[_0x1544f0(0xf1)])==null?void 0x0:_0x11cad0[_0x1544f0(0x170)])===_0x3b6a43&&_0x42bfc8['push']({..._0x3c98c1[_0x1544f0(0xf1)],'lineShapeId':_0x172f5e,'isFrom':!0x0}),((_0x4dc3cc=_0x3c98c1['to'])==null?void 0x0:_0x4dc3cc['shapeId'])===_0x3b6a43&&_0x42bfc8[_0x1544f0(0x141)]({..._0x3c98c1['to'],'lineShapeId':_0x172f5e,'isFrom':!0x1});}}}return _0x42bfc8;}[_0x26c497(0xd0)](_0x5e5d06){const _0xbc7a37=_0x26c497;let _0x5469a4=this[_0xbc7a37(0x143)][_0xbc7a37(0xe0)](_0x5e5d06);if(_0x5469a4)return _0x5469a4['getShapeRelation']();}[_0x26c497(0x163)](_0x2fbffa){const _0x3f7c05=_0x26c497;let _0x2b7734=this[_0x3f7c05(0x143)]['get'](_0x2fbffa);if(_0x2b7734)return _0x2b7734[_0x3f7c05(0x163)]();}[_0x26c497(0x118)](_0x1bbaa6){const _0x32e7d9=_0x26c497;return this[_0x32e7d9(0x143)][_0x32e7d9(0x15a)](_0x1bbaa6);}['removeShape'](_0x59211b){const _0x67f8e2=_0x26c497;let _0x1bfb24=this[_0x67f8e2(0x143)]['get'](_0x59211b);_0x1bfb24&&(_0x45d4e8(_0x1bfb24['getShapeType']())&&this[_0x67f8e2(0x127)][_0x67f8e2(0x153)](_0x59211b),this[_0x67f8e2(0x143)][_0x67f8e2(0x153)](_0x59211b));}[_0x26c497(0x104)](){const _0x39390f=_0x26c497;let _0x17b91d=[];return this[_0x39390f(0x143)][_0x39390f(0x13d)](_0x262d65=>{const _0x4608a9=_0x39390f;_0x17b91d[_0x4608a9(0x141)](_0x262d65['toJSON']());}),_0x17b91d;}[_0x26c497(0x117)](_0x366811){const _0x281061=_0x26c497;for(let _0x5886b6 of _0x366811){let {id:_0x1613eb,shapeType:_0x381818}=_0x5886b6,_0x2a53f9=this['addShape'](_0x381818,_0x1613eb,_0x5886b6[_0x281061(0x12c)]);_0x2a53f9&&_0x2a53f9[_0x281061(0x121)]()&&this['_linesIds'][_0x281061(0x10c)](_0x1613eb);}}[_0x26c497(0x13c)](){const _0x52ec68=_0x26c497;this['_disposed']||(this['_shapes'][_0x52ec68(0x13d)](_0xe1f1b7=>{const _0x3b713e=_0x52ec68;_0xe1f1b7[_0x3b713e(0x13c)]();}),this[_0x52ec68(0x143)][_0x52ec68(0xd3)](),this[_0x52ec68(0x127)]['clear'](),this[_0x52ec68(0x14c)][_0x52ec68(0xd3)](),super[_0x52ec68(0x13c)]());}};function U(_0x13c04a,_0x4793ab){return function(_0x16f67a,_0x25be65){_0x4793ab(_0x16f67a,_0x25be65,_0x13c04a);};}function W(_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e){const _0xf79c23=_0x26c497;var _0x5f49b9=arguments[_0xf79c23(0x165)],_0x5f4e33=_0x5f49b9<0x3?_0x365abd:_0x4efb1e===null?_0x4efb1e=Object[_0xf79c23(0xe1)](_0x365abd,_0x4d4665):_0x4efb1e,_0x4373be;if(typeof Reflect==_0xf79c23(0x124)&&typeof Reflect[_0xf79c23(0xe7)]==_0xf79c23(0x112))_0x5f4e33=Reflect[_0xf79c23(0xe7)](_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e);else{for(var _0x56fa29=_0x3afaab[_0xf79c23(0x165)]-0x1;_0x56fa29>=0x0;_0x56fa29--)(_0x4373be=_0x3afaab[_0x56fa29])&&(_0x5f4e33=(_0x5f49b9<0x3?_0x4373be(_0x5f4e33):_0x5f49b9>0x3?_0x4373be(_0x365abd,_0x4d4665,_0x5f4e33):_0x4373be(_0x365abd,_0x4d4665))||_0x5f4e33);}return _0x5f49b9>0x3&&_0x5f4e33&&Object[_0xf79c23(0x16a)](_0x365abd,_0x4d4665,_0x5f4e33),_0x5f4e33;}let G=class extends _0x28b545{constructor(_0x4b99ff){const _0x5c4884=_0x26c497;super(),this[_0x5c4884(0x11d)]=_0x4b99ff,V(this,_0x5c4884(0x126),new Map()),this[_0x5c4884(0x10b)]();}[_0x26c497(0x169)](_0x24e69e,_0x262e7e){const _0x3cb6e7=_0x26c497;let _0x2d5dfc=this[_0x3cb6e7(0x126)][_0x3cb6e7(0xe0)](_0x24e69e);_0x2d5dfc||(_0x2d5dfc=new Map(),this[_0x3cb6e7(0x126)][_0x3cb6e7(0x105)](_0x24e69e,_0x2d5dfc));let _0x2e9df6=_0x2d5dfc[_0x3cb6e7(0xe0)](_0x262e7e);return _0x2e9df6||(_0x2e9df6=new H(),_0x2d5dfc[_0x3cb6e7(0x105)](_0x262e7e,_0x2e9df6)),_0x2e9df6;}['insertShape'](_0x7d340,_0x1f2e90,_0x3783fe,_0x3365fc,_0x2a8820){const _0x1a56af=_0x26c497;this[_0x1a56af(0x169)](_0x7d340,_0x1f2e90)[_0x1a56af(0x107)](_0x3783fe,_0x3365fc,_0x2a8820);}[_0x26c497(0x11b)](_0x523cf7,_0x3c226a,_0x5650a4){const _0x469da0=_0x26c497;this[_0x469da0(0x169)](_0x523cf7,_0x3c226a)['removeShape'](_0x5650a4);}[_0x26c497(0x159)](_0xdab321,_0xb9c2ae,_0x23fe19){const _0x30314d=_0x26c497;return this[_0x30314d(0x169)](_0xdab321,_0xb9c2ae)[_0x30314d(0x163)](_0x23fe19);}[_0x26c497(0x163)](_0x4f92f2,_0x5ad2ce,_0x2a3cf3){const _0x5b5d48=_0x26c497;return this[_0x5b5d48(0x169)](_0x4f92f2,_0x5ad2ce)[_0x5b5d48(0x163)](_0x2a3cf3);}[_0x26c497(0x118)](_0x4f0b0b,_0x5820dc,_0x5ca91e){const _0x2013d9=_0x26c497;return this[_0x2013d9(0x169)](_0x4f0b0b,_0x5820dc)[_0x2013d9(0x118)](_0x5ca91e);}['getShapeTypeById'](_0x2de412,_0x34bb18,_0x5b74fc){const _0x40dd7e=_0x26c497;return this[_0x40dd7e(0x169)](_0x2de412,_0x34bb18)['getShapeType'](_0x5b74fc);}['getShapeDataById'](_0x302171,_0x50dd53,_0x51886f){const _0x461133=_0x26c497;let _0x2bb7ee=this[_0x461133(0x169)](_0x302171,_0x50dd53);if(!_0x2bb7ee[_0x461133(0x163)](_0x51886f))return;let _0x3f9e95=_0x2bb7ee[_0x461133(0x143)][_0x461133(0xe0)](_0x51886f);if(_0x3f9e95)return _0x3f9e95[_0x461133(0xf0)]();}[_0x26c497(0x13b)](_0x526f75,_0x1788ae,_0x1a7383){const _0x32039a=_0x26c497;return this[_0x32039a(0x169)](_0x526f75,_0x1788ae)['_shapes']['get'](_0x1a7383);}[_0x26c497(0xd1)](_0x15bd2a,_0xdcab3f,_0x2e30a4){const _0x484410=_0x26c497;return this[_0x484410(0x169)](_0x15bd2a,_0xdcab3f)['getBasicShapeRelation'](_0x2e30a4);}[_0x26c497(0xd0)](_0x3d69af,_0x292fb5,_0x204ba3){const _0xe7d09c=_0x26c497;let _0x4f1569=this[_0xe7d09c(0x169)](_0x3d69af,_0x292fb5)['_shapes'][_0xe7d09c(0xe0)](_0x204ba3);if(_0x4f1569)return _0x4f1569[_0xe7d09c(0xf9)]();}[_0x26c497(0x11f)](){}[_0x26c497(0x13f)](_0x170143){const _0x1b3707=_0x26c497;let _0x1d5822={},_0x2af644=this[_0x1b3707(0x126)][_0x1b3707(0xe0)](_0x170143);return _0x2af644&&_0x2af644[_0x1b3707(0x13d)]((_0x98408b,_0x821173)=>{const _0x432500=_0x1b3707;let _0x41c0dd=_0x98408b[_0x432500(0x104)]();_0x41c0dd[_0x432500(0x165)]>0x0&&(_0x1d5822[_0x821173]=_0x41c0dd);}),JSON[_0x1b3707(0x154)](_0x1d5822);}[_0x26c497(0x14b)](_0x3450f3,_0x20f76f){const _0xd4115f=_0x26c497;Object[_0xd4115f(0x145)](_0x20f76f)[_0xd4115f(0x13d)](_0x2cf43d=>{const _0x5b9b89=_0xd4115f;this[_0x5b9b89(0x169)](_0x3450f3,_0x2cf43d)['fromJSON'](_0x20f76f[_0x2cf43d]);});}[_0x26c497(0x104)](){let _0x3949c0={};return this['_shapeModelManagerMap']['forEach']((_0x1060f9,_0x583629)=>{const _0x5cc134=_0x48a4;_0x3949c0[_0x583629]={},_0x1060f9[_0x5cc134(0x13d)]((_0x16f962,_0x45cb97)=>{_0x3949c0[_0x583629][_0x45cb97]=_0x16f962['toJSON']();});}),_0x3949c0;}[_0x26c497(0x117)](_0x5cf92e){const _0x36f7a9=_0x26c497;Object[_0x36f7a9(0x145)](_0x5cf92e)[_0x36f7a9(0x13d)](_0x385f07=>{const _0xecfd04=_0x36f7a9;let _0xfa9fa4=_0x5cf92e[_0x385f07];Object[_0xecfd04(0x145)](_0xfa9fa4)[_0xecfd04(0x13d)](_0x55e8ad=>{const _0x1e9d27=_0xecfd04;this['_ensureShapeModelManager'](_0x385f07,_0x55e8ad)[_0x1e9d27(0x117)](_0xfa9fa4[_0x55e8ad]);});});}['_initSnapshot'](){const _0x1f3e8f=_0x26c497;this[_0x1f3e8f(0x11d)][_0x1f3e8f(0x11e)]({'pluginName':_0x1f3e8f(0x103),'businesses':[_0xd9deb1[_0x1f3e8f(0xee)]],'toJson':_0x401a25=>this[_0x1f3e8f(0x13f)](_0x401a25),'parseJson':_0x53060e=>JSON[_0x1f3e8f(0xd4)](_0x53060e),'onLoad':(_0x259681,_0xabb09d)=>{const _0x53756e=_0x1f3e8f;this[_0x53756e(0x14b)](_0x259681,_0xabb09d);},'onUnLoad':_0xaac5ff=>{const _0x1fb8bc=_0x1f3e8f;let _0x3dade4=this[_0x1fb8bc(0x126)][_0x1fb8bc(0xe0)](_0xaac5ff);_0x3dade4&&(_0x3dade4[_0x1fb8bc(0x13d)](_0x4291da=>{const _0x3f6b33=_0x1fb8bc;_0x4291da[_0x3f6b33(0x13c)]();}),this[_0x1fb8bc(0x126)][_0x1fb8bc(0x153)](_0xaac5ff));}});}[_0x26c497(0x13c)](){this['_shapeModelManagerMap']['forEach'](_0x56db29=>{const _0x4ab5d4=_0x48a4;_0x56db29[_0x4ab5d4(0x13d)](_0x35e43f=>{const _0x18ab3b=_0x4ab5d4;_0x35e43f[_0x18ab3b(0x13c)]();});});}};G=W([U(0x0,_0x54f492)],G);const K={'id':_0x26c497(0xea),'type':_0x3e9504['MUTATION'],'handler':(_0x9aa014,_0x5a0978)=>{const _0x1e718a=_0x26c497;let {unitId:_0xf4d0aa,subUnitId:_0x533484,shapeType:_0x32e362,shapeId:_0x161492,shapeData:_0x2b0ea6}=_0x5a0978;return _0x9aa014[_0x1e718a(0xe0)](G)[_0x1e718a(0xd8)](_0xf4d0aa,_0x533484,_0x32e362,_0x161492,_0x2b0ea6),!0x0;}},q={'id':_0x26c497(0xdc),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x3cd920,_0x56e80c)=>{const _0x520dc0=_0x26c497;let {unitId:_0x233503,subUnitId:_0x595c21,shapeId:_0x3db2c0}=_0x56e80c;return _0x3cd920[_0x520dc0(0xe0)](G)[_0x520dc0(0x11b)](_0x233503,_0x595c21,_0x3db2c0),!0x0;}},J={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0x15b),'handler':(_0x2c27d0,_0x454bf0)=>{const _0x34291a=_0x26c497;var _0x3d737a,_0x4cf013;let _0x8550a5=_0x1d1d1e(_0x2c27d0[_0x34291a(0xe0)](_0x70c7f6),_0x454bf0);if(!_0x8550a5)return!0x1;let _0x158328=_0x2c27d0[_0x34291a(0xe0)](_0xf2e92a),{unitId:_0x56edde,subUnitId:_0x420415}=_0x8550a5,_0x4db6e0=_0x158328['ensureSkeleton'](_0x56edde,_0x420415);if(!_0x4db6e0)return!0x1;let _0x5931c9=_0x2c27d0[_0x34291a(0xe0)](_0x5b8310),_0x2c6ba9=_0x2c27d0['get'](_0x4f939d),_0x52a1b3=_0x2c27d0['get'](_0x499171),_0x1e97dd=_0x2c27d0[_0x34291a(0xe0)](_0x41f85d),{shapeType:_0x22d9d,shapeData:_0x751a47}=_0x454bf0,_0x20e007=_0x454bf0[_0x34291a(0x170)]||_0x15fabb(),_0x4ea29e={'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007,'shapeType':_0x22d9d,'shapeData':_0x751a47},_0x37c2f2=_0x454bf0['width']||0xc8,_0x664d32=_0x454bf0[_0x34291a(0x111)]||0xc8,_0x3ed4a6=0x0,_0x504b9e=0x0,_0x5dc65f={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x322d25={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x454bf0[_0x34291a(0x171)]){let {x:_0x30018f,y:_0x4c0c50}=_0x454bf0['position'];_0x3ed4a6=_0x30018f,_0x504b9e=_0x4c0c50,_0x5dc65f=_0x4db6e0[_0x34291a(0x13e)](_0x30018f,_0x4c0c50),_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x30018f+_0x37c2f2,_0x4c0c50+_0x664d32);}else{if(_0x454bf0[_0x34291a(0x134)]){let {startRow:_0x35556a,startColumn:_0x8c66d9}=_0x454bf0[_0x34291a(0x134)];_0x5dc65f={'row':_0x35556a,'rowOffset':0xa,'column':_0x8c66d9,'columnOffset':0xa};let _0x2213a5=_0x4db6e0[_0x34291a(0xff)](_0x35556a,_0x8c66d9);_0x3ed4a6=_0x2213a5[_0x34291a(0x16f)]+0xa,_0x504b9e=_0x2213a5[_0x34291a(0xe5)]+0xa,_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x3ed4a6+_0x37c2f2,_0x504b9e+_0x664d32);}}let _0x43a997={'from':_0x5dc65f,'to':_0x322d25},_0x17fd16={'unitId':_0x56edde,'subUnitId':_0x420415,'drawingId':_0x20e007,'drawingType':_0x5e5e5b[_0x34291a(0x130)],'sheetTransform':_0x43a997,'transform':{'left':_0x3ed4a6,'top':_0x504b9e,'width':_0x37c2f2,'height':_0x664d32},'data':{'shapeType':_0x22d9d,'shapeData':_0x751a47},'axisAlignSheetTransform':_0x43a997,'allowTransform':!0x0};_0x45d4e8(_0x22d9d)&&(_0x17fd16[_0x34291a(0x119)]['fill']=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xdb)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0x137)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xdb)]=!0x1,_0x17fd16['transform']['borderEnabled']=!0x1);let {undo:_0xf315e9,redo:_0x1ec50e,objects:_0x34484b}=_0x1e97dd[_0x34291a(0x15c)]([_0x17fd16]),_0xf99a43=_0x52a1b3[_0x34291a(0x156)]({'id':_0xbe823c['id'],'params':{'unitId':_0x56edde,'drawings':[_0x17fd16]}}),_0x55643b=[...(_0x3d737a=_0xf99a43[_0x34291a(0x131)])==null?[]:_0x3d737a,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0x1ec50e,'objects':_0x34484b,'type':_0x5e6d34[_0x34291a(0x135)]}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0xfa)],{'id':K['id'],'params':_0x4ea29e}],_0x4868cf=[{'id':q['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007}},...(_0x4cf013=_0xf99a43[_0x34291a(0x114)])==null?[]:_0x4cf013,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0xf315e9,'objects':_0x34484b,'type':_0x5e6d34['REMOVE']}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0x13a)]];return _0x3a6f34(_0x55643b,_0x5931c9)[_0x34291a(0x10e)]?(_0x2c6ba9[_0x34291a(0xe9)]({'unitID':_0x56edde,'undoMutations':_0x4868cf,'redoMutations':_0x55643b}),!0x0):!0x1;}},Y={'id':_0x26c497(0x16b),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x166154,_0x2fa193)=>{const _0x23b08a=_0x26c497;let {unitId:_0x58f341,subUnitId:_0x2c7ee7,shapeType:_0x4e5e9b,shapeId:_0x315414,shapeData:_0x678c8d}=_0x2fa193,_0x4be03e=_0x166154[_0x23b08a(0xe0)](G)[_0x23b08a(0x13b)](_0x58f341,_0x2c7ee7,_0x315414);return _0x4be03e&&(_0x4e5e9b!==void 0x0&&_0x4be03e[_0x23b08a(0x11f)](_0x4e5e9b),_0x678c8d&&(_0x4be03e==null||_0x4be03e[_0x23b08a(0x12e)](_0x678c8d,!0x0))),!0x0;}},ee={'type':_0x3e9504[_0x26c497(0xf5)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x98ff5e,_0x1e07af)=>{const _0x26f5ab=_0x26c497;var _0x43a3dd,_0x1d3c65;let _0x3dd426=_0x1d1d1e(_0x98ff5e[_0x26f5ab(0xe0)](_0x70c7f6),_0x1e07af);if(!_0x3dd426)return!0x1;let _0x53b7c2=_0x98ff5e[_0x26f5ab(0xe0)](_0xf2e92a),{unitId:_0xa1ec7f,subUnitId:_0xc7bc36}=_0x3dd426,_0x4b1cce=_0x53b7c2[_0x26f5ab(0x128)](_0xa1ec7f,_0xc7bc36);if(!_0x4b1cce)return!0x1;let _0x340b81=_0x98ff5e[_0x26f5ab(0xe0)](G),{shapeId:_0x3630d1,shapeType:_0x2710a5,shapeData:_0x2d0fc6,position:_0x5aa5e5,width:_0x3151bc,height:_0x112586}=_0x1e07af,_0x1117d2=_0x340b81[_0x26f5ab(0x13b)](_0xa1ec7f,_0xc7bc36,_0x3630d1);if(!_0x1117d2)return!0x1;let _0x255174=_0x98ff5e[_0x26f5ab(0xe0)](_0x5b8310),_0x3a269a=_0x98ff5e[_0x26f5ab(0xe0)](_0x4f939d),_0x5e5fac=_0x98ff5e[_0x26f5ab(0xe0)](_0x499171),_0x408ca1=_0x98ff5e[_0x26f5ab(0xe0)](_0x41f85d),_0xca3b78={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeId':_0x3630d1,'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},_0x115019=_0x1117d2[_0x26f5ab(0x163)](),_0x53651c=_0x1117d2[_0x26f5ab(0xf0)](),{x:_0x591ab8,y:_0x52f890}=_0x5aa5e5,_0x429642={'from':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8,_0x52f890),'to':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8+_0x3151bc,_0x52f890+_0x112586)},_0x4e61cd={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'drawingId':_0x3630d1,'drawingType':_0x5e5e5b[_0x26f5ab(0x130)],'sheetTransform':_0x429642,'transform':{'left':_0x591ab8,'top':_0x52f890,'width':_0x3151bc,'height':_0x112586},'data':{'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},'axisAlignSheetTransform':_0x429642,'allowTransform':!0x0};_0x45d4e8(_0x2710a5)&&(_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x149)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xda)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x137)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)]['rotateEnabled']=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0x137)]=!0x1);let {undo:_0x49bf3d,redo:_0x36e9ea,objects:_0x29b7d6}=_0x408ca1[_0x26f5ab(0x142)]([_0x4e61cd]),_0x3c1289=_0x5e5fac['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0xa1ec7f,'drawings':[_0x4e61cd]}}),_0x1238b6=[...(_0x43a3dd=_0x3c1289['preRedos'])==null?[]:_0x43a3dd,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x36e9ea,'objects':_0x29b7d6,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0xfa)],{'id':Y['id'],'params':_0xca3b78}],_0x224c97=[...(_0x1d3c65=_0x3c1289[_0x26f5ab(0x114)])==null?[]:_0x1d3c65,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x49bf3d,'objects':_0x29b7d6,'type':_0x5e6d34[_0x26f5ab(0xdf)]}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0x13a)],{'id':Y['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeType':_0x115019,'shapeId':_0x3630d1,'shapeData':_0x53651c}}];return _0x3a6f34(_0x1238b6,_0x255174)['result']?(_0x3a269a['pushUndoRedo']({'unitID':_0xa1ec7f,'undoMutations':_0x224c97,'redoMutations':_0x1238b6}),!0x0):!0x1;}},te={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0xfc),'handler':(_0x122e06,_0x789a7b)=>{const _0x2e9f1d=_0x26c497;var _0x316003,_0x21c296;let _0x52bc5c=_0x1d1d1e(_0x122e06[_0x2e9f1d(0xe0)](_0x70c7f6),_0x789a7b);if(!_0x52bc5c)return!0x1;let _0x37151f=_0x122e06[_0x2e9f1d(0xe0)](_0xf2e92a),{unitId:_0x22550e,subUnitId:_0x2d5a8d}=_0x52bc5c,_0x3240e1=_0x37151f['getSkeleton'](_0x22550e,_0x2d5a8d);if(!_0x3240e1)return!0x1;let _0x3289cb=_0x122e06[_0x2e9f1d(0xe0)](_0x41f85d),{shapeId:_0x2964dc,flipH:_0x12aee5,flipV:_0x3307dc}=_0x789a7b,_0x40f8b5=_0x3289cb['getDrawingByParam']({'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc});if(!_0x40f8b5)return!0x1;let _0x26413f=_0x122e06[_0x2e9f1d(0xe0)](G)[_0x2e9f1d(0x13b)](_0x22550e,_0x2d5a8d,_0x2964dc);if(!_0x26413f)return!0x1;let _0x2f50c6=_0x122e06['get'](_0x5b8310),_0x48951e=_0x122e06[_0x2e9f1d(0xe0)](_0x4f939d),_0x55d89f=_0x122e06[_0x2e9f1d(0xe0)](_0x499171),_0x465299={..._0x40f8b5[_0x2e9f1d(0x101)]};_0x12aee5!==void 0x0&&(_0x465299[_0x2e9f1d(0x16e)]=!_0x465299[_0x2e9f1d(0x16e)]),_0x3307dc!==void 0x0&&(_0x465299[_0x2e9f1d(0x12a)]=!_0x465299[_0x2e9f1d(0x12a)]);let _0x5a18b1=_0x4fa37c(_0x465299,_0x3240e1),_0x55741b=_0x13d14d(_0x465299,_0x3240e1),_0x6d1621=_0x26413f[_0x2e9f1d(0x163)](),_0x2e8173=_0x26413f['getShapeData'](),_0x202935={'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc,'drawingType':_0x5e5e5b[_0x2e9f1d(0x130)],'sheetTransform':_0x5a18b1,'transform':_0x465299,'data':{'shapeType':_0x6d1621,'shapeData':_0x2e8173},'axisAlignSheetTransform':_0x55741b,'allowTransform':!0x0},{undo:_0x195e51,redo:_0x1016cf,objects:_0x384042}=_0x3289cb[_0x2e9f1d(0x142)]([_0x202935]),_0x131507=_0x55d89f[_0x2e9f1d(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x22550e,'drawings':[_0x202935]}}),_0x398d5c=[...(_0x316003=_0x131507[_0x2e9f1d(0x131)])==null?[]:_0x316003,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x1016cf,'objects':_0x384042,'type':_0x5e6d34[_0x2e9f1d(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0xfa)]],_0x1fae9f=[...(_0x21c296=_0x131507[_0x2e9f1d(0x114)])==null?[]:_0x21c296,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x195e51,'objects':_0x384042,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0x13a)]];if(_0x45d4e8(_0x6d1621)){let _0x595ba9=_0x26413f[_0x2e9f1d(0xf9)]();if(_0x595ba9){let _0x10f4a1={..._0x595ba9};_0x10f4a1['from']=void 0x0,_0x10f4a1['to']=void 0x0,_0x398d5c[_0x2e9f1d(0x141)]({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x10f4a1}}}),_0x1fae9f['push']({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x595ba9}}});}}return _0x3a6f34(_0x398d5c,_0x2f50c6)['result']?(_0x48951e[_0x2e9f1d(0xe9)]({'unitID':_0x22550e,'undoMutations':_0x1fae9f,'redoMutations':_0x398d5c}),!0x0):!0x1;}},X={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x168),'handler':(_0xaefcfe,_0x570736)=>{const _0x4c2ac9=_0x26c497;var _0xa213ec,_0x3d04b0;let _0x224521=_0x1d1d1e(_0xaefcfe[_0x4c2ac9(0xe0)](_0x70c7f6),_0x570736);if(!_0x224521)return!0x1;let _0x474566=_0xaefcfe[_0x4c2ac9(0xe0)](_0xf2e92a),{unitId:_0x2d7c6e,subUnitId:_0x1c05ac}=_0x224521,_0x2ee746=_0x474566['getSkeleton'](_0x2d7c6e,_0x1c05ac);if(!_0x2ee746)return!0x1;let _0x2d0d18=_0xaefcfe[_0x4c2ac9(0xe0)](_0x41f85d),{shapeId:_0x5c791f,rotate:_0x243eea}=_0x570736,_0x65a673=_0x2d0d18[_0x4c2ac9(0x14a)]({'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f});if(!_0x65a673)return!0x1;let _0x4ff02e=_0xaefcfe[_0x4c2ac9(0xe0)](G)['getShapeModel'](_0x2d7c6e,_0x1c05ac,_0x5c791f);if(!_0x4ff02e)return!0x1;let _0x3a5e74=_0xaefcfe[_0x4c2ac9(0xe0)](_0x5b8310),_0x16bde5=_0xaefcfe[_0x4c2ac9(0xe0)](_0x4f939d),_0x181830=_0xaefcfe[_0x4c2ac9(0xe0)](_0x499171),_0x48caf5={..._0x65a673[_0x4c2ac9(0x101)]};_0x243eea!==void 0x0&&(_0x48caf5[_0x4c2ac9(0xfb)]=(_0x48caf5['angle']||0x0)+_0x243eea);let _0x534004=_0x4fa37c(_0x48caf5,_0x2ee746),_0x5598bd=_0x13d14d(_0x48caf5,_0x2ee746),_0x1db777=_0x4ff02e[_0x4c2ac9(0x163)](),_0x1169e3=_0x4ff02e['getShapeData'](),_0x43a563={'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f,'drawingType':_0x5e5e5b[_0x4c2ac9(0x130)],'sheetTransform':_0x534004,'transform':_0x48caf5,'data':{'shapeType':_0x1db777,'shapeData':_0x1169e3},'axisAlignSheetTransform':_0x5598bd,'allowTransform':!0x0},{undo:_0x577541,redo:_0x54249a,objects:_0x614f98}=_0x2d0d18['getBatchUpdateOp']([_0x43a563]),_0xe27102=_0x181830[_0x4c2ac9(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x2d7c6e,'drawings':[_0x43a563]}}),_0x3baa24=[...(_0xa213ec=_0xe27102[_0x4c2ac9(0x131)])==null?[]:_0xa213ec,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x54249a,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102['redos']],_0x2637f2=[...(_0x3d04b0=_0xe27102[_0x4c2ac9(0x114)])==null?[]:_0x3d04b0,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x577541,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102[_0x4c2ac9(0x13a)]];return _0x3a6f34(_0x3baa24,_0x3a5e74)[_0x4c2ac9(0x10e)]?(_0x16bde5['pushUndoRedo']({'unitID':_0x2d7c6e,'undoMutations':_0x2637f2,'redoMutations':_0x3baa24}),!0x0):!0x1;}},Z={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xd2),'handler':(_0x93b416,_0x11aa62)=>{const _0x45f2f5=_0x26c497;var _0x1ffe49;let _0xdbf691=_0x1d1d1e(_0x93b416[_0x45f2f5(0xe0)](_0x70c7f6),_0x11aa62);if(!_0xdbf691)return!0x1;let {unitId:_0x50c62d,subUnitId:_0x3dde17}=_0xdbf691,{shapeId:_0x1b3e6d}=_0x11aa62,_0x1eb255=_0x93b416[_0x45f2f5(0xe0)](G)['getShapeModel'](_0x50c62d,_0x3dde17,_0x1b3e6d);if(!_0x1eb255)return!0x1;let _0x51a863=_0x1eb255[_0x45f2f5(0xe3)](),_0x5325cf=(_0x1ffe49=_0x51a863==null?void 0x0:_0x51a863[_0x45f2f5(0x136)])==null?!0x0:_0x1ffe49,_0x362488=!_0x5325cf,_0x2582b3=_0x93b416[_0x45f2f5(0xe0)](_0x5b8310),_0x17cdb1=_0x93b416[_0x45f2f5(0xe0)](_0x4f939d),_0x385bf6={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x362488}}},_0x1f5e34={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x5325cf}}},_0x40cd13=[{'id':Y['id'],'params':_0x385bf6}],_0x21fe59=[{'id':Y['id'],'params':_0x1f5e34}];return _0x3a6f34(_0x40cd13,_0x2582b3)[_0x45f2f5(0x10e)]?(_0x17cdb1[_0x45f2f5(0xe9)]({'unitID':_0x50c62d,'undoMutations':_0x21fe59,'redoMutations':_0x40cd13}),!0x0):!0x1;}},ne={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xf2),'handler':(_0x583433,_0x593494)=>{const _0x309c4b=_0x26c497;var _0x566c89,_0x3d07b0,_0x2d60c2,_0x1f2281;let _0x5ba37e=_0x1d1d1e(_0x583433[_0x309c4b(0xe0)](_0x70c7f6),_0x593494);if(!_0x5ba37e)return!0x1;let _0x35ed10=_0x583433[_0x309c4b(0xe0)](_0xf2e92a),{unitId:_0x406edf,subUnitId:_0x4c277e}=_0x5ba37e,_0xaec5ce=_0x35ed10[_0x309c4b(0x146)](_0x406edf,_0x4c277e);if(!_0xaec5ce)return!0x1;let _0x152784=_0x583433['get'](_0x41f85d),{connectorShapeId:_0x2d8cc9,width:_0x3b599c,height:_0x12c807,left:_0x4d506e,top:_0x1ee9aa,flipX:_0x45a36b,flipY:_0x1e0202,rotation:_0x2bb0da,oldAdjustValues:_0x40a8e2,newAdjustValues:_0x5937e3,oldLineType:_0x41e464,newLineType:_0x1215d0,oldRelation:_0x2bfa5f,newRelation:_0x5f4468}=_0x593494,_0x5010d9=_0x152784[_0x309c4b(0x14a)]({'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9});if(!_0x5010d9)return!0x1;let _0x37c194=_0x583433[_0x309c4b(0xe0)](G)['getShapeModel'](_0x406edf,_0x4c277e,_0x2d8cc9);if(!_0x37c194)return!0x1;let _0x565bcf=_0x583433[_0x309c4b(0xe0)](_0x5b8310),_0x2db390=_0x583433[_0x309c4b(0xe0)](_0x4f939d),_0x571a04=_0x583433[_0x309c4b(0xe0)](_0x499171),_0x4b18a5={..._0x5010d9[_0x309c4b(0x101)],'width':_0x3b599c,'height':_0x12c807,'left':_0x4d506e,'top':_0x1ee9aa,'flipX':_0x45a36b,'flipY':_0x1e0202,'angle':(_0x566c89=_0x2bb0da==null?(_0x3d07b0=_0x5010d9['transform'])==null?void 0x0:_0x3d07b0[_0x309c4b(0xfb)]:_0x2bb0da)==null?0x0:_0x566c89},_0x2fb48e=_0x4fa37c(_0x4b18a5,_0xaec5ce),_0x2d2f13=_0x13d14d(_0x4b18a5,_0xaec5ce),_0x954c9d=_0x37c194[_0x309c4b(0x163)](),_0x48249f=_0x37c194[_0x309c4b(0xf0)](),_0x4e74b5={'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'sheetTransform':_0x2fb48e,'transform':_0x4b18a5,'data':{'shapeType':_0x1215d0||_0x41e464||_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x5937e3||_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x5f4468||_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}},'axisAlignSheetTransform':_0x2d2f13,'allowTransform':!0x0},{undo:_0x5a6597,redo:_0x418c69,objects:_0x12d9db}=_0x152784[_0x309c4b(0x142)]([_0x4e74b5]),_0x190368=_0x571a04[_0x309c4b(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x406edf,'drawings':[_0x4e74b5]}}),_0x1d87a9=[...(_0x2d60c2=_0x190368['preRedos'])==null?[]:_0x2d60c2,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x418c69,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368['redos'],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x1215d0,'shapeData':{'adjustValues':_0x5937e3,'relation':_0x5f4468}}}],_0x29d5f9=[...(_0x1f2281=_0x190368[_0x309c4b(0x114)])==null?[]:_0x1f2281,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x5a6597,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368[_0x309c4b(0x13a)],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}}}];return _0x3a6f34(_0x1d87a9,_0x565bcf)[_0x309c4b(0x10e)]?(_0x2db390[_0x309c4b(0xe9)]({'unitID':_0x406edf,'undoMutations':_0x29d5f9,'redoMutations':_0x1d87a9}),!0x0):!0x1;}},re={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x152),'handler':(_0x27b0cd,_0x45d01c)=>{const _0x3acb89=_0x26c497;var _0x40849c,_0x18c34e;let _0x5223b0=_0x1d1d1e(_0x27b0cd[_0x3acb89(0xe0)](_0x70c7f6),_0x45d01c);if(!_0x5223b0)return!0x1;let _0x379f5a=_0x27b0cd[_0x3acb89(0xe0)](_0xf2e92a),{unitId:_0x80e8d2,subUnitId:_0x3576b7}=_0x5223b0,_0x2e4090=_0x379f5a['getSkeleton'](_0x80e8d2,_0x3576b7);if(!_0x2e4090)return!0x1;let _0xa104d1=_0x27b0cd['get'](_0x41f85d),{shapeId:_0x5cb93e,width:_0x4f06a4,height:_0x5ac3bd,left:_0x1f35c3,top:_0x559f1d,flipX:_0xfe20f0,flipY:_0x167ea2,angle:_0x37429c,oldAdjustValues:_0x2105fd,newAdjustValues:_0x19cbd9,oldLineType:_0x11ac87,newLineType:_0x1ae2ae}=_0x45d01c,_0x59f67a=_0xa104d1[_0x3acb89(0x14a)]({'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e});if(!_0x59f67a)return!0x1;let _0x1b565d=_0x27b0cd['get'](G)[_0x3acb89(0x13b)](_0x80e8d2,_0x3576b7,_0x5cb93e);if(!_0x1b565d)return!0x1;let _0x5901be=_0x27b0cd['get'](_0x5b8310),_0x3f5783=_0x27b0cd[_0x3acb89(0xe0)](_0x4f939d),_0x2d4abb=_0x27b0cd['get'](_0x499171),_0x4ffad3={..._0x59f67a[_0x3acb89(0x101)],'width':_0x4f06a4,'height':_0x5ac3bd,'left':_0x1f35c3,'top':_0x559f1d,'flipX':_0xfe20f0,'flipY':_0x167ea2,'angle':_0x37429c},_0x5da79c=_0x4fa37c(_0x4ffad3,_0x2e4090),_0x129615=_0x13d14d(_0x4ffad3,_0x2e4090),_0x413dff=_0x1b565d['getShapeType'](),_0x537b20=_0x1b565d[_0x3acb89(0xf0)](),_0x303d24={'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e,'drawingType':_0x5e5e5b[_0x3acb89(0x130)],'sheetTransform':_0x5da79c,'transform':_0x4ffad3,'data':{'shapeType':_0x1ae2ae||_0x11ac87||_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x19cbd9||_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20['adjustValues'])}},'axisAlignSheetTransform':_0x129615,'allowTransform':!0x0},{undo:_0xa694ce,redo:_0x4292c6,objects:_0x522d06}=_0xa104d1[_0x3acb89(0x142)]([_0x303d24]),_0x1f91bf=_0x2d4abb['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0x80e8d2,'drawings':[_0x303d24]}}),_0x2f7f67=[...(_0x40849c=_0x1f91bf['preRedos'])==null?[]:_0x40849c,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0x4292c6,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0xfa)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x1ae2ae,'shapeData':{'adjustValues':_0x19cbd9}}}],_0x12105a=[...(_0x18c34e=_0x1f91bf[_0x3acb89(0x114)])==null?[]:_0x18c34e,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0xa694ce,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0x13a)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20[_0x3acb89(0x155)])}}}];return _0x3a6f34(_0x2f7f67,_0x5901be)['result']?(_0x3f5783[_0x3acb89(0xe9)]({'unitID':_0x80e8d2,'undoMutations':_0x12105a,'redoMutations':_0x2f7f67}),!0x0):!0x1;}},Q={'id':_0x26c497(0x140),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x4fee02,_0x53d2fe)=>{const _0xed3c8b=_0x26c497;let {unitId:_0x2abc37,subUnitId:_0x1785ae,shapeType:_0x578746,shapeId:_0x419c6a,shapeData:_0x574e4a}=_0x53d2fe,_0xb55453=_0x4fee02[_0xed3c8b(0xe0)](G)[_0xed3c8b(0x13b)](_0x2abc37,_0x1785ae,_0x419c6a);return _0xb55453&&(_0xb55453[_0xed3c8b(0x11f)](_0x578746),_0x574e4a&&(_0xb55453==null||_0xb55453[_0xed3c8b(0x12e)](_0x574e4a))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x3e9504[_0x26c497(0xf5)],'handler':(_0x215d6c,_0x28b1e0)=>{const _0x496e41=_0x26c497;if(!_0x28b1e0)return!0x1;let _0x188a0b=_0x215d6c[_0x496e41(0xe0)](_0x5b8310),_0x121d82=_0x215d6c['get'](G),_0x308fe8=_0x215d6c['get'](_0x4f939d),_0x4325e8=[],_0x23b2d8=[],{unitId:_0x5132e6,subUnitId:_0x16b927,shapeId:_0x27105d,shapeType:_0xc49c0f,shapeData:_0x35c12f}=_0x28b1e0,_0x46a615=_0x121d82[_0x496e41(0x13b)](_0x5132e6,_0x16b927,_0x27105d);if(_0x46a615){let _0x5a95bd=_0x46a615['getShapeType'](),_0x3d8132=Object[_0x496e41(0xf3)]({},_0x46a615[_0x496e41(0xf0)]()),_0x327b8b={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0xc49c0f,'shapeData':_0x35c12f},_0x212918={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0x5a95bd,'shapeData':_0x3d8132};return _0x4325e8['push']({'id':Q['id'],'params':_0x327b8b}),_0x23b2d8[_0x496e41(0x141)]({'id':Q['id'],'params':_0x212918}),_0x4325e8['every'](_0x98c255=>_0x188a0b[_0x496e41(0xde)](_0x98c255['id'],_0x98c255[_0x496e41(0x102)]))&&_0x308fe8[_0x496e41(0xe9)]({'unitID':_0x5132e6,'redoMutations':[..._0x4325e8],'undoMutations':[..._0x23b2d8]}),!0x0;}return!0x1;}};var ae=_0x26c497(0x12b),oe=_0x26c497(0xfe);const se={};function _0x48a4(_0x420ab7,_0x488495){_0x420ab7=_0x420ab7-0xd0;const _0x1d9452=_0x1d94();let _0x48a400=_0x1d9452[_0x420ab7];return _0x48a400;}let ce=class extends _0x28b545{constructor(_0x2eb3b4,_0xb6caf2,_0x42d830,_0x5ca834,_0x1674c2){const _0x4fea63=_0x26c497;super(),this[_0x4fea63(0x106)]=_0x2eb3b4,this[_0x4fea63(0x133)]=_0xb6caf2,this['_sheetSkeletonService']=_0x42d830,this['_sheetsShapeService']=_0x5ca834,this[_0x4fea63(0x110)]=_0x1674c2,this[_0x4fea63(0x150)](),this[_0x4fea63(0x147)]();}[_0x26c497(0x150)](){const _0x358145=_0x26c497;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x361a06=>this[_0x358145(0x123)](this[_0x358145(0x106)]['registerCommand'](_0x361a06)));}[_0x26c497(0x147)](){const _0x3392f5=_0x26c497;this[_0x3392f5(0x123)](this[_0x3392f5(0x133)][_0x3392f5(0x160)]({'getMutations':_0x300b3d=>{const _0x47a595=_0x3392f5;if(_0x300b3d['id']===_0xd0523e['id']){let {drawings:_0xf642dc}=_0x300b3d[_0x47a595(0x102)],_0x42d700=_0xf642dc[_0x47a595(0x10f)](_0x54d39a=>_0x54d39a[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x42d700['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44c797=[],_0x39115c=[];return _0x42d700[_0x47a595(0x13d)](_0x1fdcf9=>{const _0x570125=_0x47a595;let {unitId:_0x43749a,subUnitId:_0x257046,drawingId:_0x449c75}=_0x1fdcf9,_0x5762a8=this[_0x570125(0xe4)][_0x570125(0x13b)](_0x43749a,_0x257046,_0x449c75);if(!_0x5762a8)throw TypeError(_0x570125(0x15f)+_0x5762a8);_0x44c797[_0x570125(0x141)]({'id':q['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75}}),_0x39115c[_0x570125(0x141)]({'id':K['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75,'shapeType':_0x5762a8['getShapeType'](),'shapeData':_0x5762a8[_0x570125(0xf0)]()}});let _0x24cacd=this[_0x570125(0xe4)][_0x570125(0xd1)](_0x43749a,_0x257046,_0x449c75);if(_0x24cacd)for(let _0x2c38cb of _0x24cacd){let _0x2f0bab=_0x2c38cb[_0x570125(0x162)],_0x21fc90=_0x2c38cb[_0x570125(0x14f)],_0x5b78b5=_0x21fc90?{'from':void 0x0}:{'to':void 0x0},_0x51e1e5=_0x21fc90?{'from':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}}:{'to':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}};_0x44c797[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x5b78b5}}}),_0x39115c[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x51e1e5}}});}}),{'preRedos':_0x44c797,'redos':[],'preUndos':[],'undos':_0x39115c};}if(_0x300b3d['id']===_0x238f6a['id']){let {drawings:_0x4b20ea}=_0x300b3d['params'],_0x59e3bb=_0x4b20ea['filter'](_0x22a5c3=>_0x22a5c3[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x59e3bb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ded07=[],_0x45265e=[];for(let _0x58d13f of _0x59e3bb){let {unitId:_0x104c7f,subUnitId:_0x47a688,drawingId:_0x57f528,transform:_0x59554b}=_0x58d13f;if(!_0x104c7f||!_0x47a688||!_0x57f528||!_0x59554b)continue;let _0x3ef3ae=this[_0x47a595(0xe4)]['getShapeModel'](_0x104c7f,_0x47a688,_0x57f528);if(!_0x3ef3ae)throw TypeError(_0x47a595(0x15f)+_0x3ef3ae);if(_0x45d4e8(_0x3ef3ae[_0x47a595(0x163)]())){let _0x2d62f0=this['_sheetsShapeService'][_0x47a595(0xd0)](_0x104c7f,_0x47a688,_0x57f528);_0x2d62f0&&(_0x2ded07[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45265e[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':_0x2d62f0}}}));}else{let _0x1b943b=this['_sheetsShapeService'][_0x47a595(0xd1)](_0x104c7f,_0x47a688,_0x57f528);if(_0x1b943b&&_0x1b943b['length']>0x0)for(let _0x23e4fd of _0x1b943b){let _0x48a680=_0x23e4fd[_0x47a595(0x162)],_0x12b6c7=_0x23e4fd['isFrom'],_0x41aedd=this[_0x47a595(0xe4)][_0x47a595(0x13b)](_0x104c7f,_0x47a688,_0x48a680);if(!_0x41aedd)continue;let _0x1cd8bf=_0x41aedd[_0x47a595(0x132)](),_0xe21744=_0x41aedd[_0x47a595(0x116)]();_0x1cd8bf&&_0xe21744?this[_0x47a595(0x109)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x1cd8bf,_0xe21744,_0x2ded07,_0x45265e,_0x57f528,_0x59554b):this[_0x47a595(0xf6)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x12b6c7?_0x1cd8bf:_0xe21744,_0x12b6c7,_0x2ded07,_0x45265e,_0x57f528,_0x59554b);}}}return{'preRedos':[],'redos':_0x2ded07,'preUndos':_0x45265e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x31e73a,_0x11fbf5,_0x2db225,_0x26b55d,_0x5c3c63){const _0x12393b=_0x26c497;if(!_0x11fbf5||!_0x2db225)return null;let {shapeId:_0x4ae0d7,cxnIndex:_0x420973}=_0x31e73a,_0x252543=this[_0x12393b(0xe4)][_0x12393b(0x13b)](_0x11fbf5,_0x2db225,_0x4ae0d7);if(!_0x252543)return null;let _0x458ef8=this[_0x12393b(0x110)]['getDrawingByParam']({'unitId':_0x11fbf5,'subUnitId':_0x2db225,'drawingId':_0x4ae0d7});if(!(_0x458ef8!=null&&_0x458ef8['transform']))return null;let {left:_0x2aceb0=0x0,top:_0x50084d=0x0,width:_0x80b08c=0x0,height:_0x1adb8a=0x0,flipX:_0x2e8ac3=!0x1,flipY:_0x360a27=!0x1,angle:_0x50d9b6}=_0x458ef8['transform'];if(_0x5c3c63&&_0x26b55d===_0x4ae0d7){var _0x381c20,_0x357c46,_0x317af1,_0x238892,_0x4114a9,_0x2d8892,_0x175c91;_0x2aceb0=(_0x381c20=_0x5c3c63[_0x12393b(0x16c)])==null?_0x2aceb0:_0x381c20,_0x50084d=(_0x357c46=_0x5c3c63[_0x12393b(0x10d)])==null?_0x50084d:_0x357c46,_0x80b08c=(_0x317af1=_0x5c3c63[_0x12393b(0x14e)])==null?_0x80b08c:_0x317af1,_0x1adb8a=(_0x238892=_0x5c3c63['height'])==null?_0x1adb8a:_0x238892,_0x2e8ac3=(_0x4114a9=_0x5c3c63[_0x12393b(0x16e)])==null?_0x2e8ac3:_0x4114a9,_0x360a27=(_0x2d8892=_0x5c3c63[_0x12393b(0x12a)])==null?_0x360a27:_0x2d8892,_0x50d9b6=(_0x175c91=_0x5c3c63[_0x12393b(0xfb)])==null?_0x50d9b6:_0x175c91;}_0x252543[_0x12393b(0x138)]({'width':_0x80b08c,'height':_0x1adb8a});let _0x206854=_0x252543[_0x12393b(0x164)]()['find'](_0x3b598c=>_0x3b598c[_0x12393b(0x15d)]===_0x420973);if(!_0x206854)return null;let _0x3f2c2e=_0x2e8ac3?_0x80b08c-_0x206854['x']:_0x206854['x'],_0x48beb3=_0x360a27?_0x1adb8a-_0x206854['y']:_0x206854['y'];if(_0x50d9b6!==0x0&&_0x50d9b6!=null){let _0x86797f=_0x50d9b6*Math['PI']/0xb4,_0x303345=Math[_0x12393b(0xdd)](_0x86797f),_0x59943d=Math[_0x12393b(0x120)](_0x86797f),_0x5783b4=_0x80b08c/0x2,_0x4759f1=_0x1adb8a/0x2,_0x173c04=_0x3f2c2e-_0x5783b4,_0x294023=_0x48beb3-_0x4759f1;_0x3f2c2e=_0x5783b4+_0x173c04*_0x303345-_0x294023*_0x59943d,_0x48beb3=_0x4759f1+_0x173c04*_0x59943d+_0x294023*_0x303345;}_0x3f2c2e+=_0x2aceb0,_0x48beb3+=_0x50084d;let _0x3b75ad=_0x206854[_0x12393b(0xf7)]/0xea60;_0x2e8ac3&&(_0x3b75ad=0xb4-_0x3b75ad),_0x360a27&&(_0x3b75ad=-_0x3b75ad),_0x3b75ad+=_0x50d9b6||0x0,_0x3b75ad=(_0x3b75ad%0x168+0x168)%0x168;let _0x4ec920=_0x420ab7({'left':_0x2aceb0,'top':_0x50084d,'width':_0x80b08c,'height':_0x1adb8a},_0x50d9b6||0x0);return{'point':{'x':_0x3f2c2e,'y':_0x48beb3},'angle':_0x3b75ad,'bounds':_0x4ec920};}['_addLineRerouteUpdates'](_0x403e67,_0x40cac3,_0x6362ee,_0x313b43,_0x482791,_0x4b5d33,_0xb733e7,_0x5333d5,_0x95ff8,_0x398200){const _0x1e1be7=_0x26c497;let _0x55b90e=this[_0x1e1be7(0x158)][_0x1e1be7(0x146)](_0x403e67,_0x40cac3);if(!_0x55b90e)return;let _0x5b29e6=_0x313b43[_0x1e1be7(0xf9)](),_0xf315d3=_0x313b43[_0x1e1be7(0x166)](),_0x3577be={},_0x58af6e={};_0xf315d3[_0x1e1be7(0x13d)](_0x77d155=>{const _0x306965=_0x1e1be7;let _0x2c129d=_0x313b43[_0x306965(0xe6)](_0x77d155);_0x58af6e[_0x77d155]=_0x2c129d==null?0x0:_0x2c129d;});let _0x43ffe6=this[_0x1e1be7(0x122)](_0x482791,_0x403e67,_0x40cac3,_0x95ff8,_0x398200),_0x4f843d=this['_getConnectPointInfo'](_0x4b5d33,_0x403e67,_0x40cac3,_0x95ff8,_0x398200);if(_0x43ffe6&&_0x4f843d){let _0x5bd554=_0x313b43['getShapeType'](),_0x547284=_0x37d66d(_0x43ffe6,_0x4f843d,_0x5bd554),_0x3ac850=_0x5bd554;if(_0x547284){let _0xbf5c85=_0x1cd34f(_0x547284,_0x313b43[_0x1e1be7(0x163)]()),_0x5af0b0=this[_0x1e1be7(0x110)][_0x1e1be7(0x151)](_0x403e67,_0x40cac3);if(_0x5af0b0&&_0x5af0b0[_0x6362ee]){let _0x3cb2d6=_0x5af0b0[_0x6362ee];_0x3ac850=_0xbf5c85[_0x1e1be7(0x14d)];for(let [_0x5b26de,_0x1acc2d]of Object['entries'](_0xbf5c85[_0x1e1be7(0x155)]))_0x3577be[_0x5b26de]=_0x1acc2d;let _0x1dc12d={..._0x3cb2d6[_0x1e1be7(0x101)],'width':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x14e)],'height':_0xbf5c85['worldRect'][_0x1e1be7(0x111)],'left':_0xbf5c85['worldRect']['left'],'top':_0xbf5c85[_0x1e1be7(0xd7)]['top'],'flipX':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x16e)],'flipY':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x12a)],'angle':_0xbf5c85[_0x1e1be7(0x16d)]},_0x55d4b3=_0x4fa37c(_0x1dc12d,_0x55b90e),_0x547a1d=_0x13d14d(_0x1dc12d,_0x55b90e),_0x2ecd60={'unitId':_0x403e67,'subUnitId':_0x40cac3,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'drawingId':_0x6362ee,'transform':_0x1dc12d,'sheetTransform':_0x55d4b3,'axisAlignSheetTransform':_0x547a1d},{unitId:_0x59ab4f,subUnitId:_0x99015a,undo:_0x59ca85,redo:_0x2835ce,objects:_0x428207}=this['_drawingManagerService'][_0x1e1be7(0x142)]([_0x2ecd60]);_0xb733e7[_0x1e1be7(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x2835ce,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}}),_0x5333d5['push']({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x59ca85,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}});}_0x313b43[_0x1e1be7(0xe8)]();}_0xb733e7[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x3ac850,'shapeData':{'adjustValues':_0x3577be,'relation':_0x5b29e6}}}),_0x5333d5[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x5bd554,'shapeData':{'adjustValues':_0x58af6e,'relation':_0x5b29e6}}});}}[_0x26c497(0xf6)](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x14b46a,_0x28719d,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9){const _0x12ea58=_0x26c497;var _0xf850ad;if(!_0x14b46a)return;let _0x1d7e93=this[_0x12ea58(0x158)][_0x12ea58(0x146)](_0x1d601f,_0x1bf784);if(!_0x1d7e93)return;let _0x18ff2=(_0xf850ad=this[_0x12ea58(0x110)]['getDrawingByParam']({'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingId':_0x14c794}))==null?void 0x0:_0xf850ad['transform'];if(!_0x18ff2)return;let _0x1815bb=_0x18ff2[_0x12ea58(0x16c)]!==_0x1367a9[_0x12ea58(0x16c)]||_0x18ff2['top']!==_0x1367a9['top'],_0x34d63e=_0x18ff2[_0x12ea58(0x14e)]!==_0x1367a9[_0x12ea58(0x14e)]||_0x18ff2[_0x12ea58(0x111)]!==_0x1367a9[_0x12ea58(0x111)],_0x30218d=_0x18ff2[_0x12ea58(0x16e)]!==_0x1367a9['flipX']||_0x18ff2[_0x12ea58(0x12a)]!==_0x1367a9[_0x12ea58(0x12a)],_0x6ba956=_0x18ff2['angle']!==_0x1367a9['angle'];if(_0x1815bb&&!_0x34d63e&&!_0x30218d&&!_0x6ba956){var _0x554153,_0x40a93c,_0x48beb6,_0x4909ae;let _0x534499=((_0x554153=_0x1367a9['left'])==null?0x0:_0x554153)-((_0x40a93c=_0x18ff2[_0x12ea58(0x16c)])==null?0x0:_0x40a93c),_0x489da8=((_0x48beb6=_0x1367a9['top'])==null?0x0:_0x48beb6)-((_0x4909ae=_0x18ff2[_0x12ea58(0x10d)])==null?0x0:_0x4909ae),_0x1fffdf=this['_drawingManagerService'][_0x12ea58(0x151)](_0x1d601f,_0x1bf784);if(_0x1fffdf&&_0x1fffdf[_0x2be500]){var _0x368761,_0x2723ca,_0x213a04,_0x353a23;let _0x3cb7fc=_0x1fffdf[_0x2be500],_0x5b684f={..._0x3cb7fc[_0x12ea58(0x101)],'left':((_0x368761=(_0x2723ca=_0x3cb7fc['transform'])==null?void 0x0:_0x2723ca[_0x12ea58(0x16c)])==null?0x0:_0x368761)+_0x534499,'top':((_0x213a04=(_0x353a23=_0x3cb7fc[_0x12ea58(0x101)])==null?void 0x0:_0x353a23['top'])==null?0x0:_0x213a04)+_0x489da8},_0x2bd77f=_0x4fa37c(_0x5b684f,_0x1d7e93),_0x5c8e5c=_0x13d14d(_0x5b684f,_0x1d7e93),_0x10f57e={'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingType':_0x5e5e5b[_0x12ea58(0x130)],'drawingId':_0x2be500,'transform':_0x5b684f,'sheetTransform':_0x2bd77f,'axisAlignSheetTransform':_0x5c8e5c},{unitId:_0x2610a3,subUnitId:_0x626f3d,undo:_0xf7031,redo:_0x53a829,objects:_0xb37ad0}=this['_drawingManagerService'][_0x12ea58(0x142)]([_0x10f57e]);_0x3b3625[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0x53a829,'objects':_0xb37ad0,'type':_0x5e6d34['UPDATE']}}),_0xb88a29[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0xf7031,'objects':_0xb37ad0,'type':_0x5e6d34[_0x12ea58(0xdf)]}});}}else{let _0x3d29f2=_0x3d9066[_0x12ea58(0x132)](),_0x4fe8fc=_0x3d9066['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x3d29f2,_0x4fe8fc,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9);}}};ce=W([U(0x0,_0x5b8310),U(0x1,_0x224b32(_0x499171)),U(0x2,_0x224b32(_0xf2e92a)),U(0x3,_0x224b32(G)),U(0x4,_0x224b32(_0x531999))],ce);let $=class extends _0x118c9a{constructor(_0x5befa8=se,_0x69ecc9,_0x491181,_0x376d6f){const _0x373219=_0x26c497;super(),this[_0x373219(0xd6)]=_0x5befa8,this['_injector']=_0x69ecc9,this[_0x373219(0x106)]=_0x491181,this[_0x373219(0xf4)]=_0x376d6f;let {..._0x2dabc6}=_0x410777({},se,this['_config']);this[_0x373219(0xf4)][_0x373219(0xe2)]('sheets-shape.config',_0x2dabc6);}['onStarting'](){const _0x2f1c91=_0x26c497;let _0x401031=this['_injector'];[[H],[G],[ce]][_0x2f1c91(0x13d)](_0x4dba78=>_0x401031['add'](_0x4dba78)),_0x41ed94(_0x401031,[[G],[ce]]);}};V($,_0x26c497(0xd9),_0xd9deb1['UNIVER_SHEET']),V($,'pluginName',_0x26c497(0x103)),V($,'packageName',ae),V($,'version',oe),$=W([_0x44491a(_0x1f94d7),U(0x1,_0x224b32(_0x5c089c)),U(0x2,_0x5b8310),U(0x3,_0x3ea937)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x1b2777=_0x55ca;(function(_0x274e08,_0x1363c2){const _0x4d9193=_0x55ca,_0x25b4dd=_0x274e08();while(!![]){try{const _0x1eec06=parseInt(_0x4d9193(0x103))/0x1*(-parseInt(_0x4d9193(0x123))/0x2)+-parseInt(_0x4d9193(0xb9))/0x3*(parseInt(_0x4d9193(0xf8))/0x4)+-parseInt(_0x4d9193(0x100))/0x5+parseInt(_0x4d9193(0xc0))/0x6*(parseInt(_0x4d9193(0x9b))/0x7)+-parseInt(_0x4d9193(0x12a))/0x8+-parseInt(_0x4d9193(0xf7))/0x9*(-parseInt(_0x4d9193(0x110))/0xa)+parseInt(_0x4d9193(0x9c))/0xb;if(_0x1eec06===_0x1363c2)break;else _0x25b4dd['push'](_0x25b4dd['shift']());}catch(_0x3bd7dd){_0x25b4dd['push'](_0x25b4dd['shift']());}}}(_0x5220,0xca2ae));import{ShapeModel as _0x4b5768,computeConnectorRouteLayout as _0xc69524,createUniqueShapeName as _0x35cb9a,getBasicShapeRotateBound as _0x40b288,isConnectorShape as _0xc963bc,routeConnectorLineShape as _0x4cc214}from'@univerjs-pro/engine-shape';import{CommandType as _0x2d4ac4,DependentOn as _0x2c7cf6,Disposable as _0x543ffa,DrawingTypeEnum as _0x4d3e69,ICommandService as _0xa3208c,IConfigService as _0x1802b3,IResourceManagerService as _0x1fce46,IUndoRedoService as _0x17d14d,IUniverInstanceService as _0x38fcfb,Inject as _0x19216a,Injector as _0x180637,Plugin as _0x11a17d,UniverInstanceType as _0x37476a,generateRandomId as _0x3ef264,merge as _0x14640d,sequenceExecute as _0x16df04,touchDependencies as _0x29f0fc}from'@univerjs/core';function _0x55ca(_0x400b15,_0x441b0d){_0x400b15=_0x400b15-0x99;const _0x522044=_0x5220();let _0x55cae2=_0x522044[_0x400b15];return _0x55cae2;}import{SheetInterceptorService as _0x51d1bf,SheetSkeletonService as _0x2fc9c5,getSheetCommandTarget as _0x1fda72}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5ec59a,DrawingApplyType as _0x534eeb,ISheetDrawingService as _0x3f2b28,InsertSheetDrawingCommand as _0xff1699,RemoveSheetDrawingCommand as _0x36289e,SetDrawingApplyMutation as _0x2703c3,SetSheetDrawingCommand as _0x6aec62,transformToAxisAlignPosition as _0x45aabc,transformToDrawingPosition as _0x2d6220}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17d981}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5b1dc7}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x406b3c){'@babel/helpers - typeof';return z=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x49fdc8){return typeof _0x49fdc8;}:function(_0x5b30e7){const _0x494149=_0x55ca;return _0x5b30e7&&typeof Symbol==_0x494149(0x13b)&&_0x5b30e7[_0x494149(0x11c)]===Symbol&&_0x5b30e7!==Symbol[_0x494149(0xa3)]?_0x494149(0xad):typeof _0x5b30e7;},z(_0x406b3c);}function B(_0x4da072,_0x4db97f){const _0x1cc262=_0x55ca;if(z(_0x4da072)!='object'||!_0x4da072)return _0x4da072;var _0x264778=_0x4da072[Symbol['toPrimitive']];if(_0x264778!==void 0x0){var _0x4e734c=_0x264778[_0x1cc262(0xbe)](_0x4da072,_0x4db97f||'default');if(z(_0x4e734c)!=_0x1cc262(0x118))return _0x4e734c;throw TypeError(_0x1cc262(0xf3));}return(_0x4db97f===_0x1cc262(0xdd)?String:Number)(_0x4da072);}function V(_0x1c5dba){const _0x13323c=_0x55ca;var _0x424ccd=B(_0x1c5dba,_0x13323c(0xdd));return z(_0x424ccd)==_0x13323c(0xad)?_0x424ccd:_0x424ccd+'';}function H(_0x5c3816,_0x5b111f,_0x9f001d){const _0x14169b=_0x55ca;return(_0x5b111f=V(_0x5b111f))in _0x5c3816?Object[_0x14169b(0xb0)](_0x5c3816,_0x5b111f,{'value':_0x9f001d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c3816[_0x5b111f]=_0x9f001d,_0x5c3816;}var U=class extends _0x543ffa{constructor(){const _0x25433b=_0x55ca;super(),H(this,_0x25433b(0x113),new Map()),H(this,_0x25433b(0xe3),new Set()),H(this,'_groupIds',new Set());}[_0x1b2777(0xc2)](_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3){const _0xbf33cf=_0x1b2777;let _0x3bccdf=new _0x4b5768(_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3);return this[_0xbf33cf(0x113)][_0xbf33cf(0xba)](_0xddb1a5,_0x3bccdf),_0xc963bc(_0xda0a65)&&this[_0xbf33cf(0xe3)]['add'](_0xddb1a5),_0x3bccdf;}['getBasicShapeRelation'](_0x550e21){const _0x5b4808=_0x1b2777;let _0x42144a=[];for(let _0x3304dd of this['_linesIds']){let _0x4f1c5a=this[_0x5b4808(0x113)]['get'](_0x3304dd);if(_0x4f1c5a){let _0x3f90e3=_0x4f1c5a[_0x5b4808(0xb4)]();if(_0x3f90e3){var _0x10e2e5,_0xdadc62;((_0x10e2e5=_0x3f90e3[_0x5b4808(0xa0)])==null?void 0x0:_0x10e2e5['shapeId'])===_0x550e21&&_0x42144a['push']({..._0x3f90e3[_0x5b4808(0xa0)],'lineShapeId':_0x3304dd,'isFrom':!0x0}),((_0xdadc62=_0x3f90e3['to'])==null?void 0x0:_0xdadc62[_0x5b4808(0x102)])===_0x550e21&&_0x42144a['push']({..._0x3f90e3['to'],'lineShapeId':_0x3304dd,'isFrom':!0x1});}}}return _0x42144a;}[_0x1b2777(0xff)](_0x2869e2){const _0x219345=_0x1b2777;let _0x32e2bc=this[_0x219345(0x113)]['get'](_0x2869e2);if(_0x32e2bc)return _0x32e2bc['getShapeRelation']();}[_0x1b2777(0x10b)](_0x2f5100){const _0x2ca4fc=_0x1b2777;let _0x22e160=this[_0x2ca4fc(0x113)]['get'](_0x2f5100);if(_0x22e160)return _0x22e160[_0x2ca4fc(0x10b)]();}[_0x1b2777(0xdc)](_0x5e5935){const _0x21760b=_0x1b2777;return this[_0x21760b(0x113)][_0x21760b(0x134)](_0x5e5935);}[_0x1b2777(0xcc)](){const _0x4c4b6e=_0x1b2777;return Array[_0x4c4b6e(0xa0)](this[_0x4c4b6e(0x113)][_0x4c4b6e(0xdf)]())[_0x4c4b6e(0x130)](_0xc4514d=>_0xc4514d[_0x4c4b6e(0x117)]()||_0xc4514d[_0x4c4b6e(0xbf)]());}[_0x1b2777(0xb3)](_0x498814){const _0x21451d=_0x1b2777;let _0x22db25=this[_0x21451d(0x113)]['get'](_0x498814);_0x22db25&&(_0xc963bc(_0x22db25['getShapeType']())&&this[_0x21451d(0xe3)][_0x21451d(0x10f)](_0x498814),this[_0x21451d(0x113)][_0x21451d(0x10f)](_0x498814));}[_0x1b2777(0xeb)](){const _0x15b9c4=_0x1b2777;let _0x409e80=[];return this[_0x15b9c4(0x113)][_0x15b9c4(0xa4)](_0x4a9294=>{const _0x145899=_0x15b9c4;_0x409e80['push'](_0x4a9294[_0x145899(0xeb)]());}),_0x409e80;}[_0x1b2777(0xed)](_0x431fdd){const _0x2ffa21=_0x1b2777;for(let _0x2f3b0a of _0x431fdd){let {id:_0x4471f2,shapeType:_0x53c6c5,name:_0x3f0215}=_0x2f3b0a,_0x16b95d=this['addShape'](_0x53c6c5,_0x4471f2,_0x2f3b0a[_0x2ffa21(0xf1)],_0x3f0215);_0x16b95d&&_0x16b95d[_0x2ffa21(0xe0)]()&&this[_0x2ffa21(0xe3)]['add'](_0x4471f2);}}[_0x1b2777(0x122)](){const _0x421825=_0x1b2777;this[_0x421825(0xef)]||(this['_shapes'][_0x421825(0xa4)](_0x16becf=>{const _0x4f8a66=_0x421825;_0x16becf[_0x4f8a66(0x122)]();}),this[_0x421825(0x113)][_0x421825(0x114)](),this[_0x421825(0xe3)][_0x421825(0x114)](),this['_groupIds'][_0x421825(0x114)](),super[_0x421825(0x122)]());}};function W(_0x5a7aa5,_0x2d4550){return function(_0x219768,_0x3f7676){_0x2d4550(_0x219768,_0x3f7676,_0x5a7aa5);};}function G(_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e){const _0x1e5050=_0x1b2777;var _0x3ca514=arguments[_0x1e5050(0xec)],_0x20c0f4=_0x3ca514<0x3?_0x47fcfb:_0x52b22e===null?_0x52b22e=Object[_0x1e5050(0xee)](_0x47fcfb,_0x31ed06):_0x52b22e,_0xdb86fb;if(typeof Reflect==_0x1e5050(0x118)&&typeof Reflect[_0x1e5050(0xfc)]=='function')_0x20c0f4=Reflect[_0x1e5050(0xfc)](_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e);else{for(var _0x2c8f04=_0x3b2e62[_0x1e5050(0xec)]-0x1;_0x2c8f04>=0x0;_0x2c8f04--)(_0xdb86fb=_0x3b2e62[_0x2c8f04])&&(_0x20c0f4=(_0x3ca514<0x3?_0xdb86fb(_0x20c0f4):_0x3ca514>0x3?_0xdb86fb(_0x47fcfb,_0x31ed06,_0x20c0f4):_0xdb86fb(_0x47fcfb,_0x31ed06))||_0x20c0f4);}return _0x3ca514>0x3&&_0x20c0f4&&Object[_0x1e5050(0xb0)](_0x47fcfb,_0x31ed06,_0x20c0f4),_0x20c0f4;}let K=class extends _0x543ffa{constructor(_0x5b1a1d){const _0x48700b=_0x1b2777;super(),this[_0x48700b(0x112)]=_0x5b1a1d,H(this,_0x48700b(0xa9),new Map()),this['_initSnapshot']();}[_0x1b2777(0xb6)](_0x13bf01,_0x165f3f){const _0x2112ac=_0x1b2777;let _0x3c0a10=this[_0x2112ac(0xa9)][_0x2112ac(0x10e)](_0x13bf01);_0x3c0a10||(_0x3c0a10=new Map(),this['_shapeModelManagerMap'][_0x2112ac(0xba)](_0x13bf01,_0x3c0a10));let _0x10b2d2=_0x3c0a10[_0x2112ac(0x10e)](_0x165f3f);return _0x10b2d2||(_0x10b2d2=new U(),_0x3c0a10[_0x2112ac(0xba)](_0x165f3f,_0x10b2d2)),_0x10b2d2;}['insertShape'](_0x41098d,_0x3b218c,_0x35d2d8,_0x114122,_0x31d540,_0x148064){const _0x12f527=_0x1b2777;this['_ensureShapeModelManager'](_0x41098d,_0x3b218c)[_0x12f527(0xc2)](_0x35d2d8,_0x114122,_0x31d540,_0x148064);}[_0x1b2777(0xb3)](_0x9f4c2f,_0x10aaad,_0xcc0751){const _0x231647=_0x1b2777;this[_0x231647(0xb6)](_0x9f4c2f,_0x10aaad)[_0x231647(0xb3)](_0xcc0751);}['getBasicShapeType'](_0x4a20e0,_0x507199,_0x599a0a){const _0x195c52=_0x1b2777;return this[_0x195c52(0xb6)](_0x4a20e0,_0x507199)[_0x195c52(0x10b)](_0x599a0a);}[_0x1b2777(0x10b)](_0x334d4c,_0x2ceec5,_0x4a0881){const _0x123be9=_0x1b2777;return this[_0x123be9(0xb6)](_0x334d4c,_0x2ceec5)[_0x123be9(0x10b)](_0x4a0881);}[_0x1b2777(0xdc)](_0x523c96,_0x120efe,_0x23def1){const _0x4f4a0f=_0x1b2777;return this[_0x4f4a0f(0xb6)](_0x523c96,_0x120efe)[_0x4f4a0f(0xdc)](_0x23def1);}[_0x1b2777(0x126)](_0x133eda,_0x43167a,_0x2d80e3){const _0x338d76=_0x1b2777;return this[_0x338d76(0xb6)](_0x133eda,_0x43167a)['getShapeType'](_0x2d80e3);}[_0x1b2777(0x12c)](_0x2e91b4,_0x48fb61,_0x3e89e4){const _0xf4a329=_0x1b2777;let _0x741a2=this[_0xf4a329(0xb6)](_0x2e91b4,_0x48fb61);if(!_0x741a2[_0xf4a329(0x10b)](_0x3e89e4))return;let _0x207a83=_0x741a2[_0xf4a329(0x113)][_0xf4a329(0x10e)](_0x3e89e4);if(_0x207a83)return _0x207a83[_0xf4a329(0xa2)]();}[_0x1b2777(0xcc)](_0xd26554,_0x2d65ce){const _0x1edde1=_0x1b2777;return this[_0x1edde1(0xb6)](_0xd26554,_0x2d65ce)[_0x1edde1(0xcc)]();}['getShapeModel'](_0x1c224d,_0x324c44,_0x2bfc86){const _0x4f77db=_0x1b2777;return this[_0x4f77db(0xb6)](_0x1c224d,_0x324c44)['_shapes'][_0x4f77db(0x10e)](_0x2bfc86);}[_0x1b2777(0x119)](_0x1a1882,_0x200c36,_0x2a5bcd){const _0x5d3258=_0x1b2777;return this[_0x5d3258(0xb6)](_0x1a1882,_0x200c36)[_0x5d3258(0x119)](_0x2a5bcd);}['getLineShapeRelation'](_0x56e0a9,_0x3579b5,_0xec2178){const _0x4fa56e=_0x1b2777;let _0x22ab84=this['_ensureShapeModelManager'](_0x56e0a9,_0x3579b5)[_0x4fa56e(0x113)][_0x4fa56e(0x10e)](_0xec2178);if(_0x22ab84)return _0x22ab84[_0x4fa56e(0xb4)]();}[_0x1b2777(0x105)](){}[_0x1b2777(0x9d)](_0x24e78c){const _0x2247b1=_0x1b2777;let _0x503002={},_0x3b420c=this[_0x2247b1(0xa9)][_0x2247b1(0x10e)](_0x24e78c);return _0x3b420c&&_0x3b420c[_0x2247b1(0xa4)]((_0x31d710,_0x5930a5)=>{const _0x3f2a5c=_0x2247b1;let _0x2b4b20=_0x31d710['toJSON']();_0x2b4b20[_0x3f2a5c(0xec)]>0x0&&(_0x503002[_0x5930a5]=_0x2b4b20);}),JSON['stringify'](_0x503002);}[_0x1b2777(0x139)](_0x3e9023,_0x5ad212){const _0x209237=_0x1b2777;Object[_0x209237(0x9f)](_0x5ad212)[_0x209237(0xa4)](_0x272d8f=>{const _0x2bfe5a=_0x209237;this[_0x2bfe5a(0xb6)](_0x3e9023,_0x272d8f)[_0x2bfe5a(0xed)](_0x5ad212[_0x272d8f]);});}['toJSON'](){const _0x372fab=_0x1b2777;let _0x930d={};return this[_0x372fab(0xa9)][_0x372fab(0xa4)]((_0x214802,_0x169147)=>{const _0x5ac8c3=_0x372fab;_0x930d[_0x169147]={},_0x214802[_0x5ac8c3(0xa4)]((_0x5e68f3,_0xc8d4ae)=>{const _0x57f301=_0x5ac8c3;_0x930d[_0x169147][_0xc8d4ae]=_0x5e68f3[_0x57f301(0xeb)]();});}),_0x930d;}['fromJSON'](_0x2bf9a6){Object['keys'](_0x2bf9a6)['forEach'](_0x2f3dd5=>{const _0x501e8d=_0x55ca;let _0x3b77aa=_0x2bf9a6[_0x2f3dd5];Object[_0x501e8d(0x9f)](_0x3b77aa)[_0x501e8d(0xa4)](_0x1baf71=>{const _0x33567e=_0x501e8d;this[_0x33567e(0xb6)](_0x2f3dd5,_0x1baf71)[_0x33567e(0xed)](_0x3b77aa[_0x1baf71]);});});}[_0x1b2777(0x101)](){const _0xbc9278=_0x1b2777;this[_0xbc9278(0x112)][_0xbc9278(0xaa)]({'pluginName':_0xbc9278(0xfa),'businesses':[_0x37476a[_0xbc9278(0x11b)]],'toJson':_0xb9192f=>this[_0xbc9278(0x9d)](_0xb9192f),'parseJson':_0x4fea57=>JSON[_0xbc9278(0xa5)](_0x4fea57),'onLoad':(_0x4d5bbe,_0x106b80)=>{const _0x14afc0=_0xbc9278;this[_0x14afc0(0x139)](_0x4d5bbe,_0x106b80);},'onUnLoad':_0x1d625e=>{const _0x51e8d0=_0xbc9278;let _0xe22bab=this[_0x51e8d0(0xa9)][_0x51e8d0(0x10e)](_0x1d625e);_0xe22bab&&(_0xe22bab[_0x51e8d0(0xa4)](_0x549dd2=>{const _0x3af62d=_0x51e8d0;_0x549dd2[_0x3af62d(0x122)]();}),this['_shapeModelManagerMap']['delete'](_0x1d625e));}});}[_0x1b2777(0x122)](){const _0x501602=_0x1b2777;this[_0x501602(0xa9)][_0x501602(0xa4)](_0x3cf640=>{const _0x4a0467=_0x501602;_0x3cf640[_0x4a0467(0xa4)](_0x1a2dd6=>{_0x1a2dd6['dispose']();});});}};K=G([W(0x0,_0x1fce46)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x56a6eb,_0x3cf7a7)=>{const _0x56004f=_0x1b2777;let {unitId:_0x4980d5,subUnitId:_0x5bf1db,shapeType:_0x1358b1,shapeId:_0x524b60,shapeName:_0x454e78,shapeData:_0x552638}=_0x3cf7a7;return _0x56a6eb[_0x56004f(0x10e)](K)[_0x56004f(0x12f)](_0x4980d5,_0x5bf1db,_0x1358b1,_0x524b60,_0x552638,_0x454e78),!0x0;}},J={'id':_0x1b2777(0xe9),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x195ddf,_0x2805a4)=>{const _0x2d8398=_0x1b2777;let {unitId:_0x24bb16,subUnitId:_0x182991,shapeId:_0x2547d1}=_0x2805a4;return _0x195ddf[_0x2d8398(0x10e)](K)['removeShape'](_0x24bb16,_0x182991,_0x2547d1),!0x0;}},Y={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x9a),'handler':(_0x5b9660,_0x468d47)=>{const _0x4c7424=_0x1b2777;var _0x147934,_0xfb3acb,_0x56fe63;let _0x3dcce5=_0x1fda72(_0x5b9660[_0x4c7424(0x10e)](_0x38fcfb),_0x468d47);if(!_0x3dcce5)return!0x1;let _0x1cf566=_0x5b9660[_0x4c7424(0x10e)](_0x2fc9c5),{unitId:_0x3269ef,subUnitId:_0xf103c9}=_0x3dcce5,_0x1e93c3=_0x1cf566[_0x4c7424(0x11a)](_0x3269ef,_0xf103c9);if(!_0x1e93c3)return!0x1;let _0x5845af=_0x5b9660[_0x4c7424(0x10e)](_0xa3208c),_0x32570c=_0x5b9660[_0x4c7424(0x10e)](_0x17d14d),_0x8c089a=_0x5b9660['get'](_0x51d1bf),_0x1d02e1=_0x5b9660[_0x4c7424(0x10e)](_0x3f2b28),_0x570449=_0x5b9660[_0x4c7424(0x10e)](K),{shapeType:_0x234e63,shapeData:_0x1d6c7a}=_0x468d47,_0x332c8b=_0x468d47[_0x4c7424(0x102)]||_0x3ef264(),_0x48ddc9={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b,'shapeName':(_0x147934=_0x468d47[_0x4c7424(0xc1)])==null?_0x35cb9a(_0x234e63,_0x570449[_0x4c7424(0xcc)](_0x3269ef,_0xf103c9)):_0x147934,'shapeType':_0x234e63,'shapeData':_0x1d6c7a},_0x44a293=_0x468d47['width']||0xc8,_0x49311b=_0x468d47[_0x4c7424(0x135)]||0xc8,_0x3124c0=0x0,_0x128d10=0x0,_0x3d28cf={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x38e155={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x468d47['position']){let {x:_0xefaab0,y:_0x3c6182}=_0x468d47[_0x4c7424(0xb5)];_0x3124c0=_0xefaab0,_0x128d10=_0x3c6182,_0x3d28cf=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0,_0x3c6182),_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0+_0x44a293,_0x3c6182+_0x49311b);}else{if(_0x468d47['range']){let {startRow:_0x513d6c,startColumn:_0x205e45}=_0x468d47[_0x4c7424(0xfb)];_0x3d28cf={'row':_0x513d6c,'rowOffset':0xa,'column':_0x205e45,'columnOffset':0xa};let _0x11d9cf=_0x1e93c3[_0x4c7424(0xea)](_0x513d6c,_0x205e45);_0x3124c0=_0x11d9cf[_0x4c7424(0xa7)]+0xa,_0x128d10=_0x11d9cf[_0x4c7424(0xf9)]+0xa,_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0x3124c0+_0x44a293,_0x128d10+_0x49311b);}}let _0x1ce045={'from':_0x3d28cf,'to':_0x38e155},_0x5d1e57={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'drawingId':_0x332c8b,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x1ce045,'transform':{'left':_0x3124c0,'top':_0x128d10,'width':_0x44a293,'height':_0x49311b},'data':{'shapeType':_0x234e63,'shapeData':_0x1d6c7a},'axisAlignSheetTransform':_0x1ce045,'allowTransform':!0x0};_0xc963bc(_0x234e63)&&(_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xf5)]=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['rotateEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['resizeEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xde)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xcd)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xbb)]=!0x1,_0x5d1e57['transform']['borderEnabled']=!0x1);let {undo:_0x40bd9b,redo:_0x22dfb0,objects:_0x11d2e5}=_0x1d02e1['getBatchAddOp']([_0x5d1e57]),_0x5427c6=_0x8c089a[_0x4c7424(0x10d)]({'id':_0xff1699['id'],'params':{'unitId':_0x3269ef,'drawings':[_0x5d1e57]}}),_0x239935=[...(_0xfb3acb=_0x5427c6[_0x4c7424(0xd5)])==null?[]:_0xfb3acb,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x22dfb0,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xd6)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6[_0x4c7424(0xd7)],{'id':q['id'],'params':_0x48ddc9}],_0x507e46=[{'id':J['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b}},...(_0x56fe63=_0x5427c6['preUndos'])==null?[]:_0x56fe63,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x40bd9b,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xaf)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6['undos']];return _0x16df04(_0x239935,_0x5845af)[_0x4c7424(0xb2)]?(_0x32570c[_0x4c7424(0x125)]({'unitID':_0x3269ef,'undoMutations':_0x507e46,'redoMutations':_0x239935}),!0x0):!0x1;}},X={'id':_0x1b2777(0xcf),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x2b7823,_0x561614)=>{const _0x352e89=_0x1b2777;let {unitId:_0x3d754f,subUnitId:_0x5e5a7a,shapeType:_0x47825f,shapeId:_0x18d440,shapeData:_0x3ad095}=_0x561614,_0x584b72=_0x2b7823['get'](K)[_0x352e89(0xb8)](_0x3d754f,_0x5e5a7a,_0x18d440);return _0x584b72&&(_0x47825f!==void 0x0&&_0x584b72[_0x352e89(0x105)](_0x47825f),_0x3ad095&&(_0x584b72==null||_0x584b72['setShapeData'](_0x3ad095,!0x0))),!0x0;}},ee={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xc8),'handler':(_0x3a27c9,_0x35b3bf)=>{const _0x3aebeb=_0x1b2777;var _0x462f99,_0x550383;let _0x453046=_0x1fda72(_0x3a27c9[_0x3aebeb(0x10e)](_0x38fcfb),_0x35b3bf);if(!_0x453046)return!0x1;let _0x4e9f99=_0x3a27c9[_0x3aebeb(0x10e)](_0x2fc9c5),{unitId:_0x5e19b3,subUnitId:_0x43fb46}=_0x453046,_0x2d656e=_0x4e9f99[_0x3aebeb(0x11a)](_0x5e19b3,_0x43fb46);if(!_0x2d656e)return!0x1;let _0x3cf08d=_0x3a27c9[_0x3aebeb(0x10e)](K),{shapeId:_0x39ffc1,shapeType:_0x238a33,shapeData:_0x5904b9,position:_0x31d818,width:_0x1e2a8a,height:_0x4d456f}=_0x35b3bf,_0x1a8e44=_0x3cf08d[_0x3aebeb(0xb8)](_0x5e19b3,_0x43fb46,_0x39ffc1);if(!_0x1a8e44)return!0x1;let _0x555443=_0x3a27c9[_0x3aebeb(0x10e)](_0xa3208c),_0x5e36d7=_0x3a27c9[_0x3aebeb(0x10e)](_0x17d14d),_0xed37da=_0x3a27c9[_0x3aebeb(0x10e)](_0x51d1bf),_0x226163=_0x3a27c9[_0x3aebeb(0x10e)](_0x3f2b28),_0x342e34={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeId':_0x39ffc1,'shapeType':_0x238a33,'shapeData':_0x5904b9},_0x4bfa7d=_0x1a8e44[_0x3aebeb(0x10b)](),_0x4096c8=_0x1a8e44['getShapeData'](),{x:_0x501798,y:_0x5758a1}=_0x31d818,_0x3dee2d={'from':_0x2d656e['getCellIndexAndOffsetByPosition'](_0x501798,_0x5758a1),'to':_0x2d656e[_0x3aebeb(0x124)](_0x501798+_0x1e2a8a,_0x5758a1+_0x4d456f)},_0x43079e={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'drawingId':_0x39ffc1,'drawingType':_0x4d3e69[_0x3aebeb(0x11e)],'sheetTransform':_0x3dee2d,'transform':{'left':_0x501798,'top':_0x5758a1,'width':_0x1e2a8a,'height':_0x4d456f},'data':{'shapeType':_0x238a33,'shapeData':_0x5904b9},'axisAlignSheetTransform':_0x3dee2d,'allowTransform':!0x0};_0xc963bc(_0x238a33)&&(_0x43079e['data'][_0x3aebeb(0xf5)]=!0x1,_0x43079e[_0x3aebeb(0xf2)][_0x3aebeb(0xcd)]=!0x1,_0x43079e[_0x3aebeb(0xf2)]['resizeEnabled']=!0x1,_0x43079e[_0x3aebeb(0xf2)]['borderEnabled']=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xcd)]=!0x1,_0x43079e['transform'][_0x3aebeb(0xbb)]=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xde)]=!0x1);let {undo:_0xf01f82,redo:_0x570e66,objects:_0x1e2eb2}=_0x226163[_0x3aebeb(0x99)]([_0x43079e]),_0x59ce19=_0xed37da['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x5e19b3,'drawings':[_0x43079e]}}),_0x15daf4=[...(_0x462f99=_0x59ce19[_0x3aebeb(0xd5)])==null?[]:_0x462f99,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0x570e66,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xd7)],{'id':X['id'],'params':_0x342e34}],_0x116dd2=[...(_0x550383=_0x59ce19[_0x3aebeb(0xe1)])==null?[]:_0x550383,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0xf01f82,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xce)],{'id':X['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeType':_0x4bfa7d,'shapeId':_0x39ffc1,'shapeData':_0x4096c8}}];return _0x16df04(_0x15daf4,_0x555443)[_0x3aebeb(0xb2)]?(_0x5e36d7[_0x3aebeb(0x125)]({'unitID':_0x5e19b3,'undoMutations':_0x116dd2,'redoMutations':_0x15daf4}),!0x0):!0x1;}},Z={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x129),'handler':(_0x48e061,_0xf599e8)=>{const _0x30e9c8=_0x1b2777;var _0x264938,_0x171074;let _0x34ba24=_0x1fda72(_0x48e061['get'](_0x38fcfb),_0xf599e8);if(!_0x34ba24)return!0x1;let _0x5bfbc9=_0x48e061[_0x30e9c8(0x10e)](_0x2fc9c5),{unitId:_0x2ca4fb,subUnitId:_0x52fe7e}=_0x34ba24,_0x5c370a=_0x5bfbc9[_0x30e9c8(0x115)](_0x2ca4fb,_0x52fe7e);if(!_0x5c370a)return!0x1;let _0xae6f32=_0x48e061[_0x30e9c8(0x10e)](_0x3f2b28),{shapeId:_0x3a8cd0,flipH:_0x1a0e57,flipV:_0x38f6a6}=_0xf599e8,_0x3c2534=_0xae6f32[_0x30e9c8(0x10a)]({'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0});if(!_0x3c2534)return!0x1;let _0x533831=_0x48e061[_0x30e9c8(0x10e)](K)['getShapeModel'](_0x2ca4fb,_0x52fe7e,_0x3a8cd0);if(!_0x533831)return!0x1;let _0x34beb9=_0x48e061[_0x30e9c8(0x10e)](_0xa3208c),_0x29869d=_0x48e061['get'](_0x17d14d),_0x239276=_0x48e061[_0x30e9c8(0x10e)](_0x51d1bf),_0x4d2a66={..._0x3c2534[_0x30e9c8(0xc6)]};_0x1a0e57!==void 0x0&&(_0x4d2a66[_0x30e9c8(0x10c)]=!_0x4d2a66[_0x30e9c8(0x10c)]),_0x38f6a6!==void 0x0&&(_0x4d2a66[_0x30e9c8(0xd0)]=!_0x4d2a66['flipY']);let _0x4f02a1=_0x2d6220(_0x4d2a66,_0x5c370a),_0x21b8ad=_0x45aabc(_0x4d2a66,_0x5c370a),_0x26c64a=_0x533831[_0x30e9c8(0x10b)](),_0xfdf682=_0x533831[_0x30e9c8(0xa2)](),_0x867b43={'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x4f02a1,'transform':_0x4d2a66,'data':{'shapeType':_0x26c64a,'shapeData':_0xfdf682},'axisAlignSheetTransform':_0x21b8ad,'allowTransform':!0x0},{undo:_0x2743e2,redo:_0x467de5,objects:_0x18e6c9}=_0xae6f32[_0x30e9c8(0x99)]([_0x867b43]),_0x286679=_0x239276[_0x30e9c8(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x2ca4fb,'drawings':[_0x867b43]}}),_0x4a4a7c=[...(_0x264938=_0x286679[_0x30e9c8(0xd5)])==null?[]:_0x264938,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x467de5,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679['redos']],_0x3d4f42=[...(_0x171074=_0x286679['preUndos'])==null?[]:_0x171074,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x2743e2,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679[_0x30e9c8(0xce)]];if(_0xc963bc(_0x26c64a)){let _0x32dd5e=_0x533831[_0x30e9c8(0xb4)]();if(_0x32dd5e){let _0x5a7b3a={..._0x32dd5e};_0x5a7b3a[_0x30e9c8(0xa0)]=void 0x0,_0x5a7b3a['to']=void 0x0,_0x4a4a7c[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x5a7b3a}}}),_0x3d4f42[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x32dd5e}}});}}return _0x16df04(_0x4a4a7c,_0x34beb9)['result']?(_0x29869d[_0x30e9c8(0x125)]({'unitID':_0x2ca4fb,'undoMutations':_0x3d4f42,'redoMutations':_0x4a4a7c}),!0x0):!0x1;}},Q={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xa1),'handler':(_0x4ee665,_0x1d2249)=>{const _0x24c5bf=_0x1b2777;var _0x3aa8c2,_0x26eec3;let _0x182c7d=_0x1fda72(_0x4ee665[_0x24c5bf(0x10e)](_0x38fcfb),_0x1d2249);if(!_0x182c7d)return!0x1;let _0x215e90=_0x4ee665[_0x24c5bf(0x10e)](_0x2fc9c5),{unitId:_0x167f6f,subUnitId:_0x3b9010}=_0x182c7d,_0x528dfd=_0x215e90[_0x24c5bf(0x115)](_0x167f6f,_0x3b9010);if(!_0x528dfd)return!0x1;let _0x4aceed=_0x4ee665[_0x24c5bf(0x10e)](_0x3f2b28),{shapeId:_0x3bf16c,rotate:_0x1d4fc6}=_0x1d2249,_0x3980aa=_0x4aceed[_0x24c5bf(0x10a)]({'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c});if(!_0x3980aa)return!0x1;let _0x4c497c=_0x4ee665[_0x24c5bf(0x10e)](K)[_0x24c5bf(0xb8)](_0x167f6f,_0x3b9010,_0x3bf16c);if(!_0x4c497c)return!0x1;let _0x22a473=_0x4ee665['get'](_0xa3208c),_0x21cfac=_0x4ee665[_0x24c5bf(0x10e)](_0x17d14d),_0x4bfe8f=_0x4ee665['get'](_0x51d1bf),_0x6c7996={..._0x3980aa[_0x24c5bf(0xc6)]};_0x1d4fc6!==void 0x0&&(_0x6c7996['angle']=(_0x6c7996[_0x24c5bf(0xe8)]||0x0)+_0x1d4fc6);let _0x45de82=_0x2d6220(_0x6c7996,_0x528dfd),_0x16888a=_0x45aabc(_0x6c7996,_0x528dfd),_0x384be5=_0x4c497c['getShapeType'](),_0x37868b=_0x4c497c['getShapeData'](),_0xa45a1c={'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c,'drawingType':_0x4d3e69[_0x24c5bf(0x11e)],'sheetTransform':_0x45de82,'transform':_0x6c7996,'data':{'shapeType':_0x384be5,'shapeData':_0x37868b},'axisAlignSheetTransform':_0x16888a,'allowTransform':!0x0},{undo:_0x2b7507,redo:_0x1cb603,objects:_0x1a9b5d}=_0x4aceed[_0x24c5bf(0x99)]([_0xa45a1c]),_0x489e65=_0x4bfe8f[_0x24c5bf(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x167f6f,'drawings':[_0xa45a1c]}}),_0x456693=[...(_0x3aa8c2=_0x489e65[_0x24c5bf(0xd5)])==null?[]:_0x3aa8c2,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x1cb603,'objects':_0x1a9b5d,'type':_0x534eeb[_0x24c5bf(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xd7)]],_0x46358c=[...(_0x26eec3=_0x489e65[_0x24c5bf(0xe1)])==null?[]:_0x26eec3,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x2b7507,'objects':_0x1a9b5d,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xce)]];return _0x16df04(_0x456693,_0x22a473)[_0x24c5bf(0xb2)]?(_0x21cfac[_0x24c5bf(0x125)]({'unitID':_0x167f6f,'undoMutations':_0x46358c,'redoMutations':_0x456693}),!0x0):!0x1;}},te={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3e0ca0,_0x5ac4b2)=>{const _0x2fbda7=_0x1b2777;var _0x42b59b;let _0x2a5e71=_0x1fda72(_0x3e0ca0['get'](_0x38fcfb),_0x5ac4b2);if(!_0x2a5e71)return!0x1;let {unitId:_0x3bf8a0,subUnitId:_0x467450}=_0x2a5e71,{shapeId:_0x17978c}=_0x5ac4b2,_0x1c2769=_0x3e0ca0[_0x2fbda7(0x10e)](K)[_0x2fbda7(0xb8)](_0x3bf8a0,_0x467450,_0x17978c);if(!_0x1c2769)return!0x1;let _0x16ec8b=_0x1c2769[_0x2fbda7(0x12b)](),_0x54a32a=(_0x42b59b=_0x16ec8b==null?void 0x0:_0x16ec8b['isHorizontal'])==null?!0x0:_0x42b59b,_0x5c4340=!_0x54a32a,_0x2758fa=_0x3e0ca0[_0x2fbda7(0x10e)](_0xa3208c),_0x1899f9=_0x3e0ca0[_0x2fbda7(0x10e)](_0x17d14d),_0x2deddc={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x5c4340}}},_0x82fec3={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x54a32a}}},_0x27e504=[{'id':X['id'],'params':_0x2deddc}],_0x16597c=[{'id':X['id'],'params':_0x82fec3}];return _0x16df04(_0x27e504,_0x2758fa)[_0x2fbda7(0xb2)]?(_0x1899f9['pushUndoRedo']({'unitID':_0x3bf8a0,'undoMutations':_0x16597c,'redoMutations':_0x27e504}),!0x0):!0x1;}},ne={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x128),'handler':(_0x5344ba,_0x246558)=>{const _0x30192c=_0x1b2777;var _0x3a3d48,_0x328601,_0x12121b,_0x4a321f;let _0x1c75d3=_0x1fda72(_0x5344ba[_0x30192c(0x10e)](_0x38fcfb),_0x246558);if(!_0x1c75d3)return!0x1;let _0x15709a=_0x5344ba[_0x30192c(0x10e)](_0x2fc9c5),{unitId:_0x3309bb,subUnitId:_0x1945e1}=_0x1c75d3,_0x18ee9f=_0x15709a[_0x30192c(0x115)](_0x3309bb,_0x1945e1);if(!_0x18ee9f)return!0x1;let _0x87fa3c=_0x5344ba[_0x30192c(0x10e)](_0x3f2b28),{connectorShapeId:_0x240910,width:_0x50fcd7,height:_0x9c1af2,left:_0x4198a0,top:_0x5043af,flipX:_0x22df10,flipY:_0x2d657b,rotation:_0xb858bd,oldAdjustValues:_0x43c30b,newAdjustValues:_0x21f304,oldLineType:_0xb66e6,newLineType:_0x5d3dad,oldRelation:_0x7132be,newRelation:_0x5fb073}=_0x246558,_0x2c4646=_0x87fa3c['getDrawingByParam']({'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910});if(!_0x2c4646)return!0x1;let _0x5591ee=_0x5344ba[_0x30192c(0x10e)](K)[_0x30192c(0xb8)](_0x3309bb,_0x1945e1,_0x240910);if(!_0x5591ee)return!0x1;let _0x521fa3=_0x5344ba[_0x30192c(0x10e)](_0xa3208c),_0x480f7f=_0x5344ba[_0x30192c(0x10e)](_0x17d14d),_0x5085c7=_0x5344ba['get'](_0x51d1bf),_0x4adcee={..._0x2c4646[_0x30192c(0xc6)],'width':_0x50fcd7,'height':_0x9c1af2,'left':_0x4198a0,'top':_0x5043af,'flipX':_0x22df10,'flipY':_0x2d657b,'angle':(_0x3a3d48=_0xb858bd==null?(_0x328601=_0x2c4646[_0x30192c(0xc6)])==null?void 0x0:_0x328601[_0x30192c(0xe8)]:_0xb858bd)==null?0x0:_0x3a3d48},_0x38e6ef=_0x2d6220(_0x4adcee,_0x18ee9f),_0x37787c=_0x45aabc(_0x4adcee,_0x18ee9f),_0x172127=_0x5591ee['getShapeType'](),_0x185478=_0x5591ee[_0x30192c(0xa2)](),_0x2a5b4d={'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x38e6ef,'transform':_0x4adcee,'data':{'shapeType':_0x5d3dad||_0xb66e6||_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x21f304||_0x43c30b||(_0x185478==null?void 0x0:_0x185478['adjustValues']),'relation':_0x5fb073||_0x7132be||(_0x185478==null?void 0x0:_0x185478['relation'])}},'axisAlignSheetTransform':_0x37787c,'allowTransform':!0x0},{undo:_0x266eb1,redo:_0x22cda4,objects:_0x2d79d6}=_0x87fa3c[_0x30192c(0x99)]([_0x2a5b4d]),_0xe78cdb=_0x5085c7['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x3309bb,'drawings':[_0x2a5b4d]}}),_0x55fed2=[...(_0x12121b=_0xe78cdb[_0x30192c(0xd5)])==null?[]:_0x12121b,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x22cda4,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb[_0x30192c(0xd7)],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x5d3dad,'shapeData':{'adjustValues':_0x21f304,'relation':_0x5fb073}}}],_0x15f412=[...(_0x4a321f=_0xe78cdb[_0x30192c(0xe1)])==null?[]:_0x4a321f,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x266eb1,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb['undos'],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x43c30b||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x11f)]),'relation':_0x7132be||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x13a)])}}}];return _0x16df04(_0x55fed2,_0x521fa3)[_0x30192c(0xb2)]?(_0x480f7f[_0x30192c(0x125)]({'unitID':_0x3309bb,'undoMutations':_0x15f412,'redoMutations':_0x55fed2}),!0x0):!0x1;}},re={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xe4),'handler':(_0x13a5e6,_0x50146b)=>{const _0x1fcd11=_0x1b2777;var _0x229e79,_0x2a2be8;let _0x213a4e=_0x1fda72(_0x13a5e6[_0x1fcd11(0x10e)](_0x38fcfb),_0x50146b);if(!_0x213a4e)return!0x1;let _0x2d5074=_0x13a5e6[_0x1fcd11(0x10e)](_0x2fc9c5),{unitId:_0x27196b,subUnitId:_0x3abcb8}=_0x213a4e,_0x467457=_0x2d5074['getSkeleton'](_0x27196b,_0x3abcb8);if(!_0x467457)return!0x1;let _0x43876a=_0x13a5e6[_0x1fcd11(0x10e)](_0x3f2b28),{shapeId:_0x4375dc,width:_0x280057,height:_0xeb5e0e,left:_0xf9503d,top:_0x41249b,flipX:_0x332bb6,flipY:_0x3b11c6,angle:_0x1f0a28,oldAdjustValues:_0x181092,newAdjustValues:_0x594e61,oldLineType:_0x5a8a01,newLineType:_0x2be886}=_0x50146b,_0x42f2f3=_0x43876a[_0x1fcd11(0x10a)]({'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc});if(!_0x42f2f3)return!0x1;let _0x42f827=_0x13a5e6[_0x1fcd11(0x10e)](K)[_0x1fcd11(0xb8)](_0x27196b,_0x3abcb8,_0x4375dc);if(!_0x42f827)return!0x1;let _0x2bbb79=_0x13a5e6[_0x1fcd11(0x10e)](_0xa3208c),_0x4aafee=_0x13a5e6[_0x1fcd11(0x10e)](_0x17d14d),_0x147444=_0x13a5e6[_0x1fcd11(0x10e)](_0x51d1bf),_0x4a8b68={..._0x42f2f3[_0x1fcd11(0xc6)],'width':_0x280057,'height':_0xeb5e0e,'left':_0xf9503d,'top':_0x41249b,'flipX':_0x332bb6,'flipY':_0x3b11c6,'angle':_0x1f0a28},_0xc544d3=_0x2d6220(_0x4a8b68,_0x467457),_0x199394=_0x45aabc(_0x4a8b68,_0x467457),_0x62abc3=_0x42f827[_0x1fcd11(0x10b)](),_0x12129d=_0x42f827['getShapeData'](),_0xd98f5d={'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc,'drawingType':_0x4d3e69[_0x1fcd11(0x11e)],'sheetTransform':_0xc544d3,'transform':_0x4a8b68,'data':{'shapeType':_0x2be886||_0x5a8a01||_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x594e61||_0x181092||(_0x12129d==null?void 0x0:_0x12129d[_0x1fcd11(0x11f)])}},'axisAlignSheetTransform':_0x199394,'allowTransform':!0x0},{undo:_0x2d42cc,redo:_0x394950,objects:_0x37adc1}=_0x43876a[_0x1fcd11(0x99)]([_0xd98f5d]),_0x552d28=_0x147444[_0x1fcd11(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x27196b,'drawings':[_0xd98f5d]}}),_0x2557fe=[...(_0x229e79=_0x552d28['preRedos'])==null?[]:_0x229e79,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x394950,'objects':_0x37adc1,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xd7)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x2be886,'shapeData':{'adjustValues':_0x594e61}}}],_0x2a9c33=[...(_0x2a2be8=_0x552d28[_0x1fcd11(0xe1)])==null?[]:_0x2a2be8,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x2d42cc,'objects':_0x37adc1,'type':_0x534eeb[_0x1fcd11(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xce)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x181092||(_0x12129d==null?void 0x0:_0x12129d['adjustValues'])}}}];return _0x16df04(_0x2557fe,_0x2bbb79)[_0x1fcd11(0xb2)]?(_0x4aafee[_0x1fcd11(0x125)]({'unitID':_0x27196b,'undoMutations':_0x2a9c33,'redoMutations':_0x2557fe}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x20977a,_0x3973ef)=>{const _0x401cb6=_0x1b2777;let {unitId:_0x2c9ef0,subUnitId:_0x434f3f,shapeType:_0x48ff2c,shapeId:_0x42bbe7,shapeData:_0x5d9185}=_0x3973ef,_0x155f2e=_0x20977a['get'](K)[_0x401cb6(0xb8)](_0x2c9ef0,_0x434f3f,_0x42bbe7);return _0x155f2e&&(_0x155f2e[_0x401cb6(0x105)](_0x48ff2c),_0x5d9185&&(_0x155f2e==null||_0x155f2e[_0x401cb6(0x11d)](_0x5d9185))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xc4)],'handler':(_0x47c15e,_0x16a230)=>{const _0x3efacb=_0x1b2777;if(!_0x16a230)return!0x1;let _0xd51bea=_0x47c15e['get'](_0xa3208c),_0x5f19ec=_0x47c15e['get'](K),_0x3b4f0a=_0x47c15e['get'](_0x17d14d),_0x16a1a4=[],_0x5d5bc9=[],{unitId:_0x1e8b93,subUnitId:_0x31a359,shapeId:_0xddb8de,shapeType:_0x544bbd,shapeData:_0x39eb48}=_0x16a230,_0x34e07b=_0x5f19ec[_0x3efacb(0xb8)](_0x1e8b93,_0x31a359,_0xddb8de);if(_0x34e07b){let _0x41c422=_0x34e07b[_0x3efacb(0x10b)](),_0x22a1d3=Object[_0x3efacb(0xc9)]({},_0x34e07b[_0x3efacb(0xa2)]()),_0x418a5b={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x544bbd,'shapeData':_0x39eb48},_0x4d6efa={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x41c422,'shapeData':_0x22a1d3};return _0x16a1a4['push']({'id':$['id'],'params':_0x418a5b}),_0x5d5bc9['push']({'id':$['id'],'params':_0x4d6efa}),_0x16a1a4['every'](_0x1713f9=>_0xd51bea[_0x3efacb(0x106)](_0x1713f9['id'],_0x1713f9[_0x3efacb(0xf6)]))&&_0x3b4f0a[_0x3efacb(0x125)]({'unitID':_0x1e8b93,'redoMutations':[..._0x16a1a4],'undoMutations':[..._0x5d5bc9]}),!0x0;}return!0x1;}};var ae=_0x1b2777(0x121),oe=_0x1b2777(0xab);const se={};let ce=class extends _0x543ffa{constructor(_0x511283,_0x5c10d6,_0x3489a2,_0x404e4b,_0x4fff45){const _0x122cf4=_0x1b2777;super(),this[_0x122cf4(0xd3)]=_0x511283,this['_sheetInterceptorService']=_0x5c10d6,this[_0x122cf4(0x107)]=_0x3489a2,this[_0x122cf4(0x12e)]=_0x404e4b,this[_0x122cf4(0xa6)]=_0x4fff45,this[_0x122cf4(0x136)](),this[_0x122cf4(0xd9)]();}[_0x1b2777(0x136)](){const _0x3e760e=_0x1b2777;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x2c8b59=>this[_0x3e760e(0xae)](this['_commandService'][_0x3e760e(0xbc)](_0x2c8b59)));}[_0x1b2777(0xd9)](){const _0x3a0b28=_0x1b2777;this['disposeWithMe'](this[_0x3a0b28(0xa8)][_0x3a0b28(0x120)]({'getMutations':_0x1cd38b=>{const _0x515113=_0x3a0b28;if(_0x1cd38b['id']===_0x36289e['id']){let {drawings:_0x345653}=_0x1cd38b[_0x515113(0xf6)],_0x2bf523=_0x345653[_0x515113(0xc7)](_0x38638e=>_0x38638e[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x2bf523[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d6cf5=[],_0x2571e1=[];return _0x2bf523[_0x515113(0xa4)](_0x2a908d=>{const _0x30770b=_0x515113;let {unitId:_0x4cb35d,subUnitId:_0x23ad55,drawingId:_0x229661}=_0x2a908d,_0x1f5098=this['_sheetsShapeService'][_0x30770b(0xb8)](_0x4cb35d,_0x23ad55,_0x229661);if(!_0x1f5098)throw TypeError(_0x30770b(0xd4)+_0x1f5098);_0x4d6cf5['push']({'id':J['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661}}),_0x2571e1[_0x30770b(0xb7)]({'id':q['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661,'shapeType':_0x1f5098[_0x30770b(0x10b)](),'shapeData':_0x1f5098[_0x30770b(0xa2)]()}});let _0x10dd64=this[_0x30770b(0x12e)]['getBasicShapeRelation'](_0x4cb35d,_0x23ad55,_0x229661);if(_0x10dd64)for(let _0x373799 of _0x10dd64){let _0x464049=_0x373799[_0x30770b(0x12d)],_0x49a385=_0x373799[_0x30770b(0xbd)],_0x339cb0=_0x49a385?{'from':void 0x0}:{'to':void 0x0},_0x25a640=_0x49a385?{'from':{'shapeId':_0x373799['shapeId'],'cxnIndex':_0x373799[_0x30770b(0x116)]}}:{'to':{'shapeId':_0x373799[_0x30770b(0x102)],'cxnIndex':_0x373799[_0x30770b(0x116)]}};_0x4d6cf5['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x339cb0}}}),_0x2571e1['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x25a640}}});}}),{'preRedos':_0x4d6cf5,'redos':[],'preUndos':[],'undos':_0x2571e1};}if(_0x1cd38b['id']===_0x6aec62['id']){let {drawings:_0x52c0a6}=_0x1cd38b[_0x515113(0xf6)],_0x220de4=_0x52c0a6[_0x515113(0xc7)](_0x2a7185=>_0x2a7185[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x220de4[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3866ee=[],_0x19db35=[];for(let _0x30aad0 of _0x220de4){let {unitId:_0x37823b,subUnitId:_0x1bbdc8,drawingId:_0x360609,transform:_0x139aa8}=_0x30aad0;if(!_0x37823b||!_0x1bbdc8||!_0x360609||!_0x139aa8)continue;let _0x25a2a0=this[_0x515113(0x12e)][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x360609);if(!_0x25a2a0)throw TypeError(_0x515113(0xd4)+_0x25a2a0);if(_0xc963bc(_0x25a2a0[_0x515113(0x10b)]())){let _0x5e00fe=this[_0x515113(0x12e)][_0x515113(0xff)](_0x37823b,_0x1bbdc8,_0x360609);_0x5e00fe&&(_0x3866ee[_0x515113(0xb7)]({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x19db35['push']({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':_0x5e00fe}}}));}else{let _0x137bdf=this['_sheetsShapeService'][_0x515113(0x119)](_0x37823b,_0x1bbdc8,_0x360609);if(_0x137bdf&&_0x137bdf[_0x515113(0xec)]>0x0)for(let _0x106617 of _0x137bdf){let _0x5af678=_0x106617[_0x515113(0x12d)],_0x251609=_0x106617[_0x515113(0xbd)],_0x1f995c=this['_sheetsShapeService'][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x5af678);if(!_0x1f995c)continue;let _0x258b59=_0x1f995c[_0x515113(0xda)](),_0x24d385=_0x1f995c[_0x515113(0x138)]();_0x258b59&&_0x24d385?this[_0x515113(0xcb)](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x258b59,_0x24d385,_0x3866ee,_0x19db35,_0x360609,_0x139aa8):this['_addLineFollowShapeUpdates'](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x251609?_0x258b59:_0x24d385,_0x251609,_0x3866ee,_0x19db35,_0x360609,_0x139aa8);}}}return{'preRedos':[],'redos':_0x3866ee,'preUndos':_0x19db35,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1b2777(0x111)](_0x110c37,_0x36f00f,_0x33e67b,_0x4c63e3,_0x3832f3){const _0x1ad18b=_0x1b2777;if(!_0x36f00f||!_0x33e67b)return null;let {shapeId:_0x5453af,cxnIndex:_0x3d58b1}=_0x110c37,_0x3e50af=this[_0x1ad18b(0x12e)][_0x1ad18b(0xb8)](_0x36f00f,_0x33e67b,_0x5453af);if(!_0x3e50af)return null;let _0x32f17a=this['_drawingManagerService'][_0x1ad18b(0x10a)]({'unitId':_0x36f00f,'subUnitId':_0x33e67b,'drawingId':_0x5453af});if(!(_0x32f17a!=null&&_0x32f17a['transform']))return null;let {left:_0x3442a=0x0,top:_0x427335=0x0,width:_0x59faab=0x0,height:_0x408d6e=0x0,flipX:_0x53e966=!0x1,flipY:_0x476111=!0x1,angle:_0x54f57a}=_0x32f17a[_0x1ad18b(0xc6)];if(_0x3832f3&&_0x4c63e3===_0x5453af){var _0x1f0cd2,_0x451a25,_0x40ce47,_0x5ac989,_0x23140a,_0x17fb87,_0x466ad1;_0x3442a=(_0x1f0cd2=_0x3832f3['left'])==null?_0x3442a:_0x1f0cd2,_0x427335=(_0x451a25=_0x3832f3[_0x1ad18b(0xd8)])==null?_0x427335:_0x451a25,_0x59faab=(_0x40ce47=_0x3832f3[_0x1ad18b(0x104)])==null?_0x59faab:_0x40ce47,_0x408d6e=(_0x5ac989=_0x3832f3[_0x1ad18b(0x135)])==null?_0x408d6e:_0x5ac989,_0x53e966=(_0x23140a=_0x3832f3[_0x1ad18b(0x10c)])==null?_0x53e966:_0x23140a,_0x476111=(_0x17fb87=_0x3832f3[_0x1ad18b(0xd0)])==null?_0x476111:_0x17fb87,_0x54f57a=(_0x466ad1=_0x3832f3['angle'])==null?_0x54f57a:_0x466ad1;}_0x3e50af[_0x1ad18b(0xe5)]({'width':_0x59faab,'height':_0x408d6e});let _0x4b9367=_0x3e50af['getConnectionSiteList']()[_0x1ad18b(0xd2)](_0x5f5702=>_0x5f5702['index']===_0x3d58b1);if(!_0x4b9367)return null;let _0x3d1d0c=_0x53e966?_0x59faab-_0x4b9367['x']:_0x4b9367['x'],_0x3f1d56=_0x476111?_0x408d6e-_0x4b9367['y']:_0x4b9367['y'];if(_0x54f57a!==0x0&&_0x54f57a!=null){let _0x276b5e=_0x54f57a*Math['PI']/0xb4,_0x26b722=Math[_0x1ad18b(0x9e)](_0x276b5e),_0x2e3305=Math[_0x1ad18b(0x109)](_0x276b5e),_0x270bd4=_0x59faab/0x2,_0x1b6710=_0x408d6e/0x2,_0x3af8da=_0x3d1d0c-_0x270bd4,_0x2faf0d=_0x3f1d56-_0x1b6710;_0x3d1d0c=_0x270bd4+_0x3af8da*_0x26b722-_0x2faf0d*_0x2e3305,_0x3f1d56=_0x1b6710+_0x3af8da*_0x2e3305+_0x2faf0d*_0x26b722;}_0x3d1d0c+=_0x3442a,_0x3f1d56+=_0x427335;let _0x3c4914=_0x4b9367['ang']/0xea60;_0x53e966&&(_0x3c4914=0xb4-_0x3c4914),_0x476111&&(_0x3c4914=-_0x3c4914),_0x3c4914+=_0x54f57a||0x0,_0x3c4914=(_0x3c4914%0x168+0x168)%0x168;let _0x4df82a=_0x40b288({'left':_0x3442a,'top':_0x427335,'width':_0x59faab,'height':_0x408d6e},_0x54f57a||0x0);return{'point':{'x':_0x3d1d0c,'y':_0x3f1d56},'angle':_0x3c4914,'bounds':_0x4df82a};}[_0x1b2777(0xcb)](_0x12a202,_0x198e92,_0x586d87,_0x38579f,_0x49141c,_0x5c8c89,_0x185dd1,_0x15e697,_0x5b8a24,_0xd74126){const _0x5edce5=_0x1b2777;let _0x594a81=this[_0x5edce5(0x107)][_0x5edce5(0x115)](_0x12a202,_0x198e92);if(!_0x594a81)return;let _0x4612a5=_0x38579f[_0x5edce5(0xb4)](),_0x4f7d3c=_0x38579f[_0x5edce5(0xfe)](),_0x1f8659={},_0x365c5e={};_0x4f7d3c[_0x5edce5(0xa4)](_0x2ad86d=>{const _0x4ef58b=_0x5edce5;let _0xe1cb2e=_0x38579f[_0x4ef58b(0xd1)](_0x2ad86d);_0x365c5e[_0x2ad86d]=_0xe1cb2e==null?0x0:_0xe1cb2e;});let _0x5aa757=this[_0x5edce5(0x111)](_0x49141c,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126),_0x297962=this['_getConnectPointInfo'](_0x5c8c89,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126);if(_0x5aa757&&_0x297962){let _0x384a55=_0x38579f[_0x5edce5(0x10b)](),_0x289467=_0x4cc214(_0x5aa757,_0x297962,_0x384a55),_0x4059cf=_0x384a55;if(_0x289467){let _0xe5e3af=_0xc69524(_0x289467,_0x38579f[_0x5edce5(0x10b)]()),_0x3c0888=this[_0x5edce5(0xa6)][_0x5edce5(0x127)](_0x12a202,_0x198e92);if(_0x3c0888&&_0x3c0888[_0x586d87]){let _0x65ccf6=_0x3c0888[_0x586d87];_0x4059cf=_0xe5e3af[_0x5edce5(0xdb)];for(let [_0x3a9e12,_0x5b5301]of Object[_0x5edce5(0xc3)](_0xe5e3af[_0x5edce5(0x11f)]))_0x1f8659[_0x3a9e12]=_0x5b5301;let _0x283c23={..._0x65ccf6[_0x5edce5(0xc6)],'width':_0xe5e3af['worldRect'][_0x5edce5(0x104)],'height':_0xe5e3af['worldRect'][_0x5edce5(0x135)],'left':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0x132)],'top':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0xd8)],'flipX':_0xe5e3af['worldRect'][_0x5edce5(0x10c)],'flipY':_0xe5e3af['worldRect'][_0x5edce5(0xd0)],'angle':_0xe5e3af[_0x5edce5(0xe2)]},_0x39a2c0=_0x2d6220(_0x283c23,_0x594a81),_0x5bde46=_0x45aabc(_0x283c23,_0x594a81),_0x296621={'unitId':_0x12a202,'subUnitId':_0x198e92,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'drawingId':_0x586d87,'transform':_0x283c23,'sheetTransform':_0x39a2c0,'axisAlignSheetTransform':_0x5bde46},{unitId:_0x4c9316,subUnitId:_0x3d4148,undo:_0x2b9d07,redo:_0x112041,objects:_0x292cfa}=this[_0x5edce5(0xa6)]['getBatchUpdateOp']([_0x296621]);_0x185dd1[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x112041,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}}),_0x15e697[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x2b9d07,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}});}_0x38579f[_0x5edce5(0xf4)]();}_0x185dd1[_0x5edce5(0xb7)]({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x4059cf,'shapeData':{'adjustValues':_0x1f8659,'relation':_0x4612a5}}}),_0x15e697['push']({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x384a55,'shapeData':{'adjustValues':_0x365c5e,'relation':_0x4612a5}}});}}[_0x1b2777(0x137)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x4c6ed9,_0x4452aa,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da){const _0x2d7ba0=_0x1b2777;var _0x3f10a4;if(!_0x4c6ed9)return;let _0x1ceda0=this['_sheetSkeletonService'][_0x2d7ba0(0x115)](_0x3aa200,_0x587d7e);if(!_0x1ceda0)return;let _0x325687=(_0x3f10a4=this['_drawingManagerService'][_0x2d7ba0(0x10a)]({'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingId':_0x538ad8}))==null?void 0x0:_0x3f10a4[_0x2d7ba0(0xc6)];if(!_0x325687)return;let _0x3340b6=_0x325687[_0x2d7ba0(0x132)]!==_0x5340da['left']||_0x325687[_0x2d7ba0(0xd8)]!==_0x5340da['top'],_0x10dddc=_0x325687[_0x2d7ba0(0x104)]!==_0x5340da[_0x2d7ba0(0x104)]||_0x325687[_0x2d7ba0(0x135)]!==_0x5340da[_0x2d7ba0(0x135)],_0x19573b=_0x325687[_0x2d7ba0(0x10c)]!==_0x5340da[_0x2d7ba0(0x10c)]||_0x325687['flipY']!==_0x5340da[_0x2d7ba0(0xd0)],_0x1b856e=_0x325687[_0x2d7ba0(0xe8)]!==_0x5340da['angle'];if(_0x3340b6&&!_0x10dddc&&!_0x19573b&&!_0x1b856e){var _0x493f59,_0x2306d6,_0x3b96e9,_0x49ce6d;let _0x2d847c=((_0x493f59=_0x5340da[_0x2d7ba0(0x132)])==null?0x0:_0x493f59)-((_0x2306d6=_0x325687[_0x2d7ba0(0x132)])==null?0x0:_0x2306d6),_0x401d65=((_0x3b96e9=_0x5340da[_0x2d7ba0(0xd8)])==null?0x0:_0x3b96e9)-((_0x49ce6d=_0x325687[_0x2d7ba0(0xd8)])==null?0x0:_0x49ce6d),_0xcf994e=this[_0x2d7ba0(0xa6)][_0x2d7ba0(0x127)](_0x3aa200,_0x587d7e);if(_0xcf994e&&_0xcf994e[_0x4144f7]){var _0x38b077,_0x4e0711,_0x556193,_0x2a9f3a;let _0x4c4b43=_0xcf994e[_0x4144f7],_0x5e7afc={..._0x4c4b43['transform'],'left':((_0x38b077=(_0x4e0711=_0x4c4b43['transform'])==null?void 0x0:_0x4e0711['left'])==null?0x0:_0x38b077)+_0x2d847c,'top':((_0x556193=(_0x2a9f3a=_0x4c4b43[_0x2d7ba0(0xc6)])==null?void 0x0:_0x2a9f3a['top'])==null?0x0:_0x556193)+_0x401d65},_0x2ea5f8=_0x2d6220(_0x5e7afc,_0x1ceda0),_0x48c653=_0x45aabc(_0x5e7afc,_0x1ceda0),_0x285aa0={'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingType':_0x4d3e69[_0x2d7ba0(0x11e)],'drawingId':_0x4144f7,'transform':_0x5e7afc,'sheetTransform':_0x2ea5f8,'axisAlignSheetTransform':_0x48c653},{unitId:_0x30c7b3,subUnitId:_0x948afe,undo:_0x17153e,redo:_0x20264b,objects:_0x59dbf6}=this['_drawingManagerService'][_0x2d7ba0(0x99)]([_0x285aa0]);_0x34c43b['push']({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x20264b,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}}),_0x5232bf[_0x2d7ba0(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x17153e,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}});}}else{let _0x2b0d6f=_0x1c0dff[_0x2d7ba0(0xda)](),_0x493218=_0x1c0dff[_0x2d7ba0(0x138)]();this[_0x2d7ba0(0xcb)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x2b0d6f,_0x493218,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da);}}};ce=G([W(0x0,_0xa3208c),W(0x1,_0x19216a(_0x51d1bf)),W(0x2,_0x19216a(_0x2fc9c5)),W(0x3,_0x19216a(K)),W(0x4,_0x19216a(_0x5b1dc7))],ce);let le=class extends _0x11a17d{constructor(_0x139a9b=se,_0x52b822,_0x18f9fb,_0xffa4e0){const _0x49c0ef=_0x1b2777;super(),this['_config']=_0x139a9b,this[_0x49c0ef(0x133)]=_0x52b822,this[_0x49c0ef(0xd3)]=_0x18f9fb,this['_configService']=_0xffa4e0;let {..._0x37d887}=_0x14640d({},se,this['_config']);this[_0x49c0ef(0xf0)][_0x49c0ef(0xe6)]('sheets-shape.config',_0x37d887);}[_0x1b2777(0xca)](){const _0x5e6648=_0x1b2777;let _0x11dc81=this[_0x5e6648(0x133)];[[U],[K],[ce]][_0x5e6648(0xa4)](_0x110116=>_0x11dc81['add'](_0x110116)),_0x29f0fc(_0x11dc81,[[K],[ce]]);}};H(le,_0x1b2777(0xfd),_0x37476a[_0x1b2777(0x11b)]),H(le,'pluginName',_0x1b2777(0xfa)),H(le,_0x1b2777(0x131),ae),H(le,_0x1b2777(0xac),oe),le=G([_0x2c7cf6(_0x17d981),W(0x1,_0x19216a(_0x180637)),W(0x2,_0xa3208c),W(0x3,_0x1802b3)],le);function _0x5220(){const _0x4fb7a2=['removeShape','getShapeRelation','position','_ensureShapeModelManager','push','getShapeModel','3iJNeah','set','resizeEnabled','registerCommand','isFrom','call','getId','204uZQgjg','shapeName','addShape','entries','COMMAND','worldRect','transform','filter','sheet.command.set-shape-drawing-data','assign','onStarting','_addLineRerouteUpdates','getShapeDisplayNames','rotateEnabled','undos','sheet.mutation.update-shape-data','flipY','getAdjustValueByName','find','_commandService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preRedos','INSERT','redos','top','_initCommandInterceptor','getStartConnectInfo','lineType','hasShape','string','borderEnabled','values','isLineShape','preUndos','rotation','_linesIds','sheet.command.update-line-shape-resize','updateContext','setConfig','UPDATE','angle','sheet.mutation.remove-shape','getCellWithCoordByIndex','toJSON','length','fromJSON','getOwnPropertyDescriptor','_disposed','_configService','shapeData','data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeLinePoints','fill','params','11845287OGCLlc','4756316sfbUym','startY','SHEET_SHAPE_PLUGIN','range','decorate','type','getAdjustNames','getLineShapeRelation','5694540zqocwC','_initSnapshot','shapeId','562FpraEj','width','setShapeType','syncExecuteCommand','_sheetSkeletonService','drawingType','sin','getDrawingByParam','getShapeType','flipX','onCommandExecute','get','delete','10nAzoIZ','_getConnectPointInfo','_resourcesManagerService','_shapes','clear','getSkeleton','cxnIndex','getName','object','getBasicShapeRelation','ensureSkeleton','UNIVER_SHEET','constructor','setShapeData','DRAWING_SHAPE','adjustValues','interceptCommand','@univerjs-pro/sheets-shape','dispose','5358WGvjLE','getCellIndexAndOffsetByPosition','pushUndoRedo','getShapeTypeById','getDrawingData','sheet.command.update-connector-relation','sheet.command.toggle-shape-flip','8023112UAnvuW','getShapeTextData','getShapeDataById','lineShapeId','_sheetsShapeService','insertShape','map','packageName','left','_injector','has','height','_initCommands','_addLineFollowShapeUpdates','getEndConnectInfo','_deserializeShapeForUnit','relation','function','getBatchUpdateOp','sheet.command.insert-shape','3017ItWVgg','47671305XTFKFT','_serializeShapeForUnit','cos','keys','from','sheet.command.set-shape-rotate','getShapeData','prototype','forEach','parse','_drawingManagerService','startX','_sheetInterceptorService','_shapeModelManagerMap','registerPluginResource','1.0.0-alpha.1','version','symbol','disposeWithMe','REMOVE','defineProperty','MUTATION','result'];_0x5220=function(){return _0x4fb7a2;};return _0x5220();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
@@ -3,6 +3,7 @@ import type { ICommand, IRange } from '@univerjs/core';
3
3
  import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeCommandParams extends ISheetCommandSharedParams {
5
5
  shapeType: ShapeTypeEnum;
6
+ shapeName?: string;
6
7
  range?: IRange;
7
8
  position?: {
8
9
  x: number;
@@ -3,6 +3,7 @@ import type { IMutation } from '@univerjs/core';
3
3
  import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
+ shapeName?: string;
6
7
  shapeType: ShapeTypeEnum;
7
8
  shapeData?: IShapeData;
8
9
  }
@@ -167,6 +167,36 @@ export declare class FShape {
167
167
  * ```
168
168
  */
169
169
  setShapeType(shapeType: ShapeTypeEnum): this;
170
+ /**
171
+ * Sets the full shape data for the shape.
172
+ * @param {IShapeData} shapeData The shape data containing type, fill, stroke, text, geometry, adjustment values, and connector data.
173
+ * @returns {FShape} this builder, for chaining.
174
+ *
175
+ * @example
176
+ * ```ts
177
+ * const fWorkbook = univerAPI.getActiveWorkbook();
178
+ * const fWorksheet = fWorkbook.getSheetByName('Sheet1');
179
+ * if (!fWorksheet) return;
180
+ *
181
+ * const shapeInfo = fWorksheet.newShape()
182
+ * .setShapeData({
183
+ * shapeType: univerAPI.Enum.ShapeTypeEnum.Rect,
184
+ * fill: {
185
+ * fillType: univerAPI.Enum.ShapeFillEnum.SolidFill,
186
+ * color: '#ff0000',
187
+ * },
188
+ * shapeText: {
189
+ * isRichText: false,
190
+ * isHorizontal: true,
191
+ * text: 'Sheet shape',
192
+ * },
193
+ * })
194
+ * .setPosition(1, 1, 0, 0)
195
+ * .build();
196
+ * await fWorksheet.insertShape(shapeInfo);
197
+ * ```
198
+ */
199
+ setShapeData(shapeData: IShapeData): this;
170
200
  /**
171
201
  * Sets the solid fill style for the shape.
172
202
  * @param {string} color The fill color, e.g., '#ff0000'. If not specified, it will default to '#156082'.If the opacity is set both, the color string should be hex string or rgb string, the color like 'red' will not work.
@@ -191,7 +221,7 @@ export declare class FShape {
191
221
  /**
192
222
  * Sets the gradient fill style for the shape.
193
223
  * @param {ShapeGradientTypeEnum} shapeGradientType The gradient type. Which can be found from `univerAPI.Enum.ShapeGradientTypeEnum`.
194
- * @param {Array<{ position: number; color: string }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1) and a `color` (e.g., '#ff0000').
224
+ * @param {Array<{ position: number; color: string; opacity?: number }>} colorStops An array of gradient color stops. Each stop has a `position` (0 to 1), a `color` (e.g., '#ff0000'), and optional `opacity` (0 to 1).
195
225
  * @param {number} [gradientAngle] The angle of the gradient in degrees (e.g., 0 for left-to-right, 90 for top-to-bottom).
196
226
  * @returns {FShape} this builder, for chaining.
197
227
  *
@@ -220,6 +250,7 @@ export declare class FShape {
220
250
  setShapeGradientFill(shapeGradientType: ShapeGradientTypeEnum, colorStops: Array<{
221
251
  position: number;
222
252
  color: string;
253
+ opacity?: number;
223
254
  }>, gradientAngle?: number): this;
224
255
  /**
225
256
  * Removes the fill from the shape, making it transparent.
@@ -1,15 +1,27 @@
1
- export { type IInsertSheetsShapeCommandParams, InsertShapeCommand } from './commands/command/add-shape.command';
2
- export { type ISetShapeDrawingDataCommandParams, SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
3
- export { type IUpdateSheetsShapeFlipCommandParams, ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
4
- export { type IUpdateSheetsShapeRotateCommandParams, SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
5
- export { type ISetSheetsShapeTextVerticalToggleCommandParams, SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
6
- export { type IUpdateConnectorRelationCommandParams, UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
7
- export { type IUpdateSheetsShapeResizeCommandParams, UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
8
- export { type IUpdateSheetsShapeTypeCommandParams, UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
9
- export { type IInsertSheetsShapeMutationParams, InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
10
- export { type IRemoveSheetsShapeMutationParams, RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
11
- export { type IUpdateSheetsShapeDataMutationParams, UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
12
- export { type IUpdateSheetsShapeTypeMutationParams, UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
1
+ export { InsertShapeCommand } from './commands/command/add-shape.command';
2
+ export type { IInsertSheetsShapeCommandParams } from './commands/command/add-shape.command';
3
+ export { SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
4
+ export type { ISetShapeDrawingDataCommandParams } from './commands/command/set-shape-drawing-data.command';
5
+ export { ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
6
+ export type { IUpdateSheetsShapeFlipCommandParams } from './commands/command/set-shape-flip.command';
7
+ export { SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
8
+ export type { IUpdateSheetsShapeRotateCommandParams } from './commands/command/set-shape-rotate.command';
9
+ export { SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
10
+ export type { ISetSheetsShapeTextVerticalToggleCommandParams, } from './commands/command/set-shape-text-vertical-toggle.command';
11
+ export { UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
12
+ export type { IUpdateConnectorRelationCommandParams } from './commands/command/update-connector-relation.command';
13
+ export { UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
14
+ export type { IUpdateSheetsShapeResizeCommandParams } from './commands/command/update-line-shape-resize.command';
15
+ export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
16
+ export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
17
+ export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
18
+ export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
19
+ export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
20
+ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remove-shape.mutation';
21
+ export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
22
+ export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
23
+ export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
24
+ export type { IUpdateSheetsShapeTypeMutationParams } from './commands/mutation/update-shape-type.mutation';
13
25
  export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH } from './common/const';
14
26
  export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
15
27
  export { UniverSheetsShapePlugin } from './plugin';
@@ -10,7 +10,7 @@ export declare class SheetShapeModelManager extends Disposable {
10
10
  _linesIds: Set<string>;
11
11
  _groupIds: Set<string>;
12
12
  constructor();
13
- addShape(shapeType: ShapeTypeEnum, id: string, shapeData?: IShapeData): ShapeModel;
13
+ addShape(shapeType: ShapeTypeEnum, id: string, shapeData?: IShapeData, name?: string): ShapeModel;
14
14
  /**
15
15
  * Get all shape relations associated with a basic shape
16
16
  * @param {string} id The basic shape ID
@@ -25,6 +25,7 @@ export declare class SheetShapeModelManager extends Disposable {
25
25
  getLineShapeRelation(lineShapeId: string): IShapeRelation | undefined;
26
26
  getShapeType(id: string): ShapeTypeEnum | undefined;
27
27
  hasShape(id: string): boolean;
28
+ getShapeDisplayNames(): string[];
28
29
  removeShape(id: string): void;
29
30
  toJSON(): IShapeJSONData[];
30
31
  fromJSON(data: IShapeJSONData[]): void;
@@ -1,4 +1,4 @@
1
- import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsShapeConfig } from './config/config';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverSheetsShapePlugin extends Plugin {
4
4
  private readonly _config;
@@ -9,15 +9,16 @@ export declare class SheetsShapeService extends Disposable {
9
9
  private _shapeModelManagerMap;
10
10
  constructor(_resourcesManagerService: IResourceManagerService);
11
11
  private _ensureShapeModelManager;
12
- insertShape(unitId: string, subUnitId: string, shapeType: ShapeTypeEnum, shapeId: string, shapeData?: IShapeData): void;
12
+ insertShape(unitId: string, subUnitId: string, shapeType: ShapeTypeEnum, shapeId: string, shapeData?: IShapeData, name?: string): void;
13
13
  removeShape(unitId: string, subUnitId: string, shapeId: string): void;
14
14
  getBasicShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
15
15
  getShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
16
16
  hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
17
17
  getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
18
18
  getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
19
+ getShapeDisplayNames(unitId: string, subUnitId: string): string[];
19
20
  getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
20
- getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
21
+ getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../models/shape-manager").IShapeRelationItemWithLineId[];
21
22
  getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
22
23
  setShapeType(): void;
23
24
  private _serializeShapeForUnit;