@univerjs-pro/sheets-shape 0.23.0-insiders.20260523-10caf99 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5052(){const _0x10f33c=['setNoneFill','shape','FEnum','1173372FfGPWM','entries','width','abs','updateContext','149816fFIrso','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ConnectorCoordinateTransform','getShapes','5010ZldWgz','fill','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','567WnmzKy','extend','setEndArrowType','getConnectorLinePoints','getUnitId','DEFAULT_SHAPE_WIDTH','opacity','Module','_commandService','FConnectorShape','from','cxnIndex','left','DrawingTypeEnum','keys','connectShapes','\x20not\x20found','ShapeTypeEnum','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','setShapeType','\x20and\x20subUnitId\x20','setStrokeOpacity','getWorkbook','5468742Qrhomh','size','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','ShapeLineDashEnum','flipX','setShapeGradientFill','toStringTag','ISheetDrawingService','ShapeArrowSizeEnum','setStrokeLineJoinType','getShapeRelation','gradientStops','setStrokeLineDashType','GradientFill','DRAWING_SHAPE','setAbsolutePosition','9102lXSfnE','SheetSkeletonService','_resolveExistingOrFreeEndpoint','_injector',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','unitId','getDrawingByParam','fillType','setPosition','isConnectorShape','parse','transform','flipY','ShapeGradientTypeEnum','cos','generateRandomId','isLineShape','object','worldRect','IDrawingManagerService','get','getDrawingData','getStartConnectInfo','getEndConnectInfo','setStartArrowType','DEFAULT_SHAPE_HEIGHT','sin','endArrow','getShapeData','ShapeLineJoinEnum','capType','lineStrokeType','4290798cbiAle','connectionSiteIndex','getBasicShapeRotateBound','RemoveSheetDrawingCommand','newShape','ensureSkeleton','getDrawingPoints','getConnectionSiteList','length','341KEHBLX','getAdjustValueByName','stroke','rotation','relation','ShapeLineTypeEnum','build','drawingType','executeCommand','constructor','getShapeModel','startArrow','11PzDaZs','setStrokeWidth','computeConnectorRouteLayout','function','drawId','top','stringify','shapeType','defineProperty','iterator','dashType','NoFill','12862210jsqtqV','ShapeLineCapEnum','convertPositionCellToSheetOverGrid','color','find','getShapeType','lineType','toPrimitive','getSize','setStartArrowSize','string','symbol','routeConnectorLineShape','ShapeFillEnum','shapeData','setEndArrowSize','16WcQREE','subUnitId','SetShapeDrawingDataCommand','FWorksheet','UpdateConnectorRelationCommand','setStrokeColor','setWidth','_preloadShapeProperties','SolidFill','height','gradientAngle','SheetsShapeService','getSheetId','default','InsertShapeCommand','Skeleton\x20for\x20unitId\x20','_resolveEndpoints','prototype','setHeight','52MHPgXS','push'];_0x5052=function(){return _0x10f33c;};return _0x5052();}const _0x1d13aa=_0x5a3e;(function(_0x49336f,_0x3de758){const _0x3eb89c=_0x5a3e,_0x1e8796=_0x49336f();while(!![]){try{const _0x65a75c=parseInt(_0x3eb89c(0x1d9))/0x1*(-parseInt(_0x3eb89c(0x212))/0x2)+-parseInt(_0x3eb89c(0x1c4))/0x3+parseInt(_0x3eb89c(0x208))/0x4*(-parseInt(_0x3eb89c(0x216))/0x5)+-parseInt(_0x3eb89c(0x1a4))/0x6*(-parseInt(_0x3eb89c(0x219))/0x7)+parseInt(_0x3eb89c(0x1f5))/0x8*(-parseInt(_0x3eb89c(0x194))/0x9)+parseInt(_0x3eb89c(0x1e5))/0xa+parseInt(_0x3eb89c(0x1cd))/0xb*(parseInt(_0x3eb89c(0x20d))/0xc);if(_0x65a75c===_0x3de758)break;else _0x1e8796['push'](_0x1e8796['shift']());}catch(_0x15568){_0x1e8796['push'](_0x1e8796['shift']());}}}(_0x5052,0xe9d39),Object[_0x1d13aa(0x1e1)](exports,Symbol[_0x1d13aa(0x19a)],{'value':_0x1d13aa(0x220)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t['FEnum']{get[_0x1d13aa(0x18e)](){const _0x5b9358=_0x1d13aa;return e[_0x5b9358(0x18e)];}get[_0x1d13aa(0x1f2)](){const _0x908a69=_0x1d13aa;return e[_0x908a69(0x1f2)];}get[_0x1d13aa(0x1b1)](){const _0x50b94f=_0x1d13aa;return e[_0x50b94f(0x1b1)];}get[_0x1d13aa(0x1d2)](){const _0x5dde71=_0x1d13aa;return e[_0x5dde71(0x1d2)];}get[_0x1d13aa(0x197)](){const _0x4c0e0d=_0x1d13aa;return e[_0x4c0e0d(0x197)];}get['ShapeLineCapEnum'](){const _0x5e985a=_0x1d13aa;return e[_0x5e985a(0x1e6)];}get[_0x1d13aa(0x1c1)](){const _0x5608a6=_0x1d13aa;return e[_0x5608a6(0x1c1)];}get['ShapeArrowTypeEnum'](){return e['ShapeArrowTypeEnum'];}get[_0x1d13aa(0x19c)](){const _0x2bf6ce=_0x1d13aa;return e[_0x2bf6ce(0x19c)];}};t[_0x1d13aa(0x20c)][_0x1d13aa(0x21a)](c);function l(_0xc1c078){'@babel/helpers - typeof';const _0x221e11=_0x1d13aa;return l=typeof Symbol==_0x221e11(0x1dc)&&typeof Symbol[_0x221e11(0x1e2)]==_0x221e11(0x1f0)?function(_0x570d2b){return typeof _0x570d2b;}:function(_0x3435ef){const _0x5c73f9=_0x221e11;return _0x3435ef&&typeof Symbol==_0x5c73f9(0x1dc)&&_0x3435ef[_0x5c73f9(0x1d6)]===Symbol&&_0x3435ef!==Symbol[_0x5c73f9(0x206)]?_0x5c73f9(0x1f0):typeof _0x3435ef;},l(_0xc1c078);}function u(_0x217fdc,_0x1e8eca){const _0x1be2e8=_0x1d13aa;if(l(_0x217fdc)!=_0x1be2e8(0x1b5)||!_0x217fdc)return _0x217fdc;var _0x3afb51=_0x217fdc[Symbol[_0x1be2e8(0x1ec)]];if(_0x3afb51!==void 0x0){var _0xc73c2e=_0x3afb51['call'](_0x217fdc,_0x1e8eca||_0x1be2e8(0x202));if(l(_0xc73c2e)!=_0x1be2e8(0x1b5))return _0xc73c2e;throw TypeError(_0x1be2e8(0x213));}return(_0x1e8eca===_0x1be2e8(0x1ef)?String:Number)(_0x217fdc);}function d(_0x2d2bf4){const _0x204292=_0x1d13aa;var _0x685250=u(_0x2d2bf4,'string');return l(_0x685250)==_0x204292(0x1f0)?_0x685250:_0x685250+'';}function f(_0x1394b2,_0x28af0b,_0x8fe82c){return(_0x28af0b=d(_0x28af0b))in _0x1394b2?Object['defineProperty'](_0x1394b2,_0x28af0b,{'value':_0x8fe82c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1394b2[_0x28af0b]=_0x8fe82c,_0x1394b2;}var p=class{constructor(_0x2c8e6c,_0x5e101e,_0x5650bb,_0x59d933){const _0x460fa0=_0x1d13aa;f(this,_0x460fa0(0x1a9),void 0x0),f(this,_0x460fa0(0x1f6),void 0x0),f(this,'drawId',void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x460fa0(0x20f),n['DEFAULT_SHAPE_WIDTH']),f(this,_0x460fa0(0x1fe),n[_0x460fa0(0x1bd)]),f(this,_0x460fa0(0x1e0),void 0x0),f(this,_0x460fa0(0x1f3),{}),f(this,'_injector',void 0x0),this[_0x460fa0(0x1a9)]=_0x2c8e6c,this[_0x460fa0(0x1f6)]=_0x5e101e,this[_0x460fa0(0x1dd)]=_0x5650bb||(0x0,r[_0x460fa0(0x1b3)])(),this[_0x460fa0(0x1a7)]=_0x59d933;}[_0x1d13aa(0x1ac)](_0x4f0ccf,_0x5dee97,_0x504506,_0x4caf6e){const _0x3960ec=_0x1d13aa;let _0x56ad32=this[_0x3960ec(0x1a7)][_0x3960ec(0x1b8)](a[_0x3960ec(0x1a5)])[_0x3960ec(0x1c9)](this[_0x3960ec(0x1a9)],this[_0x3960ec(0x1f6)]);if(!_0x56ad32)throw Error(_0x3960ec(0x204)+this[_0x3960ec(0x1a9)]+_0x3960ec(0x191)+this[_0x3960ec(0x1f6)]+'\x20not\x20found');let {transform:_0x19b163}=(0x0,a[_0x3960ec(0x1e7)])(this['unitId'],this[_0x3960ec(0x1f6)],{'row':_0x4f0ccf,'column':_0x5dee97,'rowOffset':_0x504506,'columnOffset':_0x4caf6e},0x1,0x1,_0x56ad32);return this['x']=_0x19b163[_0x3960ec(0x225)],this['y']=_0x19b163['top'],this;}[_0x1d13aa(0x1a3)](_0x3c0703,_0x10b80a){return this['x']=_0x3c0703,this['y']=_0x10b80a,this;}[_0x1d13aa(0x190)](_0x5ba2ac){const _0x5877fb=_0x1d13aa;return this[_0x5877fb(0x1e0)]=_0x5ba2ac,this;}['setShapeSolidFill'](_0x33d339,_0xb8a72f){const _0x55d459=_0x1d13aa;return this[_0x55d459(0x1f3)][_0x55d459(0x217)]||(this[_0x55d459(0x1f3)][_0x55d459(0x217)]={}),this[_0x55d459(0x1f3)][_0x55d459(0x217)][_0x55d459(0x1ab)]=e['ShapeFillEnum'][_0x55d459(0x1fd)],_0x33d339!==void 0x0&&(this[_0x55d459(0x1f3)][_0x55d459(0x217)]['color']=_0x33d339),_0xb8a72f!==void 0x0&&(this[_0x55d459(0x1f3)]['fill'][_0x55d459(0x21f)]=_0xb8a72f),this;}[_0x1d13aa(0x199)](_0x595361,_0x2e7cb9,_0x28fc3b){const _0x4668f0=_0x1d13aa;if(_0x2e7cb9===void 0x0||_0x2e7cb9[_0x4668f0(0x1cc)]===0x0)throw Error(_0x4668f0(0x196));return this[_0x4668f0(0x1f3)][_0x4668f0(0x217)]||(this[_0x4668f0(0x1f3)]['fill']={}),this[_0x4668f0(0x1f3)][_0x4668f0(0x217)][_0x4668f0(0x19f)]=_0x2e7cb9,this['shapeData'][_0x4668f0(0x217)][_0x4668f0(0x1ab)]=e[_0x4668f0(0x1f2)][_0x4668f0(0x1a1)],this[_0x4668f0(0x1f3)]['fill']['gradientType']=_0x595361,_0x28fc3b!==void 0x0&&(this[_0x4668f0(0x1f3)][_0x4668f0(0x217)][_0x4668f0(0x1ff)]=_0x28fc3b),this;}[_0x1d13aa(0x20a)](){const _0x5d2969=_0x1d13aa;return this[_0x5d2969(0x1f3)][_0x5d2969(0x217)]={'fillType':e[_0x5d2969(0x1f2)][_0x5d2969(0x1e4)]},this;}[_0x1d13aa(0x1fa)](_0x539f0a){const _0x2767e1=_0x1d13aa;return this[_0x2767e1(0x1f3)]['stroke']||(this[_0x2767e1(0x1f3)]['stroke']={}),this[_0x2767e1(0x1f3)][_0x2767e1(0x1cf)][_0x2767e1(0x1e8)]=_0x539f0a,this;}[_0x1d13aa(0x1da)](_0x581c02){const _0x65cf4e=_0x1d13aa;return this[_0x65cf4e(0x1f3)]['stroke']||(this['shapeData'][_0x65cf4e(0x1cf)]={}),this[_0x65cf4e(0x1f3)][_0x65cf4e(0x1cf)][_0x65cf4e(0x20f)]=_0x581c02,this;}[_0x1d13aa(0x1a0)](_0x4b72d9){const _0x33a247=_0x1d13aa;return this[_0x33a247(0x1f3)][_0x33a247(0x1cf)]||(this[_0x33a247(0x1f3)][_0x33a247(0x1cf)]={}),this[_0x33a247(0x1f3)][_0x33a247(0x1cf)][_0x33a247(0x1e3)]=_0x4b72d9,this;}[_0x1d13aa(0x19d)](_0x1a100a){const _0x3c80f9=_0x1d13aa;return this[_0x3c80f9(0x1f3)][_0x3c80f9(0x1cf)]||(this[_0x3c80f9(0x1f3)][_0x3c80f9(0x1cf)]={}),this['shapeData'][_0x3c80f9(0x1cf)]['lineJoinType']=_0x1a100a,this;}['setStrokeLineCapType'](_0x487b2a){const _0x467e8c=_0x1d13aa;return this[_0x467e8c(0x1f3)][_0x467e8c(0x1cf)]||(this['shapeData'][_0x467e8c(0x1cf)]={}),this[_0x467e8c(0x1f3)][_0x467e8c(0x1cf)][_0x467e8c(0x1c2)]=_0x487b2a,this;}[_0x1d13aa(0x192)](_0x50584d){const _0x321d8c=_0x1d13aa;return this[_0x321d8c(0x1f3)][_0x321d8c(0x1cf)]||(this[_0x321d8c(0x1f3)][_0x321d8c(0x1cf)]={}),this['shapeData'][_0x321d8c(0x1cf)][_0x321d8c(0x21f)]=_0x50584d,this;}['setStrokeLineType'](_0x58a817){const _0x2374f4=_0x1d13aa;return this[_0x2374f4(0x1f3)][_0x2374f4(0x1cf)]||(this[_0x2374f4(0x1f3)][_0x2374f4(0x1cf)]={}),this[_0x2374f4(0x1f3)][_0x2374f4(0x1cf)][_0x2374f4(0x1c3)]=_0x58a817,this;}[_0x1d13aa(0x1fb)](_0x3a06d3){return this['width']=_0x3a06d3,this;}[_0x1d13aa(0x207)](_0x29649f){const _0x5d3f76=_0x1d13aa;return this[_0x5d3f76(0x1fe)]=_0x29649f,this;}[_0x1d13aa(0x1b4)](){const _0x2f5cb2=_0x1d13aa;let _0x556daa=this[_0x2f5cb2(0x1a7)]['get'](n[_0x2f5cb2(0x200)])['getShapeModel'](this['unitId'],this[_0x2f5cb2(0x1f6)],this[_0x2f5cb2(0x1dd)]);return _0x556daa?(0x0,e[_0x2f5cb2(0x1ad)])(_0x556daa[_0x2f5cb2(0x1ea)]()):this[_0x2f5cb2(0x1e0)]?(0x0,e['isConnectorShape'])(this['shapeType']):!0x1;}['getConnectionSites'](){const _0x29f256=_0x1d13aa;let _0x5a12df=this[_0x29f256(0x1a7)][_0x29f256(0x1b8)](n['SheetsShapeService'])[_0x29f256(0x1d7)](this[_0x29f256(0x1a9)],this['subUnitId'],this['drawId']);if(!_0x5a12df)return[];let _0x98364a=this[_0x29f256(0x1a7)]['get'](i[_0x29f256(0x1b7)])[_0x29f256(0x1aa)]({'unitId':this[_0x29f256(0x1a9)],'subUnitId':this[_0x29f256(0x1f6)],'drawingId':this[_0x29f256(0x1dd)]});if(!(_0x98364a!=null&&_0x98364a['transform']))return[];let {width:_0x4616fd=0x0,height:_0x2b2be3=0x0}=_0x98364a[_0x29f256(0x1af)];return _0x5a12df[_0x29f256(0x211)]({'width':_0x4616fd,'height':_0x2b2be3}),_0x5a12df['getConnectionSiteList']();}['getAdjustPoints'](){const _0x30b48b=_0x1d13aa;let _0x4e58cb=this[_0x30b48b(0x1a7)]['get'](n[_0x30b48b(0x200)])[_0x30b48b(0x1d7)](this[_0x30b48b(0x1a9)],this[_0x30b48b(0x1f6)],this[_0x30b48b(0x1dd)]);if(!_0x4e58cb)return[];let _0x460766=this[_0x30b48b(0x1a7)][_0x30b48b(0x1b8)](i[_0x30b48b(0x1b7)])[_0x30b48b(0x1aa)]({'unitId':this[_0x30b48b(0x1a9)],'subUnitId':this[_0x30b48b(0x1f6)],'drawingId':this[_0x30b48b(0x1dd)]});if(!(_0x460766!=null&&_0x460766[_0x30b48b(0x1af)]))return[];let {width:_0x4de653=0x0,height:_0xf25981=0x0}=_0x460766[_0x30b48b(0x1af)];return _0x4e58cb[_0x30b48b(0x211)]({'width':_0x4de653,'height':_0xf25981}),_0x4e58cb[_0x30b48b(0x1ca)]();}['getConnectorLinePoints'](){const _0x1c569f=_0x1d13aa;let _0x480f9d=this['_injector']['get'](n[_0x1c569f(0x200)])[_0x1c569f(0x1d7)](this[_0x1c569f(0x1a9)],this['subUnitId'],this[_0x1c569f(0x1dd)]);if(!_0x480f9d||!(0x0,e[_0x1c569f(0x1ad)])(_0x480f9d['getShapeType']()))return[];let _0x101b2c=this[_0x1c569f(0x1a7)]['get'](i[_0x1c569f(0x1b7)])[_0x1c569f(0x1aa)]({'unitId':this[_0x1c569f(0x1a9)],'subUnitId':this['subUnitId'],'drawingId':this['drawId']});if(!(_0x101b2c!=null&&_0x101b2c['transform']))return[];let {width:_0x19340e=0x0,height:_0x471f20=0x0}=_0x101b2c[_0x1c569f(0x1af)];return _0x480f9d['updateContext']({'width':_0x19340e,'height':_0x471f20}),_0x480f9d[_0x1c569f(0x21c)]();}[_0x1d13aa(0x1ba)](){const _0x4cd036=_0x1d13aa;var _0x465df5;let _0x23f26e=this['_injector']['get'](n['SheetsShapeService'])[_0x4cd036(0x1d7)](this[_0x4cd036(0x1a9)],this[_0x4cd036(0x1f6)],this[_0x4cd036(0x1dd)]);return _0x23f26e?(_0x465df5=_0x23f26e[_0x4cd036(0x1ba)]())==null?null:_0x465df5:null;}['getEndConnectInfo'](){const _0x1043aa=_0x1d13aa;var _0x3492db;let _0x2e2637=this[_0x1043aa(0x1a7)][_0x1043aa(0x1b8)](n[_0x1043aa(0x200)])['getShapeModel'](this['unitId'],this['subUnitId'],this[_0x1043aa(0x1dd)]);return _0x2e2637?(_0x3492db=_0x2e2637[_0x1043aa(0x1bb)]())==null?null:_0x3492db:null;}[_0x1d13aa(0x1d3)](){const _0x27d112=_0x1d13aa;var _0x359d11,_0x5ab99d;if(!this[_0x27d112(0x1e0)])throw Error(_0x27d112(0x18f));if(this['x']===0x0||this['y']===0x0){let _0x291ced=this[_0x27d112(0x1a7)][_0x27d112(0x1b8)](a['SheetSkeletonService'])[_0x27d112(0x1c9)](this[_0x27d112(0x1a9)],this[_0x27d112(0x1f6)]);if(!_0x291ced)throw Error(_0x27d112(0x204)+this['unitId']+_0x27d112(0x191)+this[_0x27d112(0x1f6)]+_0x27d112(0x18d));let {transform:_0x1741b7}=(0x0,a[_0x27d112(0x1e7)])(this[_0x27d112(0x1a9)],this[_0x27d112(0x1f6)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x291ced);this['x']=this['x']>0x0?this['x']:_0x1741b7[_0x27d112(0x225)],this['y']=this['y']>0x0?this['y']:_0x1741b7[_0x27d112(0x1de)];}return this['width']=(_0x359d11=this['width'])==null?n[_0x27d112(0x21e)]:_0x359d11,this[_0x27d112(0x1fe)]=(_0x5ab99d=this[_0x27d112(0x1fe)])==null?n[_0x27d112(0x1bd)]:_0x5ab99d,{'unitId':this[_0x27d112(0x1a9)],'subUnitId':this[_0x27d112(0x1f6)],'shapeId':this[_0x27d112(0x1dd)],'shapeType':this[_0x27d112(0x1e0)],'shapeData':Object[_0x27d112(0x18b)](this[_0x27d112(0x1f3)])[_0x27d112(0x1cc)]>0x0?this[_0x27d112(0x1f3)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x27d112(0x20f)],'height':this['height']};}['getShapeId'](){const _0x33237b=_0x1d13aa;return this[_0x33237b(0x1dd)];}[_0x1d13aa(0x1ea)](){const _0x1fc2a9=_0x1d13aa;return this[_0x1fc2a9(0x1e0)];}[_0x1d13aa(0x1c0)](){return this['shapeData'];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x1d13aa(0x1ed)](){const _0x4e8995=_0x1d13aa;return{'width':this[_0x4e8995(0x20f)],'height':this['height']};}},m=class extends p{constructor(_0x39b168,_0x5151a7,_0x3cd119,_0x3a34b7){const _0x5a3cf9=_0x1d13aa;super(_0x39b168,_0x5151a7,_0x3cd119,_0x3a34b7),f(this,_0x5a3cf9(0x1f3),{});}[_0x1d13aa(0x190)](_0x970e5b){const _0xb848bb=_0x1d13aa;if(!(0x0,e['isConnectorShape'])(_0x970e5b))throw Error(_0xb848bb(0x218)+_0x970e5b+_0xb848bb(0x1a8));return super['setShapeType'](_0x970e5b),this;}[_0x1d13aa(0x1bc)](_0xb42c40){const _0x4b5931=_0x1d13aa;var _0x1d9813,_0x44d7ec;return(_0x1d9813=this['shapeData'])!=null&&_0x1d9813['ln']||(this[_0x4b5931(0x1f3)]['ln']={}),!((_0x44d7ec=this[_0x4b5931(0x1f3)])==null||(_0x44d7ec=_0x44d7ec['ln'])==null)&&_0x44d7ec[_0x4b5931(0x1d8)]||(this['shapeData']['ln'][_0x4b5931(0x1d8)]={}),this[_0x4b5931(0x1f3)]['ln'][_0x4b5931(0x1d8)]['type']=_0xb42c40,this;}[_0x1d13aa(0x21b)](_0x4123d9){const _0x434ebd=_0x1d13aa;var _0x3161d9,_0x50ccf7;return(_0x3161d9=this['shapeData'])!=null&&_0x3161d9['ln']||(this[_0x434ebd(0x1f3)]['ln']={}),!((_0x50ccf7=this[_0x434ebd(0x1f3)])==null||(_0x50ccf7=_0x50ccf7['ln'])==null)&&_0x50ccf7[_0x434ebd(0x1bf)]||(this[_0x434ebd(0x1f3)]['ln'][_0x434ebd(0x1bf)]={}),this['shapeData']['ln'][_0x434ebd(0x1bf)]['type']=_0x4123d9,this;}[_0x1d13aa(0x1ee)](_0x46a874){const _0x137597=_0x1d13aa;var _0x6de31d,_0x18b30b;return(_0x6de31d=this[_0x137597(0x1f3)])!=null&&_0x6de31d['ln']||(this[_0x137597(0x1f3)]['ln']={}),!((_0x18b30b=this[_0x137597(0x1f3)])==null||(_0x18b30b=_0x18b30b['ln'])==null)&&_0x18b30b['startArrow']||(this[_0x137597(0x1f3)]['ln'][_0x137597(0x1d8)]={}),this[_0x137597(0x1f3)]['ln'][_0x137597(0x1d8)][_0x137597(0x195)]=_0x46a874,this;}[_0x1d13aa(0x1f4)](_0x170412){const _0x52d7e8=_0x1d13aa;var _0x33e992,_0x21dd17;return(_0x33e992=this[_0x52d7e8(0x1f3)])!=null&&_0x33e992['ln']||(this[_0x52d7e8(0x1f3)]['ln']={}),!((_0x21dd17=this[_0x52d7e8(0x1f3)])==null||(_0x21dd17=_0x21dd17['ln'])==null)&&_0x21dd17[_0x52d7e8(0x1bf)]||(this[_0x52d7e8(0x1f3)]['ln'][_0x52d7e8(0x1bf)]={}),this['shapeData']['ln'][_0x52d7e8(0x1bf)][_0x52d7e8(0x195)]=_0x170412,this;}['build'](){const _0x1110f7=_0x1d13aa;return super[_0x1110f7(0x1d3)]();}[_0x1d13aa(0x1bb)](){const _0x4b7cf4=_0x1d13aa;var _0x55c3fb;return((_0x55c3fb=this[_0x4b7cf4(0x1f3)])==null||(_0x55c3fb=_0x55c3fb['relation'])==null?void 0x0:_0x55c3fb['to'])||null;}[_0x1d13aa(0x1ba)](){const _0x362232=_0x1d13aa;var _0x58cabf;return((_0x58cabf=this[_0x362232(0x1f3)])==null||(_0x58cabf=_0x58cabf[_0x362232(0x1d1)])==null?void 0x0:_0x58cabf[_0x362232(0x223)])||null;}};function h(_0x523815,_0x53054d,_0x294400,_0x4f3202,_0xf7de35,_0x189305){const _0x446dd5=_0x1d13aa;let _0x152e96=_0xf7de35[_0x446dd5(0x1d7)](_0x523815,_0x53054d,_0x294400);if(!_0x152e96)return null;let _0x32b1f4=_0x189305[_0x446dd5(0x1aa)]({'unitId':_0x523815,'subUnitId':_0x53054d,'drawingId':_0x294400});if(!(_0x32b1f4!=null&&_0x32b1f4[_0x446dd5(0x1af)]))return null;let {left:_0xeffa40=0x0,top:_0x168639=0x0,width:_0x4ef2d9=0x0,height:_0x10b248=0x0,flipX:_0x8e5ecb=!0x1,flipY:_0x61abed=!0x1,angle:_0x4e57f3}=_0x32b1f4[_0x446dd5(0x1af)];_0x152e96['updateContext']({'width':_0x4ef2d9,'height':_0x10b248});let _0x5ee0ef=_0x152e96[_0x446dd5(0x1cb)]()[_0x446dd5(0x1e9)](_0x15e40f=>_0x15e40f['index']===_0x4f3202);if(!_0x5ee0ef)return null;let _0xf9dad6=_0x8e5ecb?_0x4ef2d9-_0x5ee0ef['x']:_0x5ee0ef['x'],_0xf12502=_0x61abed?_0x10b248-_0x5ee0ef['y']:_0x5ee0ef['y'];if(_0x4e57f3&&_0x4e57f3!==0x0){let _0x2be7d9=_0x4e57f3*Math['PI']/0xb4,_0x3d9056=Math[_0x446dd5(0x1b2)](_0x2be7d9),_0xa8683f=Math[_0x446dd5(0x1be)](_0x2be7d9),_0x21a21c=_0x4ef2d9/0x2,_0x28974c=_0x10b248/0x2,_0xc1c45a=_0xf9dad6-_0x21a21c,_0x51b7e4=_0xf12502-_0x28974c;_0xf9dad6=_0x21a21c+_0xc1c45a*_0x3d9056-_0x51b7e4*_0xa8683f,_0xf12502=_0x28974c+_0xc1c45a*_0xa8683f+_0x51b7e4*_0x3d9056;}_0xf9dad6+=_0xeffa40,_0xf12502+=_0x168639;let _0x4e4ae2=_0x5ee0ef['ang']/0xea60;_0x8e5ecb&&(_0x4e4ae2=0xb4-_0x4e4ae2),_0x61abed&&(_0x4e4ae2=-_0x4e4ae2),_0x4e4ae2+=_0x4e57f3||0x0,_0x4e4ae2=(_0x4e4ae2%0x168+0x168)%0x168;let _0x32049a=(0x0,e[_0x446dd5(0x1c6)])({'left':_0xeffa40,'top':_0x168639,'width':_0x4ef2d9,'height':_0x10b248},_0x4e57f3||0x0);return{'point':{'x':_0xf9dad6,'y':_0xf12502},'angle':_0x4e4ae2,'bounds':_0x32049a};}function g(_0x2689fa,_0xc08396){const _0x546966=_0x1d13aa;let _0x48d0e7=_0xc08396['x']-_0x2689fa['x'],_0x3155e5=_0xc08396['y']-_0x2689fa['y'];return Math[_0x546966(0x210)](_0x48d0e7)>=Math[_0x546966(0x210)](_0x3155e5)?_0x48d0e7>=0x0?0xb4:0x0:_0x3155e5>=0x0?0x10e:0x5a;}function _(_0x10722c,_0x1d57da,_0x1c65ea,_0x344bbc,_0x5245f6,_0x39abf3,_0x47a85e){const _0x377348=_0x1d13aa;let _0x416f0c=_0x39abf3[_0x377348(0x1d7)](_0x10722c,_0x1d57da,_0x1c65ea);if(!_0x416f0c)return null;let _0x2a71ab=_0x47a85e[_0x377348(0x1aa)]({'unitId':_0x10722c,'subUnitId':_0x1d57da,'drawingId':_0x1c65ea});if(!(_0x2a71ab!=null&&_0x2a71ab[_0x377348(0x1af)]))return null;let {left:_0x443822=0x0,top:_0x25ff62=0x0,width:_0x4d1012=0x0,height:_0x4e39ef=0x0,flipX:_0x367c4f=!0x1,flipY:_0x50b01e=!0x1}=_0x2a71ab[_0x377348(0x1af)];_0x416f0c[_0x377348(0x211)]({'width':_0x4d1012,'height':_0x4e39ef});let _0x47ac8d=_0x416f0c[_0x377348(0x21c)]();if(_0x47ac8d[_0x377348(0x1cc)]<0x2)return null;let _0x17a447=_0x344bbc?_0x47ac8d[0x0]:_0x47ac8d[_0x47ac8d[_0x377348(0x1cc)]-0x1],_0x2b0262=new e[(_0x377348(0x214))]({'left':_0x443822,'top':_0x25ff62,'width':_0x4d1012,'height':_0x4e39ef,'flipX':_0x367c4f,'flipY':_0x50b01e})['localToWorld'](_0x17a447);return{'point':_0x2b0262,'angle':g(_0x5245f6['point'],_0x2b0262),'bounds':{'left':_0x2b0262['x'],'top':_0x2b0262['y'],'width':0x0,'height':0x0}};}function _0x5a3e(_0x4d1d51,_0x13d9d7){_0x4d1d51=_0x4d1d51-0x18a;const _0x5052bd=_0x5052();let _0x5a3e0e=_0x5052bd[_0x4d1d51];return _0x5a3e0e;}var v=class extends s['FWorksheet']{async['insertShape'](_0x180230){const _0x306e3f=_0x1d13aa;let {unitId:_0x4b7275,subUnitId:_0x4c7e47,shapeId:_0x21cd4c,shapeType:_0xe2864d,shapeData:_0x29d806,x:_0x25701f,y:_0x8acbbd,width:_0x2e7088,height:_0x5ce979}=_0x180230;return this[_0x306e3f(0x221)][_0x306e3f(0x1d5)](n[_0x306e3f(0x203)]['id'],{'unitId':_0x4b7275,'subUnitId':_0x4c7e47,'shapeId':_0x21cd4c,'shapeType':_0xe2864d,'shapeData':_0x29d806,'position':{'x':_0x25701f,'y':_0x8acbbd},'width':_0x2e7088,'height':_0x5ce979});}async['updateShape'](_0xf85ec9){const _0x5c83db=_0x1d13aa;let {unitId:_0x2d8e95,subUnitId:_0x521d9a,shapeId:_0x2b632e,shapeType:_0x2ba6a9,shapeData:_0x2faa51,x:_0x505367,y:_0x5da776,width:_0x5d68b2,height:_0x1b396b}=_0xf85ec9;return this[_0x5c83db(0x221)][_0x5c83db(0x1d5)](n[_0x5c83db(0x1f7)]['id'],{'unitId':_0x2d8e95,'subUnitId':_0x521d9a,'shapeId':_0x2b632e,'shapeType':_0x2ba6a9,'shapeData':_0x2faa51,'position':{'x':_0x505367,'y':_0x5da776},'width':_0x5d68b2,'height':_0x1b396b});}[_0x1d13aa(0x1c8)](_0x437505){const _0x35b699=_0x1d13aa;let _0x4e1e45=this[_0x35b699(0x193)]()[_0x35b699(0x21d)](),_0x1398ea=this[_0x35b699(0x201)]();if(_0x437505){let _0xe67b31=new p(_0x4e1e45,_0x1398ea,_0x437505[_0x35b699(0x1dd)],this[_0x35b699(0x1a7)]);return this[_0x35b699(0x1fc)](_0xe67b31,_0x4e1e45,_0x1398ea,_0x437505[_0x35b699(0x1dd)]),_0xe67b31;}return new p(_0x4e1e45,_0x1398ea,(0x0,r[_0x35b699(0x1b3)])(),this[_0x35b699(0x1a7)]);}['newConnector'](_0xd58028){const _0xced9b6=_0x1d13aa;let _0x371313=this[_0xced9b6(0x193)]()[_0xced9b6(0x21d)](),_0x583fb7=this['getSheetId']();if(_0xd58028){let _0x2c1bae=new m(_0x371313,_0x583fb7,_0xd58028[_0xced9b6(0x1dd)],this[_0xced9b6(0x1a7)]);return this[_0xced9b6(0x1fc)](_0x2c1bae,_0x371313,_0x583fb7,_0xd58028['drawId']),_0x2c1bae;}return new m(_0x371313,_0x583fb7,(0x0,r['generateRandomId'])(),this[_0xced9b6(0x1a7)]);}[_0x1d13aa(0x215)](){const _0x973707=_0x1d13aa;let _0x53ffe4=this[_0x973707(0x1a7)][_0x973707(0x1b8)](o[_0x973707(0x19b)]),_0x3bd04b=this[_0x973707(0x193)]()['getUnitId'](),_0x16acd7=this['getSheetId'](),_0x4d3731=_0x53ffe4[_0x973707(0x1b9)](_0x3bd04b,_0x16acd7);if(!_0x4d3731)return[];let _0x21622b=[];for(let [_0x40a5c4,_0x4672f2]of Object[_0x973707(0x20e)](_0x4d3731))if(_0x4672f2&&_0x4672f2[_0x973707(0x1d4)]===r[_0x973707(0x18a)][_0x973707(0x1a2)]){let _0x5c3d07=new p(_0x3bd04b,_0x16acd7,_0x40a5c4,this['_injector']);this[_0x973707(0x1fc)](_0x5c3d07,_0x3bd04b,_0x16acd7,_0x40a5c4),_0x21622b[_0x973707(0x209)](_0x5c3d07);}return _0x21622b;}['removeShape'](_0x31cc89){const _0x352a9f=_0x1d13aa;let {unitId:_0x27dcc7,subUnitId:_0x3a2c33,drawId:_0x4096b2}=_0x31cc89;return this[_0x352a9f(0x221)]['executeCommand'](o[_0x352a9f(0x1c7)]['id'],{'unitId':_0x27dcc7,'drawings':[{'unitId':_0x27dcc7,'subUnitId':_0x3a2c33,'drawingId':_0x4096b2,'drawingType':r['DrawingTypeEnum'][_0x352a9f(0x1a2)]}]});}async[_0x1d13aa(0x18c)](_0x495abf){const _0x51e1d8=_0x1d13aa;let {connector:_0x205b2b,startTarget:_0x2c8755,endTarget:_0x4bf45b}=_0x495abf;if(!_0x2c8755&&!_0x4bf45b)return!0x1;let _0x4c6bc4=this[_0x51e1d8(0x193)]()['getUnitId'](),_0x59a2b2=this[_0x51e1d8(0x201)](),_0xe02566=this[_0x51e1d8(0x1a7)]['get'](n[_0x51e1d8(0x200)]),_0x5d4d01=this[_0x51e1d8(0x1a7)][_0x51e1d8(0x1b8)](i[_0x51e1d8(0x1b7)]),_0x2dd51c=_0xe02566[_0x51e1d8(0x1d7)](_0x4c6bc4,_0x59a2b2,_0x205b2b[_0x51e1d8(0x1dd)]);if(!_0x2dd51c)return!0x1;let _0x256448=_0x2dd51c['getShapeType'](),_0x1bae62=_0x2dd51c[_0x51e1d8(0x19e)](),_0x416553={};for(let _0x5c7027 of _0x2dd51c['getAdjustNames']()){let _0xe17631=_0x2dd51c[_0x51e1d8(0x1ce)](_0x5c7027);_0xe17631!==void 0x0&&(_0x416553[_0x5c7027]=_0xe17631);}let {startInfo:_0x157a90,endInfo:_0x1a1b80}=this[_0x51e1d8(0x205)](_0x4c6bc4,_0x59a2b2,_0x205b2b,_0x2dd51c,_0x2c8755,_0x4bf45b,_0xe02566,_0x5d4d01,_0x1bae62);if(!_0x157a90||!_0x1a1b80)return!0x1;let _0xbb586f=(0x0,e[_0x51e1d8(0x1db)])((0x0,e[_0x51e1d8(0x1f1)])(_0x157a90,_0x1a1b80,_0x256448),_0x256448),_0x35b3eb={};return _0x2c8755?_0x35b3eb[_0x51e1d8(0x223)]={'shapeId':_0x2c8755[_0x51e1d8(0x20b)][_0x51e1d8(0x1dd)],'cxnIndex':_0x2c8755[_0x51e1d8(0x1c5)]}:_0x1bae62!=null&&_0x1bae62[_0x51e1d8(0x223)]&&(_0x35b3eb[_0x51e1d8(0x223)]=_0x1bae62[_0x51e1d8(0x223)]),_0x4bf45b?_0x35b3eb['to']={'shapeId':_0x4bf45b['shape']['drawId'],'cxnIndex':_0x4bf45b[_0x51e1d8(0x1c5)]}:_0x1bae62!=null&&_0x1bae62['to']&&(_0x35b3eb['to']=_0x1bae62['to']),this[_0x51e1d8(0x221)][_0x51e1d8(0x1d5)](n[_0x51e1d8(0x1f9)]['id'],{'unitId':_0x4c6bc4,'subUnitId':_0x59a2b2,'connectorShapeId':_0x205b2b[_0x51e1d8(0x1dd)],'width':_0xbb586f[_0x51e1d8(0x1b6)][_0x51e1d8(0x20f)],'height':_0xbb586f[_0x51e1d8(0x1b6)][_0x51e1d8(0x1fe)],'left':_0xbb586f[_0x51e1d8(0x1b6)]['left'],'top':_0xbb586f[_0x51e1d8(0x1b6)][_0x51e1d8(0x1de)],'flipX':_0xbb586f[_0x51e1d8(0x1b6)][_0x51e1d8(0x198)]||!0x1,'flipY':_0xbb586f[_0x51e1d8(0x1b6)][_0x51e1d8(0x1b0)]||!0x1,'oldAdjustValues':_0x416553,'newAdjustValues':_0xbb586f['adjustValues'],'newLineType':_0xbb586f[_0x51e1d8(0x1eb)],'oldLineType':_0x256448,'rotation':_0xbb586f[_0x51e1d8(0x1d0)],'oldRelation':_0x1bae62,'newRelation':_0x35b3eb});}[_0x1d13aa(0x1fc)](_0x2251d1,_0x3be254,_0x221bd7,_0x1c7b13){const _0x254a59=_0x1d13aa;let _0x57ecd5=this[_0x254a59(0x1a7)]['get'](i[_0x254a59(0x1b7)])[_0x254a59(0x1aa)]({'unitId':_0x3be254,'subUnitId':_0x221bd7,'drawingId':_0x1c7b13});if(_0x57ecd5!=null&&_0x57ecd5[_0x254a59(0x1af)]){var _0x515f30,_0x272234,_0xb8dd60,_0x4202a2;_0x2251d1['x']=(_0x515f30=_0x57ecd5[_0x254a59(0x1af)][_0x254a59(0x225)])==null?0x0:_0x515f30,_0x2251d1['y']=(_0x272234=_0x57ecd5[_0x254a59(0x1af)][_0x254a59(0x1de)])==null?0x0:_0x272234,_0x2251d1[_0x254a59(0x20f)]=(_0xb8dd60=_0x57ecd5[_0x254a59(0x1af)][_0x254a59(0x20f)])==null?_0x2251d1['width']:_0xb8dd60,_0x2251d1[_0x254a59(0x1fe)]=(_0x4202a2=_0x57ecd5[_0x254a59(0x1af)]['height'])==null?_0x2251d1[_0x254a59(0x1fe)]:_0x4202a2;}let _0x3b96d3=this[_0x254a59(0x1a7)][_0x254a59(0x1b8)](n[_0x254a59(0x200)])[_0x254a59(0x1d7)](_0x3be254,_0x221bd7,_0x1c7b13);if(_0x3b96d3){_0x2251d1['shapeType']=_0x3b96d3[_0x254a59(0x1ea)]();let _0x3d96c2=_0x3b96d3[_0x254a59(0x1c0)]();_0x3d96c2&&(_0x2251d1[_0x254a59(0x1f3)]=JSON[_0x254a59(0x1ae)](JSON[_0x254a59(0x1df)](_0x3d96c2)));}}[_0x1d13aa(0x205)](_0x17f386,_0x37fff4,_0x58503e,_0x1798d0,_0x18ba5d,_0x215aab,_0x35255c,_0x53aea7,_0xa12f38){const _0xb0592e=_0x1d13aa;let _0x444c87=null,_0xba194d=null;return _0x18ba5d&&(_0x444c87=h(_0x17f386,_0x37fff4,_0x18ba5d['shape']['drawId'],_0x18ba5d[_0xb0592e(0x1c5)],_0x35255c,_0x53aea7)),_0x215aab&&(_0xba194d=h(_0x17f386,_0x37fff4,_0x215aab[_0xb0592e(0x20b)][_0xb0592e(0x1dd)],_0x215aab[_0xb0592e(0x1c5)],_0x35255c,_0x53aea7)),_0x444c87||(_0x444c87=this[_0xb0592e(0x1a6)](_0x17f386,_0x37fff4,_0x58503e[_0xb0592e(0x1dd)],!0x0,_0xba194d,_0xa12f38==null?void 0x0:_0xa12f38[_0xb0592e(0x223)],_0x35255c,_0x53aea7)),_0xba194d||(_0xba194d=this[_0xb0592e(0x1a6)](_0x17f386,_0x37fff4,_0x58503e[_0xb0592e(0x1dd)],!0x1,_0x444c87,_0xa12f38==null?void 0x0:_0xa12f38['to'],_0x35255c,_0x53aea7)),{'startInfo':_0x444c87,'endInfo':_0xba194d};}['_resolveExistingOrFreeEndpoint'](_0x4c9e5f,_0x244101,_0x165fea,_0x2984e3,_0x4859ef,_0xf205d5,_0x1a05d8,_0x111934){const _0x198a79=_0x1d13aa;if(_0xf205d5){let _0x5bc8aa=h(_0x4c9e5f,_0x244101,_0xf205d5['shapeId'],_0xf205d5[_0x198a79(0x224)],_0x1a05d8,_0x111934);if(_0x5bc8aa)return _0x5bc8aa;}return _0x4859ef?_(_0x4c9e5f,_0x244101,_0x165fea,_0x2984e3,_0x4859ef,_0x1a05d8,_0x111934):null;}};s[_0x1d13aa(0x1f8)][_0x1d13aa(0x21a)](v),exports[_0x1d13aa(0x222)]=m,exports['FShape']=p;
1
+ const _0x345415=_0x4358;(function(_0x329de9,_0x15f3ae){const _0x25a595=_0x4358,_0x533333=_0x329de9();while(!![]){try{const _0x378795=parseInt(_0x25a595(0x14f))/0x1+-parseInt(_0x25a595(0x1a6))/0x2+-parseInt(_0x25a595(0x19a))/0x3+-parseInt(_0x25a595(0x1cd))/0x4+-parseInt(_0x25a595(0x150))/0x5*(-parseInt(_0x25a595(0x18e))/0x6)+-parseInt(_0x25a595(0x1b0))/0x7*(-parseInt(_0x25a595(0x155))/0x8)+parseInt(_0x25a595(0x1a1))/0x9;if(_0x378795===_0x15f3ae)break;else _0x533333['push'](_0x533333['shift']());}catch(_0x5f0043){_0x533333['push'](_0x533333['shift']());}}}(_0x3581,0x246ba),Object[_0x345415(0x1bd)](exports,Symbol[_0x345415(0x1b7)],{'value':'Module'}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core/facade`),n=require(`@univerjs-pro/sheets-shape`),r=require(`@univerjs/core`),i=require(`@univerjs/drawing`),a=require(`@univerjs/sheets`),o=require(`@univerjs/sheets-drawing`),s=require(`@univerjs/sheets/facade`);var c=class extends t[_0x345415(0x193)]{get[_0x345415(0x18a)](){const _0x284d9c=_0x345415;return e[_0x284d9c(0x18a)];}get[_0x345415(0x177)](){const _0x416c49=_0x345415;return e[_0x416c49(0x177)];}get[_0x345415(0x196)](){const _0x1c8f59=_0x345415;return e[_0x1c8f59(0x196)];}get[_0x345415(0x1d5)](){const _0x4b16a8=_0x345415;return e[_0x4b16a8(0x1d5)];}get['ShapeLineDashEnum'](){const _0x392c95=_0x345415;return e[_0x392c95(0x154)];}get[_0x345415(0x1b5)](){const _0x336e10=_0x345415;return e[_0x336e10(0x1b5)];}get[_0x345415(0x15c)](){const _0x5dde4b=_0x345415;return e[_0x5dde4b(0x15c)];}get['ShapeArrowTypeEnum'](){const _0x3f506f=_0x345415;return e[_0x3f506f(0x1c9)];}get['ShapeArrowSizeEnum'](){const _0x24406e=_0x345415;return e[_0x24406e(0x1ce)];}};t[_0x345415(0x193)]['extend'](c);function l(_0x1b0a2d){'@babel/helpers - typeof';const _0x2e3153=_0x345415;return l=typeof Symbol==_0x2e3153(0x158)&&typeof Symbol['iterator']==_0x2e3153(0x1b4)?function(_0x383807){return typeof _0x383807;}:function(_0x50d034){const _0x560c19=_0x2e3153;return _0x50d034&&typeof Symbol=='function'&&_0x50d034[_0x560c19(0x187)]===Symbol&&_0x50d034!==Symbol[_0x560c19(0x1e3)]?_0x560c19(0x1b4):typeof _0x50d034;},l(_0x1b0a2d);}function u(_0x2d2bf6,_0xa3b06a){const _0x562859=_0x345415;if(l(_0x2d2bf6)!=_0x562859(0x18b)||!_0x2d2bf6)return _0x2d2bf6;var _0x124aa1=_0x2d2bf6[Symbol[_0x562859(0x190)]];if(_0x124aa1!==void 0x0){var _0x612000=_0x124aa1[_0x562859(0x1b6)](_0x2d2bf6,_0xa3b06a||_0x562859(0x1ab));if(l(_0x612000)!=_0x562859(0x18b))return _0x612000;throw TypeError(_0x562859(0x1bc));}return(_0xa3b06a===_0x562859(0x18c)?String:Number)(_0x2d2bf6);}function d(_0x366574){const _0x444a18=_0x345415;var _0x3fa253=u(_0x366574,_0x444a18(0x18c));return l(_0x3fa253)==_0x444a18(0x1b4)?_0x3fa253:_0x3fa253+'';}function _0x4358(_0x2ade16,_0x41c8d8){_0x2ade16=_0x2ade16-0x14f;const _0x3581a9=_0x3581();let _0x435874=_0x3581a9[_0x2ade16];return _0x435874;}function f(_0xe4fe91,_0x4b33f9,_0x180593){const _0x43a6bc=_0x345415;return(_0x4b33f9=d(_0x4b33f9))in _0xe4fe91?Object[_0x43a6bc(0x1bd)](_0xe4fe91,_0x4b33f9,{'value':_0x180593,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe4fe91[_0x4b33f9]=_0x180593,_0xe4fe91;}var p=class{constructor(_0x71a08e,_0x1ac2f8,_0x3dd540,_0x31c237){const _0x4a391d=_0x345415;f(this,_0x4a391d(0x157),void 0x0),f(this,_0x4a391d(0x1c7),void 0x0),f(this,_0x4a391d(0x1ac),void 0x0),f(this,'x',0x0),f(this,'y',0x0),f(this,_0x4a391d(0x1e4),n[_0x4a391d(0x1ae)]),f(this,'height',n['DEFAULT_SHAPE_HEIGHT']),f(this,_0x4a391d(0x198),void 0x0),f(this,_0x4a391d(0x1c0),{}),f(this,_0x4a391d(0x1aa),void 0x0),this[_0x4a391d(0x157)]=_0x71a08e,this['subUnitId']=_0x1ac2f8,this[_0x4a391d(0x1ac)]=_0x3dd540||(0x0,r[_0x4a391d(0x1c8)])(),this[_0x4a391d(0x1aa)]=_0x31c237;}[_0x345415(0x15d)](_0x354fdb,_0x4be2f2,_0x290558,_0x2ca165){const _0x18ec65=_0x345415;let _0x537756=this[_0x18ec65(0x1aa)][_0x18ec65(0x15b)](a['SheetSkeletonService'])['ensureSkeleton'](this['unitId'],this[_0x18ec65(0x1c7)]);if(!_0x537756)throw Error(_0x18ec65(0x182)+this[_0x18ec65(0x157)]+'\x20and\x20subUnitId\x20'+this[_0x18ec65(0x1c7)]+_0x18ec65(0x19c));let {transform:_0x2b57b0}=(0x0,a[_0x18ec65(0x1a8)])(this[_0x18ec65(0x157)],this[_0x18ec65(0x1c7)],{'row':_0x354fdb,'column':_0x4be2f2,'rowOffset':_0x290558,'columnOffset':_0x2ca165},0x1,0x1,_0x537756);return this['x']=_0x2b57b0[_0x18ec65(0x180)],this['y']=_0x2b57b0[_0x18ec65(0x1e6)],this;}[_0x345415(0x1c2)](_0x26ac30,_0x41dd8f){return this['x']=_0x26ac30,this['y']=_0x41dd8f,this;}['setShapeType'](_0x4da992){const _0x5b3511=_0x345415;return this[_0x5b3511(0x198)]=_0x4da992,this;}[_0x345415(0x181)](_0x18641f,_0x16b34b){const _0x58e90f=_0x345415;return this[_0x58e90f(0x1c0)][_0x58e90f(0x171)]||(this[_0x58e90f(0x1c0)]['fill']={}),this['shapeData'][_0x58e90f(0x171)]['fillType']=e[_0x58e90f(0x177)]['SolidFill'],_0x18641f!==void 0x0&&(this['shapeData']['fill']['color']=_0x18641f),_0x16b34b!==void 0x0&&(this[_0x58e90f(0x1c0)][_0x58e90f(0x171)][_0x58e90f(0x152)]=_0x16b34b),this;}[_0x345415(0x1a4)](_0xe7e3b7,_0x4b4128,_0x357edc){const _0x26651e=_0x345415;if(_0x4b4128===void 0x0||_0x4b4128[_0x26651e(0x1c3)]===0x0)throw Error(_0x26651e(0x1a2));return this[_0x26651e(0x1c0)][_0x26651e(0x171)]||(this[_0x26651e(0x1c0)][_0x26651e(0x171)]={}),this['shapeData'][_0x26651e(0x171)][_0x26651e(0x1ba)]=_0x4b4128,this[_0x26651e(0x1c0)][_0x26651e(0x171)][_0x26651e(0x151)]=e['ShapeFillEnum'][_0x26651e(0x1d1)],this[_0x26651e(0x1c0)][_0x26651e(0x171)][_0x26651e(0x167)]=_0xe7e3b7,_0x357edc!==void 0x0&&(this[_0x26651e(0x1c0)]['fill'][_0x26651e(0x186)]=_0x357edc),this;}[_0x345415(0x1b2)](){const _0x5b13fd=_0x345415;return this[_0x5b13fd(0x1c0)][_0x5b13fd(0x171)]={'fillType':e[_0x5b13fd(0x177)][_0x5b13fd(0x1bb)]},this;}[_0x345415(0x1d4)](_0x56c11d){const _0x3a4873=_0x345415;return this[_0x3a4873(0x1c0)][_0x3a4873(0x1e0)]||(this[_0x3a4873(0x1c0)]['stroke']={}),this['shapeData'][_0x3a4873(0x1e0)]['color']=_0x56c11d,this;}[_0x345415(0x1dd)](_0x353bdc){const _0x2f009e=_0x345415;return this['shapeData'][_0x2f009e(0x1e0)]||(this['shapeData']['stroke']={}),this[_0x2f009e(0x1c0)][_0x2f009e(0x1e0)][_0x2f009e(0x1e4)]=_0x353bdc,this;}['setStrokeLineDashType'](_0x20bc9e){const _0x4d5d66=_0x345415;return this['shapeData'][_0x4d5d66(0x1e0)]||(this[_0x4d5d66(0x1c0)][_0x4d5d66(0x1e0)]={}),this[_0x4d5d66(0x1c0)][_0x4d5d66(0x1e0)][_0x4d5d66(0x1dc)]=_0x20bc9e,this;}['setStrokeLineJoinType'](_0x5c1be4){const _0x4113f1=_0x345415;return this[_0x4113f1(0x1c0)][_0x4113f1(0x1e0)]||(this[_0x4113f1(0x1c0)]['stroke']={}),this[_0x4113f1(0x1c0)][_0x4113f1(0x1e0)][_0x4113f1(0x173)]=_0x5c1be4,this;}['setStrokeLineCapType'](_0x319c22){const _0x4a1f9b=_0x345415;return this['shapeData'][_0x4a1f9b(0x1e0)]||(this[_0x4a1f9b(0x1c0)][_0x4a1f9b(0x1e0)]={}),this[_0x4a1f9b(0x1c0)][_0x4a1f9b(0x1e0)]['capType']=_0x319c22,this;}[_0x345415(0x18f)](_0x3ba68e){const _0x160b45=_0x345415;return this['shapeData'][_0x160b45(0x1e0)]||(this[_0x160b45(0x1c0)][_0x160b45(0x1e0)]={}),this[_0x160b45(0x1c0)][_0x160b45(0x1e0)][_0x160b45(0x152)]=_0x3ba68e,this;}['setStrokeLineType'](_0xa696e6){const _0x2972e5=_0x345415;return this['shapeData']['stroke']||(this['shapeData'][_0x2972e5(0x1e0)]={}),this[_0x2972e5(0x1c0)]['stroke'][_0x2972e5(0x156)]=_0xa696e6,this;}[_0x345415(0x1e1)](_0x55a9a4){const _0x281fe9=_0x345415;return this[_0x281fe9(0x1e4)]=_0x55a9a4,this;}['setHeight'](_0x5b6d14){const _0x474d67=_0x345415;return this[_0x474d67(0x195)]=_0x5b6d14,this;}[_0x345415(0x160)](){const _0x36ce53=_0x345415;let _0x30a56c=this['_injector']['get'](n['SheetsShapeService'])[_0x36ce53(0x166)](this[_0x36ce53(0x157)],this[_0x36ce53(0x1c7)],this[_0x36ce53(0x1ac)]);return _0x30a56c?(0x0,e['isConnectorShape'])(_0x30a56c['getShapeType']()):this['shapeType']?(0x0,e['isConnectorShape'])(this[_0x36ce53(0x198)]):!0x1;}['getConnectionSites'](){const _0x48ba33=_0x345415;let _0x196bae=this[_0x48ba33(0x1aa)][_0x48ba33(0x15b)](n[_0x48ba33(0x19d)])['getShapeModel'](this[_0x48ba33(0x157)],this[_0x48ba33(0x1c7)],this[_0x48ba33(0x1ac)]);if(!_0x196bae)return[];let _0x8904c5=this[_0x48ba33(0x1aa)][_0x48ba33(0x15b)](i[_0x48ba33(0x1da)])[_0x48ba33(0x19b)]({'unitId':this[_0x48ba33(0x157)],'subUnitId':this[_0x48ba33(0x1c7)],'drawingId':this['drawId']});if(!(_0x8904c5!=null&&_0x8904c5['transform']))return[];let {width:_0x17c9a6=0x0,height:_0x4ebec0=0x0}=_0x8904c5['transform'];return _0x196bae[_0x48ba33(0x184)]({'width':_0x17c9a6,'height':_0x4ebec0}),_0x196bae[_0x48ba33(0x1af)]();}['getAdjustPoints'](){const _0x5494de=_0x345415;let _0x3ad1a2=this['_injector'][_0x5494de(0x15b)](n[_0x5494de(0x19d)])['getShapeModel'](this[_0x5494de(0x157)],this['subUnitId'],this[_0x5494de(0x1ac)]);if(!_0x3ad1a2)return[];let _0x305121=this[_0x5494de(0x1aa)][_0x5494de(0x15b)](i[_0x5494de(0x1da)])['getDrawingByParam']({'unitId':this[_0x5494de(0x157)],'subUnitId':this[_0x5494de(0x1c7)],'drawingId':this[_0x5494de(0x1ac)]});if(!(_0x305121!=null&&_0x305121[_0x5494de(0x178)]))return[];let {width:_0x5bf6f2=0x0,height:_0x3c758f=0x0}=_0x305121['transform'];return _0x3ad1a2[_0x5494de(0x184)]({'width':_0x5bf6f2,'height':_0x3c758f}),_0x3ad1a2['getDrawingPoints']();}[_0x345415(0x15e)](){const _0x1ca5cc=_0x345415;let _0x45ff91=this['_injector'][_0x1ca5cc(0x15b)](n[_0x1ca5cc(0x19d)])[_0x1ca5cc(0x166)](this[_0x1ca5cc(0x157)],this[_0x1ca5cc(0x1c7)],this['drawId']);if(!_0x45ff91||!(0x0,e['isConnectorShape'])(_0x45ff91[_0x1ca5cc(0x153)]()))return[];let _0x11583f=this[_0x1ca5cc(0x1aa)][_0x1ca5cc(0x15b)](i['IDrawingManagerService'])[_0x1ca5cc(0x19b)]({'unitId':this[_0x1ca5cc(0x157)],'subUnitId':this[_0x1ca5cc(0x1c7)],'drawingId':this[_0x1ca5cc(0x1ac)]});if(!(_0x11583f!=null&&_0x11583f['transform']))return[];let {width:_0x5228ae=0x0,height:_0x27252f=0x0}=_0x11583f[_0x1ca5cc(0x178)];return _0x45ff91[_0x1ca5cc(0x184)]({'width':_0x5228ae,'height':_0x27252f}),_0x45ff91[_0x1ca5cc(0x15e)]();}['getStartConnectInfo'](){const _0x575d7d=_0x345415;var _0x17efc9;let _0x46a89d=this['_injector'][_0x575d7d(0x15b)](n[_0x575d7d(0x19d)])['getShapeModel'](this['unitId'],this[_0x575d7d(0x1c7)],this[_0x575d7d(0x1ac)]);return _0x46a89d?(_0x17efc9=_0x46a89d[_0x575d7d(0x1d0)]())==null?null:_0x17efc9:null;}['getEndConnectInfo'](){const _0x5ad64b=_0x345415;var _0x183d76;let _0x2e6ff2=this[_0x5ad64b(0x1aa)][_0x5ad64b(0x15b)](n[_0x5ad64b(0x19d)])[_0x5ad64b(0x166)](this[_0x5ad64b(0x157)],this['subUnitId'],this[_0x5ad64b(0x1ac)]);return _0x2e6ff2?(_0x183d76=_0x2e6ff2['getEndConnectInfo']())==null?null:_0x183d76:null;}[_0x345415(0x169)](){const _0x4b8016=_0x345415;var _0x5cb299,_0x457014;if(!this['shapeType'])throw Error(_0x4b8016(0x16c));if(this['x']===0x0||this['y']===0x0){let _0x2d5c71=this[_0x4b8016(0x1aa)][_0x4b8016(0x15b)](a['SheetSkeletonService'])['ensureSkeleton'](this[_0x4b8016(0x157)],this[_0x4b8016(0x1c7)]);if(!_0x2d5c71)throw Error(_0x4b8016(0x182)+this[_0x4b8016(0x157)]+_0x4b8016(0x1d2)+this[_0x4b8016(0x1c7)]+_0x4b8016(0x19c));let {transform:_0x510cb0}=(0x0,a[_0x4b8016(0x1a8)])(this[_0x4b8016(0x157)],this[_0x4b8016(0x1c7)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x2d5c71);this['x']=this['x']>0x0?this['x']:_0x510cb0['left'],this['y']=this['y']>0x0?this['y']:_0x510cb0[_0x4b8016(0x1e6)];}return this[_0x4b8016(0x1e4)]=(_0x5cb299=this[_0x4b8016(0x1e4)])==null?n[_0x4b8016(0x1ae)]:_0x5cb299,this[_0x4b8016(0x195)]=(_0x457014=this['height'])==null?n[_0x4b8016(0x1ca)]:_0x457014,{'unitId':this[_0x4b8016(0x157)],'subUnitId':this[_0x4b8016(0x1c7)],'shapeId':this['drawId'],'shapeType':this[_0x4b8016(0x198)],'shapeData':Object[_0x4b8016(0x188)](this[_0x4b8016(0x1c0)])[_0x4b8016(0x1c3)]>0x0?this[_0x4b8016(0x1c0)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x4b8016(0x1e4)],'height':this[_0x4b8016(0x195)]};}[_0x345415(0x15a)](){const _0x3dd16e=_0x345415;return this[_0x3dd16e(0x1ac)];}['getShapeType'](){return this['shapeType'];}[_0x345415(0x1c5)](){return this['shapeData'];}[_0x345415(0x1c4)](){return{'x':this['x'],'y':this['y']};}[_0x345415(0x1c1)](){return{'width':this['width'],'height':this['height']};}},m=class extends p{constructor(_0x221e7a,_0x596944,_0x10f6e5,_0x835fd9){const _0x3be681=_0x345415;super(_0x221e7a,_0x596944,_0x10f6e5,_0x835fd9),f(this,_0x3be681(0x1c0),{});}[_0x345415(0x1e5)](_0x5bbd2e){const _0x15d4df=_0x345415;if(!(0x0,e[_0x15d4df(0x1cb)])(_0x5bbd2e))throw Error(_0x15d4df(0x1a3)+_0x5bbd2e+_0x15d4df(0x1a5));return super[_0x15d4df(0x1e5)](_0x5bbd2e),this;}[_0x345415(0x1a7)](_0x1e650d){const _0x5a61b0=_0x345415;var _0x4d8b4c,_0x3f64fd;return(_0x4d8b4c=this[_0x5a61b0(0x1c0)])!=null&&_0x4d8b4c['ln']||(this[_0x5a61b0(0x1c0)]['ln']={}),!((_0x3f64fd=this[_0x5a61b0(0x1c0)])==null||(_0x3f64fd=_0x3f64fd['ln'])==null)&&_0x3f64fd[_0x5a61b0(0x18d)]||(this[_0x5a61b0(0x1c0)]['ln'][_0x5a61b0(0x18d)]={}),this[_0x5a61b0(0x1c0)]['ln'][_0x5a61b0(0x18d)][_0x5a61b0(0x1e2)]=_0x1e650d,this;}['setEndArrowType'](_0xb5bd7a){const _0x1a68df=_0x345415;var _0x32c8f5,_0x3acaba;return(_0x32c8f5=this[_0x1a68df(0x1c0)])!=null&&_0x32c8f5['ln']||(this[_0x1a68df(0x1c0)]['ln']={}),!((_0x3acaba=this[_0x1a68df(0x1c0)])==null||(_0x3acaba=_0x3acaba['ln'])==null)&&_0x3acaba[_0x1a68df(0x1a9)]||(this[_0x1a68df(0x1c0)]['ln'][_0x1a68df(0x1a9)]={}),this['shapeData']['ln']['endArrow']['type']=_0xb5bd7a,this;}[_0x345415(0x1b3)](_0x365f44){const _0x2efa61=_0x345415;var _0x3f5ec2,_0x41bf1d;return(_0x3f5ec2=this['shapeData'])!=null&&_0x3f5ec2['ln']||(this[_0x2efa61(0x1c0)]['ln']={}),!((_0x41bf1d=this[_0x2efa61(0x1c0)])==null||(_0x41bf1d=_0x41bf1d['ln'])==null)&&_0x41bf1d['startArrow']||(this[_0x2efa61(0x1c0)]['ln'][_0x2efa61(0x18d)]={}),this[_0x2efa61(0x1c0)]['ln'][_0x2efa61(0x18d)][_0x2efa61(0x1cc)]=_0x365f44,this;}[_0x345415(0x161)](_0x142027){const _0x32bca3=_0x345415;var _0x366347,_0x5ea660;return(_0x366347=this['shapeData'])!=null&&_0x366347['ln']||(this[_0x32bca3(0x1c0)]['ln']={}),!((_0x5ea660=this['shapeData'])==null||(_0x5ea660=_0x5ea660['ln'])==null)&&_0x5ea660[_0x32bca3(0x1a9)]||(this['shapeData']['ln'][_0x32bca3(0x1a9)]={}),this[_0x32bca3(0x1c0)]['ln'][_0x32bca3(0x1a9)][_0x32bca3(0x1cc)]=_0x142027,this;}[_0x345415(0x169)](){return super['build']();}[_0x345415(0x159)](){const _0x481753=_0x345415;var _0x1e44cd;return((_0x1e44cd=this[_0x481753(0x1c0)])==null||(_0x1e44cd=_0x1e44cd[_0x481753(0x1d6)])==null?void 0x0:_0x1e44cd['to'])||null;}[_0x345415(0x1d0)](){const _0x4ba429=_0x345415;var _0x46b041;return((_0x46b041=this[_0x4ba429(0x1c0)])==null||(_0x46b041=_0x46b041['relation'])==null?void 0x0:_0x46b041[_0x4ba429(0x199)])||null;}};function h(_0x565e82,_0x1cdc27,_0x589a79,_0x1c4b69,_0x29f7b8,_0x33f922){const _0x94adca=_0x345415;let _0x54387b=_0x29f7b8['getShapeModel'](_0x565e82,_0x1cdc27,_0x589a79);if(!_0x54387b)return null;let _0x1de94c=_0x33f922[_0x94adca(0x19b)]({'unitId':_0x565e82,'subUnitId':_0x1cdc27,'drawingId':_0x589a79});if(!(_0x1de94c!=null&&_0x1de94c[_0x94adca(0x178)]))return null;let {left:_0x179526=0x0,top:_0x180527=0x0,width:_0x1aa38a=0x0,height:_0x27a49b=0x0,flipX:_0x3603a3=!0x1,flipY:_0x2891a5=!0x1,angle:_0xbd4653}=_0x1de94c[_0x94adca(0x178)];_0x54387b[_0x94adca(0x184)]({'width':_0x1aa38a,'height':_0x27a49b});let _0x54e2d3=_0x54387b[_0x94adca(0x1af)]()[_0x94adca(0x1b1)](_0x12c581=>_0x12c581[_0x94adca(0x1ad)]===_0x1c4b69);if(!_0x54e2d3)return null;let _0x266bb3=_0x3603a3?_0x1aa38a-_0x54e2d3['x']:_0x54e2d3['x'],_0xff04e9=_0x2891a5?_0x27a49b-_0x54e2d3['y']:_0x54e2d3['y'];if(_0xbd4653&&_0xbd4653!==0x0){let _0x4aba14=_0xbd4653*Math['PI']/0xb4,_0x1b7f1e=Math[_0x94adca(0x16f)](_0x4aba14),_0x1a5023=Math[_0x94adca(0x17f)](_0x4aba14),_0x324962=_0x1aa38a/0x2,_0x15f933=_0x27a49b/0x2,_0x58e15f=_0x266bb3-_0x324962,_0x38c6e4=_0xff04e9-_0x15f933;_0x266bb3=_0x324962+_0x58e15f*_0x1b7f1e-_0x38c6e4*_0x1a5023,_0xff04e9=_0x15f933+_0x58e15f*_0x1a5023+_0x38c6e4*_0x1b7f1e;}_0x266bb3+=_0x179526,_0xff04e9+=_0x180527;let _0x38ae90=_0x54e2d3[_0x94adca(0x17a)]/0xea60;_0x3603a3&&(_0x38ae90=0xb4-_0x38ae90),_0x2891a5&&(_0x38ae90=-_0x38ae90),_0x38ae90+=_0xbd4653||0x0,_0x38ae90=(_0x38ae90%0x168+0x168)%0x168;let _0x195227=(0x0,e[_0x94adca(0x1a0)])({'left':_0x179526,'top':_0x180527,'width':_0x1aa38a,'height':_0x27a49b},_0xbd4653||0x0);return{'point':{'x':_0x266bb3,'y':_0xff04e9},'angle':_0x38ae90,'bounds':_0x195227};}function g(_0x412da5,_0x184f63){const _0x35a3b1=_0x345415;let _0x423def=_0x184f63['x']-_0x412da5['x'],_0x5dbd28=_0x184f63['y']-_0x412da5['y'];return Math[_0x35a3b1(0x16d)](_0x423def)>=Math[_0x35a3b1(0x16d)](_0x5dbd28)?_0x423def>=0x0?0xb4:0x0:_0x5dbd28>=0x0?0x10e:0x5a;}function _(_0x11af0f,_0x412339,_0x3b4876,_0xdc72cc,_0x5e1467,_0x5a860c,_0x9ec07c){const _0x5bf8ac=_0x345415;let _0x11a8ff=_0x5a860c[_0x5bf8ac(0x166)](_0x11af0f,_0x412339,_0x3b4876);if(!_0x11a8ff)return null;let _0xad6295=_0x9ec07c['getDrawingByParam']({'unitId':_0x11af0f,'subUnitId':_0x412339,'drawingId':_0x3b4876});if(!(_0xad6295!=null&&_0xad6295[_0x5bf8ac(0x178)]))return null;let {left:_0x48edb4=0x0,top:_0x5ca005=0x0,width:_0x3ef4ac=0x0,height:_0x146929=0x0,flipX:_0x53bb92=!0x1,flipY:_0x4f04c3=!0x1}=_0xad6295[_0x5bf8ac(0x178)];_0x11a8ff['updateContext']({'width':_0x3ef4ac,'height':_0x146929});let _0x300cc2=_0x11a8ff[_0x5bf8ac(0x15e)]();if(_0x300cc2[_0x5bf8ac(0x1c3)]<0x2)return null;let _0xd7d7be=_0xdc72cc?_0x300cc2[0x0]:_0x300cc2[_0x300cc2[_0x5bf8ac(0x1c3)]-0x1],_0x367e14=new e[(_0x5bf8ac(0x165))]({'left':_0x48edb4,'top':_0x5ca005,'width':_0x3ef4ac,'height':_0x146929,'flipX':_0x53bb92,'flipY':_0x4f04c3})[_0x5bf8ac(0x174)](_0xd7d7be);return{'point':_0x367e14,'angle':g(_0x5e1467[_0x5bf8ac(0x15f)],_0x367e14),'bounds':{'left':_0x367e14['x'],'top':_0x367e14['y'],'width':0x0,'height':0x0}};}function _0x3581(){const _0x555167=['_injector','default','drawId','index','DEFAULT_SHAPE_WIDTH','getConnectionSiteList','167839YfXabp','find','setNoneFill','setStartArrowSize','symbol','ShapeLineCapEnum','call','toStringTag','drawingType','RemoveSheetDrawingCommand','gradientStops','NoFill','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','stringify','FConnectorShape','shapeData','getSize','setAbsolutePosition','length','getPosition','getShapeData','adjustValues','subUnitId','generateRandomId','ShapeArrowTypeEnum','DEFAULT_SHAPE_HEIGHT','isConnectorShape','size','834356WeAQhn','ShapeArrowSizeEnum','lineType','getStartConnectInfo','GradientFill','\x20and\x20subUnitId\x20','UpdateConnectorRelationCommand','setStrokeColor','ShapeLineTypeEnum','relation','DrawingTypeEnum','getSheetId','getShapes','IDrawingManagerService','getWorkbook','dashType','setStrokeWidth','getAdjustValueByName','ISheetDrawingService','stroke','setWidth','type','prototype','width','setShapeType','top','242514mSFDYj','169865fNQLpK','fillType','opacity','getShapeType','ShapeLineDashEnum','8fiiymj','lineStrokeType','unitId','function','getEndConnectInfo','getShapeId','get','ShapeLineJoinEnum','setPosition','getConnectorLinePoints','point','isLineShape','setEndArrowSize','parse','FWorksheet','extend','ConnectorCoordinateTransform','getShapeModel','gradientType','_resolveEndpoints','build','connectionSiteIndex','shape','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','abs','executeCommand','cos','getDrawingData','fill','shapeId','lineJoinType','localToWorld','worldRect','entries','ShapeFillEnum','transform','_commandService','ang','_preloadShapeProperties','updateShape','flipY','insertShape','sin','left','setShapeSolidFill','Skeleton\x20for\x20unitId\x20','computeConnectorRouteLayout','updateContext','cxnIndex','gradientAngle','constructor','keys','InsertShapeCommand','ShapeTypeEnum','object','string','startArrow','6DMUWpU','setStrokeOpacity','toPrimitive','newShape','_resolveExistingOrFreeEndpoint','FEnum','getUnitId','height','ShapeGradientTypeEnum','FShape','shapeType','from','624630UpATWS','getDrawingByParam','\x20not\x20found','SheetsShapeService','getAdjustNames','flipX','getBasicShapeRotateBound','4555575MswGFZ','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setShapeGradientFill',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','481324qwRqZt','setStartArrowType','convertPositionCellToSheetOverGrid','endArrow'];_0x3581=function(){return _0x555167;};return _0x3581();}var v=class extends s[_0x345415(0x163)]{async[_0x345415(0x17e)](_0x23ac80){const _0x149656=_0x345415;let {unitId:_0x23d0b9,subUnitId:_0x577906,shapeId:_0x3419b5,shapeType:_0x91c936,shapeData:_0x2b0719,x:_0x7839c8,y:_0x251302,width:_0x341d1,height:_0x14f837}=_0x23ac80;return this['_commandService'][_0x149656(0x16e)](n[_0x149656(0x189)]['id'],{'unitId':_0x23d0b9,'subUnitId':_0x577906,'shapeId':_0x3419b5,'shapeType':_0x91c936,'shapeData':_0x2b0719,'position':{'x':_0x7839c8,'y':_0x251302},'width':_0x341d1,'height':_0x14f837});}async[_0x345415(0x17c)](_0x5cb472){const _0x4b353e=_0x345415;let {unitId:_0x1c5afc,subUnitId:_0x5a1de0,shapeId:_0x2c227c,shapeType:_0x4f5f9e,shapeData:_0x422287,x:_0x20fdb2,y:_0x2f1f36,width:_0x3fe53d,height:_0x353ec9}=_0x5cb472;return this[_0x4b353e(0x179)][_0x4b353e(0x16e)](n['SetShapeDrawingDataCommand']['id'],{'unitId':_0x1c5afc,'subUnitId':_0x5a1de0,'shapeId':_0x2c227c,'shapeType':_0x4f5f9e,'shapeData':_0x422287,'position':{'x':_0x20fdb2,'y':_0x2f1f36},'width':_0x3fe53d,'height':_0x353ec9});}[_0x345415(0x191)](_0x3407b4){const _0x42d3ea=_0x345415;let _0x362662=this[_0x42d3ea(0x1db)]()[_0x42d3ea(0x194)](),_0x18ebf9=this[_0x42d3ea(0x1d8)]();if(_0x3407b4){let _0x33d77f=new p(_0x362662,_0x18ebf9,_0x3407b4['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x33d77f,_0x362662,_0x18ebf9,_0x3407b4[_0x42d3ea(0x1ac)]),_0x33d77f;}return new p(_0x362662,_0x18ebf9,(0x0,r[_0x42d3ea(0x1c8)])(),this['_injector']);}['newConnector'](_0x5441bd){const _0xc0e6a4=_0x345415;let _0x5541bf=this[_0xc0e6a4(0x1db)]()[_0xc0e6a4(0x194)](),_0x58877d=this[_0xc0e6a4(0x1d8)]();if(_0x5441bd){let _0x45ae82=new m(_0x5541bf,_0x58877d,_0x5441bd['drawId'],this[_0xc0e6a4(0x1aa)]);return this[_0xc0e6a4(0x17b)](_0x45ae82,_0x5541bf,_0x58877d,_0x5441bd['drawId']),_0x45ae82;}return new m(_0x5541bf,_0x58877d,(0x0,r[_0xc0e6a4(0x1c8)])(),this['_injector']);}[_0x345415(0x1d9)](){const _0x199ec0=_0x345415;let _0x5a4d08=this[_0x199ec0(0x1aa)][_0x199ec0(0x15b)](o[_0x199ec0(0x1df)]),_0x42551a=this[_0x199ec0(0x1db)]()[_0x199ec0(0x194)](),_0x92e480=this['getSheetId'](),_0x1decc7=_0x5a4d08[_0x199ec0(0x170)](_0x42551a,_0x92e480);if(!_0x1decc7)return[];let _0x37c022=[];for(let [_0x1eb853,_0x34fa77]of Object[_0x199ec0(0x176)](_0x1decc7))if(_0x34fa77&&_0x34fa77[_0x199ec0(0x1b8)]===r[_0x199ec0(0x1d7)]['DRAWING_SHAPE']){let _0x20398d=new p(_0x42551a,_0x92e480,_0x1eb853,this[_0x199ec0(0x1aa)]);this[_0x199ec0(0x17b)](_0x20398d,_0x42551a,_0x92e480,_0x1eb853),_0x37c022['push'](_0x20398d);}return _0x37c022;}['removeShape'](_0x1c2f5a){const _0x8dc758=_0x345415;let {unitId:_0x112ce8,subUnitId:_0x57044c,drawId:_0x2bc6f1}=_0x1c2f5a;return this[_0x8dc758(0x179)][_0x8dc758(0x16e)](o[_0x8dc758(0x1b9)]['id'],{'unitId':_0x112ce8,'drawings':[{'unitId':_0x112ce8,'subUnitId':_0x57044c,'drawingId':_0x2bc6f1,'drawingType':r[_0x8dc758(0x1d7)]['DRAWING_SHAPE']}]});}async['connectShapes'](_0x2a0228){const _0x5bcd39=_0x345415;let {connector:_0x57c0b9,startTarget:_0x25b18b,endTarget:_0x31f6ef}=_0x2a0228;if(!_0x25b18b&&!_0x31f6ef)return!0x1;let _0x7f37d8=this[_0x5bcd39(0x1db)]()[_0x5bcd39(0x194)](),_0x5486a1=this[_0x5bcd39(0x1d8)](),_0x3e2dd0=this[_0x5bcd39(0x1aa)][_0x5bcd39(0x15b)](n[_0x5bcd39(0x19d)]),_0xdc6b11=this[_0x5bcd39(0x1aa)]['get'](i[_0x5bcd39(0x1da)]),_0x10a07f=_0x3e2dd0[_0x5bcd39(0x166)](_0x7f37d8,_0x5486a1,_0x57c0b9[_0x5bcd39(0x1ac)]);if(!_0x10a07f)return!0x1;let _0x293f9e=_0x10a07f[_0x5bcd39(0x153)](),_0x3607e9=_0x10a07f['getShapeRelation'](),_0x10117a={};for(let _0x323d18 of _0x10a07f[_0x5bcd39(0x19e)]()){let _0x1c2b7f=_0x10a07f[_0x5bcd39(0x1de)](_0x323d18);_0x1c2b7f!==void 0x0&&(_0x10117a[_0x323d18]=_0x1c2b7f);}let {startInfo:_0x58c962,endInfo:_0x4d40c8}=this[_0x5bcd39(0x168)](_0x7f37d8,_0x5486a1,_0x57c0b9,_0x10a07f,_0x25b18b,_0x31f6ef,_0x3e2dd0,_0xdc6b11,_0x3607e9);if(!_0x58c962||!_0x4d40c8)return!0x1;let _0xbfe655=(0x0,e[_0x5bcd39(0x183)])((0x0,e['routeConnectorLineShape'])(_0x58c962,_0x4d40c8,_0x293f9e),_0x293f9e),_0x3699af={};return _0x25b18b?_0x3699af[_0x5bcd39(0x199)]={'shapeId':_0x25b18b['shape'][_0x5bcd39(0x1ac)],'cxnIndex':_0x25b18b[_0x5bcd39(0x16a)]}:_0x3607e9!=null&&_0x3607e9[_0x5bcd39(0x199)]&&(_0x3699af[_0x5bcd39(0x199)]=_0x3607e9['from']),_0x31f6ef?_0x3699af['to']={'shapeId':_0x31f6ef[_0x5bcd39(0x16b)][_0x5bcd39(0x1ac)],'cxnIndex':_0x31f6ef[_0x5bcd39(0x16a)]}:_0x3607e9!=null&&_0x3607e9['to']&&(_0x3699af['to']=_0x3607e9['to']),this[_0x5bcd39(0x179)][_0x5bcd39(0x16e)](n[_0x5bcd39(0x1d3)]['id'],{'unitId':_0x7f37d8,'subUnitId':_0x5486a1,'connectorShapeId':_0x57c0b9['drawId'],'width':_0xbfe655[_0x5bcd39(0x175)][_0x5bcd39(0x1e4)],'height':_0xbfe655[_0x5bcd39(0x175)][_0x5bcd39(0x195)],'left':_0xbfe655[_0x5bcd39(0x175)]['left'],'top':_0xbfe655[_0x5bcd39(0x175)][_0x5bcd39(0x1e6)],'flipX':_0xbfe655['worldRect'][_0x5bcd39(0x19f)]||!0x1,'flipY':_0xbfe655[_0x5bcd39(0x175)][_0x5bcd39(0x17d)]||!0x1,'oldAdjustValues':_0x10117a,'newAdjustValues':_0xbfe655[_0x5bcd39(0x1c6)],'newLineType':_0xbfe655[_0x5bcd39(0x1cf)],'oldLineType':_0x293f9e,'rotation':_0xbfe655['rotation'],'oldRelation':_0x3607e9,'newRelation':_0x3699af});}['_preloadShapeProperties'](_0xf875e1,_0x11a418,_0x2dad0f,_0x411858){const _0x4f0ce4=_0x345415;let _0x739e8c=this[_0x4f0ce4(0x1aa)][_0x4f0ce4(0x15b)](i[_0x4f0ce4(0x1da)])[_0x4f0ce4(0x19b)]({'unitId':_0x11a418,'subUnitId':_0x2dad0f,'drawingId':_0x411858});if(_0x739e8c!=null&&_0x739e8c[_0x4f0ce4(0x178)]){var _0x45ab6f,_0x930506,_0x51fd66,_0x38115f;_0xf875e1['x']=(_0x45ab6f=_0x739e8c['transform']['left'])==null?0x0:_0x45ab6f,_0xf875e1['y']=(_0x930506=_0x739e8c['transform'][_0x4f0ce4(0x1e6)])==null?0x0:_0x930506,_0xf875e1[_0x4f0ce4(0x1e4)]=(_0x51fd66=_0x739e8c[_0x4f0ce4(0x178)][_0x4f0ce4(0x1e4)])==null?_0xf875e1[_0x4f0ce4(0x1e4)]:_0x51fd66,_0xf875e1[_0x4f0ce4(0x195)]=(_0x38115f=_0x739e8c[_0x4f0ce4(0x178)][_0x4f0ce4(0x195)])==null?_0xf875e1[_0x4f0ce4(0x195)]:_0x38115f;}let _0x347ac9=this['_injector'][_0x4f0ce4(0x15b)](n[_0x4f0ce4(0x19d)])[_0x4f0ce4(0x166)](_0x11a418,_0x2dad0f,_0x411858);if(_0x347ac9){_0xf875e1['shapeType']=_0x347ac9['getShapeType']();let _0x2c9763=_0x347ac9[_0x4f0ce4(0x1c5)]();_0x2c9763&&(_0xf875e1[_0x4f0ce4(0x1c0)]=JSON[_0x4f0ce4(0x162)](JSON[_0x4f0ce4(0x1be)](_0x2c9763)));}}['_resolveEndpoints'](_0x3335f6,_0x347992,_0x274548,_0x4c3943,_0x14bd43,_0x470d45,_0x3b712d,_0x3a3c6,_0x4ac981){const _0x2ab2de=_0x345415;let _0x11dc7c=null,_0x497b63=null;return _0x14bd43&&(_0x11dc7c=h(_0x3335f6,_0x347992,_0x14bd43[_0x2ab2de(0x16b)][_0x2ab2de(0x1ac)],_0x14bd43['connectionSiteIndex'],_0x3b712d,_0x3a3c6)),_0x470d45&&(_0x497b63=h(_0x3335f6,_0x347992,_0x470d45['shape'][_0x2ab2de(0x1ac)],_0x470d45[_0x2ab2de(0x16a)],_0x3b712d,_0x3a3c6)),_0x11dc7c||(_0x11dc7c=this[_0x2ab2de(0x192)](_0x3335f6,_0x347992,_0x274548[_0x2ab2de(0x1ac)],!0x0,_0x497b63,_0x4ac981==null?void 0x0:_0x4ac981['from'],_0x3b712d,_0x3a3c6)),_0x497b63||(_0x497b63=this['_resolveExistingOrFreeEndpoint'](_0x3335f6,_0x347992,_0x274548[_0x2ab2de(0x1ac)],!0x1,_0x11dc7c,_0x4ac981==null?void 0x0:_0x4ac981['to'],_0x3b712d,_0x3a3c6)),{'startInfo':_0x11dc7c,'endInfo':_0x497b63};}[_0x345415(0x192)](_0x4571eb,_0x269e5d,_0x1bc5cc,_0x3f5783,_0x5c7f69,_0x440b00,_0x194e6c,_0x3adf08){const _0x1e96c0=_0x345415;if(_0x440b00){let _0x37cca9=h(_0x4571eb,_0x269e5d,_0x440b00[_0x1e96c0(0x172)],_0x440b00[_0x1e96c0(0x185)],_0x194e6c,_0x3adf08);if(_0x37cca9)return _0x37cca9;}return _0x5c7f69?_(_0x4571eb,_0x269e5d,_0x1bc5cc,_0x3f5783,_0x5c7f69,_0x194e6c,_0x3adf08):null;}};s[_0x345415(0x163)][_0x345415(0x164)](v),exports[_0x345415(0x1bf)]=m,exports[_0x345415(0x197)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e750b=_0x1ff2;(function(_0x2cfc8e,_0xe06f67){const _0x124040=_0x1ff2,_0x3d8467=_0x2cfc8e();while(!![]){try{const _0x4b4027=-parseInt(_0x124040(0x20c))/0x1+-parseInt(_0x124040(0x1cb))/0x2+parseInt(_0x124040(0x1a6))/0x3*(parseInt(_0x124040(0x22c))/0x4)+-parseInt(_0x124040(0x205))/0x5*(-parseInt(_0x124040(0x18d))/0x6)+-parseInt(_0x124040(0x226))/0x7+-parseInt(_0x124040(0x192))/0x8+parseInt(_0x124040(0x19d))/0x9;if(_0x4b4027===_0xe06f67)break;else _0x3d8467['push'](_0x3d8467['shift']());}catch(_0xdd94f){_0x3d8467['push'](_0x3d8467['shift']());}}}(_0x4654,0x4dbea),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5e750b(0x23a)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x40c4c1){'@babel/helpers - typeof';const _0x450874=_0x5e750b;return o=typeof Symbol=='function'&&typeof Symbol[_0x450874(0x1e2)]==_0x450874(0x230)?function(_0x31bdf5){return typeof _0x31bdf5;}:function(_0x3eb43a){const _0x324849=_0x450874;return _0x3eb43a&&typeof Symbol==_0x324849(0x242)&&_0x3eb43a['constructor']===Symbol&&_0x3eb43a!==Symbol[_0x324849(0x1b8)]?_0x324849(0x230):typeof _0x3eb43a;},o(_0x40c4c1);}function s(_0xbac937,_0x317f8d){const _0x2123cf=_0x5e750b;if(o(_0xbac937)!=_0x2123cf(0x248)||!_0xbac937)return _0xbac937;var _0x5ee49e=_0xbac937[Symbol[_0x2123cf(0x1c3)]];if(_0x5ee49e!==void 0x0){var _0x5a2962=_0x5ee49e[_0x2123cf(0x1ca)](_0xbac937,_0x317f8d||_0x2123cf(0x229));if(o(_0x5a2962)!='object')return _0x5a2962;throw TypeError(_0x2123cf(0x243));}return(_0x317f8d===_0x2123cf(0x241)?String:Number)(_0xbac937);}function c(_0xaf8b49){const _0xe74603=_0x5e750b;var _0x3051cf=s(_0xaf8b49,_0xe74603(0x241));return o(_0x3051cf)==_0xe74603(0x230)?_0x3051cf:_0x3051cf+'';}function l(_0x46af3f,_0x2b2a85,_0x355fe0){return(_0x2b2a85=c(_0x2b2a85))in _0x46af3f?Object['defineProperty'](_0x46af3f,_0x2b2a85,{'value':_0x355fe0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46af3f[_0x2b2a85]=_0x355fe0,_0x46af3f;}var u=class extends t[_0x5e750b(0x19c)]{constructor(){const _0xad0786=_0x5e750b;super(),l(this,_0xad0786(0x1dc),new Map()),l(this,_0xad0786(0x1e0),new Set()),l(this,_0xad0786(0x20f),new Set());}[_0x5e750b(0x200)](_0x2d2d4e,_0x40a5c5,_0x1ab454){const _0x343b23=_0x5e750b;let _0x44dd7d=new e[(_0x343b23(0x1bf))](_0x2d2d4e,_0x40a5c5,_0x1ab454);return this[_0x343b23(0x1dc)][_0x343b23(0x1b1)](_0x40a5c5,_0x44dd7d),(0x0,e['isConnectorShape'])(_0x2d2d4e)&&this[_0x343b23(0x1e0)][_0x343b23(0x22d)](_0x40a5c5),_0x44dd7d;}[_0x5e750b(0x1ff)](_0xe0e654){const _0xdb7f3e=_0x5e750b;let _0x2c331a=[];for(let _0x2c08b3 of this[_0xdb7f3e(0x1e0)]){let _0x24fe06=this[_0xdb7f3e(0x1dc)]['get'](_0x2c08b3);if(_0x24fe06){let _0x28bede=_0x24fe06['getShapeRelation']();if(_0x28bede){var _0x169f60,_0xb7c92b;((_0x169f60=_0x28bede[_0xdb7f3e(0x1d3)])==null?void 0x0:_0x169f60[_0xdb7f3e(0x24b)])===_0xe0e654&&_0x2c331a[_0xdb7f3e(0x224)]({..._0x28bede[_0xdb7f3e(0x1d3)],'lineShapeId':_0x2c08b3,'isFrom':!0x0}),((_0xb7c92b=_0x28bede['to'])==null?void 0x0:_0xb7c92b[_0xdb7f3e(0x24b)])===_0xe0e654&&_0x2c331a['push']({..._0x28bede['to'],'lineShapeId':_0x2c08b3,'isFrom':!0x1});}}}return _0x2c331a;}[_0x5e750b(0x195)](_0x26c42b){const _0x1049e8=_0x5e750b;let _0x929723=this[_0x1049e8(0x1dc)][_0x1049e8(0x1a4)](_0x26c42b);if(_0x929723)return _0x929723[_0x1049e8(0x1aa)]();}[_0x5e750b(0x214)](_0x288298){const _0x44a3c6=_0x5e750b;let _0x3ca8d2=this['_shapes']['get'](_0x288298);if(_0x3ca8d2)return _0x3ca8d2[_0x44a3c6(0x214)]();}[_0x5e750b(0x215)](_0x23cd43){const _0x46681d=_0x5e750b;return this[_0x46681d(0x1dc)][_0x46681d(0x1b3)](_0x23cd43);}[_0x5e750b(0x1e9)](_0x1d0cfa){const _0x15afe3=_0x5e750b;let _0x201b9f=this[_0x15afe3(0x1dc)][_0x15afe3(0x1a4)](_0x1d0cfa);_0x201b9f&&((0x0,e[_0x15afe3(0x1d4)])(_0x201b9f[_0x15afe3(0x214)]())&&this[_0x15afe3(0x1e0)]['delete'](_0x1d0cfa),this[_0x15afe3(0x1dc)]['delete'](_0x1d0cfa));}['toJSON'](){const _0x298ac7=_0x5e750b;let _0x84cb0=[];return this['_shapes'][_0x298ac7(0x1f1)](_0x19c077=>{const _0x49d2e9=_0x298ac7;_0x84cb0['push'](_0x19c077[_0x49d2e9(0x240)]());}),_0x84cb0;}[_0x5e750b(0x1d1)](_0x14e63e){const _0x4ac010=_0x5e750b;for(let _0x2d6035 of _0x14e63e){let {id:_0x364f8b,shapeType:_0x353aba}=_0x2d6035,_0x1e0b40=this[_0x4ac010(0x200)](_0x353aba,_0x364f8b,_0x2d6035[_0x4ac010(0x1b2)]);_0x1e0b40&&_0x1e0b40['isLineShape']()&&this['_linesIds'][_0x4ac010(0x22d)](_0x364f8b);}}[_0x5e750b(0x1c4)](){const _0x57e4dc=_0x5e750b;this[_0x57e4dc(0x191)]||(this['_shapes'][_0x57e4dc(0x1f1)](_0x6017ca=>{const _0x38b108=_0x57e4dc;_0x6017ca[_0x38b108(0x1c4)]();}),this['_shapes'][_0x57e4dc(0x1b5)](),this[_0x57e4dc(0x1e0)][_0x57e4dc(0x1b5)](),this[_0x57e4dc(0x20f)][_0x57e4dc(0x1b5)](),super[_0x57e4dc(0x1c4)]());}};function _0x4654(){const _0x31a3a5=['DEFAULT_SHAPE_WIDTH','default','_serializeShapeForUnit','sequenceExecute','878196ZSBxaT','add','fill','transform','symbol','getEndConnectInfo','interceptCommand','getCellIndexAndOffsetByPosition','top','getDrawingData','getSheetCommandTarget','InsertSheetDrawingCommand','sheet.command.set-shape-text-vertical-toggle','CommandType','Module','REMOVE','pluginName','defineProperty','insertShape','startX','toJSON','string','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','entries','packageName','sheet.mutation.insert-shape','resizeEnabled','object','updateContext','transformToDrawingPosition','shapeId','RemoveSheetDrawingCommand','sheet.mutation.remove-shape','UpdateSheetsShapeTypeMutation','width','touchDependencies','COMMAND','InsertShapeCommand','getCellWithCoordByIndex','SheetSkeletonService','Inject','cos','merge','978sQPkvp','getDrawingByParam','registerPluginResource','routeConnectorLineShape','_disposed','2964784OTIyxI','_shapeModelManagerMap','onStarting','getLineShapeRelation','UniverLicensePlugin','INSERT','getAdjustNames','_injector','getSkeleton','InsertSheetsShapeMutation','Disposable','4987809CJrAxz','Injector','removeLinePoints','undos','assign','UPDATE','relation','get','left','6vkjdgt','0.23.0-insiders.20260523-10caf99','flipY','lineShapeId','getShapeRelation','SHEET_SHAPE_PLUGIN','_sheetSkeletonService','DependentOn','sheet.mutation.update-shape-data','_configService','IUniverInstanceService','set','shapeData','has','IUndoRedoService','clear','getBatchAddOp','_sheetsShapeService','prototype','getBasicShapeRotateBound','version','range','position','MUTATION','sheet.command.toggle-shape-flip','ShapeModel','adjustValues','ToggleSheetsShapeFlipCommand','UNIVER_SHEET','toPrimitive','dispose','flipX','cxnIndex','sin','keys','DrawingTypeEnum','call','60054ddLTjg','filter','redos','IDrawingManagerService','sheet.command.insert-shape','getShapeDataById','fromJSON','getStartConnectInfo','from','isConnectorShape','SheetsShapeService','DrawingApplyType','params','IConfigService','data','SetSheetDrawingCommand','getConnectionSiteList','_shapes','ISheetDrawingService','UniverInstanceType','_addLineRerouteUpdates','_linesIds','sheet.command.set-shape-rotate','iterator','SheetInterceptorService','transformToAxisAlignPosition','isFrom','sheet.command.update-line-shape-resize','_drawingManagerService','_addLineFollowShapeUpdates','removeShape','_ensureShapeModelManager','rotateEnabled','setShapeType','_commandService','SetDrawingApplyMutation','every','_initSnapshot','forEach','IResourceManagerService','sheet.mutation.update-shape-type','@univerjs-pro/sheets-shape','DEFAULT_SHAPE_HEIGHT','DRAWING_SHAPE','result','setShapeData','ICommandService','Plugin','rotation','_initCommandInterceptor','borderEnabled','lineType','getBasicShapeRelation','addShape','getBatchUpdateOp','pushUndoRedo','UpdateSheetsShapeDataMutation','preRedos','10635nrKjcC','_sheetInterceptorService','disposeWithMe','height','index','length','_config','176705jdpYjb','getShapeModel','drawingType','_groupIds','getShapeData','sheets-shape.config','_initCommands','ensureSkeleton','getShapeType','hasShape','_deserializeShapeForUnit','getAdjustValueByName','preUndos','angle','SetShapeDrawingDataCommand','find','ClearSheetDrawingTransformerOperation','_getConnectPointInfo','delete','onCommandExecute','ang','startY','SetSheetsShapeTextVerticalToggleCommand','worldRect','push','sheet.command.set-shape-drawing-data','3109596soaIjR','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'];_0x4654=function(){return _0x31a3a5;};return _0x4654();}function d(_0x208657,_0x2b3ef4){return function(_0x438326,_0x5bdb92){_0x2b3ef4(_0x438326,_0x5bdb92,_0x208657);};}function f(_0x55d83f,_0x43f003,_0x140e9b,_0x48363c){const _0x1060e2=_0x5e750b;var _0x2f2225=arguments[_0x1060e2(0x20a)],_0x490a6a=_0x2f2225<0x3?_0x43f003:_0x48363c===null?_0x48363c=Object['getOwnPropertyDescriptor'](_0x43f003,_0x140e9b):_0x48363c,_0x1f0808;if(typeof Reflect==_0x1060e2(0x248)&&typeof Reflect['decorate']==_0x1060e2(0x242))_0x490a6a=Reflect['decorate'](_0x55d83f,_0x43f003,_0x140e9b,_0x48363c);else{for(var _0xc0cfbe=_0x55d83f[_0x1060e2(0x20a)]-0x1;_0xc0cfbe>=0x0;_0xc0cfbe--)(_0x1f0808=_0x55d83f[_0xc0cfbe])&&(_0x490a6a=(_0x2f2225<0x3?_0x1f0808(_0x490a6a):_0x2f2225>0x3?_0x1f0808(_0x43f003,_0x140e9b,_0x490a6a):_0x1f0808(_0x43f003,_0x140e9b))||_0x490a6a);}return _0x2f2225>0x3&&_0x490a6a&&Object['defineProperty'](_0x43f003,_0x140e9b,_0x490a6a),_0x490a6a;}let p=class extends t[_0x5e750b(0x19c)]{constructor(_0x559dcc){const _0xf63fb9=_0x5e750b;super(),this['_resourcesManagerService']=_0x559dcc,l(this,_0xf63fb9(0x193),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x2f6a12,_0x3368c7){const _0x40a4ce=_0x5e750b;let _0x55c0c4=this[_0x40a4ce(0x193)][_0x40a4ce(0x1a4)](_0x2f6a12);_0x55c0c4||(_0x55c0c4=new Map(),this['_shapeModelManagerMap'][_0x40a4ce(0x1b1)](_0x2f6a12,_0x55c0c4));let _0x450435=_0x55c0c4[_0x40a4ce(0x1a4)](_0x3368c7);return _0x450435||(_0x450435=new u(),_0x55c0c4[_0x40a4ce(0x1b1)](_0x3368c7,_0x450435)),_0x450435;}[_0x5e750b(0x23e)](_0x33260b,_0x33e783,_0x27511a,_0x11027e,_0x319708){const _0x10b701=_0x5e750b;this[_0x10b701(0x1ea)](_0x33260b,_0x33e783)[_0x10b701(0x200)](_0x27511a,_0x11027e,_0x319708);}[_0x5e750b(0x1e9)](_0x5522a2,_0x530bed,_0x252b4b){const _0x388624=_0x5e750b;this['_ensureShapeModelManager'](_0x5522a2,_0x530bed)[_0x388624(0x1e9)](_0x252b4b);}['getBasicShapeType'](_0x5d1b59,_0x1358a7,_0x41c8c5){const _0xbbb65b=_0x5e750b;return this[_0xbbb65b(0x1ea)](_0x5d1b59,_0x1358a7)[_0xbbb65b(0x214)](_0x41c8c5);}[_0x5e750b(0x214)](_0x2e4891,_0x579f4a,_0xeb6332){const _0x493843=_0x5e750b;return this[_0x493843(0x1ea)](_0x2e4891,_0x579f4a)[_0x493843(0x214)](_0xeb6332);}[_0x5e750b(0x215)](_0x5da46a,_0x2fda90,_0x380445){const _0x1c3800=_0x5e750b;return this[_0x1c3800(0x1ea)](_0x5da46a,_0x2fda90)[_0x1c3800(0x215)](_0x380445);}['getShapeTypeById'](_0x2d7baa,_0x1d9aef,_0x1e725a){const _0x54e3e6=_0x5e750b;return this[_0x54e3e6(0x1ea)](_0x2d7baa,_0x1d9aef)['getShapeType'](_0x1e725a);}[_0x5e750b(0x1d0)](_0x17fde6,_0x579e84,_0x166bb3){const _0x520712=_0x5e750b;let _0x15ece1=this[_0x520712(0x1ea)](_0x17fde6,_0x579e84);if(!_0x15ece1[_0x520712(0x214)](_0x166bb3))return;let _0x5d7be2=_0x15ece1[_0x520712(0x1dc)]['get'](_0x166bb3);if(_0x5d7be2)return _0x5d7be2[_0x520712(0x210)]();}[_0x5e750b(0x20d)](_0x360f17,_0x21ab9e,_0x2fa103){const _0x134d09=_0x5e750b;return this[_0x134d09(0x1ea)](_0x360f17,_0x21ab9e)[_0x134d09(0x1dc)]['get'](_0x2fa103);}[_0x5e750b(0x1ff)](_0x4c7f87,_0x51c5b1,_0x276826){const _0x1d4588=_0x5e750b;return this[_0x1d4588(0x1ea)](_0x4c7f87,_0x51c5b1)[_0x1d4588(0x1ff)](_0x276826);}[_0x5e750b(0x195)](_0x4ed445,_0x36e853,_0x3e876b){const _0x2b3397=_0x5e750b;let _0xf7b5e1=this['_ensureShapeModelManager'](_0x4ed445,_0x36e853)['_shapes'][_0x2b3397(0x1a4)](_0x3e876b);if(_0xf7b5e1)return _0xf7b5e1[_0x2b3397(0x1aa)]();}[_0x5e750b(0x1ec)](){}[_0x5e750b(0x22a)](_0x1ef1af){const _0x26b480=_0x5e750b;let _0x333b09={},_0xd5f69=this['_shapeModelManagerMap'][_0x26b480(0x1a4)](_0x1ef1af);return _0xd5f69&&_0xd5f69['forEach']((_0x5df483,_0x54c308)=>{const _0x1cf872=_0x26b480;let _0x1a864b=_0x5df483[_0x1cf872(0x240)]();_0x1a864b[_0x1cf872(0x20a)]>0x0&&(_0x333b09[_0x54c308]=_0x1a864b);}),JSON['stringify'](_0x333b09);}[_0x5e750b(0x216)](_0x1f8471,_0x233b96){const _0x5ef3ea=_0x5e750b;Object[_0x5ef3ea(0x1c8)](_0x233b96)[_0x5ef3ea(0x1f1)](_0x5b621f=>{this['_ensureShapeModelManager'](_0x1f8471,_0x5b621f)['fromJSON'](_0x233b96[_0x5b621f]);});}[_0x5e750b(0x240)](){const _0x21c886=_0x5e750b;let _0x291d8e={};return this['_shapeModelManagerMap'][_0x21c886(0x1f1)]((_0x38fbed,_0x1557ef)=>{const _0x3286c7=_0x21c886;_0x291d8e[_0x1557ef]={},_0x38fbed[_0x3286c7(0x1f1)]((_0x20385e,_0x42d87d)=>{const _0x4dd997=_0x3286c7;_0x291d8e[_0x1557ef][_0x42d87d]=_0x20385e[_0x4dd997(0x240)]();});}),_0x291d8e;}['fromJSON'](_0x1c7e18){const _0x28a096=_0x5e750b;Object[_0x28a096(0x1c8)](_0x1c7e18)[_0x28a096(0x1f1)](_0x46e13d=>{const _0x145a7e=_0x28a096;let _0x7ee32d=_0x1c7e18[_0x46e13d];Object[_0x145a7e(0x1c8)](_0x7ee32d)[_0x145a7e(0x1f1)](_0x57d56d=>{const _0x29580c=_0x145a7e;this[_0x29580c(0x1ea)](_0x46e13d,_0x57d56d)['fromJSON'](_0x7ee32d[_0x57d56d]);});});}[_0x5e750b(0x1f0)](){const _0x349f9e=_0x5e750b;this['_resourcesManagerService'][_0x349f9e(0x18f)]({'pluginName':_0x349f9e(0x1ab),'businesses':[t['UniverInstanceType'][_0x349f9e(0x1c2)]],'toJson':_0x99ac2b=>this[_0x349f9e(0x22a)](_0x99ac2b),'parseJson':_0x67cfbb=>JSON['parse'](_0x67cfbb),'onLoad':(_0x549664,_0x5d7c83)=>{const _0x58bb7b=_0x349f9e;this[_0x58bb7b(0x216)](_0x549664,_0x5d7c83);},'onUnLoad':_0x15bff8=>{const _0x537438=_0x349f9e;let _0x3378db=this[_0x537438(0x193)][_0x537438(0x1a4)](_0x15bff8);_0x3378db&&(_0x3378db[_0x537438(0x1f1)](_0x26bc08=>{_0x26bc08['dispose']();}),this[_0x537438(0x193)][_0x537438(0x21e)](_0x15bff8));}});}[_0x5e750b(0x1c4)](){const _0x53ff86=_0x5e750b;this[_0x53ff86(0x193)][_0x53ff86(0x1f1)](_0x21c9ff=>{_0x21c9ff['forEach'](_0x5406b9=>{const _0x465bf1=_0x1ff2;_0x5406b9[_0x465bf1(0x1c4)]();});});}};p=f([d(0x0,t[_0x5e750b(0x1f2)])],p);const m={'id':_0x5e750b(0x246),'type':t[_0x5e750b(0x239)][_0x5e750b(0x1bd)],'handler':(_0x2fbc08,_0x74c926)=>{const _0x4cfa72=_0x5e750b;let {unitId:_0xefd4f8,subUnitId:_0x71afb5,shapeType:_0x2306b9,shapeId:_0xc9b8ec,shapeData:_0xb98628}=_0x74c926;return _0x2fbc08[_0x4cfa72(0x1a4)](p)[_0x4cfa72(0x23e)](_0xefd4f8,_0x71afb5,_0x2306b9,_0xc9b8ec,_0xb98628),!0x0;}},h={'id':_0x5e750b(0x24d),'type':t[_0x5e750b(0x239)]['MUTATION'],'handler':(_0xa184bd,_0x46e3bb)=>{const _0x1979d3=_0x5e750b;let {unitId:_0x4ec6e9,subUnitId:_0x1dac23,shapeId:_0x188529}=_0x46e3bb;return _0xa184bd[_0x1979d3(0x1a4)](p)[_0x1979d3(0x1e9)](_0x4ec6e9,_0x1dac23,_0x188529),!0x0;}},g={'type':t[_0x5e750b(0x239)][_0x5e750b(0x251)],'id':_0x5e750b(0x1cf),'handler':(_0x418743,_0x27635f)=>{const _0x32a5bc=_0x5e750b;var _0x5725d7,_0x12e2cd;let _0x28778d=(0x0,n[_0x32a5bc(0x236)])(_0x418743['get'](t[_0x32a5bc(0x1b0)]),_0x27635f);if(!_0x28778d)return!0x1;let _0x67a348=_0x418743['get'](n['SheetSkeletonService']),{unitId:_0xae50f9,subUnitId:_0x3eb43b}=_0x28778d,_0x1b4272=_0x67a348[_0x32a5bc(0x213)](_0xae50f9,_0x3eb43b);if(!_0x1b4272)return!0x1;let _0x99f9a5=_0x418743[_0x32a5bc(0x1a4)](t[_0x32a5bc(0x1f9)]),_0x201a0=_0x418743[_0x32a5bc(0x1a4)](t[_0x32a5bc(0x1b4)]),_0x214069=_0x418743['get'](n[_0x32a5bc(0x1e3)]),_0x79fecd=_0x418743[_0x32a5bc(0x1a4)](r[_0x32a5bc(0x1dd)]),{shapeType:_0x1c5621,shapeData:_0x3b63b5}=_0x27635f,_0x538fd7=_0x27635f[_0x32a5bc(0x24b)]||(0x0,t['generateRandomId'])(),_0x5ac73c={'unitId':_0xae50f9,'subUnitId':_0x3eb43b,'shapeId':_0x538fd7,'shapeType':_0x1c5621,'shapeData':_0x3b63b5},_0x529582=_0x27635f[_0x32a5bc(0x24f)]||0xc8,_0x33415e=_0x27635f[_0x32a5bc(0x208)]||0xc8,_0x400192=0x0,_0x232bee=0x0,_0x1bd16a={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x509d39={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x27635f[_0x32a5bc(0x1bc)]){let {x:_0x1be410,y:_0x20ad2f}=_0x27635f[_0x32a5bc(0x1bc)];_0x400192=_0x1be410,_0x232bee=_0x20ad2f,_0x1bd16a=_0x1b4272[_0x32a5bc(0x233)](_0x1be410,_0x20ad2f),_0x509d39=_0x1b4272[_0x32a5bc(0x233)](_0x1be410+_0x529582,_0x20ad2f+_0x33415e);}else{if(_0x27635f[_0x32a5bc(0x1bb)]){let {startRow:_0x383228,startColumn:_0xab19ea}=_0x27635f[_0x32a5bc(0x1bb)];_0x1bd16a={'row':_0x383228,'rowOffset':0xa,'column':_0xab19ea,'columnOffset':0xa};let _0x19612c=_0x1b4272[_0x32a5bc(0x253)](_0x383228,_0xab19ea);_0x400192=_0x19612c[_0x32a5bc(0x23f)]+0xa,_0x232bee=_0x19612c[_0x32a5bc(0x221)]+0xa,_0x509d39=_0x1b4272[_0x32a5bc(0x233)](_0x400192+_0x529582,_0x232bee+_0x33415e);}}let _0x57225c={'from':_0x1bd16a,'to':_0x509d39},_0x37a048={'unitId':_0xae50f9,'subUnitId':_0x3eb43b,'drawingId':_0x538fd7,'drawingType':t[_0x32a5bc(0x1c9)][_0x32a5bc(0x1f6)],'sheetTransform':_0x57225c,'transform':{'left':_0x400192,'top':_0x232bee,'width':_0x529582,'height':_0x33415e},'data':{'shapeType':_0x1c5621,'shapeData':_0x3b63b5},'axisAlignSheetTransform':_0x57225c,'allowTransform':!0x0};(0x0,e['isConnectorShape'])(_0x1c5621)&&(_0x37a048[_0x32a5bc(0x1d9)][_0x32a5bc(0x22e)]=!0x1,_0x37a048[_0x32a5bc(0x1d9)][_0x32a5bc(0x1eb)]=!0x1,_0x37a048[_0x32a5bc(0x1d9)]['resizeEnabled']=!0x1,_0x37a048['data'][_0x32a5bc(0x1fd)]=!0x1,_0x37a048[_0x32a5bc(0x22f)][_0x32a5bc(0x1eb)]=!0x1,_0x37a048[_0x32a5bc(0x22f)][_0x32a5bc(0x247)]=!0x1,_0x37a048['transform']['borderEnabled']=!0x1);let {undo:_0x524afc,redo:_0x2d9df9,objects:_0x5aae1e}=_0x79fecd[_0x32a5bc(0x1b6)]([_0x37a048]),_0x569ef4=_0x214069[_0x32a5bc(0x21f)]({'id':r[_0x32a5bc(0x237)]['id'],'params':{'unitId':_0xae50f9,'drawings':[_0x37a048]}}),_0x4cee4f=[...(_0x5725d7=_0x569ef4[_0x32a5bc(0x204)])==null?[]:_0x5725d7,{'id':r[_0x32a5bc(0x1ee)]['id'],'params':{'unitId':_0xae50f9,'subUnitId':_0x3eb43b,'op':_0x2d9df9,'objects':_0x5aae1e,'type':r['DrawingApplyType'][_0x32a5bc(0x197)]}},{'id':r[_0x32a5bc(0x21c)]['id'],'params':[_0xae50f9]},..._0x569ef4[_0x32a5bc(0x1cd)],{'id':m['id'],'params':_0x5ac73c}],_0x206116=[{'id':h['id'],'params':{'unitId':_0xae50f9,'subUnitId':_0x3eb43b,'shapeId':_0x538fd7}},...(_0x12e2cd=_0x569ef4[_0x32a5bc(0x218)])==null?[]:_0x12e2cd,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xae50f9,'subUnitId':_0x3eb43b,'op':_0x524afc,'objects':_0x5aae1e,'type':r[_0x32a5bc(0x1d6)][_0x32a5bc(0x23b)]}},{'id':r[_0x32a5bc(0x21c)]['id'],'params':[_0xae50f9]},..._0x569ef4['undos']];return(0x0,t[_0x32a5bc(0x22b)])(_0x4cee4f,_0x99f9a5)[_0x32a5bc(0x1f7)]?(_0x201a0[_0x32a5bc(0x202)]({'unitID':_0xae50f9,'undoMutations':_0x206116,'redoMutations':_0x4cee4f}),!0x0):!0x1;}},_={'id':_0x5e750b(0x1ae),'type':t[_0x5e750b(0x239)][_0x5e750b(0x1bd)],'handler':(_0x4744a2,_0x20d0a2)=>{const _0x37301a=_0x5e750b;let {unitId:_0x14c0d1,subUnitId:_0x40dcd2,shapeType:_0x11f5c6,shapeId:_0x1941f1,shapeData:_0xbed9d4}=_0x20d0a2,_0x5a4cbf=_0x4744a2['get'](p)[_0x37301a(0x20d)](_0x14c0d1,_0x40dcd2,_0x1941f1);return _0x5a4cbf&&(_0x11f5c6!==void 0x0&&_0x5a4cbf[_0x37301a(0x1ec)](_0x11f5c6),_0xbed9d4&&(_0x5a4cbf==null||_0x5a4cbf[_0x37301a(0x1f8)](_0xbed9d4,!0x0))),!0x0;}},v={'type':t[_0x5e750b(0x239)][_0x5e750b(0x251)],'id':_0x5e750b(0x225),'handler':(_0x120330,_0x5d603a)=>{const _0x745002=_0x5e750b;var _0x3a314b,_0x2d4695;let _0x7076cb=(0x0,n[_0x745002(0x236)])(_0x120330['get'](t['IUniverInstanceService']),_0x5d603a);if(!_0x7076cb)return!0x1;let _0x4d4a0d=_0x120330[_0x745002(0x1a4)](n[_0x745002(0x254)]),{unitId:_0x4c2de1,subUnitId:_0x158fe6}=_0x7076cb,_0x1b1573=_0x4d4a0d[_0x745002(0x213)](_0x4c2de1,_0x158fe6);if(!_0x1b1573)return!0x1;let _0x1a4d54=_0x120330[_0x745002(0x1a4)](p),{shapeId:_0xf168c1,shapeType:_0x1e2994,shapeData:_0x5360a3,position:_0x24c1b4,width:_0x3342b8,height:_0x281288}=_0x5d603a,_0x1c9b99=_0x1a4d54[_0x745002(0x20d)](_0x4c2de1,_0x158fe6,_0xf168c1);if(!_0x1c9b99)return!0x1;let _0x9d4af2=_0x120330['get'](t[_0x745002(0x1f9)]),_0x3714ab=_0x120330['get'](t['IUndoRedoService']),_0x41948e=_0x120330[_0x745002(0x1a4)](n[_0x745002(0x1e3)]),_0x3fb69c=_0x120330[_0x745002(0x1a4)](r[_0x745002(0x1dd)]),_0x3490e3={'unitId':_0x4c2de1,'subUnitId':_0x158fe6,'shapeId':_0xf168c1,'shapeType':_0x1e2994,'shapeData':_0x5360a3},_0x39c940=_0x1c9b99[_0x745002(0x214)](),_0x3ee53a=_0x1c9b99['getShapeData'](),{x:_0x1ca659,y:_0x5ac4bf}=_0x24c1b4,_0x5423df={'from':_0x1b1573[_0x745002(0x233)](_0x1ca659,_0x5ac4bf),'to':_0x1b1573[_0x745002(0x233)](_0x1ca659+_0x3342b8,_0x5ac4bf+_0x281288)},_0xb20c87={'unitId':_0x4c2de1,'subUnitId':_0x158fe6,'drawingId':_0xf168c1,'drawingType':t[_0x745002(0x1c9)][_0x745002(0x1f6)],'sheetTransform':_0x5423df,'transform':{'left':_0x1ca659,'top':_0x5ac4bf,'width':_0x3342b8,'height':_0x281288},'data':{'shapeType':_0x1e2994,'shapeData':_0x5360a3},'axisAlignSheetTransform':_0x5423df,'allowTransform':!0x0};(0x0,e[_0x745002(0x1d4)])(_0x1e2994)&&(_0xb20c87[_0x745002(0x1d9)]['fill']=!0x1,_0xb20c87[_0x745002(0x1d9)][_0x745002(0x1eb)]=!0x1,_0xb20c87[_0x745002(0x1d9)][_0x745002(0x247)]=!0x1,_0xb20c87[_0x745002(0x1d9)]['borderEnabled']=!0x1,_0xb20c87[_0x745002(0x22f)][_0x745002(0x1eb)]=!0x1,_0xb20c87[_0x745002(0x22f)][_0x745002(0x247)]=!0x1,_0xb20c87[_0x745002(0x22f)][_0x745002(0x1fd)]=!0x1);let {undo:_0x580052,redo:_0x5e7be4,objects:_0x5815ee}=_0x3fb69c[_0x745002(0x201)]([_0xb20c87]),_0x311313=_0x41948e[_0x745002(0x21f)]({'id':r[_0x745002(0x1da)]['id'],'params':{'unitId':_0x4c2de1,'drawings':[_0xb20c87]}}),_0x56e2ff=[...(_0x3a314b=_0x311313[_0x745002(0x204)])==null?[]:_0x3a314b,{'id':r[_0x745002(0x1ee)]['id'],'params':{'unitId':_0x4c2de1,'subUnitId':_0x158fe6,'op':_0x5e7be4,'objects':_0x5815ee,'type':r[_0x745002(0x1d6)][_0x745002(0x1a2)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4c2de1]},..._0x311313[_0x745002(0x1cd)],{'id':_['id'],'params':_0x3490e3}],_0x3a816b=[...(_0x2d4695=_0x311313[_0x745002(0x218)])==null?[]:_0x2d4695,{'id':r[_0x745002(0x1ee)]['id'],'params':{'unitId':_0x4c2de1,'subUnitId':_0x158fe6,'op':_0x580052,'objects':_0x5815ee,'type':r[_0x745002(0x1d6)][_0x745002(0x1a2)]}},{'id':r[_0x745002(0x21c)]['id'],'params':[_0x4c2de1]},..._0x311313['undos'],{'id':_['id'],'params':{'unitId':_0x4c2de1,'subUnitId':_0x158fe6,'shapeType':_0x39c940,'shapeId':_0xf168c1,'shapeData':_0x3ee53a}}];return(0x0,t['sequenceExecute'])(_0x56e2ff,_0x9d4af2)[_0x745002(0x1f7)]?(_0x3714ab['pushUndoRedo']({'unitID':_0x4c2de1,'undoMutations':_0x3a816b,'redoMutations':_0x56e2ff}),!0x0):!0x1;}},y={'type':t[_0x5e750b(0x239)][_0x5e750b(0x251)],'id':_0x5e750b(0x1be),'handler':(_0x3a636d,_0x57b837)=>{const _0xa1cf11=_0x5e750b;var _0x41eee1,_0x16694e;let _0x141a62=(0x0,n['getSheetCommandTarget'])(_0x3a636d[_0xa1cf11(0x1a4)](t['IUniverInstanceService']),_0x57b837);if(!_0x141a62)return!0x1;let _0x4439e0=_0x3a636d['get'](n[_0xa1cf11(0x254)]),{unitId:_0x4d59ae,subUnitId:_0x4dcbe0}=_0x141a62,_0x1d0ae0=_0x4439e0['getSkeleton'](_0x4d59ae,_0x4dcbe0);if(!_0x1d0ae0)return!0x1;let _0x3d31fd=_0x3a636d[_0xa1cf11(0x1a4)](r[_0xa1cf11(0x1dd)]),{shapeId:_0x4c31e6,flipH:_0xd3ce40,flipV:_0x3bb16f}=_0x57b837,_0x2f2b41=_0x3d31fd[_0xa1cf11(0x18e)]({'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'drawingId':_0x4c31e6});if(!_0x2f2b41)return!0x1;let _0x4557cc=_0x3a636d['get'](p)[_0xa1cf11(0x20d)](_0x4d59ae,_0x4dcbe0,_0x4c31e6);if(!_0x4557cc)return!0x1;let _0x4c19b1=_0x3a636d[_0xa1cf11(0x1a4)](t[_0xa1cf11(0x1f9)]),_0x5ee9ec=_0x3a636d[_0xa1cf11(0x1a4)](t[_0xa1cf11(0x1b4)]),_0x239be8=_0x3a636d[_0xa1cf11(0x1a4)](n['SheetInterceptorService']),_0x381df0={..._0x2f2b41[_0xa1cf11(0x22f)]};_0xd3ce40!==void 0x0&&(_0x381df0[_0xa1cf11(0x1c5)]=!_0x381df0[_0xa1cf11(0x1c5)]),_0x3bb16f!==void 0x0&&(_0x381df0[_0xa1cf11(0x1a8)]=!_0x381df0[_0xa1cf11(0x1a8)]);let _0x4e30fe=(0x0,r[_0xa1cf11(0x24a)])(_0x381df0,_0x1d0ae0),_0x490279=(0x0,r[_0xa1cf11(0x1e4)])(_0x381df0,_0x1d0ae0),_0x45fe47=_0x4557cc[_0xa1cf11(0x214)](),_0x20b45c=_0x4557cc['getShapeData'](),_0x39f44b={'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'drawingId':_0x4c31e6,'drawingType':t['DrawingTypeEnum'][_0xa1cf11(0x1f6)],'sheetTransform':_0x4e30fe,'transform':_0x381df0,'data':{'shapeType':_0x45fe47,'shapeData':_0x20b45c},'axisAlignSheetTransform':_0x490279,'allowTransform':!0x0},{undo:_0x144c82,redo:_0x6a5dd6,objects:_0x3ea3f6}=_0x3d31fd[_0xa1cf11(0x201)]([_0x39f44b]),_0x4a6f46=_0x239be8[_0xa1cf11(0x21f)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x4d59ae,'drawings':[_0x39f44b]}}),_0x2017d3=[...(_0x41eee1=_0x4a6f46['preRedos'])==null?[]:_0x41eee1,{'id':r[_0xa1cf11(0x1ee)]['id'],'params':{'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'op':_0x6a5dd6,'objects':_0x3ea3f6,'type':r[_0xa1cf11(0x1d6)][_0xa1cf11(0x1a2)]}},{'id':r[_0xa1cf11(0x21c)]['id'],'params':[_0x4d59ae]},..._0x4a6f46[_0xa1cf11(0x1cd)]],_0x974d03=[...(_0x16694e=_0x4a6f46['preUndos'])==null?[]:_0x16694e,{'id':r[_0xa1cf11(0x1ee)]['id'],'params':{'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'op':_0x144c82,'objects':_0x3ea3f6,'type':r[_0xa1cf11(0x1d6)][_0xa1cf11(0x1a2)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x4d59ae]},..._0x4a6f46[_0xa1cf11(0x1a0)]];if((0x0,e[_0xa1cf11(0x1d4)])(_0x45fe47)){let _0x5c889a=_0x4557cc['getShapeRelation']();if(_0x5c889a){let _0x46f806={..._0x5c889a};_0x46f806[_0xa1cf11(0x1d3)]=void 0x0,_0x46f806['to']=void 0x0,_0x2017d3[_0xa1cf11(0x224)]({'id':_['id'],'params':{'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'shapeId':_0x4c31e6,'shapeType':_0x45fe47,'shapeData':{'relation':_0x46f806}}}),_0x974d03[_0xa1cf11(0x224)]({'id':_['id'],'params':{'unitId':_0x4d59ae,'subUnitId':_0x4dcbe0,'shapeId':_0x4c31e6,'shapeType':_0x45fe47,'shapeData':{'relation':_0x5c889a}}});}}return(0x0,t[_0xa1cf11(0x22b)])(_0x2017d3,_0x4c19b1)['result']?(_0x5ee9ec[_0xa1cf11(0x202)]({'unitID':_0x4d59ae,'undoMutations':_0x974d03,'redoMutations':_0x2017d3}),!0x0):!0x1;}},b={'type':t[_0x5e750b(0x239)][_0x5e750b(0x251)],'id':_0x5e750b(0x1e1),'handler':(_0x454188,_0xfaa915)=>{const _0x247929=_0x5e750b;var _0x40439f,_0x23c744;let _0x2b24d8=(0x0,n[_0x247929(0x236)])(_0x454188[_0x247929(0x1a4)](t[_0x247929(0x1b0)]),_0xfaa915);if(!_0x2b24d8)return!0x1;let _0x4d827c=_0x454188['get'](n[_0x247929(0x254)]),{unitId:_0x733a14,subUnitId:_0x7c3e71}=_0x2b24d8,_0x216477=_0x4d827c[_0x247929(0x19a)](_0x733a14,_0x7c3e71);if(!_0x216477)return!0x1;let _0xe9fee=_0x454188[_0x247929(0x1a4)](r[_0x247929(0x1dd)]),{shapeId:_0x4f302e,rotate:_0x3467ca}=_0xfaa915,_0x350a26=_0xe9fee['getDrawingByParam']({'unitId':_0x733a14,'subUnitId':_0x7c3e71,'drawingId':_0x4f302e});if(!_0x350a26)return!0x1;let _0x12bfc9=_0x454188['get'](p)[_0x247929(0x20d)](_0x733a14,_0x7c3e71,_0x4f302e);if(!_0x12bfc9)return!0x1;let _0x97a23d=_0x454188[_0x247929(0x1a4)](t[_0x247929(0x1f9)]),_0x153338=_0x454188[_0x247929(0x1a4)](t[_0x247929(0x1b4)]),_0x31838c=_0x454188[_0x247929(0x1a4)](n[_0x247929(0x1e3)]),_0x1e7fa3={..._0x350a26['transform']};_0x3467ca!==void 0x0&&(_0x1e7fa3[_0x247929(0x219)]=(_0x1e7fa3[_0x247929(0x219)]||0x0)+_0x3467ca);let _0xbe965b=(0x0,r[_0x247929(0x24a)])(_0x1e7fa3,_0x216477),_0xbff671=(0x0,r[_0x247929(0x1e4)])(_0x1e7fa3,_0x216477),_0x2a794c=_0x12bfc9[_0x247929(0x214)](),_0x33faca=_0x12bfc9[_0x247929(0x210)](),_0x3e6a6d={'unitId':_0x733a14,'subUnitId':_0x7c3e71,'drawingId':_0x4f302e,'drawingType':t[_0x247929(0x1c9)][_0x247929(0x1f6)],'sheetTransform':_0xbe965b,'transform':_0x1e7fa3,'data':{'shapeType':_0x2a794c,'shapeData':_0x33faca},'axisAlignSheetTransform':_0xbff671,'allowTransform':!0x0},{undo:_0x1659ee,redo:_0x3b13b9,objects:_0x33aac8}=_0xe9fee['getBatchUpdateOp']([_0x3e6a6d]),_0x1363d5=_0x31838c[_0x247929(0x21f)]({'id':r[_0x247929(0x1da)]['id'],'params':{'unitId':_0x733a14,'drawings':[_0x3e6a6d]}}),_0x10955c=[...(_0x40439f=_0x1363d5['preRedos'])==null?[]:_0x40439f,{'id':r[_0x247929(0x1ee)]['id'],'params':{'unitId':_0x733a14,'subUnitId':_0x7c3e71,'op':_0x3b13b9,'objects':_0x33aac8,'type':r['DrawingApplyType'][_0x247929(0x1a2)]}},{'id':r[_0x247929(0x21c)]['id'],'params':[_0x733a14]},..._0x1363d5[_0x247929(0x1cd)]],_0x4f131c=[...(_0x23c744=_0x1363d5[_0x247929(0x218)])==null?[]:_0x23c744,{'id':r[_0x247929(0x1ee)]['id'],'params':{'unitId':_0x733a14,'subUnitId':_0x7c3e71,'op':_0x1659ee,'objects':_0x33aac8,'type':r[_0x247929(0x1d6)][_0x247929(0x1a2)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x733a14]},..._0x1363d5['undos']];return(0x0,t[_0x247929(0x22b)])(_0x10955c,_0x97a23d)['result']?(_0x153338[_0x247929(0x202)]({'unitID':_0x733a14,'undoMutations':_0x4f131c,'redoMutations':_0x10955c}),!0x0):!0x1;}},x={'type':t[_0x5e750b(0x239)]['COMMAND'],'id':_0x5e750b(0x238),'handler':(_0x22f297,_0x4b92df)=>{const _0xe44d05=_0x5e750b;var _0x40c46b;let _0x3c2a4c=(0x0,n[_0xe44d05(0x236)])(_0x22f297[_0xe44d05(0x1a4)](t[_0xe44d05(0x1b0)]),_0x4b92df);if(!_0x3c2a4c)return!0x1;let {unitId:_0x1782a9,subUnitId:_0x3ca962}=_0x3c2a4c,{shapeId:_0x2d8898}=_0x4b92df,_0x10dc67=_0x22f297[_0xe44d05(0x1a4)](p)[_0xe44d05(0x20d)](_0x1782a9,_0x3ca962,_0x2d8898);if(!_0x10dc67)return!0x1;let _0x2a08ce=_0x10dc67['getShapeTextData'](),_0x3ab017=(_0x40c46b=_0x2a08ce==null?void 0x0:_0x2a08ce['isHorizontal'])==null?!0x0:_0x40c46b,_0x199766=!_0x3ab017,_0x16d2c9=_0x22f297['get'](t['ICommandService']),_0x299e62=_0x22f297[_0xe44d05(0x1a4)](t['IUndoRedoService']),_0x2a2baa={'unitId':_0x1782a9,'subUnitId':_0x3ca962,'shapeId':_0x2d8898,'shapeData':{'shapeText':{'isHorizontal':_0x199766}}},_0x2a5bec={'unitId':_0x1782a9,'subUnitId':_0x3ca962,'shapeId':_0x2d8898,'shapeData':{'shapeText':{'isHorizontal':_0x3ab017}}},_0x19591e=[{'id':_['id'],'params':_0x2a2baa}],_0x36efb0=[{'id':_['id'],'params':_0x2a5bec}];return(0x0,t[_0xe44d05(0x22b)])(_0x19591e,_0x16d2c9)['result']?(_0x299e62[_0xe44d05(0x202)]({'unitID':_0x1782a9,'undoMutations':_0x36efb0,'redoMutations':_0x19591e}),!0x0):!0x1;}},S={'type':t['CommandType'][_0x5e750b(0x251)],'id':'sheet.command.update-connector-relation','handler':(_0xeb641f,_0x35d1ff)=>{const _0x243215=_0x5e750b;var _0x4f62dc,_0x568b4e,_0x263eed,_0x2cbd8c;let _0x324936=(0x0,n[_0x243215(0x236)])(_0xeb641f['get'](t[_0x243215(0x1b0)]),_0x35d1ff);if(!_0x324936)return!0x1;let _0x371daf=_0xeb641f[_0x243215(0x1a4)](n['SheetSkeletonService']),{unitId:_0x5b2690,subUnitId:_0x3d959f}=_0x324936,_0x4225f0=_0x371daf[_0x243215(0x19a)](_0x5b2690,_0x3d959f);if(!_0x4225f0)return!0x1;let _0x1e01b2=_0xeb641f['get'](r[_0x243215(0x1dd)]),{connectorShapeId:_0x146335,width:_0x24ad44,height:_0x35dc97,left:_0x3296b4,top:_0x46dff3,flipX:_0x30b03e,flipY:_0xa4aca6,rotation:_0x382381,oldAdjustValues:_0x10de54,newAdjustValues:_0x5a16b4,oldLineType:_0x1c784a,newLineType:_0x3e1111,oldRelation:_0x14650b,newRelation:_0x54e311}=_0x35d1ff,_0x127e88=_0x1e01b2[_0x243215(0x18e)]({'unitId':_0x5b2690,'subUnitId':_0x3d959f,'drawingId':_0x146335});if(!_0x127e88)return!0x1;let _0x34e31f=_0xeb641f[_0x243215(0x1a4)](p)[_0x243215(0x20d)](_0x5b2690,_0x3d959f,_0x146335);if(!_0x34e31f)return!0x1;let _0x6caeac=_0xeb641f[_0x243215(0x1a4)](t[_0x243215(0x1f9)]),_0x217dae=_0xeb641f[_0x243215(0x1a4)](t['IUndoRedoService']),_0x118760=_0xeb641f['get'](n[_0x243215(0x1e3)]),_0x1f47f0={..._0x127e88['transform'],'width':_0x24ad44,'height':_0x35dc97,'left':_0x3296b4,'top':_0x46dff3,'flipX':_0x30b03e,'flipY':_0xa4aca6,'angle':(_0x4f62dc=_0x382381==null?(_0x568b4e=_0x127e88['transform'])==null?void 0x0:_0x568b4e[_0x243215(0x219)]:_0x382381)==null?0x0:_0x4f62dc},_0x12f091=(0x0,r[_0x243215(0x24a)])(_0x1f47f0,_0x4225f0),_0x5bf1be=(0x0,r[_0x243215(0x1e4)])(_0x1f47f0,_0x4225f0),_0x46ea57=_0x34e31f[_0x243215(0x214)](),_0x51f2ad=_0x34e31f['getShapeData'](),_0x1cc603={'unitId':_0x5b2690,'subUnitId':_0x3d959f,'drawingId':_0x146335,'drawingType':t[_0x243215(0x1c9)][_0x243215(0x1f6)],'sheetTransform':_0x12f091,'transform':_0x1f47f0,'data':{'shapeType':_0x3e1111||_0x1c784a||_0x46ea57,'shapeData':{..._0x51f2ad,'adjustValues':_0x5a16b4||_0x10de54||(_0x51f2ad==null?void 0x0:_0x51f2ad[_0x243215(0x1c0)]),'relation':_0x54e311||_0x14650b||(_0x51f2ad==null?void 0x0:_0x51f2ad[_0x243215(0x1a3)])}},'axisAlignSheetTransform':_0x5bf1be,'allowTransform':!0x0},{undo:_0x36adc8,redo:_0x20f36c,objects:_0x3470e1}=_0x1e01b2[_0x243215(0x201)]([_0x1cc603]),_0x14e99f=_0x118760[_0x243215(0x21f)]({'id':r[_0x243215(0x1da)]['id'],'params':{'unitId':_0x5b2690,'drawings':[_0x1cc603]}}),_0x3e4ccb=[...(_0x263eed=_0x14e99f['preRedos'])==null?[]:_0x263eed,{'id':r[_0x243215(0x1ee)]['id'],'params':{'unitId':_0x5b2690,'subUnitId':_0x3d959f,'op':_0x20f36c,'objects':_0x3470e1,'type':r[_0x243215(0x1d6)]['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x5b2690]},..._0x14e99f[_0x243215(0x1cd)],{'id':_['id'],'params':{'unitId':_0x5b2690,'subUnitId':_0x3d959f,'shapeId':_0x146335,'shapeType':_0x3e1111,'shapeData':{'adjustValues':_0x5a16b4,'relation':_0x54e311}}}],_0x1e93e5=[...(_0x2cbd8c=_0x14e99f['preUndos'])==null?[]:_0x2cbd8c,{'id':r[_0x243215(0x1ee)]['id'],'params':{'unitId':_0x5b2690,'subUnitId':_0x3d959f,'op':_0x36adc8,'objects':_0x3470e1,'type':r[_0x243215(0x1d6)][_0x243215(0x1a2)]}},{'id':r[_0x243215(0x21c)]['id'],'params':[_0x5b2690]},..._0x14e99f[_0x243215(0x1a0)],{'id':_['id'],'params':{'unitId':_0x5b2690,'subUnitId':_0x3d959f,'shapeId':_0x146335,'shapeType':_0x46ea57,'shapeData':{..._0x51f2ad,'adjustValues':_0x10de54||(_0x51f2ad==null?void 0x0:_0x51f2ad['adjustValues']),'relation':_0x14650b||(_0x51f2ad==null?void 0x0:_0x51f2ad[_0x243215(0x1a3)])}}}];return(0x0,t['sequenceExecute'])(_0x3e4ccb,_0x6caeac)['result']?(_0x217dae[_0x243215(0x202)]({'unitID':_0x5b2690,'undoMutations':_0x1e93e5,'redoMutations':_0x3e4ccb}),!0x0):!0x1;}},C={'type':t['CommandType'][_0x5e750b(0x251)],'id':_0x5e750b(0x1e6),'handler':(_0x1a269f,_0x57dd24)=>{const _0x37e900=_0x5e750b;var _0x1b6f5,_0x158f85;let _0x49d96d=(0x0,n['getSheetCommandTarget'])(_0x1a269f['get'](t[_0x37e900(0x1b0)]),_0x57dd24);if(!_0x49d96d)return!0x1;let _0x40917a=_0x1a269f['get'](n[_0x37e900(0x254)]),{unitId:_0x146cca,subUnitId:_0x2a97f2}=_0x49d96d,_0x26edb1=_0x40917a[_0x37e900(0x19a)](_0x146cca,_0x2a97f2);if(!_0x26edb1)return!0x1;let _0x3a3c27=_0x1a269f['get'](r[_0x37e900(0x1dd)]),{shapeId:_0x49a754,width:_0x40c242,height:_0x2316f8,left:_0x4ef886,top:_0x146357,flipX:_0xbfb7bf,flipY:_0x1b1b3f,angle:_0x2bb4a3,oldAdjustValues:_0xa37b00,newAdjustValues:_0x4a91ed,oldLineType:_0x2b32b5,newLineType:_0x13f5cf}=_0x57dd24,_0x894693=_0x3a3c27[_0x37e900(0x18e)]({'unitId':_0x146cca,'subUnitId':_0x2a97f2,'drawingId':_0x49a754});if(!_0x894693)return!0x1;let _0x2df867=_0x1a269f[_0x37e900(0x1a4)](p)['getShapeModel'](_0x146cca,_0x2a97f2,_0x49a754);if(!_0x2df867)return!0x1;let _0x34cfdc=_0x1a269f['get'](t[_0x37e900(0x1f9)]),_0x48b4e=_0x1a269f[_0x37e900(0x1a4)](t[_0x37e900(0x1b4)]),_0x18bf98=_0x1a269f[_0x37e900(0x1a4)](n['SheetInterceptorService']),_0x28e63c={..._0x894693[_0x37e900(0x22f)],'width':_0x40c242,'height':_0x2316f8,'left':_0x4ef886,'top':_0x146357,'flipX':_0xbfb7bf,'flipY':_0x1b1b3f,'angle':_0x2bb4a3},_0x4c28ee=(0x0,r[_0x37e900(0x24a)])(_0x28e63c,_0x26edb1),_0x5a5be4=(0x0,r['transformToAxisAlignPosition'])(_0x28e63c,_0x26edb1),_0x152b29=_0x2df867[_0x37e900(0x214)](),_0x1ce1b2=_0x2df867[_0x37e900(0x210)](),_0x1e6ab4={'unitId':_0x146cca,'subUnitId':_0x2a97f2,'drawingId':_0x49a754,'drawingType':t[_0x37e900(0x1c9)][_0x37e900(0x1f6)],'sheetTransform':_0x4c28ee,'transform':_0x28e63c,'data':{'shapeType':_0x13f5cf||_0x2b32b5||_0x152b29,'shapeData':{..._0x1ce1b2,'adjustValues':_0x4a91ed||_0xa37b00||(_0x1ce1b2==null?void 0x0:_0x1ce1b2[_0x37e900(0x1c0)])}},'axisAlignSheetTransform':_0x5a5be4,'allowTransform':!0x0},{undo:_0xd22086,redo:_0x5e9cba,objects:_0x41a748}=_0x3a3c27[_0x37e900(0x201)]([_0x1e6ab4]),_0x1f6d15=_0x18bf98['onCommandExecute']({'id':r[_0x37e900(0x1da)]['id'],'params':{'unitId':_0x146cca,'drawings':[_0x1e6ab4]}}),_0x398299=[...(_0x1b6f5=_0x1f6d15['preRedos'])==null?[]:_0x1b6f5,{'id':r[_0x37e900(0x1ee)]['id'],'params':{'unitId':_0x146cca,'subUnitId':_0x2a97f2,'op':_0x5e9cba,'objects':_0x41a748,'type':r[_0x37e900(0x1d6)]['UPDATE']}},{'id':r[_0x37e900(0x21c)]['id'],'params':[_0x146cca]},..._0x1f6d15[_0x37e900(0x1cd)],{'id':_['id'],'params':{'unitId':_0x146cca,'subUnitId':_0x2a97f2,'shapeId':_0x49a754,'shapeType':_0x13f5cf,'shapeData':{'adjustValues':_0x4a91ed}}}],_0x5d8701=[...(_0x158f85=_0x1f6d15[_0x37e900(0x218)])==null?[]:_0x158f85,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x146cca,'subUnitId':_0x2a97f2,'op':_0xd22086,'objects':_0x41a748,'type':r[_0x37e900(0x1d6)][_0x37e900(0x1a2)]}},{'id':r[_0x37e900(0x21c)]['id'],'params':[_0x146cca]},..._0x1f6d15[_0x37e900(0x1a0)],{'id':_['id'],'params':{'unitId':_0x146cca,'subUnitId':_0x2a97f2,'shapeId':_0x49a754,'shapeType':_0x152b29,'shapeData':{..._0x1ce1b2,'adjustValues':_0xa37b00||(_0x1ce1b2==null?void 0x0:_0x1ce1b2[_0x37e900(0x1c0)])}}}];return(0x0,t[_0x37e900(0x22b)])(_0x398299,_0x34cfdc)[_0x37e900(0x1f7)]?(_0x48b4e[_0x37e900(0x202)]({'unitID':_0x146cca,'undoMutations':_0x5d8701,'redoMutations':_0x398299}),!0x0):!0x1;}},w={'id':_0x5e750b(0x1f3),'type':t['CommandType']['MUTATION'],'handler':(_0x4dc1b3,_0x27ce56)=>{const _0x1b5657=_0x5e750b;let {unitId:_0x435008,subUnitId:_0x2e8b34,shapeType:_0x380ed4,shapeId:_0x5d03ca,shapeData:_0x4cd77b}=_0x27ce56,_0x4364b4=_0x4dc1b3[_0x1b5657(0x1a4)](p)['getShapeModel'](_0x435008,_0x2e8b34,_0x5d03ca);return _0x4364b4&&(_0x4364b4['setShapeType'](_0x380ed4),_0x4cd77b&&(_0x4364b4==null||_0x4364b4['setShapeData'](_0x4cd77b))),!0x0;}},T={'id':'sheet.command.update-shape-type','type':t[_0x5e750b(0x239)][_0x5e750b(0x251)],'handler':(_0x24145c,_0x398ef6)=>{const _0x49e99c=_0x5e750b;if(!_0x398ef6)return!0x1;let _0x489e60=_0x24145c[_0x49e99c(0x1a4)](t[_0x49e99c(0x1f9)]),_0x5df5bf=_0x24145c[_0x49e99c(0x1a4)](p),_0x49aca3=_0x24145c[_0x49e99c(0x1a4)](t[_0x49e99c(0x1b4)]),_0x23bedd=[],_0x3ae6f3=[],{unitId:_0x366462,subUnitId:_0x5f3824,shapeId:_0x40c4ba,shapeType:_0x175027,shapeData:_0x4840af}=_0x398ef6,_0x522566=_0x5df5bf['getShapeModel'](_0x366462,_0x5f3824,_0x40c4ba);if(_0x522566){let _0x2f82e8=_0x522566[_0x49e99c(0x214)](),_0x469f40=Object[_0x49e99c(0x1a1)]({},_0x522566['getShapeData']()),_0x1a9d2b={'unitId':_0x366462,'subUnitId':_0x5f3824,'shapeId':_0x40c4ba,'shapeType':_0x175027,'shapeData':_0x4840af},_0x34f2df={'unitId':_0x366462,'subUnitId':_0x5f3824,'shapeId':_0x40c4ba,'shapeType':_0x2f82e8,'shapeData':_0x469f40};return _0x23bedd['push']({'id':w['id'],'params':_0x1a9d2b}),_0x3ae6f3[_0x49e99c(0x224)]({'id':w['id'],'params':_0x34f2df}),_0x23bedd[_0x49e99c(0x1ef)](_0x2c903c=>_0x489e60['syncExecuteCommand'](_0x2c903c['id'],_0x2c903c['params']))&&_0x49aca3[_0x49e99c(0x202)]({'unitID':_0x366462,'redoMutations':[..._0x23bedd],'undoMutations':[..._0x3ae6f3]}),!0x0;}return!0x1;}};var E=_0x5e750b(0x1f4),D=_0x5e750b(0x1a7);const O=_0x5e750b(0x211);Symbol(O);function _0x1ff2(_0x3cd954,_0x4567b7){_0x3cd954=_0x3cd954-0x18c;const _0x465485=_0x4654();let _0x1ff2f9=_0x465485[_0x3cd954];return _0x1ff2f9;}const k={};let A=class extends t[_0x5e750b(0x19c)]{constructor(_0x1dae6d,_0x4b8115,_0x1db644,_0x1abf2d,_0x5c4f4b){const _0x4f33f9=_0x5e750b;super(),this[_0x4f33f9(0x1ed)]=_0x1dae6d,this['_sheetInterceptorService']=_0x4b8115,this['_sheetSkeletonService']=_0x1db644,this[_0x4f33f9(0x1b7)]=_0x1abf2d,this[_0x4f33f9(0x1e7)]=_0x5c4f4b,this[_0x4f33f9(0x212)](),this[_0x4f33f9(0x1fc)]();}['_initCommands'](){const _0x1ca5b1=_0x5e750b;[g,v,y,b,x,S,C,m,h,w,_][_0x1ca5b1(0x1f1)](_0x446c7d=>this[_0x1ca5b1(0x207)](this[_0x1ca5b1(0x1ed)]['registerCommand'](_0x446c7d)));}['_initCommandInterceptor'](){const _0x13c9ab=_0x5e750b;this[_0x13c9ab(0x207)](this[_0x13c9ab(0x206)][_0x13c9ab(0x232)]({'getMutations':_0xa97b13=>{const _0x1d8ba6=_0x13c9ab;if(_0xa97b13['id']===r[_0x1d8ba6(0x24c)]['id']){let {drawings:_0x5eba78}=_0xa97b13[_0x1d8ba6(0x1d7)],_0x11eaed=_0x5eba78[_0x1d8ba6(0x1cc)](_0x500778=>_0x500778[_0x1d8ba6(0x20e)]===t[_0x1d8ba6(0x1c9)]['DRAWING_SHAPE']);if(_0x11eaed[_0x1d8ba6(0x20a)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x626ee1=[],_0x1b7900=[];return _0x11eaed[_0x1d8ba6(0x1f1)](_0x3fe5dd=>{const _0x5e2aba=_0x1d8ba6;let {unitId:_0x196da0,subUnitId:_0x4fd27b,drawingId:_0x3ae65c}=_0x3fe5dd,_0x3bcb2d=this['_sheetsShapeService'][_0x5e2aba(0x20d)](_0x196da0,_0x4fd27b,_0x3ae65c);if(!_0x3bcb2d)throw TypeError(_0x5e2aba(0x227)+_0x3bcb2d);_0x626ee1[_0x5e2aba(0x224)]({'id':h['id'],'params':{'unitId':_0x196da0,'subUnitId':_0x4fd27b,'shapeId':_0x3ae65c}}),_0x1b7900[_0x5e2aba(0x224)]({'id':m['id'],'params':{'unitId':_0x196da0,'subUnitId':_0x4fd27b,'shapeId':_0x3ae65c,'shapeType':_0x3bcb2d[_0x5e2aba(0x214)](),'shapeData':_0x3bcb2d[_0x5e2aba(0x210)]()}});let _0x1e8929=this[_0x5e2aba(0x1b7)]['getBasicShapeRelation'](_0x196da0,_0x4fd27b,_0x3ae65c);if(_0x1e8929)for(let _0x1df9e6 of _0x1e8929){let _0x409f9c=_0x1df9e6[_0x5e2aba(0x1a9)],_0x47ee4e=_0x1df9e6['isFrom'],_0x59a8e3=_0x47ee4e?{'from':void 0x0}:{'to':void 0x0},_0x49ffd7=_0x47ee4e?{'from':{'shapeId':_0x1df9e6[_0x5e2aba(0x24b)],'cxnIndex':_0x1df9e6[_0x5e2aba(0x1c6)]}}:{'to':{'shapeId':_0x1df9e6[_0x5e2aba(0x24b)],'cxnIndex':_0x1df9e6[_0x5e2aba(0x1c6)]}};_0x626ee1[_0x5e2aba(0x224)]({'id':_['id'],'params':{'unitId':_0x196da0,'subUnitId':_0x4fd27b,'shapeId':_0x409f9c,'shapeData':{'relation':_0x59a8e3}}}),_0x1b7900[_0x5e2aba(0x224)]({'id':_['id'],'params':{'unitId':_0x196da0,'subUnitId':_0x4fd27b,'shapeId':_0x409f9c,'shapeData':{'relation':_0x49ffd7}}});}}),{'preRedos':_0x626ee1,'redos':[],'preUndos':[],'undos':_0x1b7900};}if(_0xa97b13['id']===r['SetSheetDrawingCommand']['id']){let {drawings:_0x38261d}=_0xa97b13[_0x1d8ba6(0x1d7)],_0x511215=_0x38261d[_0x1d8ba6(0x1cc)](_0x2f94e4=>_0x2f94e4['drawingType']===t[_0x1d8ba6(0x1c9)][_0x1d8ba6(0x1f6)]);if(_0x511215[_0x1d8ba6(0x20a)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x56f007=[],_0x616392=[];for(let _0x3c4373 of _0x511215){let {unitId:_0x3a358b,subUnitId:_0x28cc22,drawingId:_0x57d945,transform:_0x2a7e04}=_0x3c4373;if(!_0x3a358b||!_0x28cc22||!_0x57d945||!_0x2a7e04)continue;let _0x51480d=this[_0x1d8ba6(0x1b7)][_0x1d8ba6(0x20d)](_0x3a358b,_0x28cc22,_0x57d945);if(!_0x51480d)throw TypeError(_0x1d8ba6(0x227)+_0x51480d);if((0x0,e['isConnectorShape'])(_0x51480d['getShapeType']())){let _0x468485=this[_0x1d8ba6(0x1b7)][_0x1d8ba6(0x195)](_0x3a358b,_0x28cc22,_0x57d945);_0x468485&&(_0x56f007[_0x1d8ba6(0x224)]({'id':_['id'],'params':{'unitId':_0x3a358b,'subUnitId':_0x28cc22,'shapeId':_0x57d945,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x616392[_0x1d8ba6(0x224)]({'id':_['id'],'params':{'unitId':_0x3a358b,'subUnitId':_0x28cc22,'shapeId':_0x57d945,'shapeData':{'relation':_0x468485}}}));}else{let _0xf279b2=this[_0x1d8ba6(0x1b7)][_0x1d8ba6(0x1ff)](_0x3a358b,_0x28cc22,_0x57d945);if(_0xf279b2&&_0xf279b2[_0x1d8ba6(0x20a)]>0x0)for(let _0x4bde78 of _0xf279b2){let _0x5e7992=_0x4bde78[_0x1d8ba6(0x1a9)],_0x168859=_0x4bde78[_0x1d8ba6(0x1e5)],_0x59f0a1=this[_0x1d8ba6(0x1b7)][_0x1d8ba6(0x20d)](_0x3a358b,_0x28cc22,_0x5e7992);if(!_0x59f0a1)continue;let _0x48444a=_0x59f0a1[_0x1d8ba6(0x1d2)](),_0x1f79ce=_0x59f0a1['getEndConnectInfo']();_0x48444a&&_0x1f79ce?this['_addLineRerouteUpdates'](_0x3a358b,_0x28cc22,_0x5e7992,_0x59f0a1,_0x48444a,_0x1f79ce,_0x56f007,_0x616392,_0x57d945,_0x2a7e04):this['_addLineFollowShapeUpdates'](_0x3a358b,_0x28cc22,_0x5e7992,_0x59f0a1,_0x168859?_0x48444a:_0x1f79ce,_0x168859,_0x56f007,_0x616392,_0x57d945,_0x2a7e04);}}}return{'preRedos':[],'redos':_0x56f007,'preUndos':_0x616392,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5e750b(0x21d)](_0x51df4c,_0x194861,_0x2a59fb,_0x4695ab,_0x3a11c4){const _0x3e44aa=_0x5e750b;if(!_0x194861||!_0x2a59fb)return null;let {shapeId:_0x1a5819,cxnIndex:_0x4488fd}=_0x51df4c,_0xec35f2=this[_0x3e44aa(0x1b7)][_0x3e44aa(0x20d)](_0x194861,_0x2a59fb,_0x1a5819);if(!_0xec35f2)return null;let _0x350dd=this[_0x3e44aa(0x1e7)][_0x3e44aa(0x18e)]({'unitId':_0x194861,'subUnitId':_0x2a59fb,'drawingId':_0x1a5819});if(!(_0x350dd!=null&&_0x350dd[_0x3e44aa(0x22f)]))return null;let {left:_0xbd023e=0x0,top:_0x5dbd3c=0x0,width:_0x8a7d06=0x0,height:_0x72e8bd=0x0,flipX:_0x2ca2a7=!0x1,flipY:_0x103b1d=!0x1,angle:_0x5ec1ce}=_0x350dd[_0x3e44aa(0x22f)];if(_0x3a11c4&&_0x4695ab===_0x1a5819){var _0x157d50,_0x10e920,_0x3436e0,_0x292b64,_0x3bb8d4,_0x755cc2,_0x1348b7;_0xbd023e=(_0x157d50=_0x3a11c4[_0x3e44aa(0x1a5)])==null?_0xbd023e:_0x157d50,_0x5dbd3c=(_0x10e920=_0x3a11c4[_0x3e44aa(0x234)])==null?_0x5dbd3c:_0x10e920,_0x8a7d06=(_0x3436e0=_0x3a11c4[_0x3e44aa(0x24f)])==null?_0x8a7d06:_0x3436e0,_0x72e8bd=(_0x292b64=_0x3a11c4[_0x3e44aa(0x208)])==null?_0x72e8bd:_0x292b64,_0x2ca2a7=(_0x3bb8d4=_0x3a11c4['flipX'])==null?_0x2ca2a7:_0x3bb8d4,_0x103b1d=(_0x755cc2=_0x3a11c4[_0x3e44aa(0x1a8)])==null?_0x103b1d:_0x755cc2,_0x5ec1ce=(_0x1348b7=_0x3a11c4[_0x3e44aa(0x219)])==null?_0x5ec1ce:_0x1348b7;}_0xec35f2[_0x3e44aa(0x249)]({'width':_0x8a7d06,'height':_0x72e8bd});let _0x41db62=_0xec35f2[_0x3e44aa(0x1db)]()[_0x3e44aa(0x21b)](_0x29717b=>_0x29717b[_0x3e44aa(0x209)]===_0x4488fd);if(!_0x41db62)return null;let _0x230bc0=_0x2ca2a7?_0x8a7d06-_0x41db62['x']:_0x41db62['x'],_0x1f323b=_0x103b1d?_0x72e8bd-_0x41db62['y']:_0x41db62['y'];if(_0x5ec1ce!==0x0&&_0x5ec1ce!=null){let _0x104b8a=_0x5ec1ce*Math['PI']/0xb4,_0x327d1f=Math[_0x3e44aa(0x256)](_0x104b8a),_0x323ec7=Math[_0x3e44aa(0x1c7)](_0x104b8a),_0x5db66e=_0x8a7d06/0x2,_0x2acb1d=_0x72e8bd/0x2,_0x5e7c89=_0x230bc0-_0x5db66e,_0x12a162=_0x1f323b-_0x2acb1d;_0x230bc0=_0x5db66e+_0x5e7c89*_0x327d1f-_0x12a162*_0x323ec7,_0x1f323b=_0x2acb1d+_0x5e7c89*_0x323ec7+_0x12a162*_0x327d1f;}_0x230bc0+=_0xbd023e,_0x1f323b+=_0x5dbd3c;let _0x2c2bc2=_0x41db62[_0x3e44aa(0x220)]/0xea60;_0x2ca2a7&&(_0x2c2bc2=0xb4-_0x2c2bc2),_0x103b1d&&(_0x2c2bc2=-_0x2c2bc2),_0x2c2bc2+=_0x5ec1ce||0x0,_0x2c2bc2=(_0x2c2bc2%0x168+0x168)%0x168;let _0x317639=(0x0,e[_0x3e44aa(0x1b9)])({'left':_0xbd023e,'top':_0x5dbd3c,'width':_0x8a7d06,'height':_0x72e8bd},_0x5ec1ce||0x0);return{'point':{'x':_0x230bc0,'y':_0x1f323b},'angle':_0x2c2bc2,'bounds':_0x317639};}[_0x5e750b(0x1df)](_0x4f716e,_0x1067d6,_0x383abf,_0xa601ed,_0x39475c,_0x2d4e1a,_0x59314c,_0x12bbbe,_0x20f819,_0x7606c4){const _0x1f2063=_0x5e750b;let _0x2aff06=this[_0x1f2063(0x1ac)]['getSkeleton'](_0x4f716e,_0x1067d6);if(!_0x2aff06)return;let _0x4fa914=_0xa601ed[_0x1f2063(0x1aa)](),_0x15133b=_0xa601ed[_0x1f2063(0x198)](),_0x10943b={},_0x2220a2={};_0x15133b[_0x1f2063(0x1f1)](_0x456eb3=>{const _0x296171=_0x1f2063;let _0x1798ef=_0xa601ed[_0x296171(0x217)](_0x456eb3);_0x2220a2[_0x456eb3]=_0x1798ef==null?0x0:_0x1798ef;});let _0x30353a=this[_0x1f2063(0x21d)](_0x39475c,_0x4f716e,_0x1067d6,_0x20f819,_0x7606c4),_0x37ea00=this[_0x1f2063(0x21d)](_0x2d4e1a,_0x4f716e,_0x1067d6,_0x20f819,_0x7606c4);if(_0x30353a&&_0x37ea00){let _0xcb897d=_0xa601ed[_0x1f2063(0x214)](),_0x35a7f5=(0x0,e[_0x1f2063(0x190)])(_0x30353a,_0x37ea00,_0xcb897d),_0x1b6c6c=_0xcb897d;if(_0x35a7f5){let _0x3e2eb3=(0x0,e['computeConnectorRouteLayout'])(_0x35a7f5,_0xa601ed['getShapeType']()),_0x155900=this[_0x1f2063(0x1e7)][_0x1f2063(0x235)](_0x4f716e,_0x1067d6);if(_0x155900&&_0x155900[_0x383abf]){let _0x27f91c=_0x155900[_0x383abf];_0x1b6c6c=_0x3e2eb3[_0x1f2063(0x1fe)];for(let [_0x53b8e8,_0x373633]of Object[_0x1f2063(0x244)](_0x3e2eb3[_0x1f2063(0x1c0)]))_0x10943b[_0x53b8e8]=_0x373633;let _0x11e312={..._0x27f91c[_0x1f2063(0x22f)],'width':_0x3e2eb3[_0x1f2063(0x223)]['width'],'height':_0x3e2eb3[_0x1f2063(0x223)][_0x1f2063(0x208)],'left':_0x3e2eb3[_0x1f2063(0x223)][_0x1f2063(0x1a5)],'top':_0x3e2eb3[_0x1f2063(0x223)][_0x1f2063(0x234)],'flipX':_0x3e2eb3[_0x1f2063(0x223)][_0x1f2063(0x1c5)],'flipY':_0x3e2eb3['worldRect'][_0x1f2063(0x1a8)],'angle':_0x3e2eb3[_0x1f2063(0x1fb)]},_0x42bb82=(0x0,r[_0x1f2063(0x24a)])(_0x11e312,_0x2aff06),_0x8101ab=(0x0,r['transformToAxisAlignPosition'])(_0x11e312,_0x2aff06),_0x54516a={'unitId':_0x4f716e,'subUnitId':_0x1067d6,'drawingType':t[_0x1f2063(0x1c9)][_0x1f2063(0x1f6)],'drawingId':_0x383abf,'transform':_0x11e312,'sheetTransform':_0x42bb82,'axisAlignSheetTransform':_0x8101ab},{unitId:_0x10f77a,subUnitId:_0x56b5e3,undo:_0x280080,redo:_0x5790e6,objects:_0x4a24a7}=this[_0x1f2063(0x1e7)][_0x1f2063(0x201)]([_0x54516a]);_0x59314c[_0x1f2063(0x224)]({'id':r[_0x1f2063(0x1ee)]['id'],'params':{'unitId':_0x10f77a,'subUnitId':_0x56b5e3,'op':_0x5790e6,'objects':_0x4a24a7,'type':r[_0x1f2063(0x1d6)][_0x1f2063(0x1a2)]}}),_0x12bbbe[_0x1f2063(0x224)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x10f77a,'subUnitId':_0x56b5e3,'op':_0x280080,'objects':_0x4a24a7,'type':r['DrawingApplyType'][_0x1f2063(0x1a2)]}});}_0xa601ed[_0x1f2063(0x19f)]();}_0x59314c[_0x1f2063(0x224)]({'id':_['id'],'params':{'unitId':_0x4f716e,'subUnitId':_0x1067d6,'shapeId':_0x383abf,'shapeType':_0x1b6c6c,'shapeData':{'adjustValues':_0x10943b,'relation':_0x4fa914}}}),_0x12bbbe[_0x1f2063(0x224)]({'id':_['id'],'params':{'unitId':_0x4f716e,'subUnitId':_0x1067d6,'shapeId':_0x383abf,'shapeType':_0xcb897d,'shapeData':{'adjustValues':_0x2220a2,'relation':_0x4fa914}}});}}[_0x5e750b(0x1e8)](_0xbd6e23,_0x4edba6,_0x432d01,_0x3d7503,_0x462406,_0x59a08b,_0x5ccaed,_0x44ec4c,_0x4ec2c0,_0x555f28){const _0x419279=_0x5e750b;var _0x1bc1bd;if(!_0x462406)return;let _0x4ac9c5=this['_sheetSkeletonService'][_0x419279(0x19a)](_0xbd6e23,_0x4edba6);if(!_0x4ac9c5)return;let _0x1376ce=(_0x1bc1bd=this['_drawingManagerService'][_0x419279(0x18e)]({'unitId':_0xbd6e23,'subUnitId':_0x4edba6,'drawingId':_0x4ec2c0}))==null?void 0x0:_0x1bc1bd[_0x419279(0x22f)];if(!_0x1376ce)return;let _0x34aaa1=_0x1376ce[_0x419279(0x1a5)]!==_0x555f28[_0x419279(0x1a5)]||_0x1376ce[_0x419279(0x234)]!==_0x555f28['top'],_0x4a5094=_0x1376ce[_0x419279(0x24f)]!==_0x555f28[_0x419279(0x24f)]||_0x1376ce[_0x419279(0x208)]!==_0x555f28[_0x419279(0x208)],_0x7a501a=_0x1376ce['flipX']!==_0x555f28['flipX']||_0x1376ce[_0x419279(0x1a8)]!==_0x555f28[_0x419279(0x1a8)],_0x2e3b12=_0x1376ce['angle']!==_0x555f28['angle'];if(_0x34aaa1&&!_0x4a5094&&!_0x7a501a&&!_0x2e3b12){var _0x38734f,_0x1e6162,_0x139fbd,_0x52effd;let _0x1c2cde=((_0x38734f=_0x555f28[_0x419279(0x1a5)])==null?0x0:_0x38734f)-((_0x1e6162=_0x1376ce[_0x419279(0x1a5)])==null?0x0:_0x1e6162),_0x565ba5=((_0x139fbd=_0x555f28[_0x419279(0x234)])==null?0x0:_0x139fbd)-((_0x52effd=_0x1376ce[_0x419279(0x234)])==null?0x0:_0x52effd),_0x1e1906=this['_drawingManagerService'][_0x419279(0x235)](_0xbd6e23,_0x4edba6);if(_0x1e1906&&_0x1e1906[_0x432d01]){var _0x3458a0,_0x280118,_0x5efdfe,_0x7b97a0;let _0x2b8fe4=_0x1e1906[_0x432d01],_0x4c53a6={..._0x2b8fe4['transform'],'left':((_0x3458a0=(_0x280118=_0x2b8fe4[_0x419279(0x22f)])==null?void 0x0:_0x280118['left'])==null?0x0:_0x3458a0)+_0x1c2cde,'top':((_0x5efdfe=(_0x7b97a0=_0x2b8fe4[_0x419279(0x22f)])==null?void 0x0:_0x7b97a0[_0x419279(0x234)])==null?0x0:_0x5efdfe)+_0x565ba5},_0x30a9c8=(0x0,r[_0x419279(0x24a)])(_0x4c53a6,_0x4ac9c5),_0x3e0638=(0x0,r[_0x419279(0x1e4)])(_0x4c53a6,_0x4ac9c5),_0x177d37={'unitId':_0xbd6e23,'subUnitId':_0x4edba6,'drawingType':t['DrawingTypeEnum'][_0x419279(0x1f6)],'drawingId':_0x432d01,'transform':_0x4c53a6,'sheetTransform':_0x30a9c8,'axisAlignSheetTransform':_0x3e0638},{unitId:_0x462f62,subUnitId:_0x208652,undo:_0x554161,redo:_0x46ddc5,objects:_0x25f47f}=this[_0x419279(0x1e7)]['getBatchUpdateOp']([_0x177d37]);_0x5ccaed[_0x419279(0x224)]({'id':r[_0x419279(0x1ee)]['id'],'params':{'unitId':_0x462f62,'subUnitId':_0x208652,'op':_0x46ddc5,'objects':_0x25f47f,'type':r['DrawingApplyType'][_0x419279(0x1a2)]}}),_0x44ec4c[_0x419279(0x224)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x462f62,'subUnitId':_0x208652,'op':_0x554161,'objects':_0x25f47f,'type':r[_0x419279(0x1d6)][_0x419279(0x1a2)]}});}}else{let _0x365bb2=_0x3d7503[_0x419279(0x1d2)](),_0x1f46d2=_0x3d7503[_0x419279(0x231)]();this[_0x419279(0x1df)](_0xbd6e23,_0x4edba6,_0x432d01,_0x3d7503,_0x365bb2,_0x1f46d2,_0x5ccaed,_0x44ec4c,_0x4ec2c0,_0x555f28);}}};A=f([d(0x0,t[_0x5e750b(0x1f9)]),d(0x1,(0x0,t[_0x5e750b(0x255)])(n[_0x5e750b(0x1e3)])),d(0x2,(0x0,t['Inject'])(n[_0x5e750b(0x254)])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t[_0x5e750b(0x255)])(a[_0x5e750b(0x1ce)]))],A);let j=class extends t[_0x5e750b(0x1fa)]{constructor(_0x1348b3=k,_0x4165cc,_0x46c34f,_0x1259cf){const _0x2c694c=_0x5e750b;super(),this[_0x2c694c(0x20b)]=_0x1348b3,this[_0x2c694c(0x199)]=_0x4165cc,this[_0x2c694c(0x1ed)]=_0x46c34f,this['_configService']=_0x1259cf;let {..._0x24bc34}=(0x0,t[_0x2c694c(0x18c)])({},k,this[_0x2c694c(0x20b)]);this[_0x2c694c(0x1af)]['setConfig'](O,_0x24bc34);}[_0x5e750b(0x194)](){const _0x1780f5=_0x5e750b;let _0xf8ea09=this['_injector'];[[u],[p],[A]][_0x1780f5(0x1f1)](_0x2e4c44=>_0xf8ea09['add'](_0x2e4c44)),(0x0,t[_0x1780f5(0x250)])(_0xf8ea09,[[p],[A]]);}};l(j,'type',t[_0x5e750b(0x1de)][_0x5e750b(0x1c2)]),l(j,_0x5e750b(0x23c),_0x5e750b(0x1ab)),l(j,_0x5e750b(0x245),E),l(j,_0x5e750b(0x1ba),D),j=f([(0x0,t[_0x5e750b(0x1ad)])(i[_0x5e750b(0x196)]),d(0x1,(0x0,t[_0x5e750b(0x255)])(t[_0x5e750b(0x19e)])),d(0x2,t[_0x5e750b(0x1f9)]),d(0x3,t[_0x5e750b(0x1d8)])],j),exports[_0x5e750b(0x1f5)]=0xc8,exports[_0x5e750b(0x228)]=0xc8,exports[_0x5e750b(0x252)]=g,exports[_0x5e750b(0x19b)]=m,exports['RemoveSheetsShapeMutation']=h,exports[_0x5e750b(0x21a)]=v,exports['SetSheetsShapeRotateCommand']=b,exports[_0x5e750b(0x222)]=x,Object[_0x5e750b(0x23d)](exports,_0x5e750b(0x1d5),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x5e750b(0x1c1)]=y,Object['defineProperty'](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return j;}}),exports['UpdateConnectorRelationCommand']=S,exports['UpdateLineShapeResizeCommand']=C,exports[_0x5e750b(0x203)]=_,exports['UpdateSheetsShapeTypeCommand']=T,exports[_0x5e750b(0x24e)]=w;
1
+ const _0x515c59=_0x2d33;(function(_0x57858f,_0x58017a){const _0x3c9f13=_0x2d33,_0x5b2bfc=_0x57858f();while(!![]){try{const _0x5f00f1=parseInt(_0x3c9f13(0x12f))/0x1*(parseInt(_0x3c9f13(0xf9))/0x2)+parseInt(_0x3c9f13(0xcc))/0x3+-parseInt(_0x3c9f13(0x10d))/0x4+parseInt(_0x3c9f13(0x13e))/0x5*(-parseInt(_0x3c9f13(0x9f))/0x6)+-parseInt(_0x3c9f13(0x90))/0x7+parseInt(_0x3c9f13(0x12e))/0x8+parseInt(_0x3c9f13(0x103))/0x9*(parseInt(_0x3c9f13(0xf4))/0xa);if(_0x5f00f1===_0x58017a)break;else _0x5b2bfc['push'](_0x5b2bfc['shift']());}catch(_0x23f0a1){_0x5b2bfc['push'](_0x5b2bfc['shift']());}}}(_0x349b,0x8a121),Object[_0x515c59(0x100)](exports,Symbol[_0x515c59(0xbb)],{'value':_0x515c59(0xe8)}));let e=require(`@univerjs-pro/engine-shape`),t=require(`@univerjs/core`),n=require(`@univerjs/sheets`),r=require(`@univerjs/sheets-drawing`),i=require(`@univerjs-pro/license`),a=require(`@univerjs/drawing`);function o(_0x29fe28){'@babel/helpers - typeof';const _0x29c148=_0x515c59;return o=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x29c148(0x11d)?function(_0x462d5f){return typeof _0x462d5f;}:function(_0x449bf8){const _0x4e2eee=_0x29c148;return _0x449bf8&&typeof Symbol=='function'&&_0x449bf8['constructor']===Symbol&&_0x449bf8!==Symbol[_0x4e2eee(0x109)]?'symbol':typeof _0x449bf8;},o(_0x29fe28);}function s(_0x17f510,_0x29967d){const _0x142d7d=_0x515c59;if(o(_0x17f510)!='object'||!_0x17f510)return _0x17f510;var _0x16cb8d=_0x17f510[Symbol[_0x142d7d(0x9c)]];if(_0x16cb8d!==void 0x0){var _0x4fa97c=_0x16cb8d[_0x142d7d(0xba)](_0x17f510,_0x29967d||'default');if(o(_0x4fa97c)!=_0x142d7d(0x82))return _0x4fa97c;throw TypeError(_0x142d7d(0x110));}return(_0x29967d===_0x142d7d(0xdb)?String:Number)(_0x17f510);}function c(_0x12bb95){const _0xfa81d9=_0x515c59;var _0xc1dd2f=s(_0x12bb95,_0xfa81d9(0xdb));return o(_0xc1dd2f)==_0xfa81d9(0x11d)?_0xc1dd2f:_0xc1dd2f+'';}function l(_0x24b99c,_0x1e8b01,_0x4729c){return(_0x1e8b01=c(_0x1e8b01))in _0x24b99c?Object['defineProperty'](_0x24b99c,_0x1e8b01,{'value':_0x4729c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24b99c[_0x1e8b01]=_0x4729c,_0x24b99c;}var u=class extends t[_0x515c59(0x7a)]{constructor(){const _0x5d6a8e=_0x515c59;super(),l(this,'_shapes',new Map()),l(this,_0x5d6a8e(0x12b),new Set()),l(this,_0x5d6a8e(0x96),new Set());}['addShape'](_0x569a74,_0x141923,_0x549b34){const _0x40e32e=_0x515c59;let _0x419291=new e[(_0x40e32e(0x95))](_0x569a74,_0x141923,_0x549b34);return this['_shapes']['set'](_0x141923,_0x419291),(0x0,e[_0x40e32e(0x88)])(_0x569a74)&&this[_0x40e32e(0x12b)][_0x40e32e(0x138)](_0x141923),_0x419291;}[_0x515c59(0xca)](_0x1d160a){const _0x1bf6e1=_0x515c59;let _0x15e48e=[];for(let _0x43e41f of this[_0x1bf6e1(0x12b)]){let _0x29f35c=this[_0x1bf6e1(0x12c)][_0x1bf6e1(0x91)](_0x43e41f);if(_0x29f35c){let _0x31c0d9=_0x29f35c['getShapeRelation']();if(_0x31c0d9){var _0x542f7c,_0x21bbdf;((_0x542f7c=_0x31c0d9[_0x1bf6e1(0xd4)])==null?void 0x0:_0x542f7c[_0x1bf6e1(0xf6)])===_0x1d160a&&_0x15e48e['push']({..._0x31c0d9[_0x1bf6e1(0xd4)],'lineShapeId':_0x43e41f,'isFrom':!0x0}),((_0x21bbdf=_0x31c0d9['to'])==null?void 0x0:_0x21bbdf['shapeId'])===_0x1d160a&&_0x15e48e[_0x1bf6e1(0x124)]({..._0x31c0d9['to'],'lineShapeId':_0x43e41f,'isFrom':!0x1});}}}return _0x15e48e;}[_0x515c59(0x12a)](_0x2a28b0){const _0x977a39=_0x515c59;let _0x402b0e=this[_0x977a39(0x12c)]['get'](_0x2a28b0);if(_0x402b0e)return _0x402b0e['getShapeRelation']();}['getShapeType'](_0x48f36f){const _0x591531=_0x515c59;let _0x50444c=this[_0x591531(0x12c)][_0x591531(0x91)](_0x48f36f);if(_0x50444c)return _0x50444c[_0x591531(0xb5)]();}[_0x515c59(0xf3)](_0x1c8718){const _0x13e2e2=_0x515c59;return this['_shapes'][_0x13e2e2(0xd1)](_0x1c8718);}[_0x515c59(0xa3)](_0x3992f3){const _0x8b8ecb=_0x515c59;let _0x1391f3=this[_0x8b8ecb(0x12c)][_0x8b8ecb(0x91)](_0x3992f3);_0x1391f3&&((0x0,e['isConnectorShape'])(_0x1391f3[_0x8b8ecb(0xb5)]())&&this[_0x8b8ecb(0x12b)][_0x8b8ecb(0xe1)](_0x3992f3),this[_0x8b8ecb(0x12c)][_0x8b8ecb(0xe1)](_0x3992f3));}[_0x515c59(0xf1)](){const _0x3f80e9=_0x515c59;let _0x3ecc0c=[];return this[_0x3f80e9(0x12c)][_0x3f80e9(0x11b)](_0x431d81=>{const _0x318739=_0x3f80e9;_0x3ecc0c[_0x318739(0x124)](_0x431d81[_0x318739(0xf1)]());}),_0x3ecc0c;}[_0x515c59(0x132)](_0xcb1acb){const _0x23cbe1=_0x515c59;for(let _0x2204ac of _0xcb1acb){let {id:_0x5e1add,shapeType:_0x3c570a}=_0x2204ac,_0x128fac=this[_0x23cbe1(0x87)](_0x3c570a,_0x5e1add,_0x2204ac[_0x23cbe1(0xfd)]);_0x128fac&&_0x128fac['isLineShape']()&&this[_0x23cbe1(0x12b)][_0x23cbe1(0x138)](_0x5e1add);}}['dispose'](){const _0x17c385=_0x515c59;this[_0x17c385(0x120)]||(this['_shapes'][_0x17c385(0x11b)](_0x41b889=>{const _0x496401=_0x17c385;_0x41b889[_0x496401(0xa0)]();}),this[_0x17c385(0x12c)]['clear'](),this[_0x17c385(0x12b)][_0x17c385(0x10c)](),this['_groupIds'][_0x17c385(0x10c)](),super[_0x17c385(0xa0)]());}};function d(_0x4e2f52,_0xdda850){return function(_0x45c0dc,_0x4071a7){_0xdda850(_0x45c0dc,_0x4071a7,_0x4e2f52);};}function f(_0x258e35,_0x45948b,_0xefbb38,_0x29848e){const _0x27e4fd=_0x515c59;var _0x1fc46a=arguments[_0x27e4fd(0xaa)],_0x2b7203=_0x1fc46a<0x3?_0x45948b:_0x29848e===null?_0x29848e=Object['getOwnPropertyDescriptor'](_0x45948b,_0xefbb38):_0x29848e,_0x3943d7;if(typeof Reflect==_0x27e4fd(0x82)&&typeof Reflect['decorate']==_0x27e4fd(0xa8))_0x2b7203=Reflect[_0x27e4fd(0xa4)](_0x258e35,_0x45948b,_0xefbb38,_0x29848e);else{for(var _0x51db5b=_0x258e35['length']-0x1;_0x51db5b>=0x0;_0x51db5b--)(_0x3943d7=_0x258e35[_0x51db5b])&&(_0x2b7203=(_0x1fc46a<0x3?_0x3943d7(_0x2b7203):_0x1fc46a>0x3?_0x3943d7(_0x45948b,_0xefbb38,_0x2b7203):_0x3943d7(_0x45948b,_0xefbb38))||_0x2b7203);}return _0x1fc46a>0x3&&_0x2b7203&&Object[_0x27e4fd(0x100)](_0x45948b,_0xefbb38,_0x2b7203),_0x2b7203;}let p=class extends t[_0x515c59(0x7a)]{constructor(_0x143885){const _0xb302e4=_0x515c59;super(),this[_0xb302e4(0x8d)]=_0x143885,l(this,_0xb302e4(0x114),new Map()),this[_0xb302e4(0x10a)]();}[_0x515c59(0xe2)](_0x587297,_0x33d6c0){const _0x546c3d=_0x515c59;let _0x3262b0=this[_0x546c3d(0x114)][_0x546c3d(0x91)](_0x587297);_0x3262b0||(_0x3262b0=new Map(),this[_0x546c3d(0x114)][_0x546c3d(0xfe)](_0x587297,_0x3262b0));let _0x4a77b3=_0x3262b0['get'](_0x33d6c0);return _0x4a77b3||(_0x4a77b3=new u(),_0x3262b0['set'](_0x33d6c0,_0x4a77b3)),_0x4a77b3;}[_0x515c59(0x7e)](_0x3c5d50,_0xe4d413,_0xd3fd8c,_0x3dfedd,_0x1d2902){const _0x1c7eb7=_0x515c59;this[_0x1c7eb7(0xe2)](_0x3c5d50,_0xe4d413)[_0x1c7eb7(0x87)](_0xd3fd8c,_0x3dfedd,_0x1d2902);}[_0x515c59(0xa3)](_0x2d0b8e,_0x1db7e2,_0x4addd3){const _0x27d303=_0x515c59;this[_0x27d303(0xe2)](_0x2d0b8e,_0x1db7e2)['removeShape'](_0x4addd3);}[_0x515c59(0x13d)](_0x12a9f9,_0x213dd4,_0x134dcc){const _0x4b7237=_0x515c59;return this[_0x4b7237(0xe2)](_0x12a9f9,_0x213dd4)[_0x4b7237(0xb5)](_0x134dcc);}[_0x515c59(0xb5)](_0x5ec691,_0x47867c,_0x558ee9){const _0x1b46b3=_0x515c59;return this[_0x1b46b3(0xe2)](_0x5ec691,_0x47867c)[_0x1b46b3(0xb5)](_0x558ee9);}['hasShape'](_0x3851ca,_0x5c9cf2,_0x3a8bda){const _0x225ad4=_0x515c59;return this[_0x225ad4(0xe2)](_0x3851ca,_0x5c9cf2)['hasShape'](_0x3a8bda);}[_0x515c59(0xbd)](_0x1780c9,_0x776433,_0x4855dd){const _0x39363a=_0x515c59;return this[_0x39363a(0xe2)](_0x1780c9,_0x776433)[_0x39363a(0xb5)](_0x4855dd);}[_0x515c59(0xa1)](_0x7a7786,_0x1c4cdc,_0x1c5fe2){const _0x59b9ad=_0x515c59;let _0x5bc3e4=this[_0x59b9ad(0xe2)](_0x7a7786,_0x1c4cdc);if(!_0x5bc3e4[_0x59b9ad(0xb5)](_0x1c5fe2))return;let _0x475b73=_0x5bc3e4[_0x59b9ad(0x12c)][_0x59b9ad(0x91)](_0x1c5fe2);if(_0x475b73)return _0x475b73[_0x59b9ad(0x135)]();}[_0x515c59(0xd8)](_0x70f25c,_0x296986,_0x1a9317){const _0x3af624=_0x515c59;return this[_0x3af624(0xe2)](_0x70f25c,_0x296986)[_0x3af624(0x12c)][_0x3af624(0x91)](_0x1a9317);}[_0x515c59(0xca)](_0x305c7c,_0x4c7084,_0x5248fe){const _0x76f706=_0x515c59;return this[_0x76f706(0xe2)](_0x305c7c,_0x4c7084)[_0x76f706(0xca)](_0x5248fe);}['getLineShapeRelation'](_0x194b09,_0x772948,_0x4360e6){const _0x548d34=_0x515c59;let _0x437d19=this[_0x548d34(0xe2)](_0x194b09,_0x772948)[_0x548d34(0x12c)][_0x548d34(0x91)](_0x4360e6);if(_0x437d19)return _0x437d19[_0x548d34(0xec)]();}[_0x515c59(0x134)](){}[_0x515c59(0xbe)](_0x2be795){const _0x530f48=_0x515c59;let _0x5ef699={},_0x5c500e=this[_0x530f48(0x114)]['get'](_0x2be795);return _0x5c500e&&_0x5c500e[_0x530f48(0x11b)]((_0x5d7f7c,_0x1b12ed)=>{let _0x3378fc=_0x5d7f7c['toJSON']();_0x3378fc['length']>0x0&&(_0x5ef699[_0x1b12ed]=_0x3378fc);}),JSON['stringify'](_0x5ef699);}[_0x515c59(0xff)](_0x4a541d,_0x33a048){const _0x515115=_0x515c59;Object[_0x515115(0xea)](_0x33a048)[_0x515115(0x11b)](_0x1314a3=>{const _0x5138d1=_0x515115;this[_0x5138d1(0xe2)](_0x4a541d,_0x1314a3)[_0x5138d1(0x132)](_0x33a048[_0x1314a3]);});}[_0x515c59(0xf1)](){let _0x3b1960={};return this['_shapeModelManagerMap']['forEach']((_0x4e46a0,_0x216e14)=>{const _0x51b0ae=_0x2d33;_0x3b1960[_0x216e14]={},_0x4e46a0[_0x51b0ae(0x11b)]((_0x41b359,_0x5ea719)=>{const _0x3bd79e=_0x51b0ae;_0x3b1960[_0x216e14][_0x5ea719]=_0x41b359[_0x3bd79e(0xf1)]();});}),_0x3b1960;}[_0x515c59(0x132)](_0x51c609){const _0x3585ce=_0x515c59;Object[_0x3585ce(0xea)](_0x51c609)[_0x3585ce(0x11b)](_0x298881=>{const _0x12164c=_0x3585ce;let _0x521400=_0x51c609[_0x298881];Object[_0x12164c(0xea)](_0x521400)[_0x12164c(0x11b)](_0x4c0a62=>{const _0x41d85c=_0x12164c;this[_0x41d85c(0xe2)](_0x298881,_0x4c0a62)[_0x41d85c(0x132)](_0x521400[_0x4c0a62]);});});}[_0x515c59(0x10a)](){const _0x2ccf6c=_0x515c59;this[_0x2ccf6c(0x8d)]['registerPluginResource']({'pluginName':_0x2ccf6c(0x121),'businesses':[t['UniverInstanceType'][_0x2ccf6c(0x122)]],'toJson':_0x567228=>this[_0x2ccf6c(0xbe)](_0x567228),'parseJson':_0x54f115=>JSON['parse'](_0x54f115),'onLoad':(_0x30b8e8,_0xcdfac1)=>{this['_deserializeShapeForUnit'](_0x30b8e8,_0xcdfac1);},'onUnLoad':_0x2abf62=>{const _0x3b4335=_0x2ccf6c;let _0x16fbb2=this[_0x3b4335(0x114)][_0x3b4335(0x91)](_0x2abf62);_0x16fbb2&&(_0x16fbb2['forEach'](_0x29d1ab=>{const _0x2de363=_0x3b4335;_0x29d1ab[_0x2de363(0xa0)]();}),this[_0x3b4335(0x114)][_0x3b4335(0xe1)](_0x2abf62));}});}[_0x515c59(0xa0)](){const _0x160abf=_0x515c59;this[_0x160abf(0x114)]['forEach'](_0x410a5b=>{const _0x4dee01=_0x160abf;_0x410a5b[_0x4dee01(0x11b)](_0x5b5fff=>{_0x5b5fff['dispose']();});});}};p=f([d(0x0,t['IResourceManagerService'])],p);const m={'id':_0x515c59(0xce),'type':t[_0x515c59(0x9a)][_0x515c59(0xfa)],'handler':(_0x125c16,_0x4d74ee)=>{const _0x45a420=_0x515c59;let {unitId:_0x22d1cf,subUnitId:_0xc2141b,shapeType:_0x2d9ccd,shapeId:_0x543346,shapeData:_0x570f45}=_0x4d74ee;return _0x125c16[_0x45a420(0x91)](p)[_0x45a420(0x7e)](_0x22d1cf,_0xc2141b,_0x2d9ccd,_0x543346,_0x570f45),!0x0;}},h={'id':_0x515c59(0xeb),'type':t['CommandType'][_0x515c59(0xfa)],'handler':(_0x123279,_0xb1a418)=>{const _0x1d8941=_0x515c59;let {unitId:_0x2d6c4e,subUnitId:_0x45dcb7,shapeId:_0x50728f}=_0xb1a418;return _0x123279[_0x1d8941(0x91)](p)[_0x1d8941(0xa3)](_0x2d6c4e,_0x45dcb7,_0x50728f),!0x0;}},g={'type':t[_0x515c59(0x9a)][_0x515c59(0x11c)],'id':_0x515c59(0x126),'handler':(_0x4e03fa,_0x1b9239)=>{const _0x11ef63=_0x515c59;var _0x5af76d,_0x37c3ac;let _0x4b7597=(0x0,n[_0x11ef63(0xe5)])(_0x4e03fa[_0x11ef63(0x91)](t[_0x11ef63(0xc5)]),_0x1b9239);if(!_0x4b7597)return!0x1;let _0x39a11f=_0x4e03fa[_0x11ef63(0x91)](n[_0x11ef63(0x8b)]),{unitId:_0x27697e,subUnitId:_0x1d5329}=_0x4b7597,_0x4f0e4e=_0x39a11f[_0x11ef63(0x9b)](_0x27697e,_0x1d5329);if(!_0x4f0e4e)return!0x1;let _0x1a8acc=_0x4e03fa[_0x11ef63(0x91)](t[_0x11ef63(0x12d)]),_0x53f2d8=_0x4e03fa[_0x11ef63(0x91)](t[_0x11ef63(0xa2)]),_0x13fa42=_0x4e03fa['get'](n[_0x11ef63(0xf5)]),_0x178f6f=_0x4e03fa[_0x11ef63(0x91)](r['ISheetDrawingService']),{shapeType:_0x1f6d85,shapeData:_0x11799f}=_0x1b9239,_0xe4be04=_0x1b9239[_0x11ef63(0xf6)]||(0x0,t['generateRandomId'])(),_0x3689a3={'unitId':_0x27697e,'subUnitId':_0x1d5329,'shapeId':_0xe4be04,'shapeType':_0x1f6d85,'shapeData':_0x11799f},_0x53f236=_0x1b9239[_0x11ef63(0xd6)]||0xc8,_0x1d7841=_0x1b9239[_0x11ef63(0x86)]||0xc8,_0x155d75=0x0,_0x3df531=0x0,_0x2bce88={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x648b99={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x1b9239['position']){let {x:_0x23e666,y:_0x2aa722}=_0x1b9239[_0x11ef63(0x112)];_0x155d75=_0x23e666,_0x3df531=_0x2aa722,_0x2bce88=_0x4f0e4e[_0x11ef63(0xbc)](_0x23e666,_0x2aa722),_0x648b99=_0x4f0e4e[_0x11ef63(0xbc)](_0x23e666+_0x53f236,_0x2aa722+_0x1d7841);}else{if(_0x1b9239[_0x11ef63(0x11a)]){let {startRow:_0xb5b14a,startColumn:_0x49bdc0}=_0x1b9239[_0x11ef63(0x11a)];_0x2bce88={'row':_0xb5b14a,'rowOffset':0xa,'column':_0x49bdc0,'columnOffset':0xa};let _0x32e289=_0x4f0e4e['getCellWithCoordByIndex'](_0xb5b14a,_0x49bdc0);_0x155d75=_0x32e289[_0x11ef63(0xf7)]+0xa,_0x3df531=_0x32e289[_0x11ef63(0xab)]+0xa,_0x648b99=_0x4f0e4e[_0x11ef63(0xbc)](_0x155d75+_0x53f236,_0x3df531+_0x1d7841);}}let _0x2750fa={'from':_0x2bce88,'to':_0x648b99},_0x5e1d8a={'unitId':_0x27697e,'subUnitId':_0x1d5329,'drawingId':_0xe4be04,'drawingType':t[_0x11ef63(0xd9)][_0x11ef63(0x128)],'sheetTransform':_0x2750fa,'transform':{'left':_0x155d75,'top':_0x3df531,'width':_0x53f236,'height':_0x1d7841},'data':{'shapeType':_0x1f6d85,'shapeData':_0x11799f},'axisAlignSheetTransform':_0x2750fa,'allowTransform':!0x0};(0x0,e[_0x11ef63(0x88)])(_0x1f6d85)&&(_0x5e1d8a[_0x11ef63(0x9d)][_0x11ef63(0x137)]=!0x1,_0x5e1d8a[_0x11ef63(0x9d)][_0x11ef63(0xd2)]=!0x1,_0x5e1d8a[_0x11ef63(0x9d)][_0x11ef63(0x142)]=!0x1,_0x5e1d8a[_0x11ef63(0x9d)][_0x11ef63(0x92)]=!0x1,_0x5e1d8a[_0x11ef63(0x8e)][_0x11ef63(0xd2)]=!0x1,_0x5e1d8a['transform'][_0x11ef63(0x142)]=!0x1,_0x5e1d8a[_0x11ef63(0x8e)][_0x11ef63(0x92)]=!0x1);let {undo:_0xae3018,redo:_0x5b83f2,objects:_0x124969}=_0x178f6f[_0x11ef63(0x13c)]([_0x5e1d8a]),_0x255427=_0x13fa42['onCommandExecute']({'id':r[_0x11ef63(0x105)]['id'],'params':{'unitId':_0x27697e,'drawings':[_0x5e1d8a]}}),_0x752a54=[...(_0x5af76d=_0x255427[_0x11ef63(0xcd)])==null?[]:_0x5af76d,{'id':r[_0x11ef63(0x125)]['id'],'params':{'unitId':_0x27697e,'subUnitId':_0x1d5329,'op':_0x5b83f2,'objects':_0x124969,'type':r[_0x11ef63(0x99)][_0x11ef63(0xcf)]}},{'id':r[_0x11ef63(0xac)]['id'],'params':[_0x27697e]},..._0x255427['redos'],{'id':m['id'],'params':_0x3689a3}],_0x4855e8=[{'id':h['id'],'params':{'unitId':_0x27697e,'subUnitId':_0x1d5329,'shapeId':_0xe4be04}},...(_0x37c3ac=_0x255427['preUndos'])==null?[]:_0x37c3ac,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x27697e,'subUnitId':_0x1d5329,'op':_0xae3018,'objects':_0x124969,'type':r[_0x11ef63(0x99)]['REMOVE']}},{'id':r[_0x11ef63(0xac)]['id'],'params':[_0x27697e]},..._0x255427[_0x11ef63(0xdf)]];return(0x0,t['sequenceExecute'])(_0x752a54,_0x1a8acc)[_0x11ef63(0xb8)]?(_0x53f2d8[_0x11ef63(0xb6)]({'unitID':_0x27697e,'undoMutations':_0x4855e8,'redoMutations':_0x752a54}),!0x0):!0x1;}},_={'id':_0x515c59(0x85),'type':t[_0x515c59(0x9a)][_0x515c59(0xfa)],'handler':(_0x22d635,_0x206516)=>{const _0x96933b=_0x515c59;let {unitId:_0x54a5dc,subUnitId:_0xf38616,shapeType:_0x509a77,shapeId:_0x12fffe,shapeData:_0x225443}=_0x206516,_0x5f18b9=_0x22d635['get'](p)[_0x96933b(0xd8)](_0x54a5dc,_0xf38616,_0x12fffe);return _0x5f18b9&&(_0x509a77!==void 0x0&&_0x5f18b9[_0x96933b(0x134)](_0x509a77),_0x225443&&(_0x5f18b9==null||_0x5f18b9[_0x96933b(0x11f)](_0x225443,!0x0))),!0x0;}},v={'type':t[_0x515c59(0x9a)]['COMMAND'],'id':_0x515c59(0xb2),'handler':(_0x500e9f,_0x438e77)=>{const _0x5627d5=_0x515c59;var _0x1f4c5e,_0xc56ee1;let _0x355795=(0x0,n['getSheetCommandTarget'])(_0x500e9f[_0x5627d5(0x91)](t[_0x5627d5(0xc5)]),_0x438e77);if(!_0x355795)return!0x1;let _0xcf0bed=_0x500e9f[_0x5627d5(0x91)](n[_0x5627d5(0x8b)]),{unitId:_0xf2e476,subUnitId:_0x5162cf}=_0x355795,_0x4046c4=_0xcf0bed[_0x5627d5(0x9b)](_0xf2e476,_0x5162cf);if(!_0x4046c4)return!0x1;let _0x19f829=_0x500e9f[_0x5627d5(0x91)](p),{shapeId:_0x4c164a,shapeType:_0x502c35,shapeData:_0x3f44e5,position:_0x275a9d,width:_0x37d8c9,height:_0x841bed}=_0x438e77,_0x2af996=_0x19f829[_0x5627d5(0xd8)](_0xf2e476,_0x5162cf,_0x4c164a);if(!_0x2af996)return!0x1;let _0x180647=_0x500e9f['get'](t[_0x5627d5(0x12d)]),_0x1d15b3=_0x500e9f[_0x5627d5(0x91)](t['IUndoRedoService']),_0x771e77=_0x500e9f[_0x5627d5(0x91)](n[_0x5627d5(0xf5)]),_0x56d18e=_0x500e9f[_0x5627d5(0x91)](r[_0x5627d5(0x141)]),_0x24b0ef={'unitId':_0xf2e476,'subUnitId':_0x5162cf,'shapeId':_0x4c164a,'shapeType':_0x502c35,'shapeData':_0x3f44e5},_0x51c5bc=_0x2af996[_0x5627d5(0xb5)](),_0x514c83=_0x2af996[_0x5627d5(0x135)](),{x:_0x10fd71,y:_0x3f214c}=_0x275a9d,_0x298798={'from':_0x4046c4[_0x5627d5(0xbc)](_0x10fd71,_0x3f214c),'to':_0x4046c4[_0x5627d5(0xbc)](_0x10fd71+_0x37d8c9,_0x3f214c+_0x841bed)},_0x22c1c0={'unitId':_0xf2e476,'subUnitId':_0x5162cf,'drawingId':_0x4c164a,'drawingType':t[_0x5627d5(0xd9)]['DRAWING_SHAPE'],'sheetTransform':_0x298798,'transform':{'left':_0x10fd71,'top':_0x3f214c,'width':_0x37d8c9,'height':_0x841bed},'data':{'shapeType':_0x502c35,'shapeData':_0x3f44e5},'axisAlignSheetTransform':_0x298798,'allowTransform':!0x0};(0x0,e[_0x5627d5(0x88)])(_0x502c35)&&(_0x22c1c0[_0x5627d5(0x9d)][_0x5627d5(0x137)]=!0x1,_0x22c1c0[_0x5627d5(0x9d)]['rotateEnabled']=!0x1,_0x22c1c0[_0x5627d5(0x9d)][_0x5627d5(0x142)]=!0x1,_0x22c1c0[_0x5627d5(0x9d)][_0x5627d5(0x92)]=!0x1,_0x22c1c0[_0x5627d5(0x8e)][_0x5627d5(0xd2)]=!0x1,_0x22c1c0[_0x5627d5(0x8e)][_0x5627d5(0x142)]=!0x1,_0x22c1c0[_0x5627d5(0x8e)]['borderEnabled']=!0x1);let {undo:_0x222961,redo:_0x42c216,objects:_0x32bf1a}=_0x56d18e[_0x5627d5(0xaf)]([_0x22c1c0]),_0x272cd3=_0x771e77[_0x5627d5(0x81)]({'id':r[_0x5627d5(0xad)]['id'],'params':{'unitId':_0xf2e476,'drawings':[_0x22c1c0]}}),_0x4c5c5c=[...(_0x1f4c5e=_0x272cd3['preRedos'])==null?[]:_0x1f4c5e,{'id':r[_0x5627d5(0x125)]['id'],'params':{'unitId':_0xf2e476,'subUnitId':_0x5162cf,'op':_0x42c216,'objects':_0x32bf1a,'type':r['DrawingApplyType'][_0x5627d5(0xc1)]}},{'id':r[_0x5627d5(0xac)]['id'],'params':[_0xf2e476]},..._0x272cd3[_0x5627d5(0xc3)],{'id':_['id'],'params':_0x24b0ef}],_0x3716e2=[...(_0xc56ee1=_0x272cd3[_0x5627d5(0x123)])==null?[]:_0xc56ee1,{'id':r[_0x5627d5(0x125)]['id'],'params':{'unitId':_0xf2e476,'subUnitId':_0x5162cf,'op':_0x222961,'objects':_0x32bf1a,'type':r[_0x5627d5(0x99)][_0x5627d5(0xc1)]}},{'id':r[_0x5627d5(0xac)]['id'],'params':[_0xf2e476]},..._0x272cd3[_0x5627d5(0xdf)],{'id':_['id'],'params':{'unitId':_0xf2e476,'subUnitId':_0x5162cf,'shapeType':_0x51c5bc,'shapeId':_0x4c164a,'shapeData':_0x514c83}}];return(0x0,t[_0x5627d5(0x79)])(_0x4c5c5c,_0x180647)[_0x5627d5(0xb8)]?(_0x1d15b3[_0x5627d5(0xb6)]({'unitID':_0xf2e476,'undoMutations':_0x3716e2,'redoMutations':_0x4c5c5c}),!0x0):!0x1;}},y={'type':t['CommandType'][_0x515c59(0x11c)],'id':_0x515c59(0xd7),'handler':(_0x294869,_0xcab822)=>{const _0x3f15ba=_0x515c59;var _0x4f9f29,_0x220c5c;let _0x585a5d=(0x0,n[_0x3f15ba(0xe5)])(_0x294869['get'](t[_0x3f15ba(0xc5)]),_0xcab822);if(!_0x585a5d)return!0x1;let _0x38151b=_0x294869[_0x3f15ba(0x91)](n['SheetSkeletonService']),{unitId:_0x281e75,subUnitId:_0x47524d}=_0x585a5d,_0x5dab89=_0x38151b['getSkeleton'](_0x281e75,_0x47524d);if(!_0x5dab89)return!0x1;let _0x3fde40=_0x294869['get'](r['ISheetDrawingService']),{shapeId:_0x140330,flipH:_0x88b1ee,flipV:_0x9890e7}=_0xcab822,_0x26ee62=_0x3fde40[_0x3f15ba(0x7c)]({'unitId':_0x281e75,'subUnitId':_0x47524d,'drawingId':_0x140330});if(!_0x26ee62)return!0x1;let _0x395f67=_0x294869[_0x3f15ba(0x91)](p)[_0x3f15ba(0xd8)](_0x281e75,_0x47524d,_0x140330);if(!_0x395f67)return!0x1;let _0x1940c8=_0x294869['get'](t[_0x3f15ba(0x12d)]),_0xf64ca0=_0x294869['get'](t['IUndoRedoService']),_0x48107b=_0x294869[_0x3f15ba(0x91)](n[_0x3f15ba(0xf5)]),_0x22ebac={..._0x26ee62[_0x3f15ba(0x8e)]};_0x88b1ee!==void 0x0&&(_0x22ebac[_0x3f15ba(0xdc)]=!_0x22ebac[_0x3f15ba(0xdc)]),_0x9890e7!==void 0x0&&(_0x22ebac[_0x3f15ba(0x113)]=!_0x22ebac[_0x3f15ba(0x113)]);let _0x38176e=(0x0,r[_0x3f15ba(0x131)])(_0x22ebac,_0x5dab89),_0x506b97=(0x0,r[_0x3f15ba(0xf2)])(_0x22ebac,_0x5dab89),_0x93db50=_0x395f67[_0x3f15ba(0xb5)](),_0x9a0e4e=_0x395f67['getShapeData'](),_0x1b5105={'unitId':_0x281e75,'subUnitId':_0x47524d,'drawingId':_0x140330,'drawingType':t[_0x3f15ba(0xd9)][_0x3f15ba(0x128)],'sheetTransform':_0x38176e,'transform':_0x22ebac,'data':{'shapeType':_0x93db50,'shapeData':_0x9a0e4e},'axisAlignSheetTransform':_0x506b97,'allowTransform':!0x0},{undo:_0x9a6618,redo:_0x31c672,objects:_0x579685}=_0x3fde40[_0x3f15ba(0xaf)]([_0x1b5105]),_0x28a33b=_0x48107b[_0x3f15ba(0x81)]({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x281e75,'drawings':[_0x1b5105]}}),_0x3cafae=[...(_0x4f9f29=_0x28a33b[_0x3f15ba(0xcd)])==null?[]:_0x4f9f29,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x281e75,'subUnitId':_0x47524d,'op':_0x31c672,'objects':_0x579685,'type':r[_0x3f15ba(0x99)][_0x3f15ba(0xc1)]}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x281e75]},..._0x28a33b[_0x3f15ba(0xc3)]],_0xb29dc1=[...(_0x220c5c=_0x28a33b['preUndos'])==null?[]:_0x220c5c,{'id':r[_0x3f15ba(0x125)]['id'],'params':{'unitId':_0x281e75,'subUnitId':_0x47524d,'op':_0x9a6618,'objects':_0x579685,'type':r[_0x3f15ba(0x99)]['UPDATE']}},{'id':r[_0x3f15ba(0xac)]['id'],'params':[_0x281e75]},..._0x28a33b[_0x3f15ba(0xdf)]];if((0x0,e[_0x3f15ba(0x88)])(_0x93db50)){let _0x483aba=_0x395f67[_0x3f15ba(0xec)]();if(_0x483aba){let _0x4efc7c={..._0x483aba};_0x4efc7c['from']=void 0x0,_0x4efc7c['to']=void 0x0,_0x3cafae['push']({'id':_['id'],'params':{'unitId':_0x281e75,'subUnitId':_0x47524d,'shapeId':_0x140330,'shapeType':_0x93db50,'shapeData':{'relation':_0x4efc7c}}}),_0xb29dc1[_0x3f15ba(0x124)]({'id':_['id'],'params':{'unitId':_0x281e75,'subUnitId':_0x47524d,'shapeId':_0x140330,'shapeType':_0x93db50,'shapeData':{'relation':_0x483aba}}});}}return(0x0,t[_0x3f15ba(0x79)])(_0x3cafae,_0x1940c8)[_0x3f15ba(0xb8)]?(_0xf64ca0[_0x3f15ba(0xb6)]({'unitID':_0x281e75,'undoMutations':_0xb29dc1,'redoMutations':_0x3cafae}),!0x0):!0x1;}},b={'type':t['CommandType'][_0x515c59(0x11c)],'id':'sheet.command.set-shape-rotate','handler':(_0x4cdd67,_0x4a7440)=>{const _0x29d51a=_0x515c59;var _0x3a1b05,_0x9e133e;let _0x578fe8=(0x0,n['getSheetCommandTarget'])(_0x4cdd67[_0x29d51a(0x91)](t['IUniverInstanceService']),_0x4a7440);if(!_0x578fe8)return!0x1;let _0x1df7b6=_0x4cdd67[_0x29d51a(0x91)](n[_0x29d51a(0x8b)]),{unitId:_0x547da7,subUnitId:_0x19133d}=_0x578fe8,_0x50405c=_0x1df7b6['getSkeleton'](_0x547da7,_0x19133d);if(!_0x50405c)return!0x1;let _0x84054=_0x4cdd67[_0x29d51a(0x91)](r['ISheetDrawingService']),{shapeId:_0x1fd9f0,rotate:_0x2a6e23}=_0x4a7440,_0x59a9a3=_0x84054[_0x29d51a(0x7c)]({'unitId':_0x547da7,'subUnitId':_0x19133d,'drawingId':_0x1fd9f0});if(!_0x59a9a3)return!0x1;let _0x48a11a=_0x4cdd67[_0x29d51a(0x91)](p)[_0x29d51a(0xd8)](_0x547da7,_0x19133d,_0x1fd9f0);if(!_0x48a11a)return!0x1;let _0x205f95=_0x4cdd67[_0x29d51a(0x91)](t['ICommandService']),_0x57f55b=_0x4cdd67[_0x29d51a(0x91)](t['IUndoRedoService']),_0x55e2a1=_0x4cdd67[_0x29d51a(0x91)](n[_0x29d51a(0xf5)]),_0x3a7803={..._0x59a9a3['transform']};_0x2a6e23!==void 0x0&&(_0x3a7803[_0x29d51a(0x11e)]=(_0x3a7803[_0x29d51a(0x11e)]||0x0)+_0x2a6e23);let _0x185626=(0x0,r[_0x29d51a(0x131)])(_0x3a7803,_0x50405c),_0x4468fa=(0x0,r[_0x29d51a(0xf2)])(_0x3a7803,_0x50405c),_0x2362ec=_0x48a11a['getShapeType'](),_0x83c6e6=_0x48a11a[_0x29d51a(0x135)](),_0x5553b6={'unitId':_0x547da7,'subUnitId':_0x19133d,'drawingId':_0x1fd9f0,'drawingType':t[_0x29d51a(0xd9)][_0x29d51a(0x128)],'sheetTransform':_0x185626,'transform':_0x3a7803,'data':{'shapeType':_0x2362ec,'shapeData':_0x83c6e6},'axisAlignSheetTransform':_0x4468fa,'allowTransform':!0x0},{undo:_0x276935,redo:_0xd33650,objects:_0x5e482a}=_0x84054[_0x29d51a(0xaf)]([_0x5553b6]),_0x54e4dd=_0x55e2a1['onCommandExecute']({'id':r[_0x29d51a(0xad)]['id'],'params':{'unitId':_0x547da7,'drawings':[_0x5553b6]}}),_0x5148f5=[...(_0x3a1b05=_0x54e4dd[_0x29d51a(0xcd)])==null?[]:_0x3a1b05,{'id':r[_0x29d51a(0x125)]['id'],'params':{'unitId':_0x547da7,'subUnitId':_0x19133d,'op':_0xd33650,'objects':_0x5e482a,'type':r[_0x29d51a(0x99)][_0x29d51a(0xc1)]}},{'id':r[_0x29d51a(0xac)]['id'],'params':[_0x547da7]},..._0x54e4dd[_0x29d51a(0xc3)]],_0x110f07=[...(_0x9e133e=_0x54e4dd['preUndos'])==null?[]:_0x9e133e,{'id':r[_0x29d51a(0x125)]['id'],'params':{'unitId':_0x547da7,'subUnitId':_0x19133d,'op':_0x276935,'objects':_0x5e482a,'type':r['DrawingApplyType']['UPDATE']}},{'id':r['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x547da7]},..._0x54e4dd['undos']];return(0x0,t[_0x29d51a(0x79)])(_0x5148f5,_0x205f95)['result']?(_0x57f55b[_0x29d51a(0xb6)]({'unitID':_0x547da7,'undoMutations':_0x110f07,'redoMutations':_0x5148f5}),!0x0):!0x1;}},x={'type':t[_0x515c59(0x9a)][_0x515c59(0x11c)],'id':_0x515c59(0xc8),'handler':(_0x2afb84,_0x3e2dae)=>{const _0x340654=_0x515c59;var _0x266b6e;let _0x1161c8=(0x0,n[_0x340654(0xe5)])(_0x2afb84[_0x340654(0x91)](t['IUniverInstanceService']),_0x3e2dae);if(!_0x1161c8)return!0x1;let {unitId:_0x1cbec8,subUnitId:_0x388415}=_0x1161c8,{shapeId:_0x16124b}=_0x3e2dae,_0x5772bb=_0x2afb84[_0x340654(0x91)](p)['getShapeModel'](_0x1cbec8,_0x388415,_0x16124b);if(!_0x5772bb)return!0x1;let _0x4df162=_0x5772bb[_0x340654(0x102)](),_0x10fd6c=(_0x266b6e=_0x4df162==null?void 0x0:_0x4df162[_0x340654(0xc6)])==null?!0x0:_0x266b6e,_0x1c4c75=!_0x10fd6c,_0x4ba6b4=_0x2afb84[_0x340654(0x91)](t[_0x340654(0x12d)]),_0x2972ba=_0x2afb84[_0x340654(0x91)](t['IUndoRedoService']),_0x37b596={'unitId':_0x1cbec8,'subUnitId':_0x388415,'shapeId':_0x16124b,'shapeData':{'shapeText':{'isHorizontal':_0x1c4c75}}},_0x3bfc62={'unitId':_0x1cbec8,'subUnitId':_0x388415,'shapeId':_0x16124b,'shapeData':{'shapeText':{'isHorizontal':_0x10fd6c}}},_0x4e0a31=[{'id':_['id'],'params':_0x37b596}],_0x4b677b=[{'id':_['id'],'params':_0x3bfc62}];return(0x0,t[_0x340654(0x79)])(_0x4e0a31,_0x4ba6b4)[_0x340654(0xb8)]?(_0x2972ba[_0x340654(0xb6)]({'unitID':_0x1cbec8,'undoMutations':_0x4b677b,'redoMutations':_0x4e0a31}),!0x0):!0x1;}},S={'type':t[_0x515c59(0x9a)][_0x515c59(0x11c)],'id':'sheet.command.update-connector-relation','handler':(_0x5367d7,_0x32ca24)=>{const _0x30b37e=_0x515c59;var _0x3635e0,_0x491f59,_0x1a673a,_0x44fe6e;let _0x44a077=(0x0,n[_0x30b37e(0xe5)])(_0x5367d7['get'](t[_0x30b37e(0xc5)]),_0x32ca24);if(!_0x44a077)return!0x1;let _0x578c01=_0x5367d7[_0x30b37e(0x91)](n[_0x30b37e(0x8b)]),{unitId:_0xeb477e,subUnitId:_0x2185f8}=_0x44a077,_0x448cb1=_0x578c01[_0x30b37e(0x8f)](_0xeb477e,_0x2185f8);if(!_0x448cb1)return!0x1;let _0x8bf889=_0x5367d7[_0x30b37e(0x91)](r['ISheetDrawingService']),{connectorShapeId:_0x2fc5d6,width:_0x373701,height:_0xd09749,left:_0x493a25,top:_0x4d4b22,flipX:_0x27eb71,flipY:_0x15f5b8,rotation:_0x33075f,oldAdjustValues:_0xc3d0fd,newAdjustValues:_0x3de772,oldLineType:_0x417de8,newLineType:_0x5bc548,oldRelation:_0x60b4ac,newRelation:_0x10485f}=_0x32ca24,_0x4f6650=_0x8bf889[_0x30b37e(0x7c)]({'unitId':_0xeb477e,'subUnitId':_0x2185f8,'drawingId':_0x2fc5d6});if(!_0x4f6650)return!0x1;let _0x136f43=_0x5367d7[_0x30b37e(0x91)](p)[_0x30b37e(0xd8)](_0xeb477e,_0x2185f8,_0x2fc5d6);if(!_0x136f43)return!0x1;let _0x361dc5=_0x5367d7[_0x30b37e(0x91)](t[_0x30b37e(0x12d)]),_0x4f39d6=_0x5367d7['get'](t['IUndoRedoService']),_0x35d2a0=_0x5367d7['get'](n[_0x30b37e(0xf5)]),_0x41dbff={..._0x4f6650[_0x30b37e(0x8e)],'width':_0x373701,'height':_0xd09749,'left':_0x493a25,'top':_0x4d4b22,'flipX':_0x27eb71,'flipY':_0x15f5b8,'angle':(_0x3635e0=_0x33075f==null?(_0x491f59=_0x4f6650['transform'])==null?void 0x0:_0x491f59[_0x30b37e(0x11e)]:_0x33075f)==null?0x0:_0x3635e0},_0x4bd434=(0x0,r[_0x30b37e(0x131)])(_0x41dbff,_0x448cb1),_0x55d659=(0x0,r[_0x30b37e(0xf2)])(_0x41dbff,_0x448cb1),_0x338f39=_0x136f43[_0x30b37e(0xb5)](),_0x904f79=_0x136f43[_0x30b37e(0x135)](),_0x57ef92={'unitId':_0xeb477e,'subUnitId':_0x2185f8,'drawingId':_0x2fc5d6,'drawingType':t[_0x30b37e(0xd9)][_0x30b37e(0x128)],'sheetTransform':_0x4bd434,'transform':_0x41dbff,'data':{'shapeType':_0x5bc548||_0x417de8||_0x338f39,'shapeData':{..._0x904f79,'adjustValues':_0x3de772||_0xc3d0fd||(_0x904f79==null?void 0x0:_0x904f79[_0x30b37e(0xbf)]),'relation':_0x10485f||_0x60b4ac||(_0x904f79==null?void 0x0:_0x904f79[_0x30b37e(0x104)])}},'axisAlignSheetTransform':_0x55d659,'allowTransform':!0x0},{undo:_0xd28f03,redo:_0x1bb748,objects:_0x2cb765}=_0x8bf889[_0x30b37e(0xaf)]([_0x57ef92]),_0x230dbd=_0x35d2a0['onCommandExecute']({'id':r['SetSheetDrawingCommand']['id'],'params':{'unitId':_0xeb477e,'drawings':[_0x57ef92]}}),_0x50816f=[...(_0x1a673a=_0x230dbd[_0x30b37e(0xcd)])==null?[]:_0x1a673a,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0xeb477e,'subUnitId':_0x2185f8,'op':_0x1bb748,'objects':_0x2cb765,'type':r['DrawingApplyType'][_0x30b37e(0xc1)]}},{'id':r[_0x30b37e(0xac)]['id'],'params':[_0xeb477e]},..._0x230dbd['redos'],{'id':_['id'],'params':{'unitId':_0xeb477e,'subUnitId':_0x2185f8,'shapeId':_0x2fc5d6,'shapeType':_0x5bc548,'shapeData':{'adjustValues':_0x3de772,'relation':_0x10485f}}}],_0x557432=[...(_0x44fe6e=_0x230dbd[_0x30b37e(0x123)])==null?[]:_0x44fe6e,{'id':r[_0x30b37e(0x125)]['id'],'params':{'unitId':_0xeb477e,'subUnitId':_0x2185f8,'op':_0xd28f03,'objects':_0x2cb765,'type':r[_0x30b37e(0x99)]['UPDATE']}},{'id':r[_0x30b37e(0xac)]['id'],'params':[_0xeb477e]},..._0x230dbd[_0x30b37e(0xdf)],{'id':_['id'],'params':{'unitId':_0xeb477e,'subUnitId':_0x2185f8,'shapeId':_0x2fc5d6,'shapeType':_0x338f39,'shapeData':{..._0x904f79,'adjustValues':_0xc3d0fd||(_0x904f79==null?void 0x0:_0x904f79['adjustValues']),'relation':_0x60b4ac||(_0x904f79==null?void 0x0:_0x904f79[_0x30b37e(0x104)])}}}];return(0x0,t[_0x30b37e(0x79)])(_0x50816f,_0x361dc5)[_0x30b37e(0xb8)]?(_0x4f39d6[_0x30b37e(0xb6)]({'unitID':_0xeb477e,'undoMutations':_0x557432,'redoMutations':_0x50816f}),!0x0):!0x1;}},C={'type':t[_0x515c59(0x9a)]['COMMAND'],'id':_0x515c59(0x8a),'handler':(_0x58c8cc,_0x4ecd42)=>{const _0x3a5226=_0x515c59;var _0x26a822,_0x495743;let _0x1dd35b=(0x0,n[_0x3a5226(0xe5)])(_0x58c8cc[_0x3a5226(0x91)](t[_0x3a5226(0xc5)]),_0x4ecd42);if(!_0x1dd35b)return!0x1;let _0x105111=_0x58c8cc[_0x3a5226(0x91)](n[_0x3a5226(0x8b)]),{unitId:_0x2a77bd,subUnitId:_0x1dcafe}=_0x1dd35b,_0x5abbef=_0x105111['getSkeleton'](_0x2a77bd,_0x1dcafe);if(!_0x5abbef)return!0x1;let _0x170a56=_0x58c8cc[_0x3a5226(0x91)](r[_0x3a5226(0x141)]),{shapeId:_0x249910,width:_0x4711ce,height:_0x1262b1,left:_0x432d9,top:_0x4e579b,flipX:_0x1ec8aa,flipY:_0x595ad6,angle:_0x1d1810,oldAdjustValues:_0x3d0715,newAdjustValues:_0x2cfa97,oldLineType:_0x5f0c79,newLineType:_0x4684e9}=_0x4ecd42,_0x58467f=_0x170a56[_0x3a5226(0x7c)]({'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'drawingId':_0x249910});if(!_0x58467f)return!0x1;let _0x29ddc5=_0x58c8cc['get'](p)[_0x3a5226(0xd8)](_0x2a77bd,_0x1dcafe,_0x249910);if(!_0x29ddc5)return!0x1;let _0x1ef5a9=_0x58c8cc['get'](t['ICommandService']),_0x400144=_0x58c8cc[_0x3a5226(0x91)](t['IUndoRedoService']),_0x438c0f=_0x58c8cc[_0x3a5226(0x91)](n[_0x3a5226(0xf5)]),_0x4889d8={..._0x58467f[_0x3a5226(0x8e)],'width':_0x4711ce,'height':_0x1262b1,'left':_0x432d9,'top':_0x4e579b,'flipX':_0x1ec8aa,'flipY':_0x595ad6,'angle':_0x1d1810},_0x587389=(0x0,r['transformToDrawingPosition'])(_0x4889d8,_0x5abbef),_0x5549ee=(0x0,r[_0x3a5226(0xf2)])(_0x4889d8,_0x5abbef),_0x266bb4=_0x29ddc5['getShapeType'](),_0x55f2d5=_0x29ddc5[_0x3a5226(0x135)](),_0x51c8ec={'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'drawingId':_0x249910,'drawingType':t[_0x3a5226(0xd9)]['DRAWING_SHAPE'],'sheetTransform':_0x587389,'transform':_0x4889d8,'data':{'shapeType':_0x4684e9||_0x5f0c79||_0x266bb4,'shapeData':{..._0x55f2d5,'adjustValues':_0x2cfa97||_0x3d0715||(_0x55f2d5==null?void 0x0:_0x55f2d5[_0x3a5226(0xbf)])}},'axisAlignSheetTransform':_0x5549ee,'allowTransform':!0x0},{undo:_0x2bcc6c,redo:_0x109c6f,objects:_0x5c9cc8}=_0x170a56[_0x3a5226(0xaf)]([_0x51c8ec]),_0x5bade6=_0x438c0f[_0x3a5226(0x81)]({'id':r[_0x3a5226(0xad)]['id'],'params':{'unitId':_0x2a77bd,'drawings':[_0x51c8ec]}}),_0x5d4d04=[...(_0x26a822=_0x5bade6['preRedos'])==null?[]:_0x26a822,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'op':_0x109c6f,'objects':_0x5c9cc8,'type':r[_0x3a5226(0x99)]['UPDATE']}},{'id':r[_0x3a5226(0xac)]['id'],'params':[_0x2a77bd]},..._0x5bade6[_0x3a5226(0xc3)],{'id':_['id'],'params':{'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'shapeId':_0x249910,'shapeType':_0x4684e9,'shapeData':{'adjustValues':_0x2cfa97}}}],_0xa6a37d=[...(_0x495743=_0x5bade6['preUndos'])==null?[]:_0x495743,{'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'op':_0x2bcc6c,'objects':_0x5c9cc8,'type':r['DrawingApplyType']['UPDATE']}},{'id':r[_0x3a5226(0xac)]['id'],'params':[_0x2a77bd]},..._0x5bade6[_0x3a5226(0xdf)],{'id':_['id'],'params':{'unitId':_0x2a77bd,'subUnitId':_0x1dcafe,'shapeId':_0x249910,'shapeType':_0x266bb4,'shapeData':{..._0x55f2d5,'adjustValues':_0x3d0715||(_0x55f2d5==null?void 0x0:_0x55f2d5[_0x3a5226(0xbf)])}}}];return(0x0,t[_0x3a5226(0x79)])(_0x5d4d04,_0x1ef5a9)['result']?(_0x400144[_0x3a5226(0xb6)]({'unitID':_0x2a77bd,'undoMutations':_0xa6a37d,'redoMutations':_0x5d4d04}),!0x0):!0x1;}},w={'id':_0x515c59(0xe4),'type':t[_0x515c59(0x9a)][_0x515c59(0xfa)],'handler':(_0xa0f739,_0x4ab6f5)=>{const _0x12882c=_0x515c59;let {unitId:_0x175ef2,subUnitId:_0x514cfa,shapeType:_0x214896,shapeId:_0x3d6805,shapeData:_0x6418a6}=_0x4ab6f5,_0x3e7d9e=_0xa0f739[_0x12882c(0x91)](p)['getShapeModel'](_0x175ef2,_0x514cfa,_0x3d6805);return _0x3e7d9e&&(_0x3e7d9e[_0x12882c(0x134)](_0x214896),_0x6418a6&&(_0x3e7d9e==null||_0x3e7d9e[_0x12882c(0x11f)](_0x6418a6))),!0x0;}},T={'id':_0x515c59(0x13f),'type':t['CommandType'][_0x515c59(0x11c)],'handler':(_0x3bd8a4,_0x347eef)=>{const _0x355253=_0x515c59;if(!_0x347eef)return!0x1;let _0x2f3199=_0x3bd8a4[_0x355253(0x91)](t[_0x355253(0x12d)]),_0x302999=_0x3bd8a4[_0x355253(0x91)](p),_0x48c334=_0x3bd8a4[_0x355253(0x91)](t[_0x355253(0xa2)]),_0x55aebd=[],_0x13aede=[],{unitId:_0x19d3f7,subUnitId:_0x5ed639,shapeId:_0x5aa67e,shapeType:_0x6e282d,shapeData:_0xd49a53}=_0x347eef,_0x4bca96=_0x302999[_0x355253(0xd8)](_0x19d3f7,_0x5ed639,_0x5aa67e);if(_0x4bca96){let _0x2dc451=_0x4bca96[_0x355253(0xb5)](),_0x2120b0=Object[_0x355253(0x118)]({},_0x4bca96[_0x355253(0x135)]()),_0x4d633b={'unitId':_0x19d3f7,'subUnitId':_0x5ed639,'shapeId':_0x5aa67e,'shapeType':_0x6e282d,'shapeData':_0xd49a53},_0x59520a={'unitId':_0x19d3f7,'subUnitId':_0x5ed639,'shapeId':_0x5aa67e,'shapeType':_0x2dc451,'shapeData':_0x2120b0};return _0x55aebd[_0x355253(0x124)]({'id':w['id'],'params':_0x4d633b}),_0x13aede['push']({'id':w['id'],'params':_0x59520a}),_0x55aebd[_0x355253(0x108)](_0x3afac7=>_0x2f3199[_0x355253(0x7f)](_0x3afac7['id'],_0x3afac7[_0x355253(0x83)]))&&_0x48c334[_0x355253(0xb6)]({'unitID':_0x19d3f7,'redoMutations':[..._0x55aebd],'undoMutations':[..._0x13aede]}),!0x0;}return!0x1;}};var E=_0x515c59(0xa5),D=_0x515c59(0x116);const O=_0x515c59(0x107);Symbol(O);const k={};let A=class extends t[_0x515c59(0x7a)]{constructor(_0x42bbc1,_0x4cc551,_0x1c2e74,_0x393f42,_0xcf8234){const _0xd87ff=_0x515c59;super(),this[_0xd87ff(0x97)]=_0x42bbc1,this['_sheetInterceptorService']=_0x4cc551,this[_0xd87ff(0xd5)]=_0x1c2e74,this[_0xd87ff(0x111)]=_0x393f42,this[_0xd87ff(0xb0)]=_0xcf8234,this['_initCommands'](),this['_initCommandInterceptor']();}[_0x515c59(0xcb)](){const _0x2e1df7=_0x515c59;[g,v,y,b,x,S,C,m,h,w,_][_0x2e1df7(0x11b)](_0x52842d=>this[_0x2e1df7(0xae)](this[_0x2e1df7(0x97)]['registerCommand'](_0x52842d)));}[_0x515c59(0x98)](){const _0x272bb8=_0x515c59;this[_0x272bb8(0xae)](this[_0x272bb8(0x133)][_0x272bb8(0x13b)]({'getMutations':_0xf5ed10=>{const _0xa1469c=_0x272bb8;if(_0xf5ed10['id']===r[_0xa1469c(0xa6)]['id']){let {drawings:_0x40c0d3}=_0xf5ed10['params'],_0x2287a9=_0x40c0d3[_0xa1469c(0x101)](_0x55efd9=>_0x55efd9[_0xa1469c(0x10f)]===t[_0xa1469c(0xd9)][_0xa1469c(0x128)]);if(_0x2287a9[_0xa1469c(0xaa)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4fcc6a=[],_0x24d5d0=[];return _0x2287a9[_0xa1469c(0x11b)](_0x7adb17=>{const _0x232c18=_0xa1469c;let {unitId:_0x261666,subUnitId:_0x566be1,drawingId:_0x574b01}=_0x7adb17,_0x19e47a=this[_0x232c18(0x111)]['getShapeModel'](_0x261666,_0x566be1,_0x574b01);if(!_0x19e47a)throw TypeError(_0x232c18(0x10e)+_0x19e47a);_0x4fcc6a[_0x232c18(0x124)]({'id':h['id'],'params':{'unitId':_0x261666,'subUnitId':_0x566be1,'shapeId':_0x574b01}}),_0x24d5d0[_0x232c18(0x124)]({'id':m['id'],'params':{'unitId':_0x261666,'subUnitId':_0x566be1,'shapeId':_0x574b01,'shapeType':_0x19e47a['getShapeType'](),'shapeData':_0x19e47a[_0x232c18(0x135)]()}});let _0xbc6f9a=this['_sheetsShapeService'][_0x232c18(0xca)](_0x261666,_0x566be1,_0x574b01);if(_0xbc6f9a)for(let _0x305fe7 of _0xbc6f9a){let _0x32ebc0=_0x305fe7['lineShapeId'],_0x38e27=_0x305fe7['isFrom'],_0x3fa004=_0x38e27?{'from':void 0x0}:{'to':void 0x0},_0x1280df=_0x38e27?{'from':{'shapeId':_0x305fe7['shapeId'],'cxnIndex':_0x305fe7['cxnIndex']}}:{'to':{'shapeId':_0x305fe7['shapeId'],'cxnIndex':_0x305fe7[_0x232c18(0x7d)]}};_0x4fcc6a[_0x232c18(0x124)]({'id':_['id'],'params':{'unitId':_0x261666,'subUnitId':_0x566be1,'shapeId':_0x32ebc0,'shapeData':{'relation':_0x3fa004}}}),_0x24d5d0[_0x232c18(0x124)]({'id':_['id'],'params':{'unitId':_0x261666,'subUnitId':_0x566be1,'shapeId':_0x32ebc0,'shapeData':{'relation':_0x1280df}}});}}),{'preRedos':_0x4fcc6a,'redos':[],'preUndos':[],'undos':_0x24d5d0};}if(_0xf5ed10['id']===r[_0xa1469c(0xad)]['id']){let {drawings:_0x31d68f}=_0xf5ed10[_0xa1469c(0x83)],_0x110fa4=_0x31d68f[_0xa1469c(0x101)](_0xe8664e=>_0xe8664e['drawingType']===t[_0xa1469c(0xd9)]['DRAWING_SHAPE']);if(_0x110fa4[_0xa1469c(0xaa)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x5b5ce8=[],_0x26510e=[];for(let _0xfc8a9c of _0x110fa4){let {unitId:_0x59ac83,subUnitId:_0x59512c,drawingId:_0x644236,transform:_0x40934b}=_0xfc8a9c;if(!_0x59ac83||!_0x59512c||!_0x644236||!_0x40934b)continue;let _0x3a288a=this[_0xa1469c(0x111)][_0xa1469c(0xd8)](_0x59ac83,_0x59512c,_0x644236);if(!_0x3a288a)throw TypeError(_0xa1469c(0x10e)+_0x3a288a);if((0x0,e[_0xa1469c(0x88)])(_0x3a288a['getShapeType']())){let _0x55e93a=this[_0xa1469c(0x111)][_0xa1469c(0x12a)](_0x59ac83,_0x59512c,_0x644236);_0x55e93a&&(_0x5b5ce8[_0xa1469c(0x124)]({'id':_['id'],'params':{'unitId':_0x59ac83,'subUnitId':_0x59512c,'shapeId':_0x644236,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x26510e['push']({'id':_['id'],'params':{'unitId':_0x59ac83,'subUnitId':_0x59512c,'shapeId':_0x644236,'shapeData':{'relation':_0x55e93a}}}));}else{let _0x2938dc=this[_0xa1469c(0x111)]['getBasicShapeRelation'](_0x59ac83,_0x59512c,_0x644236);if(_0x2938dc&&_0x2938dc[_0xa1469c(0xaa)]>0x0)for(let _0x379fe1 of _0x2938dc){let _0x387839=_0x379fe1[_0xa1469c(0x9e)],_0x4c2122=_0x379fe1[_0xa1469c(0x10b)],_0x3b1c61=this['_sheetsShapeService'][_0xa1469c(0xd8)](_0x59ac83,_0x59512c,_0x387839);if(!_0x3b1c61)continue;let _0x5c5f02=_0x3b1c61[_0xa1469c(0xfb)](),_0x80897=_0x3b1c61[_0xa1469c(0xfc)]();_0x5c5f02&&_0x80897?this[_0xa1469c(0x84)](_0x59ac83,_0x59512c,_0x387839,_0x3b1c61,_0x5c5f02,_0x80897,_0x5b5ce8,_0x26510e,_0x644236,_0x40934b):this[_0xa1469c(0xda)](_0x59ac83,_0x59512c,_0x387839,_0x3b1c61,_0x4c2122?_0x5c5f02:_0x80897,_0x4c2122,_0x5b5ce8,_0x26510e,_0x644236,_0x40934b);}}}return{'preRedos':[],'redos':_0x5b5ce8,'preUndos':_0x26510e,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x515c59(0xee)](_0xe31599,_0x578515,_0x4ba685,_0x16a9b2,_0x281f6b){const _0x157f5d=_0x515c59;if(!_0x578515||!_0x4ba685)return null;let {shapeId:_0x54739c,cxnIndex:_0x541972}=_0xe31599,_0x14b09e=this[_0x157f5d(0x111)]['getShapeModel'](_0x578515,_0x4ba685,_0x54739c);if(!_0x14b09e)return null;let _0x3bf166=this[_0x157f5d(0xb0)]['getDrawingByParam']({'unitId':_0x578515,'subUnitId':_0x4ba685,'drawingId':_0x54739c});if(!(_0x3bf166!=null&&_0x3bf166[_0x157f5d(0x8e)]))return null;let {left:_0x24c924=0x0,top:_0x508626=0x0,width:_0x40a4d4=0x0,height:_0x20554e=0x0,flipX:_0x202172=!0x1,flipY:_0x53e996=!0x1,angle:_0x3c986b}=_0x3bf166[_0x157f5d(0x8e)];if(_0x281f6b&&_0x16a9b2===_0x54739c){var _0x4b0900,_0x1e54fd,_0x56b388,_0x366af4,_0x5a659f,_0x1d5df5,_0x566f46;_0x24c924=(_0x4b0900=_0x281f6b[_0x157f5d(0xb4)])==null?_0x24c924:_0x4b0900,_0x508626=(_0x1e54fd=_0x281f6b[_0x157f5d(0x7b)])==null?_0x508626:_0x1e54fd,_0x40a4d4=(_0x56b388=_0x281f6b[_0x157f5d(0xd6)])==null?_0x40a4d4:_0x56b388,_0x20554e=(_0x366af4=_0x281f6b[_0x157f5d(0x86)])==null?_0x20554e:_0x366af4,_0x202172=(_0x5a659f=_0x281f6b[_0x157f5d(0xdc)])==null?_0x202172:_0x5a659f,_0x53e996=(_0x1d5df5=_0x281f6b['flipY'])==null?_0x53e996:_0x1d5df5,_0x3c986b=(_0x566f46=_0x281f6b['angle'])==null?_0x3c986b:_0x566f46;}_0x14b09e['updateContext']({'width':_0x40a4d4,'height':_0x20554e});let _0x18f202=_0x14b09e[_0x157f5d(0x89)]()[_0x157f5d(0x127)](_0x4ad5ca=>_0x4ad5ca[_0x157f5d(0xe3)]===_0x541972);if(!_0x18f202)return null;let _0x3320bb=_0x202172?_0x40a4d4-_0x18f202['x']:_0x18f202['x'],_0x2418a2=_0x53e996?_0x20554e-_0x18f202['y']:_0x18f202['y'];if(_0x3c986b!==0x0&&_0x3c986b!=null){let _0x2d0808=_0x3c986b*Math['PI']/0xb4,_0x54d5d3=Math['cos'](_0x2d0808),_0xdd7135=Math[_0x157f5d(0xe0)](_0x2d0808),_0x23be55=_0x40a4d4/0x2,_0x5d86fd=_0x20554e/0x2,_0x1aeaa6=_0x3320bb-_0x23be55,_0x30934a=_0x2418a2-_0x5d86fd;_0x3320bb=_0x23be55+_0x1aeaa6*_0x54d5d3-_0x30934a*_0xdd7135,_0x2418a2=_0x5d86fd+_0x1aeaa6*_0xdd7135+_0x30934a*_0x54d5d3;}_0x3320bb+=_0x24c924,_0x2418a2+=_0x508626;let _0x2206d8=_0x18f202[_0x157f5d(0xb3)]/0xea60;_0x202172&&(_0x2206d8=0xb4-_0x2206d8),_0x53e996&&(_0x2206d8=-_0x2206d8),_0x2206d8+=_0x3c986b||0x0,_0x2206d8=(_0x2206d8%0x168+0x168)%0x168;let _0x37d3b6=(0x0,e[_0x157f5d(0xf0)])({'left':_0x24c924,'top':_0x508626,'width':_0x40a4d4,'height':_0x20554e},_0x3c986b||0x0);return{'point':{'x':_0x3320bb,'y':_0x2418a2},'angle':_0x2206d8,'bounds':_0x37d3b6};}['_addLineRerouteUpdates'](_0x55a4cf,_0x51bb1a,_0x23c33,_0x323ffb,_0x28beda,_0x3e39da,_0x1d64d4,_0x595130,_0x29b46e,_0x1c38ec){const _0x1831b7=_0x515c59;let _0x1e7682=this['_sheetSkeletonService']['getSkeleton'](_0x55a4cf,_0x51bb1a);if(!_0x1e7682)return;let _0x458699=_0x323ffb[_0x1831b7(0xec)](),_0x4b7193=_0x323ffb['getAdjustNames'](),_0x148ef5={},_0x405d72={};_0x4b7193[_0x1831b7(0x11b)](_0x2a5362=>{const _0x13c9ab=_0x1831b7;let _0x2fe320=_0x323ffb[_0x13c9ab(0xe9)](_0x2a5362);_0x405d72[_0x2a5362]=_0x2fe320==null?0x0:_0x2fe320;});let _0x184b94=this[_0x1831b7(0xee)](_0x28beda,_0x55a4cf,_0x51bb1a,_0x29b46e,_0x1c38ec),_0x483c2f=this[_0x1831b7(0xee)](_0x3e39da,_0x55a4cf,_0x51bb1a,_0x29b46e,_0x1c38ec);if(_0x184b94&&_0x483c2f){let _0x48575d=_0x323ffb[_0x1831b7(0xb5)](),_0x45b141=(0x0,e[_0x1831b7(0x106)])(_0x184b94,_0x483c2f,_0x48575d),_0x5944b1=_0x48575d;if(_0x45b141){let _0x572c32=(0x0,e[_0x1831b7(0x93)])(_0x45b141,_0x323ffb[_0x1831b7(0xb5)]()),_0x2e386e=this['_drawingManagerService'][_0x1831b7(0xc0)](_0x55a4cf,_0x51bb1a);if(_0x2e386e&&_0x2e386e[_0x23c33]){let _0x49d2ed=_0x2e386e[_0x23c33];_0x5944b1=_0x572c32[_0x1831b7(0xde)];for(let [_0x4c72f7,_0x1fca10]of Object[_0x1831b7(0xb1)](_0x572c32[_0x1831b7(0xbf)]))_0x148ef5[_0x4c72f7]=_0x1fca10;let _0x4901c6={..._0x49d2ed[_0x1831b7(0x8e)],'width':_0x572c32['worldRect']['width'],'height':_0x572c32[_0x1831b7(0xed)][_0x1831b7(0x86)],'left':_0x572c32['worldRect'][_0x1831b7(0xb4)],'top':_0x572c32['worldRect'][_0x1831b7(0x7b)],'flipX':_0x572c32[_0x1831b7(0xed)][_0x1831b7(0xdc)],'flipY':_0x572c32[_0x1831b7(0xed)]['flipY'],'angle':_0x572c32[_0x1831b7(0xa7)]},_0x99b08e=(0x0,r[_0x1831b7(0x131)])(_0x4901c6,_0x1e7682),_0x438997=(0x0,r['transformToAxisAlignPosition'])(_0x4901c6,_0x1e7682),_0x3352d8={'unitId':_0x55a4cf,'subUnitId':_0x51bb1a,'drawingType':t['DrawingTypeEnum'][_0x1831b7(0x128)],'drawingId':_0x23c33,'transform':_0x4901c6,'sheetTransform':_0x99b08e,'axisAlignSheetTransform':_0x438997},{unitId:_0x168abb,subUnitId:_0xa348ec,undo:_0x2ba630,redo:_0x2bbfb4,objects:_0x3081f4}=this[_0x1831b7(0xb0)][_0x1831b7(0xaf)]([_0x3352d8]);_0x1d64d4[_0x1831b7(0x124)]({'id':r[_0x1831b7(0x125)]['id'],'params':{'unitId':_0x168abb,'subUnitId':_0xa348ec,'op':_0x2bbfb4,'objects':_0x3081f4,'type':r[_0x1831b7(0x99)][_0x1831b7(0xc1)]}}),_0x595130[_0x1831b7(0x124)]({'id':r['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x168abb,'subUnitId':_0xa348ec,'op':_0x2ba630,'objects':_0x3081f4,'type':r[_0x1831b7(0x99)][_0x1831b7(0xc1)]}});}_0x323ffb[_0x1831b7(0xc7)]();}_0x1d64d4[_0x1831b7(0x124)]({'id':_['id'],'params':{'unitId':_0x55a4cf,'subUnitId':_0x51bb1a,'shapeId':_0x23c33,'shapeType':_0x5944b1,'shapeData':{'adjustValues':_0x148ef5,'relation':_0x458699}}}),_0x595130[_0x1831b7(0x124)]({'id':_['id'],'params':{'unitId':_0x55a4cf,'subUnitId':_0x51bb1a,'shapeId':_0x23c33,'shapeType':_0x48575d,'shapeData':{'adjustValues':_0x405d72,'relation':_0x458699}}});}}[_0x515c59(0xda)](_0x4e2dfe,_0x4e3d92,_0x52b10,_0x3bfc39,_0x304704,_0x4dce63,_0x59a66b,_0x4f1ea5,_0x2e78f2,_0x17f145){const _0x138a79=_0x515c59;var _0x5d232c;if(!_0x304704)return;let _0x339a5f=this['_sheetSkeletonService']['getSkeleton'](_0x4e2dfe,_0x4e3d92);if(!_0x339a5f)return;let _0x1e4d2b=(_0x5d232c=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4e2dfe,'subUnitId':_0x4e3d92,'drawingId':_0x2e78f2}))==null?void 0x0:_0x5d232c[_0x138a79(0x8e)];if(!_0x1e4d2b)return;let _0x44b8e9=_0x1e4d2b[_0x138a79(0xb4)]!==_0x17f145['left']||_0x1e4d2b[_0x138a79(0x7b)]!==_0x17f145[_0x138a79(0x7b)],_0x340758=_0x1e4d2b[_0x138a79(0xd6)]!==_0x17f145['width']||_0x1e4d2b['height']!==_0x17f145['height'],_0x2dfa5d=_0x1e4d2b['flipX']!==_0x17f145[_0x138a79(0xdc)]||_0x1e4d2b['flipY']!==_0x17f145[_0x138a79(0x113)],_0x4786b3=_0x1e4d2b['angle']!==_0x17f145[_0x138a79(0x11e)];if(_0x44b8e9&&!_0x340758&&!_0x2dfa5d&&!_0x4786b3){var _0x40ca9a,_0x2da330,_0x2d639e,_0x3d8fed;let _0x4bbc05=((_0x40ca9a=_0x17f145[_0x138a79(0xb4)])==null?0x0:_0x40ca9a)-((_0x2da330=_0x1e4d2b[_0x138a79(0xb4)])==null?0x0:_0x2da330),_0x38abf6=((_0x2d639e=_0x17f145[_0x138a79(0x7b)])==null?0x0:_0x2d639e)-((_0x3d8fed=_0x1e4d2b[_0x138a79(0x7b)])==null?0x0:_0x3d8fed),_0x3f00fa=this['_drawingManagerService'][_0x138a79(0xc0)](_0x4e2dfe,_0x4e3d92);if(_0x3f00fa&&_0x3f00fa[_0x52b10]){var _0x23df64,_0x5a81f3,_0x329aa4,_0x5987f6;let _0x28b445=_0x3f00fa[_0x52b10],_0x2c6fea={..._0x28b445[_0x138a79(0x8e)],'left':((_0x23df64=(_0x5a81f3=_0x28b445[_0x138a79(0x8e)])==null?void 0x0:_0x5a81f3[_0x138a79(0xb4)])==null?0x0:_0x23df64)+_0x4bbc05,'top':((_0x329aa4=(_0x5987f6=_0x28b445[_0x138a79(0x8e)])==null?void 0x0:_0x5987f6['top'])==null?0x0:_0x329aa4)+_0x38abf6},_0x41dae6=(0x0,r[_0x138a79(0x131)])(_0x2c6fea,_0x339a5f),_0x115123=(0x0,r[_0x138a79(0xf2)])(_0x2c6fea,_0x339a5f),_0x466642={'unitId':_0x4e2dfe,'subUnitId':_0x4e3d92,'drawingType':t[_0x138a79(0xd9)]['DRAWING_SHAPE'],'drawingId':_0x52b10,'transform':_0x2c6fea,'sheetTransform':_0x41dae6,'axisAlignSheetTransform':_0x115123},{unitId:_0xf2b8a8,subUnitId:_0x43b6c0,undo:_0x2d35fe,redo:_0x3570f2,objects:_0x2fed01}=this['_drawingManagerService']['getBatchUpdateOp']([_0x466642]);_0x59a66b[_0x138a79(0x124)]({'id':r[_0x138a79(0x125)]['id'],'params':{'unitId':_0xf2b8a8,'subUnitId':_0x43b6c0,'op':_0x3570f2,'objects':_0x2fed01,'type':r[_0x138a79(0x99)][_0x138a79(0xc1)]}}),_0x4f1ea5['push']({'id':r[_0x138a79(0x125)]['id'],'params':{'unitId':_0xf2b8a8,'subUnitId':_0x43b6c0,'op':_0x2d35fe,'objects':_0x2fed01,'type':r[_0x138a79(0x99)][_0x138a79(0xc1)]}});}}else{let _0x507883=_0x3bfc39['getStartConnectInfo'](),_0x4111eb=_0x3bfc39[_0x138a79(0xfc)]();this[_0x138a79(0x84)](_0x4e2dfe,_0x4e3d92,_0x52b10,_0x3bfc39,_0x507883,_0x4111eb,_0x59a66b,_0x4f1ea5,_0x2e78f2,_0x17f145);}}};function _0x2d33(_0x339254,_0x36697f){_0x339254=_0x339254-0x79;const _0x349b0a=_0x349b();let _0x2d33f6=_0x349b0a[_0x339254];return _0x2d33f6;}A=f([d(0x0,t[_0x515c59(0x12d)]),d(0x1,(0x0,t['Inject'])(n[_0x515c59(0xf5)])),d(0x2,(0x0,t[_0x515c59(0xef)])(n[_0x515c59(0x8b)])),d(0x3,(0x0,t['Inject'])(p)),d(0x4,(0x0,t[_0x515c59(0xef)])(a['IDrawingManagerService']))],A);let j=class extends t[_0x515c59(0xb7)]{constructor(_0x61a870=k,_0x4d0df1,_0x4bac87,_0xd6ccf2){const _0x1cff0a=_0x515c59;super(),this[_0x1cff0a(0x139)]=_0x61a870,this['_injector']=_0x4d0df1,this[_0x1cff0a(0x97)]=_0x4bac87,this[_0x1cff0a(0x115)]=_0xd6ccf2;let {..._0x18effa}=(0x0,t[_0x1cff0a(0x130)])({},k,this[_0x1cff0a(0x139)]);this[_0x1cff0a(0x115)][_0x1cff0a(0xdd)](O,_0x18effa);}[_0x515c59(0x117)](){const _0x308f50=_0x515c59;let _0x3e4f0f=this['_injector'];[[u],[p],[A]][_0x308f50(0x11b)](_0x23737e=>_0x3e4f0f[_0x308f50(0x138)](_0x23737e)),(0x0,t[_0x308f50(0xc4)])(_0x3e4f0f,[[p],[A]]);}};function _0x349b(){const _0xb2c50f=['RemoveSheetDrawingCommand','rotation','function','UpdateSheetsShapeTypeCommand','length','startY','ClearSheetDrawingTransformerOperation','SetSheetDrawingCommand','disposeWithMe','getBatchUpdateOp','_drawingManagerService','entries','sheet.command.set-shape-drawing-data','ang','left','getShapeType','pushUndoRedo','Plugin','result','UpdateLineShapeResizeCommand','call','toStringTag','getCellIndexAndOffsetByPosition','getShapeTypeById','_serializeShapeForUnit','adjustValues','getDrawingData','UPDATE','SetShapeDrawingDataCommand','redos','touchDependencies','IUniverInstanceService','isHorizontal','removeLinePoints','sheet.command.set-shape-text-vertical-toggle','version','getBasicShapeRelation','_initCommands','1136646sYfqMR','preRedos','sheet.mutation.insert-shape','INSERT','DEFAULT_SHAPE_WIDTH','has','rotateEnabled','RemoveSheetsShapeMutation','from','_sheetSkeletonService','width','sheet.command.toggle-shape-flip','getShapeModel','DrawingTypeEnum','_addLineFollowShapeUpdates','string','flipX','setConfig','lineType','undos','sin','delete','_ensureShapeModelManager','index','sheet.mutation.update-shape-type','getSheetCommandTarget','packageName','DependentOn','Module','getAdjustValueByName','keys','sheet.mutation.remove-shape','getShapeRelation','worldRect','_getConnectPointInfo','Inject','getBasicShapeRotateBound','toJSON','transformToAxisAlignPosition','hasShape','10lJyfeG','SheetInterceptorService','shapeId','startX','UniverLicensePlugin','586deCiUW','MUTATION','getStartConnectInfo','getEndConnectInfo','shapeData','set','_deserializeShapeForUnit','defineProperty','filter','getShapeTextData','1523448YlkMFo','relation','InsertSheetDrawingCommand','routeConnectorLineShape','sheets-shape.config','every','prototype','_initSnapshot','isFrom','clear','2425092NyvVEH','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','drawingType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_sheetsShapeService','position','flipY','_shapeModelManagerMap','_configService','0.24.0','onStarting','assign','SetSheetsShapeTextVerticalToggleCommand','range','forEach','COMMAND','symbol','angle','setShapeData','_disposed','SHEET_SHAPE_PLUGIN','UNIVER_SHEET','preUndos','push','SetDrawingApplyMutation','sheet.command.insert-shape','find','DRAWING_SHAPE','InsertSheetsShapeMutation','getLineShapeRelation','_linesIds','_shapes','ICommandService','7840448RNXyxT','1607xFxMYD','merge','transformToDrawingPosition','fromJSON','_sheetInterceptorService','setShapeType','getShapeData','SetSheetsShapeRotateCommand','fill','add','_config','UniverSheetsShapePlugin','interceptCommand','getBatchAddOp','getBasicShapeType','25wmHDvd','sheet.command.update-shape-type','UpdateSheetsShapeDataMutation','ISheetDrawingService','resizeEnabled','sequenceExecute','Disposable','top','getDrawingByParam','cxnIndex','insertShape','syncExecuteCommand','ToggleSheetsShapeFlipCommand','onCommandExecute','object','params','_addLineRerouteUpdates','sheet.mutation.update-shape-data','height','addShape','isConnectorShape','getConnectionSiteList','sheet.command.update-line-shape-resize','SheetSkeletonService','SheetsShapeService','_resourcesManagerService','transform','getSkeleton','1468502OoaOgl','get','borderEnabled','computeConnectorRouteLayout','IConfigService','ShapeModel','_groupIds','_commandService','_initCommandInterceptor','DrawingApplyType','CommandType','ensureSkeleton','toPrimitive','data','lineShapeId','740958heNilD','dispose','getShapeDataById','IUndoRedoService','removeShape','decorate','@univerjs-pro/sheets-shape'];_0x349b=function(){return _0xb2c50f;};return _0x349b();}l(j,'type',t['UniverInstanceType'][_0x515c59(0x122)]),l(j,'pluginName','SHEET_SHAPE_PLUGIN'),l(j,_0x515c59(0xe6),E),l(j,_0x515c59(0xc9),D),j=f([(0x0,t[_0x515c59(0xe7)])(i[_0x515c59(0xf8)]),d(0x1,(0x0,t[_0x515c59(0xef)])(t['Injector'])),d(0x2,t['ICommandService']),d(0x3,t[_0x515c59(0x94)])],j),exports['DEFAULT_SHAPE_HEIGHT']=0xc8,exports[_0x515c59(0xd0)]=0xc8,exports['InsertShapeCommand']=g,exports[_0x515c59(0x129)]=m,exports[_0x515c59(0xd3)]=h,exports[_0x515c59(0xc2)]=v,exports[_0x515c59(0x136)]=b,exports[_0x515c59(0x119)]=x,Object[_0x515c59(0x100)](exports,_0x515c59(0x8c),{'enumerable':!0x0,'get':function(){return p;}}),exports[_0x515c59(0x80)]=y,Object[_0x515c59(0x100)](exports,_0x515c59(0x13a),{'enumerable':!0x0,'get':function(){return j;}}),exports['UpdateConnectorRelationCommand']=S,exports[_0x515c59(0xb9)]=C,exports[_0x515c59(0x140)]=_,exports[_0x515c59(0xa9)]=T,exports['UpdateSheetsShapeTypeMutation']=w;