@univerjs-pro/sheets-shape 0.22.0-insiders.20260513-09bbeca → 0.22.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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2253a1=_0x56a7;(function(_0x1485c6,_0x4ca5a0){const _0x110c34=_0x56a7,_0x2b504d=_0x1485c6();while(!![]){try{const _0xd9ac53=-parseInt(_0x110c34(0x17b))/0x1+parseInt(_0x110c34(0x11a))/0x2+-parseInt(_0x110c34(0xf3))/0x3*(parseInt(_0x110c34(0x12f))/0x4)+parseInt(_0x110c34(0x13b))/0x5+parseInt(_0x110c34(0x158))/0x6+-parseInt(_0x110c34(0x116))/0x7+parseInt(_0x110c34(0x17d))/0x8*(parseInt(_0x110c34(0x142))/0x9);if(_0xd9ac53===_0x4ca5a0)break;else _0x2b504d['push'](_0x2b504d['shift']());}catch(_0x2df963){_0x2b504d['push'](_0x2b504d['shift']());}}}(_0x4f14,0xebd2d),Object[_0x2253a1(0x160)](exports,Symbol[_0x2253a1(0x17e)],{'value':_0x2253a1(0x136)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FSheetsShapeEnumMixin=class extends _univerjs_core_facade[_0x2253a1(0x14b)]{get[_0x2253a1(0x14a)](){const _0x5cb2f4=_0x2253a1;return _univerjs_pro_engine_shape[_0x5cb2f4(0x14a)];}get[_0x2253a1(0xf1)](){const _0x118143=_0x2253a1;return _univerjs_pro_engine_shape[_0x118143(0xf1)];}get['ShapeGradientTypeEnum'](){return _univerjs_pro_engine_shape['ShapeGradientTypeEnum'];}get[_0x2253a1(0x113)](){return _univerjs_pro_engine_shape['ShapeLineTypeEnum'];}get[_0x2253a1(0xf0)](){const _0x5e6659=_0x2253a1;return _univerjs_pro_engine_shape[_0x5e6659(0xf0)];}get[_0x2253a1(0x137)](){const _0x222a14=_0x2253a1;return _univerjs_pro_engine_shape[_0x222a14(0x137)];}get[_0x2253a1(0x17f)](){return _univerjs_pro_engine_shape['ShapeLineJoinEnum'];}get[_0x2253a1(0x16d)](){const _0x5a81ae=_0x2253a1;return _univerjs_pro_engine_shape[_0x5a81ae(0x16d)];}get[_0x2253a1(0x12d)](){return _univerjs_pro_engine_shape['ShapeArrowSizeEnum'];}};_univerjs_core_facade['FEnum'][_0x2253a1(0x135)](FSheetsShapeEnumMixin);function _typeof(_0x352171){'@babel/helpers - typeof';const _0x5d8f13=_0x2253a1;return _typeof=_0x5d8f13(0x11b)==typeof Symbol&&_0x5d8f13(0xef)==typeof Symbol[_0x5d8f13(0x140)]?function(_0xb4a2bd){return typeof _0xb4a2bd;}:function(_0x518f9f){const _0x34ea31=_0x5d8f13;return _0x518f9f&&_0x34ea31(0x11b)==typeof Symbol&&_0x518f9f[_0x34ea31(0x108)]===Symbol&&_0x518f9f!==Symbol[_0x34ea31(0x111)]?_0x34ea31(0xef):typeof _0x518f9f;},_typeof(_0x352171);}function toPrimitive(_0x50f904,_0x45e75c){const _0xe2268b=_0x2253a1;if('object'!=_typeof(_0x50f904)||!_0x50f904)return _0x50f904;var _0x358412=_0x50f904[Symbol[_0xe2268b(0x152)]];if(void 0x0!==_0x358412){var _0x2e8a11=_0x358412[_0xe2268b(0xfd)](_0x50f904,_0x45e75c||_0xe2268b(0x15b));if(_0xe2268b(0x16f)!=_typeof(_0x2e8a11))return _0x2e8a11;throw new TypeError(_0xe2268b(0x128));}return(_0xe2268b(0x11f)===_0x45e75c?String:Number)(_0x50f904);}function toPropertyKey(_0x3a9803){const _0x53703d=_0x2253a1;var _0x3cca9e=toPrimitive(_0x3a9803,_0x53703d(0x11f));return'symbol'==_typeof(_0x3cca9e)?_0x3cca9e:_0x3cca9e+'';}function _defineProperty(_0x4f8558,_0x2d3de1,_0x3d2d4b){const _0x5b2a74=_0x2253a1;return(_0x2d3de1=toPropertyKey(_0x2d3de1))in _0x4f8558?Object[_0x5b2a74(0x160)](_0x4f8558,_0x2d3de1,{'value':_0x3d2d4b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f8558[_0x2d3de1]=_0x3d2d4b,_0x4f8558;}function _0x56a7(_0x1a9630,_0x1aa594){_0x1a9630=_0x1a9630-0xea;const _0x4f14e5=_0x4f14();let _0x56a7ef=_0x4f14e5[_0x1a9630];return _0x56a7ef;}var FShape=class{constructor(_0x364222,_0x18706b,_0x78e2f,_0x7efd70){const _0x1acbfd=_0x2253a1;_defineProperty(this,'unitId',void 0x0),_defineProperty(this,_0x1acbfd(0x16c),void 0x0),_defineProperty(this,_0x1acbfd(0xf9),void 0x0),_defineProperty(this,'x',0x0),_defineProperty(this,'y',0x0),_defineProperty(this,'width',_univerjs_pro_sheets_shape[_0x1acbfd(0x157)]),_defineProperty(this,_0x1acbfd(0x147),_univerjs_pro_sheets_shape[_0x1acbfd(0x11e)]),_defineProperty(this,_0x1acbfd(0x161),void 0x0),_defineProperty(this,_0x1acbfd(0x168),{}),_defineProperty(this,_0x1acbfd(0xff),void 0x0),this[_0x1acbfd(0x159)]=_0x364222,this[_0x1acbfd(0x16c)]=_0x18706b,this[_0x1acbfd(0xf9)]=_0x78e2f||(0x0,_univerjs_core['generateRandomId'])(),this['_injector']=_0x7efd70;}[_0x2253a1(0x179)](_0x1ba60b,_0x51a265,_0x118536,_0x43f94f){const _0xa21d66=_0x2253a1,_0x214c4b=this[_0xa21d66(0xff)][_0xa21d66(0x15a)](_univerjs_sheets[_0xa21d66(0x176)])['ensureSkeleton'](this[_0xa21d66(0x159)],this[_0xa21d66(0x16c)]);if(!_0x214c4b)throw new Error(_0xa21d66(0x15c)+this[_0xa21d66(0x159)]+_0xa21d66(0x12c)+this['subUnitId']+_0xa21d66(0x16b));const {transform:_0xc86019}=(0x0,_univerjs_sheets[_0xa21d66(0x178)])(this[_0xa21d66(0x159)],this['subUnitId'],{'row':_0x1ba60b,'column':_0x51a265,'rowOffset':_0x118536,'columnOffset':_0x43f94f},0x1,0x1,_0x214c4b);return this['x']=_0xc86019[_0xa21d66(0x181)],this['y']=_0xc86019[_0xa21d66(0xec)],this;}[_0x2253a1(0x164)](_0x2a4944,_0x844bb1){return this['x']=_0x2a4944,this['y']=_0x844bb1,this;}[_0x2253a1(0x171)](_0x3b6b92){const _0xb0e79c=_0x2253a1;return this[_0xb0e79c(0x161)]=_0x3b6b92,this;}[_0x2253a1(0x182)](_0x23b1cb,_0x5e99cf){const _0x59a026=_0x2253a1;if(!this[_0x59a026(0x168)][_0x59a026(0xf8)])this[_0x59a026(0x168)]['fill']={};this['shapeData'][_0x59a026(0xf8)]['fillType']=_univerjs_pro_engine_shape[_0x59a026(0xf1)][_0x59a026(0x154)];if(_0x23b1cb!==void 0x0)this['shapeData']['fill'][_0x59a026(0x122)]=_0x23b1cb;if(_0x5e99cf!==void 0x0)this[_0x59a026(0x168)][_0x59a026(0xf8)]['opacity']=_0x5e99cf;return this;}[_0x2253a1(0x13c)](_0x5d1e3f,_0x1ea997,_0x52b862){const _0x135b6b=_0x2253a1;if(_0x1ea997===void 0x0||_0x1ea997[_0x135b6b(0x131)]===0x0)throw new Error(_0x135b6b(0x145));if(!this['shapeData'][_0x135b6b(0xf8)])this['shapeData'][_0x135b6b(0xf8)]={};this[_0x135b6b(0x168)][_0x135b6b(0xf8)]['gradientStops']=_0x1ea997,this[_0x135b6b(0x168)][_0x135b6b(0xf8)][_0x135b6b(0x11d)]=_univerjs_pro_engine_shape['ShapeFillEnum'][_0x135b6b(0xf2)],this['shapeData'][_0x135b6b(0xf8)][_0x135b6b(0x13e)]=_0x5d1e3f;if(_0x52b862!==void 0x0)this[_0x135b6b(0x168)][_0x135b6b(0xf8)][_0x135b6b(0xfa)]=_0x52b862;return this;}[_0x2253a1(0xee)](){const _0x4a1c51=_0x2253a1;return this['shapeData'][_0x4a1c51(0xf8)]={'fillType':_univerjs_pro_engine_shape[_0x4a1c51(0xf1)][_0x4a1c51(0xeb)]},this;}[_0x2253a1(0x149)](_0xdef303){const _0x386439=_0x2253a1;if(!this[_0x386439(0x168)][_0x386439(0x14d)])this[_0x386439(0x168)][_0x386439(0x14d)]={};return this['shapeData']['stroke'][_0x386439(0x122)]=_0xdef303,this;}[_0x2253a1(0x120)](_0x5a78db){const _0x24d00f=_0x2253a1;if(!this['shapeData']['stroke'])this['shapeData'][_0x24d00f(0x14d)]={};return this[_0x24d00f(0x168)]['stroke'][_0x24d00f(0x106)]=_0x5a78db,this;}[_0x2253a1(0x143)](_0x576212){const _0x3bfb5e=_0x2253a1;if(!this['shapeData'][_0x3bfb5e(0x14d)])this[_0x3bfb5e(0x168)][_0x3bfb5e(0x14d)]={};return this[_0x3bfb5e(0x168)][_0x3bfb5e(0x14d)][_0x3bfb5e(0x133)]=_0x576212,this;}['setStrokeLineJoinType'](_0x43f1e1){const _0x4789a9=_0x2253a1;if(!this[_0x4789a9(0x168)]['stroke'])this[_0x4789a9(0x168)][_0x4789a9(0x14d)]={};return this['shapeData']['stroke'][_0x4789a9(0x129)]=_0x43f1e1,this;}[_0x2253a1(0x183)](_0xefb3d2){const _0x6ee844=_0x2253a1;if(!this['shapeData'][_0x6ee844(0x14d)])this[_0x6ee844(0x168)][_0x6ee844(0x14d)]={};return this[_0x6ee844(0x168)]['stroke'][_0x6ee844(0x16e)]=_0xefb3d2,this;}[_0x2253a1(0x118)](_0xd120a3){const _0x57ccf4=_0x2253a1;if(!this[_0x57ccf4(0x168)][_0x57ccf4(0x14d)])this['shapeData'][_0x57ccf4(0x14d)]={};return this['shapeData'][_0x57ccf4(0x14d)]['opacity']=_0xd120a3,this;}[_0x2253a1(0x115)](_0x3b6c05){const _0x12432f=_0x2253a1;if(!this['shapeData'][_0x12432f(0x14d)])this['shapeData'][_0x12432f(0x14d)]={};return this[_0x12432f(0x168)][_0x12432f(0x14d)][_0x12432f(0x10a)]=_0x3b6c05,this;}[_0x2253a1(0x156)](_0x294e50){const _0x3818a9=_0x2253a1;return this[_0x3818a9(0x106)]=_0x294e50,this;}['setHeight'](_0x140576){return this['height']=_0x140576,this;}['isLineShape'](){const _0x5c2076=_0x2253a1,_0x55cf16=this[_0x5c2076(0xff)]['get'](_univerjs_pro_sheets_shape[_0x5c2076(0x175)])['getShapeModel'](this[_0x5c2076(0x159)],this['subUnitId'],this[_0x5c2076(0xf9)]);if(_0x55cf16)return(0x0,_univerjs_pro_engine_shape[_0x5c2076(0x16a)])(_0x55cf16[_0x5c2076(0x165)]());if(this[_0x5c2076(0x161)])return(0x0,_univerjs_pro_engine_shape[_0x5c2076(0x16a)])(this['shapeType']);return![];}[_0x2253a1(0x102)](){const _0x33ad26=_0x2253a1,_0x233543=this['_injector'][_0x33ad26(0x15a)](_univerjs_pro_sheets_shape[_0x33ad26(0x175)])[_0x33ad26(0x103)](this[_0x33ad26(0x159)],this['subUnitId'],this[_0x33ad26(0xf9)]);if(!_0x233543)return[];const _0x1f27d4=this['_injector'][_0x33ad26(0x15a)](_univerjs_drawing[_0x33ad26(0x126)])[_0x33ad26(0x109)]({'unitId':this[_0x33ad26(0x159)],'subUnitId':this[_0x33ad26(0x16c)],'drawingId':this[_0x33ad26(0xf9)]});if(!(_0x1f27d4===null||_0x1f27d4===void 0x0?void 0x0:_0x1f27d4[_0x33ad26(0x162)]))return[];const {width:width=0x0,height:height=0x0}=_0x1f27d4[_0x33ad26(0x162)];return _0x233543[_0x33ad26(0x148)]({'width':width,'height':height}),_0x233543['getConnectionSiteList']();}['getAdjustPoints'](){const _0x5904d4=_0x2253a1,_0x114236=this[_0x5904d4(0xff)]['get'](_univerjs_pro_sheets_shape[_0x5904d4(0x175)])[_0x5904d4(0x103)](this['unitId'],this['subUnitId'],this[_0x5904d4(0xf9)]);if(!_0x114236)return[];const _0x3a89b5=this[_0x5904d4(0xff)]['get'](_univerjs_drawing[_0x5904d4(0x126)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x3a89b5===null||_0x3a89b5===void 0x0?void 0x0:_0x3a89b5[_0x5904d4(0x162)]))return[];const {width:width=0x0,height:height=0x0}=_0x3a89b5['transform'];return _0x114236[_0x5904d4(0x148)]({'width':width,'height':height}),_0x114236[_0x5904d4(0x155)]();}['getConnectorLinePoints'](){const _0x241fd8=_0x2253a1,_0x503f6f=this[_0x241fd8(0xff)][_0x241fd8(0x15a)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x241fd8(0x103)](this[_0x241fd8(0x159)],this[_0x241fd8(0x16c)],this[_0x241fd8(0xf9)]);if(!_0x503f6f)return[];if(!(0x0,_univerjs_pro_engine_shape[_0x241fd8(0x16a)])(_0x503f6f[_0x241fd8(0x165)]()))return[];const _0x5576e3=this[_0x241fd8(0xff)][_0x241fd8(0x15a)](_univerjs_drawing[_0x241fd8(0x126)])['getDrawingByParam']({'unitId':this[_0x241fd8(0x159)],'subUnitId':this[_0x241fd8(0x16c)],'drawingId':this[_0x241fd8(0xf9)]});if(!(_0x5576e3===null||_0x5576e3===void 0x0?void 0x0:_0x5576e3['transform']))return[];const {width:width=0x0,height:height=0x0}=_0x5576e3[_0x241fd8(0x162)];return _0x503f6f[_0x241fd8(0x148)]({'width':width,'height':height}),_0x503f6f[_0x241fd8(0x139)]();}['getStartConnectInfo'](){const _0x322cbd=_0x2253a1;var _0xc91d08;const _0x1f8359=this[_0x322cbd(0xff)][_0x322cbd(0x15a)](_univerjs_pro_sheets_shape[_0x322cbd(0x175)])['getShapeModel'](this[_0x322cbd(0x159)],this[_0x322cbd(0x16c)],this[_0x322cbd(0xf9)]);if(!_0x1f8359)return null;return(_0xc91d08=_0x1f8359[_0x322cbd(0x14e)]())!==null&&_0xc91d08!==void 0x0?_0xc91d08:null;}[_0x2253a1(0x167)](){const _0x3b1636=_0x2253a1;var _0x25a680;const _0x41e464=this['_injector'][_0x3b1636(0x15a)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3b1636(0x103)](this[_0x3b1636(0x159)],this[_0x3b1636(0x16c)],this[_0x3b1636(0xf9)]);if(!_0x41e464)return null;return(_0x25a680=_0x41e464[_0x3b1636(0x167)]())!==null&&_0x25a680!==void 0x0?_0x25a680:null;}['build'](){const _0x24c354=_0x2253a1;var _0x472717,_0xef4a4c;if(!this['shapeType'])throw new Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){const _0x1b733b=this[_0x24c354(0xff)]['get'](_univerjs_sheets[_0x24c354(0x176)])[_0x24c354(0x119)](this[_0x24c354(0x159)],this[_0x24c354(0x16c)]);if(!_0x1b733b)throw new Error(_0x24c354(0x15c)+this[_0x24c354(0x159)]+_0x24c354(0x12c)+this[_0x24c354(0x16c)]+_0x24c354(0x16b));const {transform:_0x47b682}=(0x0,_univerjs_sheets[_0x24c354(0x178)])(this[_0x24c354(0x159)],this[_0x24c354(0x16c)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1b733b);this['x']=this['x']>0x0?this['x']:_0x47b682[_0x24c354(0x181)],this['y']=this['y']>0x0?this['y']:_0x47b682[_0x24c354(0xec)];}return this[_0x24c354(0x106)]=(_0x472717=this['width'])!==null&&_0x472717!==void 0x0?_0x472717:_univerjs_pro_sheets_shape[_0x24c354(0x157)],this['height']=(_0xef4a4c=this['height'])!==null&&_0xef4a4c!==void 0x0?_0xef4a4c:_univerjs_pro_sheets_shape[_0x24c354(0x11e)],{'unitId':this['unitId'],'subUnitId':this[_0x24c354(0x16c)],'shapeId':this[_0x24c354(0xf9)],'shapeType':this[_0x24c354(0x161)],'shapeData':Object[_0x24c354(0x153)](this[_0x24c354(0x168)])[_0x24c354(0x131)]>0x0?this[_0x24c354(0x168)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x24c354(0x106)],'height':this[_0x24c354(0x147)]};}[_0x2253a1(0x15f)](){const _0x5701f5=_0x2253a1;return this[_0x5701f5(0xf9)];}[_0x2253a1(0x165)](){const _0x4c6a65=_0x2253a1;return this[_0x4c6a65(0x161)];}[_0x2253a1(0x13a)](){const _0x93ac05=_0x2253a1;return this[_0x93ac05(0x168)];}[_0x2253a1(0x12e)](){return{'x':this['x'],'y':this['y']};}[_0x2253a1(0x12b)](){const _0x52d0f5=_0x2253a1;return{'width':this['width'],'height':this[_0x52d0f5(0x147)]};}},FConnectorShape=class extends FShape{constructor(_0xf1b83b,_0x2c79bc,_0x1a0f80,_0x12d110){const _0x5c06a7=_0x2253a1;super(_0xf1b83b,_0x2c79bc,_0x1a0f80,_0x12d110),_defineProperty(this,_0x5c06a7(0x168),{});}[_0x2253a1(0x171)](_0x2f267a){const _0x11375b=_0x2253a1;if(!(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x2f267a))throw new Error(_0x11375b(0x10c)+_0x2f267a+_0x11375b(0x15e));return super[_0x11375b(0x171)](_0x2f267a),this;}['setStartArrowType'](_0x37cd7c){const _0x4681c2=_0x2253a1;var _0x4d6c38,_0xc8560;if(!((_0x4d6c38=this['shapeData'])===null||_0x4d6c38===void 0x0?void 0x0:_0x4d6c38['ln']))this[_0x4681c2(0x168)]['ln']={};if(!((_0xc8560=this['shapeData'])===null||_0xc8560===void 0x0||(_0xc8560=_0xc8560['ln'])===null||_0xc8560===void 0x0?void 0x0:_0xc8560[_0x4681c2(0x114)]))this[_0x4681c2(0x168)]['ln'][_0x4681c2(0x114)]={};return this[_0x4681c2(0x168)]['ln'][_0x4681c2(0x114)]['type']=_0x37cd7c,this;}[_0x2253a1(0x110)](_0x57ed3a){const _0x4e702e=_0x2253a1;var _0x1bd25d,_0x133a86;if(!((_0x1bd25d=this[_0x4e702e(0x168)])===null||_0x1bd25d===void 0x0?void 0x0:_0x1bd25d['ln']))this[_0x4e702e(0x168)]['ln']={};if(!((_0x133a86=this[_0x4e702e(0x168)])===null||_0x133a86===void 0x0||(_0x133a86=_0x133a86['ln'])===null||_0x133a86===void 0x0?void 0x0:_0x133a86[_0x4e702e(0x169)]))this[_0x4e702e(0x168)]['ln']['endArrow']={};return this[_0x4e702e(0x168)]['ln'][_0x4e702e(0x169)][_0x4e702e(0x121)]=_0x57ed3a,this;}[_0x2253a1(0x125)](_0x53c97b){const _0x4d57a5=_0x2253a1;var _0x4c5ee3,_0x4b3218;if(!((_0x4c5ee3=this[_0x4d57a5(0x168)])===null||_0x4c5ee3===void 0x0?void 0x0:_0x4c5ee3['ln']))this[_0x4d57a5(0x168)]['ln']={};if(!((_0x4b3218=this[_0x4d57a5(0x168)])===null||_0x4b3218===void 0x0||(_0x4b3218=_0x4b3218['ln'])===null||_0x4b3218===void 0x0?void 0x0:_0x4b3218[_0x4d57a5(0x114)]))this[_0x4d57a5(0x168)]['ln'][_0x4d57a5(0x114)]={};return this['shapeData']['ln']['startArrow']['size']=_0x53c97b,this;}[_0x2253a1(0xf7)](_0x5a6a29){const _0x488512=_0x2253a1;var _0x2ea2a3,_0x44010a;if(!((_0x2ea2a3=this[_0x488512(0x168)])===null||_0x2ea2a3===void 0x0?void 0x0:_0x2ea2a3['ln']))this[_0x488512(0x168)]['ln']={};if(!((_0x44010a=this[_0x488512(0x168)])===null||_0x44010a===void 0x0||(_0x44010a=_0x44010a['ln'])===null||_0x44010a===void 0x0?void 0x0:_0x44010a['endArrow']))this[_0x488512(0x168)]['ln'][_0x488512(0x169)]={};return this[_0x488512(0x168)]['ln']['endArrow'][_0x488512(0x105)]=_0x5a6a29,this;}[_0x2253a1(0x11c)](){return super['build']();}[_0x2253a1(0x167)](){const _0x59abd0=_0x2253a1;var _0x3f303a;return((_0x3f303a=this[_0x59abd0(0x168)])===null||_0x3f303a===void 0x0||(_0x3f303a=_0x3f303a[_0x59abd0(0xed)])===null||_0x3f303a===void 0x0?void 0x0:_0x3f303a['to'])||null;}[_0x2253a1(0x14e)](){const _0x31e502=_0x2253a1;var _0x2ba9b8;return((_0x2ba9b8=this['shapeData'])===null||_0x2ba9b8===void 0x0||(_0x2ba9b8=_0x2ba9b8[_0x31e502(0xed)])===null||_0x2ba9b8===void 0x0?void 0x0:_0x2ba9b8[_0x31e502(0x100)])||null;}};function computeConnectionPointInfo(_0x1b3b72,_0x15a38e,_0xd6d481,_0x194300,_0x1f78d6,_0x1ba3c6){const _0x14f025=_0x2253a1,_0x84d6a7=_0x1f78d6[_0x14f025(0x103)](_0x1b3b72,_0x15a38e,_0xd6d481);if(!_0x84d6a7)return null;const _0x15d7da=_0x1ba3c6[_0x14f025(0x109)]({'unitId':_0x1b3b72,'subUnitId':_0x15a38e,'drawingId':_0xd6d481});if(!(_0x15d7da===null||_0x15d7da===void 0x0?void 0x0:_0x15d7da['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x3d2b99}=_0x15d7da['transform'];_0x84d6a7['updateContext']({'width':width,'height':height});const _0x288e96=_0x84d6a7[_0x14f025(0x146)]()[_0x14f025(0x127)](_0x48ed5a=>_0x48ed5a[_0x14f025(0x184)]===_0x194300);if(!_0x288e96)return null;let _0x2e6896=flipX?width-_0x288e96['x']:_0x288e96['x'],_0x50411e=flipY?height-_0x288e96['y']:_0x288e96['y'];if(_0x3d2b99&&_0x3d2b99!==0x0){const _0x209846=_0x3d2b99*Math['PI']/0xb4,_0x259afd=Math['cos'](_0x209846),_0x2e1c54=Math[_0x14f025(0x10b)](_0x209846),_0x621985=width/0x2,_0x4c8370=height/0x2,_0x1c02d6=_0x2e6896-_0x621985,_0xb866ca=_0x50411e-_0x4c8370;_0x2e6896=_0x621985+_0x1c02d6*_0x259afd-_0xb866ca*_0x2e1c54,_0x50411e=_0x4c8370+_0x1c02d6*_0x2e1c54+_0xb866ca*_0x259afd;}_0x2e6896+=left,_0x50411e+=top;let _0x50b026=_0x288e96[_0x14f025(0x107)]/0xea60;if(flipX)_0x50b026=0xb4-_0x50b026;if(flipY)_0x50b026=-_0x50b026;_0x50b026+=_0x3d2b99||0x0,_0x50b026=(_0x50b026%0x168+0x168)%0x168;const _0x51ee3e=(0x0,_univerjs_pro_engine_shape[_0x14f025(0xf6)])({'left':left,'top':top,'width':width,'height':height},_0x3d2b99||0x0);return{'point':{'x':_0x2e6896,'y':_0x50411e},'angle':_0x50b026,'bounds':_0x51ee3e};}function calculateFreeEndpointAngle(_0x541ad4,_0x21cff1){const _0x319f82=_0x2253a1,_0x1a0728=_0x21cff1['x']-_0x541ad4['x'],_0x46d278=_0x21cff1['y']-_0x541ad4['y'];if(Math[_0x319f82(0x166)](_0x1a0728)>=Math[_0x319f82(0x166)](_0x46d278))return _0x1a0728>=0x0?0xb4:0x0;return _0x46d278>=0x0?0x10e:0x5a;}function computeFreeEndpointInfo(_0x2a67d4,_0x2571fe,_0x4f8323,_0x1d9995,_0x1a2f16,_0x146cbc,_0xa2dfa8){const _0x219d05=_0x2253a1,_0x48bb81=_0x146cbc[_0x219d05(0x103)](_0x2a67d4,_0x2571fe,_0x4f8323);if(!_0x48bb81)return null;const _0xba79cc=_0xa2dfa8[_0x219d05(0x109)]({'unitId':_0x2a67d4,'subUnitId':_0x2571fe,'drawingId':_0x4f8323});if(!(_0xba79cc===null||_0xba79cc===void 0x0?void 0x0:_0xba79cc['transform']))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0xba79cc[_0x219d05(0x162)];_0x48bb81[_0x219d05(0x148)]({'width':width,'height':height});const _0x3a0f8d=_0x48bb81[_0x219d05(0x139)]();if(_0x3a0f8d[_0x219d05(0x131)]<0x2)return null;const _0x536752=_0x1d9995?_0x3a0f8d[0x0]:_0x3a0f8d[_0x3a0f8d[_0x219d05(0x131)]-0x1],_0x3995de=new _univerjs_pro_engine_shape[(_0x219d05(0x14f))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY})[_0x219d05(0x13f)](_0x536752);return{'point':_0x3995de,'angle':calculateFreeEndpointAngle(_0x1a2f16[_0x219d05(0x141)],_0x3995de),'bounds':{'left':_0x3995de['x'],'top':_0x3995de['y'],'width':0x0,'height':0x0}};}var FWorksheetShapeMixin=class extends _univerjs_sheets_facade[_0x2253a1(0x12a)]{async[_0x2253a1(0x151)](_0x20c7a2){const _0xd58246=_0x2253a1,{unitId:_0x2db138,subUnitId:_0x4d660e,shapeId:_0x218019,shapeType:_0x210221,shapeData:_0x3dc113,x:_0x4d7562,y:_0x54d3a6,width:_0xc0e879,height:_0x4512e4}=_0x20c7a2;return this['_commandService'][_0xd58246(0x10e)](_univerjs_pro_sheets_shape[_0xd58246(0xfe)]['id'],{'unitId':_0x2db138,'subUnitId':_0x4d660e,'shapeId':_0x218019,'shapeType':_0x210221,'shapeData':_0x3dc113,'position':{'x':_0x4d7562,'y':_0x54d3a6},'width':_0xc0e879,'height':_0x4512e4});}async['updateShape'](_0x21d93b){const _0x40278a=_0x2253a1,{unitId:_0x525e6c,subUnitId:_0x24fa1e,shapeId:_0xacf844,shapeType:_0xfa1f27,shapeData:_0x5b7f2f,x:_0x2749ca,y:_0x7fe906,width:_0x57291a,height:_0x2d049f}=_0x21d93b;return this[_0x40278a(0x10d)][_0x40278a(0x10e)](_univerjs_pro_sheets_shape[_0x40278a(0x17a)]['id'],{'unitId':_0x525e6c,'subUnitId':_0x24fa1e,'shapeId':_0xacf844,'shapeType':_0xfa1f27,'shapeData':_0x5b7f2f,'position':{'x':_0x2749ca,'y':_0x7fe906},'width':_0x57291a,'height':_0x2d049f});}[_0x2253a1(0x112)](_0x11f1ef){const _0x3f6e29=_0x2253a1,_0x4c31bc=this[_0x3f6e29(0x15d)]()[_0x3f6e29(0x173)](),_0x4e720f=this[_0x3f6e29(0x124)]();if(_0x11f1ef){const _0x415ee6=new FShape(_0x4c31bc,_0x4e720f,_0x11f1ef[_0x3f6e29(0xf9)],this[_0x3f6e29(0xff)]);return this['_preloadShapeProperties'](_0x415ee6,_0x4c31bc,_0x4e720f,_0x11f1ef[_0x3f6e29(0xf9)]),_0x415ee6;}return new FShape(_0x4c31bc,_0x4e720f,(0x0,_univerjs_core[_0x3f6e29(0x132)])(),this[_0x3f6e29(0xff)]);}[_0x2253a1(0x134)](_0xd3d7f7){const _0x4460de=_0x2253a1,_0x1cd1ab=this[_0x4460de(0x15d)]()[_0x4460de(0x173)](),_0x694246=this[_0x4460de(0x124)]();if(_0xd3d7f7){const _0x1b89d2=new FConnectorShape(_0x1cd1ab,_0x694246,_0xd3d7f7[_0x4460de(0xf9)],this[_0x4460de(0xff)]);return this[_0x4460de(0x104)](_0x1b89d2,_0x1cd1ab,_0x694246,_0xd3d7f7[_0x4460de(0xf9)]),_0x1b89d2;}return new FConnectorShape(_0x1cd1ab,_0x694246,(0x0,_univerjs_core[_0x4460de(0x132)])(),this['_injector']);}[_0x2253a1(0x138)](){const _0x35afc4=_0x2253a1,_0x2a10a8=this['_injector'][_0x35afc4(0x15a)](_univerjs_sheets_drawing['ISheetDrawingService']),_0x5ed240=this[_0x35afc4(0x15d)]()[_0x35afc4(0x173)](),_0x341912=this[_0x35afc4(0x124)](),_0x5a70a0=_0x2a10a8[_0x35afc4(0x144)](_0x5ed240,_0x341912);if(!_0x5a70a0)return[];const _0x1125c6=[];for(const [_0x2138fa,_0x5289a8]of Object['entries'](_0x5a70a0))if(_0x5289a8&&_0x5289a8[_0x35afc4(0x17c)]===_univerjs_core[_0x35afc4(0xfb)][_0x35afc4(0xea)]){const _0x5a8d39=new FShape(_0x5ed240,_0x341912,_0x2138fa,this[_0x35afc4(0xff)]);this[_0x35afc4(0x104)](_0x5a8d39,_0x5ed240,_0x341912,_0x2138fa),_0x1125c6[_0x35afc4(0x101)](_0x5a8d39);}return _0x1125c6;}[_0x2253a1(0x177)](_0x3ba13a){const _0x4dff66=_0x2253a1,{unitId:_0x2c19cf,subUnitId:_0x496f3f,drawId:_0x5edb64}=_0x3ba13a;return this[_0x4dff66(0x10d)][_0x4dff66(0x10e)](_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id'],{'unitId':_0x2c19cf,'drawings':[{'unitId':_0x2c19cf,'subUnitId':_0x496f3f,'drawingId':_0x5edb64,'drawingType':_univerjs_core[_0x4dff66(0xfb)][_0x4dff66(0xea)]}]});}async[_0x2253a1(0x150)](_0x150a77){const _0x2d9151=_0x2253a1,{connector:_0xcc4c1,startTarget:_0x497c56,endTarget:_0x243690}=_0x150a77;if(!_0x497c56&&!_0x243690)return![];const _0x33b003=this[_0x2d9151(0x15d)]()['getUnitId'](),_0x42a396=this['getSheetId'](),_0x1aedac=this[_0x2d9151(0xff)][_0x2d9151(0x15a)](_univerjs_pro_sheets_shape[_0x2d9151(0x175)]),_0x103912=this[_0x2d9151(0xff)][_0x2d9151(0x15a)](_univerjs_drawing[_0x2d9151(0x126)]),_0x5f2b1e=_0x1aedac['getShapeModel'](_0x33b003,_0x42a396,_0xcc4c1[_0x2d9151(0xf9)]);if(!_0x5f2b1e)return![];const _0x1adf31=_0x5f2b1e[_0x2d9151(0x165)](),_0x298f05=_0x5f2b1e['getShapeRelation'](),_0x2cc3c5={};for(const _0x20b4a4 of _0x5f2b1e[_0x2d9151(0xf4)]()){const _0x544195=_0x5f2b1e[_0x2d9151(0x170)](_0x20b4a4);if(_0x544195!==void 0x0)_0x2cc3c5[_0x20b4a4]=_0x544195;}const {startInfo:_0xbf2c72,endInfo:_0x38f2c9}=this[_0x2d9151(0x185)](_0x33b003,_0x42a396,_0xcc4c1,_0x5f2b1e,_0x497c56,_0x243690,_0x1aedac,_0x103912,_0x298f05);if(!_0xbf2c72||!_0x38f2c9)return![];const _0x54dc22=(0x0,_univerjs_pro_engine_shape[_0x2d9151(0x14c)])((0x0,_univerjs_pro_engine_shape[_0x2d9151(0xfc)])(_0xbf2c72,_0x38f2c9,_0x1adf31),_0x1adf31),_0x1d40c7={};if(_0x497c56)_0x1d40c7[_0x2d9151(0x100)]={'shapeId':_0x497c56[_0x2d9151(0x10f)][_0x2d9151(0xf9)],'cxnIndex':_0x497c56['connectionSiteIndex']};else{if(_0x298f05===null||_0x298f05===void 0x0?void 0x0:_0x298f05['from'])_0x1d40c7['from']=_0x298f05[_0x2d9151(0x100)];}if(_0x243690)_0x1d40c7['to']={'shapeId':_0x243690[_0x2d9151(0x10f)][_0x2d9151(0xf9)],'cxnIndex':_0x243690[_0x2d9151(0x174)]};else{if(_0x298f05===null||_0x298f05===void 0x0?void 0x0:_0x298f05['to'])_0x1d40c7['to']=_0x298f05['to'];}return this[_0x2d9151(0x10d)]['executeCommand'](_univerjs_pro_sheets_shape[_0x2d9151(0xf5)]['id'],{'unitId':_0x33b003,'subUnitId':_0x42a396,'connectorShapeId':_0xcc4c1[_0x2d9151(0xf9)],'width':_0x54dc22[_0x2d9151(0x172)]['width'],'height':_0x54dc22[_0x2d9151(0x172)][_0x2d9151(0x147)],'left':_0x54dc22[_0x2d9151(0x172)][_0x2d9151(0x181)],'top':_0x54dc22['worldRect'][_0x2d9151(0xec)],'flipX':_0x54dc22[_0x2d9151(0x172)]['flipX']||![],'flipY':_0x54dc22[_0x2d9151(0x172)]['flipY']||![],'oldAdjustValues':_0x2cc3c5,'newAdjustValues':_0x54dc22['adjustValues'],'newLineType':_0x54dc22[_0x2d9151(0x123)],'oldLineType':_0x1adf31,'rotation':_0x54dc22[_0x2d9151(0x13d)],'oldRelation':_0x298f05,'newRelation':_0x1d40c7});}[_0x2253a1(0x104)](_0x1992fd,_0x3f1154,_0x46665e,_0x5797c2){const _0x358694=_0x2253a1,_0x265645=this['_injector']['get'](_univerjs_drawing[_0x358694(0x126)])[_0x358694(0x109)]({'unitId':_0x3f1154,'subUnitId':_0x46665e,'drawingId':_0x5797c2});if(_0x265645===null||_0x265645===void 0x0?void 0x0:_0x265645['transform']){var _0x81a847,_0x4d242e,_0x33c6e9,_0x3d2453;_0x1992fd['x']=(_0x81a847=_0x265645[_0x358694(0x162)]['left'])!==null&&_0x81a847!==void 0x0?_0x81a847:0x0,_0x1992fd['y']=(_0x4d242e=_0x265645[_0x358694(0x162)]['top'])!==null&&_0x4d242e!==void 0x0?_0x4d242e:0x0,_0x1992fd[_0x358694(0x106)]=(_0x33c6e9=_0x265645['transform'][_0x358694(0x106)])!==null&&_0x33c6e9!==void 0x0?_0x33c6e9:_0x1992fd[_0x358694(0x106)],_0x1992fd[_0x358694(0x147)]=(_0x3d2453=_0x265645['transform']['height'])!==null&&_0x3d2453!==void 0x0?_0x3d2453:_0x1992fd['height'];}const _0x3db1da=this['_injector'][_0x358694(0x15a)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x358694(0x103)](_0x3f1154,_0x46665e,_0x5797c2);if(_0x3db1da){_0x1992fd[_0x358694(0x161)]=_0x3db1da['getShapeType']();const _0x290169=_0x3db1da[_0x358694(0x13a)]();if(_0x290169)_0x1992fd[_0x358694(0x168)]=JSON['parse'](JSON[_0x358694(0x117)](_0x290169));}}[_0x2253a1(0x185)](_0x33934d,_0x19e212,_0x6a582f,_0x1ad2ed,_0x272974,_0x28d442,_0x1fd3aa,_0x12cd96,_0x3d090b){const _0x2172c4=_0x2253a1;let _0x2e64e6=null,_0x1a8582=null;if(_0x272974)_0x2e64e6=computeConnectionPointInfo(_0x33934d,_0x19e212,_0x272974['shape']['drawId'],_0x272974[_0x2172c4(0x174)],_0x1fd3aa,_0x12cd96);if(_0x28d442)_0x1a8582=computeConnectionPointInfo(_0x33934d,_0x19e212,_0x28d442[_0x2172c4(0x10f)][_0x2172c4(0xf9)],_0x28d442[_0x2172c4(0x174)],_0x1fd3aa,_0x12cd96);if(!_0x2e64e6)_0x2e64e6=this[_0x2172c4(0x130)](_0x33934d,_0x19e212,_0x6a582f[_0x2172c4(0xf9)],!![],_0x1a8582,_0x3d090b===null||_0x3d090b===void 0x0?void 0x0:_0x3d090b[_0x2172c4(0x100)],_0x1fd3aa,_0x12cd96);if(!_0x1a8582)_0x1a8582=this[_0x2172c4(0x130)](_0x33934d,_0x19e212,_0x6a582f[_0x2172c4(0xf9)],![],_0x2e64e6,_0x3d090b===null||_0x3d090b===void 0x0?void 0x0:_0x3d090b['to'],_0x1fd3aa,_0x12cd96);return{'startInfo':_0x2e64e6,'endInfo':_0x1a8582};}[_0x2253a1(0x130)](_0x4ec707,_0x2f9b80,_0x50261e,_0x4a45c,_0x3708c6,_0xc16d4c,_0x802687,_0x1a9409){const _0x4853ca=_0x2253a1;if(_0xc16d4c){const _0x3d9d5f=computeConnectionPointInfo(_0x4ec707,_0x2f9b80,_0xc16d4c[_0x4853ca(0x187)],_0xc16d4c[_0x4853ca(0x186)],_0x802687,_0x1a9409);if(_0x3d9d5f)return _0x3d9d5f;}if(!_0x3708c6)return null;return computeFreeEndpointInfo(_0x4ec707,_0x2f9b80,_0x50261e,_0x4a45c,_0x3708c6,_0x802687,_0x1a9409);}};_univerjs_sheets_facade[_0x2253a1(0x12a)][_0x2253a1(0x135)](FWorksheetShapeMixin),exports[_0x2253a1(0x180)]=FConnectorShape,exports[_0x2253a1(0x163)]=FShape;function _0x4f14(){const _0x40a546=['top','relation','setNoneFill','symbol','ShapeLineDashEnum','ShapeFillEnum','GradientFill','3WMtLiQ','getAdjustNames','UpdateConnectorRelationCommand','getBasicShapeRotateBound','setEndArrowSize','fill','drawId','gradientAngle','DrawingTypeEnum','routeConnectorLineShape','call','InsertShapeCommand','_injector','from','push','getConnectionSites','getShapeModel','_preloadShapeProperties','size','width','ang','constructor','getDrawingByParam','lineStrokeType','sin','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','_commandService','executeCommand','shape','setEndArrowType','prototype','newShape','ShapeLineTypeEnum','startArrow','setStrokeLineType','9195501bcUYzF','stringify','setStrokeOpacity','ensureSkeleton','2881650rYDiBy','function','build','fillType','DEFAULT_SHAPE_HEIGHT','string','setStrokeWidth','type','color','lineType','getSheetId','setStartArrowSize','IDrawingManagerService','find','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','lineJoinType','FWorksheet','getSize','\x20and\x20subUnitId\x20','ShapeArrowSizeEnum','getPosition','424492NrSZFw','_resolveExistingOrFreeEndpoint','length','generateRandomId','dashType','newConnector','extend','Module','ShapeLineCapEnum','getShapes','getConnectorLinePoints','getShapeData','1427730QZpocy','setShapeGradientFill','rotation','gradientType','localToWorld','iterator','point','14171589WINMhN','setStrokeLineDashType','getDrawingData','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getConnectionSiteList','height','updateContext','setStrokeColor','ShapeTypeEnum','FEnum','computeConnectorRouteLayout','stroke','getStartConnectInfo','ConnectorCoordinateTransform','connectShapes','insertShape','toPrimitive','keys','SolidFill','getDrawingPoints','setWidth','DEFAULT_SHAPE_WIDTH','1513788vnEnIf','unitId','get','default','Skeleton\x20for\x20unitId\x20','getWorkbook',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getShapeId','defineProperty','shapeType','transform','FShape','setAbsolutePosition','getShapeType','abs','getEndConnectInfo','shapeData','endArrow','isConnectorShape','\x20not\x20found','subUnitId','ShapeArrowTypeEnum','capType','object','getAdjustValueByName','setShapeType','worldRect','getUnitId','connectionSiteIndex','SheetsShapeService','SheetSkeletonService','removeShape','convertPositionCellToSheetOverGrid','setPosition','SetShapeDrawingDataCommand','1167591ckyopp','drawingType','8iaeFWs','toStringTag','ShapeLineJoinEnum','FConnectorShape','left','setShapeSolidFill','setStrokeLineCapType','index','_resolveEndpoints','cxnIndex','shapeId','DRAWING_SHAPE','NoFill'];_0x4f14=function(){return _0x40a546;};return _0x4f14();}
|
|
1
|
+
const _0x5442c3=_0x1248;(function(_0x3a5918,_0x5cdec4){const _0x1d52b9=_0x1248,_0x1fa75c=_0x3a5918();while(!![]){try{const _0xb9d1f5=parseInt(_0x1d52b9(0xa5))/0x1+-parseInt(_0x1d52b9(0x136))/0x2*(-parseInt(_0x1d52b9(0xed))/0x3)+-parseInt(_0x1d52b9(0x106))/0x4+-parseInt(_0x1d52b9(0x122))/0x5*(-parseInt(_0x1d52b9(0x102))/0x6)+-parseInt(_0x1d52b9(0xd8))/0x7*(parseInt(_0x1d52b9(0x109))/0x8)+-parseInt(_0x1d52b9(0xff))/0x9+-parseInt(_0x1d52b9(0xc2))/0xa*(-parseInt(_0x1d52b9(0x141))/0xb);if(_0xb9d1f5===_0x5cdec4)break;else _0x1fa75c['push'](_0x1fa75c['shift']());}catch(_0x4132dc){_0x1fa75c['push'](_0x1fa75c['shift']());}}}(_0x241b,0xd3447),Object[_0x5442c3(0xc0)](exports,Symbol['toStringTag'],{'value':_0x5442c3(0xf2)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_sheets_shape=require('@univerjs-pro/sheets-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_drawing=require('@univerjs/drawing'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_sheets_facade=require('@univerjs/sheets/facade');var FSheetsShapeEnumMixin=class extends _univerjs_core_facade[_0x5442c3(0xb8)]{get['ShapeTypeEnum'](){return _univerjs_pro_engine_shape['ShapeTypeEnum'];}get[_0x5442c3(0x12f)](){const _0x3511ae=_0x5442c3;return _univerjs_pro_engine_shape[_0x3511ae(0x12f)];}get[_0x5442c3(0xb0)](){const _0x517074=_0x5442c3;return _univerjs_pro_engine_shape[_0x517074(0xb0)];}get[_0x5442c3(0x105)](){const _0xaf2175=_0x5442c3;return _univerjs_pro_engine_shape[_0xaf2175(0x105)];}get[_0x5442c3(0xd2)](){const _0x1a4181=_0x5442c3;return _univerjs_pro_engine_shape[_0x1a4181(0xd2)];}get['ShapeLineCapEnum'](){const _0x52498b=_0x5442c3;return _univerjs_pro_engine_shape[_0x52498b(0xc5)];}get[_0x5442c3(0x12a)](){const _0x284e07=_0x5442c3;return _univerjs_pro_engine_shape[_0x284e07(0x12a)];}get['ShapeArrowTypeEnum'](){const _0x56eb3d=_0x5442c3;return _univerjs_pro_engine_shape[_0x56eb3d(0xc3)];}get[_0x5442c3(0xe7)](){const _0x11b1a1=_0x5442c3;return _univerjs_pro_engine_shape[_0x11b1a1(0xe7)];}};function _0x241b(){const _0x293a54=['startArrow','updateContext','object','ShapeGradientTypeEnum','from','lineJoinType','FConnectorShape','RemoveSheetDrawingCommand','_resolveExistingOrFreeEndpoint','find','\x20and\x20subUnitId\x20','FEnum','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','convertPositionCellToSheetOverGrid','generateRandomId','getAdjustValueByName','executeCommand','shapeId','ang','defineProperty','color','6689270IkcKPd','ShapeArrowTypeEnum','keys','ShapeLineCapEnum','point','computeConnectorRouteLayout','relation','routeConnectorLineShape','fillType','IDrawingManagerService','SheetsShapeService','getShapeModel','toPrimitive','GradientFill','isConnectorShape','extend','ShapeLineDashEnum','getSheetId','_injector','ISheetDrawingService','isLineShape','setEndArrowSize','1558277TBUHUP','stroke','setStrokeLineDashType','Skeleton\x20for\x20unitId\x20','function','\x20not\x20found','NoFill','setStrokeOpacity','default','setWidth','size','_preloadShapeProperties','setEndArrowType','setNoneFill','setStrokeColor','ShapeArrowSizeEnum','type','setStrokeLineCapType','cxnIndex','top','abs','144wxZeMt','fill','build','setPosition','setStrokeWidth','Module','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','symbol','setShapeGradientFill','getConnectionSiteList','unitId','get','UpdateConnectorRelationCommand','DrawingTypeEnum','getConnectorLinePoints','cos','DRAWING_SHAPE','_commandService','8707167qSeoPn','getShapeType','SetShapeDrawingDataCommand','1576194uhiLCo','getPosition','localToWorld','ShapeLineTypeEnum','2176568JtulFc','getEndConnectInfo','getSize','56SsjIBZ','gradientStops','shape','getWorkbook','removeShape','getShapeRelation','flipX','lineType','drawingType','parse','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','SheetSkeletonService','worldRect','opacity','width','setShapeType','gradientType','lineStrokeType','drawId','setAbsolutePosition','height','transform','rotation','setHeight','getStartConnectInfo','10cJkXnL','left','getShapeData','DEFAULT_SHAPE_HEIGHT','newShape','newConnector','endArrow','string','ShapeLineJoinEnum','adjustValues','getBasicShapeRotateBound',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','index','ShapeFillEnum','setStartArrowSize','subUnitId','getConnectionSites','ConnectorCoordinateTransform','FWorksheet','getAdjustNames','3588ywCnvZ','iterator','prototype','sin','getDrawingByParam','shapeType','connectionSiteIndex','push','ensureSkeleton','shapeData','getAdjustPoints','33kCyXrg','_resolveEndpoints','1316942FyVoPA','connectShapes','gradientAngle','DEFAULT_SHAPE_WIDTH','insertShape','getUnitId','setStrokeLineType','length'];_0x241b=function(){return _0x293a54;};return _0x241b();}_univerjs_core_facade['FEnum'][_0x5442c3(0xd1)](FSheetsShapeEnumMixin);function _typeof(_0x2953e1){'@babel/helpers - typeof';const _0x66df18=_0x5442c3;return _typeof=_0x66df18(0xdc)==typeof Symbol&&'symbol'==typeof Symbol[_0x66df18(0x137)]?function(_0x3b02d4){return typeof _0x3b02d4;}:function(_0x42e88b){const _0x5881c7=_0x66df18;return _0x42e88b&&_0x5881c7(0xdc)==typeof Symbol&&_0x42e88b['constructor']===Symbol&&_0x42e88b!==Symbol[_0x5881c7(0x138)]?_0x5881c7(0xf4):typeof _0x42e88b;},_typeof(_0x2953e1);}function toPrimitive(_0x52d0e8,_0x2f0c3f){const _0x4056dc=_0x5442c3;if(_0x4056dc(0xaf)!=_typeof(_0x52d0e8)||!_0x52d0e8)return _0x52d0e8;var _0x1964e9=_0x52d0e8[Symbol[_0x4056dc(0xce)]];if(void 0x0!==_0x1964e9){var _0x126a80=_0x1964e9['call'](_0x52d0e8,_0x2f0c3f||_0x4056dc(0xe0));if(_0x4056dc(0xaf)!=_typeof(_0x126a80))return _0x126a80;throw new TypeError(_0x4056dc(0xb9));}return(_0x4056dc(0x129)===_0x2f0c3f?String:Number)(_0x52d0e8);}function toPropertyKey(_0x8c7a2c){const _0x4e5901=_0x5442c3;var _0x3d89cb=toPrimitive(_0x8c7a2c,_0x4e5901(0x129));return _0x4e5901(0xf4)==_typeof(_0x3d89cb)?_0x3d89cb:_0x3d89cb+'';}function _defineProperty(_0x374609,_0x4ad8f3,_0xc9b810){const _0x69ccc5=_0x5442c3;return(_0x4ad8f3=toPropertyKey(_0x4ad8f3))in _0x374609?Object[_0x69ccc5(0xc0)](_0x374609,_0x4ad8f3,{'value':_0xc9b810,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x374609[_0x4ad8f3]=_0xc9b810,_0x374609;}var FShape=class{constructor(_0x4fa148,_0x1031dc,_0x11c36e,_0x278a89){const _0x106085=_0x5442c3;_defineProperty(this,_0x106085(0xf7),void 0x0),_defineProperty(this,_0x106085(0x131),void 0x0),_defineProperty(this,_0x106085(0x11b),void 0x0),_defineProperty(this,'x',0x0),_defineProperty(this,'y',0x0),_defineProperty(this,_0x106085(0x117),_univerjs_pro_sheets_shape['DEFAULT_SHAPE_WIDTH']),_defineProperty(this,'height',_univerjs_pro_sheets_shape[_0x106085(0x125)]),_defineProperty(this,'shapeType',void 0x0),_defineProperty(this,_0x106085(0x13f),{}),_defineProperty(this,_0x106085(0xd4),void 0x0),this[_0x106085(0xf7)]=_0x4fa148,this[_0x106085(0x131)]=_0x1031dc,this[_0x106085(0x11b)]=_0x11c36e||(0x0,_univerjs_core[_0x106085(0xbb)])(),this[_0x106085(0xd4)]=_0x278a89;}[_0x5442c3(0xf0)](_0x399ff7,_0x48db75,_0x5ec902,_0x514b5d){const _0x31c3ba=_0x5442c3,_0x2e89ee=this[_0x31c3ba(0xd4)][_0x31c3ba(0xf8)](_univerjs_sheets[_0x31c3ba(0x114)])[_0x31c3ba(0x13e)](this['unitId'],this[_0x31c3ba(0x131)]);if(!_0x2e89ee)throw new Error(_0x31c3ba(0xdb)+this[_0x31c3ba(0xf7)]+_0x31c3ba(0xb7)+this[_0x31c3ba(0x131)]+_0x31c3ba(0xdd));const {transform:_0x299f71}=(0x0,_univerjs_sheets[_0x31c3ba(0xba)])(this['unitId'],this['subUnitId'],{'row':_0x399ff7,'column':_0x48db75,'rowOffset':_0x5ec902,'columnOffset':_0x514b5d},0x1,0x1,_0x2e89ee);return this['x']=_0x299f71['left'],this['y']=_0x299f71[_0x31c3ba(0xeb)],this;}[_0x5442c3(0x11c)](_0x185812,_0x1b8831){return this['x']=_0x185812,this['y']=_0x1b8831,this;}[_0x5442c3(0x118)](_0x5a56ff){const _0x57fca2=_0x5442c3;return this[_0x57fca2(0x13b)]=_0x5a56ff,this;}['setShapeSolidFill'](_0x2a97cc,_0x46bd07){const _0x2363c7=_0x5442c3;if(!this[_0x2363c7(0x13f)][_0x2363c7(0xee)])this[_0x2363c7(0x13f)][_0x2363c7(0xee)]={};this[_0x2363c7(0x13f)][_0x2363c7(0xee)][_0x2363c7(0xca)]=_univerjs_pro_engine_shape[_0x2363c7(0x12f)]['SolidFill'];if(_0x2a97cc!==void 0x0)this['shapeData'][_0x2363c7(0xee)]['color']=_0x2a97cc;if(_0x46bd07!==void 0x0)this[_0x2363c7(0x13f)]['fill'][_0x2363c7(0x116)]=_0x46bd07;return this;}[_0x5442c3(0xf5)](_0x9298d4,_0x3314b3,_0x36242d){const _0xee3250=_0x5442c3;if(_0x3314b3===void 0x0||_0x3314b3['length']===0x0)throw new Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');if(!this[_0xee3250(0x13f)][_0xee3250(0xee)])this[_0xee3250(0x13f)][_0xee3250(0xee)]={};this['shapeData'][_0xee3250(0xee)][_0xee3250(0x10a)]=_0x3314b3,this['shapeData']['fill'][_0xee3250(0xca)]=_univerjs_pro_engine_shape[_0xee3250(0x12f)][_0xee3250(0xcf)],this[_0xee3250(0x13f)][_0xee3250(0xee)][_0xee3250(0x119)]=_0x9298d4;if(_0x36242d!==void 0x0)this[_0xee3250(0x13f)]['fill'][_0xee3250(0xa7)]=_0x36242d;return this;}[_0x5442c3(0xe5)](){const _0xb63866=_0x5442c3;return this['shapeData'][_0xb63866(0xee)]={'fillType':_univerjs_pro_engine_shape['ShapeFillEnum'][_0xb63866(0xde)]},this;}[_0x5442c3(0xe6)](_0x5c1429){const _0x39b56e=_0x5442c3;if(!this['shapeData'][_0x39b56e(0xd9)])this[_0x39b56e(0x13f)][_0x39b56e(0xd9)]={};return this[_0x39b56e(0x13f)][_0x39b56e(0xd9)][_0x39b56e(0xc1)]=_0x5c1429,this;}[_0x5442c3(0xf1)](_0x3d505e){const _0x47b846=_0x5442c3;if(!this[_0x47b846(0x13f)][_0x47b846(0xd9)])this[_0x47b846(0x13f)][_0x47b846(0xd9)]={};return this[_0x47b846(0x13f)][_0x47b846(0xd9)][_0x47b846(0x117)]=_0x3d505e,this;}[_0x5442c3(0xda)](_0x1dcb0a){const _0x5e8092=_0x5442c3;if(!this[_0x5e8092(0x13f)][_0x5e8092(0xd9)])this[_0x5e8092(0x13f)]['stroke']={};return this[_0x5e8092(0x13f)][_0x5e8092(0xd9)]['dashType']=_0x1dcb0a,this;}['setStrokeLineJoinType'](_0x287792){const _0x4a22ec=_0x5442c3;if(!this['shapeData'][_0x4a22ec(0xd9)])this[_0x4a22ec(0x13f)][_0x4a22ec(0xd9)]={};return this[_0x4a22ec(0x13f)][_0x4a22ec(0xd9)][_0x4a22ec(0xb2)]=_0x287792,this;}[_0x5442c3(0xe9)](_0x1de5c1){const _0x1a7f62=_0x5442c3;if(!this['shapeData']['stroke'])this[_0x1a7f62(0x13f)][_0x1a7f62(0xd9)]={};return this['shapeData'][_0x1a7f62(0xd9)]['capType']=_0x1de5c1,this;}[_0x5442c3(0xdf)](_0x4df5d8){const _0x42e9b1=_0x5442c3;if(!this[_0x42e9b1(0x13f)]['stroke'])this[_0x42e9b1(0x13f)]['stroke']={};return this[_0x42e9b1(0x13f)]['stroke']['opacity']=_0x4df5d8,this;}[_0x5442c3(0xab)](_0x445394){const _0x234b8a=_0x5442c3;if(!this[_0x234b8a(0x13f)]['stroke'])this[_0x234b8a(0x13f)][_0x234b8a(0xd9)]={};return this[_0x234b8a(0x13f)][_0x234b8a(0xd9)][_0x234b8a(0x11a)]=_0x445394,this;}[_0x5442c3(0xe1)](_0x1b7a2c){const _0x4b6ec2=_0x5442c3;return this[_0x4b6ec2(0x117)]=_0x1b7a2c,this;}[_0x5442c3(0x120)](_0x805436){const _0x29b537=_0x5442c3;return this[_0x29b537(0x11d)]=_0x805436,this;}[_0x5442c3(0xd6)](){const _0x125ba5=_0x5442c3,_0x13f90e=this[_0x125ba5(0xd4)]['get'](_univerjs_pro_sheets_shape[_0x125ba5(0xcc)])['getShapeModel'](this[_0x125ba5(0xf7)],this[_0x125ba5(0x131)],this[_0x125ba5(0x11b)]);if(_0x13f90e)return(0x0,_univerjs_pro_engine_shape[_0x125ba5(0xd0)])(_0x13f90e[_0x125ba5(0x100)]());if(this['shapeType'])return(0x0,_univerjs_pro_engine_shape[_0x125ba5(0xd0)])(this[_0x125ba5(0x13b)]);return![];}[_0x5442c3(0x132)](){const _0x49da3e=_0x5442c3,_0x13da92=this[_0x49da3e(0xd4)]['get'](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x49da3e(0xcd)](this['unitId'],this[_0x49da3e(0x131)],this[_0x49da3e(0x11b)]);if(!_0x13da92)return[];const _0x201acf=this[_0x49da3e(0xd4)]['get'](_univerjs_drawing[_0x49da3e(0xcb)])[_0x49da3e(0x13a)]({'unitId':this['unitId'],'subUnitId':this[_0x49da3e(0x131)],'drawingId':this[_0x49da3e(0x11b)]});if(!(_0x201acf===null||_0x201acf===void 0x0?void 0x0:_0x201acf[_0x49da3e(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x201acf[_0x49da3e(0x11e)];return _0x13da92[_0x49da3e(0xae)]({'width':width,'height':height}),_0x13da92[_0x49da3e(0xf6)]();}[_0x5442c3(0x140)](){const _0x13daac=_0x5442c3,_0x227789=this[_0x13daac(0xd4)][_0x13daac(0xf8)](_univerjs_pro_sheets_shape[_0x13daac(0xcc)])['getShapeModel'](this[_0x13daac(0xf7)],this[_0x13daac(0x131)],this[_0x13daac(0x11b)]);if(!_0x227789)return[];const _0x2d7b20=this[_0x13daac(0xd4)][_0x13daac(0xf8)](_univerjs_drawing['IDrawingManagerService'])[_0x13daac(0x13a)]({'unitId':this[_0x13daac(0xf7)],'subUnitId':this[_0x13daac(0x131)],'drawingId':this[_0x13daac(0x11b)]});if(!(_0x2d7b20===null||_0x2d7b20===void 0x0?void 0x0:_0x2d7b20[_0x13daac(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x2d7b20[_0x13daac(0x11e)];return _0x227789[_0x13daac(0xae)]({'width':width,'height':height}),_0x227789['getDrawingPoints']();}[_0x5442c3(0xfb)](){const _0x3339db=_0x5442c3,_0x227451=this[_0x3339db(0xd4)][_0x3339db(0xf8)](_univerjs_pro_sheets_shape['SheetsShapeService'])[_0x3339db(0xcd)](this[_0x3339db(0xf7)],this[_0x3339db(0x131)],this[_0x3339db(0x11b)]);if(!_0x227451)return[];if(!(0x0,_univerjs_pro_engine_shape[_0x3339db(0xd0)])(_0x227451[_0x3339db(0x100)]()))return[];const _0x3768f3=this['_injector'][_0x3339db(0xf8)](_univerjs_drawing['IDrawingManagerService'])[_0x3339db(0x13a)]({'unitId':this[_0x3339db(0xf7)],'subUnitId':this[_0x3339db(0x131)],'drawingId':this[_0x3339db(0x11b)]});if(!(_0x3768f3===null||_0x3768f3===void 0x0?void 0x0:_0x3768f3[_0x3339db(0x11e)]))return[];const {width:width=0x0,height:height=0x0}=_0x3768f3[_0x3339db(0x11e)];return _0x227451[_0x3339db(0xae)]({'width':width,'height':height}),_0x227451[_0x3339db(0xfb)]();}[_0x5442c3(0x121)](){const _0x355ce9=_0x5442c3;var _0x48a617;const _0x2da111=this[_0x355ce9(0xd4)][_0x355ce9(0xf8)](_univerjs_pro_sheets_shape[_0x355ce9(0xcc)])[_0x355ce9(0xcd)](this[_0x355ce9(0xf7)],this[_0x355ce9(0x131)],this[_0x355ce9(0x11b)]);if(!_0x2da111)return null;return(_0x48a617=_0x2da111['getStartConnectInfo']())!==null&&_0x48a617!==void 0x0?_0x48a617:null;}[_0x5442c3(0x107)](){const _0x54a13f=_0x5442c3;var _0x58ec3b;const _0x127668=this[_0x54a13f(0xd4)][_0x54a13f(0xf8)](_univerjs_pro_sheets_shape[_0x54a13f(0xcc)])[_0x54a13f(0xcd)](this['unitId'],this[_0x54a13f(0x131)],this['drawId']);if(!_0x127668)return null;return(_0x58ec3b=_0x127668['getEndConnectInfo']())!==null&&_0x58ec3b!==void 0x0?_0x58ec3b:null;}['build'](){const _0x4fd5fc=_0x5442c3;var _0x585427,_0x23184c;if(!this[_0x4fd5fc(0x13b)])throw new Error(_0x4fd5fc(0xf3));if(this['x']===0x0||this['y']===0x0){const _0x3c27a7=this['_injector'][_0x4fd5fc(0xf8)](_univerjs_sheets[_0x4fd5fc(0x114)])[_0x4fd5fc(0x13e)](this['unitId'],this[_0x4fd5fc(0x131)]);if(!_0x3c27a7)throw new Error('Skeleton\x20for\x20unitId\x20'+this['unitId']+_0x4fd5fc(0xb7)+this['subUnitId']+_0x4fd5fc(0xdd));const {transform:_0x727bbc}=(0x0,_univerjs_sheets[_0x4fd5fc(0xba)])(this['unitId'],this[_0x4fd5fc(0x131)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x3c27a7);this['x']=this['x']>0x0?this['x']:_0x727bbc['left'],this['y']=this['y']>0x0?this['y']:_0x727bbc['top'];}return this[_0x4fd5fc(0x117)]=(_0x585427=this['width'])!==null&&_0x585427!==void 0x0?_0x585427:_univerjs_pro_sheets_shape[_0x4fd5fc(0xa8)],this[_0x4fd5fc(0x11d)]=(_0x23184c=this[_0x4fd5fc(0x11d)])!==null&&_0x23184c!==void 0x0?_0x23184c:_univerjs_pro_sheets_shape[_0x4fd5fc(0x125)],{'unitId':this[_0x4fd5fc(0xf7)],'subUnitId':this[_0x4fd5fc(0x131)],'shapeId':this['drawId'],'shapeType':this['shapeType'],'shapeData':Object[_0x4fd5fc(0xc4)](this[_0x4fd5fc(0x13f)])['length']>0x0?this[_0x4fd5fc(0x13f)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4fd5fc(0x117)],'height':this[_0x4fd5fc(0x11d)]};}['getShapeId'](){return this['drawId'];}[_0x5442c3(0x100)](){const _0x1a2ef4=_0x5442c3;return this[_0x1a2ef4(0x13b)];}['getShapeData'](){return this['shapeData'];}[_0x5442c3(0x103)](){return{'x':this['x'],'y':this['y']};}[_0x5442c3(0x108)](){const _0xe5d32e=_0x5442c3;return{'width':this[_0xe5d32e(0x117)],'height':this[_0xe5d32e(0x11d)]};}},FConnectorShape=class extends FShape{constructor(_0x1f757c,_0x4a3531,_0x44c2ff,_0x17b105){const _0x2cc282=_0x5442c3;super(_0x1f757c,_0x4a3531,_0x44c2ff,_0x17b105),_defineProperty(this,_0x2cc282(0x13f),{});}[_0x5442c3(0x118)](_0x5947aa){const _0x48f336=_0x5442c3;if(!(0x0,_univerjs_pro_engine_shape[_0x48f336(0xd0)])(_0x5947aa))throw new Error(_0x48f336(0x113)+_0x5947aa+_0x48f336(0x12d));return super[_0x48f336(0x118)](_0x5947aa),this;}['setStartArrowType'](_0x5e8245){const _0x50a7c8=_0x5442c3;var _0x5763ad,_0x2d19e8;if(!((_0x5763ad=this[_0x50a7c8(0x13f)])===null||_0x5763ad===void 0x0?void 0x0:_0x5763ad['ln']))this[_0x50a7c8(0x13f)]['ln']={};if(!((_0x2d19e8=this[_0x50a7c8(0x13f)])===null||_0x2d19e8===void 0x0||(_0x2d19e8=_0x2d19e8['ln'])===null||_0x2d19e8===void 0x0?void 0x0:_0x2d19e8['startArrow']))this[_0x50a7c8(0x13f)]['ln'][_0x50a7c8(0xad)]={};return this[_0x50a7c8(0x13f)]['ln'][_0x50a7c8(0xad)]['type']=_0x5e8245,this;}[_0x5442c3(0xe4)](_0x34ceb2){const _0x1963b2=_0x5442c3;var _0x1f29dd,_0x3052bf;if(!((_0x1f29dd=this[_0x1963b2(0x13f)])===null||_0x1f29dd===void 0x0?void 0x0:_0x1f29dd['ln']))this['shapeData']['ln']={};if(!((_0x3052bf=this[_0x1963b2(0x13f)])===null||_0x3052bf===void 0x0||(_0x3052bf=_0x3052bf['ln'])===null||_0x3052bf===void 0x0?void 0x0:_0x3052bf['endArrow']))this['shapeData']['ln'][_0x1963b2(0x128)]={};return this[_0x1963b2(0x13f)]['ln'][_0x1963b2(0x128)][_0x1963b2(0xe8)]=_0x34ceb2,this;}[_0x5442c3(0x130)](_0x1cdf06){const _0x2a0551=_0x5442c3;var _0x240e1f,_0xdc5569;if(!((_0x240e1f=this['shapeData'])===null||_0x240e1f===void 0x0?void 0x0:_0x240e1f['ln']))this[_0x2a0551(0x13f)]['ln']={};if(!((_0xdc5569=this[_0x2a0551(0x13f)])===null||_0xdc5569===void 0x0||(_0xdc5569=_0xdc5569['ln'])===null||_0xdc5569===void 0x0?void 0x0:_0xdc5569['startArrow']))this[_0x2a0551(0x13f)]['ln'][_0x2a0551(0xad)]={};return this[_0x2a0551(0x13f)]['ln']['startArrow'][_0x2a0551(0xe2)]=_0x1cdf06,this;}[_0x5442c3(0xd7)](_0x4d0614){const _0x5ec4ec=_0x5442c3;var _0x3332e0,_0x117455;if(!((_0x3332e0=this[_0x5ec4ec(0x13f)])===null||_0x3332e0===void 0x0?void 0x0:_0x3332e0['ln']))this[_0x5ec4ec(0x13f)]['ln']={};if(!((_0x117455=this['shapeData'])===null||_0x117455===void 0x0||(_0x117455=_0x117455['ln'])===null||_0x117455===void 0x0?void 0x0:_0x117455[_0x5ec4ec(0x128)]))this[_0x5ec4ec(0x13f)]['ln'][_0x5ec4ec(0x128)]={};return this['shapeData']['ln']['endArrow'][_0x5ec4ec(0xe2)]=_0x4d0614,this;}[_0x5442c3(0xef)](){const _0x16c4bd=_0x5442c3;return super[_0x16c4bd(0xef)]();}[_0x5442c3(0x107)](){const _0x5b856a=_0x5442c3;var _0x488799;return((_0x488799=this[_0x5b856a(0x13f)])===null||_0x488799===void 0x0||(_0x488799=_0x488799[_0x5b856a(0xc8)])===null||_0x488799===void 0x0?void 0x0:_0x488799['to'])||null;}[_0x5442c3(0x121)](){const _0x2469ba=_0x5442c3;var _0x4b31e7;return((_0x4b31e7=this[_0x2469ba(0x13f)])===null||_0x4b31e7===void 0x0||(_0x4b31e7=_0x4b31e7['relation'])===null||_0x4b31e7===void 0x0?void 0x0:_0x4b31e7[_0x2469ba(0xb1)])||null;}};function computeConnectionPointInfo(_0x292534,_0x21effd,_0x793618,_0x36bf46,_0x5c0fe0,_0x2f09db){const _0x26c442=_0x5442c3,_0x1e48f8=_0x5c0fe0[_0x26c442(0xcd)](_0x292534,_0x21effd,_0x793618);if(!_0x1e48f8)return null;const _0x816967=_0x2f09db[_0x26c442(0x13a)]({'unitId':_0x292534,'subUnitId':_0x21effd,'drawingId':_0x793618});if(!(_0x816967===null||_0x816967===void 0x0?void 0x0:_0x816967[_0x26c442(0x11e)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x18c731}=_0x816967[_0x26c442(0x11e)];_0x1e48f8['updateContext']({'width':width,'height':height});const _0x46c3da=_0x1e48f8[_0x26c442(0xf6)]()[_0x26c442(0xb6)](_0x3f2646=>_0x3f2646[_0x26c442(0x12e)]===_0x36bf46);if(!_0x46c3da)return null;let _0x3bf018=flipX?width-_0x46c3da['x']:_0x46c3da['x'],_0x5ad37d=flipY?height-_0x46c3da['y']:_0x46c3da['y'];if(_0x18c731&&_0x18c731!==0x0){const _0x1f7bd3=_0x18c731*Math['PI']/0xb4,_0x641cc8=Math[_0x26c442(0xfc)](_0x1f7bd3),_0x521518=Math[_0x26c442(0x139)](_0x1f7bd3),_0x10ab57=width/0x2,_0xdaa01f=height/0x2,_0xb5b163=_0x3bf018-_0x10ab57,_0xec9f90=_0x5ad37d-_0xdaa01f;_0x3bf018=_0x10ab57+_0xb5b163*_0x641cc8-_0xec9f90*_0x521518,_0x5ad37d=_0xdaa01f+_0xb5b163*_0x521518+_0xec9f90*_0x641cc8;}_0x3bf018+=left,_0x5ad37d+=top;let _0x2473b6=_0x46c3da[_0x26c442(0xbf)]/0xea60;if(flipX)_0x2473b6=0xb4-_0x2473b6;if(flipY)_0x2473b6=-_0x2473b6;_0x2473b6+=_0x18c731||0x0,_0x2473b6=(_0x2473b6%0x168+0x168)%0x168;const _0x559801=(0x0,_univerjs_pro_engine_shape[_0x26c442(0x12c)])({'left':left,'top':top,'width':width,'height':height},_0x18c731||0x0);return{'point':{'x':_0x3bf018,'y':_0x5ad37d},'angle':_0x2473b6,'bounds':_0x559801};}function calculateFreeEndpointAngle(_0x29648d,_0x543df5){const _0xcb9ee9=_0x5442c3,_0x59b6b7=_0x543df5['x']-_0x29648d['x'],_0x57f8d5=_0x543df5['y']-_0x29648d['y'];if(Math[_0xcb9ee9(0xec)](_0x59b6b7)>=Math[_0xcb9ee9(0xec)](_0x57f8d5))return _0x59b6b7>=0x0?0xb4:0x0;return _0x57f8d5>=0x0?0x10e:0x5a;}function _0x1248(_0x11ea8b,_0x4e7ba0){_0x11ea8b=_0x11ea8b-0xa5;const _0x241b51=_0x241b();let _0x124804=_0x241b51[_0x11ea8b];return _0x124804;}function computeFreeEndpointInfo(_0x314cb1,_0x33f93f,_0xbb9d4e,_0x40c9ec,_0x1499f3,_0x3ba23b,_0x15dbd0){const _0x1d078d=_0x5442c3,_0x4a7f55=_0x3ba23b['getShapeModel'](_0x314cb1,_0x33f93f,_0xbb9d4e);if(!_0x4a7f55)return null;const _0x32bbaa=_0x15dbd0[_0x1d078d(0x13a)]({'unitId':_0x314cb1,'subUnitId':_0x33f93f,'drawingId':_0xbb9d4e});if(!(_0x32bbaa===null||_0x32bbaa===void 0x0?void 0x0:_0x32bbaa[_0x1d078d(0x11e)]))return null;const {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![]}=_0x32bbaa[_0x1d078d(0x11e)];_0x4a7f55[_0x1d078d(0xae)]({'width':width,'height':height});const _0x5a02dc=_0x4a7f55[_0x1d078d(0xfb)]();if(_0x5a02dc[_0x1d078d(0xac)]<0x2)return null;const _0x50ee95=_0x40c9ec?_0x5a02dc[0x0]:_0x5a02dc[_0x5a02dc[_0x1d078d(0xac)]-0x1],_0x3eba1e=new _univerjs_pro_engine_shape[(_0x1d078d(0x133))]({'left':left,'top':top,'width':width,'height':height,'flipX':flipX,'flipY':flipY})[_0x1d078d(0x104)](_0x50ee95);return{'point':_0x3eba1e,'angle':calculateFreeEndpointAngle(_0x1499f3[_0x1d078d(0xc6)],_0x3eba1e),'bounds':{'left':_0x3eba1e['x'],'top':_0x3eba1e['y'],'width':0x0,'height':0x0}};}var FWorksheetShapeMixin=class extends _univerjs_sheets_facade[_0x5442c3(0x134)]{async[_0x5442c3(0xa9)](_0x1b3ba1){const _0x28efb8=_0x5442c3,{unitId:_0x59e587,subUnitId:_0x3d2410,shapeId:_0x4e41ab,shapeType:_0x2b6980,shapeData:_0xbd1b35,x:_0x4e896d,y:_0x399f47,width:_0x1dd19e,height:_0x492657}=_0x1b3ba1;return this[_0x28efb8(0xfe)][_0x28efb8(0xbd)](_univerjs_pro_sheets_shape['InsertShapeCommand']['id'],{'unitId':_0x59e587,'subUnitId':_0x3d2410,'shapeId':_0x4e41ab,'shapeType':_0x2b6980,'shapeData':_0xbd1b35,'position':{'x':_0x4e896d,'y':_0x399f47},'width':_0x1dd19e,'height':_0x492657});}async['updateShape'](_0x220534){const _0x2b3c5d=_0x5442c3,{unitId:_0x5df1d3,subUnitId:_0x2dbb2c,shapeId:_0x3d9bae,shapeType:_0x15eb6e,shapeData:_0x11f358,x:_0x31f62a,y:_0x37f7db,width:_0x3f960c,height:_0x22b3cd}=_0x220534;return this[_0x2b3c5d(0xfe)]['executeCommand'](_univerjs_pro_sheets_shape[_0x2b3c5d(0x101)]['id'],{'unitId':_0x5df1d3,'subUnitId':_0x2dbb2c,'shapeId':_0x3d9bae,'shapeType':_0x15eb6e,'shapeData':_0x11f358,'position':{'x':_0x31f62a,'y':_0x37f7db},'width':_0x3f960c,'height':_0x22b3cd});}[_0x5442c3(0x126)](_0x125650){const _0x1ba368=_0x5442c3,_0x589ed6=this['getWorkbook']()[_0x1ba368(0xaa)](),_0x3328ba=this[_0x1ba368(0xd3)]();if(_0x125650){const _0x4c97ec=new FShape(_0x589ed6,_0x3328ba,_0x125650[_0x1ba368(0x11b)],this[_0x1ba368(0xd4)]);return this['_preloadShapeProperties'](_0x4c97ec,_0x589ed6,_0x3328ba,_0x125650[_0x1ba368(0x11b)]),_0x4c97ec;}return new FShape(_0x589ed6,_0x3328ba,(0x0,_univerjs_core[_0x1ba368(0xbb)])(),this[_0x1ba368(0xd4)]);}[_0x5442c3(0x127)](_0x280a91){const _0x14b906=_0x5442c3,_0x15babb=this[_0x14b906(0x10c)]()[_0x14b906(0xaa)](),_0x5bcce9=this['getSheetId']();if(_0x280a91){const _0x4f3363=new FConnectorShape(_0x15babb,_0x5bcce9,_0x280a91[_0x14b906(0x11b)],this[_0x14b906(0xd4)]);return this[_0x14b906(0xe3)](_0x4f3363,_0x15babb,_0x5bcce9,_0x280a91[_0x14b906(0x11b)]),_0x4f3363;}return new FConnectorShape(_0x15babb,_0x5bcce9,(0x0,_univerjs_core[_0x14b906(0xbb)])(),this[_0x14b906(0xd4)]);}['getShapes'](){const _0x1aa2cf=_0x5442c3,_0x428dc9=this[_0x1aa2cf(0xd4)][_0x1aa2cf(0xf8)](_univerjs_sheets_drawing[_0x1aa2cf(0xd5)]),_0x247e4a=this[_0x1aa2cf(0x10c)]()[_0x1aa2cf(0xaa)](),_0x1d760c=this[_0x1aa2cf(0xd3)](),_0xc60a2b=_0x428dc9['getDrawingData'](_0x247e4a,_0x1d760c);if(!_0xc60a2b)return[];const _0x498a91=[];for(const [_0x5cdbdc,_0x539c2c]of Object['entries'](_0xc60a2b))if(_0x539c2c&&_0x539c2c[_0x1aa2cf(0x111)]===_univerjs_core[_0x1aa2cf(0xfa)][_0x1aa2cf(0xfd)]){const _0x3a9607=new FShape(_0x247e4a,_0x1d760c,_0x5cdbdc,this[_0x1aa2cf(0xd4)]);this[_0x1aa2cf(0xe3)](_0x3a9607,_0x247e4a,_0x1d760c,_0x5cdbdc),_0x498a91[_0x1aa2cf(0x13d)](_0x3a9607);}return _0x498a91;}[_0x5442c3(0x10d)](_0x4245e7){const _0x267aa9=_0x5442c3,{unitId:_0x256d26,subUnitId:_0x4e5937,drawId:_0x4aff82}=_0x4245e7;return this[_0x267aa9(0xfe)][_0x267aa9(0xbd)](_univerjs_sheets_drawing[_0x267aa9(0xb4)]['id'],{'unitId':_0x256d26,'drawings':[{'unitId':_0x256d26,'subUnitId':_0x4e5937,'drawingId':_0x4aff82,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x267aa9(0xfd)]}]});}async[_0x5442c3(0xa6)](_0x274dea){const _0x2cbdca=_0x5442c3,{connector:_0x1aabcd,startTarget:_0x51fd0d,endTarget:_0x4c6a55}=_0x274dea;if(!_0x51fd0d&&!_0x4c6a55)return![];const _0x35a219=this[_0x2cbdca(0x10c)]()[_0x2cbdca(0xaa)](),_0x325724=this[_0x2cbdca(0xd3)](),_0x5d7836=this[_0x2cbdca(0xd4)][_0x2cbdca(0xf8)](_univerjs_pro_sheets_shape[_0x2cbdca(0xcc)]),_0x563bba=this['_injector'][_0x2cbdca(0xf8)](_univerjs_drawing[_0x2cbdca(0xcb)]),_0x1f42a6=_0x5d7836[_0x2cbdca(0xcd)](_0x35a219,_0x325724,_0x1aabcd[_0x2cbdca(0x11b)]);if(!_0x1f42a6)return![];const _0x6dd330=_0x1f42a6['getShapeType'](),_0xd374d5=_0x1f42a6[_0x2cbdca(0x10e)](),_0x4c23a2={};for(const _0x4038ab of _0x1f42a6[_0x2cbdca(0x135)]()){const _0x20220a=_0x1f42a6[_0x2cbdca(0xbc)](_0x4038ab);if(_0x20220a!==void 0x0)_0x4c23a2[_0x4038ab]=_0x20220a;}const {startInfo:_0x271fd0,endInfo:_0x2df382}=this[_0x2cbdca(0x142)](_0x35a219,_0x325724,_0x1aabcd,_0x1f42a6,_0x51fd0d,_0x4c6a55,_0x5d7836,_0x563bba,_0xd374d5);if(!_0x271fd0||!_0x2df382)return![];const _0x528d32=(0x0,_univerjs_pro_engine_shape[_0x2cbdca(0xc7)])((0x0,_univerjs_pro_engine_shape[_0x2cbdca(0xc9)])(_0x271fd0,_0x2df382,_0x6dd330),_0x6dd330),_0xd329d0={};if(_0x51fd0d)_0xd329d0[_0x2cbdca(0xb1)]={'shapeId':_0x51fd0d[_0x2cbdca(0x10b)]['drawId'],'cxnIndex':_0x51fd0d[_0x2cbdca(0x13c)]};else{if(_0xd374d5===null||_0xd374d5===void 0x0?void 0x0:_0xd374d5[_0x2cbdca(0xb1)])_0xd329d0[_0x2cbdca(0xb1)]=_0xd374d5[_0x2cbdca(0xb1)];}if(_0x4c6a55)_0xd329d0['to']={'shapeId':_0x4c6a55[_0x2cbdca(0x10b)]['drawId'],'cxnIndex':_0x4c6a55[_0x2cbdca(0x13c)]};else{if(_0xd374d5===null||_0xd374d5===void 0x0?void 0x0:_0xd374d5['to'])_0xd329d0['to']=_0xd374d5['to'];}return this['_commandService'][_0x2cbdca(0xbd)](_univerjs_pro_sheets_shape[_0x2cbdca(0xf9)]['id'],{'unitId':_0x35a219,'subUnitId':_0x325724,'connectorShapeId':_0x1aabcd[_0x2cbdca(0x11b)],'width':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x117)],'height':_0x528d32['worldRect'][_0x2cbdca(0x11d)],'left':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x123)],'top':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0xeb)],'flipX':_0x528d32[_0x2cbdca(0x115)][_0x2cbdca(0x10f)]||![],'flipY':_0x528d32[_0x2cbdca(0x115)]['flipY']||![],'oldAdjustValues':_0x4c23a2,'newAdjustValues':_0x528d32[_0x2cbdca(0x12b)],'newLineType':_0x528d32[_0x2cbdca(0x110)],'oldLineType':_0x6dd330,'rotation':_0x528d32[_0x2cbdca(0x11f)],'oldRelation':_0xd374d5,'newRelation':_0xd329d0});}[_0x5442c3(0xe3)](_0x242ea8,_0x123d02,_0x33cbc7,_0x5be4d5){const _0x122a68=_0x5442c3,_0x1a75db=this[_0x122a68(0xd4)][_0x122a68(0xf8)](_univerjs_drawing[_0x122a68(0xcb)])[_0x122a68(0x13a)]({'unitId':_0x123d02,'subUnitId':_0x33cbc7,'drawingId':_0x5be4d5});if(_0x1a75db===null||_0x1a75db===void 0x0?void 0x0:_0x1a75db[_0x122a68(0x11e)]){var _0x586bc9,_0x4d4bd5,_0x470fcb,_0x317cdd;_0x242ea8['x']=(_0x586bc9=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0x123)])!==null&&_0x586bc9!==void 0x0?_0x586bc9:0x0,_0x242ea8['y']=(_0x4d4bd5=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0xeb)])!==null&&_0x4d4bd5!==void 0x0?_0x4d4bd5:0x0,_0x242ea8[_0x122a68(0x117)]=(_0x470fcb=_0x1a75db[_0x122a68(0x11e)][_0x122a68(0x117)])!==null&&_0x470fcb!==void 0x0?_0x470fcb:_0x242ea8[_0x122a68(0x117)],_0x242ea8[_0x122a68(0x11d)]=(_0x317cdd=_0x1a75db['transform'][_0x122a68(0x11d)])!==null&&_0x317cdd!==void 0x0?_0x317cdd:_0x242ea8['height'];}const _0x561c89=this['_injector']['get'](_univerjs_pro_sheets_shape[_0x122a68(0xcc)])['getShapeModel'](_0x123d02,_0x33cbc7,_0x5be4d5);if(_0x561c89){_0x242ea8['shapeType']=_0x561c89['getShapeType']();const _0x4f46b5=_0x561c89[_0x122a68(0x124)]();if(_0x4f46b5)_0x242ea8[_0x122a68(0x13f)]=JSON[_0x122a68(0x112)](JSON['stringify'](_0x4f46b5));}}[_0x5442c3(0x142)](_0x291050,_0x5dcb77,_0x2b4dc0,_0x8aafb2,_0x867326,_0x11b0f0,_0x326d06,_0x2008ca,_0x37b4ea){const _0x537f64=_0x5442c3;let _0xe514b8=null,_0x5c6303=null;if(_0x867326)_0xe514b8=computeConnectionPointInfo(_0x291050,_0x5dcb77,_0x867326['shape'][_0x537f64(0x11b)],_0x867326['connectionSiteIndex'],_0x326d06,_0x2008ca);if(_0x11b0f0)_0x5c6303=computeConnectionPointInfo(_0x291050,_0x5dcb77,_0x11b0f0[_0x537f64(0x10b)][_0x537f64(0x11b)],_0x11b0f0[_0x537f64(0x13c)],_0x326d06,_0x2008ca);if(!_0xe514b8)_0xe514b8=this[_0x537f64(0xb5)](_0x291050,_0x5dcb77,_0x2b4dc0[_0x537f64(0x11b)],!![],_0x5c6303,_0x37b4ea===null||_0x37b4ea===void 0x0?void 0x0:_0x37b4ea[_0x537f64(0xb1)],_0x326d06,_0x2008ca);if(!_0x5c6303)_0x5c6303=this['_resolveExistingOrFreeEndpoint'](_0x291050,_0x5dcb77,_0x2b4dc0[_0x537f64(0x11b)],![],_0xe514b8,_0x37b4ea===null||_0x37b4ea===void 0x0?void 0x0:_0x37b4ea['to'],_0x326d06,_0x2008ca);return{'startInfo':_0xe514b8,'endInfo':_0x5c6303};}['_resolveExistingOrFreeEndpoint'](_0x2a896f,_0x38e0f9,_0x4186ed,_0x1435de,_0x38626c,_0x4d7835,_0x5b4a78,_0x3aea29){const _0x443fd6=_0x5442c3;if(_0x4d7835){const _0x3ec722=computeConnectionPointInfo(_0x2a896f,_0x38e0f9,_0x4d7835[_0x443fd6(0xbe)],_0x4d7835[_0x443fd6(0xea)],_0x5b4a78,_0x3aea29);if(_0x3ec722)return _0x3ec722;}if(!_0x38626c)return null;return computeFreeEndpointInfo(_0x2a896f,_0x38e0f9,_0x4186ed,_0x1435de,_0x38626c,_0x5b4a78,_0x3aea29);}};_univerjs_sheets_facade[_0x5442c3(0x134)][_0x5442c3(0xd1)](FWorksheetShapeMixin),exports[_0x5442c3(0xb3)]=FConnectorShape,exports['FShape']=FShape;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x22bf2f=_0x851f;(function(_0x3f57dc,_0xb0b7b6){const _0x32389d=_0x851f,_0x5b8197=_0x3f57dc();while(!![]){try{const _0x10004f=parseInt(_0x32389d(0x1d7))/0x1*(parseInt(_0x32389d(0x148))/0x2)+-parseInt(_0x32389d(0x14b))/0x3+-parseInt(_0x32389d(0x14d))/0x4+-parseInt(_0x32389d(0x1b1))/0x5+parseInt(_0x32389d(0x1d9))/0x6+parseInt(_0x32389d(0x1a6))/0x7+-parseInt(_0x32389d(0x1b9))/0x8*(-parseInt(_0x32389d(0x200))/0x9);if(_0x10004f===_0xb0b7b6)break;else _0x5b8197['push'](_0x5b8197['shift']());}catch(_0x14dc4a){_0x5b8197['push'](_0x5b8197['shift']());}}}(_0xc5db,0x58b47),Object[_0x22bf2f(0x1d1)](exports,Symbol[_0x22bf2f(0x1bc)],{'value':_0x22bf2f(0x1f7)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_drawing=require('@univerjs/drawing');const DEFAULT_SHAPE_WIDTH=0xc8,DEFAULT_SHAPE_HEIGHT=0xc8;function _typeof(_0x32dfab){'@babel/helpers - typeof';const _0x52df9a=_0x22bf2f;return _typeof=_0x52df9a(0x186)==typeof Symbol&&_0x52df9a(0x16a)==typeof Symbol[_0x52df9a(0x19c)]?function(_0x2fa6e5){return typeof _0x2fa6e5;}:function(_0xba75f1){const _0x447950=_0x52df9a;return _0xba75f1&&_0x447950(0x186)==typeof Symbol&&_0xba75f1[_0x447950(0x145)]===Symbol&&_0xba75f1!==Symbol['prototype']?_0x447950(0x16a):typeof _0xba75f1;},_typeof(_0x32dfab);}function toPrimitive(_0x1d792c,_0x38d979){const _0x517be1=_0x22bf2f;if('object'!=_typeof(_0x1d792c)||!_0x1d792c)return _0x1d792c;var _0x4a4c2f=_0x1d792c[Symbol[_0x517be1(0x1d3)]];if(void 0x0!==_0x4a4c2f){var _0x1ff77d=_0x4a4c2f[_0x517be1(0x1df)](_0x1d792c,_0x38d979||_0x517be1(0x17b));if(_0x517be1(0x1fa)!=_typeof(_0x1ff77d))return _0x1ff77d;throw new TypeError(_0x517be1(0x1aa));}return(_0x517be1(0x1d8)===_0x38d979?String:Number)(_0x1d792c);}function toPropertyKey(_0x4e5462){const _0x8d9bb1=_0x22bf2f;var _0x59e804=toPrimitive(_0x4e5462,_0x8d9bb1(0x1d8));return'symbol'==_typeof(_0x59e804)?_0x59e804:_0x59e804+'';}function _defineProperty(_0x10cf06,_0x4b713b,_0x5dafe7){const _0x19058e=_0x22bf2f;return(_0x4b713b=toPropertyKey(_0x4b713b))in _0x10cf06?Object[_0x19058e(0x1d1)](_0x10cf06,_0x4b713b,{'value':_0x5dafe7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10cf06[_0x4b713b]=_0x5dafe7,_0x10cf06;}var SheetShapeModelManager=class extends _univerjs_core[_0x22bf2f(0x167)]{constructor(){const _0x220aaa=_0x22bf2f;super(),_defineProperty(this,_0x220aaa(0x1a1),new Map()),_defineProperty(this,'_linesIds',new Set()),_defineProperty(this,_0x220aaa(0x1e8),new Set());}[_0x22bf2f(0x1d0)](_0x236fa8,_0x7544c0,_0x4fa641){const _0x15378b=_0x22bf2f,_0x254e51=new _univerjs_pro_engine_shape[(_0x15378b(0x198))](_0x236fa8,_0x7544c0,_0x4fa641);this['_shapes']['set'](_0x7544c0,_0x254e51);if((0x0,_univerjs_pro_engine_shape[_0x15378b(0x152)])(_0x236fa8))this[_0x15378b(0x1f4)]['add'](_0x7544c0);return _0x254e51;}[_0x22bf2f(0x162)](_0x5447e7){const _0x14842d=_0x22bf2f,_0x3cf95f=[];for(const _0x1cf103 of this[_0x14842d(0x1f4)]){const _0x3dd6fd=this['_shapes'][_0x14842d(0x17f)](_0x1cf103);if(_0x3dd6fd){const _0x4f8b7f=_0x3dd6fd[_0x14842d(0x201)]();if(_0x4f8b7f){var _0x19e22a,_0x523a13;if(((_0x19e22a=_0x4f8b7f[_0x14842d(0x15c)])===null||_0x19e22a===void 0x0?void 0x0:_0x19e22a[_0x14842d(0x150)])===_0x5447e7)_0x3cf95f[_0x14842d(0x17d)]({..._0x4f8b7f[_0x14842d(0x15c)],'lineShapeId':_0x1cf103,'isFrom':!![]});if(((_0x523a13=_0x4f8b7f['to'])===null||_0x523a13===void 0x0?void 0x0:_0x523a13[_0x14842d(0x150)])===_0x5447e7)_0x3cf95f[_0x14842d(0x17d)]({..._0x4f8b7f['to'],'lineShapeId':_0x1cf103,'isFrom':![]});}}}return _0x3cf95f;}[_0x22bf2f(0x15a)](_0x48fc76){const _0x4df6a7=_0x22bf2f,_0x3eeaaf=this[_0x4df6a7(0x1a1)][_0x4df6a7(0x17f)](_0x48fc76);if(_0x3eeaaf)return _0x3eeaaf['getShapeRelation']();}[_0x22bf2f(0x165)](_0x47e115){const _0x23d90a=_0x22bf2f,_0x1a849d=this[_0x23d90a(0x1a1)][_0x23d90a(0x17f)](_0x47e115);if(_0x1a849d)return _0x1a849d['getShapeType']();}[_0x22bf2f(0x14c)](_0x59d249){const _0x4e1f4f=_0x22bf2f;return this[_0x4e1f4f(0x1a1)]['has'](_0x59d249);}[_0x22bf2f(0x1d5)](_0x33e5fe){const _0x4f0c1d=_0x22bf2f,_0x1ad427=this['_shapes'][_0x4f0c1d(0x17f)](_0x33e5fe);if(!_0x1ad427)return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1ad427[_0x4f0c1d(0x165)]()))this[_0x4f0c1d(0x1f4)]['delete'](_0x33e5fe);this[_0x4f0c1d(0x1a1)][_0x4f0c1d(0x20a)](_0x33e5fe);}[_0x22bf2f(0x161)](){const _0x1279cb=[];return this['_shapes']['forEach'](_0x574c9b=>{const _0x38a488=_0x851f;_0x1279cb[_0x38a488(0x17d)](_0x574c9b['toJSON']());}),_0x1279cb;}[_0x22bf2f(0x1b4)](_0x11bdbc){const _0x40ebc5=_0x22bf2f;for(const _0x26f33b of _0x11bdbc){const {id:_0x58ba92,shapeType:_0x399073}=_0x26f33b,_0x11bc34=this[_0x40ebc5(0x1d0)](_0x399073,_0x58ba92,_0x26f33b['shapeData']);if(_0x11bc34&&_0x11bc34[_0x40ebc5(0x16f)]())this[_0x40ebc5(0x1f4)][_0x40ebc5(0x1a4)](_0x58ba92);}}['dispose'](){const _0x5caead=_0x22bf2f;if(this[_0x5caead(0x143)])return;this[_0x5caead(0x1a1)][_0x5caead(0x156)](_0x50e626=>{_0x50e626['dispose']();}),this['_shapes'][_0x5caead(0x1dd)](),this[_0x5caead(0x1f4)]['clear'](),this[_0x5caead(0x1e8)][_0x5caead(0x1dd)](),super[_0x5caead(0x1b2)]();}};function __decorateParam(_0x58f836,_0x5a9a6e){return function(_0x316f6f,_0x18569c){_0x5a9a6e(_0x316f6f,_0x18569c,_0x58f836);};}function _0x851f(_0x546120,_0x36adc1){_0x546120=_0x546120-0x140;const _0xc5db13=_0xc5db();let _0x851f92=_0xc5db13[_0x546120];return _0x851f92;}function __decorate(_0x501f8d,_0x5883e4,_0x5e22a6,_0x176db1){const _0x20fc30=_0x22bf2f;var _0x33f0ad=arguments['length'],_0x12205b=_0x33f0ad<0x3?_0x5883e4:_0x176db1===null?_0x176db1=Object[_0x20fc30(0x1ec)](_0x5883e4,_0x5e22a6):_0x176db1,_0x2d0c42;if(typeof Reflect===_0x20fc30(0x1fa)&&typeof Reflect[_0x20fc30(0x18f)]==='function')_0x12205b=Reflect[_0x20fc30(0x18f)](_0x501f8d,_0x5883e4,_0x5e22a6,_0x176db1);else{for(var _0x2e288f=_0x501f8d[_0x20fc30(0x15f)]-0x1;_0x2e288f>=0x0;_0x2e288f--)if(_0x2d0c42=_0x501f8d[_0x2e288f])_0x12205b=(_0x33f0ad<0x3?_0x2d0c42(_0x12205b):_0x33f0ad>0x3?_0x2d0c42(_0x5883e4,_0x5e22a6,_0x12205b):_0x2d0c42(_0x5883e4,_0x5e22a6))||_0x12205b;}return _0x33f0ad>0x3&&_0x12205b&&Object[_0x20fc30(0x1d1)](_0x5883e4,_0x5e22a6,_0x12205b),_0x12205b;}const SHEET_SHAPE_PLUGIN=_0x22bf2f(0x179);let SheetsShapeService=class SheetsShapeService extends _univerjs_core[_0x22bf2f(0x167)]{constructor(_0x4d4437){const _0x17bf35=_0x22bf2f;super(),this[_0x17bf35(0x206)]=_0x4d4437,_defineProperty(this,_0x17bf35(0x14a),new Map()),this[_0x17bf35(0x204)]();}[_0x22bf2f(0x1f8)](_0x366c74,_0x3968bd){const _0x49388b=_0x22bf2f;let _0xb21893=this['_shapeModelManagerMap'][_0x49388b(0x17f)](_0x366c74);!_0xb21893&&(_0xb21893=new Map(),this[_0x49388b(0x14a)]['set'](_0x366c74,_0xb21893));let _0x3ebf5c=_0xb21893[_0x49388b(0x17f)](_0x3968bd);return!_0x3ebf5c&&(_0x3ebf5c=new SheetShapeModelManager(),_0xb21893['set'](_0x3968bd,_0x3ebf5c)),_0x3ebf5c;}[_0x22bf2f(0x193)](_0x345b32,_0x1f840f,_0x73d821,_0x321b73,_0x3bfab7){const _0x2fc005=_0x22bf2f;this[_0x2fc005(0x1f8)](_0x345b32,_0x1f840f)[_0x2fc005(0x1d0)](_0x73d821,_0x321b73,_0x3bfab7);}['removeShape'](_0x48e925,_0x36fe4b,_0x3a6713){const _0x59a91c=_0x22bf2f;this['_ensureShapeModelManager'](_0x48e925,_0x36fe4b)[_0x59a91c(0x1d5)](_0x3a6713);}[_0x22bf2f(0x1c5)](_0x28b596,_0x4bfa39,_0x15e54b){const _0x315eb0=_0x22bf2f;return this[_0x315eb0(0x1f8)](_0x28b596,_0x4bfa39)[_0x315eb0(0x165)](_0x15e54b);}[_0x22bf2f(0x165)](_0xb20ac1,_0x49dc7a,_0x5097ca){const _0x4d1f94=_0x22bf2f;return this[_0x4d1f94(0x1f8)](_0xb20ac1,_0x49dc7a)['getShapeType'](_0x5097ca);}['hasShape'](_0xea015c,_0x2ae217,_0x5073a9){const _0x4c5e81=_0x22bf2f;return this[_0x4c5e81(0x1f8)](_0xea015c,_0x2ae217)[_0x4c5e81(0x14c)](_0x5073a9);}[_0x22bf2f(0x1ca)](_0x25cef7,_0x560311,_0x5ba124){return this['_ensureShapeModelManager'](_0x25cef7,_0x560311)['getShapeType'](_0x5ba124);}['getShapeDataById'](_0x5b8cf4,_0x5b8f8f,_0x59a379){const _0x26181f=_0x22bf2f,_0x2d3202=this['_ensureShapeModelManager'](_0x5b8cf4,_0x5b8f8f);if(!_0x2d3202[_0x26181f(0x165)](_0x59a379))return;const _0x4a49bc=_0x2d3202['_shapes'][_0x26181f(0x17f)](_0x59a379);if(!_0x4a49bc)return;return _0x4a49bc[_0x26181f(0x1c0)]();}[_0x22bf2f(0x1ed)](_0x52e440,_0x53a94a,_0x4ebc4e){const _0x3293fd=_0x22bf2f;return this[_0x3293fd(0x1f8)](_0x52e440,_0x53a94a)[_0x3293fd(0x1a1)]['get'](_0x4ebc4e);}['getBasicShapeRelation'](_0x19d75b,_0x169c18,_0x16933f){const _0x20b29f=_0x22bf2f;return this[_0x20b29f(0x1f8)](_0x19d75b,_0x169c18)[_0x20b29f(0x162)](_0x16933f);}[_0x22bf2f(0x15a)](_0x32d436,_0x272693,_0x5183e3){const _0x2a2b09=_0x22bf2f,_0xff2f43=this[_0x2a2b09(0x1f8)](_0x32d436,_0x272693)['_shapes']['get'](_0x5183e3);if(!_0xff2f43)return;return _0xff2f43[_0x2a2b09(0x201)]();}[_0x22bf2f(0x1fc)](){}[_0x22bf2f(0x20c)](_0x3d0d65){const _0x176bf3=_0x22bf2f,_0x1ce64c={},_0x2a42f5=this[_0x176bf3(0x14a)][_0x176bf3(0x17f)](_0x3d0d65);if(_0x2a42f5)_0x2a42f5[_0x176bf3(0x156)]((_0x4920c,_0x4f1a0e)=>{const _0x2b0a3b=_0x176bf3,_0x1921e6=_0x4920c['toJSON']();if(_0x1921e6[_0x2b0a3b(0x15f)]>0x0)_0x1ce64c[_0x4f1a0e]=_0x1921e6;});return JSON['stringify'](_0x1ce64c);}[_0x22bf2f(0x1dc)](_0x3c6317,_0x512abc){const _0x2b9ffb=_0x22bf2f;Object[_0x2b9ffb(0x1d2)](_0x512abc)[_0x2b9ffb(0x156)](_0xc8b8a6=>{const _0x141dd2=_0x2b9ffb;this[_0x141dd2(0x1f8)](_0x3c6317,_0xc8b8a6)['fromJSON'](_0x512abc[_0xc8b8a6]);});}['toJSON'](){const _0x230337=_0x22bf2f,_0xfc5298={};return this[_0x230337(0x14a)][_0x230337(0x156)]((_0x366707,_0x71e1f0)=>{_0xfc5298[_0x71e1f0]={},_0x366707['forEach']((_0x4d9271,_0x412844)=>{const _0x54879e=_0x851f;_0xfc5298[_0x71e1f0][_0x412844]=_0x4d9271[_0x54879e(0x161)]();});}),_0xfc5298;}[_0x22bf2f(0x1b4)](_0x429b30){const _0x3c5f87=_0x22bf2f;Object[_0x3c5f87(0x1d2)](_0x429b30)[_0x3c5f87(0x156)](_0x572cad=>{const _0xb0144f=_0x3c5f87,_0x2e1bda=_0x429b30[_0x572cad];Object['keys'](_0x2e1bda)[_0xb0144f(0x156)](_0x56a723=>{const _0x9a290a=_0xb0144f;this[_0x9a290a(0x1f8)](_0x572cad,_0x56a723)[_0x9a290a(0x1b4)](_0x2e1bda[_0x56a723]);});});}[_0x22bf2f(0x204)](){const _0x1c041d=_0x22bf2f;this['_resourcesManagerService']['registerPluginResource']({'pluginName':SHEET_SHAPE_PLUGIN,'businesses':[_univerjs_core[_0x1c041d(0x1e2)][_0x1c041d(0x1ef)]],'toJson':_0xebbea6=>this['_serializeShapeForUnit'](_0xebbea6),'parseJson':_0x4027c3=>JSON[_0x1c041d(0x1ae)](_0x4027c3),'onLoad':(_0x11b2ba,_0x21e0c0)=>{this['_deserializeShapeForUnit'](_0x11b2ba,_0x21e0c0);},'onUnLoad':_0x66b089=>{const _0x4fe06d=_0x1c041d,_0x40c776=this[_0x4fe06d(0x14a)][_0x4fe06d(0x17f)](_0x66b089);_0x40c776&&(_0x40c776[_0x4fe06d(0x156)](_0x2ae5f6=>{const _0x35c964=_0x4fe06d;_0x2ae5f6[_0x35c964(0x1b2)]();}),this[_0x4fe06d(0x14a)][_0x4fe06d(0x20a)](_0x66b089));}});}[_0x22bf2f(0x1b2)](){const _0x39fa0c=_0x22bf2f;this[_0x39fa0c(0x14a)][_0x39fa0c(0x156)](_0x5ad611=>{const _0x55cc72=_0x39fa0c;_0x5ad611[_0x55cc72(0x156)](_0x48cd32=>{const _0x180494=_0x55cc72;_0x48cd32[_0x180494(0x1b2)]();});});}};function _0xc5db(){const _0x35d051=['toPrimitive','sheet.mutation.remove-shape','removeShape','_addLineRerouteUpdates','1vKKQob','string','1112910shGmMS','fill','_initCommandInterceptor','_deserializeShapeForUnit','clear','cos','call','every','find','UniverInstanceType','range','sequenceExecute','ToggleSheetsShapeFlipCommand','setConfig','isFrom','_groupIds','SheetSkeletonService','rotation','sheet.command.set-shape-text-vertical-toggle','getOwnPropertyDescriptor','getShapeModel','onStarting','UNIVER_SHEET','DRAWING_SHAPE','getAdjustNames','_getConnectPointInfo','getDrawingData','_linesIds','_initCommands','_injector','Module','_ensureShapeModelManager','sheet.command.update-connector-relation','object','getAdjustValueByName','setShapeType','DependentOn','DEFAULT_SHAPE_HEIGHT','removeLinePoints','2013885ZbWCXb','getShapeRelation','UpdateSheetsShapeTypeMutation','merge','_initSnapshot','SetShapeDrawingDataCommand','_resourcesManagerService','IUndoRedoService','_configService','getSkeleton','delete','worldRect','_serializeShapeForUnit','_sheetInterceptorService','getSheetCommandTarget','startY','_disposed','Injector','constructor','cxnIndex','setShapeData','1076450rMLBMr','COMMAND','_shapeModelManagerMap','978624qyXHSa','hasShape','2408364EWGPum','startX','sheets-shape.config','shapeId','result','isConnectorShape','_sheetSkeletonService','SheetInterceptorService','redos','forEach','undos','transform','width','getLineShapeRelation','0.22.0-insiders.20260513-09bbeca','from','params','SetSheetDrawingCommand','length','onCommandExecute','toJSON','getBasicShapeRelation','_commandService','transformToDrawingPosition','getShapeType','RemoveSheetDrawingCommand','Disposable','INSERT','registerCommand','symbol','sheet.command.toggle-shape-flip','adjustValues','drawingType','height','isLineShape','Inject','sheet.mutation.insert-shape','RemoveSheetsShapeMutation','ClearSheetDrawingTransformerOperation','ICommandService','DrawingTypeEnum','flipX','top','preUndos','SHEET_SHAPE_PLUGIN','_sheetsShapeService','default','index','push','sheet.command.set-shape-drawing-data','get','@univerjs-pro/sheets-shape','generateRandomId','_config','getStartConnectInfo','data','angle','function','IUniverInstanceService','getCellIndexAndOffsetByPosition','position','resizeEnabled','touchDependencies','_addLineFollowShapeUpdates','rotateEnabled','SetDrawingApplyMutation','decorate','borderEnabled','UniverLicensePlugin','UpdateLineShapeResizeCommand','insertShape','transformToAxisAlignPosition','SheetsShapeService','DrawingApplyType','pluginName','ShapeModel','relation','updateContext','routeConnectorLineShape','iterator','interceptCommand','InsertSheetsShapeMutation','getShapeTextData','IConfigService','_shapes','syncExecuteCommand','IDrawingManagerService','add','getBatchAddOp','91938hKuzLF','ensureSkeleton','Plugin','entries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','flipY','IResourceManagerService','sheet.mutation.update-shape-type','parse','pushUndoRedo','UPDATE','1701350tBrsUA','dispose','SetSheetsShapeTextVerticalToggleCommand','fromJSON','getEndConnectInfo','getBatchUpdateOp','left','type','32SfKIpr','disposeWithMe','REMOVE','toStringTag','preRedos','version','sheet.command.set-shape-rotate','getShapeData','ISheetDrawingService','ang','isHorizontal','lineType','getBasicShapeType','sheet.mutation.update-shape-data','_drawingManagerService','MUTATION','filter','getShapeTypeById','InsertSheetDrawingCommand','sheet.command.insert-shape','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','CommandType','getDrawingByParam','addShape','defineProperty','keys'];_0xc5db=function(){return _0x35d051;};return _0xc5db();}SheetsShapeService=__decorate([__decorateParam(0x0,_univerjs_core[_0x22bf2f(0x1ac)])],SheetsShapeService);const InsertSheetsShapeMutation={'id':_0x22bf2f(0x171),'type':_univerjs_core['CommandType'][_0x22bf2f(0x1c8)],'handler':(_0x1fbc7b,_0x26ccca)=>{const _0x5701f4=_0x22bf2f,{unitId:_0x5c8732,subUnitId:_0x131450,shapeType:_0x1c23ee,shapeId:_0x20a6cf,shapeData:_0x39e58b}=_0x26ccca;return _0x1fbc7b['get'](SheetsShapeService)[_0x5701f4(0x193)](_0x5c8732,_0x131450,_0x1c23ee,_0x20a6cf,_0x39e58b),!![];}},RemoveSheetsShapeMutation={'id':_0x22bf2f(0x1d4),'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x1c8)],'handler':(_0x36a52d,_0x2f5121)=>{const _0x221144=_0x22bf2f,{unitId:_0x129e28,subUnitId:_0x2ff5b9,shapeId:_0x3ed153}=_0x2f5121;return _0x36a52d[_0x221144(0x17f)](SheetsShapeService)[_0x221144(0x1d5)](_0x129e28,_0x2ff5b9,_0x3ed153),!![];}},InsertShapeCommand={'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x149)],'id':_0x22bf2f(0x1cc),'handler':(_0x2d3444,_0x565978)=>{const _0xbe3e7b=_0x22bf2f;var _0x456b93,_0x432160;const _0x1373e6=(0x0,_univerjs_sheets[_0xbe3e7b(0x141)])(_0x2d3444[_0xbe3e7b(0x17f)](_univerjs_core[_0xbe3e7b(0x187)]),_0x565978);if(!_0x1373e6)return![];const _0x57e42a=_0x2d3444[_0xbe3e7b(0x17f)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x13e68c,subUnitId:_0xb3deb8}=_0x1373e6,_0x2a34f8=_0x57e42a['ensureSkeleton'](_0x13e68c,_0xb3deb8);if(!_0x2a34f8)return![];const _0x48bee0=_0x2d3444['get'](_univerjs_core[_0xbe3e7b(0x174)]),_0x1ab19b=_0x2d3444[_0xbe3e7b(0x17f)](_univerjs_core[_0xbe3e7b(0x207)]),_0x32b86b=_0x2d3444[_0xbe3e7b(0x17f)](_univerjs_sheets[_0xbe3e7b(0x154)]),_0x222d7e=_0x2d3444['get'](_univerjs_sheets_drawing[_0xbe3e7b(0x1c1)]),{shapeType:_0x2c0d08,shapeData:_0x1e741e}=_0x565978,_0x4a3d17=_0x565978[_0xbe3e7b(0x150)]||(0x0,_univerjs_core[_0xbe3e7b(0x181)])(),_0x294e40={'unitId':_0x13e68c,'subUnitId':_0xb3deb8,'shapeId':_0x4a3d17,'shapeType':_0x2c0d08,'shapeData':_0x1e741e},_0x1eec61=_0x565978[_0xbe3e7b(0x159)]||0xc8,_0x3e362d=_0x565978['height']||0xc8;let _0xc63ffe=0x0,_0x273f4c=0x0,_0x46a1e6={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x1b289e={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x565978[_0xbe3e7b(0x189)]){const {x:_0x3b446c,y:_0x2c4fa4}=_0x565978[_0xbe3e7b(0x189)];_0xc63ffe=_0x3b446c,_0x273f4c=_0x2c4fa4,_0x46a1e6=_0x2a34f8[_0xbe3e7b(0x188)](_0x3b446c,_0x2c4fa4),_0x1b289e=_0x2a34f8[_0xbe3e7b(0x188)](_0x3b446c+_0x1eec61,_0x2c4fa4+_0x3e362d);}else{if(_0x565978[_0xbe3e7b(0x1e3)]){const {startRow:_0x3134e4,startColumn:_0x47ee2f}=_0x565978['range'],_0x1f81cd=0xa,_0x4db99b=0xa;_0x46a1e6={'row':_0x3134e4,'rowOffset':_0x1f81cd,'column':_0x47ee2f,'columnOffset':_0x4db99b};const _0x3cebb4=_0x2a34f8['getCellWithCoordByIndex'](_0x3134e4,_0x47ee2f);_0xc63ffe=_0x3cebb4[_0xbe3e7b(0x14e)]+_0x4db99b,_0x273f4c=_0x3cebb4[_0xbe3e7b(0x142)]+_0x1f81cd,_0x1b289e=_0x2a34f8['getCellIndexAndOffsetByPosition'](_0xc63ffe+_0x1eec61,_0x273f4c+_0x3e362d);}}const _0xc0dac7={'from':_0x46a1e6,'to':_0x1b289e},_0x6fa861={'unitId':_0x13e68c,'subUnitId':_0xb3deb8,'drawingId':_0x4a3d17,'drawingType':_univerjs_core['DrawingTypeEnum'][_0xbe3e7b(0x1f0)],'sheetTransform':_0xc0dac7,'transform':{'left':_0xc63ffe,'top':_0x273f4c,'width':_0x1eec61,'height':_0x3e362d},'data':{'shapeType':_0x2c0d08,'shapeData':_0x1e741e},'axisAlignSheetTransform':_0xc0dac7,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0xbe3e7b(0x152)])(_0x2c0d08)&&(_0x6fa861[_0xbe3e7b(0x184)][_0xbe3e7b(0x1da)]=![],_0x6fa861[_0xbe3e7b(0x184)][_0xbe3e7b(0x18d)]=![],_0x6fa861['data'][_0xbe3e7b(0x18a)]=![],_0x6fa861[_0xbe3e7b(0x184)]['borderEnabled']=![],_0x6fa861[_0xbe3e7b(0x158)]['rotateEnabled']=![],_0x6fa861[_0xbe3e7b(0x158)][_0xbe3e7b(0x18a)]=![],_0x6fa861[_0xbe3e7b(0x158)][_0xbe3e7b(0x190)]=![]);const {undo:_0x4e0003,redo:_0x1b3f39,objects:_0x50a5ba}=_0x222d7e[_0xbe3e7b(0x1a5)]([_0x6fa861]),_0x573d6a=_0x32b86b[_0xbe3e7b(0x160)]({'id':_univerjs_sheets_drawing[_0xbe3e7b(0x1cb)]['id'],'params':{'unitId':_0x13e68c,'drawings':[_0x6fa861]}}),_0x30866b=[...(_0x456b93=_0x573d6a[_0xbe3e7b(0x1bd)])!==null&&_0x456b93!==void 0x0?_0x456b93:[],{'id':_univerjs_sheets_drawing[_0xbe3e7b(0x18e)]['id'],'params':{'unitId':_0x13e68c,'subUnitId':_0xb3deb8,'op':_0x1b3f39,'objects':_0x50a5ba,'type':_univerjs_sheets_drawing[_0xbe3e7b(0x196)][_0xbe3e7b(0x168)]}},{'id':_univerjs_sheets_drawing[_0xbe3e7b(0x173)]['id'],'params':[_0x13e68c]},..._0x573d6a['redos'],{'id':InsertSheetsShapeMutation['id'],'params':_0x294e40}],_0x2c4c6e=[{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x13e68c,'subUnitId':_0xb3deb8,'shapeId':_0x4a3d17}},...(_0x432160=_0x573d6a[_0xbe3e7b(0x178)])!==null&&_0x432160!==void 0x0?_0x432160:[],{'id':_univerjs_sheets_drawing[_0xbe3e7b(0x18e)]['id'],'params':{'unitId':_0x13e68c,'subUnitId':_0xb3deb8,'op':_0x4e0003,'objects':_0x50a5ba,'type':_univerjs_sheets_drawing[_0xbe3e7b(0x196)][_0xbe3e7b(0x1bb)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x13e68c]},..._0x573d6a['undos']];if((0x0,_univerjs_core[_0xbe3e7b(0x1e4)])(_0x30866b,_0x48bee0)[_0xbe3e7b(0x151)])return _0x1ab19b['pushUndoRedo']({'unitID':_0x13e68c,'undoMutations':_0x2c4c6e,'redoMutations':_0x30866b}),!![];return![];}},UpdateSheetsShapeDataMutation={'id':_0x22bf2f(0x1c6),'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x1c8)],'handler':(_0x7de2bf,_0x1b64b1)=>{const _0x2a82a3=_0x22bf2f,{unitId:_0x1563b3,subUnitId:_0x4d54ad,shapeType:_0x12eb4e,shapeId:_0x4b91a7,shapeData:_0x5e6aea}=_0x1b64b1,_0x3ab6c4=_0x7de2bf[_0x2a82a3(0x17f)](SheetsShapeService)['getShapeModel'](_0x1563b3,_0x4d54ad,_0x4b91a7);if(_0x3ab6c4){if(_0x12eb4e!==void 0x0)_0x3ab6c4[_0x2a82a3(0x1fc)](_0x12eb4e);if(_0x5e6aea)_0x3ab6c4===null||_0x3ab6c4===void 0x0||_0x3ab6c4['setShapeData'](_0x5e6aea,!![]);}return!![];}},SetShapeDrawingDataCommand={'type':_univerjs_core['CommandType'][_0x22bf2f(0x149)],'id':_0x22bf2f(0x17e),'handler':(_0x5b1358,_0x61d22f)=>{const _0x45ffef=_0x22bf2f;var _0x239af5,_0x376240;const _0x1af839=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x5b1358[_0x45ffef(0x17f)](_univerjs_core['IUniverInstanceService']),_0x61d22f);if(!_0x1af839)return![];const _0x19e1da=_0x5b1358[_0x45ffef(0x17f)](_univerjs_sheets[_0x45ffef(0x1e9)]),{unitId:_0x390dc1,subUnitId:_0xd424df}=_0x1af839,_0x509633=_0x19e1da[_0x45ffef(0x1a7)](_0x390dc1,_0xd424df);if(!_0x509633)return![];const _0x340b97=_0x5b1358[_0x45ffef(0x17f)](SheetsShapeService),{shapeId:_0x1f20a5,shapeType:_0x4a70b2,shapeData:_0x93d1de,position:_0xa3b07b,width:_0x1831c2,height:_0x387615}=_0x61d22f,_0x497ad2=_0x340b97[_0x45ffef(0x1ed)](_0x390dc1,_0xd424df,_0x1f20a5);if(!_0x497ad2)return![];const _0x808442=_0x5b1358[_0x45ffef(0x17f)](_univerjs_core[_0x45ffef(0x174)]),_0x5c7d79=_0x5b1358[_0x45ffef(0x17f)](_univerjs_core['IUndoRedoService']),_0x30df2f=_0x5b1358['get'](_univerjs_sheets['SheetInterceptorService']),_0x1a47bc=_0x5b1358[_0x45ffef(0x17f)](_univerjs_sheets_drawing[_0x45ffef(0x1c1)]),_0x36f66c={'unitId':_0x390dc1,'subUnitId':_0xd424df,'shapeId':_0x1f20a5,'shapeType':_0x4a70b2,'shapeData':_0x93d1de},_0x3aef4c=_0x497ad2[_0x45ffef(0x165)](),_0x17830a=_0x497ad2[_0x45ffef(0x1c0)](),{x:_0x11f9d7,y:_0xb1749}=_0xa3b07b,_0x458d0b={'from':_0x509633[_0x45ffef(0x188)](_0x11f9d7,_0xb1749),'to':_0x509633[_0x45ffef(0x188)](_0x11f9d7+_0x1831c2,_0xb1749+_0x387615)},_0x39ab38={'unitId':_0x390dc1,'subUnitId':_0xd424df,'drawingId':_0x1f20a5,'drawingType':_univerjs_core[_0x45ffef(0x175)]['DRAWING_SHAPE'],'sheetTransform':_0x458d0b,'transform':{'left':_0x11f9d7,'top':_0xb1749,'width':_0x1831c2,'height':_0x387615},'data':{'shapeType':_0x4a70b2,'shapeData':_0x93d1de},'axisAlignSheetTransform':_0x458d0b,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x45ffef(0x152)])(_0x4a70b2)&&(_0x39ab38['data'][_0x45ffef(0x1da)]=![],_0x39ab38[_0x45ffef(0x184)][_0x45ffef(0x18d)]=![],_0x39ab38[_0x45ffef(0x184)][_0x45ffef(0x18a)]=![],_0x39ab38[_0x45ffef(0x184)][_0x45ffef(0x190)]=![],_0x39ab38[_0x45ffef(0x158)][_0x45ffef(0x18d)]=![],_0x39ab38['transform']['resizeEnabled']=![],_0x39ab38['transform'][_0x45ffef(0x190)]=![]);const {undo:_0x32b3ef,redo:_0x1d56da,objects:_0x21c4bc}=_0x1a47bc[_0x45ffef(0x1b6)]([_0x39ab38]),_0x3d3816=_0x30df2f[_0x45ffef(0x160)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x390dc1,'drawings':[_0x39ab38]}}),_0x4c1473=[...(_0x239af5=_0x3d3816[_0x45ffef(0x1bd)])!==null&&_0x239af5!==void 0x0?_0x239af5:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x390dc1,'subUnitId':_0xd424df,'op':_0x1d56da,'objects':_0x21c4bc,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x45ffef(0x1b0)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x390dc1]},..._0x3d3816[_0x45ffef(0x155)],{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x36f66c}],_0x578004=[...(_0x376240=_0x3d3816[_0x45ffef(0x178)])!==null&&_0x376240!==void 0x0?_0x376240:[],{'id':_univerjs_sheets_drawing[_0x45ffef(0x18e)]['id'],'params':{'unitId':_0x390dc1,'subUnitId':_0xd424df,'op':_0x32b3ef,'objects':_0x21c4bc,'type':_univerjs_sheets_drawing[_0x45ffef(0x196)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x45ffef(0x173)]['id'],'params':[_0x390dc1]},..._0x3d3816[_0x45ffef(0x157)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x390dc1,'subUnitId':_0xd424df,'shapeType':_0x3aef4c,'shapeId':_0x1f20a5,'shapeData':_0x17830a}}];if((0x0,_univerjs_core[_0x45ffef(0x1e4)])(_0x4c1473,_0x808442)[_0x45ffef(0x151)])return _0x5c7d79[_0x45ffef(0x1af)]({'unitID':_0x390dc1,'undoMutations':_0x578004,'redoMutations':_0x4c1473}),!![];return![];}},ToggleSheetsShapeFlipCommand={'type':_univerjs_core['CommandType'][_0x22bf2f(0x149)],'id':_0x22bf2f(0x16b),'handler':(_0x6d6a67,_0x20ee4c)=>{const _0x355273=_0x22bf2f;var _0x1e1567,_0x13116a;const _0x315626=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x6d6a67['get'](_univerjs_core[_0x355273(0x187)]),_0x20ee4c);if(!_0x315626)return![];const _0x1cca13=_0x6d6a67[_0x355273(0x17f)](_univerjs_sheets[_0x355273(0x1e9)]),{unitId:_0x2eaaa7,subUnitId:_0xc36a8c}=_0x315626,_0x59469e=_0x1cca13[_0x355273(0x209)](_0x2eaaa7,_0xc36a8c);if(!_0x59469e)return![];const _0x5af193=_0x6d6a67[_0x355273(0x17f)](_univerjs_sheets_drawing[_0x355273(0x1c1)]),{shapeId:_0x419986,flipH:_0xc752e7,flipV:_0xaf8ce}=_0x20ee4c,_0x288f80=_0x5af193[_0x355273(0x1cf)]({'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'drawingId':_0x419986});if(!_0x288f80)return![];const _0x3f9ff2=_0x6d6a67[_0x355273(0x17f)](SheetsShapeService)[_0x355273(0x1ed)](_0x2eaaa7,_0xc36a8c,_0x419986);if(!_0x3f9ff2)return![];const _0x414cd7=_0x6d6a67[_0x355273(0x17f)](_univerjs_core['ICommandService']),_0x44824e=_0x6d6a67[_0x355273(0x17f)](_univerjs_core[_0x355273(0x207)]),_0xed741c=_0x6d6a67[_0x355273(0x17f)](_univerjs_sheets['SheetInterceptorService']),_0x11b74b={..._0x288f80[_0x355273(0x158)]};if(_0xc752e7!==void 0x0)_0x11b74b['flipX']=!_0x11b74b[_0x355273(0x176)];if(_0xaf8ce!==void 0x0)_0x11b74b[_0x355273(0x1ab)]=!_0x11b74b['flipY'];const _0x266789=(0x0,_univerjs_sheets_drawing[_0x355273(0x164)])(_0x11b74b,_0x59469e),_0xcce1d1=(0x0,_univerjs_sheets_drawing[_0x355273(0x194)])(_0x11b74b,_0x59469e),_0x3d5657=_0x3f9ff2['getShapeType'](),_0x4cc288=_0x3f9ff2[_0x355273(0x1c0)](),_0x2f0a6d={'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'drawingId':_0x419986,'drawingType':_univerjs_core[_0x355273(0x175)][_0x355273(0x1f0)],'sheetTransform':_0x266789,'transform':_0x11b74b,'data':{'shapeType':_0x3d5657,'shapeData':_0x4cc288},'axisAlignSheetTransform':_0xcce1d1,'allowTransform':!![]},{undo:_0x541a80,redo:_0xcd73f7,objects:_0x12e0c6}=_0x5af193[_0x355273(0x1b6)]([_0x2f0a6d]),_0x5db70c=_0xed741c[_0x355273(0x160)]({'id':_univerjs_sheets_drawing[_0x355273(0x15e)]['id'],'params':{'unitId':_0x2eaaa7,'drawings':[_0x2f0a6d]}}),_0x28208c=[...(_0x1e1567=_0x5db70c[_0x355273(0x1bd)])!==null&&_0x1e1567!==void 0x0?_0x1e1567:[],{'id':_univerjs_sheets_drawing[_0x355273(0x18e)]['id'],'params':{'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'op':_0xcd73f7,'objects':_0x12e0c6,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x355273(0x1b0)]}},{'id':_univerjs_sheets_drawing[_0x355273(0x173)]['id'],'params':[_0x2eaaa7]},..._0x5db70c[_0x355273(0x155)]],_0x385c04=[...(_0x13116a=_0x5db70c[_0x355273(0x178)])!==null&&_0x13116a!==void 0x0?_0x13116a:[],{'id':_univerjs_sheets_drawing[_0x355273(0x18e)]['id'],'params':{'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'op':_0x541a80,'objects':_0x12e0c6,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x355273(0x1b0)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x2eaaa7]},..._0x5db70c['undos']];if((0x0,_univerjs_pro_engine_shape[_0x355273(0x152)])(_0x3d5657)){const _0x5a3d72=_0x3f9ff2[_0x355273(0x201)]();if(_0x5a3d72){const _0x3ad9e4={..._0x5a3d72};_0x3ad9e4[_0x355273(0x15c)]=void 0x0,_0x3ad9e4['to']=void 0x0,_0x28208c[_0x355273(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'shapeId':_0x419986,'shapeType':_0x3d5657,'shapeData':{'relation':_0x3ad9e4}}}),_0x385c04['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2eaaa7,'subUnitId':_0xc36a8c,'shapeId':_0x419986,'shapeType':_0x3d5657,'shapeData':{'relation':_0x5a3d72}}});}}if((0x0,_univerjs_core[_0x355273(0x1e4)])(_0x28208c,_0x414cd7)['result'])return _0x44824e['pushUndoRedo']({'unitID':_0x2eaaa7,'undoMutations':_0x385c04,'redoMutations':_0x28208c}),!![];return![];}},SetSheetsShapeRotateCommand={'type':_univerjs_core[_0x22bf2f(0x1ce)]['COMMAND'],'id':_0x22bf2f(0x1bf),'handler':(_0x52fe31,_0x203ec8)=>{const _0x5a2be1=_0x22bf2f;var _0x4254d2,_0x5591ea;const _0x28d705=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x52fe31['get'](_univerjs_core[_0x5a2be1(0x187)]),_0x203ec8);if(!_0x28d705)return![];const _0x1ee33e=_0x52fe31['get'](_univerjs_sheets[_0x5a2be1(0x1e9)]),{unitId:_0x329936,subUnitId:_0x1285a5}=_0x28d705,_0x2cba4a=_0x1ee33e[_0x5a2be1(0x209)](_0x329936,_0x1285a5);if(!_0x2cba4a)return![];const _0x12f8a1=_0x52fe31['get'](_univerjs_sheets_drawing[_0x5a2be1(0x1c1)]),{shapeId:_0x363615,rotate:_0x185876}=_0x203ec8,_0x1d58f3=_0x12f8a1[_0x5a2be1(0x1cf)]({'unitId':_0x329936,'subUnitId':_0x1285a5,'drawingId':_0x363615});if(!_0x1d58f3)return![];const _0x6c2c94=_0x52fe31[_0x5a2be1(0x17f)](SheetsShapeService)[_0x5a2be1(0x1ed)](_0x329936,_0x1285a5,_0x363615);if(!_0x6c2c94)return![];const _0x4975cb=_0x52fe31[_0x5a2be1(0x17f)](_univerjs_core[_0x5a2be1(0x174)]),_0x3a582e=_0x52fe31[_0x5a2be1(0x17f)](_univerjs_core[_0x5a2be1(0x207)]),_0x12f696=_0x52fe31[_0x5a2be1(0x17f)](_univerjs_sheets[_0x5a2be1(0x154)]),_0xfc87b1={..._0x1d58f3[_0x5a2be1(0x158)]};if(_0x185876!==void 0x0)_0xfc87b1[_0x5a2be1(0x185)]=(_0xfc87b1['angle']||0x0)+_0x185876;const _0x459cbf=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0xfc87b1,_0x2cba4a),_0x139e38=(0x0,_univerjs_sheets_drawing[_0x5a2be1(0x194)])(_0xfc87b1,_0x2cba4a),_0x2cd364=_0x6c2c94['getShapeType'](),_0x305f86=_0x6c2c94['getShapeData'](),_0x578192={'unitId':_0x329936,'subUnitId':_0x1285a5,'drawingId':_0x363615,'drawingType':_univerjs_core[_0x5a2be1(0x175)][_0x5a2be1(0x1f0)],'sheetTransform':_0x459cbf,'transform':_0xfc87b1,'data':{'shapeType':_0x2cd364,'shapeData':_0x305f86},'axisAlignSheetTransform':_0x139e38,'allowTransform':!![]},{undo:_0x5d715f,redo:_0x5acda5,objects:_0x30fa54}=_0x12f8a1['getBatchUpdateOp']([_0x578192]),_0x18ad89=_0x12f696[_0x5a2be1(0x160)]({'id':_univerjs_sheets_drawing[_0x5a2be1(0x15e)]['id'],'params':{'unitId':_0x329936,'drawings':[_0x578192]}}),_0x461d2e=[...(_0x4254d2=_0x18ad89[_0x5a2be1(0x1bd)])!==null&&_0x4254d2!==void 0x0?_0x4254d2:[],{'id':_univerjs_sheets_drawing[_0x5a2be1(0x18e)]['id'],'params':{'unitId':_0x329936,'subUnitId':_0x1285a5,'op':_0x5acda5,'objects':_0x30fa54,'type':_univerjs_sheets_drawing[_0x5a2be1(0x196)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x5a2be1(0x173)]['id'],'params':[_0x329936]},..._0x18ad89[_0x5a2be1(0x155)]],_0x143dc8=[...(_0x5591ea=_0x18ad89[_0x5a2be1(0x178)])!==null&&_0x5591ea!==void 0x0?_0x5591ea:[],{'id':_univerjs_sheets_drawing[_0x5a2be1(0x18e)]['id'],'params':{'unitId':_0x329936,'subUnitId':_0x1285a5,'op':_0x5d715f,'objects':_0x30fa54,'type':_univerjs_sheets_drawing[_0x5a2be1(0x196)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x5a2be1(0x173)]['id'],'params':[_0x329936]},..._0x18ad89[_0x5a2be1(0x157)]];if((0x0,_univerjs_core['sequenceExecute'])(_0x461d2e,_0x4975cb)[_0x5a2be1(0x151)])return _0x3a582e[_0x5a2be1(0x1af)]({'unitID':_0x329936,'undoMutations':_0x143dc8,'redoMutations':_0x461d2e}),!![];return![];}},SetSheetsShapeTextVerticalToggleCommand={'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x149)],'id':_0x22bf2f(0x1eb),'handler':(_0x41ccd4,_0x1bffac)=>{const _0x2d75fc=_0x22bf2f;var _0x37b0b5;const _0x520c20=(0x0,_univerjs_sheets[_0x2d75fc(0x141)])(_0x41ccd4[_0x2d75fc(0x17f)](_univerjs_core['IUniverInstanceService']),_0x1bffac);if(!_0x520c20)return![];const {unitId:_0x172261,subUnitId:_0x53c3f4}=_0x520c20,{shapeId:_0x5df82d}=_0x1bffac,_0xe2af86=_0x41ccd4[_0x2d75fc(0x17f)](SheetsShapeService)['getShapeModel'](_0x172261,_0x53c3f4,_0x5df82d);if(!_0xe2af86)return![];const _0x30794e=_0xe2af86[_0x2d75fc(0x19f)](),_0x2ddffb=(_0x37b0b5=_0x30794e===null||_0x30794e===void 0x0?void 0x0:_0x30794e[_0x2d75fc(0x1c3)])!==null&&_0x37b0b5!==void 0x0?_0x37b0b5:!![],_0x400fa7=!_0x2ddffb,_0x212665=_0x41ccd4[_0x2d75fc(0x17f)](_univerjs_core['ICommandService']),_0x2b6d60=_0x41ccd4[_0x2d75fc(0x17f)](_univerjs_core[_0x2d75fc(0x207)]),_0x5e10e7={'unitId':_0x172261,'subUnitId':_0x53c3f4,'shapeId':_0x5df82d,'shapeData':{'shapeText':{'isHorizontal':_0x400fa7}}},_0x412765={'unitId':_0x172261,'subUnitId':_0x53c3f4,'shapeId':_0x5df82d,'shapeData':{'shapeText':{'isHorizontal':_0x2ddffb}}},_0x10fa02=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x5e10e7}],_0x14e73d=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x412765}];if((0x0,_univerjs_core['sequenceExecute'])(_0x10fa02,_0x212665)[_0x2d75fc(0x151)])return _0x2b6d60[_0x2d75fc(0x1af)]({'unitID':_0x172261,'undoMutations':_0x14e73d,'redoMutations':_0x10fa02}),!![];return![];}},UpdateConnectorRelationCommand={'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x149)],'id':_0x22bf2f(0x1f9),'handler':(_0x4b3dc3,_0x141d61)=>{const _0x341e5d=_0x22bf2f;var _0x2d05fb,_0xfd0fc5,_0x16e00e,_0x3209ef;const _0x57fc1a=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x4b3dc3[_0x341e5d(0x17f)](_univerjs_core[_0x341e5d(0x187)]),_0x141d61);if(!_0x57fc1a)return![];const _0x1f9fc6=_0x4b3dc3[_0x341e5d(0x17f)](_univerjs_sheets[_0x341e5d(0x1e9)]),{unitId:_0x30305b,subUnitId:_0xb8e392}=_0x57fc1a,_0x3dff01=_0x1f9fc6[_0x341e5d(0x209)](_0x30305b,_0xb8e392);if(!_0x3dff01)return![];const _0x47bca2=_0x4b3dc3[_0x341e5d(0x17f)](_univerjs_sheets_drawing[_0x341e5d(0x1c1)]),{connectorShapeId:_0x57e8ee,width:_0x31d8c9,height:_0x5ee45e,left:_0x2291bc,top:_0x4ac25e,flipX:_0x440ac6,flipY:_0x1194a8,rotation:_0x2e6706,oldAdjustValues:_0x5cdf43,newAdjustValues:_0x3f08c1,oldLineType:_0x585aa8,newLineType:_0x5bc2bb,oldRelation:_0x1d5909,newRelation:_0x24a5be}=_0x141d61,_0x53a938=_0x47bca2[_0x341e5d(0x1cf)]({'unitId':_0x30305b,'subUnitId':_0xb8e392,'drawingId':_0x57e8ee});if(!_0x53a938)return![];const _0x57818f=_0x4b3dc3['get'](SheetsShapeService)['getShapeModel'](_0x30305b,_0xb8e392,_0x57e8ee);if(!_0x57818f)return![];const _0x23e00a=_0x4b3dc3[_0x341e5d(0x17f)](_univerjs_core[_0x341e5d(0x174)]),_0x136a4a=_0x4b3dc3['get'](_univerjs_core[_0x341e5d(0x207)]),_0x215b9b=_0x4b3dc3[_0x341e5d(0x17f)](_univerjs_sheets[_0x341e5d(0x154)]),_0x862366={..._0x53a938[_0x341e5d(0x158)],'width':_0x31d8c9,'height':_0x5ee45e,'left':_0x2291bc,'top':_0x4ac25e,'flipX':_0x440ac6,'flipY':_0x1194a8,'angle':(_0x2d05fb=_0x2e6706!==null&&_0x2e6706!==void 0x0?_0x2e6706:(_0xfd0fc5=_0x53a938[_0x341e5d(0x158)])===null||_0xfd0fc5===void 0x0?void 0x0:_0xfd0fc5[_0x341e5d(0x185)])!==null&&_0x2d05fb!==void 0x0?_0x2d05fb:0x0},_0x398dfc=(0x0,_univerjs_sheets_drawing[_0x341e5d(0x164)])(_0x862366,_0x3dff01),_0x4a8b3a=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0x862366,_0x3dff01),_0x18bd30=_0x57818f[_0x341e5d(0x165)](),_0x545214=_0x57818f['getShapeData'](),_0x38688a={'unitId':_0x30305b,'subUnitId':_0xb8e392,'drawingId':_0x57e8ee,'drawingType':_univerjs_core[_0x341e5d(0x175)][_0x341e5d(0x1f0)],'sheetTransform':_0x398dfc,'transform':_0x862366,'data':{'shapeType':_0x5bc2bb||_0x585aa8||_0x18bd30,'shapeData':{..._0x545214,'adjustValues':_0x3f08c1||_0x5cdf43||(_0x545214===null||_0x545214===void 0x0?void 0x0:_0x545214[_0x341e5d(0x16c)]),'relation':_0x24a5be||_0x1d5909||(_0x545214===null||_0x545214===void 0x0?void 0x0:_0x545214[_0x341e5d(0x199)])}},'axisAlignSheetTransform':_0x4a8b3a,'allowTransform':!![]},{undo:_0x2635ba,redo:_0x212c77,objects:_0x54fc8f}=_0x47bca2['getBatchUpdateOp']([_0x38688a]),_0x57e634=_0x215b9b[_0x341e5d(0x160)]({'id':_univerjs_sheets_drawing[_0x341e5d(0x15e)]['id'],'params':{'unitId':_0x30305b,'drawings':[_0x38688a]}}),_0x116018=[...(_0x16e00e=_0x57e634[_0x341e5d(0x1bd)])!==null&&_0x16e00e!==void 0x0?_0x16e00e:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x30305b,'subUnitId':_0xb8e392,'op':_0x212c77,'objects':_0x54fc8f,'type':_univerjs_sheets_drawing[_0x341e5d(0x196)][_0x341e5d(0x1b0)]}},{'id':_univerjs_sheets_drawing[_0x341e5d(0x173)]['id'],'params':[_0x30305b]},..._0x57e634[_0x341e5d(0x155)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x30305b,'subUnitId':_0xb8e392,'shapeId':_0x57e8ee,'shapeType':_0x5bc2bb,'shapeData':{'adjustValues':_0x3f08c1,'relation':_0x24a5be}}}],_0x381a3f=[...(_0x3209ef=_0x57e634[_0x341e5d(0x178)])!==null&&_0x3209ef!==void 0x0?_0x3209ef:[],{'id':_univerjs_sheets_drawing[_0x341e5d(0x18e)]['id'],'params':{'unitId':_0x30305b,'subUnitId':_0xb8e392,'op':_0x2635ba,'objects':_0x54fc8f,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x341e5d(0x1b0)]}},{'id':_univerjs_sheets_drawing[_0x341e5d(0x173)]['id'],'params':[_0x30305b]},..._0x57e634['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x30305b,'subUnitId':_0xb8e392,'shapeId':_0x57e8ee,'shapeType':_0x18bd30,'shapeData':{..._0x545214,'adjustValues':_0x5cdf43||(_0x545214===null||_0x545214===void 0x0?void 0x0:_0x545214[_0x341e5d(0x16c)]),'relation':_0x1d5909||(_0x545214===null||_0x545214===void 0x0?void 0x0:_0x545214['relation'])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x116018,_0x23e00a)[_0x341e5d(0x151)])return _0x136a4a[_0x341e5d(0x1af)]({'unitID':_0x30305b,'undoMutations':_0x381a3f,'redoMutations':_0x116018}),!![];return![];}},UpdateLineShapeResizeCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':'sheet.command.update-line-shape-resize','handler':(_0x4886a0,_0xe0e488)=>{const _0xd6929f=_0x22bf2f;var _0x29bd84,_0x17fb83;const _0x228f5b=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x4886a0['get'](_univerjs_core[_0xd6929f(0x187)]),_0xe0e488);if(!_0x228f5b)return![];const _0x4d9f5f=_0x4886a0[_0xd6929f(0x17f)](_univerjs_sheets[_0xd6929f(0x1e9)]),{unitId:_0x3722f1,subUnitId:_0x42cdd9}=_0x228f5b,_0x86b568=_0x4d9f5f[_0xd6929f(0x209)](_0x3722f1,_0x42cdd9);if(!_0x86b568)return![];const _0x592276=_0x4886a0['get'](_univerjs_sheets_drawing['ISheetDrawingService']),{shapeId:_0x820a73,width:_0x3d18f1,height:_0xf8b1c,left:_0x1bd94a,top:_0x185b7e,flipX:_0x144a13,flipY:_0x539b97,angle:_0x5118a5,oldAdjustValues:_0x5ef0c5,newAdjustValues:_0x3cb840,oldLineType:_0x41b1ab,newLineType:_0x4814f8}=_0xe0e488,_0x3170f5=_0x592276[_0xd6929f(0x1cf)]({'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'drawingId':_0x820a73});if(!_0x3170f5)return![];const _0x413e42=_0x4886a0[_0xd6929f(0x17f)](SheetsShapeService)['getShapeModel'](_0x3722f1,_0x42cdd9,_0x820a73);if(!_0x413e42)return![];const _0xd4bb97=_0x4886a0[_0xd6929f(0x17f)](_univerjs_core['ICommandService']),_0x2fdf88=_0x4886a0[_0xd6929f(0x17f)](_univerjs_core['IUndoRedoService']),_0x477d8b=_0x4886a0[_0xd6929f(0x17f)](_univerjs_sheets['SheetInterceptorService']),_0x7a2285={..._0x3170f5['transform'],'width':_0x3d18f1,'height':_0xf8b1c,'left':_0x1bd94a,'top':_0x185b7e,'flipX':_0x144a13,'flipY':_0x539b97,'angle':_0x5118a5},_0xa4337=(0x0,_univerjs_sheets_drawing[_0xd6929f(0x164)])(_0x7a2285,_0x86b568),_0x2b7e2e=(0x0,_univerjs_sheets_drawing[_0xd6929f(0x194)])(_0x7a2285,_0x86b568),_0x18dcbc=_0x413e42['getShapeType'](),_0x157438=_0x413e42[_0xd6929f(0x1c0)](),_0x584e51={'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'drawingId':_0x820a73,'drawingType':_univerjs_core[_0xd6929f(0x175)][_0xd6929f(0x1f0)],'sheetTransform':_0xa4337,'transform':_0x7a2285,'data':{'shapeType':_0x4814f8||_0x41b1ab||_0x18dcbc,'shapeData':{..._0x157438,'adjustValues':_0x3cb840||_0x5ef0c5||(_0x157438===null||_0x157438===void 0x0?void 0x0:_0x157438[_0xd6929f(0x16c)])}},'axisAlignSheetTransform':_0x2b7e2e,'allowTransform':!![]},{undo:_0x24c589,redo:_0xcab77,objects:_0x82bb7e}=_0x592276[_0xd6929f(0x1b6)]([_0x584e51]),_0x211ce3=_0x477d8b[_0xd6929f(0x160)]({'id':_univerjs_sheets_drawing[_0xd6929f(0x15e)]['id'],'params':{'unitId':_0x3722f1,'drawings':[_0x584e51]}}),_0x51912b=[...(_0x29bd84=_0x211ce3['preRedos'])!==null&&_0x29bd84!==void 0x0?_0x29bd84:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'op':_0xcab77,'objects':_0x82bb7e,'type':_univerjs_sheets_drawing[_0xd6929f(0x196)][_0xd6929f(0x1b0)]}},{'id':_univerjs_sheets_drawing[_0xd6929f(0x173)]['id'],'params':[_0x3722f1]},..._0x211ce3['redos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'shapeId':_0x820a73,'shapeType':_0x4814f8,'shapeData':{'adjustValues':_0x3cb840}}}],_0x581c65=[...(_0x17fb83=_0x211ce3[_0xd6929f(0x178)])!==null&&_0x17fb83!==void 0x0?_0x17fb83:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'op':_0x24c589,'objects':_0x82bb7e,'type':_univerjs_sheets_drawing[_0xd6929f(0x196)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0xd6929f(0x173)]['id'],'params':[_0x3722f1]},..._0x211ce3['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3722f1,'subUnitId':_0x42cdd9,'shapeId':_0x820a73,'shapeType':_0x18dcbc,'shapeData':{..._0x157438,'adjustValues':_0x5ef0c5||(_0x157438===null||_0x157438===void 0x0?void 0x0:_0x157438['adjustValues'])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x51912b,_0xd4bb97)[_0xd6929f(0x151)])return _0x2fdf88[_0xd6929f(0x1af)]({'unitID':_0x3722f1,'undoMutations':_0x581c65,'redoMutations':_0x51912b}),!![];return![];}},UpdateSheetsShapeTypeMutation={'id':_0x22bf2f(0x1ad),'type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x1c8)],'handler':(_0x298727,_0x2134f7)=>{const _0x309e13=_0x22bf2f,{unitId:_0x7a5fd2,subUnitId:_0x2f2f26,shapeType:_0x3e2a3f,shapeId:_0x1ebcf2,shapeData:_0x42e43a}=_0x2134f7,_0x2115af=_0x298727[_0x309e13(0x17f)](SheetsShapeService)[_0x309e13(0x1ed)](_0x7a5fd2,_0x2f2f26,_0x1ebcf2);if(_0x2115af){_0x2115af[_0x309e13(0x1fc)](_0x3e2a3f);if(_0x42e43a)_0x2115af===null||_0x2115af===void 0x0||_0x2115af[_0x309e13(0x147)](_0x42e43a);}return!![];}},UpdateSheetsShapeTypeCommand={'id':'sheet.command.update-shape-type','type':_univerjs_core[_0x22bf2f(0x1ce)][_0x22bf2f(0x149)],'handler':(_0x4c90ef,_0x16c20b)=>{const _0x5d2140=_0x22bf2f;if(!_0x16c20b)return![];const _0x27949e=_0x4c90ef[_0x5d2140(0x17f)](_univerjs_core[_0x5d2140(0x174)]),_0x1f6313=_0x4c90ef[_0x5d2140(0x17f)](SheetsShapeService),_0x2ebca6=_0x4c90ef[_0x5d2140(0x17f)](_univerjs_core['IUndoRedoService']),_0x3b464a=[],_0x1be0f6=[],{unitId:_0x5643e5,subUnitId:_0x5e7ec5,shapeId:_0x571d34,shapeType:_0x54a3ff,shapeData:_0x1bb15b}=_0x16c20b,_0x5e2d34=_0x1f6313[_0x5d2140(0x1ed)](_0x5643e5,_0x5e7ec5,_0x571d34);if(_0x5e2d34){const _0xebd3f6=_0x5e2d34[_0x5d2140(0x165)](),_0x3d89a7=Object['assign']({},_0x5e2d34['getShapeData']()),_0xbdf792={'unitId':_0x5643e5,'subUnitId':_0x5e7ec5,'shapeId':_0x571d34,'shapeType':_0x54a3ff,'shapeData':_0x1bb15b},_0x4f7108={'unitId':_0x5643e5,'subUnitId':_0x5e7ec5,'shapeId':_0x571d34,'shapeType':_0xebd3f6,'shapeData':_0x3d89a7};_0x3b464a[_0x5d2140(0x17d)]({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0xbdf792}),_0x1be0f6['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x4f7108});if(_0x3b464a[_0x5d2140(0x1e0)](_0x1e1267=>_0x27949e[_0x5d2140(0x1a2)](_0x1e1267['id'],_0x1e1267[_0x5d2140(0x15d)])))_0x2ebca6['pushUndoRedo']({'unitID':_0x5643e5,'redoMutations':[..._0x3b464a],'undoMutations':[..._0x1be0f6]});return!![];}return![];}};var name=_0x22bf2f(0x180),version=_0x22bf2f(0x15b);const SHEETS_SHAPE_PLUGIN_CONFIG_KEY=_0x22bf2f(0x14f),configSymbol=Symbol(SHEETS_SHAPE_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let SheetsShapeController=class SheetsShapeController extends _univerjs_core[_0x22bf2f(0x167)]{constructor(_0x34744e,_0x3ec6ed,_0x49b11a,_0x57f65d,_0x5cbbda){const _0x1c6241=_0x22bf2f;super(),this['_commandService']=_0x34744e,this[_0x1c6241(0x140)]=_0x3ec6ed,this[_0x1c6241(0x153)]=_0x49b11a,this[_0x1c6241(0x17a)]=_0x57f65d,this['_drawingManagerService']=_0x5cbbda,this[_0x1c6241(0x1f5)](),this[_0x1c6241(0x1db)]();}[_0x22bf2f(0x1f5)](){const _0x40c0d2=_0x22bf2f;[InsertShapeCommand,SetShapeDrawingDataCommand,ToggleSheetsShapeFlipCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,UpdateSheetsShapeTypeMutation,UpdateSheetsShapeDataMutation][_0x40c0d2(0x156)](_0x525a92=>this['disposeWithMe'](this[_0x40c0d2(0x163)][_0x40c0d2(0x169)](_0x525a92)));}[_0x22bf2f(0x1db)](){const _0x3f03a2=_0x22bf2f;this[_0x3f03a2(0x1ba)](this['_sheetInterceptorService'][_0x3f03a2(0x19d)]({'getMutations':_0x2dea43=>{const _0x541c77=_0x3f03a2;if(_0x2dea43['id']===_univerjs_sheets_drawing[_0x541c77(0x166)]['id']){const {drawings:_0x1597a0}=_0x2dea43[_0x541c77(0x15d)],_0x5bf652=_0x1597a0[_0x541c77(0x1c9)](_0x1b204d=>_0x1b204d[_0x541c77(0x16d)]===_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE']);if(_0x5bf652[_0x541c77(0x15f)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x3604b6=[],_0x12da05=[];return _0x5bf652[_0x541c77(0x156)](_0x2aac7e=>{const _0x42e444=_0x541c77,{unitId:_0xd74eab,subUnitId:_0x5e1f9d,drawingId:_0x188322}=_0x2aac7e,_0x439d09=this[_0x42e444(0x17a)][_0x42e444(0x1ed)](_0xd74eab,_0x5e1f9d,_0x188322);if(!_0x439d09)throw new TypeError(_0x42e444(0x1cd)+_0x439d09);_0x3604b6['push']({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0xd74eab,'subUnitId':_0x5e1f9d,'shapeId':_0x188322}}),_0x12da05[_0x42e444(0x17d)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0xd74eab,'subUnitId':_0x5e1f9d,'shapeId':_0x188322,'shapeType':_0x439d09['getShapeType'](),'shapeData':_0x439d09[_0x42e444(0x1c0)]()}});const _0x11a0b7=this[_0x42e444(0x17a)][_0x42e444(0x162)](_0xd74eab,_0x5e1f9d,_0x188322);if(_0x11a0b7)for(const _0x122a1c of _0x11a0b7){const _0xdec5b4=_0x122a1c['lineShapeId'],_0x38e1ca=_0x122a1c['isFrom'],_0x1231c1=_0x38e1ca?{'from':void 0x0}:{'to':void 0x0},_0x1c107d=_0x38e1ca?{'from':{'shapeId':_0x122a1c[_0x42e444(0x150)],'cxnIndex':_0x122a1c[_0x42e444(0x146)]}}:{'to':{'shapeId':_0x122a1c[_0x42e444(0x150)],'cxnIndex':_0x122a1c[_0x42e444(0x146)]}};_0x3604b6[_0x42e444(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0xd74eab,'subUnitId':_0x5e1f9d,'shapeId':_0xdec5b4,'shapeData':{'relation':_0x1231c1}}}),_0x12da05[_0x42e444(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0xd74eab,'subUnitId':_0x5e1f9d,'shapeId':_0xdec5b4,'shapeData':{'relation':_0x1c107d}}});}}),{'preRedos':_0x3604b6,'redos':[],'preUndos':[],'undos':_0x12da05};}if(_0x2dea43['id']===_univerjs_sheets_drawing[_0x541c77(0x15e)]['id']){const {drawings:_0xcf86f9}=_0x2dea43[_0x541c77(0x15d)],_0x14402b=_0xcf86f9[_0x541c77(0x1c9)](_0x4f8736=>_0x4f8736['drawingType']===_univerjs_core[_0x541c77(0x175)][_0x541c77(0x1f0)]);if(_0x14402b[_0x541c77(0x15f)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x56a0bf=[],_0x2eeb59=[];for(const _0x503444 of _0x14402b){const {unitId:_0x1e494b,subUnitId:_0x4cef04,drawingId:_0x3969a5,transform:_0x2ff006}=_0x503444;if(!_0x1e494b||!_0x4cef04||!_0x3969a5||!_0x2ff006)continue;const _0xa7f1d6=this[_0x541c77(0x17a)][_0x541c77(0x1ed)](_0x1e494b,_0x4cef04,_0x3969a5);if(!_0xa7f1d6)throw new TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xa7f1d6);if((0x0,_univerjs_pro_engine_shape[_0x541c77(0x152)])(_0xa7f1d6[_0x541c77(0x165)]())){const _0x598d59=this['_sheetsShapeService'][_0x541c77(0x15a)](_0x1e494b,_0x4cef04,_0x3969a5),_0x4d46af={'from':void 0x0,'to':void 0x0};_0x598d59&&(_0x56a0bf[_0x541c77(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1e494b,'subUnitId':_0x4cef04,'shapeId':_0x3969a5,'shapeData':{'relation':_0x4d46af}}}),_0x2eeb59[_0x541c77(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x1e494b,'subUnitId':_0x4cef04,'shapeId':_0x3969a5,'shapeData':{'relation':_0x598d59}}}));}else{const _0x2763f0=this[_0x541c77(0x17a)]['getBasicShapeRelation'](_0x1e494b,_0x4cef04,_0x3969a5);if(_0x2763f0&&_0x2763f0[_0x541c77(0x15f)]>0x0)for(const _0x1df855 of _0x2763f0){const _0x156102=_0x1df855['lineShapeId'],_0xbc1caf=_0x1df855[_0x541c77(0x1e7)],_0x5909df=this[_0x541c77(0x17a)][_0x541c77(0x1ed)](_0x1e494b,_0x4cef04,_0x156102);if(!_0x5909df)continue;const _0x7bec82=_0x5909df['getStartConnectInfo'](),_0x462d48=_0x5909df[_0x541c77(0x1b5)]();if(_0x7bec82&&_0x462d48)this[_0x541c77(0x1d6)](_0x1e494b,_0x4cef04,_0x156102,_0x5909df,_0x7bec82,_0x462d48,_0x56a0bf,_0x2eeb59,_0x3969a5,_0x2ff006);else this[_0x541c77(0x18c)](_0x1e494b,_0x4cef04,_0x156102,_0x5909df,_0xbc1caf?_0x7bec82:_0x462d48,_0xbc1caf,_0x56a0bf,_0x2eeb59,_0x3969a5,_0x2ff006);}}}return{'preRedos':[],'redos':_0x56a0bf,'preUndos':_0x2eeb59,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x22bf2f(0x1f2)](_0x23187c,_0x5b77bb,_0x474e67,_0x583cc4,_0x1c9980){const _0x1a113f=_0x22bf2f;if(!_0x5b77bb||!_0x474e67)return null;const {shapeId:_0x1f3bec,cxnIndex:_0x3dc214}=_0x23187c,_0x1fe63d=this[_0x1a113f(0x17a)][_0x1a113f(0x1ed)](_0x5b77bb,_0x474e67,_0x1f3bec);if(!_0x1fe63d)return null;const _0x377250=this[_0x1a113f(0x1c7)][_0x1a113f(0x1cf)]({'unitId':_0x5b77bb,'subUnitId':_0x474e67,'drawingId':_0x1f3bec});if(!(_0x377250===null||_0x377250===void 0x0?void 0x0:_0x377250[_0x1a113f(0x158)]))return null;let {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x5c7914}=_0x377250[_0x1a113f(0x158)];if(_0x1c9980&&_0x583cc4===_0x1f3bec){var _0x467bc2,_0xc1407e,_0x4532cf,_0x7aea8f,_0x2eddb4,_0x125018,_0x1cc9ab;left=(_0x467bc2=_0x1c9980[_0x1a113f(0x1b7)])!==null&&_0x467bc2!==void 0x0?_0x467bc2:left,top=(_0xc1407e=_0x1c9980[_0x1a113f(0x177)])!==null&&_0xc1407e!==void 0x0?_0xc1407e:top,width=(_0x4532cf=_0x1c9980[_0x1a113f(0x159)])!==null&&_0x4532cf!==void 0x0?_0x4532cf:width,height=(_0x7aea8f=_0x1c9980['height'])!==null&&_0x7aea8f!==void 0x0?_0x7aea8f:height,flipX=(_0x2eddb4=_0x1c9980['flipX'])!==null&&_0x2eddb4!==void 0x0?_0x2eddb4:flipX,flipY=(_0x125018=_0x1c9980['flipY'])!==null&&_0x125018!==void 0x0?_0x125018:flipY,_0x5c7914=(_0x1cc9ab=_0x1c9980[_0x1a113f(0x185)])!==null&&_0x1cc9ab!==void 0x0?_0x1cc9ab:_0x5c7914;}_0x1fe63d[_0x1a113f(0x19a)]({'width':width,'height':height});const _0x46f6e8=_0x1fe63d['getConnectionSiteList']()[_0x1a113f(0x1e1)](_0x3dec9e=>_0x3dec9e[_0x1a113f(0x17c)]===_0x3dc214);if(!_0x46f6e8)return null;let _0x277918=flipX?width-_0x46f6e8['x']:_0x46f6e8['x'],_0x32c52c=flipY?height-_0x46f6e8['y']:_0x46f6e8['y'];if(_0x5c7914!==0x0&&_0x5c7914!==void 0x0&&_0x5c7914!==null){const _0x1fdb00=_0x5c7914*Math['PI']/0xb4,_0x3ff7e1=Math[_0x1a113f(0x1de)](_0x1fdb00),_0x2942e1=Math['sin'](_0x1fdb00),_0xba443c=width/0x2,_0x243ffc=height/0x2,_0x465836=_0x277918-_0xba443c,_0x7941e0=_0x32c52c-_0x243ffc;_0x277918=_0xba443c+_0x465836*_0x3ff7e1-_0x7941e0*_0x2942e1,_0x32c52c=_0x243ffc+_0x465836*_0x2942e1+_0x7941e0*_0x3ff7e1;}_0x277918+=left,_0x32c52c+=top;let _0x59f67e=_0x46f6e8[_0x1a113f(0x1c2)]/0xea60;if(flipX)_0x59f67e=0xb4-_0x59f67e;if(flipY)_0x59f67e=-_0x59f67e;_0x59f67e+=_0x5c7914||0x0,_0x59f67e=(_0x59f67e%0x168+0x168)%0x168;const _0x4ada11=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x5c7914||0x0);return{'point':{'x':_0x277918,'y':_0x32c52c},'angle':_0x59f67e,'bounds':_0x4ada11};}[_0x22bf2f(0x1d6)](_0x282b34,_0x2a322d,_0xb92d69,_0x54aab5,_0x31374f,_0x5c1fce,_0x2f02d4,_0x4b05c7,_0x598c7a,_0x17c883){const _0x3a83b7=_0x22bf2f,_0x115318=this[_0x3a83b7(0x153)][_0x3a83b7(0x209)](_0x282b34,_0x2a322d);if(!_0x115318)return;const _0xd3cd35=_0x54aab5[_0x3a83b7(0x201)](),_0x25cdf9=_0x54aab5[_0x3a83b7(0x1f1)](),_0x116ad5={},_0x503a68={};_0x25cdf9[_0x3a83b7(0x156)](_0x308dec=>{const _0x4c85eb=_0x3a83b7,_0x1fd97d=_0x54aab5[_0x4c85eb(0x1fb)](_0x308dec);_0x503a68[_0x308dec]=_0x1fd97d!==null&&_0x1fd97d!==void 0x0?_0x1fd97d:0x0;});const _0x286b7b=this[_0x3a83b7(0x1f2)](_0x31374f,_0x282b34,_0x2a322d,_0x598c7a,_0x17c883),_0x2e52c1=this[_0x3a83b7(0x1f2)](_0x5c1fce,_0x282b34,_0x2a322d,_0x598c7a,_0x17c883);if(_0x286b7b&&_0x2e52c1){const _0x49419a=_0x54aab5[_0x3a83b7(0x165)](),_0x3a1954=(0x0,_univerjs_pro_engine_shape[_0x3a83b7(0x19b)])(_0x286b7b,_0x2e52c1,_0x49419a);let _0x1d8d22=_0x49419a;if(_0x3a1954){const _0x2819ef=(0x0,_univerjs_pro_engine_shape['computeConnectorRouteLayout'])(_0x3a1954,_0x54aab5[_0x3a83b7(0x165)]()),_0x54078b=this[_0x3a83b7(0x1c7)][_0x3a83b7(0x1f3)](_0x282b34,_0x2a322d);if(_0x54078b&&_0x54078b[_0xb92d69]){const _0x41e64b=_0x54078b[_0xb92d69];_0x1d8d22=_0x2819ef[_0x3a83b7(0x1c4)];for(const [_0x425003,_0x806380]of Object[_0x3a83b7(0x1a9)](_0x2819ef[_0x3a83b7(0x16c)]))_0x116ad5[_0x425003]=_0x806380;const _0xf21684={..._0x41e64b[_0x3a83b7(0x158)],'width':_0x2819ef['worldRect'][_0x3a83b7(0x159)],'height':_0x2819ef[_0x3a83b7(0x20b)]['height'],'left':_0x2819ef['worldRect'][_0x3a83b7(0x1b7)],'top':_0x2819ef[_0x3a83b7(0x20b)][_0x3a83b7(0x177)],'flipX':_0x2819ef[_0x3a83b7(0x20b)]['flipX'],'flipY':_0x2819ef['worldRect'][_0x3a83b7(0x1ab)],'angle':_0x2819ef[_0x3a83b7(0x1ea)]},_0x1c951c=(0x0,_univerjs_sheets_drawing[_0x3a83b7(0x164)])(_0xf21684,_0x115318),_0x4265c5=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0xf21684,_0x115318),_0xc6be03={'unitId':_0x282b34,'subUnitId':_0x2a322d,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x3a83b7(0x1f0)],'drawingId':_0xb92d69,'transform':_0xf21684,'sheetTransform':_0x1c951c,'axisAlignSheetTransform':_0x4265c5},{unitId:_0x1be0ac,subUnitId:_0x9059cd,undo:_0x47a252,redo:_0x36c331,objects:_0xb1870d}=this[_0x3a83b7(0x1c7)][_0x3a83b7(0x1b6)]([_0xc6be03]);_0x2f02d4[_0x3a83b7(0x17d)]({'id':_univerjs_sheets_drawing[_0x3a83b7(0x18e)]['id'],'params':{'unitId':_0x1be0ac,'subUnitId':_0x9059cd,'op':_0x36c331,'objects':_0xb1870d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3a83b7(0x1b0)]}}),_0x4b05c7[_0x3a83b7(0x17d)]({'id':_univerjs_sheets_drawing[_0x3a83b7(0x18e)]['id'],'params':{'unitId':_0x1be0ac,'subUnitId':_0x9059cd,'op':_0x47a252,'objects':_0xb1870d,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x3a83b7(0x1b0)]}});}_0x54aab5[_0x3a83b7(0x1ff)]();}_0x2f02d4['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x282b34,'subUnitId':_0x2a322d,'shapeId':_0xb92d69,'shapeType':_0x1d8d22,'shapeData':{'adjustValues':_0x116ad5,'relation':_0xd3cd35}}}),_0x4b05c7[_0x3a83b7(0x17d)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x282b34,'subUnitId':_0x2a322d,'shapeId':_0xb92d69,'shapeType':_0x49419a,'shapeData':{'adjustValues':_0x503a68,'relation':_0xd3cd35}}});}}[_0x22bf2f(0x18c)](_0x263fa0,_0x311d31,_0x4f5cae,_0x381c70,_0x522117,_0x1d7ac3,_0x20c1a6,_0x2b0cff,_0x4564d4,_0x4fb40c){const _0x5b90e4=_0x22bf2f;var _0x2f806a;if(!_0x522117)return;const _0x5c952f=this[_0x5b90e4(0x153)]['getSkeleton'](_0x263fa0,_0x311d31);if(!_0x5c952f)return;const _0x136699=(_0x2f806a=this[_0x5b90e4(0x1c7)][_0x5b90e4(0x1cf)]({'unitId':_0x263fa0,'subUnitId':_0x311d31,'drawingId':_0x4564d4}))===null||_0x2f806a===void 0x0?void 0x0:_0x2f806a['transform'];if(!_0x136699)return;const _0x17e3d6=_0x136699[_0x5b90e4(0x1b7)]!==_0x4fb40c['left']||_0x136699[_0x5b90e4(0x177)]!==_0x4fb40c[_0x5b90e4(0x177)],_0x1209b6=_0x136699[_0x5b90e4(0x159)]!==_0x4fb40c[_0x5b90e4(0x159)]||_0x136699[_0x5b90e4(0x16e)]!==_0x4fb40c['height'],_0x120155=_0x136699[_0x5b90e4(0x176)]!==_0x4fb40c[_0x5b90e4(0x176)]||_0x136699[_0x5b90e4(0x1ab)]!==_0x4fb40c[_0x5b90e4(0x1ab)],_0x16eb6d=_0x136699[_0x5b90e4(0x185)]!==_0x4fb40c['angle'];if(_0x17e3d6&&!_0x1209b6&&!_0x120155&&!_0x16eb6d){var _0x32dddb,_0x574804,_0x4661ae,_0x8221a7;const _0x121d3e=((_0x32dddb=_0x4fb40c[_0x5b90e4(0x1b7)])!==null&&_0x32dddb!==void 0x0?_0x32dddb:0x0)-((_0x574804=_0x136699[_0x5b90e4(0x1b7)])!==null&&_0x574804!==void 0x0?_0x574804:0x0),_0x2528cb=((_0x4661ae=_0x4fb40c[_0x5b90e4(0x177)])!==null&&_0x4661ae!==void 0x0?_0x4661ae:0x0)-((_0x8221a7=_0x136699[_0x5b90e4(0x177)])!==null&&_0x8221a7!==void 0x0?_0x8221a7:0x0),_0x49103f=this[_0x5b90e4(0x1c7)][_0x5b90e4(0x1f3)](_0x263fa0,_0x311d31);if(_0x49103f&&_0x49103f[_0x4f5cae]){var _0x1780d9,_0x4b7e8b,_0x140e70,_0x573d91;const _0x46e909=_0x49103f[_0x4f5cae],_0x2de74f={..._0x46e909[_0x5b90e4(0x158)],'left':((_0x1780d9=(_0x4b7e8b=_0x46e909[_0x5b90e4(0x158)])===null||_0x4b7e8b===void 0x0?void 0x0:_0x4b7e8b[_0x5b90e4(0x1b7)])!==null&&_0x1780d9!==void 0x0?_0x1780d9:0x0)+_0x121d3e,'top':((_0x140e70=(_0x573d91=_0x46e909[_0x5b90e4(0x158)])===null||_0x573d91===void 0x0?void 0x0:_0x573d91[_0x5b90e4(0x177)])!==null&&_0x140e70!==void 0x0?_0x140e70:0x0)+_0x2528cb},_0x3d845f=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x2de74f,_0x5c952f),_0x4157da=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0x2de74f,_0x5c952f),_0x577544={'unitId':_0x263fa0,'subUnitId':_0x311d31,'drawingType':_univerjs_core['DrawingTypeEnum'][_0x5b90e4(0x1f0)],'drawingId':_0x4f5cae,'transform':_0x2de74f,'sheetTransform':_0x3d845f,'axisAlignSheetTransform':_0x4157da},{unitId:_0x1ea5d3,subUnitId:_0x595bc5,undo:_0x41cee2,redo:_0x14e4d9,objects:_0x3e431f}=this[_0x5b90e4(0x1c7)][_0x5b90e4(0x1b6)]([_0x577544]);_0x20c1a6['push']({'id':_univerjs_sheets_drawing[_0x5b90e4(0x18e)]['id'],'params':{'unitId':_0x1ea5d3,'subUnitId':_0x595bc5,'op':_0x14e4d9,'objects':_0x3e431f,'type':_univerjs_sheets_drawing[_0x5b90e4(0x196)][_0x5b90e4(0x1b0)]}}),_0x2b0cff['push']({'id':_univerjs_sheets_drawing[_0x5b90e4(0x18e)]['id'],'params':{'unitId':_0x1ea5d3,'subUnitId':_0x595bc5,'op':_0x41cee2,'objects':_0x3e431f,'type':_univerjs_sheets_drawing[_0x5b90e4(0x196)][_0x5b90e4(0x1b0)]}});}}else{const _0x13e35a=_0x381c70[_0x5b90e4(0x183)](),_0x3f62c4=_0x381c70['getEndConnectInfo']();this[_0x5b90e4(0x1d6)](_0x263fa0,_0x311d31,_0x4f5cae,_0x381c70,_0x13e35a,_0x3f62c4,_0x20c1a6,_0x2b0cff,_0x4564d4,_0x4fb40c);}}};SheetsShapeController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x22bf2f(0x170)])(_univerjs_sheets[_0x22bf2f(0x154)])),__decorateParam(0x2,(0x0,_univerjs_core[_0x22bf2f(0x170)])(_univerjs_sheets[_0x22bf2f(0x1e9)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x22bf2f(0x170)])(SheetsShapeService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x22bf2f(0x170)])(_univerjs_drawing[_0x22bf2f(0x1a3)]))],SheetsShapeController);let UniverSheetsShapePlugin=class UniverSheetsShapePlugin extends _univerjs_core[_0x22bf2f(0x1a8)]{constructor(_0x4bc0d6=defaultPluginConfig,_0x286f26,_0x51b61c,_0x34e469){const _0x41830d=_0x22bf2f;super(),this[_0x41830d(0x182)]=_0x4bc0d6,this[_0x41830d(0x1f6)]=_0x286f26,this[_0x41830d(0x163)]=_0x51b61c,this['_configService']=_0x34e469;const {..._0x3aa2a0}=(0x0,_univerjs_core[_0x41830d(0x203)])({},defaultPluginConfig,this[_0x41830d(0x182)]);this[_0x41830d(0x208)][_0x41830d(0x1e6)](SHEETS_SHAPE_PLUGIN_CONFIG_KEY,_0x3aa2a0);}[_0x22bf2f(0x1ee)](){const _0x1d5df7=_0x22bf2f,_0x435650=this[_0x1d5df7(0x1f6)];[[SheetShapeModelManager],[SheetsShapeService],[SheetsShapeController]]['forEach'](_0x3b25ce=>_0x435650[_0x1d5df7(0x1a4)](_0x3b25ce)),(0x0,_univerjs_core[_0x1d5df7(0x18b)])(_0x435650,[[SheetsShapeService],[SheetsShapeController]]);}};_defineProperty(UniverSheetsShapePlugin,_0x22bf2f(0x1b8),_univerjs_core[_0x22bf2f(0x1e2)]['UNIVER_SHEET']),_defineProperty(UniverSheetsShapePlugin,_0x22bf2f(0x197),_0x22bf2f(0x179)),_defineProperty(UniverSheetsShapePlugin,'packageName',name),_defineProperty(UniverSheetsShapePlugin,_0x22bf2f(0x1be),version),UniverSheetsShapePlugin=__decorate([(0x0,_univerjs_core[_0x22bf2f(0x1fd)])(_univerjs_pro_license[_0x22bf2f(0x191)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x22bf2f(0x144)])),__decorateParam(0x2,_univerjs_core[_0x22bf2f(0x174)]),__decorateParam(0x3,_univerjs_core[_0x22bf2f(0x1a0)])],UniverSheetsShapePlugin),exports[_0x22bf2f(0x1fe)]=DEFAULT_SHAPE_HEIGHT,exports['DEFAULT_SHAPE_WIDTH']=DEFAULT_SHAPE_WIDTH,exports['InsertShapeCommand']=InsertShapeCommand,exports[_0x22bf2f(0x19e)]=InsertSheetsShapeMutation,exports[_0x22bf2f(0x172)]=RemoveSheetsShapeMutation,exports[_0x22bf2f(0x205)]=SetShapeDrawingDataCommand,exports['SetSheetsShapeRotateCommand']=SetSheetsShapeRotateCommand,exports[_0x22bf2f(0x1b3)]=SetSheetsShapeTextVerticalToggleCommand,Object[_0x22bf2f(0x1d1)](exports,_0x22bf2f(0x195),{'enumerable':!![],'get':function(){return SheetsShapeService;}}),exports[_0x22bf2f(0x1e5)]=ToggleSheetsShapeFlipCommand,Object[_0x22bf2f(0x1d1)](exports,'UniverSheetsShapePlugin',{'enumerable':!![],'get':function(){return UniverSheetsShapePlugin;}}),exports['UpdateConnectorRelationCommand']=UpdateConnectorRelationCommand,exports[_0x22bf2f(0x192)]=UpdateLineShapeResizeCommand,exports['UpdateSheetsShapeDataMutation']=UpdateSheetsShapeDataMutation,exports['UpdateSheetsShapeTypeCommand']=UpdateSheetsShapeTypeCommand,exports[_0x22bf2f(0x202)]=UpdateSheetsShapeTypeMutation;
|
|
1
|
+
const _0x2c3098=_0x1dca;(function(_0x268f23,_0x4f516c){const _0x459c8e=_0x1dca,_0x1dbdc6=_0x268f23();while(!![]){try{const _0x437ae7=parseInt(_0x459c8e(0x181))/0x1*(parseInt(_0x459c8e(0x1a4))/0x2)+-parseInt(_0x459c8e(0x127))/0x3*(parseInt(_0x459c8e(0x101))/0x4)+parseInt(_0x459c8e(0x1a5))/0x5+-parseInt(_0x459c8e(0x179))/0x6*(parseInt(_0x459c8e(0x132))/0x7)+-parseInt(_0x459c8e(0x153))/0x8+parseInt(_0x459c8e(0x189))/0x9*(parseInt(_0x459c8e(0x138))/0xa)+parseInt(_0x459c8e(0x160))/0xb*(parseInt(_0x459c8e(0x186))/0xc);if(_0x437ae7===_0x4f516c)break;else _0x1dbdc6['push'](_0x1dbdc6['shift']());}catch(_0x28e5bf){_0x1dbdc6['push'](_0x1dbdc6['shift']());}}}(_0x4947,0x8bb63),Object[_0x2c3098(0xf4)](exports,Symbol['toStringTag'],{'value':_0x2c3098(0x191)}));let _univerjs_pro_engine_shape=require('@univerjs-pro/engine-shape'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets=require('@univerjs/sheets'),_univerjs_sheets_drawing=require('@univerjs/sheets-drawing'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_drawing=require('@univerjs/drawing');const DEFAULT_SHAPE_WIDTH=0xc8,DEFAULT_SHAPE_HEIGHT=0xc8;function _typeof(_0x237cd0){'@babel/helpers - typeof';const _0x3906e4=_0x2c3098;return _typeof='function'==typeof Symbol&&_0x3906e4(0x14a)==typeof Symbol[_0x3906e4(0x125)]?function(_0x398848){return typeof _0x398848;}:function(_0x182618){const _0x264c1f=_0x3906e4;return _0x182618&&'function'==typeof Symbol&&_0x182618['constructor']===Symbol&&_0x182618!==Symbol['prototype']?_0x264c1f(0x14a):typeof _0x182618;},_typeof(_0x237cd0);}function toPrimitive(_0x4c8fcc,_0x223503){const _0x46495d=_0x2c3098;if(_0x46495d(0x1bd)!=_typeof(_0x4c8fcc)||!_0x4c8fcc)return _0x4c8fcc;var _0x4d2906=_0x4c8fcc[Symbol[_0x46495d(0x16c)]];if(void 0x0!==_0x4d2906){var _0x2ea2ce=_0x4d2906[_0x46495d(0x194)](_0x4c8fcc,_0x223503||_0x46495d(0x13b));if('object'!=_typeof(_0x2ea2ce))return _0x2ea2ce;throw new TypeError(_0x46495d(0x14e));}return(_0x46495d(0x1aa)===_0x223503?String:Number)(_0x4c8fcc);}function toPropertyKey(_0x1fc676){const _0xb688d9=_0x2c3098;var _0x80c68=toPrimitive(_0x1fc676,_0xb688d9(0x1aa));return _0xb688d9(0x14a)==_typeof(_0x80c68)?_0x80c68:_0x80c68+'';}function _defineProperty(_0x159d74,_0x25c224,_0x13ca1e){return(_0x25c224=toPropertyKey(_0x25c224))in _0x159d74?Object['defineProperty'](_0x159d74,_0x25c224,{'value':_0x13ca1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x159d74[_0x25c224]=_0x13ca1e,_0x159d74;}var SheetShapeModelManager=class extends _univerjs_core[_0x2c3098(0x102)]{constructor(){const _0x1d6b8f=_0x2c3098;super(),_defineProperty(this,_0x1d6b8f(0x112),new Map()),_defineProperty(this,_0x1d6b8f(0x109),new Set()),_defineProperty(this,_0x1d6b8f(0x18e),new Set());}[_0x2c3098(0x18c)](_0x220c70,_0x5e6ad9,_0x244554){const _0x36b46b=_0x2c3098,_0x528a3e=new _univerjs_pro_engine_shape[(_0x36b46b(0x117))](_0x220c70,_0x5e6ad9,_0x244554);this[_0x36b46b(0x112)]['set'](_0x5e6ad9,_0x528a3e);if((0x0,_univerjs_pro_engine_shape[_0x36b46b(0x1b3)])(_0x220c70))this['_linesIds']['add'](_0x5e6ad9);return _0x528a3e;}[_0x2c3098(0x149)](_0x58312c){const _0xae1da8=_0x2c3098,_0x4acf6f=[];for(const _0x29c432 of this['_linesIds']){const _0xac72d6=this['_shapes'][_0xae1da8(0x162)](_0x29c432);if(_0xac72d6){const _0x4f5340=_0xac72d6[_0xae1da8(0x1a2)]();if(_0x4f5340){var _0xa7fae5,_0x1454e9;if(((_0xa7fae5=_0x4f5340['from'])===null||_0xa7fae5===void 0x0?void 0x0:_0xa7fae5['shapeId'])===_0x58312c)_0x4acf6f[_0xae1da8(0x115)]({..._0x4f5340['from'],'lineShapeId':_0x29c432,'isFrom':!![]});if(((_0x1454e9=_0x4f5340['to'])===null||_0x1454e9===void 0x0?void 0x0:_0x1454e9[_0xae1da8(0x143)])===_0x58312c)_0x4acf6f[_0xae1da8(0x115)]({..._0x4f5340['to'],'lineShapeId':_0x29c432,'isFrom':![]});}}}return _0x4acf6f;}[_0x2c3098(0x187)](_0x37ecfd){const _0x55e247=_0x2c3098,_0x40a6ec=this[_0x55e247(0x112)][_0x55e247(0x162)](_0x37ecfd);if(_0x40a6ec)return _0x40a6ec[_0x55e247(0x1a2)]();}['getShapeType'](_0x11e0cd){const _0x4cf979=_0x2c3098,_0x48b9b1=this[_0x4cf979(0x112)][_0x4cf979(0x162)](_0x11e0cd);if(_0x48b9b1)return _0x48b9b1['getShapeType']();}[_0x2c3098(0x140)](_0x59ea70){const _0x4f8164=_0x2c3098;return this[_0x4f8164(0x112)][_0x4f8164(0x1a9)](_0x59ea70);}[_0x2c3098(0x169)](_0x5823f2){const _0x4b718=_0x2c3098,_0x588ed5=this[_0x4b718(0x112)][_0x4b718(0x162)](_0x5823f2);if(!_0x588ed5)return;if((0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x588ed5['getShapeType']()))this[_0x4b718(0x109)][_0x4b718(0x147)](_0x5823f2);this[_0x4b718(0x112)][_0x4b718(0x147)](_0x5823f2);}[_0x2c3098(0x123)](){const _0x4b8843=_0x2c3098,_0xeca6a4=[];return this[_0x4b8843(0x112)]['forEach'](_0x3886e3=>{const _0x7c3b50=_0x4b8843;_0xeca6a4[_0x7c3b50(0x115)](_0x3886e3[_0x7c3b50(0x123)]());}),_0xeca6a4;}[_0x2c3098(0x124)](_0x613061){const _0x52cc5c=_0x2c3098;for(const _0x5f570d of _0x613061){const {id:_0x403e8b,shapeType:_0x14b885}=_0x5f570d,_0x1c3405=this[_0x52cc5c(0x18c)](_0x14b885,_0x403e8b,_0x5f570d[_0x52cc5c(0x184)]);if(_0x1c3405&&_0x1c3405[_0x52cc5c(0x15d)]())this['_linesIds'][_0x52cc5c(0x126)](_0x403e8b);}}[_0x2c3098(0xfe)](){const _0xf89905=_0x2c3098;if(this[_0xf89905(0x165)])return;this[_0xf89905(0x112)][_0xf89905(0x14d)](_0xf41e14=>{const _0x27c9b0=_0xf89905;_0xf41e14[_0x27c9b0(0xfe)]();}),this[_0xf89905(0x112)][_0xf89905(0x158)](),this[_0xf89905(0x109)]['clear'](),this[_0xf89905(0x18e)][_0xf89905(0x158)](),super[_0xf89905(0xfe)]();}};function __decorateParam(_0x5beb04,_0x23231d){return function(_0x1cb6c7,_0x17efa9){_0x23231d(_0x1cb6c7,_0x17efa9,_0x5beb04);};}function __decorate(_0x52de11,_0x147622,_0x377675,_0xbe6ed){const _0x1938f5=_0x2c3098;var _0x1072b0=arguments['length'],_0xdadf7d=_0x1072b0<0x3?_0x147622:_0xbe6ed===null?_0xbe6ed=Object[_0x1938f5(0x107)](_0x147622,_0x377675):_0xbe6ed,_0x5054b8;if(typeof Reflect==='object'&&typeof Reflect[_0x1938f5(0x11f)]===_0x1938f5(0x155))_0xdadf7d=Reflect[_0x1938f5(0x11f)](_0x52de11,_0x147622,_0x377675,_0xbe6ed);else{for(var _0x3b89ce=_0x52de11[_0x1938f5(0x1b5)]-0x1;_0x3b89ce>=0x0;_0x3b89ce--)if(_0x5054b8=_0x52de11[_0x3b89ce])_0xdadf7d=(_0x1072b0<0x3?_0x5054b8(_0xdadf7d):_0x1072b0>0x3?_0x5054b8(_0x147622,_0x377675,_0xdadf7d):_0x5054b8(_0x147622,_0x377675))||_0xdadf7d;}return _0x1072b0>0x3&&_0xdadf7d&&Object[_0x1938f5(0xf4)](_0x147622,_0x377675,_0xdadf7d),_0xdadf7d;}const SHEET_SHAPE_PLUGIN='SHEET_SHAPE_PLUGIN';let SheetsShapeService=class SheetsShapeService extends _univerjs_core[_0x2c3098(0x102)]{constructor(_0x1c1996){const _0x3f131d=_0x2c3098;super(),this[_0x3f131d(0x195)]=_0x1c1996,_defineProperty(this,_0x3f131d(0xfd),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0xea311c,_0x310c06){const _0x14e515=_0x2c3098;let _0x262026=this[_0x14e515(0xfd)][_0x14e515(0x162)](_0xea311c);!_0x262026&&(_0x262026=new Map(),this[_0x14e515(0xfd)][_0x14e515(0x19c)](_0xea311c,_0x262026));let _0xfe83d0=_0x262026[_0x14e515(0x162)](_0x310c06);return!_0xfe83d0&&(_0xfe83d0=new SheetShapeModelManager(),_0x262026['set'](_0x310c06,_0xfe83d0)),_0xfe83d0;}[_0x2c3098(0x134)](_0xc791b0,_0x14f95d,_0x4b1933,_0x5d0d3d,_0x732e90){const _0x50e1f9=_0x2c3098;this['_ensureShapeModelManager'](_0xc791b0,_0x14f95d)[_0x50e1f9(0x18c)](_0x4b1933,_0x5d0d3d,_0x732e90);}[_0x2c3098(0x169)](_0x29e007,_0x59638f,_0x857e7b){this['_ensureShapeModelManager'](_0x29e007,_0x59638f)['removeShape'](_0x857e7b);}[_0x2c3098(0x1a6)](_0x2cd5b5,_0x22fcfe,_0x2d78ad){const _0x149f13=_0x2c3098;return this[_0x149f13(0x159)](_0x2cd5b5,_0x22fcfe)[_0x149f13(0x111)](_0x2d78ad);}[_0x2c3098(0x111)](_0x40a825,_0x307ebc,_0xc37226){const _0x7c3628=_0x2c3098;return this[_0x7c3628(0x159)](_0x40a825,_0x307ebc)[_0x7c3628(0x111)](_0xc37226);}[_0x2c3098(0x140)](_0x103e4b,_0x208e49,_0x53dd0e){const _0x31d64f=_0x2c3098;return this[_0x31d64f(0x159)](_0x103e4b,_0x208e49)[_0x31d64f(0x140)](_0x53dd0e);}[_0x2c3098(0x173)](_0x2ed8df,_0x3c10ca,_0x4efb6e){const _0x231702=_0x2c3098;return this['_ensureShapeModelManager'](_0x2ed8df,_0x3c10ca)[_0x231702(0x111)](_0x4efb6e);}['getShapeDataById'](_0x4a8994,_0x329d6f,_0x588acb){const _0x347518=_0x2c3098,_0x2dcf9d=this[_0x347518(0x159)](_0x4a8994,_0x329d6f);if(!_0x2dcf9d[_0x347518(0x111)](_0x588acb))return;const _0x244304=_0x2dcf9d['_shapes'][_0x347518(0x162)](_0x588acb);if(!_0x244304)return;return _0x244304[_0x347518(0x154)]();}[_0x2c3098(0xfa)](_0x5d154c,_0x348098,_0x2233e1){const _0x3c63e4=_0x2c3098;return this[_0x3c63e4(0x159)](_0x5d154c,_0x348098)[_0x3c63e4(0x112)][_0x3c63e4(0x162)](_0x2233e1);}['getBasicShapeRelation'](_0x5b7c12,_0x216f43,_0x4321f0){const _0x368906=_0x2c3098;return this[_0x368906(0x159)](_0x5b7c12,_0x216f43)[_0x368906(0x149)](_0x4321f0);}[_0x2c3098(0x187)](_0x3bd66f,_0x59ab7f,_0x349fab){const _0xfb6cf5=_0x2c3098,_0x51883c=this[_0xfb6cf5(0x159)](_0x3bd66f,_0x59ab7f)[_0xfb6cf5(0x112)]['get'](_0x349fab);if(!_0x51883c)return;return _0x51883c[_0xfb6cf5(0x1a2)]();}[_0x2c3098(0x1b0)](){}['_serializeShapeForUnit'](_0x2a3088){const _0xc3bf32=_0x2c3098,_0xe812eb={},_0x237822=this[_0xc3bf32(0xfd)][_0xc3bf32(0x162)](_0x2a3088);if(_0x237822)_0x237822[_0xc3bf32(0x14d)]((_0x363efe,_0x9872e9)=>{const _0x180d87=_0xc3bf32,_0x33e43b=_0x363efe[_0x180d87(0x123)]();if(_0x33e43b[_0x180d87(0x1b5)]>0x0)_0xe812eb[_0x9872e9]=_0x33e43b;});return JSON[_0xc3bf32(0x170)](_0xe812eb);}['_deserializeShapeForUnit'](_0x277544,_0x112458){const _0x1c9b56=_0x2c3098;Object[_0x1c9b56(0x157)](_0x112458)['forEach'](_0x19cec0=>{const _0x252afe=_0x1c9b56;this['_ensureShapeModelManager'](_0x277544,_0x19cec0)[_0x252afe(0x124)](_0x112458[_0x19cec0]);});}[_0x2c3098(0x123)](){const _0x38ffbe=_0x2c3098,_0x45ddbd={};return this[_0x38ffbe(0xfd)][_0x38ffbe(0x14d)]((_0x5bdbd4,_0x334a6d)=>{const _0x2bec2e=_0x38ffbe;_0x45ddbd[_0x334a6d]={},_0x5bdbd4[_0x2bec2e(0x14d)]((_0x28790a,_0x4f5b3c)=>{const _0x516f76=_0x2bec2e;_0x45ddbd[_0x334a6d][_0x4f5b3c]=_0x28790a[_0x516f76(0x123)]();});}),_0x45ddbd;}[_0x2c3098(0x124)](_0x1b6d2e){const _0x4c110b=_0x2c3098;Object[_0x4c110b(0x157)](_0x1b6d2e)[_0x4c110b(0x14d)](_0x2f7041=>{const _0x40683f=_0x4c110b,_0x1d4b5c=_0x1b6d2e[_0x2f7041];Object[_0x40683f(0x157)](_0x1d4b5c)[_0x40683f(0x14d)](_0x2f0766=>{const _0x37832d=_0x40683f;this[_0x37832d(0x159)](_0x2f7041,_0x2f0766)[_0x37832d(0x124)](_0x1d4b5c[_0x2f0766]);});});}['_initSnapshot'](){const _0xa42324=_0x2c3098;this[_0xa42324(0x195)][_0xa42324(0x11d)]({'pluginName':SHEET_SHAPE_PLUGIN,'businesses':[_univerjs_core[_0xa42324(0x104)]['UNIVER_SHEET']],'toJson':_0x5e90fc=>this['_serializeShapeForUnit'](_0x5e90fc),'parseJson':_0x34559f=>JSON['parse'](_0x34559f),'onLoad':(_0x240b5d,_0x79cf20)=>{const _0x1fe5db=_0xa42324;this[_0x1fe5db(0x185)](_0x240b5d,_0x79cf20);},'onUnLoad':_0xa1625a=>{const _0x426f99=_0xa42324,_0x3e55d3=this[_0x426f99(0xfd)][_0x426f99(0x162)](_0xa1625a);_0x3e55d3&&(_0x3e55d3[_0x426f99(0x14d)](_0x5a476d=>{const _0x4a79af=_0x426f99;_0x5a476d[_0x4a79af(0xfe)]();}),this['_shapeModelManagerMap'][_0x426f99(0x147)](_0xa1625a));}});}['dispose'](){const _0x4e47ae=_0x2c3098;this['_shapeModelManagerMap'][_0x4e47ae(0x14d)](_0x1ac5ff=>{const _0x569a1b=_0x4e47ae;_0x1ac5ff[_0x569a1b(0x14d)](_0x8a19e9=>{const _0x6ab528=_0x569a1b;_0x8a19e9[_0x6ab528(0xfe)]();});});}};SheetsShapeService=__decorate([__decorateParam(0x0,_univerjs_core['IResourceManagerService'])],SheetsShapeService);function _0x4947(){const _0x1ecc6a=['REMOVE','ShapeModel','pushUndoRedo','getAdjustValueByName','_sheetsShapeService','entries','undos','registerPluginResource','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','decorate','preRedos','removeLinePoints','lineType','toJSON','fromJSON','iterator','add','20709anTjxJ','sheet.command.set-shape-rotate','RemoveSheetsShapeMutation','CommandType','IUndoRedoService','sheet.mutation.remove-shape','SetSheetDrawingCommand','startY','getCellIndexAndOffsetByPosition','UpdateLineShapeResizeCommand','@univerjs-pro/sheets-shape','2086XZqveG','redos','insertShape','getDrawingData','rotation','UniverSheetsShapePlugin','370HjRLYb','UpdateConnectorRelationCommand','data','default','_addLineFollowShapeUpdates','sheet.command.toggle-shape-flip','SheetSkeletonService','startX','hasShape','computeConnectorRouteLayout','IUniverInstanceService','shapeId','sheet.mutation.update-shape-data','height','borderEnabled','delete','InsertSheetDrawingCommand','getBasicShapeRelation','symbol','assign','sheet.command.update-connector-relation','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','lineShapeId','range','SetSheetsShapeTextVerticalToggleCommand','version','5015008dLYYOw','getShapeData','function','top','keys','clear','_ensureShapeModelManager','DEFAULT_SHAPE_WIDTH','UpdateSheetsShapeDataMutation','IDrawingManagerService','isLineShape','cos','params','77uRxMyA','ClearSheetDrawingTransformerOperation','get','_injector','filter','_disposed','generateRandomId','SetShapeDrawingDataCommand','isFrom','removeShape','_initCommands','IConfigService','toPrimitive','result','drawingType','routeConnectorLineShape','stringify','interceptCommand','ICommandService','getShapeTypeById','INSERT','setConfig','UniverLicensePlugin','worldRect','sheets-shape.config','8424lHJqFR','getDrawingByParam','getShapeTextData','DependentOn','_sheetSkeletonService','ToggleSheetsShapeFlipCommand','fill','relation','40133EDRHwC','UPDATE','COMMAND','shapeData','_deserializeShapeForUnit','1566168QkEYvH','getLineShapeRelation','SheetsShapeService','90567RAWcKl','rotateEnabled','resizeEnabled','addShape','InsertSheetsShapeMutation','_groupIds','SheetInterceptorService','left','Module','ensureSkeleton','DEFAULT_SHAPE_HEIGHT','call','_resourcesManagerService','getEndConnectInfo','_config','DRAWING_SHAPE','find','getBatchUpdateOp','disposeWithMe','set','registerCommand','setShapeData','getSkeleton','adjustValues','_drawingManagerService','getShapeRelation','type','28JYrzds','1161185TDgvMR','getBasicShapeType','ang','every','has','string','sheet.command.update-shape-type','SetDrawingApplyMutation','width','sequenceExecute','_configService','setShapeType','DrawingApplyType','getSheetCommandTarget','isConnectorShape','getStartConnectInfo','length','UpdateSheetsShapeTypeCommand','preUndos','UNIVER_SHEET','_sheetInterceptorService','Inject','flipX','_addLineRerouteUpdates','object','defineProperty','sheet.command.insert-shape','_getConnectPointInfo','SHEET_SHAPE_PLUGIN','ISheetDrawingService','InsertShapeCommand','getShapeModel','angle','index','_shapeModelManagerMap','dispose','transform','DrawingTypeEnum','268iVRqxx','Disposable','flipY','UniverInstanceType','pluginName','sheet.mutation.insert-shape','getOwnPropertyDescriptor','MUTATION','_linesIds','transformToAxisAlignPosition','packageName','onStarting','_commandService','getBatchAddOp','transformToDrawingPosition','sheet.command.update-line-shape-resize','getShapeType','_shapes','position','onCommandExecute','push'];_0x4947=function(){return _0x1ecc6a;};return _0x4947();}const InsertSheetsShapeMutation={'id':_0x2c3098(0x106),'type':_univerjs_core[_0x2c3098(0x12a)]['MUTATION'],'handler':(_0x3e7a99,_0x19ba93)=>{const _0x5a53c2=_0x2c3098,{unitId:_0x219dd1,subUnitId:_0x1d0edb,shapeType:_0x25c365,shapeId:_0x32a8b0,shapeData:_0x1cf631}=_0x19ba93;return _0x3e7a99[_0x5a53c2(0x162)](SheetsShapeService)['insertShape'](_0x219dd1,_0x1d0edb,_0x25c365,_0x32a8b0,_0x1cf631),!![];}},RemoveSheetsShapeMutation={'id':_0x2c3098(0x12c),'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x4de2f2,_0x3ce882)=>{const {unitId:_0x193429,subUnitId:_0x67cf33,shapeId:_0x43d0af}=_0x3ce882;return _0x4de2f2['get'](SheetsShapeService)['removeShape'](_0x193429,_0x67cf33,_0x43d0af),!![];}},InsertShapeCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0xf5),'handler':(_0x3913df,_0x5b22d5)=>{const _0x45c591=_0x2c3098;var _0x3cf2a7,_0x1b7e4e;const _0x2dc967=(0x0,_univerjs_sheets[_0x45c591(0x1b2)])(_0x3913df[_0x45c591(0x162)](_univerjs_core[_0x45c591(0x142)]),_0x5b22d5);if(!_0x2dc967)return![];const _0x7c9365=_0x3913df[_0x45c591(0x162)](_univerjs_sheets[_0x45c591(0x13e)]),{unitId:_0x3cd814,subUnitId:_0x8eda44}=_0x2dc967,_0x3ae8c9=_0x7c9365[_0x45c591(0x192)](_0x3cd814,_0x8eda44);if(!_0x3ae8c9)return![];const _0x14d573=_0x3913df['get'](_univerjs_core[_0x45c591(0x172)]),_0x430f08=_0x3913df['get'](_univerjs_core[_0x45c591(0x12b)]),_0x18afc9=_0x3913df['get'](_univerjs_sheets[_0x45c591(0x18f)]),_0x59ad2d=_0x3913df[_0x45c591(0x162)](_univerjs_sheets_drawing[_0x45c591(0xf8)]),{shapeType:_0x1d7d1f,shapeData:_0x53e699}=_0x5b22d5,_0x996d8d=_0x5b22d5[_0x45c591(0x143)]||(0x0,_univerjs_core[_0x45c591(0x166)])(),_0x103ae0={'unitId':_0x3cd814,'subUnitId':_0x8eda44,'shapeId':_0x996d8d,'shapeType':_0x1d7d1f,'shapeData':_0x53e699},_0x1c288e=_0x5b22d5[_0x45c591(0x1ad)]||0xc8,_0x34a229=_0x5b22d5['height']||0xc8;let _0xb83389=0x0,_0x9d4d7d=0x0,_0x4ceda7={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x1a4105={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x5b22d5[_0x45c591(0x113)]){const {x:_0x5ec9fb,y:_0x1f64aa}=_0x5b22d5[_0x45c591(0x113)];_0xb83389=_0x5ec9fb,_0x9d4d7d=_0x1f64aa,_0x4ceda7=_0x3ae8c9['getCellIndexAndOffsetByPosition'](_0x5ec9fb,_0x1f64aa),_0x1a4105=_0x3ae8c9[_0x45c591(0x12f)](_0x5ec9fb+_0x1c288e,_0x1f64aa+_0x34a229);}else{if(_0x5b22d5[_0x45c591(0x150)]){const {startRow:_0x28da70,startColumn:_0x57bb45}=_0x5b22d5[_0x45c591(0x150)],_0x5a389e=0xa,_0x8b410a=0xa;_0x4ceda7={'row':_0x28da70,'rowOffset':_0x5a389e,'column':_0x57bb45,'columnOffset':_0x8b410a};const _0x5dae10=_0x3ae8c9['getCellWithCoordByIndex'](_0x28da70,_0x57bb45);_0xb83389=_0x5dae10[_0x45c591(0x13f)]+_0x8b410a,_0x9d4d7d=_0x5dae10[_0x45c591(0x12e)]+_0x5a389e,_0x1a4105=_0x3ae8c9[_0x45c591(0x12f)](_0xb83389+_0x1c288e,_0x9d4d7d+_0x34a229);}}const _0x4a540f={'from':_0x4ceda7,'to':_0x1a4105},_0x594c4d={'unitId':_0x3cd814,'subUnitId':_0x8eda44,'drawingId':_0x996d8d,'drawingType':_univerjs_core[_0x45c591(0x100)][_0x45c591(0x198)],'sheetTransform':_0x4a540f,'transform':{'left':_0xb83389,'top':_0x9d4d7d,'width':_0x1c288e,'height':_0x34a229},'data':{'shapeType':_0x1d7d1f,'shapeData':_0x53e699},'axisAlignSheetTransform':_0x4a540f,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape['isConnectorShape'])(_0x1d7d1f)&&(_0x594c4d['data'][_0x45c591(0x17f)]=![],_0x594c4d[_0x45c591(0x13a)]['rotateEnabled']=![],_0x594c4d[_0x45c591(0x13a)]['resizeEnabled']=![],_0x594c4d[_0x45c591(0x13a)][_0x45c591(0x146)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x18a)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x18b)]=![],_0x594c4d[_0x45c591(0xff)][_0x45c591(0x146)]=![]);const {undo:_0x25ae57,redo:_0x288a73,objects:_0x2d4d40}=_0x59ad2d[_0x45c591(0x10e)]([_0x594c4d]),_0x4a0df5=_0x18afc9[_0x45c591(0x114)]({'id':_univerjs_sheets_drawing[_0x45c591(0x148)]['id'],'params':{'unitId':_0x3cd814,'drawings':[_0x594c4d]}}),_0x5541b8=[...(_0x3cf2a7=_0x4a0df5[_0x45c591(0x120)])!==null&&_0x3cf2a7!==void 0x0?_0x3cf2a7:[],{'id':_univerjs_sheets_drawing[_0x45c591(0x1ac)]['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'op':_0x288a73,'objects':_0x2d4d40,'type':_univerjs_sheets_drawing[_0x45c591(0x1b1)][_0x45c591(0x174)]}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x3cd814]},..._0x4a0df5[_0x45c591(0x133)],{'id':InsertSheetsShapeMutation['id'],'params':_0x103ae0}],_0x2130e0=[{'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'shapeId':_0x996d8d}},...(_0x1b7e4e=_0x4a0df5[_0x45c591(0x1b7)])!==null&&_0x1b7e4e!==void 0x0?_0x1b7e4e:[],{'id':_univerjs_sheets_drawing[_0x45c591(0x1ac)]['id'],'params':{'unitId':_0x3cd814,'subUnitId':_0x8eda44,'op':_0x25ae57,'objects':_0x2d4d40,'type':_univerjs_sheets_drawing[_0x45c591(0x1b1)][_0x45c591(0x116)]}},{'id':_univerjs_sheets_drawing[_0x45c591(0x161)]['id'],'params':[_0x3cd814]},..._0x4a0df5[_0x45c591(0x11c)]];if((0x0,_univerjs_core[_0x45c591(0x1ae)])(_0x5541b8,_0x14d573)[_0x45c591(0x16d)])return _0x430f08[_0x45c591(0x118)]({'unitID':_0x3cd814,'undoMutations':_0x2130e0,'redoMutations':_0x5541b8}),!![];return![];}},UpdateSheetsShapeDataMutation={'id':_0x2c3098(0x144),'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x4e80fb,_0x5ecc24)=>{const _0x36c208=_0x2c3098,{unitId:_0x3316b6,subUnitId:_0x1563bb,shapeType:_0x314fdf,shapeId:_0x466e66,shapeData:_0xbd375e}=_0x5ecc24,_0x280722=_0x4e80fb[_0x36c208(0x162)](SheetsShapeService)[_0x36c208(0xfa)](_0x3316b6,_0x1563bb,_0x466e66);if(_0x280722){if(_0x314fdf!==void 0x0)_0x280722[_0x36c208(0x1b0)](_0x314fdf);if(_0xbd375e)_0x280722===null||_0x280722===void 0x0||_0x280722['setShapeData'](_0xbd375e,!![]);}return!![];}},SetShapeDrawingDataCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x23fec3,_0x4ac82c)=>{const _0x704fc5=_0x2c3098;var _0x5bb307,_0x5bdc57;const _0x165a33=(0x0,_univerjs_sheets[_0x704fc5(0x1b2)])(_0x23fec3['get'](_univerjs_core[_0x704fc5(0x142)]),_0x4ac82c);if(!_0x165a33)return![];const _0x1a9acd=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x54f8d7,subUnitId:_0x4b7d9e}=_0x165a33,_0x33ee29=_0x1a9acd['ensureSkeleton'](_0x54f8d7,_0x4b7d9e);if(!_0x33ee29)return![];const _0x5613f8=_0x23fec3[_0x704fc5(0x162)](SheetsShapeService),{shapeId:_0x28b13c,shapeType:_0x4f741a,shapeData:_0x364b81,position:_0x3fdbde,width:_0xa8a6e2,height:_0x2f3026}=_0x4ac82c,_0xbcd0e5=_0x5613f8[_0x704fc5(0xfa)](_0x54f8d7,_0x4b7d9e,_0x28b13c);if(!_0xbcd0e5)return![];const _0x399db8=_0x23fec3[_0x704fc5(0x162)](_univerjs_core[_0x704fc5(0x172)]),_0x3948b9=_0x23fec3['get'](_univerjs_core[_0x704fc5(0x12b)]),_0xa0c8f8=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets[_0x704fc5(0x18f)]),_0x24fe74=_0x23fec3[_0x704fc5(0x162)](_univerjs_sheets_drawing[_0x704fc5(0xf8)]),_0x1244d3={'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'shapeId':_0x28b13c,'shapeType':_0x4f741a,'shapeData':_0x364b81},_0x51f3a9=_0xbcd0e5['getShapeType'](),_0x4ecb6b=_0xbcd0e5[_0x704fc5(0x154)](),{x:_0x5b9579,y:_0x2200a8}=_0x3fdbde,_0x21f02a={'from':_0x33ee29[_0x704fc5(0x12f)](_0x5b9579,_0x2200a8),'to':_0x33ee29[_0x704fc5(0x12f)](_0x5b9579+_0xa8a6e2,_0x2200a8+_0x2f3026)},_0x186724={'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'drawingId':_0x28b13c,'drawingType':_univerjs_core[_0x704fc5(0x100)][_0x704fc5(0x198)],'sheetTransform':_0x21f02a,'transform':{'left':_0x5b9579,'top':_0x2200a8,'width':_0xa8a6e2,'height':_0x2f3026},'data':{'shapeType':_0x4f741a,'shapeData':_0x364b81},'axisAlignSheetTransform':_0x21f02a,'allowTransform':!![]};(0x0,_univerjs_pro_engine_shape[_0x704fc5(0x1b3)])(_0x4f741a)&&(_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x17f)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x18a)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x18b)]=![],_0x186724[_0x704fc5(0x13a)][_0x704fc5(0x146)]=![],_0x186724[_0x704fc5(0xff)][_0x704fc5(0x18a)]=![],_0x186724[_0x704fc5(0xff)][_0x704fc5(0x18b)]=![],_0x186724[_0x704fc5(0xff)]['borderEnabled']=![]);const {undo:_0x322fa7,redo:_0x570bf4,objects:_0x55a888}=_0x24fe74['getBatchUpdateOp']([_0x186724]),_0x1a9450=_0xa0c8f8[_0x704fc5(0x114)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x54f8d7,'drawings':[_0x186724]}}),_0x40ff06=[...(_0x5bb307=_0x1a9450['preRedos'])!==null&&_0x5bb307!==void 0x0?_0x5bb307:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'op':_0x570bf4,'objects':_0x55a888,'type':_univerjs_sheets_drawing['DrawingApplyType'][_0x704fc5(0x182)]}},{'id':_univerjs_sheets_drawing[_0x704fc5(0x161)]['id'],'params':[_0x54f8d7]},..._0x1a9450[_0x704fc5(0x133)],{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x1244d3}],_0x1f0d77=[...(_0x5bdc57=_0x1a9450[_0x704fc5(0x1b7)])!==null&&_0x5bdc57!==void 0x0?_0x5bdc57:[],{'id':_univerjs_sheets_drawing[_0x704fc5(0x1ac)]['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'op':_0x322fa7,'objects':_0x55a888,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x704fc5(0x161)]['id'],'params':[_0x54f8d7]},..._0x1a9450[_0x704fc5(0x11c)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x54f8d7,'subUnitId':_0x4b7d9e,'shapeType':_0x51f3a9,'shapeId':_0x28b13c,'shapeData':_0x4ecb6b}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x40ff06,_0x399db8)[_0x704fc5(0x16d)])return _0x3948b9['pushUndoRedo']({'unitID':_0x54f8d7,'undoMutations':_0x1f0d77,'redoMutations':_0x40ff06}),!![];return![];}},ToggleSheetsShapeFlipCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x13d),'handler':(_0x18fc87,_0x2268d9)=>{const _0x3b5c1b=_0x2c3098;var _0x558b41,_0x7ba1aa;const _0x479c3b=(0x0,_univerjs_sheets[_0x3b5c1b(0x1b2)])(_0x18fc87['get'](_univerjs_core[_0x3b5c1b(0x142)]),_0x2268d9);if(!_0x479c3b)return![];const _0x13ed8e=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_sheets[_0x3b5c1b(0x13e)]),{unitId:_0x3d0f4d,subUnitId:_0x49ddbc}=_0x479c3b,_0x5c7b77=_0x13ed8e[_0x3b5c1b(0x19f)](_0x3d0f4d,_0x49ddbc);if(!_0x5c7b77)return![];const _0x2eb382=_0x18fc87['get'](_univerjs_sheets_drawing[_0x3b5c1b(0xf8)]),{shapeId:_0x491d7f,flipH:_0x324aa2,flipV:_0x22f520}=_0x2268d9,_0x340783=_0x2eb382[_0x3b5c1b(0x17a)]({'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'drawingId':_0x491d7f});if(!_0x340783)return![];const _0x52ab24=_0x18fc87[_0x3b5c1b(0x162)](SheetsShapeService)[_0x3b5c1b(0xfa)](_0x3d0f4d,_0x49ddbc,_0x491d7f);if(!_0x52ab24)return![];const _0x43938a=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_core['ICommandService']),_0x1258bc=_0x18fc87['get'](_univerjs_core[_0x3b5c1b(0x12b)]),_0x1ceda8=_0x18fc87[_0x3b5c1b(0x162)](_univerjs_sheets[_0x3b5c1b(0x18f)]),_0x4ec536={..._0x340783[_0x3b5c1b(0xff)]};if(_0x324aa2!==void 0x0)_0x4ec536[_0x3b5c1b(0x1bb)]=!_0x4ec536[_0x3b5c1b(0x1bb)];if(_0x22f520!==void 0x0)_0x4ec536['flipY']=!_0x4ec536[_0x3b5c1b(0x103)];const _0x5ab014=(0x0,_univerjs_sheets_drawing[_0x3b5c1b(0x10f)])(_0x4ec536,_0x5c7b77),_0x1dc46b=(0x0,_univerjs_sheets_drawing[_0x3b5c1b(0x10a)])(_0x4ec536,_0x5c7b77),_0x1f7f7a=_0x52ab24[_0x3b5c1b(0x111)](),_0x471c9d=_0x52ab24[_0x3b5c1b(0x154)](),_0x2f7ef8={'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'drawingId':_0x491d7f,'drawingType':_univerjs_core[_0x3b5c1b(0x100)][_0x3b5c1b(0x198)],'sheetTransform':_0x5ab014,'transform':_0x4ec536,'data':{'shapeType':_0x1f7f7a,'shapeData':_0x471c9d},'axisAlignSheetTransform':_0x1dc46b,'allowTransform':!![]},{undo:_0x201a39,redo:_0x317b1,objects:_0x742360}=_0x2eb382['getBatchUpdateOp']([_0x2f7ef8]),_0x3b87e7=_0x1ceda8[_0x3b5c1b(0x114)]({'id':_univerjs_sheets_drawing[_0x3b5c1b(0x12d)]['id'],'params':{'unitId':_0x3d0f4d,'drawings':[_0x2f7ef8]}}),_0x465881=[...(_0x558b41=_0x3b87e7[_0x3b5c1b(0x120)])!==null&&_0x558b41!==void 0x0?_0x558b41:[],{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x1ac)]['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'op':_0x317b1,'objects':_0x742360,'type':_univerjs_sheets_drawing[_0x3b5c1b(0x1b1)][_0x3b5c1b(0x182)]}},{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x161)]['id'],'params':[_0x3d0f4d]},..._0x3b87e7[_0x3b5c1b(0x133)]],_0x244ae4=[...(_0x7ba1aa=_0x3b87e7['preUndos'])!==null&&_0x7ba1aa!==void 0x0?_0x7ba1aa:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'op':_0x201a39,'objects':_0x742360,'type':_univerjs_sheets_drawing[_0x3b5c1b(0x1b1)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x3b5c1b(0x161)]['id'],'params':[_0x3d0f4d]},..._0x3b87e7[_0x3b5c1b(0x11c)]];if((0x0,_univerjs_pro_engine_shape[_0x3b5c1b(0x1b3)])(_0x1f7f7a)){const _0x166933=_0x52ab24[_0x3b5c1b(0x1a2)]();if(_0x166933){const _0x276b32={..._0x166933};_0x276b32['from']=void 0x0,_0x276b32['to']=void 0x0,_0x465881['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'shapeId':_0x491d7f,'shapeType':_0x1f7f7a,'shapeData':{'relation':_0x276b32}}}),_0x244ae4['push']({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x3d0f4d,'subUnitId':_0x49ddbc,'shapeId':_0x491d7f,'shapeType':_0x1f7f7a,'shapeData':{'relation':_0x166933}}});}}if((0x0,_univerjs_core[_0x3b5c1b(0x1ae)])(_0x465881,_0x43938a)[_0x3b5c1b(0x16d)])return _0x1258bc['pushUndoRedo']({'unitID':_0x3d0f4d,'undoMutations':_0x244ae4,'redoMutations':_0x465881}),!![];return![];}},SetSheetsShapeRotateCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x128),'handler':(_0x5a7a89,_0x94c525)=>{const _0x4da424=_0x2c3098;var _0x205f1e,_0x116ee9;const _0x26d153=(0x0,_univerjs_sheets[_0x4da424(0x1b2)])(_0x5a7a89['get'](_univerjs_core['IUniverInstanceService']),_0x94c525);if(!_0x26d153)return![];const _0x4c8c6d=_0x5a7a89[_0x4da424(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x3da7fd,subUnitId:_0xdcdbbe}=_0x26d153,_0x515a06=_0x4c8c6d['getSkeleton'](_0x3da7fd,_0xdcdbbe);if(!_0x515a06)return![];const _0x18548e=_0x5a7a89['get'](_univerjs_sheets_drawing[_0x4da424(0xf8)]),{shapeId:_0x418aa9,rotate:_0x1753d5}=_0x94c525,_0x1cbdd7=_0x18548e[_0x4da424(0x17a)]({'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'drawingId':_0x418aa9});if(!_0x1cbdd7)return![];const _0xa9618a=_0x5a7a89[_0x4da424(0x162)](SheetsShapeService)['getShapeModel'](_0x3da7fd,_0xdcdbbe,_0x418aa9);if(!_0xa9618a)return![];const _0xa8bd8d=_0x5a7a89[_0x4da424(0x162)](_univerjs_core['ICommandService']),_0x2e6c6d=_0x5a7a89[_0x4da424(0x162)](_univerjs_core['IUndoRedoService']),_0x14bc3f=_0x5a7a89[_0x4da424(0x162)](_univerjs_sheets[_0x4da424(0x18f)]),_0x148046={..._0x1cbdd7[_0x4da424(0xff)]};if(_0x1753d5!==void 0x0)_0x148046[_0x4da424(0xfb)]=(_0x148046[_0x4da424(0xfb)]||0x0)+_0x1753d5;const _0x1ecae2=(0x0,_univerjs_sheets_drawing['transformToDrawingPosition'])(_0x148046,_0x515a06),_0x4705d2=(0x0,_univerjs_sheets_drawing[_0x4da424(0x10a)])(_0x148046,_0x515a06),_0x447682=_0xa9618a[_0x4da424(0x111)](),_0x23ed82=_0xa9618a['getShapeData'](),_0x42a6f9={'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'drawingId':_0x418aa9,'drawingType':_univerjs_core['DrawingTypeEnum']['DRAWING_SHAPE'],'sheetTransform':_0x1ecae2,'transform':_0x148046,'data':{'shapeType':_0x447682,'shapeData':_0x23ed82},'axisAlignSheetTransform':_0x4705d2,'allowTransform':!![]},{undo:_0x29196a,redo:_0x5ee9c9,objects:_0x1b5239}=_0x18548e[_0x4da424(0x19a)]([_0x42a6f9]),_0x331c11=_0x14bc3f[_0x4da424(0x114)]({'id':_univerjs_sheets_drawing[_0x4da424(0x12d)]['id'],'params':{'unitId':_0x3da7fd,'drawings':[_0x42a6f9]}}),_0x437027=[...(_0x205f1e=_0x331c11[_0x4da424(0x120)])!==null&&_0x205f1e!==void 0x0?_0x205f1e:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'op':_0x5ee9c9,'objects':_0x1b5239,'type':_univerjs_sheets_drawing[_0x4da424(0x1b1)][_0x4da424(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4da424(0x161)]['id'],'params':[_0x3da7fd]},..._0x331c11[_0x4da424(0x133)]],_0x31b074=[...(_0x116ee9=_0x331c11['preUndos'])!==null&&_0x116ee9!==void 0x0?_0x116ee9:[],{'id':_univerjs_sheets_drawing[_0x4da424(0x1ac)]['id'],'params':{'unitId':_0x3da7fd,'subUnitId':_0xdcdbbe,'op':_0x29196a,'objects':_0x1b5239,'type':_univerjs_sheets_drawing[_0x4da424(0x1b1)]['UPDATE']}},{'id':_univerjs_sheets_drawing[_0x4da424(0x161)]['id'],'params':[_0x3da7fd]},..._0x331c11[_0x4da424(0x11c)]];if((0x0,_univerjs_core[_0x4da424(0x1ae)])(_0x437027,_0xa8bd8d)[_0x4da424(0x16d)])return _0x2e6c6d[_0x4da424(0x118)]({'unitID':_0x3da7fd,'undoMutations':_0x31b074,'redoMutations':_0x437027}),!![];return![];}},SetSheetsShapeTextVerticalToggleCommand={'type':_univerjs_core[_0x2c3098(0x12a)]['COMMAND'],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x2c43fb,_0x5ba8b5)=>{const _0x7dd3e0=_0x2c3098;var _0x3522f0;const _0xcd7ae=(0x0,_univerjs_sheets[_0x7dd3e0(0x1b2)])(_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core[_0x7dd3e0(0x142)]),_0x5ba8b5);if(!_0xcd7ae)return![];const {unitId:_0xb2bdc7,subUnitId:_0x579a16}=_0xcd7ae,{shapeId:_0x395e35}=_0x5ba8b5,_0x263140=_0x2c43fb['get'](SheetsShapeService)['getShapeModel'](_0xb2bdc7,_0x579a16,_0x395e35);if(!_0x263140)return![];const _0x8eaaed=_0x263140[_0x7dd3e0(0x17b)](),_0x579c6d=(_0x3522f0=_0x8eaaed===null||_0x8eaaed===void 0x0?void 0x0:_0x8eaaed['isHorizontal'])!==null&&_0x3522f0!==void 0x0?_0x3522f0:!![],_0x54f8ac=!_0x579c6d,_0x365eb5=_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core[_0x7dd3e0(0x172)]),_0x12c421=_0x2c43fb[_0x7dd3e0(0x162)](_univerjs_core['IUndoRedoService']),_0x201a54={'unitId':_0xb2bdc7,'subUnitId':_0x579a16,'shapeId':_0x395e35,'shapeData':{'shapeText':{'isHorizontal':_0x54f8ac}}},_0x57e1db={'unitId':_0xb2bdc7,'subUnitId':_0x579a16,'shapeId':_0x395e35,'shapeData':{'shapeText':{'isHorizontal':_0x579c6d}}},_0x5d06db=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x201a54}],_0x2e71d0=[{'id':UpdateSheetsShapeDataMutation['id'],'params':_0x57e1db}];if((0x0,_univerjs_core[_0x7dd3e0(0x1ae)])(_0x5d06db,_0x365eb5)[_0x7dd3e0(0x16d)])return _0x12c421[_0x7dd3e0(0x118)]({'unitID':_0xb2bdc7,'undoMutations':_0x2e71d0,'redoMutations':_0x5d06db}),!![];return![];}},UpdateConnectorRelationCommand={'type':_univerjs_core['CommandType']['COMMAND'],'id':_0x2c3098(0x14c),'handler':(_0x4f7d3e,_0x55a96e)=>{const _0x4e10f2=_0x2c3098;var _0x500789,_0x39ad21,_0x51b0b9,_0x1b0d25;const _0x53bcf9=(0x0,_univerjs_sheets['getSheetCommandTarget'])(_0x4f7d3e['get'](_univerjs_core[_0x4e10f2(0x142)]),_0x55a96e);if(!_0x53bcf9)return![];const _0x292353=_0x4f7d3e[_0x4e10f2(0x162)](_univerjs_sheets[_0x4e10f2(0x13e)]),{unitId:_0x2f26a6,subUnitId:_0x26cba0}=_0x53bcf9,_0x34fc1f=_0x292353[_0x4e10f2(0x19f)](_0x2f26a6,_0x26cba0);if(!_0x34fc1f)return![];const _0x3debb2=_0x4f7d3e['get'](_univerjs_sheets_drawing[_0x4e10f2(0xf8)]),{connectorShapeId:_0x2c559a,width:_0xfaff0d,height:_0x57e81d,left:_0x4bc074,top:_0x66f05a,flipX:_0x1dcb8e,flipY:_0x5b1cb2,rotation:_0x5d0eee,oldAdjustValues:_0x18b153,newAdjustValues:_0x4d2500,oldLineType:_0x351faf,newLineType:_0x96a465,oldRelation:_0x2e265b,newRelation:_0x2ba02a}=_0x55a96e,_0x3be335=_0x3debb2[_0x4e10f2(0x17a)]({'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'drawingId':_0x2c559a});if(!_0x3be335)return![];const _0x95bf8a=_0x4f7d3e[_0x4e10f2(0x162)](SheetsShapeService)[_0x4e10f2(0xfa)](_0x2f26a6,_0x26cba0,_0x2c559a);if(!_0x95bf8a)return![];const _0x4955ef=_0x4f7d3e[_0x4e10f2(0x162)](_univerjs_core[_0x4e10f2(0x172)]),_0x3a498e=_0x4f7d3e['get'](_univerjs_core['IUndoRedoService']),_0x2f4ff4=_0x4f7d3e['get'](_univerjs_sheets[_0x4e10f2(0x18f)]),_0x50f5fd={..._0x3be335[_0x4e10f2(0xff)],'width':_0xfaff0d,'height':_0x57e81d,'left':_0x4bc074,'top':_0x66f05a,'flipX':_0x1dcb8e,'flipY':_0x5b1cb2,'angle':(_0x500789=_0x5d0eee!==null&&_0x5d0eee!==void 0x0?_0x5d0eee:(_0x39ad21=_0x3be335[_0x4e10f2(0xff)])===null||_0x39ad21===void 0x0?void 0x0:_0x39ad21[_0x4e10f2(0xfb)])!==null&&_0x500789!==void 0x0?_0x500789:0x0},_0x178143=(0x0,_univerjs_sheets_drawing[_0x4e10f2(0x10f)])(_0x50f5fd,_0x34fc1f),_0xa44899=(0x0,_univerjs_sheets_drawing[_0x4e10f2(0x10a)])(_0x50f5fd,_0x34fc1f),_0x452493=_0x95bf8a[_0x4e10f2(0x111)](),_0x4250e3=_0x95bf8a[_0x4e10f2(0x154)](),_0x141e2b={'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'drawingId':_0x2c559a,'drawingType':_univerjs_core[_0x4e10f2(0x100)][_0x4e10f2(0x198)],'sheetTransform':_0x178143,'transform':_0x50f5fd,'data':{'shapeType':_0x96a465||_0x351faf||_0x452493,'shapeData':{..._0x4250e3,'adjustValues':_0x4d2500||_0x18b153||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x1a0)]),'relation':_0x2ba02a||_0x2e265b||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x180)])}},'axisAlignSheetTransform':_0xa44899,'allowTransform':!![]},{undo:_0x2d19a0,redo:_0x2cc265,objects:_0x199d0f}=_0x3debb2[_0x4e10f2(0x19a)]([_0x141e2b]),_0x1593d3=_0x2f4ff4['onCommandExecute']({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x2f26a6,'drawings':[_0x141e2b]}}),_0x8ddece=[...(_0x51b0b9=_0x1593d3['preRedos'])!==null&&_0x51b0b9!==void 0x0?_0x51b0b9:[],{'id':_univerjs_sheets_drawing[_0x4e10f2(0x1ac)]['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'op':_0x2cc265,'objects':_0x199d0f,'type':_univerjs_sheets_drawing[_0x4e10f2(0x1b1)][_0x4e10f2(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4e10f2(0x161)]['id'],'params':[_0x2f26a6]},..._0x1593d3[_0x4e10f2(0x133)],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'shapeId':_0x2c559a,'shapeType':_0x96a465,'shapeData':{'adjustValues':_0x4d2500,'relation':_0x2ba02a}}}],_0x252f6d=[...(_0x1b0d25=_0x1593d3['preUndos'])!==null&&_0x1b0d25!==void 0x0?_0x1b0d25:[],{'id':_univerjs_sheets_drawing['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'op':_0x2d19a0,'objects':_0x199d0f,'type':_univerjs_sheets_drawing[_0x4e10f2(0x1b1)][_0x4e10f2(0x182)]}},{'id':_univerjs_sheets_drawing[_0x4e10f2(0x161)]['id'],'params':[_0x2f26a6]},..._0x1593d3['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2f26a6,'subUnitId':_0x26cba0,'shapeId':_0x2c559a,'shapeType':_0x452493,'shapeData':{..._0x4250e3,'adjustValues':_0x18b153||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x1a0)]),'relation':_0x2e265b||(_0x4250e3===null||_0x4250e3===void 0x0?void 0x0:_0x4250e3[_0x4e10f2(0x180)])}}}];if((0x0,_univerjs_core[_0x4e10f2(0x1ae)])(_0x8ddece,_0x4955ef)[_0x4e10f2(0x16d)])return _0x3a498e['pushUndoRedo']({'unitID':_0x2f26a6,'undoMutations':_0x252f6d,'redoMutations':_0x8ddece}),!![];return![];}},UpdateLineShapeResizeCommand={'type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x183)],'id':_0x2c3098(0x110),'handler':(_0x411e01,_0x11eaa1)=>{const _0x270858=_0x2c3098;var _0x3b20b0,_0x5e36ed;const _0x139225=(0x0,_univerjs_sheets[_0x270858(0x1b2)])(_0x411e01['get'](_univerjs_core['IUniverInstanceService']),_0x11eaa1);if(!_0x139225)return![];const _0x2b66f7=_0x411e01[_0x270858(0x162)](_univerjs_sheets['SheetSkeletonService']),{unitId:_0x5eb53a,subUnitId:_0x3c9a98}=_0x139225,_0x177168=_0x2b66f7[_0x270858(0x19f)](_0x5eb53a,_0x3c9a98);if(!_0x177168)return![];const _0x6f0bf1=_0x411e01[_0x270858(0x162)](_univerjs_sheets_drawing[_0x270858(0xf8)]),{shapeId:_0x21bbaf,width:_0x144932,height:_0x3af195,left:_0xff2f83,top:_0x52474d,flipX:_0x5a20da,flipY:_0x865f25,angle:_0x4fcb27,oldAdjustValues:_0x3f7430,newAdjustValues:_0x3a20e2,oldLineType:_0x43c630,newLineType:_0x1679d9}=_0x11eaa1,_0x420218=_0x6f0bf1[_0x270858(0x17a)]({'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'drawingId':_0x21bbaf});if(!_0x420218)return![];const _0x6bf69d=_0x411e01[_0x270858(0x162)](SheetsShapeService)[_0x270858(0xfa)](_0x5eb53a,_0x3c9a98,_0x21bbaf);if(!_0x6bf69d)return![];const _0x1b4465=_0x411e01[_0x270858(0x162)](_univerjs_core[_0x270858(0x172)]),_0x19c9ac=_0x411e01['get'](_univerjs_core[_0x270858(0x12b)]),_0x52da51=_0x411e01['get'](_univerjs_sheets[_0x270858(0x18f)]),_0x19d9be={..._0x420218['transform'],'width':_0x144932,'height':_0x3af195,'left':_0xff2f83,'top':_0x52474d,'flipX':_0x5a20da,'flipY':_0x865f25,'angle':_0x4fcb27},_0x1472f4=(0x0,_univerjs_sheets_drawing[_0x270858(0x10f)])(_0x19d9be,_0x177168),_0x915e27=(0x0,_univerjs_sheets_drawing[_0x270858(0x10a)])(_0x19d9be,_0x177168),_0x567296=_0x6bf69d['getShapeType'](),_0x527778=_0x6bf69d[_0x270858(0x154)](),_0x38f0ea={'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'drawingId':_0x21bbaf,'drawingType':_univerjs_core[_0x270858(0x100)]['DRAWING_SHAPE'],'sheetTransform':_0x1472f4,'transform':_0x19d9be,'data':{'shapeType':_0x1679d9||_0x43c630||_0x567296,'shapeData':{..._0x527778,'adjustValues':_0x3a20e2||_0x3f7430||(_0x527778===null||_0x527778===void 0x0?void 0x0:_0x527778[_0x270858(0x1a0)])}},'axisAlignSheetTransform':_0x915e27,'allowTransform':!![]},{undo:_0x207937,redo:_0x3d74dc,objects:_0x1583ab}=_0x6f0bf1['getBatchUpdateOp']([_0x38f0ea]),_0x4d69f2=_0x52da51[_0x270858(0x114)]({'id':_univerjs_sheets_drawing['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x5eb53a,'drawings':[_0x38f0ea]}}),_0x455b7f=[...(_0x3b20b0=_0x4d69f2[_0x270858(0x120)])!==null&&_0x3b20b0!==void 0x0?_0x3b20b0:[],{'id':_univerjs_sheets_drawing[_0x270858(0x1ac)]['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'op':_0x3d74dc,'objects':_0x1583ab,'type':_univerjs_sheets_drawing['DrawingApplyType']['UPDATE']}},{'id':_univerjs_sheets_drawing['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5eb53a]},..._0x4d69f2['redos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'shapeId':_0x21bbaf,'shapeType':_0x1679d9,'shapeData':{'adjustValues':_0x3a20e2}}}],_0x21eb60=[...(_0x5e36ed=_0x4d69f2[_0x270858(0x1b7)])!==null&&_0x5e36ed!==void 0x0?_0x5e36ed:[],{'id':_univerjs_sheets_drawing[_0x270858(0x1ac)]['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'op':_0x207937,'objects':_0x1583ab,'type':_univerjs_sheets_drawing[_0x270858(0x1b1)][_0x270858(0x182)]}},{'id':_univerjs_sheets_drawing[_0x270858(0x161)]['id'],'params':[_0x5eb53a]},..._0x4d69f2['undos'],{'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x5eb53a,'subUnitId':_0x3c9a98,'shapeId':_0x21bbaf,'shapeType':_0x567296,'shapeData':{..._0x527778,'adjustValues':_0x3f7430||(_0x527778===null||_0x527778===void 0x0?void 0x0:_0x527778[_0x270858(0x1a0)])}}}];if((0x0,_univerjs_core['sequenceExecute'])(_0x455b7f,_0x1b4465)[_0x270858(0x16d)])return _0x19c9ac[_0x270858(0x118)]({'unitID':_0x5eb53a,'undoMutations':_0x21eb60,'redoMutations':_0x455b7f}),!![];return![];}},UpdateSheetsShapeTypeMutation={'id':'sheet.mutation.update-shape-type','type':_univerjs_core[_0x2c3098(0x12a)][_0x2c3098(0x108)],'handler':(_0x2c6ee8,_0x1f689f)=>{const _0x4be658=_0x2c3098,{unitId:_0x1553d6,subUnitId:_0x31cbd0,shapeType:_0x560252,shapeId:_0x8675f6,shapeData:_0x224202}=_0x1f689f,_0x54439b=_0x2c6ee8['get'](SheetsShapeService)[_0x4be658(0xfa)](_0x1553d6,_0x31cbd0,_0x8675f6);if(_0x54439b){_0x54439b[_0x4be658(0x1b0)](_0x560252);if(_0x224202)_0x54439b===null||_0x54439b===void 0x0||_0x54439b[_0x4be658(0x19e)](_0x224202);}return!![];}},UpdateSheetsShapeTypeCommand={'id':_0x2c3098(0x1ab),'type':_univerjs_core['CommandType']['COMMAND'],'handler':(_0x5055de,_0x9f6078)=>{const _0x5e3a81=_0x2c3098;if(!_0x9f6078)return![];const _0x4aac43=_0x5055de[_0x5e3a81(0x162)](_univerjs_core[_0x5e3a81(0x172)]),_0xbce55=_0x5055de[_0x5e3a81(0x162)](SheetsShapeService),_0x49a0a6=_0x5055de[_0x5e3a81(0x162)](_univerjs_core[_0x5e3a81(0x12b)]),_0x40e0a5=[],_0x1f9b1c=[],{unitId:_0x3449da,subUnitId:_0x343888,shapeId:_0x15d7cd,shapeType:_0x70c365,shapeData:_0x5a0e64}=_0x9f6078,_0x49ffa5=_0xbce55[_0x5e3a81(0xfa)](_0x3449da,_0x343888,_0x15d7cd);if(_0x49ffa5){const _0x1ffaf6=_0x49ffa5['getShapeType'](),_0x3a0d56=Object[_0x5e3a81(0x14b)]({},_0x49ffa5[_0x5e3a81(0x154)]()),_0x489fab={'unitId':_0x3449da,'subUnitId':_0x343888,'shapeId':_0x15d7cd,'shapeType':_0x70c365,'shapeData':_0x5a0e64},_0x44c049={'unitId':_0x3449da,'subUnitId':_0x343888,'shapeId':_0x15d7cd,'shapeType':_0x1ffaf6,'shapeData':_0x3a0d56};_0x40e0a5['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x489fab}),_0x1f9b1c['push']({'id':UpdateSheetsShapeTypeMutation['id'],'params':_0x44c049});if(_0x40e0a5[_0x5e3a81(0x1a8)](_0x1c91f4=>_0x4aac43['syncExecuteCommand'](_0x1c91f4['id'],_0x1c91f4[_0x5e3a81(0x15f)])))_0x49a0a6[_0x5e3a81(0x118)]({'unitID':_0x3449da,'redoMutations':[..._0x40e0a5],'undoMutations':[..._0x1f9b1c]});return!![];}return![];}};var name=_0x2c3098(0x131),version='0.22.1';const SHEETS_SHAPE_PLUGIN_CONFIG_KEY=_0x2c3098(0x178),configSymbol=Symbol(SHEETS_SHAPE_PLUGIN_CONFIG_KEY),defaultPluginConfig={};let SheetsShapeController=class SheetsShapeController extends _univerjs_core['Disposable']{constructor(_0x4babb1,_0x3fe68a,_0x42ad40,_0x2df5d2,_0x1239db){const _0x15c355=_0x2c3098;super(),this['_commandService']=_0x4babb1,this[_0x15c355(0x1b9)]=_0x3fe68a,this[_0x15c355(0x17d)]=_0x42ad40,this[_0x15c355(0x11a)]=_0x2df5d2,this[_0x15c355(0x1a1)]=_0x1239db,this[_0x15c355(0x16a)](),this['_initCommandInterceptor']();}[_0x2c3098(0x16a)](){const _0x5cb22f=_0x2c3098;[InsertShapeCommand,SetShapeDrawingDataCommand,ToggleSheetsShapeFlipCommand,SetSheetsShapeRotateCommand,SetSheetsShapeTextVerticalToggleCommand,UpdateConnectorRelationCommand,UpdateLineShapeResizeCommand,InsertSheetsShapeMutation,RemoveSheetsShapeMutation,UpdateSheetsShapeTypeMutation,UpdateSheetsShapeDataMutation][_0x5cb22f(0x14d)](_0x16141e=>this[_0x5cb22f(0x19b)](this['_commandService'][_0x5cb22f(0x19d)](_0x16141e)));}['_initCommandInterceptor'](){const _0x490cd7=_0x2c3098;this[_0x490cd7(0x19b)](this[_0x490cd7(0x1b9)][_0x490cd7(0x171)]({'getMutations':_0xf337e6=>{const _0x58872d=_0x490cd7;if(_0xf337e6['id']===_univerjs_sheets_drawing['RemoveSheetDrawingCommand']['id']){const {drawings:_0x744fd}=_0xf337e6[_0x58872d(0x15f)],_0x5e58c3=_0x744fd['filter'](_0xf0076e=>_0xf0076e['drawingType']===_univerjs_core[_0x58872d(0x100)][_0x58872d(0x198)]);if(_0x5e58c3[_0x58872d(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x28946d=[],_0x444e77=[];return _0x5e58c3[_0x58872d(0x14d)](_0x508c96=>{const _0x2e5240=_0x58872d,{unitId:_0x2cf76b,subUnitId:_0x31b49f,drawingId:_0x347039}=_0x508c96,_0x30e6d4=this[_0x2e5240(0x11a)][_0x2e5240(0xfa)](_0x2cf76b,_0x31b49f,_0x347039);if(!_0x30e6d4)throw new TypeError(_0x2e5240(0x11e)+_0x30e6d4);_0x28946d['push']({'id':RemoveSheetsShapeMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x347039}}),_0x444e77[_0x2e5240(0x115)]({'id':InsertSheetsShapeMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x347039,'shapeType':_0x30e6d4[_0x2e5240(0x111)](),'shapeData':_0x30e6d4[_0x2e5240(0x154)]()}});const _0x5a3b9d=this[_0x2e5240(0x11a)][_0x2e5240(0x149)](_0x2cf76b,_0x31b49f,_0x347039);if(_0x5a3b9d)for(const _0x11974a of _0x5a3b9d){const _0x44ebd6=_0x11974a[_0x2e5240(0x14f)],_0x133a4a=_0x11974a[_0x2e5240(0x168)],_0x23b25c=_0x133a4a?{'from':void 0x0}:{'to':void 0x0},_0x55da6d=_0x133a4a?{'from':{'shapeId':_0x11974a[_0x2e5240(0x143)],'cxnIndex':_0x11974a['cxnIndex']}}:{'to':{'shapeId':_0x11974a[_0x2e5240(0x143)],'cxnIndex':_0x11974a['cxnIndex']}};_0x28946d[_0x2e5240(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x44ebd6,'shapeData':{'relation':_0x23b25c}}}),_0x444e77[_0x2e5240(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x2cf76b,'subUnitId':_0x31b49f,'shapeId':_0x44ebd6,'shapeData':{'relation':_0x55da6d}}});}}),{'preRedos':_0x28946d,'redos':[],'preUndos':[],'undos':_0x444e77};}if(_0xf337e6['id']===_univerjs_sheets_drawing[_0x58872d(0x12d)]['id']){const {drawings:_0x3ce4e4}=_0xf337e6[_0x58872d(0x15f)],_0xa0cb28=_0x3ce4e4[_0x58872d(0x164)](_0x183dbb=>_0x183dbb[_0x58872d(0x16e)]===_univerjs_core[_0x58872d(0x100)]['DRAWING_SHAPE']);if(_0xa0cb28[_0x58872d(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};const _0x48bd7f=[],_0x1d0f06=[];for(const _0x564291 of _0xa0cb28){const {unitId:_0x4279cf,subUnitId:_0x457e8c,drawingId:_0x3baeb3,transform:_0x5cdfc5}=_0x564291;if(!_0x4279cf||!_0x457e8c||!_0x3baeb3||!_0x5cdfc5)continue;const _0x5bc0d9=this[_0x58872d(0x11a)][_0x58872d(0xfa)](_0x4279cf,_0x457e8c,_0x3baeb3);if(!_0x5bc0d9)throw new TypeError(_0x58872d(0x11e)+_0x5bc0d9);if((0x0,_univerjs_pro_engine_shape[_0x58872d(0x1b3)])(_0x5bc0d9[_0x58872d(0x111)]())){const _0x45a164=this[_0x58872d(0x11a)]['getLineShapeRelation'](_0x4279cf,_0x457e8c,_0x3baeb3),_0x2070b1={'from':void 0x0,'to':void 0x0};_0x45a164&&(_0x48bd7f[_0x58872d(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x4279cf,'subUnitId':_0x457e8c,'shapeId':_0x3baeb3,'shapeData':{'relation':_0x2070b1}}}),_0x1d0f06[_0x58872d(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x4279cf,'subUnitId':_0x457e8c,'shapeId':_0x3baeb3,'shapeData':{'relation':_0x45a164}}}));}else{const _0x329671=this['_sheetsShapeService'][_0x58872d(0x149)](_0x4279cf,_0x457e8c,_0x3baeb3);if(_0x329671&&_0x329671[_0x58872d(0x1b5)]>0x0)for(const _0x35fee4 of _0x329671){const _0x3b8230=_0x35fee4[_0x58872d(0x14f)],_0x376a0f=_0x35fee4['isFrom'],_0x386800=this['_sheetsShapeService'][_0x58872d(0xfa)](_0x4279cf,_0x457e8c,_0x3b8230);if(!_0x386800)continue;const _0x267544=_0x386800[_0x58872d(0x1b4)](),_0x10ce4c=_0x386800[_0x58872d(0x196)]();if(_0x267544&&_0x10ce4c)this[_0x58872d(0x1bc)](_0x4279cf,_0x457e8c,_0x3b8230,_0x386800,_0x267544,_0x10ce4c,_0x48bd7f,_0x1d0f06,_0x3baeb3,_0x5cdfc5);else this['_addLineFollowShapeUpdates'](_0x4279cf,_0x457e8c,_0x3b8230,_0x386800,_0x376a0f?_0x267544:_0x10ce4c,_0x376a0f,_0x48bd7f,_0x1d0f06,_0x3baeb3,_0x5cdfc5);}}}return{'preRedos':[],'redos':_0x48bd7f,'preUndos':_0x1d0f06,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x2c3098(0xf6)](_0x208cb4,_0x4916c0,_0x4aef09,_0x5b7669,_0x297d4a){const _0x17b2a9=_0x2c3098;if(!_0x4916c0||!_0x4aef09)return null;const {shapeId:_0x57642b,cxnIndex:_0x32c09b}=_0x208cb4,_0x1f7def=this[_0x17b2a9(0x11a)][_0x17b2a9(0xfa)](_0x4916c0,_0x4aef09,_0x57642b);if(!_0x1f7def)return null;const _0x1871a8=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4916c0,'subUnitId':_0x4aef09,'drawingId':_0x57642b});if(!(_0x1871a8===null||_0x1871a8===void 0x0?void 0x0:_0x1871a8['transform']))return null;let {left:left=0x0,top:top=0x0,width:width=0x0,height:height=0x0,flipX:flipX=![],flipY:flipY=![],angle:_0x1629ff}=_0x1871a8[_0x17b2a9(0xff)];if(_0x297d4a&&_0x5b7669===_0x57642b){var _0x13de63,_0x1c8685,_0x5d73d9,_0x4e732a,_0x50bc2a,_0x3110cf,_0x4d3c05;left=(_0x13de63=_0x297d4a[_0x17b2a9(0x190)])!==null&&_0x13de63!==void 0x0?_0x13de63:left,top=(_0x1c8685=_0x297d4a[_0x17b2a9(0x156)])!==null&&_0x1c8685!==void 0x0?_0x1c8685:top,width=(_0x5d73d9=_0x297d4a[_0x17b2a9(0x1ad)])!==null&&_0x5d73d9!==void 0x0?_0x5d73d9:width,height=(_0x4e732a=_0x297d4a['height'])!==null&&_0x4e732a!==void 0x0?_0x4e732a:height,flipX=(_0x50bc2a=_0x297d4a[_0x17b2a9(0x1bb)])!==null&&_0x50bc2a!==void 0x0?_0x50bc2a:flipX,flipY=(_0x3110cf=_0x297d4a[_0x17b2a9(0x103)])!==null&&_0x3110cf!==void 0x0?_0x3110cf:flipY,_0x1629ff=(_0x4d3c05=_0x297d4a[_0x17b2a9(0xfb)])!==null&&_0x4d3c05!==void 0x0?_0x4d3c05:_0x1629ff;}_0x1f7def['updateContext']({'width':width,'height':height});const _0x5aa436=_0x1f7def['getConnectionSiteList']()[_0x17b2a9(0x199)](_0x251a77=>_0x251a77[_0x17b2a9(0xfc)]===_0x32c09b);if(!_0x5aa436)return null;let _0x41a0ef=flipX?width-_0x5aa436['x']:_0x5aa436['x'],_0x3b7f01=flipY?height-_0x5aa436['y']:_0x5aa436['y'];if(_0x1629ff!==0x0&&_0x1629ff!==void 0x0&&_0x1629ff!==null){const _0x590ad9=_0x1629ff*Math['PI']/0xb4,_0x4fcdb5=Math[_0x17b2a9(0x15e)](_0x590ad9),_0x176420=Math['sin'](_0x590ad9),_0x1190b0=width/0x2,_0x29683d=height/0x2,_0x6f6aa8=_0x41a0ef-_0x1190b0,_0x5203b2=_0x3b7f01-_0x29683d;_0x41a0ef=_0x1190b0+_0x6f6aa8*_0x4fcdb5-_0x5203b2*_0x176420,_0x3b7f01=_0x29683d+_0x6f6aa8*_0x176420+_0x5203b2*_0x4fcdb5;}_0x41a0ef+=left,_0x3b7f01+=top;let _0x4f1a56=_0x5aa436[_0x17b2a9(0x1a7)]/0xea60;if(flipX)_0x4f1a56=0xb4-_0x4f1a56;if(flipY)_0x4f1a56=-_0x4f1a56;_0x4f1a56+=_0x1629ff||0x0,_0x4f1a56=(_0x4f1a56%0x168+0x168)%0x168;const _0x1417f7=(0x0,_univerjs_pro_engine_shape['getBasicShapeRotateBound'])({'left':left,'top':top,'width':width,'height':height},_0x1629ff||0x0);return{'point':{'x':_0x41a0ef,'y':_0x3b7f01},'angle':_0x4f1a56,'bounds':_0x1417f7};}[_0x2c3098(0x1bc)](_0x38384b,_0x490268,_0x208631,_0x1c5824,_0x51457c,_0x324038,_0x242238,_0x174131,_0x2f8bae,_0x499af6){const _0x118bdd=_0x2c3098,_0x5c5e9b=this[_0x118bdd(0x17d)][_0x118bdd(0x19f)](_0x38384b,_0x490268);if(!_0x5c5e9b)return;const _0x5d259e=_0x1c5824['getShapeRelation'](),_0x4687cf=_0x1c5824['getAdjustNames'](),_0x2ad0f9={},_0x3d70fd={};_0x4687cf[_0x118bdd(0x14d)](_0x186201=>{const _0x142cda=_0x118bdd,_0x5b43a5=_0x1c5824[_0x142cda(0x119)](_0x186201);_0x3d70fd[_0x186201]=_0x5b43a5!==null&&_0x5b43a5!==void 0x0?_0x5b43a5:0x0;});const _0x2f51ff=this['_getConnectPointInfo'](_0x51457c,_0x38384b,_0x490268,_0x2f8bae,_0x499af6),_0x950da4=this[_0x118bdd(0xf6)](_0x324038,_0x38384b,_0x490268,_0x2f8bae,_0x499af6);if(_0x2f51ff&&_0x950da4){const _0xaa7333=_0x1c5824[_0x118bdd(0x111)](),_0x31646d=(0x0,_univerjs_pro_engine_shape[_0x118bdd(0x16f)])(_0x2f51ff,_0x950da4,_0xaa7333);let _0x38014f=_0xaa7333;if(_0x31646d){const _0x5ef1e6=(0x0,_univerjs_pro_engine_shape[_0x118bdd(0x141)])(_0x31646d,_0x1c5824[_0x118bdd(0x111)]()),_0xff7540=this['_drawingManagerService'][_0x118bdd(0x135)](_0x38384b,_0x490268);if(_0xff7540&&_0xff7540[_0x208631]){const _0x276764=_0xff7540[_0x208631];_0x38014f=_0x5ef1e6[_0x118bdd(0x122)];for(const [_0x5a56ae,_0x432f7f]of Object[_0x118bdd(0x11b)](_0x5ef1e6[_0x118bdd(0x1a0)]))_0x2ad0f9[_0x5a56ae]=_0x432f7f;const _0xf6d96b={..._0x276764[_0x118bdd(0xff)],'width':_0x5ef1e6['worldRect']['width'],'height':_0x5ef1e6[_0x118bdd(0x177)]['height'],'left':_0x5ef1e6[_0x118bdd(0x177)]['left'],'top':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x156)],'flipX':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x1bb)],'flipY':_0x5ef1e6[_0x118bdd(0x177)][_0x118bdd(0x103)],'angle':_0x5ef1e6[_0x118bdd(0x136)]},_0x1efb20=(0x0,_univerjs_sheets_drawing[_0x118bdd(0x10f)])(_0xf6d96b,_0x5c5e9b),_0x4c75f8=(0x0,_univerjs_sheets_drawing['transformToAxisAlignPosition'])(_0xf6d96b,_0x5c5e9b),_0x51d458={'unitId':_0x38384b,'subUnitId':_0x490268,'drawingType':_univerjs_core[_0x118bdd(0x100)][_0x118bdd(0x198)],'drawingId':_0x208631,'transform':_0xf6d96b,'sheetTransform':_0x1efb20,'axisAlignSheetTransform':_0x4c75f8},{unitId:_0x4a759c,subUnitId:_0x140a0c,undo:_0xbc0549,redo:_0x816eeb,objects:_0x9f19cf}=this[_0x118bdd(0x1a1)][_0x118bdd(0x19a)]([_0x51d458]);_0x242238[_0x118bdd(0x115)]({'id':_univerjs_sheets_drawing[_0x118bdd(0x1ac)]['id'],'params':{'unitId':_0x4a759c,'subUnitId':_0x140a0c,'op':_0x816eeb,'objects':_0x9f19cf,'type':_univerjs_sheets_drawing[_0x118bdd(0x1b1)][_0x118bdd(0x182)]}}),_0x174131[_0x118bdd(0x115)]({'id':_univerjs_sheets_drawing[_0x118bdd(0x1ac)]['id'],'params':{'unitId':_0x4a759c,'subUnitId':_0x140a0c,'op':_0xbc0549,'objects':_0x9f19cf,'type':_univerjs_sheets_drawing[_0x118bdd(0x1b1)][_0x118bdd(0x182)]}});}_0x1c5824[_0x118bdd(0x121)]();}_0x242238[_0x118bdd(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x38384b,'subUnitId':_0x490268,'shapeId':_0x208631,'shapeType':_0x38014f,'shapeData':{'adjustValues':_0x2ad0f9,'relation':_0x5d259e}}}),_0x174131[_0x118bdd(0x115)]({'id':UpdateSheetsShapeDataMutation['id'],'params':{'unitId':_0x38384b,'subUnitId':_0x490268,'shapeId':_0x208631,'shapeType':_0xaa7333,'shapeData':{'adjustValues':_0x3d70fd,'relation':_0x5d259e}}});}}[_0x2c3098(0x13c)](_0x308fa6,_0xaf2cc0,_0x161273,_0x501393,_0x27df0e,_0x4ddf32,_0x3bea8a,_0x177e5d,_0x508f04,_0xaa141){const _0x512091=_0x2c3098;var _0x2d52d2;if(!_0x27df0e)return;const _0x369884=this[_0x512091(0x17d)][_0x512091(0x19f)](_0x308fa6,_0xaf2cc0);if(!_0x369884)return;const _0x48f556=(_0x2d52d2=this[_0x512091(0x1a1)][_0x512091(0x17a)]({'unitId':_0x308fa6,'subUnitId':_0xaf2cc0,'drawingId':_0x508f04}))===null||_0x2d52d2===void 0x0?void 0x0:_0x2d52d2[_0x512091(0xff)];if(!_0x48f556)return;const _0x406872=_0x48f556[_0x512091(0x190)]!==_0xaa141[_0x512091(0x190)]||_0x48f556[_0x512091(0x156)]!==_0xaa141[_0x512091(0x156)],_0x1d1c1f=_0x48f556[_0x512091(0x1ad)]!==_0xaa141[_0x512091(0x1ad)]||_0x48f556[_0x512091(0x145)]!==_0xaa141[_0x512091(0x145)],_0x1a9444=_0x48f556[_0x512091(0x1bb)]!==_0xaa141[_0x512091(0x1bb)]||_0x48f556[_0x512091(0x103)]!==_0xaa141[_0x512091(0x103)],_0x2fc438=_0x48f556[_0x512091(0xfb)]!==_0xaa141[_0x512091(0xfb)];if(_0x406872&&!_0x1d1c1f&&!_0x1a9444&&!_0x2fc438){var _0x573b93,_0x2a24a2,_0x229618,_0x29a1e1;const _0x276b96=((_0x573b93=_0xaa141[_0x512091(0x190)])!==null&&_0x573b93!==void 0x0?_0x573b93:0x0)-((_0x2a24a2=_0x48f556[_0x512091(0x190)])!==null&&_0x2a24a2!==void 0x0?_0x2a24a2:0x0),_0x1d7459=((_0x229618=_0xaa141[_0x512091(0x156)])!==null&&_0x229618!==void 0x0?_0x229618:0x0)-((_0x29a1e1=_0x48f556[_0x512091(0x156)])!==null&&_0x29a1e1!==void 0x0?_0x29a1e1:0x0),_0x1d211c=this['_drawingManagerService'][_0x512091(0x135)](_0x308fa6,_0xaf2cc0);if(_0x1d211c&&_0x1d211c[_0x161273]){var _0x5e3f47,_0x287cb6,_0x3eb034,_0x204fee;const _0x20516b=_0x1d211c[_0x161273],_0x1f3830={..._0x20516b['transform'],'left':((_0x5e3f47=(_0x287cb6=_0x20516b['transform'])===null||_0x287cb6===void 0x0?void 0x0:_0x287cb6[_0x512091(0x190)])!==null&&_0x5e3f47!==void 0x0?_0x5e3f47:0x0)+_0x276b96,'top':((_0x3eb034=(_0x204fee=_0x20516b[_0x512091(0xff)])===null||_0x204fee===void 0x0?void 0x0:_0x204fee[_0x512091(0x156)])!==null&&_0x3eb034!==void 0x0?_0x3eb034:0x0)+_0x1d7459},_0x48ad3f=(0x0,_univerjs_sheets_drawing[_0x512091(0x10f)])(_0x1f3830,_0x369884),_0x3235a3=(0x0,_univerjs_sheets_drawing[_0x512091(0x10a)])(_0x1f3830,_0x369884),_0x2f2724={'unitId':_0x308fa6,'subUnitId':_0xaf2cc0,'drawingType':_univerjs_core[_0x512091(0x100)][_0x512091(0x198)],'drawingId':_0x161273,'transform':_0x1f3830,'sheetTransform':_0x48ad3f,'axisAlignSheetTransform':_0x3235a3},{unitId:_0x2103fc,subUnitId:_0x28e3ca,undo:_0x5c533e,redo:_0x233304,objects:_0x5b37af}=this['_drawingManagerService'][_0x512091(0x19a)]([_0x2f2724]);_0x3bea8a['push']({'id':_univerjs_sheets_drawing[_0x512091(0x1ac)]['id'],'params':{'unitId':_0x2103fc,'subUnitId':_0x28e3ca,'op':_0x233304,'objects':_0x5b37af,'type':_univerjs_sheets_drawing[_0x512091(0x1b1)][_0x512091(0x182)]}}),_0x177e5d[_0x512091(0x115)]({'id':_univerjs_sheets_drawing[_0x512091(0x1ac)]['id'],'params':{'unitId':_0x2103fc,'subUnitId':_0x28e3ca,'op':_0x5c533e,'objects':_0x5b37af,'type':_univerjs_sheets_drawing[_0x512091(0x1b1)][_0x512091(0x182)]}});}}else{const _0x18e5da=_0x501393[_0x512091(0x1b4)](),_0x23fbb1=_0x501393[_0x512091(0x196)]();this['_addLineRerouteUpdates'](_0x308fa6,_0xaf2cc0,_0x161273,_0x501393,_0x18e5da,_0x23fbb1,_0x3bea8a,_0x177e5d,_0x508f04,_0xaa141);}}};function _0x1dca(_0x1c70e8,_0xe3a771){_0x1c70e8=_0x1c70e8-0xf4;const _0x494705=_0x4947();let _0x1dca4f=_0x494705[_0x1c70e8];return _0x1dca4f;}SheetsShapeController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(_univerjs_sheets['SheetInterceptorService'])),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_sheets[_0x2c3098(0x13e)])),__decorateParam(0x3,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(SheetsShapeService)),__decorateParam(0x4,(0x0,_univerjs_core[_0x2c3098(0x1ba)])(_univerjs_drawing[_0x2c3098(0x15c)]))],SheetsShapeController);let UniverSheetsShapePlugin=class UniverSheetsShapePlugin extends _univerjs_core['Plugin']{constructor(_0xfb6b35=defaultPluginConfig,_0x3854b0,_0x1730e9,_0x146b63){const _0x4f4dea=_0x2c3098;super(),this[_0x4f4dea(0x197)]=_0xfb6b35,this[_0x4f4dea(0x163)]=_0x3854b0,this[_0x4f4dea(0x10d)]=_0x1730e9,this[_0x4f4dea(0x1af)]=_0x146b63;const {..._0x55dc87}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x4f4dea(0x197)]);this['_configService'][_0x4f4dea(0x175)](SHEETS_SHAPE_PLUGIN_CONFIG_KEY,_0x55dc87);}[_0x2c3098(0x10c)](){const _0x2f49a4=_0x2c3098,_0x397c63=this[_0x2f49a4(0x163)];[[SheetShapeModelManager],[SheetsShapeService],[SheetsShapeController]]['forEach'](_0xb86c88=>_0x397c63[_0x2f49a4(0x126)](_0xb86c88)),(0x0,_univerjs_core['touchDependencies'])(_0x397c63,[[SheetsShapeService],[SheetsShapeController]]);}};_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x1a3),_univerjs_core[_0x2c3098(0x104)][_0x2c3098(0x1b8)]),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x105),_0x2c3098(0xf7)),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x10b),name),_defineProperty(UniverSheetsShapePlugin,_0x2c3098(0x152),version),UniverSheetsShapePlugin=__decorate([(0x0,_univerjs_core[_0x2c3098(0x17c)])(_univerjs_pro_license[_0x2c3098(0x176)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x2c3098(0x172)]),__decorateParam(0x3,_univerjs_core[_0x2c3098(0x16b)])],UniverSheetsShapePlugin),exports[_0x2c3098(0x193)]=DEFAULT_SHAPE_HEIGHT,exports[_0x2c3098(0x15a)]=DEFAULT_SHAPE_WIDTH,exports[_0x2c3098(0xf9)]=InsertShapeCommand,exports[_0x2c3098(0x18d)]=InsertSheetsShapeMutation,exports[_0x2c3098(0x129)]=RemoveSheetsShapeMutation,exports[_0x2c3098(0x167)]=SetShapeDrawingDataCommand,exports['SetSheetsShapeRotateCommand']=SetSheetsShapeRotateCommand,exports[_0x2c3098(0x151)]=SetSheetsShapeTextVerticalToggleCommand,Object[_0x2c3098(0xf4)](exports,_0x2c3098(0x188),{'enumerable':!![],'get':function(){return SheetsShapeService;}}),exports[_0x2c3098(0x17e)]=ToggleSheetsShapeFlipCommand,Object[_0x2c3098(0xf4)](exports,_0x2c3098(0x137),{'enumerable':!![],'get':function(){return UniverSheetsShapePlugin;}}),exports[_0x2c3098(0x139)]=UpdateConnectorRelationCommand,exports[_0x2c3098(0x130)]=UpdateLineShapeResizeCommand,exports[_0x2c3098(0x15b)]=UpdateSheetsShapeDataMutation,exports[_0x2c3098(0x1b6)]=UpdateSheetsShapeTypeCommand,exports['UpdateSheetsShapeTypeMutation']=UpdateSheetsShapeTypeMutation;
|