@univerjs-pro/sheets-shape 0.25.0 → 0.25.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/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}
1
+ const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1a417c=_0x6126;(function(_0x1af039,_0x59c209){const _0x53dc21=_0x6126,_0x493f5c=_0x1af039();while(!![]){try{const _0x583380=parseInt(_0x53dc21(0x1f3))/0x1*(-parseInt(_0x53dc21(0x24f))/0x2)+-parseInt(_0x53dc21(0x1e7))/0x3*(parseInt(_0x53dc21(0x20b))/0x4)+parseInt(_0x53dc21(0x264))/0x5*(-parseInt(_0x53dc21(0x1df))/0x6)+-parseInt(_0x53dc21(0x20d))/0x7+parseInt(_0x53dc21(0x24c))/0x8*(-parseInt(_0x53dc21(0x267))/0x9)+parseInt(_0x53dc21(0x1e6))/0xa+-parseInt(_0x53dc21(0x208))/0xb*(-parseInt(_0x53dc21(0x216))/0xc);if(_0x583380===_0x59c209)break;else _0x493f5c['push'](_0x493f5c['shift']());}catch(_0x390e0c){_0x493f5c['push'](_0x493f5c['shift']());}}}(_0x20c3,0x5cae0));import{ShapeModel as _0x35c2ea,computeConnectorRouteLayout as _0x4d5188,getBasicShapeRotateBound as _0x4dd2cd,isConnectorShape as _0x33d47c,routeConnectorLineShape as _0x29d7a4}from'@univerjs-pro/engine-shape';import{CommandType as _0x5229c7,DependentOn as _0x4c451e,Disposable as _0x4e5f9f,DrawingTypeEnum as _0x5d2b71,ICommandService as _0x285fd2,IConfigService as _0x3c3bf5,IResourceManagerService as _0x5cf65e,IUndoRedoService as _0x2b286c,IUniverInstanceService as _0x32f2cd,Inject as _0xca6a11,Injector as _0x4e72d8,Plugin as _0x2582f4,UniverInstanceType as _0x26716f,generateRandomId as _0x26ccda,merge as _0x3c605c,sequenceExecute as _0x3ffddd,touchDependencies as _0x5c294e}from'@univerjs/core';import{SheetInterceptorService as _0x19401e,SheetSkeletonService as _0x55630f,getSheetCommandTarget as _0x4e7fb4}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0xeb678b,DrawingApplyType as _0x5af201,ISheetDrawingService as _0x3339be,InsertSheetDrawingCommand as _0x1696e3,RemoveSheetDrawingCommand as _0x56569e,SetDrawingApplyMutation as _0x2ae4cd,SetSheetDrawingCommand as _0x28e6ad,transformToAxisAlignPosition as _0x64f7c2,transformToDrawingPosition as _0x5aa0b0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x3785ee}from'@univerjs-pro/license';import{IDrawingManagerService as _0x525c29}from'@univerjs/drawing';const I=0xc8,L=0xc8;function _0x20c3(){const _0x59e26b=['drawingType','_configService','filter','removeLinePoints','flipX','212442IlXkNc','COMMAND','getShapeTypeById','getShapeData','get','_getConnectPointInfo','UPDATE','3057090SWRZXr','3dVGcCs','from','getCellWithCoordByIndex','set','length','cxnIndex','setShapeData','lineShapeId','setShapeType','interceptCommand','shapeData','isLineShape','326342pCcrEg','ensureSkeleton','delete','_resourcesManagerService','sheet.mutation.update-shape-data','left','sheet.mutation.update-shape-type','pushUndoRedo','getShapeModel','undos','has','decorate','adjustValues','_shapes','fill','preRedos','function','getDrawingByParam','_drawingManagerService','rotation','sheet.command.set-shape-drawing-data','21086725EDQeKT','_addLineFollowShapeUpdates','registerPluginResource','2628968iLlTjf','result','1771728cZeLpR','onStarting','defineProperty','getBasicShapeRelation','borderEnabled','top','SHEET_SHAPE_PLUGIN','sheet.command.update-shape-type','_initCommands','12yqPwoF','_linesIds','assign','syncExecuteCommand','_groupIds','flipY','shapeId','string','sin','getShapeType','@univerjs-pro/sheets-shape','UNIVER_SHEET','getShapeRelation','clear','sheet.command.update-connector-relation','height','sheet.command.update-line-shape-resize','forEach','data','rotateEnabled','getDrawingData','onCommandExecute','isFrom','resizeEnabled','default','getCellIndexAndOffsetByPosition','_disposed','MUTATION','getSkeleton','disposeWithMe','sheet.mutation.insert-shape','_sheetsShapeService','getStartConnectInfo','_sheetSkeletonService','REMOVE','_commandService','getLineShapeRelation','redos','params','INSERT','find','pluginName','_sheetInterceptorService','ang','preUndos','_initCommandInterceptor','_injector','removeShape','toJSON','dispose','packageName','lineType','angle','sheet.command.set-shape-rotate','8LxudKx','_deserializeShapeForUnit','worldRect','2ggRwEG','getConnectionSiteList','DRAWING_SHAPE','startX','_ensureShapeModelManager','range','getBatchUpdateOp','addShape','getEndConnectInfo','type','toPrimitive','position','getAdjustValueByName','fromJSON','add','insertShape','isHorizontal','prototype','_addLineRerouteUpdates','symbol','getAdjustNames','5hpcMcw','_shapeModelManagerMap','push','5138757bbUSbw','relation','iterator','setConfig','object','startY','hasShape','constructor','width','transform','keys','_config','getShapeTextData','sheet.command.set-shape-text-vertical-toggle'];_0x20c3=function(){return _0x59e26b;};return _0x20c3();}function R(_0x88740d){'@babel/helpers - typeof';const _0x3734b3=_0x6126;return R=typeof Symbol==_0x3734b3(0x203)&&typeof Symbol[_0x3734b3(0x269)]==_0x3734b3(0x262)?function(_0x57e190){return typeof _0x57e190;}:function(_0x1f6fc8){const _0xe52e73=_0x3734b3;return _0x1f6fc8&&typeof Symbol==_0xe52e73(0x203)&&_0x1f6fc8[_0xe52e73(0x26e)]===Symbol&&_0x1f6fc8!==Symbol[_0xe52e73(0x260)]?_0xe52e73(0x262):typeof _0x1f6fc8;},R(_0x88740d);}function z(_0x5eee0e,_0x599c1a){const _0x999ee4=_0x6126;if(R(_0x5eee0e)!=_0x999ee4(0x26b)||!_0x5eee0e)return _0x5eee0e;var _0x2762e5=_0x5eee0e[Symbol[_0x999ee4(0x259)]];if(_0x2762e5!==void 0x0){var _0x26255e=_0x2762e5['call'](_0x5eee0e,_0x599c1a||_0x999ee4(0x22e));if(R(_0x26255e)!='object')return _0x26255e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x599c1a===_0x999ee4(0x21d)?String:Number)(_0x5eee0e);}function B(_0x59eab9){const _0x301ba2=_0x6126;var _0x1df4eb=z(_0x59eab9,_0x301ba2(0x21d));return R(_0x1df4eb)=='symbol'?_0x1df4eb:_0x1df4eb+'';}function V(_0x30c52f,_0x402147,_0x2887f6){const _0x3c4aaf=_0x6126;return(_0x402147=B(_0x402147))in _0x30c52f?Object[_0x3c4aaf(0x20f)](_0x30c52f,_0x402147,{'value':_0x2887f6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x30c52f[_0x402147]=_0x2887f6,_0x30c52f;}var H=class extends _0x4e5f9f{constructor(){const _0x34700f=_0x6126;super(),V(this,_0x34700f(0x200),new Map()),V(this,_0x34700f(0x217),new Set()),V(this,'_groupIds',new Set());}[_0x1a417c(0x256)](_0x1076ac,_0x136093,_0x443021){const _0x103611=_0x1a417c;let _0x1b0e48=new _0x35c2ea(_0x1076ac,_0x136093,_0x443021);return this[_0x103611(0x200)]['set'](_0x136093,_0x1b0e48),_0x33d47c(_0x1076ac)&&this[_0x103611(0x217)][_0x103611(0x25d)](_0x136093),_0x1b0e48;}[_0x1a417c(0x210)](_0x5af173){const _0x1971ed=_0x1a417c;let _0x4f0144=[];for(let _0x169008 of this[_0x1971ed(0x217)]){let _0x5103b9=this['_shapes'][_0x1971ed(0x1e3)](_0x169008);if(_0x5103b9){let _0x521976=_0x5103b9[_0x1971ed(0x222)]();if(_0x521976){var _0x1ff969,_0x30d652;((_0x1ff969=_0x521976[_0x1971ed(0x1e8)])==null?void 0x0:_0x1ff969[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976[_0x1971ed(0x1e8)],'lineShapeId':_0x169008,'isFrom':!0x0}),((_0x30d652=_0x521976['to'])==null?void 0x0:_0x30d652[_0x1971ed(0x21c)])===_0x5af173&&_0x4f0144[_0x1971ed(0x266)]({..._0x521976['to'],'lineShapeId':_0x169008,'isFrom':!0x1});}}}return _0x4f0144;}[_0x1a417c(0x23a)](_0x1a0607){const _0x157313=_0x1a417c;let _0x1bda51=this[_0x157313(0x200)]['get'](_0x1a0607);if(_0x1bda51)return _0x1bda51[_0x157313(0x222)]();}[_0x1a417c(0x21f)](_0x2f30c3){const _0x17ba17=_0x1a417c;let _0x491e1f=this[_0x17ba17(0x200)]['get'](_0x2f30c3);if(_0x491e1f)return _0x491e1f[_0x17ba17(0x21f)]();}['hasShape'](_0x37bbd6){const _0x512c10=_0x1a417c;return this[_0x512c10(0x200)][_0x512c10(0x1fd)](_0x37bbd6);}[_0x1a417c(0x245)](_0x32c936){const _0x3841f5=_0x1a417c;let _0x34052c=this[_0x3841f5(0x200)]['get'](_0x32c936);_0x34052c&&(_0x33d47c(_0x34052c[_0x3841f5(0x21f)]())&&this[_0x3841f5(0x217)]['delete'](_0x32c936),this[_0x3841f5(0x200)][_0x3841f5(0x1f5)](_0x32c936));}['toJSON'](){const _0x20eb57=_0x1a417c;let _0x1d234d=[];return this['_shapes'][_0x20eb57(0x227)](_0x270762=>{_0x1d234d['push'](_0x270762['toJSON']());}),_0x1d234d;}[_0x1a417c(0x25c)](_0x31e6c6){const _0x55cae0=_0x1a417c;for(let _0x49fdd1 of _0x31e6c6){let {id:_0x3fe395,shapeType:_0x515ccf}=_0x49fdd1,_0x342c36=this[_0x55cae0(0x256)](_0x515ccf,_0x3fe395,_0x49fdd1[_0x55cae0(0x1f1)]);_0x342c36&&_0x342c36[_0x55cae0(0x1f2)]()&&this[_0x55cae0(0x217)][_0x55cae0(0x25d)](_0x3fe395);}}[_0x1a417c(0x247)](){const _0x22f7fd=_0x1a417c;this[_0x22f7fd(0x230)]||(this[_0x22f7fd(0x200)][_0x22f7fd(0x227)](_0x4f57aa=>{const _0xbc8bd0=_0x22f7fd;_0x4f57aa[_0xbc8bd0(0x247)]();}),this['_shapes']['clear'](),this['_linesIds'][_0x22f7fd(0x223)](),this[_0x22f7fd(0x21a)][_0x22f7fd(0x223)](),super[_0x22f7fd(0x247)]());}};function U(_0x22c5b4,_0x1325e1){return function(_0x2e5034,_0xf56a6a){_0x1325e1(_0x2e5034,_0xf56a6a,_0x22c5b4);};}function W(_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50){const _0x17c0db=_0x1a417c;var _0x3594ee=arguments[_0x17c0db(0x1eb)],_0x283dc0=_0x3594ee<0x3?_0x32c429:_0x3f9c50===null?_0x3f9c50=Object['getOwnPropertyDescriptor'](_0x32c429,_0x439ed9):_0x3f9c50,_0x4c65de;if(typeof Reflect==_0x17c0db(0x26b)&&typeof Reflect[_0x17c0db(0x1fe)]==_0x17c0db(0x203))_0x283dc0=Reflect[_0x17c0db(0x1fe)](_0xc6bf37,_0x32c429,_0x439ed9,_0x3f9c50);else{for(var _0x492eee=_0xc6bf37[_0x17c0db(0x1eb)]-0x1;_0x492eee>=0x0;_0x492eee--)(_0x4c65de=_0xc6bf37[_0x492eee])&&(_0x283dc0=(_0x3594ee<0x3?_0x4c65de(_0x283dc0):_0x3594ee>0x3?_0x4c65de(_0x32c429,_0x439ed9,_0x283dc0):_0x4c65de(_0x32c429,_0x439ed9))||_0x283dc0);}return _0x3594ee>0x3&&_0x283dc0&&Object[_0x17c0db(0x20f)](_0x32c429,_0x439ed9,_0x283dc0),_0x283dc0;}let G=class extends _0x4e5f9f{constructor(_0x36bf1f){const _0x102ff2=_0x1a417c;super(),this['_resourcesManagerService']=_0x36bf1f,V(this,_0x102ff2(0x265),new Map()),this['_initSnapshot']();}[_0x1a417c(0x253)](_0x3b87dd,_0x2cd931){const _0x1f162a=_0x1a417c;let _0x38f176=this[_0x1f162a(0x265)][_0x1f162a(0x1e3)](_0x3b87dd);_0x38f176||(_0x38f176=new Map(),this[_0x1f162a(0x265)][_0x1f162a(0x1ea)](_0x3b87dd,_0x38f176));let _0x396231=_0x38f176[_0x1f162a(0x1e3)](_0x2cd931);return _0x396231||(_0x396231=new H(),_0x38f176['set'](_0x2cd931,_0x396231)),_0x396231;}['insertShape'](_0x5f31db,_0x4a69a0,_0x18d581,_0x1b7570,_0x34394a){const _0x5a93ce=_0x1a417c;this[_0x5a93ce(0x253)](_0x5f31db,_0x4a69a0)[_0x5a93ce(0x256)](_0x18d581,_0x1b7570,_0x34394a);}[_0x1a417c(0x245)](_0x1b660b,_0x2e6b8e,_0x2d2cc3){const _0x4b7c20=_0x1a417c;this['_ensureShapeModelManager'](_0x1b660b,_0x2e6b8e)[_0x4b7c20(0x245)](_0x2d2cc3);}['getBasicShapeType'](_0x307af0,_0x2e96c6,_0xa8e032){const _0x4b8075=_0x1a417c;return this[_0x4b8075(0x253)](_0x307af0,_0x2e96c6)[_0x4b8075(0x21f)](_0xa8e032);}[_0x1a417c(0x21f)](_0x4624df,_0x3976fe,_0x339567){const _0x1cd31e=_0x1a417c;return this[_0x1cd31e(0x253)](_0x4624df,_0x3976fe)['getShapeType'](_0x339567);}[_0x1a417c(0x26d)](_0x46196d,_0x54161b,_0x9a316){const _0x21f226=_0x1a417c;return this['_ensureShapeModelManager'](_0x46196d,_0x54161b)[_0x21f226(0x26d)](_0x9a316);}[_0x1a417c(0x1e1)](_0x349bb6,_0x10dd3c,_0x37a502){const _0x4b5772=_0x1a417c;return this['_ensureShapeModelManager'](_0x349bb6,_0x10dd3c)[_0x4b5772(0x21f)](_0x37a502);}['getShapeDataById'](_0x2e461f,_0x4af949,_0x34af3e){const _0x142a5e=_0x1a417c;let _0x2ca2b5=this[_0x142a5e(0x253)](_0x2e461f,_0x4af949);if(!_0x2ca2b5[_0x142a5e(0x21f)](_0x34af3e))return;let _0x2b65a3=_0x2ca2b5[_0x142a5e(0x200)]['get'](_0x34af3e);if(_0x2b65a3)return _0x2b65a3[_0x142a5e(0x1e2)]();}[_0x1a417c(0x1fb)](_0x2a0098,_0x5a7d89,_0x4b4d23){const _0x58eb2c=_0x1a417c;return this[_0x58eb2c(0x253)](_0x2a0098,_0x5a7d89)[_0x58eb2c(0x200)][_0x58eb2c(0x1e3)](_0x4b4d23);}[_0x1a417c(0x210)](_0x1714fd,_0x2e3659,_0x3d7a97){const _0x413f9c=_0x1a417c;return this[_0x413f9c(0x253)](_0x1714fd,_0x2e3659)[_0x413f9c(0x210)](_0x3d7a97);}[_0x1a417c(0x23a)](_0x3812e9,_0x58b3b7,_0x557e6f){const _0x58bdd8=_0x1a417c;let _0x10ef65=this[_0x58bdd8(0x253)](_0x3812e9,_0x58b3b7)['_shapes'][_0x58bdd8(0x1e3)](_0x557e6f);if(_0x10ef65)return _0x10ef65['getShapeRelation']();}[_0x1a417c(0x1ef)](){}['_serializeShapeForUnit'](_0x2a0afb){const _0x2e7ce9=_0x1a417c;let _0x5e4d69={},_0x471aee=this['_shapeModelManagerMap'][_0x2e7ce9(0x1e3)](_0x2a0afb);return _0x471aee&&_0x471aee['forEach']((_0xa44e1a,_0x3e7208)=>{const _0x4b91ab=_0x2e7ce9;let _0x397582=_0xa44e1a['toJSON']();_0x397582[_0x4b91ab(0x1eb)]>0x0&&(_0x5e4d69[_0x3e7208]=_0x397582);}),JSON['stringify'](_0x5e4d69);}[_0x1a417c(0x24d)](_0x3c6889,_0x120a42){const _0x464d68=_0x1a417c;Object[_0x464d68(0x271)](_0x120a42)['forEach'](_0x2a7e4c=>{const _0x31eae3=_0x464d68;this[_0x31eae3(0x253)](_0x3c6889,_0x2a7e4c)[_0x31eae3(0x25c)](_0x120a42[_0x2a7e4c]);});}[_0x1a417c(0x246)](){const _0x162a4f=_0x1a417c;let _0x46316d={};return this[_0x162a4f(0x265)][_0x162a4f(0x227)]((_0x680fe9,_0xf683d8)=>{const _0x58c4e5=_0x162a4f;_0x46316d[_0xf683d8]={},_0x680fe9[_0x58c4e5(0x227)]((_0x51c3fb,_0x2311e7)=>{const _0x5420f8=_0x58c4e5;_0x46316d[_0xf683d8][_0x2311e7]=_0x51c3fb[_0x5420f8(0x246)]();});}),_0x46316d;}[_0x1a417c(0x25c)](_0x263172){const _0x1f9c14=_0x1a417c;Object[_0x1f9c14(0x271)](_0x263172)['forEach'](_0x42fcbb=>{const _0x3bb30b=_0x1f9c14;let _0x48077c=_0x263172[_0x42fcbb];Object[_0x3bb30b(0x271)](_0x48077c)['forEach'](_0x14675e=>{const _0x16a2ac=_0x3bb30b;this['_ensureShapeModelManager'](_0x42fcbb,_0x14675e)[_0x16a2ac(0x25c)](_0x48077c[_0x14675e]);});});}['_initSnapshot'](){const _0x4c01be=_0x1a417c;this[_0x4c01be(0x1f6)][_0x4c01be(0x20a)]({'pluginName':_0x4c01be(0x213),'businesses':[_0x26716f[_0x4c01be(0x221)]],'toJson':_0x1876f0=>this['_serializeShapeForUnit'](_0x1876f0),'parseJson':_0x302c48=>JSON['parse'](_0x302c48),'onLoad':(_0x1dcd75,_0x343f5c)=>{const _0x5b4390=_0x4c01be;this[_0x5b4390(0x24d)](_0x1dcd75,_0x343f5c);},'onUnLoad':_0x56099f=>{const _0x2e3ddb=_0x4c01be;let _0x15b681=this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1e3)](_0x56099f);_0x15b681&&(_0x15b681[_0x2e3ddb(0x227)](_0xd40976=>{_0xd40976['dispose']();}),this[_0x2e3ddb(0x265)][_0x2e3ddb(0x1f5)](_0x56099f));}});}[_0x1a417c(0x247)](){const _0x43ca59=_0x1a417c;this[_0x43ca59(0x265)][_0x43ca59(0x227)](_0x2b4128=>{const _0x543e1e=_0x43ca59;_0x2b4128[_0x543e1e(0x227)](_0x2b4c35=>{const _0x34dd98=_0x543e1e;_0x2b4c35[_0x34dd98(0x247)]();});});}};G=W([U(0x0,_0x5cf65e)],G);const K={'id':_0x1a417c(0x234),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x304eaf,_0x4c2700)=>{const _0xc298f7=_0x1a417c;let {unitId:_0xf68612,subUnitId:_0x1c654c,shapeType:_0x3f57a3,shapeId:_0xdd5791,shapeData:_0xdfdb0e}=_0x4c2700;return _0x304eaf['get'](G)[_0xc298f7(0x25e)](_0xf68612,_0x1c654c,_0x3f57a3,_0xdd5791,_0xdfdb0e),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xe11b2d,_0x54f305)=>{const _0x276549=_0x1a417c;let {unitId:_0x19d9e1,subUnitId:_0x2aeca6,shapeId:_0x245937}=_0x54f305;return _0xe11b2d[_0x276549(0x1e3)](G)['removeShape'](_0x19d9e1,_0x2aeca6,_0x245937),!0x0;}},J={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.insert-shape','handler':(_0x2ba2fc,_0x31f9ca)=>{const _0x4fa7b5=_0x1a417c;var _0x38314d,_0x47bae3;let _0xdb837a=_0x4e7fb4(_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x32f2cd),_0x31f9ca);if(!_0xdb837a)return!0x1;let _0x1e8385=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x55630f),{unitId:_0x80cbc6,subUnitId:_0x416819}=_0xdb837a,_0xfb05ce=_0x1e8385[_0x4fa7b5(0x1f4)](_0x80cbc6,_0x416819);if(!_0xfb05ce)return!0x1;let _0x54d16b=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x285fd2),_0x43f14f=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x2b286c),_0x27ddad=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x19401e),_0x216816=_0x2ba2fc[_0x4fa7b5(0x1e3)](_0x3339be),{shapeType:_0x5a1df7,shapeData:_0x30eb61}=_0x31f9ca,_0xa9a114=_0x31f9ca[_0x4fa7b5(0x21c)]||_0x26ccda(),_0x3b571e={'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114,'shapeType':_0x5a1df7,'shapeData':_0x30eb61},_0x17ac8d=_0x31f9ca['width']||0xc8,_0x102a2f=_0x31f9ca[_0x4fa7b5(0x225)]||0xc8,_0x41c408=0x0,_0x1a12fe=0x0,_0x12d03b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c6648={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x31f9ca[_0x4fa7b5(0x25a)]){let {x:_0xdbc707,y:_0x4d8dc8}=_0x31f9ca[_0x4fa7b5(0x25a)];_0x41c408=_0xdbc707,_0x1a12fe=_0x4d8dc8,_0x12d03b=_0xfb05ce[_0x4fa7b5(0x22f)](_0xdbc707,_0x4d8dc8),_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0xdbc707+_0x17ac8d,_0x4d8dc8+_0x102a2f);}else{if(_0x31f9ca[_0x4fa7b5(0x254)]){let {startRow:_0x1e8f11,startColumn:_0x3d5757}=_0x31f9ca[_0x4fa7b5(0x254)];_0x12d03b={'row':_0x1e8f11,'rowOffset':0xa,'column':_0x3d5757,'columnOffset':0xa};let _0xf5a39c=_0xfb05ce[_0x4fa7b5(0x1e9)](_0x1e8f11,_0x3d5757);_0x41c408=_0xf5a39c[_0x4fa7b5(0x252)]+0xa,_0x1a12fe=_0xf5a39c[_0x4fa7b5(0x26c)]+0xa,_0x5c6648=_0xfb05ce['getCellIndexAndOffsetByPosition'](_0x41c408+_0x17ac8d,_0x1a12fe+_0x102a2f);}}let _0xc32fa0={'from':_0x12d03b,'to':_0x5c6648},_0x3bc7cc={'unitId':_0x80cbc6,'subUnitId':_0x416819,'drawingId':_0xa9a114,'drawingType':_0x5d2b71[_0x4fa7b5(0x251)],'sheetTransform':_0xc32fa0,'transform':{'left':_0x41c408,'top':_0x1a12fe,'width':_0x17ac8d,'height':_0x102a2f},'data':{'shapeType':_0x5a1df7,'shapeData':_0x30eb61},'axisAlignSheetTransform':_0xc32fa0,'allowTransform':!0x0};_0x33d47c(_0x5a1df7)&&(_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x201)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x228)][_0x4fa7b5(0x211)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x229)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x22d)]=!0x1,_0x3bc7cc[_0x4fa7b5(0x270)][_0x4fa7b5(0x211)]=!0x1);let {undo:_0x1217fe,redo:_0x432c15,objects:_0x1ceee0}=_0x216816['getBatchAddOp']([_0x3bc7cc]),_0x5c6787=_0x27ddad[_0x4fa7b5(0x22b)]({'id':_0x1696e3['id'],'params':{'unitId':_0x80cbc6,'drawings':[_0x3bc7cc]}}),_0x301b18=[...(_0x38314d=_0x5c6787['preRedos'])==null?[]:_0x38314d,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x432c15,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x23d)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x23b)],{'id':K['id'],'params':_0x3b571e}],_0x1f2d66=[{'id':q['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'shapeId':_0xa9a114}},...(_0x47bae3=_0x5c6787[_0x4fa7b5(0x242)])==null?[]:_0x47bae3,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x80cbc6,'subUnitId':_0x416819,'op':_0x1217fe,'objects':_0x1ceee0,'type':_0x5af201[_0x4fa7b5(0x238)]}},{'id':_0xeb678b['id'],'params':[_0x80cbc6]},..._0x5c6787[_0x4fa7b5(0x1fc)]];return _0x3ffddd(_0x301b18,_0x54d16b)['result']?(_0x43f14f[_0x4fa7b5(0x1fa)]({'unitID':_0x80cbc6,'undoMutations':_0x1f2d66,'redoMutations':_0x301b18}),!0x0):!0x1;}},Y={'id':_0x1a417c(0x1f7),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0x44c20b,_0x572229)=>{const _0x262566=_0x1a417c;let {unitId:_0x3dec78,subUnitId:_0x3a37c0,shapeType:_0x551e6e,shapeId:_0x26b26c,shapeData:_0x56b75c}=_0x572229,_0x3073c0=_0x44c20b[_0x262566(0x1e3)](G)[_0x262566(0x1fb)](_0x3dec78,_0x3a37c0,_0x26b26c);return _0x3073c0&&(_0x551e6e!==void 0x0&&_0x3073c0[_0x262566(0x1ef)](_0x551e6e),_0x56b75c&&(_0x3073c0==null||_0x3073c0[_0x262566(0x1ed)](_0x56b75c,!0x0))),!0x0;}},ee={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x207),'handler':(_0x25f3e5,_0x4fa513)=>{const _0x121781=_0x1a417c;var _0x41e207,_0x5f0fc0;let _0x3b94d9=_0x4e7fb4(_0x25f3e5[_0x121781(0x1e3)](_0x32f2cd),_0x4fa513);if(!_0x3b94d9)return!0x1;let _0x794d89=_0x25f3e5[_0x121781(0x1e3)](_0x55630f),{unitId:_0x324c08,subUnitId:_0x35d162}=_0x3b94d9,_0x3a2ea4=_0x794d89[_0x121781(0x1f4)](_0x324c08,_0x35d162);if(!_0x3a2ea4)return!0x1;let _0xd45d0=_0x25f3e5['get'](G),{shapeId:_0x4f2886,shapeType:_0x29d377,shapeData:_0x5b7a5c,position:_0x19fad0,width:_0x35139f,height:_0x227ff0}=_0x4fa513,_0xf2720f=_0xd45d0[_0x121781(0x1fb)](_0x324c08,_0x35d162,_0x4f2886);if(!_0xf2720f)return!0x1;let _0x5301e7=_0x25f3e5[_0x121781(0x1e3)](_0x285fd2),_0x41f52c=_0x25f3e5['get'](_0x2b286c),_0xac465b=_0x25f3e5[_0x121781(0x1e3)](_0x19401e),_0x34fe8b=_0x25f3e5[_0x121781(0x1e3)](_0x3339be),_0x48217f={'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeId':_0x4f2886,'shapeType':_0x29d377,'shapeData':_0x5b7a5c},_0x11f98e=_0xf2720f[_0x121781(0x21f)](),_0xf19aa=_0xf2720f[_0x121781(0x1e2)](),{x:_0x34753f,y:_0x27c09c}=_0x19fad0,_0x4dc017={'from':_0x3a2ea4[_0x121781(0x22f)](_0x34753f,_0x27c09c),'to':_0x3a2ea4[_0x121781(0x22f)](_0x34753f+_0x35139f,_0x27c09c+_0x227ff0)},_0x25e3c3={'unitId':_0x324c08,'subUnitId':_0x35d162,'drawingId':_0x4f2886,'drawingType':_0x5d2b71[_0x121781(0x251)],'sheetTransform':_0x4dc017,'transform':{'left':_0x34753f,'top':_0x27c09c,'width':_0x35139f,'height':_0x227ff0},'data':{'shapeType':_0x29d377,'shapeData':_0x5b7a5c},'axisAlignSheetTransform':_0x4dc017,'allowTransform':!0x0};_0x33d47c(_0x29d377)&&(_0x25e3c3[_0x121781(0x228)]['fill']=!0x1,_0x25e3c3[_0x121781(0x228)]['rotateEnabled']=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x228)][_0x121781(0x211)]=!0x1,_0x25e3c3[_0x121781(0x270)]['rotateEnabled']=!0x1,_0x25e3c3['transform'][_0x121781(0x22d)]=!0x1,_0x25e3c3[_0x121781(0x270)][_0x121781(0x211)]=!0x1);let {undo:_0x3011f0,redo:_0x59842b,objects:_0x408aaa}=_0x34fe8b[_0x121781(0x255)]([_0x25e3c3]),_0x2acf25=_0xac465b[_0x121781(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x324c08,'drawings':[_0x25e3c3]}}),_0x52398b=[...(_0x41e207=_0x2acf25[_0x121781(0x202)])==null?[]:_0x41e207,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x59842b,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25[_0x121781(0x23b)],{'id':Y['id'],'params':_0x48217f}],_0x4d9df7=[...(_0x5f0fc0=_0x2acf25['preUndos'])==null?[]:_0x5f0fc0,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'op':_0x3011f0,'objects':_0x408aaa,'type':_0x5af201[_0x121781(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x324c08]},..._0x2acf25['undos'],{'id':Y['id'],'params':{'unitId':_0x324c08,'subUnitId':_0x35d162,'shapeType':_0x11f98e,'shapeId':_0x4f2886,'shapeData':_0xf19aa}}];return _0x3ffddd(_0x52398b,_0x5301e7)[_0x121781(0x20c)]?(_0x41f52c[_0x121781(0x1fa)]({'unitID':_0x324c08,'undoMutations':_0x4d9df7,'redoMutations':_0x52398b}),!0x0):!0x1;}},te={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':'sheet.command.toggle-shape-flip','handler':(_0x5cb20a,_0x611ab)=>{const _0x1b76c9=_0x1a417c;var _0x5a1eab,_0x2bfa82;let _0x57379f=_0x4e7fb4(_0x5cb20a[_0x1b76c9(0x1e3)](_0x32f2cd),_0x611ab);if(!_0x57379f)return!0x1;let _0x23b108=_0x5cb20a[_0x1b76c9(0x1e3)](_0x55630f),{unitId:_0x2829ff,subUnitId:_0x121a21}=_0x57379f,_0x18cefd=_0x23b108['getSkeleton'](_0x2829ff,_0x121a21);if(!_0x18cefd)return!0x1;let _0x494f66=_0x5cb20a[_0x1b76c9(0x1e3)](_0x3339be),{shapeId:_0x30ddf0,flipH:_0x476179,flipV:_0x92049a}=_0x611ab,_0x3e9126=_0x494f66[_0x1b76c9(0x204)]({'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0});if(!_0x3e9126)return!0x1;let _0x56d84e=_0x5cb20a[_0x1b76c9(0x1e3)](G)[_0x1b76c9(0x1fb)](_0x2829ff,_0x121a21,_0x30ddf0);if(!_0x56d84e)return!0x1;let _0x2ba86b=_0x5cb20a[_0x1b76c9(0x1e3)](_0x285fd2),_0x2ee72e=_0x5cb20a[_0x1b76c9(0x1e3)](_0x2b286c),_0x3088b4=_0x5cb20a[_0x1b76c9(0x1e3)](_0x19401e),_0x370a8f={..._0x3e9126['transform']};_0x476179!==void 0x0&&(_0x370a8f[_0x1b76c9(0x1de)]=!_0x370a8f['flipX']),_0x92049a!==void 0x0&&(_0x370a8f['flipY']=!_0x370a8f['flipY']);let _0x342bb7=_0x5aa0b0(_0x370a8f,_0x18cefd),_0x4bc0dc=_0x64f7c2(_0x370a8f,_0x18cefd),_0x189819=_0x56d84e['getShapeType'](),_0x29e43b=_0x56d84e[_0x1b76c9(0x1e2)](),_0x50d6e1={'unitId':_0x2829ff,'subUnitId':_0x121a21,'drawingId':_0x30ddf0,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'sheetTransform':_0x342bb7,'transform':_0x370a8f,'data':{'shapeType':_0x189819,'shapeData':_0x29e43b},'axisAlignSheetTransform':_0x4bc0dc,'allowTransform':!0x0},{undo:_0x394073,redo:_0x527173,objects:_0x140f85}=_0x494f66[_0x1b76c9(0x255)]([_0x50d6e1]),_0x9e178d=_0x3088b4['onCommandExecute']({'id':_0x28e6ad['id'],'params':{'unitId':_0x2829ff,'drawings':[_0x50d6e1]}}),_0x2de0f5=[...(_0x5a1eab=_0x9e178d[_0x1b76c9(0x202)])==null?[]:_0x5a1eab,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x527173,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d[_0x1b76c9(0x23b)]],_0x8aedea=[...(_0x2bfa82=_0x9e178d[_0x1b76c9(0x242)])==null?[]:_0x2bfa82,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'op':_0x394073,'objects':_0x140f85,'type':_0x5af201[_0x1b76c9(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x2829ff]},..._0x9e178d['undos']];if(_0x33d47c(_0x189819)){let _0x320e1e=_0x56d84e[_0x1b76c9(0x222)]();if(_0x320e1e){let _0x396653={..._0x320e1e};_0x396653[_0x1b76c9(0x1e8)]=void 0x0,_0x396653['to']=void 0x0,_0x2de0f5[_0x1b76c9(0x266)]({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x396653}}}),_0x8aedea['push']({'id':Y['id'],'params':{'unitId':_0x2829ff,'subUnitId':_0x121a21,'shapeId':_0x30ddf0,'shapeType':_0x189819,'shapeData':{'relation':_0x320e1e}}});}}return _0x3ffddd(_0x2de0f5,_0x2ba86b)['result']?(_0x2ee72e[_0x1b76c9(0x1fa)]({'unitID':_0x2829ff,'undoMutations':_0x8aedea,'redoMutations':_0x2de0f5}),!0x0):!0x1;}},X={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x24b),'handler':(_0x28644a,_0x5a2a2d)=>{const _0x554f10=_0x1a417c;var _0x41bd3c,_0x46762e;let _0x49133e=_0x4e7fb4(_0x28644a['get'](_0x32f2cd),_0x5a2a2d);if(!_0x49133e)return!0x1;let _0x2bb625=_0x28644a[_0x554f10(0x1e3)](_0x55630f),{unitId:_0x553e95,subUnitId:_0x154d85}=_0x49133e,_0xb79bcd=_0x2bb625['getSkeleton'](_0x553e95,_0x154d85);if(!_0xb79bcd)return!0x1;let _0x6b443c=_0x28644a[_0x554f10(0x1e3)](_0x3339be),{shapeId:_0x44af2e,rotate:_0x57c366}=_0x5a2a2d,_0x5f3865=_0x6b443c['getDrawingByParam']({'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e});if(!_0x5f3865)return!0x1;let _0x32f9a8=_0x28644a['get'](G)[_0x554f10(0x1fb)](_0x553e95,_0x154d85,_0x44af2e);if(!_0x32f9a8)return!0x1;let _0x30237b=_0x28644a[_0x554f10(0x1e3)](_0x285fd2),_0x1349e2=_0x28644a[_0x554f10(0x1e3)](_0x2b286c),_0x8ad80d=_0x28644a['get'](_0x19401e),_0x8580c5={..._0x5f3865['transform']};_0x57c366!==void 0x0&&(_0x8580c5[_0x554f10(0x24a)]=(_0x8580c5[_0x554f10(0x24a)]||0x0)+_0x57c366);let _0x3bfefe=_0x5aa0b0(_0x8580c5,_0xb79bcd),_0x2c5ac3=_0x64f7c2(_0x8580c5,_0xb79bcd),_0x3557bc=_0x32f9a8[_0x554f10(0x21f)](),_0x8d4750=_0x32f9a8[_0x554f10(0x1e2)](),_0x3f1806={'unitId':_0x553e95,'subUnitId':_0x154d85,'drawingId':_0x44af2e,'drawingType':_0x5d2b71[_0x554f10(0x251)],'sheetTransform':_0x3bfefe,'transform':_0x8580c5,'data':{'shapeType':_0x3557bc,'shapeData':_0x8d4750},'axisAlignSheetTransform':_0x2c5ac3,'allowTransform':!0x0},{undo:_0x4827ae,redo:_0x428c23,objects:_0x3e06be}=_0x6b443c[_0x554f10(0x255)]([_0x3f1806]),_0x5d762a=_0x8ad80d[_0x554f10(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x553e95,'drawings':[_0x3f1806]}}),_0x20a710=[...(_0x41bd3c=_0x5d762a[_0x554f10(0x202)])==null?[]:_0x41bd3c,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x428c23,'objects':_0x3e06be,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x23b)]],_0x5263df=[...(_0x46762e=_0x5d762a[_0x554f10(0x242)])==null?[]:_0x46762e,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x553e95,'subUnitId':_0x154d85,'op':_0x4827ae,'objects':_0x3e06be,'type':_0x5af201[_0x554f10(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x553e95]},..._0x5d762a[_0x554f10(0x1fc)]];return _0x3ffddd(_0x20a710,_0x30237b)[_0x554f10(0x20c)]?(_0x1349e2[_0x554f10(0x1fa)]({'unitID':_0x553e95,'undoMutations':_0x5263df,'redoMutations':_0x20a710}),!0x0):!0x1;}},Z={'type':_0x5229c7['COMMAND'],'id':_0x1a417c(0x274),'handler':(_0x40c3b1,_0xb7750b)=>{const _0x10f733=_0x1a417c;var _0x5667b1;let _0x223af0=_0x4e7fb4(_0x40c3b1['get'](_0x32f2cd),_0xb7750b);if(!_0x223af0)return!0x1;let {unitId:_0xbd1495,subUnitId:_0xde5fed}=_0x223af0,{shapeId:_0x18ddee}=_0xb7750b,_0x17393a=_0x40c3b1[_0x10f733(0x1e3)](G)[_0x10f733(0x1fb)](_0xbd1495,_0xde5fed,_0x18ddee);if(!_0x17393a)return!0x1;let _0x41fd74=_0x17393a[_0x10f733(0x273)](),_0x40723b=(_0x5667b1=_0x41fd74==null?void 0x0:_0x41fd74[_0x10f733(0x25f)])==null?!0x0:_0x5667b1,_0x50ccf9=!_0x40723b,_0x7015d6=_0x40c3b1[_0x10f733(0x1e3)](_0x285fd2),_0x53e6a4=_0x40c3b1['get'](_0x2b286c),_0x9a582a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x50ccf9}}},_0x582c5a={'unitId':_0xbd1495,'subUnitId':_0xde5fed,'shapeId':_0x18ddee,'shapeData':{'shapeText':{'isHorizontal':_0x40723b}}},_0x188c92=[{'id':Y['id'],'params':_0x9a582a}],_0x363d82=[{'id':Y['id'],'params':_0x582c5a}];return _0x3ffddd(_0x188c92,_0x7015d6)[_0x10f733(0x20c)]?(_0x53e6a4[_0x10f733(0x1fa)]({'unitID':_0xbd1495,'undoMutations':_0x363d82,'redoMutations':_0x188c92}),!0x0):!0x1;}},ne={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x224),'handler':(_0x281ccc,_0xd70ecf)=>{const _0x44fbb2=_0x1a417c;var _0x5b8c1a,_0x1f4e13,_0xd2ebcb,_0x43f8ad;let _0x259fcb=_0x4e7fb4(_0x281ccc['get'](_0x32f2cd),_0xd70ecf);if(!_0x259fcb)return!0x1;let _0x2e4351=_0x281ccc[_0x44fbb2(0x1e3)](_0x55630f),{unitId:_0x42b3da,subUnitId:_0x3f7cfe}=_0x259fcb,_0x346cad=_0x2e4351[_0x44fbb2(0x232)](_0x42b3da,_0x3f7cfe);if(!_0x346cad)return!0x1;let _0x153fdb=_0x281ccc['get'](_0x3339be),{connectorShapeId:_0x56f11a,width:_0x1c7fc0,height:_0x3084a0,left:_0x381635,top:_0x45ce36,flipX:_0x2d124a,flipY:_0x5119c8,rotation:_0x486b46,oldAdjustValues:_0x4a0fec,newAdjustValues:_0x305717,oldLineType:_0x348e6d,newLineType:_0x2717e4,oldRelation:_0x29efcf,newRelation:_0x559353}=_0xd70ecf,_0x530582=_0x153fdb[_0x44fbb2(0x204)]({'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a});if(!_0x530582)return!0x1;let _0x2c30e1=_0x281ccc['get'](G)[_0x44fbb2(0x1fb)](_0x42b3da,_0x3f7cfe,_0x56f11a);if(!_0x2c30e1)return!0x1;let _0x4fcafd=_0x281ccc['get'](_0x285fd2),_0x2e121d=_0x281ccc[_0x44fbb2(0x1e3)](_0x2b286c),_0x3c03cd=_0x281ccc[_0x44fbb2(0x1e3)](_0x19401e),_0x1cc722={..._0x530582[_0x44fbb2(0x270)],'width':_0x1c7fc0,'height':_0x3084a0,'left':_0x381635,'top':_0x45ce36,'flipX':_0x2d124a,'flipY':_0x5119c8,'angle':(_0x5b8c1a=_0x486b46==null?(_0x1f4e13=_0x530582['transform'])==null?void 0x0:_0x1f4e13['angle']:_0x486b46)==null?0x0:_0x5b8c1a},_0x55ba4f=_0x5aa0b0(_0x1cc722,_0x346cad),_0x438902=_0x64f7c2(_0x1cc722,_0x346cad),_0x554184=_0x2c30e1[_0x44fbb2(0x21f)](),_0x320562=_0x2c30e1['getShapeData'](),_0x1b8d70={'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'drawingId':_0x56f11a,'drawingType':_0x5d2b71[_0x44fbb2(0x251)],'sheetTransform':_0x55ba4f,'transform':_0x1cc722,'data':{'shapeType':_0x2717e4||_0x348e6d||_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x305717||_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x559353||_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}},'axisAlignSheetTransform':_0x438902,'allowTransform':!0x0},{undo:_0x2a033f,redo:_0x4eac24,objects:_0x15ac96}=_0x153fdb[_0x44fbb2(0x255)]([_0x1b8d70]),_0x17c644=_0x3c03cd[_0x44fbb2(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x42b3da,'drawings':[_0x1b8d70]}}),_0x400615=[...(_0xd2ebcb=_0x17c644[_0x44fbb2(0x202)])==null?[]:_0xd2ebcb,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x4eac24,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x23b)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x2717e4,'shapeData':{'adjustValues':_0x305717,'relation':_0x559353}}}],_0x23d56b=[...(_0x43f8ad=_0x17c644[_0x44fbb2(0x242)])==null?[]:_0x43f8ad,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'op':_0x2a033f,'objects':_0x15ac96,'type':_0x5af201[_0x44fbb2(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x42b3da]},..._0x17c644[_0x44fbb2(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x42b3da,'subUnitId':_0x3f7cfe,'shapeId':_0x56f11a,'shapeType':_0x554184,'shapeData':{..._0x320562,'adjustValues':_0x4a0fec||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x1ff)]),'relation':_0x29efcf||(_0x320562==null?void 0x0:_0x320562[_0x44fbb2(0x268)])}}}];return _0x3ffddd(_0x400615,_0x4fcafd)[_0x44fbb2(0x20c)]?(_0x2e121d[_0x44fbb2(0x1fa)]({'unitID':_0x42b3da,'undoMutations':_0x23d56b,'redoMutations':_0x400615}),!0x0):!0x1;}},re={'type':_0x5229c7[_0x1a417c(0x1e0)],'id':_0x1a417c(0x226),'handler':(_0x179eb9,_0x1d20e0)=>{const _0x1f46fc=_0x1a417c;var _0x444b38,_0x945df8;let _0x3bee41=_0x4e7fb4(_0x179eb9['get'](_0x32f2cd),_0x1d20e0);if(!_0x3bee41)return!0x1;let _0xaed240=_0x179eb9[_0x1f46fc(0x1e3)](_0x55630f),{unitId:_0x1c7458,subUnitId:_0xaf6b67}=_0x3bee41,_0x2a3353=_0xaed240[_0x1f46fc(0x232)](_0x1c7458,_0xaf6b67);if(!_0x2a3353)return!0x1;let _0x6a74d5=_0x179eb9['get'](_0x3339be),{shapeId:_0x13bf73,width:_0x551ddb,height:_0x3ba555,left:_0x58f644,top:_0x49181e,flipX:_0x3c0877,flipY:_0x5ec63f,angle:_0x9615b1,oldAdjustValues:_0x8787ef,newAdjustValues:_0x4b7309,oldLineType:_0x5f3707,newLineType:_0x56df5c}=_0x1d20e0,_0x46c9a0=_0x6a74d5[_0x1f46fc(0x204)]({'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73});if(!_0x46c9a0)return!0x1;let _0x39a1cb=_0x179eb9[_0x1f46fc(0x1e3)](G)[_0x1f46fc(0x1fb)](_0x1c7458,_0xaf6b67,_0x13bf73);if(!_0x39a1cb)return!0x1;let _0x5ea497=_0x179eb9[_0x1f46fc(0x1e3)](_0x285fd2),_0x53c996=_0x179eb9[_0x1f46fc(0x1e3)](_0x2b286c),_0x5a968e=_0x179eb9[_0x1f46fc(0x1e3)](_0x19401e),_0x32624f={..._0x46c9a0[_0x1f46fc(0x270)],'width':_0x551ddb,'height':_0x3ba555,'left':_0x58f644,'top':_0x49181e,'flipX':_0x3c0877,'flipY':_0x5ec63f,'angle':_0x9615b1},_0x422cd1=_0x5aa0b0(_0x32624f,_0x2a3353),_0x13dd7b=_0x64f7c2(_0x32624f,_0x2a3353),_0x4153a9=_0x39a1cb[_0x1f46fc(0x21f)](),_0x2b1504=_0x39a1cb['getShapeData'](),_0x451fcd={'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'drawingId':_0x13bf73,'drawingType':_0x5d2b71[_0x1f46fc(0x251)],'sheetTransform':_0x422cd1,'transform':_0x32624f,'data':{'shapeType':_0x56df5c||_0x5f3707||_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x4b7309||_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}},'axisAlignSheetTransform':_0x13dd7b,'allowTransform':!0x0},{undo:_0x3992a0,redo:_0x1afe83,objects:_0xad2196}=_0x6a74d5['getBatchUpdateOp']([_0x451fcd]),_0x321aa6=_0x5a968e[_0x1f46fc(0x22b)]({'id':_0x28e6ad['id'],'params':{'unitId':_0x1c7458,'drawings':[_0x451fcd]}}),_0x5d1f59=[...(_0x444b38=_0x321aa6[_0x1f46fc(0x202)])==null?[]:_0x444b38,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x1afe83,'objects':_0xad2196,'type':_0x5af201['UPDATE']}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x23b)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x56df5c,'shapeData':{'adjustValues':_0x4b7309}}}],_0x48a918=[...(_0x945df8=_0x321aa6[_0x1f46fc(0x242)])==null?[]:_0x945df8,{'id':_0x2ae4cd['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'op':_0x3992a0,'objects':_0xad2196,'type':_0x5af201[_0x1f46fc(0x1e5)]}},{'id':_0xeb678b['id'],'params':[_0x1c7458]},..._0x321aa6[_0x1f46fc(0x1fc)],{'id':Y['id'],'params':{'unitId':_0x1c7458,'subUnitId':_0xaf6b67,'shapeId':_0x13bf73,'shapeType':_0x4153a9,'shapeData':{..._0x2b1504,'adjustValues':_0x8787ef||(_0x2b1504==null?void 0x0:_0x2b1504[_0x1f46fc(0x1ff)])}}}];return _0x3ffddd(_0x5d1f59,_0x5ea497)[_0x1f46fc(0x20c)]?(_0x53c996[_0x1f46fc(0x1fa)]({'unitID':_0x1c7458,'undoMutations':_0x48a918,'redoMutations':_0x5d1f59}),!0x0):!0x1;}},Q={'id':_0x1a417c(0x1f9),'type':_0x5229c7[_0x1a417c(0x231)],'handler':(_0xcf97ef,_0x336992)=>{const _0x3de8e9=_0x1a417c;let {unitId:_0x2e014e,subUnitId:_0x2047fc,shapeType:_0x5149d3,shapeId:_0x4f91b8,shapeData:_0x4382d0}=_0x336992,_0x94378e=_0xcf97ef[_0x3de8e9(0x1e3)](G)['getShapeModel'](_0x2e014e,_0x2047fc,_0x4f91b8);return _0x94378e&&(_0x94378e[_0x3de8e9(0x1ef)](_0x5149d3),_0x4382d0&&(_0x94378e==null||_0x94378e[_0x3de8e9(0x1ed)](_0x4382d0))),!0x0;}},ie={'id':_0x1a417c(0x214),'type':_0x5229c7['COMMAND'],'handler':(_0x15121c,_0x440aa2)=>{const _0x2ef0d8=_0x1a417c;if(!_0x440aa2)return!0x1;let _0x5395c7=_0x15121c[_0x2ef0d8(0x1e3)](_0x285fd2),_0x385cd9=_0x15121c[_0x2ef0d8(0x1e3)](G),_0x401623=_0x15121c['get'](_0x2b286c),_0x402505=[],_0x5c9294=[],{unitId:_0xa4dddb,subUnitId:_0x1f93cc,shapeId:_0x30b388,shapeType:_0x3653e2,shapeData:_0x47f8bb}=_0x440aa2,_0x1d6c8a=_0x385cd9['getShapeModel'](_0xa4dddb,_0x1f93cc,_0x30b388);if(_0x1d6c8a){let _0x4f6366=_0x1d6c8a[_0x2ef0d8(0x21f)](),_0x200651=Object[_0x2ef0d8(0x218)]({},_0x1d6c8a['getShapeData']()),_0x1781a4={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x3653e2,'shapeData':_0x47f8bb},_0x15188c={'unitId':_0xa4dddb,'subUnitId':_0x1f93cc,'shapeId':_0x30b388,'shapeType':_0x4f6366,'shapeData':_0x200651};return _0x402505[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x1781a4}),_0x5c9294[_0x2ef0d8(0x266)]({'id':Q['id'],'params':_0x15188c}),_0x402505['every'](_0x1c5831=>_0x5395c7[_0x2ef0d8(0x219)](_0x1c5831['id'],_0x1c5831[_0x2ef0d8(0x23c)]))&&_0x401623[_0x2ef0d8(0x1fa)]({'unitID':_0xa4dddb,'redoMutations':[..._0x402505],'undoMutations':[..._0x5c9294]}),!0x0;}return!0x1;}};var ae=_0x1a417c(0x220),oe='0.25.0';const se={};function _0x6126(_0x250eaf,_0x4f7ded){_0x250eaf=_0x250eaf-0x1dd;const _0x20c38f=_0x20c3();let _0x61267a=_0x20c38f[_0x250eaf];return _0x61267a;}let ce=class extends _0x4e5f9f{constructor(_0x1c34d1,_0x16fd8b,_0x5757bc,_0x2c171d,_0x354eb){const _0x5a3f8e=_0x1a417c;super(),this['_commandService']=_0x1c34d1,this['_sheetInterceptorService']=_0x16fd8b,this[_0x5a3f8e(0x237)]=_0x5757bc,this[_0x5a3f8e(0x235)]=_0x2c171d,this[_0x5a3f8e(0x205)]=_0x354eb,this[_0x5a3f8e(0x215)](),this[_0x5a3f8e(0x243)]();}[_0x1a417c(0x215)](){const _0x2a8e82=_0x1a417c;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x4291e2=>this[_0x2a8e82(0x233)](this[_0x2a8e82(0x239)]['registerCommand'](_0x4291e2)));}[_0x1a417c(0x243)](){const _0x336936=_0x1a417c;this[_0x336936(0x233)](this[_0x336936(0x240)][_0x336936(0x1f0)]({'getMutations':_0x2629dd=>{const _0x447a8b=_0x336936;if(_0x2629dd['id']===_0x56569e['id']){let {drawings:_0x324b1f}=_0x2629dd[_0x447a8b(0x23c)],_0x1ec6c5=_0x324b1f[_0x447a8b(0x277)](_0x933da2=>_0x933da2[_0x447a8b(0x275)]===_0x5d2b71['DRAWING_SHAPE']);if(_0x1ec6c5['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x210ed2=[],_0x4b4a80=[];return _0x1ec6c5[_0x447a8b(0x227)](_0xb4676c=>{const _0x3f368f=_0x447a8b;let {unitId:_0x4c5234,subUnitId:_0xf2de3b,drawingId:_0x5cc650}=_0xb4676c,_0x233796=this[_0x3f368f(0x235)][_0x3f368f(0x1fb)](_0x4c5234,_0xf2de3b,_0x5cc650);if(!_0x233796)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x233796);_0x210ed2['push']({'id':q['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650}}),_0x4b4a80[_0x3f368f(0x266)]({'id':K['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x5cc650,'shapeType':_0x233796[_0x3f368f(0x21f)](),'shapeData':_0x233796[_0x3f368f(0x1e2)]()}});let _0x49b2ef=this[_0x3f368f(0x235)]['getBasicShapeRelation'](_0x4c5234,_0xf2de3b,_0x5cc650);if(_0x49b2ef)for(let _0x1e7608 of _0x49b2ef){let _0x1627cc=_0x1e7608['lineShapeId'],_0x2c574d=_0x1e7608[_0x3f368f(0x22c)],_0x43e7b5=_0x2c574d?{'from':void 0x0}:{'to':void 0x0},_0x9d1fbd=_0x2c574d?{'from':{'shapeId':_0x1e7608[_0x3f368f(0x21c)],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}}:{'to':{'shapeId':_0x1e7608['shapeId'],'cxnIndex':_0x1e7608[_0x3f368f(0x1ec)]}};_0x210ed2[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x43e7b5}}}),_0x4b4a80[_0x3f368f(0x266)]({'id':Y['id'],'params':{'unitId':_0x4c5234,'subUnitId':_0xf2de3b,'shapeId':_0x1627cc,'shapeData':{'relation':_0x9d1fbd}}});}}),{'preRedos':_0x210ed2,'redos':[],'preUndos':[],'undos':_0x4b4a80};}if(_0x2629dd['id']===_0x28e6ad['id']){let {drawings:_0x3448a1}=_0x2629dd[_0x447a8b(0x23c)],_0x320eaa=_0x3448a1[_0x447a8b(0x277)](_0x1ca393=>_0x1ca393[_0x447a8b(0x275)]===_0x5d2b71[_0x447a8b(0x251)]);if(_0x320eaa[_0x447a8b(0x1eb)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x192802=[],_0x226f08=[];for(let _0x5c84ab of _0x320eaa){let {unitId:_0x3c697f,subUnitId:_0x72bc90,drawingId:_0x242779,transform:_0x42bbac}=_0x5c84ab;if(!_0x3c697f||!_0x72bc90||!_0x242779||!_0x42bbac)continue;let _0xab2293=this[_0x447a8b(0x235)]['getShapeModel'](_0x3c697f,_0x72bc90,_0x242779);if(!_0xab2293)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0xab2293);if(_0x33d47c(_0xab2293[_0x447a8b(0x21f)]())){let _0x17e2f7=this[_0x447a8b(0x235)]['getLineShapeRelation'](_0x3c697f,_0x72bc90,_0x242779);_0x17e2f7&&(_0x192802[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x226f08[_0x447a8b(0x266)]({'id':Y['id'],'params':{'unitId':_0x3c697f,'subUnitId':_0x72bc90,'shapeId':_0x242779,'shapeData':{'relation':_0x17e2f7}}}));}else{let _0x5b2092=this[_0x447a8b(0x235)][_0x447a8b(0x210)](_0x3c697f,_0x72bc90,_0x242779);if(_0x5b2092&&_0x5b2092[_0x447a8b(0x1eb)]>0x0)for(let _0x5b579b of _0x5b2092){let _0x36a511=_0x5b579b[_0x447a8b(0x1ee)],_0x20bf07=_0x5b579b['isFrom'],_0x254a8b=this['_sheetsShapeService'][_0x447a8b(0x1fb)](_0x3c697f,_0x72bc90,_0x36a511);if(!_0x254a8b)continue;let _0x51d917=_0x254a8b[_0x447a8b(0x236)](),_0x1250ab=_0x254a8b['getEndConnectInfo']();_0x51d917&&_0x1250ab?this['_addLineRerouteUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x51d917,_0x1250ab,_0x192802,_0x226f08,_0x242779,_0x42bbac):this['_addLineFollowShapeUpdates'](_0x3c697f,_0x72bc90,_0x36a511,_0x254a8b,_0x20bf07?_0x51d917:_0x1250ab,_0x20bf07,_0x192802,_0x226f08,_0x242779,_0x42bbac);}}}return{'preRedos':[],'redos':_0x192802,'preUndos':_0x226f08,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1a417c(0x1e4)](_0x456d00,_0x2d5650,_0xc7cab,_0x10f6bd,_0x4bb40b){const _0x46459e=_0x1a417c;if(!_0x2d5650||!_0xc7cab)return null;let {shapeId:_0x31faf7,cxnIndex:_0x2bbe61}=_0x456d00,_0x319ddd=this[_0x46459e(0x235)]['getShapeModel'](_0x2d5650,_0xc7cab,_0x31faf7);if(!_0x319ddd)return null;let _0x3df61f=this['_drawingManagerService'][_0x46459e(0x204)]({'unitId':_0x2d5650,'subUnitId':_0xc7cab,'drawingId':_0x31faf7});if(!(_0x3df61f!=null&&_0x3df61f[_0x46459e(0x270)]))return null;let {left:_0x1af3c2=0x0,top:_0x3f3b12=0x0,width:_0x45fa6f=0x0,height:_0x124df6=0x0,flipX:_0x1a364c=!0x1,flipY:_0x28c5cd=!0x1,angle:_0x5b5c27}=_0x3df61f[_0x46459e(0x270)];if(_0x4bb40b&&_0x10f6bd===_0x31faf7){var _0x3e3a70,_0x55da7b,_0x165853,_0x2094e2,_0x4c3618,_0x39a84e,_0x5e9360;_0x1af3c2=(_0x3e3a70=_0x4bb40b[_0x46459e(0x1f8)])==null?_0x1af3c2:_0x3e3a70,_0x3f3b12=(_0x55da7b=_0x4bb40b[_0x46459e(0x212)])==null?_0x3f3b12:_0x55da7b,_0x45fa6f=(_0x165853=_0x4bb40b[_0x46459e(0x26f)])==null?_0x45fa6f:_0x165853,_0x124df6=(_0x2094e2=_0x4bb40b[_0x46459e(0x225)])==null?_0x124df6:_0x2094e2,_0x1a364c=(_0x4c3618=_0x4bb40b[_0x46459e(0x1de)])==null?_0x1a364c:_0x4c3618,_0x28c5cd=(_0x39a84e=_0x4bb40b[_0x46459e(0x21b)])==null?_0x28c5cd:_0x39a84e,_0x5b5c27=(_0x5e9360=_0x4bb40b['angle'])==null?_0x5b5c27:_0x5e9360;}_0x319ddd['updateContext']({'width':_0x45fa6f,'height':_0x124df6});let _0x249d85=_0x319ddd[_0x46459e(0x250)]()[_0x46459e(0x23e)](_0x413488=>_0x413488['index']===_0x2bbe61);if(!_0x249d85)return null;let _0x379d0c=_0x1a364c?_0x45fa6f-_0x249d85['x']:_0x249d85['x'],_0x2df45c=_0x28c5cd?_0x124df6-_0x249d85['y']:_0x249d85['y'];if(_0x5b5c27!==0x0&&_0x5b5c27!=null){let _0x1a3923=_0x5b5c27*Math['PI']/0xb4,_0x365ab2=Math['cos'](_0x1a3923),_0x295438=Math[_0x46459e(0x21e)](_0x1a3923),_0x3c17fa=_0x45fa6f/0x2,_0xbcf8f7=_0x124df6/0x2,_0x18ba76=_0x379d0c-_0x3c17fa,_0xa09374=_0x2df45c-_0xbcf8f7;_0x379d0c=_0x3c17fa+_0x18ba76*_0x365ab2-_0xa09374*_0x295438,_0x2df45c=_0xbcf8f7+_0x18ba76*_0x295438+_0xa09374*_0x365ab2;}_0x379d0c+=_0x1af3c2,_0x2df45c+=_0x3f3b12;let _0x2d9db4=_0x249d85[_0x46459e(0x241)]/0xea60;_0x1a364c&&(_0x2d9db4=0xb4-_0x2d9db4),_0x28c5cd&&(_0x2d9db4=-_0x2d9db4),_0x2d9db4+=_0x5b5c27||0x0,_0x2d9db4=(_0x2d9db4%0x168+0x168)%0x168;let _0x2ec983=_0x4dd2cd({'left':_0x1af3c2,'top':_0x3f3b12,'width':_0x45fa6f,'height':_0x124df6},_0x5b5c27||0x0);return{'point':{'x':_0x379d0c,'y':_0x2df45c},'angle':_0x2d9db4,'bounds':_0x2ec983};}[_0x1a417c(0x261)](_0x123318,_0x28c24f,_0x49d29e,_0x210dfa,_0x2c7f2f,_0x26fcb1,_0x382c04,_0x6a903f,_0x4f4597,_0x15da44){const _0x285b99=_0x1a417c;let _0x2b93f7=this[_0x285b99(0x237)][_0x285b99(0x232)](_0x123318,_0x28c24f);if(!_0x2b93f7)return;let _0x411791=_0x210dfa[_0x285b99(0x222)](),_0x8a3cd2=_0x210dfa[_0x285b99(0x263)](),_0x5d989e={},_0x11cff3={};_0x8a3cd2[_0x285b99(0x227)](_0x2fa32d=>{const _0x2fb358=_0x285b99;let _0x5880f4=_0x210dfa[_0x2fb358(0x25b)](_0x2fa32d);_0x11cff3[_0x2fa32d]=_0x5880f4==null?0x0:_0x5880f4;});let _0x3d6205=this[_0x285b99(0x1e4)](_0x2c7f2f,_0x123318,_0x28c24f,_0x4f4597,_0x15da44),_0x1f003e=this['_getConnectPointInfo'](_0x26fcb1,_0x123318,_0x28c24f,_0x4f4597,_0x15da44);if(_0x3d6205&&_0x1f003e){let _0x425945=_0x210dfa[_0x285b99(0x21f)](),_0x4bba85=_0x29d7a4(_0x3d6205,_0x1f003e,_0x425945),_0x11e967=_0x425945;if(_0x4bba85){let _0x55711f=_0x4d5188(_0x4bba85,_0x210dfa[_0x285b99(0x21f)]()),_0x5cd76a=this['_drawingManagerService'][_0x285b99(0x22a)](_0x123318,_0x28c24f);if(_0x5cd76a&&_0x5cd76a[_0x49d29e]){let _0x16e584=_0x5cd76a[_0x49d29e];_0x11e967=_0x55711f[_0x285b99(0x249)];for(let [_0xac3bcd,_0x2009aa]of Object['entries'](_0x55711f[_0x285b99(0x1ff)]))_0x5d989e[_0xac3bcd]=_0x2009aa;let _0x10f768={..._0x16e584['transform'],'width':_0x55711f[_0x285b99(0x24e)]['width'],'height':_0x55711f[_0x285b99(0x24e)]['height'],'left':_0x55711f['worldRect']['left'],'top':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x212)],'flipX':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x1de)],'flipY':_0x55711f[_0x285b99(0x24e)][_0x285b99(0x21b)],'angle':_0x55711f[_0x285b99(0x206)]},_0x11ce2e=_0x5aa0b0(_0x10f768,_0x2b93f7),_0x4e7fc0=_0x64f7c2(_0x10f768,_0x2b93f7),_0x2a0437={'unitId':_0x123318,'subUnitId':_0x28c24f,'drawingType':_0x5d2b71['DRAWING_SHAPE'],'drawingId':_0x49d29e,'transform':_0x10f768,'sheetTransform':_0x11ce2e,'axisAlignSheetTransform':_0x4e7fc0},{unitId:_0x4f61de,subUnitId:_0x28af05,undo:_0x4cc391,redo:_0xa26139,objects:_0x24621c}=this[_0x285b99(0x205)]['getBatchUpdateOp']([_0x2a0437]);_0x382c04[_0x285b99(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0xa26139,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}}),_0x6a903f['push']({'id':_0x2ae4cd['id'],'params':{'unitId':_0x4f61de,'subUnitId':_0x28af05,'op':_0x4cc391,'objects':_0x24621c,'type':_0x5af201[_0x285b99(0x1e5)]}});}_0x210dfa[_0x285b99(0x1dd)]();}_0x382c04[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x11e967,'shapeData':{'adjustValues':_0x5d989e,'relation':_0x411791}}}),_0x6a903f[_0x285b99(0x266)]({'id':Y['id'],'params':{'unitId':_0x123318,'subUnitId':_0x28c24f,'shapeId':_0x49d29e,'shapeType':_0x425945,'shapeData':{'adjustValues':_0x11cff3,'relation':_0x411791}}});}}[_0x1a417c(0x209)](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x2ac881,_0x4c28f2,_0x2d17e8,_0x37747e,_0x244542,_0x40e793){const _0x3958b9=_0x1a417c;var _0x308f88;if(!_0x2ac881)return;let _0x59daa0=this[_0x3958b9(0x237)]['getSkeleton'](_0x46efac,_0x57f5da);if(!_0x59daa0)return;let _0x22b10a=(_0x308f88=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingId':_0x244542}))==null?void 0x0:_0x308f88[_0x3958b9(0x270)];if(!_0x22b10a)return;let _0x21d4e0=_0x22b10a['left']!==_0x40e793[_0x3958b9(0x1f8)]||_0x22b10a[_0x3958b9(0x212)]!==_0x40e793[_0x3958b9(0x212)],_0x22247b=_0x22b10a['width']!==_0x40e793[_0x3958b9(0x26f)]||_0x22b10a['height']!==_0x40e793[_0x3958b9(0x225)],_0x4af8c4=_0x22b10a['flipX']!==_0x40e793[_0x3958b9(0x1de)]||_0x22b10a[_0x3958b9(0x21b)]!==_0x40e793[_0x3958b9(0x21b)],_0xabf556=_0x22b10a[_0x3958b9(0x24a)]!==_0x40e793['angle'];if(_0x21d4e0&&!_0x22247b&&!_0x4af8c4&&!_0xabf556){var _0x417a2e,_0x40085e,_0x4dfa1d,_0x1d2677;let _0xc64819=((_0x417a2e=_0x40e793[_0x3958b9(0x1f8)])==null?0x0:_0x417a2e)-((_0x40085e=_0x22b10a['left'])==null?0x0:_0x40085e),_0x3a3cb6=((_0x4dfa1d=_0x40e793['top'])==null?0x0:_0x4dfa1d)-((_0x1d2677=_0x22b10a['top'])==null?0x0:_0x1d2677),_0x4e4f36=this[_0x3958b9(0x205)][_0x3958b9(0x22a)](_0x46efac,_0x57f5da);if(_0x4e4f36&&_0x4e4f36[_0x3b5998]){var _0x17bf1b,_0x46b0f4,_0x547609,_0x30d34e;let _0x27192a=_0x4e4f36[_0x3b5998],_0x18ed8a={..._0x27192a[_0x3958b9(0x270)],'left':((_0x17bf1b=(_0x46b0f4=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x46b0f4[_0x3958b9(0x1f8)])==null?0x0:_0x17bf1b)+_0xc64819,'top':((_0x547609=(_0x30d34e=_0x27192a[_0x3958b9(0x270)])==null?void 0x0:_0x30d34e[_0x3958b9(0x212)])==null?0x0:_0x547609)+_0x3a3cb6},_0x22913f=_0x5aa0b0(_0x18ed8a,_0x59daa0),_0xe4493d=_0x64f7c2(_0x18ed8a,_0x59daa0),_0x5df928={'unitId':_0x46efac,'subUnitId':_0x57f5da,'drawingType':_0x5d2b71[_0x3958b9(0x251)],'drawingId':_0x3b5998,'transform':_0x18ed8a,'sheetTransform':_0x22913f,'axisAlignSheetTransform':_0xe4493d},{unitId:_0x18fba4,subUnitId:_0x1ad7b6,undo:_0x1f0300,redo:_0x52345d,objects:_0x1c91c7}=this[_0x3958b9(0x205)][_0x3958b9(0x255)]([_0x5df928]);_0x2d17e8[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x52345d,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}}),_0x37747e[_0x3958b9(0x266)]({'id':_0x2ae4cd['id'],'params':{'unitId':_0x18fba4,'subUnitId':_0x1ad7b6,'op':_0x1f0300,'objects':_0x1c91c7,'type':_0x5af201[_0x3958b9(0x1e5)]}});}}else{let _0x392a41=_0x388b5d['getStartConnectInfo'](),_0x301a17=_0x388b5d[_0x3958b9(0x257)]();this['_addLineRerouteUpdates'](_0x46efac,_0x57f5da,_0x3b5998,_0x388b5d,_0x392a41,_0x301a17,_0x2d17e8,_0x37747e,_0x244542,_0x40e793);}}};ce=W([U(0x0,_0x285fd2),U(0x1,_0xca6a11(_0x19401e)),U(0x2,_0xca6a11(_0x55630f)),U(0x3,_0xca6a11(G)),U(0x4,_0xca6a11(_0x525c29))],ce);let $=class extends _0x2582f4{constructor(_0x14e772=se,_0x3d9d93,_0x5de1fc,_0xe65d15){const _0x508a9d=_0x1a417c;super(),this[_0x508a9d(0x272)]=_0x14e772,this[_0x508a9d(0x244)]=_0x3d9d93,this[_0x508a9d(0x239)]=_0x5de1fc,this[_0x508a9d(0x276)]=_0xe65d15;let {..._0x1fa749}=_0x3c605c({},se,this['_config']);this['_configService'][_0x508a9d(0x26a)]('sheets-shape.config',_0x1fa749);}[_0x1a417c(0x20e)](){const _0xd1d204=_0x1a417c;let _0x334b64=this[_0xd1d204(0x244)];[[H],[G],[ce]]['forEach'](_0xa41ef5=>_0x334b64[_0xd1d204(0x25d)](_0xa41ef5)),_0x5c294e(_0x334b64,[[G],[ce]]);}};V($,_0x1a417c(0x258),_0x26716f[_0x1a417c(0x221)]),V($,_0x1a417c(0x23f),_0x1a417c(0x213)),V($,_0x1a417c(0x248),ae),V($,'version',oe),$=W([_0x4c451e(_0x3785ee),U(0x1,_0xca6a11(_0x4e72d8)),U(0x2,_0x285fd2),U(0x3,_0x3c3bf5)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
1
+ const _0x26c497=_0x48a4;(function(_0x3c1614,_0x8a4965){const _0x1a71b2=_0x48a4,_0x40a448=_0x3c1614();while(!![]){try{const _0x2b0243=parseInt(_0x1a71b2(0xd5))/0x1*(-parseInt(_0x1a71b2(0x144))/0x2)+parseInt(_0x1a71b2(0x12f))/0x3*(-parseInt(_0x1a71b2(0xfd))/0x4)+-parseInt(_0x1a71b2(0xeb))/0x5*(parseInt(_0x1a71b2(0x100))/0x6)+-parseInt(_0x1a71b2(0xed))/0x7*(-parseInt(_0x1a71b2(0x129))/0x8)+parseInt(_0x1a71b2(0x15e))/0x9*(parseInt(_0x1a71b2(0x148))/0xa)+parseInt(_0x1a71b2(0xec))/0xb+-parseInt(_0x1a71b2(0x11c))/0xc;if(_0x2b0243===_0x8a4965)break;else _0x40a448['push'](_0x40a448['shift']());}catch(_0x10a02f){_0x40a448['push'](_0x40a448['shift']());}}}(_0x1d94,0xa02cc));import{ShapeModel as _0x155cd2,computeConnectorRouteLayout as _0x1cd34f,getBasicShapeRotateBound as _0x420ab7,isConnectorShape as _0x45d4e8,routeConnectorLineShape as _0x37d66d}from'@univerjs-pro/engine-shape';function _0x1d94(){const _0x4b1f04=['forEach','getCellIndexAndOffsetByPosition','_serializeShapeForUnit','sheet.mutation.update-shape-type','push','getBatchUpdateOp','_shapes','2062xQYfHf','keys','getSkeleton','_initCommandInterceptor','10YfIQuU','fill','getDrawingByParam','_deserializeShapeForUnit','_groupIds','lineType','width','isFrom','_initCommands','getDrawingData','sheet.command.update-line-shape-resize','delete','stringify','adjustValues','onCommandExecute','iterator','_sheetSkeletonService','getBasicShapeType','has','sheet.command.insert-shape','getBatchAddOp','index','10060029FQDyBw','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','interceptCommand','MUTATION','lineShapeId','getShapeType','getConnectionSiteList','length','getAdjustNames','string','sheet.command.set-shape-rotate','_ensureShapeModelManager','defineProperty','sheet.mutation.update-shape-data','left','rotation','flipX','startX','shapeId','position','getLineShapeRelation','getBasicShapeRelation','sheet.command.set-shape-text-vertical-toggle','clear','parse','743CWebtX','_config','worldRect','insertShape','type','rotateEnabled','resizeEnabled','sheet.mutation.remove-shape','cos','syncExecuteCommand','UPDATE','get','getOwnPropertyDescriptor','setConfig','getShapeTextData','_sheetsShapeService','startY','getAdjustValueByName','decorate','removeLinePoints','pushUndoRedo','sheet.mutation.insert-shape','1525vjKUER','10459944JoDvpB','14XymoRz','UNIVER_SHEET','prototype','getShapeData','from','sheet.command.update-connector-relation','assign','_configService','COMMAND','_addLineFollowShapeUpdates','ang','default','getShapeRelation','redos','angle','sheet.command.toggle-shape-flip','124748ybGHOT','0.25.1','getCellWithCoordByIndex','3504mVMlAZ','transform','params','SHEET_SHAPE_PLUGIN','toJSON','set','_commandService','addShape','drawingType','_addLineRerouteUpdates','toPrimitive','_initSnapshot','add','top','result','filter','_drawingManagerService','height','function','relation','preUndos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getEndConnectInfo','fromJSON','hasShape','data','cxnIndex','removeShape','17907612bYWPzA','_resourcesManagerService','registerPluginResource','setShapeType','sin','isLineShape','_getConnectPointInfo','disposeWithMe','object','constructor','_shapeModelManagerMap','_linesIds','ensureSkeleton','5218112aYRAbN','flipY','@univerjs-pro/sheets-shape','shapeData','call','setShapeData','27gHOgXi','DRAWING_SHAPE','preRedos','getStartConnectInfo','_sheetInterceptorService','range','INSERT','isHorizontal','borderEnabled','updateContext','symbol','undos','getShapeModel','dispose'];_0x1d94=function(){return _0x4b1f04;};return _0x1d94();}import{CommandType as _0x3e9504,DependentOn as _0x44491a,Disposable as _0x28b545,DrawingTypeEnum as _0x5e5e5b,ICommandService as _0x5b8310,IConfigService as _0x3ea937,IResourceManagerService as _0x54f492,IUndoRedoService as _0x4f939d,IUniverInstanceService as _0x70c7f6,Inject as _0x224b32,Injector as _0x5c089c,Plugin as _0x118c9a,UniverInstanceType as _0xd9deb1,generateRandomId as _0x15fabb,merge as _0x410777,sequenceExecute as _0x3a6f34,touchDependencies as _0x41ed94}from'@univerjs/core';import{SheetInterceptorService as _0x499171,SheetSkeletonService as _0xf2e92a,getSheetCommandTarget as _0x1d1d1e}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x286f04,DrawingApplyType as _0x5e6d34,ISheetDrawingService as _0x41f85d,InsertSheetDrawingCommand as _0xbe823c,RemoveSheetDrawingCommand as _0xd0523e,SetDrawingApplyMutation as _0x30ac56,SetSheetDrawingCommand as _0x238f6a,transformToAxisAlignPosition as _0x13d14d,transformToDrawingPosition as _0x4fa37c}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1f94d7}from'@univerjs-pro/license';import{IDrawingManagerService as _0x531999}from'@univerjs/drawing';const I=0xc8,L=0xc8;function R(_0x49f382){'@babel/helpers - typeof';const _0x2da745=_0x48a4;return R=typeof Symbol==_0x2da745(0x112)&&typeof Symbol[_0x2da745(0x157)]==_0x2da745(0x139)?function(_0x582e35){return typeof _0x582e35;}:function(_0x803fd4){const _0x271709=_0x2da745;return _0x803fd4&&typeof Symbol==_0x271709(0x112)&&_0x803fd4[_0x271709(0x125)]===Symbol&&_0x803fd4!==Symbol[_0x271709(0xef)]?_0x271709(0x139):typeof _0x803fd4;},R(_0x49f382);}function z(_0x5bc6a4,_0x26daa1){const _0x37233b=_0x48a4;if(R(_0x5bc6a4)!=_0x37233b(0x124)||!_0x5bc6a4)return _0x5bc6a4;var _0x256033=_0x5bc6a4[Symbol[_0x37233b(0x10a)]];if(_0x256033!==void 0x0){var _0xf8f055=_0x256033[_0x37233b(0x12d)](_0x5bc6a4,_0x26daa1||_0x37233b(0xf8));if(R(_0xf8f055)!=_0x37233b(0x124))return _0xf8f055;throw TypeError(_0x37233b(0x115));}return(_0x26daa1===_0x37233b(0x167)?String:Number)(_0x5bc6a4);}function B(_0x5cbab0){const _0x3f7bbf=_0x48a4;var _0x2503cb=z(_0x5cbab0,_0x3f7bbf(0x167));return R(_0x2503cb)==_0x3f7bbf(0x139)?_0x2503cb:_0x2503cb+'';}function V(_0x4f8cca,_0x565fdc,_0x5f57f7){const _0x3055d5=_0x48a4;return(_0x565fdc=B(_0x565fdc))in _0x4f8cca?Object[_0x3055d5(0x16a)](_0x4f8cca,_0x565fdc,{'value':_0x5f57f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f8cca[_0x565fdc]=_0x5f57f7,_0x4f8cca;}var H=class extends _0x28b545{constructor(){const _0x43f9e0=_0x48a4;super(),V(this,'_shapes',new Map()),V(this,'_linesIds',new Set()),V(this,_0x43f9e0(0x14c),new Set());}[_0x26c497(0x107)](_0xfcbee,_0x5538b8,_0x128938){const _0x1e767a=_0x26c497;let _0x17cd9a=new _0x155cd2(_0xfcbee,_0x5538b8,_0x128938);return this[_0x1e767a(0x143)][_0x1e767a(0x105)](_0x5538b8,_0x17cd9a),_0x45d4e8(_0xfcbee)&&this[_0x1e767a(0x127)][_0x1e767a(0x10c)](_0x5538b8),_0x17cd9a;}[_0x26c497(0xd1)](_0x3b6a43){const _0x1544f0=_0x26c497;let _0x42bfc8=[];for(let _0x172f5e of this[_0x1544f0(0x127)]){let _0x542e50=this[_0x1544f0(0x143)]['get'](_0x172f5e);if(_0x542e50){let _0x3c98c1=_0x542e50['getShapeRelation']();if(_0x3c98c1){var _0x11cad0,_0x4dc3cc;((_0x11cad0=_0x3c98c1[_0x1544f0(0xf1)])==null?void 0x0:_0x11cad0[_0x1544f0(0x170)])===_0x3b6a43&&_0x42bfc8['push']({..._0x3c98c1[_0x1544f0(0xf1)],'lineShapeId':_0x172f5e,'isFrom':!0x0}),((_0x4dc3cc=_0x3c98c1['to'])==null?void 0x0:_0x4dc3cc['shapeId'])===_0x3b6a43&&_0x42bfc8[_0x1544f0(0x141)]({..._0x3c98c1['to'],'lineShapeId':_0x172f5e,'isFrom':!0x1});}}}return _0x42bfc8;}[_0x26c497(0xd0)](_0x5e5d06){const _0xbc7a37=_0x26c497;let _0x5469a4=this[_0xbc7a37(0x143)][_0xbc7a37(0xe0)](_0x5e5d06);if(_0x5469a4)return _0x5469a4['getShapeRelation']();}[_0x26c497(0x163)](_0x2fbffa){const _0x3f7c05=_0x26c497;let _0x2b7734=this[_0x3f7c05(0x143)]['get'](_0x2fbffa);if(_0x2b7734)return _0x2b7734[_0x3f7c05(0x163)]();}[_0x26c497(0x118)](_0x1bbaa6){const _0x32e7d9=_0x26c497;return this[_0x32e7d9(0x143)][_0x32e7d9(0x15a)](_0x1bbaa6);}['removeShape'](_0x59211b){const _0x67f8e2=_0x26c497;let _0x1bfb24=this[_0x67f8e2(0x143)]['get'](_0x59211b);_0x1bfb24&&(_0x45d4e8(_0x1bfb24['getShapeType']())&&this[_0x67f8e2(0x127)][_0x67f8e2(0x153)](_0x59211b),this[_0x67f8e2(0x143)][_0x67f8e2(0x153)](_0x59211b));}[_0x26c497(0x104)](){const _0x39390f=_0x26c497;let _0x17b91d=[];return this[_0x39390f(0x143)][_0x39390f(0x13d)](_0x262d65=>{const _0x4608a9=_0x39390f;_0x17b91d[_0x4608a9(0x141)](_0x262d65['toJSON']());}),_0x17b91d;}[_0x26c497(0x117)](_0x366811){const _0x281061=_0x26c497;for(let _0x5886b6 of _0x366811){let {id:_0x1613eb,shapeType:_0x381818}=_0x5886b6,_0x2a53f9=this['addShape'](_0x381818,_0x1613eb,_0x5886b6[_0x281061(0x12c)]);_0x2a53f9&&_0x2a53f9[_0x281061(0x121)]()&&this['_linesIds'][_0x281061(0x10c)](_0x1613eb);}}[_0x26c497(0x13c)](){const _0x52ec68=_0x26c497;this['_disposed']||(this['_shapes'][_0x52ec68(0x13d)](_0xe1f1b7=>{const _0x3b713e=_0x52ec68;_0xe1f1b7[_0x3b713e(0x13c)]();}),this[_0x52ec68(0x143)][_0x52ec68(0xd3)](),this[_0x52ec68(0x127)]['clear'](),this[_0x52ec68(0x14c)][_0x52ec68(0xd3)](),super[_0x52ec68(0x13c)]());}};function U(_0x13c04a,_0x4793ab){return function(_0x16f67a,_0x25be65){_0x4793ab(_0x16f67a,_0x25be65,_0x13c04a);};}function W(_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e){const _0xf79c23=_0x26c497;var _0x5f49b9=arguments[_0xf79c23(0x165)],_0x5f4e33=_0x5f49b9<0x3?_0x365abd:_0x4efb1e===null?_0x4efb1e=Object[_0xf79c23(0xe1)](_0x365abd,_0x4d4665):_0x4efb1e,_0x4373be;if(typeof Reflect==_0xf79c23(0x124)&&typeof Reflect[_0xf79c23(0xe7)]==_0xf79c23(0x112))_0x5f4e33=Reflect[_0xf79c23(0xe7)](_0x3afaab,_0x365abd,_0x4d4665,_0x4efb1e);else{for(var _0x56fa29=_0x3afaab[_0xf79c23(0x165)]-0x1;_0x56fa29>=0x0;_0x56fa29--)(_0x4373be=_0x3afaab[_0x56fa29])&&(_0x5f4e33=(_0x5f49b9<0x3?_0x4373be(_0x5f4e33):_0x5f49b9>0x3?_0x4373be(_0x365abd,_0x4d4665,_0x5f4e33):_0x4373be(_0x365abd,_0x4d4665))||_0x5f4e33);}return _0x5f49b9>0x3&&_0x5f4e33&&Object[_0xf79c23(0x16a)](_0x365abd,_0x4d4665,_0x5f4e33),_0x5f4e33;}let G=class extends _0x28b545{constructor(_0x4b99ff){const _0x5c4884=_0x26c497;super(),this[_0x5c4884(0x11d)]=_0x4b99ff,V(this,_0x5c4884(0x126),new Map()),this[_0x5c4884(0x10b)]();}[_0x26c497(0x169)](_0x24e69e,_0x262e7e){const _0x3cb6e7=_0x26c497;let _0x2d5dfc=this[_0x3cb6e7(0x126)][_0x3cb6e7(0xe0)](_0x24e69e);_0x2d5dfc||(_0x2d5dfc=new Map(),this[_0x3cb6e7(0x126)][_0x3cb6e7(0x105)](_0x24e69e,_0x2d5dfc));let _0x2e9df6=_0x2d5dfc[_0x3cb6e7(0xe0)](_0x262e7e);return _0x2e9df6||(_0x2e9df6=new H(),_0x2d5dfc[_0x3cb6e7(0x105)](_0x262e7e,_0x2e9df6)),_0x2e9df6;}['insertShape'](_0x7d340,_0x1f2e90,_0x3783fe,_0x3365fc,_0x2a8820){const _0x1a56af=_0x26c497;this[_0x1a56af(0x169)](_0x7d340,_0x1f2e90)[_0x1a56af(0x107)](_0x3783fe,_0x3365fc,_0x2a8820);}[_0x26c497(0x11b)](_0x523cf7,_0x3c226a,_0x5650a4){const _0x469da0=_0x26c497;this[_0x469da0(0x169)](_0x523cf7,_0x3c226a)['removeShape'](_0x5650a4);}[_0x26c497(0x159)](_0xdab321,_0xb9c2ae,_0x23fe19){const _0x30314d=_0x26c497;return this[_0x30314d(0x169)](_0xdab321,_0xb9c2ae)[_0x30314d(0x163)](_0x23fe19);}[_0x26c497(0x163)](_0x4f92f2,_0x5ad2ce,_0x2a3cf3){const _0x5b5d48=_0x26c497;return this[_0x5b5d48(0x169)](_0x4f92f2,_0x5ad2ce)[_0x5b5d48(0x163)](_0x2a3cf3);}[_0x26c497(0x118)](_0x4f0b0b,_0x5820dc,_0x5ca91e){const _0x2013d9=_0x26c497;return this[_0x2013d9(0x169)](_0x4f0b0b,_0x5820dc)[_0x2013d9(0x118)](_0x5ca91e);}['getShapeTypeById'](_0x2de412,_0x34bb18,_0x5b74fc){const _0x40dd7e=_0x26c497;return this[_0x40dd7e(0x169)](_0x2de412,_0x34bb18)['getShapeType'](_0x5b74fc);}['getShapeDataById'](_0x302171,_0x50dd53,_0x51886f){const _0x461133=_0x26c497;let _0x2bb7ee=this[_0x461133(0x169)](_0x302171,_0x50dd53);if(!_0x2bb7ee[_0x461133(0x163)](_0x51886f))return;let _0x3f9e95=_0x2bb7ee[_0x461133(0x143)][_0x461133(0xe0)](_0x51886f);if(_0x3f9e95)return _0x3f9e95[_0x461133(0xf0)]();}[_0x26c497(0x13b)](_0x526f75,_0x1788ae,_0x1a7383){const _0x32039a=_0x26c497;return this[_0x32039a(0x169)](_0x526f75,_0x1788ae)['_shapes']['get'](_0x1a7383);}[_0x26c497(0xd1)](_0x15bd2a,_0xdcab3f,_0x2e30a4){const _0x484410=_0x26c497;return this[_0x484410(0x169)](_0x15bd2a,_0xdcab3f)['getBasicShapeRelation'](_0x2e30a4);}[_0x26c497(0xd0)](_0x3d69af,_0x292fb5,_0x204ba3){const _0xe7d09c=_0x26c497;let _0x4f1569=this[_0xe7d09c(0x169)](_0x3d69af,_0x292fb5)['_shapes'][_0xe7d09c(0xe0)](_0x204ba3);if(_0x4f1569)return _0x4f1569[_0xe7d09c(0xf9)]();}[_0x26c497(0x11f)](){}[_0x26c497(0x13f)](_0x170143){const _0x1b3707=_0x26c497;let _0x1d5822={},_0x2af644=this[_0x1b3707(0x126)][_0x1b3707(0xe0)](_0x170143);return _0x2af644&&_0x2af644[_0x1b3707(0x13d)]((_0x98408b,_0x821173)=>{const _0x432500=_0x1b3707;let _0x41c0dd=_0x98408b[_0x432500(0x104)]();_0x41c0dd[_0x432500(0x165)]>0x0&&(_0x1d5822[_0x821173]=_0x41c0dd);}),JSON[_0x1b3707(0x154)](_0x1d5822);}[_0x26c497(0x14b)](_0x3450f3,_0x20f76f){const _0xd4115f=_0x26c497;Object[_0xd4115f(0x145)](_0x20f76f)[_0xd4115f(0x13d)](_0x2cf43d=>{const _0x5b9b89=_0xd4115f;this[_0x5b9b89(0x169)](_0x3450f3,_0x2cf43d)['fromJSON'](_0x20f76f[_0x2cf43d]);});}[_0x26c497(0x104)](){let _0x3949c0={};return this['_shapeModelManagerMap']['forEach']((_0x1060f9,_0x583629)=>{const _0x5cc134=_0x48a4;_0x3949c0[_0x583629]={},_0x1060f9[_0x5cc134(0x13d)]((_0x16f962,_0x45cb97)=>{_0x3949c0[_0x583629][_0x45cb97]=_0x16f962['toJSON']();});}),_0x3949c0;}[_0x26c497(0x117)](_0x5cf92e){const _0x36f7a9=_0x26c497;Object[_0x36f7a9(0x145)](_0x5cf92e)[_0x36f7a9(0x13d)](_0x385f07=>{const _0xecfd04=_0x36f7a9;let _0xfa9fa4=_0x5cf92e[_0x385f07];Object[_0xecfd04(0x145)](_0xfa9fa4)[_0xecfd04(0x13d)](_0x55e8ad=>{const _0x1e9d27=_0xecfd04;this['_ensureShapeModelManager'](_0x385f07,_0x55e8ad)[_0x1e9d27(0x117)](_0xfa9fa4[_0x55e8ad]);});});}['_initSnapshot'](){const _0x1f3e8f=_0x26c497;this[_0x1f3e8f(0x11d)][_0x1f3e8f(0x11e)]({'pluginName':_0x1f3e8f(0x103),'businesses':[_0xd9deb1[_0x1f3e8f(0xee)]],'toJson':_0x401a25=>this[_0x1f3e8f(0x13f)](_0x401a25),'parseJson':_0x53060e=>JSON[_0x1f3e8f(0xd4)](_0x53060e),'onLoad':(_0x259681,_0xabb09d)=>{const _0x53756e=_0x1f3e8f;this[_0x53756e(0x14b)](_0x259681,_0xabb09d);},'onUnLoad':_0xaac5ff=>{const _0x1fb8bc=_0x1f3e8f;let _0x3dade4=this[_0x1fb8bc(0x126)][_0x1fb8bc(0xe0)](_0xaac5ff);_0x3dade4&&(_0x3dade4[_0x1fb8bc(0x13d)](_0x4291da=>{const _0x3f6b33=_0x1fb8bc;_0x4291da[_0x3f6b33(0x13c)]();}),this[_0x1fb8bc(0x126)][_0x1fb8bc(0x153)](_0xaac5ff));}});}[_0x26c497(0x13c)](){this['_shapeModelManagerMap']['forEach'](_0x56db29=>{const _0x4ab5d4=_0x48a4;_0x56db29[_0x4ab5d4(0x13d)](_0x35e43f=>{const _0x18ab3b=_0x4ab5d4;_0x35e43f[_0x18ab3b(0x13c)]();});});}};G=W([U(0x0,_0x54f492)],G);const K={'id':_0x26c497(0xea),'type':_0x3e9504['MUTATION'],'handler':(_0x9aa014,_0x5a0978)=>{const _0x1e718a=_0x26c497;let {unitId:_0xf4d0aa,subUnitId:_0x533484,shapeType:_0x32e362,shapeId:_0x161492,shapeData:_0x2b0ea6}=_0x5a0978;return _0x9aa014[_0x1e718a(0xe0)](G)[_0x1e718a(0xd8)](_0xf4d0aa,_0x533484,_0x32e362,_0x161492,_0x2b0ea6),!0x0;}},q={'id':_0x26c497(0xdc),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x3cd920,_0x56e80c)=>{const _0x520dc0=_0x26c497;let {unitId:_0x233503,subUnitId:_0x595c21,shapeId:_0x3db2c0}=_0x56e80c;return _0x3cd920[_0x520dc0(0xe0)](G)[_0x520dc0(0x11b)](_0x233503,_0x595c21,_0x3db2c0),!0x0;}},J={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0x15b),'handler':(_0x2c27d0,_0x454bf0)=>{const _0x34291a=_0x26c497;var _0x3d737a,_0x4cf013;let _0x8550a5=_0x1d1d1e(_0x2c27d0[_0x34291a(0xe0)](_0x70c7f6),_0x454bf0);if(!_0x8550a5)return!0x1;let _0x158328=_0x2c27d0[_0x34291a(0xe0)](_0xf2e92a),{unitId:_0x56edde,subUnitId:_0x420415}=_0x8550a5,_0x4db6e0=_0x158328['ensureSkeleton'](_0x56edde,_0x420415);if(!_0x4db6e0)return!0x1;let _0x5931c9=_0x2c27d0[_0x34291a(0xe0)](_0x5b8310),_0x2c6ba9=_0x2c27d0['get'](_0x4f939d),_0x52a1b3=_0x2c27d0['get'](_0x499171),_0x1e97dd=_0x2c27d0[_0x34291a(0xe0)](_0x41f85d),{shapeType:_0x22d9d,shapeData:_0x751a47}=_0x454bf0,_0x20e007=_0x454bf0[_0x34291a(0x170)]||_0x15fabb(),_0x4ea29e={'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007,'shapeType':_0x22d9d,'shapeData':_0x751a47},_0x37c2f2=_0x454bf0['width']||0xc8,_0x664d32=_0x454bf0[_0x34291a(0x111)]||0xc8,_0x3ed4a6=0x0,_0x504b9e=0x0,_0x5dc65f={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x322d25={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x454bf0[_0x34291a(0x171)]){let {x:_0x30018f,y:_0x4c0c50}=_0x454bf0['position'];_0x3ed4a6=_0x30018f,_0x504b9e=_0x4c0c50,_0x5dc65f=_0x4db6e0[_0x34291a(0x13e)](_0x30018f,_0x4c0c50),_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x30018f+_0x37c2f2,_0x4c0c50+_0x664d32);}else{if(_0x454bf0[_0x34291a(0x134)]){let {startRow:_0x35556a,startColumn:_0x8c66d9}=_0x454bf0[_0x34291a(0x134)];_0x5dc65f={'row':_0x35556a,'rowOffset':0xa,'column':_0x8c66d9,'columnOffset':0xa};let _0x2213a5=_0x4db6e0[_0x34291a(0xff)](_0x35556a,_0x8c66d9);_0x3ed4a6=_0x2213a5[_0x34291a(0x16f)]+0xa,_0x504b9e=_0x2213a5[_0x34291a(0xe5)]+0xa,_0x322d25=_0x4db6e0[_0x34291a(0x13e)](_0x3ed4a6+_0x37c2f2,_0x504b9e+_0x664d32);}}let _0x43a997={'from':_0x5dc65f,'to':_0x322d25},_0x17fd16={'unitId':_0x56edde,'subUnitId':_0x420415,'drawingId':_0x20e007,'drawingType':_0x5e5e5b[_0x34291a(0x130)],'sheetTransform':_0x43a997,'transform':{'left':_0x3ed4a6,'top':_0x504b9e,'width':_0x37c2f2,'height':_0x664d32},'data':{'shapeType':_0x22d9d,'shapeData':_0x751a47},'axisAlignSheetTransform':_0x43a997,'allowTransform':!0x0};_0x45d4e8(_0x22d9d)&&(_0x17fd16[_0x34291a(0x119)]['fill']=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0xdb)]=!0x1,_0x17fd16[_0x34291a(0x119)][_0x34291a(0x137)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xda)]=!0x1,_0x17fd16[_0x34291a(0x101)][_0x34291a(0xdb)]=!0x1,_0x17fd16['transform']['borderEnabled']=!0x1);let {undo:_0xf315e9,redo:_0x1ec50e,objects:_0x34484b}=_0x1e97dd[_0x34291a(0x15c)]([_0x17fd16]),_0xf99a43=_0x52a1b3[_0x34291a(0x156)]({'id':_0xbe823c['id'],'params':{'unitId':_0x56edde,'drawings':[_0x17fd16]}}),_0x55643b=[...(_0x3d737a=_0xf99a43[_0x34291a(0x131)])==null?[]:_0x3d737a,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0x1ec50e,'objects':_0x34484b,'type':_0x5e6d34[_0x34291a(0x135)]}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0xfa)],{'id':K['id'],'params':_0x4ea29e}],_0x4868cf=[{'id':q['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'shapeId':_0x20e007}},...(_0x4cf013=_0xf99a43[_0x34291a(0x114)])==null?[]:_0x4cf013,{'id':_0x30ac56['id'],'params':{'unitId':_0x56edde,'subUnitId':_0x420415,'op':_0xf315e9,'objects':_0x34484b,'type':_0x5e6d34['REMOVE']}},{'id':_0x286f04['id'],'params':[_0x56edde]},..._0xf99a43[_0x34291a(0x13a)]];return _0x3a6f34(_0x55643b,_0x5931c9)[_0x34291a(0x10e)]?(_0x2c6ba9[_0x34291a(0xe9)]({'unitID':_0x56edde,'undoMutations':_0x4868cf,'redoMutations':_0x55643b}),!0x0):!0x1;}},Y={'id':_0x26c497(0x16b),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x166154,_0x2fa193)=>{const _0x23b08a=_0x26c497;let {unitId:_0x58f341,subUnitId:_0x2c7ee7,shapeType:_0x4e5e9b,shapeId:_0x315414,shapeData:_0x678c8d}=_0x2fa193,_0x4be03e=_0x166154[_0x23b08a(0xe0)](G)[_0x23b08a(0x13b)](_0x58f341,_0x2c7ee7,_0x315414);return _0x4be03e&&(_0x4e5e9b!==void 0x0&&_0x4be03e[_0x23b08a(0x11f)](_0x4e5e9b),_0x678c8d&&(_0x4be03e==null||_0x4be03e[_0x23b08a(0x12e)](_0x678c8d,!0x0))),!0x0;}},ee={'type':_0x3e9504[_0x26c497(0xf5)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x98ff5e,_0x1e07af)=>{const _0x26f5ab=_0x26c497;var _0x43a3dd,_0x1d3c65;let _0x3dd426=_0x1d1d1e(_0x98ff5e[_0x26f5ab(0xe0)](_0x70c7f6),_0x1e07af);if(!_0x3dd426)return!0x1;let _0x53b7c2=_0x98ff5e[_0x26f5ab(0xe0)](_0xf2e92a),{unitId:_0xa1ec7f,subUnitId:_0xc7bc36}=_0x3dd426,_0x4b1cce=_0x53b7c2[_0x26f5ab(0x128)](_0xa1ec7f,_0xc7bc36);if(!_0x4b1cce)return!0x1;let _0x340b81=_0x98ff5e[_0x26f5ab(0xe0)](G),{shapeId:_0x3630d1,shapeType:_0x2710a5,shapeData:_0x2d0fc6,position:_0x5aa5e5,width:_0x3151bc,height:_0x112586}=_0x1e07af,_0x1117d2=_0x340b81[_0x26f5ab(0x13b)](_0xa1ec7f,_0xc7bc36,_0x3630d1);if(!_0x1117d2)return!0x1;let _0x255174=_0x98ff5e[_0x26f5ab(0xe0)](_0x5b8310),_0x3a269a=_0x98ff5e[_0x26f5ab(0xe0)](_0x4f939d),_0x5e5fac=_0x98ff5e[_0x26f5ab(0xe0)](_0x499171),_0x408ca1=_0x98ff5e[_0x26f5ab(0xe0)](_0x41f85d),_0xca3b78={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeId':_0x3630d1,'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},_0x115019=_0x1117d2[_0x26f5ab(0x163)](),_0x53651c=_0x1117d2[_0x26f5ab(0xf0)](),{x:_0x591ab8,y:_0x52f890}=_0x5aa5e5,_0x429642={'from':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8,_0x52f890),'to':_0x4b1cce[_0x26f5ab(0x13e)](_0x591ab8+_0x3151bc,_0x52f890+_0x112586)},_0x4e61cd={'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'drawingId':_0x3630d1,'drawingType':_0x5e5e5b[_0x26f5ab(0x130)],'sheetTransform':_0x429642,'transform':{'left':_0x591ab8,'top':_0x52f890,'width':_0x3151bc,'height':_0x112586},'data':{'shapeType':_0x2710a5,'shapeData':_0x2d0fc6},'axisAlignSheetTransform':_0x429642,'allowTransform':!0x0};_0x45d4e8(_0x2710a5)&&(_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x149)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xda)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x119)][_0x26f5ab(0x137)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)]['rotateEnabled']=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0xdb)]=!0x1,_0x4e61cd[_0x26f5ab(0x101)][_0x26f5ab(0x137)]=!0x1);let {undo:_0x49bf3d,redo:_0x36e9ea,objects:_0x29b7d6}=_0x408ca1[_0x26f5ab(0x142)]([_0x4e61cd]),_0x3c1289=_0x5e5fac['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0xa1ec7f,'drawings':[_0x4e61cd]}}),_0x1238b6=[...(_0x43a3dd=_0x3c1289['preRedos'])==null?[]:_0x43a3dd,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x36e9ea,'objects':_0x29b7d6,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0xfa)],{'id':Y['id'],'params':_0xca3b78}],_0x224c97=[...(_0x1d3c65=_0x3c1289[_0x26f5ab(0x114)])==null?[]:_0x1d3c65,{'id':_0x30ac56['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'op':_0x49bf3d,'objects':_0x29b7d6,'type':_0x5e6d34[_0x26f5ab(0xdf)]}},{'id':_0x286f04['id'],'params':[_0xa1ec7f]},..._0x3c1289[_0x26f5ab(0x13a)],{'id':Y['id'],'params':{'unitId':_0xa1ec7f,'subUnitId':_0xc7bc36,'shapeType':_0x115019,'shapeId':_0x3630d1,'shapeData':_0x53651c}}];return _0x3a6f34(_0x1238b6,_0x255174)['result']?(_0x3a269a['pushUndoRedo']({'unitID':_0xa1ec7f,'undoMutations':_0x224c97,'redoMutations':_0x1238b6}),!0x0):!0x1;}},te={'type':_0x3e9504[_0x26c497(0xf5)],'id':_0x26c497(0xfc),'handler':(_0x122e06,_0x789a7b)=>{const _0x2e9f1d=_0x26c497;var _0x316003,_0x21c296;let _0x52bc5c=_0x1d1d1e(_0x122e06[_0x2e9f1d(0xe0)](_0x70c7f6),_0x789a7b);if(!_0x52bc5c)return!0x1;let _0x37151f=_0x122e06[_0x2e9f1d(0xe0)](_0xf2e92a),{unitId:_0x22550e,subUnitId:_0x2d5a8d}=_0x52bc5c,_0x3240e1=_0x37151f['getSkeleton'](_0x22550e,_0x2d5a8d);if(!_0x3240e1)return!0x1;let _0x3289cb=_0x122e06[_0x2e9f1d(0xe0)](_0x41f85d),{shapeId:_0x2964dc,flipH:_0x12aee5,flipV:_0x3307dc}=_0x789a7b,_0x40f8b5=_0x3289cb['getDrawingByParam']({'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc});if(!_0x40f8b5)return!0x1;let _0x26413f=_0x122e06[_0x2e9f1d(0xe0)](G)[_0x2e9f1d(0x13b)](_0x22550e,_0x2d5a8d,_0x2964dc);if(!_0x26413f)return!0x1;let _0x2f50c6=_0x122e06['get'](_0x5b8310),_0x48951e=_0x122e06[_0x2e9f1d(0xe0)](_0x4f939d),_0x55d89f=_0x122e06[_0x2e9f1d(0xe0)](_0x499171),_0x465299={..._0x40f8b5[_0x2e9f1d(0x101)]};_0x12aee5!==void 0x0&&(_0x465299[_0x2e9f1d(0x16e)]=!_0x465299[_0x2e9f1d(0x16e)]),_0x3307dc!==void 0x0&&(_0x465299[_0x2e9f1d(0x12a)]=!_0x465299[_0x2e9f1d(0x12a)]);let _0x5a18b1=_0x4fa37c(_0x465299,_0x3240e1),_0x55741b=_0x13d14d(_0x465299,_0x3240e1),_0x6d1621=_0x26413f[_0x2e9f1d(0x163)](),_0x2e8173=_0x26413f['getShapeData'](),_0x202935={'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'drawingId':_0x2964dc,'drawingType':_0x5e5e5b[_0x2e9f1d(0x130)],'sheetTransform':_0x5a18b1,'transform':_0x465299,'data':{'shapeType':_0x6d1621,'shapeData':_0x2e8173},'axisAlignSheetTransform':_0x55741b,'allowTransform':!0x0},{undo:_0x195e51,redo:_0x1016cf,objects:_0x384042}=_0x3289cb[_0x2e9f1d(0x142)]([_0x202935]),_0x131507=_0x55d89f[_0x2e9f1d(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x22550e,'drawings':[_0x202935]}}),_0x398d5c=[...(_0x316003=_0x131507[_0x2e9f1d(0x131)])==null?[]:_0x316003,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x1016cf,'objects':_0x384042,'type':_0x5e6d34[_0x2e9f1d(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0xfa)]],_0x1fae9f=[...(_0x21c296=_0x131507[_0x2e9f1d(0x114)])==null?[]:_0x21c296,{'id':_0x30ac56['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'op':_0x195e51,'objects':_0x384042,'type':_0x5e6d34['UPDATE']}},{'id':_0x286f04['id'],'params':[_0x22550e]},..._0x131507[_0x2e9f1d(0x13a)]];if(_0x45d4e8(_0x6d1621)){let _0x595ba9=_0x26413f[_0x2e9f1d(0xf9)]();if(_0x595ba9){let _0x10f4a1={..._0x595ba9};_0x10f4a1['from']=void 0x0,_0x10f4a1['to']=void 0x0,_0x398d5c[_0x2e9f1d(0x141)]({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x10f4a1}}}),_0x1fae9f['push']({'id':Y['id'],'params':{'unitId':_0x22550e,'subUnitId':_0x2d5a8d,'shapeId':_0x2964dc,'shapeType':_0x6d1621,'shapeData':{'relation':_0x595ba9}}});}}return _0x3a6f34(_0x398d5c,_0x2f50c6)['result']?(_0x48951e[_0x2e9f1d(0xe9)]({'unitID':_0x22550e,'undoMutations':_0x1fae9f,'redoMutations':_0x398d5c}),!0x0):!0x1;}},X={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x168),'handler':(_0xaefcfe,_0x570736)=>{const _0x4c2ac9=_0x26c497;var _0xa213ec,_0x3d04b0;let _0x224521=_0x1d1d1e(_0xaefcfe[_0x4c2ac9(0xe0)](_0x70c7f6),_0x570736);if(!_0x224521)return!0x1;let _0x474566=_0xaefcfe[_0x4c2ac9(0xe0)](_0xf2e92a),{unitId:_0x2d7c6e,subUnitId:_0x1c05ac}=_0x224521,_0x2ee746=_0x474566['getSkeleton'](_0x2d7c6e,_0x1c05ac);if(!_0x2ee746)return!0x1;let _0x2d0d18=_0xaefcfe[_0x4c2ac9(0xe0)](_0x41f85d),{shapeId:_0x5c791f,rotate:_0x243eea}=_0x570736,_0x65a673=_0x2d0d18[_0x4c2ac9(0x14a)]({'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f});if(!_0x65a673)return!0x1;let _0x4ff02e=_0xaefcfe[_0x4c2ac9(0xe0)](G)['getShapeModel'](_0x2d7c6e,_0x1c05ac,_0x5c791f);if(!_0x4ff02e)return!0x1;let _0x3a5e74=_0xaefcfe[_0x4c2ac9(0xe0)](_0x5b8310),_0x16bde5=_0xaefcfe[_0x4c2ac9(0xe0)](_0x4f939d),_0x181830=_0xaefcfe[_0x4c2ac9(0xe0)](_0x499171),_0x48caf5={..._0x65a673[_0x4c2ac9(0x101)]};_0x243eea!==void 0x0&&(_0x48caf5[_0x4c2ac9(0xfb)]=(_0x48caf5['angle']||0x0)+_0x243eea);let _0x534004=_0x4fa37c(_0x48caf5,_0x2ee746),_0x5598bd=_0x13d14d(_0x48caf5,_0x2ee746),_0x1db777=_0x4ff02e[_0x4c2ac9(0x163)](),_0x1169e3=_0x4ff02e['getShapeData'](),_0x43a563={'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'drawingId':_0x5c791f,'drawingType':_0x5e5e5b[_0x4c2ac9(0x130)],'sheetTransform':_0x534004,'transform':_0x48caf5,'data':{'shapeType':_0x1db777,'shapeData':_0x1169e3},'axisAlignSheetTransform':_0x5598bd,'allowTransform':!0x0},{undo:_0x577541,redo:_0x54249a,objects:_0x614f98}=_0x2d0d18['getBatchUpdateOp']([_0x43a563]),_0xe27102=_0x181830[_0x4c2ac9(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x2d7c6e,'drawings':[_0x43a563]}}),_0x3baa24=[...(_0xa213ec=_0xe27102[_0x4c2ac9(0x131)])==null?[]:_0xa213ec,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x54249a,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102['redos']],_0x2637f2=[...(_0x3d04b0=_0xe27102[_0x4c2ac9(0x114)])==null?[]:_0x3d04b0,{'id':_0x30ac56['id'],'params':{'unitId':_0x2d7c6e,'subUnitId':_0x1c05ac,'op':_0x577541,'objects':_0x614f98,'type':_0x5e6d34[_0x4c2ac9(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x2d7c6e]},..._0xe27102[_0x4c2ac9(0x13a)]];return _0x3a6f34(_0x3baa24,_0x3a5e74)[_0x4c2ac9(0x10e)]?(_0x16bde5['pushUndoRedo']({'unitID':_0x2d7c6e,'undoMutations':_0x2637f2,'redoMutations':_0x3baa24}),!0x0):!0x1;}},Z={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xd2),'handler':(_0x93b416,_0x11aa62)=>{const _0x45f2f5=_0x26c497;var _0x1ffe49;let _0xdbf691=_0x1d1d1e(_0x93b416[_0x45f2f5(0xe0)](_0x70c7f6),_0x11aa62);if(!_0xdbf691)return!0x1;let {unitId:_0x50c62d,subUnitId:_0x3dde17}=_0xdbf691,{shapeId:_0x1b3e6d}=_0x11aa62,_0x1eb255=_0x93b416[_0x45f2f5(0xe0)](G)['getShapeModel'](_0x50c62d,_0x3dde17,_0x1b3e6d);if(!_0x1eb255)return!0x1;let _0x51a863=_0x1eb255[_0x45f2f5(0xe3)](),_0x5325cf=(_0x1ffe49=_0x51a863==null?void 0x0:_0x51a863[_0x45f2f5(0x136)])==null?!0x0:_0x1ffe49,_0x362488=!_0x5325cf,_0x2582b3=_0x93b416[_0x45f2f5(0xe0)](_0x5b8310),_0x17cdb1=_0x93b416[_0x45f2f5(0xe0)](_0x4f939d),_0x385bf6={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x362488}}},_0x1f5e34={'unitId':_0x50c62d,'subUnitId':_0x3dde17,'shapeId':_0x1b3e6d,'shapeData':{'shapeText':{'isHorizontal':_0x5325cf}}},_0x40cd13=[{'id':Y['id'],'params':_0x385bf6}],_0x21fe59=[{'id':Y['id'],'params':_0x1f5e34}];return _0x3a6f34(_0x40cd13,_0x2582b3)[_0x45f2f5(0x10e)]?(_0x17cdb1[_0x45f2f5(0xe9)]({'unitID':_0x50c62d,'undoMutations':_0x21fe59,'redoMutations':_0x40cd13}),!0x0):!0x1;}},ne={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0xf2),'handler':(_0x583433,_0x593494)=>{const _0x309c4b=_0x26c497;var _0x566c89,_0x3d07b0,_0x2d60c2,_0x1f2281;let _0x5ba37e=_0x1d1d1e(_0x583433[_0x309c4b(0xe0)](_0x70c7f6),_0x593494);if(!_0x5ba37e)return!0x1;let _0x35ed10=_0x583433[_0x309c4b(0xe0)](_0xf2e92a),{unitId:_0x406edf,subUnitId:_0x4c277e}=_0x5ba37e,_0xaec5ce=_0x35ed10[_0x309c4b(0x146)](_0x406edf,_0x4c277e);if(!_0xaec5ce)return!0x1;let _0x152784=_0x583433['get'](_0x41f85d),{connectorShapeId:_0x2d8cc9,width:_0x3b599c,height:_0x12c807,left:_0x4d506e,top:_0x1ee9aa,flipX:_0x45a36b,flipY:_0x1e0202,rotation:_0x2bb0da,oldAdjustValues:_0x40a8e2,newAdjustValues:_0x5937e3,oldLineType:_0x41e464,newLineType:_0x1215d0,oldRelation:_0x2bfa5f,newRelation:_0x5f4468}=_0x593494,_0x5010d9=_0x152784[_0x309c4b(0x14a)]({'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9});if(!_0x5010d9)return!0x1;let _0x37c194=_0x583433[_0x309c4b(0xe0)](G)['getShapeModel'](_0x406edf,_0x4c277e,_0x2d8cc9);if(!_0x37c194)return!0x1;let _0x565bcf=_0x583433[_0x309c4b(0xe0)](_0x5b8310),_0x2db390=_0x583433[_0x309c4b(0xe0)](_0x4f939d),_0x571a04=_0x583433[_0x309c4b(0xe0)](_0x499171),_0x4b18a5={..._0x5010d9[_0x309c4b(0x101)],'width':_0x3b599c,'height':_0x12c807,'left':_0x4d506e,'top':_0x1ee9aa,'flipX':_0x45a36b,'flipY':_0x1e0202,'angle':(_0x566c89=_0x2bb0da==null?(_0x3d07b0=_0x5010d9['transform'])==null?void 0x0:_0x3d07b0[_0x309c4b(0xfb)]:_0x2bb0da)==null?0x0:_0x566c89},_0x2fb48e=_0x4fa37c(_0x4b18a5,_0xaec5ce),_0x2d2f13=_0x13d14d(_0x4b18a5,_0xaec5ce),_0x954c9d=_0x37c194[_0x309c4b(0x163)](),_0x48249f=_0x37c194[_0x309c4b(0xf0)](),_0x4e74b5={'unitId':_0x406edf,'subUnitId':_0x4c277e,'drawingId':_0x2d8cc9,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'sheetTransform':_0x2fb48e,'transform':_0x4b18a5,'data':{'shapeType':_0x1215d0||_0x41e464||_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x5937e3||_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x5f4468||_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}},'axisAlignSheetTransform':_0x2d2f13,'allowTransform':!0x0},{undo:_0x5a6597,redo:_0x418c69,objects:_0x12d9db}=_0x152784[_0x309c4b(0x142)]([_0x4e74b5]),_0x190368=_0x571a04[_0x309c4b(0x156)]({'id':_0x238f6a['id'],'params':{'unitId':_0x406edf,'drawings':[_0x4e74b5]}}),_0x1d87a9=[...(_0x2d60c2=_0x190368['preRedos'])==null?[]:_0x2d60c2,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x418c69,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368['redos'],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x1215d0,'shapeData':{'adjustValues':_0x5937e3,'relation':_0x5f4468}}}],_0x29d5f9=[...(_0x1f2281=_0x190368[_0x309c4b(0x114)])==null?[]:_0x1f2281,{'id':_0x30ac56['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'op':_0x5a6597,'objects':_0x12d9db,'type':_0x5e6d34[_0x309c4b(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x406edf]},..._0x190368[_0x309c4b(0x13a)],{'id':Y['id'],'params':{'unitId':_0x406edf,'subUnitId':_0x4c277e,'shapeId':_0x2d8cc9,'shapeType':_0x954c9d,'shapeData':{..._0x48249f,'adjustValues':_0x40a8e2||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x155)]),'relation':_0x2bfa5f||(_0x48249f==null?void 0x0:_0x48249f[_0x309c4b(0x113)])}}}];return _0x3a6f34(_0x1d87a9,_0x565bcf)[_0x309c4b(0x10e)]?(_0x2db390[_0x309c4b(0xe9)]({'unitID':_0x406edf,'undoMutations':_0x29d5f9,'redoMutations':_0x1d87a9}),!0x0):!0x1;}},re={'type':_0x3e9504['COMMAND'],'id':_0x26c497(0x152),'handler':(_0x27b0cd,_0x45d01c)=>{const _0x3acb89=_0x26c497;var _0x40849c,_0x18c34e;let _0x5223b0=_0x1d1d1e(_0x27b0cd[_0x3acb89(0xe0)](_0x70c7f6),_0x45d01c);if(!_0x5223b0)return!0x1;let _0x379f5a=_0x27b0cd[_0x3acb89(0xe0)](_0xf2e92a),{unitId:_0x80e8d2,subUnitId:_0x3576b7}=_0x5223b0,_0x2e4090=_0x379f5a['getSkeleton'](_0x80e8d2,_0x3576b7);if(!_0x2e4090)return!0x1;let _0xa104d1=_0x27b0cd['get'](_0x41f85d),{shapeId:_0x5cb93e,width:_0x4f06a4,height:_0x5ac3bd,left:_0x1f35c3,top:_0x559f1d,flipX:_0xfe20f0,flipY:_0x167ea2,angle:_0x37429c,oldAdjustValues:_0x2105fd,newAdjustValues:_0x19cbd9,oldLineType:_0x11ac87,newLineType:_0x1ae2ae}=_0x45d01c,_0x59f67a=_0xa104d1[_0x3acb89(0x14a)]({'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e});if(!_0x59f67a)return!0x1;let _0x1b565d=_0x27b0cd['get'](G)[_0x3acb89(0x13b)](_0x80e8d2,_0x3576b7,_0x5cb93e);if(!_0x1b565d)return!0x1;let _0x5901be=_0x27b0cd['get'](_0x5b8310),_0x3f5783=_0x27b0cd[_0x3acb89(0xe0)](_0x4f939d),_0x2d4abb=_0x27b0cd['get'](_0x499171),_0x4ffad3={..._0x59f67a[_0x3acb89(0x101)],'width':_0x4f06a4,'height':_0x5ac3bd,'left':_0x1f35c3,'top':_0x559f1d,'flipX':_0xfe20f0,'flipY':_0x167ea2,'angle':_0x37429c},_0x5da79c=_0x4fa37c(_0x4ffad3,_0x2e4090),_0x129615=_0x13d14d(_0x4ffad3,_0x2e4090),_0x413dff=_0x1b565d['getShapeType'](),_0x537b20=_0x1b565d[_0x3acb89(0xf0)](),_0x303d24={'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'drawingId':_0x5cb93e,'drawingType':_0x5e5e5b[_0x3acb89(0x130)],'sheetTransform':_0x5da79c,'transform':_0x4ffad3,'data':{'shapeType':_0x1ae2ae||_0x11ac87||_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x19cbd9||_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20['adjustValues'])}},'axisAlignSheetTransform':_0x129615,'allowTransform':!0x0},{undo:_0xa694ce,redo:_0x4292c6,objects:_0x522d06}=_0xa104d1[_0x3acb89(0x142)]([_0x303d24]),_0x1f91bf=_0x2d4abb['onCommandExecute']({'id':_0x238f6a['id'],'params':{'unitId':_0x80e8d2,'drawings':[_0x303d24]}}),_0x2f7f67=[...(_0x40849c=_0x1f91bf['preRedos'])==null?[]:_0x40849c,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0x4292c6,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0xfa)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x1ae2ae,'shapeData':{'adjustValues':_0x19cbd9}}}],_0x12105a=[...(_0x18c34e=_0x1f91bf[_0x3acb89(0x114)])==null?[]:_0x18c34e,{'id':_0x30ac56['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'op':_0xa694ce,'objects':_0x522d06,'type':_0x5e6d34[_0x3acb89(0xdf)]}},{'id':_0x286f04['id'],'params':[_0x80e8d2]},..._0x1f91bf[_0x3acb89(0x13a)],{'id':Y['id'],'params':{'unitId':_0x80e8d2,'subUnitId':_0x3576b7,'shapeId':_0x5cb93e,'shapeType':_0x413dff,'shapeData':{..._0x537b20,'adjustValues':_0x2105fd||(_0x537b20==null?void 0x0:_0x537b20[_0x3acb89(0x155)])}}}];return _0x3a6f34(_0x2f7f67,_0x5901be)['result']?(_0x3f5783[_0x3acb89(0xe9)]({'unitID':_0x80e8d2,'undoMutations':_0x12105a,'redoMutations':_0x2f7f67}),!0x0):!0x1;}},Q={'id':_0x26c497(0x140),'type':_0x3e9504[_0x26c497(0x161)],'handler':(_0x4fee02,_0x53d2fe)=>{const _0xed3c8b=_0x26c497;let {unitId:_0x2abc37,subUnitId:_0x1785ae,shapeType:_0x578746,shapeId:_0x419c6a,shapeData:_0x574e4a}=_0x53d2fe,_0xb55453=_0x4fee02[_0xed3c8b(0xe0)](G)[_0xed3c8b(0x13b)](_0x2abc37,_0x1785ae,_0x419c6a);return _0xb55453&&(_0xb55453[_0xed3c8b(0x11f)](_0x578746),_0x574e4a&&(_0xb55453==null||_0xb55453[_0xed3c8b(0x12e)](_0x574e4a))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x3e9504[_0x26c497(0xf5)],'handler':(_0x215d6c,_0x28b1e0)=>{const _0x496e41=_0x26c497;if(!_0x28b1e0)return!0x1;let _0x188a0b=_0x215d6c[_0x496e41(0xe0)](_0x5b8310),_0x121d82=_0x215d6c['get'](G),_0x308fe8=_0x215d6c['get'](_0x4f939d),_0x4325e8=[],_0x23b2d8=[],{unitId:_0x5132e6,subUnitId:_0x16b927,shapeId:_0x27105d,shapeType:_0xc49c0f,shapeData:_0x35c12f}=_0x28b1e0,_0x46a615=_0x121d82[_0x496e41(0x13b)](_0x5132e6,_0x16b927,_0x27105d);if(_0x46a615){let _0x5a95bd=_0x46a615['getShapeType'](),_0x3d8132=Object[_0x496e41(0xf3)]({},_0x46a615[_0x496e41(0xf0)]()),_0x327b8b={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0xc49c0f,'shapeData':_0x35c12f},_0x212918={'unitId':_0x5132e6,'subUnitId':_0x16b927,'shapeId':_0x27105d,'shapeType':_0x5a95bd,'shapeData':_0x3d8132};return _0x4325e8['push']({'id':Q['id'],'params':_0x327b8b}),_0x23b2d8[_0x496e41(0x141)]({'id':Q['id'],'params':_0x212918}),_0x4325e8['every'](_0x98c255=>_0x188a0b[_0x496e41(0xde)](_0x98c255['id'],_0x98c255[_0x496e41(0x102)]))&&_0x308fe8[_0x496e41(0xe9)]({'unitID':_0x5132e6,'redoMutations':[..._0x4325e8],'undoMutations':[..._0x23b2d8]}),!0x0;}return!0x1;}};var ae=_0x26c497(0x12b),oe=_0x26c497(0xfe);const se={};function _0x48a4(_0x420ab7,_0x488495){_0x420ab7=_0x420ab7-0xd0;const _0x1d9452=_0x1d94();let _0x48a400=_0x1d9452[_0x420ab7];return _0x48a400;}let ce=class extends _0x28b545{constructor(_0x2eb3b4,_0xb6caf2,_0x42d830,_0x5ca834,_0x1674c2){const _0x4fea63=_0x26c497;super(),this[_0x4fea63(0x106)]=_0x2eb3b4,this[_0x4fea63(0x133)]=_0xb6caf2,this['_sheetSkeletonService']=_0x42d830,this['_sheetsShapeService']=_0x5ca834,this[_0x4fea63(0x110)]=_0x1674c2,this[_0x4fea63(0x150)](),this[_0x4fea63(0x147)]();}[_0x26c497(0x150)](){const _0x358145=_0x26c497;[J,ee,te,X,Z,ne,re,K,q,Q,Y]['forEach'](_0x361a06=>this[_0x358145(0x123)](this[_0x358145(0x106)]['registerCommand'](_0x361a06)));}[_0x26c497(0x147)](){const _0x3392f5=_0x26c497;this[_0x3392f5(0x123)](this[_0x3392f5(0x133)][_0x3392f5(0x160)]({'getMutations':_0x300b3d=>{const _0x47a595=_0x3392f5;if(_0x300b3d['id']===_0xd0523e['id']){let {drawings:_0xf642dc}=_0x300b3d[_0x47a595(0x102)],_0x42d700=_0xf642dc[_0x47a595(0x10f)](_0x54d39a=>_0x54d39a[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x42d700['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x44c797=[],_0x39115c=[];return _0x42d700[_0x47a595(0x13d)](_0x1fdcf9=>{const _0x570125=_0x47a595;let {unitId:_0x43749a,subUnitId:_0x257046,drawingId:_0x449c75}=_0x1fdcf9,_0x5762a8=this[_0x570125(0xe4)][_0x570125(0x13b)](_0x43749a,_0x257046,_0x449c75);if(!_0x5762a8)throw TypeError(_0x570125(0x15f)+_0x5762a8);_0x44c797[_0x570125(0x141)]({'id':q['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75}}),_0x39115c[_0x570125(0x141)]({'id':K['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x449c75,'shapeType':_0x5762a8['getShapeType'](),'shapeData':_0x5762a8[_0x570125(0xf0)]()}});let _0x24cacd=this[_0x570125(0xe4)][_0x570125(0xd1)](_0x43749a,_0x257046,_0x449c75);if(_0x24cacd)for(let _0x2c38cb of _0x24cacd){let _0x2f0bab=_0x2c38cb[_0x570125(0x162)],_0x21fc90=_0x2c38cb[_0x570125(0x14f)],_0x5b78b5=_0x21fc90?{'from':void 0x0}:{'to':void 0x0},_0x51e1e5=_0x21fc90?{'from':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}}:{'to':{'shapeId':_0x2c38cb[_0x570125(0x170)],'cxnIndex':_0x2c38cb[_0x570125(0x11a)]}};_0x44c797[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x5b78b5}}}),_0x39115c[_0x570125(0x141)]({'id':Y['id'],'params':{'unitId':_0x43749a,'subUnitId':_0x257046,'shapeId':_0x2f0bab,'shapeData':{'relation':_0x51e1e5}}});}}),{'preRedos':_0x44c797,'redos':[],'preUndos':[],'undos':_0x39115c};}if(_0x300b3d['id']===_0x238f6a['id']){let {drawings:_0x4b20ea}=_0x300b3d['params'],_0x59e3bb=_0x4b20ea['filter'](_0x22a5c3=>_0x22a5c3[_0x47a595(0x108)]===_0x5e5e5b[_0x47a595(0x130)]);if(_0x59e3bb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2ded07=[],_0x45265e=[];for(let _0x58d13f of _0x59e3bb){let {unitId:_0x104c7f,subUnitId:_0x47a688,drawingId:_0x57f528,transform:_0x59554b}=_0x58d13f;if(!_0x104c7f||!_0x47a688||!_0x57f528||!_0x59554b)continue;let _0x3ef3ae=this[_0x47a595(0xe4)]['getShapeModel'](_0x104c7f,_0x47a688,_0x57f528);if(!_0x3ef3ae)throw TypeError(_0x47a595(0x15f)+_0x3ef3ae);if(_0x45d4e8(_0x3ef3ae[_0x47a595(0x163)]())){let _0x2d62f0=this['_sheetsShapeService'][_0x47a595(0xd0)](_0x104c7f,_0x47a688,_0x57f528);_0x2d62f0&&(_0x2ded07[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x45265e[_0x47a595(0x141)]({'id':Y['id'],'params':{'unitId':_0x104c7f,'subUnitId':_0x47a688,'shapeId':_0x57f528,'shapeData':{'relation':_0x2d62f0}}}));}else{let _0x1b943b=this['_sheetsShapeService'][_0x47a595(0xd1)](_0x104c7f,_0x47a688,_0x57f528);if(_0x1b943b&&_0x1b943b['length']>0x0)for(let _0x23e4fd of _0x1b943b){let _0x48a680=_0x23e4fd[_0x47a595(0x162)],_0x12b6c7=_0x23e4fd['isFrom'],_0x41aedd=this[_0x47a595(0xe4)][_0x47a595(0x13b)](_0x104c7f,_0x47a688,_0x48a680);if(!_0x41aedd)continue;let _0x1cd8bf=_0x41aedd[_0x47a595(0x132)](),_0xe21744=_0x41aedd[_0x47a595(0x116)]();_0x1cd8bf&&_0xe21744?this[_0x47a595(0x109)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x1cd8bf,_0xe21744,_0x2ded07,_0x45265e,_0x57f528,_0x59554b):this[_0x47a595(0xf6)](_0x104c7f,_0x47a688,_0x48a680,_0x41aedd,_0x12b6c7?_0x1cd8bf:_0xe21744,_0x12b6c7,_0x2ded07,_0x45265e,_0x57f528,_0x59554b);}}}return{'preRedos':[],'redos':_0x2ded07,'preUndos':_0x45265e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x31e73a,_0x11fbf5,_0x2db225,_0x26b55d,_0x5c3c63){const _0x12393b=_0x26c497;if(!_0x11fbf5||!_0x2db225)return null;let {shapeId:_0x4ae0d7,cxnIndex:_0x420973}=_0x31e73a,_0x252543=this[_0x12393b(0xe4)][_0x12393b(0x13b)](_0x11fbf5,_0x2db225,_0x4ae0d7);if(!_0x252543)return null;let _0x458ef8=this[_0x12393b(0x110)]['getDrawingByParam']({'unitId':_0x11fbf5,'subUnitId':_0x2db225,'drawingId':_0x4ae0d7});if(!(_0x458ef8!=null&&_0x458ef8['transform']))return null;let {left:_0x2aceb0=0x0,top:_0x50084d=0x0,width:_0x80b08c=0x0,height:_0x1adb8a=0x0,flipX:_0x2e8ac3=!0x1,flipY:_0x360a27=!0x1,angle:_0x50d9b6}=_0x458ef8['transform'];if(_0x5c3c63&&_0x26b55d===_0x4ae0d7){var _0x381c20,_0x357c46,_0x317af1,_0x238892,_0x4114a9,_0x2d8892,_0x175c91;_0x2aceb0=(_0x381c20=_0x5c3c63[_0x12393b(0x16c)])==null?_0x2aceb0:_0x381c20,_0x50084d=(_0x357c46=_0x5c3c63[_0x12393b(0x10d)])==null?_0x50084d:_0x357c46,_0x80b08c=(_0x317af1=_0x5c3c63[_0x12393b(0x14e)])==null?_0x80b08c:_0x317af1,_0x1adb8a=(_0x238892=_0x5c3c63['height'])==null?_0x1adb8a:_0x238892,_0x2e8ac3=(_0x4114a9=_0x5c3c63[_0x12393b(0x16e)])==null?_0x2e8ac3:_0x4114a9,_0x360a27=(_0x2d8892=_0x5c3c63[_0x12393b(0x12a)])==null?_0x360a27:_0x2d8892,_0x50d9b6=(_0x175c91=_0x5c3c63[_0x12393b(0xfb)])==null?_0x50d9b6:_0x175c91;}_0x252543[_0x12393b(0x138)]({'width':_0x80b08c,'height':_0x1adb8a});let _0x206854=_0x252543[_0x12393b(0x164)]()['find'](_0x3b598c=>_0x3b598c[_0x12393b(0x15d)]===_0x420973);if(!_0x206854)return null;let _0x3f2c2e=_0x2e8ac3?_0x80b08c-_0x206854['x']:_0x206854['x'],_0x48beb3=_0x360a27?_0x1adb8a-_0x206854['y']:_0x206854['y'];if(_0x50d9b6!==0x0&&_0x50d9b6!=null){let _0x86797f=_0x50d9b6*Math['PI']/0xb4,_0x303345=Math[_0x12393b(0xdd)](_0x86797f),_0x59943d=Math[_0x12393b(0x120)](_0x86797f),_0x5783b4=_0x80b08c/0x2,_0x4759f1=_0x1adb8a/0x2,_0x173c04=_0x3f2c2e-_0x5783b4,_0x294023=_0x48beb3-_0x4759f1;_0x3f2c2e=_0x5783b4+_0x173c04*_0x303345-_0x294023*_0x59943d,_0x48beb3=_0x4759f1+_0x173c04*_0x59943d+_0x294023*_0x303345;}_0x3f2c2e+=_0x2aceb0,_0x48beb3+=_0x50084d;let _0x3b75ad=_0x206854[_0x12393b(0xf7)]/0xea60;_0x2e8ac3&&(_0x3b75ad=0xb4-_0x3b75ad),_0x360a27&&(_0x3b75ad=-_0x3b75ad),_0x3b75ad+=_0x50d9b6||0x0,_0x3b75ad=(_0x3b75ad%0x168+0x168)%0x168;let _0x4ec920=_0x420ab7({'left':_0x2aceb0,'top':_0x50084d,'width':_0x80b08c,'height':_0x1adb8a},_0x50d9b6||0x0);return{'point':{'x':_0x3f2c2e,'y':_0x48beb3},'angle':_0x3b75ad,'bounds':_0x4ec920};}['_addLineRerouteUpdates'](_0x403e67,_0x40cac3,_0x6362ee,_0x313b43,_0x482791,_0x4b5d33,_0xb733e7,_0x5333d5,_0x95ff8,_0x398200){const _0x1e1be7=_0x26c497;let _0x55b90e=this[_0x1e1be7(0x158)][_0x1e1be7(0x146)](_0x403e67,_0x40cac3);if(!_0x55b90e)return;let _0x5b29e6=_0x313b43[_0x1e1be7(0xf9)](),_0xf315d3=_0x313b43[_0x1e1be7(0x166)](),_0x3577be={},_0x58af6e={};_0xf315d3[_0x1e1be7(0x13d)](_0x77d155=>{const _0x306965=_0x1e1be7;let _0x2c129d=_0x313b43[_0x306965(0xe6)](_0x77d155);_0x58af6e[_0x77d155]=_0x2c129d==null?0x0:_0x2c129d;});let _0x43ffe6=this[_0x1e1be7(0x122)](_0x482791,_0x403e67,_0x40cac3,_0x95ff8,_0x398200),_0x4f843d=this['_getConnectPointInfo'](_0x4b5d33,_0x403e67,_0x40cac3,_0x95ff8,_0x398200);if(_0x43ffe6&&_0x4f843d){let _0x5bd554=_0x313b43['getShapeType'](),_0x547284=_0x37d66d(_0x43ffe6,_0x4f843d,_0x5bd554),_0x3ac850=_0x5bd554;if(_0x547284){let _0xbf5c85=_0x1cd34f(_0x547284,_0x313b43[_0x1e1be7(0x163)]()),_0x5af0b0=this[_0x1e1be7(0x110)][_0x1e1be7(0x151)](_0x403e67,_0x40cac3);if(_0x5af0b0&&_0x5af0b0[_0x6362ee]){let _0x3cb2d6=_0x5af0b0[_0x6362ee];_0x3ac850=_0xbf5c85[_0x1e1be7(0x14d)];for(let [_0x5b26de,_0x1acc2d]of Object['entries'](_0xbf5c85[_0x1e1be7(0x155)]))_0x3577be[_0x5b26de]=_0x1acc2d;let _0x1dc12d={..._0x3cb2d6[_0x1e1be7(0x101)],'width':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x14e)],'height':_0xbf5c85['worldRect'][_0x1e1be7(0x111)],'left':_0xbf5c85['worldRect']['left'],'top':_0xbf5c85[_0x1e1be7(0xd7)]['top'],'flipX':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x16e)],'flipY':_0xbf5c85[_0x1e1be7(0xd7)][_0x1e1be7(0x12a)],'angle':_0xbf5c85[_0x1e1be7(0x16d)]},_0x55d4b3=_0x4fa37c(_0x1dc12d,_0x55b90e),_0x547a1d=_0x13d14d(_0x1dc12d,_0x55b90e),_0x2ecd60={'unitId':_0x403e67,'subUnitId':_0x40cac3,'drawingType':_0x5e5e5b['DRAWING_SHAPE'],'drawingId':_0x6362ee,'transform':_0x1dc12d,'sheetTransform':_0x55d4b3,'axisAlignSheetTransform':_0x547a1d},{unitId:_0x59ab4f,subUnitId:_0x99015a,undo:_0x59ca85,redo:_0x2835ce,objects:_0x428207}=this['_drawingManagerService'][_0x1e1be7(0x142)]([_0x2ecd60]);_0xb733e7[_0x1e1be7(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x2835ce,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}}),_0x5333d5['push']({'id':_0x30ac56['id'],'params':{'unitId':_0x59ab4f,'subUnitId':_0x99015a,'op':_0x59ca85,'objects':_0x428207,'type':_0x5e6d34[_0x1e1be7(0xdf)]}});}_0x313b43[_0x1e1be7(0xe8)]();}_0xb733e7[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x3ac850,'shapeData':{'adjustValues':_0x3577be,'relation':_0x5b29e6}}}),_0x5333d5[_0x1e1be7(0x141)]({'id':Y['id'],'params':{'unitId':_0x403e67,'subUnitId':_0x40cac3,'shapeId':_0x6362ee,'shapeType':_0x5bd554,'shapeData':{'adjustValues':_0x58af6e,'relation':_0x5b29e6}}});}}[_0x26c497(0xf6)](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x14b46a,_0x28719d,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9){const _0x12ea58=_0x26c497;var _0xf850ad;if(!_0x14b46a)return;let _0x1d7e93=this[_0x12ea58(0x158)][_0x12ea58(0x146)](_0x1d601f,_0x1bf784);if(!_0x1d7e93)return;let _0x18ff2=(_0xf850ad=this[_0x12ea58(0x110)]['getDrawingByParam']({'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingId':_0x14c794}))==null?void 0x0:_0xf850ad['transform'];if(!_0x18ff2)return;let _0x1815bb=_0x18ff2[_0x12ea58(0x16c)]!==_0x1367a9[_0x12ea58(0x16c)]||_0x18ff2['top']!==_0x1367a9['top'],_0x34d63e=_0x18ff2[_0x12ea58(0x14e)]!==_0x1367a9[_0x12ea58(0x14e)]||_0x18ff2[_0x12ea58(0x111)]!==_0x1367a9[_0x12ea58(0x111)],_0x30218d=_0x18ff2[_0x12ea58(0x16e)]!==_0x1367a9['flipX']||_0x18ff2[_0x12ea58(0x12a)]!==_0x1367a9[_0x12ea58(0x12a)],_0x6ba956=_0x18ff2['angle']!==_0x1367a9['angle'];if(_0x1815bb&&!_0x34d63e&&!_0x30218d&&!_0x6ba956){var _0x554153,_0x40a93c,_0x48beb6,_0x4909ae;let _0x534499=((_0x554153=_0x1367a9['left'])==null?0x0:_0x554153)-((_0x40a93c=_0x18ff2[_0x12ea58(0x16c)])==null?0x0:_0x40a93c),_0x489da8=((_0x48beb6=_0x1367a9['top'])==null?0x0:_0x48beb6)-((_0x4909ae=_0x18ff2[_0x12ea58(0x10d)])==null?0x0:_0x4909ae),_0x1fffdf=this['_drawingManagerService'][_0x12ea58(0x151)](_0x1d601f,_0x1bf784);if(_0x1fffdf&&_0x1fffdf[_0x2be500]){var _0x368761,_0x2723ca,_0x213a04,_0x353a23;let _0x3cb7fc=_0x1fffdf[_0x2be500],_0x5b684f={..._0x3cb7fc[_0x12ea58(0x101)],'left':((_0x368761=(_0x2723ca=_0x3cb7fc['transform'])==null?void 0x0:_0x2723ca[_0x12ea58(0x16c)])==null?0x0:_0x368761)+_0x534499,'top':((_0x213a04=(_0x353a23=_0x3cb7fc[_0x12ea58(0x101)])==null?void 0x0:_0x353a23['top'])==null?0x0:_0x213a04)+_0x489da8},_0x2bd77f=_0x4fa37c(_0x5b684f,_0x1d7e93),_0x5c8e5c=_0x13d14d(_0x5b684f,_0x1d7e93),_0x10f57e={'unitId':_0x1d601f,'subUnitId':_0x1bf784,'drawingType':_0x5e5e5b[_0x12ea58(0x130)],'drawingId':_0x2be500,'transform':_0x5b684f,'sheetTransform':_0x2bd77f,'axisAlignSheetTransform':_0x5c8e5c},{unitId:_0x2610a3,subUnitId:_0x626f3d,undo:_0xf7031,redo:_0x53a829,objects:_0xb37ad0}=this['_drawingManagerService'][_0x12ea58(0x142)]([_0x10f57e]);_0x3b3625[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0x53a829,'objects':_0xb37ad0,'type':_0x5e6d34['UPDATE']}}),_0xb88a29[_0x12ea58(0x141)]({'id':_0x30ac56['id'],'params':{'unitId':_0x2610a3,'subUnitId':_0x626f3d,'op':_0xf7031,'objects':_0xb37ad0,'type':_0x5e6d34[_0x12ea58(0xdf)]}});}}else{let _0x3d29f2=_0x3d9066[_0x12ea58(0x132)](),_0x4fe8fc=_0x3d9066['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x1d601f,_0x1bf784,_0x2be500,_0x3d9066,_0x3d29f2,_0x4fe8fc,_0x3b3625,_0xb88a29,_0x14c794,_0x1367a9);}}};ce=W([U(0x0,_0x5b8310),U(0x1,_0x224b32(_0x499171)),U(0x2,_0x224b32(_0xf2e92a)),U(0x3,_0x224b32(G)),U(0x4,_0x224b32(_0x531999))],ce);let $=class extends _0x118c9a{constructor(_0x5befa8=se,_0x69ecc9,_0x491181,_0x376d6f){const _0x373219=_0x26c497;super(),this[_0x373219(0xd6)]=_0x5befa8,this['_injector']=_0x69ecc9,this[_0x373219(0x106)]=_0x491181,this[_0x373219(0xf4)]=_0x376d6f;let {..._0x2dabc6}=_0x410777({},se,this['_config']);this[_0x373219(0xf4)][_0x373219(0xe2)]('sheets-shape.config',_0x2dabc6);}['onStarting'](){const _0x2f1c91=_0x26c497;let _0x401031=this['_injector'];[[H],[G],[ce]][_0x2f1c91(0x13d)](_0x4dba78=>_0x401031['add'](_0x4dba78)),_0x41ed94(_0x401031,[[G],[ce]]);}};V($,_0x26c497(0xd9),_0xd9deb1['UNIVER_SHEET']),V($,'pluginName',_0x26c497(0x103)),V($,'packageName',ae),V($,'version',oe),$=W([_0x44491a(_0x1f94d7),U(0x1,_0x224b32(_0x5c089c)),U(0x2,_0x5b8310),U(0x3,_0x3ea937)],$);export{L as DEFAULT_SHAPE_HEIGHT,I as DEFAULT_SHAPE_WIDTH,J as InsertShapeCommand,K as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,X as SetSheetsShapeRotateCommand,Z as SetSheetsShapeTextVerticalToggleCommand,G as SheetsShapeService,te as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,Y as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,Q as UpdateSheetsShapeTypeMutation};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2073d0=_0x50e3;(function(_0x475033,_0x1bce5f){const _0x2284ed=_0x50e3,_0x49e1ef=_0x475033();while(!![]){try{const _0x3ab621=parseInt(_0x2284ed(0x17b))/0x1*(-parseInt(_0x2284ed(0x11f))/0x2)+-parseInt(_0x2284ed(0x10e))/0x3+-parseInt(_0x2284ed(0x14e))/0x4+-parseInt(_0x2284ed(0x137))/0x5*(-parseInt(_0x2284ed(0x16d))/0x6)+-parseInt(_0x2284ed(0x11a))/0x7*(-parseInt(_0x2284ed(0x145))/0x8)+parseInt(_0x2284ed(0x173))/0x9*(-parseInt(_0x2284ed(0x105))/0xa)+-parseInt(_0x2284ed(0x164))/0xb*(-parseInt(_0x2284ed(0x15b))/0xc);if(_0x3ab621===_0x1bce5f)break;else _0x49e1ef['push'](_0x49e1ef['shift']());}catch(_0x4ae1d6){_0x49e1ef['push'](_0x49e1ef['shift']());}}}(_0x3850,0x2ecc9));import{ConnectorCoordinateTransform as _0x3d6405,ShapeArrowSizeEnum as _0x5ad41c,ShapeArrowTypeEnum as _0x489d00,ShapeFillEnum as _0x3a3330,ShapeGradientTypeEnum as _0x528bbb,ShapeLineCapEnum as _0x5bde8f,ShapeLineDashEnum as _0x9c15d2,ShapeLineJoinEnum as _0x38c71a,ShapeLineTypeEnum as _0xd5ba2a,ShapeTypeEnum as _0x19ac2c,computeConnectorRouteLayout as _0x416057,getBasicShapeRotateBound as _0x2e4726,isConnectorShape as _0x41643b,routeConnectorLineShape as _0x232c7e}from'@univerjs-pro/engine-shape';import{FEnum as _0x285a81}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x54d06d,DEFAULT_SHAPE_WIDTH as _0x2bb6ff,InsertShapeCommand as _0x531a5c,SetShapeDrawingDataCommand as _0x4a74ed,SheetsShapeService as _0x20e1c9,UpdateConnectorRelationCommand as _0x127ca0}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x232e10,generateRandomId as _0x1e925e}from'@univerjs/core';import{IDrawingManagerService as _0x5859f8}from'@univerjs/drawing';import{SheetSkeletonService as _0x2a796e,convertPositionCellToSheetOverGrid as _0x3621c7}from'@univerjs/sheets';import{ISheetDrawingService as _0x286869,RemoveSheetDrawingCommand as _0x4ddd72}from'@univerjs/sheets-drawing';import{FWorksheet as _0x26843a}from'@univerjs/sheets/facade';var k=class extends _0x285a81{get[_0x2073d0(0x176)](){return _0x19ac2c;}get[_0x2073d0(0x100)](){return _0x3a3330;}get['ShapeGradientTypeEnum'](){return _0x528bbb;}get['ShapeLineTypeEnum'](){return _0xd5ba2a;}get[_0x2073d0(0x14b)](){return _0x9c15d2;}get[_0x2073d0(0x16c)](){return _0x5bde8f;}get[_0x2073d0(0x14a)](){return _0x38c71a;}get[_0x2073d0(0x172)](){return _0x489d00;}get[_0x2073d0(0xff)](){return _0x5ad41c;}};_0x285a81[_0x2073d0(0x179)](k);function A(_0x225554){'@babel/helpers - typeof';const _0x20d739=_0x2073d0;return A=typeof Symbol==_0x20d739(0x12b)&&typeof Symbol[_0x20d739(0x142)]==_0x20d739(0x16b)?function(_0x52afcc){return typeof _0x52afcc;}:function(_0x56b91b){const _0x1db4c9=_0x20d739;return _0x56b91b&&typeof Symbol==_0x1db4c9(0x12b)&&_0x56b91b[_0x1db4c9(0x12c)]===Symbol&&_0x56b91b!==Symbol[_0x1db4c9(0x119)]?_0x1db4c9(0x16b):typeof _0x56b91b;},A(_0x225554);}function j(_0x228039,_0x1741b4){const _0x3fa298=_0x2073d0;if(A(_0x228039)!=_0x3fa298(0xfd)||!_0x228039)return _0x228039;var _0x19a606=_0x228039[Symbol[_0x3fa298(0x132)]];if(_0x19a606!==void 0x0){var _0x1a93f6=_0x19a606[_0x3fa298(0x110)](_0x228039,_0x1741b4||_0x3fa298(0x12d));if(A(_0x1a93f6)!=_0x3fa298(0xfd))return _0x1a93f6;throw TypeError(_0x3fa298(0x174));}return(_0x1741b4===_0x3fa298(0x149)?String:Number)(_0x228039);}function M(_0x11b371){const _0x562743=_0x2073d0;var _0x16ade0=j(_0x11b371,_0x562743(0x149));return A(_0x16ade0)==_0x562743(0x16b)?_0x16ade0:_0x16ade0+'';}function N(_0x4e130c,_0x30f0b1,_0x3b46ce){const _0x2393fa=_0x2073d0;return(_0x30f0b1=M(_0x30f0b1))in _0x4e130c?Object[_0x2393fa(0x13f)](_0x4e130c,_0x30f0b1,{'value':_0x3b46ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e130c[_0x30f0b1]=_0x3b46ce,_0x4e130c;}var P=class{constructor(_0x20e8ef,_0x34908c,_0x34c3c7,_0x15c43e){const _0x7cf93d=_0x2073d0;N(this,'unitId',void 0x0),N(this,_0x7cf93d(0x134),void 0x0),N(this,_0x7cf93d(0x124),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x7cf93d(0x128),_0x2bb6ff),N(this,'height',_0x54d06d),N(this,_0x7cf93d(0x108),void 0x0),N(this,'shapeData',{}),N(this,'_injector',void 0x0),this['unitId']=_0x20e8ef,this[_0x7cf93d(0x134)]=_0x34908c,this['drawId']=_0x34c3c7||_0x1e925e(),this['_injector']=_0x15c43e;}['setPosition'](_0x419b52,_0x1c0591,_0x5e8729,_0x4e7134){const _0x341e00=_0x2073d0;let _0x595d86=this['_injector'][_0x341e00(0x141)](_0x2a796e)[_0x341e00(0x150)](this[_0x341e00(0x13a)],this['subUnitId']);if(!_0x595d86)throw Error(_0x341e00(0x10c)+this[_0x341e00(0x13a)]+_0x341e00(0x11b)+this[_0x341e00(0x134)]+_0x341e00(0x118));let {transform:_0x1ad084}=_0x3621c7(this['unitId'],this[_0x341e00(0x134)],{'row':_0x419b52,'column':_0x1c0591,'rowOffset':_0x5e8729,'columnOffset':_0x4e7134},0x1,0x1,_0x595d86);return this['x']=_0x1ad084[_0x341e00(0x16f)],this['y']=_0x1ad084['top'],this;}[_0x2073d0(0x125)](_0x530858,_0x83146c){return this['x']=_0x530858,this['y']=_0x83146c,this;}[_0x2073d0(0x17a)](_0x3c453a){const _0x37eb18=_0x2073d0;return this[_0x37eb18(0x108)]=_0x3c453a,this;}[_0x2073d0(0x102)](_0x40337b,_0x1f0d70){const _0x42b5b9=_0x2073d0;return this['shapeData'][_0x42b5b9(0x14f)]||(this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)]={}),this[_0x42b5b9(0x113)][_0x42b5b9(0x14f)][_0x42b5b9(0x117)]=_0x3a3330[_0x42b5b9(0x15f)],_0x40337b!==void 0x0&&(this['shapeData'][_0x42b5b9(0x14f)]['color']=_0x40337b),_0x1f0d70!==void 0x0&&(this[_0x42b5b9(0x113)]['fill'][_0x42b5b9(0x111)]=_0x1f0d70),this;}['setShapeGradientFill'](_0x20c8ed,_0x1c47bf,_0x54a4a5){const _0x136a73=_0x2073d0;if(_0x1c47bf===void 0x0||_0x1c47bf[_0x136a73(0x109)]===0x0)throw Error(_0x136a73(0x15d));return this[_0x136a73(0x113)][_0x136a73(0x14f)]||(this[_0x136a73(0x113)][_0x136a73(0x14f)]={}),this[_0x136a73(0x113)]['fill'][_0x136a73(0x103)]=_0x1c47bf,this[_0x136a73(0x113)]['fill']['fillType']=_0x3a3330['GradientFill'],this[_0x136a73(0x113)][_0x136a73(0x14f)][_0x136a73(0x133)]=_0x20c8ed,_0x54a4a5!==void 0x0&&(this['shapeData'][_0x136a73(0x14f)][_0x136a73(0x148)]=_0x54a4a5),this;}['setNoneFill'](){const _0x4d0f6a=_0x2073d0;return this[_0x4d0f6a(0x113)][_0x4d0f6a(0x14f)]={'fillType':_0x3a3330['NoFill']},this;}['setStrokeColor'](_0x2cf5c4){const _0x33a6da=_0x2073d0;return this['shapeData'][_0x33a6da(0x13d)]||(this['shapeData'][_0x33a6da(0x13d)]={}),this[_0x33a6da(0x113)]['stroke'][_0x33a6da(0x144)]=_0x2cf5c4,this;}[_0x2073d0(0x104)](_0x3edf8f){const _0x21cd92=_0x2073d0;return this[_0x21cd92(0x113)][_0x21cd92(0x13d)]||(this[_0x21cd92(0x113)][_0x21cd92(0x13d)]={}),this[_0x21cd92(0x113)]['stroke']['width']=_0x3edf8f,this;}[_0x2073d0(0x154)](_0xc8b615){const _0x141a2f=_0x2073d0;return this[_0x141a2f(0x113)][_0x141a2f(0x13d)]||(this['shapeData'][_0x141a2f(0x13d)]={}),this[_0x141a2f(0x113)][_0x141a2f(0x13d)][_0x141a2f(0x177)]=_0xc8b615,this;}[_0x2073d0(0x170)](_0x27009f){const _0x3eca22=_0x2073d0;return this[_0x3eca22(0x113)][_0x3eca22(0x13d)]||(this[_0x3eca22(0x113)][_0x3eca22(0x13d)]={}),this[_0x3eca22(0x113)][_0x3eca22(0x13d)][_0x3eca22(0x162)]=_0x27009f,this;}[_0x2073d0(0x175)](_0x120d8d){const _0x120387=_0x2073d0;return this[_0x120387(0x113)][_0x120387(0x13d)]||(this[_0x120387(0x113)][_0x120387(0x13d)]={}),this[_0x120387(0x113)][_0x120387(0x13d)][_0x120387(0x107)]=_0x120d8d,this;}[_0x2073d0(0x139)](_0x1ec9e1){const _0x21fd27=_0x2073d0;return this[_0x21fd27(0x113)][_0x21fd27(0x13d)]||(this[_0x21fd27(0x113)][_0x21fd27(0x13d)]={}),this['shapeData'][_0x21fd27(0x13d)][_0x21fd27(0x111)]=_0x1ec9e1,this;}[_0x2073d0(0x160)](_0x250605){const _0x243c75=_0x2073d0;return this[_0x243c75(0x113)]['stroke']||(this[_0x243c75(0x113)]['stroke']={}),this['shapeData'][_0x243c75(0x13d)]['lineStrokeType']=_0x250605,this;}[_0x2073d0(0x163)](_0x947657){const _0x2f31fd=_0x2073d0;return this[_0x2f31fd(0x128)]=_0x947657,this;}['setHeight'](_0x4617d3){const _0x17d03b=_0x2073d0;return this[_0x17d03b(0x152)]=_0x4617d3,this;}['isLineShape'](){const _0x3efe3b=_0x2073d0;let _0x15f071=this[_0x3efe3b(0x147)][_0x3efe3b(0x141)](_0x20e1c9)[_0x3efe3b(0x138)](this[_0x3efe3b(0x13a)],this[_0x3efe3b(0x134)],this[_0x3efe3b(0x124)]);return _0x15f071?_0x41643b(_0x15f071['getShapeType']()):this[_0x3efe3b(0x108)]?_0x41643b(this[_0x3efe3b(0x108)]):!0x1;}[_0x2073d0(0x10a)](){const _0x35cc6f=_0x2073d0;let _0x57d285=this[_0x35cc6f(0x147)][_0x35cc6f(0x141)](_0x20e1c9)['getShapeModel'](this['unitId'],this[_0x35cc6f(0x134)],this[_0x35cc6f(0x124)]);if(!_0x57d285)return[];let _0x21b566=this['_injector'][_0x35cc6f(0x141)](_0x5859f8)[_0x35cc6f(0x167)]({'unitId':this[_0x35cc6f(0x13a)],'subUnitId':this[_0x35cc6f(0x134)],'drawingId':this[_0x35cc6f(0x124)]});if(!(_0x21b566!=null&&_0x21b566[_0x35cc6f(0x126)]))return[];let {width:_0x499262=0x0,height:_0x84cab0=0x0}=_0x21b566[_0x35cc6f(0x126)];return _0x57d285['updateContext']({'width':_0x499262,'height':_0x84cab0}),_0x57d285[_0x35cc6f(0x17d)]();}['getAdjustPoints'](){const _0x366fcb=_0x2073d0;let _0x3a8d6e=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x20e1c9)['getShapeModel'](this[_0x366fcb(0x13a)],this[_0x366fcb(0x134)],this[_0x366fcb(0x124)]);if(!_0x3a8d6e)return[];let _0x32d5e7=this[_0x366fcb(0x147)][_0x366fcb(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x366fcb(0x134)],'drawingId':this['drawId']});if(!(_0x32d5e7!=null&&_0x32d5e7[_0x366fcb(0x126)]))return[];let {width:_0x31ad76=0x0,height:_0x3ccd74=0x0}=_0x32d5e7[_0x366fcb(0x126)];return _0x3a8d6e[_0x366fcb(0x178)]({'width':_0x31ad76,'height':_0x3ccd74}),_0x3a8d6e[_0x366fcb(0x181)]();}[_0x2073d0(0x15c)](){const _0x35b28e=_0x2073d0;let _0x5707ab=this[_0x35b28e(0x147)]['get'](_0x20e1c9)[_0x35b28e(0x138)](this[_0x35b28e(0x13a)],this[_0x35b28e(0x134)],this[_0x35b28e(0x124)]);if(!_0x5707ab||!_0x41643b(_0x5707ab['getShapeType']()))return[];let _0x2cf68a=this[_0x35b28e(0x147)][_0x35b28e(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':this[_0x35b28e(0x13a)],'subUnitId':this[_0x35b28e(0x134)],'drawingId':this['drawId']});if(!(_0x2cf68a!=null&&_0x2cf68a[_0x35b28e(0x126)]))return[];let {width:_0x4d9961=0x0,height:_0x1d74ec=0x0}=_0x2cf68a[_0x35b28e(0x126)];return _0x5707ab['updateContext']({'width':_0x4d9961,'height':_0x1d74ec}),_0x5707ab[_0x35b28e(0x15c)]();}[_0x2073d0(0x13e)](){const _0x30fa57=_0x2073d0;var _0x3c1b13;let _0x2a172c=this['_injector'][_0x30fa57(0x141)](_0x20e1c9)[_0x30fa57(0x138)](this['unitId'],this[_0x30fa57(0x134)],this[_0x30fa57(0x124)]);return _0x2a172c?(_0x3c1b13=_0x2a172c[_0x30fa57(0x13e)]())==null?null:_0x3c1b13:null;}['getEndConnectInfo'](){const _0x2dce52=_0x2073d0;var _0x49a276;let _0x34e3a4=this[_0x2dce52(0x147)][_0x2dce52(0x141)](_0x20e1c9)[_0x2dce52(0x138)](this[_0x2dce52(0x13a)],this[_0x2dce52(0x134)],this[_0x2dce52(0x124)]);return _0x34e3a4?(_0x49a276=_0x34e3a4[_0x2dce52(0x12a)]())==null?null:_0x49a276:null;}['build'](){const _0x159906=_0x2073d0;var _0x39faed,_0x35fb85;if(!this['shapeType'])throw Error(_0x159906(0x112));if(this['x']===0x0||this['y']===0x0){let _0x5c04f9=this[_0x159906(0x147)][_0x159906(0x141)](_0x2a796e)[_0x159906(0x150)](this[_0x159906(0x13a)],this[_0x159906(0x134)]);if(!_0x5c04f9)throw Error(_0x159906(0x10c)+this[_0x159906(0x13a)]+_0x159906(0x11b)+this[_0x159906(0x134)]+_0x159906(0x118));let {transform:_0x23f34f}=_0x3621c7(this[_0x159906(0x13a)],this[_0x159906(0x134)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5c04f9);this['x']=this['x']>0x0?this['x']:_0x23f34f[_0x159906(0x16f)],this['y']=this['y']>0x0?this['y']:_0x23f34f['top'];}return this['width']=(_0x39faed=this[_0x159906(0x128)])==null?_0x2bb6ff:_0x39faed,this[_0x159906(0x152)]=(_0x35fb85=this[_0x159906(0x152)])==null?_0x54d06d:_0x35fb85,{'unitId':this[_0x159906(0x13a)],'subUnitId':this[_0x159906(0x134)],'shapeId':this[_0x159906(0x124)],'shapeType':this[_0x159906(0x108)],'shapeData':Object['keys'](this['shapeData'])[_0x159906(0x109)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x159906(0x128)],'height':this['height']};}[_0x2073d0(0x15e)](){const _0x36fd05=_0x2073d0;return this[_0x36fd05(0x124)];}[_0x2073d0(0x166)](){const _0xf3e0f=_0x2073d0;return this[_0xf3e0f(0x108)];}[_0x2073d0(0x13b)](){return this['shapeData'];}[_0x2073d0(0x13c)](){return{'x':this['x'],'y':this['y']};}[_0x2073d0(0x153)](){const _0x431f8e=_0x2073d0;return{'width':this[_0x431f8e(0x128)],'height':this[_0x431f8e(0x152)]};}},F=class extends P{constructor(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633){const _0x300717=_0x2073d0;super(_0x1d35e4,_0x32a7ff,_0xb91f31,_0x5c3633),N(this,_0x300717(0x113),{});}[_0x2073d0(0x17a)](_0x3fc44b){const _0x11a330=_0x2073d0;if(!_0x41643b(_0x3fc44b))throw Error(_0x11a330(0x15a)+_0x3fc44b+_0x11a330(0x11d));return super[_0x11a330(0x17a)](_0x3fc44b),this;}[_0x2073d0(0x169)](_0x54b41b){const _0x492bc8=_0x2073d0;var _0x2a9c30,_0x2ba152;return(_0x2a9c30=this[_0x492bc8(0x113)])!=null&&_0x2a9c30['ln']||(this[_0x492bc8(0x113)]['ln']={}),!((_0x2ba152=this['shapeData'])==null||(_0x2ba152=_0x2ba152['ln'])==null)&&_0x2ba152[_0x492bc8(0x135)]||(this[_0x492bc8(0x113)]['ln'][_0x492bc8(0x135)]={}),this['shapeData']['ln'][_0x492bc8(0x135)][_0x492bc8(0x106)]=_0x54b41b,this;}[_0x2073d0(0x129)](_0x38835a){const _0x2a9fc6=_0x2073d0;var _0x59c056,_0x326b37;return(_0x59c056=this[_0x2a9fc6(0x113)])!=null&&_0x59c056['ln']||(this[_0x2a9fc6(0x113)]['ln']={}),!((_0x326b37=this[_0x2a9fc6(0x113)])==null||(_0x326b37=_0x326b37['ln'])==null)&&_0x326b37[_0x2a9fc6(0x16a)]||(this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)]={}),this[_0x2a9fc6(0x113)]['ln'][_0x2a9fc6(0x16a)][_0x2a9fc6(0x106)]=_0x38835a,this;}[_0x2073d0(0x151)](_0x51992a){const _0x25b33a=_0x2073d0;var _0x49a6a2,_0xee6c92;return(_0x49a6a2=this[_0x25b33a(0x113)])!=null&&_0x49a6a2['ln']||(this[_0x25b33a(0x113)]['ln']={}),!((_0xee6c92=this[_0x25b33a(0x113)])==null||(_0xee6c92=_0xee6c92['ln'])==null)&&_0xee6c92[_0x25b33a(0x135)]||(this['shapeData']['ln'][_0x25b33a(0x135)]={}),this[_0x25b33a(0x113)]['ln'][_0x25b33a(0x135)]['size']=_0x51992a,this;}[_0x2073d0(0x10f)](_0x428a18){const _0x1341d4=_0x2073d0;var _0x193612,_0x598518;return(_0x193612=this[_0x1341d4(0x113)])!=null&&_0x193612['ln']||(this[_0x1341d4(0x113)]['ln']={}),!((_0x598518=this['shapeData'])==null||(_0x598518=_0x598518['ln'])==null)&&_0x598518[_0x1341d4(0x16a)]||(this[_0x1341d4(0x113)]['ln'][_0x1341d4(0x16a)]={}),this['shapeData']['ln']['endArrow'][_0x1341d4(0x114)]=_0x428a18,this;}[_0x2073d0(0x123)](){return super['build']();}[_0x2073d0(0x12a)](){const _0x48a8cb=_0x2073d0;var _0x508e8f;return((_0x508e8f=this[_0x48a8cb(0x113)])==null||(_0x508e8f=_0x508e8f[_0x48a8cb(0x10d)])==null?void 0x0:_0x508e8f['to'])||null;}[_0x2073d0(0x13e)](){const _0x16f374=_0x2073d0;var _0x36e906;return((_0x36e906=this['shapeData'])==null||(_0x36e906=_0x36e906[_0x16f374(0x10d)])==null?void 0x0:_0x36e906[_0x16f374(0x140)])||null;}};function _0x50e3(_0x2fa40d,_0xfe81f8){_0x2fa40d=_0x2fa40d-0xfd;const _0x3850f=_0x3850();let _0x50e3fb=_0x3850f[_0x2fa40d];return _0x50e3fb;}function I(_0x1ea84a,_0x11c3bb,_0x4d5b2b,_0x144136,_0x1fbdfb,_0x42223b){const _0x4eb539=_0x2073d0;let _0x36eb6c=_0x1fbdfb[_0x4eb539(0x138)](_0x1ea84a,_0x11c3bb,_0x4d5b2b);if(!_0x36eb6c)return null;let _0x39c776=_0x42223b[_0x4eb539(0x167)]({'unitId':_0x1ea84a,'subUnitId':_0x11c3bb,'drawingId':_0x4d5b2b});if(!(_0x39c776!=null&&_0x39c776[_0x4eb539(0x126)]))return null;let {left:_0x1441a3=0x0,top:_0x3ba489=0x0,width:_0x3839cb=0x0,height:_0x139193=0x0,flipX:_0x15b9c8=!0x1,flipY:_0xd9d57e=!0x1,angle:_0x4040b5}=_0x39c776[_0x4eb539(0x126)];_0x36eb6c[_0x4eb539(0x178)]({'width':_0x3839cb,'height':_0x139193});let _0xb55f01=_0x36eb6c[_0x4eb539(0x17d)]()[_0x4eb539(0x168)](_0x38b637=>_0x38b637[_0x4eb539(0x155)]===_0x144136);if(!_0xb55f01)return null;let _0x580226=_0x15b9c8?_0x3839cb-_0xb55f01['x']:_0xb55f01['x'],_0x1d2d55=_0xd9d57e?_0x139193-_0xb55f01['y']:_0xb55f01['y'];if(_0x4040b5&&_0x4040b5!==0x0){let _0x76d71d=_0x4040b5*Math['PI']/0xb4,_0x4da6ba=Math['cos'](_0x76d71d),_0x4ac009=Math['sin'](_0x76d71d),_0x5ac38a=_0x3839cb/0x2,_0x58cf81=_0x139193/0x2,_0x49b4c3=_0x580226-_0x5ac38a,_0x303cea=_0x1d2d55-_0x58cf81;_0x580226=_0x5ac38a+_0x49b4c3*_0x4da6ba-_0x303cea*_0x4ac009,_0x1d2d55=_0x58cf81+_0x49b4c3*_0x4ac009+_0x303cea*_0x4da6ba;}_0x580226+=_0x1441a3,_0x1d2d55+=_0x3ba489;let _0xee3483=_0xb55f01[_0x4eb539(0x127)]/0xea60;_0x15b9c8&&(_0xee3483=0xb4-_0xee3483),_0xd9d57e&&(_0xee3483=-_0xee3483),_0xee3483+=_0x4040b5||0x0,_0xee3483=(_0xee3483%0x168+0x168)%0x168;let _0x97dd2a=_0x2e4726({'left':_0x1441a3,'top':_0x3ba489,'width':_0x3839cb,'height':_0x139193},_0x4040b5||0x0);return{'point':{'x':_0x580226,'y':_0x1d2d55},'angle':_0xee3483,'bounds':_0x97dd2a};}function L(_0xd9db51,_0x427b52){const _0x14836b=_0x2073d0;let _0x4f9a3e=_0x427b52['x']-_0xd9db51['x'],_0x2f3722=_0x427b52['y']-_0xd9db51['y'];return Math[_0x14836b(0x146)](_0x4f9a3e)>=Math[_0x14836b(0x146)](_0x2f3722)?_0x4f9a3e>=0x0?0xb4:0x0:_0x2f3722>=0x0?0x10e:0x5a;}function R(_0x1e624f,_0x1205be,_0x442b34,_0x2fa904,_0x2c28a0,_0x25401d,_0x1d5964){const _0x36f955=_0x2073d0;let _0x36fa44=_0x25401d[_0x36f955(0x138)](_0x1e624f,_0x1205be,_0x442b34);if(!_0x36fa44)return null;let _0x190196=_0x1d5964[_0x36f955(0x167)]({'unitId':_0x1e624f,'subUnitId':_0x1205be,'drawingId':_0x442b34});if(!(_0x190196!=null&&_0x190196['transform']))return null;let {left:_0x4df48d=0x0,top:_0x3d4101=0x0,width:_0x5362e1=0x0,height:_0x1e72f2=0x0,flipX:_0xf75ca4=!0x1,flipY:_0x47df41=!0x1}=_0x190196[_0x36f955(0x126)];_0x36fa44[_0x36f955(0x178)]({'width':_0x5362e1,'height':_0x1e72f2});let _0x37cecd=_0x36fa44[_0x36f955(0x15c)]();if(_0x37cecd['length']<0x2)return null;let _0x4e2914=_0x2fa904?_0x37cecd[0x0]:_0x37cecd[_0x37cecd[_0x36f955(0x109)]-0x1],_0x32ea50=new _0x3d6405({'left':_0x4df48d,'top':_0x3d4101,'width':_0x5362e1,'height':_0x1e72f2,'flipX':_0xf75ca4,'flipY':_0x47df41})[_0x36f955(0x122)](_0x4e2914);return{'point':_0x32ea50,'angle':L(_0x2c28a0[_0x36f955(0x11e)],_0x32ea50),'bounds':{'left':_0x32ea50['x'],'top':_0x32ea50['y'],'width':0x0,'height':0x0}};}var z=class extends _0x26843a{async[_0x2073d0(0x12f)](_0x228b61){const _0x18db8e=_0x2073d0;let {unitId:_0x59bb3b,subUnitId:_0x27dfbf,shapeId:_0x2b017d,shapeType:_0x3cb272,shapeData:_0x175002,x:_0x32eb35,y:_0x2339a1,width:_0x56517e,height:_0x2950ff}=_0x228b61;return this[_0x18db8e(0x17e)]['executeCommand'](_0x531a5c['id'],{'unitId':_0x59bb3b,'subUnitId':_0x27dfbf,'shapeId':_0x2b017d,'shapeType':_0x3cb272,'shapeData':_0x175002,'position':{'x':_0x32eb35,'y':_0x2339a1},'width':_0x56517e,'height':_0x2950ff});}async[_0x2073d0(0x182)](_0x2b95f0){const _0x32fbc6=_0x2073d0;let {unitId:_0x38909b,subUnitId:_0x29ed2d,shapeId:_0x596c6f,shapeType:_0x3ddeba,shapeData:_0x3b9f1a,x:_0x3c101d,y:_0x1bd4d0,width:_0x221812,height:_0x3a370f}=_0x2b95f0;return this[_0x32fbc6(0x17e)][_0x32fbc6(0x161)](_0x4a74ed['id'],{'unitId':_0x38909b,'subUnitId':_0x29ed2d,'shapeId':_0x596c6f,'shapeType':_0x3ddeba,'shapeData':_0x3b9f1a,'position':{'x':_0x3c101d,'y':_0x1bd4d0},'width':_0x221812,'height':_0x3a370f});}[_0x2073d0(0x183)](_0x566203){const _0x4aedf4=_0x2073d0;let _0x2a5338=this[_0x4aedf4(0x165)]()[_0x4aedf4(0x101)](),_0x11207a=this[_0x4aedf4(0x10b)]();if(_0x566203){let _0x4ec868=new P(_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)],this[_0x4aedf4(0x147)]);return this[_0x4aedf4(0x17f)](_0x4ec868,_0x2a5338,_0x11207a,_0x566203[_0x4aedf4(0x124)]),_0x4ec868;}return new P(_0x2a5338,_0x11207a,_0x1e925e(),this['_injector']);}[_0x2073d0(0x157)](_0xe2e812){const _0x5d6944=_0x2073d0;let _0x4c2631=this['getWorkbook']()[_0x5d6944(0x101)](),_0x1abd34=this[_0x5d6944(0x10b)]();if(_0xe2e812){let _0x5b10f5=new F(_0x4c2631,_0x1abd34,_0xe2e812['drawId'],this[_0x5d6944(0x147)]);return this['_preloadShapeProperties'](_0x5b10f5,_0x4c2631,_0x1abd34,_0xe2e812['drawId']),_0x5b10f5;}return new F(_0x4c2631,_0x1abd34,_0x1e925e(),this[_0x5d6944(0x147)]);}[_0x2073d0(0x17c)](){const _0x785d49=_0x2073d0;let _0x5c6e7e=this[_0x785d49(0x147)]['get'](_0x286869),_0x1d58cc=this[_0x785d49(0x165)]()[_0x785d49(0x101)](),_0x4d67cf=this[_0x785d49(0x10b)](),_0x1e3770=_0x5c6e7e['getDrawingData'](_0x1d58cc,_0x4d67cf);if(!_0x1e3770)return[];let _0x12cb43=[];for(let [_0x30ca2b,_0x3f3b0a]of Object[_0x785d49(0x131)](_0x1e3770))if(_0x3f3b0a&&_0x3f3b0a[_0x785d49(0x12e)]===_0x232e10[_0x785d49(0x14c)]){let _0x2e8241=new P(_0x1d58cc,_0x4d67cf,_0x30ca2b,this[_0x785d49(0x147)]);this[_0x785d49(0x17f)](_0x2e8241,_0x1d58cc,_0x4d67cf,_0x30ca2b),_0x12cb43[_0x785d49(0x16e)](_0x2e8241);}return _0x12cb43;}['removeShape'](_0x3f88a9){const _0x36600d=_0x2073d0;let {unitId:_0x3abbdf,subUnitId:_0x593ca7,drawId:_0x5be6d6}=_0x3f88a9;return this['_commandService'][_0x36600d(0x161)](_0x4ddd72['id'],{'unitId':_0x3abbdf,'drawings':[{'unitId':_0x3abbdf,'subUnitId':_0x593ca7,'drawingId':_0x5be6d6,'drawingType':_0x232e10[_0x36600d(0x14c)]}]});}async[_0x2073d0(0x156)](_0xeddc22){const _0x6d5380=_0x2073d0;let {connector:_0x3d9e66,startTarget:_0x1dc056,endTarget:_0x315b47}=_0xeddc22;if(!_0x1dc056&&!_0x315b47)return!0x1;let _0x3930cc=this[_0x6d5380(0x165)]()['getUnitId'](),_0x223325=this[_0x6d5380(0x10b)](),_0x367dea=this[_0x6d5380(0x147)][_0x6d5380(0x141)](_0x20e1c9),_0x7afc88=this['_injector'][_0x6d5380(0x141)](_0x5859f8),_0x5c4874=_0x367dea[_0x6d5380(0x138)](_0x3930cc,_0x223325,_0x3d9e66[_0x6d5380(0x124)]);if(!_0x5c4874)return!0x1;let _0x27291a=_0x5c4874[_0x6d5380(0x166)](),_0x36828e=_0x5c4874[_0x6d5380(0x136)](),_0x59e299={};for(let _0xc305ff of _0x5c4874[_0x6d5380(0x143)]()){let _0x5d95c2=_0x5c4874['getAdjustValueByName'](_0xc305ff);_0x5d95c2!==void 0x0&&(_0x59e299[_0xc305ff]=_0x5d95c2);}let {startInfo:_0x20eb1d,endInfo:_0x233692}=this[_0x6d5380(0x115)](_0x3930cc,_0x223325,_0x3d9e66,_0x5c4874,_0x1dc056,_0x315b47,_0x367dea,_0x7afc88,_0x36828e);if(!_0x20eb1d||!_0x233692)return!0x1;let _0x1c4a0f=_0x416057(_0x232c7e(_0x20eb1d,_0x233692,_0x27291a),_0x27291a),_0x24922a={};return _0x1dc056?_0x24922a[_0x6d5380(0x140)]={'shapeId':_0x1dc056[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x1dc056['connectionSiteIndex']}:_0x36828e!=null&&_0x36828e['from']&&(_0x24922a[_0x6d5380(0x140)]=_0x36828e[_0x6d5380(0x140)]),_0x315b47?_0x24922a['to']={'shapeId':_0x315b47[_0x6d5380(0x159)][_0x6d5380(0x124)],'cxnIndex':_0x315b47[_0x6d5380(0x180)]}:_0x36828e!=null&&_0x36828e['to']&&(_0x24922a['to']=_0x36828e['to']),this[_0x6d5380(0x17e)][_0x6d5380(0x161)](_0x127ca0['id'],{'unitId':_0x3930cc,'subUnitId':_0x223325,'connectorShapeId':_0x3d9e66[_0x6d5380(0x124)],'width':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x128)],'height':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x152)],'left':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x16f)],'top':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0xfe)],'flipX':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x120)]||!0x1,'flipY':_0x1c4a0f[_0x6d5380(0x171)][_0x6d5380(0x158)]||!0x1,'oldAdjustValues':_0x59e299,'newAdjustValues':_0x1c4a0f[_0x6d5380(0x116)],'newLineType':_0x1c4a0f['lineType'],'oldLineType':_0x27291a,'rotation':_0x1c4a0f[_0x6d5380(0x130)],'oldRelation':_0x36828e,'newRelation':_0x24922a});}[_0x2073d0(0x17f)](_0x3083ef,_0x57decc,_0x3210b5,_0x1b0f56){const _0x21a500=_0x2073d0;let _0x35ed48=this['_injector'][_0x21a500(0x141)](_0x5859f8)['getDrawingByParam']({'unitId':_0x57decc,'subUnitId':_0x3210b5,'drawingId':_0x1b0f56});if(_0x35ed48!=null&&_0x35ed48[_0x21a500(0x126)]){var _0x413edf,_0x45ee9e,_0x213229,_0x5028c6;_0x3083ef['x']=(_0x413edf=_0x35ed48['transform'][_0x21a500(0x16f)])==null?0x0:_0x413edf,_0x3083ef['y']=(_0x45ee9e=_0x35ed48['transform'][_0x21a500(0xfe)])==null?0x0:_0x45ee9e,_0x3083ef[_0x21a500(0x128)]=(_0x213229=_0x35ed48['transform'][_0x21a500(0x128)])==null?_0x3083ef[_0x21a500(0x128)]:_0x213229,_0x3083ef[_0x21a500(0x152)]=(_0x5028c6=_0x35ed48[_0x21a500(0x126)][_0x21a500(0x152)])==null?_0x3083ef['height']:_0x5028c6;}let _0x12bf2c=this[_0x21a500(0x147)][_0x21a500(0x141)](_0x20e1c9)['getShapeModel'](_0x57decc,_0x3210b5,_0x1b0f56);if(_0x12bf2c){_0x3083ef[_0x21a500(0x108)]=_0x12bf2c[_0x21a500(0x166)]();let _0x5687af=_0x12bf2c['getShapeData']();_0x5687af&&(_0x3083ef[_0x21a500(0x113)]=JSON[_0x21a500(0x11c)](JSON['stringify'](_0x5687af)));}}[_0x2073d0(0x115)](_0x55e377,_0x4aae02,_0x436652,_0x19dcaf,_0x206273,_0x118c77,_0x45dc5c,_0x1d9e8f,_0x302bd4){const _0x9785a7=_0x2073d0;let _0x175968=null,_0x5664f8=null;return _0x206273&&(_0x175968=I(_0x55e377,_0x4aae02,_0x206273[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x206273[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x118c77&&(_0x5664f8=I(_0x55e377,_0x4aae02,_0x118c77[_0x9785a7(0x159)][_0x9785a7(0x124)],_0x118c77[_0x9785a7(0x180)],_0x45dc5c,_0x1d9e8f)),_0x175968||(_0x175968=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x0,_0x5664f8,_0x302bd4==null?void 0x0:_0x302bd4[_0x9785a7(0x140)],_0x45dc5c,_0x1d9e8f)),_0x5664f8||(_0x5664f8=this[_0x9785a7(0x121)](_0x55e377,_0x4aae02,_0x436652[_0x9785a7(0x124)],!0x1,_0x175968,_0x302bd4==null?void 0x0:_0x302bd4['to'],_0x45dc5c,_0x1d9e8f)),{'startInfo':_0x175968,'endInfo':_0x5664f8};}[_0x2073d0(0x121)](_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x4d9b9d,_0x29390d,_0x1b85d4){const _0x25b2d1=_0x2073d0;if(_0x4d9b9d){let _0x2ae2d6=I(_0x5e9f48,_0x4925ef,_0x4d9b9d[_0x25b2d1(0x14d)],_0x4d9b9d['cxnIndex'],_0x29390d,_0x1b85d4);if(_0x2ae2d6)return _0x2ae2d6;}return _0x3219cb?R(_0x5e9f48,_0x4925ef,_0x35aa68,_0x5ef675,_0x3219cb,_0x29390d,_0x1b85d4):null;}};_0x26843a[_0x2073d0(0x179)](z);export{F as FConnectorShape,P as FShape};function _0x3850(){const _0x60091c=['setStrokeLineDashType','index','connectShapes','newConnector','flipY','shape','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','3228756lOJpLN','getConnectorLinePoints','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getShapeId','SolidFill','setStrokeLineType','executeCommand','lineJoinType','setWidth','11UeeYoL','getWorkbook','getShapeType','getDrawingByParam','find','setStartArrowType','endArrow','symbol','ShapeLineCapEnum','1782786uUkxpp','push','left','setStrokeLineJoinType','worldRect','ShapeArrowTypeEnum','9fytaGN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setStrokeLineCapType','ShapeTypeEnum','dashType','updateContext','extend','setShapeType','77XSsvdy','getShapes','getConnectionSiteList','_commandService','_preloadShapeProperties','connectionSiteIndex','getDrawingPoints','updateShape','newShape','object','top','ShapeArrowSizeEnum','ShapeFillEnum','getUnitId','setShapeSolidFill','gradientStops','setStrokeWidth','738590dvSfOH','type','capType','shapeType','length','getConnectionSites','getSheetId','Skeleton\x20for\x20unitId\x20','relation','183465pUxJxG','setEndArrowSize','call','opacity','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','shapeData','size','_resolveEndpoints','adjustValues','fillType','\x20not\x20found','prototype','35VsOQkz','\x20and\x20subUnitId\x20','parse',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','point','7370KmxsqD','flipX','_resolveExistingOrFreeEndpoint','localToWorld','build','drawId','setAbsolutePosition','transform','ang','width','setEndArrowType','getEndConnectInfo','function','constructor','default','drawingType','insertShape','rotation','entries','toPrimitive','gradientType','subUnitId','startArrow','getShapeRelation','5WEefPh','getShapeModel','setStrokeOpacity','unitId','getShapeData','getPosition','stroke','getStartConnectInfo','defineProperty','from','get','iterator','getAdjustNames','color','219368JxkeuE','abs','_injector','gradientAngle','string','ShapeLineJoinEnum','ShapeLineDashEnum','DRAWING_SHAPE','shapeId','371404pBcgRT','fill','ensureSkeleton','setStartArrowSize','height','getSize'];_0x3850=function(){return _0x60091c;};return _0x3850();}
1
+ const _0x291bb4=_0x10d7;(function(_0x1c6552,_0x1a5eb9){const _0x499fee=_0x10d7,_0x33fe19=_0x1c6552();while(!![]){try{const _0x46cc14=parseInt(_0x499fee(0x180))/0x1*(parseInt(_0x499fee(0x11f))/0x2)+-parseInt(_0x499fee(0x155))/0x3*(-parseInt(_0x499fee(0x16e))/0x4)+-parseInt(_0x499fee(0x13a))/0x5*(parseInt(_0x499fee(0x147))/0x6)+-parseInt(_0x499fee(0x14d))/0x7+-parseInt(_0x499fee(0x11c))/0x8+parseInt(_0x499fee(0x18b))/0x9+-parseInt(_0x499fee(0x166))/0xa*(-parseInt(_0x499fee(0x12b))/0xb);if(_0x46cc14===_0x1a5eb9)break;else _0x33fe19['push'](_0x33fe19['shift']());}catch(_0x477b26){_0x33fe19['push'](_0x33fe19['shift']());}}}(_0x10ff,0x418c0));import{ConnectorCoordinateTransform as _0x3af6ac,ShapeArrowSizeEnum as _0x2155f7,ShapeArrowTypeEnum as _0x48d718,ShapeFillEnum as _0x56f575,ShapeGradientTypeEnum as _0x3d3b73,ShapeLineCapEnum as _0x3a73ac,ShapeLineDashEnum as _0x6eaf0d,ShapeLineJoinEnum as _0x5232cf,ShapeLineTypeEnum as _0x2e1f3e,ShapeTypeEnum as _0x140b90,computeConnectorRouteLayout as _0x1390bf,getBasicShapeRotateBound as _0x468f4d,isConnectorShape as _0x50e99f,routeConnectorLineShape as _0x59fc77}from'@univerjs-pro/engine-shape';import{FEnum as _0x2c4b61}from'@univerjs/core/facade';function _0x10d7(_0x1c07a4,_0x4892a8){_0x1c07a4=_0x1c07a4-0x10e;const _0x10ff88=_0x10ff();let _0x10d7a7=_0x10ff88[_0x1c07a4];return _0x10d7a7;}import{DEFAULT_SHAPE_HEIGHT as _0xd6b3e8,DEFAULT_SHAPE_WIDTH as _0xa2c7ac,InsertShapeCommand as _0x2d78f8,SetShapeDrawingDataCommand as _0x268798,SheetsShapeService as _0x32f133,UpdateConnectorRelationCommand as _0x219dd2}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x255a32,generateRandomId as _0x506b1e}from'@univerjs/core';function _0x10ff(){const _0x383bf4=['setShapeSolidFill','call','3260166OizARj','getDrawingByParam','getShapeData','shapeData','drawId','width','ShapeArrowSizeEnum','from','189VyjxAC','worldRect','string','gradientType','isLineShape','object','setStartArrowType','removeShape','lineType','getShapeModel','symbol','abs','ensureSkeleton','top','getConnectorLinePoints','setStrokeLineCapType','function','900CRAiij','_resolveEndpoints','updateShape','extend','ShapeLineJoinEnum','ShapeGradientTypeEnum','constructor','endArrow','10324fmJDFT','ang','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeFillEnum','height','opacity','sin','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','unitId','fill','getEndConnectInfo','getShapeType','index','setStrokeLineJoinType','find','keys','getShapes','setStrokeWidth','483oGbpgg','length','relation','shape','left','subUnitId','NoFill','build','newConnector','getUnitId','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','2323071KfQtpJ','_preloadShapeProperties','localToWorld','setShapeGradientFill','capType','shapeType','\x20and\x20subUnitId\x20','setWidth','_commandService','setStrokeColor','shapeId','getDrawingPoints','fillType','SolidFill','getAdjustValueByName','cxnIndex','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','1234536kLTvlp','getDrawingData','ShapeTypeEnum','1628zdFSEP','connectShapes','setStartArrowSize','size','startArrow','setEndArrowType','getShapeRelation','_injector','color','setStrokeOpacity','Skeleton\x20for\x20unitId\x20','transform','20229KcEOIa','stroke','executeCommand','default','getSheetId','updateContext','getShapeId','stringify','get','insertShape','cos','ShapeLineCapEnum','defineProperty','type','ShapeArrowTypeEnum','10565YDzbAb','setPosition','prototype','getConnectionSiteList','_resolveExistingOrFreeEndpoint','getStartConnectInfo','entries','setStrokeLineType','setNoneFill','connectionSiteIndex','getPosition','rotation','DRAWING_SHAPE','258eBRDuB','getWorkbook','\x20not\x20found','getAdjustPoints'];_0x10ff=function(){return _0x383bf4;};return _0x10ff();}import{IDrawingManagerService as _0x41f792}from'@univerjs/drawing';import{SheetSkeletonService as _0x40d10b,convertPositionCellToSheetOverGrid as _0x100e99}from'@univerjs/sheets';import{ISheetDrawingService as _0x14d135,RemoveSheetDrawingCommand as _0x1fa062}from'@univerjs/sheets-drawing';import{FWorksheet as _0x435e82}from'@univerjs/sheets/facade';var k=class extends _0x2c4b61{get[_0x291bb4(0x11e)](){return _0x140b90;}get[_0x291bb4(0x171)](){return _0x56f575;}get[_0x291bb4(0x16b)](){return _0x3d3b73;}get['ShapeLineTypeEnum'](){return _0x2e1f3e;}get['ShapeLineDashEnum'](){return _0x6eaf0d;}get[_0x291bb4(0x136)](){return _0x3a73ac;}get[_0x291bb4(0x16a)](){return _0x5232cf;}get[_0x291bb4(0x139)](){return _0x48d718;}get[_0x291bb4(0x153)](){return _0x2155f7;}};_0x2c4b61[_0x291bb4(0x169)](k);function A(_0x5a1545){'@babel/helpers - typeof';const _0x36760d=_0x291bb4;return A=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x36760d(0x15f)?function(_0x3c3bb5){return typeof _0x3c3bb5;}:function(_0x4ebbc4){const _0x4ac6cc=_0x36760d;return _0x4ebbc4&&typeof Symbol==_0x4ac6cc(0x165)&&_0x4ebbc4[_0x4ac6cc(0x16c)]===Symbol&&_0x4ebbc4!==Symbol[_0x4ac6cc(0x13c)]?_0x4ac6cc(0x15f):typeof _0x4ebbc4;},A(_0x5a1545);}function j(_0x157b57,_0x783281){const _0x3794f2=_0x291bb4;if(A(_0x157b57)!=_0x3794f2(0x15a)||!_0x157b57)return _0x157b57;var _0x1eb0e4=_0x157b57[Symbol['toPrimitive']];if(_0x1eb0e4!==void 0x0){var _0x1eb3f7=_0x1eb0e4[_0x3794f2(0x14c)](_0x157b57,_0x783281||_0x3794f2(0x12e));if(A(_0x1eb3f7)!=_0x3794f2(0x15a))return _0x1eb3f7;throw TypeError(_0x3794f2(0x170));}return(_0x783281===_0x3794f2(0x157)?String:Number)(_0x157b57);}function M(_0x1beec3){const _0x122b98=_0x291bb4;var _0x1ae5b5=j(_0x1beec3,'string');return A(_0x1ae5b5)==_0x122b98(0x15f)?_0x1ae5b5:_0x1ae5b5+'';}function N(_0x4116ec,_0xc4980c,_0xab6fa9){const _0x300898=_0x291bb4;return(_0xc4980c=M(_0xc4980c))in _0x4116ec?Object[_0x300898(0x137)](_0x4116ec,_0xc4980c,{'value':_0xab6fa9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4116ec[_0xc4980c]=_0xab6fa9,_0x4116ec;}var P=class{constructor(_0x2a0b04,_0x580b3e,_0x1c733b,_0x5758a1){const _0x1f6511=_0x291bb4;N(this,'unitId',void 0x0),N(this,_0x1f6511(0x185),void 0x0),N(this,_0x1f6511(0x151),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x1f6511(0x152),_0xa2c7ac),N(this,_0x1f6511(0x172),_0xd6b3e8),N(this,_0x1f6511(0x110),void 0x0),N(this,'shapeData',{}),N(this,_0x1f6511(0x126),void 0x0),this['unitId']=_0x2a0b04,this[_0x1f6511(0x185)]=_0x580b3e,this['drawId']=_0x1c733b||_0x506b1e(),this[_0x1f6511(0x126)]=_0x5758a1;}[_0x291bb4(0x13b)](_0x261d41,_0x4fc217,_0x27dc2b,_0x1263fa){const _0x4868c8=_0x291bb4;let _0x3a8f77=this[_0x4868c8(0x126)][_0x4868c8(0x133)](_0x40d10b)[_0x4868c8(0x161)](this[_0x4868c8(0x176)],this[_0x4868c8(0x185)]);if(!_0x3a8f77)throw Error(_0x4868c8(0x129)+this['unitId']+_0x4868c8(0x111)+this['subUnitId']+_0x4868c8(0x149));let {transform:_0x4c5151}=_0x100e99(this['unitId'],this[_0x4868c8(0x185)],{'row':_0x261d41,'column':_0x4fc217,'rowOffset':_0x27dc2b,'columnOffset':_0x1263fa},0x1,0x1,_0x3a8f77);return this['x']=_0x4c5151[_0x4868c8(0x184)],this['y']=_0x4c5151[_0x4868c8(0x162)],this;}['setAbsolutePosition'](_0x1a4538,_0x540a6e){return this['x']=_0x1a4538,this['y']=_0x540a6e,this;}['setShapeType'](_0x77a102){return this['shapeType']=_0x77a102,this;}[_0x291bb4(0x14b)](_0x198df8,_0x4689da){const _0x9d3d88=_0x291bb4;return this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]||(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]={}),this[_0x9d3d88(0x150)][_0x9d3d88(0x177)][_0x9d3d88(0x117)]=_0x56f575[_0x9d3d88(0x118)],_0x198df8!==void 0x0&&(this[_0x9d3d88(0x150)]['fill']['color']=_0x198df8),_0x4689da!==void 0x0&&(this[_0x9d3d88(0x150)][_0x9d3d88(0x177)]['opacity']=_0x4689da),this;}[_0x291bb4(0x10e)](_0x58ea71,_0x404ecd,_0x5045cb){const _0x118485=_0x291bb4;if(_0x404ecd===void 0x0||_0x404ecd[_0x118485(0x181)]===0x0)throw Error(_0x118485(0x175));return this[_0x118485(0x150)]['fill']||(this[_0x118485(0x150)][_0x118485(0x177)]={}),this[_0x118485(0x150)]['fill']['gradientStops']=_0x404ecd,this[_0x118485(0x150)][_0x118485(0x177)][_0x118485(0x117)]=_0x56f575['GradientFill'],this['shapeData'][_0x118485(0x177)][_0x118485(0x158)]=_0x58ea71,_0x5045cb!==void 0x0&&(this[_0x118485(0x150)][_0x118485(0x177)]['gradientAngle']=_0x5045cb),this;}[_0x291bb4(0x142)](){const _0x14498e=_0x291bb4;return this[_0x14498e(0x150)]['fill']={'fillType':_0x56f575[_0x14498e(0x186)]},this;}[_0x291bb4(0x114)](_0x3085bf){const _0x5ab674=_0x291bb4;return this[_0x5ab674(0x150)][_0x5ab674(0x12c)]||(this['shapeData'][_0x5ab674(0x12c)]={}),this['shapeData'][_0x5ab674(0x12c)][_0x5ab674(0x127)]=_0x3085bf,this;}[_0x291bb4(0x17f)](_0x8c029e){const _0x5009cf=_0x291bb4;return this[_0x5009cf(0x150)][_0x5009cf(0x12c)]||(this['shapeData']['stroke']={}),this[_0x5009cf(0x150)]['stroke'][_0x5009cf(0x152)]=_0x8c029e,this;}['setStrokeLineDashType'](_0x2a3931){const _0x4df03d=_0x291bb4;return this['shapeData'][_0x4df03d(0x12c)]||(this['shapeData'][_0x4df03d(0x12c)]={}),this[_0x4df03d(0x150)]['stroke']['dashType']=_0x2a3931,this;}[_0x291bb4(0x17b)](_0x5bcc09){const _0x229141=_0x291bb4;return this[_0x229141(0x150)]['stroke']||(this[_0x229141(0x150)][_0x229141(0x12c)]={}),this['shapeData'][_0x229141(0x12c)]['lineJoinType']=_0x5bcc09,this;}[_0x291bb4(0x164)](_0x38b6cc){const _0x3ee6cf=_0x291bb4;return this[_0x3ee6cf(0x150)]['stroke']||(this[_0x3ee6cf(0x150)][_0x3ee6cf(0x12c)]={}),this[_0x3ee6cf(0x150)]['stroke'][_0x3ee6cf(0x10f)]=_0x38b6cc,this;}[_0x291bb4(0x128)](_0x2723cd){const _0x3d33e3=_0x291bb4;return this['shapeData'][_0x3d33e3(0x12c)]||(this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)]={}),this[_0x3d33e3(0x150)][_0x3d33e3(0x12c)][_0x3d33e3(0x173)]=_0x2723cd,this;}[_0x291bb4(0x141)](_0x5683c4){const _0x502f8b=_0x291bb4;return this['shapeData']['stroke']||(this[_0x502f8b(0x150)][_0x502f8b(0x12c)]={}),this[_0x502f8b(0x150)][_0x502f8b(0x12c)]['lineStrokeType']=_0x5683c4,this;}[_0x291bb4(0x112)](_0x44132d){const _0x28ed93=_0x291bb4;return this[_0x28ed93(0x152)]=_0x44132d,this;}['setHeight'](_0xe3ab6a){const _0xcee124=_0x291bb4;return this[_0xcee124(0x172)]=_0xe3ab6a,this;}[_0x291bb4(0x159)](){const _0x2d8f19=_0x291bb4;let _0x9ed73c=this[_0x2d8f19(0x126)][_0x2d8f19(0x133)](_0x32f133)['getShapeModel'](this[_0x2d8f19(0x176)],this[_0x2d8f19(0x185)],this[_0x2d8f19(0x151)]);return _0x9ed73c?_0x50e99f(_0x9ed73c[_0x2d8f19(0x179)]()):this['shapeType']?_0x50e99f(this[_0x2d8f19(0x110)]):!0x1;}['getConnectionSites'](){const _0xef1195=_0x291bb4;let _0x375fc9=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x32f133)[_0xef1195(0x15e)](this[_0xef1195(0x176)],this[_0xef1195(0x185)],this[_0xef1195(0x151)]);if(!_0x375fc9)return[];let _0x462ad3=this[_0xef1195(0x126)][_0xef1195(0x133)](_0x41f792)[_0xef1195(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0xef1195(0x185)],'drawingId':this['drawId']});if(!(_0x462ad3!=null&&_0x462ad3[_0xef1195(0x12a)]))return[];let {width:_0xf7cd19=0x0,height:_0x42b9bf=0x0}=_0x462ad3[_0xef1195(0x12a)];return _0x375fc9[_0xef1195(0x130)]({'width':_0xf7cd19,'height':_0x42b9bf}),_0x375fc9[_0xef1195(0x13d)]();}[_0x291bb4(0x14a)](){const _0x288ca2=_0x291bb4;let _0x31cdc9=this['_injector']['get'](_0x32f133)['getShapeModel'](this['unitId'],this[_0x288ca2(0x185)],this[_0x288ca2(0x151)]);if(!_0x31cdc9)return[];let _0x486cfe=this[_0x288ca2(0x126)][_0x288ca2(0x133)](_0x41f792)[_0x288ca2(0x14e)]({'unitId':this['unitId'],'subUnitId':this[_0x288ca2(0x185)],'drawingId':this['drawId']});if(!(_0x486cfe!=null&&_0x486cfe[_0x288ca2(0x12a)]))return[];let {width:_0x12f537=0x0,height:_0x5bc8a9=0x0}=_0x486cfe[_0x288ca2(0x12a)];return _0x31cdc9['updateContext']({'width':_0x12f537,'height':_0x5bc8a9}),_0x31cdc9[_0x288ca2(0x116)]();}[_0x291bb4(0x163)](){const _0x3bf9f0=_0x291bb4;let _0x280a57=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x32f133)[_0x3bf9f0(0x15e)](this[_0x3bf9f0(0x176)],this[_0x3bf9f0(0x185)],this[_0x3bf9f0(0x151)]);if(!_0x280a57||!_0x50e99f(_0x280a57[_0x3bf9f0(0x179)]()))return[];let _0x1a96e3=this[_0x3bf9f0(0x126)][_0x3bf9f0(0x133)](_0x41f792)[_0x3bf9f0(0x14e)]({'unitId':this[_0x3bf9f0(0x176)],'subUnitId':this[_0x3bf9f0(0x185)],'drawingId':this[_0x3bf9f0(0x151)]});if(!(_0x1a96e3!=null&&_0x1a96e3[_0x3bf9f0(0x12a)]))return[];let {width:_0x216445=0x0,height:_0x43af91=0x0}=_0x1a96e3[_0x3bf9f0(0x12a)];return _0x280a57[_0x3bf9f0(0x130)]({'width':_0x216445,'height':_0x43af91}),_0x280a57['getConnectorLinePoints']();}[_0x291bb4(0x13f)](){const _0x7eb395=_0x291bb4;var _0x19df9f;let _0x2f017c=this[_0x7eb395(0x126)][_0x7eb395(0x133)](_0x32f133)[_0x7eb395(0x15e)](this[_0x7eb395(0x176)],this['subUnitId'],this[_0x7eb395(0x151)]);return _0x2f017c?(_0x19df9f=_0x2f017c[_0x7eb395(0x13f)]())==null?null:_0x19df9f:null;}[_0x291bb4(0x178)](){const _0x5368c4=_0x291bb4;var _0x2754d3;let _0x1ac605=this[_0x5368c4(0x126)][_0x5368c4(0x133)](_0x32f133)[_0x5368c4(0x15e)](this['unitId'],this[_0x5368c4(0x185)],this[_0x5368c4(0x151)]);return _0x1ac605?(_0x2754d3=_0x1ac605['getEndConnectInfo']())==null?null:_0x2754d3:null;}[_0x291bb4(0x187)](){const _0x3a8a6c=_0x291bb4;var _0x141713,_0x4c3bda;if(!this['shapeType'])throw Error(_0x3a8a6c(0x18a));if(this['x']===0x0||this['y']===0x0){let _0x169b03=this[_0x3a8a6c(0x126)]['get'](_0x40d10b)[_0x3a8a6c(0x161)](this[_0x3a8a6c(0x176)],this[_0x3a8a6c(0x185)]);if(!_0x169b03)throw Error(_0x3a8a6c(0x129)+this[_0x3a8a6c(0x176)]+'\x20and\x20subUnitId\x20'+this[_0x3a8a6c(0x185)]+_0x3a8a6c(0x149));let {transform:_0x4e2c57}=_0x100e99(this['unitId'],this[_0x3a8a6c(0x185)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x169b03);this['x']=this['x']>0x0?this['x']:_0x4e2c57[_0x3a8a6c(0x184)],this['y']=this['y']>0x0?this['y']:_0x4e2c57[_0x3a8a6c(0x162)];}return this[_0x3a8a6c(0x152)]=(_0x141713=this[_0x3a8a6c(0x152)])==null?_0xa2c7ac:_0x141713,this[_0x3a8a6c(0x172)]=(_0x4c3bda=this[_0x3a8a6c(0x172)])==null?_0xd6b3e8:_0x4c3bda,{'unitId':this[_0x3a8a6c(0x176)],'subUnitId':this['subUnitId'],'shapeId':this[_0x3a8a6c(0x151)],'shapeType':this[_0x3a8a6c(0x110)],'shapeData':Object[_0x3a8a6c(0x17d)](this[_0x3a8a6c(0x150)])[_0x3a8a6c(0x181)]>0x0?this[_0x3a8a6c(0x150)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x3a8a6c(0x172)]};}[_0x291bb4(0x131)](){const _0x5983bb=_0x291bb4;return this[_0x5983bb(0x151)];}['getShapeType'](){const _0x5ea486=_0x291bb4;return this[_0x5ea486(0x110)];}[_0x291bb4(0x14f)](){const _0x4954e1=_0x291bb4;return this[_0x4954e1(0x150)];}[_0x291bb4(0x144)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0xdffd63=_0x291bb4;return{'width':this[_0xdffd63(0x152)],'height':this[_0xdffd63(0x172)]};}},F=class extends P{constructor(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481){const _0x342473=_0x291bb4;super(_0x58eed2,_0x5c7dcb,_0x30a9c8,_0x542481),N(this,_0x342473(0x150),{});}['setShapeType'](_0x38304c){const _0x173e1a=_0x291bb4;if(!_0x50e99f(_0x38304c))throw Error(_0x173e1a(0x11b)+_0x38304c+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x38304c),this;}[_0x291bb4(0x15b)](_0x7b5985){const _0x30b6f7=_0x291bb4;var _0x3da1b9,_0x13ab25;return(_0x3da1b9=this[_0x30b6f7(0x150)])!=null&&_0x3da1b9['ln']||(this[_0x30b6f7(0x150)]['ln']={}),!((_0x13ab25=this[_0x30b6f7(0x150)])==null||(_0x13ab25=_0x13ab25['ln'])==null)&&_0x13ab25[_0x30b6f7(0x123)]||(this['shapeData']['ln'][_0x30b6f7(0x123)]={}),this[_0x30b6f7(0x150)]['ln']['startArrow'][_0x30b6f7(0x138)]=_0x7b5985,this;}[_0x291bb4(0x124)](_0x2ae5fb){const _0x2e6c9f=_0x291bb4;var _0x38f201,_0x415815;return(_0x38f201=this['shapeData'])!=null&&_0x38f201['ln']||(this[_0x2e6c9f(0x150)]['ln']={}),!((_0x415815=this[_0x2e6c9f(0x150)])==null||(_0x415815=_0x415815['ln'])==null)&&_0x415815['endArrow']||(this[_0x2e6c9f(0x150)]['ln'][_0x2e6c9f(0x16d)]={}),this['shapeData']['ln'][_0x2e6c9f(0x16d)]['type']=_0x2ae5fb,this;}[_0x291bb4(0x121)](_0x11812d){const _0x1a9e83=_0x291bb4;var _0x42c5c4,_0x23ed3d;return(_0x42c5c4=this[_0x1a9e83(0x150)])!=null&&_0x42c5c4['ln']||(this[_0x1a9e83(0x150)]['ln']={}),!((_0x23ed3d=this[_0x1a9e83(0x150)])==null||(_0x23ed3d=_0x23ed3d['ln'])==null)&&_0x23ed3d[_0x1a9e83(0x123)]||(this['shapeData']['ln']['startArrow']={}),this[_0x1a9e83(0x150)]['ln'][_0x1a9e83(0x123)][_0x1a9e83(0x122)]=_0x11812d,this;}['setEndArrowSize'](_0x3242fc){const _0x2dc2df=_0x291bb4;var _0x1d564b,_0x5502e5;return(_0x1d564b=this[_0x2dc2df(0x150)])!=null&&_0x1d564b['ln']||(this[_0x2dc2df(0x150)]['ln']={}),!((_0x5502e5=this['shapeData'])==null||(_0x5502e5=_0x5502e5['ln'])==null)&&_0x5502e5['endArrow']||(this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]={}),this[_0x2dc2df(0x150)]['ln'][_0x2dc2df(0x16d)]['size']=_0x3242fc,this;}[_0x291bb4(0x187)](){const _0x4c41ec=_0x291bb4;return super[_0x4c41ec(0x187)]();}[_0x291bb4(0x178)](){const _0x2217a7=_0x291bb4;var _0xc8c934;return((_0xc8c934=this[_0x2217a7(0x150)])==null||(_0xc8c934=_0xc8c934[_0x2217a7(0x182)])==null?void 0x0:_0xc8c934['to'])||null;}[_0x291bb4(0x13f)](){const _0x3392e2=_0x291bb4;var _0x5c0d3d;return((_0x5c0d3d=this[_0x3392e2(0x150)])==null||(_0x5c0d3d=_0x5c0d3d[_0x3392e2(0x182)])==null?void 0x0:_0x5c0d3d['from'])||null;}};function I(_0x8d8981,_0x41c625,_0x18d7f5,_0x2c17fe,_0x579bac,_0x478df6){const _0x44c814=_0x291bb4;let _0x13026d=_0x579bac[_0x44c814(0x15e)](_0x8d8981,_0x41c625,_0x18d7f5);if(!_0x13026d)return null;let _0x3643ac=_0x478df6[_0x44c814(0x14e)]({'unitId':_0x8d8981,'subUnitId':_0x41c625,'drawingId':_0x18d7f5});if(!(_0x3643ac!=null&&_0x3643ac[_0x44c814(0x12a)]))return null;let {left:_0x1d2b1e=0x0,top:_0x1583e0=0x0,width:_0x5e3e5d=0x0,height:_0x4f5724=0x0,flipX:_0xd2a02c=!0x1,flipY:_0x4f96af=!0x1,angle:_0x4791c9}=_0x3643ac[_0x44c814(0x12a)];_0x13026d[_0x44c814(0x130)]({'width':_0x5e3e5d,'height':_0x4f5724});let _0x1ad6aa=_0x13026d[_0x44c814(0x13d)]()[_0x44c814(0x17c)](_0x3c642d=>_0x3c642d[_0x44c814(0x17a)]===_0x2c17fe);if(!_0x1ad6aa)return null;let _0x265a76=_0xd2a02c?_0x5e3e5d-_0x1ad6aa['x']:_0x1ad6aa['x'],_0x5b618b=_0x4f96af?_0x4f5724-_0x1ad6aa['y']:_0x1ad6aa['y'];if(_0x4791c9&&_0x4791c9!==0x0){let _0x299421=_0x4791c9*Math['PI']/0xb4,_0x39492f=Math[_0x44c814(0x135)](_0x299421),_0x5525dd=Math[_0x44c814(0x174)](_0x299421),_0x38d391=_0x5e3e5d/0x2,_0x46530b=_0x4f5724/0x2,_0x28443a=_0x265a76-_0x38d391,_0x533292=_0x5b618b-_0x46530b;_0x265a76=_0x38d391+_0x28443a*_0x39492f-_0x533292*_0x5525dd,_0x5b618b=_0x46530b+_0x28443a*_0x5525dd+_0x533292*_0x39492f;}_0x265a76+=_0x1d2b1e,_0x5b618b+=_0x1583e0;let _0x3de08d=_0x1ad6aa[_0x44c814(0x16f)]/0xea60;_0xd2a02c&&(_0x3de08d=0xb4-_0x3de08d),_0x4f96af&&(_0x3de08d=-_0x3de08d),_0x3de08d+=_0x4791c9||0x0,_0x3de08d=(_0x3de08d%0x168+0x168)%0x168;let _0x10413b=_0x468f4d({'left':_0x1d2b1e,'top':_0x1583e0,'width':_0x5e3e5d,'height':_0x4f5724},_0x4791c9||0x0);return{'point':{'x':_0x265a76,'y':_0x5b618b},'angle':_0x3de08d,'bounds':_0x10413b};}function L(_0xa9b7bd,_0x14eabe){const _0x58da9c=_0x291bb4;let _0x2e2e4e=_0x14eabe['x']-_0xa9b7bd['x'],_0xc900d6=_0x14eabe['y']-_0xa9b7bd['y'];return Math[_0x58da9c(0x160)](_0x2e2e4e)>=Math[_0x58da9c(0x160)](_0xc900d6)?_0x2e2e4e>=0x0?0xb4:0x0:_0xc900d6>=0x0?0x10e:0x5a;}function R(_0x1876c6,_0x44a1ab,_0x4ad0cb,_0x575d5c,_0x15f0b8,_0x8d7868,_0x2eed4a){const _0x2fa57e=_0x291bb4;let _0xce97b1=_0x8d7868['getShapeModel'](_0x1876c6,_0x44a1ab,_0x4ad0cb);if(!_0xce97b1)return null;let _0x1d05e7=_0x2eed4a[_0x2fa57e(0x14e)]({'unitId':_0x1876c6,'subUnitId':_0x44a1ab,'drawingId':_0x4ad0cb});if(!(_0x1d05e7!=null&&_0x1d05e7[_0x2fa57e(0x12a)]))return null;let {left:_0x4fd262=0x0,top:_0x4ffc94=0x0,width:_0x458028=0x0,height:_0x457bba=0x0,flipX:_0x1fe5d2=!0x1,flipY:_0x54e319=!0x1}=_0x1d05e7[_0x2fa57e(0x12a)];_0xce97b1[_0x2fa57e(0x130)]({'width':_0x458028,'height':_0x457bba});let _0x10505f=_0xce97b1['getConnectorLinePoints']();if(_0x10505f[_0x2fa57e(0x181)]<0x2)return null;let _0x40eed3=_0x575d5c?_0x10505f[0x0]:_0x10505f[_0x10505f['length']-0x1],_0x3de4b7=new _0x3af6ac({'left':_0x4fd262,'top':_0x4ffc94,'width':_0x458028,'height':_0x457bba,'flipX':_0x1fe5d2,'flipY':_0x54e319})[_0x2fa57e(0x18d)](_0x40eed3);return{'point':_0x3de4b7,'angle':L(_0x15f0b8['point'],_0x3de4b7),'bounds':{'left':_0x3de4b7['x'],'top':_0x3de4b7['y'],'width':0x0,'height':0x0}};}var z=class extends _0x435e82{async[_0x291bb4(0x134)](_0x489826){const _0x5a1b45=_0x291bb4;let {unitId:_0x4cf428,subUnitId:_0x575cd8,shapeId:_0x2be68f,shapeType:_0x40a2ed,shapeData:_0x2964f9,x:_0x5dd0bc,y:_0x52f6a2,width:_0x4eddcb,height:_0x4cc8e2}=_0x489826;return this[_0x5a1b45(0x113)][_0x5a1b45(0x12d)](_0x2d78f8['id'],{'unitId':_0x4cf428,'subUnitId':_0x575cd8,'shapeId':_0x2be68f,'shapeType':_0x40a2ed,'shapeData':_0x2964f9,'position':{'x':_0x5dd0bc,'y':_0x52f6a2},'width':_0x4eddcb,'height':_0x4cc8e2});}async[_0x291bb4(0x168)](_0x4c6c48){const _0x5b1464=_0x291bb4;let {unitId:_0x186aa3,subUnitId:_0x5e0a50,shapeId:_0x43d57f,shapeType:_0x505f08,shapeData:_0x3eb725,x:_0x5ca3af,y:_0x4b298a,width:_0x1d349c,height:_0x3c47aa}=_0x4c6c48;return this['_commandService'][_0x5b1464(0x12d)](_0x268798['id'],{'unitId':_0x186aa3,'subUnitId':_0x5e0a50,'shapeId':_0x43d57f,'shapeType':_0x505f08,'shapeData':_0x3eb725,'position':{'x':_0x5ca3af,'y':_0x4b298a},'width':_0x1d349c,'height':_0x3c47aa});}['newShape'](_0xe9eec1){const _0x4a5ed0=_0x291bb4;let _0x50e147=this[_0x4a5ed0(0x148)]()['getUnitId'](),_0x40e240=this[_0x4a5ed0(0x12f)]();if(_0xe9eec1){let _0x1c4947=new P(_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)],this[_0x4a5ed0(0x126)]);return this[_0x4a5ed0(0x18c)](_0x1c4947,_0x50e147,_0x40e240,_0xe9eec1[_0x4a5ed0(0x151)]),_0x1c4947;}return new P(_0x50e147,_0x40e240,_0x506b1e(),this['_injector']);}[_0x291bb4(0x188)](_0x23fbc3){const _0x4cdc57=_0x291bb4;let _0x1db8f6=this['getWorkbook']()[_0x4cdc57(0x189)](),_0x2250c2=this[_0x4cdc57(0x12f)]();if(_0x23fbc3){let _0x55f236=new F(_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)],this[_0x4cdc57(0x126)]);return this[_0x4cdc57(0x18c)](_0x55f236,_0x1db8f6,_0x2250c2,_0x23fbc3[_0x4cdc57(0x151)]),_0x55f236;}return new F(_0x1db8f6,_0x2250c2,_0x506b1e(),this['_injector']);}[_0x291bb4(0x17e)](){const _0x76f708=_0x291bb4;let _0x261ce5=this[_0x76f708(0x126)]['get'](_0x14d135),_0x3a1cde=this[_0x76f708(0x148)]()[_0x76f708(0x189)](),_0x19bb16=this[_0x76f708(0x12f)](),_0x569dae=_0x261ce5[_0x76f708(0x11d)](_0x3a1cde,_0x19bb16);if(!_0x569dae)return[];let _0x3b72ca=[];for(let [_0x2e4454,_0xad1a7a]of Object[_0x76f708(0x140)](_0x569dae))if(_0xad1a7a&&_0xad1a7a['drawingType']===_0x255a32[_0x76f708(0x146)]){let _0x57779d=new P(_0x3a1cde,_0x19bb16,_0x2e4454,this[_0x76f708(0x126)]);this[_0x76f708(0x18c)](_0x57779d,_0x3a1cde,_0x19bb16,_0x2e4454),_0x3b72ca['push'](_0x57779d);}return _0x3b72ca;}[_0x291bb4(0x15c)](_0x5bb6ee){const _0x2a2a98=_0x291bb4;let {unitId:_0x45bfff,subUnitId:_0x41b3a7,drawId:_0x1c60e3}=_0x5bb6ee;return this['_commandService'][_0x2a2a98(0x12d)](_0x1fa062['id'],{'unitId':_0x45bfff,'drawings':[{'unitId':_0x45bfff,'subUnitId':_0x41b3a7,'drawingId':_0x1c60e3,'drawingType':_0x255a32['DRAWING_SHAPE']}]});}async[_0x291bb4(0x120)](_0x5064f9){const _0xa912f7=_0x291bb4;let {connector:_0x47335f,startTarget:_0x58bd20,endTarget:_0x3c4d5e}=_0x5064f9;if(!_0x58bd20&&!_0x3c4d5e)return!0x1;let _0x5340b4=this[_0xa912f7(0x148)]()[_0xa912f7(0x189)](),_0x1b1df8=this[_0xa912f7(0x12f)](),_0x43c8c5=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x32f133),_0xf1d35b=this[_0xa912f7(0x126)][_0xa912f7(0x133)](_0x41f792),_0x654580=_0x43c8c5[_0xa912f7(0x15e)](_0x5340b4,_0x1b1df8,_0x47335f[_0xa912f7(0x151)]);if(!_0x654580)return!0x1;let _0x12d271=_0x654580[_0xa912f7(0x179)](),_0x2d4bc0=_0x654580[_0xa912f7(0x125)](),_0x5d8595={};for(let _0x45403a of _0x654580['getAdjustNames']()){let _0x18aec5=_0x654580[_0xa912f7(0x119)](_0x45403a);_0x18aec5!==void 0x0&&(_0x5d8595[_0x45403a]=_0x18aec5);}let {startInfo:_0x86a1cb,endInfo:_0x38758a}=this[_0xa912f7(0x167)](_0x5340b4,_0x1b1df8,_0x47335f,_0x654580,_0x58bd20,_0x3c4d5e,_0x43c8c5,_0xf1d35b,_0x2d4bc0);if(!_0x86a1cb||!_0x38758a)return!0x1;let _0x4fe045=_0x1390bf(_0x59fc77(_0x86a1cb,_0x38758a,_0x12d271),_0x12d271),_0x45cc63={};return _0x58bd20?_0x45cc63['from']={'shapeId':_0x58bd20['shape'][_0xa912f7(0x151)],'cxnIndex':_0x58bd20[_0xa912f7(0x143)]}:_0x2d4bc0!=null&&_0x2d4bc0['from']&&(_0x45cc63[_0xa912f7(0x154)]=_0x2d4bc0[_0xa912f7(0x154)]),_0x3c4d5e?_0x45cc63['to']={'shapeId':_0x3c4d5e[_0xa912f7(0x183)][_0xa912f7(0x151)],'cxnIndex':_0x3c4d5e['connectionSiteIndex']}:_0x2d4bc0!=null&&_0x2d4bc0['to']&&(_0x45cc63['to']=_0x2d4bc0['to']),this[_0xa912f7(0x113)][_0xa912f7(0x12d)](_0x219dd2['id'],{'unitId':_0x5340b4,'subUnitId':_0x1b1df8,'connectorShapeId':_0x47335f[_0xa912f7(0x151)],'width':_0x4fe045[_0xa912f7(0x156)]['width'],'height':_0x4fe045['worldRect'][_0xa912f7(0x172)],'left':_0x4fe045[_0xa912f7(0x156)][_0xa912f7(0x184)],'top':_0x4fe045['worldRect'][_0xa912f7(0x162)],'flipX':_0x4fe045['worldRect']['flipX']||!0x1,'flipY':_0x4fe045[_0xa912f7(0x156)]['flipY']||!0x1,'oldAdjustValues':_0x5d8595,'newAdjustValues':_0x4fe045['adjustValues'],'newLineType':_0x4fe045[_0xa912f7(0x15d)],'oldLineType':_0x12d271,'rotation':_0x4fe045[_0xa912f7(0x145)],'oldRelation':_0x2d4bc0,'newRelation':_0x45cc63});}[_0x291bb4(0x18c)](_0x58b9c9,_0x1cc1bf,_0x30f73a,_0x51dd5a){const _0x2add98=_0x291bb4;let _0x50e1e5=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x41f792)[_0x2add98(0x14e)]({'unitId':_0x1cc1bf,'subUnitId':_0x30f73a,'drawingId':_0x51dd5a});if(_0x50e1e5!=null&&_0x50e1e5['transform']){var _0x4404ca,_0x2f7c6d,_0x250518,_0xf08f46;_0x58b9c9['x']=(_0x4404ca=_0x50e1e5['transform'][_0x2add98(0x184)])==null?0x0:_0x4404ca,_0x58b9c9['y']=(_0x2f7c6d=_0x50e1e5['transform'][_0x2add98(0x162)])==null?0x0:_0x2f7c6d,_0x58b9c9[_0x2add98(0x152)]=(_0x250518=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x152)])==null?_0x58b9c9[_0x2add98(0x152)]:_0x250518,_0x58b9c9[_0x2add98(0x172)]=(_0xf08f46=_0x50e1e5[_0x2add98(0x12a)][_0x2add98(0x172)])==null?_0x58b9c9[_0x2add98(0x172)]:_0xf08f46;}let _0x5930c3=this[_0x2add98(0x126)][_0x2add98(0x133)](_0x32f133)[_0x2add98(0x15e)](_0x1cc1bf,_0x30f73a,_0x51dd5a);if(_0x5930c3){_0x58b9c9[_0x2add98(0x110)]=_0x5930c3[_0x2add98(0x179)]();let _0x195736=_0x5930c3[_0x2add98(0x14f)]();_0x195736&&(_0x58b9c9[_0x2add98(0x150)]=JSON['parse'](JSON[_0x2add98(0x132)](_0x195736)));}}[_0x291bb4(0x167)](_0xd84ca8,_0x20bf47,_0x53f6f1,_0x44ea04,_0x416fa1,_0x5eb004,_0x1b7505,_0x41b98a,_0x3d0389){const _0x434b74=_0x291bb4;let _0xbe91d8=null,_0x2b4212=null;return _0x416fa1&&(_0xbe91d8=I(_0xd84ca8,_0x20bf47,_0x416fa1['shape']['drawId'],_0x416fa1[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0x5eb004&&(_0x2b4212=I(_0xd84ca8,_0x20bf47,_0x5eb004[_0x434b74(0x183)][_0x434b74(0x151)],_0x5eb004[_0x434b74(0x143)],_0x1b7505,_0x41b98a)),_0xbe91d8||(_0xbe91d8=this['_resolveExistingOrFreeEndpoint'](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x0,_0x2b4212,_0x3d0389==null?void 0x0:_0x3d0389['from'],_0x1b7505,_0x41b98a)),_0x2b4212||(_0x2b4212=this[_0x434b74(0x13e)](_0xd84ca8,_0x20bf47,_0x53f6f1[_0x434b74(0x151)],!0x1,_0xbe91d8,_0x3d0389==null?void 0x0:_0x3d0389['to'],_0x1b7505,_0x41b98a)),{'startInfo':_0xbe91d8,'endInfo':_0x2b4212};}['_resolveExistingOrFreeEndpoint'](_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x1b67d3,_0x4d75d6,_0x33a6e1){const _0x15cf70=_0x291bb4;if(_0x1b67d3){let _0x46c05e=I(_0x4d1515,_0x1ac046,_0x1b67d3[_0x15cf70(0x115)],_0x1b67d3[_0x15cf70(0x11a)],_0x4d75d6,_0x33a6e1);if(_0x46c05e)return _0x46c05e;}return _0x25a3d9?R(_0x4d1515,_0x1ac046,_0x168a08,_0x4def09,_0x25a3d9,_0x4d75d6,_0x33a6e1):null;}};_0x435e82[_0x291bb4(0x169)](z);export{F as FConnectorShape,P as FShape};