@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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/command/add-shape.command.d.ts +1 -0
- package/lib/types/commands/mutation/add-shape.mutation.d.ts +1 -0
- package/lib/types/facade/f-shape.d.ts +32 -1
- package/lib/types/index.d.ts +24 -12
- package/lib/types/{model → models}/shape-manager.d.ts +2 -1
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/sheet-shape-services.d.ts +3 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -13
- /package/lib/types/{controllers/config.schema.d.ts → config/config.d.ts} +0 -0
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xad5aa0=_0x1c15;(function(_0x14c9a5,_0xf7d64c){const _0x166dd9=_0x1c15,_0xe4bc63=_0x14c9a5();while(!![]){try{const _0x5c2c31=parseInt(_0x166dd9(0x144))/0x1+-parseInt(_0x166dd9(0xe9))/0x2*(-parseInt(_0x166dd9(0x148))/0x3)+-parseInt(_0x166dd9(0xfe))/0x4+-parseInt(_0x166dd9(0x161))/0x5+parseInt(_0x166dd9(0x149))/0x6+parseInt(_0x166dd9(0x152))/0x7*(-parseInt(_0x166dd9(0x11a))/0x8)+-parseInt(_0x166dd9(0x157))/0x9;if(_0x5c2c31===_0xf7d64c)break;else _0xe4bc63['push'](_0xe4bc63['shift']());}catch(_0x5e779f){_0xe4bc63['push'](_0xe4bc63['shift']());}}}(_0x48c6,0xb06a7),Object[_0xad5aa0(0x131)](exports,Symbol[_0xad5aa0(0xef)],{'value':_0xad5aa0(0xd2)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t[_0xad5aa0(0xe3)]{get[_0xad5aa0(0x10a)](){const _0x2d5595=_0xad5aa0;return e[_0x2d5595(0x10a)];}get['ShapeFillEnum'](){const _0x3b95d9=_0xad5aa0;return e[_0x3b95d9(0x140)];}get[_0xad5aa0(0x105)](){const _0x46a3a2=_0xad5aa0;return e[_0x46a3a2(0x105)];}get[_0xad5aa0(0x15a)](){return e['ShapeLineTypeEnum'];}get[_0xad5aa0(0x10b)](){const _0x20ffc5=_0xad5aa0;return e[_0x20ffc5(0x10b)];}get[_0xad5aa0(0x121)](){const _0x3bbef6=_0xad5aa0;return e[_0x3bbef6(0x121)];}get[_0xad5aa0(0xe0)](){const _0x207209=_0xad5aa0;return e[_0x207209(0xe0)];}get['ShapeArrowTypeEnum'](){const _0x367113=_0xad5aa0;return e[_0x367113(0x101)];}get['ShapeArrowSizeEnum'](){const _0xead47a=_0xad5aa0;return e[_0xead47a(0xe5)];}};function _0x48c6(){const _0x57f3ac=['newShape','lineJoinType','ShapeArrowTypeEnum','iterator','SetShapeDrawingDataCommand','ensureSkeleton','ShapeGradientTypeEnum','setStrokeLineDashType','stroke','SolidFill','endArrow','ShapeTypeEnum','ShapeLineDashEnum','shapeType','type','lineType','DRAWING_SHAPE','string','lineStrokeType','index','call','setPosition','connectionSiteIndex','newConnector','ang','generateRandomId','setNoneFill','8NTIvZG','getUnitId','abs','object','cxnIndex','getShapeRelation','function','ShapeLineCapEnum','setHeight','getDrawingData','startArrow','size','RemoveSheetDrawingCommand','push','adjustValues','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','setShapeSolidFill','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','computeConnectorRouteLayout','color','sin','symbol','top','defineProperty',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','SheetSkeletonService','toPrimitive','dashType','getShapeId','setStrokeWidth','_resolveExistingOrFreeEndpoint','get','getDrawingByParam','length','getAdjustNames','getConnectorLinePoints','keys','DrawingTypeEnum','ShapeFillEnum','stringify','setStrokeLineJoinType','ISheetDrawingService','1284060bWKFUE','FWorksheet','_resolveEndpoints','flipX','4261359LAcepz','2760684Rfqgfq','convertPositionCellToSheetOverGrid','removeShape','shapeData','entries','build','_preloadShapeProperties','isConnectorShape','relation','974498KHhaXP','getWorkbook','unitId','parse','getSheetId','7888743hhWTnu','transform','updateContext','ShapeLineTypeEnum','\x20not\x20found','opacity','DEFAULT_SHAPE_HEIGHT','width','getShapeData','localToWorld','670575vnDgFR','getBasicShapeRotateBound','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','getConnectionSiteList','getEndConnectInfo','default','setStrokeLineType','getShapeType','point','fill','setStartArrowSize','setShapeGradientFill','InsertShapeCommand','flipY','_commandService','Module','GradientFill','gradientStops','shape','fillType','gradientType','extend','rotation','Skeleton\x20for\x20unitId\x20','setShapeType','connectShapes','DEFAULT_SHAPE_WIDTH','capType','UpdateConnectorRelationCommand','ShapeLineJoinEnum','drawId','getAdjustPoints','FEnum','SheetsShapeService','ShapeArrowSizeEnum','shapeId','from','executeCommand','2CGikbA','left','constructor','setEndArrowSize','gradientAngle','\x20and\x20subUnitId\x20','toStringTag','height','IDrawingManagerService','cos','subUnitId','setStartArrowType','getShapeModel','find','prototype','worldRect','getPosition','getStartConnectInfo','_injector','isLineShape','getSize','5168688ddJeoc'];_0x48c6=function(){return _0x57f3ac;};return _0x48c6();}t[_0xad5aa0(0xe3)][_0xad5aa0(0xd8)](c);function l(_0x4245e2){'@babel/helpers - typeof';const _0x4ccbb5=_0xad5aa0;return l=typeof Symbol==_0x4ccbb5(0x120)&&typeof Symbol[_0x4ccbb5(0x102)]==_0x4ccbb5(0x12f)?function(_0x12d72a){return typeof _0x12d72a;}:function(_0x355c0e){const _0x12f706=_0x4ccbb5;return _0x355c0e&&typeof Symbol==_0x12f706(0x120)&&_0x355c0e[_0x12f706(0xeb)]===Symbol&&_0x355c0e!==Symbol[_0x12f706(0xf7)]?_0x12f706(0x12f):typeof _0x355c0e;},l(_0x4245e2);}function u(_0x4b7f3b,_0x124c96){const _0xde1079=_0xad5aa0;if(l(_0x4b7f3b)!=_0xde1079(0x11d)||!_0x4b7f3b)return _0x4b7f3b;var _0x4df259=_0x4b7f3b[Symbol[_0xde1079(0x134)]];if(_0x4df259!==void 0x0){var _0x135b31=_0x4df259[_0xde1079(0x113)](_0x4b7f3b,_0x124c96||_0xde1079(0x166));if(l(_0x135b31)!=_0xde1079(0x11d))return _0x135b31;throw TypeError(_0xde1079(0x12b));}return(_0x124c96===_0xde1079(0x110)?String:Number)(_0x4b7f3b);}function d(_0x15b922){const _0xeabea2=_0xad5aa0;var _0x2c4eed=u(_0x15b922,'string');return l(_0x2c4eed)==_0xeabea2(0x12f)?_0x2c4eed:_0x2c4eed+'';}function f(_0x46c379,_0x1a9b7d,_0x4c033f){const _0xd80be5=_0xad5aa0;return(_0x1a9b7d=d(_0x1a9b7d))in _0x46c379?Object[_0xd80be5(0x131)](_0x46c379,_0x1a9b7d,{'value':_0x4c033f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46c379[_0x1a9b7d]=_0x4c033f,_0x46c379;}var p=class{constructor(_0x231fda,_0x2c57a8,_0x2f4179,_0xef4dd6){const _0x48bf36=_0xad5aa0;f(this,_0x48bf36(0x154),void 0x0),f(this,_0x48bf36(0xf3),void 0x0),f(this,_0x48bf36(0xe1),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,'width',n[_0x48bf36(0xdd)]),f(this,'height',n[_0x48bf36(0x15d)]),f(this,_0x48bf36(0x10c),void 0x0),f(this,_0x48bf36(0x14c),{}),f(this,_0x48bf36(0xfb),void 0x0),this[_0x48bf36(0x154)]=_0x231fda,this['subUnitId']=_0x2c57a8,this['drawId']=_0x2f4179||(0x0,r['generateRandomId'])(),this[_0x48bf36(0xfb)]=_0xef4dd6;}[_0xad5aa0(0x114)](_0x15209d,_0x27b2a4,_0x467d9f,_0x2c23c6){const _0x284709=_0xad5aa0;let _0x3bac06=this[_0x284709(0xfb)][_0x284709(0x139)](a['SheetSkeletonService'])[_0x284709(0x104)](this[_0x284709(0x154)],this[_0x284709(0xf3)]);if(!_0x3bac06)throw Error('Skeleton\x20for\x20unitId\x20'+this['unitId']+_0x284709(0xee)+this[_0x284709(0xf3)]+_0x284709(0x15b));let {transform:_0x30c86c}=(0x0,a[_0x284709(0x14a)])(this['unitId'],this[_0x284709(0xf3)],{'row':_0x15209d,'column':_0x27b2a4,'rowOffset':_0x467d9f,'columnOffset':_0x2c23c6},0x1,0x1,_0x3bac06);return this['x']=_0x30c86c['left'],this['y']=_0x30c86c[_0x284709(0x130)],this;}['setAbsolutePosition'](_0x439f2f,_0x1f72c0){return this['x']=_0x439f2f,this['y']=_0x1f72c0,this;}[_0xad5aa0(0xdb)](_0x18b78f){const _0x16ecc8=_0xad5aa0;return this[_0x16ecc8(0x10c)]=_0x18b78f,this;}[_0xad5aa0(0x12a)](_0x5be05c,_0x3007e4){const _0x55874d=_0xad5aa0;return this[_0x55874d(0x14c)][_0x55874d(0x16a)]||(this[_0x55874d(0x14c)][_0x55874d(0x16a)]={}),this[_0x55874d(0x14c)][_0x55874d(0x16a)][_0x55874d(0xd6)]=e[_0x55874d(0x140)][_0x55874d(0x108)],_0x5be05c!==void 0x0&&(this['shapeData']['fill'][_0x55874d(0x12d)]=_0x5be05c),_0x3007e4!==void 0x0&&(this[_0x55874d(0x14c)]['fill'][_0x55874d(0x15c)]=_0x3007e4),this;}[_0xad5aa0(0x16c)](_0x227aab,_0x2018fa,_0x23c088){const _0x1583fc=_0xad5aa0;if(_0x2018fa===void 0x0||_0x2018fa['length']===0x0)throw Error(_0x1583fc(0x129));return this[_0x1583fc(0x14c)][_0x1583fc(0x16a)]||(this['shapeData'][_0x1583fc(0x16a)]={}),this[_0x1583fc(0x14c)][_0x1583fc(0x16a)][_0x1583fc(0xd4)]=_0x2018fa,this[_0x1583fc(0x14c)][_0x1583fc(0x16a)][_0x1583fc(0xd6)]=e['ShapeFillEnum'][_0x1583fc(0xd3)],this[_0x1583fc(0x14c)][_0x1583fc(0x16a)][_0x1583fc(0xd7)]=_0x227aab,_0x23c088!==void 0x0&&(this[_0x1583fc(0x14c)][_0x1583fc(0x16a)][_0x1583fc(0xed)]=_0x23c088),this;}[_0xad5aa0(0x119)](){const _0x25bf00=_0xad5aa0;return this['shapeData'][_0x25bf00(0x16a)]={'fillType':e[_0x25bf00(0x140)]['NoFill']},this;}['setStrokeColor'](_0x1232bf){const _0x59869e=_0xad5aa0;return this['shapeData']['stroke']||(this[_0x59869e(0x14c)][_0x59869e(0x107)]={}),this[_0x59869e(0x14c)]['stroke'][_0x59869e(0x12d)]=_0x1232bf,this;}[_0xad5aa0(0x137)](_0x3f42ff){const _0x2889b5=_0xad5aa0;return this[_0x2889b5(0x14c)]['stroke']||(this[_0x2889b5(0x14c)][_0x2889b5(0x107)]={}),this['shapeData']['stroke'][_0x2889b5(0x15e)]=_0x3f42ff,this;}[_0xad5aa0(0x106)](_0x330d82){const _0x11334d=_0xad5aa0;return this[_0x11334d(0x14c)][_0x11334d(0x107)]||(this[_0x11334d(0x14c)][_0x11334d(0x107)]={}),this[_0x11334d(0x14c)][_0x11334d(0x107)][_0x11334d(0x135)]=_0x330d82,this;}[_0xad5aa0(0x142)](_0x175bd1){const _0x16b892=_0xad5aa0;return this[_0x16b892(0x14c)][_0x16b892(0x107)]||(this[_0x16b892(0x14c)][_0x16b892(0x107)]={}),this[_0x16b892(0x14c)][_0x16b892(0x107)][_0x16b892(0x100)]=_0x175bd1,this;}['setStrokeLineCapType'](_0x440af6){const _0x48bd4e=_0xad5aa0;return this[_0x48bd4e(0x14c)]['stroke']||(this[_0x48bd4e(0x14c)][_0x48bd4e(0x107)]={}),this[_0x48bd4e(0x14c)][_0x48bd4e(0x107)][_0x48bd4e(0xde)]=_0x440af6,this;}['setStrokeOpacity'](_0x48f005){const _0x4986c6=_0xad5aa0;return this[_0x4986c6(0x14c)][_0x4986c6(0x107)]||(this['shapeData']['stroke']={}),this[_0x4986c6(0x14c)]['stroke'][_0x4986c6(0x15c)]=_0x48f005,this;}[_0xad5aa0(0x167)](_0x117544){const _0x406d95=_0xad5aa0;return this[_0x406d95(0x14c)][_0x406d95(0x107)]||(this['shapeData'][_0x406d95(0x107)]={}),this[_0x406d95(0x14c)][_0x406d95(0x107)][_0x406d95(0x111)]=_0x117544,this;}['setWidth'](_0x11f4d7){return this['width']=_0x11f4d7,this;}[_0xad5aa0(0x122)](_0x5e9f5e){const _0x1be8d6=_0xad5aa0;return this[_0x1be8d6(0xf0)]=_0x5e9f5e,this;}[_0xad5aa0(0xfc)](){const _0x300b8d=_0xad5aa0;let _0x32f458=this['_injector'][_0x300b8d(0x139)](n['SheetsShapeService'])[_0x300b8d(0xf5)](this[_0x300b8d(0x154)],this[_0x300b8d(0xf3)],this['drawId']);return _0x32f458?(0x0,e['isConnectorShape'])(_0x32f458['getShapeType']()):this[_0x300b8d(0x10c)]?(0x0,e['isConnectorShape'])(this[_0x300b8d(0x10c)]):!0x1;}['getConnectionSites'](){const _0x44625c=_0xad5aa0;let _0x2e54ff=this[_0x44625c(0xfb)][_0x44625c(0x139)](n[_0x44625c(0xe4)])[_0x44625c(0xf5)](this['unitId'],this['subUnitId'],this[_0x44625c(0xe1)]);if(!_0x2e54ff)return[];let _0x49f68f=this['_injector'][_0x44625c(0x139)](i[_0x44625c(0xf1)])[_0x44625c(0x13a)]({'unitId':this[_0x44625c(0x154)],'subUnitId':this[_0x44625c(0xf3)],'drawingId':this[_0x44625c(0xe1)]});if(!(_0x49f68f!=null&&_0x49f68f[_0x44625c(0x158)]))return[];let {width:_0x35f67b=0x0,height:_0x376c74=0x0}=_0x49f68f[_0x44625c(0x158)];return _0x2e54ff['updateContext']({'width':_0x35f67b,'height':_0x376c74}),_0x2e54ff[_0x44625c(0x164)]();}[_0xad5aa0(0xe2)](){const _0x14653b=_0xad5aa0;let _0x4ce0c9=this[_0x14653b(0xfb)][_0x14653b(0x139)](n[_0x14653b(0xe4)])['getShapeModel'](this[_0x14653b(0x154)],this[_0x14653b(0xf3)],this[_0x14653b(0xe1)]);if(!_0x4ce0c9)return[];let _0x59fd70=this[_0x14653b(0xfb)][_0x14653b(0x139)](i['IDrawingManagerService'])[_0x14653b(0x13a)]({'unitId':this[_0x14653b(0x154)],'subUnitId':this[_0x14653b(0xf3)],'drawingId':this[_0x14653b(0xe1)]});if(!(_0x59fd70!=null&&_0x59fd70[_0x14653b(0x158)]))return[];let {width:_0x38e7d8=0x0,height:_0x5b983f=0x0}=_0x59fd70[_0x14653b(0x158)];return _0x4ce0c9[_0x14653b(0x159)]({'width':_0x38e7d8,'height':_0x5b983f}),_0x4ce0c9['getDrawingPoints']();}[_0xad5aa0(0x13d)](){const _0x5e3417=_0xad5aa0;let _0x5f19cc=this[_0x5e3417(0xfb)]['get'](n[_0x5e3417(0xe4)])['getShapeModel'](this[_0x5e3417(0x154)],this[_0x5e3417(0xf3)],this[_0x5e3417(0xe1)]);if(!_0x5f19cc||!(0x0,e[_0x5e3417(0x150)])(_0x5f19cc['getShapeType']()))return[];let _0x1eb19c=this['_injector'][_0x5e3417(0x139)](i[_0x5e3417(0xf1)])['getDrawingByParam']({'unitId':this[_0x5e3417(0x154)],'subUnitId':this[_0x5e3417(0xf3)],'drawingId':this[_0x5e3417(0xe1)]});if(!(_0x1eb19c!=null&&_0x1eb19c[_0x5e3417(0x158)]))return[];let {width:_0x457d09=0x0,height:_0x34c579=0x0}=_0x1eb19c[_0x5e3417(0x158)];return _0x5f19cc[_0x5e3417(0x159)]({'width':_0x457d09,'height':_0x34c579}),_0x5f19cc['getConnectorLinePoints']();}[_0xad5aa0(0xfa)](){const _0x307f28=_0xad5aa0;var _0x115d1a;let _0x351a96=this[_0x307f28(0xfb)][_0x307f28(0x139)](n['SheetsShapeService'])[_0x307f28(0xf5)](this[_0x307f28(0x154)],this[_0x307f28(0xf3)],this[_0x307f28(0xe1)]);return _0x351a96?(_0x115d1a=_0x351a96['getStartConnectInfo']())==null?null:_0x115d1a:null;}['getEndConnectInfo'](){const _0x1411c1=_0xad5aa0;var _0x7b8454;let _0x591e53=this[_0x1411c1(0xfb)][_0x1411c1(0x139)](n[_0x1411c1(0xe4)])['getShapeModel'](this[_0x1411c1(0x154)],this['subUnitId'],this['drawId']);return _0x591e53?(_0x7b8454=_0x591e53['getEndConnectInfo']())==null?null:_0x7b8454:null;}[_0xad5aa0(0x14e)](){const _0x44bbb8=_0xad5aa0;var _0x1c7152,_0x2a1767;if(!this['shapeType'])throw Error(_0x44bbb8(0x163));if(this['x']===0x0||this['y']===0x0){let _0x5df1b7=this[_0x44bbb8(0xfb)][_0x44bbb8(0x139)](a[_0x44bbb8(0x133)])[_0x44bbb8(0x104)](this['unitId'],this[_0x44bbb8(0xf3)]);if(!_0x5df1b7)throw Error(_0x44bbb8(0xda)+this[_0x44bbb8(0x154)]+_0x44bbb8(0xee)+this[_0x44bbb8(0xf3)]+_0x44bbb8(0x15b));let {transform:_0x1ee4bd}=(0x0,a[_0x44bbb8(0x14a)])(this[_0x44bbb8(0x154)],this[_0x44bbb8(0xf3)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5df1b7);this['x']=this['x']>0x0?this['x']:_0x1ee4bd['left'],this['y']=this['y']>0x0?this['y']:_0x1ee4bd[_0x44bbb8(0x130)];}return this[_0x44bbb8(0x15e)]=(_0x1c7152=this[_0x44bbb8(0x15e)])==null?n[_0x44bbb8(0xdd)]:_0x1c7152,this[_0x44bbb8(0xf0)]=(_0x2a1767=this[_0x44bbb8(0xf0)])==null?n[_0x44bbb8(0x15d)]:_0x2a1767,{'unitId':this[_0x44bbb8(0x154)],'subUnitId':this[_0x44bbb8(0xf3)],'shapeId':this[_0x44bbb8(0xe1)],'shapeType':this[_0x44bbb8(0x10c)],'shapeData':Object[_0x44bbb8(0x13e)](this['shapeData'])[_0x44bbb8(0x13b)]>0x0?this[_0x44bbb8(0x14c)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this['height']};}[_0xad5aa0(0x136)](){const _0x53ffbc=_0xad5aa0;return this[_0x53ffbc(0xe1)];}[_0xad5aa0(0x168)](){const _0xbaf3a2=_0xad5aa0;return this[_0xbaf3a2(0x10c)];}['getShapeData'](){return this['shapeData'];}[_0xad5aa0(0xf9)](){return{'x':this['x'],'y':this['y']};}[_0xad5aa0(0xfd)](){const _0x2d18e8=_0xad5aa0;return{'width':this[_0x2d18e8(0x15e)],'height':this[_0x2d18e8(0xf0)]};}},m=class extends p{constructor(_0x1ac9fb,_0x59e805,_0x238201,_0x3c8604){const _0x3c807c=_0xad5aa0;super(_0x1ac9fb,_0x59e805,_0x238201,_0x3c8604),f(this,_0x3c807c(0x14c),{});}['setShapeType'](_0x612769){const _0x4e3592=_0xad5aa0;if(!(0x0,e[_0x4e3592(0x150)])(_0x612769))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x612769+_0x4e3592(0x132));return super[_0x4e3592(0xdb)](_0x612769),this;}[_0xad5aa0(0xf4)](_0xc9498d){const _0x1b0684=_0xad5aa0;var _0x48699d,_0x5e05d3;return(_0x48699d=this[_0x1b0684(0x14c)])!=null&&_0x48699d['ln']||(this['shapeData']['ln']={}),!((_0x5e05d3=this[_0x1b0684(0x14c)])==null||(_0x5e05d3=_0x5e05d3['ln'])==null)&&_0x5e05d3['startArrow']||(this[_0x1b0684(0x14c)]['ln']['startArrow']={}),this[_0x1b0684(0x14c)]['ln']['startArrow'][_0x1b0684(0x10d)]=_0xc9498d,this;}['setEndArrowType'](_0x40869e){const _0x30be15=_0xad5aa0;var _0x7991e2,_0x12b623;return(_0x7991e2=this[_0x30be15(0x14c)])!=null&&_0x7991e2['ln']||(this[_0x30be15(0x14c)]['ln']={}),!((_0x12b623=this[_0x30be15(0x14c)])==null||(_0x12b623=_0x12b623['ln'])==null)&&_0x12b623[_0x30be15(0x109)]||(this['shapeData']['ln'][_0x30be15(0x109)]={}),this['shapeData']['ln'][_0x30be15(0x109)][_0x30be15(0x10d)]=_0x40869e,this;}[_0xad5aa0(0x16b)](_0x4ec6ae){const _0x57f26d=_0xad5aa0;var _0x4de4b7,_0x242fc3;return(_0x4de4b7=this['shapeData'])!=null&&_0x4de4b7['ln']||(this[_0x57f26d(0x14c)]['ln']={}),!((_0x242fc3=this[_0x57f26d(0x14c)])==null||(_0x242fc3=_0x242fc3['ln'])==null)&&_0x242fc3[_0x57f26d(0x124)]||(this[_0x57f26d(0x14c)]['ln'][_0x57f26d(0x124)]={}),this[_0x57f26d(0x14c)]['ln'][_0x57f26d(0x124)][_0x57f26d(0x125)]=_0x4ec6ae,this;}[_0xad5aa0(0xec)](_0x3fa08c){const _0x493a80=_0xad5aa0;var _0x199e2e,_0x3c0787;return(_0x199e2e=this[_0x493a80(0x14c)])!=null&&_0x199e2e['ln']||(this[_0x493a80(0x14c)]['ln']={}),!((_0x3c0787=this[_0x493a80(0x14c)])==null||(_0x3c0787=_0x3c0787['ln'])==null)&&_0x3c0787[_0x493a80(0x109)]||(this[_0x493a80(0x14c)]['ln'][_0x493a80(0x109)]={}),this[_0x493a80(0x14c)]['ln'][_0x493a80(0x109)][_0x493a80(0x125)]=_0x3fa08c,this;}[_0xad5aa0(0x14e)](){const _0x4835bd=_0xad5aa0;return super[_0x4835bd(0x14e)]();}[_0xad5aa0(0x165)](){const _0x2526ac=_0xad5aa0;var _0xd08b54;return((_0xd08b54=this['shapeData'])==null||(_0xd08b54=_0xd08b54[_0x2526ac(0x151)])==null?void 0x0:_0xd08b54['to'])||null;}['getStartConnectInfo'](){const _0x503bee=_0xad5aa0;var _0x345763;return((_0x345763=this[_0x503bee(0x14c)])==null||(_0x345763=_0x345763[_0x503bee(0x151)])==null?void 0x0:_0x345763['from'])||null;}};function h(_0x26bea9,_0x50694f,_0x2aec41,_0x40d71d,_0x26b047,_0x3d3709){const _0x13a479=_0xad5aa0;let _0x2008bc=_0x26b047['getShapeModel'](_0x26bea9,_0x50694f,_0x2aec41);if(!_0x2008bc)return null;let _0x1b9674=_0x3d3709[_0x13a479(0x13a)]({'unitId':_0x26bea9,'subUnitId':_0x50694f,'drawingId':_0x2aec41});if(!(_0x1b9674!=null&&_0x1b9674['transform']))return null;let {left:_0x1fc7de=0x0,top:_0x145ffc=0x0,width:_0x252f59=0x0,height:_0x4e0fc4=0x0,flipX:_0x53520a=!0x1,flipY:_0x35b5ed=!0x1,angle:_0x1d0434}=_0x1b9674[_0x13a479(0x158)];_0x2008bc[_0x13a479(0x159)]({'width':_0x252f59,'height':_0x4e0fc4});let _0x121f14=_0x2008bc[_0x13a479(0x164)]()[_0x13a479(0xf6)](_0xc2f44=>_0xc2f44[_0x13a479(0x112)]===_0x40d71d);if(!_0x121f14)return null;let _0x3e4cca=_0x53520a?_0x252f59-_0x121f14['x']:_0x121f14['x'],_0x5cd179=_0x35b5ed?_0x4e0fc4-_0x121f14['y']:_0x121f14['y'];if(_0x1d0434&&_0x1d0434!==0x0){let _0x3530ec=_0x1d0434*Math['PI']/0xb4,_0x41cf0a=Math[_0x13a479(0xf2)](_0x3530ec),_0x1a9c68=Math[_0x13a479(0x12e)](_0x3530ec),_0xfb97bf=_0x252f59/0x2,_0x117a9c=_0x4e0fc4/0x2,_0x1e958b=_0x3e4cca-_0xfb97bf,_0x3e36a2=_0x5cd179-_0x117a9c;_0x3e4cca=_0xfb97bf+_0x1e958b*_0x41cf0a-_0x3e36a2*_0x1a9c68,_0x5cd179=_0x117a9c+_0x1e958b*_0x1a9c68+_0x3e36a2*_0x41cf0a;}_0x3e4cca+=_0x1fc7de,_0x5cd179+=_0x145ffc;let _0x19c212=_0x121f14[_0x13a479(0x117)]/0xea60;_0x53520a&&(_0x19c212=0xb4-_0x19c212),_0x35b5ed&&(_0x19c212=-_0x19c212),_0x19c212+=_0x1d0434||0x0,_0x19c212=(_0x19c212%0x168+0x168)%0x168;let _0x5129b3=(0x0,e[_0x13a479(0x162)])({'left':_0x1fc7de,'top':_0x145ffc,'width':_0x252f59,'height':_0x4e0fc4},_0x1d0434||0x0);return{'point':{'x':_0x3e4cca,'y':_0x5cd179},'angle':_0x19c212,'bounds':_0x5129b3};}function g(_0x2bae6a,_0x14a272){const _0x193de3=_0xad5aa0;let _0xfa6694=_0x14a272['x']-_0x2bae6a['x'],_0x5b85ae=_0x14a272['y']-_0x2bae6a['y'];return Math[_0x193de3(0x11c)](_0xfa6694)>=Math['abs'](_0x5b85ae)?_0xfa6694>=0x0?0xb4:0x0:_0x5b85ae>=0x0?0x10e:0x5a;}function _(_0x257ab3,_0x1a0b75,_0x7f8fdc,_0x57f3d6,_0x13add9,_0x5c4514,_0x47237e){const _0x18cefd=_0xad5aa0;let _0x25f04b=_0x5c4514[_0x18cefd(0xf5)](_0x257ab3,_0x1a0b75,_0x7f8fdc);if(!_0x25f04b)return null;let _0x34404f=_0x47237e['getDrawingByParam']({'unitId':_0x257ab3,'subUnitId':_0x1a0b75,'drawingId':_0x7f8fdc});if(!(_0x34404f!=null&&_0x34404f[_0x18cefd(0x158)]))return null;let {left:_0x3219d9=0x0,top:_0x58a075=0x0,width:_0x4527b4=0x0,height:_0x3133b0=0x0,flipX:_0x3d6885=!0x1,flipY:_0x305f55=!0x1}=_0x34404f[_0x18cefd(0x158)];_0x25f04b['updateContext']({'width':_0x4527b4,'height':_0x3133b0});let _0x5d5959=_0x25f04b[_0x18cefd(0x13d)]();if(_0x5d5959[_0x18cefd(0x13b)]<0x2)return null;let _0x33fdc2=_0x57f3d6?_0x5d5959[0x0]:_0x5d5959[_0x5d5959['length']-0x1],_0x767534=new e['ConnectorCoordinateTransform']({'left':_0x3219d9,'top':_0x58a075,'width':_0x4527b4,'height':_0x3133b0,'flipX':_0x3d6885,'flipY':_0x305f55})[_0x18cefd(0x160)](_0x33fdc2);return{'point':_0x767534,'angle':g(_0x13add9[_0x18cefd(0x169)],_0x767534),'bounds':{'left':_0x767534['x'],'top':_0x767534['y'],'width':0x0,'height':0x0}};}function _0x1c15(_0x149eb2,_0x2a1da8){_0x149eb2=_0x149eb2-0xd2;const _0x48c691=_0x48c6();let _0x1c15b7=_0x48c691[_0x149eb2];return _0x1c15b7;}var v=class extends s['FWorksheet']{async['insertShape'](_0x1d1624){const _0x522a50=_0xad5aa0;let {unitId:_0x351140,subUnitId:_0x4edc2b,shapeId:_0x21154d,shapeType:_0x3e53ba,shapeData:_0x3c8011,x:_0x15b1fb,y:_0x3dd766,width:_0x39a14a,height:_0x5077fe}=_0x1d1624;return this[_0x522a50(0x16f)]['executeCommand'](n[_0x522a50(0x16d)]['id'],{'unitId':_0x351140,'subUnitId':_0x4edc2b,'shapeId':_0x21154d,'shapeType':_0x3e53ba,'shapeData':_0x3c8011,'position':{'x':_0x15b1fb,'y':_0x3dd766},'width':_0x39a14a,'height':_0x5077fe});}async['updateShape'](_0x3ed3c0){const _0xe73036=_0xad5aa0;let {unitId:_0x1409b0,subUnitId:_0x1b5dd6,shapeId:_0x1a7dfc,shapeType:_0x3b7813,shapeData:_0x3bf057,x:_0x30fa81,y:_0x255c83,width:_0x14b9df,height:_0x34db3f}=_0x3ed3c0;return this[_0xe73036(0x16f)]['executeCommand'](n[_0xe73036(0x103)]['id'],{'unitId':_0x1409b0,'subUnitId':_0x1b5dd6,'shapeId':_0x1a7dfc,'shapeType':_0x3b7813,'shapeData':_0x3bf057,'position':{'x':_0x30fa81,'y':_0x255c83},'width':_0x14b9df,'height':_0x34db3f});}[_0xad5aa0(0xff)](_0x9ed71e){const _0x1d4151=_0xad5aa0;let _0x2b28d0=this['getWorkbook']()['getUnitId'](),_0xe94db4=this['getSheetId']();if(_0x9ed71e){let _0x569551=new p(_0x2b28d0,_0xe94db4,_0x9ed71e[_0x1d4151(0xe1)],this['_injector']);return this['_preloadShapeProperties'](_0x569551,_0x2b28d0,_0xe94db4,_0x9ed71e['drawId']),_0x569551;}return new p(_0x2b28d0,_0xe94db4,(0x0,r['generateRandomId'])(),this[_0x1d4151(0xfb)]);}[_0xad5aa0(0x116)](_0x23036c){const _0x1f6187=_0xad5aa0;let _0xcb99ca=this[_0x1f6187(0x153)]()[_0x1f6187(0x11b)](),_0x27c600=this[_0x1f6187(0x156)]();if(_0x23036c){let _0x318d88=new m(_0xcb99ca,_0x27c600,_0x23036c['drawId'],this[_0x1f6187(0xfb)]);return this[_0x1f6187(0x14f)](_0x318d88,_0xcb99ca,_0x27c600,_0x23036c[_0x1f6187(0xe1)]),_0x318d88;}return new m(_0xcb99ca,_0x27c600,(0x0,r[_0x1f6187(0x118)])(),this[_0x1f6187(0xfb)]);}['getShapes'](){const _0x1587a3=_0xad5aa0;let _0x20a248=this[_0x1587a3(0xfb)][_0x1587a3(0x139)](o[_0x1587a3(0x143)]),_0x204305=this[_0x1587a3(0x153)]()[_0x1587a3(0x11b)](),_0x599e18=this[_0x1587a3(0x156)](),_0x47e883=_0x20a248[_0x1587a3(0x123)](_0x204305,_0x599e18);if(!_0x47e883)return[];let _0x4f988b=[];for(let [_0x533849,_0x59163b]of Object[_0x1587a3(0x14d)](_0x47e883))if(_0x59163b&&_0x59163b['drawingType']===r[_0x1587a3(0x13f)][_0x1587a3(0x10f)]){let _0x2a2382=new p(_0x204305,_0x599e18,_0x533849,this[_0x1587a3(0xfb)]);this[_0x1587a3(0x14f)](_0x2a2382,_0x204305,_0x599e18,_0x533849),_0x4f988b[_0x1587a3(0x127)](_0x2a2382);}return _0x4f988b;}[_0xad5aa0(0x14b)](_0x1cc52a){const _0x112237=_0xad5aa0;let {unitId:_0x9f900c,subUnitId:_0x18c1f2,drawId:_0x1f17e1}=_0x1cc52a;return this['_commandService'][_0x112237(0xe8)](o[_0x112237(0x126)]['id'],{'unitId':_0x9f900c,'drawings':[{'unitId':_0x9f900c,'subUnitId':_0x18c1f2,'drawingId':_0x1f17e1,'drawingType':r[_0x112237(0x13f)]['DRAWING_SHAPE']}]});}async[_0xad5aa0(0xdc)](_0x5dd3df){const _0x534242=_0xad5aa0;let {connector:_0x3bc873,startTarget:_0x23f529,endTarget:_0xc0e432}=_0x5dd3df;if(!_0x23f529&&!_0xc0e432)return!0x1;let _0x5853a2=this[_0x534242(0x153)]()['getUnitId'](),_0x4a8d40=this[_0x534242(0x156)](),_0x2f582e=this[_0x534242(0xfb)][_0x534242(0x139)](n[_0x534242(0xe4)]),_0x4c63dc=this['_injector'][_0x534242(0x139)](i['IDrawingManagerService']),_0x378531=_0x2f582e[_0x534242(0xf5)](_0x5853a2,_0x4a8d40,_0x3bc873[_0x534242(0xe1)]);if(!_0x378531)return!0x1;let _0x4ed986=_0x378531[_0x534242(0x168)](),_0x39aa89=_0x378531[_0x534242(0x11f)](),_0x276aa0={};for(let _0x51708b of _0x378531[_0x534242(0x13c)]()){let _0x963cf=_0x378531['getAdjustValueByName'](_0x51708b);_0x963cf!==void 0x0&&(_0x276aa0[_0x51708b]=_0x963cf);}let {startInfo:_0x5338a7,endInfo:_0x204214}=this[_0x534242(0x146)](_0x5853a2,_0x4a8d40,_0x3bc873,_0x378531,_0x23f529,_0xc0e432,_0x2f582e,_0x4c63dc,_0x39aa89);if(!_0x5338a7||!_0x204214)return!0x1;let _0x25d8b3=(0x0,e[_0x534242(0x12c)])((0x0,e['routeConnectorLineShape'])(_0x5338a7,_0x204214,_0x4ed986),_0x4ed986),_0x57d4c4={};return _0x23f529?_0x57d4c4[_0x534242(0xe7)]={'shapeId':_0x23f529['shape'][_0x534242(0xe1)],'cxnIndex':_0x23f529[_0x534242(0x115)]}:_0x39aa89!=null&&_0x39aa89[_0x534242(0xe7)]&&(_0x57d4c4[_0x534242(0xe7)]=_0x39aa89['from']),_0xc0e432?_0x57d4c4['to']={'shapeId':_0xc0e432[_0x534242(0xd5)][_0x534242(0xe1)],'cxnIndex':_0xc0e432[_0x534242(0x115)]}:_0x39aa89!=null&&_0x39aa89['to']&&(_0x57d4c4['to']=_0x39aa89['to']),this[_0x534242(0x16f)][_0x534242(0xe8)](n[_0x534242(0xdf)]['id'],{'unitId':_0x5853a2,'subUnitId':_0x4a8d40,'connectorShapeId':_0x3bc873[_0x534242(0xe1)],'width':_0x25d8b3[_0x534242(0xf8)]['width'],'height':_0x25d8b3[_0x534242(0xf8)][_0x534242(0xf0)],'left':_0x25d8b3['worldRect'][_0x534242(0xea)],'top':_0x25d8b3[_0x534242(0xf8)][_0x534242(0x130)],'flipX':_0x25d8b3['worldRect'][_0x534242(0x147)]||!0x1,'flipY':_0x25d8b3[_0x534242(0xf8)][_0x534242(0x16e)]||!0x1,'oldAdjustValues':_0x276aa0,'newAdjustValues':_0x25d8b3[_0x534242(0x128)],'newLineType':_0x25d8b3[_0x534242(0x10e)],'oldLineType':_0x4ed986,'rotation':_0x25d8b3[_0x534242(0xd9)],'oldRelation':_0x39aa89,'newRelation':_0x57d4c4});}[_0xad5aa0(0x14f)](_0xe504bb,_0x4ceafe,_0x12acd7,_0x3399db){const _0x4d5831=_0xad5aa0;let _0xe72f1=this[_0x4d5831(0xfb)][_0x4d5831(0x139)](i[_0x4d5831(0xf1)])[_0x4d5831(0x13a)]({'unitId':_0x4ceafe,'subUnitId':_0x12acd7,'drawingId':_0x3399db});if(_0xe72f1!=null&&_0xe72f1['transform']){var _0x3b0775,_0x52fba1,_0x27d676,_0x5c19aa;_0xe504bb['x']=(_0x3b0775=_0xe72f1[_0x4d5831(0x158)][_0x4d5831(0xea)])==null?0x0:_0x3b0775,_0xe504bb['y']=(_0x52fba1=_0xe72f1['transform'][_0x4d5831(0x130)])==null?0x0:_0x52fba1,_0xe504bb['width']=(_0x27d676=_0xe72f1[_0x4d5831(0x158)][_0x4d5831(0x15e)])==null?_0xe504bb[_0x4d5831(0x15e)]:_0x27d676,_0xe504bb[_0x4d5831(0xf0)]=(_0x5c19aa=_0xe72f1[_0x4d5831(0x158)][_0x4d5831(0xf0)])==null?_0xe504bb[_0x4d5831(0xf0)]:_0x5c19aa;}let _0x4c2f6c=this[_0x4d5831(0xfb)]['get'](n['SheetsShapeService'])[_0x4d5831(0xf5)](_0x4ceafe,_0x12acd7,_0x3399db);if(_0x4c2f6c){_0xe504bb[_0x4d5831(0x10c)]=_0x4c2f6c[_0x4d5831(0x168)]();let _0xb59339=_0x4c2f6c[_0x4d5831(0x15f)]();_0xb59339&&(_0xe504bb[_0x4d5831(0x14c)]=JSON[_0x4d5831(0x155)](JSON[_0x4d5831(0x141)](_0xb59339)));}}[_0xad5aa0(0x146)](_0x54b76c,_0x4c7523,_0x30cb3a,_0x35805d,_0x1903d7,_0x29dc10,_0x1726cf,_0xcd3326,_0x58dce9){const _0x26c9f5=_0xad5aa0;let _0x2dba4f=null,_0x485c26=null;return _0x1903d7&&(_0x2dba4f=h(_0x54b76c,_0x4c7523,_0x1903d7[_0x26c9f5(0xd5)][_0x26c9f5(0xe1)],_0x1903d7['connectionSiteIndex'],_0x1726cf,_0xcd3326)),_0x29dc10&&(_0x485c26=h(_0x54b76c,_0x4c7523,_0x29dc10[_0x26c9f5(0xd5)]['drawId'],_0x29dc10['connectionSiteIndex'],_0x1726cf,_0xcd3326)),_0x2dba4f||(_0x2dba4f=this[_0x26c9f5(0x138)](_0x54b76c,_0x4c7523,_0x30cb3a[_0x26c9f5(0xe1)],!0x0,_0x485c26,_0x58dce9==null?void 0x0:_0x58dce9[_0x26c9f5(0xe7)],_0x1726cf,_0xcd3326)),_0x485c26||(_0x485c26=this[_0x26c9f5(0x138)](_0x54b76c,_0x4c7523,_0x30cb3a[_0x26c9f5(0xe1)],!0x1,_0x2dba4f,_0x58dce9==null?void 0x0:_0x58dce9['to'],_0x1726cf,_0xcd3326)),{'startInfo':_0x2dba4f,'endInfo':_0x485c26};}['_resolveExistingOrFreeEndpoint'](_0x31dbc3,_0x564463,_0x4e9262,_0x19bc11,_0x23a8a7,_0x1f781c,_0x40782d,_0x29d9df){const _0xce7c11=_0xad5aa0;if(_0x1f781c){let _0x13fe21=h(_0x31dbc3,_0x564463,_0x1f781c[_0xce7c11(0xe6)],_0x1f781c[_0xce7c11(0x11e)],_0x40782d,_0x29d9df);if(_0x13fe21)return _0x13fe21;}return _0x23a8a7?_(_0x31dbc3,_0x564463,_0x4e9262,_0x19bc11,_0x23a8a7,_0x40782d,_0x29d9df):null;}};s[_0xad5aa0(0x145)]['extend'](v),exports['FConnectorShape']=m,exports['FShape']=p;
|
|
1
|
+
const _0x1813d6=_0x3405;(function(_0x50b0aa,_0x5f0e76){const _0x4d059e=_0x3405,_0x56d358=_0x50b0aa();while(!![]){try{const _0x5e68c7=-parseInt(_0x4d059e(0x161))/0x1+parseInt(_0x4d059e(0x1e5))/0x2+parseInt(_0x4d059e(0x1b4))/0x3*(-parseInt(_0x4d059e(0x1db))/0x4)+parseInt(_0x4d059e(0x16c))/0x5*(-parseInt(_0x4d059e(0x1a0))/0x6)+parseInt(_0x4d059e(0x150))/0x7+parseInt(_0x4d059e(0x1a8))/0x8*(-parseInt(_0x4d059e(0x190))/0x9)+parseInt(_0x4d059e(0x1e9))/0xa*(parseInt(_0x4d059e(0x1ab))/0xb);if(_0x5e68c7===_0x5f0e76)break;else _0x56d358['push'](_0x56d358['shift']());}catch(_0xdd2ac7){_0x56d358['push'](_0x56d358['shift']());}}}(_0x5281,0x807d2),Object[_0x1813d6(0x187)](exports,Symbol['toStringTag'],{'value':_0x1813d6(0x173)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs-pro/sheets-shape'),r=require('@univerjs/core'),i=require('@univerjs/drawing'),a=require('@univerjs/sheets'),o=require('@univerjs/sheets-drawing'),s=require('@univerjs/sheets/facade');var c=class extends t[_0x1813d6(0x1c1)]{get['ShapeTypeEnum'](){const _0x58a70d=_0x1813d6;return e[_0x58a70d(0x17b)];}get[_0x1813d6(0x189)](){const _0x1fb46b=_0x1813d6;return e[_0x1fb46b(0x189)];}get['ShapeGradientTypeEnum'](){const _0x471ac2=_0x1813d6;return e[_0x471ac2(0x1af)];}get['ShapeLineTypeEnum'](){return e['ShapeLineTypeEnum'];}get[_0x1813d6(0x1a4)](){const _0x2d6160=_0x1813d6;return e[_0x2d6160(0x1a4)];}get[_0x1813d6(0x176)](){const _0x24f0bf=_0x1813d6;return e[_0x24f0bf(0x176)];}get[_0x1813d6(0x17f)](){const _0x5e179f=_0x1813d6;return e[_0x5e179f(0x17f)];}get[_0x1813d6(0x16a)](){const _0x3f748b=_0x1813d6;return e[_0x3f748b(0x16a)];}get[_0x1813d6(0x1e2)](){const _0x38783f=_0x1813d6;return e[_0x38783f(0x1e2)];}};t[_0x1813d6(0x1c1)]['extend'](c);function l(_0x1c7796){'@babel/helpers - typeof';const _0x1fc5dc=_0x1813d6;return l=typeof Symbol==_0x1fc5dc(0x18c)&&typeof Symbol[_0x1fc5dc(0x199)]==_0x1fc5dc(0x15a)?function(_0x418859){return typeof _0x418859;}:function(_0x1c79f7){const _0x3f9810=_0x1fc5dc;return _0x1c79f7&&typeof Symbol==_0x3f9810(0x18c)&&_0x1c79f7[_0x3f9810(0x1e6)]===Symbol&&_0x1c79f7!==Symbol[_0x3f9810(0x168)]?_0x3f9810(0x15a):typeof _0x1c79f7;},l(_0x1c7796);}function _0x3405(_0x2b6cc4,_0x3f0616){_0x2b6cc4=_0x2b6cc4-0x14d;const _0x528155=_0x5281();let _0x3405df=_0x528155[_0x2b6cc4];return _0x3405df;}function u(_0x3dbb47,_0x2f3aac){const _0x340b9d=_0x1813d6;if(l(_0x3dbb47)!=_0x340b9d(0x167)||!_0x3dbb47)return _0x3dbb47;var _0x1379ef=_0x3dbb47[Symbol[_0x340b9d(0x17a)]];if(_0x1379ef!==void 0x0){var _0x5ad59d=_0x1379ef['call'](_0x3dbb47,_0x2f3aac||_0x340b9d(0x1c5));if(l(_0x5ad59d)!='object')return _0x5ad59d;throw TypeError(_0x340b9d(0x17d));}return(_0x2f3aac==='string'?String:Number)(_0x3dbb47);}function d(_0x4704a8){const _0x19a153=_0x1813d6;var _0x1c87e8=u(_0x4704a8,_0x19a153(0x188));return l(_0x1c87e8)==_0x19a153(0x15a)?_0x1c87e8:_0x1c87e8+'';}function f(_0x20d1a6,_0x553d59,_0x4eaa3f){const _0x4bd73b=_0x1813d6;return(_0x553d59=d(_0x553d59))in _0x20d1a6?Object[_0x4bd73b(0x187)](_0x20d1a6,_0x553d59,{'value':_0x4eaa3f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x20d1a6[_0x553d59]=_0x4eaa3f,_0x20d1a6;}var p=class{constructor(_0x2e573a,_0x485d89,_0x132722,_0x9b71a5){const _0x593dbc=_0x1813d6;f(this,_0x593dbc(0x1d0),void 0x0),f(this,_0x593dbc(0x1ea),void 0x0),f(this,_0x593dbc(0x177),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x593dbc(0x1b1),n[_0x593dbc(0x1c6)]),f(this,_0x593dbc(0x1be),n['DEFAULT_SHAPE_HEIGHT']),f(this,'shapeType',void 0x0),f(this,_0x593dbc(0x174),{}),f(this,'_injector',void 0x0),this['unitId']=_0x2e573a,this[_0x593dbc(0x1ea)]=_0x485d89,this[_0x593dbc(0x177)]=_0x132722||(0x0,r['generateRandomId'])(),this['_injector']=_0x9b71a5;}[_0x1813d6(0x1ae)](_0x1a983b,_0x48ea4c,_0x5e8d6b,_0x2e1e3e){const _0x1d99a8=_0x1813d6;let _0x407f01=this[_0x1d99a8(0x14f)][_0x1d99a8(0x16e)](a[_0x1d99a8(0x195)])['ensureSkeleton'](this[_0x1d99a8(0x1d0)],this[_0x1d99a8(0x1ea)]);if(!_0x407f01)throw Error(_0x1d99a8(0x1c4)+this[_0x1d99a8(0x1d0)]+_0x1d99a8(0x192)+this[_0x1d99a8(0x1ea)]+_0x1d99a8(0x1e3));let {transform:_0x42c181}=(0x0,a[_0x1d99a8(0x19d)])(this['unitId'],this[_0x1d99a8(0x1ea)],{'row':_0x1a983b,'column':_0x48ea4c,'rowOffset':_0x5e8d6b,'columnOffset':_0x2e1e3e},0x1,0x1,_0x407f01);return this['x']=_0x42c181[_0x1d99a8(0x1ca)],this['y']=_0x42c181[_0x1d99a8(0x17c)],this;}['setAbsolutePosition'](_0x27aa01,_0x4b76b7){return this['x']=_0x27aa01,this['y']=_0x4b76b7,this;}[_0x1813d6(0x184)](_0x518142){return this['shapeType']=_0x518142,this;}[_0x1813d6(0x1cf)](_0x60f142){const _0xd8d9d1=_0x1813d6;return _0x60f142['shapeType']&&this[_0xd8d9d1(0x184)](_0x60f142['shapeType']),this[_0xd8d9d1(0x174)]={..._0x60f142},this;}[_0x1813d6(0x1e0)](_0x2eb292,_0xdc0aa4){const _0x5e26b2=_0x1813d6;return this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]||(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]={}),this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)]['fillType']=e['ShapeFillEnum'][_0x5e26b2(0x166)],_0x2eb292!==void 0x0&&(this[_0x5e26b2(0x174)][_0x5e26b2(0x1da)][_0x5e26b2(0x165)]=_0x2eb292),_0xdc0aa4!==void 0x0&&(this['shapeData']['fill']['opacity']=_0xdc0aa4),this;}[_0x1813d6(0x155)](_0x5894a4,_0x41a707,_0x4523e0){const _0x59d788=_0x1813d6;if(_0x41a707===void 0x0||_0x41a707[_0x59d788(0x19b)]===0x0)throw Error(_0x59d788(0x1a5));return this[_0x59d788(0x174)]['fill']||(this[_0x59d788(0x174)][_0x59d788(0x1da)]={}),this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x1b5)]=_0x41a707,this['shapeData']['fill'][_0x59d788(0x182)]=e[_0x59d788(0x189)][_0x59d788(0x19e)],this[_0x59d788(0x174)][_0x59d788(0x1da)][_0x59d788(0x15d)]=_0x5894a4,_0x4523e0!==void 0x0&&(this[_0x59d788(0x174)][_0x59d788(0x1da)]['gradientAngle']=_0x4523e0),this;}[_0x1813d6(0x180)](){const _0x3157ee=_0x1813d6;return this['shapeData'][_0x3157ee(0x1da)]={'fillType':e['ShapeFillEnum'][_0x3157ee(0x1bc)]},this;}['setStrokeColor'](_0x370033){const _0x44e850=_0x1813d6;return this[_0x44e850(0x174)][_0x44e850(0x193)]||(this[_0x44e850(0x174)][_0x44e850(0x193)]={}),this['shapeData'][_0x44e850(0x193)][_0x44e850(0x165)]=_0x370033,this;}[_0x1813d6(0x153)](_0x3d8dce){const _0x114018=_0x1813d6;return this[_0x114018(0x174)]['stroke']||(this[_0x114018(0x174)]['stroke']={}),this[_0x114018(0x174)]['stroke'][_0x114018(0x1b1)]=_0x3d8dce,this;}[_0x1813d6(0x1de)](_0x220fe5){const _0x27497d=_0x1813d6;return this[_0x27497d(0x174)][_0x27497d(0x193)]||(this[_0x27497d(0x174)]['stroke']={}),this[_0x27497d(0x174)][_0x27497d(0x193)]['dashType']=_0x220fe5,this;}['setStrokeLineJoinType'](_0x48e9c1){const _0x1ab801=_0x1813d6;return this[_0x1ab801(0x174)][_0x1ab801(0x193)]||(this['shapeData']['stroke']={}),this[_0x1ab801(0x174)][_0x1ab801(0x193)][_0x1ab801(0x156)]=_0x48e9c1,this;}['setStrokeLineCapType'](_0x579727){const _0x3a8418=_0x1813d6;return this[_0x3a8418(0x174)][_0x3a8418(0x193)]||(this[_0x3a8418(0x174)]['stroke']={}),this[_0x3a8418(0x174)]['stroke'][_0x3a8418(0x1a2)]=_0x579727,this;}[_0x1813d6(0x159)](_0x2a97c6){const _0x90e0de=_0x1813d6;return this[_0x90e0de(0x174)][_0x90e0de(0x193)]||(this[_0x90e0de(0x174)][_0x90e0de(0x193)]={}),this[_0x90e0de(0x174)][_0x90e0de(0x193)][_0x90e0de(0x1b7)]=_0x2a97c6,this;}[_0x1813d6(0x196)](_0x5026f1){const _0x3383c3=_0x1813d6;return this[_0x3383c3(0x174)]['stroke']||(this['shapeData']['stroke']={}),this['shapeData'][_0x3383c3(0x193)][_0x3383c3(0x164)]=_0x5026f1,this;}[_0x1813d6(0x1e1)](_0xdbd9fe){const _0x1064eb=_0x1813d6;return this[_0x1064eb(0x1b1)]=_0xdbd9fe,this;}[_0x1813d6(0x1b3)](_0x81f77d){const _0xa54a2e=_0x1813d6;return this[_0xa54a2e(0x1be)]=_0x81f77d,this;}[_0x1813d6(0x16b)](){const _0x4217b5=_0x1813d6;let _0x40225d=this['_injector']['get'](n[_0x4217b5(0x16d)])[_0x4217b5(0x1d3)](this[_0x4217b5(0x1d0)],this[_0x4217b5(0x1ea)],this[_0x4217b5(0x177)]);return _0x40225d?(0x0,e['isConnectorShape'])(_0x40225d[_0x4217b5(0x197)]()):this[_0x4217b5(0x1cd)]?(0x0,e[_0x4217b5(0x1c2)])(this['shapeType']):!0x1;}['getConnectionSites'](){const _0xdc950d=_0x1813d6;let _0xbe29b9=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](n[_0xdc950d(0x16d)])[_0xdc950d(0x1d3)](this[_0xdc950d(0x1d0)],this[_0xdc950d(0x1ea)],this[_0xdc950d(0x177)]);if(!_0xbe29b9)return[];let _0xcebe44=this[_0xdc950d(0x14f)][_0xdc950d(0x16e)](i[_0xdc950d(0x1dd)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0xcebe44!=null&&_0xcebe44[_0xdc950d(0x154)]))return[];let {width:_0x53ba0d=0x0,height:_0x58f2a6=0x0}=_0xcebe44[_0xdc950d(0x154)];return _0xbe29b9[_0xdc950d(0x1ad)]({'width':_0x53ba0d,'height':_0x58f2a6}),_0xbe29b9['getConnectionSiteList']();}[_0x1813d6(0x171)](){const _0x288626=_0x1813d6;let _0x14b9ae=this[_0x288626(0x14f)][_0x288626(0x16e)](n[_0x288626(0x16d)])[_0x288626(0x1d3)](this[_0x288626(0x1d0)],this[_0x288626(0x1ea)],this[_0x288626(0x177)]);if(!_0x14b9ae)return[];let _0x96436b=this[_0x288626(0x14f)][_0x288626(0x16e)](i[_0x288626(0x1dd)])[_0x288626(0x1ce)]({'unitId':this[_0x288626(0x1d0)],'subUnitId':this[_0x288626(0x1ea)],'drawingId':this[_0x288626(0x177)]});if(!(_0x96436b!=null&&_0x96436b['transform']))return[];let {width:_0x26dd28=0x0,height:_0x506b43=0x0}=_0x96436b[_0x288626(0x154)];return _0x14b9ae[_0x288626(0x1ad)]({'width':_0x26dd28,'height':_0x506b43}),_0x14b9ae[_0x288626(0x179)]();}[_0x1813d6(0x1c9)](){const _0x375b4f=_0x1813d6;let _0x2b2f61=this[_0x375b4f(0x14f)]['get'](n['SheetsShapeService'])[_0x375b4f(0x1d3)](this[_0x375b4f(0x1d0)],this['subUnitId'],this['drawId']);if(!_0x2b2f61||!(0x0,e[_0x375b4f(0x1c2)])(_0x2b2f61['getShapeType']()))return[];let _0x1b2c35=this[_0x375b4f(0x14f)][_0x375b4f(0x16e)](i[_0x375b4f(0x1dd)])[_0x375b4f(0x1ce)]({'unitId':this[_0x375b4f(0x1d0)],'subUnitId':this[_0x375b4f(0x1ea)],'drawingId':this[_0x375b4f(0x177)]});if(!(_0x1b2c35!=null&&_0x1b2c35['transform']))return[];let {width:_0x3db08d=0x0,height:_0x143847=0x0}=_0x1b2c35[_0x375b4f(0x154)];return _0x2b2f61[_0x375b4f(0x1ad)]({'width':_0x3db08d,'height':_0x143847}),_0x2b2f61[_0x375b4f(0x1c9)]();}['getStartConnectInfo'](){const _0x5e9363=_0x1813d6;var _0x4f1f3e;let _0x3522be=this[_0x5e9363(0x14f)][_0x5e9363(0x16e)](n[_0x5e9363(0x16d)])[_0x5e9363(0x1d3)](this[_0x5e9363(0x1d0)],this['subUnitId'],this['drawId']);return _0x3522be?(_0x4f1f3e=_0x3522be[_0x5e9363(0x1cb)]())==null?null:_0x4f1f3e:null;}[_0x1813d6(0x1e8)](){const _0x42742d=_0x1813d6;var _0x5066c7;let _0x20d068=this[_0x42742d(0x14f)][_0x42742d(0x16e)](n[_0x42742d(0x16d)])[_0x42742d(0x1d3)](this['unitId'],this[_0x42742d(0x1ea)],this[_0x42742d(0x177)]);return _0x20d068?(_0x5066c7=_0x20d068[_0x42742d(0x1e8)]())==null?null:_0x5066c7:null;}[_0x1813d6(0x1a1)](){const _0x2353b1=_0x1813d6;var _0x6ff243,_0x95792c;if(!this[_0x2353b1(0x1cd)])throw Error(_0x2353b1(0x181));if(this['x']===0x0||this['y']===0x0){let _0x17b86c=this['_injector'][_0x2353b1(0x16e)](a[_0x2353b1(0x195)])[_0x2353b1(0x1d1)](this[_0x2353b1(0x1d0)],this[_0x2353b1(0x1ea)]);if(!_0x17b86c)throw Error(_0x2353b1(0x1c4)+this[_0x2353b1(0x1d0)]+_0x2353b1(0x192)+this['subUnitId']+_0x2353b1(0x1e3));let {transform:_0x594a87}=(0x0,a['convertPositionCellToSheetOverGrid'])(this[_0x2353b1(0x1d0)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x17b86c);this['x']=this['x']>0x0?this['x']:_0x594a87[_0x2353b1(0x1ca)],this['y']=this['y']>0x0?this['y']:_0x594a87['top'];}return this['width']=(_0x6ff243=this[_0x2353b1(0x1b1)])==null?n['DEFAULT_SHAPE_WIDTH']:_0x6ff243,this[_0x2353b1(0x1be)]=(_0x95792c=this[_0x2353b1(0x1be)])==null?n[_0x2353b1(0x151)]:_0x95792c,{'unitId':this[_0x2353b1(0x1d0)],'subUnitId':this[_0x2353b1(0x1ea)],'shapeId':this[_0x2353b1(0x177)],'shapeType':this['shapeType'],'shapeData':Object[_0x2353b1(0x172)](this[_0x2353b1(0x174)])[_0x2353b1(0x19b)]>0x0?this[_0x2353b1(0x174)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x2353b1(0x1be)]};}[_0x1813d6(0x1a7)](){const _0x39ac9d=_0x1813d6;return this[_0x39ac9d(0x177)];}[_0x1813d6(0x197)](){const _0x26d211=_0x1813d6;return this[_0x26d211(0x1cd)];}[_0x1813d6(0x169)](){const _0x54e330=_0x1813d6;return this[_0x54e330(0x174)];}[_0x1813d6(0x178)](){return{'x':this['x'],'y':this['y']};}[_0x1813d6(0x1d5)](){const _0xb088b=_0x1813d6;return{'width':this[_0xb088b(0x1b1)],'height':this[_0xb088b(0x1be)]};}},m=class extends p{constructor(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f){const _0x532dec=_0x1813d6;super(_0x53a100,_0x73b03f,_0x3411ed,_0x43f88f),f(this,_0x532dec(0x174),{});}[_0x1813d6(0x184)](_0x10871c){const _0x5ed4a2=_0x1813d6;if(!(0x0,e[_0x5ed4a2(0x1c2)])(_0x10871c))throw Error('Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20'+_0x10871c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x5ed4a2(0x184)](_0x10871c),this;}[_0x1813d6(0x152)](_0x410598){const _0x4cbbc8=_0x1813d6;var _0x2f64b8,_0x4339fc;return(_0x2f64b8=this[_0x4cbbc8(0x174)])!=null&&_0x2f64b8['ln']||(this[_0x4cbbc8(0x174)]['ln']={}),!((_0x4339fc=this[_0x4cbbc8(0x174)])==null||(_0x4339fc=_0x4339fc['ln'])==null)&&_0x4339fc[_0x4cbbc8(0x1aa)]||(this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)]={}),this[_0x4cbbc8(0x174)]['ln'][_0x4cbbc8(0x1aa)][_0x4cbbc8(0x1b6)]=_0x410598,this;}[_0x1813d6(0x15f)](_0xce7598){const _0x4cd92d=_0x1813d6;var _0x24538b,_0x116e82;return(_0x24538b=this[_0x4cd92d(0x174)])!=null&&_0x24538b['ln']||(this[_0x4cd92d(0x174)]['ln']={}),!((_0x116e82=this[_0x4cd92d(0x174)])==null||(_0x116e82=_0x116e82['ln'])==null)&&_0x116e82[_0x4cd92d(0x1bb)]||(this['shapeData']['ln']['endArrow']={}),this['shapeData']['ln']['endArrow'][_0x4cd92d(0x1b6)]=_0xce7598,this;}[_0x1813d6(0x175)](_0x376b2a){const _0x1347d6=_0x1813d6;var _0x5ebca6,_0x462a4e;return(_0x5ebca6=this['shapeData'])!=null&&_0x5ebca6['ln']||(this['shapeData']['ln']={}),!((_0x462a4e=this[_0x1347d6(0x174)])==null||(_0x462a4e=_0x462a4e['ln'])==null)&&_0x462a4e[_0x1347d6(0x1aa)]||(this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)]={}),this[_0x1347d6(0x174)]['ln'][_0x1347d6(0x1aa)][_0x1347d6(0x1b2)]=_0x376b2a,this;}[_0x1813d6(0x170)](_0x4d359){const _0x549309=_0x1813d6;var _0x49d49d,_0x3e9133;return(_0x49d49d=this[_0x549309(0x174)])!=null&&_0x49d49d['ln']||(this[_0x549309(0x174)]['ln']={}),!((_0x3e9133=this[_0x549309(0x174)])==null||(_0x3e9133=_0x3e9133['ln'])==null)&&_0x3e9133['endArrow']||(this[_0x549309(0x174)]['ln'][_0x549309(0x1bb)]={}),this[_0x549309(0x174)]['ln']['endArrow'][_0x549309(0x1b2)]=_0x4d359,this;}[_0x1813d6(0x1a1)](){const _0x526e8b=_0x1813d6;return super[_0x526e8b(0x1a1)]();}[_0x1813d6(0x1e8)](){const _0x5e66e3=_0x1813d6;var _0x3d71af;return((_0x3d71af=this[_0x5e66e3(0x174)])==null||(_0x3d71af=_0x3d71af[_0x5e66e3(0x18f)])==null?void 0x0:_0x3d71af['to'])||null;}['getStartConnectInfo'](){const _0x2949f9=_0x1813d6;var _0x29c99d;return((_0x29c99d=this[_0x2949f9(0x174)])==null||(_0x29c99d=_0x29c99d['relation'])==null?void 0x0:_0x29c99d['from'])||null;}};function h(_0x39ee41,_0x40861a,_0x4cef17,_0x31d45c,_0x5127f9,_0x3b855d){const _0x44b09a=_0x1813d6;let _0x20daf1=_0x5127f9[_0x44b09a(0x1d3)](_0x39ee41,_0x40861a,_0x4cef17);if(!_0x20daf1)return null;let _0x3b3ed9=_0x3b855d['getDrawingByParam']({'unitId':_0x39ee41,'subUnitId':_0x40861a,'drawingId':_0x4cef17});if(!(_0x3b3ed9!=null&&_0x3b3ed9[_0x44b09a(0x154)]))return null;let {left:_0x4d14d4=0x0,top:_0x1b0bdc=0x0,width:_0x551cd8=0x0,height:_0x1564ff=0x0,flipX:_0x5adbb8=!0x1,flipY:_0x30f742=!0x1,angle:_0x3ef2c6}=_0x3b3ed9['transform'];_0x20daf1[_0x44b09a(0x1ad)]({'width':_0x551cd8,'height':_0x1564ff});let _0x53047b=_0x20daf1[_0x44b09a(0x186)]()[_0x44b09a(0x1ac)](_0x2a4602=>_0x2a4602[_0x44b09a(0x18b)]===_0x31d45c);if(!_0x53047b)return null;let _0x58175f=_0x5adbb8?_0x551cd8-_0x53047b['x']:_0x53047b['x'],_0x129ed5=_0x30f742?_0x1564ff-_0x53047b['y']:_0x53047b['y'];if(_0x3ef2c6&&_0x3ef2c6!==0x0){let _0x3d0806=_0x3ef2c6*Math['PI']/0xb4,_0xe2f4d1=Math[_0x44b09a(0x1d4)](_0x3d0806),_0x92c34e=Math[_0x44b09a(0x19c)](_0x3d0806),_0x22bdf9=_0x551cd8/0x2,_0xc1641d=_0x1564ff/0x2,_0x56308f=_0x58175f-_0x22bdf9,_0x29a892=_0x129ed5-_0xc1641d;_0x58175f=_0x22bdf9+_0x56308f*_0xe2f4d1-_0x29a892*_0x92c34e,_0x129ed5=_0xc1641d+_0x56308f*_0x92c34e+_0x29a892*_0xe2f4d1;}_0x58175f+=_0x4d14d4,_0x129ed5+=_0x1b0bdc;let _0x3b899f=_0x53047b[_0x44b09a(0x17e)]/0xea60;_0x5adbb8&&(_0x3b899f=0xb4-_0x3b899f),_0x30f742&&(_0x3b899f=-_0x3b899f),_0x3b899f+=_0x3ef2c6||0x0,_0x3b899f=(_0x3b899f%0x168+0x168)%0x168;let _0x152c7b=(0x0,e[_0x44b09a(0x1bf)])({'left':_0x4d14d4,'top':_0x1b0bdc,'width':_0x551cd8,'height':_0x1564ff},_0x3ef2c6||0x0);return{'point':{'x':_0x58175f,'y':_0x129ed5},'angle':_0x3b899f,'bounds':_0x152c7b};}function g(_0x3ed06e,_0x336be8){const _0x2402c7=_0x1813d6;let _0x161d90=_0x336be8['x']-_0x3ed06e['x'],_0x148963=_0x336be8['y']-_0x3ed06e['y'];return Math[_0x2402c7(0x160)](_0x161d90)>=Math[_0x2402c7(0x160)](_0x148963)?_0x161d90>=0x0?0xb4:0x0:_0x148963>=0x0?0x10e:0x5a;}function _(_0x525e96,_0x51b11e,_0x1c5055,_0x152963,_0x512913,_0x2c7f34,_0x581b69){const _0x5ea419=_0x1813d6;let _0x152ae6=_0x2c7f34['getShapeModel'](_0x525e96,_0x51b11e,_0x1c5055);if(!_0x152ae6)return null;let _0x6e4272=_0x581b69[_0x5ea419(0x1ce)]({'unitId':_0x525e96,'subUnitId':_0x51b11e,'drawingId':_0x1c5055});if(!(_0x6e4272!=null&&_0x6e4272[_0x5ea419(0x154)]))return null;let {left:_0x5019e1=0x0,top:_0x5ccf36=0x0,width:_0x5409af=0x0,height:_0x2a8919=0x0,flipX:_0x4b9b8c=!0x1,flipY:_0x4fc813=!0x1}=_0x6e4272['transform'];_0x152ae6[_0x5ea419(0x1ad)]({'width':_0x5409af,'height':_0x2a8919});let _0x367eb8=_0x152ae6[_0x5ea419(0x1c9)]();if(_0x367eb8[_0x5ea419(0x19b)]<0x2)return null;let _0x480d42=_0x152963?_0x367eb8[0x0]:_0x367eb8[_0x367eb8[_0x5ea419(0x19b)]-0x1],_0x4b3aa8=new e['ConnectorCoordinateTransform']({'left':_0x5019e1,'top':_0x5ccf36,'width':_0x5409af,'height':_0x2a8919,'flipX':_0x4b9b8c,'flipY':_0x4fc813})[_0x5ea419(0x1c7)](_0x480d42);return{'point':_0x4b3aa8,'angle':g(_0x512913[_0x5ea419(0x1ba)],_0x4b3aa8),'bounds':{'left':_0x4b3aa8['x'],'top':_0x4b3aa8['y'],'width':0x0,'height':0x0}};}var v=class extends s['FWorksheet']{async[_0x1813d6(0x18a)](_0x2ed62a){const _0x52510=_0x1813d6;let {unitId:_0x4e63d9,subUnitId:_0x478397,shapeId:_0x36edaa,shapeType:_0x1f67ac,shapeData:_0x19954a,x:_0x4d0cc9,y:_0x4a0348,width:_0x3d92d1,height:_0x216272}=_0x2ed62a;return this[_0x52510(0x15c)]['executeCommand'](n[_0x52510(0x1d9)]['id'],{'unitId':_0x4e63d9,'subUnitId':_0x478397,'shapeId':_0x36edaa,'shapeType':_0x1f67ac,'shapeData':_0x19954a,'position':{'x':_0x4d0cc9,'y':_0x4a0348},'width':_0x3d92d1,'height':_0x216272});}async[_0x1813d6(0x14e)](_0x42a1ee){const _0x113aab=_0x1813d6;let {unitId:_0x459163,subUnitId:_0x4e088e,shapeId:_0x71259f,shapeType:_0x2f158b,shapeData:_0x4400bc,x:_0xe4ca49,y:_0xf48ad9,width:_0x46546a,height:_0x3e7c21}=_0x42a1ee;return this['_commandService'][_0x113aab(0x162)](n['SetShapeDrawingDataCommand']['id'],{'unitId':_0x459163,'subUnitId':_0x4e088e,'shapeId':_0x71259f,'shapeType':_0x2f158b,'shapeData':_0x4400bc,'position':{'x':_0xe4ca49,'y':_0xf48ad9},'width':_0x46546a,'height':_0x3e7c21});}[_0x1813d6(0x158)](_0x23bded){const _0x384e97=_0x1813d6;let _0x4ff28b=this[_0x384e97(0x194)]()[_0x384e97(0x15e)](),_0x821cb7=this[_0x384e97(0x18e)]();if(_0x23bded){let _0x25ecda=new p(_0x4ff28b,_0x821cb7,_0x23bded['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x25ecda,_0x4ff28b,_0x821cb7,_0x23bded['drawId']),_0x25ecda;}return new p(_0x4ff28b,_0x821cb7,(0x0,r[_0x384e97(0x1d8)])(),this['_injector']);}['newConnector'](_0x59357c){const _0x2157ae=_0x1813d6;let _0x156628=this[_0x2157ae(0x194)]()[_0x2157ae(0x15e)](),_0x1f710f=this[_0x2157ae(0x18e)]();if(_0x59357c){let _0x3e3a18=new m(_0x156628,_0x1f710f,_0x59357c[_0x2157ae(0x177)],this['_injector']);return this[_0x2157ae(0x1e4)](_0x3e3a18,_0x156628,_0x1f710f,_0x59357c['drawId']),_0x3e3a18;}return new m(_0x156628,_0x1f710f,(0x0,r[_0x2157ae(0x1d8)])(),this['_injector']);}[_0x1813d6(0x1d2)](){const _0x482d9d=_0x1813d6;let _0x378b53=this[_0x482d9d(0x14f)][_0x482d9d(0x16e)](o['ISheetDrawingService']),_0x2eb9be=this[_0x482d9d(0x194)]()[_0x482d9d(0x15e)](),_0x657c47=this[_0x482d9d(0x18e)](),_0x402615=_0x378b53['getDrawingData'](_0x2eb9be,_0x657c47);if(!_0x402615)return[];let _0x5e4ef2=[];for(let [_0x20a41a,_0x1f2f9a]of Object[_0x482d9d(0x157)](_0x402615))if(_0x1f2f9a&&_0x1f2f9a[_0x482d9d(0x1b0)]===r['DrawingTypeEnum'][_0x482d9d(0x1a3)]){let _0x3e52c9=new p(_0x2eb9be,_0x657c47,_0x20a41a,this['_injector']);this[_0x482d9d(0x1e4)](_0x3e52c9,_0x2eb9be,_0x657c47,_0x20a41a),_0x5e4ef2[_0x482d9d(0x1c0)](_0x3e52c9);}return _0x5e4ef2;}[_0x1813d6(0x198)](_0x508862){const _0x362892=_0x1813d6;let {unitId:_0x2afed8,subUnitId:_0x6603f0,drawId:_0x203fb4}=_0x508862;return this[_0x362892(0x15c)][_0x362892(0x162)](o['RemoveSheetDrawingCommand']['id'],{'unitId':_0x2afed8,'drawings':[{'unitId':_0x2afed8,'subUnitId':_0x6603f0,'drawingId':_0x203fb4,'drawingType':r['DrawingTypeEnum'][_0x362892(0x1a3)]}]});}async[_0x1813d6(0x1d7)](_0x17fe6d){const _0x5720c9=_0x1813d6;let {connector:_0x4d627,startTarget:_0x13d7ba,endTarget:_0x4a8637}=_0x17fe6d;if(!_0x13d7ba&&!_0x4a8637)return!0x1;let _0x581a5c=this[_0x5720c9(0x194)]()['getUnitId'](),_0x5e5f89=this[_0x5720c9(0x18e)](),_0x13c816=this['_injector'][_0x5720c9(0x16e)](n[_0x5720c9(0x16d)]),_0x21eb4c=this[_0x5720c9(0x14f)][_0x5720c9(0x16e)](i[_0x5720c9(0x1dd)]),_0x43f83c=_0x13c816[_0x5720c9(0x1d3)](_0x581a5c,_0x5e5f89,_0x4d627[_0x5720c9(0x177)]);if(!_0x43f83c)return!0x1;let _0x47ab86=_0x43f83c[_0x5720c9(0x197)](),_0x570ad2=_0x43f83c[_0x5720c9(0x191)](),_0x3be2f6={};for(let _0x363488 of _0x43f83c[_0x5720c9(0x19f)]()){let _0x2ea20f=_0x43f83c[_0x5720c9(0x18d)](_0x363488);_0x2ea20f!==void 0x0&&(_0x3be2f6[_0x363488]=_0x2ea20f);}let {startInfo:_0x44de94,endInfo:_0x44db18}=this['_resolveEndpoints'](_0x581a5c,_0x5e5f89,_0x4d627,_0x43f83c,_0x13d7ba,_0x4a8637,_0x13c816,_0x21eb4c,_0x570ad2);if(!_0x44de94||!_0x44db18)return!0x1;let _0x266eff=(0x0,e[_0x5720c9(0x1cc)])((0x0,e[_0x5720c9(0x1c8)])(_0x44de94,_0x44db18,_0x47ab86),_0x47ab86),_0x191018={};return _0x13d7ba?_0x191018['from']={'shapeId':_0x13d7ba['shape'][_0x5720c9(0x177)],'cxnIndex':_0x13d7ba[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['from']&&(_0x191018[_0x5720c9(0x1bd)]=_0x570ad2[_0x5720c9(0x1bd)]),_0x4a8637?_0x191018['to']={'shapeId':_0x4a8637['shape'][_0x5720c9(0x177)],'cxnIndex':_0x4a8637[_0x5720c9(0x1e7)]}:_0x570ad2!=null&&_0x570ad2['to']&&(_0x191018['to']=_0x570ad2['to']),this[_0x5720c9(0x15c)][_0x5720c9(0x162)](n[_0x5720c9(0x1a6)]['id'],{'unitId':_0x581a5c,'subUnitId':_0x5e5f89,'connectorShapeId':_0x4d627[_0x5720c9(0x177)],'width':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1b1)],'height':_0x266eff['worldRect'][_0x5720c9(0x1be)],'left':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1ca)],'top':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x17c)],'flipX':_0x266eff['worldRect'][_0x5720c9(0x1dc)]||!0x1,'flipY':_0x266eff[_0x5720c9(0x183)][_0x5720c9(0x1c3)]||!0x1,'oldAdjustValues':_0x3be2f6,'newAdjustValues':_0x266eff[_0x5720c9(0x1d6)],'newLineType':_0x266eff[_0x5720c9(0x185)],'oldLineType':_0x47ab86,'rotation':_0x266eff[_0x5720c9(0x19a)],'oldRelation':_0x570ad2,'newRelation':_0x191018});}[_0x1813d6(0x1e4)](_0x5696c0,_0x8b26e0,_0x5e661a,_0x5c23a9){const _0x3c1bcb=_0x1813d6;let _0x111d47=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](i[_0x3c1bcb(0x1dd)])[_0x3c1bcb(0x1ce)]({'unitId':_0x8b26e0,'subUnitId':_0x5e661a,'drawingId':_0x5c23a9});if(_0x111d47!=null&&_0x111d47[_0x3c1bcb(0x154)]){var _0x497d41,_0xaa0b4f,_0x33b5ea,_0x287c27;_0x5696c0['x']=(_0x497d41=_0x111d47['transform'][_0x3c1bcb(0x1ca)])==null?0x0:_0x497d41,_0x5696c0['y']=(_0xaa0b4f=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x17c)])==null?0x0:_0xaa0b4f,_0x5696c0[_0x3c1bcb(0x1b1)]=(_0x33b5ea=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1b1)])==null?_0x5696c0[_0x3c1bcb(0x1b1)]:_0x33b5ea,_0x5696c0[_0x3c1bcb(0x1be)]=(_0x287c27=_0x111d47[_0x3c1bcb(0x154)][_0x3c1bcb(0x1be)])==null?_0x5696c0['height']:_0x287c27;}let _0x13e6b5=this[_0x3c1bcb(0x14f)][_0x3c1bcb(0x16e)](n[_0x3c1bcb(0x16d)])[_0x3c1bcb(0x1d3)](_0x8b26e0,_0x5e661a,_0x5c23a9);if(_0x13e6b5){_0x5696c0[_0x3c1bcb(0x1cd)]=_0x13e6b5[_0x3c1bcb(0x197)]();let _0x2edd88=_0x13e6b5['getShapeData']();_0x2edd88&&(_0x5696c0[_0x3c1bcb(0x174)]=JSON['parse'](JSON[_0x3c1bcb(0x1a9)](_0x2edd88)));}}[_0x1813d6(0x163)](_0x225c0f,_0x505f00,_0x1365b7,_0x54470f,_0x3a3a77,_0x381f40,_0x485e8,_0x29a3f8,_0x250e13){const _0x32fd05=_0x1813d6;let _0x541a3c=null,_0xf74b8e=null;return _0x3a3a77&&(_0x541a3c=h(_0x225c0f,_0x505f00,_0x3a3a77[_0x32fd05(0x14d)]['drawId'],_0x3a3a77['connectionSiteIndex'],_0x485e8,_0x29a3f8)),_0x381f40&&(_0xf74b8e=h(_0x225c0f,_0x505f00,_0x381f40[_0x32fd05(0x14d)][_0x32fd05(0x177)],_0x381f40[_0x32fd05(0x1e7)],_0x485e8,_0x29a3f8)),_0x541a3c||(_0x541a3c=this['_resolveExistingOrFreeEndpoint'](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x0,_0xf74b8e,_0x250e13==null?void 0x0:_0x250e13[_0x32fd05(0x1bd)],_0x485e8,_0x29a3f8)),_0xf74b8e||(_0xf74b8e=this[_0x32fd05(0x1b9)](_0x225c0f,_0x505f00,_0x1365b7[_0x32fd05(0x177)],!0x1,_0x541a3c,_0x250e13==null?void 0x0:_0x250e13['to'],_0x485e8,_0x29a3f8)),{'startInfo':_0x541a3c,'endInfo':_0xf74b8e};}[_0x1813d6(0x1b9)](_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x2135c7,_0x5f3984,_0x4f49da){if(_0x2135c7){let _0x41e3d9=h(_0xea0db8,_0x1ff005,_0x2135c7['shapeId'],_0x2135c7['cxnIndex'],_0x5f3984,_0x4f49da);if(_0x41e3d9)return _0x41e3d9;}return _0x2b1264?_(_0xea0db8,_0x1ff005,_0x5cd2fa,_0x20bc32,_0x2b1264,_0x5f3984,_0x4f49da):null;}};s[_0x1813d6(0x15b)][_0x1813d6(0x16f)](v),exports[_0x1813d6(0x1df)]=m,exports[_0x1813d6(0x1b8)]=p;function _0x5281(){const _0xf8bea6=['object','prototype','getShapeData','ShapeArrowTypeEnum','isLineShape','15qYOWUo','SheetsShapeService','get','extend','setEndArrowSize','getAdjustPoints','keys','Module','shapeData','setStartArrowSize','ShapeLineCapEnum','drawId','getPosition','getDrawingPoints','toPrimitive','ShapeTypeEnum','top','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ang','ShapeLineJoinEnum','setNoneFill','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','fillType','worldRect','setShapeType','lineType','getConnectionSiteList','defineProperty','string','ShapeFillEnum','insertShape','index','function','getAdjustValueByName','getSheetId','relation','7356177KbyuXm','getShapeRelation','\x20and\x20subUnitId\x20','stroke','getWorkbook','SheetSkeletonService','setStrokeLineType','getShapeType','removeShape','iterator','rotation','length','sin','convertPositionCellToSheetOverGrid','GradientFill','getAdjustNames','92382kfRaDi','build','capType','DRAWING_SHAPE','ShapeLineDashEnum','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','UpdateConnectorRelationCommand','getShapeId','8sVLUBR','stringify','startArrow','14669237uSODYn','find','updateContext','setPosition','ShapeGradientTypeEnum','drawingType','width','size','setHeight','8535CZaxUd','gradientStops','type','opacity','FShape','_resolveExistingOrFreeEndpoint','point','endArrow','NoFill','from','height','getBasicShapeRotateBound','push','FEnum','isConnectorShape','flipY','Skeleton\x20for\x20unitId\x20','default','DEFAULT_SHAPE_WIDTH','localToWorld','routeConnectorLineShape','getConnectorLinePoints','left','getStartConnectInfo','computeConnectorRouteLayout','shapeType','getDrawingByParam','setShapeData','unitId','ensureSkeleton','getShapes','getShapeModel','cos','getSize','adjustValues','connectShapes','generateRandomId','InsertShapeCommand','fill','108nagUxo','flipX','IDrawingManagerService','setStrokeLineDashType','FConnectorShape','setShapeSolidFill','setWidth','ShapeArrowSizeEnum','\x20not\x20found','_preloadShapeProperties','904662iRQmbw','constructor','connectionSiteIndex','getEndConnectInfo','10pOshzf','subUnitId','shape','updateShape','_injector','2554384pMtCdh','DEFAULT_SHAPE_HEIGHT','setStartArrowType','setStrokeWidth','transform','setShapeGradientFill','lineJoinType','entries','newShape','setStrokeOpacity','symbol','FWorksheet','_commandService','gradientType','getUnitId','setEndArrowType','abs','684161wDNNXa','executeCommand','_resolveEndpoints','lineStrokeType','color','SolidFill'];_0x5281=function(){return _0xf8bea6;};return _0x5281();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x44fedf=_0x3e9f;(function(_0x368a8a,_0x51cb3b){const _0x4bf91b=_0x3e9f,_0xc7b42=_0x368a8a();while(!![]){try{const _0x32621b=parseInt(_0x4bf91b(0x86))/0x1+parseInt(_0x4bf91b(0xf9))/0x2*(-parseInt(_0x4bf91b(0xe3))/0x3)+parseInt(_0x4bf91b(0x8a))/0x4+parseInt(_0x4bf91b(0x95))/0x5*(-parseInt(_0x4bf91b(0x14b))/0x6)+parseInt(_0x4bf91b(0x90))/0x7+parseInt(_0x4bf91b(0xc9))/0x8+-parseInt(_0x4bf91b(0x146))/0x9;if(_0x32621b===_0x51cb3b)break;else _0xc7b42['push'](_0xc7b42['shift']());}catch(_0x596843){_0xc7b42['push'](_0xc7b42['shift']());}}}(_0x5de7,0x96505),Object[_0x44fedf(0xb9)](exports,Symbol[_0x44fedf(0xc4)],{'value':_0x44fedf(0xd3)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x2b334a){'@babel/helpers - typeof';const _0x2e2668=_0x44fedf;return o=typeof Symbol==_0x2e2668(0x12f)&&typeof Symbol[_0x2e2668(0x140)]=='symbol'?function(_0xc2d092){return typeof _0xc2d092;}:function(_0x211643){const _0x551fbd=_0x2e2668;return _0x211643&&typeof Symbol=='function'&&_0x211643[_0x551fbd(0x113)]===Symbol&&_0x211643!==Symbol[_0x551fbd(0x134)]?_0x551fbd(0xfd):typeof _0x211643;},o(_0x2b334a);}function s(_0x2e4cf4,_0x1b3d41){const _0x1e4a94=_0x44fedf;if(o(_0x2e4cf4)!=_0x1e4a94(0xf2)||!_0x2e4cf4)return _0x2e4cf4;var _0x42d6d6=_0x2e4cf4[Symbol[_0x1e4a94(0xfe)]];if(_0x42d6d6!==void 0x0){var _0x21da04=_0x42d6d6[_0x1e4a94(0x111)](_0x2e4cf4,_0x1b3d41||_0x1e4a94(0xea));if(o(_0x21da04)!='object')return _0x21da04;throw TypeError(_0x1e4a94(0x13d));}return(_0x1b3d41===_0x1e4a94(0xa4)?String:Number)(_0x2e4cf4);}function c(_0x56884c){const _0x1d052b=_0x44fedf;var _0x1db14d=s(_0x56884c,_0x1d052b(0xa4));return o(_0x1db14d)==_0x1d052b(0xfd)?_0x1db14d:_0x1db14d+'';}function _0x3e9f(_0x2ee558,_0x6ff1cb){_0x2ee558=_0x2ee558-0x83;const _0x5de7ee=_0x5de7();let _0x3e9f9a=_0x5de7ee[_0x2ee558];return _0x3e9f9a;}function l(_0x2ae487,_0x44859b,_0x8917f0){const _0x33b272=_0x44fedf;return(_0x44859b=c(_0x44859b))in _0x2ae487?Object[_0x33b272(0xb9)](_0x2ae487,_0x44859b,{'value':_0x8917f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ae487[_0x44859b]=_0x8917f0,_0x2ae487;}var u=class extends t['Disposable']{constructor(){const _0x48af76=_0x44fedf;super(),l(this,_0x48af76(0xf7),new Map()),l(this,_0x48af76(0x108),new Set()),l(this,_0x48af76(0x123),new Set());}[_0x44fedf(0xcd)](_0x10d680,_0x55d140,_0x42840f){const _0x2473a5=_0x44fedf;let _0x400aff=new e[(_0x2473a5(0x136))](_0x10d680,_0x55d140,_0x42840f);return this[_0x2473a5(0xf7)]['set'](_0x55d140,_0x400aff),(0x0,e[_0x2473a5(0x128)])(_0x10d680)&&this[_0x2473a5(0x108)][_0x2473a5(0x148)](_0x55d140),_0x400aff;}['getBasicShapeRelation'](_0x2901ff){const _0x4fd842=_0x44fedf;let _0x441d2b=[];for(let _0x41ff15 of this['_linesIds']){let _0x2dc8b2=this[_0x4fd842(0xf7)][_0x4fd842(0xfb)](_0x41ff15);if(_0x2dc8b2){let _0x7f782e=_0x2dc8b2['getShapeRelation']();if(_0x7f782e){var _0x3799ca,_0x5e7307;((_0x3799ca=_0x7f782e[_0x4fd842(0xd1)])==null?void 0x0:_0x3799ca['shapeId'])===_0x2901ff&&_0x441d2b[_0x4fd842(0x115)]({..._0x7f782e[_0x4fd842(0xd1)],'lineShapeId':_0x41ff15,'isFrom':!0x0}),((_0x5e7307=_0x7f782e['to'])==null?void 0x0:_0x5e7307[_0x4fd842(0xd4)])===_0x2901ff&&_0x441d2b[_0x4fd842(0x115)]({..._0x7f782e['to'],'lineShapeId':_0x41ff15,'isFrom':!0x1});}}}return _0x441d2b;}['getLineShapeRelation'](_0x13059d){const _0x3ed159=_0x44fedf;let _0x12bc67=this[_0x3ed159(0xf7)][_0x3ed159(0xfb)](_0x13059d);if(_0x12bc67)return _0x12bc67[_0x3ed159(0x92)]();}['getShapeType'](_0x2b5479){const _0x97ee71=_0x44fedf;let _0x2d9665=this['_shapes'][_0x97ee71(0xfb)](_0x2b5479);if(_0x2d9665)return _0x2d9665[_0x97ee71(0x89)]();}[_0x44fedf(0xb4)](_0x5c3ed5){const _0x3ca186=_0x44fedf;return this[_0x3ca186(0xf7)]['has'](_0x5c3ed5);}[_0x44fedf(0xe9)](_0x275558){const _0x24103e=_0x44fedf;let _0x32ab7b=this[_0x24103e(0xf7)]['get'](_0x275558);_0x32ab7b&&((0x0,e['isConnectorShape'])(_0x32ab7b[_0x24103e(0x89)]())&&this[_0x24103e(0x108)]['delete'](_0x275558),this[_0x24103e(0xf7)]['delete'](_0x275558));}[_0x44fedf(0xf8)](){const _0x247556=_0x44fedf;let _0x4b10e0=[];return this['_shapes'][_0x247556(0xd0)](_0x3adf88=>{const _0x45f532=_0x247556;_0x4b10e0['push'](_0x3adf88[_0x45f532(0xf8)]());}),_0x4b10e0;}[_0x44fedf(0xc3)](_0x36523a){const _0x504620=_0x44fedf;for(let _0xa714d5 of _0x36523a){let {id:_0xc95633,shapeType:_0x37f390}=_0xa714d5,_0x36ec26=this[_0x504620(0xcd)](_0x37f390,_0xc95633,_0xa714d5[_0x504620(0x87)]);_0x36ec26&&_0x36ec26[_0x504620(0xa5)]()&&this[_0x504620(0x108)][_0x504620(0x148)](_0xc95633);}}['dispose'](){const _0x4a992c=_0x44fedf;this[_0x4a992c(0xef)]||(this[_0x4a992c(0xf7)][_0x4a992c(0xd0)](_0x491083=>{const _0x1a2705=_0x4a992c;_0x491083[_0x1a2705(0x100)]();}),this['_shapes']['clear'](),this[_0x4a992c(0x108)][_0x4a992c(0xc7)](),this[_0x4a992c(0x123)][_0x4a992c(0xc7)](),super[_0x4a992c(0x100)]());}};function d(_0x319732,_0x2da745){return function(_0x2ecb0b,_0x2f2e75){_0x2da745(_0x2ecb0b,_0x2f2e75,_0x319732);};}function f(_0x2d9afb,_0x29515b,_0x37f1d5,_0x4c4c75){const _0x1c3faa=_0x44fedf;var _0x5126e4=arguments[_0x1c3faa(0xe2)],_0x4757f1=_0x5126e4<0x3?_0x29515b:_0x4c4c75===null?_0x4c4c75=Object[_0x1c3faa(0x13e)](_0x29515b,_0x37f1d5):_0x4c4c75,_0x1b8fdb;if(typeof Reflect==_0x1c3faa(0xf2)&&typeof Reflect['decorate']==_0x1c3faa(0x12f))_0x4757f1=Reflect[_0x1c3faa(0x138)](_0x2d9afb,_0x29515b,_0x37f1d5,_0x4c4c75);else{for(var _0x9b825f=_0x2d9afb[_0x1c3faa(0xe2)]-0x1;_0x9b825f>=0x0;_0x9b825f--)(_0x1b8fdb=_0x2d9afb[_0x9b825f])&&(_0x4757f1=(_0x5126e4<0x3?_0x1b8fdb(_0x4757f1):_0x5126e4>0x3?_0x1b8fdb(_0x29515b,_0x37f1d5,_0x4757f1):_0x1b8fdb(_0x29515b,_0x37f1d5))||_0x4757f1);}return _0x5126e4>0x3&&_0x4757f1&&Object[_0x1c3faa(0xb9)](_0x29515b,_0x37f1d5,_0x4757f1),_0x4757f1;}let p=class extends t[_0x44fedf(0xe1)]{constructor(_0x2c0bc7){const _0xea744f=_0x44fedf;super(),this['_resourcesManagerService']=_0x2c0bc7,l(this,_0xea744f(0x88),new Map()),this[_0xea744f(0xdf)]();}[_0x44fedf(0xcc)](_0x389a32,_0x25e80f){const _0xe84319=_0x44fedf;let _0xaf0f50=this[_0xe84319(0x88)][_0xe84319(0xfb)](_0x389a32);_0xaf0f50||(_0xaf0f50=new Map(),this['_shapeModelManagerMap']['set'](_0x389a32,_0xaf0f50));let _0x11ed61=_0xaf0f50[_0xe84319(0xfb)](_0x25e80f);return _0x11ed61||(_0x11ed61=new u(),_0xaf0f50[_0xe84319(0xce)](_0x25e80f,_0x11ed61)),_0x11ed61;}[_0x44fedf(0x149)](_0x560dcc,_0x1dcd08,_0x97d23d,_0x9ed70,_0x244787){this['_ensureShapeModelManager'](_0x560dcc,_0x1dcd08)['addShape'](_0x97d23d,_0x9ed70,_0x244787);}[_0x44fedf(0xe9)](_0x53a039,_0x4ea653,_0x4dfe07){const _0x2b8c0c=_0x44fedf;this[_0x2b8c0c(0xcc)](_0x53a039,_0x4ea653)['removeShape'](_0x4dfe07);}[_0x44fedf(0xad)](_0x24b55c,_0x1d00e7,_0x50f06d){const _0x55bf30=_0x44fedf;return this['_ensureShapeModelManager'](_0x24b55c,_0x1d00e7)[_0x55bf30(0x89)](_0x50f06d);}[_0x44fedf(0x89)](_0x552a95,_0x2cb7f3,_0x469057){const _0x53c8f1=_0x44fedf;return this[_0x53c8f1(0xcc)](_0x552a95,_0x2cb7f3)['getShapeType'](_0x469057);}['hasShape'](_0x273dfe,_0x720cd,_0x555cd7){const _0x33e197=_0x44fedf;return this[_0x33e197(0xcc)](_0x273dfe,_0x720cd)['hasShape'](_0x555cd7);}[_0x44fedf(0x13b)](_0x1929b3,_0xc14e51,_0x31462e){const _0x185544=_0x44fedf;return this['_ensureShapeModelManager'](_0x1929b3,_0xc14e51)[_0x185544(0x89)](_0x31462e);}['getShapeDataById'](_0x551e73,_0x168e01,_0x3ec675){const _0xd4a3e6=_0x44fedf;let _0x4bb162=this['_ensureShapeModelManager'](_0x551e73,_0x168e01);if(!_0x4bb162[_0xd4a3e6(0x89)](_0x3ec675))return;let _0x16968b=_0x4bb162[_0xd4a3e6(0xf7)][_0xd4a3e6(0xfb)](_0x3ec675);if(_0x16968b)return _0x16968b[_0xd4a3e6(0xbd)]();}['getShapeModel'](_0x138a19,_0x52167b,_0x41de6f){const _0x49510e=_0x44fedf;return this[_0x49510e(0xcc)](_0x138a19,_0x52167b)[_0x49510e(0xf7)][_0x49510e(0xfb)](_0x41de6f);}[_0x44fedf(0xa3)](_0x1b81a1,_0x19d1ba,_0x56c273){const _0x14f31c=_0x44fedf;return this[_0x14f31c(0xcc)](_0x1b81a1,_0x19d1ba)['getBasicShapeRelation'](_0x56c273);}[_0x44fedf(0x122)](_0xa18978,_0x4f813c,_0x2be469){const _0x1b4898=_0x44fedf;let _0x510adc=this[_0x1b4898(0xcc)](_0xa18978,_0x4f813c)['_shapes']['get'](_0x2be469);if(_0x510adc)return _0x510adc['getShapeRelation']();}[_0x44fedf(0x96)](){}[_0x44fedf(0x114)](_0x3daa86){const _0x224dd5=_0x44fedf;let _0x6dd24f={},_0x144ca1=this[_0x224dd5(0x88)][_0x224dd5(0xfb)](_0x3daa86);return _0x144ca1&&_0x144ca1[_0x224dd5(0xd0)]((_0x32d2c8,_0x2ce94a)=>{const _0x21b05a=_0x224dd5;let _0x343102=_0x32d2c8[_0x21b05a(0xf8)]();_0x343102[_0x21b05a(0xe2)]>0x0&&(_0x6dd24f[_0x2ce94a]=_0x343102);}),JSON[_0x224dd5(0x102)](_0x6dd24f);}[_0x44fedf(0x132)](_0x470c34,_0x255265){const _0x1c27cf=_0x44fedf;Object[_0x1c27cf(0xa0)](_0x255265)[_0x1c27cf(0xd0)](_0x2ceb4d=>{const _0x279b04=_0x1c27cf;this[_0x279b04(0xcc)](_0x470c34,_0x2ceb4d)['fromJSON'](_0x255265[_0x2ceb4d]);});}[_0x44fedf(0xf8)](){const _0x4d8ad6=_0x44fedf;let _0x10b8e8={};return this['_shapeModelManagerMap'][_0x4d8ad6(0xd0)]((_0x195bf5,_0x42d2b9)=>{const _0x4ed747=_0x4d8ad6;_0x10b8e8[_0x42d2b9]={},_0x195bf5[_0x4ed747(0xd0)]((_0x3ad19c,_0x1afe47)=>{const _0x3ca262=_0x4ed747;_0x10b8e8[_0x42d2b9][_0x1afe47]=_0x3ad19c[_0x3ca262(0xf8)]();});}),_0x10b8e8;}[_0x44fedf(0xc3)](_0x58380a){const _0x53ec61=_0x44fedf;Object[_0x53ec61(0xa0)](_0x58380a)[_0x53ec61(0xd0)](_0x306b18=>{const _0x4d7ada=_0x53ec61;let _0x5b87d7=_0x58380a[_0x306b18];Object[_0x4d7ada(0xa0)](_0x5b87d7)[_0x4d7ada(0xd0)](_0x5603d6=>{const _0x6466b0=_0x4d7ada;this[_0x6466b0(0xcc)](_0x306b18,_0x5603d6)[_0x6466b0(0xc3)](_0x5b87d7[_0x5603d6]);});});}['_initSnapshot'](){const _0x2a9797=_0x44fedf;this[_0x2a9797(0x10e)][_0x2a9797(0x97)]({'pluginName':_0x2a9797(0xed),'businesses':[t[_0x2a9797(0x11b)][_0x2a9797(0x14a)]],'toJson':_0x123614=>this['_serializeShapeForUnit'](_0x123614),'parseJson':_0x2e82e5=>JSON['parse'](_0x2e82e5),'onLoad':(_0x3aab5f,_0x465769)=>{const _0x2854df=_0x2a9797;this[_0x2854df(0x132)](_0x3aab5f,_0x465769);},'onUnLoad':_0x2283f7=>{const _0x4f0c58=_0x2a9797;let _0x63dd8d=this['_shapeModelManagerMap'][_0x4f0c58(0xfb)](_0x2283f7);_0x63dd8d&&(_0x63dd8d[_0x4f0c58(0xd0)](_0x572e1d=>{const _0xc64553=_0x4f0c58;_0x572e1d[_0xc64553(0x100)]();}),this[_0x4f0c58(0x88)][_0x4f0c58(0x103)](_0x2283f7));}});}[_0x44fedf(0x100)](){const _0x2684f1=_0x44fedf;this[_0x2684f1(0x88)]['forEach'](_0x15eca7=>{const _0x51ccdc=_0x2684f1;_0x15eca7[_0x51ccdc(0xd0)](_0xdacc04=>{_0xdacc04['dispose']();});});}};p=f([d(0x0,t[_0x44fedf(0xf5)])],p);const m={'id':_0x44fedf(0xf3),'type':t['CommandType'][_0x44fedf(0xaa)],'handler':(_0x4b6221,_0x1824b9)=>{const _0x17518b=_0x44fedf;let {unitId:_0x13f0bc,subUnitId:_0x1a910c,shapeType:_0x2792f6,shapeId:_0x51c8c0,shapeData:_0x1343a4}=_0x1824b9;return _0x4b6221[_0x17518b(0xfb)](p)[_0x17518b(0x149)](_0x13f0bc,_0x1a910c,_0x2792f6,_0x51c8c0,_0x1343a4),!0x0;}},h={'id':_0x44fedf(0xa7),'type':t['CommandType'][_0x44fedf(0xaa)],'handler':(_0x4fb1c5,_0x3c6c72)=>{const _0x25c639=_0x44fedf;let {unitId:_0x29a2db,subUnitId:_0x32304d,shapeId:_0xec8449}=_0x3c6c72;return _0x4fb1c5[_0x25c639(0xfb)](p)[_0x25c639(0xe9)](_0x29a2db,_0x32304d,_0xec8449),!0x0;}},g={'type':t[_0x44fedf(0xdb)]['COMMAND'],'id':'sheet.command.insert-shape','handler':(_0x493de2,_0x128601)=>{const _0x466ee3=_0x44fedf;var _0x3456e0,_0x43d400;let _0x525d65=(0x0,n[_0x466ee3(0xab)])(_0x493de2['get'](t[_0x466ee3(0xec)]),_0x128601);if(!_0x525d65)return!0x1;let _0x4bab9e=_0x493de2[_0x466ee3(0xfb)](n[_0x466ee3(0xb2)]),{unitId:_0x256662,subUnitId:_0x5958db}=_0x525d65,_0x182b6e=_0x4bab9e[_0x466ee3(0xbb)](_0x256662,_0x5958db);if(!_0x182b6e)return!0x1;let _0x55dd17=_0x493de2[_0x466ee3(0xfb)](t[_0x466ee3(0x117)]),_0x5afdd0=_0x493de2[_0x466ee3(0xfb)](t[_0x466ee3(0x8f)]),_0x419e75=_0x493de2[_0x466ee3(0xfb)](n[_0x466ee3(0x11a)]),_0x31789d=_0x493de2[_0x466ee3(0xfb)](r[_0x466ee3(0xbf)]),{shapeType:_0x3af1b5,shapeData:_0x320c8c}=_0x128601,_0x222955=_0x128601[_0x466ee3(0xd4)]||(0x0,t[_0x466ee3(0x116)])(),_0x459627={'unitId':_0x256662,'subUnitId':_0x5958db,'shapeId':_0x222955,'shapeType':_0x3af1b5,'shapeData':_0x320c8c},_0x58c60d=_0x128601['width']||0xc8,_0x561a3e=_0x128601[_0x466ee3(0xe8)]||0xc8,_0x42140b=0x0,_0x3a765b=0x0,_0x175049={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x282ae0={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x128601[_0x466ee3(0xcb)]){let {x:_0x525923,y:_0x1c6b2c}=_0x128601[_0x466ee3(0xcb)];_0x42140b=_0x525923,_0x3a765b=_0x1c6b2c,_0x175049=_0x182b6e[_0x466ee3(0x104)](_0x525923,_0x1c6b2c),_0x282ae0=_0x182b6e[_0x466ee3(0x104)](_0x525923+_0x58c60d,_0x1c6b2c+_0x561a3e);}else{if(_0x128601[_0x466ee3(0xd6)]){let {startRow:_0x5636af,startColumn:_0x3f980b}=_0x128601[_0x466ee3(0xd6)];_0x175049={'row':_0x5636af,'rowOffset':0xa,'column':_0x3f980b,'columnOffset':0xa};let _0x3ef731=_0x182b6e[_0x466ee3(0xf6)](_0x5636af,_0x3f980b);_0x42140b=_0x3ef731['startX']+0xa,_0x3a765b=_0x3ef731['startY']+0xa,_0x282ae0=_0x182b6e[_0x466ee3(0x104)](_0x42140b+_0x58c60d,_0x3a765b+_0x561a3e);}}let _0x12d471={'from':_0x175049,'to':_0x282ae0},_0x544d5={'unitId':_0x256662,'subUnitId':_0x5958db,'drawingId':_0x222955,'drawingType':t[_0x466ee3(0x8d)]['DRAWING_SHAPE'],'sheetTransform':_0x12d471,'transform':{'left':_0x42140b,'top':_0x3a765b,'width':_0x58c60d,'height':_0x561a3e},'data':{'shapeType':_0x3af1b5,'shapeData':_0x320c8c},'axisAlignSheetTransform':_0x12d471,'allowTransform':!0x0};(0x0,e[_0x466ee3(0x128)])(_0x3af1b5)&&(_0x544d5['data']['fill']=!0x1,_0x544d5[_0x466ee3(0xba)]['rotateEnabled']=!0x1,_0x544d5[_0x466ee3(0xba)][_0x466ee3(0x133)]=!0x1,_0x544d5[_0x466ee3(0xba)][_0x466ee3(0x8b)]=!0x1,_0x544d5[_0x466ee3(0xa6)][_0x466ee3(0x12e)]=!0x1,_0x544d5['transform'][_0x466ee3(0x133)]=!0x1,_0x544d5['transform']['borderEnabled']=!0x1);let {undo:_0x49e808,redo:_0x1b3618,objects:_0x214417}=_0x31789d['getBatchAddOp']([_0x544d5]),_0x260c4f=_0x419e75['onCommandExecute']({'id':r[_0x466ee3(0x98)]['id'],'params':{'unitId':_0x256662,'drawings':[_0x544d5]}}),_0x1f16ad=[...(_0x3456e0=_0x260c4f[_0x466ee3(0x9b)])==null?[]:_0x3456e0,{'id':r[_0x466ee3(0xf4)]['id'],'params':{'unitId':_0x256662,'subUnitId':_0x5958db,'op':_0x1b3618,'objects':_0x214417,'type':r['DrawingApplyType'][_0x466ee3(0xb7)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x256662]},..._0x260c4f[_0x466ee3(0xeb)],{'id':m['id'],'params':_0x459627}],_0x5cc0a5=[{'id':h['id'],'params':{'unitId':_0x256662,'subUnitId':_0x5958db,'shapeId':_0x222955}},...(_0x43d400=_0x260c4f[_0x466ee3(0xa8)])==null?[]:_0x43d400,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x256662,'subUnitId':_0x5958db,'op':_0x49e808,'objects':_0x214417,'type':r[_0x466ee3(0xfa)][_0x466ee3(0x120)]}},{'id':r[_0x466ee3(0x94)]['id'],'params':[_0x256662]},..._0x260c4f['undos']];return(0x0,t[_0x466ee3(0xda)])(_0x1f16ad,_0x55dd17)[_0x466ee3(0xac)]?(_0x5afdd0['pushUndoRedo']({'unitID':_0x256662,'undoMutations':_0x5cc0a5,'redoMutations':_0x1f16ad}),!0x0):!0x1;}},_={'id':_0x44fedf(0xbe),'type':t['CommandType'][_0x44fedf(0xaa)],'handler':(_0x770079,_0x404f3f)=>{const _0x443f7b=_0x44fedf;let {unitId:_0x2b86a6,subUnitId:_0x4fdb60,shapeType:_0x1168f0,shapeId:_0x1a5bf9,shapeData:_0x51d718}=_0x404f3f,_0x1a71a7=_0x770079[_0x443f7b(0xfb)](p)[_0x443f7b(0xe6)](_0x2b86a6,_0x4fdb60,_0x1a5bf9);return _0x1a71a7&&(_0x1168f0!==void 0x0&&_0x1a71a7[_0x443f7b(0x96)](_0x1168f0),_0x51d718&&(_0x1a71a7==null||_0x1a71a7['setShapeData'](_0x51d718,!0x0))),!0x0;}},v={'type':t[_0x44fedf(0xdb)][_0x44fedf(0x101)],'id':_0x44fedf(0xee),'handler':(_0x3fa108,_0x5717e3)=>{const _0x2bb079=_0x44fedf;var _0x4b1958,_0x1bfa30;let _0x21005e=(0x0,n[_0x2bb079(0xab)])(_0x3fa108[_0x2bb079(0xfb)](t[_0x2bb079(0xec)]),_0x5717e3);if(!_0x21005e)return!0x1;let _0x3c05ac=_0x3fa108[_0x2bb079(0xfb)](n[_0x2bb079(0xb2)]),{unitId:_0x4089b1,subUnitId:_0x4985b5}=_0x21005e,_0x155f2c=_0x3c05ac[_0x2bb079(0xbb)](_0x4089b1,_0x4985b5);if(!_0x155f2c)return!0x1;let _0x5ba3f8=_0x3fa108[_0x2bb079(0xfb)](p),{shapeId:_0xd808fd,shapeType:_0x56f9f6,shapeData:_0x55fdc4,position:_0x1f6985,width:_0x281ad0,height:_0x51bae0}=_0x5717e3,_0x5aa39f=_0x5ba3f8[_0x2bb079(0xe6)](_0x4089b1,_0x4985b5,_0xd808fd);if(!_0x5aa39f)return!0x1;let _0x77cbb5=_0x3fa108['get'](t[_0x2bb079(0x117)]),_0x573d01=_0x3fa108[_0x2bb079(0xfb)](t[_0x2bb079(0x8f)]),_0x5eb32d=_0x3fa108[_0x2bb079(0xfb)](n[_0x2bb079(0x11a)]),_0x1d6c36=_0x3fa108[_0x2bb079(0xfb)](r[_0x2bb079(0xbf)]),_0x23885b={'unitId':_0x4089b1,'subUnitId':_0x4985b5,'shapeId':_0xd808fd,'shapeType':_0x56f9f6,'shapeData':_0x55fdc4},_0x4b710b=_0x5aa39f['getShapeType'](),_0x3445d7=_0x5aa39f['getShapeData'](),{x:_0x126005,y:_0x992972}=_0x1f6985,_0x34d1ad={'from':_0x155f2c['getCellIndexAndOffsetByPosition'](_0x126005,_0x992972),'to':_0x155f2c['getCellIndexAndOffsetByPosition'](_0x126005+_0x281ad0,_0x992972+_0x51bae0)},_0x444f19={'unitId':_0x4089b1,'subUnitId':_0x4985b5,'drawingId':_0xd808fd,'drawingType':t['DrawingTypeEnum'][_0x2bb079(0x107)],'sheetTransform':_0x34d1ad,'transform':{'left':_0x126005,'top':_0x992972,'width':_0x281ad0,'height':_0x51bae0},'data':{'shapeType':_0x56f9f6,'shapeData':_0x55fdc4},'axisAlignSheetTransform':_0x34d1ad,'allowTransform':!0x0};(0x0,e[_0x2bb079(0x128)])(_0x56f9f6)&&(_0x444f19[_0x2bb079(0xba)]['fill']=!0x1,_0x444f19[_0x2bb079(0xba)]['rotateEnabled']=!0x1,_0x444f19['data'][_0x2bb079(0x133)]=!0x1,_0x444f19[_0x2bb079(0xba)]['borderEnabled']=!0x1,_0x444f19['transform']['rotateEnabled']=!0x1,_0x444f19[_0x2bb079(0xa6)][_0x2bb079(0x133)]=!0x1,_0x444f19[_0x2bb079(0xa6)]['borderEnabled']=!0x1);let {undo:_0x317af7,redo:_0x10d8d5,objects:_0x4a968a}=_0x1d6c36['getBatchUpdateOp']([_0x444f19]),_0x4d88fe=_0x5eb32d[_0x2bb079(0x13c)]({'id':r[_0x2bb079(0x147)]['id'],'params':{'unitId':_0x4089b1,'drawings':[_0x444f19]}}),_0x12ae94=[...(_0x4b1958=_0x4d88fe[_0x2bb079(0x9b)])==null?[]:_0x4b1958,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x4089b1,'subUnitId':_0x4985b5,'op':_0x10d8d5,'objects':_0x4a968a,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x2bb079(0x94)]['id'],'params':[_0x4089b1]},..._0x4d88fe[_0x2bb079(0xeb)],{'id':_['id'],'params':_0x23885b}],_0x204500=[...(_0x1bfa30=_0x4d88fe['preUndos'])==null?[]:_0x1bfa30,{'id':r[_0x2bb079(0xf4)]['id'],'params':{'unitId':_0x4089b1,'subUnitId':_0x4985b5,'op':_0x317af7,'objects':_0x4a968a,'type':r[_0x2bb079(0xfa)][_0x2bb079(0x11c)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4089b1]},..._0x4d88fe['undos'],{'id':_['id'],'params':{'unitId':_0x4089b1,'subUnitId':_0x4985b5,'shapeType':_0x4b710b,'shapeId':_0xd808fd,'shapeData':_0x3445d7}}];return(0x0,t[_0x2bb079(0xda)])(_0x12ae94,_0x77cbb5)[_0x2bb079(0xac)]?(_0x573d01[_0x2bb079(0xd2)]({'unitID':_0x4089b1,'undoMutations':_0x204500,'redoMutations':_0x12ae94}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x44fedf(0x101)],'id':_0x44fedf(0xf0),'handler':(_0x2ed1f4,_0x533942)=>{const _0x1105a1=_0x44fedf;var _0xc976f1,_0x591e85;let _0x343cfa=(0x0,n['getSheetCommandTarget'])(_0x2ed1f4[_0x1105a1(0xfb)](t[_0x1105a1(0xec)]),_0x533942);if(!_0x343cfa)return!0x1;let _0x52e8fe=_0x2ed1f4['get'](n[_0x1105a1(0xb2)]),{unitId:_0x2cb5b3,subUnitId:_0x1517bd}=_0x343cfa,_0x536437=_0x52e8fe[_0x1105a1(0x125)](_0x2cb5b3,_0x1517bd);if(!_0x536437)return!0x1;let _0x22b244=_0x2ed1f4[_0x1105a1(0xfb)](r[_0x1105a1(0xbf)]),{shapeId:_0x5b17d9,flipH:_0x167268,flipV:_0x54947d}=_0x533942,_0x48fafe=_0x22b244['getDrawingByParam']({'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'drawingId':_0x5b17d9});if(!_0x48fafe)return!0x1;let _0xc7fe0c=_0x2ed1f4[_0x1105a1(0xfb)](p)[_0x1105a1(0xe6)](_0x2cb5b3,_0x1517bd,_0x5b17d9);if(!_0xc7fe0c)return!0x1;let _0x3b721d=_0x2ed1f4[_0x1105a1(0xfb)](t[_0x1105a1(0x117)]),_0x2c38e2=_0x2ed1f4['get'](t[_0x1105a1(0x8f)]),_0x408f8a=_0x2ed1f4[_0x1105a1(0xfb)](n[_0x1105a1(0x11a)]),_0x371a34={..._0x48fafe[_0x1105a1(0xa6)]};_0x167268!==void 0x0&&(_0x371a34[_0x1105a1(0xb6)]=!_0x371a34[_0x1105a1(0xb6)]),_0x54947d!==void 0x0&&(_0x371a34[_0x1105a1(0x137)]=!_0x371a34[_0x1105a1(0x137)]);let _0x19f92d=(0x0,r[_0x1105a1(0xc5)])(_0x371a34,_0x536437),_0xa5f47b=(0x0,r['transformToAxisAlignPosition'])(_0x371a34,_0x536437),_0x4f857e=_0xc7fe0c[_0x1105a1(0x89)](),_0x48417f=_0xc7fe0c['getShapeData'](),_0x364fc3={'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'drawingId':_0x5b17d9,'drawingType':t[_0x1105a1(0x8d)][_0x1105a1(0x107)],'sheetTransform':_0x19f92d,'transform':_0x371a34,'data':{'shapeType':_0x4f857e,'shapeData':_0x48417f},'axisAlignSheetTransform':_0xa5f47b,'allowTransform':!0x0},{undo:_0x477de4,redo:_0x2b7d80,objects:_0x538a2f}=_0x22b244['getBatchUpdateOp']([_0x364fc3]),_0x4fbd03=_0x408f8a[_0x1105a1(0x13c)]({'id':r[_0x1105a1(0x147)]['id'],'params':{'unitId':_0x2cb5b3,'drawings':[_0x364fc3]}}),_0x512746=[...(_0xc976f1=_0x4fbd03[_0x1105a1(0x9b)])==null?[]:_0xc976f1,{'id':r[_0x1105a1(0xf4)]['id'],'params':{'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'op':_0x2b7d80,'objects':_0x538a2f,'type':r[_0x1105a1(0xfa)][_0x1105a1(0x11c)]}},{'id':r[_0x1105a1(0x94)]['id'],'params':[_0x2cb5b3]},..._0x4fbd03[_0x1105a1(0xeb)]],_0x174b1d=[...(_0x591e85=_0x4fbd03[_0x1105a1(0xa8)])==null?[]:_0x591e85,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'op':_0x477de4,'objects':_0x538a2f,'type':r[_0x1105a1(0xfa)][_0x1105a1(0x11c)]}},{'id':r[_0x1105a1(0x94)]['id'],'params':[_0x2cb5b3]},..._0x4fbd03[_0x1105a1(0x10d)]];if((0x0,e[_0x1105a1(0x128)])(_0x4f857e)){let _0x4467d3=_0xc7fe0c[_0x1105a1(0x92)]();if(_0x4467d3){let _0x147a0c={..._0x4467d3};_0x147a0c[_0x1105a1(0xd1)]=void 0x0,_0x147a0c['to']=void 0x0,_0x512746[_0x1105a1(0x115)]({'id':_['id'],'params':{'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'shapeId':_0x5b17d9,'shapeType':_0x4f857e,'shapeData':{'relation':_0x147a0c}}}),_0x174b1d[_0x1105a1(0x115)]({'id':_['id'],'params':{'unitId':_0x2cb5b3,'subUnitId':_0x1517bd,'shapeId':_0x5b17d9,'shapeType':_0x4f857e,'shapeData':{'relation':_0x4467d3}}});}}return(0x0,t[_0x1105a1(0xda)])(_0x512746,_0x3b721d)[_0x1105a1(0xac)]?(_0x2c38e2['pushUndoRedo']({'unitID':_0x2cb5b3,'undoMutations':_0x174b1d,'redoMutations':_0x512746}),!0x0):!0x1;}},b={'type':t['CommandType'][_0x44fedf(0x101)],'id':_0x44fedf(0x8e),'handler':(_0x55d1a3,_0x3fb8b2)=>{const _0x1f6765=_0x44fedf;var _0x4ad33b,_0x297acf;let _0x457849=(0x0,n[_0x1f6765(0xab)])(_0x55d1a3[_0x1f6765(0xfb)](t[_0x1f6765(0xec)]),_0x3fb8b2);if(!_0x457849)return!0x1;let _0x574d31=_0x55d1a3['get'](n['SheetSkeletonService']),{unitId:_0x57ba13,subUnitId:_0x52e683}=_0x457849,_0x32bfed=_0x574d31[_0x1f6765(0x125)](_0x57ba13,_0x52e683);if(!_0x32bfed)return!0x1;let _0x49612c=_0x55d1a3['get'](r[_0x1f6765(0xbf)]),{shapeId:_0x114d77,rotate:_0x13c8cb}=_0x3fb8b2,_0x526391=_0x49612c[_0x1f6765(0xb8)]({'unitId':_0x57ba13,'subUnitId':_0x52e683,'drawingId':_0x114d77});if(!_0x526391)return!0x1;let _0x95ce16=_0x55d1a3[_0x1f6765(0xfb)](p)['getShapeModel'](_0x57ba13,_0x52e683,_0x114d77);if(!_0x95ce16)return!0x1;let _0x4f6991=_0x55d1a3['get'](t['ICommandService']),_0x47f923=_0x55d1a3[_0x1f6765(0xfb)](t[_0x1f6765(0x8f)]),_0x2c9125=_0x55d1a3['get'](n[_0x1f6765(0x11a)]),_0x26ec29={..._0x526391[_0x1f6765(0xa6)]};_0x13c8cb!==void 0x0&&(_0x26ec29['angle']=(_0x26ec29[_0x1f6765(0x12c)]||0x0)+_0x13c8cb);let _0x108467=(0x0,r[_0x1f6765(0xc5)])(_0x26ec29,_0x32bfed),_0x5716d1=(0x0,r[_0x1f6765(0x12d)])(_0x26ec29,_0x32bfed),_0xe3eee5=_0x95ce16[_0x1f6765(0x89)](),_0x346688=_0x95ce16[_0x1f6765(0xbd)](),_0x820d4f={'unitId':_0x57ba13,'subUnitId':_0x52e683,'drawingId':_0x114d77,'drawingType':t[_0x1f6765(0x8d)]['DRAWING_SHAPE'],'sheetTransform':_0x108467,'transform':_0x26ec29,'data':{'shapeType':_0xe3eee5,'shapeData':_0x346688},'axisAlignSheetTransform':_0x5716d1,'allowTransform':!0x0},{undo:_0xeab68f,redo:_0x55e801,objects:_0x125f54}=_0x49612c[_0x1f6765(0x141)]([_0x820d4f]),_0x20974b=_0x2c9125[_0x1f6765(0x13c)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x57ba13,'drawings':[_0x820d4f]}}),_0x20fffc=[...(_0x4ad33b=_0x20974b[_0x1f6765(0x9b)])==null?[]:_0x4ad33b,{'id':r[_0x1f6765(0xf4)]['id'],'params':{'unitId':_0x57ba13,'subUnitId':_0x52e683,'op':_0x55e801,'objects':_0x125f54,'type':r[_0x1f6765(0xfa)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x57ba13]},..._0x20974b[_0x1f6765(0xeb)]],_0x23c597=[...(_0x297acf=_0x20974b[_0x1f6765(0xa8)])==null?[]:_0x297acf,{'id':r[_0x1f6765(0xf4)]['id'],'params':{'unitId':_0x57ba13,'subUnitId':_0x52e683,'op':_0xeab68f,'objects':_0x125f54,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x1f6765(0x94)]['id'],'params':[_0x57ba13]},..._0x20974b[_0x1f6765(0x10d)]];return(0x0,t[_0x1f6765(0xda)])(_0x20fffc,_0x4f6991)[_0x1f6765(0xac)]?(_0x47f923[_0x1f6765(0xd2)]({'unitID':_0x57ba13,'undoMutations':_0x23c597,'redoMutations':_0x20fffc}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x44fedf(0x101)],'id':_0x44fedf(0xe4),'handler':(_0x201ce6,_0x5cbd26)=>{const _0x4d6ed6=_0x44fedf;var _0xe7aaa3;let _0x36ef6e=(0x0,n[_0x4d6ed6(0xab)])(_0x201ce6[_0x4d6ed6(0xfb)](t[_0x4d6ed6(0xec)]),_0x5cbd26);if(!_0x36ef6e)return!0x1;let {unitId:_0x5ea324,subUnitId:_0x5bd80d}=_0x36ef6e,{shapeId:_0x415854}=_0x5cbd26,_0x5079e7=_0x201ce6[_0x4d6ed6(0xfb)](p)[_0x4d6ed6(0xe6)](_0x5ea324,_0x5bd80d,_0x415854);if(!_0x5079e7)return!0x1;let _0x35f44b=_0x5079e7[_0x4d6ed6(0x11d)](),_0x1f22a5=(_0xe7aaa3=_0x35f44b==null?void 0x0:_0x35f44b['isHorizontal'])==null?!0x0:_0xe7aaa3,_0x51d51a=!_0x1f22a5,_0x2636d0=_0x201ce6['get'](t[_0x4d6ed6(0x117)]),_0x2deaa0=_0x201ce6[_0x4d6ed6(0xfb)](t[_0x4d6ed6(0x8f)]),_0x4b1f55={'unitId':_0x5ea324,'subUnitId':_0x5bd80d,'shapeId':_0x415854,'shapeData':{'shapeText':{'isHorizontal':_0x51d51a}}},_0x44739b={'unitId':_0x5ea324,'subUnitId':_0x5bd80d,'shapeId':_0x415854,'shapeData':{'shapeText':{'isHorizontal':_0x1f22a5}}},_0x2ba391=[{'id':_['id'],'params':_0x4b1f55}],_0x2872da=[{'id':_['id'],'params':_0x44739b}];return(0x0,t[_0x4d6ed6(0xda)])(_0x2ba391,_0x2636d0)['result']?(_0x2deaa0[_0x4d6ed6(0xd2)]({'unitID':_0x5ea324,'undoMutations':_0x2872da,'redoMutations':_0x2ba391}),!0x0):!0x1;}},S={'type':t[_0x44fedf(0xdb)][_0x44fedf(0x101)],'id':_0x44fedf(0xfc),'handler':(_0x42b005,_0x2be92e)=>{const _0x193fae=_0x44fedf;var _0x37ee66,_0x505bef,_0x149ccd,_0x319f45;let _0x2e2063=(0x0,n[_0x193fae(0xab)])(_0x42b005[_0x193fae(0xfb)](t['IUniverInstanceService']),_0x2be92e);if(!_0x2e2063)return!0x1;let _0x2977f0=_0x42b005[_0x193fae(0xfb)](n[_0x193fae(0xb2)]),{unitId:_0x58d41a,subUnitId:_0x1a917d}=_0x2e2063,_0x15b5eb=_0x2977f0[_0x193fae(0x125)](_0x58d41a,_0x1a917d);if(!_0x15b5eb)return!0x1;let _0x33ce7a=_0x42b005[_0x193fae(0xfb)](r[_0x193fae(0xbf)]),{connectorShapeId:_0x3488a8,width:_0xb8ac68,height:_0x19b090,left:_0x5581ef,top:_0x462972,flipX:_0x211faa,flipY:_0x51e084,rotation:_0x1d1ae9,oldAdjustValues:_0x4096f1,newAdjustValues:_0x105df0,oldLineType:_0xe8e12e,newLineType:_0xc178d9,oldRelation:_0x1ef2b8,newRelation:_0x9c9f0f}=_0x2be92e,_0x14e0a6=_0x33ce7a['getDrawingByParam']({'unitId':_0x58d41a,'subUnitId':_0x1a917d,'drawingId':_0x3488a8});if(!_0x14e0a6)return!0x1;let _0x45c58d=_0x42b005['get'](p)[_0x193fae(0xe6)](_0x58d41a,_0x1a917d,_0x3488a8);if(!_0x45c58d)return!0x1;let _0x335e2b=_0x42b005[_0x193fae(0xfb)](t[_0x193fae(0x117)]),_0x586483=_0x42b005[_0x193fae(0xfb)](t[_0x193fae(0x8f)]),_0x56cb10=_0x42b005[_0x193fae(0xfb)](n[_0x193fae(0x11a)]),_0x1d8120={..._0x14e0a6[_0x193fae(0xa6)],'width':_0xb8ac68,'height':_0x19b090,'left':_0x5581ef,'top':_0x462972,'flipX':_0x211faa,'flipY':_0x51e084,'angle':(_0x37ee66=_0x1d1ae9==null?(_0x505bef=_0x14e0a6[_0x193fae(0xa6)])==null?void 0x0:_0x505bef[_0x193fae(0x12c)]:_0x1d1ae9)==null?0x0:_0x37ee66},_0x5e788b=(0x0,r[_0x193fae(0xc5)])(_0x1d8120,_0x15b5eb),_0x532184=(0x0,r[_0x193fae(0x12d)])(_0x1d8120,_0x15b5eb),_0x396da4=_0x45c58d[_0x193fae(0x89)](),_0x534b5a=_0x45c58d[_0x193fae(0xbd)](),_0xc60144={'unitId':_0x58d41a,'subUnitId':_0x1a917d,'drawingId':_0x3488a8,'drawingType':t['DrawingTypeEnum'][_0x193fae(0x107)],'sheetTransform':_0x5e788b,'transform':_0x1d8120,'data':{'shapeType':_0xc178d9||_0xe8e12e||_0x396da4,'shapeData':{..._0x534b5a,'adjustValues':_0x105df0||_0x4096f1||(_0x534b5a==null?void 0x0:_0x534b5a[_0x193fae(0xaf)]),'relation':_0x9c9f0f||_0x1ef2b8||(_0x534b5a==null?void 0x0:_0x534b5a[_0x193fae(0xf1)])}},'axisAlignSheetTransform':_0x532184,'allowTransform':!0x0},{undo:_0x24d5f6,redo:_0xa41922,objects:_0x8851de}=_0x33ce7a[_0x193fae(0x141)]([_0xc60144]),_0x5a73bf=_0x56cb10['onCommandExecute']({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x58d41a,'drawings':[_0xc60144]}}),_0x35d25=[...(_0x149ccd=_0x5a73bf[_0x193fae(0x9b)])==null?[]:_0x149ccd,{'id':r[_0x193fae(0xf4)]['id'],'params':{'unitId':_0x58d41a,'subUnitId':_0x1a917d,'op':_0xa41922,'objects':_0x8851de,'type':r[_0x193fae(0xfa)][_0x193fae(0x11c)]}},{'id':r[_0x193fae(0x94)]['id'],'params':[_0x58d41a]},..._0x5a73bf['redos'],{'id':_['id'],'params':{'unitId':_0x58d41a,'subUnitId':_0x1a917d,'shapeId':_0x3488a8,'shapeType':_0xc178d9,'shapeData':{'adjustValues':_0x105df0,'relation':_0x9c9f0f}}}],_0x52b3cb=[...(_0x319f45=_0x5a73bf['preUndos'])==null?[]:_0x319f45,{'id':r[_0x193fae(0xf4)]['id'],'params':{'unitId':_0x58d41a,'subUnitId':_0x1a917d,'op':_0x24d5f6,'objects':_0x8851de,'type':r[_0x193fae(0xfa)][_0x193fae(0x11c)]}},{'id':r[_0x193fae(0x94)]['id'],'params':[_0x58d41a]},..._0x5a73bf[_0x193fae(0x10d)],{'id':_['id'],'params':{'unitId':_0x58d41a,'subUnitId':_0x1a917d,'shapeId':_0x3488a8,'shapeType':_0x396da4,'shapeData':{..._0x534b5a,'adjustValues':_0x4096f1||(_0x534b5a==null?void 0x0:_0x534b5a[_0x193fae(0xaf)]),'relation':_0x1ef2b8||(_0x534b5a==null?void 0x0:_0x534b5a['relation'])}}}];return(0x0,t['sequenceExecute'])(_0x35d25,_0x335e2b)[_0x193fae(0xac)]?(_0x586483[_0x193fae(0xd2)]({'unitID':_0x58d41a,'undoMutations':_0x52b3cb,'redoMutations':_0x35d25}),!0x0):!0x1;}},C={'type':t[_0x44fedf(0xdb)]['COMMAND'],'id':_0x44fedf(0xb3),'handler':(_0x1ed978,_0x4cb7c0)=>{const _0x5085fd=_0x44fedf;var _0x2a6e47,_0x36cd2a;let _0x19183d=(0x0,n[_0x5085fd(0xab)])(_0x1ed978['get'](t['IUniverInstanceService']),_0x4cb7c0);if(!_0x19183d)return!0x1;let _0x1a7302=_0x1ed978[_0x5085fd(0xfb)](n[_0x5085fd(0xb2)]),{unitId:_0x7dba2,subUnitId:_0x55139a}=_0x19183d,_0x17c197=_0x1a7302['getSkeleton'](_0x7dba2,_0x55139a);if(!_0x17c197)return!0x1;let _0x1ea727=_0x1ed978[_0x5085fd(0xfb)](r[_0x5085fd(0xbf)]),{shapeId:_0x738122,width:_0x455f4c,height:_0x5aa0e8,left:_0x511917,top:_0x22c523,flipX:_0x2fc424,flipY:_0x4e4a79,angle:_0x1f5992,oldAdjustValues:_0x347b84,newAdjustValues:_0x2904bb,oldLineType:_0x13ff21,newLineType:_0x1f0ddc}=_0x4cb7c0,_0x5a04ce=_0x1ea727[_0x5085fd(0xb8)]({'unitId':_0x7dba2,'subUnitId':_0x55139a,'drawingId':_0x738122});if(!_0x5a04ce)return!0x1;let _0x342831=_0x1ed978[_0x5085fd(0xfb)](p)[_0x5085fd(0xe6)](_0x7dba2,_0x55139a,_0x738122);if(!_0x342831)return!0x1;let _0x3a1988=_0x1ed978[_0x5085fd(0xfb)](t['ICommandService']),_0x5bbcd7=_0x1ed978[_0x5085fd(0xfb)](t['IUndoRedoService']),_0x41daaa=_0x1ed978[_0x5085fd(0xfb)](n['SheetInterceptorService']),_0x4b2873={..._0x5a04ce[_0x5085fd(0xa6)],'width':_0x455f4c,'height':_0x5aa0e8,'left':_0x511917,'top':_0x22c523,'flipX':_0x2fc424,'flipY':_0x4e4a79,'angle':_0x1f5992},_0x1f8138=(0x0,r[_0x5085fd(0xc5)])(_0x4b2873,_0x17c197),_0x258607=(0x0,r[_0x5085fd(0x12d)])(_0x4b2873,_0x17c197),_0x1d3f6d=_0x342831[_0x5085fd(0x89)](),_0x2f27f5=_0x342831[_0x5085fd(0xbd)](),_0x260206={'unitId':_0x7dba2,'subUnitId':_0x55139a,'drawingId':_0x738122,'drawingType':t[_0x5085fd(0x8d)][_0x5085fd(0x107)],'sheetTransform':_0x1f8138,'transform':_0x4b2873,'data':{'shapeType':_0x1f0ddc||_0x13ff21||_0x1d3f6d,'shapeData':{..._0x2f27f5,'adjustValues':_0x2904bb||_0x347b84||(_0x2f27f5==null?void 0x0:_0x2f27f5['adjustValues'])}},'axisAlignSheetTransform':_0x258607,'allowTransform':!0x0},{undo:_0x170da6,redo:_0x3d426e,objects:_0x282ea3}=_0x1ea727[_0x5085fd(0x141)]([_0x260206]),_0x35be3f=_0x41daaa[_0x5085fd(0x13c)]({'id':r[_0x5085fd(0x147)]['id'],'params':{'unitId':_0x7dba2,'drawings':[_0x260206]}}),_0x272633=[...(_0x2a6e47=_0x35be3f['preRedos'])==null?[]:_0x2a6e47,{'id':r[_0x5085fd(0xf4)]['id'],'params':{'unitId':_0x7dba2,'subUnitId':_0x55139a,'op':_0x3d426e,'objects':_0x282ea3,'type':r['DrawingApplyType'][_0x5085fd(0x11c)]}},{'id':r[_0x5085fd(0x94)]['id'],'params':[_0x7dba2]},..._0x35be3f[_0x5085fd(0xeb)],{'id':_['id'],'params':{'unitId':_0x7dba2,'subUnitId':_0x55139a,'shapeId':_0x738122,'shapeType':_0x1f0ddc,'shapeData':{'adjustValues':_0x2904bb}}}],_0x23ce75=[...(_0x36cd2a=_0x35be3f[_0x5085fd(0xa8)])==null?[]:_0x36cd2a,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x7dba2,'subUnitId':_0x55139a,'op':_0x170da6,'objects':_0x282ea3,'type':r['DrawingApplyType'][_0x5085fd(0x11c)]}},{'id':r[_0x5085fd(0x94)]['id'],'params':[_0x7dba2]},..._0x35be3f[_0x5085fd(0x10d)],{'id':_['id'],'params':{'unitId':_0x7dba2,'subUnitId':_0x55139a,'shapeId':_0x738122,'shapeType':_0x1d3f6d,'shapeData':{..._0x2f27f5,'adjustValues':_0x347b84||(_0x2f27f5==null?void 0x0:_0x2f27f5[_0x5085fd(0xaf)])}}}];return(0x0,t[_0x5085fd(0xda)])(_0x272633,_0x3a1988)['result']?(_0x5bbcd7['pushUndoRedo']({'unitID':_0x7dba2,'undoMutations':_0x23ce75,'redoMutations':_0x272633}),!0x0):!0x1;}},w={'id':_0x44fedf(0x12b),'type':t[_0x44fedf(0xdb)][_0x44fedf(0xaa)],'handler':(_0x457b97,_0x559a8a)=>{const _0x14bf05=_0x44fedf;let {unitId:_0x22c269,subUnitId:_0x4ccc8,shapeType:_0xc721ca,shapeId:_0x342283,shapeData:_0x387e62}=_0x559a8a,_0x2e7417=_0x457b97[_0x14bf05(0xfb)](p)['getShapeModel'](_0x22c269,_0x4ccc8,_0x342283);return _0x2e7417&&(_0x2e7417['setShapeType'](_0xc721ca),_0x387e62&&(_0x2e7417==null||_0x2e7417[_0x14bf05(0x13f)](_0x387e62))),!0x0;}},T={'id':_0x44fedf(0x99),'type':t[_0x44fedf(0xdb)]['COMMAND'],'handler':(_0x4f85c2,_0xa9b63f)=>{const _0x3c1d74=_0x44fedf;if(!_0xa9b63f)return!0x1;let _0x43ff52=_0x4f85c2['get'](t[_0x3c1d74(0x117)]),_0x579765=_0x4f85c2[_0x3c1d74(0xfb)](p),_0x386c37=_0x4f85c2['get'](t[_0x3c1d74(0x8f)]),_0x333d74=[],_0x3b1f9a=[],{unitId:_0x10d9fe,subUnitId:_0x1519fb,shapeId:_0x26d018,shapeType:_0x15ae5f,shapeData:_0x205305}=_0xa9b63f,_0x2862=_0x579765[_0x3c1d74(0xe6)](_0x10d9fe,_0x1519fb,_0x26d018);if(_0x2862){let _0x265767=_0x2862[_0x3c1d74(0x89)](),_0x78316b=Object[_0x3c1d74(0x112)]({},_0x2862[_0x3c1d74(0xbd)]()),_0x51dd60={'unitId':_0x10d9fe,'subUnitId':_0x1519fb,'shapeId':_0x26d018,'shapeType':_0x15ae5f,'shapeData':_0x205305},_0x4dde81={'unitId':_0x10d9fe,'subUnitId':_0x1519fb,'shapeId':_0x26d018,'shapeType':_0x265767,'shapeData':_0x78316b};return _0x333d74[_0x3c1d74(0x115)]({'id':w['id'],'params':_0x51dd60}),_0x3b1f9a['push']({'id':w['id'],'params':_0x4dde81}),_0x333d74[_0x3c1d74(0x142)](_0x1e304d=>_0x43ff52[_0x3c1d74(0x9c)](_0x1e304d['id'],_0x1e304d[_0x3c1d74(0x9e)]))&&_0x386c37[_0x3c1d74(0xd2)]({'unitID':_0x10d9fe,'redoMutations':[..._0x333d74],'undoMutations':[..._0x3b1f9a]}),!0x0;}return!0x1;}};var E=_0x44fedf(0x130),D=_0x44fedf(0x126);const O={};let k=class extends t[_0x44fedf(0xe1)]{constructor(_0x516e20,_0x4939e6,_0x45ce25,_0x57800d,_0x564bc5){const _0x1127ce=_0x44fedf;super(),this[_0x1127ce(0x121)]=_0x516e20,this['_sheetInterceptorService']=_0x4939e6,this[_0x1127ce(0x131)]=_0x45ce25,this[_0x1127ce(0xa9)]=_0x57800d,this[_0x1127ce(0x109)]=_0x564bc5,this[_0x1127ce(0x91)](),this['_initCommandInterceptor']();}[_0x44fedf(0x91)](){const _0x180c92=_0x44fedf;[g,v,y,b,x,S,C,m,h,w,_][_0x180c92(0xd0)](_0x49e46d=>this[_0x180c92(0x85)](this[_0x180c92(0x121)][_0x180c92(0x124)](_0x49e46d)));}[_0x44fedf(0x9f)](){const _0x5ea6bc=_0x44fedf;this[_0x5ea6bc(0x85)](this[_0x5ea6bc(0x12a)][_0x5ea6bc(0xd5)]({'getMutations':_0x3ff192=>{const _0x45c802=_0x5ea6bc;if(_0x3ff192['id']===r[_0x45c802(0xa1)]['id']){let {drawings:_0x1eac24}=_0x3ff192[_0x45c802(0x9e)],_0x14d565=_0x1eac24[_0x45c802(0x83)](_0x2cbb5a=>_0x2cbb5a[_0x45c802(0x11e)]===t[_0x45c802(0x8d)][_0x45c802(0x107)]);if(_0x14d565['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2e6ea8=[],_0x2ca81e=[];return _0x14d565['forEach'](_0x3368be=>{const _0x498f5f=_0x45c802;let {unitId:_0x53e4f4,subUnitId:_0x3f6af,drawingId:_0x5263df}=_0x3368be,_0x17fd63=this['_sheetsShapeService'][_0x498f5f(0xe6)](_0x53e4f4,_0x3f6af,_0x5263df);if(!_0x17fd63)throw TypeError(_0x498f5f(0xc2)+_0x17fd63);_0x2e6ea8[_0x498f5f(0x115)]({'id':h['id'],'params':{'unitId':_0x53e4f4,'subUnitId':_0x3f6af,'shapeId':_0x5263df}}),_0x2ca81e[_0x498f5f(0x115)]({'id':m['id'],'params':{'unitId':_0x53e4f4,'subUnitId':_0x3f6af,'shapeId':_0x5263df,'shapeType':_0x17fd63[_0x498f5f(0x89)](),'shapeData':_0x17fd63[_0x498f5f(0xbd)]()}});let _0x142cf8=this[_0x498f5f(0xa9)][_0x498f5f(0xa3)](_0x53e4f4,_0x3f6af,_0x5263df);if(_0x142cf8)for(let _0x6bb5d0 of _0x142cf8){let _0x7a5ed6=_0x6bb5d0['lineShapeId'],_0x31b692=_0x6bb5d0[_0x498f5f(0xd7)],_0x1f3c02=_0x31b692?{'from':void 0x0}:{'to':void 0x0},_0x3511ea=_0x31b692?{'from':{'shapeId':_0x6bb5d0['shapeId'],'cxnIndex':_0x6bb5d0[_0x498f5f(0xbc)]}}:{'to':{'shapeId':_0x6bb5d0[_0x498f5f(0xd4)],'cxnIndex':_0x6bb5d0[_0x498f5f(0xbc)]}};_0x2e6ea8['push']({'id':_['id'],'params':{'unitId':_0x53e4f4,'subUnitId':_0x3f6af,'shapeId':_0x7a5ed6,'shapeData':{'relation':_0x1f3c02}}}),_0x2ca81e[_0x498f5f(0x115)]({'id':_['id'],'params':{'unitId':_0x53e4f4,'subUnitId':_0x3f6af,'shapeId':_0x7a5ed6,'shapeData':{'relation':_0x3511ea}}});}}),{'preRedos':_0x2e6ea8,'redos':[],'preUndos':[],'undos':_0x2ca81e};}if(_0x3ff192['id']===r[_0x45c802(0x147)]['id']){let {drawings:_0x353a35}=_0x3ff192['params'],_0x3572ba=_0x353a35[_0x45c802(0x83)](_0x41ae07=>_0x41ae07['drawingType']===t[_0x45c802(0x8d)][_0x45c802(0x107)]);if(_0x3572ba[_0x45c802(0xe2)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x58d569=[],_0x2b2ca8=[];for(let _0x22c3f8 of _0x3572ba){let {unitId:_0x5030c0,subUnitId:_0x3fc397,drawingId:_0x113fa2,transform:_0x24f66a}=_0x22c3f8;if(!_0x5030c0||!_0x3fc397||!_0x113fa2||!_0x24f66a)continue;let _0x2a5e7c=this[_0x45c802(0xa9)][_0x45c802(0xe6)](_0x5030c0,_0x3fc397,_0x113fa2);if(!_0x2a5e7c)throw TypeError(_0x45c802(0xc2)+_0x2a5e7c);if((0x0,e[_0x45c802(0x128)])(_0x2a5e7c[_0x45c802(0x89)]())){let _0x4de897=this[_0x45c802(0xa9)]['getLineShapeRelation'](_0x5030c0,_0x3fc397,_0x113fa2);_0x4de897&&(_0x58d569[_0x45c802(0x115)]({'id':_['id'],'params':{'unitId':_0x5030c0,'subUnitId':_0x3fc397,'shapeId':_0x113fa2,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2b2ca8[_0x45c802(0x115)]({'id':_['id'],'params':{'unitId':_0x5030c0,'subUnitId':_0x3fc397,'shapeId':_0x113fa2,'shapeData':{'relation':_0x4de897}}}));}else{let _0x22731a=this[_0x45c802(0xa9)][_0x45c802(0xa3)](_0x5030c0,_0x3fc397,_0x113fa2);if(_0x22731a&&_0x22731a[_0x45c802(0xe2)]>0x0)for(let _0x47a0d6 of _0x22731a){let _0x5829f0=_0x47a0d6[_0x45c802(0xb5)],_0x3456d8=_0x47a0d6['isFrom'],_0x3b6d0b=this[_0x45c802(0xa9)][_0x45c802(0xe6)](_0x5030c0,_0x3fc397,_0x5829f0);if(!_0x3b6d0b)continue;let _0x2c170d=_0x3b6d0b['getStartConnectInfo'](),_0x237679=_0x3b6d0b[_0x45c802(0x10c)]();_0x2c170d&&_0x237679?this[_0x45c802(0x84)](_0x5030c0,_0x3fc397,_0x5829f0,_0x3b6d0b,_0x2c170d,_0x237679,_0x58d569,_0x2b2ca8,_0x113fa2,_0x24f66a):this[_0x45c802(0xc0)](_0x5030c0,_0x3fc397,_0x5829f0,_0x3b6d0b,_0x3456d8?_0x2c170d:_0x237679,_0x3456d8,_0x58d569,_0x2b2ca8,_0x113fa2,_0x24f66a);}}}return{'preRedos':[],'redos':_0x58d569,'preUndos':_0x2b2ca8,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x44fedf(0x127)](_0x493ae1,_0x31c201,_0x24d185,_0x4751e9,_0x4e7349){const _0x2301d3=_0x44fedf;if(!_0x31c201||!_0x24d185)return null;let {shapeId:_0x498c71,cxnIndex:_0x1b7fb0}=_0x493ae1,_0xf76b14=this[_0x2301d3(0xa9)]['getShapeModel'](_0x31c201,_0x24d185,_0x498c71);if(!_0xf76b14)return null;let _0x564be7=this['_drawingManagerService'][_0x2301d3(0xb8)]({'unitId':_0x31c201,'subUnitId':_0x24d185,'drawingId':_0x498c71});if(!(_0x564be7!=null&&_0x564be7[_0x2301d3(0xa6)]))return null;let {left:_0x4ed43f=0x0,top:_0x54fc04=0x0,width:_0x5c7e71=0x0,height:_0x56c119=0x0,flipX:_0x1c26a3=!0x1,flipY:_0x30d87f=!0x1,angle:_0x55ec24}=_0x564be7['transform'];if(_0x4e7349&&_0x4751e9===_0x498c71){var _0x37d853,_0x4a5eb2,_0x27fddd,_0x4ff1a1,_0x3e321d,_0x26ad3c,_0x1aac6a;_0x4ed43f=(_0x37d853=_0x4e7349[_0x2301d3(0x11f)])==null?_0x4ed43f:_0x37d853,_0x54fc04=(_0x4a5eb2=_0x4e7349['top'])==null?_0x54fc04:_0x4a5eb2,_0x5c7e71=(_0x27fddd=_0x4e7349[_0x2301d3(0xff)])==null?_0x5c7e71:_0x27fddd,_0x56c119=(_0x4ff1a1=_0x4e7349[_0x2301d3(0xe8)])==null?_0x56c119:_0x4ff1a1,_0x1c26a3=(_0x3e321d=_0x4e7349[_0x2301d3(0xb6)])==null?_0x1c26a3:_0x3e321d,_0x30d87f=(_0x26ad3c=_0x4e7349[_0x2301d3(0x137)])==null?_0x30d87f:_0x26ad3c,_0x55ec24=(_0x1aac6a=_0x4e7349['angle'])==null?_0x55ec24:_0x1aac6a;}_0xf76b14[_0x2301d3(0xde)]({'width':_0x5c7e71,'height':_0x56c119});let _0x5414eb=_0xf76b14[_0x2301d3(0xd8)]()[_0x2301d3(0x10b)](_0x21bfa7=>_0x21bfa7['index']===_0x1b7fb0);if(!_0x5414eb)return null;let _0x186c70=_0x1c26a3?_0x5c7e71-_0x5414eb['x']:_0x5414eb['x'],_0x532326=_0x30d87f?_0x56c119-_0x5414eb['y']:_0x5414eb['y'];if(_0x55ec24!==0x0&&_0x55ec24!=null){let _0x4ff5d6=_0x55ec24*Math['PI']/0xb4,_0x268fe7=Math['cos'](_0x4ff5d6),_0x3aefb1=Math['sin'](_0x4ff5d6),_0x5671f7=_0x5c7e71/0x2,_0x38c40f=_0x56c119/0x2,_0x420cc9=_0x186c70-_0x5671f7,_0x14a624=_0x532326-_0x38c40f;_0x186c70=_0x5671f7+_0x420cc9*_0x268fe7-_0x14a624*_0x3aefb1,_0x532326=_0x38c40f+_0x420cc9*_0x3aefb1+_0x14a624*_0x268fe7;}_0x186c70+=_0x4ed43f,_0x532326+=_0x54fc04;let _0x268432=_0x5414eb['ang']/0xea60;_0x1c26a3&&(_0x268432=0xb4-_0x268432),_0x30d87f&&(_0x268432=-_0x268432),_0x268432+=_0x55ec24||0x0,_0x268432=(_0x268432%0x168+0x168)%0x168;let _0x1863a9=(0x0,e[_0x2301d3(0xca)])({'left':_0x4ed43f,'top':_0x54fc04,'width':_0x5c7e71,'height':_0x56c119},_0x55ec24||0x0);return{'point':{'x':_0x186c70,'y':_0x532326},'angle':_0x268432,'bounds':_0x1863a9};}['_addLineRerouteUpdates'](_0x3a2358,_0x20b79d,_0x4248fd,_0x5f05ea,_0x594f6e,_0x4505d0,_0x42d72b,_0xd10545,_0x2b301e,_0x10c63c){const _0x19e15c=_0x44fedf;let _0xc027ab=this[_0x19e15c(0x131)][_0x19e15c(0x125)](_0x3a2358,_0x20b79d);if(!_0xc027ab)return;let _0x2b6146=_0x5f05ea[_0x19e15c(0x92)](),_0x6875aa=_0x5f05ea[_0x19e15c(0x13a)](),_0x4e10cc={},_0x5e0801={};_0x6875aa[_0x19e15c(0xd0)](_0x189e91=>{let _0x5200c5=_0x5f05ea['getAdjustValueByName'](_0x189e91);_0x5e0801[_0x189e91]=_0x5200c5==null?0x0:_0x5200c5;});let _0x5c299a=this[_0x19e15c(0x127)](_0x594f6e,_0x3a2358,_0x20b79d,_0x2b301e,_0x10c63c),_0x175336=this['_getConnectPointInfo'](_0x4505d0,_0x3a2358,_0x20b79d,_0x2b301e,_0x10c63c);if(_0x5c299a&&_0x175336){let _0x25c525=_0x5f05ea['getShapeType'](),_0x3a2c69=(0x0,e['routeConnectorLineShape'])(_0x5c299a,_0x175336,_0x25c525),_0x5300bd=_0x25c525;if(_0x3a2c69){let _0xaadd2c=(0x0,e[_0x19e15c(0x119)])(_0x3a2c69,_0x5f05ea[_0x19e15c(0x89)]()),_0x410057=this[_0x19e15c(0x109)]['getDrawingData'](_0x3a2358,_0x20b79d);if(_0x410057&&_0x410057[_0x4248fd]){let _0x41b14d=_0x410057[_0x4248fd];_0x5300bd=_0xaadd2c['lineType'];for(let [_0x3386b2,_0x7d9d64]of Object[_0x19e15c(0x144)](_0xaadd2c[_0x19e15c(0xaf)]))_0x4e10cc[_0x3386b2]=_0x7d9d64;let _0x224e5d={..._0x41b14d[_0x19e15c(0xa6)],'width':_0xaadd2c[_0x19e15c(0xc6)][_0x19e15c(0xff)],'height':_0xaadd2c[_0x19e15c(0xc6)]['height'],'left':_0xaadd2c[_0x19e15c(0xc6)][_0x19e15c(0x11f)],'top':_0xaadd2c['worldRect'][_0x19e15c(0xdd)],'flipX':_0xaadd2c[_0x19e15c(0xc6)][_0x19e15c(0xb6)],'flipY':_0xaadd2c['worldRect'][_0x19e15c(0x137)],'angle':_0xaadd2c[_0x19e15c(0x105)]},_0x9d873a=(0x0,r[_0x19e15c(0xc5)])(_0x224e5d,_0xc027ab),_0x124eb7=(0x0,r[_0x19e15c(0x12d)])(_0x224e5d,_0xc027ab),_0xc13f7e={'unitId':_0x3a2358,'subUnitId':_0x20b79d,'drawingType':t[_0x19e15c(0x8d)][_0x19e15c(0x107)],'drawingId':_0x4248fd,'transform':_0x224e5d,'sheetTransform':_0x9d873a,'axisAlignSheetTransform':_0x124eb7},{unitId:_0x2f6de6,subUnitId:_0x4a0ca9,undo:_0x3ade56,redo:_0x32bdb6,objects:_0x269add}=this[_0x19e15c(0x109)]['getBatchUpdateOp']([_0xc13f7e]);_0x42d72b[_0x19e15c(0x115)]({'id':r[_0x19e15c(0xf4)]['id'],'params':{'unitId':_0x2f6de6,'subUnitId':_0x4a0ca9,'op':_0x32bdb6,'objects':_0x269add,'type':r['DrawingApplyType'][_0x19e15c(0x11c)]}}),_0xd10545['push']({'id':r[_0x19e15c(0xf4)]['id'],'params':{'unitId':_0x2f6de6,'subUnitId':_0x4a0ca9,'op':_0x3ade56,'objects':_0x269add,'type':r[_0x19e15c(0xfa)][_0x19e15c(0x11c)]}});}_0x5f05ea[_0x19e15c(0x129)]();}_0x42d72b[_0x19e15c(0x115)]({'id':_['id'],'params':{'unitId':_0x3a2358,'subUnitId':_0x20b79d,'shapeId':_0x4248fd,'shapeType':_0x5300bd,'shapeData':{'adjustValues':_0x4e10cc,'relation':_0x2b6146}}}),_0xd10545[_0x19e15c(0x115)]({'id':_['id'],'params':{'unitId':_0x3a2358,'subUnitId':_0x20b79d,'shapeId':_0x4248fd,'shapeType':_0x25c525,'shapeData':{'adjustValues':_0x5e0801,'relation':_0x2b6146}}});}}[_0x44fedf(0xc0)](_0x2960cc,_0x2a9218,_0x46991e,_0x199585,_0x4a4067,_0x864bd0,_0x39504e,_0x13bec8,_0x264867,_0x11ac74){const _0x3e9eb8=_0x44fedf;var _0x42eeab;if(!_0x4a4067)return;let _0x5c6cf3=this[_0x3e9eb8(0x131)]['getSkeleton'](_0x2960cc,_0x2a9218);if(!_0x5c6cf3)return;let _0xe33764=(_0x42eeab=this[_0x3e9eb8(0x109)][_0x3e9eb8(0xb8)]({'unitId':_0x2960cc,'subUnitId':_0x2a9218,'drawingId':_0x264867}))==null?void 0x0:_0x42eeab[_0x3e9eb8(0xa6)];if(!_0xe33764)return;let _0x1c558c=_0xe33764['left']!==_0x11ac74[_0x3e9eb8(0x11f)]||_0xe33764['top']!==_0x11ac74[_0x3e9eb8(0xdd)],_0x22965d=_0xe33764['width']!==_0x11ac74[_0x3e9eb8(0xff)]||_0xe33764['height']!==_0x11ac74[_0x3e9eb8(0xe8)],_0x2d8de9=_0xe33764[_0x3e9eb8(0xb6)]!==_0x11ac74['flipX']||_0xe33764[_0x3e9eb8(0x137)]!==_0x11ac74['flipY'],_0x42fe9a=_0xe33764['angle']!==_0x11ac74[_0x3e9eb8(0x12c)];if(_0x1c558c&&!_0x22965d&&!_0x2d8de9&&!_0x42fe9a){var _0x2de065,_0x16f312,_0x60e1ab,_0x253bbf;let _0x3bfe63=((_0x2de065=_0x11ac74[_0x3e9eb8(0x11f)])==null?0x0:_0x2de065)-((_0x16f312=_0xe33764['left'])==null?0x0:_0x16f312),_0xf1c4be=((_0x60e1ab=_0x11ac74[_0x3e9eb8(0xdd)])==null?0x0:_0x60e1ab)-((_0x253bbf=_0xe33764['top'])==null?0x0:_0x253bbf),_0x2a29f1=this[_0x3e9eb8(0x109)][_0x3e9eb8(0xdc)](_0x2960cc,_0x2a9218);if(_0x2a29f1&&_0x2a29f1[_0x46991e]){var _0x32f0f4,_0x16b382,_0x1216d7,_0x47d8da;let _0x21d472=_0x2a29f1[_0x46991e],_0x280f5={..._0x21d472[_0x3e9eb8(0xa6)],'left':((_0x32f0f4=(_0x16b382=_0x21d472['transform'])==null?void 0x0:_0x16b382[_0x3e9eb8(0x11f)])==null?0x0:_0x32f0f4)+_0x3bfe63,'top':((_0x1216d7=(_0x47d8da=_0x21d472[_0x3e9eb8(0xa6)])==null?void 0x0:_0x47d8da[_0x3e9eb8(0xdd)])==null?0x0:_0x1216d7)+_0xf1c4be},_0x1d6939=(0x0,r[_0x3e9eb8(0xc5)])(_0x280f5,_0x5c6cf3),_0x184161=(0x0,r[_0x3e9eb8(0x12d)])(_0x280f5,_0x5c6cf3),_0x46f4d9={'unitId':_0x2960cc,'subUnitId':_0x2a9218,'drawingType':t[_0x3e9eb8(0x8d)][_0x3e9eb8(0x107)],'drawingId':_0x46991e,'transform':_0x280f5,'sheetTransform':_0x1d6939,'axisAlignSheetTransform':_0x184161},{unitId:_0x6a428f,subUnitId:_0x5c70e1,undo:_0x896034,redo:_0x58245a,objects:_0xb1042b}=this['_drawingManagerService'][_0x3e9eb8(0x141)]([_0x46f4d9]);_0x39504e['push']({'id':r[_0x3e9eb8(0xf4)]['id'],'params':{'unitId':_0x6a428f,'subUnitId':_0x5c70e1,'op':_0x58245a,'objects':_0xb1042b,'type':r[_0x3e9eb8(0xfa)]['UPDATE']}}),_0x13bec8['push']({'id':r[_0x3e9eb8(0xf4)]['id'],'params':{'unitId':_0x6a428f,'subUnitId':_0x5c70e1,'op':_0x896034,'objects':_0xb1042b,'type':r['DrawingApplyType'][_0x3e9eb8(0x11c)]}});}}else{let _0x4eac4b=_0x199585[_0x3e9eb8(0x143)](),_0x23f96=_0x199585[_0x3e9eb8(0x10c)]();this[_0x3e9eb8(0x84)](_0x2960cc,_0x2a9218,_0x46991e,_0x199585,_0x4eac4b,_0x23f96,_0x39504e,_0x13bec8,_0x264867,_0x11ac74);}}};k=f([d(0x0,t['ICommandService']),d(0x1,(0x0,t[_0x44fedf(0xa2)])(n[_0x44fedf(0x11a)])),d(0x2,(0x0,t[_0x44fedf(0xa2)])(n[_0x44fedf(0xb2)])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t[_0x44fedf(0xa2)])(a[_0x44fedf(0x93)]))],k);let A=class extends t[_0x44fedf(0xe7)]{constructor(_0x434c7d=O,_0x5240e5,_0x120376,_0x26f819){const _0x2bf039=_0x44fedf;super(),this[_0x2bf039(0x10f)]=_0x434c7d,this[_0x2bf039(0xc1)]=_0x5240e5,this['_commandService']=_0x120376,this[_0x2bf039(0x135)]=_0x26f819;let {..._0x28e85e}=(0x0,t[_0x2bf039(0x9d)])({},O,this['_config']);this[_0x2bf039(0x135)][_0x2bf039(0xe5)](_0x2bf039(0x145),_0x28e85e);}[_0x44fedf(0xc8)](){const _0x1493fe=_0x44fedf;let _0x26a6f8=this[_0x1493fe(0xc1)];[[u],[p],[k]]['forEach'](_0xff24cd=>_0x26a6f8[_0x1493fe(0x148)](_0xff24cd)),(0x0,t[_0x1493fe(0xe0)])(_0x26a6f8,[[p],[k]]);}};function _0x5de7(){const _0x3bbd16=['generateRandomId','ICommandService','UpdateSheetsShapeTypeCommand','computeConnectorRouteLayout','SheetInterceptorService','UniverInstanceType','UPDATE','getShapeTextData','drawingType','left','REMOVE','_commandService','getLineShapeRelation','_groupIds','registerCommand','getSkeleton','0.25.1','_getConnectPointInfo','isConnectorShape','removeLinePoints','_sheetInterceptorService','sheet.mutation.update-shape-type','angle','transformToAxisAlignPosition','rotateEnabled','function','@univerjs-pro/sheets-shape','_sheetSkeletonService','_deserializeShapeForUnit','resizeEnabled','prototype','_configService','ShapeModel','flipY','decorate','pluginName','getAdjustNames','getShapeTypeById','onCommandExecute','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','setShapeData','iterator','getBatchUpdateOp','every','getStartConnectInfo','entries','sheets-shape.config','262602AwCiCA','SetSheetDrawingCommand','add','insertShape','UNIVER_SHEET','18iGjSBb','SetSheetsShapeRotateCommand','ToggleSheetsShapeFlipCommand','filter','_addLineRerouteUpdates','disposeWithMe','298892TpFndI','shapeData','_shapeModelManagerMap','getShapeType','3116792iMecjc','borderEnabled','type','DrawingTypeEnum','sheet.command.set-shape-rotate','IUndoRedoService','6067124iIEcir','_initCommands','getShapeRelation','IDrawingManagerService','ClearSheetDrawingTransformerOperation','1964085mbJLnu','setShapeType','registerPluginResource','InsertSheetDrawingCommand','sheet.command.update-shape-type','Injector','preRedos','syncExecuteCommand','merge','params','_initCommandInterceptor','keys','RemoveSheetDrawingCommand','Inject','getBasicShapeRelation','string','isLineShape','transform','sheet.mutation.remove-shape','preUndos','_sheetsShapeService','MUTATION','getSheetCommandTarget','result','getBasicShapeType','UpdateSheetsShapeTypeMutation','adjustValues','InsertSheetsShapeMutation','packageName','SheetSkeletonService','sheet.command.update-line-shape-resize','hasShape','lineShapeId','flipX','INSERT','getDrawingByParam','defineProperty','data','ensureSkeleton','cxnIndex','getShapeData','sheet.mutation.update-shape-data','ISheetDrawingService','_addLineFollowShapeUpdates','_injector','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','fromJSON','toStringTag','transformToDrawingPosition','worldRect','clear','onStarting','5187728cViOAG','getBasicShapeRotateBound','position','_ensureShapeModelManager','addShape','set','version','forEach','from','pushUndoRedo','Module','shapeId','interceptCommand','range','isFrom','getConnectionSiteList','InsertShapeCommand','sequenceExecute','CommandType','getDrawingData','top','updateContext','_initSnapshot','touchDependencies','Disposable','length','543BQpKLE','sheet.command.set-shape-text-vertical-toggle','setConfig','getShapeModel','Plugin','height','removeShape','default','redos','IUniverInstanceService','SHEET_SHAPE_PLUGIN','sheet.command.set-shape-drawing-data','_disposed','sheet.command.toggle-shape-flip','relation','object','sheet.mutation.insert-shape','SetDrawingApplyMutation','IResourceManagerService','getCellWithCoordByIndex','_shapes','toJSON','8508vdDPFS','DrawingApplyType','get','sheet.command.update-connector-relation','symbol','toPrimitive','width','dispose','COMMAND','stringify','delete','getCellIndexAndOffsetByPosition','rotation','UpdateLineShapeResizeCommand','DRAWING_SHAPE','_linesIds','_drawingManagerService','UpdateSheetsShapeDataMutation','find','getEndConnectInfo','undos','_resourcesManagerService','_config','UpdateConnectorRelationCommand','call','assign','constructor','_serializeShapeForUnit','push'];_0x5de7=function(){return _0x3bbd16;};return _0x5de7();}l(A,_0x44fedf(0x8c),t[_0x44fedf(0x11b)][_0x44fedf(0x14a)]),l(A,_0x44fedf(0x139),_0x44fedf(0xed)),l(A,_0x44fedf(0xb1),E),l(A,_0x44fedf(0xcf),D),A=f([(0x0,t['DependentOn'])(i['UniverLicensePlugin']),d(0x1,(0x0,t['Inject'])(t[_0x44fedf(0x9a)])),d(0x2,t[_0x44fedf(0x117)]),d(0x3,t['IConfigService'])],A),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports['DEFAULT_SHAPE_WIDTH']=0xc8,exports[_0x44fedf(0xd9)]=g,exports[_0x44fedf(0xb0)]=m,exports['RemoveSheetsShapeMutation']=h,exports['SetShapeDrawingDataCommand']=v,exports[_0x44fedf(0x14c)]=b,exports['SetSheetsShapeTextVerticalToggleCommand']=x,Object[_0x44fedf(0xb9)](exports,'SheetsShapeService',{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x44fedf(0x14d)]=y,Object[_0x44fedf(0xb9)](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x44fedf(0x110)]=S,exports[_0x44fedf(0x106)]=C,exports[_0x44fedf(0x10a)]=_,exports[_0x44fedf(0x118)]=T,exports[_0x44fedf(0xae)]=w;
|
|
1
|
+
function _0x26e2(_0x3e9a01,_0x2e21fe){_0x3e9a01=_0x3e9a01-0xb0;const _0x41e828=_0x41e8();let _0x26e261=_0x41e828[_0x3e9a01];return _0x26e261;}const _0x34634d=_0x26e2;(function(_0x324adf,_0x2915f0){const _0xed1316=_0x26e2,_0x22e495=_0x324adf();while(!![]){try{const _0x386f76=parseInt(_0xed1316(0x11c))/0x1*(-parseInt(_0xed1316(0x10c))/0x2)+parseInt(_0xed1316(0x12c))/0x3+parseInt(_0xed1316(0x102))/0x4*(-parseInt(_0xed1316(0x115))/0x5)+-parseInt(_0xed1316(0x172))/0x6*(-parseInt(_0xed1316(0x151))/0x7)+-parseInt(_0xed1316(0x10d))/0x8+parseInt(_0xed1316(0xcb))/0x9+-parseInt(_0xed1316(0x10a))/0xa*(-parseInt(_0xed1316(0xc4))/0xb);if(_0x386f76===_0x2915f0)break;else _0x22e495['push'](_0x22e495['shift']());}catch(_0x43ec50){_0x22e495['push'](_0x22e495['shift']());}}}(_0x41e8,0x7b2b7),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));function _0x41e8(){const _0x5b0474=['result','2rrpuoC','4135160hSaskO','hasShape','dispose','isFrom','SheetInterceptorService','object','REMOVE','sheet.command.set-shape-text-vertical-toggle','68260NnbaBQ','RemoveSheetDrawingCommand','toPrimitive','type','width','ISheetDrawingService','onStarting','140641kOyqJr','decorate','DependentOn','isLineShape','sin','InsertSheetDrawingCommand','UPDATE','getStartConnectInfo','MUTATION','constructor','getDrawingByParam','getDrawingData','_configService','getBasicShapeType','getOwnPropertyDescriptor','fill','1891041adpCoy','ClearSheetDrawingTransformerOperation','addShape','stringify','set','_injector','symbol','setShapeData','position','push','updateContext','IUniverInstanceService','version','disposeWithMe','flipY','computeConnectorRouteLayout','_sheetsShapeService','keys','shapeData','forEach','rotation','sheet.command.toggle-shape-flip','getName','has','getShapeModel','UpdateSheetsShapeTypeCommand','_initSnapshot','string','insertShape','relation','from','InsertShapeCommand','isConnectorShape','@univerjs-pro/sheets-shape','lineType','fromJSON','interceptCommand','12796bYkmhJ','top','UniverInstanceType','getShapeDataById','shapeId','Injector','preUndos','defineProperty','SetSheetDrawingCommand','sheet.command.set-shape-rotate','_shapes','cxnIndex','getAdjustNames','get','getShapeData','left','_getConnectPointInfo','getShapeTypeById','_drawingManagerService','SheetSkeletonService','call','sheet.command.update-line-shape-resize','_resourcesManagerService','undos','height','syncExecuteCommand','SetSheetsShapeRotateCommand','params','cos','Plugin','setConfig','1.0.0-alpha.1','setShapeType','1842dYqqvl','_deserializeShapeForUnit','getEndConnectInfo','pushUndoRedo','sheet.mutation.insert-shape','sheet.mutation.remove-shape','getId','find','filter','ICommandService','transformToDrawingPosition','add','entries','preRedos','sheet.command.update-connector-relation','startY','registerPluginResource','_config','_addLineRerouteUpdates','removeShape','range','_commandService','getSkeleton','_sheetSkeletonService','SheetsShapeService','IResourceManagerService','worldRect','DrawingTypeEnum','map','transformToAxisAlignPosition','InsertSheetsShapeMutation','_initCommands','537328cdhCPr','merge','adjustValues','SetDrawingApplyMutation','IDrawingManagerService','borderEnabled','getShapeType','5664780FwVPej','shapeName','ang','getBatchAddOp','parse','_initCommandInterceptor','getConnectionSiteList','DrawingApplyType','_linesIds','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_serializeShapeForUnit','_disposed','index','IUndoRedoService','transform','data','SetSheetsShapeTextVerticalToggleCommand','SHEET_SHAPE_PLUGIN','DRAWING_SHAPE','getSheetCommandTarget','length','getBatchUpdateOp','Inject','drawingType','DEFAULT_SHAPE_WIDTH','sheet.command.insert-shape','onCommandExecute','iterator','getShapeRelation','_addLineFollowShapeUpdates','UpdateLineShapeResizeCommand','ensureSkeleton','lineShapeId','function','getBasicShapeRelation','COMMAND','default','sheet.mutation.update-shape-type','sequenceExecute','values','_ensureShapeModelManager','Disposable','rotateEnabled','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','assign','toJSON','_shapeModelManagerMap','resizeEnabled','angle','redos','CommandType','getShapeDisplayNames','SetShapeDrawingDataCommand','pluginName','delete','236FJsmSI','clear','UNIVER_SHEET','getLineShapeRelation','flipX','IConfigService','_sheetInterceptorService','getCellIndexAndOffsetByPosition','30iXWNuH'];_0x41e8=function(){return _0x5b0474;};return _0x41e8();}let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core'),n=require('@univerjs/sheets'),r=require('@univerjs/sheets-drawing'),i=require('@univerjs-pro/license'),a=require('@univerjs/drawing');function o(_0x2ebcbf){'@babel/helpers - typeof';const _0x2f40c5=_0x26e2;return o=typeof Symbol==_0x2f40c5(0xec)&&typeof Symbol[_0x2f40c5(0xe6)]==_0x2f40c5(0x132)?function(_0x15e6f7){return typeof _0x15e6f7;}:function(_0x270766){const _0x24f4e9=_0x2f40c5;return _0x270766&&typeof Symbol==_0x24f4e9(0xec)&&_0x270766[_0x24f4e9(0x125)]===Symbol&&_0x270766!==Symbol['prototype']?_0x24f4e9(0x132):typeof _0x270766;},o(_0x2ebcbf);}function s(_0x281c5e,_0x3f6651){const _0x50e742=_0x26e2;if(o(_0x281c5e)!=_0x50e742(0x112)||!_0x281c5e)return _0x281c5e;var _0x250705=_0x281c5e[Symbol[_0x50e742(0x117)]];if(_0x250705!==void 0x0){var _0x546810=_0x250705[_0x50e742(0x165)](_0x281c5e,_0x3f6651||_0x50e742(0xef));if(o(_0x546810)!=_0x50e742(0x112))return _0x546810;throw TypeError(_0x50e742(0xd4));}return(_0x3f6651===_0x50e742(0x147)?String:Number)(_0x281c5e);}function c(_0x54e5ab){const _0x4c52b4=_0x26e2;var _0x3ac327=s(_0x54e5ab,_0x4c52b4(0x147));return o(_0x3ac327)==_0x4c52b4(0x132)?_0x3ac327:_0x3ac327+'';}function l(_0x17dce4,_0x1880ea,_0x459dca){const _0xebb300=_0x26e2;return(_0x1880ea=c(_0x1880ea))in _0x17dce4?Object[_0xebb300(0x158)](_0x17dce4,_0x1880ea,{'value':_0x459dca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17dce4[_0x1880ea]=_0x459dca,_0x17dce4;}var u=class extends t[_0x34634d(0xf4)]{constructor(){const _0xee6b21=_0x34634d;super(),l(this,_0xee6b21(0x15b),new Map()),l(this,_0xee6b21(0xd3),new Set()),l(this,'_groupIds',new Set());}[_0x34634d(0x12e)](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81){const _0x2737ea=_0x34634d;let _0x13e2e5=new e['ShapeModel'](_0x99b177,_0xe8b07b,_0x2dcf85,_0x20dd81);return this[_0x2737ea(0x15b)][_0x2737ea(0x130)](_0xe8b07b,_0x13e2e5),(0x0,e[_0x2737ea(0x14c)])(_0x99b177)&&this['_linesIds'][_0x2737ea(0x17d)](_0xe8b07b),_0x13e2e5;}[_0x34634d(0xed)](_0x553e38){const _0x2398d2=_0x34634d;let _0x2f1e19=[];for(let _0x4fd840 of this[_0x2398d2(0xd3)]){let _0x2d440e=this['_shapes'][_0x2398d2(0x15e)](_0x4fd840);if(_0x2d440e){let _0x414e51=_0x2d440e[_0x2398d2(0xe7)]();if(_0x414e51){var _0x106ea8,_0x106f84;((_0x106ea8=_0x414e51[_0x2398d2(0x14a)])==null?void 0x0:_0x106ea8['shapeId'])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51[_0x2398d2(0x14a)],'lineShapeId':_0x4fd840,'isFrom':!0x0}),((_0x106f84=_0x414e51['to'])==null?void 0x0:_0x106f84[_0x2398d2(0x155)])===_0x553e38&&_0x2f1e19[_0x2398d2(0x135)]({..._0x414e51['to'],'lineShapeId':_0x4fd840,'isFrom':!0x1});}}}return _0x2f1e19;}[_0x34634d(0x105)](_0x432e3c){const _0xe7b7c9=_0x34634d;let _0x30bdb5=this[_0xe7b7c9(0x15b)][_0xe7b7c9(0x15e)](_0x432e3c);if(_0x30bdb5)return _0x30bdb5['getShapeRelation']();}[_0x34634d(0xca)](_0x412c42){const _0x1590d4=_0x34634d;let _0x5c99f9=this[_0x1590d4(0x15b)][_0x1590d4(0x15e)](_0x412c42);if(_0x5c99f9)return _0x5c99f9[_0x1590d4(0xca)]();}['hasShape'](_0x16cb85){const _0x40da34=_0x34634d;return this[_0x40da34(0x15b)][_0x40da34(0x143)](_0x16cb85);}['getShapeDisplayNames'](){const _0x29354a=_0x34634d;return Array[_0x29354a(0x14a)](this[_0x29354a(0x15b)][_0x29354a(0xf2)]())[_0x29354a(0xc0)](_0x30ed40=>_0x30ed40[_0x29354a(0x142)]()||_0x30ed40[_0x29354a(0x178)]());}[_0x34634d(0xb7)](_0x1ff08f){const _0x473f64=_0x34634d;let _0x4edf3e=this['_shapes'][_0x473f64(0x15e)](_0x1ff08f);_0x4edf3e&&((0x0,e['isConnectorShape'])(_0x4edf3e[_0x473f64(0xca)]())&&this[_0x473f64(0xd3)][_0x473f64(0x101)](_0x1ff08f),this[_0x473f64(0x15b)][_0x473f64(0x101)](_0x1ff08f));}[_0x34634d(0xf8)](){const _0x42889f=_0x34634d;let _0x135f42=[];return this[_0x42889f(0x15b)][_0x42889f(0x13f)](_0x143bcc=>{_0x135f42['push'](_0x143bcc['toJSON']());}),_0x135f42;}[_0x34634d(0x14f)](_0x1546db){const _0x273f30=_0x34634d;for(let _0x542f15 of _0x1546db){let {id:_0x30bfc9,shapeType:_0x556c14,name:_0x15d806}=_0x542f15,_0x55da88=this['addShape'](_0x556c14,_0x30bfc9,_0x542f15[_0x273f30(0x13e)],_0x15d806);_0x55da88&&_0x55da88[_0x273f30(0x11f)]()&&this['_linesIds'][_0x273f30(0x17d)](_0x30bfc9);}}[_0x34634d(0x10f)](){const _0x36e3cc=_0x34634d;this[_0x36e3cc(0xd6)]||(this[_0x36e3cc(0x15b)][_0x36e3cc(0x13f)](_0x2ceb90=>{const _0x49f81d=_0x36e3cc;_0x2ceb90[_0x49f81d(0x10f)]();}),this[_0x36e3cc(0x15b)][_0x36e3cc(0x103)](),this['_linesIds'][_0x36e3cc(0x103)](),this['_groupIds'][_0x36e3cc(0x103)](),super['dispose']());}};function d(_0x18ada9,_0x2a4f07){return function(_0x3d8338,_0x13a6a8){_0x2a4f07(_0x3d8338,_0x13a6a8,_0x18ada9);};}function f(_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05){const _0x3b33f5=_0x34634d;var _0xb18111=arguments['length'],_0x598d69=_0xb18111<0x3?_0x1e8527:_0x323e05===null?_0x323e05=Object[_0x3b33f5(0x12a)](_0x1e8527,_0x1c3a5a):_0x323e05,_0x329e55;if(typeof Reflect=='object'&&typeof Reflect[_0x3b33f5(0x11d)]==_0x3b33f5(0xec))_0x598d69=Reflect[_0x3b33f5(0x11d)](_0x3e1c1f,_0x1e8527,_0x1c3a5a,_0x323e05);else{for(var _0x289337=_0x3e1c1f['length']-0x1;_0x289337>=0x0;_0x289337--)(_0x329e55=_0x3e1c1f[_0x289337])&&(_0x598d69=(_0xb18111<0x3?_0x329e55(_0x598d69):_0xb18111>0x3?_0x329e55(_0x1e8527,_0x1c3a5a,_0x598d69):_0x329e55(_0x1e8527,_0x1c3a5a))||_0x598d69);}return _0xb18111>0x3&&_0x598d69&&Object[_0x3b33f5(0x158)](_0x1e8527,_0x1c3a5a,_0x598d69),_0x598d69;}let p=class extends t[_0x34634d(0xf4)]{constructor(_0x207f91){const _0x1d7f15=_0x34634d;super(),this[_0x1d7f15(0x167)]=_0x207f91,l(this,'_shapeModelManagerMap',new Map()),this[_0x1d7f15(0x146)]();}[_0x34634d(0xf3)](_0xc99089,_0x22de39){const _0x2bce6f=_0x34634d;let _0x27b8a2=this['_shapeModelManagerMap'][_0x2bce6f(0x15e)](_0xc99089);_0x27b8a2||(_0x27b8a2=new Map(),this[_0x2bce6f(0xf9)][_0x2bce6f(0x130)](_0xc99089,_0x27b8a2));let _0x55d88f=_0x27b8a2[_0x2bce6f(0x15e)](_0x22de39);return _0x55d88f||(_0x55d88f=new u(),_0x27b8a2[_0x2bce6f(0x130)](_0x22de39,_0x55d88f)),_0x55d88f;}[_0x34634d(0x148)](_0x3e7d4e,_0x239c0a,_0x3d592a,_0x36579b,_0x553d63,_0xd6a551){const _0x1a5495=_0x34634d;this[_0x1a5495(0xf3)](_0x3e7d4e,_0x239c0a)[_0x1a5495(0x12e)](_0x3d592a,_0x36579b,_0x553d63,_0xd6a551);}[_0x34634d(0xb7)](_0x3c7b34,_0x5571c7,_0x403b43){const _0x224ffd=_0x34634d;this['_ensureShapeModelManager'](_0x3c7b34,_0x5571c7)[_0x224ffd(0xb7)](_0x403b43);}[_0x34634d(0x129)](_0x2ccac7,_0x1d310e,_0x27c7fd){const _0x23d67a=_0x34634d;return this[_0x23d67a(0xf3)](_0x2ccac7,_0x1d310e)[_0x23d67a(0xca)](_0x27c7fd);}[_0x34634d(0xca)](_0xcfcca0,_0xd1860,_0x528ab9){const _0x443875=_0x34634d;return this[_0x443875(0xf3)](_0xcfcca0,_0xd1860)[_0x443875(0xca)](_0x528ab9);}['hasShape'](_0x52a8ad,_0xbd8dc8,_0x382fb8){const _0x8ddd83=_0x34634d;return this['_ensureShapeModelManager'](_0x52a8ad,_0xbd8dc8)[_0x8ddd83(0x10e)](_0x382fb8);}[_0x34634d(0x162)](_0x9e18ed,_0x13f242,_0x318a54){const _0x468d43=_0x34634d;return this[_0x468d43(0xf3)](_0x9e18ed,_0x13f242)['getShapeType'](_0x318a54);}[_0x34634d(0x154)](_0x3c150c,_0x5abe41,_0x55a8b3){const _0x5ca335=_0x34634d;let _0xb3ea0d=this[_0x5ca335(0xf3)](_0x3c150c,_0x5abe41);if(!_0xb3ea0d['getShapeType'](_0x55a8b3))return;let _0x1e8310=_0xb3ea0d[_0x5ca335(0x15b)][_0x5ca335(0x15e)](_0x55a8b3);if(_0x1e8310)return _0x1e8310[_0x5ca335(0x15f)]();}[_0x34634d(0xfe)](_0x4d3c71,_0x2d81a8){const _0x1dc7ba=_0x34634d;return this[_0x1dc7ba(0xf3)](_0x4d3c71,_0x2d81a8)[_0x1dc7ba(0xfe)]();}[_0x34634d(0x144)](_0x51ee53,_0x286553,_0x5c45d5){const _0x5900a4=_0x34634d;return this[_0x5900a4(0xf3)](_0x51ee53,_0x286553)['_shapes']['get'](_0x5c45d5);}['getBasicShapeRelation'](_0x3a7914,_0xe0153c,_0x14100b){return this['_ensureShapeModelManager'](_0x3a7914,_0xe0153c)['getBasicShapeRelation'](_0x14100b);}[_0x34634d(0x105)](_0x27cb57,_0xd6f834,_0x25f62d){const _0x10e869=_0x34634d;let _0x260cde=this['_ensureShapeModelManager'](_0x27cb57,_0xd6f834)[_0x10e869(0x15b)][_0x10e869(0x15e)](_0x25f62d);if(_0x260cde)return _0x260cde['getShapeRelation']();}[_0x34634d(0x171)](){}[_0x34634d(0xd5)](_0x272b3c){const _0x36d43d=_0x34634d;let _0x224114={},_0x5f1b22=this[_0x36d43d(0xf9)]['get'](_0x272b3c);return _0x5f1b22&&_0x5f1b22[_0x36d43d(0x13f)]((_0x35d1ab,_0x362216)=>{const _0x3eaf0a=_0x36d43d;let _0x40fc03=_0x35d1ab[_0x3eaf0a(0xf8)]();_0x40fc03['length']>0x0&&(_0x224114[_0x362216]=_0x40fc03);}),JSON[_0x36d43d(0x12f)](_0x224114);}['_deserializeShapeForUnit'](_0x1c3e47,_0x163edd){const _0x561d8c=_0x34634d;Object[_0x561d8c(0x13d)](_0x163edd)[_0x561d8c(0x13f)](_0x510ba5=>{const _0x283ee0=_0x561d8c;this[_0x283ee0(0xf3)](_0x1c3e47,_0x510ba5)['fromJSON'](_0x163edd[_0x510ba5]);});}[_0x34634d(0xf8)](){const _0x829bf5=_0x34634d;let _0x2045bd={};return this[_0x829bf5(0xf9)]['forEach']((_0xb7bbce,_0x4bd9e7)=>{_0x2045bd[_0x4bd9e7]={},_0xb7bbce['forEach']((_0x1bb1ce,_0x183dad)=>{const _0x342ffd=_0x26e2;_0x2045bd[_0x4bd9e7][_0x183dad]=_0x1bb1ce[_0x342ffd(0xf8)]();});}),_0x2045bd;}[_0x34634d(0x14f)](_0x387a38){const _0x39625a=_0x34634d;Object[_0x39625a(0x13d)](_0x387a38)[_0x39625a(0x13f)](_0x2a1abd=>{const _0x3ce658=_0x39625a;let _0x2618e8=_0x387a38[_0x2a1abd];Object[_0x3ce658(0x13d)](_0x2618e8)['forEach'](_0x9ea211=>{const _0x24a199=_0x3ce658;this[_0x24a199(0xf3)](_0x2a1abd,_0x9ea211)[_0x24a199(0x14f)](_0x2618e8[_0x9ea211]);});});}[_0x34634d(0x146)](){const _0x2d56db=_0x34634d;this[_0x2d56db(0x167)][_0x2d56db(0xb4)]({'pluginName':_0x2d56db(0xdc),'businesses':[t[_0x2d56db(0x153)][_0x2d56db(0x104)]],'toJson':_0x1bf606=>this['_serializeShapeForUnit'](_0x1bf606),'parseJson':_0x2a4dca=>JSON[_0x2d56db(0xcf)](_0x2a4dca),'onLoad':(_0x422c8e,_0x278d75)=>{const _0x497dc5=_0x2d56db;this[_0x497dc5(0x173)](_0x422c8e,_0x278d75);},'onUnLoad':_0x15311f=>{const _0x41fb72=_0x2d56db;let _0x2df13b=this[_0x41fb72(0xf9)][_0x41fb72(0x15e)](_0x15311f);_0x2df13b&&(_0x2df13b[_0x41fb72(0x13f)](_0x1d5793=>{_0x1d5793['dispose']();}),this[_0x41fb72(0xf9)]['delete'](_0x15311f));}});}['dispose'](){const _0x177c4f=_0x34634d;this[_0x177c4f(0xf9)]['forEach'](_0x440f53=>{const _0x153250=_0x177c4f;_0x440f53[_0x153250(0x13f)](_0x87ffa9=>{const _0x2d37f5=_0x153250;_0x87ffa9[_0x2d37f5(0x10f)]();});});}};p=f([d(0x0,t[_0x34634d(0xbd)])],p);const m={'id':_0x34634d(0x176),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x2e8d8b,_0x1ee116)=>{let {unitId:_0x55aa91,subUnitId:_0x258440,shapeType:_0x5d519d,shapeId:_0x45ea40,shapeName:_0x2b130c,shapeData:_0x1795e2}=_0x1ee116;return _0x2e8d8b['get'](p)['insertShape'](_0x55aa91,_0x258440,_0x5d519d,_0x45ea40,_0x1795e2,_0x2b130c),!0x0;}},h={'id':_0x34634d(0x177),'type':t[_0x34634d(0xfd)]['MUTATION'],'handler':(_0x42ab5a,_0xbd5fc3)=>{const _0x212114=_0x34634d;let {unitId:_0x578e3e,subUnitId:_0x831a73,shapeId:_0x1c2ffd}=_0xbd5fc3;return _0x42ab5a['get'](p)[_0x212114(0xb7)](_0x578e3e,_0x831a73,_0x1c2ffd),!0x0;}},g={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0xe4),'handler':(_0x42cabb,_0x3cf023)=>{const _0x53db64=_0x34634d;var _0x1795c9,_0x22c50e,_0xb565ce;let _0x271b4b=(0x0,n[_0x53db64(0xde)])(_0x42cabb['get'](t[_0x53db64(0x137)]),_0x3cf023);if(!_0x271b4b)return!0x1;let _0x3077a4=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x164)]),{unitId:_0xe257b,subUnitId:_0x4101ca}=_0x271b4b,_0x1dc05f=_0x3077a4['ensureSkeleton'](_0xe257b,_0x4101ca);if(!_0x1dc05f)return!0x1;let _0x858ae1=_0x42cabb['get'](t['ICommandService']),_0x4d124b=_0x42cabb[_0x53db64(0x15e)](t[_0x53db64(0xd8)]),_0x289517=_0x42cabb[_0x53db64(0x15e)](n[_0x53db64(0x111)]),_0x58086c=_0x42cabb[_0x53db64(0x15e)](r['ISheetDrawingService']),_0x4c902d=_0x42cabb[_0x53db64(0x15e)](p),{shapeType:_0x3cd739,shapeData:_0x486d0b}=_0x3cf023,_0x7abaf5=_0x3cf023[_0x53db64(0x155)]||(0x0,t['generateRandomId'])(),_0x2bd8e4={'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5,'shapeName':(_0x1795c9=_0x3cf023[_0x53db64(0xcc)])==null?(0x0,e['createUniqueShapeName'])(_0x3cd739,_0x4c902d['getShapeDisplayNames'](_0xe257b,_0x4101ca)):_0x1795c9,'shapeType':_0x3cd739,'shapeData':_0x486d0b},_0x19488d=_0x3cf023[_0x53db64(0x119)]||0xc8,_0x14db5c=_0x3cf023['height']||0xc8,_0x40a3ef=0x0,_0x493001=0x0,_0x59e8f5={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x550df9={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x3cf023[_0x53db64(0x134)]){let {x:_0xb9438d,y:_0x1e5343}=_0x3cf023[_0x53db64(0x134)];_0x40a3ef=_0xb9438d,_0x493001=_0x1e5343,_0x59e8f5=_0x1dc05f[_0x53db64(0x109)](_0xb9438d,_0x1e5343),_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0xb9438d+_0x19488d,_0x1e5343+_0x14db5c);}else{if(_0x3cf023['range']){let {startRow:_0x5b9595,startColumn:_0x169f52}=_0x3cf023[_0x53db64(0xb8)];_0x59e8f5={'row':_0x5b9595,'rowOffset':0xa,'column':_0x169f52,'columnOffset':0xa};let _0x24a92a=_0x1dc05f['getCellWithCoordByIndex'](_0x5b9595,_0x169f52);_0x40a3ef=_0x24a92a['startX']+0xa,_0x493001=_0x24a92a[_0x53db64(0xb3)]+0xa,_0x550df9=_0x1dc05f[_0x53db64(0x109)](_0x40a3ef+_0x19488d,_0x493001+_0x14db5c);}}let _0x29ec3c={'from':_0x59e8f5,'to':_0x550df9},_0x2336e3={'unitId':_0xe257b,'subUnitId':_0x4101ca,'drawingId':_0x7abaf5,'drawingType':t['DrawingTypeEnum'][_0x53db64(0xdd)],'sheetTransform':_0x29ec3c,'transform':{'left':_0x40a3ef,'top':_0x493001,'width':_0x19488d,'height':_0x14db5c},'data':{'shapeType':_0x3cd739,'shapeData':_0x486d0b},'axisAlignSheetTransform':_0x29ec3c,'allowTransform':!0x0};(0x0,e[_0x53db64(0x14c)])(_0x3cd739)&&(_0x2336e3[_0x53db64(0xda)][_0x53db64(0x12b)]=!0x1,_0x2336e3[_0x53db64(0xda)]['rotateEnabled']=!0x1,_0x2336e3['data'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xda)][_0x53db64(0xc9)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xf5)]=!0x1,_0x2336e3['transform'][_0x53db64(0xfa)]=!0x1,_0x2336e3[_0x53db64(0xd9)][_0x53db64(0xc9)]=!0x1);let {undo:_0x3bb2db,redo:_0x1bb5a0,objects:_0x50bd89}=_0x58086c[_0x53db64(0xce)]([_0x2336e3]),_0x183c85=_0x289517[_0x53db64(0xe5)]({'id':r[_0x53db64(0x121)]['id'],'params':{'unitId':_0xe257b,'drawings':[_0x2336e3]}}),_0xf59470=[...(_0x22c50e=_0x183c85[_0x53db64(0xb1)])==null?[]:_0x22c50e,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x1bb5a0,'objects':_0x50bd89,'type':r['DrawingApplyType']['INSERT']}},{'id':r[_0x53db64(0x12d)]['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0xfc)],{'id':m['id'],'params':_0x2bd8e4}],_0x4111a8=[{'id':h['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'shapeId':_0x7abaf5}},...(_0xb565ce=_0x183c85[_0x53db64(0x157)])==null?[]:_0xb565ce,{'id':r[_0x53db64(0xc7)]['id'],'params':{'unitId':_0xe257b,'subUnitId':_0x4101ca,'op':_0x3bb2db,'objects':_0x50bd89,'type':r[_0x53db64(0xd2)][_0x53db64(0x113)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xe257b]},..._0x183c85[_0x53db64(0x168)]];return(0x0,t[_0x53db64(0xf1)])(_0xf59470,_0x858ae1)[_0x53db64(0x10b)]?(_0x4d124b['pushUndoRedo']({'unitID':_0xe257b,'undoMutations':_0x4111a8,'redoMutations':_0xf59470}),!0x0):!0x1;}},_={'id':'sheet.mutation.update-shape-data','type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xd74d00,_0x452398)=>{const _0x47577a=_0x34634d;let {unitId:_0x2ac6cf,subUnitId:_0x5e3dcd,shapeType:_0x1a98a6,shapeId:_0x514c36,shapeData:_0x478e5e}=_0x452398,_0x575bcc=_0xd74d00['get'](p)[_0x47577a(0x144)](_0x2ac6cf,_0x5e3dcd,_0x514c36);return _0x575bcc&&(_0x1a98a6!==void 0x0&&_0x575bcc['setShapeType'](_0x1a98a6),_0x478e5e&&(_0x575bcc==null||_0x575bcc[_0x47577a(0x133)](_0x478e5e,!0x0))),!0x0;}},v={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':'sheet.command.set-shape-drawing-data','handler':(_0x3b39c2,_0x3f29d2)=>{const _0x6f8e6=_0x34634d;var _0x1d1f38,_0x220455;let _0x309800=(0x0,n['getSheetCommandTarget'])(_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x137)]),_0x3f29d2);if(!_0x309800)return!0x1;let _0x28b8ea=_0x3b39c2[_0x6f8e6(0x15e)](n['SheetSkeletonService']),{unitId:_0x4a5c62,subUnitId:_0x1af4b4}=_0x309800,_0x4d470c=_0x28b8ea[_0x6f8e6(0xea)](_0x4a5c62,_0x1af4b4);if(!_0x4d470c)return!0x1;let _0x4aa8e1=_0x3b39c2['get'](p),{shapeId:_0x44e993,shapeType:_0x5d8adb,shapeData:_0x2f4244,position:_0x472b0a,width:_0x40f8c8,height:_0x1eb141}=_0x3f29d2,_0x5c6c0b=_0x4aa8e1[_0x6f8e6(0x144)](_0x4a5c62,_0x1af4b4,_0x44e993);if(!_0x5c6c0b)return!0x1;let _0x36437b=_0x3b39c2[_0x6f8e6(0x15e)](t[_0x6f8e6(0x17b)]),_0x398484=_0x3b39c2['get'](t[_0x6f8e6(0xd8)]),_0x1815e9=_0x3b39c2[_0x6f8e6(0x15e)](n[_0x6f8e6(0x111)]),_0x837f16=_0x3b39c2[_0x6f8e6(0x15e)](r['ISheetDrawingService']),_0x165a6e={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeId':_0x44e993,'shapeType':_0x5d8adb,'shapeData':_0x2f4244},_0x22723e=_0x5c6c0b[_0x6f8e6(0xca)](),_0x9fc35f=_0x5c6c0b[_0x6f8e6(0x15f)](),{x:_0x29cf18,y:_0x5d66f7}=_0x472b0a,_0x56b436={'from':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18,_0x5d66f7),'to':_0x4d470c[_0x6f8e6(0x109)](_0x29cf18+_0x40f8c8,_0x5d66f7+_0x1eb141)},_0x41f0fc={'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'drawingId':_0x44e993,'drawingType':t[_0x6f8e6(0xbf)][_0x6f8e6(0xdd)],'sheetTransform':_0x56b436,'transform':{'left':_0x29cf18,'top':_0x5d66f7,'width':_0x40f8c8,'height':_0x1eb141},'data':{'shapeType':_0x5d8adb,'shapeData':_0x2f4244},'axisAlignSheetTransform':_0x56b436,'allowTransform':!0x0};(0x0,e[_0x6f8e6(0x14c)])(_0x5d8adb)&&(_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0x12b)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xf5)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xfa)]=!0x1,_0x41f0fc[_0x6f8e6(0xda)][_0x6f8e6(0xc9)]=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['rotateEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)]['resizeEnabled']=!0x1,_0x41f0fc[_0x6f8e6(0xd9)][_0x6f8e6(0xc9)]=!0x1);let {undo:_0x490d69,redo:_0x198893,objects:_0x19b868}=_0x837f16[_0x6f8e6(0xe0)]([_0x41f0fc]),_0x266384=_0x1815e9[_0x6f8e6(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4a5c62,'drawings':[_0x41f0fc]}}),_0x339fd7=[...(_0x1d1f38=_0x266384[_0x6f8e6(0xb1)])==null?[]:_0x1d1f38,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x198893,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0xfc)],{'id':_['id'],'params':_0x165a6e}],_0x579a12=[...(_0x220455=_0x266384['preUndos'])==null?[]:_0x220455,{'id':r[_0x6f8e6(0xc7)]['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'op':_0x490d69,'objects':_0x19b868,'type':r[_0x6f8e6(0xd2)][_0x6f8e6(0x122)]}},{'id':r[_0x6f8e6(0x12d)]['id'],'params':[_0x4a5c62]},..._0x266384[_0x6f8e6(0x168)],{'id':_['id'],'params':{'unitId':_0x4a5c62,'subUnitId':_0x1af4b4,'shapeType':_0x22723e,'shapeId':_0x44e993,'shapeData':_0x9fc35f}}];return(0x0,t[_0x6f8e6(0xf1)])(_0x339fd7,_0x36437b)['result']?(_0x398484[_0x6f8e6(0x175)]({'unitID':_0x4a5c62,'undoMutations':_0x579a12,'redoMutations':_0x339fd7}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x141),'handler':(_0x917fb6,_0xab9875)=>{const _0x4c9925=_0x34634d;var _0x55ecc7,_0x1f1cee;let _0x5df864=(0x0,n[_0x4c9925(0xde)])(_0x917fb6['get'](t[_0x4c9925(0x137)]),_0xab9875);if(!_0x5df864)return!0x1;let _0x54e394=_0x917fb6['get'](n['SheetSkeletonService']),{unitId:_0xf7dc90,subUnitId:_0x4fb01c}=_0x5df864,_0x10cce1=_0x54e394[_0x4c9925(0xba)](_0xf7dc90,_0x4fb01c);if(!_0x10cce1)return!0x1;let _0x5a28dd=_0x917fb6['get'](r[_0x4c9925(0x11a)]),{shapeId:_0x5af192,flipH:_0x35b42b,flipV:_0x4146c1}=_0xab9875,_0x588e14=_0x5a28dd[_0x4c9925(0x126)]({'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192});if(!_0x588e14)return!0x1;let _0x58f8af=_0x917fb6[_0x4c9925(0x15e)](p)[_0x4c9925(0x144)](_0xf7dc90,_0x4fb01c,_0x5af192);if(!_0x58f8af)return!0x1;let _0x1362f9=_0x917fb6[_0x4c9925(0x15e)](t[_0x4c9925(0x17b)]),_0x23cdfb=_0x917fb6['get'](t[_0x4c9925(0xd8)]),_0x11b12e=_0x917fb6[_0x4c9925(0x15e)](n[_0x4c9925(0x111)]),_0x583abc={..._0x588e14[_0x4c9925(0xd9)]};_0x35b42b!==void 0x0&&(_0x583abc['flipX']=!_0x583abc[_0x4c9925(0x106)]),_0x4146c1!==void 0x0&&(_0x583abc[_0x4c9925(0x13a)]=!_0x583abc[_0x4c9925(0x13a)]);let _0x5e88cd=(0x0,r[_0x4c9925(0x17c)])(_0x583abc,_0x10cce1),_0x33839f=(0x0,r[_0x4c9925(0xc1)])(_0x583abc,_0x10cce1),_0x2060a4=_0x58f8af['getShapeType'](),_0x28e9f9=_0x58f8af[_0x4c9925(0x15f)](),_0x398993={'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'drawingId':_0x5af192,'drawingType':t['DrawingTypeEnum'][_0x4c9925(0xdd)],'sheetTransform':_0x5e88cd,'transform':_0x583abc,'data':{'shapeType':_0x2060a4,'shapeData':_0x28e9f9},'axisAlignSheetTransform':_0x33839f,'allowTransform':!0x0},{undo:_0x432adf,redo:_0x80f2d9,objects:_0x9a3f7f}=_0x5a28dd[_0x4c9925(0xe0)]([_0x398993]),_0x86b675=_0x11b12e[_0x4c9925(0xe5)]({'id':r[_0x4c9925(0x159)]['id'],'params':{'unitId':_0xf7dc90,'drawings':[_0x398993]}}),_0x3501a8=[...(_0x55ecc7=_0x86b675['preRedos'])==null?[]:_0x55ecc7,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x80f2d9,'objects':_0x9a3f7f,'type':r['DrawingApplyType'][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0xfc)]],_0x108d60=[...(_0x1f1cee=_0x86b675[_0x4c9925(0x157)])==null?[]:_0x1f1cee,{'id':r[_0x4c9925(0xc7)]['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'op':_0x432adf,'objects':_0x9a3f7f,'type':r[_0x4c9925(0xd2)][_0x4c9925(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0xf7dc90]},..._0x86b675[_0x4c9925(0x168)]];if((0x0,e[_0x4c9925(0x14c)])(_0x2060a4)){let _0x5f3ef0=_0x58f8af[_0x4c9925(0xe7)]();if(_0x5f3ef0){let _0x557247={..._0x5f3ef0};_0x557247['from']=void 0x0,_0x557247['to']=void 0x0,_0x3501a8[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x557247}}}),_0x108d60[_0x4c9925(0x135)]({'id':_['id'],'params':{'unitId':_0xf7dc90,'subUnitId':_0x4fb01c,'shapeId':_0x5af192,'shapeType':_0x2060a4,'shapeData':{'relation':_0x5f3ef0}}});}}return(0x0,t['sequenceExecute'])(_0x3501a8,_0x1362f9)[_0x4c9925(0x10b)]?(_0x23cdfb['pushUndoRedo']({'unitID':_0xf7dc90,'undoMutations':_0x108d60,'redoMutations':_0x3501a8}),!0x0):!0x1;}},b={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x15a),'handler':(_0x28272e,_0x295d79)=>{const _0x358e11=_0x34634d;var _0x373a23,_0xc42fdd;let _0xd89520=(0x0,n[_0x358e11(0xde)])(_0x28272e['get'](t[_0x358e11(0x137)]),_0x295d79);if(!_0xd89520)return!0x1;let _0x182f0d=_0x28272e[_0x358e11(0x15e)](n[_0x358e11(0x164)]),{unitId:_0x3d9f7f,subUnitId:_0x30265a}=_0xd89520,_0x252d23=_0x182f0d[_0x358e11(0xba)](_0x3d9f7f,_0x30265a);if(!_0x252d23)return!0x1;let _0x25b64f=_0x28272e['get'](r[_0x358e11(0x11a)]),{shapeId:_0x4c3a58,rotate:_0x4f420d}=_0x295d79,_0x70cfcb=_0x25b64f['getDrawingByParam']({'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58});if(!_0x70cfcb)return!0x1;let _0x46c255=_0x28272e['get'](p)[_0x358e11(0x144)](_0x3d9f7f,_0x30265a,_0x4c3a58);if(!_0x46c255)return!0x1;let _0x34701c=_0x28272e[_0x358e11(0x15e)](t[_0x358e11(0x17b)]),_0x1db858=_0x28272e[_0x358e11(0x15e)](t['IUndoRedoService']),_0x38ef12=_0x28272e['get'](n['SheetInterceptorService']),_0x5a87ab={..._0x70cfcb[_0x358e11(0xd9)]};_0x4f420d!==void 0x0&&(_0x5a87ab[_0x358e11(0xfb)]=(_0x5a87ab[_0x358e11(0xfb)]||0x0)+_0x4f420d);let _0x22856e=(0x0,r[_0x358e11(0x17c)])(_0x5a87ab,_0x252d23),_0x3a63d1=(0x0,r[_0x358e11(0xc1)])(_0x5a87ab,_0x252d23),_0x12ed7f=_0x46c255[_0x358e11(0xca)](),_0x2294ca=_0x46c255[_0x358e11(0x15f)](),_0x5cedee={'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'drawingId':_0x4c3a58,'drawingType':t[_0x358e11(0xbf)][_0x358e11(0xdd)],'sheetTransform':_0x22856e,'transform':_0x5a87ab,'data':{'shapeType':_0x12ed7f,'shapeData':_0x2294ca},'axisAlignSheetTransform':_0x3a63d1,'allowTransform':!0x0},{undo:_0x2d5aa6,redo:_0x5b5568,objects:_0xddc084}=_0x25b64f[_0x358e11(0xe0)]([_0x5cedee]),_0x31d128=_0x38ef12[_0x358e11(0xe5)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x3d9f7f,'drawings':[_0x5cedee]}}),_0x2c4650=[...(_0x373a23=_0x31d128[_0x358e11(0xb1)])==null?[]:_0x373a23,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x5b5568,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0xfc)]],_0x42326e=[...(_0xc42fdd=_0x31d128[_0x358e11(0x157)])==null?[]:_0xc42fdd,{'id':r[_0x358e11(0xc7)]['id'],'params':{'unitId':_0x3d9f7f,'subUnitId':_0x30265a,'op':_0x2d5aa6,'objects':_0xddc084,'type':r[_0x358e11(0xd2)][_0x358e11(0x122)]}},{'id':r[_0x358e11(0x12d)]['id'],'params':[_0x3d9f7f]},..._0x31d128[_0x358e11(0x168)]];return(0x0,t[_0x358e11(0xf1)])(_0x2c4650,_0x34701c)[_0x358e11(0x10b)]?(_0x1db858['pushUndoRedo']({'unitID':_0x3d9f7f,'undoMutations':_0x42326e,'redoMutations':_0x2c4650}),!0x0):!0x1;}},x={'type':t['CommandType'][_0x34634d(0xee)],'id':_0x34634d(0x114),'handler':(_0x1142e6,_0x1100d7)=>{const _0x304fa1=_0x34634d;var _0x39986c;let _0xe45b75=(0x0,n[_0x304fa1(0xde)])(_0x1142e6['get'](t[_0x304fa1(0x137)]),_0x1100d7);if(!_0xe45b75)return!0x1;let {unitId:_0x5d3853,subUnitId:_0x3f14a6}=_0xe45b75,{shapeId:_0x1d158b}=_0x1100d7,_0xec2073=_0x1142e6[_0x304fa1(0x15e)](p)[_0x304fa1(0x144)](_0x5d3853,_0x3f14a6,_0x1d158b);if(!_0xec2073)return!0x1;let _0x2fce93=_0xec2073['getShapeTextData'](),_0x46328b=(_0x39986c=_0x2fce93==null?void 0x0:_0x2fce93['isHorizontal'])==null?!0x0:_0x39986c,_0x228730=!_0x46328b,_0x334302=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0x17b)]),_0x2b4711=_0x1142e6[_0x304fa1(0x15e)](t[_0x304fa1(0xd8)]),_0x30dafb={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x228730}}},_0x1e9907={'unitId':_0x5d3853,'subUnitId':_0x3f14a6,'shapeId':_0x1d158b,'shapeData':{'shapeText':{'isHorizontal':_0x46328b}}},_0x650de1=[{'id':_['id'],'params':_0x30dafb}],_0x5254cd=[{'id':_['id'],'params':_0x1e9907}];return(0x0,t[_0x304fa1(0xf1)])(_0x650de1,_0x334302)[_0x304fa1(0x10b)]?(_0x2b4711['pushUndoRedo']({'unitID':_0x5d3853,'undoMutations':_0x5254cd,'redoMutations':_0x650de1}),!0x0):!0x1;}},S={'type':t[_0x34634d(0xfd)]['COMMAND'],'id':_0x34634d(0xb2),'handler':(_0x4db4b7,_0x53691c)=>{const _0x3945d1=_0x34634d;var _0x2defed,_0x27430b,_0x9b7121,_0x5afa6e;let _0x5b3358=(0x0,n['getSheetCommandTarget'])(_0x4db4b7['get'](t[_0x3945d1(0x137)]),_0x53691c);if(!_0x5b3358)return!0x1;let _0x5e88e2=_0x4db4b7[_0x3945d1(0x15e)](n['SheetSkeletonService']),{unitId:_0x5a500c,subUnitId:_0xfc70ae}=_0x5b3358,_0x238125=_0x5e88e2[_0x3945d1(0xba)](_0x5a500c,_0xfc70ae);if(!_0x238125)return!0x1;let _0xd0cca=_0x4db4b7[_0x3945d1(0x15e)](r['ISheetDrawingService']),{connectorShapeId:_0x322ed7,width:_0x3b744c,height:_0x17cc78,left:_0x2be67f,top:_0x8769bc,flipX:_0x5bffb1,flipY:_0x374a47,rotation:_0x195035,oldAdjustValues:_0x1b3ad0,newAdjustValues:_0x1f95de,oldLineType:_0x20d80d,newLineType:_0x5c806c,oldRelation:_0x278a7d,newRelation:_0x2a900c}=_0x53691c,_0x120c25=_0xd0cca[_0x3945d1(0x126)]({'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7});if(!_0x120c25)return!0x1;let _0x103eb2=_0x4db4b7[_0x3945d1(0x15e)](p)[_0x3945d1(0x144)](_0x5a500c,_0xfc70ae,_0x322ed7);if(!_0x103eb2)return!0x1;let _0x3990a1=_0x4db4b7['get'](t['ICommandService']),_0x220c51=_0x4db4b7[_0x3945d1(0x15e)](t[_0x3945d1(0xd8)]),_0x2f7f1a=_0x4db4b7[_0x3945d1(0x15e)](n[_0x3945d1(0x111)]),_0x59cf62={..._0x120c25[_0x3945d1(0xd9)],'width':_0x3b744c,'height':_0x17cc78,'left':_0x2be67f,'top':_0x8769bc,'flipX':_0x5bffb1,'flipY':_0x374a47,'angle':(_0x2defed=_0x195035==null?(_0x27430b=_0x120c25[_0x3945d1(0xd9)])==null?void 0x0:_0x27430b[_0x3945d1(0xfb)]:_0x195035)==null?0x0:_0x2defed},_0x556027=(0x0,r[_0x3945d1(0x17c)])(_0x59cf62,_0x238125),_0x1207e6=(0x0,r['transformToAxisAlignPosition'])(_0x59cf62,_0x238125),_0x47f2cb=_0x103eb2[_0x3945d1(0xca)](),_0x46d014=_0x103eb2['getShapeData'](),_0xee035d={'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'drawingId':_0x322ed7,'drawingType':t[_0x3945d1(0xbf)][_0x3945d1(0xdd)],'sheetTransform':_0x556027,'transform':_0x59cf62,'data':{'shapeType':_0x5c806c||_0x20d80d||_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1f95de||_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0xc6)]),'relation':_0x2a900c||_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}},'axisAlignSheetTransform':_0x1207e6,'allowTransform':!0x0},{undo:_0x712035,redo:_0x492689,objects:_0x3174e6}=_0xd0cca[_0x3945d1(0xe0)]([_0xee035d]),_0x1b6bdd=_0x2f7f1a['onCommandExecute']({'id':r[_0x3945d1(0x159)]['id'],'params':{'unitId':_0x5a500c,'drawings':[_0xee035d]}}),_0x2089d7=[...(_0x9b7121=_0x1b6bdd['preRedos'])==null?[]:_0x9b7121,{'id':r[_0x3945d1(0xc7)]['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x492689,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0xfc)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x5c806c,'shapeData':{'adjustValues':_0x1f95de,'relation':_0x2a900c}}}],_0x3835a3=[...(_0x5afa6e=_0x1b6bdd[_0x3945d1(0x157)])==null?[]:_0x5afa6e,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'op':_0x712035,'objects':_0x3174e6,'type':r[_0x3945d1(0xd2)][_0x3945d1(0x122)]}},{'id':r[_0x3945d1(0x12d)]['id'],'params':[_0x5a500c]},..._0x1b6bdd[_0x3945d1(0x168)],{'id':_['id'],'params':{'unitId':_0x5a500c,'subUnitId':_0xfc70ae,'shapeId':_0x322ed7,'shapeType':_0x47f2cb,'shapeData':{..._0x46d014,'adjustValues':_0x1b3ad0||(_0x46d014==null?void 0x0:_0x46d014['adjustValues']),'relation':_0x278a7d||(_0x46d014==null?void 0x0:_0x46d014[_0x3945d1(0x149)])}}}];return(0x0,t[_0x3945d1(0xf1)])(_0x2089d7,_0x3990a1)[_0x3945d1(0x10b)]?(_0x220c51[_0x3945d1(0x175)]({'unitID':_0x5a500c,'undoMutations':_0x3835a3,'redoMutations':_0x2089d7}),!0x0):!0x1;}},C={'type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'id':_0x34634d(0x166),'handler':(_0x523243,_0x49614c)=>{const _0x1c1a49=_0x34634d;var _0x30cb95,_0x342eba;let _0x72cf93=(0x0,n[_0x1c1a49(0xde)])(_0x523243[_0x1c1a49(0x15e)](t['IUniverInstanceService']),_0x49614c);if(!_0x72cf93)return!0x1;let _0x2e55c0=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x164)]),{unitId:_0x2110d5,subUnitId:_0x53d6ef}=_0x72cf93,_0x3f35f8=_0x2e55c0['getSkeleton'](_0x2110d5,_0x53d6ef);if(!_0x3f35f8)return!0x1;let _0x11fd2e=_0x523243[_0x1c1a49(0x15e)](r['ISheetDrawingService']),{shapeId:_0x376969,width:_0x1c5e5a,height:_0x313058,left:_0x6370f,top:_0x3b8a4e,flipX:_0x133382,flipY:_0x220f3e,angle:_0x1e1237,oldAdjustValues:_0x9f7f9a,newAdjustValues:_0x48cff2,oldLineType:_0x474874,newLineType:_0x36b6db}=_0x49614c,_0x12acce=_0x11fd2e[_0x1c1a49(0x126)]({'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969});if(!_0x12acce)return!0x1;let _0x36b38e=_0x523243[_0x1c1a49(0x15e)](p)[_0x1c1a49(0x144)](_0x2110d5,_0x53d6ef,_0x376969);if(!_0x36b38e)return!0x1;let _0x52c832=_0x523243['get'](t['ICommandService']),_0x4cc426=_0x523243[_0x1c1a49(0x15e)](t[_0x1c1a49(0xd8)]),_0x33b046=_0x523243[_0x1c1a49(0x15e)](n[_0x1c1a49(0x111)]),_0x20459f={..._0x12acce[_0x1c1a49(0xd9)],'width':_0x1c5e5a,'height':_0x313058,'left':_0x6370f,'top':_0x3b8a4e,'flipX':_0x133382,'flipY':_0x220f3e,'angle':_0x1e1237},_0x457ca0=(0x0,r[_0x1c1a49(0x17c)])(_0x20459f,_0x3f35f8),_0xf9ad22=(0x0,r[_0x1c1a49(0xc1)])(_0x20459f,_0x3f35f8),_0x27d9a4=_0x36b38e[_0x1c1a49(0xca)](),_0x1b7a3f=_0x36b38e[_0x1c1a49(0x15f)](),_0x530416={'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'drawingId':_0x376969,'drawingType':t[_0x1c1a49(0xbf)][_0x1c1a49(0xdd)],'sheetTransform':_0x457ca0,'transform':_0x20459f,'data':{'shapeType':_0x36b6db||_0x474874||_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x48cff2||_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}},'axisAlignSheetTransform':_0xf9ad22,'allowTransform':!0x0},{undo:_0xd4a5dc,redo:_0x4ede00,objects:_0x282e16}=_0x11fd2e[_0x1c1a49(0xe0)]([_0x530416]),_0x5c7218=_0x33b046[_0x1c1a49(0xe5)]({'id':r[_0x1c1a49(0x159)]['id'],'params':{'unitId':_0x2110d5,'drawings':[_0x530416]}}),_0x5c0a8a=[...(_0x30cb95=_0x5c7218[_0x1c1a49(0xb1)])==null?[]:_0x30cb95,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0x4ede00,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['redos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x36b6db,'shapeData':{'adjustValues':_0x48cff2}}}],_0x16e814=[...(_0x342eba=_0x5c7218[_0x1c1a49(0x157)])==null?[]:_0x342eba,{'id':r[_0x1c1a49(0xc7)]['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'op':_0xd4a5dc,'objects':_0x282e16,'type':r[_0x1c1a49(0xd2)][_0x1c1a49(0x122)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2110d5]},..._0x5c7218['undos'],{'id':_['id'],'params':{'unitId':_0x2110d5,'subUnitId':_0x53d6ef,'shapeId':_0x376969,'shapeType':_0x27d9a4,'shapeData':{..._0x1b7a3f,'adjustValues':_0x9f7f9a||(_0x1b7a3f==null?void 0x0:_0x1b7a3f[_0x1c1a49(0xc6)])}}}];return(0x0,t[_0x1c1a49(0xf1)])(_0x5c0a8a,_0x52c832)[_0x1c1a49(0x10b)]?(_0x4cc426[_0x1c1a49(0x175)]({'unitID':_0x2110d5,'undoMutations':_0x16e814,'redoMutations':_0x5c0a8a}),!0x0):!0x1;}},w={'id':_0x34634d(0xf0),'type':t[_0x34634d(0xfd)][_0x34634d(0x124)],'handler':(_0xb5dd37,_0xead57f)=>{const _0x2b57cc=_0x34634d;let {unitId:_0x1a27f6,subUnitId:_0x239e3a,shapeType:_0x35fce1,shapeId:_0x37d857,shapeData:_0x435c36}=_0xead57f,_0x13be4f=_0xb5dd37[_0x2b57cc(0x15e)](p)[_0x2b57cc(0x144)](_0x1a27f6,_0x239e3a,_0x37d857);return _0x13be4f&&(_0x13be4f[_0x2b57cc(0x171)](_0x35fce1),_0x435c36&&(_0x13be4f==null||_0x13be4f[_0x2b57cc(0x133)](_0x435c36))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':t[_0x34634d(0xfd)][_0x34634d(0xee)],'handler':(_0x260511,_0x346a6b)=>{const _0x3e26c0=_0x34634d;if(!_0x346a6b)return!0x1;let _0x3ae0d7=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0x17b)]),_0x36c79a=_0x260511[_0x3e26c0(0x15e)](p),_0x4c5f78=_0x260511[_0x3e26c0(0x15e)](t[_0x3e26c0(0xd8)]),_0x64cc85=[],_0x11742a=[],{unitId:_0x34476d,subUnitId:_0x3e6543,shapeId:_0x29bf93,shapeType:_0xae63b2,shapeData:_0xe0206d}=_0x346a6b,_0x36af86=_0x36c79a[_0x3e26c0(0x144)](_0x34476d,_0x3e6543,_0x29bf93);if(_0x36af86){let _0xdfe883=_0x36af86[_0x3e26c0(0xca)](),_0x3f8241=Object[_0x3e26c0(0xf7)]({},_0x36af86[_0x3e26c0(0x15f)]()),_0x2f3292={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xae63b2,'shapeData':_0xe0206d},_0x132274={'unitId':_0x34476d,'subUnitId':_0x3e6543,'shapeId':_0x29bf93,'shapeType':_0xdfe883,'shapeData':_0x3f8241};return _0x64cc85['push']({'id':w['id'],'params':_0x2f3292}),_0x11742a[_0x3e26c0(0x135)]({'id':w['id'],'params':_0x132274}),_0x64cc85['every'](_0x21a7c5=>_0x3ae0d7[_0x3e26c0(0x16a)](_0x21a7c5['id'],_0x21a7c5[_0x3e26c0(0x16c)]))&&_0x4c5f78[_0x3e26c0(0x175)]({'unitID':_0x34476d,'redoMutations':[..._0x64cc85],'undoMutations':[..._0x11742a]}),!0x0;}return!0x1;}};var E=_0x34634d(0x14d),D=_0x34634d(0x170);const O={};let k=class extends t['Disposable']{constructor(_0x1c4e61,_0xca095a,_0x563382,_0x2ac9f1,_0x63cead){const _0x112db3=_0x34634d;super(),this[_0x112db3(0xb9)]=_0x1c4e61,this['_sheetInterceptorService']=_0xca095a,this[_0x112db3(0xbb)]=_0x563382,this[_0x112db3(0x13c)]=_0x2ac9f1,this[_0x112db3(0x163)]=_0x63cead,this[_0x112db3(0xc3)](),this[_0x112db3(0xd0)]();}[_0x34634d(0xc3)](){const _0x107f2a=_0x34634d;[g,v,y,b,x,S,C,m,h,w,_][_0x107f2a(0x13f)](_0x51a3f3=>this[_0x107f2a(0x139)](this[_0x107f2a(0xb9)]['registerCommand'](_0x51a3f3)));}[_0x34634d(0xd0)](){const _0x5ea71b=_0x34634d;this[_0x5ea71b(0x139)](this[_0x5ea71b(0x108)][_0x5ea71b(0x150)]({'getMutations':_0x469b5b=>{const _0xe1df6=_0x5ea71b;if(_0x469b5b['id']===r[_0xe1df6(0x116)]['id']){let {drawings:_0x546e4f}=_0x469b5b[_0xe1df6(0x16c)],_0x49d44c=_0x546e4f[_0xe1df6(0x17a)](_0xada922=>_0xada922[_0xe1df6(0xe2)]===t['DrawingTypeEnum'][_0xe1df6(0xdd)]);if(_0x49d44c['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4a698e=[],_0x133558=[];return _0x49d44c[_0xe1df6(0x13f)](_0x3df0d1=>{const _0x37b657=_0xe1df6;let {unitId:_0x3171f3,subUnitId:_0x37f143,drawingId:_0x40cd0}=_0x3df0d1,_0x134126=this[_0x37b657(0x13c)][_0x37b657(0x144)](_0x3171f3,_0x37f143,_0x40cd0);if(!_0x134126)throw TypeError(_0x37b657(0xf6)+_0x134126);_0x4a698e[_0x37b657(0x135)]({'id':h['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0}}),_0x133558[_0x37b657(0x135)]({'id':m['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x40cd0,'shapeType':_0x134126[_0x37b657(0xca)](),'shapeData':_0x134126['getShapeData']()}});let _0x56a6a7=this[_0x37b657(0x13c)]['getBasicShapeRelation'](_0x3171f3,_0x37f143,_0x40cd0);if(_0x56a6a7)for(let _0x471fe5 of _0x56a6a7){let _0x5ca9c6=_0x471fe5[_0x37b657(0xeb)],_0x24cfa7=_0x471fe5[_0x37b657(0x110)],_0x536397=_0x24cfa7?{'from':void 0x0}:{'to':void 0x0},_0x4db8bc=_0x24cfa7?{'from':{'shapeId':_0x471fe5['shapeId'],'cxnIndex':_0x471fe5['cxnIndex']}}:{'to':{'shapeId':_0x471fe5[_0x37b657(0x155)],'cxnIndex':_0x471fe5[_0x37b657(0x15c)]}};_0x4a698e[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x536397}}}),_0x133558[_0x37b657(0x135)]({'id':_['id'],'params':{'unitId':_0x3171f3,'subUnitId':_0x37f143,'shapeId':_0x5ca9c6,'shapeData':{'relation':_0x4db8bc}}});}}),{'preRedos':_0x4a698e,'redos':[],'preUndos':[],'undos':_0x133558};}if(_0x469b5b['id']===r[_0xe1df6(0x159)]['id']){let {drawings:_0xfb5d88}=_0x469b5b[_0xe1df6(0x16c)],_0x248f7e=_0xfb5d88['filter'](_0xc4b33=>_0xc4b33[_0xe1df6(0xe2)]===t[_0xe1df6(0xbf)][_0xe1df6(0xdd)]);if(_0x248f7e[_0xe1df6(0xdf)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2598e6=[],_0x17267a=[];for(let _0x37adb7 of _0x248f7e){let {unitId:_0x11eb4e,subUnitId:_0x3aa14e,drawingId:_0x1b6c39,transform:_0x5a6952}=_0x37adb7;if(!_0x11eb4e||!_0x3aa14e||!_0x1b6c39||!_0x5a6952)continue;let _0x4d0bb0=this['_sheetsShapeService'][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(!_0x4d0bb0)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x4d0bb0);if((0x0,e[_0xe1df6(0x14c)])(_0x4d0bb0[_0xe1df6(0xca)]())){let _0x2941ff=this[_0xe1df6(0x13c)][_0xe1df6(0x105)](_0x11eb4e,_0x3aa14e,_0x1b6c39);_0x2941ff&&(_0x2598e6[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x17267a[_0xe1df6(0x135)]({'id':_['id'],'params':{'unitId':_0x11eb4e,'subUnitId':_0x3aa14e,'shapeId':_0x1b6c39,'shapeData':{'relation':_0x2941ff}}}));}else{let _0x46c9c7=this['_sheetsShapeService'][_0xe1df6(0xed)](_0x11eb4e,_0x3aa14e,_0x1b6c39);if(_0x46c9c7&&_0x46c9c7[_0xe1df6(0xdf)]>0x0)for(let _0x2f936b of _0x46c9c7){let _0x10b23f=_0x2f936b['lineShapeId'],_0x88e54a=_0x2f936b[_0xe1df6(0x110)],_0x38500f=this[_0xe1df6(0x13c)][_0xe1df6(0x144)](_0x11eb4e,_0x3aa14e,_0x10b23f);if(!_0x38500f)continue;let _0x1321ba=_0x38500f['getStartConnectInfo'](),_0x2b7832=_0x38500f[_0xe1df6(0x174)]();_0x1321ba&&_0x2b7832?this[_0xe1df6(0xb6)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x1321ba,_0x2b7832,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952):this[_0xe1df6(0xe8)](_0x11eb4e,_0x3aa14e,_0x10b23f,_0x38500f,_0x88e54a?_0x1321ba:_0x2b7832,_0x88e54a,_0x2598e6,_0x17267a,_0x1b6c39,_0x5a6952);}}}return{'preRedos':[],'redos':_0x2598e6,'preUndos':_0x17267a,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x32bd5a,_0x3d7f8c,_0x161e61,_0x5502bc,_0x4349ff){const _0x1f47fe=_0x34634d;if(!_0x3d7f8c||!_0x161e61)return null;let {shapeId:_0x26c8f4,cxnIndex:_0x1e0b27}=_0x32bd5a,_0x229d06=this[_0x1f47fe(0x13c)][_0x1f47fe(0x144)](_0x3d7f8c,_0x161e61,_0x26c8f4);if(!_0x229d06)return null;let _0x3adece=this[_0x1f47fe(0x163)][_0x1f47fe(0x126)]({'unitId':_0x3d7f8c,'subUnitId':_0x161e61,'drawingId':_0x26c8f4});if(!(_0x3adece!=null&&_0x3adece[_0x1f47fe(0xd9)]))return null;let {left:_0x737009=0x0,top:_0x4271b5=0x0,width:_0x5ce06c=0x0,height:_0x875194=0x0,flipX:_0x47148c=!0x1,flipY:_0x5c9bb3=!0x1,angle:_0x566a3b}=_0x3adece[_0x1f47fe(0xd9)];if(_0x4349ff&&_0x5502bc===_0x26c8f4){var _0x3a6ed0,_0x319493,_0x499a3f,_0x6708cc,_0x1d6927,_0x5ef722,_0x490853;_0x737009=(_0x3a6ed0=_0x4349ff[_0x1f47fe(0x160)])==null?_0x737009:_0x3a6ed0,_0x4271b5=(_0x319493=_0x4349ff[_0x1f47fe(0x152)])==null?_0x4271b5:_0x319493,_0x5ce06c=(_0x499a3f=_0x4349ff[_0x1f47fe(0x119)])==null?_0x5ce06c:_0x499a3f,_0x875194=(_0x6708cc=_0x4349ff[_0x1f47fe(0x169)])==null?_0x875194:_0x6708cc,_0x47148c=(_0x1d6927=_0x4349ff['flipX'])==null?_0x47148c:_0x1d6927,_0x5c9bb3=(_0x5ef722=_0x4349ff[_0x1f47fe(0x13a)])==null?_0x5c9bb3:_0x5ef722,_0x566a3b=(_0x490853=_0x4349ff['angle'])==null?_0x566a3b:_0x490853;}_0x229d06[_0x1f47fe(0x136)]({'width':_0x5ce06c,'height':_0x875194});let _0x20a0b8=_0x229d06[_0x1f47fe(0xd1)]()[_0x1f47fe(0x179)](_0x46adf3=>_0x46adf3[_0x1f47fe(0xd7)]===_0x1e0b27);if(!_0x20a0b8)return null;let _0x4419b8=_0x47148c?_0x5ce06c-_0x20a0b8['x']:_0x20a0b8['x'],_0x57143a=_0x5c9bb3?_0x875194-_0x20a0b8['y']:_0x20a0b8['y'];if(_0x566a3b!==0x0&&_0x566a3b!=null){let _0x21158b=_0x566a3b*Math['PI']/0xb4,_0x40f1cd=Math[_0x1f47fe(0x16d)](_0x21158b),_0x306003=Math[_0x1f47fe(0x120)](_0x21158b),_0x43827a=_0x5ce06c/0x2,_0x30df7a=_0x875194/0x2,_0x4da776=_0x4419b8-_0x43827a,_0x409269=_0x57143a-_0x30df7a;_0x4419b8=_0x43827a+_0x4da776*_0x40f1cd-_0x409269*_0x306003,_0x57143a=_0x30df7a+_0x4da776*_0x306003+_0x409269*_0x40f1cd;}_0x4419b8+=_0x737009,_0x57143a+=_0x4271b5;let _0x24a3bb=_0x20a0b8[_0x1f47fe(0xcd)]/0xea60;_0x47148c&&(_0x24a3bb=0xb4-_0x24a3bb),_0x5c9bb3&&(_0x24a3bb=-_0x24a3bb),_0x24a3bb+=_0x566a3b||0x0,_0x24a3bb=(_0x24a3bb%0x168+0x168)%0x168;let _0x55347c=(0x0,e['getBasicShapeRotateBound'])({'left':_0x737009,'top':_0x4271b5,'width':_0x5ce06c,'height':_0x875194},_0x566a3b||0x0);return{'point':{'x':_0x4419b8,'y':_0x57143a},'angle':_0x24a3bb,'bounds':_0x55347c};}[_0x34634d(0xb6)](_0x80165a,_0xe4395,_0x34836d,_0x41259f,_0x37bed1,_0x435ed6,_0x40586a,_0x4febbd,_0x563e3c,_0x167320){const _0x4dfffa=_0x34634d;let _0x15b8bd=this[_0x4dfffa(0xbb)][_0x4dfffa(0xba)](_0x80165a,_0xe4395);if(!_0x15b8bd)return;let _0x470524=_0x41259f[_0x4dfffa(0xe7)](),_0xda751c=_0x41259f[_0x4dfffa(0x15d)](),_0x5dbb31={},_0x4e8c24={};_0xda751c[_0x4dfffa(0x13f)](_0x9a2b0=>{let _0x4a479a=_0x41259f['getAdjustValueByName'](_0x9a2b0);_0x4e8c24[_0x9a2b0]=_0x4a479a==null?0x0:_0x4a479a;});let _0x5a23b6=this[_0x4dfffa(0x161)](_0x37bed1,_0x80165a,_0xe4395,_0x563e3c,_0x167320),_0x481dbd=this[_0x4dfffa(0x161)](_0x435ed6,_0x80165a,_0xe4395,_0x563e3c,_0x167320);if(_0x5a23b6&&_0x481dbd){let _0x3c490d=_0x41259f['getShapeType'](),_0x2cf65e=(0x0,e['routeConnectorLineShape'])(_0x5a23b6,_0x481dbd,_0x3c490d),_0x492e5e=_0x3c490d;if(_0x2cf65e){let _0x581d74=(0x0,e[_0x4dfffa(0x13b)])(_0x2cf65e,_0x41259f[_0x4dfffa(0xca)]()),_0x5533b3=this[_0x4dfffa(0x163)][_0x4dfffa(0x127)](_0x80165a,_0xe4395);if(_0x5533b3&&_0x5533b3[_0x34836d]){let _0x2a5e04=_0x5533b3[_0x34836d];_0x492e5e=_0x581d74[_0x4dfffa(0x14e)];for(let [_0x483ac6,_0x3ae797]of Object[_0x4dfffa(0xb0)](_0x581d74['adjustValues']))_0x5dbb31[_0x483ac6]=_0x3ae797;let _0x2e1aac={..._0x2a5e04[_0x4dfffa(0xd9)],'width':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x119)],'height':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x169)],'left':_0x581d74['worldRect'][_0x4dfffa(0x160)],'top':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x152)],'flipX':_0x581d74[_0x4dfffa(0xbe)][_0x4dfffa(0x106)],'flipY':_0x581d74['worldRect'][_0x4dfffa(0x13a)],'angle':_0x581d74[_0x4dfffa(0x140)]},_0x2a8280=(0x0,r['transformToDrawingPosition'])(_0x2e1aac,_0x15b8bd),_0x58d2e0=(0x0,r['transformToAxisAlignPosition'])(_0x2e1aac,_0x15b8bd),_0x45c4f7={'unitId':_0x80165a,'subUnitId':_0xe4395,'drawingType':t[_0x4dfffa(0xbf)][_0x4dfffa(0xdd)],'drawingId':_0x34836d,'transform':_0x2e1aac,'sheetTransform':_0x2a8280,'axisAlignSheetTransform':_0x58d2e0},{unitId:_0x36a0d9,subUnitId:_0x4f32f3,undo:_0x492e96,redo:_0x145fe2,objects:_0xa6e587}=this[_0x4dfffa(0x163)][_0x4dfffa(0xe0)]([_0x45c4f7]);_0x40586a[_0x4dfffa(0x135)]({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x145fe2,'objects':_0xa6e587,'type':r['DrawingApplyType'][_0x4dfffa(0x122)]}}),_0x4febbd['push']({'id':r[_0x4dfffa(0xc7)]['id'],'params':{'unitId':_0x36a0d9,'subUnitId':_0x4f32f3,'op':_0x492e96,'objects':_0xa6e587,'type':r[_0x4dfffa(0xd2)]['UPDATE']}});}_0x41259f['removeLinePoints']();}_0x40586a[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x492e5e,'shapeData':{'adjustValues':_0x5dbb31,'relation':_0x470524}}}),_0x4febbd[_0x4dfffa(0x135)]({'id':_['id'],'params':{'unitId':_0x80165a,'subUnitId':_0xe4395,'shapeId':_0x34836d,'shapeType':_0x3c490d,'shapeData':{'adjustValues':_0x4e8c24,'relation':_0x470524}}});}}[_0x34634d(0xe8)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x22cdf3,_0x39a751,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b){const _0x16f864=_0x34634d;var _0x5f432e;if(!_0x22cdf3)return;let _0x5f0184=this['_sheetSkeletonService'][_0x16f864(0xba)](_0x5bef6d,_0x131c04);if(!_0x5f0184)return;let _0x557628=(_0x5f432e=this[_0x16f864(0x163)][_0x16f864(0x126)]({'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingId':_0x598c8d}))==null?void 0x0:_0x5f432e['transform'];if(!_0x557628)return;let _0x412457=_0x557628[_0x16f864(0x160)]!==_0x41ac0b[_0x16f864(0x160)]||_0x557628[_0x16f864(0x152)]!==_0x41ac0b[_0x16f864(0x152)],_0x5a996c=_0x557628[_0x16f864(0x119)]!==_0x41ac0b[_0x16f864(0x119)]||_0x557628['height']!==_0x41ac0b[_0x16f864(0x169)],_0x4d23ea=_0x557628[_0x16f864(0x106)]!==_0x41ac0b['flipX']||_0x557628[_0x16f864(0x13a)]!==_0x41ac0b[_0x16f864(0x13a)],_0x37dd3b=_0x557628[_0x16f864(0xfb)]!==_0x41ac0b['angle'];if(_0x412457&&!_0x5a996c&&!_0x4d23ea&&!_0x37dd3b){var _0x9b6c7a,_0x11abe3,_0x4b4bc9,_0x4b7237;let _0x541995=((_0x9b6c7a=_0x41ac0b[_0x16f864(0x160)])==null?0x0:_0x9b6c7a)-((_0x11abe3=_0x557628['left'])==null?0x0:_0x11abe3),_0x1c01f6=((_0x4b4bc9=_0x41ac0b[_0x16f864(0x152)])==null?0x0:_0x4b4bc9)-((_0x4b7237=_0x557628[_0x16f864(0x152)])==null?0x0:_0x4b7237),_0xba6a81=this[_0x16f864(0x163)][_0x16f864(0x127)](_0x5bef6d,_0x131c04);if(_0xba6a81&&_0xba6a81[_0x34feb3]){var _0x14bcb5,_0x141ef9,_0x9ad33c,_0x4d941a;let _0x4cf3a8=_0xba6a81[_0x34feb3],_0x3437ae={..._0x4cf3a8[_0x16f864(0xd9)],'left':((_0x14bcb5=(_0x141ef9=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x141ef9[_0x16f864(0x160)])==null?0x0:_0x14bcb5)+_0x541995,'top':((_0x9ad33c=(_0x4d941a=_0x4cf3a8[_0x16f864(0xd9)])==null?void 0x0:_0x4d941a[_0x16f864(0x152)])==null?0x0:_0x9ad33c)+_0x1c01f6},_0x19d9fb=(0x0,r[_0x16f864(0x17c)])(_0x3437ae,_0x5f0184),_0x177fe9=(0x0,r[_0x16f864(0xc1)])(_0x3437ae,_0x5f0184),_0x944607={'unitId':_0x5bef6d,'subUnitId':_0x131c04,'drawingType':t[_0x16f864(0xbf)][_0x16f864(0xdd)],'drawingId':_0x34feb3,'transform':_0x3437ae,'sheetTransform':_0x19d9fb,'axisAlignSheetTransform':_0x177fe9},{unitId:_0x1844e5,subUnitId:_0x44f793,undo:_0x5c148d,redo:_0x45f075,objects:_0x501ff6}=this[_0x16f864(0x163)][_0x16f864(0xe0)]([_0x944607]);_0x5d1337[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x45f075,'objects':_0x501ff6,'type':r[_0x16f864(0xd2)][_0x16f864(0x122)]}}),_0x31ee8c[_0x16f864(0x135)]({'id':r[_0x16f864(0xc7)]['id'],'params':{'unitId':_0x1844e5,'subUnitId':_0x44f793,'op':_0x5c148d,'objects':_0x501ff6,'type':r['DrawingApplyType'][_0x16f864(0x122)]}});}}else{let _0x4b7542=_0x5ebbbf[_0x16f864(0x123)](),_0x6d59c9=_0x5ebbbf[_0x16f864(0x174)]();this[_0x16f864(0xb6)](_0x5bef6d,_0x131c04,_0x34feb3,_0x5ebbbf,_0x4b7542,_0x6d59c9,_0x5d1337,_0x31ee8c,_0x598c8d,_0x41ac0b);}}};k=f([d(0x0,t['ICommandService']),d(0x1,(0x0,t[_0x34634d(0xe1)])(n['SheetInterceptorService'])),d(0x2,(0x0,t[_0x34634d(0xe1)])(n['SheetSkeletonService'])),d(0x3,(0x0,t[_0x34634d(0xe1)])(p)),d(0x4,(0x0,t['Inject'])(a[_0x34634d(0xc8)]))],k);let A=class extends t[_0x34634d(0x16e)]{constructor(_0x311f16=O,_0x2061fd,_0x224f40,_0x5cf343){const _0x4418c3=_0x34634d;super(),this[_0x4418c3(0xb5)]=_0x311f16,this[_0x4418c3(0x131)]=_0x2061fd,this[_0x4418c3(0xb9)]=_0x224f40,this['_configService']=_0x5cf343;let {..._0x38edbd}=(0x0,t[_0x4418c3(0xc5)])({},O,this[_0x4418c3(0xb5)]);this[_0x4418c3(0x128)][_0x4418c3(0x16f)]('sheets-shape.config',_0x38edbd);}[_0x34634d(0x11b)](){const _0x39d5ab=_0x34634d;let _0x18f6c7=this[_0x39d5ab(0x131)];[[u],[p],[k]][_0x39d5ab(0x13f)](_0x5831fe=>_0x18f6c7[_0x39d5ab(0x17d)](_0x5831fe)),(0x0,t['touchDependencies'])(_0x18f6c7,[[p],[k]]);}};l(A,_0x34634d(0x118),t['UniverInstanceType']['UNIVER_SHEET']),l(A,_0x34634d(0x100),_0x34634d(0xdc)),l(A,'packageName',E),l(A,_0x34634d(0x138),D),A=f([(0x0,t[_0x34634d(0x11e)])(i['UniverLicensePlugin']),d(0x1,(0x0,t[_0x34634d(0xe1)])(t[_0x34634d(0x156)])),d(0x2,t['ICommandService']),d(0x3,t[_0x34634d(0x107)])],A),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports[_0x34634d(0xe3)]=0xc8,exports[_0x34634d(0x14b)]=g,exports[_0x34634d(0xc2)]=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x34634d(0xff)]=v,exports[_0x34634d(0x16b)]=b,exports[_0x34634d(0xdb)]=x,Object[_0x34634d(0x158)](exports,_0x34634d(0xbc),{'enumerable':!0x0,'get':function(){return p;}}),exports['ToggleSheetsShapeFlipCommand']=y,Object[_0x34634d(0x158)](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return A;}}),exports['UpdateConnectorRelationCommand']=S,exports[_0x34634d(0xe9)]=C,exports['UpdateSheetsShapeDataMutation']=_,exports[_0x34634d(0x145)]=T,exports['UpdateSheetsShapeTypeMutation']=w;
|